/* Dark = default product feel — playbook §8 elevation + Astra copper accent */
:root,
[data-theme="dark"] {
  --bg: #0a0a0a;
  --surface: #111111;
  --elevated: #191919;
  --raised: #222222;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: #333333;
  --text: #ededf3;
  --muted: #c3c3cc;
  --text-faint: #a0a0ac;
  --accent: #CB8653;
  --accent-hover: #D4986A;
  --accent-muted: rgba(203, 134, 83, 0.16);
  --danger: #ff8e8e;
  --danger-muted: rgba(239, 68, 68, 0.12);
  --success: #22c55e;
  --success-muted: rgba(34, 197, 94, 0.12);
  --warn: #f59e0b;
  --warn-muted: rgba(245, 158, 11, 0.12);
  --focus: #CB8653;
  --shadow: none;
}

[data-theme="light"] {
  --bg: #fafafa;
  --surface: #ffffff;
  --elevated: #f4f4f3;
  --raised: #eeeeec;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: #d5d5d2;
  --text: #111111;
  --muted: #4b5563;
  --text-faint: #595f6b;
  --accent: #92501F;
  --accent-hover: #9F5723;
  --accent-muted: rgba(146, 80, 31, 0.12);
  --danger: #b31b1b;
  --danger-muted: rgba(220, 38, 38, 0.1);
  --success: #167039;
  --success-muted: rgba(22, 163, 74, 0.1);
  --warn: #875000;
  --warn-muted: rgba(217, 119, 6, 0.1);
  --focus: #92501F;
}

@media (prefers-color-scheme: light) {
  [data-theme="system"] {
    --bg: #fafafa;
    --surface: #ffffff;
    --elevated: #f4f4f3;
    --raised: #eeeeec;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: #d5d5d2;
    --text: #111111;
    --muted: #4b5563;
    --text-faint: #595f6b;
    --accent: #92501F;
    --accent-hover: #9F5723;
    --accent-muted: rgba(146, 80, 31, 0.12);
    --danger: #b31b1b;
    --danger-muted: rgba(220, 38, 38, 0.1);
    --success: #167039;
    --success-muted: rgba(22, 163, 74, 0.1);
    --warn: #875000;
    --warn-muted: rgba(217, 119, 6, 0.1);
    --focus: #92501F;
  }
}

@media (prefers-color-scheme: dark) {
  [data-theme="system"] {
    --bg: #0a0a0a;
    --surface: #111111;
    --elevated: #191919;
    --raised: #222222;
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: #333333;
    --text: #ededf3;
    --muted: #c3c3cc;
    --text-faint: #a0a0ac;
    --accent: #CB8653;
    --accent-hover: #D4986A;
    --accent-muted: rgba(203, 134, 83, 0.16);
    --danger: #ff8e8e;
    --danger-muted: rgba(239, 68, 68, 0.12);
    --success: #22c55e;
    --success-muted: rgba(34, 197, 94, 0.12);
    --warn: #f59e0b;
    --warn-muted: rgba(245, 158, 11, 0.12);
    --focus: #CB8653;
  }
}

:root {
  /* Primary faces are self-hosted; system fallbacks are glyph coverage only — never design with them. */
  --font-sans: 'Outfit', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-12: 96px;
  /* Radius language: sm4 / md6 / lg12 / pill (playbook §8) */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 12px;
  --r-pill: 9999px;
  --radius: var(--r-md);
  --radius-lg: var(--r-lg);
  /* Motion: user-action only (playbook §5) */
  --dur-fast: 120ms;
  --dur-norm: 200ms;
  --dur-slow: 350ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

button,
input,
select {
  font: inherit;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: 0 var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
button:hover,
.button:hover {
  background: var(--elevated);
  text-decoration: none;
  color: var(--text);
}
button:disabled,
.button:disabled {
  opacity: 0.45;
  cursor: default;
}
.primary,
button.primary,
a.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #111111; /* dark theme: near-black on copper */
}
.primary:hover,
button.primary:hover,
a.button.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #111111;
}
[data-theme="light"] .primary,
[data-theme="light"] button.primary,
[data-theme="light"] a.button.primary,
[data-theme="light"] .primary:hover,
[data-theme="light"] button.primary:hover,
[data-theme="light"] a.button.primary:hover {
  color: #ffffff;
}
@media (prefers-color-scheme: light) {
  [data-theme="system"] .primary,
  [data-theme="system"] button.primary,
  [data-theme="system"] a.button.primary,
  [data-theme="system"] .primary:hover,
  [data-theme="system"] button.primary:hover,
  [data-theme="system"] a.button.primary:hover {
    color: #ffffff;
  }
}
@media (prefers-color-scheme: dark) {
  [data-theme="system"] .primary,
  [data-theme="system"] button.primary,
  [data-theme="system"] a.button.primary,
  [data-theme="system"] .primary:hover,
  [data-theme="system"] button.primary:hover,
  [data-theme="system"] a.button.primary:hover {
    color: #111111;
  }
}
.primary:disabled {
  background: var(--border);
  border-color: var(--border);
  color: var(--muted);
  opacity: 1;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
input::placeholder {
  color: var(--muted);
  opacity: 1;
}
input:focus-visible {
  border-color: var(--accent);
  outline-offset: 0;
}

label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 12px;
  font-weight: 550;
  color: var(--muted);
}

p {
  margin: 0 0 1em;
}
p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}
h1 {
  font-size: clamp(28px, 4vw, 36px);
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 15px;
  font-weight: 550;
}

strong {
  font-weight: 600;
}

[hidden],
.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -48px;
  z-index: 100;
  padding: var(--space-2) var(--space-3);
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
}
.skip-link:focus {
  top: var(--space-4);
}

.mono,
.address,
.addr,
.num,
.amount,
.watch-value,
#account {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.addr {
  word-break: break-all;
}
.num {
  font-variant-numeric: tabular-nums;
}

/* ——— Shell / chrome ——— */
.site-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.site-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 52px;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}

.brand {
  flex-shrink: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.main-nav {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px var(--space-1);
  min-width: 0;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.main-nav a:hover {
  color: var(--text);
  background: var(--elevated);
  text-decoration: none;
}
.main-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--accent-muted);
}

.header-tools {
  flex-shrink: 0;
  margin-left: auto;
}

.theme-switch {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
}
.theme-switch button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.02em;
}
.theme-switch button:hover {
  color: var(--text);
  background: transparent;
}
.theme-switch button[aria-pressed="true"] {
  background: var(--elevated);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}

main {
  min-height: 60vh;
  padding: var(--space-6) 0 var(--space-7);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}
.site-footer strong {
  color: var(--text);
  font-weight: 600;
}
.site-footer a {
  color: var(--muted);
}
.site-footer a:hover {
  color: var(--accent);
}
.footer-note {
  margin-left: auto;
}

/* ——— Type helpers ——— */
.eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lede {
  margin: var(--space-3) 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.page-heading {
  margin-bottom: var(--space-5);
  max-width: 40rem;
}
.page-heading h1 {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(33px, 4.2vw, 40px);
  font-weight: 650;
  letter-spacing: -0.035em;
  font-optical-sizing: auto;

}
.font-display,
.section-title.signature h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;

  letter-spacing: -0.03em;
}
.section-title.signature h2 {
  font-size: 28px;
  font-weight: 650;
}

.note,
.form-help,
.small-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.summary-note {
  margin: var(--space-4) 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

.section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin: var(--space-6) 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.section-title h2 {
  font-size: 15px;
  font-weight: 600;
}
.section-title .count {
  margin-left: var(--space-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ——— Status / badges ——— */
.status-note {
  margin: var(--space-4) 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}
.status-note:empty {
  display: none;
}
.status-note.error {
  border-color: color-mix(in srgb, var(--danger) 35%, var(--border));
  background: var(--danger-muted);
  color: var(--text);
}
.status-note > div {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}
.badge.measured {
  border-color: color-mix(in srgb, var(--success) 40%, var(--border));
  color: var(--success);
  background: var(--success-muted);
}
.badge.stale {
  border-color: color-mix(in srgb, var(--warn) 40%, var(--border));
  color: var(--warn);
  background: var(--warn-muted);
}
.badge.unavailable,
.badge.error {
  border-color: color-mix(in srgb, var(--danger) 40%, var(--border));
  color: var(--danger);
  background: var(--danger-muted);
}
.badge.not-measured,
.badge.under-review {
  color: var(--muted);
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-4);
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ——— Forms ——— */
.wallet-form,
.coin-form {
  margin: var(--space-5) 0;
}
.input-line {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.input-line input {
  flex: 1 1 220px;
}
.input-line button {
  flex: 0 0 auto;
}
.coin-form {
  display: grid;
  gap: var(--space-4);
  max-width: 560px;
}
.coin-form .field {
  min-width: 0;
}
.optional {
  color: var(--muted);
  font-weight: 400;
}

/* ——— Home ——— */
.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 320px);
  gap: var(--space-5) var(--space-6);
  align-items: start;
  margin-bottom: var(--space-5);
}
@media (max-width: 720px) {
  .home-intro {
    grid-template-columns: 1fr;
  }
}
.home-copy .eyebrow {
  margin-bottom: var(--space-3);
}
.home-copy h1 {
  font-size: clamp(28px, 4.5vw, 40px);
  letter-spacing: -0.03em;
}
.home-entry {
  max-width: 560px;
  margin-bottom: var(--space-5);
}
.home-footnote {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3) var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.home-footnote p {
  margin: 0;
  max-width: 36rem;
}

.home-preview {
  margin-top: var(--space-2);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  max-width: 360px;
}
.home-preview ol {
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}
.home-preview li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.home-preview li:first-child {
  border-top: 0;
  padding-top: 0;
}
.home-preview .preview-k {
  color: var(--muted);
}
.home-preview .preview-v {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

/* ——— Statement / desk ——— */
.empty-state {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  margin: var(--space-5) 0;
  padding: var(--space-5);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--muted);
}
.empty-state h2 {
  margin-bottom: var(--space-2);
  color: var(--text);
  font-size: 16px;
}
.empty-mark {
  color: var(--border-strong);
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
}

.statement-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.statement-header .address,
#account {
  margin: var(--space-1) 0 0;
  font-size: 13px;
  word-break: break-all;
  color: var(--text);
}

.statement-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
  gap: var(--space-5);
  align-items: start;
  margin-bottom: var(--space-5);
}

.totals-ledger {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.total-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3) var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
}
.total-row:last-child {
  border-bottom: 0;
}
.total-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}
.total-label .eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.amount {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}
.amount .unit {
  margin-left: 2px;
  color: var(--muted);
  font-size: 0.55em;
  font-weight: 500;
}
.amount .usd {
  display: block;
  margin-top: var(--space-1);
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}
.amount.missing {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.margin-note {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--elevated);
}
.margin-note h2 {
  margin: var(--space-2) 0 var(--space-3);
  font-size: 16px;
  line-height: 1.25;
}
.margin-note p {
  color: var(--muted);
  font-size: 13px;
}
.margin-note a {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: 13px;
}

.share-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.share-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.share-row:last-child {
  border-bottom: 0;
}
.share-row h3 {
  margin: 0 0 var(--space-1);
  font-size: 14px;
  font-weight: 550;
}
.share-row h3 a {
  color: var(--text);
}
.share-row h3 a:hover {
  color: var(--accent);
}
.share-row .ticker {
  margin-left: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}
.share-row .address {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  word-break: break-all;
}
.share-row .mint-full {
  display: block;
  margin-top: 2px;
  word-break: break-all;
  color: var(--text);
  font-size: 12px;
}
.share-row .addr-short {
  color: var(--text-faint);
}
.share-row .note {
  margin-top: var(--space-1);
}

/* ——— Fee-split signature plot ——— */
.fee-split-host {
  margin: 0;
}
.fee-split-figure {
  margin: 0;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.fee-split-figure.is-loading .fee-split-loading {
  min-height: 12rem;
  display: flex;
  align-items: center;
}
.fee-split-figure.is-stale {
  box-shadow: inset 3px 0 0 var(--accent);
}
.fee-split-stale {
  margin: 0 0 var(--space-3);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--elevated);
  color: var(--muted);
  font-size: 12px;
}
.fee-split-caption {
  margin: 0 0 var(--space-3);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.fee-split-count {
  margin: 0 0 var(--space-3);
}
.fee-split-scale {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin: 0 0 var(--space-2);
  padding: 0 2px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.fee-split-scale span:nth-child(2) { text-align: center; }
.fee-split-scale span:nth-child(3) { text-align: right; }
.fee-split-plot {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.fee-split-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: var(--space-3) var(--space-4);
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.fee-split-row:last-child {
  border-bottom: 0;
}
.fee-split-row-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.fee-split-coin {
  margin: 0;
  font-size: 14px;
  font-weight: 550;
  font-family: var(--font-sans);
  letter-spacing: 0;
}
.fee-split-coin a {
  color: var(--text);
}
.fee-split-coin a:hover {
  color: var(--accent);
}
.fee-split-coin .ticker {
  margin-left: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}
.fee-split-pct {
  margin: 0;
  color: var(--text);
  font-size: 13px;
}
.fee-split-ruler-wrap {
  position: relative;
  min-width: 0;
}
.fee-split-ruler {
  display: block;
  width: 100%;
  height: 16px;
  overflow: visible;
}
.fee-split-track {
  stroke: var(--border-strong);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.fee-split-tick {
  stroke: var(--text-faint);
  stroke-width: 1;
}
.fee-split-dot {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 1;
}
.fee-split-missing {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.fee-split-anomaly {
  padding: var(--space-2) var(--space-3);
  border: 1px dashed var(--warn);
  border-radius: var(--radius);
  background: var(--warn-muted);
}
.fee-split-anomaly .eyebrow {
  color: var(--warn);
}
.fee-split-anomaly p {
  margin: 4px 0 0;
  font-size: 12px;
}
.fee-split-route {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.fee-split-route .eyebrow {
  display: block;
  margin-bottom: 2px;
}
.fee-split-mint {
  grid-column: 1 / -1;
  margin-top: 2px;
}
.fee-split-expand {
  margin-top: var(--space-4);
  min-height: 44px;
  width: 100%;
}

@media (max-width: 860px) {
  .fee-split-row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}

/* 320px: label + percentage ABOVE ruler; route BELOW — do not shrink desktop figure */
@media (max-width: 560px) {
  .fee-split-row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
  .fee-split-row-head {
    order: 1;
  }
  .fee-split-ruler-wrap,
  .fee-split-anomaly {
    order: 2;
  }
  .fee-split-route {
    order: 3;
  }
  .fee-split-row > .note {
    order: 4;
  }
  .fee-split-mint {
    order: 5;
  }
  .fee-split-expand {
    min-height: 44px;
  }
  .fee-split-scale {
    font-size: 10px;
  }
}


/* ——— Coin ——— */
.coin-record {
  margin-top: var(--space-4);
}
.coin-title h2 {
  font-size: clamp(22px, 3vw, 28px);
}
.coin-title .ticker {
  margin-left: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7em;
  font-weight: 500;
}
.coin-record > .address {
  margin: var(--space-2) 0 var(--space-5);
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}

.route-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr);
  gap: var(--space-4);
  align-items: stretch;
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.route-source,
.route-target {
  min-width: 0;
}
.route-arrow {
  align-self: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 18px;
}
.route-diagram h3 {
  margin: var(--space-1) 0 var(--space-2);
}
.route-diagram .note,
.route-target p {
  color: var(--muted);
  font-size: 13px;
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.detail-columns > section {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.detail-columns h2 {
  margin-bottom: var(--space-4);
  font-size: 14px;
}

.facts {
  margin: 0;
}
.facts > div {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
}
.facts > div:first-child {
  border-top: 0;
  padding-top: 0;
}
.facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.facts dd {
  margin: 0;
  font-size: 13px;
  word-break: break-word;
}

/* ——— Watchlist ——— */
.watch-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  margin-bottom: var(--space-2);
  font-size: 13px;
}
.watch-link {
  display: inline-block;
  margin-bottom: var(--space-1);
  color: var(--text);
  font-weight: 550;
}
.watch-link:hover {
  color: var(--accent);
}
.watch-value {
  display: block;
  font-size: 15px;
  font-weight: 550;
  color: var(--text);
}
.watch-explainer {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--elevated);
  color: var(--muted);
  font-size: 13px;
}
.watch-explainer p + p {
  margin-top: var(--space-3);
}

/* ——— Autonomy ——— */
.operations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.operations > div,
.operations > form {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
#pause-label {
  margin: var(--space-2) 0 var(--space-4);
  font-size: 15px;
  font-weight: 550;
}

.trail {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.trail .row {
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr) 48px;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.trail .row:last-child {
  border-bottom: 0;
}
.trail .ok {
  color: var(--success);
}
.trail .fail {
  color: var(--danger);
}
.trail > p {
  margin: 0;
  padding: var(--space-4);
  color: var(--muted);
}

.dry-run {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.dry-run h2 {
  margin: var(--space-2) 0 var(--space-3);
}
.dry-run > p {
  color: var(--muted);
  font-size: 14px;
}
.checklist {
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.checklist li {
  position: relative;
  padding: var(--space-4) 0 var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  counter-increment: step;
}
.checklist li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: var(--space-4);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}
.checklist h3 {
  margin-bottom: var(--space-2);
  font-size: 14px;
}
.checklist p {
  color: var(--muted);
  font-size: 13px;
}

/* ——— Method / about ——— */
.editorial-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}
.contents {
  position: sticky;
  top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  font-size: 13px;
}
.contents a {
  color: var(--muted);
  text-decoration: none;
}
.contents a:hover {
  color: var(--accent);
}

.prose section {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.prose section:last-child {
  border-bottom: 0;
}
.prose h2 {
  margin: var(--space-2) 0 var(--space-4);
  font-size: 20px;
}
.prose p,
.prose li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.prose ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}
.prose code {
  display: block;
  margin-top: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--elevated);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  word-break: break-all;
}

.definition-list {
  margin: 0 0 var(--space-4);
}
.definition-list > div {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
}
.definition-list > div:first-child {
  border-top: 0;
}
.definition-list dt {
  margin-bottom: var(--space-1);
  font-size: 14px;
  font-weight: 550;
  color: var(--text);
}
.definition-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}
.large-copy {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
}
.about-intro > div p {
  color: var(--muted);
  font-size: 14px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: var(--space-2);
}
.faq summary {
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  font-size: 14px;
  font-weight: 550;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  float: right;
  color: var(--muted);
  font-family: var(--font-mono);
}
.faq details[open] summary::after {
  content: '−';
}
.faq details p {
  margin: 0;
  padding: 0 var(--space-4) var(--space-4);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* ——— 404 ——— */
.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-5) 0;
  align-items: center;
}
.missing-rule {
  margin-top: var(--space-7);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* ——— Responsive ——— */
@media (max-width: 860px) {
  .statement-layout,
  .editorial-layout,
  .detail-columns,
  .about-intro,
  .operations,
  .route-diagram {
    grid-template-columns: 1fr;
  }
  .route-arrow {
    transform: rotate(90deg);
    justify-self: start;
  }
  .contents {
    position: static;
  }
  .share-row,
  .watch-row {
    grid-template-columns: 1fr;
  }
  .trail .row {
    grid-template-columns: 1fr;
  }
  .footer-note {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .site-shell {
    padding: 0 var(--space-4);
  }
  .site-header {
    flex-wrap: wrap;
    gap: var(--space-2);
    min-height: 0;
    padding: var(--space-3) 0;
  }
  .main-nav {
    order: 3;
    flex: 1 1 100%;
    padding-top: var(--space-1);
    border-top: 1px solid var(--border);
  }
  .main-nav a {
    padding: 6px 8px;
    font-size: 12px;
  }
  .header-tools {
    margin-left: auto;
  }
  .theme-switch button {
    padding: 0 8px;
    font-size: 10px;
  }
  main {
    padding: var(--space-5) 0 var(--space-6);
  }
  .input-line {
    flex-direction: column;
  }
  .input-line button,
  .coin-form > button {
    width: 100%;
  }
  .total-row {
    padding: var(--space-4);
  }
  .amount {
    font-size: 24px;
  }
  h1 {
    font-size: 26px;
  }
}

@media (max-width: 360px) {
  .site-shell {
    padding: 0 12px;
  }
  .theme-switch button {
    padding: 0 6px;
  }
}

/* ——— Optional wallet connect (read-only) ——— */
.wallet-connect {
  position: relative;
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
  max-width: 560px;
}
.wallet-connect-btn {
  justify-self: start;
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--elevated);
  color: var(--text);
  font-size: 13px;
  font-weight: 550;
}
.wallet-connect-btn:hover {
  border-color: var(--accent);
  background: var(--accent-muted);
  color: var(--text);
}
.wallet-connect-btn[data-state="connected"] {
  border-color: var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}
.wallet-connect-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.wallet-connect-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.wallet-connect-status.error {
  color: var(--danger);
}
.wallet-connect-menu {
  position: absolute;
  z-index: 20;
  top: 40px;
  left: 0;
  min-width: 220px;
  max-width: min(320px, 100vw);
  padding: var(--space-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--elevated);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.wallet-connect-item {
  width: 100%;
  justify-content: flex-start;
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}
.wallet-connect-item:hover {
  background: var(--accent-muted);
  color: var(--text);
}

/* ——— Wallet picker dialog ———
   Native <dialog>: the browser supplies the focus trap and Escape. Rows are 44px. Wallets
   that are not installed are dimmed with the faint TEXT token, never with opacity, so they
   still pass 4.5:1 in both themes. */
.wallet-picker {
  width: min(520px, calc(100vw - 24px));
  max-height: min(84vh, 720px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
}
.wallet-picker::backdrop {
  background: rgba(0, 0, 0, 0.62);
}
.wallet-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4) var(--space-2);
}
.wallet-picker-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.wallet-picker-close {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--elevated);
  color: var(--text);
  font-size: 13px;
}
.wallet-picker-close:hover {
  border-color: var(--accent);
  background: var(--accent-muted);
}
.wallet-picker-note {
  margin: 0;
  padding: 0 var(--space-4) var(--space-3);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.wallet-picker-group {
  padding: 0 var(--space-4) var(--space-3);
}
.wallet-picker-group h3 {
  margin: var(--space-2) 0;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wallet-picker-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wallet-picker-row,
.wallet-picker-link,
.wallet-picker-dead {
  display: flex;
  /* Buttons centre their flex children in Chrome unless told otherwise, which would leave the
     connectable rows indented past the rows below them. */
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: transparent;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
}
.wallet-picker-row {
  color: var(--text);
  font-weight: 550;
  cursor: pointer;
}
.wallet-picker-row:hover {
  border-color: var(--accent);
  background: var(--accent-muted);
}
.wallet-picker-link {
  color: var(--text-faint);
}
.wallet-picker-dead,
.wallet-picker-link.wallet-picker-dead {
  align-items: flex-start;
}
.wallet-picker-link:hover {
  border-color: var(--border-strong);
  background: var(--elevated);
  color: var(--text);
}
.wallet-picker-dead {
  color: var(--text-faint);
  align-items: flex-start;
}
.wallet-picker-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--elevated);
  overflow: hidden;
}
.wallet-picker-mark img {
  display: block;
  width: 20px;
  height: 20px;
}
.wallet-picker-mark span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}
.wallet-picker-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.wallet-picker-name {
  overflow-wrap: anywhere;
}
.wallet-picker-state {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
}
.wallet-picker-reason {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.45;
}
.wallet-picker-row .wallet-picker-state {
  color: var(--accent);
}
.wallet-picker-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.wallet-picker-foot {
  padding: var(--space-3) var(--space-4) var(--space-4);
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.5;
}
@media (max-width: 560px) {
  .wallet-picker {
    width: calc(100vw - 16px);
    max-height: 88vh;
  }
  .wallet-picker-head,
  .wallet-picker-note,
  .wallet-picker-group,
  .wallet-picker-foot {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }
}

.header-tools {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.header-tools .wallet-connect {
  margin-top: 0;
  max-width: none;
}
.header-tools .wallet-connect-note,
.header-tools .wallet-connect-status {
  display: none;
}
.header-tools .wallet-connect-btn {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

/* ——— Rugs experimental ——— */
.interval-bar {
  margin: var(--space-4) 0 var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  max-width: 640px;
}
.interval-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-2) 0;
}
.interval-pill {
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-family: var(--font-mono);
}
.interval-pill.is-selected {
  background: var(--accent-muted);
  border-color: var(--accent);
  color: var(--text);
}
.rugs-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  margin: var(--space-5) 0;
}
@media (max-width: 800px) {
  .rugs-panels {
    grid-template-columns: 1fr;
  }
}
.rugs-panel {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.rugs-panel h2 {
  margin: 0 0 var(--space-3);
  font-size: 18px;
  letter-spacing: -0.02em;
}
.rugs-panel .badge {
  margin-bottom: var(--space-3);
}
.rugs-list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.rugs-item {
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--elevated);
}
.rugs-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.rugs-item-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.warn-muted-label {
  background: var(--warn-muted);
  color: var(--warn);
  border: 0;
  font-size: 11px;
  font-weight: 550;
  padding: 2px 8px;
  border-radius: var(--r-pill);
}


/* ——— Copy-address control (always copies FULL string) ——— */
.addr-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-2);
}
.addr-row .addr,
.addr-row .address {
  flex: 1 1 200px;
  margin: 0;
}
.copy-addr {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}
.copy-addr[data-copied="1"] {
  border-color: var(--success);
  color: var(--success);
}

/* 320px: no horizontal overflow; denser chrome stacks */

@media (max-width: 560px) {
  button,
  .button,
  .primary,
  a.button,
  .wallet-connect-btn,
  .wallet-connect-item,
  .input-line button,
  .coin-form > button,
  #add-watch,
  .copy-addr {
    min-height: 44px;
  }
  .main-nav a {
    min-height: 44px;
    padding: 10px 12px;
  }
  .theme-switch button {
    min-height: 44px;
    padding: 0 14px;
  }
  .header-tools .wallet-connect-btn {
    min-height: 44px;
  }
  .interval-pill {
    min-height: 44px;
  }
}

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

/* Open statement composition. Geometric type, a wider plot, and paced sections. */
.site-shell { padding-inline: 48px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: -.04em; margin-right: 24px; }
.site-header { min-height: 88px; }
.home-stage { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.5fr); gap: 48px; align-items: start; padding: 24px 0 48px; }
.home-copy { padding-top: 16px; }
.home-copy h1 { font-family: var(--font-display); font-size: clamp(44px, 4.45vw, 64px); line-height: 1.06; font-weight: 600; letter-spacing: -.045em; margin: 24px 0; }
.home-copy h1 span { color: var(--accent); }
.home-copy .lede { max-width: 29ch; font-size: 19px; line-height: 1.5; }
.home-copy .small-note { margin-top: 16px; }
.home-entry { margin: 40px 0 16px; }
.home-entry .input-line { display: grid; grid-template-columns: 1fr; }
.home-entry .input-line input { min-height: 48px; }
.home-entry .input-line button { justify-self: start; margin-top: 4px; }
.home-entry .form-help { margin-top: 8px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.example-statement { min-width: 0; background: var(--surface); border-top: 3px solid var(--accent); padding: 24px; }
.example-topline, .example-actions, .example-plot-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.example-topline { margin-bottom: 12px; }
.example-topline .eyebrow { margin: 0; }
.example-topline button { min-height: 44px; font-size: 12px; }
.example-statement h2 { font-family: var(--font-display); font-weight: 600; font-size: 32px; letter-spacing: -.025em; }
.example-statement > .note { margin-top: 8px; }
#example-status { font-family: var(--font-mono); font-size: 11px; line-height: 1.6; margin: 16px 0 8px; }
.example-address { color: var(--muted); font-size: 11px; margin-bottom: 20px; }
.example-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--border-strong); padding: 20px 0; gap: 16px; }
.example-totals > div { min-width: 0; }
.example-totals .eyebrow { display: block; font-size: 11px; }
.example-totals .amount { display: block; font-size: clamp(14px, 1.35vw, 20px); letter-spacing: -.05em; overflow-wrap: anywhere; }
.example-totals .unit { display: block; margin: 8px 0; font-size: 11px; }
.example-totals .badge { padding: 0; border: 0; background: transparent; margin-top: 8px; }
.example-caveat { margin-top: 12px; }
.example-plot-heading { margin: 24px 0 12px; }
.example-plot-heading h3 { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.example-plot-heading a { font-size: 12px; }
.example-statement .fee-split-figure { padding: 0; border: 0; border-radius: 0; }
.example-statement .fee-split-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 104px; gap: 16px; padding: 8px 0; }
.example-statement .fee-split-row > .note { grid-column: 1 / -1; font-size: 11px; }
.example-statement .fee-split-route .eyebrow { display: none; }
.source-links { margin-top: 16px; }
.example-actions { border-top: 1px solid var(--border); padding-top: 16px; font-size: 13px; }
.example-actions a { min-height: 44px; display: inline-flex; align-items: center; }
.sample-section { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.5fr); gap: 48px; padding: 32px 0 48px; border-top: 1px solid var(--border-strong); }
.sample-heading h2 { font-family: var(--font-display); font-size: 40px; line-height: 1.05; font-weight: 600; margin: 12px 0; }
.sample-heading > a { font-size: 13px; }
.sample-values { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; margin: 12px 0 24px; }
.sample-number { font-size: clamp(24px, 2.5vw, 36px); line-height: 1.1; letter-spacing: -.06em; margin-bottom: 16px; overflow-wrap: anywhere; }
.sample-number span { font-size: 16px; color: var(--muted); letter-spacing: 0; }
.sample-values a { font-size: 13px; }
.sample-sources summary, .plot-explainer summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 12px; color: var(--accent); }
.sample-sources summary::after, .plot-explainer summary::after { content: '+'; margin-left: 12px; }
.sample-sources[open] summary::after, .plot-explainer[open] summary::after { content: '−'; }
.sample-sources .addr { overflow-wrap: anywhere; }
.plot-explainer p { padding-bottom: 12px; }
.fee-split-caption { margin-bottom: 0; }
.fee-split-count { font-family: var(--font-mono); font-size: 11px; }
.fee-split-figure { border-radius: 0; }
.fee-split-scale { margin-left: calc(32.35% + 4px); width: calc(41.18% - 20px); }
.example-statement .fee-split-scale { margin-left: calc((100% - 136px) / 2.3 + 16px); width: calc((100% - 136px) * 1.3 / 2.3); }

.fee-split-inspect summary { cursor: pointer; list-style: none; min-height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 4px 8px; border-radius: 4px; }
.fee-split-inspect summary::-webkit-details-marker { display: none; }
.fee-split-inspect summary:hover, .fee-split-inspect[open] summary { background: var(--accent-muted); }
.inspect-hint { font-size: 10px; color: var(--muted); text-align: center; }
.split-detail { padding: 16px; background: var(--elevated); border-left: 2px solid var(--accent); margin-top: 8px; font-size: 12px; }
.split-detail .addr { font-size: 11px; }
.split-detail .eyebrow { margin-bottom: 4px; }
.fee-split-row:has(details[open]) { align-items: start; }


.statement-page .page-heading { max-width: none; margin-bottom: 24px; }
.statement-page .page-heading h1 { font-size: 56px; font-weight: 600; line-height: 1.08; }
.statement-page #desk-form { display: grid; grid-template-columns: minmax(0, 1fr) 280px; column-gap: 32px; padding: 20px 0; border-block: 1px solid var(--border); }
.statement-page #desk-form > label, .statement-page #desk-form > .input-line, .statement-page #desk-form > .form-help { grid-column: 1; }
.statement-page #desk-form > .wallet-connect { grid-column: 2; grid-row: 1 / 4; align-self: center; }
.statement-workspace { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.5fr); gap: 48px; }
.statement-layout { grid-template-columns: 1fr; }
.statement-detail { min-width: 0; }
.statement-detail .section-title { margin-top: 0; }
.statement-detail .section-title h2 { font-size: 36px; font-weight: 600; }
.statement-side .total-row { padding: 20px 0; }
.statement-side .totals-ledger { border-inline: 0; border-radius: 0; background: transparent; }
.statement-side .amount { font-size: clamp(20px, 2vw, 28px); overflow-wrap: anywhere; }
.statement-side .margin-note { border: 0; border-left: 2px solid var(--accent); border-radius: 0; background: transparent; padding: 0 0 0 16px; }
.statement-side .summary-note { background: transparent; border: 0; padding: 0; }
.statement-page .statement-header { margin-top: 32px; }
.prose { max-width: 760px; }
.skip-link { color: var(--bg); }
button:disabled { opacity: 1; color: var(--muted); }
@media (max-width: 1100px) {
  .site-shell { padding-inline: 32px; }
  .home-stage, .sample-section, .statement-workspace { gap: 32px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); }
  .example-totals { grid-template-columns: 1fr; gap: 16px; }
  .example-totals > div { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4px 12px; }
  .example-totals .amount { font-size: 20px; }
  .example-totals .unit { display: inline; }
  .example-totals .badge { grid-column: 1; grid-row: 2; margin: 0; }
  .example-statement .fee-split-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .example-statement .fee-split-route { grid-column: 1 / -1; }
  .example-statement .fee-split-scale { margin-left: calc(43.48% + 8px); width: calc(56.52% - 8px); }
  .sample-values { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .home-stage, .sample-section, .statement-workspace { grid-template-columns: 1fr; }
  .home-copy h1 { font-size: 64px; max-width: 16ch; }
  .home-copy .lede { max-width: 40ch; }
  .home-entry { margin-top: 24px; }
  .home-entry .input-line { display: flex; }
  .home-entry .input-line button { margin: 0; }
  .statement-page #desk-form { display: block; }
  .fee-split-scale, .example-statement .fee-split-scale { margin-left: 8px; width: calc(100% - 16px); }
  .example-statement .fee-split-row { grid-template-columns: 1fr; }
  .fee-split-row:has(details[open]) .fee-split-inspect, .fee-split-row:has(details[open]) .fee-split-route { grid-column: 1; grid-row: auto; }
  .sample-values { grid-template-columns: 1fr 1.6fr; }
}
@media (max-width: 560px) {
  .site-shell { padding-inline: 16px; }
  .site-header { gap: 8px; padding-block: 16px; }
  .brand { font-size: 28px; }
  .home-stage { padding-top: 0; gap: 32px; }
  .home-copy { padding: 0; }
  .home-copy h1 { font-size: clamp(40px, 8vw, 48px); margin: 16px 0 24px; }
  .home-copy .lede { font-size: 16px; }
  .example-statement { padding: 16px; }
  .example-statement h2 { font-size: 28px; }
  .example-topline { align-items: flex-start; }
  .example-totals > div { display: block; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
  .example-totals > div:last-child { border: 0; padding-bottom: 0; }
  .example-totals .amount { font-size: 22px; }
  .example-totals .badge { margin-top: 8px; }
  .example-statement .fee-split-row { gap: 8px; padding: 16px 0; }
  .example-statement .fee-split-scale { margin-bottom: 0; }
  .fee-split-route { order: 3; }
  .sample-section { gap: 16px; padding-top: 24px; }
  .sample-values { grid-template-columns: 1fr; gap: 32px; }
  .sample-number { font-size: 28px; }
  .statement-page .page-heading h1 { font-size: 40px; }
  .statement-side .amount { font-size: 22px; }
  .statement-workspace { gap: 24px; }
  .statement-detail .section-title h2 { font-size: 32px; }
  .source-links { line-height: 1.8; }
  .sample-sources summary { min-height: 44px; }
}

/* Match the axis to the actual ruler column; circles retain a fixed pixel radius. */
.fee-split-scale, .example-statement .fee-split-scale { margin-left: 0; width: 100%; padding: 0; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, .9fr); gap: 16px; }
.fee-split-scale-values { grid-column: 2; display: flex; justify-content: space-between; padding: 0 8px; }
.example-statement .fee-split-scale { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 104px; }
@media (min-width: 861px) and (max-width: 1100px) { .example-statement .fee-split-scale { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }
@media (max-width: 860px) { .fee-split-scale, .example-statement .fee-split-scale { display: block; } }
@media (max-width: 560px) {
  .input-line input { flex-basis: auto; height: 48px; }
  .home-stage { display: flex; flex-direction: column; gap: 0; }
  .home-copy { display: contents; }
  .home-copy > .eyebrow { order: 0; }
  .home-copy h1 { order: 1; }
  .home-copy .lede { order: 2; margin-top: 0; }
  .home-copy .small-note { order: 3; margin-bottom: 24px; }
  .home-copy .text-link { display: none; }
  .home-stage .example-statement { order: 4; width: 100%; }
  .home-stage .home-entry { order: 5; width: 100%; margin: 24px 0 0; }
  .example-totals > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 12px; }
  .example-totals .amount { font-size: 18px; }
  .example-totals .unit { display: block; margin-block: 4px; }
  .example-totals .badge { grid-column: 1; grid-row: 2; margin: 0; }
  .example-totals .usd { font-size: 11px; }
}

.fee-split-track, .fee-split-tick { vector-effect: non-scaling-stroke; stroke: var(--text-faint); stroke-width: 1; }

.inspect-hint::after { content: ' +'; }
.fee-split-inspect[open] .inspect-hint::after { content: ' −'; }

/* Surface hierarchy: canvas → statement → plot → opened detail.
   Borders establish edges; copper identifies actions and measured plot positions. */
.brand { font-size: 28px; font-weight: 600; letter-spacing: -.045em; }
.home-stage { padding-top: 32px; padding-bottom: 64px; }
.home-copy { padding-top: 24px; }
.home-copy h1 span { color: var(--text); }
.home-copy .eyebrow { color: var(--accent); }
.home-entry { margin-top: 32px; padding-top: 8px; border-top: 1px solid var(--border-strong); }
.home-entry .wallet-form { margin-bottom: 8px; }
.home-entry .input-line button { min-height: 44px; padding-inline: 24px; }
.example-statement { border: 1px solid var(--border-strong); border-radius: 12px; padding: 24px; }
.example-topline { margin-bottom: 20px; }
.example-statement h2 { font-size: 28px; line-height: 1.15; letter-spacing: -.035em; }
.example-totals { padding: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; }
.example-totals .amount { letter-spacing: -.035em; }
.badge.measured { color: var(--muted); background: var(--raised); border-color: var(--border-strong); }
.example-totals .badge.measured { background: transparent; }
.example-plot-heading { margin-top: 32px; margin-bottom: 16px; }
.example-plot-heading h3 { font-size: 28px; letter-spacing: -.035em; }
.example-statement .fee-split-figure { margin-inline: -8px; padding: 16px; border: 1px solid var(--border); border-radius: 6px; background: var(--elevated); }
.example-statement .fee-split-row { padding-block: 12px; }
.example-statement .split-detail { background: var(--raised); }
.source-links { margin-block: 20px; }
.example-actions { padding-top: 12px; }
.sample-section { padding: 48px 32px; margin-bottom: 48px; background: var(--surface); border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border); gap: 64px; }
.sample-heading h2 { font-size: 36px; line-height: 1.12; letter-spacing: -.04em; margin-block: 16px; }
.sample-values { grid-template-columns: 1fr 1.6fr; margin-top: 8px; margin-bottom: 32px; gap: 32px; }
.sample-values > div + div { border-left: 1px solid var(--border-strong); padding-left: 32px; }
.sample-number { letter-spacing: -.045em; }
.home-footnote { border: 0; padding-top: 0; justify-content: space-between; }
.home-footnote p { max-width: 60ch; }
.site-footer { padding-block: 32px; }
.statement-page .page-heading { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.5fr); gap: 8px 48px; margin-top: 16px; margin-bottom: 32px; }
.statement-page .page-heading .eyebrow { grid-column: 1 / -1; margin: 0; }
.statement-page .page-heading h1 { margin: 0; }
.statement-page .page-heading .lede { align-self: center; margin: 0; max-width: 42ch; }
.statement-page #desk-form { align-items: start; margin-bottom: 24px; padding-block: 24px; }
.statement-page #desk-form > .input-line { align-items: start; }
.statement-page #desk-form input, .statement-page #desk-form .primary { min-height: 48px; }
.statement-page #desk-form .form-help { margin-top: 8px; }
.statement-page #lookup-status:not(.error) { padding: 0; border: 0; background: transparent; }
.statement-page .statement-header { margin-top: 32px; }
.statement-page .record-meta { margin-bottom: 24px; }
.statement-workspace { padding-top: 24px; border-top: 1px solid var(--border-strong); }
.statement-side .totals-ledger { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 6px; }
.statement-side .total-row { padding: 24px; }
.statement-side .total-row:last-child { background: var(--elevated); }
.statement-side .amount { font-size: clamp(20px, 1.8vw, 26px); }
.statement-side .totals-ledger + .note { margin-top: 12px; }
.statement-side .margin-note { border-left: 1px solid var(--border-strong); padding-left: 24px; }
.statement-side .summary-note { padding-top: 16px; border-top: 1px solid var(--border); line-height: 1.6; }
.statement-detail .section-title { border: 0; padding-bottom: 0; margin-bottom: 20px; }
.statement-detail .section-title h2 { font-size: 32px; letter-spacing: -.035em; }
.statement-detail .section-title .eyebrow { margin: 0; }
.statement-detail .fee-split-figure { border: 1px solid var(--border-strong); border-radius: 6px; padding: 24px; background: var(--elevated); }
.statement-detail .fee-split-row { padding-block: 16px; }
.statement-detail .split-detail { background: var(--raised); }
.statement-detail #shares-note { margin-top: 16px; }
.fee-split-stale { background: var(--raised); }

@media (max-width: 1100px) {
  .sample-section { padding-inline: 24px; gap: 32px; }
  .sample-values { grid-template-columns: 1fr; gap: 24px; }
  .sample-values > div + div { border-left: 0; border-top: 1px solid var(--border); padding: 24px 0 0; }
  .statement-side .total-row { padding: 20px; }
}
@media (max-width: 860px) {
  .site-header { flex-wrap: wrap; }
  .main-nav { order: 3; flex-basis: 100%; }
  .home-stage { padding-top: 16px; }
  .home-copy { padding-top: 0; }
  .home-copy h1 { max-width: none; }
  .statement-page #desk-form > .wallet-connect { margin-top: 20px; }
  .statement-page .page-heading { display: block; }
  .statement-page .page-heading h1 { margin-top: 8px; }
  .statement-page .page-heading .lede { margin-top: 12px; }
  .sample-values { grid-template-columns: 1fr 1.6fr; }
  .sample-values > div + div { border-top: 0; border-left: 1px solid var(--border); padding: 0 0 0 24px; }
}
@media (max-width: 560px) {
  .brand { font-size: 28px; margin-right: 0; }
  .header-tools { flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 100%; }
  .site-header:has(.wallet-connect) .header-tools { margin-left: 0; width: 100%; justify-content: space-between; }
  .theme-switch button { padding-inline: 12px; }
  .site-header:has(.wallet-connect) .theme-switch button { padding-inline: 8px; }
  .main-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
  .main-nav a { padding-inline: 8px; }
  .home-stage { padding-top: 0; padding-bottom: 40px; }
  .example-statement { padding: 16px; border-radius: 8px; }
  .example-topline { gap: 12px; margin-bottom: 20px; }
  .example-statement h2 { font-size: 26px; }
  .example-totals { padding: 12px; }
  .example-totals > div { grid-template-columns: 72px minmax(0, 1fr); column-gap: 8px; }
  .example-totals .eyebrow { font-size: 10px; letter-spacing: .02em; }
  .example-totals .amount { font-size: 16px; letter-spacing: -.05em; }
  .example-totals .badge { font-size: 10px; letter-spacing: 0; }
  .example-plot-heading { margin-top: 24px; }
  .example-plot-heading h3 { font-size: 26px; }
  .example-statement .fee-split-figure { margin-inline: -4px; padding: 12px; }
  .example-statement .fee-split-row { padding-block: 16px; }
  .source-links { font-size: 12px; }
  .home-stage .home-entry { margin-top: 32px; padding-top: 8px; }
  .sample-section { padding: 32px 16px; gap: 24px; margin-bottom: 32px; }
  .sample-heading h2 { font-size: 32px; }
  .sample-values { grid-template-columns: 1fr; gap: 24px; }
  .sample-values > div + div { border-left: 0; border-top: 1px solid var(--border-strong); padding: 24px 0 0; }
  .sample-number { font-size: 26px; }
  .statement-page .page-heading { margin-top: 0; margin-bottom: 24px; }
  .statement-workspace { gap: 32px; }
  /* Keep the plot immediately after totals on narrow screens. */
  .statement-workspace { display: flex; flex-direction: column; }
  .statement-side, .statement-side .statement-layout { display: contents; }
  .statement-side .statement-layout > div { order: 0; }
  .statement-detail { order: 1; }
  .statement-side .margin-note { order: 2; }
  .statement-side .summary-note { order: 3; margin-block: 0; }
  .statement-detail .section-title h2 { font-size: 28px; }
  .statement-side .total-row { padding: 20px 16px; }
  .statement-side .amount { font-size: 22px; }
  .statement-detail .fee-split-figure { padding: 16px; }
}

/* ===================================================================== */
/* Paper Trail — the checker                                             */
/* The conclusion and its coverage are one block, laid out so a reader    */
/* cannot take the level without what it covers. Nothing here dims with   */
/* opacity: state is carried by the faint text token and by words.        */
/* ===================================================================== */

.check-stage {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-10, 40px);
  align-items: start;
  padding: var(--space-8) 0 var(--space-12);
}
/* The example report is long, and the intro column is short. Sticking the intro keeps the
   input within reach the whole way down instead of leaving a column of nothing beside it.
   CSS only: nothing animates, and nothing is taken over from the scroll. */
@media (min-width: 861px) {
  .check-copy {
    position: sticky;
    top: var(--space-6);
  }
}
.check-copy h1 {
  margin: var(--space-3) 0 var(--space-4);
  letter-spacing: -0.03em;
}
.check-copy h1 span { color: var(--accent); }
.check-form { margin: var(--space-6) 0 var(--space-4); }
.check-form .form-help { max-width: 52ch; }
.check-live {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--elevated);
}

/* ---------------------------------------------------- the report block */
.report {
  margin: var(--space-6) 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.report-head {
  padding: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.report-kicker {
  margin: 0;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.report-mint {
  margin: var(--space-1) 0 var(--space-3);
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}
.report-level {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.02em;
}
/* No grades: the findings header is emphatic but ungraded — accent, not alarm. */
.level-findings .report-level { color: var(--accent); }
.level-none .report-level,
.level-unknown .report-level { color: var(--text); }
.report-headline {
  margin: var(--space-2) 0 0;
  max-width: 62ch;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}
.report-when,
.report-age {
  margin: var(--space-2) 0 0;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

/* Coverage sits directly under the level, inside the same card and above the
   findings. It is never moved below them: a favourable level with its limits
   in fine print underneath is the exact failure this product must avoid. */
.report-coverage {
  padding: var(--space-5);
  border-bottom: 1px solid var(--border);
  background: var(--elevated);
}
.cover-title,
.report-findings h3,
.report-limits h3 {
  margin: 0 0 var(--space-3);
  font-size: 14px;
  font-weight: 600;
}
.cover-list {
  display: grid;
  gap: var(--space-1);
  /* A coverage row is a label and a one-word status. Across a 1344px card the eye has to
     travel the whole width to pair them, so the list keeps a readable measure. */
  max-width: 780px;
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
}
.cover-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.cover-what { color: var(--text); }
.cover-status {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-align: right;
}
.cover-unavailable .cover-status,
.cover-not-run .cover-status { color: var(--warn); }
.cover-note {
  grid-column: 1 / -1;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.45;
}
.attr { display: grid; gap: var(--space-2); }
.attr-line {
  margin: 0;
  max-width: 68ch;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}
.attr-basis {
  display: inline-block;
  margin-right: var(--space-2);
  padding: 1px 6px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.attr-inferred .attr-basis {
  border-color: var(--warn);
  color: var(--warn);
}

/* ------------------------------------------------------------ findings */
.report-findings,
.report-limits { padding: var(--space-5); }
.report-limits {
  border-top: 1px solid var(--border);
  background: var(--elevated);
}
.findings,
.limits {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.finding {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.finding:last-child { border-bottom: 0; padding-bottom: 0; }
.finding-text {
  max-width: 74ch;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}
.finding-unverified {
  display: inline-block;
  color: var(--text-faint);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
}
.finding-evidence {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
}
/* Evidence links are the one control in a finding, so they get a real tap target rather
   than the height of their own text. */
.finding-evidence a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  text-decoration: none;
}
.finding-evidence a:hover {
  border-color: var(--accent);
  background: var(--accent-muted);
}
.finding-evidence-none {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-faint);
}
.limits li {
  max-width: 82ch;
  padding-left: var(--space-4);
  border-left: 2px solid var(--border-strong);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.report-foot {
  padding: var(--space-5);
  border-top: 1px solid var(--border);
}
.report-foot p {
  margin: 0 0 var(--space-2);
  max-width: 68ch;
  color: var(--text-faint);
  font-size: 12.5px;
  line-height: 1.55;
}
/* A full mint in a URL is ~60 unbreakable characters. It is the thing a reader copies, so
   it is shown in full and allowed to wrap, never truncated and never left to overflow. */
.report-share {
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}
.report-link {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* ------------------------------------------------- halted, not blank   */
.report-halt { border-color: var(--warn); }
.halt-title {
  margin: 0;
  padding: var(--space-5) var(--space-5) 0;
  font-size: 19px;
}
.halt-detail,
.halt-sources {
  margin: var(--space-2) 0 0;
  padding: 0 var(--space-5) var(--space-5);
  max-width: 68ch;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ------------------------------------------------------- the live wait */
.check-running {
  margin: var(--space-6) 0;
  padding: var(--space-5);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--elevated);
}
.trail-live {
  display: grid;
  gap: 2px;
  margin: var(--space-4) 0 0;
  padding: 0;
  max-height: 340px;
  overflow-y: auto;
  list-style: none;
}
.trail-line {
  padding: var(--space-2) var(--space-3);
  border-left: 2px solid var(--border-strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
}
.trail-ok { border-left-color: var(--accent); }
.trail-cached { border-left-color: var(--border-strong); color: var(--text-faint); }
.trail-refused,
.trail-error { border-left-color: var(--warn); color: var(--warn); }

/* ==================================================================== */
/* The launch timeline — the checker's signature element                */
/* ==================================================================== */
.timeline {
  margin: 0;
  padding: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.timeline-title {
  margin: 0 0 var(--space-4);
  font-size: 14px;
  font-weight: 600;
}
.timeline-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.timeline-axis {
  stroke: var(--border-strong);
  stroke-width: 1;
}
.timeline-launch {
  stroke: var(--text-faint);
  stroke-width: 1.5;
}
.timeline-window {
  fill: var(--accent-muted);
  stroke: var(--accent);
  stroke-width: 1;
}
.timeline-mark { stroke-width: 1.5; }
.timeline-sold { fill: var(--danger); stroke: var(--danger); }
.timeline-moved { fill: none; stroke: var(--warn); stroke-width: 2; }
.timeline-bought { fill: var(--accent); stroke: var(--accent); }
.timeline-received { fill: none; stroke: var(--success); stroke-width: 2; stroke-dasharray: 3 3; }
.timeline-burned { fill: none; stroke: var(--text-faint); stroke-width: 2; stroke-dasharray: 3 3; }
.timeline-disposed { fill: none; stroke: var(--danger); stroke-width: 2; stroke-dasharray: 3 3; }
.timeline-tick,
.timeline-cut {
  fill: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
}
.timeline-tick-end { text-anchor: end; }
.timeline-cut { fill: var(--warn); text-anchor: end; }
.timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
}
.timeline-legend li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.timeline-key {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.timeline-legend .timeline-sold { background: var(--danger); }
.timeline-legend .timeline-moved {
  background: transparent;
  border: 2px solid var(--warn);
}
.timeline-legend .timeline-bought { background: var(--accent); }
.timeline-key-window {
  width: 6px;
  height: 14px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--accent-muted);
}
.timeline-note {
  margin: var(--space-4) 0 0;
  max-width: 76ch;
  color: var(--text-faint);
  font-size: 12.5px;
  line-height: 1.6;
}
.timeline-empty .timeline-note { color: var(--muted); }

/* ==================================================================== */
/* Wallet holdings                                                      */
/* ==================================================================== */
.holdings-panel { margin: var(--space-6) 0; }
.holdings-list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.hold-item {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--elevated);
}
.hold-illiquid { border-color: var(--warn); }
.hold-item-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: baseline;
  justify-content: space-between;
}
.hold-item-head h3 { margin: 0; font-size: 16px; }
.hold-report { margin: var(--space-3) 0 0; }
.hold-level,
.hold-check {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: baseline;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-size: 13px;
  text-decoration: none;
}
.hold-level.level-findings { border-color: var(--accent); color: var(--accent); }
.hold-level.level-none,
.hold-level.level-unknown { color: var(--text); }
.hold-check { color: var(--text-faint); }
.hold-level-when {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* ==================================================================== */
/* Status — two ledgers, side by side, never summed                     */
/* ==================================================================== */
.stat-time {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-4);
}
.stat-card {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--elevated);
}
.stat-card h2 { margin: 0 0 var(--space-2); font-size: 18px; }
.stat-down { border-color: var(--warn); }
.stat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.stat-label { color: var(--muted); }
.stat-value { color: var(--text); }
.stat-note {
  grid-column: 1 / -1;
  color: var(--text-faint);
  font-size: 11.5px;
}
.stat-ok,
.stat-tripped {
  margin-top: var(--space-4);
  font-size: 13px;
  line-height: 1.55;
}
.stat-ok { color: var(--text-faint); }
.stat-tripped { color: var(--warn); }
.stat-tripped ul { margin: var(--space-2) 0 0; padding-left: var(--space-5); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .check-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }
  /* At narrow widths the worked example comes first: showing the product working
     beats asking for input from someone who has not seen it yet. */
  .check-live { order: -1; }
  .finding { grid-template-columns: minmax(0, 1fr); }
  .finding-unverified {
  display: inline-block;
  color: var(--text-faint);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
}
.finding-evidence { grid-column: 1; }
}

/* ===================================================================== */
/* Tap targets at touch widths.                                          */
/* A link inside a sentence stays inline — making it 44px tall would     */
/* break the line it sits in. A standalone link is a control and gets a  */
/* real target. tools/capture-papertrail.mjs fails the build on any      */
/* control under 44px at 320px, which is how these were found.           */
/* ===================================================================== */
@media (max-width: 860px) {
  /* Any link or button that is not inline text in a sentence is a control. Rather than
     listing every one, this catches them by what they are: a standalone box. */
  a:not(p a):not(li a):not(.finding-evidence a),
  .report-link,
  .empty-state a,
  .site-footer > a {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 44px;
  }
  /* Except the ones that are already laid out as rows or grids of their own. */
  .main-nav a,
  .wallet-picker-row,
  .wallet-picker-link,
  .hold-level,
  .hold-check {
    display: flex;
  }
  .main-nav a {
    align-items: center;
    min-height: 44px;
  }
}


/* ===================================================================== */
/* A check that is still running.                                        */
/* The banner is INSIDE the report head, above the level, because a      */
/* partial check must never be presented as a whole one — and a notice   */
/* under the findings is a notice most readers never reach.              */
/* ===================================================================== */
.report-partial { border-color: var(--accent); }
.report-reading {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: baseline;
  margin: 0 0 var(--space-4);
  padding: var(--space-3);
  border: 1px solid var(--accent);
  border-radius: var(--r-sm);
  background: var(--accent-muted);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}
.report-reading-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.level-partial .report-level { color: var(--accent); }
.cover-reading .cover-status { color: var(--accent); }

/* ===================================================================== */
/* The honest parts: the blanked preview, the FAQ, the two views.        */
/* ===================================================================== */

/* A blanked figure must read as unknown. It is dimmed with the faint text
   token and labelled in words — never styled like a real number, and never
   a zero, which would be a figure we have not measured. */
.blank-preview {
  margin: 0 0 var(--space-5);
  padding: var(--space-5);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--elevated);
}
.blank-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-4);
  margin: var(--space-3) 0 var(--space-4);
}
.blank-figures dt {
  color: var(--muted);
  font-size: 12.5px;
}
.blank-figures dd {
  margin: var(--space-1) 0 0;
  color: var(--text-faint);
  font-size: 26px;
  letter-spacing: 0.06em;
}
.blank-unit {
  margin-left: var(--space-2);
  font-size: 13px;
  letter-spacing: 0;
}
.blank-note {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ------------------------------------------------------------- the FAQ */
.faq-inline {
  margin: var(--space-4) 0 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--elevated);
}
.faq-inline > summary {
  padding: var(--space-3) var(--space-4);
  min-height: 44px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
}
.faq-inline > summary:hover { color: var(--accent); }
.faq-answer {
  padding: 0 var(--space-4) var(--space-4);
}
.faq-answer p {
  margin: 0 0 var(--space-3);
  max-width: 72ch;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}
.faq-answer p:last-child { margin-bottom: 0; }
.faq-list { display: grid; gap: var(--space-2); }
.faq-section { margin: var(--space-12) 0 var(--space-8); }
.faq-link { font-size: 13px; }

/* The one caveat a reader is most likely to need and least likely to seek out.
   Accent-bordered and directly under the level, never below the findings. */
.report-notreassurance {
  margin: 0;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  background: var(--warn-muted);
}
.report-notreassurance > p {
  margin: 0;
  max-width: 74ch;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.6;
}
.report-notreassurance .faq-inline {
  border-color: var(--border-strong);
  background: var(--surface);
}

/* What the home page promises, and what it refuses to promise, side by side. */
.lede-sub {
  margin: var(--space-2) 0 0;
  max-width: 56ch;
  color: var(--text-faint);
  font-size: 14px;
  line-height: 1.55;
}
.home-honesty {
  margin: var(--space-5) 0 0;
  padding: var(--space-4);
  border-left: 2px solid var(--accent);
  background: var(--elevated);
}
.home-honesty p {
  margin: 0 0 var(--space-3);
  max-width: 60ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.home-honesty p:last-child { margin-bottom: 0; }
.home-honesty strong { color: var(--text); }

/* -------------------------------------------------- simple and full views */
.report-viewswitch {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border);
}
.view-toggle {
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--elevated);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}
.view-toggle:hover { border-color: var(--accent); background: var(--accent-muted); }
.view-note {
  color: var(--text-faint);
  font-size: 12.5px;
}
.report-detail { border-top: 1px solid var(--border); }
.report-trail,
.report-signals { padding: var(--space-5); border-top: 1px solid var(--border); }
.report-trail h3,
.report-signals h3 { margin: 0 0 var(--space-3); font-size: 14px; font-weight: 600; }
.trail-rows {
  display: grid;
  gap: 2px;
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}
.trail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-left: 2px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.trail-row.trail-ok { border-left-color: var(--accent); }
.trail-what { color: var(--muted); overflow-wrap: anywhere; }
.trail-outcome,
.trail-ms { color: var(--text-faint); }
.signal-raw {
  margin-bottom: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--elevated);
}
.signal-raw > summary {
  padding: var(--space-2) var(--space-3);
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
}
.signal-status { color: var(--text-faint); }
.signal-facts {
  margin: 0;
  padding: var(--space-3);
  max-height: 340px;
  overflow: auto;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* The method page says what the product is for before it says how it works. */
.method-stance {
  grid-column: 1 / -1;
  margin: 0 0 var(--space-8);
  padding: var(--space-5);
  border-left: 2px solid var(--accent);
  background: var(--elevated);
}
.method-stance p {
  margin: 0 0 var(--space-3);
  max-width: 72ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.method-stance p:last-child { margin-bottom: 0; }
.method-stance strong { color: var(--text); }

/* A rate without its denominator is a slogan. The interval is set in the mono face so it
   reads as the measurement it is, and dimmed so it does not compete with the figure. */
.ci {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.85em;
  white-space: nowrap;
}
.home-honesty-caveat,
.provisional-note {
  color: var(--text-faint);
  font-size: 12.5px;
  line-height: 1.55;
}
.provisional-note {
  margin: 0 0 var(--space-4);
  max-width: 72ch;
  padding: var(--space-3);
  border-left: 2px solid var(--warn);
  background: var(--warn-muted);
}
