:root {
  color-scheme: dark;
  --bg: #050706;
  --panel: rgba(10, 18, 17, 0.82);
  --panel-solid: #0b1211;
  --text: #e9fff6;
  --muted: rgba(233, 255, 246, 0.68);
  --faint: rgba(233, 255, 246, 0.42);
  --line: rgba(117, 255, 215, 0.22);
  --line-soft: rgba(117, 255, 215, 0.12);
  --accent: #75ffd7;
  --accent-2: #f6cf69;
  --danger: #ff6f91;
  --shadow: rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --topbar-height: 76px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", Arial, sans-serif;
  background: var(--bg);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(117, 255, 215, 0.05), transparent 18%, transparent 82%, rgba(246, 207, 105, 0.04)),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.68));
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

#neural-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.35;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035) 0,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: screen;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--topbar-height);
  padding: 16px clamp(18px, 4vw, 52px);
  background: rgba(5, 7, 6, 0.7);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #06100d;
  font-weight: 900;
  background: var(--accent);
  border: 1px solid rgba(233, 255, 246, 0.42);
  border-radius: 7px;
  box-shadow: 0 0 30px rgba(117, 255, 215, 0.24);
}

.brand strong {
  display: block;
  font-size: 17px;
  line-height: 1;
}

.brand small {
  display: block;
  max-width: 180px;
  margin-top: 5px;
  overflow: hidden;
  color: var(--faint);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topnav,
.progress-chip,
.producer-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topnav a,
.progress-chip span,
.producer-badge {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 14px;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(233, 255, 246, 0.035);
}

.producer-badge {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: inset 0 0 18px rgba(117, 255, 215, 0.04);
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--text);
  border-color: var(--line);
  background: rgba(117, 255, 215, 0.08);
}

.home-shell {
  min-height: 100svh;
}

.hero {
  display: grid;
  min-height: min(760px, calc(100svh - 74px));
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: calc(var(--topbar-height) + 22px) clamp(22px, 6vw, 92px) 34px;
}

.hero-copy {
  max-width: 820px;
}

.system-kicker,
.section-label,
.question-index,
.result-code {
  margin: 0;
  color: var(--accent-2);
  font-family: Consolas, "SFMono-Regular", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.4;
}

.hero h1,
.result-hero h1,
.empty-state h1 {
  margin: 10px 0 0;
  color: var(--text);
  font-size: clamp(72px, 13vw, 180px);
  line-height: 0.88;
  text-transform: uppercase;
}

.result-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 2vw, 26px);
  margin-top: 12px;
}

.model-logo {
  display: grid;
  flex: 0 0 auto;
  width: clamp(58px, 7vw, 92px);
  height: clamp(58px, 7vw, 92px);
  place-items: center;
  padding: clamp(9px, 1vw, 14px);
  background: rgba(233, 255, 246, 0.94);
  border: 1px solid rgba(233, 255, 246, 0.5);
  border-radius: 12px;
  box-shadow: 0 0 34px rgba(117, 255, 215, 0.16);
}

.model-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.model-logo span {
  color: #06100d;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 950;
  line-height: 1;
}

.result-title-copy {
  min-width: 0;
}

.hero-subtitle {
  margin: 24px 0 0;
  max-width: 680px;
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 750;
  line-height: 1.12;
}

.hero-text {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.8;
}

.hero-actions,
.result-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.primary-action,
.ghost-action,
.ghost-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.primary-action {
  padding: 0 22px;
  color: #06100d;
  font-weight: 800;
  background: var(--accent);
  border: 1px solid rgba(233, 255, 246, 0.7);
  box-shadow: 0 14px 42px rgba(117, 255, 215, 0.18);
}

.primary-action.small {
  min-width: 126px;
}

.ghost-action,
.ghost-link {
  padding: 0 18px;
  color: var(--text);
  background: rgba(233, 255, 246, 0.04);
  border: 1px solid var(--line-soft);
}

.ghost-action:disabled {
  cursor: not-allowed;
  color: rgba(233, 255, 246, 0.28);
}

.primary-action:disabled {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

.ghost-action:disabled {
  cursor: progress;
  opacity: 0.6;
}

.primary-action:hover,
.primary-action:focus-visible,
.ghost-action:not(:disabled):hover,
.ghost-action:not(:disabled):focus-visible,
.ghost-link:hover,
.ghost-link:focus-visible {
  transform: translateY(-2px);
}

.action-note {
  max-width: 320px;
  color: var(--faint);
  font-size: 14px;
  line-height: 1.6;
}

.diagnostic-readout {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: rgba(8, 16, 15, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 70px var(--shadow), inset 0 0 28px rgba(117, 255, 215, 0.06);
}

.readout-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 2px 0 14px;
  border-bottom: 1px solid var(--line-soft);
}

.readout-line span,
.panel-heading span,
.mini-meter span {
  color: var(--muted);
}

.readout-line strong {
  color: var(--accent);
  font-family: Consolas, "Courier New", monospace;
  font-size: 26px;
}

.readout-log {
  display: grid;
  gap: 9px;
  padding: 8px 0 0;
  color: var(--faint);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.briefing {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 760px);
  gap: clamp(24px, 5vw, 86px);
  padding: 32px clamp(22px, 6vw, 92px) 54px;
  border-top: 1px solid var(--line-soft);
}

@media (min-width: 981px) {
  .home-shell {
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(96px, 11vw, 154px);
  }

  .hero-subtitle {
    margin-top: 18px;
  }

  .hero-text {
    margin-top: 16px;
  }

  .hero-actions {
    margin-top: 26px;
  }
}

.briefing h2,
.test-aside h2,
.report-panel h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
}

.briefing p:last-child,
.test-aside p,
.report-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.test-shell {
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  padding: calc(var(--topbar-height) + 28px) clamp(16px, 4vw, 52px) 34px;
}

.test-panel,
.test-aside,
.report-panel,
.dimension-strip,
.empty-state {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 70px var(--shadow);
  backdrop-filter: blur(18px);
}

.test-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: min(760px, calc(100svh - var(--topbar-height) - 62px));
  padding: clamp(18px, 3vw, 34px);
}

.test-aside {
  align-self: start;
  padding: 24px;
}

.test-meta,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.progress-track {
  width: min(320px, 48vw);
  height: 8px;
  overflow: hidden;
  background: rgba(233, 255, 246, 0.08);
  border: 1px solid var(--line-soft);
  border-radius: 99px;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 240ms ease;
}

.question-zone {
  display: grid;
  align-content: center;
  gap: 24px;
  padding: 26px 0;
}

.question-zone h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(26px, 4vw, 52px);
  line-height: 1.16;
}

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.option {
  display: grid;
  min-height: 112px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: rgba(233, 255, 246, 0.04);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.option:hover,
.option:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line);
  background: rgba(117, 255, 215, 0.07);
}

.option.selected {
  color: #06100d;
  border-color: rgba(233, 255, 246, 0.7);
  background: var(--accent);
}

.option-letter {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.24);
  border-radius: 7px;
}

.option-text {
  min-width: 0;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.question-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.question-map {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.map-dot {
  width: 28px;
  height: 28px;
  color: var(--faint);
  cursor: pointer;
  background: rgba(233, 255, 246, 0.035);
  border: 1px solid rgba(233, 255, 246, 0.1);
  border-radius: 6px;
}

.map-dot.answered {
  color: #06100d;
  background: rgba(117, 255, 215, 0.82);
}

.map-dot.active {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 2px rgba(246, 207, 105, 0.18);
}

.mini-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.mini-meter strong {
  color: var(--accent);
  font-family: Consolas, "Courier New", monospace;
}

.shake {
  animation: shake 260ms ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  33% {
    transform: translateX(-8px);
  }
  66% {
    transform: translateX(8px);
  }
}

.result-shell {
  display: grid;
  gap: 22px;
  padding: calc(var(--topbar-height) + 30px) clamp(16px, 4vw, 52px) 42px;
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 24px;
  align-items: end;
  padding: clamp(24px, 4vw, 48px) 0 8px;
}

.result-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(38px, 6vw, 88px);
  line-height: 0.95;
}

.result-subtitle {
  max-width: 980px;
  margin: 12px 0 0;
  color: var(--text);
  font-size: clamp(36px, 5.4vw, 82px);
  font-weight: 950;
  line-height: 1.02;
}

.result-quote {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.55;
}

.confidence-block {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 16, 15, 0.7);
}

.confidence-block span,
.confidence-block small {
  display: block;
  color: var(--muted);
}

.confidence-block strong {
  display: block;
  margin: 6px 0;
  color: var(--accent);
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 22px;
}

.report-panel {
  padding: clamp(18px, 3vw, 30px);
}

.main-report {
  display: grid;
  gap: 22px;
  align-content: start;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-row span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  color: var(--accent);
  background: rgba(117, 255, 215, 0.07);
  border: 1px solid var(--line-soft);
  border-radius: 7px;
}

.report-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 4px;
}

.report-columns h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

blockquote {
  margin: 0;
  padding: 18px 0 0;
  color: var(--accent-2);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.6;
  border-top: 1px solid var(--line-soft);
}

.radar-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

#radarChart {
  display: block;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  margin: 0 auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.dimension-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  padding: 22px;
}

.dimension-row {
  display: grid;
  grid-template-columns: minmax(92px, 136px) minmax(0, 1fr) 52px;
  gap: 12px;
  align-items: center;
}

.dimension-row span,
.dimension-row strong {
  color: var(--muted);
  font-size: 14px;
}

.dimension-row strong {
  color: var(--accent-2);
  font-family: Consolas, "Courier New", monospace;
  text-align: right;
}

.dimension-bar {
  height: 8px;
  overflow: hidden;
  background: rgba(233, 255, 246, 0.08);
  border-radius: 99px;
}

.dimension-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.poster-snapshot-stage {
  position: fixed;
  top: 0;
  left: -12000px;
  z-index: -20;
  width: 1080px;
  pointer-events: none;
}

.poster-snapshot {
  width: 1080px;
  overflow: hidden;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", Arial, sans-serif;
  background:
    radial-gradient(circle at 78% 8%, rgba(117, 255, 215, 0.18), rgba(117, 255, 215, 0.04) 34%, transparent 58%),
    linear-gradient(rgba(117, 255, 215, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 255, 215, 0.08) 1px, transparent 1px),
    #050706;
  background-size: auto, 48px 48px, 48px 48px, auto;
  border: 1px solid rgba(117, 255, 215, 0.2);
}

.poster-snapshot-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 48px;
  border-bottom: 1px solid rgba(117, 255, 215, 0.18);
  background: rgba(5, 7, 6, 0.72);
}

.poster-snapshot-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.poster-snapshot-brand strong {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.poster-snapshot-brand small {
  display: block;
  margin-top: 5px;
  color: var(--faint);
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
}

.poster-snapshot-body {
  display: grid;
  gap: 22px;
  padding: 44px 48px 30px;
}

.poster-snapshot .result-hero {
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: end;
  padding: 0 0 8px;
}

.poster-snapshot .system-kicker,
.poster-snapshot .section-label,
.poster-snapshot .result-code {
  font-size: 12px;
}

.poster-snapshot .result-title-wrap {
  gap: 18px;
  margin-top: 12px;
}

.poster-snapshot .model-logo {
  width: 72px;
  height: 72px;
  padding: 10px;
  border-radius: 10px;
}

.poster-snapshot .result-hero h1 {
  max-width: 720px;
  font-size: 64px;
  line-height: 0.96;
}

.poster-snapshot .result-subtitle {
  max-width: 720px;
  margin-top: 10px;
  font-size: 50px;
  line-height: 1.06;
}

.poster-snapshot .result-quote {
  max-width: 720px;
  margin-top: 16px;
  font-size: 22px;
  line-height: 1.5;
}

.poster-snapshot .confidence-block {
  align-self: end;
  padding: 16px;
}

.poster-snapshot .confidence-block strong {
  font-size: 58px;
}

.poster-snapshot .result-grid {
  grid-template-columns: minmax(0, 1fr) 436px;
  gap: 20px;
}

.poster-snapshot .report-panel {
  padding: 24px;
}

.poster-snapshot .main-report {
  gap: 18px;
}

.poster-snapshot .report-panel p {
  font-size: 14px;
  line-height: 1.75;
}

.poster-snapshot .tag-row span {
  min-height: 28px;
  padding: 0 9px;
  font-size: 14px;
}

.poster-snapshot .report-columns {
  gap: 18px;
}

.poster-snapshot .report-columns h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.poster-snapshot blockquote {
  padding-top: 14px;
  font-size: 20px;
}

.poster-snapshot .radar-panel {
  gap: 12px;
}

.poster-snapshot .panel-heading span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.poster-snapshot .snapshot-radar-image {
  display: block;
  width: 100%;
  max-width: 388px;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.poster-snapshot .dimension-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  padding: 20px;
}

.poster-snapshot .dimension-row {
  grid-template-columns: 116px minmax(0, 1fr) 44px;
  gap: 10px;
}

.poster-snapshot-footer {
  padding: 24px 48px 38px;
  color: rgba(233, 255, 246, 0.45);
  font-size: 14px;
  font-weight: 700;
}

.save-status {
  color: var(--faint);
  font-size: 14px;
  line-height: 1.6;
}

.poster-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}

.poster-modal[hidden] {
  display: none;
}

.poster-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
}

.poster-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(960px, calc(100vw - 36px));
  max-height: calc(100svh - 36px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 13, 12, 0.96);
  box-shadow: 0 28px 120px rgba(0, 0, 0, 0.62);
}

.poster-dialog-head,
.poster-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft);
}

.poster-dialog-head h2 {
  margin: 6px 0 0;
  font-size: clamp(20px, 2.3vw, 30px);
  line-height: 1.2;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--text);
  cursor: pointer;
  background: rgba(233, 255, 246, 0.04);
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  font-size: 28px;
  line-height: 1;
}

.poster-frame {
  min-height: 0;
  overflow: auto;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(117, 255, 215, 0.06), transparent 16%, transparent 84%, rgba(246, 207, 105, 0.04)),
    #030504;
}

.poster-frame img {
  display: block;
  width: min(680px, 100%);
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.44);
}

.poster-dialog-actions {
  flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  border-bottom: 0;
}

.empty-state {
  display: grid;
  min-height: calc(100svh - var(--topbar-height) - 72px);
  place-content: center;
  gap: 18px;
  padding: 32px;
  text-align: center;
}

.empty-state h1 {
  font-size: clamp(38px, 8vw, 92px);
}

.empty-state p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .hero,
  .test-shell,
  .result-grid,
  .result-hero {
    grid-template-columns: 1fr;
  }

  .diagnostic-readout,
  .test-aside {
    max-width: none;
  }

  .test-panel {
    min-height: auto;
  }

  .result-hero {
    align-items: start;
  }

  .result-title-wrap {
    align-items: center;
  }
}

@media (max-width: 760px) {
  :root {
    --topbar-height: 68px;
  }

  .topbar {
    padding: 12px 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand small {
    display: none;
  }

  .topnav a,
  .progress-chip span,
  .producer-badge {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .topnav a:nth-child(2) {
    display: none;
  }

  .progress-chip span:nth-child(2) {
    display: none;
  }

  .producer-badge {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--topbar-height) + 42px) 18px 34px;
  }

  .hero h1 {
    font-size: clamp(72px, 24vw, 116px);
  }

  .briefing {
    grid-template-columns: 1fr;
    padding: 28px 18px 44px;
  }

  .hero-actions,
  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .ghost-action,
  .ghost-link,
  .save-status {
    width: 100%;
  }

  .test-shell,
  .result-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .test-meta {
    align-items: start;
    flex-direction: column;
  }

  .progress-track {
    width: 100%;
  }

  .options,
  .report-columns,
  .dimension-strip {
    grid-template-columns: 1fr;
  }

  .option {
    min-height: 96px;
    padding: 15px;
  }

  .question-controls {
    grid-template-columns: 1fr;
  }

  .question-map {
    order: -1;
    justify-content: start;
  }

  .map-dot {
    width: 30px;
    height: 30px;
  }

  .dimension-row {
    grid-template-columns: 92px minmax(0, 1fr) 48px;
  }

  .result-title-wrap {
    gap: 12px;
  }

  .model-logo {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    font-size: 21px;
  }

  .result-subtitle {
    margin-top: 8px;
  }

  .poster-modal {
    padding: 10px;
  }

  .poster-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100svh - 20px);
  }

  .poster-dialog-head,
  .poster-dialog-actions {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }

  .icon-button {
    position: absolute;
    top: 12px;
    right: 12px;
  }

  .poster-frame {
    padding: 10px;
  }
}

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