/* VOICE work: a trading desk for small test bots, shown to friends
   IDEA a transit-authority style board: deep green signal band on top, clean white sheet of figures below
   PICTURE each bot's balance curve drawn large (lane page, home), sparklines on cards, a candle scene on sign-in
   COLOUR deep green #00463c band, white sheet, lime #c8f169 lead line, coral #ff6f59 for losses
   TYPE Inter Tight 700 for titles and figures + Inter for text
   LAYOUT laptop: band with title left and figures right, chart full width under it; phone: stacked, chart inside first screen */
@font-face { font-family: "Inter"; src: url(/fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url(/fonts/intertight-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
:root { color-scheme: light dark;
  --bg: light-dark(#ffffff, #07110e); --ink: light-dark(#0d1f1a, #e7f1ec); --muted: light-dark(#4d615a, #9fb4ac);
  --line: light-dark(#dfe8e3, #1b2c26); --soft: light-dark(#f3f7f4, #0d1b17); --card: light-dark(#ffffff, #0b1814);
  --band: light-dark(#00463c, #00352d); --band2: light-dark(#0b5a4d, #0a463c); --on-band: #f2fbe6; --on-band-m: #a9d1c2;
  --lime: #c8f169; --up: light-dark(#0c8a47, #5fd790); --down: light-dark(#d9442e, #ff7a66); --coral: #ff6f59;
  --warn: light-dark(#8a5a00, #f3c766); --warn-bg: light-dark(#fff4d6, #2a2210);
  --up-bg: light-dark(#e5f6ea, #10261b); --down-bg: light-dark(#fdeae6, #2a1411); --info-bg: light-dark(#eef7dd, #16220f);
}
* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: clip; }
a { color: var(--up); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .fig-n, .brand { font-family: "Inter Tight", Inter, system-ui, sans-serif; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.05; margin: 0; }
h2 { font-size: 24px; line-height: 1.15; margin: 40px 0 14px; }
h3 { font-size: 19px; line-height: 1.2; margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(4vw, 16px); padding-right: max(4vw, 16px); }

/* top bar + green band */
.top { background: var(--band); color: var(--on-band); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { color: var(--on-band); font-size: 20px; display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
#nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
#nav a { color: var(--on-band-m); padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; }
#nav a:hover { color: var(--on-band); background: var(--band2); text-decoration: none; }
#nav a.on { color: #0d1f1a; background: var(--lime); }
#nav .who { color: var(--on-band-m); font-size: 13px; padding: 0 8px; }
#nav form { margin: 0; }
#nav button.link { color: var(--on-band-m); font-size: 14px; padding: 8px 10px; }
.band { background: var(--band); color: var(--on-band); padding-bottom: 28px; }
.band a { color: var(--lime); }
.band .muted, .band .dim { color: var(--on-band-m); }
.band .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; flex-wrap: wrap; padding-top: 22px; }
.band .fig { margin-top: 18px; }
main { padding-bottom: 48px; }
.sheet { padding-top: 26px; }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot .wrap { padding-top: 18px; padding-bottom: 24px; }

/* figures */
.figs { display: flex; gap: 10px 32px; flex-wrap: wrap; }
.fig-i b { display: block; font-family: "Inter Tight", Inter, sans-serif; font-size: 28px; line-height: 1.1; white-space: nowrap; letter-spacing: -.01em; }
.fig-i span { font-size: 13px; color: var(--muted); }
.band .fig-i span { color: var(--on-band-m); }
.band .fig-i b.up { color: var(--lime); }
.band .fig-i b.down { color: #ffb2a6; }
.figs.small .fig-i b { font-size: 19px; }
.up { color: var(--up); } .down { color: var(--down); }

/* chart boxes */
.chart { position: relative; height: 300px; }
.chart > svg { position: absolute; inset: 0; }
.chart.tall { height: 340px; }
.chart.mid { height: 230px; }
.chart.spark { height: 64px; margin: 12px 0 4px; }
.chart.hero { height: 100%; min-height: 320px; }
svg text { font: 13px Inter, system-ui, sans-serif; }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-axis { stroke: var(--muted); stroke-width: 1; }
.c-base { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; opacity: .7; }
.c-tick { fill: var(--muted); font-size: 12px; }
.c-empty { fill: var(--muted); font-size: 14px; }
.c-empty.small { font-size: 12px; }
.c-lab { fill: var(--ink); font-size: 13px; }
.c-val { fill: var(--ink); font-size: 13px; font-weight: 600; }
.c-val.up { fill: var(--up); } .c-val.down { fill: var(--down); }
.c-line { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.c-line.lead { stroke: var(--up); stroke-width: 2.5; }
.c-line.lead.down { stroke: var(--down); }
.c-line.quiet { stroke: var(--muted); stroke-width: 1.5; opacity: .45; }
.c-area.up { fill: var(--up); opacity: .12; } .c-area.down { fill: var(--down); opacity: .12; }
.c-dot { fill: var(--up); stroke: var(--bg); stroke-width: 2; } .c-dot.down { fill: var(--down); }
.c-bar.up { fill: var(--up); } .c-bar.down { fill: var(--down); } .c-bar { fill: var(--up); }
.band .c-grid { stroke: rgba(255,255,255,.12); }
.band .c-tick, .band .c-empty { fill: var(--on-band-m); }
.band .c-base { stroke: var(--on-band-m); }
.band .c-line.lead { stroke: var(--lime); stroke-width: 3; }
.band .c-line.lead.down { stroke: var(--coral); }
.band .c-line.quiet { stroke: var(--on-band); opacity: .35; }
.band .c-area.up { fill: var(--lime); opacity: .14; } .band .c-area.down { fill: var(--coral); opacity: .16; }
.band .c-dot { fill: var(--lime); stroke: var(--band); } .band .c-dot.down { fill: var(--coral); }
.band svg text { paint-order: stroke; stroke: var(--band); stroke-width: 4px; }
svg text { paint-order: stroke; stroke: var(--bg); stroke-width: 3px; }
.card svg text { stroke: var(--card); }

/* the little robot */
.bot-body { fill: var(--lime); stroke: #0d1f1a; stroke-width: 1.5; }
.bot-eye { fill: #0d1f1a; }
.bot-ant { stroke: #0d1f1a; stroke-width: 1.5; }
.bot-tip { fill: var(--coral); stroke: #0d1f1a; stroke-width: 1; }

/* sign-in scene */
.h-grid { stroke: rgba(255,255,255,.08); }
.h-wick { stroke: rgba(242,251,230,.35); stroke-width: 1; }
.h-candle.up { fill: rgba(200,241,105,.42); } .h-candle.down { fill: rgba(255,111,89,.5); }
.h-area { fill: var(--lime); opacity: .1; }
.h-eq { fill: none; stroke: var(--lime); stroke-width: 3.5; stroke-linejoin: round; }
.h-buy { fill: var(--band); stroke: var(--lime); stroke-width: 3; }
.login { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 48px; align-items: stretch; padding-top: 40px; padding-bottom: 40px; min-height: min(78svh, 640px); }
.login .txt { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.login h1 { font-size: clamp(36px, 5.4vw, 60px); }
.login p { color: var(--on-band-m); font-size: 18px; margin: 0; max-width: 34em; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { border-top: 3px solid var(--band); padding-top: 14px; }
.step svg { display: block; width: 100%; height: 120px; margin-bottom: 10px; }
.step p { margin: 6px 0 0; color: var(--muted); }
.ill-card { fill: var(--soft); stroke: var(--line); stroke-width: 1.5; }
.ill-card.front { fill: var(--card); stroke: var(--band); }
.ill-ink { fill: var(--ink); } .ill-muted { fill: var(--muted); }
.ill-track { stroke: var(--line); stroke-width: 6; stroke-linecap: round; }
.ill-fill { stroke: var(--band); stroke-width: 6; stroke-linecap: round; }
.ill-knob { fill: var(--lime); stroke: #0d1f1a; stroke-width: 1.5; }
.ill-line { fill: none; stroke: var(--up); stroke-width: 3; stroke-linejoin: round; }
.ill-down { fill: none; stroke: var(--down); stroke-width: 3; }

/* cards, grids */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; }
.card.soft { background: var(--soft); border-color: transparent; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.grid .card { margin: 0; display: flex; flex-direction: column; }
.grid .card .grow { flex: 1; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.two .card { margin: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.desc { color: var(--muted); font-size: 15px; margin-top: 6px; }
.muted { color: var(--muted); }
.dim { color: var(--muted); font-size: 14px; }
.lead-p { font-size: 17px; max-width: 46em; }

/* buttons, pills */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 8px 16px; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.btn:hover { border-color: var(--band); text-decoration: none; }
.btn:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--lime); outline-offset: 1px; }
.btn.pri { background: var(--band); border-color: var(--band); color: var(--on-band); }
.btn.pri:hover { background: var(--band2); }
.band .btn { background: transparent; color: var(--on-band); border-color: rgba(242,251,230,.35); }
.band .btn:hover { border-color: var(--lime); }
.band .btn.pri, .btn.lime { background: var(--lime); border-color: var(--lime); color: #0d1f1a; }
.btn.red { color: var(--down); }
.band .btn.red { color: #ffb2a6; }
.btn.small { min-height: 34px; padding: 4px 12px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }
button.link { background: none; border: 0; cursor: pointer; font: inherit; }
.pill { display: inline-block; font-family: Inter, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0; padding: 3px 10px; border-radius: 99px; background: var(--soft); color: var(--muted); vertical-align: middle; white-space: nowrap; }
.pill.on { background: var(--up-bg); color: var(--up); }
.band .pill.on { background: var(--lime); color: #0d1f1a; }
.band .pill.off { background: var(--band2); color: var(--on-band-m); }
.verdict { display: flex; gap: 10px; align-items: flex-start; border-radius: 10px; padding: 10px 12px; margin-top: 12px; font-size: 14px; }
.verdict i { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--muted); }
.verdict.ok { background: var(--up-bg); } .verdict.ok i { background: var(--up); }
.verdict.bad { background: var(--down-bg); } .verdict.bad i { background: var(--down); }
.verdict.gri { background: var(--soft); }

/* notes */
.note { border-radius: 10px; padding: 12px 14px; margin: 10px 0; font-size: 15px; }
.note.warn { background: var(--warn-bg); color: var(--warn); }
.note.ok { background: var(--up-bg); color: var(--up); }
.note.bad { background: var(--down-bg); color: var(--down); }
.note.info { background: var(--info-bg); color: var(--ink); }
.band .note.warn { background: rgba(243,199,102,.16); color: #ffe3a3; }
ul.warn { margin: 10px 0 0; padding-left: 20px; color: var(--warn); font-size: 14px; }

/* ask box */
.ask { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.ask textarea { min-height: 52px; }
.ask-card h3 { display: flex; align-items: center; gap: 10px; }
.ask-card .ico { width: 30px; height: 26px; flex: none; }

/* forms */
textarea, input, select { background: var(--card); border: 1px solid color-mix(in srgb, var(--muted) 45%, transparent); color: var(--ink); border-radius: 9px; padding: 9px 11px; font: inherit; font-size: 16px; }
textarea { width: 100%; min-height: 70px; resize: vertical; }
input[type=number] { width: 130px; }
input.wide { width: 100%; max-width: 360px; }
.formgrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: start; }
.formgrid .side { position: sticky; top: 16px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px 8px; margin: 0 0 16px; background: var(--card); }
legend { font-family: "Inter Tight", Inter, sans-serif; font-size: 17px; font-weight: 700; padding: 0 6px; }
.field { display: flex; flex-direction: column; gap: 4px; margin: 6px 16px 12px 0; }
.field label { font-size: 14px; color: var(--muted); }
.fields { display: flex; flex-wrap: wrap; }
.sigs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px; margin: 4px 0 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.check:has(input:checked) { border-color: var(--band); background: var(--info-bg); }
.check input { margin-top: 5px; accent-color: var(--band); }
.check b { font-family: "Inter Tight", Inter, sans-serif; }
.plain { border: 0; padding: 6px 0; }
.plain:has(input:checked) { background: none; }

/* tables */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 600; font-size: 13px; background: var(--soft); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.wrap { white-space: normal; min-width: 240px; }
tbody tr:hover td { background: var(--soft); }

.center { text-align: center; padding: 50px 10px; }
.gbtn { display: inline-flex; gap: 12px; align-items: center; background: #fff; color: #1f1f1f; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 16px; min-height: 48px; }
.gbtn:hover { text-decoration: none; box-shadow: 0 0 0 3px var(--lime); }
.gbtn svg { width: 20px; height: 20px; }
.answer { white-space: pre-wrap; }
.hidden { display: none; }
.err { color: var(--down); font-size: 15px; margin: 8px 0; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.loading { padding: 60px 0; color: var(--muted); }
.empty { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: center; }
.empty svg { width: 160px; height: 120px; }

@media (max-width: 900px) {
  .login { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .login .chart.hero { min-height: 260px; }
  .formgrid { grid-template-columns: minmax(0, 1fr); }
  .formgrid .side { position: static; order: -1; }
}
@media (max-width: 700px) {
  .two, .steps { grid-template-columns: minmax(0, 1fr); }
  .chart { height: 240px; } .chart.tall { height: 260px; }
  .fig-i b { font-size: 22px; }
  .ask { grid-template-columns: minmax(0, 1fr); }
  .empty { grid-template-columns: minmax(0, 1fr); }
  #nav .who { display: none; }
}
@media (max-width: 600px) {
  table { font-size: 13px; } th, td { padding: 8px 6px; }
  .card { padding: 14px 14px; }
}

/* header balance + mode switch */
.top .left { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; }
.bal { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bal .amt { display: flex; flex-direction: column; line-height: 1.15; }
.bal .amt span { font-size: 12px; color: var(--on-band-m); }
.bal .amt b { font-family: "Inter Tight", Inter, sans-serif; font-size: 20px; white-space: nowrap; }
.bal .amt b small { font-family: Inter, sans-serif; font-size: 13px; font-weight: 600; margin-left: 6px; }
.bal .amt b small.up { color: var(--lime); } .bal .amt b small.down { color: #ffb2a6; }
.switch { display: inline-flex; background: var(--band2); border-radius: 99px; padding: 3px; }
.switch button { border: 0; background: none; color: var(--on-band-m); font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 99px; cursor: pointer; min-height: 32px; }
.switch button.on { background: var(--on-band); color: #0d1f1a; }
.switch button.on.real { background: var(--coral); color: #1f0a06; }

/* market */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters input[type=search] { width: 260px; max-width: 100%; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 99px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; min-height: 36px; }
.chip.on { background: var(--band); color: var(--on-band); border-color: var(--band); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-right: 6px; vertical-align: middle; opacity: .5; }
.dot.live { background: var(--up); opacity: 1; }
th.sort { cursor: pointer; user-select: none; }
th.sort.on { color: var(--ink); }
.tok b { font-weight: 600; }
.tok span { color: var(--muted); font-size: 12px; margin-left: 6px; }

/* real mode */
.real { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: center; padding-top: 36px; padding-bottom: 36px; }
.real svg { width: 100%; height: 300px; }
.real ul { margin: 0; padding-left: 20px; color: var(--on-band-m); }
.real li { margin: 6px 0; }
.lock-body { fill: var(--band2); stroke: var(--on-band-m); stroke-width: 2; }
.lock-shackle { fill: none; stroke: var(--on-band-m); stroke-width: 10; stroke-linecap: round; }
.lock-hole { fill: var(--coral); }
.coin { fill: var(--lime); stroke: #0d1f1a; stroke-width: 2; }
.coin-t { fill: #0d1f1a; font: 700 22px "Inter Tight", sans-serif; }
@media (max-width: 800px) { .real { grid-template-columns: minmax(0, 1fr); } .real svg { height: 200px; } }
.band { display: flow-root; }
.band .c-lab, .band .c-val { fill: var(--on-band); }
.band .c-val.up { fill: var(--lime); } .band .c-val.down { fill: #ffb2a6; }
.band .c-bar.up, .band .c-bar { fill: var(--lime); } .band .c-bar.down { fill: var(--coral); }
.band .c-axis { stroke: var(--on-band-m); }
.lad-up { fill: var(--up-bg); stroke: var(--up); stroke-width: 1.5; }
.lad-down { fill: var(--down-bg); stroke: var(--down); stroke-width: 1.5; }
.lad-mark { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.lad-mark.up { stroke: var(--up); } .lad-mark.down { stroke: var(--down); } .lad-mark.trail { stroke: var(--band); stroke-dasharray: 4 3; } .lad-mark.buy { stroke: var(--ink); }
.lad-t { fill: var(--muted); font-size: 13px; }
.lad-t.up { fill: var(--up); font-weight: 600; } .lad-t.down { fill: var(--down); font-weight: 600; } .lad-t.buy { fill: var(--ink); font-weight: 600; } .lad-t.trail { fill: var(--ink); }
.coin-t { stroke: none; }
.real-wrap + .sheet { display: none; }
