/* SPDX-License-Identifier: Apache-2.0
   origin-web — instrument-panel aesthetic.
   Type: Space Grotesk (display) / IBM Plex Sans (body) / IBM Plex Mono (data).
   All fonts self-hosted — this page makes zero external requests. */

/* ── Fonts ─────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-var.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-var.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

/* ── Tokens ────────────────────────────────────────────────────────── */
:root {
  --bg: #0a0f0d;
  --panel: #0f1714;
  --panel-2: #131d18;
  --ink: #e8efe9;
  --dim: #8a978f;
  --faint: #5c6a62;
  --line: rgba(232, 239, 233, 0.10);
  --line-strong: rgba(232, 239, 233, 0.22);
  --green: #41d98d;
  --green-dim: rgba(65, 217, 141, 0.14);
  --amber: #f0b429;
  --amber-dim: rgba(240, 180, 41, 0.12);
  --blue: #5aa9e6;
  --red: #f2555a;
  --red-dim: rgba(242, 85, 90, 0.12);
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Layered ambient background: fine grid + two soft glows */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 12% -5%, rgba(65, 217, 141, 0.07), transparent 60%),
    radial-gradient(700px 500px at 95% 15%, rgba(90, 169, 230, 0.05), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(232, 239, 233, 0.022) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(232, 239, 233, 0.022) 39px 40px),
    var(--bg);
}

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

main { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ── Integrity console (pinned) ────────────────────────────────────── */
.console {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(10, 15, 13, 0.92);
  border-bottom: 1px solid var(--line);
  padding: 9px 28px 7px;
  font-family: var(--mono);
  font-size: 12px;
}
.console-row {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--dim);
}
.c-item b { color: var(--ink); font-weight: 600; margin-left: 5px; }
.c-item.ok b { color: var(--green); }
.c-item.bad b { color: var(--red); }
.console-detail {
  max-width: 1120px;
  margin: 2px auto 0;
  font-size: 11px;
  color: var(--faint);
  min-height: 14px;
}
.console-detail.bad { color: var(--red); }
body { padding-top: 62px; }

/* ── Opening ───────────────────────────────────────────────────────── */
.opening {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
  padding: 84px 0 72px;
}
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.22em;
}
.wordmark.small { font-size: 14px; }
.wm-suffix { color: var(--green); letter-spacing: 0.05em; }

.headline {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 26px 0 24px;
}
.hl-line { display: block; }
.hl-big { color: var(--green); font-size: 1.12em; }

.lede {
  color: var(--dim);
  font-size: 16.5px;
  max-width: 56ch;
}
.lede strong { color: var(--ink); font-weight: 600; }
.lede em { color: var(--ink); font-style: normal; border-bottom: 1px solid var(--green); }

.cta-row { display: flex; gap: 14px; margin: 30px 0 22px; flex-wrap: wrap; }

.exp-note {
  font-size: 12.5px;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid rgba(240, 180, 41, 0.3);
  border-radius: 3px;
  padding: 8px 12px;
  max-width: 56ch;
  line-height: 1.5;
}
.exp-note a { color: var(--amber); }

/* Envelope artifact */
.envelope-art {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: art-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both 0.25s;
}
@keyframes art-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.ea-head, .ea-foot {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}
.ea-head { border-bottom: 1px solid var(--line); }
.ea-foot { border-top: 1px solid var(--line); color: var(--green); }
.ea-tag { color: var(--green); letter-spacing: 0.12em; }
.ea-body {
  padding: 14px;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--faint);
  min-height: 190px;
  word-break: break-all;
  position: relative;
}
.ea-body .hot { color: var(--green); }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 9px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.btn:hover:not(:disabled) {
  border-color: var(--green);
  background: var(--green-dim);
  transform: translateY(-1px);
}
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-solid {
  background: var(--green);
  border-color: var(--green);
  color: #06130c;
  font-weight: 600;
}
.btn-solid:hover { background: #5ce6a2; border-color: #5ce6a2; }
.btn-ghost { color: var(--dim); }
.btn.busy { pointer-events: none; opacity: 0.75; }
.btn.busy::before {
  content: "";
  width: 11px; height: 11px;
  border: 2px solid var(--green);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Ledger ────────────────────────────────────────────────────────── */
.ledger {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  margin-bottom: 72px;
}
.ledger-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.ledger-head h2 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ledger-sub { font-size: 12.5px; color: var(--faint); }
.ledger-body { padding: 6px 0; }
.ledger-empty {
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faint);
}
.ledger-row {
  display: grid;
  grid-template-columns: 74px 1fr auto auto auto;
  gap: 14px;
  align-items: baseline;
  padding: 7px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  border-bottom: 1px solid rgba(232, 239, 233, 0.05);
  animation: row-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.ledger-row:last-child { border-bottom: none; }
@keyframes row-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}
.lr-time { color: var(--faint); }
.lr-op { color: var(--ink); }
.lr-ms, .lr-net, .lr-store { color: var(--dim); white-space: nowrap; }
.lr-net.zero, .lr-store.zero { color: var(--green); }

/* ── Scenarios ─────────────────────────────────────────────────────── */
.scenarios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 88px;
}
.scenario {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px 22px 18px;
  transition: border-color 0.2s, transform 0.2s;
}
.scenario:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.sc-head { display: flex; gap: 16px; margin-bottom: 18px; }
.sc-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--faint);
}
.scenario:hover .sc-num { -webkit-text-stroke-color: var(--green); }
.sc-head h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.sc-head p { font-size: 12.5px; color: var(--faint); margin-top: 2px; }

.sc-label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 12px 0 5px;
}
input[type="text"], input[type="password"], textarea {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  padding: 9px 11px;
  resize: vertical;
  transition: border-color 0.15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--green); }

.sc-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.hint { font-size: 11.5px; color: var(--faint); }

/* Shard chips */
.shards { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.shard-chip {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 6px 10px;
  border: 1px solid var(--green);
  border-radius: 3px;
  color: var(--green);
  background: var(--green-dim);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.shard-chip:hover { transform: translateY(-1px); }
.shard-chip.lost {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-dim);
  text-decoration: line-through;
  opacity: 0.65;
}

/* Receipts */
.receipt {
  display: none;
  margin-top: 16px;
  background: #0b110e;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 3px;
  padding: 13px 15px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
  animation: receipt-in 0.3s ease both;
}
@keyframes receipt-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.receipt.show { display: block; }
.receipt .k { color: var(--green); }
.receipt .ok { color: var(--green); font-weight: 600; }
.receipt .bad { color: var(--red); font-weight: 600; }
.receipt .dim { color: var(--faint); }
.receipt .proof {
  display: block;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  color: var(--dim);
  font-size: 11px;
}
.receipt .proof b { color: var(--green); font-weight: 600; }

/* Entropy metric bars */
.metric {
  display: grid;
  grid-template-columns: 150px 1fr 64px;
  gap: 10px;
  align-items: center;
  margin: 7px 0 2px;
}
.metric .name { color: var(--dim); font-size: 12px; }
.metric .bar {
  height: 7px;
  background: var(--panel-2);
  border-radius: 2px;
  overflow: hidden;
}
.metric .bar span {
  display: block;
  height: 100%;
  background: var(--green);
  width: 0;
  transition: width 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.metric .val { color: var(--ink); text-align: right; font-size: 12px; }
.metric-hint { color: var(--faint); font-size: 10.5px; margin: 0 0 6px 160px; }

/* ── Verify ────────────────────────────────────────────────────────── */
.verify { margin-bottom: 96px; }
.verify h2 {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.verify-lede { color: var(--dim); max-width: 62ch; margin-bottom: 30px; }
.v-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.v-row:last-of-type { border-bottom: 1px solid var(--line); }
.v-idx {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  color: transparent;
  -webkit-text-stroke: 1px var(--faint);
}
.v-row h3 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}
.v-row h3 em { color: var(--green); font-style: normal; }
.v-row pre {
  background: #0b110e;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--dim);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
.v-note { font-size: 12.5px; color: var(--faint); margin-top: 9px; }
.v-note a { color: var(--blue); }
.v-status {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 13px;
  padding: 12px 16px;
  border-radius: 3px;
  border: 1px solid var(--line);
  color: var(--dim);
}
.v-status.match { border-color: var(--green); background: var(--green-dim); color: var(--green); }
.v-status.mismatch { border-color: var(--red); background: var(--red-dim); color: var(--red); }

/* ── Footer ────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  padding: 44px 28px 56px;
}
.foot-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
footer p { color: var(--dim); font-size: 13.5px; margin-top: 10px; max-width: 40ch; }
footer code { font-family: var(--mono); color: var(--green); font-size: 12.5px; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links a {
  color: var(--dim);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.15s;
}
.foot-links a:hover { color: var(--green); }
.foot-meta { font-size: 11.5px; color: var(--faint); align-self: start; }

/* ── Scroll reveal ─────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 940px) {
  .opening { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 48px; }
  .scenarios { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .ledger-row { grid-template-columns: 60px 1fr auto; }
  .lr-store { display: none; }
  .metric { grid-template-columns: 110px 1fr 56px; }
  .metric-hint { margin-left: 120px; }
}

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

/* ═══ TOOL UI ═══════════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 28px 40px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(65, 217, 141, 0.3);
  border-radius: 3px;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.hero-sub {
  color: var(--dim);
  font-size: 16px;
  max-width: 60ch;
  margin: 0 auto;
}

/* ── Tabs ──────────────────────────────────────────────────────────── */
.tabs {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}
.tab {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 18px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.tab:hover { color: var(--ink); }
.tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* ── Tool panels ───────────────────────────────────────────────────── */
.tool-panel {
  display: none;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px;
}
.tool-panel.active { display: block; }

.panel-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.panel-header h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
}
.panel-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 3px 10px;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.tool-input { display: flex; flex-direction: column; gap: 14px; }
.tool-output { min-width: 0; }

.output {
  background: #0b110e;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 200px;
  max-height: 480px;
  overflow-y: auto;
}
.output .k { color: var(--green); }
.output .ok { color: var(--green); font-weight: 600; }
.output .bad { color: var(--red); font-weight: 600; }
.output .dim { color: var(--faint); }
.output .proof {
  display: block;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  color: var(--dim);
  font-size: 11px;
}
.output .proof b { color: var(--green); font-weight: 600; }

/* ── Fields ────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 5px; }
.field label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.field-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.inline-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 6px;
}
.num-input {
  width: 52px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  padding: 6px 8px;
  text-align: center;
}
.num-input:focus { outline: none; border-color: var(--green); }

/* ── Buttons (extended) ────────────────────────────────────────────── */
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #06130c;
  font-weight: 600;
}
.btn.primary:hover:not(:disabled) { background: #5ce6a2; border-color: #5ce6a2; }
.btn.small { padding: 5px 10px; font-size: 11.5px; }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.danger:hover:not(:disabled) { background: var(--red-dim); border-color: var(--red); }

/* ── Drop zone ─────────────────────────────────────────────────────── */
.drop-zone {
  border: 2px dashed var(--line-strong);
  border-radius: 4px;
  padding: 32px 20px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--green);
  background: var(--green-dim);
}
.drop-icon { font-size: 28px; color: var(--faint); margin-bottom: 8px; }
.drop-text { font-size: 13.5px; color: var(--dim); }
.drop-link {
  color: var(--green);
  cursor: pointer;
  text-decoration: underline;
}
.drop-hint {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
}

/* ── Vault ─────────────────────────────────────────────────────────── */
.vault-entries { display: flex; flex-direction: column; gap: 12px; }
.vault-add {
  display: flex;
  gap: 8px;
  align-items: center;
}
.vault-add input { flex: 1; }
.vault-list { display: flex; flex-direction: column; gap: 6px; }
.vault-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 12.5px;
}
.vault-name { color: var(--green); font-weight: 600; min-width: 100px; }
.vault-value { flex: 1; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Shard chips (tool version) ────────────────────────────────────── */
.shard-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* ── Ledger panel ──────────────────────────────────────────────────── */
.ledger-panel {
  max-width: 1120px;
  margin: 40px auto 0;
  padding: 0 28px;
}
.ledger-panel .panel-header { margin-bottom: 12px; }

/* ── Verify panel ──────────────────────────────────────────────────── */
.verify-panel {
  max-width: 1120px;
  margin: 40px auto 0;
  padding: 0 28px 72px;
}
.verify-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.verify-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.verify-hash {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
  word-break: break-all;
}
.verify-manifest {
  background: #0b110e;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--dim);
  overflow-x: auto;
}
.v-status {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 13px;
  padding: 12px 16px;
  border-radius: 3px;
  border: 1px solid var(--line);
  color: var(--dim);
}
.v-status.match { border-color: var(--green); background: var(--green-dim); color: var(--green); }
.v-status.mismatch { border-color: var(--red); background: var(--red-dim); color: var(--red); }
.verify-repro { grid-column: 1 / -1; }
.verify-repro pre {
  background: #0b110e;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--dim);
  overflow-x: auto;
}

/* ── Footer (tool version) ─────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--faint);
  flex-wrap: wrap;
  gap: 10px;
}
.footer a { color: var(--green); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ── Console stat items ────────────────────────────────────────────── */
.console-stat {
  display: flex;
  align-items: center;
  gap: 5px;
}
.console-stat .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
}
.console-stat.ok .dot { background: var(--green); }
.console-stat.bad .dot { background: var(--red); }
.console-stat b { color: var(--ink); font-weight: 600; }
.console-label {
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.08em;
}

/* ── Responsive (tool) ─────────────────────────────────────────────── */
@media (max-width: 800px) {
  .tool-grid { grid-template-columns: 1fr; }
  .verify-grid { grid-template-columns: 1fr; }
  .tabs { overflow-x: auto; }
  .tab { white-space: nowrap; padding: 12px 12px; font-size: 12px; }
}
