/* css/site.css: Thinkrr's shared look. A research lab's quiet grey paper and fine grid (after uvlabs.ai's layout) in
   the colors of the Thinkrr banner: mist whites, fog, sage, pine, glacier blue, and the logo's one green bar. */

@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-tight-latin.woff2') format('woff2'); }
@font-face { font-family: 'Bitter'; font-style: italic; font-weight: 100 900; font-display: swap; src: url('/fonts/bitter-italic-latin.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2'); }

:root {
  --paper: #f4f6f5;
  --paper-2: #e9eeec;
  --paper-3: #dde4e1;
  --card: #fbfcfb;
  --ink: #0b0d0c;
  --ink-2: #34433c;
  --ink-3: #6b7a73;
  --line: rgba(11, 13, 12, .10);
  --line-2: rgba(11, 13, 12, .18);
  --green: #038b4d;
  --green-ink: #026b3b;
  --green-soft: #dcefe5;
  --forest: #385c4a;
  --pine: #476155;
  --sage: #77998e;
  --fog: #9faea6;
  --glacier: #d2dee0;
  --track: #d7d7d6;
  --night: #121a16;
  --night-2: #1a2520;
  --on-night: #e8eeeb;
  --on-night-2: #9fb0a8;
  --red: #b4432f;
  --red-soft: #f6e3de;
  --amber: #9a6a12;
  --amber-soft: #f6ecd6;
  --grid: rgba(56, 92, 74, .075);
  --grid-night: rgba(232, 238, 235, .06);
  --sans: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Bitter', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r: 4px;
  --r-lg: 8px;
  --shadow: 0 1px 2px rgba(11, 13, 12, .05), 0 8px 24px -12px rgba(11, 13, 12, .14);
  --shadow-lg: 0 2px 4px rgba(11, 13, 12, .05), 0 24px 60px -24px rgba(18, 26, 22, .35);
  --gut: 16px;
  --head-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (min-width: 640px) { :root { --gut: 32px; } }
@media (min-width: 1100px) { :root { --gut: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0; min-height: 100vh; background: var(--paper-2); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.55; font-weight: 450;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--green-soft); color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sr-only:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 8px 12px; background: var(--ink); color: var(--paper); z-index: 100; border-radius: var(--r); }
.mono, .num, .tabular { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.ink2 { color: var(--ink-2); }
.pos { color: var(--green-ink); }
.neg { color: var(--red); }
.nowrap { white-space: nowrap; }
.bd-icon { width: 16px; height: 16px; flex: none; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gut); }
.wrap-wide { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 var(--gut); }
.wrap-narrow { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 var(--gut); }
main { display: block; }

/* grounds */
.ground { background: var(--paper-2); }
.ground-light { background: var(--paper); }
.ground-fog { background: var(--paper-3); }
.gridded {
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px; background-position: -1px -1px;
}
.night { background: var(--night); color: var(--on-night); }
.night.gridded { background-image: linear-gradient(var(--grid-night) 1px, transparent 1px), linear-gradient(90deg, var(--grid-night) 1px, transparent 1px); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* pixel clusters: small square marks in the corners of gridded areas */
.px { position: absolute; display: grid; grid-template-columns: repeat(6, 7px); gap: 2px; pointer-events: none; }
.px i { display: block; width: 7px; height: 7px; background: var(--sage); opacity: .0; }
.px i.a { opacity: .9; background: var(--forest); }
.px i.b { opacity: .55; }
.px i.c { opacity: .25; }
.px i.g { opacity: 1; background: var(--green); }
.night .px i { background: var(--fog); }
.night .px i.a { background: var(--on-night); opacity: .5; }

/* type */
h1, h2, h3, h4 { margin: 0; font-weight: 300; letter-spacing: -.02em; line-height: 1.08; color: var(--ink); }
.night h1, .night h2, .night h3 { color: var(--on-night); }
em.it, .it { font-family: var(--serif); font-style: italic; font-weight: 700; letter-spacing: -.03em; }
.it-soft { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.02em; }
.hl { color: var(--green-ink); }
.night .hl { color: #7fd1a6; }
.h-hero { font-size: clamp(40px, 7.2vw, 88px); letter-spacing: -.035em; line-height: 1; }
.h-page { font-size: clamp(34px, 5vw, 56px); letter-spacing: -.03em; line-height: 1.04; }
.h-sec { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.028em; line-height: 1.08; }
.h-card { font-size: 18px; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.lede { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.55; color: var(--ink-2); max-width: 46ch; font-weight: 450; }
.night .lede { color: var(--on-night-2); }
.body { color: var(--ink-2); }
.label, .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.night .label, .night .eyebrow { color: var(--on-night-2); }
.eyebrow .dot, .live-dot { width: 7px; height: 7px; background: var(--green); display: inline-block; flex: none; }
.live-dot { animation: live 2.4s ease-in-out infinite; }
@keyframes live { 50% { opacity: .35; } }
.marker { color: var(--green-ink); }

/* the logo's bar: a green fill on a grey track (also the loading indicator) */
.bar-mark { display: inline-flex; width: 64px; height: 6px; background: var(--track); overflow: hidden; vertical-align: middle; }
.bar-mark::before { content: ''; width: 62%; background: var(--green); }
.bar-load { position: relative; display: block; width: 120px; height: 6px; background: var(--track); overflow: hidden; }
.bar-load::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 40%; background: var(--green); animation: barload 1.6s var(--ease) infinite; }
@keyframes barload { 0% { left: -40%; width: 40%; } 60% { left: 30%; width: 62%; } 100% { left: 100%; width: 40%; } }

/* buttons: uppercase 12px, ink fill or light outline, square 4px corners */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 22px;
  border-radius: var(--r); border: 1px solid var(--line-2); background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  line-height: 1; white-space: nowrap; transition: background .18s, border-color .18s, color .18s, transform .18s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--card); border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn .bd-icon { width: 15px; height: 15px; }
.btn-sm { min-height: 40px; padding: 9px 14px; font-size: 11.5px; }
.btn-lg { min-height: 50px; padding: 15px 28px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn-primary, .btn-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover, .btn-ink:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--paper); }
.btn-green, .btn-neon { background: var(--green-ink); color: #fff; border-color: var(--green-ink); }
.btn-green:hover, .btn-neon:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn-secondary { background: transparent; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--paper-3); border-color: transparent; }
.btn-danger { color: var(--red); border-color: rgba(180, 67, 47, .35); background: transparent; }
.btn-danger:hover { background: var(--red-soft); border-color: var(--red); }
.night .btn { background: transparent; color: var(--on-night); border-color: rgba(232, 238, 235, .3); }
.night .btn:hover { background: rgba(232, 238, 235, .08); border-color: var(--on-night); }
.night .btn-light { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.night .btn-light:hover { background: #fff; color: var(--night); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .45; pointer-events: none; }
.btn.busy { pointer-events: none; opacity: .75; }
.spin, .btn.busy .bd-icon-loader { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); color: var(--ink-2); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--paper-3); color: var(--ink); }
.icon-btn .bd-icon { width: 18px; height: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.text-link:hover { border-color: var(--green); color: var(--green-ink); }
.text-link .bd-icon { width: 14px; height: 14px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--head-h); background: rgba(244, 246, 245, .86);
  border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  padding-top: env(safe-area-inset-top); box-sizing: content-box;
}
.site-header.scrolled { background: rgba(244, 246, 245, .94); }
.nav { height: var(--head-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 40px; }
.brand img { width: 30px; height: 30px; border-radius: 3px; border: 1px solid var(--line); background: #fff; }
.brand b { font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { padding: 10px 12px; font-size: 13px; font-weight: 550; color: var(--ink-2); border-radius: var(--r); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: rgba(11, 13, 12, .04); }
.nav-links a[aria-current='page'] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--green); border-radius: 0; }
.nav-right { display: flex; align-items: center; gap: 8px; flex: none; }
.social { display: inline-grid; place-items: center; width: 40px; height: 40px; color: var(--ink-3); border-radius: var(--r); }
.social:hover { color: var(--ink); background: rgba(11, 13, 12, .04); }
.social .bd-icon { width: 18px; height: 18px; }
.wallet-btn { min-height: 40px; padding: 9px 16px; font-size: 11.5px; }
.wallet-btn .addr-dot { width: 7px; height: 7px; background: var(--green); flex: none; }
.wallet-btn.wrong .addr-dot { background: var(--amber); }
.wallet-btn .addr { font-family: var(--mono); letter-spacing: .02em; text-transform: none; }
.menu-btn { display: none; }
.site-header.compact { position: sticky; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-right { margin-left: auto; }
  .menu-btn { display: inline-grid; }
  .nav-right .social { display: none; }
}
@media (max-width: 420px) {
  .nav { gap: 10px; }
  .brand b { font-size: 13px; letter-spacing: .1em; }
  .nav-right .wallet-btn .wl { font-size: 11px; }
  .nav-right .wallet-btn > .bd-icon { display: none; }
  .nav-right .wallet-btn { padding: 9px 12px; }
}

/* account pill */
.acct { display: contents; }
.acct-pill { display: inline-flex; align-items: center; height: 40px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); overflow: hidden; }
.acct-pill.wrong { border-color: rgba(154, 106, 18, .5); background: var(--amber-soft); }
.acct-addr { height: 100%; padding: 0 12px; font-family: var(--mono); font-size: 12.5px; display: inline-flex; align-items: center; gap: 8px; }
.acct-addr::before { content: ''; width: 7px; height: 7px; background: var(--green); }
.acct-pill.wrong .acct-addr::before { background: var(--amber); }
.acct-addr:hover { background: var(--paper-2); }
.acct-dot { color: var(--ink-3); }
.acct-bal { font-family: var(--mono); font-size: 12.5px; padding: 0 8px 0 4px; }
.acct-out { height: 100%; width: 38px; display: grid; place-items: center; border-left: 1px solid var(--line); color: var(--ink-3); }
.acct-out:hover { color: var(--ink); background: var(--paper-2); }
@media (max-width: 420px) { .acct-pill.long .acct-dot, .acct-pill.long .acct-bal { display: none; } }

/* phone sheet */
.sheet-back { position: fixed; inset: 0; background: rgba(18, 26, 22, .35); z-index: 60; opacity: 0; transition: opacity .25s; }
.sheet-back.open { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--paper); border-top: 1px solid var(--line-2);
  padding: 8px var(--gut) calc(20px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .3s var(--ease);
  max-height: 88dvh; overflow: auto; border-radius: 10px 10px 0 0;
}
.sheet.open { transform: none; }
.sheet-grip { width: 40px; height: 4px; background: var(--line-2); margin: 4px auto 10px; border-radius: 2px; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.sheet nav a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 450; }
.sheet nav a[aria-current='page'] { color: var(--green-ink); }
.sheet nav a .bd-icon { color: var(--ink-3); }
.sheet-foot { display: grid; gap: 12px; margin-top: 16px; }
.sheet-foot .social-row { display: flex; justify-content: center; }

/* footer */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); position: relative; }
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.foot-grid { display: grid; gap: 36px 24px; grid-template-columns: 1fr 1fr; align-items: start; }
.foot-about { grid-column: 1 / -1; display: grid; gap: 12px; max-width: 34ch; }
.foot-about .brand b { font-size: 13px; }
.foot-about p { margin: 0; color: var(--ink-3); font-size: 14px; }
.foot-col h4 { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.foot-col a { display: flex; align-items: center; gap: 6px; min-height: 32px; font-size: 14px; font-weight: 500; color: var(--ink-2); width: fit-content; }
.foot-col a:hover { color: var(--green-ink); }
.foot-col a .bd-icon { width: 14px; height: 14px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .foot-about { grid-column: auto; } }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot-bottom .legal { font-family: var(--mono); font-size: 12px; color: var(--ink-2); letter-spacing: .02em; }
.foot-bottom nav { display: flex; gap: 18px; }
.foot-bottom nav a { font-size: 12.5px; color: var(--ink-3); min-height: 32px; display: inline-flex; align-items: center; }
.foot-bottom nav a:hover { color: var(--ink); }
.foot-note { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-3); max-width: 80ch; }
.site-footer.compact { display: none; }

/* sections */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 48px); max-width: 640px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 40px); display: grid; gap: 16px; }

/* cards and lists */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.card-flat { background: transparent; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.card-head .meta { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.stack { display: grid; gap: 12px; }
.stack-sm { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wr { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.kv { display: grid; gap: 0; margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--ink-3); font-size: 13px; }
.kv dd { margin: 0; font-family: var(--mono); font-size: 13px; text-align: right; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 3px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); background: var(--card); }
.badge::before { content: ''; width: 6px; height: 6px; background: var(--ink-3); }
.badge.ok::before, .badge.lime::before { background: var(--green); }
.badge.warn::before { background: var(--amber); }
.badge.off::before { background: var(--track); }
.badge.plain::before { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 13px; background: var(--card); }
.empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 28px 16px; color: var(--ink-3); }
.empty .bd-icon { width: 22px; height: 22px; }
.empty b { color: var(--ink); font-weight: 600; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--sage); background: var(--paper); border-radius: var(--r); font-size: 13.5px; color: var(--ink-2); }
.note .bd-icon { margin-top: 2px; color: var(--forest); }
.skeleton, .ph { display: inline-block; min-width: 48px; height: 1em; border-radius: 2px; background: linear-gradient(90deg, var(--paper-3), var(--paper-2), var(--paper-3)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; vertical-align: middle; }
@keyframes shimmer { to { background-position: -200% 0; } }
.logo-ph { display: inline-block; width: 32px; height: 32px; border-radius: 50%; background: var(--paper-3); border: 1px solid var(--line); flex: none; }
.addr { font-family: var(--mono); font-size: 13px; }

/* forms */
.field { display: grid; gap: 6px; }
.field > span, .field-label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card);
  font-size: 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(56, 92, 74, .14); }
.input.mono { font-family: var(--mono); font-size: 14px; }
.help { margin: 0; font-size: 13px; color: var(--ink-3); }
.err { margin: 8px 0 0; font-size: 13px; color: var(--red); }
.err:empty { display: none; }
.link-box { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); }
.link-box code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 12.5px; }

/* tables */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* toasts */
.toasts { position: fixed; z-index: 90; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--night); color: var(--on-night); border-radius: var(--r); box-shadow: var(--shadow-lg); font-size: 14px; animation: toast-in .25s var(--ease); }
.toast .bd-icon { color: #7fd1a6; margin-top: 2px; }
.toast.bad .bd-icon { color: #f0a08f; }
.toast a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

/* dialogs */
.bd-modal { width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--paper); color: var(--ink); padding: 24px; box-shadow: var(--shadow-lg); }
.bd-modal::backdrop { background: rgba(18, 26, 22, .4); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.bd-modal .eyebrow { margin-bottom: 8px; }
.bd-modal h2 { font-size: 24px; font-weight: 300; letter-spacing: -.02em; margin: 0 40px 16px 0; }
.bd-modal-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r); color: var(--ink-3); }
.bd-modal-close:hover { background: var(--paper-3); color: var(--ink); }
.bd-modal-small { width: min(400px, calc(100vw - 24px)); }
.bd-modal-form { display: grid; gap: 14px; }
.bd-modal-form label { display: grid; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.bd-modal-form input { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); font-family: var(--sans); font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.bd-modal-error { margin: 0; color: var(--red); font-size: 13px; }
.bd-modal-error:empty { display: none; }
.bd-modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.bd-modal-lead { color: var(--ink-2); margin: 0 0 16px; }
.bd-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; background: var(--paper); }
.bd-btn:hover { background: var(--card); }
.bd-btn .bd-icon { width: 15px; height: 15px; }
.bd-btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bd-btn-primary:hover { background: var(--ink-2); }
.bd-btn-danger { color: #fff; background: var(--red); border-color: var(--red); }

/* wallet picker */
.wallet-list { display: grid; gap: 8px; }
.wallet-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); font-weight: 550; text-align: left; transition: border-color .15s, background .15s; }
.wallet-opt:hover { border-color: var(--forest); background: #fff; }
.wallet-opt img, .wallet-opt .wi { width: 30px; height: 30px; border-radius: 6px; flex: none; }
.wallet-opt .wi { display: grid; place-items: center; background: var(--paper-3); color: var(--forest); }
.wallet-opt small { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.wallet-deeplinks { display: grid; gap: 8px; margin-top: 8px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .live-dot, .bar-load::before, .spin { animation: none; }
}
