/* TWYPT — black and white, dots and pills. */
@font-face { font-family: "Doto"; src: url(/ui/fonts/doto.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/ui/fonts/instrument-sans.woff2) format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/geist-mono/geist-mono-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/geist-mono/geist-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root, .flip .flip {
  --bg: #000; --fg: #fff;
  --mute: rgba(255,255,255,.58); --faint: rgba(255,255,255,.34);
  --line: rgba(255,255,255,.16); --soft: rgba(255,255,255,.07);
  --ease: cubic-bezier(.65,0,.35,1);
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --dot: "Doto", "Geist Mono", ui-monospace, monospace;
  --pad: clamp(20px, 4vw, 56px);
  color-scheme: dark;
}
:root[data-theme="light"], .flip, :root[data-theme="light"] .flip .flip {
  --bg: #fff; --fg: #000;
  --mute: rgba(0,0,0,.6); --faint: rgba(0,0,0,.38);
  --line: rgba(0,0,0,.16); --soft: rgba(0,0,0,.05);
  color-scheme: light;
}
:root[data-theme="light"] .flip {
  --bg: #000; --fg: #fff;
  --mute: rgba(255,255,255,.58); --faint: rgba(255,255,255,.34);
  --line: rgba(255,255,255,.16); --soft: rgba(255,255,255,.07);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.5 var(--sans); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
.flip { background: var(--bg); color: var(--fg); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- type ---------- */
.h1 { font-weight: 500; font-stretch: 80%; font-size: clamp(46px, 7vw, 112px); line-height: .94; letter-spacing: -.035em; }
.h2 { font-weight: 500; font-stretch: 82%; font-size: clamp(34px, 4.4vw, 64px); line-height: .98; letter-spacing: -.03em; }
.h3 { font-weight: 500; font-stretch: 88%; font-size: clamp(22px, 2vw, 28px); line-height: 1.1; letter-spacing: -.02em; }
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.45; color: var(--mute); max-width: 34em; }
.label { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.mono { font-family: var(--mono); }
.num { font-family: var(--dot); font-weight: 900; font-variation-settings: "ROND" 100; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mute { color: var(--mute); }
code, .cmd { font-family: var(--mono); font-size: .94em; }

/* ---------- pieces ---------- */
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--pad); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 50px; padding: 0 22px 0 24px;
  border-radius: 999px; font-weight: 600; font-size: 16px; letter-spacing: -.005em; white-space: nowrap;
  background: var(--fg); color: var(--bg); border: 1px solid var(--fg);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), opacity .3s var(--ease); }
.btn::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none;
  transition: transform .45s var(--ease); }
.btn:hover::after { transform: translateX(6px); }
.btn:active { opacity: .8; }
.btn--line { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--line:hover { border-color: var(--fg); }
.btn--sm { height: 38px; padding: 0 14px 0 16px; font-size: 14px; gap: 9px; }
.btn--sm::after { width: 6px; height: 6px; }
.btn--plain::after { display: none; }
.btn--plain { padding-inline: 20px; }
.btn--sm.btn--plain { padding-inline: 15px; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn svg { width: 16px; height: 16px; flex: none; }

.link { border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .3s var(--ease); }
.link:hover { border-color: var(--fg); }

.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: inline-grid; place-items: center;
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease); }
.icon-btn:hover { border-color: var(--fg); }
.icon-btn svg { width: 15px; height: 15px; }

/* the mark: a bar over two dots */
.mark { display: inline-grid; grid-template-columns: 9px 9px; justify-content: space-between; gap: 4px 0; width: 26px; flex: none; }
.mark::before { content: ""; grid-column: 1 / -1; width: 26px; height: 9px; border-radius: 9px; background: currentColor; }
.mark::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 17px 0 0 currentColor; transition: transform .5s var(--ease); }
a:hover > .mark::after { transform: translateY(3px); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; letter-spacing: .08em; }

/* copy chip (contract address, wallet, links) */
.chip { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 6px 0 14px; border: 1px solid var(--line);
  border-radius: 999px; font: 500 12px/1 var(--mono); max-width: 100%; transition: border-color .3s var(--ease); cursor: pointer; }
.chip:hover { border-color: var(--fg); }
.chip b { font-weight: 500; color: var(--mute); letter-spacing: .1em; }
.chip span.v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chip i { font-style: normal; flex: none; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--fg); color: var(--bg);
  display: inline-grid; place-items: center; font: 600 12px/1 var(--sans); min-width: 58px; }

/* reveal on scroll: eased in, and eased out again when it leaves */
[data-rv] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
[data-rv].in { opacity: 1; transform: none; }

/* dot board */
.board { display: block; width: 100%; min-width: 0; max-width: 100%; contain: inline-size; color: var(--fg); }

/* ---------- site header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 40; color: #fff; mix-blend-mode: difference; pointer-events: none; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.top a, .top button { pointer-events: auto; }
.top nav { display: flex; align-items: center; gap: 10px; }
.top nav .t-link { font-size: 15px; font-weight: 500; padding: 8px 12px; }
.top .icon-btn { border-color: rgba(255,255,255,.3); }
.top .icon-btn:hover { border-color: #fff; }
.top .btn { background: #fff; color: #000; border-color: #fff; }
@media (max-width: 720px) { .top nav .t-link, .top nav .hide-s { display: none; } .top .wrap { height: 64px; } }

/* ---------- landing ---------- */
.hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; padding-top: 76px; }
.hero__head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px var(--pad); align-items: end; padding-block: clamp(32px, 6vh, 80px) clamp(28px, 5vh, 56px); }
.hero__side { display: grid; gap: 26px; justify-items: start; padding-bottom: 6px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__board { border-top: 1px solid var(--line); padding-block: clamp(20px, 3.4vh, 36px) clamp(16px, 2.6vh, 28px); }
.hero__meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: clamp(14px, 2vh, 22px); flex-wrap: wrap; }
.stage { display: inline-flex; align-items: center; gap: 10px; }
.stage::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fg); animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { 50% { opacity: .2; transform: scale(.7); } }
@media (max-width: 900px) { .hero__head { grid-template-columns: minmax(0, 1fr); align-content: end; gap: 24px; } }

.sec { padding-block: clamp(72px, 11vw, 150px); }
.sec__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px var(--pad); align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.sec__head .label { margin-bottom: 22px; display: block; }
@media (max-width: 900px) { .sec__head { grid-template-columns: minmax(0, 1fr); } }

/* composer */
.compose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .compose { grid-template-columns: minmax(0, 1fr); } }
.fields { display: grid; gap: 0; border-top: 1px solid var(--line); }
.field { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; min-height: 72px; border-bottom: 1px solid var(--line); }
.field input { width: 100%; background: none; border: 0; outline: 0; font: 500 clamp(22px, 2.2vw, 30px)/1.2 var(--sans); font-stretch: 86%; letter-spacing: -.02em; padding: 14px 0; min-width: 0; }
.field input::placeholder { color: var(--faint); }
.seg { display: inline-flex; justify-self: start; flex: none; padding: 4px; border: 1px solid var(--line); border-radius: 999px; position: relative; isolation: isolate; }
.seg button { position: relative; z-index: 1; height: 34px; padding: 0 16px; border-radius: 999px; font: 500 13px/1 var(--mono); letter-spacing: .06em; transition: color .35s var(--ease); color: var(--mute); }
.seg button[aria-pressed="true"] { color: var(--bg); }
.seg .seg__thumb { position: absolute; z-index: 0; top: 4px; left: 0; height: 34px; border-radius: 999px; background: var(--fg); transition: transform .45s var(--ease), width .45s var(--ease); }

.post { border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 22px; }
.post__who { display: flex; align-items: center; gap: 12px; }
.post__av { width: 44px; height: 44px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; }
.post__text { font: 500 clamp(24px, 2.6vw, 38px)/1.18 var(--sans); font-stretch: 84%; letter-spacing: -.025em; min-height: 2.4em; overflow-wrap: anywhere; }
.post__text .at { color: var(--mute); }
.post__text .tick { display: inline-block; transition: transform .35s var(--ease), opacity .35s var(--ease); }
.post__text .tick.swap { transform: translateY(.35em); opacity: 0; }
.post__foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grammar { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.grammar li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px var(--pad); padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.grammar code { font-size: 15px; }
.grammar span { color: var(--mute); }
@media (max-width: 640px) { .grammar li { grid-template-columns: 1fr; } }

/* track: what happens after the post */
.track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--pad); padding-top: 44px; }
.track__line { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.track__fill { position: absolute; inset: 0; background: var(--fg); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.track__dot { position: absolute; top: -7px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--fg); transform: translateX(calc(var(--p, 0) * (var(--w, 0px) - 15px))); }
.track li { display: grid; gap: 12px; align-content: start; opacity: .28; transition: opacity .6s var(--ease); }
.track li.on { opacity: 1; }
.track .num { font-size: 34px; line-height: 1; }
.track p { color: var(--mute); max-width: 22em; }
@media (max-width: 900px) {
  .track { grid-template-columns: 1fr; gap: 34px; padding: 0 0 0 40px; }
  .track__line { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .track__fill { transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
  .track__dot { top: 0; left: -7px; transform: translateY(calc(var(--p, 0) * (var(--h, 0px) - 15px))); }
}

/* facts */
.facts { border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.6fr); gap: 10px var(--pad); padding: clamp(22px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.facts dt { font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.facts .big { font-weight: 500; font-stretch: 84%; font-size: clamp(26px, 3vw, 44px); line-height: 1; letter-spacing: -.03em; }
.facts .big.num { font-weight: 900; font-size: clamp(34px, 3.8vw, 56px); }
.facts .note { color: var(--mute); max-width: 30em; }
@media (max-width: 900px) { .facts > div { grid-template-columns: 1fr; } }

.end { padding-block: clamp(64px, 9vw, 120px) 0; }
.end__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: clamp(36px, 5vw, 64px); }
.foot { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; padding-block: 22px 26px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.foot a:hover { color: var(--fg); }

/* ---------- plain pages (how it works, legal, 404) ---------- */
.page { padding-top: clamp(120px, 16vw, 200px); }
.page__head { display: grid; gap: 26px; padding-bottom: clamp(48px, 7vw, 96px); max-width: 1100px; }
.steps { border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px var(--pad); padding: clamp(26px, 3.4vw, 46px) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.steps .num { font-size: clamp(40px, 4.6vw, 68px); line-height: .8; }
.steps p { color: var(--mute); max-width: 36em; }
@media (max-width: 900px) { .steps li { grid-template-columns: 1fr; } }
.plain { border-top: 1px solid var(--line); }
.plain li { padding: 18px 0 18px 28px; border-bottom: 1px solid var(--line); position: relative; max-width: none; }
.plain li::before { content: ""; position: absolute; left: 2px; top: 27px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.legal { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 40px var(--pad); align-items: start; padding-bottom: clamp(72px, 10vw, 140px); }
.legal__toc { position: sticky; top: 100px; display: grid; gap: 10px; font-size: 14px; color: var(--mute); }
.legal__toc a { display: flex; gap: 12px; } .legal__toc a:hover { color: var(--fg); }
.legal section { padding: 34px 0; border-top: 1px solid var(--line); display: grid; gap: 14px; scroll-margin-top: 90px; }
.legal section p, .legal section li { color: var(--mute); }
.legal section ul { display: grid; gap: 8px; }
.legal section li { padding-left: 20px; position: relative; }
.legal section li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.legal h4 { margin: 12px 0 0; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .legal__toc { position: static; } }

/* ---------- connect + pay page ---------- */
.split { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split > div { padding: clamp(96px, 12vh, 140px) var(--pad) var(--pad); display: grid; grid-template-columns: minmax(0, 1fr); align-content: space-between; gap: 40px; min-width: 0; }
.split__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; justify-items: start; max-width: 520px; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); min-height: 0; } .split > div { padding-top: 96px; } .split > div + div { padding-top: var(--pad); } }
.pin { display: grid; gap: 14px; width: 100%; }
.input { height: 56px; width: 100%; border: 1px solid var(--line); border-radius: 999px; background: none; padding: 0 22px; outline: 0; font: 500 18px/1 var(--mono); transition: border-color .3s var(--ease); }
.input:focus { border-color: var(--fg); }
.err { color: var(--fg); border: 1px solid var(--fg); border-radius: 18px; padding: 12px 16px; font-size: 14px; }
.who { display: flex; align-items: center; gap: 18px; }
.av { width: 56px; height: 56px; border-radius: 50%; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); object-fit: cover; flex: none; display: grid; place-items: center; font-weight: 600; overflow: hidden; }
.av--xl { width: clamp(88px, 9vw, 128px); height: clamp(88px, 9vw, 128px); font-size: 40px; }
.av--sm { width: 32px; height: 32px; font-size: 13px; }
.av img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.av img + span { display: none; }
.av svg { width: 40%; height: 40%; }

/* ---------- app ---------- */
.app { min-height: 100svh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.rail { position: sticky; top: 0; height: 100svh; border-right: 1px solid var(--line); padding: 26px 18px 18px; display: grid; grid-template-rows: auto 1fr auto; gap: 34px; }
.rail .brand { padding-left: 10px; }
.rail__nav { display: grid; align-content: start; gap: 2px; position: relative; }
.rail__nav a { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 12px; border-radius: 999px; font-weight: 500; color: var(--mute); transition: color .3s var(--ease); position: relative; z-index: 1; }
.rail__nav a:hover { color: var(--fg); }
.rail__nav a[aria-current="page"] { color: var(--bg); }
.rail__nav svg { width: 17px; height: 17px; flex: none; }
.rail__thumb { position: absolute; left: 0; right: 0; top: 0; height: 44px; border-radius: 999px; background: var(--fg); transition: transform .5s var(--ease); z-index: 0; transform: translateY(calc(var(--i, 0) * 46px)); }
.rail__foot { display: grid; gap: 14px; }
.rail__me { display: flex; align-items: center; gap: 10px; padding: 0 6px; min-width: 0; }
.rail__me b { font-weight: 600; font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail__me small { font-size: 12px; color: var(--mute); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail__tools { display: flex; gap: 8px; align-items: center; padding: 0 4px; }
.rail__tools .out { margin-left: auto; font-size: 13px; color: var(--mute); }
.rail__tools .out:hover { color: var(--fg); }

.main { min-width: 0; padding: clamp(24px, 3.4vw, 48px) clamp(20px, 4vw, 64px) 96px; }
.view { max-width: 1120px; animation: view-in .6s var(--ease) both; }
.view.out { animation: view-out .22s var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes view-out { to { opacity: 0; transform: translateY(-8px); } }
.view__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: clamp(28px, 4vw, 52px); }
.view__head .h2 { font-size: clamp(34px, 4vw, 56px); }

.bal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.bal > div { padding: 26px 24px 24px 0; display: grid; gap: 16px; min-width: 0; }
.bal > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.bal .num { font-size: clamp(40px, 5.4vw, 84px); line-height: .82; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bal .num.zero { color: var(--faint); }
.bal .sym { display: flex; align-items: center; gap: 9px; font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--mute); }
.bal .sym::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fg); }
.bal--err { padding: 26px 0; border-block: 1px solid var(--line); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
@media (max-width: 700px) { .bal { grid-template-columns: 1fr; } .bal > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } .bal > div { grid-template-columns: 1fr auto; align-items: end; padding: 18px 0; } }

/* the pay line */
.payline { padding: clamp(28px, 4vw, 52px) 0; border-bottom: 1px solid var(--line); }
.payline__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font: 500 clamp(30px, 4.2vw, 60px)/1.1 var(--sans); font-stretch: 80%; letter-spacing: -.035em; }
.payline__row > span { color: var(--mute); }
.slot { position: relative; display: inline-flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--line); transition: border-color .3s var(--ease); padding-bottom: 2px; }
.slot:focus-within { border-color: var(--fg); }
.slot input { background: none; border: 0; outline: 0; font: inherit; letter-spacing: inherit; padding: 0; min-width: 0; }
.slot input::placeholder { color: var(--faint); }
.slot--to.addr { font-family: var(--mono); font-size: .42em; letter-spacing: 0; padding-bottom: 12px; max-width: 100%; }
.slot .av { width: .9em; height: .9em; font-size: inherit; transform: scale(0); transition: transform .45s var(--ease), margin .45s var(--ease); margin-right: calc(-.9em - 12px); }
.sizer { display: inline-grid; min-width: 0; }
.sizer::after { content: attr(data-v) " "; visibility: hidden; white-space: pre; grid-area: 1 / 1; min-width: var(--min, 1em); font: inherit; letter-spacing: inherit; height: 0; }
.sizer input { grid-area: 1 / 1; width: 100%; }
.payline.busy .payline__sub { display: none; }
.payline.busy .seg { pointer-events: none; opacity: .5; }
.slot.found .av { transform: none; margin-right: 0; }
.slot .av span { font-size: .4em; }
.slot--to { transition: border-color .3s var(--ease); }
.payline__sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.payline__hint { color: var(--mute); font-size: 15px; min-height: 1.5em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.payline__hint button.link { font-size: 14px; color: var(--fg); }
.payline__hint.bad { color: var(--fg); }
.payline__hint.bad::before { content: ""; width: 8px; height: 8px; border: 1.5px solid var(--fg); border-radius: 50%; }

/* review + progress sheet */
.sheet { overflow: hidden; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.sheet.open { grid-template-rows: 1fr; }
.sheet > div { min-height: 0; }
.sheet__in { padding-top: 34px; display: grid; gap: 28px; }
.rows { border-top: 1px solid var(--line); }
.rows > div { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.rows dt { color: var(--mute); } .rows dd { text-align: right; overflow-wrap: anywhere; font-weight: 500; }
.sheet__act { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.wire { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.wire__line { position: relative; height: 15px; }
.wire__line::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.wire__line::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--fg); transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s var(--ease); }
.wire__line i { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--fg); }
.wire.pending .wire__line i { animation: wire 1.5s var(--ease) infinite alternate; }
@keyframes wire { to { left: calc(100% - 15px); } }
.wire.done .wire__line::after { transform: none; }
.wire.done .wire__line i { left: calc(100% - 15px); transition: left .9s var(--ease); }
.wire.failed .wire__line i { left: calc(50% - 7px); background: var(--bg); border: 1.5px solid var(--fg); transition: left .6s var(--ease); }
.wire .av { width: 48px; height: 48px; }
.status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; }
.status .num { font-size: clamp(30px, 3.4vw, 46px); line-height: 1; text-transform: uppercase; }

/* two-up blocks under the pay line */
.duo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); padding-top: clamp(32px, 4vw, 52px); }
@media (max-width: 1000px) { .duo { grid-template-columns: 1fr; } }
.block__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.block__head a { font-size: 14px; color: var(--mute); } .block__head a:hover { color: var(--fg); }
.block + .block { margin-top: clamp(32px, 4vw, 48px); }

.ledger li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.ledger .dir { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.ledger .dir svg { width: 13px; height: 13px; }
.ledger .in .dir { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.ledger .who { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger .meta { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--mute); flex-wrap: wrap; }
.ledger .meta a:hover { color: var(--fg); }
.ledger .amt { text-align: right; font: 500 15px/1.3 var(--mono); white-space: nowrap; }
.ledger .amt small { display: block; font-size: 11px; letter-spacing: .1em; color: var(--mute); }
.ledger .failed .amt { text-decoration: line-through; color: var(--mute); }
.st { display: inline-flex; align-items: center; gap: 6px; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st--pending::before { animation: pulse 1.2s var(--ease) infinite; }
.st--failed::before { background: none; border: 1px solid currentColor; }
.ledger--full li { grid-template-columns: 34px minmax(0, 1.4fr) minmax(0, 1fr) auto; }
.ledger--full .when { color: var(--mute); font-size: 14px; }
@media (max-width: 700px) { .ledger--full li { grid-template-columns: 34px minmax(0, 1fr) auto; } .ledger--full .when { display: none; } }
.empty { padding: 44px 0; color: var(--mute); display: grid; gap: 14px; justify-items: start; border-bottom: 1px solid var(--line); }

.cmdbox { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 16px; }
.cmdbox code { font-size: clamp(15px, 1.25vw, 18px); overflow-wrap: anywhere; }
.cmdbox__act { display: flex; gap: 8px; flex-wrap: wrap; }
.notes li { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--mute); font-size: 15px; }
.notes b { color: var(--fg); font-weight: 500; }
.addr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.addr code { overflow-wrap: anywhere; font-size: 14px; }

.recv { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
@media (max-width: 1000px) { .recv { grid-template-columns: 1fr; } }
.qr { aspect-ratio: 1; width: 100%; max-width: 420px; background: var(--fg); color: var(--bg); border-radius: 36px; padding: 9%; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr circle { transform-box: fill-box; transform-origin: center; animation: qr-in .7s var(--ease) both; animation-delay: calc(var(--d) * 1ms); }
@keyframes qr-in { from { transform: scale(0); } }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid var(--line); }
.swatches button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .3s var(--ease); }
.swatches button[aria-pressed="true"]::after { content: ""; position: absolute; inset: -6px; border: 1.5px solid var(--fg); border-radius: 50%; }
.swatches button[disabled] { opacity: .35; cursor: not-allowed; }
.filter { display: inline-flex; }

.skel { display: inline-block; width: 3ch; height: .7em; border-radius: 999px; background: var(--soft); animation: pulse 1.4s var(--ease) infinite; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); opacity: 0; z-index: 80; background: var(--fg); color: var(--bg); border-radius: 999px; padding: 12px 20px; font-size: 14px; font-weight: 500; transition: transform .45s var(--ease), opacity .45s var(--ease); pointer-events: none; max-width: calc(100vw - 32px); }
.toast.on { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .rail { position: fixed; inset: auto 0 0 0; height: auto; z-index: 50; background: var(--bg); border-right: 0; border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); display: block; }
  .rail .brand, .rail__foot { display: none; }
  .rail__nav { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .rail__nav a { justify-content: center; gap: 8px; padding: 0 6px; font-size: 13px; }
  .rail__thumb { right: auto; width: 25%; transform: translateX(calc(var(--i, 0) * 100%)); }
  .main { padding-bottom: 120px; }
  .m-top { display: flex !important; }
}
.m-top { display: none; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.m-top div { display: flex; gap: 8px; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-rv] { opacity: 1; transform: none; }
}

/* receipts */
.rlink { color: var(--fg); border-bottom: 1px solid var(--line); font-size: 13px; padding: 0; }
.rlink:hover { border-color: var(--fg); }
.drawer { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,0); transition: background .45s var(--ease); display: flex; justify-content: flex-end; }
.drawer.on { background: rgba(0,0,0,.55); }
.drawer__in { width: min(520px, 100%); height: 100%; overflow-y: auto; background: var(--bg); border-left: 1px solid var(--line); padding: 26px clamp(20px, 3vw, 36px) 40px; transform: translateX(100%); transition: transform .45s var(--ease); }
.drawer.on .drawer__in { transform: none; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; transition: opacity .4s var(--ease); }
.checks li.wait { opacity: .35; }
.checks b { display: block; font-weight: 500; }
.checks small { display: block; color: var(--mute); font-size: 14px; margin-top: 2px; }
.check__dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; margin-top: 1px; transition: background .4s var(--ease), border-color .4s var(--ease); }
.checks .ok .check__dot { background: var(--fg); border-color: var(--fg); }
.checks .ok .check__dot::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--bg); border-bottom: 2px solid var(--bg); transform: translateY(-1px) rotate(-45deg); }
.checks .bad .check__dot { border-color: var(--fg); }
.checks .bad .check__dot::after { content: ""; width: 10px; height: 2px; background: var(--fg); }
