/* JAX Dashboard — visual layer "SIGNAL" (2026-11-13, spec: HQ1/JAX-Agents/DESIGN-V4/APP-CONCEPTS.md §3).
   A night-mode trading app for selling: deep violet-ink canvas (not black, not graphite), electric violet (volt) and
   signal blue as the loud colours, ice for live/positive, magenta (flare) only for streaks, milestones and Sold.
   Mona Sans (wide, heavy numerals) for everything; Geist Mono only for phone numbers and key hints.
   Night is the default; Day (lavender-grey, white surfaces) is the toggle; Device follows the phone.
   No gradients, no glows: rich solid colour, surface steps for depth, 4 px "ledge" under primary keys.
   Tokens only: every raw colour lives in the token blocks below. */

@font-face { font-family: "Mona Sans"; src: url("../fonts/mona-sans-vf.woff2") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* Signal Night (default) */
:root {
  color-scheme: dark;
  --bg: #0E0C1F; --bg-2: #15122B; --bg-3: #1E1A3A; --bg-4: #2A2550;
  --line: #2B2748; --ctrl: #6A63A0;
  --ink: #F4F3FF; --ink-2: #B9B5D9; --ink-3: #9894BE;
  --volt: #6B4BFF; --volt-ledge: #4B30C9; --volt-ink: #AE9BFF; --on-volt: #FFFFFF;
  --signal: #6FA8FF; --ice: #5CE1FF; --flare: #FF6CBE; --on-flare: #0E0C1F; --on-ice: #0E0C1F;
  --warn: #FF9F43; --bad: #FF6A8A; --focus: #AE9BFF;
  --volt-soft: rgba(107, 75, 255, .2); --signal-soft: rgba(61, 139, 255, .16); --ice-soft: rgba(92, 225, 255, .13); --flare-soft: rgba(255, 79, 176, .14); --warn-soft: rgba(255, 159, 67, .14); --bad-soft: rgba(255, 92, 122, .14);
  --island: rgba(30, 26, 58, .88); --veil: rgba(255, 255, 255, .16); --hdr: rgba(14, 12, 31, .92); --edge-hi: inset 0 1px 0 rgba(255, 255, 255, .05);
  --sh-float: none; --sh-menu: 0 0 0 1px var(--line);
  --scrim: rgba(8, 6, 20, .72);
  --btn-edge: inset 0 1px 0 rgba(255, 255, 255, .05); --tile-bg: var(--bg-3); --tile-edge: none; --island-edge: inset 0 0 0 1px var(--line); --card-sh: inset 0 1px 0 rgba(255, 255, 255, .05); --dock-sh: inset 0 1px 0 rgba(255, 255, 255, .05); --key-bg: var(--bg-3); --key-edge: none; --mark-tile-bg: transparent; --auth-tile: 72px; --stage-bg: var(--bg-3);
}
/* Signal Day: chosen in Settings (data-theme="light"), or Device on a phone set to light. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F1F0FA; --bg-2: #FFFFFF; --bg-3: #FFFFFF; --bg-4: #E7E5F5;
  --line: #E2E0F0; --ctrl: #8E8AB0;
  --ink: #120F2B; --ink-2: #4A4670; --ink-3: #605C88;
  --volt: #6242F5; --volt-ledge: #4529C4; --volt-ink: #5233E0; --on-volt: #FFFFFF;
  --signal: #1A62D6; --ice: #066A85; --flare: #B01A72; --on-flare: #FFFFFF; --on-ice: #FFFFFF;
  --warn: #A14A07; --bad: #C21F43; --focus: #5233E0;
  --volt-soft: rgba(98, 66, 245, .1); --signal-soft: rgba(31, 111, 235, .1); --ice-soft: rgba(10, 127, 158, .1); --flare-soft: rgba(200, 30, 124, .09); --warn-soft: rgba(180, 83, 9, .1); --bad-soft: rgba(211, 38, 75, .09);
  --island: rgba(255, 255, 255, .92); --veil: rgba(255, 255, 255, .2); --hdr: rgba(241, 240, 250, .92); --edge-hi: none;
  --sh-float: 0 1px 2px rgba(18, 15, 43, .08), 0 12px 32px rgba(18, 15, 43, .14); --sh-menu: 0 1px 2px rgba(18, 15, 43, .08), 0 12px 32px rgba(18, 15, 43, .14);
  --scrim: rgba(18, 15, 43, .4);
  --btn-edge: inset 0 0 0 1px var(--line); --tile-bg: var(--bg-2); --tile-edge: inset 0 0 0 1px var(--line); --island-edge: 0 1px 2px rgba(18, 15, 43, .08), 0 12px 32px rgba(18, 15, 43, .14); --card-sh: 0 1px 2px rgba(18, 15, 43, .06); --dock-sh: 0 -1px 0 var(--line), 0 -8px 24px rgba(18, 15, 43, .06); --key-bg: var(--bg); --key-edge: inset 0 0 0 1px var(--line); --mark-tile-bg: var(--mark-tile); --auth-tile: 96px; --stage-bg: var(--bg);
}
@media (prefers-color-scheme: light) {
  :root[data-theme="device"] {
    color-scheme: light;
    --bg: #F1F0FA; --bg-2: #FFFFFF; --bg-3: #FFFFFF; --bg-4: #E7E5F5;
    --line: #E2E0F0; --ctrl: #8E8AB0;
    --ink: #120F2B; --ink-2: #4A4670; --ink-3: #605C88;
    --volt: #6242F5; --volt-ledge: #4529C4; --volt-ink: #5233E0; --on-volt: #FFFFFF;
    --signal: #1A62D6; --ice: #066A85; --flare: #B01A72; --on-flare: #FFFFFF; --on-ice: #FFFFFF;
    --warn: #A14A07; --bad: #C21F43; --focus: #5233E0;
    --volt-soft: rgba(98, 66, 245, .1); --signal-soft: rgba(31, 111, 235, .1); --ice-soft: rgba(10, 127, 158, .1); --flare-soft: rgba(200, 30, 124, .09); --warn-soft: rgba(180, 83, 9, .1); --bad-soft: rgba(211, 38, 75, .09);
    --island: rgba(255, 255, 255, .92); --veil: rgba(255, 255, 255, .2); --hdr: rgba(241, 240, 250, .92); --edge-hi: none;
    --sh-float: 0 1px 2px rgba(18, 15, 43, .08), 0 12px 32px rgba(18, 15, 43, .14); --sh-menu: 0 1px 2px rgba(18, 15, 43, .08), 0 12px 32px rgba(18, 15, 43, .14);
    --scrim: rgba(18, 15, 43, .4);
    --btn-edge: inset 0 0 0 1px var(--line); --tile-bg: var(--bg-2); --tile-edge: inset 0 0 0 1px var(--line); --island-edge: 0 1px 2px rgba(18, 15, 43, .08), 0 12px 32px rgba(18, 15, 43, .14); --card-sh: 0 1px 2px rgba(18, 15, 43, .06); --dock-sh: 0 -1px 0 var(--line), 0 -8px 24px rgba(18, 15, 43, .06); --key-bg: var(--bg); --key-edge: inset 0 0 0 1px var(--line); --mark-tile-bg: var(--mark-tile); --auth-tile: 96px; --stage-bg: var(--bg);
  }
}
/* Theme-independent: shape, type, motion, and the older component names mapped onto Signal (one system). */
:root {
  --surface: var(--bg-2); --surface-2: var(--bg-2); --sunken: var(--bg); --hover: var(--bg-3); --sel: var(--bg-4);
  --line-2: var(--line); --line-3: var(--ctrl); --ink-4: var(--ink-3); --on-primary: var(--on-volt);
  --primary: var(--volt); --primary-h: var(--volt); --primary-p: var(--volt-ledge); --primary-ink: var(--volt-ink); --primary-soft: var(--volt-soft); --primary-soft-2: var(--volt-soft); --badge-bg: var(--volt);
  --blue: var(--signal); --blue-ink: var(--signal); --blue-soft: var(--signal-soft);
  --purple: var(--volt-ink); --purple-ink: var(--volt-ink); --purple-soft: var(--volt-soft);
  --sky: var(--ice);
  --green: var(--ice); --green-ink: var(--ice); --green-soft: var(--ice-soft);
  --amber: var(--warn); --amber-ink: var(--warn); --amber-soft: var(--warn-soft);
  --red: var(--bad); --red-ink: var(--bad); --red-soft: var(--bad-soft);
  --slate-soft: var(--bg-3);
  --sh-1: none; --sh-2: none; --sh-3: var(--sh-float); --sh-btn: none; --sh-primary: none;
  --ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--focus);
  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px; --r: 12px; --r-full: 999px;
  --sans: "Mona Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1); --ease-in: cubic-bezier(.4, 0, 1, 1); --ease-press: cubic-bezier(.3, .7, .4, 1); --ease-win: cubic-bezier(.2, .9, .3, 1.25);
  --t-press: 100ms; --t-quick: 140ms; --t-fast: 140ms; --t-in: 220ms; --t-out: 110ms; --t-panel: 220ms; --t-exit: 160ms; --t-win: 240ms;
  --z-rail: 20; --z-bar: 10; --z-dock: 20; --z-island: 30; --z-drawer: 40; --z-toast: 50; --z-top: var(--z-bar); --z-scrim: var(--z-drawer);
  --ico: 18px; --ico-w-reg: 1.4px; --ico-w-semi: 1.65px; --ico-w-bold: 1.85px; --ico-w-heavy: 2.1px; --ico-w: var(--ico-w-reg); --ring-sm: 52px; --ring-xs: 36px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-14: 56px;
  --mark-tile: #15122B;
  --rail-w: 232px; --rail-min: 72px; --top-h: 56px; --tab-h: 64px; --dock-h: 0px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "ss01", "cv11"; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--primary-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
svg.ico { width: var(--ico); height: var(--ico); flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--r-sm); }
::selection { background: var(--primary-soft-2); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: var(--r); box-shadow: var(--sh-3); }
.skip:focus { top: 12px; }

/* ---------- type helpers ---------- */
.num, .mono { font-family: var(--sans); font-variant-numeric: tabular-nums lining-nums; letter-spacing: 0; }
.sans { font-family: var(--sans); }
.muted, .dim-text { color: var(--ink-3); }
.ink2 { color: var(--ink-2); }
.small { font-size: 13px; } .tiny { font-size: 12px; line-height: 1.45; }
.strong { font-weight: 600; } .block { display: block; } .nowrap { white-space: nowrap; }
.ellipsis, .ellipsis-td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 0; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ok-text { color: var(--green-ink); } .bad-text { color: var(--red-ink); } .warn-text { color: var(--amber-ink); }
.amber-text, .accent-text { color: var(--primary-ink); } .info-text { color: var(--blue-ink); } .ink2-text { color: var(--ink-2); }
.unit { font-size: .55em; font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.big { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.label-h { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.none { color: var(--ink-3); font-size: 13px; padding: 12px 0; }
.none.soft { display: flex; gap: 8px; align-items: center; }

/* ---------- layout helpers ---------- */
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between, .between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1 1 auto; min-width: 0; } .spacer, .pane-sp { flex: 1 1 auto; }
.wrap { flex-wrap: wrap; }
.grid { display: grid; gap: 16px; } .g2, .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.divider { height: 1px; background: var(--line); margin: 8px 0; border: 0; }

/* ---------- buttons ---------- */
.btn { --b: var(--line-2); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--b); background: var(--surface); color: var(--ink); font-weight: 550; font-size: 14px; line-height: 1; white-space: nowrap; box-shadow: var(--sh-btn); text-decoration: none; transition: transform var(--t-fast) var(--ease); }
.btn:hover { background: var(--hover); border-color: var(--line-3); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn .ico { width: 16px; height: 16px; }
.btn.primary { border-color: transparent; background: var(--volt); color: var(--on-primary); box-shadow: var(--sh-primary); }
.btn.primary:hover { background: var(--volt); }
.btn.primary:focus-visible { box-shadow: var(--sh-primary); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--hover); color: var(--ink); }
.btn.danger { color: var(--red-ink); }
.btn.danger.solid, .btn.danger.primary { background: var(--red); border-color: var(--red); color: var(--on-volt); box-shadow: none; }
.btn.danger.solid:hover { background: var(--red-ink); }
.btn.sm { min-height: 30px; padding: 0 10px; font-size: 13px; gap: 6px; border-radius: var(--r-sm); }
.btn.lg { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn.icon-btn { padding: 0; width: 36px; }
.btn.icon-btn.sm { width: 30px; }
.btn .kc { margin-left: 2px; }
.btn.primary .kc { background: var(--veil); border-color: var(--veil); color: var(--on-volt); box-shadow: none; }
.btn.done { border-color: var(--green); color: var(--green-ink); }
.btn.primary.done { background: var(--green); color: var(--on-volt); }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary-ink); font-weight: 550; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.done-tick { animation: pop var(--t-in) var(--ease); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* ---------- forms ---------- */
.input { width: 100%; min-height: 38px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink); font-size: 14px;   }
.input::placeholder { color: var(--ink-3); opacity: .85; }
.input:hover { border-color: var(--line-3); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.input[aria-invalid="true"] { border-color: var(--red); }
textarea.input { resize: vertical; line-height: 1.5; }
select.input { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238A85B0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: calc(100% - 14px) 50%; background-size: 12px 8px; background-repeat: no-repeat; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, label.lbl { font-size: 13px; font-weight: 550; color: var(--ink-2); }
.hint { font-size: 12px; color: var(--ink-3); }
.err { font-size: 12.5px; color: var(--red-ink); min-height: 0; }
.err:empty { display: none; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); width: 16px; height: 16px; margin: 0; }
.check { display: inline-flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 2px; }
.shake { animation: shake 240ms var(--ease); }
@keyframes shake { 20% { transform: translateX(-6px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-3px); } }
/* switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 550; font-size: 14px; min-height: 36px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; width: 38px; height: 22px; border-radius: var(--r-full); background: var(--line-3);  flex: none; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--on-volt); transition: transform var(--t-in) var(--ease); }
.switch input:checked + .switch-ui { background: var(--primary); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-ui { box-shadow: var(--ring); }
/* segmented control */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--sunken); border: 1px solid var(--line); border-radius: var(--r); }
.seg button, .seg a { border: 0; background: transparent; color: var(--ink-2); font-weight: 550; font-size: 13px; padding: 0 12px; min-height: 30px; border-radius: var(--r-sm); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;  }
.seg button:hover { color: var(--ink); }
.seg [aria-checked="true"], .seg [aria-selected="true"], .seg [aria-pressed="true"], .seg .on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.seg.mini button { min-height: 26px; padding: 0 10px; font-size: 12.5px; }

/* ---------- badges, dots, key hints ---------- */
.tag { --c: var(--ink-3); --bgc: var(--slate-soft); --fg: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--r-full); background: var(--bgc); color: var(--fg); font-size: 12px; font-weight: 550; line-height: 1; white-space: nowrap; vertical-align: middle; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); flex: none; }
.tag.ok { --c: var(--green); --bgc: var(--green-soft); --fg: var(--green-ink); }
.tag.bad { --c: var(--red); --bgc: var(--red-soft); --fg: var(--red-ink); }
.tag.warn { --c: var(--amber); --bgc: var(--amber-soft); --fg: var(--amber-ink); }
.tag.info { --c: var(--blue); --bgc: var(--blue-soft); --fg: var(--blue-ink); }
.tag.amber, .tag.accent { --c: var(--primary); --bgc: var(--primary-soft); --fg: var(--primary-ink); }
.tag.purple { --c: var(--purple); --bgc: var(--purple-soft); --fg: var(--purple-ink); }
.tag.plain { --c: var(--ink-4); }
.sq { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-4); flex: none; }
.sq.ok { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); } .sq.bad { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); } .sq.warn { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); } .sq.info { background: var(--blue); }
.kc { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 4px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--surface); color: var(--ink-2); font: 500 11px/1 var(--mono); box-shadow: none; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-full); background: var(--badge-bg); color: var(--on-volt); font: 700 11px/1 var(--sans); }

/* ---------- cards ---------- */
.pane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); min-width: 0; display: flex; flex-direction: column; position: relative; }
.pane:focus-visible { outline: none; box-shadow: var(--sh-1), var(--ring); }
.pane-h { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pane-t { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.pane-ico { width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--primary-soft); color: var(--primary-ink); display: grid; place-items: center; }
.pane-n { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: var(--r-full); background: var(--sunken); color: var(--ink-2); font-size: 12px; font-weight: 500; }
.pane-src { font-size: 12px; color: var(--ink-3); }
.pane-a { display: flex; gap: 8px; align-items: center; }
.pane-b { padding: 16px; min-width: 0; flex: 1 1 auto; }
.pane-pad { padding: 16px; }
.sec { display: flex; flex-direction: column; gap: 8px; }
.sec + .sec { margin-top: 20px; }
.sec-t { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .01em; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 16px; }
/* key:value */
.kv { display: grid; grid-template-columns: 1fr; gap: 0; }
.kv-r { display: grid; grid-template-columns: minmax(96px, 34%) minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.kv-r:last-child { border-bottom: 0; }
.kv dt { font-size: 13px; color: var(--ink-3); }
.kv dd { font-size: 14px; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.kv dd a { display: inline-flex; align-items: center; gap: 4px; }
.kv dd a .ico { width: 13px; height: 13px; }
/* figures */
.fig { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fig-l { font-size: 12.5px; font-weight: 500; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.fig-v { font-size: 26px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); line-height: 1.15; }
.fig-v small { font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; font-family: var(--sans); }
.fig-s { font-size: 12px; color: var(--ink-3); }
.fig.ok .fig-v, .fig.win .fig-v { color: var(--green-ink); } .fig.bad .fig-v { color: var(--red-ink); } .fig.warn .fig-v { color: var(--amber-ink); } .fig.amber .fig-v { color: var(--primary-ink); }
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; }
/* tables */
.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.t th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); color: var(--ink-3); font-weight: 550; font-size: 12px; text-align: left; padding: 0 12px; height: 36px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 0 12px; height: 44px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink); }
.t tbody tr {  }
.t tbody tr:hover td { background: var(--hover); }
.t tbody tr:last-child td { border-bottom: 0; }
.t .n { text-align: right; font-variant-numeric: tabular-nums; }
.t th.n { font-family: var(--sans); }
.t tr.cursor td, .t tr.cur td, .t tr[aria-selected="true"] td { background: var(--sel); }
.t tr.vspace td { padding: 0; border: 0; height: auto; }
.t caption { text-align: left; }
.sort-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; display: inline-flex; gap: 4px; align-items: center; cursor: pointer; }
.sort-btn:hover { color: var(--ink); }
th[aria-sort] { color: var(--ink); }
.tscroll { overflow: auto; }
.list { display: flex; flex-direction: column; }
.list > li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.item { color: inherit; }
/* banners */
.banner { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--r); background: var(--sunken); color: var(--ink-2); font-size: 13.5px; border: 1px solid var(--line); }
.banner .ico { flex: none; }
.banner.bad { background: var(--red-soft); color: var(--red-ink); border-color: transparent; }
.banner.warn { background: var(--amber-soft); color: var(--amber-ink); border-color: transparent; }
.banner.ok { background: var(--green-soft); color: var(--green-ink); border-color: transparent; }
.banner.info { background: var(--blue-soft); color: var(--blue-ink); border-color: transparent; }
.oops { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 8px 0; }
/* empty */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 32px 16px; max-width: 420px; margin: 0 auto; }
.empty-ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--volt-soft); color: var(--primary-ink); margin-bottom: 8px; box-shadow: inset 0 0 0 1px var(--primary-soft-2); }
.empty-ico .ico { width: 22px; height: 22px; }
.empty.good .empty-ico { color: var(--green-ink); background: var(--green-soft); box-shadow: none; }
.empty-t, .empty strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.empty p { font-size: 13.5px; color: var(--ink-3); }
.empty .btn { margin-top: 10px; }
.empty-k { display: none; }
/* skeletons */
.skel-rows { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.skel { height: 12px; border-radius: 8px; background: var(--sunken); animation: shimmer 1.4s ease-in-out infinite; }
.skel.w90 { width: 90%; } .skel.w80 { width: 80%; } .skel.w75 { width: 75%; } .skel.w70 { width: 70%; } .skel.w60 { width: 60%; } .skel.w85 { width: 85%; } .skel.w40 { width: 40%; }
@keyframes shimmer { 50% { opacity: .55; } }
/* changed-data highlight */
.flash { position: relative; }
.flash::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--primary); opacity: 0; pointer-events: none; animation: flash 300ms var(--ease); }
.flash-ok::after { background: var(--green); }
.flash-bad::after { background: var(--red); }
@keyframes flash { 0% { opacity: .14; } 100% { opacity: 0; } }
.flash::after { animation-duration: 240ms; }

/* ---------- charts ---------- */
.spark { overflow: visible; }
.spark-s0 { stop-color: var(--primary); stop-opacity: .3; } .spark-s1 { stop-color: var(--primary); stop-opacity: 0; }
.spark.tone-blue .spark-s0, .spark.tone-blue .spark-s1 { stop-color: var(--blue); } .spark.tone-purple .spark-s0, .spark.tone-purple .spark-s1 { stop-color: var(--purple); }
.spark-line { fill: none; stroke: var(--primary); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.spark.tone-blue .spark-line { stroke: var(--blue); } .spark.tone-purple .spark-line { stroke: var(--purple); }
.spark-base { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.spark-dot { fill: var(--surface); stroke: var(--primary); stroke-width: 1.75; vector-effect: non-scaling-stroke; }
.ring { overflow: visible; }
.ring-track { stroke: var(--sunken); }
.ring.none .ring-track { stroke: var(--line-2); stroke-dasharray: 3 4; }
.ring-arc { transition: stroke-dashoffset 600ms var(--ease); }

.ring.done .ring-s0, .ring.done .ring-s1, .ring.done .ring-s2 { stop-color: var(--green); }
.ring-wrap { position: relative; display: inline-grid; place-items: center; flex: none; }
.ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.ring-n { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.ring-g { font-size: 11px; color: var(--ink-3); }
.stack-bar { display: flex; height: 10px; border-radius: var(--r-full); overflow: hidden; background: var(--sunken); gap: 2px; }
.sb-seg { min-width: 4px; background: var(--primary); }
.sb-seg.tone-blue { background: var(--blue); } .sb-seg.tone-purple { background: var(--purple); } .sb-seg.tone-sky { background: var(--sky); } .sb-seg.tone-green { background: var(--green); } .sb-seg.tone-slate { background: var(--ink-4); } .sb-seg.tone-indigo2 { background: var(--volt-ink); }
.heat { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; min-width: 110px; }
.heat-c { height: 14px; border-radius: 3px; background: var(--sunken); }
.heat-c.l1 { background: var(--primary-soft-2); } .heat-c.l2 { background: color-mix(in srgb, var(--primary) 45%, var(--surface)); } .heat-c.l3 { background: color-mix(in srgb, var(--primary) 72%, var(--surface)); } .heat-c.l4 { background: var(--primary); }
.hbar { display: inline-block; width: 100%; max-width: 160px; height: 6px; border-radius: var(--r-full); background: var(--sunken); overflow: hidden; vertical-align: middle; }
.hbar > span { display: block; height: 100%; width: 100%; background: var(--volt); transform-origin: left; border-radius: var(--r-full); }
.hbar.ok > span { background: var(--green); } .hbar.bad > span { background: var(--red); } .hbar.warn > span { background: var(--amber); }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--on-volt); flex: none; letter-spacing: .02em; }
.avatar.a0 { background: var(--volt); } .avatar.a1 { background: var(--signal); } .avatar.a2 { background: var(--volt-ledge); }
.avatar.a3 { background: var(--bg-4); } .avatar.a4 { background: var(--signal); } .avatar.a5 { background: var(--volt-ledge); }

/* ---------- logo ---------- */
.lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.mark-chip { display: inline-grid; place-items: center; border-radius: 8px; padding: 0; box-shadow: none; }
.mark-chip .logo-mark { border-radius: 8px; }
.wordmark { font-weight: 650; font-size: 15px; letter-spacing: -.015em; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); grid-template-rows: var(--top-h) minmax(0, 1fr); grid-template-areas: "rail top" "rail main"; min-height: 100vh; min-height: 100dvh; }
.shell.nav-min { --rail-w: var(--rail-min); }
.rail { grid-area: rail; position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 16px; background: var(--surface-2); border-right: 1px solid var(--line); z-index: var(--z-rail); overflow-y: auto; overflow-x: hidden; }
.rail-top { display: flex; align-items: center; gap: 6px; height: 40px; margin: 0 0 14px 4px; }
.rail-top .brand { display: flex; align-items: center; min-width: 0; flex: 1 1 auto; border-radius: var(--r); }
.rail-top .brand:hover { text-decoration: none; }
.rail-collapse { width: 32px; height: 32px; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--ink-3); display: grid; place-items: center; flex: none; }
.rail-collapse:hover { background: var(--hover); color: var(--ink); }
.rail-g { font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding: 14px 10px 6px; letter-spacing: .02em; }
.rail-primary, .rail-secondary { display: flex; flex-direction: column; gap: 2px; }
.rail-link, .rail-btn { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--r); color: var(--ink-2); font-weight: 520; font-size: 14px; border: 0; background: transparent; text-decoration: none; white-space: nowrap; position: relative;  width: 100%; text-align: left; }
.rail-link:hover, .rail-btn:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.rail-link[aria-current="page"] { background: var(--surface); color: var(--primary-ink); font-weight: 600; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.rail-link[aria-current="page"] .rl-i { color: var(--primary); }
.rl-i { display: grid; place-items: center; width: 18px; color: var(--ink-3); flex: none; }
.rl-i .ico { width: 18px; height: 18px; }
.rl-l { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; }
.nav-count { min-width: 22px; height: 20px; padding: 0 6px; border-radius: var(--r-full); background: var(--sunken); color: var(--ink-2); font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.nav-count.hot, .badge.nav-count { background: var(--badge-bg); color: var(--on-volt); }
.rail-util { border-top: 1px solid var(--line); padding-top: 10px; }
.rail-btn .kc { margin-left: auto; }
.shell.nav-min .rail { padding: 12px 10px; align-items: center; }
.shell.nav-min .rail-top { margin: 0 0 14px; flex-direction: column; height: auto; gap: 8px; }
.shell.nav-min .wordmark, .shell.nav-min .rl-l, .shell.nav-min .rail-g, .shell.nav-min .rail-btn .kc { display: none; }
.shell.nav-min .rail-link, .shell.nav-min .rail-btn { width: 40px; padding: 0; justify-content: center; }
.shell.nav-min .nav-count { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 16px; font-size: 10px; padding: 0 4px; }
.shell.nav-min .rail-g + * { margin-top: 10px; }
.topbar { grid-area: top; position: sticky; top: 0; z-index: var(--z-top); display: flex; align-items: center; gap: 12px; height: var(--top-h); padding: 0 20px 0 24px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.tb-brand, .tb-title, .tb-search { display: none; }
.tb-cells { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.tb-btn { width: 36px; height: 36px; border-radius: var(--r); border: 1px solid transparent; background: transparent; color: var(--ink-2); display: grid; place-items: center; }
.tb-btn:hover { background: var(--hover); color: var(--ink); }
.tb-btn .ico { width: 18px; height: 18px; }
.connl { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: var(--r-full); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 550; text-decoration: none; white-space: nowrap; }
.connl:hover { text-decoration: none; border-color: var(--line-3); }
.connl .sq { width: 7px; height: 7px; }
.connl[data-state="unsent"] { color: var(--amber-ink); border-color: transparent; background: var(--amber-soft); }
.connl[data-state="offline"] { color: var(--red-ink); border-color: transparent; background: var(--red-soft); }
.tb-profile { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 4px; border-radius: var(--r); border: 0; background: transparent; color: var(--ink); text-align: left; }
.tb-profile:hover { background: var(--hover); }
.tb-profile > .ico { width: 14px; height: 14px; color: var(--ink-3); }
.who { display: flex; flex-direction: column; line-height: 1.2; }
.who-n { font-size: 13px; font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-r { font-size: 11.5px; color: var(--ink-3); }
/* search (command line) */
.cmd { position: relative; display: flex; align-items: center; gap: 8px; flex: 0 1 380px; min-width: 200px; height: 36px; padding: 0 8px 0 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink-3); box-shadow: var(--sh-1);  }
.cmd:hover { border-color: var(--line-3); }
.cmd.open, .cmd:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.cmd-p { display: grid; place-items: center; color: var(--ink-3); }
.cmd-field { position: relative; flex: 1 1 auto; min-width: 0; height: 100%; }
.cmd-in { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; outline: none; color: var(--ink); font-size: 14px; padding: 0; }
.cmd-in::placeholder { color: var(--ink-3); }
.cmd-ghost { position: absolute; inset: 0; display: flex; align-items: center; white-space: pre; font-size: 14px; pointer-events: none; overflow: hidden; }
.gh-typed { color: transparent; } .gh-rest { color: var(--ink-4); }
.cmd-go { display: flex; gap: 4px; align-items: center; }
.cmd-drop { position: absolute; top: calc(100% + 8px); left: 0; width: min(640px, calc(100vw - 48px)); max-height: min(70vh, 520px); max-height: min(70dvh, 520px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 6px; z-index: 5; animation: dropIn var(--t-in) var(--ease); transform-origin: top left; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-4px) scale(.99); } }
.cmd-err { margin: 6px; padding: 10px 12px; border-radius: var(--r); background: var(--red-soft); color: var(--red-ink); font-size: 13px; }
.cmd-list, #pal-list { display: flex; flex-direction: column; }
.cmd-list .grp, #pal-list .grp { font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding: 10px 10px 4px; }
.lead-hd { display: none; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border-radius: var(--r); color: var(--ink); cursor: pointer; font-size: 14px; }
.opt[aria-selected="true"] { background: var(--sel); }
.opt[aria-selected="true"] .opt-m { color: var(--primary-ink); background: var(--surface); }
.opt:hover { background: var(--hover); }
.opt-m { width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--sunken); color: var(--ink-2); display: grid; place-items: center; flex: none; }
.opt-l { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lead-opt .opt-l { flex: 1 1 auto; }
.opt-c { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.opt-alias { font-size: 11px; color: var(--ink-3); }
.opt-go { font-size: 12px; color: var(--ink-3); min-width: 44px; text-align: right; }
.opt.locked { opacity: .7; }
.opt-h { font-size: 12px; color: var(--ink-3); }
/* live activity ticker */
.status { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; height: 36px; padding: 0 4px 0 12px; border-radius: var(--r-full); overflow: hidden; }
.tape-k { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); flex: none; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.tape-p { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink-3); flex: none; }
.tape-p .ico { width: 12px; height: 12px; }
.tape { display: flex; gap: 8px; min-width: 0; flex: 1 1 auto; overflow: hidden; mask-image: linear-gradient(90deg, black 85%, transparent); -webkit-mask-image: linear-gradient(90deg, black 85%, transparent); }
.tick { flex: none; }
.tick.none { font-size: 12.5px; color: var(--ink-3); }
.tk-a { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px 0 4px; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 12.5px; text-decoration: none; white-space: nowrap; }
a.tk-a:hover { border-color: var(--line-3); text-decoration: none; box-shadow: var(--sh-1); }
.tk-o.tag { height: 22px; }
.tk-b { font-weight: 550; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.tk-r { color: var(--ink-3); }
.tk-t { color: var(--ink-3); font-size: 11.5px; }
.tick.held .tk-a { border-style: dashed; }
.tick.win .tk-a { border-color: color-mix(in srgb, var(--green) 40%, var(--line)); }
.st-cells { display: flex; gap: 8px; flex: none; }
.st { display: inline-flex; gap: 6px; align-items: baseline; font-size: 12px; color: var(--ink-3); }
.st-v { color: var(--ink); font-weight: 600; }
/* main + page header */
.main { grid-area: main; min-width: 0; padding: 24px 32px 48px; outline: none; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1440px; margin: 0 auto 20px; }
.page-hl { min-width: 0; }
.page-t { font-size: 24px; font-weight: 650; letter-spacing: -.025em; line-height: 1.2; }
.page-s { font-size: 14px; color: var(--ink-3); margin-top: 4px; max-width: 72ch; }
.page-a { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.view { max-width: 1440px; margin: 0 auto; }
.tabbar { display: none; }

/* ---------- overlays ---------- */
.scrim { position: fixed; inset: 0; z-index: var(--z-scrim); background: var(--scrim); display: flex; animation: fadeIn var(--t-in) var(--ease); }
.scrim.closing { animation: fadeOut var(--t-out) var(--ease-in) forwards; }
@keyframes fadeIn { from { opacity: 0; } } @keyframes fadeOut { to { opacity: 0; } }
.scrim.side { justify-content: flex-end; }
.drawer { width: min(520px, 100vw); height: 100%; background: var(--surface); box-shadow: var(--sh-3); display: flex; flex-direction: column; outline: none; animation: slideIn var(--t-panel) var(--ease); border-left: 1px solid var(--line); }
.drawer.wide { width: min(860px, 100vw); }
.drawer.closing { animation: slideOut var(--t-out) var(--ease-in) forwards; }
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } } @keyframes slideOut { to { transform: translateX(24px); opacity: 0; } }
.drawer-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); min-height: 60px; }
.drawer-h h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.drawer-esc { display: inline-flex; }
.drawer-b { padding: 20px; overflow: auto; flex: 1 1 auto; display: flex; flex-direction: column; gap: 16px; }
.drawer.confirm { width: min(440px, 100vw); height: auto; margin: auto; border-radius: var(--r-lg); border: 1px solid var(--line); animation: popIn var(--t-in) var(--ease); }
.scrim.side:has(.drawer.confirm) { justify-content: center; align-items: center; padding: 16px; }
@keyframes popIn { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.confirm-msg { font-size: 14.5px; color: var(--ink-2); }
.confirm-row { justify-content: flex-end; gap: 8px; }
.scrim.top { align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; padding: 10svh 16px 16px; }
.palette { width: min(640px, 100%); max-height: 72vh; max-height: 72dvh; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); overflow: hidden; animation: popIn var(--t-in) var(--ease); }
.palette.closing { animation: fadeOut var(--t-out) var(--ease-in) forwards; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.pal-in .input { border: 0; box-shadow: none; padding: 8px 0; font-size: 16px; min-height: 44px; }
.pal-in .input:focus { box-shadow: none; }
#pal-list { overflow: auto; padding: 6px; flex: 1 1 auto; }
.pal-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); background: var(--surface-2); }
.pal-foot span { display: inline-flex; gap: 6px; align-items: center; }
.scrim.bottom { align-items: flex-end; }
.sheet { width: 100%; background: var(--surface); border-radius: 16px 16px 0 0; padding: 8px 12px calc(16px + env(safe-area-inset-bottom)); box-shadow: var(--sh-3); display: flex; flex-direction: column; animation: sheetIn var(--t-panel) var(--ease); max-height: 86vh; max-height: 86dvh; overflow: auto; }
.sheet.closing { animation: sheetOut var(--t-out) var(--ease-in) forwards; }
.sheet.dragging { animation: none;  }
@keyframes sheetIn { from { transform: translateY(32px); opacity: 0; } } @keyframes sheetOut { to { transform: translateY(32px); opacity: 0; } }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-3); margin: 4px auto 10px; flex: none; }
.sheet > a, .sheet > button { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 8px; border: 0; background: none; color: var(--ink); font-size: 15px; font-weight: 550; text-decoration: none; border-radius: var(--r); text-align: left; width: 100%; }
.sheet > a:hover, .sheet > button:hover { background: var(--hover); }
.sheet > a > .ico:last-child, .sheet > button > .ico:last-child { margin-left: auto; color: var(--ink-4); }
.sheet .opt-m { width: 32px; height: 32px; }
.sheet .danger-zone { color: var(--red-ink); margin-top: 8px; border-top: 1px solid var(--line); border-radius: 0; }
.menu-scrim { position: fixed; inset: 0; z-index: var(--z-scrim); }
.menu { position: fixed; width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 6px; animation: dropIn var(--t-in) var(--ease); transform-origin: top right; }
.menu-who { display: flex; gap: 10px; align-items: center; padding: 10px; }
.menu-who > div { display: flex; flex-direction: column; min-width: 0; }
.menu-who strong { font-size: 14px; }
.menu-who .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-sep { height: 1px; background: var(--line); margin: 4px 0; }
.menu-i { display: flex; gap: 10px; align-items: center; width: 100%; min-height: 38px; padding: 0 10px; border: 0; background: none; border-radius: var(--r-sm); color: var(--ink); font-size: 14px; text-align: left; }
.menu-i:hover, .menu-i:focus-visible { background: var(--hover); outline: none; }
.menu-i .ico { color: var(--ink-3); }
.menu-i.danger, .menu-i.danger .ico { color: var(--red-ink); }
/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: var(--z-toast); display: flex; align-items: center; gap: 12px; min-width: 320px; max-width: min(560px, calc(100vw - 32px)); padding: 10px 10px 10px 12px; background: var(--bg-4); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh-3); font-size: 14px; animation: toastIn var(--t-panel) var(--ease); overflow: hidden; }
.toast.leaving { animation: toastOut var(--t-out) var(--ease-in) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px) scale(.98); } } @keyframes toastOut { to { opacity: 0; transform: translate(-50%, 6px); } }
.toast-k { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); color: var(--ink-2); flex: none; }
.toast.ok .toast-k { background: var(--ice-soft); color: var(--ice); }
.toast.bad .toast-k { background: var(--bad-soft); color: var(--bad); }
.toast.win .toast-k { background: var(--flare); color: var(--on-flare); }
.toast-msg { flex: 1 1 auto; min-width: 0; line-height: 1.4; }
.toast-msg strong { font-weight: 600; color: var(--ink); }
.toast-act { display: inline-flex; gap: 8px; align-items: center; min-height: 34px; padding: 0 10px; border: 0; border-radius: var(--r); background: var(--bg-3); color: var(--volt-ink); font-weight: 650; font-size: 14px; flex: none; }
.toast-act:hover { background: var(--bg-2); }
.toast-act .kc { background: transparent; color: var(--ink-2); border-color: var(--ctrl); }
.offline-bar { position: fixed; left: 50%; top: 10px; transform: translateX(-50%); z-index: var(--z-toast); display: flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: var(--r-full); background: var(--red-soft); color: var(--red-ink); font-size: 13px; box-shadow: var(--sh-2); max-width: calc(100vw - 24px); }
.offline-bar strong { font-weight: 600; }
/* keys drawer */
.keys-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.t.keys td, .t.keys th { height: 38px; }
.t.keys tr:hover td { background: transparent; }
.keys-g th { position: static; background: transparent; color: var(--ink); font-size: 13px; padding-top: 12px; }
.keys-k { white-space: nowrap; width: 1%; }
.keys-k .kc + .dim-text { margin: 0 4px; font-size: 12px; }
.t.keys tr.locked td { color: var(--ink-3); }

/* ---------- CALL DESK ---------- */
.v-desk { max-width: none; }
.main.full:has(.v-desk) { padding: 20px 24px 20px; }
.desk-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.desk-head .page-t { font-size: 22px; }
.scope-wrap { display: inline-flex; gap: 8px; align-items: center; }
.dsw { display: none; }
.desk { display: grid; gap: 16px; position: relative; grid-template-columns: minmax(280px, 300px) minmax(0, 1fr) minmax(320px, 372px); grid-template-areas: "mom mom mom" "queue lead rail" "keys keys keys"; }
.desk > .p-session { grid-area: mom; }
.desk > .p-queue { grid-area: queue; }
.desk > .p-lead { grid-area: lead; }
.desk > .rail-box { grid-area: rail; }
.desk > .fkeys { grid-area: keys; }
.desk .pane-h { min-height: 48px; padding: 10px 16px; }
/* momentum header */
.momentum > .pane-h { display: none; }
.momentum > .pane-b { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 14px 20px; }
.momentum { background: var(--bg-2); overflow: hidden; }
.momentum::before { content: none; }
.mom-goal { flex-direction: row; align-items: center; gap: 14px; position: relative; }
.mom-gt { display: flex; flex-direction: column; gap: 2px; max-width: 200px; }
.mom-gt .fig-l { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.mom-figs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.mom-figs .fig { padding: 0 18px; border-left: 1px solid var(--line); }
.mom-figs .fig-v { font-size: 24px; }
.fig-ic { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-ink); }
.fig-ic .ico { width: 13px; height: 13px; }
.fig[data-k="streak"] .fig-ic { background: var(--purple-soft); color: var(--purple-ink); }
.fig[data-k="hour"] .fig-ic { background: var(--blue-soft); color: var(--blue-ink); }
.fig[data-k="booked"] .fig-ic, .fig[data-k="sold"] .fig-ic { background: var(--green-soft); color: var(--green-ink); }
.fig.hot .fig-v { color: var(--flare); }
.fig.up .fig-s { color: var(--blue-ink); }
.mom-side { display: flex; flex-direction: column; gap: 8px; min-width: 220px; position: relative; }
.mom-pb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.mom-pb .ico { color: var(--purple); }
.mom-chart { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; }
.mom-chart .spark { width: 148px; height: 30px; }
.mom-err { grid-column: 1 / -1; }
.mom-skel { display: grid; grid-template-columns: 76px repeat(5, 1fr); gap: 20px; align-items: center; grid-column: 1 / -1; min-height: 76px; }
.mom-skel .skel:first-child { height: 76px; width: 76px; border-radius: 50%; }
.mom-skel .skel { height: 34px; }
/* queue */
.p-queue .pane-b { padding: 0; overflow: auto; }
.qwrap { min-height: 0; }
.t.queue { font-size: 13.5px; table-layout: fixed; font-variant-numeric: tabular-nums; }
.t.queue td { height: 60px; padding: 0 10px; border-bottom: 1px solid var(--line); cursor: pointer; }
.t.queue td.q-i, .t.queue th.q-i { width: 34px; padding: 0 4px 0 8px; color: var(--ink-3); font-size: 11.5px; text-align: right; }
.t.queue .q-town, .t.queue .q-trade { display: none; }
.t.queue td.q-score { width: 46px; padding: 0 4px; text-align: right; }
.t.queue td.q-due { width: 92px; padding: 0 12px 0 4px; }
.t.queue td.q-att { display: none; }
.q-b { overflow: hidden; }
.q-name { display: block; font-weight: 600; font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--sans); }
.q-sub { display: block; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; font-family: var(--sans); }
.t.queue tr.cur td { background: var(--sel); }
.t.queue tr.cur td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.t.queue tr.cur .q-name { color: var(--primary-ink); }
.t.queue tr.cur .q-i { color: var(--primary-ink); }
.score { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 8px; font: 700 12px/1 var(--sans); background: var(--sunken); color: var(--ink-2); }
.score.hot { background: var(--purple-soft); color: var(--purple-ink); }
.score.warm { background: var(--primary-soft); color: var(--primary-ink); }
.score.cool { background: var(--blue-soft); color: var(--blue-ink); }
.due { display: inline-block; font: 550 12px/1.2 var(--sans); white-space: nowrap; color: var(--ink-3); }
.due.bad { color: var(--red-ink); } .due.warn { color: var(--amber-ink); } .due.info { color: var(--blue-ink); }
.att { display: inline-flex; gap: 2px; align-items: center; }
.att i { width: 4px; height: 4px; border-radius: 50%; background: var(--primary); opacity: .6; }
.att-n { font-size: 11.5px; color: var(--ink-3); margin-left: 4px; }
.q-skel { padding: 12px 14px; gap: 18px; }
.skel-q { display: flex; flex-direction: column; gap: 8px; }
.outbox-note { margin: 12px; }
/* lead stage */
.p-lead .pane-h { border-bottom: 0; padding-bottom: 0; min-height: 48px; }
.p-lead > .pane-h .pane-t { font-size: 13px; color: var(--ink-3); font-weight: 550; }
.p-lead > .pane-h .pane-src { display: none; }
.p-lead > .pane-b { overflow: auto; padding: 4px 24px 24px; display: flex; flex-direction: column; gap: 18px; }
.adv-next { animation: advNext 180ms var(--ease); }
.adv-prev { animation: advPrev var(--t-panel) var(--ease); }
@keyframes advNext { from { opacity: 0; transform: translateX(14px); } }
@keyframes advPrev { from { opacity: 0; transform: translateX(-14px); } }
.stage-top { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.lead-id { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lead-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.p-lead .name { font-size: 24px; font-weight: 650; letter-spacing: -.025em; line-height: 1.2; overflow-wrap: anywhere; }
.p-lead .meta { font-size: 14px; color: var(--ink-3); }
.stage-nav { display: flex; gap: 6px; flex: none; }
.dial { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: var(--r-lg); background: var(--volt-soft); box-shadow: inset 0 0 0 1px var(--primary-soft-2); }
.phone-big { font-family: var(--mono); font-size: 38px; font-weight: 550; letter-spacing: -.04em; color: var(--ink); text-decoration: none; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.phone-big:hover { text-decoration: none; color: var(--primary-ink); }
.none-num { font-size: 18px; color: var(--ink-3); font-family: var(--sans); letter-spacing: 0; }
.dial-k { display: flex; gap: 10px; align-items: center; }
.btn-call { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 8px; border-radius: 16px; background: var(--volt); color: var(--on-volt); font-weight: 650; font-size: 16px; text-decoration: none; box-shadow: var(--sh-primary); transition: transform var(--t-fast) var(--ease); }
.btn-call:hover { text-decoration: none; background: var(--volt); transform: translateY(-1px); box-shadow: var(--sh-primary); }
.btn-call:active { transform: scale(.98); }
.btn-call:focus-visible { outline: none; box-shadow: var(--sh-primary), var(--ring); }
.bc-i { width: 36px; height: 36px; border-radius: 10px; background: var(--veil); display: grid; place-items: center; }
.bc-i .ico { width: 18px; height: 18px; }
.btn-call .kc { background: var(--veil); border-color: var(--veil); color: var(--on-volt); }
.btn-call.live { background: var(--bg-4); color: var(--ink); box-shadow: 0 4px 0 var(--bg); }
.btn-call.live .bc-i { animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.btn-call[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.skip-btn { height: 52px; border-radius: 16px; }
.brief { display: flex; flex-direction: column; gap: 10px; }
.brief-next { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.brief-next .ico { color: var(--ink-3); }
.brief-k { font-weight: 600; color: var(--ink); }
.brief-next.bad .brief-v, .brief-next.bad .ico { color: var(--red-ink); }
.brief-next.warn .brief-v, .brief-next.warn .ico { color: var(--amber-ink); }
.angle { display: flex; gap: 8px; flex-wrap: wrap; }
.angle li { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.angle li .ico { width: 14px; height: 14px; color: var(--primary); }
.kv4 { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.kv4 .kv-r { grid-template-columns: 84px minmax(0, 1fr); }
.kv4 .kv-r:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.why { padding: 12px 14px; border-radius: var(--r); background: var(--amber-soft); color: var(--ink); display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.why-k { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; color: var(--amber-ink); }
.why-k .ico { width: 13px; height: 13px; }
.log-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.when-back { font-size: 12.5px; color: var(--ink-3); }
.when-back.ok { color: var(--green-ink); } .when-back.warn { color: var(--amber-ink); } .when-back.bad { color: var(--red-ink); }
.timeline { display: flex; flex-direction: column; position: relative; }
.tl { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.tl:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 1px; background: var(--line); }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sunken); color: var(--ink-3); flex: none; }
.tl-dot .ico { width: 14px; height: 14px; }
.tl.ok .tl-dot { background: var(--green-soft); color: var(--green-ink); } .tl.bad .tl-dot { background: var(--red-soft); color: var(--red-ink); } .tl.warn .tl-dot { background: var(--amber-soft); color: var(--amber-ink); } .tl.info .tl-dot { background: var(--blue-soft); color: var(--blue-ink); } .tl.accent .tl-dot { background: var(--primary-soft); color: var(--primary-ink); }
.tl-b { flex: 1 1 auto; min-width: 0; padding-top: 4px; }
.tl-h { display: flex; gap: 4px; align-items: baseline; font-size: 13.5px; flex-wrap: wrap; }
.tl-t { font-size: 12px; }
.tl-n { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
/* right rail */
.rail-box { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.rail-tabs { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--surface-2); flex: none; }
.rt { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 6px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink-3); font-size: 13px; font-weight: 550; white-space: nowrap;  }
.rt .ico { width: 15px; height: 15px; }
.rt:hover { color: var(--ink); background: var(--hover); }
.rt[aria-selected="true"] { background: var(--surface); color: var(--primary-ink); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.rail-p { border: 0; border-radius: 0; box-shadow: none; flex: 1 1 auto; min-height: 0; }
.rail-p > .pane-h { display: none; }
.rail-p > .pane-b { overflow: auto; padding: 16px; }
.opener-box { position: relative; padding: 14px 14px 12px; border-radius: var(--r); background: var(--volt-soft); box-shadow: inset 0 0 0 1px var(--primary-soft-2); display: flex; flex-direction: column; gap: 8px; }
.opener { font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.opener-box .btn { align-self: flex-start; }
.pillars { display: flex; flex-direction: column; gap: 8px; }
.pillars li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.pil-n { width: 20px; height: 20px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-ink); display: grid; place-items: center; font-size: 11px; flex: none; margin-top: 1px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.plan { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.plan.pop { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; background: var(--primary-soft); }
.plan-n { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.plan-m { font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.plan-m small { font-size: 11px; color: var(--ink-3); font-family: var(--sans); }
.plan-s { font-size: 11.5px; color: var(--ink-3); }
.terms { display: flex; gap: 8px; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; margin-top: 4px; }
.terms .ico { width: 14px; height: 14px; margin-top: 2px; color: var(--ink-3); }
.obj-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink-3);  }
.obj-search:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.obj-search .input { border: 0; box-shadow: none; padding: 8px 0; min-height: 38px; }
.obj-search .input:focus { box-shadow: none; }
.obj-answer:not(:empty) { margin-top: 12px; }
.ans { padding: 12px 14px; border-radius: var(--r); background: var(--primary-soft); display: flex; flex-direction: column; gap: 8px; animation: popIn var(--t-in) var(--ease); }
.ans.heard { background: var(--blue-soft); }
.ans-h { display: flex; align-items: center; gap: 8px; }
.ans-t { font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.ans .tag { background: var(--surface); }
.obj-list { display: flex; flex-direction: column; margin-top: 8px; }
.obj-g { font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 14px 4px 6px; }
.obj-row { display: grid; grid-template-columns: minmax(0, 1fr) 16px; grid-template-areas: "l i" "p i"; column-gap: 8px; text-align: left; padding: 9px 10px; border: 0; border-radius: var(--r); background: transparent; color: var(--ink); min-height: 44px;  }
.obj-row:hover { background: var(--hover); }
.obj-row.sel, .obj-row.on { background: var(--sel); }
.obj-l { grid-area: l; font-weight: 600; font-size: 13.5px; }
.obj-p { grid-area: p; font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obj-row .ico { grid-area: i; align-self: center; width: 14px; height: 14px; color: var(--ink-4); transform: rotate(-90deg); transition: transform var(--t-fast) var(--ease); }
.obj-row.on .ico { transform: none; color: var(--primary); }
.obj-n { display: none; }
.draft-note { display: flex; gap: 8px; font-size: 12.5px; color: var(--ink-2); padding: 10px 12px; border-radius: var(--r); background: var(--sunken); margin-bottom: 14px; line-height: 1.5; }
.draft-note .ico { flex: none; color: var(--primary); margin-top: 1px; }
.draft-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
.p-draft .field + .field, .p-draft .draft-grid + .field { margin-top: 0; }
.draft-foot { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.live-hero { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r); background: var(--volt-soft); box-shadow: inset 0 0 0 1px var(--primary-soft-2); }
.live-hero strong { font-size: 14.5px; }
.live-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--primary-ink); box-shadow: var(--sh-1); flex: none; }
.live-ico.on { background: var(--green); color: var(--on-volt); animation: pulse 1.6s var(--ease) infinite; }
.live-h { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; }
.live-st { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 550; color: var(--ink-2); }
.cp-status { font-size: 13px; margin-bottom: 8px; }
.cp-status.ok { color: var(--green-ink); } .cp-status.bad { color: var(--red-ink); } .cp-status.warn { color: var(--amber-ink); }
.cp-transcript { min-height: 96px; max-height: 220px; overflow: auto; padding: 12px; border-radius: var(--r); background: var(--sunken); font-size: 13.5px; line-height: 1.55; }
.consent { display: flex; gap: 8px; margin-top: 12px; }
.consent .ico { flex: none; width: 14px; height: 14px; margin-top: 2px; }
/* outcome bar */
.fkeys { display: grid; grid-template-columns: auto repeat(8, minmax(0, 1fr)) 1px auto auto; gap: 8px; align-items: stretch; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.fk-label { display: flex; flex-direction: column; justify-content: center; padding: 0 10px 0 6px; min-width: 92px; }
.fk-lt { font-size: 13px; font-weight: 600; } .fk-ls { font-size: 11.5px; color: var(--ink-3); }
.fk-head { display: none; }
.fk-sep { width: 1px; background: var(--line); margin: 6px 2px; }
.fkey { --oc: var(--ink-3); --os: var(--slate-soft); position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 10px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 13.5px; text-align: left; text-decoration: none; overflow: hidden; transition: transform var(--t-fast) var(--ease); }
.fkey:hover { text-decoration: none; border-color: color-mix(in srgb, var(--oc) 45%, var(--line)); background: color-mix(in srgb, var(--os) 60%, var(--surface)); transform: translateY(-1px); box-shadow: 0 6px 16px -10px color-mix(in srgb, var(--oc) 70%, transparent); }
.fkey:active { transform: scale(.97); }
.fkey:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--oc) 35%, transparent); border-color: var(--oc); }
.fkey:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.fk-i { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--os); color: var(--oc); flex: none; }
.fk-i .ico { width: 16px; height: 16px; }
.fk-l { flex: 1 1 auto; min-width: 0; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
.fkey .kc { margin-left: auto; flex: none; }
.fkey.o-no_answer { --oc: var(--ink-3); --os: var(--slate-soft); }
.fkey.o-voicemail { --oc: var(--sky); --os: color-mix(in srgb, var(--sky) 14%, var(--surface)); }
.fkey.o-callback { --oc: var(--blue); --os: var(--blue-soft); }
.fkey.o-interested { --oc: var(--primary); --os: var(--primary-soft); }
.fkey.o-booked { --oc: var(--purple); --os: var(--purple-soft); }
.fkey.o-sold { --oc: var(--flare); --os: var(--purple-soft); }
.fkey.o-sold .fk-i { background: var(--volt); color: var(--on-volt); }
.fkey.o-not_interested { --oc: var(--red); --os: var(--red-soft); }
.fkey.o-wrong_number { --oc: var(--amber); --os: var(--amber-soft); }
.fkey.logged-pop { animation: keyPop 240ms var(--ease); }
@keyframes keyPop { 0% { transform: scale(.95); } 60% { transform: scale(1.03); } }

.k-call { display: none; }
.k-skip, .k-undo { min-width: 104px; }
.k-skip > .ico, .k-undo > .ico { color: var(--ink-3); }
.k-more { display: none; }
/* milestone moments */
.moment { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); z-index: 15; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; min-width: 300px; max-width: 460px; border-radius: 16px; background: var(--surface); box-shadow: var(--sh-3), inset 0 0 0 1px var(--primary-soft-2); pointer-events: none; animation: momentIn var(--t-panel) var(--ease); }
.moment.big { background: var(--bg-3); border: 0; animation: momentIn var(--t-panel) var(--ease); }
.moment.leaving { animation: fadeOut 140ms var(--ease-in) forwards; }
.moment-x { pointer-events: auto; width: 32px; height: 32px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink-3); display: grid; place-items: center; flex: none; }
.moment-x:hover { background: var(--hover); color: var(--ink); }
.moment-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--volt); color: var(--on-volt); flex: none; }
.moment.routine .moment-ico { background: var(--primary-soft); color: var(--primary-ink); box-shadow: none; }
.moment-t { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.moment-t strong { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.moment-t span { font-size: 13px; color: var(--ink-3); }
.burst { position: absolute; left: 34px; top: 50%; width: 0; height: 0; }
.burst i { position: absolute; width: 6px; height: 6px; border-radius: 2px; background: var(--primary); opacity: 0; transform: rotate(var(--a)) translateY(0); animation: burst 800ms var(--ease) forwards; }
.burst i:nth-child(3n+1) { background: var(--blue); } .burst i:nth-child(3n+2) { background: var(--purple); }
@keyframes burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(-4px) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-46px) scale(.4); } }
@keyframes momentIn { from { opacity: 0; transform: translate(-50%, -8px); } }
@keyframes momentBig { 0% { opacity: 0; transform: translate(-50%, -10px) scale(.94); } 50% { opacity: 1; transform: translate(-50%, 0) scale(1.02); } 100% { transform: translate(-50%, 0) scale(1); } }
/* recap */
.recap-scrim { align-items: center; justify-content: center; padding: 16px; }
.recap { width: min(560px, 100%); background: var(--surface); border-radius: 16px; box-shadow: var(--sh-3); overflow: hidden; animation: popIn var(--t-panel) var(--ease); outline: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; }
.rc-hero { display: flex; gap: 20px; align-items: center; padding: 24px; background: var(--volt-soft); border-bottom: 1px solid var(--line); }
.rc-k { font-size: 12px; font-weight: 600; color: var(--primary-ink); }
.rc-hero h2 { font-size: 20px; font-weight: 650; letter-spacing: -.02em; margin: 2px 0 4px; }
.rc-p { font-size: 13.5px; color: var(--ink-2); }
.rc-hero .ring-n { font-size: 28px; }
.rc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.rc-s { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; background: var(--surface); }
.rc-i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); margin-bottom: 6px; }
.rc-i .ico { width: 14px; height: 14px; }
.rc-v { font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.rc-l { font-size: 13px; font-weight: 550; color: var(--ink-2); }
.rc-sub { font-size: 12px; color: var(--ink-3); }
.rc-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 20px; border-top: 1px solid var(--line); }

/* desktop geometry: the desk fills the screen, cards scroll themselves */
@media (min-width: 1280px) and (min-height: 700px) {
  .main.full:has(.v-desk) { height: calc(100vh - var(--top-h)); height: calc(100dvh - var(--top-h)); overflow: hidden; display: flex; flex-direction: column; }
  .v-desk { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; width: 100%; }
  .v-desk .desk { flex: 1 1 auto; min-height: 0; grid-template-rows: auto minmax(0, 1fr) auto; }
  .desk > .p-queue, .desk > .p-lead, .desk > .rail-box { min-height: 0; overflow: hidden; }
}
@media (min-width: 1600px) {
  .desk { grid-template-columns: minmax(300px, 340px) minmax(0, 1fr) minmax(360px, 420px); }
  .t.queue .q-town { display: none; }
}
@media (min-width: 1024px) and (max-width: 1279px), (min-width: 1280px) and (max-height: 699px) {
  .desk { grid-template-columns: minmax(260px, 300px) minmax(0, 1fr); grid-template-areas: "mom mom" "queue lead" "rail rail" "keys keys"; }
  .desk > .p-queue { max-height: 640px; }
  .fkeys { position: sticky; bottom: 12px; z-index: 5; }
  .momentum > .pane-b { grid-template-columns: auto minmax(0, 1fr); }
  .mom-side { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; flex-wrap: wrap; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .desk { grid-template-columns: minmax(0, 1fr); grid-template-areas: "mom" "lead" "queue" "rail" "keys"; }
  .desk > .p-queue { max-height: 480px; }
  .fkeys { position: sticky; bottom: 12px; z-index: 5; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fk-label, .fk-sep { display: none; }
  .momentum > .pane-b { grid-template-columns: minmax(0, 1fr); }
  .mom-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .mom-figs .fig:nth-child(3n+1) { border-left: 0; padding-left: 0; }
  .mom-side { flex-direction: row; flex-wrap: wrap; gap: 20px; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  .mom-figs .fig { padding: 0 12px; }
  .mom-side { min-width: 190px; }
  .mom-chart .spark { width: 120px; }
  .fk-label { display: none; }
  .fkeys { grid-template-columns: repeat(8, minmax(0, 1fr)) 1px auto auto; }
  .fkey { gap: 8px; padding: 0 8px; }
  .k-skip, .k-undo { min-width: 0; }
}
/* queue rows: two lines, name + score, place + due */
.t.queue td.q-score, .t.queue td.q-due, .t.queue td.q-att, .t.queue th.q-score, .t.queue th.q-due, .t.queue th.q-att { display: none; }
.t.queue td.q-b { padding: 0 14px 0 6px; }
.q-l1, .q-l2 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.q-l1 .q-name { flex: 1 1 auto; min-width: 0; }
.q-l2 { margin-top: 3px; }
.q-l2 .q-sub { flex: 1 1 auto; min-width: 0; margin: 0; }
.q-l1 .score { height: 20px; min-width: 28px; font-size: 11.5px; }
.q-att { flex: none; }
/* outcome tiles: icon + key on top, label below */
@media (min-width: 1024px) {
  .fkey.k-out { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; grid-template-areas: "i . k" "l l l"; row-gap: 6px; align-content: center; min-height: 68px; padding: 8px 10px; }
  .fkey.k-out .fk-i { grid-area: i; width: 26px; height: 26px; border-radius: 8px; }
  .fkey.k-out .kc { grid-area: k; }
  .fkey.k-out .fk-l { grid-area: l; font-size: 13px; white-space: nowrap; }
  .k-skip, .k-undo { min-width: 0; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "i k" "l l"; row-gap: 6px; padding: 8px 10px; min-height: 68px; align-content: center; width: 92px; }
  .k-skip > .ico, .k-undo > .ico { grid-area: i; width: 18px; height: 18px; margin: 4px; }
  .k-skip .kc, .k-undo .kc { grid-area: k; justify-self: end; }
  .k-skip .fk-l, .k-undo .fk-l { grid-area: l; font-size: 13px; }
}
.mom-gt { max-width: 190px; }
.goal-src { color: var(--ink-3); }
.mom-figs .fig-l, .mom-figs .fig-s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk { grid-template-columns: minmax(268px, 292px) minmax(0, 1fr) minmax(320px, 352px); }
.cmd { flex-basis: 340px; min-width: 260px; }
@media (max-width: 1599px) { .fk-label { display: none; } .fkeys { grid-template-columns: repeat(8, minmax(0, 1fr)) 1px auto auto; } .rt .ico { display: none; } .fkey.k-out .fk-l { font-size: 12.5px; letter-spacing: -.01em; } .k-skip, .k-undo { width: 76px; } }

/* ---------- phone ---------- */
@media (max-width: 767px) {
  body { font-size: 15px; }
  .shell { display: block; padding-top: var(--top-h); padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  .rail { display: none; }
  .topbar { position: fixed; left: 0; right: 0; top: 0; padding: 0 8px 0 12px; gap: 8px; background: color-mix(in srgb, var(--surface) 92%, transparent); }
  .tb-brand { display: flex; align-items: center; border-radius: var(--r); }
  .tb-brand .logo-mark { border-radius: 8px; }
  .tb-title { display: block; font-weight: 650; font-size: 16px; letter-spacing: -.015em; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .cmd, .topbar .status, .tb-theme, .who, .tb-profile > .ico { display: none; }
  .tb-cells { gap: 2px; margin-left: 0; }
  .connl { height: 32px; padding: 0 10px; }
  .connl[data-state="online"] .conn-t { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .connl[data-state="online"] { width: 44px; height: 44px; justify-content: center; padding: 0; border: 0; background: transparent; }
  .tb-profile { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .tb-search { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink-2); border-radius: var(--r); }
  .tb-search .ico { width: 20px; height: 20px; }
  .main { padding: 16px 16px 32px; }
  .page-h { margin-bottom: 16px; }
  .page-t { font-size: 22px; }
  .page-s { font-size: 14px; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-dock); height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding: 0 4px env(safe-area-inset-bottom); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-top: 1px solid var(--line); }
  .tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; border: 0; background: transparent; color: var(--ink-3); font-size: 11.5px; font-weight: 550; text-decoration: none; }
  .tab:hover { text-decoration: none; }
  .tab-i .ico { width: 22px; height: 22px; }
  .tab[aria-current="page"] { color: var(--primary-ink); }
  .tab[aria-current="page"] .tab-i { position: relative; }
  .tab[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; border-radius: 0 0 2px 2px; background: var(--primary); }
  .tab .badge { position: absolute; top: 4px; left: calc(50% + 6px); }
  .drawer { width: 100vw; border-left: 0; }
  .drawer-esc { display: none; }
  .toast { bottom: calc(var(--tab-h) + var(--dock-h) + 12px + env(safe-area-inset-bottom)); min-width: 0; width: calc(100vw - 24px); }
  .scrim.top { padding: 0; }
  .palette { max-height: 100vh; max-height: 100dvh; height: 100%; border-radius: 0; width: 100%; }
  .keys-wrap { grid-template-columns: 1fr; }
  .offline-bar { top: calc(var(--top-h) + 8px); }
  /* Call Desk on a phone */
  .main.full:has(.v-desk) { padding: 0 0 calc(var(--dock-h) + 16px); }
  .desk-head { display: none; }
  .dsw { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; position: sticky; top: var(--top-h); z-index: 6; margin: 0; padding: 8px 12px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .dsw button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: 0; border-radius: var(--r); background: transparent; color: var(--ink-3); font-weight: 600; font-size: 14px; }
  .dsw button[aria-selected="true"] { background: var(--surface); color: var(--primary-ink); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
  .dsw-n { font-size: 11px; padding: 1px 6px; border-radius: var(--r-full); background: var(--sunken); color: var(--ink-2); }
  .desk { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
  .desk > .pane, .desk > .rail-box { display: none; }
  .desk[data-m="lead"] > .p-lead, .desk[data-m="queue"] > .p-queue, .desk[data-m="script"] > .rail-box, .desk[data-m="stats"] > .p-session { display: flex; }
  .desk[data-m="lead"] > .p-session { display: flex; }
  .desk[data-m="lead"] > .p-session .mom-side, .desk[data-m="lead"] > .p-session .mom-figs .fig:nth-child(n+3) { display: none; }
  .momentum > .pane-b { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px; }
  .desk[data-m="lead"] .momentum > .pane-b { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 10px 14px; }
  .desk[data-m="lead"] .mom-gt .fig-s:not(:first-of-type), .desk[data-m="lead"] .goal-src { display: none; }
  .desk[data-m="lead"] .mom-goal .ring-wrap svg { width: var(--ring-sm); height: var(--ring-sm); }
  .desk[data-m="lead"] .mom-goal .ring-n { font-size: 16px; }
  .desk[data-m="lead"] .mom-goal .ring-g { display: none; }
  .desk[data-m="lead"] .mom-gt { display: none; }
  .desk[data-m="lead"] .mom-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desk[data-m="lead"] .mom-figs .fig { padding: 0 12px; }
  .desk[data-m="lead"] .mom-figs .fig-v { font-size: 20px; }
  .mom-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .mom-figs .fig { padding: 0 12px; }
  .mom-figs .fig:nth-child(odd) { border-left: 0; padding-left: 0; }
  .desk[data-m="lead"] .mom-figs .fig:nth-child(odd) { border-left: 1px solid var(--line); padding-left: 12px; }
  .mom-side { min-width: 0; }
  .mom-chart { grid-template-columns: 76px 1fr; }
  .mom-chart .spark { width: 100%; }
  .p-queue .pane-b { overflow: visible; }
  .t.queue td { height: 64px; }
  .p-lead > .pane-b { padding: 4px 16px 20px; gap: 16px; }
  .p-lead .name { font-size: 21px; }
  .stage-top { flex-direction: column; gap: 8px; }
  .stage-nav { position: absolute; top: 8px; right: 12px; }
  .stage-nav .open-lead span { display: none; }
  .p-lead > .pane-h { padding-right: 140px; }
  .dial { padding: 14px 16px; }
  .phone-big { font-size: 32px; }
  .dial-k { display: none; }
  .kv4 { grid-template-columns: 1fr; }
  .kv4 .kv-r:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
  .log-grid { grid-template-columns: 1fr; }
  .rail-box { border-radius: var(--r-lg); }
  .rail-tabs { position: sticky; top: calc(var(--top-h) + 57px); z-index: 4; }
  .rt { min-height: 40px; }
  .rt .ico { display: none; }
  .rail-p > .pane-b { overflow: visible; }
  .plans { grid-template-columns: 1fr; }
  .plan { flex-direction: row; align-items: baseline; gap: 10px; }
  .plan-n { flex: 1 1 auto; font-size: 14px; }
  /* the outcome dock: Call + Skip + Undo, then the 8 outcomes, in the thumb zone */
  .fkeys { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); z-index: var(--z-dock); grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 10px 12px; border-radius: 16px 16px 0 0; border: 0; border-top: 1px solid var(--line); box-shadow: none; }
  .fk-label, .fk-sep { display: none; }
  .fkey { min-height: 52px; }
  .fkey .kc { display: none; }
  .k-call { display: flex; grid-column: span 2; order: 0; justify-content: center; border: 0; background: var(--volt); color: var(--on-volt); box-shadow: var(--sh-primary); font-size: 16px; gap: 10px; }
  .k-call:hover { background: var(--volt); color: var(--on-volt); border: 0; }
  .k-call .ico { width: 20px; height: 20px; }
  .k-call.live { background: var(--bg-4); }
  .k-call[aria-disabled="true"] { opacity: .5; }
  .k-skip { order: 1; } .k-undo { order: 2; }
  .k-skip, .k-undo { justify-content: center; flex-direction: column; gap: 2px; font-size: 12.5px; }
  .k-out { order: var(--ord, 10); flex-direction: column; justify-content: center; gap: 4px; padding: 6px 4px; text-align: center; }
  .k-out .fk-i { width: 26px; height: 26px; border-radius: 8px; }
  .k-out .fk-l { font-size: 12px; font-weight: 600; white-space: normal; line-height: 1.15; flex: none; overflow: visible; }
  .fkeys.compact .k-out:not(.recent), .fkeys.compact .k-skip, .fkeys.compact .k-undo { display: none; }
  .fkeys.compact .k-out.recent { order: calc(1 + var(--rord, 0)); }
  .fkeys.compact .k-call { grid-column: span 1; }
  .fkeys.compact .k-more { display: flex; order: 5; flex-direction: column; justify-content: center; gap: 2px; font-size: 12.5px; }
  .fkeys.compact.open { top: var(--top-h); align-content: start; border-radius: 0; overflow: auto; }
  .fkeys.compact.open .k-out, .fkeys.compact.open .k-skip, .fkeys.compact.open .k-undo { display: flex; }
  .fkeys.compact.open .fk-head { display: flex; grid-column: 1 / -1; order: -1; font-weight: 600; font-size: 14px; padding: 4px 2px; }
  body.typing .fkeys { display: none; }
  .moment { position: fixed; top: calc(var(--top-h) + 64px); min-width: 0; width: calc(100vw - 24px); }
}
@media (max-width: 359px) {
  .fkeys.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .phone-big { font-size: 28px; }
  .dsw button { font-size: 13px; }
}
@media (max-width: 767px) {
  .k-skip, .k-undo { width: auto; min-width: 0; }
  .fkeys { gap: 6px; padding: 8px 10px; }
  .fkey { min-height: 50px; }
  .k-out { padding: 5px 3px; gap: 3px; min-height: 56px; }
  .k-out .fk-i { width: 22px; height: 22px; border-radius: 8px; }
  .k-out .fk-i .ico { width: 14px; height: 14px; }
  .k-out .fk-l { font-size: 11.5px; }
  .desk[data-m="queue"] .fkeys .k-out, .desk[data-m="stats"] .fkeys .k-out { display: none; }
}

/* ---------- HOME ---------- */
.scr.home { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.home > * { grid-column: span 12; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.rep .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); color: inherit; text-decoration: none; min-width: 0; transition: transform var(--t-fast) var(--ease); }
a.kpi:hover { text-decoration: none; box-shadow: var(--sh-2); border-color: var(--line-2); transform: translateY(-1px); }
.kpi .fig-v { font-size: 30px; }
.kpi-f { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-height: 32px; }
.kpi-f .fig-s { padding-bottom: 2px; }
.kpi.win .fig-v { color: var(--green-ink); } .kpi.bad .fig-v { color: var(--red-ink); }
.kpi.bad .fig-ic { background: var(--red-soft); color: var(--red-ink); }
.kpi.win .fig-ic { background: var(--green-soft); color: var(--green-ink); }
.skel-kpi { gap: 12px; } .skel.tall { height: 26px; }
.home-sys { display: flex; gap: 8px; flex-wrap: wrap; margin-top: -4px; }
.sys-item { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 10px; border-radius: var(--r-full); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 550; text-decoration: none; }
.sys-item:hover { text-decoration: none; border-color: var(--line-3); color: var(--ink); }
.sys-item .ico { color: var(--ink-3); }
.home .p-pipe, .home .p-board { grid-column: span 7; }
.home .p-fu, .home .p-agents { grid-column: span 5; }
.home .p-next, .home .p-out, .home .p-month { grid-column: span 4; }
.home.rep .p-myday { grid-column: span 7; }
.home.rep .p-fu { grid-column: span 5; }
.home .p-pipe .pane-b { display: flex; flex-direction: column; gap: 12px; }
.stack-bar { height: 12px; }
.t.funnel td { height: 40px; }
.w-bar { width: 45%; }
.w-bar .hbar { max-width: none; }
.stage-l { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 550; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-4); flex: none; }
.dot.tone-primary { background: var(--primary); } .dot.tone-blue { background: var(--blue); } .dot.tone-purple { background: var(--purple); } .dot.tone-sky { background: var(--sky); } .dot.tone-green { background: var(--green); } .dot.tone-slate { background: var(--ink-4); } .dot.tone-indigo2 { background: var(--volt-ink); }
.fu-list > li { gap: 12px; }
.fu-dot { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.fu-dot.bad { background: var(--red-soft); color: var(--red-ink); } .fu-dot.warn { background: var(--amber-soft); color: var(--amber-ink); }
.fu-b { display: flex; flex-direction: column; min-width: 0; color: var(--ink); }
.fu-b strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.fu-b:hover { text-decoration: none; } .fu-b:hover strong { color: var(--primary-ink); }
.nba > li { padding: 0; }
.nba-i { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 6px; border-radius: var(--r); color: var(--ink); text-decoration: none; }
a.nba-i:hover { background: var(--hover); text-decoration: none; }
.nba-i .opt-m { width: 32px; height: 32px; background: var(--primary-soft); color: var(--primary-ink); }
.nba-i strong { font-weight: 600; font-size: 14px; }
.nba-i > .ico { color: var(--ink-4); }
.t.board td { height: 52px; }
.rank { white-space: nowrap; }
.rk { display: inline-block; min-width: 14px; color: var(--ink-3); }
.lead1 .rk { color: var(--primary-ink); font-weight: 700; }
.mv { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; margin-left: 6px; min-width: 22px; }
.mv .ico { width: 12px; height: 12px; }
.mv.up { color: var(--green-ink); } .mv.down { color: var(--red-ink); } .mv.flat { color: var(--ink-3); }
.who-cell { display: inline-flex; align-items: center; gap: 10px; font-weight: 550; }
.legend { display: flex; flex-direction: column; margin-top: 12px; }
.legend li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.legend li:last-child { border-bottom: 0; }
.month-figs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 12px; }
.month-figs .fig-v { font-size: 24px; }
.p-month .kv { margin-bottom: 8px; }
.myday { display: flex; gap: 24px; align-items: center; }
.myday .ring-n { font-size: 30px; }
.myday-t { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.myday-t strong { font-size: 17px; letter-spacing: -.01em; }
.welcome { grid-column: span 12; padding: 20px; border-radius: var(--r-lg); background: var(--volt-soft); border: 1px solid var(--primary-soft-2); display: flex; flex-direction: column; gap: 12px; }
.welcome h2 { font-size: 18px; letter-spacing: -.02em; }
.welcome ol { display: flex; flex-direction: column; gap: 8px; }
.welcome li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); }
.welcome .n { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); color: var(--primary-ink); display: grid; place-items: center; font-size: 12px; box-shadow: var(--sh-1); flex: none; }
/* agents strip (home) */
.strip .pane-b { display: flex; flex-direction: column; gap: 10px; }
.strip-sub { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); align-items: center; }
.strip-list > li { gap: 12px; font-size: 13.5px; }
.strip-list .ellipsis { max-width: none; }
/* clients strip (home) */
.cstrip-b { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.cstrip > .strip-sub { padding: 16px; justify-content: flex-start; }
.cstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cstat { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
a.cstat:hover { text-decoration: none; border-color: var(--line-3); box-shadow: var(--sh-1); }
.cstat .fig-l { text-transform: none; }
.cstat .fig-v { font-size: 24px; }
.cstat.warn { background: var(--amber-soft); border-color: transparent; }
@media (max-width: 1279px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home .p-pipe, .home .p-board, .home .p-fu, .home .p-agents, .home.rep .p-myday, .home.rep .p-fu { grid-column: span 12; }
  .home .p-next, .home .p-out, .home .p-month { grid-column: span 6; }
  .home .p-month { grid-column: span 12; }
}
@media (max-width: 767px) {
  .scr.home { gap: 12px; }
  .kpis, .rep .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px; }
  .kpi .fig-v { font-size: 24px; }
  .kpi .spark { width: 64px; }
  .home .p-next, .home .p-out, .home .p-month { grid-column: span 12; }
  .hide-s { display: none; }
  .myday { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-a .start { width: 100%; }
  .page-a { width: 100%; }
}
.kpi-f { overflow: hidden; }
.kpi-f .fig-s { flex: 1 1 auto; min-width: 0; }
.kpi-f .spark { flex: none; width: 80px; }

/* kv built with direct dt/dd children (older call sites) */
.kv:has(> dt) { grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); column-gap: 20px; }
.kv > dt, .kv > dd { padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv > dt:nth-last-of-type(1), .kv > dd:last-child { border-bottom: 0; }

/* ---------- generic screens ---------- */
.scr { display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.scr > * { grid-column: span 12; min-width: 0; }
.tiny.muted.pane-pad, .small.ink2.pane-pad, .pane-pad.small { padding: 0; }
.sub-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -6px 0 16px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-weight: 550; min-height: 32px; padding: 0 8px 0 4px; border-radius: var(--r-sm); }
.back:hover { background: var(--hover); text-decoration: none; color: var(--ink); }
.sub-t { font-size: 18px; font-weight: 650; letter-spacing: -.015em; }
.sub-h p { flex-basis: 100%; }
.steps { display: flex; flex-direction: column; gap: 8px; counter-reset: s; }
.steps li { position: relative; padding-left: 32px; font-size: 14px; color: var(--ink-2); min-height: 22px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); font: 600 11.5px/22px var(--mono); text-align: center; }
.code-line { display: block; padding: 9px 12px; border-radius: var(--r); background: var(--sunken); border: 1px solid var(--line); font: 13px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
code, .code { font-family: var(--mono); font-size: .92em; }
.facts-list { display: flex; flex-direction: column; gap: 8px; padding-left: 0; }
.facts-list li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.facts-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-top: 8px; flex: none; }
.keyhint { display: inline-flex; align-items: center; gap: 4px; }
.keyhint .kc { min-width: 18px; height: 18px; font-size: 10.5px; }

/* ---------- LEADS ---------- */
.blot { display: flex; flex-direction: column; gap: 12px; }
.blot-tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.vtab { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 0; background: transparent; color: var(--ink-3); font-weight: 550; font-size: 14px; white-space: nowrap; }
.vtab:hover { color: var(--ink); }
.vtab[aria-selected="true"] { color: var(--primary-ink); }
.vtab[aria-selected="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--primary); }
.vtab .x { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: var(--ink-3); font-size: 14px; }
.vtab .x:hover { background: var(--hover); color: var(--red-ink); }
.vtab-act { margin-left: auto; display: flex; gap: 8px; padding-left: 12px; flex: none; }
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filters .search { display: flex; align-items: center; gap: 8px; flex: 0 1 340px; min-width: 220px; height: 36px; padding: 0 8px 0 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink-3); box-shadow: var(--sh-1); }
.filters .search:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.filters .search .input { border: 0; box-shadow: none; padding: 0; min-height: 34px; background: transparent; }
.filters .search .input:focus { box-shadow: none; }
.f-lbl { display: inline-grid; place-items: center; color: var(--ink-3); margin-left: 4px; }
.filters select.input { width: auto; min-height: 32px; height: 32px; padding: 0 30px 0 12px; border-radius: var(--r-full); border: 1px dashed var(--line-3); background-color: transparent; font-size: 13px; font-weight: 550; color: var(--ink-2); box-shadow: none; background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; }
.filters select.input:hover { border-color: var(--ink-4); background-color: var(--surface); }
.filters select.input.on { border-style: solid; border-color: transparent; background-color: var(--primary-soft); color: var(--primary-ink); }
.f-toggle { display: none; }
.blot-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.blot-body:has(.insp:not([hidden])) { grid-template-columns: minmax(0, 1fr) minmax(380px, 440px); }
.p-blot .pane-b { padding: 0; }
.list-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-3); min-height: 48px; }
.restored { display: inline-flex; gap: 8px; align-items: center; }
.bulk { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: var(--r); background: var(--primary-soft); }
.bulk-n { font-weight: 600; color: var(--primary-ink); font-size: 13px; }
.bulk .input { width: auto; min-height: 30px; height: 30px; padding-top: 0; padding-bottom: 0; font-size: 13px; }
.blot-list { overflow: auto; }
.t.leads td { height: 52px; }
.t.leads tr { cursor: pointer; }
.t.leads tr.open td { background: var(--sel); }
.t.leads tr.cur td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.td-check { width: 44px; padding: 0 0 0 16px !important; }
.biz-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.biz-av { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--volt-soft); color: var(--primary-ink); font-weight: 650; font-size: 13px; flex: none; box-shadow: inset 0 0 0 1px var(--primary-soft-2); }
.biz-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.biz-n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.biz-c { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t.leads .c-biz { max-width: 320px; }
.t.leads td.c-town, .t.leads td.c-trade, .t.leads td.c-touch { color: var(--ink-2); }
.t.leads td.c-next { color: var(--ink-2); max-width: 260px; }
.t.leads.hide-score .c-score, .t.leads.hide-stage .c-stage, .t.leads.hide-town .c-town, .t.leads.hide-trade .c-trade, .t.leads.hide-rep .c-rep, .t.leads.hide-next .c-next, .t.leads.hide-touch .c-touch { display: none; }
.lead-cards { display: none; }
.more-row { display: flex; justify-content: center; padding: 16px; }
.cards-only { display: none !important; }
.col-chooser .check { min-height: 40px; align-items: center; padding: 0 10px; border-radius: var(--r); border: 1px solid var(--line); }
.col-chooser .check:hover { background: var(--hover); }
/* inspector */
.insp { position: sticky; top: calc(var(--top-h) + 16px); max-height: calc(100vh - var(--top-h) - 32px); max-height: calc(100dvh - var(--top-h) - 32px); overflow: hidden; box-shadow: var(--sh-2); }
.insp > .pane-b { overflow: auto; display: flex; flex-direction: column; gap: 18px; }
.insp-h { display: flex; gap: 12px; align-items: flex-start; }
.insp .name { font-size: 20px; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; }
.insp .lead-tags { margin: 6px 0 4px; }
.insp .meta { color: var(--ink-3); font-size: 13.5px; }
.insp-phone { display: inline-flex; align-items: center; gap: 12px; font-size: 26px; padding: 12px 16px; border-radius: var(--r-lg); background: var(--volt-soft); box-shadow: inset 0 0 0 1px var(--primary-soft-2); align-self: stretch; }
.insp-phone .ico { width: 20px; height: 20px; color: var(--primary); }
.plan-box { padding: 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.timeline.simple { gap: 0; }
.timeline.simple li { display: grid; grid-template-columns: 120px 1fr; column-gap: 12px; padding: 8px 0 8px 14px; border-left: 2px solid var(--line); position: relative; font-size: 13px; }
.timeline.simple li::before { content: ""; position: absolute; left: -5px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--surface); }
.timeline.simple .tl-t { color: var(--ink-3); grid-row: span 2; }
.timeline.simple .tl-k { font-weight: 600; }
.timeline.simple .tl-n { color: var(--ink-2); }
.drawer-esc .kc { margin-right: 4px; }

/* ---------- APPROVALS ---------- */
.scr.appr { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); align-items: start; }
.scr.appr > * { grid-column: auto; }
.scr.appr > .p-stuck { grid-column: 1 / -1; }
.p-aq .pane-b { padding: 0; }
.t.aq td { height: 64px; cursor: pointer; }
.aq-b { display: flex !important; align-items: center; gap: 12px; height: 64px !important; }
td.aq-b { display: table-cell !important; }
.aq-b > * { vertical-align: middle; }
.aq-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-ink); margin-right: 10px; }
.aq-t { display: inline-flex; flex-direction: column; vertical-align: middle; line-height: 1.3; max-width: 200px; }
.aq-t strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.t.aq tr.cur td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.p-prev .pane-b { display: flex; flex-direction: column; gap: 16px; }
.prev-h { display: flex; gap: 12px; align-items: center; }
.prev-h .avatar { width: 36px; height: 36px; font-size: 12px; }
.prev-h .name { font-size: 18px; font-weight: 650; letter-spacing: -.015em; }
.mail-foot { padding: 12px 14px; border-radius: var(--r); background: var(--sunken); border: 1px dashed var(--line-3); display: flex; flex-direction: column; gap: 4px; color: var(--ink-2); }
.mf-k { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.mf-k .ico { width: 13px; height: 13px; }
.decide { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- TEAM ---------- */
.scr.team .p-people { grid-column: span 12; }
.scr.team .p-invite { grid-column: span 5; }
.scr.team .p-comm { grid-column: span 7; }
.t.people td { height: 60px; }
.t.people td.main { display: table-cell; }
.t.people td.main .avatar { display: inline-grid; vertical-align: middle; margin-right: 10px; float: left; margin-top: 2px; }
.t.people td.main .strong { display: block; }
.spark-cell { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.act-td { width: 1%; white-space: nowrap; }
.p-invite .pane-b > .pane-pad { padding: 0; }

/* ---------- AGENTS / COMMAND CENTER ---------- */
.agents-s .p-legend { grid-column: span 12; }
.agents-s .p-dept { grid-column: span 6; }
.legend-figs { margin-bottom: 12px; }
.legend-figs .fig-l .tag { height: 22px; }
.agent-n { display: inline-flex; align-items: center; gap: 10px; }
.agent-ico { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-ink); flex: none; }
.wraptd { white-space: normal; min-width: 220px; }
.t td.wraptd { padding-top: 10px; padding-bottom: 10px; height: auto; }
.feed .pane-b { display: flex; flex-direction: column; gap: 14px; }
.feed .figs .fig-v { font-size: 28px; }
.ok-text.fig-v, .fig-v.ok-text { color: var(--green-ink); }
.strip-counts { display: inline-flex; gap: 12px; flex-wrap: wrap; }
.sc { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.sc .sq { width: 7px; height: 7px; box-shadow: none; }
.strip-t { display: flex; flex-direction: column; min-width: 0; }
.strip-t .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- SETTINGS ---------- */
.set-s { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; max-width: 1100px; }
.set-s > * { grid-column: auto; }
.set-s .pane-h { gap: 12px; }
.pane-ht { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pane-ht .pane-src { font-size: 12.5px; }
.set-s .pane-b { display: flex; flex-direction: column; gap: 14px; }
.set-s form.pane .btn.primary, .set-s form.pane .btn[type="submit"] { align-self: flex-start; }
.set-s .p-keys, .set-s .p-email { grid-column: span 1; }
.list.conn > li { gap: 12px; }
.conn-st { display: inline-flex; gap: 8px; align-items: center; }
.conn-t2 { display: inline-flex; gap: 6px; align-items: center; }
.conn-t2 .sq { display: none; }
.key-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.key-legend li { display: inline-flex; gap: 6px; align-items: center; }
.link-row { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- CLIENTS ---------- */
.clnt-s .pane-b, .supp-s .pane-b { display: flex; flex-direction: column; gap: 14px; }
.clients-actions { justify-content: flex-start; }
.ctiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ctile { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); text-align: left; color: var(--ink); box-shadow: var(--sh-1); transition: transform var(--t-fast) var(--ease); }
.ctile:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
.ctile .small { color: var(--ink-3); font-weight: 550; }
.ctile .big { font-size: 26px; }
.ctile.warn .big { color: var(--amber-ink); }
.ctile[aria-pressed="true"] { border-color: var(--primary); box-shadow: var(--ring); background: var(--primary-soft); }
.filters-c { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 8px; }
.list-meta:has(> p:only-child) { padding: 0; border: 0; min-height: 0; }
.t.clients-list td { height: 52px; }
.t.clients-list .crow { cursor: pointer; }
.t.clients-list td.main a { font-weight: 600; color: var(--ink); }
.t.clients-list td.main a:hover { color: var(--primary-ink); }
.setup-card { max-width: 720px; padding: 24px; gap: 14px; }
.setup-card h2 { font-size: 18px; letter-spacing: -.015em; }
.cd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cd-grid > .cd-acct { grid-column: 1 / -1; }
.cd-acct-b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.cd-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cd-id { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cd-name { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.cd-kv { grid-template-columns: max-content minmax(0, 1fr) !important; }
.t.plist tr.cur td { background: var(--primary-soft); }
.meter { height: 10px; border-radius: var(--r-full); background: var(--sunken); overflow: hidden; }
.meter > * { height: 100%; background: var(--volt); border-radius: var(--r-full); }
details.notes { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
details.notes summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.supp-s { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.supp-s > * { grid-column: auto; }
.t.sq-t td { height: 52px; }
.t.sq-t .sq-row { cursor: pointer; }
.sreq-box { display: flex; flex-direction: column; gap: 14px; }
.terms { line-height: 1.5; }

/* ---------- auth + screens outside the shell ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 32px 16px; background: var(--bg); }
.auth-split { display: grid; grid-template-columns: 1fr; width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-3); overflow: hidden; }
.auth-aside { display: none; }
.auth-card { display: flex; flex-direction: column; gap: 24px; padding: 32px; }
.auth-top { display: flex; align-items: center; }
.auth-body { display: flex; flex-direction: column; gap: 14px; }
.auth-body h1 { font-size: 24px; font-weight: 650; letter-spacing: -.025em; }
.lead-in { color: var(--ink-3); font-size: 14.5px; margin-top: -8px; }
.auth-body .seg { display: flex; }
.auth-body .seg button { flex: 1 1 0; justify-content: center; min-height: 34px; }
.auth-body .btn.primary.block { width: 100%; min-height: 48px; font-size: 15px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.auth-links a { min-height: 44px; display: inline-flex; align-items: center; }
.auth-sys { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.auth-sys span { display: inline-flex; gap: 8px; align-items: center; }
.auth-sys .ico { width: 14px; height: 14px; }
.auth-foot { font-size: 13px; color: var(--ink-3); }
.form-msg { font-size: 13.5px; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--green-ink); } .form-msg.bad { color: var(--red-ink); } .form-msg.warn { color: var(--amber-ink); }
@media (min-width: 960px) {
  .auth-split { grid-template-columns: 1.05fr 1fr; width: min(980px, 100%); min-height: 580px; }
  .auth-aside { display: flex; flex-direction: column; gap: 22px; padding: 40px; color: var(--on-volt); background: var(--bg-3); position: relative; overflow: hidden; }
  .auth-aside::after { content: none; }
  .auth-aside > * { position: relative; z-index: 1; }
  .auth-mark { display: flex; align-items: center; gap: 14px; }
  .mark-chip.big { border-radius: 12px; box-shadow: none; }
  .mark-chip.big .logo-mark { border-radius: 12px; }
  .auth-word { font-size: 18px; font-weight: 650; letter-spacing: -.015em; }
  .auth-sub { font-size: 13px; color: var(--ink-2); }
  .auth-aside h2 { font-size: 30px; font-weight: 650; letter-spacing: -.03em; line-height: 1.15; max-width: 14ch; margin-top: 24px; }
  .auth-feats { display: flex; flex-direction: column; gap: 12px; }
  .auth-feats li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--ink); }
  .af-i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--veil);  flex: none; }
  .auth-loc { font-size: 12.5px; color: var(--ink-2); }
  .auth-card { padding: 40px; justify-content: center; }
}
.term, .boot-shell { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); }
.term-box { width: min(520px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-3); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.term-t { font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.term-kv { margin: 4px 0; }
.boot-shell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.boot-line { display: inline-flex; gap: 10px; align-items: center; color: var(--ink-3); font-size: 14px; }
.boot-line .spin { color: var(--primary); }
.boot-shell .skel-rows { width: min(360px, 80vw); }
#app.boot { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; }
.boot-word { font-weight: 650; font-size: 15px; color: var(--ink-2); letter-spacing: -.01em; }
.p-404 { display: grid; place-items: start center; padding-top: 24px; }
.notfound-card { width: min(560px, 100%); padding: 8px 8px 16px; }
.nf-links { display: flex; flex-direction: column; padding: 0 16px; }
.nf-link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 10px; border-radius: var(--r); color: var(--ink); font-weight: 550; }
.nf-link:hover { background: var(--hover); text-decoration: none; }
.nf-link > .ico:last-child { margin-left: auto; color: var(--ink-4); }

/* ---------- responsive: other screens ---------- */
@media (max-width: 1279px) {
  .agents-s .p-dept { grid-column: span 12; }
  .scr.team .p-invite, .scr.team .p-comm { grid-column: span 12; }
  .blot-body:has(.insp:not([hidden])) { grid-template-columns: minmax(0, 1fr) 380px; }
}
@media (max-width: 1023px) {
  .scr.appr, .supp-s, .set-s { grid-template-columns: minmax(0, 1fr); }
  .cd-grid { grid-template-columns: minmax(0, 1fr); }
  .cd-acct-b { grid-template-columns: minmax(0, 1fr); }
  .blot-body:has(.insp:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .blot-tabs { margin: 0 -16px; padding: 0 16px; }
  .vtab-act { padding-left: 8px; }
  .filters .search { flex: 1 1 100%; }
  .filters select.input, .filters > .btn.ghost, .f-lbl { display: none; }
  .filters.open select.input { display: inline-flex; }
  .f-toggle { display: inline-flex; }
  .cards-only { display: revert !important; }
  .t.leads, .p-blot .pane-a { display: none; }
  .lead-cards { display: flex; flex-direction: column; }
  .lead-cards > li { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 8px 0 12px; }
  .lead-cards .item { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 4px; color: var(--ink); text-decoration: none; min-width: 0; }
  .lc-b { font-weight: 600; font-size: 15px; }
  .lc-m { font-size: 13px; color: var(--ink-3); }
  .cbx { display: grid; place-items: center; width: 44px; height: 44px; flex: none; }
  .list-meta { padding: 10px 12px; }
  .sort-pick { width: auto; min-height: 36px; }
  .insp { position: fixed; inset: var(--top-h) 0 0 0; max-height: none; z-index: var(--z-scrim); border-radius: 0; border: 0; }
  .t th, .t td { padding: 0 10px; }
  .t.stackable thead { display: none; }
  .t.stackable, .t.stackable tbody, .t.stackable tr, .t.stackable td { display: block; }
  .t.stackable tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .t.stackable td { height: auto; border: 0; padding: 3px 0; text-align: left; display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 32px; }
  .t.stackable td[data-label]::before { content: attr(data-label); color: var(--ink-3); font-size: 13px; font-family: var(--sans); }
  .t.stackable td.main { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
  .t.stackable td.main::before { display: none; }
  .t.stackable td.act-td { width: auto; padding-top: 8px; }
  .t.stackable td.act-td .btn { width: 100%; min-height: 44px; }
  .ctiles { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .ctile { padding: 10px 12px; }
  .ctile .big { font-size: 22px; }
  .filters-c { grid-template-columns: 1fr; }
  .t.clients-list th:nth-child(n+4), .t.clients-list td:nth-child(n+4) { display: none; }
  .decide .btn { flex: 1 1 0; min-height: 48px; }
  .auth-card { padding: 24px 20px; }
  .term-box { padding: 24px 20px; }
  .scr { gap: 12px; }
  .t.aq td { height: 68px; }
  .aq-t { max-width: 180px; }
  .set-s .pane-b .btn { min-height: 44px; }
}
.t td .btn, .t td.n .btn { font-family: var(--sans); }
.aq-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.aq-row .aq-ico { margin: 0; flex: none; }
.aq-t { display: flex; max-width: none; min-width: 0; }
.aq-t .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t.aq td:last-child { width: 1%; padding-right: 16px; }
.t.people td.main { position: relative; padding-left: 56px; }
.t.people td.main .avatar { position: absolute; left: 14px; top: 50%; margin: -14px 0 0; float: none; }
.t.people td.main .small { line-height: 1.4; }
.t.leads td { white-space: nowrap; }
.t.leads td.c-next { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.t.leads .c-biz { max-width: 300px; }
.blot-count { font-weight: 550; color: var(--ink-2); }
@media (max-width: 767px) { .t.people td.main { padding-left: 44px; } .t.people td.main .avatar { left: 0; } }
.meter > span { display: block; width: 100%; transform-origin: left; }
.meter.over > span { background: var(--red); } .meter.near > span, .meter.cap > span { background: var(--amber); }
pre.code { margin: 0; padding: 12px; border-radius: var(--r); background: var(--sunken); border: 1px solid var(--line); font: 12px/1.5 var(--mono); white-space: pre-wrap; word-break: break-all; overflow: auto; max-width: 100%; }
.cd-acct-b { padding: 16px 20px; align-items: start; }
.cd-id { flex-direction: column; align-items: flex-start; gap: 8px; }
.cd-acct .cd-kv { grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr) !important; column-gap: 20px; }
.cd-col .pane .pane-b { display: flex; flex-direction: column; gap: 12px; }
.cd-col .t { font-size: 13px; }
.cd-col .t th, .cd-col .t td { padding: 0 8px; }
.cd-col .tscroll, .cd-col .pane-b { overflow-x: auto; }
.cd-grid .t.plist td, .cd-grid .t.plist th { white-space: nowrap; }
@media (max-width: 767px) { .cd-acct .cd-kv { grid-template-columns: max-content minmax(0, 1fr) !important; } }


/* ---------- reduced motion: celebrations off, fades of 120 ms or less, nothing travels ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .scrim, .toast, .palette, .drawer, .sheet, .menu, .cmd-drop, .moment, .recap, .ans { animation: fadeIn 100ms linear !important; }
  .toast.leaving, .scrim.closing, .moment.leaving { animation: fadeOut 100ms linear forwards !important; }
  .flash::after { animation: flash 120ms linear !important; }
  .burst { display: none !important; }
  .adv-next, .adv-prev { animation: fadeIn 100ms linear !important; }
  .skel { animation: none !important; }
  .btn-call.live .bc-i, .live-ico.on { animation: none !important; }
  .ring-arc {  }
  .fkey:hover, .btn-call:hover, a.kpi:hover, .ctile:hover { transform: none; }
}
/* ---------- print ---------- */
@media print {
  .rail, .topbar, .tabbar, .fkeys, .toast, .offline-bar, .dsw, .moment { display: none !important; }
  .shell { display: block; background: var(--on-volt); }
  .main { padding: 0; }
  .pane, .kpi { box-shadow: none; break-inside: avoid; }
  body { background: white; color: black; }
}
/* ---------- static pages: terms.html, 404.html ---------- */
.static-page { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
.static-page .sp-top { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.static-page h1 { font-size: 28px; font-weight: 650; letter-spacing: -.025em; margin-bottom: 8px; }
.static-page h2 { font-size: 17px; font-weight: 600; margin: 28px 0 8px; }
.static-page p, .static-page li { color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.static-page ul { list-style: disc; padding-left: 20px; }
.static-page .card { margin-top: 24px; }
.sp-404 { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.sp-404 .card { width: min(480px, 100%); padding: 32px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; box-shadow: var(--sh-3); }
.sp-404 .code404 { font: 800 48px/1 var(--sans); font-stretch: 118%; letter-spacing: -.02em; color: var(--volt-ink); }
.doc { max-width: 720px; margin: 40px auto; padding: 36px 40px 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-2); }
.doc .brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.doc .brand-row .logo-mark { border-radius: 8px; }
.doc h1 { font-size: 28px; font-weight: 650; letter-spacing: -.025em; margin: 10px 0 8px; }
.doc h2 { font-size: 16px; font-weight: 600; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.doc ul { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.doc .btn { margin-top: 16px; }
.doc-foot { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }
.doc-404 { max-width: 480px; margin-top: 12vh; margin-top: 12svh; text-align: center; }
.doc-404 .brand-row { justify-content: center; }
.code404 { font: 800 56px/1 var(--sans); font-stretch: 118%; letter-spacing: -.02em; color: var(--volt-ink); }
@media (max-width: 767px) { .doc { margin: 0; border-radius: 0; border: 0; padding: 24px 20px; min-height: 100vh; min-height: 100dvh; } }
/* custom properties set per element from JS (defaults here): toast timer, outcome order, burst angle */
.fkey { --ord: 10; --rord: 9; }
.burst i { --a: 0deg; }
/* queue + approvals: column headers stay for screen readers, hidden visually (rows carry their own labels) */
.t.queue thead th, .t.aq thead th { height: 0; padding-top: 0; padding-bottom: 0; border: 0; font-size: 0; line-height: 0; overflow: hidden; }

/* top bar fits from 768 to 1279: the live ticker and the name step aside before anything overflows */
@media (max-width: 1279px) { .topbar .status { display: none; } }
@media (min-width: 768px) and (max-width: 1023px) { .who, .tb-profile > .ico { display: none; } .cmd { flex: 1 1 auto; min-width: 0; } .topbar { padding: 0 16px; } }
@media (max-width: 767px) {
  .tb-cells { flex: none; }
  .connl .conn-t { display: none; }
  .connl { width: 44px; height: 44px; justify-content: center; padding: 0; border: 0; background: transparent; }
  .connl[data-state="unsent"], .connl[data-state="offline"] { width: auto; height: 32px; padding: 0 10px; }
  .connl[data-state="unsent"] .conn-t, .connl[data-state="offline"] .conn-t { display: inline; }
  .p-board .pane-b, .p-pipe .pane-b, .p-out .pane-b { overflow-x: auto; }
  .t.board td, .t.board th { padding: 0 6px; }
}
/* any card that holds a table scrolls it sideways inside the card, never the page */
.pane-b:has(table), .cstrip-b, .cd-col .pane-b { overflow-x: auto; }
.desk .pane-b:has(table) { overflow-x: hidden; }
.myday-t .btn { max-width: 100%; overflow: hidden; }
.myday-t .btn span { overflow: hidden; text-overflow: ellipsis; }
.cmd-drop { width: max(100%, min(640px, calc(100vw - var(--rail-w) - 48px))); }

.myday-t { min-width: 0; }
.myday-t { flex: 1 1 auto; }
.myday-t .btn { min-width: 0; }
@media (max-width: 767px) { .myday-t { align-self: stretch; width: 100%; } .myday-t .btn { width: 100%; } }

/* phone, Lead tab: the momentum strip shrinks to one slim row so name, number, next action and angle fit above the dock */
@media (max-width: 767px) {
  .desk[data-m="lead"] .momentum > .pane-b { display: flex; align-items: center; gap: 12px; padding: 6px 12px; }
  .desk[data-m="lead"] .mom-goal .ring-wrap svg { width: var(--ring-xs); height: var(--ring-xs); }
  .desk[data-m="lead"] .mom-goal .ring-n { font-size: 13px; }
  .desk[data-m="lead"] .mom-figs { display: flex; gap: 0; flex: 1 1 auto; min-width: 0; }
  .desk[data-m="lead"] .mom-figs .fig { flex-direction: row; align-items: baseline; gap: 6px; padding: 0 10px; flex: 1 1 0; min-width: 0; }
  .desk[data-m="lead"] .mom-figs .fig-s, .desk[data-m="lead"] .mom-figs .fig-ic { display: none; }
  .desk[data-m="lead"] .mom-figs .fig-v { font-size: 17px; order: -1; }
  .desk[data-m="lead"] .mom-figs .fig-v small { font-size: 12px; }
  .desk { gap: 10px; padding: 10px 12px; }
  .p-lead > .pane-h { min-height: 40px; padding-top: 8px; }
  .p-lead > .pane-b { gap: 12px; padding: 2px 14px 16px; }
  .p-lead .name { font-size: 20px; }
  .lead-id { gap: 4px; }
  .dial { padding: 10px 14px; }
  .phone-big { font-size: 30px; }
  .brief { gap: 8px; }
  .angle li { height: 28px; font-size: 12.5px; }
}
/* small phones (under 360 px wide or 600 px tall): the lead keeps the screen */
@media (max-width: 359px), (max-width: 767px) and (max-height: 600px) {
  .desk[data-m="lead"] > .p-session { display: none; }
  .p-lead > .pane-h { display: none; }
  .p-lead > .pane-b { padding-top: 12px; }
  .stage-nav .btn.icon-btn { display: none; }
  .p-lead .name { font-size: 18px; padding-right: 44px; }
  .phone-big { font-size: 26px; }
  .dial { padding: 8px 12px; }
  .fkeys.compact .k-call > .ico { display: none; }
  .fkeys.compact .k-call { font-size: 15px; }
  .dsw { padding: 6px 10px; }
  .dsw button { min-height: 36px; }
}
.k-call .fk-l { flex: none; }

@media (max-width: 767px) {
  .fkeys { gap: 8px; }
  .k-call { margin-right: 4px; }
  .fkeys.compact { grid-template-columns: 1.7fr 1fr 1fr 1fr; }
  body.typing .tabbar { display: none; }
}
/* large text (200%): wrap instead of pushing the page sideways */
@media (max-width: 767px) {
  .phone-big { white-space: normal; overflow-wrap: anywhere; }
  .dial { min-width: 0; }
  .dsw button, .tab, .fkey { min-width: 0; }
  .dsw button span, .tab-m, .fk-l { overflow-wrap: anywhere; white-space: normal; text-align: center; }
  .topbar { overflow: hidden; }
}
@media (max-width: 767px) { .main :is(input, textarea, select) { scroll-margin-top: calc(var(--top-h) + 72px); scroll-margin-bottom: 16px; } }

/* phones: every tap target 44 px or more (48 for the primary action of a screen) */
@media (max-width: 767px) {
  .btn, .btn.sm, .input, select.input, .seg button, .seg a, .seg.mini button, .rt, .vtab { min-height: 44px; }
  .btn.primary, .btn.lg, .btn-call, .k-call { min-height: 48px; }
  .btn.icon-btn, .btn.icon-btn.sm { width: 44px; }
  .filters .search { height: 48px; }
  .filters .search .input { min-height: 44px; }
  .tb-brand { width: 44px; height: 44px; display: grid; place-items: center; }
  .back { min-height: 44px; }
  .t td a, .kv dd a, .link-row, .auth-body a:not(.btn), .auth-links a, .stage-l, .doc a:not(.btn), .check, .sheet a, .p-month a { display: inline-flex; align-items: center; min-height: 44px; }
  .auth-body .check, .check { min-height: 44px; }
  .stage-nav .btn { width: auto; min-width: 44px; min-height: 44px; }
  .opt { min-height: 48px; }
  .fu-list > li { min-height: 56px; }
  .fu-b { min-height: 44px; justify-content: center; }
  details.notes summary { min-height: 44px; display: flex; align-items: center; }
  .sys-item { height: 44px; }
  .tk-a { min-height: 44px; }
  .cstat { min-height: 64px; }
  .seg { flex-wrap: wrap; }
  .pane-a .btn, .pane-h .btn { min-height: 44px; }
}

@media (max-width: 767px) {
  .main .btn.primary, .auth .btn.primary, .t.stackable td.act-td .btn.primary, .set-s .pane-b .btn.primary { min-height: 48px; }
  .auth-body .seg button, .dsw button { min-height: 44px; }
  .seg button, .seg a { min-width: 44px; justify-content: center; }
  .p-lead .phone-big { display: block; min-height: 44px; }
  .pal-x.btn.icon-btn { width: 44px; height: 44px; }
  .sq-row a, .sreq a, .supp-s td a { display: inline-flex; align-items: center; min-height: 44px; }
}

.pal-x { flex: none; }
@media (max-width: 767px) { .btn .kc, .btn-call .kc { display: none; } .decide { flex-wrap: wrap; } .decide .btn { min-width: 0; } }
.opener-box:has(.opener:empty) { display: none; }
@media (max-width: 767px) {
  .angle { gap: 6px; }
  .angle li { height: 26px; padding: 0 8px; font-size: 12px; gap: 4px; }
  .angle li .ico { width: 12px; height: 12px; }
  .k-out { min-height: 52px; }
}
@media (max-width: 767px) { .stage-nav .btn.icon-btn { display: none; } .p-lead > .pane-h { padding-right: 64px; } }
@media (max-width: 767px) { .rail-box { overflow: visible; } .rail-tabs { border-radius: var(--r-lg) var(--r-lg) 0 0; } }

/* =====================================================================================================================
   SIGNAL LAYER (2026-11-13). Everything below restyles the shared markup into the Signal look. Phone first (390).
   ===================================================================================================================== */

/* ---------- base type ---------- */
body { font: 450 16px/1.375 var(--sans); font-feature-settings: normal; letter-spacing: 0; background: var(--bg); }
@media (min-width: 768px) { body { font-size: 15px; } }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums lining-nums; }
a { color: var(--volt-ink); }
svg.ico { stroke-width: var(--ico-w); } svg.ico > * { vector-effect: non-scaling-stroke; } /* CRAFT 2026-11-15: one icon system, stroke in screen px matched to the label next to it (tokens --ico-w-*) */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-xs); }
::selection { background: var(--volt-soft); }
a[href^="tel:"], .phone-big, .insp-phone, .tel, .kc { font-family: var(--mono); }
.muted, .dim-text { color: var(--ink-3); }
.small { font-size: 14px; } .tiny { font-size: 13px; }

/* ---------- keys and buttons: the ledge ---------- */
.btn { min-height: 44px; padding: 0 16px; border-radius: var(--r-sm); border: 0; background: var(--bg-3); color: var(--ink); font-weight: 600; font-size: 15px; font-stretch: 104%; box-shadow: var(--btn-edge); transition: transform var(--t-press) var(--ease-press); }

.btn:hover { background: var(--bg-4); }
.btn:active { transform: scale(.97); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: var(--r-xs); }
.btn.lg { min-height: 52px; font-size: 16px; border-radius: var(--r-md); }
.btn.icon-btn { width: 44px; } .btn.icon-btn.sm { width: 36px; }
.btn.primary, .btn-call, .k-call { background: var(--volt); color: var(--on-volt); border: 0; border-radius: var(--r-md); box-shadow: 0 4px 0 var(--volt-ledge); font-weight: 700; font-stretch: 108%; margin-bottom: 4px; }
.btn.primary:hover, .btn-call:hover, .k-call:hover { background: var(--volt); color: var(--on-volt); transform: none; box-shadow: 0 4px 0 var(--volt-ledge); text-decoration: none; }
.btn.primary:active, .btn-call:active, .k-call:active { transform: translateY(4px); box-shadow: 0 0 0 var(--volt-ledge); }
.btn.primary:focus-visible { box-shadow: 0 4px 0 var(--volt-ledge); }
.btn.primary .kc, .btn-call .kc, .k-call .kc { background: var(--veil); border-color: transparent; color: var(--on-volt); }
.btn.ghost { background: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--bg-3); color: var(--ink); }
.btn.danger { color: var(--bad); }
.btn.danger.solid, .btn.danger.primary { background: var(--bad); color: var(--on-flare); box-shadow: 0 4px 0 var(--bg-4); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; }
.btn.done { box-shadow: inset 0 0 0 1px var(--ice); color: var(--ice); }
.btn.primary.done { background: var(--ice); color: var(--on-ice); box-shadow: 0 4px 0 var(--bg-4); }
.link-btn { color: var(--volt-ink); font-weight: 600; }
.kc { min-width: 22px; height: 22px; border-radius: var(--r-xs); border: 1px solid var(--line); border-bottom-width: 1px; background: transparent; color: var(--ink-3); font: 520 12px/1 var(--mono); }
.badge { background: var(--volt); color: var(--on-volt); font: 700 11px/1 var(--sans); min-width: 20px; height: 20px; }

/* ---------- inputs ---------- */
.input { min-height: 48px; padding: 12px 14px; border: 1px solid var(--ctrl); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); font-size: 16px; box-shadow: none; }
textarea.input { min-height: 72px; }
.input::placeholder { color: var(--ink-3); opacity: 1; }
.input:hover { border-color: var(--ink-3); }
.input:focus { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.field { gap: 8px; }
.field > label, label.lbl { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.err { font-size: 14px; color: var(--bad); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--volt); width: 20px; height: 20px; }
.switch-ui { width: 44px; height: 26px; background: var(--bg-4); box-shadow: inset 0 0 0 1px var(--ctrl); }
.switch-ui::after { top: 3px; left: 3px; width: 20px; height: 20px; background: var(--ink); transition: transform var(--t-win) var(--ease-win); }
.switch input:checked + .switch-ui { background: var(--volt); box-shadow: none; }
.switch input:checked + .switch-ui::after { transform: translateX(18px); background: var(--on-volt); }
.seg { padding: 4px; gap: 2px; background: var(--bg-2); border: 0; border-radius: var(--r-pill); }
.seg button, .seg a { min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); font-weight: 600; font-size: 14px; color: var(--ink-3); }
.seg [aria-checked="true"], .seg [aria-selected="true"], .seg [aria-pressed="true"], .seg .on { background: var(--bg-4); color: var(--ink); box-shadow: none; }
.seg.mini button { min-height: 32px; font-size: 13px; }

/* ---------- tags: dot + words, no pastel walls ---------- */
.tag { height: 24px; padding: 0 9px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; background: var(--bg-3); color: var(--ink-2); }
.tag::before { width: 7px; height: 7px; }
.tag.ok { --c: var(--ice); --bgc: var(--ice-soft); --fg: var(--ice); background: var(--ice-soft); color: var(--ice); }
.tag.bad { background: var(--bad-soft); color: var(--bad); --c: var(--bad); }
.tag.warn { background: var(--warn-soft); color: var(--warn); --c: var(--warn); }
.tag.info { background: var(--signal-soft); color: var(--signal); --c: var(--signal); }
.tag.amber, .tag.accent { background: var(--volt-soft); color: var(--volt-ink); --c: var(--volt-ink); }
.tag.plain { background: var(--bg-3); color: var(--ink-2); --c: var(--ink-3); }
.sq.ok { background: var(--ice); box-shadow: none; } .sq.bad { background: var(--bad); box-shadow: none; } .sq.warn { background: var(--warn); box-shadow: none; } .sq.info { background: var(--signal); }

/* ---------- surfaces: steps, not shadows ---------- */
.pane, .card { background: var(--bg-2); border: 0; border-radius: var(--r-md); box-shadow: none; }
.pane:focus-visible { box-shadow: var(--ring); }
.pane-h { min-height: 52px; padding: 16px 16px 4px; border-bottom: 0; }
.pane-t { font-size: 18px; line-height: 24px; font-weight: 650; letter-spacing: -.005em; }
.pane-n { height: 22px; background: var(--bg-3); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.pane-src { font-size: 13px; color: var(--ink-3); }
.pane-ico { display: none; }
.pane-b { padding: 12px 16px 16px; }
.sec-t { font-size: 13px; font-weight: 650; color: var(--ink-3); letter-spacing: .01em; }
.kv-r { padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-size: 14px; color: var(--ink-3); } .kv dd { font-size: 15px; }
.fig-l { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.fig-v { font-size: 32px; font-weight: 760; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.05; }
.fig-v small { font-family: var(--sans); font-stretch: 100%; }
.fig-s { font-size: 13px; color: var(--ink-3); }
.fig-ic { display: none; }
.fig.ok .fig-v, .fig.win .fig-v { color: var(--ink); }
.t { font-size: 15px; }
.t th { background: var(--bg-2); color: var(--ink-3); font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--line); }
.t td { height: 52px; border-bottom: 1px solid var(--line); }
.t tbody tr:hover td { background: var(--bg-3); }
.t tr.cursor td, .t tr.cur td, .t tr[aria-selected="true"] td { background: var(--bg-4); }
.banner { border: 0; border-radius: var(--r-sm); background: var(--bg-3); color: var(--ink-2); font-size: 14px; padding: 12px 14px; }
.banner.bad { background: var(--bad-soft); color: var(--ink); box-shadow: inset 4px 0 0 var(--bad); }
.banner.warn { background: var(--warn-soft); color: var(--ink); box-shadow: inset 4px 0 0 var(--warn); }
.banner.ok { background: var(--ice-soft); color: var(--ink); box-shadow: inset 4px 0 0 var(--ice); }
.banner.info { background: var(--signal-soft); color: var(--ink); box-shadow: inset 4px 0 0 var(--signal); }
.banner .ico { color: var(--ink-2); }
.empty-ico { background: transparent; box-shadow: none; color: var(--ink-3); width: auto; height: auto; }
.empty-ico .ico { width: 32px; height: 32px; }
.empty.good .empty-ico { background: transparent; color: var(--ice); }
.empty-t, .empty strong { font-size: 18px; font-weight: 700; }
.empty p { font-size: 15px; color: var(--ink-2); }
.skel { background: var(--bg-3); border-radius: var(--r-xs); }
.flash::after { background: var(--volt); }
.flash-ok::after { background: var(--ice); }

/* ---------- charts ---------- */
.ring-track { stroke: var(--bg-4); }
.ring.none .ring-track { stroke: var(--bg-4); stroke-dasharray: none; }
.ring-seg { stroke: transparent; }
.ring-seg.on { stroke: var(--volt); }
.ring-seg.win { stroke: var(--flare); }
.ring.done .ring-seg.on { stroke: var(--volt); }
.ring.done .ring-track { stroke: var(--flare); }
.ring-seg + .ring-seg {  }
.ring-n { font-weight: 800; font-stretch: 118%; letter-spacing: -.02em; }
.bars { overflow: visible; display: block; }
.bar-c { fill: var(--ink-3); fill-opacity: .4; }
.bar-c.zero { fill-opacity: .25; }
.bar-c.today { fill: var(--volt); fill-opacity: 1; }
.bar-c:hover { fill-opacity: .8; }
.spark-area { fill: var(--signal-soft); }
.spark-line { stroke: var(--signal); stroke-width: 2; }
.spark-dot { fill: var(--bg-2); stroke: var(--signal); stroke-width: 2; }
.spark-base { stroke: var(--line); }
.spark.tone-purple .spark-line, .spark.tone-purple .spark-dot { stroke: var(--volt-ink); } .spark.tone-purple .spark-area { fill: var(--volt-soft); }
.heat { gap: 3px; }
.heat-c { height: 16px; border-radius: 4px; background: var(--bg-4); }
.heat-c.l1 { background: var(--volt); opacity: .3; } .heat-c.l2 { background: var(--volt); opacity: .5; } .heat-c.l3 { background: var(--volt); opacity: .72; } .heat-c.l4 { background: var(--volt); opacity: 1; }
.stack-bar { height: 12px; background: var(--bg-4); gap: 2px; }
.hbar { background: var(--bg-4); }
.avatar { color: var(--on-volt); font-weight: 700; }
.avatar.a3 { color: var(--ink); }

/* ---------- logo ---------- */
.mark-chip { background: var(--bg-3); border-radius: 10px; padding: 4px; box-shadow: none; }
.mark-chip { background: var(--tile-bg); box-shadow: var(--tile-edge); }
.mark-chip .logo-mark { border-radius: 7px; }
.wordmark { font-weight: 650; font-size: 15px; font-stretch: 110%; letter-spacing: -.005em; color: var(--ink); }

/* ---------- toast (above the island or the dock) ---------- */
.toast { background: var(--bg-4); color: var(--ink); border-radius: var(--r-md); box-shadow: var(--sh-float); padding: 10px 10px 10px 12px; font-size: 15px; }
.toast.win { background: var(--bg-4); box-shadow: inset 4px 0 0 var(--flare), var(--sh-float); }
.toast.bad { box-shadow: inset 4px 0 0 var(--bad), var(--sh-float); }
.toast-act { min-height: 40px; }

/* ---------- overlays: bottom sheets on phone ---------- */
.scrim { background: var(--scrim); }
.sheet, .drawer, .palette, .recap, .menu { background: var(--bg-3); border: 0; box-shadow: var(--sh-float); }
.menu { box-shadow: var(--sh-menu); border-radius: var(--r-md); }
.sheet { border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--edge-hi), var(--sh-float); }
.grab { background: var(--ctrl); opacity: .6; }

/* =====================================================================================================================
   SHELL (phone): transparent header with the logo tile, floating tab island, raised centre Desk key
   ===================================================================================================================== */
@media (max-width: 767px) {
  .shell { display: block; padding-top: var(--top-h); padding-bottom: calc(var(--tab-h) + 32px + env(safe-area-inset-bottom)); background: var(--bg); }
  .rail { display: none; }
  .topbar { position: fixed; left: 0; right: 0; top: 0; z-index: var(--z-bar); height: var(--top-h); display: flex; align-items: center; gap: 12px; padding: 0 8px 0 16px; border: 0; background: var(--hdr); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .tb-brand { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--bg-3); flex: none; }
  .tb-brand { background: var(--tile-bg); box-shadow: var(--tile-edge); }
  .tb-brand .logo-mark { width: 28px; height: 28px; border-radius: 7px; }
  .tb-title { display: block; flex: 1 1 auto; min-width: 0; font-size: 24px; line-height: 28px; font-weight: 700; font-stretch: 106%; letter-spacing: -.01em; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .cmd, .topbar .status, .tb-theme, .who, .tb-profile, .tb-profile > .ico { display: none; }
  .tb-cells { gap: 0; margin-left: 0; }
  .connl[data-state="online"] { display: none; }
  .connl { height: 32px; padding: 0 10px; border-radius: var(--r-pill); background: var(--warn-soft); color: var(--warn); border: 0; font-size: 13px; font-weight: 650; }
  .tb-search { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-2); }
  .tb-search .ico { width: 22px; height: 22px; }
  .main { padding: 8px 16px 32px; }
  .page-h { margin-bottom: 20px; gap: 12px; }
  .page-h .page-t { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .page-s { font-size: 15px; color: var(--ink-2); max-width: 46ch; }

  /* the island */
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); top: auto; z-index: var(--z-island); height: var(--tab-h); padding: 0 6px; border: 0; border-radius: var(--r-pill); background: var(--island); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); box-shadow: var(--sh-float); }
  .tabbar { box-shadow: var(--island-edge); }
  .tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 44px; padding: 0; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-3); font-size: 12px; line-height: 14px; font-weight: 600; text-decoration: none;  }
  .tab:hover { text-decoration: none; color: var(--ink-2); }
  .tab::before { content: none !important; }
  .tab-i { display: grid; place-items: center; }
  .tab-i .ico { width: 24px; height: 24px; }
  .tab[aria-current="page"] { color: var(--ink); }
  .tab[aria-current="page"] .tab-i .ico { color: var(--volt-ink); }
  .tab[aria-current="page"]::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--volt); }
  .tab .badge { position: absolute; top: 6px; left: calc(50% + 6px); box-shadow: 0 0 0 2px var(--bg-3); }
  .tab.tab-dial { justify-content: flex-end; padding-bottom: 6px; color: var(--ink-2); }
  .tab.tab-dial .tab-i { position: absolute; top: -14px; left: 50%; width: 56px; height: 56px; margin-left: -28px; border-radius: 50%; background: var(--volt); color: var(--on-volt); box-shadow: 0 4px 0 var(--volt-ledge), 0 0 0 5px var(--bg); transition: transform var(--t-press) var(--ease-press); }
  .tab.tab-dial .tab-i .ico { width: 26px; height: 26px; --ico-w: var(--ico-w-heavy); color: var(--on-volt); }
  .tab.tab-dial:active .tab-i { transform: translateY(4px); box-shadow: 0 0 0 var(--volt-ledge), 0 0 0 5px var(--bg); }
  .tab.tab-dial::after { content: none; }
  .tab.tab-dial[aria-current="page"] { color: var(--ink); }

  .toast { left: 12px; right: 12px; width: auto; min-width: 0; transform: none; bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom)); }
  .drawer { width: 100vw; border-radius: 0; }
  .offline-bar { top: calc(var(--top-h) + 8px); }
}

/* =====================================================================================================================
   CALL DESK (phone): header with mini ring + streak, segmented pill, dial card, the dock (Skip · Call · Undo + 4x2 pad)
   ===================================================================================================================== */
.desk-back, .desk-mini { display: none; }
.streak-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border-radius: var(--r-pill); background: var(--flare-soft); color: var(--flare); font-weight: 700; font-size: 14px; font-stretch: 110%; white-space: nowrap; }
.streak-chip .ico { width: 16px; height: 16px; --ico-w: var(--ico-w-bold); }
.streak-chip.off { background: var(--bg-3); color: var(--ink-3); }
@media (max-width: 767px) {
  .shell[data-route="desk"] { padding-top: 0; padding-bottom: 0; }
  .shell[data-route="desk"] .topbar, .shell[data-route="desk"] .tabbar { display: none; }
  .shell[data-route="desk"] .main.full { padding: 0 0 calc(var(--dock-h) + 16px); }
  .shell[data-route="desk"] .toast { bottom: calc(var(--dock-h) + 8px); }
  .desk-head { display: flex !important; position: sticky; top: 0; z-index: 8; align-items: center; gap: 4px; height: var(--top-h); padding: 0 12px 0 4px; margin: 0; background: var(--hdr); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 0; }
  .desk-back { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); color: var(--ink); flex: none; }
  .desk-back .ico { width: 26px; height: 26px; --ico-w: var(--ico-w-heavy); }
  .desk-head .page-hl { flex: 1 1 auto; min-width: 0; }
  .desk-head .page-t { position: static !important; width: auto; height: auto; clip: auto; font-size: 24px; line-height: 28px; font-weight: 700; font-stretch: 106%; white-space: nowrap; }
  .desk-head .page-s, .desk-head .page-a { display: none; }
  .desk-mini { display: flex; align-items: center; gap: 8px; flex: none; }
  .mini-goal { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 4px; border-radius: var(--r-pill); background: var(--bg-3); font-weight: 760; font-size: 15px; font-stretch: 112%; color: var(--ink); }
  .mini-goal .ring { width: 28px; height: 28px; }
  .streak-chip.mini { height: 36px; }

  .dsw { position: sticky; top: var(--top-h); z-index: 7; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; margin: 0 16px; padding: 4px; border-radius: var(--r-pill); background: var(--bg-2); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 -8px 0 var(--bg); }
  .dsw button { min-height: 40px; border-radius: var(--r-pill); color: var(--ink-3); font-size: 15px; font-weight: 650; background: transparent; box-shadow: none; }
  .dsw button[aria-selected="true"] { background: var(--bg-4); color: var(--ink); box-shadow: none; }
  .dsw-n { font-size: 12px; font-weight: 700; padding: 1px 7px; background: var(--bg-3); color: var(--ink-2); }
  .dsw button[aria-selected="true"] .dsw-n { background: var(--volt); color: var(--on-volt); }

  .desk { gap: 16px; padding: 16px 16px 8px; }
  .desk[data-m="lead"] > .p-session { display: none !important; }

  /* Lead pane: the dial card is the only raised object */
  .desk > .p-lead { background: transparent; border-radius: 0; }
  .p-lead > .pane-h { display: none; }
  .p-lead > .pane-b { padding: 0; display: flex; flex-direction: column; gap: 12px; }
  .dial-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--r-lg); background: var(--bg-3); box-shadow: var(--edge-hi); }
  .dial-card { box-shadow: var(--card-sh); }
  .dial-card .stage-top { display: flex; flex-direction: column; gap: 0; padding: 0; }
  .dial-card .lead-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 52px 12px 0; }
  .dial-card .name { font-size: 40px; line-height: 44px; font-weight: 760; font-stretch: 112%; letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .dial-card .name.long { font-size: 32px; line-height: 36px; font-stretch: 104%; }
  .dial-card .name.xlong { font-size: 26px; line-height: 31px; font-stretch: 100%; -webkit-line-clamp: 3; }
  .dial-card .meta { margin-top: 6px; font-size: 16px; color: var(--ink-2); }
  .dial-card .stage-nav { position: absolute; top: 12px; right: 12px; }
  .dial-card .stage-nav .open-lead { width: 44px; min-height: 44px; padding: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-2); box-shadow: none; }
  .dial-card .stage-nav .open-lead span { display: none; }
  .dial-card .dial { display: block; padding: 0; background: transparent; box-shadow: none; border-radius: 0; }
  .dial-card .phone-big { display: inline-block; font-size: 28px; line-height: 32px; font-weight: 520; letter-spacing: -.01em; color: var(--ink); padding: 6px 0; }
  .dial-card .dial-k { display: none; }
  .dial-card .brief { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); background: transparent; }
  .brief-next { display: flex; align-items: baseline; gap: 8px; font-size: 15px; color: var(--ink-2); }
  .brief-next .ico { width: 16px; height: 16px; align-self: center; }
  .brief-next .brief-k { font-weight: 700; color: var(--ink); }
  .brief-next.bad .brief-k, .brief-next.bad .brief-v, .brief-next.bad .ico { color: var(--warn); }
  .brief-next.warn .brief-k, .brief-next.warn .ico { color: var(--warn); }
  .why-it { display: flex; flex-direction: column; gap: 8px; }
  .why-h { font-size: 13px; font-weight: 650; color: var(--ink-3); }
  .dial-card .angle { display: flex; flex-direction: column; gap: 6px; }
  .dial-card .angle li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); background: transparent; border: 0; padding: 0; height: auto; }
  .dial-card .angle .ico { width: 16px; height: 16px; color: var(--volt-ink); }
  .lead-sec-t { margin: 12px 4px 0; font-size: 18px; line-height: 24px; font-weight: 650; color: var(--ink); }
  .p-lead .facts { background: var(--bg-2); border-radius: var(--r-md); padding: 4px 16px; }
  .p-lead .facts .kv-r:last-child { border-bottom: 0; }
  .p-lead .why { background: var(--bg-2); border-radius: var(--r-md); padding: 14px 16px; border: 0; box-shadow: none; }
  .p-lead .log-grid { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 16px; border-radius: var(--r-md); background: var(--bg-2); }
  .p-lead .hist-sec { margin-top: 4px; }
  .p-lead .hist-sec .sec-t { font-size: 18px; line-height: 24px; font-weight: 650; color: var(--ink); margin: 8px 4px 4px; }

  /* the dock */
  .fkeys { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: var(--z-dock); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); margin: 0; border: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--bg-2); box-shadow: var(--edge-hi); }
  .fkeys { box-shadow: var(--dock-sh); }
  .fkeys .fk-sep, .fkeys .fk-head { display: none; }
  .fkeys .fk-label { display: flex; order: 5; grid-column: 1 / -1; align-items: center; justify-content: space-between; padding: 2px 4px 0; font-size: 13px; font-weight: 600; color: var(--ink-3); }
  .fkeys .fk-label .fk-ls { display: none; }
  .fkey { position: relative; min-height: 0; border: 0; border-radius: var(--r-md); font-family: var(--sans); }
  .fkeys .k-skip, .fkeys .k-undo { order: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 56px; padding: 0; background: var(--bg-3); color: var(--ink-2); font-size: 13px; font-weight: 650; box-shadow: none; margin-bottom: 4px; }
  .fkeys .k-undo { order: 2; }
  .fkeys .k-skip .ico, .fkeys .k-undo .ico { width: 20px; height: 20px; }
  .fkeys .k-undo:disabled { opacity: .45; }
  .fkeys .k-call { order: 1; grid-column: span 2; display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 12px; font-size: 18px; font-weight: 750; font-stretch: 110%; }
  .fkeys .k-call .ico { width: 22px; height: 22px; --ico-w: var(--ico-w-heavy); }
  .fkeys .k-call.live { background: var(--bg-4); color: var(--ink); box-shadow: 0 4px 0 var(--bg); font-weight: 650; font-variant-numeric: tabular-nums; }
  .fkeys .k-call[aria-disabled="true"] { opacity: .45; }
  .fkeys .kc { display: none; }
  .fkeys .k-out { order: var(--ord, 10); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; height: 64px; padding: 9px 10px 9px; background: var(--bg-3); color: var(--ink); text-align: left; box-shadow: none; transition: transform var(--t-press) var(--ease-press); }
  .fkeys .k-out:active { transform: scale(.97); background: var(--bg-4); }
  .fkeys .k-out .kc { display: inline-flex; position: absolute; top: 8px; left: 9px; min-width: 0; height: auto; padding: 0; border: 0; background: transparent; font: 520 12px/1 var(--mono); color: var(--ink-3); }
  .fkeys .k-out .fk-i { position: absolute; top: 7px; right: 8px; width: 18px; height: 18px; border-radius: 0; background: transparent !important; color: var(--oc, var(--ink-3)); box-shadow: none; }
  .fkeys .k-out .fk-i .ico { width: 16px; height: 16px; --ico-w: var(--ico-w-semi); }
  .fkeys .k-out .fk-l { margin-top: auto; font-size: 14px; line-height: 16px; font-weight: 650; white-space: normal; overflow: visible; color: inherit; }
  .fkeys .k-out.o-no_answer { --oc: var(--ink-3); } .fkeys .k-out.o-voicemail { --oc: var(--signal); } .fkeys .k-out.o-callback { --oc: var(--volt-ink); } .fkeys .k-out.o-interested { --oc: var(--ice); }
  .fkeys .k-out.o-not_interested { --oc: var(--ink-3); } .fkeys .k-out.o-wrong_number { --oc: var(--bad); }
  .fkeys .k-out.o-booked { background: var(--volt); color: var(--on-volt); box-shadow: 0 4px 0 var(--volt-ledge); height: 60px; margin-bottom: 4px; }
  .fkeys .k-out.o-sold { background: var(--flare); color: var(--on-flare); box-shadow: 0 4px 0 var(--bg-4); height: 60px; margin-bottom: 4px; }
  .fkeys .k-out.o-booked .kc, .fkeys .k-out.o-booked .fk-i, .fkeys .k-out.o-sold .kc, .fkeys .k-out.o-sold .fk-i { color: inherit; opacity: .85; }
  .fkeys .k-out.o-booked:active, .fkeys .k-out.o-sold:active { transform: translateY(4px); box-shadow: none; }
  .fkeys.precall .k-out:not(.o-booked):not(.o-sold) { color: var(--ink-2); }
  .fkeys .k-out.logged-pop { animation: keyWin 220ms var(--ease-win); }
  .desk[data-m="queue"] .fkeys .k-out, .desk[data-m="stats"] .fkeys .k-out, .desk[data-m="queue"] .fkeys .fk-label, .desk[data-m="stats"] .fkeys .fk-label { display: none; }
  .fkeys.compact .k-more { display: flex; order: 3; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 56px; background: var(--bg-3); font-size: 13px; font-weight: 650; }
  .fkeys.compact .k-call { grid-column: span 1; }
  .fkeys.compact .fk-label { display: none; }
  .fkeys.compact .k-out.recent { order: calc(1 + var(--rord, 0)); }

  /* co-pilot live strip (inside the dock, while listening) */
  .cp-strip { order: -2; grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 10px 14px; border-radius: var(--r-md); background: var(--bg-3); box-shadow: inset 4px 0 0 var(--ice); cursor: pointer; }
  .cp-strip.optout { box-shadow: inset 4px 0 0 var(--bad); }
  .cps-top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
  .cps-top .ico { width: 16px; height: 16px; }
  .cps-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
  .cp-strip[data-state="listening"] .cps-dot { background: var(--ice); animation: liveDot 1.6s ease-in-out infinite; }
  .cp-strip[data-state="reconnecting"] .cps-dot, .cp-strip[data-state="connecting"] .cps-dot { background: var(--warn); }
  .cps-heard { font-size: 14px; color: var(--ink-2); }
  .cps-heard:empty, .cps-line:empty, .cps-alt:empty { display: none; }
  .cps-line { font-size: 18px; line-height: 24px; font-weight: 650; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cps-line.interim { opacity: .7; }
  .cps-alt { display: flex; gap: 6px; }
  .cps-chip { height: 28px; padding: 0 10px; border-radius: var(--r-pill); background: var(--bg-4); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; }
  .cps-opt { background: var(--bad); color: var(--on-flare); margin-top: 4px; }

  /* queue pane: list rows, no card chrome */
  .desk > .p-queue { background: transparent; border-radius: 0; }
  .p-queue > .pane-h { padding: 0 4px 8px; min-height: 0; }
  .p-queue > .pane-b { padding: 0; }
  .t.queue { font-size: 15px; }
  .t.queue thead { display: none; }
  .t.queue td { height: 68px; background: transparent; border-bottom: 1px solid var(--line); padding: 0 4px; }
  .t.queue tr.cur td { background: var(--bg-3); }
  .t.queue tr.cur td:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); } .t.queue tr.cur td:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
  .t.queue .q-name { font-size: 17px; font-weight: 650; }
  .t.queue .q-sub { font-size: 14px; color: var(--ink-3); }
  .t.queue .q-i { color: var(--ink-3); font-size: 13px; width: 28px; }

  /* script + tools pane */
  .desk > .rail-box { background: transparent; border-radius: 0; gap: 12px; }
  .rail-tabs { position: sticky; top: calc(var(--top-h) + 56px); z-index: 5; display: flex; gap: 6px; padding: 0; margin: 0; border: 0; background: var(--bg); overflow-x: auto; scrollbar-width: none; border-radius: 0; box-shadow: 0 -8px 0 var(--bg); }
  .rail-tabs::-webkit-scrollbar { display: none; }
  .rt { flex: none; min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: var(--bg-2); color: var(--ink-2); font-weight: 650; font-size: 14px; }
  .rt[aria-selected="true"] { background: var(--ink); color: var(--bg); }
  .rt .ico { display: none; }
  .rail-box .rail-p { background: var(--bg-2); border-radius: var(--r-md); }

  /* stats pane ("You") */
  .desk[data-m="stats"] > .p-session { display: flex; background: transparent; border-radius: 0; }
  .p-session > .pane-h { display: none; }
  .p-session > .pane-b { display: flex !important; flex-direction: column; gap: 16px; padding: 0 !important; }
  .p-session .mom-goal { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 16px 20px; border-radius: var(--r-lg); background: var(--bg-2); }
  .p-session .mom-goal .ring-wrap .ring { width: 168px; height: 168px; }
  .p-session .mom-goal .ring-n { font-size: 56px; line-height: 56px; }
  .p-session .mom-goal .ring-g { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
  .p-session .mom-gt { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
  .p-session .mom-gt .fig-l { font-size: 15px; color: var(--ink); }
  .p-session .mom-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; padding: 4px 4px 8px; }
  .p-session .mom-figs .fig { padding: 0; border: 0 !important; }
  .p-session .mom-figs .fig.hot .fig-v { color: var(--flare); }
  .p-session .mom-side { display: flex; flex-direction: column; gap: 16px; padding: 16px; border-radius: var(--r-md); background: var(--bg-2); }
  .p-session .mom-chart { display: flex; flex-direction: column; gap: 8px; }
  .p-session .mom-chart .bars, .p-session .mom-chart .heat { width: 100%; }
  .p-session .mom-chart .bars { height: 56px; }
  .p-session .mom-pb { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); }
  .p-session .mom-pb .ico { color: var(--flare); }

  /* milestone: drops from under the header, flare bar, one line */
  .moment { position: fixed; left: 12px; right: 12px; top: calc(var(--top-h) + 8px); width: auto; min-width: 0; transform: none; }
}
.moment { background: var(--bg-3); color: var(--ink); border: 0; border-radius: var(--r-md); box-shadow: inset 4px 0 0 var(--flare), var(--sh-float); }
.moment .burst { display: none; }
.moment-ico { background: var(--flare-soft); color: var(--flare); border-radius: var(--r-sm); }
.moment-t strong { font-weight: 700; font-stretch: 106%; }
@keyframes keyWin { 0% { transform: scale(1); } 50% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes liveDot { 50% { opacity: .35; } }
@keyframes momentIn { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 767px) {
  .dsw button { white-space: nowrap; gap: 6px; padding: 0 6px; }
  .dsw-n { line-height: 18px; }
  .fkeys .k-out .fk-l { font-size: 13.5px; line-height: 16px; font-stretch: 92%; text-align: left; word-break: normal; overflow-wrap: normal; hyphens: none; align-self: stretch; }
  .fkeys .k-out:not(.o-booked):not(.o-sold), .fkeys .k-skip, .fkeys .k-undo, .fkeys.compact .k-more { background: var(--key-bg); box-shadow: var(--key-edge); }
}
@media (max-width: 767px) {
  .dsw { display: flex; }
  .dsw button { flex: 1 1 0; min-width: 0; font-size: 15px; }
  .dsw button[data-p="queue"] { flex-grow: 1.35; }
}
@media (max-width: 767px) {
  body.has-dock .toast { bottom: calc(var(--dock-h) + 8px); }
  .fkeys .k-call, .fkeys .k-call .fk-l { font-family: var(--sans); font-variant-numeric: tabular-nums; }
  .fkeys .k-call.live .fk-l { color: var(--ink-2); }
  .shell[data-route="desk"] ~ .moment, .desk .moment { top: calc(var(--top-h) + 4px); }
}
/* display figures: proportional lining numerals (the tabular zero in Mona Sans is slashed; tables keep tabular) */
.fig-v, .ring-n, .mini-n, .rc-v, .kpi .fig-v, .big, .ctile .big, .streak-chip .num, .mini-goal { font-variant-numeric: lining-nums proportional-nums; }
.ring-seg { stroke: var(--bg-4); }
.ring-seg.on { stroke: var(--volt); }
.ring-seg.win { stroke: var(--flare); }
.ring.done .ring-seg.on { stroke: var(--volt); }
.ring.done .ring-seg.on:last-child { stroke: var(--flare); }
@media (max-width: 767px) {
  .p-session > .pane-b > * { width: 100%; max-width: none; }
  .p-session .mom-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-session .mom-figs .fig-v { font-size: 32px; }
  .opener-box { background: var(--bg-3); box-shadow: inset 4px 0 0 var(--volt); border: 0; border-radius: var(--r-sm); }
}

/* =====================================================================================================================
   HOME (Signal): owner board, rep momentum card, pace line, three figures, short lists
   ===================================================================================================================== */
.home-skel { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--r-lg); background: var(--bg-2); }
.board-wrap { grid-column: 1 / -1; min-width: 0; }
.hboard { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; scroll-padding: 0 16px; }
.hboard::-webkit-scrollbar { display: none; }
.bp { scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; min-height: 196px; padding: 20px; border-radius: var(--r-lg); background: var(--bg-2); color: var(--ink); text-decoration: none; }
a.bp:hover { text-decoration: none; background: var(--bg-3); }
.bp[data-k="calls"] { background: var(--bg-3); box-shadow: var(--edge-hi); }
.bp-l { font-size: 15px; font-weight: 650; color: var(--ink-2); }
.bp .fig-v { font-size: 56px; line-height: 56px; font-weight: 800; font-stretch: 118%; letter-spacing: -.02em; margin-top: 4px; }
.bp .fig-v.warn { color: var(--warn); }
.bp-s { font-size: 15px; color: var(--ink-2); }
.bp .spark { width: 100%; height: 48px; margin-top: auto; }
.bp .stack-bar { margin-top: auto; height: 14px; }
.board-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.board-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--bg-4);  }
.board-dots i.on { width: 18px; border-radius: 3px; background: var(--volt); }
@media (min-width: 768px) { .hboard { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; margin: 0; padding: 0; overflow: visible; } .board-dots { display: none; } }

.momentum-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 20px 20px; border-radius: var(--r-lg); background: var(--bg-2); }
.momentum-card .ring-wrap .ring { width: 168px; height: 168px; }
.momentum-card .ring-n { font-size: 56px; line-height: 56px; }
.momentum-card .ring-g { font-size: 14px; color: var(--ink-3); margin-top: 4px; max-width: 110px; text-align: center; }
.mc-cap { font-size: 15px; color: var(--ink-2); text-align: center; }
.mc-foot { align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.mc-best { font-size: 14px; font-weight: 650; color: var(--ink-2); font-stretch: 106%; }
.pace-line { display: flex; align-items: baseline; gap: 8px; padding: 0 4px; font-size: 15px; color: var(--ink-3); }
.pace-line .pl-k { font-weight: 650; color: var(--ink-2); }
.pace-line .pl-v { font-size: 22px; font-weight: 760; font-stretch: 112%; color: var(--ink); font-variant-numeric: lining-nums proportional-nums; }
.pace-line.ahead .pl-v, .pace-line .pl-up { color: var(--ice); }
.figs3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 4px; }
.figs3 .f3 { display: flex; flex-direction: column; gap: 2px; }
.figs3 .fig-v { font-size: 40px; line-height: 44px; font-weight: 760; font-stretch: 112%; }
.figs3 .f3.sold .fig-v { color: var(--flare); }
.figs3 .fig-l { font-size: 14px; color: var(--ink-3); }
.mini-list { display: flex; flex-direction: column; gap: 4px; }
.ml-h { display: flex; align-items: baseline; gap: 8px; padding: 0 4px 6px; }
.ml-t { font-size: 18px; line-height: 24px; font-weight: 650; }
.ml-n { font-size: 14px; color: var(--ink-3); }
.ml-more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; min-height: 44px; font-weight: 650; font-size: 15px; color: var(--volt-ink); }
.ml-more .ico { width: 16px; height: 16px; }
.ml-rows li + li { border-top: 1px solid var(--line); }
.ml-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 4px; color: var(--ink); text-decoration: none; }
.ml-row:hover { text-decoration: none; background: var(--bg-2); }
.ml-b { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ml-b strong { font-size: 17px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-b span { font-size: 14px; color: var(--ink-3); }
.ml-s { font-size: 17px; font-weight: 760; font-stretch: 112%; color: var(--ink-2); }
.home-sys { display: flex; flex-wrap: wrap; gap: 8px; }
.sys-item { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 14px; border-radius: var(--r-pill); background: var(--bg-2); color: var(--ink); font-size: 14px; font-weight: 600; border: 0; box-shadow: none; text-decoration: none; }
.sys-item:hover { text-decoration: none; background: var(--bg-3); }
@media (max-width: 767px) {
  .scr.home { display: flex; flex-direction: column; gap: 24px; }
  .scr.home > .pane { background: transparent; border-radius: 0; }
  .scr.home > .pane > .pane-h { padding: 0 4px 4px; min-height: 0; }
  .scr.home > .pane > .pane-b { padding: 4px 4px 0; }
  .page-a .start { position: fixed; left: 16px; right: 16px; width: auto; margin: 0; bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom)); z-index: calc(var(--z-island) - 1); min-height: 56px; font-size: 17px; }
  .page-a .start .kc { display: none; }
  .shell[data-route="home"] .main { padding-bottom: 96px; }
  .shell[data-route="home"] .toast { bottom: calc(var(--tab-h) + 96px + env(safe-area-inset-bottom)); }
}

/* =====================================================================================================================
   LEADS (phone): list rows, no card chrome
   ===================================================================================================================== */
@media (max-width: 767px) {
  .lead-cards .ellipsis { max-width: 100%; }
  .lead-cards .item > .grow { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .lead-cards > li { padding: 0 4px 0 0; gap: 2px; }
  .lead-cards .item { min-height: 72px; padding: 10px 4px 10px 0; gap: 12px; }
  .lc-b { font-size: 17px; font-weight: 650; }
  .lc-m { font-size: 14px; }
  .lead-cards .cbx { display: grid; place-items: center; width: 44px; height: 44px; flex: none; }
}

/* =====================================================================================================================
   AUTH (Signal): 72px mark centred, big left-aligned title, 56px inputs, full-width ledge key
   ===================================================================================================================== */
.auth { background: var(--bg); justify-content: flex-start; padding: 56px 16px 24px; gap: 24px; }
.auth-card { width: 100%; max-width: 440px; background: transparent; border: 0; box-shadow: none; padding: 0; border-radius: 0; gap: 24px; }
.auth-top { display: flex; flex-direction: column; align-items: center; gap: 0; margin: 0 0 8px; }
.auth-top .lockup { display: none; }
.auth-tile { display: grid; place-items: center; }
.auth-tile .logo-mark { width: 72px; height: 72px; border-radius: 17px; }
.auth-tile { width: var(--auth-tile); height: var(--auth-tile); border-radius: 24px; background: var(--mark-tile-bg); }
.auth-body { display: flex; flex-direction: column; gap: 16px; }
.auth-body h1 { font-size: 40px; line-height: 44px; font-weight: 760; font-stretch: 112%; letter-spacing: -.02em; color: var(--ink); }
.lead-in { font-size: 16px; color: var(--ink-2); margin-top: -8px; }
.auth-body .input { min-height: 56px; }
.auth-body .btn.primary { min-height: 56px; font-size: 17px; width: 100%; }
.auth-body .seg { align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.auth-links a { color: var(--volt-ink); font-weight: 600; }
.auth-sys { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.auth-sys span { display: inline-flex; align-items: center; gap: 8px; }
.auth-sys .ico { width: 14px; height: 14px; }
.auth-foot { font-size: 13px; color: var(--ink-3); }
.check { font-size: 15px; color: var(--ink-2); min-height: 44px; align-items: center; }
@media (min-width: 960px) {
  .auth { justify-content: center; }
  .auth-split { background: var(--bg-2); border: 0; border-radius: var(--r-lg); box-shadow: none; overflow: hidden; }
  .auth-aside { background: var(--bg-3); color: var(--ink); }
  .auth-aside h2 { font-size: 32px; line-height: 38px; font-weight: 760; font-stretch: 110%; color: var(--ink); }
  .auth-aside .auth-word { color: var(--ink); font-stretch: 110%; }
  .af-i { background: var(--volt-soft); color: var(--volt-ink); border-radius: var(--r-sm); }
  .auth-card { padding: 40px; }
  .auth-top { display: none; }
}
.shell[data-route="home"]::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + 96px + env(safe-area-inset-bottom)); background: var(--bg); z-index: calc(var(--z-island) - 2); pointer-events: none; }
@media (min-width: 768px) { .shell[data-route="home"]::after { content: none; } }
@media (max-width: 959px) { .auth-split { background: transparent; border: 0; box-shadow: none; border-radius: 0; width: 100%; max-width: 440px; } .auth-card { padding: 0; } }

/* ---------- sheets, palette, drawers (phone polish) ---------- */
.opt-m { background: transparent !important; box-shadow: none !important; color: var(--ink-2); }
.sheet a, .sheet button { min-height: 52px; font-size: 16px; font-weight: 600; }
.drawer:focus, .drawer:focus-visible, .palette:focus, .recap:focus, .sheet:focus { outline: none; }
@media (max-width: 767px) {
  .palette .lead-opt { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "m l s" "m c s"; column-gap: 12px; row-gap: 0; align-items: center; min-height: 60px; padding: 8px 12px; }
  .palette .lead-opt .opt-m { grid-area: m; }
  .palette .lead-opt .opt-l { grid-area: l; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; font-size: 16px; max-width: none; }
  .palette .lead-opt .opt-c { display: none; }
  .palette .lead-opt .opt-c:nth-of-type(3) { display: inline; grid-area: c; font-size: 14px; color: var(--ink-3); }
  .palette .lead-opt .opt-c:last-child { display: inline-flex; grid-area: s; }
}

/* =====================================================================================================================
   CALL DESK (768+): the phone design widened. Dial card, ledge Call, outcome keys in the same style, pill rail tabs.
   ===================================================================================================================== */
@media (min-width: 768px) {
  .desk-head .page-t { font-size: 28px; line-height: 32px; font-weight: 760; font-stretch: 110%; }
  .desk > .pane, .desk > .rail-box { background: var(--bg-2); border: 0; box-shadow: none; border-radius: var(--r-md); }
  .momentum { border-radius: var(--r-md); }
  .momentum .fig { border-color: var(--line) !important; }
  .momentum .fig-v { font-size: 28px; }
  .momentum .ring-n { font-size: 24px; }
  .mom-chart .bars { width: 168px; height: 32px; }
  .p-lead > .pane-b { gap: 16px; }
  .p-lead .dial-card .stage-top { display: block; }
  .p-lead .dial-card .lead-id { flex: 1 1 auto; padding-right: 150px; }
  .p-lead .dial-card .stage-nav { position: absolute; top: 16px; right: 16px; display: flex; gap: 6px; }
  .p-lead .dial-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 20px 24px 24px; border-radius: var(--r-lg); background: var(--bg-3); box-shadow: var(--edge-hi); }
  .p-lead .dial-card { background: var(--stage-bg); box-shadow: var(--card-sh); }
  .p-lead .dial-card .name { font-size: 34px; line-height: 38px; font-weight: 760; font-stretch: 110%; letter-spacing: -.02em; }
  .p-lead .dial-card .name.long { font-size: 30px; line-height: 34px; font-stretch: 104%; }
  .p-lead .dial-card .name.xlong { font-size: 26px; line-height: 30px; font-stretch: 100%; }
  .p-lead .dial-card .meta { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
  .p-lead .lead-tags { margin-bottom: 10px; }
  .p-lead .dial { padding: 0; background: transparent; box-shadow: none; border-radius: 0; gap: 20px; justify-content: flex-start; }
  .p-lead .phone-big { font-size: 34px; font-weight: 520; letter-spacing: -.01em; color: var(--ink); }
  .p-lead .btn-call { height: 56px; padding: 0 22px 0 12px; font-size: 18px; }
  .p-lead .btn-call .bc-i { background: transparent; width: 28px; }
  .p-lead .skip-btn { min-height: 56px; border-radius: var(--r-md); }
  .p-lead .brief { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
  .p-lead .angle { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .p-lead .angle li { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; font-size: 15px; color: var(--ink); height: auto; }
  .p-lead .angle .ico { color: var(--volt-ink); width: 16px; height: 16px; }
  .why-h { font-size: 13px; font-weight: 650; color: var(--ink-3); }
  .why-it { display: flex; flex-direction: column; gap: 8px; }
  .brief-next { display: flex; align-items: baseline; gap: 8px; font-size: 15px; }
  .brief-next .brief-k { font-weight: 700; color: var(--ink); }
  .brief-next.bad .brief-k, .brief-next.bad .brief-v, .brief-next.bad .ico, .brief-next.warn .ico { color: var(--warn); }
  .lead-sec-t { font-size: 15px; font-weight: 650; color: var(--ink-2); margin: 4px 0 -6px; }
  .rail-tabs { display: flex; gap: 4px; padding: 8px; border: 0; background: transparent; }
  .rt { flex: 1 1 auto; min-height: 40px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-3); font-weight: 650; font-size: 14px; box-shadow: none; }
  .rt::after { content: none !important; }
  .rt[aria-selected="true"] { background: var(--bg-4); color: var(--ink); }
  .rt .ico { display: none; }
  .opener-box { background: var(--bg-3); box-shadow: inset 4px 0 0 var(--volt); border: 0; border-radius: var(--r-sm); }
  .t.queue td { border-bottom: 1px solid var(--line); }
  .t.queue tr.cur td { background: var(--bg-4); }
  .t.queue tr.cur td:first-child { box-shadow: inset 3px 0 0 var(--volt); }
  .t.queue .q-name { font-weight: 650; }
  .score { background: var(--bg-3); color: var(--ink-2); font-weight: 700; }
  .score.hot { background: var(--volt); color: var(--on-volt); } .score.warm { background: var(--volt-soft); color: var(--volt-ink); } .score.cool { background: var(--bg-3); color: var(--ink-2); }

  /* outcome keys: one row of 8 + Skip/Undo, same anatomy as the phone pad */
  .fkeys { background: var(--bg-2); border: 0; box-shadow: none; border-radius: var(--r-md); padding: 10px; gap: 8px; }
  .fkeys .fk-label .fk-lt { font-size: 14px; font-weight: 650; color: var(--ink-2); }
  .fkey { min-height: 64px; padding: 8px 10px; border: 0; border-radius: var(--r-md); background: var(--bg-3); flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 0; box-shadow: none; transition: transform var(--t-press) var(--ease-press); }
  .fkeys .fkey:not(.o-booked):not(.o-sold) { background: var(--key-bg); box-shadow: var(--key-edge); }
  .fkey:hover { background: var(--bg-4); border: 0; transform: none; box-shadow: none; }
  .fkey:active { transform: scale(.97); }
  .fkey:focus-visible { box-shadow: var(--ring); }
  .fkeys .fkey.k-out { display: flex; }
  .fkeys .fkey .fk-i { display: grid; position: absolute; grid-area: auto; left: auto; margin: 0; top: 8px; right: 8px; width: 18px; height: 18px; background: transparent !important; color: var(--oc); border-radius: 0; }
  .fkeys .fkey .fk-i .ico { width: 16px; height: 16px; --ico-w: var(--ico-w-semi); }
  .fkeys .fkey .kc { display: inline-flex; position: absolute; grid-area: auto; top: 8px; left: 9px; margin: 0; min-width: 0; height: auto; padding: 0; border: 0; background: transparent; color: var(--ink-3); font: 520 12px/1 var(--mono); }
  .fkeys .fkey .fk-l { flex: none; margin-top: auto; font-size: 14px; font-weight: 650; font-stretch: 96%; color: var(--ink); white-space: nowrap; }
  .fkey.o-no_answer { --oc: var(--ink-3); } .fkey.o-voicemail { --oc: var(--signal); } .fkey.o-callback { --oc: var(--volt-ink); } .fkey.o-interested { --oc: var(--ice); } .fkey.o-not_interested { --oc: var(--ink-3); } .fkey.o-wrong_number { --oc: var(--bad); }
  .fkey.o-booked { background: var(--volt); box-shadow: 0 4px 0 var(--volt-ledge); margin-bottom: 4px; min-height: 60px; }
  .fkey.o-sold { background: var(--flare); box-shadow: 0 4px 0 var(--bg-4); margin-bottom: 4px; min-height: 60px; }
  .fkey.o-booked .fk-l, .fkey.o-booked .kc, .fkey.o-booked .fk-i { color: var(--on-volt); }
  .fkey.o-sold .fk-l, .fkey.o-sold .kc, .fkey.o-sold .fk-i { color: var(--on-flare); }
  .fkey.o-booked:hover { background: var(--volt); } .fkey.o-sold:hover { background: var(--flare); }
  .fkey.o-booked:active, .fkey.o-sold:active { transform: translateY(4px); box-shadow: none; }
  .fkey.k-skip, .fkey.k-undo { align-items: center; justify-content: center; gap: 4px; }
  .fkey.k-skip > .ico, .fkey.k-undo > .ico { width: 18px; height: 18px; }
  .fkeys.precall .k-out:not(.o-booked):not(.o-sold) .fk-l { color: var(--ink-2); }
  .fkey.logged-pop { animation: keyWin 220ms var(--ease-win); }
  .cp-strip { display: none !important; }
}

/* ---------- desktop shell: rail, top bar ---------- */
@media (min-width: 768px) {
  .rail { background: var(--bg); border-right: 1px solid var(--line); }
  .rail-link { min-height: 44px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 600; font-size: 15px; }
  .rail-link:hover { background: var(--bg-2); color: var(--ink); text-decoration: none; }
  .rail-link[aria-current="page"] { background: var(--bg-3); color: var(--ink); box-shadow: inset 3px 0 0 var(--volt); }
  .rail-link[aria-current="page"] .rl-i { color: var(--volt-ink); }
  .rail-g { color: var(--ink-3); font-size: 13px; font-weight: 650; }
  .nav-count { background: var(--bg-3); color: var(--ink-2); }
  .topbar { background: var(--hdr); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .cmd .input, .cmd-in { background: var(--bg-2); border-color: var(--line); }
  .connl { background: var(--bg-2); border: 0; border-radius: var(--r-pill); }
  .tick .tk-a { background: var(--bg-2); border: 0; border-radius: var(--r-pill); }
  .tick.win .tk-a { box-shadow: inset 0 0 0 1px var(--flare); }
  .page-t { font-size: 28px; line-height: 32px; font-weight: 760; font-stretch: 110%; letter-spacing: -.015em; }
  .page-s { color: var(--ink-2); font-size: 15px; }
}
.biz-av { display: none; }

/* ---------- reduced motion (Signal): no ledge travel, no scale, no count-ups, no live pulse; colour/opacity only ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn:active, .btn.primary:active, .btn-call:active, .k-call:active, .fkey:active, .fkeys .k-out:active, .tab.tab-dial:active .tab-i { transform: none !important; }
  .fkeys .k-out.logged-pop, .fkey.logged-pop { animation: none !important; }
  .cp-strip[data-state="listening"] .cps-dot { animation: none !important; }
  .switch-ui::after { transition: none !important; }
}

/* ---------- tags: tint + coloured dot, words in ink (AA on every surface, no pastel text) ---------- */
.tag, .tag.ok, .tag.bad, .tag.warn, .tag.info, .tag.amber, .tag.accent, .tag.plain, .tag.purple { color: var(--ink); }
.tag.plain { color: var(--ink-2); }
@media (min-width: 768px) and (max-width: 1023px) {
  .desk { grid-template-columns: minmax(0, 1fr); grid-template-areas: "mom" "lead" "queue" "rail" "keys"; }
  .fkeys { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fkeys .k-call { display: none; }
}
.decide { flex-wrap: wrap; } .decide .btn { min-width: 0; max-width: 100%; }

/* ---------- session recap: full-height sheet on phone, big figure, ledge key in the thumb zone ---------- */
.recap { background: var(--bg-3); border: 0; border-radius: var(--r-lg); box-shadow: var(--sh-float); overflow: hidden; }
.rc-hero { background: transparent; border-bottom: 1px solid var(--line); }
.rc-k { font-size: 14px; font-weight: 650; color: var(--ink-3); }
.recap h2 { font-size: 28px; line-height: 32px; font-weight: 760; font-stretch: 110%; letter-spacing: -.015em; }
.rc-p { color: var(--ink-2); font-size: 15px; }
.rc-grid { gap: 16px 12px; }
.rc-s { background: transparent; border: 0; padding: 0; }
.rc-i { display: none; }
.rc-v { font-size: 34px; line-height: 38px; font-weight: 760; font-stretch: 112%; color: var(--ink); }
.rc-l { font-size: 14px; font-weight: 650; color: var(--ink-2); }
.rc-sub { font-size: 13px; color: var(--ink-3); }
.rc-foot { border-top: 0; }
@media (max-width: 767px) {
  .scrim.recap-scrim { align-items: flex-end; padding: 0; }
  .recap { width: 100%; max-width: none; max-height: calc(100dvh - 24px); border-radius: var(--r-lg) var(--r-lg) 0 0; display: flex; flex-direction: column; overflow: auto; padding-bottom: env(safe-area-inset-bottom); }
  .rc-hero { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 20px 20px; }
  .rc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 20px; }
  .rc-foot { display: flex; flex-direction: column-reverse; gap: 8px; padding: 8px 20px 20px; margin-top: auto; }
  .rc-foot .btn { width: 100%; min-height: 56px; }
}

/* ---------- Fitts at 390: every target 44 px or more ---------- */
@media (max-width: 767px) {
  .tb-brand { width: 44px; height: 44px; padding: 4px; background-clip: content-box; border-radius: 12px; box-shadow: none; margin-left: -4px; }
  .btn.sm, .btn.icon-btn.sm { min-height: 44px; }
  .btn.icon-btn.sm { width: 44px; }
  .seg button, .seg a, .seg.mini button { min-height: 44px; }
  .dsw button { min-height: 44px; }
  .rt { min-height: 44px; }
}

/* ---------- keyboard open / short screens: the island steps aside; fields scroll clear of it; focus always shows ---------- */
@media (max-width: 767px) { .main :is(input, textarea, select) { scroll-margin-bottom: calc(var(--tab-h) + 40px + env(safe-area-inset-bottom)); } }
@media (max-width: 767px) and (max-height: 500px) { .tabbar, .page-a .start { display: none !important; } .shell { padding-bottom: 24px; } .shell[data-route="home"]::after { content: none; } }
.btn-call:focus-visible, .fkey:focus-visible, .k-call:focus-visible, .fkeys .k-out:focus-visible, .tab:focus-visible, .dsw button:focus-visible, .rt:focus-visible { outline: 2px solid var(--focus) !important; outline-offset: 2px; }
@media (max-width: 359px) {
  .desk-head .page-t { font-size: 20px; }
  .mini-goal { padding-right: 8px; font-size: 14px; } .streak-chip.mini { padding: 0 8px; }
  .dsw button { font-size: 13px; padding: 0 4px; gap: 4px; }
  .dsw-n { padding: 0 5px; font-size: 11px; }
  .fkeys, .fkeys.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding-left: 10px; padding-right: 10px; }
  .fkeys .k-out { padding: 8px 7px; }
  .fkeys .k-out .fk-l { font-size: 12px; line-height: 14px; font-stretch: 85%; }
  .fkeys .k-call { font-size: 16px; }
  .dial-card { padding: 16px; }
}
@media (max-width: 767px) and (max-height: 600px) { .fkeys.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fkeys.compact .k-out .fk-l { font-size: 12.5px; font-stretch: 88%; } }
/* review: Skip and Undo sit 12 px from Call; the folded dock keeps Call clearly the widest key */
@media (max-width: 767px) {
  .fkeys .k-call { margin-left: 4px; margin-right: 4px; }
  .fkeys.compact { grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 8px; }
  .fkeys.compact .k-call { margin: 0 0 4px; }
  .fkeys.compact.open { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 359px) { .fkeys.compact { grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 8px; } .fkeys.compact.open { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) and (max-height: 600px) { .fkeys.compact { grid-template-columns: 1.7fr 1fr 1fr 1fr; } .fkeys.compact.open { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .desk > .outbox-note { position: fixed; left: 12px; right: 12px; bottom: calc(var(--dock-h) + 8px); z-index: var(--z-dock); min-height: 40px; padding: 8px 10px 8px 12px; border-radius: var(--r-md); background: var(--bg-4); color: var(--ink); box-shadow: inset 4px 0 0 var(--warn), var(--sh-float); font-size: 14px; flex-wrap: nowrap; }
  .desk > .outbox-note > span:not(.tag) { flex: 1 1 auto; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  body.has-dock:has(.desk > .outbox-note:not([hidden])) .toast { bottom: calc(var(--dock-h) + 72px); }
}
@media (min-width: 768px) {
  .scr.home.rep > .momentum-card { grid-column: span 5; grid-row: span 3; }
  .scr.home.rep > .pace-line, .scr.home.rep > .figs3, .scr.home.rep > .mini-list { grid-column: span 7; }
  .scr.home.rep > .pace-line { align-self: end; }
  .scr.home.rep > .mini-list { background: var(--bg-2); border-radius: var(--r-md); padding: 12px 16px; }
}
@media (min-width: 768px) and (max-width: 1023px) { .scr.home.rep > .momentum-card, .scr.home.rep > .pace-line, .scr.home.rep > .figs3, .scr.home.rep > .mini-list { grid-column: 1 / -1; grid-row: auto; } }

/* ---------- QA 2026-11-13: "Follow up at" half sheet (Callback / Interested / Booked on a phone) ---------- */
.fu-scrim { z-index: var(--z-toast); }
.fu-sheet { gap: 12px; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: var(--r-lg) var(--r-lg) 0 0; outline: none; max-width: 560px; margin: 0 auto; }
.fu-h { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fu-t { font-size: 24px; line-height: 30px; font-weight: 750; font-stretch: 110%; letter-spacing: -.01em; }
.fu-biz { font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fu-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fu-chip { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 64px; padding: 8px 10px; border-radius: var(--r-md); border: 1px solid var(--ctrl); background: var(--bg-2); color: var(--ink); text-align: left; cursor: pointer; transition: transform var(--t-press) var(--ease); }
.fu-chip:active { transform: scale(.97); }
.fu-chip[aria-checked="true"] { background: var(--volt-soft); border-color: var(--volt); box-shadow: inset 0 0 0 1px var(--volt); }
.fu-cl { font-size: 15px; font-weight: 650; line-height: 19px; }
.fu-cs { font-size: 12px; line-height: 16px; color: var(--ink-2); }
.fu-chip[aria-checked="true"] .fu-cs { color: var(--ink); }
.fu-sheet .input { min-height: 52px; font-size: 16px; }
.fu-back { min-height: 20px; font-size: 14px; color: var(--ink-2); }
.fu-back.ok { color: var(--ink); } .fu-back.warn { color: var(--warn); } .fu-back.bad { color: var(--bad); }
.fu-row { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.fu-log[aria-disabled="true"] { opacity: .5; }
.fu-sheet.closing { animation: sheetOut var(--t-out) var(--ease-in) forwards; }
@media (prefers-reduced-motion: reduce) { .fu-chip, .fu-chip:active { transition: none; transform: none; } }

/* ---------- QA 2026-11-13: queue group headings (Due now / Callbacks today / New / Later) ---------- */
.t.queue tr.q-grp th { text-align: left; padding: 14px 12px 6px; background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; letter-spacing: .01em; color: var(--ink-2); }
.t.queue tr.q-grp:first-child th { padding-top: 8px; }
.q-grp-t { margin-right: 8px; }
.q-grp-n { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: var(--r-pill); background: var(--bg-4); color: var(--ink); font-size: 12px; text-align: center; }
.q-grp.g-due .q-grp-t { color: var(--ink); }
.q-grp.g-due .q-grp-n { background: var(--bad-soft); color: var(--ink); }
.q-sum { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 12px; font-size: 13px; color: var(--ink-2); }
.q-sum-i { display: inline-flex; gap: 6px; align-items: baseline; } .q-sum-i .num { color: var(--ink); font-weight: 700; }
@media (max-width: 767px) {
  .t.queue tr.q-grp th { padding: 18px 16px 8px; font-size: 18px; font-weight: 750; font-stretch: 108%; color: var(--ink); background: var(--bg); border-bottom: 0; letter-spacing: -.01em; }
  .q-grp-n { font-size: 13px; vertical-align: 2px; }
  /* fixed table layout takes column widths from the first row: keep the (zero-height) header row so a group
     heading spanning all columns never sets them */
  .t.queue thead { display: table-header-group; }
  .t.queue thead th { height: 0; padding-top: 0; padding-bottom: 0; border: 0; font-size: 0; line-height: 0; overflow: hidden; }
}

/* ---------- QA 2026-11-13: rep Home "Last 14 days" chart + best hours ---------- */
.home-trend { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r-lg); background: var(--bg-2); }
.ht-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ht-tot { font-size: 14px; color: var(--ink-2); } .ht-tot strong { font-size: 28px; line-height: 32px; font-weight: 800; font-stretch: 112%; color: var(--ink); margin-right: 2px; }
.ht-s { font-size: 14px; color: var(--ink-2); margin-top: -4px; }
.home-trend .bars { width: 100%; height: 72px; margin-top: 4px; }
.ht-ax { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.ht-heat { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.ht-k { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.home-trend .heat { width: 100%; }
@media (min-width: 768px) { .scr.home.rep > .home-trend { grid-column: span 7; } }
@media (min-width: 768px) and (max-width: 1023px) { .scr.home.rep > .home-trend { grid-column: 1 / -1; } }

/* QA 2026-11-14: cool score chips (scores under 70) read 4.36:1 on the Day phone queue (signal text on its own tint); ink text on the same tint. */
.score.cool { color: var(--ink); }
