:root {
  --white: #ffffff; --paper: #f1f6f6; --ink: #303c40; --muted: #68757b;
  --line: #dce4e5; --green: #39756a; --green-wash: #eaf3ef; --red: #b25260;
  --red-wash: #faedef; --ochre: #947626; --blue: #4c7299; --radius: 3px;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", "STSong", serif;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: 15px; color: var(--ink); background: var(--white); letter-spacing: 0;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .38; }
a { color: var(--green); text-underline-offset: 4px; }
button { color: inherit; }
button, select, input, textarea { border-radius: var(--radius); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible, summary:focus-visible {
  outline: 3px solid #709cce; outline-offset: 3px;
}
[hidden] { display: none !important; }
svg { width: 19px; height: 19px; flex: 0 0 auto; stroke-width: 1.7; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: 29px; font-weight: 400; line-height: 1.4; }
h2 { font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1.5; }
h3 { font-size: 17px; font-weight: 500; line-height: 1.6; }
p { line-height: 1.85; }
.app-header { min-height: 92px; margin: auto; padding: 19px max(40px, calc((100% - 1280px) / 2)); display: flex; align-items: center; gap: 22px; background: #ffffff; color: var(--ink); border-top: 4px solid #b25260; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { width: 43px; height: 43px; background: #b25260; border: 1px solid #b25260; color: #ffffff; display: grid; place-items: center; border-radius: 1px; }
.brand-mark svg { width: 26px; height: 26px; }
.brand-name { display: block; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1.3; }
.brand-sub { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.header-meta { margin-left: auto; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 12px; }
.app-header .divider { background: var(--line); }
.app-header .icon-button:hover { background: var(--paper); border-color: var(--line); }
.motion-button { border-color: var(--line); color: var(--green); }
.motion-button[aria-pressed="false"] { color: var(--red); }
.app-header button:disabled { opacity: .6; }
.divider { height: 14px; width: 1px; background: var(--line); }
.icon-button { width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; background: transparent; flex: 0 0 auto; }
.icon-button:hover { background: var(--paper); border-color: var(--line); }
.icon-button.small { width: 29px; height: 29px; }
.view-tabs { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #ffffff; }
.tab-inner { display: flex; max-width: 1280px; margin: auto; gap: 36px; padding: 0 0; }
.view-tabs button { display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 0; background: none; padding: 18px 5px; color: var(--muted); position: relative; font-size: 15px; min-width: 100px; }
.view-tabs button[aria-selected="true"] { color: var(--red); font-weight: 500; }
.view-tabs button[aria-selected="true"]::after { content: ""; position: absolute; bottom: -1px; height: 2px; background: var(--red); left: 0; right: 0; }
main { max-width: 1280px; margin: 0 auto; padding: 34px 0 50px; min-height: calc(100vh - 228px); }
main:focus { outline: none; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.section-heading p { font-size: 14px; color: var(--muted); margin: 0; }
.section-heading h1 { font-family: var(--serif); font-size: 30px; font-weight: 400; color: #3d596c; }
.middle-dot { padding: 0 6px; }
.status-label { display: inline-flex; gap: 7px; align-items: center; font-size: 12px; line-height: 1.7; color: var(--muted); flex-shrink: 0; }
.status-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.warning { color: var(--red); }
.reader-workspace { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 30px; border-top: 1px solid var(--line); }
.page-index { padding-top: 21px; border-right: 1px solid var(--line); padding-right: 21px; }
.rail-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.rail-label span { color: #929991; }
.index-item { display: flex; align-items: flex-start; width: 100%; text-align: left; border: 0; background: none; padding: 10px 10px; gap: 12px; font-size: 12px; line-height: 1.6; border-left: 2px solid transparent; border-radius: 0 4px 4px 0; margin-bottom: 2px; min-height: 41px; }
.index-item .page-num { color: #929991; font-size: 11px; padding-top: 1px; font-variant-numeric: tabular-nums; }
.index-item:hover { background: var(--paper); }
.index-item[aria-current="page"] { background: #f9edf0; color: var(--red); border-left-color: var(--red); font-weight: 500; }
.index-item[aria-current="page"] .page-num { color: var(--red); }
.rail-note { display: flex; gap: 10px; padding: 24px 3px 0; margin-top: 17px; border-top: 1px solid var(--line); color: var(--muted); }
.rail-note p { font-size: 12px; margin: 0; }
.rail-note svg { width: 17px; margin-top: 4px; }
.reading-surface { min-width: 0; }
.reader-toolbar { display: flex; align-items: center; gap: 9px; padding: 15px 0; color: var(--muted); font-size: 12px; }
.reader-toolbar select { border: 1px solid var(--line); padding: 6px 30px 6px 10px; font-size: 12px; background: white; max-width: 315px; }
.page-select-label { display: none; }
.toolbar-right { margin-left: auto; font-variant-numeric: tabular-nums; }
#story-page { min-height: 512px; }
#story-page:focus { outline: none; }
.story-cover { position: relative; margin: 0; background: #edf4f5; }
.bridge-plate { position: relative; width: 100%; aspect-ratio: 1600 / 720; isolation: isolate; }
.story-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bridge-motion { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.plate-heading { position: absolute; top: 6%; left: 4.5%; right: 4.5%; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #3b6268; font-family: var(--serif); font-size: 19px; line-height: 1.5; }
.plate-slash { color: #b25260; margin: 0 8px; }
.plate-code { font-family: Consolas, monospace; color: #67898c; font-size: 12px; }
.atlas-marker { position: absolute; background: #ffffffeb; color: #396b63; border: 1px solid #a7beb4; padding: 8px 11px; display: inline-flex; align-items: center; gap: 9px; font-size: 12px; line-height: 1.5; border-radius: 1px; }
.atlas-marker:hover { background: #ffffff; border-color: #39756a; }
.atlas-marker b { font-family: Consolas, monospace; font-weight: 400; color: #6f8a80; margin-right: 8px; font-size: 10px; }
.atlas-marker svg { width: 14px; height: 14px; }
.marker-cross { width: 8px; height: 8px; border: 1px solid #39756a; flex: 0 0 auto; }
.marker-arch { left: 17%; top: 21%; }
.marker-image { right: 5%; bottom: 7%; color: #a34c5b; border-color: #c9a6aa; }
.marker-image .marker-cross { border-color: #b25260; }
.marker-image b { color: #ac7981; }
.marker-image:hover { background: #ffffff; border-color: #b25260; }
.marker-arch::after { content: ""; position: absolute; height: 30px; width: 1px; background: #507265; left: 18px; top: 100%; }
.plate-bottom { position: absolute; bottom: 7%; left: 4.5%; display: flex; align-items: center; gap: 20px; color: #f1f7f4; font-size: 11px; }
.plate-scale { display: block; width: 76px; height: 7px; border-bottom: 1px solid #699e87; background: repeating-linear-gradient(90deg, #699e87 0 1px, transparent 1px 9px); }
.story-cover .cover-caption { display: flex; justify-content: space-between; padding: 13px 0; gap: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; background: #ffffff; }
.cover-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-top: 22px; }
.cover-intro h2 { font-size: 24px; margin: 0 0 8px; }
.cover-intro p { font-size: 13px; color: var(--muted); max-width: 620px; margin-bottom: 10px; }
.page-number-large { font-family: Georgia, var(--serif); font-size: 46px; color: #bd7d85; line-height: 1; font-weight: 400; font-variant-numeric: tabular-nums; }
.story-meta { font-size: 12px; color: var(--muted); display: flex; gap: 12px; align-items: center; margin-top: 8px; margin-bottom: 24px; }
.story-heading { font-size: 27px; margin: 0 0 24px; }
.story-narrative { max-width: 710px; padding: 0 8px 16px 0; font-family: var(--serif); }
.story-narrative p { font-size: 18px; line-height: 2; margin-bottom: 18px; }
.story-narrative blockquote { border-left: 2px solid #c59199; margin: 24px 0; padding: 4px 0 4px 24px; font-size: 19px; line-height: 1.9; color: #815367; }
.story-production { padding: 16px 0 4px; border-top: 1px solid var(--line); }
.story-production h3 { color: var(--muted); font-size: 12px; font-weight: 500; margin-bottom: 8px; }
.story-production p { color: var(--muted); font-size: 13px; line-height: 1.85; max-width: 780px; }
.story-evidence { padding: 16px 0 10px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.evidence-label { color: var(--muted); font-size: 12px; margin-right: 3px; }
.fact-chip { display: inline-flex; gap: 6px; align-items: center; background: transparent; color: var(--green); border: 1px solid var(--line); padding: 6px 9px; border-radius: 4px; font-size: 12px; line-height: 1.5; }
.fact-chip svg { width: 13px; height: 13px; }
.fact-chip:hover { background: var(--green-wash); }
.pagination { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 20px 0 0; gap: 10px; margin-top: 12px; }
.pagination > span { color: var(--muted); font-size: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 15px; min-height: 40px; border: 1px solid transparent; text-decoration: none; font-size: 13px; line-height: 1.6; border-radius: var(--radius); }
.button svg { width: 17px; height: 17px; }
.button.primary { background: var(--green); color: white; }
.button.primary:not(:disabled):hover { background: #1d4e3d; }
.button.secondary { background: white; border-color: var(--line); color: var(--ink); }
.button.secondary:not(:disabled):hover { background: var(--paper); }
.button.danger { color: var(--red); background: white; border-color: #d9b6b3; }
.text-button { background: none; border: 0; color: var(--green); font-size: 12px; padding: 6px 0; display: inline-flex; gap: 5px; align-items: center; text-align: left; line-height: 1.7; }
.text-button svg { width: 14px; height: 14px; }
.category { font-size: 11px; padding: 3px 8px; border-radius: 3px; line-height: 1.6; display: inline-block; font-weight: 500; }
.category.supported { color: var(--green); background: var(--green-wash); }
.category.uncertain { color: var(--red); background: var(--red-wash); }
.category.legend { color: var(--ochre); background: #f7f2e6; }
.category.creative { color: var(--blue); background: #edf2f7; }
.evidence-tools { display: flex; align-items: center; gap: 24px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; }
.search-field { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; gap: 9px; width: 350px; min-height: 43px; }
.search-field input { width: 100%; min-width: 0; background: none; border: 0; outline: none; font-size: 13px; }
.search-field:focus-within { outline: 2px solid #709cce; outline-offset: 2px; }
.search-field input:focus-visible { outline: none; }
.search-field svg { color: var(--muted); width: 17px; height: 17px; }
.filter-group { display: flex; gap: 4px; }
.filter-group button { border: 0; background: none; padding: 8px 13px; font-size: 13px; color: var(--muted); }
.filter-group button[aria-pressed="true"] { background: var(--green-wash); color: var(--green); font-weight: 500; }
.result-line { display: flex; justify-content: space-between; margin: 21px 0 16px; color: var(--muted); font-size: 12px; gap: 15px; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fact-card { border: 1px solid var(--line); border-radius: 2px; padding: 23px 24px 18px; border-top: 3px solid #78a18f; background: #fcfefd; }
.fact-card:has(.uncertain) { border-top-color: #bc7984; background: #fffafb; }
.fact-card:has(.legend) { border-top-color: #c1a451; background: #fffdf7; }
.fact-card:has(.creative) { border-top-color: #7898b9; background: #f9fbfe; }
.fact-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.mono { font-family: Consolas, "Courier New", monospace; font-size: 12px; color: var(--muted); }
.fact-card h2 { font-size: 19px; margin: 0 0 10px; }
.fact-card .claim { font-size: 14px; min-height: 52px; margin-bottom: 15px; }
.fact-card-bottom { display: flex; justify-content: space-between; gap: 14px; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; font-size: 11px; color: var(--muted); }
.empty-state { grid-column: 1/-1; text-align: center; padding: 72px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty-state h2 { font-size: 21px; margin: 15px 0 8px; }
.empty-state p { font-size: 13px; color: var(--muted); }
.empty-state > svg { width: 35px; height: 35px; color: #8a9d91; }
.source-register { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 24px; }
.source-register h2 { font-size: 20px; margin-bottom: 7px; }
.source-register > p { color: var(--muted); font-size: 13px; }
.source-row { display: grid; grid-template-columns: 45px 1fr auto; gap: 20px; padding: 20px 0; align-items: start; border-bottom: 1px solid var(--line); }
.source-row h3 { margin-bottom: 5px; font-size: 15px; }
.source-row p { color: var(--muted); font-size: 12px; margin: 0; }
.source-row .button { font-size: 12px; min-height: 35px; padding: 6px 10px; }
.challenge-workspace { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 40px; border-top: 1px solid var(--line); }
.challenge-progress { border-right: 1px solid var(--line); padding: 28px 24px 24px 0; }
.score-number { font-size: 38px; line-height: 1.3; font-weight: 300; color: var(--green); }
.score-number span { font-size: 16px; color: var(--muted); margin-left: 7px; }
.challenge-progress p { font-size: 12px; color: var(--muted); }
.progress-track { height: 4px; background: var(--paper); margin: 16px 0 26px; }
.progress-track span { display: block; height: 100%; background: var(--green); }
.question-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.question-index button { min-height: 40px; background: white; border: 1px solid var(--line); font-size: 12px; }
.question-index button.current { border-color: var(--green); color: var(--green); background: var(--green-wash); }
.question-index button.done::after { content: ""; display: inline-block; width: 5px; height: 5px; background: var(--green); border-radius: 50%; margin-left: 5px; vertical-align: middle; }
.exercise-scope { border-top: 1px solid var(--line); margin-top: 27px; padding-top: 20px; }
.exercise-scope strong { font-weight: 500; color: var(--ink); }
.question-area { padding-top: 28px; max-width: 800px; }
.question-area h2 { font-size: 23px; margin: 14px 0 14px; }
.question-origin { font-size: 12px; line-height: 1.8; color: var(--muted); margin-bottom: 16px; }
.question-material { background: var(--paper); border-left: 3px solid #a8bdb1; padding: 18px 21px; margin-bottom: 23px; font-size: 16px; line-height: 1.9; }
.question-prompt { font-size: 16px; font-weight: 500; line-height: 1.8; }
fieldset { padding: 0; margin: 0 0 22px; border: 0; min-width: 0; }
legend { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.category-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.option { display: flex; justify-content: center; align-items: center; gap: 7px; cursor: pointer; padding: 12px 8px; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; }
.option:has(input:checked) { border-color: var(--green); color: var(--green); background: var(--green-wash); }
.option input { margin: 0; accent-color: var(--green); }
.reason-label { display: flex; align-items: center; justify-content: space-between; font-size: 13px; margin-bottom: 10px; }
.reason-label span { font-size: 11px; color: var(--muted); }
textarea { display: block; width: 100%; min-height: 95px; resize: vertical; border: 1px solid var(--line); padding: 12px 14px; line-height: 1.8; font-size: 14px; background: white; color: var(--ink); }
textarea:disabled { background: var(--paper); opacity: 1; }
.form-actions { display: flex; align-items: center; gap: 15px; margin-top: 14px; }
.validation { color: var(--red); font-size: 12px; margin: 0; }
.feedback { border-top: 2px solid var(--green); background: var(--green-wash); padding: 20px 22px; margin-top: 24px; }
.feedback.incorrect { border-color: var(--red); background: #fcf5f4; }
.feedback h3 { font-size: 17px; margin-bottom: 10px; }
.feedback p { font-size: 14px; margin-bottom: 10px; }
.feedback .reason-guide { font-size: 12px; color: var(--muted); }
.feedback .text-button { font-size: 13px; }
.quiz-navigation { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 25px; }
.archive-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 25px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.archive-summary h2 { font-size: 20px; margin-bottom: 8px; }
.archive-summary p { color: var(--muted); font-size: 13px; margin: 0; }
.archive-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 28px 0; }
.process-step { padding-right: 20px; border-right: 1px solid var(--line); }
.process-step:last-child { border-right: 0; }
.process-step .step-id { font-size: 12px; color: var(--green); display: block; margin-bottom: 7px; }
.process-step h3 { font-size: 16px; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: 12px; margin: 0; }
.archive-section { padding: 28px 0; border-top: 1px solid var(--line); }
.archive-section > h2 { font-size: 22px; margin-bottom: 10px; }
.archive-section > p { font-size: 13px; color: var(--muted); max-width: 900px; }
.example-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 36px; margin-top: 25px; }
.example-sheet { margin: 0; min-width: 0; }
.example-image { display: block; position: relative; aspect-ratio: 5 / 7; border: 1px solid var(--line); }
.example-image img { width: 100%; height: 100%; display: block; object-fit: contain; }
.example-zoom { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 32px; height: 32px; background: #ffffffed; border: 1px solid var(--line); }
.example-sheet figcaption { display: flex; align-items: baseline; gap: 12px; padding: 15px 0 10px; }
.example-sheet figcaption h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
.example-transcript { border-top: 1px solid var(--line); padding-top: 12px; }
.example-transcript summary { font-size: 12px; color: var(--green); cursor: pointer; }
.example-transcript p, .example-transcript blockquote { font-size: 13px; line-height: 1.9; }
.example-transcript p { margin: 14px 0 0; }
.example-transcript blockquote { margin: 15px 0; color: var(--red); font-family: var(--serif); }
.method-row { display: grid; grid-template-columns: 165px minmax(0, 1fr); gap: 24px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.method-row h3 { font-size: 14px; color: var(--green); margin: 0; }
.method-row p { font-size: 13px; color: var(--muted); margin: 0; max-width: 930px; }
.prompt-block { background: var(--paper); border-left: 3px solid #a8bdb1; padding: 18px 22px; font-size: 14px; line-height: 1.9; margin: 20px 0; }
.prompt-block strong { font-weight: 500; }
.revision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 25px 0; }
.revision-grid h3 { color: var(--muted); font-size: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.revision-grid p { font-size: 15px; line-height: 1.95; }
.revision-grid .revised h3 { color: var(--green); border-bottom-color: #92b19e; }
.revision-reasons { font-size: 13px; line-height: 1.95; padding-left: 20px; color: var(--muted); }
.review-note { color: var(--red) !important; font-size: 12px !important; }
.prompt-list details { border-bottom: 1px solid var(--line); padding: 15px 0; }
.prompt-list summary { cursor: pointer; font-size: 14px; font-weight: 400; }
.prompt-list p { margin: 14px 0 0; font-size: 13px; line-height: 1.9; max-width: 1000px; color: var(--muted); }
.lesson-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 20px 0; }
.lesson-strip h3 { font-size: 15px; margin-bottom: 9px; }
.lesson-strip p { font-size: 12px; color: var(--muted); }
.deliverable-row { display: flex; align-items: center; justify-content: space-between; padding: 19px 0; border-bottom: 1px solid var(--line); gap: 22px; }
.deliverable-row h3 { font-size: 15px; margin-bottom: 4px; }
.deliverable-row p { font-size: 12px; color: var(--muted); margin: 0; }
.deliverable-row .status-label { min-width: 90px; justify-content: flex-end; }
.app-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: #818980; font-size: 11px; max-width: 1280px; margin: 0 auto; padding: 20px 0; gap: 15px; }
dialog { border: 1px solid var(--line); padding: 0; border-radius: 6px; color: var(--ink); max-height: 88vh; box-shadow: 0 16px 70px #152c2530; }
dialog::backdrop { background: #14231dcc; opacity: .4; }
.fact-dialog { width: 700px; max-width: calc(100% - 32px); }
.dialog-bar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 11px 19px; border-bottom: 1px solid var(--line); background: white; z-index: 1; font-size: 12px; color: var(--muted); }
.dialog-bar h2 { font-size: 17px; margin: 0; color: var(--ink); }
#fact-detail { padding: 26px 30px 10px; }
#fact-detail h2 { font-size: 24px; margin: 13px 0 18px; }
.detail-claim { font-size: 17px; line-height: 1.9; }
.detail-meta { color: var(--muted); font-size: 11px; display: flex; gap: 12px; align-items: center; }
.detail-section { border-top: 1px solid var(--line); padding-top: 17px; margin-top: 17px; }
.detail-section h3 { font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.detail-section p { font-size: 13px; margin-bottom: 8px; }
.detail-source { padding: 13px 0; }
.detail-source h3 { font-size: 14px; color: var(--ink); }
.detail-source .text-button { margin: 4px 0; }
.detail-source p { color: var(--muted); font-size: 12px; }
.dialog-bottom { padding: 18px 30px 24px; }
.settings-dialog { width: 460px; max-width: calc(100% - 32px); }
.settings-body { padding: 25px; }
.settings-body p { font-size: 13px; color: var(--muted); }
.settings-body #clear-confirmation { margin-top: 18px; color: var(--green); }
.motion-setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 19px; margin-bottom: 21px; border-bottom: 1px solid var(--line); cursor: pointer; }
.motion-setting strong { font-size: 14px; font-weight: 500; display: block; margin-bottom: 5px; }
.motion-setting #motion-status { color: var(--muted); font-size: 12px; display: block; }
.motion-setting input { appearance: none; width: 38px; height: 22px; border-radius: 12px; border: 1px solid #8d9a91; background: #e6eae7; position: relative; cursor: pointer; flex: 0 0 auto; margin: 0; }
.motion-setting input::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; top: 3px; left: 3px; background: #67776b; }
.motion-setting input:checked { background: var(--green); border-color: var(--green); }
.motion-setting input:checked::after { left: 19px; background: white; }
.motion-setting input:disabled { opacity: .6; cursor: not-allowed; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; background: white; padding: 12px; }
.skip-link:focus-visible { top: 10px; }
.noscript-note { padding: 30px; }
@media (max-width: 1399px) {
  main, .tab-inner, .app-footer { margin-left: 40px; margin-right: 40px; }
}
@media (max-width: 1000px) {
  .reader-workspace { grid-template-columns: 185px minmax(0, 1fr); gap: 24px; }
  .index-item { padding: 9px 5px; font-size: 11px; gap: 8px; }
  .atlas-marker { padding: 6px 9px; font-size: 11px; gap: 6px; }
  .plate-heading { font-size: 14px; }
  .evidence-tools { flex-wrap: wrap; gap: 15px; }
  .challenge-workspace { grid-template-columns: 180px minmax(0, 1fr); gap: 26px; }
  .category-options { gap: 7px; }
  .archive-process, .lesson-strip { gap: 16px; }
}
@media (max-width: 700px) {
  .app-header { padding: 16px 20px; gap: 12px; min-height: 78px; }
  .brand { gap: 10px; }
  .brand-name { font-size: 21px; }
  .brand-sub { font-size: 11px; }
  .brand-mark { width: 37px; height: 37px; }
  .brand-mark svg { width: 24px; }
  .header-meta { display: none; }
  #toggle-motion { margin-left: auto; }
  .app-header .icon-button { width: 33px; height: 33px; }
  .tab-inner { gap: 0; margin: 0 12px; }
  .view-tabs button { flex: 1; min-width: 0; gap: 6px; padding: 16px 0; font-size: 12px; }
  .view-tabs button svg { width: 16px; height: 16px; }
  main { padding-top: 24px; margin: 0 20px; padding-bottom: 32px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 20px; }
  h1 { font-size: 25px; margin-bottom: 8px; }
  .section-heading h1 { font-size: 25px; }
  .section-heading p { font-size: 12px; }
  .status-label { font-size: 11px; }
  .reader-workspace { display: block; }
  .page-index { display: none; }
  .reader-toolbar { padding: 13px 0; }
  .reader-toolbar select { max-width: calc(100% - 62px); font-size: 11px; padding-left: 7px; }
  .toolbar-right { font-size: 10px; white-space: nowrap; }
  .bridge-plate { aspect-ratio: 1600 / 1070; }
  .story-cover img { height: auto; position: absolute; top: 17%; left: 0; width: 100%; object-fit: contain; aspect-ratio: 1600 / 720; }
  .bridge-motion { top: 17%; height: auto; aspect-ratio: 1600 / 720; }
  .plate-heading { top: 7%; left: 6%; right: 6%; font-size: 13px; }
  .plate-code { font-size: 10px; }
  .atlas-marker { font-size: 10px; padding: 5px 7px; gap: 5px; }
  .atlas-marker b { margin-right: 5px; font-size: 9px; }
  .marker-cross { width: 6px; height: 6px; }
  .marker-arch { top: 24%; left: 8%; }
  .marker-arch::after { height: 12px; }
  .marker-image { bottom: 10%; right: 6%; }
  .plate-bottom { bottom: 12%; left: 6%; font-size: 9px; }
  .plate-scale { display: none; }
  .story-cover .cover-caption { font-size: 9px; padding: 10px 12px; flex-wrap: wrap; gap: 5px; }
  .cover-intro { margin-top: 20px; gap: 12px; }
  .cover-intro h2 { font-size: 21px; }
  .cover-intro p { font-size: 12px; }
  .page-number-large { font-size: 34px; }
  #story-page { min-height: 0; }
  .story-evidence { padding-top: 10px; gap: 7px; }
  .evidence-label { width: 100%; }
  .fact-chip { font-size: 11px; }
  .pagination { margin-top: 18px; padding-top: 18px; }
  .button { padding: 9px 12px; font-size: 12px; }
  .story-meta { margin: 8px 0 20px; font-size: 11px; }
  .story-heading { font-size: 24px; }
  .story-narrative p { font-size: 16px; }
  .story-narrative blockquote { font-size: 17px; padding-left: 16px; margin: 20px 0; }
  .story-production p { font-size: 12px; }
  .evidence-tools { padding-top: 18px; gap: 17px; }
  .search-field { width: 100%; }
  .filter-group { width: 100%; justify-content: space-between; gap: 0; }
  .filter-group button { padding: 8px 12px; font-size: 12px; }
  .result-line { font-size: 10px; margin-top: 18px; }
  .fact-grid { grid-template-columns: 1fr; gap: 14px; }
  .fact-card { padding: 20px; }
  .fact-card h2 { font-size: 18px; }
  .fact-card .claim { min-height: 0; font-size: 13px; }
  .fact-card-bottom { font-size: 10px; }
  .source-row { grid-template-columns: 33px minmax(0, 1fr); gap: 12px; }
  .source-row .button { grid-column: 2; justify-self: start; }
  .source-register h2 { font-size: 19px; }
  .challenge-workspace { display: block; }
  .challenge-progress { border: 0; padding: 18px 0 21px; border-bottom: 1px solid var(--line); }
  .score-number { font-size: 27px; display: inline-block; vertical-align: middle; margin-right: 14px; }
  .challenge-progress > p { display: inline; font-size: 11px; }
  .progress-track { margin: 13px 0 16px; }
  .question-index { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .question-index button { min-height: 35px; font-size: 11px; }
  .exercise-scope { margin-top: 14px; padding-top: 0; border: 0; }
  .exercise-scope p { margin: 0; font-size: 10px; }
  .question-area { padding-top: 22px; }
  .question-area h2 { font-size: 21px; margin-top: 10px; }
  .question-origin { font-size: 11px; }
  .question-material { font-size: 14px; padding: 15px 16px; }
  .question-prompt { font-size: 14px; }
  .category-options { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .option { font-size: 12px; padding: 12px 3px; gap: 4px; }
  .option input { width: 12px; height: 12px; }
  textarea { font-size: 13px; }
  .reason-label { font-size: 12px; }
  .form-actions { align-items: flex-start; gap: 9px; flex-direction: column; }
  .feedback { padding: 17px; }
  .feedback h3 { font-size: 16px; }
  .feedback p { font-size: 12px; }
  .archive-summary { grid-template-columns: 1fr; gap: 17px; padding: 20px 0; }
  .method-row { grid-template-columns: 1fr; gap: 6px; }
  .archive-process { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .process-step:nth-child(2) { border-right: 0; }
  .revision-grid { grid-template-columns: 1fr; gap: 12px; }
  .example-gallery { grid-template-columns: 1fr; gap: 26px; }
  .revision-grid p { font-size: 14px; }
  .prompt-block { font-size: 13px; padding: 16px; }
  .lesson-strip { grid-template-columns: repeat(2, 1fr); gap: 12px 22px; }
  .deliverable-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .deliverable-row .status-label { justify-content: flex-start; }
  .app-footer { margin: 0 20px; flex-wrap: wrap; gap: 8px; font-size: 10px; }
  #fact-detail { padding: 22px 20px 6px; }
  #fact-detail h2 { font-size: 22px; }
  .dialog-bottom { padding: 16px 20px 22px; }
  .detail-claim { font-size: 15px; }
}
@media (max-width: 359px) {
  main { margin: 0 15px; }
  h1 { font-size: 23px; }
  .brand-sub { font-size: 10px; }
  .app-header { padding-left: 15px; padding-right: 15px; gap: 8px; }
  .brand-name { font-size: 20px; }
  .brand { gap: 8px; }
  .brand-mark { width: 32px; height: 37px; }
  .app-header .icon-button { width: 29px; }
  .view-tabs button { font-size: 11px; gap: 4px; }
  .story-cover img { height: auto; }
  .filter-group button { padding: 8px 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  button, a { transition: background-color 130ms ease, border-color 130ms ease; }
}
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .app-header, .view-tabs, .app-footer, .page-index, .pagination, .reader-toolbar, .story-evidence, .bridge-motion { display: none; }
  main { margin: 0; padding: 0; }
  .reader-workspace { display: block; border: 0; }
}
