/* Design tokens - see docs/design/README.md. Swap only --accent /
   --accent-rgb to re-theme. */
:root {
  --bg: #050908;
  --bg-bar: #070d0c;
  --panel: #0a1211;
  --panel-2: #0c1514;
  --block-bg: #081211;
  --block-bg-hot: #081312;
  --cell-empty: #0f1a18;
  --input-bg: #0b1413;
  --border: #16211f;
  --border-soft: #141f1d;
  --border-row: #101917;
  --border-kv: #111b19;
  --border-input: #1d2b28;
  --border-block: #1b2a27;
  --border-block-hot: #2b6f60;
  --accent: #3ee6b8;
  --accent-rgb: 62, 230, 184;
  --accent-hover: #7ff5d6;
  --accent-2: #7be38b;
  --tag-bg: #12291f;
  --text: #dfe7e4;
  --text-2: #b8c6c2;
  --text-3: #8b9d98;
  --muted: #7d8f8a;
  --muted-2: #6a7c77;
  --muted-3: #5d706b;
  --muted-4: #4d5f5a;
  --border-info: #243330;
  --burn: #e0705a;
  --border-strong: #2b3a36;
  --arrow: #24423b;
  --row-hover: #0d1716;
  --btn-text: #05201a;
  --warn: #e0a63c;
  --bad: #e0563c;
  --sans: "Space Grotesk", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --tile: 148px;
  --arrow-w: 44px;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/SpaceGrotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/SpaceGrotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/fonts/JetBrainsMono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/fonts/JetBrainsMono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@keyframes noidPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes noidScan { 0% { transform: translateY(-100%); } 100% { transform: translateY(400%); } }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
::selection { background: var(--accent); color: var(--bg); }
button { font-family: inherit; }
main { flex: 1; }
.mono { font-family: var(--mono); }

/* ---- header ------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 20; }
/* brand + nav share the topbar row with the search on desktop; on phones
   they become the only pinned element (see the 700px rule) */
.topbar-main { display: contents; }
.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-bar);
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand .mark { width: 22px; height: 22px; border-radius: 50%; display: block; }
.brand em { font-style: normal; color: var(--accent); }
.nav { display: flex; gap: 8px 22px; flex: 0 1 auto; flex-wrap: wrap; font-size: 13px; letter-spacing: .02em; }
.nav a, .nav span {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  white-space: nowrap;
}
.nav a:hover { color: var(--text); }
.nav a.active, .nav span.active { color: var(--text); border-bottom-color: var(--accent); }
.nav span { color: var(--muted-4); cursor: default; }
.search {
  flex: 1 1 320px;
  display: flex;
  gap: 10px;
  min-width: 260px;
  max-width: 620px;
  margin-left: auto;
}
.search input {
  flex: 1;
  min-width: 0;
  background: var(--input-bg);
  border: 1px solid var(--border-input);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12.5px;
  outline: none;
}
.search input:focus { border-color: var(--accent); }
.search input::placeholder { color: var(--muted-3); }
.search button, .btn {
  background: var(--accent);
  color: var(--btn-text);
  border: none;
  border-radius: 8px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.btn { padding: 10px 20px; }
.search button:hover, .btn:hover { background: var(--accent-hover); }
.ghost {
  background: transparent;
  border: 1px solid var(--border-input);
  color: var(--muted);
  border-radius: 7px;
  padding: 6px 14px;
  font-size: 11.5px;
  font-family: var(--mono);
  cursor: pointer;
  white-space: nowrap;
}
.ghost:hover { border-color: var(--accent); color: var(--accent); }

.ticker {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  padding: 10px 28px;
  border-bottom: 1px solid var(--border-kv);
  background: var(--bg-bar);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.ticker b { color: var(--text); font-weight: 400; }
.live { color: var(--accent); display: flex; align-items: center; gap: 7px; }
.live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: noidPulse 1.6s infinite; }
.live.degraded { color: var(--muted); }
.live.degraded .dot { background: var(--muted); animation: none; }
.conn-lost { color: var(--warn); }
.conn-lost:empty { display: none; }
.donate { margin-left: auto; }
.donate a.addr { color: var(--text); }
.donate a.addr:hover { color: var(--accent-hover); }

.site-footer {
  margin-top: auto;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  padding: 12px 28px;
  border-top: 1px solid var(--border-kv);
  background: var(--bg-bar);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-3);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.prose { display: flex; flex-direction: column; gap: 14px; }
.prose h2 { margin: 6px 0 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.prose p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text-2); max-width: 760px; text-wrap: pretty; }
.prose p b { color: var(--text); font-weight: 500; }
.prose .mono { font-size: 12.5px; word-break: break-all; }

/* ---- layout ------------------------------------------------------- */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.page { display: flex; flex-direction: column; gap: 20px; padding: 28px 0 60px; }
.back { font-family: var(--mono); font-size: 12px; color: var(--muted); align-self: flex-start; }
.back:hover { color: var(--accent); }
.loading, .error { padding: 40px 28px; color: var(--muted); font-family: var(--mono); font-size: 12.5px; }
.error { color: var(--bad); }

/* ---- chain -------------------------------------------------------- */
.chain { padding: 20px 0 6px; overflow: hidden; position: relative; }
.chain-head { display: flex; align-items: center; gap: 14px; padding: 0 28px 14px; }
.chain-head h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eta { font-family: var(--mono); font-size: 11.5px; color: var(--muted-4); }
.chain-viewport { position: relative; padding: 0 28px 6px; }
.chain-scroll { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chain-scroll::-webkit-scrollbar { display: none; }
.chain-track { display: flex; align-items: flex-start; will-change: transform; width: max-content; }
.chain-item { display: flex; align-items: center; flex: 0 0 auto; }
.chain-arrow {
  width: var(--arrow-w);
  height: var(--tile);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--arrow);
  font-size: 14px;
}
.chain-fade {
  position: absolute;
  top: 0;
  right: 0;
  width: 130px;
  height: 180px;
  background: linear-gradient(90deg, rgba(5, 9, 8, 0), var(--bg));
  pointer-events: none;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: var(--tile);
  cursor: pointer;
  color: inherit;
}
.tile:hover { color: inherit; }
.tile-label { display: flex; flex-direction: column; gap: 3px; font-family: var(--mono); }
.tile-label .t { font-size: 12.5px; color: var(--text); font-weight: 500; }
.tile.hot .tile-label .t { color: var(--accent); }
.tile-label .s { font-size: 11px; color: var(--muted-3); white-space: nowrap; }
.tile.gap .face { opacity: .5; }

.face {
  position: relative;
  width: var(--tile);
  height: var(--tile);
  border-radius: 12px;
  overflow: hidden;
  background: var(--block-bg);
  border: 1px solid var(--border-block);
  transition: border-color 2.4s ease, box-shadow 2.4s ease;
}
.face.flash {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .2), 0 16px 44px -26px var(--accent);
  transition: none;
}
.face.hot {
  background: var(--block-bg-hot);
  border-color: var(--border-block-hot);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .08), 0 14px 40px -22px rgba(var(--accent-rgb), .7);
}
.face.big { width: 240px; height: 240px; border-radius: 14px; flex: 0 0 auto; }
.cells {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 2px;
  padding: 2px;
}
.face.big .cells { gap: 3px; padding: 3px; }
/* v2 block page: one cell per page of the block's class (8x8, 16x13) */
.face.big .cells.dense { gap: 2px; padding: 3px; }
.cells.dense i { border-radius: 1px; }
.cells i {
  display: block;
  border-radius: 2px;
  background: var(--cell-empty);
  transition: opacity .8s ease, background .8s ease;
}
.cells i.on { background: var(--accent); }
.scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 22px;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0), rgba(var(--accent-rgb), .22), rgba(var(--accent-rgb), 0));
  animation: noidScan 2.6s linear infinite;
  pointer-events: none;
}
.face.big .scan { height: 30px; }
.face-caption { font-family: var(--mono); font-size: 11px; color: var(--muted-3); max-width: 240px; }
/* chain style switch (design 261010 §10): Tiles / Cube */
.chain-mode { margin-left: auto; display: flex; gap: 3px; padding: 3px; border: 1px solid var(--border-input); border-radius: 9px; flex: 0 0 auto; }
.chain-mode button { font-family: var(--sans); font-size: 12px; font-weight: 700; padding: 5px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.chain-mode button.on { background: var(--accent); color: var(--btn-text); }
.chain-mode button:not(.on):hover { color: var(--text); }
/* a block as an isometric 4x4x4 cube: no box, the cube draws its own outline */
.face.cube, .face.cube.hot, .face.cube.flash { background: transparent; border: 0; border-radius: 0; overflow: visible; box-shadow: none; }
.face.cube svg { display: block; width: 100%; height: 100%; overflow: visible; transition: filter 2.4s ease; }
.face.cube .o { fill: none; stroke: rgba(43, 111, 96, .75); stroke-width: 1; transition: stroke 2.4s ease, stroke-width 2.4s ease; }
.face.cube.hot .o { stroke: rgba(var(--accent-rgb), .5); }
.face.cube.hot svg, .face.cube.flash svg { filter: drop-shadow(0 12px 20px rgba(var(--accent-rgb), .22)); }
.face.cube.flash .o { stroke: rgba(var(--accent-rgb), .85); stroke-width: 1.4; transition: none; }
.face.cube.flash svg { transition: none; }
.visual { display: flex; flex-direction: column; gap: 14px; flex: 0 0 auto; }

/* ---- v2 countdown banner (js/v2banner.js) -------------------------- */
@keyframes v2Sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(400%); } }
.v2-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px 22px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: var(--panel);
  border: 1px solid var(--border-block-hot);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
}
.v2-banner::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 25%;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0), rgba(var(--accent-rgb), .07), rgba(var(--accent-rgb), 0));
  animation: v2Sweep 5s linear infinite;
  pointer-events: none;
}
.wrap > .v2-banner { margin-top: 30px; }
.v2-banner + .stats { padding-top: 14px; }
.v2b-tag { font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--btn-text); background: var(--accent); border-radius: 5px; padding: 3px 8px; flex: 0 0 auto; }
.v2b-title { color: var(--text); cursor: help; }
.v2-banner.live .v2b-title { cursor: default; flex: 1 1 320px; }
.v2b-link { margin-left: auto; font-size: 12px; }
@media (max-width: 700px) {
  .v2b-link { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-banner::before { animation: none; }
}

/* ---- receipts tab (js/receipts.js), design handoff 28.09. ---------- */
.rc-intro { padding: 28px; display: flex; flex-direction: column; gap: 24px; overflow: visible; }
.rc-lead { display: flex; flex-direction: column; gap: 10px; max-width: 780px; }
.rc-lead h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.rc-lead h1 em { font-style: normal; color: var(--accent); }
.rc-lead p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.rc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.rc-tile { background: var(--panel-2); border: 1px solid var(--border); border-radius: 11px; padding: 20px; display: flex; flex-direction: column; gap: 9px; }
.rc-tile.hot { border-color: var(--border-block-hot); }
.rc-tile .k { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .08em; }
.rc-tile .k.warm { color: #e0a36a; }
.rc-tile .t { font-size: 15px; font-weight: 700; color: var(--text); }
.rc-tile p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-3); text-wrap: pretty; }
.rc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.rc-step { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
.rc-step .n { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-block-hot); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; }
.rc-step .b { display: flex; flex-direction: column; gap: 4px; }
.rc-step .t { font-size: 13.5px; font-weight: 700; color: var(--text); }
.rc-step .d { font-size: 12.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.rc-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; align-items: stretch; }
.rc-order, .rc-box { padding: 24px; display: flex; flex-direction: column; gap: 18px; overflow: visible; }
.rc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 16px; flex-wrap: wrap; }
.rc-head .l { display: flex; flex-direction: column; gap: 6px; }
.rc-head .l .k, .rc-label { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.rc-head .l .t { font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; white-space: nowrap; }
.rc-head .r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: 0 0 auto; }
.rc-head .r .p { font-family: var(--mono); font-size: 19px; color: var(--accent); }
.rc-head .r .n { font-family: var(--mono); font-size: 11px; color: var(--muted-4); white-space: nowrap; }
.rc-desc { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-3); text-wrap: pretty; }
.rc-desc .t2 { color: var(--text-2); }
.rc-field { display: flex; flex-direction: column; gap: 8px; }
.rc-field .lh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rc-field label { font-size: 12px; color: var(--muted); }
.rc-field .rc-hint { font-family: var(--mono); font-size: 11px; white-space: nowrap; color: var(--muted-4); }
.rc-field .rc-hint.ok { color: var(--accent); }
.rc-field .rc-hint.bad { color: #c98270; }
.rc-field .help { font-size: 12px; line-height: 1.5; color: var(--muted-3); }
.rc-field label .m3 { color: var(--muted-3); }
.rc-field .help b { color: var(--text-2); }
.rc-input { width: 100%; flex: 1 1 auto; min-width: 0; box-sizing: border-box; background: var(--input-bg); border: 1px solid var(--border-input); border-radius: 8px; padding: 0 14px; height: 42px; color: var(--text); font-family: var(--mono); font-size: 12.5px; outline: none; }
.rc-input::placeholder { color: var(--muted-4); }
.rc-input.ok { border-color: var(--border-block-hot); }
.rc-input.bad { border-color: #6b3a30; }
.rc-input:focus { border-color: var(--accent); }
.rc-input.area { height: auto; padding: 10px 14px; resize: vertical; word-break: break-all; line-height: 1.5; scrollbar-color: var(--border-strong) transparent; }
.rc-result { border: 1px solid var(--border-block-hot); background: var(--panel-2); border-radius: 11px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.rc-result.warn { border-color: #3a3322; background: #14120b; }
.rc-result .rk { font-family: var(--mono); font-size: 11.5px; color: #e8cfae; }
.rc-result .rk.ok { color: var(--accent-2); }
.rc-result p { margin: 0; font-size: 12.5px; line-height: 1.5; color: #e8cfae; }
.rc-grid { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 6px 14px; font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.rc-grid.wide { grid-template-columns: 110px minmax(0, 1fr); }
.rc-grid .k { color: var(--muted-3); }
.rc-grid .v1 { color: var(--text); }
.rc-grid span { min-width: 0; overflow-wrap: anywhere; }
.rc-quote { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--border-soft); font-family: var(--mono); font-size: 13px; color: var(--accent); }
.rc-quote span { color: var(--muted-3); font-size: 11.5px; }
.rc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border-soft); flex-wrap: wrap; }
.rc-foot > span { font-size: 12px; color: var(--muted-3); }
.rc-btn { background: var(--accent); color: var(--btn-text); border: none; border-radius: 8px; padding: 0 22px; height: 42px; font-family: var(--sans); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .15s ease; }
.rc-btn:hover { background: var(--accent-hover); }
.rc-btn:disabled { background: #12201d; color: var(--muted-4); cursor: not-allowed; }
a.rc-btn { display: inline-flex; align-items: center; align-self: flex-start; text-decoration: none; }
.rc-verify { border-color: var(--border-block-hot); }
.rc-v-trust { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--border-info); background: var(--panel-2); border-radius: 9px; }
.rc-v-trust .i { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; margin-top: 1px; }
.rc-v-trust > span:last-child { font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.rc-v-trust b { color: var(--text); }
.rc-v-about { display: flex; flex-direction: column; gap: 6px; }
.rc-v-about .k { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.rc-v-about p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--text-3); text-wrap: pretty; }
.rc-v-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rc-v-actions label.rc-copy { cursor: pointer; }
.rc-consent { flex: 1 1 100%; display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.rc-consent[hidden] { display: none; }
.rc-consent input { flex: 0 0 auto; width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.rc-warnbox { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #3a3322; background: #14120b; border-radius: 9px; }
.rc-warnbox .i { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; border: 1px solid #e0a36a; color: #e0a36a; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; }
.rc-warnbox > span:last-child { font-size: 12.5px; line-height: 1.45; color: #e8cfae; }
.rc-addrs { display: flex; flex-direction: column; gap: 8px; }
#rc-rows { display: flex; flex-direction: column; gap: 8px; }
.rc-row { display: flex; align-items: center; gap: 10px; }
.rc-row .nr { flex: 0 0 auto; width: 22px; font-family: var(--mono); font-size: 11.5px; color: var(--muted-4); }
.rc-row .pr { font-family: var(--mono); font-size: 11.5px; color: #37524b; width: 48px; text-align: right; flex: 0 0 auto; }
.rc-row .pr.on { color: var(--text-2); }
.rc-row .pr.free { color: var(--accent-2); }
.rc-row .rm { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: var(--muted-4); cursor: pointer; font-size: 15px; background: transparent; border: 0; }
.rc-row .rm:hover { color: #c98270; background: #141d1b; }
.rc-add { display: flex; gap: 10px; padding-left: 32px; }
#rc-h-rows { display: flex; flex-direction: column; gap: 8px; }
.rc-row .rc-input.ix { flex: 0 0 64px; width: 64px; padding: 0 10px; text-align: center; }
.rc-upload { margin-top: 4px; }
.rc-fname { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); overflow-wrap: anywhere; }
.rc-toolarge a { color: var(--accent); }
.rc-add button { font-family: var(--mono); font-size: 12px; color: var(--accent); cursor: pointer; padding: 6px 0; background: none; border: 0; }
.rc-table { border: 1px solid var(--border-block-hot); background: var(--panel-2); border-radius: 11px; overflow: hidden; }
.rc-table .rw { display: grid; grid-template-columns: 1.6fr 0.7fr 0.7fr 0.7fr; gap: 12px; padding: 9px 14px; font-family: var(--mono); font-size: 12px; color: var(--text-2); border-bottom: 1px solid var(--border-kv); }
.rc-table.three .rw { grid-template-columns: 1.6fr 0.7fr 0.7fr; }
.rc-table.five .rw { grid-template-columns: 1.6fr 0.6fr 0.7fr 0.7fr 0.6fr; }
.rc-table.five .rw > span:nth-child(4) { text-align: left; color: inherit; }
.rc-table.five .rw > span:nth-child(5) { text-align: right; }
.rc-table.five .rw.th > span:nth-child(4) { color: var(--muted-3); }
.rc-table .rw:last-child { border-bottom: 0; }
.rc-table .rw > span { min-width: 0; overflow-wrap: anywhere; }
.rc-table .rw > span:nth-child(4) { text-align: right; color: var(--text); }
.rc-table .rw .pc.free { color: var(--accent-2); }
.rc-table .rw.th { font-family: var(--sans); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted-3); border-bottom-color: var(--border-soft); padding: 10px 14px; }
.rc-table .rw.th > span:nth-child(4) { color: var(--muted-3); }
.rc-note, .rc-small { font-size: 12px; line-height: 1.5; color: var(--muted-3); }
.rc-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rc-tier { background: var(--panel-2); border: 1px solid var(--border); border-radius: 11px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.rc-tier.hi { border-color: var(--border-block-hot); }
.rc-tier .v { font-family: var(--mono); font-size: 19px; color: var(--text); }
.rc-tier .k { font-size: 12.5px; color: var(--text-2); }
.rc-tier .u { font-family: var(--mono); font-size: 11px; color: var(--muted-4); }
.rc-kv { display: flex; flex-direction: column; }
.rc-kv > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--border-kv); }
.rc-kv > div:last-child { border-bottom: 0; }
.rc-kv .k { font-size: 12.5px; color: var(--muted-2); }
.rc-kv .v { font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.rc-kv .v .mono { font-family: var(--mono); }
.rc-kv .pos { color: var(--accent-2); }
.rc-kv .m3 { color: var(--muted-3); }
.rc-kv .warn { color: var(--warn); }
.rc-files { display: flex; flex-direction: column; gap: 10px; }
.rc-file { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 11px; }
.rc-file .ico { flex: 0 0 auto; width: 34px; height: 40px; border-radius: 5px; border: 1px solid var(--border-block-hot); background: var(--block-bg); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 5px; box-sizing: border-box; font-family: var(--mono); font-size: 8.5px; color: var(--accent); }
.rc-file .b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rc-file .f { font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.rc-file .d { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.rc-box:has(.rc-faq) { gap: 16px; }
.rc-faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 10px; align-items: start; }
.rc-q { border: 1px solid var(--border-soft); border-radius: 11px; transition: background .15s ease; }
.rc-q.open { background: var(--panel-2); border-color: var(--border-input); }
.rc-q .qh { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; width: 100%; background: none; border: 0; text-align: left; font-family: var(--sans); }
.rc-q .qh > span:first-child { font-size: 14px; font-weight: 500; color: var(--text); }
.rc-q .sign { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border-info); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; color: var(--accent); }
.rc-q p { display: none; margin: 0; padding: 0 16px 16px; font-size: 13px; line-height: 1.65; color: var(--text-3); text-wrap: pretty; }
.rc-q.open p { display: block; }
.rc-pips { display: flex; gap: 6px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; }
.rc-pips span { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border-input); color: var(--muted-3); }
.rc-pips span.on { border-color: var(--border-block-hot); color: var(--accent); background: #0e1a18; }
.rc-pips span.now { border-color: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), .2); }
.rc-status { font-size: 13px; line-height: 1.55; color: var(--text-2); border-left: 2px solid var(--accent); padding-left: 12px; }
.rc-status.warn { border-left-color: var(--warn); color: #e8cfae; }
.rc-invoice { display: flex; flex-direction: column; border: 1px solid var(--border-strong); border-radius: 11px; overflow: hidden; }
.rc-invoice .row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border-kv); }
.rc-invoice .row:last-child { border-bottom: 0; }
.rc-invoice .k { font-size: 12.5px; color: var(--muted-2); }
.rc-invoice .v { font-family: var(--mono); font-size: 13px; color: var(--text); min-width: 0; word-break: break-all; }
.rc-invoice .v.big { font-size: 20px; color: var(--accent); }
.rc-invoice .v.t2 { color: var(--text-2); }
.rc-copy { font-family: var(--mono); font-size: 11.5px; padding: 6px 10px; border-radius: 7px; border: 1px solid var(--border-input); background: transparent; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.rc-copy:hover { border-color: var(--accent); color: var(--accent); }
.rc-download { display: flex; flex-direction: column; gap: 12px; }
.rc-btn.ghost { align-self: flex-start; background: transparent; color: var(--accent); border: 1px solid var(--border-block-hot); }
.rc-btn.ghost:hover { background: var(--panel-2); }
@media (max-width: 700px) {
  .rc-intro, .rc-order, .rc-box { padding: 18px; }
  .rc-lead h1 { font-size: 24px; }
  .rc-invoice .row { grid-template-columns: 1fr; gap: 6px; }
  .rc-invoice .row > span:empty { display: none; }
  .rc-kv > div { grid-template-columns: 1fr; gap: 4px; }
  .rc-tiers { grid-template-columns: 1fr 1fr; }
  .rc-tier { padding: 14px; }
}

/* ---- stat cards --------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 1fr;
  gap: 14px;
  padding-top: 30px;
}
.stat {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 18px 34px;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.stat .v {
  font-family: var(--mono);
  font-size: 19px;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: -14px; /* long values may run into the right padding */
}
.stat .v.pos { color: var(--accent); }
/* "≈ $49.38" after NOID amounts (today's price) */
.usd { font-family: var(--mono); color: var(--muted-2); white-space: nowrap; }
.kv .v .usd, .io-row .usd { margin-left: 10px; }
/* balance history on the address page (design 261007 §9) */
.bh-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.bh-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bh-title h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.bh-sub { font-family: var(--mono); font-size: 11.5px; color: #4d5f5a; }
.bh-ctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bh-chips { display: flex; gap: 6px; }
.bh-chip { display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 8px; cursor: pointer; font-family: var(--mono); font-size: 11.5px; border: 1px solid var(--border); background: transparent; color: #4d5f5a; opacity: .6; user-select: none; }
.bh-chip.on { border-color: #24423b; background: #0f1a18; color: var(--text); opacity: 1; }
.bh-chip i { width: 14px; height: 8px; border-radius: 2px; display: inline-block; }
.bh .v2t-seg[hidden] { display: none; }
.bh-full { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; cursor: pointer; font-family: var(--mono); font-size: 11.5px; border: 1px solid var(--border); background: transparent; color: #7f938e; }
.bh-full[hidden] { display: none; }
.bh-full i { position: relative; width: 20px; height: 11px; border-radius: 6px; background: var(--border); display: inline-block; transition: background .15s; }
.bh-full i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 7px; height: 7px; border-radius: 50%; background: #4d5f5a; transition: left .15s, background .15s; }
.bh-full.on { border-color: #24423b; background: #0f1a18; color: var(--text); }
.bh-full.on i { background: #24423b; }
.bh-full.on i::after { left: 11px; background: var(--accent); }
.bh .v2t-ytitle { color: var(--accent); }
.bh .v2t-ytitle2, .bh .v2t-ay2 { color: #8b9d98; }
.bh .v2t-plot { height: 260px; }
.bh .v2t-svg { height: 100%; } /* the hover dots are placed in % of the plot box */
/* navigator under the balance chart: lined up with the plot (viewBox x 70..920 of 1000) */
.bh-nav { position: relative; height: 40px; margin: 2px 8% 6px 7%; border: 1px solid var(--border); border-radius: 6px; background: #0a1210; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.bh-nav svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: 6px; }
.bh-nav-area { fill: var(--accent); fill-opacity: 0.12; }
.bh-nav-line { fill: none; stroke: var(--accent); stroke-opacity: 0.55; stroke-width: 1; }
.bh-nav-shade { position: absolute; top: 0; bottom: 0; background: rgba(4, 8, 7, 0.62); pointer-events: none; }
.bh-nav-shade.l { left: 0; border-radius: 6px 0 0 6px; }
.bh-nav-shade.r { right: 0; border-radius: 0 6px 6px 0; }
.bh-nav-win { position: absolute; top: -1px; bottom: -1px; border: 1px solid #2f5a51; border-radius: 4px; background: rgba(62, 230, 184, 0.05); cursor: grab; }
.bh-nav.dragging, .bh-nav.dragging .bh-nav-win { cursor: grabbing; }
.bh-nav-h { position: absolute; top: 50%; width: 10px; height: 24px; margin: 0; padding: 0; transform: translate(-50%, -50%); border: 1px solid #3c6b60; border-radius: 3px; background: #15231f; cursor: ew-resize; z-index: 2; }
.bh-nav-h::before { content: ""; position: absolute; left: 2px; right: 2px; top: 7px; bottom: 7px; border-left: 1px solid #6f9f93; border-right: 1px solid #6f9f93; }
.bh-nav-h::after { content: ""; position: absolute; left: -10px; right: -10px; top: -10px; bottom: -10px; } /* a finger-sized grip */
.bh-nav-h:hover, .bh-nav-h:focus-visible { border-color: var(--accent); outline: none; }
.bh-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 8px 6px 4px; font-family: var(--mono); font-size: 11px; color: #5d706b; }
/* a short extra line in a card's bottom strip, left of the info dot */
.stat .corner { position: absolute; left: 16px; right: 40px; bottom: 13px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* market cap: the basis under the label, the price in the free strip left
   of the info dot */
.stat .mc-sub { font-family: var(--sans); font-size: 10.5px; color: var(--muted-3); line-height: 1.3; margin: -2px -14px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .mc-price { position: absolute; left: 18px; right: 40px; bottom: 13px; font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* price feed down: last price dimmed, red notice, the card's row grows */
.stats.price-stale { grid-auto-rows: auto; }
.stat-mcap.stale .v, .stat-mcap.stale .mc-price { color: var(--muted-3); }
.stat-mcap.stale .mc-price { position: static; }
.stat-mcap .mc-warn { font-family: var(--sans); font-size: 11px; line-height: 1.4; color: var(--bad); padding-right: 12px; }
.stat .k {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  line-height: 1.35;
  padding-right: 26px; /* keeps the label clear of the info dot */
}
.stats.inner { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; padding-top: 0; }
.stats.inner.three { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stats.inner .stat { background: var(--panel-2); border-radius: 11px; padding: 16px; min-height: 0; gap: 6px; }
.stats.inner .stat:has(.info) { padding-bottom: 32px; }
.stats.inner .stat .v { font-size: 17px; }
.stats.inner.three .stat .v { font-size: 18px; }
.stats.inner .stat .k { font-size: 10px; letter-spacing: .13em; }
.stat .info {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--border-info);
  color: var(--muted-3);
  font-family: var(--mono);
  font-size: 10.5px;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  user-select: none;
  transition: border-color .15s ease, color .15s ease;
}
.stat .info:hover { border-color: var(--accent); color: var(--accent); }

.stats.inner.six { grid-template-columns: repeat(6, 1fr); }
.stats.inner.auto { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stats.inner.auto.dense { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }
.stats.inner .stat .sub { font-family: var(--mono); font-size: 11px; color: var(--muted-4); }
.stats.inner .stat.hot { border-color: var(--border-block-hot); }
.stat .v.burn { color: var(--burn); }

/* ---- halving page ------------------------------------------------- */
.scale-tabs { margin-left: auto; display: flex; gap: 8px; flex: 0 0 auto; }
.scale-tab {
  background: transparent;
  border: 1px solid var(--border-input);
  color: var(--muted);
  border-radius: 7px;
  padding: 5px 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  white-space: nowrap;
  cursor: pointer;
}
.scale-tab.active, .scale-tab:hover { border-color: var(--accent); color: var(--accent); }
.scale-tab.active { background: #0e1a18; }
.progress { height: 10px; border-radius: 5px; background: var(--cell-empty); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 5px; transition: width 1.2s ease; }
.progress-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-3);
}
.progress-labels span { white-space: nowrap; }
.chart-legend {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 6px 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-3);
}
.legend-items { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.legend-items > span { display: flex; align-items: center; gap: 7px; }
.sw { width: 16px; height: 2px; display: inline-block; }
.sw.solid { background: var(--accent); }
.sw.dashed { background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 10px); }
.dim2 { font-size: 11.5px; color: var(--muted-4); }
.burn { color: var(--burn); }
.ticker a.plain { color: inherit; border-bottom: 1px dotted var(--border-input); }
.ticker a.plain:hover { color: var(--accent); }
.minburn-note { margin: 0; padding: 14px 16px 16px; font-size: 12.5px; line-height: 1.6; color: var(--text-3); text-wrap: pretty; }
.table-box { border: 1px solid var(--border); border-radius: 11px; overflow: hidden; }
.kv.wide > div { grid-template-columns: 200px 1fr; }
.kv .v.hi { color: var(--accent); }
.sw.burn { background: var(--burn); }
.sw.dashed.burn { background: repeating-linear-gradient(90deg, var(--burn) 0 5px, transparent 5px 10px); }
.legend-items > span.burn.dim { color: var(--muted-3); }
.legend-items > span.burn { color: var(--burn); }
h2.title.sub { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.stack.explain { gap: 22px; }
.prose-sections { display: flex; flex-direction: column; gap: 22px; }
.prose-sections section { display: flex; flex-direction: column; gap: 8px; max-width: 820px; }
.prose-sections h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.prose-sections p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--text-3); text-wrap: pretty; }
.split-bar { display: flex; gap: 2px; height: 10px; border-radius: 5px; background: var(--cell-empty); overflow: hidden; }
.split-bar i { display: block; height: 100%; }
.split-bar i.claim { background: var(--accent); }
.split-bar i.burn { background: var(--burn); }
.parts { display: flex; flex-direction: column; gap: 2px; }
.parts > div {
  display: grid;
  grid-template-columns: 170px 1fr 130px;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-kv);
  align-items: baseline;
}
.parts .k { font-size: 12.5px; color: var(--muted-2); }
.parts .v { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); }
.parts .n { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); text-align: right; white-space: nowrap; }
.parts .n.burn { color: var(--burn); }
.parts .n.t3 { color: var(--muted-2); }

/* ---- cards -------------------------------------------------------- */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.card.pad { padding: 24px; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-soft);
}
.card-head h2 {
  margin: 0;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.card-head a, .card-head .ghost { font-size: 12px; font-family: var(--mono); }
.card-title { padding: 24px 22px 18px; border-bottom: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 9px; }
h1.title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
h1.title.block { font-size: 26px; }
h1.title em { font-style: normal; color: var(--accent); }
.title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.title-row.base { align-items: baseline; }
.note { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 720px; text-wrap: pretty; }
.note.warn { color: var(--warn); }
.note.info { color: var(--text-2); border-left: 2px solid var(--accent); padding-left: 12px; }
.note.info b { color: var(--text); font-weight: 500; }
.label { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.addr-full { font-family: var(--mono); font-size: 15px; color: var(--text); word-break: break-all; }
.split { display: flex; gap: 34px; flex-wrap: wrap; align-items: flex-start; }
.split > .grow { flex: 1 1 420px; min-width: 300px; display: flex; flex-direction: column; gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack.wide { gap: 20px; }
.stack.tight { gap: 8px; }

/* ---- key/value ---------------------------------------------------- */
.kv { display: flex; flex-direction: column; }
.kv > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-kv);
}
.kv .k { font-size: 12.5px; color: var(--muted-2); }
.kv .v { font-family: var(--mono); font-size: 12.5px; color: var(--text); word-break: break-all; min-width: 0; }
.kv .v.t2 { color: var(--text-2); }
.kv .v.t3 { color: var(--text-3); }
.kv .v.pos { color: var(--accent-2); }

/* ---- tables (grid rows) ------------------------------------------- */
.tbl-scroll { overflow-x: auto; }
.thead, .trow {
  display: grid;
  gap: 12px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--border-row);
  align-items: center;
}
.thead {
  padding: 12px 22px;
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted-3);
  border-bottom-color: var(--border-soft);
}
.trow { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.trow:hover { background: var(--row-hover); }
.thead > span, .trow > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .with-tag { display: flex; align-items: center; gap: 8px; }
.trow .empty { grid-column: 1 / -1; color: var(--muted); white-space: normal; }
/* Time columns are sized for the absolute format ("2026-09-18 00:23:05 UTC"). */
/* the time columns never narrower than a full clock time ("2026-10-05 10:37:45") */
.cols-blocks { grid-template-columns: .9fr minmax(162px, 1.5fr) minmax(162px, 1.5fr) 1.45fr .5fr 1.1fr 1fr; }
/* below this the table scrolls sideways instead of cutting figures off */
.thead.cols-blocks, .trow.cols-blocks { min-width: 900px; }
.cols-btx { grid-template-columns: 1.6fr 1.6fr .7fr 1.6fr 1.1fr 1fr; }
.cols-atx { grid-template-columns: 1.35fr 1.5fr .8fr 1.35fr .6fr 1.1fr .8fr; }
.cols-orphan { grid-template-columns: .8fr 1fr 2fr .5fr 1.4fr; }
.cols-rich { grid-template-columns: .3fr 1.7fr 1.3fr 1.5fr .6fr .8fr; }
/* name filter (only where the local label file exists) */
.rich-name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.rich-name input { flex: 1 1 240px; max-width: 380px; min-width: 0; box-sizing: border-box; background: var(--input-bg); border: 1px solid var(--border-input); border-radius: 7px; padding: 7px 10px; color: var(--text); font-family: var(--mono); font-size: 12px; outline: none; }
.rich-name input:focus { border-color: var(--accent); }
.rich-name input::placeholder { color: var(--muted-3); }
.rich-name .sum { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
/* known-address labels (js/labels.js) */
.who {
  cursor: help;
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .04em;
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid var(--border-input);
  color: var(--text-2);
  background: var(--panel-2);
  white-space: nowrap;
}
.who.fund { color: var(--accent-2); border-color: #1e3a2c; }
.who.devfee { color: var(--warn); border-color: #3a2f1e; }
.who.exchange { color: var(--accent); border-color: var(--border-block-hot); }
.label .who { margin-left: 10px; vertical-align: middle; letter-spacing: .04em; text-transform: none; }
.cols-utxo { grid-template-columns: 1fr 1.2fr 1.6fr; }
.dim { color: var(--muted); }
.pos { color: var(--accent-2); }
.hi { color: var(--accent); }
.t3 { color: var(--text-3); }
.rank { color: var(--muted-3); }
/* Zero-padded sub-units plus right alignment keep "m"/"s"/"ago" in the
   same column on every row - see format.js timeAgo. */
.time-col { text-align: left; padding-right: 10px; font-variant-numeric: tabular-nums; }
/* the Time title is a switch: a green ⇄ after it, unlike the dotted tooltip titles */
.time-toggle { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; user-select: none; }
.time-toggle::after { content: "⇄"; color: var(--accent); font-size: 12px; letter-spacing: 0; }
.time-toggle:hover { color: var(--accent); }
.tag {
  font-family: var(--sans);
  font-size: 10px;
  background: var(--tag-bg);
  color: var(--accent-2);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}
.tag.warn { background: #2a2113; color: var(--warn); }
.tag.bad { background: #2a1513; color: var(--bad); }
.status {
  font-family: var(--sans);
  font-size: 10.5px;
  background: var(--tag-bg);
  color: var(--accent-2);
  border-radius: 5px;
  padding: 4px 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.status.bad { background: #2a1513; color: var(--bad); }
.status.pending { background: #2a2113; color: var(--warn); }
.hint { border-bottom: 1px dotted var(--muted-3); cursor: help; }
.tip {
  position: fixed;
  z-index: 100;
  max-width: 340px;
  padding: 8px 11px;
  background: var(--panel-2);
  border: 1px solid var(--border-input);
  border-radius: 7px;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .8);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-2);
  white-space: pre-line;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.tip.show { opacity: 1; visibility: visible; }
.tip.lines { white-space: pre-wrap; max-width: calc(100vw - 16px); }
.bar { display: inline-block; height: 4px; border-radius: 2px; background: var(--accent); opacity: .55; flex: 0 0 auto; }
.bal { display: flex; align-items: center; gap: 10px; }
.bal > span:first-child { min-width: 22ch; }
.pager {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.pager-nav { display: flex; gap: 14px; align-items: center; }
.pager-size { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.menu { position: relative; display: inline-block; }
.menu-btn {
  background: var(--input-bg);
  border: 1px solid var(--border-input);
  border-radius: 7px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  padding: 4px 8px;
  cursor: pointer;
}
.menu-btn:hover, .menu.open .menu-btn { border-color: var(--accent); }
.menu-btn .caret { color: var(--muted); font-size: 10px; }
.menu-list {
  display: none;
  position: fixed;
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-input) var(--panel-2);
  background: var(--panel-2);
  border: 1px solid var(--border-input);
  border-radius: 7px;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .8);
  z-index: 30;
}
.menu.open .menu-list { display: block; }
.menu-list button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 5px 12px;
  background: none;
  border: 0;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.menu-list button:hover, .menu-list button.current { background: var(--row-hover); color: var(--accent); }

/* ---- inputs / outputs --------------------------------------------- */
.io { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.io .card-head { padding: 16px 20px; }
.io .card-head h2 { font-size: 11.5px; }
.io-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  border-bottom: 1px solid var(--border-row);
  color: var(--text-2);
}
.io-row > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.io-row > span:last-child { flex: 0 0 auto; }
.hash-list { padding: 6px 0; }
.hash-list .io-row { justify-content: flex-start; word-break: break-all; }
.hash-list .io-row > span:first-child { white-space: normal; }

/* ---- responsive --------------------------------------------------- */
@media (max-width: 1100px) {
  .stats, .stats.inner.six { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .stats, .stats.inner.six { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .topbar, .ticker, .wrap, .chain-head, .chain-viewport { padding-left: 16px; padding-right: 16px; }
  .topbar { gap: 14px; }
  .thead, .trow { min-width: 760px; }
  .cols-rich, .cols-utxo { min-width: 560px; }
  .kv > div { grid-template-columns: 1fr; gap: 4px; }
  .card.pad { padding: 18px; }
}
@media (max-width: 700px), (max-height: 520px) {
  /* phones, portrait or landscape (short viewport): pin only brand + nav;
     search and the status line scroll away. The wrappers dissolve so the
     pinned element's containing block is the body - a sticky element
     stops at its parent's edge. */
  .site-header, .topbar { display: contents; }
  .topbar-main {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    padding: 14px 16px;
    background: var(--bg-bar);
    border-bottom: 1px solid var(--border);
  }
  /* the form now sits directly in the body's column flex: no growing */
  .search { flex: 0 0 auto; margin: 0; max-width: none; min-width: 0; gap: 8px; padding: 8px 16px; background: var(--bg-bar); border-bottom: 1px solid var(--border); }
  .search input { padding: 7px 10px; font-size: 12px; border-radius: 7px; }
  .search button { padding: 0 12px; font-size: 12px; border-radius: 7px; }
}
@media (max-width: 700px) {
  /* long progress captions wrap instead of running off the card */
  .progress-labels { flex-wrap: wrap; }
  .progress-labels span { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .scan, .live .dot { animation: none; }
  .face { transition: none; }
}
#rc-o-status { display: flex; flex-direction: column; gap: 12px; }
#rc-o-status:empty, #rc-o-invoice:empty, #rc-o-payments:empty, #rc-o-download:empty { display: none; }

/* receipt link on the transaction page: only where receipts can be ordered */
.rc-get { display: none; margin-top: 4px; font-size: 13px; }
[data-receipts="1"] .rc-get { display: block; }

/* contracts tab */
.ct-contract { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--border-block-hot); background: var(--panel-2); border-radius: 11px; padding: 16px; }
.ct-contract .rc-head .t a { font-family: var(--mono); font-size: 13px; }
.ct-lead { color: var(--text-2); }
.ct-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.55; color: var(--text-3); }
.ct-program summary { cursor: pointer; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ct-program pre { margin: 8px 0 0; padding: 10px 12px; border: 1px solid var(--border-input); border-radius: 8px; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--text-2); overflow-x: auto; }
.ct-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ct-form .ct-wide { grid-column: span 2; }
.ct-form select.rc-input { font-family: var(--sans); }
.ct-branches .rw { grid-template-columns: 1.3fr 0.6fr 0.6fr 1.8fr; }
.ct-branches .rw > span:nth-child(4) { text-align: left; color: var(--text-2); }
.ct-branches .ok { color: var(--accent-2); }
.ct-branches .no { color: #c98270; }
@media (max-width: 720px) {
  .ct-form { grid-template-columns: 1fr; }
  .ct-form .ct-wide { grid-column: auto; }
}
.ct-help { margin-left: 8px; font-size: 11.5px; letter-spacing: 0; text-transform: none; color: var(--muted-3); }
.rc-faq-jump { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: 6px; vertical-align: middle; border-radius: 50%; border: 1px solid var(--border-info); background: transparent; color: var(--accent); font-family: var(--mono); font-size: 12px; font-weight: 400; cursor: pointer; }
.rc-faq-jump:hover { background: var(--panel-2); }
#ct-faq, #rc-faq { scroll-margin-top: 16px; }

