/* Sotto. One dark room: graphite ground, bone ink, brass for what only you see (and the main action), near-black
   bars for what the public can't read. Display: Instrument Serif. Text: Geist. Figures and labels: Geist Mono. */
:root {
  --ground: #0c0d0f;
  --surface: #131418;
  --surface-2: #1a1c21;
  --paper: #24272d;
  --paper-2: #2c3037;
  --line: rgba(236, 232, 224, .08);
  --line-2: rgba(236, 232, 224, .14);
  --line-3: rgba(236, 232, 224, .24);
  --ink: #ece8e0;
  --ink-2: #bdb8ae;
  --muted: #9a968d;
  --brass: #d4af65;
  --brass-hi: #e2c07d;
  --brass-2: #a8863f;
  --brass-ink: #17120a;
  --brass-wash: rgba(212, 175, 101, .11);
  --bar: #060607;
  --header: rgba(12, 13, 15, .86);
  --shadow: rgba(0, 0, 0, .72);
  --good: #8cc49a;
  --bad: #e58a7a;
  --f-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-text: "Geist", ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 4vw, 40px), env(safe-area-inset-right, 0px));
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ground); scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 96px); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--ground); color: var(--ink); font: 400 16px/1.55 var(--f-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ground); }
#main { flex: 1; outline: none; overflow-x: clip; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* type */
.kicker { font: 500 12px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kicker.brass { color: var(--brass); }
.display { font: 400 clamp(52px, 7.2vw, 108px)/.92 var(--f-display); letter-spacing: -.015em; text-wrap: balance; }
.display .beat2, .h2 .beat2 { display: block; font-style: italic; color: var(--brass); }
.h2 { font: 400 clamp(36px, 4.4vw, 62px)/.98 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
.h3 { font: 400 clamp(28px, 3vw, 38px)/1 var(--f-display); }
.lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.lede b { color: var(--ink); font-weight: 500; }
.body-2 { color: var(--ink-2); max-width: 36em; }
.fine { font: 400 13px/1.55 var(--f-mono); color: var(--muted); }
.fine.dots span + span::before { content: "·"; margin: 0 8px; color: var(--line-3); }

/* buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; font: 500 15px/1.1 var(--f-text); text-decoration: none; border: 1px solid transparent; border-radius: 2px; cursor: pointer; background: none; transition: transform .12s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); text-align: center; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brass); color: var(--brass-ink); }
.btn.primary:hover { background: var(--brass-hi); }
.btn.ghost { border-color: var(--line-3); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink-2); }
.btn.line { border-color: var(--brass); color: var(--brass); }
.btn.line:hover { background: var(--brass-wash); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn.xs { min-height: 32px; padding: 0 10px; font-size: 13px; gap: 6px; }
.btn.xs .ic { width: 15px; height: 15px; }
.btn.wide { width: 100%; }
.btn[aria-disabled="true"] { opacity: .55; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; color: var(--ink); padding-bottom: 4px; border-bottom: 1px solid var(--line-3); transition: border-color .25s var(--ease), color .25s var(--ease); background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }
.link:hover { border-bottom-color: var(--brass); color: var(--brass-hi); }
.link .ic { width: 16px; height: 16px; }
.textlink { color: var(--brass); text-decoration: underline; text-decoration-color: var(--brass-2); text-underline-offset: 3px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border: 1px solid var(--line-3); border-radius: 2px; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.chip.brass { border-color: var(--brass-2); color: var(--brass); }
.chip.good { border-color: rgba(140, 196, 154, .45); color: var(--good); }
.chip.solid { background: var(--brass); color: var(--brass-ink); border-color: var(--brass); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; background: none; border: 1px solid var(--line-2); border-radius: 2px; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { border-color: var(--line-3); color: var(--ink); }

/* demo strip */
.demo-strip { background: var(--brass); color: var(--brass-ink); font: 500 12.5px/1.4 var(--f-mono); text-align: center; padding: 7px var(--gutter-r) 7px var(--gutter); }
.demo-strip b { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-right: 6px; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--header); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-bar { display: flex; align-items: center; gap: 22px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: none; }
.logo .mk { width: 30px; height: 30px; }
.logo .wm { height: 19px; width: 59px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { color: var(--ink); border-color: var(--brass); }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.menu-btn { display: none; }
.drawer { border-top: 1px solid var(--line); padding-block: 8px 18px; }
.drawer a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 17px; color: var(--ink); }
.drawer a[aria-current] { color: var(--brass); }
.drawer .drawer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.xlink { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 2px; text-decoration: none; font: 500 13px/1 var(--f-mono); color: var(--ink-2); }
.xlink:hover { color: var(--ink); border-color: var(--line-3); }
.xlink b { font: 600 15px/1 var(--f-text); color: var(--ink); }

/* wallet button and menu */
.wallet-box { position: relative; }
.wallet-btn { min-height: 40px; padding: 0 14px; font-size: 14px; gap: 8px; border-color: var(--line-3); }
.wallet-btn .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 3px; padding: 6px; box-shadow: 0 24px 50px -20px var(--shadow); z-index: 20; }
.menu-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font: 500 13px/1 var(--f-mono); }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; background: none; border: 0; border-radius: 2px; text-align: left; font-size: 14px; color: var(--ink-2); text-decoration: none; cursor: pointer; }
.menu-item:hover { background: var(--line); color: var(--ink); }

/* sections */
.sec { padding-block: clamp(64px, 9vw, 120px); }
.sec.tight { padding-block: clamp(40px, 6vw, 72px); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 44px; }
.sec-head p { color: var(--ink-2); font-size: 17px; max-width: 30em; }
.row-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head { padding-block: clamp(40px, 6vw, 80px) 28px; display: grid; gap: 20px; }
.page-head .display { font-size: clamp(46px, 6vw, 88px); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: clamp(40px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.hero .display { margin-top: 20px; }
.hero .lede { margin-top: 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .fine { margin-top: 26px; }

/* the signature object: the launch manifest under a lamp */
.desk { position: relative; width: 100%; max-width: 540px; aspect-ratio: 5/6; justify-self: end; perspective: 1500px; isolation: isolate; container-type: inline-size; }
.desk::before { content: ""; position: absolute; inset: -8% -14% -4%; background: radial-gradient(ellipse 58% 48% at 56% 40%, var(--brass-wash), transparent 72%); z-index: -1; pointer-events: none; }
.desk::after { content: ""; position: absolute; left: 10%; right: 8%; bottom: 1%; height: 8%; background: radial-gradient(ellipse at center, var(--shadow), transparent 70%); z-index: -1; filter: blur(6px); }
.sheet { position: absolute; inset: 7% 10% 7% 9%; border-radius: 4px; box-shadow: 0 36px 70px -26px var(--shadow), 0 0 0 1px var(--line); }
.sheet::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: var(--grain); pointer-events: none; }
.sheet.s3 { background: var(--surface-2); transform: rotateX(12deg) rotateZ(-10deg) translate(-6%, 3%); }
.sheet.s2 { background: var(--surface-2); background-image: linear-gradient(165deg, var(--paper), var(--surface-2)); transform: rotateX(12deg) rotateZ(-4.5deg) translate(-2.5%, 1.5%); }
.sheet.s1 { background: linear-gradient(165deg, var(--paper-2), var(--paper) 55%, var(--surface-2)); transform: rotateX(12deg) rotateZ(2.5deg); padding: 7.5cqi 7.5cqi 6cqi; display: flex; flex-direction: column; }
.s2-lines { position: absolute; left: 12%; right: 16%; top: 58%; display: grid; gap: 5cqi; opacity: .5; }
.s2-lines i { display: block; height: 2.4cqi; background: var(--bar); border-radius: 1px; }
.s2-lines i:nth-child(2) { width: 70%; }
.m-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 500 clamp(9px, 2.2cqi, 12px)/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 3.4cqi; border-bottom: 1px dashed var(--line-3); }
.m-head b { color: var(--brass); font-weight: 500; }
.m-rows { display: flex; flex-direction: column; flex: 1; }
.mrow { display: grid; grid-template-columns: 24cqi minmax(0, 1fr) auto; gap: 3cqi; align-items: center; padding: 2.6cqi 0; border-bottom: 1px solid var(--line); }
.ml { font: 500 clamp(8.5px, 1.95cqi, 11px)/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mv { position: relative; justify-self: start; font: 400 clamp(13px, 3.3cqi, 18px)/1.25 var(--f-text); color: var(--ink); min-width: 0; }
.mv .t { color: var(--brass); }
.mrow.priv .mv { white-space: nowrap; }
.mt { font: 500 clamp(8px, 1.8cqi, 10px)/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mrow.priv .mt { color: var(--brass); }
.rb { position: absolute; left: -.25em; right: -.25em; top: 50%; height: 1.3em; margin-top: -.65em; background: var(--bar); border-radius: 1px; transform-origin: left center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035); }
.desk .stamp { position: absolute; right: 6cqi; bottom: 5cqi; width: 22cqi; height: 22cqi; color: var(--brass); opacity: .82; transform: rotate(-14deg); }
[data-motion="on"] .desk .rb { animation: redact 8.5s var(--ease) infinite; animation-delay: var(--d, 0s); }
@keyframes redact {
  0% { transform: scaleX(0); opacity: 1; }
  7% { transform: scaleX(1); opacity: 1; }
  80% { transform: scaleX(1); opacity: 1; }
  86% { transform: scaleX(1); opacity: 0; }
  99% { transform: scaleX(0); opacity: 0; }
  100% { transform: scaleX(0); opacity: 1; }
}

/* token strip and the CA box */
.strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 28px; align-items: center; border-block: 1px solid var(--line-2); padding-block: 22px; }
.strip .tk { font: 400 34px/1 var(--f-display); letter-spacing: -.01em; }
.strip .tk-note { color: var(--ink-2); font-size: 14.5px; padding-left: 28px; border-left: 1px solid var(--line-2); }
.ca { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 14px; border: 1px dashed var(--line-3); border-radius: 2px; min-width: 0; }
.ca .v { font: 500 13px/1.3 var(--f-mono); color: var(--brass); overflow-wrap: anywhere; user-select: all; }
.ca .n { font-size: 13px; color: var(--muted); max-width: 21em; line-height: 1.35; }
.ca.live { border-style: solid; border-color: var(--brass-2); }
.ca.small { padding: 0 10px; height: 40px; flex-wrap: nowrap; gap: 8px; }
.ca.small .kicker { font-size: 10.5px; }
.ca.small .v { font-size: 12.5px; }

/* privacy explorer band */
.band { background: var(--surface); border-block: 1px solid var(--line); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--ink-2); font-size: 17px; cursor: pointer; white-space: nowrap; transition: color .2s, border-color .2s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--brass); border-color: var(--brass); }
.tab .chip { height: 20px; font-size: 10px; padding: 0 6px; }
.explore { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-top: clamp(36px, 5vw, 56px); align-items: start; }
.slip-stage { position: relative; padding: clamp(8px, 3vw, 28px) 0; }
.slip-stage::before { content: ""; position: absolute; inset: -4% -6%; background: radial-gradient(ellipse 60% 55% at 50% 45%, var(--brass-wash), transparent 70%); pointer-events: none; }
.slip { position: relative; max-width: 470px; margin-inline: auto; background: linear-gradient(170deg, var(--paper-2), var(--paper)); border-radius: 3px; padding: 30px clamp(18px, 4vw, 30px) 22px; box-shadow: 0 40px 80px -34px var(--shadow), 0 0 0 1px var(--line); transform: rotate(-1.4deg); }
.slip::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 9px; background: radial-gradient(circle at 8px 0, var(--surface) 4.5px, transparent 5px) 0 0/16px 9px repeat-x; }
.slip::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: var(--grain); pointer-events: none; }
.slip-head { display: flex; justify-content: space-between; gap: 10px; font: 500 11px/1 var(--f-mono); letter-spacing: .15em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 14px; border-bottom: 1px dashed var(--line-3); }
.slip-head b { color: var(--brass); font-weight: 500; }
.srow { display: grid; grid-template-columns: 6.6em minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.sl { font: 500 11px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sv { position: relative; justify-self: start; font: 400 15px/1.35 var(--f-mono); color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.srow.priv .sv { color: var(--brass); }
.srow.priv .rb, .sealed-list .rb { transition: transform .45s var(--ease); }
.slip.owner .srow.priv .rb, .sealed-list.open .rb { transform: scaleX(0); transform-origin: right center; }
[data-motion="on"] .slip.fresh .srow.priv .rb { animation: sweep .55s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.stag { display: inline-flex; align-items: center; gap: 5px; font: 500 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stag .ic { width: 13px; height: 13px; }
.srow.priv .stag { color: var(--brass); }
.slip-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 14px; font: 400 11.5px/1.3 var(--f-mono); color: var(--muted); }
.slip-foot i { display: inline-block; width: 18px; height: 8px; background: var(--bar); vertical-align: middle; margin-right: 6px; box-shadow: 0 0 0 1px var(--line-2); }
.slip-foot i.pub { width: 8px; border-radius: 50%; background: var(--ink-2); box-shadow: none; }
.ex-copy { display: flex; flex-direction: column; border-left: 1px solid var(--line-2); padding-left: clamp(20px, 3vw, 40px); }
.ex-copy h3 { font: 400 clamp(34px, 3.6vw, 48px)/1 var(--f-display); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ex-sub { font-size: 18px; color: var(--ink); margin-top: 12px; }
.ex-dl { margin: 28px 0 0; padding: 0; }
.ex-dl div { padding: 18px 0; border-top: 1px solid var(--line-2); }
.ex-dl dt { font: 500 11.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.ex-dl dt.brass { color: var(--brass); }
.ex-dl dt .ic { width: 14px; height: 14px; }
.ex-dl dd { margin: 0; color: var(--ink-2); }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-3); border-radius: 2px; margin-top: 8px; }
.seg button { height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: none; border: 0; cursor: pointer; color: var(--ink-2); font-size: 14.5px; transition: background-color .25s var(--ease), color .25s var(--ease); }
.seg button + button { border-left: 1px solid var(--line-3); }
.seg button[aria-pressed="true"] { background: var(--brass); color: var(--brass-ink); }
.ex-note { font-size: 14px; color: var(--muted); margin-top: 14px; min-height: 3em; }
.ex-copy .link { margin-top: 22px; align-self: flex-start; }
.disclaim { margin-top: clamp(36px, 5vw, 56px); padding-top: 22px; border-top: 1px solid var(--line-2); max-width: 60em; }

/* utility */
.util { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.util .body-2 { margin-top: 24px; font-size: 18px; }
.util .link { margin-top: 30px; }
.util .fine { margin-top: 24px; }
.passes { position: relative; aspect-ratio: 1/0.95; max-width: 520px; width: 100%; justify-self: end; container-type: inline-size; }
.passes::before { content: ""; position: absolute; inset: 0 -8%; background: radial-gradient(ellipse 55% 50% at 50% 50%, var(--brass-wash), transparent 70%); pointer-events: none; }
.pass { position: absolute; width: 74%; aspect-ratio: 2.25/1; display: grid; grid-template-columns: 1fr 26%; background: linear-gradient(160deg, var(--paper-2), var(--paper)); border-radius: 5px; box-shadow: 0 30px 50px -24px var(--shadow);
  -webkit-mask: radial-gradient(circle at 74% 0, transparent 3.2cqi, #000 3.3cqi) top/100% 51% no-repeat, radial-gradient(circle at 74% 100%, transparent 3.2cqi, #000 3.3cqi) bottom/100% 51% no-repeat;
  mask: radial-gradient(circle at 74% 0, transparent 3.2cqi, #000 3.3cqi) top/100% 51% no-repeat, radial-gradient(circle at 74% 100%, transparent 3.2cqi, #000 3.3cqi) bottom/100% 51% no-repeat; }
.pass::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); pointer-events: none; }
.pass .main { padding: 5cqi 5.5cqi; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.pass .stub { border-left: 1.5px dashed var(--line-3); display: grid; place-items: center; padding: 3cqi; }
.pass .stub span { writing-mode: vertical-rl; transform: rotate(180deg); font: 500 2.1cqi/1 var(--f-mono); letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.pass .p-top { display: flex; align-items: center; gap: 2.4cqi; font: 500 2.2cqi/1 var(--f-mono); letter-spacing: .18em; color: var(--brass); text-transform: uppercase; }
.pass .p-top svg { width: 5cqi; height: 5cqi; }
.pass .p-name { font: 400 6.2cqi/1 var(--f-display); color: var(--ink); }
.pass .p-meta { display: flex; justify-content: space-between; font: 400 2.2cqi/1 var(--f-mono); color: var(--muted); letter-spacing: .06em; }
.pass.p1 { left: 2%; top: 2%; transform: rotate(-6deg); opacity: .75; }
.pass.p2 { left: 18%; top: 33%; transform: rotate(4deg); opacity: .9; }
.pass.p3 { left: 8%; top: 63%; transform: rotate(-2deg); }

/* docs list */
.open { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.doclist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-3); }
.doclist a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; border-bottom: 1px solid var(--line-3); text-decoration: none; font-size: 17px; color: var(--ink); transition: color .2s; }
.doclist a:hover { color: var(--brass-hi); }
.doclist .ic { color: var(--ink-2); }

/* coin art: the picture, or a drawn seal when there is none */
.art { flex: none; border-radius: 50%; object-fit: cover; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line-2); }
.seal { flex: none; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 38% 32%, var(--paper-2), var(--surface-2)); box-shadow: inset 0 0 0 2px var(--brass), inset 0 0 0 5px var(--paper), inset 0 0 0 6px rgba(212, 175, 101, .5); font: 400 26px/1 var(--f-display); color: var(--brass); letter-spacing: -.02em; }

/* coin cards */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.coin-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .25s var(--ease); min-width: 0; }
a.coin-card:hover { border-color: var(--brass-2); transform: translateY(-2px); }
.coin-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.coin-id { min-width: 0; flex: 1; }
.coin-name { font: 400 24px/1.05 var(--f-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-sym { font: 500 12.5px/1 var(--f-mono); color: var(--ink-2); margin-top: 5px; }
.coin-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.coin-nums span { display: block; }
.label { font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.num { font: 500 15px/1.3 var(--f-mono); font-variant-numeric: tabular-nums; margin-top: 4px; }
.bar { height: 4px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--brass); }
.coin-last { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skeleton { min-height: 180px; position: relative; overflow: hidden; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(236, 232, 224, .04), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* lists: activity, trades */
.feed { border-top: 1px solid var(--line-2); }
.feed-row { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) auto auto; gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.feed-row .sym { font: 500 13px/1 var(--f-mono); color: var(--brass); }
.feed-row .tx { font: 400 12.5px/1 var(--f-mono); color: var(--ink-2); text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.feed-row .tx .ic { width: 13px; height: 13px; }
.feed-row time { font: 400 12.5px/1 var(--f-mono); color: var(--muted); white-space: nowrap; }

/* empty states */
.empty { padding: 48px 24px; border: 1px dashed var(--line-3); border-radius: 3px; display: grid; gap: 12px; justify-items: start; }
.empty h3 { font: 400 32px/1.05 var(--f-display); }
.empty p { color: var(--ink-2); max-width: 34em; }

/* controls */
.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.segs { display: inline-flex; border: 1px solid var(--line-3); border-radius: 2px; }
.segs button { height: 40px; padding: 0 14px; background: none; border: 0; color: var(--ink-2); cursor: pointer; font-size: 14px; }
.segs button + button { border-left: 1px solid var(--line-3); }
.segs button[aria-pressed="true"] { background: var(--brass); color: var(--brass-ink); }
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line-3); border-radius: 2px; min-width: min(320px, 100%); background: var(--ground); }
.search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--ink); font: 400 15px/1 var(--f-text); outline: none; }

/* forms */
.inp { width: 100%; min-height: 48px; padding: 0 14px; background: var(--ground); border: 1px solid var(--line-3); border-radius: 2px; color: var(--ink); font: 400 16px/1.2 var(--f-text); transition: border-color .2s; }
textarea.inp { min-height: 96px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.inp:hover { border-color: var(--ink-2); }
.inp:focus { outline: none; border-color: var(--brass); }
.inp::placeholder { color: var(--muted); }
.inp[aria-invalid] { border-color: var(--bad); }
.field { min-width: 0; }
.field > label, .flabel { display: block; font: 500 12px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.affix { display: flex; align-items: stretch; }
.affix .pre, .affix .post { display: grid; place-items: center; min-width: 42px; padding: 0 10px; border: 1px solid var(--line-3); background: var(--surface-2); font: 500 15px/1 var(--f-mono); color: var(--brass); }
.affix .pre { border-right: 0; border-radius: 2px 0 0 2px; }
.affix .post { border-left: 0; border-radius: 0 2px 2px 0; color: var(--muted); }
.affix .inp { border-radius: 0; font-family: var(--f-mono); }
.affix .inp:first-child { border-radius: 2px 0 0 2px; }
.hint { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); margin-top: 7px; }
.problem { font-size: 13.5px; color: var(--bad); margin-top: 7px; min-height: 0; }
.problem:empty { display: none; }
.drop { width: 100%; min-height: 150px; display: grid; place-items: center; border: 1px dashed var(--line-3); border-radius: 3px; background: var(--ground); cursor: pointer; color: var(--ink-2); padding: 14px; transition: border-color .2s, background-color .2s; }
.drop:hover, .drop.over { border-color: var(--brass); background: var(--brass-wash); }
.drop img { max-height: 140px; border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.drop-inner { display: grid; justify-items: center; gap: 6px; text-align: center; }
.drop-inner b { font-weight: 500; color: var(--ink); }
details.more summary { cursor: pointer; color: var(--ink-2); font-size: 14.5px; padding: 8px 0; }
details.more[open] summary { margin-bottom: 12px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quick button { height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 2px; background: none; color: var(--ink-2); cursor: pointer; font: 500 13px/1 var(--f-mono); }
.quick button:hover { border-color: var(--brass-2); color: var(--ink); }

/* the launch page */
.lp-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: clamp(40px, 6vw, 80px) 40px; }
.lp-hero .display { font-size: clamp(46px, 6vw, 92px); margin-top: 20px; }
.lp-hero .lede { margin-top: 24px; }
.ws { max-width: 440px; width: 100%; justify-self: end; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 18px; transform: rotate(1.6deg); box-shadow: 0 40px 70px -34px var(--shadow); }
.ws-top { display: flex; justify-content: space-between; align-items: center; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.ws-pub, .ws-priv { padding: 18px 18px 16px; border-radius: 2px; }
.ws-pub { background: linear-gradient(165deg, var(--paper-2), var(--paper)); }
.ws-priv { background: var(--surface); border: 1px solid var(--line-2); border-top: 0; }
.ws strong { display: block; font: 400 26px/1.1 var(--f-display); margin-top: 10px; }
.ws p { font-size: 14px; color: var(--muted); margin-top: 8px; }
.ws-bars { display: grid; gap: 7px; margin-top: 12px; }
.ws-bars i { display: block; height: 11px; background: var(--bar); border-radius: 1px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.ws-foot { font: 400 12.5px/1.4 var(--f-mono); color: var(--muted); margin-top: 14px; }
.banner { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding: 14px 18px; border: 1px solid var(--line-2); border-left: 2px solid var(--brass); background: var(--surface); font-size: 14.5px; color: var(--ink-2); }
.banner b { color: var(--ink); font-weight: 500; }
.banner.good { border-left-color: var(--good); }
.route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.route { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--surface); cursor: pointer; transition: border-color .2s, background-color .2s; }
.route:hover { border-color: var(--line-3); }
.route input { position: absolute; opacity: 0; pointer-events: none; }
.route .r-top { display: flex; justify-content: space-between; align-items: center; }
.route .dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-3); display: grid; place-items: center; }
.route .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); transform: scale(0); transition: transform .2s var(--ease); }
.route strong { font: 400 30px/1 var(--f-display); margin-top: 14px; }
.route .r-line { color: var(--ink-2); font-size: 15px; }
.route .chip { align-self: flex-start; margin-top: 6px; }
.route:has(input:checked) { border-color: var(--brass); background: linear-gradient(165deg, var(--surface-2), var(--surface)); }
.route:has(input:checked) .dot { border-color: var(--brass); }
.route:has(input:checked) .dot::after { transform: scale(1); }
.route:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 3px; }
.chosen { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; padding: 22px; border: 1px solid var(--line-2); border-radius: 3px; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.chain span { font: 500 13px/1 var(--f-mono); padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 2px; color: var(--ink); }
.chain .ic { width: 14px; height: 14px; color: var(--muted); }
.plan { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.step { border: 1px solid var(--line-2); border-radius: 3px; background: var(--surface); padding: clamp(18px, 3vw, 28px); min-width: 0; }
.step-h { display: flex; align-items: center; gap: 14px; }
.step-n { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-3); display: grid; place-items: center; font: 500 13px/1 var(--f-mono); color: var(--ink-2); flex: none; transition: all .25s var(--ease); }
.step-n .ic { width: 15px; height: 15px; display: none; }
.step.ok .step-n { background: var(--brass); border-color: var(--brass); color: var(--brass-ink); }
.step.ok .step-n b { display: none; }
.step.ok .step-n .ic { display: block; }
.step-h h3 { font: 400 28px/1 var(--f-display); }
.step-d { color: var(--muted); font-size: 14.5px; margin-top: 10px; }
.fields { display: grid; gap: 18px; margin-top: 22px; }
.rcp { display: grid; gap: 10px; margin-top: 22px; }
.rcp-head, .rrow { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr) 104px 44px; gap: 10px; align-items: start; }
.rcp-head span { font: 500 11px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rcp-head span.brass { color: var(--brass); }
.rrow .inp { font-size: 15px; }
.rrow .alias { border-color: var(--brass-2); }
.rrow .problem { grid-column: 1 / -1; margin-top: -2px; }
.rcp-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.total { font: 500 13px/1 var(--f-mono); padding: 9px 10px; border: 1px solid var(--line-2); border-radius: 2px; }
.total.good { color: var(--good); border-color: rgba(140, 196, 154, .4); }
.total.bad { color: var(--bad); border-color: rgba(229, 138, 122, .4); }
.pv { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); display: flex; flex-direction: column; gap: 14px; }
.pv-card { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; }
.pv-pub { padding: 22px; background: linear-gradient(165deg, var(--paper-2), var(--paper)); position: relative; }
.pv-pub::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); pointer-events: none; }
.pv-id { display: flex; gap: 16px; align-items: center; margin-top: 16px; position: relative; z-index: 1; }
.pv-name { font: 400 30px/1.05 var(--f-display); overflow-wrap: anywhere; }
.pv-name.empty-v, .pv-desc.empty-v { color: var(--muted); }
.pv-tk { font: 500 14px/1 var(--f-mono); color: var(--ink-2); margin-top: 6px; }
.pv-desc { font-size: 14.5px; color: var(--ink-2); margin-top: 16px; overflow-wrap: anywhere; position: relative; z-index: 1; }
.pv-split { margin-top: 16px; display: grid; gap: 6px; position: relative; z-index: 1; }
.pv-split div { display: flex; justify-content: space-between; gap: 10px; font: 400 13px/1.3 var(--f-mono); color: var(--ink-2); }
.pv-priv { padding: 20px 22px; }
.pv-priv-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.reveal { display: inline-flex; align-items: center; gap: 7px; background: none; border: 1px solid var(--line-2); border-radius: 2px; height: 34px; padding: 0 10px; font: 500 12px/1 var(--f-mono); color: var(--ink-2); cursor: pointer; }
.reveal:hover { color: var(--ink); border-color: var(--line-3); }
.reveal .ic { width: 15px; height: 15px; }
.sealed-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.sealed-list li { display: flex; justify-content: space-between; gap: 12px; font: 400 14px/1.3 var(--f-mono); }
.sealed-list .sv { font-size: 14px; color: var(--brass); }
.sealed-list .k { color: var(--muted); }
.costs { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; margin: 14px 0 0; font-size: 14px; }
.costs dt { color: var(--ink-2); }
.costs dd { margin: 0; font: 500 14px/1.4 var(--f-mono); text-align: right; white-space: nowrap; }
.costs .total-row { padding-top: 10px; border-top: 1px solid var(--line-2); color: var(--ink); font-weight: 500; }
.box { border: 1px solid var(--line-2); border-radius: 3px; padding: 18px 20px; background: var(--surface); }
.box h3 { font: 500 16px/1.3 var(--f-text); }
.todo { font-size: 14px; color: var(--ink-2); min-height: 1.4em; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notes li { display: flex; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.notes li .ic { width: 15px; height: 15px; margin-top: 3px; color: var(--brass); }
.edges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-3); }
.edge { padding: 24px 24px 26px 0; }
.edge + .edge { padding-left: 24px; border-left: 1px solid var(--line-2); }
.edge .kicker { display: flex; align-items: center; gap: 8px; }
.edge .kicker .ic { width: 15px; height: 15px; }
.edge p { color: var(--ink-2); margin-top: 12px; }
.proc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 40px 0 0; padding: 0; list-style: none; }
.proc li { padding: 22px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--surface); }
.proc .n { font: 400 46px/1 var(--f-display); color: var(--brass); }
.proc h3 { font: 500 18px/1.2 var(--f-text); margin-top: 16px; }
.proc p { color: var(--ink-2); margin-top: 8px; font-size: 15px; }

/* the coin page */
.coin-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding-block: clamp(36px, 5vw, 64px) 26px; }
.coin-top h1 { font: 400 clamp(40px, 5vw, 70px)/.95 var(--f-display); overflow-wrap: anywhere; }
.coin-top .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.coin-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--line-2); }
.stat { padding: 18px 18px 20px 0; min-width: 0; }
.stat + .stat { padding-left: 18px; border-left: 1px solid var(--line); }
.stat-value { font: 500 clamp(20px, 2.4vw, 28px)/1.1 var(--f-mono); font-variant-numeric: tabular-nums; margin-top: 8px; display: block; overflow-wrap: anywhere; }
.stat-hint { font-size: 12.5px; color: var(--muted); display: block; margin-top: 4px; }
.coin-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); padding-block: 32px 80px; align-items: start; }
.card { border: 1px solid var(--line-2); border-radius: 3px; background: var(--surface); padding: 20px; min-width: 0; }
.card + .card { margin-top: 16px; }
.card h2 { font: 400 28px/1 var(--f-display); }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.chart { width: 100%; }
.chart svg { display: block; width: 100%; }
.chart-area { fill: rgba(212, 175, 101, .1); }
.chart-line { fill: none; stroke: var(--brass); stroke-width: 1.6; }
.chart.empty { padding: 40px 0; text-align: center; }
.split-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.split-table th { text-align: left; font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.split-table td { padding: 11px 0; border-bottom: 1px solid var(--line); font-family: var(--f-mono); vertical-align: middle; }
.split-table td.bps { text-align: right; }
.split-table th.bps { text-align: right; }
.split-table .alias { position: relative; display: inline-block; color: var(--brass); min-width: 5em; }
.split-table .alias .rb { transition: transform .45s var(--ease); }
.owner .split-table .alias .rb, .owner .notes-box .rb { transform: scaleX(0); transform-origin: right center; }
.notes-box { position: relative; margin-top: 14px; padding: 14px; border: 1px dashed var(--brass-2); border-radius: 2px; color: var(--brass); font: 400 14px/1.5 var(--f-mono); white-space: pre-wrap; min-height: 3em; }
.notes-box .rb { left: 0; right: 0; top: 0; bottom: 0; height: auto; margin: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 6px 8px 0; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 10px 6px 10px 0; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .buy { color: var(--good); }
.tbl .sell { color: var(--bad); }
.scroll-x { overflow-x: auto; }

/* workspace and library */
.lib-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 44px; }
.doc { display: flex; flex-direction: column; gap: 12px; min-height: 200px; padding: 22px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--surface); text-align: left; color: var(--ink); text-decoration: none; transition: border-color .2s; }
a.doc:hover { border-color: var(--brass); }
.doc.soon { background: none; border-style: dashed; }
.doc .d-top { display: flex; justify-content: space-between; align-items: center; }
.doc .d-top .ic { width: 22px; height: 22px; color: var(--ink-2); }
.doc strong { font: 400 28px/1.05 var(--f-display); margin-top: auto; }
.doc span.d-sub { color: var(--muted); font-size: 14.5px; }
.reader { padding-block: 20px 100px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
.reader h1 { font: 400 clamp(40px, 4.4vw, 60px)/1 var(--f-display); }
.r-body { max-width: 40em; display: flex; flex-direction: column; gap: 18px; color: var(--ink-2); font-size: 17px; }
.r-body h3 { font: 500 15px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-top: 14px; }
.r-body b { color: var(--ink); font-weight: 500; }
.r-body ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.r-body ol li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.r-body ol li .n { font: 400 30px/1 var(--f-display); color: var(--muted); }
.r-body ol li.now .n { color: var(--brass); }
.r-body ol li b { display: block; }

/* modal, flow, toasts */
.modal-veil { position: fixed; inset: 0; z-index: 50; background: rgba(6, 6, 7, .72); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) var(--gutter-r) max(16px, env(safe-area-inset-bottom, 0px)) var(--gutter); }
.modal-panel { width: min(520px, 100%); max-height: 100%; overflow: auto; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 4px; box-shadow: 0 40px 90px -30px #000; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px 0; }
.modal-head h2 { font: 400 30px/1.05 var(--f-display); }
.modal-panel.locked .modal-x { visibility: hidden; }
.modal-body { padding: 16px 20px 22px; display: grid; gap: 14px; }
.modal-body .row-end { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.big-line { font-size: 18px; }
.big-line b { font: 500 18px/1 var(--f-mono); color: var(--brass); }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flow-steps li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; }
.flow-steps .mark { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-3); display: grid; place-items: center; font: 500 12px/1 var(--f-mono); flex: none; }
.flow-steps .mark .ic { width: 14px; height: 14px; }
.flow-steps li.done { color: var(--ink-2); }
.flow-steps li.done .mark { background: var(--brass); border-color: var(--brass); color: var(--brass-ink); }
.flow-steps li.now { color: var(--ink); }
.flow-steps li.now .mark { border-color: var(--brass); color: var(--brass); }
[data-motion="on"] .flow-steps li.now .mark { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px var(--brass-wash); } }
.flow-steps li.bad .mark { border-color: var(--bad); color: var(--bad); }
.wallet-list { display: grid; gap: 8px; }
.wallet-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 3px; cursor: pointer; text-align: left; }
.wallet-row:hover { border-color: var(--brass-2); }
.wallet-row img { width: 28px; height: 28px; border-radius: 6px; }
.wallet-row .wallet-name { flex: 1; font-weight: 500; }
.wallet-row .wallet-tag { font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wallet-help { display: grid; gap: 10px; }
.wallet-help .row { display: flex; flex-wrap: wrap; gap: 8px; }
.toasts { position: fixed; z-index: 60; left: 50%; bottom: max(18px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { padding: 12px 16px; background: var(--paper-2); border: 1px solid var(--line-3); border-radius: 3px; font-size: 14.5px; box-shadow: 0 20px 40px -20px #000; }
.toast.bad { border-color: rgba(229, 138, 122, .5); }

/* footer */
.foot { border-top: 1px solid var(--line-2); background: var(--surface); padding-block: 48px max(40px, env(safe-area-inset-bottom, 0px)); }
.foot .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px 48px; align-items: start; }
.foot .logo .mk { width: 44px; height: 44px; }
.foot .logo .wm { height: 28px; width: 87px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: flex-end; }
.foot-links a { text-decoration: none; color: var(--ink-2); font-size: 14.5px; }
.foot-links a:hover { color: var(--ink); }
.foot-fine { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; padding-top: 22px; border-top: 1px solid var(--line); }
.motion-btn { background: none; border: 1px solid var(--line-2); border-radius: 2px; height: 36px; padding: 0 12px; font: 500 12px/1 var(--f-mono); letter-spacing: .06em; color: var(--ink-2); cursor: pointer; }
.motion-btn:hover { border-color: var(--line-3); color: var(--ink); }

/* page enter */
[data-motion="on"] #main.enter > * { animation: enter .35s var(--ease) both; }
@keyframes enter { from { opacity: .001; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* phones and narrow screens */
@media (max-width: 1080px) {
  .top-actions .ca.small, .top-actions .xlink span { display: none; }
}
@media (max-width: 960px) {
  .nav, .top-actions .top-cta, .top-actions .ca.small { display: none; }
  .menu-btn { display: inline-grid; }
  .hero, .lp-hero, .util, .open, .reader { grid-template-columns: 1fr; }
  .desk, .passes, .ws { justify-self: center; }
  .sec-head { grid-template-columns: 1fr; gap: 18px; }
  .explore { grid-template-columns: 1fr; }
  .ex-copy { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-2); padding-top: 28px; }
  .strip { grid-template-columns: auto minmax(0, 1fr); gap: 16px 20px; }
  .strip .ca, .strip .link, .strip .xlink { grid-column: 1 / -1; justify-self: start; }
  .plan, .coin-grid { grid-template-columns: 1fr; }
  .pv { position: static; }
  .route-grid, .proc, .lib-grid, .edges { grid-template-columns: 1fr; }
  .edge, .edge + .edge { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line-2); }
  .chosen { grid-template-columns: 1fr; }
  .foot .wrap { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
  .coin-top { grid-template-columns: auto minmax(0, 1fr); }
  .coin-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .cta-row .btn { flex: 1 1 100%; }
  .strip .tk-note { padding-left: 16px; }
  .srow { grid-template-columns: 5.6em minmax(0, 1fr); }
  .srow .stag { grid-column: 2; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 6px; overflow: visible; }
  .tab { padding: 0 10px; font-size: 16px; }
  .two { grid-template-columns: 1fr; }
  .rcp-head { display: none; }
  .rrow { grid-template-columns: minmax(0, 1fr) 96px 44px; }
  .rrow .alias-wrap { grid-column: 1 / -1; }
  .feed-row { grid-template-columns: minmax(0, 1fr) auto; }
  .feed-row .sym { grid-column: 1 / -1; }
  .wallet-btn .bal { display: none; }
  .top-bar { gap: 12px; }
}
