/* ===================================================================== *
 * assets/shell.css — v25.16 · Graphite Amber shell layer (loads LAST).
 *
 * The frozen contract lives in /assets/theme.css (:root[data-theme=graphite])
 * and src/design/tokens.json. This layer implements:
 *   §4  global base (scrollbars/focus/motion/surfaces) + amber atmosphere
 *   §5  page-scroll shell: fixed nav → compact sticky rail (tab row →
 *       sub-tabs → section chip index — v25.15: the rail rows carry NO
 *       inter-row margins and sit FLUSH against the fixed nav; the page
 *       wrapper has no top padding; runtime-measured offsets)
 *   §5.3 top bar (v25.15 logical groups, v25.16 compact height): DOCUMENT
 *       group left (brand · file switcher · Export ▾) · SURFACE group right
 *       (Admin · Data Hub · Report · account · logout)
 *   §6  typography: display font titles, full-brightness ink, no caps
 *   §7  CellLink contract (value + "↗" currentColor, hover underline) —
 *       EXCEPT the v25.11 whole-cell matrix dialect (§9.5): non-zero heat
 *       cells are one full-cell click target, zero cells render a "·" dot
 *   §8  DataTable chrome + toolbar (label · search · Wrap · Cols · Pin ·
 *       per-page default 50 + total row count · spacer · CSV · Copy · Full
 *       page · Reset — no JSON export)
 *   §9  flat single-colour data bars (Rev 2) + contract heat ramp
 *   zero style: a zero renders as one bold full-brightness "0" (screenshot 3);
 *   matrix zero cells render a centered "·" dot (v25.11 screenshot 4)
 *
 *   v25.16 (this release):
 *   · screenshot 1 — the section chip index (3rd rail row) is DISABLED
 *     completely, everywhere, by default (body[data-secidx="off"]); a toggle
 *     pill at the tab row's right end re-enables it (persisted). The sub-tab
 *     row's BOTTOM edge is a HARD amber line marking the rail finished and
 *     attached to the top bar.
 *   · screenshot 2 — the top bar's height is compacted (smaller logo, pills,
 *     switcher, divider, account chip).
 *   · screenshot 3 — the unified-view / roll-up info bar rows are REMOVED
 *     (user.html; this file only keeps the flush-banner rule for warnings).
 *   · screenshot 4 — every table card reads as ONE chrome row: the table
 *     titlebar and the toolbar controls merge (.dt-tools.dt-inline inside
 *     .table-titlebar), the pager foot and the section header/body padding
 *     slim down. No info, feature, option or data point is lost.
 *   · screenshot 5 — table header rows share ONE SSOT band --thead-band
 *     (amber-tinted, from table-theme.css) across ALL tables of ALL sections.
 * ===================================================================== */

/* ---------- §4.2 motion ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}
[data-motion="off"] *,[data-motion="off"] *::before,[data-motion="off"] *::after{transition:none!important;animation:none!important}
html{scroll-behavior:smooth}

/* ---------- §4.4 atmosphere — amber only, behind everything, never over data ---------- */
#atmo{position:fixed;inset:0;z-index:-2;overflow:hidden;pointer-events:none;
  background:linear-gradient(var(--surface-1),var(--surface-0) 40%)}
#atmo .blob{position:absolute;width:62vmax;height:62vmax;border-radius:50%;filter:blur(72px);opacity:.14}
#atmo .b1{background:radial-gradient(closest-side,var(--accent),transparent 70%);top:-28vmax;left:-14vmax;
  animation:ga-drift-a 46s ease-in-out infinite alternate}
#atmo .b2{background:radial-gradient(closest-side,var(--accent),transparent 70%);bottom:-30vmax;right:-16vmax;
  animation:ga-drift-b 58s ease-in-out infinite alternate}
@keyframes ga-drift-a{to{transform:translate(14vmax,10vmax) scale(1.12)}}
@keyframes ga-drift-b{to{transform:translate(-12vmax,-9vmax) scale(.92)}}
@media (prefers-reduced-motion:reduce){#atmo .blob{animation:none!important}}
#grain{position:fixed;inset:0;z-index:60;pointer-events:none;opacity:.045;mix-blend-mode:overlay}

/* ---------- §5.3 fixed product nav (v25.15 logical groups · v25.16 compact height) ----------
   v25.16 (screenshot 2): the bar NO LONGER carries a fixed height — the old
   height:var(--nav-h,58px) was self-referential (the runtime measured the
   element it sized, so the bar never shrank below its own fallback). The bar
   now sizes to its compact content (~30px: 22px logo, 4px 11px pills, 3px 8px
   switcher) and --nav-h is MEASURED from that, so body padding-top and the
   sticky rail offsets follow automatically. */
.app-nav{position:fixed;top:0;left:0;right:0;z-index:50;
  background:var(--surface-0);border-bottom:1px solid var(--border-subtle)}
/* §5.2: the nav accent rule is ONE flat amber line — never an amber→teal gradient */
.app-nav::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;
  background:var(--accent);opacity:.55}
.an-inner{max-width:1440px;margin:0 auto;height:100%;padding:4px var(--pad-card);
  display:flex;align-items:center;gap:calc(var(--space-unit)*1.75)}
/* v25.15: .an-left is the DOCUMENT group — brand · hairline divider · file
   switcher · Export ▾, all adjacent (no floating mid-bar select, no dead
   space between the brand and the open file's controls) */
.an-left{display:flex;align-items:center;gap:8px;min-width:0}
.an-sep{width:1px;height:16px;background:var(--border-subtle);flex:0 0 auto;margin:0 2px}
.an-logo{width:22px;height:22px;border-radius:7px;background:var(--accent);color:var(--text-on-accent);
  display:grid;place-items:center;font-size:11px;box-shadow:0 2px 10px var(--glow);flex:0 0 auto}
.an-brand{font-family:var(--font-disp);font-weight:600;font-size:13px;letter-spacing:.2px;
  color:var(--text-primary);white-space:nowrap}
/* the SURFACE pills live in the RIGHT cluster (v25.11 order held) —
   Admin · Data Hub · Report. Report is disabled (greyed out) while no CDR
   file is open (syncPills in shell.js owns the state). */
.an-pills{display:flex;align-items:center;gap:4px;margin:0;overflow-x:auto;scrollbar-width:none}
.an-pills::-webkit-scrollbar{display:none}
.an-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 11px;border-radius:999px;
  border:1px solid transparent;background:transparent;color:var(--text-secondary);
  font-family:var(--font-ui);font-size:11.5px;font-weight:500;cursor:pointer;white-space:nowrap;transition:.12s}
.an-pill i{font-size:10px;opacity:.9}
.an-pill:hover{color:var(--text-primary);background:var(--surface-3)}
.an-pill.on,.an-pill[aria-current="page"]{background:var(--accent);color:var(--text-on-accent);border-color:var(--accent-strong);
  box-shadow:0 2px 12px var(--glow)}
.an-pill.on i,.an-pill[aria-current="page"] i{opacity:1}
.an-pill .cnt{font-family:var(--font-mono);font-size:10px;color:inherit;opacity:.85}
.an-pill:disabled{opacity:.35;cursor:not-allowed;pointer-events:none;filter:saturate(.35)}
.an-right{display:flex;align-items:center;gap:8px;flex:0 0 auto;margin-left:auto}
.an-file{max-width:230px;min-width:0;background:var(--surface-2);color:var(--text-primary);
  border:1px solid var(--border-default);border-radius:8px;padding:3px 8px;
  font-family:var(--font-mono);font-size:10.5px;cursor:pointer;
  text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.an-file:hover{border-color:var(--border-strong)}
.an-file:disabled{opacity:.4;cursor:not-allowed}
.an-file option{background:var(--surface-4);color:var(--text-primary);font-family:var(--font-ui)}
/* the Export dropdown trigger follows the compact pill metrics (v25.16) */
.an-left .exp-wrap{margin-left:0}
.an-left .exp-wrap>button{padding:4px 11px;font-size:11.5px}
.an-left .exp-wrap>button:disabled{opacity:.38;cursor:not-allowed;pointer-events:none}
.exp-sep{height:1px;background:var(--border-subtle);margin:4px 6px}
.acct-chip{display:inline-flex;align-items:center;gap:5px;padding:2px 9px;border-radius:999px;
  border:1px solid var(--border-subtle);background:var(--surface-2);
  font-size:10.5px;color:var(--text-secondary);white-space:nowrap}
.acct-chip i{color:var(--accent)}
@media(max-width:860px){
  .an-inner{flex-wrap:wrap;row-gap:6px;padding-top:6px;padding-bottom:6px;height:auto;min-height:0}
  .app-nav{height:auto;min-height:0}
  .an-brand{font-size:13px}
  .an-left{flex-wrap:wrap;row-gap:6px}
  .an-right{flex-wrap:wrap;row-gap:6px}
  .an-pills{margin:0}
  .an-file{max-width:150px}
}

/* page body clears the fixed nav */
body[data-nav="fixed"]{padding-top:var(--nav-h,58px)}

/* ---------- §5 page mode: the document scrolls; no inner viewport, no clipping ----------
   v25.10 fix: the whole sticky stack is !important — base.css's
   .card:has(#rName){position:relative} outranked the plain [data-scroll]
   rule, so the report app-bar silently scrolled away while the rows below
   still reserved its height → a dead gap under the fixed nav with report
   content visibly scrolling through it. */
[data-scroll="page"] .app-shell{display:block;height:auto;overflow:visible}
[data-scroll="page"] .app-body{display:block;height:auto;overflow:visible;min-height:0;
  padding:calc(var(--space-unit)*3.5)}
[data-scroll="page"] .app-bar,
[data-scroll="page"] .tab-row,
[data-scroll="page"] .sub-tab-row{position:sticky!important;z-index:40;background:var(--surface-2)}
[data-scroll="page"] .app-bar{top:var(--nav-h,58px)!important}
[data-scroll="page"] .tab-row{top:calc(var(--nav-h,58px) + var(--appbar-h,0px))!important}
[data-scroll="page"] .sub-tab-row{top:calc(var(--nav-h,58px) + var(--appbar-h,0px) + var(--tabs-h,0px))!important}
[data-scroll="page"] .section-index{position:sticky;z-index:39;background:var(--surface-0);
  top:calc(var(--nav-h,58px) + var(--appbar-h,0px) + var(--tabs-h,0px) + var(--subs-h,0px));
  border-bottom:1px solid var(--border-subtle)}
/* anchor jumps land below the fixed nav + sticky rows (§5) */
.section-card,.card,.b,.all-sub{scroll-margin-top:calc(var(--nav-h,58px) + var(--appbar-h,0px) + var(--tabs-h,0px) + var(--subs-h,0px) + var(--index-h,0px) + 12px)}
/* legacy sticky rows become static inside their sticky wrappers */
#nav,#subnav{position:static!important;top:auto!important;backdrop-filter:none!important}

/* the app-bar row is REMOVED in v25.11 — the sticky chain below now pins
   straight under the fixed nav (--appbar-h measures 0 automatically) */
.card.app-bar{border-radius:var(--radius);border-top:2px solid var(--accent)}

/* ---------- §5.6 v25.15 compact rail (screenshots 2+3) ----------
   The wrapper carries NO top padding (markup: pb-4 only) so the rail starts
   FLUSH against the fixed nav, and the rail rows carry NO inter-row margins:
   the #report space-y-3 rhythm is cancelled for exactly the three rail rows
   — including under a visible #dirWarn banner, whose content sits flush
   against the nav and carries the rail directly on its lower edge (#host
   keeps the rhythm for the content below). The three rows then read as ONE
   compact strip, each row's inner padding compressed. */
[data-scroll="page"] #report>.tab-row,
[data-scroll="page"] #report>.sub-tab-row,
[data-scroll="page"] #report>.section-index{margin-top:0!important}
/* a visible #dirWarn banner sits flush against the nav and carries the rail
   directly on its lower edge — the mb-1.5 spacing only separates stacked
   banners, never the banner from the rail */
#dirWarn>.warn-banner:last-child{margin-bottom:0!important}

/* tab row + sub-tab row wrappers — one shared outline: rounded top on the
   tab row, straight seams between the rows, rounded bottom on the index */
.tab-row{background:var(--surface-2);border:1px solid var(--border-subtle);
  border-radius:var(--radius) var(--radius) 0 0}
.sub-tab-row{background:var(--surface-3);border:1px solid var(--border-subtle);border-top:0}
#nav{display:flex;gap:4px;padding:3px 10px;background:transparent!important}
#subnav{display:flex;gap:1px;padding:0 10px;background:transparent!important;border-bottom:0!important}
.tab{font-family:var(--font-ui);font-size:12px;padding:4px 11px;border-radius:999px}
.tab.on{background:var(--accent-soft);border-color:var(--accent-line);color:var(--text-primary)}
.tab.on i{color:var(--accent)}
.subtab{font-size:11.5px;padding:5px 11px}
.subtab.on{color:var(--accent);border-bottom-color:var(--accent)}
.subtab.all-tab.on{color:var(--accent);border-bottom-color:var(--accent)}

/* ---------- §5.7 v25.16 rail finish (screenshot 1) ----------
   The sub-tab row's bottom edge is a HARD amber line: the header block reads
   as finished there and visibly attached to the main top bar. The section
   chip index (3rd row) is DISABLED COMPLETELY by default —
   body[data-secidx="off"] removes it from every view with no reserved
   space — and a toggle pill at the tab row's right end turns it back on
   (persisted in localStorage by shell.js §4b; the runtime --index-h
   measurement then reports 0 while it is off, so sticky offsets follow). */
.sub-tab-row{border-bottom:2px solid var(--accent)}
body[data-secidx="off"] .section-index{display:none!important}
body[data-secidx="off"] .sub-tab-row{border-radius:0 0 var(--radius) var(--radius)}
.tab-row{display:flex;align-items:center;gap:6px;padding-right:8px}
#nav{flex:1 1 auto;min-width:0}
.secidx-tog{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;
  padding:3px 9px;border-radius:999px;border:1px solid var(--border-subtle);
  background:transparent;color:var(--text-secondary);font-family:var(--font-ui);
  font-size:10.5px;cursor:pointer;transition:.12s;white-space:nowrap}
.secidx-tog:hover{color:var(--text-primary);border-color:var(--border-strong)}
.secidx-tog.on{background:var(--accent-soft);border-color:var(--accent-line);color:var(--text-primary)}
.secidx-tog i{font-size:9.5px}
.secidx-tog i.on{color:var(--accent)}

/* ---------- section chip index (§5.4 scroll-spy) ---------- */
.section-index{display:flex;align-items:center;gap:6px;padding:4px 12px;
  border:1px solid var(--border-subtle);border-top:0;
  border-radius:0 0 var(--radius) var(--radius);
  overflow-x:auto;scrollbar-width:none}
.section-index::-webkit-scrollbar{display:none}
.si-title{font-family:var(--font-mono);font-size:10px;color:var(--text-muted);white-space:nowrap}
.si-chips{display:flex;gap:5px;overflow-x:auto;scrollbar-width:none;scroll-padding-left:var(--pad-card)}
.si-chips::-webkit-scrollbar{display:none}
.si-chip{display:inline-flex;align-items:center;gap:6px;padding:2px 9px;border-radius:999px;
  border:1px solid var(--border-subtle);background:var(--surface-2);color:var(--text-secondary);
  font-size:10.5px;white-space:nowrap;cursor:pointer;transition:.12s}
.si-chip .n{font-family:var(--font-mono);font-size:9.5px;color:var(--text-muted)}
.si-chip:hover{color:var(--text-primary);border-color:var(--border-strong)}
.si-chip.on{background:var(--accent-soft);border-color:var(--accent-line);color:var(--text-primary)}
.si-chip.on .n{color:var(--accent)}

/* ---------- §6 typography: section titles, cards, no forced caps ---------- */
.sh{font-family:var(--font-disp);font-size:14px;font-weight:600;letter-spacing:.2px;
  padding-bottom:6px;margin-bottom:8px;border-bottom:1px solid var(--border-subtle)}
.sh i{color:var(--accent)}

/* ---------- §6.1 v25.16 compact section chrome (screenshot 4) ----------
   The section card's own header and body padding slim down — the data starts
   sooner without losing the number, icon, title, path, row badge or chevron. */
.app-section>.section-header{min-height:30px;padding-top:3px;padding-bottom:3px}
.app-section>.section-body{padding:8px}
.app-section>.section-body>*+*{margin-top:10px}
.b>h4{font-family:var(--font-disp);letter-spacing:.4px;background:var(--surface-3)}
.all-section-head,.all-sub-title{font-family:var(--font-disp);letter-spacing:.3px}
/* capsLabels:false — nothing forces uppercase (§1.6.8) */
table thead th,table th,.ms .l,.stat .l,.cn-metric .l,.dd-info .l,.sec-title,.table-title,.sh,.an-brand{
  text-transform:none!important}
table thead th{letter-spacing:.02em!important;font-family:var(--font-ui)}

/* section numbering + row badge + collapse chevron (shell.js injects) */
.sec-num{font-family:var(--font-mono);font-size:10px;color:var(--text-muted);font-weight:600;
  letter-spacing:.06em;margin-right:2px;flex:0 0 auto}
.sec-badge{display:inline-flex;align-items:center;gap:5px;margin-left:auto;margin-right:8px;
  padding:2px 9px;border-radius:999px;background:var(--accent-soft);border:1px solid var(--accent-line);
  color:var(--text-primary);font-family:var(--font-mono);font-size:10.5px;font-weight:600;white-space:nowrap}
.sec-chev{flex:0 0 auto;width:22px;height:22px;border-radius:6px;border:1px solid var(--border-subtle);
  background:transparent;color:var(--text-secondary);cursor:pointer;display:inline-grid;place-items:center;
  font-size:10px;transition:.12s}
.sec-chev:hover{color:var(--text-primary);border-color:var(--border-strong)}
.sec-chev i{transition:transform .15s}
/* v25.10 fix: the collapsed state must keep the SECTION HEADER visible —
   heads come as .sh, h4 (legacy .b), .section-header (dossier BLK),
   .all-section-head, .all-sub-title; shell.js tags whichever applies with
   .sec-head, and collapse hides only the NON-head children. The old
   :not(.sh) rule hid the header too, so collapsed sections vanished with
   no way to re-expand them. */
.sec-collapsed>:not(.sec-head):not(.table-titlebar){display:none!important}
.sec-collapsed .sec-chev i{transform:rotate(-90deg)}
.sec-collapsed{border-style:dashed}

/* surfaces (§4.3) */
.card,.section-card{background:var(--surface-2);border:1px solid var(--border-subtle);
  border-radius:var(--radius)}
.inset{background:var(--surface-3);border:1px solid var(--border-subtle)}
.overlay-surface{background:var(--surface-4);border:1px solid var(--border-strong)}
.card{background:var(--surface-2)!important;border:1px solid var(--border-subtle)!important;
  border-radius:var(--radius)!important;box-shadow:var(--shadow-1)!important}
.card:hover{border-color:var(--border-default)!important}

/* ---------- KPI / stat ink (§6): full brightness, mono figures ---------- */
.kpi .v,.stat-cell .v,.cn-metric .v,.ms .v,.dd-info .v{font-family:var(--font-mono);
  font-variant-numeric:tabular-nums;color:var(--text-primary)}
.kpi .v .sub,.cn-metric .sub,.ms .v .sub{color:var(--text-secondary)}

/* ---------- zero style (v25.9 note): a zero is ONE bold full-brightness "0" ---------- */
.zero{color:var(--text-primary)!important;font-weight:700!important;font-style:normal!important}
/* the KPI font shorthand carries !important (600) — out-specify it so the
   bold zero dialect always wins (screenshot 3) */
.kpi .v.zero,.stat-cell .v.zero,.cn-metric .v.zero,.ms .v.zero,.kv .v.zero,.dd-info .v.zero{font-weight:700!important}

/* ---------- §7 CellLink contract (verbatim §7.1, for new surfaces) ---------- */
.cellink{
  background:none;border:none;padding:0;cursor:pointer;
  display:inline-flex;align-items:center;gap:5px;
  color:var(--link);
  font:inherit;font-family:var(--font-mono);
  border-bottom:0 solid currentColor;
}
.cellink .arr{color:currentColor;font-size:.9em;line-height:1}
.cellink:hover{color:var(--link-hover);border-bottom-width:1px}
.cellink[aria-current="true"],.cellink.sel{color:var(--link-selected);border-bottom-width:1px}
.cellink:focus-visible{outline:2px solid var(--link);outline-offset:2px;border-radius:3px}

/* ---------- §8 DataTable chrome + toolbar ----------
   v25.16 (screenshot 4): the titlebar and the toolbar are ONE row — shell.js
   injects the controls into .table-titlebar as .dt-tools.dt-inline
   (display:contents, so the controls become flex items of the titlebar and
   the .dt-spacer still pushes the right cluster out). Bare tables (no
   titlebar) keep the standalone .dt-tools row. Every control, the row-count
   chip and the pager foot survive; only the dead space is gone. */
.table-shell{border-radius:var(--radius);overflow:clip}
.table-titlebar{background:var(--surface-3)!important;color:var(--text-primary)!important;
  border-top:2px solid var(--accent)!important;border-left:0!important;
  border-bottom:1px solid var(--border-subtle)!important;padding:4px 10px!important;
  display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.table-titlebar i{color:var(--accent)!important}
.table-title{font-family:var(--font-disp);font-size:12.5px;font-weight:600;letter-spacing:.2px}
.table-count{font-family:var(--font-mono);font-size:10.5px;color:var(--text-secondary)}
table thead th{color:var(--table-header)!important;background:var(--thead-band)!important;
  border-bottom:1px solid var(--border-strong)!important;border-right:1px solid var(--border-column)!important}
/* v25.16 SSOT follow-up: the matrix row-header cells (th.rh) sit IN header
   rows, so they share the band too — base.css's .ht .rh surface rule is
   out-specificised here (shell loads last). */
.ht thead th.rh{background:var(--thead-band)!important}
table.data-table td,table.vt td{font-variant-numeric:tabular-nums}
table td,table th{direction:ltr!important}

/* §5.5 page flow: table bodies do not own a bounded viewport by default —
   the document scrolls. Pin = the ONE docked-inspection state that caps. */
.v245-table-scroll,.table-scroll{max-height:none!important;overscroll-behavior-x:contain;overscroll-behavior-y:auto}
.table-scroll.wrap-on table.data-table{width:100%!important;table-layout:auto!important}
.dt-pinned .v245-table-scroll,.dt-pinned .table-scroll{max-height:min(64vh,620px)!important;overflow:auto!important}
.dt-col-off{display:none!important}
.dt-row-off{display:none!important}

/* toolbar (§8.2 order, minus JSON — v25.9 note: no JSON export)
   v25.16: .dt-inline lives INSIDE .table-titlebar as display:contents —
   its children join the titlebar flex row; the standalone row styling below
   only applies to bare tables. */
.dt-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;
  padding:4px 10px;background:var(--surface-3);border:1px solid var(--border-subtle);
  border-bottom:0;border-radius:var(--radius) var(--radius) 0 0}
.dt-tools.dt-inline{display:contents}
/* v25.16: on bare shells the pop-out ↗ floats at the row's top-right — the
   compact row's Reset must clear it (the pop is 22px wide at right:6px) */
.table-shell.bare>.dt-tools{padding-right:34px}
.dt-tools+.table-scroll{border-radius:0 0 var(--radius) var(--radius)}
.dt-label{font-family:var(--font-disp);font-size:12px;font-weight:600;color:var(--text-primary);
  white-space:nowrap;margin-right:2px}
.dt-tools .dt-search{width:150px;padding:3px 8px;font-size:10.5px}
.dt-btn{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;border-radius:6px;
  border:1px solid var(--border-subtle);background:var(--surface-2);color:var(--text-secondary);
  font-family:var(--font-ui);font-size:10.5px;font-weight:500;cursor:pointer;white-space:nowrap;transition:.12s}
.dt-btn:hover{color:var(--text-primary);border-color:var(--border-strong)}
.dt-btn.on{background:var(--accent-soft);border-color:var(--accent-line);color:var(--text-primary)}
.dt-btn.on i{color:var(--accent)}
.dt-btn i{font-size:10px}
.dt-tools .dt-spacer{flex:1 1 auto}
.dt-perpage{padding:2px 5px;border-radius:6px;border:1px solid var(--border-subtle);
  background:var(--surface-2);color:var(--text-secondary);font-family:var(--font-mono);font-size:10.5px;cursor:pointer}
.dt-cols-pop{position:absolute;z-index:70;min-width:190px;max-height:300px;overflow:auto;
  background:var(--surface-4);border:1px solid var(--border-strong);border-radius:8px;
  box-shadow:var(--shadow-3);padding:8px}
.dt-cols-pop label{display:flex;align-items:center;gap:8px;padding:4px 6px;border-radius:6px;
  font-size:11px;color:var(--text-primary);cursor:pointer;white-space:nowrap}
.dt-cols-pop label:hover{background:var(--surface-3)}
.dt-cols-pop input{accent-color:var(--accent)}

/* footer (§8.1.5) + v25.11 total-row chip beside the per-page selector —
   v25.16: the foot slims to a 4px band; the counts and pager stay complete */
.dt-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;
  padding:4px 10px;border:1px solid var(--border-subtle);border-top:0;
  border-radius:0 0 var(--radius) var(--radius);background:var(--surface-3)}
.dt-count{font-family:var(--font-mono);font-size:10.5px;color:var(--text-secondary)}
.dt-total{font-family:var(--font-mono);font-size:10.5px;color:var(--text-secondary);white-space:nowrap}
.dt-total b{color:var(--text-primary);font-weight:600}
.dt-page{display:inline-flex;align-items:center;gap:6px;font-family:var(--font-mono);
  font-size:10.5px;color:var(--text-secondary)}

/* ---------- §9 Rev 2: data bars are ONE flat solid colour ---------- */
.bar{background:var(--accent)!important}
.barw{background:var(--surface-3)!important;border:1px solid var(--border-column)}
.pb>i{background:var(--accent)!important}
.pb.g>i{background:var(--ok)!important}.pb.w>i{background:var(--warn)!important}.pb.p>i{background:var(--pink)!important}
.ht .sk i{background:var(--accent)!important}
/* contract heat ramp — discrete solid fills, one colour per bin */
.h0{background:var(--heat-0)!important}
.h1{background:var(--heat-1)!important}
.h2{background:var(--heat-2)!important}
.h3{background:var(--heat-3)!important}
.h4{background:var(--heat-4)!important}
.h5{background:var(--heat-5)!important;color:var(--text-on-accent)!important}
.ht td.h5 .ddv,.ht td.h5{color:var(--text-on-accent)!important}

/* ---------- §9.5 v25.11 matrix cell dialect (user request, screenshot 4) ----------
   A non-zero heat cell is ONE whole-cell click target (the count is the td's
   own text — no inner link, no "↗" arrow); a zero cell renders a centered
   inert DOT. Applies to every HT matrix (dossier 05 Hourly Activity Matrix
   — PKT (00–23), 06 Weekday Matrix, Calls 24h + Weekday, Network Tech). */
.ht td.ddcell{cursor:pointer}
.ht td.ddcell:hover{background:rgba(var(--accent-rgb),.10)}
.ht td.ddcell:focus-visible{outline:2px solid var(--link);outline-offset:-2px}
.ht td.z{text-align:center;cursor:default;color:var(--text-muted);font-size:14px;font-weight:700}

/* ---------- contact / dossier surfaces ---------- */
.page-head{background:var(--surface-0);position:sticky}
/* the flat amber rule sits out of the flex flow so the right-anchored option
   cluster keeps its 16px inset (v25.8-1 right-anchor check) */
.page-head::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:var(--accent);opacity:.55;margin-top:-1px}
.pill{border-radius:999px;border:1px solid var(--border-subtle);background:var(--surface-3);
  color:var(--text-primary);font-family:var(--font-mono)}
.pill-x1{border-color:var(--accent-line);background:var(--accent-soft)}
.alias-box .chip{border:1px solid var(--border-subtle);background:var(--surface-4);color:var(--text-primary)}

/* ---------- login (index.html) ---------- */
.glass-login{background:var(--surface-2);border:1px solid var(--border-default);
  border-radius:var(--radius);box-shadow:var(--shadow-3)}
.btn-primary{background:var(--accent);color:var(--text-on-accent);border:1px solid var(--accent-strong);
  border-radius:8px;font-weight:600;transition:.15s;box-shadow:0 2px 12px var(--glow)}
.btn-primary:hover{filter:brightness(1.06);box-shadow:0 4px 18px var(--glow)}
.btn-primary:disabled{opacity:.55;cursor:not-allowed;filter:none;box-shadow:none}

/* ---------- misc polish ---------- */
.toast{border-left:3px solid var(--accent)!important}
.warn-banner{border-left:3px solid var(--warning)!important;color:var(--warning)!important}
.exp-menu{background:var(--surface-4);border:1px solid var(--border-strong)}
.exp-menu button{color:var(--text-secondary)}
.exp-menu button:hover{background:var(--surface-3);color:var(--text-primary)}
.tbl-pop{color:var(--link)}
.tbl-pop:hover{color:var(--link-hover)}
@media print{#atmo,#grain,.app-nav,.section-index,.dt-tools,.dt-foot{display:none!important}}
