@charset "UTF-8";
/* ==========================================================================
   DIVIGI Dialer — dispatch board
   World: airport ops strip boards and the consoles around them. Surfaces built
   to be read fast, across a room, by someone whose hands are busy.
   ========================================================================== */

/* ── Faces ─────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url('fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url('fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo Narrow'; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url('fonts/archivonarrow-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo Narrow'; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url('fonts/archivonarrow-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Tokens ────────────────────────────────────────────────────────────── */

:root {
  /* Ground. Bone-white rather than blue-grey: this sits under colour fields all
     day and a cool ground makes every warm disposition look dirty. */
  --ground:        #F6F6F4;
  --surface:       #FFFFFF;
  --surface-sunk:  #FAFAF8;
  --surface-raised:#FFFFFF;

  --line:          #E3E3DE;
  --line-strong:   #CFCFC8;
  --line-hairline: #EDEDE8;

  --ink:           #16181C;
  --ink-2:         #494D55;
  --ink-3:         #6B7079;
  --ink-inverse:   #FFFFFF;

  /* Console — the one dark surface. */
  --console:       #15171B;
  --console-2:     #1D2026;
  --console-3:     #282C34;
  --console-line:  #33383F;
  --console-ink:   #F2F3F5;
  --console-ink-2: #A2A8B3;
  --console-ink-3: #767D89;
  /* The quietest console text that still clears 4.5:1 on BOTH the panel
     ground (#282C34) and the gate ground (#15171B). --console-ink-3 does
     not, so it is for non-text marks only. */
  --console-ink-quiet: #949AA5;

  /* Warning, on the console only. The disposition amber (--d-noanswer-s) is
     mixed for a white page and manages 2.84:1 on the panel ground, so it is not
     usable as console text. This one clears 4.5:1 on both console grounds. */
  --console-warn:  #E8A33D;

  /* Action. A single working blue: it is the only non-status colour that means
     "do this", so it never appears decoratively. */
  --action:        #1D4ED8;
  --action-hover:  #1A43B8;
  --action-soft:   #E7EEFE;
  --action-ink:    #1E40AF;

  --live:          #16A34A;
  --live-hover:    #12833C;
  --live-glow:     rgba(22, 163, 74, .28);
  --danger-hover:  #A30F34;

  /* Status marks on the dark ground. The light-surface disposition inks are far
     too dark to read on charcoal, so the console and the toasts get their own
     lighter steps of the same three hues. */
  --on-dark-good:  #4ADE80;
  --on-dark-bad:   #FB7185;
  --on-dark-warn:  #FBBF24;
  --on-dark-focus: #4C93FF;
  --on-dark-focus-ring: rgba(76,147,255,.2);
  --on-dark-sink:  rgba(0,0,0,.22);
  --on-dark-raise: rgba(255,255,255,.1);

  --black:         #000000;

  /* Disposition fields. strong = owns a whole card, white text on it.
     soft = chip ground.  ink = chip text.  All verified ≥4.5:1. */
  --d-new-s:#475569;      --d-new-f:#EEF2F6;      --d-new-i:#334155;
  --d-noanswer-s:#A16207; --d-noanswer-f:#FEF5E1; --d-noanswer-i:#854D0E;
  --d-busy-s:#C2410C;     --d-busy-f:#FFEFE7;     --d-busy-i:#9A3412;
  --d-voicemail-s:#6D28D9;--d-voicemail-f:#F2ECFE;--d-voicemail-i:#5B21B6;
  --d-later-s:#1D4ED8;    --d-later-f:#E7EEFE;    --d-later-i:#1E40AF;
  --d-notint-s:#BE123C;   --d-notint-f:#FDEBF0;   --d-notint-i:#9F1239;
  --d-wrong-s:#57534E;    --d-wrong-f:#F2F0EE;    --d-wrong-i:#44403C;
  --d-mockup-s:#047857;   --d-mockup-f:#E4F6EF;   --d-mockup-i:#065F46;
  --d-audit-s:#0F766E;    --d-audit-f:#E2F4F1;    --d-audit-i:#115E59;
  --d-meeting-s:#15803D;  --d-meeting-f:#E8F6EB;  --d-meeting-i:#166534;
  --d-gate-s:#4338CA;     --d-gate-f:#EBEAFC;     --d-gate-i:#3730A3;
  --d-dnc-s:#1F2937;      --d-dnc-f:#E9EBEE;      --d-dnc-i:#111827;

  /* Space — dense scale. Tables live on 4/6/8; page rhythm on 16/24/32. */
  --s1: 4px;  --s2: 6px;  --s3: 8px;  --s4: 12px; --s5: 16px;
  --s6: 20px; --s7: 24px; --s8: 32px; --s9: 40px; --s10: 56px;

  --r-xs: 3px; --r-sm: 5px; --r: 8px; --r-lg: 12px; --r-xl: 16px; --r-pill: 999px;

  /* Depth carries offset and blur; no zero-offset halos. */
  --lift-1: 0 1px 2px rgba(22,24,28,.06), 0 1px 1px rgba(22,24,28,.04);
  --lift-2: 0 2px 4px rgba(22,24,28,.06), 0 4px 12px rgba(22,24,28,.07);
  --lift-3: 0 4px 8px rgba(22,24,28,.07), 0 16px 40px rgba(22,24,28,.12);
  --lift-4: 0 8px 16px rgba(22,24,28,.10), 0 32px 80px rgba(22,24,28,.22);

  --topbar-h: 58px;
  --rail-w: 226px;

  /* Exponential ease-out, from an already-visible default. */
  --ease: cubic-bezier(.16,1,.3,1);
  --ease-quick: cubic-bezier(.3,.8,.4,1);
  --t-fast: 120ms; --t: 200ms; --t-slow: 420ms;

  --z-rail: 40; --z-topbar: 50; --z-sticky: 30;
  --z-overlay: 80; --z-modal: 90; --z-toast: 100;
}

/* ── Reset & base ──────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'cv05' 1;
}

h1,h2,h3,h4,h5 { font-weight: 600; line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: 22px; letter-spacing: -.022em; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }

a { color: var(--action); text-decoration-color: color-mix(in srgb, var(--action) 32%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }

button, input, select, textarea { font: inherit; color: inherit; font-variant-numeric: inherit; }
button { background: none; border: none; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
svg { display: block; flex: none; }
[hidden] { display: none !important; }

/* Browser surfaces — the parts we did not draw still carry the design. */
::selection { background: color-mix(in srgb, var(--action) 22%, transparent); color: var(--ink); }
:root { accent-color: var(--action); caret-color: var(--action); color-scheme: light; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; border-radius: var(--r-xs); }
/* A blue ring on the green Call button reads as a defect. White works on every
   surface the console has. */
.console :focus-visible { outline-color: rgba(255,255,255,.9); outline-offset: 3px; }

* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-strong); border-radius: var(--r-pill);
  border: 3px solid var(--ground); background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); background-clip: padding-box; border: 3px solid var(--ground); }
.console ::-webkit-scrollbar-thumb { background: var(--console-line); border-color: var(--console); }

/* ── Utility ───────────────────────────────────────────────────────────── */

.mono-num { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.narrow { font-family: 'Archivo Narrow', 'Archivo', sans-serif; }
.muted { color: var(--ink-3); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.row { display: flex; align-items: center; gap: var(--s4); }
.row-tight { display: flex; align-items: center; gap: var(--s2); }
.spread { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }
.stack { display: flex; flex-direction: column; gap: var(--s5); }
.grow { flex: 1 1 auto; min-width: 0; }

/* Column label — Archivo Narrow, the board's labelling voice. */
.label {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-3);
}

/* ══════════════════════════════════════════════════════════════════════════
   SHELL
   ══════════════════════════════════════════════════════════════════════════ */

/* The one dark strip in a bone-white app, so it carries the dispatch-board
   character on its own: a machined panel with a lit top edge and the clock
   every ops board has. Nothing sits in front of the wordmark. */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--topbar-h);
  z-index: var(--z-topbar);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s5); padding: 0 var(--s6);
  background: var(--console); color: var(--console-ink);
  border-bottom: 1px solid var(--black);
  /* A hairline of light along the top edge, the way a panel catches the room.
     Kept under 6% so it never becomes a visible stripe. */
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .055);
}

.brand {
  display: flex; align-items: center; gap: var(--s3);
  text-decoration: none; color: inherit;
}
.brand-word { display: flex; align-items: baseline; gap: var(--s2); }
.brand b { font-size: 20px; font-weight: 700; letter-spacing: -.005em; }
/* Same size as DIVIGI, lighter weight: one lockup, two voices. */
.brand-word > span { font-size: 20px; font-weight: 400; letter-spacing: -.005em; color: var(--console-ink-2); }
.brand:hover .brand-word > span { color: var(--console-ink); }


.topbar-right { display: flex; align-items: center; gap: var(--s4); }

.whoami { display: flex; align-items: center; gap: var(--s3); font-size: 13px; color: var(--console-ink-2); }
.whoami b { color: var(--console-ink); font-weight: 600; }

/* The board clock. Tabular so the colon never shifts on the minute. */
.topbar-clock { display: flex; align-items: baseline; gap: var(--s2); }
.topbar-clock time {
  font-size: 14px; font-weight: 600; color: var(--console-ink);
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.topbar-clock-zone {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  /* ink-3 measured 4.33:1 on this ground — under AA for text this size, which
     no amount of "it is only a label" makes acceptable. */
  color: var(--console-ink-2);
}

.tag-admin {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px var(--s2); border-radius: var(--r-sm);
  background: var(--console-3); color: var(--console-ink);
}

.topbar-sep { width: 1px; height: 22px; background: var(--console-line); }

/* Impersonation is a state the admin must not forget they are in. */
.impersonating {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s1) var(--s1) var(--s1) var(--s4);
  border-radius: var(--r-pill);
  background: var(--d-noanswer-f); color: var(--d-noanswer-i);
  font-size: 12px; font-weight: 500;
}
.impersonating b { font-weight: 700; }

/* ── Rail ──────────────────────────────────────────────────────────────── */

.rail {
  position: fixed; left: 0; top: var(--topbar-h); bottom: 0; width: var(--rail-w);
  z-index: var(--z-rail);
  display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--line);
  overflow-y: auto; overscroll-behavior: contain;
}
.rail-nav { padding: var(--s4) var(--s4) var(--s3); display: flex; flex-direction: column; gap: 1px; }

.rail-group {
  padding: var(--s5) var(--s4) var(--s2);
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
}
.rail-group:first-child { padding-top: var(--s1); }

.rail-link {
  position: relative;
  display: flex; align-items: center; gap: var(--s4);
  padding: var(--s3) var(--s4);
  border-radius: var(--r);
  color: var(--ink-2); text-decoration: none;
  font-size: 13px; font-weight: 500;
  transition: background var(--t-fast) var(--ease-quick), color var(--t-fast) var(--ease-quick);
}
.rail-link svg { width: 17px; height: 17px; stroke-width: 1.7; opacity: .7; transition: opacity var(--t-fast); }
.rail-link:hover { background: var(--surface-sunk); color: var(--ink); }
.rail-link:hover svg { opacity: 1; }
.rail-link.is-active { background: var(--ink); color: var(--ink-inverse); font-weight: 600; }
.rail-link.is-active svg { opacity: 1; }

.rail-count {
  margin-left: auto;
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
  min-width: 19px; height: 19px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  background: var(--surface-sunk); color: var(--ink-3);
}
.rail-link.is-active .rail-count { background: rgba(255,255,255,.16); color: #fff; }
.rail-count.is-due { background: var(--d-notint-s); color: #fff; }
.rail-link.is-active .rail-count.is-due { background: #fff; color: var(--d-notint-i); }

.rail-foot { margin-top: auto; padding: var(--s4); border-top: 1px solid var(--line-hairline); }

/* Agent's own line status, always visible. */
.line-state {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4); border-radius: var(--r);
  background: var(--surface-sunk); font-size: 12px; color: var(--ink-2);
}
.line-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; }
.line-state.is-ready .line-dot { background: var(--live); box-shadow: 0 0 0 3px var(--live-glow); }
.line-state.is-off .line-dot { background: var(--d-notint-s); }

/* ── Main ──────────────────────────────────────────────────────────────── */

.main { margin-left: var(--rail-w); padding-top: var(--topbar-h); min-height: 100vh; }
.page { padding: var(--s7) var(--s8) var(--s10); max-width: 1680px; }
.page-wide { max-width: none; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s6); margin-bottom: var(--s6); }
.page-head .sub { margin-top: var(--s1); font-size: 13px; color: var(--ink-3); }

.crumbs { display: flex; align-items: center; gap: var(--s2); font-size: 12px; color: var(--ink-3); margin-bottom: var(--s2); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs svg { width: 12px; height: 12px; opacity: .5; }

/* ══════════════════════════════════════════════════════════════════════════
   CONTROLS
   ══════════════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  height: 34px; padding: 0 var(--s4);
  border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--surface); color: var(--ink);
  font-size: 13px; font-weight: 550; white-space: nowrap;
  box-shadow: var(--lift-1);
  transition: background var(--t-fast) var(--ease-quick), border-color var(--t-fast) var(--ease-quick),
              color var(--t-fast) var(--ease-quick), box-shadow var(--t-fast) var(--ease-quick);
}
.btn svg { width: 15px; height: 15px; stroke-width: 1.9; }
.btn:hover { background: var(--surface-sunk); border-color: var(--ink-3); }
.btn:active { box-shadow: none; }

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

.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--black); border-color: var(--black); }

.btn-danger { background: var(--surface); border-color: var(--line-strong); color: var(--d-notint-i); }
.btn-danger:hover { background: var(--d-notint-f); border-color: var(--d-notint-s); color: var(--d-notint-i); }

.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-sunk); border-color: transparent; color: var(--ink); }

.btn-sm { height: 28px; padding: 0 var(--s3); font-size: 12px; }
.btn-sm svg { width: 13px; height: 13px; }
.btn-lg { height: 42px; padding: 0 var(--s6); font-size: 14px; }
/* An icon-only button has no label to carry it, so the glyph does the whole
   job and is drawn larger than the 15px that rides beside a word. Without this
   a row of bare 13px marks reads as specks rather than as controls. */
.btn-icon { width: 34px; padding: 0; }
.btn-icon svg { width: 18px; height: 18px; }
.btn-sm.btn-icon { width: 30px; }
.btn-sm.btn-icon svg { width: 16px; height: 16px; }

.btn:disabled, .btn[aria-disabled="true"] {
  opacity: .45; cursor: not-allowed; box-shadow: none;
  background: var(--surface-sunk); border-color: var(--line); color: var(--ink-3);
}
.btn-primary:disabled, .btn-dark:disabled { background: var(--ink-3); border-color: var(--ink-3); color: #fff; opacity: .5; }

.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  color: var(--ink-2); animation: spin .6s linear infinite;
}
.btn-primary.is-busy::after, .btn-dark.is-busy::after { color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Fields ────────────────────────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: var(--s2); }
.field > label { font-size: 12px; font-weight: 550; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--ink-3); }
.field .err { font-size: 12px; font-weight: 550; color: var(--d-notint-i); }

.input, .select, .textarea {
  width: 100%; height: 34px; padding: 0 var(--s3);
  border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--surface); color: var(--ink); font-size: 13px;
  transition: border-color var(--t-fast) var(--ease-quick), box-shadow var(--t-fast) var(--ease-quick);
}
.textarea { height: auto; min-height: 84px; padding: var(--s3); line-height: 1.55; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--action);
  box-shadow: 0 0 0 3px var(--action-soft);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--d-notint-s); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--d-notint-f); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--surface-sunk); color: var(--ink-3); cursor: not-allowed; }

.select {
  appearance: none; padding-right: var(--s8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B7079' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--s3) center;
}

.input-search { padding-left: var(--s8); }
.search-wrap { position: relative; display: flex; align-items: center; }
.search-wrap > svg { position: absolute; left: var(--s3); width: 15px; height: 15px; color: var(--ink-3); pointer-events: none; }

.check { display: inline-flex; align-items: center; gap: var(--s3); cursor: pointer; font-size: 13px; }
.check input { width: 15px; height: 15px; cursor: pointer; flex: none; }

/* ══════════════════════════════════════════════════════════════════════════
   CARDS — colour owns the whole field, never a stripe on white
   ══════════════════════════════════════════════════════════════════════════ */

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--lift-1);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s5);
  padding: var(--s5) var(--s6); border-bottom: 1px solid var(--line-hairline);
}
.card-head h2 { font-size: 15px; }
.card-head .sub { margin: var(--s1) 0 0; font-size: 12px; color: var(--ink-3); }
.card-body { padding: var(--s6); }

/* A read-only fact: what it is, what it says, and why it matters. Used where a
   value is shown rather than edited — settings somebody else owns. Three type
   steps in order (Label, Body, Meta) so the eye lands on the value, not the
   caption, and the columns stop at 2 because a fact carries a sentence. */
.facts { display: grid; gap: var(--s6); margin: 0; }
@media (min-width: 720px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts > div { min-width: 0; }
.facts dt {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-3);
}
.facts dd { margin: var(--s2) 0 0; font-size: 14px; font-weight: 550; color: var(--ink); word-break: break-word; }
.facts p  { margin: var(--s1) 0 0; font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.card-body-flush { padding: 0; }
.card-foot { padding: var(--s4) var(--s6); border-top: 1px solid var(--line-hairline); background: var(--surface-sunk); border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* Stat board — the colour moment. Each tile is a saturated field. */
.board { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }

/* Facet boards hold a variable number of tiles — sometimes one. auto-fill keeps
   the empty tracks, so a single tile stays tile-sized instead of stretching
   into a banner across the page. */
.board-fill { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: var(--s1);
  padding: var(--s5); min-height: 108px;
  border-radius: var(--r-lg);
  background: var(--tile-bg, var(--ink)); color: #fff;
  box-shadow: var(--lift-2);
  text-decoration: none;
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
a.tile:hover { box-shadow: var(--lift-3); transform: translateY(-1px); }
a.tile:hover .tile-more { opacity: 1; transform: translateX(0); }

.tile-label {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.82);
}
.tile-value {
  font-size: 34px; font-weight: 700; line-height: 1.05; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.tile-value small { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-left: 1px; }
.tile-foot { margin-top: auto; font-size: 12px; color: rgba(255,255,255,.82); display: flex; align-items: center; gap: var(--s2); }
.tile-more { margin-left: auto; opacity: 0; transform: translateX(-3px); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.tile-more svg { width: 14px; height: 14px; }

/* Watermark glyph — the tile's own icon, sunk into the field. */
.tile-mark { position: absolute; right: -10px; bottom: -12px; opacity: .13; pointer-events: none; }
.tile-mark svg { width: 86px; height: 86px; stroke-width: 1.1; }

.tile-new      { --tile-bg: var(--d-new-s); }
.tile-noanswer { --tile-bg: var(--d-noanswer-s); }
.tile-busy     { --tile-bg: var(--d-busy-s); }
.tile-voicemail{ --tile-bg: var(--d-voicemail-s); }
.tile-later    { --tile-bg: var(--d-later-s); }
.tile-notint   { --tile-bg: var(--d-notint-s); }
.tile-wrong    { --tile-bg: var(--d-wrong-s); }
.tile-mockup   { --tile-bg: var(--d-mockup-s); }
.tile-audit    { --tile-bg: var(--d-audit-s); }
.tile-meeting  { --tile-bg: var(--d-meeting-s); }
.tile-gate     { --tile-bg: var(--d-gate-s); }
.tile-dnc      { --tile-bg: var(--d-dnc-s); }
.tile-ink      { --tile-bg: var(--ink); }
.tile-action   { --tile-bg: var(--action); }

/* ── Disposition chips ─────────────────────────────────────────────────── */

.chip {
  display: inline-flex; align-items: center; gap: var(--s2);
  height: 21px; padding: 0 var(--s3);
  border-radius: var(--r-sm);
  background: var(--chip-f, var(--d-new-f)); color: var(--chip-i, var(--d-new-i));
  font-size: 12px; font-weight: 600; white-space: nowrap;
  letter-spacing: -.005em;
}
.chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--chip-s, var(--d-new-s)); flex: none; }
.chip-plain::before { display: none; }
.chip-lg { height: 26px; padding: 0 var(--s4); font-size: 12px; border-radius: var(--r); }

.d-new       { --chip-f: var(--d-new-f);       --chip-i: var(--d-new-i);       --chip-s: var(--d-new-s); }
.d-no_answer { --chip-f: var(--d-noanswer-f);  --chip-i: var(--d-noanswer-i);  --chip-s: var(--d-noanswer-s); }
.d-busy      { --chip-f: var(--d-busy-f);      --chip-i: var(--d-busy-i);      --chip-s: var(--d-busy-s); }
.d-voicemail { --chip-f: var(--d-voicemail-f); --chip-i: var(--d-voicemail-i); --chip-s: var(--d-voicemail-s); }
.d-call_later{ --chip-f: var(--d-later-f);     --chip-i: var(--d-later-i);     --chip-s: var(--d-later-s); }
.d-not_interested { --chip-f: var(--d-notint-f); --chip-i: var(--d-notint-i);  --chip-s: var(--d-notint-s); }
.d-wrong_number   { --chip-f: var(--d-wrong-f);  --chip-i: var(--d-wrong-i);   --chip-s: var(--d-wrong-s); }
.d-agreed_mockup  { --chip-f: var(--d-mockup-f); --chip-i: var(--d-mockup-i);  --chip-s: var(--d-mockup-s); }
.d-agreed_audit   { --chip-f: var(--d-audit-f);  --chip-i: var(--d-audit-i);   --chip-s: var(--d-audit-s); }
.d-meeting_booked { --chip-f: var(--d-meeting-f);--chip-i: var(--d-meeting-i); --chip-s: var(--d-meeting-s); }
.d-gatekeeper     { --chip-f: var(--d-gate-f);   --chip-i: var(--d-gate-i);    --chip-s: var(--d-gate-s); }
.d-dnc            { --chip-f: var(--d-dnc-f);    --chip-i: var(--d-dnc-i);     --chip-s: var(--d-dnc-s); }

/* ══════════════════════════════════════════════════════════════════════════
   TABLE — the board
   ══════════════════════════════════════════════════════════════════════════ */

.table-wrap { overflow-x: auto; overscroll-behavior-x: contain; }

.tbl { font-size: 13px; }

/* A table too wide for its card scrolls inside its own box — the page itself
   must never scroll sideways. */
.table-scroll { overscroll-behavior-x: contain; }
.table-scroll .tbl td { white-space: nowrap; }

/* The fade that says "there is more to the right". Sits outside the scroll box
   so no opaque table cell can paint over it, and is only present while there is
   actually something further along. */
.table-scroller { position: relative; }
.table-scroller::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 34px;
  border-radius: 0 var(--r) var(--r) 0;
  background: linear-gradient(to right, transparent, var(--surface) 78%);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t) var(--ease);
}
.table-scroller.has-more::after { opacity: 1; }

/* The label column stays put while the numbers scroll past it — a scrolled row
   with no label is a row of figures about nothing. Opaque, or the scrolled
   cells show through it. */
.table-scroll .tbl th:first-child,
.table-scroll .tbl td:first-child {
  position: sticky; left: 0; z-index: 1;
  background: var(--surface);
  box-shadow: 1px 0 0 var(--line-hairline);
}
/* The corner cell is sticky on BOTH axes, so it has to out-rank the sticky
   header row it sits in — at a lower z-index the other headers painted over it
   and the label column lost its heading. */
.table-scroll .tbl th:first-child {
  background: var(--surface-sunk);
  z-index: calc(var(--z-sticky) + 1);
}
.table-scroll .tbl tbody tr:hover td:first-child { background: var(--surface-sunk); }
/* Horizontal padding is s3, not s4. Twelve columns of twenty-four pixels is
   nearly three hundred pixels of a dense operations table spent on air, and it
   was enough on its own to push the leads list into a sideways scroll. */
.tbl th {
  position: sticky; top: 0; z-index: var(--z-sticky);
  padding: var(--s3);
  background: var(--surface-sunk);
  border-bottom: 1px solid var(--line);
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3); text-align: left; white-space: nowrap;
}
.tbl th.num, .tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl th.mid, .tbl td.mid { text-align: center; }

.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable:hover { color: var(--ink); }
.tbl th .sort-mark { display: inline-block; width: 10px; margin-left: 3px; opacity: 0; }
.tbl th[aria-sort] { color: var(--ink); }
.tbl th[aria-sort] .sort-mark { opacity: 1; }

.tbl td { padding: var(--s3); border-bottom: 1px solid var(--line-hairline); vertical-align: middle; }
.tbl tbody tr { transition: background var(--t-fast) var(--ease-quick); }
.tbl tbody tr:hover { background: var(--surface-sunk); }
.tbl tbody tr.is-selected { background: var(--action-soft); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr.is-locked { background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(161,98,7,.05) 7px 14px); }
.tbl tbody tr.is-dnc td { color: var(--ink-3); }
.tbl tbody tr.is-dnc .biz-name { text-decoration: line-through; text-decoration-color: var(--d-notint-s); }

/* Columns a narrow window can do without. The alternative is a table that
   scrolls sideways on every row, which costs the reader far more than the one
   field they can still reach by opening the lead. */
@media (max-width: 1400px) {
  .tbl .hide-narrow { display: none; }
}

.tbl td.tight { padding-left: var(--s3); padding-right: var(--s3); }
.tbl .col-check { width: 34px; }
.tbl .col-act { width: 1%; white-space: nowrap; }

.biz-name { font-weight: 600; color: var(--ink); }
.biz-sub { font-size: 12px; color: var(--ink-3); margin-top: 1px; }

.cell-stack { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cell-phone { font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }

.link-out { display: inline-flex; align-items: center; gap: 3px; color: var(--action); text-decoration: none; max-width: 190px; }
.link-out span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-out svg { width: 11px; height: 11px; opacity: .6; flex: none; }
.link-out:hover { text-decoration: underline; }

/* Google review score reads as a small measure, not a star costume. */
.score { display: inline-flex; align-items: baseline; gap: 3px; font-variant-numeric: tabular-nums; }
.score b { font-weight: 650; }
.score small { font-size: 11px; color: var(--ink-3); }
.score.is-low b { color: var(--d-busy-i); }
.score.is-high b { color: var(--d-mockup-i); }

/* ── Filter bar ────────────────────────────────────────────────────────── */

.filters {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--s3);
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--line-hairline);
  background: var(--surface);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.filters .search-wrap { flex: 1 1 240px; min-width: 200px; max-width: 360px; }
.filters .select, .filters .input { height: 32px; width: auto; min-width: 128px; font-size: 12px; }
.filters-sep { width: 1px; height: 22px; background: var(--line); }

.filter-count { font-size: 12px; color: var(--ink-3); margin-left: auto; white-space: nowrap; }
.filter-count b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }

.active-filters { display: flex; flex-wrap: wrap; gap: var(--s2); padding: 0 var(--s5) var(--s4); background: var(--surface); }
.active-filters:empty { display: none; }
.filter-pill {
  display: inline-flex; align-items: center; gap: var(--s2);
  height: 24px; padding: 0 var(--s2) 0 var(--s3);
  border-radius: var(--r-sm); background: var(--action-soft); color: var(--action-ink);
  font-size: 12px; font-weight: 550;
}
.filter-pill button { display: flex; color: inherit; opacity: .6; border-radius: var(--r-xs); }
.filter-pill button:hover { opacity: 1; }
.filter-pill svg { width: 12px; height: 12px; }

/* ── Pagination ────────────────────────────────────────────────────────── */

.pager {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--s4) var(--s5);
  padding: var(--s4) var(--s5);
  border-top: 1px solid var(--line-hairline); background: var(--surface-sunk);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  font-size: 12px; color: var(--ink-3);
}
/* The page-number strip is the only part that may give ground. Left to shrink,
   the two labels get squeezed until "Per page" breaks across two lines. */
.pager-range, .pager-size { flex: 0 0 auto; white-space: nowrap; }
.pager-nav { flex: 0 1 auto; }
.pager-range b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.pager-nav { display: flex; align-items: center; gap: var(--s1); }
.pager-btn {
  min-width: 30px; height: 30px; padding: 0 var(--s2);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: 12px; font-weight: 550; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.pager-btn:hover:not(:disabled) { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.pager-btn[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager-btn:disabled { opacity: .35; cursor: not-allowed; }
.pager-btn svg { width: 14px; height: 14px; }
.pager-gap { padding: 0 var(--s1); color: var(--ink-3); }
.pager-size { display: flex; align-items: center; gap: var(--s2); }
.pager-size label { white-space: nowrap; }
.pager-size .select { height: 30px; min-width: 66px; font-size: 12px; }

/* ══════════════════════════════════════════════════════════════════════════
   STATES
   ══════════════════════════════════════════════════════════════════════════ */

.empty { padding: var(--s10) var(--s7); text-align: center; }
.empty-mark {
  width: 46px; height: 46px; margin: 0 auto var(--s5);
  display: grid; place-items: center; border-radius: var(--r-lg);
  background: var(--surface-sunk); color: var(--ink-3); border: 1px solid var(--line);
}
.empty-mark svg { width: 21px; height: 21px; stroke-width: 1.6; }
.empty h3 { font-size: 15px; margin-bottom: var(--s2); }
.empty p { font-size: 13px; color: var(--ink-3); max-width: 46ch; margin: 0 auto var(--s5); }

.skel { background: linear-gradient(90deg, var(--line-hairline) 25%, var(--surface-sunk) 37%, var(--line-hairline) 63%);
        background-size: 400% 100%; animation: shimmer 1.3s ease-in-out infinite; border-radius: var(--r-sm); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.skel-line { height: 11px; }
.skel-row td { padding: var(--s4); }

.banner {
  display: flex; align-items: flex-start; gap: var(--s3);
  padding: var(--s4) var(--s5); border-radius: var(--r);
  background: var(--surface-sunk); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
}
.banner svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.banner b { color: var(--ink); }
.banner-warn { background: var(--d-noanswer-f); border-color: color-mix(in srgb, var(--d-noanswer-s) 30%, transparent); color: var(--d-noanswer-i); }
.banner-warn b { color: var(--d-noanswer-i); }
.banner-bad  { background: var(--d-notint-f); border-color: color-mix(in srgb, var(--d-notint-s) 30%, transparent); color: var(--d-notint-i); }
.banner-bad b { color: var(--d-notint-i); }
.banner-good { background: var(--d-mockup-f); border-color: color-mix(in srgb, var(--d-mockup-s) 30%, transparent); color: var(--d-mockup-i); }
.banner-good b { color: var(--d-mockup-i); }

/* ══════════════════════════════════════════════════════════════════════════
   POPUP — every interruption. No native alert/confirm anywhere.
   ══════════════════════════════════════════════════════════════════════════ */

.overlay {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  display: grid; place-items: center; padding: var(--s6);
  background: rgba(18,19,22,.42);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: fade var(--t) var(--ease) both;
}
@keyframes fade { from { opacity: 0; } }

.modal {
  position: relative; z-index: var(--z-modal);
  width: 100%; max-width: 460px; max-height: calc(100vh - 2 * var(--s6));
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-xl);
  box-shadow: var(--lift-4);
  animation: rise var(--t-slow) var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.modal-md { max-width: 620px; }
.modal-lg { max-width: 880px; }
.modal-xl { max-width: 1120px; }

.modal-head {
  display: flex; align-items: flex-start; gap: var(--s4);
  padding: var(--s6) var(--s6) var(--s4);
}
.modal-head h2 { font-size: 17px; }
.modal-head .sub { margin-top: var(--s1); font-size: 13px; color: var(--ink-3); }
.modal-x { margin-left: auto; margin-top: -2px; color: var(--ink-3); border-radius: var(--r-sm); padding: var(--s1); display: flex; }
.modal-x:hover { background: var(--surface-sunk); color: var(--ink); }
.modal-x svg { width: 17px; height: 17px; }

.modal-mark { width: 34px; height: 34px; border-radius: var(--r); display: grid; place-items: center; flex: none; }
.modal-mark svg { width: 18px; height: 18px; stroke-width: 1.9; }
.modal-mark.is-ask  { background: var(--action-soft); color: var(--action-ink); }
.modal-mark.is-warn { background: var(--d-noanswer-f); color: var(--d-noanswer-i); }
.modal-mark.is-bad  { background: var(--d-notint-f); color: var(--d-notint-i); }
.modal-mark.is-good { background: var(--d-mockup-f); color: var(--d-mockup-i); }

.modal-body { padding: 0 var(--s6) var(--s6); overflow-y: auto; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.modal-body p + p { margin-top: var(--s4); }
.modal-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: var(--s3);
  padding: var(--s4) var(--s6); border-top: 1px solid var(--line-hairline);
  background: var(--surface-sunk); border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.modal-foot .left { margin-right: auto; }

/* ── Toast — confirmations that do not need a click ────────────────────── */

/* Anchored bottom-LEFT, clear of the rail. The call console is a sticky panel on
   the right, so a bottom-right toast lands squarely on the notes field and the
   save button at the one moment the agent needs both. */
.toasts {
  position: fixed; left: calc(var(--rail-w) + var(--s6)); bottom: var(--s6);
  z-index: var(--z-toast);
  display: flex; flex-direction: column-reverse; gap: var(--s3);
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: var(--s3);
  min-width: 250px; max-width: 400px;
  padding: var(--s4) var(--s5);
  border-radius: var(--r); background: var(--console); color: var(--console-ink);
  box-shadow: var(--lift-3); font-size: 13px; pointer-events: auto;
  animation: toast-in var(--t-slow) var(--ease) both;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.toast.is-out { animation: toast-out var(--t) var(--ease-quick) both; }
@keyframes toast-out { to { opacity: 0; transform: translateX(-10px); } }
.toast svg { width: 16px; height: 16px; flex: none; }
.toast-good svg { color: var(--on-dark-good); }
.toast-bad svg  { color: var(--on-dark-bad); }
.toast-warn svg { color: var(--on-dark-warn); }
.toast button { margin-left: auto; color: var(--console-ink-3); display: flex; border-radius: var(--r-xs); }
.toast button:hover { color: var(--console-ink); }

/* ══════════════════════════════════════════════════════════════════════════
   CALL CONSOLE — the one dark surface, where a live call parks
   ══════════════════════════════════════════════════════════════════════════ */

.dialer { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s5); align-items: start; }

.console {
  position: sticky; top: calc(var(--topbar-h) + var(--s5));
  background: var(--console); color: var(--console-ink);
  border-radius: var(--r-lg); box-shadow: var(--lift-3);
  overflow: hidden;
}
.console-head {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--console-line);
  background: var(--console-2);
}
.console-head .label { color: var(--console-ink-3); }

/* Tally light. Idle is unlit; the arm is the page's one authored moment. */
.tally {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--console-line);
  transition: background var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
}
/* A signal light, so it blinks. Rate carries the state: standing by is calm,
   ringing is urgent, connected sits between the two. Colour never separates
   them on its own. */
.console.is-ready .tally {
  background: var(--live); box-shadow: 0 0 0 3px var(--live-glow);
  animation: pulse 1.4s var(--ease) infinite;
}
/* Only the phase label brightens — the dial-method label on the right is
   not a status and must not read as one. */
.console.is-ready #consoleState { color: var(--console-ink); }

.console.is-live .tally { background: var(--live); box-shadow: 0 0 0 4px var(--live-glow); animation: pulse 1.1s var(--ease) infinite; }
.console.is-dialing .tally { background: var(--d-noanswer-s); box-shadow: 0 0 0 4px rgba(161,98,7,.3); animation: pulse .7s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }

.console-body { padding: var(--s6) var(--s5); }

.console-biz { font-size: 17px; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; }
.console-meta { margin-top: var(--s1); font-size: 12px; color: var(--console-ink-2); }

/* Their clock. Quiet until the hour is one nobody wants to be rung at. */
.their-time {
  display: inline-flex; align-items: baseline; gap: var(--s2);
  margin-top: var(--s3); padding: var(--s2) var(--s3);
  border-radius: var(--r-sm);
  background: var(--console-3); color: var(--console-ink-2);
  font-size: 12px;
}
.their-time svg { width: 14px; height: 14px; opacity: .8; align-self: center; }
/* The time itself carries the decision — "is this a reasonable hour to ring
   them" — so it takes the title step while its caption stays at meta. */
.their-time b {
  font-size: 15px; color: var(--console-ink); font-weight: 650;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.their-time.is-rude { background: rgba(251,191,36,.14); color: var(--on-dark-warn); }
.their-time.is-rude b { color: var(--on-dark-warn); }

.console-number {
  margin: var(--s5) 0 var(--s6);
  font-size: 27px; font-weight: 600; letter-spacing: -.015em;
  font-variant-numeric: tabular-nums; color: var(--console-ink);
}

.timer {
  font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -.035em;
  font-variant-numeric: tabular-nums; color: var(--console-ink-3);
  transition: color var(--t-slow) var(--ease);
}
.console.is-live .timer { color: var(--console-ink); }

/* Still ringing, past the point where voicemail usually answers. Colour only —
   the number keeps counting and nothing moves, because a timer that jumps or
   flashes is harder to read at exactly the moment it is being read. */
.timer.is-ring-long { color: var(--console-warn); }
.timer.is-ring-long + .timer-cap { color: var(--console-warn); }
.timer-cap { display: block; margin-top: var(--s2); color: var(--console-ink-3); }

.console-actions { display: flex; gap: var(--s3); margin-top: var(--s6); }
.console-actions .btn { flex: 1; height: 44px; font-size: 14px; font-weight: 600; box-shadow: none; }

/* Reference, not an action — so it sits apart from the Call/Skip pair rather
   than reading as a third button in the same row. The gap has to clear the
   focus ring too: at 8px the ring around Call touched this button's edge. */
.console-reference { width: 100%; margin-top: var(--s5); height: 40px; font-size: 13px; }

.btn-call { background: var(--live); border-color: var(--live); color: #fff; }
.btn-call:hover { background: var(--live-hover); border-color: var(--live-hover); }
.btn-hang { background: var(--d-notint-s); border-color: var(--d-notint-s); color: #fff; }
.btn-hang:hover { background: var(--danger-hover); border-color: var(--danger-hover); }
.btn-console { background: var(--console-3); border-color: var(--console-line); color: var(--console-ink); }
.btn-console:hover { background: var(--console-line); border-color: #444A53; color: #fff; }

/* A fixed list where more than one answer is right — categories on a campaign.
   Tiles rather than a bare checkbox column: the target is the whole tile, and
   what is ticked reads from across the dialog. */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s2); }
.check-tile {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s3); min-height: 40px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); cursor: pointer;
  font-size: 13px; line-height: 1.3;
  transition: border-color var(--t-fast) var(--ease-quick), background var(--t-fast) var(--ease-quick);
}
.check-tile:hover { border-color: var(--line-strong); }
.check-tile:has(input:checked) { border-color: var(--action); background: var(--action-soft); color: var(--action-ink); }
.check-tile input { flex: none; }

/* ── The "when?" picker ───────────────────────────────────────────────────────
   Every number in this dialog belongs to one clock or the other, so the dialog
   says which before it asks anything. The customer's zone leads; the agent's
   own reading is the quiet confirmation underneath. */

.when { display: grid; gap: var(--s4); }
.when-intro { color: var(--ink-2); font-size: 13px; line-height: 1.5; margin: 0; }

.when-zone {
  display: flex; gap: var(--s3); align-items: flex-start;
  padding: var(--s4); border-radius: var(--r);
  background: var(--surface-sunk); border: 1px solid var(--line);
}
.when-zone-icon { color: var(--ink-3); flex: none; margin-top: 1px; }
.when-zone-head { font-size: 13px; font-weight: 600; }
.when-zone-now  { font-size: 12px; color: var(--ink-3); margin-top: 2px;
                  font-variant-numeric: tabular-nums; }

.when-quick { display: flex; flex-wrap: wrap; gap: var(--s2); }
.when-quick .btn { font-size: 12px; }

/* The reading, on both clocks. Their time is the answer; yours is the check. */
.when-echo { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); margin-top: var(--s2); }
.when-echo-their {
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.when-echo-mine {
  font-size: 12.5px; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* Columns an import kept that we have no field for. One line each, heading then
   value, so it reads the way the spreadsheet it came from reads. */
.other-details {
  background: var(--surface-sunk); border: 1px solid var(--line);
  border-radius: var(--r); padding: var(--s3) var(--s4);
}
.other-line {
  margin: 0; padding: var(--s1) 0; font-size: 12.5px; line-height: 1.5;
  overflow-wrap: anywhere;
}
.other-line + .other-line { border-top: 1px solid var(--line-hairline); }
.other-key { font-weight: 600; color: var(--ink-2); margin-right: var(--s2); }
.other-val { color: var(--ink); }

/* Opens the rest in place. A button, because it does something. */
.other-more {
  margin-top: var(--s2); padding: 0; background: none; border: 0;
  font-size: 12px; font-weight: 600; color: var(--action);
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.other-more:hover { color: var(--action-hover); }
.console .other-more { color: var(--console-ink); }

/* Inside the dark console the same block has to read on the dark ground. */
.console .other-details { background: var(--console-3); border-color: var(--console-line); }
.console .other-key { color: var(--console-ink-2); }
.console .other-val { color: var(--console-ink); }

/* ── The funnel ───────────────────────────────────────────────────────────────
   Bars, not a tapering trapezoid. A shape that narrows encodes the same number
   twice — width AND position — and reads worst exactly where the numbers get
   small, which is where the interesting losses are. */

.funnel { display: grid; gap: var(--s5); }
.funnel-head { display: flex; align-items: baseline; gap: var(--s2); }
.funnel-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.funnel-n { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.funnel-pct {
  font-size: 12px; color: var(--ink-3); min-width: 128px; text-align: right;
  font-variant-numeric: tabular-nums;
}
.funnel-track {
  margin-top: var(--s2); height: 12px; border-radius: var(--r-pill);
  background: var(--line-hairline); overflow: hidden;
}
.funnel-track i {
  display: block; height: 100%; background: var(--chip-s);
  transition: width 460ms cubic-bezier(.16,1,.3,1);
}
/* The drop-off, named. A funnel that only shows what survived hides the number
   worth acting on. */
.funnel-lost { margin-top: var(--s2); font-size: 11.5px; color: var(--ink-3); }

@media (max-width: 560px) {
  .funnel-pct { min-width: 0; }
}

/* ── Reaching a lead another way ─────────────────────────────────────────────
   A channel with nowhere to go stays visible and disabled with the reason on
   hover. Hiding it teaches an agent that the button moves around; showing it
   greyed teaches them this business has no email. */

.channel-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.channel-btn.is-off { opacity: .45; cursor: not-allowed; }
/* WhatsApp wears its own green — it is the one action that leaves the app, and
   the colour says so before the click does. Keyed on a class, not a position:
   the row's order is a layout decision and should not carry meaning. */
.channel-btn.is-whatsapp:not(.is-off) { color: #0F7B6C; }
.channel-btn.is-whatsapp:not(.is-off):hover { border-color: #0F7B6C; }

/* ── Compose ─────────────────────────────────────────────────────────────── */

.compose { display: grid; gap: var(--s4); }
.compose-to {
  font-size: 12px; color: var(--ink-3);
  padding-bottom: var(--s3); border-bottom: 1px solid var(--line-hairline);
}
.compose-count { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
/* Past two segments a text costs real money, so the count stops being grey. */
.compose-count.is-over { color: var(--d-notint-s); font-weight: 600; }

/* What the business actually receives, tokens resolved. The draft above is the
   template; this is the message. */
.compose-preview {
  background: var(--surface-sunk); border: 1px solid var(--line);
  border-radius: var(--r); padding: var(--s4);
  font-size: 13px; line-height: 1.6; white-space: pre-wrap;
  color: var(--ink); min-height: 46px;
}

.token-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.token-label {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3);
}
.token-chip {
  padding: 2px var(--s2); border-radius: var(--r-sm);
  background: var(--surface-sunk); border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; color: var(--ink-2); cursor: pointer;
  transition: border-color var(--t-fast) var(--ease-quick), color var(--t-fast) var(--ease-quick);
}
.token-chip:hover { border-color: var(--action); color: var(--action); }

.file-list { display: flex; flex-wrap: wrap; gap: var(--s2); }
.file-chip {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 3px var(--s3); border-radius: var(--r-pill);
  background: var(--action-soft); color: var(--action-ink);
  font-size: 11.5px; font-weight: 550;
}
.file-chip button {
  display: flex; background: none; border: 0; padding: 0;
  color: inherit; opacity: .7; cursor: pointer;
}
.file-chip button:hover { opacity: 1; }

/* ── Bulk sending ─────────────────────────────────────────────────────────── */

.audience {
  padding: var(--s4); border-radius: var(--r);
  background: var(--surface-sunk); border: 1px solid var(--line);
  display: grid; gap: var(--s1);
}
.audience-n { font-size: 13px; color: var(--ink-2); }
.audience-n b { font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 4px; }
.audience-sub { font-size: 12px; color: var(--ink-3); }
.audience-sample { font-size: 11.5px; color: var(--ink-3); margin-top: var(--s2); }

.run-head { display: flex; align-items: baseline; gap: var(--s2); font-size: 13px; }
.run-count { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.run-track {
  height: 8px; margin-top: var(--s2); border-radius: var(--r-pill);
  background: var(--line-hairline); overflow: hidden;
}
.run-track i {
  display: block; height: 100%; background: var(--action);
  transition: width 420ms cubic-bezier(.16,1,.3,1);
}
.run-stats { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s3); font-size: 11.5px; }

/* ── Inbox ────────────────────────────────────────────────────────────────── */

.msg-list { display: grid; }
.msg-row {
  display: grid; gap: 2px; width: 100%; text-align: left;
  padding: var(--s4) var(--s5);
  background: none; border: 0; border-bottom: 1px solid var(--line-hairline);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-quick);
}
.msg-row:hover { background: var(--surface-sunk); }
.msg-row:last-child { border-bottom: 0; }
/* Unread earns a marker, not just bold text — weight alone disappears in a
   list where every row is a name. */
.msg-row.is-unread { background: var(--action-soft); }
.msg-row.is-unread .msg-who::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--action); margin-right: var(--s2); vertical-align: middle;
}
.msg-top { display: flex; align-items: baseline; gap: var(--s2); }
.msg-who { font-size: 13px; font-weight: 600; color: var(--ink); }
.msg-when { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.msg-subject { font-size: 12.5px; font-weight: 550; color: var(--ink-2); }
.msg-preview {
  font-size: 12.5px; color: var(--ink-2); line-height: 1.45;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.msg-meta { font-size: 11px; color: var(--ink-3); }

/* Pick-one grid: the buttons ARE the answer, so they are the size of a target
   rather than a list item, and each wears the colour its reason reports in. */
.reason-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s2); }
.reason-btn {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s3) var(--s4); min-height: 46px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); color: var(--ink);
  font-size: 13px; font-weight: 550; text-align: left; line-height: 1.35;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease-quick), background var(--t-fast) var(--ease-quick);
}
.reason-btn::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--chip-s);
}
.reason-btn:hover { border-color: var(--chip-s); background: var(--chip-f); }

/* A colour chosen as a colour. Each swatch wears the token it stands for, so
   the choice is made by looking rather than by translating a name. */
.swatch-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.swatch {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: var(--chip-s);
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-quick), box-shadow var(--t-fast) var(--ease-quick);
}
.swatch:hover { transform: translateY(-1px); }
/* The tick is the ring, not a glyph: a check mark inside a dark swatch is
   unreadable on half the palette. */
.swatch.is-on {
  border-color: var(--surface);
  box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 1px rgb(0 0 0 / .08);
}

.cat-grid {
  display: grid; gap: var(--s4); padding: var(--s5);
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

/* A category on the Categories tab. Card rather than table row: the chip has to
   show its colour at the size it appears on a campaign. */
.cat-card {
  display: flex; flex-direction: column; gap: var(--s2);
  padding: var(--s4); min-height: 118px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface);
}
.cat-card.is-off { opacity: .6; }
.cat-card .cat-meta { font-size: 11.5px; color: var(--ink-3); }
.cat-card .cat-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }

/* A row in a clickable table that has nothing to open. */
.tbl tbody tr.row-inert { cursor: default; }

/* The disposition bar rises into reach when the call goes live — the page's one
   authored moment. Collapsing a grid row from 0fr to 1fr rather than animating a
   max-height keeps the reveal off the layout-thrash path, and removes the fixed
   ceiling that would have clipped the panel once an admin added more outcomes. */
.dispo-reveal {
  display: grid; grid-template-rows: 0fr;
  background: var(--console-2);
  border-top: 1px solid transparent;
  opacity: 0;
  transition: grid-template-rows var(--t-slow) var(--ease),
              opacity var(--t) var(--ease),
              border-top-color var(--t) var(--ease);
}
/* Open as soon as a lead is on screen. Gating these on a live call meant an
   agent could not mark a lead they reached another way, or correct one they had
   just mis-tagged — the flourish was costing them the function. */
.console.has-lead .dispo-reveal,
.console.is-live .dispo-reveal, .console.is-wrap .dispo-reveal {
  grid-template-rows: 1fr; opacity: 1; border-top-color: var(--console-line);
}
/* The clipping row. Padding lives on the inner block so nothing animates it. */
.dispo-bar { overflow: hidden; min-height: 0; }
.dispo-inner { padding: var(--s5); }

.dispo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-top: var(--s3); }
.dispo-btn {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s3); border-radius: var(--r);
  background: var(--console-3); color: var(--console-ink);
  font-size: 12px; font-weight: 550; text-align: left;
  border: 1px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.dispo-btn::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--chip-s); flex: none; }
.dispo-btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dispo-btn:hover { background: var(--console-line); }
/* What the lead is already marked as carries NO outline: the status chip in the
   console head says it in words, and a second marker on the button read as a
   selection the agent had made. Kept as aria-current for screen readers only. */
.dispo-btn.is-on { background: var(--chip-s); border-color: rgba(255,255,255,.25); color: #fff; font-weight: 650; }
.dispo-btn kbd {
  margin-left: auto; font-family: inherit; font-size: 10px; font-weight: 700;
  padding: 1px 4px; border-radius: var(--r-xs); background: var(--on-dark-raise); color: var(--console-ink-2);
}
.dispo-btn.is-on kbd { background: var(--on-dark-sink); color: rgba(255,255,255,.85); }

/* In-call controls. Hidden until the line is actually up, because a mute button
   that mutes nothing is worse than no button. */
.console-live { display: flex; gap: var(--s2); margin-top: var(--s3); }
.console-live .btn { flex: 1; }
.console-live .btn.is-on { background: var(--d-noanswer-s); border-color: var(--d-noanswer-s); color: #fff; }

/* Keypad for phone menus. Tabular figures so the columns do not shift. */
.keypad {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2);
  margin-top: var(--s3);
}
.keypad-key {
  height: 42px; border-radius: var(--r);
  background: var(--console-3); color: var(--console-ink);
  border: 1px solid var(--console-line);
  font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background var(--t-fast) var(--ease-quick);
}
.keypad-key:hover  { background: var(--console-line); }
.keypad-key:active { background: var(--action); border-color: var(--action); }

/* Briefly lit when the digit was sent from the physical keyboard, so typing
   gets the same acknowledgement as clicking. */
.keypad-key.is-sent { background: var(--action); border-color: var(--action); }

.keypad-sent {
  display: flex; align-items: baseline; gap: var(--s3);
  margin-top: var(--s3);
}
.keypad-sent .label { color: var(--console-ink-3); }
.keypad-sent .mono-num {
  color: var(--console-ink); font-size: 15px; letter-spacing: .18em;
  overflow-wrap: anywhere;
}

/* The lead's current status, in the console head where the agent looks. */
.console-status {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 2px var(--s3); border-radius: var(--r-sm);
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: var(--console-3); color: var(--console-ink-2);
}
.console-status::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--status-dot, var(--console-ink-3)); flex: none;
}

/* Notes autosave — the indicator replaces the save button it does not have. */
.notes-wrap { position: relative; }
.notes {
  width: 100%; min-height: 96px; padding: var(--s3); resize: vertical;
  background: var(--console-3); color: var(--console-ink);
  border: 1px solid var(--console-line); border-radius: var(--r);
  font-size: 13px; line-height: 1.55;
}
.notes::placeholder { color: var(--console-ink-3); }
.notes:focus { outline: none; border-color: var(--on-dark-focus);
               box-shadow: 0 0 0 3px var(--on-dark-focus-ring); }
.save-state {
  position: absolute; right: var(--s3); bottom: var(--s3);
  font-size: 11px; color: var(--console-ink-3);
  display: flex; align-items: center; gap: var(--s1);
  opacity: 0; transition: opacity var(--t) var(--ease); pointer-events: none;
}
.save-state.is-on { opacity: 1; }
.save-state svg { width: 11px; height: 11px; }
.save-state.is-saving svg { animation: spin 1s linear infinite; }

/* Light-surface twin, for the lead drawer */
.notes-light {
  background: var(--surface); color: var(--ink);
  border-color: var(--line-strong);
}
.notes-light::placeholder { color: var(--ink-3); }
.notes-light:focus { border-color: var(--action); box-shadow: 0 0 0 3px var(--action-soft); }
.notes-wrap.on-light .save-state { color: var(--ink-3); }

/* ── Call coach ─────────────────────────────────────────────────────────────
   One suggestion, sized to be read at a glance mid-sentence.
   ────────────────────────────────────────────────────────────────────────── */

.coach {
  margin: 0 var(--s6) var(--s4);
  padding: var(--s4) var(--s5);
  border-radius: var(--r-lg);
  background: var(--d-gate-f);
  border: 1px solid color-mix(in srgb, var(--d-gate-s) 22%, transparent);
}
.coach-head { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s2); }
.coach-head .label { color: var(--d-gate-i); }

/* The words to say. Large enough to read while talking. */
.coach-say {
  font-size: 15px; line-height: 1.55; color: var(--d-gate-i); font-weight: 550;
  white-space: pre-wrap;
}
.coach-why { margin-top: var(--s2); font-size: 12px; color: var(--d-gate-i); opacity: .75; }
.coach.is-thinking .coach-say { opacity: .5; font-style: italic; font-weight: 400; }

/* Could not answer. Present but recessive — the agent is on a call and this is
   not the thing that needs their attention. */
.coach.is-quiet { background: var(--surface-sunk); border-color: var(--line); }
.coach.is-quiet .coach-head .label,
.coach.is-quiet .coach-say { color: var(--ink-3); font-weight: 450; font-size: 13px; }
.coach.is-quiet .coach-why { color: var(--ink-3); opacity: .8; }

/* What they are likely to come back with. Each one opens the script that
   answers it, so the objection and its reply are one click apart. */
.coach-watch {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2);
  margin-top: var(--s3); padding-top: var(--s3);
  border-top: 1px solid color-mix(in srgb, var(--d-gate-s) 18%, transparent);
}
.coach-watch-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--d-gate-i); opacity: .7;
}
.coach-watch-chip {
  padding: 3px var(--s3); border-radius: var(--r-pill);
  background: var(--surface); color: var(--d-gate-i);
  border: 1px solid color-mix(in srgb, var(--d-gate-s) 25%, transparent);
  font-size: 11.5px; font-weight: 550; cursor: pointer;
  transition: background var(--t-fast) var(--ease-quick);
}
.coach-watch-chip:hover { background: var(--d-gate-f); }

/* ── Scripts window ─────────────────────────────────────────────────────────
   A window, not a drawer. The agent is mid-call and the console, the notes and
   the outcome buttons all have to stay reachable — so this floats, moves and
   resizes rather than claiming a side of the screen.
   ────────────────────────────────────────────────────────────────────────── */

.scripts-panel {
  position: fixed; z-index: var(--z-overlay);
  width: 440px; height: 560px;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  box-shadow: var(--lift-4);
  overflow: hidden;
  /* The browser's own corner grip; we only remember the result. */
  resize: both;
  min-width: 320px; min-height: 260px;
  animation: scripts-in var(--t) var(--ease) both;
}
@keyframes scripts-in { from { opacity: 0; transform: scale(.98); } }

/* While dragging, drop the shadow work and stop text selecting under the cursor. */
.scripts-panel.is-dragging { user-select: none; transition: none; box-shadow: var(--lift-3); }

.scripts-head {
  display: flex; align-items: flex-start; gap: var(--s3);
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--line-hairline);
  background: var(--surface-sunk);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.scripts-head.is-draggable { cursor: grab; touch-action: none; }
.scripts-panel.is-dragging .scripts-head { cursor: grabbing; }
.scripts-head h2 { font-size: 14px; }

/* The affordance that says "this moves". */
.scripts-grip { display: flex; color: var(--ink-3); margin-top: 2px; transform: rotate(90deg); }
.scripts-grip svg { width: 16px; height: 16px; }

.scripts-search { position: relative; display: flex; align-items: center; padding: var(--s4) var(--s5) var(--s3); }
.scripts-search > svg { position: absolute; left: calc(var(--s5) + var(--s3)); width: 15px; height: 15px;
                        color: var(--ink-3); pointer-events: none; }
.scripts-search .input { padding-left: var(--s8); }

/* The call's parts, as tabs. The page-level .tabs rule is built for a full
   page; inside a panel barely wider than a phone it needs to sit tighter and
   scroll sideways rather than wrap onto two rows and steal a line of script. */
.scripts-tabs {
  margin: 0 var(--s5) var(--s3);
  gap: 0;
  /* Wraps rather than scrolls. Six tabs need about 500px and the panel gives
     400, so a single row hides "Close" off the right edge — and a tab you
     cannot see is a tab you do not know exists, which is the whole point of
     putting them there. A second row costs 26px in a panel that is hundreds
     of pixels tall. */
  flex-wrap: wrap;
  flex: none;
}
.scripts-tabs .tab { padding: var(--s2) var(--s3); white-space: nowrap; font-size: 12.5px; }
.scripts-tabs .tab-count { margin-left: 5px; font-size: 10px; min-width: 16px; height: 16px; padding: 0 4px; }

/* Nothing behind it for the current search. Still there, still in the same
   place, just plainly not worth pressing. */
.tab.is-empty { opacity: .45; cursor: default; }
.tab.is-empty:hover { color: var(--ink-3); }

.scripts-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--s5) var(--s5); }

.script { padding: var(--s4) 0; border-bottom: 1px solid var(--line-hairline); }
.script:last-child { border-bottom: none; }
.script-head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s2); }
.script-head b { font-size: 13.5px; font-weight: 650; }
.script-trigger { font-size: 12px; color: var(--ink-3); margin-bottom: var(--s3); font-style: italic; }

/* The line itself, set to be read aloud at a glance. */
.script-body {
  padding: var(--s4);
  border-radius: var(--r);
  background: var(--surface-sunk);
  font-size: 13.5px; line-height: 1.6;
  color: var(--ink);
  display: grid; gap: var(--s3);
}
/* Spoken text keeps its own line breaks; everything else is laid out. */
.script-para { white-space: pre-wrap; }

/* "2 · THE FULL AUDIT" — which of the ways to open, or to offer, this is.
   A pill because an agent mid-call lands on it without reading, and as plain
   body text it was being scrolled straight past. */
.script-variant {
  display: flex; align-items: center; gap: var(--s2);
  margin-top: var(--s2);
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-2);
}
.script-variant:first-child { margin-top: 0; }
.script-num {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--action); color: #fff;
  font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0;
}

/* The agent's own instructions, never spoken. Set apart so they are never read
   out by mistake on a live call. */
.script-note {
  display: flex; gap: var(--s3);
  font-size: 12px; line-height: 1.5; color: var(--ink-3);
  padding-left: var(--s4);
  border-left: 2px solid var(--line);
}
.script-actions { display: flex; gap: var(--s2); margin-top: var(--s3); }

/* Too narrow to place a window on: it becomes a sheet instead. */
.scripts-panel.is-sheet {
  inset: var(--topbar-h) 0 0 0;
  width: auto; height: auto; resize: none;
  border: none; border-radius: 0;
}
@media (max-width: 720px) {
  .scripts-panel { inset: var(--topbar-h) 0 0 0; width: auto; height: auto;
                   resize: none; border: none; border-radius: 0; }
  .scripts-head.is-draggable { cursor: default; }
}

/* ── Call context ───────────────────────────────────────────────────────────
   Why this lead is on screen, read before the number is dialled.
   ────────────────────────────────────────────────────────────────────────── */

.context {
  display: grid; gap: var(--s2);
  padding: var(--s4) var(--s5);
  border-radius: var(--r);
  background: var(--surface-sunk);
  font-size: 13px; color: var(--ink-2);
}
.context-head { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.context-head svg { width: 15px; height: 15px; flex: none; }
.context-head b { color: var(--ink); font-weight: 650; }
.context-head .muted { font-size: 12.5px; }
.context-foot { font-size: 12.5px; }
.context-foot b { color: var(--ink); font-weight: 600; }

/* What they actually said, in their words. */
.context-quote {
  padding: var(--s2) var(--s4);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 13px; color: var(--ink);
  white-space: pre-wrap;
}

.context-callback { background: var(--d-later-f); color: var(--d-later-i); }
.context-callback .context-head b, .context-callback .context-foot b { color: var(--d-later-i); }
.context-callback .context-head .muted { color: var(--d-later-i); opacity: .8; }
.context-retry    { background: var(--d-noanswer-f); color: var(--d-noanswer-i); }
.context-retry .context-head b, .context-retry .context-foot b { color: var(--d-noanswer-i); }
.context-retry .context-head .muted { color: var(--d-noanswer-i); opacity: .8; }

/* ── Transcript ─────────────────────────────────────────────────────────────
   A conversation, not a log. Two speakers, opposed sides, so the shape of who
   is talking is readable without reading.
   ────────────────────────────────────────────────────────────────────────── */

.transcript {
  max-height: 420px; overflow-y: auto; overscroll-behavior: contain;
  padding: var(--s5) var(--s6);
  display: flex; flex-direction: column; gap: var(--s4);
  scroll-behavior: smooth;
}
.transcript:empty { display: none; }

/* The same bubbles as a call transcript, reused for a written conversation in
   a modal. Capped and scrollable: a long thread should not push the reply
   button off the screen. */
/* ── The findings panel ──────────────────────────────────────────────────────
   The lead card answers two questions, and they want telling apart at a glance
   mid-call: who this business is, and what is wrong with their site. The second
   gets its own ground — a sunk panel with a hairline and a stated heading — so
   the eye lands on it without reading a word. Warm, not alarming: these are
   opportunities to sell against, not errors in our own app. */
.findings {
  background: var(--surface-sunk);
  border: 1px solid var(--line-hairline);
  border-radius: var(--r-lg);
  padding: var(--s5) var(--s6) var(--s6);
}
.findings-head {
  display: flex; align-items: center; gap: var(--s3);
  margin-bottom: var(--s5);
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--d-noanswer-i);
}
.findings-head svg { width: 14px; height: 14px; flex: none; }
/* Each finding's own mark picks up the same warmth, so the panel reads as one
   thing rather than a grid of unrelated cards that happen to share a box. */
.findings .muted svg { color: var(--d-noanswer-s); }
.findings .fact-list li::before { background: var(--d-noanswer-s); }

/* The findings inside one column's card. A column that holds five of them is
   a list, and reads like one — run together on a single line it is a wall. */
.fact-list {
  margin: 2px 0 0; padding: 0; list-style: none;
  display: grid; gap: 3px;
  font-size: 13px; line-height: 1.45;
}
.fact-list li { display: flex; gap: var(--s3); align-items: baseline; }
.fact-list li::before {
  content: ''; flex: none; width: 3px; height: 3px; margin-top: 7px;
  border-radius: 50%; background: var(--ink-3);
}

.said-stream {
  display: flex; flex-direction: column; gap: var(--s4);
  max-height: 46vh; overflow-y: auto; overscroll-behavior: contain;
  padding-right: var(--s2);
}

/* A button that reads as text, for a control that reveals rather than acts —
   "show quoted text" is not a thing you press by mistake. */
.linkish {
  background: none; border: 0; padding: 0;
  color: var(--action); font-weight: 550; text-align: left;
  cursor: pointer;
}
.linkish:hover { text-decoration: underline; }

/* Marks where one conversation ends and the next begins, so a transcript kept
   across several calls does not read as one long run-on exchange. A rule with
   the label sitting in it — quiet enough to scan past, clear enough to orient. */
.tr-divider {
  align-self: stretch;
  display: flex; align-items: center; gap: var(--s3);
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3);
  margin: var(--s2) 0;
}
.tr-divider::before,
.tr-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.said { display: flex; flex-direction: column; gap: var(--s1); max-width: 78%; }
.said-customer { align-self: flex-start; }
.said-agent    { align-self: flex-end; align-items: flex-end; }

.said-who {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3);
  display: flex; align-items: center; gap: var(--s2);
}
.said-who time { font-variant-numeric: tabular-nums; opacity: .75; letter-spacing: 0; text-transform: none; }

.said-text {
  padding: var(--s3) var(--s4);
  border-radius: var(--r-lg);
  font-size: 13.5px; line-height: 1.55;
  overflow-wrap: anywhere;
}
/* The customer is the one being listened to, so they get the solid ground. */
.said-customer .said-text {
  background: var(--surface-sunk); border: 1px solid var(--line);
  border-bottom-left-radius: var(--r-sm); color: var(--ink);
}
.said-agent .said-text {
  background: var(--action); color: #fff;
  border-bottom-right-radius: var(--r-sm);
}

/* An utterance that is still being transcribed. */
.said.is-pending .said-text { opacity: .55; font-style: italic; }

.transcript-live {
  position: sticky; bottom: 0;
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s2) 0 0;
  font-size: 12px; color: var(--ink-3);
  background: linear-gradient(to top, var(--surface) 60%, transparent);
}
.transcript-live .dots { display: inline-flex; gap: 3px; }
.transcript-live .dots i {
  width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3);
  animation: said-pulse 1.2s var(--ease) infinite;
}
.transcript-live .dots i:nth-child(2) { animation-delay: .15s; }
.transcript-live .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes said-pulse { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

/* ── Queue strip ───────────────────────────────────────────────────────── */

.strip {
  display: flex; align-items: center; gap: var(--s4);
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line-hairline);
  cursor: pointer; text-align: left; width: 100%;
  transition: background var(--t-fast) var(--ease-quick);
}
.strip:hover { background: var(--surface-sunk); }
.strip.is-current { background: var(--action-soft); }
.strip.is-done { opacity: .58; }
.strip-n {
  font-family: 'Archivo Narrow', sans-serif; font-size: 12px; font-weight: 700;
  color: var(--ink-3); min-width: 30px; font-variant-numeric: tabular-nums;
}
.strip.is-current .strip-n { color: var(--action-ink); }

/* ── Timeline ──────────────────────────────────────────────────────────── */

.timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 22px 1fr; gap: var(--s4); padding-bottom: var(--s5); }
.tl-rail { display: flex; flex-direction: column; align-items: center; gap: var(--s1); }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--chip-s, var(--ink-3)); margin-top: 5px; flex: none; }
.tl-line { flex: 1; width: 1px; background: var(--line); min-height: 14px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item:last-child .tl-line { display: none; }
.tl-when { font-size: 12px; color: var(--ink-3); }
.tl-what { font-size: 13px; margin-top: 1px; }
.tl-note { margin-top: var(--s2); padding: var(--s3); border-radius: var(--r-sm); background: var(--surface-sunk); font-size: 12px; color: var(--ink-2); white-space: pre-wrap; }

/* ── Meter (targets, leaderboard) ──────────────────────────────────────── */

/* The parent owns the rounded ends and the clip, so the fill can be a plain
   scaled block — transform composites, where an animated width does not. */
.meter { height: 6px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.meter > i {
  display: block; height: 100%; width: 100%;
  background: var(--meter, var(--action));
  transform: scaleX(var(--fill, 0)); transform-origin: left center;
  transition: transform var(--t-slow) var(--ease);
}
.meter-hit { --meter: var(--d-mockup-s); }
.meter-near { --meter: var(--d-noanswer-s); }

/* ── Tabs ──────────────────────────────────────────────────────────────── */

.tabs { display: flex; gap: var(--s1); border-bottom: 1px solid var(--line); margin-bottom: var(--s6); }
.tab {
  padding: var(--s3) var(--s4); margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-size: 13px; font-weight: 550; color: var(--ink-3);
  transition: color var(--t-fast), border-color var(--t-fast);
  text-decoration: none;
}
.tab:hover { color: var(--ink); }
.tab.is-on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 650; }

/* How many are waiting on a tab you are not looking at. Sits beside the label
   rather than replacing it, because the label is what you aim for. Quiet by
   default; `is-due` when something is genuinely unread. */
.tab-count {
  margin-left: var(--s2);
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  background: var(--surface-sunk); color: var(--ink-3);
  vertical-align: 1px;
}
.tab-count.is-due { background: var(--d-notint-s); color: #fff; }

/* ── Gate ───────────────────────────────────────────────────────────────────
   The sign-in screen is the console before the shift starts: the same charcoal
   layering as the call panel, with the tally light unlit until credentials are
   accepted. It borrows the product's own vocabulary instead of being a white
   card floating on a dark field.
   ────────────────────────────────────────────────────────────────────────── */

.gate {
  min-height: 100vh; display: grid; place-items: center;
  padding: var(--s7) var(--s6); background: var(--console);
}
.gate-card { width: 100%; max-width: 396px; }

/* Brand lockup: drawn mark, then DIVIGI at 700 and Dialer at 400, one size. */
.gate-brand {
  display: flex; align-items: center; justify-content: center; gap: var(--s4);
  margin-bottom: var(--s7); color: var(--console-ink);
}
.gate-mark {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-lg);
  background: var(--console-3); border: 1px solid var(--console-line);
  color: var(--console-ink);
}
.gate-mark svg { width: 20px; height: 20px; }
.gate-word { font-size: 22px; letter-spacing: -.015em; line-height: 1; }
.gate-word b { font-weight: 700; }
.gate-word span { font-weight: 400; color: var(--console-ink-2); }

.gate-panel {
  background: var(--console-2);
  border: 1px solid var(--console-line);
  border-radius: var(--r-xl);
  box-shadow: var(--lift-4);
  overflow: hidden;
}
.gate-panel-head {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s4) var(--s5);
  background: var(--console);
  border-bottom: 1px solid var(--console-line);
}
.gate-panel-head .label { color: var(--console-ink-quiet); }

/* The same tally light the call console uses, driven from the gate's state. */
.gate.is-checking .tally {
  background: var(--d-noanswer-s); box-shadow: 0 0 0 4px rgba(161,98,7,.3);
  animation: pulse 1s var(--ease) infinite;
}
.gate.is-ok .tally { background: var(--live); box-shadow: 0 0 0 4px var(--live-glow); }
.gate-panel-body { padding: var(--s7) var(--s6) var(--s6); display: grid; gap: var(--s5); }

.gate-field > label {
  display: block; margin-bottom: var(--s2);
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--console-ink-2);
}
.gate-input {
  width: 100%; height: 42px; padding: 0 var(--s4);
  background: var(--console-3); color: var(--console-ink);
  border: 1px solid var(--console-line); border-radius: var(--r);
  font-size: 14px;
  transition: border-color var(--t-fast) var(--ease-quick), box-shadow var(--t-fast) var(--ease-quick);
}
.gate-input::placeholder { color: var(--console-ink-quiet); }
.gate-input:hover { border-color: #444A53; }
.gate-input:focus {
  outline: none; border-color: var(--on-dark-focus);
  box-shadow: 0 0 0 3px var(--on-dark-focus-ring);
}
.gate-input[aria-invalid="true"] { border-color: var(--on-dark-bad); }
/* A rejected field keeps its own colour when focused, rather than showing a red
   border and a blue ring arguing with each other. */
.gate-input[aria-invalid="true"]:focus {
  border-color: var(--on-dark-bad); box-shadow: 0 0 0 3px rgba(251,113,133,.18);
}

/* The password field carries its own reveal control. */
.gate-secret { position: relative; display: flex; align-items: center; }
.gate-secret .gate-input { padding-right: 44px; }
.gate-reveal {
  position: absolute; right: var(--s2);
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: var(--r-sm); color: var(--console-ink-quiet);
  transition: color var(--t-fast), background var(--t-fast);
}
.gate-reveal:hover { color: var(--console-ink); background: var(--on-dark-raise); }
.gate-reveal svg { width: 17px; height: 17px; }

.gate-note {
  display: flex; align-items: flex-start; gap: var(--s3);
  padding: var(--s3) var(--s4); border-radius: var(--r);
  font-size: 13px; line-height: 1.5;
}
.gate-note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.gate-note-bad  { background: rgba(251,113,133,.12); color: var(--on-dark-bad); }
.gate-note-warn { background: rgba(251,191,36,.12);  color: var(--on-dark-warn); }

.gate-submit {
  width: 100%; height: 44px; margin-top: var(--s1);
  border-radius: var(--r); border: 1px solid var(--action);
  background: var(--action); color: #fff;
  font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  transition: background var(--t) var(--ease-quick), border-color var(--t) var(--ease-quick);
}
.gate-submit:hover { background: var(--action-hover); border-color: var(--action-hover); }
.gate-submit:disabled { opacity: .6; cursor: not-allowed; }
/* The moment the line goes live, the button takes the console's green. */
.gate.is-ok .gate-submit { background: var(--live); border-color: var(--live); }

.gate-foot {
  margin-top: var(--s6); text-align: center;
  font-size: 12px; line-height: 1.6; color: var(--console-ink-quiet);
  /* The copy carries its own line break; the card width is the only limit it
     needs. A ch cap on top of that just forces a third, orphaned line. */
  text-wrap: pretty;
}
.gate-foot b { color: var(--console-ink-2); font-weight: 550; }

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1180px) {
  .dialer { grid-template-columns: minmax(0,1fr); }
  .console { position: static; order: -1; }
}

@media (max-width: 900px) {
  :root { --rail-w: 0px; }
  .rail {
    transform: translateX(-100%); width: 260px;
    transition: transform var(--t-slow) var(--ease);
    box-shadow: var(--lift-4);
  }
  body.rail-open .rail { transform: translateX(0); }
  body.rail-open::after {
    content: ''; position: fixed; inset: var(--topbar-h) 0 0 0;
    background: rgba(18,19,22,.4); z-index: calc(var(--z-rail) - 1);
  }
  .rail-toggle { display: inline-flex !important; }
  .main { margin-left: 0; }
  .page { padding: var(--s5) var(--s5) var(--s9); }
  .page-head { flex-direction: column; align-items: stretch; }
  .board { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .tile { min-height: 96px; padding: var(--s4); }
  .tile-value { font-size: 27px; }
  .filters .search-wrap { max-width: none; flex-basis: 100%; }
  .filter-count { margin-left: 0; }
  .pager { gap: var(--s3); }
  .whoami span.hide-sm { display: none; }
  /* The clock is a nicety; the name and the way out are not. */
  .topbar-clock-zone { display: none; }
}

@media (max-width: 560px) {
  .topbar { padding: 0 var(--s4); }
  /* The business name owns its line; the status chips drop beneath it. */
  .card-head { flex-direction: column; align-items: stretch; gap: var(--s3); }
  .card-head .row-tight { flex-wrap: wrap; }
  .brand-word > span { display: none; }
  .topbar-clock, .topbar-clock + .topbar-sep { display: none; }
  .board { grid-template-columns: 1fr 1fr; }
  .modal-foot { flex-wrap: wrap; }
  .modal-foot .btn { flex: 1 1 auto; }
  .dispo-grid { grid-template-columns: 1fr; }
  .toasts { left: var(--s4); right: var(--s4); bottom: var(--s4); }
  .toast { max-width: none; }
}

.rail-toggle { display: none; }

/* ── Print: an agent printing a call sheet should get the sheet ────────── */
@media print {
  .topbar, .rail, .filters, .pager, .console-actions, .toasts, .btn { display: none !important; }
  .main { margin: 0; padding: 0; }
  .card { box-shadow: none; border-color: var(--line-strong); }
  body { background: #fff; }
}

/* ── Audio check ────────────────────────────────────────────────────────────
   Three questions in the order an agent asks them: is the right mic open, how
   do I sound, will I hear them. Steps are separated by a rule rather than
   boxed, because a card inside a dialog is a box inside a box. */

.ac { display: flex; flex-direction: column; }
.ac-step { padding: var(--s6) 0; border-top: 1px solid var(--line-hairline); }
.ac-step:first-child { padding-top: 0; border-top: 0; }
.ac-step:last-child { padding-bottom: 0; }
.ac-step h3 {
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  color: var(--ink); margin: 0 0 var(--s3);
}
.ac-lead { margin: 0 0 var(--s4); font-size: 13px; color: var(--ink-2); max-width: 62ch; }
.ac-step .select { width: 100%; }

/* The level meter. The peak marker is what makes it readable at a glance:
   the fill answers "now", the marker answers "how loud did I just get". */
.meter {
  position: relative; height: 10px; margin: var(--s4) 0 var(--s3);
  border-radius: var(--r-pill); background: var(--surface-sunk);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.meter-fill {
  height: 100%; width: 0; border-radius: var(--r-pill);
  background: var(--d-meeting-s);
  transition: width 60ms linear, background-color 140ms ease;
}
.meter-fill.is-hot { background: var(--d-noanswer-s); }
.meter-peak {
  position: absolute; top: 0; bottom: 0; left: 0; width: 2px;
  background: var(--ink-3); border-radius: 1px;
  transition: left 90ms ease-out;
}

/* A choice that changes how the agent sounds, sitting with the thing that
   lets them hear the change. Wide target: it is pressed mid-shift, once. */
.ac-check {
  display: flex; gap: var(--s3); align-items: flex-start;
  margin-top: var(--s4); padding: var(--s3) var(--s4);
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface-sunk); cursor: pointer;
  max-width: 62ch;
}
.ac-check:hover { border-color: var(--line-strong); }
.ac-check input { margin-top: 2px; flex: none; width: 16px; height: 16px; cursor: pointer; }
.ac-check b { font-size: 13px; font-weight: 600; }

/* One line that says what the tool currently believes, and what to do if it is
   bad news. Tinted from the same status hues the dispositions use. */
.ac-note {
  font-size: 12.5px; line-height: 1.5; color: var(--ink-2);
  display: flex; gap: var(--s2); align-items: baseline; max-width: 62ch;
}
.ac-note::before {
  content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-3); transform: translateY(-1px);
}
.ac-note.is-good { color: var(--d-meeting-i); }
.ac-note.is-good::before { background: var(--d-meeting-s); }
.ac-note.is-warn { color: var(--d-noanswer-i); }
.ac-note.is-warn::before { background: var(--d-noanswer-s); }
.ac-note.is-bad  { color: var(--d-notint-i); }
.ac-note.is-bad::before  { background: var(--d-notint-s); }
.ac-note.is-rec  { color: var(--d-notint-i); font-weight: 550; }
.ac-note.is-rec::before  { background: var(--d-notint-s); animation: acPulse 1s ease-in-out infinite; }

@keyframes acPulse { 50% { opacity: .25; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
