@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/space-grotesk-500.woff2?v=f1946fda58ac35e481d76867dbb3037e8eb62176e54254818dbe1d1ad4c9bce7") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/space-grotesk-600.woff2?v=f1946fda58ac35e481d76867dbb3037e8eb62176e54254818dbe1d1ad4c9bce7") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/space-grotesk-700.woff2?v=f1946fda58ac35e481d76867dbb3037e8eb62176e54254818dbe1d1ad4c9bce7") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-400.woff2?v=f1946fda58ac35e481d76867dbb3037e8eb62176e54254818dbe1d1ad4c9bce7") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-500.woff2?v=f1946fda58ac35e481d76867dbb3037e8eb62176e54254818dbe1d1ad4c9bce7") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-600.woff2?v=f1946fda58ac35e481d76867dbb3037e8eb62176e54254818dbe1d1ad4c9bce7") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-400.woff2?v=f1946fda58ac35e481d76867dbb3037e8eb62176e54254818dbe1d1ad4c9bce7") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-500.woff2?v=f1946fda58ac35e481d76867dbb3037e8eb62176e54254818dbe1d1ad4c9bce7") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-mono-600.woff2?v=f1946fda58ac35e481d76867dbb3037e8eb62176e54254818dbe1d1ad4c9bce7") format("woff2"); }
:root {
  color-scheme: dark;
  --page: #101316;
  --side: #0d1013;
  --surface: #171b1e;
  --raised: #1d2226;
  --inset: #121518;
  --line: #262b2f;
  --line-strong: #343b40;
  --ink: #f0eee9;
  --ink-1: #f0eee9;
  --bad: #d5504a;
  --bg: #1d2226;
  --ink-2: #a6adb0;
  --ink-3: #7f8789;
  --ink-th: #8b9395;
  --accent: #5aa9ff;
  --accent-soft: rgba(90, 169, 255, 0.14);
  --accent-ink: #10233c;
  --good: #46c2b0;
  --warn: #e0a45c;
  --warn-soft: rgba(224, 164, 92, 0.14);
  --serious: #e0776b;
  --crit: #d5504a;
  --s1: #5aa9ff;
  --s5: #d5504a;
  --radius: 6px;
  --radius-s: 4px;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, Arial, sans-serif;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
/* The skip link. Off-screen until focused, then a real, visible control — one that appears
   only on focus and is never drawn is the same trap as one that is drawn and cannot act. */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 400;
  padding: 9px 14px; border-radius: var(--radius-s);
  background: var(--accent); color: var(--accent-ink);
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: top 0.12s ease-out;
}
.skip-link:focus { top: 8px; }
.skip-inline {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  top: auto; left: auto; bottom: auto;
}
.skip-inline:focus {
  position: static; width: auto; height: auto; margin: 8px 0 0; padding: 9px 14px;
  overflow: visible; clip-path: none; white-space: normal;
}
@media (prefers-reduced-motion: reduce) { .skip-link { transition: none; } }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--page);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input:where(:not([type="range"])), select { font: inherit; color: var(--ink); background: var(--inset); border: 1px solid var(--line-strong); border-radius: var(--radius-s); padding: 6px 10px; }
input:where(:not([type="range"])):focus, select:focus { border-color: var(--accent); outline: none; }
::selection { background: rgba(90, 169, 255, 0.3); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
a:focus-visible, .nav a:focus-visible, table.data tbody tr:focus-visible,
.checkrow:focus-visible, .presult:focus-visible, .org:focus-visible,
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.shell { display: grid; grid-template-columns: 224px 1fr; min-height: 100vh; }
.side {
  background: var(--side);
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 0; height: 100vh;
}
.side-head { display: flex; align-items: center; gap: 4px; }
.brand { display: flex; align-items: center; gap: 8px; padding: 2px 0; flex: 1; min-width: 0; }
.side-head .brand-mark { width: 30px; height: 30px; }
.side-head .brand-name, .side-head .brand-sub { white-space: nowrap; }
.side-head .brand-sub { letter-spacing: 0.04em; }
.brand-mark {
  width: 36px; height: 36px; flex: none;
}
.brand-name { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand-sub { font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; }

.org-wrap { position: relative; }
.org {
  border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  background: var(--inset); padding: 8px 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.org:hover { border-color: var(--accent); }
.org-name { font-weight: 600; font-size: 13px; }
.org-kind { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.org-caret { color: var(--ink-3); font-size: 11px; }
.org-menu {
  position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px);
  background: var(--raised); border: 1px solid var(--line-strong);
  border-radius: var(--radius-s); overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.org-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; }
.org-menu button:hover { background: rgba(255, 255, 255, 0.05); }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-s);
  color: var(--ink-2); font-weight: 500; font-size: 13.5px;
}
.nav a svg { width: 16px; height: 16px; opacity: 0.75; }
.nav a:hover { background: rgba(255, 255, 255, 0.04); color: var(--ink); }
.nav a.active { background: rgba(90, 169, 255, 0.13); color: var(--accent); }
.nav a.active svg { opacity: 1; }

.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: 11px; color: var(--ink-3); padding: 0 8px; }
.account-state { display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; }
.side-link {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-s);
  color: var(--ink-2); font-size: 12.5px; text-decoration: none; white-space: nowrap;
}
.side-link svg { width: 16px; height: 16px; flex: none; opacity: 0.75; }
.side-link:hover { background: rgba(255, 255, 255, 0.04); color: var(--ink); }
.side-toggle {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px;
  border: 0; border-radius: var(--radius-s); background: none; color: var(--ink-3); cursor: pointer;
}
.side-toggle:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); }

@media (min-width: 761px) {
  .shell.side-collapsed { grid-template-columns: 52px 1fr; }
  .side-collapsed .side { padding: 12px 8px; gap: 12px; align-items: center; }
  .side-collapsed .side-head { flex-direction: column; }
  .side-collapsed .brand, .side-collapsed .org-wrap { display: none; }
  .side-collapsed .side-foot { padding: 0; align-items: center; }
  .side-collapsed .account-state { margin: 0; }
  .side-collapsed .nav a, .side-collapsed .side-link { position: relative; padding: 8px; gap: 0; }
  .side-collapsed .nav-label {
    position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); z-index: 70;
    padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-s);
    background: var(--raised); color: var(--ink); font-size: 12px; white-space: nowrap; pointer-events: none;
    clip-path: inset(50%);
  }
  .side-collapsed .nav a:hover .nav-label, .side-collapsed .nav a:focus-visible .nav-label,
  .side-collapsed .side-link:hover .nav-label, .side-collapsed .side-link:focus-visible .nav-label { clip-path: none; }
}

.main { min-width: 0; display: flex; flex-direction: column; }
.kbd {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 5px;
  margin-left: auto;
}
.btn {
  border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  padding: 6px 12px; font-size: 12.5px; font-weight: 550; color: var(--ink-2);
  background: var(--inset);
}
.btn:hover { border-color: var(--accent); color: var(--ink); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 650; }
.btn.primary:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.view { padding: 22px 24px 60px; max-width: 1320px; width: 100%; margin: 0 auto; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
}
.card h3 { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 11px; }
.card .sub { font-size: 11.5px; color: var(--ink-3); margin-top: -8px; margin-bottom: 12px; }
.card :not(h3):not(:empty) + .sub { margin-top: 4px; }
.grid { display: grid; gap: 12px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.span-2 { grid-column: span 2; }
@media (max-width: 1100px) { .cols-4 { grid-template-columns: 1fr 1fr; } .cols-3 { grid-template-columns: 1fr; } .cols-2 { grid-template-columns: 1fr; } .span-2 { grid-column: span 1; } }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile .label { font-size: 11.5px; color: var(--ink-2); margin-bottom: 6px; }
.tile .value { font-size: 23px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tile .value small { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.tile .delta { font-size: 11.5px; margin-top: 4px; color: var(--ink-3); }
.tile .delta.up { color: var(--good); }
.tile .delta.down { color: var(--s5); }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 650; letter-spacing: 0.04em;
  border-radius: 999px; padding: 2px 9px; text-transform: uppercase;
  border: 1px solid transparent;
}
.chip.ok { background: rgba(70, 194, 176, 0.12); color: #63c98a; }
.chip.breach { background: rgba(213, 80, 74, 0.16); color: #e57d78; }
.chip.info { background: rgba(90, 169, 255, 0.13); color: var(--accent); }
.chip.neutral { background: rgba(255, 255, 255, 0.06); color: var(--ink-2); }
.chip.cls { background: rgba(255, 255, 255, 0.05); color: var(--ink-2); border-color: var(--line); }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th {
  text-align: right; font-size: 11px; font-weight: 600; letter-spacing: 0.065em;
  text-transform: uppercase; color: var(--ink-th); padding: 9px 12px;
  border-bottom: 1px solid var(--line-strong); white-space: nowrap; cursor: default;
  position: sticky; top: 0; background: var(--raised); z-index: 2;
}
table.data th.l, table.data td.l { text-align: left; }
table.data th[title] { cursor: help; }

table.data td {
  padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr { cursor: pointer; }
table.data tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.sym { font-weight: 600; }
.sym .meta { font-weight: 400; color: var(--ink-3); font-size: 11.5px; margin-left: 6px; }
.dim { color: var(--ink-2); }
.dim2 { color: var(--ink-3); }
.pos { color: #63c98a; }
.neg, .yv-detail-metrics dd.neg { color: #e57d78; }
.num-strong { font-weight: 650; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }

.filters input[type="search"] { min-width: 220px; }

.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; }
.chart-scroll { overflow-x: auto; }

/* Pairwise correlation grid (#982). Shade carries magnitude; the NUMBER carries the value,
   so colour is never the sole encoding — the same rule the cause bars follow. */
.corr-grid td, .corr-grid th { text-align: center; font-variant-numeric: tabular-nums; }
.corr-grid .corr-h { font-size: 11px; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.corr-grid .corr-self { color: var(--ink-3); }
.chart .axis text, .chart text.axis { fill: var(--ink-3); font-size: 11px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.chart .gridline { stroke: var(--line); }
.chart .endlabel { fill: var(--ink); font-weight: 600; }
.chart .enddot { stroke: var(--surface); }
.tooltip {
  position: fixed; z-index: 100; pointer-events: none;
  background: var(--raised); border: 1px solid var(--line-strong);
  border-radius: var(--radius-s); padding: 8px 11px; font-size: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  display: none; max-width: 280px;
}
.tooltip .tt-title { font-weight: 600; margin-bottom: 3px; }
.tooltip .tt-row { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-2); }
.tooltip .tt-row b { color: var(--ink); font-variant-numeric: tabular-nums; }

.brow { display: grid; grid-template-columns: 150px 1fr 64px; align-items: center; gap: 10px; margin: 7px 0; font-size: 12.5px; }
.brow .lbl { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .track { height: 12px; background: var(--inset); border-radius: 3px; overflow: hidden; }
.brow .fill { height: 100%; border-radius: 3px 3px 3px 3px; }
.brow .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }

.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11.5px; color: var(--ink-2); margin-top: 10px; }
.legend .key { display: inline-flex; align-items: center; gap: 6px; }
.legend .swatch { width: 10px; height: 10px; border-radius: 3px; }

.inst-top { display: grid; gap: 14px; margin-bottom: 16px; }
.inst-head .back { display: inline-block; color: var(--ink-3); font-size: 12.5px; margin-bottom: 6px; }
.inst-head .back:hover { color: var(--ink); }
.inst-title { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; overflow-wrap: anywhere; }
.inst-sub { color: var(--ink-2); font-size: 13px; margin-top: 8px; display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; }
.inst-bridge { display: flex; align-items: flex-start; padding: 14px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ib-cell { min-width: 0; }
.ib-op { align-self: center; padding: 0 20px; font-size: 22px; line-height: 1; color: var(--ink-3); }
.ib-k { color: var(--ink-2); font-size: 12px; }
.ib-v { font-size: 26px; font-weight: 500; line-height: 1.2; margin-top: 2px; font-variant-numeric: tabular-nums; letter-spacing: -0.6px; }
.ib-s { color: var(--ink-3); font-size: 12px; margin-top: 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ib-net .ib-v { font-size: 30px; font-weight: 500; line-height: 1.05; letter-spacing: -0.9px; }
.inst .inst-est::after { content: "*"; color: var(--ink-3); font-size: .5em; font-weight: 400; vertical-align: super; margin-left: 1px; letter-spacing: 0; }
.inst-foot { margin: 16px 0 0; font-size: 11px; color: var(--ink-3); }
@media (min-width: 701px) {
  .inst-bridge { display: grid; grid-auto-flow: column; grid-template-rows: auto auto auto; justify-content: start; padding: 0; background: none; border: 0; border-radius: 0; }
  .ib-cell { display: grid; grid-row: 1 / span 3; grid-template-rows: subgrid; }
  .ib-op { grid-row: 2; align-self: baseline; font-size: 26px; padding: 0 16px; transform: translateY(-0.05em); }
  .ib-eq { font-size: 34px; }
  .ib-k, .ib-v { align-self: baseline; }
  .ib-s { margin-top: 8px; }
}
@media (min-width: 1200px) {
  .inst-top { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; column-gap: 40px; row-gap: 0; }
  .inst-head, .inst-bridge { grid-row: 1 / span 3; display: grid; grid-template-rows: subgrid; }
  .inst-head > .back, .inst-title { align-self: baseline; }
}
.inst .card h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font: 400 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
.inst #leverPanel h3 { font: 600 14px var(--font); letter-spacing: 0; text-transform: none; color: var(--ink); }
.inst .card h3 .dim2 { font-weight: 400; }
.inst-tag { font: 400 12px var(--font); color: var(--ink-3); letter-spacing: 0; text-transform: none; }
.inst .chip, .inst .legend, .inst .muted, .inst .chip-btn, .inst .tile .delta,
.inst .evidence-source, .inst .footnote, .inst .fine, .inst .brow, .inst-quality .kv { font-size: 12px; }
.inst .ec-compare, .inst .evidence-copy, #instFit .dim { font-size: 13px; }
.inst-quality .kv .v { font-weight: 500; }
.inst .footnote { line-height: 1.55; }
.inst .brow { grid-template-columns: minmax(96px, 160px) minmax(32px, 1fr) 56px; }
.inst .brow .lbl { white-space: normal; }
.inst .ec-compare { background: none; border: 0; padding: 0; margin-top: 14px; }
.inst .ec-compare:empty { display: none; }
.inst #ecTiles { display: block; margin-top: 18px; }
.ec-yield { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.ec-yield .label { font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ec-yield .value { font-size: 30px; font-weight: 500; letter-spacing: -0.9px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.inst .ec-yield .delta { font: 400 11px var(--mono); color: var(--ink-3); }
.ec-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.ec-facts .tile { background: none; border: 0; border-radius: 0; padding: 0; min-width: 0; }
.ec-facts .label { font-size: 12px; color: var(--ink-2); margin: 0; }
.ec-facts .value { margin: 3px 0 0; font-size: 15px; font-weight: 500; letter-spacing: -0.3px; font-variant-numeric: tabular-nums; color: var(--ink); }
.inst .ec-facts .delta { margin: 3px 0 0; font-size: 11px; line-height: 1.45; color: var(--ink-3); }
.inst-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.inst-main, .inst-side { display: grid; gap: 12px; align-content: start; min-width: 0; }
.inst-cols .span-2 { grid-column: auto; }
.inst .brow + .kv { margin-top: 14px; }
.inst-basis { margin-top: 10px; }
.inst-basis summary { color: var(--ink-3); font-size: 12px; cursor: pointer; width: fit-content; }
.inst-basis summary:hover { color: var(--ink-2); }
.inst-basis[open] summary { margin-bottom: 4px; }
.inst-basis .footnote, .inst-basis .evidence-source { margin-top: 6px; border-top: 0; padding-top: 0; }
.inst-basis .basis-calc { margin-top: 6px; font-size: 12px; column-gap: 0; row-gap: 4px; }
.inst-basis .basis-calc .v { padding-left: 14px; }
.inst-basis .basis-calc .k span { display: block; color: var(--ink-3); font-size: 11px; }
.inst-basis .basis-calc .basis-sum { border-top: 1px solid var(--line); padding-top: 4px; color: var(--ink); font-weight: 600; }
.inst-basis .basis-calc.footnote { grid-template-columns: auto 1fr; }
.inst-basis .basis-calc.footnote .v { text-align: left; font-weight: 400; color: var(--ink-2); }
.inst-basis .basis-notes { margin-top: 8px; padding-left: 14px; display: grid; gap: 3px; }
.inst-peers .peer-row { grid-template-columns: minmax(0, 1fr) auto; }
.peer-row .sym { color: var(--ink); font-weight: 600; }
.peer-venue { color: var(--ink-3); font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.peer-row.is-self { background: var(--raised); border-radius: var(--radius-s); padding-left: 8px; padding-right: 8px; }
@media (max-width: 1100px) {
  .inst-cols { grid-template-columns: minmax(0, 1fr); }
  .inst-main, .inst-side { display: contents; }
  .inst-main > *, .inst-side > * { order: 8; }
  #instHistory { order: 1; } .inst-risk { order: 2; } .inst-cost { order: 3; } .inst-quality { order: 4; }
  #instFit { order: 5; } #leverPanel { order: 6; } .inst-peers { order: 7; }
}
@media (max-width: 700px) {
  .inst-title { font-size: 24px; }
  .inst-bridge { flex-direction: column; align-items: stretch; padding: 10px 14px; }
  .ib-op { display: none; }
  .ib-cell { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; padding: 6px 0; }
  .ib-k { grid-area: 1 / 1; }
  .ib-s { grid-area: 2 / 1; }
  .ib-v { grid-area: 1 / 2 / 3 / 3; font-size: 20px; text-align: right; margin-top: 0; }
  .ib-cell[data-op="+"] .ib-v::before { content: "+\2009"; color: var(--ink-3); }
  .ib-cell[data-op="\2212"] .ib-v::before { content: "\2212\2009"; color: var(--ink-3); }
  .ib-net { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line-strong); }
  .ib-net .ib-v { font-size: 28px; }
  .ec-facts { grid-template-columns: minmax(0, 1fr); }
}

.slider-row { display: flex; align-items: center; gap: 14px; margin: 10px 0 16px; }
.slider-row input[type="range"] { flex: 1; accent-color: var(--accent); }
.slider-row:has(#sizeVal) input[type="range"] { min-width:0; }
.size-track { --thumb:16px; --fill:0; position:relative; flex:1; min-width:0; display:flex; align-items:center; }
.size-track input[type="range"] { -webkit-appearance:none; appearance:none; position:relative; z-index:1; width:100%; height:24px; margin:0; background:transparent; cursor:pointer; }
.size-track input[type="range"]::-webkit-slider-runnable-track { height:4px; border-radius:2px; background:linear-gradient(var(--accent),var(--accent)) 0 0 / calc(var(--thumb) / 2 + var(--fill) * (100% - var(--thumb))) 100% no-repeat, var(--line-strong); }
.size-track input[type="range"]::-moz-range-track { height:4px; border-radius:2px; background:var(--line-strong); }
.size-track input[type="range"]::-moz-range-progress { height:4px; border-radius:2px; background:var(--accent); }
.size-track input[type="range"]::-webkit-slider-thumb { -webkit-appearance:none; appearance:none; width:var(--thumb); height:var(--thumb); margin-top:calc((4px - var(--thumb)) / 2); border-radius:50%; background:var(--accent); border:2px solid var(--surface); box-shadow:0 0 0 1px var(--line-strong); }
.size-track input[type="range"]::-moz-range-thumb { width:var(--thumb); height:var(--thumb); border-radius:50%; background:var(--accent); border:2px solid var(--surface); box-shadow:0 0 0 1px var(--line-strong); }
.size-track input[type="range"]:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:2px; }
.size-cap { --at:0; position:absolute; top:50%; left:calc(var(--thumb) / 2 + var(--at) * (100% - var(--thumb))); width:2px; height:14px; border-radius:1px; background:var(--warn); transform:translate(-50%, -50%); pointer-events:none; }
.slider-row .size-fixed { font:700 16px var(--font); font-variant-numeric:tabular-nums; }
.slider-row input.size-val { font:700 16px var(--font); font-variant-numeric:tabular-nums; width:8ch; min-width:0; min-height:44px; flex:0 0 8ch; text-align:right; padding:8px 6px; border:1px solid var(--line-strong); background:transparent; cursor:text; }
.slider-row input.size-val:hover { border-color:var(--line-strong); }
.slider-row input.size-val:focus { flex-basis:12ch; width:12ch; background:var(--inset); border-color:var(--accent); }
.slider-row input.size-val:invalid { border-color:var(--bad); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; font-size: 13px; }
.kv .k { color: var(--ink-2); }
.kv .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.kv .v.muted { color: var(--ink-3); font-weight: 400; }
.hr { border: none; border-top: 1px solid var(--line); margin: 12px 0; }

.protocol-evidence { grid-column: 1 / -1; }
.compact-evidence { padding-top: 13px; padding-bottom: 13px; }
.compact-evidence .evidence-head { margin-bottom: 7px; }
.evidence-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.inst .evidence-head h3 { margin: 0; }
.evidence-head .yv-ev-open { margin-left: auto; }
.evidence-lines { margin: 0; display: grid; }
.evidence-lines > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); column-gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); align-items: baseline; }
.evidence-lines > div:first-child { border-top: 0; padding-top: 0; }
.evidence-lines dt { font-size: 12px; color: var(--ink-2); }
.evidence-lines dd { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink); }
.evidence-lines + .evidence-source { margin-top: 10px; }
@media (max-width: 700px) { .evidence-lines > div { grid-template-columns: minmax(0, 1fr); row-gap: 2px; } }
.evidence-copy { color: var(--ink-2); font-size: 12.5px; line-height: 1.55; overflow-wrap: anywhere; }
.contract-list { list-style: none; display: flex; flex-direction: column; gap: 7px; color: var(--ink-2); font-size: 12px; }
.contract-list li { padding-left: 11px; border-left: 2px solid var(--line-strong); overflow-wrap: anywhere; }
.contract-list strong { color: var(--ink); }
.mono { font-family: var(--mono); font-size: 11px; }
.ext { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(90, 169, 255, 0.35); text-underline-offset: 2px; }
.ext:hover { color: var(--ink); }
.unknown { color: var(--ink-3); font-style: italic; }
.evidence-source { border-top: 1px solid var(--line); padding-top: 10px; color: var(--ink-3); font-size: 11px; overflow-wrap: anywhere; }
.protocol-evidence:not(.compact-evidence) .evidence-source { font: 400 11px var(--mono); }
.evidence-source strong { color: var(--ink-2); }


.checks { display: flex; flex-direction: column; }
.checkrow {
  display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center;
  padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 13px;
}
.checkrow:last-child { border-bottom: none; }
.checkrow .rule { color: var(--ink-2); }
.checkrow .reading { font-variant-numeric: tabular-nums; text-align: right; }
.checkrow.nav-row { cursor: pointer; }
.checkrow.nav-row:hover .rule { color: var(--ink); }

.strat { display: flex; flex-direction: column; gap: 11px; }
.strat .shead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.strat .sname { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.strat .sdesc { color: var(--ink-2); font-size: 13px; }
.strat .slegs { display: flex; gap: 6px; flex-wrap: wrap; }
.strat .syield { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.strat .syield.sm { font-size: 18px; }
.strat .syield small { font-size: 13px; color: var(--ink-2); font-weight: 500; }

.stage-track { margin-top: 2px; padding: 10px 12px; background: var(--inset); border: 1px solid var(--line); border-radius: var(--radius-s); }
.stage-dots { display: flex; align-items: center; }
.stage-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: transparent; border: 1px solid var(--line-strong); }
.stage-dot.st-done { background: var(--accent); border-color: var(--accent); }
.stage-dot.st-active { background: transparent; border: 2px solid var(--accent); }
.stage-dot.st-unknown { border-style: dotted; }
.stage-link { flex: 1; height: 1px; background: var(--line-strong); }
.stage-link.st-done { background: var(--accent); }
.stage-names { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-3); margin-top: 7px; gap: 4px; }
.stage-names span { flex: 1; min-width: 0; overflow-wrap: break-word; text-align: center; font-size: 11px; font-weight: 500; padding: 0; }
.stage-names span:first-child { text-align: left; }
.stage-names span:last-child { text-align: right; }
.stage-names span.st-done { color: var(--ink-2); }
.stage-names span.st-active { color: var(--accent); font-weight: 700; }
.stage-names span.st-unknown { font-style: italic; }
.stage-dot.st-stale { border-color: var(--serious); border-style: dashed; }
.stage-names span.st-stale { color: var(--serious); text-decoration: line-through; }
.stage-dot.st-blocked { border-color: var(--ink-3); position: relative; }
.stage-dot.st-blocked::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 1px; background: var(--ink-3); }
.stage-names span.st-blocked { color: #82898b; text-decoration: line-through; text-decoration-style: dotted; }
.stage-cap { font-size: 11px; color: var(--ink); margin-top: 8px; font-weight: 600; }
.stage-cap .dim2 { font-weight: 400; }
.stage-cap .stage-dot { display: inline-block; vertical-align: middle; margin-right: 6px; }

.strat-foot { display: flex; align-items: flex-end; gap: 20px; margin-top: auto; padding-top: 4px; }
.strat-foot .metric .muted { margin-bottom: 1px; }
.strat-foot .cta { margin-left: auto; }
.strat .pending { font-size: 14px; color: var(--ink-3); font-weight: 500; padding-bottom: 5px; }

/* Saved designs: one card's simulation, price shock and price range (#1260). An open panel
   takes the full row, because the result tables do not fit half of it. */
.strat.strat-wide { grid-column: 1 / -1; }
.saved-analysis { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; min-width: 0; }
.saved-analysis-fields, .saved-analysis-presets, .saved-analysis-run { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.saved-analysis { gap: 16px; }
.saved-analysis-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); min-width: 0; overflow-x: auto; }
.saved-analysis-tab { flex: 0 0 auto; padding: 10px 18px; margin-bottom: -1px; border: 0; border-bottom: 3px solid transparent; background: none;
  color: var(--ink-2); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.saved-analysis-tab:hover { color: var(--ink); }
.saved-analysis-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.saved-analysis-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 520px) { .saved-analysis-tab { flex: 1 1 0; padding: 10px 4px; font-size: 15px; } }
.saved-analysis-panel, .saved-analysis-panel > [role="tabpanel"] { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.saved-analysis-panel .saved-analysis-desc { font-size: 15px; }
.saved-analysis-modes { display: inline-flex; align-self: flex-start; max-width: 100%; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.saved-analysis-mode { flex: 1 1 auto; padding: 6px 14px; border: 0; border-radius: 6px; background: none; color: var(--ink-2); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.saved-analysis-mode:hover { color: var(--ink); }
.saved-analysis-mode[aria-selected="true"] { color: var(--ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.saved-analysis-mode:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.saved-analysis [data-sa-result]:empty { display: none; }
.saved-analysis-prev { padding-top: 12px; border-top: 1px dashed var(--line); }
.saved-analysis-scenario { margin: 0 0 4px; font-size: 15px; color: var(--ink-2); }
.saved-analysis-scenario b { color: var(--ink); font-weight: 600; }
.saved-analysis-bars { margin: 16px 0 4px; display: flex; flex-direction: column; gap: 10px; max-width: 760px; min-width: 0; }
.saved-analysis-bars figcaption { display: flex; flex-direction: column; gap: 2px; }
.saved-analysis-bars-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.saved-analysis-bars-sub { font-size: 13.5px; color: var(--ink-2); }
.saved-analysis-bar-list { display: flex; flex-direction: column; gap: 8px; }
.saved-analysis-bar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(60px, 3fr) auto; align-items: center; gap: 12px; font-size: 13.5px; }
.saved-analysis-bar-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.saved-analysis-bar-track { height: 12px; border-radius: 6px; background: var(--inset); overflow: hidden; }
.saved-analysis-bar-fill { display: block; height: 100%; border-radius: 6px; background: var(--accent); }
.saved-analysis-bar-value { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); min-width: 60px; text-align: right; }
@media (max-width: 520px) { .saved-analysis-bar { grid-template-columns: minmax(0, 1fr) auto; } .saved-analysis-bar-track { grid-column: 1 / -1; grid-row: 2; } }
.saved-analysis-setup { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); min-width: 0; }
.saved-analysis-setup, .saved-analysis-setup :is(.fine, .muted, .saved-analysis-run, label, legend, input, select, .btn, dt, dd) { font-size: 15px; }
.saved-analysis-setup input[type="checkbox"] { width: 16px; height: 16px; }
.saved-analysis-setup .saved-analysis-foot .btn.primary { padding: 10px 22px; }
.saved-analysis-setup .saved-analysis-foot { padding-top: 0; border-top: 0; }
.saved-analysis-presets .btn[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.saved-analysis-fields input[type="number"] { width: 110px; }
.saved-analysis-pct { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
.saved-analysis-pct input[type="number"] { width: 84px; }
.saved-analysis-assets { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; border: 0; min-width: 0; }
.saved-analysis-assets legend { padding: 0; margin-bottom: 6px; width: 100%; }
.saved-analysis-assets label { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; }
.saved-analysis-run { font-size: 12px; color: var(--ink-2); }
.saved-analysis [data-sa-msg]:empty { display: none; }
.saved-analysis-bad { color: var(--crit); }
.saved-analysis .fine, .saved-analysis .muted, .saved-analysis-run,
.saved-analysis .footnote, .saved-analysis .chip, .saved-analysis .legend, .saved-analysis table.data, .saved-analysis table.data th { font-size: 13.5px; }
.saved-analysis-desc { margin: 0; color: var(--ink-2); }
.metric-label, .metric-gloss { color: var(--ink-3); font-size: 13.5px; }
.saved-analysis-more > summary { cursor: pointer; color: var(--ink-2); padding: 4px 0; }
.saved-analysis-more[open] > summary { margin-bottom: 8px; }
.saved-analysis-assumptions, .saved-analysis-editor { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.saved-analysis-editor { border-left: 2px solid var(--line); padding-left: 10px; }
.saved-analysis-editor .tablewrap input:not([type]) { width: 100%; min-width: 120px; }
.saved-analysis-editor .tablewrap select { width: 100%; min-width: 160px; max-width: 320px; }
.saved-analysis-editor .saved-analysis-intro { margin: 10px 0 8px; max-width: 72ch; line-height: 1.5; }
.saved-analysis-settings th[scope="row"] { font-weight: 500; color: var(--ink); white-space: nowrap; text-transform: none; letter-spacing: normal; font-size: 13.5px; }
.saved-analysis-settings .saved-analysis-why { min-width: 260px; white-space: normal; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 640px) {
  .saved-analysis-settings thead { display: none; }
  .saved-analysis-settings tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; }
  .saved-analysis-settings th[scope="row"] { white-space: normal; }
  .saved-analysis-settings td input[type="number"] { width: 88px; }
  .saved-analysis-settings .saved-analysis-why { grid-column: 1 / -1; min-width: 0; padding-top: 0; }
}
.saved-analysis-editor label, .saved-analysis-assumptions > .saved-analysis-fields label { display: inline-flex; align-items: center; gap: 6px; }
.saved-analysis-assumptions > .saved-analysis-fields label { min-width: 0; max-width: 100%; }
.saved-analysis-assumptions select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
.saved-analysis-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.saved-analysis-runwith { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.saved-analysis-runwith > div { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 16px; row-gap: 4px; }
.saved-analysis-runwith dt { min-width: 140px; color: var(--ink-2); }
.saved-analysis [data-sa-result] .strat-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 12px 0; }
.saved-analysis [data-sa-result] .metric { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.saved-analysis [data-sa-result] .metric .syield { order: -1; font-size: 26px; font-weight: 700; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.saved-analysis [data-sa-result] .metric-label { font-size: 15px; color: var(--ink); }
.saved-analysis-more > summary { font-size: 15px; color: var(--ink); padding: 6px 0; }
.saved-analysis-runwith dd { margin: 0; min-width: 0; }
.saved-analysis .saved-analysis-link { display: inline; min-height: 0; padding: 0; border: 0; border-radius: 3px; background: none; font: inherit;
  color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.saved-analysis .saved-analysis-link:hover:not(:disabled) { background: none; border: 0; color: var(--accent); text-decoration-thickness: 2px; }
.saved-analysis-modal { margin: auto; box-sizing: border-box; width: min(420px, calc(100vw - 32px)); max-height: 85vh; overflow: auto;
  padding: 16px 20px 20px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink);
  font: inherit; box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.saved-analysis-modal.is-wide { width: min(760px, calc(100vw - 32px)); }
.saved-analysis-modal[data-sa-modal="ov"] { width: min(1100px, calc(100vw - 32px)); }
.saved-analysis-editor input[data-sa-ov-row="edges"][data-f="weight"] { width: 88px; }
.saved-analysis-modal::backdrop { background: rgba(8,10,12,.6); }
.saved-analysis-modal > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.saved-analysis-modal > header h2 { margin: 0; font-size: 16px; }
.saved-analysis-json { width: 100%; min-height: 200px; box-sizing: border-box; background: var(--inset); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-s); font-family: var(--mono); font-size: 12px; padding: 8px; }
.saved-analysis [data-sa-ov-status]:empty { display: none; }
.saved-analysis-history { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; min-width: 0; }
.saved-analysis-history h4 { margin: 0; }
.saved-analysis-history > details[open] { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.saved-analysis [data-sa-history]:empty { display: none; }
.saved-analysis-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--ink-2); }
.saved-analysis-legend span, .saved-analysis-history td { align-items: center; }
.saved-analysis-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; box-shadow: 0 0 0 2px var(--surface); }
.saved-analysis-history .tablewrap { max-height: 320px; overflow-y: auto; }
.saved-analysis .tablewrap { overflow-x: auto; }
.saved-analysis [data-sa-result] svg { max-width: 720px; }
.saved-analysis-book { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; min-width: 0; }
.saved-analysis-book h4 { margin: 0; }
.saved-analysis-verdict { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; }
.saved-analysis-verdict dt { font-size: 13.5px; color: var(--ink-2); }
.saved-analysis-verdict dd { margin: 0; font-variant-numeric: tabular-nums; }
.saved-analysis-unpriced { margin: 0; padding-left: 18px; }
.saved-analysis-preset select { margin-left: 6px; max-width: 100%; }
.saved-analysis-mandate { border-collapse: collapse; width: 100%; max-width: 720px; font-size: 13.5px; }
.saved-analysis-mandate th, .saved-analysis-mandate td { text-align: left; padding: 4px 8px 4px 0; border-top: 1px solid var(--line); vertical-align: top; font-weight: normal; }
.saved-analysis-mandate td:last-child { white-space: nowrap; }
.saved-analysis-mandate tr[data-mandate-ok="false"] td:last-child { color: var(--crit); }
.saved-analysis-mandate tr[data-mandate-ok="null"] td:last-child, .saved-analysis-mandate tr[data-mandate-ok="withheld"] td:last-child { color: var(--ink-2); }

.hero-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin: 14px 0 12px;
}
.hero-row .htile { background: var(--surface); padding: 15px 18px 16px; min-width: 0; }
.hero-row .htile.lead { background: linear-gradient(180deg, rgba(90, 169, 255, 0.06), rgba(90, 169, 255, 0)); }
.hero-row .label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.hero-row .label .dim2 { font-weight: 400; letter-spacing: 0.02em; text-transform: none; }
.hero-row .value {
  font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.12;
  font-variant-numeric: tabular-nums; margin-top: 9px; white-space: nowrap;
}
.hero-row .htile.lead .value { font-size: 40px; }
.hero-row .value.small { font-size: 19px; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; }
.hero-row .value .chip { vertical-align: middle; }
/* two lines, then the rest is on hover — the row stays a row, never a paragraph */
.hero-row .sub {
  font-size: 11.5px; color: var(--ink-3); margin-top: 7px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 760px), (hover: none) {
  .hero-row .sub { display: block; -webkit-line-clamp: none; overflow: visible; }
}
@keyframes valpulse { 0% { opacity: 0.25; transform: translateY(-3px); } 70% { opacity: 1; } 100% { transform: none; } }
.hero-row .htile.chg .value { animation: valpulse 0.42s cubic-bezier(0.2, 0.75, 0.3, 1); }
@media (max-width: 1100px) { .hero-row .htile.lead .value { font-size: 32px; } }
@media (prefers-reduced-motion: reduce) { .hero-row .htile.chg .value { animation: none; } }

h3 .hnote { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-3); font-size: 11.5px; }

.capmk { margin-left: 7px; font-size: 11px; font-weight: 550; color: var(--warn); cursor: help; border-bottom: 1px dotted rgba(224, 164, 92, 0.5); }
.warnink { color: var(--warn); }

/* fine print — the whisper tier: one short line per section, never a paragraph */
.fine { color: var(--ink-3); font-size: 11px; line-height: 1.5; margin-top: 9px; }
.lnk { color: var(--ink-2); font-size: inherit; padding: 0; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-strong); }
.lnk:hover { color: var(--accent); }


.btn.quiet { background: none; border-color: var(--line); color: var(--ink-3); font-weight: 500; }
.btn.needs-apply { border-color: var(--warn); color: var(--warn); background: var(--warn-soft); }
.btn.quiet:hover { border-color: var(--line-strong); color: var(--ink-2); }

.palette-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 200; display: grid; place-items: start center; padding-top: 12vh; }
.palette {
  width: min(560px, 92vw); background: var(--raised); border: 1px solid var(--line-strong);
  border-radius: 12px; overflow: hidden; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}
.palette input { width: 100%; border: none; background: none; padding: 14px 16px; font-size: 15px; border-bottom: 1px solid var(--line); border-radius: 0; }
.palette .results { max-height: 320px; overflow-y: auto; }
.palette .pnotices:empty { display: none; }
.palette .presult { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; font-size: 13.5px; }
.palette .presult:hover, .palette .presult.sel { background: rgba(90, 169, 255, 0.10); }
.palette .presult .pk { color: var(--ink-3); font-size: 11px; margin-left: auto; }

.pnotice { padding: 10px 14px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.pnotice.ok { color: var(--ink-2); border-left: 3px solid var(--accent); }
.pnotice.warn { color: var(--warn); border-left: 3px solid var(--warn); }
.pnotice.info { color: var(--ink-2); border-left: 3px solid var(--s1); padding-bottom: 6px; }
.pnotice strong { color: var(--ink); }
.pnotice .pn2 { color: var(--ink-3); font-size: 11.5px; margin-top: 3px; }

.size-presets { display: flex; align-items: center; gap: 6px; margin: -6px 0 14px; flex-wrap: wrap; }
.chip-btn { border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 11px; font-size: 11.5px; color: var(--ink-2); background: var(--inset); }
.chip-btn:hover { border-color: var(--accent); color: var(--ink); }
.chip-btn.active { background: rgba(90, 169, 255, 0.15); color: var(--accent); border-color: transparent; }
.ec-compare { font-size: 12px; color: var(--ink-2); margin-top: 12px; padding: 10px 12px; background: var(--inset); border-radius: var(--radius-s); border: 1px solid var(--line); }
.ec-compare b { color: var(--ink); font-variant-numeric: tabular-nums; }

.chip-btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
#leverPanel[aria-busy="true"] #leverTiles { opacity: 0.55; transition: opacity 0.15s; }
#leverRange:disabled { opacity: 0.5; }
#leverPanel { align-self: start; }

.muted { color: var(--ink-3); font-size: 11.5px; }
.footnote { color: var(--ink-3); font-size: 11px; margin-top: 10px; line-height: 1.5; }
.pagehead { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.pagehead h2 { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.pagehead .sub { color: var(--ink-2); font-size: 13px; }
.pagehead .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side {
    position: static; height: auto; display: grid; gap: 8px 16px; align-items: center; padding: 10px 14px;
    border-right: none; border-bottom: 1px solid var(--line);
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "head org account" "nav nav nav";
  }
  .side-toggle { display: none; }
  .side-head { grid-area: head; }
  .side > .org-wrap { grid-area: org; justify-self: start; min-width: 0; max-width: 100%; }
  .nav { grid-area: nav; min-width: 0; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; }
  .side-foot { display: contents; }
  .account-state { grid-area: account; flex-direction: row; margin: 0; }
  .side-link:not([hidden]) { min-height: 40px; }
  .view { padding: 16px 14px 60px; }
}
@media (max-width: 700px) {
  .side { gap: 8px 12px; }
  .brand { padding: 0; gap: 8px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 14px; }
  .org { min-height: 44px; padding: 5px 10px; }
  .org-name, .org-kind { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav { gap: 4px; }
  .nav a { flex: none; min-height: 40px; padding: 8px 12px; white-space: nowrap; }
  .universe-load { padding: 5px 14px; }
  .side-link:not([hidden]) { min-height: 40px; }
  .btn, .chip-btn { min-height: 40px; }
  input:not([type="checkbox"]), select { min-height: 40px; }
  .view { padding: 14px 12px 48px; }
  table.data th, table.data td { padding: 11px 10px; }
  .hero-row { grid-template-columns: minmax(0, 1fr); }
  .filters input[type="search"] { flex: 1 1 100%; min-width: 0; }
  .brow { grid-template-columns: 110px 1fr 56px; }
  .org > div { min-width: 0; }
  .designer-advanced .filters label { flex: 1 1 100%; min-width: 0; }
  .designer-advanced .filters select, .designer-advanced .filters input { width: 100% !important; max-width: 100%; min-width: 0; }
  .designer-advanced .filters .btn { flex: 1 1 100%; }
  button.flow-remove { width: 40px; height: 40px; }
  .mini-help::before { content: ""; position: absolute; inset: -12px; }
}
@media (max-width: 520px) {
  .side {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "head account" "org org" "nav nav";
  }
  .org-wrap, .org, .nav { width: 100%; }
  #inviteLink .nav-label, #signersLink .nav-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .side-head, .brand > div { min-width: 0; }
  .side-head .brand-name { overflow: hidden; text-overflow: ellipsis; }
}
@page { margin: 14mm 12mm; }
@media print {
  :root {
    color-scheme: light;
    --page: #fff; --side: #fff; --surface: #fff; --raised: #fff; --inset: #fff;
    --line: #d7dbe2; --line-strong: #c2c8d2;
    --ink: #111418; --ink-2: #3a4250; --ink-3: #6b7280;
    --ink-th: #6b7280;
    --accent: #14539e; --accent-soft: #e8f0fb; --accent-ink: #ffffff;
    --good: #0f6f62; --warn: #8a5210; --warn-soft: #fbf1e4;
    --serious: #a3372a; --crit: #a3170f;
    --ink-1: #111418; --bad: #a3170f; --bg: #ffffff;
    --s1: #14539e; --s5: #a3170f;
  }
  .btn, .chip-btn, [role="button"], .flow-remove, .flow-equal,
  input[type="range"], input[type="checkbox"], input[type="radio"], select, textarea,
  .side, .filters .btn { display: none !important; }
  .discover, #dMarketPicker { display: none !important; }
  .mini-help, .src-caret, .org-caret { display: none !important; }
  .canvas-controls { display: none !important; }
  button { border: 0 !important; background: none !important; padding: 0 !important;
    color: inherit !important; font: inherit !important; text-align: left; }
  input { border: 0 !important; background: none !important; padding: 0 !important;
    color: var(--ink) !important; font: inherit !important; width: auto !important;
    appearance: textfield; -moz-appearance: textfield; }
  input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { display: none !important; }
  summary { display: block !important; list-style: none; font-weight: 650; }
  summary::marker, summary::-webkit-details-marker { content: none !important; display: none !important; }
  details::details-content { content-visibility: visible !important; }
  details > *:not(summary) { display: revert !important; }
  .chip { background: #f1f3f7 !important; border: 1px solid var(--line); color: var(--ink) !important; }
  .chip.ok { background: #e7f4f1 !important; color: var(--good) !important; }
  .chip.breach { background: #fbeceb !important; color: var(--crit) !important; }
  .chip.info { background: var(--accent-soft) !important; color: var(--accent) !important; }
  .chip.neutral, .chip.cls { background: #f1f3f7 !important; color: var(--ink-2) !important; }
  .pos { color: var(--good) !important; }
  .neg { color: var(--crit) !important; }
  .card, .tile, .tablewrap, .strat, .stage-track, .deploy-note, tr { break-inside: avoid; }
  thead { display: table-header-group; }
  body { background: #fff; color: #111; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .shell { grid-template-columns: 1fr; }
  .view { max-width: 100%; padding: 0; }
  .card, .tile, .tablewrap { border-color: #d7dbe2 !important; background: #fff !important; break-inside: avoid; box-shadow: none; }
  .grid, .tiles { gap: 10px; }
  .chart .gridline { stroke: #e2e6ec; }
  .chart .endlabel { fill: #111418; }
  .chart .enddot { stroke: #fff; }
  .chart .axis text, .chart text.axis { fill: #6b7280; }
  a[href^="#/"] { color: inherit; }
  h2, h3 { break-after: avoid; }
  .inst-basis > * { display: block !important; }
  .inst-basis summary { display: none !important; }
  .protocol-evidence .yv-ev-open { display: none !important; }
}

.org-connect { border-top: 1px solid var(--line); }
.org-row { display: flex; align-items: stretch; }
.org-menu .org-row [data-book] { flex: 1; min-width: 0; }
.org-menu .org-disconnect { width: auto; flex: none; padding: 10px; font-size: 12px; color: var(--ink-3); }
.org-menu .org-disconnect:hover, .org-menu .org-disconnect:focus-visible { color: var(--serious); }
.org-connect .org-name { color: var(--accent); }
.stale { color: var(--warn); }

[aria-disabled="true"] { opacity: 0.42; filter: grayscale(0.6); cursor: not-allowed; }
.shell[data-shell="loading"] [aria-disabled="true"]:not(#navConsole) { opacity: 0.72; filter: none; }
/* boot.js's stand-in for the wallet box: shown only while the real one is hidden, never degraded */
.org-ghost { display: none; }
.org[hidden] + .org-ghost { display: flex; }
.shell[data-shell="degraded"] .org-ghost { display: none; }
.org-ghost[aria-busy="true"], .start-doors[data-prepaint] [aria-busy="true"] { cursor: progress; }
.nav a[aria-disabled="true"]:hover { background: none; color: var(--ink-2); }
.org[aria-disabled="true"]:hover { border-color: var(--line-strong); }

.shell[data-shell="degraded"] [aria-disabled="true"] {
  opacity: 1; filter: grayscale(1); color: var(--ink-th);
}
/* The children set their own colour, so the inherited one above never reaches them. */
.shell[data-shell="degraded"] .brand-name,
.shell[data-shell="degraded"] .brand-sub,
.shell[data-shell="degraded"] .org-name,
.shell[data-shell="degraded"] .org-kind,
.shell[data-shell="degraded"] .org-caret,
.shell[data-shell="degraded"] .nav a[aria-disabled="true"] { color: var(--ink-th); }

.boot-fail { max-width: 640px; margin: 48px auto; }
.boot-fail h3 { margin: 0 0 8px; }
.boot-fail-lede { color: var(--ink-2); margin: 0 0 10px; line-height: 1.5; }
.boot-fail-note { color: var(--ink-3); font-size: 12px; margin: 0 0 6px; line-height: 1.5; }
.boot-fail-act { margin: 14px 0 0; }
.boot-wait { max-width: 640px; margin: 48px auto; }
.boot-wait h3 { margin: 0 0 8px; }
.universe-load { padding: 6px 24px; font-size: 12px; color: var(--ink-2); background: var(--surface); border-bottom: 1px solid var(--line); }
.universe-load[hidden] { display: none; }
.seed-note {
  margin-top: 10px; border: 1px solid rgba(224, 164, 92, 0.45); border-radius: var(--radius-s);
  background: rgba(224, 164, 92, 0.10); color: var(--warn);
  padding: 9px 13px; font-size: 12px; line-height: 1.45;
}

.designer-shell {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden;
}
.designer-intro {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 20px;
}
.designer-intro h2 { font-size: 20px; line-height: 1.15; letter-spacing: -0.025em; }

.deploy-note {
  margin-top: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5;
  border: 1px solid var(--line); border-left: 3px solid var(--ink-3); border-radius: 8px;
  background: var(--inset); color: var(--ink);
}
.deploy-note.ok { border-left-color: var(--good); }
.deploy-note.warn { border-left-color: var(--serious); }
.deploy-note .chip { margin-right: 6px; vertical-align: baseline; }
.deploy-needs { list-style: none; margin: 7px 0 0; display: grid; gap: 4px; }
.deploy-needs li { font-size: 12px; color: var(--ink-2); padding-left: 12px; position: relative; }
.deploy-needs li::before { content: "→"; position: absolute; left: 0; color: var(--ink-3); }
.deploy-detail { margin-top: 6px; font-size: 11.5px; line-height: 1.45; color: var(--ink-3); }
.deploy-note.compact { margin-top: 8px; padding: 7px 10px; font-size: 12px; }
.deploy-note.compact .deploy-needs { margin-top: 5px; }

.cap-list { list-style: none; margin-top: 12px; display: grid; gap: 7px; }
.cap-list li {
  font-size: 12.5px; line-height: 1.5; color: var(--ink);
  padding: 9px 12px; border-radius: 8px; background: var(--inset); border: 1px solid var(--line);
}
.cap-list li { display: grid; grid-template-columns: 74px 1fr; gap: 8px; align-items: baseline; }
.cap-k { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.cap-today .sub strong { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .cap-list li { grid-template-columns: 1fr; gap: 2px; }
}

.strategy-flow {
  position: relative; min-height: 298px; padding: 24px;
  background: var(--inset); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.canvas-viewport { overflow-x: auto; overflow-y: hidden; touch-action: pan-x pan-y; -webkit-user-select: none; user-select: none; scrollbar-width: thin; }
.canvas-viewport::-webkit-scrollbar { height: 8px; }
.canvas-viewport::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.canvas-viewport::-webkit-scrollbar-track { background: transparent; }
.canvas-viewport input, .canvas-viewport textarea { -webkit-user-select: auto; user-select: auto; }
.canvas-world {
  position: relative; display: grid;
  grid-template-columns: 170px minmax(340px, 1fr) 190px;
  align-items: center; gap: 86px; min-height: 250px; padding-bottom: 32px;
  transform-origin: 0 0; will-change: transform;
}
.canvas-world > [data-canvas-node] { cursor: grab; }
.canvas-viewport:active { cursor: grabbing; }

.canvas-viewport > .flow-section-head {
  position: absolute; left: 24px; right: 170px; top: 15px; z-index: 3;
  margin: 0; pointer-events: none;
}
.canvas-viewport > .flow-section-head .flow-equal { pointer-events: auto; }
.canvas-controls { position: absolute; right: 10px; top: 10px; z-index: 3; display: flex; gap: 6px; }
.canvas-controls button {
  padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  color: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums;
}
.canvas-controls button:hover { color: var(--ink); border-color: var(--line-strong); }
@media (max-width: 760px), print {
  .canvas-world { display: contents; }
  [data-canvas-node] { transform: none !important; cursor: default; }
  .canvas-controls { display: none; }
  /* Both axes, not just overflow-x: a computed `visible` on one axis becomes `auto` while
     the other is `hidden`, which would leave a scroll container around a stacked list. */
  .canvas-viewport { overflow: visible; touch-action: auto; }
}
@media (min-width: 761px) and (max-width: 1180px) {
  .canvas-world { grid-template-columns: 148px minmax(300px, 1fr) 168px; gap: 34px; }
  .flow-node { padding: 14px; }
  .flow-node strong { font-size: 26px; }
  .flow-leg-link span { max-width: 168px; }
}

.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.flow-lines path { fill: none; stroke: rgba(90, 169, 255, 0.5); stroke-width: 2px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.flow-lines marker path { fill: var(--accent); stroke: none; }
.flow-node, .flow-routes { position: relative; z-index: 2; }
.flow-node {
  min-height: 116px; display: flex; flex-direction: column; justify-content: center;
  padding: 17px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface);
}
.flow-node strong { display: block; margin: 4px 0 1px; font-size: 31px; line-height: 1.1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.flow-node span:not(.flow-eyebrow) { color: var(--ink-2); font-size: 11.5px; }
.flow-node em { margin-top: 13px; color: var(--ink-3); font-size: 11px; font-style: normal; }
button.flow-source { font: inherit; color: inherit; text-align: left; width: auto; }
button.flow-source:hover, button.flow-source[aria-expanded="true"] { border-color: var(--accent); }
.src-caret {
  width: 14px; height: 14px; margin-left: 9px;
  stroke: var(--accent); stroke-width: 2.4; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: 3px; transition: transform 120ms ease;
}
button.flow-source:hover .src-caret { transform: translateY(1px); }
button.flow-source[aria-expanded="true"] .src-caret { transform: rotate(180deg); }
.asset-menu {
  position: fixed; z-index: 70;
  background: var(--raised); border: 1px solid var(--line-strong);
  border-radius: var(--radius-s); overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.asset-menu button { display: block; width: 100%; text-align: left; padding: 9px 13px; font-size: 12.5px; }
.asset-menu button strong { display: block; font-size: 13.5px; letter-spacing: -0.01em; }
.asset-menu button span { color: var(--ink-3); font-size: 11px; }
.asset-menu button:hover { background: rgba(255, 255, 255, 0.05); }
.asset-menu button.on { background: rgba(90, 169, 255, 0.13); }
.asset-menu button.on strong { color: var(--accent); }
.flow-eyebrow, .flow-section-label {
  color: var(--ink-3); font-size: 11px; font-weight: 650; letter-spacing: 0.075em; text-transform: uppercase;
}
.flow-section-head { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 11px; margin: 0 2px 7px; }
.flow-equal { color: var(--accent); font-size: 11px; white-space: nowrap; }
.flow-equal:hover { color: var(--ink); }
.flow-equal:disabled { color: var(--ink-3); cursor: not-allowed; }
.flow-balance {
  min-width: 0; color: var(--ink-2); font-size: 11px; font-variant-numeric: tabular-nums;
  text-align: right; white-space: nowrap;
}
.flow-leg {
  --leg-weight: 20%; position: relative; min-height: 68px; margin: 7px 0; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
}
.flow-leg::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px;
  width: var(--leg-weight); max-width: 100%; background: var(--accent); border-radius: 0 2px 2px 7px;
}
.flow-leg-top { display: flex; align-items: center; gap: 12px; }
.flow-leg-link { min-width: 0; text-align: left; }
.flow-leg-link:hover strong { color: var(--accent); }
.flow-leg-top strong { display: block; font-size: 13px; line-height: 1.2; }
.flow-leg-link span { display: block; max-width: 210px; margin-top: 2px; color: var(--ink-3); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-leg-top > b { margin-left: auto; font-size: 13px; font-variant-numeric: tabular-nums; }
.flow-remove {
  width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto;
  border-radius: 5px; color: var(--ink-3); font-size: 16px; line-height: 1;
}
.flow-remove:hover { color: var(--ink); background: var(--inset); }
.flow-remove:disabled { visibility: hidden; }
.flow-leg-controls { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin-top: 8px; }
.flow-weight-range { width: 100%; height: 3px; padding: 0; border: 0; border-radius: 2px; accent-color: var(--accent); cursor: pointer; }
.flow-leg-controls label { display: flex; align-items: center; gap: 3px; color: var(--ink-3); font-size: 11px; }
.flow-weight-num {
  width: 54px; padding: 3px 6px; border: 1px solid var(--line); background: var(--inset); text-align: right;
  font-size: 11px; font-variant-numeric: tabular-nums; appearance: textfield; -moz-appearance: textfield; cursor: text;
}
.flow-weight-num:hover { border-color: var(--line-strong); }
.flow-weight-num::-webkit-inner-spin-button, .flow-weight-num::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.flow-empty { padding: 28px 14px; border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--ink-3); text-align: center; }
.flow-empty-head { color: var(--ink-2); margin-bottom: 10px; }
.why-empty { list-style: none; margin: 0 auto; padding: 0; max-width: 620px; text-align: left; font-size: 12px; }
.why-empty li { padding: 4px 0 4px 12px; border-left: 2px solid var(--line-strong); margin-bottom: 4px; color: var(--ink-3); }
.why-empty li b { color: var(--ink-2); font-weight: 600; }
.why-empty-note { max-width: 620px; margin: 8px auto 0; text-align: left; font-size: 11px; color: var(--ink-3); opacity: .85; }
.market-empty .why-empty { font-size: 11px; margin-top: 8px; }
.why-empty-act { max-width: 620px; margin: 12px auto 0; text-align: left; }
/* A caveat that changes what every number below it means sits WITH those numbers, amber,
   never folded into a disclosure. */
.waive-note { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--warn);
  background: var(--warn-soft); border-radius: 4px; font-size: 12px; color: var(--ink-2); }
.waive-note b { color: var(--ink-1); }
.why-empty-act .btn { width: 100%; }
/* A disabled control must not read as the brightest affordance on the page. */
.btn[disabled], .btn[disabled]:hover { opacity: .38; filter: grayscale(.65); cursor: not-allowed; }
.flow-section-label em { margin-left: 6px; color: var(--ink-3); font-weight: 500; letter-spacing: 0; text-transform: none; font-style: normal; font-variant-numeric: tabular-nums; }

.designer-shell .btn.primary { background: var(--accent); color: var(--accent-ink); }
.designer-shell :focus-visible { outline-color: var(--accent); }
.designer-shell input:focus, .designer-shell select:focus { border-color: var(--accent); }
.tooltip .tt-copy { color: var(--ink-2); line-height: 1.4; }
.ss-hover { cursor: help; }
.mini-help {
  position: relative;
  display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 3px;
  border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink-3);
  font-size: 11px; font-weight: 700; line-height: 1; cursor: help; vertical-align: -2px;
}
.mini-help::after { content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; transform: translate(-50%, -50%); }
.designer-shell .mini-help:hover, .designer-shell .mini-help:focus { color: var(--accent); border-color: var(--accent); }

.designer-actions {
  display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px;
  padding: 12px 16px; border-top: 1px solid var(--line);
}
.designer-actions .btn { flex: none; white-space: nowrap; }
.designer-actions #dMsg { flex: 1 1 100%; min-width: 0; text-align: right; }
.designer-actions #dMsg:empty { display: none; }
/* The market list is the designer's primary surface: beside the strategy from 1180px up,
   stacked above the routes below that, never behind a toggle (smart-trade#453). */
.designer-work { display: grid; grid-template-columns: minmax(0, 1fr); }
.discover { display: flex; flex-direction: column; min-width: 0; border-top: 1px solid var(--line); background: var(--surface); }
.discover-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px 0; }
.discover-presets { flex: 1 1 100%; min-width: 0; }
.mandate-preset-bar { display: flex; align-items: center; gap: 7px; min-width: 0; flex-wrap: wrap; }
.mandate-select { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--ink-3); font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.mandate-select select { min-width: 112px; max-width: 190px; min-height: 40px; padding: 4px 24px 4px 7px; color: var(--ink); font-size: 12px; text-transform: none; letter-spacing: 0; }
.mandate-preset-chips { display: flex; gap: 4px; min-width: 0; flex: 1 1 220px; flex-wrap: wrap; }
.mandate-chip { max-width: 190px; padding: 3px 7px; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: var(--inset); font-size: 11.5px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.mandate-preset-actions { display: flex; align-items: center; gap: 8px; }
.mandate-preset-actions .lnk { min-height: 40px; }
.lnk.danger { color: var(--bad); }
.mandate-preset-note { margin-top: 5px; color: var(--ink-3); font-size: 11.5px; }
.mandate-preset-note.bad, .mandate-unknown { color: var(--bad); }
.mandate-preset-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; padding: 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--inset); }
.mandate-preset-form[hidden] { display: none; }
.mandate-preset-form > label { display: grid; align-content: start; gap: 4px; min-width: 0; color: var(--ink-2); font-size: 11.5px; }
.mandate-preset-form input, .mandate-preset-form select { width: 100%; min-width: 0; min-height: 40px; font-size: 12px; }
.mandate-preset-form fieldset { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 0; border: 0; }
.mandate-preset-form legend { margin-bottom: 5px; color: var(--ink-2); font-size: 11.5px; }
.mandate-chain-list { display: flex; gap: 5px 10px; min-width: 0; flex-wrap: wrap; }
.mandate-chain-list label { display: flex; align-items: center; gap: 4px; min-height: 40px; color: var(--ink-2); font-size: 11.5px; }
.mandate-chain-list input { width: 15px; min-height: 15px; }
.mandate-form-actions { grid-column: 1 / -1; display: flex; gap: 7px; }
.market-recency { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; padding: 9px 16px 0; }
.market-recency-switch { display: inline-flex; min-width: 0; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: var(--inset); }
.market-recency-switch button { min-height: 30px; padding: 4px 8px; border: 0; border-radius: 5px; color: var(--ink-3); background: transparent; font-size: 11px; white-space: nowrap; }
.market-recency-switch button.on { color: var(--ink); background: var(--raised); box-shadow: 0 0 0 1px var(--line-strong); }
.market-recency-switch button:disabled { cursor: not-allowed; opacity: .65; }
.market-recency-dates { min-width: 14ch; flex: 1; color: var(--ink-3); font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.market-recency-dates time { display: block; }
.market-recency-dates time > span { color: var(--ink-2); font-weight: 600; }
.market-recency-dates i { display: none; }
.market-added, .market-removed { display: inline-block; margin-left: 6px; padding: 1px 5px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 999px; color: var(--accent); background: var(--accent-soft); font-size: 11px; font-style: normal; font-weight: 600; line-height: 1.3; text-transform: uppercase; letter-spacing: .04em; vertical-align: 1px; }
.market-removed { color: var(--ink-2); border-color: var(--line-strong); background: var(--raised); }
.market-name-static { cursor: default; }
.market-name-static:hover strong { color: var(--ink); }
.market-prior-only { grid-area: btn; color: var(--ink-3); font-size: 11px; line-height: 1.3; text-align: right; }
.market-full-id { display: block; margin-top: 3px; color: var(--ink-3); font: 11px/1.35 var(--mono); overflow-wrap: anywhere; word-break: break-word; }
.market-removed-row { box-shadow: inset 2px 0 0 var(--line-strong); }
.discover-filters { padding: 10px 16px 0; }
.discover-filter-bar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: start; }
.discover-q input { width: 100%; min-width: 0; min-height: 34px; padding: 6px 9px; font-size: 12px; }
.discover-filter-drawer { min-width: 96px; }
.discover-filter-drawer > summary {
  display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 7px;
  padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  color: var(--ink-2); font-size: 12px; font-weight: 600; cursor: pointer; list-style: none;
}
.discover-filter-drawer > summary::-webkit-details-marker, .discover-filter-choice > summary::-webkit-details-marker { display: none; }
.discover-filter-drawer > summary::after, .discover-filter-choice > summary::after { content: "⌄"; color: var(--ink-3); font-size: 11px; }
.discover-filter-drawer[open] > summary { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong)); background: var(--accent-soft); }
.discover-filter-drawer > summary b {
  min-width: 24px; padding: 1px 5px; border-radius: 999px; background: var(--inset);
  color: var(--ink-2); font-size: 11px; font-weight: 600; line-height: 1.45; text-align: center;
}
.discover-filter-panel { grid-column: 1 / -1; margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--inset); }
.discover-filter-panel-head { display: flex; min-height: 24px; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: var(--ink-th); font-size: 11px; font-weight: 600; letter-spacing: .045em; text-transform: uppercase; }
.discover-filter-panel-head .lnk { min-height: 28px; color: var(--accent); font-size: 11px; letter-spacing: 0; text-transform: none; }
.discover-filter-multis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.discover-filter-choice { min-width: 0; }
.discover-filter-choice > summary {
  display: grid; min-height: 40px; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 5px;
  padding: 6px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
  color: var(--ink-2); font-size: 11px; cursor: pointer; list-style: none;
}
.discover-filter-choice > summary span, .discover-filter-choice > summary b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discover-filter-choice > summary b { color: var(--accent); font-size: 11px; font-weight: 500; }
.discover-filter-choice[open] { grid-column: 1 / -1; }
.discover-filter-choice[open] > summary { border-color: var(--line-strong); }
.discover-filter-checks { max-height: 156px; margin-top: 4px; padding: 4px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); scrollbar-width: thin; }
.discover-filter-checks label { display: flex; min-height: 30px; align-items: center; gap: 6px; padding: 3px 4px; color: var(--ink-2); font-size: 11px; cursor: pointer; }
.discover-filter-checks label:hover { background: var(--raised); }
.discover-filter-checks input { width: 14px; height: 14px; flex: 0 0 auto; accent-color: var(--accent); }
.discover-filter-checks span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discover-filter-ranges, .discover-filter-selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
.discover-filter-ranges label, .discover-filter-selects label { display: grid; min-width: 0; gap: 4px; color: var(--ink-3); font-size: 11px; }
.discover-filter-selects label:last-child { grid-column: 1 / -1; }
.discover-filter-ranges input, .discover-filter-selects select { width: 100%; min-width: 0; min-height: 34px; padding: 6px 7px; font-size: 12px; }
.filter-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border: 1px solid var(--line-strong); border-radius: 6px; background: rgba(0, 0, 0, 0.12); }
.filter-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 16%, transparent); }
.filter-input input { min-height: 32px; padding: 5px; border: 0; background: transparent; box-shadow: none; }
.filter-input i { padding: 0 7px; color: var(--ink-3); font-size: 11px; font-style: normal; }
.filter-range-error { margin-top: 8px; color: var(--crit); font-size: 11px; line-height: 1.4; }
.market-filter-exception { display: inline; margin-left: 6px; color: var(--warn); font-size: 11px; font-style: normal; }
.market-outside-filter { box-shadow: inset 2px 0 0 var(--warn); }
.market-result-count { margin: 0; padding: 9px 16px 7px; color: var(--ink-3); font-size: 11px; line-height: 1.5; }
.market-result-count b { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.discover-list { min-height: 0; padding: 0 16px 14px; }
.discover-more { width: 100%; margin-top: 8px; color: var(--ink-2); }
.market-in-strategy td { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.market-in-strategy td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.market-in-strategy .market-remove { color: var(--ink-2); border-color: var(--line-strong); }
.market-in-strategy .market-remove:hover { color: var(--serious); border-color: var(--serious); }
.market-picker-table { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; background: var(--surface); }
.drow-head {
  display: flex; justify-content: space-between; gap: 8px; padding: 7px 12px;
  border: 1px solid var(--line); border-radius: 8px 8px 0 0; background: var(--raised);
  color: var(--ink-th); font-size: 11px; font-weight: 600; letter-spacing: 0.065em; text-transform: uppercase;
}
.drow-head span:last-child { margin-right: 74px; }
.drow {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 66px; grid-template-areas: "name side btn" "risk risk btn";
  align-items: center; gap: 2px 10px; padding: 8px 12px; border-top: 1px solid var(--line);
}
.drow .market-name { grid-area: name; }
.drow-side { grid-area: side; }
.drow-risk { grid-area: risk; }
.drow .market-add { grid-area: btn; }
.drow:first-child { border-top: 0; }
.drow-main { display: contents; }
.drow-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; }
.drow-side b { font-size: 13px; }
.drow-side span { font-size: 11px; }
.drow-risk { margin-top: 1px; color: var(--ink-3); font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }
.drow-risk > span { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.drow .risk-point-label { display: inline; max-width: none; margin: 0; }
.drow .risk-point-label::before { content: " · "; }
.market-name { display: block; width: 100%; min-width: 0; text-align: left; overflow: hidden; }
.market-name:hover strong { color: var(--accent); }
.market-name strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.market-name span { display: block; margin-top: 2px; color: var(--ink-3); font-size: 11px; overflow-wrap: anywhere; }
.risk-point-label { max-width: min(106px, 100%); margin-left: auto; font-size: 11px; line-height: 1.25; white-space: normal; overflow-wrap: break-word; }
.discover .btn.market-add { width: 66px; min-height: 32px; padding: 5px 8px; color: var(--accent); border-color: var(--line-strong); }
.discover .btn.market-add:hover { color: var(--ink); border-color: var(--accent); }
.market-empty { padding: 18px 12px; border: 1px dashed var(--line); border-radius: 8px; color: var(--ink-3); font-size: 12px; text-align: center; }
.designer-advanced { border-top: 1px solid var(--line); }
.designer-advanced > summary { padding: 12px 17px; color: var(--ink-2); font-size: 12px; font-weight: 600; cursor: pointer; list-style-position: inside; }
.designer-advanced[open] > summary { border-bottom: 1px solid var(--line); }
.designer-advanced > :not(summary) { margin-left: 16px; margin-right: 16px; }
.designer-filters { padding-top: 14px; }
.designer-filters input[type="number"] { width: 64px; }
.designer-filters .unit { color: var(--ink-3); font-size: 11px; }
.designer-table { margin-top: 12px; }
.designer-advanced > .btn { margin-top: 10px; margin-bottom: 15px; }
.strategy { min-width: 0; }
@media (min-width: 1280px) {
  .designer-work { grid-template-columns: 380px minmax(0, 1fr); }
  .discover { position: sticky; top: 59px; height: calc(100vh - 59px); max-height: calc(100vh - 59px); border-right: 1px solid var(--line); }
  .discover-head, .market-recency, .market-result-count { flex-shrink: 0; }
  .discover-filters { min-height: 44px; flex: 0 1 auto; overflow-y: auto; scrollbar-width: thin; }
  .discover-list { min-height: 120px; flex: 1 0 120px; overflow-y: auto; scrollbar-width: thin; }
  .designer-shell { overflow: clip; }
  .strategy .canvas-world { grid-template-columns: 126px minmax(240px, 1fr) 164px; gap: 24px; }
  .strategy .flow-node { padding: 13px; min-height: 100px; }
  .strategy .flow-node strong { font-size: 24px; }
  .strategy .flow-leg-link span { max-width: 168px; }
  .strategy .canvas-viewport > .flow-section-head { right: 130px; }
}
@media (max-width: 1279px) {
  .designer-work { display: flex; flex-direction: column; }
  .strategy { display: contents; }
  .strategy-flow { order: 0; }
  .discover { order: 1; }
  .discover-list { max-height: 70vh; overflow-y: auto; scrollbar-width: thin; }
  #dSeedNote, #dWaiveNote, #dMetric, #dDeploy { order: 2; }
  .designer-actions { order: 3; }
  .designer-advanced { order: 4; }
}
@media (max-width: 760px), print {
  .designer-shell { display: flex; flex-direction: column; }
  .designer-intro { align-items: stretch; flex-direction: column; padding: 14px 16px; }
  .designer-intro h1, .designer-intro h2 { font-size: 19px; }
  .start-doors { padding: 22px 16px 32px; }
  .start-title-h { font-size: 21px; }
  .strategy-flow { display: contents; }
  .flow-lines { display: none; }
  .flow-source { order: 0; min-height: 0; padding: 11px 16px; border-width: 1px 0 0; border-radius: 0; background: var(--inset); }
  .flow-source strong { font-size: 22px; }
  .flow-proof {
    order: 4; min-height: 70px; display: grid; grid-template-columns: 1fr auto;
    align-items: center; padding: 11px 16px; border-width: 1px 0 0; border-radius: 0;
    background: var(--inset);
  }
  .flow-proof .flow-eyebrow { grid-column: 1; }
  .flow-proof strong { grid-column: 1; margin-top: 1px; font-size: 27px; }
  .flow-proof span:not(.flow-eyebrow) { grid-column: 1; font-size: 11.5px; }
  .flow-proof em { grid-column: 2; grid-row: 1 / 4; margin: 0; font-size: 11.5px; text-align: right; }
  .flow-routes { order: 3; padding: 0 16px 8px; background: var(--inset); }
  .canvas-viewport > .flow-section-head {
    position: static; order: 3; pointer-events: auto; margin: 0 0 8px;
    padding: 11px 16px 0; background: var(--inset); border-top: 1px solid var(--line);
  }
  .flow-section-head { grid-template-columns: 1fr auto; align-items: center; margin-bottom: 8px; }
  .flow-balance { grid-column: 1 / -1; font-size: 11.5px; text-align: left; }
  .flow-leg { min-height: 60px; margin: 5px 0; padding: 8px 10px; }
  .flow-leg-link span { font-size: 11.5px; }
  .flow-leg-controls { margin-top: 5px; }
  .flow-weight-num, .flow-leg-controls label { font-size: 12px; }
  .designer-work, .strategy { display: contents; }
  .discover { order: 2; }
  .discover-list { max-height: 62vh; }
  #dSeedNote, #dWaiveNote, #dMetric, #dDeploy { order: 4; }
  .market-picker-table th:nth-child(4), .market-picker-table td:nth-child(4) { display: none; }
  .designer-actions {
    order: 5; position: static; display: block; padding: 12px 16px;
    border-width: 1px 0 0; border-radius: 0; background: var(--surface);
  }
  .designer-actions .btn.primary { width: 100%; }
  .designer-actions .btn.primary { min-height: 44px; }
  
  .designer-advanced { order: 6; }
  .designer-filters { align-items: flex-end; }
}

@media (max-width: 520px) {
  .discover-head { display: block; padding: 11px 12px 0; }
  .discover-head > .flow-section-label { margin-bottom: 8px; }
  .mandate-preset-bar { align-items: flex-start; }
  .mandate-select { width: 100%; }
  .mandate-select select { flex: 1; max-width: none; }
  .mandate-preset-chips { flex-basis: 100%; }
  .mandate-chip { max-width: 100%; }
  .mandate-preset-actions { width: 100%; justify-content: flex-end; }
  .mandate-preset-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mandate-preset-form > label:first-child { grid-column: 1 / -1; }
  .market-recency { flex-wrap: wrap; padding: 9px 12px 0; }
  .market-recency-switch { width: 100%; }
  .market-recency-switch button { flex: 1; }
  .market-recency-dates { flex-basis: calc(100% - 28px); }
}

@media (max-width: 350px) {
  .flow-balance { margin-top: 2px; }
}

.start-doors { margin: 0 auto; padding: 48px 24px 64px; max-width: 820px; }
.start-doors .start-title-h {
  font-size: 26px; line-height: 1.2; letter-spacing: -0.025em; margin: 0;
}
.start-list {
  list-style: none; display: grid; gap: 20px; margin: 28px 0 0; padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.start-door.is-open {
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); display: flex; flex-direction: column; min-width: 0;
}
.start-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.start-title { font-weight: 650; font-size: 17px; color: var(--ink); }
.start-why { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }
.start-go { margin-top: auto; padding-top: 28px; }
.start-cta { width: 100%; min-height: 44px; }
@media (max-width: 760px) {
  .start-doors { padding: 32px 16px 48px; }
  .start-doors .start-title-h { font-size: 23px; }
  .start-list { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 24px; }
  .start-door.is-open { padding: 20px; }
  .start-go { padding-top: 20px; }
}
.start-note { margin: 6px 0 0; font-size: 12px; line-height: 1.55; color: var(--ink-3); max-width: 70ch; }
.start-note-k { font-weight: 650; color: var(--ink-2); }
.start-note .lnk { font-size: 12px; margin-left: 4px; }

.baseline-opts { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.baseline-opt { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg); cursor: pointer; }
.baseline-opt:hover { border-color: var(--accent); }
.baseline-opt input { margin-top: 2px; flex: none; }
.baseline-opt-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.baseline-opt-body b { font-size: 12.5px; color: var(--ink); }
.baseline-opt-body .dim2 { font-size: 11.5px; }
.baseline-opt-id { font-size: 11px; color: var(--ink-3); word-break: break-all; }

.design-request { margin: 8px 0 0; font-size: 11.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.design-request .req-bit { padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--inset); }
.design-request .req-waived { border-color: var(--warn); color: var(--warn); }

#instHistory { min-width: 0; }
.card.is-unserved { align-self: start; }
.card.is-unserved .dim { padding: 2px 0 4px; line-height: 1.55; }
@media print { .card.is-unserved { align-self: start; } }

#leverTwoRisks { transition: opacity 120ms ease; }
#leverTwoRisks.is-stale, #leverPanel[aria-busy="true"] #leverNote, .lever-hf.is-stale { opacity: 0.55; }
/* One slider row: fixed-width figures so the track never resizes as digits change, and one
   reserved status line under it so pending and clamp notes never push the card around. */
.lever-row { margin-bottom: 0; }
.lever-row #leverVal { flex: 0 0 6ch; text-align: right; font-variant-numeric: tabular-nums; }
.lever-hf { flex: 0 0 8ch; white-space: nowrap; font-variant-numeric: tabular-nums; transition: opacity 120ms ease; }
.lever-ask { height: 1.5em; line-height: 1.5em; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mandate-editor { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.mandate-editor > summary { cursor: pointer; font-size: 12px; color: var(--ink-2); }
.mandate-fields { display: flex; flex-direction: column; gap: 6px; }
.mandate-field { display: grid; grid-template-columns: minmax(140px, 1.2fr) 88px auto minmax(0, 2fr);
  align-items: center; gap: 8px; font-size: 12px; }
.mandate-field-label { color: var(--ink-2); }
.mandate-field input { width: 100%; font-variant-numeric: tabular-nums; }
.mandate-field-hint { font-size: 11px; }

.shelf-heading {
  margin: 18px 2px 0; color: var(--ink-3);
  font-size: 11px; font-weight: 650; letter-spacing: 0.075em; text-transform: uppercase;
}
.shelf-heading .dim2 {
  margin-left: 6px; color: var(--ink-3); font-weight: 500;
  letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums;
}
h1[data-route-focus] { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }

.page-index {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 2px;
  margin: -22px -24px 14px; padding: 6px 24px;
  border-bottom: 1px solid var(--line); background: var(--page);
  overflow-x: auto; scrollbar-width: none;
}
.page-index::-webkit-scrollbar { display: none; }
.page-index-label {
  flex: none; margin-right: 8px; color: var(--ink-th);
  font-size: 11px; font-weight: 600; letter-spacing: .045em; text-transform: uppercase;
}
.page-index a {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: var(--radius-s);
  color: var(--ink-2); font-size: 12px; text-decoration: none; white-space: nowrap;
}
.page-index a:hover { color: var(--ink); background: var(--raised); }
.page-index a.is-here { color: var(--ink); background: var(--accent-soft); }
.page-index-n { color: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.page-index a.is-here .page-index-n { color: var(--ink-2); }
/* The jumped-to section must not land UNDER the two sticky bars that sit above it. */
#dFlowShell, #stratGrid, #stratGridTitle, #dsCapCard, #dsRunsCard, #dsOverlaysCard, #dsDeployCard {
  scroll-margin-top: 46px;
}
@media print { .page-index { display: none; } }

.si-card {
  max-width: 460px; margin: 48px auto; display: flex; flex-direction: column; gap: 14px;
}
.si-section { display: flex; flex-direction: column; gap: 14px; }
.si-section h1 + .si-lede { margin-top: -8px; }
.si-card h2 { font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--ink); }
.si-card h1 {
  font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink);
}
.si-lede { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.si-methods { display: flex; flex-direction: column; gap: 8px; }
.si-methods button {
  min-height: 44px; padding: 10px 16px; border-radius: var(--radius-s);
  border: 1px solid var(--line-strong); background: var(--inset);
  font-size: 13.5px; font-weight: 550; color: var(--ink);
  text-align: center; transition: border-color 120ms ease, background 120ms ease;
}
.si-methods button:hover:not(:disabled) { border-color: var(--accent); background: var(--raised); }
.si-methods button.si-primary {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600;
}
.si-methods button.si-primary:hover:not(:disabled) { background: var(--accent); border-color: var(--ink-2); }
.si-methods button:disabled, .si-enroll button:disabled { opacity: 0.55; cursor: progress; }
/* The note is empty most of the time. It keeps NO height when empty so the buttons do not
   sit above a permanent gap, and it never collapses the layout when it fills. */
.si-note { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; min-height: 0; }
.si-note:empty { display: none; }
.si-note.bad { color: var(--bad); }
.si-note.good { color: var(--good); }
.si-alt { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.si-alt a { color: var(--accent); }
.si-enroll {
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--line); padding-top: 14px; margin-top: 2px;
}
.si-enroll button {
  min-height: 44px; padding: 10px 16px; border-radius: var(--radius-s);
  border: 1px solid var(--line-strong); background: var(--inset);
  font-size: 13.5px; font-weight: 550; color: var(--ink);
}
.si-enroll button:hover:not(:disabled) { border-color: var(--accent); background: var(--raised); }
.si-enroll[hidden] { display: none; }
.si-signup { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 6px; }
.si-methods a.si-button {
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  min-height: 44px; padding: 10px 16px; border-radius: var(--radius-s);
  border: 1px solid var(--line-strong); background: var(--inset);
  font-size: 13.5px; font-weight: 550; color: var(--ink);
}
.si-methods a.si-button:hover { border-color: var(--accent); background: var(--raised); }
.si-methods a.si-button.si-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.si-form { display: flex; flex-direction: column; gap: 12px; }
.si-form[hidden] { display: none; }
.si-field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.si-field input, .si-field select {
  min-height: 40px; padding: 8px 10px; border-radius: var(--radius-s);
  border: 1px solid var(--line-strong); background: var(--inset); color: var(--ink); font-size: 13.5px;
}
@media (max-width: 560px) {
  .si-card { margin: 24px 12px; }
}
/* ---------- security (security.js) ---------- */
.sec-section { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.sec-section[hidden], .sec-confirm[hidden] { display: none; }
.sec-section h2 { font-size: 14px; font-weight: 600; color: var(--ink); }
.sec-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sec-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--inset); }
.sec-meta { display: flex; flex-direction: column; gap: 2px; flex: 1 1 200px; min-width: 0; }
.sec-name { font-size: 13px; font-weight: 550; color: var(--ink); }
.sec-when, .sec-empty { font-size: 12px; color: var(--ink-2); }
.sec-reason { flex-basis: 100%; font-size: 12px; color: var(--ink-2); margin: 0; }
.sec-confirm { display: flex; flex-direction: column; gap: 10px; }
.sec-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sec-row button, .sec-actions button {
  min-height: 44px; padding: 8px 14px; border-radius: var(--radius-s);
  border: 1px solid var(--line-strong); background: var(--raised);
  font-size: 13px; font-weight: 550; color: var(--ink);
}
.sec-row button:hover:not(:disabled), .sec-actions button:hover:not(:disabled) { border-color: var(--accent); }
.sec-row button:disabled { opacity: 0.55; cursor: not-allowed; }
.sec-actions button.si-danger { border-color: var(--bad); color: var(--bad); }
.si-card.sg-card { max-width: 760px; }
.sg-invite { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.sg-qr { margin: 0; flex: 0 0 220px; display: flex; flex-direction: column; gap: 6px; }
.sg-qr svg { width: 220px; height: 220px; display: block; border-radius: var(--radius-s); }
.sg-qr figcaption { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sg-facts { flex: 1 1 280px; min-width: 0; margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; font-size: 12.5px; }
.sg-facts dt { color: var(--ink-2); }
.sg-facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.sg-card code { font-family: var(--mono); font-size: 12px; }
.sg-keys { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.sg-key { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.sg-key-src { color: var(--ink-2); min-width: 92px; }
.sg-device .si-field { margin-top: 6px; }
.sg-ok { font-size: 12.5px; color: var(--good); }
.sg-pending { font-size: 12.5px; color: var(--ink-th); max-width: 60ch; }
.sg-set { display: flex; flex-direction: column; gap: 8px; }
.sg-set h3 { font-size: 13px; font-weight: 600; color: var(--ink); margin: 0; text-transform: none; letter-spacing: normal; }
.sg-set .si-primary, .sg-card .sec-actions .si-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sg-alarm { border: 1px solid var(--bad); border-radius: var(--radius-s); padding: 10px 12px; color: var(--bad); font-size: 13px; }
.sg-wizard { display: flex; flex-direction: column; gap: 12px; }
.sg-wizard-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sg-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.sg-steps li { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink-3); display: flex; align-items: center; justify-content: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.sg-steps li.done { border-color: var(--good); color: var(--good); }
.sg-steps li.current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.sg-expiry { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sg-wizard .sg-step-title { font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.25; color: var(--ink); margin: 2px 0 0; text-transform: none; letter-spacing: normal; }
.sg-step-say { margin: 0; font-size: 14px; color: var(--ink); max-width: 64ch; }
.sg-step-note { margin: 0; padding: 8px 12px; border-left: 3px solid var(--warn); border-radius: var(--radius-s); background: var(--warn-soft); color: var(--ink); font-size: 13px; }
.sg-nav { margin-top: 4px; }
.sg-wizard > .sg-facts, #enrBody > .sg-facts { flex: none; }
@media (max-width: 560px) {
  .sg-qr { flex-basis: 100%; align-items: center; }
  .sg-facts { grid-template-columns: minmax(0, 1fr); }
  .sg-facts dd { margin-bottom: 4px; }
}


.onboarding-start { max-width: none; min-height: 70vh; display: grid; place-items: center; padding: 60px 22px; }
.onboarding-welcome { text-align: center; width: 100%; max-width: 460px; }
.onboarding-welcome img { display: block; margin: 0 auto 18px; }
.onboarding-welcome h1 { margin: 0; font-size: 30px; line-height: 1.1; letter-spacing: -.025em; }
.onboarding-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.onboarding-pagination { margin-top: 16px; align-items: center; }
.onboarding-without-logo::before { content: ""; display: block; height: 41px; }
.onboarding-empty-description { margin: 12px 0 0; color: var(--ink-2); line-height: 21px; }
.onboarding-welcome .onboarding-actions { margin: 26px auto 0; max-width: 340px; }
.onboarding-welcome .onboarding-actions .btn { flex: 1 1 0; min-width: 0; }
.onboarding-actions .btn { min-height: 44px; padding: 10px 20px; }
.onboarding-address-link { margin-top: 18px; min-height: 28px; font-size: 12px; }
#startAddressForm:not([hidden]) { display: flex; gap: 8px; padding: 16px; margin-top: 16px; background: var(--raised); border: 1px solid var(--line); border-radius: 14px; }
#startAddress { min-width: 0; flex: 1; }
#startStatus { margin-top: 16px; color: var(--ink-2); overflow-wrap: anywhere; }
.onboarding-portfolio { max-width: none; padding: 20px 22px 40px; }
.onboarding-heading { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.onboarding-heading h1 { margin: 0; font-size: 21px; }
.onboarding-heading .onboarding-actions { margin-left: auto; }
.onboarding-account { color: var(--accent); font-size: 11px; overflow-wrap: anywhere; }
.onboarding-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 14px; }
.onboarding-metrics > div { background: var(--raised); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.onboarding-metrics span { display: block; color: var(--ink-2); font-size: 13px; }
.onboarding-metrics strong { display: block; font-family: var(--mono); font-size: 26px; margin-top: 4px; overflow-wrap: anywhere; }
.onboarding-holdings { width: 100%; min-width: 760px; table-layout: fixed; }
.onboarding-col-position { width: 36%; }
.onboarding-col-qty { width: 22%; }
.onboarding-col-price { width: 14%; }
.onboarding-col-value { width: 18%; }
.onboarding-col-yield { width: 10%; }
.onboarding-holdings td { overflow: hidden; text-overflow: ellipsis; }
.onboarding-holdings td:first-child { overflow-wrap: anywhere; }
.onboarding-small-toggle { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 44px; margin-top: 8px; color: var(--ink-2); font-size: 12px; cursor: pointer; }
.onboarding-small-toggle input { appearance: none; position: relative; flex: 0 0 auto; width: 30px; height: 18px; margin: 0; padding: 0; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--raised); cursor: pointer; }
.onboarding-small-toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink-2); }
.onboarding-small-toggle input:checked { background: var(--accent); border-color: var(--accent); }
.onboarding-small-toggle input:checked::after { left: 14px; background: var(--ink); }
.onboarding-small-toggle input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.onboarding-holdings td:first-child, .onboarding-holdings th:first-child { text-align: left; }
.onboarding-holdings td:not(:first-child), .onboarding-holdings th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.onboarding-holdings small { display: block; color: var(--ink-2); font-size: 11px; margin-top: 4px; }
.onboarding-source { font-size: 11px; color: var(--ink-2); }
@media (max-width: 600px) { .onboarding-metrics { grid-template-columns: 1fr; } .onboarding-heading .onboarding-actions { margin-left: 0; } .onboarding-portfolio { padding: 20px 12px; } }




.mon { max-width: 1180px; display: flex; flex-direction: column; gap: 14px; }

.mon-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mon-title { margin: 0; font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.mon-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  border-radius: 999px; padding: 4px 11px;
  background: rgba(70, 194, 176, 0.14); color: var(--good);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.mon-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: block; }
/* A refused read must not wear the live badge. */
.mon-pill-bad { background: rgba(213, 80, 74, 0.16); color: var(--crit); }

.mon-tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
}
.mon-tile { background: var(--surface); padding: 15px 17px; }
.mon-tile-k { font-size: 12.5px; color: var(--ink-th); }
.mon-tile-v {
  font-family: var(--mono); font-size: 24px; font-weight: 600;
  font-variant-numeric: tabular-nums; margin-top: 4px; color: var(--ink);
}
.mon-tile-good { color: var(--good); }
.mon-tile-bad { color: var(--crit); }
.mon-tile-d { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.mon-tile-v small { display: inline-block; white-space: nowrap; font: 400 12.5px var(--font); color: var(--ink-3); margin-left: 8px; }

.mon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 14px; align-items: stretch; }
.mon-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; }
.mon-card-h {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.mon-card-h-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mon-card-sub { margin-left: auto; font-family: var(--font); font-size: 12px; text-transform: none; letter-spacing: normal; color: var(--ink-th); }

.mon-alerts, .mon-ledger { flex: 1; min-height: 360px; max-height: 520px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
@media (max-width: 700px) {
  .mon-alerts, .mon-ledger { min-height: 0; }
}

.mon-alert {
  display: grid; grid-template-columns: 8px 54px minmax(0, 1fr); gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.mon-alert:last-child { border-bottom: 0; }
.mon-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; background: var(--ink-3); }
.mon-alert-act .mon-dot { background: var(--accent); }
.mon-alert-warn .mon-dot { background: var(--warn); }
.mon-alert-serious .mon-dot { background: var(--crit); }
.mon-time { font-family: var(--mono); font-size: 12px; color: var(--ink-3); padding-top: 1px; }
.mon-alert-main { min-width: 0; }
.mon-alert-msg { font-size: 13px; color: var(--ink); line-height: 1.35; }
.mon-alert-market { font-size: 12px; color: var(--ink-th); margin-top: 3px; }
.mon-sep { color: var(--ink-3); margin: 0 6px; }
.mon-alerts { display: flex; flex-direction: column; }
.mon-quiet {
  flex: 1; display: grid; place-items: center; min-height: 56px;
  font-size: 12.5px; color: var(--ink-3); margin: 0; padding: 14px 0 4px; text-align: center;
}

.mon-kind {
  font-size: 12.5px; color: var(--ink-3); margin-right: 7px;
}
.mon-kind-deleverage, .mon-kind-staking_unwind { color: var(--serious); }
.mon-kind-relever, .mon-kind-staking_lever { color: var(--good); }
.mon-kind-sweep { color: var(--accent); }

.mon-ledger { --mon-reb-cols: 54px minmax(0, 1fr) 84px; }
.mon-reb {
  display: grid; grid-template-columns: var(--mon-reb-cols); column-gap: 10px; row-gap: 3px; padding: 9px 0;
  border-bottom: 1px solid var(--line); font-size: 13px;
}
.mon-reb:last-child { border-bottom: 0; }
.mon-reb-name {
  grid-column: 2; color: var(--ink); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mon-reb-why { grid-column: 2; font-size: 12.5px; color: var(--ink-th); min-width: 0; }
.mon-reb-cost {
  grid-column: 3; font-family: var(--mono); font-size: 12.5px; color: var(--ink-th);
  text-align: right; font-variant-numeric: tabular-nums;
}

.mon-reb-why .mon-tx { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

.mon-reb-head {
  display: grid; grid-template-columns: var(--mon-reb-cols); column-gap: 10px;
  padding-bottom: 7px; border-bottom: 1px solid var(--line);
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
.mon-reb-head span:last-child { text-align: right; }

.mon-reb-g > summary { cursor: pointer; list-style: none; }
.mon-reb-g > summary::-webkit-details-marker { display: none; }
.mon-reb-g > summary .mon-reb-why::after { content: " ▸"; color: var(--ink-3); }
.mon-reb-g[open] > summary .mon-reb-why::after { content: " ▾"; }
.mon-reb-g > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.mon-reb-kids { padding: 2px 0 10px 64px; }
.mon-reb-kid {
  display: grid; grid-template-columns: 54px minmax(0, 1fr); column-gap: 10px;
  padding: 3px 0; font-size: 12.5px; color: var(--ink-th);
}
.mon-reb-g > summary.mon-reb { border-bottom: 0; }
.mon-reb-g { border-bottom: 1px solid var(--line); }
.mon-reb-g:last-child { border-bottom: 0; }

/* One cell per position. auto-fit rather than a fixed five: the fleet is five positions today and
   the strip must not need a rewrite at six, or collapse to a scrollbar at two. */
.mon-positions {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 14px; margin-top: 12px;
}
.mon-position { display: flex; flex-direction: column; min-width: 0; }
.mon-position-h { display: flex; align-items: baseline; gap: 8px; justify-content: space-between; }
/* The market names are long and the cell is narrow; the name yields, the reading never does. */
.mon-position-name {
  font-size: 12px; color: var(--ink-th); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mon-position-now { font-family: var(--mono); font-size: 13px; color: var(--ink-1); flex: none; }
.mon-position-now-out { color: var(--serious); }
.mon-mini { width: 100%; height: 124px; display: block; margin-top: 6px; }
.mon-position-empty { justify-content: center; }

#monHolds:empty { display: none; }
.mon-hold { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; }
.mon-hold + .mon-hold { border-top: 1px solid var(--line); }
.mon-hold-blocked { color: var(--warn); }
#monHoldNote:empty { display: none; }

.mon-empty { font-size: 13px; color: var(--ink-th); margin: 12px 0 2px; }
.mon-refused { font-size: 13px; color: var(--crit); margin: 12px 0 2px; }
.mon-refused-why { color: var(--ink); }

@media (max-width: 700px) {
  .mon-ledger { --mon-reb-cols: 46px minmax(0, 1fr) 70px; }
}

.selection-preview-note { color: var(--warn); font-size: 12px; line-height: 1.5; margin: 0 0 16px; }
.selection-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 10px 14px; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--raised); font-size: 12px; }
.selection-toolbar label, .selection-check label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.selection-toolbar input, .selection-check input { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }
.selection-check label { justify-content: center; width: 32px; }
.selection-check input:disabled { cursor: not-allowed; }
.onboarding-holdings.is-selecting { min-width: 960px; }
.selection-col-check { width: 40px; }
.selection-col-reason { width: 155px; }
.is-selecting .onboarding-col-position { width: 29%; }
.is-selecting .onboarding-col-qty { width: 17%; }
.is-selecting .onboarding-col-price { width: 12%; }
.is-selecting .onboarding-col-value { width: 16%; }
.is-selecting .onboarding-col-yield { width: 8%; }
.onboarding-holdings.is-selecting td:nth-child(2), .onboarding-holdings.is-selecting th:nth-child(2), .onboarding-holdings.is-selecting td:last-child, .onboarding-holdings.is-selecting th:last-child { text-align: left; white-space: normal; }
.selection-chosen { background: var(--accent-soft); }
.selection-unavailable { color: var(--ink-3); }
.selection-ready { color: var(--good); font-size: 11px; }
.selection-reason { color: var(--ink-3); font-size: 11px; border: 1px solid var(--line-strong); border-radius: 4px; padding: 2px 5px; display: inline-block; }

.bk-card { max-width: 720px; }
.bk-books { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: -4px 0 12px; font-size: 13px; }
.bk-books a { color: var(--ink-2); }
.bk-books a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: none; }
.bk-step { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.bk-step h2 { font-size: 14px; margin: 0 0 8px; }
.bk-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 12px; }
.bk-form .si-methods { grid-column: 1 / -1; }
.bk-undeployed { grid-column: 1 / -1; border: 1px solid var(--warn); border-radius: 6px; padding: 8px 12px; display: grid; gap: 6px; }
.bk-undeployed[hidden] { display: none; }
.bk-undeployed .si-note { margin: 0; }
.bk-accept { display: flex; align-items: center; gap: 8px; font-size: 12.5px; cursor: pointer; }
.bk-accept input { width: 16px; height: 16px; margin: 0; flex: none; }
.bk-problem { color: var(--bad); }
.bk-problem:empty { display: none; }
.bk-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.bk-table th { text-align: left; font-weight: 500; color: var(--ink-2); padding: 3px 12px 3px 0; white-space: nowrap; }
.bk-table td { padding: 3px 0; overflow-wrap: anywhere; }
.bk-table small, .bk-problems, .bk-gates { color: var(--ink-2); font-size: 12.5px; }
.bk-problems li strong, .bk-gates li strong { color: var(--ink); font-weight: 500; }
.bk-gates { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.bk-gate-state { display: inline-block; min-width: 64px; text-transform: capitalize; }
.bk-gates [data-state="passed"] .bk-gate-state { color: var(--good); }
.bk-gates [data-state="waived"] .bk-gate-state { text-transform: none; }
.bk-home .si-field { grid-column: 1 / -1; }
.bk-rows { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 12.5px; }
.bk-rows legend { padding: 0; margin-bottom: 4px; color: var(--ink-2); }
.bk-gates [data-state="failed"] .bk-gate-state { color: var(--bad); }
.bk-problems { padding-left: 16px; margin: 8px 0 0; }
.bk-table .good { color: var(--good); }
.bk-table .bad { color: var(--bad); }
.bk-card button:disabled { opacity: 0.45; cursor: not-allowed; }
.bk-policy .bk-hf { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px 10px; margin: 0; min-width: 0; }
.bk-hf legend { padding: 0 4px; font-size: 12.5px; color: var(--ink-2); }
.bk-starting { margin-left: 6px; color: var(--warn); cursor: help; border-bottom: 1px dotted var(--warn); }
.bk-track { position: relative; height: 28px; margin: 6px 9px 2px; touch-action: none; }
.bk-rail { position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--line-strong); border-radius: 1px; }
.bk-mark { position: absolute; top: 7px; width: 2px; height: 14px; transform: translateX(-50%); background: var(--ink-3); }
.bk-mark[data-mark="liquidation"], .bk-legend [data-mark="liquidation"] i { background: var(--bad); }
.bk-mark[data-mark="ltv"], .bk-legend [data-mark="ltv"] i { background: var(--warn); }
.bk-handle { position: absolute; top: 5px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); cursor: grab; box-sizing: border-box; }
.bk-handle[data-hf="dangerBandHF"] { background: var(--bad); }
.bk-handle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bk-legend { list-style: none; padding: 0; margin: 2px 0 6px; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 11.5px; color: var(--ink-2); }
.bk-legend i { display: inline-block; width: 2px; height: 10px; margin-right: 5px; vertical-align: -1px; background: var(--ink-3); }
.bk-hf-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 12px; }
.bk-field { min-width: 0; }
.bk-guide, .bk-caveat { color: var(--ink-2); font-size: 11.5px; line-height: 1.35; }
.bk-guide:empty, .bk-warn:empty { display: none; }
.bk-caveat, .bk-warn { color: var(--warn); font-size: 11.5px; }
.bk-lev { margin-top: 8px; }
.bk-lev th[scope="col"] { color: var(--ink-3); font-weight: 500; }
.bk-lev td { font-variant-numeric: tabular-nums; padding-right: 12px; }
@media (max-width: 480px) {
  .bk-hf-fields { grid-template-columns: 1fr; }
  .bk-lev th[scope="row"] { white-space: normal; }
}

.lv-slot { margin: 0 0 18px; }
.lv-h, .lv-slot + .lv-h { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-th); }
.lv-slot + .lv-h { margin-top: 4px; }
.mon .lv-slot { margin: 0; }
.lv { display: flex; flex-direction: column; gap: 12px; max-width: 1180px; }
.lv-foot { display: flex; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.lv-fresh { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-left: auto; }
.lv-fresh-stale { color: var(--warn); }
.lv-problem { margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(213, 80, 74, 0.12); color: var(--crit); font-size: 13px; }
.lv-card { gap: 12px; }
.lv-basis { margin: 0; font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.lv-scroll { overflow-x: auto; }
.lv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lv-table th { font-weight: 500; font-size: 12px; color: var(--ink-th); text-align: left; padding: 6px 10px 8px; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.lv-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.lv-table tr:last-child td { border-bottom: 0; }
.lv-table th:first-child, .lv-table td:first-child { padding-left: 0; }
.lv-table th:last-child, .lv-table td:last-child { padding-right: 0; }
.lv-n { text-align: right !important; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.lv-n small { display: block; font-size: 12px; color: var(--ink-3); }
.lv-venue { font-weight: 500; }
.lv-muted, .lv-hash { color: var(--ink-3); }
.lv-hash { font-family: var(--mono); font-size: 12px; }
.lv-activity > summary { cursor: pointer; font-size: 13px; color: var(--ink-th); display: flex; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.lv-activity > summary::before { content: "▸"; color: var(--ink-3); }
.lv-activity[open] > summary::before { content: "▾"; }
.lv-activity > summary::-webkit-details-marker { display: none; }
.lv-activity ol { margin: 8px 0 0; padding-left: 26px; font-size: 13px; line-height: 1.7; color: var(--ink); }
.lv .lv-activity li { display: list-item; padding: 0; border: 0; gap: 0; }
.lv-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 13px; }
.lv-dl dt { color: var(--ink-th); }
.lv-dl dd { margin: 0; font-family: var(--mono); color: var(--ink); }

.lv-stats { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; }
.lv-stats > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lv-stats dt { font-size: 12px; color: var(--ink-th); }
.lv-stats dd { margin: 0; font-family: var(--mono); font-size: 16px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.lv-low { display: block; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-th); white-space: nowrap; }
.lv-stats-pool { padding-top: 10px; border-top: 1px solid var(--line); }
.lv-stats-pool dd { font-size: 13px; font-weight: 500; }
.lv-good, .lv-stats dd.lv-good { color: var(--good); }
.lv-bad, .lv-stats dd.lv-bad { color: var(--crit); }
.lv-chart-h { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.lv-chart-t { font-size: 13px; font-weight: 600; color: var(--ink); }
.lv-chart-read { font-family: var(--mono); font-size: 12px; color: var(--ink-th); }
.lv-ranges { margin-left: auto; display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lv-range { font: 500 12px var(--mono); color: var(--ink-th); background: transparent; border: 0; padding: 5px 10px; cursor: pointer; }
.lv-range + .lv-range { border-left: 1px solid var(--line); }
.lv-range.is-on { background: var(--accent-soft); color: var(--accent); }
.lv-levers .mon-card-sub { margin-left: 0; }
.lv-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12px; color: var(--ink-3); vertical-align: 1px; }
.lv-tag-go { border-color: transparent; background: rgba(70, 194, 176, 0.14); color: var(--good); }
.lv-tag-bad { border-color: transparent; background: rgba(213, 80, 74, 0.14); color: var(--crit); }
.lv-tag-warn { border-color: transparent; background: rgba(224, 168, 60, 0.16); color: var(--warn); }
.lv-warn, .lv-stats dd.lv-warn { color: var(--warn); }
.lv-verdict { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.lv-lido-t .lv-tag { margin: 0; }
.lv-levers-t th { white-space: nowrap; }
.lv-levers-t tr.lv-hold td { color: var(--ink-th); }
.lv-levers-t tr.lv-blocked td { color: var(--ink-3); }
.lv-levers-t tr.lv-grp td { padding-top: 18px; font-size: 13px; font-weight: 600; color: var(--ink); }
.lv-levers-t .lv-grp-n { font-weight: 400; color: var(--ink-th); }
.lv-chart { position: relative; height: 170px; margin: 2px 0 0 44px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: crosshair; }
.lv-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lv-rate-line { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.lv-col-line { stroke: var(--good); stroke-width: 1; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.lv-col-label { position: absolute; left: 6px; white-space: nowrap; transform: translateY(-120%); font-size: 12px; color: var(--good); background: var(--surface); padding: 0 3px; pointer-events: none; }
.lv-col-label-r { left: auto; right: 6px; }
.lv-axis { position: absolute; left: -44px; width: 38px; text-align: right; font: 12px var(--mono); color: var(--ink-3); }
.lv-axis-hi { top: -6px; }
.lv-axis-lo { bottom: -6px; }
.lv-chart-x { display: flex; justify-content: space-between; margin-left: 44px; font: 12px var(--mono); color: var(--ink-3); }
.lv-funded { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--ink-3); pointer-events: none; }
.lv .mon-card-h { font: 600 14px var(--font); letter-spacing: normal; text-transform: none; color: var(--ink); }
.lv-funded span { position: absolute; top: 2px; left: 4px; padding: 0 3px; font-size: 12px; color: var(--ink-th); white-space: nowrap; background: var(--surface); border-radius: 3px; z-index: 1; }
.lv-mark { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; border: 2px solid var(--surface); background: var(--ink-3); cursor: help; }
.lv-mark::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; }
.lv-mark[data-lv-tip] { cursor: pointer; }
.lv-mark:hover { transform: scale(1.35); }
.lv-mark-up { background: var(--crit); }
.lv-mark-down { background: var(--good); }
.lv-mark-you { background: var(--accent); width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; }
.lv-cursor { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--ink-th); pointer-events: none; }
.lv-sub-h { font-size: 13px; font-weight: 600; color: var(--ink); padding-top: 10px; border-top: 1px solid var(--line); }
.lv-table td a { color: inherit; text-decoration: none; }
.lv-table td a:hover { text-decoration: underline; }
.lv-moves td:nth-child(3) { white-space: normal; min-width: 160px; }
.lv-moves th small { display: block; font-size: 12px; color: var(--ink-3); }
.lv-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.lv-split > .lv-pos { align-self: start; }
/* The positions card sets the row's height; the panel never grows the page, it scrolls inside. */
.lv-side { contain: size; min-height: 480px; display: flex; flex-direction: column; padding-bottom: 0; }
.lv-side-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; min-height: 0; margin: 0 -16px; padding: 12px 16px 14px; }
.lv-pos-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lv-pos-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.lv .lv-inc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lv-inc-list > li { border-top: 1px solid var(--line); }
.lv-inc-list > li:first-child { border-top: 0; }
.lv-inc > summary { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 4px 10px; padding: 9px 0; cursor: pointer; list-style: none; font-size: 13px; }
.lv-inc > summary::-webkit-details-marker { display: none; }
.lv-inc-t { font-weight: 600; color: var(--ink); }
.lv-inc-t .lv-tag { margin-left: 6px; font-weight: 500; }
.lv-inc-s { grid-column: 2; }
.lv-inc-s .lv-verdict { margin: 0; font-size: 13px; font-weight: 500; }
.lv-inc-d { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 12px; }
.lv .mon-tile { padding: 12px 14px; }
.lv .mon-tile-k { font-size: 12px; }
.lv .mon-tile-v { font-size: 20px; }
.lv .mon-tile-v small { font-size: 13px; margin-left: 6px; }
.lv .mon-tile-d { font-size: 13px; line-height: 1.45; }
.lv .lv-stats { gap: 8px 18px; }
.lv .lv-stats-pos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px 14px; }
.lv .lv-stats-pos > div { justify-content: space-between; }
.lv .lv-stats dd { font-size: 15px; }
.lv .lv-stats-pool dd { font-size: 13px; }
.lv-tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); margin: -4px -16px 0; padding: 0 16px; }
.lv-tab { font: 600 13px var(--font); color: var(--ink-th); background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 6px 10px 9px; margin-bottom: -1px; cursor: pointer; }
.lv-tab:first-child { padding-left: 0; }
.lv-tab.is-on { color: var(--ink); border-bottom-color: var(--accent); }
.lv-pager { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.lv-pos .mon-card-sub + .lv-pager { margin-left: 10px; }
.lv-page { font: 600 16px var(--font); line-height: 1; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.lv-page:hover { border-color: var(--line-strong); }
.lv-page-n { font: 12px var(--mono); color: var(--ink-th); }
.lv-size-l { margin-left: 0; }
.lv-book { margin: 0; font-size: 13px; color: var(--ink-th); }
.lv-book span { font-family: var(--mono); font-weight: 600; }
.lv-best { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.lv-why { margin: 0; font-size: 13px; color: var(--ink-th); }
.lv-bot-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lv-bot-h .lv-sub-h0 { font-size: 13px; font-weight: 600; color: var(--ink); }
.lv-bot-h .lv-tag { margin: 0; }
.lv-hist { display: flex; flex-direction: column; gap: 8px; }
.lv-hist-sum { margin: 0; font-size: 13px; color: var(--ink); }
.lv .lv-hist-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lv .lv-hist-list li { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 2px 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.lv-hist-list li .lv-muted { grid-column: 2; font-family: var(--mono); font-size: 12px; }
.lv-when { font: 12px var(--mono); color: var(--ink-th); }
@media (max-width: 960px) {
  .lv-split { grid-template-columns: minmax(0, 1fr); }
  .lv-side { contain: none; min-height: 0; }
  .lv-side-body { overflow: visible; }
}
.lv-equity { margin: -4px 0 0; font-size: 13px; color: var(--ink-th); }
.lv-equity b { font: 600 16px var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.lv-v0 { background: #5aa9ff; }
.lv-v1 { background: #46c2b0; }
.lv-v2 { background: #b18cff; }
.lv-v3 { background: #e0a45c; }
.lv-v-idle { background: var(--ink-3); }
.lv-alloc { display: flex; flex-direction: column; gap: 6px; }
.lv-alloc-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line); }
.lv-alloc-s { height: 100%; opacity: 0.55; }
.lv-alloc-s.is-on { opacity: 1; }
.lv-alloc-s + .lv-alloc-s { box-shadow: inset 1px 0 0 var(--surface); }
.lv-alloc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; }
.lv-alloc-i { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto; grid-template-areas: "dot name val pct"; align-items: center; gap: 7px; padding: 5px 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink); font: 13px var(--font); text-align: left; cursor: pointer; }
.lv-alloc-i:hover { border-color: var(--line); }
.lv-alloc-i.is-on { border-color: var(--line-strong); background: var(--accent-soft); }
.lv-alloc-i i { width: 8px; height: 8px; border-radius: 2px; }
.lv-alloc-i i { grid-area: dot; }
.lv-alloc-i span { grid-area: name; overflow-wrap: anywhere; }
.lv-alloc-i b { grid-area: val; }
.lv-alloc-i small { grid-area: pct; }
.lv-alloc-i:not(.lv-alloc-idle) { grid-template-columns: 8px auto minmax(0, 1fr); grid-template-areas: "dot name name" ". val pct"; row-gap: 1px; }
.lv-alloc-i b { font: 600 13px var(--mono); font-variant-numeric: tabular-nums; }
.lv-alloc-i small { font: 12px var(--mono); color: var(--ink-3); min-width: 40px; text-align: right; }
.lv-alloc-idle, .lv-alloc-idle:hover { grid-column: 1 / -1; cursor: default; border-color: transparent; }
.lv-levers-t th, .lv-levers-t td { padding: 8px 6px; white-space: nowrap; }
.lv-levers-t .lv-opt { cursor: help; }
.lv-pf-legend { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--ink-th); }
.lv-lg { white-space: nowrap; cursor: default; }
.lv-lg::before { content: ""; display: inline-block; width: 14px; height: 0; margin-right: 6px; vertical-align: middle; border-top: 2px solid var(--ink-3); }
.lv-lg-hold::before { border-top-style: dashed; opacity: 0.7; }
.lv-lg-live::before { border-top-color: var(--accent); }
.lv-lg-would::before, .lv-lg-bot::before { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--ink-3); }
.lv-lg-bot::before { background: var(--warn); }
.lv-lg-rule[title] { cursor: help; }
.lv-pf-plot { position: relative; height: 200px; border-bottom: 1px solid var(--line); cursor: crosshair; }
.lv-pf-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lv-pf-band { position: absolute; top: 0; bottom: 0; background: var(--line); opacity: 0.35; border-radius: 6px 6px 0 0; pointer-events: none; }
.lv-pf-rule, .lv-pf-hold, .lv-pf-live { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.lv-pf-rule { stroke: var(--ink-3); stroke-width: 1.6; }
.lv-pf-hold { stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 4 4; opacity: 0.6; }
.lv-pf-live { stroke: var(--accent); stroke-width: 2; }
.lv-pf .lv-mark { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-width: 1.5px; }
.lv-pf .lv-mark-n { width: 18px; height: 18px; margin: -9px 0 0 -9px; display: flex; align-items: center; justify-content: center; font: 600 10px/1 var(--mono); color: var(--bg); }
.lv-pf-would { background: var(--ink-3); opacity: 0.85; }
.lv-pf-bot { background: var(--warn); }
.lv-pf-dot { background: var(--accent); }
.lv-pf-cap, .lv-pf-ax { position: absolute; padding: 0 5px; white-space: nowrap; pointer-events: none; background: var(--surface); border-radius: 3px; z-index: 1; }
.lv-pf-cap { top: 4px; font-size: 12px; line-height: 16px; color: var(--ink-th); }
.lv-pf-ax { font: 12px/16px var(--mono); color: var(--ink-3); }
.lv-pf { --lv-ax: 7ch; }
.lv-pf-plot, .lv-pf-x { margin-left: calc(var(--lv-ax) + 10px); }
.lv-pf-plot { border-left: 1px solid var(--line); font: 12px var(--mono); }
.lv-pf-plot .lv-funded span { font-family: var(--font); }
.lv-pf-ax { left: calc(-1 * var(--lv-ax) - 10px); width: var(--lv-ax); padding: 0; text-align: right; background: none; }
.lv-pf-ax-hi { top: -8px; }
.lv-pf-ax-lo { bottom: -8px; }
.lv-pf .lv-funded span { top: auto; bottom: 18px; }
.lv-funded-l span { left: auto; right: 4px; }
.lv-pf-x { position: relative; height: 17px; font: 12px var(--mono); color: var(--ink-3); }
.lv-pf-x span { position: absolute; top: 2px; white-space: nowrap; }
.lv-pf-x .lv-pf-x-c { transform: translateX(-50%); }
.lv-pf .lv-chart-h .lv-ranges { flex: none; }
.lv-pf .lv-chart-h .lv-unit { margin-left: 0; }
.lv-pf .lv-pf-legend { margin-left: 0; width: 100%; }
.lv-tip { position: absolute; top: 8px; z-index: 3; display: flex; flex-direction: column; gap: 1px; padding: 6px 9px; transform: translateX(10px); white-space: nowrap; pointer-events: none;
  font: 12px/1.45 var(--mono); color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.lv-tip-l { transform: translateX(calc(-100% - 10px)); }
.lv-tip span { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.lv-tip .lv-tip-t { color: var(--ink-th); }
@media (max-width: 640px) {
  .lv-pf-plot { height: 170px; }
  .lv-pf-x .lv-pf-x-mid { display: none; }
  .lv-alloc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lv-pf .lv-chart-h .lv-ranges { margin-left: 0; }
}
.lv-more { align-self: flex-start; font: 500 12px var(--font); color: var(--accent); background: transparent; border: 0; padding: 2px 0; cursor: pointer; }

.rp-card { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.rp-card h1 { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.rp-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.rp-meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: 12.5px; color: var(--ink-2); margin: 0; }
.rp-meta dd { margin: 0; color: var(--ink); min-width: 0; }
.rp-hash { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.rp-section { border-top: 1px solid var(--line); padding-top: 12px; }
.rp-section h2 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.rp-num { font-family: var(--mono); color: var(--ink-3); margin-right: 4px; }
.rp-claims { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rp-claims p { font-size: 13.5px; line-height: 1.55; color: var(--ink); margin: 0; overflow-wrap: anywhere; }
.rp-src { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.rp-gap, .rp-inherited { font-size: 13px; color: var(--ink-2); margin: 8px 0 0; line-height: 1.5; }
.rp-inherited strong { color: var(--ink); font-weight: 600; margin-right: 6px; }
.rp-topic { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.rp-fields { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: 12.5px; color: var(--ink-2); margin: 0 0 10px; }
.rp-fields dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.rp-fields code { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.rp-threats { margin-top: 10px; }
.rp-threshold strong { font-weight: 600; margin-right: 6px; }
.rp-gap strong { color: var(--warn); font-weight: 600; margin-right: 6px; }
.rp-title { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0; }
.rp-summary, .rp-section > p:not([class]) { font-size: 13.5px; line-height: 1.55; color: var(--ink); margin: 0 0 8px; overflow-wrap: anywhere; }
.rp-sources ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.rp-sources li { overflow-wrap: anywhere; }
@media print { .rp-card .back { display: none; } .rp-card { border: 0; } }

.side-link[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.side-link[aria-current="page"] svg { opacity: 1; }
.settings-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.settings-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.settings-copy h2 { font-size: 14px; font-weight: 600; color: var(--ink); }
.settings-copy p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.research-toggle {
  flex: none; position: relative; width: 36px; height: 20px; margin-top: 1px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--inset); cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.research-toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink-2); transition: transform .15s, background-color .15s;
}
.research-toggle[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.research-toggle[aria-checked="true"]::after { transform: translateX(16px); background: var(--accent-ink); }
.research-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.research-warning { padding: 6px 16px; background: var(--warn-soft); color: var(--warn); font-size: 12px; font-weight: 500; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) {
  #settingsToggle, .settings-card { display: none !important; }
  .research-warning:not([hidden]) { position: fixed; left: 0; top: 0; right: 0; z-index: 80; }
}



@media (max-width: 700px) {
  .discover-filters label, .designer-filters label, .filters label,
  .discover-filter-panel label, .discover-filter-checks label {
    min-height: 40px; display: flex; align-items: center; gap: 6px;
  }
  .market-recency-switch button { min-height: 40px; }
  .chip.cls, a.chip { min-height: 32px; display: inline-flex; align-items: center; }
  .flow-equal { min-height: 40px; }
  .lnk { position: relative; }
  .lnk::after { content: ""; position: absolute; inset: -11px; }
  .brand { min-height: 40px; }
  .chip-btn, .btn.quiet { min-height: 40px; }
  .mandate-field { grid-template-columns: 1fr auto; grid-template-areas: "label unit" "input input" "hint hint"; }
  .mandate-field-label { grid-area: label; }
  .mandate-field input { grid-area: input; min-height: 40px; }
  .mandate-field-hint { grid-area: hint; }
  .baseline-opt { min-height: 44px; }
  .page-index { top: 0; margin: -16px -14px 12px; padding: 5px 14px; flex-wrap: wrap; overflow-x: visible; }
  .page-index a { min-height: 40px; }
  .ext { position: relative; }
  .ext::after { content: ""; position: absolute; inset: -12px 0; }
}

