:root {
  --sky-1: #f0f0f0;
  --sky-2: #ffffff;
  --paper: #f4f4f5;
  --panel: #ffffff;
  --sunk: #e9e9eb;
  --ink: #16161a;
  --ink-2: #55555e;
  --ink-3: #7d7d87;
  --rule: #d6d6da;
  --edge: #c2c2c8;
  --coal: #232329;
  --coal-edge: #0c0c10;
  --coal-soft: rgba(35, 35, 41, .1);
  --red: #e8252a;
  --red-edge: #a50f14;
  --red-soft: rgba(232, 37, 42, .12);
  --green: #16865e;
  --green-bright: #2fcb84;
  --sun: #f0ae18;
  --focus: #e8252a;
  --f-display: "Arial Black", "Arial Narrow", Arial, sans-serif;
  --f-text: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-sizing: border-box;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sky-1: #1a1a1f;
    --sky-2: #0e0e12;
    --paper: #121216;
    --panel: #1c1c22;
    --sunk: #16161b;
    --ink: #f2f2f5;
    --ink-2: #a8a8b2;
    --ink-3: #7f7f89;
    --rule: #303038;
    --edge: #000000;
    --coal: #c9c9d2;
    --coal-edge: #4a4a54;
    --coal-soft: rgba(201, 201, 210, .12);
    --red: #ff4a45;
    --red-edge: #b3201c;
    --red-soft: rgba(255, 74, 69, .15);
    --green: #2fcb84;
    --sun: #ffc24a;
    --focus: #ff4a45;
  }
}

:root[data-theme="dark"] {
  --sky-1: #1a1a1f;
  --sky-2: #0e0e12;
  --paper: #121216;
  --panel: #1c1c22;
  --sunk: #16161b;
  --ink: #f2f2f5;
  --ink-2: #a8a8b2;
  --ink-3: #7f7f89;
  --rule: #303038;
  --edge: #000000;
  --coal: #c9c9d2;
  --coal-edge: #4a4a54;
  --coal-soft: rgba(201, 201, 210, .12);
  --red: #ff4a45;
  --red-edge: #b3201c;
  --red-soft: rgba(255, 74, 69, .15);
  --green: #2fcb84;
  --sun: #ffc24a;
  --focus: #ff4a45;
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--f-text);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap, .shell { width: 100%; max-width: 1144px; margin: 0 auto; padding-left: 22px; padding-right: 22px; }
h1, h2, h3, h4, .btn, .n, .val { font-family: var(--f-display); }
.skip, .skip-link {
  position: fixed;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 15px;
  border: 2px solid var(--ink);
  background: var(--panel);
  color: var(--ink);
  font-weight: 800;
}
.skip:focus, .skip-link:focus { left: 12px; }

/* Shared chrome */
.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 2px solid var(--ink);
  background: var(--panel);
}
.bar-in { display: flex; align-items: center; gap: 15px; min-height: 70px; }
.brand { display: flex; flex: 0 0 auto; align-items: center; text-decoration: none; }
.brand-logo {
  position: relative;
  display: block;
  width: 158px;
  height: 62px;
  overflow: hidden;
  background: #fff;
}
.brand-logo img { position: absolute; width: 127px; height: auto; max-width: none; left: 50%; top: -33px; transform: translateX(-50%); }
.nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav a {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--red); }
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 2px solid var(--ink);
  background: var(--sunk);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.live-chip > span { width: 7px; height: 7px; background: var(--sun); }
.live-chip.live > span { background: var(--green-bright); box-shadow: 0 0 0 3px rgba(47, 203, 132, .15); }
.live-chip.stale > span { background: var(--sun); }
.icobtn {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--edge);
  cursor: pointer;
}
.icobtn:active { transform: translateY(3px); box-shadow: none; }
.strip { border-bottom: 2px solid var(--ink); background: var(--sunk); }
.strip-in { display: flex; align-items: center; gap: 11px; min-height: 44px; font-size: 13px; color: var(--ink-2); }
.addr { min-width: 0; max-width: min(45vw, 430px); overflow: hidden; color: var(--ink); font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.mini, .mini-button, .refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border: 2px solid var(--ink);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--edge);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.mini:active, .mini-button:active, .refresh-button:active { transform: translateY(3px); box-shadow: none; }
.strip-sync { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; white-space: nowrap; }
.strip-sync > i { width: 7px; height: 7px; background: var(--sun); }
.strip-sync.live > i { background: var(--green-bright); }
.ticker { display: flex; height: 38px; align-items: center; overflow: hidden; background: #16161a; }
.ticker-track { display: flex; width: max-content; white-space: nowrap; will-change: transform; }
.tk { display: inline-flex; align-items: center; gap: 8px; padding: 0 17px; color: #aeb0b9; font-size: 12px; font-weight: 700; }
.tk strong { color: #fff; }
.tk b { color: #2fcb84; }
.tk i { display: block; width: 7px; height: 7px; background: #f0ae18; }

/* Home hero */
.world {
  position: relative;
  isolation: isolate;
  min-height: 760px;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background: linear-gradient(180deg, var(--sky-1), var(--sky-2));
}
#scene { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; touch-action: pan-y; }
.world-in { position: relative; z-index: 3; padding-top: 44px; padding-bottom: 210px; pointer-events: none; }
.world-in a, .world-in button, .world-in .pills { pointer-events: auto; }
.hero-logo { position: relative; width: 380px; height: 166px; overflow: hidden; background: #fff; }
.hero-logo img { position: absolute; left: 50%; top: -100px; width: 361px; height: auto; max-width: none; transform: translateX(-50%); }
.tagline {
  max-width: 18em;
  margin: 12px 0 0;
  font: 900 clamp(23px, 3vw, 32px)/1.1 var(--f-display);
  letter-spacing: -.035em;
}
.tagline .r { color: var(--red); }
.lede { max-width: 550px; margin: 18px 0 0; color: var(--ink-2); font-size: 17px; font-weight: 600; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.btn {
  display: inline-block;
  padding: 12px 21px;
  border: 2px solid var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .01em;
  cursor: pointer;
}
.btn-fill { background: var(--red); color: #fff; box-shadow: 0 6px 0 var(--red-edge); }
.btn-line { background: var(--panel); color: var(--ink); box-shadow: 0 6px 0 var(--edge); }
.btn:active { transform: translateY(6px); box-shadow: none; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; max-width: 620px; margin-top: 28px; }
.pill { min-width: 142px; padding: 11px 14px; border: 2px solid var(--ink); background: var(--panel); box-shadow: 0 5px 0 var(--edge); }
.pill .v { display: block; overflow: hidden; font-family: var(--f-display); font-size: 19px; font-weight: 900; line-height: 1.2; text-overflow: ellipsis; }
.pill .v.red { color: var(--red); }
.pill .v.coal { color: var(--coal); }
.pill .v small { font: 700 10px var(--f-text); }
.pill .l { display: block; margin-top: 4px; color: var(--ink-3); font-size: 11px; font-weight: 700; }
.hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.hint b { padding: 2px 7px; border: 2px solid var(--ink); background: var(--panel); color: var(--ink); }
.hint:disabled, [data-refresh]:disabled { cursor: wait; opacity: .65; }

/* Home sections */
main > section { border-bottom: 2px solid var(--ink); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding-top: 46px; }
.sec-head h2 { margin: 0; font-size: clamp(27px, 3.5vw, 39px); line-height: 1.08; letter-spacing: -.035em; }
.sec-note { max-width: 500px; margin: 0; color: var(--ink-3); font-size: 14px; }
.windowbar { position: relative; display: flex; justify-content: space-between; gap: 20px; margin-top: 27px; overflow: hidden; border: 2px solid var(--ink); background: var(--panel); box-shadow: 0 6px 0 var(--edge); }
.window-copy { position: relative; z-index: 2; padding: 14px 17px; }
.window-copy strong, .window-copy span { display: block; }
.window-copy strong { font: 900 14px var(--f-display); }
.window-copy span { margin-top: 2px; color: var(--ink-3); font-size: 12px; font-weight: 650; }
.window-copy-right { text-align: right; }
.window-copy-right strong { color: var(--red); font-size: 22px; }
.window-fill { position: absolute; inset: auto auto 0 0; width: 0; height: 5px; background: var(--red); transition: width .5s ease; }
.splitnote { margin: 13px 0 42px; color: var(--ink-3); font-size: 13px; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 455px); gap: 48px; align-items: start; margin: 0 0 52px; }
.calc-copy p { margin: 0 0 15px; color: var(--ink-2); }
.calc-copy strong { color: var(--ink); }
.text-link { display: inline-block; margin-top: 6px; color: var(--red); font-weight: 850; }
.stmt { border: 2px solid var(--ink); background: var(--panel); box-shadow: 0 8px 0 var(--edge); }
.stmt-top { padding: 18px 20px 21px; border-bottom: 2px dashed var(--rule); }
.stmt-eyebrow { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-3); font-size: 12px; font-weight: 800; }
.stmt-eyebrow b { color: var(--green); }
.fieldlab { display: block; margin: 14px 0 6px; color: var(--ink-2); font-size: 12px; font-weight: 800; }
.address-field { display: flex; min-width: 0; border: 2px solid var(--ink); background: var(--sunk); }
.address-field > a { display: flex; flex: 1; min-width: 0; color: var(--ink); text-decoration: none; }
.address-field code { flex: 1; min-width: 0; overflow: hidden; padding: 11px 12px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.address-field button { flex: 0 0 auto; border: 0; border-left: 2px solid var(--ink); background: var(--panel); color: var(--ink); font-size: 12px; font-weight: 850; cursor: pointer; }
.stmt-rows { padding: 7px 20px; }
.rowgroup { padding: 13px 0 5px; border-bottom: 1px solid var(--rule); color: var(--ink-3); font: 850 11px var(--f-display); text-transform: uppercase; }
.rowgroup.g { color: var(--red); }
.rowgroup.v { color: var(--coal); }
.row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.row .k { color: var(--ink-2); font-size: 14px; font-weight: 650; }
.row .k small { display: block; color: var(--ink-3); font-size: 11px; font-weight: 500; }
.row .val { font-size: 16px; font-weight: 900; text-align: right; white-space: nowrap; }
.row.total { margin: 0 -20px; padding: 14px 20px; border-top: 2px solid var(--ink); border-bottom: 0; background: var(--red-soft); }
.row.total .val { color: var(--red); font-size: 21px; }
.stmt-foot { display: flex; justify-content: space-between; padding: 13px 20px 16px; border-top: 2px dashed var(--rule); color: var(--ink-3); font-size: 12px; font-weight: 750; }
.stmt-foot span:last-child { color: var(--ink); }
.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 27px 0 49px; }
.fig { min-width: 0; padding: 18px; border: 2px solid var(--ink); background: var(--panel); box-shadow: 0 6px 0 var(--edge); }
.fig .n { display: block; overflow: hidden; font-size: clamp(20px, 2.5vw, 28px); line-height: 1.1; text-overflow: ellipsis; }
.fig .n.red { color: var(--red); }
.fig .n.coal { color: var(--coal); }
.fig .k { margin-top: 8px; color: var(--ink-2); font-size: 13px; font-weight: 800; }
.fig .s { margin-top: 2px; color: var(--ink-3); font-size: 11px; }
.chart-head, .table-head { padding-top: 0; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.tog, .filter {
  padding: 7px 12px;
  border: 2px solid var(--ink);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--edge);
  font: 850 12px var(--f-display);
  cursor: pointer;
}
.tog.active, .filter.active, .tog[aria-pressed="true"], .filter[aria-pressed="true"] { background: var(--ink); color: var(--panel); }
.tog:active, .filter:active { transform: translateY(3px); box-shadow: none; }
.event-chart { position: relative; min-height: 230px; margin: 24px 0 13px; padding: 22px; border: 2px solid var(--ink); background: var(--panel); box-shadow: 0 6px 0 var(--edge); }
.chart-empty { display: grid; min-height: 182px; place-content: center; text-align: center; }
.chart-empty strong { font: 900 20px var(--f-display); }
.chart-empty p { max-width: 520px; margin: 7px 0 0; color: var(--ink-3); font-size: 13px; }
.chart-shell { position: relative; height: 184px; padding: 22px 14px 34px 66px; }
.chart-grid { position: absolute; inset: 22px 14px 34px 66px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), var(--rule) 25%); }
.chart-y-label { position: absolute; left: 0; top: 24px; color: var(--ink-3); font-size: 10px; font-weight: 800; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.chart-track { position: absolute; inset: 22px 14px 34px 66px; }
.chart-point { position: absolute; bottom: var(--point-y, 25%); left: var(--point-x, 50%); width: 16px; height: 16px; transform: translate(-50%, 50%); border: 3px solid var(--ink); background: var(--red); box-shadow: 0 3px 0 var(--edge); }
.chart-point.claim { background: var(--green-bright); }
.chart-point.transfer { background: var(--sun); }
.chart-stem { position: absolute; bottom: 0; left: var(--point-x, 50%); width: 2px; height: var(--point-y, 25%); background: var(--rule); transform: translateX(-50%); }
.chart-label { position: absolute; bottom: 4px; color: var(--ink-3); font-size: 10px; font-weight: 700; }
.chart-label.start { left: 66px; }
.chart-label.end { right: 14px; text-align: right; }
.srcnote { max-width: 720px; margin: 0 0 46px; color: var(--ink-3); font-size: 13px; }
.table-head { margin-bottom: 23px; }
.refresh-cluster { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 11px; }

/* Shared live ledger */
.ledger { overflow: hidden; border: 2px solid var(--ink); background: var(--panel); box-shadow: 0 6px 0 var(--edge); }
.ledger-header, .ledger-row { display: grid; grid-template-columns: minmax(210px, 1.35fr) minmax(150px, .9fr) 110px minmax(165px, 1fr) 30px; gap: 13px; align-items: center; }
.ledger-header { padding: 10px 15px; background: var(--ink); color: var(--panel); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.ledger-row { padding: 13px 15px; border-bottom: 1px solid var(--rule); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row:hover { background: var(--sunk); }
.ledger-row > a { font-size: 20px; font-weight: 900; text-align: right; text-decoration: none; }
.ledger-event { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ledger-event strong, .ledger-event small, .ledger-value small, .ledger-block small, .ledger-date small { display: block; }
.ledger-event strong { font-size: 13px; }
.ledger-event small, .ledger-value small, .ledger-block small, .ledger-date small { overflow: hidden; color: var(--ink-3); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.event-icon { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border: 2px solid var(--ink); font-weight: 900; }
.event-icon.reward { background: var(--red); color: #fff; }
.event-icon.claim { background: var(--green-bright); color: #101014; }
.event-icon.transfer { background: var(--sun); color: #101014; }
.ledger-value, .ledger-block, .ledger-date { min-width: 0; font-size: 12px; font-weight: 800; }
.loading-row { display: flex; min-height: 118px; align-items: center; justify-content: center; gap: 10px; color: var(--ink-3); font-size: 13px; }
.loader { width: 17px; height: 17px; border: 3px solid var(--rule); border-top-color: var(--red); border-radius: 50%; animation: spin .7s linear infinite; }
.empty-state { display: grid; min-height: 150px; padding: 28px; place-content: center; text-align: center; }
.empty-state strong { font: 900 18px var(--f-display); }
.empty-state p { max-width: 560px; margin: 6px auto 0; color: var(--ink-3); font-size: 13px; }
.ledger-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 15px 0 50px; color: var(--ink-3); font-size: 11px; font-weight: 700; }
.ledger-foot > span, .ledger-foot > div { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { display: inline-block; width: 9px; height: 9px; border: 1px solid var(--ink); }
.legend-dot.reward { background: var(--red); }
.legend-dot.claim { background: var(--green-bright); }
.legend-dot.transfer { background: var(--sun); }
.ledger-source { margin-left: auto; text-align: right; }
.mech { padding-bottom: 53px; }
.valve { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 31px; }
.step { padding: 19px; border: 2px solid var(--ink); background: var(--panel); box-shadow: 0 6px 0 var(--edge); }
.step .num { display: grid; width: 30px; height: 30px; margin-bottom: 13px; place-items: center; border: 2px solid var(--ink); background: var(--red); color: #fff; box-shadow: 0 3px 0 var(--red-edge); font: 900 13px var(--f-display); }
.step h3 { margin: 0 0 6px; font-size: 14px; text-transform: uppercase; }
.step p { margin: 0; color: var(--ink-2); font-size: 13px; }
.caveat { max-width: 820px; margin-top: 31px; padding: 20px 22px; border: 2px solid var(--ink); border-left: 10px solid var(--sun); background: var(--panel); box-shadow: 0 6px 0 var(--edge); color: var(--ink-2); }
.caveat p { margin: 0 0 11px; }
.caveat p:last-child { margin-bottom: 0; }
.caveat strong { color: var(--ink); }

/* Dedicated wallet page */
.wallet-main { background: var(--paper); }
.wallet-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: 46px; align-items: end; padding-top: 62px; padding-bottom: 55px; }
.eyebrow, .kicker { color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.network-mark { display: inline-block; width: 8px; height: 8px; margin-right: 5px; background: var(--green-bright); }
.wallet-hero h1 { margin: 14px 0 15px; font-size: clamp(43px, 7vw, 76px); line-height: .94; letter-spacing: -.055em; }
.wallet-hero h1 em { color: var(--red); font-style: normal; }
.wallet-hero > div:first-child > p { max-width: 590px; margin: 0; color: var(--ink-2); font-size: 17px; }
.wallet-identity { min-width: 0; padding: 20px; border: 2px solid var(--ink); background: var(--panel); box-shadow: 0 7px 0 var(--edge); }
.wallet-identity > span { display: block; color: var(--ink-3); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.wallet-identity > .identity-label-secondary { margin-top: 19px; padding-top: 17px; border-top: 1px solid var(--rule); }
.wallet-identity code { display: block; margin: 10px 0 16px; overflow-wrap: anywhere; font-size: 14px; font-weight: 750; }
.wallet-identity > div { display: flex; flex-wrap: wrap; gap: 8px; }
.dashboard-band { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--sunk); }
.dashboard-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding-top: 22px; padding-bottom: 28px; }
.dashboard-grid article { min-width: 0; padding: 5px 17px; border-right: 1px solid var(--rule); }
.dashboard-grid article:first-child { padding-left: 0; }
.dashboard-grid article:last-child { padding-right: 0; border-right: 0; }
.dashboard-grid article > span { display: block; min-height: 35px; color: var(--ink-3); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.dashboard-grid strong { display: block; overflow: hidden; font: 900 clamp(20px, 2.4vw, 27px) var(--f-display); text-overflow: ellipsis; white-space: nowrap; }
.dashboard-grid strong small { font: 750 10px var(--f-text); }
.dashboard-grid p { margin: 4px 0 0; color: var(--ink-3); font-size: 10px; }
.window-tile strong { color: var(--red); }
.section { padding-top: 52px; padding-bottom: 52px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.section-heading h2 { margin: 7px 0 0; font-size: clamp(26px, 4vw, 40px); line-height: 1.05; letter-spacing: -.04em; }
.activity-section .filter-bar { margin-bottom: 22px; }
.activity-section .ledger-foot { margin-bottom: 0; }
.section-soft { padding-left: 0; padding-right: 0; border-top: 2px solid var(--ink); background: var(--sunk); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.detail-card { padding: 22px; border: 2px solid var(--ink); background: var(--panel); box-shadow: 0 6px 0 var(--edge); }
.detail-card h3 { margin: 7px 0 17px; font-size: 20px; }
.detail-card dl { margin: 0; }
.detail-card dl div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-top: 1px solid var(--rule); }
.detail-card dt { color: var(--ink-3); font-size: 12px; }
.detail-card dd { margin: 0; font-size: 12px; font-weight: 800; text-align: right; word-break: break-word; }
.truth-banner { margin-top: 29px; }
.truth-banner { padding-top: 18px; padding-bottom: 18px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--red-soft); }
.truth-banner strong { font: 900 14px var(--f-display); text-transform: uppercase; }
.truth-banner p { margin: 5px 0 0; color: var(--ink-2); font-size: 13px; }

/* Footer and feedback */
footer { padding: 42px 0 58px; background: var(--paper); color: var(--ink-3); font-size: 13px; }
.foot-grid { display: grid; grid-template-columns: 1.7fr .8fr .8fr; gap: 35px; }
.footer-brand { width: max-content; }
.footer-brand .brand-logo { width: 143px; height: 57px; }
.footer-brand .brand-logo img { width: 115px; left: 50%; top: -30px; }
.disclaim { max-width: 530px; margin: 13px 0 0; line-height: 1.6; }
.foot-grid h4 { margin: 4px 0 10px; color: var(--ink-2); font-size: 11px; text-transform: uppercase; }
.foot-grid p { margin: 5px 0; }
.foot-grid a { color: var(--ink-2); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; padding: 10px 16px; transform: translate(-50%, 14px); border: 2px solid var(--ink); background: var(--ink); color: var(--panel); opacity: 0; pointer-events: none; font-size: 13px; font-weight: 800; transition: opacity .18s, transform .18s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track.is-ready { animation: slide 58s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
  .btn, .tog, .filter, .mini, .mini-button, .refresh-button, .icobtn { transition: transform .1s, box-shadow .1s, background .15s, color .15s; }
}

@media (max-width: 980px) {
  .calc-grid { grid-template-columns: 1fr; gap: 30px; }
  .calc-copy { max-width: 780px; }
  .stmt { max-width: 620px; }
  .wallet-hero { grid-template-columns: 1fr; align-items: start; }
  .wallet-identity { max-width: 650px; }
  .dashboard-grid { grid-template-columns: repeat(3, 1fr); row-gap: 25px; }
  .dashboard-grid article:nth-child(3) { border-right: 0; }
  .dashboard-grid article:nth-child(4) { padding-left: 0; }
}

@media (max-width: 820px) {
  .nav { gap: 12px; }
  .nav .hide-sm, .nav-external { display: none; }
  .strip-in { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .strip-sync { width: 100%; margin-left: 0; }
  .world { min-height: 850px; }
  .world-in { padding-bottom: 380px; }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .valve { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger { overflow-x: auto; }
  .ledger-header, .ledger-row { min-width: 790px; }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap, .shell { padding-left: 16px; padding-right: 16px; }
  .bar-in { gap: 8px; min-height: 62px; }
  .brand-logo { width: 119px; height: 51px; }
  .brand-logo img { width: 101px; left: 50%; top: -26px; }
  .nav { gap: 10px; }
  .nav a { font-size: 12px; }
  .nav a:nth-child(2), body[data-page="home"] .nav a:nth-child(3) { display: none; }
  .live-chip { padding: 4px 6px; font-size: 9px; }
  .icobtn { width: 32px; height: 32px; }
  .strip-in > span:first-child { display: none; }
  .addr { max-width: calc(100vw - 110px); }
  .ticker { height: 34px; }
  .world { min-height: 815px; }
  .world-in { padding-top: 28px; padding-bottom: 390px; }
  .hero-logo { width: min(306px, 100%); height: 135px; }
  .hero-logo img { width: 288px; left: 50%; top: -79px; }
  .lede { font-size: 15px; }
  .pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pill { min-width: 0; padding: 10px; }
  .pill .v { font-size: 16px; }
  .sec-head { display: block; }
  .sec-note { margin-top: 10px; }
  .windowbar { display: block; }
  .window-copy-right { padding-top: 0; text-align: left; }
  .window-copy-right strong { font-size: 19px; }
  .calc-grid { margin-bottom: 43px; }
  .stmt-top, .stmt-rows { padding-left: 14px; padding-right: 14px; }
  .row.total { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  .figs { gap: 9px; }
  .fig { padding: 13px; }
  .chart-head { display: block; }
  .chart-head .filter-bar { margin-top: 16px; }
  .event-chart { padding: 12px; }
  .chart-shell { padding-left: 45px; }
  .chart-grid, .chart-track { left: 45px; }
  .chart-label.start { left: 45px; }
  .table-head { display: block; }
  .refresh-cluster { margin-top: 13px; justify-content: space-between; }
  .ledger-foot { gap: 10px; }
  .ledger-source { width: 100%; margin-left: 0; text-align: left; }
  .valve { grid-template-columns: 1fr; }
  .caveat { padding: 17px; }
  .wallet-hero { gap: 29px; padding-top: 39px; padding-bottom: 42px; }
  .wallet-hero h1 { font-size: 44px; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid article { padding: 8px 11px; }
  .dashboard-grid article:nth-child(odd) { padding-left: 0; }
  .dashboard-grid article:nth-child(even) { padding-right: 0; border-right: 0; }
  .dashboard-grid article:nth-child(3) { border-right: 1px solid var(--rule); }
  .dashboard-grid article:nth-child(4) { padding-left: 11px; }
  .dashboard-grid article > span { min-height: auto; }
  .section { padding-top: 42px; padding-bottom: 43px; }
  .section-heading { display: block; }
  .section-heading .refresh-cluster { margin-top: 15px; }
  .detail-card { padding: 17px; }
  .detail-card dl div { display: block; }
  .detail-card dd { margin-top: 3px; text-align: left; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-brand .brand-logo { width: 132px; height: 52px; }
}

@media (max-width: 390px) {
  .brand-logo { width: 105px; }
  .nav a { font-size: 11px; }
  .live-chip { display: none; }
  .hero-logo { width: min(306px, 100%); }
  .btn { width: 100%; text-align: center; }
  .pills { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loader { animation-duration: 1.4s; }
  .toast { transition: none; }
}
