/* ---------------------------------------------------------------- tokens --- */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --surface-3: #e9edf2;
  --border: #e2e6ec;
  --border-strong: #cbd3dd;

  --text: #14181f;
  --text-muted: #5c6875;
  --text-faint: #8b95a1;

  --accent: #128c7e;
  --accent-hover: #0f766b;
  --accent-soft: #e6f4f1;
  --accent-text: #0b5f55;

  --success: #17803d;
  --success-soft: #e7f6ec;
  --warning: #9a6200;
  --warning-soft: #fdf2df;
  --danger: #c0362c;
  --danger-soft: #fdeceb;
  --info: #2563a8;
  --info-soft: #e8f1fb;

  --bubble: #d9fdd3;
  --chat-bg: #efe7dd;

  --radius: 10px;
  --radius-lg: 14px;
  --radius-sm: 7px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 2px 8px rgba(16, 24, 40, 0.07);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.13);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1216;
    --surface: #171b21;
    --surface-2: #1e242b;
    --surface-3: #262d36;
    --border: #2a323b;
    --border-strong: #3a444f;

    --text: #e8ecf1;
    --text-muted: #9aa6b3;
    --text-faint: #6b7784;

    --accent: #2bb3a3;
    --accent-hover: #35c9b7;
    --accent-soft: #14312e;
    --accent-text: #6fd8c9;

    --success: #4ade80;
    --success-soft: #14301f;
    --warning: #e3b341;
    --warning-soft: #33280d;
    --danger: #f07167;
    --danger-soft: #3a1d1a;
    --info: #6cb0f5;
    --info-soft: #14283d;

    --bubble: #144d37;
    --chat-bg: #0b1418;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}

:root[data-theme="dark"] {
  --bg: #0f1216;
  --surface: #171b21;
  --surface-2: #1e242b;
  --surface-3: #262d36;
  --border: #2a323b;
  --border-strong: #3a444f;

  --text: #e8ecf1;
  --text-muted: #9aa6b3;
  --text-faint: #6b7784;

  --accent: #2bb3a3;
  --accent-hover: #35c9b7;
  --accent-soft: #14312e;
  --accent-text: #6fd8c9;

  --success: #4ade80;
  --success-soft: #14301f;
  --warning: #e3b341;
  --warning-soft: #33280d;
  --danger: #f07167;
  --danger-soft: #3a1d1a;
  --info: #6cb0f5;
  --info-soft: #14283d;

  --bubble: #144d37;
  --chat-bg: #0b1418;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* ----------------------------------------------------------------- base --- */

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 640; letter-spacing: -0.01em; }
h1 { font-size: 17px; }
h2 { font-size: 19px; }
h3 { font-size: 14px; }
p { margin: 0; }

code, .mono { font-family: var(--mono); font-size: 0.92em; }

a { color: var(--accent-text); }

::selection { background: var(--accent-soft); }

/* --------------------------------------------------------------- layout --- */

.app { display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  height: 58px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 660; }
.brand-mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  border-radius: 8px;
  flex-shrink: 0;
}
.brand-mark svg { width: 17px; height: 17px; }

.topbar-spacer { flex: 1; }

.main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 72px;
}

.view { display: none; }
.view.active { display: block; animation: fade 0.22s ease; }

@keyframes fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------- stepper --- */

.stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 22px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 8px;
  border-radius: 100px;
  border: 1px solid transparent;
  background: none;
  color: var(--text-faint);
  font: inherit;
  font-size: 13px;
  font-weight: 560;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.step:disabled { cursor: not-allowed; opacity: 0.5; }
.step:not(:disabled):hover { background: var(--surface-2); color: var(--text-muted); }

.step[aria-current="step"] {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.step.done { color: var(--accent-text); }

.step-num {
  width: 21px; height: 21px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 680;
  flex-shrink: 0;
}
.step[aria-current="step"] .step-num { background: var(--accent); color: #fff; }
.step.done .step-num { background: var(--accent-soft); color: var(--accent-text); }

.step-sep { color: var(--text-faint); opacity: 0.45; flex-shrink: 0; }

/* ---------------------------------------------------------------- cards --- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card + .card { margin-top: 16px; }

.card-head {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-head .sub { color: var(--text-muted); font-size: 13px; margin-top: 2px; }
.card-head-text { min-width: 0; }
.card-body { padding: 18px; }
.card-body.tight { padding: 14px 18px; }

.card-foot {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* -------------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 570;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s, transform 0.06s, opacity 0.14s;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { background: var(--surface-2); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-danger { color: var(--danger); border-color: var(--border-strong); }
.btn-danger:hover:not(:disabled) { background: var(--danger-soft); border-color: var(--danger); }

.btn-ghost { border-color: transparent; background: none; }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); }

.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn-lg { padding: 12px 22px; font-size: 15px; }

.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.icon-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------- inputs --- */

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.field .hint { font-size: 12px; color: var(--text-faint); }

input[type="text"], input[type="number"], select, textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  transition: border-color 0.14s, box-shadow 0.14s;
}
textarea { resize: vertical; min-height: 96px; font-family: var(--mono); font-size: 12.5px; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

select { cursor: pointer; }

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13.5px;
  user-select: none;
}
.check input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }

/* ------------------------------------------------------------ drop zone --- */

.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  background: var(--surface-2);
  transition: border-color 0.16s, background 0.16s;
}
.dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.over {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: scale(1.005);
}
.dropzone svg { width: 34px; height: 34px; color: var(--text-faint); margin-bottom: 10px; }
.dropzone.over svg, .dropzone:hover svg { color: var(--accent); }
.dropzone .big { font-size: 15px; font-weight: 600; }
.dropzone .small { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

/* --------------------------------------------------------------- chips ---- */

.chips { display: flex; flex-wrap: wrap; gap: 7px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 580;
  background: var(--surface-3);
  color: var(--text-muted);
  white-space: nowrap;
}
.chip-ok      { background: var(--success-soft); color: var(--success); }
.chip-warn    { background: var(--warning-soft); color: var(--warning); }
.chip-danger  { background: var(--danger-soft);  color: var(--danger); }
.chip-info    { background: var(--info-soft);    color: var(--info); }
.chip-accent  { background: var(--accent-soft);  color: var(--accent-text); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* --------------------------------------------------------------- tables --- */

.table-wrap {
  overflow: auto;
  max-height: 420px;
  border-top: 1px solid var(--border);
}

table { width: 100%; border-collapse: collapse; font-size: 13px; }

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-2);
  text-align: left;
  font-weight: 620;
  font-size: 12px;
  color: var(--text-muted);
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }

tbody tr.row-bad   { background: var(--danger-soft); }
tbody tr.row-dupe  { background: var(--warning-soft); }
tbody tr.row-muted { opacity: 0.55; }

.truncate {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.col-head-active { color: var(--accent-text) !important; }

/* ------------------------------------------------------- template picker --- */

.tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 12px;
}

.tpl {
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 13px 14px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.14s, box-shadow 0.14s, background 0.14s;
}
.tpl:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.tpl[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}
.tpl:disabled { opacity: 0.5; cursor: not-allowed; }

.tpl-name { font-weight: 640; display: flex; align-items: center; gap: 8px; }
.tpl-meta { display: flex; gap: 6px; margin: 7px 0 9px; flex-wrap: wrap; }
.tpl-preview {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: pre-wrap;
  max-height: 68px;
  overflow: hidden;
  border-top: 1px dashed var(--border);
  padding-top: 8px;
}

/* ------------------------------------------------------------- mapping ---- */

.map-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.map-row:last-child { border-bottom: none; }
.map-label { padding-top: 9px; }
.map-var {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--surface-3);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-text);
}
.map-controls { display: flex; gap: 8px; align-items: center; }
.map-controls select, .map-controls input { flex: 1; min-width: 0; }
.map-sample {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 5px;
  display: flex;
  gap: 6px;
  align-items: baseline;
}
.map-sample b { color: var(--text-muted); font-weight: 600; }

/* --------------------------------------------------------- chat preview --- */

.chat {
  background: var(--chat-bg);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 90px;
}

.bubble {
  position: relative;
  align-self: flex-end;
  max-width: min(420px, 85%);
  background: var(--bubble);
  color: var(--text);
  padding: 8px 11px 6px;
  border-radius: 9px 2px 9px 9px;
  box-shadow: var(--shadow-sm);
  font-size: 13.5px;
  white-space: pre-wrap;
  word-break: break-word;
}
.bubble .to {
  display: block;
  font-size: 11px;
  font-weight: 640;
  color: var(--accent-text);
  margin-bottom: 3px;
  opacity: 0.85;
}
.bubble .time {
  display: block;
  text-align: right;
  font-size: 10.5px;
  color: var(--text-faint);
  margin-top: 3px;
}
.bubble .unfilled {
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: 3px;
  padding: 0 3px;
  font-family: var(--mono);
  font-size: 0.9em;
}

/* --------------------------------------------------------------- stats ---- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px;
}

.stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.stat .n {
  font-size: 23px;
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.stat .l { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.stat.ok .n     { color: var(--success); }
.stat.bad .n    { color: var(--danger); }
.stat.warn .n   { color: var(--warning); }
.stat.accent .n { color: var(--accent-text); }

/* ------------------------------------------------------------ progress ---- */

.progress {
  height: 9px;
  border-radius: 100px;
  background: var(--surface-3);
  overflow: hidden;
  display: flex;
}
.progress span { display: block; height: 100%; transition: width 0.35s ease; }
.progress .p-sent    { background: var(--accent); }
.progress .p-failed  { background: var(--danger); }
.progress .p-skipped { background: var(--border-strong); }

/* --------------------------------------------------------------- misc ----- */

.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.small { font-size: 12.5px; }
.right { text-align: right; }
.nums { font-variant-numeric: tabular-nums; }

.note {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid transparent;
}
.note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.note-info   { background: var(--info-soft);    color: var(--info);    border-color: color-mix(in srgb, var(--info) 22%, transparent); }
.note-warn   { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 22%, transparent); }
.note-danger { background: var(--danger-soft);  color: var(--danger);  border-color: color-mix(in srgb, var(--danger) 22%, transparent); }
.note-ok     { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 22%, transparent); }
.note b { font-weight: 640; }

.empty {
  text-align: center;
  padding: 38px 20px;
  color: var(--text-faint);
}
.empty svg { width: 30px; height: 30px; margin-bottom: 8px; opacity: 0.6; }

.spinner {
  width: 15px; height: 15px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- toasts --- */

.toasts {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(380px, calc(100vw - 32px));
}

.toast {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 13px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  animation: toast-in 0.22s ease;
}
.toast.err { border-left: 3px solid var(--danger); }
.toast.ok  { border-left: 3px solid var(--success); }
.toast .grow { word-break: break-word; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------- modal ---- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 14, 20, 0.45);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fade 0.15s ease;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: min(460px, 100%);
  max-height: 85vh;
  overflow: auto;
}

/* -------------------------------------------------------------- sticky ---- */

.actionbar {
  position: sticky;
  bottom: 0;
  margin-top: 18px;
  padding: 13px 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------- mobile --- */

@media (max-width: 720px) {
  .main { padding: 16px 16px 60px; }
  .map-row { grid-template-columns: 1fr; gap: 7px; }
  .map-label { padding-top: 0; }
  .step span.step-text { display: none; }
  .step { padding: 7px 9px; }
  .tpl-grid { grid-template-columns: 1fr; }
  .truncate { max-width: 160px; }
  .topbar { padding: 0 14px; gap: 10px; }
  .brand-name { display: none; }
}

/* ------------------------------------------------- template composer ----- */

.compose-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 18px;
  align-items: start;
}

.compose-preview {
  position: sticky;
  top: 12px;
}

.toolbar {
  display: flex;
  gap: 3px;
  padding: 5px;
  border: 1px solid var(--border-strong);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--surface-2);
  flex-wrap: wrap;
}

.toolbar + textarea {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-family: var(--font);
  font-size: 13.5px;
}

.tool {
  min-width: 29px;
  height: 27px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 5px;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.tool:hover { background: var(--surface); color: var(--text); border-color: var(--border); }
.tool.wide { min-width: auto; font-size: 12px; font-weight: 600; }
.tool b, .tool i, .tool s { font-size: 14px; }
.tool code { font-size: 11.5px; }

/* buttons being designed */

.btn-rows { display: flex; flex-direction: column; gap: 8px; }

.btn-row {
  display: grid;
  grid-template-columns: 128px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.btn-row .btn-extra { grid-column: 1 / -1; }

/* buttons as WhatsApp draws them, under the bubble */

.bubble-buttons {
  align-self: flex-end;
  max-width: min(420px, 85%);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: -6px;
}

.bubble-button {
  background: var(--bubble);
  color: #1d8a72;
  text-align: center;
  padding: 8px;
  font-size: 13.5px;
  font-weight: 560;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}
:root[data-theme="dark"] .bubble-button,
:root:not([data-theme="light"]) .bubble-button { color: #7fe3cb; }
.bubble-button svg { width: 14px; height: 14px; }

@media (max-width: 720px) {
  .compose-grid { grid-template-columns: 1fr; }
  .compose-preview { position: static; }
  .btn-row { grid-template-columns: 1fr; }
}

/* The template composer needs a wider modal than the default. */
.modal:has(.compose-grid) { width: min(880px, 100%); }

/* The `hidden` attribute must beat our own display rules. Without this,
   anything with an explicit display (.field, .btn, .icon-btn) ignores it. */
[hidden] { display: none !important; }
