@font-face {
  font-family: Romie;
  src: url("assets/romie.woff2") format("woff2");
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Romie;
  src: url("assets/romie-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #252526;
  --ink-soft: #62605d;
  --paper: #f6f5f3;
  --paper-deep: #ede9e5;
  --white: #ffffff;
  --accent: #9b8472;
  --line: #d3ceca;
  --line-dark: #bbb4ad;
  --shadow: 0 20px 55px rgba(37, 37, 38, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button,
input { font: inherit; }
button { color: inherit; }

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 245, 243, 0.94);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 178px;
  border: 0;
  background: transparent;
  padding: 10px 0;
  cursor: pointer;
}

.brand img { display: block; width: 100%; height: auto; }

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.privacy-badge span {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(155, 132, 114, .12);
}

.screen { display: none; padding: 54px 0 86px; }
.screen.is-active { display: block; animation: appear .3s ease-out; }

@keyframes appear {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

.kicker {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.start-screen { padding-top: 36px; }

.start-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(45px, 8vw, 105px);
  align-items: center;
  min-height: calc(100vh - 220px);
  padding: clamp(36px, 6vw, 72px);
  background: var(--paper-deep);
}

.hero-copy { padding: 26px 0; }

.hero-copy h1,
.results-hero h1 {
  margin: 0;
  font-family: Romie, Georgia, serif;
  font-size: clamp(64px, 9vw, 112px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .86;
}

.accent { color: var(--accent); }

.hero-lead {
  max-width: 610px;
  margin: 38px 0 42px;
  font-family: Romie, Georgia, serif;
  font-size: clamp(25px, 2.8vw, 38px);
  font-weight: 400;
  line-height: 1.2;
}

.axis-list {
  max-width: 650px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.axis-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  font-size: 12px;
  font-weight: 700;
}

.axis-list span:nth-child(odd) { border-right: 1px solid var(--line-dark); }
.axis-list span:nth-child(-n + 2) { border-bottom: 1px solid var(--line-dark); }
.axis-list i { width: 8px; height: 8px; background: var(--axis); border-radius: 50%; }

.start-card {
  position: relative;
  padding: clamp(30px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.start-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: clamp(30px, 4vw, 48px);
  width: 90px;
  height: 3px;
  background: var(--ink);
}

.start-card h2 {
  margin: 24px 0 10px;
  font: 400 32px/1.12 Romie, Georgia, serif;
}

.start-card > p { margin: 0 0 28px; color: var(--ink-soft); }

.time-note {
  display: inline-flex;
  padding: 7px 10px;
  background: var(--paper-deep);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

label {
  display: block;
  margin: 19px 0 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

label span { color: var(--accent); }

input {
  width: 100%;
  padding: 14px 2px;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  border-radius: 0;
  outline: none;
  background: transparent;
  transition: .2s ease;
}

input:focus { border-color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.field-error { min-height: 0; margin: 6px 0 0 !important; color: #8a3c2c !important; font-size: 12px; }
.check-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin: 13px 0 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
  cursor: pointer;
}
.check-row input { width: 17px; height: 17px; margin: 0; accent-color: var(--ink); box-shadow: none; }
.check-row a { color: inherit; text-underline-offset: 3px; }
.privacy-check { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.button {
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 15px 20px;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, opacity .18s ease;
}

.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-primary { color: white; background: var(--ink); }
.button-primary:hover:not(:disabled) { background: #3b3b3c; }
.button-secondary { color: var(--ink); background: transparent; border-color: var(--line-dark); }
.button-secondary:hover:not(:disabled) { background: var(--white); border-color: var(--ink); }
.button-wide { width: 100%; margin-top: 26px; }
.button:disabled { opacity: .3; cursor: not-allowed; }

.button:focus-visible,
.text-button:focus-visible,
.scale button:focus-visible,
.binary button:focus-visible,
.brand:focus-visible,
.info-button:focus-visible,
.icon-button:focus-visible {
  outline: 3px solid rgba(155, 132, 114, .45);
  outline-offset: 4px;
}

.resume-button { margin-top: 10px; }

.text-button {
  border: 0;
  background: transparent;
  padding: 8px 0;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-transform: uppercase;
  cursor: pointer;
}

.start-card .text-button { width: 100%; margin-top: 14px; }
.privacy-note { display: flex; justify-content: center; gap: 8px; margin: 22px 0 0 !important; font-size: 11px !important; text-align: center; }
.privacy-note span { color: var(--accent); font-size: 8px; }

.baseline {
  margin: 36px 0 0;
  color: var(--ink-soft);
  font: italic 18px/1.4 Romie, Georgia, serif;
  text-align: center;
}

.question-screen { max-width: 980px; margin: 0 auto; }
.diagnostic-topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.diagnostic-topbar p { margin: 0; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.progress-track { width: 100%; height: 3px; margin: 17px 0 24px; overflow: hidden; background: var(--line); }
.progress-fill { width: 0; height: 100%; background: var(--accent); transition: width .28s ease; }

.axis-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 32px; }
.axis-step { padding-top: 9px; border-top: 2px solid var(--line); color: #8c8884; font-size: 10px; font-weight: 700; }
.axis-step.is-current,
.axis-step.is-complete { border-color: var(--axis-color); color: var(--ink); }
.axis-step span { display: block; margin-top: 2px; font-weight: 400; }

.question-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: 0 18px 52px rgba(37, 37, 38, .06); }
.question-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; padding: clamp(28px, 4vw, 46px); background: var(--axis-wash, var(--paper-deep)); border-bottom: 1px solid var(--line); }
.question-step { margin: 0 0 8px; color: var(--axis-color, var(--accent)); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.axis-eyebrow { margin: 0 0 9px; color: var(--ink-soft); font-size: 13px; }
.question-header h2 { margin: 0; font: 400 clamp(31px, 4vw, 46px)/1.05 Romie, Georgia, serif; }
.question-number { color: var(--axis-color, var(--accent)); font: 400 68px/1 Romie, Georgia, serif; opacity: .42; }

.answer-block { padding: clamp(28px, 4vw, 42px) clamp(28px, 4vw, 46px); }
.answer-block + .answer-block { border-top: 1px solid var(--line); }
.answer-heading { display: grid; grid-template-columns: 190px 1fr; gap: 24px; align-items: start; }
.answer-heading > div { display: flex; align-items: center; gap: 10px; }
.answer-index { display: inline-grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 50%; color: var(--axis-color, var(--accent)); font-size: 9px; font-weight: 700; }
.answer-heading h3 { margin: 0; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.answer-heading p { margin: 0; font: 400 20px/1.42 Romie, Georgia, serif; }

.scale,
.binary { border: 0; padding: 0; margin: 28px 0 0 214px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.scale button { aspect-ratio: 1.45; border: 1px solid var(--line); border-radius: 0; background: var(--paper); font-size: 18px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.scale button:hover { transform: translateY(-2px); border-color: var(--axis-color); }
.scale button.is-selected { color: white; background: var(--axis-color); border-color: var(--axis-color); }
.scale-legend { display: flex; justify-content: space-between; margin: 8px 0 0 214px; color: #7d7975; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }

.binary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.binary button { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); text-align: left; cursor: pointer; }
.binary button:hover { border-color: var(--axis-color); }
.binary button.is-selected { background: color-mix(in srgb, var(--axis-color) 9%, white); border-color: var(--axis-color); }
.choice-dot { grid-row: 1 / 3; width: 17px; height: 17px; border: 1px solid #8d8884; border-radius: 50%; position: relative; }
.binary button.is-selected .choice-dot::after { content: ""; position: absolute; inset: 4px; background: var(--axis-color); border-radius: 50%; }
.binary strong { font-size: 12px; }
.binary small { margin-top: 2px; color: var(--ink-soft); }

.question-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin-top: 24px; }
.question-nav .button:first-child { justify-self: start; }
.question-nav .button:last-child { justify-self: end; }
.question-nav p { margin: 0; color: var(--ink-soft); font-size: 10px; text-align: center; }

.results-screen { max-width: 1120px; margin: 0 auto; }
.results-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 34px; }
.results-toolbar > div { display: flex; gap: 10px; }
.results-hero { display: flex; justify-content: space-between; align-items: flex-end; padding: 46px; background: var(--paper-deep); border: 1px solid var(--line); }
.results-hero h1 { font-size: clamp(60px, 8vw, 100px); }
.submission-status { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 14px 0 0; padding: 13px 16px; border-left: 3px solid var(--accent); background: #eee7e1; color: var(--ink-soft); font-size: 11px; }
.submission-status.is-success { border-color: #5d6e63; background: #e9eee9; color: #435448; }
.submission-status.is-error { border-color: #8a3c2c; background: #f4e9e6; color: #713326; }
.submission-status .text-button { flex: 0 0 auto; color: inherit; }
.result-context { margin: 20px 0 0; color: var(--ink-soft); }
.overall-score { display: flex; align-items: center; gap: 18px; }
.score-ring { --score-angle: 0deg; position: relative; display: grid; place-items: center; width: 118px; height: 118px; border-radius: 50%; background: conic-gradient(var(--accent) var(--score-angle), rgba(37, 37, 38, .1) 0); }
.score-ring::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--paper-deep); }
.score-ring span { z-index: 1; font: 400 41px/1 Romie, Georgia, serif; }
.score-ring small { z-index: 1; position: absolute; bottom: 25px; font-size: 9px; }
.overall-score > div:last-child { max-width: 160px; }
.overall-score strong { display: block; font: 400 20px/1.15 Romie, Georgia, serif; }
.overall-score > div > span { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }

.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.result-card { padding: clamp(25px, 3vw, 36px); background: var(--white); border: 1px solid var(--line); }
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; }
.card-heading h2,
.section-heading h2 { margin: 0; font: 400 30px/1.1 Romie, Georgia, serif; }
.card-heading .kicker { margin-bottom: 8px; }
.info-button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-family: Romie, Georgia, serif; font-style: italic; cursor: pointer; }
.radar-chart { min-height: 350px; display: grid; place-items: center; margin-top: 8px; }
.radar-chart svg { width: 100%; max-width: 460px; overflow: visible; }
.formula-note { padding: 17px; background: var(--paper); border-left: 3px solid var(--accent); font-size: 12px; line-height: 1.55; }
.formula-note p { margin: 5px 0 0; color: var(--ink-soft); }

.axis-results { display: grid; gap: 23px; margin-top: 30px; }
.axis-result-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.axis-result-heading div { display: flex; align-items: center; gap: 9px; }
.axis-result-heading i { width: 9px; height: 9px; background: var(--axis); border-radius: 50%; }
.axis-result-heading strong { font-size: 13px; }
.axis-result-heading span { font: 400 23px/1 Romie, Georgia, serif; }
.score-bar { height: 6px; margin: 9px 0 6px; overflow: hidden; background: var(--paper-deep); }
.score-bar span { display: block; width: var(--score); height: 100%; background: var(--axis); }
.axis-classification { color: #77726f; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.thresholds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.thresholds span { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 9px; }
.thresholds i { width: 7px; height: 7px; border-radius: 50%; }
.thresholds .urgent { background: #8a3c2c; }
.thresholds .priority { background: #9b6847; }
.thresholds .consolidate { background: #8a8177; }
.thresholds .strength { background: #5d6e63; }

.result-section { margin-top: 70px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 25px; padding-bottom: 18px; border-bottom: 1px solid var(--line-dark); }
.section-heading .kicker { margin-bottom: 8px; }
.section-heading > p { max-width: 400px; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.priority-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.priority-card { position: relative; min-height: 225px; padding: 27px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--axis); }
.priority-rank { position: absolute; top: 12px; right: 18px; color: rgba(37, 37, 38, .12); font: 400 48px/1 Romie, Georgia, serif; }
.priority-card > span { display: block; padding-right: 38px; color: var(--axis); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.priority-card h3 { margin: 17px 0 12px; font: 400 24px/1.1 Romie, Georgia, serif; }
.priority-score { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px; }
.priority-score strong { font-size: 20px; }
.priority-score small { color: var(--ink-soft); }
.priority-card p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.evidence-alert { margin-top: 16px; padding: 18px 20px; background: #eee7e1; border-left: 4px solid var(--accent); font-size: 12px; line-height: 1.55; }
.evidence-alert strong { display: block; margin-bottom: 4px; }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.plan-card { min-height: 255px; padding: 28px; background: var(--white); }
.plan-phase { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.plan-phase strong { font-size: 12px; }
.plan-phase span { color: var(--accent); font: italic 13px Romie, Georgia, serif; }
.plan-card small { display: block; margin-top: 22px; color: var(--axis); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.plan-card h3 { margin: 8px 0 14px; font: 400 23px/1.15 Romie, Georgia, serif; }
.plan-card p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.synthesis-section pre { max-height: 520px; overflow: auto; margin: 0; padding: 28px; border-radius: 0; background: var(--ink); color: #f6f5f3; white-space: pre-wrap; font: 400 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.result-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 58px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.result-footer strong { display: block; font: italic 19px Romie, Georgia, serif; }
.result-footer span { display: block; margin-top: 5px; font-size: 9px; letter-spacing: .22em; }

.history-heading { display: flex; justify-content: space-between; align-items: end; padding-bottom: 28px; border-bottom: 1px solid var(--line-dark); }
.history-heading h1 { margin: 0; font: 400 clamp(42px, 6vw, 70px)/1 Romie, Georgia, serif; }
.history-heading .kicker { margin: 32px 0 10px; }
.history-count { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.history-list { display: grid; gap: 12px; margin-top: 24px; }
.history-item { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; padding: 20px 22px; background: var(--white); border: 1px solid var(--line); }
.history-item h2 { margin: 0 0 7px; font: 400 23px/1.1 Romie, Georgia, serif; }
.history-item p { margin: 0; color: var(--ink-soft); font-size: 11px; }
.history-item .history-score { min-width: 88px; text-align: right; font: 400 29px/1 Romie, Georgia, serif; }
.history-actions { display: flex; gap: 8px; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.empty-history { padding: 70px 20px; border: 1px dashed var(--line-dark); color: var(--ink-soft); text-align: center; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 0; background: var(--ink); color: white; font-size: 11px; opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.public-footer { width: min(1180px, calc(100% - 48px)); display: flex; justify-content: space-between; gap: 20px; margin: 0 auto; padding: 28px 0 34px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.public-footer a { color: inherit; text-underline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 820px) {
  .shell { width: min(100% - 26px, 720px); }
  .public-footer { width: min(100% - 26px, 720px); }
  .site-header { min-height: 76px; }
  .brand { width: 145px; }
  .screen { padding-top: 34px; }
  .start-grid { grid-template-columns: 1fr; gap: 34px; min-height: auto; padding: 42px clamp(22px, 6vw, 46px); }
  .hero-copy { padding-bottom: 0; }
  .hero-lead { margin: 28px 0; }
  .answer-heading { grid-template-columns: 1fr; gap: 14px; }
  .scale,
  .binary,
  .scale-legend { margin-left: 0; }
  .results-hero { align-items: flex-start; gap: 28px; padding: 34px; }
  .result-grid { grid-template-columns: 1fr; }
  .priority-grid,
  .plan-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .plan-card { min-height: 0; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 20px, 520px); }
  .public-footer { width: min(100% - 20px, 520px); flex-direction: column; }
  .privacy-badge { font-size: 8px; }
  .privacy-badge span { box-shadow: 0 0 0 3px rgba(155, 132, 114, .12); }
  .start-grid { padding: 34px 20px; }
  .hero-copy h1 { font-size: clamp(55px, 19vw, 78px); }
  .axis-list { grid-template-columns: 1fr; }
  .axis-list span:nth-child(odd) { border-right: 0; }
  .axis-list span:not(:last-child) { border-bottom: 1px solid var(--line-dark); }
  .start-card { padding: 28px 20px; }
  .start-card::before { left: 20px; }
  .axis-progress { gap: 4px; }
  .axis-step { font-size: 8px; }
  .axis-step strong { writing-mode: vertical-rl; transform: rotate(180deg); height: 88px; }
  .axis-step span { display: block; }
  .question-header { padding: 25px 20px; }
  .question-number { font-size: 44px; }
  .answer-block { padding: 25px 20px; }
  .answer-heading p { font-size: 18px; }
  .scale { gap: 6px; }
  .scale button { aspect-ratio: 1; }
  .binary { grid-template-columns: 1fr; }
  .question-nav { grid-template-columns: 1fr 1fr; }
  .question-nav p { grid-area: 1 / 1 / 2 / 3; }
  .question-nav .button { width: 100%; }
  .results-toolbar { align-items: flex-start; }
  .results-toolbar > div { flex-direction: column; }
  .results-hero { flex-direction: column; padding: 28px 20px; }
  .submission-status { align-items: flex-start; flex-direction: column; }
  .overall-score { align-self: stretch; }
  .score-ring { width: 100px; height: 100px; }
  .score-ring small { bottom: 20px; }
  .thresholds { grid-template-columns: 1fr; }
  .history-item { grid-template-columns: 1fr auto; }
  .history-actions { grid-column: 1 / 3; justify-content: flex-end; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: white; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .shell { width: 100%; }
  .site-header,
  .no-print,
  .synthesis-section,
  .result-footer .button { display: none !important; }
  .screen { padding: 0; }
  .results-hero { padding: 24px; }
  .results-hero h1 { font-size: 54px; }
  .overall-score { transform: scale(.82); transform-origin: right bottom; }
  .result-grid { gap: 10px; margin-top: 14px; }
  .result-card { padding: 18px; break-inside: avoid; }
  .radar-chart { min-height: 260px; }
  .result-section { margin-top: 24px; break-inside: avoid; }
  .priority-card,
  .plan-card { min-height: 0; padding: 16px; }
  .priority-card h3,
  .plan-card h3 { font-size: 18px; }
  .section-heading { margin-bottom: 12px; }
  .result-footer { margin-top: 24px; }
}
