/* 亲密手记 · screens: letter landing, one-question pages, the reply letter. */

/* ---------- Landing: one letter ---------- */
.landing { padding: 4px 0 8px; }
.landing-hero { display: grid; grid-template-columns: 1fr; gap: 6px; align-items: center; }
.hero-title { font-family: var(--font-serif); font-size: clamp(30px, 8.6vw, 52px); line-height: 1.32; letter-spacing: .01em; margin: 0 0 14px; text-wrap: balance; }
.hero-intro { max-width: 30em; font-size: 16.5px; line-height: 1.85; color: var(--body); margin-bottom: 4px; }
.envelope-stage { position: relative; width: min(100%, 360px); margin: 6px auto 0; }
.envelope-button { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 18px; line-height: 0; }
.envelope-art { display: block; width: 100%; height: auto; overflow: visible; }
.envelope-art .letter { transition: transform 460ms var(--ease) 120ms; }
.envelope-art .flap-open { opacity: 0; transition: opacity 200ms ease 80ms; }
.envelope-art .flap-closed { transition: opacity 160ms ease; }
.envelope-art .seal { transform-box: fill-box; transform-origin: center; transition: opacity 180ms ease, transform 220ms var(--ease); }
.is-opening .envelope-art .flap-closed { opacity: 0; }
.is-opening .envelope-art .flap-open { opacity: 1; }
.is-opening .envelope-art .seal { opacity: 0; transform: scale(.6); }
.is-opening .envelope-art .letter { transform: translateY(-74px); }
.postmark-tag {
  position: absolute;
  right: -2px;
  top: 2px;
  width: 92px;
  height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 2px solid rgb(79 103 135 / 55%);
  outline: 1px solid rgb(79 103 135 / 35%);
  outline-offset: -8px;
  border-radius: 50%;
  color: rgb(79 103 135 / 85%);
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: .08em;
  transform: rotate(-12deg);
  pointer-events: none;
}
.postmark-tag b { font-size: 12px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.envelope-caption { margin: 2px 0 0; text-align: center; font-family: var(--font-serif); font-size: 15px; color: var(--muted); letter-spacing: .06em; }
.landing-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.resume-note { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }
.landing-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.landing-meta span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 10px 3px; border-radius: 50%; background: var(--faint); vertical-align: middle; }

.letter-topics { margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.topics-title { font-family: var(--font-serif); font-size: 23px; line-height: 1.45; margin-bottom: 16px; }
.topic-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.topic { position: relative; padding: 14px 16px 14px 20px; background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; }
.topic::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--line-strong); }
.topic-A::before { background: var(--post-blue); }
.topic-J::before { background: var(--post-red); }
.topic-B::before { background: var(--amber); }
.topic-D::before { background: var(--sage); }
.topic-name { display: block; color: var(--ink); font-weight: 600; font-size: 16.5px; line-height: 1.5; }
.topic-plain { display: block; margin-top: 2px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.topic-note { margin: 14px 0 0; font-size: 14.5px; line-height: 1.8; color: var(--muted); }

.sample-slip {
  position: relative;
  display: block;
  width: 100%;
  margin: 34px 0 0;
  padding: 26px 20px 20px;
  text-align: left;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-.8deg);
  color: var(--body);
}
.sample-slip::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--airmail); border-radius: 6px 6px 0 0; }
.slip-tag { display: inline-block; margin-bottom: 10px; padding: 2px 10px; border: 1px solid var(--seal); border-radius: 999px; color: var(--seal); font-size: 12.5px; letter-spacing: .06em; }
.slip-title { display: block; font-family: var(--font-serif); font-size: 24px; line-height: 1.4; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.slip-desc { display: block; font-size: 14.5px; line-height: 1.75; color: var(--muted); }
.slip-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--ink); font-weight: 600; font-size: 15px; }
.landing-footer { margin: 36px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.8; color: var(--muted); }
.landing-footer p { margin-bottom: 6px; }

/* ---------- Intro ---------- */
.intro-list { list-style: none; counter-reset: tip; margin: 8px 0 18px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.intro-list li { counter-increment: tip; position: relative; padding: 16px 18px 14px 56px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); }
.intro-list li::before { content: counter(tip); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--seal-soft); color: var(--seal); font-weight: 700; font-size: 14px; }
.intro-list h2 { font-size: 17px; line-height: 1.5; margin: 0 0 4px; }
.intro-list p { font-size: 15px; line-height: 1.75; color: var(--muted); margin: 0; }
.intro-details { border-top: 1px solid var(--line); padding-top: 6px; }
.intro-details summary { min-height: 48px; display: flex; align-items: center; color: var(--ink); font-weight: 600; font-size: 15px; }
.intro-details p { font-size: 15px; line-height: 1.85; color: var(--muted); }

/* ---------- One question per page ---------- */
html.quiz-active { scroll-behavior: auto; overflow-anchor: none; }
.screen-quiz .app-shell { padding-bottom: 8px; }
.quiz { max-width: 600px; margin: 0 auto; padding: 0 0 12px; display: flex; flex-direction: column; min-height: calc(100svh - 76px); animation: none; transition: opacity 150ms ease; }
.quiz .letter-card { min-height: var(--question-height, 0px); animation: none; }
.question-copy { transition: opacity 150ms ease; }
.quiz.is-changing .question-copy { opacity: 0; transition-duration: 90ms; }
.quiz.is-repositioning { opacity: 0; transition-duration: 90ms; }
.quiz-measure { animation: none !important; }
.quiz-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.quiz-count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.quiz-count b { font-family: var(--font-serif); font-size: 22px; color: var(--ink); font-weight: 600; margin-right: 2px; }
.progress { height: 5px; margin: 6px 0 8px; background: var(--line); border-radius: 5px; overflow: hidden; }
.progress-fill { display: block; height: 100%; max-width: 100%; background: var(--seal); border-radius: inherit; transition: width 240ms var(--ease); }
.progress-caption { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 14px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.letter-card {
  position: relative;
  padding: 26px 20px 20px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  animation: card-in 220ms var(--ease) both;
}
.letter-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: var(--radius) var(--radius) 0 0; background: var(--airmail); }
.letter-card.is-context::before { background: repeating-linear-gradient(-45deg, var(--sage) 0 9px, transparent 9px 15px); }
.q-label { display: inline-block; margin: 0 0 10px; padding: 1px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12.5px; color: var(--muted); letter-spacing: .06em; }
.q-title { font-family: var(--font-serif); font-size: 23px; line-height: 1.45; margin: 0 0 10px; text-wrap: balance; }
.q-stem { margin: 0; font-size: 19px; line-height: 1.75; color: var(--ink); overflow-wrap: break-word; }
.q-hint { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; line-height: 1.7; color: var(--muted); }
.answers { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.answers-prompt { margin: 0 0 2px; font-size: 14px; color: var(--muted); }
.answer-option {
  display: grid;
  grid-template-columns: auto 1fr 22px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 10px 16px;
  text-align: left;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  transition: border-color 140ms var(--ease), background 140ms var(--ease), box-shadow 140ms var(--ease);
}
.answer-dots { display: inline-flex; gap: 4px; }
.answer-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.answer-dots i.on { background: var(--line-strong); }
.answer-label { font-size: 17px; line-height: 1.4; }
.answer-check { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 13px; color: #fffaf2; }
.answer-option.selected { border-color: var(--seal); background: var(--seal-soft); box-shadow: 0 0 0 1px var(--seal) inset; }
.answer-option.selected .answer-dots i.on { background: var(--seal); }
.answer-option.selected .answer-check, .na-option.selected .answer-check { background: var(--seal); }
.na-option {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 2px;
  padding: 10px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--body);
  font-size: 15.5px;
}
.na-option small { color: var(--muted); font-size: 13px; }
.na-option .answer-check { display: inline-flex; visibility: hidden; }
.na-option.selected { border-style: solid; border-color: var(--seal); background: var(--seal-soft); color: var(--ink); }
.na-option.selected .answer-check { visibility: visible; }
.quiz-footer { margin-top: auto; padding: 18px 0 max(6px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.auto-next { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: var(--muted); }
.auto-next input { width: 18px; height: 18px; accent-color: var(--seal); margin: 0; }
.quiz-footer .btn { min-width: 132px; }
.quiz-footer .btn[data-action="quiz-next"] { min-width: 144px; padding-left: 12px; padding-right: 12px; font-size: 15px; white-space: nowrap; }
.keyboard-hint { display: none; margin: 8px 0 0; font-size: 12.5px; color: var(--muted); text-align: right; }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Review ---------- */
.review-list { list-style: none; margin: 8px 0 22px; padding: 0; border-top: 1px solid var(--line); }
.review-item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.review-no { flex: 0 0 auto; font-family: var(--font-serif); font-size: 17px; color: var(--faint); font-variant-numeric: tabular-nums; }
.review-text { flex: 1; min-width: 0; }
.review-text strong { display: block; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.5; }
.review-answer { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.review-item.unanswered .review-answer { color: var(--seal-deep); font-weight: 600; }
.review-go { flex: 0 0 auto; padding: 2px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; color: var(--muted); }

/* ---------- The reply letter ---------- */
.report-shell { max-width: 720px; margin: 0 auto; padding: 0 0 12px; }
.sample-switcher { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 14px; padding: 2px var(--gutter) 6px; scrollbar-width: none; }
.sample-switcher::-webkit-scrollbar { display: none; }
.sample-switcher button { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-height: 52px; max-width: 220px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--sheet); text-align: left; }
.sample-switcher b { font-size: 14px; color: var(--ink); }
.sample-switcher small { font-size: 12.5px; color: var(--muted); line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.sample-switcher button.selected { border-color: var(--seal); background: var(--seal-soft); box-shadow: 0 0 0 1px var(--seal) inset; }

.reply-head { position: relative; padding: 30px 20px 22px; background: var(--sheet); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.airmail-edge { position: absolute; left: 0; right: 0; top: 0; height: 7px; border-radius: 16px 16px 0 0; background: var(--airmail); }
.reply-postage { position: absolute; right: 16px; top: 22px; width: 92px; height: 78px; pointer-events: none; }
.reply-postage .stamp { position: absolute; right: 0; top: 0; width: 54px; height: 64px; display: flex; align-items: center; justify-content: center; background: #f1e3cf; border: 3px dotted var(--sheet); outline: 1px solid var(--line-strong); }
.reply-postage .stamp svg { width: 32px; height: 32px; fill: none; stroke: var(--seal); stroke-width: 1.6; }
.reply-postage .postmark { position: absolute; left: 0; top: 16px; width: 62px; height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1.5px solid rgb(79 103 135 / 60%); border-radius: 50%; color: rgb(79 103 135 / 90%); transform: rotate(-14deg); background: rgb(255 250 242 / 40%); }
.reply-postage .postmark b { font-family: var(--font-serif); font-size: 15px; line-height: 1.1; }
.reply-postage .postmark small { font-size: 9.5px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.reply-to { margin: 0 0 2px; font-size: 13px; letter-spacing: .14em; color: var(--muted); }
.reply-heading { font-family: var(--font-serif); font-size: 19px; font-weight: 600; color: var(--seal); margin: 0 0 18px; letter-spacing: .08em; padding-right: 100px; }
.sample-stamp { display: inline-block; margin: 0 0 8px; padding: 3px 12px; border: 1.5px solid var(--seal); border-radius: 999px; color: var(--seal); font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.sample-note { margin: -8px 100px 16px 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.hero-result { margin: 0; }
.hero-result .section-kicker { margin-bottom: 6px; }
.hero-result-title { font-family: var(--font-serif); font-size: clamp(27px, 7.4vw, 38px); line-height: 1.35; margin: 0 0 14px; text-wrap: balance; }
.hero-result .report-prose { font-size: 17px; line-height: 1.9; color: var(--body); }
.reply-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 16px 0 0; }
.reply-meta span { padding: 2px 10px; border-radius: 999px; background: var(--paper); font-size: 13px; color: var(--muted); }
.report-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.report-actions .btn { min-height: 48px; font-size: 15px; padding: 10px 18px; }
.reply-empty .reply-lead { font-size: 16px; color: var(--muted); }

.report-nav { position: sticky; top: 0; z-index: 20; display: flex; gap: 6px; overflow-x: auto; margin: 14px calc(var(--gutter) * -1) 0; padding: 10px var(--gutter); background: rgb(246 239 228 / 94%); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.report-nav::-webkit-scrollbar { display: none; }
.report-nav-link { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--sheet); font-size: 14px; color: var(--body); text-decoration: none; white-space: nowrap; }
@supports (backdrop-filter: blur(6px)) { .report-nav { background: rgb(246 239 228 / 82%); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); } }

.report-reading { padding-top: 8px; }
.report-section { scroll-margin-top: 72px; }
.report-section-title { font-size: 19px; line-height: 1.5; margin: 0 0 10px; }
.report-prose { font-size: 16.5px; line-height: 1.9; color: var(--body); overflow-wrap: anywhere; }
.report-prose p { margin: 0 0 12px; }
.report-prose p:last-child { margin-bottom: 0; }
.coverage { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.group-title { font-family: var(--font-serif); font-size: 23px; line-height: 1.4; margin: 0 0 14px; }

.boundary-card { margin: 22px 0 0; padding: 20px 18px 18px 20px; background: var(--seal-soft); border: 1px solid #e3c2b6; border-left: 5px solid var(--seal); border-radius: 12px; }
.boundary-card .section-kicker { color: var(--seal-deep); }
.boundary-card .report-section-title { color: var(--seal-deep); }
.boundary-card .report-prose { color: var(--ink); }

.report-overview { margin: 26px 0 0; padding: 22px 18px 18px; background: var(--sheet); border: 1px solid var(--line); border-radius: 16px; scroll-margin-top: 72px; }
.score-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.score-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.score-name { font-size: 17px; font-weight: 600; color: var(--ink); }
.score-value { font-family: var(--font-serif); font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.score-value small, .score-value-inline small { font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.score-plain { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.meter { position: relative; height: 10px; margin: 10px 0 6px; background: var(--paper-deep); border-radius: 10px; overflow: hidden; }
.meter-fill { display: block; height: 100%; max-width: 100%; border-radius: inherit; background: var(--ink); transition: width 300ms var(--ease); }
.meter-tick { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--sheet); opacity: .9; }
.meter-empty { background: repeating-linear-gradient(90deg, var(--paper-deep) 0 6px, transparent 6px 10px); }
[data-dimension="A"] .meter-fill { background: var(--post-blue); }
[data-dimension="J"] .meter-fill { background: var(--post-red); }
[data-dimension="B"] .meter-fill { background: var(--amber); }
[data-dimension="D"] .meter-fill { background: var(--sage); }
[data-context="P"] .meter-fill { background: var(--ink); }
.score-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; margin: 0; font-size: 14px; }
.score-level { color: var(--ink); font-weight: 600; }
.score-caption .coverage { margin: 0; }
.score-context { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.score-context-label { margin: 0 0 4px; font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.score-explainer { margin: 16px 0 0; font-size: 13.5px; line-height: 1.75; color: var(--muted); }

.reading-notes { margin: 22px 0 0; padding: 16px 18px 6px; border: 1px dashed var(--line-strong); border-radius: 14px; }
.notes-title { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
.note-item { padding: 8px 0 12px; }
.note-item + .note-item { border-top: 1px solid var(--line); padding-top: 12px; }
.note-item .report-section-title { font-size: 16px; margin-bottom: 4px; }
.note-item .report-prose { font-size: 15px; line-height: 1.8; color: var(--muted); }

.profile-trio { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 26px 0 0; }
.trio-card { padding: 18px 18px 16px; background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; border-top: 4px solid var(--line-strong); }
.trio-strength { border-top-color: var(--sage); }
.trio-blindspot { border-top-color: var(--amber); }
.trio-need { border-top-color: var(--post-blue); }
.trio-card .report-section-title { font-size: 17px; margin-bottom: 6px; }
.trio-strength .report-section-title { color: var(--sage); }
.trio-blindspot .report-section-title { color: var(--amber); }
.trio-need .report-section-title { color: var(--post-blue); }

.reading-group { margin: 36px 0 0; display: flex; flex-direction: column; gap: 14px; }
.reading-intro { padding: 0 2px 4px; }
.reading-intro .report-section-title { font-family: var(--font-serif); font-size: 23px; }
.reading-intro .report-prose { color: var(--muted); font-size: 16px; }
.dimension-card { padding: 20px 18px 16px; background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; }
.dimension-card .report-section-title { font-size: 19px; margin-bottom: 6px; }
.level-chip { display: inline-block; margin: 0 0 10px; padding: 1px 10px; border-radius: 999px; background: var(--paper); font-size: 13.5px; color: var(--ink); }
#report-dimension_A .level-chip { background: var(--blue-soft); }
#report-dimension_J .level-chip { background: #f6e2dd; }
#report-dimension_B .level-chip { background: var(--amber-soft); }
#report-dimension_D .level-chip { background: var(--sage-soft); }
.detail-card { margin: -4px 0 0 14px; padding: 6px 0 6px 16px; border-left: 2px solid var(--line-strong); }
.detail-card .report-section-title { font-size: 17px; }
.detail-card .report-prose { font-size: 16px; }

.evidence { margin-top: 12px; border-top: 1px solid var(--line); }
.evidence summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; list-style: none; color: var(--ink); font-size: 15px; font-weight: 600; }
.evidence summary::-webkit-details-marker { display: none; }
.evidence-icon { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); font-weight: 400; transition: transform 160ms var(--ease); }
.evidence[open] .evidence-icon { transform: rotate(45deg); }
.evidence-note { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.evidence-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.evidence-item { padding: 10px 12px; background: var(--paper); border-radius: 10px; font-size: 15px; line-height: 1.7; }
.evidence-kicker { display: block; margin-bottom: 2px; font-size: 13px; color: var(--muted); }
.evidence-item p { margin: 0 0 4px; color: var(--ink); }
.evidence-answer { font-size: 14px; color: var(--seal-deep); font-weight: 600; }

.context-card { margin: 26px 0 0; padding: 20px 18px 16px; background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; border-left: 5px solid var(--sage); }
.context-meter { margin-bottom: 10px; }
.context-meter .score-caption { justify-content: space-between; }
.score-value-inline { font-family: var(--font-serif); font-weight: 600; color: var(--ink); }

.combo-group { margin: 26px 0 0; display: flex; flex-direction: column; gap: 12px; }
.combo-group > .section-kicker { margin-bottom: 0; }
.combo-card { padding: 18px; background: var(--paper-deep); border-radius: 14px; }
.combo-card .report-section-title { font-size: 17px; }

.postscript { position: relative; margin: 34px 0 0; padding: 26px 20px 20px; background: var(--sheet); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); scroll-margin-top: 72px; }
.ps-mark { position: absolute; top: -14px; left: 18px; margin: 0; padding: 2px 12px; border-radius: 999px; background: var(--seal); color: #fffaf2; font-size: 13px; font-weight: 600; letter-spacing: .14em; }
.ps-action .report-section-title { font-family: var(--font-serif); font-size: 23px; }
.ps-script { margin-top: 18px; }
.script-label { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .06em; }
.script-block { position: relative; margin: 0; padding: 16px 18px 16px 44px; background: var(--seal-soft); border-radius: 12px; font-family: var(--font-serif); font-size: 18.5px; line-height: 1.8; color: var(--ink); }
.script-block::before { content: "“"; position: absolute; left: 12px; top: 2px; font-size: 44px; line-height: 1; color: var(--seal); opacity: .6; }
.script-block p { margin: 0 0 8px; }
.script-block p:last-child { margin-bottom: 0; }
.closing-section { margin: 30px 0 0; padding: 0 2px; }
.closing-section .report-section-title { font-family: var(--font-serif); font-size: 20px; }
.closing-section .report-prose { color: var(--muted); font-size: 16px; }

.share-panel { margin: 36px 0 0; padding-top: 26px; border-top: 1px solid var(--line); text-align: center; }
.postcard { position: relative; width: min(100%, 360px); margin: 6px auto 14px; padding: 30px 22px 18px; background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-md); text-align: left; transform: rotate(-.6deg); }
.postcard-edge { position: absolute; left: 0; right: 0; top: 0; height: 7px; border-radius: 10px 10px 0 0; background: var(--airmail); }
.postcard-kicker { margin: 0 0 6px; font-size: 13px; color: var(--muted); letter-spacing: .08em; }
.postcard-title { font-family: var(--font-serif); font-size: 28px; line-height: 1.4; margin: 0 0 14px; }
.postcard-line { position: relative; margin: 0 0 18px; padding-top: 12px; font-family: var(--font-serif); font-size: 17px; line-height: 1.7; color: var(--ink); }
.postcard-line::before { content: ""; position: absolute; left: 0; top: 0; width: 36px; height: 3px; background: var(--seal); border-radius: 2px; }
.postcard-foot { margin: 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.share-note { max-width: 26em; margin: 0 auto 14px; font-size: 14px; line-height: 1.75; color: var(--muted); }
.report-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.report-footer p { margin-bottom: 4px; }

/* ---------- Wider screens ---------- */
@media (hover: hover) and (pointer: fine) {
  .envelope-button:hover .letter { transform: translateY(-10px); }
  .is-opening .envelope-button:hover .letter, .is-opening .envelope-art .letter { transform: translateY(-74px); }
  .answer-option:hover, .na-option:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
  .answer-option.selected:hover { border-color: var(--seal); }
  .review-item:hover strong { text-decoration: underline; text-underline-offset: 4px; }
  .report-nav-link:hover, .sample-switcher button:hover { border-color: var(--line-strong); }
  .sample-slip:hover { box-shadow: var(--shadow-md); }
  .keyboard-hint { display: block; }
}
@media (min-width: 560px) {
  .topic-list { grid-template-columns: 1fr 1fr; }
  .landing-actions { flex-direction: row; flex-wrap: wrap; }
  .landing-actions .btn-wide { width: auto; flex: 1 1 200px; }
  .landing-meta { width: 100%; justify-content: flex-start; }
  .resume-note { width: 100%; text-align: left; }
  .reply-head { padding: 36px 30px 26px; }
  .report-overview, .dimension-card, .trio-card, .context-card { padding-left: 24px; padding-right: 24px; }
  .postscript { padding: 30px 28px 24px; }
}
@media (min-width: 880px) {
  .landing-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "copy art" "actions art"; column-gap: 56px; padding-top: 28px; }
  .landing-copy { grid-area: copy; align-self: end; }
  .envelope-stage { grid-area: art; width: 100%; max-width: 420px; }
  .landing-actions { grid-area: actions; align-self: start; }
  .letter-topics { margin-top: 56px; }
  .topic-list { grid-template-columns: repeat(4, 1fr); }
  .sample-slip { max-width: 520px; }
  .profile-trio { grid-template-columns: 1fr; }
}

/* ---------- Small phones ---------- */
@media (max-width: 380px) {
  .q-title { font-size: 21px; }
  .q-stem { font-size: 18px; }
  .letter-card { padding: 24px 16px 16px; }
  .answer-option { gap: 10px; padding: 10px 12px; }
  .answer-dots { gap: 3px; }
  .answer-dots i { width: 6px; height: 6px; }
  .answer-label { font-size: 16px; }
  .quiz-footer .btn { min-width: 0; padding-left: 16px; padding-right: 16px; }
  .reply-head { padding: 28px 16px 20px; }
  .reply-postage { transform: scale(.86); transform-origin: right top; right: 10px; }
  .postmark-tag { width: 80px; height: 80px; font-size: 9.5px; }
}
/* Short landscape screens: keep the answer list reachable. */
@media (max-height: 520px) and (orientation: landscape) {
  .quiz { min-height: 0; }
  .envelope-stage { max-width: 260px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .view, .letter-card, .modal, .modal-backdrop { animation: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .envelope-button:hover .letter { transform: none; }
}

/* ---------- Print: the full letter, nothing interactive ---------- */
@media print {
  @page { size: A4; margin: 16mm; }
  html, body { min-width: 0; background: #fff !important; }
  body { font-size: 11pt; color: #2e2328; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body::before, .site-header, .report-nav, .report-actions, .sample-switcher, .share-panel, .modal-backdrop, .toast, .reply-postage, .keyboard-hint { display: none !important; }
  .app-shell, .report-shell { max-width: none; width: 100%; padding: 0; margin: 0; }
  .reply-head, .report-overview, .dimension-card, .trio-card, .context-card, .postscript, .combo-card, .boundary-card, .reading-notes { box-shadow: none !important; break-inside: avoid; }
  .reply-heading, .sample-note { padding-right: 0; margin-right: 0; }
  .report-prose, .hero-result .report-prose { font-size: 10.5pt; line-height: 1.75; }
  .report-section-title, h1, h2, h3 { break-after: avoid; }
  .evidence summary { display: none; }
  .view { animation: none; }
  a { color: inherit; text-decoration: none; }
}
