:root {
  --chalk: #f2f0e8;
  --paper: #fffef7;
  --ink: #1b1b18;
  --soft-ink: #54534d;
  --line: #b8b5aa;
  --acid: #efff48;
  --signal: #ff4d26;
  --blue: #1547ff;
  --sans: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", sans-serif;
  --body: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { background: var(--chalk); color: var(--ink); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; font-family: var(--body); background: var(--chalk); }
button, input, select { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 12px 16px; color: white; background: var(--ink); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.prototype-bar { height: 27px; display: flex; align-items: center; justify-content: center; gap: 8px; color: white; background: var(--ink); font: 700 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .13em; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 3px rgba(239,255,72,.18); }
.site-header { height: 82px; padding: 0 clamp(20px, 4vw, 64px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--ink); }
.wordmark { display: flex; align-items: center; width: max-content; gap: 9px; font: 850 19px/1 var(--sans); letter-spacing: -.035em; text-decoration: none; }
.mark { width: 36px; height: 36px; display: grid; place-items: center; color: var(--acid); background: var(--ink); font: 800 14px/1 var(--mono); }
nav { display: flex; align-items: center; gap: 34px; }
nav a { position: relative; padding: 31px 0 27px; font: 750 13px/1 var(--body); text-decoration: none; }
nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 5px; background: var(--signal); }
.network-mark { justify-self: end; font: 750 9px/1.15 var(--mono); letter-spacing: .1em; text-align: right; }

main { min-height: calc(100vh - 180px); }
.view { width: min(1400px, calc(100% - clamp(40px, 8vw, 128px))); margin-inline: auto; padding: clamp(50px, 7vw, 98px) 0; }
.home-view { min-height: calc(100vh - 109px); display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(36px, 8vw, 130px); padding-top: 54px; overflow: hidden; }
.kicker, .utility-label { margin: 0 0 18px; font: 800 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.kicker::before { content: ""; width: 24px; height: 2px; display: inline-block; margin: 0 10px 3px 0; background: var(--signal); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 28px; font: 900 clamp(56px, 7vw, 112px)/.82 var(--sans); letter-spacing: -.07em; text-transform: uppercase; }
h1 em { color: transparent; -webkit-text-stroke: 1.5px var(--ink); font-style: normal; }
.lede { max-width: 620px; margin-bottom: 34px; color: var(--soft-ink); font-size: clamp(17px, 1.6vw, 22px); line-height: 1.52; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 30px; padding: 13px 19px; border: 1px solid var(--ink); border-radius: 0; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.button:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }
.button-dark { color: white; background: var(--ink); }
.button-dark:hover { box-shadow: 4px 4px 0 var(--signal); }
.button-acid { color: var(--ink); background: var(--acid); }
.button-ghost { background: transparent; }
.button.full { width: 100%; }
.text-link, .text-button { border: 0; border-bottom: 1px solid var(--ink); padding: 4px 0; color: var(--ink); background: none; font-weight: 750; text-decoration: none; cursor: pointer; }
.principles { display: flex; gap: clamp(20px, 3vw, 48px); margin: 54px 0 0; }
.principles div { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.principles dt { color: var(--signal); font: 800 9px/1.4 var(--mono); }
.principles dd { margin: 0; font: 750 11px/1.4 var(--body); text-transform: uppercase; }

.hero-object { min-height: 690px; position: relative; display: grid; place-items: center; }
.hero-object::before { content: ""; position: absolute; width: 530px; height: 530px; border-radius: 50%; background: var(--acid); }
.receipt-shadow { position: absolute; z-index: 1; width: 345px; height: 574px; transform: rotate(8deg) translate(35px,25px); background: var(--ink); }
.cash-slip { position: relative; color: var(--ink); background-color: var(--paper); background-image: radial-gradient(#d8d5c9 .65px, transparent .65px); background-size: 4px 4px; border: 1px solid var(--ink); box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.cash-slip::before, .cash-slip::after { content: ""; position: absolute; left: -1px; right: -1px; height: 8px; background: radial-gradient(circle at 4px 0, transparent 4px, var(--paper) 4.5px) 0 0/12px 8px repeat-x; }
.cash-slip::before { top: -1px; transform: rotate(180deg); }
.cash-slip::after { bottom: -1px; }
.cash-slip-hero { z-index: 2; width: 330px; min-height: 570px; padding: 22px 23px 27px; transform: rotate(-6deg); }
.slip-topline { display: flex; justify-content: space-between; margin: 3px 0 12px; font: 700 8px/1 var(--mono); letter-spacing: .08em; }
.wallet-hero-art { height: 210px; background: transparent url("./card-sats.png") center / contain no-repeat; }
.slip-title { margin: 15px 0 12px; font: 950 34px/.84 var(--sans); letter-spacing: -.055em; }
.slip-alias { padding: 7px 0; border-block: 1px dashed var(--ink); font: 800 9px/1 var(--mono); letter-spacing: .12em; }
.slip-value { display: flex; align-items: baseline; justify-content: space-between; margin-top: 14px; }
.slip-value strong { font: 950 52px/.8 var(--sans); letter-spacing: -.06em; }
.slip-value span { font: 800 11px/1 var(--mono); }
.fake-qr { width: 62px; aspect-ratio: 1; border: 6px solid var(--paper); outline: 1px solid var(--ink); background: conic-gradient(from 90deg, var(--ink) 25%,transparent 0 50%,var(--ink) 0 75%,transparent 0) 0 0/12px 12px, repeating-linear-gradient(45deg,transparent 0 4px,var(--ink) 4px 7px); }
.cash-slip-hero > .fake-qr { margin: 18px auto 10px; }
.slip-foot { margin-top: 12px; font: 650 6px/1.25 var(--mono); text-align: center; text-transform: uppercase; }
.object-note { position: absolute; z-index: 3; padding: 7px 9px; color: white; background: var(--blue); font: 800 9px/1 var(--mono); letter-spacing: .08em; }
.note-a { left: 0; top: 25%; transform: rotate(-8deg); }
.note-b { right: 2%; bottom: 22%; color: var(--ink); background: var(--acid); transform: rotate(4deg); }

.home-manifesto, .snippet-flow, .protocol-strip, .security-ledger, .nsnip-bridge { grid-column: 1 / -1; width: 100%; }
.home-manifesto { margin-top: clamp(40px,7vw,110px); padding: clamp(35px,6vw,82px); color: white; background: var(--ink); }
.home-manifesto .kicker::before, .protocol-strip .kicker::before { background: var(--acid); }
.home-manifesto h2, .snippet-flow h2, .protocol-strip h2, .security-ledger h2, .nsnip-bridge h2 { margin: 0; font: 900 clamp(40px,5.5vw,78px)/.88 var(--sans); letter-spacing: -.055em; text-transform: uppercase; }
.manifesto-lede { max-width: 980px; margin: 28px 0 48px; color: #d2d0c7; font-size: clamp(18px,2vw,27px); line-height: 1.45; }
.manifesto-lede strong { color: var(--acid); }
.concept-pair { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #77766f; }
.concept-pair article { padding: clamp(25px,4vw,50px); }
.concept-pair article + article { border-left: 1px solid #77766f; }
.concept-pair span, .ledger-grid article > span { color: var(--acid); font: 800 9px/1 var(--mono); letter-spacing: .14em; }
.concept-pair h3 { margin: 13px 0; font: 900 30px/1 var(--sans); text-transform: uppercase; }
.concept-pair p { margin: 0; color: #bbb9b1; line-height: 1.65; }

.snippet-flow { padding-block: clamp(70px,9vw,130px); }
.snippet-flow header { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.snippet-flow ol { counter-reset: flow; display: grid; grid-template-columns: repeat(4,1fr); margin: 0; padding: 0; border-block: 1px solid var(--ink); list-style: none; }
.snippet-flow li { counter-increment: flow; min-height: 230px; position: relative; padding: 70px 24px 28px; border-right: 1px solid var(--ink); }
.snippet-flow li:last-child { border-right: 0; }
.snippet-flow li::before { content: "0" counter(flow); position: absolute; top: 20px; color: var(--signal); font: 900 26px/1 var(--mono); }
.snippet-flow li b, .snippet-flow li span { display: block; }
.snippet-flow li b { margin-bottom: 13px; font: 900 22px/1 var(--sans); text-transform: uppercase; }
.snippet-flow li span { color: var(--soft-ink); font-size: 13px; line-height: 1.6; }

.protocol-strip { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(30px,6vw,80px); padding: clamp(38px,6vw,75px); color: white; background: var(--blue); }
.protocol-copy p:last-child { max-width: 600px; margin: 24px 0 0; color: #d8e0ff; line-height: 1.65; }
.protocol-chain { align-self: center; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; }
.protocol-chain div { min-height: 145px; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; border: 1px solid rgba(255,255,255,.7); background: rgba(0,0,0,.12); }
.protocol-chain i { align-self: center; padding: 8px; color: var(--acid); font: normal 900 22px/1 var(--mono); }
.protocol-chain small, .protocol-chain code { color: #d8e0ff; font: 650 8px/1.3 var(--mono); }
.protocol-chain b { font: 900 18px/1 var(--sans); text-transform: uppercase; }

.security-ledger { padding-block: clamp(80px,10vw,145px); }
.security-ledger header { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 42px; }
.ledger-grid { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--ink); }
.ledger-grid article { min-height: 300px; padding: clamp(25px,4vw,48px); }
.ledger-grid article + article { border-left: 1px solid var(--ink); }
.ledger-grid .ledger-local { background: var(--acid); }
.ledger-grid .ledger-local > span { color: var(--ink); }
.ledger-grid .ledger-risk { color: white; background: var(--ink); }
.ledger-grid ul { margin: 32px 0 0; padding: 0; list-style: none; }
.ledger-grid li { padding: 12px 0; border-top: 1px solid currentColor; font-size: 13px; line-height: 1.4; }
.security-footnote { max-width: 900px; margin: 24px 0 0 auto; color: var(--soft-ink); font-size: 12px; line-height: 1.6; }

.nsnip-bridge { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(35px,8vw,120px); padding: clamp(45px,7vw,90px) 0; border-top: 8px solid var(--ink); }
.nsnip-bridge > div:last-child { padding-top: 5px; }
.nsnip-bridge p { color: var(--soft-ink); font-size: 16px; line-height: 1.7; }
.nsnip-bridge .button { margin-top: 18px; }

.qr-box { display: grid; place-items: center; background: #f4ecd8; }
.qr-link { color: inherit; text-decoration: none; }
.qr-link > span { width: 100%; height: 100%; display: block; }
.qr-box svg { width: 100%; height: 100%; display: block; shape-rendering: crispEdges; }
.qr-box svg rect { fill: #f4ecd8; }
.qr-box svg path { fill: #1a1612; }
.field { display: grid; gap: 7px; color: var(--soft-ink); font-size: 11px; font-weight: 750; }
.field input, .field select, .field textarea { width: 100%; padding: 0 13px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 0; }
.field input, .field select { height: 50px; }
.field textarea { padding-block: 12px; resize: vertical; font: 650 10px/1.45 var(--mono); overflow-wrap: anywhere; }
.button-row { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }

/* ---------- Wallet ----------
   Two states: one available task without a note, or the paper slip with a note.
   Each action opens a sheet (<dialog>); no separate detail panel is needed. */

.wallet-view { width: min(1180px, calc(100% - clamp(32px,7vw,110px))); display: grid; gap: clamp(26px,4vw,56px); align-items: start; }
.wallet-stage { display: grid; gap: clamp(16px,2.4vw,24px); align-content: start; min-width: 0; }
.wallet-view:not(.has-note) .wallet-stage { max-width: 640px; }
@media (min-width: 1000px) { .wallet-view.has-note { grid-template-columns: 470px minmax(0,1fr); } }

/* State A: no open note */
.wallet-intro h1 { margin-bottom: 20px; font-size: clamp(46px,7vw,88px); }
.wallet-intro .lede { margin-bottom: 0; }
.open-panel { display: grid; gap: 14px; padding: clamp(18px,3vw,26px); background: var(--paper); border: 1px solid var(--ink); }
.open-panel .button-row { gap: 10px; }
.open-panel .button { flex: 1 1 150px; }
.snippet-scanner { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--ink); background: var(--ink); }
.file-scan-button { position: relative; overflow: hidden; cursor: pointer; }
.file-scan-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.scan-status { margin: 0; color: var(--soft-ink); font: 700 10px/1.55 var(--mono); }
.local-notes { display: grid; gap: 0; }
.local-notes h2 { margin: 0 0 6px; font: 900 20px/1 var(--sans); text-transform: uppercase; }
.local-note { width: 100%; min-height: 56px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border: 0; border-top: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.local-note:last-child { border-bottom: 1px solid var(--line); }
.local-note b { display: block; font: 900 17px/1.1 var(--sans); text-transform: uppercase; }
.local-note small { display: block; margin-top: 4px; color: var(--soft-ink); font: 700 9px/1 var(--mono); }
.local-note strong { font: 900 22px/1 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.local-note:hover b, .local-note:focus-visible b { text-decoration: underline; text-underline-offset: 4px; }

/* State B: the paper slip */
.paper-strip { position: relative; padding: clamp(20px,3.2vw,28px); background-color: var(--paper); background-image: repeating-linear-gradient(0deg, rgba(49,44,49,.03) 0 1px, transparent 1px 5px); border: 1px solid var(--ink); box-shadow: 7px 8px 0 rgba(49,44,49,.13); }
.paper-strip::before, .paper-strip::after { content: ""; position: absolute; left: -1px; right: -1px; height: 8px; background: radial-gradient(circle at 4px 0, transparent 4px, var(--paper) 4.5px) 0 0/12px 8px repeat-x; }
.paper-strip::before { top: -1px; transform: rotate(180deg); }
.paper-strip::after { bottom: -1px; }
.strip-topline { display: flex; justify-content: space-between; gap: 12px; font: 700 8px/1.3 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--soft-ink); }
.strip-amount { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; }
.strip-amount strong { font: 950 clamp(54px,12vw,84px)/.76 var(--sans); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.strip-amount span { font: 800 12px/1 var(--mono); }
.strip-lede { margin: 12px 0 0; max-width: 46ch; color: var(--soft-ink); font-size: 13px; line-height: 1.55; }
.strip-perf { height: 0; position: relative; margin: 22px calc(clamp(20px,3.2vw,28px) * -1); border-top: 2px dashed var(--line); }
.strip-perf::before, .strip-perf::after { content: ""; position: absolute; top: -8px; width: 14px; height: 14px; border-radius: 50%; background: var(--chalk); border: 1px solid var(--line); }
.strip-perf::before { left: -8px; }
.strip-perf::after { right: -8px; }
.strip-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.strip-actions .button, .strip-more { width: 100%; }
.strip-more { margin-top: 10px; }

/* The highlighted security step disappears after takeover */
.takeover-call { padding: clamp(16px,2.6vw,22px); border: 2px solid var(--signal); background: rgba(173,112,64,.08); }
.takeover-call h2 { margin: 8px 0 0; font: 900 clamp(19px,2.4vw,23px)/1.1 var(--sans); text-transform: uppercase; }
.takeover-call p { margin: 8px 0 0; color: var(--soft-ink); font-size: 13px; line-height: 1.55; }
.takeover-call .button { width: 100%; margin-top: 14px; }

.note-live-state { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font: 800 10px/1 var(--mono); text-transform: uppercase; }
.note-live-state i { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #2f7a46; }
.note-live-state i.pending { background: var(--acid); }
.note-live-state i.empty { background: var(--soft-ink); }
.note-live-state i.claimed { background: var(--signal); }
.note-disabled-mark { width: 100%; margin-top: 16px; padding: 16px; border: 2px solid var(--signal); color: var(--signal); font: 900 clamp(18px,4vw,30px)/1 var(--sans); letter-spacing: .04em; text-align: center; }
.warning-copy { margin: 0; padding-left: 12px; border-left: 4px solid var(--signal); color: var(--soft-ink); font-size: 12.5px; line-height: 1.55; }
.private-wallet-link { width: 100%; display: grid; gap: 9px; padding: 16px; border: 1px dashed var(--ink); }
.private-wallet-link span { font: 800 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.private-wallet-link code { padding: 10px; background: rgba(49,44,49,.06); font: 650 9px/1.5 var(--mono); overflow-wrap: anywhere; }
.private-wallet-link .button { justify-self: start; }

/* Linked Nostr identity */
.wallet-profile { width: 100%; border: 1px solid var(--ink); background: var(--paper); }
.wallet-profile-banner { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--ink); }
.wallet-profile-main { display: grid; grid-template-columns: 60px minmax(0,1fr); gap: 15px; align-items: start; padding: 16px; }
.wallet-profile-main > img { width: 60px; height: 60px; border: 1px solid var(--ink); }
.wallet-profile-main span { font: 800 8px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft-ink); }
.wallet-profile-main h3 { margin: 5px 0; font: 900 21px/1 var(--sans); text-transform: uppercase; }
.wallet-profile-main code { display: block; font: 650 8px/1.45 var(--mono); overflow-wrap: anywhere; }
.wallet-zap-address { min-height: 44px; display: flex; align-items: center; gap: 10px; width: fit-content; margin-top: 6px; color: inherit; text-decoration: none; }
.wallet-zap-address span { color: var(--soft-ink); }
.wallet-zap-address strong { font: 850 12px/1 var(--mono); text-decoration: underline; text-underline-offset: 4px; }
.wallet-profile-main .njump-link { min-height: 44px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; }

/* Ledger */
.wallet-activity { min-width: 0; border-top: 4px solid var(--ink); }
.wallet-activity > header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0; font: 900 16px/1 var(--sans); text-transform: uppercase; }
.wallet-activity-summary { display: flex; align-items: baseline; gap: 14px; text-align: right; }
.wallet-activity-summary span { color: var(--soft-ink); font: 750 9px/1 var(--mono); }
.wallet-activity-summary strong { font: 900 15px/1 var(--sans); font-variant-numeric: tabular-nums; }
.wallet-activity article { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.wallet-activity article i { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--ink); font-style: normal; font-weight: 900; }
.wallet-activity article i.in { color: var(--ink); background: var(--acid); }
.wallet-activity article i.out { color: var(--paper); background: var(--ink); }
.wallet-activity article b, .wallet-activity article small { display: block; }
.wallet-activity article small { margin-top: 4px; color: var(--soft-ink); font: 650 8px/1.3 var(--mono); }
.wallet-activity article strong { font: 900 17px/1 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wallet-activity.empty p { margin: 14px 0 0; color: var(--soft-ink); font-size: 13px; }
@media (min-width: 1000px) { .wallet-activity { position: sticky; top: 24px; } }

/* Thumb bar: appears when the actions at the perforation leave the viewport */
.thumb-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 11px 16px max(11px, env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--chalk) 95%, transparent); border-top: 1px solid var(--ink); }
.thumb-bar .button { width: 100%; }
body.thumb-bar-open { padding-bottom: 86px; }
@media (min-width: 900px) { .thumb-bar { display: none !important; } body.thumb-bar-open { padding-bottom: 0; } }

/* Sheets: one step per sheet */
.sheet { width: min(560px, calc(100% - 32px)); padding: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); box-shadow: 12px 12px 0 rgba(49,44,49,.2); }
.sheet::backdrop { background: rgba(49,44,49,.5); }
.sheet-close { position: absolute; top: 6px; right: 6px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; color: var(--ink); background: transparent; border: 1px solid transparent; font: 800 20px/1 var(--sans); cursor: pointer; }
.sheet-close:hover { border-color: var(--line); }
.sheet-body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(24px,4vw,34px); }
.sheet-body > * { width: 100%; }
.sheet-body .kicker { margin: 0; }
.sheet-body h2 { margin: 0; padding-right: 44px; font: 900 clamp(24px,4vw,34px)/.98 var(--sans); text-transform: uppercase; }
.sheet-body p { margin: 0; color: var(--soft-ink); font-size: 13px; line-height: 1.6; }
.sheet-body .button { width: 100%; }
.sheet-body .button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-body .button-row .button { width: 100%; }
.sheet-step { margin: 0; color: var(--soft-ink); font: 800 9px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.invoice-field, .receive-field { width: 100%; }
.payment-summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 0; border-block: 1px solid var(--ink); }
.payment-summary span { color: var(--soft-ink); font-size: 13px; overflow-wrap: anywhere; }
.payment-summary strong { font: 900 22px/1 var(--sans); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pending-indicator { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border: 1px solid var(--ink); font: 750 10px/1.4 var(--mono); }
.pending-indicator i { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--acid); animation: pending-pulse 1.2s ease-in-out infinite; }
.sheet-qr { width: min(240px,100%); aspect-ratio: 1; align-self: center; padding: 8px; border: 1px solid var(--line); background: #f4ecd8; }
.sheet-qr svg { width: 100%; height: 100%; display: block; shape-rendering: crispEdges; }
.rotation-receipt { display: grid; gap: 16px; }
.receive-option { padding: 18px 0; border-top: 1px solid var(--ink); }
.receive-option:last-of-type { border-bottom: 1px solid var(--ink); }
.receive-option h3 { margin: 0 0 8px; font: 850 17px/1 var(--sans); text-transform: uppercase; }
.receive-option p { margin: 0 0 12px; }
.takeover-transfer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.takeover-transfer span { min-height: 62px; display: grid; place-items: center; padding: 10px; border: 1px solid var(--ink); font: 850 10px/1.3 var(--mono); text-align: center; }
.takeover-transfer span:last-child { background: var(--acid); box-shadow: 5px 5px 0 var(--ink); }
.takeover-transfer i { font: 900 22px/1 var(--sans); font-style: normal; }

@media (max-width: 700px) {
  .sheet { width: 100%; max-width: 100%; max-height: 88dvh; margin: 0; position: fixed; inset: auto 0 0 0; overflow-y: auto; border-inline: 0; border-bottom: 0; border-top: 2px solid var(--ink); box-shadow: 0 -14px 30px rgba(49,44,49,.22); }
  .sheet-body { padding-top: 28px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .sheet-body::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 46px; height: 4px; border-radius: 2px; background: var(--line); }
}

@media (max-width: 359px) { .strip-actions { grid-template-columns: 1fr; } }

@keyframes pending-pulse { 50% { opacity: .25; } }

footer { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(20px,4vw,64px); border-top: 1px solid var(--ink); font: 700 9px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; max-width: calc(100% - 32px); padding: 13px 18px; color: white; background: var(--blue); box-shadow: 5px 5px 0 var(--ink); font: 700 11px/1.4 var(--mono); transform: translate(-50%,140%); transition: transform .25s ease; }
.toast.show { transform: translate(-50%,0); }

@media (max-width: 900px) {
  .home-view { grid-template-columns: 1fr; padding-bottom: 0; }
  .hero-copy { padding-top: 25px; }
  .hero-object { min-height: 660px; }
  .concept-pair, .protocol-strip, .nsnip-bridge { grid-template-columns: 1fr; }
  .concept-pair article + article { border-left: 0; border-top: 1px solid #77766f; }
  .snippet-flow header { grid-template-columns: 1fr; }
  .snippet-flow ol { grid-template-columns: 1fr 1fr; }
  .snippet-flow li:nth-child(2) { border-right: 0; }
  .snippet-flow li:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .protocol-chain { margin-top: 20px; }
  .ledger-grid { grid-template-columns: 1fr; }
  .ledger-grid article + article { border-left: 0; border-top: 1px solid var(--ink); }
}

@media (max-width: 620px) {
  .prototype-bar { font-size: 8px; }
  .site-header { height: 68px; grid-template-columns: 1fr auto; }
  .network-mark { display: none; }
  nav { gap: 18px; }
  nav a { padding-block: 25px 22px; font-size: 11px; }
  .view { width: calc(100% - 32px); padding-block: 42px; }
  .home-view { width: calc(100% - 32px); }
  h1 { font-size: clamp(52px,17vw,78px); }
  .principles { gap: 14px; }
  .principles div { display: block; }
  .principles dt { margin-bottom: 4px; }
  .hero-object { min-height: 570px; transform: scale(.86); margin: -45px -40px; }
  .home-manifesto { margin-top: 20px; padding: 30px 22px; }
  .concept-pair { margin-top: 30px; }
  .snippet-flow ol { grid-template-columns: 1fr; }
  .snippet-flow li { min-height: 190px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .snippet-flow li:last-child { border-bottom: 0; }
  .protocol-strip { margin-inline: -16px; width: calc(100% + 32px); padding: 35px 20px; }
  .protocol-chain { grid-template-columns: 1fr; }
  .protocol-chain i { transform: rotate(90deg); }
  .security-ledger header { display: block; }
  .ledger-grid article { min-height: 0; }
  .wallet-activity-summary { align-items: start; flex-direction: column; gap: 5px; text-align: left; }
  .wallet-activity > header { gap: 18px; }
  .wallet-profile-main { grid-template-columns: 52px minmax(0,1fr); gap: 12px; }
  .wallet-profile-main > img { width: 52px; height: 52px; }
  .open-panel .button { flex-basis: 100%; }
  footer { flex-wrap: wrap; padding-block: 18px; }
  footer span:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

body.thumb-bar-open .toast { bottom: 96px; }

#wallet-activity{display:grid;gap:24px;min-width:0;align-content:start}
#wallet-nwc{min-width:0}
.paper-strip #wallet-nwc{margin-top:20px;padding-top:16px;border-top:1px dashed var(--line)}
.paper-strip #wallet-nwc h2{margin:0 0 8px;font:800 16px/1.2 var(--sans)}
.nwc-delete{padding:0;border:0;background:none;color:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer;font:inherit}
.nwc-delete:disabled{opacity:.5;cursor:default}.nwc-connection+.nwc-connection{margin-top:8px}
