/* MIDAS public board. DARK ONLY, PHONE FIRST: laid out for a thumb at 360 px,
   widened for larger screens. Green and red for money only; the accent only for what is selected. Fonts: Barlow and JetBrains
   Mono, SIL OFL 1.1 (fonts/OFL-*.txt), served with the files. */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 300; font-display: swap; src: url("fonts/barlow-300.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 100 800; font-display: swap; src: url("fonts/jetbrains-mono.woff2") format("woff2"); }
:root {
  --ground: #06080B; --surface: #11151C; --ink: #E8EFF6; --muted: #8494A8; --dim: #4F5C6A; --dim-text: #77848F;   /* --dim is for strokes only; quiet text uses --dim-text (4.78:1 on a card, by the contrast scan) */ --hair: #1C2330;
  --accent: #2FD8EF; --accent-rgb: 47,216,239; --live: #E8B54A;
  --ss-syd: #4C7DFF; --ss-tok: #A35CFF; --ss-lon: #E04FC8; --ss-ny: #FF8C1A;   /* the sessions, as on the lab's dashboard */
  --steel: #7E8FA3; --pos: #3BE08F; --neg: #FF6A6A; --tint: 255,255,255;
  --sans: "Barlow", -apple-system, "Segoe UI", Roboto, sans-serif; --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 15px/1.5 var(--sans); }
a { color: var(--ink); }
.page { max-width: 1080px; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 32px max(16px, env(safe-area-inset-left)); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.brand { font: 500 15px var(--mono); letter-spacing: .22em; text-decoration: none; white-space: nowrap; }
.top nav { display: flex; gap: 0; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--muted); text-decoration: none; font-size: 14.5px; white-space: nowrap; }
.gen { margin: 2px 0 14px; font: 400 12px var(--mono); color: var(--muted); }
.gen b { color: var(--ink); font-weight: 600; letter-spacing: .04em; }
h1 { font: 400 22px/1.3 var(--sans); margin: 8px 0 14px; text-wrap: balance; }
h1.lead { font-size: 21px; }
h2 { font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
section { background: var(--surface); border-radius: 6px; padding: 14px 14px 16px; margin: 12px 0; min-width: 0; }
.m, .empty { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.pos { color: var(--pos); } .neg { color: var(--neg); }
.nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; font-size: 13px; color: var(--muted); }
.nums b { display: block; font: 300 24px var(--sans); color: var(--ink); }
.seg { display: inline-flex; border: 1px solid var(--hair); border-radius: 4px; overflow: hidden; margin: 0 8px 8px 0; flex-wrap: wrap; }
.seg button { font: 500 14px var(--sans); color: var(--muted); background: none; border: 0; min-height: 44px; padding: 0 14px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--hair); }
.seg button.on { color: var(--accent); background: rgba(var(--accent-rgb), .09); box-shadow: inset 0 -2px 0 var(--accent); }
.contrast { font-size: 13.5px; margin: 4px 0 10px; }
.filters { display: grid; gap: 8px; grid-template-columns: 1fr; }
.filters input, .filters select { width: 100%; min-height: 44px; padding: 0 12px; font: 400 15px var(--sans); color: var(--ink);
  background: rgba(var(--tint), .04); border: 0; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--hair); }
.count { font: 400 12px var(--mono); color: var(--muted); margin: 10px 0 0; }
ul.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
a.card { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 10px; padding: 13px 12px; background: var(--surface);
  border-radius: 6px; text-decoration: none; min-height: 44px; }
.card .rk { grid-row: span 3; font: 300 15px var(--mono); color: var(--dim-text); }
.card .pl { display: block; font-size: 15px; line-height: 1.35; }
.card .cd { display: block; font: 400 11px var(--mono); color: var(--dim-text); margin-top: 3px; overflow-wrap: anywhere; }
.card .gr { font: 600 13px var(--mono); }
.card .mt { font-size: 13px; color: var(--muted); }
.card .money { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font: 500 13px var(--mono); }
.card .money .made { font-size: 13px; }
.card .w { padding: 1px 6px; color: var(--muted); }
.card .w.f { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); border-radius: 2px; }
button.more { display: block; width: 100%; min-height: 48px; margin: 12px 0; font: 500 15px var(--sans); color: var(--ink);
  background: var(--surface); border: 1px solid var(--hair); border-radius: 6px; cursor: pointer; }
.back { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.code { font: 400 12px var(--mono); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; overflow-wrap: anywhere; }
.chip { font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; background: rgba(var(--tint), .05); color: var(--muted); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 0; overflow: hidden; background: var(--hair); }
.st { background: var(--surface); padding: 12px; min-width: 0; }
.st .k { font: 500 9.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.st .v { font: 300 22px var(--sans); margin-top: 6px; overflow-wrap: anywhere; }
.st .s { font-size: 12px; color: var(--muted); margin-top: 4px; }
svg { display: block; width: 100%; height: auto; }
svg .ax, svg .lb, svg .vl { font: 400 10px var(--mono); fill: var(--muted); }
svg .zero { stroke: var(--dim); stroke-dasharray: 3 3; }
svg .run { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }   /* quiet: the actual result alone, thick */
svg .run.up { stroke: var(--pos); } svg .run.dn { stroke: var(--neg); }
.stats.luck { margin-top: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* three figures: never an empty cell */
svg .end { fill: var(--muted); } svg .end.pos { fill: var(--pos); } svg .end.neg { fill: var(--neg); }
svg .bg { fill: var(--hair); } svg .fg { fill: var(--steel); }
/* the sessions bar, ONE BAR, BOLD (operator; line.js): each market its own colour, never green or red
   (money) nor the accent (selected); names inside in the ground colour; the opens a LIGHT hatch the colour reads
   through; colour means live: the gold ring marks only the window open now */
svg.s4 .track { fill: var(--hair); }
svg.s4 .blk.syd { fill: var(--ss-syd); } svg.s4 .blk.tok { fill: var(--ss-tok); } svg.s4 .blk.lon { fill: var(--ss-lon); } svg.s4 .blk.ny { fill: var(--ss-ny); }
svg.s4 .nm { font: 600 10.5px var(--sans); fill: var(--ground); }
svg.s4 .kzh { stroke: var(--ink); stroke-opacity: .3; stroke-width: .9; }
svg.s4 .lit { fill: none; stroke: var(--live); stroke-width: 2; }
svg.s4 .now { stroke: var(--ink); stroke-width: 2.5; }
.sess-next { font-size: 13px; margin: 0 0 8px; }
ul.rows2, ul.rows3 { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
ul.rows2 li, ul.rows3 li { display: grid; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--hair); }
ul.rows2 li { grid-template-columns: 9.5em minmax(0, 1fr); }
ul.rows3 li { grid-template-columns: minmax(0, 1fr) auto auto; }
ul li.empty { display: block; color: var(--muted); }
ul.trades, ul.rows2s { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
ul.trades li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--hair); }
ul.trades .r { text-align: right; font: 400 13px var(--mono); }
ul.trades .x { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; }
ul.rows2s { margin-top: 10px; }
ul.rows2s li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--hair); }
ul.rows2s li span:last-child { font: 400 13px var(--mono); color: var(--muted); }
ul.rows3 li span:not(:first-child) { text-align: right; font-family: var(--mono); font-size: 13px; }
footer { margin: 24px 0 0; }
.notice, .rule { font-size: 12px; color: var(--muted); margin: 6px 0; max-width: 70ch; }
/* THE FIRST SCREEN (operator): what this is, why it is different, and what a visitor can do, before any
   scrolling on a phone; then the findings, then the record. */
.top nav a.wide { display: none; }
.hero { background: none; border-radius: 0; padding: 6px 0 4px; }    /* on the ground, not a card */
.eyebrow { font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 4px 0 8px; }
.hero h1 { font: 400 26px/1.18 var(--sans); letter-spacing: -.01em; margin: 0 0 10px; text-wrap: balance; }
.hero .sub { font-size: 15.5px; line-height: 1.45; color: var(--muted); margin: 0 0 14px; max-width: 34em; }
ul.facts { list-style: none; margin: 0 0 14px; padding: 12px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
ul.facts li { font-size: 12.5px; line-height: 1.3; color: var(--muted); min-width: 0; }
ul.facts b { display: block; font: 300 30px/1.1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; margin-bottom: 2px; }
.act { display: grid; gap: 8px; }
a.btn { display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 10px 16px; border-radius: 6px;
  text-decoration: none; font: 500 16px var(--sans); color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); }
a.btn span { font: 400 13px var(--sans); opacity: .75; margin-top: 2px; }
a.btn.pri { background: var(--ink); color: var(--ground); box-shadow: none; }
a.btn:focus-visible, .todo a:focus-visible, details.words summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.findings .big { font: 400 20px/1.3 var(--sans); margin: 0 0 10px; text-wrap: balance; }
.findings p { margin: 0 0 10px; max-width: 62ch; }
h3 { font: 500 13px var(--sans); color: var(--ink); margin: 16px 0 8px; }
svg .base { stroke: var(--dim); } svg .goal { stroke: var(--ink); stroke-dasharray: 3 3; }
ul.when { list-style: none; margin: 0; padding: 0; }
ul.when li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
ul.when li span { color: var(--muted); }
ul.when li b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.who p { margin: 0; max-width: 62ch; font-size: 15px; }
.todo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.todo a { display: block; padding: 12px; border-radius: 4px; text-decoration: none; background: rgba(var(--tint), .03); box-shadow: inset 0 0 0 1px var(--hair); }
.todo a b { display: block; font-weight: 500; font-size: 15.5px; }
.todo a span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; }
h2.sect { font: 400 22px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); margin: 28px 0 6px; scroll-margin-top: 12px; }
.intro { font-size: 14px; color: var(--muted); margin: 0 0 10px; max-width: 62ch; }
details.words { margin: 0 0 12px; }
details.words summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 14.5px; color: var(--ink); }
dl { margin: 4px 0 0; font-size: 13.5px; }
dt { font-weight: 500; margin-top: 10px; }
dd { margin: 2px 0 0; color: var(--muted); }
footer .gen { margin: 0 0 8px; }
/* FIGURES NOT RELIED ON (operator): a notice above every figure on a flagged system's page and a marker on its
   card. Never green or red (money), never gold (live), never the accent (selected): the ink outline of a warning to heed. */
section.lflag { box-shadow: inset 0 0 0 1.5px var(--ink); }
.lflag h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; color: var(--ink); font-weight: 600; }
.lflag-d { font: 400 11.5px var(--mono); letter-spacing: 0; text-transform: none; color: var(--muted); }
.lflag p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.fmark { display: inline-block; margin-left: 6px; padding: 0 5px; font: 500 10.5px/1.6 var(--mono); color: var(--ink);
  border: 1px solid var(--ink); border-radius: 2px; white-space: nowrap; }
/* BOTH RECORDS: the first figures beside the recomputed ones, under the notice. Ink only, like the notice. */
.recomp ul.rc { list-style: none; margin: 0; padding: 0; }
.recomp .rc li { padding: 10px 0; border-top: 1px solid var(--hair); }
.recomp .rw { margin: 0 0 6px; font-size: 14px; color: var(--ink); }
.recomp .rp { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13.5px; color: var(--muted); }
.recomp .rp b { font: 500 15px var(--mono); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.recomp p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
@media (min-width: 520px) { .top nav a.wide { display: inline-flex; } .brand { font-size: 17px; letter-spacing: .3em; } }
@media (min-width: 700px) {
  .hero h1 { font-size: 40px; max-width: 18em; } .hero .sub { font-size: 17px; }
  ul.facts b { font-size: 40px; } .act { grid-template-columns: auto auto; justify-content: start; }
  .todo ul { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: 28px; } h1.lead { font-size: 26px; max-width: 30em; }
  .nums { grid-template-columns: repeat(4, 1fr); }
  .filters { grid-template-columns: 2fr 1fr 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  a.card { grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; }
  .card .rk { grid-row: auto; }
  .card .nm { grid-column: 2; } .card .gr, .card .money { grid-column: 3; justify-self: end; }
  .card .mt { grid-column: 2 / 4; }
}
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(5, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }

/* ===== PUBLIC-RESTYLE-1 (operator; docs/PUBLIC_RESTYLE_1_DECLARED.md): the dashboard's look, nothing
   else. The values are the dashboard's own (lab/web/static/next.css): the panel lifts rather than outlines, the tile is a
   small grey capital label over a large light value, the top bar is its tabs, the Results list its All lines table. ===== */
:root { --surface-hi: #161B24; --rowline: rgba(28,35,48,.6); --drop-c: #000; }
.top { padding-block: 14px 10px; gap: 18px; flex-wrap: wrap; }
.brand { font: 500 17px/1 var(--sans); letter-spacing: .26em; }   /* 500: the heaviest Barlow the site ships */
.top nav { gap: 3px; flex-wrap: wrap; margin-left: auto; }
.top nav a.tab { display: inline-flex; align-items: center; min-height: 40px; padding: 0 13px; border-radius: 3px;
  font: 400 13.5px var(--sans); color: var(--muted); text-decoration: none; }
.top nav a.tab:hover { color: var(--ink); background: var(--surface); }
.top nav a.tab.on { color: var(--accent); background: rgba(var(--accent-rgb), .09);
  box-shadow: inset 0 -1px 0 var(--accent), 0 0 22px -8px rgba(var(--accent-rgb), .8); }
.top nav a.tab:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
section { background: linear-gradient(180deg, var(--surface-hi), var(--surface)); border-radius: 5px; padding: 16px 16px 18px;
  margin: 16px 0; box-shadow: 0 1px 0 rgba(var(--tint), .035) inset, 0 18px 40px -28px var(--drop-c); }
section.hero { background: none; box-shadow: none; padding: 6px 0 4px; }
h2 { font: 500 9.5px/1.3 var(--mono); letter-spacing: .2em; }
/* tiles: the dashboard's stat strip */
.stats { gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 4px; padding: 0; box-shadow: none; }
.st { background: var(--surface); padding: 12px 15px 14px; }
.st .k { font: 500 9.5px/1.3 var(--mono); letter-spacing: .2em; color: var(--muted); }
.st .v { font: 300 27px/1 var(--sans); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.015em; margin-top: 9px; }
.st .s { font-size: 11px; color: var(--dim-text); margin-top: 6px; }
.stats.luck .st .v { font-size: 23px; }
/* the front page's headline numbers as a row of tiles: label over value (the words and figures as they were) */
ul.facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 0; background: var(--hair);
  border: 1px solid var(--hair); border-radius: 4px; overflow: hidden; }
ul.facts li { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 9px; background: var(--surface);
  padding: 12px 15px 14px; font: 500 9.5px/1.3 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
ul.facts b { font: 300 27px/1 var(--sans); letter-spacing: -.015em; margin: 0; text-transform: none; }
section.nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; padding: 0; overflow: hidden;
  background: var(--hair); border: 1px solid var(--hair); border-radius: 4px; box-shadow: none; }
section.nums > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 9px; background: var(--surface);
  padding: 12px 15px 14px; font: 500 9.5px/1.3 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
section.nums b { font: 300 27px/1 var(--sans); letter-spacing: -.015em; color: var(--ink); text-transform: none; }
/* Results: the dashboard's All lines table (column headers per ranking; cards on a phone) */
.thead { display: none; }
ul.cards { gap: 8px; }
a.card { background: linear-gradient(180deg, var(--surface-hi), var(--surface)); border-radius: 5px; }
@media (min-width: 700px) {
  ul.cards { gap: 0; background: linear-gradient(180deg, var(--surface-hi), var(--surface)); border-radius: 0 0 5px 5px; padding: 0 8px 6px; }
  .thead { gap: 10px; padding: 14px 20px 10px; background: var(--surface-hi); border-radius: 5px 5px 0 0;
    font: 500 9.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--hair); }
  body[data-view="quality"] .thead.q, body:not([data-view]) .thead.q, body[data-view="money"] .thead.m { display: grid; }
  .thead.q, body:not([data-view="money"]) a.card { grid-template-columns: 40px minmax(0, 1.6fr) 84px minmax(0, 1.4fr); }
  .thead.m, body[data-view="money"] a.card { grid-template-columns: 40px minmax(0, 1.3fr) minmax(0, 1.7fr); }
  a.card { background: none; border-radius: 0; border-bottom: 1px solid var(--rowline); padding: 10px 12px; align-items: center; }
  a.card:hover { background: rgba(var(--tint), .025); }
  .card .nm { grid-column: auto; } .card .gr, .card .money { grid-column: auto; justify-self: start; }
  .card .mt { grid-column: auto; }
}

/* PUBLIC-PANELS-1: the glance tiles and the result strip, every tile the same size and weight */
.stats.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .stats.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.st .v.pos { color: var(--pos); } .st .v.neg { color: var(--neg); }
/* PUBLIC-GLOBE-1 amendment 1: the private Live board's Engine core panel, its rules taken from
   lab/web/static/next.css with its own values */
.core { --surface-hi: #161B24; --core-bot: #0C1016; --tip-bg: rgba(9,12,16,.94); --core-shade: #000; --k-inst: #DEE8F2; --k-grey: #56606C;
  position: relative; margin-top: 16px; border-radius: 5px; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-hi), var(--core-bot));
  box-shadow: 0 1px 0 rgba(var(--tint),.035) inset, 0 18px 40px -28px var(--core-shade);
  padding: 14px 18px 11px;
}
.core .bar { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.core .bar .t { font: 500 10px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.core .bar .t::before { content: "\25CF"; color: var(--dim-text); margin-right: 9px; font-size: 7px; vertical-align: 2px; }
.core .bar .d { font: 400 11px var(--mono); color: var(--dim-text); }
.coregrid { display: grid; grid-template-columns: 196px minmax(0,1fr) 176px; gap: 16px; align-items: center; margin-top: 10px; }
@media (max-width: 920px) { .coregrid { grid-template-columns: minmax(0,1fr); } .orbwrap { order: -1; } }
.feeds { display: grid; gap: 7px; }
.feed { border-left: 2px solid var(--hair); padding: 1px 0 1px 11px; }
.feed .r { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.feed .n { font: 400 10px var(--mono); letter-spacing: .14em; color: var(--muted); }
.feed .q { font: 400 17px var(--mono); font-variant-numeric: tabular-nums; }
.feed svg { width: 100%; height: 16px; display: block; margin-top: 2px; }
.outs { display: grid; gap: 11px; justify-items: end; text-align: right; }
.out .n { font: 400 10px var(--mono); letter-spacing: .14em; color: var(--muted); }
.out .q { font: 300 22px var(--sans); font-variant-numeric: tabular-nums; margin-top: 2px; }
.out .s { font: 400 10.5px var(--mono); color: var(--dim-text); }
.orbwrap { position: relative; min-width: 0; }
.orbwrap canvas { display: block; width: 100%; height: 268px; }
.orbwrap .tip { min-width: 250px; max-width: 340px; }
@media (max-width: 920px) { .orbwrap canvas { height: 215px; } }
.orbcap { position: absolute; left: 0; right: 0; text-align: center; font: 400 10.5px var(--mono); color: var(--muted); }
.orbcap.top { top: 2px; } .orbcap.bot { bottom: 2px; color: var(--dim-text); }
.orbcap b { color: var(--ink); font-weight: 400; letter-spacing: .12em; margin-right: 9px; }
@media (max-width: 600px) { .orbcap { position: static; padding: 2px 4px; } }
.corefoot { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: flex-end; margin-top: 10px; border-top: 1px solid var(--hair); padding-top: 10px; }
.keys { display: flex; gap: 18px; flex-wrap: wrap; font: 400 10.5px var(--mono); color: var(--dim-text); }
.keys i { font-style: normal; display: inline-block; width: 13px; height: 2px; margin-right: 7px; vertical-align: 3px; border-radius: 2px; }
.k-inst { background: var(--k-inst); } .k-grey { background: var(--k-grey); }
.epm { text-align: right; }
.epm .n { font: 400 9.5px var(--mono); letter-spacing: .14em; color: var(--dim-text); }
.epm .s { font: 400 10px var(--mono); color: var(--dim-text); margin-top: 3px; }
.core .tip { position: absolute; pointer-events: none; background: var(--tip-bg); border-radius: 4px; padding: 9px 11px; font: 400 12px/1.5 var(--sans);
  box-shadow: 0 0 0 1px var(--hair), 0 12px 30px -12px var(--core-shade); z-index: 3; }
.core .tip .k { font: 500 9px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.core .tip .mt6 { margin-top: 6px; } .core .tip .muted { color: var(--muted); }
/* PUBLIC-GLOBE-1 amendment 2: the front page on the private Live board's own page shell; the values are
   next.css's own (header, period buttons, the strip of four tiles, the sessions panel, the small labels) */
.pers { display: flex; gap: 2px; flex-wrap: wrap; width: 100%; order: 10; }
.pers button { font: 400 12px var(--sans); color: var(--muted); background: none; border: 0; padding: 5px 10px; border-radius: 3px; cursor: pointer; }
.pers button:hover { color: var(--ink); background: var(--surface); }
.pers button.on { color: var(--accent); background: rgba(var(--accent-rgb),.09); box-shadow: inset 0 -1px 0 var(--accent); }
.pers button:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.topline { margin: 2px 0 10px; font: 400 12.5px/1.45 var(--sans); color: var(--muted); }
.topline b { color: var(--ink); font-weight: 500; }
.glbl { margin: 14px 0 6px; }
.glbl .lbl { font: 500 9.5px/1.3 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
section.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; padding: 0; margin: 0; background: var(--hair);
  border: 1px solid var(--hair); border-radius: 4px; overflow: hidden; box-shadow: none; }
@media (max-width: 560px) { section.strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
section.strip .st { background: var(--surface); padding: 12px 15px 14px; min-width: 0; }
section.strip .st .s { overflow-wrap: anywhere; }
.cap { margin: 6px 0 0; font-size: 11px; line-height: 1.45; color: var(--dim-text); }
section.sesspanel { background: none; box-shadow: none; padding: 0; margin: 12px 0 0; }
section.sesspanel .glbl { margin-top: 0; }
section.sesspanel .sess { margin-top: 0; }
.pers button { text-transform: none; }
.pers button::first-letter { text-transform: uppercase; }   /* the private board's Today, This week, This month, Since start */
/* PUBLIC-GLOBE-1 amendment 2, the nine fixes (after the operator's look in Safari): matched to the private Live
   board exactly, the values next.css's own */
/* 1. the private page's width and side margins (the front page) */
.page.wide { max-width: 1240px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 52px; }
/* 2. the tabs in a row right after the wordmark */
.top { justify-content: flex-start; gap: 26px; padding-block: 18px 16px; }
.top nav { margin-left: 0; }
/* 3. the glance and sessions labels kept for screen readers only */
.glbl { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 4. the sessions: one box as private (.sess, .sess-glance), the KZ marks over the hatch, the caption inside */
section.sesspanel { margin: 10px 0 0; padding: 7px 12px 6px; border-radius: 4px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); min-width: 0; }
section.sesspanel .sess-next { margin: 0; font-size: 12px; }
section.sesspanel .cap { margin: 4px 0 0; }
svg.s4 .s4-kzl { font: 400 9px var(--mono); fill: var(--ink); }
/* 5. the Engine core's left column compact: the label with its count beside it, the flat line under, rows close */
.core .feeds { align-content: center; gap: 7px; }
.core .feed { line-height: 1.25; }
.core .feed .r { justify-content: flex-start; gap: 10px; }
.core .feed svg { height: 16px; }
/* 6. one centred line above the globe */
.core .orbcap.top { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.core .orbcap .one { display: inline; }
/* 7. the right column's captions one line each, given the room */
.coregrid { grid-template-columns: 196px minmax(0,1fr) max-content; }
@media (max-width: 920px) { .coregrid { grid-template-columns: minmax(0,1fr); } }
.core .outs { line-height: 1.3; }
.core .out .s { white-space: nowrap; }
/* 8. the table panel straight after the Engine core: the private panel, header line and table, pills included */
section.panel { background: linear-gradient(180deg, var(--surface-hi), var(--surface)); border-radius: 5px; margin: 16px 0 0; padding: 18px 20px 20px;
  box-shadow: 0 1px 0 rgba(var(--tint),.035) inset, 0 18px 40px -28px var(--drop-c); min-width: 0; }
.phead { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.phead .lbl { font: 500 9.5px/1.3 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.phead .count { margin: 0; }
.rankbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 12px 0 14px; }
.rankbar .seg { display: inline-flex; flex-wrap: nowrap; margin: 0; border: 1px solid var(--hair); border-radius: 3px; overflow: hidden; }
.rankbar .seg button { font: 500 12px var(--sans); min-height: 0; padding: 7px 13px; }
.rankbar .seg button.on { box-shadow: inset 0 -1px 0 var(--accent); }
.rankbar .contrast { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); flex: 1 1 300px; max-width: 92ch; }
@media (min-width: 601px) { .rest .filters input, .rest .filters select { min-height: 36px; font-size: 13px; } }
.rest .scroll { overflow-x: auto; margin-top: 14px; }
table.rtab { width: 100%; border-collapse: collapse; font-size: 13px; }
table.rtab th { font: 500 9.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: right;
  padding: 0 12px 10px; white-space: nowrap; border-bottom: 1px solid var(--hair); }
table.rtab td { text-align: right; padding: 9px 12px; border-bottom: 1px solid var(--rowline); white-space: nowrap; }
table.rtab th:first-child, table.rtab td:first-child, table.rtab th.l, table.rtab td.l { text-align: left; }
table.rtab tbody tr:hover td { background: rgba(var(--tint),.022); }
table.rtab tbody tr.go { cursor: pointer; }
table.rtab td.r { color: var(--dim-text); width: 34px; }
table.rtab td.nm { white-space: normal; min-width: 22rem; max-width: 30rem; padding-top: 6px; padding-bottom: 6px; }
table.rtab td.nm .pl { display: block; font: 400 13px/1.35 var(--sans); color: var(--ink); text-decoration: none; }
table.rtab td.nm .pl:hover { text-decoration: underline; }
table.rtab td.nm .cd { display: block; font: 400 10.5px/1.3 var(--mono); color: var(--dim-text); margin-top: 2px; overflow-wrap: anywhere; }
table.rtab td.nm .bz { display: block; font: 400 10.5px/1.3 var(--mono); color: var(--dim-text); margin-top: 2px; }   /* BOARD-HONESTY-1 sentence, under the serial and status */
table.rtab td.gr { font: 500 12px var(--mono); }
table.rtab td.mt { color: var(--muted); white-space: normal; }
table.rtab td.wcell { font-size: 13px; font-weight: 500; white-space: normal; }
table.rtab td.wcell .made { margin-right: 6px; font-family: var(--mono); }
table.rtab td.empty { text-align: left; color: var(--muted); }
.wflag { display: inline-block; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 2px; padding: 0 5px; margin: 2px 4px 2px 0; }
.wok { display: inline-block; color: var(--muted); padding: 0 6.5px; margin: 2px 4px 2px 0; }
#resthead tr { display: none; }
body[data-view="quality"] #resthead tr.q, body:not([data-view]) #resthead tr.q, body[data-view="money"] #resthead tr.m { display: table-row; }
.rest button.more { margin: 14px 0 0; }
section.about-rest { background: none; box-shadow: none; padding: 0; margin: 8px 0 0; }
section.about-rest h2.sect { margin-top: 20px; }
/* the private board on a phone: the table becomes one column of rows, nothing scrolls sideways */
@media (max-width: 600px) {
  section.panel { padding: 14px 14px 16px; }
  #resthead { display: none; }
  #cards, #cards tr, #cards td { display: block; }
  #cards tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 13px 2px; border-bottom: 1px solid var(--rowline); }
  #cards td { padding: 0; border: 0; white-space: normal; text-align: left; }
  #cards td.r { order: -1; width: auto; }
  #cards td.nm { flex: 1 1 calc(100% - 44px); min-width: 0; max-width: none; padding: 0; }
  #cards td.nm .pl { font-size: 14px; }
  #cards td.wcell { flex-basis: 100%; }
}
/* amendment 3: the as-of line beside the period buttons, small */
.asofs { order: 11; flex-basis: 100%; margin-top: -20px; }
.asof { margin: 0; line-height: 1.5; font: 400 11px var(--mono); color: var(--dim-text); }
/* PUBLIC-GLOBE-1 amendment 4 (after the operator's comparison at 1470 x 956) */
/* 1. the line above the globe: in the flow, centred, clear space under it; never over the globe, wrapping on a phone */
.core .orbcap.top { position: static; white-space: normal; overflow: visible; text-overflow: clip; padding: 0 4px 8px; justify-content: center; text-align: center; }
/* 2. the table on the private table's markup: one boxed cell per column */
table.rtab td.nm { text-align: left; }
table.rtab td.c, table.rtab td.gr, table.rtab td.made { white-space: nowrap; }
table.rtab td.c .wflag, table.rtab td.c .wok, table.rtab td.gr .wok { margin: 0; font-size: 12.5px; }
table.rtab td.gr .wok { font: 500 12px var(--mono); color: var(--ink); }
table.rtab td.made { font: 500 13px var(--mono); }
table.rtab td.e .vrule { margin: 0; }
@media (max-width: 600px) {
  #cards td.c, #cards td.gr { flex: 0 0 auto; }
  #cards td.made { font-size: 15px; flex-basis: 100%; }
}
/* PUBLIC-STRIP-1: the top strip, the private ticker's rules (next.css .ticker) above the header; with reduced motion
   it does not scroll and shows every item once, wrapping, readable without the animation */
.ticker {
  border-bottom: 1px solid var(--hair); overflow: hidden; white-space: nowrap;
  font: 400 9.5px/1 var(--mono); color: var(--dim-text); letter-spacing: .07em;
  padding-block: 7px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ticker span { padding-right: 34px; }
.ticker span.again { padding-right: 0; }
.ticker b { color: var(--muted); font-weight: 400; }
@media (prefers-reduced-motion: no-preference) {
  .ticker .run { display: inline-block; animation: slide 170s linear infinite; }
  @keyframes slide { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) {
  .ticker { white-space: normal; line-height: 1.7; -webkit-mask-image: none; mask-image: none; }
  .ticker span { display: inline-block; padding-right: 24px; }
}
/* on a phone, still: one line the visitor can swipe along, so the strip does not push the page down */
@media (prefers-reduced-motion: reduce) and (max-width: 600px) {
  .ticker { white-space: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .ticker span { display: inline; }
}
/* PUBLIC-STRIP-1 item 1: the Engine core's left column as it looks on the private board while markets are open. There a
   delivering feed's row also takes the header's .live rule (next.css: display flex, centred, gap 7px, 12px sans, muted),
   so the label, the count and the line sit on one tight row, the line beside the count; the border and line are steel */
.core .feed { display: flex; align-items: center; gap: 7px; font: 400 12px var(--sans); color: var(--muted); border-left-color: var(--steel); }
/* PUBLIC-PANEL-1: the system panel, the private Live board's strategy panel (next.css .panel.sel, .strat, .idrow, .chip,
   .hero, .facts, .acts, .btn, .chartwrap, .plot, .legend), scoped to the panel so the public page's own rules of the same
   names are untouched; percent only */
section.panel.sys { box-shadow: 0 1px 0 rgba(var(--tint),.05) inset, 0 0 0 1px rgba(var(--accent-rgb),.26), 0 20px 48px -26px rgba(var(--accent-rgb),.22); }
.sys > .lbl { font: 500 9.5px/1.3 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.sys .lbl { font: 500 9.5px/1.3 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.sys .desc { color: var(--muted); font-size: 13px; margin: 11px 0 0; }
.sys .sysnote { margin: 6px 0 16px; }
.sys .strat { display: grid; grid-template-columns: minmax(0,330px) minmax(0,1fr); gap: 32px; }
@media (max-width: 900px) { .sys .strat { grid-template-columns: minmax(0,1fr); gap: 26px; } }
.sys .plainname { font: 400 17px/1.35 var(--sans); color: var(--ink); margin: 0 0 8px; max-width: 64ch; text-wrap: balance; }
.sys .idrow { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.sys .rank { font: 300 15px var(--mono); color: var(--dim-text); }
.sys .name { font: 500 12.5px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.sys .chip { font: 500 9.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; white-space: nowrap;
  color: var(--steel); background: rgba(var(--tint),.045); text-decoration: none; }
.sys .chip.warn { color: var(--ink); background: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
.sys a.chip.vrule { color: var(--accent); background: rgba(var(--accent-rgb),.12); }
.sys .hero { margin-top: 20px; padding: 0; }
.sys .hero .big { font: 300 44px/1 var(--sans); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.025em; margin-top: 6px; color: var(--ink); }
.sys .hero .big.pos { color: var(--pos); }
.sys .hero .big.neg { color: var(--neg); }
.sys .hero .sub { display: flex; gap: 13px; align-items: baseline; flex-wrap: wrap; margin: 9px 0 0; font-size: 13px; color: var(--muted); max-width: none; }
.sys .hero .sub .num { font: 500 16px var(--mono); color: var(--ink); }
.sys .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 16px; margin-top: 18px; }
.sys .facts .v { font: 400 15px var(--mono); margin-top: 5px; font-variant-numeric: tabular-nums; }
.sys .facts .v small { color: var(--dim-text); font-size: 11.5px; margin-left: 5px; }
.sys .acts { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.sys a.btn { display: inline-block; min-height: 0; font: 500 11px var(--mono); letter-spacing: .13em; text-transform: uppercase; padding: 10px 17px;
  border-radius: 3px; box-shadow: none; color: var(--ground); background: var(--ink); text-decoration: none; }
.sys a.btn:hover { filter: brightness(1.08); }
.sys .chartwrap { min-width: 0; }
.sys .ctop { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.sys .plot { position: relative; margin-top: 10px; height: 340px; }
.sys .plot svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sys .plot .grid { stroke: rgba(var(--tint),.06); stroke-width: 1; }
.sys .plot .zero { stroke: rgba(var(--tint),.22); stroke-width: 1; stroke-dasharray: 3 4; }
.sys .plot .ax { fill: var(--dim-text); font: 400 10px var(--mono); }
.sys .plot .uw { fill: var(--muted); font: 400 9px var(--mono); letter-spacing: 2px; }
.sys .plot .run { fill: none; stroke-width: 3; stroke-linejoin: round; }
.sys .plot .under { fill: var(--neg); opacity: .44; }
.sys .legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: 11.5px; color: var(--dim-text); }
.sys .legend i { font-style: normal; display: inline-block; width: 16px; height: 2px; vertical-align: middle; margin-right: 7px; border-radius: 2px; }
.sys .k-pos { background: var(--pos); } .sys .k-neg { background: var(--neg); } .sys .k-neg75 { background: var(--neg); opacity: .75; }
.sys .empty { margin-top: 14px; }
@media (max-width: 600px) { .sys .plot { height: 260px; } .sys .hero .big { font-size: 38px; } }
table.rtab tr.go:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
