/* ReadRadar v6 — a warm, legible research workspace. */
:root {
  color-scheme: light;
  --bg: #f6f5f0;
  --paper: #fffefb;
  --ink: #242e27;
  --muted: #5b675f;
  --green: #234d3c;
  --green-dark: #17392b;
  --green-soft: #e8eee7;
  --gold: #826333;
  --line: #d7dcd1;
  --line-dark: #aab8a7;
  --danger: #93452f;
  --amber-bg: #f3eddf;
  --serif: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --text-body: 16px;
  --text-reading: 18px;
  --text-control: 15px;
  --text-meta: 13px;
  --text-date: 13px;
  --text-paper: 24px;
  --text-h1: 42px;
  --text-h2: 26px;
  --body-leading: 1.75;
  --reading-leading: 1.8;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --radius: 12px;
  --radius-small: 8px;
  --shadow-card: 0 8px 24px rgb(35 77 60 / 5%);
  --shadow-float: 0 10px 32px rgb(23 57 43 / 12%);
  --motion-fast: 160ms;
  --motion-base: 260ms;
  --motion-slow: 300ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --app-height: 100dvh;
  --dock-height: 74px;
  --dock-top: 12px;
  --dock-bottom: 16px;
  --dock-reserve: calc(var(--dock-height) + var(--dock-top) + var(--dock-bottom) + env(safe-area-inset-bottom, 0px));
  --dock-surface: rgb(255 254 251 / 88%);
  font-size: 16px;
}
* { box-sizing: border-box; }
html { height: 100%; overflow: clip; scroll-behavior: auto; }
body { position: fixed; inset: 0; width: 100%; margin: 0; height: 100%; overflow: clip; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: var(--text-body); line-height: var(--body-leading); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button, input, select, textarea { color: var(--ink); }
button, a, summary { touch-action: manipulation; }
button:disabled { cursor: not-allowed; background: var(--green-soft); color: var(--muted); border-color: var(--line); opacity: 1; }
a { color: var(--green); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
:where(button, a, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
svg.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
p { margin: 0 0 1em; text-wrap: pretty; overflow-wrap: anywhere; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.45; text-wrap: pretty; overflow-wrap: anywhere; }
h1 { font: 500 var(--text-h1)/1.35 var(--serif); letter-spacing: -.8px; }
h2 { font: 500 var(--text-h2)/1.45 var(--serif); }
h3 { font: 500 24px/1.5 var(--serif); }
h4 { font-size: var(--text-body); font-weight: 600; }
small { font-size: var(--text-meta); }
summary { min-height: 44px; align-content: center; }
summary::marker { color: var(--muted); }
details[open] > summary { margin-bottom: 8px; }
.details-inner { min-width: 0; display: flow-root; }
details.is-expanding, details.is-collapsing { overflow: hidden; }
details.is-expanding > .details-inner, details.is-collapsing > .details-inner { overflow: hidden; }
.muted, .model-hint, .help { color: var(--muted); }
.tiny { font-size: var(--text-meta); }
.serif { font-family: var(--serif); }
.no-shrink { flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -90px; z-index: 200; background: var(--paper); border: 1px solid var(--green); border-radius: 8px; padding: 12px 20px; }
.skip-link:focus { top: 12px; }
.initial-loading { padding: 20vh 24px; text-align: center; }
.wordmark { font: 500 30px var(--serif); letter-spacing: 2px; color: var(--green); }
.initial-loading p { color: var(--muted); margin-top: 24px; }

/* The content scrollport and navigation shelf occupy separate grid rows. */
#app { height: 100%; min-height: 0; overflow: clip; }
.shell { height: var(--app-height); max-height: 100dvh; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) var(--dock-reserve); overflow: clip; }
.app-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scroll-padding-block: 24px; }
.topbar { min-height: 84px; max-width: 1280px; margin: auto; padding: 16px 32px; display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--green); text-decoration: none !important; flex-shrink: 0; min-height: 44px; }
.brand img { width: 34px; height: 40px; }
.brand strong { font: 600 24px var(--serif); letter-spacing: 1px; white-space: nowrap; }
.brand span { display: block; font-size: var(--text-meta); letter-spacing: 2px; margin-top: 3px; color: var(--muted); line-height: 1.35; }
.breadcrumb { font-size: var(--text-meta); color: var(--muted); padding-left: 24px; border-left: 1px solid var(--line); }
.breadcrumb span { margin: 0 10px; }
.breadcrumb b { font-weight: 500; color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.private-label { font-size: var(--text-meta); color: var(--muted); display: flex; align-items: center; gap: 6px; }
.private-label .icon { width: 16px; height: 16px; }
.page { width: 100%; max-width: 1280px; margin: auto; padding: 40px 32px 48px; }
.page:focus { outline: 0; }
.page-footer { width: calc(100% - 64px); max-width: 1216px; margin: 0 auto; padding: 24px 0 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; font-size: var(--text-meta); color: var(--muted); }
.page-footer > span:first-child { font: 500 18px var(--serif); color: var(--green); }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-bottom: 32px; }
.page-head > div:first-child { min-width: 0; }
.eyebrow { font-size: var(--text-meta); font-weight: 600; letter-spacing: 1.5px; color: var(--gold); margin-bottom: 10px; line-height: 1.55; }
.page-head p { font-size: var(--text-body); color: var(--muted); margin: 16px 0 0; max-width: 70ch; }
.head-buttons { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }

/* One continuous frosted capsule, with a moving selection background. */
.dock-shelf { min-height: 0; height: var(--dock-reserve); padding: var(--dock-top) 12px calc(var(--dock-bottom) + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; align-items: flex-start; position: relative; z-index: 35; background: linear-gradient(to bottom, rgb(246 245 240 / 80%), var(--bg)); }
.reading-dock { --dock-width: 640px; display: flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; padding: 8px; position: relative; background: var(--dock-surface); border: 1px solid rgb(35 77 60 / 17%); border-radius: 999px; box-shadow: var(--shadow-float), inset 0 1px 0 rgb(255 255 255 / 70%); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: opacity var(--motion-base) var(--ease-out), transform var(--motion-base) var(--ease-out); }
.dock-toggle { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--green); transition: background var(--motion-fast), transform var(--motion-fast); }
.dock-toggle:hover { background: var(--green-soft); }
.dock-toggle:active { transform: scale(.98); }
.dock-toggle-glyph { width: 18px; height: 18px; position: relative; transform: rotate(45deg); transition: transform var(--motion-base) var(--ease-out); }
.dock-toggle-glyph::before, .dock-toggle-glyph::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; left: 0; top: 8px; width: 18px; height: 2px; transition: transform var(--motion-base) var(--ease-out), width var(--motion-base) var(--ease-out); }
.dock-toggle-glyph::after { transform: rotate(90deg); }
.is-collapsed .dock-toggle-glyph { transform: rotate(0); }
.is-collapsed .dock-toggle-glyph::before { width: 12px; transform: translate(3px, -4px) rotate(45deg); }
.is-collapsed .dock-toggle-glyph::after { width: 12px; transform: translate(3px, 4px) rotate(-45deg); }
.dock-panel { position: relative; width: min(var(--dock-width), calc(100vw - 96px)); height: 56px; transition: width var(--motion-base) var(--ease-out), height var(--motion-base) var(--ease-out); }
.dock-nav { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, minmax(44px, 1fr)); gap: 4px; width: 100%; opacity: 1; visibility: visible; isolation: isolate; transition: opacity var(--motion-fast), transform var(--motion-base) var(--ease-out), visibility 0s; }
.nav-indicator { position: absolute; z-index: -1; left: 0; top: 0; height: 100%; border-radius: 999px; background: var(--green-soft); box-shadow: inset 0 0 0 1px rgb(35 77 60 / 7%); pointer-events: none; transition: width var(--motion-base) var(--ease-out), transform var(--motion-base) var(--ease-out); }
.dock-item { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 44px; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--green); font-size: var(--text-control); line-height: 1.35; white-space: nowrap; transition: color var(--motion-fast), transform var(--motion-fast), background var(--motion-fast); }
.dock-item:hover { background: rgb(35 77 60 / 5%); transform: translateY(-2px); }
.dock-item.active { color: var(--green-dark); font-weight: 600; }
.dock-nav:not(:has(.nav-indicator)) .dock-item.active { background: var(--green-soft); }
.dock-item > .icon { width: 19px; height: 19px; }
.dock-label-short { display: none; }
.dock-count { position: absolute; right: 6px; top: 1px; font-size: var(--text-meta); line-height: 1.2; font-weight: 600; color: var(--green); background: var(--paper); border-radius: 10px; padding: 1px 4px; }
.dock-compact { position: absolute; inset: 0; display: flex; align-items: center; gap: 6px; width: 100%; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(6px); transition: opacity var(--motion-fast), transform var(--motion-base) var(--ease-out), visibility 0s var(--motion-base); }
.dock-compact button { height: 44px; min-width: 60px; border: 0; border-radius: 999px; background: transparent; color: var(--green); padding: 0 16px; font-size: var(--text-control); }
.dock-current { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1; background: var(--green-soft) !important; color: var(--green-dark) !important; white-space: nowrap; }
.is-collapsed .dock-panel { width: min(248px, calc(100vw - 96px)); height: 44px; }
.is-collapsed .dock-nav { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(6px); transition: opacity var(--motion-fast), transform var(--motion-base) var(--ease-out), visibility 0s var(--motion-base); }
.is-collapsed .dock-compact { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); transition: opacity var(--motion-fast), transform var(--motion-base) var(--ease-out), visibility 0s; }
body.modal-open .reading-dock { opacity: 0; transform: translateY(12px) scale(.98); pointer-events: none; }
@supports not ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) { .reading-dock { background: var(--paper); } }

/* Every control stays comfortable for touch and keyboard use. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid var(--line-dark); border-radius: var(--radius-small); background: var(--paper); color: var(--ink); padding: 10px 16px; font-size: var(--text-control); font-weight: 500; line-height: 1.5; white-space: normal; text-decoration: none; transition: background var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast), transform var(--motion-fast), box-shadow var(--motion-fast); }
.btn:hover { background: var(--green-soft); border-color: var(--green); text-decoration: none; transform: translateY(-2px); }
.btn:active, .icon-btn:active, .chip:active, .dock-item:active { transform: scale(.98); }
.btn.primary { background: var(--green); border-color: var(--green); color: var(--paper); }
.btn.primary:hover { background: var(--green-dark); border-color: var(--green-dark); box-shadow: 0 4px 12px rgb(23 57 43 / 12%); }
.btn.secondary { color: var(--green); background: var(--green-soft); border-color: #c4d2c0; }
.btn.quiet { color: var(--green); background: transparent; border-color: transparent; padding-inline: 10px; }
.btn.quiet:hover { background: var(--green-soft); }
.btn.small { min-height: 44px; padding: 9px 13px; font-size: var(--text-control); }
.btn .icon { width: 18px; height: 18px; }
.btn.danger-quiet { background: transparent; border-color: transparent; color: var(--danger); }
.btn:disabled, .btn:disabled:hover { color: var(--muted); background: var(--green-soft); border-color: var(--line); transform: none; box-shadow: none; }
.icon-btn { width: 44px; height: 44px; min-width: 44px; display: inline-grid; place-items: center; background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--muted); transition: background var(--motion-fast), color var(--motion-fast), transform var(--motion-fast); }
.icon-btn:hover, .icon-btn.saved { color: var(--green); background: var(--green-soft); }
.icon-btn.saved .icon { fill: rgb(35 77 60 / 10%); }
.icon-btn .icon { width: 21px; height: 21px; }
.rail-link { min-height: 44px; border: 0; padding: 8px 0; background: none; color: var(--green); display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-control); font-weight: 500; line-height: 1.6; text-align: left; }
.rail-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.rail-link .icon { width: 17px; height: 17px; }

/* A weekly reading sequence with its action before supporting metadata. */
.weekly-issue { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; border-top: 1px solid var(--green); margin-bottom: 4px; }
.issue-topic { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.issue-topic > span { font-size: var(--text-meta); color: var(--muted); white-space: nowrap; }
.issue-topic strong { font-size: 18px; font-weight: 500; overflow-wrap: anywhere; line-height: 1.65; }
.issue-progress { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; font-size: var(--text-meta); color: var(--muted); flex-shrink: 0; }
.issue-progress b { font-weight: 600; color: var(--green); }
.issue-progress .rail-link { font-size: var(--text-meta); }
.issue-progress-track, .reading-progress-track { width: 100%; height: 5px; overflow: hidden; border-radius: 5px; background: var(--line); }
.issue-progress-track i, .reading-progress-track i { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.weekly-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; align-items: stretch; }
.weekly-slot { display: flex; flex-direction: column; min-width: 0; padding: 28px; position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-card); transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out), border-color var(--motion-fast); }
.weekly-slot:hover { transform: translateY(-3px); border-color: var(--line-dark); box-shadow: 0 12px 30px rgb(35 77 60 / 8%); }
.weekly-role { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.weekly-role .group-number { font: italic 30px/1 var(--serif); color: var(--gold); }
.weekly-role h2 { font: 600 var(--text-meta)/1.6 var(--sans); color: var(--green); letter-spacing: .3px; }
.weekly-role .read-label { margin-left: auto; }
.paper-title { border: 0; padding: 0; min-height: 44px; background: none; color: var(--ink); text-align: left; max-width: 100%; font: 500 var(--text-paper)/1.55 var(--serif); text-wrap: pretty; overflow-wrap: anywhere; white-space: normal; }
.paper-title:hover { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.weekly-slot > .paper-title { margin-bottom: 18px; }
.weekly-publication { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: var(--text-meta); color: var(--muted); line-height: 1.65; margin-bottom: 10px; }
.slot-learning { margin: 0 0 24px; }
.slot-learning > span { display: block; font-size: var(--text-meta); color: var(--gold); margin-bottom: 8px; }
.slot-learning p { font-size: var(--text-body); line-height: var(--body-leading); color: var(--muted); margin: 0; }
.weekly-slot > .paper-tools { margin-top: auto; justify-content: space-between; padding-block: 4px 18px; }
.weekly-slot > .paper-tools .btn.primary { flex: 1; max-width: 220px; }
.weekly-bottom { margin-top: auto; }
.weekly-bottom > .paper-tools { justify-content: space-between; margin: 0; padding-bottom: 20px; }
.weekly-bottom .btn.primary { min-width: 140px; }
.paper-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.read-label { color: var(--green); font-size: var(--text-meta); white-space: nowrap; }
.weekly-metadata { border-top: 1px solid var(--line); color: var(--muted); font-size: var(--text-meta); padding-top: 6px; }
.weekly-metadata > summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; list-style: none; line-height: 1.65; }
.weekly-metadata > summary::after { content: "＋"; color: var(--green); }
.weekly-metadata[open] > summary::after { content: "−"; }
.weekly-metadata > summary::-webkit-details-marker { display: none; }
.weekly-metadata .details-inner { padding-bottom: 8px; }
.slot-empty { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 8px 0; color: var(--muted); }
.slot-empty-mark { color: var(--green); margin-bottom: 16px; }
.slot-empty-mark .icon { width: 30px; height: 30px; }
.slot-empty h3 { font-size: 24px; color: var(--green); margin-bottom: 16px; }
.slot-empty p { font-size: var(--text-body); line-height: 1.75; }
.slot-empty .btn { margin-top: auto; }
.weekly-slot.is-empty { background: #f9f9f3; }
.weekly-grid > .empty { grid-column: 1 / -1; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.weekly-practice { margin-block: 32px; }
.weekly-practice .notes-area { min-height: 180px; }
.quality-policy-banner { margin: 16px 0 32px; font-size: var(--text-meta); color: var(--muted); }
.quality-policy-banner > summary { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; list-style: none; }
.quality-policy-banner > summary::-webkit-details-marker { display: none; }
.quality-policy-banner > summary > .icon { width: 18px; height: 18px; color: var(--green); }
.quality-policy-banner strong { font-weight: 600; color: var(--ink); }
.details-cue { margin-left: auto; color: var(--green); font-size: var(--text-meta); white-space: nowrap; }
.details-cue::after { content: " ＋"; }
.quality-policy-banner[open] .details-cue::after { content: " −"; }
.policy-content { padding: 20px 24px; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: var(--text-body); }
.policy-content p { margin-bottom: 12px; }


/* Supporting evidence is always readable and available on demand. */
.original-disclosure { font-size: var(--text-meta); color: var(--muted); margin: 0 0 10px; }
.original-disclosure p, .original-title { font-family: var(--sans); font-size: var(--text-meta); line-height: 1.8; color: var(--muted); margin: 8px 0; overflow-wrap: anywhere; }
.citation-disclosure { min-width: 0; font-size: var(--text-meta); line-height: 1.75; }
.citation-disclosure > summary { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; color: var(--green); padding: 6px 0; }
.citation-disclosure > summary::-webkit-details-marker { display: none; }
.citation-disclosure > summary > span { font-weight: 600; }
.citation-disclosure > summary > span::after { content: "⌄"; margin-left: 5px; color: var(--muted); }
.citation-disclosure[open] > summary > span::after { content: "⌃"; }
.citation-disclosure small, .citation-snapshots small { color: var(--muted); font-size: var(--text-meta); }
.citation-detail { font-size: var(--text-meta); padding: 16px; background: var(--bg); border-radius: 8px; margin: 4px 0 12px; overflow-wrap: anywhere; }
.citation-snapshots p { margin: 0 0 10px; line-height: 1.8; }
.citation-snapshots p:last-of-type { margin-bottom: 0; }
.citation-snapshots small { display: block; margin-top: 4px; }
.paper-evidence { font-size: var(--text-meta); min-width: 0; color: var(--muted); }
.paper-evidence > summary { display: flex; align-items: center; gap: 10px; list-style: none; }
.paper-evidence > summary::-webkit-details-marker { display: none; }
.paper-evidence > summary > span:last-child { margin-left: auto; font-size: var(--text-meta); white-space: nowrap; }
.paper-evidence > summary > span:last-child::after { content: " ＋"; }
.paper-evidence[open] > summary > span:last-child::after { content: " −"; }
.paper-evidence .details-inner > div, .paper-evidence > div:not(.details-inner) { padding: 8px 0 16px; font-size: var(--text-meta); line-height: 1.8; }
.paper-evidence p { margin: 0 0 10px; }
.quality-badge { display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-meta); font-weight: 500; line-height: 1.65; color: var(--green); }
.quality-badge .icon { width: 15px; height: 15px; }
.quality-badge.pending { color: var(--gold); }
.quality-badge.muted, .quality-badge.excluded { color: var(--muted); }
.assessment-note { font-size: var(--text-meta); line-height: 1.8; padding: 14px 16px; margin: 14px 0; border-left: 3px solid var(--green); background: var(--green-soft); color: var(--muted); }
.assessment-note p { margin: 6px 0; }
.assessment-note small { display: block; font-size: var(--text-meta); color: var(--muted); }
.assessment-note.compact { padding: 0; margin: 8px 0 0; border: 0; background: transparent; }
.curation-label { color: var(--green); font-weight: 500; }
.reading-extras { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-block: 40px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.section-head h2 { font-size: var(--text-h2); }
.section-head h2 > span { font: var(--text-meta) var(--sans); margin-left: 8px; color: var(--muted); }
.section-head .muted { font-size: var(--text-meta); }
.section-head .eyebrow { margin-bottom: 7px; }
.frontier-list { border-top: 1px solid var(--line); }
.frontier-list .paper-card { padding-block: 22px; }
.frontier-list .paper-title { font-size: var(--text-paper); }
.frontier-list .paper-evidence { display: none; }
.frontier-list .paper-tools .icon-btn { display: none; }
.frontier-empty { font-size: var(--text-body); color: var(--muted); padding: 24px 0; border-top: 1px solid var(--line); }
.reading-side { border-left: 1px solid var(--line); padding-left: 28px; }
.practice-note { padding-bottom: 24px; }
.practice-note h3 { margin-bottom: 16px; }
.practice-note p { font-size: var(--text-body); color: var(--muted); line-height: 1.75; }
.cnki-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; font-size: var(--text-meta); color: var(--muted); }
.reading-toolbox { margin-block: 24px; padding: 8px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.reading-toolbox > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--green); font-size: var(--text-control); font-weight: 500; }
.reading-toolbox > summary > span { margin-left: auto; font-size: var(--text-meta); color: var(--muted); }
.reading-toolbox > .details-inner { padding-block: 12px 16px; }
.reading-toolbox .head-buttons, .toolbox-actions, .reading-toolbox .chinese-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.reading-toolbox .model-hint { margin-top: 12px; }

/* Catalog and search. */
.search-panel { padding-top: 32px; border-top: 1px solid var(--green); }
.search-form { display: flex; gap: 10px; align-items: stretch; }
.input-wrap { border: 1px solid var(--line-dark); border-radius: 8px; background: var(--paper); display: flex; align-items: center; gap: 12px; padding: 0 16px; flex: 1; min-width: 0; }
.input-wrap .icon { width: 20px; height: 20px; color: var(--muted); }
.input-wrap:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.input-wrap input { background: transparent; border: 0; outline: 0 !important; width: 100%; min-width: 0; min-height: 48px; padding: 12px 0; font-size: var(--text-body); color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.catalog-controls, .search-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 20px; }
.catalog-controls label, .search-filters label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: var(--text-meta); }
.compact-select { min-height: 44px; border: 0; border-bottom: 1px solid var(--line-dark); background: transparent; color: var(--ink); font-size: var(--text-control); max-width: 100%; padding: 8px 24px 8px 4px; border-radius: 0; }
.topic-filter { position: relative; font-size: var(--text-control); }
.topic-filter > summary { display: flex; align-items: center; gap: 8px; list-style: none; color: var(--green); }
.topic-filter .icon { width: 18px; height: 18px; }
.topic-filter .chips { position: absolute; top: calc(100% + 4px); right: 0; width: 340px; max-width: calc(100vw - 48px); padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-float); z-index: 4; }
.chips, .check-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--muted); padding: 9px 14px; font-size: var(--text-control); line-height: 1.6; transition: color var(--motion-fast), background var(--motion-fast), transform var(--motion-fast); }
.chip:hover { border-color: var(--line-dark); color: var(--green); }
.chip.active { background: var(--green-soft); border-color: #b8cbb2; color: var(--green); }
.results-count { font-size: var(--text-meta); color: var(--muted); margin: 24px 0 12px; }
.results-count .rail-link { margin-left: 12px; font-size: var(--text-meta); }
.catalog-grid { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.paper-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); min-width: 0; transition: background var(--motion-fast); }
.paper-card:hover { background: rgb(232 238 231 / 40%); }
.catalog-paper-content { min-width: 0; flex: 1; }
.catalog-paper-content > .paper-tools { margin-block: 20px 18px; justify-content: flex-start; }
.paper-meta { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; color: var(--muted); font-size: var(--text-meta); margin-bottom: 10px; line-height: 1.65; }
.topic-tag { font-size: var(--text-meta); color: var(--green); }
.lang-tag { color: var(--muted); font-size: var(--text-meta); }
.catalog-evidence { display: flex; align-items: flex-start; gap: 10px 24px; flex-wrap: wrap; margin-top: 12px; }
.catalog-evidence .citation-disclosure { max-width: 100%; }
.catalog-evidence .paper-evidence { max-width: 480px; }
.paper-note { font-size: var(--text-body); line-height: 1.75; color: var(--muted); margin: 12px 0 0; max-width: 70ch; }
.loadmore { display: flex; justify-content: center; padding: 32px 0; }
.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty > .icon { width: 32px; height: 32px; color: var(--green); margin-bottom: 16px; }
.empty h3 { font-size: 26px; color: var(--green); margin-bottom: 16px; }
.empty p { font-size: var(--text-body); margin: 0 auto 24px; max-width: 60ch; }
.empty .btn { margin-top: 4px; }
.library-tabs { position: relative; display: flex; flex-wrap: nowrap; gap: 24px; padding: 0; margin-bottom: 28px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.library-tabs .chip { flex-shrink: 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; padding: 8px 0 14px; }
.library-tabs .chip.active { background: transparent; color: var(--green); font-weight: 600; }
.library-tabs:not(:has(.tab-indicator)) .chip.active { border-bottom-color: var(--green); }
.export-row { display: flex; justify-content: flex-end; margin-top: 24px; }
#catalog-section { scroll-margin-top: 24px; }

/* Connected Chinese sources and journal entry points. */
.chinese-discovery { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; margin: 24px 0; padding: 24px; background: var(--green-soft); border: 1px solid #d3ddce; border-radius: 10px; align-items: center; }
.chinese-discovery .eyebrow { display: block; margin-bottom: 6px; }
.chinese-discovery strong { font-size: var(--text-body); font-weight: 600; color: var(--green); }
.chinese-count { font-size: var(--text-meta); color: var(--muted); display: block; margin-top: 8px; }
.chinese-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chinese-model-note { grid-column: 1 / -1; font-size: var(--text-meta); color: var(--muted); line-height: 1.8; margin: 0; }
.chinese-source-panel .chinese-actions { margin-top: 24px; }
.chinese-metrics { display: flex; gap: 16px 28px; flex-wrap: wrap; margin-bottom: 24px; font-size: var(--text-meta); color: var(--muted); }
.chinese-metrics b { font: 500 26px var(--serif); color: var(--green); margin-right: 7px; }
.chinese-source-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.chinese-source-list article { padding: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.chinese-source-list article > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.chinese-source-list h3 { font-size: 24px; }
.chinese-source-list p { font-size: var(--text-body); color: var(--muted); margin: 16px 0 12px; }
.chinese-source-list a { font-size: var(--text-control); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.chinese-source-list a > .icon { width: 17px; height: 17px; }
.chinese-last-run { margin-top: 16px; }
.chinese-checks { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 12px; font-size: var(--text-meta); color: var(--muted); }
.chinese-checks summary { color: var(--green); }
.chinese-checks p { padding: 14px 0; margin: 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.chinese-checks p:last-child { border-bottom: 0; }
.chinese-checks p > span { display: block; margin: 8px 0; }
.chinese-checks a { font-size: var(--text-meta); }
.journal-entry-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.journal-entry-list article { padding: 24px 0; border-top: 1px solid var(--line); min-width: 0; }
.journal-entry-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.journal-entry-heading h3 { font-size: 24px; }
.journal-entry-list article > p { font-size: var(--text-body); color: var(--muted); margin-bottom: 12px; }
.journal-entry-links { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-top: 16px; }
.journal-entry-links > a { font-size: var(--text-control); min-height: 44px; display: inline-flex; gap: 7px; align-items: center; }
.journal-entry-links .icon { width: 17px; height: 17px; }
.entrypoints-boundary { padding-top: 20px; border-top: 1px solid var(--line); }

/* Forms and service panels use the same type and spacing system. */
.content-grid, .settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.rail { display: flex; flex-direction: column; gap: 24px; }
.panel, .rail-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 28px; margin-bottom: 24px; min-width: 0; }
.rail-card { padding: 24px; margin-bottom: 0; }
.rail-card h3 { font-size: 24px; margin-bottom: 16px; }
.rail-card p { font-size: var(--text-body); line-height: 1.75; color: var(--muted); margin: 0; }
.rail-card .rail-link { margin-top: 16px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.panel-head h2 { font-size: var(--text-h2); }
.panel-head p { font-size: var(--text-body); color: var(--muted); margin: 14px 0 0; line-height: 1.75; max-width: 70ch; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field { min-width: 0; display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--text-control); font-weight: 500; margin-bottom: 10px; display: block; }
.field input, .field select, .field textarea, .notes-area { width: 100%; border: 1px solid var(--line-dark); background: var(--paper); color: var(--ink); border-radius: 8px; font-size: var(--text-body); padding: 12px 14px; min-height: 48px; }
.field input:focus, .field select:focus, .field textarea:focus, .notes-area:focus { border-color: var(--green); }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.8; }
.field input[type=file] { font-size: var(--text-meta); line-height: 1.8; padding: 8px; overflow: hidden; }
.field input::file-selector-button { min-height: 44px; border: 0; border-radius: 6px; padding: 8px 12px; margin-right: 12px; background: var(--green-soft); color: var(--green); font-size: var(--text-control); cursor: pointer; }
.help { display: block; font-size: var(--text-meta); line-height: 1.8; margin-top: 10px; }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.model-hint { font-size: var(--text-meta); line-height: 1.8; margin: 0; }
.form-actions > .model-hint { flex: 1; min-width: 160px; }
.check-chip { display: flex !important; align-items: center; gap: 10px; min-height: 44px; font-size: var(--text-control); color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-weight: 400; margin: 0 !important; cursor: pointer; }
.field .check-chip input { width: 18px; height: 18px; min-height: 0; padding: 0; flex: 0 0 18px; accent-color: var(--green); }
.quality-policy-field { border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin: 0; background: var(--bg); min-width: 0; }
.quality-policy-field legend { font-size: var(--text-control); padding: 0 8px; color: var(--ink); }
.quality-policy-field p { font-size: var(--text-meta); color: var(--muted); margin-bottom: 16px; }
.cost-number { font: 500 36px var(--serif); color: var(--green); margin: 20px 0 8px; }
.cost-number span { font-size: 18px; color: var(--muted); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.metric-row { display: flex; justify-content: space-between; gap: 14px; font-size: var(--text-meta); margin: 12px 0; color: var(--muted); }
.metric-row b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.status-label { display: inline-flex; padding: 5px 10px; border: 1px solid #c4d2c0; border-radius: 6px; background: var(--green-soft); color: var(--green); font-size: var(--text-meta); line-height: 1.7; white-space: nowrap; }
.status-label.pending, .status-label.warn { color: var(--gold); background: var(--amber-bg); border-color: #dcccae; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--green-soft); border: 1px solid #ccd8c6; border-radius: 10px; padding: 20px; font-size: var(--text-body); color: var(--green); margin-bottom: 24px; }
.compact-notice { display: block; font-size: var(--text-body); line-height: 1.75; }
.compact-notice ul { padding-left: 22px; margin-bottom: 0; }
.field-error { font-size: var(--text-meta); color: var(--danger); margin: 12px 0; }
.openalex-quota { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-bottom: 24px; }
.openalex-quota > div { min-width: 0; }
.openalex-quota span { display: block; font-size: var(--text-meta); color: var(--muted); margin-bottom: 8px; }
.openalex-quota strong { font: 500 28px var(--serif); color: var(--green); }
.openalex-quota small { display: block; font-size: var(--text-meta); color: var(--muted); margin-top: 6px; }
.openalex-quota .quota-reset { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; font-size: var(--text-meta); color: var(--muted); }
.openalex-connection { font-size: var(--text-body); line-height: 1.75; margin-bottom: 20px; color: var(--muted); }
.openalex-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.save-status { min-height: 24px; margin-top: 10px; font-size: var(--text-meta); color: var(--green); }
.save-status.error { color: var(--danger); }


/* Reading route, source registry and quality evidence. */
.route-list { display: flex; flex-direction: column; margin-bottom: 32px; border-top: 1px solid var(--line); }
.route-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.route-order { align-self: start; font: italic 36px var(--serif); color: var(--gold); }
.route-order small { display: block; font: var(--text-meta)/1.6 var(--sans); margin-top: 8px; color: var(--muted); }
.route-item h3 { font-size: 24px; line-height: 1.55; margin-bottom: 14px; }
.route-item p { font-size: var(--text-body); color: var(--muted); line-height: 1.75; margin-bottom: 16px; max-width: 70ch; }
.route-question { font-size: var(--text-body); color: var(--green); padding: 14px 18px; background: var(--green-soft); border-radius: 8px; }
.route-footnote { font-size: var(--text-meta); color: var(--muted); margin-top: 14px; }
.route-pending { color: var(--muted); }
.notes-area { min-height: 240px; resize: vertical; line-height: 1.8; }
.six-questions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.six-questions > div { padding-top: 20px; border-top: 1px solid var(--line); }
.six-questions > div > span { font: italic 28px var(--serif); color: var(--gold); }
.six-questions h3 { font: 600 18px/1.5 var(--sans); margin: 12px 0; }
.six-questions p { font-size: var(--text-body); color: var(--muted); margin: 0; }
.source-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.source-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); min-width: 0; overflow-wrap: anywhere; }
.source-card h3 { font-size: 24px; margin-bottom: 16px; }
.source-card p { font-size: var(--text-body); line-height: 1.75; color: var(--muted); margin: 16px 0; }
.source-card a { font-size: var(--text-control); }
.source-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.institution-panel { display: flex; align-items: center; gap: 32px; }
.institution-panel > div:first-child { flex: 1; min-width: 0; }
.institution-panel h2 { font-size: var(--text-h2); }
.institution-panel p { font-size: var(--text-body); color: var(--muted); line-height: 1.75; margin: 16px 0 0; }
.institution-buttons { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.registry-scroll { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 10px; scrollbar-gutter: stable; }
.registry-table { width: 100%; border-collapse: collapse; text-align: left; font-size: var(--text-meta); line-height: 1.8; }
.registry-table th, .registry-table td { padding: 18px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 160px; }
.registry-table thead th { font-size: var(--text-meta); font-weight: 600; background: var(--bg); color: var(--muted); }
.registry-table tbody th { font-weight: 500; width: 34%; }
.registry-table td { color: var(--muted); }
.registry-table tbody tr:last-child > * { border-bottom: 0; }
.registry-table small { display: block; font-size: var(--text-meta); font-weight: 400; color: var(--muted); margin-top: 8px; }
.registry-table td > a { display: block; font-size: var(--text-meta); margin-top: 10px; }
.registry-table .icon { width: 16px; height: 16px; vertical-align: middle; }
.registry-evidence { font-size: var(--text-meta); margin-top: 10px; }
.registry-evidence p { max-width: 45ch; margin: 10px 0 0; line-height: 1.8; }
.registry-note { margin-top: 18px; }
.info-grid { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px 24px; font-size: var(--text-body); line-height: 1.75; margin: 0; overflow-wrap: anywhere; }
.info-grid dt { color: var(--muted); }
.info-grid dd { margin: 0; color: var(--ink); min-width: 0; }
.info-grid a > .icon { width: 17px; height: 17px; vertical-align: middle; }
.run { border-top: 1px solid var(--line); padding: 20px 0; }
.run-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: var(--text-body); cursor: pointer; }
.run-head strong { font-weight: 500; }
.run-head time, .date-mark { font-size: var(--text-date); color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 24px 0 0; }
.steps li { display: flex; gap: 12px; padding-bottom: 20px; }
.steps li:last-child { padding-bottom: 0; }
.step-dot { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; color: var(--green); background: var(--green-soft); border-radius: 50%; margin-top: 2px; }
.step-dot .icon { width: 16px; height: 16px; }
.steps li.working .step-dot { background: transparent; }
.steps li.pending .step-dot { color: var(--muted); background: var(--green-soft); }
.steps li.failed .step-dot { color: var(--danger); background: #f7ece4; }
.steps h4 { font-size: var(--text-control); font-weight: 500; }
.steps p { font-size: var(--text-meta); color: var(--muted); line-height: 1.8; margin: 6px 0 0; overflow-wrap: anywhere; }
.quality-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.quality-detail-head > div:first-child { flex: 1; min-width: 0; }
.quality-detail-head h3 { font-size: 24px; margin: 14px 0 12px; }
.quality-detail-head p { font-size: var(--text-body); line-height: 1.75; color: var(--muted); margin: 0; }
.reference-score { flex-shrink: 0; text-align: right; max-width: 144px; }
.reference-score strong { display: block; font: 500 40px var(--serif); color: var(--green); }
.reference-score span { display: block; font-size: var(--text-meta); color: var(--muted); margin-top: 8px; }
.learning-evidence { padding: 24px 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.learning-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.learning-line > span { font-size: var(--text-meta); color: var(--muted); }
.learning-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--green) !important; font-size: var(--text-meta); }
.learning-badge .icon { width: 16px; height: 16px; }
.learning-evidence h3 { font-size: 24px; margin-bottom: 16px; }
.learning-evidence p { font-size: var(--text-body); color: var(--muted); line-height: 1.75; }
.learning-evidence > a { font-size: var(--text-control); display: inline-flex; align-items: center; min-height: 44px; gap: 8px; }
.learning-evidence > a .icon { width: 17px; height: 17px; }
.score-components { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 28px 0; }
.score-component { padding: 20px; background: var(--bg); border-radius: 10px; }
.score-component-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.score-component h4 { font-size: var(--text-body); }
.score-component-head span { font-size: var(--text-meta); color: var(--muted); }
.score-component-head b { margin-left: auto; font-size: var(--text-meta); font-weight: 500; color: var(--green); }
.component-track { height: 5px; background: var(--line); margin: 16px 0; overflow: hidden; border-radius: 5px; }
.component-track i { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.score-component p { font-size: var(--text-meta); line-height: 1.8; color: var(--muted); margin: 0; }
.topic-cloud { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.topic-cloud span { font-size: var(--text-meta); color: var(--green); background: var(--green-soft); padding: 4px 10px; border-radius: 6px; }

/* Modal layers are independent of the navigation reserve. */
body.modal-open { overflow: clip; }
.overlay { position: fixed; inset: 0; height: var(--app-height); z-index: 60; background: rgb(28 43 33 / 45%); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: center; padding: 24px; opacity: 1; transition: opacity 280ms var(--ease-out); }
dialog.overlay { width: 100%; max-width: none; max-height: none; margin: 0; border: 0; color: inherit; overflow: hidden; }
dialog.overlay:not([open]) { display: none; }
dialog.overlay::backdrop { background: transparent; }
.dialog { width: min(940px, 100%); max-height: calc(var(--app-height) - 48px); display: flex; flex-direction: column; background: var(--paper); border: 1px solid rgb(255 254 251 / 80%); border-radius: 16px; box-shadow: 0 24px 85px rgb(22 44 37 / 25%); overflow: hidden; transform: translateY(0) scale(1); transition: transform 280ms var(--ease-out), opacity 280ms var(--ease-out); }
.dialog.narrow { width: min(800px, 100%); }
.overlay.is-entering, .overlay.is-closing { opacity: 0; }
.overlay.is-entering .dialog, .overlay.is-closing .dialog, .dialog.is-entering, .dialog.is-closing { opacity: 0; transform: translateY(14px) scale(.985); }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 28px 32px 24px; border-bottom: 1px solid var(--line); flex-shrink: 0; max-height: calc(var(--app-height) * .36); overflow: auto; scrollbar-gutter: stable; }
.dialog-header > div { min-width: 0; }
.dialog-header > .icon-btn { position: sticky; top: 0; }
.dialog-header h2 { font: 500 26px/1.5 var(--serif); overflow-wrap: anywhere; }
.dialog-header .paper-meta { font-size: var(--text-meta); margin-bottom: 14px; }
.dialog-header .original-title { font-size: var(--text-meta); margin-top: 14px; }
.dialog-header .model-hint { margin-top: 12px; }
.dialog-body { overflow: auto; overscroll-behavior: contain; padding: 28px 32px 32px; min-height: 0; scroll-padding-block: 24px; scrollbar-gutter: stable; }
.dialog-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding: 16px 32px; background: var(--bg); flex-shrink: 0; }
.dialog-footer > .model-hint { font-size: var(--text-meta); }
.tabs { position: relative; display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; scrollbar-width: thin; }
.tab { min-height: 48px; border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: var(--text-control); color: var(--muted); padding: 8px 0 14px; white-space: nowrap; flex-shrink: 0; }
.tab:hover { color: var(--green); }
.tab.active { color: var(--green); font-weight: 600; }
.tabs:not(:has(.tab-indicator)) .tab.active { border-bottom-color: var(--green); }
.tab-indicator { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--green); border-radius: 3px 3px 0 0; pointer-events: none; transition: width var(--motion-base) var(--ease-out), transform var(--motion-base) var(--ease-out); }
.tab-panel { min-width: 0; }
.dialog-body .tab-panel { max-width: 720px; margin-inline: auto; }
.tab-panel[hidden] { display: none; }
.basis-banner { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: var(--text-meta); color: var(--green); padding: 14px 16px; background: var(--green-soft); border-radius: 8px; margin-bottom: 24px; }
.basis-banner small { font-size: var(--text-meta); color: var(--muted); }
.guide-lead { font: 500 22px/1.75 var(--serif); margin-bottom: 28px; max-width: 70ch; }
.guide-block { margin: 28px 0; }
.guide-block h3 { font-size: 24px; margin-bottom: 16px; }
.guide-block p { font-size: var(--text-reading); line-height: var(--reading-leading); color: var(--muted); margin-bottom: 14px; max-width: 70ch; }
.guide-sections { display: grid; gap: 0; }
.research-section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.research-section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.research-section-head > span { font: italic 28px var(--serif); color: var(--gold); }
.research-section-head h3 { font-size: 24px; }
.research-section-head small { margin-left: auto; font-size: var(--text-meta); color: var(--muted); }
.research-section-head small.supported { color: var(--green); }
.research-section > p { font-size: var(--text-reading); line-height: var(--reading-leading); color: var(--ink); margin: 0; max-width: 70ch; }
.research-section blockquote, .evidence blockquote { font-size: var(--text-reading); color: var(--green); line-height: var(--reading-leading); margin: 20px 0 10px; padding: 18px 20px; background: var(--green-soft); border-left: 3px solid var(--green); border-radius: 0 8px 8px 0; overflow-wrap: anywhere; }
.quote-source { font-size: var(--text-meta); color: var(--muted); line-height: 1.8; }
.research-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.research-notes label { display: flex; align-items: center; gap: 10px; font-size: var(--text-control); }
.research-notes label > span { font: italic 22px var(--serif); color: var(--gold); }
.research-notes textarea { min-height: 180px; font-size: var(--text-reading); line-height: var(--reading-leading); }
.tab-panel .notes-area { font-size: var(--text-reading); line-height: var(--reading-leading); }
.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.term { padding: 20px; background: var(--bg); border-radius: 8px; }
.term b { display: block; font-size: var(--text-body); color: var(--green); margin-bottom: 10px; }
.term span { font-size: var(--text-body); color: var(--muted); line-height: 1.75; }
.legacy-guide { font-size: var(--text-body); color: var(--muted); margin-top: 24px; }
.evidence { margin: 20px 0; }
.evidence strong { font-size: var(--text-body); color: var(--green); }
.evidence p { font-size: var(--text-reading); line-height: var(--reading-leading); margin-top: 14px; }
.abstract { font-size: var(--text-reading); line-height: var(--reading-leading); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; max-width: 70ch; }
.reading-access { max-width: 720px; margin: 32px auto 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.reading-access-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.reading-access h3 { font-size: 24px; }
.reading-access .eyebrow { margin-bottom: 8px; }
.access-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.access-actions .btn { font-size: var(--text-control); }
.reading-access > .model-hint { font-size: var(--text-meta); line-height: 1.8; margin-bottom: 20px; }
.institution-help { display: flex; gap: 12px; align-items: flex-start; }
.step-mini { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border: 1px solid var(--line-dark); color: var(--green); border-radius: 50%; font-size: var(--text-meta); margin-top: 2px; }
.institution-help p { font-size: var(--text-meta); color: var(--muted); line-height: 1.8; margin: 0; }
.copy-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 12px 0 20px 36px; }
.copy-actions > .btn, .copy-actions > a { font-size: var(--text-control); }
.copy-actions > a { min-height: 44px; display: inline-flex; align-items: center; }
.copy-fallback { position: fixed; left: -10000px; top: 0; }
.cnki-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 24px; }
.cnki-steps > div { min-width: 0; }
.cnki-steps b { font: italic 30px var(--serif); color: var(--gold); display: block; margin-bottom: 10px; }
.cnki-steps span { display: block; font-size: var(--text-body); color: var(--green); }
.cnki-steps small { display: block; font-size: var(--text-meta); color: var(--muted); margin-top: 8px; line-height: 1.8; }
.cnki-links { margin: 0 0 28px; }
.cnki-links > a:last-child { font-size: var(--text-control); display: inline-flex; align-items: center; min-height: 44px; }
.cnki-boundary { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; }
.cnki-preview-list { display: flex; flex-direction: column; gap: 24px; }
.cnki-preview-card { padding: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.cnki-preview-card h3 { font-size: 24px; line-height: 1.55; margin: 14px 0; }
.cnki-preview-card > .model-hint { margin-bottom: 20px; }
.cnki-preview-card .info-grid { font-size: var(--text-body); grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
.preview-abstract { font-size: var(--text-body); line-height: 1.8; color: var(--muted); margin-top: 20px; }
.preview-abstract p { font-size: var(--text-reading); line-height: var(--reading-leading); margin: 14px 0 0; white-space: pre-wrap; }
.preview-source { display: inline-flex; align-items: center; gap: 10px; font-size: var(--text-control); margin-top: 20px; min-height: 44px; }
.preview-source .icon { width: 17px; height: 17px; }


/* Feedback belongs to real requests and stays clear of the dock. */
.job-float { position: fixed; bottom: calc(var(--dock-reserve) + 12px); right: 24px; width: min(380px, calc(100vw - 32px)); padding: 20px; background: var(--paper); border: 1px solid var(--line-dark); border-radius: 12px; box-shadow: var(--shadow-float); z-index: 45; }
.job-head { display: flex; align-items: center; gap: 10px; font-size: var(--text-control); font-weight: 500; color: var(--green); }
.job-head > .icon { width: 20px; height: 20px; }
.job-float .steps { max-height: min(320px, 35vh); overflow: auto; }
.spinner { width: 18px; height: 18px; flex: 0 0 18px; border: 2px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
.toast { position: fixed; bottom: calc(var(--dock-reserve) + 12px); left: 50%; transform: translate(-50%, 12px); max-width: min(640px, calc(100vw - 32px)); padding: 14px 20px; background: var(--green-dark); color: var(--paper); border-radius: 10px; box-shadow: var(--shadow-float); z-index: 100; font-size: var(--text-control); line-height: 1.65; opacity: 0; pointer-events: none; transition: opacity var(--motion-fast), transform var(--motion-base) var(--ease-out); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }
body.modal-open .toast { bottom: max(24px, env(safe-area-inset-bottom, 0px)); }
.request-error { padding: 20px; margin-block: 20px; background: #faf0e9; border: 1px solid #d4ae9d; border-radius: 10px; color: var(--danger); font-size: var(--text-body); }
.request-error p { margin-bottom: 14px; }
.request-error .btn { margin-top: 8px; }
.content-skeleton { display: grid; gap: 16px; padding-block: 24px; min-height: 180px; }
.skeleton, .skeleton-line { position: relative; overflow: hidden; background: var(--green-soft); border-radius: 6px; min-height: 20px; }
.skeleton-line { height: 20px; }
.skeleton-line:first-child { width: 68%; height: 30px; }
.skeleton-line:last-child { width: 82%; }
.skeleton::after, .skeleton-line::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgb(255 254 251 / 70%), transparent); animation: skeleton-shimmer 1.5s ease-in-out infinite; }
/* Motion uses one calm rhythm and an immediate reduced-motion equivalent. */
.page-enter { animation: page-in 240ms var(--ease-out) backwards; }
.page-enter .weekly-slot { animation: card-in var(--motion-slow) var(--ease-out) backwards; }
.page-enter .weekly-slot:nth-child(2) { animation-delay: 55ms; }
.page-enter .weekly-slot:nth-child(3) { animation-delay: 110ms; }
.page-enter .weekly-slot:nth-child(4) { animation-delay: 165ms; }
.save-feedback .icon { animation: save-in var(--motion-slow) var(--ease-out); }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes card-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes save-in { 0% { transform: scale(1); } 55% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes skeleton-shimmer { to { transform: translateX(100%); } }

/* Space changes with the screen; type remains comfortably readable. */
@media (min-width: 1180px) {
  .weekly-grid:has(> .weekly-slot:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weekly-grid:has(> .weekly-slot:only-child) { grid-template-columns: 1fr; }
}
@media (max-width: 1179px) {
  .weekly-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head { align-items: flex-start; }
  .page-head .head-buttons { max-width: 260px; justify-content: flex-end; }
  .weekly-issue { align-items: flex-start; }
  .issue-topic { flex-direction: column; gap: 6px; }
  .issue-progress { justify-content: flex-end; max-width: 380px; }
}
@media (min-width: 1041px) and (max-height: 800px) {
  .topbar { min-height: 76px; padding-block: 10px; }
  .page { padding-top: 24px; }
  .page-head { margin-bottom: 16px; }
  .page-head .eyebrow { margin-bottom: 8px; }
  .page-head p { margin-top: 8px; }
  .weekly-issue { padding-block: 16px; }
  .weekly-slot { padding: 24px; }
  .weekly-role { margin-bottom: 16px; }
  .weekly-slot > .paper-title { margin-bottom: 14px; }
  .slot-learning { margin-bottom: 20px; }
  .slot-learning > span { margin-bottom: 6px; }
  .weekly-bottom > .paper-tools { padding-bottom: 16px; }
}
@media (max-width: 1040px) {
  .page-head { flex-direction: column; gap: 24px; }
  .page-head .head-buttons { max-width: none; justify-content: flex-start; }
  .title-phrase { display: inline; }
  .breadcrumb { padding-left: 20px; }
  .private-label { display: none; }
  .reading-extras { grid-template-columns: 1fr; }
  .reading-side { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; align-items: center; border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .practice-note { padding-bottom: 0; }
  .cnki-entry { border: 0; flex-direction: column; align-items: flex-start; padding-top: 0; }
  .settings-layout, .content-grid { grid-template-columns: 1fr; }
  .settings-layout > .rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-item { grid-template-columns: 44px minmax(0, 1fr); gap: 20px; }
  .route-item > .btn { grid-column: 2; justify-self: start; }
  .chinese-discovery { grid-template-columns: 1fr; }
  .chinese-actions { justify-content: flex-start; }
}
@media (max-width: 820px) {
  .weekly-grid { grid-template-columns: 1fr; }
  .weekly-slot { padding: 28px; }
  .weekly-issue { flex-direction: column; gap: 16px; }
  .issue-topic { flex-direction: row; align-items: baseline; gap: 14px; }
  .issue-progress { width: 100%; max-width: none; justify-content: flex-start; }
  .issue-progress .rail-link { margin-left: auto; }
  .paper-card { align-items: flex-start; }
  .paper-card > .paper-tools { flex-direction: column; }
  .institution-panel { flex-direction: column; align-items: flex-start; gap: 24px; }
  .institution-buttons { flex-direction: row; flex-wrap: wrap; }
  .six-questions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --text-h1: 32px; --text-h2: 24px; }
  .topbar { min-height: 80px; padding: 14px 24px; }
  .brand { gap: 10px; }
  .brand strong { font-size: 22px; }
  .brand img { width: 30px; height: 36px; }
  .brand span { letter-spacing: 1.5px; }
  .breadcrumb { display: none; }
  .top-actions { gap: 8px; }
  .topic-filter { flex-basis: 100%; width: 100%; min-width: 0; }
  .topic-filter .chips { position: static; width: 100%; max-width: 100%; margin-top: 8px; }
  .topic-filter .chip { max-width: 100%; }
  .page { padding: 32px 24px 40px; }
  .page-footer { width: calc(100% - 48px); padding-block: 24px 28px; }
  .page-head { margin-bottom: 28px; }
  .page-head h1 { letter-spacing: -.5px; }
  .head-buttons { gap: 10px; }
  .dock-shelf { padding-inline: 12px; }
  .reading-dock { gap: 6px; padding: 6px; }
  .dock-panel { height: 60px; }
  .dock-nav { gap: 0; }
  .dock-item { flex-direction: column; gap: 3px; padding: 6px 2px; font-size: var(--text-control); }
  .dock-item > .icon { width: 19px; height: 19px; }
  .dock-label-full { display: none; }
  .dock-label-short { display: inline; }
  .dock-count { right: 1px; top: 0; font-size: var(--text-meta); }
  .dock-compact { gap: 4px; }
  .dock-compact button { padding-inline: 12px; }
  .panel, .rail-card { padding: 24px; }
  .dialog { max-height: calc(var(--app-height) - 24px); border-radius: 12px; }
  .overlay { padding: 12px; }
  .dialog-header { padding: 24px; gap: 16px; max-height: calc(var(--app-height) * .34); }
  .dialog-header h2 { font-size: 24px; }
  .dialog-body { padding: 24px; }
  .dialog-footer { padding: 16px 24px; flex-wrap: wrap; }
  .dialog-footer > .model-hint { max-width: 34ch; }
  .tabs { gap: 20px; }
  .job-float { right: 16px; }
  .registry-table th, .registry-table td { padding: 16px; }
  body.keyboard-open .shell, body.keyboard-editing .shell { grid-template-rows: minmax(0, 1fr) 0; }
  body.keyboard-open .dock-shelf, body.keyboard-editing .dock-shelf { height: 0; padding-block: 0; overflow: hidden; }
  body.keyboard-open .reading-dock, body.keyboard-editing .reading-dock { opacity: 0; transform: translateY(16px); pointer-events: none; }
  body.keyboard-open .toast, body.keyboard-editing .toast { bottom: 16px; }
}
@media (max-width: 520px) {
  .topbar { padding-inline: 18px; gap: 12px; }
  .brand strong { font-size: 21px; }
  .brand img { width: 28px; height: 34px; }
  .brand span { font-size: var(--text-meta); letter-spacing: 1px; }
  .topbar .btn { padding-inline: 8px; }
  .topbar .btn .icon { width: 17px; height: 17px; }
  .page { padding: 28px 18px 36px; }
  .page-footer { width: calc(100% - 36px); flex-direction: column; gap: 10px; }
  .page-head h1 .title-phrase { display: block; }
  .page-head h1 { max-width: 100%; }
  .page-head .eyebrow { letter-spacing: 1px; }
  .head-buttons { width: 100%; }
  .head-buttons .btn { flex: 1; }
  .weekly-issue { padding-block: 20px; }
  .issue-topic { flex-direction: column; gap: 8px; }
  .issue-progress { gap: 8px 16px; }
  .issue-progress .rail-link { margin-left: 0; width: 100%; }
  .weekly-slot { padding: 24px; }
  .weekly-role { margin-bottom: 20px; }
  .weekly-role .group-number { font-size: 28px; }
  .weekly-slot > .paper-title { margin-bottom: 18px; }
  .weekly-slot > .paper-tools .btn.primary { max-width: none; }
  .weekly-bottom > .paper-tools { flex-wrap: wrap; }
  .quality-policy-banner > summary > span:not(.details-cue) { width: 100%; }
  .quality-policy-banner .details-cue { margin-left: 0; }
  .policy-content { padding: 18px; }
  .reading-extras { margin-block: 32px; gap: 24px; }
  .reading-side { display: block; }
  .cnki-entry { flex-direction: row; align-items: center; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }
  .section-head { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  .section-head .rail-link { min-height: 44px; }
  .paper-card { display: block; padding-block: 24px; }
  .paper-card > .paper-tools { flex-direction: row; justify-content: flex-end; margin-top: 16px; }
  .catalog-evidence { gap: 8px 16px; }
  .frontier-list .paper-card { padding-block: 24px; }
  .frontier-list .paper-tools { justify-content: flex-end; margin-top: 12px; }
  .search-panel { padding-top: 28px; }
  .search-form { flex-wrap: wrap; }
  .search-form .input-wrap { flex-basis: 100%; }
  .search-form > .btn { flex: 1; }
  .catalog-controls, .search-filters { align-items: flex-start; gap: 12px 18px; margin-top: 20px; }
  .catalog-controls label, .search-filters label { max-width: 100%; }
  .compact-select { max-width: 240px; }
  .chinese-discovery { padding: 20px; }
  .chinese-actions { width: 100%; }
  .chinese-actions .btn { flex: 1; }
  .chinese-source-list, .journal-entry-list, .source-grid { grid-template-columns: 1fr; }
  .chinese-source-list article, .source-card { padding: 24px; }
  .panel, .rail-card { padding: 22px 20px; }
  .panel-head { flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
  .form-grid { grid-template-columns: 1fr; gap: 24px; }
  .field.full { grid-column: auto; }
  .form-actions { gap: 12px; }
  .form-actions > .model-hint { flex-basis: 100%; }
  .settings-layout > .rail { display: flex; flex-direction: column; }
  .openalex-quota { gap: 16px; padding: 18px; }
  .route-item { grid-template-columns: 32px minmax(0, 1fr); gap: 16px; padding-block: 24px; }
  .route-order { font-size: 30px; }
  .route-question { padding: 14px; }
  .notice { padding: 18px; gap: 16px; flex-wrap: wrap; }
  .six-questions { grid-template-columns: 1fr; gap: 24px; }
  .info-grid { grid-template-columns: 80px minmax(0, 1fr); gap: 16px 14px; }
  .run-head { flex-wrap: wrap; gap: 8px; }
  .registry-table th, .registry-table td { padding: 14px; min-width: 155px; }
  .overlay { padding: 8px; }
  .dialog { max-height: calc(var(--app-height) - 16px); border-radius: 10px; }
  .dialog-header { padding: 20px 18px; gap: 8px; }
  .dialog-header .paper-meta { margin-bottom: 12px; }
  .dialog-body { padding: 24px 18px; }
  .dialog-footer { padding: 14px 18px; align-items: flex-start; gap: 10px; }
  .dialog-footer > .model-hint { max-width: none; flex-basis: 100%; }
  .dialog-footer .paper-tools { width: 100%; justify-content: flex-end; gap: 8px; }
  .dialog-footer .btn { padding-inline: 10px; }
  .tabs { gap: 8px; margin-bottom: 24px; }
  .tab { min-height: 48px; }
  .basis-banner { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .guide-lead { font-size: 22px; }
  .research-section-head { gap: 10px; flex-wrap: wrap; }
  .research-section-head small { margin-left: 0; }
  .research-notes, .terms, .score-components { grid-template-columns: 1fr; gap: 20px; }
  .quality-detail-head { align-items: flex-start; gap: 16px; }
  .reference-score { max-width: 100px; }
  .reference-score strong { font-size: 34px; }
  .reading-access { padding: 20px 16px; }
  .reading-access-head { align-items: flex-start; flex-wrap: wrap; gap: 14px; }
  .access-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .access-actions .btn { justify-content: flex-start; }
  .copy-actions { margin-left: 0; gap: 10px; }
  .cnki-steps { gap: 14px; }
  .cnki-steps b { font-size: 28px; }
  .cnki-links { align-items: flex-start; flex-direction: column; gap: 12px; }
  .cnki-preview-card { padding: 20px 16px; }
  .cnki-preview-card .info-grid { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; }
  .job-float { left: 16px; right: 16px; width: auto; padding: 18px; }
  .job-float .steps { max-height: 26vh; }
  .toast { width: max-content; max-width: calc(100vw - 32px); padding: 14px 18px; }
  .empty { padding: 36px 16px; }
}
@media (max-width: 360px) {
  .topbar { padding-inline: 14px; }
  .brand img { display: none; }
  .page { padding-inline: 14px; }
  .page-footer { width: calc(100% - 28px); }
  .weekly-slot { padding: 20px; }
  .dock-count { right: 0; padding-inline: 2px; }
  .cnki-steps { grid-template-columns: 1fr; }
  .cnki-steps > div { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0 12px; }
  .cnki-steps b { grid-row: 1 / 3; margin: 0; }
  .cnki-steps small { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --motion-fast: 0ms; --motion-base: 0ms; --motion-slow: 0ms; }
  html, .app-scroll, .dialog-body { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .page-enter, .page-enter .weekly-slot { opacity: 1; transform: none; }
  .skeleton::after, .skeleton-line::after { display: none; }
}
@media print {
  html, body, #app, .shell, .app-scroll { height: auto; max-height: none; overflow: visible; }
  body, body.modal-open { position: static; inset: auto; width: auto; overflow: visible; }
  .reading-dock, .dock-shelf, .page-footer, .topbar, .head-buttons, .paper-tools, .btn, .job-float, .toast { display: none !important; }
  .shell { display: block; }
  .page { padding: 0; max-width: none; }
  .weekly-grid { display: block; }
  .weekly-slot { break-inside: avoid; margin-bottom: 20px; box-shadow: none; }
  .overlay { position: static; height: auto; background: white; padding: 0; }
  .dialog { max-height: none; width: 100%; box-shadow: none; }
  .dialog-header { max-height: none; }
  .dialog-body { overflow: visible; }
  .reading-side { display: none; }
  .reading-extras { display: block; }
}
