/* Retro Boomer "Tape Explorer" design: tokens, shell and components.
   Loaded after style.css (the shared kit of the remaining legacy markup).
   The accent (orange / gray) and the mode (dark / light) are attributes on
   <html> (js/theme-boot.js, js/theme.js); every colour is a variable below.
   Fonts are served from /fonts (SIL OFL, licence texts next to them). */

@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/Anton-latin.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap; src: url("/fonts/Archivo-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/IBMPlexMono-400-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/IBMPlexMono-500-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/IBMPlexMono-600-latin.woff2") format("woff2"); }
@font-face { font-family: "VT323"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/VT323-latin.woff2") format("woff2"); }

/* ---- colour tables (from the design's applyTheme) ------------------------- */
html[data-theme="orange"][data-mode="dark"]{--acc:#ff6b1a;--accT:#ff6b1a;--accH:#ff8a45;--accL:#ff9152;--lcd:#ffb347;--lcdDim:#b0844a;--lcdBg:#120a03;--lcdBd:#3a2a14;--flash:#1d1209;--cur:#1a1009;--ink:#f1e9d8;--ink2:#c9c0b0;--mut:#9b9284;--mut2:#5f584e;--line2:#3a3833;--line:#262522;--line3:#1d1c19;--line4:#1a1917;--line5:#151412;--hov:#12110f;--card:#0d0c0b;--card2:#0b0a09;--inp:#0c0c0b;--trk:#14130f;--dash:#2f2d29;--off:#3f3c36;--g1:#1c1814;--g2:#17130f;--g3:#1a1510;--g4:#080706;--g5:#0a0908;--seg:#8a7f70;--st1:#1c1814;--st2:#050505;--bg:#050505;--glow:rgba(255,150,40,.55)}
html[data-theme="gray"][data-mode="dark"]{--acc:#a8a8a8;--accT:#a8a8a8;--accH:#c0c0c0;--accL:#c8c8c8;--lcd:#ececec;--lcdDim:#8a8a8a;--lcdBg:#121212;--lcdBd:#343434;--flash:#1c1c1c;--cur:#191919;--ink:#f4f4f4;--ink2:#cccccc;--mut:#7f7f7f;--mut2:#575757;--line2:#3a3a3a;--line:#292929;--line3:#1f1f1f;--line4:#1c1c1c;--line5:#171717;--hov:#151515;--card:#111111;--card2:#101010;--inp:#0f0f0f;--trk:#161616;--dash:#313131;--off:#3e3e3e;--g1:#1d1d1d;--g2:#181818;--g3:#1b1b1b;--g4:#0a0a0a;--g5:#0d0d0d;--seg:#7a7a7a;--st1:#1d1d1d;--st2:#0b0b0b;--bg:#0b0b0b;--glow:rgba(255,255,255,.35)}
html[data-theme="orange"][data-mode="light"]{--acc:#e35d10;--accT:#e35d10;--accH:#f0701f;--accL:#c94f0a;--lcd:#ffb347;--lcdDim:#b0844a;--lcdBg:#1a1108;--lcdBd:#3a2a14;--flash:#fde4d3;--cur:#fbeadf;--ink:#1b1713;--ink2:#3e3832;--mut:#6c645a;--mut2:#958c80;--line2:#cdc6ba;--line:#ddd7cc;--line3:#e5dfd5;--line4:#e8e2d8;--line5:#ede8df;--hov:#efe9df;--card:#f8f4ed;--card2:#faf7f2;--inp:#ffffff;--trk:#e7e1d7;--dash:#cdc6ba;--off:#c6bfb3;--g1:#e4ddd1;--g2:#ebe5db;--g3:#e9e2d7;--g4:#f2ede5;--g5:#efe9e0;--seg:#b2a898;--st1:#4a423a;--st2:#221e1a;--bg:#f4efe7;--glow:rgba(255,150,40,.55)}
html[data-theme="gray"][data-mode="light"]{--acc:#5c5c5c;--accT:#5c5c5c;--accH:#474747;--accL:#3d3d3d;--lcd:#ececec;--lcdDim:#8a8a8a;--lcdBg:#1a1a1a;--lcdBd:#343434;--flash:#e0e0e0;--cur:#e7e7e7;--ink:#161616;--ink2:#3a3a3a;--mut:#676767;--mut2:#959595;--line2:#c9c9c9;--line:#d9d9d9;--line3:#e2e2e2;--line4:#e4e4e4;--line5:#eaeaea;--hov:#ececec;--card:#f7f7f7;--card2:#f9f9f9;--inp:#ffffff;--trk:#e4e4e4;--dash:#c9c9c9;--off:#c2c2c2;--g1:#dedede;--g2:#e6e6e6;--g3:#e3e3e3;--g4:#efefef;--g5:#ebebeb;--seg:#adadad;--st1:#4a4a4a;--st2:#232323;--bg:#eeeeee;--glow:rgba(255,255,255,.35)}

/* the display of the tape decks (canvas) follows the accent only: the stage
   behind it stays dark in the light mode too */
html[data-theme="orange"] { --dk-slot: rgba(255,107,26,.25); --dk-hl: rgba(255,107,26,.16); --dk-acc: #ff6b1a; --dk-lcdBg: #160c03; --dk-lcdBd: #3a2a14; --dk-lcd: #ffb347; --dk-lcd2: #d9923e; --dk-glow: rgba(255,160,50,.85); --acc-rgb: 255,107,26; }
html[data-theme="gray"] { --dk-slot: rgba(210,210,210,.22); --dk-hl: rgba(255,255,255,.12); --dk-acc: #d6d6d6; --dk-lcdBg: #101010; --dk-lcdBd: #343434; --dk-lcd: #ececec; --dk-lcd2: #bdbdbd; --dk-glow: rgba(255,255,255,.55); --acc-rgb: 214,214,214; }
/* tape colours (fixed; the text colour of a tag changes with the mode so it can be read) */
html { --t-cb: #ff6b1a; --t-pay: #ebe5d8; --t-con: #8b5cf6; --tx-cb: #ff6b1a; --tx-pay: #ebe5d8; --tx-con: #b69cff; --live: #ff3b2f; }
html[data-mode="light"] { --tx-cb: #d9520b; --tx-pay: #5a544b; --tx-con: #6c40d8; }
html[data-theme="gray"][data-mode="light"] { --tx-cb: #b8480a; }

/* ---- the legacy kit follows the design's colours --------------------------- */
/* :root, like style.css, so the later file wins */
:root {
  --bg-bar: var(--bg); --panel: var(--card2); --panel-2: var(--card); --block-bg: var(--card2); --block-bg-hot: var(--hov);
  --cell-empty: var(--trk); --input-bg: var(--inp);
  --border: var(--line); --border-soft: var(--line3); --border-row: var(--line5); --border-kv: var(--line4);
  --border-input: var(--line2); --border-block: var(--line); --border-block-hot: var(--acc); --border-info: var(--line2);
  --border-strong: var(--line2); --accent: var(--accT); --accent-rgb: var(--acc-rgb, 255,107,26); --accent-hover: var(--accL); --accent-2: var(--ink2);
  --tag-bg: var(--g1); --text: var(--ink); --text-2: var(--ink2); --text-3: var(--mut); --muted: var(--mut); --muted-2: var(--mut);
  --muted-3: var(--mut2); --muted-4: var(--mut2); --burn: var(--mut); --arrow: var(--mut2); --row-hover: var(--hov);
  --btn-text: var(--bg); --warn: var(--accT); --bad: var(--live);
  --sans: "Archivo", Helvetica, Arial, sans-serif; --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

/* ---- base ----------------------------------------------------------------- */
html, body { margin: 0; padding: 0; background: var(--bg); }
body { font-family: var(--sans); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; border-radius: 0; text-shadow: none; }
a { color: var(--accT); text-decoration: none; }
a:hover { color: var(--accL); text-decoration: none; }
::selection { background: var(--acc); color: var(--bg); }
@keyframes tbBlink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes tbIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes tbGlow { from { background-color: var(--flash); } to { background-color: transparent; } }
* { scrollbar-width: thin; scrollbar-color: var(--line2) var(--bg); }
::-webkit-scrollbar { height: 8px; width: 8px; background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line2); }
:focus-visible { outline: 1px solid var(--acc); outline-offset: 2px; }
.dim { color: var(--mut2); }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }

/* ---- header ---------------------------------------------------------------- */
.tp-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 30px; padding: 14px 28px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 30; }
.tp-top { display: contents; }
.tp-brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; color: var(--ink); }
.tp-brand:hover { color: var(--ink); }
.tp-brand img { width: 40px; height: 40px; object-fit: contain; display: block; }
.tp-brand-txt { display: flex; flex-direction: column; line-height: 1; }
.tp-brand .t1 { font-family: var(--display); font-size: 23px; letter-spacing: .03em; color: var(--ink); }
.tp-brand .t2 { font-family: var(--mono); font-size: 10px; letter-spacing: .34em; color: var(--accT); margin-top: 4px; }
.tp-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; flex: 1 1 auto; min-width: 0; align-items: center; }
.tp-nav a, .tp-nav span { font-family: var(--sans); font-size: 14.5px; font-weight: 500; padding: 8px 0 6px; color: var(--mut); border-bottom: 2px solid transparent; white-space: nowrap; }
.tp-nav a:hover { color: var(--ink); }
.tp-nav .active { color: var(--ink); border-bottom-color: var(--acc); }
.tp-nav span { color: var(--off); cursor: default; }
/* the link to the pool: orange in every theme (also with GRAY), new tab */
html[data-mode="dark"] { --pool: #ff6b1a; --poolH: #ff8a45; }
html[data-mode="light"] { --pool: #e35d10; --poolH: #f0701f; }
.tp-nav a.ext { color: var(--pool); display: inline-flex; align-items: center; gap: 5px; }
.tp-nav a.ext:hover { color: var(--poolH); }
.tp-nav a.ext span { color: inherit; cursor: pointer; font-size: 15px; line-height: 1; padding: 0; border: 0; }
.tp-nav span.active { color: var(--ink); }
.tp-switches { display: flex; gap: 14px; flex: 0 0 auto; order: 5; }
.tp-seg { display: flex; border: 1px solid var(--line2); flex: 0 0 auto; }
.tp-seg button { font-family: var(--display); font-size: 12.5px; letter-spacing: .08em; padding: 7px 11px; cursor: pointer; background: transparent; color: var(--mut); border: 0; white-space: nowrap; }
.tp-seg button:hover { color: var(--ink); }
.tp-seg button.on { background: var(--ink); color: var(--bg); }
.tp-search { flex: 1 1 300px; display: flex; min-width: 240px; max-width: 520px; margin-left: auto; border: 1px solid var(--line2); order: 4; }
.tp-search:focus-within { border-color: var(--acc); }
.tp-search.err { border-color: var(--live); }
.tp-search input { flex: 1; min-width: 0; background: var(--inp); border: 0; padding: 11px 14px; color: var(--ink); font-family: var(--mono); font-size: 12.5px; outline: none; }
.tp-search input::placeholder { color: var(--mut2); }
.tp-search button { background: var(--acc); color: var(--bg); border: 0; padding: 0 18px; font-family: var(--display); font-size: 14px; letter-spacing: .08em; cursor: pointer; }
.tp-search button:hover { background: var(--accH); }
/* brand, navigation, switches and search on one row from ~1500 px, two below */
@media (min-width: 1760px) { .tp-nav { flex: 0 1 auto; } .tp-search { flex: 1 1 260px; } }
/* below one header row: brand + pages on top, search with the switches right of it below */
@media (min-width: 701px) and (max-width: 1759px) {
  .tp-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand nav nav" "search search switches"; }
  .tp-brand { grid-area: brand; }
  .tp-nav { grid-area: nav; }
  .tp-search { grid-area: search; justify-self: end; width: 100%; margin-left: 0; }
  .tp-switches { grid-area: switches; }
}

/* ---- status bar --------------------------------------------------------------- */
.tp-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 26px; padding: 10px 28px; border-bottom: 1px solid var(--line); background: var(--g5); font-family: var(--mono); font-size: 12px; min-height: 39px; }
.tp-rec { display: flex; align-items: center; gap: 7px; font-family: var(--display); font-size: 13px; letter-spacing: .14em; line-height: 1; color: var(--live); text-shadow: 0 0 6px rgba(255,59,47,.6); white-space: nowrap; }
.tp-rec i { width: 8px; height: 8px; border-radius: 50% !important; background: var(--live); box-shadow: 0 0 8px var(--live); animation: tbBlink 1.2s infinite; }
.tp-rec.degraded { color: var(--mut); text-shadow: none; }
.tp-rec.degraded i { background: var(--mut); box-shadow: none; animation: none; }
.tp-status .item { display: flex; gap: 7px; white-space: nowrap; }
.tp-status .item .k { color: var(--mut2); }
.tp-status .item .v { color: var(--ink); }
.tp-status .item .v.acc { color: var(--accT); }
@media (min-width: 701px) and (max-width: 1500px) { .tp-status { column-gap: 18px; } }
/* one fixed height on wide screens, identical to the pool's status bar (38 px), whatever the COPY button needs */
@media (min-width: 1281px) and (min-height: 521px) { .tp-status { height: 38px; min-height: 0; padding-top: 0; padding-bottom: 0; flex-wrap: nowrap; overflow: hidden; } }
.tp-status .donate { margin-left: auto; align-items: center; }
.tp-status .donate .k { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.tp-status .donate .tp-copy { padding: 2px 7px; font-size: 10.5px; line-height: 1.4; }
.tp-status .lost { color: var(--accT); }
.tp-status .lost:empty { display: none; }
.tp-status a { color: inherit; }
@media (prefers-reduced-motion: reduce) { .tp-rec i { animation: none; } }

/* ---- page frame --------------------------------------------------------------- */
#app { flex: 1; min-width: 0; }
.tp-page { width: 100%; max-width: 1280px; margin: 0 auto; padding: 28px 28px 70px; display: flex; flex-direction: column; gap: 22px; }
.tp-back { align-self: flex-start; font-family: var(--display); font-size: 13px; letter-spacing: .1em; color: var(--mut); cursor: pointer; }
.tp-back:hover { color: var(--accT); }
.tp-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; color: var(--accT); }
.tp-h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: .95; letter-spacing: .01em; color: var(--ink); }
.tp-h1.big { font-size: clamp(44px, 6vw, 80px); }
.tp-h1 em { font-style: normal; color: var(--accT); }
.tp-lead { margin: 0; font-size: 15px; line-height: 1.6; color: var(--mut); text-wrap: pretty; max-width: 820px; }
.tp-note { margin: 0; font-size: 13px; line-height: 1.6; color: var(--mut); text-wrap: pretty; }
.tp-note b { color: var(--ink2); font-weight: 600; }
.tp-note.warn { color: var(--accT); }
.tp-headrow { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; }
.tp-headcol { display: flex; flex-direction: column; gap: 8px; }
.tp-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.tp-btn { font-family: var(--display); font-size: 13px; letter-spacing: .08em; color: var(--ink2); border: 1px solid var(--line2); padding: 7px 13px; cursor: pointer; background: transparent; white-space: nowrap; }
.tp-btn:hover { border-color: var(--acc); color: var(--accT); }
.tp-btn.off { color: var(--line2); cursor: default; pointer-events: none; }
.tp-btn.primary { background: var(--acc); color: var(--bg); border-color: var(--acc); }
.tp-btn.primary:hover { background: var(--accH); color: var(--bg); }
a.tp-btn, a.tp-btn:hover { text-decoration: none; }

/* ---- chips, tags ----------------------------------------------------------- */
.tp-chip { display: inline-block; flex: 0 0 auto; border-radius: 2px !important; position: relative; vertical-align: middle; background: var(--t-pay); }
.tp-chip::before, .tp-chip::after { content: ""; position: absolute; top: 50%; width: 22%; aspect-ratio: 1; border-radius: 50% !important; background: #14100c; transform: translateY(-50%); }
.tp-chip::before { left: 25%; }
.tp-chip::after { right: 25%; }
.tp-chip.cb { background: var(--t-cb); }
.tp-chip.pay { background: var(--t-pay); }
.tp-chip.con { background: var(--t-con); }
html[data-mode="light"] .tp-chip.pay { box-shadow: inset 0 0 0 1px rgba(0,0,0,.28); }
.tp-tag { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; padding: 3px 7px; border: 1px solid; white-space: nowrap; }
.tp-tag.cb { color: var(--tx-cb); }
.tp-tag.pay { color: var(--tx-pay); }
.tp-tag.con { color: var(--tx-con); }
.tp-pill { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; padding: 3px 9px; border: 1px solid var(--line2); color: var(--ink2); white-space: nowrap; }
.tp-pill.on { background: var(--acc); border-color: var(--acc); color: var(--bg); padding: 4px 9px; }
.tp-pill.warn { border-color: var(--accT); color: var(--accT); }
.tp-pill.bad { border-color: var(--live); color: var(--live); }
.tp-pill.lcd { border-color: var(--lcd); color: var(--lcd); }
.tp-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-family: var(--mono); font-size: 11.5px; color: var(--ink2); }
.tp-legend > span { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tp-legend .n { color: var(--mut2); }
.tp-legend .free { width: 20px; height: 13px; border: 1px dashed var(--mut2); }
.tp-legend .hint { color: var(--mut2); margin-left: auto; white-space: normal !important; }

/* ---- tiles ---------------------------------------------------------------- */
.tp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.tp-tile { position: relative; border: 1px solid var(--line); background: var(--card2); padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tp-tile .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; color: var(--mut); text-transform: uppercase; }
.tp-tile .v { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-tile .sub { font-family: var(--mono); font-size: 11px; color: var(--mut2); }
.tp-tile.hot .v { color: var(--accT); }
.tp-tile.small .v { font-size: 24px; }
.tp-tile .bar { height: 5px; background: var(--trk); margin-top: 2px; }
.tp-tile .bar > i { display: block; height: 100%; background: var(--acc); }
.tp-info { position: absolute; top: 10px; right: 10px; width: 16px; height: 16px; border: 1px solid var(--line2); border-radius: 50% !important; color: var(--mut); font-family: var(--mono); font-size: 10px; line-height: 14px; text-align: center; cursor: help; }
.tp-info:hover { border-color: var(--acc); color: var(--accT); }
/* a bordered grid of cells */
.tp-cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tp-cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 18px; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.tp-cell .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; color: var(--mut); text-transform: uppercase; }
.tp-cell .v { font-family: var(--display); font-size: 26px; line-height: 1; color: var(--ink); white-space: nowrap; }
.tp-cell .v.mono { font-family: var(--mono); font-size: 13px; white-space: normal; word-break: break-all; line-height: 1.5; }
.tp-cell .v.acc, .tp-cell .v a { color: var(--accT); }
.tp-cell .sub { font-family: var(--mono); font-size: 11px; color: var(--mut2); }

/* ---- boxes and tables --------------------------------------------------------- */
.tp-box { border: 1px solid var(--line); min-width: 0; }
.tp-box.pad { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.tp-box.card { background: var(--g4); }
.tp-box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.tp-box-head .more { font-family: var(--display); font-size: 13px; letter-spacing: .08em; color: var(--mut); }
.tp-box-head .more:hover { color: var(--accT); }
.tp-box-head .hint { font-family: var(--mono); font-size: 11px; color: var(--mut2); }
.tp-scroll { overflow-x: auto; scrollbar-color: var(--line2) var(--bg); }
.tp-table { min-width: 470px; }
.tp-row { display: grid; grid-template-columns: var(--cols, 1fr); gap: 12px; padding: 11px 20px; font-family: var(--mono); font-size: 12.5px; border-bottom: 1px solid var(--line5); color: var(--ink2); align-items: center; min-width: 0; }
.tp-row > * { min-width: 0; }
.tp-row.head { padding: 10px 20px; font-size: 10px; letter-spacing: .16em; color: var(--mut2); border-bottom: 1px solid var(--line3); text-transform: uppercase; }
.tp-row.click { cursor: pointer; }
.tp-row.click:hover, a.tp-row:hover { background: var(--hov); color: var(--ink2); }
a.tp-row { text-decoration: none; }
.tp-row.empty { display: block; color: var(--mut); }
.tp-row.hot { background: var(--cur); box-shadow: inset 3px 0 0 var(--acc); }
.tp-row.in { animation: tbGlow 2.4s ease-out; }
.tp-row .r, .tp-row.head .r { text-align: right; }
.tp-row .a { color: var(--accT); }
.tp-row .m { color: var(--mut); }
.tp-row .i { color: var(--ink); }
.tp-row .nw { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-row .with { display: flex; align-items: center; gap: 9px; color: var(--accT); white-space: nowrap; min-width: 0; }
.tp-row .with a { color: inherit; overflow: hidden; text-overflow: ellipsis; }
.tp-row .share { display: flex; align-items: center; gap: 10px; }
.tp-row .share .track { flex: 1; height: 5px; background: var(--trk); }
.tp-row .share .track i { display: block; height: 100%; background: var(--ink2); }
.tp-row .share .track i.m { background: var(--acc); }
.tp-row .share .pc { min-width: 52px; text-align: right; }
.tp-mixbar { display: flex; height: 8px; width: 120px; background: var(--trk); }
.tp-mixbar i { display: block; height: 100%; border-right: 1px solid var(--bg); }
.tp-mixbar i.cb { background: var(--t-cb); }
.tp-mixbar i.pay { background: var(--t-pay); }
.tp-mixbar i.con { background: var(--t-con); }
.tp-mixwrap { display: flex; align-items: center; gap: 10px; }
.tp-kv { display: flex; flex-direction: column; }
.tp-kv > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line4); }
.tp-kv .k { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--mut2); text-transform: uppercase; align-self: baseline; }
.tp-kv .v { font-family: var(--mono); font-size: 12.5px; color: var(--ink); word-break: break-all; min-width: 0; line-height: 1.5; }
.tp-kv .v a { color: var(--accT); }
.tp-kv .v.t2 { color: var(--ink2); }
.tp-kv .v.t3 { color: var(--mut); }
.tp-kv .v .dim { color: var(--mut2); }
.tp-kv .v b { color: var(--ink); font-weight: 500; }
.tp-kv.wide > div { grid-template-columns: 190px minmax(0, 1fr); }
.tp-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line3); font-family: var(--mono); font-size: 12px; color: var(--mut); }
.tp-pager .nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ---- LCD ---------------------------------------------------------------------- */
.tp-lcd { background: var(--lcdBg); border: 1px solid var(--lcdBd); padding: 16px 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px 18px; }
.tp-lcd > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tp-lcd .v { font-family: "VT323", var(--mono); font-size: clamp(30px, 3.2vw, 42px); line-height: 1; color: var(--lcd); text-shadow: 0 0 12px var(--glow); white-space: nowrap; }
.tp-lcd .k { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--lcdDim); text-transform: uppercase; }
.tp-lcd.big .v { font-size: clamp(44px, 5vw, 64px); text-shadow: 0 0 14px var(--glow); }
.tp-lcd.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tp-lcd.pad { padding: 22px 24px; }

/* ---- deck stage ------------------------------------------------------------- */
.tp-stage { position: relative; background: radial-gradient(ellipse at 50% 42%, var(--st1) 0%, var(--st2) 78%); }
.tp-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---- copy / donation ---------------------------------------------------------- */
.tp-copy { font-family: var(--display); font-size: 11.5px; letter-spacing: .08em; color: var(--mut); background: transparent; border: 1px solid var(--line2); padding: 4px 9px; cursor: pointer; white-space: nowrap; }
.tp-copy:hover { border-color: var(--acc); color: var(--accT); }
.tp-copy.done { background: var(--acc); border-color: var(--acc); color: var(--bg); }

/* ---- footer -------------------------------------------------------------------- */
.tp-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 22px 28px; display: flex; flex-direction: column; gap: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--mut2); }
.tp-foot-main { display: flex; gap: 10px 26px; flex-wrap: wrap; align-items: center; }
.tp-foot-claim { font-family: var(--display); font-size: 15px; letter-spacing: .06em; color: var(--mut); }
.tp-foot a { color: var(--accT); }
.tp-foot-links { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }

/* ---- loading / errors ------------------------------------------------------------ */
.loading, .error { padding: 40px 28px; color: var(--mut); font-family: var(--mono); font-size: 12.5px; }
.error { color: var(--live); }

/* ---- dashboard ---------------------------------------------------------------- */
.tp-chain { padding: 22px 0 0; display: flex; flex-direction: column; gap: 12px; }
.tp-chain-head { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; padding: 0 28px; }
.tp-chain-head .due { font-family: var(--mono); font-size: 12px; color: var(--mut2); white-space: nowrap; }
.tp-chain-head .tp-legend { margin-left: auto; }
.tp-chain-view { width: 100%; overflow: hidden; border-top: 1px solid var(--line4); border-bottom: 1px solid var(--line4); background: linear-gradient(180deg, var(--g5) 0%, var(--bg) 100%); padding: 14px 0 16px; }
.tp-track { display: flex; align-items: flex-start; padding-left: 28px; width: max-content; will-change: transform; }
.tp-ctile { flex: 0 0 220px; width: 220px; display: flex; flex-direction: column; gap: 5px; color: inherit; }
.tp-ctile:hover { color: inherit; opacity: .82; }
.tp-ctile .tp-stage { height: 186px; }
.tp-ctile .t { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--ink); transition: color .6s; }
.tp-ctile .t.acc, .tp-ctile.flash .t { color: var(--accT); }
.tp-ctile .s { font-family: var(--mono); font-size: 11.5px; color: var(--mut); white-space: nowrap; }
.tp-ctile .s.dim { color: var(--mut2); }
.tp-citem { flex: 0 0 250px; display: flex; align-items: flex-start; }
.tp-citem .arr { flex: 0 0 30px; text-align: center; margin-top: 84px; font-family: var(--mono); font-size: 16px; color: var(--line2); }
.tp-dash { gap: 32px; padding-top: 30px; }
.tp-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); gap: 20px; }
.tp-hr { gap: 16px; padding: 20px 22px 18px; }
.tp-hr-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.tp-hr-title { display: flex; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.tp-hr-title .now { font-family: var(--display); font-size: 26px; color: var(--ink); white-space: nowrap; }
.tp-hr-title .chg { font-family: var(--mono); font-size: 11.5px; color: var(--mut); }
.tp-plot { position: relative; height: 240px; margin-bottom: 22px; }
.tp-plot svg { width: 100%; height: 240px; display: block; }
.tp-plot svg .g { stroke: var(--line3); stroke-width: 1; }
.tp-plot svg .area { fill: var(--acc); fill-opacity: .09; }
.tp-plot svg .avg { fill: none; stroke: var(--acc); stroke-width: 2; stroke-linejoin: round; }
.tp-plot svg .raw { fill: none; stroke: var(--acc); stroke-opacity: .22; stroke-width: 1; stroke-linejoin: round; }
.tp-plot .ax span { position: absolute; font-family: var(--mono); font-size: 10.5px; color: var(--mut2); pointer-events: none; white-space: nowrap; }
.tp-plot .ax .y { left: 2px; transform: translateY(-120%); }
.tp-plot .ax .x { bottom: -18px; transform: translateX(-50%); }
.tp-plot .ax .u { right: 2px; top: -16px; }
.tp-catch { position: absolute; inset: 0; cursor: crosshair; z-index: 2; }
.tp-hover { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.tp-hover .vl { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line2); }
.tp-hover .dot { position: absolute; width: 9px; height: 9px; background: var(--acc); transform: translate(-50%, -50%); }
.tp-hover .box { position: absolute; top: 6px; background: var(--card); border: 1px solid var(--line2); padding: 8px 11px; display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }
.tp-hover .box b { font-family: var(--display); font-weight: 400; font-size: 18px; color: var(--accT); }
.tp-hover .box span { font-family: var(--mono); font-size: 11px; color: var(--mut); }
.tp-hr-foot { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; color: var(--mut2); }
.tp-legend .sw { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--acc); }
.tp-legend .sw.raw { border-top: 1px solid var(--acc); opacity: .4; }
.tp-mf-title { display: flex; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.tp-mf-title .sum { font-family: var(--mono); font-size: 11.5px; color: var(--mut); }

/* ---- mempool ------------------------------------------------------------------- */
.tp-deckbox { padding: 18px 20px 14px; display: flex; flex-direction: column; gap: 12px; }
.tp-deck-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tp-deck-top .l { display: flex; flex-direction: column; gap: 4px; }
.tp-deck-top .lcd { font-family: "VT323", var(--mono); font-size: 40px; line-height: 1; color: var(--lcd); text-shadow: 0 0 12px var(--glow); }
.tp-deck-top .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--mut2); }
.tp-deck-top .r { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.tp-deck-top .num { font-family: var(--display); font-size: 28px; line-height: 1; color: var(--ink); }
.tp-deck-top .state { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--accT); white-space: nowrap; }
.tp-bigstage { width: 100%; max-width: 820px; margin: 0 auto; aspect-ratio: 5 / 4; max-height: 620px; }
.tp-deck-legend { border-top: 1px solid var(--line3); padding-top: 12px; }
.tp-how-head { display: flex; align-items: center; gap: 14px; padding: 14px 20px; width: 100%; background: none; border: 0; cursor: pointer; text-align: left; color: inherit; font: inherit; }
.tp-how-head:hover { background: var(--card); }
.tp-how-head .i { width: 26px; height: 26px; border: 1px solid var(--acc); color: var(--accT); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; flex: 0 0 auto; }
.tp-how-head .t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tp-how-head .t b { font-size: 15px; font-weight: 700; color: var(--ink); }
.tp-how-head .t span { font-size: 13px; color: var(--mut); }
.tp-how-head .x { margin-left: auto; font-family: var(--display); font-size: 13px; letter-spacing: .08em; color: var(--accT); white-space: nowrap; }
.tp-how-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border-top: 1px solid var(--line); }
.tp-how-body .step { padding: 16px 18px; border-right: 1px solid var(--line3); display: flex; flex-direction: column; gap: 6px; }
.tp-how-body .n { font-family: "VT323", var(--mono); font-size: 28px; line-height: 1; color: var(--lcd); }
.tp-how-body b { font-size: 14px; font-weight: 700; color: var(--ink); }
.tp-how-body .d { font-size: 13px; line-height: 1.5; color: var(--mut); text-wrap: pretty; }
.tp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.tp-stat { border: 1px solid var(--line); background: var(--card2); padding: 14px 16px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.tp-stat .v { font-family: var(--display); font-size: 24px; line-height: 1; color: var(--ink); white-space: nowrap; }
.tp-stat .k { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--mut); text-transform: uppercase; }
.tp-stat .sub { font-family: var(--mono); font-size: 11px; color: var(--mut2); }
.tp-mini { display: flex; flex-direction: column; }
.tp-mini .r0 { display: grid; grid-template-columns: var(--cols); gap: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--ink2); padding: 4px 0; align-items: center; min-width: 0; }
.tp-mini .r0.head { font-size: 10px; letter-spacing: .16em; color: var(--mut2); padding: 0 0 6px; border-bottom: 1px solid var(--line3); }
.tp-mini .r { text-align: right; }
.tp-mini .a { color: var(--accT); }
.tp-mini .i { color: var(--ink); }
.tp-mini .with { display: flex; align-items: center; gap: 9px; color: var(--ink); white-space: nowrap; }
.tp-mixbar.wide { width: 100%; }
.tp-mixbar.wide i { flex: 1 1 0; }
.tp-gap { font-size: 9.5px; letter-spacing: .1em; color: var(--mut2); border: 1px dashed var(--dash); padding: 1px 5px; text-transform: uppercase; margin-left: 4px; }
.tp-row.sub { background: var(--g5); color: var(--mut); font-size: 11px; letter-spacing: .08em; padding: 8px 20px; border-bottom: 1px solid var(--line3); }
.tp-row.sub.warn { color: var(--accT); }
.tp-note.pad { padding: 14px 20px; }
.tp-pop { position: absolute; transform: translate(-50%, calc(-100% - 18px)); width: 240px; background: var(--card); border: 1px solid var(--acc); padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; pointer-events: none; z-index: 5; box-shadow: 0 18px 40px -16px rgba(0,0,0,.7); color: var(--ink); }
.tp-pop.below { transform: translate(-50%, 18px); }
.tp-pop .h { display: flex; align-items: center; gap: 9px; }
.tp-pop .n { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--mut2); }
.tp-pop .id { font-family: var(--mono); font-size: 12px; color: var(--ink2); white-space: nowrap; }
.tp-pop .big { font-family: var(--display); font-size: 22px; color: var(--ink); white-space: nowrap; }
.tp-pop .meta { font-family: var(--mono); font-size: 11px; color: var(--mut); line-height: 1.4; }
.tp-pop .go { font-family: var(--mono); font-size: 10.5px; color: var(--accT); border-top: 1px dashed var(--dash); padding-top: 8px; }

/* ---- blocks / block ---------------------------------------------------------------- */
.tp-blk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; align-items: start; }
.tp-blk-visual, .tp-blk-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tp-blk-info { gap: 18px; }
.tp-sq { aspect-ratio: 1 / 1; border: 1px solid var(--line); }
.tp-side { position: absolute; left: 16px; top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: #9b9284; pointer-events: none; }
.tp-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.tp-slots { display: grid; grid-template-columns: repeat(32, minmax(0, 1fr)); gap: 2px; }
.tp-slots i { height: 14px; border: 1px dashed var(--line2); }
.tp-slots i.cb { background: var(--t-cb); border: 0; }
.tp-slots i.pay { background: var(--t-pay); border: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.tp-slots i.con { background: var(--t-con); border: 0; }
.tp-usage { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.tp-usage .tp-tile { padding: 12px 12px 10px; gap: 6px; }
.tp-usage .tp-tile .v { font-size: 20px; }
.tp-usage .tp-tile .k { font-size: 9.5px; letter-spacing: .14em; }
/* full page width (two columns of 600 px): the info column is as tall as the deck, larger figures fill it, the usage
   tiles take what is left so their bottom edge meets the deck's */
@media (min-width: 1336px) {
  .tp-blk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .tp-blk-visual { display: contents; }
  .tp-blk-visual > .tp-stage { grid-column: 1; grid-row: 1; align-self: start; }
  .tp-blk-visual > .tp-legend { grid-column: 1; grid-row: 2; margin-top: -12px; }
  .tp-blk-visual > .tp-note { grid-column: 1; grid-row: 3; margin-top: -12px; }
  .tp-blk-info { grid-column: 2; grid-row: 1; }
  .tp-blk-info .tp-lcd { padding: 20px 22px; }
  .tp-blk-info .tp-lcd .v { font-size: clamp(38px, 3.4vw, 52px); }
  .tp-blk-info .tp-lcd .k { font-size: 11px; }
  .tp-blk-info .tp-slots { grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; }
  .tp-blk-info .tp-slots i { height: 20px; }
  .tp-blk-info .tp-legend { font-size: 12.5px; }
  .tp-blk-info .tp-usage { flex: 1 1 auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .tp-blk-info .tp-usage .tp-tile { padding: 16px 16px 14px; gap: 10px; }
  .tp-blk-info .tp-usage .tp-tile .k { font-size: 10.5px; letter-spacing: .12em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tp-blk-info .tp-usage .tp-tile .v { font-size: 34px; margin-top: auto; }
  .tp-blk-info .tp-usage .tp-tile .bar { height: 5px; }
}
.tp-tile .bar { height: 4px; }
.tp-blk .tp-kv .k { align-self: baseline; }
/* the block's properties: a key / value table under the deck, the width of the page */
.tp-blkdata .tp-kv { padding: 0 20px 6px; }
@media (min-width: 701px) { .tp-blkdata .tp-kv > div { grid-template-columns: 190px minmax(0, 1fr); } }
.tp-blkdata .tp-kv > div:last-child { border-bottom: 0; }
.tp-blkdata .tp-kv > .grp { display: block; padding: 18px 0 8px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; color: var(--accT); text-transform: uppercase; }
.tp-blkdata .tp-kv > .grp:first-child { padding-top: 14px; }
.tp-kv .v .sub { display: block; margin-top: 2px; font-size: 11px; color: var(--mut2); }
/* hashes, addresses and roots stay on one line wherever the table is wide enough */
@media (min-width: 1100px) {
  .tp-blkdata .tp-kv .v.hex { white-space: nowrap; word-break: normal; }
  .tp-ios .iorow .ioa { white-space: nowrap; word-break: normal; }
  .tp-ios .iorow .ioa.dim { white-space: normal; }
}


/* ---- shared page bits -------------------------------------------------------------- */
.tp-pad { padding: 14px 20px; }
.tp-stack { display: flex; flex-direction: column; gap: 16px; }
.tp-rowline { display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; }
.tp-rowline .m { color: var(--mut); }
.tp-rowline b.acc { color: var(--accT); font-weight: 400; }
.tp-progress { height: 22px; background: var(--trk); border: 1px solid var(--line); position: relative; overflow: hidden; }
.tp-progress i { display: block; height: 100%; background: var(--acc); }
.tp-chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tp-now { font-style: normal; margin-left: 8px; color: var(--accT); font-size: 10px; letter-spacing: .14em; }
.tp-row .stg { font-family: var(--display); font-size: 20px; color: var(--ink); }
.tp-row .stackcell { display: flex; flex-direction: column; gap: 3px; }
.tp-row .stackcell small { font-size: 10.5px; color: var(--mut2); }
.tp-row .pos, .tp-row .a { color: var(--accT); }
.tp-row .addrcell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tp-miner { flex: 0 0 auto; font-style: normal; font-size: 9.5px; letter-spacing: .14em; color: var(--bg); background: var(--acc); padding: 2px 6px; }
/* address labels (js/labels.js): a pool in its own colour (--who-tone, e.g. ours orange), others neutral */
.who { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; font-family: var(--mono); font-style: normal; font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1.5; padding: 1px 7px; border: 1px solid var(--who-tone, var(--line2)); color: var(--who-tone, var(--ink2)); background: color-mix(in srgb, var(--who-tone, transparent) 14%, transparent); white-space: nowrap; vertical-align: middle; }
html[data-mode="light"] .who { color: color-mix(in srgb, var(--who-tone, var(--ink2)) 72%, #000); }
.prose-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.prose-sections section { display: flex; flex-direction: column; gap: 8px; max-width: none; }
.prose-sections h3 { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: 0; }
.prose-sections p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--mut); text-wrap: pretty; }
.tp-kv.wide .v.hi { color: var(--accT); }
.tp-kv .v.pos { color: var(--accT); }
.tp-kv .v.warn { color: var(--accT); }
.small { font-size: 11px; font-family: var(--mono); }

/* ---- economics -------------------------------------------------------------------- */
.tp-issuedtop { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 20px; flex-wrap: wrap; }
.tp-issuedtop .l { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tp-issuedtop .big { font-family: var(--display); font-size: clamp(32px, 4vw, 48px); line-height: 1; color: var(--ink); }
.tp-issuedtop .m { font-family: var(--mono); font-size: 12px; color: var(--mut); }
.tp-issuedtop .lcd { font-family: "VT323", var(--mono); font-size: 36px; line-height: 1; color: var(--lcd); text-shadow: 0 0 10px var(--glow); }
.tp-segs { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
.tp-segs .seg { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tp-segs .bar { height: 26px; background: var(--trk); border: 1px solid var(--line); position: relative; overflow: hidden; }
.tp-segs .bar i { display: block; height: 100%; background: var(--seg); }
.tp-segs .bar i.cur { background: var(--acc); }
.tp-segs span { font-family: var(--mono); font-size: 10px; color: var(--mut2); text-align: center; }
.tp-econ .tp-box > .tp-box { border-color: var(--line3); }

/* ---- rich list --------------------------------------------------------------------- */
.tp-dist { display: flex; height: 26px; gap: 2px; }
.tp-dist .a, .tp-distlegend i.a { background: var(--acc); }
.tp-dist .b, .tp-distlegend i.b { background: var(--ink2); }
.tp-dist .c, .tp-distlegend i.c { background: var(--line2); }
.tp-distlegend { gap: 8px 24px; }
.tp-distlegend i { display: inline-block; width: 10px; height: 10px; flex: 0 0 auto; }
.tp-distlegend b { color: var(--ink); font-weight: 400; margin-left: 4px; }
.tp-cass-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.tp-cass { border-radius: 10px !important; padding: 12px 12px 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), 0 14px 30px -18px rgba(0,0,0,.8); background: #ebe5d8; color: #1b1713; }
.tp-cass:hover { color: #1b1713; filter: brightness(1.04); }
html[data-theme="orange"] .tp-cass.r1 { background: #f2b48a; }
html[data-theme="gray"] .tp-cass.r1 { background: #b9b9b9; }
html[data-theme="gray"] .tp-cass.r2, html[data-theme="gray"] .tp-cass.r3 { background: #e4e4e4; }
.tp-cass .label { background: #fff8ec; border-radius: 4px !important; padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; color: #1b1713; min-width: 0; }
.tp-cass .side { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; }
.tp-cass .side em { font-style: normal; background: #1b1713; color: #fff8ec; padding: 2px 7px; }
.tp-cass .stripe { height: 3px; background: var(--acc); }
.tp-cass .bal { font-family: var(--display); font-size: 30px; line-height: 1; white-space: nowrap; }
.tp-cass .ad { font-family: var(--mono); font-size: 11.5px; color: #6c645a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-cass .reels { display: flex; justify-content: center; align-items: center; gap: 36px; background: #16110c; border-radius: 22px !important; height: 46px; margin: 0 20%; }
.tp-cass .reels i { width: 28px; height: 28px; border-radius: 50% !important; background: #f4eee2; border: 8px solid #3d2b1e; box-sizing: border-box; }
.tp-cass .foot { display: flex; justify-content: space-between; gap: 8px; padding: 2px 4px 12px; font-family: var(--mono); font-size: 11.5px; color: #1b1713; }

/* ---- transaction / address ---------------------------------------------------------- */
.tp-txhead { display: flex; flex-direction: column; gap: 12px; }
.tp-txhead .tp-pills { align-items: center; }
.tp-idline { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.tp-idline .mono { font-size: 13px; color: var(--ink2); word-break: break-all; }
.tp-addrline { font-size: clamp(14px, 1.6vw, 18px); color: var(--ink); word-break: break-all; }
.tp-ios .iorow { display: flex; justify-content: space-between; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line5); font-family: var(--mono); font-size: 12.5px; align-items: center; }
.tp-ios .iorow .ioa { min-width: 0; word-break: break-all; }
.tp-ios .iorow .ioamt { color: var(--ink); white-space: nowrap; }
.tp-ios .iorow.sub { padding: 7px 18px 7px 30px; font-size: 11.5px; }
.tp-ios .iorow:last-child { border-bottom: 0; }
.tp-splitbar { display: flex; height: 8px; background: var(--trk); }
.tp-splitbar i { display: block; height: 100%; }
.tp-splitbar .claim { background: var(--acc); }
.tp-splitbar .growth { background: var(--ink2); }
.tp-parts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line4); font-family: var(--mono); font-size: 12px; align-items: baseline; }
.tp-parts .k { color: var(--mut2); text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.tp-parts .v { color: var(--mut); }
.tp-parts .n { color: var(--ink); white-space: nowrap; }
.tp-parts .n.t3 { color: var(--mut2); }
.tp-hashes { display: flex; flex-direction: column; gap: 6px; padding: 14px 20px; font-size: 12px; color: var(--ink2); word-break: break-all; }
.tp-th { background: none; border: 0; padding: 0; margin: 0; font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; text-align: left; text-transform: inherit; }
.tp-th:hover { color: var(--accT); }
.tp-row .pos { color: var(--accT); }
.tp-addr .tp-cells { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tp-legacy { min-width: 0; }
.tp-donate-box { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; border: 1px dashed var(--dash); padding: 14px 16px; }
.tp-donate-box .mono { word-break: break-all; font-size: 13px; }
.tp-prose h2 { margin: 6px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: .22em; color: var(--accT); font-weight: 400; text-transform: uppercase; }
.tp-prose p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--mut); max-width: 860px; text-wrap: pretty; }
.tp-prose p b { color: var(--ink); font-weight: 600; }
.tp-prose { gap: 10px; }
span.hint[title], .tp-kv .hint { border-bottom: 1px dotted var(--mut2); cursor: help; }
.tp-box-head .hint, .tp-legend .hint, .tp-pager .hint { border-bottom: 0; cursor: default; }

/* ---- instant tooltips, menus (js/tooltip.js, js/menus.js) ----------------------------- */
.tip { position: fixed; z-index: 100; max-width: 340px; padding: 8px 11px; background: var(--card); border: 1px solid var(--acc); box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: var(--ink2); white-space: pre-line; pointer-events: none; opacity: 0; visibility: hidden; border-radius: 0; }
.tip.show { opacity: 1; visibility: visible; }
.menu-btn { background: var(--inp); border: 1px solid var(--line2); color: var(--ink); font-family: var(--mono); font-size: 12px; padding: 4px 9px; cursor: pointer; border-radius: 0; }
.menu-btn:hover, .menu.open .menu-btn { border-color: var(--acc); }
.menu-list { background: var(--card); border: 1px solid var(--acc); border-radius: 0; }
.menu-list button { color: var(--ink2); font-family: var(--mono); }
.menu-list button:hover, .menu-list button.current { background: var(--hov); color: var(--accT); }
.ghost { background: transparent; border: 1px solid var(--line2); color: var(--mut); font-family: var(--display); letter-spacing: .08em; border-radius: 0; }
.ghost:hover { border-color: var(--acc); color: var(--accT); }
/* legacy cards of the balance history chart */
.pad { padding: 18px 20px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.card { background: transparent; border: 1px solid var(--line); border-radius: 0; }
.card.pad { padding: 18px 20px; }
.card.stack { display: flex; flex-direction: column; gap: 14px; }
.card.bh { background: var(--g4); }
.bh-head h2, .bh-title h2 { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; font-weight: 400; color: var(--accT); text-transform: uppercase; margin: 0; }
.bh-sub, .bh-foot { color: var(--mut2) !important; }
.bh-chip, .bh-full { border-radius: 0; border-color: var(--line2); color: var(--mut); background: transparent; }
.bh-chip.on, .bh-full.on { background: var(--card); border-color: var(--line2); color: var(--ink); }
.bh-nav { background: var(--inp); border-radius: 0; }
.bh-nav svg, .bh-nav-shade { border-radius: 0 !important; }
.bh-nav-shade { background: rgba(0,0,0,.45); }
.bh-nav-win { border-color: var(--line2); border-radius: 0; }
.bh-nav-h { background: var(--card); border-color: var(--line2); border-radius: 0; }
.v2t-chartbox { background: var(--g4); border-color: var(--line); border-radius: 0; }
.v2t-seg { background: transparent; border-radius: 0; border: 1px solid var(--line2); padding: 0; gap: 0; }
.v2t-seg button { border-radius: 0; font-family: var(--display); letter-spacing: .08em; font-weight: 400; background: transparent; color: var(--mut); padding: 7px 12px; }
.v2t-seg button.on { background: var(--ink); color: var(--bg); }
.chart-legend { font-family: var(--mono); color: var(--mut2); }
.v2t-grid { stroke: var(--line3); }
.v2t-area { fill: var(--acc); fill-opacity: .09; }
.v2t-past { stroke: var(--acc); }
.v2t-future { stroke: var(--acc); }
.v2t-box { border-radius: 0; background: var(--card); }
.v2t-unpin { border-radius: 0; }
.v2t-row > span:last-child { color: var(--ink); }
.v2t-ytitle, .v2t-xtitle { color: var(--mut); }
.v2t-ay, .v2t-ax { color: var(--mut2); }
.v2t-hint { font-family: var(--mono); font-size: 11px; color: var(--mut2); }
.sw.solid { background: var(--acc); }
.sw.dashed { background: repeating-linear-gradient(90deg, var(--acc) 0 5px, transparent 5px 10px); }
.tp-legacy .loading { padding: 20px; }

/* tag of the legacy markup (Native Finance) */
.tag { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; padding: 2px 6px; border: 1px solid var(--line2); color: var(--ink2); background: transparent; text-transform: uppercase; margin: 0 2px; }
.pos { color: var(--accT); }

/* ---- phones ----------------------------------------------------------------------------- */
@media (max-width: 700px) {
  .tp-head { position: static; padding: 12px 16px; gap: 10px 16px; }
  .tp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; width: 100%; flex-wrap: wrap; }
  .tp-brand .t1 { font-size: 20px; }
  .tp-switches { order: 0; flex-wrap: wrap; gap: 8px; }
  .tp-seg button { padding: 6px 8px; font-size: 11.5px; }
  .tp-nav { order: 2; flex: 1 1 100%; position: sticky; top: 0; z-index: 30; background: var(--bg); margin: 0 -16px; padding: 0 16px; width: calc(100% + 32px); flex-wrap: nowrap; overflow-x: auto; gap: 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .tp-nav::-webkit-scrollbar { display: none; }
  .tp-search { order: 3; flex: 1 1 100%; max-width: none; min-width: 0; margin: 0; }
  .tp-head { display: flex; flex-direction: column; align-items: stretch; }
  .tp-status { padding: 8px 16px; gap: 6px 16px; font-size: 11px; }
  .tp-status .donate { margin-left: 0; }
  .tp-page { padding: 18px 16px 50px; gap: 18px; }
  .tp-chain-head { padding: 0 16px; }
  .tp-chain-head .tp-legend { margin-left: 0; }
  .tp-chain-view { overflow-x: auto; scrollbar-width: none; }
  .tp-chain-view::-webkit-scrollbar { display: none; }
  .tp-track { padding-left: 16px; }
  .tp-tile .v { font-size: 26px; }
  .tp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-tile { padding: 12px 12px 10px; }
  .tp-tile .k { font-size: 9.5px; letter-spacing: .12em; }
  .tp-box-head { padding: 12px 14px; }
  .tp-row { padding: 10px 14px; }
  .tp-row.head { padding: 8px 14px; }
  .tp-hr { padding: 14px; }
  .tp-plot { height: 200px; }
  .tp-plot svg { height: 200px; }
  .tp-kv > div, .tp-kv.wide > div { grid-template-columns: 1fr; gap: 3px; }
  .tp-blkdata .tp-kv { padding: 0 14px 6px; }
  .tp-parts > div { grid-template-columns: 1fr auto; }
  .tp-parts .v { grid-column: 1 / -1; order: 3; }
  .tp-deckbox { padding: 12px 12px 10px; }
  .tp-deck-top .lcd { font-size: 30px; }
  .tp-deck-top .num { font-size: 22px; }
  .tp-lcd.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 12px; }
  .tp-lcd.three .v { font-size: 26px; }
  .tp-lcd .v { font-size: 28px; }
  .tp-lcd.big .v { font-size: 38px; }
  .tp-slots { grid-template-columns: repeat(16, minmax(0, 1fr)); }
  .tp-segs { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 8px; }
  .tp-foot { padding: 18px 16px; }
  .tp-foot-links { margin-left: 0; }
  .tp-side { left: 10px; top: 8px; font-size: 9.5px; }
  .tp-cass .bal { font-size: 24px; }
  .tp-two { grid-template-columns: minmax(0, 1fr); }
  .tp-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-cell { padding: 12px; }
  .tp-cell .v { font-size: 22px; }
  .tp-addr .tp-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-ios .iorow { padding: 11px 12px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .tp-ios .iorow.sub { padding-left: 24px; }
}
@media (prefers-reduced-motion: reduce) { .tp-row.in { animation: none; } .tp-track { transition: none !important; } }

/* ---- balance history chart, drop-down menus (address page) ---------------------------- */
.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: var(--mut2); }
.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: 0; cursor: pointer; font-family: var(--mono); font-size: 11.5px; border: 1px solid var(--border); background: transparent; color: var(--mut2); opacity: .6; user-select: none; }
.bh-chip.on { border-color: var(--line2); background: var(--card); 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: 0; cursor: pointer; font-family: var(--mono); font-size: 11.5px; border: 1px solid var(--border); background: transparent; color: var(--mut); }
.bh-full[hidden] { display: none; }
.bh-full i { position: relative; width: 20px; height: 11px; border-radius: 0; 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: var(--mut2); transition: left .15s, background .15s; }
.bh-full.on { border-color: var(--line2); background: var(--card); color: var(--text); }
.bh-full.on i { background: var(--line2); }
.bh-full.on i::after { left: 11px; background: var(--accent); }
.bh .v2t-ytitle { color: var(--accent); }
.bh .v2t-ytitle2, .bh .v2t-ay2 { color: var(--mut); }
.bh .v2t-plot { height: 260px; }
.bh .v2t-svg { height: 100%; }
.bh-nav { position: relative; height: 40px; margin: 2px 8% 6px 7%; border: 1px solid var(--border); border-radius: 0; background: var(--inp); 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: 0; }
.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(0,0,0,.45); pointer-events: none; }
.bh-nav-shade.l { left: 0; border-radius: 0 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 var(--line2); border-radius: 0; background: rgba(var(--acc-rgb), .06); 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 var(--line2); border-radius: 0; background: var(--card); 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 var(--mut); border-right: 1px solid var(--mut); }
.bh-nav-h::after { content: ""; position: absolute; left: -10px; right: -10px; top: -10px; bottom: -10px; }
.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: var(--mut2); }
.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); }
.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); }
.menu { position: relative; display: inline-block; }
.menu-btn {
  background: var(--input-bg);
  border: 1px solid var(--border-input);
  border-radius: 0;
  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: 0;
  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); }
