/* PermaData launcher — v2. Dark, typographic, one accent. System fonts only.
 * Matches the site-v2 visual language (shared header/nav, same tokens). */

:root {
  --bg: #0b0c0f;
  --bg-elev: #111318;
  --bg-code: #0f1114;
  --fg: #e9eaee;
  --muted: #9aa1ac;
  --dim: #6b727d;
  --accent: #53dcf4;
  --accent-ink: #0b0c0f;
  --border: #23262d;
  --border-strong: #2e323b;
  --radius: 6px;
  --maxw: 880px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.mono, code { font-family: var(--mono); }

/* ── header / nav (shared with the rest of the site) ───────────────────── */
.site-head { border-bottom: 1px solid var(--border); padding: 20px 0; }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 16px;
}
.wordmark { font-family: var(--mono); font-size: 14px; letter-spacing: 0.14em; font-weight: 700; color: var(--fg); white-space: nowrap; }
.wordmark:hover { text-decoration: none; }
.wordmark .accent { color: var(--accent); }
.site-head .nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; margin-left: auto; }
.site-head .nav a { color: var(--muted); font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; padding: 10px 2px; display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.site-head .nav a:hover { color: var(--fg); text-decoration: none; }
.site-head .tag { color: var(--dim); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; white-space: nowrap; }

/* ── hero ─────────────────────────────────────────────── */
.preview-banner {
  display: flex; flex-direction: column; gap: 2px;
  margin-top: 20px; padding: 14px 16px;
  border: 1px solid #f0b27a; border-left: 3px solid #f0b27a;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-elev); color: var(--muted);
  font-size: 14px; line-height: 1.55;
}
.preview-banner[hidden] { display: none; }
.preview-banner strong { color: #f0b27a; letter-spacing: 0.01em; }
.hero { padding: 52px 0 12px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--accent); text-transform: uppercase; margin: 0 0 16px; }
.hero h1 { font-size: clamp(30px, 5.5vw, 46px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 800; }
.lede { font-size: clamp(16px, 2.4vw, 19px); line-height: 1.5; color: var(--muted); margin: 0; max-width: 44em; font-weight: 400; }

/* ── stepper ──────────────────────────────────────────── */
.stepper { margin: 28px 0 8px; }
.stepper ol { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; flex-wrap: wrap; }
.step-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em;
  color: var(--dim); padding: 8px 14px 8px 8px; border: 1px solid var(--border);
  border-radius: 999px; min-height: 44px;
}
.step-item .n { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-elev); border: 1px solid var(--border-strong); font-family: var(--mono); font-size: 13px; }
.step-item.active { color: var(--fg); border-color: var(--accent); }
.step-item.active .n { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.step-item.done { color: var(--muted); }
.step-item.done .n { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ── screens ──────────────────────────────────────────── */
.screen { padding: 20px 0 8px; max-width: 640px; }
.screen[hidden] { display: none; }
.screen-title { font-size: clamp(20px, 3vw, 25px); letter-spacing: -0.01em; margin: 0 0 8px; font-weight: 750; }
.sub { color: var(--muted); margin: 0 0 22px; max-width: 44em; }
.sub strong { color: var(--fg); }

.field-label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin: 22px 0 6px; }
.field-label .req { color: var(--accent); text-transform: none; letter-spacing: 0; }
.field-label .opt { color: var(--dim); text-transform: none; letter-spacing: 0; font-size: 10px; }

.field {
  display: block; width: 100%; background: var(--bg-code);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  color: var(--fg); font-family: var(--mono); font-size: 14px;
  padding: 13px 14px; min-height: 46px;
}
.field::placeholder { color: var(--dim); }
.field:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.field.textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.field.select { appearance: none; cursor: pointer; }
.field.invalid { border-color: #f0a27a; }

.counter { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-top: 6px; }
.counter.over { color: #f0a27a; }

.err { color: #f0a27a; font-size: 13.5px; margin: 8px 0 0; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }

/* ── dropzone / file row ──────────────────────────────── */
.dropzone {
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  background: var(--bg-code); padding: 28px 18px; text-align: center; cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--bg-elev); }
.dropzone:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dz-inner { display: flex; flex-direction: column; gap: 6px; }
.dz-strong { color: var(--fg); font-weight: 600; }
.dz-mono { font-family: var(--mono); font-size: 12px; color: var(--dim); }

.file-row {
  display: flex; align-items: center; gap: 14px; background: var(--bg-elev);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 14px 16px; margin-top: 14px;
}
.file-row[hidden] { display: none; }
.file-row .ficon { font-size: 22px; flex-shrink: 0; }
.file-row .finfo { flex: 1; min-width: 0; }
.file-row .fname { font-weight: 600; word-break: break-all; }
.file-row .fmeta { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.file-row .fremove {
  flex-shrink: 0; border: 1px solid var(--border-strong); background: transparent;
  color: var(--muted); border-radius: var(--radius); font-family: var(--mono);
  font-size: 12px; padding: 10px 12px; min-height: 44px; cursor: pointer;
}
.file-row .fremove:hover { color: var(--fg); border-color: var(--accent); }

.tier-readout { font-family: var(--mono); font-size: 14px; color: var(--fg); background: var(--bg-code); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 13px 14px; min-height: 46px; }
.hint { color: var(--dim); font-size: 13px; margin: 8px 0 0; }
.badge { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--border-strong); border-radius: 4px; padding: 3px 8px; white-space: nowrap; }
.badge.ship { color: var(--muted); }

/* ── toggles ──────────────────────────────────────────── */
.toggles { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.toggle { display: flex; align-items: center; gap: 12px; background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 14px 16px; min-height: 52px; cursor: pointer; }
.toggle.disabled { opacity: 0.55; cursor: not-allowed; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.track { width: 40px; height: 22px; border-radius: 999px; background: var(--bg-code); border: 1px solid var(--border-strong); position: relative; flex-shrink: 0; transition: background 120ms ease; }
.track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--dim); transition: transform 120ms ease, background 120ms ease; }
.toggle input:checked + .track { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + .track::after { transform: translateX(18px); background: var(--accent-ink); }
.tg-label { font-size: 14.5px; color: var(--fg); }
.tg-label .opt { color: var(--dim); font-size: 12.5px; }

/* ── review card / cost box ───────────────────────────── */
.stamp-card { background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 24px; }
.review-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.stamp-title { font-size: 17px; font-weight: 700; word-break: break-word; }
.stamp-status { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--border-strong); border-radius: 4px; padding: 3px 8px; white-space: nowrap; }

.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.spec { background: var(--bg); padding: 14px 14px; min-width: 0; }
.spec .k { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.spec .v { font-family: var(--mono); font-size: 13.5px; color: var(--fg); word-break: break-word; }
@media (max-width: 560px) { .specs { grid-template-columns: 1fr 1fr; } }

.label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); display: block; margin: 20px 0 6px; }

.cost-box { background: var(--bg-code); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 16px; }
.cost-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cost-line:last-child { border-bottom: 0; }
.cost-line .ck { color: var(--muted); font-size: 14px; }
.cost-line .ck .opt { color: var(--dim); font-size: 12px; }
.cost-line .cv { font-family: var(--mono); font-size: 14px; color: var(--fg); text-align: right; white-space: nowrap; }
.cost-line.total { border-top: 1px solid var(--border-strong); margin-top: 4px; }
.cost-line.total .ck { color: var(--fg); font-weight: 700; }
.cost-line.total .cv { color: var(--accent); font-size: 18px; font-weight: 700; }

/* ── callout / warn / confirm ─────────────────────────── */
.callout { border: 1px solid var(--border-strong); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--bg-elev); padding: 20px 22px; margin: 0 0 16px; }
.callout p { margin: 0 0 12px; color: var(--muted); }
.callout p:last-child { margin-bottom: 0; }
.callout p strong { color: var(--fg); }
.callout .big { font-size: 17px; color: var(--fg); font-weight: 700; }
.callout.warn-amber { border-left-color: #f0b27a; }

.warn { border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 14px 16px; font-size: 14px; color: var(--muted); background: var(--bg-elev); margin-top: 16px; }

.confirm { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; padding: 16px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--bg-code); cursor: pointer; }
.confirm input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; accent-color: var(--accent); cursor: pointer; }
.confirm-label { font-size: 14.5px; color: var(--muted); }
.confirm-label strong { color: var(--fg); }

.type-count { margin-top: 16px; padding: 16px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--bg-code); }
.type-count .field-label { margin-top: 0; }

/* ── launch route (screen 4) ──────────────────────────── */
.launch-route { margin-top: 20px; padding: 18px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--bg-elev); }
.launch-route .label { margin-top: 0; }
.toggle.is-disabled { opacity: 0.55; cursor: not-allowed; }
.tg-label { display: flex; flex-direction: column; gap: 1px; }
.tg-label .tg-strong { font-weight: 600; }
.tg-label .tg-meta { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.rpc-paths { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.rpc-paths.muted { opacity: 0.45; }
.rpc-opt { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--muted); font-size: 14.5px; }
.rpc-opt input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.rpc-opt .opt { color: var(--dim); font-size: 12px; }
.rpc-paths .field { margin-top: 2px; }
.rpc-paths .field:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── launch progress (screen 5) ───────────────────────── */
.progress-card { margin-bottom: 8px; }
.progress-card .review-head { margin-bottom: 14px; }
.progress-bar { height: 10px; border-radius: 999px; background: var(--bg-code); border: 1px solid var(--border); overflow: hidden; margin: 4px 0 14px; }
.progress-fill { height: 100%; width: 0%; background: var(--accent); border-radius: 999px; transition: width 300ms ease; }
.lane-status { font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding: 10px 12px; background: var(--bg-code); border: 1px solid var(--border); border-radius: var(--radius); word-break: break-word; }

/* ── buttons ──────────────────────────────────────────── */
.dl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-family: var(--mono); font-size: 14px; letter-spacing: 0.02em; padding: 14px 22px; min-height: 46px; border-radius: var(--radius); border: 0; cursor: pointer; }
.dl-btn:hover { filter: brightness(1.06); }
.dl-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.ghost-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--mono); font-size: 14px; padding: 12px 20px; min-height: 46px; border-radius: var(--radius); border: 1px solid var(--border-strong); color: var(--muted); background: transparent; cursor: pointer; }
.ghost-btn:hover { color: var(--fg); border-color: var(--accent); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; align-items: center; }

/* ── royalties tab (screen 4) ─────────────────────────── */
.slider-row { margin: 22px 0 0; }
.slider-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.slider-head .field-label { margin: 0; }
.slider-val { font-family: var(--mono); font-size: 14px; color: var(--accent); font-weight: 700; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 999px;
  background: var(--bg-code); border: 1px solid var(--border-strong);
  outline: none; margin: 14px 0 4px; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--accent-ink);
  box-shadow: 0 0 0 1px var(--accent); cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--accent-ink); cursor: grab;
}
input[type="range"]:disabled { opacity: 0.4; cursor: not-allowed; }
input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.slider-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--dim); }

.preview-box {
  background: var(--bg-code); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; margin-top: 24px;
}
.preview-box .label { margin: 0 0 8px; }
.preview-line { font-size: 14.5px; color: var(--fg); margin: 0 0 8px; line-height: 1.55; }
.preview-line:last-of-type { margin-bottom: 0; }
.preview-box .warn { margin-top: 10px; }

.immutable-copy {
  margin-top: 18px; padding: 14px 16px;
  border: 1px solid var(--border-strong); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-elev); color: var(--muted); font-size: 14px; line-height: 1.55;
}

/* ── screen nav ───────────────────────────────────────── */
.screen-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 28px 0 8px; max-width: 640px; border-top: 1px solid var(--border); margin-top: 8px; }
.nav-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ── footer ───────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 40px 0 64px; color: var(--dim); }
footer .mono { font-family: var(--mono); font-size: 13px; }
footer .row { margin: 8px 0; }
footer .row a { color: var(--muted); }
footer .row a:hover { color: var(--fg); }

/* ── wallet connect (header chip + creator lock) ─────────────────────── */
.wallet { position: relative; flex-shrink: 0; }
.wallet-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-elev); border: 1px solid var(--border-strong);
  color: var(--fg); border-radius: 999px; padding: 7px 14px; min-height: 40px;
  font-family: var(--mono); font-size: 12.5px; cursor: pointer; white-space: nowrap;
  max-width: 100%; transition: border-color 120ms ease, background 120ms ease;
}
.wallet-chip:hover { border-color: var(--accent); }
.wallet-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wallet-chip.connected { border-color: var(--accent); }
.wallet-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex-shrink: 0; }
.wallet-dot.on { background: #34d399; }
.wallet-label { color: var(--fg); overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.wallet-preview {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: #f0b27a; border: 1px solid #f0b27a; border-radius: 4px; padding: 2px 6px;
  white-space: nowrap; flex-shrink: 0;
}
.wallet-preview[hidden] { display: none; }
.wallet-chip.connected .wallet-label { color: var(--accent); }
.wallet-addr { color: var(--muted); }
.wallet-bal { color: var(--dim); }
.wallet-close { color: var(--dim); }
.wallet-chip:hover .wallet-close { color: var(--muted); }

.wallet-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 224px; background: var(--bg-elev); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 8px; box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}
.wallet-menu-title {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); margin: 0 0 6px; padding: 0 8px 6px;
}
.wallet-list { display: flex; flex-direction: column; gap: 2px; }
.wallet-opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: transparent; border: 0; border-radius: var(--radius);
  color: var(--fg); font-size: 14px; padding: 10px 8px; cursor: pointer; text-align: left;
}
.wallet-opt:hover { background: var(--bg-code); }
.wallet-opt-icon { width: 20px; height: 20px; border-radius: 50%; background: var(--bg-code); flex-shrink: 0; object-fit: cover; }
.wallet-opt-icon.placeholder { display: inline-block; }
.wallet-opt-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wallet-install {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  width: 280px; background: var(--bg-elev); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 16px; box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}
.wallet-install-title { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.wallet-install-copy { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.wallet-install-copy a { color: var(--accent); }
.wallet-install-close { width: 100%; }

.wallet-err {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  max-width: 300px; background: var(--bg-elev); border: 1px solid #f0a27a;
  border-radius: var(--radius); padding: 10px 12px; font-size: 12.5px; color: #f0a27a;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
}
.wallet-retry {
  background: transparent; border: 1px solid var(--border-strong); color: var(--fg);
  font-family: var(--mono); font-size: 12px; border-radius: 4px; padding: 4px 12px; cursor: pointer;
}
.wallet-retry:hover { border-color: var(--accent); }

/* ── creator wallet lock + alternate-creator toggle ──────────────────── */
.creator-lock-badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; text-transform: none;
  color: var(--accent); border: 1px solid var(--border-strong); border-radius: 4px;
  padding: 2px 6px; margin-left: 6px; white-space: nowrap;
}
.field.locked { color: var(--muted); background: var(--bg-elev); cursor: not-allowed; }
.alt-creator-toggle { margin-top: 12px; }
.creator-status { margin-top: 8px; }

/* ── review signer disclosure ──────────────────────────────────────────── */
.signer-disclosure { margin-bottom: 16px; }

/* ── responsive ───────────────────────────────────────── */
@media (max-width: 720px) {
  .site-head .nav { order: 3; width: 100%; margin-left: 0; gap: 4px 14px; }
  .site-head .nav a { padding: 8px 2px; min-height: 44px; }
  .site-head .tag { display: none; }
  .hero { padding: 42px 0 10px; }
  .step-item { font-size: 11.5px; padding: 7px 10px 7px 7px; }
  .wallet-chip.connected .wallet-label { display: none; }
  .wallet-bal { display: none; }
}
@media (max-width: 420px) {
  .specs { grid-template-columns: 1fr; }
}

/* ── creator-pays launch: signing walk + escrow + failure ─────────────── */
.sign-card .review-head { margin-bottom: 14px; }

.sign-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sign-step {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg);
}
.sign-step[data-state="active"] { border-color: var(--accent); background: var(--bg-elev); }
.sign-step[data-state="done"] { border-color: var(--border-strong); }
.sign-step[data-state="done"] .sign-step-num { background: var(--accent); color: var(--accent-ink); }
.sign-step[data-state="pending"] { opacity: 0.55; }
.sign-step-num {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  border: 1px solid var(--border-strong); color: var(--muted); background: var(--bg-elev);
}
.sign-step-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sign-step-body strong { font-size: 14.5px; color: var(--fg); font-weight: 700; }
.sign-step-sig { font-size: 11.5px; color: var(--dim); word-break: break-all; }
.sign-status-line { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 0 0 16px; }

.escrow-card { margin-top: 16px; }
.failure-card { border-left-color: #e6c06a; }
.failure-card .failure-detail { font-size: 13px; color: var(--dim); display: block; width: 100%; }
.failure-card .cta-row { margin-top: 12px; }
