/* CEO Command Center — approved combo A composition (money band, Pipeline River, installation map, live
   verification, decisions, departments) with an Apple-native finish: one 8px grid, crisp type, soft glass.
   Three appearances share one token set: Aqua (default), Night (black + orange) and Day (white). */
@font-face { font-family: 'DM Sans'; src: url('../office-next/fonts/dm-sans-latin-300-700.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }

:root, [data-theme="aqua"] {
  --sel: #36d2ff;
  --bg: #020d1f; --bg-2: #04203a;
  --glass: linear-gradient(180deg, rgba(14, 52, 92, .58), rgba(5, 26, 52, .62));
  --glass-solid: #072443; --glass-hi: rgba(120, 220, 255, .07);
  --line: rgba(110, 205, 255, .2); --line-soft: rgba(110, 205, 255, .1); --line-strong: rgba(120, 215, 255, .36);
  --text: #f3f9ff; --text-2: #b4cbe0; --text-3: #7f9bb6;
  --accent: #36d2ff; --accent-2: #2a8cff; --accent-soft: rgba(54, 210, 255, .14); --accent-ink: #02152a;
  --brand: #36d2ff; --brand-soft: rgba(54, 210, 255, .16);
  --good: #3ddc97; --warn: #ffbb3d; --warn-soft: rgba(255, 187, 61, .14); --bad: #ff6b6b;
  --card-shadow: 0 1px 0 rgba(160, 230, 255, .08) inset, 0 12px 32px rgba(0, 6, 20, .45);
  --glow: 0 0 0 1px rgba(54, 210, 255, .14), 0 0 28px rgba(30, 150, 255, .12);
  --web: 54, 190, 255; --map-sea: #020f24; --land-a: #0d4174; --land-b: #062649; --land-dot: rgba(120, 220, 255, .2); --state: rgba(90, 200, 255, .42); --coast: #36d2ff; --coast-glow: .55;
  --pt: #6ff0ff; --pt-ring: #e6fdff; --wh: #ffc44a; --wh-fill: rgba(40, 26, 0, .55);
  color-scheme: dark;
}
[data-theme="dark"] {
  --sel: #ff8a2a;
  --bg: #000000; --bg-2: #0a0a0c;
  --glass: linear-gradient(180deg, rgba(26, 27, 31, .82), rgba(14, 15, 18, .86));
  --glass-solid: #121316; --glass-hi: rgba(255, 255, 255, .05);
  --line: rgba(255, 255, 255, .1); --line-soft: rgba(255, 255, 255, .06); --line-strong: rgba(255, 150, 60, .42);
  --text: #f5f5f7; --text-2: #b0b0b8; --text-3: #7c7c86;
  --accent: #ff8a2a; --accent-2: #ff6a00; --accent-soft: rgba(255, 138, 42, .14); --accent-ink: #1a0b00;
  --brand: #36c8ff; --brand-soft: rgba(54, 200, 255, .14);
  --good: #3ddc97; --warn: #ffb02e; --warn-soft: rgba(255, 176, 46, .14); --bad: #ff6b6b;
  --card-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 12px 32px rgba(0, 0, 0, .6);
  --glow: 0 0 0 1px rgba(255, 138, 42, .12), 0 0 24px rgba(255, 120, 20, .08);
  --web: 255, 140, 50; --map-sea: #020304; --land-a: #1a1c22; --land-b: #0e0f13; --land-dot: rgba(255, 170, 90, .13); --state: rgba(255, 150, 70, .4); --coast: #ff8a2a; --coast-glow: .62;
  --pt: #ffb15a; --pt-ring: #fff0dc; --wh: #ffd36b; --wh-fill: rgba(40, 20, 0, .6); --state-glow: .32;
  color-scheme: dark;
}
[data-theme="light"] {
  --sel: #0a74e0;
  --bg: #f4f7fb; --bg-2: #ffffff;
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(250, 252, 255, .9));
  --glass-solid: #ffffff; --glass-hi: rgba(10, 90, 180, .04);
  --line: #d6e1ef; --line-soft: rgba(15, 50, 90, .07); --line-strong: rgba(10, 110, 220, .3);
  --text: #0b1b2e; --text-2: #4a5b70; --text-3: #75859a;
  --accent: #0a74e0; --accent-2: #0a5cc4; --accent-soft: rgba(10, 116, 224, .1); --accent-ink: #ffffff;
  --brand: #0a8fd8; --brand-soft: rgba(10, 143, 216, .1);
  --good: #12a05a; --warn: #a96200; --warn-soft: rgba(255, 170, 40, .16); --bad: #d92d2d;
  --card-shadow: 0 1px 2px rgba(15, 40, 80, .05), 0 8px 24px rgba(30, 80, 160, .09);
  --glow: 0 0 0 1px rgba(10, 116, 224, .06);
  --web: 10, 116, 224; --map-sea: #f6faff; --land-a: #e9f3fe; --land-b: #d4e7fb; --land-dot: rgba(10, 116, 224, .14); --state: rgba(30, 90, 170, .5); --coast: #3aa8ff; --coast-glow: .75;
  --pt: #0a8fe0; --pt-ring: #ffffff; --wh: #d98a00; --wh-fill: #fff6df; --state-glow: 0;
  color-scheme: light;
}
:root {
  --font: 'DM Sans', system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --r-card: 18px; --r-in: 12px; --r-ctl: 10px;
  --gap: 10px; --pad: 20px;
  --t-xs: 12px; --t-sm: 13px; --t-md: 14px; --t-lg: 16px; --t-xl: 20px; --t-2xl: 24px; --t-3xl: 34px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --top-h: 62px; --aquis-w: var(--aquis-corner-size);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 400 var(--t-md)/1.4 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background: radial-gradient(1200px 600px at 50% -10%, var(--bg-2), transparent 70%), var(--bg);
}
[data-theme="light"] body { background: radial-gradient(1400px 700px at 50% -20%, #ffffff, transparent 70%), var(--bg); }
button, select, input { font: inherit; color: inherit; }
a { color: var(--accent); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 30; padding: 8px 16px; border-radius: var(--r-ctl); background: var(--glass-solid); }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num, .kv, .sv, .mv, .big, .when-t { font-variant-numeric: tabular-nums; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---- top bar ---- */
.top { position: relative; z-index: 10; display: flex; align-items: center; gap: 20px; height: var(--top-h); padding: 4px 24px 0; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand .logo { width: 46px; height: 45px; display: block; border-radius: 50%; background: radial-gradient(circle, #071a33 58%, transparent 60%); filter: drop-shadow(0 0 12px rgba(40, 170, 255, .35)); }
.ttl { display: grid; gap: 2px; min-width: 0; }
.ttl b { font-size: 23px; font-weight: 600; letter-spacing: -.015em; line-height: 1.1; white-space: nowrap; }
.ttl .tag { font-size: 10px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.reporting-period select { height: 36px; padding: 0 32px 0 14px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--glass-solid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%238aa3bb' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 11px center; appearance: none; font-size: var(--t-sm); cursor: pointer; }
.reporting-period[hidden] { display: none; }
.when { display: flex; align-items: center; gap: 10px; padding: 0 14px 0 16px; border-left: 1px solid var(--line); color: var(--text-2); }
.when-t { display: grid; line-height: 1.2; }
.when-t b { font-size: var(--t-md); font-weight: 600; color: var(--text); white-space: nowrap; }
.when-t span { font-size: var(--t-xs); color: var(--text-2); white-space: nowrap; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: var(--t-sm); font-weight: 600; color: var(--good); }
.live[hidden] { display: none; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 22%, transparent), 0 0 10px var(--good); }
.seg { display: inline-flex; padding: 3px; border-radius: var(--r-ctl); background: var(--glass-solid); border: 1px solid var(--line-soft); }
.seg button { min-width: 34px; height: 28px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font-size: var(--t-xs); font-weight: 600; cursor: pointer; display: inline-grid; place-items: center; transition: background .2s var(--ease), color .2s var(--ease); }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.who { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--glass-solid); font-size: var(--t-sm); font-weight: 600; }
.srcnote { position: fixed; left: 50%; top: calc(var(--top-h) + 10px); transform: translateX(-50%); z-index: 20; max-width: min(560px, 90vw); padding: 8px 16px; border-radius: 999px; background: var(--glass-solid); border: 1px solid var(--line); box-shadow: var(--card-shadow); font-size: var(--t-sm); color: var(--text-2); text-align: center; }
.srcnote:empty { display: none; }

/* ---- dashboard grid: fits one screen at 1440x900 and 1366x1024 ---- */
main { padding: 4px 24px 14px; }
.dash { display: grid; gap: var(--gap); grid-template-rows: auto auto minmax(324px, 1fr) auto; min-height: calc(100vh - var(--top-h) - 19px); }
.dash[hidden] { display: none; }
.card { position: relative; border-radius: var(--r-card); background: var(--glass); border: 1px solid var(--line); box-shadow: var(--card-shadow); backdrop-filter: blur(18px) saturate(1.2); min-width: 0; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, var(--glass-hi), transparent 40%); }
/* Whole-card click (R5): a mouse affordance only; the card's primary button stays the keyboard control. No blur added. */
.card-clickable { cursor: pointer; }
.card-clickable:hover { border-color: var(--line-strong); }
@media (prefers-reduced-motion: reduce) { .card-clickable { transition: none; } }
.ch { display: flex; align-items: center; gap: 12px; min-width: 0; }
h2, h3 { font-weight: 600; letter-spacing: -.01em; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--text-2); }
.empty { color: var(--text-2); font-size: var(--t-sm); }

/* skeletons: shown until the first private figures for this screen arrive; never contain figures */
.kband, .side, .foot { display: grid; min-width: 0; }
.kband > *, .side > *, .foot > * { grid-area: 1 / 1; min-width: 0; }
.kpis:not(:empty) + .sk-row, .cols:not(:empty) + .sk-row, .bottom:not(:empty) + .sk-row { display: none; }
.sk-title { font-size: var(--t-lg); font-weight: 600; color: var(--text-2); }
/* Loading (owner C3): the preview's calm glass, faint still lines in the card's own glass; no grey shimmer bars. */
.sk-bar { display: block; height: 10px; border-radius: 6px; background: color-mix(in srgb, var(--text) 7%, transparent); opacity: .7; }
.sk-bar.big { height: 28px; width: 46%; border-radius: 8px; }
.sk-bar.w60 { width: 60%; } .sk-bar.w40 { width: 40%; } .sk-bar.w80 { width: 80%; }

/* ---- money band ---- */
.kpis, .kpis-sk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.kpi, .kpi-sk { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-rows: auto auto auto; column-gap: 14px; align-items: center; min-height: 90px; padding: 10px 18px 10px; text-align: left; }
.kpi { cursor: pointer; transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); color: inherit; font: inherit; overflow: hidden; }
.kpi:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--line-strong); box-shadow: var(--card-shadow), var(--glow); }
.kpi:disabled { cursor: default; }
.kico { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 30%, transparent), var(--accent-soft) 70%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 18px color-mix(in srgb, var(--accent) 22%, transparent); }
.kico .i { width: 22px; height: 22px; stroke-width: 2; }
.kl { grid-column: 2; font-size: 15px; font-weight: 500; color: var(--text); white-space: nowrap; }
.kv { grid-column: 2 / 4; font-size: 32px; font-weight: 700; letter-spacing: -.025em; line-height: 1.08; }
.kv.none { font-size: 18px; font-weight: 500; color: var(--text-2); letter-spacing: 0; line-height: calc(32px * 1.08); }
.kd { grid-column: 1 / 4; margin-top: 3px; font-size: var(--t-sm); color: var(--text-2); }
.kd b { color: var(--good); font-weight: 600; }
.kpi .chev { grid-column: 3; grid-row: 1; color: var(--text-3); }
.kpi::after { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 180px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent); pointer-events: none; }
.kpi-sk .sk-title { grid-column: 2; }
.kpi-sk .sk-bar.big { grid-column: 2 / 4; margin-top: 8px; }
.kpi-sk .sk-bar.w60 { grid-column: 1 / 4; margin-top: 12px; }

/* ---- Pipeline River ---- */
.river { padding: 12px 0 6px; overflow: hidden; }
.river .ch { padding: 0 22px; gap: 22px; }
.river h2 { font-size: var(--t-xl); font-weight: 700; white-space: nowrap; }
.rnote { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-soft); font-size: var(--t-xs); color: var(--text-3); white-space: nowrap; }
.rnote[hidden] { display: none; }
.rnote .i { width: 14px; height: 14px; }
.rlegend { margin-left: auto; display: flex; gap: 20px; font-size: var(--t-xs); color: var(--text-2); white-space: nowrap; }
.rlegend li { display: inline-flex; align-items: center; gap: 7px; }
.rlegend i { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px var(--brand); }
.rlegend i.bn { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.rlegend i.end { background: transparent; border: 2px solid var(--brand); width: 12px; height: 12px; }
.rv { position: relative; margin-top: 2px; }
.stages { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); margin-top: -6px; padding: 0 8px; }
.stages > li { position: relative; display: flex; justify-content: center; min-width: 0; }
.stages > li + li::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 4px; border-left: 1px dashed var(--line-soft); }
.stages button, .stages .st-sk { width: 100%; display: grid; justify-items: center; align-content: start; gap: 1px; padding: 0 6px 2px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; border-radius: var(--r-in); text-align: center; transition: background .2s var(--ease); }
.stages button:hover:not(:disabled), .stages button:focus-visible { background: var(--accent-soft); }
.stages button:disabled { cursor: default; }
.stages .num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: var(--t-sm); font-weight: 600; color: var(--text); border: 1.5px solid var(--brand); background: color-mix(in srgb, var(--bg) 70%, transparent); box-shadow: 0 0 10px color-mix(in srgb, var(--brand) 50%, transparent); margin-bottom: 4px; }
.stages li.bn .num { border-color: var(--warn); color: var(--warn); box-shadow: 0 0 12px color-mix(in srgb, var(--warn) 60%, transparent); }
.stages .sn { font-size: var(--t-md); font-weight: 600; white-space: nowrap; }
.stages .sv { font-size: var(--t-2xl); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.stages .sa { font-size: var(--t-md); font-weight: 600; line-height: 1.2; }
.stages .sl { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.stages .sl.queue-label { margin-top: 6px; font-size: var(--t-md); font-weight: 600; color: var(--text-2); line-height: 1.25; }
.stages .sv.none, .stages .sa.none { font-size: var(--t-sm); font-weight: 500; color: var(--text-3); letter-spacing: 0; line-height: 1.6; }
.stages .flag { margin-top: 4px; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--warn); background: var(--warn-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 50%, transparent); }
.stages li.bn .sv { color: var(--warn); text-shadow: 0 0 16px color-mix(in srgb, var(--warn) 45%, transparent); }
.stages-sk { position: absolute; left: 0; right: 0; top: 94px; }
.stages:not(:empty) + .stages-sk { display: none; }
.st-sk .sk-bar { width: 56%; margin-top: 6px; }
.st-sk .sk-bar.big { width: 44%; height: 22px; }
.river .empty { padding: 8px 22px 0; }
@keyframes flow { to { stroke-dashoffset: -296; } }
@keyframes flow2 { to { stroke-dashoffset: -472; } }

/* ---- middle row ---- */
.mid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7.2fr); gap: var(--gap); min-height: 0; }
.side { min-height: 0; }
.mid > .atlas { grid-column: 1; }
.mid > .side { grid-column: 2; }
.cols, .cols-sk { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3.2fr); gap: var(--gap); min-height: 0; }
.atlas { overflow: hidden; min-height: 236px; }
.ach { position: absolute; left: 0; top: 0; bottom: 0; width: calc(100% - 24px); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 0 12px 18px; pointer-events: none; }
.ach::before { content: ""; position: absolute; left: 0; top: 0; width: min(100%, 600px); height: 104px; border-top-left-radius: var(--r-card); pointer-events: none; background: radial-gradient(100% 100% at 0 0, color-mix(in srgb, var(--map-sea) 94%, transparent) 30%, color-mix(in srgb, var(--map-sea) 60%, transparent) 62%, transparent 100%); }
.ach > * { position: relative; pointer-events: auto; }
.ach h2 { font-size: 19px; font-weight: 700; line-height: 1.2; white-space: nowrap; text-shadow: 0 1px 12px var(--map-sea); }
.ach .sub { display: grid; gap: 1px; font-size: var(--t-sm); line-height: 1.4; color: var(--text-2); text-shadow: 0 1px 8px var(--map-sea); }
.ach .sub .sep { display: none; }
.ach .sub .det { font-size: 12.5px; color: var(--text-2); }
.ach .sub .det b { color: var(--text); font-weight: 600; }
.ach .sub b { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.map { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: radial-gradient(120% 90% at 70% 40%, color-mix(in srgb, var(--coast) 10%, var(--map-sea)), var(--map-sea) 70%); }
#amap { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#amap .sea { fill: transparent; }
#amap .land-glow { fill: var(--coast); opacity: calc(var(--coast-glow) * .38); }
#amap .pools circle { fill: url(#ptGlow); opacity: .55; }
/* No connecting lines/arcs (owner #11): every install carries a pulse, drawn on the filter-free .atlas-motion
   canvas overlaid on the card (see ceo-atlas-raster.js / ceo-map3d.css). The baked SVG holds only static dots. */
#amap .pt-bloom circle { fill: var(--pt); opacity: .5; pointer-events: none; }
[data-theme="light"] #amap .pt-bloom circle { opacity: .22; }
[data-theme="light"] #amap .pools circle { opacity: .3; }
#amap .coast-glow { fill: none; stroke: var(--coast); stroke-width: 7; opacity: var(--coast-glow); }
#amap .land { fill: url(#landG); }
#amap .land-dots { fill: url(#landDots); }
#amap .states { fill: none; stroke: var(--state); stroke-width: .6; stroke-linejoin: round; }
#amap .states-glow { fill: none; stroke: var(--coast); stroke-width: 1.4; opacity: var(--state-glow, .22); }
#amap .pt { fill: var(--pt); stroke: var(--pt-ring); stroke-width: .5; cursor: pointer; }
#amap .pt:hover { stroke-width: 1.4; }
#amap .halo { fill: url(#ptGlow); pointer-events: none; }
#amap .wh-disc { fill: var(--wh-fill); stroke: var(--wh); stroke-width: 1.6; }
#amap .wh-ico { fill: none; stroke: var(--wh); stroke-width: 1.8; stroke-linejoin: round; }
#amap .wh-hit { fill: transparent; pointer-events: none; }
#amap .wh-group:hover .wh-hit { pointer-events: all; }
#amap .wh-tie { stroke: var(--wh); opacity: .7; pointer-events: none; }
#amap .wh-dot { fill: var(--wh); pointer-events: none; }
#amap .wh-fan { transition: transform .3s var(--ease); }
#amap .wh-group:hover .wh-fan, #amap .wh-group:focus-within .wh-fan, #amap .wh-group:focus .wh-fan { transform: translate(var(--dx, 0), var(--dy, 0)); }
#amap .wh-group:hover .wh-count, #amap .wh-group:focus .wh-count { opacity: 0; }
#amap .wh-group:focus { outline: none; }
#amap .wh-count circle { fill: var(--wh); }
#amap .wh-count text { font: 700 9px var(--font); fill: #1a1000; }
#amap .warehouse-marker { cursor: pointer; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--wh) 55%, transparent)); }
.alegend { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 7px 12px; border-radius: 12px; background: color-mix(in srgb, var(--glass-solid) 84%, transparent); border: 1px solid var(--line-soft); backdrop-filter: blur(12px); font-size: var(--t-xs); color: var(--text-2); }
.alegend:empty { display: none; }
.alegend li { display: inline-flex; align-items: center; gap: 7px; }
.alegend .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pt); box-shadow: 0 0 8px var(--pt); }
.alegend svg { color: var(--wh); }
.alegend li.attrib { font-size: 10.5px; }
.alegend li.attrib a { color: var(--text-3); text-decoration: none; }
.alegend li.attrib a:hover { text-decoration: underline; }
.fit { position: relative; align-self: flex-end; z-index: 2; flex: none; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--glass-solid) 80%, transparent); backdrop-filter: blur(10px); font-size: var(--t-xs); font-weight: 600; color: var(--text); cursor: pointer; white-space: nowrap; }
.fit[hidden] { display: none; }
.fit:hover { border-color: var(--line-strong); }
.fit[aria-pressed="true"] { border-color: var(--line-strong); background: var(--accent-soft); }
.map-empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: var(--r-in); background: color-mix(in srgb, var(--glass-solid) 84%, transparent); text-align: center; }
.atip { position: absolute; z-index: 3; pointer-events: none; padding: 7px 11px; border-radius: 10px; background: var(--glass-solid); border: 1px solid var(--line-strong); box-shadow: var(--card-shadow); font-size: var(--t-xs); color: var(--text); white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); }
.atip[hidden] { display: none; }
.atip b { display: block; font-size: var(--t-sm); }

/* Quick card: a marker's in-app panel (never an external site, owner #7). Opens near the clicked marker. */
.map-quick { position: absolute; z-index: 5; width: 232px; max-width: calc(100% - 20px); padding: 12px 14px 14px; border-radius: 14px; background: var(--glass-solid); border: 1px solid var(--line-strong); box-shadow: var(--card-shadow); color: var(--text); animation: gpop-in .16s cubic-bezier(.2, 1.3, .35, 1) both; }
.map-quick[hidden] { display: none; }
.map-quick .mq-x { position: absolute; top: 7px; right: 8px; width: 24px; height: 24px; border-radius: 8px; border: 0; background: transparent; color: var(--text-3); font-size: 13px; line-height: 1; cursor: pointer; }
.map-quick .mq-x:hover { background: var(--glass-hi); color: var(--text); }
.map-quick .mq-k { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.map-quick .mq-t { margin: 2px 0 0; font-size: var(--t-lg); font-weight: 700; line-height: 1.2; padding-right: 20px; }
.map-quick .mq-l { margin: 4px 0 0; font-size: var(--t-sm); color: var(--text-2); line-height: 1.35; }
.map-quick .mq-go { margin-top: 11px; width: 100%; height: 34px; border-radius: 10px; border: 1px solid var(--pt); background: var(--accent-soft); color: var(--text); font-size: var(--t-sm); font-weight: 600; cursor: pointer; }
.map-quick .mq-go:hover { background: color-mix(in srgb, var(--pt) 20%, transparent); }
@media (prefers-reduced-motion: reduce) { .map-quick { animation: none; } }

/* side cards: live verification + decisions */
.panel { display: flex; flex-direction: column; padding: 14px 14px 12px; min-height: 0; overflow: hidden; }
.panel .ch { margin-bottom: 10px; padding: 0 2px; }
.panel h3, .sk-card .sk-title { font-size: 18px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.panel .ch .ico { color: var(--warn); }
.panel .ch .pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 20%, transparent), 0 0 12px var(--good); flex: none; }
.hero { flex: 1; min-height: 96px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-content: center; align-items: center; gap: 6px 12px; width: 100%; padding: 14px 16px; border-radius: var(--r-in); border: 1px solid var(--line-soft); background: var(--glass-hi); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.hero:hover:not(:disabled) { border-color: var(--line-strong); }
.hero .big { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.hero .big.none { font-size: var(--t-lg); font-weight: 500; color: var(--text-2); }
.hero .hl { grid-column: 1 / 3; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: var(--t-sm); color: var(--text-2); }
.hero .hl small { font-size: var(--t-xs); color: var(--text-3); }
.wavefm rect { transform-box: fill-box; transform-origin: center; animation: wv 1.3s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.11s); }
@keyframes wv { from { transform: scaleY(.55); } }
.hero .wavefm { grid-row: 1; grid-column: 2; width: 96px; height: 36px; color: var(--accent); }
.rows { display: grid; gap: 6px; margin-top: 10px; }
.verify .hero { flex: 1; min-height: 0; padding: 8px 14px; gap: 2px 12px; }
.verify .rows.quad { flex: none; grid-auto-rows: 30px; gap: 5px; margin-top: 8px; }
@media (min-height: 1000px) {
  .verify .rows.quad { grid-auto-rows: 40px; gap: 8px; }
  .verify .hero .big { font-size: 38px; }
  .verify .hero .wavefm { width: 128px; height: 48px; }
}
.quad .metric-row, .quad .metric-row button { height: 100%; }
.quad .metric-row button { min-height: 0; padding: 3px 12px; }
.quad .ml { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.quad .mv { font-size: var(--t-lg); }
.metric-row button, .decision { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 8px 12px; border-radius: var(--r-in); border: 1px solid var(--line-soft); background: var(--glass-hi); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease); }
.metric-row button:hover:not(:disabled), .decision:hover:not(:disabled) { border-color: var(--line-strong); }
.metric-row button:disabled, .decision:disabled { cursor: default; }
.ml { display: grid; min-width: 0; font-size: var(--t-md); }
.ml small { font-size: 11px; color: var(--text-3); }
.mv { font-size: var(--t-lg); font-weight: 700; white-space: nowrap; }
.mv.none { font-size: var(--t-sm); font-weight: 500; color: var(--text-3); }
.decisions { display: grid; gap: 6px; grid-auto-rows: auto; align-content: start; flex: none; min-height: 0; }
.decision { padding: 4px 12px 4px 5px; justify-content: flex-start; min-height: 36px; gap: 12px; margin-inline: -6px; width: calc(100% + 12px); }
.decision .dico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--accent); background: var(--accent-soft); }
.decision .dt { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 4px 10px; min-width: 0; flex: 1; }
.decision .dt b { min-width: 1.4em; font-size: var(--t-xl); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.decision .dt span { font-size: var(--t-sm); color: var(--text-2); line-height: 1.4; overflow-wrap: anywhere; }
.decision.idle .dt b { font-size: var(--t-sm); font-weight: 600; color: var(--text-3); }
.decision .dt small { grid-column: 1 / -1; font-size: 11px; color: var(--text-3); line-height: 1.4; }
.decision .chev, .metric-row .chev { color: var(--text-3); flex: none; display: grid; place-items: center; }
.decision.hot { border-color: color-mix(in srgb, var(--warn) 55%, transparent); background: linear-gradient(90deg, var(--warn-soft), transparent 80%); box-shadow: 0 0 18px color-mix(in srgb, var(--warn) 12%, transparent); }
.decision.hot .dico { color: var(--warn); background: color-mix(in srgb, var(--warn) 18%, transparent); }
.decision.hot .dt span { color: color-mix(in srgb, var(--warn) 85%, var(--text)); }
.decision.calm .dt b { color: var(--text-2); }

/* ---- bottom row ---- */
.cols > .decide, .cols-sk > :nth-child(2) { grid-column: 2; }
/* The Watch list sits in the lower-right column, exactly where the fixed AQUIS orb lives. Pin it to the
   top of its column (its natural height) instead of stretching it to match the taller verification card,
   so the orb always has a clear corner slot below it and never covers a watch-list action — at any
   viewport, data density or scroll position. (Release-blocker AQUIS hit-test fix.) */
.cols > .decide { align-self: start; }
.bottom, .bottom-sk { display: grid; grid-template-columns: minmax(0, 1.62fr) repeat(3, minmax(0, 1fr)) var(--aquis-w); gap: var(--gap); align-items: start; }
.dept, .sk-card { padding: 12px 14px; min-height: 120px; }
.dept .ch { margin-bottom: 8px; }
.dept h3 { font-size: var(--t-lg); font-weight: 600; white-space: nowrap; }
.dept .ch .ico { color: var(--accent); }
.dept .ch .note { margin-left: auto; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-soft); font-size: 11px; color: var(--text-3); white-space: nowrap; }
.calm-line { margin: -2px 0 8px; font-size: var(--t-xs); color: var(--text-3); line-height: 1.4; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tiles .metric-row:not(.rep), .tiles .metric-row:not(.rep) button { height: 100%; }
.tiles .metric-row button { justify-content: space-between; }
.tiles .ml small { display: block; }
.tiles .metric-row button { flex-direction: column; align-items: flex-start; gap: 0; min-height: 50px; padding: 6px 12px; }
.tiles .mv { font-size: var(--t-xl); }
.dbody { display: flex; align-items: center; gap: 12px; }
.ring { width: 70px; height: 70px; flex: none; border-radius: 50%; display: grid; place-items: center; text-align: center; line-height: 1.05; background: radial-gradient(circle, var(--glass-solid) 60%, transparent 62%), conic-gradient(var(--accent), var(--brand), var(--accent)); box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 25%, transparent); }
.ring b { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.ring small { display: block; font-size: 9.5px; color: var(--text-2); }
.ring.none { width: 52px; height: 52px; background: radial-gradient(circle, var(--glass-solid) 60%, transparent 62%), conic-gradient(var(--line), var(--line)); box-shadow: none; }
.dbody .rows { flex: 1; margin: 0; min-width: 0; gap: 6px; }
.dbody > .dept-big { width: auto; flex: none; }
.dept-big.dbody { display: flex; width: 100%; }
.dept-big .ml small { font-size: var(--t-xs); }
.dbody .metric-row button { min-height: 30px; padding: 4px 10px; }
.dbody .mv { font-size: var(--t-md); }
.dbody .ml { font-size: 12.5px; line-height: 1.25; }
.dbody .calm { font-size: var(--t-sm); color: var(--text-2); }
.dept-big { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.dept-big:disabled { cursor: default; }
.sk-card { display: grid; align-content: start; gap: 12px; }

/* ---- whole-page state ---- */
.state { max-width: 460px; margin: 18vh auto 0; text-align: center; display: grid; gap: 12px; justify-items: center; padding: 32px; }
.state[hidden] { display: none; }
.state h2 { font-size: var(--t-2xl); }
.state p { color: var(--text-2); }
.primary { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; cursor: pointer; }

/* ---- AQUIS: one shared mark, bottom right, clear of every card ---- */
.aquis { position: fixed; right: 16px; bottom: 20px; z-index: 15; width: var(--aquis-corner-size); display: grid; justify-items: center; gap: 2px; text-decoration: none; }
/* Only the orb's own circle is a click target — never the larger transparent canvas/anchor box — so a
   control that happens to sit near the orb still receives its own clicks. The anchor box itself takes no
   pointer events; the round orb (canvas, or the image fallback) does, clipped to its circle. Clicks there
   still bubble to the anchor's click handler, and keyboard focus is unaffected. (AQUIS hit-test fix.) */
.aquis { pointer-events: none; }
.aquis .orb-cv, .aquis img { pointer-events: auto; clip-path: circle(50% at 50% 46%); }
.aquis img { width: var(--aquis-mark-w); height: var(--aquis-mark-h); object-fit: contain; filter: drop-shadow(0 0 14px rgba(40, 180, 255, .65)) drop-shadow(0 0 30px rgba(20, 120, 255, .35)); transition: transform .3s var(--ease); }
.aquis img:hover { transform: translateY(-2px) scale(1.04); }
.aquis .orb-cv { display: block; width: var(--aquis-corner-size); height: var(--aquis-corner-size); margin: -12px 0 -6px; transition: transform .3s var(--ease); }
.aquis .orb-cv:hover, .aquis:focus-visible .orb-cv { transform: translateY(-2px) scale(1.04); }
.aquis:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 16px; }
.aquis .orb-name { font-size: 11px; font-weight: 700; letter-spacing: .28em; color: var(--brand); text-shadow: 0 0 10px color-mix(in srgb, var(--brand) 60%, transparent); padding-left: .28em; }
.badge-preview { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.badge-preview[hidden] { display: none; }

/* ---- drill-down: an inline section over the middle row ---- */
dialog#records { position: fixed; inset: auto; margin: 0; z-index: 14; display: none; flex-direction: column; padding: 0; overflow: hidden; border-radius: var(--r-card); border: 1px solid var(--line-strong); background: var(--glass-solid); color: var(--text); box-shadow: var(--card-shadow), var(--glow); }
dialog#records[open] { display: flex; }
@keyframes drill-in { from { opacity: 0; transform: translateY(6px); } }
#records header { display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line-soft); }
#records h2 { font-size: var(--t-xl); font-weight: 700; }
#records .rec-meta { margin-left: auto; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--text); font-size: var(--t-sm); font-weight: 600; white-space: nowrap; }
#records .rec-meta:empty { display: none; }
#records button { height: 32px; padding: 0 12px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--glass-hi); cursor: pointer; font-size: var(--t-sm); }
#records button:hover { border-color: var(--line-strong); }
#records .back-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px 0 8px; border-color: transparent; background: transparent; color: var(--accent); font-weight: 600; }
#records .back-btn .i { width: 16px; height: 16px; }
#record-content { flex: 1; min-height: 0; overflow: auto; padding: 12px 18px 16px; display: grid; align-content: start; gap: 10px; overflow-wrap: anywhere; }
#record-content > p:first-child:has(+ p.meta) { display: none; }
#record-content td button { height: 28px !important; }
#record-content .meta { font-size: var(--t-xs); color: var(--text-3); }
#record-content table { width: 100%; border-collapse: collapse; font-size: var(--t-md); }
#record-content th { text-align: left; font-size: var(--t-xs); font-weight: 600; color: var(--text-3); padding: 6px 10px; border-bottom: 1px solid var(--line); }
#record-content td { padding: 3px 10px; border-bottom: 1px solid var(--line-soft); }
#record-content tr:hover td { background: var(--glass-hi); }
#record-content dl { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 8px 16px; }
#record-content dt { color: var(--text-3); font-size: var(--t-sm); }
#record-content h3 { font-size: var(--t-lg); margin-top: 8px; }
#record-content section { padding: 12px; border-radius: var(--r-in); border: 1px solid var(--line-soft); display: grid; gap: 8px; }
#record-content .back { justify-self: start; }
.stages li.sel .num { background: var(--sel); border-color: var(--sel); color: var(--accent-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sel) 22%, transparent), 0 0 16px var(--sel); }
.stages li.sel .sn { color: var(--sel); }
.rpin { position: absolute; top: -4px; height: 22px; width: 0; z-index: 2; pointer-events: none; }
.rpin[hidden] { display: none; }
.rpin::before { content: ""; position: absolute; left: -1px; top: 26px; width: 2px; height: 64px; background: linear-gradient(var(--sel), transparent); }
.rpin::after { content: ""; position: absolute; left: -10px; top: 14px; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--sel); background: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7), 0 0 0 6px color-mix(in srgb, var(--sel) 25%, transparent), 0 0 20px var(--sel); }
.rpin span { position: absolute; left: 18px; top: 14px; padding: 2px 10px; border-radius: 999px; background: var(--glass-solid); border: 1px solid var(--sel); font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--text); }
.kpi.sel, .decision.sel, .metric-row button.sel, .hero.sel, .dept-big.sel { border-color: var(--sel); outline: 1px solid var(--sel); outline-offset: -1px; background-color: color-mix(in srgb, var(--sel) 7%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--sel) 25%, transparent); }
.drill { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(170px, 230px) minmax(0, 1fr); }
.drill-sum { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px; border-right: 1px solid var(--line-soft); }
.drill-sum:empty { display: none; }
.drill-sum .ds-name { font-size: var(--t-sm); color: var(--text-2); font-weight: 600; }
.drill-sum .ds-big { font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.drill-sum .ds-big.none { font-size: var(--t-xl); color: var(--text-3); }
.drill-sum .ds-scope { font-size: var(--t-xs); color: var(--text-3); }
.drill-sum .flag { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--warn); background: var(--warn-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 50%, transparent); }
.drill-sum .ds-note { margin-top: 10px; font-size: var(--t-xs); color: var(--text-3); line-height: 1.45; }
.pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: var(--t-xs); font-weight: 600; background: var(--accent-soft); color: var(--text); }
.pill.good { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.pill.bad { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
#record-content td:last-child, #record-content th:last-child { text-align: right; }

.pager { display: flex; gap: 8px; flex-wrap: wrap; }

@media (min-height: 860px) and (min-width: 1181px) {
  /* Keep the full river and verification history readable when the content needs more than one screen. */
  .dash { grid-template-rows: auto auto minmax(324px, 1fr) auto; }
}
@media (max-width: 1180px) {
  .mid > .atlas, .mid > .side, .cols > .decide { grid-column: auto; }
  .cols, .cols-sk { grid-template-columns: 1fr 1fr; }
  .top { flex-wrap: wrap; height: auto; padding: 8px 16px; gap: 12px; }
  .tools { margin-left: 0; flex-wrap: wrap; }
  .kpis, .kpis-sk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mid { grid-template-columns: 1fr; }
  .atlas { min-height: 380px; }
  .bottom, .bottom-sk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stages .sn { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .sk-bar { animation: none; }
  .kpi, .aquis img, .aquis .orb-cv { transition: none; }
  .wavefm rect { animation: none; }
}

/* Night: the water stays blue; orange carries the accents (rings, legend, end node) */
[data-theme="dark"] .stages .num { border-color: var(--accent); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 45%, transparent); }
[data-theme="dark"] .rlegend i.end { background: transparent; border-color: var(--accent); }
[data-theme="light"] .kpi::after { opacity: .5; }

/* ==== Apple glass language (owner 2026-10-28): one frosted material for every card, control, popover, tooltip
   and the drawer. Blur 26px + saturation, a translucent tint per theme, a 1px inner highlight and a soft deep
   shadow. data-lowfx (no backdrop-filter, a weak device, or reduced transparency) = solid tint, no blur. ==== */
:root, [data-theme="aqua"] {
  --gl-fill: rgba(10, 40, 74, .52); --gl-fill-strong: rgba(8, 32, 60, .78); --gl-solid: #0a2a4c;
  --gl-hi: rgba(190, 240, 255, .16); --gl-edge: rgba(140, 220, 255, .2); --gl-shadow: 0 18px 48px rgba(0, 8, 24, .5), 0 2px 8px rgba(0, 10, 30, .3);
  --gl-blur: blur(26px) saturate(170%); --gl-row: rgba(120, 215, 255, .1);
}
[data-theme="technium"] {
  --sel: #38bdf8;
  --bg: #090d14; --bg-2: #121a26;
  --glass: linear-gradient(180deg, rgba(30, 40, 54, .72), rgba(16, 23, 34, .8));
  --glass-solid: #141c27; --glass-hi: rgba(226, 236, 248, .06);
  --line: rgba(148, 163, 184, .2); --line-soft: rgba(148, 163, 184, .1); --line-strong: rgba(56, 189, 248, .4);
  --text: #f1f5f9; --text-2: #a3b1c4; --text-3: #7f8da1;
  --accent: #38bdf8; --accent-2: #f47920; --accent-soft: rgba(56, 189, 248, .14); --accent-ink: #06121c;
  --brand: #38bdf8; --brand-soft: rgba(56, 189, 248, .14);
  --good: #34d399; --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .14); --bad: #f87171;
  --card-shadow: 0 1px 0 rgba(226, 236, 248, .08) inset, 0 14px 36px rgba(0, 0, 0, .55);
  --glow: 0 0 0 1px rgba(56, 189, 248, .12), 0 0 24px rgba(56, 189, 248, .1);
  --web: 56, 189, 248; --map-sea: #0a0f17; --land-a: #1e2a3a; --land-b: #121a26; --land-dot: rgba(148, 163, 184, .14); --state: rgba(148, 190, 230, .4); --coast: #38bdf8; --coast-glow: .5;
  --pt: #7dd3fc; --pt-ring: #f1f5f9; --wh: #f47920; --wh-fill: rgba(40, 20, 0, .6); --state-glow: .25;
  --gl-fill: rgba(22, 30, 42, .66); --gl-fill-strong: rgba(18, 25, 36, .86); --gl-solid: #161f2c;
  --gl-hi: rgba(255, 255, 255, .14); --gl-edge: rgba(148, 163, 184, .22); --gl-shadow: 0 18px 48px rgba(0, 0, 0, .6), 0 2px 8px rgba(0, 0, 0, .35);
  --gl-blur: blur(24px) saturate(140%); --gl-row: rgba(148, 163, 184, .1);
  color-scheme: dark;
}
[data-theme="dark"] {
  --sel: #f47920; --accent: #f47920; --accent-2: #ff9a3d; --accent-soft: rgba(244, 121, 32, .15); --line-strong: rgba(244, 121, 32, .45);
  --glow: 0 0 0 1px rgba(244, 121, 32, .14), 0 0 24px rgba(244, 121, 32, .1); --web: 244, 121, 32; --coast: #f47920; --pt: #ffb15a;
  --gl-fill: rgba(18, 16, 15, .62); --gl-fill-strong: rgba(14, 12, 11, .86); --gl-solid: #141210;
  --gl-hi: rgba(255, 220, 190, .12); --gl-edge: rgba(255, 255, 255, .1); --gl-shadow: 0 18px 48px rgba(0, 0, 0, .7), 0 2px 8px rgba(0, 0, 0, .4);
  --gl-blur: blur(26px) saturate(150%); --gl-row: rgba(244, 121, 32, .1);
}
[data-theme="light"] {
  --bg: #ffffff; --bg-2: #ffffff;
  --gl-fill: rgba(255, 255, 255, .68); --gl-fill-strong: rgba(255, 255, 255, .88); --gl-solid: #ffffff;
  --gl-hi: rgba(255, 255, 255, .95); --gl-edge: rgba(15, 40, 70, .1); --gl-shadow: 0 16px 40px rgba(20, 50, 90, .12), 0 1px 3px rgba(20, 50, 90, .08);
  --gl-blur: blur(28px) saturate(180%); --gl-row: rgba(10, 116, 224, .07);
}
[data-theme="light"] body { background: #ffffff; }
.card, .top-glass, .seg, .gsel, .who, .srcnote, .atip, dialog#records, .gpop {
  background: var(--gl-fill); border: 1px solid var(--gl-edge);
  -webkit-backdrop-filter: var(--gl-blur); backdrop-filter: var(--gl-blur);
  box-shadow: inset 0 1px 0 var(--gl-hi), var(--gl-shadow);
}
/* The top sheen sits under the content (an overlay above it would wash out headings, most visibly in Day). */
.card::before { background: linear-gradient(180deg, var(--gl-hi), transparent 34%); opacity: .35; z-index: 0; }
:where(.card) > :where(*) { position: relative; z-index: 1; }
[data-theme="light"] .card::before { opacity: 0; }
[data-theme="technium"] .card { background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .014) 0 1px, rgba(0, 0, 0, .02) 1px 2px), linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 40%); border-top-color: rgba(226, 236, 248, .3); }
[data-theme="technium"] .card::after { content: ""; position: absolute; left: 14px; right: 14px; top: -1px; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7) 30%, rgba(56, 189, 248, .8) 60%, transparent); }
.seg { border-radius: 12px; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent); }
#themes { --sea-ink: var(--text-2); --sea-ink-hi: var(--text); --sea-accent: var(--accent); --sea-accent-ink: var(--accent-ink); --sea-line: var(--line-soft); }
.who { border-radius: 12px; }
:root[data-lowfx] .card, :root[data-lowfx] .seg, :root[data-lowfx] .gsel, :root[data-lowfx] .who, :root[data-lowfx] .srcnote,
:root[data-lowfx] .atip, :root[data-lowfx] dialog#records, :root[data-lowfx] .gpop { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--gl-solid); }
/* The map legend and "fit" button are their own small blurred surfaces, outside the shared glass list above;
   a weak device/reduced-transparency still paid for their live blur. Same solid-fallback shape as the rest. */
:root[data-lowfx] .alegend, :root[data-lowfx] .fit { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--gl-solid); }
/* The atlas tie animation is a continuous, non-composited stroke-dashoffset loop; a weak device/reduced-transparency
   already turns off every other moving effect, so it drops this one too (prefers-reduced-motion already does). */
:root[data-lowfx] #amap .tie-flow { animation: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .seg, .gsel, .who, .srcnote, .atip, dialog#records, .gpop { background: var(--gl-solid); }
}
/* Frost (owner 2026-10-29, CEO speed 2): the same glass, blurred from one sea snapshot refreshed at most 4x a second
   (ceo-sea-exact.js frost) instead of re-blurring the moving sea under every card on every frame. The snapshot image
   and its size are written into #ceo-frost; until it exists, and under data-lowfx, the rules above apply unchanged. */
:root[data-frost]:not([data-lowfx]):not([data-theme="technium"]) :is(.card, .seg, .gsel, .who):not(:root[data-sea="on"] .river),
:root[data-frost][data-sea="on"]:not([data-lowfx]):not([data-theme="technium"]) .card.river .stages {
  -webkit-backdrop-filter: none; backdrop-filter: none;
  background-attachment: scroll, fixed; background-position: 0 0, 0 0; background-repeat: no-repeat;
}

/* ---- glass popover (period): frosted list, checkmark, hover/keyboard highlight, spring-in 160 ms ---- */
.reporting-period { position: relative; display: inline-flex; align-items: center; gap: 8px; }
/* Custom-range date inputs, shown only when the reporting period is "Custom range". */
.period-custom { display: inline-flex; align-items: center; gap: 6px; }
.period-custom[hidden] { display: none; }
.period-custom input[type="date"] { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--glass-solid); color: var(--text); font-size: var(--t-sm); font-family: inherit; cursor: pointer; }
.period-custom input[type="date"]:hover, .period-custom input[type="date"]:focus-visible { border-color: var(--line-strong); outline: none; }
.period-custom input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.6); cursor: pointer; }
.period-custom-sep { color: var(--text-3); }
.gsel-native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; clip: rect(0 0 0 0); }
.gsel-wrap { position: relative; }
.gsel { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 12px; border-radius: 12px; font-size: var(--t-sm); font-weight: 600; color: var(--text); cursor: pointer; white-space: nowrap; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.gsel:hover, .gsel-wrap.open .gsel { border-color: var(--line-strong); }
.gsel .gsel-cal { width: 17px; height: 17px; color: var(--accent); }
.gsel .gsel-chev { width: 14px; height: 14px; color: var(--text-3); transition: transform .16s var(--ease); }
.gsel-wrap.open .gsel-chev { transform: rotate(180deg); }
.gsel-wrap.compact .gsel { height: 30px; padding: 0 10px; font-size: var(--t-xs); border-radius: 10px; }
.gpop { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; min-width: max(100%, 196px); padding: 6px; border-radius: 14px; background: var(--gl-fill-strong); outline: none;
  transform-origin: 12% 0; animation: gpop-in .16s cubic-bezier(.2, 1.3, .35, 1) both; }
.gpop[hidden] { display: none; }
@keyframes gpop-in { from { opacity: 0; transform: translateY(-4px) scale(.96); } }
.gopt { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 8px; border-radius: 9px; font-size: var(--t-sm); font-weight: 500; color: var(--text); cursor: pointer; white-space: nowrap; user-select: none; }
.gopt .gchk { width: 15px; height: 15px; stroke-width: 2.4; color: var(--accent); visibility: hidden; }
.gopt[aria-selected="true"] { font-weight: 650; }
.gopt[aria-selected="true"] .gchk { visibility: visible; }
.gopt.on { background: var(--accent); color: var(--accent-ink); }
.gopt.on .gchk { color: var(--accent-ink); }
.atip { border-radius: 12px; }

/* ---- right-side stage drawer: slides in over the page edge; the dashboard stays visible on the left ---- */
dialog#records { inset: 12px 12px 12px auto; width: min(468px, calc(100vw - 24px)); height: auto; max-height: none; border-radius: 22px; background: var(--gl-fill-strong);
  z-index: 30; }
dialog#records[open] { animation: dw-in .34s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes dw-in { from { transform: translateX(calc(100% + 24px)); } }
#records header { align-items: flex-start; padding: 18px 18px 12px 22px; gap: 12px; border-bottom: 0; }
.rec-head { display: grid; gap: 4px; min-width: 0; }
.rec-kicker { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); }
.rec-kicker:empty { display: none; }
#records h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
#records .rec-meta { margin-left: auto; align-self: center; }
#records .back-btn { flex: none; height: 34px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--gl-edge); background: var(--glass-hi); color: var(--text); font-weight: 600; }
.drill { display: flex; flex-direction: column; }
.drill-sum { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 0 22px 10px; border-right: 0; }
.drill-sum .ds-big { font-size: 30px; }
.drill-sum .ds-note { margin-top: 0; flex-basis: 100%; }
#record-content { padding: 4px 22px 22px; gap: 14px; }
#record-content[aria-busy="true"] { opacity: .6; transition: opacity .2s; }
.dw-loading { color: var(--text-2); }
.dw-scope { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dw-note { font-size: var(--t-xs); color: var(--text-3); }
.dw-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dw-tiles[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dw-tile { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--gl-edge); background: var(--glass-hi); display: grid; gap: 2px; min-width: 0; }
.dw-tile b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dw-tile span { font-size: var(--t-xs); color: var(--text-2); }
.dw-break { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--gl-row); }
.dw-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dw-line { font-size: var(--t-sm); color: var(--text-2); }
.dw-line b { color: var(--text); font-variant-numeric: tabular-nums; }
.dw-status { display: flex; flex-wrap: wrap; gap: 6px; }
.dw-status li { display: inline-flex; gap: 6px; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: var(--t-xs); background: var(--glass-hi); border: 1px solid var(--gl-edge); color: var(--text-2); max-width: 100%; }
.dw-status li span { overflow-wrap: anywhere; }
.dw-status li b { color: var(--text); font-variant-numeric: tabular-nums; }
.dw-aging h3, .dw-repbox h3 { font-size: var(--t-md); font-weight: 600; margin-bottom: 8px; }
.dw-hist { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; height: 84px; align-items: end; }
.dw-bar { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 4px; min-width: 0; }
.dw-bar i { align-self: end; display: block; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent)); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 30%, transparent); }
.dw-bar.late i { background: linear-gradient(180deg, var(--warn), color-mix(in srgb, var(--warn) 20%, transparent)); }
.dw-bar span { font-size: 9.5px; color: var(--text-3); text-align: center; white-space: nowrap; letter-spacing: -.02em; }
.dw-reps { display: flex; flex-wrap: wrap; gap: 6px; }
#records .dw-rep, #records .dw-owner { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; border: 1px solid var(--gl-edge); background: var(--glass-hi); color: var(--text); border-radius: 999px; padding: 2px 10px 2px 2px; font-size: var(--t-xs); cursor: pointer; height: auto !important; }
.dw-rep b { color: var(--text-2); font-variant-numeric: tabular-nums; }
#records .dw-rep:hover, #records .dw-owner:hover { border-color: var(--line-strong); }
#records .dw-owner { border-color: transparent; background: transparent; padding: 0 6px 0 0; text-align: left; }
.dw-owner span, .dw-rep span { overflow-wrap: anywhere; text-align: left; }
.av { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h, 200) 70% 52%), hsl(calc(var(--h, 200) + 40) 70% 40%)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
#records .dw-chip { height: 28px !important; border-radius: 999px !important; font-size: var(--t-xs) !important; }
#records .dw-chip:disabled { opacity: .45; cursor: default; }
.dw-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--gl-edge); background: var(--glass-hi); }
.dw-search .i { width: 16px; height: 16px; color: var(--text-3); }
.dw-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: var(--t-sm); color: var(--text); }
.dw-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dw-table { font-size: var(--t-sm) !important; table-layout: fixed; }
.dw-table th.ref { width: 27%; } .dw-table th.days { width: 12%; } .dw-table th.own { width: 32%; } .dw-table th.val { width: 16%; }
.dw-table.no-value th.own, .dw-table.no-days th.own { width: 38%; }
.dw-ref { white-space: nowrap; font-size: 12px; letter-spacing: -.01em; }
.dw-table td { padding: 8px 6px !important; vertical-align: middle; overflow-wrap: anywhere; }
.dw-table th { padding: 6px !important; }
.dw-table tbody tr { cursor: pointer; }
.dw-table tbody tr:hover td { background: var(--gl-row) !important; }
.dw-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.dw-table td.late { color: var(--warn); font-weight: 600; }
.dw-table .none, .dw-table .cust.none { color: var(--text-3); }
#record-content .dw-table td:last-child, #record-content .dw-table th:last-child { text-align: right; }
.dw-ref { font-weight: 600; text-decoration: none; color: var(--accent); }
.dw-ref:hover { text-decoration: underline; }
.dw-pager { display: flex; align-items: center; gap: 8px; }
.dw-pager .dw-note { margin-right: auto; }
.dw-office { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 650; text-decoration: none; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.dw-office .i { width: 16px; height: 16px; stroke-width: 2.2; }
.dw-src { font-size: 11px; color: var(--text-3); }
.rv-review { display: block; margin: 2px auto 0; height: 22px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--gl-edge); background: var(--gl-fill); color: var(--text-2); font-size: 11px; font-weight: 600; cursor: pointer; white-space: nowrap; -webkit-backdrop-filter: var(--gl-blur); backdrop-filter: var(--gl-blur); }
.rv-review:hover { color: var(--text); border-color: var(--line-strong); }
.stages > li { flex-direction: column; align-items: center; }
@media (max-width: 700px) {
  dialog#records { inset: auto 0 0 0; width: 100vw; height: 88vh; border-radius: 22px 22px 0 0; }
  dialog#records[open] { animation-name: dw-up; }
  @keyframes dw-up { from { transform: translateY(100%); } }
  .top { gap: 8px; }
  .dw-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Keep the phone title and Close together; the count/scope gets its own row. */
@media (max-width: 480px) {
  #records > header { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title close" "meta meta"; }
  #records > header > .rec-head { grid-area: title; }
  #records > header > #record-close { grid-area: close; }
  #records > header > .rec-meta { grid-area: meta; justify-self: start; margin-left: 0; max-width: 100%; white-space: normal; }
}

/* ---- the shared IOVO sea (../shared/iovo-sea, loaded after first paint; its canvas sits fixed at z-index -1 behind
   the page). While it runs, the water draws the Pipeline River through the river band, so the SVG stream steps aside. ---- */

:root[data-sea="on"] .card.river { background: linear-gradient(180deg, color-mix(in srgb, var(--gl-fill) 40%, transparent), transparent 46%); -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Water on/off never changes geometry (a late layout shift would move a click target under the pointer). */
:root[data-sea="on"] .card.river .stages-sk, :root[data-sea="on"] .card.river .stages { border-radius: 0 0 14px 14px; background: color-mix(in srgb, var(--gl-fill) 70%, transparent); -webkit-backdrop-filter: var(--gl-blur); backdrop-filter: var(--gl-blur); }
:root[data-lowfx][data-sea="on"] .card.river .stages { background: var(--gl-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
.wl-ring { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid var(--accent); pointer-events: none; animation: wl-ring .85s ease-out forwards; z-index: 5; }
@keyframes wl-ring { to { transform: scale(18); opacity: 0; } }
.wl-hit { animation: wl-hit .7s ease-out; }
@keyframes wl-hit { 0% { box-shadow: 0 0 0 0 var(--accent); } 100% { box-shadow: 0 0 0 14px transparent; } }
@media (prefers-reduced-motion: reduce) {
  dialog#records[open] { animation: none; }
  .gpop { animation: none; }
  .wl-ring { animation: none; display: none; } .wl-hit { animation: none; }
}

/* ---- phone (390 wide): one column, the river scrolls inside its card, nothing pushes the page sideways ---- */
@media (max-width: 700px) {
  main { padding: 4px 12px 120px; }
  .top { padding: 8px 12px; }
  .brand .logo { width: 36px; height: 35px; }
  .ttl b { font-size: 17px; white-space: normal; }
  .ttl .tag { display: none; }
  .when { padding: 0 8px 0 0; border-left: 0; }
  .kpis, .kpis-sk, .cols, .cols-sk, .bottom, .bottom-sk { grid-template-columns: minmax(0, 1fr); }
  .kpi .kv { font-size: 28px; }
  .river .ch { flex-wrap: wrap; gap: 4px 12px; padding: 0 14px; }
  .river .eyebrow { flex-basis: 100%; }
  .rlegend { margin-left: 0; flex-wrap: wrap; gap: 6px 14px; }
  .rv { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .rv > .rv-water, .rv > .stages, .rv > .stages-sk { min-width: 860px; }
  .panel h3, .sk-card .sk-title, .ach h2 { white-space: normal; }
  .ach { width: 100%; padding-right: 14px; }
  .aquis { right: 8px; bottom: 8px; width: var(--aquis-corner-size); }
  .aquis .orb-cv { width: var(--aquis-corner-size); height: var(--aquis-corner-size); }
}

/* Average-in-stage labels arrive after first paint: keep the river the same height as before them. */
.stages .num { margin-bottom: 2px; }
.stages .sa { font-size: 13px; line-height: 1.15; }
.stages .sl { font-size: 10.5px; line-height: 1.15; }
.stages .sv { line-height: 1.05; }
.stages .flag { margin-top: 2px; }
.verify .hero .hl { gap: 0 8px; line-height: 1.25; }
.verify .rows.quad { margin-top: 6px; grid-auto-rows: 29px; }
@media (min-height: 1000px) { .verify .rows.quad { grid-auto-rows: 40px; } }

/* ---- review round 1 (fresh-context visual + code review) ---- */
/* Stage columns align at the top whether or not a stage carries a flag. */
.stages > li { justify-content: flex-start; }
/* Night: every accent is IOVO orange (the AQUIS drop stays the shared blue mark). */
[data-theme="dark"] { --brand: #f47920; --brand-soft: rgba(244, 121, 32, .14); }
/* Technium: thinner frost so the Technium web reads through the brushed gunmetal glass. */
[data-theme="technium"] { --gl-blur: blur(10px) saturate(130%); --gl-fill: rgba(22, 30, 42, .58); }
[data-theme="technium"] body { background:
  repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px),
  radial-gradient(1200px 600px at 50% -10%, #1a2433, transparent 70%), #090d14; }
/* The popover is see-through frost: the blur behind it must read as glass, not a flat panel. */
/* Menus are opaque glass (owner C7): a solid backing, so rows underneath never show through, above every card and drawer row. */
:root .gpop { z-index: 80; background: color-mix(in srgb, var(--gl-solid) 96%, var(--accent) 4%); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 18px 44px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06); }
[data-theme="light"] .gpop { background: #fff; box-shadow: 0 18px 44px rgba(10, 40, 60, .18); }
:root[data-lowfx] .gpop { background: var(--gl-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Drawer: wider, a pinned footer, and names that wrap only between words. */
dialog#records { width: min(520px, calc(100vw - 24px)); }
#record-content { overflow-wrap: normal; }
.dw-table td { overflow-wrap: normal !important; word-break: normal; hyphens: none; }
.dw-table th, .dw-table td.num, .dw-ref { white-space: nowrap; }
.dw-table th.ref { width: 26%; } .dw-table th.days { width: 11%; } .dw-table th.own { width: 31%; } .dw-table th.val { width: 15%; }
.rec-foot { flex: none; display: flex; padding: 12px 22px 18px; border-top: 1px solid var(--gl-edge); background: color-mix(in srgb, var(--gl-solid) 55%, transparent); }
.rec-foot:empty { display: none; }
.rec-foot .dw-office { justify-self: auto; }
/* Empty aging bins keep a baseline (zero, not missing). */
.dw-bar.zero i { height: 2px !important; opacity: .35; box-shadow: none; }
/* Phone: AQUIS sits at the end of the page as a small glass button, never over the figures. */
@media (max-width: 700px) {
  main { padding-bottom: 12px; }
  .aquis { position: relative; right: auto; bottom: auto; margin: 0 auto 20px; width: var(--aquis-corner-size); height: var(--aquis-corner-size); border-radius: 50%; overflow: visible; background: var(--gl-fill-strong); border: 1px solid var(--gl-edge); box-shadow: var(--gl-shadow); -webkit-backdrop-filter: var(--gl-blur); backdrop-filter: var(--gl-blur); place-items: center; }
  .aquis .orb-cv { width: var(--aquis-corner-size); height: var(--aquis-corner-size); margin: 0; }
  .aquis .orb-name { display: none; }
}
/* The drawer list fades under its pinned footer instead of ending in a hard cut. */
#record-content { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent); padding-bottom: 30px; }
/* Avatars use the theme accent (as in the approved prototype), so Night stays black and orange. */
.av { background: linear-gradient(135deg, var(--accent-2), var(--accent)) !important; color: var(--accent-ink); }
.gopt.on:not([aria-selected="true"]) { background: var(--accent); }
.gopt[aria-selected="true"].on { background: color-mix(in srgb, var(--accent) 82%, transparent); }
/* Phone: the river strip fades at its right edge, so it reads as scrollable rather than cut. */
@media (max-width: 700px) {
  .rv { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
}
/* Drawer: a little more room for customer names. */
.dw-table th.ref { width: 23%; } .dw-table th.days { width: 10%; } .dw-table th.own { width: 29%; } .dw-table th.val { width: 14%; }
.dw-table.no-value th.own, .dw-table.no-days th.own { width: 34%; }
/* Service & warranty with the CRM modules (3–4 rows) stays inside its fixed-height card. */
.dbody:has(.rows > :nth-child(3)) { gap: 10px; }
.dbody .rows:has(> :nth-child(3)) { gap: 3px; }
.dbody .rows:has(> :nth-child(3)) .metric-row button { min-height: 23px; padding: 1px 10px; font-size: var(--t-xs); }
.dbody .rows:has(> :nth-child(3)) .mv { font-size: var(--t-sm); }
/* Owner C8: row labels wrap instead of clipping and figures never shrink; narrow cards stack the ring above its rows. */
.dept { container-type: inline-size; }
.dbody .metric-row .ml { white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
.dbody .metric-row .mv { flex: none; }
@container (max-width: 210px) { .dbody:has(> .rows) { flex-direction: column; align-items: stretch; } .dbody > .dept-big { align-self: center; } }

/* ---- PAR-1027 ceo-truth: flow line, rep tiles, the plain sea (no WebGL) ---- */
/* Completed flow this period beside a stage that counts what is waiting ("37 funded · This month"). */
.stages .sf { margin-top: 2px; font-size: 11px; line-height: 1.2; color: var(--text-2); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
/* Rep rows: rank badge | full name (one line, ellipsis, full name in the tooltip) · sales and change | amount. */
.reps .tiles:has(.rep) { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; align-content: start; flex: none; min-height: 0; gap: 2px; margin-inline: -5px; }
.tiles .metric-row.rep { height: auto; }
.tiles .metric-row.rep > button { height: auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 10px; min-height: 32px; padding: 1px 12px 1px 4px; }
.tiles .rep .rk { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700;
  color: var(--accent-ink, #001b26); background: var(--accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent); }
.tiles .rep .ml { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.tiles .rep .rn { min-width: 0; flex: 0 1 auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.tiles .rep .ml small { flex: none; white-space: nowrap; }
.tiles .rep .chg.up { color: var(--good, #34d399); }
.tiles .rep .chg.down { color: var(--warn); }
.tiles .rep .mv { font-size: var(--t-md); font-variant-numeric: tabular-nums; }
/* The flat sea (shared engine, no WebGL): the six sea-life families on a 2D canvas in the river band. */
.rv > .iovo-sea-life { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.rv > .stages, .rv > .rpin { z-index: 2; }
/* US map fills its card: title on top; legend and figures stand in a bottom-left column; the map takes the rest. */
@media (min-width: 701px) {
  .ach::before { height: 56px; }
  .ach .sub { order: 2; max-width: 250px; }
  .ach .sub .det { display: block; }
  .alegend { order: 1; flex-direction: column; flex-wrap: nowrap; gap: 3px; align-items: flex-start; max-width: 250px; }
  /* Narrow card: figures and legend in a strip under the map, so the map takes the full width. */
  .ach.strip .sub { display: block; max-width: none; padding-right: 8px; }
  .ach.strip .sub .det, .ach.strip .sub .sep { display: inline; }
  .ach.strip .alegend { flex-direction: row; flex-wrap: wrap; gap: 3px 14px; align-items: center; max-width: none; }
}


/* ---- CEO finish (PAR-1027, Oct 29): translucent glass so the sea shows through; rep periods; calm empty figure ---- */
:root, [data-theme="aqua"] { --gl-fill: rgba(10, 40, 74, .42); --gl-blur: blur(6px) saturate(160%); }
[data-theme="dark"] { --gl-fill: rgba(18, 16, 15, .52); --gl-blur: blur(6px) saturate(140%); }
[data-theme="light"] { --gl-fill: rgba(255, 255, 255, .62); --gl-blur: blur(6px) saturate(170%); }
/* Top representatives: glass segmented period control, five compact rows, "View all" opens the payout records. */
.reps .ch { margin-bottom: 6px; }
.rep-all { margin-left: auto; padding: 2px 10px; height: 24px; border-radius: 999px; border: 1px solid var(--line-soft); background: var(--gl-row, var(--glass-hi)); color: var(--accent); font: inherit; font-size: 11.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.rep-all:hover:not(:disabled) { border-color: var(--line-strong); }
.rep-all:disabled { color: var(--text-3); cursor: default; }
.reps[aria-busy="true"] .tiles { opacity: .55; transition: opacity .2s var(--ease); }
.tiles .rep .rk { width: 19px; height: 19px; font-size: 11px; }
.tiles .rep .rn { font-size: 13px; }
.tiles .rep .ml small { font-size: 11px; }
/* Collected without a record: the same tile height, a small clock and a calm line, not an error. */
.kv.none { display: flex; align-items: center; gap: 8px; }
.kv.none .i { flex: none; width: 18px; height: 18px; color: var(--accent); opacity: .75; stroke-width: 1.8; }
/* Ring labels fit inside the ring in EN and ES ("en existencia" wraps onto two short lines). */
.ring { align-content: center; gap: 3px; }
.ring b { line-height: 1; }
.ring small { max-width: 46px; margin: 0 auto; font-size: 8.5px; line-height: 1.05; white-space: normal; overflow-wrap: normal; text-wrap: balance; }
/* Map: legend items and figures never break inside a phrase; city labels for the places with installs. */
.alegend li, .ach .sub > span { white-space: nowrap; }
.ach.strip .sub { display: flex; flex-wrap: wrap; column-gap: 0; }
.ach.strip .sub .sep { white-space: pre; }
#amap .city { font-family: var(--font); font-weight: 600; fill: var(--text); paint-order: stroke; stroke: var(--map-sea); stroke-linejoin: round; opacity: .92; pointer-events: none; }
#amap .city.minor { font-weight: 500; fill: var(--text-2); }
#amap .city-dot { fill: var(--text); opacity: .7; }

/* Rings (Service, Inventory, People): one size and stroke; the number and label scale to fit inside (ceo-view.js ring). */
.ring, .ring.none, .dbody:has(.rows > :nth-child(3)) .ring { width: 84px; height: 84px; padding: 0 12px; box-sizing: border-box; overflow: hidden; background: radial-gradient(circle, var(--glass-solid) 79%, transparent 80.5%), conic-gradient(var(--accent), var(--brand), var(--accent)); }
.ring.none { background: radial-gradient(circle, var(--glass-solid) 79%, transparent 80.5%), conic-gradient(var(--line), var(--line)); }
.ring b { display: block; font-size: 21px; white-space: nowrap; }
.ring small { font-size: 10px; white-space: nowrap; overflow: visible; }


/* ==== Water Lab preview themes (owner order 2026-10-29): Aqua, Night ('dark') and Day ('light') use the preview's
   colour tokens exactly (water-lab/ceo.html :root blocks), mapped onto this page's token names. ==== */
:root, [data-theme="aqua"] {
  --bg: #03101d; --bg-2: #062238; --gl-fill: rgba(6, 26, 44, .74); --gl-fill-strong: rgba(7, 30, 50, .9); --gl-solid: rgba(7, 30, 50, .9); --glass-solid: rgba(7, 30, 50, .9);
  --line: rgba(120, 230, 255, .16); --gl-edge: rgba(120, 230, 255, .16); --line-strong: rgba(120, 230, 255, .32);
  --text: #effcff; --text-2: #a7c7d4; --text-3: #7d9fae; --accent: #3ee6d3; --accent-2: #29b6f6; --accent-ink: #022027; --sel: #3ee6d3;
  --good: #3ee6a0; --warn: #ffb347; --bad: #ff6b6b; --accent-soft: rgba(62, 230, 211, .12); --glow: 0 0 24px rgba(62, 230, 211, .28);
  --gl-blur: saturate(150%) blur(16px); --gl-shadow: 0 12px 32px rgba(0, 0, 0, .28); --gl-hi: rgba(255, 255, 255, .05);
}
[data-theme="dark"] {
  --bg: #000; --bg-2: #0a0603; --gl-fill: rgba(12, 10, 9, .84); --gl-fill-strong: rgba(14, 11, 9, .95); --gl-solid: rgba(14, 11, 9, .95); --glass-solid: rgba(14, 11, 9, .95);
  --line: rgba(244, 121, 32, .16); --gl-edge: rgba(244, 121, 32, .16); --line-strong: rgba(244, 121, 32, .34);
  --text: #fff4ea; --text-2: #cdb29c; --text-3: #9b8270; --accent: #f47920; --accent-2: #ffa24c; --accent-ink: #1a0900; --sel: #f47920;
  --good: #7be495; --warn: #ffb347; --bad: #ff6b5b; --accent-soft: rgba(244, 121, 32, .12); --glow: 0 0 22px rgba(244, 121, 32, .28);
  --gl-blur: saturate(150%) blur(16px); --gl-shadow: 0 12px 32px rgba(0, 0, 0, .28); --gl-hi: rgba(255, 255, 255, .05);
}
[data-theme="light"] {
  --bg: #f5f7f9; --bg-2: #ffffff; --gl-fill: rgba(255, 255, 255, .86); --gl-fill-strong: rgba(255, 255, 255, .97); --gl-solid: rgba(255, 255, 255, .97); --glass-solid: rgba(255, 255, 255, .97);
  --line: rgba(15, 40, 60, .09); --gl-edge: rgba(15, 40, 60, .09); --line-strong: rgba(15, 40, 60, .18);
  --text: #0b2230; --text-2: #3e5866; --text-3: #5f7784; --accent: #0a8fb0; --accent-2: #f47920; --accent-ink: #fff; --sel: #0a8fb0;
  --good: #16a05a; --warn: #b86e00; --bad: #d03a3a; --accent-soft: rgba(10, 143, 176, .1); --glow: 0 0 0 transparent;
  --gl-blur: saturate(150%) blur(16px); --gl-shadow: 0 8px 24px rgba(20, 60, 80, .1); --gl-hi: #fff;
}
body { background: radial-gradient(120% 80% at 50% 0%, var(--bg-2), var(--bg)); }
[data-theme="light"] body { background: radial-gradient(120% 80% at 50% 0%, var(--bg-2), var(--bg)); }

/* ==== Water Lab preview KPI tile (verbatim .kpi rules from water-lab/ceo.html, scoped to .kpi.pv) ==== */
.kpis .kpi.pv { padding: 10px 16px 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: none; align-items: end; gap: 0 12px; cursor: pointer; min-height: 0; text-align: left; }
.kpis .kpi.pv:disabled { cursor: default; }
.kpi.pv::after { content: none; }
.kpi.pv .lab { grid-column: 1/-1; display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 650; color: var(--text); }
.kpi.pv .kic { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; border: 1px solid var(--line); }
.kpi.pv .kic .i { width: 16px; height: 16px; stroke-width: 1.8; }
.kpi.pv .v { font-size: 28px; margin-top: 2px; font-weight: 780; letter-spacing: -.025em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpi.pv .v.none { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 500; color: var(--text-2); letter-spacing: 0; line-height: 29.4px; }
.kpi.pv .v.none .i { flex: none; width: 18px; height: 18px; color: var(--accent); opacity: .75; }
.kpi.pv .d { grid-column: auto; font-size: 12.5px; color: var(--text-2); margin-top: 2px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kpi.pv .d b { color: var(--good); font-weight: 700; }
/* IOVO Office native ledgers: one quiet line under the AquaWorld CRM figure, its source in words. */
.kpi.pv .kn { grid-column: 1/-1; margin-top: 6px; padding-top: 5px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.3; color: var(--text-2); font-variant-numeric: tabular-nums; }
.kpi.pv .d b.w { color: var(--warn); }
.kpi.pv svg.spark { width: 120px; height: 40px; align-self: center; overflow: visible; }
.kpi.pv .chev { margin-left: auto; color: var(--text-3); grid-column: auto; grid-row: auto; }
@media (max-width: 700px) { .kpi.pv { grid-template-columns: 1fr; padding: 12px; } .kpi.pv .v { font-size: 24px; } .kpi.pv svg.spark { display: none; } .kpi.pv .lab { font-size: 12.5px; } .kpi.pv .d { white-space: normal; font-size: 11.5px; } }

/* ==== Water Lab preview Live AI verification card (verbatim .call/.ini/.wave/.score/.bar/.bl rules) ==== */
.verify.pv { display: flex; flex-direction: column; padding: 12px 16px; container-type: inline-size; }
.verify.pv .ch { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.verify.pv .ch h3 { margin: 0; min-width: 0; font-size: 16px; font-weight: 720; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.verify.pv .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); display: inline-block; flex: none; animation: pvlv 2s infinite; }
@keyframes pvlv { 50% { opacity: .4; } }
.verify.pv .lnk { all: unset; flex: none; margin-left: auto; font-size: 12.5px; text-decoration: none; font-weight: 650; color: var(--accent); white-space: nowrap; cursor: pointer; }
.verify.pv .lnk:disabled { cursor: default; opacity: .6; }
.verify.pv .sub { font-size: 12.5px; color: var(--text-2); margin: -4px 0 6px; }
.verify.pv .sub b { color: var(--text); font-weight: 700; }
.verify.pv .calls { flex: 0 0 auto; }
.verify.pv .calm { margin: 6px 0; font-size: 12.5px; color: var(--text-3); }
.verify.pv .calm.more { all: unset; box-sizing: border-box; display: block; width: 100%; margin: 4px 0; padding: 6px 10px; border: 1px dashed var(--line-strong); border-radius: 12px; font-size: 12.5px; font-weight: 650; color: var(--accent); cursor: pointer; text-align: center; }
.verify.pv .calm.more:disabled { color: var(--text-3); cursor: default; }
.verify.pv .call { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: 32px minmax(0, 1fr) 88px auto; gap: 10px; align-items: center; padding: 4px 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 6px; background: rgba(0, 0, 0, .08); }
[data-theme="light"] .verify.pv .call { background: rgba(255, 255, 255, .5); }
.verify.pv .call:hover, .verify.pv .call:focus-visible { border-color: var(--accent); }
.verify.pv .ini { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: var(--accent-soft); border: 1px solid var(--line-strong); color: var(--accent); }
/* The call label ("Verification call" / the longer "Llamada de verificación") and its date·duration line
   wrap instead of clipping: the narrow call row cannot show the Spanish label on one line at 1366-wide,
   so allow it to flow onto a second line rather than truncate. (Release-blocker: no clipped call labels.) */
.verify.pv .cwho { font-size: 12.5px; font-weight: 700; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.verify.pv .cwho span { display: block; font-weight: 500; color: var(--text-2); font-size: 11.5px; white-space: normal; }
.verify.pv .wave { display: flex; align-items: center; gap: 2px; height: 28px; }
.verify.pv .wave i { flex: 1; background: var(--accent); border-radius: 2px; height: 95%; transform: scaleY(var(--h, .6)); opacity: .85; }
@media (prefers-reduced-motion: no-preference) {
  .verify.pv .call.live .wave i { transform: scaleY(.316); animation: pvwv 1s ease-in-out infinite; }
}
/* The preview animates height (30% to 95%); the same motion as a compositor-only scale, so no layout runs per frame. */
@keyframes pvwv { 50% { transform: scaleY(1); } }
.verify.pv .ring-s { width: 34px; height: 34px; flex: none; }
.verify.pv .bar i { display: block; height: 100%; }
.verify.pv .bl i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.verify.pv .ini .i { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.verify.pv .score { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--good); white-space: nowrap; }
.verify.pv .score.warn, .verify.pv .score.bad { color: var(--warn); }
.verify.pv .score.info { color: var(--text-2); }
.verify.pv .ti { font-size: 13.5px; font-weight: 700; margin-top: 6px; }
.verify.pv .bar { display: flex; flex-shrink: 0; height: 8px; border-radius: 99px; overflow: hidden; background: var(--line); margin: 6px 0; }
.verify.pv .bl { display: flex; gap: 4px 14px; font-size: 11.5px; color: var(--text-2); flex-wrap: wrap; }
@container (max-width: 340px) { .verify.pv .call { grid-template-columns: 32px minmax(0, 1fr) 40px auto; gap: 8px; } }
@media (max-width: 700px) { .verify.pv .call { grid-template-columns: 36px minmax(0, 1fr) auto; } .verify.pv .call .wave { display: none; } }
@media (prefers-reduced-motion: reduce) { .verify.pv .wave i, .verify.pv .live-dot { animation: none; } }
.verify.pv .score.prog { color: var(--accent); }
.verify.pv .score.attn { color: var(--warn); }
.verify.pv .score.bad { color: var(--bad, var(--warn)); }
/* Sample calls: muted, non-interactive, with a small "Sample" chip so they are never mistaken for live data. */
.verify.pv .call.is-sample { cursor: default; opacity: .62; background: rgba(0, 0, 0, .04); border-style: dashed; }
[data-theme="light"] .verify.pv .call.is-sample { background: rgba(255, 255, 255, .35); }
.verify.pv .call.is-sample:hover, .verify.pv .call.is-sample:focus-visible { border-color: var(--line); }
.verify.pv .call.is-sample .sample-chip { grid-column: 1 / -1; justify-self: start; }
.verify.pv .sample-chip { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); background: var(--line); border-radius: 99px; padding: 1px 7px; line-height: 1.5; }
/* State legend under the call rows. */
.verify.pv .calls-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 2px; font-size: 11px; color: var(--text-2); }
.verify.pv .calls-legend .cl-it { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.verify.pv .calls-legend .cl-it i { width: 8px; height: 8px; border-radius: 50%; flex: none; }

.verify.pv .rows.quad { flex: none; display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 25px; gap: 4px; margin-top: 6px; }
.verify.pv .ch h3 { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: clamp(14px, 5.6cqi, 16px); }
.verify.pv .lnk { flex: none; padding: 2px 4px; border-radius: 8px; }
.verify.pv .lnk:hover, .verify.pv .lnk:focus-visible { background: var(--accent-soft); }

.ring b, .ring small { display: inline-block; max-width: none; }
.dbody .rows { overflow: hidden; }
.dbody .rows .metric-row button { min-height: 0; }
/* A narrow verification card keeps its full title; the link drops to its arrow (the label stays in aria-label). */
@container (max-width: 380px) { .verify.pv .lnk .lt { display: none; } }

/* ==== Owner C12 (2026-10-29): the preview's typography and selected-card glow ==== */
/* Font family exactly as water-lab/ceo.html (:root --font); body 14px/1.4 as the preview. */
:root { --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", monospace; }
body { font: 14px/1.4 var(--font); font-variant-numeric: tabular-nums; }
button { font: inherit; color: inherit; }
/* Preview .ch h3 / .rv-head h2 / .stage .nm and .ct weights and sizes. */
.ch h2, .ch h3, .panel h2, .panel h3, .atlas h2 { font-size: 16px; font-weight: 720; letter-spacing: -.01em; }
.river h2 { font-size: 19px; font-weight: 750; letter-spacing: -.01em; }
.stages .num { font-weight: 800; }
.stages .sn { font-size: 14px; font-weight: 700; }
.stages .sv { font-size: 23px; font-weight: 780; letter-spacing: -.02em; line-height: 1.15; }
/* Selected card: the preview's --glow plus an accent edge (Day theme has no glow, the edge carries it). */
.wl-sel { border-color: var(--accent) !important; box-shadow: var(--glow), 0 0 0 1px var(--accent) !important; }
.stages button.wl-sel { background: var(--accent-soft); }
/* Full-bleed density (structure-parity rule 2): 18 px gutters edge to edge. */
@media (min-width: 701px) { main, .top { padding-left: 18px; padding-right: 18px; } }

/* Rep last activity (owner 10:48): People card band strip + the rep list dialog. Theme tokens only (Aqua/Day/Night). */
[data-band="active"] { --band: var(--good); }
[data-band="recent"] { --band: var(--accent); }
[data-band="slowing"] { --band: var(--warn); }
[data-band="inactive"] { --band: var(--bad); }
[data-band="never"], [data-band="all"] { --band: var(--text-3); }
.card.dept:has(> .act-strip) { display: flex; flex-direction: column; }
.act-strip { display: flex; gap: 4px; padding: 0 12px 10px; margin-top: auto; container-type: inline-size; }
.act-strip[aria-busy="true"] { min-height: 24px; }
.act-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 7px; border-radius: 8px; border: 1px solid var(--line); background: var(--gl-fill, transparent); color: var(--text-2); font: 600 11px/1 inherit; cursor: pointer; white-space: nowrap; }
.act-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--band); flex: none; }
.act-chip b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.act-strip .act-chip { flex: 1 1 0; justify-content: center; min-width: 0; padding: 0 4px; }
.act-strip .act-chip span { display: none; }
.act-chip[aria-pressed="true"] { border-color: color-mix(in srgb, var(--band) 70%, transparent); background: color-mix(in srgb, var(--band) 14%, transparent); color: var(--text); }
.act-chip:hover { border-color: color-mix(in srgb, var(--band) 60%, transparent); }
/* People card breakdown (R5): top reps this period, active/former summary and the role mix. Real data only. */
.people-extra { padding: 0 12px 2px; display: flex; flex-direction: column; gap: 8px; }
.ppl-h { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.ppl-reps { display: flex; flex-direction: column; gap: 5px; }
.ppl-rep { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ppl-av { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 10.5px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--line-strong); }
.ppl-nm { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ppl-nm b { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ppl-nm small { font-size: 11px; color: var(--text-2); }
.ppl-roles { display: flex; flex-direction: column; gap: 4px; }
.ppl-role { font-size: 11px; color: var(--text-2); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; white-space: nowrap; }
.ppl-role b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.ppl-af { display: flex; gap: 6px; padding: 0 12px 6px; flex-wrap: wrap; }
.ppl-af .af-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--text-2); }
.ppl-af .af-tag b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.ppl-af .af-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; margin-right: 3px; }
.ppl-af .af-on::before { background: var(--good); }
.ppl-af .af-slow::before { background: var(--warn); }
.ppl-af .af-off::before { background: var(--text-3); }
.ppl-af .af-new::before { background: var(--accent); }
.ppl-af .af-lead b { font-size: 13px; }

/* People card (owner R6): overlapping photo stack of the top reps, role-mix bars. */
.ppl-stack { display: flex; align-items: center; padding-left: 4px; }
.ppl-stack__av { width: 32px; height: 32px; flex: none; margin-left: -8px; border-radius: 50%; display: grid; place-items: center; position: relative; overflow: hidden; font-weight: 800; font-size: 11px; color: var(--accent); background: var(--accent-soft); border: 2px solid var(--glass-solid); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.ppl-stack__av:first-child { margin-left: 0; }
.ppl-stack__av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ppl-lead { font-size: 11.5px; color: var(--text-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ppl-lead { max-width: 100%; }
.ppl-rolebar { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 8px; font-size: 11px; color: var(--text-2); }
.ppl-rolebar__lab { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ppl-rolebar__track { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--text) 8%, transparent); overflow: hidden; }
.ppl-rolebar__track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, transparent)); }
.ppl-rolebar b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Inventory card + drawer (owner R6): product lines as small 3D models with units on hand. */
.inv-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; padding: 8px 12px 4px; }
.inv-tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--glass-hi); min-width: 0; }
.inv-tile.is-low { border-color: color-mix(in srgb, var(--warn) 50%, transparent); }
.inv-tile__stage { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); display: grid; place-items: center; }
.inv-tile__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.inv-tile__meta b { font-size: 12px; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.inv-tile__units { font-size: 11px; color: var(--text-2); }
.inv-tile__units b { display: inline; font-size: 12px; color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; -webkit-line-clamp: none; }
.inv-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; padding: 1px 8px; border-radius: 99px; font-size: 10px; font-weight: 700; color: var(--warn); background: var(--warn-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 45%, transparent); }
.inv-chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.inv-more { align-self: center; justify-self: center; font-size: 11px; color: var(--text-3); padding: 8px; }

/* Service & warranty card: a real past-schedule figure fills the dead space (never filler). */
.dept-flags { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 0; }
.dept-flag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 11px; color: var(--text-2); border: 1px solid var(--line); }
.dept-flag b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.dept-flag.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: var(--warn-soft); }
.dept-flag.calm { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, transparent); }

/* Lazy 3D product thumbnail: committed poster first; the live glb canvas fades in over it. */
.ceo-model-thumb { position: relative; width: 100%; height: 100%; display: block; }
.ceo-model-thumb__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: opacity .4s var(--ease); }
.ceo-model-thumb__canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity .5s var(--ease); }
.ceo-model-thumb.is-dynamic.is-live .ceo-model-thumb__canvas { opacity: 1; }
.ceo-model-thumb.is-dynamic.is-live .ceo-model-thumb__poster { opacity: 0; }
.ceo-model-thumb--noposter { background: radial-gradient(ellipse at center, var(--glass-hi), transparent 70%); }

/* Inventory drawer: the same product tiles as the card, a touch larger. */
#records .rec-product--models { background: none; margin: 0 0 16px; }
#records .rec-product--models figcaption { margin-bottom: 8px; }
#records .rec-product--models .inv-products { padding: 0; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }

.act-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; color: var(--band); border: 1px solid color-mix(in srgb, var(--band) 55%, transparent); background: color-mix(in srgb, var(--band) 13%, transparent); }
.act-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.act-dlg { width: min(760px, 92vw); max-height: 84vh; padding: 0; border-radius: var(--r-card, 16px); border: 1px solid var(--line-strong, var(--line)); background: var(--glass-solid, var(--bg-2)); color: var(--text); box-shadow: var(--gl-shadow, 0 20px 60px rgba(0,0,0,.45)); display: flex; flex-direction: column; overflow: hidden; }
.act-dlg:not([open]) { display: none; }
.act-dlg::backdrop { background: rgba(4, 10, 20, .55); backdrop-filter: blur(4px); }
.act-hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 8px; }
.act-hd h2 { margin: 0; font-size: 16px; }
.act-x { border: 0; background: none; color: var(--text-2); font-size: 22px; cursor: pointer; line-height: 1; }
.act-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 10px; border-bottom: 1px solid var(--line); }
.act-sort { margin-left: auto; border: 1px solid var(--line); background: none; color: var(--text-2); border-radius: 8px; padding: 0 10px; font: 600 11.5px/24px inherit; cursor: pointer; }
.act-list { list-style: none; margin: 0; padding: 4px 10px; overflow: auto; flex: 1; }
.act-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 8px; border-bottom: 1px solid var(--line-soft, var(--line)); }
.act-nm, .act-when { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.act-nm strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-nm small, .act-when small { font-size: 11.5px; color: var(--text-2); }
.act-when { align-items: flex-end; text-align: right; flex: none; }
.act-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.act-more { border: 1px solid var(--line); background: none; color: var(--text); border-radius: 8px; padding: 4px 12px; cursor: pointer; }
.act-empty { padding: 18px 8px; color: var(--text-2); }

/* Instant record lists: scoped to detail drawers, independent of dashboard spacing. */
#records .rec-search { width:100%; padding:12px 14px; border:1px solid var(--gl-edge); border-radius:12px; color:var(--text); background:var(--glass-hi); font:inherit; }
#records .rec-product { margin:0 0 18px; text-align:center; background:radial-gradient(ellipse at center,var(--glass-hi),transparent 70%); }
#records .rec-product img { height:164px; max-width:100%; object-fit:contain; filter:drop-shadow(0 8px 20px var(--brand-soft)); }
#records .rec-product figcaption { font-size:11px; color:var(--text-3); }
#records .rec-item { border-bottom:1px solid var(--gl-edge); }
#records .rec-row { display:flex; align-items:center; gap:12px; width:100%; height:auto!important; padding:17px 0!important; text-align:left; background:transparent; border:0; border-radius:0; color:var(--text); font:inherit; cursor:pointer; }
#records .rec-row:focus-visible, #records .rec-search:focus-visible { outline:2px solid var(--brand); outline-offset:3px; }
#records .rec-name { flex:1; min-width:0; overflow-wrap:anywhere; font-weight:600; }
#records .rec-name small { display:block; margin-top:6px; color:var(--text-3); font-size:11px; font-weight:400; }
#records .unnamed { color:var(--text-3); font-weight:400; }
#records .rec-fact { font-size:12px; font-variant-numeric:tabular-nums; }
#records .rec-row .pill { white-space:normal; overflow-wrap:anywhere; text-align:center; flex:none; max-width:110px; font-size:10px; line-height:1.4; height:auto; padding:4px 9px; }
#records .rec-chevron { transition:transform 200ms ease; }
#records .is-open .rec-chevron { transform:rotate(180deg); }
#records .rec-expand { display:grid; grid-template-rows:0fr; visibility:hidden; transition:grid-template-rows 200ms ease,visibility 200ms; }
#records .is-open .rec-expand { grid-template-rows:1fr; visibility:visible; }
#records .rec-details { overflow:hidden; min-height:0; }
#records .rec-details dl { display:grid; grid-template-columns:minmax(100px,1fr) minmax(0,1.4fr); gap:10px 18px; background:var(--glass-hi); border-radius:12px; padding:18px; font-size:12px; }
#records .rec-details dd { margin:0; overflow-wrap:anywhere; }
#records .rec-details dt { color:var(--text-3); }
#records .rec-details a { display:inline-block; margin:0 0 16px; color:var(--brand); }
#records .rec-lender { display:flex; gap:7px; align-items:center; margin-top:7px; font-size:11px; color:var(--text-3); }
#records .rec-initials { display:grid; place-items:center; width:26px; height:26px; border:1px solid var(--gl-edge); border-radius:8px; color:var(--text); background:var(--glass-hi); }
#records .rec-skeleton>div { display:flex; gap:20px; padding:20px 0; border-bottom:1px solid var(--gl-edge); }
#records .rec-skeleton i { display:block; width:65%; height:22px; background:var(--glass-hi); border-radius:7px; animation:rec-pulse 1.2s ease-in-out infinite alternate; }
#records .rec-skeleton i+i { width:20%; }
#records .rec-more { width:100%; margin:18px 0; padding:12px; }
#records .rec-finance { margin-bottom:20px; border:1px solid var(--gl-edge); border-radius:16px; padding:16px; background:var(--glass-hi); }
#records .rec-finance h3 { font-size:12px; margin:0 0 14px; }
#records .rec-bars { display:flex; align-items:end; gap:3px; height:105px; border-bottom:1px solid var(--gl-edge); }
#records .rec-bars span { flex:1; min-width:1px; background:var(--brand); opacity:.8; border-radius:4px 4px 0 0; }
#records .rec-shares { display:flex; gap:3px; height:8px; margin:12px 0; }
#records .rec-shares span { background:var(--brand); border-radius:3px; min-width:2px; }
#records .rec-shares span:nth-child(2n) { opacity:.55; }
#records .rec-shares span:nth-child(3n) { opacity:.3; }
#ceo-dive>span:empty { display:none; }
@keyframes rec-pulse { to { opacity:.35; } }
@media(prefers-reduced-motion:reduce) { #records .rec-expand,#records .rec-chevron { transition:none; } #records .rec-skeleton i { animation:none; } }
#bottom .rec-card-target { position:relative; transition:transform 200ms ease,border-color 200ms; }
#bottom .rec-card-target:hover { transform:translateY(-3px); }
#bottom .rec-card-cover { position:absolute; inset:0; width:100%; height:100%; opacity:0; z-index:1; cursor:pointer; border-radius:inherit; }
#bottom .rec-card-target:has(.rec-card-cover:focus-visible) { outline:2px solid var(--brand); outline-offset:3px; }
#bottom .rec-card-target button:not(.rec-card-cover), #bottom .rec-card-target a, #bottom .rec-card-target select { position:relative; z-index:2; }
#records .rec-controls { display:flex; gap:10px; margin-top:12px; }
#records .rec-controls select { min-width:0; flex:1; padding:10px; background:var(--gl-solid); border:1px solid var(--gl-edge); color:var(--text); border-radius:9px; }
#records .rec-avatar, #records .rec-visual { flex:none; width:40px; height:40px; border:1px solid var(--gl-edge); border-radius:12px; background:var(--glass-hi); display:grid; place-items:center; position:relative; overflow:hidden; color:var(--brand); }
#records .rec-avatar img { position:absolute; width:100%; height:100%; object-fit:cover; }
#records .rec-timeline { display:flex; flex-wrap:wrap; gap:12px; border-left:2px solid var(--brand); padding:8px 12px; margin-bottom:12px; font-size:11px; color:var(--text-2); }
#records .rec-timeline.good { border-color:var(--good); }
#records .rec-timeline.bad { border-color:var(--warn); }
#records .rec-full { font-size:12px; margin-bottom:16px; padding:8px 0; color:var(--brand); background:none; border:0; }

/* A readable glass backing: dashboard figures must not compete with drawer text. */
dialog#records { background:color-mix(in srgb,var(--gl-solid) 98%,var(--brand) 2%); }
/* Text/icons pass pointer hits to the card cover; nested controls retain their own hit targets. */
#bottom .rec-card-target > :not(.rec-card-cover) { pointer-events:none; }
#bottom .rec-card-target :is(button,a,select,input) { pointer-events:auto; }
:root dialog#records[open] { background:color-mix(in srgb,var(--bg) 94%,var(--brand) 6%); }
#records .rec-details>a, #records .rec-details>.rec-full { margin-right:16px; }

#bottom .rec-card-target button:disabled { pointer-events:none; }

/* ==== Round 4 (owner 15:45): smooth on the MacBook ====
   The watch-list attention halo breathes by opacity on its own layer (the shared ic-halo animates box-shadow, which
   repaints the card on every frame). */
.ch > .ico.is-attn.a-halo, .ch > .ico.is-live.is-attn { animation: none; position: relative; }
.ch > .ico.is-attn.a-halo::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--warn) 55%, transparent), 0 0 14px 2px color-mix(in srgb, var(--warn) 35%, transparent);
  opacity: .25; animation: ceo-halo 2.4s ease-in-out infinite; will-change: opacity; }
@keyframes ceo-halo { 50% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .ch > .ico.is-attn.a-halo::after { animation: none; opacity: .6; } }

/* Owner X03/X14: each department owns its content height; long inventory or inline
   detail must not stretch unrelated cards into empty panels. */
.bottom > .card, .bottom-sk > .card { display: flex; flex-direction: column; height: auto; min-height: 0; }
.bottom > .card > .ch { flex: none; }
.bottom > .card > .dbody { flex: none; min-height: 0; }
.dbody .rows { margin-right: -5px; }
.act-strip { padding: 0; margin-top: auto; }
.ch, .verify.pv .ch { gap: 12px; }
/* One header icon tile on every card: 44 px, overhanging the 32 px header row by 6 px (not 8), so it never crowds the
   card's top edge; the row height and the title's position are unchanged. */
.card .ch > .ico { width: 44px; height: 44px; margin-block: -6px; border-radius: 13px; }
/* Calls: the label is plain text in its column (the old top-bar pill style no longer reaches it); date on line two. */
.verify.pv .call { grid-template-columns: 32px minmax(0, 1fr) 88px auto; gap: 12px; padding: 4px 10px; margin-inline: -11px; width: calc(100% + 22px); }
.verify.pv .cwho span { margin-top: 1px; }
@container (max-width: 340px) { .verify.pv .call { grid-template-columns: 32px minmax(0, 1fr) 40px auto; gap: 10px; } }
/* Phone: the waveform is hidden (rule above), so its column goes too and the outcome keeps its full label. */
@media (max-width: 700px) { .verify.pv .call { grid-template-columns: 32px minmax(0, 1fr) auto; } }
/* ==== In-page AQUIS chat panel (owner R5): a glass panel that slides up from the orb; no navigation. ==== */
.ceo-aquis { position: fixed; right: 16px; bottom: 116px; z-index: 30; width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 150px)); display: flex; flex-direction: column; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line)); background: var(--gl-fill-strong, var(--glass-solid, var(--glass))); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent) inset; overflow: hidden; transform: translateY(16px) scale(.98); opacity: 0; transform-origin: 90% 100%; transition: transform .22s var(--ease, cubic-bezier(.22,1,.36,1)), opacity .22s ease; }
.ceo-aquis.on { transform: translateY(0) scale(1); opacity: 1; }
.ceo-aquis[hidden] { display: none; }
.ceo-aquis .ca-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ceo-aquis .ca-orb { width: 34px; height: 34px; flex: none; display: grid; place-items: center; }
.ceo-aquis .ca-orb img { width: 30px; height: auto; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 60%, transparent)); }
.ceo-aquis .ca-ttl { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ceo-aquis .ca-ttl b { font-size: 14px; font-weight: 800; letter-spacing: .14em; }
.ceo-aquis .ca-ttl small { font-size: 11px; color: var(--text-3); }
.ceo-aquis .ca-x { all: unset; margin-left: auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: var(--text-2); cursor: pointer; }
.ceo-aquis .ca-x:hover, .ceo-aquis .ca-x:focus-visible { background: var(--accent-soft); color: var(--text); }
.ceo-aquis .ca-log { flex: 1 1 auto; min-height: 120px; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.ceo-aquis .ca-msg { max-width: 86%; padding: 8px 12px; border-radius: 14px; font-size: 13px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.ceo-aquis .ca-user { align-self: flex-end; background: var(--accent); color: var(--accent-ink, #04121c); border-bottom-right-radius: 4px; }
.ceo-aquis .ca-assistant { align-self: flex-start; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); border-bottom-left-radius: 4px; }
.ceo-aquis .ca-msg.is-pending { opacity: .6; font-style: italic; }
.ceo-aquis .ca-msg.is-error { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.ceo-aquis .ca-form { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.ceo-aquis .ca-input { flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-strong, var(--line)); background: var(--gl-fill, rgba(0,0,0,.08)); color: var(--text); font: inherit; font-size: 13px; }
.ceo-aquis .ca-input:focus { outline: none; border-color: var(--accent); }
.ceo-aquis .ca-form.is-busy .ca-input { opacity: .6; }
.ceo-aquis .ca-mic, .ceo-aquis .ca-send { all: unset; flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--accent); border: 1px solid var(--line-strong, var(--line)); }
.ceo-aquis .ca-mic svg, .ceo-aquis .ca-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ceo-aquis .ca-send svg { fill: currentColor; stroke: none; }
.ceo-aquis .ca-mic:hover, .ceo-aquis .ca-send:hover, .ceo-aquis .ca-mic:focus-visible, .ceo-aquis .ca-send:focus-visible { background: var(--accent-soft); }
.ceo-aquis .ca-mic.is-active { background: var(--warn); color: #fff; border-color: var(--warn); animation: caPulse 1.3s ease-in-out infinite; }
@keyframes caPulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--warn) 30%, transparent); } }
@media (max-width: 560px) { .ceo-aquis { right: 8px; left: 8px; bottom: 8px; width: auto; max-height: 70vh; } }
@media (prefers-reduced-motion: reduce) { .ceo-aquis { transition: opacity .15s ease; transform: none; } .ceo-aquis .ca-mic.is-active { animation: none; } }

/* CEO repair: keep controls in their own rail, never over a growing department. */
@media (min-width: 1181px) {
  main { padding-right: 124px; }
  .bottom, .bottom-sk { grid-template-columns: minmax(0, 1.62fr) repeat(3, minmax(0, 1fr)); }
}
/* Department placeholders remain legible in Day as well as Night. */
.sk-card .sk-title { white-space: normal; overflow-wrap: normal; }
.sk-card .sk-bar { background: color-mix(in srgb, var(--text) 18%, transparent); }
/* A short source label plus a wrapping reporting scope, not a clipped disclaimer. */
.kpi .d.kd, .kpi .d.kd > span { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: normal; }
/* Keep the public map legend compact; its existing reserved strip owns the space. */
.alegend { gap: 4px 10px; padding: 4px 8px; font-size: 11px; max-width: 100%; }
.kpi.pv .d.kd { display: block; -webkit-line-clamp: unset; }
.kpi.pv .d { display: block; -webkit-line-clamp: unset; overflow: visible; white-space: normal; }

:root .gsel-wrap .gpop { background: var(--bg-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
.rep-quick { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-in); }
.rep-quick[hidden] { display: none; }
.reps .rk.rec-avatar { font-size: 12px; }
.reps .tiles .rep-quick button { height: auto; min-height: 32px; display: block; }
