/* GIGWORK: hi-vis work-site identity. Asphalt, safety lime, signal orange,
   expanded grotesk for shouting, mono for the time clock. */
:root {
  --bg: #0d0e0b;
  --bg-2: #121310;
  --surface: #17181a;
  --surface-2: #1d1f1c;
  --chart: #141513;
  --ink: #f3f2ea;
  --ink-2: #c9c8bd;
  --muted: #9c9b92;
  --hair: rgba(255, 255, 255, 0.09);
  --hair-2: rgba(255, 255, 255, 0.16);
  --hi: #d4ff3a;
  --hi-ink: #0d0e0b;
  --or: #ff6a1f;
  /* chart roles (validated: dark mode, surface #141513, all-pairs pass) */
  --s1: #3987e5;
  --s2: #d95926;
  --s3: #199e70;
  --grid: #2a2b27;
  --axis: #3a3b36;
  --good: #0ca30c;
  --warn: #fab219;
  --bad: #d03b3b;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 14px;
  --pad: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 5px; }
img { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--hi); outline-offset: 2px; }

/* ---------------------------------------------------------------- tape */
.tape { position: sticky; top: 0; z-index: 60; height: 30px; overflow: hidden; color: var(--hi-ink); font: 800 12px/30px var(--display); font-stretch: 125%; letter-spacing: 0.12em;
  background: repeating-linear-gradient(-45deg, var(--hi) 0 22px, #c3ec2f 22px 44px); border-bottom: 2px solid var(--hi-ink); }
.tape-track { display: flex; width: max-content; animation: tape 38s linear infinite; }
.tape-track span { padding: 0 28px; white-space: nowrap; }
.tape-track span::before { content: "\25B2"; margin-right: 12px; font-size: 10px; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- nav */
.nav { position: sticky; top: 30px; z-index: 50; display: flex; align-items: center; gap: 20px; padding: 10px var(--pad); background: rgba(13, 14, 11, 0.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--hair); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 18px var(--display); font-stretch: 125%; letter-spacing: 0.02em; }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 14px; padding: 6px 10px; border-radius: 8px; }
.nav-links a:hover { color: var(--ink); background: var(--surface); }
@media (max-width: 520px) { .clock-date { display: none; } .brand span { font-size: 16px; } }
.clock { font: 500 12px var(--mono); color: var(--hi); border: 1px solid rgba(212, 255, 58, 0.35); padding: 5px 9px; border-radius: 6px; white-space: nowrap; }
@media (max-width: 900px) { .nav-links { display: none; } .clock { margin-left: auto; } }

/* ---------------------------------------------------------------- chips */
/* Small honest label on modeled/illustrative sections: visible, not shouting. */
.sim-chip { display: inline-block; font: 700 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 6px; border-radius: 4px; vertical-align: 2px; white-space: nowrap; color: var(--hi); border: 1px solid rgba(212, 255, 58, 0.45); background: rgba(212, 255, 58, 0.06); }
.model-note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; font: 500 12px/1.4 var(--mono); color: var(--muted); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(36px, 7vw, 96px) var(--pad) clamp(28px, 5vw, 64px); max-width: 1400px; margin: 0 auto; }
.hero-grid { position: absolute; inset: 0; z-index: -1; opacity: 0.55; pointer-events: none;
  background-image: linear-gradient(var(--hair) 1px, transparent 1px), linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 30% 30%, #000 20%, transparent 75%); }
.kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; font: 500 13px var(--mono); color: var(--ink-2); }
.kicker b { color: var(--hi); font-weight: 500; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hi); display: inline-block; }
.dot.live { box-shadow: 0 0 0 0 rgba(212, 255, 58, 0.6); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 12px rgba(212, 255, 58, 0); } }
.display { font-family: var(--display); font-stretch: 125%; font-weight: 900; letter-spacing: -0.01em; line-height: 0.92; text-transform: uppercase; margin: 0; }
.hero h1 { font-size: clamp(40px, 5.1vw, 96px); }
@media (max-width: 980px) { .hero h1 { font-size: clamp(40px, 9.6vw, 96px); } }
.hero h1 .line { display: block; opacity: 0; transform: translateY(0.35em); animation: rise 0.7s cubic-bezier(.2,.8,.2,1) forwards; }
.hero h1 .line:nth-child(2) { animation-delay: 0.12s; }
.hero h1 em { font-style: normal; color: var(--hi); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.02em; height: 0.09em; background: var(--or); transform-origin: left; transform: scaleX(0); animation: underline 0.6s 0.7s ease forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes underline { to { transform: scaleX(1); } }
.lede { max-width: 56ch; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); margin: 22px 0; }
.ca { display: flex; align-items: center; gap: 10px; border: 1px dashed var(--hair-2); border-radius: 10px; padding: 10px 12px; max-width: 560px; font-size: 14px; color: var(--muted); }
.ca-label { font: 700 11px var(--mono); color: var(--hi-ink); background: var(--ink-2); padding: 3px 6px; border-radius: 4px; }
.ca code.ca-value { font: 500 13px var(--mono); color: var(--ink); min-width: 0; overflow-wrap: anywhere; flex: 1; }
.ca-copy { flex: none; font: 700 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--hi-ink); background: var(--hi); border: 0; border-radius: 6px; padding: 7px 10px; cursor: pointer; }
.ca-copy.done { background: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 10px; font: 800 14px var(--display); font-stretch: 112%; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 0; transition: transform 0.15s ease, background 0.15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-hi { background: var(--hi); color: var(--hi-ink); box-shadow: 0 6px 0 #8fae1d; }
.btn-hi:active { transform: translateY(3px); box-shadow: 0 2px 0 #8fae1d; }
.btn-line { background: transparent; color: var(--ink); border: 1.5px solid var(--hair-2); }
.btn-sm { min-height: 38px; font-size: 12px; }

.hero-board { align-self: start; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--hair); border-radius: 20px; padding: 18px; box-shadow: 0 30px 80px -40px rgba(212, 255, 58, 0.25); }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 4px 2px 10px; }
.live-pill, .soon-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--hair-2); color: var(--ink-2); padding: 5px 8px; border-radius: 8px; font: 500 11px var(--mono); }
.soon-pill { color: var(--or); border-color: rgba(255, 106, 31, 0.5); }
.tile dd.soon { color: var(--muted); font-size: clamp(15px, 1.3vw, 18px); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0 0 16px; }
.tiles-agent { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.tile { background: var(--bg-2); border: 1px solid var(--hair); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.tile dt { font-size: 12px; color: var(--muted); }
.tile dd { margin: 2px 0 0; font: 700 clamp(18px, 1.7vw, 23px)/1.15 var(--display); font-stretch: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.4s ease; }
.tile small { display: block; font: 500 11px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile dd sub { font-size: 0.6em; vertical-align: -0.15em; }
.tile dd.flash-up { color: var(--hi); }
.tile dd.flash-down { color: var(--or); }
.up { color: #5ad35a; } .down { color: #ff8a5c; }
.tiles-agent .tile { border-color: rgba(212, 255, 58, 0.18); }
.board-foot { margin: 0 0 6px; font: 500 11px var(--mono); color: var(--muted); }
.board-foot.stale { color: var(--or); }
@media (max-width: 980px) { .hero { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- ticker */
.ticker { border-block: 1px solid var(--hair); background: var(--bg-2); overflow: hidden; height: 40px; }
.ticker-track { display: flex; gap: 36px; width: max-content; padding-left: 100%; animation: ticker 70s linear infinite; font: 500 13px/40px var(--mono); color: var(--ink-2); }
.ticker-track span b { color: var(--hi); font-weight: 500; }
.ticker-track span.bad b { color: var(--or); }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------------------------------------------------------------- sections */
.section { max-width: 1400px; margin: 0 auto; padding: clamp(56px, 9vw, 120px) var(--pad) 0; }
.section-head { margin-bottom: 28px; }
.eyebrow { font: 700 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--hi); margin: 0 0 14px; }
.section h2.display { font-size: clamp(30px, 5.2vw, 72px); max-width: 18ch; }
.sub { color: var(--ink-2); max-width: 70ch; margin: 16px 0 0; }
.card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); padding: clamp(14px, 2vw, 22px); margin-bottom: 14px; min-width: 0; }
.card h3 { font: 800 15px var(--display); font-stretch: 110%; text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fine { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero h1 .line { opacity: 1; transform: none; }
  .hero h1 em::after { transform: none; }
}

/* ---------------------------------------------------------------- flow */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; counter-reset: f; }
.flow li { position: relative; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); padding: 16px 14px 14px; display: flex; flex-direction: column; min-height: 230px; }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: -10px; top: 34px; width: 10px; height: 2px; background: var(--hi); }
.flow-n { font: 900 13px var(--display); font-stretch: 125%; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--hi); color: var(--hi-ink); }
.flow li:last-child .flow-n { background: var(--or); color: #fff; }
.flow h3 { font: 800 15px var(--display); font-stretch: 112%; text-transform: uppercase; margin: 14px 0 6px; }
.flow p { font-size: 13.5px; color: var(--ink-2); margin: 0 0 12px; flex: 1; }
.flow b { font: 700 20px var(--display); font-stretch: 100%; }
.flow b small { display: block; font: 500 11px var(--mono); color: var(--muted); }
@media (max-width: 1100px) { .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } .flow li:nth-child(3)::after { display: none; } }
@media (max-width: 640px) {
  .flow { grid-template-columns: 1fr; gap: 12px; }
  .flow li { min-height: 0; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; }
  .flow li > * { grid-column: 2; } .flow li .flow-n { grid-column: 1; grid-row: 1 / span 3; }
  .flow h3 { margin-top: 4px; }
  .flow li:not(:last-child)::after { display: block !important; right: auto; left: 28px; top: auto; bottom: -12px; width: 2px; height: 12px; }
}

/* ---------------------------------------------------------------- console */
.console-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
.term { background: #0a0b09; border: 1px solid var(--hair-2); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; min-height: 460px; }
.term-bar { display: flex; align-items: center; gap: 12px; padding: 9px 12px; background: var(--surface); border-bottom: 1px solid var(--hair); flex-wrap: wrap; }
.lights { display: flex; gap: 6px; } .lights i { width: 10px; height: 10px; border-radius: 50%; background: #3a3b36; } .lights i:first-child { background: var(--or); } .lights i:nth-child(2) { background: var(--hi); }
.term-title { font: 500 12px var(--mono); color: var(--muted); flex: 1; min-width: 160px; }
.speed { display: flex; gap: 4px; flex-wrap: wrap; }
.speed button, .seg button { background: var(--surface-2); border: 1px solid var(--hair); color: var(--ink-2); font: 500 12px var(--mono); padding: 5px 9px; border-radius: 6px; cursor: pointer; }
.speed button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--hi); color: var(--hi-ink); border-color: var(--hi); }
.term-log { list-style: none; margin: 0; padding: 12px 14px; font: 13px/1.6 var(--mono); height: 440px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; }
.term-log li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; color: var(--ink-2); animation: logIn 0.25s ease; }
.term-log li time { color: #6d6c64; }
.term-log li.good span { color: #9be15d; } .term-log li.bad span { color: #ff8a5c; } .term-log li.warn span { color: #ffc95c; }
.term-log li.payout span { color: var(--hi-ink); background: var(--hi); padding: 0 6px; border-radius: 3px; }
.term-log li.muted span { color: #77766e; }
.term-log li.typing span::after { content: "\2588"; color: var(--hi); animation: blink 0.8s steps(1) infinite; margin-left: 2px; }
.term-log li.jobref span { cursor: pointer; text-decoration: underline dotted rgba(255,255,255,0.25); text-underline-offset: 3px; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes logIn { from { opacity: 0; transform: translateX(-6px); } }
.inflight { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; min-width: 0; }
.inflight h3 { font: 800 15px var(--display); font-stretch: 110%; text-transform: uppercase; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.count { font: 700 12px var(--mono); background: var(--surface-2); border: 1px solid var(--hair); border-radius: 20px; padding: 2px 8px; color: var(--hi); }
.inflight-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.job-card { background: var(--bg-2); border: 1px solid var(--hair); border-radius: 12px; padding: 12px; cursor: pointer; animation: logIn 0.3s ease; }
.job-card:hover { border-color: var(--hair-2); }
.job-card .jc-top { display: flex; justify-content: space-between; gap: 8px; font: 500 11px var(--mono); color: var(--muted); }
.job-card .jc-title { font-weight: 600; font-size: 14px; margin: 4px 0 8px; line-height: 1.3; }
.bar { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--hi); border-radius: 6px; transition: width 0.5s linear; }
.job-card .jc-step { font: 12px var(--mono); color: var(--ink-2); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { color: var(--muted); font: 13px var(--mono); padding: 12px 0; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 0; }
.mini-stats div { background: var(--bg-2); border-radius: 10px; padding: 8px 10px; border: 1px solid var(--hair); }
.mini-stats dt { font-size: 11px; color: var(--muted); }
.mini-stats dd { margin: 0; font: 700 15px var(--mono); }
@media (max-width: 980px) { .console-wrap { grid-template-columns: 1fr; } .term { min-height: 0; } .term-log { height: 360px; } }
@media (max-width: 520px) { .term-log { font-size: 12px; } .term-log li { grid-template-columns: 1fr; gap: 0; } }

/* ---------------------------------------------------------------- market */
.market-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
.trades-list { list-style: none; margin: 0; padding: 0; font: 12.5px var(--mono); max-height: 330px; overflow-y: auto; }
.trades-list li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--hair); }
.trades-list .side { font-weight: 700; }
.trades-list .buy .side { color: #5ad35a; } .trades-list .sell .side { color: #ff8a5c; }
.trades-list small { color: var(--muted); }
@media (max-width: 900px) { .market-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- charts */
.chart-card figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 14px; margin-bottom: 10px; }
.chart-card { margin: 0 0 14px; background: var(--chart); }
.chart { position: relative; width: 100%; height: 240px; transition: opacity 0.2s ease; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; }
.chart .tick { fill: var(--muted); font: 11px var(--mono); font-variant-numeric: tabular-nums; }
.chart .endlabel { fill: var(--ink-2); font: 600 11px var(--mono); }
.chart .xhair { stroke: var(--ink-2); stroke-width: 1; opacity: 0; pointer-events: none; }
.chart:hover .xhair, .chart.focus .xhair { opacity: 0.5; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .barhit { fill: transparent; cursor: pointer; }
.chart .bar-mark { transition: opacity 0.15s ease; }
.chart .bar-mark.hover { opacity: 0.75; }
.legend { display: inline-flex; gap: 12px; flex-wrap: wrap; font: 12px var(--body); color: var(--ink-2); }
.legend i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 5px; border-radius: 2px; }
.chart-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.chart-grid .wide { grid-column: 1 / -1; }
.chart-grid .wide .chart { height: 280px; }
@media (max-width: 980px) { .chart-grid { grid-template-columns: 1fr; } .chart { height: 220px; } }
.tooltip { position: fixed; z-index: 90; pointer-events: none; background: #23241f; border: 1px solid var(--hair-2); border-radius: 8px; padding: 8px 10px; font: 12px var(--body); color: var(--ink-2); box-shadow: 0 10px 30px rgba(0,0,0,0.4); min-width: 140px; }
.tooltip .tt-h { font: 500 11px var(--mono); color: var(--muted); margin-bottom: 4px; }
.tooltip .tt-r { display: flex; align-items: center; gap: 8px; }
.tooltip .tt-r b { color: var(--ink); font: 700 13px var(--mono); font-variant-numeric: tabular-nums; }
.tooltip .tt-r i { width: 12px; height: 2px; border-radius: 2px; display: inline-block; }

/* ---------------------------------------------------------------- filters + tables */
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 14px; }
.seg { display: flex; gap: 4px; }
.seg button { padding: 8px 12px; font-size: 13px; }
.select, .search { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.select, .search { flex: 1 1 170px; max-width: 320px; }
.select select, .search input { width: 100%; max-width: 100%; background: var(--surface); border: 1px solid var(--hair-2); border-radius: 8px; padding: 8px 10px; font-size: 14px; color: var(--ink); }
.search input { min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--hair); border-radius: 12px; padding: 10px 12px; }
.kpi span { font-size: 12px; color: var(--muted); display: block; }
.kpi b { font: 700 20px var(--display); font-stretch: 100%; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
th { font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
td.num, th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.neg { color: #ff8a5c; } .pos { color: #9be15d; }
.jobs-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.jobs-head h3 { margin: 0 0 10px; }
.hint { font-size: 12px; color: var(--muted); }
.jobs-table tbody tr { cursor: pointer; }
.jobs-table tbody tr:hover { background: var(--surface-2); }
.jobs-table td:first-child { max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.jobs-table td:first-child small { display: block; color: var(--muted); font: 11px var(--mono); }
.status { font: 700 10.5px var(--mono); padding: 3px 7px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.04em; border: 1px solid currentColor; }
.status::before { margin-right: 4px; }
.st-paid { color: #9be15d; } .st-paid::before { content: "\2713"; }
.st-rejected { color: #ff8a5c; } .st-rejected::before { content: "\2715"; }
.st-refunded { color: #ff8a5c; } .st-refunded::before { content: "\21BA"; }
.st-disputed { color: #ffc95c; } .st-disputed::before { content: "!"; }
.st-awaiting_payment { color: #8fb8ff; } .st-awaiting_payment::before { content: "\25F7"; }
.st-working, .st-queued, .st-delivered { color: var(--ink-2); } .st-working::before { content: "\25B6"; }
#jobs-more { margin-top: 12px; }
.table-view { margin: 0 0 14px; }
.table-view summary { cursor: pointer; color: var(--ink-2); font-size: 14px; padding: 6px 0; }
.data td, .data th { font-size: 13px; }
.data td:not(:first-child), .data th:not(:first-child) { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.data tr.group td { color: var(--hi); font: 700 12px var(--mono); text-transform: uppercase; border-bottom-color: var(--hair-2); }
.heat td.cell { position: relative; }
.heat td.cell span { position: relative; z-index: 1; }
.heat td.cell::before { content: ""; position: absolute; inset: 3px; border-radius: 4px; background: var(--s1); opacity: var(--a, 0); }

/* ---------------------------------------------------------------- payouts */
.payout-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
.round-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.round-card dl div { background: var(--bg-2); border: 1px solid var(--hair); border-radius: 10px; padding: 8px 10px; }
.round-card dt { font-size: 11.5px; color: var(--muted); }
.round-card dd { margin: 0; font: 700 16px var(--mono); }
.snipe { margin-top: 12px; padding: 12px; border-radius: 10px; border: 1px solid rgba(212, 255, 58, 0.3); background: rgba(212, 255, 58, 0.05); font-size: 13.5px; color: var(--ink-2); }
.snipe b { color: var(--hi); }
#chart-rounds { height: 330px; }
#chart-price { height: 300px; }
@media (max-width: 900px) { .payout-grid { grid-template-columns: 1fr; } #chart-rounds, #chart-price { height: 230px; } }
.calc { border-color: rgba(212, 255, 58, 0.35); background: linear-gradient(160deg, #1b1d15, var(--surface) 50%); }
.calc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.calc-head h3 { margin: 0; font-size: 20px; }
.calc-form { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font: 600 15px var(--body); }
.calc-form label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.calc-form input, .calc-form select { background: var(--bg); border: 1.5px solid var(--hair-2); border-radius: 9px; padding: 9px 10px; font: 700 16px var(--mono); color: var(--hi); width: 9.5em; }
.calc-form #c-days { width: 5em; }
.calc-form select { width: auto; }
.calc-out { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 14px; margin-top: 18px; align-items: start; }
.calc-big { background: var(--bg); border-radius: 12px; padding: 16px; border: 1px solid var(--hair); }
.calc-big span { font-size: 12px; color: var(--muted); display: block; }
.calc-big b { font: 900 clamp(36px, 5vw, 56px)/1.05 var(--display); font-stretch: 100%; color: var(--hi); display: block; margin: 6px 0; }
.calc-big small { color: var(--ink-2); font-size: 13px; }
.calc-weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.wk { background: var(--bg-2); border: 1px solid var(--hair); border-radius: 9px; padding: 7px 8px; font: 12px var(--mono); }
.wk span { color: var(--muted); display: block; font-size: 10.5px; }
.wk .m { display: block; height: 4px; border-radius: 4px; background: var(--surface-2); margin-top: 5px; overflow: hidden; }
.wk .m i { display: block; height: 100%; background: var(--s1); }
@media (max-width: 760px) { .calc-out { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- economics */
.econ-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 980px) { .econ-grid { grid-template-columns: 1fr; } }
.wf { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.wf li { display: grid; grid-template-columns: minmax(0, 1fr) 110px; align-items: center; gap: 10px; font-size: 13.5px; position: relative; padding: 6px 8px; border-radius: 6px; }
.wf li .wf-bar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--s1); opacity: 0.26; transform-origin: left; transform: scaleX(0); transition: transform 0.9s cubic-bezier(.2,.8,.2,1); }
.wf li.out .wf-bar { background: var(--s2); }
.wf li.total { font-weight: 700; border-top: 1px solid var(--hair-2); border-radius: 0; }
.wf li.pool { background: var(--hi); color: var(--hi-ink); font-weight: 800; }
.wf li.pool .wf-bar { display: none; }
.wf li b { text-align: right; font: 600 13.5px var(--mono); font-variant-numeric: tabular-nums; position: relative; }
.wf li span { position: relative; }
.wf.in li .wf-bar { transform: scaleX(var(--w, 0)); }
.rules { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rules div { border-bottom: 1px solid var(--hair); padding-bottom: 10px; }
.rules dt { font: 700 12px var(--mono); text-transform: uppercase; color: var(--hi); letter-spacing: 0.05em; }
.rules dd { margin: 3px 0 0; font-size: 14px; color: var(--ink-2); }
.live-fee p { margin: 0; color: var(--ink-2); }
.live-fee b { color: var(--ink); font-family: var(--mono); }
.anti-list { margin: 0; padding-left: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; color: var(--ink-2); font-size: 14.5px; }
.anti-list b { color: var(--ink); }
@media (max-width: 760px) { .anti-list { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- tokenomics / faq */
.tok { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 24px; }
.tok div { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); padding: 14px 16px; }
.tok dt { font: 600 12px var(--mono); color: var(--muted); text-transform: uppercase; }
.tok dd { margin: 4px 0 0; font: 700 18px var(--display); font-stretch: 100%; }
@media (max-width: 760px) { .tok { grid-template-columns: 1fr; } }
.prose { max-width: 70ch; color: var(--ink-2); font-size: 17px; }
.faq { display: flex; flex-direction: column; gap: 8px; max-width: 900px; }
.faq details { background: var(--surface); border: 1px solid var(--hair); border-radius: 12px; padding: 0 16px; }
.faq summary { cursor: pointer; font: 700 16px var(--body); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font: 700 20px var(--mono); color: var(--hi); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0 0 16px; color: var(--ink-2); }

/* ---------------------------------------------------------------- disclaimer + footer */
.disclaimer { max-width: 1400px; margin: clamp(56px, 9vw, 120px) auto 0; padding: clamp(20px, 4vw, 40px) var(--pad); border-top: 6px solid transparent; border-image: repeating-linear-gradient(-45deg, var(--hi) 0 14px, var(--hi-ink) 14px 28px) 6; background: var(--bg-2); }
.disclaimer h2 { font: 900 clamp(26px, 4vw, 44px) var(--display); font-stretch: 125%; text-transform: uppercase; margin: 0 0 12px; color: var(--hi); }
.disclaimer p, .disclaimer li { color: var(--ink-2); max-width: 90ch; }
.disclaimer li { margin-bottom: 6px; }
.disclaimer b { color: var(--ink); }
.disclaimer code { word-break: break-all; }
.footer { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 28px var(--pad) 48px; color: var(--muted); font: 12px var(--mono); }
.footer img { border-radius: 7px; }

/* ---------------------------------------------------------------- drawer */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity 0.25s ease; }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--bg-2); border-left: 1px solid var(--hair-2); overflow-y: auto; padding: 22px; transform: translateX(100%); transition: transform 0.3s cubic-bezier(.2,.8,.2,1); outline: none; }
.drawer.open .drawer-panel { transform: none; }
.drawer-x { position: sticky; top: 0; float: right; background: var(--surface-2); border: 1px solid var(--hair-2); color: var(--ink); padding: 6px 12px; border-radius: 8px; cursor: pointer; font: 600 13px var(--body); z-index: 2; }
.dr-id { font: 500 12px var(--mono); color: var(--muted); }
.dr-title { font: 900 26px/1.05 var(--display); font-stretch: 112%; text-transform: uppercase; margin: 6px 0 10px; }
.dr-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.dr-meta span { font: 12px var(--mono); background: var(--surface); border: 1px solid var(--hair); padding: 3px 8px; border-radius: 6px; color: var(--ink-2); }
.dr-sec { margin: 18px 0 0; }
.dr-sec h4 { font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--hi); margin: 0 0 8px; }
.dr-sec p { margin: 0; color: var(--ink-2); }
.steps { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--hair-2); }
.steps li { position: relative; padding: 0 0 10px 10px; font-size: 14px; }
.steps li::before { content: ""; position: absolute; left: -23px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--hi); border: 2px solid var(--bg-2); }
.steps li.pending::before { background: var(--surface-2); }
.steps li small { display: block; font: 11px var(--mono); color: var(--muted); }
.money { width: 100%; }
.money td { padding: 7px 0; }
.money td:last-child { text-align: right; font-family: var(--mono); }
.money tr.tot td { font-weight: 700; border-top: 1px solid var(--hair-2); }

/* ---------------------------------------------------------------- toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 95; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--hi); color: var(--hi-ink); border-radius: 12px; padding: 12px 14px; font: 600 14px var(--body); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); animation: toastIn 0.4s cubic-bezier(.2,.8,.2,1); }
.toast.bad { background: var(--or); color: #fff; }
.toast small { display: block; font: 500 11px var(--mono); opacity: 0.75; margin-top: 2px; }
.toast.out { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* phone: the job table keeps job, status and net; the drawer has the rest */
@media (max-width: 640px) {
  .jobs-table th:nth-child(2), .jobs-table td:nth-child(2),
  .jobs-table th:nth-child(4), .jobs-table td:nth-child(4),
  .jobs-table th:nth-child(5), .jobs-table td:nth-child(5),
  .jobs-table th:nth-child(7), .jobs-table td:nth-child(7) { display: none; }
  .jobs-table td:first-child { white-space: normal; max-width: none; min-width: 0; }
  .jobs-table td { padding: 9px 5px; }
  .jobs-table td:nth-child(3) { white-space: normal; width: 1%; }
  .jobs-table .status { font-size: 9px; padding: 2px 5px; display: inline-block; line-height: 1.3; }
  .jobs-table td:first-child { font-size: 13px; }
  .jobs-table td:first-child small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38vw; }
}

.chart .soon, .trades-list .soon { display: grid; grid-template-columns: 1fr; height: 100%; border: 0; place-items: center; min-height: 180px; color: var(--muted); font: 600 14px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
