/* ==========================================================================
   ComplaintScout — application stylesheet
   Design tokens mirror the Figma "ComplaintScout Tokens" collection
   (WEB code syntax var(--cs-*)). Direction A "Signal console" is the shell
   and working UI; Direction B editorial styles live under .read and are used
   only on read-pages (cluster, case, CPSC signal, FDA letter, complaint).
   ========================================================================== */
:root{
  --cs-sidebar:#0C1526;
  --cs-sidebar-2:#1B2A4A;
  --cs-sidebar-active:#1F3461;
  --cs-sidebar-text:#E8EDF7;
  --cs-sidebar-dim:#8FA0BE;
  --cs-sidebar-label:#A6B5D2;
  --cs-navy:#14213D;
  --cs-navy-hover:#1F3461;
  --cs-amber:#FCA311;
  --cs-amber-deep:#C9A227;
  --cs-workspace:#F7F8FA;
  --cs-card:#FFFFFF;
  --cs-paper:#FBFAF7;
  --cs-ink:#1C2333;
  --cs-ink-warm:#1B1B18;
  --cs-body:#39415A;
  --cs-body-warm:#33302A;
  --cs-muted:#5A6478;
  --cs-muted-warm:#6F6A5E;
  --cs-line:#E6E8EE;
  --cs-line-row:#EEF0F4;
  --cs-line-strong:#C9CEDB;
  --cs-hair-warm:#D3CCBA;
  --cs-hair-warm-soft:#E9E4D6;
  --cs-high:#B3261E;
  --cs-high-bg:#FBEAEA;
  --cs-medium:#B26A00;
  --cs-medium-bg:#FAF0DC;
  --cs-watch:#5A6478;
  --cs-watch-bg:#EEF1F8;
  --cs-sev:#B3261E;
  --cs-ok:#1F7A3D;
  --cs-ok-bg:#E4F3EA;
  --cs-tan:#7A5B12;
  --cs-tan-bg:#F5EAD2;
  --cs-user-bubble:#E1EBFC;
  --cs-radius:12px;
  --cs-radius-s:8px;
  --cs-shadow:0 1px 3px rgba(12,21,38,.08),0 1px 2px rgba(12,21,38,.05);
  --cs-font-ui:"Inter",-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --cs-font-serif:"Source Serif 4",Georgia,Charter,"Times New Roman",serif;
}

*{box-sizing:border-box}
html,body{overflow-x:hidden;overflow-x:clip;max-width:100%}
body{font-family:var(--cs-font-ui);margin:0;background:var(--cs-workspace);color:var(--cs-ink);
  font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased}
a{color:var(--cs-navy)}
a:hover{color:var(--cs-navy-hover)}
h2{margin:0 0 10px;font-size:17px;font-weight:650}
h3{margin:16px 0 6px;font-size:15px;font-weight:650}
code{font-size:12.5px;background:var(--cs-watch-bg);padding:0 4px;border-radius:4px}
/* overflow guards: media can never stretch its container */
img{max-width:100%;height:auto}
svg{max-width:100%}

/* ---------- shell: sidebar + main ---------- */
/* overflow-x is clipped on .shell itself, not only on html/body:
   iOS Safari does not reliably propagate body overflow to stop
   horizontal panning, but it honors clipping on a real wrapper box.
   The fixed desktop sidebar is unaffected (overflow clipping does
   not create a containing block for fixed descendants). */
.shell{display:flex;align-items:stretch;min-height:100dvh;overflow-x:hidden;overflow-x:clip}
.shell>*{min-width:0}
.sidebar{position:fixed;top:0;bottom:0;left:0;width:248px;flex:none;z-index:20;overflow-y:auto;
  background:var(--cs-sidebar);color:var(--cs-sidebar-text);
  display:flex;flex-direction:column;padding:20px 0 16px}
.sidebar .brand{font-weight:700;letter-spacing:.14em;font-size:16.5px;padding:2px 20px 0}
.sidebar .brand a{color:#fff;text-decoration:none}
.sidebar .brand span{color:var(--cs-amber)}
/* Mobile-nav scaffolding (Oct 29, 2026): on desktop both wrappers are
   display:contents, so the flex items of .sidebar are exactly what
   they were before (brand, search, nav, spacer, account) and the
   toggle is display:none — the >=861px layout is unchanged. Inside
   the <=860px block they become the header row and the slide-down
   panel. */
.side-top{display:contents}
.nav-toggle{display:none}
.nav-reload{display:none}
.nav-search{display:none}
.navpanel{display:contents}
.side-search{margin:16px 14px 4px}
/* the [type=search] attribute selector is load-bearing: it outranks the
   general form rule further down (input[type=search]{color:var(--cs-ink)}),
   which has equal specificity to a bare .side-search input and would win
   on source order — that cascade quietly rendered typed text dark ink on
   the dark navy field (Oct 29, 2026, Tommy's iPhone). */
.side-search input[type=search]{width:100%;background:var(--cs-sidebar-2);border:1px solid transparent;border-radius:var(--cs-radius-s);
  padding:9px 12px;font-size:12.5px;color:#DBE2F0;-webkit-text-fill-color:#DBE2F0;
  caret-color:var(--cs-amber);font-family:inherit}
.side-search input[type=search]::placeholder{color:rgba(255,255,255,.6)}
.side-search input[type=search]:focus{outline:none;border-color:var(--cs-amber);background:#22335C;
  color:#fff;-webkit-text-fill-color:#fff}
.side-label{font-size:10px;font-weight:700;letter-spacing:1.8px;color:var(--cs-sidebar-label);
  text-transform:uppercase;padding:18px 20px 6px}
.nav-item{display:flex;align-items:center;gap:8px;margin:1px 10px;padding:8px 12px;border-radius:var(--cs-radius-s);
  font-size:13.5px;color:var(--cs-sidebar-text);text-decoration:none;border-left:3px solid transparent}
.nav-item:hover{background:var(--cs-sidebar-2);color:#fff}
.nav-item.active{background:var(--cs-sidebar-active);color:#fff;font-weight:600;border-left:3px solid var(--cs-amber)}
.sidebar .spacer{flex:1}
.side-foot{border-top:1px solid #26334F;margin:14px 14px 0;padding:14px 6px 0;display:flex;align-items:center;gap:10px}
.side-foot .avatar{width:32px;height:32px;flex:none;border-radius:50%;background:var(--cs-amber);color:var(--cs-navy);
  font-size:11px;font-weight:700;text-align:center;line-height:32px;text-transform:uppercase}
.side-foot .who{min-width:0}
.side-foot .nm{font-size:13px;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.side-foot .lo{font-size:11.5px;color:var(--cs-sidebar-dim);text-decoration:none}
.side-foot .lo:hover{color:var(--cs-amber)}
.main{flex:1;min-width:0;margin-left:248px}
.wrap{max-width:1180px;margin:0 auto;padding:26px 28px 60px}
footer{color:var(--cs-muted);font-size:13px;text-align:center;padding:6px 0 0}
footer a{color:var(--cs-body)}
.confid{font-size:11.5px;line-height:1.55;text-align:center;max-width:620px;margin:10px auto 2px}
.confid b{letter-spacing:.05em;color:var(--cs-body)}
.authbox .confid{font-size:11.5px;margin-top:12px}

/* ---------- back-to-top (site-wide, base.html) ----------
   A 56x56px circle bottom-right sharing the floating back
   pill's baseline: same bottom offset, safe-area inset
   included. Enlarged Nov 13, 2026 (Tommy: the up arrow should
   match the back/forward buttons — the circle was 44px with a
   20px glyph against the pill's 56px height). */
html{scroll-behavior:smooth}
#toTop{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));width:56px;height:56px;border-radius:50%;
  border:0;padding:0;background:var(--cs-navy);color:var(--cs-amber);font-size:24px;line-height:1;
  cursor:pointer;box-shadow:0 4px 14px rgba(12,21,38,.35);z-index:50;
  display:flex;align-items:center;justify-content:center;
  opacity:0;visibility:hidden;transform:translateY(8px);
  transition:opacity .25s ease,transform .25s ease,visibility .25s}
#toTop.show{opacity:1;visibility:visible;transform:none}
#toTop:hover{background:var(--cs-navy-hover)}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  #toTop{transition:none}
}

/* ---------- floating back/forward control (opt-in partial _floating_back.html) ----------
   Bottom-LEFT Safari-style back/forward pair: the matched pair of
   #toTop (bottom-right), for detail pages whose only way back is a
   static link at the top. One navy pill, 56px tall, holding the
   back anchor and the forward button side by side (68px each, a
   hairline divider between), amber chevrons at 44px type (the
   single-angle-quote glyphs render at roughly 26px). Enlarged
   Nov 13, 2026 (Tommy: "a little too small" — the pair was 48px
   tall with 48px halves and 30px type when the pill shipped
   Nov 10, 2026, Tommy preferring Safari's paired chevrons).
   Always visible from page load — no scroll reveal (Tommy,
   Nov 3, 2026: the back button must not wait for scrolling).
   No visible labels; destinations are in aria-label/title.
   Navigation runs on the app-managed sessionStorage stack in the
   partial (float-nav-appstack-2026-11-13-v2); the halves NEVER
   change appearance — full-strength amber on navy in every
   state (an exhausted-stack dim shipped and removed the same
   day: faded chevrons read as a defect to Tommy, Nov 13, 2026)
   — see the partial for the rules. */
.float-nav{position:fixed;left:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:50;
  display:flex;align-items:center;height:56px;border-radius:999px;overflow:hidden;
  background:var(--cs-sidebar);
  box-shadow:0 4px 14px rgba(12,21,38,.35)}
.float-back{display:flex;align-items:center;justify-content:center;
  width:68px;height:56px;
  color:var(--cs-amber);
  text-decoration:none}
.float-fwd{display:flex;align-items:center;justify-content:center;
  width:68px;height:56px;padding:0;border:0;border-left:1px solid rgba(255,255,255,.18);
  background:transparent;color:var(--cs-amber);
  font:inherit;cursor:pointer}
.float-back:hover,.float-fwd:hover{background:var(--cs-sidebar-2);color:var(--cs-amber)}
.float-back-arrow{font-size:44px;line-height:1}
/* Desktop removal (Tommy, Nov 11, 2026 — float-nav-desktop-off-2026-11-11):
   above the mobile breakpoint the browser's own back/forward buttons
   by the URL suffice, so the pill is hidden on desktop and kept only
   at <=860px, alongside the pinned mobile header. DOM, templates and
   back-link semantics untouched. */
@media(min-width:861px){
  .float-nav{display:none}
}

/* ---------- page furniture (Direction A) ---------- */
.pagehead{margin-bottom:18px}
.pagehead h1{font-size:26px;font-weight:700;margin:0 0 4px;letter-spacing:-.01em}
.pagehead .muted{margin:0}
.card{background:var(--cs-card);border-radius:var(--cs-radius);padding:18px 20px;margin-bottom:18px;box-shadow:var(--cs-shadow);min-width:0}
.kpis{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:20px}
.kpis>*{min-width:0}
.kpi{background:var(--cs-card);border-radius:var(--cs-radius);padding:14px 18px;min-width:150px;box-shadow:var(--cs-shadow)}
.kpi b{font-size:25px;display:block;font-weight:700;letter-spacing:-.01em}
.kpi small{color:var(--cs-muted);text-transform:uppercase;letter-spacing:.06em;font-size:10.5px;font-weight:600}
/* Dashboard KPI cards are whole-card links (Nov 13, 2026): the anchor
   carries the .kpi box styling, so the entire padded surface is the
   hit area. Hover lifts the shadow, matching .casecard; keyboard
   focus uses the global a:focus-visible amber outline. */
a.kpi{display:block;color:inherit;text-decoration:none}
a.kpi:hover{box-shadow:0 2px 8px rgba(12,21,38,.14)}
/* New & rising strip (/nhtsa, Nov 20, 2026): one slim row in place
   of the five-figure KPI strip — a caption plus up to five
   rising-pattern links. The caption (.nr-lead) sits above the
   row as a plain small-caps label with no card styling, never as
   a row child: inside the phone snap row it took a 76% tile
   slot, rendered as a big empty box and pushed the first card
   off-screen (fixed Nov 20, 2026). Phones get the snap-row
   treatment in the 720px block, same as .kpis.snaprow. */
.nr-lead{margin:0 0 8px 2px}
.nr-kicker{font-size:10.5px;font-weight:700;text-transform:uppercase;
  letter-spacing:.06em;color:var(--cs-muted)}
.newrising{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}
.newrising>*{min-width:0}
a.nr-item{display:flex;flex-direction:column;justify-content:center;gap:2px;
  flex:1 1 190px;padding:8px 14px;color:inherit;text-decoration:none;
  background:var(--cs-card);border-radius:var(--cs-radius);
  box-shadow:var(--cs-shadow)}
a.nr-item:hover{box-shadow:0 2px 8px rgba(12,21,38,.14)}
.nr-name{font-size:13px;white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis}
.nr-meta{font-size:12px;color:var(--cs-muted)}
.kpi .delta{color:var(--cs-ok);font-weight:600;font-size:13px;margin-top:2px}
.kpi .delta.bad{color:var(--cs-sev)}
.kpi .delta.warn{color:var(--cs-medium)}
.kpi .cap{color:var(--cs-muted);font-size:12px;margin-top:1px;min-height:2.9em}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.grid>*{min-width:0}
.muted{color:var(--cs-muted);font-size:13px}
.sev{color:var(--cs-sev);font-weight:600}
.narr{color:var(--cs-body);font-size:13px;line-height:1.55}
.prewrap{white-space:pre-wrap}
.thw{width:170px}
.full{width:100%}
.inlineform{display:inline}
.mt8{margin-top:8px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt24{margin-top:24px}

/* tables */
table{width:100%;border-collapse:collapse;font-size:13.5px}
th{text-align:left;color:var(--cs-muted);font-weight:600;font-size:11px;text-transform:uppercase;
  letter-spacing:.05em;padding:7px 8px;border-bottom:2px solid var(--cs-line)}
td{padding:7px 8px;border-bottom:1px solid var(--cs-line-row);vertical-align:top}
.tblwrap{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
/* scores, tiers, pills, badges */
.score{font-weight:700;font-size:16px}
.HIGH{color:var(--cs-high)}.MEDIUM{color:var(--cs-medium)}.WATCH{color:var(--cs-watch)}
.bar{height:6px;background:var(--cs-line);border-radius:3px;overflow:hidden;display:inline-block;width:110px;vertical-align:middle}
.bar i{display:block;height:100%;background:var(--cs-navy)}
.badge-tier{display:inline-block;padding:2px 9px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.04em}
.badge-HIGH{background:var(--cs-high-bg);color:var(--cs-high)}
.badge-MEDIUM{background:var(--cs-medium-bg);color:var(--cs-medium)}
.badge-WATCH{background:var(--cs-watch-bg);color:var(--cs-watch)}
.pill{display:inline-block;padding:1px 9px;border-radius:999px;background:var(--cs-watch-bg);color:var(--cs-ink);
  font-size:12px;margin-right:4px;line-height:1.6}
.pill-green{background:var(--cs-ok-bg);color:var(--cs-ok)}
.pill-tan{background:var(--cs-tan-bg);color:var(--cs-tan)}
.pill-signal{background:var(--cs-tan);color:#fff}
.pill-red{background:#7A1F1F;color:#fff;font-weight:700}

/* document loads: status chips + upload dropzone */
.badge-load{display:inline-block;padding:2px 9px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.04em}
.badge-load-pending{background:var(--cs-medium-bg);color:var(--cs-medium)}
.badge-load-coded{background:var(--cs-ok-bg);color:var(--cs-ok)}
.badge-load-duplicate{background:var(--cs-watch-bg);color:var(--cs-watch)}
.badge-load-unreadable{background:var(--cs-high-bg);color:var(--cs-high)}
.dropzone{border:2px dashed var(--cs-line-strong);border-radius:var(--cs-radius-s);padding:24px 18px;text-align:center;cursor:pointer}
.dropzone h3{margin:0 0 8px;font-size:17px}
.dropzone.drag{border-color:var(--cs-amber);background:var(--cs-medium-bg)}
.staged-list{list-style:none;margin:12px auto 0;padding:0;max-width:640px;text-align:left}
.staged-list li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:5px 8px;border-bottom:1px solid var(--cs-line-row)}
.staged-list .staged-x{flex:0 0 auto}
.stage-note{font-weight:600;margin:8px 0 0}
.pill-amber{background:#C8A24A;color:var(--cs-navy);font-weight:700}

/* breach "Interested" pins: star toggle on rows + detail, chip in the
   filter row. Unpinned = quiet outline; pinned = amber star, bold. */
.interest-form{display:block;margin-top:7px}
.interest-btn{background:transparent;border:1px solid var(--cs-line);border-radius:999px;
  padding:2px 10px;font-size:12px;line-height:1.6;cursor:pointer;color:var(--cs-muted)}
.interest-btn .star{font-size:13px;color:#B9C0CB}
.interest-btn:hover{border-color:var(--cs-amber)}
.interest-btn.on{border-color:var(--cs-amber);color:var(--cs-navy);font-weight:700;background:#FFF6E0}
.interest-btn.on .star{color:var(--cs-amber)}
.interest-chip{display:inline-block;padding:2px 12px;border:1px solid var(--cs-line);
  border-radius:999px;font-size:13px;color:var(--cs-muted);text-decoration:none;white-space:nowrap}
.interest-chip:hover{border-color:var(--cs-amber);color:var(--cs-navy)}
.interest-chip.on{border-color:var(--cs-amber);background:#FFF6E0;color:var(--cs-navy);font-weight:700}
/* /law360 section tabs (Nov 18, 2026; L360-6): the jump nav is a
   sticky tab bar with counts, so on a ~6,000px page the three
   sections stay one tap away. It bleeds to the content column's
   edges (negative margins match .wrap's padding) and sticks to
   the column top on desktop; at <=860px it pins under the fixed
   54px mobile header instead (override in that block below).
   .ptab.on (navy fill) marks the section in view — set by the
   page's scrollspy script, cosmetic only. */
.page-jump{position:sticky;top:0;z-index:55;display:flex;flex-wrap:wrap;
  align-items:center;gap:6px;background:#fff;
  border-bottom:1px solid var(--cs-line);box-shadow:var(--cs-shadow);
  font-size:13.5px;margin:-26px -28px 16px;padding:10px 28px}
.ptab{display:inline-flex;align-items:center;gap:6px;min-height:36px;
  padding:6px 14px;border:1px solid var(--cs-line-strong);border-radius:999px;
  background:#fff;color:var(--cs-navy);font-weight:600;text-decoration:none}
.ptab:hover{border-color:var(--cs-amber);color:var(--cs-navy);text-decoration:none}
.ptab .ptab-n{font-weight:800}
.ptab.on{background:var(--cs-navy);border-color:var(--cs-navy);color:#fff}
/* Fragment landings clear the sticky tab bar (~51px + breathing
   room); the <=860 block raises this to 110px for the fixed
   header + tab bar stack (L360-6's specified offset). */
[id^="idea-"]{scroll-margin-top:68px}
#case-ideas,#precedent-lessons,#cases,#chart,#docket,#complaints,#precedent{scroll-margin-top:68px}
#srch-report-text,#srch-signals,#srch-clusters,#srch-cases,#srch-cpsc,#srch-fda,#srch-ideas,#srch-breach,#cs-signals,#cs-groupings,#cs-narratives,#idea-simple,#idea-filings,#idea-work,#idea-litigation{scroll-margin-top:68px}
/* Incident-page section anchors (GLOB-4, Wave 3): the breach
   page's sticky tab bar targets these ids — same offsets as
   /law360's (110px in the <=860px block below). */
#breach-actions,#breach-score,#breach-facts,#breach-litigation,#breach-coverage,#breach-notice{scroll-margin-top:68px}
/* /law360 explainer folds (L360-1): desktop renders the full
   paragraph (.explainer-full); phone widths swap to the lede +
   disclosure twin (.explainer-m) in the <=720px block. */
.explainer-m{display:none}
.how-works>summary{list-style:none;display:flex;align-items:center;gap:8px;
  min-height:44px;cursor:pointer;font-weight:700;color:var(--cs-navy);font-size:13.5px}
.how-works>summary::-webkit-details-marker{display:none}
.how-works>summary::after{content:"▸";flex:none;color:var(--cs-amber-deep);font-size:13px}
.how-works[open]>summary::after{content:"▾"}
.how-works>summary:hover{background:rgba(252,163,17,.12)}
.how-works>summary:focus-visible{outline:2px solid var(--cs-amber-deep);outline-offset:2px}
/* /law360 filter bars (L360-2 / L360-7): labeled fields in a flex
   row on desktop (the long-standing look); the <=720px block
   compacts them into the two-across labeled-field grid. */
.fbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 14px;margin:10px 0}
.ffield label{display:block;margin-bottom:3px}
.fbar .frow{display:flex;align-items:center;gap:10px}
.fbar button{margin:0}
.fbar .fclear{padding:6px 2px}
/* Breakpoint twins that render only at phone widths (the <=720px
   block turns them on and their desktop forms off): the idea
   card's Details fold (L360-3), the compact lesson (L360-4), and
   the stacked case cards (L360-5). (The L360-8 page-end pad was
   generalized into .wrap's <=860px bottom padding by GLOB-5 —
   see the <=860px block — and its .l360-endpad rule/div retired.) */
.idea-details{display:none}
.lesson-compact{display:none}
.case-cards{display:none}
/* Grouped actions (GLOB-8, mobile sweep Wave 1): one pattern for
   detail-page action stacks — a block carrying a small caps
   label (.actgroup-label) over stacked action rows (later waves
   use .actrow rows inside). Desktop-neutral: usable at all
   widths, applied by later waves only, so no shipped page
   changes until a template adopts it. The single primary action
   in a group carries .primary and keeps the existing primary
   button look (the base button/.btn navy treatment, restated
   here so a plain <a class="primary"> renders identically). */
.actgroup{display:block;margin:0 0 14px}
.actgroup-label{display:block;font-size:10.5px;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;color:var(--cs-muted);
  margin:0 0 6px}
.actgroup .primary{background:var(--cs-navy);color:#fff;border:0;
  border-radius:var(--cs-radius-s);padding:8px 16px;font-size:13.5px;
  font-weight:600;line-height:1.35;text-decoration:none}
.actgroup .primary:hover{background:var(--cs-navy-hover);color:#fff}
/* /law360 list caps (Nov 20, 2026): the ideas, lessons and cases
   lists render in full, but items past the first 25 carry
   [hidden] behind a Show more button (25 more per click, the
   remaining count on the button) so the page no longer opens
   onto a several-hundred-card wall. The [hidden] rule must
   outrank item display rules like .idea-card's flex. The button
   keeps the retired idea-expander's disclosure language. */
[data-more-item][hidden]{display:none}
button.more-btn{display:flex;align-items:center;gap:9px;
  min-height:44px;cursor:pointer;font-weight:700;color:var(--cs-navy);
  padding:6px 2px;background:none;border:0;font:inherit;text-align:left}
button.more-btn::before{content:"▸";flex:none;color:var(--cs-amber-deep);font-size:13px}
button.more-btn:hover{background:rgba(252,163,17,.21)}
button.more-btn:focus-visible{outline:2px solid var(--cs-amber-deep);outline-offset:2px}
/* /law360 Daily News (Nov 20, 2026): one tappable row per archived
   brief day in the index — the whole row is the link, the date in
   words is its title (no underline, no repeated "Law360 brief —"
   title line), a hairline separates rows; the brief page's
   prev/next day links sit under the verbatim body with clear air
   above them. */
.brief-day{display:flex;align-items:center;min-height:44px;
  padding:9px 4px;border-top:1px solid var(--cs-line-row);
  color:var(--cs-navy);font-weight:600;text-decoration:none}
.brief-day::after{content:"›";margin-left:auto;padding-left:12px;
  color:var(--cs-muted);font-size:19px;font-weight:400;line-height:1}
.brief-day:hover{background:var(--cs-watch-bg)}
.brief-day:focus-visible{outline:2px solid var(--cs-amber-deep);
  outline-offset:2px}
.brief-nav{margin-top:26px;font-weight:600}
.detail-interest{margin:10px 0 2px}
.detail-interest .interest-form{display:inline-block;margin-top:0}
.detail-interest .interest-btn{font-size:13px;padding:4px 14px}
/* One-tap Load-to-library buttons beside court-document links
   (_load_button.html; Tommy, Nov 13, 2026). Compact pill in the
   interest-btn language; min-height 40px so the tap target stays
   comfortable on a phone even inline in body text. States: default
   (quiet), in-library (amber, disabled), working, failed (the
   server's plain reason becomes the button text, tap to retry). */
.load-lib-btn{background:#fff;border:1px solid var(--cs-line);border-radius:999px;
  padding:6px 14px;font-size:12.5px;font-weight:600;line-height:1.5;min-height:40px;
  cursor:pointer;color:var(--cs-navy);vertical-align:middle;margin-left:6px}
.load-lib-btn:hover{border-color:var(--cs-amber)}
.load-lib-btn.in-library{background:#FFF6E0;border-color:var(--cs-amber);cursor:default}
.load-lib-btn.working{opacity:.6;cursor:wait}
.load-lib-btn.failed{background:#FDECEC;border-color:#D66;color:#8B1E1E}
/* Per-candidate Promote control in the exemplar candidates list
   (_promote_button.html; Tommy, Nov 13, 2026): same pill language
   and 40px tap target as the Load button, rendered in the
   candidate's first cell beside its document links. */
.promote-form{display:inline}
.promote-btn{border-radius:999px;padding:6px 16px;font-size:12.5px;font-weight:700;
  line-height:1.5;min-height:40px;vertical-align:middle}
.promote-btn[disabled]{opacity:.6;cursor:wait}
.share-summary{margin:10px 0 4px}
.share-summary textarea{width:100%;max-width:720px;height:auto;min-height:240px;
  font:13px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap}

/* /breaches Top recent picks + list view tabs (Nov 9, 2026): the
   three stacked sections (fresh / candidates / ranked) became one
   list card with three views, and the highest-scoring open lanes
   of the last 14 days surface as compact cards above it — the
   ranked table is reachable without scrolling past hundreds of
   rows. Picks are a deterministic score ordering (no AI); the
   rule line under the title states the selection in plain words. */
.picks-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.pick-card{display:block;background:var(--cs-workspace);border:1px solid var(--cs-line);
  border-radius:var(--cs-radius-s);padding:12px 14px;text-decoration:none;color:var(--cs-ink);min-width:0}
.pick-card:hover{border-color:var(--cs-amber)}
.pick-name{display:block;font-weight:650;font-size:14.5px;margin-bottom:4px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pick-meta{display:block;font-size:12.5px;color:var(--cs-body);margin-bottom:6px}
.pick-types{display:block;margin-bottom:6px}
.pick-date{display:block;font-size:12.5px;color:var(--cs-body)}
.pick-lane{display:block;font-size:12px;color:var(--cs-muted);margin-top:2px}
.pill-new{background:var(--cs-amber);color:var(--cs-navy);font-weight:700}
.viewtabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.viewtab{display:inline-block;padding:5px 14px;border:1px solid var(--cs-line);
  border-radius:999px;font-size:13px;color:var(--cs-muted);text-decoration:none;white-space:nowrap}
.viewtab:hover{border-color:var(--cs-amber);color:var(--cs-navy)}
.viewtab.on{border-color:var(--cs-amber);background:#FFF6E0;color:var(--cs-navy);font-weight:700}

/* score component micro-bars (queue) */
.microgrid{display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));gap:8px 18px;min-width:270px}
.micro .mlabel{display:flex;justify-content:space-between;font-size:9.5px;font-weight:600;
  letter-spacing:.08em;color:var(--cs-muted);text-transform:uppercase;margin-bottom:3px}
.micro .mval{color:var(--cs-ink);font-size:10px}
.microbar{height:5px;background:var(--cs-line);border-radius:3px;overflow:hidden}
.microbar i{display:block;height:100%;background:var(--cs-navy)}
.microbar i.max{background:var(--cs-amber)}

/* NHTSA signal-list rows: the narrative excerpt clamps to three
   lines in the LIST only (the full verbatim text lives on the
   pattern's own page), and the lane label stays a one-line pill —
   ellipsized when the column is tight rather than wrapping into a
   tall rounded blob. */
.sigtable .excerpt{display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;
  -webkit-box-orient:vertical;overflow:hidden}
.sigtable .lane-pill{white-space:nowrap;max-width:100%;overflow:hidden;
  text-overflow:ellipsis;vertical-align:bottom}

/* Score-methodology popover (/nhtsa, /breaches, /cpsc, /fda): the
   scoring note lives behind the ⓘ in the SCORE column header (the
   Relevance header on /fda) instead of a paragraph in the page flow
   (Tommy, Nov 3, 2026). The popover is position:fixed and
   JS-placed, so it never widens the table or gets clipped by the
   .tblwrap scroller. The twin button beside the card title shows
   only at phone widths, where the stacked table hides the header
   row the primary button lives in. */
.infopop-btn{display:inline-flex;align-items:center;justify-content:center;
  width:26px;height:26px;min-width:26px;min-height:26px;padding:0;
  border:0;border-radius:50%;background:transparent;cursor:pointer;
  color:var(--cs-muted);font:inherit;font-size:15px;line-height:1;
  vertical-align:middle}
.infopop-btn:hover,.infopop-btn:focus-visible{color:var(--cs-navy);
  background:var(--cs-watch-bg);outline:none}
.infopop-mobile{display:none}
@media(max-width:720px){.infopop-mobile{display:inline-flex}}
.infopop-card{position:fixed;z-index:90;max-width:340px;
  background:var(--cs-navy);color:#E9EEF8;font-size:12.5px;line-height:1.55;
  padding:12px 14px;border-radius:var(--cs-radius-s);
  box-shadow:0 10px 30px rgba(12,21,38,.35),0 2px 8px rgba(12,21,38,.25)}

/* filter / sort bar (queue + search) */
.filterbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 14px}
.filterbar input[type=search]{flex:1 1 220px}
.filterbar .chk{font-size:13px;color:var(--cs-body);display:flex;align-items:center;gap:6px}
/* facet filters (document loads: issues / jurisdiction / counsel) */
.facet-form{margin:0 0 6px}
.facet-groups{display:flex;flex-wrap:wrap;gap:14px}
.facet-group{flex:1 1 240px;border:1px solid var(--cs-line);border-radius:var(--cs-radius-s);padding:10px 14px 12px;margin:0}
.facet-group legend{font-weight:700;font-size:13px;padding:0 4px}
.facet-group .chk{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--cs-body);margin:5px 0}
@media (max-width:720px){.facet-group{flex:1 1 100%}}
.searchbar{display:flex;gap:10px;margin-bottom:16px}
.searchbar input{flex:1}
.searchbar.wrap{flex-wrap:wrap;align-items:center}
.searchbar .sortby{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--cs-muted);white-space:nowrap}
.repdate{color:var(--cs-navy)}

/* buttons + forms */
button,.btn{background:var(--cs-navy);color:#fff;border:0;border-radius:var(--cs-radius-s);padding:8px 16px;
  cursor:pointer;font-size:13.5px;font-weight:600;font-family:inherit;text-decoration:none;
  display:inline-block;margin:4px 8px 4px 0;vertical-align:middle;line-height:1.35}
button:hover,.btn:hover{background:var(--cs-navy-hover);color:#fff}
.btn-secondary{background:#fff;color:var(--cs-ink);border:1px solid var(--cs-line-strong)}
.btn-secondary:hover{background:var(--cs-workspace);color:var(--cs-ink)}
.btn-ghost{background:transparent;color:var(--cs-navy)}
.btn-ghost:hover{background:var(--cs-watch-bg);color:var(--cs-navy)}
/* "Show all N" reveal under a phone-capped list (/breaches fresh +
   candidates): JS unhides it only while the <=720px cap is active,
   so the [hidden] state must outrank the generic button display. */
.showall-btn{margin:10px 0 2px}
.showall-btn[hidden]{display:none}
select,input[type=text],input[type=email],input[type=password],input[type=search],input[type=file],textarea{
  padding:7px 9px;border:1px solid var(--cs-line-strong);border-radius:6px;font-size:13.5px;
  font-family:inherit;background:#fff;color:var(--cs-ink);max-width:100%}
textarea{width:260px;height:34px}
select:focus,input:focus,textarea:focus{outline:none;border-color:var(--cs-navy);
  box-shadow:0 0 0 3px rgba(252,163,17,.28)}
button:focus-visible,.btn:focus-visible,a:focus-visible{outline:2px solid var(--cs-amber);outline-offset:2px}
label{font-size:13px;color:var(--cs-body)}
/* (The case-ideas filter form's side-by-side label rule retired
   Nov 18, 2026: the /law360 filter bars now lay out via .fbar —
   see the section-tabs block above.) */

/* dashboard: case monitor cards */
.section-head{display:flex;align-items:baseline;justify-content:space-between;margin:4px 0 12px}
.section-head h2{margin:0}
.casecards{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin-bottom:8px}
.casecard{display:block;background:var(--cs-card);border-radius:var(--cs-radius);box-shadow:var(--cs-shadow);
  padding:16px 18px;text-decoration:none;color:var(--cs-ink);min-width:0}
.casecard:hover{box-shadow:0 2px 8px rgba(12,21,38,.14)}
.cc-name{font-weight:650;font-size:15.5px}
.cc-sub{color:var(--cs-muted);font-size:12px;margin:1px 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cc-total{font-size:27px;font-weight:700;letter-spacing:-.01em}
.cc-total span{font-size:12.5px;font-weight:500;color:var(--cs-muted)}
.cc-meta{font-size:12.5px;margin-top:2px}
.cc-note{color:var(--cs-muted);font-size:12px;margin-top:6px}

/* bar charts (volume by year / month) */
.barchart .brow{display:flex;align-items:center;gap:8px;margin:3px 0}
.brow .blabel{width:44px;flex:none;color:var(--cs-muted);font-size:12.5px;white-space:nowrap}
.brow .blabel.wide{width:64px}
.brow .btrack{flex:1;min-width:0}
.brow .bfill{height:10px;background:var(--cs-amber-deep)}
.brow .bfill.ink{background:var(--cs-navy)}
.brow .bval{flex:none;font-size:12.5px}

/* investigations, job banners */
.inv{margin:0 0 16px}
.inv .t{display:block;font-size:16px;font-weight:700;margin:5px 0 3px;line-height:1.35}
.jobrun{border-left:4px solid var(--cs-amber-deep)}
.joberr{border-left:4px solid var(--cs-high)}
.storyitem{margin:.4em 0}
.storygroup{margin:.45em 0}
.eyebrow{font-size:10.5px;font-weight:600;letter-spacing:1.6px;color:var(--cs-muted);
  text-transform:uppercase;margin:0 0 3px}
details.storyall{margin-top:14px;border-top:1px solid var(--cs-line);padding-top:10px}
details.storyall>summary{list-style:none;display:flex;align-items:center;gap:9px;min-height:44px;
  padding:10px 14px 24px;background:rgba(252,163,17,.13);border:1px solid rgba(252,163,17,.45);
  border-radius:6px;color:var(--cs-navy);font-weight:600;font-size:15px;cursor:pointer}
details.storyall>summary::-webkit-details-marker{display:none}
details.storyall>summary::before{content:"▸";flex:none;color:var(--cs-amber-deep);font-size:13px}
details.storyall[open]>summary::before{content:"▾"}
details.storyall[open]>summary{margin-bottom:6px}
details.storyall>summary:hover{background:rgba(252,163,17,.21)}
details.storyall>summary:focus-visible{outline:2px solid var(--cs-amber-deep);outline-offset:2px}
details.storyall>summary .sac{font-weight:800}
details.storycluster>summary{cursor:pointer;padding:3px 0}
details.storycluster{margin:3px 0 3px 12px;border-top:1px dashed var(--cs-line);padding-top:5px}
details.storycluster .storyitem{margin-left:14px}

/* Vehicle Context compact rows + cluster section folds (Nov 20,
   2026): every context item is one compact row — a type chip that
   can never be mistaken (RECALL / INVESTIGATION / SERVICE BULLETIN),
   the identifier line, a one-line gist, and the full text behind a
   per-item expander; each type group caps at 8 rows with a
   "Show all N" disclosure for the rest. Cluster long-read sections
   fold behind details.sec-fold headers carrying their counts. */
.vctx-group{margin-top:14px}
.vctx-row{padding:9px 0;border-bottom:1px solid var(--cs-line-row)}
.vctx-row:last-child{border-bottom:0}
.vctx-line{margin:0}
.vctx-gist{margin:3px 0 0}
.vctx-chip{font-weight:700;letter-spacing:.4px}
.vctx-chip-recall{background:#7A1F1F;color:#fff}
.vctx-chip-inv{background:var(--cs-navy);color:#fff}
.vctx-chip-tsb{background:var(--cs-tan-bg);color:var(--cs-tan)}
details.vctx-detail{margin-top:3px}
details.vctx-detail>summary{list-style:none;display:flex;align-items:center;gap:6px;
  min-height:28px;color:var(--cs-amber-deep);font-size:13px;font-weight:600;cursor:pointer}
details.vctx-detail>summary::-webkit-details-marker{display:none}
details.vctx-detail>summary::before{content:"▸";flex:none;font-size:12px}
details.vctx-detail[open]>summary::before{content:"▾"}
details.vctx-detail>summary:focus-visible{outline:2px solid var(--cs-amber-deep);outline-offset:2px}
details.vctx-more{margin-top:4px;border-top:1px dashed var(--cs-line);padding-top:6px}
details.vctx-more>summary{list-style:none;display:flex;align-items:center;gap:9px;min-height:40px;
  padding:6px 10px;background:rgba(252,163,17,.13);border:1px solid rgba(252,163,17,.45);
  border-radius:6px;color:var(--cs-navy);font-weight:600;font-size:14px;cursor:pointer}
details.vctx-more>summary::-webkit-details-marker{display:none}
details.vctx-more>summary::before{content:"▸";flex:none;color:var(--cs-amber-deep);font-size:13px}
details.vctx-more[open]>summary::before{content:"▾"}
details.vctx-more>summary:hover{background:rgba(252,163,17,.21)}
details.vctx-more>summary:focus-visible{outline:2px solid var(--cs-amber-deep);outline-offset:2px}
details.sec-fold>summary{list-style:none;display:flex;align-items:center;gap:9px;
  min-height:44px;cursor:pointer}
details.sec-fold>summary::-webkit-details-marker{display:none}
details.sec-fold>summary::before{content:"▸";flex:none;color:var(--cs-amber-deep);font-size:13px}
details.sec-fold[open]>summary::before{content:"▾"}
details.sec-fold>summary .rsec-head{margin-bottom:0}
details.sec-fold>summary:hover .rsec-head{color:var(--cs-navy)}
details.sec-fold>summary:focus-visible{outline:2px solid var(--cs-amber-deep);outline-offset:2px}

/* ---------- editorial read-pages (Direction B inside the A shell) ---------- */
.read{background:var(--cs-paper);border:1px solid var(--cs-hair-warm);border-radius:6px;
  padding:38px 46px 42px;color:var(--cs-ink-warm);margin-bottom:18px}
.read .caps{font-size:10.5px;font-weight:600;letter-spacing:1.6px;color:var(--cs-muted-warm);text-transform:uppercase}
.read .hair{height:1px;background:var(--cs-hair-warm)}
.read .hair-ink{height:1px;background:var(--cs-ink-warm)}
.read-title{font-family:var(--cs-font-serif);font-size:37px;line-height:1.13;font-weight:700;margin:12px 0 6px}
.read-tagline{font-family:var(--cs-font-serif);font-size:19px;font-style:italic;color:var(--cs-muted-warm);margin-bottom:10px}
.read-hq{font-size:13.5px;color:var(--cs-muted-warm);margin:-6px 0 4px}
.standfirst{font-family:var(--cs-font-serif);font-size:16.5px;line-height:1.55;font-style:italic;margin:12px 0}
.read .body{font-size:13.5px;line-height:1.6}
.read .meta-line{font-size:10.5px;font-weight:600;letter-spacing:1.4px;color:var(--cs-muted-warm);
  text-transform:uppercase;line-height:1.7;margin-top:14px}
.label-line{display:inline-block;margin-top:10px;font-size:11px;font-weight:700;letter-spacing:1.4px;
  color:var(--cs-navy);border:1px solid var(--cs-navy);border-radius:999px;padding:3px 11px;text-transform:uppercase}
.lead-flex{display:flex;gap:40px;flex-wrap:wrap;margin-top:22px}
.lead-main{flex:1;min-width:270px}
.scorecard{width:372px;flex:none;max-width:100%;border:1px solid var(--cs-hair-warm);padding:20px 22px 16px}
.score-big{display:flex;align-items:baseline;gap:10px;margin:10px 0 12px}
.score-big .n{font-family:var(--cs-font-serif);font-size:54px;font-weight:700;line-height:1}
.score-big .of{font-size:13px;color:var(--cs-muted-warm);font-weight:500}
.sc-row{display:flex;justify-content:space-between;align-items:center;padding:7px 0;border-bottom:1px solid var(--cs-hair-warm)}
.sc-row .k{font-size:10.5px;font-weight:500;letter-spacing:1.2px;color:var(--cs-muted-warm);text-transform:uppercase}
.sc-row .v{font-family:var(--cs-font-serif);font-size:15.5px;font-weight:600}
/* Scorecard component rows carry the queue's micro-bar (delta #7,
   Nov 3, 2026): the geometry — 5px height, 3px radius, line track,
   navy fill, amber at max — is .microbar's, unchanged; here the bar
   only flexes to fill the row between the label and the value, so a
   score component reads identically on the cluster page and in the
   Review Queue / signal tables. */
.sc-row .microbar{flex:1 1 auto;margin:0 14px}
.sc-foot{font-size:11.5px;color:var(--cs-muted-warm);line-height:1.45;padding-top:10px}
.flags{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin-top:24px;padding:13px 0;
  border-top:1px solid var(--cs-hair-warm);border-bottom:1px solid var(--cs-hair-warm);font-size:13.5px}
.flags .odi{margin-left:auto;font-size:10.5px;font-weight:700;letter-spacing:1.4px;color:var(--cs-sev);text-transform:uppercase}
.flags .odi a{color:inherit;text-decoration:underline}
.rsec{margin-top:32px}
.rsec-head{margin-bottom:8px}
.read h3{font-size:15.5px}
.read table th{border-bottom:1px solid var(--cs-hair-warm);color:var(--cs-muted-warm)}
.read table td{border-bottom:1px solid var(--cs-hair-warm-soft)}
.read .narr{color:var(--cs-body-warm);font-size:13.5px;line-height:1.6}
.read-text{color:var(--cs-body-warm);font-size:14.5px;line-height:1.65}
/* Rendered AI documents — knowledge memo, AI brief, benchmark assessment,
   QA audit. Model-authored markdown served ONLY through render_safe
   (escape-first); styled as an editorial read page, never a raw dump. */
.md-doc{color:var(--cs-body-warm);font-size:13.5px;line-height:1.65;max-width:74ch}
.md-doc p{margin:0 0 10px}
.md-doc h1,.md-doc h2,.md-doc h3,.md-doc h4{color:var(--cs-ink-warm);line-height:1.3;
  font-weight:700;margin:18px 0 7px}
.md-doc h1{font-size:19px}.md-doc h2{font-size:16.5px}
.md-doc h3{font-size:15px}.md-doc h4{font-size:13.5px}
.md-doc h1:first-child,.md-doc h2:first-child,.md-doc h3:first-child{margin-top:2px}
.md-doc ul,.md-doc ol{margin:4px 0 10px;padding-left:20px}
.md-doc li{margin:3px 0}
.md-doc blockquote{margin:10px 0;padding:2px 14px;border-left:3px solid var(--cs-amber)}
.md-doc hr{border:none;border-top:1px solid var(--cs-hair-warm);margin:16px 0}
.md-doc code{background:rgba(12,21,38,.06);padding:1px 5px;border-radius:4px;font-size:12.5px}
.md-doc pre{background:var(--cs-sidebar);color:#E8EDF7;padding:10px 12px;border-radius:6px;
  overflow-x:auto;font-size:12.5px;line-height:1.5}
.md-doc pre code{background:transparent;color:inherit;padding:0}
.md-doc table{border-collapse:collapse;font-size:12.5px;margin:2px 0 12px}
.md-doc th{text-align:left;color:var(--cs-muted-warm);font-weight:600;font-size:11px;
  letter-spacing:.6px;text-transform:uppercase;padding:5px 10px 5px 0;
  border-bottom:1px solid var(--cs-hair-warm)}
.md-doc td{padding:5px 10px 5px 0;border-bottom:1px solid var(--cs-hair-warm-soft);
  vertical-align:top}
.md-doc a{color:var(--cs-navy)}
.letter-text{font-family:var(--cs-font-serif);font-size:15.5px;line-height:1.66;white-space:pre-wrap;color:#26241F}
.account{border-left:3px solid var(--cs-amber);padding:2px 0 2px 18px;margin:18px 0}
.account p{font-family:var(--cs-font-serif);font-size:16.5px;line-height:1.55;font-style:italic;margin:0}
.account .att{margin-top:8px;font-size:10px;font-weight:600;letter-spacing:1.3px;color:var(--cs-muted-warm);
  text-transform:uppercase;line-height:1.6}
.account .att b{color:var(--cs-sev);font-weight:700}
.account .att a{color:var(--cs-muted-warm)}
.evidence{border-top:1px solid var(--cs-hair-warm-soft);padding:14px 0}
.evidence .evmeta{color:var(--cs-muted-warm);font-size:12.5px;margin:0 0 8px}
.commentbox{border-left:3px solid var(--cs-navy);padding:2px 0 2px 16px;margin:14px 0}
.figures{display:flex;flex-wrap:wrap;gap:6px 34px;border-top:1px solid var(--cs-hair-warm);
  border-bottom:1px solid var(--cs-hair-warm);padding:14px 0;margin:18px 0}
.fig b{font-family:var(--cs-font-serif);font-size:25px;display:block;line-height:1.1}
.fig small{font-size:10px;font-weight:600;letter-spacing:1.3px;color:var(--cs-muted-warm);text-transform:uppercase}
.k-row{display:flex;gap:12px;padding:10px 0;border-bottom:1px solid var(--cs-hair-warm);font-size:13.5px;line-height:1.55}
.k-row .dot{color:var(--cs-amber);font-weight:700}
.sidenote{border:1px solid var(--cs-hair-warm);padding:16px 18px;margin:16px 0}
.sidenote .sub{font-family:var(--cs-font-serif);font-size:16.5px;font-weight:600;margin:8px 0 6px}
.sidenote p{font-size:12.5px;line-height:1.55;margin:6px 0}
.idea-family{margin:8px 0 4px}
/* "The simple version" — the plain-language summary block atop a
   Law360 idea page (Nov 18, 2026): a warm-tinted panel with an
   amber spine, visually apart from the technical record below it.
   The list card's one-line take (.idea-plain) is the same voice,
   quieter. Full-width block, so it stays clean at mobile widths. */
.plain-summary{background:var(--cs-medium-bg);border-left:3px solid var(--cs-amber);
  border-radius:var(--cs-radius-s);padding:12px 16px 6px;margin:14px 0 16px}
.plain-summary .caps{font-size:10.5px;font-weight:700;letter-spacing:1.6px;
  color:var(--cs-tan);text-transform:uppercase;margin:0 0 6px}
.plain-summary p.body{margin:0 0 8px}
.idea-plain{color:var(--cs-body);background:var(--cs-medium-bg);
  border-left:3px solid var(--cs-amber);border-radius:0 var(--cs-radius-s) var(--cs-radius-s) 0;
  padding:6px 10px}
.sidenote .idea-sub{font-weight:600;color:var(--cs-navy);margin:0 0 2px}
.idea-pair{margin-bottom:18px}
.idea-pair>.card{margin-bottom:0}
.idea-pair.stack{grid-template-columns:1fr}
.idea-targets{margin:2px 0 6px;padding-left:18px}
.idea-targets li{font-size:12.5px;line-height:1.55;margin:5px 0}
.read .brow .bfill{background:var(--cs-ink-warm)}
.read .brow .bfill.peak{background:var(--cs-amber)}
.read .brow .bfill.ink{background:var(--cs-ink-warm)}

/* ---------- auth pages ---------- */
body.auth{background:var(--cs-sidebar);display:flex;align-items:center;justify-content:center;
  min-height:100dvh;margin:0;padding:16px}
.authbox{background:#fff;border-radius:var(--cs-radius);box-shadow:var(--cs-shadow);
  padding:32px 30px;width:100%;max-width:400px}
.authbox h1{letter-spacing:.14em;font-size:19px;margin:0 0 4px}
.authbox h1 span{color:var(--cs-amber)}
.authbox p{color:var(--cs-muted);font-size:13.5px;line-height:1.5}
.authbox label{font-size:13px;color:var(--cs-body)}
.authbox input{width:100%;padding:11px;font-size:16px;margin:5px 0 14px}
.authbox button{width:100%;padding:12px;font-size:14.5px;margin:0}
.authbox .err{color:var(--cs-high);background:var(--cs-high-bg);font-size:13.5px;
  padding:9px 12px;border-radius:var(--cs-radius-s)}
.authbox .ok{color:var(--cs-ok);background:var(--cs-ok-bg);font-size:13.5px;
  padding:9px 12px;border-radius:var(--cs-radius-s)}
.authbox .info{color:var(--cs-body);background:var(--cs-watch-bg);
  padding:9px 12px;border-radius:var(--cs-radius-s)}
.authbox .back{margin-top:14px;text-align:center}
.authbox .back a{color:var(--cs-body);font-size:13px}
.authbox .q{margin-top:16px;text-align:center;color:var(--cs-muted);font-size:13px}
.authbox .q a{color:var(--cs-body)}
@media (max-width:480px){
  .authbox{padding:28px 22px}
  .authbox h1{font-size:21px}
}

/* ---------- assistant (read-only AI chat) ---------- */
.assistant-layout{display:grid;grid-template-columns:280px 1fr;gap:18px;align-items:start}
/* min-width:0 down the whole chain: a 1fr track's automatic minimum is
   the widest item min-content, and nowrap thread titles / long tokens /
   markdown tables inflate min-content — without these, one wide
   descendant stretches the column past the viewport and overflow-x:clip
   cuts every line at the screen edge (Tommy's phone, Oct 27 2026). */
.assistant-layout>*{min-width:0}
.assistant-main,.assistant-threads{min-width:0;max-width:100%}
/* Round 4 hard guarantee: the assistant column clips its own overflow.
   Whatever a single message contains — a legacy unwrapped table, a
   bare long URL, a future markup surprise — it is clipped at the card,
   so it can never size the column (or push the composer) past the
   viewport in any engine, including WebKit's flex/grid min-content
   quirks that Chromium does not reproduce. The card's own box-shadow
   is unaffected (overflow clips descendants, not the element's own
   shadow), and internal scrollers (.tablewrap, pre) live INSIDE the
   clipped boxes and keep scrolling normally. */
.assistant-main,.assistant-threads{overflow-x:hidden;overflow-x:clip}
.assistant-threads .btn{margin:0}
.assistant-head .muted{max-width:80ch}
.thread-list{border-top:1px solid var(--cs-line-row)}
.thread-item{display:block;padding:10px 10px;border-radius:var(--cs-radius-s);text-decoration:none;
  color:var(--cs-ink);border-left:3px solid transparent;border-bottom:1px solid var(--cs-line-row)}
.thread-item:last-child{border-bottom:0}
.thread-item:hover{background:var(--cs-workspace);color:var(--cs-ink)}
.thread-item.active{background:var(--cs-watch-bg);border-left:3px solid var(--cs-amber)}
.thread-item .tt{display:block;font-weight:600;font-size:13.5px;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis}
.thread-item .tm{display:block;color:var(--cs-muted);font-size:11.5px;margin-top:2px}
.assistant-ctx{border-left:4px solid var(--cs-amber-deep);background:var(--cs-watch-bg);
  border-radius:0 var(--cs-radius-s) var(--cs-radius-s) 0;padding:9px 12px;font-size:13px;margin-bottom:14px}
.assistant-stream{display:flex;flex-direction:column;gap:12px;max-height:62vh;
  overflow-y:auto;overflow-x:hidden;padding:2px 4px 2px 0;min-width:0;max-width:100%}
/* Round 4: a message clips its own horizontal overflow, always. With
   this on .msg itself (not just the page shell), no message content
   can widen the stream, the card, or the page — the failure mode of
   rounds 1-3 — whatever markup a model answer contains. overflow:clip
   (with the hidden fallback first, the house pattern) creates no
   scroll container on .msg, so the .tablewrap scroller and pre blocks
   inside the message keep working untouched. */
.msg{max-width:88%;padding:10px 14px;border-radius:var(--cs-radius);min-width:0;
  font-size:13.5px;line-height:1.55;overflow-wrap:break-word;
  overflow-x:hidden;overflow-x:clip}
/* Long inline tokens (cluster slugs in code chips, URLs in links) may
   still break anywhere; prose relies on break-word + the min-width:0
   chain so a stray long word can never size the layout. Tables are
   exempt from anywhere-wrapping entirely (see .msg th/td below):
   anywhere collapses cell min-content to ~1ch and auto table layout
   crushes every column instead of overflowing. */
.msg a,.msg code{overflow-wrap:anywhere}
.msg p{margin:0 0 8px}
.msg p:last-child{margin-bottom:0}
.msg ul,.msg ol{margin:4px 0 8px;padding-left:18px}
.msg ul li,.msg ol li{margin:2px 0}
.msg h1,.msg h2,.msg h3,.msg h4{margin:12px 0 6px;line-height:1.3;font-weight:650}
.msg h1{font-size:16px}.msg h2{font-size:15px}.msg h3{font-size:14px}.msg h4{font-size:13.5px}
.msg blockquote{margin:8px 0;padding:2px 12px;border-left:3px solid var(--cs-line-strong);
  color:var(--cs-body)}
/* Chat tables are wrapped at render time in <div class="tablewrap">
   (assistant.render_safe) — the WRAPPER is the horizontal scroller,
   never the table element. Round 2 made .msg table itself
   display:block + overflow-x:auto; WebKit does not honor that as a
   scroll container on a <table>, so the table laid out at natural
   width and sized the whole chat column — bubbles, composer, and
   the Send button — past the viewport. A plain div scrolls in every
   engine, and the table's natural width never enters an ancestor's
   min-content. display:table is stated explicitly so the generic
   <=720px display:block table rule below can never resurrect the
   bug inside a message. */
.tablewrap{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch;
  margin:8px 0 10px}
.msg table{display:table;border-collapse:collapse;font-size:12.5px;margin:0;
  max-width:none;overflow:visible}
/* Cells wrap normally and data cells never break mid-token (dates,
   ODI numbers): columns size to their longest word, so a wide table
   overflows the message box and scrolls inside its .tablewrap
   instead of crushing. The last column (usually prose) may wrap and
   keeps a readable floor width. */
.msg th,.msg td{overflow-wrap:normal;word-break:normal;white-space:nowrap}
.msg th:last-child,.msg td:last-child{white-space:normal;min-width:140px}
.msg th{text-align:left;color:var(--cs-muted);font-weight:600;font-size:11px;
  text-transform:uppercase;letter-spacing:.04em;padding:5px 8px;
  border-bottom:1px solid var(--cs-line-strong)}
.msg td{padding:5px 8px;border-bottom:1px solid var(--cs-line-row);
  font-variant-numeric:tabular-nums;vertical-align:top}
.msg pre{background:var(--cs-sidebar);color:#E8EDF7;padding:10px 12px;max-width:100%;
  border-radius:var(--cs-radius-s);overflow-x:auto;margin:8px 0}
.msg pre code{background:transparent;color:inherit;padding:0}
.msg-user{align-self:flex-end;max-width:75%;background:var(--cs-user-bubble);
  color:var(--cs-navy);border-radius:14px;border-bottom-right-radius:4px;
  white-space:pre-wrap}
.msg-assistant{align-self:flex-start;width:100%;max-width:100%;
  background:var(--cs-workspace);
  border:1px solid var(--cs-line)}
.assistant-empty{color:var(--cs-body);font-size:13.5px}
.assistant-empty ul{list-style:none;padding:0;margin:8px 0}
.assistant-empty li{margin:6px 0}
.exq{background:transparent;color:var(--cs-navy);border:1px solid var(--cs-line-strong);
  font-weight:500;text-align:left;padding:8px 12px}
.exq:hover{background:var(--cs-workspace);color:var(--cs-navy)}
.assistant-pending{border-left:4px solid var(--cs-amber-deep);padding:8px 12px;
  margin-top:12px;color:var(--cs-muted);font-size:13px}
/* Retry under a failed assistant bubble: resubmits the user's
   previous message (the JS resolves it from the preceding .msg-user). */
.retry-btn{display:block;margin-top:8px;background:transparent;
  color:var(--cs-navy);border:1px solid var(--cs-line-strong);
  border-radius:999px;padding:4px 14px;font-size:12.5px;font-weight:600;
  cursor:pointer}
.retry-btn:hover{background:var(--cs-user-bubble)}
.assistant-form{display:flex;gap:10px;margin-top:14px;align-items:flex-end;
  width:100%;min-width:0;max-width:100%}
/* The textarea is a true flex item that may shrink to zero: with
   min-width:0 its flex floor is 0, not the generic textarea{width:
   260px} rule, and grow:1 gives it every pixel beside the fixed Send
   button. Send's position therefore depends only on this form's own
   box — capped at the card's width above — and can never be pushed
   off-screen by wide content higher in the column. */
.assistant-form textarea{flex:1 1 auto;min-width:0;height:auto;min-height:64px;
  resize:vertical;margin:0}
.assistant-form button{margin:0;flex:0 0 auto}
/* Ask Scout panel on the Law360 idea page: the idea-scoped
   conversation lives in the idea's own card, reusing the chat
   stream/bubble/form styles above; only the stream height and the
   starter chips are panel-specific. The stream is a true column
   (never a row) at every width, so the panel stacks full-width on
   a phone. */
.idea-scout-panel .idea-scout-stream{max-height:46vh}
.idea-scout-chips{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 2px}
.idea-scout-chips .starter-q{border-radius:999px}
/* Ask Scout attachments: staged chips above the composer, the
   Attach button in the composer row, the hint/error lines, the
   drag-over highlight on the chat card, and the thumbnails /
   document chips inside user bubbles. Everything wraps and shrinks
   (min-width:0) so a long filename can never widen the column. */
.attach-stage{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px;min-width:0}
.stage-chip{display:inline-flex;align-items:center;gap:7px;max-width:100%;
  min-width:0;background:var(--cs-workspace);
  border:1px solid var(--cs-line-strong);border-radius:999px;
  padding:4px 6px 4px 12px;font-size:12.5px;color:var(--cs-navy)}
.stage-name{font-weight:600;overflow-wrap:anywhere}
.stage-size{color:var(--cs-muted);white-space:nowrap}
.chip-x{background:transparent;border:0;color:var(--cs-muted);font-size:12px;
  font-weight:700;cursor:pointer;padding:2px 6px;margin:0;line-height:1}
.chip-x:hover{color:var(--cs-sev)}
.attach-error{color:var(--cs-sev);font-size:12.5px;margin:8px 0 0}
.assistant-form .attach-btn{background:transparent;color:var(--cs-navy);
  border:1px solid var(--cs-line-strong);border-radius:999px;
  padding:8px 14px;font-weight:600;cursor:pointer;flex:0 0 auto}
.assistant-form .attach-btn:hover{background:var(--cs-user-bubble)}
.attach-hint{font-size:12px;margin-top:8px}
.assistant-main.drop-on{outline:2px dashed var(--cs-amber);outline-offset:-6px}
.msg-atts{margin-top:8px;display:flex;flex-direction:column;gap:6px;
  align-items:flex-start;min-width:0}
.att-img{max-width:100%;max-height:220px;border-radius:8px;display:block}
.att-file{display:inline-flex;align-items:center;gap:6px;max-width:100%;
  background:rgba(255,255,255,.6);border:1px solid var(--cs-line-strong);
  border-radius:8px;padding:5px 10px;font-size:12.5px;font-weight:600;
  color:var(--cs-navy);text-decoration:none;overflow-wrap:anywhere}
.att-kind{background:var(--cs-navy);color:#fff;border-radius:4px;
  padding:1px 5px;font-size:10px;letter-spacing:.04em}
@media(max-width:900px){
  .assistant-layout{grid-template-columns:1fr}
  .msg{max-width:96%}
  .msg-assistant{max-width:100%}
  /* iOS Safari auto-zooms the page when a focused field renders under
     16px; the composer inherits 13.5px from the generic form rule, so
     tapping it zoomed the whole page and slid Send off the visual
     right edge (Tommy's screenshots, Oct 27 2026). 16px in the phone
     layout kills the focus zoom; desktop keeps the compact size. */
  .assistant-form textarea{font-size:16px}
}

/* ---------- workspace mobile sweep, batch 1 (Nov 19, 2026) ----------
   Dashboard / Review Queue / Ask Scout / Document Loads deltas
   (mobile-sweep DELTAS.md: DASH-1..4, QUEUE-1..4, SCOUT-1/3,
   LOADS-1..4, GLOB-5), built on the /law360 patterns: .page-jump
   tabs, .explainer-full/.explainer-m twins, .how-works disclosures.
   Base rules here are only the desktop-inert scaffolding (phone
   twins hidden, toggles hidden); the phone forms live in the
   <=860px / <=720px blocks below. */
/* DASH-3: the dashboard's tab bar sits under its pagehead, not at
   the wrap's top edge, so it does not take .page-jump's -26px
   top bleed; its section anchors clear the sticky bar like
   /law360's (110px under the fixed header in the <=860px block). */
.page-jump.dash-jump{margin-top:0}
#dash-kpis,#dash-monitors,#dash-breach,#dash-law360,#dash-queue,#dash-severe,#dash-more{scroll-margin-top:68px}
/* Cluster-page section anchors (Nov 20, 2026): base layer only —
   the measured-offset rule after the <=860px block supersedes
   these for every cluster anchor except #vehicle-context, which
   keeps the shared fixed margins (it is also the case pages'
   Context anchor). */
#pattern,#work,#vehicle-context,#litigation,#history,#regulatory,#knowledge,#engineering,#stories,#ai-analysis,#model-complaint,#draft-qa,#accounts{scroll-margin-top:68px}
/* DASH-2 / GLOB-1: stacked preview rows are the phone twin of the
   dashboard's preview tables — hidden on desktop, where the
   tables remain tables. */
.stack-rows{display:none}
.srow{padding:8px 0;border-bottom:1px solid var(--cs-line-row)}
.srow:last-child{border-bottom:0}
.srow-lead{display:flex;align-items:center;gap:8px;margin:0 0 2px}
.srow-title{margin:0 0 2px;font-size:13.5px}
.srow-meta{margin:0}
/* SCOUT-1 / LOADS-2: disclosure toggles exist only on phones
   (the <=720px block turns them on and collapses what they hold);
   on desktop the thread list and facet fieldsets render as today. */
.scout-threads-toggle{display:none}
.facet-toggle{display:none}
/* LOADS-4: once files are staged the drop zone compacts (phone
   and desktop alike — the class is JS-driven at every width). */
.dropzone.has-files{padding:10px 12px}
.dropzone.has-files h3,.dropzone.has-files #dropHint{display:none}

/* ---------- responsive ---------- */
@media(max-width:1080px){
  .scorecard{width:330px}
  .read{padding:30px 28px 34px}
}
@media(max-width:900px){
  .grid{grid-template-columns:1fr}
}
@media(max-width:860px){
  .shell{display:block}
  /* padding-top clears the fixed .side-top bar (54px) so the search
     keeps its original document position (50 + its 10px margin =
     the old 12 + 38 + 10); the bar overlays navy on navy at rest. */
  .sidebar{position:static;width:auto;height:auto;overflow:visible;padding:50px 14px 10px}
  /* Every sidebar child may shrink below its content size: the sidebar
     is a column flex box, and without min-width:0 a child (historically
     the nowrap nav strip, removed Oct 29, 2026) can hold the whole
     shell open wider than the phone viewport in engines that size
     column-flex items by min-content — the page then pans sideways
     ("wobble") even though the child may scroll internally. */
  .sidebar>*{min-width:0}
  /* Mobile nav (Oct 29, 2026): the horizontally-scrolling nav strip
     is gone. The header is a compact row (menu toggle + wordmark)
     with the search box permanently visible full-width under it.
     The full grouped nav AND the account block live in the slide-
     down .navpanel below; nav items keep their desktop stacked
     styling (group labels, amber left-bar active state).
     The panel's collapsed state is gated on html.js — set by the
     head script in base.html — so with scripts disabled the panel
     renders expanded and the nav stays fully usable. */
  /* Sticky mobile header (Nov 10, 2026, Tommy's Satchel & Page
     reference): ONLY this first row (menu toggle + wordmark) stays
     pinned while the page scrolls; the search row below it scrolls
     away normally. position:fixed, not sticky: sticky is confined
     to the parent box, and .sidebar is only as tall as the header
     itself on phones, so a sticky row could never travel the page —
     the desktop rail is already position:fixed for the same reason.
     The fixed row is viewport-anchored, so the open .navpanel can
     anchor directly under it at any scroll position (below).
     z-index 60: above page content and the sidebar's own 20, below
     the .infopop-card's 90 so score popovers still layer on top. */
  .side-top{display:flex;align-items:center;gap:10px;
    position:fixed;top:0;left:0;right:0;height:54px;padding:0 14px;
    background:var(--cs-sidebar);z-index:60;
    box-shadow:0 2px 10px rgba(12,21,38,.25)}
  .side-search{margin:10px 0 2px}
  /* Fragment jumps (the /law360 idea cards, #idea-<id>) must not
     land hidden under the fixed bar + the sticky section tab bar:
     54px header + ~48px tab bar + 8px breathing room (L360-6). */
  [id^="idea-"]{scroll-margin-top:110px}
  /* Same for the /law360 section anchors the tab bar targets. */
  #case-ideas,#precedent-lessons,#cases,#chart,#docket,#complaints,#precedent{scroll-margin-top:110px}
  #srch-report-text,#srch-signals,#srch-clusters,#srch-cases,#srch-cpsc,#srch-fda,#srch-ideas,#srch-breach,#cs-signals,#cs-groupings,#cs-narratives,#idea-simple,#idea-filings,#idea-work,#idea-litigation{scroll-margin-top:110px}
  /* Same for the incident-page section anchors (GLOB-4). */
  #breach-actions,#breach-score,#breach-facts,#breach-litigation,#breach-coverage,#breach-notice{scroll-margin-top:110px}
  /* The /law360 sticky tab bar pins under the fixed header row
     (its bleed margins track .wrap's phone padding). */
  .page-jump{top:54px;margin:-16px -12px 14px;padding:8px 12px}
  /* GLOB-5 (was L360-8, /law360 only): page-end clearance is now
     app-wide — .wrap's bottom padding in this block (80px, see
     below) gives every page the same total clearance /law360
     had from 44px + the retired 36px .l360-endpad div, so the
     floating back pill (56px + clearance) never covers the last
     card on any page. */
  /* DASH-3: dashboard section anchors land clear of the fixed
     header + sticky tab bar, same 110px as /law360's. */
  #dash-kpis,#dash-monitors,#dash-breach,#dash-law360,#dash-queue,#dash-severe,#dash-more{scroll-margin-top:110px}
  /* Same for the cluster-page section anchors (base layer — the
     measured-offset rule after this block supersedes it for every
     cluster anchor except #vehicle-context). */
  #pattern,#work,#vehicle-context,#litigation,#history,#regulatory,#knowledge,#engineering,#stories,#ai-analysis,#model-complaint,#draft-qa,#accounts{scroll-margin-top:110px}
  .nav-toggle{display:flex;align-items:center;justify-content:center;flex:none;
    width:38px;height:38px;padding:0;cursor:pointer;border-radius:var(--cs-radius-s);
    background:var(--cs-sidebar-2);border:1px solid #26334F;color:#fff;
    font-size:19px;line-height:1;font-family:inherit}
  .sidebar.nav-open .nav-toggle{border-color:var(--cs-amber);color:var(--cs-amber)}
  /* Header-row right-end pair (Nov 10 + Nov 13, 2026): the reload
     button and the search shortcut — two 44px tap targets styled
     alike (navy field, hairline border, amber glyphs).
     margin-left:auto lives on the RELOAD button (the left member
     of the pair) so the auto margin pushes BOTH buttons to the
     row's right end as one group; an auto margin on the search
     button instead would strand the reload button next to the
     wordmark. */
  /* Reload (Nov 13, 2026): the installed PWA has no browser
     chrome and no reliable pull-to-refresh, so this is the only
     in-place page reload a phone user has. Its handler lives in
     base.html (cache-busting location.replace()). */
  .nav-reload{display:flex;align-items:center;justify-content:center;flex:none;
    margin-left:auto;width:44px;height:44px;padding:0;cursor:pointer;
    border-radius:var(--cs-radius-s);
    background:var(--cs-sidebar-2);border:1px solid #26334F;color:var(--cs-amber)}
  /* Search shortcut: a plain link to /search — the search INPUT
     itself is not stuck; the full-width form below scrolls away
     as before. */
  .nav-search{display:flex;align-items:center;justify-content:center;flex:none;
    width:44px;height:44px;border-radius:var(--cs-radius-s);
    background:var(--cs-sidebar-2);border:1px solid #26334F;color:var(--cs-amber);
    text-decoration:none}
  .sidebar .brand{padding:0}
  html.js .navpanel{display:none}
  /* The open panel anchors under the fixed header row (top:54px),
     viewport-fixed so it opens in place at ANY scroll position;
     it paints its own navy (in flow it borrowed the sidebar's). */
  html.js .sidebar.nav-open .navpanel{display:block;
    position:fixed;top:54px;left:0;right:0;z-index:59;margin:0;
    max-height:calc(100dvh - 54px);background:var(--cs-sidebar);
    box-shadow:0 12px 24px rgba(12,21,38,.35)}
  .navpanel{max-height:78vh;max-height:78dvh;overflow-y:auto;-webkit-overflow-scrolling:touch;
    margin:6px -14px -10px;padding:2px 14px 12px;border-top:1px solid #26334F}
  .sidebar .spacer{display:none}
  .side-foot{margin:8px 0 0;padding:10px 2px 2px}
  .main{margin-left:0}
  /* GLOB-5: 80px bottom padding = the old /law360 total (44px
     .wrap padding + 36px .l360-endpad), now on EVERY page. */
  .wrap{padding:16px 12px 80px}
  .read{padding:22px 16px 26px}
  .read-title{font-size:29px}
  .scorecard{width:100%}
  .flags .odi{margin-left:0}
}
/* Cluster-page jump offset (Nov 20, 2026): the cluster tab bar
   carries thirteen tabs and wraps past one row (two rows on
   desktop; more under the 54px pinned header on phones), so the
   fixed 68px / 110px margins above left jumped-to section headers
   hidden under the bar. The cluster page's script measures the bar
   as rendered (sticky top + height + 12px) into --cs-jump-offset
   and these anchors follow it. The variable is set only by
   cluster.html, so the other .page-jump pages (case, Law360,
   dashboard, search, idea, breach) keep their fixed margins; the
   110px fallback is the two-row desktop bar (99px) + breathing
   room for when scripts are off. This rule sits after the <=860px
   block so it wins over that block's cluster rule at equal
   specificity. #vehicle-context itself stays on the shared fixed
   margins — it is also the case pages' Context anchor. */
#pattern,#work,#litigation,#history,#regulatory,#knowledge,#engineering,#stories,#ai-analysis,#model-complaint,#draft-qa,#accounts,#vctx-recalls,#vctx-investigations,#vctx-tsbs{scroll-margin-top:var(--cs-jump-offset,110px)}
@media(max-width:720px){
  .card{padding:14px 14px}
  .kpi{flex:1 1 140px;min-width:0}
  .kpi b{font-size:21px;overflow-wrap:break-word}
  /* /breaches stat strip: one snap-scrolling row on phones, so all
     six cards stay reachable without pushing the fresh section
     down the page (delta #11, Nov 3, 2026). */
  .kpis.snaprow{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;padding-bottom:6px}
  .kpis.snaprow .kpi{flex:0 0 45%;scroll-snap-align:start}
  /* /nhtsa New & rising strip: same snap-row treatment on phones —
     the rising links swipe horizontally instead of stacking into
     a tall block (the mobile signals page stays compact by
     design). Only the link cards are snap children; the
     "New & rising" caption (.nr-lead) sits above the row — as a
     76% snap child it rendered as a big empty tile and pushed
     the first card off the right edge (fixed Nov 20, 2026). */
  .newrising.snaprow{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;padding-bottom:6px}
  .newrising.snaprow .nr-item{flex:0 0 76%;scroll-snap-align:start}
  /* Top recent picks: same snap-row treatment on phones — four
     cards swipe horizontally instead of stacking down the page. */
  .picks-strip{display:flex;flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;padding-bottom:6px}
  .pick-card{flex:0 0 78%;scroll-snap-align:start}
  /* Phone ⓘ twin (/nhtsa, beside the card title): the visual box
     stays 26px, but an invisible ::after expansion gives it the
     same 44px touch target as the back pill (26 + 9px each side)
     — no layout or visual change (delta #12, Nov 3, 2026). */
  .infopop-mobile{position:relative}
  .infopop-mobile::after{content:"";position:absolute;inset:-9px;border-radius:50%}
  /* Recent-severe list stacks on phones: the 4-column table's minimum
     content width (~460px: narr min-width 150 + vehicle/filed/flags)
     exceeds a ~338px card interior, and the nested .tblwrap +
     display:block table scrollers do not reliably contain it on iOS
     Safari — the narrative ran under the card's right edge and was cut
     by the page's overflow-x:clip. Stacked rows need no sideways
     scroll at all. */
  table.sevstack{display:block;overflow:visible;max-width:none}
  table.sevstack tr{display:block;padding:7px 0;border-bottom:1px solid var(--cs-line-row)}
  table.sevstack tr:first-child{display:none}
  table.sevstack td{display:block;padding:1px 0;border:0;min-width:0}
  table.sevstack td.narr{min-width:0}
  table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
  /* NHTSA signal table stacks on phones — same failure class as
     sevstack above: the six-column table's minimum content width
     (microgrid floor + score column + counts) exceeds the card
     interior, nested scrollers do not contain it on iOS Safari, and
     the score-components column ran off the right edge clipped.
     Stacked rows need no sideways scroll at all. */
  table.sigtable{display:block;overflow:visible;max-width:none}
  table.sigtable tr{display:block;padding:7px 0;border-bottom:1px solid var(--cs-line-row)}
  table.sigtable tr:first-child{display:none}
  table.sigtable td{display:block;padding:1px 0;border:0;min-width:0}
  /* The 8-component micro-bar breakdown leaves the phone row
     entirely (the score + tier + reports/severe cells stay; the
     breakdown lives on the pattern's own page). */
  table.sigtable td.compcol{display:none}
  /* Breach tables stack on phones (Nov 3, 2026) — same failure
     class as sigtable above: the seven-column table's minimum
     content width far exceeds the card interior, the nested
     .tblwrap scroller does not contain it on iOS Safari, and the
     company cell's full meta block wrapped into a column so tall
     that a single incident row filled more than a phone screen
     while the score-components column bled off the right edge
     (Tommy's screenshots, Nov 3, 2026). Stacked rows need no
     sideways scroll at all. */
  table.brtable{display:block;overflow:visible;max-width:none}
  table.brtable tr{display:block;padding:7px 0;border-bottom:1px solid var(--cs-line-row)}
  table.brtable tr:first-child{display:none}
  table.brtable td{display:block;padding:1px 0;border:0;min-width:0}
  /* Score components never render on phones — the methodology
     lives behind the ⓘ (title twins, since stacking hides the
     header row) and the breakdown on the detail page. */
  table.brtable td.compcol,table.brtable th.compcol{display:none}
  /* The company cell's long tail — incident date window,
     first-reported line, discovered date, source-list enumeration,
     filing count — leaves the phone row; one meta line stays
     (incident type + the bold reported date). Everything removed
     here stays on desktop and on the detail page. */
  .brtable .mhide{display:none}
  /* Generic stacked table (GLOB-1, mobile sweep Wave 1): the
     .sigtable/.brtable phone behavior under one reusable class
     for every plain table that still scrolls sideways on phones.
     Later waves add class="stacktable" to those tables; no page
     applies it yet, and there is deliberately NO base/desktop
     rule — at >=721px a .stacktable is an ordinary table. */
  table.stacktable{display:block;overflow:visible;max-width:none}
  table.stacktable tr{display:block;padding:7px 0;border-bottom:1px solid var(--cs-line-row)}
  table.stacktable tr:first-child{display:none}
  table.stacktable td{display:block;padding:1px 0;border:0;min-width:0}
  table.stacktable td.compcol,table.stacktable th.compcol{display:none}
  .stacktable .mhide{display:none}
  /* 44px tap targets (GLOB-6): a flex action row whose link /
     button children meet the 44px floor on phones, centered via
     inline-flex. Later waves wrap text-link action groups in
     .actrow; desktop is unchanged (no base rule). */
  .actrow{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
  .actrow a,.actrow button{min-height:44px;display:inline-flex;
    align-items:center;justify-content:center}
  /* Grouped actions on phones (GLOB-8): the base .actgroup rules
     above apply at all widths; here the group's primary action
     also meets the 44px tap floor. */
  .actgroup{margin:0 0 12px}
  .actgroup .primary{min-height:44px;display:inline-flex;
    align-items:center;justify-content:center}
  th,td{padding:6px}
  td.narr{min-width:150px}
  .narr{overflow-wrap:break-word}
  textarea{width:150px}
  /* Ask Scout composer stacks on phones: box full width, Send below
     it right-aligned — no cramped side-by-side. (The .assistant-form
     textarea rule outranks the generic textarea width above.) */
  .assistant-form{flex-wrap:wrap}
  .assistant-form textarea{flex:1 1 100%}
  .assistant-form button{margin-left:auto}
  /* Chat tables need no phone-width rule of their own: the render-
     time .tablewrap div is the scroller at every width (see the base
     .tablewrap rule). There is deliberately NO .msg table rule in
     this block — display:block on a <table> here is what let WebKit
     lay chat tables out at natural width and wobble the page. */
  /* The fixed back-to-top button overlaps the stacked composer no
     matter how far it is lifted (the textarea is user-resizable), so
     on the Ask Scout page at phone widths it is suppressed entirely:
     Send and the textarea stay fully unobstructed. */
  body:has(.assistant-layout) #toTop{display:none}
  .bar{width:70px}
  .microgrid{min-width:0;grid-template-columns:1fr 1fr}
  .account p{font-size:15px}
  /* ---- /law360 phone density (Nov 18, 2026; L360-1..5, 7) ---- */
  /* L360-1: explainers swap to lede + disclosure. */
  .explainer-full{display:none}
  .explainer-m{display:block}
  /* L360-2 / L360-7: filter bars compact into a two-across grid
     of labeled fields (tiny caps label inside the field box,
     borderless control), then one full-width Apply row whose
     controls are all >=44px. */
  .fbar{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0 4px}
  .ffield{border:1px solid var(--cs-line-strong);border-radius:var(--cs-radius-s);
    background:#fff;padding:5px 10px 6px;min-height:44px;min-width:0}
  .ffield label{font-size:9.5px;font-weight:700;letter-spacing:1.2px;
    text-transform:uppercase;color:var(--cs-muted);margin:0}
  .ffield select,.ffield input[type=text]{border:0;background:transparent;
    width:100%;max-width:100%;padding:1px 0 0;font-size:14.5px;color:var(--cs-ink)}
  .ffield select:focus,.ffield input[type=text]:focus{box-shadow:none}
  .fbar .frow{grid-column:1/-1;display:flex;gap:8px}
  .fbar .frow button[type=submit]{flex:1;min-height:44px}
  .fbar .frow .interest-chip{flex:1;display:flex;align-items:center;
    justify-content:center;min-height:44px;padding:2px 8px}
  .fbar .frow .fclear{align-self:center;padding:12px 6px}
  /* L360-3: idea cards fold their record lines into the Details
     disclosure; the visible order becomes title / court / chips /
     plain take / From (flex order), and Interested + Dismiss
     become a full-width 44px action row. */
  .idea-card{display:flex;flex-direction:column}
  .idea-card .idea-title{order:1}
  .idea-card .idea-sub{order:2}
  .idea-card .idea-chips{order:3}
  .idea-card .idea-plain{order:4}
  .idea-card .idea-from{order:5}
  .idea-card .idea-record,.idea-card .idea-details{order:6}
  .idea-card .idea-actions{order:7}
  .idea-record{display:none}
  .idea-details{display:block;margin-top:10px;border-top:1px solid var(--cs-line-row)}
  .idea-details>summary{list-style:none;display:flex;align-items:center;gap:8px;
    min-height:44px;cursor:pointer;font-weight:700;color:var(--cs-navy);font-size:13.5px}
  .idea-details>summary::-webkit-details-marker{display:none}
  .idea-details>summary::after{content:"▸";flex:none;color:var(--cs-amber-deep);font-size:13px}
  .idea-details[open]>summary::after{content:"▾"}
  .idea-details>summary:focus-visible{outline:2px solid var(--cs-amber-deep);outline-offset:2px}
  .idea-actions{display:flex;gap:8px;margin-top:12px}
  .idea-actions form{flex:1}
  .idea-actions .interest-btn{width:100%;min-height:44px;border-radius:var(--cs-radius-s);font-size:13px}
  .idea-actions .btn-ghost{width:100%;min-height:44px}
  /* L360-4: lessons swap to the compact form — outcome + amount
     lead, holding clamped behind Read more, quote folded, filing
     actions as a 44px button row. */
  .lesson-full{display:none}
  .lesson-compact{display:block}
  .lesson-lead{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
  .lesson-amt{margin-left:auto;font-size:15px}
  .lesson-compact .lesson-name{font-size:14.5px;line-height:1.4}
  .clamp-fold{font-size:12.5px;line-height:1.55;margin:6px 0}
  .clamp-fold>summary{list-style:none;cursor:pointer;display:block}
  .clamp-fold>summary::-webkit-details-marker{display:none}
  .clamp-fold .clamp3{display:-webkit-box;-webkit-line-clamp:3;
    -webkit-box-orient:vertical;overflow:hidden}
  .clamp-fold .clamp-toggle{display:block;font-weight:700;color:var(--cs-navy);
    margin-top:2px;font-size:12.5px}
  .clamp-fold .less{display:none}
  .clamp-fold[open ] .less{display:inline}
  .clamp-fold[open ] .more{display:none}
  .clamp-fold[open ] .clamp3{display:none}
  .clamp-fold>summary:focus-visible{outline:2px solid var(--cs-amber-deep);outline-offset:2px}
  .quote-fold{margin-top:4px}
  .quote-fold>summary{list-style:none;display:flex;align-items:center;gap:8px;
    min-height:44px;cursor:pointer;font-weight:700;color:var(--cs-navy);font-size:13px}
  .quote-fold>summary::-webkit-details-marker{display:none}
  .quote-fold>summary::after{content:"▸";flex:none;color:var(--cs-amber-deep);font-size:13px}
  .quote-fold[open]>summary::after{content:"▾"}
  .quote-fold>summary:focus-visible{outline:2px solid var(--cs-amber-deep);outline-offset:2px}
  .quote-fold .account{margin:6px 0 4px}
  .doc-actions{display:flex;gap:8px;align-items:stretch;margin:10px 0 2px}
  .doc-actions .lact{flex:1;display:flex;align-items:center;justify-content:center;
    border:1px solid var(--cs-line-strong);border-radius:var(--cs-radius-s);
    min-height:44px;padding:6px 8px;font-weight:600;color:var(--cs-navy);
    text-decoration:none;background:#fff;text-align:center}
  .doc-actions .load-lib-btn{flex:1;margin-left:0;min-height:44px}
  /* L360-5: cases render as stacked cards; the table retires at
     phone widths (table.casetable outranks the generic phone
     table rule above). */
  table.casetable{display:none}
  .case-cards{display:block}
  .case-card .case-name{font-size:14.5px;line-height:1.4}
  /* ---- workspace mobile sweep, batch 1 (Nov 19, 2026) ---- */
  /* DASH-1: KPI cards become a uniform 2-col grid of equal-height
     rows (min 84px — a row grows rather than hide a caption);
     the Data Refresh card leaves the grid as a slim full-width
     row (label + button + its caption line, same actions). */
  .kpis.dash-kpis{display:grid;grid-template-columns:1fr 1fr;
    grid-auto-rows:1fr;gap:10px}
  .dash-kpis .kpi{min-height:84px}
  .dash-kpis .kpi-refresh{grid-column:1/-1;display:flex;align-items:center;
    gap:10px;min-height:48px;padding:6px 12px}
  .dash-kpis .kpi-refresh .cap{flex:1;min-height:0;margin:0}
  .dash-kpis .kpi-refresh form{margin-left:auto;flex:none}
  .dash-kpis .kpi-refresh form button{margin:0;min-height:40px}
  /* DASH-4: monitor cards go single-column; the case caption
     (the uniform citation in .cc-note) takes a full-width line
     under the name + total, and the tag may wrap instead of
     ellipsizing. Desktop card grid is unchanged. */
  .casecards{grid-template-columns:1fr}
  .casecard{display:flex;flex-direction:column}
  .casecard .cc-sub{white-space:normal;overflow:visible}
  .casecard .cc-caption{order:6;width:100%}
  /* DASH-2: preview tables retire on phones; their stacked twins
     (.stack-rows, hidden on desktop) render instead. */
  table.dash-queue-table,table.dash-cpsc-table,table.dash-fda-table{display:none}
  .stack-rows{display:block}
  /* QUEUE-1 (incl. QUEUE-2): the queue table stacks — each row a
     card in the sigtable/brtable manner: score + tier lead,
     pattern + basis line, all eight components (the .microgrid
     is already two-column here), the example, and the Your-call
     form at the foot with a 44px select + Save row (notes keep
     their own full-width line under it). One DOM: the filter /
     sort script keeps working on the same .qrow elements.
     Desktop keeps the table >=721px. */
  table.qtable{display:block;overflow:visible;max-width:none}
  table.qtable tr{display:block;padding:10px 0;border-bottom:1px solid var(--cs-line-row)}
  table.qtable tr:first-child{display:none}
  table.qtable td{display:block;padding:2px 0;border:0;min-width:0}
  .qtable .qcall form{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch}
  .qtable .qcall select{flex:1 1 55%;min-height:44px}
  .qtable .qcall button{flex:0 0 auto;min-height:44px;margin:0;order:2}
  .qtable .qcall textarea{flex:1 1 100%;order:3;width:100%}
  /* SCOUT-1: the Conversations card collapses behind a 48px
     disclosure toggle (current thread + count in its label);
     expanding shows the New button + thread list as today. */
  .assistant-threads .section-head{display:none}
  .scout-threads-toggle{display:flex;align-items:center;gap:8px;width:100%;
    min-height:48px;margin:0;background:transparent;color:var(--cs-navy);
    border:1px solid var(--cs-line-strong);border-radius:var(--cs-radius-s);
    font-weight:700;text-align:left}
  .scout-threads-toggle::after{content:"▸";margin-left:auto;flex:none;
    color:var(--cs-amber-deep);font-size:13px}
  .assistant-threads.threads-open .scout-threads-toggle::after{content:"▾"}
  .assistant-threads:not(.threads-open)>a.btn,
  .assistant-threads:not(.threads-open) .mt12{display:none}
  /* SCOUT-3: starter questions become a horizontal snap row
     (~48px) instead of five stacked full-width pills. */
  .assistant-empty ul.starter-qs{display:flex;flex-wrap:nowrap;overflow-x:auto;
    scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
    padding-bottom:6px;gap:8px}
  .starter-qs li{flex:0 0 78%;scroll-snap-align:start;margin:0}
  .starter-qs .exq{width:100%;height:100%;min-height:48px;margin:0}
  /* LOADS-2: facet fieldsets become 48px disclosure rows showing
     value counts (+ selected counts in the toggle label, rendered
     server-side); the checkboxes render only while the fieldset
     is open. Apply stays visible under the fieldsets at all
     times (it is outside them). Desktop fieldsets stay open. */
  .facet-toggle{display:flex;align-items:center;gap:8px;width:100%;
    min-height:48px;margin:0;background:transparent;color:var(--cs-navy);
    border:0;font-weight:700;text-align:left;padding:6px 2px}
  .facet-toggle::after{content:"▸";margin-left:auto;flex:none;
    color:var(--cs-amber-deep);font-size:13px}
  .facet-group.facet-open .facet-toggle::after{content:"▾"}
  .facet-group legend{display:none}
  .facet-group .chk{display:none}
  .facet-group.facet-open .chk{display:flex}
  .facet-group>span.facet-empty{display:none}
  .facet-group.facet-open>span.facet-empty{display:block}
  /* LOADS-3: the loads table stacks — status chip leads, then
     filename, the date · jurisdiction · counsel meta cells, the
     claims (issues) cell, type hint + coding note, and a
     Download/Delete action row with >=44px targets. One DOM,
     reordered with flex order; desktop keeps the table. */
  table.loadtable{display:block;overflow:visible;max-width:none}
  table.loadtable tr{display:flex;flex-direction:column;padding:10px 0;
    border-bottom:1px solid var(--cs-line-row)}
  table.loadtable tr:first-child{display:none}
  table.loadtable td{display:block;padding:2px 0;border:0;min-width:0}
  table.loadtable td.ld-status{order:1}
  table.loadtable td.ld-doc{order:2}
  table.loadtable td.ld-forum{order:3}
  table.loadtable td.ld-counsel{order:4}
  table.loadtable td.ld-issues{order:5}
  table.loadtable td.ld-hint{order:6}
  table.loadtable td.ld-note{order:7}
  table.loadtable td.ld-actions{order:8;display:flex;gap:8px;align-items:center}
  .ld-actions .btn,.ld-actions button{min-height:44px;display:inline-flex;
    align-items:center;margin:0}
  .ld-actions form{margin:0}
}

/* Corpus keyword search (/corpus-search + the /search report-text
   card). Matched terms are highlighted with the amber token; the
   full narrative renders verbatim (pre-wrap keeps the owners' own
   line breaks). */
.corpus-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 14px}
.corpus-tabs a{text-decoration:none}
.corpus-hit{padding:12px 0;border-top:1px solid var(--cs-line,#e5e0d5)}
.corpus-hit:first-of-type{border-top:none}
.corpus-hit-head{margin:0 0 4px}
.corpus-snippet{margin:0 0 6px}
.corpus-snippet mark{background:rgba(252,163,17,.45);color:inherit;
  padding:0 1px;border-radius:2px}
.corpus-hit details summary{cursor:pointer;color:var(--cs-amber-deep,#C9A227);
  font-size:.9em}
.corpus-full{white-space:pre-wrap;margin:8px 0 2px}
.corpus-pager{margin-top:14px}
.claims-fields{border:1px solid var(--cs-line,#d8dde6);border-radius:8px;
  padding:10px 14px 12px;margin:14px 0}
.claims-fields legend{font-weight:600;padding:0 6px}
.claim-check{display:block;margin:5px 0;cursor:pointer}
/* claims-collapse-2026-11-10: the causes-of-action group rides in a
   native <details>, closed by default, so the draft forms no longer
   open with 13-15 full-width checkbox rows to scroll past */
.claims-details{border:1px solid var(--cs-line,#d8dde6);border-radius:8px;
  padding:2px 14px 4px;margin:14px 0}
.claims-details>summary{list-style:none;display:flex;align-items:center;
  gap:8px;min-height:44px;cursor:pointer;font-weight:600}
.claims-details>summary::-webkit-details-marker{display:none}
.claims-details>summary::before{content:"▸";flex:none;
  color:var(--cs-amber-deep,#C9A227);font-size:13px}
.claims-details[open]>summary::before{content:"▾"}
.claims-details>summary:hover{background:rgba(252,163,17,.12)}
.claims-details>summary:focus-visible{outline:2px solid
  var(--cs-amber-deep,#C9A227);outline-offset:2px}
.claims-details .claims-state{font-weight:400}
.claims-details .claims-fields{border:0;border-radius:0;
  padding:0 0 8px;margin:0}

/* lane-state-explicit-2026-11-09: unchecked is a state, never a negative */

/* ==== Mobile sweep Wave 2C — CPSC + FDA + Supplement Signals ====
   (CPSC-1/2, FDA-1/2, SUPP-1/2, GLOB-8 pair exports, GLOB-2 supp
   filters; on the Wave 1 foundation: .stacktable, .kpis.snaprow,
   .fbar, .actgroup/.actrow.) ALL Wave 2C CSS lives in this one
   section, with its own media queries; no earlier rule is edited.
   Mobile-only twin markup (.w2c-m block / .w2c-mi inline /
   .w2c-mlead flex lead line, and the pair page's .records-mobile
   twin) never renders on desktop; the desktop grouped records
   stream (.records-desktop) and the group headers apply at all
   widths, per SUPP-2. */
.w2c-m{display:none}
.w2c-mi{display:none}
.w2c-mlead{display:none}
.records-mobile{display:none}
.rec-group-head{font-size:12px;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;color:var(--cs-muted);margin:20px 0 2px}
@media(max-width:720px){
  .w2c-m{display:block}
  .w2c-mi{display:inline}
  .w2c-mlead{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
  /* CPSC-1: the ranked row's mobile meta line (hazard · reports ·
     injuries), a twin inside the signal cell so the stacked row
     reads score lead -> title -> meta -> the rest of the cells. */
  .w2c-meta{font-weight:600;color:var(--cs-ink);margin-top:2px}
  /* FDA-1: the angle is the stacked row's body text — full ink on
     phones, not the desktop cell's muted aside. */
  .stacktable .fda-angle{color:var(--cs-ink)}
  .fda-mdate{font-weight:600}
  /* SUPP-1: verdict-first pair cards — a colored left bar on the
     stacked row keyed to the row's verdict (data-verdict carries
     the pair's label_weighted value, the same value the verdict
     pill in the grade cell renders), the verdict pill leading via
     the .supp-vlead twin in the pair cell, and the records count
     + evidence strength parked at the lead line's right end. */
  table.supp-table tr[data-verdict]{padding-left:10px}
  table.supp-table tr[data-verdict="concludes no benefit"]{
    border-left:4px solid #7A1F1F}
  table.supp-table tr[data-verdict="mixed or insufficient evidence"]{
    border-left:4px solid #C8A24A}
  table.supp-table tr[data-verdict="supports benefit"]{
    border-left:4px solid var(--cs-ok)}
  .supp-vlead{margin-bottom:4px}
  .supp-vmeta{margin-left:auto;font-weight:600;white-space:nowrap}
  /* SUPP-2: the phone records twin replaces the desktop stream;
     the tail folds behind the "All N records" disclosure, whose
     summary meets the 44px tap floor. */
  .records-desktop{display:none}
  .records-mobile{display:block}
  .w2c-allrecs{margin-top:10px;border-top:1px solid var(--cs-line-row)}
  .w2c-allrecs>summary{list-style:none;display:flex;align-items:center;
    gap:8px;min-height:44px;cursor:pointer;font-weight:700;
    color:var(--cs-navy);font-size:13.5px}
  .w2c-allrecs>summary::-webkit-details-marker{display:none}
  .w2c-allrecs>summary::after{content:"▸";flex:none;
    color:var(--cs-amber-deep);font-size:13px}
  .w2c-allrecs[open]>summary::after{content:"▾"}
  .w2c-allrecs>summary:focus-visible{outline:2px solid
    var(--cs-amber-deep);outline-offset:2px}
}

/* =====================================================================
   Mobile sweep Wave 2D — Data Breach list + Exemplars
   (BREACH-1, BREACH-2, EXEMP-1, EXEMP-2, EXEMP-3; Nov 19, 2026)
   All Wave 2D CSS lives in this one section, with its own media
   queries. Desktop is unchanged except where a delta says so
   (EXEMP-2's candidates filter and EXEMP-3's action row render at
   every width; their layout rules below are phone-scoped).
   ===================================================================== */

/* EXEMP-3: the reading-progress bar is a mobile affordance — it
   has no base/desktop rendering at all. */
.exemplar-progress{display:none}

@media(max-width:860px){
  /* BREACH-2: the /breaches view switcher (All / Fresh / Under
     investigation) sticks under the pinned 54px header while the
     list scrolls. The wrapper carries the stickiness so the nav
     keeps its exact .viewtabs markup and links; the background is
     the opaque card white and z-index 40 sits below the header's
     60 (and below the nav panel's 59). */
  .breach-viewsticky{position:sticky;top:54px;z-index:40;
    background:var(--cs-card);padding:8px 0 2px;margin:0 0 8px}
  .breach-viewsticky .viewtabs{margin:0}
  /* EXEMP-3: slim reading-progress bar fixed directly under the
     pinned header; the fill's width is set by the detail page's
     inline scroll script. */
  .exemplar-progress{display:block;position:fixed;top:54px;left:0;
    right:0;height:3px;z-index:55;background:rgba(12,21,38,.12)}
  .exemplar-progress i{display:block;height:100%;width:0;
    background:var(--cs-amber)}
}

@media(max-width:720px){
  /* BREACH-1: stacked breach rows reorder by decision value —
     score + tier lead, then the company, then the AFFECTED count
     and the LANE CHIP on the lead lines, then the data types and
     company size. Flex column on the row + explicit order on every
     signal cell (cells without these classes — the sweep-candidate
     rows sharing .brtable — keep DOM order among themselves).
     DOM order is untouched, so the desktop table is unchanged. */
  table.brtable tr{display:flex;flex-direction:column}
  .brtable td.br-cell-score{order:1}
  .brtable td.br-cell-entity{order:2}
  .brtable td.br-affected-lead{order:3}
  .brtable td.br-lane-lead{order:4}
  .brtable td.br-types-clamp{order:5}
  .brtable td.br-cell-size{order:6}
  .brtable td.compcol{order:7}
  /* BREACH-1: the data-types enumeration clamps to its first line
     on phones. The full list stays in the DOM (and renders in full
     on desktop and on the incident page); this is a data-types
     list, never a narrative. */
  .brtable td.br-types-clamp{display:-webkit-box;
    -webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
  /* EXEMP-1/EXEMP-3: exemplar action rows meet the 44px floor for
     every control they carry, including the Load to library pill
     and the Promote button riding inside a candidates .actrow. */
  .actrow .load-lib-btn,.actrow .promote-btn{min-height:44px}
  .actrow form{display:inline-flex}
}

/* ============================================================
   Mobile sweep Wave 2E — Search + Law360 idea detail
   (SEARCH-1..3, IDEA-1..4; Nov 19, 2026)
   ------------------------------------------------------------
   SEARCH-2: an empty result group renders as ONE compact row
   (.empty-group) instead of a full card — a 44px-minimum line
   carrying the group name and "No matches". It is a plain block
   at every width (the DELTAS allow the same collapse on
   desktop); the row's muted text matches the cards it replaces.
   SEARCH-3: on /corpus-search the source chips fold into the
   sticky tab bar — inside .page-jump the chips row drops its
   standalone margins and aligns with the tabs.
   IDEA-3: the filings action row is the Wave 1 .actrow (44px
   targets at <=720px); the row is an inline span in flow on
   desktop, where the three actions keep their text-link look,
   and the list item keeps a little breathing room under the
   file name when the row wraps under it on phones. */
.empty-group{display:flex;align-items:center;gap:8px;min-height:44px;
  padding:6px 2px;margin:0 0 14px;color:var(--cs-muted);
  border-bottom:1px solid var(--cs-line);font-size:14px}
.page-jump .corpus-tabs{margin:0;align-items:center}
#idea-filings li{margin:0 0 6px}
@media (max-width:720px){
  #idea-filings .actrow{margin-top:2px}
/* ---------- Mobile sweep Wave 2B: case pages + NHTSA (Nov 19, 2026) ----------
   CASE-1 / CASE-2 / CASE-3 (case page), NHTSA-1 / NHTSA-4 /
   NHTSA-5 (signals list + cluster page). All new rules for this
   wave live in this one section; the only edits above are the
   CASE-3 section ids added to the two existing scroll-margin
   rules (68px base / 110px at <=860px), per the sticky-tab
   recipe. NHTSA-2 needs no CSS here — it reuses Wave 1's
   .kpis.snaprow rules via the snaprow class in the template. */

/* CASE-1: the case export row works at ALL widths, styled to the
   case page's warm reading theme — one 44px row: a warm-ink
   primary ("Export matching (Excel)"), a hairline-outlined
   secondary ("All N"), and the CSV variant of the same route.
   The counts live in the caption line above the row. */
.w2b-export{margin:14px 0}
.w2b-export-cap{margin:0 0 8px}
.w2b-export-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.w2b-export-row a{min-height:44px;display:inline-flex;
  align-items:center;justify-content:center}
.w2b-export-row .primary{background:var(--cs-ink-warm);
  color:var(--cs-paper);border:1px solid var(--cs-ink-warm);
  border-radius:var(--cs-radius-s);padding:8px 16px;font-weight:600;
  text-decoration:none}
.w2b-export-row .primary:hover{background:var(--cs-body-warm);
  border-color:var(--cs-body-warm);color:var(--cs-paper)}
.w2b-export-row .w2b-export-all{background:transparent;
  color:var(--cs-ink-warm);border:1px solid var(--cs-hair-warm);
  border-radius:var(--cs-radius-s);padding:8px 16px;font-weight:600;
  text-decoration:none}
.w2b-export-row .w2b-export-all:hover{border-color:var(--cs-amber-deep);
  color:var(--cs-ink-warm)}

/* CASE-2: docket / filing action rows on the case page. The 44px
   tap floor itself comes from Wave 1's .actrow rules at <=720px;
   this class only keeps the row from stretching the load button
   and preserves the muted note's inline flow on desktop. */
.w2b-docrow .load-lib-btn{margin-left:0}

/* NHTSA-1: the severe-only checkbox rides in the .fbar action row
   (its label was a .sortby inside the retired .searchbar form). */
.w2b-check{display:inline-flex;align-items:center;gap:6px;
  font-size:13px;color:var(--cs-muted);white-space:nowrap}

@media(max-width:720px){
  /* NHTSA-1: the checkbox takes its own line of the action row so
     Apply + the Interested chip keep their 44px row beneath it. */
  .fbar .frow{flex-wrap:wrap}
  .fbar .frow .w2b-check{flex:1 1 100%;min-height:44px}
  /* NHTSA-5: scorecard components go two to a row — an 8-row
     single column becomes a 2-column grid of the same labeled
     mini-bars (same numbers, same inline bar widths). The label
     may wrap inside its half-row; the bar flexes as before. */
  .sc-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
  .sc-grid .sc-row{min-width:0}
  .sc-grid .sc-row .k{letter-spacing:.6px}
  .sc-grid .sc-row .microbar{margin:0 8px}
}
