:root {
  color-scheme: dark;
  --bg: #070907;
  --bg-2: #0b120d;
  --panel: rgba(16, 25, 18, 0.84);
  --panel-solid: #101912;
  --paper: #eee6cd;
  --muted: rgba(238, 230, 205, 0.7);
  --faint: rgba(238, 230, 205, 0.48);
  --gold: #d8b765;
  --gold-soft: rgba(216, 183, 101, 0.24);
  --green: #74a477;
  --green-bright: #a9d79c;
  --wax: #8e2f2a;
  --line: rgba(216, 183, 101, 0.25);
  --line-soft: rgba(216, 183, 101, 0.13);
  --shadow: rgba(0, 0, 0, 0.48);
  --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;
  overflow-x: hidden;
  color: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(7, 9, 7, 0), rgba(7, 9, 7, 0.88)),
    var(--bg);
}

body.modal-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

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

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.55;
  background:
    repeating-linear-gradient(0deg, rgba(238, 230, 205, 0.025) 0, rgba(238, 230, 205, 0.025) 1px, transparent 1px, transparent 6px),
    repeating-linear-gradient(90deg, rgba(216, 183, 101, 0.018) 0, rgba(216, 183, 101, 0.018) 1px, transparent 1px, transparent 9px);
  mix-blend-mode: screen;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(116, 164, 119, 0.13), transparent 20%, transparent 80%, rgba(216, 183, 101, 0.08)),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.72));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: var(--topbar-height);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(7, 9, 7, 0.76);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: #0b120d;
  font-weight: 950;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%),
    var(--gold);
  border: 1px solid rgba(238, 230, 205, 0.45);
  border-radius: 7px;
  box-shadow: 0 0 32px rgba(216, 183, 101, 0.2);
}

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

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

.producer-badge {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--gold);
  font-weight: 800;
  white-space: nowrap;
  background: rgba(238, 230, 205, 0.035);
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  box-shadow: inset 0 0 18px rgba(216, 183, 101, 0.05);
}

.home-shell {
  display: grid;
  gap: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(34px, 5vw, 66px) clamp(22px, 6vw, 92px) 34px;
}

.dossier-cover {
  position: relative;
}

.dossier-cover::after {
  position: absolute;
  right: clamp(22px, 6vw, 92px);
  bottom: 22px;
  width: min(230px, 28vw);
  height: 70px;
  pointer-events: none;
  content: "NOT A SORTING HAT";
  display: grid;
  place-items: center;
  color: rgba(142, 47, 42, 0.26);
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(14px, 1.4vw, 19px);
  font-weight: 900;
  border: 2px solid rgba(142, 47, 42, 0.22);
  transform: rotate(-8deg);
}

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

.system-kicker,
.section-label,
.question-index,
.result-code {
  margin: 0;
  color: var(--gold);
  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(--paper);
  font-size: clamp(72px, 12vw, 168px);
  line-height: 0.88;
  text-transform: uppercase;
}

.hero-subtitle {
  margin: 22px 0 0;
  font-size: clamp(25px, 3.2vw, 46px);
  font-weight: 900;
  line-height: 1.14;
}

.hero-text {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.85;
}

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

.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: #0b120d;
  font-weight: 900;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 44%),
    var(--gold);
  border: 1px solid rgba(238, 230, 205, 0.7);
  box-shadow: 0 14px 42px rgba(216, 183, 101, 0.15);
}

.primary-action.parchment {
  background: var(--paper);
}

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

.ghost-action,
.ghost-link {
  padding: 0 18px;
  color: var(--paper);
  cursor: pointer;
  background: rgba(238, 230, 205, 0.04);
  border: 1px solid var(--line-soft);
}

.ghost-action:disabled,
.primary-action:disabled {
  cursor: progress;
  opacity: 0.62;
  transform: none;
}

.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: 360px;
  color: var(--faint);
  font-size: 14px;
  line-height: 1.7;
}

.archive-readout {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(238, 230, 205, 0.05), rgba(238, 230, 205, 0.015)),
    rgba(14, 22, 16, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 22px 80px var(--shadow), inset 0 0 36px rgba(116, 164, 119, 0.08);
}

.stamp-mark {
  justify-self: end;
  width: 112px;
  height: 44px;
  display: grid;
  place-items: center;
  color: rgba(142, 47, 42, 0.72);
  font-weight: 950;
  border: 2px solid rgba(142, 47, 42, 0.45);
  transform: rotate(5deg);
}

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

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

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

.readout-log {
  display: grid;
  gap: 8px;
  padding-top: 6px;
  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);
  background: rgba(7, 9, 7, 0.28);
}

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

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

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

.test-panel,
.test-aside,
.report-panel,
.dimension-strip,
.empty-state {
  background:
    linear-gradient(180deg, rgba(238, 230, 205, 0.045), rgba(238, 230, 205, 0.012)),
    var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 18px 70px var(--shadow);
  backdrop-filter: blur(18px);
}

.test-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: min(740px, 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(238, 230, 205, 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(--green-bright), var(--gold));
  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, 50px);
  line-height: 1.18;
}

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

.option {
  display: grid;
  min-height: 118px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  color: var(--paper);
  text-align: left;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(238, 230, 205, 0.04), rgba(238, 230, 205, 0.015)),
    rgba(10, 16, 12, 0.76);
  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(116, 164, 119, 0.13);
}

.option.selected {
  color: #0b120d;
  border-color: rgba(238, 230, 205, 0.78);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 40%),
    var(--gold);
}

.option-letter {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 950;
  color: inherit;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 7px;
}

.option-text {
  min-width: 0;
  font-size: clamp(15px, 1.35vw, 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(238, 230, 205, 0.035);
  border: 1px solid rgba(238, 230, 205, 0.1);
  border-radius: 6px;
}

.map-dot.answered {
  color: #0b120d;
  background: rgba(216, 183, 101, 0.86);
}

.map-dot.active {
  border-color: var(--green-bright);
  box-shadow: 0 0 0 2px rgba(116, 164, 119, 0.22);
}

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

.aside-note {
  margin-top: 22px !important;
  color: var(--faint) !important;
  font-size: 14px !important;
}

.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: 30px clamp(16px, 4vw, 52px) 42px;
}

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

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

.role-seal {
  display: grid;
  width: clamp(60px, 7vw, 92px);
  height: clamp(60px, 7vw, 92px);
  flex: 0 0 auto;
  place-items: center;
  color: rgba(142, 47, 42, 0.92);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 950;
  background: rgba(238, 230, 205, 0.93);
  border: 2px solid rgba(142, 47, 42, 0.45);
  border-radius: 12px;
  box-shadow: 0 0 34px rgba(216, 183, 101, 0.15);
  transform: rotate(-3deg);
}

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

.result-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(34px, 5.2vw, 78px);
  line-height: 1.02;
}

.result-subtitle {
  max-width: 980px;
  margin: 10px 0 0;
  color: var(--paper);
  font-size: clamp(31px, 4.7vw, 70px);
  font-weight: 950;
  line-height: 1.08;
}

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

.confidence-block {
  padding: 18px;
  background: rgba(15, 23, 17, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

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

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(310px, 0.88fr);
  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(--gold);
  background: rgba(216, 183, 101, 0.08);
  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(--gold);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  line-height: 1.65;
  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(100px, 144px) 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(--gold);
  font-family: Consolas, "Courier New", monospace;
  text-align: right;
}

.dimension-bar {
  height: 8px;
  overflow: hidden;
  background: rgba(238, 230, 205, 0.08);
  border-radius: 99px;
}

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

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

.canon-card {
  display: grid;
  gap: 14px;
}

.reading-card {
  grid-column: 1 / -1;
  border-color: rgba(142, 47, 42, 0.28);
}

.result-actions {
  margin-top: 2px;
}

.empty-state {
  display: grid;
  max-width: 760px;
  gap: 18px;
  justify-items: start;
  margin: clamp(40px, 10vw, 120px) auto;
  padding: clamp(28px, 5vw, 52px);
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.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.76);
  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;
  background: rgba(12, 18, 13, 0.97);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  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-actions {
  border-top: 1px solid var(--line-soft);
  border-bottom: 0;
}

.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(--paper);
  cursor: pointer;
  background: rgba(238, 230, 205, 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(216, 183, 101, 0.06), transparent 16%, transparent 84%, rgba(116, 164, 119, 0.06)),
    #060806;
}

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

.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(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", Arial, sans-serif;
  background:
    linear-gradient(rgba(216, 183, 101, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 183, 101, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(116, 164, 119, 0.16), rgba(7, 9, 7, 0.92)),
    #070907;
  background-size: 48px 48px, 48px 48px, auto, auto;
  border: 1px solid rgba(216, 183, 101, 0.2);
}

.poster-snapshot-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 48px;
  background: rgba(7, 9, 7, 0.74);
  border-bottom: 1px solid rgba(216, 183, 101, 0.18);
}

.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) 268px;
  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 .role-seal {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  font-size: 30px;
}

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

.poster-snapshot .result-subtitle {
  max-width: 720px;
  margin-top: 8px;
  font-size: 44px;
  line-height: 1.08;
}

.poster-snapshot .result-quote {
  max-width: 760px;
  margin-top: 16px;
  font-size: 21px;
  line-height: 1.55;
}

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

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

.poster-snapshot .result-grid {
  grid-template-columns: minmax(0, 1fr) 426px;
  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 .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: 128px minmax(0, 1fr) 44px;
  gap: 10px;
}

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

.poster-snapshot .reading-card {
  grid-column: 1 / -1;
}

.poster-snapshot-footer {
  padding: 24px 48px 38px;
  color: rgba(238, 230, 205, 0.48);
  font-size: 14px;
  font-weight: 700;
}

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

  .archive-readout {
    max-width: 560px;
  }

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

  .test-aside {
    order: -1;
  }

  .briefing {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .confidence-block {
    max-width: 420px;
  }
}

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

  .topbar {
    position: sticky;
    padding: 12px 16px;
  }

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

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    max-width: 126px;
    font-size: 10px;
  }

  .producer-badge {
    min-height: 32px;
    padding: 0 9px;
    font-size: 12px;
  }

  .hero {
    padding: 28px 16px 28px;
  }

  .dossier-cover::after {
    display: none;
  }

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

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

  .hero-actions {
    align-items: stretch;
  }

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

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

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

  .option {
    min-height: auto;
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 16px;
  }

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

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

  .result-title-wrap {
    flex-direction: column;
  }

  .result-hero h1 {
    font-size: clamp(34px, 12vw, 56px);
  }

  .result-subtitle {
    font-size: clamp(30px, 10vw, 46px);
  }

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

  .dimension-row {
    grid-template-columns: minmax(94px, 124px) minmax(0, 1fr) 46px;
  }

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

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

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