/*
 * Obsidian Network interface — design system.
 *
 * Light, quiet and mobile-first. The pages carry protocol numbers, so the
 * stylesheet's job is to make them readable on a phone in daylight: white
 * surfaces, one dark ink for text, one accent for actions, and colour reserved
 * for state that actually means something (verified, warning, failed). Nothing
 * decorative competes with a balance or a hash.
 *
 * Mobile-first is literal here: every rule outside a media query is the phone
 * layout, and the `min-width` queries add room as the screen grows. A page is
 * never asked to be wider than the device it is read on.
 *
 * No web fonts, no external requests, no trackers inside a page that asks
 * people to trust it with key material.
 */

:root {
  color-scheme: light;
  --paper: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --line: #d7dbe2;
  --line-soft: #e6e9ee;
  --text: #14181f;
  --text-dim: #4c5563;
  --text-faint: #6e7787;
  --ink: #14181f;
  --gold: #b45309;         /* value accent: amber, dark enough for white text */
  --gold-deep: #92400e;
  --cyan: #1d4ed8;         /* links and chain state */
  --violet: #6d28d9;
  --green: #15803d;
  --red: #b91c1c;
  --amber: #a16207;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.06);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/*
 * Nothing may be wider than the screen. A single unbroken hash, address or
 * table used to widen the document on a phone, and a document wider than the
 * viewport is a page you have to pan around to read.
 */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video, canvas, table, pre { max-width: 100%; }
.mono, code, .hash, .address { overflow-wrap: anywhere; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono { font-family: var(--mono); font-size: 0.9em; letter-spacing: -0.01em; }
.muted { color: var(--text-dim); }
.fineprint { color: var(--text-faint); font-size: 0.86rem; line-height: 1.55; }
.error { color: var(--red); }
.link { color: var(--cyan); }

/* ── Masthead ──────────────────────────────────────────────────────────── */

.masthead {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.masthead-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 16px 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px 12px;
  align-items: center;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 1rem; letter-spacing: 0.08em; }
.brand:hover { text-decoration: none; }
.brand strong { font-weight: 700; }
.brand em { font-style: normal; color: var(--gold); font-weight: 600; }
.brand-mark {
  display: block;
  width: 32px; height: 32px;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.18), 0 0 0 1px rgba(16, 24, 40, 0.08);
}

.headline { grid-column: 1 / -1; }
.headline h1 { margin: 0; font-size: 1.15rem; font-weight: 650; }
.headline p { margin: 2px 0 0; color: var(--text-faint); font-size: 0.84rem; }

.account-slot { display: flex; align-items: center; gap: 8px; }

.pill-link, .pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  color: var(--text-dim);
  background: var(--surface);
}
.pill-link:hover { border-color: var(--gold); color: var(--text); text-decoration: none; }
.avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-2); color: var(--gold);
  display: inline-grid; place-items: center;
  font-size: 0.68rem; font-family: var(--mono);
}

.node-strip {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 10px;
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 0.76rem; color: var(--text-faint);
  font-family: var(--mono);
}
.node-pill { display: inline-flex; }

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 12px 10px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.nav-link {
  display: flex; flex-direction: column;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  border: 1px solid transparent;
}
.nav-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-link.active { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.nav-label { font-weight: 600; font-size: 0.86rem; }
.nav-blurb { font-size: 0.68rem; color: var(--text-faint); }

/* ── Menu button and the drawer ────────────────────────────────────────────
   On a phone the link list is a drawer behind a button: inline it wrapped
   into a stack of two-line rows and pushed the page itself off the screen.
   A first-time visitor to the landing page gets three doors, not a list. */

.masthead-actions { display: flex; align-items: center; gap: 10px; justify-self: end; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  /* A 44px target: a menu button that is hard to hit is a broken menu. */
  min-height: 44px;
}
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.nav-toggle-bars { position: relative; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px;
  background: currentColor; border-radius: 2px; transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.masthead.menu-open .nav-toggle-bars { background: transparent; }
.masthead.menu-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.masthead.menu-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/*
 * The page list lives behind the button at every width, on every page, so
 * there is no screen at which navigation can take over the content.
 */
.masthead .nav { display: none; }
.masthead.menu-open .nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding-bottom: 14px;
  max-height: 60vh;
  overflow-y: auto;
}
.masthead.menu-open .nav-link { flex-direction: row; align-items: baseline; gap: 8px; min-height: 44px; }
.masthead.menu-open .nav-blurb { margin-left: auto; }

/* ── Layout ────────────────────────────────────────────────────────────── */

.page { max-width: 1180px; margin: 0 auto; padding: 20px 16px 64px; display: grid; gap: 16px; }

.card, .subcard, .notice, .hero, .pillar, .chain-card, .country-card, .stat {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 12px; font-size: 1.08rem; letter-spacing: 0.01em; }
.card h3 { margin: 20px 0 8px; font-size: 0.8rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.09em; }
.subcard { box-shadow: none; background: var(--surface-2); margin-top: 14px; }
.notice { border-left: 3px solid var(--gold); color: var(--text-dim); font-size: 0.92rem; }
.notice strong { color: var(--text); }

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero { padding: 26px 20px; background: linear-gradient(150deg, #fff7ed 0%, #ffffff 55%); }
.eyebrow { margin: 0 0 10px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.hero h2 { margin: 0 0 14px; font-size: 1.6rem; line-height: 1.2; letter-spacing: -0.02em; }
.lede { max-width: 74ch; color: var(--text-dim); font-size: 1rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 12px; }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  min-height: 48px;
}
.cta:hover { text-decoration: none; }
.cta-primary { background: var(--gold); color: #ffffff; }
.cta-primary:hover { background: var(--gold-deep); }
.cta-secondary { background: var(--cyan); color: #ffffff; }
.cta-secondary:hover { background: #1a41b8; }
.cta-quiet { background: var(--surface); color: var(--text); border-color: var(--line); }
.cta-quiet:hover { border-color: var(--text-faint); }

/* ── Stats ─────────────────────────────────────────────────────────────── */

.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { padding: 14px 14px; box-shadow: none; }
.stat-label { display: block; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.stat strong { display: block; font-family: var(--mono); font-size: 1.15rem; margin-top: 6px; overflow-wrap: anywhere; }
.stat-sub { display: block; font-size: 0.74rem; color: var(--text-faint); }

/* ── Pillars / lists ───────────────────────────────────────────────────── */

.pillars { display: grid; grid-template-columns: 1fr; gap: 12px; }
.pillar h3 { margin: 0 0 10px; font-size: 1rem; color: var(--text); text-transform: none; letter-spacing: 0; }
.pillar p, .how li { color: var(--text-dim); font-size: 0.93rem; }
.how ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.how strong { color: var(--text); }

.chains .chain-list, .country-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.chain-card, .country-card { padding: 14px 16px; box-shadow: none; display: grid; gap: 4px; }
.chain-card span, .country-card span { font-size: 0.8rem; color: var(--text-dim); }
.country-card ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 0.86rem; }

/* ── Controls ──────────────────────────────────────────────────────────── */

button, .as-link {
  font: inherit;
  border-radius: 999px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  min-height: 44px;
  transition: border-color 0.12s ease, background 0.12s ease, opacity 0.12s ease;
}
button:hover:not(:disabled), .as-link:hover { border-color: var(--text-faint); text-decoration: none; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button.primary { background: var(--gold); color: #ffffff; border-color: transparent; font-weight: 650; }
button.primary:hover:not(:disabled) { background: var(--gold-deep); }
button.danger { background: transparent; border-color: rgba(185, 28, 28, 0.4); color: var(--red); }
button.ghost { background: var(--surface-2); }
button.small { padding: 6px 12px; font-size: 0.78rem; min-height: 34px; }
button.big { padding: 15px 30px; font-size: 1rem; min-height: 52px; }
.link-button { background: none; border: none; padding: 0; min-height: 0; color: var(--cyan); border-radius: 0; }
.link-button:hover { border: none; text-decoration: underline; }

input, textarea, select {
  width: 100%;
  font: inherit;
  font-family: var(--mono);
  /* 16px keeps iOS from zooming the page when a field is focused. */
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12); }
textarea { resize: vertical; }
label { display: block; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-faint); margin-bottom: 6px; }

.field { margin: 14px 0; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.search-bar { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.search-bar input { flex: 1; }

/* ── Data display ──────────────────────────────────────────────────────── */

.kv { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 0; }
.kv dt { color: var(--text-faint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 10px; }
.kv dd { margin: 0; font-size: 0.94rem; overflow-wrap: anywhere; }

.table-wrap { position: relative; overflow-x: auto; margin-top: 12px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
th { text-align: left; padding: 10px 12px; color: var(--text-faint); font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; background: var(--surface-2); }
td { padding: 10px 12px; border-top: 1px solid var(--line-soft); font-family: var(--mono); font-size: 0.83rem; }
tr:hover td { background: rgba(20, 24, 31, 0.015); }

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.7rem;
  font-family: var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--text-dim);
  background: var(--surface);
}
.badge-ok { border-color: rgba(21, 128, 61, 0.4); color: var(--green); background: rgba(21, 128, 61, 0.06); }
.badge-warn { border-color: rgba(161, 98, 7, 0.4); color: var(--amber); background: rgba(161, 98, 7, 0.07); }
.badge-bad { border-color: rgba(185, 28, 28, 0.4); color: var(--red); background: rgba(185, 28, 28, 0.06); }
.badge-neutral { border-color: var(--line); color: var(--text-dim); }

.code {
  background: #f8fafc;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: #0f172a;
  margin: 12px 0;
}
.phrase { font-family: var(--mono); letter-spacing: 0.08em; }
.address { overflow-wrap: anywhere; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }

/* ── Mining / wallet specifics ─────────────────────────────────────────── */

.claim-card { border-color: rgba(180, 83, 9, 0.3); background: linear-gradient(180deg, #fffbeb, #ffffff); }
.claim-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.balance-box { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line-soft); }
.balance-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.balance { font-family: var(--mono); font-size: 1.55rem; color: var(--gold); overflow-wrap: anywhere; }

/* ── Toast host ────────────────────────────────────────────────────────── */

.toast-host { position: fixed; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 10px; z-index: 60; }
.toast {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
  animation: toast-in 0.18s ease-out;
}
.toast-success { border-left-color: var(--green); }
.toast-error { border-left-color: var(--red); }
.toast-out { opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease, transform 0.4s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.loading { display: flex; align-items: center; gap: 10px; color: var(--text-faint); font-size: 0.9rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); animation: pulse 1.1s infinite ease-in-out; }
@keyframes pulse { 0%, 100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.1); } }

/* ── Footer ────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line-soft);
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 16px 44px;
  display: flex; flex-direction: column; gap: 16px;
  color: var(--text-faint);
  font-size: 0.84rem;
}
.footer p { margin: 0 0 6px; max-width: 68ch; }
.footer-links { display: grid; gap: 6px; align-content: start; }

/* ── Node runners ─────────────────────────────────────────────────────────
   The revenue split is the page's one diagram: two branches off one number,
   so an operator can see where the 90% comes from before reading a table. */
.split-flow { display: grid; gap: 14px; margin: 18px 0 22px; }
.flow-node {
  display: grid; gap: 4px; justify-items: center; text-align: center;
  padding: 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface-2);
}
.flow-label { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.flow-branches { display: grid; grid-template-columns: 1fr; gap: 14px; }
.flow-branch {
  position: relative; display: grid; gap: 6px; justify-items: center; text-align: center;
  padding: 18px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.flow-share { font-size: 1.5rem; font-weight: 700; color: var(--gold); line-height: 1; }
.big { font-size: 1.3rem; }

.score-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.score-row { display: grid; grid-template-columns: 1fr; gap: 4px; align-items: center; margin: 10px 0; }
.score-label { font-size: 0.82rem; color: var(--text-dim); }
.score-track { height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-soft); overflow: hidden; }
.score-fill { display: block; height: 100%; background: var(--gold); }
.score-value { font-size: 0.82rem; color: var(--text); }
.reasons { margin: 10px 0 0; padding-left: 18px; color: var(--text-dim); font-size: 0.85rem; }
.reasons li { margin: 4px 0; }
.settlement { border-top: 1px solid var(--line-soft); padding-top: 14px; margin-top: 14px; }
.steps { margin: 10px 0 14px; padding-left: 20px; color: var(--text-dim); }
.steps li { margin: 8px 0; }

/* ── Account access: tabs, recovery codes, MFA ─────────────────────────── */
.tabs {
  display: flex;
  gap: 6px;
  margin: 18px 0 16px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--surface-2);
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}
.tabs .tab {
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.9rem;
  padding: 8px 16px;
  min-height: 40px;
  border-radius: 999px;
  cursor: pointer;
}
.tabs .tab:hover { color: var(--text); }
.tabs .tab.active { color: #ffffff; background: var(--gold); font-weight: 600; }
form.stack { display: flex; flex-direction: column; gap: 14px; }
.notice.danger {
  border-color: rgba(185, 28, 28, 0.35);
  background: rgba(185, 28, 28, 0.04);
}
.codegrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 16px 0;
}
.recovery-code {
  display: block;
  padding: 11px 13px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--gold);
  letter-spacing: 0.04em;
  text-align: center;
  user-select: all;
}
.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 4px;
  color: var(--text-dim);
  cursor: pointer;
}
.checkline input { width: 17px; height: 17px; accent-color: var(--gold); }
.breakable { overflow-wrap: anywhere; word-break: break-all; }

/* ── Wider screens ─────────────────────────────────────────────────────────
   Everything above is the phone layout. These queries only add room; no rule
   here changes what a page says or which controls it offers. */

@media (max-width: 720px) {
  /* Stop pinning the header on a short screen: it scrolls away like the rest. */
  .masthead { position: static; }
}

@media (min-width: 560px) {
  .masthead-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: 'brand headline actions';
    padding: 16px 20px 12px;
  }
  .masthead-inner .brand { grid-area: brand; }
  .masthead-inner .headline { grid-area: headline; grid-column: auto; }
  .masthead-actions { grid-area: actions; }
  .headline h1 { font-size: 1.05rem; }
  .page { padding: 28px 20px 72px; gap: 20px; }
  .card, .subcard, .notice, .hero, .pillar, .chain-card, .country-card { padding: 22px 24px; }
  .hero { padding: 36px 32px; }
  .hero h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
  .stat-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
  .pillars { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .search-bar { flex-direction: row; align-items: center; }
  .kv { grid-template-columns: minmax(150px, 230px) 1fr; gap: 6px 18px; }
  .kv dt { margin-top: 0; }
  .flow-branches { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .score-row { grid-template-columns: minmax(160px, 1fr) 2fr auto; gap: 12px; margin: 6px 0; }
  .codegrid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  .toast-host { left: auto; right: 18px; bottom: 18px; max-width: min(420px, 90vw); }
  .footer { flex-direction: row; justify-content: space-between; padding: 26px 20px 48px; }
  .masthead.menu-open .nav { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px; }
  .masthead.menu-open .nav-link { flex-direction: column; align-items: flex-start; }
  .masthead.menu-open .nav-blurb { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Mining gate: the page says which of the three requirements is still open. */
[hidden] { display: none !important; }
.gate-steps { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 6px; }
.gate-steps li { font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
/* Drawn, not typed: a check glyph is missing from some system fonts and the marker is the whole point. */
.gate-steps li::before { content: ''; flex: none; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--text-faint, #9aa3af); }
.gate-steps .step-done::before { border-color: #2f855a; background: #2f855a radial-gradient(circle at 50% 50%, #fff 0 28%, transparent 30%); }
.gate-steps .step-done { color: var(--text); }
.gate-steps .step-todo { color: var(--text-dim); }
.claim-card .as-link, .claim-card button.primary { margin-top: 6px; }

/* ── Long identifiers and long numbers ─────────────────────────────────────
   A flex or grid child will not shrink below its content unless it is told it may (min-width: 0), which is how one
   long address or amount used to push a card wider than the phone. Wrapping is allowed everywhere a value can be
   long; `overflow-x: hidden` on the body stays as the last resort, not the plan. */
.page > *, .card > *, .subcard > *, .kv > *, .row > *, .stat, .stat > *, .balance-box > *, .claim-head > * { min-width: 0; }
.kv dd, .stat strong, .balance, .balance-box, td, .address { overflow-wrap: anywhere; }
.balance { font-size: clamp(1.1rem, 5.4vw, 1.55rem); }
.stat strong { font-size: clamp(0.98rem, 4.2vw, 1.15rem); }

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

.idv { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; max-width: 100%; min-width: 0; vertical-align: middle; }
.idv-text { min-width: 0; max-width: 100%; overflow-wrap: anywhere; cursor: default; }
.idv-text[role="button"] { cursor: pointer; border-radius: 4px; }
.idv-text[role="button"]:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
/* Phone: the short form. 720 px and up: the longer form. Detail, or tapped open: the whole value, wrapping. */
.idv-m, .idv-f { display: none; }
@media (min-width: 720px) {
  .idv-s { display: none; }
  .idv-m { display: inline; }
}
.idv-detail .idv-s, .idv-detail .idv-m, .idv-open .idv-s, .idv-open .idv-m { display: none; }
.idv-detail .idv-f, .idv-open .idv-f { display: inline; overflow-wrap: anywhere; word-break: break-all; }
.idv-copy { padding: 4px 10px; font-size: 0.74rem; line-height: 1.4; min-height: 30px; border-radius: 6px; border: 1px solid var(--line-soft); background: var(--surface-2); color: var(--text-dim); cursor: pointer; font-family: var(--sans); }
.idv-copy:hover { color: var(--text); }
.idv-copy:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
