/* The Brain - control room for a trading bot.
   Identity colors are reserved for the two competitors: --you (your picks) and --bot (its picks).
   Everything else is neutral slate; green/red only for P&L, always with a sign. */
:root {
  color-scheme: light;
  --bg: #eef1f4;
  --panel: #ffffff;
  --panel-2: #f5f7f9;
  --ink: #15202b;
  --ink-2: #4a5866;
  --muted: #7d8995;
  --line: #dce2e8;
  --axis: #c3cbd3;
  --you: #2a78d6;
  --bot: #eb6834;
  --you-wash: rgba(42, 120, 214, 0.09);
  --bot-wash: rgba(235, 104, 52, 0.10);
  --up: #0b7a35;
  --up-mark: #0ca30c;
  --down: #c8332f;
  --down-wash: rgba(200, 51, 47, 0.08);
  --warn: #8a5a00;
  --warn-mark: #fab219;
  --warn-wash: rgba(250, 178, 25, 0.16);
  --focus: #2a78d6;
  --pop-shadow: 0 8px 28px rgba(21, 32, 43, 0.14);
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e141a; --panel: #151d25; --panel-2: #1b2530; --ink: #e8edf2; --ink-2: #a9b4bf; --muted: #74808c;
    --line: #26313c; --axis: #33404c; --you: #3987e5; --bot: #d95926;
    --you-wash: rgba(57, 135, 229, 0.14); --bot-wash: rgba(217, 89, 38, 0.15);
    --up: #2fbf5b; --down: #ef6b67; --down-wash: rgba(239, 107, 103, 0.12); --warn: #fab219;
    --warn-wash: rgba(250, 178, 25, 0.12); --focus: #6aa6f0; --pop-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e141a; --panel: #151d25; --panel-2: #1b2530; --ink: #e8edf2; --ink-2: #a9b4bf; --muted: #74808c;
  --line: #26313c; --axis: #33404c; --you: #3987e5; --bot: #d95926;
  --you-wash: rgba(57, 135, 229, 0.14); --bot-wash: rgba(217, 89, 38, 0.15);
  --up: #2fbf5b; --down: #ef6b67; --down-wash: rgba(239, 107, 103, 0.12); --warn: #fab219;
  --warn-wash: rgba(250, 178, 25, 0.12); --focus: #6aa6f0; --pop-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font-ui); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--you); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
code { font-size: 0.92em; background: var(--panel-2); padding: 1px 5px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ticker symbols and headline figures: DIN, the face of exchange boards */
.tk, .figure { font-family: var(--font-num); font-stretch: semi-condensed; letter-spacing: 0.01em; }
.tk { font-weight: 600; font-size: 15px; }
.figure { font-weight: 500; font-variant-numeric: lining-nums; }

/* -- frame: left rail + main ------------------------------------------------------------- */
.app { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px;
  background: var(--panel); border-right: 1px solid var(--line); padding: 18px 12px 14px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; font-weight: 650; font-size: 16px; }
.brand svg { width: 26px; height: 26px; flex: none; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2);
  text-decoration: none; font-size: 14px;
}
.nav a svg { width: 18px; height: 18px; flex: none; opacity: 0.8; }
.nav a:hover { background: var(--panel-2); color: var(--ink); }
.nav a.active { background: var(--panel-2); color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--ink); }
.nav .badge-n { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px 6px 0; border-top: 1px solid var(--line); }
.botline { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.botline .dot { margin-top: 6px; }
.botline b { display: block; font-weight: 600; }
.botline span { color: var(--muted); font-size: 12px; }
.rail-actions { display: flex; gap: 6px; }
.rail-actions button { flex: 1; }

main { padding: 28px clamp(20px, 2.6vw, 44px) 40px; width: 100%; min-width: 0; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 26px; font-weight: 650; letter-spacing: -0.015em; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); max-width: 70ch; }
.page-head .grow { flex: 1; }

.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; display: inline-block; }
.dot.on { background: var(--up-mark); box-shadow: 0 0 0 3px rgba(12, 163, 12, 0.2); }
.dot.off { background: var(--down); }
.dot.warn { background: var(--warn-mark); }

/* -- banners ------------------------------------------------------------------------------ */
.kill-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 18px;
  background: var(--down); color: #fff; border-radius: 10px; font-weight: 600; }
.kill-banner button { background: #fff; color: var(--down); border-color: #fff; }
.notice { padding: 10px 14px; margin-bottom: 18px; border-radius: 10px; background: var(--warn-wash); color: var(--ink); }

/* -- controls ----------------------------------------------------------------------------- */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 7px 13px;
  cursor: pointer; font-size: 13.5px; line-height: 1.2; text-decoration: none; color: var(--ink);
}
button:hover { background: var(--panel-2); }
button:disabled { opacity: 0.5; cursor: default; }
button.primary { background: var(--ink); border-color: var(--ink); color: var(--panel); font-weight: 600; }
button.primary:hover { opacity: 0.9; background: var(--ink); }
button.danger { background: var(--down); border-color: var(--down); color: #fff; font-weight: 600; }
button.danger:hover { opacity: 0.92; background: var(--down); }
button.quiet { border-color: transparent; background: transparent; color: var(--ink-2); }
button.quiet:hover { background: var(--panel-2); color: var(--ink); }
button.ghost-danger { color: var(--down); }
button.sm { padding: 4px 9px; font-size: 12.5px; border-radius: 6px; }
input[type=text], input[type=password], input[type=number], input[type=search], select, textarea {
  border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 8px 11px; min-width: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px var(--you-wash); }
.seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.seg button { border: 0; background: transparent; border-radius: 7px; padding: 5px 12px; color: var(--ink-2); }
.seg button.on { background: var(--panel); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.switch { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--axis); border: 0; padding: 0; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.switch.on { background: var(--ink); }
.switch.on::after { transform: translateX(16px); }
.switch:hover { background: var(--muted); }
.switch.on:hover { background: var(--ink); opacity: 0.9; }

/* -- panels ------------------------------------------------------------------------------- */
.stack { display: grid; gap: 20px; }
.cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); align-items: start; }

/* Today: a 12-column grid that re-flows on wide screens */
.dash { display: grid; gap: 20px; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
.dash > * { grid-column: span 12; min-width: 0; }
@media (min-width: 1180px) {
  .dash .w7 { grid-column: span 7; }
  .dash .w5 { grid-column: span 5; }
  .dash .w6 { grid-column: span 6; }
}
@media (min-width: 1700px) {
  .dash .xl-w8 { grid-column: span 8; }
  .dash .xl-w4 { grid-column: span 4; }
}
.settings-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 620px), 1fr)); align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; min-width: 0; }
.panel > .table-wrap { margin: 0 -22px; }
.panel > .table-wrap table th:first-child, .panel > .table-wrap table td:first-child { padding-left: 22px; }
.panel > .table-wrap table th:last-child, .panel > .table-wrap table td:last-child { padding-right: 22px; }
.panel > h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; font-size: 15px; font-weight: 650; }
.panel > h2 small { font-weight: 400; color: var(--muted); font-size: 13px; }
.panel > h2 .grow { flex: 1; }
.panel.flush { padding: 0; }
.panel.flush > h2 { padding: 16px 20px 0; }
.sub-h { font-size: 13.5px; font-weight: 600; margin: 18px 0 8px; color: var(--ink-2); }
.empty { color: var(--muted); padding: 22px 6px; text-align: center; }
.empty b { color: var(--ink); }
.hint { color: var(--muted); font-size: 12.5px; }
.pos { color: var(--up); }
.neg { color: var(--down); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* -- the trading day strip (overview hero) -------------------------------------------------- */
.day { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px 14px; }
.day-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 14px; }
.day-head .state { font-size: 22px; font-weight: 650; letter-spacing: -0.01em; }
.day-head .detail { color: var(--ink-2); }
.day-head .grow { flex: 1; }
.day svg { display: block; width: 100%; overflow: visible; }
.day .track { fill: var(--panel-2); }
.day .done { fill: var(--you-wash); }
.day .hour { stroke: var(--line); }
.day .hour-l { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.day .now { stroke: var(--ink); stroke-width: 2; }
.day .now-l { fill: var(--ink); font-size: 11px; font-weight: 600; }
.day .decide { fill: var(--ink); }
.day .check { stroke: var(--axis); stroke-width: 2; }
.day .ev-you { fill: var(--you); stroke: var(--panel); stroke-width: 2; }
.day .ev-bot { fill: var(--bot); stroke: var(--panel); stroke-width: 2; }
.day .ev-x { fill: var(--muted); stroke: var(--panel); stroke-width: 2; }
.day-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; color: var(--ink-2); font-size: 12.5px; }
.day-legend span { display: inline-flex; align-items: center; gap: 6px; }
.day-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }

/* -- you vs bot ---------------------------------------------------------------------------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.side { padding: 18px 22px; position: relative; }
.side + .side { border-left: 1px solid var(--line); }
.side::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; }
.side.you::before { background: var(--you); }
.side.bot::before { background: var(--bot); }
.side .who { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.side .who .sw { width: 10px; height: 10px; border-radius: 3px; }
.side.you .sw { background: var(--you); }
.side.bot .sw { background: var(--bot); }
.side .who small { font-weight: 400; color: var(--muted); }
.side .big { font-size: 38px; line-height: 1.1; margin: 10px 0 2px; }
.side .chg { font-size: 14px; }
.side dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; }
.side dt { color: var(--muted); font-size: 12px; }
.side dd { margin: 2px 0 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.lead-tag { font-size: 12px; color: var(--ink-2); background: var(--panel-2); border-radius: 999px; padding: 2px 9px; margin-left: auto; }

/* -- tables -------------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr:hover td { background: var(--panel-2); }
tr.buy td { background: var(--you-wash); }
tr.sell td { background: var(--warn-wash); }
tr.dim td { color: var(--muted); }
.who-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.who-chip i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.who-chip.you i { background: var(--you); }
.who-chip.bot i { background: var(--bot); }
.who-chip.ext i { background: var(--axis); }
a.tk { color: var(--ink); text-decoration: none; cursor: pointer; }
a.tk:hover { color: var(--you); text-decoration: underline; text-underline-offset: 3px; }
.co { color: var(--muted); font-size: 12.5px; display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--panel-2); color: var(--ink-2); white-space: nowrap; }
.tag.buy { background: var(--ink); color: var(--panel); }
.tag.sell { background: var(--warn-mark); color: #15202b; }
.tag.good { background: rgba(12, 163, 12, 0.13); color: var(--up); }
.tag.bad { background: var(--down-wash); color: var(--down); }
.tag.warn { background: var(--warn-wash); color: var(--warn); }
.reasons { color: var(--ink-2); font-size: 13px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }

/* -- toolbar / chips ----------------------------------------------------------------------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar .grow { flex: 1; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; background: var(--panel); color: var(--ink-2); }
.chip.on { background: var(--ink); color: var(--panel); border-color: var(--ink); }

/* -- picks: search ------------------------------------------------------------------------- */
.search { position: relative; flex: 1 1 420px; max-width: 600px; }
.search input { width: 100%; padding: 11px 14px 11px 40px; font-size: 15px; border-radius: 10px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.results { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--pop-shadow); overflow: hidden; max-height: 420px; overflow-y: auto; }
.result { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; padding: 9px 12px; cursor: pointer; }
.result:hover, .result.sel { background: var(--panel-2); }
.result .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.result .ex { color: var(--muted); font-size: 12px; margin-left: 6px; }
.note-input { width: 100%; border: 1px solid transparent; background: transparent; padding: 4px 6px; border-radius: 6px; font-size: 13px; color: var(--ink-2); }
.note-input:hover { border-color: var(--line); }
.note-input:focus { background: var(--panel); }

/* -- settings ------------------------------------------------------------------------------ */
.form-grid { display: grid; gap: 0; }
.field { display: grid; grid-template-columns: minmax(180px, 44%) minmax(0, 1fr); gap: 8px 24px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: 0; }
.field label { font-weight: 550; }
.field .help { color: var(--muted); font-size: 12.5px; margin-top: 2px; font-weight: 400; }
.field .ctl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.field input[type=number] { width: 130px; }
.field .was { color: var(--muted); font-size: 12.5px; }
.field .was button { padding: 0; border: 0; background: none; color: var(--you); font-size: 12.5px; }
.savebar { position: sticky; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-top: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--pop-shadow); }
.savebar .grow { flex: 1; }

/* -- charts -------------------------------------------------------------------------------- */
.chart-box { position: relative; width: 100%; }
.tv { width: 100%; }
.legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 0 0 10px; font-size: 12.5px; color: var(--ink-2); min-height: 20px; }
.legend .when { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 84px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.legend i { display: inline-block; width: 14px; height: 2px; border-radius: 1px; }
.legend i.box { width: 9px; height: 9px; border-radius: 2px; }
.legend i.up { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid; background: none; border-radius: 0; }
.legend i.down { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 8px solid; background: none; border-radius: 0; }
.tooltip { position: fixed; z-index: 60; pointer-events: none; min-width: 150px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 9px; box-shadow: var(--pop-shadow); padding: 9px 11px; font-size: 12.5px; }
.tooltip .t-head { color: var(--muted); margin-bottom: 4px; }
.tooltip .t-row { display: flex; align-items: center; gap: 8px; }
.tooltip .t-row i { width: 12px; height: 2px; border-radius: 1px; flex: none; }
.tooltip .t-row b { font-variant-numeric: tabular-nums; font-weight: 600; }
.tooltip .t-row span { color: var(--ink-2); }

/* -- events --------------------------------------------------------------------------------- */
.events { list-style: none; margin: 0; padding: 0; }
.events li { display: grid; grid-template-columns: 128px 84px 1fr; gap: 12px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.events li:last-child { border-bottom: 0; }
.events .when { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.events .lvl-warning .msg { color: var(--warn); }
.events .lvl-error .msg { color: var(--down); font-weight: 500; }
.events.compact li { grid-template-columns: 74px 1fr; }
.events.compact .kind { display: none; }

/* -- modal / drawer / toast ------------------------------------------------------------------ */
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(14, 20, 26, 0.45); display: flex; justify-content: flex-end; }
.drawer { background: var(--panel); width: min(860px, 100%); height: 100%; overflow-y: auto; padding: 22px 26px; box-shadow: var(--pop-shadow); }
.drawer-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.drawer-head h3 { margin: 0; font-size: 28px; font-weight: 600; }
.drawer-head .grow { flex: 1; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 70; background: var(--ink); color: var(--panel); padding: 11px 15px; border-radius: 10px; font-size: 13.5px; max-width: 440px; box-shadow: var(--pop-shadow); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
pre.config { background: var(--panel-2); border-radius: 8px; padding: 12px; overflow: auto; font-size: 12px; max-height: 480px; margin: 0; }
.callout { border-radius: 10px; background: var(--panel-2); padding: 12px 14px; margin-bottom: 16px; color: var(--ink-2); }
.callout b { color: var(--ink); }
.callout.warn { background: var(--warn-wash); color: var(--ink); }
.callout.you { background: var(--you-wash); color: var(--ink); }
.split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.foot { margin-top: 28px; color: var(--muted); font-size: 12px; }
.foot a { color: var(--muted); }
.bt-list { max-height: 78vh; overflow-y: auto; padding: 10px; }
.bt-item { padding: 9px 11px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.bt-item:hover { background: var(--panel-2); }
.bt-item.active { border-color: var(--ink); }
.bt-grp { color: var(--muted); font-size: 12px; margin: 10px 6px 4px; }

/* -- login ---------------------------------------------------------------------------------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px; }
.login .brand { padding: 0 0 6px; font-size: 20px; }
.login p { color: var(--ink-2); margin: 0 0 20px; }
.login label { display: block; font-weight: 550; margin-bottom: 6px; }
.login input { width: 100%; padding: 11px 13px; font-size: 15px; }
.login button { width: 100%; margin-top: 16px; padding: 11px; font-size: 15px; }
.login .err { color: var(--down); min-height: 20px; margin-top: 10px; font-size: 13.5px; }

/* -- small screens -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .rail { position: sticky; top: 0; z-index: 25; height: auto; flex-direction: row; align-items: center; padding: 8px 12px; gap: 8px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .brand { padding: 0 6px 0 0; }
  .brand span { display: none; }
  .nav { flex-direction: row; }
  .nav a { padding: 7px 10px; white-space: nowrap; }
  .nav a svg { display: none; }
  .nav a.active { box-shadow: inset 0 -2px 0 var(--ink); }
  .rail-foot { margin: 0 0 0 auto; padding: 0; border: 0; flex-direction: row; align-items: center; }
  .botline div { display: none; }
  .rail-actions .quiet { display: none; }
  main { padding: 18px 16px 50px; }
  .cols { grid-template-columns: 1fr; }
  .versus { grid-template-columns: 1fr; }
  .side + .side { border-left: 0; border-top: 1px solid var(--line); }
  .side dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .field { grid-template-columns: 1fr; }
  .events li { grid-template-columns: 1fr; gap: 2px; }
}
