/* ============================================================
   FleetGenius · Aura design language — tokens + base + primitives
   Day mode. Night tokens live under [data-mode="night"].
   Colour/elevation/radius variables live in theme.css (also linked
   directly by marketing pages, which don't want this file's component
   CSS) — this import is the app's only copy of them.
   ============================================================ */
@import url('./theme.css');

*{box-sizing:border-box}
/* overflow-x + overscroll live on html ONLY. Putting overflow-x:hidden on body
   makes body a scroll container (computed overflow-y:auto) that never overflows
   — html is the real page scroller — and body's overscroll-behavior:none then
   stops Chrome chaining wheel/touch scrolls up to html: the whole page freezes
   (driver app bug; the manager app never noticed because it scrolls inside
   .main). html alone still clips horizontal overflow at the viewport and still
   suppresses pull-to-refresh. */
html{margin:0;padding:0;overflow-x:hidden;max-width:100%;overscroll-behavior:none}
body{margin:0;padding:0;max-width:100%}
body{
  background:var(--bg);color:var(--ink);
  font-family:'Instrument Sans',system-ui,-apple-system,sans-serif;
  font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased;
  font-variant-numeric:tabular-nums;
}
h1,h2,h3{margin:0}
button{font-family:inherit;cursor:pointer}
.voice{font-family:'Bricolage Grotesque',system-ui,sans-serif;font-weight:560;letter-spacing:-.01em}
.num{font-variant-numeric:tabular-nums}
.mut{color:var(--mut)} .ink2{color:var(--ink2)} .faint{color:var(--faint)}
.label{font-size:12px;font-weight:650;letter-spacing:.08em;text-transform:uppercase;color:var(--mut)}

/* ---------- shell ---------- */
#app{min-height:100vh}
/* fixed chrome (dock + AI bar) with the main content as its own scroll region */
.shell{height:100vh;height:100dvh;position:relative;overflow:hidden;background:var(--bg);color:var(--ink)}
.atmos{position:fixed;inset:0;pointer-events:none;z-index:0;
  background:radial-gradient(60% 40% at 78% -8%,rgba(123,108,240,.07),transparent 70%);}
/* Full width (Paul, 3 Nov 2026: "fill the screen dynamically to see more"): no cap on the content width */
.main{position:relative;z-index:1;height:100vh;height:100dvh;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;padding:30px 60px 130px 128px}
/* A panel opened from inside the page (an email, a deal) must sit above the CRM top bar and the
   side navigation — .main is its own stacking layer at z-index 1, so raise it while one is open. */
.main:has(.scrim),.main:has(.moremenu){z-index:50}
@media(max-width:1120px){.main{padding:24px 28px 130px 100px}}
@media(max-width:820px){.main{padding:18px 16px 120px 92px}}
/* The dock is a fixed vertical rail of one icon per nav item — with the
   fleet grown to 15+ items it can now run taller than a phone's viewport,
   which read as "covering the page" (icons pinned off top/bottom, unreachable)
   rather than a menu that fits. Below 640px it shrinks and — the actual
   fix, since shrinking alone doesn't bound it for every future addition —
   scrolls internally instead of overflowing the screen. */
@media(max-width:640px){
  .main{padding:16px 14px 110px 72px}
  .dock{gap:3px;padding:8px 6px;max-height:calc(100dvh - 20px)}
  .dock-crest{width:32px;height:32px;margin-bottom:2px}
  .dock-crest img{width:22px;height:22px}
  .dock-item{width:36px;height:36px}
  .dock-item svg{width:18px;height:18px}
  .dock-sep{margin:2px 0}
  .dock-item .fly{display:none}   /* hover tooltips don't apply to touch, and would clip against the viewport edge here anyway */
}

/* ---------- dock ---------- */
.dock{position:fixed;left:24px;top:50%;transform:translateY(-50%);z-index:30;
  display:flex;flex-direction:column;gap:6px;align-items:center;
  background:var(--surf);border-radius:999px;padding:10px 8px;box-shadow:var(--e2);
  max-height:calc(100dvh - 24px);overflow-y:auto;scrollbar-width:thin;}
/* If the window is shorter still, the dock scrolls — with a thin visible scrollbar so
   nobody thinks the lower icons have gone. */
.dock::-webkit-scrollbar{width:4px}
.dock::-webkit-scrollbar-thumb{background:var(--hair);border-radius:4px}
.dock-crest{width:40px;height:40px;border-radius:999px;display:grid;place-items:center;margin-bottom:4px;position:relative}
.dock-crest img{width:30px;height:30px;object-fit:contain;position:relative;z-index:1}
.dock-crest .glow{position:absolute;inset:-3px;border-radius:999px;background:var(--aura);opacity:.5;filter:blur(6px);animation:breathe 3.6s ease-in-out infinite}
.dock-item{width:44px;height:44px;border-radius:999px;border:none;background:transparent;color:var(--ink2);
  display:grid;place-items:center;position:relative;transition:background .16s var(--ease),color .16s var(--ease)}
.dock-item:hover{background:var(--surf2)}
.dock-item.active{background:var(--genie-950);color:#fff}
a.dock-item{text-decoration:none}
.dock-dot{position:absolute;top:7px;right:7px;width:8px;height:8px;border-radius:999px;background:var(--gold,#c08a1e);box-shadow:0 0 0 2px var(--bg,#0b1122)}
/* vehicle carbon-footprint badge */
.cbadge{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:800;letter-spacing:.02em;line-height:1;
  padding:3px 8px;border-radius:999px;color:var(--cb);background:transparent;box-shadow:inset 0 0 0 1.4px var(--cb)}
.cbadge .cb-g{font-weight:600;opacity:.85;font-variant-numeric:tabular-nums}
.fchip.eco{color:var(--gt-green,#709840)}
.fchip.eco.on{background:var(--gt-green,#709840);color:#fff;border-color:var(--gt-green,#709840)}
.dock-item.eco{color:var(--gt-green,#709840)}
.dock-item.eco.active{background:var(--gt-green,#709840);color:#fff}
.moremenu .mi.eco{color:var(--gt-green,#709840)} .moremenu .mi.eco svg{color:var(--gt-green,#709840)}
.dock-item svg{width:21px;height:21px}
.dock-item.locked{color:var(--faint)}
.dock-sep{width:22px;height:1px;background:var(--hair);margin:4px 0}
/* The label inside each dock item is its accessible name only (visually hidden); the
   visible label is .dock-tip, drawn outside the dock (Dock in main.js) so the dock's
   own scrolling can't clip it. */
.dock-item .fly{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;padding:0;margin:-1px}
.dock-tip{position:fixed;z-index:40;transform:translateY(-50%);white-space:nowrap;background:var(--genie-950);color:#fff;
  font-size:12.5px;font-weight:600;padding:5px 11px;border-radius:8px;pointer-events:none;box-shadow:var(--e1);
  animation:dockTip .14s var(--ease)}
@keyframes dockTip{from{opacity:0;margin-left:-4px}to{opacity:1;margin-left:0}}
@media (prefers-reduced-motion:reduce){.dock-tip{animation:none}}
/* Fit every icon on shorter screens (laptops): 21+ items at 44px are ~1,050px tall, so
   the top and bottom icons scrolled out of a hidden-scrollbar dock and looked gone. */
@media (min-width:641px) and (max-height:1060px){
  .dock{gap:3px;padding:8px 6px}
  .dock-crest{width:34px;height:34px;margin-bottom:2px} .dock-crest img{width:24px;height:24px}
  .dock-item{width:38px;height:38px} .dock-item svg{width:19px;height:19px}
  .dock-sep{margin:2px 0}
}
@media (min-width:641px) and (max-height:860px){
  .dock{gap:1px;padding:6px 5px}
  .dock-crest{width:30px;height:30px} .dock-crest img{width:21px;height:21px}
  .dock-item{width:30px;height:30px} .dock-item svg{width:17px;height:17px}
  .dock-sep{margin:1px 0}
}

/* ---------- thread bar ---------- */
.threadbar{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);z-index:30;
  width:660px;max-width:calc(100vw - 40px);height:60px;background:var(--surf2);border-radius:999px;
  border:1px solid var(--hair2);box-shadow:0 14px 34px -10px rgba(0,0,0,.55),var(--e2);
  display:flex;align-items:center;gap:10px;padding:8px 8px 8px 20px;transition:box-shadow .24s var(--ease),border-color .2s var(--ease)}
.threadbar .spark{color:var(--genie);flex:0 0 auto;display:grid;place-items:center}
.threadbar .spark svg{width:22px;height:22px}
.threadbar input{flex:1;border:none;background:transparent;outline:none;font-size:15px;color:var(--ink);font-family:inherit}
.threadbar input::placeholder{color:var(--mut)}
.threadbar .kbd{font-size:11px;font-weight:650;color:var(--mut);background:var(--surf2);border-radius:7px;padding:3px 7px;flex:0 0 auto}
.threadbar .send{width:44px;height:44px;border-radius:999px;border:none;background:var(--genie-950);color:#fff;
  display:grid;place-items:center;flex:0 0 auto;transition:background .16s var(--ease)}
.threadbar .send:hover{background:var(--genie-800)}
.threadbar .send svg{width:19px;height:19px}
.threadbar.focus{border-color:var(--genie)}
/* dictation into the Genius bar — Web Speech API, 20 Sep 2026 */
.threadbar .mic-btn{width:36px;height:36px;border-radius:999px;border:none;background:transparent;color:var(--mut);
  display:grid;place-items:center;flex:0 0 auto;cursor:pointer;transition:color .16s var(--ease)}
.threadbar .mic-btn:hover{color:var(--ink)}
.threadbar .mic-btn.on{color:var(--red);animation:breathe 1.1s ease-in-out infinite}
.threadbar .mic-btn svg{width:18px;height:18px}
/* Quote workspace company card (CRM layout audit, 30 Sep 2026 — UX06): the
   long "Refresh from Companies House" button shared one wrapped flex row
   with the details column, so at narrow widths it squeezed the company
   name/address into very narrow lines instead of taking its own line. */
.qw-company-row{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap}
.qw-company-summary{flex:1 1 260px;min-width:0}
.qw-company-actions{flex:0 0 auto}
@media(max-width:480px){
  .qw-company-row{flex-direction:column;align-items:stretch}
  .qw-company-actions{width:100%}
  .qw-company-actions .btn{width:100%;justify-content:center}
}
/* client logo chip — white box with margin so any logo reads cleanly */
.clogo{display:inline-flex;align-items:center;justify-content:center;background:#fff;border-radius:12px;padding:8px 14px;box-shadow:var(--e1);border:1px solid rgba(0,0,0,.06)}
.clogo img{height:32px;max-width:170px;object-fit:contain;display:block}
/* calendar / diary */
/* A bare 1fr track still sizes to its item's min-content (CSS Grid's implicit
   min-width:auto) — minmax(0,1fr) plus min-width:0 on the item itself is the
   only combination that actually lets a track shrink below that (CRM layout
   audit, 30 Sep 2026 — UX01: the month grid measured ~943px wide inside a
   390px viewport). Applies to every direct child, not just .calcell. */
.calgrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.calgrid>*{min-width:0}
.calhd{font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mut);text-align:center;padding-bottom:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.calcell{min-height:66px;min-width:0;border:1px solid var(--hair);border-radius:10px;padding:5px 6px;background:var(--surf2);display:flex;flex-direction:column;gap:4px}
/* The CRM Diary's day cell is now a real <button> (CRM layout audit, 30 Sep
   2026 — UX14: tiny 9px dots were the only operable target). Reset the UA
   control chrome a <button> otherwise adds; the Fleet Portal dashboard's
   own mini-calendar still uses a plain <div> here and is unaffected. */
button.calcell{font:inherit;text-align:left;appearance:none;-webkit-appearance:none;color:inherit;cursor:pointer}
button.calcell:disabled{cursor:default;opacity:.6}
button.calcell:focus-visible{outline:2px solid var(--genie);outline-offset:1px}
.calcell.empty{background:transparent;border:none}
.calcell.today{border-color:var(--genie);box-shadow:inset 0 0 0 1px var(--genie)}
.calcell .cald{font-size:11.5px;font-weight:650;color:var(--ink2)}
.caldots{display:flex;flex-wrap:wrap;gap:3px;align-items:center}
.caldot{width:9px;height:9px;border-radius:999px}
.calmore{font-size:10px;color:var(--mut);font-weight:600}
@media(max-width:640px){.calcell{min-height:52px}.caldot{width:8px;height:8px}}
/* loading splash — only fades in if load takes >~350ms, so quick loads don't flash the genie */
.splash-delay{opacity:0;animation:splashIn .3s var(--ease) .35s forwards}
@keyframes splashIn{to{opacity:1}}
.dhead .clogo{padding:6px 10px}.dhead .clogo img{height:26px;max-width:120px}
.threadbar .ring{position:absolute;inset:-3px;border-radius:999px;background:var(--aura);opacity:0;z-index:-1;transition:opacity .24s var(--ease)}
.threadbar.focus .ring{opacity:.9}
.threadbar{position:fixed}
.threadwrap{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);z-index:30}
.threadwrap .threadbar{position:relative;left:auto;bottom:auto;transform:none}

/* ---------- cards ---------- */
.card{background:var(--surf);border-radius:var(--r-l);box-shadow:var(--e1);padding:22px;
  transition:box-shadow .24s var(--ease),transform .24s var(--ease)}
.card.hover:hover{box-shadow:var(--e2);transform:translateY(-2px)}
.card-t{font-family:'Bricolage Grotesque',sans-serif;font-weight:560;font-size:22px;letter-spacing:-.01em}

/* ---------- greeting / page head ---------- */
.greeting{font-family:'Bricolage Grotesque',sans-serif;font-weight:560;font-size:34px;line-height:1.18;letter-spacing:-.02em}
.pagetitle{font-family:'Bricolage Grotesque',sans-serif;font-weight:560;font-size:30px;letter-spacing:-.02em}
.subline{color:var(--ink2);font-size:15px;margin-top:6px}

/* ---------- buttons ---------- */
/* min-height, not height (CRM layout audit, 30 Sep 2026 — UX12): a fixed
   44px clipped any label that wrapped onto more than one line at phone
   widths (measured: the dashboard's primary CTA wrapped onto 3 lines
   inside the fixed box). Auto height + vertical padding keeps the same
   44px for a one-line label and grows for a wrapped one instead of
   clipping it. */
.btn{min-height:44px;height:auto;padding:10px 22px;border-radius:999px;border:none;font-size:14.5px;font-weight:600;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.16s var(--ease);text-align:center}
.btn svg{width:17px;height:17px}
.btn.primary{background:var(--genie-950);color:#fff}
.btn.primary:hover{background:var(--genie-800);box-shadow:var(--e2)}
.btn.secondary{background:var(--surf);color:var(--ink);box-shadow:var(--e1)}
.btn.secondary:hover{box-shadow:var(--e2);transform:translateY(-1px)}
.btn.ghost{background:transparent;color:var(--genie)}
.btn.ghost:hover{background:var(--surf2)}
.btn.quiet{background:var(--surf2);color:var(--ink)}
.btn.danger{background:var(--redbg);color:var(--red)}
.btn.sm{min-height:36px;height:auto;padding:7px 16px;font-size:13.5px}
.btn:disabled{opacity:.55;cursor:default;transform:none;box-shadow:none}

/* ---------- status capsule ---------- */
.status{display:inline-flex;align-items:center;gap:7px;height:26px;padding:0 11px;border-radius:999px;
  font-size:12px;font-weight:650;white-space:nowrap}
.status .dot{width:7px;height:7px;border-radius:999px;flex:0 0 auto}
.status.ok{background:var(--okbg);color:var(--ok)} .status.ok .dot{background:var(--ok)}
.status.warn{background:var(--goldbg);color:var(--gold)} .status.warn .dot{background:var(--gold)}
.status.danger{background:var(--redbg);color:var(--red)} .status.danger .dot{background:var(--red)}
.status.grey{background:var(--surf2);color:var(--mut)} .status.grey .dot{background:var(--faint)}

/* ---------- provenance chip ---------- */
.prov{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:999px;
  font-size:12px;font-weight:650;white-space:nowrap;cursor:default}
.prov .d{width:6px;height:6px;border-radius:999px;flex:0 0 auto}
.prov.live{background:var(--okbg);color:var(--ok)} .prov.live .d{background:var(--ok)}
.prov.est{background:var(--goldbg);color:var(--gold)}
.prov.est .d{width:11px;height:11px;border:1.6px dotted var(--gold);border-radius:999px;background:transparent}
.prov.doc{background:var(--genie-50);color:var(--genie-800)} .prov.doc .d{background:var(--genie)}
.prov.lock{background:var(--surf2);color:var(--mut)}
.prov.tint{background:var(--genie-50);color:var(--genie-800)}

/* ---------- plate chip ---------- */
.plate{display:inline-flex;align-items:center;background:var(--plate-bg);color:var(--plate-ink);
  border-radius:6px;box-shadow:inset 0 0 0 1px var(--plate-line);
  font-weight:700;letter-spacing:.05em;font-size:13.5px;padding:5px 9px;font-variant-numeric:tabular-nums}
.plate.lg{font-size:19px;padding:9px 14px;letter-spacing:.06em}

/* ---------- signal tile ---------- */
.tile{background:var(--surf);border-radius:var(--r-l);box-shadow:var(--e1);padding:22px}
.tile .n{font-size:38px;font-weight:600;letter-spacing:-.02em;line-height:1;margin:8px 0}
.tile .pl{font-size:11.5px;font-weight:650;color:var(--mut)}
.tile-link{cursor:pointer;transition:box-shadow .24s var(--ease),transform .24s var(--ease)}
.tile-link:hover{box-shadow:var(--e2);transform:translateY(-2px)}
.tile-link:focus-visible{outline:2px solid var(--genie);outline-offset:2px}
.tile-link.on{outline:2px solid var(--genie);outline-offset:0}

/* god cross-client reminders overlay */
.godrem{position:fixed;inset:0;z-index:60;background:var(--bg);color:var(--ink);display:flex;flex-direction:column;animation:fade .2s var(--ease)}
.godrem-bar{display:flex;align-items:flex-start;gap:12px;padding:20px 24px;border-bottom:1px solid var(--hair);background:var(--surf)}
.godrem-bar .x{width:34px;height:34px;border-radius:999px;border:none;background:var(--surf2);color:var(--ink2);display:grid;place-items:center;cursor:pointer;flex:0 0 auto}
.godrem-bar .x:hover{color:var(--ink)}
.godrem-body{flex:1;overflow:auto;padding:20px 24px;max-width:1200px;width:100%;margin:0 auto}
.grsort{background:none;border:none;color:var(--mut);font:inherit;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;cursor:pointer;padding:0}
.grsort:hover{color:var(--ink)}
@media(max-width:640px){.godrem-body{padding:14px}.godrem .grid-tiles{grid-template-columns:1fr 1fr!important}}
.brief-link{cursor:pointer}
.brief-link:focus-visible{outline:2px solid var(--genie);outline-offset:2px}

/* ---------- briefing item ---------- */
.brief{background:var(--surf);border-radius:var(--r-l);box-shadow:var(--e1);padding:20px 22px;
  display:flex;gap:14px;transition:box-shadow .24s var(--ease),transform .24s var(--ease)}
.brief:hover{box-shadow:var(--e2);transform:translateY(-2px)}
.brief .bdot{width:10px;height:10px;border-radius:999px;margin-top:6px;flex:0 0 auto}
.brief .bdot.danger{background:var(--red)} .brief .bdot.warn{background:var(--gold)} .brief .bdot.ok{background:var(--ok)}
.brief .bhead{font-size:15.5px;font-weight:600}
.brief .bwhy{font-size:13.5px;color:var(--mut);margin-top:3px}
.brief .bact{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.brief .bprov{margin-left:auto;align-self:flex-start}
.allclear{display:flex;align-items:center;gap:10px;color:var(--ink2);font-size:14.5px;padding:6px 2px}
.allclear .dot{width:10px;height:10px;border-radius:999px;background:var(--ok)}

/* ---------- table / rows ---------- */
.tablecard{background:var(--surf);border-radius:var(--r-l);box-shadow:var(--e1);overflow-x:auto;-webkit-overflow-scrolling:touch}
/* Phone card list — the day-to-day CRM tables (quotes/tasks/orders/
   enquiries/renewals) rendered a wide multi-column table with a
   horizontal scroll container at phone widths, hiding status/amount/
   action behind a sideways swipe (CRM layout audit, 30 Sep 2026 — UX07).
   Both markups render; CSS shows exactly one per width — .tablecard
   itself stays the desktop/tablet view unchanged. */
.phone-cards{display:none}
@media(max-width:820px){.tablecard.pc-hide{display:none}.phone-cards{display:flex;flex-direction:column;gap:10px}}
.pcard{background:var(--surf);border-radius:var(--r-l);box-shadow:var(--e1);padding:14px 16px;cursor:pointer}
.pcard-top{display:flex;gap:10px;align-items:flex-start;justify-content:space-between}
.pcard-id{min-width:0;flex:1}
.pcard-title{font-size:14.5px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pcard-sub{font-size:12px;color:var(--mut);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pcard-meta{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:10px;font-size:12.5px;color:var(--ink2);font-variant-numeric:tabular-nums}
.pcard-meta b{color:var(--ink);font-weight:650}
.pcard-actions{display:flex;gap:8px;align-items:center;margin-top:12px;border-top:1px solid var(--hair);padding-top:10px}
.pcard-actions .sp{flex:1}
.pcard.indent{margin-left:16px;border-left:3px solid var(--hair)}
.trow{display:grid;align-items:center;gap:12px;height:64px;padding:0 20px;border-bottom:1px solid var(--hair);
  transition:background .12s var(--ease)}
.trow:last-child{border-bottom:none}
.trow.head{height:44px;border-bottom:1px solid var(--hair)}
.trow.head span{font-size:11.5px;font-weight:650;letter-spacing:.06em;text-transform:uppercase;color:var(--mut)}
.trow.body{cursor:pointer}
.trow.body:hover{background:var(--surf2)}
.vname{font-size:14.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vsub{font-size:12px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.money{font-size:13.5px;font-weight:600;font-variant-numeric:tabular-nums}
.tfoot{padding:14px 20px;display:flex;gap:14px;align-items:center;color:var(--mut);font-size:12.5px;border-top:1px solid var(--hair)}
.scrollx{overflow-x:auto}
.scrollx .trow{min-width:1000px}

/* filter capsules */
.filters{display:flex;gap:8px;flex-wrap:wrap}
.fchip{height:36px;padding:0 16px;border-radius:999px;border:none;background:var(--surf);box-shadow:var(--e1);
  font-size:13.5px;font-weight:600;color:var(--ink2);display:inline-flex;align-items:center;gap:7px;transition:.16s var(--ease)}
.fchip:hover{box-shadow:var(--e2)}
.fchip.on{background:var(--genie-950);color:#fff;box-shadow:none}
.fchip .cnt{font-size:12px;color:var(--faint)} .fchip.on .cnt{color:var(--genie-200)}

/* avatar */
.avatar{width:36px;height:36px;border-radius:999px;background:var(--genie-50);color:var(--genie-800);
  display:grid;place-items:center;font-size:13px;font-weight:700;flex:0 0 auto}
.avatar.ring{box-shadow:0 0 0 2px var(--tenant)}

/* ---------- sheet / overlay ---------- */
.scrim{position:fixed;inset:0;background:rgba(20,27,44,.30);z-index:50;
  display:grid;place-items:start center;padding:60px 20px;overflow:auto;
  animation:fade .24s var(--ease)}
.sheet{background:var(--surf);border-radius:var(--r-xl);box-shadow:var(--e3);width:100%;max-width:640px;padding:26px 28px;
  animation:rise .42s var(--ease);max-height:calc(100vh - 96px);overflow:auto}
.vcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(258px,1fr));gap:14px}
.sheet .x{width:32px;height:32px;border-radius:999px;border:none;background:var(--surf2);color:var(--ink2);display:grid;place-items:center;cursor:pointer;transition:background .15s var(--ease),color .15s var(--ease)}
.sheet .x:hover{background:var(--hair2,rgba(0,0,0,.08));color:var(--ink)}
/* driver-app back control */
.dback{display:inline-flex;align-items:center;gap:5px;background:var(--surf2);color:var(--ink);border:none;border-radius:999px;
  padding:7px 13px 7px 9px;font-size:13.5px;font-weight:600;font-family:inherit;cursor:pointer;margin-bottom:12px;align-self:flex-start}
.dback:active{transform:scale(.97)}
.dback svg{stroke-width:2.4}
.sheet-t{font-family:'Bricolage Grotesque',sans-serif;font-weight:560;font-size:22px;letter-spacing:-.01em}
.facts{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;margin:18px 0}
.fact .fl{font-size:11.5px;font-weight:650;letter-spacing:.05em;text-transform:uppercase;color:var(--mut)}
.fact .fv{font-size:16px;font-weight:600;margin:3px 0 5px}

/* ---------- deal card (Brief 10 design port — CLAUDE.md rule 7: repo
   tokens, prototype pattern) ---------- */
.deal{background:var(--surf);color:var(--ink);border-radius:var(--r-m);box-shadow:var(--e1);padding:14px;
  border-left:3px solid transparent;
  transition:box-shadow .18s var(--ease),transform .18s var(--ease);text-align:left;width:100%;cursor:pointer}
.deal:hover{box-shadow:var(--e2);transform:translateY(-2px)}
.deal.lead{background:var(--surf)}
.deal.lt-green{border-left-color:var(--ok)} .deal.lt-amber{border-left-color:var(--gold)} .deal.lt-red{border-left-color:var(--red)}
.deal .mrow{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.deal .age{font-size:11px;font-weight:600;padding:2px 8px;border-radius:999px;white-space:nowrap;font-variant-numeric:tabular-nums}
.deal .age.lt-green{background:var(--okbg);color:var(--ok)} .deal .age.lt-amber{background:var(--goldbg);color:var(--gold)} .deal .age.lt-red{background:var(--redbg);color:var(--red)}
.deal .who{font-weight:600;font-size:14px;line-height:1.3}
.deal .veh{color:var(--mut);font-size:12.5px;margin:5px 0 10px;line-height:1.35}
.deal .money{font-size:19px;font-weight:600;font-variant-numeric:tabular-nums}
.deal .money small{font-size:11px;color:var(--mut);font-weight:400}
.deal .meta{display:flex;align-items:center;gap:7px;margin-top:10px;flex-wrap:wrap}
.deal .nx{margin-top:9px;padding-top:9px;border-top:1px solid var(--surf2);font-size:11.5px;color:var(--ink2);
  display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.deal-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(258px,1fr));gap:14px}

/* kanban rail — the Pipeline board (Brief 10 Part D decision #5) */
.rail{display:flex;gap:15px;overflow-x:auto;padding:4px 0 20px}
.col{flex:0 0 268px;min-width:0}
/* Scoped to .rail .col (not the bare .col utility class reused elsewhere for
   plain flex-column layout) — the prototype's lanes have a tinted background
   so each pipeline stage reads as a distinct bucket; ours had none. */
.rail .col{background:var(--surf2);border-radius:var(--r-m);padding:12px}
.col-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:0 4px 11px}
.col-head h2{font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:var(--mut);font-weight:650}
.col-head .n{font-family:'Bricolage Grotesque',sans-serif;font-weight:560;font-size:16px;color:var(--ink2)}
.col-body{display:flex;flex-direction:column;gap:10px}
.stage-bar{height:2px;border-radius:999px;background:var(--genie-200);margin-bottom:11px;opacity:.5}
.ref{font-size:11px;letter-spacing:.06em;color:var(--mut);font-weight:650;text-transform:uppercase}

/* ---------- drawer (right-edge detail panel, replaces a centred .sheet
   for one record with real depth: identifiers/terms/dates/timeline/activity) --- */
.drawer{position:fixed;top:0;right:0;height:100vh;width:min(560px,100vw);z-index:60;
  background:var(--surf);box-shadow:var(--e3);border-left:1px solid var(--hair);
  display:flex;flex-direction:column;animation:drawerin .28s var(--ease)}
@keyframes drawerin{from{transform:translateX(100%)}to{transform:translateX(0)}}
.dr-head{padding:20px 24px 16px;border-bottom:1px solid var(--surf2);flex:none;position:relative}
.dr-head .x{position:absolute;top:18px;right:18px}
.dr-head .line{display:flex;align-items:center;gap:9px;margin-top:9px;flex-wrap:wrap}
.dr-body{overflow-y:auto;padding:4px 24px 30px;flex:1}
.blk{padding:18px 0;border-bottom:1px solid var(--surf2)}
.blk:last-child{border-bottom:none}
.blk h3{font-size:10.5px;letter-spacing:.09em;text-transform:uppercase;color:var(--mut);font-weight:650;
  margin:0 0 12px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.kv{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;font-size:13.5px;margin:0}
.kv dt{color:var(--mut);margin:0} .kv dd{text-align:right;font-weight:600;margin:0}

/* lifecycle timeline — a pipped, connected list; done/now/pend states carry
   the identifier-binding story (Q-no bound, O-no bound, VIN bound, reg bound) */
.tl-i{display:grid;grid-template-columns:22px 1fr auto;gap:12px;align-items:start;padding:7px 0;position:relative}
.tl-i .pip{position:relative;display:grid;place-items:center;height:20px}
.tl-i .pip i{width:9px;height:9px;border-radius:999px;background:var(--faint);z-index:1;font-style:normal;display:block}
.tl-i.done .pip i{background:var(--ok)}
.tl-i.now .pip i{background:var(--genie-800);box-shadow:0 0 0 4px var(--genie-50)}
.tl-i .pip::after{content:"";position:absolute;top:14px;bottom:-14px;width:1.5px;background:var(--surf2)}
.tl-i:last-child .pip::after{display:none}
.tl-i .lbl{font-size:13.5px;font-weight:600}
.tl-i.pend .lbl{font-weight:400;color:var(--faint)}
.tl-i .id{font-size:11px;color:var(--mut);margin-top:2px}
.tl-i .dt{font-size:12px;color:var(--mut);white-space:nowrap;padding-top:2px}
.tl-i.pend .dt{color:var(--faint);font-style:italic}

/* ---------- stepper — the persistent 6-stage journey (enquiry to delivery,
   then on to FleetGenius). Inactive stages collapse to a dot; the current
   stage expands to a labelled pill. ---------- */
.stepper{display:inline-flex;align-items:center;gap:4px;padding:4px;border-radius:999px;background:var(--surf2)}
.step{display:inline-flex;align-items:center;gap:6px;padding:7px 8px;border-radius:999px;font-size:12.5px;
  font-weight:600;color:var(--mut);white-space:nowrap;transition:.16s var(--ease)}
.step.on{padding:7px 13px;background:var(--genie-950);color:#fff}
.step.on.eco{background:var(--eco)}
.stepdot{width:7px;height:7px;border-radius:999px;background:var(--faint);flex:0 0 auto}
.step.done .stepdot{background:var(--ok)}
.step.on .stepdot{background:#fff}
/* compact stepper for table rows and pipeline cards — same six dots, smaller pill */
.stepper.sm{padding:3px;gap:2px}
.stepper.sm .step{padding:4px 5px;font-size:11px;gap:5px}
.stepper.sm .step.on{padding:4px 9px}
.stepper.sm .stepdot{width:6px;height:6px}

.rp{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px dashed var(--surf2);font-size:13px}
.rp:last-child{border-bottom:none}
.act{display:flex;gap:11px;padding:9px 0;font-size:13px}
.act .w{flex:0 0 66px;color:var(--mut);font-size:11.5px}
.act .t{color:var(--ink2);flex:1}

/* banner */
.banner{border-radius:var(--r-m);padding:14px 16px;display:flex;gap:12px;align-items:center;font-size:14px}
.banner.danger{background:var(--redbg);color:var(--red)}
.banner.warn{background:var(--goldbg);color:var(--gold)}
.banner.tint{background:var(--genie-50);color:var(--genie-800)}

/* ---------- login ---------- */
.login{min-height:100vh;min-height:100dvh;display:grid;grid-template-columns:1.2fr 1fr;background:var(--bg);color:var(--ink)}
.login .left{position:relative;display:flex;flex-direction:column;justify-content:center;padding:8vw;overflow:hidden}
.login .left .wash{position:absolute;inset:0;background:var(--aura);opacity:.10}
.login .left .wm{height:54px;width:auto;max-width:300px;object-fit:contain;object-position:left center;align-self:flex-start;position:relative;margin-bottom:26px}
@media(max-width:820px){.login .left .wm{height:42px}}
.login .left .crest{width:64px;height:64px;position:relative;margin-bottom:28px}
.login .left .crest img{width:64px;height:64px;object-fit:contain;position:relative;z-index:1}
.login .left .crest .glow{position:absolute;inset:-6px;border-radius:999px;background:var(--aura);opacity:.55;filter:blur(10px);animation:breathe 3.6s ease-in-out infinite}
.login .left h1{font-family:'Bricolage Grotesque',sans-serif;font-weight:560;font-size:52px;line-height:1.05;letter-spacing:-.02em;position:relative;max-width:11ch}
.login .left .by{position:relative;margin-top:20px;color:var(--ink2)}
.login .right{background:var(--surf);display:grid;place-items:center;padding:40px}
.login .form{width:400px;max-width:100%}
.field{width:100%;height:52px;border-radius:var(--r-m);border:none;background:var(--surf2);padding:0 16px;font-size:15px;font-family:inherit;color:var(--ink);outline:none}
.field:focus{box-shadow:0 0 0 2px var(--genie-200)}
@media(max-width:820px){.login{grid-template-columns:1fr}.login .left{min-height:40vh}.login .left h1{font-size:38px}}

/* ---------- animations ---------- */
@keyframes breathe{0%,100%{opacity:.4}50%{opacity:.7}}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes rise{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
@keyframes arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.arrive{animation:arrive .24s var(--ease) both}
@keyframes shimmer{0%{background-position:0% 50%}100%{background-position:200% 50%}}
.shimmer{background:var(--aura);background-size:200% 100%;animation:shimmer 2.2s linear infinite;
  -webkit-background-clip:text;background-clip:text;color:transparent}
@keyframes dot{0%,80%,100%{transform:translateY(0);opacity:.4}40%{transform:translateY(-4px);opacity:1}}
.dots span{display:inline-block;width:5px;height:5px;border-radius:999px;background:var(--genie);margin:0 2px;animation:dot 1.1s infinite}
.dots span:nth-child(2){animation-delay:.18s} .dots span:nth-child(3){animation-delay:.36s}

/* forms */
.fstack{display:flex;flex-direction:column;gap:12px;margin-top:16px}
.frow{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ffield{display:flex;flex-direction:column;gap:5px}
.ffield>span{font-size:11.5px;font-weight:650;letter-spacing:.05em;text-transform:uppercase;color:var(--mut)}
.finput{width:100%;height:44px;border:none;border-radius:var(--r-s);background:var(--surf2);padding:0 14px;font-family:inherit;font-size:14.5px;color:var(--ink);outline:none}
textarea.finput{height:auto;padding:10px 14px;resize:vertical}
.finput:focus{box-shadow:0 0 0 2px var(--genie-200)}
.searchbar{display:flex;align-items:center;gap:8px;height:44px;background:var(--surf);border-radius:999px;box-shadow:var(--e1);padding:0 16px;max-width:320px}
.searchbar input{border:none;background:transparent;outline:none;font-family:inherit;font-size:14px;color:var(--ink);flex:1}
.sortsel{height:44px;background:var(--surf);color:var(--ink);border:none;border-radius:999px;box-shadow:var(--e1);padding:0 16px;font-family:inherit;font-size:14px;cursor:pointer}

/* god admin bar */
.godbar{display:flex;align-items:center;gap:12px;background:var(--genie-50);border-radius:var(--r-m);padding:8px 8px 8px 14px;margin-bottom:20px;font-size:13.5px}
[data-mode="night"] .godbar{background:var(--surf2);color:var(--ink2)}
[data-mode="night"] .btn.secondary{box-shadow:inset 0 0 0 1px var(--hair2)}
[data-mode="night"] .card{box-shadow:inset 0 0 0 1px var(--hair),var(--e1)}
[data-mode="night"] .prov.tint,[data-mode="night"] .prov.doc,[data-mode="night"] .banner.tint,[data-mode="night"] .connect{background:rgba(143,173,217,.13);color:var(--ink2)}
[data-mode="night"] .avatar{background:var(--surf2);color:var(--genie-200)}
.godpill{display:inline-flex;align-items:center;gap:6px;background:var(--genie-950);color:#fff;border-radius:999px;padding:5px 11px;font-size:12px;font-weight:650}

/* ---------- calendar dots: solid = booked, flashing = due (not yet booked) ---------- */
.caldot.due,.agdot.due{animation:caldotFlash 1.1s ease-in-out infinite}
@keyframes caldotFlash{0%,100%{opacity:1}50%{opacity:.18}}
@media(prefers-reduced-motion:reduce){.caldot.due,.agdot.due{animation:none;opacity:.45}}

/* ---------- the Genius's question card (tinted + brief glow so it gets noticed) ---------- */
.ask-card{position:relative;border:1px solid var(--genie);background:var(--genie-50,#E3EAF5);
  animation:askGlow 1.5s ease-in-out 3}
.ask-card .fchip{background:#fff}
@keyframes askGlow{0%,100%{box-shadow:0 0 0 0 rgba(47,84,144,0)}50%{box-shadow:0 0 0 7px rgba(47,84,144,.22)}}
[data-mode="night"] .ask-card{background:rgba(143,173,217,.12);border-color:var(--genie)}
[data-mode="night"] .ask-card button{background:var(--surf)}
@media(prefers-reduced-motion:reduce){.ask-card{animation:none}}

/* toast */
.toast{position:fixed;left:50%;bottom:100px;transform:translate(-50%,20px);z-index:60;
  background:var(--genie-950);color:#fff;border-radius:999px;padding:11px 18px;font-size:13.5px;font-weight:600;
  box-shadow:var(--e2);display:flex;align-items:center;gap:14px;opacity:0;transition:.3s var(--ease);max-width:90vw}
.toast.show{opacity:1;transform:translate(-50%,0)}
.toast button{background:transparent;border:none;color:var(--genie-200);font-weight:700;font-size:13.5px}

/* model picker */
.gmodel{height:34px;border:none;background:var(--surf2);border-radius:999px;padding:0 12px;font-family:inherit;
  font-size:12.5px;font-weight:600;color:var(--ink2);outline:none;max-width:100%}
.connect{background:var(--genie-50);border-radius:var(--r-m);padding:14px 16px;margin-top:6px}
.connect input{width:100%;height:44px;border:none;border-radius:var(--r-s);background:var(--surf);padding:0 14px;font-family:inherit;font-size:14px;margin:10px 0}
.receipt{display:inline-flex;align-items:center;gap:8px;background:var(--okbg);color:var(--ok);border-radius:999px;padding:6px 12px;font-size:13px;font-weight:600;margin-top:8px}

/* utils */
.row{display:flex;align-items:center;gap:12px}
.col{display:flex;flex-direction:column}
/* minmax(0,...) + min-width:0 on every direct child (CRM layout audit,
   30 Sep 2026 — UX01): without both, a wide-content child (e.g. Diary's
   agenda card) forces its own track past the container width regardless of
   the fr split, clipping the sibling. */
.grid2{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:20px}
.grid2>*{min-width:0}
.grid-tiles{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.stack{display:flex;flex-direction:column;gap:14px}
.wrap{display:flex;flex-wrap:wrap;gap:10px}
.sp{flex:1}
@media(max-width:960px){.grid2{grid-template-columns:minmax(0,1fr)}}

/* ---------- phone tab bar ---------- */
.tabs{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:30;display:flex;align-items:center;gap:4px;
  background:rgba(253,253,251,.92);backdrop-filter:blur(12px);border-radius:999px;padding:7px;box-shadow:var(--e2)}
.tabs button{width:46px;height:46px;border-radius:999px;border:none;background:transparent;color:#5A6480;display:grid;place-items:center}
.tabs button svg{width:22px;height:22px;stroke-width:2}
.tabs button.active{color:#12213C;background:var(--genie-50)}
.tabs .spark-btn{width:60px;height:60px;background:var(--genie-950);color:#fff;position:relative;transform:translateY(-10px);box-shadow:0 6px 18px rgba(18,33,60,.35);display:flex;flex-direction:column;gap:1px;align-items:center;justify-content:center}
.tabs .spark-btn svg{width:22px;height:22px}
.tabs .spark-btn .spark-label{font-size:9.5px;font-weight:700;letter-spacing:.02em;line-height:1}
.tabs .spark-btn .ring{position:absolute;inset:-3px;border-radius:999px;background:var(--aura);opacity:.7;z-index:-1;filter:blur(2px);animation:sparkpulse 2.6s var(--ease) infinite}
@keyframes sparkpulse{0%,100%{transform:scale(1);opacity:.55}50%{transform:scale(1.12);opacity:.85}}

/* proactive Genius insight strip (top of each tab) */
.ginsight{display:flex;align-items:center;gap:10px;margin-bottom:16px;padding:10px 14px;cursor:pointer;
  background:var(--genie-50);border:1px solid var(--genie-100,var(--hair));border-radius:var(--r-m);
  transition:box-shadow .2s var(--ease),transform .2s var(--ease)}
.ginsight:hover{box-shadow:var(--e1);transform:translateY(-1px)}
.ginsight:focus-visible{outline:2px solid var(--genie);outline-offset:2px}
.ginsight .gi-spark{flex:0 0 auto;width:26px;height:26px;border-radius:999px;display:grid;place-items:center;background:var(--genie-950);color:#fff}
.ginsight .gi-text{flex:1;min-width:0;font-size:13.5px;color:var(--ink)}
.ginsight .gi-cta{flex:0 0 auto;font-size:12px;font-weight:650;color:var(--genie)}
@media(max-width:640px){.ginsight .gi-cta{display:none}}
.moremenu{position:fixed;inset:0;z-index:45;background:rgba(20,27,44,.30);display:flex;align-items:flex-end;animation:fade .2s var(--ease)}
/* A long list (CRM's 26-section "All sections", say) is taller than most
   phone screens — without a cap the sheet just overflows upward past the
   viewport, pushing its own top rows (and rounded corners) off-screen and
   unreachable, rather than scrolling. Cap it under the viewport and let the
   panel itself scroll. */
.moremenu .panel{background:var(--surf);width:100%;max-height:min(78vh,78dvh);overflow-y:auto;overscroll-behavior:contain;border-radius:24px 24px 0 0;padding:16px 16px 28px;box-shadow:var(--e3);animation:rise .3s var(--ease)}
.moremenu .panel-head{display:flex;align-items:center;padding:4px 10px 10px;font-weight:700;font-size:15px}
/* .mi moved from div.onClick to a real <button> (CRM layout audit, 30 Sep
   2026 — UX09): reset the UA button chrome it otherwise inherits. */
.moremenu .mi{display:flex;align-items:center;gap:14px;width:100%;padding:14px 10px;border:none;border-bottom:1px solid var(--hair);
  border-radius:0;background:transparent;font:inherit;font-weight:600;color:inherit;text-align:left;cursor:pointer}
.moremenu .mi:last-child{border-bottom:none}
.moremenu .mi:disabled{color:var(--mut);cursor:default}
.moremenu .mi:focus-visible{outline:2px solid var(--genie);outline-offset:-2px}

/* responsive tightening */
@media(max-width:560px){
  .greeting{font-size:26px}.pagetitle{font-size:24px}
  .main{padding:14px 14px 104px 14px}
  .facts{grid-template-columns:1fr}
  .grid-tiles{grid-template-columns:1fr 1fr}
  .login{grid-template-rows:auto 1fr}
  .login .left{min-height:auto;padding:30px 22px 8px}
  .login .left h1{font-size:32px;max-width:none}
  .login .right{padding:22px 20px 40px;place-items:start stretch}
  .login .form{width:100%}
  .tablecard{border-radius:var(--r-m)}
  .convo{padding:5vh 12px 100px}
  .convo-card{padding:18px 16px}
}

/* ---------- driver companion (Night) ---------- */
/* No overscroll-behavior here: overflow-x:hidden makes .driver a scroll
   container (computed overflow-y:auto) that never overflows itself — with
   overscroll-behavior:none Chrome then refuses to chain wheel/touch scrolls
   up to the document, freezing the page. Pull-to-refresh is already
   suppressed by overscroll-behavior on html,body (the real scroller). */
.driver{min-height:100vh;background:var(--bg);color:var(--ink);display:flex;flex-direction:column;overflow-x:hidden;touch-action:pan-y}
.dphone{max-width:440px;margin:0 auto;width:100%;padding:26px 22px 40px;flex:1;display:flex;flex-direction:column}
.dhead{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.dhead .dwm{height:24px;width:auto;object-fit:contain;flex:0 0 auto}
.dhead .plate{background:#fff}
.dtitle{font-family:'Bricolage Grotesque',sans-serif;font-weight:560;font-size:28px;letter-spacing:-.01em;line-height:1.15}
.dcard{background:var(--surf);border-radius:var(--r-l);box-shadow:var(--e1);padding:20px}
.dbig{height:64px;border-radius:999px;border:none;font-size:16px;font-weight:650;width:100%;display:flex;align-items:center;justify-content:center;gap:10px}
.dbig.primary{background:var(--genie);color:#fff}
.dbig.white{background:#fff;color:var(--genie-950)}
.dbig.ghost{background:var(--surf2);color:var(--ink)}
.verdict{display:flex;gap:12px}
.verdict button{height:76px;border-radius:var(--r-l);border:none;font-size:16px;font-weight:650;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.verdict .fine{background:var(--okbg);color:var(--ok);box-shadow:inset 0 0 0 1.5px rgba(126,208,168,.4)}
.verdict .bad{background:var(--redbg);color:var(--red);box-shadow:inset 0 0 0 1.5px rgba(238,129,119,.4)}
.dprog{height:6px;border-radius:999px;background:var(--surf2);overflow:hidden;margin:10px 0 20px}
.dprog>div{height:100%;background:var(--aura);border-radius:999px;transition:width .3s var(--ease)}
.viewfinder{aspect-ratio:1;border-radius:var(--r-xl);background:var(--surf2);position:relative;overflow:hidden;display:grid;place-items:center;margin:8px 0 18px}
.viewfinder .corner{position:absolute;width:34px;height:34px;border:3px solid #fff;opacity:.9}
.viewfinder .c1{top:24px;left:24px;border-right:none;border-bottom:none;border-radius:8px 0 0 0}
.viewfinder .c2{top:24px;right:24px;border-left:none;border-bottom:none;border-radius:0 8px 0 0}
.viewfinder .c3{bottom:24px;left:24px;border-right:none;border-top:none;border-radius:0 0 0 8px}
.viewfinder .c4{bottom:24px;right:24px;border-left:none;border-top:none;border-radius:0 0 8px 0}
.scanline{position:absolute;left:10%;right:10%;height:3px;background:var(--aura);box-shadow:0 0 14px 2px rgba(123,108,240,.6);animation:scan 2.8s var(--ease) infinite}
@keyframes scan{0%{top:16%}50%{top:82%}100%{top:16%}}
.holdmic{width:112px;height:112px;border-radius:999px;border:none;background:var(--genie);color:#fff;position:relative;display:grid;place-items:center;margin:10px auto}
.holdmic .ring{position:absolute;inset:-6px;border-radius:999px;background:var(--aura);opacity:.6;filter:blur(8px);animation:breathe 2s ease-in-out infinite}
.dgenie{display:flex;gap:9px;align-items:flex-start;background:var(--surf2);border-radius:var(--r-m);padding:12px 14px;font-size:14px;color:var(--ink2)}
.dgenie .s{color:var(--genie-400);flex:0 0 auto;margin-top:1px}
.dtick{width:72px;height:72px;position:relative;margin:0 auto 8px}
.dtick .glow{position:absolute;inset:-6px;border-radius:999px;background:var(--aura);opacity:.6;filter:blur(10px)}
.dtick svg{position:relative;z-index:1;width:72px;height:72px;color:var(--ok)}
.emgcard{background:var(--redbg);color:var(--red);border-radius:var(--r-m);padding:14px 16px;margin-bottom:14px}
.emgcard b{display:block;margin-bottom:4px}
.flowlist{margin:8px 0 0;padding-left:18px;font-size:13.5px;color:var(--ink2)}
.flowlist li{margin:4px 0}
.call999{display:block;text-align:center;background:var(--red);color:#fff;font-weight:700;padding:12px;border-radius:12px;text-decoration:none;margin-top:10px}
.callbtn{display:flex;align-items:center;justify-content:center;gap:10px;background:var(--genie);color:#fff;font-weight:700;height:64px;border-radius:999px;text-decoration:none}
.einput{width:100%;border:none;border-radius:var(--r-s);background:var(--surf2);padding:12px 14px;font-family:inherit;font-size:14.5px;color:var(--ink);outline:none}
select.einput{height:46px;padding:0 14px}
/* tighten the driver app on small phones */
@media (max-width:430px){
  .dphone{padding:16px 14px 32px}
  .dtitle{font-size:23px;line-height:1.12}
  .dbig{height:56px;font-size:15px}
  .dcard{padding:15px}
  .dfacts{gap:8px 12px !important}
  .verdict{gap:8px}
}
.dphone{overflow-x:hidden}
.sbfoot{margin-top:34px;padding:16px 0 6px;text-align:center;font-size:11.5px;color:var(--faint)}
.dphone input,.dphone select,.dphone textarea{max-width:100%}

/* conversation overlay */
/* grid-template-columns:minmax(0,1fr) + min-width:0 on the card (CRM layout
   audit, 30 Sep 2026 — UX02): an implicit single-column grid still sizes to
   its item's min-content, so a long unwrapped descendant forced the card
   past the viewport (measured 486px wide inside a 390px viewport). */
.convo{position:fixed;inset:0;z-index:40;display:grid;grid-template-columns:minmax(0,1fr);place-items:start center;padding:7vh 20px 120px;overflow:auto;
  background:rgba(20,27,44,.30);backdrop-filter:blur(3px);animation:fade .24s var(--ease)}
.convo-card{width:100%;min-width:0;max-width:720px;background:var(--surf);border-radius:var(--r-xl);box-shadow:var(--e3);padding:26px 28px}
/* Local dialog composer — do NOT reuse .threadbar here: its global fixed/
   translateX(-50%)/bottom positioning is calibrated for the page-level Spark
   bar, not a bounded dialog, and leaked into this context (same audit —
   UX02: the close button measured off-screen at 390px). */
.convo-composer{width:100%;min-width:0;margin-top:20px;box-shadow:var(--e1);
  background:var(--surf2);border-radius:999px;border:1px solid var(--hair2);
  display:flex;align-items:center;gap:10px;padding:8px 8px 8px 20px}
.convo-composer .spark{color:var(--genie);flex:0 0 auto;display:grid;place-items:center}
.convo-composer .spark svg{width:22px;height:22px}
.convo-composer input{flex:1;min-width:0;border:none;background:transparent;outline:none;font-size:16px;color:var(--ink);font-family:inherit} /* 16px: iPhone zooms the page on focus below 16 */
.convo{overscroll-behavior:contain}
.convo-composer .mic-btn{width:40px;height:40px;flex:0 0 auto;border-radius:999px;border:none;background:transparent;color:var(--mut);display:grid;place-items:center;cursor:pointer}
.convo-composer .mic-btn svg{width:20px;height:20px}
.convo-composer .mic-btn.on{color:var(--red);animation:breathe 1.1s ease-in-out infinite}
.convo-composer input::placeholder{color:var(--mut)}
.convo-composer .send{width:44px;height:44px;border-radius:999px;border:none;background:var(--genie-950);color:#fff;
  display:grid;place-items:center;flex:0 0 auto;transition:background .16s var(--ease)}
.convo-composer .send:hover{background:var(--genie-800)}
.convo-composer .send svg{width:19px;height:19px}
.convo-composer .mic-btn{width:36px;height:36px;border-radius:999px;border:none;background:transparent;color:var(--mut);
  display:grid;place-items:center;flex:0 0 auto;cursor:pointer;transition:color .16s var(--ease)}
.convo-composer .mic-btn:hover{color:var(--ink)}
.convo-composer .mic-btn.on{color:var(--red);animation:breathe 1.1s ease-in-out infinite}
.convo-composer .mic-btn svg{width:18px;height:18px}
.gmodel{min-width:0}
@media(max-width:480px){.convo-modelrow{flex-wrap:wrap}}
.bubble{background:var(--genie-950);color:#fff;border-radius:20px 20px 6px 20px;padding:12px 16px;font-size:14.5px;max-width:80%;margin-left:auto}
.answer{font-size:15px;line-height:1.55;max-width:560px}
.answer-actions{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}
/* The Genius agent's confirmation cards (14 Oct 2026): a proposed change waits here until the
   person taps "Do it". Existing tokens only. */
.gconfirm-list{display:grid;gap:10px;margin-top:12px;max-width:560px}
.gconfirm{background:var(--surf2);border:1px solid var(--hair2);border-left:3px solid var(--genie);border-radius:var(--r-m);padding:12px 14px}
.gconfirm.done{border-left-color:var(--eco)}
.gconfirm.failed{border-left-color:var(--red)}
.gconfirm.declined{opacity:.7;border-left-color:var(--hair2)}
.gconfirm-t{font-size:14px;line-height:1.45;color:var(--ink);overflow-wrap:anywhere}
.gconfirm-s{font-size:12.5px;margin-top:8px}
.x.gspeak{width:32px;height:32px;border-radius:999px;border:none;background:var(--surf2);color:var(--mut);display:grid;place-items:center;cursor:pointer;flex:0 0 auto;margin-right:6px}
.x.gspeak.on{color:var(--genie);box-shadow:inset 0 0 0 1px var(--genie)}
@media(max-width:560px){
  .convo{padding:12px 10px 90px}
  .convo-card{padding:18px 16px;border-radius:var(--r-l)}
  .bubble{max-width:90%}
}
.crest-sm{width:34px;height:34px;position:relative;flex:0 0 auto}
.crest-sm img{width:34px;height:34px;object-fit:contain;position:relative;z-index:1}
.crest-sm .glow{position:absolute;inset:-3px;border-radius:999px;background:var(--aura);opacity:.5;filter:blur(6px);animation:breathe 3.6s ease-in-out infinite}

/* ---- provider co-brand (maintenance module) ----
   A white supplier wordmark needs a dark ground. --genie-950 is dark in both day
   and night, so this works without inventing a brand colour we have not had
   confirmed by the provider. No new tokens. */
.cobrand{display:flex;align-items:center;gap:16px;background:var(--genie-950);
  border-radius:var(--r-m);padding:14px 18px;box-shadow:var(--e1)}
.cobrand-logo{height:26px;width:auto;max-width:180px;display:block;flex:none}
.cobrand-name{color:#fff;font-size:18px;flex:none}
.cobrand-txt{min-width:0}
.cobrand-txt .cb-1{color:#fff;font-size:13.5px;font-weight:600;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cobrand-txt .cb-2{color:var(--genie-200);font-size:12.5px;margin-top:1px}
.cobrand-call{color:var(--genie-200);font-size:13px;font-weight:600;text-decoration:none;
  display:inline-flex;align-items:center;gap:7px;flex:none}
.cobrand-call:hover{color:#fff}
@media(max-width:640px){
  .cobrand{gap:12px;padding:12px 14px}
  .cobrand-logo{height:22px;max-width:120px}
  .cobrand-txt .cb-2,.cobrand-call{display:none}
}

/* ============================================================
   Bluepoppy Vehicle Solutions — the broker CRM's own brand, scoped to
   .bp-crm only (BRAND-REFERENCE.md, tokens verified against the live
   bluepoppysolutions.com site 22 Sep 2026). Never applied outside the CRM:
   the Fleet Portal, driver app and marketing pages keep their own Aura
   identity untouched — .bp-crm just re-points the SAME variable names every
   component already themes from (--genie-950/--bg/--surf/--ink/... — this
   codebase's existing day/night pattern), so nothing here duplicates a
   component rule, it only changes what those components read.
   [data-mode="night"].bp-crm (not .bp-crm alone) beats the plain
   [data-mode="night"] block on specificity regardless of file order.
   ============================================================ */
[data-mode="night"].bp-crm,
.fa-body{
  --bg:#F2F4F7; --surf:#FFFFFF; --surf2:#E6F0FF;
  --ink:#1F2433; --ink2:#3A4256; --mut:#5B6478; --faint:#8A93A6;
  --hair:#E4E8F0; --hair2:#D3D9E3;
  --ok:#2F7D5D; --okbg:#E2F0E8; --gold:#B97E1F; --goldbg:#F8EDD8;
  --red:#BC4238; --redbg:#F9E7E4;
  /* Poppy Blue primary; "dark hover" from the brand reference becomes the
     existing hover/lighter-shade slots every button/chip/active-state already
     reads from — no component rule changes, only what these resolve to. */
  --genie:#1E5AA8; --genie-950:#1E5AA8; --genie-800:#164A8C;
  --genie-400:#4A7DBF; --genie-200:#B9D2F0; --genie-50:#E6F0FF;
  --aura:linear-gradient(120deg,#1E5AA8,#22B573 60%,#E6F0FF);
  --e1:0 1px 2px rgba(10,18,48,.06),0 10px 28px -14px rgba(10,18,48,.14);
  --e2:0 2px 4px rgba(10,18,48,.07),0 18px 44px -18px rgba(10,18,48,.20);
  font-family:'DM Sans',system-ui,-apple-system,sans-serif;
}
.bp-crm .card-t,.bp-crm .pagetitle,.bp-crm h1,.bp-crm h2,.bp-crm h3{font-family:'Inter',system-ui,sans-serif}
/* the customer's finance application (0241) wears the same Bluepoppy brand (Paul, 3 Nov 2026) */
.fa-body .fa-h1,.fa-body .fa-h2,.fa-body h1,.fa-body h2,.fa-body h3{font-family:'Inter',system-ui,sans-serif;font-weight:700;letter-spacing:-.015em}
/* the dock crest — a compact Poppy Blue "bp" mark; the real wordmark (too wide
   for this 40px round icon rail) sits in the content header instead, where
   there's room for it plus the "Vehicle Solutions" descriptor beneath. */
.bp-crest{background:var(--genie-950)}
/* The Aura glow behind it is a blue-green-sky gradient (borrowed for the rest
   of the CRM's --aura uses); at 40px it visually dominates the small solid
   badge, reading as green rather than a clean Poppy Blue. The badge doesn't
   need the halo BRAND-REFERENCE.md never asked for — drop it here only. */
.bp-crest .glow{display:none}
.bp-mono{color:#fff;font-family:'Inter',system-ui,sans-serif;font-weight:800;font-size:15px;letter-spacing:-.02em}

/* Shell (23 Sep, corrected) — read straight from the source design pack's
   own assets/app.js + style.css rather than a click-through, which turned
   up a real structural error in the first cut: the dark element there is
   the SIDEBAR itself (full height on desktop), with a plain white topbar
   sitting only beside it — not a separate dark bar spanning above both.
   Scoped to .bp-crm only — the Fleet Portal's own .dock/.tabs rules above
   are untouched, and CrmTabs/the desktop nav below are CRM-only components. */
.bp-crm{--bp-navy:#0a1230;--bp-navy2:#12213c;--bp-sidebar-w:264px;--bp-topbar-h:68px}
.bp-crm .bp-sidebar{position:fixed;left:0;top:0;bottom:0;width:var(--bp-sidebar-w);z-index:30;
  background:linear-gradient(175deg,var(--bp-navy),var(--bp-navy2));color:#fff;overflow-y:auto;
  display:flex;flex-direction:column;gap:7px;padding:32px 18px 20px}
/* .bp-nav-item declared height:42px, but every row shared the browser's
   default flex-shrink:1 inside the column-flex sidebar — once total content
   (brand+groups+items+footer) exceeded the viewport height, every row
   compressed instead of the sidebar scrolling (CRM layout audit, 30 Sep
   2026 — UX03: rows measured 18px tall at 1440x900). Bumped to the 44px
   touch target the audit's acceptance asks for, and every structural
   section is now flex-shrink:0 so only the existing overflow-y:auto on the
   sidebar itself absorbs the overflow. */
.bp-crm .bp-brand{padding:0 10px 30px;flex-shrink:0}
.bp-crm .bp-brand-logo{display:block;width:158px;height:auto}
.bp-crm .bp-caption{display:block;font-size:10.5px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:rgba(255,255,255,.6);margin-top:11px}
.bp-crm .bp-platform{display:flex;align-items:center;gap:9px;font-size:11.5px;color:rgba(255,255,255,.55);
  margin-top:18px;padding-top:18px;border-top:1px solid rgba(255,255,255,.1)}
.bp-crm .bp-aura-dot{width:8px;height:8px;flex:0 0 auto;border-radius:999px;background:var(--aura)}
.bp-crm .bp-navgroup{font-size:10.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:rgba(255,255,255,.42);margin:22px 14px 10px;flex:0 0 auto}
.bp-crm .bp-navgroup:first-child{margin-top:0}
.bp-crm .bp-nav-item{display:flex;align-items:center;gap:13px;width:100%;min-height:44px;height:auto;padding:8px 14px;
  border:none;background:transparent;border-radius:11px;color:rgba(255,255,255,.82);font-size:13.5px;font-weight:600;
  text-align:left;transition:background .15s var(--ease),color .15s var(--ease);flex-shrink:0}
.bp-crm .bp-nav-item svg{width:18px;height:18px;flex:0 0 auto}
.bp-crm .bp-nav-item:hover{background:rgba(255,255,255,.08);color:#fff}
.bp-crm .bp-nav-item.active{background:var(--genie-950);color:#fff}
/* Training guide link (guide-kit.js): an <a> styled as a nav row, with a New/Updated tag. */
.bp-crm a.bp-nav-item,.moremenu a.mi{text-decoration:none}
.bp-guide-tag{margin-left:auto;border-radius:999px;padding:1px 8px;font-size:10.5px;font-weight:700;letter-spacing:.02em;background:var(--gold,#c08a1e);color:#fff}
.bp-guide-note{margin-bottom:14px;flex-wrap:wrap}
.bp-guide-note .bp-guide-text{flex:1 1 300px;min-width:0}
.bp-guide-note>.btn,.bp-guide-note>button{flex:none}
.bp-guide-note .btn{text-decoration:none}
.bp-crm .bp-nav-item.stub{color:rgba(255,255,255,.34);cursor:default}
.bp-crm .bp-nav-item.stub:hover{background:transparent}
.bp-crm .bp-soon{margin-left:auto;font-size:9.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
  color:rgba(255,255,255,.3);flex:none}
.bp-crm .bp-nav-sep{height:1px;background:rgba(255,255,255,.1);margin:16px 14px;flex:0 0 auto}
.bp-crm .bp-sidebar-foot{margin-top:auto;padding:20px 10px 4px;border-top:1px solid rgba(255,255,255,.1);flex-shrink:0}
.bp-crm .bp-sidebar-label{display:block;font-size:10.5px;font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;color:rgba(255,255,255,.45);margin-bottom:12px}
.bp-crm .bp-workspace-name{display:block;font-size:13.5px;color:#fff}
.bp-crm .bp-workspace-tag{font-size:11.5px;color:rgba(255,255,255,.5)}
.bp-crm .bp-topbar{position:fixed;top:0;left:var(--bp-sidebar-w);right:0;height:var(--bp-topbar-h);z-index:25;
  background:var(--surf);border-bottom:1px solid var(--hair);display:flex;align-items:center;
  justify-content:space-between;padding:0 24px}
.bp-crm .bp-crumb{font-size:12.5px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.bp-crm .bp-crumb b{color:var(--ink)}
.bp-crm .bp-aicmd{display:flex;align-items:center;gap:8px;background:var(--bp-navy);color:#fff;
  border:none;border-radius:999px;padding:10px 18px;font-size:12.5px;font-weight:650;white-space:nowrap;
  transition:background .15s var(--ease)}
.bp-crm .bp-aicmd:hover{background:var(--bp-navy2)}
.bp-crm .bp-fieldconn{display:flex;align-items:center;gap:6px;background:transparent;color:var(--ink);
  border:1px solid var(--line);border-radius:999px;padding:9px 16px;font-size:12.5px;font-weight:600;white-space:nowrap}
.bp-crm .bp-fieldconn:hover{background:var(--surf2)}
/* Below ~900px the topbar's crumb + two labelled pills + avatar no longer
   fit one row without wrapping (CRM layout audit, 30 Sep 2026 — UX13:
   measured the AI-command label wrapping onto three lines at 821px). Drop
   to icon-only pills rather than let the label force overflow or shrink
   into an unreadable wrap; aria-label keeps them named for a11y. */
@media(max-width:900px){.bp-crm .bp-aicmd,.bp-crm .bp-fieldconn{padding:10px;gap:0}.bp-crm .bp-btn-label{display:none}}
.bp-crm .bp-eyebrow{font-size:11.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;
  color:var(--genie-950);margin-bottom:4px}

/* Quote workspace rebuild (PR #196 got the 4-step structure right but not
   the look — this reuses the exact tokens #178/179 already pulled from the
   prototype's own .context/.steps/.option/.split classes, so it matches
   pixel-for-pixel rather than approximately). */
.bp-crm .qw-context{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:20px;
  background:var(--surf);border:1px solid var(--hair);border-radius:var(--r-l);padding:20px 22px;margin:14px 0}
.bp-crm .qw-context label{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--mut);display:block;margin-bottom:6px}
.bp-crm .qw-context strong{font-size:14px}
.bp-crm .qw-context .qw-sub{font-size:12px;color:var(--mut);margin-top:3px}
@media(max-width:820px){.bp-crm .qw-context{grid-template-columns:repeat(2,1fr)}}

.bp-crm .qw-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin:8px 0 18px;
  border:1px solid var(--hair);border-radius:var(--r-l);overflow:hidden;background:var(--surf)}
.bp-crm .qw-step{border:0;border-right:1px solid var(--hair);border-radius:0;display:flex;align-items:center;gap:11px;
  padding:14px 16px;text-align:left;background:var(--surf);font-size:13.5px;font-weight:600;color:var(--ink2);cursor:pointer}
.bp-crm .qw-step:last-child{border-right:0}
.bp-crm .qw-step .qw-num{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;
  background:var(--surf2);font-size:11.5px;font-weight:700;flex-shrink:0;color:var(--ink2)}
.bp-crm .qw-step.active{background:var(--surf2);color:var(--genie-950)}
.bp-crm .qw-step.active .qw-num{background:var(--genie-950);color:#fff}
@media(max-width:820px){.bp-crm .qw-steps{grid-template-columns:1fr;overflow-x:visible}.bp-crm .qw-step{border-right:0;border-bottom:1px solid var(--hair)}.bp-crm .qw-step:last-child{border-bottom:0}}

.bp-crm .qw-option{background:var(--surf);border:1px solid var(--hair);border-radius:var(--r-l);overflow:hidden;position:relative}
.bp-crm .qw-option.recommended{border:2px solid var(--genie-950)}
.bp-crm .qw-option-banner{background:var(--genie-950);color:#fff;font-size:10.5px;text-transform:uppercase;
  letter-spacing:.08em;padding:7px 16px;font-weight:700}
.bp-crm .qw-option dl{margin:0;padding:12px 16px}
.bp-crm .qw-option dl div{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:12.5px;border-top:1px solid var(--hair)}
.bp-crm .qw-option dl div:first-child{border-top:0}
.bp-crm .qw-option dt{color:var(--mut)}
.bp-crm .qw-option dd{margin:0;font-weight:600;text-align:right;font-variant-numeric:tabular-nums}

.bp-crm .qw-split{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(240px,1fr);gap:20px;align-items:start}
@media(max-width:900px){.bp-crm .qw-split{grid-template-columns:1fr}}
.bp-crm .qw-timeline{border-left:2px solid var(--hair2);margin:10px 0 4px 6px;padding-left:18px}
.bp-crm .qw-tl-event{margin-bottom:16px;position:relative;font-size:12.5px}
.bp-crm .qw-tl-event::before{content:'';position:absolute;left:-23px;top:3px;width:8px;height:8px;border-radius:50%;background:var(--genie-950)}
.bp-crm .qw-tl-event small{display:block;color:var(--mut);margin-top:2px}
.bp-crm .qw-version{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid var(--hair);font-size:12.5px}
.bp-crm .qw-version:first-child{border-top:0}
/* Quote builder: work column + live customer preview (0233). The preview stacks below
   the work on narrower screens; on a wide screen it stays in view while you scroll. */
/* Sized by the space the builder actually has (a container query), not the window —
   the CRM sidebar takes a different share of the screen at every width. */
.qb-shell{container-type:inline-size}
.qb-work{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,360px);gap:16px;align-items:start}
.qb-work.pv-closed{grid-template-columns:minmax(0,1fr) auto}
.qb-main{min-width:0;container-type:inline-size;container-name:qbmain}
.qb-preview{position:sticky;top:12px;min-width:0;margin-top:14px}
.qb-preview-card{padding:12px 14px}
.qb-doc{display:block;width:100%;height:min(72vh,680px);border:1px solid var(--hair);border-radius:var(--r-s);background:#fff}
@container (max-width:900px){.qb-work,.qb-work.pv-closed{grid-template-columns:minmax(0,1fr)}.qb-preview{position:static}.qb-doc{height:560px}}
/* requirement bar: one compact row per vehicle, wraps on a phone */
.qb-req{display:grid;grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:8px 10px;margin-top:10px;padding:10px 12px;border-radius:var(--r-s);background:var(--surf2)}
.qb-req-f{display:flex;flex-direction:column;gap:3px;min-width:0;font-size:11.5px;color:var(--mut)}
.qb-req-f .finput{height:36px;width:100%;font-variant-numeric:tabular-nums;color:var(--ink)}
/* funder grid */
.qb-grid-wrap{margin-top:10px}
.qb-grid{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:13px}
.qb-grid th{text-align:left;padding:8px 10px;font-size:11.5px;color:var(--mut);font-weight:600;vertical-align:bottom;white-space:nowrap}
.qb-grid td{padding:8px 10px;border-top:1px solid var(--hair);vertical-align:top}
.qb-grid tr.best td{background:var(--okbg)}
.qb-grid tr.on td:first-child{box-shadow:inset 3px 0 0 var(--genie)}
.qb-tick{width:18px;height:18px;margin-top:2px;accent-color:var(--genie);cursor:pointer}
.qb-comm{height:32px;width:64px;font-variant-numeric:tabular-nums}
.qb-comm-cell{display:flex;flex-direction:column;gap:4px;align-items:flex-start}
.qb-comm-mode{height:30px;width:auto;min-width:96px;padding:0 6px;font-size:12px}
.qb-comm-cell .qb-comm{width:78px;padding:0 8px;font-size:12.5px}
.qb-comm-choice .fchip{white-space:normal;text-align:left}
/* phone-width builder: each funder becomes a small card — tick, funder, then the three figures */
@container qbmain (max-width:620px){
  .qb-grid thead{display:none}
  .qb-grid,.qb-grid tbody{display:block}
  .qb-grid tr{display:grid;grid-template-columns:34px repeat(3,minmax(0,1fr));grid-template-areas:"t f f f" "t r c p";border-top:1px solid var(--hair);padding:6px 0}
  .qb-grid td{border-top:0;padding:4px 8px}
  .qb-grid tr.best{background:var(--okbg)}
  .qb-grid td:nth-child(1){grid-area:t}
  .qb-grid td:nth-child(2){grid-area:f}
  .qb-grid .qb-c-rent{grid-area:r}.qb-grid .qb-c-comm{grid-area:c}.qb-grid .qb-c-pays{grid-area:p;font-size:15px}
  .qb-grid td[data-l]::before{content:attr(data-l);display:block;font-size:10.5px;font-weight:500;color:var(--mut)}
}
@container qbmain (max-width:430px){
  .qb-grid tr{grid-template-columns:34px repeat(2,minmax(0,1fr));grid-template-areas:"t f f" "t r c" "t p p"}
}
/* quote builder: inline confirm, duplicate hint, no-rate-book-price message (13 Oct 2026) */
.qb-confirm,.qb-hint{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:10px;padding:10px 12px;border-radius:var(--r-s);font-size:13px}
.qb-confirm{background:var(--redbg);color:var(--ink)}
.qb-hint{background:var(--goldbg);color:var(--ink)}
.qb-flag{height:20px;font-size:10.5px;border:0;cursor:pointer;font-weight:600}
.qb-gap{margin-top:3px;font-size:11px;color:var(--gold)}
.qb-check .finput{box-shadow:inset 0 0 0 2px var(--gold);background:var(--goldbg)}
.qb-check-t{display:inline-block;font-size:10.5px;font-weight:700;color:var(--gold);text-transform:uppercase;letter-spacing:.04em}
.qb-pick{margin-top:12px;padding:10px 12px;border-radius:var(--r-s);background:var(--surf2)}
.qb-pick.err{box-shadow:inset 0 0 0 2px var(--red)}
.qb-empty{margin-top:12px;padding:12px 14px;border-radius:var(--r-s);background:var(--surf2);font-size:13.5px;font-weight:550;color:var(--ink)}
.qb-best{display:inline-block;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;padding:1px 7px;border-radius:999px;background:var(--ok);color:#fff;vertical-align:1px}

.bp-crm .main{padding-top:calc(var(--bp-topbar-h) + 26px)!important;padding-left:calc(var(--bp-sidebar-w) + 44px)!important}
@media(max-width:1120px){.bp-crm .main{padding-left:calc(var(--bp-sidebar-w) + 24px)!important}}
/* UX13 — .main carries the sidebar/topbar offset (above); centring and
   capping the actual readable content is a SEPARATE job, done by this
   inner wrapper instead of a second max-width/margin:auto on .main itself.
   Putting both on one element centred the 1200px box in the FULL viewport
   width (ignoring the sidebar it sits beside) and then re-applied the
   sidebar's own left padding again inside that already-offset box —
   confirmed live at 1440px: box centred at x120, content not starting
   until x428, ~832px of 1200px actually usable. */
.bp-maincontent{margin:0 auto;width:100%}

/* Mobile: the sidebar's own brand row collapses into a top strip (matching
   the source's actual mobile pattern) instead of the full sidebar; "All
   sections" is genuinely mobile-only here, same as the source. */
.bp-crm .bp-mobilebrand{display:none}
.bp-crm .bp-tabs{display:none}
@media(max-width:820px){
  .bp-crm .bp-mobilebrand{position:fixed;top:0;left:0;right:0;height:56px;z-index:35;
    background:linear-gradient(175deg,var(--bp-navy),var(--bp-navy2));display:flex;align-items:center;
    justify-content:space-between;padding:0 16px}
  .bp-crm .bp-mobilelogo{height:22px;width:auto;display:block}
  .bp-crm .bp-allsections{background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.2);
    border-radius:999px;padding:7px 14px;font-size:12px;font-weight:650}
  .bp-crm .main{padding-left:16px!important;padding-right:16px!important;
    padding-top:calc(56px + 18px)!important;padding-bottom:96px!important}
  .bp-crm .bp-tabs{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;
    background:var(--surf);border-top:1px solid var(--hair);
    padding:8px 4px calc(6px + env(safe-area-inset-bottom))}
  .bp-crm .bp-tab{flex:1;border:none;background:transparent;color:var(--mut);
    font-size:11.5px;font-weight:650;padding:9px 2px;border-radius:10px}
  .bp-crm .bp-tab.active{color:#fff;background:var(--genie-950)}
}

/* My day (23 Sep) — the source's hero + metric-tile treatment, wrapping the
   dashboard's own already-real data (see the CrmSurface dashboard branch). */
.bp-crm .bp-hero{position:relative;display:grid;grid-template-columns:1.3fr 1fr;gap:32px;
  background:linear-gradient(160deg,var(--bp-navy),var(--bp-navy2));border-radius:22px;
  padding:30px 34px;color:#fff;overflow:hidden;margin-bottom:20px}
.bp-crm .bp-hero:before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:var(--aura);opacity:.7}
.bp-crm .bp-hero-kicker{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:750;
  letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.6);margin-bottom:14px}
.bp-crm .bp-hero-h{font-size:1.7rem;line-height:1.18;letter-spacing:-.02em;color:#fff;margin:0 0 10px}
.bp-crm .bp-hero-sub{font-size:13.5px;color:rgba(255,255,255,.65);max-width:420px;margin:0}
.bp-crm .bp-hero-prompts{display:flex;flex-direction:column;justify-content:center;gap:8px}
.bp-crm .bp-hero-prompt{text-align:left;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);
  color:#fff;border-radius:10px;padding:12px 14px;font-size:13px;font-weight:600;transition:background .15s var(--ease)}
.bp-crm .bp-hero-prompt:hover{background:rgba(255,255,255,.15)}
@media(max-width:820px){.bp-crm .bp-hero{grid-template-columns:1fr}}
@media(max-width:480px){.bp-crm .bp-hero-actions{flex-direction:column;align-items:stretch}.bp-crm .bp-hero-actions .btn{width:100%}}
.bp-crm .bp-metrics{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px;margin-top:10px}
.bp-crm .bp-metric{text-align:left;background:var(--surf);border:1px solid var(--hair);border-radius:14px;
  padding:16px 18px;box-shadow:var(--e1);display:flex;flex-direction:column;gap:6px;
  transition:box-shadow .18s var(--ease),transform .18s var(--ease)}
.bp-crm .bp-metric:hover{transform:translateY(-1px);box-shadow:var(--e2)}
.bp-crm .bp-metric .l{font-size:12px;color:var(--mut);font-weight:600}
.bp-crm .bp-metric .n{font-weight:700;font-size:24px;font-variant-numeric:tabular-nums;color:var(--ink)}

/* Customer workspace tab bar (23 Sep) — the client record's own 12 real
   tabs (Overview through Nan) were a wrapping row of small filter chips,
   reading as noise next to the rest of the redesigned shell. An underline
   tab bar, one scrollable row, matches how the source design treats a
   workspace's own section tabs. Not bp-crm scoped: this is the client
   detail view itself, not a brand override. */
.crm-worktabs{display:flex;gap:4px;border-bottom:1px solid var(--hair);margin:8px 0 16px;overflow-x:auto}
.crm-worktabs button{border:0;border-radius:0;background:transparent;padding:10px 14px;
  font-size:13px;font-weight:600;color:var(--mut);border-bottom:2px solid transparent;
  white-space:nowrap;flex:none;transition:color .15s var(--ease),border-color .15s var(--ease)}
.crm-worktabs button:hover{color:var(--ink)}
.crm-worktabs button.active{color:var(--genie-950);border-bottom-color:var(--genie-950)}
.crm-worktabs button:focus-visible{outline:2px solid var(--genie);outline-offset:-2px}
/* A mobile current-section <select> replaces the scrollable tab row below
   the shell's own phone cutoff (CRM layout audit, 30 Sep 2026 — UX08): the
   12-tab row's current selection could scroll fully off-screen with no
   indicator anywhere else that it was still selected. */
.crm-worktabs-mobile{display:none}
@media(max-width:820px){.crm-worktabs-mobile{display:block;margin:8px 0 12px}.crm-worktabs{display:none}}

/* Maintenance jobs desk (pub/app/shared/partner.js) — the provider's own login
   (role 'partner') and the CRM's Maintenance jobs screen. The partner screen
   has no dock, so .main drops its dock gutter there. */
.main.desk-main{padding:28px 32px 90px;max-width:1120px;margin:0 auto}
.desk-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.desk-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;margin-top:16px}
.desk-job{cursor:pointer}
.desk-job.late{box-shadow:inset 0 0 0 2px var(--red)}
.desk-job:focus-visible{outline:2px solid var(--genie);outline-offset:2px}
.desk-actions{display:flex;flex-wrap:wrap;gap:8px}
.desk-alert{display:flex;align-items:center;gap:10px;margin-top:14px;padding:10px 14px;border-radius:12px;
  background:var(--redbg);color:var(--red);font-size:13.5px}
@media(max-width:560px){
  .main.desk-main{padding:14px 14px 80px}
  .desk-list{grid-template-columns:1fr}
  .desk-form .frow{grid-template-columns:1fr}
  .desk-actions .btn{flex:1 1 auto}
}

/* Deal spine (0228, pub/app/crm/deal.js) — the Pipeline board and the Deal page. Every
   colour is an existing token; the lanes scroll sideways inside their own container. */
.dl-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:4px 0 12px}
.dl-toolbar .sp{flex:1}
.dl-people{position:relative}
.dl-people-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:30;min-width:240px;max-height:360px;overflow-y:auto;background:var(--surf);border-radius:var(--r-m);box-shadow:var(--e3,var(--e2));padding:8px}
.dl-people-act{display:flex;gap:6px;padding:0 0 6px;margin-bottom:4px;border-bottom:1px solid var(--hair2)}
.dl-people-row{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:8px;font-size:13.5px;cursor:pointer}
.dl-people-row:hover{background:var(--surf2)}
.dl-select{height:36px;border:none;border-radius:999px;background:var(--surf);box-shadow:var(--e1);padding:0 12px;font:inherit;font-size:13.5px;color:var(--ink);max-width:100%}
.dl-search{position:relative;display:inline-flex;align-items:center}
.dl-search input{width:240px;padding-right:30px}
.dl-search-x{position:absolute;right:8px;background:none;border:none;cursor:pointer;color:var(--mut);font-size:12px;padding:2px 4px}
.dl-select.sm{height:30px;font-size:12px;padding:0 10px;box-shadow:inset 0 0 0 1px var(--hair2)}
.dl-board{display:flex;align-items:flex-start;gap:12px;overflow-x:auto;padding:4px 2px 18px;-webkit-overflow-scrolling:touch}
/* Pipeline board: a dock-style scrollbar above the lanes as well as below, so it's clear
   there are more columns past Finance. No scrollbar-width here: in Chrome it overrides
   these rules and the bars go back to hiding on a Mac. */
.dl-board-top{overflow-x:auto;overflow-y:hidden;height:10px;margin:0 2px 6px}
.dl-board-top>div{height:1px}
.dl-board-top::-webkit-scrollbar,.dl-board::-webkit-scrollbar{height:6px}
.dl-board-top::-webkit-scrollbar-thumb,.dl-board::-webkit-scrollbar-thumb{background:var(--hair);border-radius:6px}
/* Lane snapping is phone-only: on desktop the snap fought the two-bar sync (the board
   re-snapped, the top bar echoed it back) and the mouse wheel stopped moving the board. */
@media(max-width:820px){.dl-board-top{display:none}.dl-board{scroll-snap-type:x proximity}}
/* Order desk (3 Nov 2026): the board reuses the Pipeline lanes; the order panel reads as three numbered steps */
.od-lane{min-width:210px}
.od-step{margin-top:14px;border:1px solid var(--hair);border-radius:14px;padding:12px 14px}
.od-step.now{border-color:var(--genie);box-shadow:0 0 0 1px var(--genie) inset}
.od-step-h{display:flex;align-items:center;gap:10px}
.od-n{width:24px;height:24px;border-radius:999px;display:grid;place-items:center;font-size:12px;font-weight:750;background:var(--surf2);color:var(--ink2);flex:0 0 auto}
.od-step.now .od-n{background:var(--genie);color:#fff}.od-step.done .od-n{background:var(--ok);color:#fff}
.od-step-b{margin-top:8px}
.od-track{display:flex;flex-wrap:wrap;gap:6px}
.od-tk{min-height:34px;padding:6px 12px;border-radius:999px;border:1px solid var(--hair);background:var(--surf);font:600 12.5px inherit;color:var(--ink2);cursor:pointer}
.od-tk.past{background:var(--okbg);border-color:transparent;color:var(--ok)}
.od-tk.on{background:var(--genie);border-color:var(--genie);color:#fff}
.od-tk:disabled{opacity:.45;cursor:default}
.od-save{display:flex;gap:8px;margin-top:12px;position:sticky;bottom:-26px;background:var(--surf);padding:10px 0 26px;margin-bottom:-26px;z-index:1}
.od-save+.od-sub{margin-top:34px}
a.btn{text-decoration:none}
.od-sub{border-top:1px solid var(--hair);margin-top:16px;padding-top:12px}
@media(max-width:820px){
  .od-board{flex-direction:column;overflow-x:visible;scroll-snap-type:none}
  .od-board .od-lane{flex:0 0 auto;width:100%}
  .od-bar{flex-wrap:nowrap!important;overflow-x:auto;-webkit-overflow-scrolling:touch;margin-right:-16px!important;padding-right:16px;padding-bottom:2px}
  .od-bar .fchip,.od-bar2 .fchip{flex:0 0 auto;white-space:nowrap}
  .od-bar .sp{display:none}
  .od-bar2 .finput{flex-basis:100%!important;max-width:none!important}
}
/* Dealer portal (0287): a dealer's own orders and contacts, and Bluepoppy's queue of their updates */
.dp-head{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.dp-logo{height:30px;width:auto;flex:0 0 auto}
.dp-tabs{margin-top:16px}
.dp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin-top:14px;align-items:start}
.dp-card{display:block;width:100%;text-align:left;font:inherit;border:none}
.dp-change{padding:10px 0;border-top:1px solid var(--hair)}
.dp-lines{display:grid;gap:2px;margin-top:6px;font-size:12.5px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.dp-updates{margin-bottom:16px}
/* View as this dealer (0302): a god's read-only preview, over the CRM (above its sheets and dock, below toasts) */
.dp-preview{position:fixed;inset:0;z-index:58;background:var(--bg);color:var(--ink);overflow:hidden;animation:fade .2s var(--ease)}
.dp-preview-msg{padding:40px 16px;max-width:560px;margin:0 auto}
.dp-preview-bar{margin-bottom:16px;flex-wrap:wrap;align-items:flex-start}
.dp-preview-bar>.btn{flex:0 0 auto}
.dp-preview .od-tk:disabled{opacity:1}   /* the stage the dealer has reached stays readable; it just can't be pressed */
@media(max-width:820px){
  .dp-logo{height:24px}
  .dp-head{gap:8px 12px}
  .dp-head>div{order:3;flex:1 1 100%!important}
  .dp-head>.btn{margin-left:auto}
  .dp-grid{grid-template-columns:1fr}
  .dp-change .btn{flex:1 1 auto}
}
/* Renewals waiting (0288): renewal deals not yet in Enquiries, on the Renewals screen */
.rw-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;margin-top:12px;align-items:start}
.rw-card{cursor:default}
@media(max-width:820px){.rw-grid{grid-template-columns:1fr}}
/* Dealer stock that fits a vehicle (0289): next to the live offers in the quote builder and on a Deal */
.stock-match{margin-top:10px;border:1px solid var(--hair);background:var(--surf2);border-radius:12px;padding:10px 12px}
.stock-match-list{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.stock-match-row{display:flex;gap:10px;align-items:flex-start;padding:6px 0;border-top:1px solid var(--hair)}
.stock-match-row:first-child{border-top:none}
/* Send to customer (0291): untick an option to leave it off the quote the customer is sent */
.qw-send{display:flex;align-items:center;gap:8px;margin:12px 16px 0;padding:7px 10px;border-radius:10px;background:var(--surf2);font-size:12.5px;font-weight:600;color:var(--ink2);cursor:pointer}
.qw-send.on{color:var(--ink)}
.qw-send input{width:16px;height:16px;margin:0;accent-color:var(--genie-600,currentColor)}
.qw-option.left-off{opacity:.55}
.qw-option.left-off .qw-send{opacity:1}
/* Lanes share the board's width; below their minimum the board scrolls sideways (phones swipe one at a time) */
.dl-lane{flex:1 1 0;min-width:220px;background:var(--surf2);border-radius:var(--r-m);padding:12px;display:flex;flex-direction:column;gap:10px;scroll-snap-align:start}
.dl-lane.lost{flex:.8 1 0;min-width:180px}
.dl-lane.lost.shut{flex:0 0 150px;min-width:0}
/* Folded screens (12 Oct 2026): quick filters, one stage shown full width, and the
   Funding intake editor's blocks inside a Deal page section (no card in a card). */
.dl-quick{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:-4px 0 12px}
.dl-quick .fchip{height:32px;font-size:12.5px}
.dl-quick .fchip,.dl-quick .btn{flex:0 0 auto;white-space:nowrap}
@media(max-width:820px){.dl-quick{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px;margin-right:-16px;padding-right:16px}}
.dl-notes{font-size:12.5px;color:var(--mut);margin:-6px 0 10px}
.dl-notes>div{display:flex;flex-wrap:wrap;align-items:center;gap:0 6px}
.dl-lane.solo{width:100%;margin-bottom:12px}
.dl-solo{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));gap:10px;align-items:start}
.fi-block{padding:12px 0;border-top:1px solid var(--hair)}
.fi-block:first-child{border-top:none;padding-top:0}
.dl-lane-h{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:0 2px}
.dl-lane-h h2{font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:var(--mut);font-weight:650;margin:0}
.dl-lane-h .n{font-weight:600;font-size:15px;color:var(--ink2);font-variant-numeric:tabular-nums}
.dl-card{background:var(--surf);color:var(--ink);border-radius:var(--r-m);box-shadow:var(--e1);padding:12px 13px;font-size:12.5px;line-height:1.45;cursor:pointer;
  border-left:3px solid transparent;transition:box-shadow .16s var(--ease),transform .16s var(--ease)}
.dl-card:hover{box-shadow:var(--e2);transform:translateY(-1px)}
.dl-card:focus-visible{outline:2px solid var(--genie-200);outline-offset:2px}
.dl-card.light-green{border-left-color:var(--ok)} .dl-card.light-amber{border-left-color:var(--gold)} .dl-card.light-red{border-left-color:var(--red)}
.dl-top{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
/* step 3 (0285): one dot per vehicle on a multi-vehicle card, coloured by that vehicle's own stage */
.dl-dots{display:flex;align-items:center;gap:4px;margin-top:6px;font-size:11.5px;color:var(--mut)}
.dl-dots i{width:9px;height:9px;border-radius:999px;flex:0 0 auto;background:var(--hair2)}
.dl-dots i.st-finance{background:var(--gold)}.dl-dots i.st-order{background:var(--genie)}.dl-dots i.st-delivered{background:var(--ok)}
.dl-dots span{margin-left:4px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dl-orders{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:650;line-height:1;color:var(--genie-800);font-variant-numeric:tabular-nums}
.dl-orders-n,.dl-orders-arrow{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;border-radius:999px;background:var(--genie-50)}
.dl-orders-n{padding:0 6px}
.dl-orders-arrow{width:22px;padding:0;border:none;font:inherit;font-size:10px;color:inherit;cursor:pointer}
.dl-orders-arrow:hover{background:var(--genie-100,var(--genie-50))}
.dl-orders-arrow:focus-visible,.dl-order-row:focus-visible{outline:2px solid var(--genie-200);outline-offset:2px}
.dl-orders-list{margin-top:8px;border-top:1px solid var(--hair);padding-top:6px;display:grid;gap:2px;cursor:default}
.dl-order-row{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:baseline;text-align:left;width:100%;font:inherit;font-size:12px;padding:5px 6px;border:none;border-radius:var(--r-s);background:none;color:var(--ink);cursor:pointer}
.dl-order-row:hover{background:var(--surf2)}
.dl-co{font-weight:650;font-size:13.5px;line-height:1.3}
.dl-who{color:var(--mut);font-size:12px}
.dl-av{width:26px;height:26px;border-radius:999px;background:var(--genie-50);color:var(--genie-800);display:inline-grid;place-items:center;font-size:10.5px;font-weight:700;flex:0 0 auto}
.dl-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.dl-tag{display:inline-flex;align-items:center;font-size:11px;line-height:1.3;padding:2px 8px;border-radius:999px;background:var(--surf2);color:var(--ink2);white-space:nowrap;border:none;font-family:inherit}
.dl-card .dl-tag{background:var(--bg)}
.dl-tag.queue{background:var(--goldbg);color:var(--gold);font-weight:650}
.dl-tag.own{background:var(--genie-50);color:var(--genie-800);font-weight:600}
.dl-tag.link{cursor:pointer;font-weight:650;color:var(--ink)}
.dl-pick{border:none;border-radius:999px;background:var(--genie-950);color:#fff;font:inherit;font-size:11.5px;font-weight:650;padding:4px 10px;min-height:28px;cursor:pointer}
.dl-veh{margin:6px 0 0;color:var(--ink2)}
.dl-money{font-weight:650;font-size:15px;font-variant-numeric:tabular-nums}
.dl-light{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;color:var(--mut);white-space:nowrap;font-variant-numeric:tabular-nums}
.dl-light i{width:8px;height:8px;border-radius:999px;display:inline-block}
.dl-light i.green{background:var(--ok)} .dl-light i.amber{background:var(--gold)} .dl-light i.red{background:var(--red)}
.dl-box{margin-top:8px;padding:6px 8px;border-radius:10px;background:var(--surf2);font-size:12px;color:var(--ink2)}
.dl-card .dl-box{background:var(--bg)}
.dl-box b{color:var(--ink)}
.dl-next{margin-top:8px;font-size:12px;font-weight:600;color:var(--genie)}
.dl-next.late,.dl-late{color:var(--red)}
.dl-table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
.dl-table th{text-align:left;padding:10px 12px;font-size:12px;color:var(--mut);font-weight:600}
.dl-table td{padding:9px 12px;border-top:1px solid var(--hair);vertical-align:top}
.dl-table tbody tr{cursor:pointer}
.dl-table tbody tr:hover{background:var(--surf2)}
.dl-banner{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:12px 14px;border-radius:var(--r-m);background:var(--genie-50);color:var(--genie-950);margin:4px 0 12px;font-size:13.5px}
.dl-day{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),1fr));gap:16px;margin:0 0 16px}
/* Deal page */
.dl-head{background:var(--surf);border-radius:var(--r-l);box-shadow:var(--e1);padding:18px 20px;margin-bottom:12px}
.dl-headkv{min-width:240px;max-width:100%;flex:0 1 360px}
.dl-headkv dd{text-align:left}
.dl-edit{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid var(--hair)}
.dl-f{display:flex;flex-direction:column;gap:4px;font-size:12.5px;color:var(--mut)}
.dl-f .finput{height:40px;color:var(--ink)}
.dl-f.wide{grid-column:1/-1}
.dl-check{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink2);align-self:end;min-height:40px}
.dl-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}
.dl-steps{display:grid;grid-template-columns:repeat(6,minmax(96px,1fr));overflow-x:auto;background:var(--surf);border-radius:var(--r-m);box-shadow:var(--e1);margin-bottom:12px}
.dl-step{min-height:44px;padding:10px 8px;font:inherit;font-size:12.5px;text-align:center;border:none;border-right:1px solid var(--hair);background:transparent;color:var(--mut);cursor:pointer}
.dl-step:last-child{border-right:none}
.dl-step:hover{background:var(--surf2)}
.dl-step.done{color:var(--ok);font-weight:600}
.dl-step.now{background:var(--genie-50);color:var(--genie-800);font-weight:700}
.dl-page{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:16px;align-items:start}
@media(max-width:1100px){.dl-page{grid-template-columns:minmax(0,1fr)}}
@media(min-width:1101px){.dl-side{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow-y:auto}}
.dl-sec{background:var(--surf);border-radius:var(--r-m);box-shadow:var(--e1);padding:14px 16px;margin-bottom:12px;min-width:0}
.dl-sec h3{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:var(--mut);font-weight:650;margin:0 0 10px}
.dl-sec .kv dd{text-align:right}
.dl-confirm{box-shadow:inset 0 0 0 2px var(--genie-200),var(--e1)}
.dl-unit{padding:10px 0;border-top:1px solid var(--hair)}
.dl-unit:first-child{border-top:none;padding-top:0}
.dl-units{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.dl-live{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:600;color:var(--ok);letter-spacing:0;text-transform:none}
.dl-live i{width:7px;height:7px;border-radius:999px;background:var(--ok)}
/* the Deal page's orders board (468): this Deal's orders in the Pipeline's columns */
.dl-mini{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(150px,1fr);gap:10px;overflow-x:auto;margin-bottom:12px}
.dl-mini-col{background:var(--surf2);border-radius:var(--r-m);padding:8px;min-width:0;display:flex;flex-direction:column;gap:6px}
.dl-mini-h{display:flex;justify-content:space-between;gap:6px;font-size:12px;font-weight:650;letter-spacing:.04em;text-transform:uppercase;color:var(--mut);font-variant-numeric:tabular-nums}
.dl-mini-card{display:flex;flex-direction:column;gap:2px;text-align:left;font:inherit;font-size:13px;color:inherit;background:var(--surf);border:none;border-left:3px solid var(--hair2);border-radius:var(--r-s,8px);box-shadow:var(--e1);padding:8px 10px;cursor:pointer;min-width:0;overflow-wrap:anywhere}
.dl-mini-card.st-finance{border-left-color:var(--gold)}.dl-mini-card.st-order{border-left-color:var(--genie)}.dl-mini-card.st-delivered{border-left-color:var(--ok)}
.dl-mini-card.on{box-shadow:inset 0 0 0 2px var(--genie-200),var(--e1)}
.dl-mini-card span{font-size:12px}
.dl-mini-empty{font-size:12.5px;color:var(--faint);padding:4px 2px}
/* the Deal page's stages, downwards (2 Nov 2026): one row per Pipeline column, a line joining the dots */
.dl-rail{display:flex;flex-direction:column;margin-bottom:4px}
.dl-stage{display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;position:relative;padding-bottom:12px}
.dl-stage:not(:last-child)::before{content:"";position:absolute;left:13px;top:30px;bottom:0;width:2px;background:var(--hair)}
.dl-stage.done:not(:last-child)::before{background:var(--ok)}
.dl-dot{width:28px;height:28px;border-radius:999px;display:grid;place-items:center;font-size:12px;font-weight:700;background:var(--surf);box-shadow:var(--e1);color:var(--mut);position:relative;z-index:1;font-variant-numeric:tabular-nums}
.dl-stage.done .dl-dot{background:var(--ok);color:#fff;box-shadow:none}
.dl-stage.now .dl-dot{background:var(--genie-800);color:#fff;box-shadow:none}
.dl-stage-card{background:var(--surf);border-radius:var(--r-m);box-shadow:var(--e1);padding:10px 14px;min-width:0}
.dl-stage.now .dl-stage-card{box-shadow:inset 0 0 0 2px var(--genie-200),var(--e1)}
.dl-stage.later:not(.open) .dl-stage-card{background:var(--surf2);box-shadow:none}
.dl-stage-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:28px}
.dl-stage-t{flex:1 1 240px;min-width:0;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;background:none;border:none;padding:0;font:inherit;color:inherit;text-align:left;cursor:pointer}
.dl-stage-n{font-weight:650;font-size:14px}
.dl-stage.later .dl-stage-n{color:var(--ink2)}
.dl-stage-sum{font-size:12.5px;color:var(--mut);overflow-wrap:anywhere}
.dl-stage-b{margin-top:10px}
.dl-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.dl-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
@media(max-width:560px){.dl-grid2,.dl-grid3{grid-template-columns:minmax(0,1fr)}}
.dl-feed{display:flex;flex-direction:column}
.dl-fi{display:flex;gap:10px;padding:9px 0;border-top:1px solid var(--hair)}
.dl-fi:first-child{border-top:none}
.dl-fic{width:24px;height:24px;border-radius:999px;display:grid;place-items:center;background:var(--surf2);color:var(--ink2);flex:0 0 auto}
.dl-fic.email,.dl-fic.sms,.dl-fic.whatsapp,.dl-fic.call{background:var(--genie-50);color:var(--genie-800)}
.dl-ft{font-size:13px;font-weight:600;overflow-wrap:anywhere}
.dl-fb{font-size:12.5px;color:var(--ink2);margin:2px 0;overflow-wrap:anywhere}
[data-mode="night"] .dl-av,[data-mode="night"] .dl-tag.own,[data-mode="night"] .dl-step.now,[data-mode="night"] .dl-banner,
[data-mode="night"] .dl-fic.email,[data-mode="night"] .dl-fic.sms,[data-mode="night"] .dl-fic.whatsapp,[data-mode="night"] .dl-fic.call{background:rgba(143,173,217,.13);color:var(--ink2)}
[data-mode="night"] .dl-card,[data-mode="night"] .dl-sec,[data-mode="night"] .dl-head,[data-mode="night"] .dl-steps,[data-mode="night"] .dl-stage-card{box-shadow:inset 0 0 0 1px var(--hair),var(--e1)}
@media(max-width:560px){
  .dl-lane{flex:0 0 84vw}
  .dl-head{padding:14px}
  .dl-sec{padding:12px}
  .dl-headkv{flex-basis:100%}
}

/* ---------- finance application (0241) ----------
   .fa-*  the customer's page (/finance-application/<token>, finance-application-page.js)
   .fx-*  the staff side on the Deal page (finance-app.js) */
.fa-body{background:var(--bg)}
.fa-page{max-width:720px;margin:0 auto;padding:12px 16px 64px}
.fa-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 -16px;padding:18px 16px;
  background:linear-gradient(160deg,#0A1230,#12213C);color:#fff}
.fa-head svg,.fa-head img{display:block;height:30px;width:auto}
.fa-head-t{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;opacity:.75}
@media(min-width:760px){.fa-page{padding-top:28px}.fa-head{margin:0;border-radius:20px;padding:22px 24px}.fa-head svg,.fa-head img{height:34px}}
.fa-h1{font-size:26px;line-height:1.2;margin:22px 0 8px}
.fa-lead{color:var(--ink2);font-size:15px;margin:0 0 10px}
.fa-am{font-size:13.5px;color:var(--ink2);margin:6px 0 12px}
.fa-legend .prov.tint .d,.fa-lbl .prov.tint .d{background:var(--genie-400)}
.fa-legend{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:4px 0 16px}
.fa-card{background:var(--surf);border-radius:var(--r-l);box-shadow:var(--e1);padding:18px;margin-bottom:16px;min-width:0}
.fa-h2{display:flex;align-items:center;gap:10px;font-size:17px;margin:0 0 12px}
.fa-n{width:26px;height:26px;border-radius:999px;background:var(--genie-50);color:var(--genie-800);display:grid;place-items:center;font-size:13px;font-weight:750;flex:0 0 auto}
.fa-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}
@media(max-width:560px){.fa-grid{grid-template-columns:minmax(0,1fr)}}
.fa-f{min-width:0}
.fa-f.wide{grid-column:1/-1}
.fa-lbl{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12.5px;font-weight:650;color:var(--ink2);margin:0 0 6px}
.fa-opt{font-weight:500;color:var(--faint);font-size:12px}
.fa-was{font-size:12px;color:var(--gold);margin:-2px 0 6px}
/* 2 Nov 2026: a prefilled answer Companies House now shows differently from the customer's last application */
.fa-upd{font-size:12px;font-weight:600;color:var(--gold);background:var(--goldbg);border-radius:8px;padding:4px 8px;margin:0 0 6px}
.fa-new{display:inline-block;margin-left:6px;font-size:11px;font-weight:700;color:var(--gold);background:var(--goldbg);border-radius:999px;padding:1px 8px}
.fa-lastnote{margin:10px 0 4px;padding:12px 14px;border-radius:12px;background:var(--goldbg);color:var(--ink2);font-size:13.5px;line-height:1.5}
.fa-static{height:44px;display:flex;align-items:center;font-weight:600}
.fa-chips{display:flex;gap:8px;flex-wrap:wrap}
.fa-chips .fchip{height:auto;min-height:38px;padding:8px 14px;font-size:13.5px}
.finput.bad{box-shadow:0 0 0 2px var(--red)}
.fa-err{color:var(--red);font-size:12.5px;font-weight:600;margin-top:5px}
.fa-hint{display:flex;gap:6px;align-items:center;flex-wrap:wrap;font-size:12.5px;color:var(--ink2);margin-top:6px}
/* finance application: postcode finder + day-only date of birth (14 Oct 2026) */
.fa-pcfind{margin-bottom:12px}
.fa-pcrow{display:flex;gap:8px;align-items:center}
.fa-pcrow .finput{flex:1;min-width:0}
.fa-pcrow .btn{flex:none;height:44px}
.fa-pclist{display:flex;flex-direction:column;margin-top:8px;border:1px solid var(--hair);border-radius:var(--r-s);overflow:hidden;max-height:280px;overflow-y:auto;background:var(--surf)}
.fa-pcitem{appearance:none;border:0;border-top:1px solid var(--hair);background:transparent;color:var(--ink);text-align:left;padding:12px 14px;font:inherit;font-size:14px;cursor:pointer;min-height:44px}
.fa-pcitem:first-child{border-top:0}
.fa-pcitem:hover,.fa-pcitem:focus-visible{background:var(--surf2);outline:none}
.fa-pcnone{color:var(--mut);font-size:13px}
.fa-dobrow{display:flex;gap:10px;align-items:center}
.fa-dobrow select{width:96px;flex:none}
.fa-dobmy{font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.fa-link{appearance:none;border:0;background:none;padding:0;color:var(--genie);font:inherit;font-size:12.5px;text-decoration:underline;cursor:pointer}
.fa-note{font-size:13px;margin:0 0 10px}
.fa-sub{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mut);margin:10px 0 8px}
.fa-row{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.fa-person{border-top:1px solid var(--hair);padding:14px 0}
.fa-person:first-of-type{border-top:none;padding-top:4px}
.fa-addrcard{background:var(--bg);border-radius:var(--r-s);padding:12px;margin-bottom:10px}
.fa-addr{margin-bottom:6px}
.fa-cover{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:6px 0}
.fa-check{display:flex;gap:10px;align-items:center;font-size:14px;margin:12px 0 4px;cursor:pointer}
.fa-check.top{align-items:flex-start;line-height:1.45}
.fa-check input{width:20px;height:20px;flex:0 0 auto;accent-color:var(--genie-950);margin-top:1px}
.fa-veh{padding:8px 0;border-top:1px solid var(--hair)} .fa-veh:first-of-type{border-top:none}
.fa-veh .kv{margin-top:8px}
.fa-files{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}
.fa-file{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.fa-fname{flex:1;min-width:120px;font-size:13.5px;font-weight:600;overflow-wrap:anywhere}
.fa-upload{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.fa-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.fa-banner-err{background:var(--redbg);color:var(--red);margin-top:12px}
.fa-banner-ok{background:var(--okbg);color:var(--ok);font-weight:600}
.fa-savebar{position:sticky;bottom:10px;margin:8px auto 0;width:max-content;max-width:100%;font-size:12.5px;font-weight:600;padding:6px 14px;border-radius:999px;background:var(--surf);box-shadow:var(--e2);color:var(--mut)}
.fa-savebar.idle{visibility:hidden}
.fa-savebar.error{color:var(--red)}
.fa-sum{margin-top:10px}
.fa-foot{margin-top:26px;padding-top:12px;border-top:1px solid var(--hair);font-size:12px;color:var(--mut)}
.fx-steps{display:flex;flex-direction:column;gap:12px}
.fx-step{border-left:3px solid var(--hair);padding:2px 0 2px 12px}
.fx-step.on{border-left-color:var(--genie)}
.fx-step.done{border-left-color:var(--ok)}
.fx-step h4{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--mut);font-weight:700;margin:0 0 6px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.fx-copyrow{display:flex;gap:8px;align-items:center;padding:6px 0;border-top:1px solid var(--hair);font-size:13px}
.fx-copyrow .k{color:var(--mut);flex:0 0 38%;min-width:0}
.fx-copyrow .v{flex:1;min-width:0;font-weight:600;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.fx-warn{background:var(--goldbg);color:var(--gold);border-radius:var(--r-s);padding:10px 12px;font-size:13px;margin:6px 0}
@media(max-width:560px){.fx-copyrow{flex-wrap:wrap}.fx-copyrow .k{flex-basis:100%}}

/* Genius docked bar + voice picker (14 Oct 2026) */
.gdock{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:35;width:min(720px,calc(100% - 24px));display:flex;align-items:center;gap:6px;background:var(--surf);border-radius:999px;box-shadow:var(--e3);padding:6px 8px 6px 6px;animation:fade .2s var(--ease)}
@media(max-width:820px){.gdock{bottom:calc(84px + env(safe-area-inset-bottom,0px))}}
.gdock-main{flex:1;min-width:0;display:flex;align-items:center;gap:10px;border:0;background:transparent;text-align:left;font:inherit;color:var(--ink);cursor:pointer;padding:4px 6px;min-height:44px}
.gdock-main .spark{color:var(--genie);display:grid;place-items:center;flex:0 0 auto}
.gdock-main .spark svg{width:20px;height:20px}
.gdock-text{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:14px;line-height:1.35}
.gdock .mic-btn{width:44px;height:44px;flex:0 0 auto;border-radius:999px;border:none;background:var(--surf2);color:var(--ink);display:grid;place-items:center;cursor:pointer}
.gdock .mic-btn svg{width:20px;height:20px}
.gdock .mic-btn.on{color:var(--red);animation:breathe 1.1s ease-in-out infinite}
.gvoice{height:32px;max-width:150px;border:1px solid var(--hair);border-radius:999px;background:var(--surf);color:var(--ink2);font:inherit;font-size:12.5px;padding:0 8px}
/* Genius panel header (14 Oct 2026: on a phone the title was squeezed by the controls beside it) */
.ghead{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
.ghead-top{display:flex;align-items:center;gap:10px}
.ghead-title{flex:1;min-width:0;font-weight:600;font-size:16px}
.ghead-sub{font-size:12.5px;line-height:1.45}
.ghead-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ghead-tools .sp{flex:1}
/* Genius listening: live words + a moving wave (14 Oct 2026 — "so that you know it can hear you") */
.glisten{display:flex;align-items:center;gap:10px;margin-top:16px;padding:10px 14px;border-radius:var(--r-l);background:var(--genie-50);color:var(--ink);font-size:15px;line-height:1.35;min-height:44px}
.glisten-text{flex:1;min-width:0;overflow-wrap:anywhere}
.gwave{display:inline-flex;align-items:center;gap:3px;height:22px;flex:0 0 auto}
.gwave i{display:block;width:3px;height:6px;border-radius:2px;background:var(--genie);animation:gwave 0.9s ease-in-out infinite}
.gwave i:nth-child(2){animation-delay:.12s}.gwave i:nth-child(3){animation-delay:.24s}.gwave i:nth-child(4){animation-delay:.36s}.gwave i:nth-child(5){animation-delay:.48s}
@keyframes gwave{0%,100%{height:5px}50%{height:22px}}
.gthinking{display:inline-flex;align-items:baseline;gap:2px;color:var(--ink2)}
.gdots{display:inline-flex;gap:2px;margin-left:2px}
.gdots i{display:block;width:4px;height:4px;border-radius:50%;background:currentColor;animation:gdot 1.2s ease-in-out infinite}
.gdots i:nth-child(2){animation-delay:.15s}.gdots i:nth-child(3){animation-delay:.3s}
@keyframes gdot{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}
@media (prefers-reduced-motion:reduce){.gwave i,.gdots i{animation:none}.gwave i{height:12px}}

/* A customer's name that opens the customer (crm-client-link.js). Reads as text in a row,
   shows it's a link on hover/focus. */
.client-link{color:inherit;text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 35%,transparent);text-underline-offset:3px;cursor:pointer;border-radius:3px}
.client-link:hover,.client-link:focus-visible{color:var(--genie,#1350a9);text-decoration-color:currentColor}

/* The CRM's own phone — calls through the computer (pub/app/crm/softphone.js, 0257) */
.softphone{position:fixed;right:20px;bottom:20px;z-index:60;width:300px;max-width:calc(100vw - 32px);
  background:var(--surf);color:var(--ink);border:1px solid var(--hair);border-radius:var(--r-xl);box-shadow:var(--e3);
  padding:16px 18px;display:flex;flex-direction:column;gap:6px}
.softphone.ringing{border-color:var(--genie-950);animation:softphone-ring 1.2s ease-in-out infinite}
@keyframes softphone-ring{50%{box-shadow:var(--e3),0 0 0 6px var(--hair2)}}
@media (prefers-reduced-motion: reduce){.softphone.ringing{animation:none}}
.softphone-k{font-size:11.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--mut);font-variant-numeric:tabular-nums}
.softphone-who{font-size:16px;font-weight:600;overflow-wrap:anywhere}
.softphone-sub{font-size:12.5px;color:var(--mut);font-variant-numeric:tabular-nums}
.softphone-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
.softphone-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:4px}
.btn.danger{background:var(--red);color:#fff}

/* The CRM's comms & diary dock (pub/app/crm/crm-dock.js) — pill bottom-left, clear of the sidebar
   (--bp-sidebar-w 264px) and the softphone (bottom-right); the panel is dragged by its title bar.
   Under drawers, sheets and toasts (z 50–60), over the sidebar and top bar. */
.crmdock-pill{position:fixed;left:calc(264px + 20px);bottom:20px;z-index:46;display:flex;align-items:center;gap:8px;
  background:var(--surf);color:var(--ink);border:1px solid var(--hair);border-radius:999px;box-shadow:var(--e3);
  padding:8px 12px 8px 12px;font:inherit;font-size:13px;font-weight:650;cursor:pointer}
.crmdock-pill[aria-expanded="true"]{border-color:var(--genie-950)}
.crmdock-n{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--red);color:#fff;
  font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;font-variant-numeric:tabular-nums}
.crmdock-panel{position:fixed;z-index:46;width:340px;max-width:calc(100vw - 16px);max-height:min(460px,calc(100vh - 16px));
  display:flex;flex-direction:column;background:var(--surf);color:var(--ink);border:1px solid var(--hair);
  border-radius:var(--r-xl);box-shadow:var(--e3);overflow:hidden}
/* While the dock is being dragged nothing on the page can be selected */
html.crmdock-dragging,html.crmdock-dragging *{user-select:none;-webkit-user-select:none;cursor:move}
.crmdock-head{display:flex;align-items:center;gap:6px;padding:8px 8px 8px 12px;border-bottom:1px solid var(--hair);cursor:move;touch-action:none}
.crmdock-head:focus-visible{outline:2px solid var(--genie-950);outline-offset:-2px}
.crmdock-grip{color:var(--faint);font-size:14px}
.crmdock-tabs{display:flex;gap:4px}
.crmdock-tab{border:none;background:transparent;color:var(--mut);font:inherit;font-size:12.5px;font-weight:650;padding:6px 12px;border-radius:999px;cursor:pointer}
.crmdock-tab.on{background:var(--genie-950);color:#fff}
.crmdock-x{margin-left:auto;border:none;background:transparent;color:var(--mut);padding:6px;border-radius:999px;cursor:pointer;display:flex}
.crmdock-x:hover{background:var(--surf2);color:var(--ink)}
.crmdock-body{flex:1 1 auto;min-height:0;overflow:auto;padding:2px 14px 6px}
.crmdock-row{display:block;width:100%;min-width:0;text-align:left;background:none;border:none;border-bottom:1px solid var(--hair);
  padding:9px 0;font:inherit;color:inherit;cursor:pointer}
.crmdock-row:last-child{border-bottom:none}
.crmdock-row:hover .crmdock-t,.crmdock-row:focus-visible .crmdock-t{text-decoration:underline}
.crmdock-meta{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--mut);font-variant-numeric:tabular-nums}
.crmdock-chip{height:20px;font-size:11px}
.crmdock-sp{flex:1}
.crmdock-t{font-size:13.5px;font-weight:600;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crmdock-sub{font-size:12.5px;color:var(--mut);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crmdock-day{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--mut);margin:12px 0 0}
.crmdock-empty,.crmdock-more{font-size:12.5px;padding:12px 0}
.crmdock-foot{display:flex;align-items:center;gap:8px;padding:8px 12px;border-top:1px solid var(--hair)}
@media (max-width:820px),(pointer:coarse){.crmdock-pill,.crmdock-panel{display:none}}
