@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700;
  font-display: swap; src: url("space-grotesk.woff2") format("woff2");
}
:root {
  color-scheme: dark;
  --paper: #101012; --surface: #19191d; --raised: #222226;
  --ink: #f4f2f3; --muted: #b4b1bb; --line: #3b3940;
  --ice: #b5d4ff; --coral: #ff927a; --aqua: var(--ice);
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}
::selection { background: #b5d4ff; color: #17171c; }
header { background: #141416; border-bottom: 1px solid var(--line); }
.bar { min-height: 88px; gap: 42px; }
.brand { font-size: 2rem; font-weight: 700; gap: 11px; line-height: 1; }
.brand img { width: 76px; height: 50px; }
.bar nav { gap: 3px; }
.bar nav button { color: var(--muted); }
.bar nav button[aria-current] { color: var(--ink); border-bottom-color: var(--coral); }
.bar nav button[aria-current] .ico, .cross { color: var(--coral); }
.bar nav button:hover { background: var(--raised); color: var(--ink); }
.demo, .count { background: #242327; border: 1px solid var(--line); color: #cac7d0; }
h1 { font-weight: 600; font-size: 2.9rem; }
h2, h3 { font-weight: 600; }
.context { color: #c1bec8; }
.lead { max-width: 80ch; }
.scopeLine { font: 500 .875rem/1.55 var(--mono); color: var(--ice); }
.controls, .tablebox, dialog, .empty { background: var(--surface); border-color: var(--line); }
.controls .ico, .projection .tag, .pos, .hrstat b { color: var(--ice); }
label { color: #d7d4de; }
select, input { color: var(--ink); background-color: var(--paper); border-color: #54515b; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23c8c3cf' stroke-width='1.6'/%3E%3C/svg%3E"); }
select option { color: var(--ink); background: var(--surface); }
input::placeholder { color: #a4a1ab; }
.coin { background: #33425c; color: #e4edff; }
.segments { background: var(--paper); border: 1px solid var(--line); }
.segments button[aria-pressed="true"] { background: #36343c; color: var(--ink); box-shadow: none; }
.projection {
  position: relative; isolation: isolate; overflow: hidden;
  background: #202126; border: 1px solid #454750; border-top: 2px solid #90b8eb;
}
.projection::before {
  content: ""; position: absolute; z-index: -1; right: 0; top: 0; width: 34%; height: 109px;
  background: repeating-linear-gradient(126deg, transparent 0 12px, #9098a2 12px 13px);
  opacity: .13; mask-image: linear-gradient(230deg, #000, transparent 75%); pointer-events: none;
}
.heroNumber { font-family: "Space Grotesk", sans-serif; font-size: 3.25rem; font-weight: 600; }
.heroNumber small, .sub, .statlist span, .legend, .chartfoot, .hrstat small,
.mutedline, .returnbars span { color: #c4c2cb; }
.statlist { border-color: #4b4952; }
.statlist b, .returnbars b { color: var(--ink); }
.track { background: #35353b; }
.track:after { border-color: #b0acb8; }
.track i, .key, .barcol .one { background: #99c3ff; }
.returnbars>div+div i, .key.alt, .barcol .two { background: #deb1a6; }
.cmd, .action, .projection .cmd { background: #26262c; color: var(--ink); border-color: #55525d; }
.cmd:hover, .action:hover, .projection .cmd:hover, .dialogbar button:hover { background: #343640; border-color: var(--ice); }
.cmd:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible,
summary:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.movementActions button[aria-pressed="true"] { color: var(--ice); background: #293548; border-color: #738cac; }
th { background: #252429; color: #c6c3cd; }
tbody tr:hover { background: #222227; }
.rowFocus { background: #20242c; box-shadow: inset 3px 0 #91baff; }
.glyph { background: #2d303d; color: #c3cffa; }
.glyph.pool { background: #382e2d; color: #ffc4ae; }
.glyph.lend { background: #2c3541; color: #abd7ff; }
.badge { background: #303644; color: #cedcff; }
.medium { background: #3b3327; color: #f9d69c; }
.high { background: #422929; color: #ffc0b3; }
.neg, .flowmark[data-kind="Out of exchange"] { color: #ffac98; }
.flowmark { color: #cdcad3; }
.flowmark[data-kind="Into exchange"] { color: var(--ice); }
a, .links a, .sub a, .sourcebar a, .ledger a, .coverage a, .trail a, footer b { color: var(--ice); }
.stamp, .coverage, #whalePages, footer { color: var(--muted); border-color: var(--line); }
dialog::backdrop { background: #07070acd; }
.skip:focus { background: var(--raised); color: var(--ink); }
@media (max-width: 940px) { .bar { gap: 16px; } .bar nav button { padding-inline: 8px; } }
@media (max-width: 760px) {
  .bar { gap: 0; min-height: 0; } .brand { font-size: 1.65rem; gap: 8px; }
  .brand img { width: 57px; height: 38px; }
  .bar nav button { padding-inline: 2px; }
  h1 { font-size: 2.15rem; } .heroNumber { font-size: 2.5rem; }
  .tablebox { background: transparent; } table tr { background: var(--surface); }
  td[data-label]::before { font-family: inherit; }
}
.capModes button{padding:9px 12px}.capModes{min-width:255px}
.learnGrid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 36px}
.learnGrid article {border-top:1px solid var(--line);padding:19px 0 22px}
.learnGrid h2 {margin:0}
.learnGrid p {line-height:1.6;max-width:64ch;margin:8px 0 12px}
.learnGrid a {color:var(--ice);text-underline-offset:3px}
.fundStyle {color:var(--ice);font-size:.83rem;display:block;margin-top:4px}
@media(max-width:680px){.learnGrid{grid-template-columns:minmax(0,1fr)}}
@media (min-width:761px) and (max-width:1100px) {
  .bar { display:grid; grid-template-columns:1fr auto; gap:0; padding-top:8px; }
  .bar nav { grid-column:1/-1; grid-row:2; }
  .bar nav button { min-height:44px; }
  .demo { grid-column:2; grid-row:1; }
}
@media (max-width:630px) {
  .bar nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 6px; }
  .bar nav button { min-height:44px; padding-inline:6px; gap:6px; }
}
.movePanel{margin:24px 0;border-block:1px solid var(--line);padding:18px 0 20px}
.movePanel h2 .ico{color:var(--ice)}.moveGrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:30px}
.moveInputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.moveGrid .muted{margin-top:10px;line-height:1.5}
#moveResult{border-left:2px solid var(--ice);padding:4px 0 4px 16px;align-self:center;color:var(--muted);font-size:.92rem}
#moveResult strong{display:block;color:var(--ink);font-size:1.28rem;margin-bottom:5px}#moveResult dl{margin:8px 0}#moveResult dl div{padding:4px 0}
#rankScope{margin-bottom:14px}#rankRows a{color:var(--ice)}.capModes button{white-space:nowrap}
@media(max-width:760px){.moveGrid{grid-template-columns:1fr;gap:16px}.capModes{min-width:min(100%,255px)}#rankRows td:last-child{grid-column:1/-1}.moveInputs label{min-height:2.4em}}
