/* The look of the trader's page (S186, lines 11 to 84): its colours, light and dark by what
   the browser asks for, its cards, tables, headline figures and badges. Dash serves every
   file in this folder with the page. */
:root {
  --bg:#eef1f4; --panel:#fff; --ink:#16212c; --muted:#5d6b7a; --grid:#e2e7ec;
  --future:rgba(22,33,44,.05); --line:#d3dae1;
  --c-freq:#0b6e8f; --c-fpnout:#b0306a; --c-up:#2f7d4f; --c-down:#c0392b; --err:#b42318; color-scheme:light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:#12181f; --panel:#1a222b; --ink:#e8edf2; --muted:#93a1b0; --grid:#28323d;
    --future:rgba(255,255,255,.06); --line:#2e3945;
    --c-freq:#3fb6d9; --c-fpnout:#ef7fb0; --c-up:#5cc98a; --c-down:#ff7b6b; --err:#ff8a80; color-scheme:dark;
  }
}
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink);
  font:400 15px/1.5 'IBM Plex Sans', system-ui, sans-serif; }
main { max-width:1120px; margin:0 auto; padding:32px 20px 56px; }
h1 { font-size:28px; font-weight:600; margin:0 0 4px; letter-spacing:-.01em; }
.lede { margin:0 0 24px; color:var(--muted); }
.panel { background:var(--panel); border:1px solid var(--line); border-radius:10px;
  padding:20px 20px 12px; margin-bottom:24px; }
.panel header { display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:12px; }
h2 { font-size:18px; font-weight:600; margin:0; }
.note { margin:2px 0 0; color:var(--muted); font-size:13px; max-width:60ch; }
.head-right { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.big { font-size:30px; font-weight:600; font-variant-numeric:tabular-nums; color:var(--c-freq); }
.delta { margin-left:8px; font-size:13px; color:var(--muted); }
.seg { display:inline-flex; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.seg button { background:transparent; color:var(--ink); border:0; padding:6px 12px;
  font:inherit; font-size:13px; cursor:pointer; }
.seg button + button { border-left:1px solid var(--line); }
.seg button.on { background:var(--c-freq); color:#fff; }
.seg button:focus-visible { outline:2px solid var(--c-freq); outline-offset:-2px; }
.status { margin-top:8px; font-size:12px; color:var(--muted); }
.tablewrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:14px; font-variant-numeric:tabular-nums; }
th, td { text-align:left; padding:7px 10px; border-bottom:1px solid var(--line); white-space:nowrap; }
th { font-weight:500; color:var(--muted); }
th.num, td.num { text-align:right; }
tfoot td { font-weight:600; border-bottom:0; }
.hasfpn { color:var(--c-fpnout); font-weight:500; }
.stats { display:flex; gap:28px; flex-wrap:wrap; }
.stat .lbl { font-size:13px; color:var(--muted); }
.stat .val { font-size:22px; font-weight:600; font-variant-numeric:tabular-nums; }
.stat .sub { font-size:13px; color:var(--muted); font-variant-numeric:tabular-nums; }
.up { color:var(--c-up); } .down { color:var(--c-down); }
.feed { max-height:440px; overflow-y:auto; border:1px solid var(--line); border-radius:8px; }
.feed thead th { position:sticky; top:0; background:var(--panel); z-index:1; }
.dir { display:inline-block; min-width:48px; padding:1px 8px; border-radius:4px; font-size:13px;
  font-weight:500; color:#fff; text-align:center; }
.dir.up { background:var(--c-up); } .dir.down { background:var(--c-down); }
@media (prefers-color-scheme: dark) { .dir { color:#12181f; } }
.flags { color:var(--muted); font-size:13px; }
tr.new td { animation:flash 2.5s ease-out; }
@keyframes flash { from { background:var(--future); } to { background:transparent; } }
@media (prefers-reduced-motion: reduce) { tr.new td { animation:none; } }
.basis { color:var(--muted); font-size:13px; }
.uname { font-weight:500; }
.ucode { display:block; color:var(--muted); font-size:12px; }
@media (max-width:600px) { main { padding:20px 12px 40px; } .panel { padding:14px 10px 10px; } }
