/* Our pages: a trading terminal, not a dashboard. Geist, near-black with a blue cast, hairlines instead of boxes,
   figures in Geist Mono, one accent (the site's blue), thin ticks for charts (the logo's bars). */
@font-face { font-family: 'Geist'; src: url('/fonts/geist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist-mono.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #06070B; --card: #0B0C10; --card2: #101114; --line: #1C1E26; --line2: #2A2D38;
  --tx: #FCFCFC; --mut: #C8C9D1; --dim: #828598; --blue: #0099FF; --mint: #2FE3AC; --red: #EC397A; --amber: #F5B83D;
  --r: 6px; --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--tx); font: 14px/1.5 'Geist', system-ui, sans-serif; -webkit-font-smoothing: antialiased; letter-spacing: -0.005em; }
a { color: inherit; text-decoration: none; }
.num, td.n, .kpi b { font-variant-numeric: tabular-nums; }
td.n, .num { font-family: var(--mono); font-size: 13px; letter-spacing: 0; }
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; padding: 0 28px;
  background: rgba(6,7,11,.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.nav nav { display: flex; gap: 22px; white-space: nowrap; color: var(--dim); font-size: 14px; font-weight: 500; }
.nav nav a:hover { color: var(--mut); } .nav nav a.on { color: var(--tx); }
.nav-r { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--dim); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 6px; background: var(--tx); color: #06070B;
  font-weight: 500; font-size: 14px; border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; letter-spacing: -0.01em; }
.btn:hover { background: #fff; }
.btn.ghost { background: transparent; color: var(--tx); border: 1px solid var(--line2); }
.btn.ghost:hover { border-color: #3A3E4C; }
.btn.blue { background: var(--blue); color: #fff; }
.btn[disabled] { opacity: .4; cursor: default; }
main { max-width: 1280px; margin: 0 auto; padding: 44px 28px 96px; min-height: 70vh; }
h1 { font-size: 44px; line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 12px; }
h2 { font-size: 16px; letter-spacing: -0.01em; font-weight: 500; margin: 0 0 14px; }
h3 { font-size: 13px; font-weight: 500; margin: 0 0 10px; color: var(--dim); }
.lead { color: var(--dim); font-size: 16px; max-width: 720px; margin: 0 0 32px; line-height: 1.55; }
.lead b { color: var(--tx); font-weight: 500; }
.sub { color: var(--dim); font-size: 13px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } .g5 { grid-template-columns: repeat(5, 1fr); }
.g-main { grid-template-columns: 1.6fr 1fr; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card .hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.card .hd h2, .card .hd h3 { margin: 0; }
/* stats: no tiles, a ruled row of figures */
.grid.g4:has(> .kpi), .grid.g5:has(> .kpi) { gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card.kpi { background: none; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 18px 22px; }
.card.kpi:first-child { border-left: 0; padding-left: 0; }
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi span { color: var(--dim); font-size: 12.5px; font-weight: 500; }
.kpi b { font-size: 30px; font-weight: 500; letter-spacing: -0.035em; line-height: 1.15; }
.kpi em { font-style: normal; color: var(--dim); font-size: 12.5px; }
.up { color: var(--mint); } .down { color: var(--red); } .blue { color: var(--blue); } .amber { color: var(--amber); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--dim); font-weight: 400; font-size: 12px; padding: 0 20px; height: 44px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 0 20px; height: 52px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: var(--card2); }
tr.fresh { animation: fresh 1.8s ease-out; }
@keyframes fresh { from { background: rgba(0,153,255,.12); } to { background: transparent; } }
.acct { color: var(--tx); font-family: var(--mono); font-size: 13px; }
.acct:hover { color: var(--blue); }
.tx { color: var(--dim); font-family: var(--mono); font-size: 13px; } .tx:hover { color: var(--blue); }
.kind { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.kind i { width: 3px; height: 14px; border-radius: 1.5px; display: inline-block; }
.k-arb i { background: var(--blue); } .k-sandwich i { background: var(--red); } .k-snipe i { background: var(--mint); } .k-dev i { background: var(--dim); }
.scroll { overflow-x: auto; }
/* charts: thin ticks, grey, the current minute in blue */
.bars { display: flex; align-items: flex-end; justify-content: space-between; height: 132px; padding: 22px 20px 18px; }
.bars div { flex: 0 0 3px; border-radius: 1.5px; background: #2E3140; position: relative; min-height: 3px; }
.bars div:hover { background: var(--tx); }
.bars div.now { background: var(--blue); }
.bars div:hover::after { content: attr(data-t); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 8px; background: var(--card2); border: 1px solid var(--line2);
  padding: 5px 9px; border-radius: 4px; font-size: 12px; white-space: nowrap; color: var(--tx); z-index: 3; font-family: var(--mono); }
.clock { display: flex; align-items: center; gap: 18px; }
.clock .big { font-size: 56px; font-weight: 500; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.phases { display: grid; grid-template-columns: 40fr 15fr 5fr; gap: 3px; margin: 16px 0 6px; }
.phases div { height: 3px; border-radius: 2px; background: var(--line2); position: relative; overflow: hidden; }
.phases div b { position: absolute; inset: 0; width: 0; background: var(--blue); }
.phases div.r b { background: var(--tx); } .phases div.s b { background: var(--mint); }
.plabels { display: grid; grid-template-columns: 40fr 15fr 5fr; gap: 3px; color: var(--dim); font-size: 12px; }
.plabels .on { color: var(--tx); }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sp { justify-content: space-between; }
input, select { height: 40px; background: var(--card); border: 1px solid var(--line2); border-radius: 6px; color: var(--tx); padding: 0 12px; font: inherit; font-size: 14px; outline: none; }
input:focus, select:focus { border-color: var(--blue); }
input.wide { flex: 1; min-width: 260px; font-family: var(--mono); font-size: 13px; }
.seg { display: inline-flex; gap: 4px; }
.seg button { background: transparent; border: 0; color: var(--dim); font: inherit; font-size: 14px; font-weight: 500; padding: 6px 10px; border-radius: 6px; cursor: pointer; }
.seg button:hover { color: var(--mut); }
.seg button.on { color: var(--tx); background: var(--card2); }
.empty { color: var(--dim); padding: 28px 20px; text-align: center; height: auto; }
.verdict { font-size: 15px; font-weight: 500; margin: 0 0 6px; letter-spacing: -0.01em; }
.v-clean { color: var(--mint); } .v-light { color: var(--mut); } .v-sniped { color: var(--amber); } .v-heavy { color: var(--red); }
.figure { font-size: 112px; font-weight: 600; letter-spacing: -0.055em; line-height: .95; margin: 6px 0 10px; }
.meter { height: 40px; display: flex; gap: 0; justify-content: space-between; }
.meter i { width: 3px; border-radius: 1.5px; background: #1A1C24; display: block; }
.meter i.s { background: var(--blue); } .meter i.d { background: var(--mut); }
.heat { display: grid; grid-template-columns: repeat(60, 1fr); gap: 2px; padding: 16px 20px 20px; }
.heat i { aspect-ratio: 1; border-radius: 1px; background: #12131A; display: block; }
.share { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.cardimg { width: 100%; border-radius: 4px; border: 1px solid var(--line); display: block; }
.note { color: var(--dim); font-size: 13px; margin-top: 12px; line-height: 1.55; }
.foot { max-width: 1280px; margin: 0 auto; padding: 40px 28px 50px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; color: var(--dim); font-size: 14px; }
.foot > div { display: flex; flex-direction: column; gap: 9px; }
.foot p { margin: 6px 0 0; color: var(--dim); }
.foot .fine { grid-column: 1 / -1; font-size: 12.5px; }
.foot a:hover { color: var(--tx); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--card2); border: 1px solid var(--line2); padding: 12px 18px; border-radius: 6px; font-size: 14px; z-index: 50; }
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 48px; }
.docs aside { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 9px; color: var(--dim); font-size: 14px; font-weight: 500; }
.docs aside a.on, .docs aside a:hover { color: var(--tx); }
.docs article { max-width: 740px; }
.docs article h2 { margin-top: 40px; font-size: 22px; letter-spacing: -0.02em; }
.docs article p, .docs article li { color: var(--mut); line-height: 1.65; }
pre, code { font-family: var(--mono); font-size: 12.5px; }
pre { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; overflow-x: auto; color: var(--mut); }
p code, li code, td code { background: var(--card2); padding: 1px 6px; border-radius: 4px; color: var(--mut); }
.docs-solo h2 { margin-top: 32px; font-size: 20px; } .docs-solo p { color: var(--mut); line-height: 1.65; }
@media (max-width: 980px) {
  .nav nav { display: none; } .g-main, .g2, .g3 { grid-template-columns: 1fr; } .g4, .g5 { grid-template-columns: 1fr 1fr; }
  .card.kpi { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; } .card.kpi:nth-child(-n+2) { border-top: 0; }
  main { padding: 28px 16px 64px; } h1 { font-size: 32px; } .figure { font-size: 72px; } .foot { grid-template-columns: 1fr 1fr; padding: 32px 16px; }
  .docs { grid-template-columns: 1fr; } .docs aside { position: static; flex-direction: row; flex-wrap: wrap; }
  td, th { padding: 0 12px; } .nav { padding: 0 16px; } .nav-r .btn { display: none; } .heat { grid-template-columns: repeat(30, 1fr); }
}

canvas.stream { display: block; width: 100%; height: 170px; }
.embed .nav, .embed .foot { display: none; }
.embed main { padding-top: 28px; }

tr.mevrow td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
tr.focus { background: rgba(0,153,255,.08); }
.leg { padding: 2px 0; white-space: nowrap; } .leg b { font-weight: 500; font-size: 13px; }
td:has(.leg) { height: auto; padding-top: 12px; padding-bottom: 12px; }

/* the hour card: a chart that fills, an axis, the hour in facts, the top takers */
.card.hour { display: flex; flex-direction: column; }
.chart { display: grid; grid-template-columns: 56px 1fr; padding: 18px 20px 0 8px; }
.yax { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--dim); text-align: right; padding-right: 10px; height: 200px; }
.bars.tall { height: 200px; padding: 0; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-left: 6px; }
.xax { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); padding: 6px 20px 0 70px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 16px; }
.facts > div { padding: 14px 18px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.facts > div:first-child { border-left: 0; }
.facts span { color: var(--dim); font-size: 12px; font-weight: 500; } .facts b { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; } .facts em { font-style: normal; color: var(--dim); font-size: 12px; }
@media (max-width: 980px) { .facts { grid-template-columns: 1fr 1fr; } .facts > div:nth-child(3) { border-left: 0; } }
