@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/static/fonts/fraunces.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/jetbrains-mono.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #101210;
  --surface: #171a17;
  --text: #f7f4ed;
  --muted: #c9c1b5;
  --subtle: #8f887f;
  --line: rgba(247, 244, 237, 0.1);
  --line-strong: rgba(247, 244, 237, 0.18);
  --green: #7be07a;
  --green-soft: rgba(123, 224, 122, 0.16);
  --amber: #ffb547;
  --amber-soft: rgba(255, 181, 71, 0.16);
  --red: #ff7468;
  --red-soft: rgba(255, 116, 104, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --sans: "Helvetica Neue", Arial, "Liberation Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(123, 224, 122, 0.08), transparent 360px),
    linear-gradient(140deg, rgba(255, 181, 71, 0.08), transparent 520px),
    var(--bg);
  overflow-x: hidden;
}

button,
input {
  font-family: var(--sans);
}

.strip {
  position: static;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  padding: 0 32px;
  background: rgba(16, 18, 16, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.strip-mark {
  font-weight: 800;
  color: var(--text);
}

.strip-item,
.chapter,
.rubric,
.probe-label,
.visitor-meta dt,
.legend dt,
.card-rubric,
.hero-label,
.card-meta,
.scale-labels {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--subtle);
}

.strip-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--muted);
}

.strip-clock {
  color: var(--subtle);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px var(--green-soft);
}

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: calc(100dvh - 64px);
  padding: 32px 0;
  display: grid;
  grid-template-columns: minmax(340px, 440px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.hero-text {
  min-width: 0;
  padding: 8px 0 0;
}

.chapter {
  margin: 0 0 14px;
  color: var(--green);
}

h1,
h2,
h3,
p,
dl {
  margin-top: 0;
}

#hero-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 2.7rem;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
}

#hero-title span {
  display: block;
}

.hero-em {
  color: var(--green);
}

.hero-lede {
  max-width: 58ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-probe {
  margin-top: 22px;
}

.probe-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.probe-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px;
  background: rgba(247, 244, 237, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.probe-row:focus-within {
  border-color: rgba(123, 224, 122, 0.64);
  box-shadow: 0 0 0 4px var(--green-soft), var(--shadow);
}

#target {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  outline: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--mono);
  font-size: 1rem;
}

#target::placeholder {
  color: var(--subtle);
}

#check-button,
.secondary-button {
  min-height: 54px;
  border: 0;
  border-radius: 6px;
  padding: 0 22px;
  font: 800 0.95rem/1 var(--sans);
  color: #071007;
  background: var(--green);
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, background 160ms ease;
}

#check-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#check-button:hover,
.secondary-button:hover {
  filter: brightness(1.06);
}

#check-button:active,
.secondary-button:active {
  transform: translateY(1px);
}

#check-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

#check-button:focus-visible,
.secondary-button:focus-visible,
#target:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

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

.is-busy .btn-arrow {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.probe-hint,
.probe-status {
  margin: 10px 0 0;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.probe-status[data-state="busy"] { color: var(--amber); }
.probe-status[data-state="ok"] { color: var(--green); }
.probe-status[data-state="fail"] { color: var(--red); }

.legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin: 18px 0 0;
}

.legend-item {
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(247, 244, 237, 0.05);
}

.legend dt {
  margin-bottom: 4px;
  color: var(--text);
}

.legend dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.visitor,
.verdict,
.card {
  border-radius: var(--radius);
  background: rgba(247, 244, 237, 0.06);
  box-shadow: var(--shadow);
}

.visitor {
  padding: 20px;
}

.rubric {
  margin: 0 0 10px;
  color: var(--green);
}

.visitor-title {
  margin: 0 0 16px;
  font-size: 1.55rem;
}

.visitor-ip {
  margin: 0 0 18px;
  padding: 12px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--mono);
  word-break: break-all;
}

.visitor-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.visitor-meta > div:last-child {
  grid-column: 1 / -1;
}

.visitor-meta dt {
  margin-bottom: 4px;
}

.visitor-meta dd {
  margin: 0;
  color: var(--text);
  font-family: var(--mono);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(247, 244, 237, 0.08);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.pill.ok { color: var(--green); background: var(--green-soft); }
.pill.warn { color: var(--amber); background: var(--amber-soft); }
.pill.fail { color: var(--red); background: var(--red-soft); }
.pill-pending { color: var(--muted); }

.transcript {
  min-width: 0;
  padding: 0;
}

.result-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 14px;
}

.transcript-host {
  margin: 0;
  font-family: var(--mono);
  font-size: 1.55rem;
  font-weight: 700;
  word-break: break-all;
}

.result-kicker {
  margin: 8px 0 0;
  color: var(--muted);
}

.secondary-button {
  background: rgba(247, 244, 237, 0.08);
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.verdict {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.verdict-quote {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.verdict-quote::before,
.verdict-quote::after {
  content: "";
}

.scale-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), rgba(247, 244, 237, 0.18) 50%, var(--green));
}

.scale-center {
  position: absolute;
  inset: -5px auto -5px 50%;
  width: 1px;
  background: rgba(247, 244, 237, 0.5);
}

.scale-pointer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 3px solid var(--bg);
  border-radius: 999px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: left 420ms ease;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.scale-labels span:first-child { color: var(--amber); }
.scale-labels span:last-child { color: var(--green); }

.match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.card {
  padding: 18px;
  background: var(--surface);
}

.card-v4 {
  background: linear-gradient(180deg, rgba(255, 181, 71, 0.08), rgba(247, 244, 237, 0.045)), var(--surface);
}

.card-v6 {
  background: linear-gradient(180deg, rgba(123, 224, 122, 0.08), rgba(247, 244, 237, 0.045)), var(--surface);
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.card-rubric {
  margin: 0 0 4px;
}

.card-head h3 {
  margin: 0;
  font-size: 1.35rem;
}

.card-hero {
  margin: 18px 0 16px;
}

.hero-figure {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-family: var(--mono);
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
}

.card-v4 .hero-figure { color: #ffd89c; }
.card-v6 .hero-figure { color: #c6ffc6; }

.hero-figure i {
  color: var(--subtle);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-style: normal;
}

.hero-label {
  margin: 8px 0 0;
}

.ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}

.ledger > div {
  padding: 10px;
  border-radius: 6px;
  background: rgba(16, 18, 16, 0.56);
}

.ledger dt {
  margin-bottom: 6px;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.ledger dd {
  margin: 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.95rem;
  text-align: right;
}

.card-foot {
  margin-top: auto;
}

.card-addr {
  margin: 0 0 4px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.88rem;
  word-break: break-all;
}

.card-meta {
  margin: 0;
}

.card-note {
  min-height: 40px;
  margin: 14px 0 0;
  padding: 10px;
  border-radius: 6px;
  background: rgba(16, 18, 16, 0.56);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
  word-break: break-word;
}

.versus {
  display: grid;
  place-items: center;
  color: var(--subtle);
  font-weight: 800;
}

.versus span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(247, 244, 237, 0.08);
}

@media (max-width: 900px) {
  .strip {
    position: static;
    padding: 0 20px;
  }

  .page {
    width: min(100% - 32px, 680px);
    padding-top: 34px;
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  #hero-title {
    font-size: 2.6rem;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .visitor {
    order: 2;
  }

  .verdict,
  .result-head,
  .match {
    grid-template-columns: 1fr;
  }

  .transcript {
    margin-top: 10px;
  }

  .versus {
    height: 44px;
  }
}

@media (max-width: 560px) {
  .strip {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 12px 16px;
  }

  .strip-live {
    margin-left: 0;
  }

  .strip-clock {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  #hero-title {
    font-size: 2.25rem;
  }

  .probe-row {
    grid-template-columns: 1fr;
  }

  #check-button,
  .secondary-button {
    width: 100%;
  }

  .legend,
  .ledger,
  .visitor-meta {
    grid-template-columns: 1fr;
  }

  .visitor-meta > div:last-child {
    grid-column: auto;
  }

  .transcript-host {
    font-size: 1.55rem;
  }

  .hero-figure {
    font-size: 3.15rem;
  }

  .card {
    padding: 20px;
  }

}

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

:root {
  color-scheme: dark;
  --bg: #0a0d12;
  --surface: rgba(255, 255, 255, 0.04);
  --text: #ecf0f5;
  --muted: #b9c2cd;
  --subtle: #6f7c8a;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --green: #d6ff3c;
  --green-soft: rgba(214, 255, 60, 0.14);
  --amber: #ffb547;
  --amber-soft: rgba(255, 181, 71, 0.12);
  --red: #ff6b8a;
  --red-soft: rgba(255, 107, 138, 0.12);
  --info: #7ec8ff;
  --info-soft: rgba(126, 200, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --display: "Fraunces", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body {
  background: var(--bg);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  isolation: isolate;
}

.aurora {
  position: fixed;
  inset: -10% -10% auto -10%;
  height: 80vh;
  background:
    radial-gradient(60% 60% at 20% 10%, rgba(214, 255, 60, 0.08) 0%, transparent 60%),
    radial-gradient(50% 50% at 85% 25%, rgba(126, 200, 255, 0.07) 0%, transparent 65%),
    radial-gradient(70% 50% at 50% 90%, rgba(214, 255, 60, 0.08) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -2;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.strip {
  min-height: 76px;
  padding: 0 24px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), transparent);
  backdrop-filter: blur(20px);
}

.strip-mark {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
}

.page {
  width: min(1280px, calc(100% - 32px));
  padding: 24px 0;
  gap: 16px;
}

#hero-title,
.visitor-title,
.transcript-host,
.card-head h3 {
  font-family: var(--display);
  font-weight: 500;
}

#hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.chapter,
.rubric,
.hero-em,
.card-v6 .hero-figure {
  color: var(--green);
}

.hero-lede,
.legend dd,
.result-kicker,
.card-note {
  color: var(--muted);
}

.probe-row,
.visitor,
.verdict,
.card,
.legend-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

#target,
.visitor-ip,
.ledger > div,
.card-note {
  background: rgba(255, 255, 255, 0.035);
}

.probe-row:focus-within,
#check-button:focus-visible,
.secondary-button:focus-visible,
#target:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft), var(--shadow);
  outline: 0;
}

#check-button {
  background: var(--green);
  color: #0e1207;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.scale-track {
  background: linear-gradient(90deg, var(--amber), rgba(255, 255, 255, 0.18) 50%, var(--green));
}

@media (min-width: 901px) {
  body {
    overflow: hidden;
  }

  .strip {
    min-height: 58px;
  }

  .page {
    height: calc(100dvh - 58px);
    min-height: 0;
    padding: 16px 0;
    grid-template-columns: minmax(310px, 380px) minmax(0, 1fr);
    gap: 14px;
  }

  .hero {
    gap: 12px;
  }

  .hero-text {
    padding: 0;
  }

  .chapter {
    margin-bottom: 8px;
  }

  #hero-title {
    font-size: clamp(2rem, 3.6vw, 2.85rem);
    line-height: 0.98;
  }

  .hero-lede {
    margin-top: 12px;
    font-size: 0.9rem;
  }

  .hero-probe {
    margin-top: 14px;
  }

  #target,
  #check-button,
  .secondary-button {
    min-height: 46px;
  }

  .probe-hint,
  .probe-status {
    margin-top: 6px;
    font-size: 0.74rem;
  }

  .legend {
    gap: 10px;
    margin-top: 12px;
  }

  .legend-item,
  .visitor,
  .verdict,
  .card {
    padding: 12px;
  }

  .visitor-title {
    margin-bottom: 10px;
    font-size: 1.28rem;
  }

  .visitor-ip {
    margin-bottom: 10px;
    padding: 9px 10px;
    font-size: 0.86rem;
  }

  .visitor-meta {
    gap: 10px;
  }

  .result-head {
    margin-bottom: 10px;
  }

  .transcript-host {
    font-size: 1.35rem;
  }

  .result-kicker {
    margin-top: 4px;
    font-size: 0.9rem;
  }

  .verdict {
    gap: 12px;
  }

  .match {
    gap: 10px;
    margin-top: 10px;
  }

  .card {
    padding: 14px;
  }

  .card-hero {
    margin: 12px 0;
  }

  .hero-figure {
    font-size: 2.35rem;
  }

  .ledger {
    margin-bottom: 10px;
  }

  .ledger > div {
    padding: 8px;
  }

  .card-note {
    min-height: 0;
    margin-top: 10px;
    padding: 8px;
    font-size: 0.74rem;
  }

  .versus span {
    width: 34px;
    height: 34px;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .strip {
    min-height: 52px;
  }

  .page {
    height: calc(100dvh - 52px);
    padding: 12px 0;
  }

  .hero {
    gap: 10px;
  }

  #hero-title {
    font-size: clamp(1.9rem, 3.2vw, 2.35rem);
  }

  .hero-lede {
    margin-top: 8px;
    font-size: 0.82rem;
  }

  .hero-probe {
    margin-top: 10px;
  }

  .legend {
    display: none;
  }

  .visitor {
    padding: 10px;
  }

  .visitor-title {
    margin-bottom: 8px;
    font-size: 1.15rem;
  }

  .visitor-ip {
    margin-bottom: 8px;
  }

  .visitor-meta {
    gap: 8px;
  }

  .result-head {
    margin-bottom: 8px;
  }

  .verdict {
    padding: 10px 12px;
  }

  .match {
    margin-top: 8px;
  }

  .card-hero {
    margin: 10px 0;
  }

  .hero-figure {
    font-size: 2.1rem;
  }

  .card-note {
    margin-top: 8px;
  }
}

.legend {
  display: none;
}

@media (min-width: 901px) {
  .visitor {
    gap: 8px;
    box-shadow: none;
  }

  .visitor .rubric,
  .visitor-title {
    display: none;
  }

  .visitor-ip {
    margin: 0;
  }

  .visitor-meta > div:last-child {
    grid-column: auto;
  }

  .verdict {
    display: block;
  }

  .verdict-scale {
    display: none;
  }

  .card,
  .verdict,
  .visitor {
    backdrop-filter: none;
  }

  .card-note {
    color: var(--subtle);
  }
}

.workspace {
  min-width: 0;
}

.legend {
  display: none;
}

@media (min-width: 901px) {
  body {
    overflow-y: auto;
  }

  .strip {
    min-height: 64px;
  }

  .page {
    width: min(1440px, calc(100% - 40px));
    min-height: calc(100dvh - 64px);
    height: auto;
    padding: 22px 0;
    grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
  }

  .hero {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 18px;
  }

  .hero-text {
    display: grid;
    align-content: start;
    padding-top: 10px;
  }

  #hero-title {
    font-size: clamp(2.45rem, 3.8vw, 4.2rem);
    line-height: 0.96;
  }

  .hero-lede {
    max-width: 38ch;
    margin-top: 18px;
    font-size: 1rem;
  }

  .visitor {
    display: block;
    padding: 18px;
    box-shadow: var(--shadow);
  }

  .visitor .rubric,
  .visitor-title {
    display: block;
  }

  .visitor-title {
    margin-bottom: 14px;
    font-size: 1.45rem;
  }

  .visitor-ip {
    margin-bottom: 14px;
    padding: 12px;
    font-size: 0.95rem;
  }

  .visitor-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .workspace {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
  }

  .hero-probe {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow);
  }

  .probe-row {
    box-shadow: none;
  }

  .probe-hint,
  .probe-status {
    margin-top: 8px;
  }

  .transcript {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    min-height: 0;
    margin: 0;
  }

  .result-head {
    margin-bottom: 12px;
  }

  .transcript-host {
    font-size: 1.45rem;
  }

  .verdict {
    display: block;
    padding: 14px 16px;
  }

  .verdict-scale {
    display: none;
  }

  .match {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
    min-height: 0;
  }

  .versus {
    display: none;
  }

  .card {
    display: grid;
    grid-template-rows: auto auto auto auto 1fr;
    min-height: 0;
    padding: 18px;
  }

  .card-hero {
    margin: 16px 0 14px;
  }

  .hero-figure {
    font-size: clamp(2.3rem, 3vw, 3.2rem);
  }

  .card-note {
    align-self: end;
    max-height: 72px;
    overflow: auto;
    color: var(--muted);
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .strip {
    min-height: 56px;
  }

  .page {
    min-height: 0;
    height: calc(100dvh - 56px);
    padding: 14px 0;
    gap: 16px;
    overflow: hidden;
  }

  #hero-title {
    font-size: clamp(2.1rem, 3.4vw, 3rem);
  }

  .hero-lede {
    margin-top: 12px;
    font-size: 0.9rem;
  }

  .visitor,
  .hero-probe,
  .card {
    padding: 14px;
  }

  .visitor-title {
    margin-bottom: 10px;
    font-size: 1.25rem;
  }

  .visitor-ip {
    margin-bottom: 10px;
  }

  .card-hero {
    margin: 12px 0 10px;
  }

  .ledger {
    margin-bottom: 10px;
  }

  .hero-figure {
    font-size: 2.25rem;
  }

  .probe-hint,
  .result-kicker,
  .card-note {
    display: none;
  }

  .hero-probe {
    padding: 12px;
  }

  #target,
  #check-button,
  .secondary-button {
    min-height: 42px;
  }

  .transcript {
    overflow: hidden;
  }

  .result-head {
    margin-bottom: 6px;
  }

  .verdict {
    padding: 10px 12px;
  }

  .card {
    grid-template-rows: auto auto auto auto;
  }
}

@media (max-width: 900px) {
  .workspace {
    display: grid;
    gap: 16px;
  }

  .hero-probe {
    margin-top: 0;
  }

  .legend {
    display: none;
  }
}

@media (max-width: 560px) {
  #hero-title {
    font-size: 2.05rem;
  }

  .hero-lede {
    font-size: 0.92rem;
  }

  .visitor {
    padding: 16px;
  }

  .visitor-title {
    margin-bottom: 10px;
    font-size: 1.35rem;
  }

  .visitor-ip {
    margin-bottom: 12px;
  }

  .result-head {
    gap: 12px;
  }

  .transcript-host {
    font-size: 1.25rem;
  }

  .verdict {
    padding: 14px;
  }

  .match {
    gap: 12px;
  }

  .versus {
    display: none;
  }

  .card {
    padding: 14px;
  }

  .card-hero {
    margin: 12px 0;
  }

  .hero-figure {
    font-size: 2.2rem;
  }

  .ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
  }

  .card-note {
    max-height: 96px;
    overflow: auto;
  }
}
