/* cash x out · Ledger. True black, white type, hairlines, pills, one centre column. */
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/instrument-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/instrument-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/instrument-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/instrument-sans-700.woff2") format("woff2"); }

:root {
  --bg: #000; --sf: #16181c; --sf2: #1d1f23; --sf3: #26292e; --ln: #2f3336; --ln2: #536471;
  --fg: #e7e9ea; --mu: #71767b; --mu2: #8b98a5;
  --ok: #00ba7c; --ok-bg: rgba(0, 186, 124, .12); --warn: #ffd400; --warn-bg: rgba(255, 212, 0, .12); --bad: #f4212e; --bad-bg: rgba(244, 33, 46, .12);
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 16px; --r2: 12px; --col: 640px; --gut: clamp(16px, 3vw, 24px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.45 var(--sans); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
a.u, .prose a { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
.ic { width: 16px; height: 16px; fill: currentColor; vertical-align: -3px; flex: none; }
.ic.s { width: 14px; height: 14px; }
.ic.l { width: 20px; height: 20px; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: #000; padding: 8px 12px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 8px; }
.k { font-size: 13px; font-weight: 500; color: var(--mu); }
.mu { color: var(--mu); }
.sm { font-size: 13px; }
.xs { font-size: 12px; }
.nowrap { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.tip { border-bottom: 1px dotted var(--ln2); cursor: help; }
.right { text-align: right; }
.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.stack { display: grid; gap: 12px; }
.mark { display: inline-block; width: 24px; height: 24px; flex: none; }
.mark svg { width: 100%; height: 100%; display: block; }
.wm { font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.wm i { font-style: normal; color: var(--mu); font-weight: 500; margin: 0 .14em; }

/* header */
.hd { position: sticky; top: 0; z-index: 30; background: rgba(0, 0, 0, .85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--ln); }
.hd-in { max-width: 1100px; margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; padding: 10px 0; }
.hd nav { display: flex; gap: 22px; }
.hd nav a { position: relative; padding: 17px 0; font-weight: 500; color: var(--mu); }
.hd nav a:hover { color: var(--fg); }
.hd nav a[aria-current="page"] { color: var(--fg); font-weight: 700; }
.hd nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 2px; background: var(--fg); }
.hr { display: flex; align-items: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--ln); border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.chip.ok { color: var(--ok); }
.chip.warn { color: var(--warn); }
.chip.mu { color: var(--mu); }
.wal { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1px solid var(--ln); border-radius: 999px; padding: 7px 12px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.wal:hover { background: var(--sf); }
.wal.pri { background: var(--fg); color: #000; border-color: var(--fg); }
.wal.pri:hover { background: #d7dbdc; }
.menu { position: absolute; right: var(--gut); top: calc(100% - 6px); min-width: 200px; background: var(--bg); border: 1px solid var(--ln); border-radius: var(--r); padding: 6px; box-shadow: 0 0 15px rgba(255, 255, 255, .2), 0 0 3px 1px rgba(255, 255, 255, .15); z-index: 40; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; background: none; border: 0; font-weight: 600; }
.menu a:hover, .menu button:hover { background: var(--sf); }
.menu .addr { padding: 8px 12px 10px; border-bottom: 1px solid var(--ln); margin-bottom: 6px; display: grid; gap: 2px; }
.menu .addr b { font-weight: 700; }
.menu .danger { color: var(--bad); }
.banner { text-align: center; padding: 9px var(--gut); font-size: 13.5px; border-bottom: 1px solid var(--ln); display: flex; gap: 6px 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
.banner.pend { background: var(--sf); }
.banner.pend a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.banner.demo-note { background: var(--warn-bg); color: var(--warn); font-weight: 500; }

/* layout */
main.pg { flex: 1; width: 100%; max-width: calc(var(--col) + 2 * var(--gut)); margin: 0 auto; padding: 24px var(--gut) 56px; display: grid; gap: 28px; align-content: start; }
main.pg.wide { max-width: calc(820px + 2 * var(--gut)); }
.sec { display: grid; gap: 14px; }
.sec + .sec { border-top: 1px solid var(--ln); padding-top: 24px; }
.sh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.sh h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.sh h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.sh span, .sh small { font-size: 13px; color: var(--mu); }
.card { border: 1px solid var(--ln); border-radius: var(--r); padding: 18px; display: grid; gap: 14px; }
.card.tight { padding: 14px 16px; gap: 8px; }
.card > .k:first-child, .card > .ttl { font-size: 15px; font-weight: 700; color: var(--fg); }
.field { background: var(--sf); border-radius: var(--r2); padding: 12px 14px; display: grid; gap: 4px; }
.field:focus-within { box-shadow: inset 0 0 0 1px var(--ln2); }
.divided > * + * { border-top: 1px solid var(--ln); }
.kv { display: grid; }
.kv > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--ln); font-size: 14px; }
.kv > div:last-child { border-bottom: 0; }
.kv > div > span { color: var(--mu); }
.kv b { font-weight: 500; display: inline-flex; align-items: center; gap: 6px; text-align: right; }
.kv b.strong { font-weight: 700; }
.kv.text > div { display: grid; grid-template-columns: 130px 1fr; align-items: start; }
.kv.text b { display: block; text-align: left; font-weight: 500; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border: 1px solid transparent; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap; text-decoration: none; }
.btn.pri { background: var(--fg); color: #000; }
.btn.pri:hover { background: #d7dbdc; }
.btn.sec { background: transparent; color: var(--fg); border-color: var(--ln2); }
.btn.sec:hover { background: rgba(239, 243, 244, .1); }
.btn.ghost { background: transparent; color: var(--fg); }
.btn.ghost:hover { background: var(--sf); }
.btn.danger { background: transparent; color: var(--bad); border-color: rgba(244, 33, 46, .5); }
.btn.danger:hover { background: var(--bad-bg); }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; }
.btn.loading::after, .spin { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-row .btn.pri { flex: 1; }
.cp { background: none; border: 0; padding: 2px; color: var(--mu); display: inline-flex; vertical-align: middle; border-radius: 6px; }
.cp:hover { color: var(--fg); background: var(--sf); }

/* status chips */
.st { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--ln); color: var(--mu); white-space: nowrap; }
.st.ready { color: var(--ok); border-color: rgba(0, 186, 124, .5); }
.st.done { background: var(--ok); color: #000; border-color: var(--ok); }
.st.proc { color: var(--fg); border-color: var(--ln2); }
.st.proc::before { content: ""; width: 10px; height: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .9s linear infinite; }
.st.fail { color: var(--bad); border-color: rgba(244, 33, 46, .5); }
.st.wait { color: var(--warn); border-color: rgba(255, 212, 0, .4); }
.st.off { opacity: .7; }
.badge { display: inline-block; padding: 2px 8px; font-size: 11px; font-weight: 600; border-radius: 999px; }
.badge.y { background: var(--warn-bg); color: var(--warn); }
.badge.g { background: var(--ok-bg); color: var(--ok); }
.badge.r { background: var(--bad-bg); color: var(--bad); }
.badge.mu { background: var(--sf2); color: var(--mu); }
.note { font-size: 12.5px; color: var(--mu); overflow-wrap: anywhere; }
.msg { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: var(--r2); font-size: 13.5px; background: var(--sf); }
.msg .ic { margin-top: 2px; }
.msg.warn { background: var(--warn-bg); color: var(--warn); }
.msg.bad { background: var(--bad-bg); color: var(--bad); }
.msg.ok { background: var(--ok-bg); color: var(--ok); }
.msg b { color: inherit; }
.msg .mu { color: var(--mu); }

/* data states */
.skel { display: grid; gap: 10px; }
.skel i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--sf) 0%, var(--sf2) 40%, var(--sf) 80%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skel i.l { height: 22px; width: 60%; } .skel i.m { width: 85%; } .skel i.s { width: 40%; }
.skel i.tall { height: 120px; border-radius: var(--r2); }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty, .err { display: grid; gap: 10px; justify-items: start; padding: 18px; border: 1px dashed var(--ln); border-radius: var(--r); color: var(--mu); font-size: 14px; }
.err { border-style: solid; color: var(--fg); }
.err b { color: var(--bad); }
.empty p, .err p { max-width: 50ch; }

/* tabs */
.tabs { display: flex; border-bottom: 1px solid var(--ln); gap: 8px; }
.tabs button { position: relative; background: none; border: 0; padding: 12px 14px; font-weight: 500; color: var(--mu); }
.tabs button[aria-selected="true"] { color: var(--fg); font-weight: 700; }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 4px; border-radius: 2px; background: var(--fg); }
.tabs button:hover { color: var(--fg); }

/* hero */
.hero { display: grid; gap: 16px; }
.eye { font-size: 13px; font-weight: 500; color: var(--mu); }
.hero h1 { font-size: clamp(28px, 5.5vw, 34px); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; }
.hero .sub { font-size: 16px; color: var(--mu); max-width: 44ch; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.trust { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--mu); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .ic { color: var(--ok); }
.ex { display: grid; gap: 3px; padding-top: 14px; border-top: 1px solid var(--ln); font-size: 14px; }
.ex b { font-weight: 700; }
.ex a { text-decoration: underline; text-underline-offset: 2px; }

/* swap widget */
.wg { border: 1px solid var(--ln); border-radius: var(--r); padding: 18px; display: grid; gap: 12px; scroll-margin-top: 72px; }
.wg-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wg-top .k { font-size: 17px; font-weight: 700; color: var(--fg); }
.est { font-size: 12px; color: var(--mu); padding: 3px 9px; border: 1px solid var(--ln); border-radius: 999px; white-space: nowrap; }
.amt .in { display: flex; align-items: baseline; gap: 6px; }
.amt .in i { font-style: normal; font-size: 24px; font-weight: 700; color: var(--mu); }
.amt input { width: 100%; min-width: 0; background: transparent; border: 0; outline: 0; font-size: 32px; font-weight: 700; letter-spacing: -.02em; padding: 0; }
.amt input::placeholder { color: var(--ln2); }
.amt .in em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--mu); }
.amt .lim { font-size: 12px; color: var(--mu); display: flex; justify-content: space-between; gap: 8px; }
.amt .lim button { background: none; border: 0; padding: 0; color: var(--fg); font-weight: 600; font-size: 12px; }
.tok { position: relative; }
.tsel { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; border: 0; padding: 4px 0; font-size: 17px; }
.tsel b { font-weight: 700; }
.tsel small { font-size: 12px; color: var(--mu); }
.tsel .chv { margin-left: auto; color: var(--mu); }
.logo { width: 22px; height: 22px; border-radius: 50%; display: inline-block; flex: none; background: var(--sf3); overflow: hidden; vertical-align: -5px; }
.logo img { width: 100%; height: 100%; display: block; }
.logo.sol { background: linear-gradient(135deg, #9945ff, #14f195); }
.logo.usdc { background: #2775ca; }
.logo.ours { background: var(--fg); }
.logo.unv { background: repeating-linear-gradient(45deg, #888 0 3px, #555 3px 6px); }
.logo.l { width: 36px; height: 36px; }
.out b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; display: block; }
.out small { font-size: 12.5px; color: var(--mu); }
.brk { border-top: 1px solid var(--ln); padding-top: 12px; }
.brk summary { cursor: pointer; display: flex; justify-content: space-between; gap: 10px; list-style: none; font-size: 14px; font-weight: 600; }
.brk summary::-webkit-details-marker { display: none; }
.brk summary span { color: var(--mu); font-weight: 500; }
.brk[open] summary { margin-bottom: 8px; }
.qrows { display: grid; }
.qr { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 7px 0; font-size: 14px; border-bottom: 1px solid var(--ln); }
.qr:last-child { border-bottom: 0; }
.qr > span { display: grid; }
.qr small { font-size: 12px; color: var(--mu); }
.qr b { font-weight: 500; white-space: nowrap; text-align: right; }
.qr.off { opacity: .38; }
.qr.off b { text-decoration: line-through; }
.qr.warn b { color: var(--warn); }
.qr.bad b { color: var(--bad); }
.qr.big { padding: 12px 0; }
.qr.big > span { font-weight: 700; font-size: 15px; }
.qr.big b { font-size: 24px; font-weight: 700; }
.qr button.lnk { background: none; border: 0; padding: 0; color: var(--fg); font-weight: 600; font-size: 12px; text-decoration: underline; text-underline-offset: 2px; justify-self: start; }
.ack { font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.ack input { accent-color: var(--fg); margin-top: 3px; }
.warns { display: grid; gap: 6px; }

/* token picker */
.tp { position: absolute; left: -14px; right: -14px; top: calc(100% + 8px); z-index: 20; background: var(--bg); border: 1px solid var(--ln); border-radius: var(--r); padding: 10px; display: grid; gap: 8px; box-shadow: 0 0 15px rgba(255, 255, 255, .2), 0 0 3px 1px rgba(255, 255, 255, .15); max-height: min(60vh, 460px); overflow: auto; }
.tsearch { display: flex; align-items: center; gap: 8px; background: var(--sf); border-radius: 999px; padding: 9px 14px; color: var(--mu); position: sticky; top: 0; }
.tsearch input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--fg); }
.pins { display: flex; gap: 6px; flex-wrap: wrap; }
.pins button { background: transparent; border: 1px solid var(--ln); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.pins button:hover { background: var(--sf); }
.pins .logo { width: 16px; height: 16px; }
.trow { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 8px; border-radius: 10px; width: 100%; text-align: left; background: none; border: 0; }
.trow:hover, .trow[aria-selected="true"] { background: var(--sf); }
.trow > span { display: grid; min-width: 0; }
.trow b { font-weight: 700; display: flex; gap: 6px; align-items: center; }
.trow small { font-size: 12px; color: var(--mu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow em { font-style: normal; text-align: right; display: grid; font-size: 14px; }
.trow em small { font-size: 11px; }
.tp .none { padding: 12px 8px; font-size: 13.5px; color: var(--mu); }

/* demo-only control inside the widget */
.sim { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; border: 1px dashed var(--ln); border-radius: 10px; padding: 8px 12px; color: var(--mu); }
.sim select { background: var(--sf); border: 1px solid var(--ln); color: var(--fg); border-radius: 999px; padding: 4px 10px; }

/* tape, how, teasers, faq */
.tape { display: grid; }
.tr { display: grid; grid-template-columns: 1.1fr 1fr 1.4fr 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--ln); font-size: 14px; }
.tr:last-child { border-bottom: 0; }
.tr > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr .w, .tr .t { font-weight: 600; }
.tr .u, .tr .ago { color: var(--mu); }
.tr .sc { color: var(--mu); text-decoration: underline; text-underline-offset: 2px; font-size: 13px; white-space: nowrap; }
.how { list-style: none; padding: 0; display: grid; }
.how li { display: grid; grid-template-columns: 36px 1fr; gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--ln); }
.how li:last-child { border-bottom: 0; }
.how li b { grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--sf); display: grid; place-items: center; font-weight: 700; }
.how h3 { font-size: 16px; font-weight: 700; }
.how p { font-size: 14px; color: var(--mu); }
.tz { border: 1px solid var(--ln); border-radius: var(--r); padding: 16px; display: grid; gap: 8px; }
.tz h3 { font-size: 17px; font-weight: 700; }
.tz p { font-size: 14px; color: var(--mu); }
.tz a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.faq { display: grid; }
.faq details { border-bottom: 1px solid var(--ln); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mu); font-weight: 500; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 14px; font-size: 14px; color: var(--mu); max-width: 60ch; }

/* footer */
.ft { border-top: 1px solid var(--ln); }
.ft-in { max-width: calc(var(--col) + 2 * var(--gut)); margin: 0 auto; padding: 24px var(--gut) 40px; display: grid; gap: 12px; font-size: 12.5px; color: var(--mu); }
.ft .links { display: flex; gap: 16px; flex-wrap: wrap; }
.ft .links a { text-decoration: underline; text-underline-offset: 2px; }

/* order page */
.od-h { display: flex; justify-content: space-between; gap: 12px 16px; align-items: flex-start; flex-wrap: wrap; }
.od-h > div { display: grid; gap: 4px; justify-items: start; }
.od-h h1 { display: inline-flex; align-items: center; gap: 8px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.od-h p { font-size: 13px; color: var(--mu); }
.fq-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.fq-top .k { font-size: 17px; font-weight: 700; color: var(--fg); }
.ttl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mu); }
.ttl b { color: var(--fg); min-width: 2ch; text-align: right; display: inline-block; }
.ttl.low b { color: var(--warn); }
.tl { list-style: none; padding: 0; display: grid; }
.tl li { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: start; position: relative; padding-bottom: 14px; font-size: 14px; }
.tl li:last-child { padding-bottom: 0; }
.tl li i { width: 10px; height: 10px; border-radius: 50%; margin: 6px 4px 0; display: block; background: var(--ln); }
.tl li::before { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 2px; background: var(--ln); }
.tl li:last-child::before { display: none; }
.tl li.done i { background: var(--ok); }
.tl li.done::before { background: var(--ok); }
.tl li.done span { color: var(--mu); }
.tl li.now i { background: var(--fg); box-shadow: 0 0 0 4px rgba(231, 233, 234, .2); }
.tl li.now span { font-weight: 700; }
.tl li.fail i { background: var(--bad); }
.tl li.fail span { color: var(--bad); font-weight: 700; }
.tl li.todo span { color: var(--mu); opacity: .6; }
.tl time { font-size: 12px; color: var(--mu); white-space: nowrap; }
.tl li small { display: block; color: var(--mu); font-size: 12.5px; font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .st { white-space: normal; }
.partner-frame { min-height: 320px; border: 1px dashed var(--ln2); border-radius: var(--r2); display: grid; place-items: center; align-content: center; gap: 10px; padding: 20px; text-align: center; color: var(--mu); font-size: 13.5px; }
.partner-frame b { color: var(--fg); }

/* orders list */
.ol { display: grid; }
.or { display: grid; grid-template-columns: 1.2fr 1fr .9fr 1.1fr auto auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--ln); font-size: 14px; }
.or:last-child { border-bottom: 0; }
.or > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.or .code { font-weight: 700; }
.or .date, .or .usd { color: var(--mu); }
.or .tok { font-weight: 600; }
.or a.go { color: var(--mu); }
.or a.go:hover { color: var(--fg); }

/* member card */
.mc { aspect-ratio: 1.586; border-radius: 18px; display: grid; grid-template-rows: auto 1fr auto auto; gap: 8px; padding: 22px; position: relative; overflow: hidden; background: linear-gradient(135deg, #1a1c20 0%, #0a0b0d 45%, #17191d 100%); border: 1px solid var(--ln); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 20px 40px rgba(0, 0, 0, .6); }
.mc::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px); pointer-events: none; }
.mc-top { display: flex; justify-content: space-between; align-items: center; }
.mc-top .k { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.mc .mark { width: 28px; height: 28px; }
.mc-num { font-size: 40px; font-weight: 700; letter-spacing: -.03em; align-self: end; }
.mc-row { display: flex; gap: 28px; }
.mc-row span { display: grid; }
.mc-row small { font-size: 10.5px; color: var(--mu); text-transform: uppercase; letter-spacing: .12em; }
.mc-row b { font-size: 15px; font-weight: 700; letter-spacing: .06em; }
.mc-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: #9aa0a6; letter-spacing: .04em; }
.mc-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tiles > div { border: 1px solid var(--ln); border-radius: 14px; padding: 14px; display: grid; gap: 2px; align-content: start; }
.tiles b { font-size: 22px; font-weight: 700; white-space: nowrap; }
.tiles small { font-size: 12px; color: var(--mu); }
.tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pr { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--ln); font-size: 14px; }
.pr:last-child { border-bottom: 0; }
.pr > span { color: var(--mu); }
.pr a { color: var(--mu); text-decoration: underline; text-underline-offset: 2px; font-size: 13px; }

/* eligibility */
.eg { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--ln); }
.eg:first-of-type { border-top: 0; }
.eg > .ic { grid-column: 1; grid-row: 1; width: 20px; height: 20px; }
.eg b { grid-column: 2; grid-row: 1; font-weight: 700; }
.eg span { grid-column: 2; grid-row: 2; font-size: 13px; color: var(--mu); }
.eg .btn { grid-column: 3; grid-row: 1 / span 2; }
.eg.ok .ic { color: var(--ok); }
.eg.soon .ic { color: var(--mu); }
.eg.no .ic { color: var(--warn); }
.eg.unk .ic { color: var(--bad); }

/* stats */
.stat { border: 1px solid var(--ln); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 4px; }
.stat b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.stat small { font-size: 12px; color: var(--mu); }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.top { display: grid; }
.top > div { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--ln); font-size: 14px; }
.top > div:last-child { border-bottom: 0; }
.top .n { color: var(--mu); font-size: 12.5px; }
.top .bar { grid-column: 2 / -1; height: 4px; border-radius: 2px; background: var(--sf2); position: relative; margin-top: -2px; }
.top .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--fg); }

/* docs and legal */
.prose { display: grid; gap: 14px; font-size: 15px; max-width: 64ch; }
.prose h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; padding-top: 18px; scroll-margin-top: 72px; }
.prose h2:first-child { padding-top: 0; }
.prose h3 { font-size: 16px; font-weight: 700; }
.prose p, .prose li { color: var(--mu2); }
.prose ul, .prose ol { padding-left: 20px; display: grid; gap: 6px; }
.prose code { font-size: 13px; background: var(--sf); padding: 2px 6px; border-radius: 6px; color: var(--fg); }
.prose table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.prose th, .prose td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--ln); vertical-align: top; }
.prose th { color: var(--mu); font-weight: 500; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; }
.toc a { border: 1px solid var(--ln); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 500; color: var(--mu); }
.toc a:hover { color: var(--fg); background: var(--sf); }
.legal-meta { font-size: 12.5px; color: var(--mu); }

/* modals and sheets */
.scrim { position: fixed; inset: 0; background: rgba(91, 112, 131, .4); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal { width: 100%; max-width: 420px; background: var(--bg); border: 1px solid var(--ln); border-radius: var(--r); padding: 18px; display: grid; gap: 14px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 0 30px rgba(0, 0, 0, .6); }
.modal.wide { max-width: 520px; }
.m-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.m-h h2 { font-size: 18px; font-weight: 700; }
.x { background: none; border: 0; color: var(--mu); padding: 6px; border-radius: 50%; display: inline-flex; }
.x:hover { background: var(--sf); color: var(--fg); }
.wlist { display: grid; gap: 6px; }
.wlist button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid var(--ln); border-radius: var(--r2); background: none; }
.wlist button:hover { background: var(--sf); }
.wlist .wl { width: 32px; height: 32px; border-radius: 8px; background: var(--sf3); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.wlist b { font-weight: 700; }
.wlist small { font-size: 12px; color: var(--mu); display: block; }
.wlist .tag { margin-left: auto; font-size: 12px; color: var(--mu); }
.wlist .tag.ok { color: var(--ok); }
.wlist a.tag { text-decoration: underline; text-underline-offset: 2px; }
.sl-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.sl-opts button { border: 1px solid var(--ln); background: none; border-radius: 999px; padding: 7px 14px; font-weight: 600; }
.sl-opts button[aria-pressed="true"] { background: var(--fg); color: #000; border-color: var(--fg); }
.sl-custom { display: flex; align-items: center; gap: 8px; background: var(--sf); border-radius: var(--r2); padding: 10px 14px; }
.sl-custom input { background: none; border: 0; outline: 0; width: 80px; font-size: 16px; font-weight: 700; }
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { background: var(--fg); color: #000; padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); animation: up .2s ease-out; }
.toast.bad { background: var(--bad); color: #fff; }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }

/* demo panel (removed entirely when CXO.demo is false) */
.demo { position: fixed; right: 12px; bottom: 12px; z-index: 45; width: 280px; background: var(--bg); border: 1px solid var(--warn); border-radius: 14px; font-size: 12.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.demo summary { cursor: pointer; list-style: none; padding: 10px 14px; font-weight: 700; color: var(--warn); display: flex; justify-content: space-between; }
.demo summary::-webkit-details-marker { display: none; }
.demo .body { padding: 0 14px 12px; display: grid; gap: 8px; border-top: 1px solid var(--ln); padding-top: 10px; }
.demo label { display: grid; grid-template-columns: 1fr 1.3fr; align-items: center; gap: 8px; color: var(--mu); }
.demo select, .demo button.sm { background: var(--sf); border: 1px solid var(--ln); color: var(--fg); border-radius: 8px; padding: 5px 8px; font-size: 12px; width: 100%; }
.demo p { color: var(--mu); font-size: 11.5px; }

@media (max-width: 760px) {
  .hd nav { display: none; }
  .hr .chip.tier { display: none; }
  .tr { grid-template-columns: 1fr 1fr; }
  .tr .ago, .tr .sc { display: none; }
  .or { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .or .code { grid-area: 1 / 1; } .or .stc { grid-area: 1 / 2; justify-self: end; } .or .tok { grid-area: 2 / 1; } .or .usd { grid-area: 2 / 2; text-align: right; } .or .date { grid-area: 3 / 1; font-size: 12.5px; }
  .or .go { display: none; }
  .eg { grid-template-columns: auto 1fr; }
  .eg .btn { grid-column: 2; grid-row: 3; justify-self: start; margin-top: 6px; }
  .tp { left: -14px; right: -14px; }
  .scrim { align-items: end; padding: 0; }
  .modal { max-width: none; border-radius: var(--r) var(--r) 0 0; border-bottom: 0; max-height: 88vh; }
  .demo { width: calc(100% - 24px); }
  .stats-grid { grid-template-columns: 1fr; }
}
/* wallet deposit (order page, wallet mode) */
.dep-addr { background: var(--sf); border-radius: var(--r2); padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.dep-addr .k { grid-column: 1 / -1; }
.dep-addr code { font: 500 14px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--fg); overflow-wrap: anywhere; word-break: break-all; user-select: all; }
.dep-prov { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dep-prov li { border: 1px solid var(--ln); border-radius: var(--r2); padding: 10px 12px; display: grid; gap: 2px; font-size: 14px; }
.dep-prov a { color: var(--fg); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.dep-prov a:hover { text-decoration: underline; }
.dep-prov small { color: var(--mu); font-size: 12.5px; }
.dep-wait { align-items: center; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .hd, .ft, .demo, .banner, .sim { display: none !important; } body { background: #fff; color: #000; } }
