/* kitwatch dashboard stylesheet — generated from css/*.css by build_css.py; edit the parts. */

/* ==== 00-base.css ==== */
/* kitwatch dashboard — design system and components (round 2).
   One stylesheet, no external requests; fonts self-hosted (OFL).
   Look: Hadrian (neutral near-black, hairlines, outlined controls, small radii,
   coloured words instead of coloured boxes). Structure: Flare, with Silent Push /
   VirusTotal / urlscan for search and evidence tables. DESIGN.md lists the
   measurement behind each token. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ===================================================================
   1. Tokens — derived from Hadrian's measured app (see DESIGN.md);
   own values, not its brand colours one for one. Hadrian has no light
   theme: light is ours, built on the same steps.
   =================================================================== */
:root {
  color-scheme: light dark;
  /* Hadrian sets Suisse Int'l (commercial, 400/500 only): Inter is the open
     neo-grotesk nearest to it; Geist Mono stands in for Suisse Int'l Mono. */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;

  /* type: 11 caps labels · 12 captions · 14 base · 16/24 prose · 20 section · 24 page title · 30 record title */
  --fs-xs: 11px; --fs-sm: 12px; --fs-meta: 13px; /* second lines: excerpts, drawer answers, menus */ --fs-base: 14px; --fs-md: 15px; --fs-lg: 16px; --fs-xl: 24px; --fs-2xl: 30px; --fs-sect: 20px;
  --lh: 1.43;
  /* 8px rhythm: control gap 8, band→toolbar 20, page side 32 */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px;
  /* sharp: inputs and badges 2, buttons/segments/cards 4, popovers 6 */
  --r-sm: 2px; --r: 4px; --r-pop: 6px;
  --ctl: 32px; --seg: 40px; --badge: 22px;
  --side-w: 224px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* four flat surface steps, no shadows */
  --bg:       light-dark(#fcfcfd, #0f0f11);   /* ground */
  --raised:   light-dark(#f4f4f6, #161619);   /* header bands, drawers, cards, secondary buttons */
  --hover:    light-dark(#ececef, #1d1d20);   /* hovered row */
  --active:   light-dark(#e2e2e6, #27272b);   /* current segment, current row, count chips */
  --line:     light-dark(#e6e6ea, #232326);   /* hairline ≈ white 8% */
  --line-2:   light-dark(#d4d4da, #2e2e32);   /* control border, header rule */
  /* light greys, not dim greys: hierarchy by white + size + one weight step */
  --text:     light-dark(#111114, #f6f6f7);
  --text-2:   light-dark(#3d3d45, #d2d2d7);
  --text-3:   light-dark(#5f5f69, #a2a1a8);

  /* plum = act (primary button, links, focus, checked); red = here (current nav) */
  --accent:    light-dark(#62458a, #ab93d6);
  --accent-bg: light-dark(#664a8c, #684b88);
  --accent-fg: #ffffff;
  --marker:    var(--text);                      /* current-nav bar: neutral; red is reserved for the Report verdict */
  --focus:     light-dark(#62458a, #b9a3e0);

  --mark-bg:   light-dark(#fde68a, rgb(250 204 21 / .26));
  --mark-text: light-dark(#1a1400, currentColor);

  /* verdict / state hues (Hadrian severity family, ours) */
  --bad:  light-dark(#c4123a, #ff4d6d);
  --warn: light-dark(#875000, #ffb020);
  --ok:   light-dark(#0b6d3f, #2fd08a);

  --reveal:    light-dark(#8a4a00, #f2b24c);
  --reveal-bg: light-dark(#fff4e0, #261d0e);

  /* message-type colours — the only categorical colour in the product.
     Six hues, outside the reserved bands: red 345–15° and amber 30–55° (verdicts),
     green 90–160° (state), plum 260–300° (action). Used on the type word in a row
     and as a 8px swatch in legends and facet rows; never on value kinds, never as fills. */
  --c-card:     light-dark(#a3346f, #d9719f);   /* magenta 330° */
  --c-login:    light-dark(#1f5f9e, #6fa6dc);   /* azure 210° */
  --c-bank:     light-dark(#0f6b62, #4db3a4);   /* teal 172° */
  --c-identity: light-dark(#6a6214, #bdb35c);   /* olive 62° */
  --c-wallet:   light-dark(#8f4a1c, #cc8a5c);   /* copper 22° */
  --c-stealer:  light-dark(#4a4f9c, #949ad8);   /* slate-indigo 236° */
  --c-operator: var(--text-2);                  /* operator chat: not a theft, no hue */
  --c-unsorted: var(--text-3);
  --c-neutral:  var(--text-3);
}
:root[data-theme="dark"]  { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

/* ===================================================================
   2. Base
   =================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text-2); font: 400 var(--fs-base)/var(--lh) var(--font-sans); }
.num, .tbl td, time, .c, .n, .kv dd, .axis, .chart-h { font-variant-numeric: tabular-nums; }
a { color: var(--accent); text-decoration: none; transition: color .15s var(--ease), background-color .15s var(--ease), border-color .15s var(--ease); }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.25; color: var(--text); }
p, ol, ul, dl, dd, pre { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
.mono, code, kbd, pre { font-family: var(--font-mono); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -40px; z-index: 50; padding: 6px 10px; background: var(--accent-bg); color: var(--accent-fg); }
.skip:focus { top: 8px; }
.i { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.dim { color: var(--text-3); }
.num { text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.sep { color: var(--text-3); padding: 0 6px; }
.spacer { flex: 1; }
.label { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
kbd { display: none; }
.js kbd { display: inline-block; }
kbd { min-width: 18px; padding: 0 4px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: var(--fs-xs); line-height: 16px; text-align: center; color: var(--text-3); }

/* message types: the coloured word in a row, and the swatch in legends and facets */
.t--card { color: var(--c-card); } .t--login { color: var(--c-login); } .t--bank { color: var(--c-bank); }
.t--identity { color: var(--c-identity); } .t--wallet { color: var(--c-wallet); } .t--stealer { color: var(--c-stealer); }
.t--operator { color: var(--c-operator); } .t--unsorted, .t--neutral { color: var(--c-unsorted); }
.sw { display: inline-block; width: 8px; height: 8px; border-radius: 1px; background: var(--sw, var(--text-3)); flex: none; vertical-align: 1px; }
.sw--card { --sw: var(--c-card); } .sw--login { --sw: var(--c-login); } .sw--bank { --sw: var(--c-bank); } .sw--identity { --sw: var(--c-identity); }
.sw--wallet { --sw: var(--c-wallet); } .sw--stealer { --sw: var(--c-stealer); } .sw--operator { --sw: var(--text-2); }
.sw--unsorted, .sw--neutral { --sw: transparent; box-shadow: inset 0 0 0 1px var(--text-3); }

/* ===================================================================
   3. Shell — fixed side navigation, grouped (Hadrian / Flare)
   =================================================================== */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px;
  padding: 10px 8px; border-right: 1px solid var(--line); background: var(--bg); scrollbar-width: thin; }
.side-top { padding: 4px 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.prod { display: block; font-weight: 500; font-size: 15px; color: var(--text); letter-spacing: .01em; }
.prod:hover { text-decoration: none; }
.me { display: flex; gap: 6px; align-items: baseline; margin-top: 2px; font-size: var(--fs-sm); color: var(--text-2); }
.me:hover { text-decoration: none; color: var(--text); }
.me .role { color: var(--text-3); }
.lvl { display: block; margin-top: 8px; padding: 5px 8px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: var(--fs-sm); color: var(--text); line-height: 1.35; }
.lvl:hover { text-decoration: none; border-color: var(--text-3); }
.lvl span { display: block; color: var(--text-3); }
.lvl--revealed { border-color: var(--reveal); color: var(--reveal); background: var(--reveal-bg); }
.lvl--masked { border-style: dashed; }
.side-search { display: flex; align-items: center; gap: 8px; height: var(--ctl); margin: 2px 0 6px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--text-3); }
.side-search:focus-within { border-color: var(--focus); }
.side-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; }
.side-search input:focus-visible { outline: none; }
.side-search input::placeholder { color: var(--text-3); }
.side-g { padding: 4px 0; }
.side-g + .side-g { border-top: 1px solid var(--line); }
.side-h { padding: 10px 10px 4px; font-size: var(--fs-meta); font-weight: 400; color: var(--text-3); }
.side a { color: var(--text-2); }
.side-g a { position: relative; display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 10px; border-radius: var(--r); }
.side-g a:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.side-g a[aria-current="page"] { background: var(--hover); color: var(--text); }
.side-g a[aria-current="page"]::before { content: ""; position: absolute; left: -8px; top: 6px; bottom: 6px; width: 2px; background: var(--marker); }
.side-g .w { flex: 1; }
/* nav and tab counts: plain muted tabular numerals, no box */
.side-g .n { color: var(--text-3); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.side-foot { margin-top: auto; padding: 10px 10px 4px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text-3); }
.side-foot span { display: block; }
.health { color: var(--text-2); }
a.health:hover { color: var(--text); text-decoration: none; }
.health::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--ok); vertical-align: 1px; }

.main { min-width: 0; padding: 0 var(--s8) var(--s10); }
.main--wide { padding: 0 var(--s8) var(--s10); }

/* ===================================================================
   4. Controls
   =================================================================== */
.btn { display: inline-flex; align-items: center; gap: 8px; height: var(--ctl); padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--raised); color: var(--text-2); font-size: var(--fs-base); font-weight: 400; white-space: nowrap; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.btn:hover { background: var(--hover); border-color: var(--text-3); color: var(--text); text-decoration: none; }
.btn .i { color: var(--text-2); width: 14px; height: 14px; }
.btn--primary { background: var(--accent-bg); border-color: var(--accent-bg); color: var(--accent-fg); font-weight: 500; }
.btn--primary:hover { background: var(--accent-bg); border-color: var(--accent-bg); color: var(--accent-fg); filter: brightness(1.12); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn--ghost:hover { border-color: var(--line-2); color: var(--text); }
.btn--ghost[aria-current="page"] { border-color: var(--line-2); color: var(--text); background: var(--raised); }
.btn--reveal { background: transparent; color: var(--reveal); border-color: color-mix(in srgb, var(--reveal) 55%, transparent); }
.btn--reveal:hover { background: var(--reveal-bg); border-color: var(--reveal); }
.btn--sm { height: 28px; padding: 0 10px; font-size: var(--fs-sm); }
.ic { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r); color: var(--text-2); }
.ic:hover { background: var(--hover); color: var(--text); }
.copy { display: none; place-items: center; width: 22px; height: 22px; margin-left: 2px; padding: 0; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-3); cursor: pointer; vertical-align: middle; }
.js-clip .copy { display: inline-grid; }
.copy.done { color: var(--ok); }
.copy:hover { color: var(--text); background: var(--hover); }
.copy .i { width: 14px; height: 14px; }

/* tags: outlined word, square-ish (Hadrian "Critical" box) */
.tag { --h: var(--text-3); display: inline-flex; align-items: center; height: var(--badge); padding: 0 7px; border: 1px solid color-mix(in srgb, var(--h) 55%, var(--bg));
  border-radius: var(--r-sm); background: color-mix(in srgb, var(--h) 10%, var(--bg)); color: var(--text); font-size: var(--fs-sm); font-weight: 400; white-space: nowrap; }
/* message-type tags are coloured words, not boxes: colour carries the type, nothing else does (C3) */
.tag--card { --h: var(--c-card); } .tag--login { --h: var(--c-login); } .tag--bank { --h: var(--c-bank); } .tag--identity { --h: var(--c-identity); }
.tag--wallet { --h: var(--c-wallet); } .tag--stealer { --h: var(--c-stealer); } .tag--operator { --h: var(--text-2); } .tag--unsorted { --h: var(--text-3); }
.tag--card, .tag--login, .tag--bank, .tag--identity, .tag--wallet, .tag--stealer, .tag--operator, .tag--unsorted {
  height: auto; padding: 0; border: 0; background: none; color: var(--h); font-size: inherit; }
/* verdicts are coloured words too (Report red, Watch amber), same as .prio — no tinted box */
.tag--report { --h: var(--bad); } .tag--watch { --h: var(--warn); }
.tag--report, .tag--watch { height: auto; padding: 0; border: 0; background: none; color: var(--h); font-size: inherit; font-weight: 500; }
.tag--finding { --h: var(--text-2); }

/* value chip: kind word + stored display + bots count */
.v { --h: var(--c-neutral); display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%; min-width: 0; padding: 1px 6px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); color: var(--text); white-space: nowrap; line-height: 20px; }
.v:hover { text-decoration: none; border-color: var(--text-3); background: var(--hover); }
.v-k { color: var(--text-3); font-size: var(--fs-sm); }   /* value kinds are neutral: colour belongs to message types */
.v-x { font: 13px/20px var(--font-mono); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.v-n { color: var(--accent); font-size: var(--fs-sm); }
.vlist { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.more-v { font-size: var(--fs-sm); color: var(--text-3); }

.pv { color: var(--text); font-weight: 400; }
.pv:hover { color: var(--accent); }
.handle { font-size: var(--fs-sm); color: var(--text-3); }
.mv { color: inherit; text-decoration: underline dotted var(--text-3); text-underline-offset: 3px; }
.mv:hover { text-decoration: underline solid var(--accent); }
mark { background: var(--mark-bg); color: var(--mark-text); padding: 0 1px; border-radius: 2px; }

/* tabs: Hadrian segmented control with count boxes */
.tabs { display: flex; align-items: flex-end; gap: 0; margin-top: var(--s4); border-bottom: 1px solid var(--line); }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab[aria-current="page"] { color: var(--text); border-bottom-color: color-mix(in srgb, var(--text) 75%, transparent); }
.tab .n, .tabs--seg .n { color: var(--text-3); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.tabs--seg { display: inline-flex; margin-top: var(--s4); border: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.tabs--seg .tab { height: var(--seg); padding: 0 16px; border: 0; margin: 0; }
.tabs--seg .tab + .tab { border-left: 1px solid var(--line-2); }
.tabs--seg .tab[aria-current="page"] { background: var(--active); color: var(--text); }
.tabs--seg .tab[aria-current="page"] .n { color: var(--text-2); }
.tabs--sm .tab { height: 32px; padding: 0 10px; font-size: var(--fs-sm); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.seg a { display: inline-flex; align-items: center; height: 26px; padding: 0 8px; font-size: var(--fs-sm); color: var(--text-2); }
.seg a + a { border-left: 1px solid var(--line-2); }
.seg a[aria-current="true"] { background: var(--active); color: var(--text); }

/* tables: no vertical rules, quiet header, hairline rows (Hadrian / VT) */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { padding: 10px 12px; text-align: left; font-weight: 400; font-size: var(--fs-base); color: var(--text-2); white-space: nowrap; border-bottom: 2px solid var(--line-2); }
.tbl td { height: 44px; padding: 6px 12px; vertical-align: middle; }
.tbl td:first-child { color: var(--text); }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl tbody tr:hover td { background: var(--hover); }
.tbl tfoot td { border-bottom: 0; color: var(--text-2); }
.tbl .num { text-align: right; }
.tbl .acts { text-align: right; white-space: nowrap; }
.tbl .acts a { font-size: var(--fs-sm); margin-left: 10px; color: var(--text-2); }
.tbl .acts a:hover { color: var(--accent); }
.tbl--quiet td { height: 36px; padding-top: 4px; padding-bottom: 4px; }
.cells { display: flex; flex-wrap: wrap; gap: 4px; }
.took { display: inline-flex; gap: 8px; font-size: var(--fs-sm); }

/* key-value list (Hadrian "Properties", Flare "Metadata") */
.kv { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 10px 12px; align-items: baseline; }
.kv dt { color: var(--text-3); }
.kv dd { color: var(--text); }
.kv dd { min-width: 0; overflow-wrap: break-word; }

/* charts */
.bars { display: block; width: 100%; }
.bars rect { fill: color-mix(in srgb, var(--text-2) 70%, transparent); }
.bars .bg { fill: transparent; }
.bars a:hover rect:not(.bg) { fill: var(--accent); }
.bars .sel { fill: var(--text); }
.bars .base { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.axis { display: flex; justify-content: space-between; margin-top: 4px; font-size: var(--fs-xs); color: var(--text-3); }
.chart-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; font-size: var(--fs-sm); color: var(--text-3); }
.chart-h b { color: var(--text); font-weight: 500; font-size: var(--fs-base); }
.when { position: relative; margin-left: auto; }
.when > summary { list-style: none; cursor: pointer; color: var(--accent); }
.when > summary::-webkit-details-marker { display: none; }
.when form { position: absolute; right: 0; top: 22px; z-index: 5; display: flex; gap: 8px; align-items: center; padding: 10px; background: var(--raised); border: 1px solid var(--line-2); border-radius: var(--r); white-space: nowrap; color: var(--text-2); }
.when input { height: 28px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); }
.cbar { display: block; width: 100%; height: 2px; }
.cbar rect { fill: var(--text-3); }

/* filter dropdowns (Flare): button shows its current value */
.dd { position: relative; }
.dd > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: var(--ctl); background: var(--raised); padding: 0 8px 0 10px; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--text-2); font-size: var(--fs-sm); cursor: pointer; white-space: nowrap; }
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary b { color: var(--text); font-weight: 500; }
.dd > summary .i { width: 12px; height: 12px; color: var(--text-3); }
.dd > summary:hover { border-color: var(--text-3); }
.dd--on > summary { border-color: var(--accent); }
.dd[open] > summary { background: var(--active); border-color: var(--focus); }
.sband .dd > summary { background: var(--bg); }
.dd-pop { position: absolute; z-index: 10; top: 32px; left: 0; min-width: 240px; padding: 6px; background: var(--raised); border: 1px solid var(--line-2); border-radius: var(--r-pop); }
.dd-pop label { display: grid; grid-template-columns: 16px 1fr auto; gap: 8px; align-items: center; height: 36px; color: var(--text); padding: 0 6px; border-radius: var(--r-sm); }
.dd-pop label:hover { background: var(--hover); }
.dd-pop input { accent-color: var(--accent-bg); }
.dd-pop .c { color: var(--text-3); font-size: var(--fs-sm); }
.dd-f { display: flex; gap: 10px; align-items: center; padding: 6px 6px 2px; border-top: 1px solid var(--line); margin-top: 4px; font-size: var(--fs-sm); }


/* -------- shared: split view, drawer, recent rail -------- */
/* split view: list | recent | detail (Flare event detail) */
.main--split .split { margin-right: calc(-1 * var(--s6)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 160px 520px; border-top: 1px solid var(--line); margin-top: -1px; }
.split-list { min-width: 0; padding-right: var(--s4); }
.rows--narrow .r { grid-template-columns: 22px minmax(0, 1fr) 64px; }
.rows--narrow .r-v, .rows--narrow .r-src, .rows--narrow .r-a { display: none; }
.rows--narrow .r-s { -webkit-line-clamp: 1; line-clamp: 1; }
.recent { padding: var(--s4) var(--s3); border-left: 1px solid var(--line); font-size: var(--fs-sm); }
.recent h2 { margin-bottom: 8px; }
.recent li a { display: block; padding: 6px 8px; margin: 0 -8px; border-radius: var(--r-sm); color: var(--text); line-height: 1.35; }
.recent li a span { display: block; font-size: var(--fs-xs); }
.recent li a:hover { background: var(--hover); text-decoration: none; }
.recent li a[aria-current="true"] { background: var(--active); }
.recent .more { display: block; margin-top: 10px; }
.dpanel { padding: var(--s4) var(--s6) var(--s8); border-left: 1px solid var(--line-2); background: var(--raised); min-height: calc(100vh - 160px); }
.dp-top { display: flex; align-items: flex-start; gap: var(--s3); }
.dp-top h2 { flex: 1; font-size: var(--fs-sect); line-height: 1.3; }
.dp-acts { display: flex; align-items: center; gap: 6px; }
.dpanel .tabs { margin-top: var(--s3); }
.dpanel .kv { margin-top: var(--s4); }
.dpanel h3.label { margin: var(--s5) 0 8px; }
.dp-text { padding: 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); font: 13px/1.6 var(--font-mono); white-space: pre-wrap; }


/* ===================================================================
   7. Responsive — 1280 is the floor; narrower stacks
   =================================================================== */
@media (max-width: 1380px) {
  :root { --side-w: 200px; }
  .ex { grid-template-columns: minmax(0, 1fr); }
  .bpanel { display: none; }
  .rows-h, .r { grid-template-columns: 22px minmax(0, 1fr) 216px 140px 56px 84px; }
  .detail { grid-template-columns: minmax(0, 1fr) 260px; gap: var(--s8); }
  .props .kv { grid-template-columns: 1fr; gap: 0; }
  .props .kv dd { margin-bottom: 10px; }
  .props .kv dd:last-child { margin-bottom: 0; }
  .split { grid-template-columns: minmax(0, 1fr) 480px; }
  .recent { display: none; }
}
@media (max-width: 1100px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .detail, .harm, .split { grid-template-columns: 1fr; }
  .rows-h { display: none; }
  .r { grid-template-columns: 22px minmax(0, 1fr); }
  .r-v, .r-src, .r-w, .r-a { grid-column: 2; }
  .xp-cols { grid-template-columns: 1fr 1fr; }
}
@media print { .side, .bpanel, .r-a, .ph-top .acts { display: none; } .app { display: block; } }

/* motion: hover/colour .15–.2s on the Hadrian curve; the drawer slides in once on load */
@media (prefers-reduced-motion: reduce) { .hcw:hover > .hc, .hcw:focus-within > .hc { animation: none; } }
@media (prefers-reduced-motion: no-preference) {
  .dpanel { animation: drawer-in .28s var(--ease) both; }
  @keyframes drawer-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
}

/* round-2 additions */
.rows-h .sorted { color: var(--text); font-weight: 500; }
.ic--b { border: 1px solid var(--line-2); width: var(--ctl); height: var(--ctl); }
.i.up { transform: rotate(180deg); }
.ex .tabs--seg { margin-top: var(--s5); }
.dp-row { display: flex; align-items: center; gap: 8px; margin-top: var(--s3); font-size: var(--fs-sm); }
.dp-row .dim { margin-left: auto; }

/* links inside prose carry an underline: colour alone is under 3:1 against body grey */
.summary a, .answer a, .alt a, .cov a, .basis a, .hidden-note a, .verdict-line a, .xp-cols p a, .props-note a {
  text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
.summary a:hover, .answer a:hover, .alt a:hover, .cov a:hover, .basis a:hover, .verdict-line a:hover, .xp-cols p a:hover { text-decoration-color: currentColor; }
/* focus inside clipped segmented controls */
.tabs--seg .tab:focus-visible, .seg a:focus-visible { outline-offset: -3px; }
.chart-alt { font-size: var(--fs-sm); }
.axis span { flex: 1; text-align: left; }
.axis span:last-child { flex: 0 0 auto; text-align: right; }
.life-dates { margin-top: 3px; font-size: var(--fs-xs); color: var(--text-3); text-align: right; }
.title-row > .dim { font-size: var(--fs-sm); margin-left: -4px; }
.prov { margin: -4px 0 var(--s3); font-size: var(--fs-sm); color: var(--text-3); }


/* -------- shared: breakdown panel (Flare 'Event data'), used by Explore and Feed -------- */
/* breakdown panel (Flare "Event data") */
.bpanel { align-self: start; position: sticky; top: 0; max-height: 100vh; overflow-y: auto; padding: var(--s4) 0 var(--s4) var(--s5); border-left: 1px solid var(--line); scrollbar-width: thin; }
.bpanel-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.bpanel-h h2 { font-size: var(--fs-base); font-weight: 500; }
.bpanel-h a { color: var(--text-3); display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-sm); }
.bpanel-h a:hover { background: var(--hover); color: var(--text); }
.bd { padding: 12px 0 10px; border-bottom: 1px solid var(--line); }
.bd:last-child { border-bottom: 0; }
.bd h3 { margin-bottom: 6px; }
.bd li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: center; }
.bd li > a:first-child { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; padding: 4px 0 3px; color: var(--text); }
.bd li > a:first-child:hover { text-decoration: none; background: var(--hover); }
.bd .l { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bd .c { font-size: var(--fs-sm); color: var(--text-2); }
.bd .x { display: grid; place-items: center; width: 20px; height: 20px; color: var(--text-3); opacity: 0; }
.bd li:hover .x, .bd .x:focus-visible { opacity: 1; }
.bd .x:hover { color: var(--bad); }
.bd .x .i { width: 12px; height: 12px; }
.bd .more { display: inline-block; margin-top: 6px; font-size: var(--fs-sm); }


/* ===================================================================
   Shared components added for stage 2 (owner: base). Reuse the classes;
   add modifiers in your own part, never edit this file from a builder.
   =================================================================== */

/* proportion bar under a breakdown/facet row */
.pbar { display: block; width: 100%; height: 3px; margin-top: 3px; }
.pbar .pbar-t { fill: var(--line); }
.pbar .pbar-f { fill: var(--text-3); }
.bd li:hover .pbar-f { fill: var(--text-2); }
.bd-hint { font-size: var(--fs-xs); color: var(--text-3); font-weight: 400; letter-spacing: 0; text-transform: none; }

/* removable filter chips: the one place a pill shape is allowed */
.fchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: var(--s2); }
.fchip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 2px 0 10px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--active); color: var(--text-2); font-size: var(--fs-sm); }
.fchip b { color: var(--text); font-weight: 500; }
.fchip a { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: var(--text-3); }
.fchip a:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.fchip a .i { width: 12px; height: 12px; }
.fchips .clear { font-size: var(--fs-sm); margin-left: 4px; }

/* hover card (Flare's threat card): a one-paragraph summary of a bot, actor, brand or record.
   Prototype renders it inline; the Go port lazy-loads the same fragment. Shown on hover and focus. */
.hcw { position: relative; display: inline; }
/* hidden cards are display:none so they never widen the page; shown after .35 s on hover or focus */
.hc { position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); width: 320px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-pop);
  background: var(--raised); color: var(--text-2); font-size: var(--fs-sm); line-height: 1.5; font-weight: 400; white-space: normal; text-align: left;
  display: none; pointer-events: none; }
.hcw:hover > .hc, .hcw:focus-within > .hc { display: block; animation: hc-in .15s var(--ease) .35s both; }
@keyframes hc-in { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }
.hc--demo { position: static; display: block; animation: none; }
.hc-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.hc-h b { color: var(--text); font-weight: 500; font-size: var(--fs-base); }
.hc-k { color: var(--text-3); }
.hc-f { display: flex; gap: 14px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--text-3); }
.hc-f b { color: var(--text); font-weight: 500; }

/* term with a hover/focus explanation (e.g. "victim records") */
.term { position: relative; text-decoration: underline dotted var(--text-3); text-underline-offset: 3px; cursor: help; }
.term .tip { position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); width: 280px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r-pop);
  background: var(--raised); color: var(--text-2); font-size: var(--fs-sm); font-weight: 400; line-height: 1.45; display: none; }
.term:hover .tip, .term:focus .tip { display: block; }

/* help popover: explanations live here, never as running grey text */
.help { position: relative; display: inline-block; vertical-align: middle; }
.help > summary { list-style: none; display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  color: var(--text-3); font-size: 11px; font-weight: 500; cursor: pointer; }
.help > summary::-webkit-details-marker { display: none; }
.help > summary:hover { color: var(--text); border-color: var(--text-3); }
.help-pop { position: absolute; z-index: 30; right: 0; top: 24px; width: 320px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-pop);
  background: var(--raised); color: var(--text-2); font-size: var(--fs-sm); line-height: 1.5; font-weight: 400; text-transform: none; letter-spacing: 0; }
.help-pop p + p { margin-top: 6px; }

/* reveal: a POST that opens a recorded 10-minute window, never URL state */
.rvl { position: relative; display: inline-block; }
.rvl > summary { list-style: none; }
.rvl > summary::-webkit-details-marker { display: none; }
.rvl-pop { position: absolute; z-index: 30; right: 0; top: calc(100% + 6px); width: 300px; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--r-pop);
  background: var(--raised); display: grid; gap: 10px; font-size: var(--fs-sm); color: var(--text-2); }
.rvl-pop .rvl-t { color: var(--text); font-size: var(--fs-base); }
.rvl-pop label { display: grid; gap: 4px; }
.rvl-pop select, .rvl-pop input[type=text] { height: var(--ctl); padding: 0 8px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); color: var(--text); }
.rvl-pop .row { display: flex; gap: 8px; align-items: center; }
.btn--reveal-go { background: var(--reveal); border-color: var(--reveal); color: light-dark(#ffffff, #1a1200); font-weight: 500; }
.btn--reveal-go:hover { background: var(--reveal); filter: brightness(1.08); color: light-dark(#ffffff, #1a1200); }
.rv-on { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 4px 0 8px; border: 1px solid var(--reveal); border-radius: var(--r-sm);
  background: var(--reveal-bg); color: var(--reveal); font-size: var(--fs-sm); }
.rv-on form { display: inline; }
.rv-on button { border: 0; background: transparent; color: var(--reveal); text-decoration: underline; cursor: pointer; font-size: var(--fs-sm); padding: 0 4px; }
.v--clear { border-color: var(--reveal); background: var(--reveal-bg); }
.v--clear .v-x { color: var(--reveal); }
.mv--clear { color: var(--reveal); text-decoration: underline solid var(--reveal); }

/* priority / verdict words (Feed): words, never a colour-only dot */
.prio { font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; }
.prio--report { color: var(--bad); } .prio--watch { color: var(--warn); } .prio--new { color: var(--text); } .prio--routine { color: var(--text-3); font-weight: 400; }

/* row actions that appear on hover and keyboard focus, with visible labels */
.ra { display: flex; justify-content: flex-end; gap: 4px; opacity: 0; transition: opacity .12s var(--ease); }
.row:hover .ra, .row:focus-within .ra, .ra:focus-within { opacity: 1; }
.ra a, .ra button, .ra summary { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--bg); color: var(--text-2); font-size: var(--fs-sm); white-space: nowrap; cursor: pointer; }
.ra a:hover, .ra button:hover, .ra summary:hover { color: var(--text); border-color: var(--text-3); text-decoration: none; }
@media (hover: none) { .ra { opacity: 1; } }
.hc--r { left: auto; right: 0; }
/* tentative mark: a record or join that rests on an IP or adjacency only */
.tent { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border: 1px dashed var(--text-3); border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 400; color: var(--text-2); vertical-align: 1px; white-space: nowrap; }
.hc-f { flex-wrap: wrap; row-gap: 4px; }
.hc-f span { white-space: nowrap; }
.fcount { font-size: var(--fs-sm); color: var(--text-3); margin-right: 2px; }

/* emoji in kit text: kept (kits are recognised by them) but without colour; text as sent keeps it */
.emo { font-variant-emoji: text; filter: grayscale(1); }
.as-sent .emo { font-variant-emoji: normal; filter: none; }

/* keyboard reference ("?"), a small popover in the sidebar footer */
.keys { position: relative; margin-top: 6px; }
.keys summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; color: var(--text-3); }
.keys summary::-webkit-details-marker { display: none; }
.keys summary:hover { color: var(--text-2); }
.keys kbd, .keys-pop kbd { font-size: var(--fs-xs); color: var(--text-2); }
.keys-pop { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 30; width: 280px; padding: 10px 12px; border: 1px solid var(--line-2);
  border-radius: var(--r-pop); background: var(--raised); color: var(--text-2); }
.keys-pop dl { display: grid; grid-template-columns: 56px 1fr; gap: 6px 10px; margin: 0; font-size: var(--fs-sm); }
.keys-pop dt, .keys-pop dd { margin: 0; }
.keys { display: none; }
.js .keys { display: block; }

/* ==== 10-explore.css ==== */
/* ===================================================================
   5. Explore (owner: Explore builder). Flare Global Search structure,
   stage-2 review section A: no page title, one-line answer, chart costs
   only bars + axis, two-line rows, peek = four questions, drawer in the
   place of the "In these results" panel.
   =================================================================== */

/* -------- stage-1 classes, verbatim: Feed, Actor, Group and Templates still reuse them -------- */
.sband { margin: 0 calc(-1 * var(--s8)); padding: var(--s6) var(--s8) var(--s4); background: var(--raised); border-bottom: 1px solid var(--line-2); }
.sband-h { display: flex; align-items: baseline; gap: var(--s4); margin-bottom: var(--s3); }
.sband-h h1 { font-size: var(--fs-xl); }
.sband-h .sband-links { margin-left: auto; }
.sband-h .sband-links a { color: var(--text-2); font-size: var(--fs-sm); }
.qbar .scope { display: inline-flex; align-items: center; height: 100%; padding: 0 12px; border-right: 1px solid var(--line-2); color: var(--text-2); font-size: var(--fs-sm); }
.qbar .as { padding: 0 12px; font-size: var(--fs-sm); color: var(--text-3); }
.alt { margin-top: 8px; font-size: var(--fs-sm); color: var(--text-2); }
.frow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: var(--s3); }
.factive { margin-left: 6px; font-size: var(--fs-sm); color: var(--text-3); }
.answer { margin-top: var(--s4); font-size: var(--fs-lg); line-height: 1.5; max-width: 92ch; }
.answer b { font-weight: 500; color: var(--text); }
.hidden-note { margin-top: 2px; font-size: var(--fs-sm); color: var(--text-3); }
.toolbar { display: flex; align-items: center; gap: 4px; padding: 8px 0; font-size: var(--fs-sm); color: var(--text-3); }
.toolbar b { color: var(--text); font-weight: 500; }

.rows-h, .r { display: grid; grid-template-columns: 22px minmax(0, 1fr) 224px 148px 56px 84px; gap: 12px; align-items: start; }
.rows-h { padding: 0 0 6px; border-bottom: 1px solid var(--line-2); font-size: var(--fs-sm); color: var(--text-3); }
.row { border-bottom: 1px solid var(--line); }
.r { padding: 10px 0; }
.row:hover > .r { background: var(--hover); }
.row--open > .r { background: var(--active); box-shadow: inset 2px 0 0 var(--text); }
.r-x { display: grid; place-items: center; width: 22px; height: 22px; color: var(--text-3); border-radius: var(--r-sm); }
.r-x:hover { background: var(--active); color: var(--text); }
.r-k { font-weight: 400; font-size: var(--fs-sm); margin-left: 4px; }
.r-main { min-width: 0; }
.r-t { display: block; color: var(--text); font-weight: 400; line-height: 22px; }
.r-s { margin-top: 2px; font: 13px/1.5 var(--font-mono); color: var(--text-2); white-space: normal; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.r-v { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding-top: 1px; }
.r-v .v { max-width: 100%; }
.r-src { display: flex; flex-direction: column; min-width: 0; font-size: var(--fs-sm); line-height: 1.5; padding-top: 2px; }
.r-src .pv { font-size: var(--fs-base); }
.r-w { display: flex; flex-direction: column; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.5; padding-top: 2px; }
.r-w span { color: var(--text-3); }
.r-a { display: flex; justify-content: flex-end; gap: 2px; }
.r-a a { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--r-sm); color: var(--text-3); }
.r-a a:hover { background: var(--active); color: var(--text); }
.r-a .i { width: 15px; height: 15px; }

.xp { padding: 4px 0 14px 34px; }
.xp-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); padding: 12px 0; border-top: 1px solid var(--line); }
.xp-cols h3 { margin-bottom: 8px; }
.xp-cols p + p { margin-top: 4px; }
.xp-cols p { font-size: var(--fs-base); line-height: 1.5; }
.ctx { padding-top: 10px; border-top: 1px solid var(--line); }
.ctx-h { padding-bottom: 6px; font-size: var(--fs-sm); color: var(--text-3); }
.ctx-m { display: grid; grid-template-columns: 70px 100px minmax(0, 1fr); gap: 12px; padding: 2px 0; font-size: var(--fs-sm); color: var(--text-3); }
.ctx-m .t { font: 13px var(--font-mono); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctx-m.self { color: var(--text); }
.ctx-m.self .t { color: var(--text); }
.ctx-m.self time { box-shadow: -10px 0 0 -8px var(--text); }

.pager { display: flex; align-items: center; gap: 4px; padding: var(--s3) 0; font-size: var(--fs-sm); color: var(--text-3); }

/* -------- search band: the query bar with Recent / Saved / Syntax on its line -------- */
.main--ex .sband, .hs-band .sband { padding: 14px var(--s8) 12px; }
.sband-q { display: flex; align-items: center; gap: var(--s5); }
.qbar { flex: 1; min-width: 0; display: flex; align-items: center; height: var(--seg); border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); }
.qbar:focus-within { border-color: var(--focus); }
.qbar input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; border: 0; background: transparent; font: 15px var(--font-mono); color: var(--text); }
.qbar input::placeholder { color: var(--text-3); font: 14px var(--font-sans); }
.qbar input:focus-visible { outline: none; }
.qbar .btn { height: var(--seg); border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: -1px -1px -1px 0; }
.sband-links { display: flex; align-items: center; gap: var(--s4); font-size: var(--fs-meta); white-space: nowrap; }
.sband-links > a { color: var(--text-2); }
.sband-links > a:hover { color: var(--text); }
.interp { margin-top: 8px; font-size: var(--fs-sm); line-height: 18px; color: var(--text-3); }
.interp .pv { color: var(--text-2); }
.interp a, .ans2 a, .dq-n a, .dq dd > a, .hs a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
.interp .pv, .dq .pv, .dq .v, .dq-n .pv { text-decoration: none; }
.main--ex .frow { margin-top: 10px; }
.fcount { margin-left: 4px; font-size: var(--fs-sm); color: var(--text-3); }
.fchips .fcount + .clear { margin-left: 2px; }

/* dropdown variants: a plain-link summary (Recent, sort, drawer Recent), sections, lists */
.dd.dd--link > summary { height: auto; padding: 0; border: 0; background: transparent; color: var(--text-2); font-size: inherit; gap: 3px; }
.dd.dd--link > summary:hover, .dd.dd--link[open] > summary { color: var(--text); background: transparent; border: 0; }
.dd.dd--link > summary .i { width: 12px; height: 12px; }
.dd--link .dd-pop { top: calc(100% + 6px); }
.dd-pop--right { left: auto; right: 0; }
.dd-pop--wide { min-width: 300px; max-height: 70vh; overflow-y: auto; scrollbar-width: thin; }
.dd-sec { padding: 8px 6px 4px; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.dd-sec:first-child { padding-top: 2px; }
.dd-list a { display: block; padding: 7px 6px; border-radius: var(--r-sm); color: var(--text); font-size: var(--fs-meta); white-space: nowrap; }
.dd-list a:hover { background: var(--hover); text-decoration: none; }
.dd-list a[aria-current] { background: var(--active); }
.dd-pop label .sw { margin-right: 6px; }
.dd-pop label .handle { margin-left: 4px; }

/* -------- answer (one line, 14px) + its second line (split, left out, chart label) -------- */
.main--ex .answer { margin-top: 14px; max-width: none; font-size: var(--fs-base); line-height: 20px; color: var(--text-2); }
.answer .door { color: var(--text); font-weight: 500; }
.answer .door:hover { color: var(--accent); }
.answer .sep { padding: 0 8px; }
.ans2 { display: flex; align-items: baseline; gap: var(--s4); margin-top: 2px; font-size: var(--fs-sm); line-height: 18px; color: var(--text-3); }
.ans2-r { margin-left: auto; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.ans2-r b { color: var(--text-2); font-weight: 500; }
.ans2 .when { margin-left: 0; }
.ex-chart { margin-top: 6px; }
.ex-chart .axis { margin-top: 2px; }

/* -------- tabs (count the results as …) with the page actions on the same line -------- */
.ex-tabs { display: flex; align-items: center; gap: var(--s3); margin-top: 14px; }
.ex-tabs .tabs--seg { margin-top: 0; }
.ex-tabs .tabs--seg .tab { height: 36px; padding: 0 14px; }
.ex-acts { margin-left: auto; display: flex; align-items: center; gap: 4px; }

/* -------- results grid: list | "In these results" panel, or list | (Recent) | drawer -------- */
.ex { display: grid; grid-template-columns: minmax(0, 1fr) 248px; gap: var(--s6); align-items: start; margin-top: var(--s3); }
.ex-list { min-width: 0; }
.ex .bpanel { padding-top: 2px; }
.bp-hint { margin: -2px 0 2px; }
.bd li > a:first-child .pbar { grid-column: 1 / -1; margin-top: 2px; }
.bd .l .sw { margin-right: 6px; }
.bd .l .prio { font-size: inherit; }
.ex--open { grid-template-columns: minmax(0, 1fr) 520px; gap: 0; margin-right: calc(-1 * var(--s8)); overflow-x: clip; }  /* the drawer slides in 12px; no scrollbar flash */
.ex--open .ex-list { padding-right: var(--s5); }
.ex--open .recent { display: none; }
.ex--open .dpanel { position: sticky; top: 0; align-self: start; max-height: 100vh; min-height: 0; overflow-y: auto; scrollbar-width: thin; }

/* -------- result lists: one grid per tab, header and rows share --cols -------- */
.xlw { --cols: 20px minmax(0, 1fr) 184px 128px 48px; }
.xlw--rec { --cols: 20px minmax(0, 1fr) 160px 128px 64px 48px; }
.xlw--val { --cols: minmax(0, 1fr) 76px 76px 96px 48px; }
.xlw--bot { --cols: minmax(0, 1fr) 72px 104px 84px 72px 48px; }
.xlw--ppl { --cols: minmax(0, 1fr) 84px 88px 104px 56px; }
/* drawer open (review A5/27): only the Values column goes; Bot · chat stays as one line (the bot; the chat is in
   the sentence and in the cell's title); the bots tab also drops Status, which the quick view states */
.xlw--narrow { --cols: 20px minmax(0, 1fr) 120px 48px; }
.xlw--rec.xlw--narrow { --cols: 20px minmax(0, 1fr) 120px 36px 48px; }
.xlw--val.xlw--narrow { --cols: minmax(0, 1fr) 36px 36px 36px 48px; }
.xlw--bot.xlw--narrow { --cols: minmax(0, 1fr) 84px 44px 36px 48px; }
.xlw.xlw--narrow .r-v, .xlw.xlw--narrow .r-st, .xlw.xlw--narrow .r-src .r-chat { display: none; }
.xlw.xlw--narrow .r > .r-src { pointer-events: auto; }
.xlw--narrow .r-src .pv { display: block; overflow: hidden; text-overflow: ellipsis; }

.xl-h { display: grid; grid-template-columns: var(--cols); column-gap: 10px; align-items: end; padding: 2px 0 6px; border-bottom: 1px solid var(--line-2);
  font-size: var(--fs-sm); line-height: 18px; color: var(--text-3); white-space: nowrap; }
.xl-h .xl-ctl { grid-column: 1 / 3; display: block; min-width: 0; }
.xl-ctl .dd { display: inline-block; }
.xlw--val .xl-ctl, .xlw--bot .xl-ctl, .xlw--ppl .xl-ctl { grid-column: 1; }
.xl-h .xl-ctl b { color: var(--text); font-weight: 500; }
.xl-h .xl-ctl > a { color: var(--text-2); }
.xl-h .sep { padding: 0 6px; }
.xl-h .num { text-align: right; }
.xl-h .sorted { color: var(--text); font-weight: 500; }
.xl-h .dd--inline > summary { color: var(--text-2); }

.xl > .row { position: relative; border-bottom: 1px solid var(--line); }
.xl > .row:hover, .xl > .row:focus-within { z-index: 3; }
.xlw .r { position: relative; display: grid; grid-template-columns: var(--cols); column-gap: 10px; align-items: start; padding: 9px 0; }
.xl > .row:hover > .r { background: var(--hover); }
.xl > .row--open > .r, .xl > .row--open:hover > .r { background: var(--active); box-shadow: none; }
.xl > .row--open > .r::before { content: ""; position: absolute; left: -10px; top: 6px; bottom: 6px; width: 2px; background: var(--marker); }
/* the whole row opens the object: one overlay link; text lets clicks through, controls sit above it */
.xlw .r > * { pointer-events: none; min-width: 0; }
.xlw .r > .r-ov { position: absolute; inset: 0; z-index: 0; pointer-events: auto; }
.r-ov:focus-visible { outline-offset: -2px; border-radius: 0; }
.xlw .r a, .xlw .r summary, .xlw .r button, .xlw .r details, .xlw .r .hcw, .xlw .r input, .xlw .r select { pointer-events: auto; }
.xlw .r a:not(.r-ov), .xlw .r summary, .xlw .r .hcw, .xlw .r .rvl { position: relative; z-index: 1; }
.xlw .r .hcw:hover, .xlw .r .hcw:focus-within, .xlw .r .rvl[open] { z-index: 6; }

.xlw .r-x { display: grid; place-items: center; width: 20px; height: 20px; color: var(--text-3); border-radius: var(--r-sm); }
.xlw .r-x:hover { background: var(--active); color: var(--text); }
.xlw .r-x .i { width: 14px; height: 14px; }
.xlw .r-main { position: relative; min-width: 0; }
.xlw .r-t { display: block; height: 20px; line-height: 20px; color: var(--text); white-space: nowrap; }
.xlw .r-t .pv { color: var(--text); }
.xlw .r-t--flex { display: flex; align-items: baseline; gap: 6px; }
.r-tail { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mv--this { color: var(--text); text-decoration: underline solid var(--text-2); }
.xlw .r-t .handle { margin-left: 2px; }
.xlw .r-s { height: 18px; margin-top: 2px; font: 13px/18px var(--font-mono); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xlw .r-main > .ra { position: absolute; top: -2px; right: 0; }
.ra .btn--reveal { color: var(--reveal); border-color: color-mix(in srgb, var(--reveal) 55%, transparent); }
.ra .rvl-pop { text-align: left; }
.xlw .r-v { display: flex; flex-direction: column; align-items: flex-start; }
.xlw .r-v .v { line-height: 18px; padding: 0 5px; max-width: 100%; }
.xlw .r-v .v-x { line-height: 18px; }
.r-vn { margin-top: 2px; font-size: var(--fs-sm); line-height: 18px; color: var(--text-3); white-space: nowrap; }
.xlw .r-src { display: flex; flex-direction: column; line-height: 20px; white-space: nowrap; }
.xlw .r-src .pv { font-size: var(--fs-base); }
.r-chat { margin-top: 2px; font-size: var(--fs-sm); line-height: 18px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; }
.xlw .r-w { line-height: 20px; }
.tw { display: flex; flex-direction: column; font-size: var(--fs-sm); line-height: 20px; color: var(--text-2); white-space: nowrap; }
.tw span { margin-top: 2px; line-height: 18px; color: var(--text-3); }
.xlw .r-n { text-align: right; line-height: 20px; font-variant-numeric: tabular-nums; }
.xlw .r-n a { color: var(--text); }
.xlw .r-n a:hover { color: var(--accent); }
.xlw .r-c { line-height: 20px; font-size: var(--fs-meta); color: var(--text-2); white-space: nowrap; }
.xlw .r-c .prio { font-size: var(--fs-meta); }
.vk { color: var(--text-2); }
.vx { font: 13px var(--font-mono); color: var(--text); }
/* tentative join: a dashed mark, the reason is in the record */
.xlw .r-t .tent { height: 18px; margin-left: 6px; }

/* -------- peek: the four questions, even-height blocks (Expand all = skim mode) -------- */
.xlw .xp { padding: 0 0 12px 30px; }
.xp-q { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--s5); padding-top: 10px; border-top: 1px solid var(--line); }
.xp-q > div { min-height: 84px; min-width: 0; }
.xp-q dt { margin-bottom: 4px; font-size: var(--fs-sm); color: var(--text-3); }
.xp-q dd { margin: 0; font-size: var(--fs-meta); line-height: 18px; color: var(--text); }
.xp-v { display: flex; flex-wrap: wrap; gap: 4px; }
.xp-v .v { line-height: 18px; padding: 0 5px; }
.xp-v .v-x { line-height: 18px; }
.xp-n { display: block; margin-top: 4px; font-size: var(--fs-sm); color: var(--text-3); }
.xp-n a { color: var(--accent); }

/* -------- drawer (message, victim record, value, bot quick view) -------- */
.dpanel .dp-top { flex-wrap: wrap; row-gap: 10px; }
.dpanel .dp-top h2 { order: 2; flex-basis: 100%; font-size: var(--fs-sect); line-height: 26px; }
.dpanel .dp-top h2 .handle { font-size: var(--fs-sm); margin-left: 4px; }
.dpanel .dp-top h2 .tag, .dpanel .dp-top h2 .tent { vertical-align: 3px; margin-left: 6px; }
.dpanel .dp-acts { order: 1; flex-basis: 100%; justify-content: flex-end; }
.dpanel .dp-acts .btn .i { width: 13px; height: 13px; }
.dp-recent { margin-right: auto; font-size: var(--fs-meta); }
.recent--pop { min-width: 220px; padding: 6px 14px 10px; border-left: 0; }
.dpanel .dp-row .dim { margin-left: 0; }
.dpanel .dp-row .dp-pos { margin-left: auto; }
.dpanel .tabs--sm { margin-top: var(--s3); }
.dq { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px 12px; margin-top: var(--s4); }
.dq dt { font-size: var(--fs-meta); line-height: 20px; color: var(--text-3); }
.dq dd { margin: 0; min-width: 0; line-height: 20px; color: var(--text); }
.dq-n { display: block; margin-top: 4px; font-size: var(--fs-meta); color: var(--text-2); }
.dq-took { display: block; margin-bottom: 6px; }
.dq-p { font-size: var(--fs-base); }
.vlist.vlist--row { flex-direction: row; flex-wrap: wrap; gap: 4px; }
.dp-h3 { display: flex; align-items: baseline; gap: 12px; margin: var(--s5) 0 8px; font-size: var(--fs-sm); }
.dpanel .dp-h3 h3.label { margin: 0; }
.dp-h3 a { margin-left: auto; }
.dpanel .prov { margin: 0 0 8px; }
.kv.kv--dp { grid-template-columns: 112px minmax(0, 1fr); gap: 8px 12px; margin-top: var(--s4); }
.tbl--dp th { padding: 6px 10px 6px 0; font-size: var(--fs-sm); color: var(--text-3); border-bottom-width: 1px; }
.tbl--dp td { height: 36px; padding: 4px 10px 4px 0; font-size: var(--fs-meta); border-bottom: 1px solid var(--line); }
.tbl--dp tbody tr:hover td { background: transparent; }
.tbl--type td.pb { width: 45%; }
.tbl--where td { vertical-align: top; padding-top: 7px; padding-bottom: 7px; line-height: 20px; }
.tbl--where .r-chat { display: block; margin-top: 0; }
.tbl--type .pbar { margin: 0; }
.xc { border-top: 1px solid var(--line); }
.xc-m { display: grid; grid-template-columns: 64px 96px minmax(0, 1fr); gap: 8px; padding: 5px 6px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); line-height: 18px; color: var(--text-3); }
.xc--wide .xc-m { grid-template-columns: 88px 96px minmax(0, 1fr); }
.xc-m .t { font: 12px/18px var(--font-mono); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xc-m .t .pv { color: var(--text-2); }
.xc-m.self { background: var(--active); color: var(--text); }
.xc-m.self .t { color: var(--text); }
.xjs { border-top: 1px solid var(--line); }
.xj { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-meta); line-height: 18px; }
.xj-t { display: flex; gap: 8px; color: var(--text-2); }
.xj-t time { color: var(--text); font-variant-numeric: tabular-nums; }
.xj-w { color: var(--text-2); }
.xj .r-s { grid-column: 2; font: 12px/18px var(--font-mono); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xj .tent { margin-left: 0; }
.dp-ref { margin-top: var(--s5); padding-top: 10px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text); }
.dp-ref .mono { font-size: 12px; }

/* -------- pager: Newer / Older with "1–50 of N" -------- */
.xlw .pager { gap: 6px; }
.xlw .pager b { color: var(--text); font-weight: 500; margin-right: 6px; }
.xlw .pager .btn .i { width: 13px; height: 13px; }
.is-off { opacity: .45; pointer-events: none; }

/* -------- widths: Recent rail from 1500, drawer narrower at the 1280 floor -------- */
@media (min-width: 1500px) {
  .ex--open { grid-template-columns: minmax(0, 1fr) 168px 560px; }
  .ex--open .recent { display: block; }
  .dp-recent { display: none; }
}
@media (max-width: 1380px) {
  .ex { grid-template-columns: minmax(0, 1fr); }
  .ex.ex--open { grid-template-columns: minmax(0, 1fr) 480px; }
  .xlw--bot { --cols: minmax(0, 1fr) 68px 100px 76px 64px 48px; }
}


/* hover cards never widen the page: right-hand cells open them leftwards; in the drawer they hang under their value cell */
.dq dd, .kv--dp dd, .tbl--dp td:first-child { position: relative; }
.dq .hcw, .kv--dp .hcw, .tbl--dp td:first-child .hcw { position: static; }
.dpanel .hc { width: min(320px, 100%); }
/* the reveal popover opened from a row keeps its amber submit (base .ra button would neutralise it) */
.ra .rvl-pop .btn--reveal-go { height: 28px; padding: 0 10px; border-color: var(--reveal); background: var(--reveal); color: light-dark(#ffffff, #1a1200); font-weight: 500; }
.dp-h3 { white-space: nowrap; }
/* the stage-1 .r-v / .r-src / .r-w padding and gap do not apply inside the stage-2 lists */
.xlw .r-v, .xlw .r-src, .xlw .r-w { padding-top: 0; gap: 0; }
.xlw .r-src > .hcw { display: block; height: 20px; }

/* a "see all" link at the foot of a filter list (Bot: All 37 bots, by count) */
.dd-pop .dd-all { display: block; padding: 7px 6px 2px; font-size: var(--fs-meta); }

/* Expand all = skim mode: every row's peek, the four questions as even-height blocks, no chat context */
.xlw--skim .xp-q > div { min-height: 88px; }
.xlw--skim .xp { padding-bottom: 10px; }
/* the peek's What was taken: two chips, one per line, each clipped to its block */
.xp-v { flex-direction: column; align-items: flex-start; }
.xp-v .v { max-width: 100%; overflow: hidden; }
.xp-v .v-x { overflow: hidden; text-overflow: ellipsis; }
/* a row sentence: names with hover cards and the tentative mark stay whole; the words between them ellipsize */
.xlw .r-t--flex > .r-tail { flex: 0 1 auto; white-space: nowrap; }
.xlw .r-t--flex > .hcw, .xlw .r-t--flex > .tent { flex: none; }
.xlw .r-t--flex > .tent { margin-left: 0; align-self: center; }

/* -------- message.html: the message's full page (the object behind the message drawer) -------- */
.title-row h1.msg-h1 { font-size: var(--fs-xl); }
.msg-sub { margin: 6px 0 0; font-size: var(--fs-sm); color: var(--text-2); }
.msg-sub .sep { padding: 0 6px; color: var(--text-3); }
.msum { max-width: 860px; }
.msum .dq { grid-template-columns: 148px minmax(0, 1fr); margin-top: 0; }
.msum h3.label { margin: var(--s6) 0 8px; }
.msum .dp-h3 { margin-top: var(--s6); }
.msum .xc-m { grid-template-columns: 72px 104px minmax(0, 1fr); padding: 6px 8px; font-size: var(--fs-meta); }
.msum .xc-m .t { font-size: var(--fs-meta); }
.msum .dp-ref { margin-top: var(--s6); }
.xc-m > a[class^="t--"] { text-decoration: none; }
.xc-m > a[class^="t--"]:hover { text-decoration: underline; }

/* -------- value tags (fails checksum, found alone, hub) and row notes; states.html#rows shows each -------- */
.vtag { display: inline-flex; align-items: center; height: 16px; padding: 0 4px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font-size: var(--fs-xs); line-height: 14px; color: var(--text-2); text-decoration: none; white-space: nowrap; vertical-align: 1px; }
.vtag:hover, .vtag:focus-visible { border-color: var(--text-3); color: var(--text); }
.xlw .r .term { pointer-events: auto; position: relative; z-index: 1; }
.xlw .r .term:hover, .xlw .r .term:focus { z-index: 6; }
.xlw .r .term .tip { white-space: normal; }
.xlw .r-t--flex > .vtag { flex: none; align-self: center; }
/* a sentence's neutral note: "· in no victim record" (unattached capture), "· sender sealed" (masked level) */
.r-note { flex: none; font-size: var(--fs-meta); color: var(--text-3); white-space: nowrap; }
.r-note a { color: var(--text-2); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
.r-note .term { color: var(--text-2); }
/* a records list says which rebuild of the records table it read */
.answer .asof { color: var(--text-3); }

/* ===================================================================
   Search: the start page, the type-ahead, saved and recent searches,
   how to search (review G1–G3). Flare's query assistant (fields + recent
   under the box) for structure; Datadog / GitHub for the grouped rows.
   =================================================================== */
/* -------- the start page (explore-start.html): your searches | where to start -------- */
.main--start .sband { padding-bottom: 14px; }
.sx-teach { color: var(--text-2); }
.sx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: var(--s10); margin-top: var(--s6); align-items: start; }
.sx-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; }
.sx-h > a { margin-left: auto; font-size: var(--fs-sm); color: var(--text-2); }
.sx-h > a:hover { color: var(--text); }
.sx-hn { font-size: var(--fs-sm); color: var(--text-3); }
.sx-hn .term .tip { width: 320px; }
.sx-list { border-top: 1px solid var(--line); }
.sx-list + .sx-h { margin-top: var(--s6); }
.sx-list li { display: grid; grid-template-columns: minmax(0, 1fr) 160px 96px; column-gap: 12px; align-items: baseline; padding: 8px 0;
  border-bottom: 1px solid var(--line); font-size: var(--fs-meta); line-height: 20px; }
.sx-a { display: flex; align-items: baseline; gap: 10px; min-width: 0; color: var(--text); white-space: nowrap; overflow: hidden; }
.sx-a:hover { text-decoration: none; }
.sx-a:hover .sx-n, .sx-a:hover > .sx-q { color: var(--accent); }
.sx-n { flex: none; color: var(--text); }
.sx-q { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.sx-n + .sx-q { color: var(--text-2); }
.qf { color: var(--text-3); }
.sx-f { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sx-t { text-align: right; color: var(--text-3); white-space: nowrap; }
.sx-kinds { display: grid; grid-template-columns: 104px minmax(0, 1fr); border-top: 1px solid var(--line); font-size: var(--fs-meta); line-height: 20px; }
.sx-kinds dt, .sx-kinds dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sx-kinds dt { color: var(--text-3); }
.sx-kinds dd { color: var(--text); }
.sx-kinds dd a { color: var(--text); }
.sx-kinds dd a:hover { color: var(--accent); }
.sx-kinds .sep { padding: 0 2px; color: var(--text-3); }
.sx-kinds dd a.sx-all { color: var(--text-3); }
.sx-kinds .hcw { display: inline; }
.sx-kinds dd > a, .sx-kinds dd > .hcw > .pv, .sx-kinds .nowrap { white-space: nowrap; }
@media (max-width: 1380px) { .sx-n + .sx-q { display: none; } }   /* a saved search keeps its name; the query is on hover */

/* -------- type-ahead: an ARIA combobox over a grouped listbox, drawn under the box (app.js) -------- */
.qbar { position: relative; }
.ta { position: absolute; z-index: 20; top: calc(100% + 4px); left: -1px; right: -1px; padding: 4px 0 0; background: var(--raised);
  border: 1px solid var(--line-2); border-radius: var(--r-pop); font-family: var(--font-sans); }
.ta[hidden] { display: none; }
.ta-g + .ta-g, .ta-lb > .ta-o + .ta-g { margin-top: 2px; border-top: 1px solid var(--line); }
.ta-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 12px 2px;
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.ta-u { font-size: var(--fs-sm); font-weight: 400; letter-spacing: 0; text-transform: none; }
.ta-o { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 72px; column-gap: 16px; align-items: baseline; padding: 7px 12px;
  font-size: var(--fs-meta); line-height: 20px; color: var(--text-2); cursor: pointer; }
.ta-o:hover { background: var(--hover); }
.ta-o[aria-selected="true"] { background: var(--active); color: var(--text); }
.ta-o[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; background: var(--marker); }
.ta-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.ta-n b { font-weight: 500; }
.ta-n .mono { font-size: 13px; }
.ta-x { margin-left: 6px; font-size: var(--fs-sm); color: var(--text-3); }
.ta-x.mono { font-size: 12px; }
.ta-w { color: var(--text-3); }
.ta-w b { color: var(--text-2); font-weight: 500; }
.ta-c { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ta-a { text-align: right; font-size: var(--fs-sm); color: var(--text-3); white-space: nowrap; }
.ta-o[aria-selected="true"] .ta-a { color: var(--text); }
.ta-s { grid-column: 1 / -1; font-size: var(--fs-sm); line-height: 18px; color: var(--text-3); }
/* masked access typing a secret kind: the refusal is a row that does nothing (an active, disabled option) */
.ta-o[aria-disabled="true"] { cursor: default; grid-template-columns: minmax(0, 1fr); padding: 10px 12px; background: transparent; }
.ta-o[aria-disabled="true"]::before { display: none; }
.ta-o[aria-disabled="true"] .ta-n { white-space: normal; font-size: var(--fs-base); }
.ta-o[aria-disabled="true"] .ta-c, .ta-o[aria-disabled="true"] .ta-a { display: none; }
.ta-k { margin-top: 4px; padding: 7px 12px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text-3); }
.ta-k kbd { margin-right: 3px; }
/* a name accepted with Tab: the filter chip sits in the box, before the text */
.qbar > .fchip { flex: none; margin-left: 6px; }
.qbar > .fchip button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-3); cursor: pointer; }
.qbar > .fchip button:hover { background: var(--hover); color: var(--text); }
.qbar > .fchip .i { width: 12px; height: 12px; }
/* prototype navigation between the type-ahead states */
.proto-nav a[aria-current] { color: var(--text); text-decoration: none; }

/* -------- searches.html: saved (owner, sharing) and recent -------- */
.ss-t td { vertical-align: top; padding-top: 10px; padding-bottom: 10px; height: auto; font-size: var(--fs-meta); line-height: 20px; }
.ss-t .ss-q { display: block; }
.ss-t .ss-qa:hover .sx-q { color: var(--accent); }
.ss-t .acts form { display: inline; }
.ss-t--saved td:first-child { width: 42%; }
.ss-t--recent td:first-child { width: 52%; }
.lnk { margin-left: 10px; padding: 0; border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.lnk:hover { color: var(--accent); }
.ss .prov { margin: -6px 0 var(--s3); }

/* -------- help-search.html: ten worked examples, then the fields -------- */
.hx .prov { margin: -6px 0 var(--s3); }
.hx-list { max-width: 1080px; border-top: 1px solid var(--line); }
.hx-list li { display: grid; grid-template-columns: 300px minmax(0, 1fr) 96px; column-gap: var(--s5); align-items: baseline; padding: 10px 0;
  border-bottom: 1px solid var(--line); font-size: var(--fs-meta); line-height: 20px; }
.hx-q .sx-q { font-size: 14px; white-space: normal; }
.hx-d { color: var(--text-2); max-width: 78ch; }
.hx-list form { justify-self: end; }
.hx-t td { font-size: var(--fs-meta); }
.hx-t td.mono { font-size: 13px; color: var(--text); white-space: nowrap; }
.hx-t td.mono .dim { font-family: var(--font-sans); font-size: var(--fs-sm); }
.hx-t { max-width: 1080px; }
.hx-k { max-width: 1080px; }
.hx-t td.hx-v { color: var(--text-2); white-space: normal; }
.hx-k { margin-top: var(--s4); font-size: var(--fs-meta); color: var(--text-2); }
.hx-k b { color: var(--text); font-weight: 500; margin-right: 6px; }

/* ==== 15-states.css ==== */
/* ===================================================================
   Honest states (owner: Explore builder; every page reuses these).
   Review C9: empty result (what was searched + nearest alternatives),
   too broad (revealed-text search only), pending row, loading skeleton,
   error; C8: the plain refusal line for a masked-level secret lookup.
   No illustrations, no icons, no centred hero text: a state is a line
   of plain words where the results would be, then what to do next.
   =================================================================== */
.hs { padding: var(--s5) 0 var(--s2); }
.hs-t { color: var(--text); font-size: var(--fs-base); font-weight: 500; line-height: 20px; }
.hs-t .help { margin-left: 6px; vertical-align: -3px; }
.hs-d { margin-top: 4px; font-size: var(--fs-meta); line-height: 18px; color: var(--text-2); }
.hs-a { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s3); font-size: var(--fs-meta); }
.hs-a form { display: inline; }

/* empty: what was searched | nearest alternatives with their exact counts */
.hs-cols { display: grid; grid-template-columns: 240px minmax(0, 560px); gap: var(--s8); margin-top: var(--s4); }
.hs-h { margin-bottom: 6px; font-size: var(--fs-sm); font-weight: 400; color: var(--text-3); }
.hs-kv { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 6px 10px; font-size: var(--fs-meta); line-height: 18px; }
.hs-kv dt { color: var(--text-3); }
.hs-kv dd { color: var(--text); }
.hs-alts { border-top: 1px solid var(--line); }
.hs-alts li { display: grid; grid-template-columns: minmax(0, 1fr) auto 128px; gap: var(--s3); align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line);
  font-size: var(--fs-meta); line-height: 18px; color: var(--text); }
.hs-alts li > a { justify-self: end; }

/* too broad: a sentence, then the two narrowing controls inline */
.hs-form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s3); font-size: var(--fs-meta); color: var(--text-2); }
.hs-form label { display: inline-flex; align-items: center; gap: 6px; }
.hs-form input, .hs-form select { height: 28px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); color: var(--text); }

/* pending: a received message not read yet — a row with no text */
.row--pending .r-t { color: var(--text-2); }
.hs-pw { color: var(--text); }
.r-s.r-s--none, .xlw .r-s.r-s--none { font: var(--fs-sm)/18px var(--font-sans); color: var(--text-3); }

/* loading: static bars in the shape of a row; a slow pulse only when motion is welcome */
.row--sk .r { padding: 9px 0; }
.sk { display: block; border-radius: var(--r-sm); background: var(--hover); }
.sk--t { width: 42%; height: 12px; margin: 4px 0 6px; }
.sk--w1 { width: 54%; } .sk--w2 { width: 33%; }
.sk--s { width: 86%; height: 10px; margin-top: 6px; }
.sk--v { width: 128px; height: 18px; }
.sk--b { width: 96px; height: 12px; margin: 4px 0 8px; }
.sk--c { width: 72px; height: 10px; }
.sk--d { width: 36px; height: 12px; margin: 4px 0 8px; }
@media (prefers-reduced-motion: no-preference) {
  .row--sk .sk { animation: sk-pulse 1.6s ease-in-out infinite; }
  @keyframes sk-pulse { 50% { opacity: .5; } }
}

/* refused (masked level typed a card, password or code): one plain line, not an empty result */
.hs-ref { margin-top: 10px; font-size: var(--fs-base); line-height: 20px; color: var(--text); }

/* the specimen page itself (states.html) */
.hs-head { padding: var(--s6) 0 var(--s2); }
.hs-head h1 { font-size: var(--fs-xl); }
.hs-head .prov { margin: 4px 0 0; }
.hs-sec { padding: var(--s4) 0 var(--s6); border-top: 1px solid var(--line); }
.hs-sec + .hs-sec { margin-top: 0; }
.hs-sec > h2.label { margin-bottom: var(--s3); }
/* prototype navigation (review C7/1): a jump to the page a POST returns is marked as the prototype's, never
   dressed as product UI — a dashed note, outside the state it follows */
.proto-nav { display: inline-block; margin-top: var(--s3); padding: 3px 8px; border: 1px dashed var(--text-3); border-radius: var(--r-sm);
  font-size: var(--fs-sm); line-height: 18px; color: var(--text-3); }
.proto-nav a { color: var(--text-2); }
.proto-nav--top { display: block; margin: var(--s3) 0 0; }
.hs-band .sband { margin: 0; }
.hs-sec--pop { padding-bottom: 300px; }
.hs-sec--pop .ex-tabs, .hs-sec .ex-tabs { margin-top: 0; }
.hs-sec--hover { padding-bottom: 150px; }
.hs-hc .xl > .row { z-index: 3; }
.hs-hc .hc.hc--demo { position: absolute; display: block; }
.hs-toc { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: var(--s3); font-size: var(--fs-meta); }
.hs-toc a { color: var(--text-2); }
.hs-toc a:hover { color: var(--text); }

/* row types (states.html#rows): each list's own row beside a caption column, one group per list */
.rt-g + .rt-g { margin-top: var(--s6); }
.rt-r { display: grid; grid-template-columns: 152px minmax(0, 1fr); column-gap: var(--s4); }
.rt dt, .rt dd { margin: 0; min-width: 0; }
.rt-c { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-meta); font-weight: 400; line-height: 20px; color: var(--text-2); }
.rt-s { display: block; font-size: var(--fs-sm); line-height: 18px; color: var(--text-3); }
.rt-r--h .rt-c { padding: 2px 8px 6px 0; border-bottom-color: var(--line-2); font-size: var(--fs-sm); font-weight: 500; line-height: 18px; color: var(--text); }
.rt-r--h .rt-s { font-weight: 400; }
.rt-r--h .rt-x { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.rt-x .xl-h .xl-ctl { color: var(--text-3); }
/* victims.html rows: one table per example; the first header shows, the rest keep theirs for screen readers only */
.rt-vr .tbl { margin: 0; }
.rt-vr--h tbody { display: none; }
.rt-vr--h .vr th { padding-top: 2px; padding-bottom: 6px; border-bottom-width: 1px; font-size: var(--fs-sm); line-height: 18px; color: var(--text-3); }
.rt-vr--cont .vr thead th { height: 0; padding-top: 0; padding-bottom: 0; border-bottom: 0; font-size: 0; line-height: 0; }
/* an unattached capture in the victims.html grammar: the Record column says there is none, in words */
.vr-id .vr-none { font: var(--fs-sm)/22px var(--font-sans); color: var(--text-3); }

/* ==== 20-detail.css ==== */
/* ===================================================================
   6. Detail pages (Bot; Actor, Group, Brand, Case, Record and Value reuse
   .ph / .detail / .sect / .props). Owner: B2. Bot-only rules are marked.
   =================================================================== */
.ph { margin: 0 calc(-1 * var(--s8)); padding: var(--s4) var(--s8) 0; background: var(--raised); border-bottom: 1px solid var(--line-2); }
.ph-top { display: flex; align-items: center; gap: var(--s3); }
.back { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--text-2); }
.back:hover { background: var(--hover); color: var(--text); }
.crumbs { font-size: var(--fs-sm); color: var(--text-3); }
.crumbs a { color: var(--text-3); }
.ph-top .acts { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: var(--s3); }
.title-row h1 { font-size: var(--fs-2xl); font-weight: 500; letter-spacing: -.01em; }
.title-row .handle { font-size: var(--fs-base); }
.status { font-size: var(--fs-sm); color: var(--text-2); }
.status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--ok); vertical-align: 1px; }
.ph .tabs--seg { margin: var(--s3) 0 var(--s4); }
.tag--link { color: var(--text); }
.tag--link:hover { text-decoration: none; border-color: var(--h); }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s10); }
.detail-main { min-width: 0; }
.sect { padding: var(--s6) 0 var(--s5); border-bottom: 1px solid var(--line); }
.sect:last-child { border-bottom: 0; }
.sect--lead { padding: var(--s4) 0 var(--s4); }
.sect-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: var(--s3); }
.sect-h .help { align-self: center; }
.sect-t { font-size: var(--fs-sect); font-weight: 500; }
.sect > .sect-t { margin-bottom: var(--s3); }
.sect-h .n { color: var(--text-3); font-size: var(--fs-sm); }
.sect-h .end { margin-left: auto; font-size: var(--fs-sm); color: var(--text-3); display: flex; gap: 14px; }
.prov-i { font-size: var(--fs-sm); color: var(--text-3); }
.summary { font-size: var(--fs-lg); line-height: 1.55; max-width: 92ch; }
.summary b { font-weight: 500; color: var(--text); }
.cov { margin-top: 8px; font-size: var(--fs-sm); color: var(--text-3); max-width: 100ch; }

/* states: a word with a mark, green = state (Collecting / New), grey = not collecting */
.bst { font-size: var(--fs-sm); color: var(--text-2); white-space: nowrap; }
.bst::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--ok); vertical-align: 1px; }
.bst--new { color: var(--text); font-weight: 500; }
.bst--off::before { background: transparent; border: 1.5px solid var(--text-3); width: 7px; height: 7px; box-sizing: border-box; }
.bst--gone { color: var(--text-3); }
.kv .bst { font-size: inherit; }
.bst--gone::before { border-radius: 0; height: 1.5px; width: 8px; background: var(--text-3); vertical-align: 3px; }

/* tentative join: .tent is shared (10-explore); these pages only position it */
.step .tent, .jl1 .tent { margin-left: 0; }

/* ---- Bot: what it took — fixed table, chart takes the rest, a real gap ---- */
.harm { display: grid; grid-template-columns: 412px minmax(0, 1fr); gap: var(--s10); align-items: start; }
.harm-t { table-layout: fixed; width: 412px; }
.harm-t th:nth-child(1) { width: 152px; } .harm-t th:nth-child(2) { width: 72px; } .harm-t th:nth-child(3) { width: 92px; }
.harm-t th:nth-child(4) { width: 96px; padding-right: 0; }
.harm-t td:last-child { padding-right: 0; }
.harm .tbl td:first-child { white-space: nowrap; }
.harm-t tr.sub td { height: 28px; padding-top: 0; padding-bottom: 4px; }
.harm-t tr.sub td:first-child { padding-left: 14px; font-size: var(--fs-sm); }
.harm-t tr.sub td:first-child a::before { content: "└ "; color: var(--line-2); }
.harm-chart { min-width: 0; padding-top: 10px; }
.harm-chart .chart-h { flex-wrap: wrap; }

/* ---- Bot: model review ---- */
.finding { border-top: 1px solid var(--line); }
.finding > summary { list-style: none; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 10px 0; cursor: pointer; }
.finding > summary::-webkit-details-marker { display: none; }
.finding > summary:hover .claim { color: var(--accent); }
.fn { font-size: var(--fs-sm); color: var(--text-3); }
.claim { font-size: var(--fs-md); color: var(--text); }
.fk { display: inline-flex; align-items: center; gap: 6px; }
.fk .evk { margin-right: 0; }


.fbody { padding: 0 0 14px 32px; }
.fprov { margin-bottom: 8px; font-size: var(--fs-sm); color: var(--text-3); }
.fprov a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
/* the one word that tells evidence apart: Cited (the model quoted it) vs Example (kitwatch picked it) */
.evk { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-right: 2px; border-radius: var(--r-sm); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .02em; color: var(--text); border: 1px solid var(--text-3); }
.evk--example { border-style: dashed; color: var(--text-2); font-weight: 400; }
.evk--counted { border-style: dotted; color: var(--text-2); font-weight: 400; }
.evk--cited { background: var(--active); }
.evlist { border-left: 1px solid var(--line-2); padding-left: 12px; }
.evlist li { display: grid; grid-template-columns: 64px 92px minmax(0, 1fr) auto auto; gap: 10px; align-items: baseline; padding: 3px 0; font-size: var(--fs-sm); color: var(--text-3); }
.evlist .t { font: 13px var(--font-mono); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evlist .ref { font: var(--fs-xs) var(--font-mono); color: var(--text-3); }
.evlist .ref:hover { color: var(--accent); }
.ann { padding: 0 6px; border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--text-2); white-space: nowrap; }
.basis { margin-top: 8px; font-size: var(--fs-sm); color: var(--text-3); }
.verdict-line { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text-2); }

/* ---- Bot: verdict and its dated history ---- */
.verdict { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line-2); }
.verdict-h { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.verdict-h h3 { font-size: var(--fs-md); }
.verdict-h .dim { font-size: var(--fs-sm); }
.vh th { padding-top: 6px; padding-bottom: 6px; font-size: var(--fs-sm); }
.vh td { font-size: var(--fs-base); }
.vh td:nth-child(1) { width: 150px; color: var(--text-2); }
.vh td:nth-child(2) { width: 120px; }
.vh td:nth-child(3) { width: 140px; }
.vh .vh-n { color: var(--text-3); font-size: var(--fs-sm); }
.vh tr.vh-p td { color: var(--text); }
.vh tr.vh-p .vh-n { color: var(--text-2); }
.vh tr.vh-none td { height: 32px; color: var(--text-2); font-size: var(--fs-sm); border-bottom: 1px dashed var(--line-2); }
.vh tbody tr:hover td { background: transparent; }
.vform { display: flex; align-items: center; gap: 8px; margin-top: var(--s3); font-size: var(--fs-sm); }
.vform select, .vform input { height: 28px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); color: var(--text); font-size: var(--fs-sm); }
.vform input { flex: 1; min-width: 120px; max-width: 280px; }

/* infrastructure table: names may wrap between bots, never inside one */
#infra .tbl td:nth-child(2), #infra .tbl td:nth-child(5) { white-space: nowrap; }

/* ---- Bot: linked bots as ranked pairs with typed evidence ---- */
.links .lb { display: grid; grid-template-columns: minmax(0, 1fr) 220px; column-gap: var(--s6); row-gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lb-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.lb-n { width: 14px; font-size: var(--fs-sm); color: var(--text-3); }
.lb-v { white-space: nowrap; }
.lb-sw { margin-left: auto; white-space: nowrap; font-size: var(--fs-sm); }
.lb-s { font-weight: 500; color: var(--text); font-size: var(--fs-base); }
.lb--weak .lb-s { font-weight: 400; color: var(--text-2); }
.lb-life { align-self: center; }
.evi { grid-column: 1 / -1; padding-left: 22px; }
.evi li { display: grid; grid-template-columns: 148px minmax(0, 1fr) 116px 84px; gap: 12px; align-items: baseline; padding: 2px 0; font-size: var(--fs-sm); }
.evi .ek { color: var(--text-2); }
.evi a { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evi a:hover { color: var(--accent); }
.evi .ed { color: var(--text-3); white-space: nowrap; }
.evi .eo { color: var(--text-2); text-align: right; white-space: nowrap; }
.lb--weak .evi a { color: var(--text-2); }
/* kept for other pages that used the stage-1 link list */
.lk { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.ev { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: var(--fs-sm); }
.ev .s { color: var(--text); }
.ev .w { color: var(--text-3); }
.strength { font-size: var(--fs-sm); color: var(--text-2); }
.strength--weak { color: var(--text-3); }
.life { display: block; width: 100%; height: 8px; }
.life .track { fill: var(--line-2); }
.life .this { fill: var(--text-3); }
.life .on { fill: var(--text); }
.life .span { fill: var(--text-3); }
.life-axis { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }
.life-legend { display: flex; justify-content: space-between; padding-top: 6px; font-size: var(--fs-xs); color: var(--text-3); }
.key-s::before { content: "■ "; } .key-w::before { content: "□ "; }

.sect--wide { border-top: 1px solid var(--line); }

.props { align-self: start; position: sticky; top: 0; padding: var(--s5) 0; }
.props-t { font-size: var(--fs-base); font-weight: 500; margin-bottom: var(--s3); }
.props .kv { grid-template-columns: 116px minmax(0, 1fr); font-size: var(--fs-base); padding-bottom: var(--s5); margin-bottom: var(--s5); border-bottom: 1px solid var(--line); }
.further li { padding: 3px 0; }
.props-note { margin-top: var(--s5); font-size: var(--fs-sm); color: var(--text-3); }

@media (max-width: 1380px) {
  .harm { grid-template-columns: 412px minmax(0, 1fr); gap: var(--s8); }
  .evi li { grid-template-columns: 132px minmax(0, 1fr) 108px 76px; }
  .links .lb { grid-template-columns: minmax(0, 1fr) 180px; }
}

/* ---- Bot: a section that loads separately (Linked bots on a busy bot; stage 3, G2) ----
   Loading: the real heading, one status line, skeleton rows in the real row's geometry (no spinner).
   Without JS: only a link to the full section. Error: one line with a retry link. app.js does the swap. */
.lz-msg { margin: -4px 0 6px; font-size: var(--fs-sm); line-height: 18px; color: var(--text-2); }
.lz-nojs, .lz-err { padding: 2px 0 6px; font-size: var(--fs-base); color: var(--text-2); }
.lz-nojs a, .lz-err a { color: var(--accent); }
.lz-nojs .dim { font-size: var(--fs-sm); }
.lz-err { display: none; }
html:not(.js) .lz .lz-msg, html:not(.js) .lz .lz-body { display: none; }
.js .lz .lz-nojs { display: none; }
.lz--err .lz-err { display: block; }
.lz--err .lz-msg, .lz--err .lz-body, .lz--err .lz-nojs { display: none; }
.lz--done .lz-msg { margin: 0; }
/* skeleton rows: bars only, in the places the name, verdict, strength, life bar and evidence will take */
.lb--sk .lb-h { align-items: center; height: 22px; }
.lb--sk .lb-h .sk, .lb--sk .evi .sk { height: 10px; }
.sk--nm { width: 132px; } .sk--vd { width: 44px; } .sk--st { width: 150px; margin-left: auto; }
.lb--sk .sk { background: var(--line-2); }
.lb--sk .lb-life .sk--lf { width: 100%; height: 6px; }
.lb--sk .lb-life .sk--ld { width: 76px; height: 8px; margin: 6px 0 0 auto; }
.lb--sk .evi li { align-items: center; height: 22px; }
.sk--ek { width: 92px; } .sk--ew { width: 62%; } .sk--ed { width: 84px; } .sk--eo { width: 56px; justify-self: end; }
.lb--sk + .lb--sk .sk--nm { width: 104px; } .lb--sk + .lb--sk + .lb--sk .sk--nm { width: 118px; }
.lb--sk + .lb--sk .sk--ew { width: 48%; }
@media (prefers-reduced-motion: no-preference) {
  .lb--sk .sk { animation: sk-pulse 1.6s ease-in-out infinite; }
  .lz--done .lz-body { animation: lz-in .18s var(--ease) both; }
  @keyframes lz-in { from { opacity: 0; } }
}

/* ==== 25-records.css ==== */
/* ===================================================================
   6b. Lists (Bots, Victim records), Victim record page, Value page. Owner: B2.
   =================================================================== */

/* ---- list header band: title, status segments, search + filters, chips ---- */
.lh { margin: 0 calc(-1 * var(--s8)); padding: var(--s5) var(--s8) var(--s4); background: var(--raised); border-bottom: 1px solid var(--line-2); }
.lh-top { display: flex; align-items: center; gap: var(--s4); }
.lh-top h1 { font-size: var(--fs-xl); }
.lh-top .acts { margin-left: auto; display: flex; gap: 8px; }
.lh-top .lsearch { margin-left: auto; margin-right: 0; }
.lh-top .lsearch + .acts { margin-left: 0; }
.lh-segrow { display: flex; align-items: center; gap: 10px; margin-top: var(--s3); }
.lh-segrow .lsearch { margin-left: auto; margin-right: 0; }
.lh .tabs--seg.lh-tabs { margin-top: 0; background: var(--bg); }
.lh .tabs--seg.lh-tabs .tab { height: 34px; }
.lh-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: var(--s3); }
.lh .dd > summary { background: var(--bg); }
.lsearch { display: flex; align-items: center; gap: 8px; width: 320px; height: var(--ctl); padding: 0 10px; margin-right: 4px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--bg); color: var(--text-3); }
.lsearch:focus-within { border-color: var(--focus); }
.lsearch input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0; font-size: var(--fs-base); }
.lsearch input:focus-visible { outline: none; }
.lsearch input::placeholder { color: var(--text-3); }
.lans { margin-top: var(--s4); font-size: var(--fs-base); color: var(--text-2); }
.lans b { color: var(--text); font-weight: 500; }
.lans a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
.ltb { display: flex; align-items: center; gap: 6px; padding: 10px 0 8px; font-size: var(--fs-sm); color: var(--text-3); }
.ltb b { color: var(--text); font-weight: 500; }
.lh + .ltb { padding-top: var(--s4); }

/* counts are doors: the number is the link, the arrow says so */
.cdoor { color: var(--accent); white-space: nowrap; }
.cdoor span { margin-left: 4px; color: var(--text-3); }
.cdoor:hover span { color: var(--accent); }

/* hover/focus actions stay up while their popover is open */
.ra:has(details[open]) { opacity: 1; }
.ra .rvl-pop { text-align: left; }
.ra .btn--reveal { color: var(--reveal); border-color: color-mix(in srgb, var(--reveal) 55%, transparent); }
.ra .btn--reveal:hover { color: var(--reveal); border-color: var(--reveal); }
.ra details { display: inline-block; }

/* ---- victim records table (list page and the bot page's latest records) ---- */
.vr { table-layout: fixed; }
.vr th.vr-id { width: 84px; }
.vr th.vr-src { width: 220px; }
.vr th.vr-when { width: 172px; }
.vr td { vertical-align: top; height: auto; padding-top: 9px; padding-bottom: 9px; }
.vr-id { font: 13px/22px var(--font-mono); }
.vr-id .pv { color: var(--text-2); }
.vr-main { min-width: 0; }
.vr-l1 { position: relative; display: flex; align-items: baseline; gap: 8px; min-width: 0; line-height: 22px; }
.vr-t { color: var(--text); white-space: nowrap; }
.vr-t:hover { text-decoration: none; }
.vr-t:hover span { text-decoration: underline; text-underline-offset: 2px; }
.vr-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.vr-l1 .tent { align-self: center; margin-left: 0; }
/* hover actions overlay the end of line 1, so they never take the sentence's width */
.vr-l1 .ra, .bl-l1 .ra { position: absolute; right: 0; top: -1px; padding-left: 10px; background: var(--hover); }
.row:focus-within > td { background: var(--hover); }
.vr-x { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 13px/1.5 var(--font-mono); color: var(--text-2); }
.vr-x > span:first-child { font-family: var(--font-sans); font-size: var(--fs-sm); margin-right: 4px; }
.vr-src { line-height: 22px; }
.vr-src .pv { white-space: nowrap; }
.vr-src .dim { display: block; font-size: var(--fs-sm); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vr-src--chat { white-space: nowrap; }
.vr-when { line-height: 22px; white-space: nowrap; }
td.vr-when .dim { display: block; font-size: var(--fs-sm); line-height: 1.5; }

/* ---- bots table ---- */
.bl { table-layout: fixed; }
.bl th a { color: var(--text-2); }
.bl th a:hover { color: var(--text); text-decoration: none; }
.bl th a.sorted { color: var(--text); font-weight: 500; }
.bl th { font-size: var(--fs-meta); }
.bl th.bl-brand { width: 132px; } .bl th.bl-v { width: 96px; } .bl th.bl-st { width: 116px; } .bl th.bl-last { width: 124px; }
.bl th.bl-first { width: 96px; } .bl th.bl-n { width: 116px; } .bl th.bl-n + .bl-n { width: 120px; }
.bl .bst { font-size: var(--fs-meta); }
.bl .prio { font-size: var(--fs-meta); }
.bl td { vertical-align: top; height: auto; padding-top: 9px; padding-bottom: 9px; line-height: 22px; }
.bl td.bl-main { min-width: 0; }
.bl-l1 { position: relative; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.bl-l1 .handle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-brand { white-space: nowrap; }
.bl-brand .pv { color: var(--text-2); }
.bl-brand a { color: var(--text-2); }
.bl-brand a:hover { color: var(--accent); }
.bl-v { white-space: nowrap; }
.bl-v .dim { display: block; font-size: var(--fs-sm); line-height: 1.5; }
.bl-last { color: var(--text-2); white-space: nowrap; }
.bl-first { color: var(--text-3); }

/* ---- victim record page ---- */
.rsum { margin: var(--s2) 0 var(--s4); font-size: var(--fs-lg); line-height: 1.5; color: var(--text-2); max-width: 110ch; }
.ph .rsum + .tabs--seg { margin-top: 0; }
.title-row .tent--lg { height: 22px; margin-left: 0; padding: 0 7px; font-size: var(--fs-sm); line-height: 20px; }
a.tent:hover { text-decoration: none; border-color: var(--text-2); color: var(--text); }
.sect--first { padding-top: var(--s5); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--s4); margin-top: var(--s2); }
.step { position: relative; display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 2px solid var(--text-2); }
.step::before { content: ""; position: absolute; left: 0; top: -6px; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; background: var(--text); outline: 3px solid var(--bg); }
.step--ctx { border-top: 2px dotted var(--line-2); }
.step--ctx::before { background: var(--bg); border: 1.5px solid var(--text-3); }
.step--tent { border-top-style: dashed; border-top-color: var(--text-3); }
.step--tent::before { background: var(--bg); border: 2px solid var(--text); }
.sw-l { display: flex; align-items: baseline; gap: 8px; font-weight: 500; }
.sg { margin-left: auto; font-size: var(--fs-sm); font-weight: 400; color: var(--text-3); }
.stime { font-size: var(--fs-lg); color: var(--text); font-variant-numeric: tabular-nums; }
.stext { font: 12px/1.5 var(--font-mono); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sj { font-size: var(--fs-sm); color: var(--text-2); }
.step--ctx .stime, .step--ctx .stext { color: var(--text-3); }
.sctx { margin-top: var(--s4); font-size: var(--fs-sm); color: var(--text-2); }
.sctx a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }

/* count segments that select the table below (Flare's exposure tiles, as a segmented control) */
.cseg { display: inline-flex; margin-bottom: var(--s3); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.cseg a { display: inline-flex; align-items: baseline; gap: 8px; height: var(--seg); padding: 9px 16px 0; color: var(--text-2); white-space: nowrap; }
.cseg a + a { border-left: 1px solid var(--line-2); }
.cseg a:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.cseg a[aria-current="true"] { background: var(--active); color: var(--text); }
.cseg a:focus-visible { outline-offset: -3px; }
.cseg-n { font-size: var(--fs-lg); font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.rv-t td { height: 40px; }
.rv-t .hcw .pv { white-space: nowrap; }
.rv-t td:nth-child(2) { width: 34%; }
.rv-t td.acts { width: 120px; }
.rv-t .ra { display: inline-flex; }
.rv-t td.acts .dim { font-size: var(--fs-sm); }
.rv-t .rvl-pop { text-align: left; }

.joins { border-top: 1px solid var(--line); }
.jm { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.jn { font-size: var(--fs-sm); color: var(--text-3); line-height: 24px; }
.jl1 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-height: 24px; line-height: 22px; }
.jl1 time { color: var(--text); font-variant-numeric: tabular-nums; }
.jr { margin-top: 2px; font-size: var(--fs-sm); color: var(--text-2); }
.jdet { margin-left: auto; }
.firm { display: inline-flex; align-items: center; height: 18px; padding: 0 5px; border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--text-2); font-size: var(--fs-xs); }
.jt { margin-top: 6px; padding: 2px 0 2px 12px; border-left: 1px solid var(--line-2); font: 13px/1.6 var(--font-mono); color: var(--text-2); white-space: pre-wrap; }
.jm--tent .jt { border-left: 1px dashed var(--text-3); }

/* ---- value page ---- */
.vkind { font-size: var(--fs-md); color: var(--text-2); }
.title-row h1.vt { letter-spacing: .02em; }
.title-row .v-n { font-size: var(--fs-base); }
.sub-h { margin: var(--s4) 0 2px; }
.sect-h + .sub-h { margin-top: 0; }
.vb th.vs-c, .vb td.vs-c { width: 42%; }
.vs-ax { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-3); }
.vstrip { display: block; width: 100%; height: 16px; }
.vstrip .tk { stroke: var(--text); stroke-width: 3px; }
.vstrip .bl { fill: var(--line-2); }
.vstrip .gd { fill: var(--line); }
.vm { table-layout: fixed; }
.vm th:nth-child(1) { width: 132px; } .vm th:nth-child(3) { width: 84px; } .vm th:nth-child(4) { width: 112px; }
.vm .vr-x { white-space: normal; }
.vm td { vertical-align: top; height: auto; padding-top: 9px; padding-bottom: 9px; line-height: 22px; }
.vm-m { min-width: 0; }
.vm-l1 { color: var(--text); }

@media (max-width: 1380px) {
  .bl th.bl-first, .bl td.bl-first { display: none; }
  .vr th.vr-src { width: 196px; }
  .vr th.vr-when { width: 160px; }
  .lsearch { width: 260px; }
}

/* ===================================================================
   Stage 3 (G2): collection-scale list, "as of", the largest record.
   =================================================================== */
/* answer line: the size, then "as of" the last rebuild (help says why); a quieter second line */
.lans .asof { white-space: nowrap; }
.asof + .help { margin-left: 6px; vertical-align: -3px; }
.asof time { color: var(--text); }
.lans2 { margin-top: 2px; font-size: var(--fs-sm); line-height: 18px; color: var(--text-3); }
.lans2 a { color: var(--text-2); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
.sect-h .asof { font-size: var(--fs-sm); color: var(--text-3); }
.sect-h .asof time { color: var(--text-2); }

/* facets that carry their share of the whole: count, percent, a thin bar under the label */
.ddp .dd-pop { min-width: 320px; }
.ddp .dd-pop label { height: auto; grid-template-rows: auto 3px; row-gap: 4px; padding: 6px 6px 7px; }
.ddp .dd-pop label .pbar { grid-column: 2 / 4; margin: 0; }
.ddp .dd-pop .c { color: var(--text-2); font-size: var(--fs-sm); white-space: nowrap; }
.ddp .pc { display: inline-block; min-width: 48px; margin-left: 6px; text-align: right; color: var(--text-3); }
.ddp-foot { padding: 6px 6px 2px; font-size: var(--fs-sm); color: var(--text-3); }
.ddp-foot a { color: var(--accent); }

/* sort as a quiet dropdown of links in the toolbar */
.ltb .dd > summary { height: 28px; background: transparent; border-color: transparent; color: var(--text-2); }
.ltb .dd > summary:hover, .ltb .dd[open] > summary { border-color: var(--line-2); background: var(--raised); }
.ltb .dd-pop { top: 30px; min-width: 200px; }

/* the Imitates column: the brand, or a quiet "no brand" (a word, never an empty cell) */
.vr th.vr-br { width: 124px; }
td.vr-br { line-height: 22px; overflow-wrap: break-word; }   /* a long brand wraps onto line 2 rather than losing its end */
td.vr-br .pv { color: var(--text-2); }
td.vr-br--none { color: var(--text-3); font-size: var(--fs-sm); }
/* tentative stays calm in a long list: same word and dashed edge, quieter ink */
.vr .vr-l1 .tent { height: 18px; padding: 0 5px; border-color: color-mix(in srgb, var(--text-3) 60%, transparent); color: var(--text-3); }

/* ---- the largest record (record-large.html) ---- */
.rfact { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: baseline; margin: 0 0 var(--s4); padding-top: 10px;
  border-top: 1px solid var(--line); font-size: var(--fs-base); }
.rfact dt { color: var(--text-3); }
.rfact dd { color: var(--text-2); }
.rfact dd b { margin-right: 10px; color: var(--text); font-weight: 500; }
.rfact a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
.ph .rsum + .rfact { margin-top: -4px; }

/* messages grouped by template: a row per template with its count; three examples when opened */
.tg-head, .tg > summary { display: grid; grid-template-columns: minmax(0, 1fr) 150px 96px 140px; gap: 12px; align-items: baseline; }
.tg-head { padding: 0 0 6px; border-bottom: 1px solid var(--line-2); font-size: var(--fs-sm); color: var(--text-3); }
.tg { border-bottom: 1px solid var(--line); }
.tg > summary { list-style: none; padding: 10px 0; cursor: pointer; }
.tg > summary::-webkit-details-marker { display: none; }
.tg > summary:hover .tg-n { color: var(--accent); }
.tg-n { font: 13px/22px var(--font-mono); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-n::before { content: "›"; display: inline-block; width: 16px; color: var(--text-3); font-family: var(--font-sans); transition: transform .15s var(--ease); }
.tg[open] .tg-n::before { transform: rotate(90deg); }
.tg-c { text-align: right; color: var(--text); font-weight: 500; }
.tg-head .num { text-align: right; }
.tg-w { color: var(--text-2); }
.tg-b { padding: 0 0 12px 16px; }
.tg-p { margin-bottom: 4px; font-size: var(--fs-sm); color: var(--text-3); }
.tg-p a { color: var(--accent); }
.tg-l { border-left: 1px solid var(--line-2); padding-left: 12px; }
.tg-l li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 2px 0; font-size: var(--fs-sm); }
.tg-l time { color: var(--text-3); }
.tg-x { font: 13px/1.5 var(--font-mono); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grpby { margin-left: auto; font-size: var(--fs-sm); color: var(--text-3); }
.grpby a { margin-left: 10px; color: var(--text-2); }
.grpby a[aria-current] { color: var(--text); font-weight: 500; }

/* values of a large record: sized and paged; a hub value carries its note on a second line */
.kindrow { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 2px; font-size: var(--fs-sm); }
.kindrow a { color: var(--text-2); }
.kindrow a[aria-current] { color: var(--text); font-weight: 500; }
.kindrow .n { margin-left: 3px; color: var(--text-3); font-weight: 400; }
.ltb--in { padding: 6px 0 2px; }
.rv-t--big td:nth-child(2) { width: auto; }
.rv-t--big th:nth-child(2) { width: 150px; } .rv-t--big th:nth-child(3) { width: 112px; } .rv-t--big th:nth-child(4) { width: 112px; }
.rv-t--big td.dim { font-size: var(--fs-sm); }
.rv-t--big .hcw .pv { color: var(--text-2); }
.rv-t--big tr.row--hub td { border-bottom: 0; }
.rv-t--big tr.hub-n td { height: auto; padding: 0 0 10px; }
.rv-t--big tr.hub-n:hover td { background: transparent; }
.hub-n p { font-size: var(--fs-sm); color: var(--text-2); }
.hub-n a { color: var(--text-2); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
.hubm { display: inline-flex; align-items: center; height: 18px; margin-left: 6px; padding: 0 5px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  color: var(--text-2); font-size: var(--fs-xs); vertical-align: 1px; white-space: nowrap; }
.sect .pager { margin-top: 0; }

/* why joined, counted: the count stands where the message number stood */
.joins--count .jm { grid-template-columns: 52px minmax(0, 1fr); }
.joins--count .jn { padding-right: 6px; text-align: right; color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }

@media (max-width: 1380px) {
  .vr th.vr-br { width: 112px; }
  .tg-head, .tg > summary { grid-template-columns: minmax(0, 1fr) 132px 84px 124px; }
}
.kv .kv-sub { display: block; font-size: var(--fs-sm); color: var(--text-3); }
.kv .kv-ref { font-size: var(--fs-sm); overflow-wrap: anywhere; }
.harm-t--big th:nth-child(3), .harm-t--big td:nth-child(3) { padding-left: 24px; }
.harm-t--big th:nth-child(2) { width: 88px; } .harm-t--big th:nth-child(3) { width: 96px; } .harm-t--big th:nth-child(4) { width: 76px; }

/* bot tab "Not in a record": the reason column beside the capture (one line, the fact under it when there is one) */
.vr th.vr-why { width: 232px; }
td.vr-why { line-height: 22px; }
td.vr-why .dim { display: block; font-size: var(--fs-sm); line-height: 1.5; }
.vr--un th.vr-when { width: 148px; }

/* ==== 30-feed.css ==== */
/* ===================================================================
   30. Feed (Flare Tenant Feed structure) — owner: builder B3
   =================================================================== */
/* header band: title, status tabs and the "what puts items here" help on one line */
.fd-band { padding-top: var(--s4); }
.fd-h { display: flex; align-items: center; gap: var(--s5); }
.fd-h h1 { font-size: var(--fs-xl); }
.fd-h .tabs--seg { margin-top: 0; }
.fd-links { margin-left: auto; display: flex; align-items: center; gap: var(--s4); font-size: var(--fs-sm); color: var(--text-2); }
.fd-links a { color: var(--text-2); }
.fd-rules { display: inline-flex; align-items: center; gap: 6px; }
.fd-band .frow { margin-top: var(--s3); }
.fsearch { display: inline-flex; align-items: center; gap: 8px; width: 232px; height: var(--ctl); padding: 0 8px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); color: var(--text-3); }
.fsearch:focus-within { border-color: var(--focus); }
.fsearch input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; font-size: var(--fs-sm); color: var(--text); }
.fsearch input:focus-visible { outline: none; }
.fsearch input::placeholder { color: var(--text-3); }
.fsearch .i { width: 14px; height: 14px; }

/* list | shape panel */
.fd { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: var(--s6); }
.fd-list { min-width: 0; }
.fd-answer { margin-top: var(--s4); font-size: var(--fs-base); color: var(--text-2); }
.fd-answer b { color: var(--text); font-weight: 500; }
.fd-tb form { display: inline; }

/* rows: priority word · item (sentence + one excerpt line [+ fold]) · why here · when */
.fr-h, .fr { display: grid; grid-template-columns: 60px minmax(0, 1fr) 172px 50px; gap: 12px; align-items: start; }
.fr-h { padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: var(--fs-sm); color: var(--text-3); }
.fr-h .sorted { color: var(--text); font-weight: 500; }
.fd-div { display: flex; align-items: baseline; gap: 8px; padding: 14px 0 6px; border-bottom: 1px solid var(--line-2); font-size: var(--fs-sm); font-weight: 500; color: var(--text); }
.fd-div .n { padding: 0 4px; border-radius: var(--r-sm); background: var(--active); color: var(--text-2); font-size: var(--fs-xs); line-height: 17px; font-weight: 400; }
.fd-div .dim { font-weight: 400; }
.fr-row { border-bottom: 1px solid var(--line); }
.fr { position: relative; padding: 9px 0 9px; }
.fr-row:hover > .fr, .fr-row:focus-within > .fr { background: var(--hover); }
.fr-row.row--open > .fr { background: var(--active); box-shadow: inset 2px 0 0 var(--text); }
.fr .prio { line-height: 22px; padding-left: 8px; }
.fr-h > span:first-child { padding-left: 8px; }
.fr-main { position: relative; min-width: 0; }
.fr-t { line-height: 22px; color: var(--text-2); }
.fr-t .pv { color: var(--text); }
/* the type or kind word opens the item; its box stretches over the row (one click target, no nested links) */
.fr-open::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.fr-open:hover { text-decoration: none; }
.fr-open:focus-visible { outline: none; }
.fr-open:focus-visible::after { outline: 2px solid var(--focus); outline-offset: -2px; }
.fr-kw { color: var(--text); font-weight: 500; }
.fr-t .t--card, .fr-t .t--login, .fr-t .t--bank, .fr-t .t--identity, .fr-t .t--wallet, .fr-t .t--stealer { font-weight: 500; }
.fr .hcw, .fr-main a:not(.fr-open), .fold { position: relative; z-index: 1; }
.fr .hcw:hover, .fr .hcw:focus-within { z-index: 6; }
.fr-s { margin-top: 1px; font: 13px/20px var(--font-mono); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-e { margin-top: 1px; font-size: var(--fs-meta); line-height: 20px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-e b { color: var(--text); font-weight: 500; }
.fr-e a { color: var(--accent); }
.fr-why { display: flex; flex-direction: column; min-width: 0; font-size: var(--fs-sm); line-height: 1.5; padding-top: 2px; }
.fr-why > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-why a, .fr-why span:last-child { color: var(--text-2); }
.fr-why a:hover { color: var(--accent); }
.fr > time { display: flex; flex-direction: column; padding-top: 2px; font-size: var(--fs-sm); line-height: 1.5; color: var(--text-2); }
.fr > time span { color: var(--text-3); }

/* triage: hover/focus actions over "why here" and "when" (Gmail-style), visible labels, POST forms */
/* actions sit at the right end of line 1 of the item cell (as in Explore and Victim records): they never cover
   the why-here link or the time, and the opener only stretches over the item cell */
.fr-ra { position: absolute; z-index: 3; right: 0; top: -1px; padding: 0 0 0 16px; background: var(--hover); }
.fr-row.row--open .fr-ra { background: var(--active); }
.fr-ra > form { display: flex; gap: 4px; }
.fr-ra:has(details[open]) { opacity: 1; }
.fr-ra .rvl-pop { top: calc(100% + 4px); }

/* fold: "N similar from this bot" — explicit, a link, never silent */
.fold { margin-top: 3px; font-size: var(--fs-sm); line-height: 18px; }
.fold-a { display: inline-flex; align-items: center; gap: 4px; list-style: none; color: var(--accent); cursor: pointer; }
.fold-a::-webkit-details-marker { display: none; }
.fold-a:hover { text-decoration: underline; text-underline-offset: 2px; }
.fold-a .i { width: 12px; height: 12px; transition: transform .15s var(--ease); }
.fold[open] > .fold-a .i { transform: rotate(90deg); }
.fold-l { margin: 6px 0 2px 5px; padding-left: 11px; border-left: 1px solid var(--line-2); }
.fold-l a { display: grid; grid-template-columns: 84px 84px minmax(0, 1fr); gap: 10px; padding: 2px 6px; margin-left: -6px; border-radius: var(--r-sm); color: var(--text-3); }
.fold-l a:hover { background: var(--active); text-decoration: none; }
.fold-l time { color: var(--text-2); white-space: nowrap; }
.fold-l .t { font: 12px/18px var(--font-mono); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fold-f { display: flex; gap: var(--s3); margin: 4px 0 2px 16px; }

/* shape panel (shared .bpanel/.bd + pbar) */
.fd-panel .bpanel-h { gap: 6px; }
.fd-panel .bpanel-h h2 { flex: 1; }
.fd-panel > .bd-hint { margin-bottom: 2px; }
.bpanel .bd li > a:first-child .pbar { grid-column: 1 / -1; margin-top: 2px; }
.bpanel .bd li > a:first-child { padding: 4px 0 4px; }
.bd .prio { font-size: var(--fs-base); }
.bd .sw { margin-right: 4px; }

.pager .is-off { opacity: .45; pointer-events: none; }
.pager > span:first-child b { color: var(--text); font-weight: 500; }

/* drawer state (feed-open.html): the drawer takes the panel's place; the band above does not move */
.fsplit { display: grid; grid-template-columns: minmax(0, 1fr) 520px; margin-right: calc(-1 * var(--s8)); }
.fsplit .recent { display: none; }
.fd-list--narrow { padding-right: var(--s4); }
.fd-list--narrow .fr { grid-template-columns: 60px minmax(0, 1fr) 50px; }
.fd-list--narrow .fr-why { display: none; }
.fd-dp { border-top: 1px solid var(--line); }
.fd-dp .dp-top h2 { font-weight: 500; }
.fd-recent > summary { height: 26px; }
.fd-recent-pop { left: auto; right: 0; min-width: 220px; }
.recent-l a { display: block; padding: 6px 8px; border-radius: var(--r-sm); color: var(--text); font-size: var(--fs-sm); line-height: 1.35; }
.recent-l a span { display: block; font-size: var(--fs-xs); }
.recent-l a:hover { background: var(--hover); text-decoration: none; }
.recent-l a[aria-current="true"] { background: var(--active); }
.fd-tri { display: flex; align-items: center; gap: 8px; margin-top: var(--s3); font-size: var(--fs-sm); color: var(--text-2); }
.fd-tri .fd-recent { margin-left: auto; }
.fd-why { margin-top: 2px; font-size: var(--fs-sm); color: var(--text-3); }
.fd-dp .dp-row > form { display: inline-flex; gap: 6px; }
.fd-dp .dp-row .acase .rvl-pop { right: auto; left: 0; }
.fd-dp .hc { left: auto; right: 0; }
.fd-fold { margin-top: var(--s3); font-size: var(--fs-sm); }
.fd-fold .i { width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; color: var(--text-3); }
.fq { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px 14px; margin-top: var(--s4); }
.fq dt { padding-top: 3px; }
.fq dd { min-width: 0; color: var(--text); }
.fq dd p + p, .fq dd p + .cells { margin-top: 4px; }
.fq dd p.dim { font-size: var(--fs-sm); line-height: 1.45; }
.fq dd .cells { margin-top: 6px; }
.fd-dp h3.label .fd-ctx-a { font-size: var(--fs-sm); letter-spacing: 0; text-transform: none; font-weight: 400; }
.fd-ctx { padding-top: 4px; border-top: 0; }
.fd-ctx .ctx-m { grid-template-columns: 64px 92px minmax(0, 1fr); }
.fd-ref { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text-2); }
.fd-ref .mono { color: var(--text); }

@media (min-width: 1500px) {
  .fsplit { grid-template-columns: minmax(0, 1fr) 160px 520px; }
  .fsplit .recent { display: block; }
  .fd-recent { display: none; }
}
@media (max-width: 1380px) {
  .fd { grid-template-columns: minmax(0, 1fr) 232px; gap: var(--s5); }
  .fd > .bpanel { display: block; }
  .fr-h, .fr { grid-template-columns: 56px minmax(0, 1fr) 156px 48px; gap: 10px; }
  .fsplit { grid-template-columns: minmax(0, 1fr) 480px; }
  .fd-list--narrow .fr { grid-template-columns: 56px minmax(0, 1fr) 48px; }
  .fsearch { width: 200px; }
}
@media (max-width: 1100px) {
  .fd, .fsplit { grid-template-columns: 1fr; }
  .fd > .bpanel { display: none; }
}

.fd-dp .is-off { opacity: .45; }

/* ==== 35-intel.css ==== */
/* ===================================================================
   35. Intelligence pages: Actors, Groups, Brands (lists + pages) — owner: builder B3
   =================================================================== */
/* list header band (same band as Explore's, title + help on one line) */
.il-band .sband-h { display: flex; align-items: center; gap: 8px; }
.il-band .sband-h h1 { font-size: var(--fs-xl); }
.il-band .frow { margin-top: var(--s3); }
.il-band .tabs--seg { margin: 0 0 0 var(--s4); }

/* two-line list rows: one sentence, one excerpt line; counts are doors */
.il { display: grid; gap: 12px; align-items: start; }
.il--act { grid-template-columns: minmax(0, 1fr) 196px 72px 148px 148px 52px; }
.il-h { padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: var(--fs-sm); color: var(--text-3); }
.il-h .sorted { color: var(--text); font-weight: 500; }
.il-h > span { white-space: nowrap; }
.il-row { border-bottom: 1px solid var(--line); }
.il-row > .il { padding: 10px 0; }
.il-row:hover > .il { background: var(--hover); }
.il-main { min-width: 0; }
.il-t { line-height: 22px; color: var(--text-2); }
.il-t .pv { font-weight: 500; }
.il-id { font-size: var(--fs-sm); margin-left: 4px; }
.il-s { margin-top: 1px; font-size: var(--fs-meta); line-height: 20px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.il-s .mono { font-size: var(--fs-meta); }
.il-bots { display: flex; flex-wrap: wrap; gap: 0 10px; padding-top: 2px; font-size: var(--fs-meta); line-height: 20px; }
.il-n { display: block; padding-top: 2px; color: var(--text); }
.il-span { padding-top: 8px; }
.il-span .life-dates { display: block; text-align: left; }
.il-same { padding-top: 2px; font-size: var(--fs-meta); line-height: 20px; }
.il > time { display: flex; flex-direction: column; padding-top: 2px; font-size: var(--fs-sm); line-height: 1.5; color: var(--text-2); }
.il > time span { color: var(--text-3); }
.il-list + .pager { border-top: 0; }

/* confidence / strength words: neutral, outlined, never a colour */
.conf, .strw { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font-size: var(--fs-sm); color: var(--text); white-space: nowrap; vertical-align: 1px; }
.conf--likely, .conf--certain, .strw--linked { border-color: var(--text-3); }
.conf--possible, .strw--weak { color: var(--text-2); border-style: dashed; }
.conf--unlikely { color: var(--text-3); border-style: dashed; }
.strw--hub { color: var(--text); border-style: double; border-width: 3px; height: 22px; }

/* actor: weekly activity with first/last message markers */
.wk { display: block; width: 100%; height: auto; }
.wk rect { fill: color-mix(in srgb, var(--text-2) 70%, transparent); }
.wk .bg { fill: transparent; }
.wk a:hover rect:not(.bg) { fill: var(--accent); }
.wk .base { stroke: var(--line-2); stroke-width: 1; }
.wk .mk { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 2 3; }
.wk .mk-t { fill: var(--text); font: 500 11px var(--font-sans); }
.wk .ax, .hm .ax { fill: var(--text-3); font: 11px var(--font-sans); }

/* actor: weekday × hour heatmap, one neutral ramp (magnitude, not identity) */
.hm-w { display: flex; align-items: flex-end; gap: var(--s5); }
.hm { display: block; width: 100%; max-width: 680px; height: auto; }
.hm rect { stroke: none; }
.hm .h0 { fill: transparent; stroke: var(--line); stroke-width: 1; }
.hm .h1 { fill: color-mix(in srgb, var(--text) 12%, transparent); }
.hm .h2 { fill: color-mix(in srgb, var(--text) 28%, transparent); }
.hm .h3 { fill: color-mix(in srgb, var(--text) 46%, transparent); }
.hm .h4 { fill: color-mix(in srgb, var(--text) 68%, transparent); }
.hm .h5 { fill: color-mix(in srgb, var(--text) 92%, transparent); }
.hm a:hover rect { stroke: var(--accent); stroke-width: 2; }
.hm-k { display: flex; align-items: center; gap: 3px; padding-bottom: 4px; font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }
.hm-k span:first-child { margin-right: 4px; } .hm-k span:last-child { margin-left: 4px; }
.hm-sw { display: inline-block; width: 12px; height: 12px; border-radius: 1px; }
.hm-sw.h1 { background: color-mix(in srgb, var(--text) 12%, transparent); } .hm-sw.h2 { background: color-mix(in srgb, var(--text) 28%, transparent); }
.hm-sw.h3 { background: color-mix(in srgb, var(--text) 46%, transparent); } .hm-sw.h4 { background: color-mix(in srgb, var(--text) 68%, transparent); }
.hm-sw.h5 { background: color-mix(in srgb, var(--text) 92%, transparent); }
.reading { margin-top: var(--s3); max-width: 86ch; color: var(--text-2); }
.reading a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }

/* actor: latest messages */
.am li { display: grid; grid-template-columns: 96px 210px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.am time { color: var(--text-2); }
.am-src { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am .t { font: 13px/1.5 var(--font-mono); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* actor: attribution — confidence word, typed evidence for / weak / against, a person decides */
.at { padding: 12px 0; border-top: 1px solid var(--line); }
.at:first-of-type { border-top: 0; padding-top: 4px; }
.at-h { display: flex; align-items: center; gap: 10px; }
.at-h p { flex: 1; min-width: 0; color: var(--text-2); }
.at-h .pv { font-weight: 500; }
.ad { display: flex; gap: 6px; }
.ael { margin: 8px 0 0 4px; padding-left: 12px; border-left: 1px solid var(--line-2); }
.ae { display: grid; grid-template-columns: 136px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 3px 0; font-size: var(--fs-sm); }
.ae-k { color: var(--text); }
.ae-k::before { display: inline-block; width: 14px; font-size: 9px; vertical-align: 1px; color: var(--text-2); }
.ae--s .ae-k::before { content: "■"; }
.ae--w .ae-k::before { content: "□"; }
.ae--x .ae-k::before { content: "×"; font-size: 12px; vertical-align: 0; }
.ae--w .ae-k, .ae--x .ae-k { color: var(--text-2); }
.ae-t { color: var(--text-2); }
.ae-d { color: var(--text-3); white-space: nowrap; }
.key-x::before { content: "× "; }
.sect-h .end .key-s, .sect-h .end .key-w, .sect-h .end .key-x { color: var(--text-3); }

@media (max-width: 1380px) {
  .il--act { grid-template-columns: minmax(0, 1fr) 176px 64px 132px 132px 48px; gap: 10px; }
  .am li { grid-template-columns: 92px 170px minmax(0, 1fr); }
}
/* hover cards that open from right-hand columns open leftwards, so nothing spills past the viewport */
.il-bots .hc, .il-same .hc, .props .hc, .gl-ev .hc, .brt td:nth-child(n+3) .hc { left: auto; right: 0; }

/* groups list: named groups and kitwatch suggestions kept in separate sections */
.gl { margin-top: var(--s6); }
.gl-h { margin-bottom: var(--s2); }
.gl--sugg { margin-top: var(--s8); }
.il--grp { grid-template-columns: minmax(0, 1fr) 320px 88px 88px 216px; }
.il-bots--in { padding-top: 0; margin-top: 1px; }
.il-bots--in .dim { font-size: var(--fs-sm); }
.gl-ev { display: flex; align-items: baseline; gap: 8px; padding-top: 1px; font-size: var(--fs-meta); line-height: 20px; color: var(--text-2); }
.gl-ev > span:last-child { min-width: 0; }
.gl-ev .strw { flex: none; }
.gl-last { display: flex; justify-content: flex-start; gap: 6px; padding-top: 1px; font-size: var(--fs-meta); }
.gl-last .rvl-pop { width: 280px; }
.gl-more { padding: var(--s3) 0; font-size: var(--fs-sm); }

/* group page */
.ph .title-row .tag + .dim { font-size: var(--fs-sm); }
.lk .dim { font-size: var(--fs-sm); }
.lb--add .ad { align-self: center; justify-self: end; }
.lb .lb-h > .dim { font-size: var(--fs-sm); }
.gh-ev { margin-top: var(--s3); }
.gh-ev .ae { grid-template-columns: 168px minmax(0, 1fr) auto; }
.gh-ev .ae-t.mono { font-size: var(--fs-meta); color: var(--text); }
.gh-ev .ae-t a { font-family: var(--font-sans); font-size: var(--fs-sm); margin-left: 6px; }
.inc th.num { white-space: nowrap; }
.gh li { display: grid; grid-template-columns: 148px 96px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text-2); }
.gh-t { color: var(--text-2); }
.gh-w { color: var(--text); }
.gh-x { color: var(--text-2); }

@media (max-width: 1380px) {
  .il--grp { grid-template-columns: minmax(0, 1fr) 244px 84px 92px 196px; gap: 10px; }
  .harm--brand { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .brb th:nth-child(3), .brb td:nth-child(3) { display: none; }
}

/* brands list (Flare Tenant Portfolio row) and brand page tables; counts are doors in text colour */
.brt td { height: 52px; }
.br-n .pv { font-weight: 500; }
.br-s { font-size: var(--fs-sm); margin-top: 1px; }
.br-r a { display: block; }
.br-r .pbar { width: 88px; margin: 4px 0 0 auto; }
.brt th .dim { font-size: var(--fs-sm); }
.brt th.sorted { color: var(--text); font-weight: 500; }
.br-a { font-size: var(--fs-meta); color: var(--text); }
.tbl--doors td.num a { color: var(--text); }
.tbl--doors td.num a:hover { color: var(--accent); }
.brb .br-r .pbar { width: 72px; }
.ph-top .acts form { display: inline-flex; }
.br-sub { font-size: var(--fs-base); }
.at-s { margin: 6px 0 0 17px; font-size: var(--fs-sm); color: var(--text); }
.at-sk { color: var(--text-3); margin-right: 8px; }
.tbl--doors td.num a.dim { color: var(--text-3); }

/* ==== 40-cases.css ==== */
/* ===================================================================
   Cases: list, case page, export, add-to-case builder (owner: B4).
   Also the list-page header band (.lh) used by Templates and My activity.
   =================================================================== */

/* form controls on my pages (inputs, selects, textareas share one look) */
.cexp-n input, .cnote textarea, .ti-n textarea, .tg-new, .rb select, .pop input[type=text], .lf-in {
  height: var(--ctl); padding: 0 8px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); color: var(--text); font-size: var(--fs-base); }
.cnote textarea, .ti-n textarea { height: auto; padding: 6px 8px; resize: vertical; line-height: 1.45; font-family: var(--font-sans); }
.cexp-n input:focus, .cnote textarea:focus, .ti-n textarea:focus, .tg-new:focus, .rb select:focus, .pop input:focus, .lf-in:focus { border-color: var(--focus); outline: none; }
::placeholder { color: var(--text-3); }

/* ---------------- list-page header band (Hadrian list header; Flare filter row) */
.lh { margin: 0 calc(-1 * var(--s8)); padding: var(--s5) var(--s8) var(--s4); background: var(--raised); border-bottom: 1px solid var(--line-2); }
.lh-top { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.lh-top h1 { font-size: var(--fs-xl); }
.lh-ans { margin-left: 6px; font-size: var(--fs-base); color: var(--text-2); }
.lh-ans b { color: var(--text); font-weight: 500; }
.lh-ans a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
.lh-top .acts { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lfil { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: var(--s4); }
.lh .dd > summary { background: var(--bg); }
.lfil .seg a { height: 30px; padding: 0 10px; }
.lfil .spacer { flex: 1; }
.lh .fchips { margin-top: 10px; }
.lfoot { display: flex; align-items: center; gap: 8px; padding: 12px 0; font-size: var(--fs-sm); color: var(--text-3); }
.lfoot b { color: var(--text); font-weight: 500; }
.cnt { min-width: 18px; padding: 0 5px; border-radius: var(--r-sm); background: var(--active); color: var(--text); font-size: var(--fs-xs); line-height: 17px; text-align: center; }
.lh-top .help-pop, .title-row .help-pop, .c-tabs .help-pop, .cs-h .help-pop { left: 0; right: auto; }
.cs-h .help-pop { left: auto; right: 0; }
.tbl th.sorted { color: var(--text); font-weight: 500; }

/* popover form (New case): same surface as the reveal popover */
.pop-d { position: relative; }
.pop-d > summary { list-style: none; }
.pop-d > summary::-webkit-details-marker { display: none; }
.pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 300px; padding: 12px; display: grid; gap: 10px;
  background: var(--raised); border: 1px solid var(--line-2); border-radius: var(--r-pop); font-size: var(--fs-sm); color: var(--text-2); }
.pop label { display: grid; gap: 4px; }
.pop .pop-c { display: flex; gap: 8px; align-items: center; color: var(--text); }
.pop .row { display: flex; gap: 8px; }

/* ---------------- cases list */
.cl { margin-top: var(--s2); }
.cl td { height: 60px; border-bottom: 1px solid var(--line); }
.c2 { display: flex; flex-direction: column; line-height: 1.45; }
.c2-s { font-size: var(--fs-sm); color: var(--text-3); }
.cl-n { color: var(--text); font-weight: 500; }
.cl-work, .cwork { display: inline-flex; align-items: center; gap: 6px; height: 20px; margin-left: 8px; padding: 0 6px; border: 1px solid var(--line-2);
  border-radius: var(--r-sm); font-size: var(--fs-xs); color: var(--text-2); vertical-align: 1px; }
.cl-st { color: var(--text-2); font-size: var(--fs-sm); }
.cl-bots { font-size: var(--fs-base); }
.cl .num a { color: var(--text); }
.cl-u { position: relative; white-space: nowrap; font-size: var(--fs-base); color: var(--text-2); }
.cl-ra { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.cl tr:hover .cl-hide, .cl tr:focus-within .cl-hide { visibility: hidden; }
.cl-ra form { display: inline; }

/* ---------------- case page */
.c-ans { margin-top: 10px; font-size: var(--fs-md); color: var(--text-2); max-width: 120ch; }
.c-ans b { color: var(--text); font-weight: 500; }
.c-ans--last { padding-bottom: var(--s5); }
.c-prov { margin-top: 2px; font-size: var(--fs-sm); color: var(--text-3); }
.c-prov .mono { font-size: var(--fs-sm); color: var(--text-2); }
.c-tabs { display: flex; align-items: center; gap: 10px; margin: var(--s4) 0; }
.ph .c-tabs .tabs--seg { margin: 0; }
.cwork { height: 24px; margin-left: 4px; padding: 0 2px 0 8px; font-size: var(--fs-sm); }
.cwork button { border: 0; background: transparent; color: var(--accent); font-size: var(--fs-sm); cursor: pointer; padding: 0 6px; }
.cwork button:hover { text-decoration: underline; }

.detail--case { grid-template-columns: minmax(0, 1fr) 344px; gap: var(--s8); }
.cg { padding-top: var(--s6); }
.cg-h { display: flex; align-items: baseline; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.cg-h h2 { font-size: var(--fs-lg); font-weight: 500; }
.cg-h .n { font-size: var(--fs-sm); color: var(--text-3); }
.cg-h .end { margin-left: auto; font-size: var(--fs-sm); color: var(--text-3); }
.ci { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 104px; column-gap: var(--s5); padding: 12px 0; border-bottom: 1px solid var(--line); }
.ci-m { min-width: 0; display: grid; gap: 3px; align-content: start; }
.ci-w { text-align: right; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.5; padding-top: 2px; }
.ci-w time span { display: block; color: var(--text-3); }
.ci-ra { position: absolute; right: 0; bottom: 9px; padding-left: 12px; background: var(--bg); }
.ci-t { color: var(--text-2); line-height: 22px; }
.ci-t .pv, .ci-t .hcw > .pv { color: var(--text); }
.ci-t .sep { padding: 0 6px; }
.ci-t .tag { height: 20px; margin-left: 4px; }
.ci-t .status { margin-left: 8px; }
.ci-k { font-size: var(--fs-sm); margin-left: 6px; }
.ci-d { font-size: var(--fs-sm); color: var(--text-3); margin-left: 4px; }
.ci-x { font: 13px/1.55 var(--font-mono); color: var(--text-2); overflow-wrap: anywhere; }
.ci-s { font-size: var(--fs-base); color: var(--text-2); line-height: 1.5; }
.ci-s a, .ci-p a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
.ci-n { font-size: var(--fs-base); color: var(--text-2); line-height: 1.5; }
.ci-n.dim { color: var(--text-3); }
.ci-nl, .ti-kl { margin-right: 8px; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.ci-p { font-size: var(--fs-sm); color: var(--text-3); line-height: 1.5; }
.ci-p .mono { font-size: var(--fs-sm); color: var(--text-2); }
.ci-p .copy { width: 18px; height: 18px; }
.ci-sv, .ci-chg { font-weight: 500; color: var(--text); }
.ci-q { padding: 1px 6px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); font: 14px var(--font-mono); color: var(--text); }
/* .tent moved to 00-base.css */
.ra .btn--reveal { color: var(--reveal); border-color: color-mix(in srgb, var(--reveal) 55%, transparent); }
.ra .rvl-pop { text-align: left; }

/* side column: versions + export, then the notes log */
.cside { min-width: 0; padding: var(--s6) 0 var(--s8); }
.cs + .cs { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); }
.cs-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cs-h h2 { font-size: var(--fs-lg); font-weight: 500; }
.cs-h .n { font-size: var(--fs-sm); color: var(--text-3); }
.cs-h .help { margin-left: auto; }

.cexp { display: grid; gap: 12px; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--raised); }
.cexp--done { background: transparent; }
.cexp-h { display: grid; gap: 1px; }
.cexp-h b { color: var(--text); font-weight: 500; }
.cexp-h span { font-size: var(--fs-sm); color: var(--text-3); }
.cexp-m { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.cexp-m legend { padding: 0; margin-bottom: 6px; }
.cexp-m label { display: grid; grid-template-columns: 16px 1fr; gap: 8px; align-items: start; font-size: var(--fs-base); color: var(--text); cursor: pointer; }
.cexp-m input { margin: 3px 0 0; accent-color: var(--accent-bg); }
.cexp-m small { display: block; font-size: var(--fs-sm); color: var(--reveal); }
.cexp-f { font-size: var(--fs-sm); color: var(--text-3); }
.cexp-n { display: grid; gap: 4px; font-size: var(--fs-sm); color: var(--text-3); }
.cexp-go { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); }

.cv { display: grid; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-base); }
.cv-h { display: flex; align-items: baseline; gap: 8px; color: var(--text); }
.cv-h b { font-weight: 500; }
.cv-w { font-size: var(--fs-sm); color: var(--text-2); }
.cv-sha { display: flex; align-items: center; gap: 8px; }
.cv-sha .mono { font-size: var(--fs-sm); color: var(--text); }
.cv-a { display: flex; gap: 14px; font-size: var(--fs-sm); }
.cv-files > summary { display: inline-block; font-size: var(--fs-sm); color: var(--accent); cursor: pointer; list-style: none; }
.cv-files > summary::-webkit-details-marker { display: none; }
.cv-files > summary::after { content: " ▾"; color: var(--text-3); }
.cv-files[open] > summary::after { content: " ▴"; }
.cv-ft { margin-top: 4px; }
.cv-ft td { height: 26px; padding: 2px 8px 2px 0; font-size: var(--fs-sm); border-bottom: 1px solid var(--line); }
.cv-ft td.mono { font-size: var(--fs-sm); overflow-wrap: anywhere; }

.cnote { display: grid; gap: 6px; justify-items: start; margin-bottom: 4px; }
.cnote textarea { width: 100%; min-height: 54px; }
.cn { padding: 10px 0; border-bottom: 1px solid var(--line); }
.cn-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: var(--fs-sm); color: var(--text-3); }
.cn-h b { color: var(--text); font-weight: 500; font-size: var(--fs-base); }
.cn-on { margin-left: auto; }
.cn p { margin-top: 3px; font-size: var(--fs-base); color: var(--text-2); line-height: 1.5; }

/* just exported: the version, the bundle and its hash, once */
.cflash { margin-top: var(--s5); padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--r); }
.cflash-h { display: flex; align-items: baseline; gap: 10px; font-size: var(--fs-sm); color: var(--text-3); }
.cflash-h h2 { font-size: var(--fs-base); font-weight: 500; }
.cf-ok { color: var(--ok); }
.cflash-kv { margin-top: 10px; grid-template-columns: 112px minmax(0, 1fr); gap: 6px 12px; font-size: var(--fs-base); }
.cflash-sha { font-size: var(--fs-meta); color: var(--text); overflow-wrap: anywhere; }

/* ---------------- add-to-case builder (Threat Flow "Build Custom Intel" + Reports "Details" column) */
.bld { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s8); align-items: start; }
.bld-main { min-width: 0; padding-bottom: var(--s8); }
.bld-side { position: sticky; top: 0; display: grid; gap: 12px; padding: var(--s5) 0; }
.tg { padding-top: var(--s5); }
.tg-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2);
  font-size: var(--fs-base); font-weight: 400; color: var(--text); }
.tg-h .dim { font-size: var(--fs-sm); }
.tg-h .mono { font-size: var(--fs-sm); }
.tg-sub { margin-top: 16px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: var(--fs-base); font-weight: 500; color: var(--text); }
.ti { display: grid; grid-template-columns: 20px minmax(0, 1fr) 236px 24px; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ti-c input { width: 15px; height: 15px; margin: 4px 0 0; accent-color: var(--accent-bg); }
.ti-m { min-width: 0; display: grid; gap: 3px; }
.ti-n textarea { width: 100%; height: 54px; }
.ti--rb .ti-n textarea { color: var(--text-2); }
.ti-x { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-3); cursor: pointer; }
.ti-x:hover { background: var(--hover); color: var(--text); }
.ti-x .i { width: 14px; height: 14px; }
.ti--dup .ci-t, .ti--dup .ci-s, .ti--dup .ci-p { color: var(--text-3); }
.ti-dup { font-size: var(--fs-sm); font-weight: 500; color: var(--text); }
.tg-f { display: grid; gap: 2px; margin: 0; padding: 0; border: 0; }
.tg-f legend { padding: 0; margin-bottom: 6px; }
.tg-o { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px; border-radius: var(--r); cursor: pointer; }
.tg-o:hover { background: var(--hover); }
.tg-o:has(input[type=radio]:checked) { background: var(--active); }
.tg-o input[type=radio] { margin: 3px 0 0; accent-color: var(--accent-bg); }
.tg-o b { display: block; color: var(--text); font-weight: 500; }
.tg-o small { display: block; font-size: var(--fs-sm); color: var(--text-3); }
.tg-new { width: 100%; margin-top: 6px; }
.bld-sum { font-size: var(--fs-base); color: var(--text-2); line-height: 1.5; }
.bld-sum b { color: var(--text); font-weight: 500; }
.bld-mask { font-size: var(--fs-sm); color: var(--text-3); }
.bld-go { justify-content: center; width: 100%; height: 36px; }
.bld-empty { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-2); }
.bld-empty input { accent-color: var(--accent-bg); }
.rb { display: grid; gap: 8px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.rb .cs-h { margin-bottom: 0; }
.rb select { width: 100%; }
.rb .btn { justify-self: start; }

@media (max-width: 1380px) {
  .detail--case { grid-template-columns: minmax(0, 1fr) 296px; gap: var(--s6); }
  .bld { grid-template-columns: minmax(0, 1fr) 280px; gap: var(--s6); }
  .ti { grid-template-columns: 20px minmax(0, 1fr) 200px 24px; }
  .lh-ans { font-size: var(--fs-meta); }
}
@media (max-width: 1100px) {
  .detail--case, .bld { grid-template-columns: 1fr; }
  .bld-side { position: static; }
  .ti { grid-template-columns: 20px minmax(0, 1fr) 24px; }
  .ti-n { grid-column: 2; grid-row: 2; }
}
.rb .cs-h h2.label { font-size: var(--fs-xs); font-weight: 500; }
.ti--rb .ti-n textarea { height: 72px; }
.help-pop b { font-weight: 500; }
.cl .c2 > span:first-child { white-space: nowrap; }

/* F2 fix round: date ranges in the item's right column — first date, then "→ last" under it (both ts(), Madrid on hover) */
.ci-w .ci-rng { display: block; }
.ci-w .ci-rng > span { display: block; color: var(--text-3); }

/* ==== 45-admin.css ==== */
/* ===================================================================
   Templates (catalogue + page), My activity (audit list + drawer),
   sign-in (owner: B4). List header .lh lives in 40-cases.css.
   =================================================================== */

/* ---------------- search field inside a list header */
.lf-q { display: flex; align-items: center; gap: 6px; width: 280px; height: var(--ctl); padding: 0 8px; border: 1px solid var(--line-2);
  border-radius: var(--r-sm); background: var(--bg); color: var(--text-3); }
.lf-q .lf-in { flex: 1; min-width: 0; height: 30px; padding: 0; border: 0; background: transparent; }
.lf-q:focus-within { border-color: var(--focus); }
.lf-q .i { width: 14px; height: 14px; }

/* ---------------- templates list: Source Directory rows with a peek */
.tr { display: grid; grid-template-columns: 22px minmax(0, 1fr) 190px 150px 76px 96px 96px; gap: 12px; align-items: start; padding: 10px 0; }
.tr-h { padding: 14px 0 6px; border-bottom: 1px solid var(--line-2); font-size: var(--fs-sm); color: var(--text-3); align-items: end; }
.tr-h .sorted { color: var(--text); font-weight: 500; }
.trw { border-bottom: 1px solid var(--line); }
.trw:hover > .tr { background: var(--hover); }
.tr .r-x { display: grid; place-items: center; width: 22px; height: 22px; color: var(--text-3); border-radius: var(--r-sm); }
.tr .r-x:hover { background: var(--active); color: var(--text); }
.tr-m { min-width: 0; }
.tr-t { display: flex; align-items: baseline; gap: 10px; line-height: 22px; font-size: var(--fs-sm); }
.tr-n { color: var(--text); font-size: var(--fs-base); font-weight: 500; }
.tst { font-size: var(--fs-sm); color: var(--text-3); }
.tst--new { color: var(--text); font-weight: 500; }
.tr-p { margin-top: 2px; font: 13px/22px var(--font-mono); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot { display: inline-block; margin: 0 1px; padding: 0 5px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--raised);
  font: 400 12px/18px var(--font-sans); color: var(--text-3); vertical-align: 1px; }
.nl { padding: 0 7px; color: var(--text-3); }
.tr-r { padding-top: 3px; font-size: var(--fs-sm); color: var(--text-2); }
.tr-b { display: flex; flex-direction: column; padding-top: 1px; font-size: var(--fs-base); line-height: 1.5; }
.tr-b > span { font-size: var(--fs-sm); color: var(--text-2); }
.tr-c { padding-top: 1px; color: var(--text); }
.tr-d { padding-top: 2px; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.5; }
.tr-d span { display: block; color: var(--text-3); }
.tx { padding: 0 0 16px 34px; }
.tx-cols { display: grid; grid-template-columns: 1.15fr 1.15fr .8fr .9fr; gap: var(--s6); padding-top: 12px; border-top: 1px solid var(--line); }
.tx-cols h3 { margin-bottom: 8px; }
.tpat { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); font: 13px/1.75 var(--font-mono); color: var(--text); white-space: pre-wrap; }
.tpat > span { display: block; }
.tpat--ex { color: var(--text-2); }
.tpat .d-add { margin: 0 -12px; padding: 0 12px; background: var(--hover); font-weight: 500; }
.tpat .d-add::before { content: "+ "; color: var(--text); }
.tx-p { margin-top: 6px; font-size: var(--fs-sm); }
.tx-reads li, .tx-bots li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 3px 0; font-size: var(--fs-sm); }
.tx-bots li { font-size: var(--fs-base); }
.tx-go { display: flex; gap: 18px; margin-top: 12px; font-size: var(--fs-base); }

/* ---------------- template page */
.tpair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.tpair h3 { margin-bottom: 8px; }
.tpair h3 a { text-transform: none; letter-spacing: 0; }
.tm-rule { margin: 10px 0 0; }
.treads { max-width: 680px; }
.treads td.mono { font-size: var(--fs-meta); }
/* hover cards near the right edge open leftwards */
.tx-bots .hc, .tr-b .hc { left: auto; right: 0; }

/* ---------------- My activity: audit list (Flare Audit Logs, Hadrian audit log) */
.arow { position: relative; display: grid; grid-template-columns: 92px 108px minmax(0, 1fr) 236px 164px; gap: 12px; align-items: baseline;
  padding: 9px 8px; border-bottom: 1px solid var(--line); font-size: var(--fs-base); }
.arow--h { white-space: nowrap; padding: 14px 8px 6px; border-bottom: 1px solid var(--line-2); font-size: var(--fs-sm); color: var(--text-3); }
.arow--h .sorted { color: var(--text); font-weight: 500; }
.alist .arow:hover { background: var(--hover); }
.alist .arow--open, .alist .arow--open:hover { background: var(--active); box-shadow: inset 2px 0 0 var(--text); }
.a-hit { position: absolute; inset: 0; z-index: 0; border-radius: 0; }
.a-hit:focus-visible { outline-offset: -2px; }
.arow a:not(.a-hit), .arow .hcw, .arow .mv { position: relative; z-index: 1; }
.a-t { font-size: var(--fs-sm); color: var(--text-2); }
.aw { color: var(--text-2); }
.aw--revealed { color: var(--reveal); font-weight: 500; }
.aw--exported { color: var(--text); font-weight: 500; }
.a-w { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.a-what { color: var(--text); overflow-wrap: anywhere; }
.a-sub { font-size: var(--fs-sm); color: var(--text-3); }
.a-sub .mono { font-size: var(--fs-sm); color: var(--text-2); }
.a-why { min-width: 0; color: var(--text-2); }
.a-src { font-size: var(--fs-sm); color: var(--text-3); white-space: nowrap; }
.aq { padding: 0 4px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font: 13px/18px var(--font-mono); color: var(--text); }
.aday { padding: 16px 8px 6px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 500; color: var(--text); }
.pop-q { color: var(--text); font-size: var(--fs-base); font-weight: 500; }

/* list + entry drawer */
.asplit { display: grid; grid-template-columns: minmax(0, 1fr) 540px; margin-right: calc(-1 * var(--s8)); }
.asplit-list { min-width: 0; padding-right: var(--s5); }
.asplit .arow { grid-template-columns: 84px 84px minmax(0, 1fr); }
.adraw { min-height: calc(100vh - 150px); }
.adraw .dp-top h2 { font-size: var(--fs-sect); }
.adraw .dp-row { margin-top: 4px; }
.adraw .kv { grid-template-columns: 112px minmax(0, 1fr); gap: 8px 12px; margin-top: 8px; font-size: var(--fs-base); }
.adraw .kv dd .mono { font-size: var(--fs-sm); }
.ajson { font-size: var(--fs-sm); line-height: 1.6; color: var(--text-2); white-space: pre; overflow-x: auto; }
.ic--off { color: var(--text-3); opacity: .5; }

@media (max-width: 1380px) {
  .arow { grid-template-columns: 88px 104px minmax(0, 1fr) 200px; }
  .arow > .a-src, .arow--h > span:last-child { display: none; }
  .asplit { grid-template-columns: minmax(0, 1fr) 480px; }
  .asplit .arow { grid-template-columns: 80px 80px minmax(0, 1fr); }
  .tr { grid-template-columns: 22px minmax(0, 1fr) 140px 72px 92px 92px; }
  .tr > .tr-r, .tr-h > span:nth-child(3) { display: none; }
  .tx-cols { grid-template-columns: 1fr 1fr; }
}

/* ---------------- sign-in: one column, no shell, no card */
.auth { min-height: 100vh; }
.auth-main { width: 360px; margin: 0 auto; padding: 18vh 0 var(--s10); }
.auth-prod { padding-bottom: var(--s5); margin-bottom: var(--s6); border-bottom: 1px solid var(--line); font-size: var(--fs-md); font-weight: 500; color: var(--text); }
.auth-f { display: grid; gap: 6px; }
.auth-f h1 { margin-bottom: var(--s4); font-size: var(--fs-xl); }
.auth-f label { margin-top: 8px; font-size: var(--fs-base); color: var(--text-2); }
.auth-f input { height: 40px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); color: var(--text); font-size: var(--fs-base); }
.auth-f input:focus { border-color: var(--focus); outline: none; }
.auth-f input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.auth-f .btn { justify-content: center; height: 40px; margin-top: var(--s4); }
.auth-code { font: 500 22px var(--font-mono) !important; letter-spacing: .35em; }
.auth-rec { margin-top: var(--s4); font-size: var(--fs-base); color: var(--text-2); }
.auth-as { margin-bottom: 4px; font-size: var(--fs-base); color: var(--text-2); }
.auth-as b { color: var(--text); font-weight: 500; }
.auth-help { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text-3); }

/* F2 fix round: the template's rules as facts (Matches / Type it makes / Added …), body colour; explanations in help popovers */
.kv.tdef { grid-template-columns: 180px minmax(0, 1fr); gap: 6px 12px; margin-top: 12px; }
.kv.tdef dd .help { display: inline-block; vertical-align: middle; margin-left: 4px; }

/* ==== 50-chat.css ==== */
/* ===================================================================
   Chat page (chat.html, chat-group.html, chat-records.html, chat-accounts.html). Owner: F3.
   The transcript is the drawer's "In the chat" list (.xc / .xc-m, 10-explore) grown
   into a page: the same time · type word · masked text line, plus From and Victim
   record columns, day rules and a column head. Header band reuses .ph (20-detail).
   =================================================================== */

/* ---- header band: kind, Telegram id, the bot(s) that post here ---- */
.ch-ph .title-row { gap: 12px; }
.ch-kind { font-size: var(--fs-base); color: var(--text-2); }
.ch-kind .handle { margin-left: 2px; }
.ch-id { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-base); }
.ch-id .mono { color: var(--text); font-size: var(--fs-meta); }
.ch-id .copy { margin-left: -2px; }
.ch-cs { color: var(--text-3); padding: 0 5px; }
.ch-bots { display: grid; grid-template-columns: max-content max-content minmax(0, 1fr); column-gap: var(--s6); row-gap: 4px;
  margin-top: 10px; font-size: var(--fs-base); line-height: 22px; color: var(--text-2); }
.ch-bots li { display: contents; }
.ch-bots .handle { font-size: var(--fs-sm); }
.ch-bc a { white-space: nowrap; }
.ch-bc .sep { padding: 0 8px; }
.ch-bs { white-space: nowrap; }
.ch-bs time { color: var(--text); }
.ch-bs .help { margin-left: 10px; vertical-align: -3px; }
.ch-bs .help-pop { right: auto; left: 0; }

/* ---- body: filter row with the window and paging on its right ---- */
.ch-body { padding-top: var(--s4); }
.ch-fr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ch-pager { gap: 6px; }
.ch-pager b { color: var(--text); font-weight: 500; }
.ch-pager .btn .i { width: 13px; height: 13px; }
.ch-pager--top { margin-left: auto; padding: 0; }
.ch-body > .ch-pager:last-child { padding-top: var(--s4); }
.dd-pop .ch-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 6px 4px; border-top: 1px solid var(--line); margin-top: 4px; font-size: var(--fs-sm); }
.dd-pop .ch-dates .dim { flex-basis: 100%; }
.dd-pop .ch-dates label { display: flex; gap: 6px; height: auto; padding: 0; color: var(--text-2); }
.dd-pop .ch-dates label:hover { background: transparent; }
.dd-pop .ch-dates input { height: 28px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); color: var(--text); }

/* ---- transcript: one line per message, oldest first ---- */
.ch { --xc-from: 132px; --xc-rec: 168px; }
.ch--group { --xc-from: 176px; }
.xc-h, .xc--page .xc-m { display: grid; grid-template-columns: 72px var(--xc-from) 104px minmax(0, 1fr) var(--xc-rec); column-gap: 12px; align-items: baseline; }
.xc-h { margin-top: var(--s3); padding: 8px 8px 7px; border-bottom: 2px solid var(--line-2); color: var(--text-2); font-size: var(--fs-base); line-height: 20px; }
.xc-rh { display: inline-flex; align-items: center; gap: 8px; }
.xc-rh .help-pop { right: 0; }
.xc--page { border-top: 0; }
.xc--page .xc-m { position: relative; padding: 6px 8px; font-size: var(--fs-meta); line-height: 20px; color: var(--text-3); }
.xc--page .xc-m:hover { background: var(--hover); }
.xc--page .xc-m .t { font: 13px/20px var(--font-mono); color: var(--text-2); }
.xc--page .xc-m .t .mv { color: inherit; }
.xc-time { color: var(--text-3); font-variant-numeric: tabular-nums; }
.xc-time:hover { color: var(--text); }
.xc-from { min-width: 0; white-space: nowrap; font-size: var(--fs-base); }
.xc-from--bot .pv { color: var(--text-3); }
.xc-from--bot .pv:hover, .xc-from--acct .pv:hover { color: var(--accent); }
.xc-from--acct .pv { color: var(--text); }
.xc-to { margin-left: 6px; font-size: var(--fs-sm); color: var(--text-3); }
.xc-rec { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; font: 13px/20px var(--font-mono); }
.xc-rec .pv { color: var(--text-2); }
.xc-rec .pv:hover { color: var(--accent); }
.xc-rec .tent { height: 18px; font-family: var(--font-sans); align-self: center; }
.xc-rec .hc { left: auto; right: 0; font-family: var(--font-sans); }
.xc-day { padding: 18px 8px 6px; border-bottom: 1px solid var(--line); }
.xc-h + .xc .xc-day:first-child { padding-top: 10px; }

/* the message a jump landed on: marked as the drawer marks the message itself */
.xc--page .xc-m.self { background: var(--active); color: var(--text-2); }
.xc--page .xc-m.self .xc-time { color: var(--text); font-weight: 500; }
.xc--page .xc-m.self .t { color: var(--text); }
.xc--page .xc-m.self::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--text); }

/* hover / focus actions sit over the end of the text, clear of the record column */
.xc-m .ra { position: absolute; top: 4px; right: calc(var(--xc-rec) + 20px); padding-left: 16px; background: var(--hover); }
.xc-m.self .ra { background: var(--active); }

/* ---- Victim records tab: victims.html's rows without the Bot · chat column ---- */
.ch-vr { margin-top: var(--s3); }

/* ---- Accounts tab ---- */
.ch-sect { padding-top: var(--s2); }
.ch-ac { table-layout: fixed; }
.ch-ac th:nth-child(1) { width: auto; }
.ch-ac th:nth-child(2), .ch-ac th:nth-child(3), .ch-ac th:nth-child(4) { width: 120px; }
.ch-ac th:nth-child(5), .ch-ac th:nth-child(6) { width: 184px; }
.ch-ac tr.grp th { padding: 20px 0 6px; border-bottom: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.ch-ac tbody:first-of-type tr.grp th { padding-top: 12px; }
.ch-ac tr.sub td { height: 30px; padding-top: 0; padding-bottom: 6px; font-size: var(--fs-sm); color: var(--text-2); }
.ch-ac tr.sub td:first-child { padding-left: 14px; color: var(--text-3); }
.ch-ac tr.sub td:first-child .ch-to::before { content: "└ "; color: var(--line-2); }
.ch-ac tfoot td { height: 44px; border-top: 1px solid var(--line-2); }
.ch-ac tfoot td:first-child { color: var(--text-2); }

@media (max-width: 1380px) {
  .ch { --xc-from: 124px; --xc-rec: 152px; }
  .ch--group { --xc-from: 168px; }
  .ch-ac th:nth-child(5), .ch-ac th:nth-child(6) { width: 160px; }
}

/* ==== 55-admin2.css ==== */
/* ===================================================================
   Status, Export, Brand mapping (owner: H3). Minimal on purpose: these pages reuse
   .lh, .tbl, .sect, .kv, .ph/.detail/.props, .cexp-m/.cexp-n/.cexp-go, .pop, .cflash, .bst.
   =================================================================== */

/* status: the one stage that is behind — the word in body white, its mark hollow (no red) */
.st-behind { color: var(--text); font-weight: 500; }
.st-t td, .st-b td { color: var(--text-2); }
.st-t td:first-child, .st-b td:first-child { color: var(--text); }
.st-b .st-m { color: var(--text-3); }
.st-t .bst, .st-b .bst { font-size: inherit; }

/* export form: the case export's option list, one column, fields in two */
.xf { display: grid; gap: var(--s5); max-width: 680px; padding: var(--s6) 0 var(--s8); }
.xf .cexp-m label { align-items: baseline; }
.xf .cexp-m input { margin: 0; transform: translateY(2px); }
.xf-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s6); }
.xf-fields legend { grid-column: 1 / -1; }
.xf .cexp-m .xf-off { color: var(--text-3); cursor: default; }
.xf .cexp-m .xf-off small { color: var(--text-3); }
.xf-case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.xf select, .pop select { height: var(--ctl); font-size: var(--fs-base); padding: 0 8px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); color: var(--text); }
.xf select:focus, .pop select:focus { border-color: var(--focus); outline: none; }
.xr li { padding: 6px 0; font-size: var(--fs-base); line-height: 1.5; color: var(--text-2); border-bottom: 1px solid var(--line); }
.xr li:last-child { border-bottom: 0; }

/* brand mapping */
.map-w { color: var(--text); }
.map-k { color: var(--text-2); white-space: nowrap; }
.map-t .acts, .map-s .acts { width: 1%; }
.map-t .pop, .map-s .pop { text-align: left; white-space: normal; }
.map-s td { vertical-align: top; padding-top: 12px; padding-bottom: 12px; }
.map-sk { display: block; }
.map-s td:first-child, .map-s td:nth-child(2), .map-s .c2 { white-space: nowrap; }
.map-ev { max-width: 52ch; color: var(--text-2); line-height: 1.5; }
.map-acts { display: flex; justify-content: flex-end; gap: 6px; }
.map-un { color: var(--text-2); line-height: 1.6; }

/* case notes (correction 8): "on R-48204 · Meridia Alertas" gets its own line under the note's header */
.cn-h .cn-on { flex-basis: 100%; margin-left: 0; }
