
  /* --rail (the left-nav background): went through three tries. First
     #0A1D5E — an arbitrary navy. Then #0F273D — darkened from --miami/Club
     Blau, still wrong: the brand sheet marks Club Blau "Function only," not
     a field color. Then #1F2956 (944 Cobalt Blue Metallic) — the sheet's
     own line for this exact use, "House dark. The oval. Rails, bands,
     footers." That was the brand-book-correct answer, but the call on the
     table was Parchment (creme) all along — a deliberate, explicit
     departure from the book's own rail guidance, chosen for how it reads,
     not because the book prescribes it. --voodoo (#1F2956) is untouched
     and still the icon-accent ink; only --rail/--rail-txt/--rail-on move.
     --rail-txt and --rail-on are still sourced from the sheet rather than
     invented: Azure Blue 356 #2E3A4C ("Captions, muted labels, second
     surface") for the resting nav-label ink, Mamba Black Metallic #393B44
     ("All type. The mark on light.") for headers/active text/the member
     row — both computed at 8.4:1+ contrast against #E7E0D0. Dark-mode
     --rail stays its own dark navy and is unaffected by any of this — see
     the html[data-theme="dark"] .rail overrides below, which restore the
     old dark-on-dark treatment for every rule this flip touches. */
  :root{
    /* Updated at runtime from the rendered mobile dock. Keeping the fallback
       in CSS means content is still reachable during first paint and in
       browsers without ResizeObserver. */
    --dock-clearance:104px;
    /* bleu-tokens v8 (brand/bleu/bleu-tokens.css). The app's older names
       below map onto these by role; new work reads these names. */

           /* bleu thinking only: "bleu noticed" and the thinking state. Never the logo, text, metrics, success or decoration. */

    /* Chart marks only. --racing is L 0.38 -- right for a money figure on
       white, too dark to read as a line. This pair is checked for lightness
       and CVD separation: deutan dE 26.2, normal dE 27.5. */

    /* --mono used to be Geist Mono — the app's whole "technical readout"
       voice (eyebrow labels, KPI values, stock numbers, table headers,
       prices) ran through it. That's gone at the root: every rule that
       reads var(--mono), and every inline class="mono" in the JS templates
       below, resolves through this one token, so repointing it here — not
       hunting down 49 CSS rules and 15+ template strings individually — is
       what actually gets it out of the app everywhere at once. The name
       stays for now since renaming it would touch just as many call sites
       for a purely cosmetic gain. */

}

  @media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){

        color-scheme:dark;
}}
  *{box-sizing:border-box}
  html,body{margin:0;height:100%}
  /* --serif/--display used to be Fraunces, forced to WONK 0/SOFT 0 here (it
     inherits like font-family) to tame that face's exaggerated ink-trap J —
     which turned out to still be Fraunces' actual resting letterform, not a
     misconfigured axis, and still read as a typo at heading size. Compared
     side by side against real app headlines at real sizes (page titles,
     drawer headers) and replaced outright with Playfair Display: same
     confident editorial weight, but the drama comes from thin/thick stroke
     contrast instead of spurred hooks, so it fits an exotic-car brand's
     register without the J/F complaint. Playfair has no WONK/SOFT axes, so
     that variation-settings line is gone too — it did nothing for --sans
     itself, only for whatever inherited it.
     onbleu v2: Playfair gave way to Instrument Serif 400, the brand's
     editorial serif. It has one weight, so every editorial rule says 400. */
  body{background:var(--bg);color:var(--text);font-family:var(--sans);line-height:1.5;-webkit-font-smoothing:antialiased}
  .mono{font-family:var(--mono);font-variant-numeric:tabular-nums}
  a{color:var(--miami);text-decoration:none}
  .hide{display:none!important}
  .btn{font-family:var(--sans);font-weight:600;font-size:13.5px;border:1px solid var(--miami);background:var(--miami);color:var(--on-miami);border-radius:9px;padding:9px 14px;cursor:pointer;transition:background .13s ease,border-color .13s ease,transform .08s ease,box-shadow .13s ease}
  .btn:hover{background:color-mix(in srgb, var(--miami) 87%, black);border-color:color-mix(in srgb, var(--miami) 87%, black)}
  .btn:active{transform:translateY(1px)}
  .btn:disabled{opacity:.5;cursor:not-allowed;transform:none}
  .btn.sec{background:transparent;border-color:var(--line);color:var(--text)}
  .btn.sec:hover{background:var(--inset);border-color:var(--mut2)}
  .btn.ok{background:var(--racing);border-color:var(--racing)}
  .btn.sm{padding:6px 11px;font-size:12.5px}
  .btn.icon{padding:7px 10px;font-size:14px;line-height:1}
  /* Theme toggle used to be a bare ☾/☀ text glyph swapped via JS — the
     only non-SVG icon in a header full of crisp line icons, so it read as
     a mismatched leftover. Two real SVGs, shown/hidden purely by the
     data-theme attribute already set on <html> (same pattern as the nav
     burger's bar/x swap below), no JS glyph-swap needed anymore. */
  .themeBtn{display:inline-flex;align-items:center;justify-content:center}
  .themeBtn .sunic{display:none}
  .themeBtn .moonic{display:flex}
  html[data-theme="dark"] .themeBtn .sunic{display:flex}
  html[data-theme="dark"] .themeBtn .moonic{display:none}
  .hubctas{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}
  /* font-size held at 16px: iOS Safari zooms the viewport in on focus for
     any text input under 16px and doesn't reliably reset it (same failure
     mode already fixed once for .kpaintrow input, see below) -- this is the
     app-wide default every unscoped input, including the login form,
     inherits, so it needs the same floor. */
  input{font-family:var(--sans);background:var(--surface);border:1px solid var(--field-border);border-radius:9px;color:var(--text);padding:10px 12px;font-size:16px;outline:none;width:100%;transition:border-color .12s ease,box-shadow .12s ease}
  input:focus{border-color:var(--miami);box-shadow:0 0 0 3px var(--e100)}
  /* Keyboard focus, app-wide: every interactive surface gets a visible ring
     for :focus-visible (keyboard/AT users only — mouse clicks don't trigger
     it, so this never adds visual noise to pointer interaction). */
  a:focus-visible,button:focus-visible,.btn:focus-visible,.navi:focus-visible,
  .tab:focus-visible,.tabbtn:focus-visible,.click:focus-visible,
  .row.drill:focus-visible,.dx:focus-visible,
  .dback:focus-visible,[tabindex]:focus-visible{
    outline:2px solid var(--miami);outline-offset:2px;border-radius:6px}

  /* Scrollbars, app-wide: every scrollable panel (nav rail, drawer, search
     results, notifications, DMs, kanban strips, kiosk, autocomplete menus)
     previously fell back to the raw OS scrollbar, which reads as unstyled
     against the app's custom light/dark surfaces. Thin, theme-token-driven
     by default — .rail now shares the page's own light thumb in light mode
     (it's a light surface too), and only gets the light-on-dark thumb back
     in dark mode, where the rail is still genuinely dark. */
  html{scrollbar-width:thin;scrollbar-color:var(--line) transparent}
  ::-webkit-scrollbar{width:10px;height:10px}
  ::-webkit-scrollbar-track{background:transparent}
  ::-webkit-scrollbar-thumb{background:var(--line);border-radius:999px;border:2px solid transparent;background-clip:padding-box}
  ::-webkit-scrollbar-thumb:hover{background:var(--mut2)}
  html[data-theme="dark"] .rail{scrollbar-color:rgba(255,255,255,.16) transparent}
  html[data-theme="dark"] .rail::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16)}
  html[data-theme="dark"] .rail::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.28)}

  /* logo lockup */
  .wm{--wm-h:24px;line-height:1;display:inline-flex;align-items:center}
  /* The wordmark is artwork (brand/bleu), never type: "bleu." with the full
     stop drawn in. Each .wm carries the light-ground variant (Miami, or Ink
     on the customer-facing ink-on-paper pages) and the reversed one; the
     theme shows exactly one. Sized by height (22-24px), width follows. */
  .wm .wmsvg{height:var(--wm-h);width:auto;aspect-ratio:3946/1000;display:block;overflow:visible}
  .wm .wm-d{display:none}
  html[data-theme="dark"] .wm .wm-l{display:none}
  html[data-theme="dark"] .wm .wm-d{display:block}
  /* The rail's own wordmark needs the same light-chrome treatment as the
     login card above, now that the rail itself is a light (Parchment)
     surface in light mode: Club Blau text, voodoo-ink dot — both already
     computed at 3.4:1+/10.5:1 against #E7E0D0. Dark mode's rail stays dark,
     so it keeps the original cream-on-navy wordmark/lime dot. */


  #login,#recover{position:relative;z-index:1;isolation:isolate;min-height:100%;display:flex;align-items:center;justify-content:center;padding:20px}
  /* .lc never had its own position/z-index, so per CSS painting order it sat
     in the "static in-flow content" layer — which paints BEFORE any
     positioned descendant of the same stacking context, .aura's
     position:fixed brushed-texture layer included, regardless of DOM order
     or .aura's z-index:0. The result: the aura's diagonal texture rendered
     ON TOP of the login card, its logo, and the Enter button. Giving .lc its
     own stacking context (matching how #shell/#login/.rail/.topbar already
     sit above .aura via position+z-index) fixes it. Reproduced and verified
     locally with a static render before and after this change. */
  .lc{position:relative;z-index:1;width:100%;max-width:360px;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:28px;box-shadow:var(--shadow)}
  .lc .toprow{display:flex;justify-content:space-between;align-items:flex-start}
  .lc .tag{font-family:var(--serif);letter-spacing:0;font-weight:400;font-size:20px;margin:12px 0 2px}
  .lc p{color:var(--mut);font-size:12.5px;margin:0 0 18px}
  .field{margin-bottom:11px}.field label{display:block;font-size:11px;color:var(--mut);margin-bottom:5px;text-transform:none;letter-spacing:.05em}
  .err{color:var(--carmine);font-size:12.5px;margin-top:10px;min-height:15px}
  .forgot{text-align:center;margin-top:12px}.forgot a{font-size:12px;color:var(--mut)}
  /* Password reset (features/contracts/AUTH_RESET_PRODUCT.md). Every control
     on the two sign-in cards is a 44px target; the text links are buttons
     because they act rather than navigate. */
  .lc .btn,#login input,#recover input{min-height:44px}
  .lc .themeBtn{min-width:44px}
  .lclink{background:none;border:0;font:inherit;font-size:12.5px;color:var(--mut);text-decoration:underline;text-underline-offset:2px;cursor:pointer;min-height:44px;padding:0 10px;border-radius:8px}
  .lclink:disabled{cursor:default;text-decoration:none;opacity:.8}
  .lc .lcnote{font-size:12.5px;color:var(--mut);margin:-6px 0 18px}
  .lc .lcacts{display:flex;flex-direction:column;gap:8px}
  .lc .lcacts .btn{width:100%;justify-content:center}
  .lc .tag:focus{outline:none}
  /* The signed-out entry shares bleu's public brand, not a floating utility card.
     Scoped to #login so recovery and the authenticated workspace stay untouched. */
  #login{min-height:100svh;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);grid-template-rows:auto 1fr auto;gap:48px 80px;padding:32px max(32px,calc((100vw - 1240px)/2));background:var(--bg)}
  /* Login owns its canvas, so body-level grain cannot show through it.
     Static, non-interactive texture preserves form and auth behavior. */
  html:not([data-theme="dark"]) #login{background-color:var(--paper);}
  #login::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.035;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23grain)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");background-repeat:repeat}
  @media(prefers-reduced-transparency:reduce){#login::before{display:none}}
  #login>.aura{display:none}
  .login-brandbar{grid-column:1/-1;display:flex;align-items:center;gap:clamp(24px,4vw,56px);min-height:72px;padding:12px 18px 12px 26px;border:1px solid #e6e9ed;border-radius:18px;background:#fff;box-shadow:0 4px 20px #071a3d06;position:relative;z-index:1;font-family:Arial,Helvetica,sans-serif}
  .login-brandbar .wm{width:82px;flex-shrink:0}
  .login-brandbar .login-logo{display:block;width:82px;height:auto}
  .login-brandbar nav{display:flex;align-items:center;gap:6px;flex:1}
  .login-brandbar nav a{padding:10px 13px;border-radius:8px;color:#4a5362;font-size:13px;font-weight:550;white-space:nowrap}
  .login-brandbar nav a:hover{background:#f0f5fb;text-decoration:none}
  .login-brandbar .login-walkthrough{background:#0a1d42;color:white;border-radius:9px;padding:12px 17px;font-size:12px;gap:14px;white-space:nowrap}
  @media(max-width:1000px){.login-brandbar nav{display:none}.login-brandbar .login-walkthrough{margin-left:auto}}
  @media(max-width:380px){.login-brandbar{padding:10px 14px;gap:12px}.login-brandbar .login-walkthrough{padding:10px;font-size:10px}}
  .login-brandbar a,.login-footer a{color:var(--text);text-decoration:none;font-size:13px;font-weight:600}
  .login-brandbar a,.login-footer a{display:inline-flex;align-items:center;min-height:44px}
  .login-brandbar a:hover,.login-footer a:hover{text-decoration:underline;text-underline-offset:4px}
  .login-story{align-self:center;padding:32px 0 64px;max-width:610px}
  .login-story .login-kicker{font-size:11px;font-weight:700;letter-spacing:.12em;color:var(--miami);text-transform:uppercase;margin:0 0 24px}
  .login-story h2{font:600 clamp(42px,4.5vw,66px)/1.04 var(--sans);letter-spacing:-.055em;margin:0 0 28px;max-width:580px}
  .login-story h2 span{color:var(--miami)}
  .login-story>p{font-size:18px;line-height:1.6;color:var(--mut);max-width:460px;margin:0}
  #login>.lc{align-self:center;justify-self:end;max-width:440px;padding:36px;border-radius:20px;box-shadow:0 16px 64px rgba(7,26,61,.06)}
  #login .lc .toprow{align-items:center;margin-bottom:28px}
  #login .lc .toprow{justify-content:flex-end}
  #login .lc .toprow .wm{display:none}
  #login .login-workspace{position:absolute;top:50px;left:36px;font-size:11px;letter-spacing:.09em;text-transform:uppercase;font-weight:700;color:var(--mut)}
  #login .lc .tag{font:600 30px/1.15 var(--sans);letter-spacing:-.035em;margin:0 0 10px}
  #login .lc p{font-size:14px;margin-bottom:28px}
  #login .field{margin-bottom:18px}
  #login .field label{font-size:13px;font-weight:500;letter-spacing:0;color:var(--text);margin-bottom:8px}
  #login input{min-height:50px}
  #login #loginBtn{min-height:50px;font-size:14px;margin-top:6px}
  #login .forgot{margin-top:8px}
  .login-footer{grid-column:1/-1;display:flex;justify-content:space-between;gap:20px;color:var(--mut);font-size:11px;padding-top:24px;border-top:1px solid var(--line)}
  .login-footer a{font-size:11px;color:var(--mut)}
  @media(max-width:800px){#login{grid-template-columns:1fr;grid-template-rows:auto auto 1fr auto;gap:28px;padding:20px 24px;min-height:100svh}.login-brandbar{padding-bottom:18px}.login-story{padding:10px 0 0;max-width:440px;justify-self:center;width:100%}.login-story .login-kicker{margin-bottom:12px}.login-story h2{font-size:36px;margin-bottom:0}.login-story>p,.login-continuity{display:none}#login>.lc{justify-self:center;align-self:start;padding:28px;max-width:440px}#login .lc .toprow{margin-bottom:20px}.login-footer{padding-top:18px;flex-wrap:wrap}}
  @media(max-width:380px){#login{padding:16px;gap:24px}#login>.lc{padding:22px}.login-story h2{font-size:32px}.login-brandbar .wmsvg{width:88px}}
  @media(max-width:800px){#login .login-workspace{top:42px;left:28px}}
  @media(max-width:380px){#login .login-workspace{top:36px;left:22px}}
  /* Match the public masthead's viewport placement, dimensions, and breakpoints. */
  #login{position:relative;padding-top:128px;grid-template-rows:1fr auto}
  .login-masthead{position:absolute;top:0;left:0;right:0;z-index:60;padding:16px clamp(16px,3vw,48px) 12px;background:white;font-family:var(--sans);color:#071a3d}
  .login-masthead *{box-sizing:border-box}
  .login-brandbar{width:min(100%,1280px);margin:auto;font-family:var(--sans);line-height:1.55}
  .login-brandbar .wm{display:block;min-height:0;line-height:0}
  .login-brandbar .login-logo{width:82px;height:auto}
  .login-site-navigation{display:flex;align-items:center;justify-content:space-between;flex:1;min-width:0;gap:24px}
  .login-brandbar nav{flex:0;gap:6px}
  .login-brandbar nav>a,.login-nav-menu>summary{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:10px 13px;border:0;border-radius:8px;color:#4a5362;font-size:13px;line-height:1.25;font-weight:550;white-space:nowrap;cursor:pointer;list-style:none}
  .login-nav-menu>summary::-webkit-details-marker{display:none}
  .login-nav-menu[open]>summary,.login-nav-menu>summary:hover{background:#f0f5fb;color:#071a3d}
  .login-nav-actions{display:flex;align-items:center;gap:clamp(16px,2vw,28px)}
  .login-brandbar .login-current{gap:5px;color:#4a5362;font-size:13px;font-weight:550;white-space:nowrap}
  .login-brandbar .login-walkthrough{background:#071a3d;font-weight:650;line-height:1.3}
  .login-nav-panel{position:absolute;top:calc(100% + 10px);left:0;right:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:24px;background:white;border:1px solid #e6e9ed;border-radius:18px;box-shadow:0 24px 60px #071a3d1a}
  .login-brandbar .login-nav-panel a{white-space:normal;padding:14px;min-height:48px}
  .login-menu-toggle{display:none}
  .login-new{display:grid;gap:10px;margin-top:24px;padding-top:24px;border-top:1px solid var(--line);font-size:13px;line-height:1.5}
  .login-new>strong{font-size:16px;color:var(--text)}
  .login-new>span{color:var(--mut)}
  .login-new>a{display:flex;align-items:center;justify-content:space-between;min-height:44px;color:var(--miami);font-weight:500;text-decoration:none}
  .login-new>a:hover{text-decoration:underline;text-underline-offset:4px}
  .login-brandbar nav>a,.login-nav-menu>summary,.login-brandbar .login-current{font-weight:500}
  @media(min-width:801px){#login>.lc{margin-right:20px}}
  @media(max-width:1080px){.login-brandbar{gap:20px;padding-left:20px}.login-site-navigation{gap:12px}.login-brandbar nav{gap:0}.login-brandbar nav>a,.login-nav-menu>summary{padding-inline:9px}.login-nav-actions{gap:14px}}
  @media(max-width:880px){.login-masthead{padding:10px 16px}.login-brandbar{justify-content:space-between;min-height:62px;padding:8px 16px;border-radius:14px}.login-brandbar .wm,.login-brandbar .login-logo{width:72px}.login-menu-toggle{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:8px;background:transparent;color:#071a3d;font-size:22px}.login-site-navigation{display:none}.login-site-navigation.is-open{position:absolute;top:calc(100% + 8px);left:0;right:0;display:flex;flex-direction:column;align-items:stretch;max-height:calc(100dvh - 100px);overflow:auto;padding:12px;background:white;border:1px solid #e6e9ed;border-radius:14px;box-shadow:0 20px 40px #071a3d16;gap:0}.login-brandbar nav{display:flex;flex-direction:column;align-items:stretch}.login-brandbar nav>a,.login-nav-menu>summary{display:flex;justify-content:space-between;min-height:48px;padding:14px 12px;font-size:15px}.login-nav-panel{position:static;grid-template-columns:1fr;border:0;box-shadow:none;padding:8px 10px}.login-nav-actions{justify-content:space-between;gap:16px;margin-top:10px;padding:14px 0 2px;border-top:1px solid #e8edf2}.login-brandbar .login-walkthrough{font-size:12px;padding:12px 17px;margin-left:0;white-space:normal}.login-brandbar .login-current{padding-left:12px}#login{padding-top:110px}}
  @media(max-width:800px){#login{grid-template-rows:auto 1fr auto}}
  .pwwrap{position:relative}.pwwrap input{padding-right:68px}
  .pwshow{position:absolute;right:2px;top:50%;transform:translateY(-50%);min-height:44px;min-width:56px;padding:0 12px;border:0;background:transparent;color:var(--miami);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;border-radius:8px}
  .pwreq{font-size:12px;color:var(--mut);margin-top:6px}.pwreq.met{color:var(--racing)}.pwreq.met::before{content:"✓ "}

  /* ---- ambient ground (brand bible §05, motion): one warm light source +
     one fine brushed-metal texture, sat behind the whole shell at z-index 0.
     Applied once here so every view — not just Hub — shares the same quiet
     backdrop; #shell is explicitly layered above it. */
  .aura{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
  .aura .spotlight{position:absolute;top:-18%;left:-8%;width:60vw;height:60vw;max-width:820px;max-height:820px;border-radius:50%;background:radial-gradient(circle, rgba(255,224,160,.16), rgba(255,224,160,0) 68%);animation:auraBreathe 9s ease-in-out infinite}
  .aura .gauge{position:absolute;right:-10%;bottom:-16%;width:44vw;height:44vw;max-width:620px;max-height:620px;border-radius:50%;background:radial-gradient(circle, rgba(var(--racing-rgb),.22), rgba(var(--racing-rgb),0) 70%);animation:auraBreathe 11s ease-in-out infinite 1.5s}
  .aura .brushed{position:absolute;inset:0;opacity:.5;background:repeating-linear-gradient(98deg, var(--card-highlight) 0 1px, transparent 1px 8px)}
  @keyframes auraBreathe{0%,100%{opacity:var(--aura-op)}50%{opacity:calc(var(--aura-op)*.55)}}
  @media (prefers-reduced-motion:reduce){ .aura *,.shine,.sev.crit,.livedot{animation:none!important} }
  #shell{position:relative;z-index:1;isolation:isolate;display:grid;grid-template-columns:230px 1fr;min-height:100%}
  .rail{background:var(--rail);color:var(--rail-txt);padding:20px 14px;display:flex;flex-direction:column;gap:2px;position:sticky;top:0;height:100vh;overflow-y:auto}
  /* The faint corner sheen (a light catching a dark surface) only reads on
     a dark rail — it's invisible, and pointless, on Parchment. Dark mode
     gets it back below. */
  html[data-theme="dark"] .rail{background:radial-gradient(140% 46% at 18% 0%, rgba(255,255,255,.05), transparent 62%), var(--rail)}
  .rail .brand{padding:2px 8px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(8,18,32,.1);margin-bottom:6px}
  .rail .brand .wm{--wm-h:24px}
  .navburger{display:none;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;border:1px solid rgba(8,18,32,.16);background:transparent;color:var(--rail-on);cursor:pointer;flex:0 0 auto;transition:background .15s ease,border-color .15s ease}
  .navburger:hover{background:rgba(8,18,32,.05);border-color:rgba(8,18,32,.26)}
  .navburger svg{width:20px;height:20px}
  .navburger .baric{display:flex}
  .navburger .xic{display:none}
  .rail.navopen .navburger .baric{display:none}
  .rail.navopen .navburger .xic{display:flex}
  .navsec{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:9.5px;letter-spacing:.13em;text-transform:uppercase;color:var(--stone);margin:15px 8px 5px;}
  .navgrp{margin-bottom:2px}
  .grphead{display:flex;align-items:center;gap:9px;padding:8px 8px;margin-top:8px;border-radius:10px;font-size:11.5px;letter-spacing:.02em;font-weight:600;color:var(--rail-on);cursor:pointer;user-select:none;transition:background .15s ease}
  .grphead:hover{background:rgba(8,18,32,.05)}
  .grphead .chip{width:20px;height:20px;border-radius:7px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;transition:transform .15s ease,box-shadow .15s ease}
  .grphead:hover .chip{transform:scale(1.08);box-shadow:0 2px 10px rgba(0,0,0,.18)}
  .grphead .gic{width:16px;height:16px}
  .grphead .grplabel{flex:1}
  .grphead .chev{width:16px;height:16px;color:var(--rail-txt);opacity:.5;transform:rotate(90deg);transition:transform .18s ease}
  .navgrp.closed .grphead .chev{transform:rotate(0)}
  .navgrp.closed .leaves{display:none}
  .leaves{display:flex;flex-direction:column;gap:1px}
  .navi{display:flex;align-items:center;gap:11px;padding:9px 11px 9px 17px;border-radius:10px;font-size:13.5px;color:var(--rail-txt);cursor:pointer;border-left:2px solid transparent;transition:background .14s ease,color .14s ease,border-color .14s ease,transform .14s ease}
  .navi:hover{background:rgba(8,18,32,.05);transform:translateX(1px)}
  .navi.on{background:linear-gradient(90deg,rgba(var(--grp-rgb,8,18,32),.14),rgba(var(--grp-rgb,8,18,32),.04) 70%);color:var(--rail-on);font-weight:600;border-left-color:rgb(var(--grp-rgb,8,18,32))}
  .navi .g{width:16px;flex:0 0 auto;display:flex;align-items:center;justify-content:center}
  .navi .gsvg{width:16px;height:16px;opacity:.8;transition:opacity .14s ease,color .14s ease}
  .navi.on .gsvg{opacity:1;color:rgb(var(--grp-rgb,8,18,32))}
  .rail .spacer{flex:1}
  .rail .me{border-top:1px solid rgba(8,18,32,.12);margin-top:8px;padding-top:12px;font-size:11.5px;color:var(--rail-txt)}
  /* .btn.sec's default border/text (var(--line)/var(--text)) are tuned for
     the page's own #F6F4EF surface, a slightly different light neutral than
     Parchment's #E7E0D0 — close enough to read fine, but this dark-ink
     variant guarantees the contrast rather than assuming it. Dark mode
     keeps the old white-on-navy ghost-button treatment below. */
  .rail .btn.sec{border-color:rgba(8,18,32,.22);color:var(--rail-on);background:rgba(8,18,32,.04)}
  .rail .btn.sec:hover{background:rgba(8,18,32,.08);border-color:rgba(8,18,32,.32)}
  .rail .me .mewrap{display:flex;align-items:center;gap:10px}
  .rail .me .metext{display:flex;flex-direction:column;min-width:0;gap:1px}
  .rail .me b{color:var(--rail-on);display:block;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .rail .me .metext span{font-size:11px;color:var(--rail-txt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
  .rail .me .row{display:flex;gap:8px;margin-top:10px}
  .rail .me .row .btn{flex:1;text-align:center}
  .tabbar{display:none}
  /* Everything above this line assumed the rail was always dark; dark mode
     still is (its own --rail:#060D1A, untouched), so put all the original
     white-on-dark treatment back for it in one place rather than scattering
     data-theme guards through every rule above. */
  html[data-theme="dark"] .rail{--miami:#4DA6FF;--miami-rgb:77,166,255;--amber:#F2C265;--amber-rgb:242,194,101;--racing:#7ED6A1;--racing-rgb:126,214,161;--carmine:#FF8A80;--carmine-rgb:255,138,128;--voodoo:#8FA0E8;--voodoo-rgb:143,160,232;
    --sec-today:#4DA6FF;--sec-today-rgb:77,166,255;--sec-cars:#7ED6A1;--sec-cars-rgb:126,214,161;--sec-people:#C3A6EE;--sec-people-rgb:195,166,238;--sec-money:#F2C265;--sec-money-rgb:242,194,101;--sec-website:#6FD0D8;--sec-website-rgb:111,208,216;--sec-tools:#9FB0CF;--sec-tools-rgb:159,176,207;}
  html[data-theme="dark"] .rail .brand{border-bottom-color:rgba(255,255,255,.07)}
  html[data-theme="dark"] .navburger{border-color:rgba(255,255,255,.14)}
  html[data-theme="dark"] .navburger:hover{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.24)}
  html[data-theme="dark"] .grphead:hover{background:rgba(255,255,255,.055)}
  html[data-theme="dark"] .navi:hover{background:rgba(255,255,255,.055)}
  html[data-theme="dark"] .navi.on{background:linear-gradient(90deg,rgba(var(--grp-rgb,255,255,255),.16),rgba(var(--grp-rgb,255,255,255),.05) 70%);border-left-color:rgb(var(--grp-rgb,255,255,255))}
  html[data-theme="dark"] .navi.on .gsvg{color:rgb(var(--grp-rgb,255,255,255))}
  html[data-theme="dark"] .rail .me{border-top-color:rgba(255,255,255,.1)}
  html[data-theme="dark"] .rail .btn.sec{border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.04)}
  html[data-theme="dark"] .rail .btn.sec:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.34)}

  main{min-width:0;display:flex;flex-direction:column}
  .topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 24px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--bg);z-index:5}
  .topbar .crumb{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--mut)}
  .topbrand{display:none}
  .gstoggle{display:none}
  /* Drawer-only: desktop keeps the header control, so this would be a second
     identical button sitting in the sidebar. */
  .railtheme{display:none}
  /* global search */
  .gsearch{position:relative;flex:1;max-width:520px;margin:0 14px;display:flex;align-items:center}
  .gsearch .gsico{position:absolute;left:11px;font-size:15.5px;color:var(--mut);pointer-events:none}
  .gsi{width:100%;height:36px;padding:0 60px 0 32px;font-size:13.5px;background:var(--surface);border:1px solid var(--field-border);border-radius:10px}
  .gsi:focus{border-color:var(--miami);background:var(--bg)}
  .gsnote{padding:9px 14px 11px;font-size:11.5px;color:var(--mut2);border-top:1px solid var(--line2)}
  /* Scan (VIN/barcode) and voice buttons live inside the search field itself,
     right-aligned same way .gsico anchors the search glass on the left —
     each is feature-detected on load (BarcodeDetector / SpeechRecognition)
     and starts hidden; unsupported browsers just get a plain text box. */
  .gsactions{position:absolute;right:5px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:1px}
  .gsactionbtn{flex:none;width:26px;height:26px;border:none;background:none;border-radius:7px;padding:0;color:var(--mut);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:color .13s ease,background .13s ease}
  .gsactionbtn:hover{color:var(--miami);background:var(--surface)}
  .gsactionbtn.on{color:var(--carmine);background:var(--surface);animation:bnVoicePulse 1.4s ease-in-out infinite}
  @media (prefers-reduced-motion:reduce){.gsactionbtn.on{animation:none}}
  .gsp{position:absolute;top:calc(100% + 8px);left:0;right:0;max-height:72vh;overflow:auto;background:var(--bg);border:1px solid var(--line);border-radius:13px;box-shadow:0 20px 54px rgba(0,0,0,.28);z-index:40;padding:6px}
  .gsgrp{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:10px;letter-spacing:.05em;text-transform:uppercase;color:var(--mut);padding:9px 10px 4px}
  .gsfail{margin:6px 10px;padding:8px 10px;border-radius:9px;background:var(--pill-warn-bg);color:var(--pill-warn-fg);font-size:12.5px}
  .gsrow{display:grid;grid-template-columns:60px 1fr auto;align-items:center;gap:10px;padding:8px 10px;border-radius:9px}
  .gsrow.click{cursor:pointer}
  .gsrow.click:hover{background:var(--inset)}
  .gsmono{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:10px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .gsnm{font-size:13px;color:var(--text);display:flex;flex-direction:column;gap:1px;min-width:0}
  .gsnm .gssub{font-size:11px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .gsn{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:11px;color:var(--mut);text-align:right;white-space:nowrap}
  .gsempty{padding:16px 12px;color:var(--mut);font-size:13px}
  /* Universal Find: the row ↑/↓ is on, the words that matched, and why */
  .gsrow.gsact{background:var(--inset);box-shadow:inset 3px 0 0 var(--miami)}
  .gsnm .gstt{display:flex;align-items:center;gap:6px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .gsnm .gstt .gsttx{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #gsp{-webkit-text-size-adjust:100%;text-size-adjust:100%}
  .gsp mark{background:color-mix(in srgb,var(--miami) 22%,transparent);color:inherit;border-radius:3px;padding:0 1px}
  .gswhy{color:var(--text);font-weight:500}
  .gsdot{color:var(--mut2)}
  .gsstate{padding:10px 12px;color:var(--mut);font-size:12.5px}
  .gsp.busy .gsrow{opacity:.55}
  .gscaution{margin:2px 10px 6px;padding:7px 10px;border-radius:9px;background:var(--pill-warn-bg);color:var(--pill-warn-fg);font-size:12px}
  @media(max-width:860px){.gsearch{max-width:none;margin:0 8px}}
  /* No margin:auto meant a capped-width page (every view's .content tops
     out at 1200px) just hugged the left edge past that point instead of
     centering — on a 27" monitor the sidebar+content sat in a ~650px
     column with roughly two-thirds of the screen left dead. Centering the
     already-capped box costs nothing on any narrower screen, where it's
     already at 100% and margin:auto resolves to 0. */
  .content{padding:32px 36px 60px;max-width:1200px;width:100%;margin:0 auto}
  /* prose measure: sentences stop at a readable line, everything that is
     a row, a grid or a table still uses the whole column. */
  @media (min-width:1000px){
    .content .sub,.content .sit-mean,.content .sowhy,.content .empty,
    .content .allclear-s,.content .csnd,.content .hubstate,.content .nyh-from,
    .content .banner,.content .housesays .nm{max-width:78ch}
    /* An empty state is centred text; capped at 78ch but left in place it was
       centred in the left half of a full-width card ("No open leads." at a
       third of the way across an iPad). Centre the capped box too. */
    .content .empty{margin-left:auto;margin-right:auto}
  }
  h1.view{font-family:var(--serif);letter-spacing:0;font-weight:400;font-size:30px;margin:0 0 4px}
  .sub{color:var(--mut);font-size:13.5px;margin-bottom:20px}
  /* Page-load choreography (mockup parity): every direct child of .content
     fades + rises in on a short stagger instead of popping in instantly.
     #content's innerHTML is fully replaced on every navigation (see go()),
     so this re-triggers naturally on each view visit — no JS needed. Capped
     at the first 6 children so a long view doesn't keep staggering forever;
     anything past that just appears with the 6th's delay. */
  .content > *{opacity:0;transform:translateY(10px);animation:contentrise .55s cubic-bezier(.16,1,.3,1) forwards}
  .content > *:nth-child(1){animation-delay:.02s}
  .content > *:nth-child(2){animation-delay:.08s}
  .content > *:nth-child(3){animation-delay:.14s}
  .content > *:nth-child(4){animation-delay:.2s}
  .content > *:nth-child(n/**/+5){animation-delay:.26s}
  @keyframes contentrise{to{opacity:1;transform:none}}
  @media (prefers-reduced-motion:reduce){ .content > *{animation:none;opacity:1;transform:none} }

  .kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}
  /* Between the mobile breakpoint and 1180px, four fixed columns give each
     tile an 89-169px content box while .kpi .v stays at 27px mono. A 12-digit
     figure needs 160px, so Performance rendered "$213,297,511" as
     "$213,297," and "$38,469,350" as "$38,469,3" — silently truncated, with
     no ellipsis, reading as a number a thousand times smaller. Measured:
     861px needs 15px type to fit four columns, which is not a readable
     number. So the columns give way instead of the type. auto-fit takes the
     row to 3 or 2 tracks exactly where it has to and back to 4 at 1180,
     where nothing changes and every desktop render already verified stays
     as it was. Below 861 the mobile rules below already handle it. */
  @media (min-width:861px) and (max-width:1179px){
    .kpis{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
  }
  .kpi{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px 19px 19px;box-shadow:var(--shadow-sm)}
  .kpi .l{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:10px;letter-spacing:.05em;text-transform:uppercase;color:var(--mut)}
  .kpi .v{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:27px;margin-top:7px;letter-spacing:-.01em;font-weight:500}
  .kpi .v small{font-size:12px;color:var(--mut)}
  .kpi.a .v{color:var(--miami)} .kpi.g .v{color:var(--racing)} .kpi.w .v{color:var(--amber)}
  .kpi.click{cursor:pointer;transition:border-color .12s,box-shadow .12s}
  .kpi.click:hover{border-color:var(--mut2)}
  .kpi.click.on{border-color:var(--miami);box-shadow:0 0 0 2px var(--e100)}

  .card{background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-sm);overflow:hidden;margin-bottom:16px}
  .card.pad{padding:18px}
  /* Print-outs tab: a live, scaled-down render of the actual window card
     (real markup/fonts/QR via iframe srcdoc, not a mock) so the panel
     reads as a product being produced instead of a checkbox settings
     list. 230x168 is 720x528 (the card's own 7in+padding box, at 96dpi)
     scaled to ~.32 -- see windowCardFields()/printoutsTabHTML(). */
  .wcpvrow{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap}
  .wcpreview{width:230px;height:168px;flex:0 0 auto;border-radius:8px;overflow:hidden;border:1px solid var(--line);background:var(--well);}
  .wcpreviewframe{width:720px;height:528px;border:0;transform:scale(.31944);transform-origin:0 0;pointer-events:none;display:block}
  .wcpvbody{flex:1;min-width:180px}
  .grp{padding:11px 16px;font-family:var(--serif);letter-spacing:0;font-weight:400;font-size:14px;color:var(--text);background:transparent;border-bottom:1px solid var(--line)}
  /* The drawer's --shadow-sm is a near-invisible 1px smudge in light mode
     and literally "none" in dark mode (see the dark-theme token block), so
     cards there read as flat, unbordered text blocks. Scoped to #drawer
     only — the shared .card/.grp rules everywhere else in the app are
     untouched — give drawer cards real, theme-aware depth and give each
     card's header a tinted band (matching the .rowh header-row pattern)
     so a section's boundary is obvious at a glance. */
  #drawer .card{border-color:var(--line);box-shadow:0 1px 2px rgba(8,18,32,.06),0 10px 26px -14px rgba(8,18,32,.28)}
  #drawer .grp{background:var(--inset)}
  html[data-theme="dark"] #drawer .card{box-shadow:0 1px 2px rgba(0,0,0,.4),0 12px 30px -14px rgba(0,0,0,.55)}
  .row{display:grid;gap:12px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line2);font-size:13.5px;transition:background .12s ease}
  .row:last-child{border-bottom:none}
  .row.click{cursor:pointer} .row.click:hover{background:var(--e100)}
  .rowh{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:10px;letter-spacing:.05em;text-transform:uppercase;color:var(--mut);background:var(--inset)}
  .rowh:hover{background:var(--inset)}
  .nm{font-weight:600} .submut{color:var(--mut);font-size:12px;margin-top:2px}
  .n{font-family:var(--mono);font-variant-numeric:tabular-nums;text-align:right;font-variant-numeric:tabular-nums}
  /* A customer/party's "Every car" deal history (openPerson/openPartyDrawer,
     pvCarsHTML/pvBarHTML) -- reported live as "very weird... crammed...
     [want it] more well designed... best of the best ux" against a
     screenshot of this exact list. .row/.ivtop/.ivcols are the same dense,
     eyebrow-label styling roughly 15 other tables across the app share
     (Inventory, Payables, Transport, Board's member list...), tuned for
     scanning hundreds of rows fast -- but a person's own deal history is
     usually a handful of cars, read rather than scanned, and felt
     cramped next to that density. #pvbody/#pvbar are already unique ids
     (set by both openPerson()/openPartyDrawer() call sites and by
     sortPeople()'s own re-render), so this scopes to just this one list
     instead of loosening the shared .row/.ivtop classes every other
     table still wants tight. */
  #pvbody .row{padding:16px 16px;gap:16px}
  #pvbody .nm{font-size:14px}
  #pvbody .submut{margin-top:3px;line-height:1.4}
  #pvbody .mono{color:var(--mut2);font-size:12px}
  #pvbody .n{font-size:14px}
  #pvbar{padding:12px 16px}
  #pvbar .ivcols{gap:10px}
  .pill{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;padding:3px 9px;border-radius:999px}
  .pill.ok{background:var(--pill-ok-bg);color:var(--pill-ok-fg)} .pill.warn{background:var(--pill-warn-bg);color:var(--pill-warn-fg)}
  .pill.info{background:var(--pill-info-bg);color:var(--pill-info-fg)} .pill.bad{background:var(--pill-bad-bg);color:var(--pill-bad-fg)}
  .pill.mut{background:var(--inset);color:var(--mut)}
  .pill .dt{width:7px;height:7px;border-radius:50%;background:currentColor;display:inline-block;opacity:.9}
  .pill.ok{--pill-ic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%2F%3E%3Cpath%20d%3D%22m9%2012%202%202%204-4%22%2F%3E%3C%2Fsvg%3E")}
  .pill.warn{--pill-ic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%2F%3E%3Cpath%20d%3D%22M12%206v6l4%202%22%2F%3E%3C%2Fsvg%3E")}
  .pill.bad{--pill-ic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%2F%3E%3Cpath%20d%3D%22M12%208v4%22%2F%3E%3Cpath%20d%3D%22M12%2016h.01%22%2F%3E%3C%2Fsvg%3E")}
  .pill:is(.ok,.warn,.bad):not(:has(.dt,svg,img))::before{content:"";width:12px;height:12px;flex:none;margin-left:-2px;margin-right:-1px;background:currentColor;-webkit-mask:var(--pill-ic) center/contain no-repeat;mask:var(--pill-ic) center/contain no-repeat}
  .tabs{display:flex;gap:6px;margin-bottom:14px;flex-wrap:wrap}
  .tab{font-family:var(--sans);font-weight:600;font-size:12.5px;border:1px solid var(--line);background:var(--surface);color:var(--mut);border-radius:999px;padding:7px 13px;cursor:pointer}
  .tab.on{background:var(--miami);border-color:var(--miami);color:var(--on-miami)}
  .empty{padding:34px 16px;text-align:center;color:var(--mut2);font-size:13.5px}
  .spin{width:16px;height:16px;border-radius:24%;background:#071A3D;display:inline-block;position:relative;vertical-align:-3px;flex:none}
  .spin::after{content:"";position:absolute;inset:30%;border-radius:50%;background:#4DA6FF;animation:spinLoad 1.4s cubic-bezier(.2,.8,.2,1) both,spinBreathe 2.4s ease-in-out 1.6s infinite}
  @keyframes spinLoad{0%{transform:scale(0);opacity:0;background:#4DA6FF}100%{transform:scale(1);opacity:1;background:#4DA6FF}}
  @keyframes spinBreathe{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(.86)}}
  html[data-theme="dark"] .spin{box-shadow:0 0 0 1px #3D5A99}
  @media (prefers-reduced-motion:reduce){.spin::after{animation:none}}
  @keyframes sp{to{transform:rotate(360deg)}}
  .hidden-money{color:var(--mut2);font-style:italic}
  .banner{background:var(--pill-warn-bg);color:var(--pill-warn-fg);border-radius:12px;padding:13px 16px;font-size:13px;margin-bottom:16px}
  /* Design tweak (screenshot feedback): the car drawer's "no check-in on
     file" banner is a routine nudge ("go do this next"), not a data problem
     the way every other .banner call site is (a missing sale date breaking
     a real gross figure, a vendor missing a W-9 before 1099 filing) -- those
     keep the shared warn-orange on purpose, so this gets its own modifier
     rather than recoloring .banner itself. Reuses var(--dot), the app's
     existing neon-lime brand accent (the wordmark dot, the bleu avatar mark,
     the dark-mode tab-bar highlight), through color-mix() -- the same
     opacity-mix technique the tab-bar highlight already uses (line ~1207)
     -- as a two-stop gradient for actual "gradient opacity", not a flat
     tint. margin-top closes the ~2px gap .trackedit's own margin left
     above whatever follows it. */
  /* onbleu Phase 2: a nudge is information, not onbleu's Signal light --
     a quiet inset, no lime gradient. */
  .banner.nudge{margin-top:14px;background:var(--inset);color:var(--text);border:1px solid var(--line)}
  .two{display:grid;grid-template-columns:1fr 1fr;gap:14px}

  /* bars */
  .barwrap{padding:16px 18px}
  .bars{display:flex;align-items:flex-end;gap:10px;height:130px;margin-top:14px}
  .bars .b{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;height:100%}
  .bars .b .bar{width:66%;background:var(--miami);border-radius:5px 5px 0 0;min-height:3px;transition:height .3s}
  .bars .b .bar.dim{background:var(--e100)}
  .bars .b .lab{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:9.5px;color:var(--mut)}
  .bars .b .val{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:9.5px;color:var(--mut);min-height:12px}

  /* drawer */
  #scrim{position:fixed;inset:0;background:rgba(8,18,32,.42);z-index:40}
  #drawer{position:fixed;top:0;right:0;height:100%;width:min(75vw,900px,100%);background:var(--surface);border-left:1px solid var(--line);z-index:41;overflow-y:auto;padding:22px 24px 60px;box-shadow:-12px 0 44px rgba(8,18,32,.18);transform:translateX(0);transition:transform .3s cubic-bezier(.16,1,.3,1)}
  /* .entering is toggled by openDrawer() for exactly one frame on a true
     closed->open transition (not on in-stack content swaps) so the panel
     slides in from off-screen instead of just appearing. */
  #drawer.entering{transform:translateX(100%)}
  #drawer.wide{width:min(920px,92vw)}
  /* Chat panel (DM list + thread): a real header/body/footer column instead
     of one long page that scrolls as a unit — #drawer's own padding+scroll
     is dropped in favor of a flex column where only the middle (messages/
     list) region scrolls, so the composer sits pinned to the true bottom of
     the panel no matter how few messages are in view, and the header never
     scrolls out of reach. Kept as its own .dm variant rather than changing
     #drawer globally, since every other drawer (lead/deal/contact panels)
     still wants the old single-scroll, generous-padding layout. */
  #drawer.dm{display:flex;flex-direction:column;padding:0;overflow:hidden}
  #drawer.dm .dh{flex:none;align-items:center;padding:14px 18px;margin-bottom:0}
  #drawer.dm .ivsearch{flex:none;margin:10px 18px 0}
  #drawer.dm .dmgrouppanel,#drawer.dm .dmpinned{flex:none;margin-left:18px;margin-right:18px}
  #drawer.dm .dmgrouppanel,#drawer.dm .dmpinned{margin-top:10px}
  #drawer.dm .dmmsgs{flex:1 1 auto;min-height:0;max-height:none;margin:0;padding:12px 18px}
  #drawer.dm .dmtyping{flex:none;padding:0 18px 4px}
  /* centred: a staged file's name is a chip, not a box stretched as tall as the photo beside it */
  #drawer.dm #dmFiles{flex:none;margin:0 18px;align-items:center}
  #drawer.dm .dmmodetog{flex:none;margin:12px 18px 0}
  #drawer.dm .dminfobody{flex:1 1 auto;min-height:0;overflow-y:auto;padding:12px 18px}
  #drawer.dm .dmreplybar{flex:none;margin:0 18px}
  /* What a conversation is about: a quiet line under its header */
  .dmabout{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;padding:6px 18px 8px;border-bottom:1px solid var(--line2);font-size:12.5px;min-width:0}
  #drawer.dm .dmabout{flex:none}
  .dmaboutnew{margin:10px 0 0;border:1px solid var(--line2);border-radius:10px;padding:8px 12px}
  .dmaboutk{font-weight:600;color:var(--mut);font-size:11.5px;letter-spacing:.02em}
  .dmaboutit{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%}
  .dmaboutit .ment{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .dmaboutn{color:var(--mut);font-size:11.5px;white-space:nowrap}
  .pmsgrow{padding:0 16px 12px}
  #drawer.dm .dmcompose{flex:none;padding:10px 18px 16px}
  /* Reply preview quote — reuses Board's .replyquote as-is (same "quote +
     jump-to-original" component), just with DM-specific jump wording and a
     legible variant for the blue .dmbub.mine background. */
  #drawer.dm .replyquote.click::after{content:"↓ jump to message"}
  .dmreplybar{display:flex;align-items:center;gap:8px;padding-bottom:8px}
  .dmreplybar .replyquote{flex:1;min-width:0;margin-bottom:0}
  .dmreplybar .dx{margin:0;width:28px;height:28px;font-size:16px}
  .dmbub .replyquote{margin-bottom:6px}
  .dmbub.mine .replyquote{background:rgba(255,255,255,.14);border-left-color:rgba(255,255,255,.65);color:rgba(255,255,255,.9)}
  .dmbub.mine .replyquote.click:hover{background:rgba(255,255,255,.24)}
  /* Conversation info sheet — Media/Links/Members, all sliced from data
     already loaded for the open thread (see dmRenderInfo). */
  .dminfogrid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
  .dminfoimg{display:block;aspect-ratio:1;border-radius:8px;background-color:var(--inset);background-size:cover;background-position:center;border:1px solid var(--line)}
  .dminfofile{display:flex;aspect-ratio:1;align-items:center;justify-content:center;font-size:22px;border-radius:8px;background:var(--inset);border:1px solid var(--line);text-decoration:none;color:var(--mut)}
  .dminfofile svg{width:22px;height:22px}
  .dminfostorage{margin-top:10px;font-size:11.5px;color:var(--mut);text-align:center}
  .dminfolink{display:block;padding:10px 0;border-bottom:1px solid var(--line2);text-decoration:none;color:var(--text)}
  .dminfolink:last-child{border-bottom:0}
  .dminfolinkttl{font-size:13px;font-weight:600;color:var(--miami);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .dminfolinksite{font-size:11px;color:var(--mut);margin-top:2px}
  .dminfomembers{display:grid;grid-template-columns:repeat(3,1fr);gap:14px 4px;text-align:center}
  .dminfomember{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11.5px}
  .dminfomember .bavatar{width:44px!important;height:44px!important;font-size:16px!important}
  #drawer.dm .dmlist,#drawer.dm .dmpicklist{flex:1 1 auto;min-height:0;max-height:none;margin:0;padding:0 18px 14px}
  /* width:100% plus an 18px side margin overflowed the drawer by 36px and
     made Messages the one converted surface that scrolled sideways on a
     phone. In a flex column, stretch already gives the right width. */
  #drawer.dm .btn[data-dmnewopen]{flex:none;margin:14px 18px 0;align-self:stretch}
  /* Header identity block: avatar + name/subtitle on the left, a cluster of
     action icons (mute, group manage, search, close) on the right — the
     name and the icon row used to be crammed onto one line with no visual
     separation, and the 26px serif page-title face (sized for a full page
     header) read oversized for a compact chat header. */
  #drawer.dm .dh h2{font-family:var(--sans);font-size:15.5px;font-weight:700}
  .dhid{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
  .dhacts{display:flex;align-items:center;gap:2px;flex:none}
  .dhacts .dx{margin:0}
  #dresize{position:fixed;top:0;bottom:0;width:10px;margin-left:-5px;z-index:42;cursor:ew-resize;touch-action:none;transition:background .12s ease}
  #dresize:hover,#dresize.active{background:rgba(var(--miami-rgb),.18)}
  #dresize.hide{display:none}
  .dh{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid var(--line2)}
  .dhttl{display:flex;flex-direction:column;gap:1px;min-width:0}
  .dhttl h2{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .dhttl .submut{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:0}
  .dxsearch{width:32px;height:32px;font-size:0;margin:0}
  .dx.dxsearch:hover{transform:none;background:var(--inset);color:var(--miami)}
  .dxsearch.on{background:var(--e100);color:var(--miami)}
  .dh h2{font-family:var(--serif);letter-spacing:0;font-weight:400;font-size:26px;margin:0;line-height:1.1}
  /* Bug fix (screenshot): openFilePreview() reused the plain .dh h2 rule
     above -- the same 26px serif style built for a real title (a car name,
     a customer name), which are normally short. A file name is arbitrary
     and often long ("1370 Universale Record 5_23_25.pdf"), so at 26px
     serif it wrapped to two huge lines that dominated the whole screen.
     Reuses the existing #drawer.dm .dh h2 sans/15.5px convention (the DM
     thread header solves the same "this title can be long" problem) rather
     than inventing a new size. word-break so a long unbroken token (a
     filename with no spaces) still wraps instead of overflowing. */
  .dh.filehead h2{font-family:var(--sans);font-weight:700;font-size:15.5px;line-height:1.35;word-break:break-word}
  .dx{background:none;border:none;color:var(--mut);font-size:26px;cursor:pointer;line-height:1;border-radius:10px;padding:0;width:40px;height:40px;flex:none;display:flex;align-items:center;justify-content:center;margin:-8px -8px 0 0;transition:background .14s ease,color .14s ease,transform .18s ease}
  .dx:hover{background:var(--inset);color:var(--text);transform:rotate(90deg)}
  .dback{background:var(--inset);border:1px solid var(--line);color:var(--text);font-size:20px;cursor:pointer;line-height:1;width:40px;height:40px;border-radius:8px;flex:none;display:flex;align-items:center;justify-content:center;margin-top:2px;transition:border-color .14s ease,transform .14s ease}
  .dback:hover{border-color:var(--miami);transform:translateX(-2px)}
  .dback:hover{border-color:var(--miami);color:var(--miami)}
  .dgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;margin:14px 0}
  .dfield{padding:10px 12px;background:var(--inset);border:1px solid var(--line);border-radius:10px}
  .dfsrc{font-size:11px;font-weight:600;letter-spacing:.04em;color:var(--mut2);margin-left:4px}
  .dfield .k{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:10px;letter-spacing:.05em;text-transform:none;color:var(--mut)}
  .dfield .v{font-size:14px;margin-top:2px}
  .dbig{display:flex;gap:10px;margin:16px 0}
  /* min-width:0 is the actual fix, not the padding/font tweaks below —
     flex items default to a min-width equal to their content's min-content
     size, and an unbroken money string like "$2,588,692" has no natural
     break point, so without this the tile refuses to shrink below the
     string's full width and pushes past the parent .card's overflow:hidden
     edge. Same root cause as the .fchip overflow fix earlier this session,
     just on a flex row instead of a wrapped one. overflow-wrap on .v is
     the fallback for when even the narrowed tile can't fit a long figure —
     it wraps the number onto a second line instead of clipping it. */
  .dbig .c{flex:1;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:13px 14px;box-shadow:var(--shadow-sm)}
  /* inside the car's record card the three figures are one strip on the
     card's own inset, not three more cards */
  .csrec .dbig .c{background:var(--inset);border-color:transparent;box-shadow:none}
  .dbig .c .k{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:9.5px;letter-spacing:.05em;text-transform:none;color:var(--mut)}
  .dbig .c .v{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:22px;margin-top:5px;overflow-wrap:break-word}
  .dbig .c .v.big{font-weight:700}
  .dbig .c .v .pct{font-size:12px;font-weight:600;margin-left:5px;opacity:.85}
  /* Tap-to-edit fields (dfieldEdit/dbigTileEdit): shared by .dfield rows
     (Year/Miles/Color/Transmission/Location) and .dbig .c tiles (Buy/
     Sold), since both already put their value inside a ".v" wrapper.
     .vin is display:none until .editing is toggled on by startFieldEdit
     -- font:inherit is required (not optional) because form controls
     don't inherit font-family/size from their ancestors by default like
     everything else on the page does, so without it the input would
     render in the browser's default UI font instead of matching the
     dfield/tile it's editing. */
  .dfedit{cursor:pointer}
  .dfedit .vdisp{display:inline-flex;align-items:baseline;gap:5px}
  .dfedit .editpen{font-style:normal;font-size:10px;color:var(--mut);opacity:0;transition:opacity .12s ease}
  .dfedit:hover .editpen,.dfedit:focus-within .editpen{opacity:.7}
  .dfedit .vin{display:none;width:100%;box-sizing:border-box;font:inherit;background:var(--surface);border:1px solid var(--miami);border-radius:7px;padding:3px 7px;color:var(--text)}
  .dfedit.editing .vdisp{display:none}
  .dfedit.editing .vin{display:block}
  .link{color:var(--miami);cursor:pointer;text-decoration:none}
  button.link{background:none;border:0;padding:0;font:inherit;line-height:inherit}
  .chiprow{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 2px}
  .note{display:flex;gap:11px;padding:11px 16px;border-bottom:1px solid var(--line2)}
  .note:last-child{border-bottom:0}
  .av{flex:0 0 auto;width:30px;height:30px;border-radius:50%;background:var(--inset);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:10px;font-weight:700;color:var(--mut)}
  .note .nb{flex:1;min-width:0}
  .noteacts{flex:0 0 auto;align-self:flex-start;display:flex;gap:2px}
  .noteact{width:20px;height:20px;border:none;background:none;padding:0;color:var(--mut2);font-size:15.5px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:5px;transition:background .13s ease,color .13s ease}
  .noteact:hover,.noteact:focus-visible{background:var(--inset);color:var(--text)}
  .nbody{font-size:13px;line-height:1.45;word-break:break-word;white-space:pre-wrap}
  /* 16px floor: same iOS Safari zoom-on-focus issue as the base input{}
     rule above and .kpaintrow input further down -- this is the per-car
     note edit box. */
  .noteeditbox textarea{width:100%;min-height:60px;resize:none;font-family:var(--sans);font-size:16px;line-height:1.45;background:var(--inset);border:1px solid var(--line);border-radius:8px;color:var(--text);padding:7px 9px;outline:none;box-sizing:border-box}
  .noteeditbox textarea:focus{border-color:var(--miami);box-shadow:0 0 0 3px var(--e100)}
  .noteeditbar{display:flex;justify-content:flex-end;gap:6px;margin-top:6px}
  .noteeditbar .btn{padding:4px 10px;font-size:11.5px}
  /* Note cards used to live as bare, border-bottom-divided rows inside one
     shared .card — body text on top, byline underneath, nothing to tell one
     note from the next but a hairline. That's the "looks like a blog feed"
     complaint: identical to a WordPress post list. Each note is now its own
     small card (real edges + shadow) in a gapped column (.bfeedlist below),
     and the internal order flips to header-first — avatar/name/time/status
     up top like a chat message, body underneath — so a busy channel reads
     as a stream of distinct events, not a single scrolling article. */
  .bfeedlist{display:flex;flex-direction:column;gap:9px}
  .bfeedlist .empty{background:var(--surface);border:1px dashed var(--line);border-radius:13px;margin:0}
  .bnote{background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--line2);border-radius:6px 12px 12px 6px;padding:11px 13px;box-shadow:var(--shadow-sm);transition:box-shadow .12s,border-color .12s}
  .bnote:hover,.bnote:focus-within{box-shadow:var(--shadow)}
  .bnote.st-done{opacity:.62}
  .bnote.st-done .bbody{text-decoration:line-through;color:var(--mut)}
  .bnote.overdue .bntime.due{color:var(--carmine,#C0392B);font-weight:700}
  .bnhead{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap}
  .bnwho{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 7px;flex:1;min-width:0;padding-top:1px}
  .bnauthor{font-weight:700;font-size:12.5px}
  /* gpt-review §05: "bleu noticed" label for AI-generated Thorns — quiet, not a person name */
  .bnauthor.bnbleu{font-weight:600;color:var(--mut);letter-spacing:.01em}
  .bntime{font-size:11.5px;color:var(--mut)}
  .bnkind{display:inline-flex;align-items:center;gap:3px;font-size:10px;font-weight:700;letter-spacing:.02em;border:1px solid currentColor;border-radius:999px;padding:1px 7px 1px 5px;opacity:.9}
  /* flex:0 0 auto plus a 372px content row pushed 21px past the phone's
     content box. Allowed to shrink and wrap instead. */
  .bnheadright{display:flex;align-items:center;gap:5px;flex:0 1 auto;flex-wrap:wrap;
    margin-left:6px;min-width:0;justify-content:flex-end}
  .bnpin{color:var(--amber);display:inline-flex;align-items:center}
  .bnbody-wrap{margin-top:5px;padding-left:34px}
  .brow{display:flex;gap:10px;align-items:flex-start;justify-content:space-between}
  .bbody{font-size:13.5px;line-height:1.48;flex:1}
  /* 16px floor: same iOS zoom-on-focus fix -- board note edit body. */
  .bedit textarea{width:100%;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--text);font-family:var(--sans);font-size:16px;padding:9px 11px;resize:vertical;min-height:56px}
  .bedit .brow2{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;align-items:center}
  .bedit select,.bedit input[type=datetime-local]{border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--text);font-family:var(--sans);font-size:12px;padding:7px 8px}
  .pin{filter:grayscale(.2)}
  .bmeta{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:6px;font-size:11.5px;color:var(--mut)}
  .bmeta .due{color:var(--amber);font-weight:600}
  .ments{display:inline-flex;flex-wrap:wrap;gap:4px;margin-left:2px}
  .tmtoggle{display:inline-flex;align-items:center;gap:8px;cursor:pointer;user-select:none;min-height:44px;padding:0 4px}
  .tmtoggle input{width:20px;height:20px;accent-color:var(--miami);cursor:pointer}
  .ment{background:var(--e100);color:var(--voodoo);border-radius:999px;padding:1px 8px;font-size:11px;font-weight:600;display:inline-flex;align-items:center;gap:4px}
  .ment.click{cursor:pointer}
  .ment.click:hover{box-shadow:inset 0 0 0 1px currentColor}
  /* a car is an object, not a status: ink on a warm neutral chip (it was
     success-green, the loudest thing on every row) -- onbleu Phase 2 */
  .ment.mcar{color:var(--text);background:color-mix(in srgb, var(--line) 60%, var(--surface))}
  .ment.mperson{padding-left:3px;color:var(--amber)}
  .ment.unresolved{background:var(--inset);color:var(--mut2);font-weight:600}
  .ment.more{background:var(--inset);color:var(--mut2);font-weight:700;cursor:default}
  .bavatar{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:var(--on-miami);font-family:var(--mono);font-variant-numeric:tabular-nums;font-weight:700;line-height:1;flex:none;position:relative;overflow:hidden;}
  .meface{position:relative;border:0;background:none;padding:0;border-radius:50%;flex:none;cursor:default;line-height:0}
  .meface .mecam{display:none}
  .meface.can{cursor:pointer}
  .meface.can .mecam{display:flex;position:absolute;right:-4px;bottom:-4px;width:20px;height:20px;border-radius:50%;background:var(--surface);color:var(--text);align-items:center;justify-content:center;box-shadow:0 0 0 1px var(--line)}
  .meface.can:focus-visible{outline:2px solid var(--accent,#0075E1);outline-offset:2px}
  .bavatar.bemoji{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-weight:400;color:inherit;box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}
  .bavatar .bavimg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
  /* A car's face. In a chip it is a small round photo where the car icon was;
     with no listing photo the icon stays. */
  .cph{display:inline-flex;flex:none}
  .cph img{display:block;width:100%;height:100%;object-fit:cover}
  .rowface{display:flex;align-items:center;gap:10px;min-width:0}
  .rowface>span:last-child{min-width:0}
  .cphrow[data-st="on"],.cphrow[data-st="wait"]{width:44px;height:33px;border-radius:7px;overflow:hidden;background:var(--inset)}
  .cphrow[data-st="none"]{display:none}
  .cphin[data-st="on"]{display:inline-block;width:30px;height:22px;border-radius:5px;overflow:hidden;vertical-align:-5px;margin-right:8px}
  .cphin:not([data-st="on"]){display:none}
  .cphchip[data-st="on"]{width:18px;height:18px;border-radius:50%;overflow:hidden;margin-left:-5px;box-shadow:0 0 0 1px rgba(0,0,0,.06)}
  .ivcimg{display:block;aspect-ratio:16/7;background:var(--inset);overflow:hidden}
  .ivcimg:not([data-st="on"]){display:flex;align-items:center;justify-content:center}
  /* one column on a phone: nothing to line up with, so an unphotographed car
     spends no screen on saying so */
  @media(max-width:640px){.ivcimg:not([data-st="on"]){display:none}}
  .ivcnone{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12px;color:var(--mut2,var(--mut));opacity:.8}
  .ivcard:has(.ivcimg[data-st="on"]) .ivcbody{padding-top:12px}
  .ivcmarque{gap:2px}
  .ivcmk{font-family:var(--display);font-size:clamp(20px,2.1vw,28px);font-weight:400;letter-spacing:0;color:var(--text);opacity:.34;line-height:1.1}
  .ivcnp{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--mut)}
  .ivcimg[data-st="wait"] .ivcnp{visibility:hidden}
  .cshero{flex:none;display:block;width:168px;height:112px;border-radius:14px;overflow:hidden;background:var(--inset);align-self:flex-start}
  #drawer .caracts{margin:14px 0 2px}
  /* On a phone the photo leads the sheet full width, like opening a post,
     and the name gets the whole line instead of 218px beside a stamp. */
  @media(max-width:640px){.csdh:has(>.cshero){flex-wrap:wrap}
    .csdh>.cshero{width:100%;height:auto;aspect-ratio:16/9;border-radius:14px;order:-1;margin-bottom:2px}
    .csdh:has(>.cshero){position:relative}
    .csdh:has(>.cshero)>.csdhb{position:absolute;top:10px;right:10px;margin:0}
    .csdh:has(>.cshero)>.csdhb .dx{margin:0}
    .csdh:has(>.cshero)>.csdhb .dx{background:rgba(255,255,255,.92);border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.18);color:var(--ink);}}
  .cshero img{display:block;width:100%;height:100%;object-fit:cover}
  .bmeta .bavatar{margin-right:1px}
  /* gpt-review §05: reuse the app's own intelligence signifier (the wordmark's
     neon dot, .wm .d / var(--dot)) instead of a random hashed person-avatar
     color for author="Bleu" rows -- makes bleu-generated Thorns visually
     distinct from human posts without inventing a new "AI gradient" motif */
  /* bleu's own mark where bleu speaks: bleu-noticed.svg (Ink tile, Signal dot) */
  .bavatar.bleumark{background:#071A3D;border:0;border-radius:24%}
  .bavatar.bleumark svg{display:block;width:100%;height:100%}
  /* onbleu motion (see onbleuMarkSVG) */
  .obm{display:inline-block;flex:none;vertical-align:middle;border-radius:24%;--obm-ease:cubic-bezier(.2,.8,.2,1)}
  .obm .obm-ripple{opacity:0;transform-box:fill-box;transform-origin:center}
  .obm .obm-light{transform-box:fill-box;transform-origin:center}
  /* opening (brand/bleu/bleu-motion.html): the dot pops on in Signal, settles
     to Miami Night; a long wait breathes the resting blue. Never a spinner. */
  .obm-opening .obm-light{animation:obmLoad 1.4s var(--obm-ease) both,obmBreathe 2.4s ease-in-out 1.6s infinite}
  .obm-thinking .obm-light{animation:obmBreathe 2.4s ease-in-out infinite}
  .obm-noticed .obm-ripple{animation:obmRipple 1.1s ease-out .2s 1 both}
  .obm-noticed .obm-light{animation:obmBlip 1.1s ease-out .2s 1}
  @keyframes obmLoad{0%{transform:scale(0);opacity:0;fill:#4DA6FF}100%{transform:scale(1);opacity:1;fill:#4DA6FF}}
  @keyframes obmBreathe{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(.86)}}
  @keyframes obmRipple{0%{opacity:.8}100%{opacity:0}}
  @keyframes obmBlip{0%{opacity:.55}30%,100%{opacity:1}}
  .obmload{display:flex;align-items:center;justify-content:center;gap:12px;opacity:0;animation:obmAppear .2s ease .18s forwards}
  @keyframes obmAppear{to{opacity:1}}
  .obmlabel{display:inline-flex;align-items:center;gap:7px}
  html[data-theme="dark"] .obm{box-shadow:0 0 0 1px var(--bleu);}
  @media (prefers-reduced-motion:reduce){.obm *{animation:none!important}.obmload{animation:none;opacity:1}}
  html[data-theme="dark"] .bavatar.bleumark{box-shadow:0 0 0 1px #3D5A99}
  .pill.click{cursor:pointer}
  .pill.click:hover{box-shadow:inset 0 0 0 1px currentColor}
  .bkicon{display:inline-flex;vertical-align:-1px}
  .bnote.k-warn{background:rgba(var(--carmine-rgb),.06)}
  .bnote.k-pay{background:rgba(var(--miami-rgb),.06)}
  .bnote.k-assigned{background:rgba(var(--voodoo-rgb),.05)}
  /* ---- board compose / notifications / approvals ---- */
  /* Was opacity:0 by default, revealed only on :hover/:focus-within — fine
     with a mouse, but touch devices have no reliable hover, so on phones
     (a real first-class surface here, see BOARD_MOBILEVIEW) every action
     button — pin/done/reply/attach/edit/delete — was invisible and
     effectively unreachable. Keeping them dimly visible by default and
     brightening on hover/focus works for both input types. */
  .bnact{display:flex;flex-wrap:wrap;align-items:center;gap:4px;min-width:0;max-width:100%;opacity:0;transition:opacity .12s}
  .bnote:hover .bnact,.bnote:focus-within .bnact{opacity:1}
  @media(hover:none){.bnact{opacity:.55}}
  .bnact button{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:6px;border:1px solid transparent;background:transparent;color:var(--mut);cursor:pointer;padding:0}
  .bnact button:hover{color:var(--miami);border-color:var(--line);background:var(--inset)}
  .bnact button.on{color:var(--amber);border-color:var(--amber);background:var(--pill-warn-bg)}
  .bnact select.bnmove{font-family:var(--sans);font-size:10px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--mut);padding:0 3px;height:24px;cursor:pointer;max-width:70px}
  .bnact select.bnmove:hover{border-color:var(--line);background:var(--inset)}
  /* Unlike Move…, this one is a prompt rather than a utility: it only
     appears on notes that have no owner, which is the whole point. */
  .bnact select.bnassign{color:var(--amber);border-color:color-mix(in srgb, var(--amber) 35%, var(--line))}
  .bnact select.bnassign:hover{border-color:var(--amber);background:var(--pill-warn-bg)}
  .replies{margin:8px 0 0 26px;border-left:2px solid var(--line2);padding-left:12px;display:flex;flex-direction:column;gap:8px}
  .replies .bnote{box-shadow:none}
  .repliesToggle{font-size:11px;font-weight:700;color:var(--miami);cursor:pointer;margin-top:6px;display:inline-block}
  .bncl{margin-top:8px}
  .bnclprog{font-size:10px;font-weight:700;color:var(--mut2);letter-spacing:.03em;text-transform:uppercase;margin-bottom:4px}
  .bncli{display:flex;align-items:center;gap:8px;padding:3px 0}
  .bncli input[type=checkbox]{width:15px;height:15px;flex:none;accent-color:var(--miami);cursor:pointer}
  .bnclitxt{font-size:13px;flex:1}
  .bncli.done .bnclitxt{text-decoration:line-through;color:var(--mut)}
  .bncli a{opacity:0;font-size:11px;color:var(--mut);cursor:pointer;flex:none;transition:opacity .12s}
  .bncli:hover a{opacity:1}
  .bncladd{margin-top:2px}
  .bncladd input{width:100%;border:none;background:transparent;color:var(--mut);font-family:var(--sans);font-size:12.5px;padding:3px 0;outline:none}
  .bncladd input:focus{color:var(--text)}
  .bncladd input::placeholder{color:var(--mut2)}
  .bndraft{margin-top:8px}
  .bndraftrow{display:flex;align-items:center;gap:8px;padding:3px 0}
  .bndraftrow input[type=text]{flex:1;border:1px solid var(--line);border-radius:7px;background:transparent;color:var(--text);font-family:var(--sans);font-size:12.5px;padding:5px 8px}
  .bndraftrow a{font-size:11px;color:var(--mut);cursor:pointer;flex:none}
  .bndraftadd{font-size:11.5px;font-weight:700;color:var(--miami);cursor:pointer;display:inline-block;margin-top:2px}
  .composer2{background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:12px 14px;margin-bottom:14px;box-shadow:var(--shadow)}
  /* 16px floor: same iOS zoom-on-focus fix -- the main Board note composer. */
  .composer2 textarea{width:100%;border:1px solid var(--line);border-radius:9px;background:var(--bg2,transparent);color:var(--text);font-family:var(--sans);font-size:16px;padding:9px 11px;resize:vertical;min-height:56px}
  .composer2 .brow2{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px;align-items:center}
  .composer2 select,.composer2 input[type=datetime-local],.composer2 input[type=number]{border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--text);font-family:var(--sans);font-size:12px;padding:7px 8px}
  .composer2 input[type=number]{width:110px}
  #bnMoreBtn.on{color:var(--miami);border-color:var(--miami)}
  #bnVoice.on{color:var(--carmine);border-color:var(--carmine);animation:bnVoicePulse 1.4s ease-in-out infinite}
  @keyframes bnVoicePulse{0%,100%{box-shadow:0 0 0 0 rgba(var(--carmine-rgb),.35)}50%{box-shadow:0 0 0 5px rgba(var(--carmine-rgb),0)}}
  @media (prefers-reduced-motion:reduce){ #bnVoice.on{animation:none} }
  /* Compact icon-only secondary-action toolbar for the Board composer —
     replaces text-labeled pills (attach/Checklist/Voice/+More/AI) so the
     row reads as one tool cluster instead of stacking across several
     rows on mobile. Labels move to title tooltips; Voice keeps a small
     text state ("Listening…") that only shows while active. */
  .c2tools{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
  .c2icon{padding:7px!important;display:inline-flex;align-items:center;justify-content:center;flex:none;line-height:1;gap:0}
  .c2icon svg{width:14px;height:14px;display:block;flex:none}
  .c2icon-dots{font-size:16px;line-height:1;letter-spacing:-1px;font-weight:700}
  .c2icon-lbl{display:none;font-size:10px;font-weight:700;margin-left:4px;white-space:nowrap}
  .c2icon.on .c2icon-lbl{display:inline}
  .composer2 .brow2-more{margin-top:8px;padding-top:8px;border-top:1px dashed var(--line);display:grid;grid-template-columns:1fr 1fr;gap:8px 10px}
  .composer2 .brow2-more select,.composer2 .brow2-more input{width:100%}
  .c2field{display:flex;flex-direction:column;gap:3px;font-size:10px;font-weight:700;color:var(--mut);text-transform:uppercase;letter-spacing:.03em}
  .c2field select,.c2field input{font-size:12.5px;font-weight:400;text-transform:none;letter-spacing:normal;color:var(--text)}
  .spacer2{flex:1}
  .bnhint{font-size:11.5px;color:var(--mut);margin-top:6px;min-height:14px}
  .composer2.replying{border-color:var(--miami);box-shadow:0 0 0 2px var(--e100)}
  .replyquote{font-size:12px;color:var(--mut);background:var(--inset);border-radius:8px;padding:6px 10px;margin-bottom:8px;border-left:3px solid var(--miami)}
  .replyquote.click{cursor:pointer;transition:background .12s}
  .replyquote.click:hover{background:var(--e100)}
  .replyquote.click::after{content:"↓ jump to note";display:block;font-size:10px;color:var(--miami);margin-top:3px;font-weight:600}
  /* Reported live as "this [icon/pill] alignment is driving me nuts" against
     a screenshot of the DM composer: the attach/mic/Send buttons flanking
     the textarea are all explicitly pinned to 38px tall, and so is the
     textarea, yet the textarea sat visibly ~6-7px higher than the buttons.
     Root cause confirmed via getBoundingClientRect() on the live DM
     composer: .mentwrap (the flex child wrapping the textarea + its
     @mention popup) IS 38px-flush with the buttons via align-items:flex-end
     -- but a plain <textarea> is display:inline-block by default, and an
     inline-block's own block-formatting-context parent (this div, which was
     just display:block) reserves baseline/descender space below it -- the
     classic "extra gap under an inline-block" trap. display:flex here
     removes that inline formatting context entirely (the popup is
     position:absolute so it's unaffected either way), collapsing the gap.
     Shared by all three composers that reuse this class (DM, Board, car
     notes), same class the mention-popup fix's own comment already flags
     as reused verbatim across all three -- one fix here covers all three
     call sites instead of patching each composer's textarea individually. */
  .mentwrap{position:relative;display:flex}
  .mentpop{position:absolute;left:0;top:100%;margin-top:4px;z-index:40;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow2,0 8px 24px rgba(0,0,0,.18));min-width:240px;max-width:340px;overflow:hidden}
  .mentopt{padding:7px 11px;font-size:12.5px;cursor:pointer;display:flex;align-items:center;gap:8px}
  .mentopt:hover,.mentopt.sel{background:var(--e100)}
  /* a finger picks a person or a car from a 44px row, not a 32px one */
  @media (pointer:coarse){.mentopt{min-height:44px;box-sizing:border-box}}
  .mentopt .k{font-size:9.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--mut2);font-weight:700;margin-left:auto;flex:none}
  .mentoptic{flex:none;width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;font-size:13px}
  .mentopttxt{display:flex;flex-direction:column;min-width:0;flex:1}
  .mentopttxt .nm{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mentopttxt .sub{font-size:10px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}   /* not the page subtitle's 20px under every option */
  .apcard{border-left:3px solid var(--amber);background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:13px 15px;box-shadow:var(--shadow-sm)}
  .apcard .aphead{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
  .apcard .apamt{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:16px;font-weight:600}
  .apcard .apbtns{display:flex;gap:8px;margin-top:10px}
  /* ---- board: toolbar, kanban columns, attachments ---- */
  .btoolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:14px}
  .btoolbar input[type=search]{font-family:var(--sans);font-size:13px;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:9px;padding:8px 12px;outline:none;min-width:200px;flex:0 1 260px}
  .btoolbar input[type=search]:focus{border-color:var(--miami);box-shadow:0 0 0 3px var(--e100)}
  .bchips{display:flex;flex-wrap:wrap;gap:6px}
  .btoolbar .bchips{display:none}
  .bfiltbtn{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:44px;padding:0 12px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--text);font:inherit;font-size:13.5px;font-weight:600;cursor:pointer}
  .bfiltbtn span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .bfiltbtn.on{border-color:var(--miami);color:var(--miami);background:var(--e100)}
  .bquick{display:inline-flex;align-items:center;min-height:44px;padding:0 13px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--text);font-size:13.5px;font-weight:600;cursor:pointer;white-space:nowrap}
  .bquick.on{background:var(--text);color:var(--bg);border-color:var(--text)}
  .bchip{font-family:var(--sans);font-weight:600;font-size:12px;border:1px solid var(--line);background:var(--surface);color:var(--mut);border-radius:999px;padding:6px 12px;cursor:pointer}
  .bchip.on{background:var(--miami);border-color:var(--miami);color:var(--on-miami)}
  .bwrap{display:flex;margin:0;min-height:60vh}
  /* Sections are a chip row now (.bchipnav). A second navigation column
     inside a page that already has one is architecture on display. */
  .bsidebar{display:none}
  .bsdhead{display:flex;align-items:center;justify-content:space-between;padding:2px 6px 12px}
  .bsdhead .t{font-size:15.5px;font-weight:700}
  .bchanlist{display:flex;flex-direction:column;gap:1px}
  .bchan{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:9px;cursor:pointer;font-size:13.5px}
  .bchan:hover{background:var(--inset)}
  .bchan.on{background:var(--e100);color:var(--voodoo);font-weight:700}
  .bchan .g{opacity:.6;width:16px;text-align:center;flex:0 0 auto}
  .bchan .lbl{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .bchancount{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:11px;color:var(--mut);background:var(--inset);border-radius:999px;padding:2px 7px;flex:0 0 auto}
  .bchan.on .bchancount{background:var(--card);color:var(--miami);}
  .bchancount.warn{color:var(--pill-warn-fg);background:var(--pill-warn-bg);font-weight:700}
  .bsecdivider{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:9.5px;letter-spacing:.13em;text-transform:uppercase;color:var(--mut2);margin:14px 10px 4px}
  .bfeed{flex:1;min-width:0;padding:2px 26px 20px}
  .bfeedhead{display:flex;align-items:baseline;gap:10px;margin-bottom:3px}
  .bfeedhead h2{margin:0;font-size:20px;font-weight:700;letter-spacing:-.01em}
  .bfeedcount{font-size:12.5px;color:var(--mut)}
  .bfeedsub{font-size:12.5px;color:var(--mut);margin-bottom:16px}
  .bmobileback{display:none;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;border:1px solid var(--line);background:var(--surface);color:var(--mut);cursor:pointer;flex:0 0 auto;font-size:16px}
  .bnatt{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
  /* Was a 52px thumbnail — barely bigger than the file-chip icon next to
     it, so a photo attached to a message or note was too small to
     recognize at a glance and the only way to actually see it was to open
     it (which, until the data-fileurl change above, opened a new browser
     tab instead of the in-app preview). Large enough to read as an actual
     photo; the full-size view is still one tap away via openFilePreview. */
  .bnattimg{width:140px;height:140px;border-radius:10px;background-size:cover;background-position:center;border:1px solid var(--line);display:block;cursor:pointer}
  .bnattfile{font-size:11px;color:var(--miami);text-decoration:none;background:var(--inset);border:1px solid var(--line);border-radius:8px;padding:5px 9px;display:inline-block}
  .bnfiles{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
  .bnfilechip{font-size:11px;background:var(--inset);border:1px solid var(--line);border-radius:999px;padding:4px 9px;color:var(--mut);display:inline-block}
  .bnfilechip a{color:var(--mut);margin-left:5px;cursor:pointer;font-weight:700}
  .bnstagedimg{position:relative;display:inline-block;width:56px;height:56px;border-radius:8px;background-size:cover;background-position:center;background-color:var(--inset);border:1px solid var(--line)}
  .bnstagedimg .bnstagedx{position:absolute;top:-6px;right:-6px;width:18px;height:18px;border-radius:50%;background:var(--carmine);color:var(--on-miami);display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;cursor:pointer;text-decoration:none;line-height:1;box-shadow:0 1px 3px rgba(0,0,0,.3);}
  .bcoltoggle{font-size:11.5px;font-weight:700;color:var(--miami);cursor:pointer;display:inline-block;align-self:flex-start;margin-top:2px}
  .empty.small{padding:16px}
  /* A brand-new, empty DM thread used to just say "Say hello." — a bare
     imperative with no context (whose thread is this, who am I about to
     message), more of a stray label than a real empty state. This gives
     it the counterpart's avatar and actually names who the conversation
     is with, the way the rest of the app's empty states do. */
  .dmemptystate{display:flex;flex-direction:column;align-items:center;gap:10px;padding:40px 24px}
  .dmemptystate .dmemptytxt{color:var(--mut);font-size:13px;line-height:1.5}
  .dmemptystate .dmemptytxt b{color:var(--text)}
  .dmemptystate .dmemptysub{display:block;color:var(--mut2);font-size:12px;margin-top:4px}
  @media(max-width:860px){
    html{scroll-padding-bottom:var(--dock-clearance)}
    .bwrap{margin:0;flex-direction:column}
    .bsidebar{width:100%;border-right:none;padding:2px 4px 12px}
    .bfeed{padding:2px 4px 20px}
    .bwrap[data-mobileview="channels"] .bfeed{display:none}
    .bwrap[data-mobileview="feed"] .bsidebar{display:none}
    .bmobileback{display:inline-flex}
  }
  .bell{position:relative}
  .bdot{position:absolute;top:-3px;right:-3px;min-width:15px;height:15px;padding:0 3px;border-radius:999px;background:var(--miami);color:var(--on-miami);font-size:9.5px;font-weight:700;display:flex;align-items:center;justify-content:center;line-height:1}
  .personalbrief{margin:12px;padding:14px 16px;border:1px solid var(--line);border-left:3px solid var(--miami);border-radius:14px;background:var(--surface);color:var(--text);min-width:0}
  .personalbrief-label{font:600 11px/1.5 var(--sans);color:var(--mut);margin-bottom:5px}
  .personalbrief p{font:400 17px/1.65 var(--sans);margin:0;max-width:65ch;overflow-wrap:anywhere}
  .personalbrief-sources{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.personalbrief-source{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 10px;background:var(--surface2,var(--surface));border:1px solid var(--line);border-radius:10px;color:var(--text);font:400 13px/1.4 var(--sans);text-align:left;cursor:pointer;max-width:100%}.personalbrief-source-number{display:grid;place-items:center;flex:0 0 22px;height:22px;border-radius:50%;background:var(--surface);color:var(--miami)}.personalbrief-source-copy{overflow-wrap:anywhere}.personalbrief-source-copy small{display:block;color:var(--mut);margin-top:3px}
  .personalbrief-source:focus-visible{outline:2px solid var(--miami);outline-offset:3px;border-radius:3px}
  .personalbrief-source span{color:var(--mut);font-size:12px}
  #drawer.dm>.personalbrief{flex-shrink:0;max-height:280px;overflow:auto;margin:8px 16px}
  .notifpanel{position:absolute;right:0;top:calc(100% + 8px);width:352px;max-height:440px;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow2,0 10px 30px rgba(0,0,0,.2));z-index:60}
  /* Used to be plain stacked text with cursor:pointer as the only signal
     it did anything — reported live as "you can click, do anything, so
     confused". Now a real 3-column row (icon · title/body/time · chevron)
     matching every other clickable row in the app (.row.drill, .priority),
     so "this opens something" reads the same way here as everywhere else. */
  /* All/Unread tabs + the day-grouped sections below them, replacing what
     used to be one flat list (everything mixed together, no way to see
     only what's unread). .notiftoprow sticks to the top of the panel's own
     scroll box (.notifpanel has overflow:auto directly, so this is a plain
     sticky-in-its-own-scroll-container, not the ancestor-overflow:hidden
     trap .ivtop had to be fixed for). .ngrp labels the Today/Yesterday/
     Earlier sections computed in renderBellPanel() from the real
     created_at, reusing the exact toDateString() idiom dmDayLabel() already
     uses for Messages day dividers. */
  .notiftoprow{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 8px 8px 10px;background:var(--surface);border-bottom:1px solid var(--line2)}
  .notiftabs{display:flex;gap:2px}
  .ntab{border:none;background:transparent;font-family:var(--sans);font-size:12px;font-weight:700;color:var(--mut);padding:6px 11px;border-radius:999px;cursor:pointer;transition:background .12s ease,color .12s ease}
  .ntab:hover{background:var(--inset)}
  .ntab.on{background:var(--miami);color:var(--on-miami)}
  .notiftoprow .link{font-size:11.5px;font-weight:700;white-space:nowrap;padding:0 4px}
  .ngrp{padding:10px 14px 2px;font-family:var(--sans);font-weight:700;font-size:11px;letter-spacing:.02em;color:var(--mut2)}
  .notifrow{display:grid;grid-template-columns:30px 1fr 14px;gap:10px;align-items:flex-start;padding:11px 14px;border-bottom:1px solid var(--line2);cursor:pointer;font-size:12.5px;transition:background .12s ease}
  .notifrow:last-child{border-bottom:0}
  /* The empty-state row and the "Enable/Turn off push" footer row aren't
     real icon+chevron notification rows — reset them back to a plain
     block instead of squeezing their one-line content into a 30px-wide
     grid cell. */
  .notifrow:not(.click){display:block;cursor:default}
  .notifrow.click:hover{background:var(--inset)}
  .notifrow.unread{background:var(--e100)}
  .notifrow.unread.click:hover{background:var(--e100);filter:brightness(.97)}
  .notifrow .chev{align-self:center;color:var(--mut2);font-family:var(--mono);transition:transform .15s ease,color .15s ease}
  .notifrow.click:hover .chev{transform:translateX(3px);color:var(--miami)}
  .nico{width:30px;height:30px;border-radius:9px;display:flex;align-items:center;justify-content:center;flex:none}
  .nbody{position:relative;min-width:0}
  /* The unread dot is now also the real read/unread toggle (a genuine
     action backed by the existing read_at column) instead of a purely
     decorative marker — filled and always visible on an unread row, an
     empty outline that only reveals on hover/focus for a read row so read
     rows stay uncluttered by default. Same "click the dot" idiom most
     inboxes (Gmail included) use for this. */
  .ndot{position:absolute;top:1px;right:-8px;width:12px;height:12px;padding:0;border-radius:50%;background:var(--miami);border:none;cursor:pointer}
  .ndot:hover{transform:scale(1.25)}
  .ndot:focus-visible{outline:none;box-shadow:0 0 0 3px var(--e100)}
  .notifrow:not(.unread) .ndot{background:transparent;border:1.5px solid var(--mut2);opacity:0;transition:opacity .12s ease,transform .12s ease}
  .notifrow:not(.unread):hover .ndot,.notifrow:not(.unread) .ndot:focus-visible{opacity:1}
  .notifrow .ntitle{font-weight:700}
  .notifrow .nbody2{color:var(--mut);margin-top:2px}
  .notifrow .ntime{color:var(--mut2);font-size:10px;margin-top:4px}
  .notifrow .nwhere{color:var(--mut)}
  .apcard.apfocus{box-shadow:0 0 0 2px var(--miami)}
  /* gpt-review §07 readiness strip -- a plain dot+label scan line above
     the editable .trackedit dropdowns, not another row of pills (§12). */
  .readystrip{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;padding:2px 0;font-size:12.5px;color:var(--mut)}
  .readystrip .ri{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
  .readystrip .ri b{color:var(--text);font-weight:600}
  .readystrip .rdot{width:6px;height:6px;border-radius:50%;flex:none}
  /* ---------- VEHICLE SHEET ----------
     An object header, not a title bar: what the car is (name, spec line,
     stock/VIN), what state it is in (lifecycle pill + where it physically
     is), and how ready it is (the readiness strip, moved up out of the
     editing card below). All of it stays on screen on every tab. */
  .csdh{align-items:flex-start;gap:16px}
  .csdh .csid{min-width:0;flex:1}
  .csdh h2{margin:0}
  .csdh .csspec{font-size:13px;color:var(--mut);margin-top:3px;overflow-wrap:anywhere}
  .csdh .csref{margin-top:3px;font-size:11.5px}
  .csdh .csweb{margin-top:4px;font-size:12px;color:var(--mut);display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px}
  .csdh .csweb .sitlink{padding:0}
  /* the deal line: who the car is between, each name a way into them. The
     44px hit box on touch without making the line 44px tall -- the same
     trick the record grid's names use. */
  .csdh .csdeal{margin-top:5px;font-size:13px;color:var(--mut);line-height:1.45;overflow-wrap:anywhere}
  .csdh .csdeal .linkbtn,.csdh .cschk .linkbtn{font-weight:600}
  .csdh .csdeal .csdd{white-space:nowrap}
  @media(pointer:coarse){.csnd .sitlink{margin:-12px 0;vertical-align:middle}}
  @media(pointer:coarse){.csdh .csdeal .linkbtn,.csdh .csweb .linkbtn{min-height:44px;padding:0;margin:-12px 0;display:inline-flex;align-items:center;vertical-align:middle}}
  .csdh .readystrip{margin-top:9px;font-size:12px;gap:5px 14px}
  .csdhb{display:flex;align-items:center;gap:8px;flex:none}
  /* State rides with the name, not off in the corner: "Ferrari F355 ·
     Available · Warehouse" is one sentence about one object. It wraps to its
     own line before the title has to truncate. */
  .cstitle{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px}
  .csstate{display:inline-flex;align-items:baseline;gap:9px;flex-wrap:wrap}
  .csstate .csloc{font-size:12px;color:var(--mut)}
  /* The reason Hub sent you here, restated on the car itself. Same grammar
     as a Hub situation — a claim, then the record it is reading — so the
     two surfaces sound like one product rather than two. */
  .csneeds{border:1px solid var(--line);border-left:3px solid var(--amber);border-radius:12px;background:var(--surface);
    box-shadow:var(--shadow-sm);padding:13px 16px 4px;margin-bottom:12px}
  .csnh{font-size:12px;color:var(--mut);font-weight:600;margin:0 0 9px}
  .csnlist{list-style:none;margin:0;padding:0}
  /* A real <button>, so Tab reaches it and Enter/Space activate it. The
     [data-party]/[data-seller] click delegate is unchanged — this only
     stops the app from putting an interaction on an element a keyboard
     cannot reach. */
  .linkbtn{background:none;border:0;padding:0;font:inherit;text-align:left;color:var(--miami);cursor:pointer}
  .lsknow{display:inline-flex;align-items:center;min-height:44px;font-size:12.5px;margin-top:-4px}
  .linkbtn:hover{text-decoration:underline}
  /* The record card's field grid was eight identically-weighted bordered
     boxes — every fact, from the colour to the seller, framed like a tile.
     Scoped to the car sheet it reads as a properties list instead: the same
     click-to-edit fields, without eight competing frames under the money
     tiles. Deliberately NOT changed globally; the deal and person drawers
     use .dfield in layouts this would not suit. */
  .csrec .dgrid,.dgrid.csrec{gap:0 28px;margin:6px 0 10px}
  .csrec .dfield{padding:9px 0;background:none;border:0;border-bottom:1px solid var(--line2);border-radius:0;
    display:grid;grid-template-columns:104px 1fr;align-items:baseline;gap:12px}
  .csrec .dfield .v{margin-top:0}
  /* the card's edge is the last divider; a rule on the last row drew two */
  .csrec .dfield:last-child{border-bottom:0}
  @media(min-width:861px){.csrec .dfield:nth-last-child(2):nth-child(odd){border-bottom:0}}
  /* a name that opens a person keeps its 44px target without making its
     row half again as tall as every other row */
  .csrec .dfield .linkbtn{min-height:44px;padding:0;margin:-12px 0;display:inline-flex;align-items:center}
  .csneed{display:flex;gap:10px;align-items:flex-start;padding-bottom:11px}
  .csndot{width:6px;height:6px;border-radius:50%;background:var(--amber);flex:none;margin-top:6px}
  .csnt{font-size:14px;font-weight:650;line-height:1.32}
  .csnd{font-size:12.5px;color:var(--mut);margin-top:2px;line-height:1.4}
  .csnmore{padding-bottom:4px}
  .csnmore>summary{font-size:12px;color:var(--mut);cursor:pointer;padding:2px 0 10px;list-style:none}
  .csnmore>summary::-webkit-details-marker{display:none}
  .csnmore>summary::before{content:"▸ ";font-size:9.5px;vertical-align:1px}
  .csnmore[open]>summary::before{content:"▾ "}
  .csnmore>summary:hover{color:var(--text)}
  /* Where this car stands, under its name on every tab: one line that is
     the next step (amber edge) or, with nothing flagged, the car's state
     (quiet edge), then the rest of what needs attention. Same card grammar
     as the needs list it replaces on Overview. */
  .csnow{border:1px solid var(--line);border-left:3px solid var(--line);border-radius:12px;background:var(--surface);
    box-shadow:var(--shadow-sm);padding:12px 16px 1px;margin:2px 0 12px}
  .csnow.hasneed{border-left-color:var(--amber)}
  .csnext{display:flex;gap:12px;align-items:flex-start;padding-bottom:11px}
  .csnlbl{flex:none;min-width:34px;padding-top:2px;font-size:10.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--mut)}
  .csnow.hasneed .csnext .csnlbl{color:var(--pill-warn-fg)}
  .csnbody{min-width:0}
  .csnext .csnt{font-family:var(--serif);font-weight:400;font-size:19px;line-height:1.2;letter-spacing:0}
  .csnrest{border-top:1px solid var(--line2);padding-top:10px}
  /* Who cares about it: people as chips that wrap, each a way into them */
  .cswho{display:flex;flex-wrap:wrap;gap:8px;padding:12px 16px 14px}
  .cswchip{display:inline-flex;align-items:center;gap:9px;min-height:44px;max-width:100%;padding:6px 12px 6px 7px;border:1px solid var(--line);
    border-radius:999px;background:var(--inset);font:inherit;color:var(--text);text-align:left;cursor:pointer}
  .cswchip:hover{border-color:var(--mut2)}
  .cswchip:focus-visible{outline:2px solid var(--miami);outline-offset:2px}
  .cswtx{display:flex;flex-direction:column;min-width:0}
  .cswnm{font-size:13.5px;font-weight:600;line-height:1.2;overflow-wrap:anywhere}
  .cswrole{font-size:11.5px;color:var(--mut);line-height:1.25;overflow-wrap:anywhere}
  .cswmore{align-self:center;padding:0 4px}
  /* What happened: day headings, the record each row came from, and the
     one derived figure set apart and labelled as such */
  .cshappened .grp{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
  .cshappened .csall{font-family:var(--sans);font-size:12.5px;padding:0}
  .csday{padding:10px 16px 2px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mut)}
  .carstory .cssrc{display:block;font-size:11.5px;color:var(--mut);margin-top:1px}
  .csderived{display:flex;gap:8px;align-items:baseline;padding:10px 16px;font-size:12.5px;color:var(--mut);border-bottom:1px solid var(--line2)}
  .csdtag{flex:none;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:1px 6px;border:1px dashed var(--mut2);border-radius:6px;color:var(--mut)}
  .wantadd>summary{font-size:12.5px;color:var(--mut);cursor:pointer;padding:8px 0 0;list-style:none;width:fit-content}
  .wantadd>summary::-webkit-details-marker{display:none}
  .wantadd>summary::before{content:"+ ";font-weight:700}
  .wantadd>summary:hover{color:var(--text)}
  .wantadd[open]>summary{display:none}
  /* On a phone the four readiness items wrap to four lines and push the tabs
     — and everything worth reading — below the fold. The header keeps the
     name, state and spec line there; readiness moves back down next to the
     dropdowns that set it. Both copies are in the DOM, one visible per
     breakpoint; the strip is a handful of spans, not a query. */
  .csdh .readystrip{display:none}
  .trackcard .readystrip{padding:12px 16px 0}
  @media(min-width:641px){
    .csdh .readystrip{display:flex}
    .trackcard .readystrip{display:none}
  }
  @media(max-width:640px){
    .csdh h2{font-size:22px}
    .csdh .csspec{font-size:12.5px}
    .csrec .dfield{grid-template-columns:96px 1fr;gap:10px}
  }
  /* Design pass (live feedback: the raw dropdown grid read as an unstyled
     form floating loose on the drawer background, with no visual grouping
     next to everything around it that's wrapped in a proper .card, native
     OS select chrome giving every field a different height/arrow across
     browsers, and only a colored 1px border to carry the ok/warn/info
     state). Now sits inside .trackcard (a real card, matching Financing/
     the big-tile row right below it) with the readiness strip as that
     card's compact header line. Selects get a custom, consistent chevron
     (appearance:none + an inline SVG so every browser draws the identical
     mark) and a tinted fill for their state instead of just a colored
     border, so "which fields need attention" reads at a glance the same
     way a status pill does elsewhere in the app -- still the exact same
     tmap/setTrack() data and wiring, purely a visual pass. */
  .trackcard{margin-bottom:12px}
  .trackcard>.grp{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 16px}
  .trackedit{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:12px 14px;padding:14px 16px 16px}
  .tk{display:flex;flex-direction:column;gap:6px;min-width:0}
  .tk>span{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--mut2);font-weight:700}
  select.tksel{appearance:none;-webkit-appearance:none;-moz-appearance:none;width:100%;height:38px;font-family:var(--sans);font-size:13px;font-weight:600;border:1px solid var(--line);background-color:var(--surface);background-image:url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"10\" height=\"10\" viewBox=\"0 0 10 10\"><path d=\"M1.5 3.5L5 7l3.5-3.5\" fill=\"none\" stroke=\"%238a857d\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>");background-repeat:no-repeat;background-position:right 11px center;color:var(--text);border-radius:10px;padding:0 30px 0 12px;cursor:pointer;outline:none;transition:border-color .12s ease,background-color .12s ease,box-shadow .12s ease}
  select.tksel:hover{border-color:var(--mut2)}
  select.tksel:focus{border-color:var(--miami);box-shadow:0 0 0 3px var(--e100)}
  select.tksel.ok{border-color:transparent;background-color:color-mix(in srgb, var(--pill-ok-fg) 13%, var(--surface));color:var(--pill-ok-fg)}
  select.tksel.warn{border-color:transparent;background-color:color-mix(in srgb, var(--pill-warn-fg) 13%, var(--surface));color:var(--pill-warn-fg)}
  select.tksel.info{border-color:transparent;background-color:color-mix(in srgb, var(--pill-info-fg) 13%, var(--surface));color:var(--pill-info-fg)}
  @media(max-width:640px){.trackedit{grid-template-columns:1fr 1fr}.tk{width:auto}select.tksel{width:100%}}
  .composer{display:flex;gap:8px;align-items:flex-end;padding:12px 16px;border-bottom:1px solid var(--line2)}
  .composer .mentwrap{flex:1;min-width:0}
  /* Bug fix (mobile screenshot): overflow-y:auto let a wrapped placeholder's
     second line render partially outside the box's own rounded border on a
     narrow phone width instead of being cleanly clipped -- same failure
     class as the DM composer fix above, same fix: overflow:hidden. The
     auto-grow JS (noteOnTypingResize) still works identically to DM's --
     real typed content just grows the textarea's own height up to
     max-height, it was never relying on this property to scroll. */
  /* 16px floor: same iOS zoom-on-focus fix -- the per-car Notes composer. */
  .composer textarea{flex:1;width:100%;resize:none;min-height:38px;max-height:160px;overflow:hidden;font-family:var(--sans);font-size:16px;background:var(--inset);border:1px solid var(--line);border-radius:9px;color:var(--text);padding:8px 10px;outline:none}
  .composer textarea:focus{border-color:var(--miami);box-shadow:0 0 0 3px var(--e100)}
  .composer .btn{white-space:nowrap}
  .composer #noteVoice{padding:0;width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;flex:none}
  #noteVoice.on{color:var(--carmine);border-color:var(--carmine);animation:bnVoicePulse 1.4s ease-in-out infinite}
  @media (prefers-reduced-motion:reduce){ #noteVoice.on{animation:none} }
  /* .dmlist (the scroll container) already carries 18px of horizontal
     padding — the same 18px .dh (the "Messages" header above it) uses —
     so a further 4px of padding here on every row shifted each avatar and
     title 4px right of where the header text and close button line up,
     a small but real "doesn't line up" wrongness running down the whole
     list. Flush to 0 so rows align exactly with the header above them. */
  .dmrow{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid var(--line2);cursor:pointer;position:relative}
  .dmrow:last-child{border-bottom:0}
  .dmrow:hover{background:var(--inset)}
  .dmrow.unread .dmttl{font-weight:800}
  .dmava{display:flex;flex:none}
  .dmava .av,.dmava .bavatar{margin-right:-8px;border:2px solid var(--surface)}
  /* .dmdot is absolutely positioned against .dmrow, which puts it at the
     row's true right edge regardless of any padding declared on .dmrow
     itself (right:0 resolves against the padding edge of the containing
     block, not against a descendant's own box) — so it landed in exactly
     the same spot .dmtime's flex-end already occupied, overlapping the
     timestamp text on every unread row ("1h ag[dot]"). Reserving a fixed
     gutter on .dmrowb (not .dmrow) gives the dot real room, and doing it
     unconditionally — not just on .unread rows — keeps the timestamp
     column at the same x on every row instead of jumping around depending
     on read state. */
  .dmrowb{flex:1;min-width:0;padding-right:13px}
  .dmrowtop{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
  .dmttl{font-weight:700;font-size:13px}
  .dmtime{color:var(--mut2);font-size:10px;flex:none}
  .dmprev{color:var(--mut);font-size:12px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .dmdot{position:absolute;right:0;top:16px;width:8px;height:8px;border-radius:999px;background:var(--miami)}
  /* Reported live as "lines stil going through" with a screenshot of this
     banner showing a faint diagonal hairline texture bled across its light
     blue background. Root cause: #shell's very first child is the .aura
     ambient-texture overlay (position:fixed;z-index:0 -- .brushed inside it
     is the literal repeating-linear-gradient hairline pattern), meant to
     sit behind every real screen. Per CSS stacking order, a position:fixed
     element at z-index:0 is a POSITIONED z-index:auto/0 box and paints
     ABOVE any plain in-flow, non-positioned sibling regardless of DOM
     order -- and #pushNudge was position:static, so .aura painted over it
     instead of behind it. Confirmed live: toggling #pushNudge to
     position:relative (still z-index:auto, but now itself a positioned box
     that paints in DOM order among its stacking-order peers, and it comes
     after .aura in the DOM) made the hairlines disappear completely. Scoped
     to just this element rather than restructuring .aura/#shell's stacking
     globally, since this is the one spot it was actually reported visible. */
  #pushNudge:not(.hide){display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;margin-top:20px;padding:10px 0 0;background:none;border:0;border-top:1px solid var(--line);font-size:12px;position:relative}
  #pushNudge .pnmsg{display:flex;align-items:center;gap:8px;min-width:0;color:var(--mut);line-height:1.5}
  #pushNudge .pnbtns{display:flex;gap:4px;align-items:center;flex:none;margin-left:auto}
  #pushNudge .pnbtns button{min-height:44px;font:600 12px var(--sans);padding:8px 10px;border:0;background:none;color:var(--miami);border-radius:8px;cursor:pointer}
  #pushNudge .pnbtns button:hover{background:var(--inset)}
  #pushNudge .pnbtns button:focus-visible{outline:2px solid var(--miami);outline-offset:2px}
  #pushNudge .pnbtns .pn-dismiss{color:var(--mut)}
  .push-context{padding:12px;border-top:1px solid var(--line);font-size:12px;line-height:1.5;color:var(--mut)}
  .push-context button{min-height:44px;border:0;background:none;color:var(--miami);font:600 12px var(--sans);cursor:pointer;padding:8px 0;display:inline-flex;gap:7px;align-items:center}
  .push-context summary{min-height:44px;cursor:pointer;display:flex;align-items:center;gap:8px;color:var(--text)}
  .push-context p{margin:4px 0 8px}
  /* Bug fix (mobile complaint: "chat bounces when scroll up"): this is the
     only scroll container in the whole DM panel, but it never told the
     browser it was one — no overscroll-behavior, no -webkit-overflow-
     scrolling, unlike every other scrollable strip in the app (see the
     mobile media query below). On iOS Safari that's the textbook setup for
     scroll chaining: fling up, hit the top of the message list (the most
     common place to be scrolling toward — older messages), and the leftover
     momentum leaks into the drawer/page behind it, which rubber-bands since
     nothing there was meant to move. overscroll-behavior:contain stops the
     leak at this container's edge; -webkit-overflow-scrolling:touch gives it
     native inertial scrolling instead of the steppy default. */
  .dmmsgs{display:flex;flex-direction:column;gap:8px;max-height:calc(100vh - 300px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:8px 2px;margin-bottom:10px}
  .dmbub{max-width:78%;align-self:flex-start;background:var(--inset);border:1px solid var(--line);border-radius:14px 14px 14px 4px;padding:8px 12px;position:relative}
  .dmbub.mine{align-self:flex-end;background:var(--miami);color:var(--on-miami);border-radius:14px 14px 4px 14px;border-color:transparent}
  /* Every non-mine bubble gets a fixed left gutter so the column doesn't
     jump depending on whether that particular bubble carries a face (only
     the first bubble in a cluster does) — the avatar itself is absolutely
     positioned into that gutter, pinned to the bubble's top so it lines up
     with the first line of text rather than floating at the cluster's
     overall bottom. */
  .dmbub:not(.mine){margin-left:32px}
  .dmbub .dmavatar{position:absolute;left:-32px;top:0;display:flex}
  .dmbub .dmavatar .bavatar{width:24px!important;height:24px!important;font-size:10px!important}
  .dmbub:not(.pending):not(.editing){padding-right:44px}
  .dmbub.editing{padding-right:12px}
  .dmbub.pending{padding-right:12px}
  .dmacts{position:absolute;top:6px;right:6px;display:flex;gap:2px}
  .dmact{width:16px;height:16px;border:none;background:none;padding:0;color:rgba(255,255,255,.65);font-size:14px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background .13s ease,color .13s ease}
  .dmact:hover,.dmact:focus-visible{background:rgba(0,0,0,.18);color:var(--on-miami);}
  .dmbub:not(.mine) .dmact{color:var(--mut)}
  .dmbub:not(.mine) .dmact:hover,.dmbub:not(.mine) .dmact:focus-visible{background:var(--inset2,var(--line2));color:var(--text)}
  /* Flag/assign chip + popover menu */
  .dmflagchip{display:inline-flex;align-items:center;gap:4px;font-size:10px;font-weight:700;border:1px solid var(--pill-warn-fg);color:var(--pill-warn-fg);background:rgba(180,131,9,.1);border-radius:999px;padding:2px 8px;margin-top:6px;cursor:pointer}
  .dmflagchip svg,.dmpinico svg,.dmpinbadge svg{width:10px;height:10px;flex:none;vertical-align:-1px}
  .dmbub.mine .dmflagchip{border-color:rgba(255,255,255,.65);color:var(--on-miami);background:rgba(255,255,255,.16);}
  .dmflagmenu{position:absolute;bottom:100%;right:6px;margin-bottom:6px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:5px;box-shadow:0 8px 24px rgba(0,0,0,.18);z-index:6;display:flex;flex-direction:column;align-items:stretch;min-width:190px}
  .dmflagopt{display:flex;align-items:center;gap:9px;width:100%;text-align:left;background:none;border:none;font-size:12.5px;padding:6px 9px;border-radius:6px;cursor:pointer;color:var(--text);white-space:nowrap}
  .dmflagopt:hover,.dmflagopt:focus-visible{background:var(--inset)}
  .dmflagopt svg{flex:none;color:var(--mut)}
  .dmflagopt[data-dmdeletemsg] svg,.dmflagopt[data-dmflagremove] svg{color:var(--carmine)}
  /* Reactions row + emoji picker */
  .dmreacts{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
  .dmreact{font-size:11px;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:1px 7px;cursor:pointer;color:var(--text);display:inline-flex;align-items:center;gap:3px;font-variant-numeric:tabular-nums}
  .dmreact.mine{border-color:var(--miami);background:var(--e100)}
  .dmbub.mine .dmreact{border-color:rgba(255,255,255,.4);background:rgba(255,255,255,.14);color:var(--on-miami);}
  .dmbub.mine .dmreact.mine{border-color:var(--hairline);background:rgba(255,255,255,.3);}
  .dmreactpick{position:absolute;bottom:100%;right:6px;margin-bottom:6px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:6px;box-shadow:0 8px 24px rgba(0,0,0,.18);z-index:6;display:flex;align-items:center;gap:3px;flex-wrap:wrap;max-width:220px}
  .dmreactopt{font-size:18px;background:none;border:none;cursor:pointer;padding:3px 5px;border-radius:6px;line-height:1}
  .dmreactopt:hover,.dmreactopt:focus-visible{background:var(--inset)}
  .dmreactcustom{width:46px;font-size:13px;border:1px solid var(--line);border-radius:6px;padding:3px 5px;background:var(--inset);color:var(--text);outline:none}
  .dmreactcustom:focus{border-color:var(--miami)}
  /* Pinned strip + badge */
  .dmpinned{display:flex;flex-direction:column;gap:2px;margin-bottom:8px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--inset)}
  .dmpinrow{display:flex;align-items:center;gap:6px;padding:6px 10px;font-size:12px;cursor:pointer}
  .dmpinrow:hover{background:var(--surface)}
  .dmpinrow+.dmpinrow{border-top:1px solid var(--line2)}
  .dmpintxt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--mut)}
  .dmpinbadge{display:inline-block;font-size:10px;font-weight:700;color:var(--mut2);margin-top:6px}
  /* Group management panel */
  /* Reported live as "ux is kinda rough here": with a full team roster to
     list as addable, this panel (name field + every member + every
     addable teammate) could easily run to a dozen+ rows with nothing
     capping its height — since it sits above the message list in one
     continuously-scrolling drawer (not its own independently-scrolling
     region), an untamed panel could push the whole conversation, even
     the empty-state "Say hello", off the bottom of the first screen. A
     max-height with its own scroll keeps it to a sane, glanceable size
     regardless of team size — the messages below are always in reach. */
  .dmgrouppanel{border:1px solid var(--line);border-radius:10px;padding:10px;margin-bottom:10px;background:var(--inset);max-height:280px;overflow-y:auto}
  .dmgtitlerow{display:flex;gap:6px;margin-bottom:8px;position:sticky;top:-10px;background:var(--inset);padding-top:10px;margin-top:-10px;z-index:1}
  .dmgtitlerow input{flex:1;min-width:0;font-family:var(--sans);font-size:12.5px;background:var(--surface);border:1px solid var(--line);border-radius:8px;color:var(--text);padding:6px 8px;outline:none}
  .dmgtitlerow input:focus{border-color:var(--miami)}
  .dmgmembers{display:flex;flex-direction:column;gap:2px}
  .dmgrow{display:flex;align-items:center;gap:8px;padding:4px 2px}
  .dmgname{flex:1;min-width:0;font-size:12.5px}
  .dmgaddlist{margin-top:8px;padding-top:8px;border-top:1px solid var(--line2);display:flex;flex-wrap:wrap;gap:6px}
  .dmgaddrow{font-size:11.5px;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:3px 10px;cursor:pointer;color:var(--text)}
  .dmgaddrow:hover{background:var(--e100);border-color:var(--miami)}
  /* Link preview cards */
  .dmlink{text-decoration:underline;text-underline-offset:2px}
  .dmbub.mine .dmlink{color:var(--on-miami);}
  .dmlp{display:flex;margin-top:8px;border:1px solid var(--line);border-radius:10px;overflow:hidden;text-decoration:none;color:var(--text);background:var(--surface);max-width:300px}
  .dmbub.mine .dmlp{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.35);color:var(--on-miami);}
  .dmlpimg{width:68px;flex:none;background-size:cover;background-position:center;background-color:var(--inset)}
  .dmlpb{padding:7px 9px;min-width:0;display:flex;flex-direction:column;gap:2px;justify-content:center}
  .dmlptitle{font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .dmlpdesc{font-size:11px;color:var(--mut);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .dmbub.mine .dmlpdesc{color:rgba(255,255,255,.78)}
  .dmlpsite{font-size:9.5px;text-transform:uppercase;letter-spacing:.04em;color:var(--mut2)}
  .dmbub.mine .dmlpsite{color:rgba(255,255,255,.62)}
  .dmedited{font-size:9.5px;opacity:.55;margin-left:5px}
  .dmeditbox textarea{width:100%;min-width:200px;resize:none;font-family:var(--sans);font-size:13px;line-height:1.4;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.35);border-radius:8px;color:var(--on-miami);padding:6px 8px;outline:none;box-sizing:border-box;}
  .dmeditbar{display:flex;justify-content:flex-end;gap:6px;margin-top:6px}
  .dmeditbar .btn{padding:4px 10px;font-size:11.5px}
  .dmeditbar .btn.sec{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.35);color:var(--on-miami);}
  .dmbub.pending{opacity:.6}
  .dmbub.clus{margin-top:-4px}
  .dmday{align-self:center;display:flex;align-items:center;margin:10px 0 2px}
  .dmday span{font-size:10px;font-weight:700;color:var(--mut2);text-transform:uppercase;letter-spacing:.05em;background:var(--inset);border:1px solid var(--line);border-radius:999px;padding:3px 10px}
  .dmbub .dmwho{font-size:10px;font-weight:700;color:var(--miami);margin-bottom:2px}
  .dmbub.mine .dmwho{color:rgba(255,255,255,.85)}
  .dmtxt{font-size:13px;line-height:1.4;word-break:break-word;white-space:pre-wrap}
  .dmtxt mark{background:var(--e100);color:inherit;border-radius:3px;padding:0 1px}
  .dmbub.mine .dmtxt mark{background:rgba(255,255,255,.35)}
  .dmts{font-size:9.5px;margin-top:3px;opacity:.65}
  .dmseen{align-self:flex-end;font-size:10px;color:var(--mut2);margin:-4px 4px 0 0}
  .dmtyping{font-size:11.5px;color:var(--mut);font-style:italic;padding:0 2px 4px;min-height:14px}
  .dmcompose{display:flex;gap:8px;align-items:flex-end;position:sticky;bottom:0;background:var(--surface);padding-top:8px}
  .dmcompose textarea{flex:1;resize:none;min-height:38px;max-height:120px;overflow:hidden;font-family:var(--sans);font-size:13px;background:var(--inset);border:1px solid var(--line);border-radius:9px;color:var(--text);padding:8px 10px;outline:none}
  .dmcompose textarea:focus{border-color:var(--miami);box-shadow:0 0 0 3px var(--e100)}
  .dmcompose #dmVoice{padding:0;width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;flex:none}
  /* Send is a plain .btn.sm, sized by its font+padding alone (~30px tall) —
     next to the attach button and mic, both a fixed 38px square, it sat a
     few px shorter than its neighbors along align-items:flex-end, reading
     as "nothing here lines up." Pin it to the same 38px the other two
     composer controls use. */
  .dmcompose [data-dmsend]{height:38px;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;flex:none}
  .dmcompose .attachbtn{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;flex:none;padding:0;cursor:pointer}
  /* @mention popup reuses Board's .mentwrap/.mentpop/.mentopt* CSS as-is (same
     visual language, one popup component). .mentwrap only sets position:relative
     so it drops into a flex row transparently everywhere except here — .dmcompose
     is itself a flex row and the bare textarea used to be its flex:1 child, so
     wrapping it moves that flex item to the wrapper; these two rules carry the
     same "textarea fills the row" behavior over to the wrapper. */
  .dmcompose .mentwrap{flex:1;min-width:0}
  .dmcompose .mentwrap textarea{width:100%}
  /* .mentpop opens downward (top:100%) by default, which is fine for
     Board/car-note composers sitting mid-page with room below them — but
     .dmcompose is pinned to the very bottom of the drawer
     (position:sticky;bottom:0), so "downward" ran the suggestion list off
     the bottom of the screen, worse once the on-screen keyboard eats
     another third of the viewport. Open upward here instead. */
  .dmmentwrap .mentpop{top:auto;bottom:100%;margin-top:0;margin-bottom:6px}
  /* iOS Safari auto-zooms the whole page on focusing any input/textarea
     computed under 16px — the DM composer's 13px was a textbook trigger.
     16px only below the desktop breakpoint so the compose row doesn't grow
     needlessly on a laptop, matching the existing pattern of most mobile
     overrides living in the max-width:860px block below this one. */
  @media(max-width:860px){
    .dmcompose textarea,#dmEditTa{font-size:16px}
  }
  #dmVoice.on{color:var(--carmine);border-color:var(--carmine);animation:bnVoicePulse 1.4s ease-in-out infinite}
  @media (prefers-reduced-motion:reduce){ #dmVoice.on{animation:none} }
  .dmmodetog{display:flex;gap:8px;margin-bottom:4px}

  /* ===== OVERNIGHT V2 — Messages (§2–§7) ===== */
  :root{--bub-other:#EFEAE0}
  html[data-theme="dark"]{--bub-other:#232B3A}
  #drawer.dm .dh{align-items:center;margin:0;padding:8px 8px 8px 16px;border-bottom:1px solid var(--line2)}
  #drawer.dm .dh.dmlisthead{padding-left:20px}
  #drawer.dm .dh h2{font-size:18px;letter-spacing:0;line-height:1.2}
  #drawer.dm .dh.dmlisthead h2{font-size:20px}
  #drawer.dm .dhttl .submut{font-size:12.5px;line-height:1.2}
  #drawer.dm .dh .dback{margin:0 2px 0 -6px;border:none;background:none;font-size:26px}
  @media(pointer:coarse){#drawer.dm .dh .dback{width:44px;height:44px;margin-left:-8px}}
  .dx.dxact{width:40px;height:40px;font-size:0;margin:0;color:var(--mut);border-radius:12px}
  .dx.dxact svg{width:22px;height:22px}
  .dx.dxact:hover{transform:none;background:var(--inset);color:var(--text)}
  .dx.dxact.on{background:var(--e100);color:var(--miami)}
  #drawer.dm .dhacts{gap:2px}
  #drawer.dm .dhacts .dx{margin:0}
  #drawer.dm .dh .dx[data-close]{font-size:26px}
  @media(pointer:coarse){.dx.dxact{width:44px;height:44px}}
  .dmgsearch{margin:10px 16px 6px}
  .dmgsearch input,.dmgsearch input:focus{border:none;box-shadow:none;background:transparent;outline:none;min-height:40px;font-size:16px}
  #drawer.dm .dmlist{margin:4px 8px;flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}
  .dmrow{gap:12px;padding:10px 12px;min-height:68px;border-bottom:0;border-radius:14px;align-items:center}
  .dmrow::after{content:"";position:absolute;left:68px;right:12px;bottom:0;height:1px;background:var(--line2)}
  .dmrow:last-child::after{display:none}
  .dmprev mark{background:var(--e100);color:inherit;border-radius:3px;padding:0 1px}
  .dmrow:hover,.dmrow:focus-visible{background:var(--inset);outline:none}
  .dmrow:active{background:var(--e100)}
  .dmava .av,.dmava .bavatar{margin-right:0;border:0}
  .dmavstack{display:inline-flex;width:44px;height:44px;position:relative}
  .dmavstack .bavatar{position:absolute;border:2px solid var(--surface)}
  .dmavstack .bavatar:first-child{left:0;top:0}
  .dmavstack .bavatar:last-child{right:0;bottom:0}
  .dmrowb{padding-right:0;display:flex;flex-direction:column;gap:3px}
  .dmttl{font-size:15.5px;font-weight:600;letter-spacing:-.005em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  .dmrow.unread .dmttl{font-weight:750}
  .dmrowname{display:flex;align-items:center;gap:6px;min-width:0;flex:1}
  .dmrowname .dmttl{flex:0 1 auto}
  .dmrowtop .dmtime{white-space:nowrap}
  .dmtime{font-size:12px;color:var(--mut2);font-variant-numeric:tabular-nums}
  .dmrow.unread .dmtime{color:var(--miami);font-weight:600}
  .dmrowbot{display:flex;align-items:center;gap:8px;min-width:0}
  .dmprev{flex:1;min-width:0;font-size:13.5px;line-height:1.35;color:var(--mut);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .dmprev.quiet{color:var(--mut2);font-style:italic}
  .dmrow.unread .dmprev{color:var(--text)}
  .dmdot{position:static;width:10px;height:10px;flex:none;top:auto;right:auto}
  .dmrowstatus{display:flex;align-items:center;gap:6px;margin-top:2px}
  .dmneeds{display:inline-flex;align-items:center;gap:4px;font-size:11px;line-height:1.4;font-weight:600;color:var(--miami);background:var(--e100);border-radius:6px;padding:2px 6px}
  .dmneeds svg{width:12px;height:12px;flex:none}
  .dmrow:focus-visible,.dmsrow:focus-visible{outline:2px solid var(--miami);outline-offset:-2px}
  .dmquiet{display:flex;flex-direction:column;align-items:center;gap:6px;padding:64px 24px;text-align:center;color:var(--mut)}
  .dmquiet svg{width:48px;height:48px;color:var(--mut2);margin-bottom:8px}
  .dmquiett{font-size:16px;font-weight:600;color:var(--text)}
  .dmquiets{font-size:13.5px;margin-bottom:14px}
  .dmsubhead{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mut2);padding:12px 20px 4px}
  .dmsearchhome{padding:4px 8px}
  .dmsrow{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:0 12px;border:none;background:none;font:inherit;font-size:14px;color:var(--text);text-align:left;border-radius:12px;cursor:pointer}
  .dmsrow svg{width:18px;height:18px;color:var(--amber)}
  .dmsrow:hover{background:var(--inset)}
  /* the conversation */
  #drawer.dm .dmmsgs{padding:12px 16px 14px;gap:6px}
  .dmbub{max-width:82%;background:var(--bub-other);border:none;border-radius:18px 18px 18px 6px;padding:9px 13px;box-shadow:none}
  .dmbub.mine{background:var(--bub-mine);border-radius:18px 18px 6px 18px}
  .dmbub.clus{margin-top:-2px}
  .dmbub:not(.mine){margin-left:36px}
  .dmbub .dmavatar{left:-36px}
  .dmbub .dmavatar .bavatar{width:28px!important;height:28px!important;font-size:11px!important}
  .dmbub:not(.pending):not(.editing){padding-right:13px}
  .dmtxt{font-size:15.5px;line-height:1.38}
  .dmbub .dmwho{font-size:12px;font-weight:650;color:var(--mut);margin-bottom:3px}
  .dmts{font-size:11px;margin-top:4px;opacity:.6}
  /* the time rides the last line of the bubble, bottom right, the way every
     native messenger does it -- a bubble no longer spends a line on it */
  .dmbub>.dmts{float:right;margin:6px -2px -3px 12px;line-height:1.2}
  .dmbub::after{content:"";display:block;clear:both}
  .dmday{margin:14px 0 4px}
  .dmday span{background:none;border:none;font-size:11px;letter-spacing:.06em;padding:0}
  .dmseen{font-size:11px;margin:-2px 6px 2px 0}
  /* what a message is about, under it: quiet chips, never a card */
  .dmctx{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;max-width:82%;margin:-1px 0 4px 36px;font-size:11.5px;color:var(--mut);min-width:0}
  .dmctx.mine{align-self:flex-end;justify-content:flex-end;margin:-1px 4px 4px 0}
  .dmctxk{font-weight:600;letter-spacing:.02em}
  .dmctx .ment{font-size:12px;padding:2px 9px 2px 7px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ment.mread{box-shadow:inset 0 0 0 1px var(--line)}
  .ment.mtopic{border:none;font:inherit;font-size:12px;font-weight:600;background:var(--inset);color:var(--text);cursor:pointer;box-shadow:inset 0 0 0 1px var(--line)}
  .ment.mtopic.on{box-shadow:inset 0 0 0 1.5px var(--miami)}
  .dmobs{align-self:flex-start;max-width:min(82%,420px);margin:0 0 8px 36px;padding:10px 12px;border:1px solid var(--line2);border-radius:12px;background:var(--surface);font-size:13px;display:flex;flex-direction:column;gap:6px}
  .dmctx.mine+.dmobs{align-self:flex-end;margin:0 4px 8px 0}
  .dmobsk{font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--mut2)}
  .dmobssrc{font-weight:500;letter-spacing:0;text-transform:none;color:var(--mut)}
  .dmobsq{font-size:14px;font-weight:600;color:var(--text)}
  .dmobsact{align-self:flex-start;min-height:44px;opacity:.6;cursor:not-allowed}
  .dmobsneed{font-size:12px;color:var(--mut)}
  .dmbub .ment{font-size:12.5px;padding:2px 9px 2px 7px;background:var(--surface);color:var(--text)}
  .dmbub .ment.mperson{color:var(--amber)}
  .dmbub.mine .ment,.dmbub.mine .ment.mperson,.dmbub.mine .ment.mcar{background:rgba(255,255,255,.18);color:var(--on-miami);box-shadow:inset 0 0 0 1px rgba(255,255,255,.28);}
  .dmbub.mine .ment.click:hover{background:rgba(255,255,255,.28);box-shadow:inset 0 0 0 1px rgba(255,255,255,.5)}
  .dmbub.mine .dmpinbadge{color:rgba(255,255,255,.8)}
  .dmbub.mine .dmedited{opacity:.75}
  .dmbub .dmreact{font-size:12.5px;padding:2px 9px}
  /* hover actions (pointer only): a small pill above the bubble corner, no reflow */
  .dmacts{top:-16px;right:8px;opacity:0;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:2px;box-shadow:var(--shadow-sm);gap:0;transition:opacity .12s}
  .dmbub:hover .dmacts,.dmbub:focus-within .dmacts{opacity:1}
  .dmact,.dmbub:not(.mine) .dmact,.dmbub.mine .dmact{width:30px;height:30px;color:var(--mut);border-radius:999px}
  .dmact:hover,.dmact:focus-visible,.dmbub:not(.mine) .dmact:hover{background:var(--inset);color:var(--text)}
  .dmact svg{width:18px;height:18px}
  @media(pointer:coarse){
    .dmacts{display:none}
    .dmbub{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
    .dmbub .dmtxt a{-webkit-user-select:auto;user-select:auto}
  }
  @media(pointer:coarse){#gsVoiceBtn,#bnVoice,#cnVoice{display:none!important}}
  /* composer */
  #dmDraftTokens:empty{display:none}
  .dmdrafttokens{display:flex;flex-wrap:wrap;gap:6px;padding:6px 16px 0;border-top:1px solid var(--line2)}
  .dmdrafttokens .ment{font-size:12.5px;padding:3px 10px 3px 7px}
  .dmdrafttopic{align-self:center;font-size:12px;font-weight:600;color:var(--mut)}
  /* replying to a website enquiry (openLeadReply) */
  .lrunsent{display:inline-flex;align-items:center;gap:4px;font-size:10.5px;font-weight:700;letter-spacing:.06em;color:var(--pill-warn-fg);background:var(--pill-warn-bg);border-radius:999px;padding:2px 8px;margin-right:6px}
  .lrunsent::before{content:"";width:7px;height:7px;border-radius:50%;border:1.5px dashed currentColor}
  .lrq{margin:12px 0 0;padding:12px 14px;border:1px solid var(--line2);border-radius:12px;background:var(--inset);display:flex;flex-direction:column;gap:6px;font-size:13.5px}
  .lrqh{color:var(--mut);font-size:12.5px;display:flex;flex-wrap:wrap;align-items:center;gap:4px}
  .lrqm{color:var(--text);line-height:1.45}
  .lrqp{color:var(--mut);font-size:12.5px}
  .lrl{display:block;margin:16px 0 6px;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--mut2)}
  .lrtext{width:100%;box-sizing:border-box;min-height:140px;font:inherit;font-size:16px;line-height:1.4;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);resize:vertical}
  .lracts{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
  .lracts .btn{min-height:44px;display:inline-flex;align-items:center}
  .lrnote{font-size:12.5px;color:var(--mut);margin:10px 0 0;line-height:1.45}
  .lrclear{min-height:44px;margin-top:4px}
  .dmdrafttokens+.dmcompose{border-top:0}
  #drawer.dm .dmcompose{padding:8px 12px 12px;gap:6px;border-top:1px solid var(--line2)}
  #drawer.dm .dmcompose{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  .dmcompose .attachbtn,.dmcompose .btn.sec.attachbtn{width:44px;height:44px;min-width:44px;border:none;background:none;color:var(--mut);border-radius:12px;box-shadow:none}
  .dmcompose .attachbtn:hover{background:var(--inset);color:var(--text)}
  .dmcompose .attachbtn svg{width:24px;height:24px}
  .dmcompose textarea{min-height:44px;max-height:160px;border-radius:22px;padding:11px 16px;font-size:16px;line-height:1.35;background:var(--inset);border:1px solid var(--line)}
  .dmsend,.dmcompose .dmsend[data-dmsend]{width:44px;height:44px;padding:0;border-radius:50%;border:none;background:var(--line);color:var(--mut2);display:inline-flex;align-items:center;justify-content:center;flex:none;cursor:pointer;padding:0;transition:background .15s,color .15s,transform .15s}
  .dmsend svg{width:22px;height:22px}
  .dmcompose.hasdraft .dmsend{background:var(--miami);color:var(--on-miami)}
  .dmcompose.hasdraft .dmsend:active{transform:scale(.94)}
  .dmmentwrap .mentpop{min-width:260px;max-width:min(360px,calc(100vw - 32px))}
  .mentgrp{font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mut2);padding:8px 11px 2px}
  .mentopt{min-height:44px;font-size:14px}
  /* action sheet */
  .dmsheetscrim{position:absolute;inset:0;background:rgba(8,18,32,.28);z-index:60;animation:dmfade .16s ease}
  .dmsheet{position:absolute;left:0;right:0;bottom:0;z-index:61;background:var(--surface);border-radius:20px 20px 0 0;padding:6px 12px calc(12px + env(safe-area-inset-bottom,0px));box-shadow:0 -12px 40px rgba(8,18,32,.22);max-height:82%;overflow-y:auto;animation:dmrise .2s cubic-bezier(.2,.8,.2,1)}
  @keyframes dmrise{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
  @keyframes dmfade{from{opacity:0}to{opacity:1}}
  @media(prefers-reduced-motion:reduce){.dmsheet,.dmsheetscrim{animation:none}}
  .dmsheetgrab{width:36px;height:4px;border-radius:2px;background:var(--line);margin:4px auto 10px}
  .dmsheetq{font-size:12.5px;color:var(--mut);padding:0 6px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .dmsheetreacts{display:flex;gap:4px;justify-content:space-between;padding:0 2px 10px;border-bottom:1px solid var(--line2);margin-bottom:6px}
  .dmsheetemo{width:44px;height:44px;border-radius:50%;border:none;background:var(--inset);font-size:22px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:transform .12s;padding:0}
  .dmsheetemo:active{transform:scale(1.15)}
  .dmsheetemo.on{background:var(--e100);box-shadow:inset 0 0 0 1.5px var(--miami)}
  .dmsheetlist{display:flex;flex-direction:column}
  .dmsheetrow{display:flex;align-items:center;gap:12px;min-height:48px;padding:0 10px;border:none;background:none;font:inherit;font-size:15.5px;color:var(--text);text-align:left;border-radius:12px;cursor:pointer;width:100%}
  .dmsheetrow>svg{width:20px;height:20px;flex:none;color:var(--mut)}
  .dmsheetlbl{flex:1;min-width:0;overflow-wrap:anywhere}
  .dmsheetrow .bavatar{flex:none}
  .dmsheetrow:hover{background:var(--inset)}
  .dmsheetrow.danger,.dmsheetrow.danger>svg{color:var(--carmine)}
  .dmsheetrow.sub{padding-left:24px;font-size:14px;min-height:44px}
  .dmsheetrow.open{background:var(--inset)}
  .dmsheetchev{color:var(--mut2);font-size:20px;line-height:1}
  .dmsheetsub{display:flex;flex-direction:column;background:var(--inset);border-radius:12px;margin:2px 0 6px;padding:2px}
  .dmsheetcancel{width:100%;min-height:48px;margin-top:6px;border:none;border-radius:14px;background:var(--inset);font:inherit;font-size:15.5px;font-weight:600;color:var(--text);cursor:pointer}
  /* pinned strip */
  /* the pinned message is a strip that belongs to the header -- flat, full
     width, one hairline -- not a floating card over the conversation */
  #drawer.dm .dmpinned{margin:0;border-radius:0;border:0;border-bottom:1px solid var(--line2);flex-direction:row;align-items:stretch;gap:0;
    box-shadow:none;background:var(--inset);position:relative;z-index:1;padding:0 6px}
  .dmpinrow{flex:1;min-width:0;display:flex;align-items:center;gap:10px;padding:7px 12px;min-height:48px;font:inherit;font-size:13px;
    text-align:left;color:var(--text);background:none;border:0;cursor:pointer}
  .dmpinrow:focus-visible,.dmpinall:focus-visible{outline:2px solid var(--miami);outline-offset:-2px;border-radius:12px}
  .dmpinbars{display:flex;flex-direction:column;gap:2px;align-self:stretch;justify-content:center;flex:none}
  .dmpinbars i{display:block;width:3px;flex:1;max-height:14px;min-height:5px;border-radius:2px;background:var(--line)}
  .dmpinbars i.on{background:var(--miami)}
  .dmpinico{display:inline-flex;color:var(--miami);flex:none}
  .dmpinbody{display:flex;flex-direction:column;min-width:0;gap:1px}
  .dmpinlbl{font-size:11px;font-weight:700;color:var(--miami);letter-spacing:.02em}
  .dmpintxt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text)}
  .dmpintxt b{font-weight:600}
  .dmpinall{flex:none;width:48px;display:flex;align-items:center;justify-content:center;background:none;border:0;border-left:1px solid var(--line);color:var(--mut);cursor:pointer}
  .dmpinall:hover{color:var(--text)}
  .dmpinmore{font-size:11px;font-weight:700;color:var(--mut2);border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:2px 8px;margin-left:auto;cursor:pointer;min-height:28px}
  /* details */
  .dminfoid{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 0 12px;text-align:center}
  .dminfoid .bavatar{font-family:var(--sans)}
  .dminfoname{font-size:20px;font-weight:700;letter-spacing:-.01em}
  .dminfoacts{display:flex;gap:8px;justify-content:center;margin:0 0 14px}
  .dminfoacts .btn svg{width:16px;height:16px}
  #drawer.dm .dminfobody .dmmodetog{margin:0 0 10px;flex-wrap:wrap}
  .dminfomembers{display:flex;flex-direction:column}
  .dminfomember{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:12px;min-height:60px;padding:6px 0;border-bottom:1px solid var(--line2)}
  .dminfomember>.click{flex:1 1 auto;min-width:0}
  .dminfomember .bavatar{flex:none}
  .dminfomember:last-child{border-bottom:0}
  .dminfomember b{font-size:15.5px;font-weight:600}
  .dminfomember .link{margin-left:auto;flex:none}
  .dminfoaddwrap{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;padding-top:4px}
  #drawer.dm .dminfobody .dmgtitlerow{position:static;margin:0;padding:0;background:none}
  #drawer.dm .dminfobody .dmgtitlerow input{min-height:44px;font-size:16px}
  #drawer.dm .dminfobody .dmlist{margin:0}
  /* .dmlist (Messages panel's main conversation list) never had a rule of
     its own — only its sibling .dmpicklist (the "New message" contact
     picker) got the scroll cap, so a user with many conversations got an
     unbounded list instead of scrolling inside the drawer like every other
     list here. Same treatment for both. */
  .dmlist,.dmpicklist{display:flex;flex-direction:column;gap:4px;max-height:calc(100vh - 320px);overflow-y:auto}
  .dmpickrow{display:flex;align-items:center;gap:10px;padding:9px 8px;border-radius:9px;cursor:pointer;border:1px solid transparent}
  .dmpickrow:hover{background:var(--inset)}
  .dmpickrow.sel{background:var(--e100);border-color:var(--miami)}
  .dmpickrow.pending{opacity:.6}
  .dmpickname{flex:1;font-size:13px;font-weight:600;display:flex;flex-direction:column}
  .dmpend{font-size:10px;font-weight:600;color:var(--mut2);text-transform:none}
  .dmchk{color:var(--miami);font-weight:800}
  .lf{display:grid;grid-template-columns:1fr 1fr;gap:11px 12px;margin:12px 0}
  /* Was scoped ".lf .fl" — but two real call sites (the Financing capital-
     line picker on a car's drawer, and the AP report period selector) use
     .fl as a standalone label without an .lf grid wrapper around it, so
     those two rendered as unstyled text instead of the small-caps mono
     label every other .fl gets. Dropping the .lf ancestor requirement
     fixes both without touching any markup — every existing .lf .fl match
     still matches this bare .fl rule identically. */
  .fl{display:flex;flex-direction:column;gap:4px}
  .lf .fl.full{grid-column:1/-1}
  .fl>span{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:9.5px;letter-spacing:.05em;text-transform:none;color:var(--mut)}
  .fin{font-family:var(--sans);font-size:13px;border:1px solid var(--field-border);background:var(--surface);color:var(--text);border-radius:8px;padding:8px 9px;outline:none;width:100%;transition:border-color .12s ease,box-shadow .12s ease}
  .fin:focus{border-color:var(--miami);box-shadow:0 0 0 3px var(--e100)}
  textarea.fin{resize:vertical;min-height:52px}
  .tdir{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:700;padding:2px 8px;border-radius:999px;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}
  .tdir.buy{background:rgba(77,166,255,.14);color:var(--miami)}
  .tdir.sell{background:rgba(31,143,94,.16);color:var(--racing)}
  .tst{display:inline-block;font-size:10px;font-weight:700;padding:2px 8px;border-radius:999px;text-transform:uppercase;letter-spacing:.03em;background:var(--inset);border:1px solid var(--line);color:var(--mut);white-space:nowrap}
  .tst.sched{background:rgba(77,166,255,.14);color:var(--miami);border-color:transparent}
  .tst.transit{background:rgba(224,138,0,.16);color:var(--amber);border-color:transparent}
  .tst.bad{background:rgba(224,49,49,.14);color:var(--carmine);border-color:transparent}
  .tst.ok{background:rgba(31,143,94,.16);color:var(--racing);border-color:transparent}
  /* Transport: a leg row answers what car, where it is, who has it, where it
     is going, what is next and what is wrong; the import preview is one row
     per CSV line with its match state and the reason. */
  .tpleg{grid-template-columns:56px minmax(0,1fr) auto 18px;gap:10px;align-items:center;min-height:44px}
  .tpleg .tpmain{min-width:0}
  .tpleg .submut{overflow-wrap:anywhere}
  .tpleg .tpstin{display:none;margin:3px 0 1px}
  @media(max-width:600px){.tpleg{grid-template-columns:52px minmax(0,1fr) 18px}.tpleg .tpstside{display:none}.tpleg .tpstin{display:block}}
  .tphead{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:14px 16px 10px}
  .tphead .tphacts{display:flex;gap:8px;flex-wrap:wrap}
  .tphead .btn{white-space:nowrap}
  .tqcar{display:flex;flex-direction:column;justify-content:center;min-height:44px;min-width:0}
  .tpnocar{color:var(--amber);font-weight:600}
  .tpflag{color:var(--carmine);font-size:12px;font-weight:600;margin-top:2px}
  .tpsum{display:grid;gap:6px;margin-top:12px}
  .tpsum .tppills{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
  .tprow{padding:10px 14px;border-top:1px solid var(--line);display:grid;gap:4px}
  .tprow:first-child{border-top:0}
  .tprow .tprh{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
  .tprow .tpacts{display:flex;gap:4px 16px;flex-wrap:wrap}
  .tpchk{display:inline-flex;align-items:center;gap:8px;min-height:44px;min-width:44px;font-size:13px;cursor:pointer}
  .tpchk input{width:20px;height:20px;margin:0}
  .tprow.off{opacity:.55}
  .decidecat{display:inline-flex;align-items:center;justify-content:center;font-size:9.5px;font-weight:700;padding:3px 0;border-radius:6px;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap;align-self:center;width:56px}
  .decidecat.hold{background:rgba(224,49,49,.14);color:var(--carmine)}
  .decidecat.money{background:rgba(224,138,0,.16);color:var(--amber)}
  .decidecat.buy{background:rgba(31,143,94,.16);color:var(--racing)}
  .decidecat.call{background:rgba(77,166,255,.14);color:var(--miami)}
  .decidecat.approve{background:rgba(143,160,232,.18);color:var(--voodoo)}
  /* Needs You hero (viewCeo) -- replaces the old insightrow/insightchip
     "house says" summary line. Deliberately restrained: a left accent
     border (same visual language as .apcard's own approval-card border,
     just set via inline style per item so the color can vary by category)
     rather than a .hero/.hero-g gradient billboard -- this is meant to
     read as calmer than the old KPI-heavy Hub, not louder. */
  .nyh-eyebrow{font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--mut)}
  .nyh-title{font-size:16px;font-weight:700;margin-top:4px;line-height:1.35}
  .nyh-sub{font-size:12.5px;color:var(--mut);margin-top:3px}
  .nyh-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
  /* what an approval is for: the note it was raised on, in the note's words */
  .nyh-for{font-size:15px;line-height:1.4;margin-top:6px;color:var(--text)}
  .nyh-cars{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-top:10px}
  .nyh-car{display:flex;align-items:center;gap:10px;min-height:44px;max-width:100%;padding:5px 12px 5px 5px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font:inherit;font-size:14px;font-weight:600;text-align:left;cursor:pointer}
  .nyh-car .nyh-ph{width:56px;height:42px;border-radius:8px;overflow:hidden;flex:none;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb, var(--line) 60%, var(--surface))}
  .nyh-car .nyh-ph img{width:100%;height:100%;object-fit:cover}
  .nyh-carn{min-width:0;display:flex;flex-direction:column;gap:1px;line-height:1.3}
  .nyh-carn b{font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .nyh-carn span{font-weight:400;font-size:13px;color:var(--mut)}
  .nyh-car .chev{color:var(--mut);font-weight:400}
  /* The engine's price beside a note that names one: evidence under the
     car, quieter than the need itself. */
  .nypx{margin-top:10px;padding:8px 0 0;border-top:1px solid var(--line);font-size:13.5px;line-height:1.45}
  .nypx b{font-weight:600}
  .nypx .nypx-said{color:var(--mut)}
  /* the gap spaces the links, so a link that wraps onto its own line starts
     at the card's edge instead of 12px in */
  .nyh-actions{column-gap:20px}
  .nypx.nypx-c{display:flex;flex-wrap:wrap;align-items:center;gap:0 10px;margin-top:3px;padding:0;border:0;font-size:12.5px;color:var(--mut)}
  .nypx[hidden]{display:none}
  /* Exactly one thing on Hub gets to be loud. The hero carries a heavier
     left accent, more air and a larger title than any row beneath it, so the
     eye lands on the single item that actually needs a decision before it
     reaches anything else. Everything below stays deliberately quiet -- rows,
     not cards, and no second element competing at this weight. */
  .hubsec{margin:14px 0 20px}
  .hubsec-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px;
    font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;
    color:var(--mut);margin:0 2px 8px}
  .hubsec-h .link{font-size:11px;letter-spacing:.02em;text-transform:none;font-weight:600;color:var(--miami)}
  /* ---- Deal readiness (read-only), on a sale_pending car sheet ----
     One quiet block: the card's own 16px gutters, rows divided by hairlines,
     no card inside the card and no warning colour on the block itself. The
     state words carry a small dot; only a conflict is red. */
  .dealrdy .grp .drro{font-family:var(--sans);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--mut);margin-left:6px}
  .dealrdy .drbody{padding:0 16px 4px}
  .dealrdy .drsum{margin:12px 0 4px;font-size:14px;line-height:1.5;color:var(--text)}
  .dealrdy .drsum.drwait{color:var(--mut)}
  .dealrdy .drgrp{margin:14px 0 0;padding-bottom:6px;font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--mut);border-bottom:1px solid var(--line)}
  .dealrdy .drrow{display:grid;grid-template-columns:minmax(96px,30%) minmax(0,1fr) auto;gap:4px 12px;align-items:baseline;padding:9px 0;border-bottom:1px solid var(--line2)}
  .dealrdy .drk{font-size:13px;color:var(--mut)}
  .dealrdy .drv{min-width:0;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
  .dealrdy .drval{color:var(--text)}
  .dealrdy .drsrc{margin-left:8px;font-size:12px;color:var(--mut)}
  .dealrdy .drnote{font-size:12.5px;line-height:1.45;color:var(--mut);margin-top:2px}
  .dealrdy .drnote.drpad{margin:8px 0 10px}
  .dealrdy .drst{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--mut);white-space:nowrap}
  .dealrdy .drdot{width:7px;height:7px;border-radius:50%;background:var(--mut2)}
  .dealrdy .drst.known .drdot{background:var(--racing)}
  .dealrdy .drst.confirm .drdot{background:var(--amber)}
  .dealrdy .drst.missing .drdot{background:transparent;box-shadow:inset 0 0 0 1.5px var(--mut)}
  .dealrdy .drst.unknown .drdot{background:transparent;box-shadow:inset 0 0 0 1.5px var(--mut2)}
  .dealrdy .drst.conflict{color:var(--carmine)}.dealrdy .drst.conflict .drdot{background:var(--carmine)}
  .dealrdy .drmore{border-bottom:1px solid var(--line2)}
  .dealrdy .drmore>summary{display:flex;align-items:center;min-height:44px;cursor:pointer;font-size:14px;font-weight:600;color:var(--text);list-style:none}
  .dealrdy .drmore>summary::-webkit-details-marker{display:none}
  .dealrdy .drmore>summary::after{content:"›";margin-left:auto;color:var(--mut);transition:transform .15s ease}
  .dealrdy .drmore[open]>summary::after{transform:rotate(90deg)}
  .dealrdy .drmore>summary:focus-visible{outline:2px solid var(--miami);outline-offset:2px}
  .dealrdy .drneed{margin:0 0 6px;padding-left:22px;font-size:14px;line-height:1.45}
  .dealrdy .drneed li{padding:4px 0}
  .dealrdy .drwhen{font-size:12px;color:var(--mut)}
  .dealrdy .drfail{margin:8px 0;font-size:12.5px;color:var(--carmine)}
  .dealrdy .vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .dealrdy .drboswrap{margin:0 0 10px}
  .dealrdy table.drbos{width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed}
  .dealrdy table.drbos thead th{text-align:left;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mut);padding:6px 0;border-bottom:1px solid var(--line)}
  .dealrdy table.drbos thead th:first-child,.dealrdy table.drbos tbody th{width:42%}
  .dealrdy table.drbos tbody th{font-weight:400;color:var(--mut);text-align:left;vertical-align:top;padding:7px 12px 7px 0;border-bottom:1px solid var(--line2);overflow-wrap:anywhere}
  .dealrdy table.drbos td{vertical-align:top;padding:7px 0;border-bottom:1px solid var(--line2);overflow-wrap:anywhere}
  .dealrdy table.drbos tr.drbosg th{width:auto;padding:12px 0 4px;font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--text);border-bottom:1px solid var(--line)}
  .dealrdy .drbosn{display:inline-block;min-width:2.2em;color:var(--mut2);font-variant-numeric:tabular-nums}
  .dealrdy .drblank{color:var(--mut);font-style:italic}
  .dealrdy .drfoot{padding:10px 0 12px;font-size:12px;color:var(--mut)}
  @media(max-width:520px){.dealrdy .drrow{grid-template-columns:minmax(0,1fr) auto}.dealrdy .drv{grid-column:1/-1;grid-row:2}}
  /* ---- Deal workspace (sale) ----
     A sheet, not a dashboard: a three-line header, one summary block that
     says how many things are left and what they are, a thin journey rail,
     then sections that open in place. Hairlines, not boxes; 16px gutters;
     tabular numbers; the owner of each thing in words, not pills. */
  .dwh{align-items:flex-start}
  .dwid{min-width:0}
  .dwid h2{font-size:22px;line-height:1.25;margin:2px 0 3px;overflow-wrap:anywhere}
  .dweye{font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--mut)}
  .dwsyn{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:4px;background:var(--amber);color:var(--surface);letter-spacing:.06em}
  .dwwho{font-size:14px;color:var(--mut);overflow-wrap:anywhere}
  .dwwho .linkbtn{font-size:14px;font-weight:600}
  .dwstk{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:12.5px}
  .dwwrap{padding:0 0 24px}
  .dwsynnote{margin:0 0 12px;font-size:12.5px;color:var(--amber);font-weight:600}
  .dwsum{padding:4px 0 14px;border-bottom:1px solid var(--line)}
  .dwhl{font-size:13px;font-weight:600;color:var(--text)}
  .dwwait{font-weight:400;color:var(--mut)}
  .dwn{font-family:var(--serif);font-weight:400;font-size:26px;line-height:1.2;letter-spacing:-.01em;margin:6px 0 10px;color:var(--text)}
  .dwleft{margin:0 0 10px;padding:0;list-style:none;counter-reset:dw}
  .dwleft>li{position:relative;padding:8px 0 8px 30px;border-top:1px solid var(--line2);counter-increment:dw}
  .dwleft>li:first-child{border-top:0}
  .dwleft>li::before{content:counter(dw);position:absolute;left:0;top:8px;width:20px;height:20px;border-radius:50%;background:var(--inset);color:var(--mut);font-size:11.5px;font-weight:700;display:flex;align-items:center;justify-content:center;font-variant-numeric:tabular-nums}
  .dwleft>li.urgent::before{background:var(--carmine);color:var(--on-miami);}
  /* the grouped paperwork facts: one thing, opened into its per-fact reasons */
  #drawer .dwgrp>summary,.dwgrp>summary{display:block;cursor:pointer;list-style:none;min-height:44px}
  .dwgrp>summary::-webkit-details-marker{display:none}
  .dwgrp>summary .dwlt::after{content:"›";display:inline-block;margin-left:6px;color:var(--mut);font-weight:400;transition:transform .15s ease}
  .dwgrp[open]>summary .dwlt::after{transform:rotate(90deg)}
  .dwgrp>summary:focus-visible{outline:2px solid var(--miami);outline-offset:2px}
  .dwfacts{list-style:none;margin:6px 0 2px;padding:0}
  /* one thing, opened: its detail rows sit under it, quieter, no box */
  .dwdet{padding:4px 0 6px}
  .dwdet .dwrow{padding:6px 0;font-size:13.5px}
  .dwreq{margin-top:8px}
  #drawer .dwreq>summary,.dwreq>summary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;list-style:none;cursor:pointer}
  .dwreq>summary::-webkit-details-marker{display:none}
  .dwreq[open]>summary{display:none}
  .dwdraft{padding:4px 0 0}
  .dwdrafttext{margin:4px 0 10px;padding:0 0 0 12px;border-left:3px solid var(--line);font-size:14px;line-height:1.5;color:var(--text);white-space:pre-wrap;user-select:text}
  .dwak{font-size:11.5px;font-weight:600;color:var(--mut);margin-right:2px}
  .dwdrafth{display:flex;align-items:center;gap:8px}
  .dwunsent{display:inline-flex;align-items:center;gap:4px;color:var(--text);letter-spacing:.06em}
  .dwfacts li{padding:6px 0;border-top:1px solid var(--line2);font-size:13px;line-height:1.45}
  .dwfk{display:block;font-weight:600;color:var(--text)}
  .dwfw{display:block;color:var(--mut)}
  .dwlt{font-size:15px;font-weight:600;line-height:1.35;color:var(--text)}
  .dwlw{font-size:12.5px;line-height:1.45;color:var(--mut);margin-top:1px}
  .dwown{font-weight:600;color:var(--text)}
  .dwown.customer{color:var(--voodoo)}
  .dwmore{font-size:12.5px;color:var(--mut);margin:-2px 0 10px 30px}
  .dwnt{font-size:12.5px;line-height:1.45;color:var(--mut);margin:4px 0 12px}
  .dwacts{display:flex;flex-wrap:wrap;gap:8px}
  .dwacts .btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
  .dwjour{margin:14px 0 8px}
  .dwrail{display:grid;grid-template-columns:repeat(8,1fr);gap:3px;margin:0;padding:0;list-style:none}
  .dwseg{position:relative;height:4px;border-radius:2px;background:var(--line)}
  .dwseg .vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .dwcap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 12px;margin-top:6px;font-size:12px;color:var(--mut);font-variant-numeric:tabular-nums}
  .dwcap b{font-weight:600;color:var(--text)}
  .dwlegend{display:inline-flex;align-items:center;gap:6px}
  .dwlegend i{display:inline-block;width:18px;height:4px;border-radius:2px;background:repeating-linear-gradient(90deg,var(--mut2) 0 4px,transparent 4px 7px)}
  .dwseg.done,.dwseg.na{background:var(--racing)}
  .dwseg.na{opacity:.35}
  .dwseg.untracked{background:repeating-linear-gradient(90deg,var(--mut2) 0 4px,transparent 4px 7px)}
  .dwseg.cur{background:var(--miami)}
  .dwseg.cur.open{background:var(--amber)}
  .dwsec{border-bottom:1px solid var(--line2)}
  #drawer .dwsec>summary,.dwsec>summary{display:grid;grid-template-columns:212px minmax(0,1fr) 14px;gap:4px 12px;align-items:baseline;min-height:44px;padding:11px 0;cursor:pointer;list-style:none}
  .dwsec>summary::-webkit-details-marker{display:none}
  .dwsec>summary::after{content:"›";color:var(--mut);transition:transform .15s ease;justify-self:end}
  .dwsec[open]>summary::after{transform:rotate(90deg)}
  .dwsec>summary:focus-visible,.dwinner>summary:focus-visible{outline:2px solid var(--miami);outline-offset:2px}
  .dwst{display:inline-flex;align-items:center;gap:8px;font-size:14.5px;font-weight:600;color:var(--text)}
  .dwsl{font-size:13px;line-height:1.4;color:var(--mut);overflow-wrap:anywhere}
  .dwdot{width:8px;height:8px;border-radius:50%;flex:none;background:var(--mut2)}
  .dwdot.done{background:var(--racing)}
  .dwdot.open{background:var(--amber)}
  .dwdot.waiting{background:var(--voodoo)}
  .dwdot.na{background:transparent;box-shadow:inset 0 0 0 1.5px var(--mut2)}
  .dwdot.untracked{background:transparent;box-shadow:inset 0 0 0 1.5px var(--mut2);opacity:.7}
  .dwbody{padding:0 0 14px}
  .dwrow{display:grid;grid-template-columns:minmax(96px,30%) minmax(0,1fr);gap:2px 12px;padding:8px 0;border-top:1px solid var(--line2);font-size:14px;line-height:1.4}
  .dwrow:first-child{border-top:0}
  .dwk{color:var(--mut);font-size:13px}
  .dwv{min-width:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
  /* a 44px hit box on an inline contact link without growing the row */
  .dwv a{display:inline-flex;align-items:center;box-sizing:border-box;min-height:44px;margin:-12px 0;vertical-align:middle}
  .dwnone{color:var(--mut);font-style:italic}
  .dwsrc{margin-left:8px;font-size:12px;color:var(--mut)}
  .dwnote{font-size:12.5px;color:var(--mut);margin-top:2px;line-height:1.45}
  .dwsub{margin:12px 0 2px;font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--mut)}
  .dwun{margin:6px 0;font-size:13.5px;line-height:1.5;color:var(--text)}
  .dwun span{color:var(--mut)}
  .dwfine{margin:8px 0 0;font-size:12px;line-height:1.45;color:var(--mut)}
  .dwfail{margin:10px 0;font-size:13px;color:var(--carmine);line-height:1.45}
  .dwlinks{padding-top:6px}
  .dwlinks .linkbtn{min-height:44px;display:inline-flex;align-items:center;font-weight:600}
  .dwinner{margin-top:8px}
  .dwinner>summary{display:flex;align-items:center;min-height:44px;cursor:pointer;font-size:14px;font-weight:600;color:var(--miami);list-style:none}
  .dwinner>summary::-webkit-details-marker{display:none}
  .dwinner .drboswrap{margin-top:0}
  .dwact{list-style:none;margin:0;padding:0}
  .dwact li{padding:6px 0;border-top:1px solid var(--line2);font-size:13.5px;line-height:1.4}
  .dwact li:first-child{border-top:0}
  .dwat{display:inline-block;min-width:70px;color:var(--mut);font-size:12.5px;font-variant-numeric:tabular-nums}
  .dwfoot{margin:16px 0 0;font-size:12px;color:var(--mut)}
  /* credit prep: the Dealertrack field number, quiet, before its meaning; a
     never-held field is a dashed slot that says where it goes instead */
  .dwcrn{display:inline-block;min-width:4em;color:var(--mut2);font-variant-numeric:tabular-nums;font-size:12px}
  .dwslot{display:inline-block;padding:3px 8px;border:1px dashed var(--mut2);border-radius:6px;font-size:12.5px;color:var(--mut)}
  .dwcrsub{margin:0 0 4px}
  /* the table inside the Buyer's Order preview is the readiness panel's */
  .dwbody table.drbos{width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed}
  .dwbody table.drbos thead th{text-align:left;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mut);padding:6px 0;border-bottom:1px solid var(--line)}
  .dwbody table.drbos thead th:first-child,.dwbody table.drbos tbody th{width:42%}
  .dwbody table.drbos tbody th{font-weight:400;color:var(--mut);text-align:left;vertical-align:top;padding:7px 12px 7px 0;border-bottom:1px solid var(--line2);overflow-wrap:anywhere}
  .dwbody table.drbos td{vertical-align:top;padding:7px 0;border-bottom:1px solid var(--line2);overflow-wrap:anywhere}
  .dwbody table.drbos tr.drbosg th{width:auto;padding:12px 0 4px;font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--text);border-bottom:1px solid var(--line)}
  .dwbody .drbosn{display:inline-block;min-width:2.2em;color:var(--mut2);font-variant-numeric:tabular-nums}
  .dwbody .drblank{color:var(--mut);font-style:italic}
  .dwbody .drnote{font-size:12px;color:var(--mut);line-height:1.4}
  .dwbody .drval{color:var(--text)}
  .dwbody .vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  @media(max-width:520px){#drawer .dwsec>summary,.dwsec>summary{grid-template-columns:minmax(0,1fr) 14px}.dwsl{grid-column:1;grid-row:2;padding-left:16px}.dwsec>summary::after{grid-row:1;grid-column:2}.dwn{font-size:23px}.dwrow{grid-template-columns:minmax(0,1fr)}.dwk{font-size:12px}}
  .drfoot .drws{font-weight:600;margin-right:8px;min-height:44px;display:inline-flex;align-items:center}
  /* the pending line opens the deal */
  /* the same metrics as the "checking…" line it replaces, so the list never shifts when the batch lands */
  button.ivdeal{display:block;width:100%;background:none;border:0;padding:0;font:inherit;font-size:12px;line-height:1.4;text-align:left;color:var(--mut);cursor:pointer}
  button.ivdeal:hover{color:var(--text)}
  button.ivdeal::after{content:" ›"}
  /* a 44px touch target that takes no more room than the line it replaces:
     the hit area grows into the card's own spacing, so a card never changes
     height when the batch lands (inventory-object: no page-top jump) */
  @media(pointer:coarse){.ivcard button.ivdeal{padding:14px 0;margin:-10px 0 -14px;position:relative}}
  /* Inventory: the pending car's one Deal line, as quiet as the meta above it */
  .ivdeal{font-size:12px;line-height:1.4;color:var(--mut);margin-top:3px;overflow-wrap:anywhere}
  .ivdeal.wait{opacity:.7}
  .ivdeal.bad,.ivdeal.conflict{color:var(--carmine)}
  .ivcard .ivdeal{margin:4px 0 0}
  /* Next for you: one row per thing, the object on the left with the rule
     that put it here under it, one action on the right. Rows, not cards;
     quieter than the Needs-you hero above it. */
  .nxrow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:center;padding:9px 12px 9px 16px;border-bottom:1px solid var(--line2)}
  .nxrow:last-child{border-bottom:0}
  .nxmain{min-width:0;display:flex;align-items:center;gap:10px}
  .nx-ph{width:44px;height:33px;border-radius:7px;overflow:hidden;flex:none;display:flex;align-items:center;justify-content:center;color:var(--mut);background:color-mix(in srgb, var(--line) 60%, var(--surface))}
  .nx-ph img{width:100%;height:100%;object-fit:cover}
  .nx-ico{width:44px;height:33px;flex:none;display:flex;align-items:center;justify-content:center;color:var(--mut)}
  .nxtext{min-width:0}
  .nxcar{appearance:none;background:none;border:0;margin:0;padding:0;font:inherit;color:inherit;text-align:left;cursor:pointer;min-height:44px;border-radius:8px}
  .nxcar .nxtext,.nxcar .nxobj,.nxcar .nxwhy{display:block}
  .nxcar:focus-visible{outline:2px solid var(--miami);outline-offset:2px}
  .nxobj{font-size:14px;line-height:1.3;overflow-wrap:anywhere}
  .nxobj b{font-weight:600}
  .nxobj .nx-stk{color:var(--mut);font-size:13px}
  .nxwhy{font-size:12.5px;line-height:1.35;color:var(--mut);margin-top:2px;overflow-wrap:anywhere}
  .nxwhy .nxk{font-weight:600;color:var(--text)}
  .nxwhy.late .nxk{color:var(--carmine)}
  .nxact{background:none;border:0;font:inherit;font-size:13px;font-weight:600;color:var(--miami);cursor:pointer;min-height:44px;min-width:44px;padding:0 4px;white-space:nowrap;border-radius:8px}
  .nxact:focus-visible,.nxmore:focus-visible{outline:2px solid var(--miami);outline-offset:2px}
  .nxmore{display:flex;width:100%;align-items:center;justify-content:space-between;min-height:44px;padding:0 16px;background:none;border:0;border-top:1px solid var(--line2);font:inherit;font-size:13px;font-weight:600;color:var(--miami);cursor:pointer;text-align:left}
  .nxfail{margin:8px 2px 0;font-size:12.5px;color:var(--carmine)}
  .nxnote{margin:8px 2px 0;font-size:12.5px;color:var(--mut)}
  @media(max-width:640px){.nxrow{padding:9px 8px 9px 12px;gap:4px 8px}.nx-ph,.nx-ico{width:40px;height:30px}}
  .nyhero{border-left:4px solid var(--hero-accent,var(--miami));padding:13px 17px}
  .nyhero .nyh-eyebrow{color:var(--hero-accent,var(--miami))}
  .nyhero .nyh-title{font-size:20px;line-height:1.25;margin-top:3px;letter-spacing:-.01em}
  .nyhero .nyh-sub{font-size:13px;margin-top:4px;line-height:1.45}
  @media(max-width:640px){ .nyhero{padding:12px 14px} .nyhero .nyh-title{font-size:18px} }
  /* Deep context behind a native <details>: collapsed by default so the top
     of Hub is calm, and keyboard-operable for free without inventing a
     toggle widget. */
  .hubmore{margin:22px 0 0;border-top:1px solid var(--line);padding-top:6px}
  .hubmore>summary{cursor:pointer;list-style:none;display:flex;align-items:baseline;gap:10px;
    padding:11px 2px;font-size:12px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;
    color:var(--mut);border-radius:8px;transition:color .14s ease}
  .hubmore>summary::-webkit-details-marker{display:none}
  .hubmore>summary::after{content:"▸";margin-left:auto;font-size:13px;transition:transform .16s ease;letter-spacing:0}
  .hubmore[open]>summary::after{transform:rotate(90deg)}
  .hubmore>summary:hover,.hubmore>summary:focus-visible{color:var(--text)}
  .hubmore .hubmore-hint{font-size:11px;font-weight:500;letter-spacing:.02em;text-transform:none;color:var(--mut2)}
  /* All-clear. Deliberately quiet and deliberately not a card -- when nothing
     is assigned to you the page should hand its weight to bleu noticed, not
     spend a panel congratulating you. */
  /* What's happening rows: one dot says CHANGED (something moved) or FOR YOU
     (information); the object's own name leads. */
  .hapdot{width:8px;height:8px;border-radius:50%;background:var(--line2);flex:none;margin-top:6px}
  /* green means done/healthy; "changed" is neutral news (ink), "for you" is
     Bleu information, attention is amber (onbleu Phase 2) */
  .hapdot.changed{background:var(--voodoo)} .hapdot.for_you{background:var(--miami)} .hapdot.changed.attn{background:var(--amber)}
  .row.hap{align-items:flex-start}
  .row.hap .hapbody{min-width:0}
  .row.hap .nm{overflow-wrap:anywhere}
  .row.hap.unread .nm{font-weight:700}
  .haptime{white-space:nowrap}
  /* Decisions rows: kind as a quiet eyebrow, the decision as the headline,
     the object under it, two or three facts, one line of why. The whole
     row is the target. */
  .dxrow{display:grid;grid-template-columns:1fr auto;gap:2px 12px;padding:12px 16px;border-bottom:1px solid var(--line2);cursor:pointer;align-items:center;min-height:44px}
  .dxrow:last-child{border-bottom:none}
  .dxrow:hover{background:var(--inset)}
  .dxrow:focus-visible{outline:2px solid var(--miami);outline-offset:-2px}
  .dxk{grid-column:1;font-family:var(--mono);font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--mut2)}
  .dxk.hold{color:var(--carmine)} .dxk.money{color:var(--amber)} .dxk.call{color:var(--miami)} .dxk.approve{color:var(--voodoo)}
  .dxmain{grid-column:1;min-width:0}
  .dxrow .chev{grid-column:2;grid-row:1/3}
  .dxh{font-weight:700;font-size:14px;line-height:1.3}
  .dxo{font-size:13px;margin-top:1px;overflow-wrap:anywhere}
  .dxo .ivstk{font-family:var(--mono);color:var(--mut);font-size:12px}
  .dxf{display:flex;flex-wrap:wrap;gap:2px 14px;margin-top:4px;font-size:12.5px;color:var(--mut)}
  .dxf b{font-family:var(--mono);font-variant-numeric:tabular-nums;color:var(--text);font-weight:600}
  .dxw{font-size:12px;color:var(--mut2);margin-top:3px;line-height:1.4}
  /* a reason repeated from the row above: same words, same contrast, a half-step smaller */
  .dxw.rep{font-size:11.5px}
  .dxacts{display:flex;flex-wrap:wrap;gap:8px}
  .dxzero{padding:22px 16px}
  /* Sourcing shares the row grammar; these are its own words */
  .sovs.good{color:var(--racing)} .sovs.bad{color:var(--carmine)} .sovs.mut{color:var(--mut);font-weight:600}
  .sofade{color:var(--amber)}
  .sophoto{float:left;width:80px;height:60px;object-fit:cover;border-radius:6px;margin:0 12px 6px 0;background:var(--line2)}
  .sophotoempty{display:flex;align-items:center;justify-content:center;font-size:10px;color:var(--mut);text-align:center;padding:6px;box-sizing:border-box}
  .sosourcelink{display:inline-flex;align-items:center;min-height:44px}
  .sostar{color:var(--amber);font-size:12px}
  .soscan{font-size:12px;color:var(--mut2);padding:8px 16px 4px;border-top:1px solid var(--line2);line-height:1.45}
  .sofresh{color:var(--racing)}
  .apdocbox iframe{width:100%;height:min(56vh,560px);border:none;background:#fff;display:block}
  .apdocbox img{width:100%;display:block}
  .kregnote{font-size:12.5px;color:var(--mut);margin:-4px 0 12px}
  .soacts{display:flex;flex-wrap:wrap;gap:8px;padding:12px 18px 2px}
  /* ===== The listing sheet: photo, actions, tabs =====
     One row of actions that scrolls sideways on a phone instead of
     stacking three deep; sticky tabs like the car sheet; facts that
     answer in one line and fold their reasons. */
  #drawer .lsacts{padding:0;margin:2px 0 4px}
  @media(max-width:640px){#drawer .lsacts{flex-wrap:nowrap;overflow-x:auto;margin:2px -16px 4px;padding:0 16px 2px;scrollbar-width:none}
    #drawer .lsacts::-webkit-scrollbar{display:none}
    #drawer .lsacts .btn{flex:none;white-space:nowrap}}
  #drawer .lstabs{margin-top:12px}
  [data-lspanel]{padding-top:4px}
  details.sofx{display:block;padding:0}
  #drawer details.sofx>summary,details.sofx>summary{display:grid;grid-template-columns:auto minmax(0,1fr) 14px;align-items:center;gap:10px;padding:12px 16px;min-height:44px;cursor:pointer;list-style:none}
  details.sofx>summary::-webkit-details-marker{display:none}
  details.sofx>summary .kfc{color:var(--mut2);font-size:15.5px;transition:transform .15s ease}
  details.sofx[open]>summary .kfc{transform:rotate(90deg)}
  details.sofx>.sofd{display:block;padding:0 16px 12px;line-height:1.45}
  .kcard:has(details.sofx) div.sofact{padding-right:40px}
  /* The person sheet's car list sits under the sticky tabs, so its own sort
     bar scrolls with the list instead of stacking a second sticky bar. */
  #drawer #pvbar{position:static}
  .note .av.av-onbleu{background:#071A3D;border:0;border-radius:24%;padding:0;overflow:hidden}
  .note .av.av-onbleu svg{display:block;width:100%;height:100%}
  html[data-theme="dark"] .note .av.av-onbleu{box-shadow:0 0 0 1px #3D5A99}
  /* A padded card whose first child is its header drew the header as an
     inset box inside the card (Print-outs' "Window card"). The header
     reaches the card's edges like every other card's. */
  #drawer .card.pad:not(#wantscard)>.grp:first-child{margin:-18px -18px 14px!important}
  /* Decisions' "What onbleu knows": the answer on the right, where it
     came from underneath -- the label and value had run together. */
  #drawer .kcard div.kfact{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 12px;align-items:baseline;padding:11px 16px}
  #drawer .kcard div.kfact>.kfd{grid-column:1/-1;padding:0}
  /* actions sit on the cards' edge, not 18px inside it */
  #drawer .soacts:not(.lsacts){padding-left:0;padding-right:0;margin-bottom:12px}
  /* a document preview inside a card keeps the card's 16px line */
  #drawer .kcard>.filebox{margin:12px 16px 16px}
  /* Wants was a padded card around an inset header: a box inside a box.
     Same shape as Contact now -- header flush, content on the 16px line. */
  #drawer #wantscard{padding:0}
  #drawer #wantscard>.grp{margin:0!important}
  #drawer #wantscard>:not(.grp){padding-left:16px;padding-right:16px}
  #drawer #wantscard>:last-child{padding-bottom:14px}
  #drawer .ptabs{margin-top:12px}
  [data-ppanel]{padding-top:4px}
  @media(max-width:640px){
    /* One named sort control replaces seven horizontally-scrolling chips. */
    #drawer #pvbar .sortrow{display:none}
    #drawer #pvbar .sortrow::-webkit-scrollbar{display:none}
    #drawer #pvbar .sortchip{flex:none}
    #drawer #pvbar .pvsortline{display:flex;gap:8px;margin:0 0 10px}
    #drawer #pvbar .pvsortsel{display:block;min-width:0;min-height:44px;flex:1}
    #drawer #pvbar .pvsortflip{display:inline-flex;min-width:44px;min-height:44px;align-items:center;justify-content:center}
    /* a car the person bought or sold: the photo, name and dates on the
       left; stock, price and gross stacked on the right -- ~80px, not 430 */
    #pvbody .rowstack{grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"face stock" "face price" "face gross";column-gap:12px;row-gap:1px;align-items:center;padding:12px 16px}
    #pvbody .rowstack>.rowface{grid-area:face;align-self:start}
    #pvbody .rowstack>span.mono{grid-area:stock;text-align:right!important}
    #pvbody .rowstack>span.n:nth-child(3){grid-area:price;text-align:right!important;font-size:14px;color:var(--text)}
    #pvbody .rowstack>span.n:nth-child(4){grid-area:gross;text-align:right!important;font-size:12.5px}
    #pvbody .rowstack .pvside{display:block;font-size:10.5px}
    #pvbody .rowstack .rowface .nm{display:block;font-size:14px;overflow-wrap:anywhere;white-space:normal}
    #pvbody .rowstack .rowface .submut{font-size:12px;line-height:1.35}
  }
  @media(min-width:641px){#drawer #pvbar .pvsortline{display:none}}
  /* figures inside a sheet are one strip on the sheet's inset, not cards */
  #drawer .dbig .c{background:var(--inset);border-color:transparent;box-shadow:none}
  .kcard.lsnext .sowhy{font-size:14.5px;font-weight:550;line-height:1.45}
  .kcard.lsnext{border-left:3px solid var(--line)}
  .kcard.lsnext.warn{border-left-color:var(--amber)}
  .kcard.lsnext.ok{border-left-color:var(--racing)}
  .lsstrip.lsgrid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;overflow:visible;padding:12px 14px 6px}
  .lsgrid3 .lsph{position:relative;display:block;border-radius:8px;overflow:hidden;aspect-ratio:3/2;background:var(--inset);min-height:44px}
  .lsgrid3 .lsph img,.lsgrid3 .lsdead{width:100%;height:100%;object-fit:cover;border-radius:0;display:block}
  .lsphlead{position:absolute;left:6px;top:6px;z-index:1;font-size:10.5px;font-weight:700;padding:2px 7px;border-radius:999px;background:rgba(8,18,32,.72);color:#fff}
  .lsgrid3 .lsmore{grid-column:1/-1;padding:4px 2px 0}
  @media(min-width:641px){.lsstrip.lsgrid3{grid-template-columns:repeat(4,minmax(0,1fr))}}
  .lsphacts{padding-top:6px;padding-bottom:12px}
  .sofact{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 12px;padding:10px 16px;border-bottom:1px solid var(--line2);align-items:baseline}
  .sofact:last-child{border-bottom:0}
  .sofl{font-size:13px;color:var(--mut);white-space:nowrap}
  .sofreshline{padding-top:0;padding-bottom:10px}
  .sofv{font-size:14px;font-weight:650;color:var(--text);text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
  .sofv.sofq{font-weight:500;font-style:italic;text-align:left;grid-column:1/3;color:var(--mut)}
  .sofd{grid-column:1/3;font-size:12.5px;color:var(--mut2)}
  .sowhy{padding-top:4px;font-size:13.5px;line-height:1.5}
  @media(min-width:861px) and (pointer:fine){
    .sorow{grid-template-columns:168px minmax(0,1fr) auto}
    .sorow .dxh{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  }
  .dxk.ok{color:var(--racing)} .dxk.mut{color:var(--mut2)}
  .aplinks{display:flex;flex-wrap:wrap;gap:8px;margin:12px 2px 0}
  /* Finance operations: the exception line on a bill row (reason › evidence
     › one next step), the bill's journey, and a car's costs */
  .apx{font-size:12.5px;line-height:1.45;color:var(--mut)}
  .apx .apxl{font-weight:650;color:var(--amber)}
  .apx .apxl.risk{color:var(--carmine)} .apx .apxl.quiet{color:var(--text)}
  .apx .apxn{display:block;color:var(--text);font-weight:500}
  .apx .apxn i{font-style:normal;color:var(--mut2)}
  @media(min-width:861px) and (pointer:fine){
    .aprow.apxrow .dxmain{display:block}
    .aprow.apxrow .dxf{flex-direction:row;justify-content:flex-start;align-items:baseline;gap:2px 14px;margin-top:4px}
    .aprow.apxrow .dxw{margin-top:4px}
  }
  .apx .apxa{display:block;color:var(--mut2);font-size:11.5px;margin-top:1px}
  .apjour{list-style:none;margin:12px 0 2px;padding:0}
  .apjour li{position:relative;display:grid;grid-template-columns:12px 92px minmax(0,1fr);gap:0 10px;align-items:baseline;padding:3px 0;font-size:12.5px;line-height:1.4}
  .apjour li:not(:last-child)::before{content:"";position:absolute;left:5px;top:15px;bottom:-5px;width:1.5px;background:var(--mut2);opacity:.3}
  .apjour .apjd{position:relative;top:1px;width:11px;height:11px;border-radius:50%;box-sizing:border-box;border:1.5px solid var(--line);background:var(--surface)}
  .apjour .done .apjd{background:var(--racing);border-color:var(--racing)}
  .apjour .now .apjd{background:var(--miami);border-color:var(--miami);box-shadow:0 0 0 3px var(--e100)}
  .apjour .weak .apjd{border-color:var(--amber);background:linear-gradient(90deg,var(--amber) 50%,var(--surface) 50%)}
  .apjour .gap .apjd{border:1.5px dashed var(--amber)}
  .apjour .na .apjd{opacity:.5}
  .apjour .apjl{font-weight:650;color:var(--text)}
  .apjour .todo .apjl,.apjour .na .apjl{font-weight:500;color:var(--mut)}
  .apjour .apjt{color:var(--mut);overflow-wrap:anywhere}
  .apjour .gap .apjt,.apjour .weak .apjt{color:var(--amber)}
  .apjour .apjw{grid-column:2/4}
  .apjour .gap .apjw{color:var(--amber);font-weight:650}
  .apalso{padding:6px 16px 12px;font-size:12.5px;color:var(--mut);line-height:1.5}
  .apalso b{color:var(--text);font-weight:600}
  .apsyn{font-family:var(--mono);font-size:10px;letter-spacing:.08em;color:var(--carmine)}
  .apcar .apcsum{display:flex;flex-wrap:wrap;gap:6px 24px;padding:10px 16px 12px;border-bottom:1px solid var(--line2)}
  .apcar .apcsum>div{display:flex;flex-direction:column;min-width:0}
  .apcar .apcsum .k{font-family:var(--mono);font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--mut2)}
  .apcar .apcsum .v{font-family:var(--mono);font-variant-numeric:tabular-nums;font-weight:650;font-size:15px;color:var(--text)}
  .apcar .apcrow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding:10px 16px;min-height:44px;box-sizing:border-box;border-bottom:1px solid var(--line2);align-items:start;cursor:pointer}
  .apcar .apcrow:last-of-type{border-bottom:0}
  .apcar .apcrow:hover{background:var(--inset)}
  .apcar .apcrow:focus-visible{outline:2px solid var(--miami);outline-offset:-2px}
  .apcar .apcrow .nm{font-weight:650;font-size:14px}
  .apcar .apcrow .n{font-family:var(--mono);font-variant-numeric:tabular-nums;font-weight:600;text-align:right;white-space:nowrap}
  .apcar .apcrow .apx{grid-column:1/-1}
  .apcar .apcnote{padding:10px 16px;font-size:12.5px;color:var(--mut);border-top:1px solid var(--line2)}
  .apcar .apcfoot{display:flex;justify-content:flex-end;padding:4px 8px}
  .apcar .apcfoot .sitlink{min-height:44px}
  /* Listings share the row grammar with a thumbnail of what the site shows */
  .lsrow{grid-template-columns:64px minmax(0,1fr) auto}
  .lsrow .dxk,.lsrow .dxmain{grid-column:2}
  .lsrow .chev{grid-column:3}
  .lsthumb{grid-column:1;grid-row:1/3;width:64px;height:44px;border-radius:6px;background:var(--inset);overflow:hidden;display:block;align-self:center}
  .lsthumb img{width:100%;height:100%;object-fit:cover;display:block}
  .dxf b.lsthin{color:var(--amber)}
  .lsrow.lsopen{background:var(--inset)}
  .lsstrip{display:flex;gap:6px;overflow-x:auto;padding:2px 14px 8px;align-items:center;scrollbar-width:thin}
  .lsstrip img,.lsstrip .lsdead{width:96px;height:64px;object-fit:cover;border-radius:6px;flex:none;background:var(--inset);display:block}
  .lsmore{flex:none;font-size:12px;color:var(--mut)}
  .lschips{display:flex;flex-wrap:wrap;gap:6px;padding-top:6px}
  .lschip{font-size:11.5px;padding:3px 8px;border-radius:999px;background:var(--inset);color:var(--mut)} .lschip.on{color:var(--racing)} .lschip.mut{opacity:.7}
  .btn.lsdanger{border-color:var(--carmine);color:var(--carmine)}
  .lsrow .dxh{white-space:normal;overflow-wrap:anywhere}
  .lsissues{display:flex;gap:6px;align-items:baseline}
  .lsissues b{color:var(--amber);white-space:nowrap;font-weight:700}
  .lsissues span{min-width:0}
  .lsfeedstatus{padding:0;border-top:1px solid var(--line2)}
  .lsfeedstatus>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;cursor:pointer;list-style:none}
  .lsfeedstatus>summary::-webkit-details-marker{display:none}
  .lsfeedstatus>summary b{margin-left:auto;color:var(--mut);font-weight:650;white-space:nowrap}
  .lsfeedstatus>summary::after{content:"+";font-size:16px;color:var(--mut2)}
  .lsfeedstatus[open]>summary::after{content:"−"}
  .lsfeedstatus>div{padding:0 16px 10px;line-height:1.45}
  [data-lspanel][hidden]{display:none!important}
  @media(max-width:640px){
    #lsfbar{padding:8px 10px;gap:6px}
    #lsfbar .ivfrow{gap:6px;row-gap:6px}
    #lsfbar .ivschips{gap:5px;padding-right:10px}
    #lsfbar .ivschip,#lsfbar .ivfiltbtn{padding:5px 10px}
    .lsrow{grid-template-columns:56px minmax(0,1fr) auto;gap:2px 10px;padding:10px 12px}
    .lsthumb{width:56px;height:42px}
    .lsrow .dxh{font-size:14.5px;line-height:1.25}
    .lsissues{display:block;margin-top:4px}
    .lsissues b{display:block;margin-bottom:1px}
    .lsfeedstatus>summary{padding:0 12px;gap:6px}
    .lsfeedstatus>summary b{font-size:11.5px}
    .lsfeedstatus>div{padding:0 12px 9px}
  }
  @media(max-width:360px){
    .lsfeedstatus>summary span{font-size:11.5px}
    .lsfeedstatus>summary b{white-space:normal;text-align:right;line-height:1.2}
  }
  /* a pointer gets a scan-dense row: kind | decision + object | facts | why, one line */
  @media(min-width:861px) and (pointer:fine){
    .dxrow{grid-template-columns:118px minmax(0,1fr) auto;gap:0 18px;padding:9px 16px;min-height:0}
    .dxk,.dxmain{grid-column:auto}
    .dxrow .chev{grid-column:auto;grid-row:auto}
    .lsrow{grid-template-columns:60px 118px minmax(0,1fr) auto}
    .lsrow .dxk,.lsrow .dxmain,.lsrow .chev{grid-column:auto}
    .lsthumb{grid-column:auto;grid-row:auto;width:60px;height:40px}
    /* the body itself is two columns: decision + object | the facts */
    .dxmain{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:18px;align-items:center}
    .dxh{grid-column:1;grid-row:1;font-size:14px}
    .dxo{grid-column:1;grid-row:2;margin:0}
    .dxf{grid-column:2;grid-row:1/3;margin-top:0;flex-direction:column;gap:0;justify-content:center}
    /* the why was display:none here, so on a desktop no decision said why it
       was on the list; it now sits under the decision and its object */
    .dxw{grid-column:1/-1;grid-row:3;margin-top:2px}
    /* Decisions: three facts are taller than headline + car, and the grid
       spread the difference between those two lines, so one row read
       "On the floor 1,756 days", a gap, "Maybach 57 S", and the next, with
       two facts, sat tight: a list whose rhythm changed row to row. The
       facts now span the whole row and any extra height falls below the why. */
    #dxbody .dxmain{grid-template-rows:auto auto 1fr}
    #dxbody .dxf{grid-row:1/-1;justify-content:flex-start;align-self:start}
    #dxbody .dxw{grid-column:1;align-self:start}
  }
  .allclear{margin:20px 2px 16px}
  .allclear-t{font-size:15.5px;font-weight:600;color:var(--text)}
  .allclear-s{font-size:13px;color:var(--mut);margin-top:2px}
  /* A situation is a paragraph, not a card: headline, what it means, the cars
     worth looking at, then its actions. Same container as a row so the section
     stays one object instead of a wall of panels. */
  .sit{padding:12px 18px;border-bottom:1px solid var(--line2)}
  .sit:last-child{border-bottom:none}
  .sit-top{display:flex;align-items:baseline;gap:9px}
  .sit-dot{width:7px;height:7px;border-radius:50%;flex:none;position:relative;top:-2px}
  .sit-dot.hold{background:var(--carmine)} .sit-dot.money{background:var(--amber,#A8620A)} .sit-dot.call{background:var(--miami)}
  .sit-title{font-size:14px;font-weight:650;line-height:1.35;flex:1;min-width:0}
  .sit-fig{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:13px;font-weight:700;white-space:nowrap}
  .sit-mean{font-size:13px;color:var(--mut);line-height:1.5}
  /* Release 2: consequence and action on one line under the finding. */
  .sit-line{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin-top:4px}
  .sitlink{background:none;border:0;padding:0;font:inherit;font-size:13px;font-weight:600;
    color:var(--miami);cursor:pointer;white-space:nowrap}
  .sitlink:hover{text-decoration:underline}
  .sitlink.quiet{color:var(--mut2);font-weight:500}
  .sitlink:focus-visible{outline:2px solid var(--miami);outline-offset:2px;border-radius:3px}
  .sit-drv{font-family:var(--mono);font-size:9.5px;letter-spacing:.07em;text-transform:uppercase;color:var(--mut2);margin-top:6px}
  .sit-ex{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;margin-top:7px}
  /* The label shared row one with the first chip and the rest wrapped
     under it, so the group read as one chip singled out and two orphans.
     flex-basis:100% puts the label on its own line and lets the chips wrap
     as one set. */
  .sit-exl{font-family:var(--mono);font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--mut2);flex:0 0 100%;margin-bottom:1px}
  .sit-chip{font-size:11.5px;padding:2px 0;border-radius:0;background:none;border:0;
    box-shadow:inset 0 -1px 0 var(--line2);
    cursor:pointer;white-space:nowrap;transition:border-color .13s ease,color .13s ease}
  .sit-chip b{font-family:var(--mono);font-weight:600;color:var(--mut)}
  .sit-chip:hover{border-color:var(--miami);color:var(--miami)}
  .sit-chip:hover b{color:var(--miami)}
  .sit-act{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px}
  @media(max-width:640px){
    .sit{padding:14px 15px}
    .sit-title{font-size:14px}
    .sit-ex{gap:5px}
    .sit-chip{max-width:100%;overflow:hidden;text-overflow:ellipsis}
  }
  @media(max-width:640px){ .hubmore .hubmore-hint{display:none} }
  .hubmore.sitmore{margin:10px 0 0;border-top:none;padding-top:0}
  .hubmore.sitmore>summary{padding:9px 2px;font-size:11px;letter-spacing:.08em}
  /* Hub's noticed rows on a phone: .priority is a single flex line, which on a
     narrow screen squeezes the title into three wrapped lines and truncates the
     sub-line ("Owed to the seller…") -- exactly the detail that says why the row
     is there. Let the body own the full width and drop the figure and its
     actions onto a second line underneath. */
  @media(max-width:640px){
    /* Scoped with :has(.pri-val) on purpose. Only rows carrying a figure need
       the second line; a plain note or DM row has nothing to put beside the
       chevron, so wrapping it stranded the chevron alone under the text with
       a band of dead space. Those rows stay on one line. */
    .hubsec .priority:has(.pri-val){flex-wrap:wrap;row-gap:8px;align-items:flex-start}
    .hubsec .priority:has(.pri-val) .pri-body{flex:1 1 100%;order:2;min-width:0}
    .hubsec .priority:has(.pri-val) .pri-sub{white-space:normal}
    .hubsec .priority:has(.pri-val) .decidecat{order:1}
    .hubsec .priority:has(.pri-val) .pri-val{order:3;margin-left:auto;font-size:14px;font-weight:700}
    .hubsec .priority:has(.pri-val) .btn.sm{order:4}
    .hubsec .priority:has(.pri-val) .chev{order:5;align-self:center}
  }
  @keyframes flashhi{0%,100%{box-shadow:none}30%{box-shadow:0 0 0 3px var(--e100)}}
  .flashhi{animation:flashhi .9s ease}
  .barq{width:100%;height:7px;border-radius:999px;background:var(--inset);overflow:hidden;align-self:center}
  .barq>span{display:block;height:100%;border-radius:999px}
  .gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;padding:14px 16px}
  .ph{position:relative;display:block;aspect-ratio:1;border-radius:9px;overflow:hidden;border:1px solid var(--line);background:var(--inset)}
  .ph img{width:100%;height:100%;object-fit:cover;display:block}
  .ph .phk{position:absolute;left:0;bottom:0;right:0;background:rgba(8,18,32,.66);color:#fff;font-size:9.5px;padding:2px 5px;font-family:var(--mono);font-variant-numeric:tabular-nums;text-transform:capitalize}
  .ivtop{position:sticky;top:53px;z-index:4;background:var(--inset);border-bottom:1px solid var(--line);padding:9px 16px}
  /* A sticky bar stops at its scroller's content edge, not its top edge:
     top:0 left the sheet's own top padding (22px) open above the tabs, and
     the record scrolled through that strip -- "Needs attention" peeking out
     over Overview/Notes/Files. Sticking at minus the padding puts the bar
     flush with the top of the sheet. */
  #drawer .ivtop{top:-22px}
  /* .ivtop is position:sticky, and per spec its sticky containing block is
     the nearest ancestor that establishes a scroll container -- which
     includes ANY element with overflow != visible, even one (like .card)
     that the user never actually scrolls themselves. .card's own
     overflow:hidden (there purely to clip content to its 16px rounded
     corners) was silently becoming that container instead of the
     viewport, breaking the sticky math on every card that wraps an
     .ivtop: live-reproduced on Customers at scroll position 0 -- the
     header rendered pre-offset by its own `top` value as though already
     stuck, permanently overlapping the row right below it (reported
     live: a row's dollar figures visibly bleeding out above the column
     header). Same bug shape hits the Inventory table header, the Capital
     drawer's costing-interest table, and the Payables/Performance "every
     car" listings -- every other .card that wraps an .ivtop. Scoped with
     :has() so only cards that actually contain a sticky .ivtop lose their
     clip, with zero effect on the hundreds of other .card usages that
     still rely on overflow:hidden for corner clipping. The card's own
     first child (whichever it is -- .ivtop itself, or a .grp header
     sitting above it) gets a matching top radius so the rounded corner
     still reads correctly without the parent doing the clipping. */
  .card:has(.ivtop){overflow:visible}
  .card:has(.ivtop)>:first-child{border-radius:15px 15px 0 0}
  .cartabs{margin:14px -24px 4px;border-radius:0}
  /* The bleed has to match the drawer's own padding, which changes at 860px
     (#drawer{padding:20px 16px}), not at 640px. Between the two the tab row
     was pulled 24px into a 16px gutter -- 8px of the sheet hanging past its
     own right edge, and a horizontal scrollbar on the record. iPad portrait
     at 834px sits exactly in that band. */
  @media(max-width:860px){.cartabs{margin:14px -16px 4px}}
  /* Car-drawer tabs used to share .sortchip with sort/filter chips
     app-wide — a mono, uppercase, tiny-text treatment built for a filter
     row, not navigation. The app already has a real tab component
     (.tabs/.tab, see #aptabs on Payables): sans-serif, normal case, solid
     accent fill on the active tab. Reusing that here instead of inventing
     a one-off style — one real "this is a tab" pattern for the whole app. */
  .cartabs .tabs{margin:0;gap:4px}
  .cartabs .tab{padding:7px 13px;font-size:13px}
  @media(max-width:860px){.cartabs .tab{font-size:13.5px;padding:9px 13px}}
  /* .sortrow used to double up with .ivcols below it — the exact same
     fields named twice, once as pills, once as plain column labels (a
     phone can't show an 8-column grid, so it stays the sort control
     there — see the mobile override below). On desktop, where .ivcols
     already lines up with the data grid, the column labels themselves
     become the sort control instead and .sortrow goes away. */
  .ivtop .sortrow{display:none;flex-wrap:wrap;gap:6px;margin-bottom:9px}
  .ivcols{display:grid;gap:8px;font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:10px;letter-spacing:.05em;text-transform:uppercase;color:var(--mut)}
  .ivcols .r{text-align:right}
  .ivcols button.colsort{all:unset;box-sizing:border-box;width:100%;cursor:pointer;font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;display:inline-flex;align-items:center;gap:2px;justify-content:flex-start}
  .ivcols button.colsort.r{justify-content:flex-end}
  .ivcols button.colsort:hover{color:var(--text)}
  .ivcols button.colsort.on{color:var(--text);font-weight:700}
  /* A couple of tables (Inventory, a customer's car list) can sort by more
     fields than they show as columns (e.g. "Days on floor" has no column
     of its own — it's in the subtext under the car name). Those extra
     dimensions move into one compact dropdown next to the headers instead
     of a whole second row of pills. */
  .ivcolswrap{display:flex;align-items:center;gap:10px}
  .ivcolswrap .ivcols{flex:1;min-width:0}
  .sortsel{flex:none;font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:10px;letter-spacing:.05em;text-transform:uppercase;color:var(--mut);background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:3px 6px;cursor:pointer;max-width:130px}
  .sortsel:hover{color:var(--text);border-color:var(--mut2)}
  .sortchip{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:10px;letter-spacing:.04em;text-transform:uppercase;padding:4px 9px;min-height:22px;border-radius:999px;border:1px solid var(--line);background:var(--bg);color:var(--mut);cursor:pointer;white-space:nowrap}
  @media(max-width:860px){.sortchip{padding:9px 12px;min-height:36px;font-size:11px}}
  .sortchip:hover{color:var(--text);border-color:var(--mut2)}
  .sortchip.on{background:var(--text);color:var(--bg);border-color:var(--text)}
  .tl{padding:6px 16px 12px}
  .tlrow{display:flex;gap:11px;padding:9px 0;border-bottom:1px solid var(--line)}
  .tlrow:last-child{border-bottom:none}
  .tldot{width:9px;height:9px;border-radius:50%;background:var(--miami);flex:none;margin-top:4px;box-shadow:0 0 0 3px var(--inset)}
  .tlb{flex:1;min-width:0}
  .tltxt{font-size:13px;color:var(--text);white-space:pre-wrap;word-break:break-word}
  .fchips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
  /* Ask's followup chips (askRender()) can be full natural-language
     questions, not just short seed prompts — long enough on their own to
     hit the flexbox "won't shrink below min-content" gotcha: a flex item
     with white-space:nowrap has a min-content width equal to its full
     unwrapped text, so max-width:100%+text-overflow:ellipsis silently
     never engages without an explicit min-width:0 override (same fix
     already applied everywhere else in this file that ellipsis-truncates
     a flex item, e.g. .bchan .lbl / .gsnm) — without it the chip (and
     everything sharing its row) can overflow past the screen edge instead
     of truncating in place. */
  .fchip{display:inline-flex;align-items:center;gap:4px;font-size:11px;padding:3px 8px;border-radius:7px;border:1px solid var(--line);background:var(--inset);color:var(--miami);text-decoration:none;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .fchip svg{flex:none}
  .fchip:hover{border-color:var(--miami)}
  .dmgviews{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;padding:14px 16px}
  .dmgsvg{width:100%;height:auto;display:block;border-radius:9px}
  .dmglist .row .dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:7px;vertical-align:0}
  .legend{display:flex;gap:16px;padding:12px 2px 0;font-size:11.5px;color:var(--mut)}
  .legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px}
  /* ---- Inventory: view toggle, filter bar, card grid ---- */
  .ivviews{display:flex;gap:2px;background:var(--inset);border:1px solid var(--line);border-radius:11px;padding:3px}
  .ivviewbtn{font-family:var(--sans);font-size:11.5px;font-weight:600;color:var(--mut);padding:6px 13px;border-radius:8px;cursor:pointer;border:none;background:none}
  .ivviewbtn.on{background:var(--surface);color:var(--text);box-shadow:0 2px 6px rgba(16,24,40,.1)}
  .ivfbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:10px 16px;background:var(--inset);border-bottom:1px solid var(--line)}
  /* .ivfrow had no rule at all above 860px, so it fell back to a block box
     that shrink-wrapped beside the search field: at 1440px the four controls
     were stacked into a narrow column with two thirds of the bar left empty,
     and the mode switch's margin-left:auto did nothing because auto margins
     need a flex context. One row that takes the width the search field does
     not, with the mode switch at the far end where it reads as a separate
     kind of control. */
  .ivfrow{display:flex;align-items:center;gap:9px;flex:1 1 380px;flex-wrap:wrap;row-gap:8px}
  .ivsearch{display:flex;align-items:center;gap:7px;background:var(--surface);border:1px solid var(--field-border);border-radius:11px;padding:7px 12px;font-size:12.5px;flex:0 1 210px}
  .ivsearch input{border:none;outline:none;background:none;font-size:12.5px;font-family:var(--sans);color:var(--text);width:100%}
  .ivsearch svg{flex:none;color:var(--mut)}
  .ivscanbtn{min-width:44px;min-height:44px;justify-content:center;flex:none;border:none;background:none;padding:0;margin:0;color:var(--mut);cursor:pointer;display:inline-flex;align-items:center;transition:color .13s ease}
  .ivscanbtn:hover{color:var(--miami)}
  .ivschip{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;color:var(--mut);background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:6px 12px;white-space:nowrap;cursor:pointer}
  .ivschip.on{background:linear-gradient(135deg,rgba(var(--voodoo-rgb),.16),rgba(var(--voodoo-rgb),.08));color:var(--voodoo);border-color:rgba(var(--voodoo-rgb),.3)}
  .ivschip select{border:none;background:none;font:inherit;color:inherit;cursor:pointer;outline:none}
  /* The advanced-filter trigger states its own load: "Filters" when clean,
     "Filters 2" when two are applied, so a filtered result set can never look
     like an unfiltered one. That ambiguity is how somebody concludes a car is
     missing from inventory. */
  .ivfiltbtn{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--mut);background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:6px 12px;white-space:nowrap;cursor:pointer}
  .ivfiltbtn.on{background:linear-gradient(135deg,rgba(var(--voodoo-rgb),.16),rgba(var(--voodoo-rgb),.08));color:var(--voodoo);border-color:rgba(var(--voodoo-rgb),.3)}
  .ivfiltbtn .n{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--voodoo);color:var(--on-miami);font-size:10px;font-variant-numeric:tabular-nums;}
  .ivsheet{position:fixed;inset:0;z-index:60;display:flex;align-items:flex-end;justify-content:center}
  .ivsheet .scrim{position:absolute;inset:0;background:rgba(10,20,40,.34)}
  .ivsheet .panel{position:relative;width:100%;max-width:560px;background:var(--surface);border-radius:20px 20px 0 0;padding:18px 18px calc(18px + env(safe-area-inset-bottom));box-shadow:0 -10px 40px rgba(10,20,40,.18);max-height:82vh;overflow-y:auto}
  .ivsheet h3{margin:0 0 14px;font-size:16px}
  .ivsheet .fld{display:block;margin-bottom:14px}
  .ivsheet .fld span{display:block;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--mut2);margin-bottom:6px}
  .ivsheet select{width:100%;min-height:44px;font:inherit;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:var(--inset);color:inherit}
  .ivsheet .acts{display:flex;gap:10px;margin-top:4px}
  .ivsheet .acts button{flex:1;min-height:48px;border-radius:12px;font:inherit;font-weight:600;cursor:pointer}
  @media(min-width:641px){.ivsheet{align-items:center}.ivsheet .panel{border-radius:18px;max-width:460px}}
  /* A popover is not a modal. Sort and Filters are small questions asked at a
     control, so where the answer fits beside the control that asked it, it
     opens there and the rest of the screen stays live -- stopping the world
     behind a scrim to change "Newest" to "Oldest" is not worth the ceremony.
     A phone has no "beside": the list is the whole screen and the thumb is at
     the bottom, so it keeps the sheet. The test is fit, not breakpoint -- a
     panel that would run off the viewport falls back to the sheet anywhere. */
  .ivsheet.ivanchor{display:block}
  .ivsheet.ivanchor .scrim{background:transparent}
  .ivsheet.ivanchor .panel{position:absolute;width:280px;max-width:calc(100vw - 20px);
    border-radius:14px;padding:6px;max-height:none;
    box-shadow:0 14px 34px rgba(10,20,40,.16),0 0 0 1px var(--line)}
  .ivsheet.ivanchor.ivsortsheet .panel{width:max-content;min-width:220px;max-width:min(360px,calc(100vw - 20px))}
  .ivsheet.ivanchor h3{display:none}
  .ivsheet.ivanchor .ivsortlist{margin:0}
  .ivsheet.ivanchor .fld{margin:10px 8px 12px}
  .ivsheet.ivanchor .acts{margin:2px 8px 6px}
  .ivsheet.ivanchor .acts button{min-height:36px;border-radius:9px;font-size:13px}
  .ivsheet.ivanchor .ivsortopt{min-height:36px;font-size:13px;padding:0 10px}
  @media(pointer:coarse){
    .ivsheet.ivanchor .ivsortopt{min-height:44px;font-size:14px}
    .ivsheet.ivanchor .acts button{min-height:44px}
    .ivsheet.ivanchor select{min-height:44px}
  }
  /* Sort trigger: the same chip geometry as Filters, because it is the same
     kind of control -- one that opens a surface. The "Sort" word stays quiet
     and the current order is the loud part, since the order is the thing
     being reported. */
  .ivsortbtn{color:var(--text)}
  .ivsortbtn .k{color:var(--mut2);font-weight:600}
  .ivsortlist{display:flex;flex-direction:column;gap:2px;margin:0 0 14px}
  .ivsortopt{display:flex;align-items:center;justify-content:space-between;gap:10px;
    width:100%;min-height:48px;padding:0 14px;font:inherit;font-size:14px;text-align:left;
    background:none;border:0;border-radius:10px;color:var(--text);cursor:pointer}
  .ivsortopt:hover{background:var(--inset)}
  .ivsortopt.on{background:linear-gradient(135deg,rgba(var(--voodoo-rgb),.16),rgba(var(--voodoo-rgb),.08));
    color:var(--voodoo);font-weight:600}
  .ivsortopt .ic{color:inherit}
  /* The model year is part of the car's name, not a separate fact, so it
     shares the name's weight and only steps back in colour -- enough to scan
     "the 2018 one" down a column without reading, not enough to become a
     second column. Cars with no year on file simply start at the make. */
  .ivyr{color:var(--mut2);font-variant-numeric:tabular-nums}
  /* "What bleu knows" — one block, four tones, no badge explosion. */
  .kcard .kflist{padding:0}
  /* .kcard is the Check-in Station's card (28px padding, 640px max, big
     shadow). The sheets -- the car's "What bleu knows", Decisions, Payables,
     Listings, Sourcing -- borrowed the class for their sections and got the
     kiosk's 28px padding around headers built to sit flush: a box floating
     inside a box. Inside a sheet it is an ordinary card. */
  #drawer .kcard{max-width:none;padding:0;border-radius:16px;box-shadow:var(--shadow-sm);overflow:hidden;margin-bottom:12px}
  /* the .pad blocks inside leaned on the kiosk's 28px for their inset;
     they carry their own now, on the same 16px line as the rows */
  #drawer .kcard .pad{padding-left:16px;padding-right:16px;padding-bottom:14px}
  .kfact{border-bottom:1px solid var(--line2)}
  .kfact:last-child{border-bottom:0}
  .kfact>summary{display:grid;grid-template-columns:14px 1fr auto 14px;align-items:center;
    gap:10px;padding:11px 16px;cursor:pointer;list-style:none;min-height:44px}
  .kfact>summary::-webkit-details-marker{display:none}
  .kfdot{width:9px;height:9px;border-radius:99px;justify-self:center}
  .kfl{font-size:13px;color:var(--mut)}
  .kfv{font-size:14px;font-weight:650;color:var(--text);text-align:right}
  .kf-mut .kfv{color:var(--mut);font-weight:600}
  .kf-bad .kfv{color:var(--carmine)}
  .kfc{color:var(--mut2);font-size:15.5px;transition:transform .15s ease}
  .kfact[open]>summary .kfc{transform:rotate(90deg)}
  .kfd{padding:0 16px 14px 40px;font-size:13px;color:var(--mut);display:flex;
    flex-direction:column;gap:4px}
  .kfcav{color:var(--mut2);font-style:italic}
  .kfact-a{color:var(--miami);font-weight:600}
  .kfmore>summary{padding:10px 16px;font-size:12.5px;color:var(--mut);cursor:pointer;
    list-style:none;min-height:44px;display:flex;align-items:center}
  .kfmore>summary::-webkit-details-marker{display:none}
  .kfmore[open]>summary{border-bottom:1px solid var(--line2)}
  /* Board composer disclosure. Closed it is one 44px row; open it is exactly
     the composer that was always there. */
  .bcompose{margin:0 0 14px}
  .bhead{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:10px 16px;margin-bottom:6px}
  .bheadtxt{min-width:0;flex:1 1 0}
  .bhead{flex-wrap:nowrap}
  .bhead:has(>.bcompose[open]){flex-wrap:wrap}
  .bheadtxt .sub{margin-bottom:0}
  .bhead>.bcompose:not([open]){margin:0 0 4px;flex:none;background:none;border:0}
  .bhead>.bcompose[open]{flex:1 1 100%;order:3;margin:6px 0 8px}
  .bhead>.bcompose:not([open])>.bcomposesum{padding:0 18px;border-radius:999px;background:var(--surface);border:1px solid var(--line);color:var(--text);font-size:14px;font-weight:600;box-shadow:none;gap:6px}
  .bhead>.bcompose:not([open])>.bcomposesum:hover{border-color:var(--miami);color:var(--miami)}
  .bcplus{font-size:18px;line-height:1;font-weight:500}
  .bcomposesum{display:flex;align-items:center;gap:9px;min-height:44px;padding:0 16px;
    background:var(--surface);border:1px solid var(--line);border-radius:14px;
    font-size:14px;font-weight:600;color:var(--mut);cursor:pointer;list-style:none;
    box-shadow:var(--shadow-sm)}
  .bcomposesum::-webkit-details-marker{display:none}
  .bcompose[open]>.bcomposesum{margin-bottom:8px;color:var(--text)}
  .bcpen{font-size:13px}
  .bneeds{margin-bottom:14px}
  .bnyrow{align-items:center}
  .bnyrow .nm{font-weight:600}
  /* A note reached from "Needs you" is briefly marked so the eye lands on it
     rather than on the top of whatever section it happened to live in. */
  @keyframes bnhit{0%{background:rgba(var(--voodoo-rgb),.18)}100%{background:transparent}}
  .bnhit{animation:bnhit 1.8s ease-out 1}
  /* The legend explains the dots. It is not a control, so it must not look
     like the chips directly above it -- that similarity is what made a row of
     explanations read as a row of filters. */
  .ivlegend{display:flex;align-items:center;gap:16px;padding:10px 16px 0;font-size:11px;color:var(--mut);flex-wrap:wrap}
  .ivlegend b{display:flex;align-items:center;gap:5px;font-weight:600}
  /* 260px columns packed four narrow cards into a 1200px column and then
     cut the names to fit them. Wider columns, same grid. */
  /* A quiet line is still a control: on a finger it has to be reachable,
     so it keeps a 44px target without dressing itself back up as a button. */
  .ivcapnote{cursor:pointer;margin:0 0 12px;display:block;line-height:1.45}
  .ivcapnote u{color:var(--miami);text-decoration:none;font-weight:600;white-space:nowrap}
  @media(pointer:coarse){.ivcapnote{padding:13px 0;margin:-8px 0 0}}
  .ivgrid{flex:1;overflow-y:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px;padding:14px 16px 22px;align-content:start}
  .ivcard{background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column;position:relative}
  .ivcbody{padding:15px 16px 13px 30px}
  .ivctop{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:7px;gap:8px}
  .ivctop .ivn{display:flex;align-items:center;gap:7px;min-width:0}
  .curole{display:flex;flex-wrap:wrap;align-items:center;gap:4px 7px}
  /* Customers: working lists and the duplicates queue */
  /* Working lists wrap where there is room. The phone override below keeps
     them in one labelled strip so the first relationship is not pushed down
     by several rows of secondary controls. */
  .culensbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:0 0 10px}
  .culensbar .ivschip{min-height:36px;flex:none}
  .cudupline{padding:0 0 12px}
  .culens .culn{font-variant-numeric:tabular-nums;color:var(--mut2);font-weight:600}
  .culens.on .culn{color:inherit}
  .cudupbtn{min-height:44px}
  @media(pointer:coarse){.culensbar .ivschip{min-height:44px}}
  .culwhy .srctag{margin-left:4px}
  .duplist{display:grid;gap:14px;padding:4px 0 24px}
  .duppair{border-top:1px solid var(--line);padding-top:12px}
  .duppair:first-child{border-top:0;padding-top:0}
  .dupev{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 6px;font-size:13.5px;font-weight:600;margin-bottom:8px}
  .dupsides{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px}
  .dupside{min-width:0;padding:10px 12px;border-radius:12px;background:var(--inset)}
  .dupside .dupname{font-weight:600;font-size:14.5px;min-height:44px;display:inline-flex;align-items:center;text-align:left;overflow-wrap:anywhere}
  .dupk{font-size:12px;color:var(--mut);margin:-4px 0 6px}
  .dupf{display:grid;grid-template-columns:86px minmax(0,1fr);gap:6px;padding:4px 0;font-size:13px;border-top:1px solid var(--line2)}
  .dupf .k{color:var(--mut);font-size:12px}
  .dupf .v{overflow-wrap:anywhere}
  .dupf.hit .v{font-weight:600;color:var(--text)}
  .dupf .dupsame{font-size:11px;font-weight:600;color:var(--miami)}
  .cuoff{padding:10px 16px 14px;font-size:12.5px;color:var(--mut)}
  .dupq{font-size:12.5px;font-weight:600;color:var(--text);margin-top:12px}
  .dupwhen{font-size:12.5px;color:var(--mut);padding:4px 0 0}
  .dupneed{margin-top:8px}
  .dupacts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:6px}
  .dupacts .dupl8r{margin-left:auto}
  @media(max-width:520px){.dupacts .btn{flex:1 1 calc(33% - 6px);padding-left:8px;padding-right:8px}.dupacts .dupl8r{margin-left:0}}
  .dupacts .btn{min-height:44px}
  .dupacts .btn[disabled]{opacity:.45;cursor:not-allowed}
  .dupneed{font-size:12px;color:var(--mut)}
  @media(max-width:520px){.dupsides{grid-template-columns:1fr 1fr;gap:8px}.dupside{padding:8px}.dupf{grid-template-columns:1fr}}
  /* Customers: face, name, one line of why, one figure (see cuCardHTML) */
  .cucard .cubody{display:grid;grid-template-columns:44px minmax(0,1fr) auto;column-gap:12px;align-items:center;padding:14px 16px}
  .cucard .cumain{min-width:0}
  .cucard .cumain>b{display:block;font-size:15.5px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
  .cucard .cuwhy.culwhy{white-space:normal;overflow-wrap:anywhere}
  .rowstack .culwhy{display:block;margin-top:2px;font-size:12.5px;font-weight:400;color:var(--mut);white-space:normal}
  /* Pay run: payable bills toggle from anywhere on the row; bills that need a decision sit apart with their reason and the way forward */
  .prtools{display:flex;gap:8px;margin:6px 0 4px;flex-wrap:wrap}
  .prgrp{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:18px 2px 8px}
  .prrow{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:2px 12px;align-items:start;padding:14px 16px;border-top:1px solid var(--line);cursor:pointer;-webkit-tap-highlight-color:transparent}
  .card>.prrow:first-child{border-top:0}
  .prrow input[type=checkbox]{width:22px;height:22px;margin:1px 0 0;accent-color:var(--miami);cursor:pointer}
  .prrow.on{background:color-mix(in srgb,var(--miami) 7%,transparent)}
  .prrow .prmain{min-width:0}
  .prrow .nm{display:block;overflow-wrap:anywhere}
  .prrow .pramt{text-align:right;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
  .prrow.hold{grid-template-columns:minmax(0,1fr) auto;cursor:default}
  .prrow .prwhy{margin-top:6px;font-size:12.5px;line-height:1.4;color:var(--mut)}
  .practs{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
  .prtools .btn,.practs .btn,.prbar .btn{min-height:44px}
  .prbar{position:sticky;bottom:12px;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 4px;padding:10px 10px 10px 16px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}
  .prbar .prtot{font-size:18px;color:var(--miami)}
  @media(max-width:860px){.prbar{bottom:calc(var(--dock-clearance,104px) - 12px)}}
  .cucard .cuwhy{margin-top:3px;font-size:12.5px;color:var(--mut);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}
  .cucard .cufig{display:flex;flex-direction:column;align-items:flex-end;gap:3px;text-align:right}
  .cucard .cufig .cudir{display:flex;align-items:baseline;gap:5px;white-space:nowrap}
  .cucard .cufig .k{font-size:10.5px;color:var(--mut);font-weight:500}
  .cucard .cufig .v{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:13px;color:var(--text);white-space:nowrap}
  .cucard .curole{display:block}
  .cucard .curole .pill{padding:0;background:none;font-size:11.5px;font-weight:600;gap:5px;white-space:nowrap}
  .cucard .curole .pill .dt{width:6px;height:6px}
  /* ===== Customers on a phone: a list, not a stack of cards =====
     Each relationship was a 165px card -- four and a half per screen, each
     one a name, a pill, a sentence and two figures in a box. On a phone the
     list reads like Contacts: the face, the name, one line of what we are
     to each other, the money on the right. Same markup as the iPad and
     desktop cards, re-laid by CSS: nothing is hidden, only arranged. */
  @media(max-width:640px){
    body[data-view="customers"] #cufbar{padding:12px 12px 8px}
    body[data-view="customers"] #cufbar .ivfrow{gap:6px}
    body[data-view="customers"] #culensbar{margin:0 -12px;padding:0 12px 8px;overflow-x:auto;overscroll-behavior-x:contain;flex-wrap:nowrap;scroll-padding-inline:12px;scrollbar-width:none}
    body[data-view="customers"] #culensbar::-webkit-scrollbar{display:none}
    body[data-view="customers"] #culensbar .culens{flex:none;white-space:nowrap}
    .ivgrid:has(>.cucard){gap:0;padding-top:4px}
    .ivcard.cucard{border:0;border-radius:0;box-shadow:none;background:none;border-bottom:1px solid var(--line2);overflow:visible}
    .ivcard.cucard:last-of-type{border-bottom:0}
    .cucard .cubody{grid-template-columns:44px minmax(0,1fr);padding:12px 2px}
    .cucard .cufig{grid-column:2;align-items:flex-start;flex-direction:row;flex-wrap:wrap;text-align:left;margin-top:5px;gap:4px 12px}
    .cucard .cufig .curole{flex-basis:100%}
  }
  .curole .submut{overflow-wrap:anywhere}
  /* The distinguishing trim is part of the vehicle's identity. A two-line
     clamp still hid Touring / RS / Mulliner on real long names, so cards grow
     to show the whole identity instead of making the reader open candidates
     to tell them apart. */
  .ivctop .ivn b{font-size:14px;font-weight:600;min-width:0;overflow-wrap:anywhere;
    display:block;overflow:visible}
  .ivctop .ivn{align-items:flex-start}
  .ivctop .ivn>:first-child:not(b){flex:0 0 auto;margin-top:1px}
  .ivdot{width:14px;height:14px;flex:0 0 auto}
  .ivdot.urgent{filter:drop-shadow(0 0 5px color-mix(in srgb, var(--amber) 45%, transparent))}
  .ividentmeta{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 7px;margin:-2px 0 5px;font-size:11.5px;color:var(--mut)}
  .ividentmeta>*+*::before{content:"·";margin-right:7px;color:var(--mut2)}
  .ivstk{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:11px;color:var(--mut2);flex:0 0 auto}
  .ivlife{font-weight:600;color:var(--text)}
  .ivmeta{font-size:11.5px;color:var(--mut);margin-bottom:13px}
  .ivmeta.flag{color:var(--amber);font-weight:600}
  .ivnums{display:flex;justify-content:space-between;padding-top:11px;border-top:1px solid var(--line2)}
  /* Same overflow shape as the .dbig .c fix earlier this session: these
     are flex children by virtue of the parent's display:flex, so they
     default to a min-width equal to their own unbroken content (a real
     6-7 digit money() string has no natural break point) and can push
     past the parent .ivcard's overflow:hidden edge. min-width:0 lets
     the tile actually shrink; overflow-wrap is the fallback that wraps
     an oversized figure onto a second line instead of clipping it.
     Not adding flex:1 here (unlike .dbig) -- these tiles are meant to
     stay their natural width with the gap distributed by
     justify-content:space-between, not stretch to equal shares. */
  .ivnums div{display:flex;flex-direction:column;min-width:0}
  .ivnums .k{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:9.5px;letter-spacing:.06em;text-transform:none;color:var(--mut2);margin-bottom:2px}
  .ivnums .v{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:13px;overflow-wrap:break-word}
  .ivnums .v.g{color:var(--racing);font-weight:600}
  .ivmore{padding:16px;text-align:center}
  @media(max-width:640px){.ivgrid{grid-template-columns:1fr}.ivfbar{padding:9px 12px}}
  /* ===== Inventory on a phone: a trading list, not a stack of cards =====
     A car card was ~150px of box for a name, a day count and one figure:
     four cars a screen. On a phone the floor reads like a watchlist: the
     car's face, its name, how long it has been here, the money on one line.
     Same markup as iPad and desktop, re-laid by CSS; nothing is hidden. */
  @media(max-width:640px){
    .ivgrid:has(>.ivcard:not(.cucard)){gap:0;padding-top:4px}
    .ivcard:not(.cucard){display:grid;grid-template-columns:64px minmax(0,1fr);column-gap:12px;align-items:start;padding:12px 2px;border:0;border-radius:0;box-shadow:none;background:none;border-bottom:1px solid var(--line2);overflow:visible}
    .ivcard:not(.cucard):last-of-type{border-bottom:0}
    .ivcard:not(.cucard) .ivcimg,.ivcard:not(.cucard) .ivcimg:not([data-st="on"]){display:flex;grid-column:1;width:64px;height:48px;aspect-ratio:auto;border-radius:9px;margin-top:2px}
    .ivcard:not(.cucard) .ivcbody,.ivcard:not(.cucard):has(.ivcimg[data-st="on"]) .ivcbody{grid-column:2;padding:0;min-width:0}
    .ivcard:not(.cucard):not(:has(.ivcimg)) .ivcbody{grid-column:1/3}
    .ivcard:not(.cucard) .ivctop{margin-bottom:2px}
    .ivcard:not(.cucard) .ivctop .ivn b{font-size:15px;line-height:1.28}
    .ivcard:not(.cucard) .ividentmeta{margin:1px 0 3px;font-size:12px}
    .ivcard:not(.cucard) .ivmeta{margin-bottom:4px;font-size:12px}
    .ivcard:not(.cucard) .ivnums{border:0;padding:0;justify-content:flex-start;flex-wrap:wrap;gap:2px 16px}
    .ivcard:not(.cucard) .ivnums>div{flex-direction:row;align-items:baseline;gap:5px}
    .ivcard:not(.cucard) .ivnums .k{font-size:11px;margin:0}
    .ivcard:not(.cucard) .ivnums .v{font-size:14px}
    .ivcard:not(.cucard) .ivnums.none{font-size:12px;color:var(--mut)}
    .ivcard .ivcmk{font-size:12px;opacity:.5;max-width:58px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .ivcard .ivcnp{display:none}
    .ivcard:not(.cucard) .ivcnone:not(.ivcmarque){font-size:0}
    .ivcard:not(.cucard) .ivcnone svg{width:20px;height:20px}
  }
  /* A card inside a card is a box drawn around boxes. When a workspace is
     showing cards, the cards are the objects and the page is their ground,
     so the outer surface -- its border, its shadow, the tinted toolbar strip
     -- goes, and the toolbar sits on the page in line with the title. Table
     and list modes keep the surface: rows need a ground, cards do not. */
  .card:has(> div > .ivgrid){background:none;border:0;box-shadow:none;border-radius:0;overflow:visible}
  .card:has(> div > .ivgrid) > .ivfbar{background:none;border-bottom:0;padding:0 0 2px}
  .card:has(> div > .ivgrid) .ivgrid{padding:12px 0 18px}
  .card:has(> div > .ivgrid) .ivmore{padding:6px 0 16px}
  /* Leads */
  .leadrow{cursor:default}
  /* the enquiry that was opened (openLead): marked, not just scrolled to */
  .leadrow.leadfocus{background:var(--e100);box-shadow:inset 3px 0 0 var(--miami)}
  .leadrow.leadfocus:focus{outline:none}.leadrow.leadfocus:focus-visible{outline:2px solid var(--miami);outline-offset:-2px}
  .leadknown{font:inherit;font-size:12px;font-weight:600;color:var(--pill-ok-fg);background:var(--pill-ok-bg);border:0;border-radius:999px;padding:2px 9px;margin-left:6px;cursor:pointer;vertical-align:1px}
  .leadst{font-weight:600}
  /* State on one line, the ways to reach them on the next. Wrapped side by
     side, a 44px-tall phone link sat beside the state a line lower and a
     third of the way across, and a second contact broke under it, so on a
     phone the one thing to do with a lead (call or write back) read as a
     misaligned afterthought. Desktop already stacks these. */
  .leadrow .dxf{flex-direction:column;align-items:flex-start;gap:0}
  .leadst.bad,.leadlate{color:var(--carmine)} .leadst.warn{color:var(--pill-warn-fg)} .leadst.ok{color:var(--pill-ok-fg)}
  .leadmsg{grid-column:1/-1;font-size:13.5px;line-height:1.45;margin-top:6px;color:var(--text);max-width:72ch}
  @media(min-width:861px) and (pointer:fine){.leadrow .dxmain{grid-template-rows:auto auto auto}.leadmsg{grid-row:3}}
  .leadnof{grid-column:1/-1;font-size:12.5px;color:var(--mut);margin-top:4px}
  .leadacts{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
  .leadacts .btn{min-height:44px}
  @media(pointer:coarse){.leadknown{min-height:32px}.leadrow .sitlink{min-height:44px;display:inline-flex;align-items:center}}
  /* Shop */
  .shoprow{grid-template-columns:52px minmax(0,1fr) auto}
  .shopthumb{grid-row:1/3;width:52px;height:52px;border-radius:10px;overflow:hidden;background:var(--inset)}
  .shopthumb img{width:100%;height:100%;object-fit:cover;display:block}
  .shoprow .dxmain{grid-column:2}
  .shoprow .chev{grid-column:3}
  .shopbl{color:var(--pill-warn-fg)}
  .shopnote{font-size:13px;color:var(--mut);max-width:70ch;margin:4px 2px 24px}
  .shopgal{display:flex;gap:8px;overflow-x:auto;margin:6px 0 16px}
  .shopgal img{height:150px;border-radius:12px;flex:none}
  .shopnophoto{padding:18px;border-radius:12px;background:var(--inset);color:var(--mut);font-size:14px;margin:6px 0 16px}
  .shopform{display:flex;flex-direction:column;gap:12px}
  .shop2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .shopsizes{display:flex;gap:8px}
  .shopsizes .fin{flex:1;min-width:0}
  .shopon{display:flex;align-items:center;gap:10px;font-weight:600;min-height:44px}
  .shopon input{width:20px;height:20px}
  .shopacts{display:flex;align-items:center;gap:12px}
  @media(max-width:640px){.shop2{grid-template-columns:1fr}}
  @media(min-width:861px){.shoprow{grid-template-columns:52px minmax(0,1fr) auto}.shoprow .dxmain{display:block}}
  /* Photo review */
  .wspbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:4px 0 18px}
  .wsphint{font-size:13px;color:var(--mut)}
  .wspcar{margin:0 0 26px}
  .wsphead{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:0 0 10px}
  .wspname{font:inherit;font-size:16px;font-weight:700;color:var(--text);background:none;border:0;padding:0;cursor:pointer;text-align:left}
  .wspname:hover{text-decoration:underline}
  .wspmeta{font-size:13px;color:var(--mut)}
  .wspgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
  .wsptile{display:flex;flex-direction:column;gap:8px}
  .wspimg{display:block;aspect-ratio:4/3;border-radius:12px;overflow:hidden;background:var(--inset)}
  .wspimg img{width:100%;height:100%;object-fit:cover;display:block}
  .wspimg.none{display:flex;align-items:center;justify-content:center;font-size:13px;color:var(--mut)}
  .wsptag{font-size:12px;font-weight:600;color:var(--pill-warn-fg)}
  .wspacts{display:flex;flex-wrap:wrap;gap:6px}
  .wspnote{display:flex;gap:6px}
  .wspnote input{flex:1;min-width:0;font:inherit;font-size:14px;padding:0 10px;min-height:36px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text)}
  .wsptile.decided .wspimg{opacity:.45}
  .wspdone{font-size:13px;font-weight:600;color:var(--pill-ok-fg)}
  .wspdone.bad{color:var(--carmine)}
  @media(pointer:coarse){.wspacts .btn,.wspnote .btn,.wspnote input,.wspname{min-height:44px}}
  @media(max-width:640px){.wspgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
  /* Price tab. The answer first and large; the evidence under it as plain
     rows on one ground, not a stack of cards. */
  .pxwrap{padding:4px 2px 24px;display:flex;flex-direction:column;gap:22px}
  .pxloading{display:flex;align-items:center;gap:10px;color:var(--mut);font-size:14px;padding:18px 4px}
  .pxeyebrow{font-family:var(--mono);font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--mut2);display:flex;align-items:center;gap:10px;flex-wrap:wrap}
  .pxconf{font-family:inherit;letter-spacing:.04em;padding:2px 8px;border-radius:999px;background:var(--inset);color:var(--mut)}
  .pxconf.high{background:var(--pill-ok-bg);color:var(--pill-ok-fg)}
  .pxconf.low{background:var(--pill-warn-bg);color:var(--pill-warn-fg)}
  .pxnext{font-size:14px;font-weight:600;color:var(--text);margin-top:6px}
  .pxbig{font-family:var(--sans);font-size:40px;font-weight:600;letter-spacing:-.01em;line-height:1.1;margin:6px 0 4px;font-variant-numeric:tabular-nums}
  /* "Not enough evidence" is words, so it stays editorial */
  .pxbig.pxnone{font-family:var(--display);font-weight:400;letter-spacing:0;font-size:24px;color:var(--mut)}
  .pxsay{font-size:14px;line-height:1.5;max-width:62ch}
  .pxband{position:relative;height:30px;margin:18px 0 2px;border-bottom:1px solid var(--line)}
  .pxrange{position:absolute;bottom:0;height:10px;border-radius:4px 4px 0 0;background:rgba(var(--voodoo-rgb),.18)}
  .pxmark{position:absolute;bottom:0;width:2px;height:22px;margin-left:-1px;background:var(--mut)}
  .pxmark span{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);font-size:10.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--mut);white-space:nowrap}
  .pxmark.win{background:var(--chart-2)}
  .pxmark.win span{color:var(--chart-2)}
  .pxmark.ask{background:var(--text)}
  .pxmark.ask span{color:var(--text)}
  .pxscale{position:relative;height:16px;font-size:11.5px;color:var(--mut);font-variant-numeric:tabular-nums;margin:4px 34px 0}
  .pxscale span{position:absolute;top:0;transform:translateX(-50%);white-space:nowrap}
  .pxband{margin-left:34px;margin-right:34px}
  .pxnote{font-size:12.5px;color:var(--mut);line-height:1.45;margin-top:8px}
  .pxnote.bad{color:var(--carmine)}
  .pxsec{display:flex;flex-direction:column}
  .pxh{font-family:var(--mono);font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--mut2);padding:0 0 6px;border-bottom:1px solid var(--line)}
  details.pxleft>summary{cursor:pointer;list-style:none;min-height:32px;display:flex;align-items:flex-end}
  details.pxleft>summary::-webkit-details-marker{display:none}
  details.pxleft>summary::after{content:"Show";margin-left:auto;font-family:var(--body,inherit);letter-spacing:0;text-transform:none;color:var(--voodoo);font-size:12px}
  details.pxleft[open]>summary::after{content:"Hide"}
  .pxrow{display:grid;grid-template-columns:118px minmax(0,1fr) auto;gap:2px 14px;align-items:baseline;padding:9px 0;border-bottom:1px solid var(--line2)}
  .pxrow.out{opacity:.62}
  .pxk{font-size:11.5px;color:var(--mut)}
  .pxn{font-size:13.5px;font-weight:600;overflow-wrap:anywhere}
  .pxn a,.pxn .sitlink{color:inherit;text-decoration:none;font:inherit;padding:0;background:none;border:0;text-align:left;cursor:pointer}
  .pxn a:hover,.pxn .sitlink:hover{text-decoration:underline}
  .pxo{font-size:12px;color:var(--mut);margin-top:1px}
  .pxwhy{color:var(--text)}
  .pxv{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;text-align:right}
  .pxempty{font-size:13px;color:var(--mut);padding:10px 0}
  .pxhist{display:grid;grid-template-columns:118px minmax(0,1fr);gap:14px;padding:9px 0;border-bottom:1px solid var(--line2);font-size:14px}
  .pxwhen{color:var(--mut);font-size:12.5px;padding-top:1px}
  .pxdelta{font-size:12.5px;font-weight:600;margin-left:6px}
  .pxdelta.down{color:var(--carmine)} .pxdelta.up{color:var(--chart-2)}
  .pxai{display:flex;flex-direction:column;gap:6px}
  .pxreasons{margin:0;padding-left:18px;font-size:13.5px;line-height:1.5}
  .pxhow{font-size:12px;color:var(--mut);line-height:1.5;max-width:70ch}
  @media(max-width:640px){
    .pxrow{grid-template-columns:minmax(0,1fr) auto}
    .pxk{grid-column:1/-1}
    .pxhist{grid-template-columns:84px minmax(0,1fr)}
    .pxbig{font-size:34px;letter-spacing:0}
  }
  /* a block, not inline-flex: a flex button cannot wrap its own text, so
     on a phone a long comp name ran under the price */
  @media(pointer:coarse){.pxn .sitlink,.pxn a{display:block;min-height:44px;padding:11px 0;width:100%;white-space:normal;overflow-wrap:anywhere}
    details.pxleft>summary{min-height:44px;align-items:center}}
  /* ---- Check-ins: card grid, filter bar, view toggle ---- */
  .civiews{display:flex;gap:2px;background:var(--inset);border:1px solid var(--line);border-radius:11px;padding:3px}
  .civiewbtn{font-family:var(--sans);font-size:11.5px;font-weight:600;color:var(--mut);padding:6px 13px;border-radius:8px;cursor:pointer;border:none;background:none}
  .civiewbtn.on{background:var(--surface);color:var(--text);box-shadow:0 2px 6px rgba(16,24,40,.1)}
  .cifbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--line)}
  .cifilters{display:flex;flex-direction:column;gap:8px;margin:12px 2px 14px}
  .cisearch{display:flex;align-items:center;gap:7px;background:var(--inset);border:1px solid var(--line);border-radius:11px;padding:7px 12px;font-size:12.5px;flex:0 1 240px}
  .cisearch input{border:none;outline:none;background:none;font-size:12.5px;font-family:var(--sans);color:var(--text);width:100%}
  .cisearch svg{flex:none;color:var(--mut)}
  .cilegend{display:flex;align-items:center;gap:16px;padding:12px 16px 0;font-size:11px;color:var(--mut);flex-wrap:wrap}
  .cilegend b{display:flex;align-items:center;gap:5px;font-weight:600}
  .cigrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px;padding:14px 16px 18px;align-content:start}
  .cicard{background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);overflow:hidden;cursor:pointer}
  .cicbody{padding:14px 15px 12px}
  .cictop{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:6px;gap:8px}
  .cictop .cin{display:flex;align-items:center;gap:7px;min-width:0}
  .cictop .cin b{font-size:13.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .cidot{width:13px;height:13px;flex:0 0 auto}
  .cidot.urgent{filter:drop-shadow(0 0 5px color-mix(in srgb, var(--carmine) 50%, transparent))}
  .cistk{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:10px;color:var(--mut2);flex:0 0 auto}
  .cimeta{font-size:11.5px;color:var(--mut);margin-bottom:10px}
  .cicbody .pill{margin-bottom:11px}
  .cinums{display:flex;gap:16px;padding-top:10px;border-top:1px solid var(--line2)}
  /* Same defensive min-width:0/overflow-wrap pairing as .ivnums above --
     values here (days/visit#/skipped count) are short enough that this
     is unlikely to ever actually trigger, but it's a one-line guard
     against the identical flex-overflow shape for free. */
  .cinums div{display:flex;flex-direction:column;min-width:0}
  .cinums .k{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:9.5px;letter-spacing:.06em;text-transform:none;color:var(--mut2);margin-bottom:2px}
  .cinums .v{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:13px;overflow-wrap:break-word}
  @media(max-width:640px){.cigrid{grid-template-columns:1fr}.cifbar{padding:9px 12px}}
  .gbars{display:flex;align-items:flex-end;gap:8px;height:150px;margin-top:12px}
  .gb{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:5px;height:100%}
  .gpair{display:flex;align-items:flex-end;gap:3px;height:100%;width:100%;justify-content:center}
  .gcol{width:42%;border-radius:4px 4px 0 0;min-height:2px;transition:height .3s}
  .gb .lab{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:9.5px;color:var(--mut)}
  .gb .val{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:9.5px;color:var(--mut2)}
  .opbar{height:5px;background:var(--inset);border-radius:3px;margin-top:6px;overflow:hidden;max-width:220px}
  .opbar i{display:block;height:100%;background:linear-gradient(90deg,var(--miami),var(--voodoo));border-radius:3px;transition:width .35s}
  .gcol{width:42%;border-radius:5px 5px 0 0;min-height:3px;transition:height .35s}
  .gcb{background:linear-gradient(180deg,var(--bleu),var(--miami));}
  .gcs{background:linear-gradient(180deg,var(--forest),var(--racing));}
  /* tappable chart columns */
  .gcolw{flex:1;display:flex;align-items:flex-end;justify-content:center;height:100%;cursor:pointer;border-radius:5px 5px 0 0;transition:background .15s}
  .gcolw .gcol{width:66%}
  .gcolw:hover{background:var(--inset)}
  .gcolw:hover .gcol{filter:brightness(1.12)}
  .gb.tap{cursor:pointer;border-radius:7px;transition:background .15s}
  .gb.tap:hover{background:var(--inset)}
  .gb.tap:hover .gcol{filter:brightness(1.12)}
  .gcolw.hi .gcol,.gb.hi .gcol{filter:brightness(1.18);box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px var(--miami)}
  .barcallouthint{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:10px;color:var(--mut2);text-align:center;padding:10px 4px 0}
  .barcallout{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;background:var(--inset);border:1px solid var(--line);border-radius:10px;padding:9px 12px;margin-top:10px;cursor:pointer;transition:border-color .15s,background .15s}
  .barcallout:hover{border-color:var(--miami);background:var(--e100)}
  .barcallout b{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:15.5px;color:var(--text)}
  .barcallout .bcsub{font-size:11.5px;color:var(--mut);flex:1}
  .barcallout .bccta{font-size:11.5px;font-weight:700;color:var(--miami);white-space:nowrap}
  @media(max-width:640px){.barcallout{padding:8px 10px}.barcallout b{font-size:14px}}
  /* Elevated kpi shell (app-wide): flat surface, no colored identifier bar —
     just a faint inset border-highlight, the same on every kpi regardless of
     .a/.g/.w. .shine + .kpi.shimmer are an opt-in sweep some views (Hub)
     trigger on load; absent the class, .shine simply never renders. */
  .kpi{position:relative;overflow:hidden;transition:transform .15s ease,box-shadow .15s ease;transform-style:preserve-3d;will-change:transform}
  .kpi::before{content:"";position:absolute;inset:0;border-radius:16px;padding:1px;background:linear-gradient(160deg,var(--card-highlight),transparent 40%);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}
  /* The sweep moves the highlight through the background of a layer that
     stays inside its card (inset:0). It used to move the layer itself from
     left:-60% to 140%: clipped by the card, but for 1.1s its box sat past the
     right edge of a phone screen (mobile-first "nothing past the right edge"). */
  .shine{position:absolute;inset:0;background:linear-gradient(100deg,transparent 42%,var(--card-highlight) 50%,transparent 58%) no-repeat;background-size:300% 100%;background-position:100% 0;pointer-events:none;z-index:1}
  .kpi.shimmer .shine{animation:shimmersweep 1.1s ease-out}
  @keyframes shimmersweep{from{background-position:100% 0}to{background-position:0% 0}}
  .kpi .kc{font-size:11px;color:var(--mut2);margin-top:8px;font-weight:600}
  .kpi.a .kc{color:var(--miami)} .kpi.g .kc{color:var(--racing)} .kpi.w .kc{color:var(--amber)}
  .kpi.click{cursor:pointer}
  .kpi.click:hover{transform:translateY(-3px);box-shadow:0 10px 30px rgba(16,24,40,.13)}
  .kpi.click:hover .kc{color:var(--miami)}
  /* Per-type glow on hover (mockup parity) — the generic shadow above still
     applies to every kpi; these layer a color-matched glow on top for the
     g/w/a variants, same color-mix technique the mockup uses. */
  .kpi.click.g:hover{box-shadow:0 10px 30px rgba(16,24,40,.13),0 0 0 1px color-mix(in srgb, var(--racing) 30%, transparent),0 18px 40px -18px color-mix(in srgb, var(--racing) 55%, transparent)}
  .kpi.click.w:hover{box-shadow:0 10px 30px rgba(16,24,40,.13),0 0 0 1px color-mix(in srgb, var(--amber) 30%, transparent),0 18px 40px -18px color-mix(in srgb, var(--amber) 55%, transparent)}
  .kpi.click.a:hover{box-shadow:0 10px 30px rgba(16,24,40,.13),0 0 0 1px color-mix(in srgb, var(--miami) 30%, transparent),0 18px 40px -18px color-mix(in srgb, var(--miami) 55%, transparent)}
  .card{transition:box-shadow .15s ease}
  .row.drill{cursor:pointer}
  .row.drill:hover{background:var(--e100)}
  .row.drill:hover .chev{transform:translateX(3px);color:var(--miami)}
  .chev{color:var(--mut2);font-family:var(--mono);font-variant-numeric:tabular-nums;text-align:right;transition:transform .15s ease,color .15s ease}
  .sdot{width:9px;height:9px;border-radius:50%;align-self:center}
  .cpill{display:inline-block;min-width:26px;text-align:center;background:var(--inset);border:1px solid var(--line);border-radius:999px;padding:2px 8px;font-size:12px;font-weight:600}
  .grp2{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--mut);margin:18px 2px 10px}
  /* .hero itself sets color:#fff but no background — every real usage pairs
     it with a modifier (.hero-g/.hero-d) that supplies one. System Health's
     two hero cards (Monday sync, RLS security posture) were shipped with the
     bare class, no modifier — white text on the plain page background reads
     as barely-visible ghost text, not an error, and it's not decorative:
     it's the "is Monday sync degraded" / "are tables exposed" status. .hero-r
     (carmine, "Sold. Errors." in the brand book — the same red already used
     for the negative case elsewhere on this exact page) is the third
     modifier that was missing to make those two cards state-aware like the
     rest of the page already is. */
  .hero{border-radius:16px;padding:22px 24px;margin-bottom:14px;box-shadow:var(--shadow);color:var(--on-miami);position:relative;overflow:hidden;}
  .hero-g{background:linear-gradient(135deg,var(--forest) 0%,var(--forest) 100%);}
  .hero-d{background:linear-gradient(135deg,var(--inverse-surface) 0%,var(--bleu) 120%);}
  .hero-r{background:linear-gradient(135deg,var(--alert) 0%,var(--alert) 100%);}
  .hero.click{cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}
  .hero.click:hover{transform:translateY(-2px);box-shadow:0 14px 38px rgba(16,24,40,.22)}
  .hero .hl{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:11px;letter-spacing:.08em;text-transform:uppercase;opacity:.85}
  .hero .hv{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:40px;font-weight:600;margin-top:6px;letter-spacing:-.02em;line-height:1}
  .hero .hs{font-size:12.5px;opacity:.85;margin-top:10px}
  @media(max-width:860px){.hero .hv{font-size:30px}}

  @media(max-width:860px){
    /* Rows are auto-sized but #shell keeps min-height:100%, so on any page
       short enough to leave leftover viewport space, grid's default
       align-content:normal (== stretch here) would inflate BOTH implicit
       rows — including the .rail row — to fill it, ballooning .rail's
       creme background into a tall empty band above a short page. Pinning
       the tracks to their content-driven size kills that on mobile without
       touching the desktop sidebar, which still wants to stretch full-height. */
    #shell{grid-template-columns:1fr;align-content:start}
    /* Was position:sticky here too, stacked on top of .topbar (also
       sticky, top:0) below it — once scrolled past this bar's own height,
       both were pinned at the same y:0 and .rail (z-index 30) painted over
       .topbar's search box and bell icons. Primary nav doesn't need this
       bar pinned anyway: the bottom tab bar's "More" button opens the exact
       same drawer (toggleMobileNav()) and stays reachable at any scroll
       position, so the brand strip can just scroll away like normal content. */
    .rail{position:static;height:auto;flex-direction:column;gap:0;padding:0;overflow-y:visible}
    /* Matched to .topbar's background instead of --rail's tan, so the two
       don't read as two competing header tones stacked on top of each
       other — one continuous strip now that it's no longer a second sticky
       bar fighting the real (topbar) header for attention. */
    .rail .brand{display:flex;padding:7px 12px;border-bottom:1px solid var(--line);background:var(--bg)}
    .rail .brand .wm{--wm-h:22px}
    .navburger{display:flex}
    .rail .spacer,.rail .me{display:none}
    .rail #nav{display:none}
    /* z-index was dropped when the old always-sticky mobile .rail (which
       had its own z-index:30, per the comment above) got replaced by the
       static in-flow brand strip this now is — but the full-screen
       .navopen overlay state still needs one, and a HIGHER one than
       before: .topbar is sticky/z-index:5 and the floating tab bar is
       fixed/z-index:25, both siblings that come later in the DOM, so
       without an explicit z-index here they painted OVER this "full
       screen" menu instead of the menu covering them — the open menu and
       the page underneath it visibly interleaved. 50 clears both, and the
       tab bar besides (its own menu button opens this same overlay). */
    .rail.navopen{position:fixed;inset:0;z-index:50;height:100vh;overflow-y:auto}
    .rail.navopen #nav{display:flex;flex-direction:column;gap:2px;padding:10px 10px 28px;-webkit-overflow-scrolling:touch}
    .rail.navopen .navsec{display:block}
    .rail.navopen .navgrp,.rail.navopen .leaves{display:block}
    .rail.navopen .grphead{display:flex}
    .rail.navopen .navi{white-space:normal;flex:none;padding:11px 12px 11px 19px;font-size:15px}
    .rail.navopen .me{display:block}
    .content{padding:16px 16px var(--dock-clearance);scroll-padding-bottom:var(--dock-clearance)}
    #content :is(a,button,input,select,textarea,summary,[tabindex]):focus{scroll-margin-block:72px var(--dock-clearance)}
    /* iOS17-style floating glass tab bar: a frosted, translucent pill
       inset from the edges instead of the flat, edge-to-edge, opaque strip
       this used to be — blurred backdrop over whatever content scrolls
       beneath it (color-mix over --surface so it's automatically correct
       in both themes, no separate dark override needed), a soft border for
       definition against the blur instead of a hard top line, and enough
       lift (shadow) to read as floating above the page rather than glued
       to the bottom of the viewport. */
    .tabbar{display:flex;position:fixed;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom,0px));z-index:25;background:color-mix(in srgb, var(--surface) 72%, transparent);-webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);border:1px solid color-mix(in srgb, var(--line) 70%, transparent);border-radius:22px;box-shadow:0 8px 30px rgba(8,18,32,.16),0 1px 2px rgba(8,18,32,.06);padding:6px}
    html[data-theme="dark"] .tabbar{box-shadow:0 8px 30px rgba(0,0,0,.45),0 1px 2px rgba(0,0,0,.3)}
    .tabbtn{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:7px 2px;border:none;background:transparent;color:var(--rail-txt);font-family:var(--sans);font-size:10px;font-weight:600;line-height:1.2;text-align:center;overflow-wrap:anywhere;cursor:pointer;border-radius:16px;-webkit-tap-highlight-color:transparent;transition:background .14s ease,color .14s ease}
    .tabbtn .tic{font-size:18px;line-height:1;transition:transform .14s ease}
    .tabbtn .tic svg{width:20px;height:20px;display:block}
    .tabbtn.on{color:var(--rail-on);background:color-mix(in srgb, var(--miami) 12%, transparent)}
    /* Signal is onbleu's own light, not "you are here": selection is Bleu in
       both themes (onbleu Phase 2). */
    html[data-theme="dark"] .tabbtn.on{background:color-mix(in srgb, var(--miami) 18%, transparent)}
    /* --dot (lime) is a ~1.1:1 whisper against Parchment — invisible. On the
       light rail the "you're here" cue borrows Club Blau, the app's other
       functional-accent color, instead; dark mode keeps the lime dot, which
       still reads fine against the navy rail there. */
    .tabbtn.on .tic{color:var(--miami);transform:translateY(-1px) scale(1.06)}
    html[data-theme="dark"] .tabbtn.on .tic{color:var(--miami)}
    .kpis{grid-template-columns:1fr 1fr;gap:10px}.two{grid-template-columns:1fr}
    /* .kpi .v kept the same 27px desktop size at every width even though
       .kpis above drops from 4 columns to 2 here, roughly halving each
       card's content box — an 8-9-digit dollar figure (e.g. $19,441,659,
       real Cash & Risk data) then runs edge to edge against the card's
       own right padding with no breathing room ("text is hitting the
       right wall", reported live). Sized down just enough that even a
       9-figure amount clears the edge with real margin to spare. */
    .kpi .v{font-size:20px}
    /* Same story as .kpi .v above, one section up: three tiles per row
       (Buy/Sold/Gross on the car drawer, or any other 3-up .dbig) leaves
       even less room per tile than a 2-up .kpi grid does. Narrower padding
       plus a smaller mono size keeps a typical 6-7 figure deal on one
       line; min-width:0 and overflow-wrap above are the real safety net
       for the rare figure that still doesn't fit. */
    .dbig{gap:7px}
    .dbig .c{padding:9px 8px}
    .dbig .c .v{font-size:16px}
    /* One tight, single-line strip instead of wrapping into 2-3 stacked
       rows: crumb is always a short one-word module label (Hub, Inventory,
       Decisions...) so it and the icon cluster comfortably share one row
       at nowrap — nothing to gain by letting it wrap, and wrapping is what
       used to push the whole page down a full extra row. */
    .hubhello{font-size:12px}
    .hubh1{font-size:30px}
    .hubstate{font-size:13px}
    .hubgreet{margin-bottom:12px}
    .topbar{flex-wrap:wrap;padding:6px 12px 9px}
    /* Row one is now brand + menu on the left, the icon cluster on the
       right. The rail's own brand row is gone (it only ever held these two
       things on a phone) and the crumb with it — "HUB" was the third place
       on screen naming the current view, after the h1 and the active tab.
       Row two is still search, unchanged: it used to hide behind a toggle
       and that was reverted after live feedback that it always needs to be
       open. Two rows, ~215px saved. */
    .rail{display:none}
    .rail.navopen{display:block}
    .topbar .crumb{display:none}
    .topbrand{order:1;display:flex;align-items:center;gap:8px;min-width:0}
    /* .wm's base colour is var(--wm), which is meant for the dark rail —
       on the light topbar it rendered invisible, leaving just the dot
       floating next to the menu button. Same override the rail itself
       carries, plus its dark-mode counterpart. */
    .topbrand .wm{--wm-h:22px}
    .topburger{display:flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;
      border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text);flex:none}
    .topbar>div:last-child{order:2;margin-left:auto;gap:6px!important}
    /* Search used to collapse behind a toggle icon here and expand as a
       dropdown only while in use — reported live as "search I think always
       needs to be open", i.e. the extra tap was the wrong trade. It's a
       permanent second row of the topbar again (same as desktop's inline
       placement, just stacked instead of side-by-side): crumb and the icon
       cluster keep order 1/2 and share row one same as before (crumb's own
       ellipsis keeps that pair from wrapping on its own), .gsearch is
       order:3 with a 100% flex-basis, which is what actually forces it onto
       its own row two — .topbar switching to flex-wrap is what makes that
       basis take effect. .topbar is already position:sticky, so this whole
       2-row block scrolls-and-sticks together. */
    /* THE COMPACT SHELL.
       The phone header was two rows: brand + icons, then a permanent
       full-width "Search or ask bleu" field. Measured, that field plus its
       margin cost ~50px on every route. Global search is now invoked from
       the magnifier in the icon group and expands in place.

       Two controls leave prime chrome entirely, and neither is a loss:
         - the hamburger is redundant. This file's own comment on .rail says
           the bottom bar's More button "opens the exact same drawer
           (toggleMobileNav())", and More is reachable at any scroll position
           while the header is not.
         - the theme toggle moves into the drawer. NOT because it was already
           there -- it was not. The only other .themeBtn in this file is on the
           LOGIN screen, so hiding the header copy alone would have left a
           phone with no way to switch theme. The drawer copy is added.
       Bottom-nav semantics are untouched. */
    /* .btn.icon.themeBtn, not .themeBtn: the mobile block's own
       `.topbar .btn.icon` rule is (0,3,0) and beat a (0,2,0) selector, so the
       theme control stayed visible and the app briefly had TWO of them. The
       proof below now asserts the removal as well as the addition. */
    .topbar .navburger,.topbar .btn.icon.themeBtn{display:none}
    .railtheme{display:flex;align-items:center;gap:10px;padding:10px 8px 2px;font-size:13px;color:var(--rail-txt)}
    .gstoggle{display:inline-flex}
    .gsearch{order:3;flex:1 1 100%;max-width:none;margin:8px 0 0;padding:0;position:relative;display:none}
    body.gsopen .gsearch{display:flex}
    /* Inventory/Deals/Sourcing/Customers/Check-ins/Team/Board each already
       have their own page-scoped search box in their filter bar (ivsearch/
       cisearch/bnSearch, right below this header) — showing the app-wide
       search too meant two search boxes stacked on screen at once. Board
       was missed in the first pass even though its own #bnSearch has been
       there the whole time. The app-wide one is still one tap away on
       every other page. */
    body[data-view="inventory"] .gsearch,body[data-view="deals"] .gsearch,
    body[data-view="sourcing"] .gsearch,body[data-view="customers"] .gsearch,
    body[data-view="checkins"] .gsearch,body[data-view="team"] .gsearch,
    body[data-view="board"] .gsearch{display:none}
    .topbar .btn.icon{width:34px;height:34px;padding:0;display:inline-flex;align-items:center;justify-content:center}
    /* Filter bars used to be a single horizontally scrolling row with the
       scrollbar hidden. That fixed the wrapping it was written to fix and
       created a worse problem: a filter you cannot see is a filter that does
       not exist. A technician had to drag a row with no visible affordance to
       discover that Make, Days on floor and Seller were there at all.
       Inventory now uses the canonical grammar -- search on its own line,
       then the frequent filter, an advanced-filter trigger carrying its own
       count, and the mode switch. Nothing is hidden behind a drag.
       .cifbar (Check Ins) keeps the old behaviour until it is converted. */
    .cifbar{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
    .cifbar::-webkit-scrollbar{display:none}
    /* Team borrowed .cifbar and with it the sideways drag: on a phone
       "+ Add teammate" sat half off the right edge and the search read
       "Search name, hand". Search on its own line, the rest beneath. */
    #teamfbar{flex-wrap:wrap;overflow-x:visible;row-gap:6px}
    #teamfbar .cisearch{flex:1 1 100%}
    .ivfbar{flex-wrap:wrap;row-gap:8px}
    .ivsearch{flex:1 1 100%}
    .cisearch{flex:0 0 180px}
    /* Four controls now (quick filter, Filters, Sort, mode) and at 393px they
       do not fit on one line. Wrapping onto two is the honest answer: the
       alternative is the sideways-scrolling bar this row replaced, where the
       controls existed but nobody could see them. */
    .ivfrow{display:flex;align-items:center;gap:8px;width:100%;flex-wrap:wrap;row-gap:8px}
    .ivschip,.ivviews,.civiews{flex:0 0 auto}
    /* 44px minimum on every control a thumb has to hit. */
    .ivschip,.ivviewbtn,.ivfiltbtn{min-height:44px}
    .ivlegend{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:8px 16px 0}
    .ivlegend::-webkit-scrollbar{display:none}
    .ivlegend b{flex:0 0 auto}
    /* .tabs is the app's one real tab component — Deals stages, Sourcing
       score filters, both Payables tab rows, Reports, and every car-detail
       drawer (Overview/Timeline/Photos/Notes/...) all use it. It only had
       flex-wrap:wrap, so anywhere with more than ~3 tabs (Payables has 7)
       stacked into several rows on a phone — the same "stacked filter
       chips" problem already fixed for Inventory/Check-ins' filter bars,
       just unaddressed everywhere .tabs shows up. Same fix: one scrollable
       row instead of wrapping. */
    .tabs{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
    .tabs::-webkit-scrollbar{display:none}
    .tab{flex:0 0 auto;white-space:nowrap;scroll-snap-align:start}
    /* Same problem, same fix, different components: Inventory's sort-by row
       runs 7-9 chips ("Days on floor", "Signed", "Sold", "Buy", "Gross"...),
       Board's filter row runs 5 ("All", "Mine", "Assigned to me", "Pinned",
       "Has due date") — both were flex-wrap:wrap and stacked to 2-3 rows on
       a phone. */
    .sortrow,.ivtop .sortrow,.bchips{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
    .sortrow::-webkit-scrollbar,.bchips::-webkit-scrollbar{display:none}
    .sortchip,.bchip{flex:0 0 auto;white-space:nowrap}
    /* Kiosk's damage-view tabs (front/left/rear/right/top, DAMAGE_VIEWS) hit
       the same wrap-to-multiple-rows problem on a shop iPad held narrow. The base
       .kviewtabs{flex-wrap:wrap} rule sits later in the stylesheet with
       equal (single-class) specificity, so it wins on source order alone -
       "body .kviewtabs" bumps specificity to actually override it here. */
    body .kviewtabs{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
    .kviewtabs::-webkit-scrollbar{display:none}
    .kviewtabs button{flex:0 0 auto;white-space:nowrap}
    .hubctas{display:grid;grid-template-columns:1fr 1fr;gap:8px}
    .hubctas .btn{text-align:center;padding:12px 10px}
    .hubctas .btn:not(.sec){grid-column:1/-1}
    .ivtop{top:46px}
    #drawer .ivtop{top:-20px}
    h1.view{font-size:26px}
    #drawer{width:100%;padding:20px 16px calc(20px + env(safe-area-inset-bottom,0px));scroll-padding:16px 0 calc(24px + env(safe-area-inset-bottom,0px))}
    /* iOS Safari: the toolbar overlays the bottom of a 100%-tall fixed panel;
       the dynamic viewport unit ends the panel where the visible screen does. */
    /* A conversation follows the visual viewport, as the Board's does: the
       keyboard shrinks it, so the composer rides on the keyboard and the
       header stays on screen. --bx-vv* are kept by dmFollowKeyboard. */
    #drawer.dm{top:var(--bx-vvtop,0px);height:var(--bx-vvh,100dvh)}
    @supports(height:100dvh){#drawer{height:100dvh}#drawer.dm{height:var(--bx-vvh,100dvh)}.dmmsgs{max-height:calc(100dvh - 300px)}.dmlist,.dmpicklist{max-height:calc(100dvh - 320px)}.notifpanel{max-height:min(420px,calc(100dvh - 140px))}.rail.navopen{height:100dvh}}
    .dmcompose{padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}
    /* horizontal chip and tab rows breathe at the right edge instead of being cut by it */
    .tabs,.ivfrow,.cifbar,.bchips{scroll-padding-right:16px}
    .tabs{padding-right:16px}
    .bchips,.sortrow{padding-right:16px}
    #drawer.wide{width:100%}
    #dresize{display:none}
    /* Record identity is decision-making information. On a phone it wraps
       beside fixed-size Back/Close controls instead of disappearing behind
       an ellipsis. Long IDs and email-like tokens may break safely. */
    #drawer .dh{min-width:0}
    #drawer .dh>div,#drawer .dhid,#drawer .csid,#drawer .pdhid{min-width:0}
    #drawer .dhttl h2,#drawer .dhttl .submut,#drawer .dh>div>h2,
    #drawer .csid h2,#drawer .pdhid h2{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
    #drawer :is(a,button,input,select,textarea,summary,[tabindex]):focus{scroll-margin-block:72px calc(24px + env(safe-area-inset-bottom,0px))}
    .dgrid{grid-template-columns:1fr}
    /* .lf is the two-column field grid every edit/add form in the app uses
       (customer info, vendor bills, category names, transport import, the
       Board section/approval-group managers...). At phone widths each
       column was only ~150-165px — fine for "Zip" or "State" but cramped
       for anything with a real label or a longer value, and the #1 source
       of the "not optimized on a lot of pages" feel since it's the most-
       used form layout in the whole app. Stack it like every other 2-up
       grid already does below 860px; .fl.full already spans both columns
       so it's unaffected either way. */
    .lf{grid-template-columns:1fr}
    .bars{gap:5px}

    /* dense multi-column list rows -> stacked cards, so numbers stop overflowing/crushing on phones */
    .ivcols{display:none}
    /* .ivcols (the desktop sort control) is hidden right above — restore
       .sortrow as the sort control on phones, same as before this row
       stopped being duplicated on desktop. The .sortsel "more sort"
       dropdown is redundant with .sortrow's full chip list, so it stays
       hidden here. */
    /* flex-wrap is already on the base rule; what was missing is that this
       row sits inside .ivtop, which scrolls. Wrapping onto a second line
       shows every sort option instead of cutting "Model year", "Stock #"
       and "Model" off the right edge of a phone with no affordance -- the
       same hidden-drag defect the Inventory filter bar was rebuilt to
       remove, still present in every drawer that lists a person's cars. */
    .ivtop .sortrow{display:flex;flex-wrap:wrap}
    .sortsel{display:none}
    .densehead{display:none}
    .rowstack{grid-template-columns:1fr!important;row-gap:4px;padding:12px 14px}
    .rowstack>span.n{text-align:left;font-size:12.5px}
    .rowstack>span.mono{font-size:11px;color:var(--mut)}
    .rowstack div[style],.rowstack span[style]{text-align:left!important}

    /* .notifpanel anchors absolute/right:0 off the bell button itself (see
       the desktop rule), and the bell sits well right-of-center in the icon
       cluster on a phone — centering on ITS position (the previous fix
       here, left:50%/translateX(-50%) relative to .bell) still centers on
       the bell's own x, not the screen's, so the panel still ran off the
       right edge by ~100px with every row's body/timestamp clipped and
       unreachable. Anchoring to the viewport instead (position:fixed, both
       left/right set) makes that geometrically impossible regardless of
       where the bell sits; toggleBellPanel() sets the actual `top` in JS
       from the bell's real position so it always opens right under it. */
    .notifpanel{position:fixed;left:12px;right:12px;top:96px;transform:none;width:auto;max-height:min(420px,calc(100vh - 140px))}

    /* Below 860px the fixed bottom tab bar (~56px + safe-area) covers this
       corner of the screen — clear it so a toast doesn't render behind/atop
       the tab icons. */
    .toast{bottom:calc(70px + env(safe-area-inset-bottom,0px))}

    /* These two controls are real, independent tap targets (bulletin note
       actions call stopPropagation so tapping them doesn't also trigger the
       parent row/tile) but were sized for a mouse cursor — bump them to a
       touch-friendly size on phones. */
    .bnact button{width:34px;height:34px}
    .kphk .rm{width:30px;height:30px;line-height:30px;font-size:14px}
  }

  /* ---- AP / Payables: toast, autocomplete, upload ---- */
  .toast{position:fixed;bottom:calc(20px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:11px 16px;font-size:13px;z-index:210;box-shadow:var(--shadow);opacity:0;transition:.2s;pointer-events:none;max-width:80vw}
  .toast.show{opacity:1}
  .toast.act{display:flex;align-items:center;gap:14px;padding:4px 6px 4px 16px}
  .toast.act.show{pointer-events:auto}
  .toastbtn{border:0;background:none;color:var(--miami);font:inherit;font-weight:700;min-height:44px;min-width:44px;padding:0 10px;cursor:pointer}
  .ac{position:relative}
  .acmenu{position:absolute;top:calc(100% + 4px);left:0;right:0;background:var(--surface);border:1px solid var(--line);border-radius:9px;z-index:30;max-height:230px;overflow:auto;box-shadow:var(--shadow)}
  .acitem{padding:9px 11px;font-size:13px;cursor:pointer;border-bottom:1px solid var(--line2)}
  .acitem:last-child{border-bottom:none}
  .acitem:hover{background:var(--e100)}
  .acitem .s{color:var(--mut);font-size:11.5px}
  .drop{border:1.5px dashed var(--line);border-radius:13px;padding:28px;text-align:center;color:var(--mut);cursor:pointer;background:var(--surface)}
  .drop:hover,.drop.hot{border-color:var(--miami);color:var(--text)}
  .drop .big{font-size:14px;font-weight:600;color:var(--text);margin-bottom:4px}
  .filebox{margin-top:12px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--inset)}
  .filebox img{width:100%;display:block}
  .filebox .fb{padding:18px;text-align:center;color:var(--mut2);font-size:13px}

  /* ---------- Check-in Station (kiosk) ---------- */
  #kiosk{position:fixed;inset:0;background:var(--bg);z-index:200;overflow:auto;display:flex;flex-direction:column;align-items:center;padding:40px 20px}
  .ktop{width:100%;max-width:640px;display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}
  .ktop .wm{--wm-h:22px}
  .kcard{width:100%;max-width:640px;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:28px;box-shadow:var(--shadow)}
  .khead{font-family:var(--display);letter-spacing:0;font-weight:400;font-size:26px;margin:0 0 4px}
  .ksub{color:var(--mut);font-size:14px;margin:0 0 20px}
  .kgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px}
  .ktile{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 8px;border:1.5px solid var(--line);border-radius:14px;background:var(--inset);cursor:pointer;font-size:13.5px;font-weight:600;text-align:center}
  .ktile:active{background:var(--e100);border-color:var(--miami)}
  .ktile .av{width:48px;height:48px;border-radius:50%;background:var(--miami);color:var(--on-miami);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:18px}

  /* ---------- Check In V2 ----------
     Deliberately closer to the Camera app than to a form: one dominant action
     per screen, large targets, almost no explanatory copy, and the vehicle's
     identity pinned to the top of every screen so nobody ever wonders which
     car they are looking at. */
  .c2id{position:sticky;top:0;z-index:5;width:100%;max-width:1120px;background:var(--surface);
    border:1px solid var(--line);border-radius:14px;padding:12px 16px;margin-bottom:14px;
    display:flex;align-items:center;gap:12px;box-shadow:var(--shadow)}
  .c2id .nm{font-family:var(--display);letter-spacing:0;font-weight:400;font-size:18px;line-height:1.25}
  .c2id .sub{color:var(--mut);font-size:12.5px;font-variant-numeric:tabular-nums}
  .c2sync{margin-left:auto;font-size:11.5px;font-weight:600;white-space:nowrap;
    padding:4px 9px;border-radius:999px;border:1px solid var(--line);color:var(--mut)}
  .c2sync.dirty{color:var(--miami);border-color:var(--miami)}
  .c2sync.offline{color:var(--carmine);border-color:var(--carmine)}
  .c2sync.conflict{color:var(--on-miami);background:var(--carmine);border-color:var(--carmine);}

  .c2prog{width:100%;max-width:640px;margin-bottom:14px}
  .c2prog .lab{display:flex;justify-content:space-between;align-items:baseline;
    font-size:13px;font-weight:600;margin-bottom:6px}
  .c2prog .lab .n{color:var(--mut);font-weight:500;font-variant-numeric:tabular-nums}
  .c2prog .bar{height:8px;border-radius:999px;background:var(--inset);overflow:hidden}
  .c2prog .bar i{display:block;height:100%;background:var(--miami);border-radius:999px;
    transition:width .25s ease}

  .c2areas{display:flex;flex-direction:column;gap:10px;width:100%;max-width:640px}
  .c2area{display:flex;align-items:center;gap:14px;padding:18px 18px;border-radius:14px;
    border:1.5px solid var(--line);background:var(--surface);cursor:pointer;text-align:left;
    font-family:var(--sans);font-size:16px;font-weight:600;color:inherit;width:100%}
  .c2area:active{background:var(--e100)}
  .c2area .st{margin-left:auto;font-size:12.5px;font-weight:600;color:var(--mut)}
  .c2area.clear{border-color:var(--line);opacity:.72}
  .c2area.clear .st{color:var(--miami)}
  .c2area.findings{border-color:var(--carmine)}
  .c2area.findings .st{color:var(--carmine)}
  .c2area .dot{width:10px;height:10px;border-radius:50%;background:var(--line);flex:none}
  .c2area.clear .dot{background:var(--miami)}
  .c2area.findings .dot{background:var(--carmine)}

  /* One dominant action. Big enough to hit while holding a phone and a key fob. */
  .c2big{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
    width:100%;min-height:132px;border-radius:18px;border:none;background:var(--miami);color:var(--on-miami);
    font-family:var(--sans);font-size:20px;font-weight:700;cursor:pointer;padding:20px}
  .c2big:active{filter:brightness(.93)}
  .c2big .hint{font-size:13px;font-weight:500;opacity:.85}
  .c2big[disabled]{opacity:.55;cursor:default}
  .c2alt{display:block;width:100%;margin-top:12px;padding:16px;border-radius:14px;
    border:1.5px solid var(--line);background:var(--surface);font-family:var(--sans);
    font-size:15.5px;font-weight:600;cursor:pointer;color:inherit}
  .c2alt:active{background:var(--e100)}

  /* What Bleu already knows. Shown, never asked for. */
  .c2facts{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0}
  .c2fact{font-size:12px;padding:4px 10px;border-radius:999px;background:var(--inset);
    border:1px solid var(--line);white-space:nowrap}
  .c2fact b{font-weight:600}
  .c2fact.missing{opacity:.55;font-style:italic}
  .c2fact.contradicted{border-color:var(--carmine);color:var(--carmine)}



  /* ---------- Seller Capture ----------
     Phone portrait, one thing on screen, thumb-reachable. This is somebody's
     driveway on their own phone, not a workstation: nothing here is dense,
     nothing is a form, and no word on the screen belongs to a dealership. */
  #capture{position:fixed;inset:0;z-index:210;overflow:auto;background:var(--bg);
    display:flex;justify-content:center}
  .scWrap{width:100%;max-width:460px;padding:20px 20px 34px;display:flex;
    flex-direction:column;gap:20px;min-height:100vh}
  /* The last child is the action. Push it to the thumb rather than leaving it
     stranded in the top third of a 6.7" phone. */
  .scWrap > :last-child{margin-top:auto}
  .scTop{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
  /* --wm is scoped to the signed-in shell, which Seller Capture is not inside.
     Without this the wordmark renders as a lone green dot. */
  .scTop .wm{--wm-h:22px}
  .scWho{font-size:12px;color:var(--mut);text-align:right}

  .scHero{padding:28px 0 8px;text-align:left}
  .scHero h1{font-family:var(--display);letter-spacing:0;font-weight:400;font-size:36px;line-height:1.1;
    margin:0 0 12px;text-wrap:balance}
  .scHero p{margin:0 0 10px;font-size:18px;line-height:1.5;color:var(--mut)}
  .scFine{font-size:14px !important;opacity:.8}
  .scTick{width:64px;height:64px;border-radius:50%;background:var(--miami);color:var(--on-miami);
    display:flex;align-items:center;justify-content:center;font-size:30px;margin-bottom:20px}

  .scAsk{padding:6px 0}
  .scAsk h1{font-family:var(--display);letter-spacing:0;font-weight:400;font-size:30px;line-height:1.15;
    margin:0 0 8px;text-wrap:balance}
  .scAsk p{margin:0;font-size:16px;line-height:1.5;color:var(--mut)}

  .scDots{display:flex;gap:6px}
  .scDots i{flex:1;height:4px;border-radius:99px;background:var(--line)}
  .scDots i.on{background:var(--miami)}
  .scDots i.cur{background:var(--mut)}

  /* The camera IS the interface. 200pt of it. */
  .scShoot{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;
    width:100%;min-height:200px;border-radius:24px;border:none;background:var(--miami);
    color:var(--on-miami);font-family:var(--sans);font-size:20px;font-weight:700;cursor:pointer}
  .scShoot:active{filter:brightness(.93)}
  .scShoot[disabled]{opacity:.6}
  .scShoot .ic{font-size:34px;line-height:1}

  .scGo{width:100%;min-height:60px;border-radius:16px;border:none;background:var(--miami);
    color:var(--on-miami);font-family:var(--sans);font-size:18px;font-weight:700;cursor:pointer}
  .scGo:active{filter:brightness(.93)}
  .scAlt,.scGap{width:100%;min-height:58px;border-radius:16px;border:1.5px solid var(--line);
    background:var(--surface);font-family:var(--sans);font-size:16px;font-weight:600;
    cursor:pointer;color:inherit;margin-top:10px}
  .scSkip{align-self:center;background:none;border:none;color:var(--mut);font-size:15.5px;
    padding:12px;cursor:pointer;font-family:var(--sans)}
  .scGot{text-align:center;font-size:16px;font-weight:700;color:var(--miami)}

  .scCount{display:flex;align-items:center;justify-content:center;gap:24px;
    padding:24px 0}
  .scCount button{width:72px;height:72px;border-radius:50%;border:1.5px solid var(--line);
    background:var(--surface);font-size:30px;font-weight:600;cursor:pointer;color:inherit}
  .scCount button:active{background:var(--e100)}
  .scCount b{font-family:var(--sans);font-size:56px;font-weight:600;letter-spacing:-.01em;min-width:72px;
    text-align:center;font-variant-numeric:tabular-nums}

  .scTags{display:flex;flex-wrap:wrap;gap:10px}
  .scTag{padding:14px 18px;border-radius:14px;border:1.5px solid var(--line);
    background:var(--surface);font-family:var(--sans);font-size:15.5px;font-weight:600;
    cursor:pointer;color:inherit;min-height:52px}
  .scTag.on{background:var(--miami);border-color:var(--miami);color:var(--on-miami)}
  .scText{width:100%;min-height:110px;padding:14px;border-radius:14px;
    border:1.5px solid var(--line);background:var(--inset);font-family:var(--sans);
    font-size:16px;resize:vertical}

  .scJourney{display:flex;flex-direction:column;gap:12px;margin-top:8px}
  .scJourney div{display:flex;align-items:center;gap:12px;padding:16px;border-radius:14px;
    border:1.5px solid var(--line);font-size:16px;color:var(--mut)}
  .scJourney div b{width:28px;height:28px;border-radius:50%;background:var(--inset);
    display:flex;align-items:center;justify-content:center;font-size:14px;flex:none}
  .scJourney div.on{color:inherit;border-color:var(--miami)}
  .scJourney div.on b{background:var(--miami);color:var(--on-miami)}
  .scJourney div.next b{background:var(--mut);color:var(--on-miami);}

  .scErr{padding:14px;border-radius:14px;background:var(--e100);
    border:1px solid var(--carmine);color:var(--carmine);font-size:15px}
  .scSpin{width:36px;height:36px;border-radius:50%;border:3px solid var(--line);
    border-top-color:var(--miami);animation:scspin .9s linear infinite;align-self:center;
    margin-top:28px}
  @keyframes scspin{to{transform:rotate(360deg)}}
  @media (prefers-reduced-motion:reduce){ .scSpin{animation-duration:2.5s} }
  /* ---------- Check In V2: the inspection stage ----------
     Landscape 11" iPad is the reference posture. The car on the left, the work
     for where you are standing on the right. Portrait stacks the same two
     panes rather than introducing a second layout. */
  .c2stage{display:grid;grid-template-columns:minmax(300px,38%) 1fr;gap:22px;
    width:100%;max-width:1120px;align-items:start}
  .c2map{position:sticky;top:84px;display:flex;flex-direction:column;align-items:center;gap:10px}
  .c2car{width:100%;max-width:320px;height:auto}
  .c2car .c2st{cursor:pointer}
  .c2car .c2st circle{transition:fill .18s ease,stroke .18s ease}
  .c2lap{font-size:13px;color:var(--mut);font-variant-numeric:tabular-nums}
  .c2lap b{color:inherit;font-weight:700}

  .c2work{display:flex;flex-direction:column;gap:16px;min-width:0}
  .c2here h2{font-family:var(--display);letter-spacing:0;font-weight:400;font-size:30px;margin:0 0 2px;
    text-wrap:balance}
  .c2here p{margin:0;color:var(--mut);font-size:15px}

  .c2tasks{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
  /* 72pt tall: a primary action a gloved hand can hit without looking. */
  .c2task{display:flex;align-items:center;gap:14px;min-height:72px;padding:14px 16px;
    border-radius:16px;border:1.5px solid var(--line);background:var(--surface);
    font-family:var(--sans);text-align:left;cursor:pointer;color:inherit;width:100%}
  .c2task:active{background:var(--e100)}
  .c2task .m{flex:none;width:34px;height:34px;border-radius:50%;display:flex;
    align-items:center;justify-content:center;font-weight:800;font-size:16px;
    border:2px solid var(--line);background:var(--inset)}
  .c2task .l{display:flex;flex-direction:column;gap:2px;font-size:15.5px;font-weight:600;
    min-width:0}
  .c2task .l i{font-style:normal;font-weight:500;font-size:12.5px;color:var(--mut)}
  .c2task.done{border-color:var(--miami)}
  .c2task.done .m{background:var(--miami);border-color:var(--miami);color:var(--on-miami)}
  .c2task.flag{border-color:var(--carmine)}
  .c2task.flag .m{background:var(--carmine);border-color:var(--carmine);color:var(--on-miami);}
  .c2task.na .m{color:var(--mut)}

  .c2next{margin-top:4px}
  .c2go{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
    width:100%;min-height:76px;border-radius:18px;border:1.5px solid var(--line);
    background:var(--surface);font-family:var(--sans);font-size:18px;font-weight:700;
    cursor:pointer;color:inherit;padding:16px}
  .c2go:active{background:var(--e100)}
  .c2go .hint{font-size:13px;font-weight:500;color:var(--mut)}
  .c2go.done{background:var(--miami);border-color:var(--miami);color:var(--on-miami)}
  .c2go.done .hint{color:rgba(255,255,255,.85)}

  @media (max-width:900px){
    .c2stage{grid-template-columns:1fr;gap:16px}
    .c2map{position:static}
    .c2car{max-width:260px}
  }
  @media (prefers-reduced-motion:reduce){
    .c2car .c2st circle{transition:none}
  }
  .c2paint{display:grid;grid-template-columns:1fr auto;gap:8px 12px;align-items:center}
  .c2prow{display:contents}
  .c2prow span{font-size:14px}
  .c2prow.ref span i{display:block;font-style:normal;font-size:11px;color:var(--mut)}
  .c2prow button.kchip{justify-self:end;font-size:12px}
  .kchip.bad{border-color:var(--carmine);color:var(--carmine)}
  .c2prow input{width:92px;padding:12px;border-radius:10px;border:1.5px solid var(--line);
    background:var(--inset);font-family:var(--sans);font-size:16px;text-align:right;
    font-variant-numeric:tabular-nums}
  .c2corner-big{padding:4px 0}
  .c2cn{font-family:var(--display);letter-spacing:0;font-weight:400;font-size:22px;margin-bottom:12px}
  .c2treads{display:flex;flex-direction:column;gap:12px}
  .c2tp span{display:block;font-size:12.5px;color:var(--mut);margin-bottom:6px}
  .c2tchips{display:flex;gap:8px;flex-wrap:wrap}
  .c2tchips .kchip{min-width:52px;min-height:52px;font-size:18px;font-weight:700;
    justify-content:center}
  .c2tstrip{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px;
    border-top:1px solid var(--line);padding-top:14px}
  .c2nm{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px;opacity:.8}
  .c2nm .kchip{font-size:12.5px}
  .c2corner{padding:10px 0;border-top:1px solid var(--line)}
  .c2corner b{display:block;font-size:13px;margin-bottom:6px;color:var(--mut)}
  .c2conflict{border:1.5px solid var(--carmine);border-radius:14px;padding:18px;margin:6px 0 16px}
  .c2conflict .vs{display:flex;flex-direction:column;gap:10px;margin:14px 0}
  .c2conflict .vs div{font-family:var(--mono,monospace);font-size:15.5px;letter-spacing:.04em}
  .c2conflict .vs .lab{font-family:var(--sans);font-size:12px;color:var(--mut);letter-spacing:0}

  .c2sum{display:flex;flex-direction:column;gap:14px;margin:18px 0}
  .c2sum h4{margin:0 0 8px;font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:var(--mut)}
  .c2sum ul{margin:0;padding-left:18px;font-size:14px;line-height:1.7}
  .c2sum .attn li{color:var(--carmine)}

  /* The completion screen. Every row is a claim plus the reason to believe it,
     so the value and its provenance are two distinct lines rather than one run
     of prose -- a person scanning for "what changed" reads the first line of
     each and stops. */
  .c2und{display:flex;flex-direction:column;gap:20px;margin:18px 0}
  .c2und h4{margin:0 0 10px;font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:var(--mut)}
  .c2und h5{margin:0 0 5px;font-size:12.5px;font-weight:700;color:var(--text)}
  .c2und ul{margin:0;padding:0;list-style:none}
  .c2und li{padding:8px 0;border-bottom:1px solid var(--line)}
  .c2und li:last-child{border-bottom:none}
  .c2lv{display:block;font-size:15.5px;font-weight:600;color:var(--text)}
  .c2lh{display:block;font-size:12.5px;line-height:1.55;color:var(--mut);margin-top:2px}
  .c2who{display:inline-block;margin-top:6px;padding:2px 8px;border-radius:999px;
         background:var(--surface);font-size:11px;font-weight:700;color:var(--mut);
         letter-spacing:.03em}
  .c2und .attn h4{color:var(--carmine)}
  .c2und .attn .c2lv{color:var(--carmine)}
  .c2owner{margin-bottom:14px}
  .c2owner:last-child{margin-bottom:0}
  .c2owner h5{color:var(--miami)}

  /* Live verification. Designed for one hand on a phone while a video call
     runs in picture-in-picture, so every target is thumb-sized and the one
     action that must never be fiddly -- Mark -- is the largest thing here. */
  #live{min-height:100vh;background:var(--bg);padding:0 0 40px}
  #live.hide{display:none}
  .lvbanner{margin:0;padding:12px 18px;background:var(--surface);
            border-bottom:1px solid var(--line);font-size:12.5px;line-height:1.5;color:var(--mut)}
  .lvbanner.rec{background:rgba(220,60,60,.1);color:var(--carmine);font-weight:600}
  .lvbigmark{display:block;width:calc(100% - 32px);margin:16px;padding:30px 16px;
             border:none;border-radius:16px;background:var(--miami);color:var(--on-miami);
             font-family:inherit;font-size:21px;font-weight:800;letter-spacing:.01em;
             cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.18)}
  .lvbigmark:active{transform:scale(.985)}
  .lvlab{font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:var(--mut);
         margin:14px 0 8px}
  .lvitem{display:flex;align-items:center;gap:12px;width:100%;margin-bottom:8px;
          padding:16px 14px;border:1px solid var(--line);border-radius:12px;
          background:var(--surface);color:var(--text);font-family:inherit;
          font-size:15.5px;text-align:left;cursor:pointer}
  .lvitem.on{border-color:var(--racing);background:rgba(40,140,90,.08)}
  .lvtick{display:inline-flex;align-items:center;justify-content:center;
          width:26px;height:26px;flex:0 0 26px;border-radius:8px;
          border:1px solid var(--line);color:var(--racing);font-weight:800}
  .lvitem.on .lvtick{border-color:var(--racing)}
  .lvch{display:block;width:100%;margin-bottom:8px;padding:14px;border-radius:12px;
        border:1px solid var(--line);background:var(--surface);color:var(--text);
        font-family:inherit;text-align:left;cursor:pointer}
  .lvch.on{border-color:var(--miami);box-shadow:inset 0 0 0 1px var(--miami)}
  .lvch>span:first-child{display:block;font-size:15.5px;font-weight:700}
  .lvchn{display:block;margin-top:4px;font-size:12px;line-height:1.5;color:var(--mut)}
  .lvdraft{margin:0 16px 8px;padding:14px;border-radius:12px;background:var(--surface);
           border:1px solid var(--miami)}
  .lvmarks{margin-top:16px}
  .lvmark{padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}
  .lvmark:last-child{border-bottom:none}
  .lvmark .lvt{display:inline-block;min-width:58px;color:var(--mut);
               font-variant-numeric:tabular-nums;font-size:12.5px}
  .lvloc{color:var(--mut);font-size:12.5px}
  .lvwho{font-size:13px;color:var(--mut);margin-bottom:10px}
  .lvlink{border:none;background:none;padding:0;color:var(--miami);font:inherit;
          font-size:13px;text-decoration:underline;cursor:pointer}
  .lvjson{margin:14px 0;padding:12px;border-radius:10px;background:var(--surface);
          font-size:11.5px;line-height:1.6;overflow-x:auto;color:var(--mut)}
  @media (max-width:480px){
    .c2id{padding:10px 12px}
    .c2area{padding:16px 14px;font-size:15px}
  }
  .kpindots{display:flex;justify-content:center;gap:14px;margin:22px 0}
  .kpindots .d{width:16px;height:16px;border-radius:50%;border:2px solid var(--line);background:transparent}
  .kpindots .d.on{background:var(--miami);border-color:var(--miami)}
  .kpad{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:320px;margin:0 auto}
  .kkey{padding:20px 0;font-size:22px;font-weight:700;border-radius:14px;border:1px solid var(--line);background:var(--inset);cursor:pointer;text-align:center}
  .kkey:active{background:var(--e100)}
  .kkey.wide{grid-column:span 1;font-size:14px;color:var(--mut)}
  .kstockin{font-size:30px;font-family:var(--mono);font-variant-numeric:tabular-nums;text-align:center;width:100%;border:1.5px solid var(--field-border);border-radius:14px;padding:18px;background:var(--surface);color:var(--text);letter-spacing:2px}
  .kbtn{width:100%;justify-content:center;padding:16px;font-size:16px;border-radius:14px;margin-top:16px}
  .kback{background:none;border:none;color:var(--mut);font-size:14px;cursor:pointer;padding:12px 4px}
  .kerr{color:var(--carmine);font-size:13.5px;text-align:center;margin-top:14px}
  .kwho{display:flex;align-items:center;gap:10px;background:var(--e100);border-radius:12px;padding:10px 14px;margin-bottom:20px;font-size:13.5px;font-weight:600}
  /* --- Check-in Station: intake sheet --- */
  .kwrap{width:100%;max-width:760px}
  .ksection{display:flex;gap:8px;overflow-x:auto;margin-bottom:16px;padding-bottom:2px}
  .ksection button{flex:0 0 auto;padding:10px 16px;border-radius:11px;border:1.5px solid var(--line);background:var(--inset);font-size:13.5px;font-weight:600;cursor:pointer;color:var(--text);white-space:nowrap;transition:background .13s ease,border-color .13s ease,color .13s ease}
  .ksection button:hover:not(.on){border-color:var(--mut2)}
  .ksection button.on{background:var(--miami);border-color:var(--miami);color:var(--on-miami)}
  .ksection button .bad{display:inline-block;min-width:16px;height:16px;border-radius:8px;background:var(--carmine);color:var(--on-miami);font-size:10px;line-height:16px;margin-left:6px;padding:0 4px;}
  .kgroup{margin-bottom:22px}
  .kgroup>.kgh{font-family:var(--display);letter-spacing:0;font-weight:400;font-size:16px;margin-bottom:10px}
  .kfield{margin-bottom:16px}
  .kfield label{display:block;font-size:13px;font-weight:600;margin-bottom:6px}
  .kfield .req{color:var(--carmine)}
  .kfield .kdetail{color:var(--mut);font-size:12px;margin-top:4px}
  .kfield input[type=text],.kfield input[type=number],.kfield textarea{width:100%;font-size:16px;border:1.5px solid var(--field-border);border-radius:11px;padding:12px 14px;background:var(--surface);color:var(--text);font-family:inherit}
  .kwhoauto{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:15.5px;font-weight:600;border:1.5px solid var(--line);border-radius:11px;padding:12px 14px;background:var(--inset);color:var(--text)}
  .kwhoautotag{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--racing);background:color-mix(in srgb, var(--racing) 14%, transparent);padding:3px 8px;border-radius:6px;white-space:nowrap}
  .kodobtn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;border:1.5px dashed var(--line);border-radius:11px;padding:12px 14px;margin-bottom:10px;background:var(--inset);color:var(--text);font-size:14px;font-weight:600;cursor:pointer;font-family:inherit}
  .kodobtn svg{flex:none}
  .kodowrap{position:relative;margin-bottom:10px;border-radius:11px;overflow:hidden}
  .kodowrap img{width:100%;max-height:160px;object-fit:cover;display:block;border-radius:11px}
  .kodoretake{position:absolute;bottom:8px;right:8px;background:rgba(0,0,0,.65);color:var(--on-miami);border:none;border-radius:8px;padding:6px 10px;font-size:12px;font-weight:600;cursor:pointer;font-family:inherit;}
  .kchips{display:flex;flex-wrap:wrap;gap:8px}
  .kchip{padding:12px 16px;border-radius:10px;border:1.5px solid var(--line);background:var(--inset);font-size:13.5px;cursor:pointer;color:var(--text);min-height:20px;display:inline-flex;align-items:center}
  .kchip.on{background:var(--miami);border-color:var(--miami);color:var(--on-miami)}
  .kcheck{display:flex;align-items:center;gap:10px;padding:12px 0;cursor:pointer;font-size:14px;font-weight:600}
  .kcheck .box{width:22px;height:22px;border-radius:6px;border:1.5px solid var(--line);background:var(--inset);flex:0 0 auto;display:flex;align-items:center;justify-content:center}
  .kcheck.on .box{background:var(--miami);border-color:var(--miami);color:var(--on-miami)}
  .kskip{font-size:12px;color:var(--mut);text-decoration:underline;cursor:pointer;margin-top:4px;display:inline-block;padding:10px 6px;margin:-6px}
  .kskipped{background:var(--e100);border-radius:10px;padding:10px 12px;font-size:12.5px;color:var(--mut)}
  .kviewtabs{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}
  .kviewtabs button{padding:8px 14px;border-radius:9px;border:1.5px solid var(--line);background:var(--inset);font-size:13px;font-weight:600;cursor:pointer;color:var(--text);transition:background .13s ease,border-color .13s ease,color .13s ease}
  .kviewtabs button:hover:not(.on){border-color:var(--mut2)}
  .kviewtabs button.on{background:var(--miami);border-color:var(--miami);color:var(--on-miami)}
  .kartwrap{position:relative;width:100%;max-width:520px;margin:0 auto 16px;border:1.5px solid var(--line);border-radius:14px;background:var(--inset);overflow:hidden}
  .kart{width:100%;height:auto;display:block;cursor:crosshair}
  /* Bug fix: this outline used to render with stroke:var(--line) -- the
     app's subtle hairline-divider color (#E4E0D7 light / #20304C dark),
     meant for barely-there borders, not a diagram staff need to read at a
     glance and tap precisely on a kiosk tablet. Against --inset/--surface
     it was nearly invisible (confirmed live on the Check-in Station kiosk
     -- the outline was there, just unreadable). --mut is the app's normal
     "visible but secondary" text/icon color, readable on both themes. */
  .kart path{fill:var(--surface);stroke:var(--mut);stroke-width:1.6}
  /* Photo-tap damage surface (kioskPhotoTap) -- the real check-in photo
     staff tap directly on, replacing the abstract per-body-style diagram
     above (.kart/.kartwrap left in place; still reachable if diagram art
     is ever revisited, just unused by the Damage tab today). */
  .kphototap img{width:100%;height:auto;display:block;cursor:crosshair}
  .kphototapempty{padding:56px 20px;text-align:center;color:var(--mut);font-weight:600;font-size:14px;cursor:pointer}
  .kdmgpin{position:absolute;width:26px;height:26px;margin-left:-13px;margin-top:-13px;border-radius:50%;border:2px solid #fff;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:12.5px;font-family:var(--sans);box-shadow:0 1px 4px rgba(0,0,0,.45);pointer-events:none}
  .kdmgpin.draft{background:none!important;border:2px solid var(--miami)}
  .kphotoretake,.kphotorm{position:absolute;border:none;cursor:pointer;font-family:inherit;color:#fff;background:rgba(0,0,0,.62)}
  /* Bug fix (found pressure-testing on a phone-width viewport): padding:8px
     rendered at ~30px tall -- a bit under the ~32-40px minimum touch target
     staff need on a shop-floor kiosk, tapped quickly and not always with a
     bare fingertip. */
  .kphotoretake{top:8px;right:8px;border-radius:20px;padding:11px 16px;font-size:12.5px;font-weight:600}
  .kphotoretake:disabled{opacity:.6;cursor:default}
  .kphotorm{top:8px;left:8px;width:32px;height:32px;border-radius:16px;font-size:15.5px;line-height:32px;text-align:center;padding:0}
  .kphotoct{position:absolute;bottom:8px;right:8px;background:rgba(0,0,0,.62);color:#fff;border-radius:12px;padding:4px 10px;font-size:11.5px;font-weight:600}
  .kdmglist{display:flex;flex-direction:column;gap:8px}
  .kdmgrow{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:var(--inset)}
  .kdmgrow .dot{width:10px;height:10px;border-radius:50%;flex:0 0 auto}
  .kdmgrow .x{margin-left:auto;color:var(--carmine);cursor:pointer;font-size:13px;font-weight:700;padding:12px 8px;margin-top:-8px;margin-bottom:-8px}
  .kdmgphoto{color:var(--racing);font-size:12px;font-weight:700;white-space:nowrap}
  .ktirecard{border:1px solid var(--line);border-radius:12px;padding:14px;margin-bottom:12px;background:var(--inset)}
  .ktirecard .kth{font-weight:700;margin-bottom:10px}
  .kpaintrow{display:grid;grid-template-columns:1fr 100px auto;gap:8px;margin-bottom:8px;align-items:center}
  /* Bug fix: not wrapped in .kfield like every other kiosk text/number
     input, so this fell through to the app-wide `input{font-size:14px}`
     rule -- under the 16px iOS Safari uses to decide whether to zoom in on
     focus, so tapping either box in this row (used repeatedly per panel,
     Paint being one of the higher-friction tabs) triggered an involuntary
     pinch-zoom the user then had to manually undo. */
  .kpaintrow input{font-size:16px;padding:10px}
  .kphotokinds{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
  .kphk{border:1.5px dashed var(--line);border-radius:12px;padding:14px 10px;text-align:center;font-size:12.5px;font-weight:600;cursor:pointer;background:var(--inset);position:relative}
  .kphk img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;margin-bottom:6px}
  .kphk .ct{position:absolute;top:6px;right:6px;background:var(--miami);color:var(--on-miami);border-radius:9px;min-width:16px;height:16px;font-size:10px;line-height:16px;padding:0 4px}
  .kphk .rm{position:absolute;top:4px;left:4px;background:rgba(0,0,0,.6);color:#fff;border-radius:14px;width:28px;height:28px;font-size:14px;line-height:28px;text-align:center;border:none;padding:0;cursor:pointer;font-family:inherit}
  .vinscanbtn{display:block;width:100%;margin-top:8px;padding:10px 8px;border-radius:8px;border:none;background:var(--miami);color:var(--on-miami);font-size:11px;font-weight:700;font-family:inherit;cursor:pointer}
  .vinscanbtn:hover{filter:brightness(1.08)}
  .vinscan{position:fixed;inset:0;z-index:80;background:rgba(8,18,32,.92);display:flex;align-items:center;justify-content:center;padding:20px}
  .vinscan.hide{display:none}
  .vinscanbox{width:min(480px,100%);display:flex;flex-direction:column;align-items:center;gap:14px}
  #vinScanVideo{width:100%;max-height:60vh;border-radius:14px;background:#000;object-fit:cover}
  .vinscanhint,.vinscanmsg{color:#fff;font-size:13px;text-align:center}
  .vinscanresult{width:100%;text-align:center;padding:20px 16px;border-radius:14px;background:var(--surface)}
  .vinscanresult.ok{box-shadow:inset 0 0 0 2px var(--racing)}
  .vinscanresult.bad{box-shadow:inset 0 0 0 2px var(--carmine)}
  .vinbig{font-family:var(--mono,monospace);font-size:20px;font-weight:700;letter-spacing:.03em;margin-bottom:8px;word-break:break-all}
  .vinverdict{font-size:13px;font-weight:600}
  .vinscan .kbar{width:100%}
  .vinscan .kbar .btn{white-space:nowrap}
  .vinscan .btn.sec,.vinscanbox>.btn.sec{border-color:rgba(255,255,255,.35);color:var(--inverse-text);background:rgba(255,255,255,.08);}
  .kmissing{background:var(--amber-bg);border:1px solid var(--amber);border-radius:12px;padding:12px 14px;margin-bottom:16px;font-size:13px;}
  .kmissing .mh{font-weight:700;margin-bottom:6px}
  .kbar{display:flex;gap:10px;margin-top:8px}
  .kbar .btn{flex:1}
  .ksave{background:none;border:1.5px solid var(--line);color:var(--text)}
  /* This station is meant to run on a shop iPad (13": ~1024-1366pt CSS
     viewport depending on orientation), but every kiosk card/wrap was
     hard-capped well under that (max-width:640/760px) with no @media rule
     anywhere targeting it -- not clipped, just a lot of unused margin on
     the actual target hardware in both orientations. */
  @media (min-width:820px){
    .ktop,.kcard{max-width:720px}
    .kwrap{max-width:920px}
    .kphotokinds{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
    .kgrid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
  }

  /* public, no-login iPacket shareable-link viewer (#/ipacket/<token>) */
  #ipview{min-height:100%;display:flex;justify-content:center;padding:32px 16px 60px;background:var(--bg)}
  #ipview .ipwrap{width:100%;max-width:7.5in}
  #ipview .iphdr{text-align:center;padding-bottom:18px;border-bottom:1px solid var(--line);margin-bottom:6px}
  #ipview .iphdr .wm{--wm-h:24px;justify-content:center}
  #ipview .iphdr .title{font-family:var(--serif);letter-spacing:0;font-weight:400;font-size:26px;margin-top:10px}
  #ipview .iphdr .stock{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--mut);margin-top:4px}
  #ipview .ipdoc{background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:28px 32px;margin-top:18px}
  #ipview .ipsec{margin-bottom:26px}
  #ipview .ipsec:last-child{margin-bottom:0}
  #ipview .ipsec h2{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:11px;letter-spacing:.08em;text-transform:uppercase;margin:0 0 12px;color:var(--mut)}
  #ipview .ipgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px 24px}
  #ipview .ipfield{display:flex;justify-content:space-between;gap:12px;font-size:13px;border-bottom:1px solid var(--line2);padding:6px 0}
  #ipview .ipk{font-weight:600;color:var(--mut);text-transform:none;letter-spacing:.04em;font-size:10px}
  #ipview .ipv{color:var(--text);text-align:right}
  #ipview .iptable{width:100%;border-collapse:collapse;font-size:12.5px}
  #ipview .iptable th{text-align:left;font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--mut);border-bottom:1.5px solid var(--line);padding:7px 8px}
  #ipview .iptable td{border-bottom:1px solid var(--line2);padding:8px}
  #ipview .ipphotos{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
  #ipview .ipphotos figure{margin:0}
  #ipview .ipphotos img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:9px;border:1px solid var(--line)}
  #ipview .ipphotos figcaption{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--mut);margin-top:5px}
  #ipview .ipfoot{text-align:center;margin-top:22px;display:flex;gap:10px;justify-content:center}
  #ipview .ipmsg{max-width:420px;margin:60px auto 0;text-align:center;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:32px 24px;box-shadow:var(--shadow)}
  #ipview .ipmsg .wm{--wm-h:24px;justify-content:center;margin-bottom:14px}
  #ipview .ipmsg .m{color:var(--mut);font-size:13.5px}
  @media print{
    .rail,.topbar,#ipview .ipfoot{display:none!important}
    #ipview{padding:0;background:#fff}
    #ipview .ipdoc{border:none;box-shadow:none}
  }

  /* ---- Hub, elevated (v3 — the actual mockup, ported in full) ----
     v1 leaned into glow/shimmer/tilt; v2 walked it back to a restrained,
     board-inspired pass and dropped that layer entirely. Neither is what
     shipped here: this is the "Hub, Elevated" mockup itself (aura, KPI
     shimmer+tilt, serif cardheads, priority rows, avatar message rows,
     horizontal aging bars, smooth SVG line charts), ported onto the real
     data with zero fabricated content. Everything below is new, additive
     component classes — .kpi/.card/.grp/.row/.bars/.gbars themselves are
     untouched (see the app-wide kpi/card/grp restyle earlier in this
     stylesheet, which every view already inherits); Hub simply stops using
     the bar-chart/.grp markup in favor of these. */
  /* The mockup's actual hero moment is the greeting itself — a big bold
     SANS headline, not a small caption under a serif "Hub" label. The
     breadcrumb at the top of the shell already reads "HUB" (see go()/
     $("#crumb")), so dropping the separate in-page h1 loses no wayfinding. */
  .hubgreet{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:14px}
  .hubgreet-l{min-width:0}
  /* The hello is now the small line and the money is the headline — the
     name is courtesy, the figure is the reason to open the app. */
  .hubhello{font-size:12.5px;color:var(--mut);font-weight:600;margin-bottom:2px}
  .hubstate{font-size:13.5px;color:var(--mut);margin-top:5px;overflow-wrap:anywhere}
  /* Was font-family:var(--sans);font-weight:700 — a one-off that predates
     the Playfair Display swap and never got swept into it, so the single
     most prominent headline in the app (Hub's own greeting, the first
     thing rendered after login) was the one page title NOT in the app's
     display face. Every other page title/drawer header (h1.view, .dh h2,
     .khead, etc.) is var(--serif) at weight 400 (600 before Instrument Serif) — matched here for real
     consistency rather than just swapping the family and leaving the
     weight to drift. */
  .hubh1{font-family:var(--serif);font-weight:400;font-size:34px;margin:0;letter-spacing:0}
  /* Words are editorial; the figure is data. Instrument Serif's condensed
     light digits lose authority at headline size, so the number itself is
     the UI face with tabular figures, a touch under the serif's size so the
     two share a visual cap height. */
  .hubfig{font-family:var(--sans);font-weight:600;font-size:.88em;letter-spacing:0;font-variant-numeric:tabular-nums}
  .asof{font-family:var(--sans);font-weight:600;font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--mut2);display:flex;align-items:center;gap:7px;white-space:nowrap}
  .livedot{width:6px;height:6px;border-radius:50%;background:var(--racing);box-shadow:0 0 0 3px color-mix(in srgb, var(--racing) 18%, transparent);animation:pulse 2.2s ease-in-out infinite}
  @keyframes pulse{0%,100%{opacity:1}50%{opacity:.45}}
  .cardhead{padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line)}
  .cardhead .t{font-family:var(--serif);letter-spacing:0;font-weight:400;font-size:15.5px}
  .cardhead .n{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:10px;color:var(--mut);text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}

  .priority{display:flex;align-items:center;gap:13px;padding:13px 18px;border-bottom:1px solid var(--line2);cursor:pointer;transition:background .15s,padding-left .15s}
  .priority:last-child{border-bottom:none}
  .priority:hover{background:var(--inset);padding-left:22px}
  .sev{width:8px;height:8px;border-radius:50%;flex:none;background:currentColor;box-shadow:0 0 0 4px color-mix(in srgb, currentColor 16%, transparent)}
  .sev.crit{color:var(--carmine);animation:sevpulse 1.8s ease-in-out infinite}
  .sev.warn{color:var(--amber)} .sev.info{color:var(--miami)}
  @keyframes sevpulse{0%,100%{box-shadow:0 0 0 4px color-mix(in srgb, currentColor 16%, transparent)}50%{box-shadow:0 0 0 7px color-mix(in srgb, currentColor 6%, transparent)}}
  .pri-body{flex:1;min-width:0}
  .pri-title{font-weight:600;font-size:13.5px}
  .pri-sub{color:var(--mut);font-size:11.5px;margin-top:1px}
  .pri-val{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:13px;text-align:right;white-space:nowrap}
  .priority:hover .chev{transform:translateX(3px);color:var(--miami)}
  .pri-more{display:none}
  /* "Decide today" on a phone: 5 full desktop-sized rows (each with a
     two-line wrapping subtitle) turned the Hub's first card into most of
     a screen's worth of scrolling before any other content showed. Tighter
     rows, a single truncated line of detail (the full sentence is still
     one tap away via the row itself or "Open ›"), and capping the list to
     the top 3 by dollar amount — already how decideTodayItems() sorts —
     with a "+N more" row for the rest keeps this card glanceable instead
     of dominating the page. */
  @media(max-width:860px){
    .priority{padding:10px 14px;gap:10px}
    .decidecat{width:44px;font-size:9.5px;padding:2px 0}
    .pri-title{font-size:12.5px}
    .pri-sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .priority.pri-extra{display:none}
    .pri-more{display:flex}
    .pri-more .pri-title{font-size:12.5px}
  }
  /* A Needs-you row says its need in at most two lines; the note is one tap
     away. The text is cut at a word before it gets here (noteClip). */
  .hubsec .priority[data-boardnote] .pri-title,.hubsec .priority[data-dmgopen] .pri-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

  .msgrow{display:flex;gap:11px;padding:12px 18px;border-bottom:1px solid var(--line2);align-items:flex-start;transition:background .15s;cursor:pointer}
  .msgrow:hover{background:var(--inset)}
  .msgrow:last-child{border-bottom:none}
  .msg-av{width:30px;height:30px;border-radius:50%;background:var(--e100);color:var(--voodoo);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:11px;flex:none}
  .msg-body{min-width:0;flex:1}
  .msg-name{font-weight:600;font-size:12.5px;display:flex;justify-content:space-between;gap:8px}
  .msg-time{font-weight:400;color:var(--mut2);font-size:10px}
  .msg-text{font-size:12.5px;color:var(--mut);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

  .agerow{display:flex;justify-content:space-between;font-size:11px;color:var(--mut);margin:0 0 5px;font-family:var(--mono);font-variant-numeric:tabular-nums}
  .agebar{height:9px;border-radius:99px;background:var(--line2);overflow:hidden;margin-bottom:14px;position:relative}
  .agebar i{display:block;height:100%;border-radius:99px;width:0;transition:width 1.1s cubic-bezier(.16,1,.3,1)}

  /* smooth SVG line/area charts — replace the tap-bar .gbars markup for
     Hub's two trailing-months charts. Hit-rects underneath the visible line
     carry the *same* data-barid/data-bardim/data-barval/data-barlabel
     attributes the old bar-divs carried, so the existing global click
     delegation (line ~882) and ceoRerenderCharts()/CEO_ACTIVE_BAR need zero
     changes — only the visual layer changed. */
  .hubchart{padding:10px 18px 16px;position:relative}
  .hubchart svg{width:100%;height:150px;overflow:visible;display:block}
  .hc-axis{display:flex;justify-content:space-between;padding:0 2px;margin-top:2px}
  .hc-axis span{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:9.5px;color:var(--mut2);text-transform:uppercase;cursor:pointer}
  .hc-axis span.hi{color:var(--miami);font-weight:700}
  .hc-tip{position:absolute;pointer-events:none;background:var(--text);color:var(--bg);font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:11px;padding:5px 9px;border-radius:8px;transform:translate(-50%,-124%);opacity:0;transition:opacity .12s;white-space:nowrap;box-shadow:var(--shadow-md);z-index:6}
  .hc-tip.on{opacity:1}
  .hc-hit{cursor:pointer}
  /* BLEU-VIZ-20261028:BEGIN
     The chart system's own rules (releases/charts-20261028), in the Asset P&L look (releases/asset-pnl-20261028,
     the canonical charts): one brand blue (--bv-1: the first series, its soft 12% to 0 gradient) and the
     Asset P&L neutral (--bv-2: ink at 52% on the card, the second series as a thinner line), --bv-neg for a
     loss (status, always with the word or sign). Dark steps sit in the dark lightness band (validated
     against #1C1C1E). Hairline gridlines (ink 8%), a 22% zero line, 1.75px / 1.25px lines, 7px dots with a
     surface ring, flat row tooltips, a KPI row of hairline tiles, share tables with 3px bars. Load motion is
     quick, runs once per view (.bv-anim) and only under prefers-reduced-motion: no-preference. */
  :root{--bv-1:#0075E1;--bv-2:color-mix(in srgb,var(--ink,#071A3D) 52%,var(--card,#fff));--bv-neg:var(--alert,#B42318);--bv-gain:var(--forest,#1F6F43);--bv-ink:var(--ink,#071A3D);
    --bv-total:color-mix(in srgb,var(--bv-ink) 78%,var(--card,#fff));--bv-grid:color-mix(in srgb,var(--bv-ink) 8%,transparent);--bv-axis:color-mix(in srgb,var(--bv-ink) 22%,transparent);
    --bv-track:color-mix(in srgb,var(--bv-ink) 7%,transparent);--bv-hover:color-mix(in srgb,var(--bv-ink) 5%,transparent);
    --bv-ring:var(--card,#fff);--bv-ease:cubic-bezier(.16,1,.3,1)}
  @media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--bv-1:#3C96ED;--bv-track:rgba(255,255,255,.09);--bv-hover:rgba(255,255,255,.06)}}
  :root[data-theme="dark"]{--bv-1:#3C96ED;--bv-track:rgba(255,255,255,.09);--bv-hover:rgba(255,255,255,.06)}
  figure.bv{margin:0;position:relative;min-width:0;font-family:var(--font-ui,var(--sans,system-ui));color:var(--ink);--bv-h:180px}
  .bv-cols,.bv-lines{padding:14px 18px 16px}
  .hubchart>figure.bv{padding:0}
  .hfm-trend>figure.bv{padding:14px 0 0}
  .bv-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
  .bv-t1{color:var(--bv-1)}.bv-t2{color:var(--bv-2)}.bv-tneg{color:var(--bv-neg)}
  .bv-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin:0 0 12px;font-size:12.5px;line-height:1.4;color:var(--stone)}
  .bv-key{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
  .bv-key b{color:var(--ink);font-weight:500;font-variant-numeric:tabular-nums}
  .bv-sw{display:inline-block;width:8px;height:8px;border-radius:2px;flex:none;background:currentColor}
  .bv-sw.is-line{width:14px;height:2px;border-radius:2px}
  .bv-sw.is-dot{width:7px;height:7px;border-radius:50%;background:var(--bv-total)}.bv-sw.is-dot.is-loss{background:var(--bv-neg)}.bv-sw.is-dot.is-ring{background:none;box-shadow:inset 0 0 0 1.5px var(--bv-1)}.bv-sw.is-dot.is-accent{background:var(--bv-1)}
  .bv-legend-note{margin-left:auto;color:var(--stone)}
  .bv-frame{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:var(--bv-h) auto;column-gap:10px}
  .bv-y{grid-column:1;grid-row:1;position:relative;min-width:2.4em;font-size:11px;line-height:1;color:var(--stone);font-variant-numeric:tabular-nums;text-align:right}
  .bv-y span{position:absolute;right:0;transform:translateY(50%);white-space:nowrap}
  .bv-plot{grid-column:2;grid-row:1;position:relative;min-width:0;touch-action:pan-y;-webkit-user-select:none;user-select:none}
  .bv-grid i{position:absolute;left:0;right:0;height:0;border-top:1px solid var(--bv-grid)}
  .bv-grid i.bv-zero{border-top-color:var(--bv-axis)}
  /* line form (the Asset P&L "Profit by month") */
  .bv-ser,figure.bv .bv-plot>svg.bv-ser{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
  .bv-ser .bv-line{fill:none;stroke:currentColor;stroke-width:1.75px;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;transition:opacity var(--motion-fast,120ms)}
  .bv-ser .bv-line.is-2nd{stroke-width:1.25px}
  .bv-lines[data-bv-near="1"] .bv-ser .bv-line:not(.is-2nd),.bv-lines[data-bv-near="0"] .bv-ser .bv-line.is-2nd{opacity:.55}
  .bv-cross{position:absolute;top:0;bottom:0;width:0;border-left:1px solid var(--bv-axis);opacity:0;pointer-events:none}
  .bv-cross.is-on{opacity:1}
  .bv-marks{position:absolute;inset:0}
  figure.bv .bv-dot,figure.bv .bv-pt{position:absolute;width:24px;height:24px;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:50%;background:none;box-shadow:none;transform:translate(-50%,50%);display:grid;place-items:center;cursor:default;-webkit-tap-highlight-color:transparent;z-index:1}
  figure.bv button.bv-dot,figure.bv button.bv-pt{cursor:pointer}
  .bv-dot>i{display:block;width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 2px var(--bv-ring);opacity:0}
  .bv-dot.bv-t1{color:var(--bv-1)}.bv-dot.bv-t2{color:var(--bv-2)}
  .bv-dot.is-last>i,.bv-dot.is-on>i,.bv-dot:focus-visible>i,.bv-dot.is-active>i{opacity:1}
  figure.bv .bv-hit:focus{outline:none}
  figure.bv .bv-dot:focus-visible,figure.bv .bv-pt:focus-visible{outline:2px solid var(--focus-color,var(--bleu));outline-offset:0}
  .bv-plot{cursor:crosshair}
  .bv-scatter .bv-plot{cursor:default}
  .bv-x{grid-column:2;grid-row:2;position:relative;height:16px;margin-top:8px;font-size:11px;line-height:1.25;color:var(--stone);font-variant-numeric:tabular-nums}
  .bv-x span{position:absolute;top:0;translate:-50% 0;white-space:nowrap}
  .bv-x span:first-child{translate:0 0}.bv-x span:last-child{translate:-100% 0}
  .bv-x small{font-size:10px}
  .bv-x.is-scale span:last-of-type{translate:-50% 0}
  .bv-x.is-scale{height:28px}
  .bv-x em{position:absolute;right:0;bottom:0;font-style:normal}
  /* the tooltip: the Asset P&L flat card, name left and value right */
  .bv-tip{position:absolute;z-index:6;left:0;top:0;min-width:150px;max-width:240px;padding:9px 11px;border-radius:8px;color:var(--ink);font-size:12.5px;line-height:1.5;pointer-events:none;
    background:var(--card);border:1px solid var(--hairline);box-shadow:0 6px 16px -8px rgba(8,18,32,.22)}
  .bv-tip[hidden]{display:none}
  .bv-tip.is-pinned{pointer-events:auto}
  .bv-tip-h{font-weight:600;margin:0 0 2px;white-space:nowrap}
  .bv-tip-r{display:flex;justify-content:space-between;gap:14px;white-space:nowrap}
  .bv-tip-r span{color:var(--ink)}
  .bv-tip-r b{font-weight:600;font-variant-numeric:tabular-nums}
  .bv-tip-r.is-loss b{color:var(--bv-neg)}
  .bv-tip-r.is-hint{color:var(--stone);font-size:11.5px;margin-top:2px}
  .bv-tip-net{margin-top:4px;padding-top:4px;border-top:1px solid var(--hairline);font-weight:500;font-variant-numeric:tabular-nums}
  .bv-tip-net.is-up{color:var(--forest,#1F6F43)}.bv-tip-net.is-down{color:var(--alert,#B42318)}
  .bv-go{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
  .bv-go-btn{flex:1 1 auto;min-height:44px;padding:0 14px;border:1px solid var(--hairline);border-radius:6px;background:var(--card);color:var(--ink);font:500 13.5px var(--font-ui,system-ui);cursor:pointer}
  .bv-go-btn:focus-visible{outline:2px solid var(--focus-color,var(--bleu));outline-offset:2px}
  /* the table twin: the Asset P&L "Table" toggle */
  .bv-table{margin-top:10px;font-size:12.5px}
  .bv-table>summary{cursor:pointer;color:var(--stone);min-height:28px;display:inline-flex;align-items:center;border-radius:6px}
  .bv-table>summary:focus-visible{outline:2px solid var(--focus-color,var(--bleu));outline-offset:2px}
  .bv-table-wrap{overflow-x:auto;margin-top:6px}
  .bv-table table{width:100%;border-collapse:collapse;font-size:12.5px;font-variant-numeric:tabular-nums}
  .bv-table th,.bv-table td{padding:7px 8px;border-bottom:1px solid var(--hairline);text-align:right;white-space:nowrap;font-weight:400}
  .bv-table th[scope=row],.bv-table thead th:first-child{text-align:left}
  .bv-table thead th{color:var(--stone);font-size:12px;font-weight:500}
  .bv-table td.is-loss{color:var(--bv-neg)}
  .bv-table tbody tr:last-child>*{border-bottom:0}
  .bv-table tfoot th,.bv-table tfoot td{font-weight:600;border-bottom:0;border-top:1px solid var(--hairline)}
  /* share lists: the Asset P&L "Profit by" rows, a thin neutral share bar under the share */
  .bv-list{list-style:none;margin:0;padding:0;font-variant-numeric:tabular-nums}
  .bv-list>li{margin:0;border-bottom:1px solid var(--hairline)}
  .bv-list>li:last-child{border-bottom:0}
  .bv-li{appearance:none;-webkit-appearance:none;display:grid;grid-template-columns:minmax(0,1fr) 7ch 76px 14px;column-gap:12px;align-items:center;width:100%;min-height:44px;margin:0;padding:8px 18px;border:0;border-radius:0;background:none;box-shadow:none;color:var(--ink);font:400 13.5px/1.35 var(--font-ui,system-ui);text-align:left}
  .bv-list.has-money .bv-li{grid-template-columns:minmax(0,1fr) 7ch 76px 12ch 14px}
  button.bv-li{cursor:pointer}
  button.bv-li:hover,button.bv-li:focus-visible{background:var(--bv-hover)}
  button.bv-li:focus{outline:none}
  button.bv-li:focus-visible{outline:2px solid var(--focus-color,var(--bleu));outline-offset:-2px}
  .bv-li-name{min-width:0;font-weight:500;overflow-wrap:anywhere}
  .bv-li-name small{display:block;font-size:12.5px;font-weight:400;color:var(--stone);margin-top:1px}
  .bv-li-n,.bv-li-share,.bv-li-money{font-variant-numeric:tabular-nums}
  .bv-li-n{text-align:right}
  .bv-li-share{display:block;text-align:right;font-size:12.5px;color:var(--stone)}
  .bv-li-track{display:block;height:3px;border-radius:2px;background:var(--bv-grid);margin:5px 0 0 auto;width:72px;overflow:hidden}
  .bv-li-track i{display:block;height:100%;border-radius:2px;transform-origin:0 50%;background:var(--bv-2)}
  button.bv-li:hover .bv-li-track i,button.bv-li:focus-visible .bv-li-track i{background:var(--bv-ink)}
  .bv-li-money{text-align:right;white-space:nowrap}
  .bv-li-chev{color:var(--stone);font-size:16px;line-height:1;text-align:right}
  .bv-li-head .bv-li-name,.bv-li-head>span{font-size:12px;font-weight:500;color:var(--stone)}
  .bv-li-head{display:grid;grid-template-columns:minmax(0,1fr) 7ch 76px 14px;column-gap:12px;padding:6px 18px;border-bottom:1px solid var(--hairline)}
  .bv-list.has-money .bv-li-head{grid-template-columns:minmax(0,1fr) 7ch 76px 12ch 14px}
  .bv-li-head .bv-li-n,.bv-li-head .bv-li-share,.bv-li-head .bv-li-money{text-align:right}
  .bv-foot{margin:0;padding:10px 18px 14px;font-size:12px;line-height:1.5;color:var(--stone);border-top:1px solid var(--hairline)}
  details.bv-foot{padding:6px 18px 10px}
  .bv-more>summary{display:inline-flex;flex-wrap:wrap;align-items:center;column-gap:.3em;min-height:32px;cursor:pointer;list-style:none;color:var(--stone);border-radius:6px}
  .bv-more>summary::-webkit-details-marker{display:none}
  .bv-more>summary>span:last-child{text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 40%,transparent);text-underline-offset:3px}
  .bv-more[open]>summary>span:last-child{text-decoration:none}
  .bv-more>summary:focus-visible{outline:2px solid var(--focus-color,var(--bleu));outline-offset:2px}
  .bv-more>p{margin:4px 0 0;max-width:72ch;color:var(--stone)}
  .bv-note{margin:8px 0 0;font-size:12.5px;line-height:1.5;color:var(--stone)}
  .bv-head{padding:14px 18px 12px;border-bottom:1px solid var(--hairline)}
  .bv-head h2{margin:0;font:600 14px/1.3 var(--font-ui,system-ui);letter-spacing:0;color:var(--ink)}
  .bv-head p{margin:3px 0 0;font-size:12.5px;line-height:1.45;color:var(--stone)}
  .card:has(figure.bv)>.cardhead .t,.card:has(.agebar)>.cardhead .t,.card:has(.bv-list)>.cardhead .t{font-family:var(--font-ui,var(--sans));font-weight:600;font-size:14px;letter-spacing:0}
  .card:has(>#ceoBsBars figure.bv)>.legend,.card:has(>#ceoGmBars figure.bv)>.legend{display:none}
  /* the KPI row: the Asset P&L tiles, split by hairlines */
  .bv-kpis{display:grid;grid-template-columns:repeat(var(--bv-cols,6),minmax(0,1fr));border:1px solid var(--hairline);border-radius:8px;overflow:hidden;background:var(--card)}
  .bv-kpis>.bv-kpi{box-shadow:1px 0 0 var(--hairline),0 1px 0 var(--hairline)}
  .bv-kpi{appearance:none;-webkit-appearance:none;box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;min-width:0;min-height:44px;margin:0;padding:14px 18px;border:0;border-radius:0;background:var(--card);color:var(--ink);font:inherit;font-family:var(--font-ui,system-ui);text-align:left}
  button.bv-kpi{cursor:pointer}
  button.bv-kpi:hover{background:color-mix(in srgb,var(--bv-ink) 4%,var(--card))}
  button.bv-kpi:focus{outline:none}
  button.bv-kpi:focus-visible{outline:2px solid var(--focus-color,var(--bleu));outline-offset:-2px}
  .bv-kpi-l{display:block;font-size:12.5px;color:var(--stone);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .bv-kpi-v{display:block;font:600 22px/1.25 var(--font-figures,var(--font-ui,inherit));letter-spacing:-.01em;margin-top:4px;white-space:nowrap}
  .bv-kpi-v.is-loss{color:var(--bv-neg)}.bv-kpi-v.is-gain{color:var(--bv-gain)}
  .bv-kpi-s,.bv-kpi-d{display:block;font-size:12px;color:var(--stone);margin-top:2px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
  .bv-kpi-d.is-good{color:var(--bv-gain)}.bv-kpi-d.is-bad{color:var(--bv-neg)}.bv-kpi-d.is-warn{color:var(--amber,#8A5A00)}
  .bv-kpi .bv-spark{margin:8px 0 0}
  /* the scatter: the Asset P&L "Aging against margin" */
  .bv-scatter{--bv-h:220px}
  .bv-pt>i{display:block;width:7px;height:7px;border-radius:50%;background:color-mix(in srgb,var(--bv-total) 72%,transparent);box-shadow:0 0 0 1.5px var(--bv-ring)}
  .bv-pt.is-loss>i{background:var(--bv-neg)}
  .bv-pt.is-ring>i{background:var(--bv-ring);box-shadow:inset 0 0 0 1.5px var(--bv-1)}
  .bv-pt.is-accent>i{background:var(--bv-1)}
  .bv-pt.is-on>i,.bv-pt:focus-visible>i{width:11px;height:11px}
  .bv-scatter.is-dense .bv-pt>i{width:5px;height:5px;box-shadow:0 0 0 1px var(--bv-ring)}
  .bv-scatter.is-dense .bv-pt.is-ring>i{background:var(--bv-ring);box-shadow:inset 0 0 0 1.25px var(--bv-1)}
  .bv-scatter.is-dense .bv-pt{width:16px;height:16px}
  /* a month axis in a narrow card names every other month (the first and the last always) */
  figure.bv.bv-lines{container-type:inline-size}
  @container (max-width:560px){.bv-x span:nth-child(even):not(:last-child){visibility:hidden}.bv-x span:nth-last-child(2){visibility:hidden}}
  /* the segmented breakdown: the Asset P&L "Profit by" */
  .bv-bd-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px}
  .bv-bd-title{margin:0;font:600 14px/1.3 var(--font-ui,system-ui);color:var(--ink)}
  .bv-seg{display:inline-flex;gap:2px;padding:2px;border:1px solid var(--hairline);border-radius:9px;background:var(--well,var(--paper,#F6F4F0));max-width:100%;overflow-x:auto;scrollbar-width:none}
  .bv-seg::-webkit-scrollbar{display:none}
  .bv-seg button{flex:none;min-height:30px;padding:0 12px;border:0;border-radius:7px;background:none;color:var(--stone);font:500 13px/1 var(--font-ui,inherit);cursor:pointer;white-space:nowrap}
  .bv-seg button[aria-selected="true"]{background:var(--card);color:var(--ink);box-shadow:inset 0 0 0 1px var(--hairline)}
  .bv-seg button:focus-visible{outline:2px solid var(--focus-color,var(--bleu));outline-offset:1px}
  .bv-bd-wrap{max-width:100%;overflow-x:auto}
  .bv-bd{width:100%;border-collapse:collapse;font-size:13.5px;font-variant-numeric:tabular-nums}
  .bv-bd th,.bv-bd td{padding:7px 8px;border-bottom:1px solid var(--hairline);text-align:left;vertical-align:top;font-weight:400}
  .bv-bd thead th{font-size:12px;font-weight:500;color:var(--stone);padding-top:6px;padding-bottom:6px;white-space:nowrap}
  .bv-bd .n{text-align:right;white-space:nowrap}
  .bv-bd tbody tr:last-child>*{border-bottom:0}
  .bv-bd tbody tr{position:relative}
  .bv-bd tbody tr:has(.bv-bd-open):hover>*,.bv-bd tbody tr:has(.bv-bd-open:focus-visible)>*{background:var(--bv-hover)}
  .bv-bd-open{all:unset;cursor:pointer;font-weight:500;color:var(--ink)}
  .bv-bd-open::after{content:"";position:absolute;inset:0}
  .bv-bd-open:focus-visible{outline:2px solid var(--focus-color,var(--bleu));outline-offset:2px;border-radius:3px}
  .bv-bd-chev{width:14px;color:var(--stone);text-align:right}
  .bv-bd .is-loss{color:var(--bv-neg)}
  .bv-bd-bar{display:block;height:3px;border-radius:2px;background:var(--bv-grid);margin:5px 0 0 auto;width:72px;overflow:hidden}
  .bv-bd-bar>i{display:block;height:100%;border-radius:2px;background:var(--bv-2)}
  .bv-bd tr:hover .bv-bd-bar>i{background:var(--bv-ink)}
  @media (pointer:coarse){.bv-seg button{min-height:44px}.bv-bd th,.bv-bd td{padding-top:12px;padding-bottom:12px}}
  /* sparklines in stat tiles */
  .bv-spark{display:block;width:100%;height:30px;margin:8px 0 2px;overflow:visible}
  .bv-spark .bv-line{fill:none;stroke:currentColor;stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
  .bv-chip{display:inline-flex;align-items:center;gap:4px;margin-left:6px;padding:1px 6px;border-radius:4px;font-size:11px;font-weight:500;font-variant-numeric:tabular-nums;background:var(--chip,var(--inset));color:var(--stone)}
  /* other meters: aging buckets, data quality, the earnings goal */
  .agebar{height:4px;border-radius:2px;background:var(--bv-track)}
  .agebar i{border-radius:2px}
  .agerow{font-family:var(--font-ui,var(--sans));font-size:12px}
  .barq{height:4px;border-radius:2px;background:var(--bv-track)}
  .barq>span{border-radius:2px;transform-origin:0 50%}
  progress[aria-label="Monthly earnings goal progress"]{-webkit-appearance:none;appearance:none;display:block;width:100%;max-width:520px;height:6px;border:0;border-radius:3px;background:var(--bv-track);overflow:hidden;color:var(--bv-1)}
  progress[aria-label="Monthly earnings goal progress"]::-webkit-progress-bar{background:var(--bv-track);border-radius:3px}
  progress[aria-label="Monthly earnings goal progress"]::-webkit-progress-value{background:var(--bv-1);border-radius:3px}
  progress[aria-label="Monthly earnings goal progress"]::-moz-progress-bar{background:var(--bv-1);border-radius:3px}
  /* load motion, once per view, never under reduced motion */
  @keyframes bv-reveal{from{clip-path:inset(-12px 100% -12px 0)}to{clip-path:inset(-12px 0 -12px 0)}}
  @keyframes bv-rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
  @keyframes bv-pop{from{opacity:0;transform:scale(.2)}to{opacity:1;transform:scale(1)}}
  @keyframes bv-grow-y{from{transform:scaleY(0)}to{transform:none}}
  @keyframes bv-grow-x{from{transform:scaleX(0)}to{transform:none}}
  @keyframes bv-fade{from{opacity:0}to{opacity:1}}
  @keyframes bv-count{from{opacity:.999}to{opacity:1}}
  @media (prefers-reduced-motion:no-preference){
    .bv-anim .bv-ser{animation:bv-reveal .82s var(--bv-ease) backwards}
    .bv-anim .bv-ser .bv-line.is-2nd{animation:bv-fade .5s ease-out .12s backwards}
    .bv-anim .bv-dot.is-last>i{animation:bv-pop .2s ease-out .7s backwards}
    .bv-scatter.bv-anim .bv-marks{animation:bv-fade .6s ease-out backwards}
    .bv-anim .bv-li-track i{animation:bv-grow-x .45s var(--bv-ease) backwards;animation-delay:calc(var(--i) * 25ms)}
    .bv-anim .bv-li-n{animation:bv-count .5s linear backwards;animation-delay:calc(var(--i) * 25ms)}
    .bv-spark.bv-anim{animation:bv-reveal .45s var(--bv-ease) .1s backwards}
    .bv-spark.bv-anim .bv-area{animation:bv-rise .45s ease-out .15s backwards}
    .bv-kpis-anim .kpi>.v,body:is([data-view="numbers"],[data-view="reports"]) #content>.kpis .kpi>.v{animation:bv-count .5s linear backwards}
    .barq>span{animation:bv-grow-x .45s var(--bv-ease) backwards}
  }
  @media (max-width:1100px) and (min-width:641px){.bv-kpis{grid-template-columns:repeat(var(--bv-cols-md,3),minmax(0,1fr))}}
  @media (max-width:640px){
    figure.bv{--bv-h:160px}
    .bv-scatter{--bv-h:200px}
    .bv-cols,.bv-lines{padding:12px 14px 14px}
    .bv-x span.is-skip,.bv-x span:nth-child(even):not(:last-child){visibility:hidden}
    .bv-frame{column-gap:6px}
    .bv-y{min-width:1.9em;font-size:10.5px}
    .bv-x{font-size:10px}
    .bv-x small{font-size:9px}
    .bv-legend{gap:4px 14px}
    .bv-legend-note{margin-left:0;flex-basis:100%}
    .bv-li,.bv-li-head{column-gap:8px;padding-left:14px;padding-right:14px;grid-template-columns:minmax(0,1fr) 5.5ch 56px 12px}
    .bv-list.has-money .bv-li,.bv-list.has-money .bv-li-head{grid-template-columns:minmax(0,1fr) 5ch 56px 9ch 10px}
    .bv-li-track{width:52px}
    .bv-li-money{font-size:12.5px}
    .bv-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
    .bv-kpi{padding:12px 14px}
    .bv-kpi-v{font-size:20px}
    .bv-hide-sm{display:none}
    .bv-bd-bar{width:52px}
    .bv-head{padding:13px 14px 11px}
    .bv-foot{padding:10px 14px 13px}
    details.bv-foot{padding:4px 14px 8px}
    .bv-tip{min-width:150px;max-width:220px}
  }
  @media (pointer:coarse){.bv-table>summary,.bv-more>summary{min-height:44px}}
  @media (prefers-reduced-motion:reduce){.bv-ser,.bv-ser *,.bv-dot>i,.bv-cross,.bv-list>li,.bv-li{transition:none}.agebar i{transition:none}}
  @media (forced-colors:active){.bv-t1,.bv-t2,.bv-tneg{forced-color-adjust:none}.bv-t1{color:Highlight}.bv-t2{color:CanvasText}.bv-tneg{color:Mark}.bv-bar{background:currentColor}.bv-ser .bv-area{display:none}.bv-li-track i,.bv-bd-bar>i,.bv-pt>i{background:Highlight;forced-color-adjust:none}.bv-grid i{border-top-color:GrayText}.bv-li-track{background:Canvas;outline:1px solid GrayText}.bv-tip{background:Canvas;border-color:CanvasText}}
  @media print{.bv-tip{display:none!important}.bv-table[open] .bv-table-wrap{overflow:visible}}
  /* BLEU-VIZ-20261028:END */
  @media (prefers-reduced-motion:reduce){ .priority .sev.crit{animation:none} }

  /* ===============================================================     OPERATING MODE — capability, not width.
     ===============================================================     Bleu decided "is this a touch device" with a single width threshold:
     everything in the max-width:860px block -- the bottom dock, the static
     rail, the compact topbar -- and nothing outside it. Measured:

       iPhone             393px   touch shell
       iPad 11" portrait  834px   touch shell   (26px of headroom)
       iPad 11" LANDSCAPE 1194px  DESKTOP shell
       iPad Pro 12.9"     1366px  DESKTOP shell

     An iPad in landscape was silently reclassified as a mouse workstation.
     The audit counted 1,321 sub-44px targets across 25 routes there against
     456 on phone -- and that gap is not 1,321 separate mistakes. It is
     overwhelmingly ONE component, the desktop rail, whose nav rows render at
     202x38 and 202x36, repeated on every route.

     Width cannot answer this question. A 1194px iPad and a 1194px browser
     window want the same LAYOUT and emphatically different GEOMETRY. So
     geometry keys off `pointer:coarse` -- what is actually touching the
     screen -- while composition stays width-driven. That is why this block
     sets sizes and never sets layout.

     Deliberately NOT changed here: whether iPad landscape should show the
     bottom dock instead of the rail. That is a navigation composition
     decision, it is Jared's, and it is written up rather than assumed. */
  @media (pointer:coarse){
    /* Rail navigation: 38px and 36px rows are the bulk of the iPad deficit. */
    .navi{padding-top:12px;padding-bottom:12px}
    /* 11px landed at 42px rendered -- measured, not assumed. */
    .grphead{padding-top:13px;padding-bottom:13px}
    /* Topbar icons are 34px inside the mobile block; this follows it in
       source order at equal specificity, so touch wins. */
    .topbar .btn.icon,.topbar .navburger{width:44px;height:44px}
    /* Text inputs sit at 36px. A field you cannot reliably tap is a field
       you retype. */
    input:not([type=checkbox]):not([type=radio]){min-height:44px}
    /* Banner actions -- Enable / Not now measured 64x22 and 46x19 -- are real
       decisions rendered at a third of a thumb. */
    .btn,.ivschip,.ivfiltbtn,.ivviewbtn,.sortchip{min-height:44px}
    button.link.click{min-height:44px;padding-left:10px;padding-right:10px}
    /* The object sheet. Measured on the open car sheet at 393x852: the tab
       row 86x31, the "Edit listing" action 85x24, the close button 40x40.
       This is the deepest working surface in the product -- the screen
       somebody stands in front of a car holding -- and every control on it
       was below the line. .dx also grows its own negative margin back so the
       bigger hit area does not shove the header off its baseline. */
    .cartabs .tab,.tabs .tab{min-height:44px}
    .civiewbtn{min-height:44px;padding-left:14px;padding-right:14px}
    .dx{width:44px;height:44px;margin:-10px -10px 0 0}
    /* Sort options are already 48px; this keeps any future sheet honest. */
    .ivsortopt{min-height:48px}
    /* Form controls inside a record. .fin is the app's field input and sits
       at 35px rendered; the generic input rule above never reached it
       because most .fin controls are <select>, and a select you mis-tap
       opens the wrong value rather than doing nothing. */
    .fin,select.fin,.tksel{min-height:44px}
    /* Seller and Buyer are the links out of a car into the people around it
       -- the nested-object entry points this whole sheet is judged on -- and
       they rendered 157x21 inside their field cells. Padding rather than a
       height, so the text stays on the cell's own baseline. */
    .linkbtn{min-height:44px;padding:11px 0}
    /* The column-sort header and the "More sort..." select inside a record
       drawer. Measured on the person sheet at 1194px: 64x15, 379x15, 116x15
       and 110x21 -- the smallest interactive targets left anywhere in the
       converted surfaces, and they sort somebody's entire car history. */
    /* `.ivcols button.colsort` is (0,2,1) and carries `all:unset`, so a bare
       `.colsort` rule at (0,1,0) loses to it silently -- the same specificity
       trap that once left two theme toggles in the topbar. Match the shape. */
    /* `.ivcols button.colsort` is (0,2,1) and carries `all:unset`, so a bare
       `.colsort` rule at (0,1,0) loses to it silently -- the same specificity
       trap that once left two theme toggles in the topbar. Match the shape.
       .sortsel gets its height from padding rather than min-height: the
       column header is a grid row, and a 44px min-height on the select
       alone made it taller than the labels beside it, so "GROSS" and the
       select collided. Padding grows the control inside the row instead of
       against it. */
    .ivcols button.colsort,.colsort{min-height:44px}
    /* Notifications measured 26px tabs and a 14px link -- every control on
       the surface failed touch, on the surface people reach for first. */
    .ntab{min-height:44px;padding-left:14px;padding-right:14px}
    /* The Board composer's section picker measured 32px. */
    #bnSection,#bnAssign,#bnApGroup{min-height:44px}
    /* The Board note action row is the core interaction of the whole surface
       -- Mark done, Reply, Attach, Edit, Delete -- and every button on it was
       24px (34px rendered on a phone). This is the deepest touch failure the
       comms wave found, and it was hidden behind the section index nobody got
       past. */
    .bnact button{width:44px;height:44px;border-color:var(--line);background:var(--surface)}
    .bnact{opacity:1;gap:6px}
    .bnact select.bnmove,.bnact select.bnassign{height:44px;font-size:12px;border-color:var(--line);background:var(--surface);padding:0 8px}
    .dmcompose .attachbtn,.dmcompose .btn.sec,#dmVoice{width:44px;height:44px;min-width:44px}
    .bmobileback{width:44px;height:44px}
    #drawer summary,.content summary{min-height:44px;display:flex;align-items:center;gap:6px}
    .gsactionbtn{width:44px;height:44px;min-width:44px}
    /* Object mentions are inline inside prose, so their VISIBLE size cannot
       grow without breaking the line. Their HIT size can: an invisible box
       drawn by a pseudo-element, so layout and typography are untouched.
       The box wants to be 44px (14px above and below a 16px chip, and out to
       44px wide); how far it may actually reach is decided per chip by
       fitInlineHits() from the rendered geometry -- a chip on the first line
       of a note sits 10px under a row of 44px buttons, so its box stops at
       that row rather than stacking on it, and two chips share the gap
       between them. Never overlapping, as large as the neighbours allow. */
    /* The same invisible box serves the per-message React / More buttons
       (16px icons in a bubble corner) and reaction pills (17px) in
       Messages: visible size is the design's, hit size is the thumb's. */
    .ment.click,.bnote .pill.click,.bmeta .pill.click,.dmact,.dmreact,.sit-chip{position:relative;--hu:14px;--hd:14px;--hl:0px;--hr:0px}
    .notifpanel .ndot{--hu:14px;--hd:14px;--hl:0px;--hr:0px}   /* already position:absolute in its corner; keep it there */
    .ment.click::before,.bnote .pill.click::before,.bmeta .pill.click::before,.dmact::before,.dmreact::before,.notifpanel .ndot::before,.sit-chip::before{content:"";position:absolute;z-index:1;top:calc(-1*var(--hu));bottom:calc(-1*var(--hd));left:calc(-1*var(--hl));right:calc(-1*var(--hr))}
    /* .bnmove is a real control (move this note to another section), not an
       inline chip, so it gets the full 44px. */
    .bnmove{min-height:44px;min-width:44px}
    /* Board channel rows (What's happening, Today, the sections) are the
       navigation of the whole surface and were 37px on a phone. */
    .bchan{min-height:44px}
    /* Messages thread view, found by the populated proof: header identity
       36px, pinned-strip rows 30px, composer 38px. */
    .dhid{min-height:44px}
    .dmpinrow{min-height:44px}
    .dmcompose textarea{min-height:44px}
    .notifrow{min-height:44px}
    .notiftoprow .link{min-height:44px;display:inline-flex;align-items:center}
    .notifpanel .link.click,.notifpanel button{min-height:44px;display:inline-flex;align-items:center}
    /* The per-row mark-read dot is a 12px dot by design; the 44px rule above
       was stretching it into a 12x44 oval. It keeps its face and takes the
       same invisible 44px hit box as the inline chips (fitInlineHits). */
    .notifpanel .ndot{min-height:0}
    /* Hub, found by the front-door proof: text-styled action links, section
       header links, the disclosure summary, situation rows' actions, and
       list rows were 17-36px on a phone. */
    .sitlink,.hubsec-h .link,.hubmore>summary{min-height:44px;display:inline-flex;align-items:center}
    .hubmore>summary{display:flex}
    .priority,.row.click{min-height:44px}
    .dxrow{min-height:56px}
    .dxacts .btn{min-height:44px}
    .aplinks .btn,.chiprow .btn,.lf .fin{min-height:44px}
    .fchips .fchip,[data-askseed]{min-height:44px;display:inline-flex;align-items:center}
    .c2icon{min-width:44px;min-height:44px}
    .gsrow{min-height:48px}
    .sit-line{gap:0 14px}
    /* the phone rule above clips a long chip with overflow:hidden, which
       also clips its invisible hit box; let it wrap instead */
    .sit-chip{overflow:visible;white-space:normal;text-overflow:clip}
    /* chip rows 5px apart could only ever share 2px of hit box each; 16px
       apart every chip reaches at least 36px, none overlapping */
    .sit-ex{gap:16px 14px;margin-top:12px}
    .sortsel{padding-top:12px;padding-bottom:12px}
    .ivcolswrap{align-items:stretch}
  }


  /* ===============================================================     IPAD LANDSCAPE NAVIGATION — shell only, never composition.
     ===============================================================     A coarse-pointer device at 1194px was getting the desktop sidebar rail,
     which measures 230px of a 1194px screen: 19% of an 11-inch workspace spent
     permanently on navigation that the same device does in a 61px dock when
     you rotate it to portrait.

     Measured before this rule: iPad landscape and a 1194px MOUSE browser
     rendered byte-identically -- same rail, same column counts, same content
     width, on all five surfaces. Width alone decided, so a tablet and a
     desktop window were the same product.

     What this block does and does not do is the whole point. It moves
     NAVIGATION to the touch shell: rail becomes the drawer it already is on
     phone, dock appears, topbar goes compact. It deliberately does NOT import
     the phone's CONTENT composition -- no column counts, no padding, no card
     sizing. Inventory at 1194px should still lay out for 1194px; it simply
     gets ~230px more room to do it in, and a thumb-reachable way to move
     between worlds.

     Worlds remain free to build purpose-built iPad landscape composition on
     top of this. That is a per-world decision, not a shell one. */
  @media (pointer:coarse) and (min-width:861px){
    /* The grid must collapse WITH the rail. #shell is `230px 1fr`, so hiding
       the rail alone left <main> sitting in the 230px track with 964px of
       empty page beside it. Caught by looking at the render rather than at
       the target count, which had happily improved while the layout was
       destroyed. */
    #shell{grid-template-columns:1fr;align-content:start}
    .rail{display:none}
    .rail.navopen{display:block;position:fixed;inset:0;z-index:50;height:100vh;overflow-y:auto}
    .rail.navopen #nav{display:flex;flex-direction:column;gap:2px;padding:10px 10px 28px;-webkit-overflow-scrolling:touch}
    .railtheme{display:flex;align-items:center;gap:10px;padding:10px 8px 2px;font-size:13px;color:var(--rail-txt)}
    .topbrand{order:1;display:flex;align-items:center;gap:8px;min-width:0}
    .topbrand .wm{--wm-h:22px}
    .topbar{flex-wrap:wrap;padding:6px 16px 9px}
    .topbar .crumb{display:none}
    .topbar>div:last-child{order:2;margin-left:auto;gap:6px!important}
    .topbar .navburger,.topbar .btn.icon.themeBtn{display:none}
    .content{padding-bottom:var(--dock-clearance);scroll-padding-bottom:var(--dock-clearance)}
    .gstoggle{display:inline-flex}
    .gsearch{order:3;flex:1 1 100%;max-width:none;margin:8px 0 0;padding:0;position:relative;display:none}
    body.gsopen .gsearch{display:flex}
    .tabbar{display:flex;position:fixed;left:50%;transform:translateX(-50%);
      width:min(560px,calc(100% - 48px));bottom:calc(10px + env(safe-area-inset-bottom,0px));
      z-index:25;background:color-mix(in srgb, var(--surface) 72%, transparent);
      -webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);
      border:1px solid color-mix(in srgb, var(--line) 70%, transparent);
      border-radius:22px;box-shadow:0 8px 30px rgba(8,18,32,.16),0 1px 2px rgba(8,18,32,.06);padding:6px}
    /* A 1194px dock stretched to full width would put Hub and More 1100px
       apart, which is worse than the rail it replaced. Centred and capped so
       both thumbs reach it while holding the device. */
    /* The dock's BUTTONS were styled only inside the max-width:860 block, so
       at 861px they fell back to user-agent chrome and rendered as five
       bordered boxes inside the pill. Same declarations, same shape. */
    .tabbtn{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:7px 2px;border:none;background:transparent;color:var(--rail-txt);font-family:var(--sans);font-size:10px;font-weight:600;line-height:1.2;text-align:center;overflow-wrap:anywhere;cursor:pointer;border-radius:16px;-webkit-tap-highlight-color:transparent;transition:background .14s ease,color .14s ease}
    .tabbtn .tic{font-size:18px;line-height:1;transition:transform .14s ease}
    .tabbtn .tic svg{width:20px;height:20px;display:block}
    .tabbtn.on{color:var(--rail-on);background:color-mix(in srgb, var(--miami) 12%, transparent)}
    .tabbtn.on .tic{color:var(--miami);transform:translateY(-1px) scale(1.06)}
  }

  /* ===== OVERNIGHT V2 — Board (§8–§10, §19, §20) and the generic action sheet ===== */
  .bcomposesum{font-size:15.5px;color:var(--mut2);gap:10px}
  .bcompose:not([open]){background:var(--inset);border:1px solid transparent;box-shadow:none;border-radius:14px}
  .bcomposesum .bcpen{display:inline-flex;color:var(--mut2)}
  .bcomposesum .bcpen svg{width:18px;height:18px}
  .bnote{padding:12px 14px 12px 13px;border-radius:14px}
  .bnhead{align-items:center;flex-wrap:nowrap;gap:9px}
  .bnwho{gap:2px 6px;align-items:center;padding-top:0}
  .bnauthor{font-size:13.5px}
  .bntime{font-size:12px}
  .bnheadright{flex:none;flex-wrap:nowrap;margin-left:auto;gap:2px}
  /* This sat at base scope and forced every note's actions permanently
     visible, defeating the hover-reveal three rules above it -- so a
     desktop feed carried tick / reply / more on all thirty rows at once.
     A pointer reveals them on the row it is on; a finger has no hover, so
     touch keeps them shown. */
  .bnact{gap:0}
  @media(hover:none),(pointer:coarse){.bnact{opacity:1}}
  .bnact button,.bnact button:hover{width:36px;height:36px;border-radius:10px;border:1px solid transparent;background:transparent;color:var(--mut)}
  .bnact button:hover,.bnact button:focus-visible{background:var(--inset);color:var(--text)}
  .bnact button svg{width:18px;height:18px}
  .bnact button.on{background:var(--pill-warn-bg);color:var(--amber)}
  @media(pointer:coarse){.bnact button,.bnact button:hover{width:44px;height:44px;border:1px solid transparent;background:transparent}.bnact{gap:0}}
  .bbody{font-size:14px;line-height:1.45}
  .bmeta{margin-top:8px;gap:6px}
  .bmeta .ment{font-size:12.5px;padding:3px 10px 3px 8px}
  .bmeta .pill{font-size:12px;padding:3px 10px}
  .bncli{padding:5px 0;font-size:14px}
  .bncli input[type=checkbox]{width:20px;height:20px}
  .bncladd input{font-size:14px;padding:6px 0}
  @media(pointer:coarse){.bncli a{opacity:1;min-height:32px;display:inline-flex;align-items:center;padding:0 6px}}
  .bchipnav{display:flex;gap:6px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin:0 0 12px;padding:2px 0 6px}
  .bchipnav::-webkit-scrollbar{display:none}
  .bnavchip{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 13px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--text);font:inherit;font-size:13.5px;font-weight:600;cursor:pointer;white-space:nowrap}
  .bnavchip.on{background:var(--text);color:var(--bg);border-color:var(--text)}
  .bnavchip .n{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:11.5px;font-weight:700;color:var(--mut);background:var(--inset);border-radius:999px;padding:1px 7px}
  .bnavchip.on .n{background:rgba(255,255,255,.2);color:var(--bg)}
  .bnavchip .n.warn{color:var(--pill-warn-fg);background:var(--pill-warn-bg)}
  /* Touch size follows the pointer, not the width: an iPad in landscape is
     1194px wide and still operated with a thumb. */
  @media(pointer:coarse){.bnavchip{min-height:44px;padding:0 14px;font-size:14px}}
  /* The active chip already names the feed; a heading under it repeating
     the same three words is the page describing itself. */
  .bfeedhead,.bfeedsub{display:none}
  @media(max-width:860px){
    .bbody{font-size:15.5px}
    .bnbody-wrap{padding-left:0;margin-top:8px}
    .bsidebar{display:none!important}
    .bwrap[data-mobileview="channels"] .bfeed{display:block}
    .bmobileback{display:none!important}
    .bfeedhead,.bfeedsub{display:none}
    .bchipnav{display:flex;gap:6px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin:0 -16px 12px;padding:2px 16px 6px;scroll-padding:0 16px}
    .bchipnav::-webkit-scrollbar{display:none}
    .bnavchip.on{background:var(--text);color:var(--bg);border-color:var(--text)}
    .bnavchip .n{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:11.5px;font-weight:700;color:var(--mut);background:var(--inset);border-radius:999px;padding:1px 7px}
    .bnavchip.on .n{background:rgba(255,255,255,.2);color:var(--bg)}
    .bnavchip .n.warn{color:var(--pill-warn-fg);background:var(--pill-warn-bg)}
    .btoolbar{margin-bottom:10px;gap:8px}
    .btoolbar input[type=search]{flex:1 1 100%;min-width:0;font-size:16px;min-height:44px;border-radius:12px}
    .bchip{min-height:36px;display:inline-flex;align-items:center;font-size:13px}
    .bfeed{padding:0}
    .bfeedlist{gap:10px}
    .bneeds{margin-bottom:12px}
  }
  /* ===== Board note, Messages-grade =====
     One soft surface per note on the page's ground: no hairline box, no
     coloured rail down the left edge, no tinted fill for "assigned" or
     "overdue" -- the rail was a stripe on every card that said nothing a
     word in the meta line does not say better ("Overdue", "for Anthony").
     On touch the note is handled like a message: swipe left to mark it
     done (or reopen it), press and hold for everything else. */
  .bnote,.bnote.k-warn,.bnote.k-pay,.bnote.k-assigned{background:var(--surface);border:0;border-radius:18px;box-shadow:0 1px 2px rgba(10,20,40,.05);padding:0;position:relative;overflow:hidden}
  .bnote:hover,.bnote:focus-within{box-shadow:0 2px 10px rgba(10,20,40,.08)}
  .bnin{padding:12px 14px 12px 14px;background:var(--surface);position:relative;z-index:1;transition:transform .22s cubic-bezier(.2,.8,.2,1)}
  .bnote.swiping .bnin{transition:none}
  .bnbody-wrap.hasface{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:14px}
  .bnbody-wrap.hasface>*{grid-column:1}
  .bnbody-wrap.hasface>.bnface{grid-column:2;grid-row:1/span 6;align-self:start;margin-top:-30px}
  .bnfaceimg[data-st="on"],.bnfaceimg[data-st="wait"]{display:block;width:72px;height:54px;border-radius:10px;overflow:hidden;background:var(--inset)}
  .bnfaceimg[data-st="none"]{display:none}
  @media(max-width:640px){.bnfaceimg[data-st="on"],.bnfaceimg[data-st="wait"]{width:60px;height:45px}.bnbody-wrap.hasface>.bnface{margin-top:-4px}}
  .bnote::before{content:attr(data-swipelabel);position:absolute;inset:0;display:flex;align-items:center;justify-content:flex-end;padding-right:22px;
    font-weight:700;font-size:14px;color:var(--on-miami);background:var(--racing);border-radius:inherit;opacity:0;transition:opacity .12s;}
  .bnote.st-done::before{background:var(--voodoo)}
  .bnote.swiping::before{opacity:1}
  .bnote.swipe-armed::before{background:var(--chart-2)}
  .bnote.leaving{transition:opacity .2s,max-height .25s .1s;opacity:0}
  .bnote.pressing .bnin{transform:scale(.985);background:var(--inset)}
  .replies .bnote{box-shadow:none;background:var(--inset);border-radius:14px}
  .replies .bnin{background:var(--inset)}
  .pvside{display:block;font-size:10.5px;font-weight:600;letter-spacing:.02em;color:var(--mut2);text-transform:none}
  .bnfor{font:inherit;color:var(--text);font-weight:600;background:none;border:0;padding:0;cursor:pointer}
  .bnfor:hover{text-decoration:underline}
  .bnaging{color:var(--mut)}
  .bnlink{font:inherit;font-size:13px;font-weight:600;color:var(--miami);background:none;border:0;padding:0 2px;cursor:pointer;white-space:nowrap}
  .bnlink:hover{text-decoration:underline}
  .bfeedlist{gap:8px}
  @media(pointer:coarse){
    .bnote{touch-action:pan-y pinch-zoom;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
    /* the tick and the reply live in the swipe and the press; ••• stays as
       the visible way in for anyone who does not know the gestures */
    .bnact [data-notedone],.bnact [data-notereply]{display:none}
    .bnfor,.bnlink{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center}
    .bnfor{padding:0 8px;margin:0 -8px}
  }
  #asheet .asscrim{position:fixed;inset:0;z-index:120;background:rgba(8,18,32,.28)}
  #asheet.as-pop .asscrim{background:transparent}
  #asheet .assheet{position:fixed;z-index:121;background:var(--surface)}
  #asheet.as-sheet .assheet{left:0;right:0;bottom:0;border-radius:20px 20px 0 0;padding:6px 12px calc(12px + env(safe-area-inset-bottom,0px));max-height:80vh;overflow-y:auto;box-shadow:0 -12px 40px rgba(8,18,32,.22);animation:dmrise .2s cubic-bezier(.2,.8,.2,1)}
  #asheet.as-pop .assheet{border:1px solid var(--line);border-radius:14px;padding:6px;box-shadow:var(--shadow2,0 10px 30px rgba(0,0,0,.2));max-height:min(70vh,520px);overflow-y:auto}
  #asheet.as-pop .asgrab,#asheet.as-pop .ascancel{display:none}
  @media(prefers-reduced-motion:reduce){#asheet .assheet{animation:none}}
  .asgrab{width:36px;height:4px;border-radius:2px;background:var(--line);margin:4px auto 10px}
  .astitle{font-size:12.5px;color:var(--mut);padding:2px 8px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #asheet.as-pop .astitle{padding:8px 10px 6px;border-bottom:1px solid var(--line2);margin-bottom:4px}
  .aslist{display:flex;flex-direction:column}
  .ashead{font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mut2);padding:8px 10px 4px}
  .asrow{display:flex;align-items:center;gap:12px;min-height:48px;padding:0 10px;border:none;background:none;font:inherit;font-size:15.5px;color:var(--text);text-align:left;border-radius:12px;cursor:pointer;width:100%}
  #asheet.as-pop .asrow{min-height:40px;font-size:13.5px;gap:10px}
  @media(pointer:coarse){#asheet.as-pop .asrow{min-height:44px;font-size:14.5px}}
  .asrow>svg{width:20px;height:20px;flex:none;color:var(--mut)}
  .asrow .bavatar{flex:none}
  .aslbl{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .asrow:hover,.asrow:focus-visible{background:var(--inset);outline:none}
  .asrow.on{background:var(--e100)}
  .asrow.danger,.asrow.danger>svg{color:var(--carmine)}
  .aschev{color:var(--mut2);font-size:20px;line-height:1}
  .ascancel{width:100%;min-height:48px;margin-top:6px;border:none;border-radius:14px;background:var(--inset);font:inherit;font-size:15.5px;font-weight:600;color:var(--text);cursor:pointer}

  .grphead.on .grplabel{color:var(--rail-on);font-weight:700}
  .navgrp.closed .grphead.on{background:rgba(8,18,32,.05)}
  html[data-theme="dark"] .navgrp.closed .grphead.on{background:rgba(255,255,255,.06)}
  .grphead.on::after{content:"";width:6px;height:6px;border-radius:50%;background:var(--miami);margin-right:2px}
  .navgrp:not(.closed) .grphead.on::after{display:none}
  .grphead{min-height:38px;font-size:12px}
  .navi{padding-top:10px;padding-bottom:10px;font-size:14px}
  /* ===== OVERNIGHT V2 — Navigation + shell (§1, §16, §27) =====
     .navopen only ever exists when the rail is an overlay (phone, iPad
     portrait, iPad landscape with the dock), so these rules need no width. */
  .rail.navopen #nav{padding:6px 12px 24px;gap:0}
  .rail.navopen .navgrp{margin-bottom:0;border-bottom:1px solid rgba(8,18,32,.08)}
  .rail.navopen .navgrp:last-child{border-bottom:0}
  .rail.navopen .grphead{min-height:52px;margin-top:0;padding:0 8px 0 10px;gap:12px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:var(--rail-txt);border-radius:12px}
  .rail.navopen .grphead .chip{width:28px;height:28px;border-radius:9px}
  .rail.navopen .grphead .gic{width:16px;height:16px}
  .rail.navopen .grphead .chev{width:16px;height:16px;opacity:.6}
  .rail.navopen .leaves{padding:0 0 8px;gap:2px}
  .rail.navopen .navgrp.closed .leaves{display:none}
  .rail.navopen .navi{min-height:52px;padding:0 12px 0 14px;font-size:16.5px;gap:14px;border-left-width:3px;border-radius:12px}
  .rail.navopen .navi .g{width:28px}
  .rail.navopen .navi .gsvg{width:24px;height:24px;opacity:.85}
  .rail.navopen .navi.on{font-weight:650}
  .rail.navopen .me{padding:14px 12px 28px;margin:0 12px}
  @media(min-width:600px){
    .rail.navopen{width:380px;right:auto;box-shadow:12px 0 44px rgba(8,18,32,.22)}
    .rail.navopen::before{content:"";position:fixed;top:0;bottom:0;left:380px;right:0;background:rgba(8,18,32,.32)}
  }
  @media(max-width:860px){
    .tabbtn .tic svg{width:24px;height:24px}
    .tabbtn{font-size:10px;gap:3px}
    .topbar .btn.icon svg{width:24px!important;height:24px!important}
  }
  @media(min-width:861px){
    .bcompose[open]>.bcomposesum{display:none}
  }
  /* .bfiltbtn is a base control now; nothing to reveal at this width. */
  @media(max-width:860px){
    .btoolbar{flex-wrap:nowrap}
    .btoolbar input[type=search]{flex:1 1 auto}
    .bfiltbtn{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:44px;padding:0 12px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--text);font:inherit;font-size:13.5px;font-weight:600;cursor:pointer;max-width:46%}
    .bfiltbtn span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .bfiltbtn.on{border-color:var(--miami);color:var(--miami);background:var(--e100)}
    .btoolbar .bchips{display:none}
  }
  /* A phone: the search keeps room to be read; Filter becomes its icon until
     a filter is on, when it names the filter. */
  @media(max-width:480px){
    .btoolbar input[type=search]{min-width:120px}
    .bfiltbtn:not(.on) span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
    .bfiltbtn:not(.on){width:44px;justify-content:center;padding:0}
    .btoolbar .bquick{flex:none}
  }

  /* ===== OVERNIGHT V2 — Check In entry (§12–§15) ===== */
  #kiosk .kchoices{display:flex;flex-direction:column;gap:10px;margin-top:6px}
  #kiosk .kbtn.sec{background:var(--surface);color:var(--text);border:1px solid var(--line)}
  #kiosk .klink{display:block;margin:14px auto 0;padding:10px;min-height:44px;background:none;border:none;color:var(--mut);font:inherit;font-size:14px;cursor:pointer}
  #kiosk .kwho{display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--mut);margin-bottom:14px}
  #kiosk .kstate{font-size:13px;font-weight:600;color:var(--racing);margin:-6px 0 14px}
  #kiosk .kvin{letter-spacing:.08em;font-family:var(--mono);text-transform:uppercase}
  #kiosk .kvinmeter{font-size:12.5px;color:var(--mut2);min-height:18px;margin:-6px 0 10px;text-align:center;font-variant-numeric:tabular-nums}

  /* ================= Board as a conversation ==========     Channels on the left, the conversation in the middle, the composer at
     the bottom of it. Scoped under .bx so none of the card-feed rules above
     leak in. On a phone: one surface at a time, and a conversation is the
     whole screen, riding on the keyboard. */
  .content:has(> .bx),.content:has(> .viewhost > .bx){max-width:none;padding:0}
  .bx.bwrap{display:grid;grid-template-columns:300px minmax(0,1fr);height:calc(100dvh - var(--bx-top,58px));min-height:480px;margin:0}
  .bxlist{border-right:1px solid var(--line);overflow-y:auto;overscroll-behavior:contain;padding:18px 10px 24px;background:var(--bg)}
  .bxlisthead{padding:0 10px 12px}
  .bxlisthead .bxtitle{font-size:28px;margin:0}
  .bxlisthead .sub{font-size:12.5px;color:var(--mut);margin-top:2px}
  .bneeds{margin:4px 0 14px;padding:10px 10px 8px;border-radius:14px;background:var(--surface);border:1px solid var(--line)}
  .bxneedhead{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mut);padding:0 2px 6px}
  .bxneed{display:block;padding:8px 6px;border-radius:9px;cursor:pointer;min-height:44px}
  .bxneed+.bxneed{border-top:1px solid var(--line2)}
  .bxneed:hover{background:var(--inset)}
  .bxneedtxt{font-size:13.5px;color:var(--text);line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .bxneedsub{display:block;font-size:12px;color:var(--mut);margin-top:2px}
  .bxneedsub .over{color:var(--carmine);font-weight:600}
  .bxneedempty{font-size:13px;color:var(--mut);padding:4px 2px 6px}
  .bxseeall{display:block;width:100%;text-align:left;border:0;background:none;color:var(--miami);font:600 13px var(--sans);padding:8px 6px 2px;cursor:pointer;min-height:36px}
  .bxgroup{display:flex;flex-direction:column;gap:2px}
  .bxgrouplbl{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mut2);padding:16px 10px 6px}
  .bx .bchan{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;cursor:pointer;min-height:56px;font-size:14px;justify-content:initial}
  .bx .bchan:hover{background:var(--inset)}
  .bx .bchan.on{background:color-mix(in srgb,var(--miami) 10%,var(--surface))}
  .bxglyph{width:32px;height:32px;border-radius:10px;background:var(--inset);display:grid;place-items:center;color:var(--mut);font:600 16px var(--sans)}
  .bxglyph svg{width:18px;height:18px}
  .bx .bchan.on .bxglyph{background:var(--miami);color:var(--on-miami)}
  .bxrowtxt{min-width:0;display:flex;flex-direction:column;gap:1px}
  .bxrowtop{display:flex;align-items:baseline;gap:8px;min-width:0}
  .bx .bchan .lbl{font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  .bxwhen{margin-left:auto;font-size:11.5px;color:var(--mut2);white-space:nowrap}
  .bxprev{font-size:12.5px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .bx .bchancount{min-width:22px;height:22px;padding:0 7px;border-radius:11px;background:var(--inset);color:var(--mut);font:600 11.5px var(--sans);display:inline-grid;place-items:center;font-variant-numeric:tabular-nums}
  .bx .bchancount.warn{background:var(--miami);color:var(--on-miami)}
  .bx .bchancount.zero{visibility:hidden}
  .bxadmin{padding:18px 10px 0;font-size:12px;color:var(--mut2)}
  .bxadmin a{cursor:pointer;color:var(--mut)}
  .bxconv{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--bg)}
  .bx .bxhead{display:flex;align-items:center;gap:12px;padding:12px 22px;border-bottom:1px solid var(--line);min-height:62px;background:var(--bg);margin:0}
  .bxheadtxt{min-width:0;flex:1}
  .bx .bxhead h2{font:600 17px/1.2 var(--sans);margin:0;letter-spacing:0}
  /* a long section name is one line in the header (the list shows it whole), not four */
  .bx .bxhead h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .bx .bfeedsub{font-size:12.5px;color:var(--mut);margin:1px 0 0;min-height:0}
  .bxheadtools{display:flex;gap:4px}
  .bxicon{width:40px;height:40px;border-radius:12px;border:0;background:none;color:var(--mut);display:grid;place-items:center;cursor:pointer}
  .bxicon:hover,.bxicon.on{background:var(--inset);color:var(--text)}
  .bx .bxback{display:none}
  .bxsearch{padding:10px 22px 0}
  .bxsearch input{width:100%;height:40px;border-radius:12px;border:1px solid var(--line);background:var(--surface);padding:0 14px;font:15px var(--sans);color:var(--text)}
  .bxfilter{display:flex;align-items:center;gap:10px;padding:8px 22px 0;font-size:12.5px;color:var(--mut)}
  .bxfilter button{border:0;background:none;color:var(--miami);font:600 12.5px var(--sans);cursor:pointer;padding:6px 0}
  .bxmsgs{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:8px 22px 12px}
  .bx .bfeedlist{max-width:820px;margin:0 auto}
  /* Swipe decoration must never intercept native Edit controls. Edit swaps
     .bnin for .bedit, so keep that replacement above the decorative layer. */
  .bx .bnote::before{pointer-events:none}
  .bx .bedit{position:relative;z-index:1;min-width:0;max-width:100%}
  .bx .bedit textarea{box-sizing:border-box;max-width:100%;min-width:0}
  .bx .bedit .brow2>*{min-width:0;max-width:100%;box-sizing:border-box}
  .bx .bedit select,.bx .bedit input[type=datetime-local]{flex:1 1 180px}
  .bx .bnauthor,.bx .bbody,.bx .bnclitxt{overflow-wrap:anywhere;min-width:0;max-width:100%}
  .bxday{display:flex;align-items:center;gap:12px;margin:18px 0 8px;font-size:12px;font-weight:600;color:var(--mut)}
  .bxday::before,.bxday::after{content:"";flex:1;height:1px;background:var(--line)}
  .bxearlier{display:block;margin:10px auto 4px;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:8px 16px;font:600 13px var(--sans);color:var(--mut);cursor:pointer}
  .bx .bnote.bxmsg{background:none;border:0;border-radius:12px;box-shadow:none;padding:0;margin:0}
  .bx .bxmsg>.bnin{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:0 10px;padding:6px 8px;background:none;border-radius:12px}
  .bx .bxmsg.cont>.bnin{padding-top:1px}
  .bx .bxmsg>.bnin:hover{background:color-mix(in srgb,var(--inset) 70%,transparent)}
  .bxav{padding-top:2px;display:flex;justify-content:center}
  .bxt2{font-size:10.5px;color:var(--mut2);opacity:0;padding-top:4px;font-variant-numeric:tabular-nums}
  .bx .bxmsg>.bnin:hover .bxt2{opacity:1}
  .bxmain{min-width:0}
  .bx .bnhead{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 8px;margin:0 0 2px}
  .bx .bnhead.solo{margin:0}
  .bx .bnauthor{font:600 14.5px var(--sans);color:var(--text)}
  .bx .bntime{font-size:12px;color:var(--mut2);font-variant-numeric:tabular-nums}
  .bxmeta{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:0 6px;font-size:12px;color:var(--mut)}
  .bxdot{color:var(--mut2)}
  .bxdue.over{color:var(--carmine);font-weight:600}
  .bxdone{color:var(--mut)}
  .bx .bnfor{border:0;background:none;padding:0;margin:0;min-height:0;min-width:0;display:inline;font:inherit;color:var(--text);font-weight:600;cursor:pointer}
  .bxempty{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;padding:18vh 24px 0;color:var(--mut);font-size:14px}
  .bxempty b{color:var(--text);font-size:15px;font-weight:600}
  @media (pointer:coarse){.bx .bnfor{display:inline-block;box-sizing:border-box;min-width:44px;text-align:center;padding:14px 6px;margin:-14px -6px}}
  .bx .bnbody-wrap{display:flex;gap:12px;align-items:flex-start}
  .bx .bbody{flex:1;min-width:0;font-size:15px;line-height:1.5;color:var(--text)}
  .bx .bnface{flex:none;border-radius:10px;overflow:hidden}
  .bx .bnact{grid-column:3;grid-row:1;display:flex;gap:2px;align-self:start;opacity:0;transition:opacity .12s}
  .bx .bxmsg>.bnin:hover .bnact,.bx .bxmsg>.bnin:focus-within .bnact{opacity:1}
  .bx .bnact button{width:30px;height:30px;border:1px solid var(--line);background:var(--surface);border-radius:9px;display:grid;place-items:center;color:var(--mut);cursor:pointer}
  .bx .bxmsg.st-done .bbody{color:var(--mut)}
  .bx .bxmsg.overdue>.bnin{box-shadow:inset 3px 0 0 var(--carmine)}
  .bx .repliesToggle{display:inline-block;margin-top:6px;font:600 13px var(--sans);color:var(--miami);cursor:pointer}
  .bx .replies{margin-top:6px;padding-left:12px;border-left:2px solid var(--line)}
  .bx .replies .bxmsg>.bnin{grid-template-columns:32px minmax(0,1fr) auto}
  .bx .bmeta{margin-top:6px}
  .bxmgr{max-width:820px;margin:12px auto}
  .bxcomposer{border-top:1px solid var(--line);background:var(--bg);padding:10px 22px 12px;margin:0}
  .bxcomp{max-width:820px;margin:0 auto}
  .bxcrow{display:flex;align-items:flex-end;gap:6px;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:4px 4px 4px 6px}
  .bxcrow:focus-within{border-color:color-mix(in srgb,var(--miami) 55%,var(--line))}
  /* One line in every channel: where the note goes is a pill beside the text,
     not a second line above it. */
  .bxcfield{flex:1;min-width:0;display:flex;flex-direction:row;align-items:flex-end;gap:2px}
  .bxcto{flex:none;display:flex;align-items:center;gap:3px;font-size:12px;color:var(--mut);background:var(--inset);border-radius:999px;padding:0 4px 0 10px;height:32px;margin:0 0 4px 2px;max-width:42%}
  .bxcto.hide{display:none}
  .bxcto select{border:0;background:none;font:600 12.5px var(--sans);color:var(--text);padding:0 2px;cursor:pointer;min-width:0;max-width:100%;text-overflow:ellipsis;height:100%}
  .bxcfield .mentwrap{flex:1;min-width:0}
  @media (pointer:coarse){.bxcto{height:44px;margin-bottom:0}.bxcto select{min-height:44px}}
  @media (max-width:560px){.bxcto{max-width:50%;padding-left:8px}.bxcto>span{display:none}}
  .bxcomp .mentwrap{position:relative}
  .bxcomp #bnBody{display:block;width:100%;border:0;background:none;resize:none;outline:none;font:16px/1.4 var(--sans);color:var(--text);padding:9px 6px;min-height:40px;max-height:168px;box-shadow:none}
  .bxcomp .mentpop{top:auto;bottom:100%;margin:0 0 8px}
  .bxcbtn{width:40px;height:40px;flex:none;border:0;background:none;border-radius:50%;display:grid;place-items:center;color:var(--mut);cursor:pointer}
  .bxcbtn:hover,.bxcbtn.on{background:var(--inset);color:var(--text)}
  .bxcbtn svg{width:18px;height:18px}
  .bxsend{width:40px;height:40px;flex:none;border:0;border-radius:50%;background:var(--miami);color:var(--on-miami);display:grid;place-items:center;cursor:pointer}
  .bxsend.busy{opacity:.55;cursor:progress}
  .bxcomp .brow2-more{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:flex-end;padding:0 4px 10px}
  .bxcomp .brow2-more.hide{display:none}
  .bxmoreacts{display:flex;gap:8px}
  .bxtext{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:7px 12px;font:600 12.5px var(--sans);color:var(--text);cursor:pointer;min-height:36px}
  .bxcomp #bnReplyBar{padding:0 6px 8px}
  .bxcomp .bnhint:empty{display:none}
  #bnVoiceLabel{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  @media (pointer:coarse) and (min-width:861px){
    /* Above the tab bar, and above the keyboard when it is up (the visual viewport shrinks). */
    .bx.bwrap{height:min(calc(100dvh - var(--bx-top,58px) - 84px - env(safe-area-inset-bottom,0px)),calc(var(--bx-vvh,100dvh) + var(--bx-vvtop,0px) - var(--bx-top,58px)));min-height:0}
    .bx .bnact{opacity:1}
    .bx .bnact [data-notedone],.bx .bnact [data-notereply]{display:none}
    .bx .bnact button{border:0;background:none}
  }
  @media (min-width:861px) and (max-width:1100px){.bx.bwrap{grid-template-columns:268px minmax(0,1fr)}}
  @media (max-width:860px){
    .content:has(> .bx),.content:has(> .viewhost > .bx){padding:0 0 100px}
    .bx.bwrap{display:block;height:auto;min-height:0}
    .bx[data-mobileview="channels"] .bxconv{display:none}
    .bx[data-mobileview="feed"] .bxlist{display:none}
    .bxlist{border:0;padding:14px 12px calc(112px + env(safe-area-inset-bottom,0px));overflow:visible}
    .bxlisthead .bxtitle{font-size:30px}
    .bx .bchan{min-height:64px;padding:8px}
    body.bxconvo .topbar,body.bxconvo .tabbar{display:none!important}
    body.bxconvo .content:has(> .bx),body.bxconvo .content:has(> .viewhost > .bx){padding:0}
    .bx[data-mobileview="feed"] .bxconv{position:fixed;left:0;right:0;top:var(--bx-vvtop,0px);height:calc(var(--bx-vvh,100dvh) - var(--bx-cb,0px));z-index:30;padding-top:env(safe-area-inset-top,0px)}
    .bx .bxhead{padding:6px 10px 6px 2px;min-height:56px}
    .bx .bxback{display:grid;place-items:center;width:44px;height:44px;border:0;background:none;color:var(--miami);cursor:pointer;flex:none}
    .bxmsgs{padding:4px 10px 10px}
    .bxsearch,.bxfilter{padding-left:12px;padding-right:12px}
    .bx .bxmsg>.bnin{grid-template-columns:36px minmax(0,1fr) auto;padding:5px 4px}
    .bx .bnact{opacity:1}
    .bx .bnact [data-notedone],.bx .bnact [data-notereply]{display:none}
    .bx .bnact button{border:0;background:none;width:28px}
    .bxcomposer{padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px))}
    .bx .bnface .bnfaceimg{width:72px!important;height:54px!important}
  }
  .bx .bfeedsub{display:block}
  .bx .bcompose.bxcomposer{background:var(--bg);border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;margin:0}
  .bx .composer2.bxcomp{background:none;border:0;border-radius:0;padding:0;margin:0 auto;box-shadow:none}
  .bx .composer2.bxcomp .brow2-more{margin:0;border:0}
  .bx .bnface:has(.cph[data-st="none"]){display:none}
  .bx .bnbody-wrap.hasface:has(.cph[data-st="none"]){display:block}
  .bx .bnbody-wrap,.bx .bnbody-wrap.hasface{display:flex;padding:0;margin:0;gap:12px;align-items:flex-start}
  .bx .bnbody-wrap.hasface>.bnface{margin:0}
  .bx .bnface:not(:has(img)){display:none}
  .bx .bfeedlist>.bnote,.bx .replies>.bnote{margin:0}
  .bx .bxmsg:not(.cont)+.bxmsg:not(.cont),.bx .bxmsg.cont+.bxmsg:not(.cont){margin-top:6px}
  .bx .bnote.bxmsg{overflow:visible}
  .bx .bnote.bxmsg.swiping{overflow:hidden}
  .bx .bnote.bxmsg.swiping>.bnin{background:var(--bg)}
  .bx .bxneedhead{text-transform:none;letter-spacing:0;font-size:13.5px;color:var(--text)}
  @media (pointer:coarse){
    .bx .bxicon{width:44px;height:44px}
    .bx .bnact button{width:44px;height:44px}
    .bx .bxcbtn,.bx .bxsend{width:44px;height:44px}
    .bxcomp #bnBody{min-height:44px;padding:11px 6px}
  }
  /* Messages split view (wide screens): the conversation list beside the open thread */
  #dmside{position:fixed;top:0;bottom:0;width:340px;z-index:41;background:var(--bg);border-left:1px solid var(--line);display:flex;flex-direction:column;box-shadow:-12px 0 44px rgba(8,18,32,.14)}
  body.dmsplitfull #dmside{left:0;border-left:0;box-shadow:none;border-right:1px solid var(--line)}
  body.dmsplit #drawer.dm{box-shadow:none}
  body.dmsplitfull #scrim{background:transparent}
  .dmshead{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:18px 14px 10px 20px}
  .dmshead h2{margin:0;font-size:22px;font-weight:650;letter-spacing:-.01em}
  #dmside .dmsq{flex:0 0 auto;height:40px;min-height:0;margin:0 12px 8px;align-items:center}
  .dmslist{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:0 8px 12px}
  .dmsrow{display:flex;align-items:center;gap:12px;padding:9px 12px;min-height:64px;border-radius:14px;cursor:pointer;position:relative}
  .dmsrow:hover,.dmsrow:focus-visible{background:var(--inset);outline:none}
  .dmsrow.on{background:color-mix(in srgb,var(--miami) 13%,var(--bg))}
  .dmsrow.unread .dmttl{font-weight:750}
  .dmsrow.unread .dmprev{color:var(--text)}
  .dmsrow .dmrowb{flex:1;min-width:0}
  .dmskeys{padding:8px 20px 14px;font-size:11.5px;color:var(--mut2)}
  @media (pointer:coarse){.dmskeys{display:none}}
  /* Thread craft: a run from one person reads as one voice. Joined corners
     tighten and only the run's ends round out, as on a phone's own Messages.
     Day labels are sentence case, like the rest of onbleu. */
  .dmbub.mine.clus{border-top-right-radius:6px}
  .dmbub.mine.clus:not(:has(+ .dmbub.mine.clus)){border-bottom-right-radius:18px}
  .dmbub:not(.mine).clus{border-top-left-radius:6px}
  .dmbub:not(.mine).clus:not(:has(+ .dmbub:not(.mine).clus)){border-bottom-left-radius:18px}
  .dmday span{text-transform:none;letter-spacing:0;font-size:12px;font-weight:600;color:var(--mut)}
  .dmseen{font-size:11.5px}
  /* Messages inbox on a wide screen: the list, and the pane the conversation opens into */
  #drawer.dm.dminboxsplit{display:grid;grid-template-columns:340px minmax(0,1fr);grid-template-rows:auto auto 1fr;align-content:start;overflow:hidden}
  #drawer.dminboxsplit>*:not(.dmpick){grid-column:1;min-width:0}
  #drawer.dminboxsplit>.dmlist,#drawer.dminboxsplit>.dmsubhead~*{overflow-y:auto;min-height:0}
  #drawer.dminboxsplit>.dmlisthead,#drawer.dminboxsplit>.dmlist,#drawer.dminboxsplit>.dmgsearch{border-right:1px solid var(--line)}
  #drawer.dminboxsplit>.dmlist{grid-row:3;align-self:stretch;height:100%}
  .dmpick{grid-column:2;grid-row:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;color:var(--mut);text-align:center;background:var(--surface)}
  .dmpick svg{width:56px;height:56px;opacity:.5}
  .dmpickt{font-size:17px;font-weight:600;color:var(--text)}
  .dmpicks{font-size:13.5px;margin-bottom:6px}
  .tgrow{display:flex;align-items:center;justify-content:space-between;gap:10px}
  .tgrow .rowface{min-width:0}
  .tgrow .nm{display:block}
  .tgopen{flex:none}
  .tgmore{display:block;width:100%;text-align:left;border:0;background:none;padding:12px 16px;font:600 13.5px var(--sans);color:var(--miami);cursor:pointer;border-top:1px solid var(--line2);min-height:44px}
  /* A person's Now card: one fact per row, each row the object it is about */
  .pnowrow{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line2);background:none;padding:11px 16px;font:inherit;font-size:13.5px;color:inherit;min-height:44px}
  .pnowrow:last-child{border-bottom:0}
  button.pnowrow{cursor:pointer} button.pnowrow:hover{background:var(--e100)}
  button.pnowrow:focus-visible{outline:2px solid var(--miami);outline-offset:-2px}
  .pnowk{display:block;font-size:11.5px;font-weight:600;color:var(--miami);margin-bottom:2px}
  .pnowk.late{color:var(--pill-bad-fg)}
  .pnowrow .nm{display:block}
  .pnowsaid{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;margin-top:4px;font-size:13px;line-height:1.4}
  /* ===== The person sheet (openPartyDrawer), design pass 2026-09-25 =====
     Scoped to a drawer whose header is .pdh, so the car sheet and every other
     drawer that shares .csdh / .card / .dbig are untouched. */
  .pdh .pdhid{display:flex;align-items:flex-start;gap:14px;min-width:0;flex:1}
  .pdh .pdhid>.bavatar{flex:none}
  .pdh .pdhtxt{min-width:0;flex:1}
  .pdh h2{overflow-wrap:anywhere}
  .pdh .pdhrel{display:flex;flex-wrap:wrap;align-items:center;gap:3px 10px;margin-top:5px}
  .pdh .pdhrel .pill{flex:none}
  .pdh .psame{margin-top:6px;line-height:1.5}
  .pacts{display:grid;grid-template-columns:repeat(auto-fit,minmax(68px,1fr));gap:8px;margin:2px 0 6px;max-width:420px}
  .pact{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:56px;min-width:44px;padding:8px 4px;border-radius:12px;border:0;background:var(--inset);color:var(--miami);font:600 12px var(--sans);text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .pacts.one{display:flex}
  .pacts.one .pact{flex-direction:row;gap:8px;min-height:44px;padding:0 18px;font-size:13.5px}
  .pact:hover{filter:brightness(.97)}
  .pact.pri{background:var(--miami);color:var(--on-miami)}
  .pact:focus-visible{outline:2px solid var(--miami);outline-offset:2px}
  .pacts.pinternal{display:flex;margin-top:8px;padding-top:8px;border-top:1px solid var(--line2)}
  .pacts.pinternal .pact{flex-direction:row;min-height:44px;padding:0 14px;color:var(--text);background:transparent;border:1px solid var(--line)}
  #drawer:has(>.pdh) .ptabs{margin-top:10px}
  /* one summary block: Now, with the next step first */
  #drawer:has(>.pdh) .card.pnow{background:var(--inset);border:0;box-shadow:none;border-radius:14px;margin:14px 0 6px;overflow:hidden}
  #drawer:has(>.pdh) .card.pnow>.grp{border:0;padding:12px 16px 2px;font:600 13px var(--sans);color:var(--mut)}
  #drawer:has(>.pdh) .pnow .pnext{background:none;border-bottom:1px solid var(--line2);padding-top:8px}
  #drawer:has(>.pdh) .pnow .pnowrow{border-bottom:1px solid var(--line2)}
  #drawer:has(>.pdh) .pnow .pnowrow:last-child{border-bottom:0}
  #drawer:has(>.pdh) .pnow button.pnowrow:hover,#drawer:has(>.pdh) .pnow button.pnext:hover{background:color-mix(in srgb,var(--miami) 7%,transparent);filter:none}
  /* Before you call: each line with its source */
  #drawer:has(>.pdh) .card.pbycard{background:var(--inset);border:0;box-shadow:none;border-radius:14px;margin:14px 0 6px;overflow:hidden;padding-bottom:6px}
  #drawer:has(>.pdh) .card.pbycard>.grp{border:0;padding:12px 16px 2px;font:600 13px var(--sans);color:var(--mut);background:none}
  .pbyc{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 10px;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line2);background:none;padding:9px 16px;font:inherit;color:inherit;min-height:44px}
  .pbyc:last-child{border-bottom:0}
  button.pbyc{cursor:pointer}
  button.pbyc:hover{background:color-mix(in srgb,var(--miami) 7%,transparent)}
  .pbyct{font-size:14px;line-height:1.4;min-width:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
  .pbyctag{font-size:11.5px;color:var(--mut);white-space:nowrap}
  /* who they are: possibly related records, one per row, with the evidence */
  .pwho .psame{padding:2px 0 8px}
  .pwho .psgh{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;font-size:12.5px;padding:4px 0 2px}
  .pwho .psameh{font-weight:600;color:var(--text)}
  .srctag{font-size:11.5px;color:var(--mut2)}
  .pwho .psit{display:flex;flex-wrap:wrap;align-items:center;gap:0 6px;min-height:44px;border-bottom:1px solid var(--line2);font-size:13.5px;color:var(--mut);font-variant-numeric:tabular-nums}
  .pwho .psit .linkbtn{font-weight:600;font-size:14px;min-height:44px;margin:0;padding:0;display:inline-flex;align-items:center}
  /* who they are */
  .pwrow{display:grid;grid-template-columns:132px minmax(0,1fr);gap:10px;padding:6px 0;font-size:14px;align-items:baseline}
  .pwrow .k{font-size:12.5px;color:var(--mut)}
  .pwrow .v{overflow-wrap:anywhere}
  .pwrow .v .srctag{margin-left:4px}
  .pprefrec{margin:2px 0 6px}
  .pprefrec>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:13.5px;font-weight:600;color:var(--miami);list-style:none}
  .pprefrec>summary::-webkit-details-marker{display:none}
  .pprefform{display:grid;gap:8px;padding:4px 0 8px}
  .pprefform label{display:grid;grid-template-columns:132px minmax(0,1fr);gap:10px;align-items:center;font-size:14px}
  .pprefform select{min-height:44px;opacity:.55}
  .pprefwho{font-size:12.5px;color:var(--mut)}
  .pprefact{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
  .pprefact .btn{min-height:44px}
  .pprefact .btn[disabled]{opacity:.45;cursor:not-allowed}
  @media(max-width:420px){.pprefform label{grid-template-columns:108px minmax(0,1fr)}}
  .pquiet{color:var(--mut);font-size:13px}
  @media(max-width:420px){.pwrow{grid-template-columns:108px minmax(0,1fr)}}
  .tgsplit{font-size:12.5px;color:var(--mut);padding:0 0 4px;font-variant-numeric:tabular-nums}
  /* the figures, as a quiet line rather than three boxes */
  #drawer .pstats .dbig{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:0 16px;margin:10px 0 12px}
  #drawer .pstats .dbig .c{background:none;border:0;box-shadow:none;border-radius:0;padding:4px 0}
  #drawer .pstats .dbig .c .v{font-size:19px;margin-top:3px}
  @media(max-width:520px){#drawer .pstats .dbig .c .v .pct{display:block;margin:2px 0 0}}
  /* the record: plain sections under hairlines, no box inside a box */
  #drawer:has(>.pdh) [data-ppanel]>.card:not(.pnow):not(.pbycard){background:none;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;overflow:visible;margin:0;padding:0 0 10px}
  #drawer:has(>.pdh) [data-ppanel]>.card:not(.pnow):not(.pbycard)>.grp{border:0;background:none;padding:16px 0 6px;margin:0!important;font:600 13px var(--sans);color:var(--mut)}
  #drawer:has(>.pdh) [data-ppanel]>.card.pad{padding:0 0 10px}
  #drawer:has(>.pdh) #wantscard .wantadd,#drawer:has(>.pdh) #wantscard .pnone{margin-left:0;padding-left:0}
  #drawer:has(>.pdh) [data-ppanel]>.card:not(.pnow):not(.pbycard) :is(.row,.ptlrow,.tgmore,.ptlnote,.note){padding-left:0;padding-right:0}
  #drawer:has(>.pdh) [data-ppanel]>.card:not(.pnow):not(.pbycard) :is(.row,.ptlrow):first-of-type{border-top:0}
  #drawer:has(>.pdh) [data-ppanel]>.card:not(.pnow):not(.pbycard) .tgmore{border-top:0}
  #drawer:has(>.pdh) .pcontact .dgrid{margin:0;padding:0}
  /* a phone number or email is something to tap: a full-height target */
  #drawer:has(>.pdh) .pcontact .dfield a.link{display:inline-flex;align-items:center;min-height:44px;min-width:44px}
  .pnone{padding:4px 0 6px;font-size:13px;color:var(--mut)}
  .pnotes{font-size:14px;line-height:1.5;padding:2px 0 6px;overflow-wrap:anywhere}
  #drawer:has(>.pdh) #wantscard .wantadd>summary{min-height:44px;display:flex;align-items:center}
  /* The one next step, above the facts it comes from */
  .pnext{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line2);background:var(--e100);padding:11px 16px;font:inherit;color:inherit;min-height:44px}
  button.pnext{cursor:pointer} button.pnext:hover{filter:brightness(.98)}
  button.pnext:focus-visible{outline:2px solid var(--miami);outline-offset:-2px}
  .pnextk{display:block;font-size:11.5px;font-weight:700;letter-spacing:.02em;color:var(--miami);margin-bottom:2px}
  .pnext.late .pnextk{color:var(--pill-bad-fg)}
  .pnextt{display:block;font-size:14px;font-weight:600;line-height:1.35}
  .pnext .submut{display:block;margin-top:2px}
  /* A person's history: dated events only, each saying where it came from */
  .ptlrow{display:grid;grid-template-columns:86px minmax(0,1fr);gap:2px 10px;width:100%;text-align:left;border:0;border-top:1px solid var(--line2);background:none;padding:10px 16px;font:inherit;font-size:13.5px;color:inherit;min-height:44px;align-items:baseline}
  button.ptlrow{cursor:pointer} button.ptlrow:hover{background:var(--e100)}
  button.ptlrow:focus-visible{outline:2px solid var(--miami);outline-offset:-2px}
  .ptld{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:11px;color:var(--mut);white-space:nowrap}
  .ptlt{min-width:0;overflow-wrap:anywhere}
  .ptls{grid-column:2;font-size:11.5px;color:var(--mut)}
  .ptl .ptlmore{display:none}
  .ptl.ptlall .ptlmore{display:contents}
  .ptlnote{padding:9px 16px 12px;font-size:12px;color:var(--mut);border-top:1px solid var(--line2)}
  @media(max-width:520px){.ptlrow{grid-template-columns:1fr}.ptls{grid-column:1}}
  .carstory{list-style:none;margin:0;padding:0}
  /* Inset like every other row in a card: at 0 the date sat on the card's
     right border ("Aug 6, 26|") and the icon on its left. */
  .carstory li{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:8px;align-items:baseline;padding:9px 16px 9px 8px;border-top:1px solid var(--line2)}
  .carstory li:first-child{border-top:0}
  .carstory .csico{color:var(--mut2);text-align:center;font-size:13px}
  .carstory .cstxt{font-size:13.5px;color:var(--text);overflow-wrap:anywhere}
  .carstory .cs-deal .csico,.carstory .cs-sold .csico{color:var(--racing)}
  .carstory .cs-in .csico,.carstory .cs-web .csico{color:var(--miami)}
  .carstory .cswhen{white-space:nowrap}
  .carstory .linkbtn{font-weight:600}
  /* the dates ran into the card's right edge */
  .carstory li{padding-right:16px}
  @media(pointer:coarse){.carstory .linkbtn{min-height:44px;padding:0;margin:-12px 0;display:inline-flex;align-items:center;vertical-align:middle}}
  .keepweb{grid-column:1/-1;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 0 4px}
  .keepwebs{font-size:12.5px;color:var(--mut)}
  #drawer.dm .dmpick .btn[data-dmnewopen]{align-self:center;width:auto;flex:none;margin:0;padding-inline:18px}
  body.dmsplitfull #drawer.dminboxsplit{border-left:0;box-shadow:none}
/* ---- Finesse pass (2026-09-24) ---------------------------------------------
   One place for the spacing and field refinements asked for on 2026-09-24,
   late in the sheet so it settles the older, layered rules rather than adding
   another layer beside each one. */
/* Quick-filter chips had no rule of their own and sat edge to edge. A small
   even gap on every screen; on a phone they keep one line and slide, instead
   of stranding one chip on a line of its own. */
.ivschips{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
@media (max-width:640px){
  .ivfrow{row-gap:10px}
  .ivschips{flex:1 1 100%;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-right:16px;scroll-padding-right:16px}
  .ivschips::-webkit-scrollbar{display:none}
}
/* Search fields: one height (44) instead of 60 on a phone, and the focus
   ring on the field rather than on the input inside it. The border stays the
   field border: it is what gives a field 3:1 against the page (WCAG 1.4.11). */
.ivsearch{border-radius:12px;min-height:44px;padding-block:0;box-sizing:border-box;transition:border-color .15s,box-shadow .15s}
.ivsearch:focus-within{border-color:var(--miami);box-shadow:0 0 0 3px var(--e100)}
.ivsearch input,.ivsearch input:focus{min-height:0;height:42px;padding:0;border:0;box-shadow:none;outline:none;background:none}
/* A sheet's actions read as a set on a phone: two by two, equal widths,
   an odd last one across, nothing cut off at the edge. */
@media (max-width:640px){
  #drawer .lsacts{display:grid;grid-template-columns:1fr 1fr;gap:8px;overflow:visible;margin:14px 0 4px;padding:0}
  #drawer .lsacts .btn{width:100%;justify-content:center;text-align:center;white-space:normal;line-height:1.2;padding-block:8px}
  #drawer .lsacts > :last-child:nth-child(odd){grid-column:1/-1}
}
/* Payables' tools on a phone: the first (Add a bill) across the width, the
   other four as an even two-by-two, not a ragged wrap. */
@media (max-width:640px){
  .aplinks:has(> [data-apt]){display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0 0}
  .aplinks > [data-apt]{width:100%;justify-content:center}
  .aplinks > [data-apt]:first-child{grid-column:1/-1}
}
/* Vendors are an account directory, not another bill table. Keep the name
   readable, qualify its financial figure, and move the W-9 write into the
   vendor sheet where it can be reviewed before it is saved. */
#avbody .avrow{grid-template-columns:minmax(180px,1.5fr) minmax(130px,.8fr) minmax(170px,1fr) minmax(150px,.8fr)}
#avbody .avrow:focus-visible{outline:3px solid var(--e100);outline-offset:-3px}
#avbody .avmeta{min-width:0}
#avbody .avmeta .nm,#avbody .avcontact{overflow-wrap:anywhere}
#avbody .avtotal{text-align:right;min-width:0}
#avbody .avtotal .nm{font-variant-numeric:tabular-nums}
.avdh{align-items:flex-start}
.avdh>div{min-width:0}
.avdh h2{white-space:normal;overflow-wrap:anywhere}
.avcontactacts{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.avcontactacts .btn{min-height:44px}
.avscope{font-size:12.5px;line-height:1.4;color:var(--mut);margin-top:4px}
.avdocstate{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.avdocstate .btn{min-height:44px}
.avedit .fld{max-width:360px}
@media(max-width:640px){
  #avbody .avrow{grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"meta total" "state total" "contact contact";gap:4px 12px;padding:12px 14px}
  #avbody .avmeta{grid-area:meta}
  #avbody .avw9{grid-area:state}
  #avbody .avcontact{grid-area:contact}
  #avbody .avtotal{grid-area:total;align-self:center;text-align:right!important;max-width:150px}
  .avcontactacts{display:grid;grid-template-columns:1fr 1fr}
  .avcontactacts .btn{width:100%;justify-content:center}
}
/* The Board's list on a phone lines up with every other page: 16px. */
@media (max-width:860px){
  .bx .bxlist{padding-left:8px;padding-right:8px}
  .bx .bxlisthead{padding-left:8px;padding-right:8px}
  .bx .bneeds{padding-left:8px;padding-right:8px}
  .bx .bxgrouplbl{padding-left:8px}
}
/* ---- Board as Reminders (2026-09-24) -------------------------------------
   Every note is a row: a circle that completes it, the words as the title,
   one quiet line of who / when / where / for whom / due, and a hairline under
   it. A New reminder row closes each list; completed notes fold away. */
.bx .bnote.brem{background:none;border:0;border-radius:0;box-shadow:none;padding:0;margin:0;overflow:visible}
.bx .bnote.brem.swiping{overflow:hidden}
.bx .bnote.brem.swiping>.bnin{background:var(--bg)}
.bx .brem>.bnin{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:0 8px;align-items:start;padding:8px 4px 10px 0;margin-left:-6px;border-bottom:1px solid var(--line2);background:none;border-radius:0}
.bx .brem.nested>.bnin{grid-template-columns:30px minmax(0,1fr) auto;padding:6px 0;margin-left:0;border-bottom:0}
.bx .brem>.bnin:hover{background:none}
/* the first title sits clear of the channel header, so a car chip in it keeps its full tap area */
.bx .bfeedlist{padding-top:12px}
.bx .bxcirc{width:44px;height:44px;margin:-10px 0 -10px;display:grid;place-items:center;border:0;background:none;padding:0;cursor:pointer;color:var(--on-miami);-webkit-tap-highlight-color:transparent;}
.bx .bxcirc>span{width:22px;height:22px;box-sizing:border-box;border-radius:50%;border:1.6px solid var(--mut2);display:grid;place-items:center;transition:background .18s,border-color .18s,transform .18s}
.bx .bxcirc svg{width:13px;height:13px;stroke-width:2.6}
.bx .bxcirc:hover>span{border-color:var(--miami)}
.bx .bxcirc:focus-visible{outline:none}
.bx .bxcirc:focus-visible>span{box-shadow:0 0 0 3px color-mix(in srgb,var(--miami) 35%,transparent)}
.bx .bxcirc.on>span{background:var(--miami);border-color:var(--miami)}
.bx .brem.ticking .bxcirc>span{background:var(--miami);border-color:var(--miami);transform:scale(1.08)}
.bx .brem.unticking .bxcirc>span{background:none;border-color:var(--mut2)}
.bx .brem.ticking>.bnin{opacity:.55;transition:opacity .35s .1s}
.bx .brem .bbody{font-size:16px;line-height:1.38;color:var(--text)}
.bx .brem.st-done .bbody{color:var(--mut)}
.bx .bnremeta{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px;margin-top:3px;font-size:13px;line-height:1.4;color:var(--mut)}
.bx .bnremeta .bxdot{color:var(--mut2)}
.bx .bnremeta .bnwho{display:inline-flex;flex-wrap:nowrap;flex:none;align-items:center;gap:5px;padding:0}
.bx .bnremeta .bnauthor{font-weight:500;color:var(--mut)}
.bx .bnremeta .bnbleu{color:var(--mut)}
.bx .bnremeta .bntime{color:var(--mut)}
.bx .bnremeta .bxdue{color:var(--mut);display:inline-flex;align-items:center}
.bx .bnremeta .bxdue.over{color:var(--carmine);font-weight:600}
.bx .bnremeta .bxdone{color:var(--mut2)}
.bx .brem.overdue>.bnin{box-shadow:none}
.bx .brem .bnbody-wrap.hasface>.bnface{flex:none;margin:0;min-width:44px;min-height:44px}
.bx .brem .bnface .bnfaceimg{width:58px!important;height:44px!important;border-radius:8px}
.bx .brem>.bnin>.bnact{grid-column:3;grid-row:1;opacity:1}
.bx .brem.nested>.bnin>.bnact{grid-column:3}
@media (hover:hover) and (pointer:fine){.bx .brem>.bnin>.bnact{opacity:0}.bx .brem>.bnin:hover>.bnact,.bx .brem>.bnin:focus-within>.bnact{opacity:1}}
.bx .brem .replies{border-left:2px solid var(--line2);padding-left:10px;margin-top:6px}
.bx .brem .repliesToggle{display:inline-block;margin-top:4px;font-size:13px}
/* Today, in three parts of the day */
.bx .bxgrp{font-size:19px;font-weight:700;color:var(--text);margin:18px 0 2px;padding-bottom:6px;border-bottom:1px solid var(--line2)}
.bx .bxgrp:first-child{margin-top:4px}
.bx .bxgrp.over{color:var(--carmine)}
.bx .bxnone{font-size:14px;color:var(--mut);padding:10px 0 4px}
/* New reminder */
.bx .bxnew{display:grid;grid-template-columns:44px minmax(0,1fr);gap:0 8px;align-items:start;padding:8px 4px 10px 0;margin-left:-6px;border-bottom:1px solid var(--line2)}
.bx .bxcirc.dashed{cursor:default}
.bx .bxcirc.dashed>span{border-style:dotted;border-color:var(--mut2)}
.bx .bxnewin{width:100%;border:0;outline:none;background:none;font:inherit;font-size:16px;line-height:1.38;color:var(--text);padding:0;min-height:24px}
.bx .bxnewin::placeholder{color:var(--mut2)}
.bx .bxnewin:focus,.bx .bxnewin:focus-visible{border:0;box-shadow:none;outline:none;background:none}
.bx .bxnewchips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.bx .bxchip{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:999px;background:color-mix(in srgb,var(--miami) 12%,transparent);color:var(--miami);font-size:14px;font-weight:600;border:0;cursor:pointer}
.bx .bxchip select,.bx .bxchip input{border:0;background:none;color:inherit;font:inherit;font-weight:600;padding:0;min-height:0;outline:none;max-width:12em;box-shadow:none}
.bx .bxchip input[type=time]{min-width:5.5em}
.bx .bxchip svg{flex:none}
.bx .bxchip:focus-within{box-shadow:0 0 0 2px color-mix(in srgb,var(--miami) 45%,transparent)}
.bx .bxnewadd{background:var(--miami);color:var(--on-miami);}
.bx .bxnewadd:disabled{opacity:.6}
.bx .bxnewmore{min-width:44px;padding:0 10px;justify-content:center}
/* New reminder's @ popup, and the composer stepping aside while it is used */
.bx .bxnewwrap .mentpop{max-width:min(340px,calc(100vw - 80px))}
.bx .bxnewwrap .mentpop.up{top:auto;bottom:100%;margin:0 0 6px}
@media (max-width:860px){.bx.bxadding .bxcomposer{display:none}
  /* sized to what it shows, not to the longest name on the team, so Add stays on the second row */
  .bx .bxchip select#bxNewFor{max-width:7.5em;text-overflow:ellipsis}}
/* A car or person chip in a title sits on the words' middle, not above them,
   so a title that starts with a car lines up with its circle like any other */
.bx .brem .bbody .ment{vertical-align:middle;font-size:13px;line-height:18px;padding-top:1px;padding-bottom:1px}
@media (pointer:coarse){.bx .bxchip{min-height:44px}}
.bx .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* Completed */
.bx .bxdonetog{display:flex;align-items:center;gap:6px;border:0;background:none;padding:12px 0;min-height:44px;font-size:14px;font-weight:600;color:var(--mut);cursor:pointer}
.bx .bxdonetog span:last-child{color:var(--miami)}
/* iOS Safari zooms the whole page into any text field set under 16px the
   moment it takes focus, and the page stays zoomed after (Customers search,
   2026-09-24). On touch screens every field is 16px; desktop keeps its sizes.
   Not maximum-scale=1: that would also take pinch-zoom away on Android. */
@media (hover:none) and (pointer:coarse){input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea{font-size:16px!important}}
/* Schedule navigation shares the same notes instead of duplicating work. */
.bxagendanav{display:flex;gap:6px;padding:8px 22px;border-bottom:1px solid var(--line2);flex:none;overflow-x:auto;scrollbar-width:none}
.bxagendanav button{flex:none;min-height:44px;padding:0 14px;border:1px solid transparent;border-radius:999px;background:none;color:var(--mut);font:600 13px var(--sans);cursor:pointer}
.bxagendanav button:hover{background:var(--inset)}
.bxagendanav button[aria-current]{color:var(--miami);background:color-mix(in srgb,var(--miami) 10%,var(--surface));border-color:color-mix(in srgb,var(--miami) 24%,var(--line))}
.bx .bxicon{min-width:44px;min-height:44px}
.bx .bxfilter button{min-height:44px;padding:8px}
.bx .bchan:focus-visible,.bxagendanav button:focus-visible{outline:2px solid var(--miami);outline-offset:2px}
@media(max-width:860px){.bxagendanav{padding:4px 10px;gap:2px}.bxagendanav button{padding:0 12px}.bx .bxrowtop .lbl{flex:1}.bx .bxwhen{flex:none}.bx .bchan .bxrowtxt{overflow:hidden}}
/* ---------- CAR SHEET · the twin's look ----------
   One instrument, not a stack of boxes. The photo, then three lines: the
   car (year, make, model), its state (a dot and a word, where it is), its
   stock and VIN. Under them ONE summary -- the next step with the sheet's
   only primary button, the rest of what needs attention, and the evidence
   lines, each named for its source -- ruled by hairlines, never a card in
   a card. Then the other actions as one row of small quiet buttons, the
   tabs as a text strip, the money as one row of figures. Nothing gold or
   beige: status is a coloured dot, attention a neutral one, the next step
   is labelled in the accent blue. Scoped to .carsh so the bill, listing,
   find and person sheets that share .csdh are untouched.
   Wide (iPad, desktop): photo floated left, the three lines beside it, the
   summary cleared across the full width beneath both (the summary stays in
   .csid, where the evidence lines have always been). Phone: the photo edge
   to edge, Close floating on it. */
#drawer .carsh{position:relative;display:flow-root;margin:0;padding:0;border:0}
#drawer .carsh>.cshero,#drawer .carsh>.csnoface{float:left;width:180px;height:120px;margin:0 20px 0 0;border-radius:12px;overflow:hidden;background:var(--inset);aspect-ratio:auto;order:0}
#drawer .carsh>.csid{display:block;min-width:0}
#drawer .carsh .cstitle{padding:2px 56px 0 0}
#drawer .carsh .csnow{clear:both}
#drawer .carsh>.csdhb{position:absolute;top:0;right:0;margin:0}
.csnoface{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px solid var(--line2);box-sizing:border-box}
.csnoface .csnfm{font-family:var(--serif);font-size:24px;line-height:1;color:var(--text);opacity:.36}
.csnoface .csnfs{font-size:10px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--mut2)}
/* Back and Close: round and frosted, floating; never a boxed "‹" */
#drawer .carsh>.dback,#drawer .carsh .csdhb .dx{width:36px;height:36px;margin:0;border:0;border-radius:50%;font-size:22px;line-height:1;
  background:rgba(255,255,255,.74);-webkit-backdrop-filter:blur(12px) saturate(1.4);backdrop-filter:blur(12px) saturate(1.4);
  color:var(--ink);box-shadow:0 1px 3px rgba(8,18,32,.2);display:flex;align-items:center;justify-content:center;transform:none;}
#drawer .carsh>.dback{position:absolute;top:8px;left:8px;z-index:3}
#drawer .carsh>.dback:hover,#drawer .carsh .csdhb .dx:hover{background:rgba(255,255,255,.92);color:var(--ink);transform:none;}
html[data-theme="dark"] #drawer .carsh>.dback,html[data-theme="dark"] #drawer .carsh .csdhb .dx{background:rgba(8,18,32,.58);color:var(--on-miami);}
html[data-theme="dark"] #drawer .carsh>.dback:hover,html[data-theme="dark"] #drawer .carsh .csdhb .dx:hover{background:rgba(8,18,32,.78);color:var(--on-miami);}
@media(pointer:coarse){#drawer .carsh>.dback,#drawer .carsh .csdhb .dx{width:44px;height:44px}}
/* identity: three lines */
#drawer .carsh h2{font-size:28px;line-height:1.1;letter-spacing:-.005em;overflow-wrap:anywhere}
#drawer .carsh .csstate{display:flex;align-items:center;flex-wrap:wrap;gap:4px 0;margin-top:10px;font-size:14px}
#drawer .carsh .csstate .pill{background:none;border:0;padding:0;margin:0;height:auto;font-size:14px;font-weight:600;color:var(--text);gap:7px;letter-spacing:0;text-transform:none}
#drawer .carsh .csstate .pill .dt{width:8px;height:8px;background:var(--mut2)}
#drawer .carsh .csstate .pill.ok .dt{background:var(--racing)}
#drawer .carsh .csstate .pill.warn .dt,#drawer .carsh .csstate .pill.info .dt{background:var(--miami)}
#drawer .carsh .csstate .csloc{font-size:14px;color:var(--mut)}
#drawer .carsh .csstate .pill+.csloc::before{content:"·";margin:0 8px;color:var(--mut2)}
#drawer .carsh .csref{margin-top:6px;font-size:13px;color:var(--mut);font-variant-numeric:tabular-nums;letter-spacing:.01em;overflow-wrap:anywhere}
#drawer .carsh .csref{display:flex;align-items:center;flex-wrap:wrap;gap:2px 10px}
#drawer .carsh .csvin{overflow-wrap:anywhere}
#drawer .carsh .cscopyvin{border:0;background:none;padding:0;color:var(--miami);font:inherit;font-family:var(--sans);font-weight:600;cursor:pointer}
@media(pointer:coarse){#drawer .carsh .cscopyvin{min-width:44px;min-height:44px;margin:-12px 0}}
/* the summary: one block, hairlines, no box */
#drawer .carsh .csnow{margin:20px 0 0;padding:0;border:0;border-top:1px solid var(--line2);border-radius:0;background:none;box-shadow:none}
#drawer .carsh .csnext{display:block;padding:16px 0}
#drawer .carsh .csnlbl{display:block;min-width:0;padding:0;margin:0 0 6px;font-size:11px;font-weight:700;letter-spacing:.09em;color:var(--miami)}
#drawer .carsh .csnow.hasneed .csnext .csnlbl{color:var(--miami)}
#drawer .carsh .csnowst .csnlbl{color:var(--mut)}
#drawer .carsh .csnext .csnt{font-size:22px;line-height:1.2}
#drawer .carsh .csnext .csnd{font-size:14px;line-height:1.45;margin-top:6px;color:var(--mut)}
#drawer .carsh .csprim{display:inline-flex;justify-content:center;align-items:center;min-width:220px;min-height:44px;margin-top:14px;padding:0 22px;font-size:15px;font-weight:600;border-radius:12px}
#drawer .carsh .csnrest{border-top:1px solid var(--line2);padding:14px 0 4px}
#drawer .carsh .csnh{font-size:12px;font-weight:600;color:var(--mut);margin:0 0 10px}
#drawer .carsh .csnlist .csneed{gap:12px;padding-bottom:12px}
#drawer .carsh .csndot{width:6px;height:6px;margin-top:7px;background:var(--mut2)}
#drawer .carsh .csnlist .csnt{font-size:14px;font-weight:600}
#drawer .carsh .csnlist .csnd{font-size:13px;line-height:1.45;margin-top:2px}
#drawer .carsh .csnmore>summary{padding:0 0 12px 18px}
#drawer .carsh .cslines{border-top:1px solid var(--line2);padding:12px 0 14px;display:flex;flex-direction:column;gap:6px}
#drawer .carsh .cslines .csweb{margin:0;font-size:12.5px;line-height:1.5;display:block;color:var(--mut)}
#drawer .carsh .cslines .csweb>span{display:inline}
#drawer .carsh .cslines .sitlink{display:inline;padding:0 0 0 6px;margin:0;min-height:0;font-size:12.5px}
/* the other actions: one row of small quiet buttons */
#drawer .soacts.caracts{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:4px 0 16px;border:0}
#drawer .soacts.caracts .btn{flex:none;white-space:nowrap;min-height:36px;padding:0 14px;border-radius:999px;font-size:13px;font-weight:600;
  display:inline-flex;align-items:center;background:var(--surface);border:1px solid var(--line);color:var(--text)}
#drawer .soacts.caracts .btn:hover{border-color:var(--mut2)}
/* tabs: a text strip with an underline, scrolling with a fade at its edge */
#drawer .carsh~.cartabs{background:var(--surface);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:0 24px;margin:0 -24px 20px}
#drawer .carsh~.cartabs .tabs{display:flex;flex-wrap:nowrap;gap:24px;overflow-x:auto;scrollbar-width:none;padding-right:36px;
  -webkit-mask-image:linear-gradient(to right,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 36px),transparent)}
#drawer .carsh~.cartabs .tabs::-webkit-scrollbar{display:none}
#drawer .carsh~.cartabs .tab{flex:none;white-space:nowrap;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;padding:12px 0 10px;font-size:14px;font-weight:600;color:var(--mut);font-variant-numeric:tabular-nums}
#drawer .carsh~.cartabs .tab:hover{color:var(--text)}
#drawer .carsh~.cartabs .tab.on{background:none;color:var(--text);border-bottom-color:var(--text)}
/* the sections under the tabs: plain surfaces with one hairline edge, the
   heading on the sheet's own background -- not a beige band */
#drawer .carsh~[data-ctpanel] .card{box-shadow:none;border-color:var(--line);border-radius:14px}
#drawer .carsh~[data-ctpanel] .grp{background:none}
#drawer .carsh~[data-ctpanel] .cswchip{background:var(--surface)}
/* the readiness strip lives with the dropdowns that set it, on every width */
#drawer .carsh~[data-ctpanel] .trackcard .readystrip{display:flex}
/* money and interest: one row of figures at the top of the summary */
#drawer .csmoney{margin:0;padding:14px 0;border-bottom:1px solid var(--line2)}
#drawer .csmoney .dbig .c .cs{font-size:12px;font-weight:600;color:var(--miami);margin-top:2px}
#drawer .csmoney .dbig{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:0;margin:0}
#drawer .csmoney .dbig .c{background:none;border:0;border-left:1px solid var(--line2);border-radius:0;box-shadow:none;padding:2px 16px;min-width:0}
#drawer .csmoney .dbig .c:first-child{border-left:0;padding-left:0}
#drawer .csmoney .dbig .c .k{font-family:var(--sans);font-size:13px;font-weight:600;letter-spacing:.06em;font-variant-caps:all-small-caps;color:var(--mut)}
#drawer .csmoney .dbig .c .v{font-family:var(--sans);font-variant-numeric:tabular-nums;font-size:24px;font-weight:500;letter-spacing:-.01em;margin-top:4px}
/* conflict grammar: two named sources, neither picked */
.cfl{margin:6px 0 2px;padding:8px 0 2px;border-top:1px dashed var(--line);font-size:13px;line-height:1.45}
.cflh{font-size:11px;font-weight:700;letter-spacing:.06em;color:var(--text);margin-bottom:4px}
.cfltag{color:var(--carmine);text-transform:uppercase}
.cflrow{display:grid;grid-template-columns:76px minmax(0,1fr);gap:8px;align-items:baseline}
.cfls{color:var(--mut)}
.cflv{color:var(--text);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.cfla{color:var(--mut2);font-size:12px}
.cfln{color:var(--mut)}
.cflr{color:var(--mut);font-size:12px;margin-top:2px}
/* why: the basis of the recommendation, quiet until asked */
#drawer .carsh .csnact{display:flex;flex-wrap:wrap;align-items:flex-start;gap:4px 16px}
#drawer .carsh .csnact .csprim{flex:none}
#drawer .carsh .cswhy{margin-top:14px;font-size:13px;flex:1 1 200px;min-width:0}
#drawer .carsh .cswline{color:var(--text);padding:2px 0 0}
#drawer .carsh .cswsrcs>summary{display:inline-flex;align-items:center;min-height:32px;color:var(--mut);cursor:pointer;list-style:none;font-size:12px}
#drawer .carsh .cswsrcs>summary::-webkit-details-marker{display:none}
#drawer .carsh .cswhy>summary{display:inline-flex;align-items:center;min-height:32px;color:var(--mut);cursor:pointer;list-style:none;font-weight:600}
#drawer .carsh .cswhy>summary::-webkit-details-marker{display:none}
#drawer .carsh .cswhy>summary::after{content:"";width:6px;height:6px;margin-left:8px;border-right:1.5px solid var(--mut2);border-bottom:1.5px solid var(--mut2);transform:rotate(45deg) translateY(-2px)}
#drawer .carsh .cswhy[open]>summary::after{transform:rotate(-135deg)}
#drawer .carsh .cswhy ul{list-style:none;margin:4px 0 0;padding:8px 0 0;border-top:1px solid var(--line2);display:grid;gap:4px}
#drawer .carsh .cswhy li{display:grid;grid-template-columns:118px minmax(0,1fr) auto;gap:8px;align-items:baseline}
#drawer .carsh .cswk{color:var(--mut);font-family:var(--mono);font-size:11.5px}
#drawer .carsh .cswv{color:var(--text);overflow-wrap:anywhere}
#drawer .carsh .cwsrc{color:var(--mut2);font-size:11.5px;white-space:nowrap}
@media(pointer:coarse){#drawer .carsh .cswhy>summary,#drawer .carsh .cswsrcs>summary{min-height:44px}}
@media(max-width:640px){#drawer .carsh .cswhy{margin-top:4px;flex-basis:100%}}
@media(max-width:640px){#drawer .carsh .cswhy li{grid-template-columns:minmax(0,1fr) auto}#drawer .carsh .cswhy .cswv{grid-column:1/-1;grid-row:2}}
/* its life: five chapters, one line each until opened */
#drawer .cslife .lfch{border-bottom:1px solid var(--line2)}
#drawer .cslife .lfch:last-child{border-bottom:0}
#drawer .cslife summary{display:grid;grid-template-columns:10px 132px minmax(0,1fr) 14px;align-items:center;gap:12px;min-height:44px;padding:8px 16px;cursor:pointer;list-style:none}
#drawer .cslife summary::-webkit-details-marker{display:none}
#drawer .cslife summary::after{content:"";width:7px;height:7px;border-right:1.5px solid var(--mut2);border-bottom:1.5px solid var(--mut2);transform:rotate(-45deg);justify-self:end}
#drawer .cslife .lfch[open]>summary::after{transform:rotate(45deg)}
#drawer .cslife summary:focus-visible{outline:2px solid var(--miami);outline-offset:-2px}
#drawer .cslife .lfdot{width:8px;height:8px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--mut2)}
#drawer .cslife .lfc-done .lfdot{background:var(--racing);box-shadow:none}
#drawer .cslife .lfc-now .lfdot{background:var(--miami);box-shadow:none}
#drawer .cslife .lfname{font-size:14px;font-weight:600;color:var(--text)}
#drawer .cslife .lfsum{font-size:13px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
#drawer .cslife .lfrows{list-style:none;margin:0;padding:0 16px 10px 38px}
#drawer .cslife .lfrow{display:grid;grid-template-columns:132px minmax(0,1fr) auto;gap:4px 12px;align-items:baseline;padding:7px 0;border-top:1px solid var(--line2);font-size:13.5px;line-height:1.4}
#drawer .cslife .lfk{color:var(--mut)}
#drawer .cslife .lfv{color:var(--text);min-width:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#drawer .cslife .lf-untracked .lfv,#drawer .cslife .lf-none .lfv{color:var(--mut)}
#drawer .cslife .lf-untracked .lfv{font-style:italic}
#drawer .cslife .lfblank .lfv{grid-column:1/-1}
#drawer .cslife .lf-failed .lfv{color:var(--carmine)}
#drawer .cslife .lf-now .lfk{color:var(--miami);font-weight:600}
#drawer .cslife .lfsrc{font-size:11px;letter-spacing:.02em;color:var(--mut2);white-space:nowrap}
#drawer .cslife .lfgo{font-weight:500;text-align:left}
@media(pointer:coarse){#drawer .cslife .lfgo{min-height:44px;margin:-12px 0;display:inline-flex;align-items:center}}
@media(max-width:640px){
  #drawer .cslife summary{grid-template-columns:10px 132px minmax(0,1fr) 14px;gap:10px}
  #drawer .cslife .lfrows{padding-left:16px}
  #drawer .cslife .lfrow{grid-template-columns:minmax(0,1fr) auto}
  #drawer .cslife .lfk{grid-column:1}
  #drawer .cslife .lfsrc{grid-column:2;grid-row:1}
  #drawer .cslife .lfv{grid-column:1/-1}
}
/* details: known facts as rows; the unknown as one line with one Add */
#drawer .csfacts .dgrid{padding:0 16px;margin:0}
#drawer .csfacts .csunkf{display:none}
#drawer .csfacts.adding .csunkf{display:grid}
#drawer .csfacts .csunk{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding:12px 16px;border-top:1px solid var(--line2);font-size:14px;color:var(--mut)}
#drawer .csfacts .csunk .sitlink{padding:0}
@media(max-width:860px){
  #drawer .carsh~.cartabs{padding:0 16px;margin:0 -16px 20px}
}
/* touch: every control stays a 44px target, the quiet ones by a hit box
   larger than the text rather than a taller line */
@media(pointer:coarse){
  #drawer .carsh~.cartabs .tab{min-width:44px;min-height:44px;text-align:center}
  #drawer .soacts.caracts .btn{min-height:44px}
  #drawer .csfacts .csunk .sitlink,#drawer .carsh .cslines .sitlink{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin:-12px 0;vertical-align:middle}
}
@media(max-width:640px){
  /* a full-width sheet needs no left rule; it showed as a 1px seam beside the photo */
  #drawer:has(.carsh){border-left:0}
  /* phone: the photo edge to edge above the name, Close on it */
  #drawer .carsh>.cshero,#drawer .carsh>.csnoface{float:none;display:block;width:calc(100% + 32px);height:auto;aspect-ratio:16/10;margin:-20px -16px 18px;border-radius:0;border:0}
  /* no photo: a plate, not a photograph-sized hole */
  #drawer .carsh>.csnoface{display:flex;aspect-ratio:auto;height:132px;border-bottom:1px solid var(--line2)}
  #drawer .carsh>.dback{top:12px;left:-4px}
  #drawer .carsh>.csdhb{top:12px;right:-4px}
  #drawer .carsh .cstitle{padding-right:0}
  #drawer .carsh h2{font-size:26px}
  #drawer .carsh .csstate{margin-top:8px}
  #drawer .carsh .csnow{margin-top:18px}
  #drawer .carsh .csprim{display:flex;width:100%;min-width:0}
  /* the other actions scroll sideways, fading at the edge like the tabs */
  #drawer .soacts.caracts{flex-wrap:nowrap;overflow-x:auto;margin:0 -16px;padding:4px 16px 16px;scrollbar-width:none;
    -webkit-mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent)}
  #drawer .soacts.caracts::after{content:"";flex:0 0 12px}
  #drawer .soacts.caracts::-webkit-scrollbar{display:none}
  /* one row still, at phone size: smaller figures, tighter cells */
  #drawer .csmoney .dbig .c{padding:0 8px}
  #drawer .csmoney .dbig .c .k{font-size:11.5px;letter-spacing:.04em}
  #drawer .csmoney .dbig .c .v{font-size:16px;letter-spacing:-.015em;margin-top:2px}
}
/* ---- Hub, design-director pass (2026-09-25) ------------------------------
   One loud thing (the Needs-you hero), then rows. Scoped to the Hub so the
   shared classes (.kpi, .card, .cardhead, .grp2, .hero) keep their look on
   every other page. Type scale on the existing tokens:
     masthead  serif 34 / 30 phone      section   11 caps, muted
     sub-group serif 20 / 18 phone      card head 14 semibold
     row       14                       meta      12.5 muted, tabular figures
   No card inside a card, no gradient billboard, no coloured figures: colour
   is kept for state (overdue, a failed read) and for what can be tapped. */
body[data-view="exec"] #content{font-variant-numeric:tabular-nums}
/* the hero: one quiet accent, its car a row of the card rather than a card in it */
body[data-view="exec"] #content .nyhero{border-left-width:3px}
body[data-view="exec"] #content .nyh-car{border:0;background:none;padding:0 8px 0 0;margin-left:0;border-radius:10px}
body[data-view="exec"] #content .nyh-car:hover{background:var(--e100)}
body[data-view="exec"] #content .nyh-car:focus-visible{outline:2px solid var(--miami);outline-offset:2px}
/* the house's sentence: said, not headlined; no rule under a one-line head */
body[data-view="exec"] #content .housesays .cardhead{border-bottom:0;padding:14px 18px 0}
body[data-view="exec"] #content .housesays .cardhead .t{font-family:var(--sans);font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--mut)!important}
body[data-view="exec"] #content .housesays .nm{font-family:var(--serif);font-weight:400;font-size:21px!important;line-height:1.3!important;letter-spacing:0}
/* figures: one strip per group, hairlines between cells, figures in ink */
body[data-view="exec"] #content .kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1px;background:var(--line2);border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:var(--shadow-sm);margin-bottom:16px}
body[data-view="exec"] #content .kpis>.kpi{background:var(--surface);border:0;border-radius:0;box-shadow:none;padding:14px 16px 15px;transform:none!important;min-width:0}
body[data-view="exec"] #content .kpis>.kpi::before{display:none}
body[data-view="exec"] #content .kpis>.kpi.click:hover{background:var(--e100);box-shadow:none}
body[data-view="exec"] #content .kpi .v{color:var(--text);font-weight:500;overflow-wrap:anywhere}
body[data-view="exec"] #content .kpi .kc{color:var(--mut);font-weight:500}
body[data-view="exec"] #content .kpi.click .kc{color:var(--miami);font-weight:600}
/* this month's gross: a figure among figures, not a green billboard */
body[data-view="exec"] #content #grossHero{background:var(--surface);color:var(--text);border:1px solid var(--line);box-shadow:var(--shadow-sm);padding:16px 18px 17px}
body[data-view="exec"] #content #grossHero .hl{color:var(--mut);opacity:1}
body[data-view="exec"] #content #grossHero .hv{font-weight:500;font-size:34px}
body[data-view="exec"] #content #grossHero .hs{color:var(--mut);opacity:1}
/* a sub-group is a heading under its section label, not a second label */
body[data-view="exec"] #content .grp2{font-family:var(--serif);font-size:20px;letter-spacing:0;text-transform:none;color:var(--text);margin:22px 2px 10px}
body[data-view="exec"] #content .cardhead .t{font-family:var(--sans);font-size:14px;font-weight:600}
/* Decide today's kinds are words, not beige and green badges */
body[data-view="exec"] #content .decidecat{background:var(--inset);color:var(--mut)}
body[data-view="exec"] #content .decidecat.hold{color:var(--carmine)}
/* Next for you: every row leads with the same 44x33 tile, person or car */
body[data-view="exec"] #content .nx-ico{border-radius:7px;background:color-mix(in srgb, var(--line) 60%, var(--surface))}
body[data-view="exec"] #content .nx-amt{font-weight:600;white-space:nowrap;margin-left:4px;font-variant-numeric:tabular-nums}
@media (max-width:860px){
  /* an odd cell out spans the row rather than leaving a hole beside it */
  body[data-view="exec"] #content .kpis{grid-template-columns:1fr 1fr}
  body[data-view="exec"] #content .kpis>.kpi:last-child:nth-child(odd){grid-column:1/-1}
  body[data-view="exec"] #content .grp2{font-size:18px}
  body[data-view="exec"] #content .housesays .nm{font-size:19px!important}
  body[data-view="exec"] #content #grossHero .hv{font-size:28px}
}
/* ICON SYSTEM. Every product icon is Lucide (ISC, brand/bleu/LUCIDE-LICENSE.txt)
   drawn from the #lucide-sprite symbols by ic() -- one weight (1.75) at every
   size (16/18/20/24), colour from the context's currentColor. Surfaces set
   Stone at rest and Ink when active; --stone/--ink arrive with BRAND's v8
   tokens, and until then the nearest existing roles stand in. Status is
   always an icon AND a word (.ist). Brand marks (.wmsvg, .obm, onbleu-mark)
   are artwork, not icons, and are not touched here. */
.ic{stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
svg.ic{flex:none;display:inline-block;vertical-align:middle;overflow:visible}
.ic-rest{color:var(--stone,var(--mut))}
.ic-on{color:var(--ink,var(--text))}
/* an "on" state drawn as Lucide's own shape, filled (a starred star) */
svg.ic.ic-fill{fill:currentColor}
/* shell: sidebar leaves, group tiles, tab bar, top bar */
.navi .gsvg.ic{opacity:1;color:var(--stone,var(--rail-txt))}
.navi.on .gsvg.ic,html[data-theme="dark"] .navi.on .gsvg.ic{color:var(--ink,var(--rail-on))}
.tabbtn .tic .ic{color:var(--stone,var(--rail-txt))}
.tabbtn.on .tic .ic,html[data-theme="dark"] .tabbtn.on .tic .ic{color:var(--ink,var(--rail-on))}
.gsearch .gsico .ic{display:block}
/* status: icon + word, never colour alone */
.ist{display:inline-flex;align-items:center;gap:5px;font-weight:600;white-space:nowrap}
.ist .ic{flex:none}
.ist-over{color:var(--amber)}
.ist-due{color:var(--amber)}
.ist-done{color:var(--forest,var(--racing))}
.ist-floor{color:var(--miami)}
.ist-late{color:var(--carmine)}
/* the legend names the rule in quiet type; only the icon carries the colour */
.ivlegend .ist{color:var(--mut)}
.ivlegend .ist-due .ic,.ivlegend .ist-over .ic{color:var(--amber)}
.ivlegend .ist-done .ic{color:var(--forest,var(--racing))}
.ivlegend .ist-floor .ic{color:var(--miami)}
.ivmeta .ist{display:inline}
.ivmeta .ist .ic{vertical-align:-3px;margin-right:5px}
.colsort .ic{vertical-align:-3px}
/* list eyebrows and pills are small type: the icon sits in the line without
   growing it */
.dxk .ic{margin:-4px 4px -3px 0}
.tdir .ic{margin:-3px -1px -3px -3px}
.chev .ic{display:block}
.dx .ic{display:block}
.banner>.ic:first-child{vertical-align:-3px}
.btn>.ic{margin:-2px 0}
/* icon-only shell controls reach 44px on touch */
@media(pointer:coarse){.navburger{width:44px;height:44px}.railtheme .themeBtn{min-width:44px;min-height:44px}}
/* BLEU-COMPACT-RAIL:STYLE:BEGIN */
/* Approved compact desktop navigation. Touch shells are deliberately excluded. */
.bleu-rail-toggle,.bleu-rail-account,.bleu-rail-tooltip{display:none}
@media (min-width:861px) and (pointer:fine){
  .bleu-rail-toggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;border:1px solid color-mix(in srgb,var(--rail-on) 18%,transparent);border-radius:12px;background:transparent;color:var(--rail-on);cursor:pointer}
  .bleu-rail-toggle:hover,.bleu-rail-account:hover{background:color-mix(in srgb,var(--rail-on) 8%,transparent)}
  .rail .grphead:focus-visible,.rail .navi:focus-visible,.bleu-rail-toggle:focus-visible,.bleu-rail-account:focus-visible{outline:2px solid var(--miami);outline-offset:-2px}
  #shell.railcompact{grid-template-columns:72px minmax(0,1fr)}
  #shell.railcompact .rail{padding:16px 10px;overflow-x:hidden;scrollbar-width:thin}
  #shell.railcompact .brand{flex-direction:column;gap:10px;padding:0 0 12px}
  #shell.railcompact .brand .wm{--wm-h:20px;max-width:50px}
  #shell.railcompact #nav{display:flex;flex-direction:column;gap:4px}
  #shell.railcompact .navgrp{min-width:0}
  #shell.railcompact .grphead{justify-content:center;width:48px;min-height:44px;padding:6px;gap:0;box-sizing:border-box}
  #shell.railcompact .grphead .chip{width:28px;height:28px;flex:none}
  #shell.railcompact .grphead .gic{width:20px;height:20px}
  #shell.railcompact .grphead .grplabel,#shell.railcompact .grphead .chev{display:none}
  #shell.railcompact .leaves{gap:2px;padding:3px 0 7px}
  #shell.railcompact .navi{justify-content:center;width:48px;min-height:44px;padding:10px 0;gap:0;box-sizing:border-box;font-size:0;border-left-width:3px}
  #shell.railcompact .navi .g,#shell.railcompact .navi .gsvg{width:21px;height:21px}
  #shell.railcompact .navi:hover{transform:none}
  #shell.railcompact .me{padding-top:10px}
  #shell.railcompact .me .mewrap,#shell.railcompact .me .row{display:none}
  #shell.railcompact .bleu-rail-account{display:flex;align-items:center;justify-content:center;width:48px;height:44px;padding:0;border:1px solid color-mix(in srgb,var(--rail-on) 18%,transparent);border-radius:12px;background:transparent;color:var(--rail-on);cursor:pointer}
  .bleu-rail-tooltip:not([hidden]){display:block;position:fixed;z-index:100;max-width:min(260px,calc(100vw - 112px));padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text);font:600 13px/1.3 var(--sans);box-shadow:var(--shadow-sm);pointer-events:auto;overflow-wrap:anywhere}
}
/* BLEU-COMPACT-RAIL:STYLE:END */

/* BLEU-CAR-IDENTITY-01:BEGIN */
.csidentity{display:flex;align-items:center;flex-wrap:wrap;gap:4px 14px;margin-top:8px;min-width:0;clear:none}
.csidentity-stock{color:var(--mut);flex:none}
.csidentity-vin{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;min-width:0}
.csidentity-label{font-size:11px;letter-spacing:.06em;color:var(--mut);font-weight:700}
.csidentity-value{font-size:13px;line-height:1.5;color:var(--text);overflow-wrap:anywhere;user-select:all}
.csidentity-unknown{font-size:13px;color:var(--mut)}
.csidentity .csidentity-copy{min-width:62px;min-height:44px;padding:6px 10px;flex:none}
@media(max-width:640px){.csidentity{gap:2px 12px}.csidentity-vin{max-width:100%}.csidentity-value{font-size:12px}}
/* BLEU-CAR-IDENTITY-01:END */


.cu-mobile-label{display:none}
@media(max-width:640px){#cubody .cu-mobile-label{display:inline;color:var(--mut)}#cufbar .ivviewbtn{min-width:44px;min-height:44px}#cubody .rowstack{min-height:44px}#cubody .cu-last{white-space:normal}}
