/* ─────────────────────────────────────────────────────────────
   SHEEP — near-black teal, one mint accent, one red for the other side.
   Big grotesk headlines, mono labels and numbers, soft rounded cards.
   ───────────────────────────────────────────────────────────── */
:root {
  --bg: #020d0d;          /* page */
  --bg-2: #041312;
  --panel: #051514;       /* panels */
  --panel-2: #081d1b;     /* inputs, hover */
  --panel-3: #0c2623;     /* raised strips, active */
  --line: #0f2a27;        /* borders */
  --line-2: #173d38;
  --mint: #5ff0d2;        /* accent, longs */
  --mint-2: #2fd6b3;
  --mint-ink: #02201a;    /* text on mint */
  --mint-soft: rgba(95, 240, 210, .09);
  --text: #f3faf8;
  --dim: #93a9a5;
  --faint: #5f7a75;
  --red: #ff6470;         /* shorts, losses */
  --red-soft: rgba(255, 100, 112, .11);
  --amber: #f5c26b;       /* waiting, warnings, paper */
  --amber-soft: #1d2519;
  --sans: 'Geist', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --r: 10px;
  --wrap: 1500px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.up { color: var(--mint); } .down { color: var(--red); } .flat { color: var(--dim); }
.dim { color: var(--dim); } .faint { color: var(--faint); }
.caps { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.boot { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 16px; text-align: center; color: var(--dim); }
.boot svg { width: 56px; height: 56px; }
[hidden] { display: none !important; }

/* ── search overlay ── */
.sk-bg { position: fixed; inset: 0; z-index: 70; background: rgba(3, 8, 7, .7); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.sk { width: min(560px, 100%); background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: pop .14s ease-out; }
.sk-in { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.sk-in svg { width: 16px; height: 16px; color: var(--faint); }
.sk-in input { flex: 1; height: 48px; background: none; border: 0; outline: none; font-size: 15px; }
.sk-list { max-height: 380px; overflow: auto; padding: 6px; }
.sk-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r); color: var(--text); }
.sk-list a:hover, .sk-list a.on { background: var(--panel-3); text-decoration: none; }
.sk-list a span { color: var(--faint); font: 12px var(--mono); margin-left: auto; }
.sk-list .empty { padding: 22px; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #33493f; background: var(--panel-3); text-decoration: none; }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn.primary { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); }
.btn.primary:hover { background: #8ff8e2; border-color: #8ff8e2; }
.btn.danger { border-color: rgba(255, 84, 112, .45); color: var(--red); background: var(--red-soft); }
.btn.danger:hover { border-color: var(--red); }
.btn.ghost { background: transparent; }
.btn.sm { height: 30px; padding: 0 11px; font-size: 13px; }
.btn.lg { height: 42px; padding: 0 20px; font-size: 14.5px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.more { font-size: 13px; color: var(--dim); display: inline-flex; align-items: center; gap: 5px; }
.more svg { width: 12px; height: 12px; }
.more:hover { color: var(--text); text-decoration: none; }

/* ── panels ── */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; min-width: 0; overflow: hidden; }
.panel > .bar { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.panel > .bar h2 { margin: 0; font: 700 15px var(--sans); letter-spacing: -.01em; }
.panel > .bar .bar-r { margin-left: auto; display: flex; gap: 10px; align-items: center; font: 600 10.5px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.panel > .bar .bar-r a { letter-spacing: 0; text-transform: none; font-size: 13px; font-weight: 500; color: var(--dim); }
.panel > .body { padding: 16px; }
.panel > .body.flush { padding: 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 -4px; }
.sec-head h2 { margin: 0; font: 700 17px var(--sans); letter-spacing: -.035em; }
.grid-side { display: grid; grid-template-columns: minmax(0, 1fr) 342px; gap: 14px; align-items: start; }
.stack { display: grid; gap: 14px; align-content: start; min-width: 0; }

/* ── avatar / coin image ── */
.av { display: inline-block; width: 36px; height: 36px; image-rendering: pixelated; flex: none; border-radius: var(--r); background: var(--panel-2); overflow: hidden; }
.av svg { width: 100%; height: 100%; display: block; }
.av.lg { width: 96px; height: 96px; }
.av.xl { width: 132px; height: 132px; border-radius: 10px; }
.coin-img { width: 34px; height: 34px; border-radius: var(--r); object-fit: cover; background: #f5faf9; border: 1px solid var(--line-2); flex: none; }
.coin-img.sm { width: 26px; height: 26px; }
.coin-img.lg { width: 64px; height: 64px; border-radius: 10px; }
span.coin-img { display: inline-block; overflow: hidden; background: var(--panel-2); }
span.coin-img svg { width: 100%; height: 100%; display: block; image-rendering: pixelated; }

/* ── stat strip ── */
.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; }
.strip > div { padding: 16px 16px 14px; border-right: 1px solid var(--line); display: grid; gap: 10px; min-width: 0; }
.strip > div:last-child { border-right: 0; }
.strip b { font: 500 20px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-line { font-size: 12px; color: var(--faint); margin: -4px 0 0; }

/* ── pills / tags ── */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--panel-2); font: 700 10px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill.s-scanning { color: var(--dim); }
.pill.s-in-trade { color: var(--mint); border-color: rgba(95, 240, 210, .25); background: var(--mint-soft); }
.pill.s-bridging, .pill.s-launching { color: #8fd8ff; border-color: rgba(143, 216, 255, .25); background: rgba(143, 216, 255, .08); }
.pill.s-unfunded, .pill.s-paused, .pill.s-halted, .pill.s-awaiting_funds { color: var(--amber); border-color: rgba(245, 194, 107, .3); background: var(--amber-soft); }
.pill.s-launch_failed { color: var(--red); border-color: rgba(255, 84, 112, .3); background: var(--red-soft); }
.side-tag { display: inline-flex; align-items: center; height: 20px; font: 700 10.5px var(--mono); padding: 0 6px; border-radius: 4px; }
.side-tag.long { background: var(--mint-soft); color: var(--mint); }
.side-tag.short { background: var(--red-soft); color: var(--red); }
.official-tag { display: inline-flex; align-items: center; font: 700 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; background: var(--mint); color: #02201a; vertical-align: middle; }
.tcard.official { border-color: color-mix(in srgb, var(--mint) 45%, var(--line)); }
tr.official td { background: color-mix(in srgb, var(--mint) 4%, transparent); }
.paper-tag { font: 700 10px var(--mono); padding: 1px 5px; border-radius: 3px; background: var(--amber-soft); color: var(--amber); }

/* ── tables ── */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font: 600 10.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 0 16px; height: 44px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th.r, td.r { text-align: right; }
th button { background: none; border: 0; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
th button.on { color: var(--mint); }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr.link { cursor: pointer; }
tbody tr.link:hover td { background: var(--panel-2); }
.who-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who-cell b { display: block; font-weight: 700; font-size: 14px; }
.who-cell > div > span { font: 12px var(--sans); color: var(--faint); }
td .spark { width: 110px; height: 26px; }
td .go { color: var(--faint); }
td .go svg { width: 13px; height: 13px; }
.empty { padding: 34px 16px; text-align: center; color: var(--dim); }
.empty .btn { margin-top: 12px; }

/* ── positioning ── */
.posn .lr { display: grid; grid-template-columns: 1fr 1fr; padding: 16px 16px 6px; }
.posn .lr div { display: grid; gap: 4px; }
.posn .lr div:last-child { text-align: right; }
.posn .lr span { font: 700 10.5px var(--sans); letter-spacing: .16em; }
.posn .lr b { font: 500 21px var(--mono); }
.posn .meter { margin: 10px 16px 16px; height: 6px; border-radius: 3px; background: var(--line-2); display: flex; overflow: hidden; }
.posn .meter i { display: block; height: 100%; }
.posn .meter .l { background: var(--mint); } .posn .meter .s { background: var(--red); }
.posn .grid4 { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.posn .grid4 div { display: flex; justify-content: space-between; padding: 12px 12px 12px 12px; font-size: 13px; color: var(--dim); border-bottom: 1px solid var(--line); }
.posn .grid4 div:nth-child(odd) { border-right: 1px solid var(--line); }
.posn .grid4 div:nth-last-child(-n+2) { border-bottom: 0; }
.posn .grid4 b { font: 600 13px var(--mono); color: var(--text); }

/* ── feed ── */
.feed { display: grid; }
.feed .it { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text); }
.feed .it:last-child { border-bottom: 0; }
.feed .it:hover { text-decoration: none; background: var(--panel-2); }
.feed .it .av, .feed .it .coin-img { width: 30px; height: 30px; }
.feed .it time { font: 12px var(--mono); color: var(--faint); }
.feed .it .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── token cards ── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.tcard { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--text); }
.tcard:hover { text-decoration: none; border-color: var(--line-2); background: var(--panel-2); }
.tcard-top { display: flex; gap: 11px; align-items: center; min-width: 0; }
.tcard-top .nm { min-width: 0; }
.tcard-top .nm b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.tcard-top .nm > span { font: 12px var(--mono); color: var(--faint); }
.tcard-top .chg { margin-left: auto; font: 13px var(--mono); }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; }
.kv div { display: grid; min-width: 0; }
.kv > div > span { font-size: 11px; color: var(--faint); }
.kv b { font: 500 13px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard { display: flex; flex-direction: column; }
.tcard .tcard-agent { margin-top: auto; }
.tcard-agent { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; white-space: nowrap; min-width: 0; }
.tcard-agent > span.dim { overflow: hidden; text-overflow: ellipsis; }
.tcard-agent .av { width: 24px; height: 24px; border-radius: 4px; }
.tcard-agent .pnl { margin-left: auto; font-family: var(--mono); }
.progress-bar { height: 5px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: var(--amber); border-radius: 3px; }
.progress-bar.ok i { background: var(--mint); }

/* ── filters ── */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; padding: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.seg button { height: 28px; padding: 0 12px; border: 0; background: none; border-radius: 4px; color: var(--dim); font-weight: 600; font-size: 13px; cursor: pointer; }
.seg button.on { background: var(--panel-3); color: var(--text); }
.filters input { max-width: 320px; }

/* ── forms ── */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 12.5px; color: var(--dim); font-weight: 600; }
.field small { font-size: 12px; color: var(--faint); }
input[type=text], input[type=number], input[type=url], input[type=search], textarea, select { width: 100%; height: 38px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 0 12px; outline: none; }
textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 80px; }
input:focus, textarea:focus, select:focus { border-color: var(--mint); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > .field { flex: 1 1 180px; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.choice { position: relative; display: grid; gap: 3px; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel-2); cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice b { font-size: 14px; }
.choice span { font-size: 12px; color: var(--dim); }
.choice:has(input:checked) { border-color: var(--mint); background: var(--mint-soft); }
.choice:has(input:focus-visible) { outline: 2px solid var(--mint); outline-offset: 2px; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--dim); }
.check input { margin-top: 3px; accent-color: var(--mint); }
.drop { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.drop img { width: 72px; height: 72px; border-radius: var(--r); object-fit: cover; background: var(--panel-2); }
.err { color: var(--red); font-size: 13px; }
.note { padding: 11px 14px; border: 1px solid var(--line-2); border-left: 2px solid var(--mint); border-radius: var(--r); background: var(--mint-soft); font-size: 13px; color: var(--dim); }
.note.warn { border-left-color: var(--amber); background: var(--amber-soft); }
.note.bad { border-left-color: var(--red); background: var(--red-soft); }
.note b { color: var(--text); }

/* ── launch ── */
.launch { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.preview { position: sticky; top: 100px; }
.preview .body { display: grid; gap: 14px; }
.pv-top { display: flex; gap: 14px; align-items: center; }
.pv-name { font: 800 19px var(--sans); letter-spacing: -.03em; }
.cost { display: grid; gap: 6px; font-size: 13px; }
.cost div { display: flex; justify-content: space-between; gap: 10px; }
.cost .tot { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; font-weight: 700; }
.rules { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--dim); }
.rules li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.rules li::before { content: ''; width: 6px; height: 6px; margin: 7px 0 0 4px; border-radius: 50%; background: var(--mint); }
.rules b { color: var(--text); }

/* ── agent page ── */
.agent-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 20px; }
.agent-head h1 { margin: 0; font: 800 28px var(--sans); letter-spacing: -.045em; }
.agent-head .sub { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--dim); font-size: 13px; margin-top: 8px; }
.agent-head .sub a { font-family: var(--mono); }
.big-num { text-align: right; }
.big-num b { display: block; font: 600 30px var(--mono); }
.big-num > span { font-size: 12px; color: var(--faint); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border-top: 1px solid var(--line); }
.stats div { padding: 12px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 3px; }
.stats > div > span { font-size: 11.5px; color: var(--faint); }
.stats b { font: 500 15px var(--mono); }
.fund-box { display: grid; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); background: rgba(245, 194, 107, .04); }
.fund-box .top-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--dim); }
.fund-box .top-line b { color: var(--text); font-family: var(--mono); }
.chart-box { position: relative; }
.eq-chart { display: block; width: 100%; height: auto; }
.eq-chart.up { color: var(--mint); } .eq-chart.down { color: var(--red); } .eq-chart.flat { color: var(--dim); }
.eq-chart .grid { stroke: var(--line); }
.eq-chart .axis { fill: var(--faint); font: 11px var(--mono); }
.eq-chart .base { stroke: var(--line-2); stroke-dasharray: 3 4; }
.eq-chart .base-label { fill: var(--faint); font: 11px var(--mono); }
.eq-chart .cross { stroke: var(--line-2); }
.chart-tip { position: absolute; pointer-events: none; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r); padding: 6px 9px; font: 12px var(--mono); }
.chart-empty { padding: 60px 10px; text-align: center; color: var(--dim); font-size: 14px; }
.spark { width: 100%; height: 34px; display: block; }
.spark.up { color: var(--mint); } .spark.down { color: var(--red); }
.pos { display: grid; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pos:last-child { border-bottom: 0; }
.pos-top { display: flex; gap: 10px; align-items: center; }
.pos-top b { font: 600 15px var(--mono); }
.pos-top .upnl { margin-left: auto; font: 600 15px var(--mono); }
.liqbar { position: relative; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--red), #5b3340 30%, var(--line-2) 60%); }
.liqbar i { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--text); }
.pos .why { font-size: 12px; color: var(--dim); }
.pos.danger { background: var(--red-soft); }
.log { display: grid; max-height: 520px; overflow: auto; }
.log .e { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.log .e time { font: 12px var(--mono); color: var(--faint); }
.log .e .a { font: 700 11.5px var(--mono); margin-right: 6px; }
.log .e .blocked { display: block; color: var(--amber); font-size: 12px; margin-top: 2px; }
.log .e .blocked.fail { color: var(--red); }
.log .e .x { color: var(--faint); font: 11px var(--mono); }
.owner .body { display: grid; gap: 12px; }
.owner .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.owner .btns .wide { grid-column: span 2; }
.kv-list { display: grid; gap: 8px; font-size: 13px; }
.kv-list div { display: flex; justify-content: space-between; gap: 12px; }
.kv-list > div > span { color: var(--dim); }
.kv-list b { font: 500 13px var(--mono); text-align: right; overflow: hidden; text-overflow: ellipsis; }
.tabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 14px 10px 12px; color: var(--dim); cursor: pointer; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.tabs button.on { color: var(--text); border-color: var(--mint); }
.dex-embed { width: 100%; height: 400px; border: 0; display: block; }
.copy { background: none; border: 1px solid var(--line-2); border-radius: 3px; color: var(--dim); font: 11px var(--mono); padding: 1px 6px; cursor: pointer; }
.copy:hover { color: var(--mint); border-color: var(--mint); }

/* ── how ── */
.prose { max-width: 980px; display: grid; gap: 14px; }
.prose > p, .prose > ul, .prose > ol { max-width: 80ch; }
.prose h2 { margin: 14px 0 0; font: 800 20px var(--sans); letter-spacing: -.035em; }
.prose p, .prose li { color: #c3d1cd; }
.prose ol, .prose ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; }
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.flow div { padding: 16px; border-right: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: var(--dim); background: var(--panel-2); }
.flow div:last-child { border-right: 0; }
.flow b { display: block; color: var(--text); margin-bottom: 4px; font-size: 14px; }
.flow i { display: block; font: 700 10.5px var(--mono); font-style: normal; color: var(--mint); margin-bottom: 8px; }

/* ── modal + toast ── */
.modal-bg { position: fixed; inset: 0; z-index: 60; background: rgba(3, 8, 7, .74); display: grid; place-items: center; padding: 16px; }
.modal { width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; animation: pop .16s ease-out; }
.modal > .bar { display: flex; align-items: center; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.modal > .bar h3 { margin: 0; font: 700 15px var(--sans); }
.modal > .bar button { margin-left: auto; background: none; border: 0; color: var(--dim); font-size: 22px; line-height: 1; cursor: pointer; }
.modal > .body { padding: 16px; display: grid; gap: 14px; }
@keyframes pop { from { transform: translateY(6px); opacity: 0; } }
.wlist { display: grid; gap: 6px; }
.wlist button { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel-2); cursor: pointer; text-align: left; }
.wlist button:hover { border-color: var(--mint); }
.wlist img { width: 26px; height: 26px; border-radius: 6px; }
.progress { display: grid; gap: 9px; }
.progress div { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--faint); }
.progress div::before { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; }
.progress div.on { color: var(--text); }
.progress div.on::before { background: var(--mint); border-color: var(--mint); animation: blink .8s steps(1) infinite; }
.progress div.ok { color: var(--dim); }
.progress div.ok::before { background: var(--mint-2); border-color: var(--mint-2); }
.progress div.bad { color: var(--red); }
.progress div.bad::before { background: var(--red); border-color: var(--red); }
@keyframes blink { 50% { opacity: .2; } }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: grid; gap: 8px; }
.toast { display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line-2); border-left: 2px solid var(--mint); border-radius: var(--r); font-size: 13px; max-width: 360px; animation: pop .2s ease-out; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.toast.bad { border-left-color: var(--red); }
.toast .av { width: 26px; height: 26px; }

/* letter tile when a coin has no image yet */
span.coin-img.coin-tile, .coin-tile { display: inline-grid; place-items: center; font: 700 12px var(--mono); color: var(--mint-ink); background: var(--mint); }
.coin-img.xl { width: 96px; height: 96px; border-radius: 12px; font-size: 34px; }
@media (max-width: 860px) { .coin-img.xl { width: 64px; height: 64px; font-size: 24px; } .agent-head { align-items: start; } .agent-head h1 { font-size: 24px; } }

/* ── shell ── */
html { scrollbar-color: var(--line-2) transparent; }
body { background: radial-gradient(90% 60% at 72% 8%, #06201d 0%, transparent 62%), var(--bg); background-attachment: fixed; }
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.logo { display: inline-flex; align-items: center; color: var(--text); flex: none; }
.logo:hover { text-decoration: none; }
.logo svg { width: 54px; height: 54px; display: block; filter: drop-shadow(0 0 14px rgba(95, 240, 210, .28)); }
.nav { position: sticky; top: var(--banner, 0px); z-index: 40; transition: background .2s, border-color .2s; border-bottom: 1px solid transparent; }
.nav.stuck, .shell:not(.is-home) .nav { background: rgba(2, 13, 13, .86); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.nav-in { max-width: var(--wrap); margin: 0 auto; height: 84px; padding: 0 clamp(16px, 3.4vw, 72px); display: flex; align-items: center; gap: clamp(20px, 3.4vw, 64px); box-sizing: content-box; max-width: calc(var(--wrap) + 40px); }
.nav.stuck .nav-in, .shell:not(.is-home) .nav-in { height: 68px; }
.nav.stuck .logo svg, .shell:not(.is-home) .logo svg { width: 42px; height: 42px; }
.nav-links { display: flex; align-items: center; gap: clamp(20px, 3.2vw, 62px); min-width: 0; }
.nav-links a { font: 400 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text); white-space: nowrap; opacity: .86; }
.nav-links a:hover { opacity: 1; color: var(--mint); text-decoration: none; }
.nav-links a.on { color: var(--mint); opacity: 1; }
.nav-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: var(--dim); cursor: pointer; }
.icon-btn:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.icon-btn svg { width: 16px; height: 16px; }
.wallet-btn { height: 38px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; background: none; border: 0; border-radius: 999px; font: 400 12.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; color: var(--dim); }
.wallet-btn:hover { color: var(--text); background: var(--panel-2); }
.wallet-btn svg { width: 15px; height: 15px; }
.wallet-btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.btn.trade { height: 52px; padding: 0 30px; background: transparent; border-color: var(--mint-2); color: var(--mint); font: 400 13px var(--mono); letter-spacing: .14em; gap: 14px; }
.btn.trade:hover { background: var(--mint-soft); border-color: var(--mint); }
.btn.trade svg { width: 18px; height: 18px; }
.nav.stuck .btn.trade, .shell:not(.is-home) .btn.trade { height: 44px; }
.menu-btn { display: none; }
.is-home .tape { display: none; }
.tape { height: 34px; flex: none; border-bottom: 1px solid var(--line); overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.tape:empty { display: none; }
.tape-track { display: flex; width: max-content; height: 100%; align-items: center; animation: tape 60s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-track a { display: inline-flex; align-items: center; gap: 7px; padding: 0 20px; font: 500 12px var(--mono); color: var(--text); white-space: nowrap; }
.tape-track a:hover { text-decoration: none; color: var(--mint); }
.tape-track a .k { color: var(--mint); font-weight: 400; }
.tape-track a .k.down { color: var(--red); }
.tape-track a .k.amber { color: var(--amber); }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.content { flex: 1; width: 100%; max-width: calc(var(--wrap) + 2 * clamp(16px, 3.4vw, 72px)); margin: 0 auto; padding: 32px clamp(16px, 3.4vw, 72px) 64px; display: grid; gap: 18px; align-content: start; }
.content.home { max-width: none; padding: 0; display: block; }
.wrap { max-width: calc(var(--wrap) + 2 * clamp(16px, 3.4vw, 72px)); margin: 0 auto; padding: 0 clamp(16px, 3.4vw, 72px) 64px; }
.stack-lg { display: grid; gap: 44px; padding-top: 44px; }
.banner { position: sticky; top: 0; z-index: 41; height: 33px; line-height: 17px; padding: 8px 24px; font: 400 12px var(--mono); text-align: center; background: var(--amber-soft); color: var(--amber); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shell:has(.banner) { --banner: 33px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font: 400 11.5px var(--mono); color: var(--faint); white-space: nowrap; }
.chip b { color: var(--text); font-weight: 400; }
.chip .copy { border: 0; padding: 0; color: var(--dim); }
kbd { font: 500 10.5px var(--mono); padding: 2px 6px; border-radius: 4px; background: var(--panel-3); border: 1px solid var(--line-2); color: var(--dim); }
.foot { border-top: 1px solid var(--line); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 22px clamp(16px, 3.4vw, 72px); display: flex; align-items: center; gap: 28px; flex-wrap: wrap; box-sizing: content-box; }
.foot .logo svg { width: 32px; height: 32px; }
.foot-status { display: flex; gap: 26px; font: 400 11.5px var(--mono); color: var(--faint); flex-wrap: wrap; }
.foot-status div { display: inline-flex; gap: 8px; align-items: center; }
.foot-status b { font-weight: 500; color: var(--text); }
.foot-status .live { color: var(--mint); display: inline-flex; gap: 6px; align-items: center; }
.foot-status .live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.foot-status .off { color: var(--amber); }
.foot-r { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 12.5px; }
.foot-r a { color: var(--dim); }

/* ── hero ── */
.is-home .nav { position: fixed; left: 0; right: 0; }
.hero { position: relative; min-height: max(calc(100svh - var(--banner, 0px)), 780px); display: flex; overflow: hidden; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 240px; background: linear-gradient(transparent, var(--bg) 92%); pointer-events: none; z-index: 1; }
.stage { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; mask-image: linear-gradient(90deg, transparent 16%, #000 42%); }
.ptag { position: absolute; left: 0; top: 0; z-index: 2; will-change: transform; --c: var(--mint); }
.ptag.short { --c: var(--red); }
.ptag-in { position: absolute; left: 0; bottom: 34px; transform: translateX(-50%) perspective(620px) rotateY(-16deg) rotateX(8deg) rotate(7deg); min-width: 104px; padding: 12px 18px 11px; text-align: center; border: 1px solid color-mix(in srgb, var(--c) 62%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--c) 7%, rgba(2, 13, 13, .82)); box-shadow: 0 0 28px color-mix(in srgb, var(--c) 18%, transparent), inset 0 0 18px color-mix(in srgb, var(--c) 8%, transparent); }
.ptag-in::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1px; height: 36px; background: linear-gradient(color-mix(in srgb, var(--c) 70%, transparent), transparent); }
.ptag-in b { display: block; font: 700 34px/1 var(--sans); letter-spacing: -.03em; color: var(--c); text-shadow: 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); }
.ptag-in span { display: block; margin-top: 5px; font: 400 12.5px var(--mono); letter-spacing: .16em; color: var(--c); }
.ptag.lone .ptag-in { min-width: 86px; padding: 9px 14px 8px; }
.ptag.lone .ptag-in b { font-size: 27px; }
.ptag.lone .ptag-in span { font-size: 11px; }
.hero-in { position: relative; z-index: 2; width: 100%; max-width: calc(var(--wrap) + 2 * clamp(16px, 3.4vw, 72px)); margin: 0 auto; padding: 128px clamp(16px, 3.4vw, 72px) 28px; display: flex; flex-direction: column; min-width: 0; }
.hero-copy { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-bottom: 30px; max-width: 640px; }
.eyebrow { font: 400 13px var(--mono); letter-spacing: .28em; text-transform: uppercase; color: var(--mint); }
.hero h1 { margin: 16px 0 0; font: 700 clamp(46px, 5.9vw, 92px)/.98 var(--sans); letter-spacing: -.045em; }
.hero h1 em { display: block; font-style: normal; color: var(--mint); }
.hero p { margin: 22px 0 0; color: var(--dim); max-width: 34em; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.5; }
.hero-actions { margin-top: 30px; }
.btn.cta { height: 58px; padding: 0 36px; background: var(--mint); border-color: var(--mint); color: var(--mint-ink); font: 500 14px var(--mono); letter-spacing: .14em; gap: 18px; box-shadow: 0 10px 40px -12px rgba(95, 240, 210, .55); }
.btn.cta:hover { background: #8ff8e2; border-color: #8ff8e2; }
.btn.cta svg { width: 20px; height: 20px; }
.hcards { display: grid; grid-template-columns: 1.75fr 1fr 1fr 1fr; gap: 16px; }
.hcard { display: flex; align-items: center; gap: 14px; min-height: 100px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(4, 18, 17, .78); backdrop-filter: blur(6px); color: var(--text); min-width: 0; transition: border-color .15s, transform .15s; }
.hcard:hover { text-decoration: none; border-color: var(--line-2); transform: translateY(-2px); }
.hcard.wide { border-color: color-mix(in srgb, var(--mint) 38%, var(--line)); gap: 20px; padding: 16px 22px; }
.perp { width: 38px; height: 38px; border-radius: 50%; flex: none; background: #1a3b36; object-fit: contain; }
.perp.sm { width: 24px; height: 24px; }
.hcard.wide .perp { width: 58px; height: 58px; }
.perp-tile { display: inline-grid; place-items: center; color: var(--mint); font: 600 13px var(--mono); }
.hn { display: grid; gap: 3px; min-width: 0; margin-right: auto; }
.hn b { font: 500 14px var(--sans); white-space: nowrap; }
.hn span { font: 400 13px var(--mono); color: var(--dim); }
.hcard.wide .hn b { font-size: 17px; }
.hcard.wide .hn span { font-size: 15px; }
.hv { display: grid; gap: 5px; text-align: center; padding-left: 12px; }
.hv + .hv { border-left: 1px solid var(--line); }
.hv b { font: 500 16px var(--mono); }
.hv span { font: 400 10px var(--mono); letter-spacing: .08em; }
.hcard.wide .hv { padding: 0; }
.hcard.wide .hv b { font-size: 22px; }
.hcard.wide .hv span { font-size: 12px; letter-spacing: .1em; }
.hbar { flex: 1 1 110px; max-width: 180px; height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.hbar i { display: block; height: 100%; border-radius: 4px; background: var(--mint); box-shadow: 0 0 10px rgba(95, 240, 210, .5); transition: width .6s; }
.hwait { font: 400 12px var(--mono); color: var(--faint); }
.hfoot { display: flex; align-items: center; gap: 24px; margin-top: 30px; padding: 0 20px; }
.hfacts { display: flex; gap: 0; }
.hfacts > div { display: grid; gap: 3px; padding: 0 clamp(18px, 3vw, 56px) 0 0; margin-right: clamp(18px, 3vw, 56px); border-right: 1px solid var(--line-2); }
.hfacts > div:last-child { border: 0; margin: 0; padding: 0; }
.hfacts b, .honline b { font: 400 15px var(--mono); }
.hfacts span, .honline span { font: 400 13px var(--mono); letter-spacing: .08em; color: var(--dim); }
.honline { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.honline > div { display: grid; gap: 3px; }
.faces { display: inline-flex; }
.faces i { display: grid; place-items: center; width: 36px; height: 36px; margin-left: -10px; border-radius: 50%; border: 2px solid var(--bg); }
.faces i:first-child { margin-left: 0; }
.faces svg { width: 22px; height: 22px; }
.faces path { fill: #e8fbf6; }

/* ── page furniture ── */
.page-head { padding: 8px 0 10px; }
.page-head h1 { margin: 10px 0 0; font: 700 clamp(30px, 3.6vw, 46px)/1.05 var(--sans); letter-spacing: -.04em; }
.page-head p { margin: 10px 0 0; color: var(--dim); max-width: 70ch; }
.page-head .eyebrow { font-size: 12px; }
.sec-head { align-items: flex-end; margin: 0 0 16px; }
.sec-head h2 { font: 700 clamp(22px, 2.4vw, 30px) var(--sans); letter-spacing: -.03em; margin-top: 6px; }
.sec-head .eyebrow { font-size: 11.5px; }
.stack .sec-head { margin-bottom: 2px; }
.stack .sec-head h2 { font-size: 20px; }
.stack-lg .note-line { margin: -32px 0 0; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.steps > div { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.steps i { display: block; font: 400 12px var(--mono); font-style: normal; color: var(--mint); letter-spacing: .1em; }
.steps b { display: block; margin-top: 12px; font: 600 17px var(--sans); letter-spacing: -.02em; }
.steps p { margin: 8px 0 0; color: var(--dim); font-size: 13.5px; line-height: 1.55; }

/* ── herd bars + signals ── */
.lsbar { display: grid; grid-template-columns: 40px minmax(90px, 1fr) 40px; align-items: center; gap: 10px; font-size: 12.5px; min-width: 210px; }
.lsbar span:first-child { color: var(--mint); }
.lsbar span:last-child { color: var(--red); text-align: right; }
.ls { display: flex; gap: 2px; height: 7px; }
.ls i { display: block; border-radius: 4px; }
.ls .l { background: var(--mint); }
.ls .s { flex: 1; background: var(--red); }
.lights { display: inline-flex; gap: 5px; }
.lights i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.lights i.on { background: var(--mint); box-shadow: 0 0 8px rgba(95, 240, 210, .6); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.tiles > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); display: grid; gap: 2px; min-width: 0; }
.tiles span { font: 400 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.tiles b { font: 500 24px var(--mono); }
.tiles small { font: 400 11.5px var(--mono); color: var(--dim); }
.tiles .wide-note { grid-column: 1 / -1; color: var(--dim); font-size: 13px; }
.herd-chart { display: block; width: 100%; height: auto; }
.herd-chart .axis { fill: var(--faint); font: 11px var(--mono); }
.herd-chart .mid { stroke: var(--line-2); }
.herd-chart .crowd { stroke: var(--amber); stroke-opacity: .4; stroke-dasharray: 3 5; }
.herd-chart .hair { stroke: var(--line-2); }
.legend-line { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font: 400 11.5px var(--mono); color: var(--faint); flex-wrap: wrap; }
.k-line { width: 16px; height: 2px; border-radius: 1px; background: var(--mint); }
.k-dash { width: 16px; margin-left: 12px; border-top: 1px dashed var(--amber); opacity: .6; }
.mrow { display: grid; grid-template-columns: 24px 66px minmax(60px, 1fr) 84px 112px; gap: 12px; align-items: center; width: 100%; padding: 9px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); text-align: left; cursor: pointer; }
.mrow:last-child { border-bottom: 0; }
.mrow:hover, .mrow.on { background: var(--panel-2); }
.mrow b { font: 500 13px var(--mono); overflow: hidden; text-overflow: ellipsis; }
.mrow em { font-style: normal; font-size: 12px; text-align: right; color: var(--dim); }
.mrow .pill { justify-self: start; }
.ctr { position: relative; height: 10px; background: linear-gradient(var(--line-2), var(--line-2)) center / 1px 100% no-repeat; }
.ctr i { position: absolute; top: 2px; height: 6px; }
.ctr i.l { background: var(--mint); border-radius: 0 3px 3px 0; }
.ctr i.s { background: var(--red); border-radius: 3px 0 0 3px; }
.sigs { display: grid; gap: 10px; }
.sig { display: grid; grid-template-columns: 12px 1fr; gap: 12px; align-items: start; }
.sig i { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--line-2); }
.sig.on i { background: var(--mint); box-shadow: 0 0 8px rgba(95, 240, 210, .6); }
.sig b { display: block; font-size: 13.5px; font-weight: 600; }
.sig:not(.on) b { color: var(--dim); }
.sig span { font: 400 11.5px var(--mono); color: var(--faint); }
.grid-side { grid-template-columns: minmax(0, 1fr) 370px; gap: 18px; }
.filters input { max-width: 280px; }
input[type=text], input[type=number], input[type=url], input[type=search], textarea, select { border-radius: 10px; }
.seg { border-radius: 999px; }
.seg button { border-radius: 999px; }
.pill { border-radius: 999px; font: 400 10.5px var(--mono); letter-spacing: .05em; text-transform: none; padding: 0 10px; }
.pill.s-in-trade { color: var(--mint); }
th { font: 400 10.5px var(--mono); letter-spacing: .1em; }
.panel > .bar h2 { font: 600 15px var(--sans); }
.panel > .bar .bar-r { font: 400 10.5px var(--mono); letter-spacing: .1em; }
.strip b { font: 400 22px var(--mono); }
.coin-img { border-radius: 10px; }

/* ── responsive ── */
@media (max-width: 1560px) { .grid-side .c-strat { display: none; } }
@media (max-width: 1360px) {
  .grid-side .c-trend { display: none; }
  td, th { padding-left: 12px; padding-right: 12px; }
  .hcards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hcard.wide { grid-column: 1 / -1; }
  .hcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hbar { max-width: none; }
}
@media (max-width: 1280px) {
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip > div:nth-child(3) { border-right: 0; }
  .strip > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .c-oi { display: none; }
}
@media (max-width: 1100px) {
  .grid-side, .launch { grid-template-columns: 1fr; }
  .grid-side .stack[style] { padding-top: 0 !important; }
  .preview { position: static; }
  .flow { grid-template-columns: 1fr; }
  .flow div { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-vol { display: none; }
  .nav-links { gap: 20px; }
  .wallet-btn span { display: none; }
}
@media (max-width: 920px) {
  .menu-btn { display: inline-grid; }
  .nav-links { position: fixed; inset: 68px 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .shell.menu .nav-links { display: flex; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-in, .nav.stuck .nav-in, .shell:not(.is-home) .nav-in { height: 68px; }
  .logo svg { width: 42px; height: 42px; }
  .btn.trade { height: 42px; padding: 0 16px; gap: 8px; }
  .nav-r { gap: 2px; }
  /* hero stacks: copy, then the scene, then the cards */
  .hero { min-height: 0; display: block; }
  .hero::after { display: none; }
  .hero-in { padding: 92px 16px 22px; }
  .hero-copy { flex: none; padding-bottom: 0; }
  .stage { position: relative; display: block; height: 340px; order: 2; margin: -6px 0 -40px; }
  .hero { display: flex; flex-direction: column; }
  .hero-in { display: contents; }
  .hero-copy { order: 1; padding: 96px 16px 0; max-width: none; }
  .hcards { order: 3; padding: 0 16px; position: relative; z-index: 2; }
  .hfoot { order: 4; padding: 0 16px 20px; flex-wrap: wrap; }
  .stage canvas { mask-image: linear-gradient(transparent, #000 14%, #000 80%, transparent); }
  .ptag-in b { font-size: 26px; }
  .ptag-in { min-width: 84px; padding: 9px 12px 8px; }
}
@media (max-width: 720px) {
  .c-strat, .c-trend { display: none; }
  .hcards { grid-template-columns: 1fr; gap: 10px; }
  .hcard { min-height: 74px; }
  .hcard.wide { flex-wrap: wrap; }
  .hcard.wide .hbar { order: 9; flex: 1 0 100%; max-width: none; }
  .hfacts { flex-wrap: wrap; gap: 10px 0; }
  .honline { margin-left: 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mrow { grid-template-columns: 24px 56px minmax(50px, 1fr) 78px; }
  .mrow .pill { display: none; }
  .steps { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip > div { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); }
  .strip > div:nth-child(even) { border-right: 0 !important; }
  .strip b { font-size: 17px; }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner .btns { grid-template-columns: 1fr; }
  .owner .btns .wide { grid-column: auto; }
  .agent-head { grid-template-columns: auto 1fr; }
  .agent-head .big-num { grid-column: span 2; text-align: left; }
  .agent-head .av.xl { width: 84px; height: 84px; }
  .foot-r { margin-left: 0; }
  .lsbar { min-width: 170px; }
}
@media (max-width: 420px) {
  .wallet-btn { padding: 0 8px; }
  .btn.trade { padding: 0 12px; font-size: 11.5px; letter-spacing: .08em; }
  .btn.trade svg { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* grid children must be allowed to shrink: wide tables scroll inside their panel */
.content, .stack-lg { grid-template-columns: minmax(0, 1fr); }
.stack-lg > *, .content > * { min-width: 0; }

/* ── live numbers: bars slide, prices flash on a change ── */
.ls .l, .hbar i { transition: width .9s cubic-bezier(.22, 1, .36, 1); }
@keyframes flash-up { from { color: var(--mint); text-shadow: 0 0 12px rgba(95, 240, 210, .55); } }
@keyframes flash-down { from { color: var(--red); text-shadow: 0 0 12px rgba(255, 100, 112, .5); } }
.flash-up { animation: flash-up 1.1s ease-out; }
.flash-down { animation: flash-down 1.1s ease-out; }

/* ── herd table: a row opens to say why ── */
.row-end { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.why-t { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--faint); cursor: pointer; }
.why-t svg { width: 13px; height: 13px; transition: transform .25s; }
.why-t:hover { background: var(--panel-3); color: var(--text); }
tr.open .why-t { color: var(--mint); }
tr.open .why-t svg { transform: rotate(180deg); }
tbody tr.open td { background: var(--panel-2); border-bottom-color: transparent; }
.why-row td { padding: 0; border-bottom: 0; white-space: normal; background: var(--panel-2); }
.why-row.open td { border-bottom: 1px solid var(--line); }
.why-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s cubic-bezier(.22, 1, .36, 1); }
.why-row.open .why-wrap { grid-template-rows: 1fr; }
.why-in { min-height: 0; overflow: hidden; }
.why-body { padding: 2px 16px 18px; }
.why-body p { margin: 0 0 14px; max-width: 760px; font-size: 14px; color: var(--text); }
.why-sigs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }

/* ── agents at work ── */
.term-bar { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line); font: 400 11.5px var(--mono); color: var(--dim); }
.term-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px rgba(95, 240, 210, .7); animation: term-pulse 1.8s ease-in-out infinite; }
.term-bar .r { margin-left: auto; color: var(--faint); }
@keyframes term-pulse { 50% { opacity: .35; } }
.term-body { height: 196px; padding: 14px 16px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; font: 400 12.5px/24px var(--mono); }
.term-line { white-space: pre; overflow: hidden; text-overflow: ellipsis; color: var(--dim); }
.term-line .tt { color: var(--faint); margin-right: 12px; }
.term-line .coin { color: var(--text); }
.term-line .hot { color: var(--mint); }
.term-line .warn { color: var(--amber); }
.term-line .off { color: var(--line-2); }

/* ── follow one dollar ── */
.df { padding: 26px 24px 24px; }
.df-track { --p: 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.df-line { position: absolute; top: 17px; left: 10%; right: 10%; height: 2px; background: var(--line-2); }
.df-line i { display: block; height: 100%; width: calc(var(--p) * 100%); background: linear-gradient(90deg, var(--mint-2), var(--mint)); box-shadow: 0 0 10px rgba(95, 240, 210, .5); transition: width 1.2s cubic-bezier(.45, 0, .2, 1); }
.df-dot { position: absolute; z-index: 2; top: 0; left: calc(10% + 80% * var(--p)); width: 36px; height: 36px; margin-left: -18px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--mint-ink); font: 700 16px var(--mono); box-shadow: 0 0 22px rgba(95, 240, 210, .6); transition: left 1.2s cubic-bezier(.45, 0, .2, 1), background .4s, box-shadow .4s; }
.df-track.jump .df-dot, .df-track.jump .df-line i { transition: none; }
.df-track.burn .df-dot { background: #ff9d4d; box-shadow: 0 0 30px rgba(255, 130, 60, .85); animation: df-burn 1.5s ease-in 1.2s infinite; }
@keyframes df-burn { 50% { box-shadow: 0 0 44px rgba(255, 110, 50, 1); transform: scale(1.09); } }
.df-dot u { position: absolute; left: 50%; bottom: 60%; width: 5px; height: 5px; margin-left: -2px; border-radius: 50%; background: #ffb25e; opacity: 0; }
.df-track.burn .df-dot u { animation: df-spark 1.5s ease-out 1.1s infinite; }
.df-dot u:nth-child(1) { --x: -22px; --y: -36px; }
.df-dot u:nth-child(2) { --x: 18px; --y: -42px; animation-delay: 1.3s !important; }
.df-dot u:nth-child(3) { --x: -8px; --y: -50px; animation-delay: 1.5s !important; }
.df-dot u:nth-child(4) { --x: 26px; --y: -28px; animation-delay: 1.7s !important; }
.df-dot u:nth-child(5) { --x: -28px; --y: -22px; animation-delay: 1.9s !important; }
.df-dot u:nth-child(6) { --x: 6px; --y: -56px; animation-delay: 2.1s !important; }
@keyframes df-spark { 0% { opacity: 0; transform: none; } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.3); } }
.df-stop { position: relative; display: grid; justify-items: center; gap: 2px; padding: 0 4px 6px; border: 0; background: none; color: var(--faint); cursor: pointer; }
.df-stop > i { width: 36px; height: 36px; margin-bottom: 8px; display: grid; place-items: center; background: none; }
.df-stop > i::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--panel-3); border: 2px solid var(--line-2); transition: background .5s, border-color .5s; }
.df-stop.on > i::after { background: var(--mint); border-color: var(--mint); }
.df-stop span { font: 400 11px var(--mono); letter-spacing: .1em; }
.df-stop b { font: 600 14px var(--sans); color: var(--dim); transition: color .4s; }
.df-stop.on b, .df-stop:hover b { color: var(--text); }
.df-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; margin-top: 18px; min-height: 124px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); }
.df-card.in .df-text, .df-card.in .df-num { animation: df-in .45s ease-out; }
@keyframes df-in { from { opacity: 0; transform: translateY(6px); } }
.df-text h3 { margin: 0 0 6px; font: 600 19px var(--sans); letter-spacing: -.02em; }
.df-text p { margin: 0; max-width: 680px; color: var(--dim); font-size: 14px; line-height: 1.6; }
.df-num { display: grid; gap: 4px; justify-items: end; min-width: 130px; }
.df-num span { font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.df-num b { font: 600 28px var(--mono); color: var(--mint); white-space: nowrap; }

@media (max-width: 920px) {
  .why-sigs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .df { padding: 18px 8px 8px; }
  .df-stop b { font-size: 12px; }
  .df-stop span { font-size: 10px; }
  .df-card { grid-template-columns: minmax(0, 1fr); gap: 12px; min-height: 212px; align-content: start; padding: 16px; }
  .df-num { justify-items: start; }
  .df-num b { font-size: 22px; }
  .term-line .tt { display: none; }
  .term-body { font-size: 11.5px; padding: 12px; }
  .term-bar .r { display: none; }
  .why-body p { font-size: 13.5px; }
}
@media (max-width: 720px) {
  /* a table can't drop columns under a colspan, so on phones each row is its own grid */
  .herd-tbl, .herd-tbl tbody, .herd-tbl .why-row, .herd-tbl .why-row td { display: block; width: 100%; }
  .herd-tbl thead, .herd-tbl tr[data-coin] td:nth-child(3), .herd-tbl tr[data-coin] td:nth-child(4), .herd-tbl .pill { display: none; }
  .herd-tbl tr[data-coin] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) 30px; align-items: center; }
  .herd-tbl tr[data-coin] td { display: block; padding: 10px 0 10px 10px; border-bottom: 0; }
  .herd-tbl tr[data-coin] { border-bottom: 1px solid var(--line); }
  .herd-tbl tr.open[data-coin] { border-bottom-color: transparent; }
  .herd-tbl tr[data-coin] td:last-child { padding: 0; }
  .herd-tbl .perp { width: 30px; height: 30px; }
  .herd-tbl .who-cell { gap: 8px; }
  .herd-tbl .lsbar { grid-template-columns: 30px minmax(34px, 1fr) 30px; gap: 5px; font-size: 11.5px; }
  .why-row.open td { border-bottom: 1px solid var(--line); }
  .why-sigs { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .why-body { padding: 0 12px 14px; }
}

/* ── launch: creator fee + dev buy ── */
.fee-pick { display: flex; align-items: center; gap: 14px; }
.fee-pick input { flex: 1; min-width: 0; accent-color: var(--mint); }
.fee-pick b { min-width: 52px; text-align: right; font-size: 18px; color: var(--mint); }
.launch-go { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.devbox { display: grid; gap: 10px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--mint) 45%, var(--line)); border-radius: 16px; background: linear-gradient(135deg, var(--mint-soft), transparent 70%), var(--panel-2); box-shadow: 0 0 24px rgba(95, 240, 210, .07); }
.devbox:focus-within { border-color: var(--mint); box-shadow: 0 0 28px rgba(95, 240, 210, .16); }
.devbox-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.devbox-h b { font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mint); }
.devbox-h span { font-size: 13px; color: var(--dim); }
.devbox-in { display: flex; align-items: baseline; gap: 8px; }
.devbox-in input { flex: 1; width: 100%; min-width: 0; height: auto; padding: 0; border: 0; border-radius: 0; outline: 0; background: none; box-shadow: none; font: 600 38px/1.15 var(--mono); color: var(--text); -moz-appearance: textfield; appearance: textfield; }
.devbox-in input::-webkit-outer-spin-button, .devbox-in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.devbox-in span { font: 500 15px var(--mono); color: var(--dim); }
.devbox .seg { justify-self: start; max-width: 100%; }
.devbox .seg button.on { color: var(--mint); }
.devbox small { font-size: 12px; color: var(--faint); }
.gobox { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-2); }
.gobox-t { display: grid; gap: 2px; }
.gobox-t span { font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.gobox-t b { font-size: 24px; font-weight: 600; }
.gobox .btn { width: 100%; height: 54px; font-size: 16px; }
@media (max-width: 720px) {
  .launch-go { grid-template-columns: minmax(0, 1fr); }
}
