@import url("type-scale.css?v=20261002-brand"); /* the one type and box scale; font sizes are decided there and nowhere else */
/* Alts Terminal — the product surface.
 *
 * Forest ink against jade and amber, away from the navy and gold every incumbent terminal uses.
 * Motion carries information: a rail bar that grows toward the content, one tab indicator that
 * travels, panels that arrive staggered, charts that draw. Every move finishes under a second.
 */

/* The one place the tokens are declared (visual-base, 2026-10-02). app/css/DESIGN-GUIDE.md lists them; no later :root
 * block in app.css or work.css may change a value. Three surfaces: canvas --bg, section card --panel, inner panel
 * --panel-2. White is the surface a reader reads on. Contrast on white unless stated:
 * --muted 8.6, --muted-2 10, --faint 6.8, --jade 4.59, --jade-dark 6.5; on the canvas --muted 6.8, --jade-dark 5.1. */
:root {
  --ink: #0C1F1C;
  --banner-text-2: #C9DAD4; /* every secondary line on a dark report banner: 11.5 to 1 on #0C1F1C */
  --ink-2: #12302B;
  --ink-3: #22403A;
  --muted: #3A504B;
  --muted-2: #33463F;
  --faint: #4A5F5A;

  --accent: #0D8568;
  --accent-dark: #0a6b55;
  --accent-hover: #086048;
  --accent-soft: #E8F3EE;
  --jade: #0D8568;
  --jade-dark: #0a6b55;
  --jade-soft: #E8F3EE;
  --jade-soft-2: #DBEAE3;
  --jade-mid: #4FB398;
  --jade-pale: #AFCFC6;
  --signal: #35D6A8;

  --amber: #E0A526;
  --amber-ink: #8A5A16;
  --amber-soft: #FDF6E8;
  --amber-line: #F0DFB8;
  --rust: #C25B1B;
  --warn: #8A5A16;
  --warn-soft: #FDF6E8;

  --good: #0A6E56;
  --good-soft: #E6F4EE;
  --bad: #9D2020;
  --bad-soft: #FBEAEA;

  --bg: #DDE7E3;            /* canvas: a white card on it 1.26:1 */
  --panel: #FFFFFF;         /* section card, the surface a reader reads on */
  --panel-2: #EEF4F1;       /* inner panel: 1.11:1 on white, always with a --line border */
  --line: #C9D8D3;          /* card edge, table frame, divider: 1.47:1 on white */
  --line-soft: #E2EAE7;     /* line between table rows: 1.22:1 on white */
  --line-strong: #AEC2BB;   /* edge of a control: 1.87:1 on white */
  --focus: #35D6A8;

  --rail: 236px;
  --topbar: 54px;
  --radius: 10px;
  --radius-card: 10px;
  --pad-page: 18px 24px 26px;
  --gap-section: 20px;

  --ease: cubic-bezier(.2, .7, .3, 1);
  --ease-over: cubic-bezier(.34, 1.2, .36, 1);
  --ease-draw: cubic-bezier(.2, .8, .3, 1);
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; border-radius: 4px; }
a { color: var(--jade-dark); text-decoration: none; }   /* 6.5:1 on white, 5.1:1 on the canvas; --jade is 4.59:1 and stays for rules and fills */
a:hover { color: var(--ink); text-decoration: underline; }
.num { font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-family: Newsreader, Georgia, serif; font-weight: 500; letter-spacing: -.005em; }

/* ---------------------------------------------------------------- shell */

.shell { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100vh; }

.rail {
  background: var(--ink);
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 18px 0 16px;
  overflow-y: auto;
}
.rail .mark { display: flex; align-items: center; gap: 9px; padding: 0 18px 20px; }
.rail .mark .dot {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: linear-gradient(140deg, var(--signal), var(--jade));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; color: #062018;
}
.rail .mark .t { font-weight: 600; font-size: 14px; color: #fff; line-height: 1.2; white-space: nowrap; }
.rail .mark small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .11em;
  text-transform: uppercase; color: #5C7A73; margin-top: 1px; }

.rail-group { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #5C7A73; padding: 4px 18px 8px; }
.rail .divider { height: 1px; background: rgba(255, 255, 255, .1); margin: 14px 18px; }

.railitem {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 14px 8px 18px; border: 0; background: transparent; text-align: left; cursor: pointer;
  color: #9FB6B0; font: 500 13px/1.3 "IBM Plex Sans", sans-serif;
  transition: color .22s var(--ease), background .22s var(--ease), transform .22s var(--ease);
}
.railitem::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 0;
  background: var(--signal); border-radius: 0 2px 2px 0; transform: translateY(-50%);
  transition: height .26s var(--ease);
}
.railitem:hover { color: #EAF4F1; background: rgba(255, 255, 255, .055); transform: translateX(3px); }
.railitem:hover::before { height: 18px; }
.railitem[aria-current="page"] { color: #fff; background: rgba(53, 214, 168, .11); }
.railitem[aria-current="page"]::before { height: 26px; }
.railcount { margin-left: auto; font-size: 11.5px; color: #6E8B84;
  font-variant-numeric: tabular-nums; transition: color .22s var(--ease); }
.railitem:hover .railcount, .railitem[aria-current="page"] .railcount { color: var(--signal); }

.rail-origin { padding: 0 18px; }
.rail-origin .o { display: flex; align-items: center; gap: 7px; margin-bottom: 7px;
  font-size: 11.5px; color: #9FB6B0; }
.rail-origin .o i { width: 6px; height: 6px; border-radius: 50%; flex: none; font-style: normal; }
.rail-origin .o.sim i { background: var(--amber); }
.rail-origin .o.obs i { background: var(--signal); }
.rail-origin .o.ph i { background: #E06262; }

.main { min-width: 0; display: flex; flex-direction: column; }

/* ---------------------------------------------------------------- top bar */

.topbar {
  height: var(--topbar); flex: none; background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
  position: sticky; top: 0; z-index: 30;
}
.search { position: relative; width: 420px; flex: none; }
.search input {
  width: 100%; height: 32px; padding: 0 12px 0 32px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--panel-2);
  font: 400 12.5px "IBM Plex Sans", sans-serif; color: var(--ink-2);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.search input:focus { background: #fff; border-color: var(--jade); }
.search .icon { position: absolute; left: 11px; top: 7px; color: #7C918B; pointer-events: none;
  font-size: 13px; }
.search-results {
  position: absolute; top: 38px; left: 0; right: 0; z-index: 40;
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  box-shadow: 0 14px 36px rgba(12, 31, 28, .14); overflow: hidden; max-height: 340px; overflow-y: auto;
}
.search-results button {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--line-soft);
  transition: background .16s var(--ease);
}
.search-results button:hover, .search-results button.on { background: var(--jade-soft); }
.search-results .k { font-size: 9.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--jade-dark); }
.search-results .n { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.search-results .s { font-size: 11.5px; color: var(--muted); }

.topbar .spacer { flex: 1; }
.asof { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.asof input {
  height: 30px; border: 1px solid var(--line); border-radius: 7px; padding: 0 8px;
  font: 400 12px "IBM Plex Sans", sans-serif; color: var(--ink-2); background: var(--panel-2);
}
.topbar .sep { width: 1px; height: 20px; background: var(--line); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--muted-2);
  font-size: 10.5px; font-weight: 600; letter-spacing: .03em; white-space: nowrap;
}
.chip.sim { background: var(--amber-soft); border-color: var(--amber-line); color: var(--amber-ink); }
.chip.obs { background: var(--good-soft); border-color: #BCDCCF; color: var(--good); }
.chip.ph { background: var(--bad-soft); border-color: #EEBCBC; color: var(--bad); }

/* A control is never a bare white shape: --panel-2 fill, --line-strong edge, --ink-2 text. Hover is the jade wash with a
 * jade edge; selected is --ink; primary is --jade with white text (visual-base, 2026-10-02). */
.btn {
  border: 1px solid var(--line-strong); background: var(--panel-2); border-radius: 7px; padding: 7px 13px;
  font: 500 12.5px "IBM Plex Sans", sans-serif; color: var(--ink-2); cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .12s var(--ease);
}
.btn:hover { border-color: var(--jade); background: var(--jade-soft); color: var(--jade-dark); }
.btn:active { transform: translateY(1px); }
.btn.primary, .btn.go { background: var(--jade); border-color: var(--jade); color: #fff; }
.btn.primary:hover, .btn.go:hover { background: var(--jade-dark); border-color: var(--jade-dark); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.sm { padding: 5px 10px; font-size: 11.5px; }

/* ---------------------------------------------------------------- entity header */

.entity {
  background: var(--panel-2); border-bottom: 1px solid var(--line-strong);   /* the middle step: lighter than the canvas, not white */
  padding: 20px 24px 0;
}
.entity .id { display: flex; align-items: flex-start; gap: 16px; }
.entity .avatar {
  width: 46px; height: 46px; flex: none; border-radius: 10px; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font: 600 16px Newsreader, Georgia, serif; color: var(--signal);
}
.entity h1 { margin: 0 0 5px; font-size: 27px; line-height: 1.1; color: var(--ink); }
.entity .facts { display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted-2); }
.entity .facts .d { color: #C3D2CE; }
.entity .stat { text-align: right; }
.entity .stat .l { font-size: 9.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); }
.entity .stat .v { font: 600 30px/1.1 "IBM Plex Sans", sans-serif; color: var(--ink);
  font-variant-numeric: tabular-nums; }
.entity .stat .v small { font-size: 16px; color: var(--muted); font-weight: 500; }
.entity .actions { display: flex; align-items: center; gap: 10px; flex: none; }

.tabstrip { position: relative; margin-top: 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-end; overflow-x: auto; }
.tab {
  position: relative; border: 0; background: transparent; padding: 0 2px 13px; margin-right: 26px;
  cursor: pointer; white-space: nowrap;
  font: 500 13.5px/1 "IBM Plex Sans", sans-serif; color: var(--muted);
  transition: color .2s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 600; }
/* The three highest-value tabs (Manager and fund research, Due diligence, Benchmarks): one quiet group with a
 * heavier title and a small jade dot, and a thin divider after the third (Moses, 2026-10-07). */
.tab.featured { font-weight: 600; color: #0C1F1C; }
.tab.featured::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%;
  background: var(--jade); vertical-align: 1px;
}
.tab.group-end { margin-right: 38px; }
.tab.group-end::after {
  content: ""; position: absolute; right: -20px; top: 0; bottom: 13px; width: 1px; background: var(--line);
}
html body .tabstrip:has(> .tab:nth-of-type(11)) > .tab.group-end { margin-right: 32px; }
html body .tabstrip:has(> .tab:nth-of-type(11)) > .tab.group-end::after { right: -16px; bottom: 10px; }
/* The tab row never prints a scroll bar track: a row too wide for the window scrolls by touch, wheel or
 * drag, and from 1280 px upward the eight tabs fit on one row by a smaller type size and gap (Moses, 2026-10-07). */
html body .tabstrip { scrollbar-width: none; -ms-overflow-style: none; }
html body .tabstrip::-webkit-scrollbar { display: none; width: 0; height: 0; }
@media (min-width: 1280px) and (max-width: 1439px) {
  html body .tabstrip:not(:has(> .tab:nth-of-type(11))) > .tab { font-size: 14px; margin-right: 12px; }
  html body .tabstrip:not(:has(> .tab:nth-of-type(11))) > .tab.group-end { margin-right: 20px; }
  html body .tabstrip:not(:has(> .tab:nth-of-type(11))) > .tab.group-end::after { right: -10px; }
  html body .tabstrip > .tab.featured::before { margin-right: 5px; }
}
@media (min-width: 1440px) and (max-width: 1599px) {
  html body .tabstrip:not(:has(> .tab:nth-of-type(11))) > .tab { font-size: 15px; margin-right: 16px; }
  html body .tabstrip:not(:has(> .tab:nth-of-type(11))) > .tab.group-end { margin-right: 28px; }
  html body .tabstrip:not(:has(> .tab:nth-of-type(11))) > .tab.group-end::after { right: -14px; }
}
.slider {
  position: absolute; bottom: -1px; left: 0; width: 0; height: 2px;
  background: var(--jade); border-radius: 2px;
  transition: left .34s var(--ease-over), width .34s var(--ease-over);
}

/* ---------------------------------------------------------------- content */

.content { padding: var(--pad-page); max-width: 1680px; width: 100%; }
.crumb { font-size: 11.5px; color: var(--muted); margin: 0 0 12px; }
.summary {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--jade);
  border-radius: var(--radius); padding: 13px 16px; margin-bottom: var(--gap-section);
}
.summary ul { margin: 0; padding-left: 18px; }
.summary li { font-size: 13px; margin: 3px 0; color: var(--ink-2); }
.summary li a { color: var(--ink-2); }
.summary li a:hover { color: var(--jade-dark); }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 1280px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.stack { display: flex; flex-direction: column; gap: var(--gap-section); min-width: 0; }

/* ---------------------------------------------------------------- section as a card */

details.section {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .24s var(--ease);
}
details.section:hover { border-color: var(--line-strong); }
/* The title row (visual-base, 2026-10-02): a --jade-soft strip across the top of the card, a 3px --jade rule on its
 * left edge and a --line under it, so every section opens with a row a reader sees at once and two neighbouring
 * sections never read as one block. The same recipe serves every other fold: fill, 3px rule, line. */
details.section > summary {
  list-style: none; cursor: pointer; padding: 12px 18px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--jade-soft); box-shadow: inset 3px 0 0 var(--jade);
  border-bottom: 1px solid var(--line); border-radius: 7px 7px 0 0;
  transition: background .18s var(--ease);
}
details.section > summary:hover { background: var(--jade-soft-2); }
details.section:not([open]) > summary { border-bottom-color: transparent; border-radius: 7px; }
details.section > summary::-webkit-details-marker { display: none; }
details.section h2 { margin: 0; font-size: 16px; color: var(--ink); flex: none; }
details.section .snip { font-size: 11.5px; color: var(--muted); }
details.section .body { padding: 16px 18px 18px; }
.sec-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.how {
  border: 1px solid var(--line-strong); background: var(--panel-2); border-radius: 6px; padding: 4px 9px;
  font: 500 11.5px "IBM Plex Sans", sans-serif; color: var(--muted-2); cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.how:hover { border-color: var(--jade); color: var(--jade-dark); background: var(--jade-soft); }
.how.ai { border-color: var(--amber-line); background: var(--amber-soft); color: var(--amber-ink); }
.how.ai:hover { border-color: var(--amber); }

.block { margin-top: 16px; }
.block:first-child { margin-top: 0; }
.block > h3 { margin: 0 0 9px; font: 600 10px "IBM Plex Sans", sans-serif;
  letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }

.desc { display: grid; grid-template-columns: 104px 1fr; gap: 3px 14px; align-items: baseline; }
.desc dt { font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); }
.desc dd { margin: 0 0 5px; font-size: 13px; color: var(--ink-2); max-width: 96ch; }

/* ---------------------------------------------------------------- KPI */

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 12px; }
/* A tile on the canvas is a white card; a tile inside a section or block is an inner panel (--panel-2, through --card-bg). */
.kpi { background: var(--card-bg, var(--panel)); border-left: 3px solid var(--jade); border-radius: 8px;
  padding: 11px 13px; transition: background .2s var(--ease); }
.kpi:hover { background: var(--jade-soft); }
.kpi .l { font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); }
.kpi .v { font: 600 25px/1.15 "IBM Plex Sans", sans-serif; color: var(--ink);
  margin: 3px 0 1px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.kpi .r { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.kpi.na { border-left-color: var(--line-strong); }
.kpi.na .v { color: var(--muted); font-size: 17px; }

/* ---------------------------------------------------------------- tables */

.table-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.table-tools .cap { font-size: 11.5px; color: var(--muted); flex: 1; min-width: 220px; }
.table-wrap { border: 1px solid var(--line); border-radius: 9px; overflow: auto; max-height: 620px; background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: 12.5px; font-variant-numeric: tabular-nums; }
thead th {
  position: sticky; top: 0; z-index: 2; background: var(--ink); color: #CFE0DB;
  font: 600 10px "IBM Plex Sans", sans-serif; letter-spacing: .06em; text-transform: uppercase;
  text-align: left; padding: 9px 12px; cursor: pointer; white-space: nowrap;
  transition: background .16s var(--ease);
}
thead th.r { text-align: right; }
thead th:hover { background: #16302B; color: #fff; }
thead th .ar { opacity: .4; margin-left: 4px; font-size: 9px; }
thead th[aria-sort] .ar { opacity: 1; color: var(--signal); }
tbody td { padding: 9px 12px; border-top: 1px solid var(--line-soft); vertical-align: top;
  color: var(--ink-2); }
tbody td.r { text-align: right; }
tbody tr { transition: background .16s var(--ease); }
tbody tr:hover { background: var(--jade-soft); }
tbody tr.open { background: var(--good-soft); }
tbody tr[tabindex] { cursor: pointer; }
/* A row paints on its own: opening one row must not re-lay the whole table (task 1970). */
tbody tr[data-i] { content-visibility: auto; contain-intrinsic-size: auto 41px; }
tbody tr.detail { content-visibility: visible; }
tbody tr.detail > td { background: var(--panel-2); padding: 12px 14px 14px 30px; }
.table-pager { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.table-pager[hidden] { display: none; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 22px; }
.detail-grid div { font-size: 12px; }
.detail-grid dt { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); }
.detail-grid dd { margin: 1px 0 0; }
.compact tbody td { padding: 5px 11px; }

.na { color: var(--faint); }
.na abbr { text-decoration: none; border-bottom: 1px dotted var(--line-strong); cursor: help; }
/* ui.js unavailable(): the dash is the cell's only text. Its reason reads beside it outside a table, stays a tooltip
 * inside a table cell (a sentence there stretched the column and made the row tall), and reads again in a row detail. */
.na abbr::after { content: " " attr(title); }
table .na abbr::after { content: none; }
.detail-grid .na abbr::after { content: " " attr(title); }

.pstrip { display: inline-block; width: 54px; height: 7px; border-radius: 4px; background: #E3ECEF;
  position: relative; vertical-align: middle; }
.pstrip i { position: absolute; top: -2px; width: 2px; height: 11px; background: var(--jade);
  border-radius: 1px; }
.spark { display: inline-block; vertical-align: middle; }

.badge { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 10.5px;
  font-weight: 600; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
  background: var(--line-soft); color: var(--muted-2); }
.badge.good, .badge.ranked, .badge.q1, .badge.liquidated, .badge.realised { background: var(--good-soft); color: var(--good); }
.badge.warn, .badge.partial, .badge.q3, .badge.raising, .badge.held { background: #EEF3FB; color: #26456F; }
.badge.bad, .badge.insufficient, .badge.q4 { background: var(--bad-soft); color: var(--bad); }
.badge.q2 { background: #E8F1F4; color: var(--ink-3); }
.badge.above { background: var(--good-soft); color: var(--good); }
.badge.below { background: var(--amber-soft); color: var(--amber-ink); }
.badge.unrealised, .badge.closed { background: var(--line-soft); color: var(--muted-2); }

/* ---------------------------------------------------------------- charts and states */

.chart { width: 100%; height: 280px; }
.chart.short { height: 210px; }
.chart.tall { height: 340px; }
/* A chart that sits outside a white card gets the card itself: white ground, the card edge and the card corner
 * (Moses, 2026-10-09: charts on Benchmarks, Market and Cash and value had no white box). A chart already inside a
 * foldable section or another white card keeps that card and gets no second edge. */
html body .chart:not(.spark):not(:is(details.section, .panel, .card, .mfo-panel, .ci-chartcard, .chartbox, .kpi) .chart) {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; box-sizing: border-box;
}
.shows { font-size: 11.5px; color: var(--muted); margin-top: 7px; }

.reading { display: grid; grid-template-columns: 88px 1fr; gap: 2px 14px; margin-top: 12px;
  border-top: 1px solid var(--line); padding-top: 11px; }
.reading dt { font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--jade-dark); padding-top: 2px; }
.reading dd { margin: 0 0 6px; font-size: 13px; color: var(--ink-3); max-width: 96ch; line-height: 1.55; }

.empty, .withheld {
  border: 1px dashed var(--line-strong); border-radius: 9px; padding: 16px; text-align: center;
  color: var(--muted); font-size: 12.5px; background: var(--panel-2);
}
.empty strong, .withheld strong { display: block; color: var(--ink-2); font-size: 13.5px;
  margin-bottom: 4px; font-weight: 600; }
.notice {
  display: flex; gap: 9px; align-items: flex-start; background: transparent;
  border: 0; border-left: 4px solid var(--amber); color: var(--muted-2); border-radius: 0;
  padding: 2px 0 2px 12px; font-size: 13px; line-height: 1.5; margin-bottom: 12px;
}
.notice.ph { border-left-color: var(--bad); color: #7A1C1C; }
/* The site-wide statement: a quiet line at the foot of every page, set apart from the notices (K12). */
.footer-note { margin: 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

.skel { background: linear-gradient(90deg, #E9EFED 25%, #DFE7E4 37%, #E9EFED 63%);
  background-size: 400% 100%; animation: sh 1.2s ease infinite; border-radius: 6px; }
@keyframes sh { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skel-row { height: 30px; margin-bottom: 7px; }

ul.plain { margin: 0; padding-left: 18px; }
ul.plain li { font-size: 13px; margin: 4px 0; max-width: 96ch; color: var(--ink-2); }
.prose { font-size: 13px; line-height: 1.55; margin: 0; max-width: 88ch; color: var(--ink-2); }

.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 11px 14px;
  background: var(--jade-soft); border: 1px solid #CFE7E7; border-radius: 9px; margin-bottom: var(--gap-section); }
.fnode { background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; padding: 5px 10px;
  font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.fnode.dec { border-radius: 999px; border-color: var(--jade); color: var(--jade-dark); }
.farr { color: var(--jade-dark); font-size: 13px; }

/* ---------------------------------------------------------------- side cards */

.side { display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--card-bg, var(--panel)); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px; transition: box-shadow .24s var(--ease), transform .24s var(--ease); }
.card:hover { box-shadow: 0 8px 22px rgba(12, 31, 28, .07); transform: translateY(-1px); }
.card h3 { margin: 0 0 11px; font: 600 10px "IBM Plex Sans", sans-serif; letter-spacing: .11em;
  text-transform: uppercase; color: var(--muted); }
.card .big { font: 600 26px/1 "IBM Plex Sans", sans-serif; color: var(--ink);
  font-variant-numeric: tabular-nums; }
.card .sub { font-size: 11.5px; color: var(--muted); margin: 4px 0 0; }
.card.warn { background: #FDFAF3; border-color: #E4CFA0; }
.card.warn h3 { color: var(--amber-ink); }
.card.warn p { margin: 0 0 8px; font-size: 12px; color: #4A3418; line-height: 1.5; }
.card.warn p:last-child { margin-bottom: 0; }
.meter { height: 7px; background: var(--line-soft); border-radius: 4px; overflow: hidden; margin: 9px 0 7px; }
.meter i { display: block; height: 100%; background: var(--jade); border-radius: 4px;
  animation: widen .8s var(--ease-draw) both; }
@keyframes widen { from { width: 0 !important; } }
.kv { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted-2); }
.kv b { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- drawer */

.scrim { position: fixed; inset: 0; background: rgba(12, 31, 28, .28); z-index: 50;
  animation: fade .28s var(--ease) both; border: 0; padding: 0; cursor: pointer; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; width: 486px; max-width: 94vw; height: 100vh; z-index: 51;
  background: #fff; border-left: 1px solid var(--line-strong);
  box-shadow: -18px 0 46px rgba(12, 31, 28, .16);
  display: flex; flex-direction: column;
  animation: slidein .4s cubic-bezier(.2, .75, .3, 1) both;
}
@keyframes slidein { from { transform: translateX(34px); opacity: 0; } }
.drawer .dh { flex: none; padding: 20px 24px 15px; border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: 12px; }
.drawer .dh .eyebrow { font-size: 9.5px; font-weight: 600; letter-spacing: .11em;
  text-transform: uppercase; color: var(--jade-dark); margin-bottom: 6px; }
.drawer .dh h2 { margin: 0 0 4px; font-size: 20px; color: var(--ink); }
.drawer .dh .sub { font-size: 12px; color: var(--muted); }
.drawer .db { flex-grow: 1; overflow-y: auto; padding: 18px 24px 26px; }
.drawer .x { flex: none; width: 30px; height: 30px; border: 1px solid var(--line-strong); background: var(--panel-2);
  border-radius: 7px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: border-color .2s var(--ease), background .2s var(--ease); }
.drawer .x:hover { border-color: var(--jade); background: var(--jade-soft); }

.step { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft);
  animation: rise .44s var(--ease) both; }
.step:last-of-type { border-bottom: 0; }
.step .sh { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.step .sn { width: 18px; height: 18px; flex: none; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font: 700 10px "IBM Plex Sans", sans-serif; background: var(--good-soft); color: var(--jade-dark); }
.step .sl { font-size: 10px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase;
  color: var(--jade-dark); }
.step.late .sn { background: var(--amber-soft); color: var(--amber-ink); }
.step.late .sl { color: var(--amber-ink); }
.step p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.srcrow { padding: 9px 10px; border: 1px solid #E7EEEC; border-radius: 7px; margin-bottom: 7px;
  transition: background .18s var(--ease); }
.srcrow:hover { background: var(--jade-soft); }
.srcrow .f { font: 500 11.5px "IBM Plex Mono", ui-monospace, monospace; color: var(--ink);
  word-break: break-all; }
.srcrow .k { font-size: 11px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.srcrow .c { font-size: 11px; color: var(--muted-2); margin-top: 5px; }

/* ---------------------------------------------------------------- the analysis product */

.ai-strip {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: var(--gap-section);
  background: linear-gradient(100deg, #0C1F1C 0%, #14332D 62%, #17423A 100%);
  border-radius: var(--radius); color: #DDEDE8;
}
.ai-strip .glyph { width: 30px; height: 30px; flex: none; border-radius: 8px;
  background: rgba(53, 214, 168, .16); display: flex; align-items: center; justify-content: center; }
.ai-strip .t { font-size: 13px; font-weight: 600; color: #fff; }
.ai-strip .s { font-size: 11.5px; color: #9FB6B0; }
.ai-strip .btn { background: var(--signal); border-color: var(--signal); color: #062018; font-weight: 600; }
.ai-strip .btn:hover { background: #4be0b6; border-color: #4be0b6; }
.ai-strip .btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .28); color: #DDEDE8; }
.ai-strip .btn.ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .45); }

.ai-slot { border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--panel-2);
  padding: 18px; }
.ai-slot .zone { font-size: 9.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--jade-dark); border: 1px solid var(--jade); border-radius: 999px; padding: 2px 9px;
  display: inline-block; }
.ai-plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 11px;
  margin-top: 14px; }
.ai-plan .p { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px;
  transition: border-color .2s var(--ease), transform .2s var(--ease); }
.ai-plan .p:hover { border-color: var(--jade); transform: translateY(-1px); }
.ai-plan .p .n { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); }
.ai-plan .p .h { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 4px 0 3px; }
.ai-plan .p .d { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.ai-ask { display: flex; gap: 9px; margin-top: 14px; }
.ai-ask input { flex-grow: 1; height: 36px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; font: 400 12.5px "IBM Plex Sans", sans-serif; color: var(--ink-2); }
.ai-ask input:focus { border-color: var(--jade); }

/* ---------------------------------------------------------------- motion */

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .46s var(--ease) both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .1s; }
.d3 { animation-delay: .16s; } .d4 { animation-delay: .22s; } .d5 { animation-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------- narrow and print */

@media (max-width: 1100px) {
  .shell { grid-template-columns: 64px 1fr; }
  .rail .mark .t, .rail .mark small, .railitem span:first-child, .rail-group, .rail-origin { display: none; }
  .railitem { justify-content: center; }
  .search { width: 260px; }
}
@media (max-width: 760px) {
  .content { padding: 14px; }
  .entity h1 { font-size: 22px; }
  .desc, .reading { grid-template-columns: 1fr; }
  .desc dt, .reading dt { padding-top: 8px; }
  .search { width: 160px; }
}

@media print {
  .rail, .topbar, .table-tools, .entity .actions, .ai-strip, .scrim, .drawer { display: none; }
  .shell { grid-template-columns: 1fr; }
  details.section { break-inside: avoid; border-color: #ccc; box-shadow: none; }
  details.section .body { display: block; }
  .table-wrap { max-height: none; }
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* ---------------------------------------------------------------- contrast and presence
 * The controls that carry the product read as controls: bigger, darker, left of what they change.
 * (Token values are declared once, in :root at the top of this file.)
 */

.table-tools { gap: 12px; margin-bottom: 10px; }
.table-tools .cap { font-size: 12.5px; color: var(--muted); flex: 1 1 auto; order: 2; }
.btn.cols {
  order: 1; flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; font-size: 13px; font-weight: 600; color: var(--ink);
  border: 1.5px solid var(--line-strong); background: var(--panel-2); border-radius: 8px;
}
.btn.cols .gl { font-size: 14px; color: var(--jade); line-height: 1; }
.btn.cols:hover { border-color: var(--jade); background: var(--jade-soft); color: var(--jade-dark); }
.btn.cols.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.cols.on .gl { color: var(--signal); }

.how {
  padding: 6px 12px; font-size: 12.5px; font-weight: 600; color: var(--jade-dark);
  border: 1.5px solid var(--jade-pale); background: var(--jade-soft);
}
.how:hover { border-color: var(--jade); background: var(--jade-soft-2); color: var(--jade-dark); }

.shows { font-size: 12.5px; color: var(--muted); }
.kpi .l { font-size: 10px; color: var(--muted); }
.kpi .r { font-size: 12px; color: var(--muted); }
details.section .snip { font-size: 12.5px; color: var(--muted); }
.crumb { font-size: 12px; color: var(--muted); }
.summary li { font-size: 13.5px; }
thead th { font-size: 10.5px; color: #DCEAE5; }
tbody td { font-size: 13px; }
.card .sub, .panel .sub, .sub { font-size: 12px; color: var(--muted); }
.ctl label { font-size: 11px; color: var(--ink-3); font-weight: 700; }
.ctlbar .hint { font-size: 12.5px; color: var(--muted); }
.seg button { font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding: 7px 13px; }
.pill { font-size: 12.5px; padding: 5px 12px; }
.badge { font-size: 11px; }
.chip { font-size: 11px; }
.flag { font-size: 12px; font-weight: 600; }
.rsec > .h .t { font-size: 18px; }
.st { font-size: 10px; }
.cls { font-size: 9.5px; }
.detail-grid dt { color: var(--muted); }
.table-wrap { border-width: 1px; }

/* ---------------------------------------------------------------- legibility pass
 * Everything one step up: the page was set for a screenshot, not for reading.
 */
html, body { font-size: 14.5px; }
.tab { font-size: 15px; padding-bottom: 14px; margin-right: 28px; }
.railitem { font-size: 14px; padding-top: 9px; padding-bottom: 9px; }
.railcount { font-size: 12.5px; }
.rail-group { font-size: 10.5px; }
.rail .mark .t { font-size: 15px; }
.entity h1 { font-size: 29px; }
.entity .facts { font-size: 13.5px; }
.entity .stat .v { font-size: 32px; }
.entity .stat .l { font-size: 10px; }
.btn { font-size: 13.5px; padding: 8px 15px; }
.btn.sm { font-size: 12.5px; padding: 6px 12px; }
.search input { height: 34px; font-size: 13.5px; }
.asof, .asof input { font-size: 12.5px; }
tbody td { font-size: 13.5px; padding: 10px 13px; }
thead th { font-size: 11px; padding: 10px 13px; }
.kpi .v { font-size: 27px; }
.kpi .l { font-size: 10.5px; }
.kpi .r { font-size: 12.5px; }
.table-tools .cap { font-size: 13px; }
.summary li { font-size: 14px; }
.crumb { font-size: 12.5px; }
.shows { font-size: 13px; }
.chip { font-size: 11.5px; padding: 4px 10px; }
.badge { font-size: 11.5px; padding: 3px 8px; }
.ctl label { font-size: 11.5px; }
.ctl select, .ctl input[type="number"], .ctl input[type="text"] { height: 34px; font-size: 13.5px; }
.ctlbar .hint { font-size: 13px; }
.seg button { font-size: 13px; padding: 8px 14px; }
.pill { font-size: 13px; padding: 6px 13px; }
.flag { font-size: 12.5px; padding: 6px 11px; }
.how { font-size: 13px; padding: 7px 13px; }
.btn.cols { font-size: 13.5px; padding: 10px 16px; }
details.section h2 { font-size: 17px; }
details.section .snip { font-size: 13px; }
.rsec > .h .t { font-size: 20px; }
.rsec .refusal { font-size: 13.5px; }
.report-pane .report-headline { font-size: 22px; }
.report-pane .card > h3,
.report-pane .block > h3 { font-size: 13.5px; }
.desc dd, ul.plain li, .prose { font-size: 14px; }
.desc dt { font-size: 10.5px; }
.reading dd { font-size: 14px; }
.reading dt { font-size: 10.5px; }
.drawer .db { font-size: 14px; }
.step p { font-size: 14px; }
.card .big, .big { font-size: 31px; }
.card .sub, .panel .sub, .sub { font-size: 13px; }
.kv { font-size: 12.5px; }
.panel > h3 { font-size: 10.5px; }
.detail-grid div { font-size: 13px; }
.srcrow .f { font-size: 12.5px; }
.srcrow .k, .srcrow .c { font-size: 12px; }
.empty, .withheld { font-size: 13.5px; }
.notice { font-size: 13px; }

/* ---------------------------------------------------------------- size step two */
html, body { font-size: 15.5px; }
.tab { font-size: 16px; padding-bottom: 15px; }
.railitem { font-size: 14.5px; }
.railcount { font-size: 13px; color: #8FB0A8; }
.rail-group { font-size: 11px; color: #7C9B93; }
.rail-origin .o { font-size: 12.5px; color: #B6CDC7; }
.entity h1 { font-size: 31px; }
.entity .facts { font-size: 14.5px; color: var(--ink-3); }
.entity .stat .l { font-size: 11px; }
.entity .stat .v { font-size: 34px; }
tbody td { font-size: 14.5px; padding: 11px 14px; color: var(--ink-2); }
thead th { font-size: 11.5px; padding: 11px 14px; color: #E4F0EC; }
.kpi .v { font-size: 29px; }
.kpi .l { font-size: 11px; color: var(--ink-3); font-weight: 700; }
.kpi .r { font-size: 13.5px; color: var(--muted-2); }
.table-tools .cap { font-size: 14px; color: var(--muted-2); }
.btn.cols { font-size: 14.5px; padding: 11px 18px; }
.btn { font-size: 14.5px; padding: 9px 16px; }
.btn.sm { font-size: 13.5px; }
.chip { font-size: 12.5px; padding: 5px 11px; }
.badge { font-size: 12px; padding: 3px 9px; }
.crumb { font-size: 13px; color: var(--muted-2); }
.shows { font-size: 14px; color: var(--muted-2); }
.sub, .card .sub, .panel .sub { font-size: 14px; color: var(--muted-2); }
.desc dd, ul.plain li, .prose, .reading dd, .step p, .drawer .db { font-size: 15.5px; }
.desc dt, .reading dt { font-size: 11px; }
.ctl label { font-size: 12.5px; }
.ctl select, .ctl input[type="number"], .ctl input[type="text"] { height: 36px; font-size: 14.5px; }
.ctlbar .hint { font-size: 14px; color: var(--muted-2); }
.seg button { font-size: 14px; padding: 9px 15px; }
.pill { font-size: 14px; padding: 7px 14px; }
.flag { font-size: 13.5px; padding: 7px 12px; }
.how { font-size: 14px; padding: 8px 14px; }
.panel > h3 { font-size: 11.5px; color: var(--ink-3); font-weight: 700; }
.panel > h3 .r { font-size: 13px; }
.big, .card .big { font-size: 33px; }
.kv { font-size: 14px; }
.kv b { font-size: 14.5px; }
details.section h2 { font-size: 18px; }
details.section .snip { font-size: 14px; }
.rsec > .h .t { font-size: 22px; }
.rsec > .h .n { font-size: 13px; }
.report-pane .report-headline { font-size: 24px; }
.report-pane .card > h3,
.report-pane .block > h3 { font-size: 14px; }
.report-pane .phase .t { font-size: 15.5px; }
.refusal { font-size: 14.5px; }
.refusal b { font-size: 15px; }
.st { font-size: 11px; padding: 3px 10px; }
.cls { font-size: 10.5px; padding: 2px 8px; }
.empty, .withheld { font-size: 14.5px; }
.notice { font-size: 13px; }
.search input { height: 36px; font-size: 14.5px; }
.search-results .n { font-size: 14.5px; }
.search-results .s { font-size: 13px; }
.asof, .asof input { font-size: 13.5px; }
.detail-grid div { font-size: 14px; }
.detail-grid dt { font-size: 10.5px; }
.srcrow .f { font-size: 13.5px; }
.srcrow .k, .srcrow .c { font-size: 13px; }
.summary li { font-size: 15px; }
.fnode { font-size: 13.5px; }
.phase { font-size: 14px; }
.na { color: var(--faint); }   /* was #6F8580, 3.9:1 on white; --faint is 6.8:1 on white, 6.1:1 on --panel-2 */

/* ---------------------------------------------------------------- wider rail, entity scope */
:root { --rail: 272px; }
.rail .mark { padding: 0 20px 20px; }
.rail-group, .rail-origin { padding-left: 20px; padding-right: 20px; }
.railitem { padding-left: 20px; padding-right: 16px; }

.scope { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 6px;
  background: var(--ink); color: #A9E7D3; font: 700 10.5px "IBM Plex Sans", sans-serif;
  letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }
.scope.fund { background: #1B4A3F; color: #8CF3D2; }
.scope.lp { background: #2A3F52; color: #A9CBE7; }

.picker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 2px; }
.picker .p { display: flex; align-items: center; gap: 7px; }
.picker label { font: 700 10.5px "IBM Plex Sans", sans-serif; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); }
.picker select { height: 34px; max-width: 340px; border: 1.5px solid var(--line-strong); border-radius: 8px;
  padding: 0 10px; background: #fff; font: 500 14px "IBM Plex Sans", sans-serif; color: var(--ink);
  transition: border-color .18s var(--ease); }
.picker select:hover, .picker select:focus { border-color: var(--jade); }
.picker .note { font-size: 12.5px; color: var(--muted); }

/* ---------------------------------------------------------------- search and entity selects in the bar */
.topbar { gap: 12px; height: 60px; }
.search { width: 380px; }
.search input {
  height: 40px; font-size: 15px; background: #fff; border: 2px solid var(--line-strong);
  border-radius: 9px; padding-left: 38px; color: var(--ink);
  box-shadow: 0 1px 2px rgba(12,31,28,.04);
}
.search input::placeholder { color: #7B908A; }
.search input:hover { border-color: #A9C3BC; }
.search input:focus { border-color: var(--jade); box-shadow: 0 0 0 3px rgba(14,138,110,.14); }
.search .icon { top: 11px; left: 13px; font-size: 15px; color: var(--jade); }

.topsel { display: flex; align-items: center; gap: 10px; }
.topsel .f { display: flex; align-items: center; gap: 7px; }
.topsel label { font: 700 10px "IBM Plex Sans", sans-serif; letter-spacing: .11em;
  text-transform: uppercase; color: var(--muted); }
.topsel select {
  height: 40px; border: 2px solid var(--line-strong); border-radius: 9px; padding: 0 10px;
  background: #fff; font: 500 14px "IBM Plex Sans", sans-serif; color: var(--ink);
  max-width: 300px; transition: border-color .18s var(--ease);
}
.topsel select:hover { border-color: #A9C3BC; }
.topsel select:focus { border-color: var(--jade); box-shadow: 0 0 0 3px rgba(14,138,110,.14); }
.topsel select optgroup { font-style: normal; font-weight: 700; color: var(--muted); }
@media (max-width: 1500px) { .search { width: 260px; } .topsel select { max-width: 200px; } }

/* the bar keeps search and both selects on one line */
.topbar { flex-wrap: nowrap; }
.topsel { flex-wrap: nowrap; flex: 0 1 auto; min-width: 0; }
.topsel .f { min-width: 0; }
.topsel select { max-width: 216px; min-width: 130px; height: 40px; }
.topsel label { display: none; }
.topsel .f::before { content: attr(data-l); font: 700 10px "IBM Plex Sans", sans-serif;
  letter-spacing: .11em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (max-width: 1600px) { .search { width: 200px; flex-basis: 200px; } .topsel select { max-width: 220px; } }
@media (max-width: 1340px) { .topsel .f::before { display: none; } .search { width: 160px; flex-basis: 160px; } .topsel select { max-width: 200px; } }

/* the bar: search and both selects side by side, one line, room to breathe */
.topbar { height: 64px; gap: 14px; padding: 0 20px; align-items: center; }
.search { width: 300px; flex: 0 1 300px; }
.topsel { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 12px;
  flex: 1 1 auto; min-width: 0; }
.topsel .f { display: flex; flex-direction: row; align-items: center; gap: 8px; flex: 1 1 0; min-width: 0; }
.topsel .f::before { flex: none; }
.topsel select { flex: 1 1 auto; width: auto; max-width: none; min-width: 0; height: 40px; }
.topbar .spacer { flex: 0 0 8px; }
@media (max-width: 1500px) { .search { flex: 0 1 220px; width: 220px; } }

/* the platform section reads as a destination, not a footnote */
.railitem.toplevel { font-size: 14.5px; font-weight: 600; color: #DDEDE8; padding-top: 11px;
  padding-bottom: 11px; line-height: 1.3; }
.railitem.toplevel::before { background: var(--signal); }
.railitem.toplevel:hover { color: #fff; }
.subnav { padding-bottom: 4px; }
.railitem.sub { font-size: 13px; color: #8CA9A2; padding-left: 32px; padding-top: 6px; padding-bottom: 6px; }
.railitem.sub:hover { color: #EAF4F1; }
.railitem.sub::before { left: 14px; }

/* the two product suites stay first in the rail, highlighted and foldable */
#suite-nav { flex: none; }
.nav-suite { margin-bottom: 2px; }
.nav-suite .suite-body { display: none; }
.nav-suite.open .suite-body { display: block; }
.railitem.suite-head.main-suite {
  font-size: 14.5px; font-weight: 600; padding-top: 11px; padding-bottom: 11px;
  line-height: 1.3; color: #fff; background: rgba(53, 214, 168, .12); border: 1px solid rgba(53, 214, 168, .3);
  margin: 0 10px 4px; width: calc(100% - 20px); border-radius: 0;
}
.railitem.suite-head.main-suite::before { background: var(--signal); }
.railitem.suite-head.main-suite:hover { color: #fff; background: rgba(53, 214, 168, .14); }
.nav-suite.open .railitem.suite-head.main-suite {
  color: #fff; background: rgba(53, 214, 168, .2); box-shadow: inset 3px 0 var(--signal), inset 0 0 0 1px rgba(53, 214, 168, .3);
}
/* the platform groups under the two suites: plain headings, set apart by a rule */
.railitem.suite-head.info-suite {
  font-size: 13px; font-weight: 600; color: #8CA9A2; padding-top: 8px; padding-bottom: 8px;
  line-height: 1.3; background: none; border: 1px solid transparent; margin: 0 10px 2px; width: calc(100% - 20px);
}
.railitem.suite-head.info-suite:hover, .nav-suite.open .railitem.suite-head.info-suite { color: #EAF4F1; background: rgba(255, 255, 255, .055); }
.nav-suite[data-suite="system"] { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.suite-caret {
  margin-left: auto; width: 7px; height: 7px; flex: none;
  border-right: 1.5px solid #8CA9A2; border-bottom: 1.5px solid #8CA9A2;
  transform: rotate(-45deg); transition: transform .22s var(--ease);
}
/* Task 1935: "How the system works" is a link to the system walkthrough with a
 * separate caret button for the sub-list, so the head never blocks navigation. */
.suite-head-link { display: flex; align-items: center; gap: 0; cursor: default; }
.suite-head-link:hover { transform: none; }
.suite-head-link a.suite-head-label { display: flex; align-items: center; flex: 1 1 auto;
  min-width: 0; color: inherit; text-decoration: none; }
.suite-head-link a.suite-head-label:hover { color: #EAF4F1; text-decoration: underline; }
.suite-head-link a.suite-head-label span:first-child { white-space: normal; }
.suite-caret-btn { margin-left: auto; flex: none; display: flex; align-items: center;
  justify-content: center; width: 26px; height: 26px; border: 0; background: transparent;
  cursor: pointer; border-radius: 6px; }
.suite-caret-btn:hover { background: rgba(255, 255, 255, .08); }
.suite-caret-btn .suite-caret { margin-left: 0; }
.nav-suite.open .suite-head .suite-caret { transform: rotate(45deg); border-color: var(--signal); }
.nav-suite .suite-body .rail-group:first-child { padding-top: 2px; }

/* ---------------------------------------------------------------- tables fit their content */

/* Each column takes the width of its content and the frame closes around the table; a table wider
   than its panel scrolls inside it. */
table { width: auto; }
.table-wrap { width: fit-content; max-width: 100%; }

/* A6: one judgement chip per fund table, one colour per judgement, the same size everywhere; the
   word itself carries the judgement, so it still reads when printed without colour. */
.jchip { display: inline-block; margin-right: 8px; padding: 1px 9px; border: 1px solid; border-radius: 999px;
  font: 600 10.5px/1.6 "IBM Plex Sans", sans-serif; letter-spacing: .06em; text-transform: uppercase;
  vertical-align: middle; white-space: nowrap; cursor: help; }
.jchip.good { color: #0B6B4F; background: #E3F5EE; border-color: #9BD9C2; }
.jchip.bad { color: #9A2B2B; background: #FBE9E9; border-color: #EBB3B3; }
.jchip.neutral { color: #44545A; background: #EEF2F3; border-color: #C9D3D6; }
.jchip.question { color: #26456F; background: #EEF3FB; border-color: #A7BDDA; }
.jchip.uncertain { color: #5B4B8A; background: #F0EDFA; border-color: #CFC6EE; }
@media print { .jchip { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
tbody td { white-space: nowrap; }
tbody td.wrap { white-space: normal; }
/* A long text cell wraps at spaces and shows every word, and its row grows to fit. It is never cut after three lines with an
 * ellipsis (Moses, 2026-10-06: "prints no limit; 25% is the concentration…" hid the rest of the sentence). The row detail repeats it. */
.clamp { max-width: 44ch; min-width: 14ch; white-space: normal; overflow-wrap: break-word; display: block; }
tbody tr.detail > td { white-space: normal; }
.btn.cols[hidden] { display: none; }
.detail-body { position: sticky; left: 14px; max-width: var(--wrapw, 100%); }
.detail-grid dd { overflow-wrap: anywhere; min-width: 0; }
/* A long verdict badge or chip in an expanded row wraps inside its own cell instead of running over the next
   cell (Moses, 2026-09-23: "DISCREPANCY; A FOOTNOTE GIVES THE CAUSE" covered the CHECK field). */
.detail-grid .badge, .detail-grid .chip { white-space: normal; max-width: 100%; line-height: 1.35; }
.detail-grid dd > * { max-width: 100%; }
.detail-grid > div { min-width: 0; }

.table-wrap.scrolls thead th:first-child,
.table-wrap.scrolls tbody tr:not(.detail) > td:first-child { position: sticky; left: 0; }
.table-wrap.scrolls thead th:first-child { z-index: 3; }
.table-wrap.scrolls tbody tr:not(.detail) > td:first-child {
  z-index: 1; background: var(--panel); box-shadow: inset -1px 0 0 var(--line); }
.table-wrap.scrolls tbody tr:hover > td:first-child { background: var(--jade-soft); }
.table-wrap.scrolls tbody tr.open > td:first-child { background: var(--good-soft); }

.subtable-wrap { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 7px;
  background: var(--panel); margin-top: 2px; }
table.subtable { width: 100%; min-width: 0; border-collapse: collapse; }
table.subtable thead th { position: sticky; top: 0; background: var(--panel-2); color: var(--muted);
  font: 700 10px "IBM Plex Sans", sans-serif; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 10px; cursor: default; border-bottom: 1px solid var(--line); }
table.subtable tbody td { padding: 6px 10px; font-size: 12.5px; white-space: nowrap; border-top: 1px solid var(--line-soft); }
table.subtable tbody tr, table.subtable tbody tr:hover { cursor: default; background: none; }
thead th { white-space: nowrap; vertical-align: bottom; line-height: 1.3; }
/* Every header ends on the bottom line with its (i) beside the last word (2026-09-26: an inline-block label pushed
 * the (i) onto a line of its own in narrow columns, and the headers of one table sat at two heights). The label flows
 * inline, its last word keeps 18 px of room at its end, and the (i) steps back into that room, so the two never part. */
thead th .thl { display: inline; white-space: normal; }
thead th .thtail { white-space: nowrap; }
html body thead th:has(> .xmark) .thtail { padding-right: 18px; }
html body thead th .thl + .xmark { margin-left: -16px !important; margin-right: 0 !important; }
thead th .xmark { width: 15px; height: 15px; vertical-align: -3px; }
thead th .xmark svg { width: 10px; height: 10px; }

/* ---------------------------------------------------------------- reading size and rail
 * Task 1935 fix (2026-09-26): the zoom is removed. html zoom 0.875 drew every
 * 12.5px label at 10.9px on screen (12.5 x 0.875). The page now draws at zoom 1
 * so CSS sizes read as-is; the rail stays 184px at laptop widths via the T1861
 * guard and 360px via --rail on wide screens. The calc(100vh/0.875) compensations
 * went with the zoom: lengths now use plain 100vh.
 */
.shell { min-height: 100vh; }
/* The rail stays in view while the page scrolls (Moses, 2026-09-22): it is one window tall,
   sticks to the top, and scrolls its own list when that list is taller than the window. */
.rail { position: sticky; top: 0; align-self: start; height: 100vh;
  overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
:root { --rail: 360px; }
.railitem {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.railitem > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Moses, 2026-09-23: a recommendation on every page, statistic, chart and table, at the top of what it reads. */
/* The evidence and recommendation band (visual-base, 2026-10-02): the same recipe as the Source filing band, a --good-soft
 * fill, a --jade-pale line and a 4px --jade rule on the left, so it reads on white (it was --jade-soft, 1.06:1). */
.rec { margin: 0 0 10px; padding: 8px 14px; border: 1px solid var(--jade-pale); border-left: 4px solid var(--jade);
  background: var(--good-soft); border-radius: 8px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.rec > b { margin-right: 7px; color: inherit; font-weight: 600; }
.rec.page { font-size: 14.5px; padding: 10px 14px; margin: 0 0 14px; }
.rec.caution { border-color: #A7BDDA; border-left-color: #2F5C9E; background: #EEF3FB; }
.rec.caution > b { color: #26456F; }
.glance .rec, .band .rec, .dark .rec { background: rgba(255, 255, 255, .07); color: #E4F2ED; border-color: rgba(255, 255, 255, .16); border-left-color: #35D6A8; }
.glance .rec > b, .band .rec > b, .dark .rec > b { color: #8CF3D2; }
@media print { .rec { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* Moses, 2026-09-24: a method note opens in a pop-up on request (ui.js infoPopup, infoButton). */
button.jchip { cursor: pointer; }
.xmark.info-btn { margin-left: 6px; }
.xcard.info-pop { z-index: 71; }
.xcard.info-pop .xrow { grid-template-columns: 92px 1fr; }
.xcard.info-pop .xrow dt { font: 600 12.5px "IBM Plex Sans", sans-serif; letter-spacing: .02em; text-transform: none; color: var(--muted-2); }
.xcard.info-pop .xrow dd { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.xcard.info-pop .xdef { font-size: 14px; }

/* Moses, 2026-09-24: a finding the reader acts on reads larger than the small print around the figures. */
.rec { font-size: 15px; }
.rec.page { font-size: 16.5px; }
.fp-page .fp-summary a { font-size: 16px; }
.fp-page .fp-insight { margin: 14px 0 0; padding: 12px 16px; border-left: 4px solid #0c776e; border-radius: 0 8px 8px 0;
  background: #eaf5f1; color: #133b30; font-size: 17.5px; font-weight: 600; line-height: 1.45; }
/* A folded section shows that it opens, so a closed one never reads as an empty card. */
.fp-page details.fp-section > summary .fp-heading-title::before { content: "▸"; color: #0c776e; font-size: 16px; width: 14px; }
.fp-page details.fp-section[open] > summary .fp-heading-title::before { content: "▾"; }
.fp-page .fp-section-source { display: inline-flex; align-items: center; }
.fp-page .fp-section-source .fp-origin { margin-top: 0; }
.fp-page .fp-block h3 { display: flex; align-items: center; gap: 9px; }

/* Moses, 2026-09-24: a block's method reading opens in a pop-up (ui.js reading()). */
.reading-link { margin: 10px 0 0; }

/* ---------------------------------------------------------------- Terminal first screen at 1181x900
 * Moses, 2026-09-24: the Market dashboard grid is an inline style
 * (repeat(auto-fit,minmax(min(100%,430px),1fr)) in workspace.js), so CSS alone
 * cannot narrow its columns. The measured fault at 1181px is narrower: the
 * table wrapper (574px) escapes its panel (535px) because width:fit-content
 * sizes it to the table, and the INDEX column holds 213px on one nowrap line
 * (ui.js only wraps text columns whose longest value tops 44 chars). So at
 * this width the wrapper stays inside its panel and the first column wraps;
 * market-moves additionally takes a fixed full-width layout so its six
 * columns always fit with no inner scroll. workspace.js, index.html and the
 * page text are untouched. */
@media (max-width: 1350px) {
  .panel { min-width: 0; }
  .table-wrap { width: 100%; }
  .table-wrap thead th, .table-wrap tbody td { padding-left: 8px; padding-right: 8px; }
  .table-wrap thead th { white-space: normal; line-height: 1.25; }
  /* long text columns break anywhere; a date or a number keeps its one line (2026-09-26: the cash-flow dates broke
   * into four lines, "202 / 5- / 12- / 31") */
  .table-wrap tbody td.wrap { overflow-wrap: anywhere; }
  .table-wrap tbody td:first-child { white-space: normal; }
  .table-wrap .clamp { min-width: 0; max-width: 100%; }
  /* Fix 25 lane A: market-moves keeps the shared standard down to 1025 px; the fixed narrow layout lives in the 1024 px block below. */
  /* a first column keeps room for a whole date: "2025-12-31" split after its first hyphen in the cash-flow table */
  .table-wrap tbody td:first-child { min-width: 92px; }
}
/* Fix 25 lane A: the narrow market-moves layout stays under 1025 px and in print, where the panel holds about 535 px. */
@media (max-width: 1024px), print {
  .table-wrap[data-table="market-moves"] table { table-layout: fixed; width: 100%; }
  .table-wrap[data-table="market-moves"] thead th:first-child,
  .table-wrap[data-table="market-moves"] tbody td:first-child { width: 34%; }
  .table-wrap[data-table="market-moves"] thead th:not(:first-child),
  .table-wrap[data-table="market-moves"] tbody td:not(:first-child) { padding-left: 4px; padding-right: 4px; }
  .table-wrap[data-table="market-moves"] thead th:nth-child(2),
  .table-wrap[data-table="market-moves"] tbody td:nth-child(2) { display: none; }
  html body .table-wrap[data-table="market-moves"] thead th { letter-spacing: .02em !important; }
}
/* The brace above was missing from 7 October 2026 to 16 October 2026, which kept every rule below for screens up to 1024 px. */

/* ---------------------------------------------------------------- Milestone 4: site-wide typography and hierarchy (Task 1861)
 * app/css/app.css ONLY. The type scale lives in these tokens: index.html loads
 * app.css BEFORE work.css and simple-chat.css, and both later files declare their
 * own :root text tokens (body 15px, answer 15.5px, small 13px, label 13px), so a
 * plain :root re-declare here would lose. The !important flags below keep this
 * file's tokens winning for every element under body (custom properties inherit),
 * and every rule beneath reads the tokens, so one scale drives body tissue,
 * tables, labels, recommendation, the Why control and the AI chat together.
 * Nothing is removed; padding, layout and widths stay. Hierarchy: recommendation
 * (17.5/18.5px) and the Why control (15px) lead; body tissue 16px; chat answers
 * 16.5px; tables 14px; labels 13.5px.
 */
body {
  --text-body: 16px !important;
  --text-small: 14px !important;
  --text-label: 13.5px !important;
  --text-answer: 17.5px !important;
  --text-rec-page: 18.5px !important;
  --text-why: 15px !important;
  --text-chat: 16.5px !important;
  --text-chat-meta: 14px !important;
}
body .prose, body .blurb { font-size: var(--text-body); line-height: 1.55; }
body .summary li, body ul.plain li { font-size: var(--text-body); line-height: 1.55; }
body .step p, body .desc dd, body .reading dd { font-size: var(--text-body); line-height: 1.55; }
body tbody td, body .table-tools .cap { font-size: var(--text-small); line-height: 1.5; }
body thead th { font-size: var(--text-label); line-height: 1.3; }
body .ctl label, body .kpi .l, body .desc dt, body .reading dt,
body .detail-grid dt, body .kpi .r, body .crumb, body .shows,
body .ctlbar .hint, body .srcrow .k, body .srcrow .c { font-size: var(--text-label); line-height: 1.5; }
body .rec { font-size: var(--text-answer); line-height: 1.5; }
body .rec.page { font-size: var(--text-rec-page); line-height: 1.5; }
body .rec-band .rec { font-size: var(--text-answer); line-height: 1.5; }
body .rec-band .rec.page { font-size: var(--text-rec-page); line-height: 1.5; }
body .rec-band .rec-why-list li { font-size: var(--text-body); line-height: 1.5; }
body button.how, body .how { font-size: var(--text-why); font-weight: 600; line-height: 1.4; }
body .simple-chat-bubble.assistant, body .simple-chat-bubble.assistant .simple-chat-answer,
body .simple-chat-bubble.user, body .simple-chat-answer { font-size: var(--text-chat); line-height: 1.55; }
body .simple-chat-thread { font-size: 15.5px; line-height: 1.5; }
body label.simple-chat-ask, body .simple-chat-ask { font-size: var(--text-chat-meta) !important; }
body .simple-chat-form label, body .simple-chat-head h2, body .simple-chat-sub,
body .simple-chat-meta, body .simple-chat-status, body .simple-chat-hint,
body .simple-chat-check, body .simple-chat-block-title { font-size: var(--text-chat-meta); line-height: 1.5; }
body .simple-chat-form textarea.simple-chat-input { font-size: var(--text-body); line-height: 1.5; }

/* ---------------------------------------------------------------- T1861 rail guard: desk rail at 1181x900 (Task 1861)
 * Cause: work.css @media (max-width: 1350px) collapses .shell to 64px + 1fr and
 * hides every rail label. The terminal survives only because the later sheet
 * navigation-compact.css re-wins the same breakpoint with 184px + visible labels.
 * The desk (oneday/index.html) never loads navigation-compact.css, so at 1181px
 * its rail shrank to ~56px showing counts only. This guard re-wins the same
 * breakpoint for pages without that sheet: app.css is earlier than work.css, so
 * the selectors below out-specify work.css (0,2,0+ beats 0,1,0/0,2,1 ties lose on
 * order). Labels stay shown; nothing else changes. oneday.css/js untouched.
 */
@media (max-width: 1350px) {
  body .shell { grid-template-columns: 184px minmax(0, 1fr); }
  body .rail .mark .t, body .rail .mark small, body .railitem span:first-child,
  body .rail-group, body .rail-origin { display: block; }
  body .railitem { justify-content: flex-start; }
}


/* T23, fork 2, 2026-09-24: at 1181x900 the Market overview rail link lost its last letters (text 117px in a 102px slot).
 * Slightly tighter padding, gap and type keep the whole label inside the rail; wider screens keep the old look. */
@media (max-width: 1350px) {
  html body #suite-nav a.railitem.market-link, html body nav.rail a.railitem.market-link { font-size: 14px; padding-left: 12px; padding-right: 10px; gap: 10px; }
  /* A rail label longer than the rail wraps to a second line instead of losing its end. */
  html body #suite-nav a.railitem, html body nav.rail a.railitem { white-space: normal; text-overflow: clip; }
  html body #suite-nav a.railitem span, html body nav.rail a.railitem span { white-space: normal; }
}

/* Fork 2, 2026-09-24: the last public text under 12.5px at 1181x900 (rail brand subtitle 10px, scope chip 10.5px,
 * source badges 12px) moves onto the site's floor. */
html body .rail .mark small, html body .scope, html body .badge, html body .jchip, html body .seg button,
html body .glance dt, html body .glance .h, html body .glance .sub { font-size: 12.5px; }

/* Fork 2, 2026-09-24, on Alts ETL 2's order: the small labels still under the floor on the desk, the platform and the
 * Overview (block titles, card titles, rail group headings, sub lines, pills, deal state chips, filter labels, pick rank
 * and score, platform key lines) read at 12.5px. Headings and larger text keep their sizes: every more specific rule wins. */
html body .block > h3, html body .card h3, html body .rail-group, html body .sub, html body .cxexplore .sub, html body .pill,
html body .qstate, html body .deal-pick-rank, html body .deal-pick-score, html body .inbox-filter,
html body .ov .k, html body .case .k, html body .cx-hero .k, html body .cx-demo-box .k,
html body .inboxfit-meta, html body .inboxfit-gain, html body .ab-btn,
html body thead th .ar, html body .rail .mark .dot { font-size: 12.5px; }

/* Fork 2, 2026-09-24: the platform page's five sequence diagrams draw their labels at 10.5 to 12px; they read at 12.5px.
 * Measured at 1181x900: no label leaves its box after the lift. */
html body .seq-wrap svg text { font-size: 12.5px !important; }

/* Task 1935 fix (2026-09-26): with the page zoom removed, the last three labels
 * under the 12.5px floor move onto it. The topsel Manager/Fund captions are
 * visually hidden (display:none; the selects carry the names), and the external
 * arrow is decorative beside a 14px label, so both read at the floor.
 * suite-nav.js owns .site-ext's base rule; this floor wins by specificity. */
html body .topsel label, html body .topsel .f::before,
html body .site-rail .site-ext, html body #suite-nav .site-ext,
html body nav.rail .site-ext { font-size: 12.5px; }

/* ---------------------------------------------------------------- visual pass, 2026-09-26 (opus-visual-qa)
 * Each rule answers one defect measured with Playwright at 1181x900; sprint/proof/claude-army/visual-qa.md lists them. */

/* A tab strip of eleven or more tabs (a deal carries fifteen) wraps onto a second row, so no tab sits past the
 * window's right edge; the active tab carries its own underline, since the sliding bar follows one row only. */
html body .tabstrip:has(> .tab:nth-of-type(11)) { flex-wrap: wrap; overflow-x: visible; row-gap: 2px; }
html body .tabstrip:has(> .tab:nth-of-type(11)) > .slider { display: none; }
html body .tabstrip:has(> .tab:nth-of-type(11)) > .tab { margin-right: 20px; padding-bottom: 10px; }
html body .tabstrip:has(> .tab:nth-of-type(11)) > .tab[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--jade); }

/* From 1351 to 1500 px the rail was 360 px and the Terminal's top bar ran 180 px past a 1440 window, cutting
 * Consult AI and Export. The rail takes its first width, 236 px, and the bar takes the compact rules it uses at
 * 1181 px (tight gaps, the picker captions hidden, narrower pickers), so every control stays inside the window. */
@media (min-width: 1351px) and (max-width: 1500px) {
  :root { --rail: 236px; }
  html body .shell { grid-template-columns: 236px minmax(0, 1fr); }
  html body .topbar { gap: 6px; padding: 0 12px; }
  html body .topbar .search { flex: 0 1 230px; min-width: 120px; width: auto; }
  html body .topbar .topsel { gap: 6px; }
  html body .topbar .topsel, html body .topbar .topsel .f { flex: none; }
  html body .topbar .topsel .f::before { display: none; }
  html body .topbar .mpick-btn { width: 150px; flex: none; }
  html body .topbar .topsel select[aria-label] { width: 170px; max-width: 170px; flex: none; }
  html body .topbar > .btn, html body .topbar > button { padding-left: 8px; padding-right: 8px; }
}

/* The suite headings in the side menu keep their whole name at 1181 px on every page (the desk lost
 * "Manager intelligence" to an ellipsis: it lacks the terminal's compact sheet). */
@media (max-width: 1350px) {
  html body .railitem.suite-head.main-suite, html body .railitem.suite-head.info-suite {
    width: calc(100% - 12px); margin-left: 6px; margin-right: 6px; padding-left: 12px; padding-right: 9px; }
}

/* A deal report section keeps Fold, its method button and About this together on the right of its title row
 * (two automatic margins split the free space and left Fold floating mid-row). */
html body details.dr-sec > summary > .dr-fold ~ .ab-inline { margin-left: 0; }
/* The About this control keeps a gap from a page title. */
html body h1 > .ab-inline { margin-left: 12px; vertical-align: middle; }

/* oneday.js writes color:var(--muted) inline on the header cells of the buyer-return grid, which sit on the dark
 * header band: the header text vanished (contrast 1.98). */
html body thead th[style*="color:var(--muted)"]:not([style*="background"]) { color: #E4F0EC !important; }

/* With the Consult AI pane open the page keeps about 450 px; two-column bands then stack instead of overlapping
 * (the Overview's analysis summary and manager card printed over each other). */
@media (max-width: 1600px) {
  html body:has(#simple-chat-drawer.open) :is(.ov-band .ov-cols2, .aiband .cols2, .panels.two, .de-grid) {
    grid-template-columns: minmax(0, 1fr) !important; }
}

/* The rail's box rules live in js/suite-nav.js (RAIL_CSS), which every page with the rail loads,
 * so the Terminal, the platform page and the standalone pages draw one rail. */

/* ---------------------------------------------------------------- Market overview sections
 * A folded section's (i) reveals the description block in place, so the reasoning opens under
 * the title it explains instead of in a pop-up that can cover a chart. */
html body details.section .desc { display: none; }
html body details.section.open .desc,
html body details.section .desc.shown { display: grid; }
html body details.section .desc { margin: 0 0 12px; padding: 10px 12px; background: var(--panel-2);
  border-left: 2px solid var(--jade); border-radius: 6px; }
/* A block title that carries an origin chip: the chip sits on the title's own line. */
html body h3.bt { display: flex; align-items: center; gap: 8px; margin: 4px 0 9px;
  font: 600 10px "IBM Plex Sans", sans-serif; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
html body h3.bt .chip { text-transform: none; letter-spacing: .04em; }

/* ---------------------------------------------------------------- every select on the site
 * Moses's report (2026-09-30): the market overview's "Sector" drop-down was a bare browser
 * control, small grey text in a thin box floating in a wide white strip, while the rest of the
 * site is styled. Cause: the styled rule was `.ctl select` (work.css:33) and app/js/comps.js:239
 * writes its label and select straight into a `.ctlbar` with no `.ctl` wrapper, so no select rule
 * matched it and the browser drew its own default. The public comparables page styles its three
 * selects in the page's own <style> block, so it always looked right and became the reference.
 * One rule here reaches every select the site renders, so no builder needs a class and
 * app/js/workspace.js stays untouched. Values match the public comparables page exactly:
 * 31px tall, 7px radius, 9px horizontal padding, 1px border, 11.5px label-coloured text.
 * The controls that already carry a taller site rule of their own (.topsel, .picker, .mfilters,
 * .rl-bar, the comparables page's own block) out-specify this one and keep their sizes.
 */
html body select {
  height: 31px; max-width: 330px; padding: 0 9px;
  border: 1px solid var(--line-strong); border-radius: 7px;
  background: #fff; color: var(--ink-2);
  font: 400 11.5px "IBM Plex Sans", sans-serif;
  transition: border-color .18s var(--ease);
}
html body select:hover { border-color: var(--jade); }
html body select:focus { border-color: var(--jade); box-shadow: 0 0 0 3px rgba(14,138,110,.14); }

/* A select's label belongs beside the control, the way the public comparables page and the
 * top bar place theirs, so a label that a builder wrote into the control bar directly is set
 * the same way. `.ctl` labels are the site's small uppercase tag and keep their own look. */
html body .ctlbar > label { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }

/* The other half of the report: the strip. A control bar whose only children are label-and-select
 * pairs has nothing else in it, but as a block-level flex row it still spanned the full width,
 * so one small drop-down sat alone in a wide empty white bar. Such a bar now wraps its content.
 * A bar that also holds a .hint, a button or anything else keeps its full width. */
html body .ctlbar:not(:has(> :not(label))) { width: fit-content; }
html body .ctlbar > label > select { max-width: 100%; }
html body .ctlbar > label { flex: 0 1 auto; min-width: 0; }

.table-tools{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px;width:100%}
.table-context{display:flex;align-items:center;flex-wrap:wrap;gap:8px;flex:1 1 220px;min-width:0}
.table-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-left:auto}
/* Task 2185: the six scope facts were six equal bare spans in one row, so the selected fund read
 * with the same weight as the manager and the reader could not tell which record the page described.
 * They now group into two labelled rows, and the fund's value carries bold weight so the selected
 * record is unmistakable. The values themselves are unchanged, and the Change selection control keeps
 * its own margin so it still sits at the end of the row it is in. mobile.css stacks every child to
 * full width, and .sc-field is a span, so the phone layout is unchanged. */
.selection-context{display:flex;flex-direction:column;align-items:stretch;gap:6px 18px;margin:8px 24px 16px;padding:12px 16px;border:1px solid var(--line);font-size:13px;background:var(--panel);overflow-wrap:anywhere}
.selection-context .sc-scope{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 18px}
.selection-context .sc-field{display:inline-flex;align-items:baseline;gap:4px;min-width:0}
.selection-context .sc-k{color:#4A5F5A;flex-shrink:0;white-space:nowrap}
.selection-context .sc-v{color:var(--ink);min-width:0}
.selection-context .sc-v.strong{font-weight:600;color:#0B3D33}
.selection-context .sc-change{align-self:flex-end;min-height:44px}
.selection-context .btn{margin-left:auto;min-height:44px}
.visit-dialog{border:1px solid var(--line);border-radius:8px;max-width:min(500px,calc(100vw - 24px));padding:24px;color:var(--ink);font:14px/1.5 "IBM Plex Sans",system-ui,sans-serif}
.visit-dialog::backdrop{background:rgba(12,31,28,.45)}
.visit-dialog form{display:flex;flex-direction:column;gap:14px}
.visit-dialog input{min-height:44px;padding:8px 12px;border:1px solid var(--line);font:inherit;max-width:100%;box-sizing:border-box}
.visit-dialog h2,.visit-dialog p{margin:0}
.visit-actions{display:flex;gap:12px;flex-wrap:wrap}
.visit-actions .btn{min-height:44px}

/* ---------------------------------------------------------------- visual base, 2026-10-02 (agent visual-base)
 * Three surfaces a reader can tell apart: the canvas (--bg), the section card (--panel, a --line edge and the card
 * shadow) and the inner panel (--panel-2, a --line edge, no shadow). Each section opens with a title row (the strip
 * above, in details.section > summary). No control is a bare white shape. The values are in :root at the top. */

/* Vertical rhythm. The Prices tab stacked "Price by strategy" and "Recent trades" with no gap between them (one ended at
 * 1114 px, the next began at 1114 px), so two sections read as one block. Every direct child of the page content now
 * sits --gap-section below the one before it. */
html body .content > :not([hidden]) ~ :not([hidden]) { margin-top: var(--gap-section); }
html body .content > .rec-band { margin-bottom: 0; }

/* Inside a section, block or band, a card, panel or tile is an inner panel: --panel-2. It travels as --card-bg, which
 * .card, .panel and .kpi read, so a card that sets its own background (the dark ones, the amber warning) keeps it. */
details.section, .block, .ov-band { --card-bg: var(--panel-2); }

/* The selection strip under the tabs is a card like the others. */
.selection-context { border-radius: 8px; box-shadow: var(--card-shadow, 0 1px 2px rgba(12, 31, 28, .08)); }

/* A block that stands on the canvas (the fund pages stand every block there) is a section card: a white card whose first
 * row is the title strip, so no block is left bare. A block inside any other box keeps the sub-section look below. */
html body .block:not(:is(details, .panel, .card, aside, .drawer, .xcard, .ov-band, .rec-band, .kpi, .aislot, .dr-sec, .rl-fold, .live-block, .block, .rn-panel, .dd-panel) *) {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--card-shadow, 0 1px 2px rgba(12, 31, 28, .08));
  padding: 16px 18px 18px;
}
html body .block:not(:is(details, .panel, .card, aside, .drawer, .xcard, .ov-band, .rec-band, .kpi, .aislot, .dr-sec, .rl-fold, .live-block, .block, .rn-panel, .dd-panel) *) > h3:first-child {
  display: flex; align-items: center; gap: 8px; margin: -16px -18px 16px; padding: 12px 18px; color: var(--jade-dark);
  background: var(--jade-soft); box-shadow: inset 3px 0 0 var(--jade); border-bottom: 1px solid var(--line); border-radius: 7px 7px 0 0;
}

/* A sub-section inside a card: its capitals title takes a --line rule, and two sub-sections sit 24px apart. */
html body :is(details.section, .panel, .card, .ov-band, .block) .block > h3,
html body :is(details.section, .panel, .card, .ov-band, .block) h3.bt {
  padding-bottom: 8px; margin-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--jade-dark);
}
html body :is(details.section, .panel, .card, .ov-band, .block) .block + .block { margin-top: 24px; }

/* Tables. A numeric column takes the width of its header and its figures and no more, so the slack goes to the text
 * column and a figure sits under its own header (the Prices tab spread three columns across 1118 px, a figure 500 px
 * from its label). A figure, date or id never breaks: Chromium breaks "2026-07-31" after a hyphen whenever wrapping is
 * allowed (tested), so cells stay nowrap unless the builder marks them .wrap, and so do the headers on a wide screen. */
@media (min-width: 1351px) {
  html body .table-wrap table :is(th.r, td.r) { width: 1%; }
  html body .table-wrap thead th, html body .table-wrap thead th .thl { white-space: nowrap; }
}
/* The opened row and its detail band read as one unit: a 3px jade rule down their left edge, a jade-pale line above the band. */
html body .table-wrap tbody tr.open > td:first-child { box-shadow: inset 3px 0 0 var(--jade); }
html body .table-wrap.scrolls tbody tr.open > td:first-child { box-shadow: inset 3px 0 0 var(--jade), inset -1px 0 0 var(--line); }
html body .table-wrap tbody tr.detail > td { background: var(--panel-2); box-shadow: inset 3px 0 0 var(--jade);
  border-top: 1px solid var(--jade-pale); border-bottom: 1px solid var(--line); }
/* The detail grid: one cell per field, a --line rule over each cell, the label (12.5px capitals) over its value (13px). */
html body .detail-grid { gap: 14px 28px; }
html body .detail-grid > div { padding-top: 8px; border-top: 1px solid var(--line); }
html body .detail-grid dt { margin-bottom: 3px; line-height: 1.3; }
html body .detail-grid dd { line-height: 1.45; }

/* Sentences. A prose line holds 45 to 85 characters (70ch of the body face is about 84 average characters), headings
 * balance their lines and a paragraph never ends on a lone word. The recommendation band keeps its full width (one verdict
 * line), and its reasons run in columns (rec-band.css). */
html body :where(h1, h2, h3, h4) { text-wrap: balance; }
html body :where(p, li, dd, blockquote) { text-wrap: pretty; }
html body :where(p.insight, .blurb, .shows) { text-wrap: balance; }   /* a sentence of one or two lines splits at its middle, not at a hyphen */
html body :where(.prose, .blurb, p.insight, .desc dd, .reading dd, ul.plain li, .step p, .shows, .claim .prose) { max-width: 70ch; }

/* A link in a dark table header reads light (--jade-dark on the ink header was 2.64:1). */
html body thead th a { color: var(--signal); }
html body thead th a:hover { color: #fff; }

/* The About this pill (ui.js draws it white) and the other white shapes on a title strip take the control look. */
html body .ab-btn:not(.ab-corner) { background: var(--panel-2); border-color: var(--line-strong); color: var(--ink-2); }
html body .ab-btn:not(.ab-corner):hover, html body .ab-btn[aria-expanded="true"] { background: var(--jade-soft); border-color: var(--jade); color: var(--jade-dark); }

/* Rail width floor (Moses, 2026-10-02): the rail never squeezes below its track width. */
html body .shell > .rail { min-width: 360px; }
@media (min-width: 1351px) and (max-width: 1500px) { html body .shell > .rail { min-width: 236px; } }
@media (max-width: 1350px) { html body .shell > .rail { min-width: 184px; } }

/* The two top-bar panels share one size and one surface (Moses, 2026-10-07): a single rule sets the width, the height
 * and the padding for both ids, so one edit resizes both together. The width fits the longer label with equal padding.
 * Ink fill, darker jade edge, mint icons, quiet top highlight. Hover lifts the edge to mint and lightens the fill.
 * Pressed drops the highlight. Narrow screens keep a 44 px icon target with the label in aria-label and title. */
html body .topbar #sysbtn.topbtn-kpf, html body .topbar #kpfbtn.topbtn-kpf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 168px;
  height: 40px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #0a6b55;
  border-radius: 8px;
  background: #0C1F1C;
  color: #fff;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(12, 31, 28, .28);
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .08s ease;
}
html body .topbar #sysbtn.topbtn-kpf svg, html body .topbar #kpfbtn.topbtn-kpf svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: #35D6A0;
}
html body .topbar #sysbtn.topbtn-kpf .topbtn-label, html body .topbar #kpfbtn.topbtn-kpf .topbtn-label {
  overflow: hidden;
  text-overflow: ellipsis;
}
html body .topbar #sysbtn.topbtn-kpf:hover, html body .topbar #kpfbtn.topbtn-kpf:hover {
  background: #12302B;
  border-color: #35D6A0;
  color: #fff;
}
html body .topbar #sysbtn.topbtn-kpf:focus-visible, html body .topbar #kpfbtn.topbtn-kpf:focus-visible {
  outline: 2px solid #35D6A0;
  outline-offset: 2px;
  color: #fff;
}
html body .topbar #sysbtn.topbtn-kpf:active, html body .topbar #kpfbtn.topbtn-kpf:active {
  background: #0C1F1C;
  border-color: #0a6b55;
  box-shadow: 0 1px 2px rgba(12, 31, 28, .28);
  transform: translateY(1px);
  color: #fff;
}
@media (max-width: 1024px), (pointer: coarse) {
  html body .topbar #sysbtn.topbtn-kpf, html body .topbar #kpfbtn.topbtn-kpf { height: 44px; min-height: 44px; }
}
@media (max-width: 700px) {
  html body .topbar #sysbtn.topbtn-kpf, html body .topbar #kpfbtn.topbtn-kpf {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    gap: 0;
  }
  html body .topbar #sysbtn.topbtn-kpf .topbtn-label, html body .topbar #kpfbtn.topbtn-kpf .topbtn-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html body .topbar #sysbtn.topbtn-kpf, html body .topbar #kpfbtn.topbtn-kpf { transition: none; }
}

/* Reviewer-release P07-P16. One shell control and one compact, readable data surface. */
html body .topbar #system-card-download.topbtn-system-card {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  flex: 0 0 auto; width: 202px; min-width: 202px; height: 40px; min-height: 40px;
  padding: 0 12px; border: 1px solid var(--jade-dark); border-radius: 8px;
  background: var(--ink); color: #fff; text-decoration: none; white-space: nowrap;
  font: 600 13px/1 "IBM Plex Sans", system-ui, sans-serif;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(12,31,28,.28);
}
html body .topbar #system-card-download.topbtn-system-card svg {
  flex: none; width: 16px; height: 16px; color: var(--signal);
}
html body .topbar #system-card-download.topbtn-system-card:hover {
  border-color: var(--signal); background: var(--ink-2); color: #fff;
}
html body .topbar #system-card-download.topbtn-system-card:focus-visible {
  outline: 2px solid var(--signal); outline-offset: 2px;
}
@media (max-width: 1840px) {
  html body .topbar { height: auto; min-height: var(--topbar); flex-wrap: wrap; gap: 8px 10px;
    padding-top: 7px; padding-bottom: 7px; }
  html body .topbar .spacer { flex: 1 0 8px; }
}
@media (pointer: coarse) {
  html body .topbar #system-card-download.topbtn-system-card { min-height: 44px; height: 44px; }
}
@media (max-width: 700px) {
  html body .topbar #system-card-download.topbtn-system-card {
    min-width: 44px; width: 44px; min-height: 44px; height: 44px; padding: 0; gap: 0;
  }
  html body .topbar #system-card-download .topbtn-label { display: none; }
}

/* Shared chart and table section framing. Existing detail controls retain their native semantics. */
html body details.section {
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--card-shadow, 0 1px 2px rgba(12,31,28,.08));
  min-width: 0;
}
html body details.section > summary {
  min-height: 46px; padding: 10px 16px; gap: 8px;
  align-items: center; border-radius: 8px 8px 0 0;
}
html body details.section > .body { min-width: 0; padding: 12px 16px 16px; }
html body details.section > .body > :first-child { margin-top: 0; }
html body details.section > .body > :last-child { margin-bottom: 0; }
html body details.section .sec-tools { flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
html body details.section :is(.chart, .table-wrap, .panel, .block) { min-width: 0; }
/* P09-P10: plot hosts keep the cash-flow card's white face and visible border. */
html body .content .chart:not(.spark) {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; min-width: 0;
}
html body details.section .body > :is(.chart, .table-wrap):first-child { margin-top: 0; }
html body details.section .body > h3.bt + .chart { margin-top: 0; }
html body details.section .body > .table-tools + .table-wrap { margin-top: 0; }

html body .table-tools { gap: 8px; margin-bottom: 6px; min-width: 0; }
html body .table-wrap {
  background: var(--panel); max-width: 100%; min-width: 0; overflow-x: auto;
  overscroll-behavior-inline: contain; scrollbar-width: thin;
}
html body .table-wrap thead th { top: 0; z-index: 2; }
html body .table-wrap tbody tr:not(.detail) > td {
  padding: 6px 10px; vertical-align: middle; line-height: 1.35;
}
html body .table-wrap tbody tr:not(.detail) .clamp {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; max-height: 2.7em; max-width: 44ch;
  white-space: normal; overflow-wrap: break-word; line-height: 1.35;
}
html body .table-wrap tbody tr[tabindex]:focus-visible {
  outline: 2px solid var(--jade); outline-offset: -2px;
}
html body .table-wrap tbody tr[aria-expanded="true"] { outline-offset: -2px; }
/* P14: the source offer table has two-line previews and one keyboard disclosure per record. */
html body .table-wrap[data-table="target-offers"] tbody tr:not(.detail) > td {
  padding: 6px 9px; vertical-align: middle; line-height: 1.35;
}
html body .table-wrap[data-table="target-offers"] tbody tr:not(.detail) .clamp {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  max-height: 2.7em; max-width: 38ch; min-width: 0;
  overflow: hidden; overflow-wrap: break-word; white-space: normal; line-height: 1.35;
}
html body .table-wrap[data-table="target-offers"] .offer-detail-inline {
  display: flex; align-items: flex-start; gap: 7px; min-width: 0;
}
html body .table-wrap[data-table="target-offers"] .offer-detail-inline > .clamp {
  flex: 1 1 auto; min-width: 0;
}
html body .table-wrap[data-table="target-offers"] .offer-detail-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 28px; width: 28px; height: 28px; min-width: 28px;
  border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 0; background: var(--panel-2); color: var(--jade-dark); cursor: pointer;
  font: 600 15px/1 "IBM Plex Sans", sans-serif;
}
html body .table-wrap[data-table="target-offers"] .offer-detail-toggle[aria-expanded="true"] > span {
  transform: rotate(90deg);
}
html body .table-wrap[data-table="target-offers"] .offer-detail-toggle:focus-visible {
  outline: 2px solid var(--jade); outline-offset: 2px;
}
html body #content .block > .inbox-filters { display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 6px; gap: 8px; }
html body #content .block > .inbox-filters .inbox-filter { flex-direction: row; align-items: center; gap: 8px; }
/* Section tools, one owner (Moses, 2026-10-15): the buttons a block carries (Blueprint, Explain, Export, Open, the (i) method button)
 * share one line with the block's title, the title at the left and the buttons at the right end, all buttons on one height and
 * centred on the title. A block too narrow for both wraps the buttons under the title, left aligned; on a phone each button takes
 * 44 px (oneday.css). A row of tools that does not follow the title sits on a row of its own. Pages and builders place no
 * .sec-tools of their own: no other stylesheet positions it. */
html body #content :is(.block, .pf-block) > .sec-tools { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; margin: 0 0 8px !important; min-width: 0; }
html body #content :is(.block, .pf-block) > .sec-tools > .btn { max-width: 100%; flex: 0 1 auto; white-space: normal; }
/* A block whose first child is its title and whose second child is its tools becomes one wrapping row: the title grows, the tools keep their width. */
html body #content :is(.block, .pf-block):has(> :is(h3, .pf-title):first-child + .sec-tools) { display: flex; flex-wrap: wrap; align-items: stretch; }
html body #content :is(.block, .pf-block):has(> :is(h3, .pf-title):first-child + .sec-tools) > * { flex: 0 1 100%; min-width: 0; }
html body #content :is(.block, .pf-block):has(> :is(h3, .pf-title):first-child + .sec-tools) > :is(h3, .pf-title):first-child { flex: 1000 1 20rem; display: flex; align-items: center; gap: 8px; }
html body #content :is(.block, .pf-block):has(> :is(h3, .pf-title):first-child + .sec-tools) > :is(h3, .pf-title):first-child + .sec-tools {
  flex: 1 1 auto; margin: 0 0 12px !important; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
/* A card's own title strip (jade tint, full card width): the tools continue the strip, so the two read as one bar, and a wrapped row stays inside it. */
html body #content :is(.block:not(:is(details, .panel, .card, aside, .drawer, .xcard, .ov-band, .rec-band, .kpi, .aislot, .dr-sec, .rl-fold, .live-block, .block, .rn-panel, .dd-panel) *), .pf-block):has(> :is(h3, .pf-title):first-child + .sec-tools) > :is(h3, .pf-title):first-child {
  margin: -16px -18px 16px; padding: 12px 36px 12px 18px; }
html body #content :is(.block:not(:is(details, .panel, .card, aside, .drawer, .xcard, .ov-band, .rec-band, .kpi, .aislot, .dr-sec, .rl-fold, .live-block, .block, .rn-panel, .dd-panel) *), .pf-block):has(> :is(h3, .pf-title):first-child + .sec-tools) > :is(h3, .pf-title):first-child + .sec-tools {
  margin: -16px -18px 16px !important; padding: 6px 18px; background: var(--jade-soft); border-bottom: 1px solid var(--line); border-radius: 0 7px 0 0; }
/* The expanded row follows the compact preview, keeping every source field on demand. */
html body .table-wrap tbody tr.detail td {
  white-space: normal; padding: 12px 14px; line-height: 1.45;
}
@media (prefers-reduced-motion: reduce) {
  html body .topbar #system-card-download.topbtn-system-card { transition: none; }
}
