/* #324: the scrollbar space is always reserved — short pages (/guides) do not shift against long ones */
html{scrollbar-gutter:stable}
/* Railoma — dark theme only (#54). No inline styles anywhere: CSP style-src 'self'. */
:root{
  --bg:#0D1015;--card:#151A22;--raised:#1B212B;--line:#262D3A;--line2:#3A4352;--line3:#5A6475;
  --text:#E7EAF0;--text2:#D3D8E0;--muted:#B4BCC9;--muted2:#9AA3B2;
  --accent:#F2B84B;--accent-ink:#14110A;--ok:#8FD9B0;--bad:#FF9A8A;--warn:#E8C766;--link:#9DB8FF;--link-h:#C9D7FF;
  --sans:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;--mono:ui-monospace,Menlo,Consolas,monospace;
  color-scheme:dark;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{background:var(--bg)}
body{margin:0;background:var(--bg);color:var(--text);font:16px/1.5 var(--sans);overflow-wrap:anywhere}
a{color:var(--link)}a:hover{color:var(--link-h)}
code,.mono{font-family:var(--mono)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.wrap{max-width:1160px;margin:0 auto;padding-left:24px;padding-right:24px}
h1,h2{letter-spacing:-.02em}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border-radius:10px;font:inherit;font-size:15px;font-weight:700;cursor:pointer;border:0;white-space:nowrap;text-decoration:none}
.btn:disabled{cursor:not-allowed}
.btn-accent{background:var(--accent);color:var(--accent-ink)}
.btn-accent:disabled{background:var(--line);color:var(--muted2)}
.btn-ghost{background:transparent;color:var(--text);border:1px solid var(--line2);font-weight:500}
.btn-ghost:hover{border-color:var(--line3);color:var(--text)}
.btn-sm{min-height:40px;padding:0 12px;font-size:14px;border-radius:8px}
.btn-dashed{width:100%;margin-top:8px;background:transparent;color:var(--text);border:1px dashed var(--line2);font-weight:500;font-size:14px}
.btn-mono{font-family:var(--mono);font-weight:500;background:transparent;color:var(--text);border:1px solid var(--line2)}
.linkbtn{background:none;border:0;padding:0;color:var(--link);font:inherit;text-decoration:underline;cursor:pointer}

/* header */
.top{border-bottom:1px solid #232A36}
.top-row{display:flex;gap:16px;align-items:center;justify-content:space-between;padding-top:12px;padding-bottom:12px}
.top-left{display:flex;align-items:center;gap:40px}
.brand{display:flex;align-items:center;gap:8px;color:var(--text);text-decoration:none}
.brand:hover{color:var(--text)}
/* header lockup (#258): mark 3 from docs/brand, geometry as is, colours from here */
.logo{display:block;height:28px;width:auto;flex:0 0 auto}
.mark-a{fill:var(--accent)}.mark-b,.mark-t{fill:var(--text)}
.mark-l{stroke:var(--accent);stroke-width:2;fill:none;stroke-linecap:round}
.topnav{display:flex;gap:24px;font-size:15px}
.topnav a{color:var(--muted);text-decoration:none}.topnav a:hover{color:var(--text)}
.wallet{position:relative}
.chev{margin-left:8px;pointer-events:none;stroke:currentColor;stroke-width:1.5;fill:none}
#connect>span{pointer-events:none}
.pop:empty,.status-line:empty{display:none}
.pop{font-size:14px;line-height:1.45;padding:12px}
.status-line{margin-top:12px;font-size:14px;line-height:1.45}
.msg{margin:0}
.msg.bad{color:var(--bad)}.msg.warn{color:var(--warn)}.msg.muted{color:var(--muted)}
.msg-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.browse{margin-top:16px}
.browse-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:8px 0}
.browse-host{font-size:15px;color:var(--text);user-select:all}
.msg.small{font-size:13px}
.msg.strong{font-weight:600;color:var(--text)}.msg.strong+.msg{margin-top:6px;line-height:1.55}
.wallets{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}
.wallet-opt{width:100%;display:flex;align-items:center;gap:10px;min-height:44px;padding:0 10px;background:transparent;color:var(--text);border:1px solid var(--line2);border-radius:10px;font:inherit;font-size:14px;cursor:pointer;text-align:left}
.wallet-opt:hover{border-color:var(--line3)}
.status-line .wallets{max-width:360px}
.menu{position:absolute;right:0;top:calc(100% + 8px);z-index:10;width:300px;max-width:calc(100vw - 32px);background:var(--raised);border:1px solid var(--line2);border-radius:12px;padding:8px;box-shadow:0 12px 32px rgba(0,0,0,.45)}
.menu-head{padding:8px 8px 12px;border-bottom:1px solid #2E3644}
.menu-label{font-size:13px;color:var(--muted2);margin-bottom:4px}
.menu-addr{font-size:13px;word-break:break-all}
.menu-net{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:14px}
.dot{width:8px;height:8px;border-radius:999px;background:var(--ok);flex:0 0 auto}
.menu-item{width:100%;text-align:left;background:transparent;color:var(--text);border:0;border-radius:8px;padding:0 8px;min-height:44px;font:inherit;font-size:14px;margin-top:4px;cursor:pointer}
.menu-item:hover,.menu-item:focus-visible{background:var(--line)}
.menu-note{margin:0;padding:0 8px 8px;font-size:12px;line-height:1.4;color:var(--muted2)}

/* hero + strip */
.page{padding-bottom:96px}
.hero{padding-top:24px}
/* #175: headline and subtitle each break only between their two halves (.ln = an unbreakable half while it fits).
   Headline: HQ's size (≈26 px at 320, ≈30 px at 375, up to 44) but never wider than the line in the phone fonts —
   “Pay hundreds of wallets” ≈ 11.2 × font-size in Inter/SF, 10.3 × in Roboto. Subtitle: “Send ETH, USDC or any
   ERC-20 on Base” ≈ 20.3 × font-size even in DejaVu Sans. The page side padding is 24 px, 16 px up to 600 px. */
.hero h1{font-size:clamp(21px,min(calc((100vw - 48px) / 11.4),calc(7.27vw + 2.7px)),44px);line-height:1.12;margin:0}
.lead{font-size:clamp(14px,calc((100vw - 48px) / 20.6),21px);line-height:1.45;color:var(--text2);margin:14px 0 0}
.ln{display:inline-block}
.strip{margin-top:20px;border:1px solid var(--line2);border-radius:12px;padding:8px 8px 8px 16px;display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center}
.strip-label{font-size:14px;color:var(--muted2)}
.strip-addr{flex:1 1 auto;min-width:0;font-size:15px;color:var(--text);word-break:break-all}
.strip-addr.strip-note{font-family:var(--sans);color:var(--muted);word-break:normal}
.strip-actions{display:flex;gap:8px}
.copy-icon{stroke:currentColor;fill:none}
.copied{color:var(--ok);border-color:var(--ok)}
.note-bad{color:var(--bad);font-size:14px;margin:8px 0 0;white-space:pre-wrap}
/* #142, #145: phone without a wallet — instead of the form, open this page in a wallet app */
.phone-hint{margin-top:16px;padding:20px 16px;border-color:var(--line2);font-size:15px;line-height:1.45;scroll-margin-top:16px}
.phone-title{font-size:22px;margin:0;outline:none}
.phone-lead{margin:6px 0 16px;color:var(--text2)}
.phone-apps{display:grid;gap:8px;margin:0}
.phone-apps .btn{width:100%;min-height:48px}
.phone-other{display:flex;align-items:center;gap:8px;margin:12px 0 0;font-size:14px;min-width:0}
.phone-other .browse-host{font-size:14px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.phone-other .btn{flex:none;min-height:36px;margin-left:auto}
.phone-steps-title{font-size:15px;margin:20px 0 8px}
.phone-steps{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:8px;color:var(--text2)}
.phone-steps li{display:grid;grid-template-columns:28px 1fr;gap:8px;align-items:baseline}
.phone-minor{font-size:13px;color:var(--muted2);margin:0 0 6px}
.linkbtn.phone-minor{color:var(--muted2)}
/* #135: explorer links as copy buttons in a wallet's built-in browser */
.xcopy{display:inline-flex;align-items:center;gap:6px}
.xcopy-chip{min-height:32px;padding:0 10px;font-size:13px;border-radius:8px}
.xcopy.history-link{display:inline-flex}
.xcopy-log{font-family:var(--mono);margin-left:4px}
.xcopy-url{display:block;margin-top:4px;font-size:12px;color:var(--text);word-break:break-all;user-select:all}
.copy-buf{position:fixed;top:0;left:0;width:1px;height:1px;opacity:0;pointer-events:none;font-size:16px}
.note-bad:empty{display:none}

/* tool grid: desktop two columns; narrow — Recipients → You will sign → Send */
.tool{margin-top:16px;display:grid;grid-template-columns:minmax(0,1fr) 360px;grid-template-areas:"rec sign" "send sign";gap:16px 24px;align-items:start}
.a-rec{grid-area:rec}.a-sign{grid-area:sign}.a-send{grid-area:send}
.card{min-width:0;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:24px}
.card-head{display:flex;flex-wrap:wrap;gap:16px 24px;align-items:center;justify-content:space-between;margin-bottom:16px}
.step{display:flex;gap:16px;align-items:baseline}
.step-n{font-family:var(--mono);color:var(--accent);font-size:14px}
.seg{display:flex;gap:4px;padding:4px;margin:0;border:1px solid var(--line2);border-radius:12px;min-width:0}
.seg label{position:relative;cursor:pointer}
.seg input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.seg label>span{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:8px;font-size:14px;color:var(--text)}
.seg input:checked+span{background:var(--text);color:var(--bg);font-weight:600}
.seg input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.seg:disabled{opacity:.6}.seg:disabled label{cursor:not-allowed}

.field-label{display:block;font-size:14px;color:var(--muted);margin-bottom:8px}
.input{width:100%;min-height:44px;padding:10px 12px;background:var(--bg);color:var(--text);border:1px solid var(--line2);border-radius:10px;font-size:13px}
.input.bad{border-color:var(--bad)}
.ta{min-height:120px;line-height:1.7;resize:vertical}
.ta[readonly]{color:var(--muted2)}
.hint{margin:8px 0 0;font-size:13px;color:var(--muted2)}
.hint.ok{color:var(--ok);font-size:14px}
.hint.bad{color:var(--bad);font-size:14px}
.hint.small{font-size:12px}
#tokenInfo{margin-bottom:16px;font-size:14px}
.list-tools{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between;margin:16px 0 8px}
.upload{cursor:pointer;font-size:14px}
.upload:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.upload.disabled{opacity:.5;cursor:not-allowed}
.list-btns{display:flex;flex-wrap:wrap;gap:8px}
.btn-ghost.armed{border-color:var(--warn);color:var(--warn)}
.up-icon{stroke:currentColor;stroke-width:1.5;fill:none;stroke-linecap:round;stroke-linejoin:round}

/* switch */
.switch{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0;background:transparent;border:0;font:inherit;font-size:14px;color:var(--text);cursor:pointer}
.switch:disabled{opacity:.5;cursor:not-allowed}
.track{position:relative;width:40px;height:24px;border-radius:999px;background:var(--line2);flex:0 0 auto}
.knob{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:999px;background:var(--text);transition:left .15s}
.switch[aria-checked="true"] .track{background:var(--accent)}
.switch[aria-checked="true"] .knob{left:19px;background:var(--accent-ink)}

.same{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:flex-end;margin-bottom:16px}
.same-field{flex:0 1 240px;min-width:200px}
.input-suffix{display:flex;align-items:center;border:1px solid var(--line2);border-radius:10px;background:var(--bg)}
.input-suffix.bad{border-color:var(--bad)}
.input-suffix input{flex:1 1 auto;min-width:0;min-height:44px;padding:10px 12px;background:transparent;color:var(--text);border:0;font-size:14px}
.input-suffix input:focus{outline:none}
.input-suffix:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.input-suffix span{padding:0 12px;color:var(--muted2);font-size:14px;white-space:nowrap}
.same-total{padding-bottom:12px;font-size:14px}
.same-total.bad{color:var(--bad)}

/* preview: table on wide screens, cards on narrow; never an inner scroll box */
.preview{margin-top:16px}
.pv-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 16px;font-size:13px;color:var(--muted2);margin-bottom:8px;min-height:44px}
.pv-table{border:1px solid var(--line);border-radius:10px;font-size:13px}
.pv-row{display:grid;grid-template-columns:44px minmax(330px,1fr) 100px 170px 44px;align-items:center;border-top:1px solid var(--line)}
.pv-row>span{padding:6px 12px}
.pv-row>span:last-child{padding:2px 4px}
.pv-th{border-top:0;background:var(--raised);border-radius:10px 10px 0 0;color:var(--muted2);font-weight:600}
.pv-th>span{padding:8px 12px}
.pv-n{color:var(--muted2);font-family:var(--mono)}
.pv-addr{font-family:var(--mono);font-size:12px;white-space:nowrap}
.pv-amt{font-family:var(--mono);text-align:right;white-space:nowrap}
.r{text-align:right}
.pv-st{white-space:normal}
.k-ok{color:var(--ok)}.k-err{color:var(--bad)}.k-warn{color:var(--warn)}.k-hdr,.k-need{color:var(--muted2)}
.row-err{background:rgba(255,154,138,.07)}.row-warn{background:rgba(232,199,102,.06)}
.del{background:transparent;border:0;color:var(--muted2);width:36px;height:36px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.del:hover{background:var(--line);color:var(--text)}
.del:disabled{opacity:.4;cursor:not-allowed}
.del svg{stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.pv-cards{display:none;list-style:none;margin:0;padding:0;flex-direction:column;gap:8px}
.pv-card{border:1px solid var(--line);border-radius:10px;padding:8px 4px 10px 12px}
.pv-card-top{display:flex;align-items:center;gap:8px;font-size:13px}
.pv-card-top .pv-st{flex:1 1 auto;min-width:0;white-space:normal}
.pv-card-top .pv-n{flex:none;white-space:nowrap}   /* #325: “#3” stays on one line next to a long error (390 px) */
.pv-card-addr{font-family:var(--mono);font-size:13px;color:var(--text2);word-break:break-all;max-width:22ch}

/* You will sign */
.mono-block{font-family:var(--mono);font-size:13px}
.sign-head{color:var(--muted2);margin-bottom:16px;font-family:var(--sans);font-size:14px;font-weight:600}
.sign-empty{margin:0;font-family:var(--sans);color:var(--muted2);line-height:1.5}
.sign-empty:empty{display:none}
#signBody{display:flex;flex-direction:column;gap:24px}
.tx{display:flex;flex-direction:column;gap:8px}
.tx-title{font-family:var(--sans);font-size:13px;font-weight:700;color:var(--accent)}
.k{color:var(--muted2)}
.addr{word-break:break-all}
.wrap22{display:inline-block;max-width:22ch}
.kv{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px}
.kv>span:last-child{text-align:right}
.kv.blockv{flex-direction:column;gap:2px}
.kv.blockv>span:last-child{text-align:left}
.kv.sep{border-top:1px dashed var(--line2);padding-top:8px}
.kv.strong{font-size:15px;font-weight:700}
.kv.total{border-top:1px solid var(--line2);padding-top:16px;font-size:14px}
.bal{display:flex;flex-direction:column;gap:8px;margin-top:-8px}
.bal-note{margin:0;font-family:var(--sans);color:var(--muted2);line-height:1.5}
.bal-note:empty{display:none}
.bal-retry{margin-top:8px}
.sign-note{margin:16px 0 0;font-family:var(--sans);color:var(--muted2);line-height:1.5}

/* Send */
.send-row{display:flex;flex-wrap:wrap;gap:16px 24px;align-items:center}
.send-text{flex:1 1 200px}
.send-text b{display:block}
.send-text .hint{margin:0;font-size:14px}
.send-btns{display:flex;flex-wrap:wrap;gap:8px}
.tone-warn{color:var(--warn)!important}.tone-bad{color:var(--bad)!important}.tone-ok{color:var(--ok)!important}
#unknownNote{line-height:1.5}
.journal{margin-top:12px}.report-row{margin:12px 0 0;display:flex;gap:12px;flex-wrap:wrap;align-items:center}.journal-head{margin:0 0 6px}.journal-list{margin:0 0 6px;padding-left:18px;font-size:14px;line-height:1.6}.journal-list .ok{color:var(--ok)}.journal-list .warn{color:var(--warn)}.journal-list .err{color:var(--bad)}.journal-list a{font-family:var(--mono);font-size:13px;word-break:break-all}.new-confirm{margin:12px 0 0;display:flex;gap:8px 12px;flex-wrap:wrap;align-items:center}.report-text{display:block;width:100%;margin:12px 0 0;font-size:12px}#journalHint{margin-top:10px}.fail-warn{margin-top:8px}.fail-warn .hint{line-height:1.5}.fail-warn-btns{margin:8px 0 0;display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.progress{margin-top:16px}
.progress-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:13px;color:var(--muted);margin-bottom:8px}
.bar{height:6px;background:var(--line);border-radius:999px;overflow:hidden}
.bar-fill{height:6px;width:0;background:var(--accent)}
.log{list-style:none;margin:16px 0 0;padding:16px 0 0;border-top:1px dashed var(--line2);display:flex;flex-direction:column;gap:8px;font-size:14px}
.log:empty{display:none}
.log li{word-break:break-word}
.log a{font-family:var(--mono);font-size:13px;word-break:break-all}
.history-link{display:inline-block;margin-top:16px;font-size:14px}
.smart-note{margin:6px 0 0;font-size:13px}
.log .ok{color:var(--ok)}.log .err{color:var(--bad)}.log .warn{color:var(--warn)}.log .muted{color:var(--muted2)}
.log-detail{display:block;margin-top:2px;font-size:12px;color:var(--muted2);font-family:var(--mono);word-break:break-all}

/* Security, FAQ, footer */
.sec{margin-top:96px}
.sec h2,.faq h2{font-size:28px;margin:0}
.sec-lead{margin:8px 0 24px;color:var(--muted);line-height:1.5}
.sec-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.sec-title{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.sec-card p{margin:0;font-size:15px;line-height:1.5;color:var(--muted)}
.ico{stroke:var(--accent);stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.faq{margin-top:96px;max-width:780px}
.faq h2{margin-bottom:16px}
details{padding:16px 0;border-bottom:1px solid var(--line)}
details:last-of-type{border-bottom:0}
summary{cursor:pointer;font-weight:600}
details p{margin:8px 0 0;color:var(--muted);line-height:1.5}
/* Footer (#312): brand + columns Learn / Legal / Official (equal fixed tracks: the same place on every page); links in the guide's text-link style (#316), not blue */
.foot{border-top:1px solid #232A36}
.foot-grid{padding-top:32px;padding-bottom:40px;display:grid;grid-template-columns:1fr auto;gap:24px 48px;font-size:14px;color:var(--muted2)}
.foot-brand{display:flex;flex-direction:column;gap:4px}
.foot-name{color:var(--text);font-weight:600;font-size:15px}
.foot-nav{display:grid;grid-template-columns:repeat(3,176px);gap:24px 48px}
.foot-h{margin:0 0 8px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted2)}
.foot-col ul{list-style:none;margin:0;padding:0}
.foot-col li+li{margin-top:6px}
.foot a{color:var(--muted);text-decoration:underline;text-decoration-thickness:1px;text-decoration-color:var(--line3);text-underline-offset:3px}
.foot-contact a{color:inherit}
.foot a:hover,.foot a:focus-visible{color:var(--link-h);text-decoration-color:var(--link-h)}
.foot-copy{grid-column:1/-1}
.foot-contact{grid-column:1/-1;margin:0;padding-top:16px;border-top:1px solid var(--line)}
@media (max-width:600px){
  .foot-grid{grid-template-columns:1fr;gap:24px}
  .foot-nav{grid-template-columns:1fr 1fr;gap:24px 16px}
  .foot-col a{display:inline-block;padding:6px 0}
  .foot-col li+li{margin-top:0}
}
/* Terms and Privacy (#247): one readable column of text */
.legal{max-width:72ch;padding-top:40px;color:var(--text2);line-height:1.65}
.legal h1{font-size:clamp(28px,6vw,40px);line-height:1.15;margin:0;color:var(--text)}
.legal h2{font-size:20px;line-height:1.3;margin:40px 0 0;color:var(--text)}
.legal p{margin:12px 0 0}
.legal ul{margin:12px 0 0;padding-left:22px}
.legal li+li{margin-top:8px}
.legal strong{color:var(--text)}
.legal code{font-family:var(--mono);font-size:.9em}
.legal-date{color:var(--muted2);font-size:14px}
/* Guides (#314, decision 0023): the same column as Terms; breadcrumbs, steps, a list example, Open Railoma */
.legal ol{margin:12px 0 0;padding-left:26px}
/* #325: guide frames — the column width, no layout shift (width/height on img and source) */
.guide-shot{margin:16px 0 0}
.guide-shot img{display:block;max-width:100%;height:auto;border-radius:10px}
.crumbs{margin:0 0 16px;font-size:14px;color:var(--muted2)}
.crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 0}
.crumbs li+li{margin-top:0}
.crumbs li+li::before{content:"›";margin:0 8px;color:var(--muted2)}
.crumbs a{color:var(--muted);text-decoration:none}.crumbs a:hover{color:var(--text);text-decoration:underline}
.guide h2{scroll-margin-top:16px}
.guide-lead{font-size:18px;color:var(--text)}
.guide-cta{margin:24px 0 0;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.guide-cta .btn{min-width:160px}
.example{margin:12px 0 0;padding:12px 16px;background:var(--card);border:1px solid var(--line);border-radius:10px;overflow-x:auto;font-size:14px;line-height:1.6;color:var(--text)}
.legal .example code{font-size:inherit}
.legal .guide-list{list-style:none;padding-left:0;margin-top:24px;border-top:1px solid var(--line)}
.legal .guide-list li{margin:0;padding:16px 0;border-bottom:1px solid var(--line)}
/* #316: text links on text pages (/terms, /privacy, guides) — the colour of the text around, a thin underline;
   buttons and breadcrumbs keep their own look; header, footer and the home page are outside .legal */
.legal a:not(.btn, .crumbs a){color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-decoration-color:var(--line3);text-underline-offset:3px}
.legal a:not(.btn, .crumbs a):hover,.legal a:not(.btn, .crumbs a):focus-visible{color:var(--link-h);text-decoration-color:var(--link-h)}
/* #316: example values as chips (the list example .example keeps its block) */
.legal :not(pre)>code{background:var(--card);border:1px solid var(--line);border-radius:5px;padding:.1em .35em;font-size:.88em;color:var(--text)}
.mark-bad{color:var(--bad)}
/* #316: guide rhythm — PC (≥ 800 px); phone values below. Steps numbered in accent, bullets muted */
.guide{font-size:17px}
.guide>p,.guide>ul,.guide>ol,.guide>pre{margin-top:16px}
.guide>h2{margin-top:56px}
.guide>h2+*{margin-top:16px}
.guide>ul>li+li,.guide>ol>li+li{margin-top:10px}
.guide>.guide-cta{margin:32px 0}
.guide>ol{padding-left:30px}
.guide>ol>li::marker{color:var(--accent);font-family:var(--mono);font-weight:700}
.guide>ul>li::marker{color:var(--muted2)}
@media (max-width:799px){
  .guide{font-size:16px}
  .guide>p,.guide>ul,.guide>ol,.guide>pre{margin-top:14px}
  .guide>h2{margin-top:44px}
  .guide>h2+*{margin-top:14px}
  .guide>ul>li+li,.guide>ol>li+li{margin-top:8px}
  .guide>.guide-cta{margin:24px 0}
}

@media (max-width:1000px){
  .tool{grid-template-columns:minmax(0,1fr);grid-template-areas:"rec" "sign" "send"}
}
@media (max-width:800px){
  .pv-table{display:none}
  .pv-cards{display:flex}
}
@media (max-width:600px){
  .wrap{padding-left:16px;padding-right:16px}
  .topnav{display:none}
  .hero{padding-top:24px}
  .hero h1{font-size:clamp(21px,min(calc((100vw - 32px) / 11.4),calc(7.27vw + 2.7px)),44px)}
  .lead{font-size:clamp(14px,calc((100vw - 32px) / 20.6),21px)}
  .strip-addr{max-width:22ch}
  .ta{min-height:160px}
  .sec-grid{grid-template-columns:minmax(0,1fr)}
}
/* #175: small phones (≤400 px) — a tighter top; the wallet block of a phone without a wallet (#145) stays on the
   first screen at 360×640 */
@media (max-width:400px){
  .hero{padding-top:16px}
  .strip,.phone-hint{margin-top:16px}
}
@media (prefers-reduced-motion:reduce){.knob{transition:none}}
