/* BLACKOUT app, dressed as the website (V5, "the switch"): light lavender ground, one violet accent, the
   power-button mark, Montserrat 900 caps (display) / Figtree (text) / JetBrains Mono (numbers and codes).
   Loaded after app.css, privacy.css and crowd-meter.css. It changes how things look, never what they are:
   every id, class and layout rule the scripts rely on stays in app.css.
   Two looks, as on the site: .t-day (default) and .t-night, set on <html> by lights.js. */
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

/* :root:root so these win over app.css's :root[data-accent] set. Names are the app's (--red is "the accent"). */
:root:root {
  --bg: #f6f4fd; --bg-2: #ffffff; --panel: #fbfaff; --panel-2: #ffffff; --panel-3: #f1eefc;
  --line: rgba(20, 14, 60, .1); --line-2: rgba(20, 14, 60, .2);
  --text: #0d0b18; --muted: #4d4963; --dim: #6f6a8a;
  --red: #7c3aed; --red-2: #6d28d9; --red-deep: #ede9fe; --accent-rgb: 124, 58, 237;
  --glow: rgba(124, 58, 237, .5);
  --ok: #0c7a43; --wait: #9a5800; --err: #c2213a;
  --ok-rgb: 12, 122, 67; --wait-rgb: 180, 105, 0; --err-rgb: 194, 33, 58;
  --card: rgba(255, 255, 255, .72); --card-s: #fdfcff; --card-b: rgba(124, 58, 237, .2);
  --shadow: 0 24px 60px -32px rgba(100, 40, 210, .38);
  --chip-bg: rgba(139, 47, 240, .12); --chip-ink: #6d28d9;
  --sym: #0b0612; --rim2: #a855f7; --pglow: rgba(139, 47, 240, .85);
  --grad: linear-gradient(135deg, #9b4dff, #6d28d9);
  --ground: radial-gradient(90vw 70vh at 78% 12%, #e9e3ff 0, transparent 60%), radial-gradient(80vw 60vh at 10% 90%, #ece7ff 0, transparent 65%), linear-gradient(#fbfaff, #f1eefc);
  --display: "Montserrat", system-ui, sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r: 16px;
  color-scheme: light;
}
/* Night. The burner phone (a local test screen) is a dark handset in either look. */
:root:root.t-night, :root:root .burner-screen {
  --bg: #07060f; --bg-2: #0d0a1d; --panel: #110d24; --panel-2: #171230; --panel-3: #1e183c;
  --line: rgba(201, 192, 255, .13); --line-2: rgba(201, 192, 255, .24);
  --text: #f4f2ff; --muted: #b3aecf; --dim: #8c87ab;
  --red: #b794ff; --red-2: #cdb5ff; --red-deep: #2a1f55; --accent-rgb: 183, 148, 255;
  --glow: rgba(168, 85, 247, .55);
  --ok: #8ee8b0; --wait: #ffc56b; --err: #ff8089;
  --ok-rgb: 142, 232, 176; --wait-rgb: 255, 197, 107; --err-rgb: 255, 128, 137;
  --card: rgba(201, 180, 255, .06); --card-s: #130f29; --card-b: rgba(201, 180, 255, .22);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, .8);
  --chip-bg: rgba(168, 85, 247, .2); --chip-ink: #e0d0ff;
  --sym: #efe9ff; --rim2: #c084fc; --pglow: rgba(168, 85, 247, .95);
  --ground: radial-gradient(90vw 70vh at 78% 12%, #1c1640 0, transparent 60%), radial-gradient(80vw 60vh at 10% 95%, #151033 0, transparent 65%), linear-gradient(#05040b, #0a0818);
  color-scheme: dark;
}

html { background: var(--bg); }
body { font: 400 15.5px/1.5 var(--sans); color: var(--text); background: transparent; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--ground); pointer-events: none; }
.grain { display: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.th-anim, .th-anim *, .th-anim *::before, .th-anim *::after { transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, stroke .2s ease, fill .2s ease !important; }
a { text-decoration-color: rgba(var(--accent-rgb), .5); text-underline-offset: 3px; }
.card a, .lede a, .note a { color: var(--red-2); }

/* ---------- the mark: the power symbol, and BLACK(power)UT ---------- */
.pw { display: inline-block; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 13.5; color: var(--sym); overflow: visible; flex: none; }
.pw path:first-of-type { stroke-linecap: round; }
.wm { font-family: var(--display); font-weight: 900; letter-spacing: .01em; white-space: nowrap; display: inline-flex; align-items: baseline; text-transform: none; color: var(--text); }
.wm .pw { width: .88em; height: .88em; stroke-width: 15.5; margin: 0 .01em 0 .02em; align-self: center; transform: translateY(-.055em); filter: drop-shadow(0 0 .012em var(--rim2)) drop-shadow(0 0 .028em var(--rim2)) drop-shadow(0 0 .11em var(--pglow)); }
.brand.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo__ico { width: 31px; height: 31px; stroke-width: 14.5; filter: drop-shadow(0 0 1px var(--rim2)) drop-shadow(0 0 6px var(--pglow)); }
.logo__t { display: flex; flex-direction: column; gap: 4px; }
.logo .wm { font-size: 19px; line-height: 1; }
.logo small { font: 600 7.5px/1 var(--sans); letter-spacing: .19em; text-transform: uppercase; color: var(--red); white-space: nowrap; }

/* the lights switch, as in the site's nav */
.switch {
  all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px 0 12px;
  border-radius: 11px; font: 600 13px/1 var(--sans); color: var(--muted); background: var(--card); box-shadow: inset 0 0 0 1px var(--card-b);
}
.switch .pw { width: 17px; height: 17px; stroke-width: 12; }
.switch:hover { color: var(--text); }
.switch:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.switch--ico { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 10px; }
.switch--ico .switch__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.topbar__end { display: flex; align-items: center; gap: 8px; }

/* ---------- shell ---------- */
.rail { background: color-mix(in srgb, var(--card-s) 62%, transparent); border-right: 1px solid var(--line); gap: 14px; overflow-y: auto; scrollbar-width: thin; }
.rail__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rail .spacer { min-height: 0; }
.nav button { font: 500 14px/1.2 var(--sans); letter-spacing: 0; color: var(--muted); border-radius: 11px; transition: color .2s, background-color .2s; }
.nav button .ix { color: var(--dim); }
.nav button:hover { color: var(--text); background: rgba(var(--accent-rgb), .07); }
.nav button[aria-current='page'] { color: var(--chip-ink); font-weight: 600; background: var(--chip-bg); box-shadow: none; }
.nav button[aria-current='page'] .ix { color: var(--red); }
.nav .chip { font-size: 8.5px; height: auto; }
.net { background: var(--card); border-color: var(--card-b); font: 600 12px/1.3 var(--sans); letter-spacing: .08em; }
.net small { font-family: var(--sans); color: var(--muted); }
.net .dot, .netpill .dot { box-shadow: 0 0 0 3px rgba(var(--ok-rgb), .16); }
body[data-net='offline'] .net { background: var(--chip-bg); }
body[data-net='offline'] .net .dot, body[data-net='offline'] .netpill .dot { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .2); }
.who { color: var(--muted); }
.legal { color: var(--dim); }
.side { background: color-mix(in srgb, var(--card-s) 50%, transparent); border-left: 1px solid var(--line); }
.side h3 { font: 600 11.5px/1 var(--sans); letter-spacing: .12em; color: var(--muted); }

/* ---------- type ---------- */
.kicker { font: 600 12px/1 var(--sans); letter-spacing: .14em; color: var(--red); gap: 12px; }
.kicker::before { width: 34px; border-radius: 2px; box-shadow: none; }
h1 {
  margin: 14px 0 10px -.03em; font: 900 clamp(26px, min(3.3vw, 6.6vh), 42px)/1.04 var(--display); font-stretch: normal;
  letter-spacing: -.028em; text-transform: uppercase; color: var(--text); text-wrap: balance;
}
h2 { font: 700 17px/1.2 var(--display); font-stretch: normal; letter-spacing: -.015em; text-transform: none; color: var(--text); margin-bottom: 8px; }
.lede { color: var(--muted); font-size: 15.5px; line-height: 1.5; max-width: 62ch; }
.lede b, .note b { color: var(--text); }
.note { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.muted { color: var(--muted); }
.modeline a { color: var(--red-2); }

/* ---------- cards, chips ---------- */
.card {
  background: var(--card); border: 1px solid var(--card-b); border-radius: var(--r);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.t-night .card { box-shadow: var(--shadow); }
.chip { height: 22px; padding: 0 9px; border: 0; font: 600 11px/1 var(--sans); letter-spacing: .06em; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.chip.red { background: var(--chip-bg); color: var(--chip-ink); box-shadow: none; }
.chip.live { background: rgba(var(--ok-rgb), .12); color: var(--ok); box-shadow: none; }
.chip.soon { background: none; color: var(--muted); box-shadow: none; border: 1px dashed var(--dim); }

/* ---------- forms ---------- */
.field > span { font: 600 11.5px/1.2 var(--sans); letter-spacing: .1em; color: var(--muted); }
.input, .select { background-color: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; font: 500 15px/1.2 var(--mono); color: var(--text); }
.input::placeholder { color: var(--dim); opacity: .8; }
.input:focus, .select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .16); }
.select option { background: var(--bg-2); color: var(--text); }

:root:root .btn:not(.ghost):not(.line):not(.quiet), .btn {
  min-height: 48px; padding: 0 22px; border-radius: 13px; font: 600 15.5px/1 var(--sans); font-stretch: normal; letter-spacing: 0; text-transform: none;
  color: #fff; background: var(--grad); box-shadow: 0 12px 30px -12px rgba(124, 58, 237, .8), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
}
.btn::after { display: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(124, 58, 237, .95), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
:root:root .btn.ghost { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text) 78%, transparent); }
:root:root .btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--red); }
:root:root .btn.sm { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
:root:root .btn.ghost.sm { box-shadow: inset 0 0 0 1px var(--line-2); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .4; filter: none; }
.bubble .btn { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
.swap-waiting .btn { padding: 0 14px; font-size: 13px; }

.status { font: 500 13.5px/1.5 var(--sans); color: var(--muted); }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

/* ---------- balance ---------- */
.vault { overflow: hidden; background: linear-gradient(135deg, var(--card), rgba(var(--accent-rgb), .09)); }
/* The power symbol, large and faint, where the old look had a red rim light. */
.vault::before {
  left: auto; right: -34px; top: -38px; bottom: auto; width: 210px; height: 210px; border-radius: 0; background: none; box-shadow: none; animation: none; opacity: .09; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%237c3aed' stroke-width='11' stroke-linecap='round'%3E%3Cpath fill='%237c3aed' stroke='none' d='M8.56 27.76 L33.61 11.37 L33.61 30.57 L25.41 35.56 L25.41 64.13 L50 79.11 L74.59 64.13 L74.59 35.56 L66.47 30.57 L66.47 11.37 L91.44 27.76 L91.44 73.02 L50 98 L8.56 73.02Z'/%3E%3Cpath fill='%237c3aed' stroke='none' d='M50 2 L58.35 6.84 L58.35 44.93 L50 49.77 L41.65 44.93 L41.65 6.84Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.t-night .vault::before { opacity: .16; }
.vault .label { font: 600 11.5px/1 var(--sans); letter-spacing: .12em; color: var(--muted); }
.vault .label .mono { font-family: var(--mono); letter-spacing: .02em; text-transform: none; }
.big { margin: 14px 0 6px; font: 900 clamp(38px, min(5.2vw, 9.4vh), 64px)/1 var(--display); font-stretch: normal; letter-spacing: -.03em; color: var(--text); }
.big small { font-weight: 700; color: var(--muted); letter-spacing: 0; }
.side .mini .big { font-size: 34px; }
.pill { background: var(--bg-2); border-color: var(--line); border-radius: 11px; }
.act { background: var(--card); border: 1px solid var(--card-b); border-radius: 14px; box-shadow: var(--shadow); transition: border-color .25s, transform .3s cubic-bezier(.2, .8, .2, 1), background-color .25s; }
.act:hover { border-color: var(--red); background: var(--card-s); transform: translateY(-2px); }
.act .n { color: var(--red); }
.act b { font: 700 15px/1.15 var(--display); font-stretch: normal; letter-spacing: -.015em; text-transform: none; color: var(--text); }
.act span { font-size: 13px; color: var(--muted); }
.act:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- lists ---------- */
.list .k { font: 600 13.5px/1.3 var(--sans); }
.list .v.in { color: var(--ok); }
.list .empty { color: var(--dim); font-size: 13.5px; }
.st { font-family: var(--sans); font-size: 10px; letter-spacing: .06em; border-radius: 99px; padding: 2px 7px; }
.st.waiting { background: rgba(var(--wait-rgb), .13); }
.st.delivered, .st.success, .st.credited { background: rgba(var(--ok-rgb), .12); }
.st.refused, .st.failed { background: rgba(var(--err-rgb), .12); }
.kv dt { font: 600 11px/1.9 var(--sans); letter-spacing: .1em; color: var(--dim); }

/* ---------- steps, offline send ---------- */
.step .num { background: var(--bg-2); border-color: var(--line-2); color: var(--muted); border-radius: 13px; }
:root:root .step.done .num { color: #fff; background: var(--grad); box-shadow: 0 10px 24px -10px rgba(124, 58, 237, .8); }
.step p { font-size: 14px; }
.banner { background: var(--card); border-color: var(--card-b); font-size: 14px; }
.banner .bar { box-shadow: none; }
body[data-net='offline'] .banner { background: var(--chip-bg); border-color: rgba(var(--accent-rgb), .45); }
body[data-net='offline'] .banner .bar { box-shadow: none; }
.banner.lane-truth, body[data-net='offline'] .banner.lane-truth { border-color: rgba(var(--wait-rgb), .45); background: rgba(var(--wait-rgb), .09); }
.banner.lane-truth .bar, body[data-net='offline'] .banner.lane-truth .bar { background: var(--wait); box-shadow: none; }
.mode { background: var(--bg-2); border-color: var(--line-2); border-radius: 13px; transition: border-color .2s, background-color .2s; }
.mode b { font: 700 14.5px/1.2 var(--display); font-stretch: normal; letter-spacing: -.01em; text-transform: none; }
.mode span { font-size: 13px; }
.mode:has(input:checked) { border-color: var(--red); background: var(--chip-bg); box-shadow: inset 0 0 0 1px var(--red); }
.code-card::before { display: none; }
:root:root :is(.codebox, .chat.sim .bubble.them) { color: var(--text); }
.codebox { background: var(--bg-2); border-color: var(--line-2); border-radius: 12px; }
.codebox .count { font-family: var(--sans); }
.qr { border-radius: 14px; box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.via li b { font: 600 11px/1.9 var(--sans); letter-spacing: .1em; }
.who-warn, .cap-note, .hint { border-radius: 0 12px 12px 0; }
.hint { font-size: 13.5px; }
.hint.ok { background: rgba(var(--ok-rgb), .08); }
.hint.timing { background: rgba(var(--wait-rgb), .1); }
.hint.now-warn { background: rgba(var(--err-rgb), .08); }
.name-match { background: var(--chip-bg); border-radius: 13px; }
.name-match[data-state='changed'] { background: rgba(var(--err-rgb), .08); border-color: rgba(var(--err-rgb), .5); }
.nm-head b { font: 700 19px/1.15 var(--display); font-stretch: normal; letter-spacing: -.015em; }
.name-in .at { background: var(--chip-bg); color: var(--chip-ink); border-radius: 12px 0 0 12px; }
.name-in .input { border-radius: 0 12px 12px 0; }
.swap-to b { font: 700 16px/1 var(--display); font-stretch: normal; letter-spacing: -.01em; }
.swap-quote, .xquote, .secret { background: var(--bg-2); border-radius: 13px; }
.xq-row > span:first-child { font-family: var(--sans); }

/* ---------- toast, confirm ---------- */
.toast { background: var(--text); color: var(--bg); border: 0; border-radius: 13px; font: 500 13.5px/1.4 var(--sans); box-shadow: 0 20px 50px -20px rgba(13, 11, 24, .6); }
.toast::before { background: #a855f7; box-shadow: none; }
dialog.confirm { background: var(--card-s); color: var(--text); border: 1px solid var(--card-b); border-radius: 18px; box-shadow: 0 40px 90px -30px rgba(40, 10, 110, .55); }
dialog.confirm::backdrop { background: rgba(13, 11, 24, .55); backdrop-filter: blur(3px); }

/* ---------- toggles, chips that are buttons ---------- */
.toggle { font-size: 14px; }
.toggle span { background: var(--panel-3); border-color: var(--line-2); }
.toggle span::after { background: var(--dim); }
.toggle input:checked + span { background: var(--red); border-color: var(--red); }
.toggle input:checked + span::after { background: #fff; box-shadow: none; }
.toggle:has(input:focus-visible) span { outline: 2px solid var(--red); outline-offset: 2px; }
.chipbtn { font: 500 13px/1 var(--sans); color: var(--muted); border-color: var(--line-2); background: var(--bg-2); }
.chipbtn:hover { color: var(--text); border-color: var(--red); }
.std .chipbtn.on { background: var(--chip-bg); color: var(--chip-ink); }

/* ---------- the code card: a printed sheet ---------- */
.cipher { color: var(--text); background: var(--card-s); border: 1.5px solid var(--text); border-radius: 14px; box-shadow: var(--shadow); }
.cipher::before { display: none; }
.cipher-head .pw { width: 34px; height: 34px; }
.cipher-head b { font: 900 19px/1 var(--display); font-stretch: normal; letter-spacing: .01em; }
.cipher-head div span { font-family: var(--sans); letter-spacing: .1em; }
.cipher-seal { border-color: var(--red); color: var(--red-2); font-family: var(--sans); letter-spacing: .14em; border-radius: 6px; }
.cipher-grid li { background: var(--bg-2); border-color: var(--line-2); border-radius: 8px; }
.cipher-grid li b { color: var(--red-2); }
.cipher-foot { font-family: var(--sans); font-size: 12px; }

/* ---------- agent, burner phone ---------- */
:root:root .bubble.me { background: var(--chip-bg); border-color: rgba(var(--accent-rgb), .4); color: var(--text); }
.bubble.them { background: var(--bg-2); border-color: var(--line-2); }
.proposal b { font: 900 28px/1 var(--display); font-stretch: normal; letter-spacing: -.02em; }
.proposal span { font-family: var(--sans); }
.burner-screen { background: #07060f; border-color: #1d1838; color: var(--text); box-shadow: 0 0 0 1px var(--line-2), 0 30px 70px -30px rgba(13, 11, 24, .7); }

/* ---------- phones ---------- */
@media (max-height: 740px) and (min-width: 821px) {
  h1 { margin: 10px 0 8px -.03em; }
}
@media (max-width: 820px) {
  .topbar { background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom-color: var(--line); }
  .topbar .logo__ico { width: 27px; height: 27px; }
  .topbar .logo .wm { font-size: 17px; }
  .topbar .logo small { display: none; }
  .netpill { border-color: var(--line-2); font: 600 11px/1 var(--sans); letter-spacing: .08em; color: var(--muted); background: var(--card); }
  body[data-net='offline'] .netpill { color: var(--red-2); }
  h1 { font-size: clamp(24px, 7.4vw, 34px); }
  .big { font-size: clamp(38px, 12vw, 56px); }
  .tabbar { background: color-mix(in srgb, var(--bg) 90%, transparent); border-top-color: var(--line); }
  .tabbar button { font: 600 10.5px/1 var(--sans); letter-spacing: .04em; text-transform: none; color: var(--dim); }
  .tabbar button i { height: 3px; border-radius: 3px; opacity: .35; }
  .tabbar button[aria-current='page'] { color: var(--chip-ink); }
  .tabbar button[aria-current='page'] i { box-shadow: none; }
}

/* The relay and claim pages (relay.html, claim.html) */
.relay .brand.logo { margin-bottom: 26px; }
.relay h1 { font-size: clamp(26px, 7.4vw, 40px) !important; }
.amountline { font: 900 clamp(40px, 12vw, 64px)/1 var(--display) !important; font-stretch: normal !important; letter-spacing: -.03em !important; }
.seal { font-family: var(--sans) !important; letter-spacing: .12em !important; }
.seal i { box-shadow: none !important; border-radius: 2px; }

@media print {
  body::before { display: none; }
}

/* ---------- phones: the bottom bar (2026-11-23, owner: "the bottom doesn't look clean") ----------
   A solid bar with line icons (drawn as masks, so they take the text colour) and the current screen in a soft
   pill. Shadows under cards are lighter on phones, where they ran into each other. */
@media (max-width: 820px) {
  .shell { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .tabbar {
    left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 6px; gap: 2px; border-radius: 20px;
    background: var(--card-s); border: 1px solid var(--card-b); box-shadow: 0 14px 36px -18px rgba(60, 20, 150, .45), 0 1px 0 rgba(255, 255, 255, .5) inset;
  }
  :root:root .tabbar { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tabbar button { gap: 4px; padding: 7px 2px 6px; border-radius: 14px; font: 600 10.5px/1.1 var(--sans); letter-spacing: 0; color: var(--dim); transition: color .2s, background-color .2s; }
  .tabbar button i { width: 22px; height: 22px; border-radius: 0; opacity: 1; background: currentColor; box-shadow: none; -webkit-mask: center / 22px 22px no-repeat; mask: center / 22px 22px no-repeat; }
  .tabbar button[aria-current='page'] { color: var(--chip-ink); background: var(--chip-bg); }
  .tabbar button[aria-current='page'] i { background: currentColor; box-shadow: none; }
  .tabbar button:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .card, .act, .xp { box-shadow: 0 10px 26px -20px rgba(80, 30, 190, .4); }
  .t-night .card, .t-night .act, .t-night .xp { box-shadow: 0 12px 30px -20px rgba(0, 0, 0, .8); }
  /* the Wallet screen: the switch beside its first line, and the older-balance line on its own */
  .toggle { align-items: flex-start; line-height: 1.45; }
  .toggle span { margin-top: 1px; }
  #s-zk p.muted { margin-top: 12px; line-height: 1.5; }
  #s-zk p.muted .btn { display: flex; width: fit-content; margin-top: 8px; }
}
.tabbar button[data-go='balance'] i { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.2 5.6L4.6 8v8.2L12 20.7l7.4-4.5V8l-3.6-2.4'/%3E%3Cpath d='M12 3.2v8'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.2 5.6L4.6 8v8.2L12 20.7l7.4-4.5V8l-3.6-2.4'/%3E%3Cpath d='M12 3.2v8'/%3E%3C/svg%3E"); }
.tabbar button[data-go='deposit'] i { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5v10.5'/%3E%3Cpath d='M7.8 10l4.2 4.2 4.2-4.2'/%3E%3Cpath d='M4.5 15v2.5a2.5 2.5 0 0 0 2.5 2.5h10a2.5 2.5 0 0 0 2.5-2.5V15'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5v10.5'/%3E%3Cpath d='M7.8 10l4.2 4.2 4.2-4.2'/%3E%3Cpath d='M4.5 15v2.5a2.5 2.5 0 0 0 2.5 2.5h10a2.5 2.5 0 0 0 2.5-2.5V15'/%3E%3C/svg%3E"); }
.tabbar button[data-go='send'] i { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 3.5l-6.3 17-3.3-7.4-7.4-3.3z'/%3E%3Cpath d='M20.5 3.5l-9.6 9.6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 3.5l-6.3 17-3.3-7.4-7.4-3.3z'/%3E%3Cpath d='M20.5 3.5l-9.6 9.6'/%3E%3C/svg%3E"); }
.tabbar button[data-go='swap'] i { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8h14'/%3E%3Cpath d='M15 4.5L18.5 8 15 11.5'/%3E%3Cpath d='M19.5 16h-14'/%3E%3Cpath d='M9 12.5L5.5 16 9 19.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8h14'/%3E%3Cpath d='M15 4.5L18.5 8 15 11.5'/%3E%3Cpath d='M19.5 16h-14'/%3E%3Cpath d='M9 12.5L5.5 16 9 19.5'/%3E%3C/svg%3E"); }
.tabbar button[data-go='withdraw'] i { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 14.5V4'/%3E%3Cpath d='M7.8 8.2L12 4l4.2 4.2'/%3E%3Cpath d='M4.5 15v2.5a2.5 2.5 0 0 0 2.5 2.5h10a2.5 2.5 0 0 0 2.5-2.5V15'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 14.5V4'/%3E%3Cpath d='M7.8 8.2L12 4l4.2 4.2'/%3E%3Cpath d='M4.5 15v2.5a2.5 2.5 0 0 0 2.5 2.5h10a2.5 2.5 0 0 0 2.5-2.5V15'/%3E%3C/svg%3E"); }
.tabbar button[data-go='more'] i { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5.5' cy='12' r='1.2'/%3E%3Ccircle cx='12' cy='12' r='1.2'/%3E%3Ccircle cx='18.5' cy='12' r='1.2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5.5' cy='12' r='1.2'/%3E%3Ccircle cx='12' cy='12' r='1.2'/%3E%3Ccircle cx='18.5' cy='12' r='1.2'/%3E%3C/svg%3E"); }

/* ---------- Send privately: the two tabs, and Split to many wallets (split-payout.js) ---------- */
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; margin: 2px 0 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2); max-width: 100%; }
body[data-balance='zk'] .seg.zk-only { display: inline-grid; }
.seg button { all: unset; box-sizing: border-box; cursor: pointer; padding: 10px 18px; border-radius: 10px; font: 600 14px/1.2 var(--sans); color: var(--muted); text-align: center; transition: color .2s, background-color .2s; }
.seg button:hover { color: var(--text); }
.seg button[aria-selected='true'] { color: var(--chip-ink); background: var(--chip-bg); }
.seg button:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.field > span .sp-count { font-style: normal; letter-spacing: 0; color: var(--dim); margin-left: 6px; }
.sp-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sp-rows li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.sp-rows.with-values li { grid-template-columns: 22px minmax(0, 1fr) 124px auto; }
.sp-rows .sp-n { font: 600 12px/1 var(--mono); color: var(--dim); text-align: right; }
.sp-rows .input { min-width: 0; font-size: 13.5px; }
.sp-rows .sp-share { font: 600 12.5px/1.2 var(--mono); color: var(--muted); white-space: nowrap; text-align: right; min-width: 0; }
.sp-rows .sp-share:empty { display: none; }
.sp-tools { flex-wrap: wrap; gap: 8px; }
.sp-paste { width: 100%; box-sizing: border-box; margin-top: 10px; padding: 12px 14px; resize: vertical; font-size: 13px; line-height: 1.5; }
.sp-sub { margin-top: 10px; padding: 2px 14px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.sp-sub .toggle { font-size: 13.5px; }
.sp-sub .field > span b, .field > span b { color: var(--text); }
.range { width: 100%; margin: 6px 0 0; accent-color: var(--red); }
.modes.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#sp-length.err, #sp-review-note.err { color: var(--err); }
.sp-plan { counter-reset: none; padding: 0; margin: 14px 0 0; max-height: 340px; overflow: auto; border-top: 1px solid var(--line); }
.sp-plan .k .sp-at { font: 500 12px/1.3 var(--sans); color: var(--muted); margin-left: 6px; }
.sp-plan .v small { display: block; margin-top: 3px; font: 500 11px/1.2 var(--mono); color: var(--muted); }
#sp-review-warn .hint { margin-top: 10px; }
.sp-steps { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; gap: 12px; }
.sp-steps li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start; }
.sp-steps li i { width: 12px; height: 12px; margin: 4px 3px 0; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); }
.sp-steps li b { display: block; font: 600 14.5px/1.3 var(--sans); color: var(--muted); }
.sp-steps li span { display: block; font-size: 13px; line-height: 1.45; color: var(--muted); }
.sp-steps li[data-state='active'] b, .sp-steps li[data-state='done'] b { color: var(--text); }
.sp-steps li[data-state='active'] i { box-shadow: inset 0 0 0 2px var(--red); animation: sp-pulse 1.4s ease-in-out infinite; }
.sp-steps li[data-state='done'] i { background: var(--red); box-shadow: none; }
.sp-steps li[data-state='stopped'] i { box-shadow: inset 0 0 0 2px var(--err); }
@keyframes sp-pulse { 0%, 100% { box-shadow: inset 0 0 0 2px var(--red), 0 0 0 0 rgba(var(--accent-rgb), .45); } 50% { box-shadow: inset 0 0 0 2px var(--red), 0 0 0 6px rgba(var(--accent-rgb), 0); } }
@media (prefers-reduced-motion: reduce) { .sp-steps li[data-state='active'] i { animation: none; } }
.sp-sched + .sp-sched { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.sp-sched header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sp-sched header b { display: block; font: 700 15px/1.25 var(--sans); }
.sp-sched header span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.sp-sched .list { padding: 0; margin: 6px 0 0; max-height: 300px; overflow: auto; }
.st.cancelled { color: var(--muted); background: rgba(var(--accent-rgb), .08); }
.sp-sched .k .sp-at { font: 500 12px/1.3 var(--sans); color: var(--muted); margin-left: 6px; }
.sp-sched .v .btn { display: block; margin: 8px 0 0 auto; }
@media (max-width: 620px) {
  .seg, body[data-balance='zk'] .seg.zk-only { display: grid; }
  .seg button { padding: 10px 8px; font-size: 13.5px; }
  .modes.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-sub .two-in { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sp-rows li, .sp-rows.with-values li { grid-template-columns: 18px minmax(0, 1fr) auto; row-gap: 6px; }
  .sp-rows.with-values .sp-val { grid-column: 2; grid-row: 2; }
  .sp-rows .sp-share { grid-column: 2; grid-row: 2; text-align: left; }
  .sp-rows .sp-del { grid-column: 3; grid-row: 1; }
  .sp-sched header { align-items: flex-start; flex-direction: column; }
  .sp-plan li { flex-direction: column; gap: 4px; }
  .sp-plan .v { text-align: left; white-space: normal; }
  .sp-plan .v small { display: inline; margin-left: 8px; }
}

/* ---------- Ready wallets (ready-wallets.js) ---------- */
.rw-list li { align-items: center; flex-wrap: wrap; }
.rw-list .rw-t { display: grid; gap: 3px; min-width: 0; flex: 1 1 260px; }
.rw-list .rw-t .s { font-family: var(--sans); font-size: 12.5px; }
.rw-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.secret.rw-key code { font-size: 13px; user-select: all; }
.kv dd.err { color: var(--err); }
/* The key card scrolls into view under the phone's fixed top bar: leave room for the bar. */
#c-rw-key { margin-bottom: 14px; scroll-margin-top: 84px; }
#c-rw-key .note b, #c-rw-shop .note b { color: var(--text); }
/* The "how to pay" card: the details beside a QR code of the address; stacked on a phone. */
#c-rw-pay { margin-bottom: 14px; scroll-margin-top: 84px; }
.rw-pay { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; }
.rw-pay .kv dd.mono { font-size: 12.5px; user-select: all; }
.rw-qr img { display: block; width: 132px; height: 132px; padding: 8px; background: #fff; border-radius: 12px; image-rendering: pixelated; }
#rw-coin { width: 100%; }
@media (max-width: 620px) {
  .rw-pay { grid-template-columns: minmax(0, 1fr); }
  .rw-qr img { width: 148px; height: 148px; }
}

/* The logo (28 Nov 2026): the hexagon mark as an image (img/mark.svg), "Blackout" in title case, and
   "Privacy by design." under it. */
img.logo__ico { display: block; object-fit: contain; filter: drop-shadow(0 0 5px rgba(139, 47, 240, .4)); }
.logo .wm { font-weight: 700; letter-spacing: -.012em; }
.logo small { text-transform: none; letter-spacing: .2em; font-weight: 500; color: var(--muted, #6f6a8a); }

/* Lights out: the logo's dark version (img/mark-dark.svg: bright edges on a deep fill), with its glow. Where a
   browser doesn't swap the picture, the glow alone still lifts the mark off the dark. */
.t-night img.logo__ico, .t-night.logo img.logo__ico, :root.t-night img.logo__ico { filter: drop-shadow(0 0 6px rgba(160, 90, 255, .7)); }
.t-night .logo small, :root.t-night .logo small { color: #a99fd0; }

/* The small brand glyph is the hexagon mark, filled (29 Nov 2026). */
.pw .pw__m { fill: currentColor; stroke: none; }
