/* Hidden1 site. Draft A's tokens (the picked style od:x-ai); the reading face stands in for universalSans. */
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/fonts/work-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/fonts/work-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #1f2228;
  --bg-deep: #1a1d22;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --surface-3: rgba(255, 255, 255, 0.08);
  --fg: #ffffff;
  --fg-2: rgba(255, 255, 255, 0.72);
  --muted: rgba(255, 255, 255, 0.55);
  --meta: rgba(255, 255, 255, 0.32);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --accent: #ffffff;
  --accent-on: #1f2228;
  --accent-hover: rgba(255, 255, 255, 0.9);
  --accent-active: rgba(255, 255, 255, 0.8);
  /* the one signal colour, one meaning: "this can be linked to you" (trail check). Taken from the style's own --warn. */
  --signal: #eab308;
  --signal-soft: rgba(234, 179, 8, 0.12);
  --focus-ring: 0 0 0 3px rgba(59, 130, 246, 0.5);

  --font-display: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-body: "Work Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 30px;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px;
  --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px; --space-24: 96px;

  --rail: 208px;
  --motion-fast: 150ms;
  --motion-base: 200ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-press: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg-2);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
/* film grain 1.5%, static, never moves */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .3 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
h1, h2, h3 { margin: 0; color: var(--fg); font-weight: 400; line-height: 1.2; }
p { margin: 0; }
a { color: var(--fg); }
button, input, select, textarea { font: inherit; color: inherit; }
.mono { font-family: var(--font-mono); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--fg); color: var(--accent-on); padding: 0 16px; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
.skip:focus { left: 8px; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ─── Text link with underline (dice: underlined text links; style: links dim on hover) ─── */
.ulink {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  font-size: var(--text-base);
  transition: color var(--motion-fast) var(--ease-standard), text-decoration-color var(--motion-fast) var(--ease-standard);
}
.ulink:hover { color: var(--muted); text-decoration-color: var(--fg); }
.ulink:active { transform: scale(0.97); transition: transform var(--motion-fast) var(--ease-press); }

/* ─── Buttons (style §4: Geist Mono, uppercase, tracked, sharp corners, hover dims) ─── */
.btn {
  position: relative; display: inline-grid; place-items: center; min-height: 44px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 0; cursor: pointer; text-decoration: none;
  font-family: var(--font-display); font-size: 15px; font-weight: 400; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap;
  transition: background-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard),
              border-color var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-press);
}
.btn > * { grid-area: 1 / 1; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-on); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-active); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-quiet { background: transparent; color: var(--fg-2); border-color: transparent; padding: 10px 12px; }
.btn-quiet:hover { color: var(--fg); background: var(--surface); }
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn:focus-visible { box-shadow: var(--focus-ring); }

/* ─── Left vertical menu (rail) ─── */
.rail {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail); z-index: 50;
  display: flex; flex-direction: column; gap: var(--space-6);
  padding: var(--space-6) var(--space-5) var(--space-5);
  background: var(--bg); border-right: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; min-height: 44px; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand span { font-family: var(--font-display); font-size: 16px; font-weight: 400; letter-spacing: 0; }
.rail nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; min-height: 0; margin: 0 -10px; padding: 0 10px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.rail nav a, .rail nav button.navbtn {
  display: flex; align-items: baseline; gap: 12px; min-height: 40px; padding: 9px 10px; margin: 0 -10px; flex: none;
  color: var(--fg-2); text-decoration: none; font-size: var(--text-sm); background: none; border: 0; text-align: left; cursor: pointer;
  transition: color var(--motion-fast) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard);
}
.rail nav a:hover, .rail nav button.navbtn:hover { color: var(--fg); background: var(--surface); }
.rail nav a[aria-current="true"], .rail nav button.navbtn[aria-current="true"] { color: var(--fg); background: var(--surface-2); }
.rail nav .n { font-family: var(--font-mono); font-size: 13px; color: var(--meta); min-width: 20px; }
.rail nav .count { margin-left: auto; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.rail .sep { height: 1px; background: var(--border); margin: 6px 0; }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--space-3); }
.xlink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--fg-2); text-decoration: none; font-size: var(--text-sm); }
.xlink:hover { color: var(--fg); }
.xlink svg { width: 16px; height: 16px; }

.connect {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 10px 12px;
  background: transparent; color: var(--fg); border: 1px solid var(--border-strong); cursor: pointer; text-align: left;
  font-family: var(--font-body); font-size: var(--text-sm);
  transition: background-color var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-press);
}
.connect:hover { background: var(--surface-2); }
.connect:active { transform: scale(0.97); }
.connect .addr { font-family: var(--font-mono); font-size: 13px; color: var(--fg); }
.connect .dot { width: 6px; height: 6px; background: var(--fg); border-radius: 50%; flex: none; }
.wallet-note { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* phone: rail becomes a top bar with a menu sheet */
.topbar { display: none; }
@media (max-width: 860px) {
  :root { --rail: 0px; }
  .rail { position: fixed; inset: 0 0 auto 0; width: auto; height: 100dvh; transform: translateY(-100%); visibility: hidden;
          transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0.4s; padding-top: 72px; border-right: 0; }
  body.menu-open .rail { transform: none; visibility: visible; transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1); }
  .topbar { display: flex; position: sticky; top: 0; z-index: 60; height: 60px; align-items: center; justify-content: space-between;
            padding: 0 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .menu-btn { min-height: 44px; min-width: 44px; padding: 0 12px; background: none; border: 1px solid var(--border-strong); color: var(--fg);
              font-family: var(--font-display); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
}

/* ─── Wallet picker (wallet-kit skeleton, project look) ─── */
.scrim { position: fixed; inset: 0; z-index: 120; background: rgba(15, 17, 20, 0.6); opacity: 0; transition: opacity 0.25s var(--ease-out); }
.scrim.on { opacity: 1; }
.picker {
  position: fixed; z-index: 130; left: 50%; top: 12vh; width: min(440px, calc(100vw - 32px)); max-height: 76vh; overflow: auto;
  background: var(--bg); border: 1px solid var(--border-strong); padding: var(--space-6);
  transform: translateX(-50%) scale(0.96); opacity: 0; transition: transform 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}
.picker.on { transform: translateX(-50%) scale(1); opacity: 1; }
.picker h2 { font-size: var(--text-xl); margin-bottom: 4px; }
.picker .sub { font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--space-5); }
.picker .label { font-size: 13px; color: var(--muted); margin: var(--space-5) 0 var(--space-2); }
.picker .x { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; background: none; border: 0; color: var(--fg-2); cursor: pointer; font-size: 22px; line-height: 1; }
.picker .x:hover { color: var(--fg); }
.wrow {
  width: 100%; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 14px; margin-bottom: 8px;
  background: var(--surface); border: 1px solid var(--border); color: var(--fg); cursor: pointer; text-align: left;
  transition: background-color var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-press);
}
.wrow:hover { background: var(--surface-2); border-color: var(--border-strong); }
.wrow:active { transform: scale(0.98); }
.wrow img { width: 32px; height: 32px; border-radius: 8px; }
.wrow .nm { font-size: var(--text-base); }
.wrow .tg { margin-left: auto; font-size: 13px; color: var(--muted); }
.wrow[aria-busy="true"] .tg { color: var(--fg); }
.wtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wtile {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border: 1px solid var(--border);
  color: var(--fg-2); text-decoration: none; font-size: var(--text-sm); transition: background-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard);
}
.wtile:hover { background: var(--surface-2); color: var(--fg); }
.wtile img { width: 24px; height: 24px; border-radius: 6px; }
.picker .err { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--fg); min-height: 21px; }
@media (max-width: 520px) { .wtiles { grid-template-columns: 1fr; } }

/* ─── Toasts ─── */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 140; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; max-width: 360px; padding: 12px 16px; background: var(--bg); border: 1px solid var(--border-strong); color: var(--fg); font-size: var(--text-sm);
         transform: translateY(16px); opacity: 0; transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out); }
.toast.on { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ─── Shared page parts ─── */
main { margin-left: var(--rail); }
.muted { color: var(--muted); }
code, .mono { font-family: var(--font-mono); }
code { font-size: max(13px, 0.92em); color: var(--fg); overflow-wrap: anywhere; }
.stamp { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg); padding: 3px 8px; border: 1px solid var(--border-strong); white-space: nowrap; display: inline-block; }
.stamp.warn { color: var(--signal); border-color: rgba(234, 179, 8, 0.5); }
.tag { font-family: var(--font-mono); font-size: 13px; padding: 1px 8px; border: 1px solid var(--border-strong); color: var(--fg); letter-spacing: .04em; }
.ulink.sm { font-size: var(--text-sm); min-height: 36px; }
.foot { padding: 22px 48px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; font-size: 14px; color: var(--muted); margin-top: 64px; }
.foot a { color: var(--fg-2); text-underline-offset: 4px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.foot a:hover { color: var(--fg); }
.foot .xlink svg { width: 14px; height: 14px; }
.wallet-note a { color: var(--fg-2); text-underline-offset: 3px; }
.wallet-note a:hover { color: var(--fg); }
.cp { min-height: 36px; padding: 0 12px; background: none; border: 1px solid var(--border); color: var(--fg-2); cursor: pointer; font-family: var(--font-mono); font-size: 13px;
      transition: color var(--motion-fast) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-press); }
.cp:hover { color: var(--fg); background: var(--surface-2); }
.cp:active { transform: scale(0.97); }

/* ─── Calm tool pages (no canvases, no idle motion) ─── */
main.tool { min-height: 100vh; padding: 28px 40px 0; max-width: calc(1320px + var(--rail)); }
main.tool .foot { margin-left: -40px; margin-right: -40px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 18px; }
.head h1 { font-family: var(--font-display); font-weight: 300; font-size: 44px; letter-spacing: -0.03em; line-height: 1.05; }
.head .q { margin-top: 8px; color: var(--fg-2); font-size: var(--text-base); max-width: 72ch; }
.fresh { font-family: var(--font-mono); font-size: 13px; color: var(--muted); text-align: right; max-width: 46ch; }
.fresh b { color: var(--fg); font-weight: 400; }
.facts { display: flex; flex-wrap: wrap; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.facts > div { padding: 12px 20px 12px 0; margin-right: 20px; border-right: 1px solid var(--border); display: flex; align-items: baseline; gap: 10px; min-height: 48px; }
.facts > div:last-child { border-right: 0; }
.facts .k { font-size: 14px; color: var(--muted); }
.facts .v { font-family: var(--font-mono); font-size: 14px; color: var(--fg); }
.sect { margin-top: 40px; }
.h2, .sect > h2 { font-size: var(--text-xl); margin-bottom: 12px; }
.caption { font-size: 14px; color: var(--fg-2); margin: 10px 0 14px; max-width: 90ch; }
.caption a, .touch a, .context a { color: var(--fg); text-underline-offset: 4px; }
.banner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--fg-2); padding: 12px 14px; border: 1px solid var(--border-strong); margin: 0 0 20px; }
.src { font-size: 13px; color: var(--muted); }
.pn { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border); }
.touch { font-size: var(--text-lg); color: var(--fg); max-width: 70ch; margin: 4px 0 8px; line-height: 1.4; }

table.tt { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tt thead th { height: 44px; text-align: left; font-family: var(--font-mono); font-weight: 400; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--border-strong); padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt thead th.r, .tt td.r { text-align: right; }
.tt tr.row { height: 52px; transition: background-color var(--motion-fast) var(--ease-standard); }
.tt tr.row:hover { background: var(--surface); }
.tt tr.row td { border-bottom: 1px solid var(--border); padding: 0 12px; font-size: 15px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt tr.row td.wrap { white-space: normal; overflow-wrap: anywhere; padding-top: 10px; padding-bottom: 10px; line-height: 1.45; font-size: 14px; }
.tt tr.row td.id, .tt tr.row td.id a { font-family: var(--font-mono); color: var(--fg); }
.tt tr.row td.mono { font-family: var(--font-mono); font-size: 14px; }
.tt tr.row td small { color: var(--muted); font-size: 13px; }
.tt tr.row td a { color: var(--fg); text-underline-offset: 4px; }
.tt tr.row td a:hover { color: var(--muted); }
.tt tr.row.failed td { color: var(--muted); }
.tt.small tr.row { height: 44px; }
.tt td.hash { font-size: 13px !important; white-space: normal !important; overflow-wrap: anywhere; line-height: 1.4; padding-top: 8px !important; padding-bottom: 8px !important; }
td.holder { position: relative; }
td.holder::after { content: ""; position: absolute; left: 12px; top: 50%; width: 48px; height: 6px; transform: translateY(-50%);
                   border-top: 1px solid rgba(255,255,255,.4); border-bottom: 1px solid rgba(255,255,255,.4);
                   background: repeating-linear-gradient(90deg, transparent 0 4px, rgba(255,255,255,.75) 4px 9px, transparent 9px 12px) center / 100% 2px no-repeat; }
.addr { color: var(--fg); }
a.addr { text-underline-offset: 4px; }
.empty-block { padding: 36px 0 32px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.empty-block b { display: block; color: var(--fg); font-weight: 400; font-size: 17px; margin-bottom: 6px; }
.empty-block p { color: var(--muted); font-size: 14px; max-width: 70ch; }
dl.kv { margin: 0; display: grid; grid-template-columns: minmax(160px, auto) 1fr; max-width: 980px; }
dl.kv dt, dl.kv dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
dl.kv dt { color: var(--muted); padding-right: 24px; }
dl.kv dd { font-family: var(--font-mono); color: var(--fg); min-width: 0; overflow-wrap: anywhere; }
dl.kv dd.txt { font-family: var(--font-body); }
dl.kv dd small { display: block; color: var(--muted); font-size: 13px; font-family: var(--font-body); margin-top: 2px; }
dl.kv dd a { color: var(--fg); text-underline-offset: 4px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 14px; color: var(--fg-2); }
.field input[type=text], .field select { background: var(--surface); border: 1px solid var(--border-strong); color: var(--fg); padding: 10px 12px; font-family: var(--font-mono); font-size: 16px; border-radius: 0; outline: none; min-height: 44px; min-width: 0; width: 100%; }
.field input:focus-visible, .field select:focus-visible { box-shadow: var(--focus-ring); }
.field select option { background: var(--bg); }
form.lookup { display: grid; grid-template-columns: minmax(0, 560px) auto; justify-content: start; gap: 12px; align-items: end; margin: 8px 0 20px; }
.bigs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); margin: 8px 0 24px; }
.bignum { background: var(--bg); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.bignum .k { font-size: 14px; color: var(--muted); }
.bignum .v { font-family: var(--font-mono); font-weight: 300; font-size: 56px; line-height: 1; color: var(--fg); letter-spacing: -0.02em; }
.bignum .s { font-size: 13px; color: var(--muted); }
.warnline { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--fg-2); margin: 0 0 16px; }
.context { font-size: var(--text-base); color: var(--fg-2); margin: 16px 0 6px; max-width: 80ch; }
.context b { color: var(--fg); font-weight: 400; font-family: var(--font-mono); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 8px; }
ul.plain { margin: 0; padding-left: 20px; color: var(--fg-2); }
ul.plain li + li { margin-top: 8px; }
ul.addrs { list-style: none; margin: 8px 0 0; padding: 0; }
ul.addrs li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.idl-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) max-content; gap: 12px; align-items: end; margin: 16px 0 8px; max-width: 1080px; }
.examples { font-size: 14px; color: var(--muted); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hint { min-height: 22px; margin: 6px 0 12px; font-size: 14px; color: var(--fg-2); }
.hint.err { color: var(--fg); }
.draft-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; font-size: 14px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.draft-meta .k { color: var(--muted); }
.draft-meta .v { color: var(--fg); }
h3.sub { font-size: var(--text-base); color: var(--fg); margin: 22px 0 6px; }
ul.lints { list-style: none; margin: 0; padding: 0; font-size: 14px; }
ul.lints li { padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--fg-2); display: grid; grid-template-columns: 64px auto 1fr; gap: 12px; align-items: baseline; }
ul.lints .lv { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
ul.lints li.error .lv { color: var(--signal); }
.howgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 40px; align-items: start; }
ol.steps5 { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
ol.steps5 li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 0 0 28px 24px; }
ol.steps5 li::before { content: ""; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; background: var(--fg); border-radius: 50%; }
ol.steps5 .num { font-family: var(--font-mono); font-size: 14px; color: var(--muted); padding-top: 4px; }
ol.steps5 h2 { font-size: var(--text-xl); margin-bottom: 6px; }
ol.steps5 p { color: var(--fg-2); max-width: 66ch; }
ol.steps5 .pub { margin-top: 8px; font-size: 14px; color: var(--fg); }
ol.steps5 .pub .k { color: var(--muted); margin-right: 8px; }
.strip-fig { margin: 0; position: sticky; top: 24px; border: 1px solid var(--border); background: #25282e; }
.strip-fig svg { width: 100%; height: auto; display: block; max-height: 80vh; }

/* docs */
main.docs .doc { display: grid; grid-template-columns: minmax(0, 780px) 220px; gap: 64px; padding: 56px 48px 0; }
main.docs .foot { margin-top: 96px; }
.doc article { min-width: 0; }
.doc h1 { font-family: var(--font-display); font-weight: 300; font-size: 64px; letter-spacing: -0.03em; line-height: 1; margin-bottom: 20px; }
.doc .lead { font-size: var(--text-lg); color: var(--fg); max-width: 62ch; margin-bottom: 14px; }
.doc .status { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--fg-2); margin-bottom: 40px; }
.doc section { padding-top: 48px; margin-top: 48px; border-top: 1px solid var(--border); scroll-margin-top: 16px; }
.doc h2 { font-size: var(--text-2xl); margin-bottom: 16px; display: flex; gap: 16px; align-items: baseline; }
.doc h2 .n { font-family: var(--font-mono); font-size: 14px; color: var(--muted); min-width: 24px; }
.doc h3 { font-size: var(--text-lg); margin: 28px 0 10px; }
.doc h4 { font-size: var(--text-base); color: var(--fg); font-weight: 500; margin: 24px 0 6px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.doc h4 .who { font-weight: 400; font-size: 14px; color: var(--muted); }
.doc p, .doc li { font-size: 17px; line-height: 1.6; color: var(--fg-2); max-width: 68ch; }
.doc p.small { font-size: 14px; color: var(--muted); }
.doc p + p { margin-top: 14px; }
.doc b, .doc strong { color: var(--fg); font-weight: 500; }
.doc ol, .doc ul { padding-left: 22px; margin: 12px 0; }
.doc li + li { margin-top: 6px; }
.doc code { font-size: 14px; background: var(--surface-2); padding: 1px 5px; }
.doc a { color: var(--fg); text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.45); }
.doc a:hover { color: var(--muted); }
table.d { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
table.d th { text-align: left; font-weight: 400; font-family: var(--font-mono); font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--border-strong); padding: 10px 12px 10px 0; }
table.d td { border-bottom: 1px solid var(--border); padding: 11px 12px 11px 0; color: var(--fg-2); vertical-align: top; overflow-wrap: anywhere; }
table.d td.m { font-family: var(--font-mono); font-size: 14px; color: var(--fg); overflow-wrap: anywhere; }
.file { margin: 16px 0; border: 1px solid var(--border); }
.file .fn { display: flex; justify-content: space-between; align-items: center; padding: 0 0 0 14px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 13px; color: var(--muted); min-height: 44px; }
.file pre { margin: 0; padding: 14px; overflow-x: auto; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.6; color: var(--fg); background: var(--surface); }
.file .cp { min-height: 44px; border: 0; border-left: 1px solid var(--border); }
.next { color: var(--muted); font-family: var(--font-mono); font-size: 13px; border: 1px solid var(--border-strong); padding: 1px 6px; margin-left: 6px; }
.toc { position: sticky; top: 56px; align-self: start; font-size: 14px; }
.toc p { color: var(--muted); margin-bottom: 8px; font-size: 13px; }
.toc a { display: block; padding: 5px 0; color: var(--fg-2); text-decoration: none; min-height: 28px; }
.toc a:hover, .toc a.on { color: var(--fg); }

@media (max-width: 1180px) {
  main.docs .doc { grid-template-columns: minmax(0, 1fr); } .toc { display: none; }
  .howgrid { grid-template-columns: 1fr; } .strip-fig { display: none; }
}
@media (max-width: 860px) {
  main.tool { padding: 20px 16px 0; }
  main.tool .foot { margin-left: -16px; margin-right: -16px; }
  .foot { padding: 20px 16px; }
  .head h1 { font-size: 34px; }
  .fresh { text-align: left; }
  .facts > div { border-right: 0; padding-right: 0; }
  .cols2 { grid-template-columns: 1fr; gap: 16px; }
  .bigs { grid-template-columns: 1fr; }
  .bignum .v { font-size: 44px; }
  form.lookup, .idl-form { grid-template-columns: 1fr; }
  dl.kv { grid-template-columns: 1fr; }
  dl.kv dt { padding-bottom: 0; border-bottom: 0; }
  table.tt { min-width: 720px; }
  main.docs .doc { padding: 32px 16px 0; } .doc h1 { font-size: 44px; }
  .doc p, .doc li { font-size: 16px; }
  ul.lints li { grid-template-columns: 56px 1fr; } ul.lints li code { grid-column: 2; }
}

.scrollx { overflow-x: auto; }
.picker .uses { display: flex; flex-direction: column; margin-top: 8px; }
.picker .row2 { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.picker .wc-qr { width: 232px; height: 232px; margin: 4px 0 8px; background: #fff; display: grid; place-items: center; }
.picker .wc-qr svg { width: 232px; height: 232px; display: block; }
.picker .btn-quiet { margin-top: 12px; }
