:root {
  --ink: #0b0b0c;
  --paper: #ffffff;
  --line: #e4e5e5;
  --stone: #76787a;
  --ground: #f7f7fa;
  --ok: #2e7d32;
  --bad: #b3261e;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); }
body { font: 15px/1.5 "Inter Tight", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
.shell { max-width: 440px; margin: 0 auto; min-height: 100vh; background: var(--paper); display: flex; flex-direction: column; }
@media (min-width: 520px) { .shell { margin: 24px auto; min-height: calc(100vh - 48px); border: 1px solid var(--line); } }
.top { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.brand { font-family: Archivo, sans-serif; font-weight: 800; font-stretch: 72%; text-transform: uppercase; font-size: 22px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.beta { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--ink); padding: 1px 6px; }
.unit { margin-left: auto; background: none; border: 1px solid var(--line); font: 600 11px "Inter Tight", sans-serif; letter-spacing: .08em; padding: 4px 8px; cursor: pointer; color: var(--ink); }
.panes { display: flex; flex: 1; min-height: 0; }
main { padding: 20px; display: flex; flex-direction: column; gap: 16px; flex: 1; min-width: 0; }
#side { display: none; }
/* Wide screens: the wallet on the left, the selected transaction or subscription beside it. */
body.split .shell { max-width: 1040px; }
body.split main { flex: 0 0 440px; border-right: 1px solid var(--line); }
body.split #side {
  display: flex; flex-direction: column; gap: 16px; flex: 1; min-width: 0; max-width: 600px;
  padding: 20px 28px;
  position: sticky; top: 0; align-self: flex-start; max-height: 100vh; overflow-y: auto;
}
.side-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.side-empty { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 240px; }
.detail-amount { font-size: 34px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
.item .amt { text-align: right; white-space: nowrap; }
.item .amt .small { display: block; }
a.item:hover { background: var(--ground); }
.item.selected { background: var(--ground); box-shadow: inset 2px 0 0 var(--ink); }
main .list a.item { margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
h1 { font-family: Archivo, sans-serif; font-weight: 800; font-stretch: 72%; text-transform: uppercase; font-size: 40px; line-height: .92; margin: 4px 0 0; }
h2 { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); margin: 8px 0 0; }
p { margin: 0; }
.mut { color: var(--stone); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; word-break: break-all; }
.balance { background: var(--ink); color: var(--paper); padding: 18px; }
.balance .label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.balance .amount { font-size: 34px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.balance .sub { font-size: 13px; opacity: .8; }
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.btn, button.btn { display: inline-flex; justify-content: center; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font: 600 11px "Inter Tight", sans-serif; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.wide { width: 100%; }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.actions .btn { padding: 0 4px; height: 52px; flex-direction: column; gap: 2px; letter-spacing: .06em; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.item .what { min-width: 0; }
.item .what .mono { display: block; color: var(--stone); }
.plus { color: var(--ok); }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
input, textarea { font: 15px "Inter Tight", sans-serif; color: var(--ink); border: 1px solid var(--line); padding: 11px 12px; width: 100%; background: var(--paper); text-transform: none; letter-spacing: 0; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); }
.hint { font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--stone); }
.hint.bad { color: var(--bad); }
.hint.ok { color: var(--ok); }
.note { border: 1px solid var(--line); padding: 14px; }
.note.ok { border-color: var(--ok); color: var(--ok); }
.note.bad { border-color: var(--bad); color: var(--bad); }
.steps { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.steps .on { font-weight: 600; }
.steps .done { color: var(--stone); text-decoration: line-through; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; }
.dot { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; border: 1px dashed var(--line); color: var(--stone); }
.dot.billed { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.dot.scheduled { border: 2px solid var(--ink); color: var(--ink); }
.dot.funded { border: 1px solid var(--ink); color: var(--ink); }
.dot.refunded { border: 1px solid var(--bad); color: var(--bad); }
.qr { background: var(--paper); border: 1px solid var(--line); padding: 16px; display: flex; justify-content: center; }
.qr svg { width: 220px; height: 220px; }
.back { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); text-decoration: none; }
.spacer { flex: 1; }
.big { font-size: 22px; font-weight: 600; }
/* Shops' checkout requests, live from the wallet's mailbox. */
.banner { border-bottom: 1px solid var(--line); background: var(--ground); }
.banner .request { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; font-size: 14px; }
.banner .request + .request { border-top: 1px solid var(--line); }
.banner .request-actions { display: flex; gap: 6px; flex: none; }
.banner .btn { height: 34px; padding: 0 12px; }
/* Settings: a switch with its explanation. */
.toggle { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); padding: 14px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.toggle > span { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.when { white-space: nowrap; }
