/* ─────────────────────────────────────────────────────────────
   HEDGE — deep teal-black trading desk, one mint accent.
   Quiet bordered panels, tight grotesk headlines, mono numbers.
   ───────────────────────────────────────────────────────────── */
:root {
  --bg: #081417;          /* page */
  --side: #050e10;        /* sidebar */
  --panel: #0b1a1d;       /* panels */
  --panel-2: #102126;     /* inputs, search, status box */
  --panel-3: #14292d;     /* raised strips, hover, active nav */
  --line: #172225;        /* borders */
  --line-2: #1b3539;
  --mint: #94f5de;        /* accent */
  --mint-2: #36ddb5;
  --mint-ink: #04201a;    /* text on mint */
  --mint-soft: rgba(148, 245, 222, .1);
  --text: #f5faf9;
  --dim: #8aa4a7;
  --faint: #5a7c80;
  --red: #ff6b81;         /* shorts, losses */
  --red-soft: rgba(255, 107, 129, .12);
  --amber: #f5c26b;       /* waiting, warnings, paper */
  --amber-soft: #222a25;
  --sans: 'Geist', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --r: 6px;
  --sidew: 214px;
  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: 600 10.5px var(--sans); letter-spacing: .18em; 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; }

/* ── logo ── */
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo svg { width: 26px; height: 26px; flex: none; }
.logo b { font: 800 17px var(--sans); letter-spacing: -.04em; }

/* ── shell ── */
.shell { display: grid; grid-template-columns: var(--sidew) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.side .logo { height: 48px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.side nav { padding: 12px 0; display: grid; gap: 2px; }
.side .group { padding: 10px 9px 6px; }
.side nav a { display: flex; align-items: center; gap: 11px; margin: 0 4px 0 0; padding: 8px 12px; border-radius: 0 var(--r) var(--r) 0; color: var(--dim); font-weight: 500; border: 1px solid transparent; border-left: 0; }
.side nav a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.side nav a.on { color: var(--text); background: var(--panel-2); border-color: var(--line-2); box-shadow: inset 2px 0 0 var(--mint); font-weight: 600; }
.side nav svg { width: 16px; height: 16px; flex: none; }
.side-foot { margin-top: auto; padding: 14px 12px 16px; display: grid; gap: 12px; border-top: 1px solid var(--line); }
.status-box { padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 7px; font-size: 12px; }
.status-box div { display: flex; justify-content: space-between; color: var(--faint); }
.status-box b { font: 600 12px var(--mono); color: var(--text); }
.status-box .live { color: var(--mint); font-family: var(--sans); display: inline-flex; gap: 6px; align-items: center; }
.status-box .live::before, .dot-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status-box .off { color: var(--amber); }
.side-foot .launch-cta { height: 44px; border-radius: 8px; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; gap: 9px; box-shadow: 0 0 0 1px rgba(148, 245, 222, .35), 0 8px 24px -8px rgba(148, 245, 222, .45); transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.side-foot .launch-cta svg { width: 16px; height: 16px; stroke-width: 2.6; }
.side-foot .launch-cta:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(148, 245, 222, .55), 0 12px 28px -8px rgba(148, 245, 222, .6); }
.side-foot .launch-cta:active { transform: none; }
.side-foot .links { display: flex; gap: 10px; padding: 0 2px; font-size: 12px; }
.side-foot .links:empty { display: none; }
.side-foot .links a { color: var(--faint); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; height: 48px; display: flex; align-items: center; gap: 14px; padding: 0 0 0 16px; background: rgba(8, 20, 23, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.crumbs { font: 600 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.crumbs b { color: var(--text); font-weight: 700; }
.crumbs i { font-style: normal; margin: 0 8px; color: var(--line-2); }
.search { position: relative; flex: 0 1 322px; min-width: 0; }
.search button.box { width: 100%; display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px 0 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); color: var(--faint); cursor: text; font-size: 13px; text-align: left; }
.search button.box:hover { border-color: var(--line-2); }
.search svg { width: 14px; height: 14px; flex: none; }
.search .box span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
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); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 12px; height: 100%; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); font: 500 11.5px var(--mono); color: var(--faint); white-space: nowrap; }
.chip b { color: var(--text); font-weight: 500; }
.chip .copy { border: 0; padding: 0; color: var(--dim); }
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r); color: var(--dim); }
.icon-btn:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.icon-btn svg { width: 15px; height: 15px; }
.px-chip { display: inline-flex; align-items: center; gap: 7px; font: 500 12.5px var(--mono); color: var(--faint); white-space: nowrap; }
.px-chip b { color: var(--text); font-weight: 600; font-size: 14px; }
.px-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.wallet-btn { height: 100%; white-space: nowrap; display: inline-flex; align-items: center; gap: 9px; padding: 0 18px; background: var(--panel); border: 0; border-left: 1px solid var(--line); font-weight: 700; font-size: 14px; cursor: pointer; color: var(--text); }
.wallet-btn:hover { background: var(--panel-2); }
.wallet-btn svg { width: 16px; height: 16px; }
.wallet-btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.menu-btn { display: none; }

/* launch tape under the top bar */
.tape { height: 36px; border-bottom: 1px solid var(--line); overflow: hidden; position: relative; background: var(--bg); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.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: 600 12.5px var(--sans); 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: 500; }
.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 { padding: 20px 24px 40px 42px; width: 100%; max-width: 1640px; display: grid; gap: 16px; }
.banner { padding: 8px 24px; font-size: 12.5px; text-align: center; border-bottom: 1px solid var(--line); background: var(--amber-soft); color: var(--amber); }

/* ── 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 16px; border-radius: var(--r); 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: #a9f8e6; border-color: #a9f8e6; }
.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: 8px; min-width: 0; }
.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; }

/* ── hero ── */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 520px); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: radial-gradient(120% 150% at 0% 0%, #123532 0%, #0e2224 40%, #0d1c20 70%); }
.hero-copy { padding: 70px 40px 30px; display: flex; flex-direction: column; min-width: 0; }
.eyebrow { font: 700 10.5px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mint); }
.hero h1 { margin: 16px 0 0; font: 800 clamp(36px, 4.1vw, 58px)/1.02 var(--sans); letter-spacing: -.065em; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero p { margin: 22px 0 0; color: var(--dim); max-width: 52ch; font-size: 16px; line-height: 1.6; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: 6px; margin-top: auto; padding-top: 30px; }
.facts-line { height: 1px; background: var(--line-2); max-width: 450px; margin-top: 32px; }
.facts div { display: grid; gap: 6px; padding-top: 22px; }
.facts span { font-size: 12.5px; color: var(--faint); }
.facts b { font: 600 13px var(--mono); }

.mkt { border-left: 1px solid var(--line); background: var(--bg); display: grid; grid-template-rows: auto auto 1fr auto; min-width: 0; }
.mkt-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.mkt-ic { width: 28px; height: 28px; border-radius: var(--r); display: grid; place-items: center; background: var(--panel-3); border: 1px solid var(--line-2); color: var(--dim); }
.mkt-ic svg { width: 14px; height: 14px; }
.mkt-head .nm { display: grid; line-height: 1.3; }
.mkt-head .nm b { font: 700 14px var(--sans); }
.mkt-head .nm span { font-size: 11.5px; color: var(--faint); }
.mkt-head .px { margin-left: auto; text-align: right; display: grid; line-height: 1.25; }
.mkt-head .px b { font: 600 19px var(--mono); }
.mkt-head .px span { font: 500 11.5px var(--mono); }
.live-chip { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 4px; background: rgba(148, 245, 222, .1); border: 1px solid rgba(148, 245, 222, .22); color: var(--mint); font: 700 9.5px var(--sans); letter-spacing: .12em; }
.live-chip svg { width: 10px; height: 10px; }
.mkt-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--panel-3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mkt-stats div { padding: 9px 16px; display: grid; gap: 2px; border-right: 1px solid var(--line); min-width: 0; }
.mkt-stats div:last-child { border-right: 0; }
.mkt-stats span { font-size: 11px; color: var(--faint); }
.mkt-stats b { font: 600 12px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt-chart { position: relative; min-height: 210px; padding: 10px 0 6px; }
.mkt-chart svg { display: block; width: 100%; height: 100%; }
.mkt-chart .tag { font: 600 9.5px var(--mono); }
.mkt-foot { border-top: 1px solid var(--line); padding: 16px; }
.agent-call { display: flex; gap: 14px; padding: 16px; background: #091619; border: 1px solid var(--line); border-radius: 8px; }
.agent-call .ic { width: 34px; height: 34px; border-radius: var(--r); display: grid; place-items: center; background: var(--panel-3); border: 1px solid var(--line-2); color: var(--mint); flex: none; }
.agent-call .ic svg { width: 16px; height: 16px; }
.agent-call b { display: block; font-size: 14px; }
.agent-call p { margin: 4px 0 8px; font-size: 12.5px; color: var(--dim); line-height: 1.55; }
.agent-call a { font-size: 12.5px; font-weight: 700; }
.mini-top { display: grid; gap: 2px; }
.mini-top a { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: var(--r); color: var(--text); font-size: 13px; }
.mini-top a:hover { background: var(--panel-3); text-decoration: none; }
.mini-top a > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── stat strip ── */
.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; 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(148, 245, 222, .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: #04201a; 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: 14px; border: 1px solid var(--line); border-radius: 8px; 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; }
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.split2 > div { padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel-2); display: grid; gap: 4px; min-width: 0; }
.split2 span { font-size: 11.5px; color: var(--faint); }
.split2 b { font: 600 15px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.split2 small { font-size: 11.5px; color: var(--dim); }
.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: 8px; 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: 10px; 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; }

/* ── 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; } }
@media (max-width: 720px) { .c-strat, .c-trend { display: 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); }
  .top .chip.ca { display: none; }
}
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .mkt { border-left: 0; border-top: 1px solid var(--line); }
  .hero-copy { padding: 44px 28px 26px; }
  .grid-side, .launch { grid-template-columns: 1fr; }
  .preview { position: static; }
  .flow { grid-template-columns: 1fr; }
  .flow div { border-right: 0; border-bottom: 1px solid var(--line); }
  .search { flex-basis: 220px; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 50; left: 0; width: 250px; transform: translateX(-100%); transition: transform .2s; }
  .shell.menu .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.55); }
  .menu-btn { display: inline-grid; }
  .crumbs, .px-chip { display: none; }
  .search { flex: 1 1 auto; }
  .search kbd { display: none; }
  .top { padding-left: 8px; gap: 8px; }
  .wallet-btn { padding: 0 12px; font-size: 13px; }
  .content { padding: 16px; }
  .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; }
}
@media (max-width: 560px) {
  .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; }
  .hero-copy { padding: 34px 18px 22px; }
  .hero p { font-size: 15px; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mkt-stats div { padding: 8px 10px; }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner .btns, .split2 { grid-template-columns: 1fr; }
  .owner .btns .wide { grid-column: auto; }
  .wallet-btn svg { display: none; }
  .top .icon-btn.x { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* 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; } }
