[hidden] { display: none !important; }
:root {
  --bg: oklch(0.165 0.012 140);
  --bz: oklch(0.215 0.013 140);
  --bz2: oklch(0.265 0.014 140);
  --tx: oklch(0.91 0.018 130);
  --mu: oklch(0.72 0.018 135);
  --ph: oklch(0.90 0.22 128);
  --phd: oklch(0.62 0.14 130);
  --ink: oklch(0.17 0.03 135);
  --rule: oklch(0.33 0.014 140);
  --glass: oklch(0.13 0.02 140);
  --f: "B612", system-ui, sans-serif;
  --m: "Red Hat Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --barh: 58px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--barh) + 12px); }
body {
  margin: 0; color: var(--tx); font: 16px/1.55 var(--f); min-height: 100vh; overflow-x: hidden;
  background:
    radial-gradient(1200px 700px at 30% 0%, oklch(0.2 0.018 140), transparent 70%),
    repeating-linear-gradient(0deg, oklch(1 0 0 / 0.012) 0 1px, transparent 1px 3px),
    var(--bg);
}
a { color: var(--ph); }
code, .num, .mono { font-family: var(--m); font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-weight: 700; margin: 0; text-wrap: balance; line-height: 1.12; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ph); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ph); color: var(--ink); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  font: 700 14px var(--f); letter-spacing: 0.02em; color: var(--ink); background: var(--ph);
  border: 1px solid var(--ph); border-radius: 2px; cursor: pointer; text-decoration: none;
  box-shadow: inset 0 -2px 0 oklch(0 0 0 / 0.25); transition: transform 150ms var(--ease), filter 150ms;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ph); box-shadow: none; }
.btn-ghost:hover { background: oklch(0.90 0.22 128 / 0.08); }
.btn.wide { width: 100%; margin-top: 12px; }
.mini {
  font: 12px var(--m); color: var(--mu); background: var(--bz2); border: 1px solid var(--rule); border-radius: 2px;
  padding: 3px 7px; min-height: 26px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
}
.mini:hover { color: var(--tx); border-color: var(--phd); }
.mini.ok { color: var(--ink); background: var(--ph); border-color: var(--ph); }
.lnk { background: none; border: 0; padding: 0; color: var(--ph); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 30; height: var(--barh); display: flex; align-items: center; gap: 24px;
  padding: 0 clamp(12px, 2vw, 28px); background: oklch(0.19 0.013 140 / 0.94); border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(1.2) blur(6px);
}
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--tx); text-decoration: none; }
.mark img { display: block; height: auto; }
.mark-word { font-weight: 700; letter-spacing: 0.08em; font-size: 15px; }
.beta { font: 700 10px var(--m); color: var(--ink); background: var(--mu); padding: 1px 5px; border-radius: 1px; letter-spacing: 0.08em; }
.routes { display: flex; gap: 4px; }
.routes a { color: var(--mu); text-decoration: none; padding: 8px 12px; font-size: 14px; border-bottom: 2px solid transparent; }
.routes a:hover { color: var(--tx); }
.routes a.active { color: var(--tx); border-bottom-color: var(--ph); }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; background: var(--glass);
  border: 1px solid var(--rule); border-radius: 2px; color: var(--tx); font: 13px var(--m); cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--phd); }
.chip-sym { font-weight: 700; }
.chip-val { color: var(--mu); }
.chip-val .up { color: var(--tx); }
.chip-val .dn { color: var(--tx); text-decoration: underline dotted; }
.lang { display: inline-flex; border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; }
.lang button { font: 700 12px var(--m); background: transparent; color: var(--mu); border: 0; padding: 0 9px; height: 34px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--bz2); color: var(--ph); }
.btn-connect { min-height: 36px; font-size: 13px; }
.btn-connect.is-on { background: var(--bz2); color: var(--tx); border-color: var(--rule); font-family: var(--m); box-shadow: none; }

.coin-sheet {
  position: fixed; z-index: 40; top: calc(var(--barh) + 8px); right: clamp(12px, 2vw, 28px); width: min(340px, calc(100vw - 24px));
  background: var(--bz); border: 1px solid var(--rule); border-radius: 3px; padding: 14px 16px 16px;
  box-shadow: 0 20px 50px oklch(0 0 0 / 0.5);
}
.cs-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-family: var(--m); }
.x { background: none; border: 0; color: var(--mu); font-size: 22px; cursor: pointer; width: 32px; height: 32px; }
.spark { width: 100%; height: 48px; display: block; margin-bottom: 10px; }
.spark polyline { fill: none; stroke: var(--ph); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.cs-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.cs-figs dt, .ro-meta dt, .figs dt, .w-figs dt { font-size: 12px; color: var(--mu); }
.cs-figs dd, .ro-meta dd, .w-figs dd { margin: 0; font-family: var(--m); font-variant-numeric: tabular-nums; }
.cs-ca { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mu); }
.cs-ca code { color: var(--tx); }

/* ---------- console ---------- */
.console {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); gap: 0;
  min-height: calc(100vh - var(--barh)); border-bottom: 1px solid var(--rule);
}
.scope-wrap {
  display: grid; grid-template-areas: "head" "scope" "side"; justify-items: center; align-content: start;
  padding: 18px clamp(14px, 2.4vw, 40px) 22px; min-width: 0;
  background: radial-gradient(closest-side at 55% 52%, oklch(0.24 0.02 140), transparent), transparent;
}
.scope-head { grid-area: head; width: min(100%, calc(100vh - var(--barh) - 110px)); margin-bottom: 12px; }
.scope { grid-area: scope; }
.scope-side {
  grid-area: side; width: min(100%, calc(100vh - var(--barh) - 110px)); display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 12px; align-items: flex-start;
}
.hs { display: grid; gap: 2px; font-family: var(--m); font-size: 13px; }
.hs-k { font-size: 12px; color: var(--mu); font-family: var(--f); }
.hs-v { color: var(--tx); font-variant-numeric: tabular-nums; }
.hs-v.alarm { color: var(--ink); background: var(--ph); padding: 0 6px; justify-self: start; font-weight: 700; }
.hs-mode span { display: inline-block; font: 700 12px var(--m); letter-spacing: 0.02em; padding: 4px 8px; border: 1px solid var(--rule); color: var(--mu); }
.hs-mode span.on { color: var(--ink); background: var(--ph); border-color: var(--ph); }
.hs-key { display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--f); color: var(--mu); font-size: 13px; }
.hs-key i { font-style: normal; color: var(--ph); margin-right: 6px; font-family: var(--m); }
.hs-key .k-c { color: var(--phd); }
.hs-key .k-r { flex-basis: 100%; }
@media (min-width: 1280px) {
  .scope-wrap { grid-template-areas: "side head" "side scope"; grid-template-columns: 190px auto; column-gap: 28px; justify-content: center; }
  .scope-side { flex-direction: column; flex-wrap: nowrap; width: 190px; margin-top: 0; gap: 22px; padding-top: 58px; align-self: start; }
  .scope-side .sample-banner { width: 100%; margin-top: 0; }
  .hs-key { flex-direction: column; gap: 6px; }
  .scope-head, .scope { width: min(calc(100vw - 460px - 300px), calc(100vh - var(--barh) - 110px)); }
}
@media (min-width: 1700px) {
  .scope-wrap { grid-template-columns: 230px auto; column-gap: 48px; }
  .scope-side { width: 230px; }
  .scope-head, .scope { width: min(calc(100vw - 520px - 380px), calc(100vh - var(--barh) - 110px)); }
}
.rule { font-size: 15px; color: var(--mu); max-width: 60ch; }
.scope {
  position: relative; width: min(100%, calc(100vh - var(--barh) - 110px)); min-width: 280px; aspect-ratio: 1;
  background:
    radial-gradient(closest-side, transparent 96%, oklch(0.12 0.01 140) 97%, oklch(0.3 0.014 140) 99%, transparent 100%),
    linear-gradient(145deg, oklch(0.25 0.014 140), oklch(0.18 0.012 140));
  border: 1px solid var(--rule); border-radius: 6px;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.06), inset 0 -2px 8px oklch(0 0 0 / 0.4);
}
.scope canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; }
.scope-msg {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, 24px); max-width: 64%; text-align: center;
  font: 13px/1.5 var(--m); color: var(--ph); background: oklch(0.13 0.02 140 / 0.88); padding: 10px 14px; border: 1px solid var(--phd);
}
.scope-hud { position: absolute; font: 12px var(--m); color: var(--mu); letter-spacing: 0.04em; max-width: 46%; }
.scope-hud.tl { top: 10px; left: 12px; } .scope-hud.tr { top: 8px; right: 10px; }
.scope-hud.bl { bottom: 10px; left: 12px; } .scope-hud.br { bottom: 10px; right: 12px; text-align: right; }
.scope-hud .on { color: var(--ink); background: var(--ph); padding: 2px 5px; }
.hud-btn { font: 11px var(--m); color: var(--mu); background: oklch(0.13 0.02 140 / 0.7); border: 1px solid var(--rule); padding: 4px 8px; min-height: 26px; cursor: pointer; border-radius: 2px; }
.hud-btn:hover { color: var(--tx); }
.sample-banner {
  flex-basis: 100%; font: 12px/1.5 var(--m); color: var(--tx);
  padding: 7px 10px; border: 1px dashed var(--mu); background: repeating-linear-gradient(135deg, transparent 0 8px, oklch(1 0 0 / 0.03) 8px 16px);
}

/* readout */
.readout {
  border-left: 1px solid var(--rule); background: linear-gradient(180deg, var(--bz), oklch(0.19 0.012 140));
  display: flex; flex-direction: column; min-width: 0; max-height: calc(100vh - var(--barh)); position: sticky; top: var(--barh);
  overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--rule) transparent;
}
.ro-card { padding: 18px 20px 16px; border-bottom: 1px solid var(--rule); min-height: 180px; flex-shrink: 0; }
.lockbox { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font: 700 12px/1.4 var(--m); letter-spacing: 0.02em; color: var(--ph); background: oklch(0.90 0.22 128 / 0.06); border: 1px solid var(--phd); padding: 8px 10px; }
.lockbox .mini { color: var(--ph); border-color: var(--phd); }
.ro-empty { color: var(--mu); font-size: 14px; padding-top: 40px; text-align: center; }
.ro-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ro-id { display: flex; gap: 10px; align-items: center; min-width: 0; }
.ro-id img { width: 36px; height: 36px; border-radius: 2px; object-fit: cover; }
.ro-glyph { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--phd); color: var(--ph); font-size: 18px; }
.ro-sym { font: 700 20px var(--m); }
.ro-name { color: var(--mu); font-size: 13px; }
.ro-score { text-align: right; display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: end; column-gap: 2px; }
.ro-score .big { font: 700 56px/0.95 var(--m); font-variant-numeric: tabular-nums; color: var(--ph); letter-spacing: -0.02em; }
.ro-score .of { font: 14px var(--m); color: var(--mu); }
.ro-score .lbl { grid-column: 1 / -1; font-size: 12px; color: var(--mu); margin-top: 4px; }
.ro-status { margin: 12px 0; }
.alarm { display: inline-block; font: 700 12px var(--m); letter-spacing: 0.06em; color: var(--ink); background: var(--ph); padding: 4px 8px; }
.calm { font: 12px var(--m); color: var(--mu); border: 1px solid var(--rule); padding: 3px 8px; display: inline-block; }
.ro-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0 0 12px; font-size: 13px; }
.ro-meta .wide { grid-column: 1 / -1; }
.addr { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.fx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.fx { background: var(--glass); padding: 9px 10px; }
.fx-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.fx-name { font-size: 14px; }
.fx-flag { font: 700 11px var(--m); color: var(--ink); background: var(--ph); padding: 1px 6px; letter-spacing: 0.06em; }
.fx-clear { font: 12px var(--m); color: var(--tx); opacity: 0.75; }
.fx-val { display: flex; justify-content: space-between; gap: 8px; margin-top: 3px; font-family: var(--m); font-size: 14px; font-variant-numeric: tabular-nums; }
.fx-val .raw { color: var(--tx); font-weight: 700; }
.fx-val .pts { color: var(--mu); font-size: 12px; }
.locked { color: var(--mu); letter-spacing: 0.05em; }
.locked em { font-style: normal; font-size: 11px; border: 1px solid var(--rule); padding: 0 5px; margin-left: 4px; }
.fx-bar { height: 3px; background: var(--bz2); margin-top: 6px; }
.fx-bar i { display: block; height: 100%; background: var(--phd); transform-origin: left; transition: transform 250ms var(--ease); }
.fx.is-flag .fx-bar i { background: var(--ph); }
.fx-d { font-size: 12px; color: var(--mu); margin-top: 4px; }
.warn-list { margin: 10px 0 0; padding-left: 18px; font-size: 13px; }
.ro-lock { font-size: 12px; color: var(--mu); margin-top: 10px; }

.list-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px 6px; font-size: 13px; color: var(--mu); gap: 8px; }
.sort { display: flex; border: 1px solid var(--rule); border-radius: 2px; }
.sort button { font: 12px var(--f); background: none; border: 0; color: var(--mu); padding: 0 9px; min-height: 28px; cursor: pointer; }
.sort button[aria-selected="true"] { background: var(--bz2); color: var(--tx); }
.search { display: block; padding: 4px 20px 8px; }
.search input {
  width: 100%; height: 36px; background: var(--glass); border: 1px solid var(--rule); border-radius: 2px; color: var(--tx);
  font: 14px var(--m); padding: 0 10px;
}
.search input::placeholder { color: oklch(0.65 0.016 135); }
.search input:focus { outline: none; border-color: var(--ph); }
.contacts { list-style: none; margin: 0; padding: 0 12px 8px; flex: 1 0 auto; min-height: 120px; }
.ct {
  width: 100%; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto 40px; align-items: center; gap: 10px;
  padding: 8px 8px; background: none; border: 0; border-bottom: 1px solid oklch(0.28 0.013 140); color: var(--tx);
  text-align: left; cursor: pointer; font: 14px var(--f); min-height: 44px;
}
.ct:hover { background: oklch(0.25 0.014 140); }
.ct.sel { background: oklch(0.28 0.03 135); box-shadow: inset 2px 0 0 var(--ph); }
.ct-g { color: var(--phd); font-size: 15px; text-align: center; }
.ct-g.d { color: var(--ph); }
.ct-s { font: 700 14px var(--m); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-s small { font: 400 12px var(--f); color: var(--mu); margin-left: 8px; }
.ct-f { font: 11px var(--m); color: var(--ph); white-space: nowrap; }
.ct-a { font: 12px var(--m); color: var(--mu); white-space: nowrap; }
.ct-n { font: 700 16px var(--m); text-align: right; font-variant-numeric: tabular-nums; }
.skel span { display: block; height: 28px; margin: 8px 0; background: linear-gradient(90deg, var(--bz2), oklch(0.3 0.014 140), var(--bz2)); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
.skel-line { height: 18px; background: var(--bz2); animation: sk 1.4s linear infinite; background: linear-gradient(90deg, var(--bz2), oklch(0.3 0.014 140), var(--bz2)); background-size: 200% 100%; }
@keyframes sk { to { background-position: -200% 0; } }
.list-empty, .empty { color: var(--mu); font-size: 14px; padding: 18px 8px; }
.gate-line { padding: 10px 20px 14px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--mu); }
.gate-line .on { color: var(--ph); }

/* ---------- bands ---------- */
.band { border-bottom: 1px solid var(--rule); }
.band-in { max-width: 1320px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) clamp(16px, 3vw, 40px); }
.band h2 { font-size: clamp(26px, 3vw, 40px); margin-bottom: 14px; }
.lead { font-size: 17px; color: var(--mu); max-width: 62ch; }
.fine { font-size: 13px; color: var(--mu); }
.legend { background: linear-gradient(180deg, oklch(0.185 0.012 140), var(--bg)); }
.band .fine { max-width: 75ch; }
.key-table { margin: 40px 0 24px; border-top: 1px solid var(--ph); }
.kt-row { display: grid; grid-template-columns: 48px minmax(160px, 1fr) minmax(0, 2fr) minmax(170px, 1fr); gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.kt-head { padding: 10px 0; font-size: 12px; color: var(--mu); }
.kt-head b { font-family: var(--m); color: var(--ph); margin-left: 6px; }
.kt-row svg { width: 40px; height: 40px; display: block; fill: none; stroke: var(--phd); stroke-width: 1.3; }
.kt-row svg .f { fill: var(--ph); stroke: var(--ph); fill-opacity: 0.5; }
.kt-row h3 { font-size: 17px; }
.kt-row p { font-size: 15px; color: var(--mu); }
.kt-now { display: flex; gap: 10px; align-items: center; justify-content: flex-end; font-family: var(--m); }
.kt-head span:last-child { text-align: right; }
.kt-raw { font-weight: 700; }
.kt-na { color: var(--mu); }

.access { background: var(--bz); }
.access-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px 64px; align-items: start; }
.tiers { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); }
.tier { padding: 22px 22px 24px; }
.tier + .tier { border-left: 1px solid var(--rule); }
.tier h3 { font: 700 13px var(--m); letter-spacing: 0.1em; color: var(--mu); margin-bottom: 14px; text-transform: uppercase; }
.tier-on { background: oklch(0.24 0.03 135); }
.tier-on h3 { color: var(--ink); background: var(--ph); display: inline-block; padding: 2px 8px; }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tier li { padding-left: 18px; position: relative; font-size: 15px; }
.tier li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border: 1px solid var(--phd); border-radius: 50%; }
.tier-on li::before { background: var(--ph); border-color: var(--ph); }
.tier-req { margin-top: 16px; font-size: 13px; color: var(--mu); }
.access-me { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 8px; }
.access-me p { font-size: 15px; }
.access-me p.on { color: var(--ph); }

.burnstrip { background: var(--glass); }
.bs-grid { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 12px 40px; padding-top: 56px; padding-bottom: 56px; }
.bs-grid h2 { grid-column: 1 / -1; font-size: 18px; color: var(--mu); margin: 0; }
.bs-fig .num { font-size: clamp(48px, 7vw, 96px); font-weight: 700; color: var(--ph); line-height: 0.9; letter-spacing: -0.03em; }
.bs-fig .unit { font: 14px var(--m); color: var(--mu); margin-left: 10px; }
.bs-meta p { font-size: 14px; color: var(--mu); max-width: 52ch; }

/* ---------- pages ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 40px) 72px; }
.page-head { margin-bottom: 32px; }
.page-head h1 { font-size: clamp(30px, 4vw, 52px); margin-bottom: 12px; }
.burn-top { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 40px; align-items: center; margin-bottom: 40px; }
.dial-big { position: relative; aspect-ratio: 1; }
.dial-big svg { width: 100%; height: 100%; display: block; }
.d-track { fill: var(--glass); stroke: var(--bz2); stroke-width: 10; }
.d-val { fill: none; stroke: var(--ph); stroke-width: 10; }
.d-tick { stroke: var(--mu); stroke-width: 1; opacity: 0.6; }
.dial-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; }
.dial-c .num { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; }
.dial-c .lbl { font-size: 13px; color: var(--mu); }
.dial-c .src { font: 11px var(--m); color: var(--phd); }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--rule); }
.figs > div { padding: 16px 16px 18px 0; border-bottom: 1px solid var(--rule); }
.figs dd { margin: 4px 0 0; font: 700 22px var(--m); font-variant-numeric: tabular-nums; }
.figs dd.num { color: var(--ph); }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); max-height: 70vh; overflow-y: auto; }
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger th { position: sticky; top: 0; background: var(--bz2); text-align: left; font-weight: 700; font-size: 13px; color: var(--mu); padding: 10px 14px; }
.ledger td { padding: 10px 14px; border-top: 1px solid var(--rule); font-family: var(--m); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger .r { text-align: right; }
.ledger a { margin-right: 10px; }
.ledger a.dim { color: var(--mu); }
.ledger td.empty { font-family: var(--f); white-space: normal; }

.split-bar { display: flex; height: 76px; border: 1px solid var(--rule); margin-bottom: 32px; }
.seg { display: flex; flex-direction: column; justify-content: center; padding: 0 12px; min-width: 0; border-right: 1px solid var(--rule); background: var(--glass); }
.seg:last-child { border-right: 0; }
.seg .pc { font: 700 22px var(--m); }
.seg .sl { font-size: 12px; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg-missionburn { background: oklch(0.28 0.05 132); }
.seg-missionburn .pc { color: var(--ph); }
.seg-missionops { background: var(--bz2); }
.wallet-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 48px; }
.wcard { border: 1px solid var(--rule); background: var(--bz); padding: 22px; min-width: 0; }
.wcard h2 { font-size: 20px; display: flex; justify-content: space-between; margin-bottom: 8px; }
.wcard h2 .pc { font-family: var(--m); color: var(--ph); }
.w-addr { margin: 16px 0; display: grid; gap: 8px; min-width: 0; }
.w-addr code.full { font-size: 13px; word-break: break-all; color: var(--tx); background: var(--glass); padding: 8px 10px; border: 1px solid var(--rule); }
.w-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.sub { font-size: 22px; margin-bottom: 14px; }
.log { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.log li { display: grid; grid-template-columns: 90px 1fr 1.2fr auto auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; align-items: center; }
.log li.empty { display: block; }
.lg-t, .lg-a, .lg-n { font-family: var(--m); }
.lg-t { color: var(--mu); }

.bot-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; margin-bottom: 40px; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); color: var(--mu); }
.steps li strong { color: var(--tx); display: block; margin-bottom: 2px; }
.steps li p { font-size: 14px; }
.st-m { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--rule); font: 700 13px var(--m); border-radius: 50%; }
.steps li.cur .st-m { border-color: var(--ph); color: var(--ph); }
.steps li.done .st-m { background: var(--ph); border-color: var(--ph); color: var(--ink); }
.bot-panel { border: 1px solid var(--rule); background: var(--bz); padding: 22px; display: grid; gap: 14px; align-content: start; }
.bot-panel p.on { color: var(--ph); }
.code-box { display: flex; align-items: center; gap: 12px; }
.code { font: 700 32px var(--m); letter-spacing: 0.12em; color: var(--ph); }
.bs-label { font-size: 13px; color: var(--mu); margin-bottom: 8px; }
.tg-msg { font: 13px/1.6 var(--m); background: var(--glass); border: 1px solid var(--rule); padding: 16px 18px; white-space: pre-wrap; margin: 0; max-width: 560px; color: var(--tx); }

/* ---------- footer ---------- */
.foot { background: oklch(0.14 0.01 140); border-top: 1px solid var(--rule); }
.foot-in { max-width: 1320px; margin: 0 auto; padding: 40px clamp(16px, 3vw, 40px) 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 56px; }
.foot-idx { display: grid; gap: 16px; align-content: start; min-width: 0; }
.foot-idx nav { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.foot-idx nav a { color: var(--mu); text-decoration: none; }
.foot-idx nav a:hover { color: var(--tx); }
.foot-ca { font-size: 13px; color: var(--mu); min-width: 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.disc { display: grid; gap: 12px; min-width: 0; }
.disc p { font-size: 14px; color: var(--mu); line-height: 1.6; max-width: 75ch; }
.disc strong { color: var(--tx); }
.foot-beta { font-family: var(--m); }

.tabbar { display: none; }
.toasts { position: fixed; z-index: 60; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100vw - 24px)); }
.toast { background: var(--bz2); border: 1px solid var(--phd); padding: 10px 14px; font-size: 14px; animation: tin 220ms var(--ease); }
.toast.out { opacity: 0; transition: opacity 300ms; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* ---------- responsive ---------- */
@media (min-width: 1700px) {
  .console { grid-template-columns: minmax(0, 1fr) 520px; }
}
@media (max-width: 1100px) {
  .routes { display: none; }
  .access-grid { grid-template-columns: 1fr; }
  .tabbar {
    display: flex; position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; height: calc(60px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom); background: oklch(0.19 0.013 140 / 0.97); border-top: 1px solid var(--rule);
  }
  .tabbar a { flex: 1; display: grid; place-items: center; align-content: center; gap: 3px; color: var(--mu); text-decoration: none; font-size: 11px; }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
  .tabbar a.active { color: var(--ph); }
  body { padding-bottom: 60px; }
  .toasts { bottom: 76px; }
}
@media (max-width: 899px) {
  .console { grid-template-columns: 1fr; min-height: 0; }
  .readout { border-left: 0; border-top: 1px solid var(--rule); max-height: none; position: static; }
  .contacts { max-height: 440px; }
  .scope-head, .scope, .scope-side { width: 100%; }
  .burn-top { grid-template-columns: 1fr; }
  .dial-big { max-width: 300px; margin: 0 auto; width: 100%; }
  .wallet-list, .bot-grid { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .bs-grid { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 600px) {
  :root { --barh: 54px; }
  .bar { gap: 10px; }
  .mark-word, .bar .beta { display: none; }
  .chip { padding: 0 8px; font-size: 12px; }
  .chip-sym { display: none; }
  .lang button { padding: 0 7px; }
  .scope-wrap { padding: 12px 10px 16px; }
  .scope { min-width: 0; }
  .rule { font-size: 14px; }
  .scope-hud { font-size: 10px; }
  .ro-card { padding: 16px 14px; }
  .list-head, .search, .gate-line { padding-left: 14px; padding-right: 14px; }
  .contacts { padding: 0 6px 8px; }
  .ct { grid-template-columns: 18px minmax(0, 1fr) auto 34px; gap: 8px; }
  .ct-f { display: none; }
  .ct-s small { display: none; }
  .kt-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 6px 14px; }
  .kt-row p { grid-column: 2 / -1; font-size: 14px; }
  .kt-row .kt-now { grid-column: 3; grid-row: 1; }
  .kt-head span:nth-child(3) { display: none; }
  .kt-head { grid-template-columns: 0 1fr auto; }
  .tiers { grid-template-columns: 1fr; }
  .tier + .tier { border-left: 0; border-top: 1px solid var(--rule); }
  .figs { grid-template-columns: 1fr 1fr; }
  .figs dd { font-size: 18px; }
  .split-bar { height: auto; flex-direction: column; }
  .seg { flex: none !important; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .log li { grid-template-columns: 70px 1fr auto; }
  .log .lg-a { justify-self: end; }
  .log .lg-k, .log .lg-n { display: none; }
  .ro-score .big { font-size: 46px; }
  .scope-side { gap: 8px 16px; align-items: center; }
  .hs { display: flex; gap: 6px; align-items: baseline; }
  .hs-key .k-r, .hs-key { display: none; }
  .scope-side .sample-banner { padding: 5px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
