:root {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #f4f3ed;
  background: #0b0c0c;
  --bg: #0b0c0c;
  --panel: #121414;
  --paper: #f4f1e9;
  --ink: #111313;
  --muted: #8f9692;
  --line: #303634;
  --cream: #f4f1e9;
  --green: #64d99a;
  --red: #ff756d;
  --shadow: #050606;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
}
.grid-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
.shell {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 28px 52px;
}
.masthead {
  border-bottom: 1px solid var(--line);
  padding-bottom: 48px;
}
.topline,
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 58px;
}
.brand-logo { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--line); background: var(--cream); }
.mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  background: var(--cream);
  color: var(--ink);
  font:
    800 1.7rem Georgia,
    serif;
}
.eyebrow,
.step,
.meta-label,
.optional {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
}
h1 {
  margin: 5px 0 0;
  color: #fff;
  font-size: clamp(3.5rem, 12vw, 8.6rem);
  line-height: 0.8;
  letter-spacing: -0.1em;
}
.account-link { color: #b9c5be; font-size: .68rem; letter-spacing: .08em; text-decoration: none; }
.account-link:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.result-account { display: block; margin-top: 8px; }
.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 40px;
  align-items: end;
  margin-top: 66px;
}
h2 {
  margin: 9px 0 0;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  text-wrap: balance;
  max-width: 16ch;
}
h2 em {
  color: var(--muted);
  font-style: normal;
}
p {
  color: #b5bbb7;
  line-height: 1.65;
  max-width: 480px;
}
.workbench,
.result {
  margin-top: 28px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 8px 8px 0 var(--shadow);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-size: 1.5rem;
  letter-spacing: -0.05em;
}
.network-badge {
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
}
.network-badge small {
  color: #b4bbb6;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}
.live-dot {
  color: var(--green);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.live-dot::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 8px 1px 0;
  border-radius: 50%;
  background: currentColor;
}
.notice {
  margin: 24px 0;
  padding: 14px 16px;
  border-left: 2px solid var(--green);
  color: #b5bbb7;
  font-size: 0.78rem;
  line-height: 1.6;
}
.example {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  padding: 10px 12px;
  border-color: #5d6863;
  background: transparent;
  color: var(--cream);
  font-size: 0.68rem;
}
.example span {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 400;
}
.example:hover {
  background: #1c211f;
  color: var(--cream);
}
.notice strong {
  color: var(--cream);
}
form {
  display: grid;
  gap: 18px;
}
.field {
  display: grid;
  gap: 8px;
}
label {
  color: #d7dcd8;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}
.required {
  color: var(--cream);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}
input,
textarea {
  width: 100%;
  border: 1px solid #3c4441;
  border-radius: 0;
  background: #0c0e0e;
  color: #f4f3ed;
  padding: 14px;
  font: inherit;
  font-size: 0.85rem;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #7b8580;
}
input:focus,
textarea:focus {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
  border-color: var(--cream);
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 8px;
  color: #a3aaa5;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}
button,
.download {
  border: 1px solid var(--cream);
  border-radius: 0;
  padding: 15px 18px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
button:hover,
.download:hover {
  background: #cdd1ca;
}
button:focus-visible,
.download:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
.status {
  min-height: 20px;
  margin-top: 18px;
  color: #b5bbb7;
  font-size: 0.78rem;
  line-height: 1.5;
}
.status.error {
  color: var(--red);
}
.card-stage {
  margin: 28px 0;
  padding: 18px;
  background: #080909;
  border: 1px solid var(--line);
}
.result img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}
.result-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
.result-meta > div {
  min-width: 0;
  display: grid;
  gap: 8px;
}
.result-meta a:not(.download) {
  overflow: hidden;
  color: var(--cream);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.download {
  white-space: nowrap;
  font-size: 0.72rem;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.secondary-action {
  background: transparent;
  color: var(--cream);
}
.summary {
  padding: 20px 0;
}
.summary-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}
.verdicts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  padding: 8px 10px;
  border: 1px solid currentColor;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}
.verified {
  color: var(--green);
}
.disputed {
  color: var(--red);
}
.unverifiable {
  color: #c7cbc7;
}
.summary-note {
  margin: 15px 0 0;
  font-size: 0.78rem;
}
.secondary {
  width: 100%;
  background: transparent;
  color: var(--cream);
}
footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
@media (max-width: 700px) {
  .shell {
    padding: 20px 16px 40px;
  }
  .brand-row {
    margin-top: 42px;
  }
  .brand-logo { width: 52px; height: 52px; }
  .hero-copy {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 48px;
  }
  .workbench,
  .result {
    padding: 20px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .form-foot,
  .result-meta {
    align-items: stretch;
    flex-direction: column;
  }
  .form-foot button,
  .download {
    width: 100%;
  }
  .result-actions {
    display: grid;
    width: 100%;
  }
  .network-badge {
    justify-items: start;
    text-align: left;
  }
  .topline,
  footer {
    font-size: 0.62rem;
  }
  footer {
    flex-direction: column;
    gap: 8px;
  }
}
