/* finesse · register=product · A=sage+forest · B=Chinese-sans-700/400 · C=question-list+one-step
 * D=feedback-only · E=quiet-surfaces · SOUL=5 SPECTACLE=1 DENSITY=6 · quieter · 2026-10-04 */
:root {
  color-scheme: light;
  --page: #f2f5f0;
  --paper: #fbfcf8;
  --panel: #eaf0e6;
  --sage: #dde7d7;
  --ink: #183e35;
  --body: #344c43;
  --muted: #627268;
  --green: #285f49;
  --green-hover: #1d4a38;
  --green-soft: #e1ede2;
  --on-green: #fafcf6;
  --apricot: #f3e4d1;
  --amber: #86551e;
  --amber-soft: #fbefdc;
  --error: #8e4436;
  --error-soft: #f8eae4;
  --border: rgba(24, 62, 53, .12);
  --border-strong: rgba(24, 62, 53, .22);
  --shadow: 0 2px 8px rgba(28, 58, 39, .035);
  --shadow-float: 0 18px 54px rgba(28, 58, 39, .12);
  --shadow-hover: 0 6px 18px rgba(24, 62, 53, .07);
  --shadow-marker: 0 3px 9px rgba(24, 62, 53, .21);
  --marker-ring: 0 0 0 5px rgba(40, 95, 73, .15);
  --shadow-nav: 0 -3px 16px rgba(24, 62, 53, .04);
  --nav-surface: var(--paper);
  --green-border: rgba(40, 95, 73, .17);
  --amber-border: rgba(134, 85, 30, .15);
  --dialog-overlay: rgba(24, 62, 53, .32);
  --radius: 16px;
  --radius-small: 10px;
  --nav-h: 72px;
  --z-nav: 40;
  --z-sticky: 30;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: var(--sans);
}
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-width: 320px; overflow-x: clip; background: var(--page); color: var(--body); font: 16px/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, a, label, summary { touch-action: manipulation; }
button { border: 0; color: inherit; cursor: pointer; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
img, svg { max-width: 100%; }
svg { flex-shrink: 0; }
p, h1, h2, h3, h4 { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; min-width: 0; }
h1 { font-size: 28px; line-height: 1.45; letter-spacing: -.025em; }
h2 { font-size: 20px; line-height: 1.6; letter-spacing: -.015em; }
h3 { font-size: 17px; line-height: 1.6; }
button:disabled, .button:disabled { opacity: .48; cursor: not-allowed; transform: none; box-shadow: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
[hidden] { display: none !important; }
.icon { display: inline-block; width: 21px; height: 21px; flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--muted); }
.main-content:focus { outline: none; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 20px; background: var(--ink); color: var(--on-green); border-radius: var(--radius-small); }
.skip-link:focus { top: 12px; }
.app-shell { min-height: 100dvh; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: var(--nav-h); padding: 14px max(24px, calc((100vw - 1000px) / 2)); border-bottom: 1px solid var(--border); background: var(--paper); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--ink); color: var(--on-green); }
.brand-mark .icon { width: 24px; height: 24px; }
.brand-copy { font-size: 18px; font-weight: 700; line-height: 1.4; }
.brand-copy small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 400; }
.site-nav { display: flex; align-items: center; gap: 5px; }
.nav-item { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 15px; border: 1px solid transparent; border-radius: var(--radius-small); background: transparent; color: var(--muted); font-size: 15px; white-space: nowrap; text-decoration: none; }
.nav-item:hover { background: var(--panel); color: var(--ink); }
.nav-item.active { background: var(--green-soft); color: var(--green); border-color: var(--green-border); font-weight: 700; }
.header-profile { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--body); font-size: 14px; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--panel); color: var(--ink); font-size: 14px; font-weight: 700; }
.workspace { min-width: 0; margin: 0; }
.main-content { width: 100%; max-width: 1048px; margin: 0 auto; padding: 28px 24px 32px; min-width: 0; }
.page-heading { margin-bottom: 24px; }
.page-heading .muted { margin-top: 7px; max-width: 720px; font-size: 16px; }
.eyebrow { color: var(--green); font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.section-heading p, .section-heading .muted { font-size: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; max-width: 100%; padding: 10px 18px; border: 1px solid transparent; border-radius: var(--radius-small); font-size: 15px; font-weight: 600; white-space: nowrap; text-align: center; text-decoration: none; transition: background .16s, border-color .16s; }
.button.primary { background: var(--green); color: var(--on-green); }
.button.primary:hover:not(:disabled) { background: var(--green-hover); }
.button.secondary { background: var(--paper); border-color: var(--border-strong); color: var(--ink); }
.button.secondary:hover:not(:disabled) { background: var(--green-soft); }
.button.ghost { color: var(--green); background: transparent; }
.button.ghost:hover:not(:disabled) { background: var(--green-soft); }
.button.small { min-height: 44px; padding: 8px 12px; font-size: 14px; }
.button .icon { width: 18px; height: 18px; }
.button:active:not(:disabled), .nav-item:active, .task-row:active { transform: translateY(1px); }
.tag, .badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; max-width: 100%; padding: 4px 8px; border-radius: 6px; font-size: 14px; font-weight: 600; line-height: 1.6; background: var(--panel); color: var(--muted); }
.badge.green, .green.badge { background: var(--green-soft); color: var(--green); }
.badge.amber, .amber.badge { background: var(--amber-soft); color: var(--amber); }
.task-list { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); overflow: clip; }
.task-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; min-height: 110px; padding: 22px 24px; border-bottom: 1px solid var(--border); color: var(--body); text-decoration: none; }
.task-row:last-child { border-bottom: 0; }
.task-row:hover { background: var(--panel); }
.task-number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 14px; font-weight: 700; }
.task-body { min-width: 0; }
.task-body strong { display: block; color: var(--ink); font-size: 18px; }
.task-body small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.task-state { color: var(--muted); font-size: 14px; }
.task-action { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--green); font-size: 15px; font-weight: 600; }
.task-action .icon { width: 18px; height: 18px; }
.camp-secondary { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; }
.subject-entry { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex: 1; min-width: 0; padding: 22px 24px; }
.subject-entry > div { min-width: 0; }
.subject-entry .muted { margin-top: 5px; font-size: 14px; }
.reading-tools { flex-shrink: 0; color: var(--muted); font-size: 14px; }
.reading-tools a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; white-space: nowrap; }
.subject-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.subject-card { display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); text-align: left; box-shadow: var(--shadow); }
.subject-card:hover { border-color: var(--border-strong); background: var(--panel); }
.subject-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--panel); color: var(--green); margin-bottom: 10px; }
.subject-name { color: var(--ink); font-size: 18px; font-weight: 700; }
.subject-status { font-size: 14px; color: var(--muted); margin-top: 3px; }
.subject-description { margin: 10px 0 16px; font-size: 14px; color: var(--muted); }
.subject-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); color: var(--green); font-size: 14px; }
.subject-footer .icon { width: 18px; height: 18px; }
.assessment-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; margin-bottom: 24px; }
.assessment-intro p { margin-top: 7px; font-size: 14px; color: var(--muted); }
.record-tools { margin-top: 24px; padding-top: 8px; border-top: 1px solid var(--border); }
.record-tools > summary { min-height: 48px; padding: 10px 0; color: var(--green); cursor: pointer; }
.record-tools .button { margin: 10px 10px 0 0; }
.task-note { margin-top: 14px; color: var(--muted); font-size: 14px; }
.reading-tools > span { display: block; }
.record-section { margin-top: 24px; }
.record-section > .card:not(details) { padding: 22px; }
.journal-history, .paused-records { margin-top: 22px; overflow: clip; }
.journal-history > summary, .paused-records > summary { min-height: 54px; padding: 15px 22px; color: var(--ink); font-weight: 600; cursor: pointer; }
.journal-history > summary > span, .paused-records > summary > span { margin-left: 10px; color: var(--muted); font-size: 14px; font-weight: 400; }
.record-tools.card { padding: 12px 22px 18px; }
.record-tools > p { font-size: 14px; }
.record-tool-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.record-tool-actions .button { margin: 0; }
.record-observations, .record-guidance { margin-top: 18px; }
.record-observations > summary, .record-guidance > summary { min-height: 44px; padding: 9px 0; color: var(--green); font-size: 14px; cursor: pointer; }
.record-observations[open] > summary { margin-bottom: 12px; }
.record-guidance p { max-width: 700px; font-size: 15px; }
.game-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 21px; }
.game-back { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--green); padding: 8px 0; font-size: 14px; white-space: nowrap; }
.game-title { flex: 1; min-width: 0; color: var(--ink); font-weight: 600; font-size: 15px; }
.game-title h1 { font-size: 24px; }
.game-title .muted { margin-top: 4px; font-size: 14px; font-weight: 400; }
.progress-label { color: var(--muted); font-size: 14px; white-space: nowrap; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 22px; align-items: start; }
.game-main, .evidence-aside, .report-main, .report-aside { min-width: 0; }
.evidence-aside { position: sticky; top: 22px; padding: 21px 19px; }
.evidence-aside h2 { font-size: 17px; }
.evidence-aside > .muted { font-size: 14px; }
.evidence-aside > .passport-tip { margin-top: 20px; }
.evidence-aside .clue-detail { padding: 14px; font-size: 14px; }
.evidence-aside .clue-detail h3 { font-size: 14px; margin-bottom: 7px; }
.scene-panel { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); }
.scene-header { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.scene-header h2 { font-size: 19px; }
.scene-header p { margin-top: 3px; font-size: 14px; color: var(--muted); }
.scene-board { position: relative; min-width: 0; isolation: isolate; overflow: clip; border-radius: 15px; background: var(--apricot); }
.scene-illustration { display: block; width: 100%; height: auto; }
.hotspot { position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 44px; height: 44px; transform: translate(-50%, -50%); border: 2px solid var(--paper); border-radius: 50%; background: var(--green); color: var(--on-green); font-size: 14px; font-weight: 700; line-height: 1.1; box-shadow: var(--shadow-marker); transition: background .16s, box-shadow .16s; }
.hotspot:hover { background: var(--green-hover); box-shadow: var(--marker-ring); }
.hotspot.found { color: var(--green); background: var(--paper); border-color: var(--green); }
.hotspot .icon { width: 19px; height: 19px; }
.scene-caption { display: flex; align-items: center; gap: 7px; margin-top: 13px; font-size: 14px; color: var(--muted); }
.scene-caption .icon { width: 15px; height: 15px; }
.clue-detail { padding: 18px 20px; margin-top: 15px; border: 1px solid var(--border); border-radius: var(--radius-small); background: var(--panel); }
.clue-title { font-size: 15px; color: var(--ink); font-weight: 700; }
.clue-body { margin-top: 7px; font-size: 14px; line-height: 1.9; color: var(--body); }
.clue-detail > .badge { margin-bottom: 8px; }
.clue-detail > .muted { margin-top: 7px; font-size: 14px; }
.clue-detail .source-link { display: inline-flex; margin-top: 9px; }
.evidence-aside > .card { padding: 21px 19px; }
.evidence-aside h3 { margin-bottom: 5px; font-size: 16px; }
.evidence-aside > .card > p { font-size: 14px; color: var(--muted); }
.evidence-list { display: grid; gap: 10px; margin-top: 18px; }
.evidence-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 10px; background: var(--panel); border: 1px solid transparent; border-radius: 10px; text-align: left; color: var(--muted); }
.evidence-item.found { border-color: var(--border); background: var(--paper); color: var(--body); }
.evidence-item.found:hover { border-color: var(--green); }
.evidence-number { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--sage); color: var(--green); font-size: 14px; font-weight: 700; }
.evidence-number .icon { width: 15px; height: 15px; }
.evidence-item > .icon { width: 14px; height: 14px; margin-left: auto; color: var(--muted); }
.evidence-text { font-size: 14px; min-width: 0; }
.evidence-text small { display: block; color: var(--muted); font-size: 14px; }
.progress-track { height: 6px; border-radius: 10px; background: var(--sage); overflow: clip; }
.progress-fill { height: 100%; border-radius: inherit; background: var(--green); transition: width .3s ease; }
.game-main > .progress-track { margin: 0 0 20px; }
.main-content > .progress-track { margin-bottom: 23px; }
.question-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 27px 28px; background: var(--paper); box-shadow: var(--shadow); }
.question-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 17px; }
.question-index { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.skill-tag { display: inline-flex; padding: 4px 8px; border-radius: 6px; background: var(--green-soft); color: var(--green); font-size: 14px; font-weight: 600; }
.question-card h2 { font-size: 22px; }
.question-prompt { margin: 14px 0 22px; color: var(--body); font-size: 15px; line-height: 1.95; }
.options { display: grid; gap: 11px; padding: 0; margin: 0; border: 0; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: clip; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.option { position: relative; display: flex; align-items: start; gap: 12px; padding: 15px 16px; min-height: 58px; border: 1px solid var(--border); border-radius: 12px; background: var(--paper); cursor: pointer; transition: background .16s, border-color .16s; }
.option:hover { background: var(--panel); border-color: var(--border-strong); }
.option.selected { background: var(--green-soft); border-color: var(--green); }
.option:focus-within { outline: 3px solid var(--green); outline-offset: 3px; }
.option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.option-letter { display: grid; place-items: center; width: 27px; height: 27px; flex-shrink: 0; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--paper); color: var(--muted); font-size: 14px; font-weight: 600; }
.option.selected .option-letter { border-color: var(--green); background: var(--green); color: var(--on-green); }
.option-text { min-width: 0; padding-top: 2px; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.option:has(input:disabled) { cursor: default; }
.confidence { margin: 23px 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--border); min-width: 0; }
.confidence-title { margin-bottom: 9px; color: var(--muted); font-size: 14px; }
.confidence-options { display: flex; flex-wrap: wrap; gap: 9px; }
.confidence-button { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 15px; border: 1px solid var(--border); border-radius: 9px; background: transparent; color: var(--muted); font-size: 14px; white-space: nowrap; cursor: pointer; }
.confidence-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.confidence-button:focus-within { outline: 3px solid var(--green); outline-offset: 3px; }
.confidence-button:hover { background: var(--panel); }
.confidence-button.selected { color: var(--green); border-color: var(--green); background: var(--green-soft); font-weight: 600; }
.question-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.question-actions .primary { margin-left: auto; }
.hint-box { display: flex; align-items: start; gap: 9px; margin-top: 17px; padding: 15px 17px; border: 1px solid var(--amber-border); border-radius: 12px; color: var(--amber); background: var(--amber-soft); font-size: 14px; line-height: 1.9; }
.hint-box > .icon { margin-top: 3px; width: 17px; height: 17px; }
.feedback { margin-top: 20px; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel); }
.feedback.correct { color: var(--green); border-color: var(--green-border); background: var(--green-soft); }
.feedback.incorrect { color: var(--amber); border-color: var(--amber-border); background: var(--amber-soft); }
.feedback-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.feedback-text { margin-top: 8px; font-size: 14px; line-height: 1.9; }
.followup { margin-top: 13px; padding-top: 13px; border-top: 1px dashed currentColor; font-size: 14px; line-height: 1.9; }
.followup h3 { margin: 12px 0 16px; font-size: 15px; font-weight: 500; }
.followup > .button { margin-top: 17px; }
.exploration-rules { display: grid; gap: 14px; margin: 21px 0; }
.exploration-rules p { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.exploration-rules b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--panel); color: var(--green); font-size: 14px; }

.result-hero { padding: 28px 30px; background: var(--panel); border: 1px solid var(--border); border-radius: 23px; margin-bottom: 23px; }
.result-hero h1 { font-size: 28px; }
.result-hero > p { margin-top: 10px; max-width: 660px; font-size: 14px; color: var(--muted); }
.result-hero > div:first-child > .icon { width: 24px; height: 24px; color: var(--green); margin-bottom: 9px; }
.result-hero > div:first-child > p { color: var(--muted); font-size: 14px; margin-top: 7px; }
.result-hero .hero-actions { margin-top: 22px; }
.result-stats { display: flex; flex-wrap: wrap; gap: 15px 35px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.result-stat { font-size: 14px; color: var(--muted); }
.result-stat strong { display: block; color: var(--ink); font-size: 25px; font-variant-numeric: tabular-nums; line-height: 1.3; margin-bottom: 4px; }
.report-layout { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 22px; align-items: start; }
.observation-list { display: grid; gap: 14px; }
.observation-card { border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; background: var(--paper); }
.observation-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.observation-top h3 { font-size: 16px; }
.observation-body { color: var(--body); font-size: 14px; line-height: 1.9; }
.observation-next { margin-top: 12px; padding: 12px 14px; background: var(--panel); border-radius: 9px; color: var(--green); font-size: 14px; line-height: 1.9; }
.observation-card .progress-track { margin-top: 13px; }
.report-aside > .card { padding: 22px; margin-bottom: 17px; }
.report-aside.card { padding: 24px 22px; display: flex; flex-direction: column; }
.report-aside > h2 { font-size: 19px; margin-bottom: 12px; }
.report-aside > .button { width: 100%; margin-top: 11px; font-size: 14px; }
.report-aside > p { font-size: 14px; line-height: 1.9; }
.report-main > .section-heading:not(:first-child) { margin-top: 28px; }
.report-main > .card:not(.reflection-card):not(.journal-list) { padding: 22px; }
.reflection-card { padding: 24px; margin-top: 23px; }
.reflection-card h2 { font-size: 19px; }
.reflection-card > .muted { margin-top: 10px; font-size: 14px; }
.reflection-card .save-status { margin-right: auto; font-size: 14px; }
.report-aside h3 { font-size: 16px; margin-bottom: 10px; }
.report-aside p { font-size: 14px; color: var(--muted); line-height: 1.9; }
.empty-state { padding: 55px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--paper); text-align: center; }
.empty-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 17px; background: var(--panel); color: var(--green); }
.empty-icon .icon { width: 29px; height: 29px; }
.empty-state h2 { font-size: 20px; }
.empty-state p { max-width: 470px; margin: 10px auto 23px; color: var(--muted); font-size: 14px; }
.empty-state .button { margin: 5px; }
.journal-item { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 20px 22px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 15px; background: var(--paper); }
.journal-meta { display: flex; flex-wrap: wrap; gap: 9px; color: var(--muted); font-size: 14px; margin-top: 5px; }
.journal-title { color: var(--ink); font-weight: 600; font-size: 15px; }
.journal-list { overflow: clip; }
.journal-list .journal-item { flex-wrap: nowrap; justify-content: flex-start; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; margin: 0; text-decoration: none; }
.journal-list .journal-item:last-child { border-bottom: 0; }
.journal-list .journal-item > div { flex: 1; min-width: 0; }
.journal-list .subject-icon { margin: 0; flex-shrink: 0; }
.journal-list .journal-item > .icon { width: 17px; height: 17px; }
.journal-list .journal-item:hover { background: var(--panel); }
.note-label { display: block; color: var(--ink); margin: 18px 0 8px; font-size: 14px; font-weight: 600; }
textarea { display: block; width: 100%; min-height: 136px; resize: vertical; padding: 13px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--paper); color: var(--body); font-size: 14px; line-height: 1.8; }
textarea::placeholder { color: var(--muted); }
textarea:hover { border-color: var(--green); }
.save-status { min-height: 22px; margin-top: 8px; color: var(--muted); font-size: 14px; }
.source-list { display: grid; gap: 12px; margin-top: 15px; }
.source-list summary { min-height: 44px; padding: 9px 0; cursor: pointer; color: var(--green); font-size: 14px; }
.source-list[open] summary { margin-bottom: 8px; }
.source-list .footnote { margin-top: 12px; }
.source-link { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; overflow-wrap: anywhere; }
.source-link .icon { width: 14px; height: 14px; }
.notice-banner, .resume-banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--green-soft); color: var(--green); font-size: 14px; }
.notice-banner .icon { width: 18px; height: 18px; }
.resume-banner > div { min-width: 0; }
.resume-banner small { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; }
.scope-note { display: flex; align-items: start; gap: 10px; padding: 13px 17px; margin: 17px 0; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); color: var(--muted); font-size: 14px; line-height: 1.9; }
.scope-note > .icon { width: 18px; height: 18px; margin-top: 3px; }
.scope-note strong { color: var(--body); }
.scope-note p + p { margin-top: 7px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; width: 100%; max-width: 1300px; margin: 0 auto; padding: 16px 38px 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footnote { margin-top: 23px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.toast { position: fixed; z-index: 80; bottom: 26px; left: calc(50% + var(--sidebar-width) / 2); width: max-content; max-width: calc(100vw - 36px); padding: 13px 20px; border-radius: 12px; background: var(--ink); color: var(--on-green); font-size: 14px; box-shadow: var(--shadow-float); opacity: 0; visibility: hidden; transform: translate(-50%, 12px); transition: opacity .18s, transform .18s, visibility .18s; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.confirm-dialog { width: min(430px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 28px; border: 1px solid var(--border); border-radius: 22px; background: var(--paper); color: var(--body); box-shadow: var(--shadow-float); }
.confirm-dialog::backdrop { background: var(--dialog-overlay); backdrop-filter: blur(3px); }
.confirm-dialog h2 { font-size: 21px; margin-bottom: 12px; }
.confirm-dialog p { color: var(--muted); font-size: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 23px; }


/* The former story and diagnostics keep their interactive components. */
.passport-tip { display: flex; align-items: start; gap: 8px; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.passport-tip .icon { width: 17px; height: 17px; margin-top: 4px; }
.evidence-aside > .evidence-panel { padding: 0; }
.evidence-panel > summary { padding: 16px 20px; min-height: 52px; color: var(--ink); font-weight: 600; cursor: pointer; }
.evidence-panel[open] { padding-bottom: 20px; }
.evidence-panel > :not(summary) { margin-inline: 20px; }
.evidence-panel .evidence-list { margin-top: 0; }
.site-footer { width: auto; max-width: 1000px; padding: 18px 0 24px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); border-top: 1px solid var(--border); font-size: 14px; }
.toast { left: 50%; }
textarea { font-size: 16px; }
.empty-state { padding: 30px 24px; }
.question-prompt, .option-text { font-size: 16px; }
.feedback-text, .observation-body { font-size: 15px; }
.game-layout { grid-template-columns: minmax(0, 1fr) 250px; }
.evidence-aside { position: static; padding: 0; }
.evidence-aside > details.card > summary { min-height: 44px; cursor: pointer; font-weight: 600; }
.evidence-aside > details.card[open] > summary { margin-bottom: 12px; }
.evidence-aside > details.card > p + p { margin-top: 10px; }
details.scope-note { display: block; }
details.scope-note > summary { min-height: 44px; padding: 7px 0; color: var(--green); font-size: 15px; cursor: pointer; }
details.scope-note[open] > summary { margin-bottom: 7px; }
.subject-grid + .assessment-intro { margin-top: 24px; }
@media (max-width: 1050px) {
  .site-header { padding-inline: 24px; }
  .site-footer { margin-inline: 24px; }
  .camp-secondary { align-items: stretch; flex-direction: column; gap: 10px; }
  .reading-tools { padding-inline: 4px; }
}
@media (max-width: 850px) {
  .header-profile > span:last-child { display: none; }
  .site-header { gap: 16px; }
  .game-layout, .report-layout { grid-template-columns: minmax(0, 1fr); }
  .subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .site-header { min-height: 64px; padding: 12px 20px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .brand-copy { font-size: 16px; }
  .brand-copy small { font-size: 11px; }
  .header-profile { display: none; }
  .site-nav { position: fixed; z-index: var(--z-nav); inset: auto 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--nav-surface); box-shadow: var(--shadow-nav); }
  .nav-item { flex-direction: column; gap: 2px; min-height: 52px; padding: 5px; font-size: 14px; line-height: 1.5; }
  .nav-item .icon { width: 20px; height: 20px; }
  .main-content { padding: 24px 20px 28px; }
  h1 { font-size: 23px; }
  .page-heading { margin-bottom: 20px; }
  .page-heading .muted { font-size: 15px; }
  .task-row { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 11px; min-height: 112px; padding: 18px; }
  .task-body strong { font-size: 17px; }
  .task-body small { font-size: 14px; }
  .task-state { grid-column: 2; font-size: 14px; }
  .task-action { grid-column: 3; grid-row: 1 / 3; font-size: 0; gap: 0; }
  .task-action .icon { width: 20px; height: 20px; }
  .task-number { width: 29px; height: 29px; align-self: start; margin-top: 4px; }
  .task-row:has(.task-state) { row-gap: 3px; }
  .subject-entry { padding: 20px; gap: 15px; flex-wrap: wrap; }
  .subject-entry h2 { font-size: 18px; }
  .camp-secondary { margin-top: 20px; }
  .subject-card { padding: 18px; }
  .assessment-intro { padding: 20px; align-items: stretch; flex-direction: column; gap: 15px; }
  .assessment-intro .button { align-self: start; }
  .game-header { flex-wrap: wrap; gap: 10px; }
  .game-title { order: 3; flex-basis: 100%; }
  .game-title h1 { font-size: 22px; }
  .progress-label { margin-left: auto; }
  .question-card { padding: 22px 20px; }
  .question-card h2 { font-size: 20px; }
  .question-top { flex-wrap: wrap; }
  .question-actions { flex-wrap: wrap; }
  .question-actions .primary { margin-left: auto; }
  .option { padding: 13px 12px; gap: 10px; }
  .confidence-options { gap: 8px; }
  .confidence-button { padding-inline: 11px; font-size: 14px; }
  .scene-panel { padding: 18px; }
  .result-hero { padding: 22px; }
  .result-stats { gap: 18px 26px; }
  .observation-card { padding: 20px; }
  .observation-top { align-items: start; flex-wrap: wrap; gap: 7px; }
  .report-aside.card { padding: 22px; }
  .site-footer { margin-inline: 20px; padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(85px + env(safe-area-inset-bottom)); font-size: 14px; }
}
@media (max-width: 480px) {
  .main-content { padding-inline: 16px; }
  .site-header { padding-inline: 16px; }
  .task-row { padding-inline: 16px; }
  .subject-grid { grid-template-columns: minmax(0, 1fr); }
  .subject-card { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0 12px; }
  .subject-card .subject-icon { grid-row: 1 / 3; margin: 3px 0 0; }
  .subject-description, .subject-footer { grid-column: 2; }
  .subject-footer { margin-top: 0; }
  .button { padding-inline: 15px; }
  .confidence-options { display: grid; grid-template-columns: minmax(0, 1fr); }
  .question-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .question-actions .button { margin-left: 0; width: 100%; }
  .evidence-list { grid-template-columns: minmax(0, 1fr); }
  .evidence-aside { padding: 20px 18px; }
  .report-main > .card:not(.reflection-card):not(.journal-list) { padding: 20px; }
  .journal-item { padding: 18px; }
  .site-footer { margin-inline: 16px; font-size: 14px; }
  .site-footer span { display: block; }
  .toast { padding: 12px 16px; }
  .confirm-dialog { padding: 24px 20px; }
  .dialog-actions .button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


