/* A dark trading desk for a card vault: ink surfaces, hairlines, one volt-green action colour, and a holographic foil
   line where something is worth looking at. One type family with a width axis (condensed labels, expanded titles) and a
   monospace for every number and address. No build step. */
:root {
  --bg: #0a0b0d; --panel: #111318; --panel-2: #171a21; --panel-3: #1d212a; --line: #232833; --line-2: #2f3542;
  --text: #ece9e2; --muted: #8e95a3; --faint: #5d6473;
  --volt: #b7f34a; --volt-dk: #94cf2a; --volt-ink: #0c1004;
  --cyan: #5ad7ff; --ember: #ff7a45; --amber: #ffb547; --red: #ff5d5d; --good: #4ade80; --slate: #56607a;
  --foil: linear-gradient(115deg, #7cf7ff 0%, #a78bfa 32%, #f0abfc 52%, #fde68a 78%, #7cf7ff 100%);
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --rail: 236px; --r: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--sans); font-stretch: 100%; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; background:
  radial-gradient(900px 480px at 88% -8%, rgba(167,139,250,.13), transparent 62%), radial-gradient(700px 420px at 30% 110%, rgba(183,243,74,.06), transparent 60%),
  radial-gradient(circle at 1px 1px, rgba(255,255,255,.035) 1px, transparent 1.4px) 0 0 / 22px 22px; }
a { color: inherit; } a:hover { color: var(--volt); }
b, strong { font-weight: 700; }
code, .mono, .num { font-family: var(--mono); font-size: .92em; }
::selection { background: var(--volt); color: var(--volt-ink); }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); } .small { font-size: 13px; }

/* ---------- the frame: a rail on the left, the desk on the right ---------- */
.shell { position: relative; z-index: 1; display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; padding: 22px 16px 18px; border-right: 1px solid var(--line); background: rgba(10,11,13,.82); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 2px 6px; }
.brand .mark { width: 26px; height: 32px; border-radius: 6px; position: relative; flex: none; background: var(--foil); }
.brand .mark::before { content: ""; position: absolute; inset: 2.5px; border-radius: 4px; background: var(--bg); }
.brand .mark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 12px rgba(183,243,74,.7); }
.wordmark { font-weight: 800; font-stretch: 118%; font-size: 19px; letter-spacing: -.01em; color: var(--text); }
.railnav { display: flex; flex-direction: column; gap: 2px; }
.tab { display: flex; align-items: baseline; gap: 12px; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14.5px; border: 1px solid transparent; }
.tab i { font: 500 11px var(--mono); color: var(--faint); font-style: normal; }
.tab:hover { color: var(--text); background: var(--panel); }
.tab.on { color: var(--text); background: var(--panel-2); border-color: var(--line-2); }
.tab.on i { color: var(--volt); }
.railstatus { margin-top: auto; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); display: grid; gap: 6px; font-size: 12.5px; }
.statline { display: flex; align-items: center; gap: 8px; color: var(--text); line-height: 1.3; } .statline.dim { display: block; color: var(--muted); padding-left: 16px; } .statline b { color: var(--text); }
.livedot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.livedot.ok { background: var(--volt); box-shadow: 0 0 0 3px rgba(183,243,74,.16), 0 0 10px rgba(183,243,74,.6); animation: breathe 2.4s ease-in-out infinite; }
.livedot.warn { background: var(--amber); box-shadow: 0 0 0 3px rgba(255,181,71,.16); }
@keyframes breathe { 50% { box-shadow: 0 0 0 5px rgba(183,243,74,.06), 0 0 4px rgba(183,243,74,.3); } }
.walletpill { font: 700 13px var(--mono); letter-spacing: .02em; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); cursor: pointer; }
.walletpill:hover { border-color: var(--volt); color: var(--volt); } .walletpill.on { background: rgba(183,243,74,.1); border-color: rgba(183,243,74,.5); color: var(--volt); }

.stage { min-width: 0; display: flex; flex-direction: column; }
.view { width: 100%; max-width: 1180px; margin: 0 auto; padding: 38px 36px 60px; flex: 1; }
.foot { max-width: 1180px; width: 100%; margin: 0 auto; padding: 22px 36px 40px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; display: grid; gap: 6px; }
.foot strong { color: var(--muted); } .foot code { color: var(--muted); word-break: break-all; }

/* ---------- page furniture ---------- */
.eyebrow { font: 500 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--volt); margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.eyebrow::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.pagetitle { margin: 0 0 12px; font-weight: 800; font-stretch: 122%; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.02; letter-spacing: -.025em; }
.pagetitle span { color: var(--muted); font-weight: 500; font-stretch: 100%; font-size: .5em; letter-spacing: .02em; margin-left: .35em; font-family: var(--mono); }
.lead { color: var(--muted); font-size: 16px; max-width: 760px; margin: 0 0 22px; }
.sub2 { margin: 44px 0 14px; font-weight: 700; font-stretch: 112%; font-size: 20px; letter-spacing: -.01em; display: flex; align-items: center; gap: 12px; }
.sub2::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.panel + .panel { margin-top: 14px; }
.panel h3, .label { margin: 0 0 12px; font: 600 11.5px var(--sans); font-stretch: 86%; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.note { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); border-left: 3px solid var(--cyan); background: var(--panel); font-size: 14px; color: var(--text); }
.note.warn { border-left-color: var(--amber); } .note.bad { border-left-color: var(--red); } .note.good { border-left-color: var(--volt); }
.note.inline { margin-top: 14px; } .note a { color: var(--volt); }
.empty { list-style: none; padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 12.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 12px 18px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); cursor: pointer; text-decoration: none; transition: transform .08s ease, border-color .15s, background .15s; }
.btn:hover { border-color: var(--text); color: var(--text); } .btn:active { transform: translateY(1px); } .btn:disabled { opacity: .45; cursor: progress; }
.btn.primary { background: var(--volt); border-color: var(--volt); color: var(--volt-ink); } .btn.primary:hover { background: #c8ff63; color: var(--volt-ink); }
.btn.warnb { border-color: rgba(255,181,71,.55); color: var(--amber); } .btn.info { border-color: rgba(90,215,255,.5); color: var(--cyan); }
.btn.sm { padding: 9px 12px; font-size: 11.5px; } .btn.wide { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }

.inputrow { display: flex; align-items: stretch; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.inputrow:focus-within { border-color: var(--volt); box-shadow: 0 0 0 3px rgba(183,243,74,.12); }
.inputrow input, .inputrow textarea { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); padding: 11px 13px; font: 500 15px var(--sans); resize: vertical; }
.inputrow input::placeholder, .inputrow textarea::placeholder { color: var(--faint); }
.inputrow input:focus, .inputrow textarea:focus { outline: none; }
select.unit, .sortlab select { border: 0; border-left: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); padding: 0 12px; font: 700 12.5px var(--mono); cursor: pointer; }
.field { display: grid; gap: 7px; } .field > label, .fieldlabel { font: 600 11.5px var(--sans); font-stretch: 86%; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.field small { color: var(--muted); font-size: 13px; line-height: 1.5; } .field small b { color: var(--text); }
input[type=file] { color: var(--muted); font: 500 13px var(--sans); padding: 9px 0; }
input[type=file]::file-selector-button { font: 700 11.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; margin-right: 12px; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); cursor: pointer; }
.err { color: var(--red); font-size: 14px; min-height: 1px; }

/* ---------- markets ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: stretch; margin-bottom: 18px; }
.hero-copy { padding: 26px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--panel-2), var(--panel)); position: relative; overflow: hidden; }
.hero-copy::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--foil); opacity: .85; }
.hero-copy h2 { margin: 0 0 10px; font-weight: 800; font-stretch: 120%; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.08; letter-spacing: -.02em; }
.hero-copy h2 em { font-style: normal; color: var(--volt); }
.hero-copy p { margin: 0 0 18px; color: var(--muted); max-width: 520px; }
.figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.figures > div { background: var(--panel); padding: 18px; display: grid; gap: 4px; align-content: center; }
.figures b { font: 700 clamp(22px, 2.6vw, 30px) var(--mono); letter-spacing: -.03em; color: var(--text); }
.figures span { font: 600 11px var(--sans); font-stretch: 86%; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toolbar { display: flex; gap: 10px; align-items: stretch; margin: 22px 0 10px; flex-wrap: wrap; }
.searchrow { flex: 1; min-width: 240px; display: flex; }
.searchrow .inputrow { flex: 1; } .searchrow .btn { border-radius: 0 10px 10px 0; margin-left: -1px; } .searchrow .inputrow { border-radius: 10px 0 0 10px; }
.sortlab { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; font: 600 11px var(--sans); font-stretch: 86%; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sortlab > span { padding: 0 12px; display: grid; place-items: center; background: var(--panel); } .sortlab select { border-left: 1px solid var(--line-2); min-height: 42px; }
.resultline { color: var(--muted); font: 500 12px var(--mono); min-height: 18px; margin-bottom: 6px; }
.dex { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); }
.dex > li + li { border-top: 1px solid var(--line); }
.dexhead, .dexbtn { display: grid; grid-template-columns: 58px minmax(0, 2.2fr) minmax(0, 1.5fr) 90px 110px 84px 22px; gap: 14px; align-items: center; padding: 12px 16px; }
.dexhead { font: 600 10.5px var(--sans); font-stretch: 86%; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); background: var(--panel-2); padding-top: 9px; padding-bottom: 9px; }
.dexhead .n, .dexbtn .n { text-align: right; }
.dexbtn { text-decoration: none; color: var(--text); transition: background .12s; }
.dexbtn:hover { background: var(--panel-2); color: var(--text); } .dexbtn:hover .go { color: var(--volt); transform: translateX(3px); }
.dexname { margin: 0; font-weight: 700; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dexsub { font: 500 12px var(--mono); color: var(--muted); display: flex; gap: 8px; align-items: center; }
.dexno { color: var(--faint); }
.dexbtn .n { font: 500 13.5px var(--mono); } .dexbtn .n small { display: block; color: var(--faint); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.go { color: var(--faint); transition: transform .15s, color .15s; font-family: var(--mono); }
.chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 10px 5px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip .dot, .plate-foot .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hue, var(--volt)); box-shadow: 0 0 8px var(--hue, var(--volt)); flex: none; }
.chip em { font-style: normal; color: var(--muted); font: 500 11.5px var(--mono); }
.thumb { width: 58px; height: 58px; border-radius: 12px; position: relative; overflow: hidden; background: linear-gradient(140deg, color-mix(in srgb, var(--hue, #b7f34a) 38%, #14161c), #14161c 70%); border: 1px solid var(--line-2); display: grid; place-items: center; }
.thumb span, .plate-mono { font-weight: 800; font-stretch: 125%; color: color-mix(in srgb, var(--hue, #b7f34a) 70%, #fff); opacity: .9; }
.thumb span { font-size: 22px; } .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- the plate: what a coin is, and what it collects ---------- */
.plate { --w: 230px; width: var(--w); border-radius: 16px; padding: 1.5px; background: var(--foil); position: relative; box-shadow: 0 24px 60px -30px rgba(124,247,255,.35); }
.plate.big { --w: min(320px, 100%); }
.plate-art { position: relative; aspect-ratio: 1; border-radius: 14.5px 14.5px 0 0; overflow: hidden; display: grid; place-items: center; background: radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--hue) 55%, #12141a), #12141a 72%); }
.plate-art.any { background: conic-gradient(from 210deg at 50% 60%, #12141a, #2b2350, #123845, #3a3217, #12141a); }
.plate-mono { font-size: calc(var(--w) * .42); line-height: 1; }
.plate-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate-tag { position: absolute; left: 12px; top: 12px; padding: 4px 8px; border-radius: 6px; background: rgba(10,11,13,.78); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.14); font: 700 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plate-foot { display: flex; align-items: center; gap: 9px; padding: 11px 13px; background: var(--panel); border-radius: 0 0 14.5px 14.5px; }
.plate-foot strong { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate-foot em { margin-left: auto; font: 500 11.5px var(--mono); font-style: normal; color: var(--muted); white-space: nowrap; }

/* ---------- pulls: the cards that were bought ---------- */
.binder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.pull { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.pull:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pull figure { margin: 0; padding: 10px 10px 0; } .pull figure a { display: block; text-decoration: none; color: inherit; }
/* the slab: a label across the top and the card under clear plastic, the way a graded card is actually held */
.slab { position: relative; display: flex; flex-direction: column; aspect-ratio: 5 / 7; border-radius: 9px; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, #e9eaec 0%, #cfd2d6 18%, #eef0f2 42%, #c7cace 70%, #e4e6e9 100%); padding: 5px 5px 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), inset 0 -14px 26px -16px rgba(0,0,0,.5), 0 10px 26px -14px rgba(0,0,0,.8); }
.slab-label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 4px 4px 0 0; background: #fbfbf9; border-bottom: 2px solid var(--ink, #c8102e); }
.slab-brand { font: 900 11px var(--sans); font-stretch: 112%; letter-spacing: .04em; color: var(--ink, #c8102e); }
.slab-title { font: 600 8.5px var(--sans); font-stretch: 84%; line-height: 1.15; color: #1b1b1b; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slab-grade { display: flex; align-items: baseline; gap: 3px; color: #111; }
.slab-grade em { font: 700 7px var(--sans); font-stretch: 84%; letter-spacing: .06em; font-style: normal; color: #55585e; }
.slab-grade b { font: 800 15px var(--mono); line-height: 1; letter-spacing: -.04em; }
.slab-win { position: relative; flex: 1; margin: 4px 1px 0; border-radius: 3px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 85% at 50% 0%, color-mix(in srgb, var(--hue, #a78bfa) 45%, #17191f), #12141a 76%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.slab-win img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slab-ghost { font: 800 clamp(34px, 7vw, 54px) var(--sans); font-stretch: 125%; color: color-mix(in srgb, var(--hue, #a78bfa) 62%, #fff); opacity: .34; }
.slab-foot { display: flex; justify-content: space-between; gap: 8px; padding: 4px 6px 5px; font: 500 7.5px var(--mono); letter-spacing: .06em; color: #4c5059; }
.slab-shine { position: absolute; inset: 0; pointer-events: none; z-index: 2; border-radius: 9px;
  background: linear-gradient(108deg, transparent 30%, rgba(255,255,255,.22) 42%, rgba(255,255,255,.05) 49%, transparent 57%); }
.pull:hover .slab-shine { background: linear-gradient(108deg, transparent 22%, rgba(255,255,255,.44) 37%, rgba(255,255,255,.08) 47%, transparent 56%); }
.gradebadge { display: none; position: absolute; right: 9px; top: 9px; min-width: 34px; padding: 4px 7px; border-radius: 8px; font: 700 13px var(--mono); text-align: center; color: var(--text); background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--foil) border-box; border: 1.5px solid transparent; }
.certline { position: absolute; left: 9px; bottom: 9px; padding: 3px 7px; border-radius: 6px; background: rgba(10,11,13,.78); backdrop-filter: blur(6px); font: 500 10.5px var(--mono); color: var(--muted); letter-spacing: .04em; }
.pull .cap { padding: 11px 12px 13px; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.pull .cap b { color: var(--text); font-weight: 600; font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pull .cap .price { font: 700 14px var(--mono); color: var(--volt); } .pull .cap a { color: var(--text); } .pull .cap a:hover { color: var(--volt); }
.tape { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.tape .tick { flex: none; display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; }
.tape .tick b { color: var(--volt); font-weight: 700; } .tape .tick i { width: 6px; height: 6px; border-radius: 50%; background: var(--volt); font-style: normal; }

/* ---------- the fee split ---------- */
.feebar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--bg); gap: 2px; }
.feebar i { display: block; height: 100%; border-radius: 2px; }
.kv { display: grid; margin-top: 12px; }
.kv > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.kv > div:first-child { border-top: 0; } .kv .k { color: var(--muted); display: flex; align-items: center; gap: 9px; } .kv .v { font: 500 13.5px var(--mono); text-align: right; }
.swatch { width: 9px; height: 9px; border-radius: 3px; flex: none; }

/* ---------- a coin ---------- */
.coinhero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 8px; }
.blurb { color: var(--muted); font-size: 16px; max-width: 640px; margin: 0 0 18px; } .blurb b { color: var(--text); }
.infopanel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 18px 0 0; }
.infopanel > div { background: var(--panel); padding: 13px 14px; display: grid; gap: 3px; }
.infopanel .k { font: 600 10.5px var(--sans); font-stretch: 86%; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); } .infopanel .v { font: 700 16px var(--mono); letter-spacing: -.02em; }
.entrygrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 22px; align-items: start; }
.bignum { font: 700 clamp(34px, 5vw, 52px) var(--mono); letter-spacing: -.04em; line-height: 1; margin-bottom: 6px; }
.stream { height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; margin-top: 14px; border: 1px solid var(--line); }
.stream i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--volt-dk), var(--volt)); box-shadow: 0 0 14px rgba(183,243,74,.5); }
.streamcap { display: flex; justify-content: space-between; gap: 10px; font: 500 12px var(--mono); color: var(--muted); margin-top: 7px; }
.tablewrap { border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font: 600 10.5px var(--sans); font-stretch: 86%; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); background: var(--panel-2); padding: 10px 14px; }
td { padding: 11px 14px; border-top: 1px solid var(--line); } td.n, th.n { text-align: right; font-family: var(--mono); } td.mono { font-size: 13px; }
tr.next td { background: rgba(183,243,74,.06); } tr.next td:first-child { box-shadow: inset 3px 0 0 var(--volt); }
.nexttag { margin-left: 8px; padding: 2px 7px; border-radius: 6px; background: var(--volt); color: var(--volt-ink); font: 700 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- launch ---------- */
.two { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.launchform { display: grid; gap: 14px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 14px; }
.step > header { display: flex; align-items: baseline; gap: 12px; } .step > header i { font: 700 12px var(--mono); color: var(--volt); font-style: normal; }
.step > header h3 { margin: 0; font-weight: 700; font-stretch: 110%; font-size: 17px; } .step > header small { margin-left: auto; color: var(--muted); font-size: 12.5px; text-align: right; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.pickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.pick { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: 600 14px var(--sans); cursor: pointer; text-align: left; }
.pick .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hue, var(--volt)); box-shadow: 0 0 9px var(--hue, var(--volt)); flex: none; }
.pick.any .dot { background: var(--foil); box-shadow: none; }
.pick small { margin-left: auto; color: var(--faint); font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.pick:hover { border-color: var(--muted); } .pick[aria-pressed=true] { border-color: var(--volt); background: rgba(183,243,74,.08); } .pick[aria-pressed=true] small { color: var(--volt); }
.gradechips { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--bg); }
.gchip { border: 0; border-left: 1px solid var(--line-2); background: transparent; color: var(--muted); padding: 10px 6px; font: 700 13.5px var(--mono); cursor: pointer; display: grid; gap: 2px; }
.gchip:first-child { border-left: 0; } .gchip small { font: 500 10px var(--sans); font-stretch: 86%; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.gchip:hover { color: var(--text); } .gchip[aria-pressed=true] { background: var(--volt); color: var(--volt-ink); } .gchip[aria-pressed=true] small { color: rgba(12,16,4,.7); }
.ac-host { position: relative; }
.ac { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; margin-top: 6px; padding: 4px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); box-shadow: 0 20px 44px -18px rgba(0,0,0,.9); display: grid; gap: 2px; max-height: 268px; overflow: auto; }
.acrow { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--text); font: 600 14px var(--sans); text-align: left; cursor: pointer; }
.acrow em { margin-left: auto; font: 500 11px var(--mono); font-style: normal; color: var(--faint); white-space: nowrap; }
.acrow:hover, .acrow.on { background: rgba(183,243,74,.12); color: var(--volt); } .acrow:hover em, .acrow.on em { color: var(--volt); }
.locknote { padding: 13px 14px; border-radius: 10px; background: var(--bg); border: 1px dashed var(--line-2); font-size: 13.5px; color: var(--muted); line-height: 1.55; } .locknote b { color: var(--text); }
.fixedrow { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.fixedrow > div { background: var(--bg); padding: 12px 14px; display: grid; gap: 2px; }
.fixedrow span { font: 600 10.5px var(--sans); font-stretch: 86%; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); } .fixedrow b { font: 700 18px var(--mono); } .fixedrow small { color: var(--faint); font-size: 12px; }
.preview { position: sticky; top: 22px; display: grid; gap: 14px; } .preview .panel + .panel { margin-top: 0; }
.platewrap { display: grid; place-items: center; padding: 26px 18px; }

/* ---------- mechanics ---------- */
.flow { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; counter-reset: f; }
.flow li { counter-increment: f; background: var(--panel); padding: 18px; display: grid; gap: 6px; align-content: start; position: relative; }
.flow li::before { content: "0" counter(f); font: 700 12px var(--mono); color: var(--volt); }
.flow .orb { font: 700 22px var(--mono); letter-spacing: -.03em; } .flow .cn { font-weight: 700; } .flow .cd { color: var(--muted); font-size: 13.5px; }
.prose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.prose > section { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; } .prose > section.wide { grid-column: 1 / -1; }
.prose h3 { margin: 0 0 10px; font-weight: 700; font-stretch: 110%; font-size: 17px; }
.prose ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; } .prose li { position: relative; padding-left: 18px; color: var(--muted); font-size: 14.5px; } .prose li b { color: var(--text); }
.prose li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 1.5px; background: var(--volt); transform: rotate(45deg); }

/* ---------- setup: the operator's console ---------- */
.checks { list-style: none; margin: 0 0 8px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 14px; } .checks li:first-child { border-top: 0; }
.checks .mark { font: 700 13px var(--mono); grid-row: span 3; } .checks li.ok .mark { color: var(--volt); } .checks li.bad .mark { color: var(--red); }
.checks .detail { grid-column: 2; font: 500 12.5px var(--mono); color: var(--muted); word-break: break-word; } .checks .fix { grid-column: 2; margin-top: 5px; padding: 8px 10px; border-radius: 8px; background: rgba(255,181,71,.08); border: 1px solid rgba(255,181,71,.25); color: var(--amber); font-size: 13px; }
pre.out { margin: 14px 0 0; padding: 14px; border-radius: var(--r); background: #06070a; border: 1px solid var(--line); color: #c9f7a0; font: 500 12.5px/1.55 var(--mono); max-height: 460px; overflow: auto; white-space: pre-wrap; word-break: break-word; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 50; max-width: min(520px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 12px; background: var(--text); color: #0a0b0d; font-weight: 600; font-size: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.5); }

/* ---------- smaller screens: the rail becomes a top bar, the sections a bottom bar ---------- */
@media (max-width: 1040px) { .hero, .two, .entrygrid { grid-template-columns: minmax(0, 1fr); } .preview { position: static; } .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  /* no backdrop-filter here: it would make the rail the containing block of the fixed bottom bar inside it */
  .rail { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; gap: 10px; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); background: var(--bg); backdrop-filter: none; }
  .railstatus { margin: 0 0 0 auto; padding: 0; border: 0; background: none; } .railstatus .dim { display: none; } .statline { font-size: 11.5px; color: var(--muted); }
  .walletpill { padding: 9px 11px; font-size: 12px; }
  .railnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; flex-direction: row; gap: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(10,11,13,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .tab { flex: 1; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; font-size: 11.5px; text-align: center; } .tab i { font-size: 9.5px; }
  .view { padding: 24px 16px 40px; } .foot { padding: 20px 16px 96px; }
  .coinhero { grid-template-columns: minmax(0, 1fr); } .plate.big { --w: min(300px, 100%); margin: 0 auto; }
  .dexhead { display: none; } .dexbtn { grid-template-columns: 52px minmax(0, 1fr) 18px; row-gap: 6px; } .dexbtn .c-collects { grid-column: 2; grid-row: 2; } .dexbtn .n { display: none; } .thumb { width: 52px; height: 52px; grid-row: span 2; } .go { grid-row: span 2; }
  .infopanel { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prose { grid-template-columns: minmax(0, 1fr); } .row2 { grid-template-columns: minmax(0, 1fr); }
  .toast { bottom: 84px; }
}
@media (max-width: 520px) { .railstatus { display: none; } .flow { grid-template-columns: minmax(0, 1fr); } .figures b { font-size: 22px; } .gchip small { display: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
