/* Tagpad — monochrome base, one Meteora orange accent, violet only for "graduated". */
:root {
  --bg: #09090a;
  --panel: #101012;
  --raise: #17171a;
  --line: #1d1d21;
  --line-2: #29292e;
  --line-3: #3a3a40;
  --text: #ecebe8;
  --muted: #8e8d93;
  --dim: #5f5e65;
  --accent: #ff6a1f;          /* Meteora orange */
  --accent-ink: #1a0b03;
  --accent-soft: rgba(255,106,31,.12);
  --violet: #9d6bff;          /* graduated / DAMM v2 */
  --radius: 10px;
  --side: 60px;
  --top: 60px;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- reset: no native browser styling ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-3) var(--bg); scrollbar-width: thin; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: Geist, ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px; line-height: 1.5; font-feature-settings: "ss01", "tnum";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea {
  -webkit-appearance: none; appearance: none; font: inherit; color: inherit;
  background: none; border: 0; margin: 0; padding: 0; border-radius: 0;
}
button { cursor: pointer; user-select: none; }
input::-webkit-search-cancel-button, input::-webkit-search-decoration,
input::-webkit-inner-spin-button, input::-webkit-outer-spin-button { -webkit-appearance: none; display: none; }
input::-ms-clear { display: none; }
input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 100px var(--panel) inset; caret-color: var(--text); }
summary { list-style: none; } summary::-webkit-details-marker { display: none; }
img, svg { -webkit-user-drag: none; user-select: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus { outline: none; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::placeholder { color: var(--dim); opacity: 1; }

/* custom scrollbars (Chromium/Safari; Firefox uses scrollbar-color above) */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border: 3px solid var(--bg); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: var(--line-3); }
::-webkit-scrollbar-corner { background: transparent; }
.panel-scroll::-webkit-scrollbar-thumb { border-color: var(--panel); }
.panel-scroll { scrollbar-color: var(--line-2) transparent; }

.mono { font-family: var(--mono); }
.accent { color: var(--accent); }

/* ---------- shell ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 20;
  border-right: 1px solid var(--line); background: var(--bg);
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0;
}
.sidebar .logo { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 14px; }
.logo-img { display: block; object-fit: contain; }
.nav-btn { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: var(--dim); transition: color .15s, background .15s; }
.nav-btn:hover { color: var(--text); }
.nav-btn.active { color: var(--text); background: var(--raise); }
.nav-btn svg { width: 18px; height: 18px; }

.topbar {
  position: sticky; top: 0; z-index: 15; height: var(--top);
  display: flex; align-items: center; gap: 10px; padding: 0 28px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.search {
  flex: 1; max-width: 560px; height: 36px; border-radius: 8px; padding: 0 12px;
  display: flex; align-items: center; gap: 10px; color: var(--dim);
  background: var(--panel); border: 1px solid var(--line); transition: border-color .15s;
}
.search:focus-within { border-color: var(--line-3); }
.search input { flex: 1; min-width: 0; height: 100%; font-size: 14px; }
.kbd { font-family: var(--mono); font-size: 11px; color: var(--dim); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; line-height: 18px; }
.top-actions { margin-left: auto; display: flex; gap: 8px; }
.ghost {
  height: 36px; min-width: 36px; padding: 0 12px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 500; color: var(--text);
  transition: border-color .15s, background .15s;
}
.ghost:hover { border-color: var(--line-3); background: var(--panel); }
.ghost.icon { padding: 0; }

.main { margin-left: var(--side); min-height: 100vh; overflow-x: clip; }
/* page = fluid content + full-height live rail pinned on the far right */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: calc(100vh - var(--top)); }
.content { min-width: 0; }
.band { padding: 32px 32px; border-bottom: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 16px; height: 2px; background: var(--accent); }
.wordmark { margin: 16px 0 16px; font-size: clamp(56px, 6.6vw, 124px); line-height: .86; font-weight: 800; letter-spacing: -.055em; }
.wordmark .dollar { color: var(--accent); margin-right: .02em; }
.lede { color: var(--muted); font-size: 19px; line-height: 1.45; font-weight: 450; max-width: 480px; margin: 0 0 26px; }
.lede b { color: var(--text); font-weight: 700; }
.cta { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  height: 46px; padding: 0 20px; border-radius: 9px; display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 14.5px; border: 1px solid var(--line-2); transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--text); color: #09090a; border-color: var(--text); }
.btn.primary:hover { background: #fff; }
.btn:not(.primary):hover { border-color: var(--line-3); background: var(--panel); }

/* ---------- mock post ---------- */
.post { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 20px 22px 22px; width: 100%; max-width: 620px; justify-self: end; }
.post-head { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--raise); display: grid; place-items: center; flex: none; }
.who b { display: block; font-size: 14px; line-height: 1.2; }
.who span { color: var(--dim); font-size: 12.5px; }
.post-head .x { margin-left: auto; color: var(--dim); display: grid; }
.post-body { margin: 14px 0 18px; font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.post-body .mention { color: var(--accent); }
.post-body .soft { color: var(--muted); font-weight: 500; }
.seg { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 2px; margin-bottom: 16px; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; padding: 5px 11px; border-radius: 6px; font-size: 12.5px; color: var(--muted); transition: color .15s, background .15s; }
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"] { background: var(--raise); color: var(--text); }
.reply { border-left: 1px solid var(--line-3); padding: 2px 0 2px 14px; }
.reply small { color: var(--dim); font-size: 12px; }
.reply p { margin: 6px 0 0; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; }
.reply .sfx { color: var(--accent); }

/* ---------- stats + steps: one edge-to-edge band of cells ---------- */
.facts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.facts > * { padding: 22px 24px; border-left: 1px solid var(--line); }
.facts > .stat { grid-column: span 3; }
.facts > .step { grid-column: span 4; border-top: 1px solid var(--line); }
.facts > :first-child, .facts > .step:nth-child(5) { border-left: 0; padding-left: 32px; }
@media (min-width: 1760px) {
  .facts { grid-template-columns: repeat(4, minmax(0, .8fr)) repeat(3, minmax(0, 1.3fr)); }
  .facts > .stat, .facts > .step { grid-column: auto; }
  .facts > .step { border-top: 0; }
  .facts > .step:nth-child(5) { border-left: 1px solid var(--line); padding-left: 24px; }
}
.stat small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.stat div { font-family: var(--mono); font-size: 26px; font-weight: 600; margin-top: 4px; letter-spacing: -.03em; line-height: 1.1; }
.step { background: var(--panel); }
.step .n { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--accent); }
.step h3 { margin: 4px 0 6px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.step p b { color: var(--text); font-weight: 600; }

/* ---------- section head + toolbar ---------- */
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { margin: 0 auto 0 0; font-size: 28px; font-weight: 800; letter-spacing: -.035em; display: flex; align-items: baseline; }
.count { font-family: var(--mono); color: var(--dim); font-size: 13px; margin-left: 10px; font-weight: 500; letter-spacing: 0; }
.seg.filters { margin: 0; }
.seg.filters button { font-weight: 600; padding: 6px 12px; }

/* ---------- custom dropdown ---------- */
.dd { position: relative; }
.dd-btn {
  height: 32px; padding: 0 10px 0 12px; border-radius: 7px; border: 1px solid var(--line-2);
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text);
  transition: border-color .15s, background .15s;
}
.dd-btn .lbl { color: var(--dim); }
.dd-btn .lbl:empty { display: none; }
.dd-btn .val { margin-right: auto; }
.dd-btn:hover, .dd[data-open] .dd-btn { border-color: var(--line-3); background: var(--panel); }
.dd-btn .chev { color: var(--dim); transition: transform .18s var(--ease); }
.dd[data-open] .chev { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; min-width: 190px;
  background: var(--raise); border: 1px solid var(--line-2); border-radius: 9px; padding: 4px;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,.7);
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .14s, transform .14s var(--ease);
}
.dd[data-open] .dd-menu { opacity: 1; transform: none; pointer-events: auto; }
.dd-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 7px 10px; border-radius: 6px; font-size: 13px; color: var(--muted);
}
.dd-opt .tick { width: 14px; color: var(--accent); visibility: hidden; }
.dd-opt[aria-selected="true"] { color: var(--text); }
.dd-opt[aria-selected="true"] .tick { visibility: visible; }
.dd-opt.hl { background: var(--line); color: var(--text); }
.dd-opt .hint { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.dd-sep { height: 1px; background: var(--line-2); margin: 4px 2px; }

/* ---------- custom tooltip ---------- */
.tip {
  position: fixed; z-index: 100; left: 0; top: 0; pointer-events: none;
  background: var(--text); color: #0b0b0c; font-size: 12px; font-weight: 500; line-height: 1.35;
  padding: 5px 8px; border-radius: 6px; max-width: 240px; white-space: normal;
  opacity: 0; transform: translateY(3px); transition: opacity .12s, transform .12s var(--ease);
}
.tip[data-show] { opacity: 1; transform: none; }
.tip::after {
  content: ""; position: absolute; left: var(--ax, 50%); width: 8px; height: 8px; background: inherit;
  transform: translateX(-50%) rotate(45deg); border-radius: 1px;
}
.tip[data-side="top"]::after { bottom: -3px; }
.tip[data-side="bottom"]::after { top: -3px; }
.tip[data-side="right"]::after { left: -3px; top: 50%; transform: translateY(-50%) rotate(45deg); }
.tip .k { font-family: var(--mono); color: #6b6a70; margin-left: 6px; }

/* ---------- token grid ---------- */
/* hairline cells: each cell draws its own right/bottom edge so empty trailing cells stay blank */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.token { padding: 12px 12px 14px; transition: background .15s; display: block; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.token:hover { background: var(--panel); }
.token .art { aspect-ratio: 1; border-radius: 6px; background: var(--panel); display: grid; place-items: center; margin-bottom: 12px; }
.token:hover .art { background: var(--raise); }
.token .art svg { width: 42%; height: 42%; shape-rendering: crispEdges; }
.token .art { overflow: hidden; }
.token .art img, .feed .mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed .mini { overflow: hidden; }
.feed li > a { display: contents; }
.feed-empty { color: var(--dim); font-size: 13px; padding: 16px 20px !important; display: block !important; }

/* admin launch page */
.net { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; background: var(--raise); color: var(--muted); }
.net.main { background: var(--accent-soft); color: var(--accent); }
.wallet-chip { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 9px; font-size: 13px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-3); flex: none; }
.dot.ok { background: #3ccf8e; }
.launch-form { display: grid; gap: 20px; max-width: 720px; }
.launch-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dropzone { display: grid; place-items: center; height: 220px; border: 1px dashed var(--line-3); border-radius: 12px; background: var(--panel);
  color: var(--muted); font-size: 14px; cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--raise); }
.dropzone.busy { opacity: .6; pointer-events: none; }
.dropzone img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.dropzone u { color: var(--text); text-underline-offset: 3px; }
.cfg-list { display: grid; gap: 10px; }
.cfg-row { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; font-size: 13.5px; }
.cfg-row .btn, .cfg-row .hint-line { grid-column: 1 / -1; }
.cfg-row a { color: var(--muted); justify-self: end; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13.5px; }
.steps-list li { display: flex; align-items: center; gap: 10px; }
.steps-list li.ok { color: var(--muted); }
.steps-list li.bad { color: #ff6b6b; }
.steps-list .ok-mark, .steps-list .x-mark { width: 18px; height: 18px; font-size: 11px; }
.x-mark { border-radius: 50%; background: rgba(229,72,77,.15); color: #ff6b6b; display: grid; place-items: center; font-weight: 800; }
.link-row { display: flex; gap: 8px; flex-wrap: wrap; }
#result h3 { margin: 0; font-size: 18px; font-weight: 800; }
#result p { margin: 0; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .launch-form .two { grid-template-columns: 1fr; } }

/* toasts */
#toasts { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--raise); border: 1px solid var(--line-2); border-left: 3px solid var(--line-3); color: var(--text);
  padding: 11px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 500; box-shadow: 0 12px 32px -10px rgba(0,0,0,.7);
  animation: slide .25s var(--ease); transition: opacity .25s, transform .25s; }
.toast.ok { border-left-color: #3ccf8e; }
.toast.bad { border-left-color: #e5484d; }
.toast.out { opacity: 0; transform: translateY(6px); }
@media (max-width: 760px) { #toasts { left: 16px; right: 16px; bottom: 74px; } }
.token .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.token .tick { font-weight: 800; font-size: 15.5px; letter-spacing: -.01em; }
.token .mc { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--text); }
.token .sub { color: var(--dim); font-size: 12px; font-weight: 500; margin-top: 2px; }
.token { min-width: 0; }
.token .row > * { min-width: 0; }
.token .sub span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pair { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.curve { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.curve .track { flex: 1; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.curve .track i { display: block; height: 100%; background: var(--accent); }
.curve .pct { font-family: var(--mono); font-size: 11px; color: var(--dim); min-width: 30px; text-align: right; }
.token.grad .curve .track i { background: var(--violet); }
.token.grad .curve .pct { color: var(--violet); }
.empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--dim); font-size: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- live rail ---------- */
/* pinned to the far right, full height under the topbar */
.rail {
  position: sticky; top: var(--top); align-self: start; height: calc(100vh - var(--top));
  border-left: 1px solid var(--line); display: flex; flex-direction: column; background: var(--bg);
}
.rail-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.rail-head h2 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.live { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.feed { list-style: none; padding: 0; margin: 0; flex: 1; overflow-y: auto; }
.feed li { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); transition: background .15s; }
.feed li:hover { background: var(--panel); }
.feed .mini { width: 38px; height: 38px; border-radius: 6px; background: var(--panel); display: grid; place-items: center; }
.feed li:hover .mini { background: var(--raise); }
.feed .mini svg { width: 20px; height: 20px; shape-rendering: crispEdges; }
.feed .txt { min-width: 0; display: grid; line-height: 1.3; }
.feed .txt b { font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; }
.feed .txt span { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .t { color: var(--dim); font-size: 11.5px; font-family: var(--mono); font-weight: 500; align-self: start; padding-top: 2px; }
.rail-foot { padding: 14px 20px; border-top: 1px solid var(--line); }
.rail-foot .btn { width: 100%; justify-content: center; }
.feed li.new { animation: slide .35s var(--ease); }
@keyframes slide { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 28px; display: flex; gap: 56px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
footer .brand { flex: 1; min-width: 200px; }
footer .brand b { color: var(--text); display: flex; align-items: center; gap: 8px; font-size: 15px; }
footer .brand p { margin: 8px 0 0; color: var(--dim); }
footer h4 { margin: 0 0 10px; color: var(--text); font-size: 12.5px; font-weight: 600; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
footer a { transition: color .15s; } footer a:hover { color: var(--text); }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 190px minmax(0, 680px); gap: 56px; padding: 40px 28px 64px; }
.toc { position: sticky; top: calc(var(--top) + 40px); align-self: start; display: grid; gap: 1px; border-left: 1px solid var(--line); }
.toc a { display: flex; gap: 10px; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--dim); font-size: 13.5px; transition: color .15s; }
.toc a span { font-family: var(--mono); font-size: 11.5px; padding-top: 1px; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); border-left-color: var(--accent); }
.docs h1 { font-size: 44px; margin: 0 0 6px; letter-spacing: -.045em; font-weight: 800; }
.docs .sub { color: var(--muted); margin: 0 0 20px; }
.doc-sec { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--top) + 12px); }
.doc-sec .num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.doc-sec h2 { margin: 2px 0 12px; font-size: 24px; letter-spacing: -.025em; font-weight: 800; }
.doc-sec p, .doc-sec li { color: #b4b3b9; }
.doc-sec ul { padding-left: 18px; } .doc-sec li::marker { color: var(--dim); }
.doc-sec b { color: var(--text); font-weight: 600; }
.code { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-family: var(--mono); font-size: 13px; display: grid; gap: 3px; margin: 14px 0; overflow-x: auto; }
.code .mention { color: var(--accent); }
.note { border-left: 2px solid var(--accent); padding: 4px 0 4px 14px; color: #c3c2c8; }
.tbd { font-family: var(--mono); font-size: 11.5px; color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 1px 6px; white-space: nowrap; cursor: help; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .hero { gap: 32px; }
  .wordmark { font-size: clamp(52px, 6vw, 96px); }
}
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; height: auto; border-left: 0; border-top: 1px solid var(--line); }
  .feed { max-height: 460px; }
  .hero { grid-template-columns: 1fr; }
  .post { justify-self: start; }
}
@media (max-width: 760px) {
  :root { --side: 0px; }
  .sidebar { inset: auto 0 0 0; width: auto; height: 58px; flex-direction: row; justify-content: space-around; border-right: 0; border-top: 1px solid var(--line); padding: 0 16px; }
  .sidebar .logo { display: none; }
  .main { padding-bottom: 64px; }
  .topbar { padding: 0 16px; }
  .kbd, .top-actions .ghost span, .top-actions .ghost.icon { display: none; }
  .band { padding: 24px 16px; }
  .hero { padding-top: 28px; padding-bottom: 28px; gap: 24px; }
  .lede { font-size: 17px; }
  .post-body { font-size: 18px; }
  .facts > * { padding: 16px; }
  .facts > .stat { grid-column: span 6; }
  .facts > .step { grid-column: span 12; border-left: 0; padding-left: 16px; }
  .facts > .stat:nth-child(odd) { border-left: 0; padding-left: 16px; }
  .facts > .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat div { font-size: 22px; }
  .section-head h2 { font-size: 24px; width: 100%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail-head, .feed li { padding-left: 16px; padding-right: 16px; }
  .token { padding: 10px; }
  .docs { grid-template-columns: 1fr; padding: 24px 16px 40px; gap: 8px; }
  .toc { position: static; grid-template-columns: repeat(2, 1fr); border-left: 0; margin-bottom: 16px; }
  .toc a { padding-left: 0; border-left: 0; }
  footer { padding: 24px 16px; gap: 28px; }
}

/* ===================== rewards / claim page ===================== */
.me-av { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.demo-flag { font-family: var(--mono); font-size: 11px; color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 2px 7px; font-weight: 600; }

/* header band */
.rw-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rw-who { display: flex; align-items: center; gap: 16px; }
.rw-who .av { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 24px; font-weight: 800; flex: none; }
.rw-who h1 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.rw-who p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.rw-who p b { color: var(--text); font-weight: 600; }
.linkish { color: var(--muted); font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--line-3); padding-bottom: 1px; transition: color .15s; }
.linkish:hover { color: var(--text); }

/* totals strip reuses .facts cells */
.totals > .stat { grid-column: span 3; }
.totals .stat div .unit { font-size: 15px; color: var(--muted); margin-left: 4px; font-weight: 500; }
.totals .stat.hi div { color: var(--accent); }

/* page body: table + claim panel pinned right */
.rw-body { display: grid; grid-template-columns: minmax(0, 1fr) 400px; min-height: calc(100vh - var(--top)); }
.rw-main { min-width: 0; }

/* earnings table */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--dim); padding: 0 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; transition: background .15s; }
.tbl tbody tr:hover td { background: var(--panel); }
.tbl th:first-child, .tbl td:first-child { padding-left: 8px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 8px; }
.tok { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tok .mini { width: 38px; height: 38px; border-radius: 6px; background: var(--panel); display: grid; place-items: center; flex: none; }
.tbl tbody tr:hover .tok .mini { background: var(--raise); }
.tok .mini svg { width: 20px; height: 20px; shape-rendering: crispEdges; }
.tok b { font-weight: 800; font-size: 15px; letter-spacing: -.01em; display: block; }
.tok span { color: var(--dim); font-size: 12px; }
.role { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.role::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--line-3); }
.role.launched::before { background: var(--accent); }
.role.rewarded::before { background: var(--violet); }
.role small { color: var(--dim); font-weight: 500; font-size: 12px; }
.num { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.num.dim { color: var(--dim); font-weight: 500; }
.share { font-family: var(--mono); font-weight: 700; }
.splitbar { display: flex; height: 3px; width: 64px; border-radius: 2px; overflow: hidden; background: var(--line-2); margin-top: 6px; }
.tbl td.r .splitbar { margin-left: auto; }
.splitbar i { background: var(--accent); }
.empty-row td { text-align: center; color: var(--dim); padding: 40px; }

/* custom toggle switch */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--muted); user-select: none; white-space: nowrap; }
.switch .sw { width: 30px; height: 18px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .18s; flex: none; }
.switch .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .18s var(--ease), background .18s; }
.switch[aria-checked="true"] .sw { background: var(--accent); }
.switch[aria-checked="true"] .sw::after { transform: translateX(12px); background: var(--accent-ink); }
.switch[aria-checked="true"] { color: var(--text); }

/* claim panel (right rail) */
.claim { position: sticky; top: var(--top); align-self: start; height: calc(100vh - var(--top)); overflow-y: auto; border-left: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.claim h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.claim .sub { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.field { display: grid; gap: 7px; }
.field > .lbl { font-size: 12.5px; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.field > .lbl b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.input {
  display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 6px 0 12px; border-radius: 9px;
  background: var(--panel); border: 1px solid var(--line-2); transition: border-color .15s, box-shadow .15s;
}
.input:focus-within { border-color: var(--line-3); box-shadow: 0 0 0 3px rgba(255,106,31,.12); }
.input input { flex: 1; min-width: 0; height: 100%; font-size: 16px; font-weight: 700; font-family: var(--mono); }
.input input.addr { font-size: 13px; font-weight: 500; }
.input .unit { font-family: var(--mono); color: var(--muted); font-size: 13px; font-weight: 600; padding-right: 6px; }
.input .max { font-size: 11.5px; font-weight: 700; color: var(--accent); padding: 5px 9px; border-radius: 6px; background: var(--accent-soft); transition: background .15s; }
.input .max:hover { background: rgba(255,106,31,.22); }
.input.bad { border-color: #e5484d; box-shadow: none; }
.input.good { border-color: rgba(60,207,142,.5); }
.hint-line { font-size: 12px; color: var(--dim); min-height: 16px; }
.hint-line.bad { color: #ff6b6b; }
.hint-line.good { color: #3ccf8e; }
.saved { display: flex; gap: 6px; flex-wrap: wrap; }
.saved button { font-family: var(--mono); font-size: 11.5px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 8px; transition: color .15s, border-color .15s; }
.saved button:hover { color: var(--text); border-color: var(--line-3); }
.asset-row { display: flex; gap: 8px; }
.asset-row .dd { flex: 1; }
.asset-row .dd-btn { width: 100%; height: 46px; justify-content: space-between; font-weight: 700; font-size: 14px; }
.asset-row .dd-menu { left: 0; right: 0; }
.btn.block { width: 100%; justify-content: center; height: 50px; font-size: 15px; }
.btn[disabled] { opacity: .35; cursor: not-allowed; }
.btn[disabled]:active { transform: none; }
.summary { border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; display: grid; gap: 6px; font-size: 13px; }
.summary div { display: flex; justify-content: space-between; color: var(--muted); }
.summary div b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.summary div.total { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; color: var(--text); font-weight: 700; }

/* confirm / status card */
.confirm { border: 1px solid var(--line-2); background: var(--panel); border-radius: 10px; padding: 16px; display: grid; gap: 12px; animation: slide .25s var(--ease); }
.confirm h3 { margin: 0; font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.confirm p { margin: 0; color: var(--muted); font-size: 13.5px; word-break: break-all; }
.confirm p b { color: var(--text); }
.confirm .row2 { display: flex; gap: 8px; }
.confirm .row2 .btn { flex: 1; justify-content: center; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-3); border-top-color: var(--accent); animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.ok-mark { width: 24px; height: 24px; border-radius: 50%; background: rgba(60,207,142,.14); color: #3ccf8e; display: grid; place-items: center; flex: none; }

.panel-sec { border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 12px; }
.panel-sec h3 { margin: 0; font-size: 14px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.panel-sec p { margin: 0; color: var(--muted); font-size: 12.5px; }
.auto-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hist { list-style: none; margin: 0; padding: 0; }
.hist li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.hist li:last-child { border-bottom: 0; }
.hist .amt { font-family: var(--mono); font-weight: 700; }
.hist .when { color: var(--dim); font-size: 12px; text-align: right; font-family: var(--mono); }
.hist .to { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.hist .st { font-size: 12px; font-weight: 600; color: var(--muted); text-align: right; }
.hist .st.ok { color: #3ccf8e; }
.hist .st.bad { color: #ff6b6b; }
.hist .st.warn { color: var(--m1, #ffb02e); }
.hist a, .confirm a, .tok a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.hist a:hover, .confirm a:hover, .tok a:hover { text-decoration-color: currentColor; }
.tok a { text-decoration: none; }
.devlogin { display: grid; gap: 8px; border-top: 1px dashed var(--line-2); padding-top: 16px; margin-top: 4px; }
.devlogin .lbl { font-family: var(--mono); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.devlogin .input .unit { padding-right: 0; }
.devlogin .btn { justify-self: start; }

/* signed-out state */
.signin { min-height: calc(100vh - var(--top) - 1px); display: grid; place-items: center; padding: 40px 16px; }
.signin .box { max-width: 480px; display: grid; gap: 16px; }
.signin h1 { margin: 0; font-size: 44px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.signin h1 .accent { color: var(--accent); }
.signin p { margin: 0; color: var(--muted); font-size: 16px; }
.signin ul { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 10px; color: var(--muted); font-size: 14.5px; }
.signin li { display: flex; gap: 12px; }
.signin li b { color: var(--text); }
.signin li::before { content: ""; width: 6px; height: 6px; margin-top: 8px; border-radius: 2px; background: var(--accent); flex: none; }

@media (max-width: 1100px) {
  .rw-body { grid-template-columns: minmax(0, 1fr); }
  .claim { position: static; height: auto; border-left: 0; border-bottom: 1px solid var(--line); order: -1; }
}
@media (max-width: 760px) {
  .rw-who h1 { font-size: 26px; }
  .rw-who .av { width: 44px; height: 44px; font-size: 19px; }
  .totals > .stat { grid-column: span 6; }
  .claim { padding: 20px 16px; }
  .signin h1 { font-size: 34px; }
  /* table → stacked rows */
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .tbl td, .tbl td:first-child, .tbl td:last-child { padding: 0; border: 0; }
  .tbl td.r { text-align: right; }
  .tbl tbody tr:hover td { background: none; }
  .tbl td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; color: var(--dim); font-weight: 600; margin-bottom: 2px; }
  .tbl tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tbl .role { white-space: normal; flex-wrap: wrap; }
  .tbl td:first-child { grid-column: 1 / -1; }
  .tbl td.r { text-align: left; }
  .tbl td.r .splitbar { margin-left: 0; }
  .top-actions .ghost .me-av { display: grid; }
  #me-pill { padding: 0 8px; }
}
