/* ROUTER: 1px hairlines, small radii, Geist + Geist Mono. Every colour is a token below. */
/* light: sage and forest. dark (default): pump.fun-style charcoal with mint green. */
:root {
  --bg: #f3f7f2; --bg-2: #eaf1ea; --card: #fbfdfa; --input: #fff;
  --ink: #132a1e; --forest: #1d4a35; --muted: #58705f; --faint: #8aa093;
  --line: rgba(29, 74, 53, 0.13); --line-2: rgba(29, 74, 53, 0.22);
  --mint: #a8d5bd; --wire: #a8d5bd; --led: #2fbf71; --ring: rgba(47, 191, 113, 0.16); --warn: #b5562f;
  --btn: #132a1e; --btn-ink: #fffdf0; --btn-hover: #1d4a35; --tile: #132a1e; --dot: rgba(29, 74, 53, 0.07); --sdot: rgba(29, 74, 53, 0.16);
  --top-bg: rgba(243, 247, 242, 0.86); --c-when: #2b8a57;
  --ok-bg: #eaf7ef; --err-bg: #fbf1ec; --err-ink: #7a3a1f; --err-line: rgba(181, 86, 47, 0.3);
  --cta-bg: #132a1e; --cta-ink: #fffdf0; --cta-sub: #a8d5bd; --cta-btn: #fffdf0; --cta-btn-ink: #132a1e;
  --toast: #132a1e; --toast-ink: #fffdf0;
  --a-buyback: #1d4a35; --a-liquidity: #2fbf71; --a-swap: #7cbf98; --a-creator: #c99a2e; --a-holders: #9db35f;
  --shadow: 0 1px 0 rgba(19, 42, 30, 0.04), 0 8px 24px -16px rgba(19, 42, 30, 0.18);
  --r: 10px; --r-sm: 7px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #15161b; --bg-2: #1f2026; --card: #1b1c22; --input: #121318;
  --ink: #eceef0; --forest: #86efac; --muted: #9a9ea8; --faint: #6c707a;
  --line: rgba(255, 255, 255, 0.07); --line-2: rgba(255, 255, 255, 0.13);
  --mint: #86efac; --wire: rgba(134, 239, 172, 0.32); --led: #4ade80; --ring: rgba(74, 222, 128, 0.18); --warn: #f08a6b;
  --btn: #86efac; --btn-ink: #0d1510; --btn-hover: #a7f3c0; --tile: #0b0c0f; --dot: rgba(255, 255, 255, 0.035); --sdot: rgba(255, 255, 255, 0.09);
  --top-bg: rgba(21, 22, 27, 0.86); --c-when: #86efac;
  --ok-bg: rgba(74, 222, 128, 0.1); --err-bg: rgba(240, 138, 107, 0.1); --err-ink: #f4a68e; --err-line: rgba(240, 138, 107, 0.3);
  --cta-bg: #1b1c22; --cta-ink: #eceef0; --cta-sub: #9a9ea8; --cta-btn: #86efac; --cta-btn-ink: #0d1510;
  --toast: #26282f; --toast-ink: #eceef0;
  --a-buyback: #eceef0; --a-liquidity: #4ade80; --a-swap: #bef264; --a-creator: #f2b84b; --a-holders: #b9a3f5;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 10px 28px -18px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; min-height: 100vh;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 22px 22px;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; font-weight: 600; }
p { margin: 0; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 1; }
.muted { color: var(--muted); }
.hide { display: none !important; }
:focus-visible { outline: 2px solid var(--led); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--mint); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.pg { padding: 36px 0 72px; }
#view { outline: none; }
.page-in { animation: pageIn 0.38s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } }
[data-fade] { opacity: 0; transform: translateY(10px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
[data-fade].is-in { opacity: 1; transform: none; }

/* ---------- LED ---------- */
.led { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--line-2); flex: none; transition: background 0.25s, box-shadow 0.25s; }
.led.on { background: var(--led); box-shadow: 0 0 0 3px var(--ring); }

/* ---------- top ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--top-bg); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
body.scrolled .top { border-bottom-color: var(--line); }
.top-in { width: min(1160px, 100% - 32px); margin-inline: auto; height: 56px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; letter-spacing: -0.02em; font-size: 16px; }
.brand .logo { border-radius: 7px; }
.nav { display: flex; gap: 2px; margin-inline: auto; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.nav a { white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 7px; font-size: 13.5px; color: var(--muted); transition: color 0.15s, background 0.15s; }
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav a.on { color: var(--ink); background: var(--bg-2); }
.nav a.on .led { background: var(--led); box-shadow: 0 0 0 3px var(--ring); }
.top-end { display: flex; align-items: center; gap: 8px; }
.socials { display: inline-flex; gap: 4px; }
.ib { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--ink); border: 1px solid var(--line); background: var(--card); transition: border-color 0.15s, transform 0.15s; }
.ib:hover { border-color: var(--line-2); transform: translateY(-1px); }
.ib img { border-radius: 4px; }
.status-line { border-top: 1px solid var(--line); height: 32px; display: flex; align-items: center; gap: 10px; width: min(1160px, 100% - 32px); margin-inline: auto; font-size: 12.5px; overflow: hidden; white-space: nowrap; }
.st-k { font-family: var(--mono); font-weight: 500; }
.st-v { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.st-b { border: 0; background: none; padding: 0; cursor: pointer; color: var(--forest); font-size: 12.5px; font-weight: 500; }
.st-b:hover { text-decoration: underline; text-underline-offset: 3px; }
.st-b:first-of-type { margin-left: auto; }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--btn); background: var(--btn); color: var(--btn-ink); font-weight: 600; font-size: 14px; cursor: pointer; transition: transform 0.15s, background 0.15s, box-shadow 0.15s; white-space: nowrap; }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.45); }
.btn:active { transform: none; }
.btn:disabled { background: var(--bg-2); border-color: var(--line-2); color: var(--faint); cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--bg-2); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; height: 44px; }
.wallet.on { background: var(--card); color: var(--ink); border-color: var(--line-2); font-family: var(--mono); font-size: 12.5px; }
.wallet.on::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--led); }
.link { border: 0; background: none; padding: 0; cursor: pointer; color: var(--forest); font-size: 13.5px; font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 30px; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--card); font-size: 13px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.chip:hover { background: var(--bg-2); }
.chip.on { border-color: var(--btn); background: var(--btn); color: var(--btn-ink); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.sm { gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); font-size: 11.5px; color: var(--forest); }

/* ---------- panels ---------- */
.panel { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.pad { padding: 18px; }
.k { display: inline-block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ph { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.fine { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.08fr; gap: 48px; align-items: center; padding: 64px 0 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--forest); padding: 5px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); }
.hero h1 { margin-top: 18px; font-size: clamp(36px, 4.6vw, 54px); letter-spacing: -0.035em; line-height: 1.02; }
.hero h1 span { color: var(--forest); }
.lede { margin: 16px 0 24px; font-size: 16.5px; color: var(--muted); max-width: 470px; }
.lede.sm { font-size: 15.5px; max-width: 620px; margin-bottom: 8px; }
.mini { display: flex; gap: 0; margin: 30px 0 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); width: fit-content; }
.mini div { padding: 10px 16px; border-left: 1px solid var(--line); }
.mini div:first-child { border-left: 0; }
.mini dt { font-size: 11.5px; color: var(--muted); }
.mini dd { margin: 2px 0 0; font-size: 17px; font-weight: 500; }

/* console */
.console { overflow: hidden; }
.con-bar { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--bg); }
.dots3 { display: inline-flex; gap: 5px; padding-left: 4px; }
.dots3 i { width: 8px; height: 8px; border-radius: 2px; background: var(--line-2); }
.dots3 i:first-child { background: var(--led); }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tab { border: 0; background: none; height: 26px; padding: 0 10px; border-radius: 6px; font-size: 12.5px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.on { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.con-body { padding: 10px 14px 6px; min-height: 236px; display: grid; align-items: center; transition: opacity 0.16s; }
.con-body.swap { opacity: 0; }
.console .code { margin: 0; border-radius: 0; border: 0; border-top: 1px solid var(--line); }
.con-use { position: absolute; right: 12px; bottom: 10px; font-size: 12.5px; font-weight: 500; color: var(--forest); padding: 4px 8px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); transition: transform 0.15s; }
.con-use:hover { transform: translateX(2px); }

/* schematic */
.schem { width: 100%; height: auto; display: block; font-family: var(--sans); }
.schem .dots circle { fill: var(--sdot); }
.schem .wire { fill: none; stroke: var(--wire); stroke-linecap: round; }
.schem .wire.src { stroke: var(--forest); stroke-dasharray: 4 5; }
.schem .pill { fill: var(--card); stroke: var(--line-2); }
.schem text { font-size: 12.5px; fill: var(--ink); font-weight: 500; }
.schem text.k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; fill: var(--muted); font-weight: 400; }
.schem text.pct { font-family: var(--mono); font-weight: 500; fill: var(--forest); }
.schem text.cond { font-family: var(--mono); font-size: 10.5px; fill: var(--forest); font-weight: 400; }
.schem .core > rect { fill: var(--tile); stroke: var(--line-2); }
.schem .pkt-src { fill: var(--forest); }
.schem .out { transition: transform 0.3s; }
@media (prefers-reduced-motion: reduce) { .schem .pkt { display: none; } }

/* code */
.code { margin: 0; padding: 14px 16px; font: 12.5px/1.7 var(--mono); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); overflow-x: auto; color: var(--ink); white-space: pre; }
.c-kw { color: var(--forest); font-weight: 500; }
.c-when { color: var(--c-when); }
.c-out { color: var(--ink); }

/* ---------- sections ---------- */
.sec { padding: 44px 0 0; }
.sec-h { margin-bottom: 18px; display: grid; gap: 8px; }
.sec-h h2 { font-size: clamp(22px, 2.4vw, 28px); }
.sec-h p { color: var(--muted); max-width: 640px; }
.sec-h.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sec-h.split > div { display: grid; gap: 8px; }
.h-pg { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; }

.ports { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; }
.port { padding: 18px; border-left: 1px solid var(--line); transition: background 0.2s; }
.port:first-child { border-left: 0; }
.port:hover { background: var(--bg); }
.port-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.port h3 { font-size: 16px; margin-bottom: 6px; }
.port p { font-size: 13.5px; color: var(--muted); }

.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: s; }
.steps3 li { padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); display: grid; gap: 8px; align-content: start; }
.steps3 .num { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: var(--btn); color: var(--btn-ink); font-size: 12px; }
.steps3 h3 { font-size: 15.5px; margin-top: 6px; }
.steps3 p { font-size: 13.5px; color: var(--muted); }
.steps3 code { justify-self: start; margin-top: 4px; font: 12px var(--mono); color: var(--forest); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }

.cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 26px; background: var(--cta-bg); color: var(--cta-ink); border-color: var(--line); flex-wrap: wrap; }
.cta h2 { font-size: 22px; }
.cta p { color: var(--cta-sub); font-size: 14px; margin-top: 4px; }
.cta .btn { background: var(--cta-btn); color: var(--cta-btn-ink); border-color: var(--cta-btn); }
.cta .btn:hover { opacity: 0.9; }

/* ---------- table ---------- */
.table { overflow: hidden; }
.trow { display: grid; grid-template-columns: minmax(180px, 1.6fr) 1.1fr 1fr 0.8fr 0.6fr 0.6fr; gap: 14px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 13.5px; transition: background 0.15s; }
.trow:first-child { border-top: 0; }
a.trow:hover { background: var(--bg); }
.trow.th { font-size: 11.5px; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.05em; padding-block: 9px; background: var(--bg); }
.tc-coin { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tc-coin b { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-when { font-size: 12px; color: var(--forest); }
.tc-id, .tc-mc { font-size: 12.5px; }
.tc-age { font-size: 12.5px; }
.av { width: 30px; height: 30px; border-radius: 7px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; flex: none; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.lg { width: 64px; height: 64px; border-radius: 12px; }
.sbar { display: flex; height: 8px; border-radius: 3px; overflow: hidden; gap: 2px; }
.sbar i { display: block; min-width: 3px; }
.empty { display: grid; justify-items: center; gap: 8px; padding: 26px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.empty b { color: var(--ink); font-weight: 600; }
.more { display: flex; justify-content: center; margin-top: 16px; }
.search { display: flex; gap: 6px; }
.search input { height: 32px; width: 240px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); font-size: 13.5px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; font-size: 13px; }
.field > span:first-child { font-weight: 500; display: flex; justify-content: space-between; gap: 8px; }
.field em { font-style: normal; color: var(--faint); font-weight: 400; font-size: 12px; }
.field input, .field textarea, .field select, .out-row select, .out-row input, .mint-in { width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--input); font-size: 14px; transition: border-color 0.15s, box-shadow 0.15s; }
.field textarea { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .out-row select:focus, .out-row input:focus, .mint-in:focus, .search input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px var(--ring); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tick-in, .unit-in, .pct-in { position: relative; display: block; }
.tick-in i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-family: var(--mono); }
.tick-in input { padding-left: 24px; font-family: var(--mono); text-transform: uppercase; }
.unit-in i, .pct-in i { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: 12.5px; pointer-events: none; }
.unit-in input { padding-right: 60px; font-family: var(--mono); }
.drop { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px dashed var(--line-2); border-radius: 9px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.drop:hover, .drop.over { border-color: var(--forest); background: var(--bg); }
.drop.has { border-style: solid; }
.drop .th { width: 44px; height: 44px; border-radius: 8px; background: var(--bg-2); display: grid; place-items: center; font-size: 20px; color: var(--muted); overflow: hidden; flex: none; }
.drop .th img { width: 100%; height: 100%; object-fit: cover; }
.drop b { display: block; font-weight: 500; font-size: 13.5px; }
.drop small { color: var(--muted); font-size: 12px; }
.status { padding: 10px 12px; border-radius: 8px; font-size: 13px; border: 1px solid var(--line); background: var(--bg); }
.status.err { border-color: var(--err-line); background: var(--err-bg); color: var(--err-ink); }
.status.ok { border-color: var(--ring); background: var(--ok-bg); color: var(--forest); }

/* ---------- builder ---------- */
.bld { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; align-items: start; }
.bld-l { display: grid; gap: 12px; }
.step { padding: 18px; display: grid; gap: 14px; }
.step header { display: flex; align-items: baseline; gap: 10px; }
.step .num { font-size: 11.5px; color: var(--muted); }
.step h2 { font-size: 16px; }
.step small { margin-left: auto; color: var(--faint); font-size: 12px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); padding: 3px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg); gap: 2px; }
.seg-b { height: 32px; border: 0; border-radius: 7px; background: none; font-size: 13px; color: var(--muted); cursor: pointer; transition: background 0.15s, color 0.15s; }
.seg-b:hover { color: var(--ink); }
.seg-b.on { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2), 0 2px 6px -3px rgba(0, 0, 0, 0.3); font-weight: 500; }
.outs { display: grid; gap: 8px; }
.out-row { display: grid; grid-template-columns: 10px 170px 1fr 78px 30px; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); animation: pageIn 0.25s both; }
.out-row .sw, .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.out-row select { height: 32px; padding: 0 8px; font-size: 13px; }
.out-row .pct-in input { height: 32px; padding: 0 22px 0 8px; font-family: var(--mono); font-size: 13px; }
.out-row .x { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--line); background: var(--card); cursor: pointer; color: var(--muted); font-size: 16px; line-height: 1; }
.out-row .x:hover:not(:disabled) { color: var(--warn); border-color: var(--line-2); }
.out-row .x:disabled { opacity: 0.35; cursor: not-allowed; }
.out-row .mint-in { grid-column: 2 / -1; height: 32px; font-size: 12.5px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: var(--line-2); border: 0; padding: 0; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 5px; background: var(--forest); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 4px; background: var(--forest); border: 3px solid var(--card); cursor: pointer; }
.outs-foot { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.total { margin-left: auto; font-size: 12.5px; padding: 3px 8px; border-radius: 6px; background: var(--ok-bg); color: var(--forest); }
.total.bad { background: var(--err-bg); color: var(--warn); }
.bld-r { position: sticky; top: 104px; }
.preview { padding: 16px; display: grid; gap: 12px; }
.pv-h { display: flex; align-items: center; gap: 10px; }
.pv-h .av { width: 38px; height: 38px; border-radius: 9px; }
.pv-h b { display: block; font-weight: 600; font-size: 14.5px; }
.pv-h .mono { font-size: 12px; }
.pv-h .tag { margin-left: auto; }
.pv-schem { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 4px; background: var(--bg); min-height: 120px; }
.check { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.check span { display: inline-flex; align-items: center; gap: 6px; }
.check span.ok { color: var(--ink); }

/* ---------- coin ---------- */
.coin-h { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.coin-h > div { display: grid; gap: 6px; }
.coin-h .share { margin-left: auto; }
.coin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.col { display: grid; gap: 14px; }
.col .code + .fine { margin-top: 10px; word-break: break-all; }
.about { margin-top: 8px; color: var(--muted); }
.facts { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.facts li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.facts li:first-child { border-top: 0; }
.facts span { color: var(--muted); }
.facts b { font-weight: 500; }
.facts a { color: var(--forest); }
.facts a:hover { text-decoration: underline; }
.sim { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; }
.sim li { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; padding: 7px 10px; border-radius: 7px; background: var(--bg); }
.sim i { width: 10px; height: 10px; border-radius: 3px; }
.sim b { font-weight: 500; font-size: 12.5px; }
.pad .field { margin-top: 10px; }

/* ---------- spec ---------- */
.doc { display: grid; grid-template-columns: 180px minmax(0, 720px); gap: 48px; }
.toc { position: sticky; top: 112px; align-self: start; display: grid; gap: 2px; }
.toc .k { margin-bottom: 8px; }
.toc a { font-size: 13.5px; color: var(--muted); padding: 4px 0 4px 10px; border-left: 1px solid var(--line); }
.toc a:hover { color: var(--ink); border-left-color: var(--forest); }
.doc article > .k { margin-bottom: 8px; }
.doc-s { padding-top: 30px; display: grid; gap: 12px; scroll-margin-top: 110px; }
.doc-s h2 { font-size: 19px; }
.doc-s p, .doc-s li { color: var(--muted); font-size: 14.5px; }
.doc-s code, .plain code { font: 12.5px var(--mono); color: var(--forest); }
.dtable { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; }
.dtable > div { display: grid; grid-template-columns: 190px 130px 1fr; gap: 14px; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 13.5px; align-items: baseline; }
.dtable > div:first-child { border-top: 0; }
.dtable code { display: inline-flex; align-items: center; gap: 7px; }
.dtable b { font-weight: 500; }
.dtable span { color: var(--muted); }
.plain { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.doc .row { margin-top: 30px; }

/* ---------- footer, toasts ---------- */
.foot { margin-top: 72px; border-top: 1px solid var(--line); background: var(--card); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px; padding: 34px 0 26px; }
.foot-brand p { margin: 12px 0 14px; color: var(--muted); font-size: 13.5px; max-width: 340px; }
.foot-col { display: grid; gap: 7px; align-content: start; font-size: 13.5px; color: var(--muted); }
.foot-col a:hover { color: var(--ink); }
.foot-col .k { margin-bottom: 4px; }
.foot-base { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); flex-wrap: wrap; }
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { padding: 9px 14px; border-radius: 9px; background: var(--toast); color: var(--toast-ink); font-size: 13.5px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6); animation: pageIn 0.25s both; max-width: min(520px, 92vw); }
.toast.err { background: #7a3a1f; color: #fff; }
.toast.out { opacity: 0; transform: translateY(6px); transition: 0.4s; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .bld, .coin-grid { grid-template-columns: 1fr; }
  .bld-r { position: static; }
  .ports { grid-template-columns: 1fr 1fr; }
  .port:nth-child(3) { border-left: 0; }
  .port:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .doc { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .trow { grid-template-columns: minmax(150px, 1.5fr) 1fr 1fr 0.6fr; }
  .tc-id, .tc-age { display: none; }
  .trow.th span:nth-child(4), .trow.th span:nth-child(6) { display: none; }
}
@media (max-width: 720px) {
  .top { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .con-body { min-height: 0; }
  .seg { grid-template-columns: 1fr 1fr; }
  .brand b { display: none; }
  .top-end { margin-left: auto; }
  .nav { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); margin: 0; box-shadow: var(--shadow); z-index: 50; }
  .nav a { padding: 6px 9px; font-size: 12.5px; }
  .socials .ib:nth-child(n + 3) { display: none; }
  .steps3 { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .mini { width: 100%; }
  .mini div { flex: 1; padding: 9px 10px; }
  .out-row { grid-template-columns: 10px 1fr 70px 30px; }
  .out-row input[type="range"] { grid-column: 2 / -1; grid-row: 2; }
  .out-row .mint-in { grid-row: 3; }
  .trow { grid-template-columns: 1fr auto; }
  .tc-when, .tc-split { display: none; }
  .trow.th { display: none; }
  .dtable > div { grid-template-columns: 1fr; gap: 3px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .foot { padding-bottom: 60px; }
  .status-line .st-b:not(:first-of-type) { display: none; }
  .search input { width: 100%; }
  .search { width: 100%; }
}
@media (max-width: 420px) { .nav a .led { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } [data-fade] { opacity: 1; transform: none; } }

/* release polish: footer sits at the bottom on short pages, the coin page schematic stays compact */
#view { min-height: calc(100vh - 89px); display: flex; flex-direction: column; }
#view > .page-in { flex: 1; }
.col .schem { max-width: 560px; margin-inline: auto; }

/* theme switch; the logo tile follows the theme */
.logo .tile { fill: var(--tile); }
:root[data-theme="dark"] .logo .tile { stroke: rgba(255, 255, 255, 0.14); stroke-width: 24; }
.theme-b { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.theme-b:hover { border-color: var(--line-2); transform: translateY(-1px); }
.theme-b .sun { display: none; }
:root[data-theme="dark"] .theme-b .sun { display: block; }
:root[data-theme="dark"] .theme-b .moon { display: none; }
