:root {
  color-scheme: light;
  --bg: #f7f6f2;
  --surface: #fff;
  --ink: #23232d;
  --muted: #72717d;
  --primary: #6552bc;
  --primary-dark: #51419d;
  --soft: #f0ecfb;
  --line: #e9e7ed;
  --green: #2b7156;
  --green-bg: #edf6ef;
  --danger: #b03c48;
  --radius: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, label.picker-button, .drop-zone { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
button:focus-visible, a:focus-visible, summary:focus-visible, label[role=button]:focus-visible { outline: 3px solid #b3a3ed; outline-offset: 4px; }
input, textarea, select { color: var(--ink); background: #fff; border: 1px solid #dcd9e4; border-radius: 12px; padding: 13px 14px; width: 100%; min-width: 0; font-size: 16px; }
input:focus, textarea:focus, select:focus { outline: 2px solid #b4a4ef; outline-offset: 1px; border-color: var(--primary); }
input::placeholder, textarea::placeholder { color: #96939f; }
input, select { min-height: 50px; }
textarea { resize: vertical; line-height: 1.9; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(27px, 6vw, 36px); font-weight: 720; line-height: 1.35; letter-spacing: -.7px; overflow-wrap: anywhere; }
h2 { font-size: 18px; font-weight: 650; line-height: 1.5; }
h3 { font-size: 16px; font-weight: 600; }
svg { flex-shrink: 0; vertical-align: middle; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 13px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { color: var(--primary); font-size: 11px; letter-spacing: 1.8px; font-weight: 650; line-height: 1.6; }
.full { width: 100%; }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.site-header { max-width: 1020px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top, 0px)) 22px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 20px; letter-spacing: .7px; }
.brand-icon { width: 37px; height: 37px; border-radius: 11px; display: grid; place-items: center; background: var(--primary); color: white; }
.brand-caption { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 14px; letter-spacing: .3px; }
.icon-button { border: 0; color: var(--muted); background: transparent; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; }
.icon-button:hover { background: var(--line); }
.shell { max-width: 940px; margin: 0 auto; padding: 12px 20px calc(115px + env(safe-area-inset-bottom, 0px)); }
.page-intro { padding: 18px 0 27px; }
.page-intro h1 { margin: 9px 0 10px; }
.page-intro.compact { padding-top: 9px; padding-bottom: 22px; }
.page-intro > .muted { font-size: 14px; }
.stats { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin-top: 24px; }
.stats strong { font-size: 17px; color: var(--ink); font-weight: 650; margin-right: 3px; }
.stats-divider { width: 1px; height: 13px; background: #d8d4df; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 3px 15px #302d4504; min-width: 0; }
.section-title { display: flex; gap: 13px; align-items: center; margin-bottom: 22px; }
.section-title > div { flex: 1; min-width: 0; }
.section-title p { margin-top: 3px; }
.step-mark { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; color: var(--primary); background: var(--soft); }
.step-mark.neutral { color: #80715b; background: #f5f0e8; }
.pill { display: inline-flex; align-items: center; justify-content: center; padding: 4px 9px; border-radius: 7px; white-space: nowrap; font-size: 11px; font-weight: 550; flex-shrink: 0; }
.soft { background: var(--soft); color: var(--primary); }
.success { background: var(--green-bg); color: var(--green); }
.neutral-pill { background: #f3f2f5; color: var(--muted); }
.button { display: inline-flex; gap: 9px; justify-content: center; align-items: center; border: 1px solid transparent; border-radius: 12px; min-height: 50px; padding: 12px 16px; font-size: 14px; font-weight: 600; transition: background .15s ease, border-color .15s ease; line-height: 1.5; text-align: center; }
.button.primary { color: #fff; background: var(--primary); }
.button.primary:hover:not(:disabled), .button.primary:active:not(:disabled) { background: var(--primary-dark); }
.button.secondary { color: #555160; background: #fff; border-color: #dedbe6; }
.button.secondary:hover:not(:disabled), .button.secondary:active:not(:disabled) { background: #f7f5fb; border-color: #bcb3d2; }
.button.danger { color: var(--danger); background: #fff7f7; border-color: #edd3d7; }
.button.danger:hover:not(:disabled), .button.danger:active:not(:disabled) { background: #fce8eb; border-color: var(--danger); }
.field-label { display: block; font-size: 13px; font-weight: 550; margin: 19px 0 8px; }
.upload-card .field-label { margin-top: 0; }
.field-label .muted { font-size: 11px; font-weight: 400; margin-left: 4px; }
.picker-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.picker-actions .picker-button { flex: 1; min-width: 0; }
.picker-actions .picker-button.full { flex-basis: 100%; }
.picker-help { margin-top: 14px; font-size: 12px; line-height: 1.7; }
[data-upload-submit] { margin-top: 18px; }
.fine-print { font-size: 10px; color: var(--muted); text-align: center; margin-top: 10px; }
.drop-zone { display: flex; width: 100%; flex-direction: column; gap: 8px; padding: 26px 12px; border: 1px dashed #c7bce3; background: #faf8ff; border-radius: 13px; align-items: center; color: var(--primary); cursor: pointer; text-align: center; }
.drop-zone strong { color: #51456d; font-size: 14px; margin-top: 5px; }
.drop-zone span { font-size: 12px; color: var(--muted); }
.file-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 14px; }
.file-list:empty { display: none; }
.file-item { display: flex; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; align-items: center; }
.file-preview { width: 46px; height: 58px; object-fit: cover; border-radius: 7px; background: var(--soft); flex-shrink: 0; }
.file-placeholder { display: grid; place-items: center; font-size: 11px; color: var(--primary); }
.file-info { min-width: 0; flex: 1; }
.file-name { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-controls { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.file-controls button { min-width: 48px; min-height: 48px; border: 1px solid var(--line); border-radius: 8px; background: #faf9fc; color: #65606f; padding: 4px 8px; font-size: 12px; }
.file-controls button:last-child { color: var(--danger); }
.home-grid { display: grid; gap: 16px; }
.courseware-prompt { background: #f0eee7; border-color: #e6e2d7; padding: 23px; box-shadow: none; }
.courseware-prompt h2 { margin: 14px 0 8px; }
.courseware-prompt > p { font-size: 13px; line-height: 1.9; }
.courseware-prompt > .button { margin-top: 20px; background: transparent; border-color: #d5d0c3; }
.process-note { display: flex; flex-wrap: wrap; gap: 6px 16px; color: #8b8171; font-size: 10px; margin-top: 22px; }
.section-block { margin-top: 32px; }
.section-heading { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.section-heading h2 { font-size: 16px; }
.record-list { display: grid; gap: 12px; }
.record-card { display: flex; gap: 12px; align-items: center; padding: 16px; }
.record-card h3 { overflow-wrap: anywhere; font-size: 14px; margin-bottom: 4px; }
.record-card .small { font-size: 11px; }
.record-icon { color: var(--primary); background: var(--soft); width: 42px; height: 46px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.record-icon.green { background: var(--green-bg); color: var(--green); }
.document-icon { width: 45px; height: 49px; display: grid; place-items: center; background: #f0edf7; color: var(--primary); border-radius: 10px; font-size: 9px; font-weight: 700; flex-shrink: 0; }
.empty-state { padding: 35px 18px; text-align: center; border: 1px dashed #dcd8e3; border-radius: 17px; }
.empty-icon { display: inline-grid; place-items: center; width: 62px; height: 62px; margin-bottom: 15px; background: #eeebf4; color: #a196b9; border-radius: 20px; }
.empty-state h3 { font-size: 15px; }
.empty-state p { color: var(--muted); font-size: 13px; margin: 8px auto 0; max-width: 360px; }
.empty-state .button { margin-top: 23px; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; gap: clamp(0px, 7vw, 70px); padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left)); border-top: 1px solid #e7e4ec; background: #ffffffed; backdrop-filter: blur(16px); z-index: 10; }
.bottom-nav a { width: 100px; min-height: 52px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; color: #8b8794; font-size: 10px; border-radius: 12px; }
.bottom-nav a.active { color: var(--primary); background: #f4f1fb; font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); min-height: 48px; }
.job-card { margin: 0 0 20px; }
.job-card h2 { font-size: 16px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); animation: pulse 1.7s ease-in-out infinite; }
.status-dot.failed { background: var(--danger); animation: none; }
.status-dot.done { background: var(--green); animation: none; }
progress { display: block; appearance: none; border: 0; border-radius: 9px; background: #efedf5; height: 6px; width: 100%; overflow: hidden; margin: 20px 0 9px; }
progress::-webkit-progress-bar { background: #efedf5; border-radius: 9px; }
progress::-webkit-progress-value { background: var(--primary); border-radius: 9px; }
progress::-moz-progress-bar { background: var(--primary); }
.job-card .button { margin-top: 12px; }
.transcription-progress { border-top: 1px solid var(--line); margin: 16px 0; padding-top: 16px; }
.transcription-progress .section-heading { margin-bottom: 7px; }
.transcription-warning { color: var(--danger); background: #fff2f1; padding: 12px; border-radius: 10px; margin-top: 10px; overflow-wrap: anywhere; }
.transcription-pages { display: grid; gap: 10px; margin-top: 14px; }
.transcription-page { min-width: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.transcription-page summary { min-height: 48px; padding: 12px; cursor: pointer; overflow-wrap: anywhere; font-size: 14px; }
.transcription-page summary::marker { color: var(--primary); }
.transcription-page-state { color: var(--muted); font-size: 12px; margin-left: 8px; }
.transcription-output { margin: 0; padding: 13px; border-top: 1px solid var(--line); background: #faf9fc; font: inherit; font-size: 16px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 48vh; max-height: 48dvh; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
.transcription-help { margin-top: 12px; }
.codex-log-label { margin-top: 12px; }
.segmented.codex-log-tabs { margin: 12px 0 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.codex-log-output { margin: 0; padding: 14px; color: #e6e8f0; background: #242632; border-radius: 0 0 12px 12px; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 160px; max-height: 46vh; max-height: 46dvh; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
.codex-log-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.codex-log-footer .button { margin-top: 0; min-height: 44px; padding: 8px 12px; font-size: 12px; }
.transcription-text-heading { margin-top: 20px; }
.completed-codex-logs > summary { min-height: 48px; padding: 10px 0; color: var(--primary); cursor: pointer; font-size: 14px; }
.completed-generation-logs > summary { min-height: 48px; padding: 10px 0; color: var(--primary); cursor: pointer; font-size: 14px; }
.generation-progress { border-top: 1px solid var(--line); margin: 16px 0; padding-top: 16px; }
.generation-progress .section-heading { margin-bottom: 7px; }
.segmented.generation-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 16px 0 12px; }
.segmented.generation-tabs button { min-width: 0; padding: 10px 6px; white-space: nowrap; }
.generation-preview { border-radius: 10px; border: 1px solid var(--line); margin-top: 10px; }
.generation-lock-note { margin-top: 12px; }
.generation-references { display: grid; gap: 10px; }
.generation-reference { min-width: 0; border: 1px solid var(--line); padding: 12px; border-radius: 10px; }
.generation-reference summary { min-height: 48px; cursor: pointer; overflow-wrap: anywhere; font-size: 14px; }
.generation-reference .small { overflow-wrap: anywhere; }
.generation-pdf-state { margin: 14px 0; }
.generation-log > summary { min-height: 48px; padding: 10px 0; cursor: pointer; font-size: 14px; }
.form-error { color: var(--danger); background: #fff3f2; padding: 10px 12px; font-size: 13px; border-radius: 9px; margin: 12px 0; overflow-wrap: anywhere; }
.notice { display: flex; align-items: flex-start; gap: 10px; color: var(--green); background: var(--green-bg); padding: 13px 16px; border-radius: 12px; margin-bottom: 20px; font-size: 12px; }
.segmented { display: flex; gap: 6px; padding: 4px; background: #eeecf2; border-radius: 12px; }
.segmented button { flex: 1; border: 0; border-radius: 9px; padding: 10px; min-height: 48px; background: transparent; color: var(--muted); font-size: 14px; }
.segmented button.active { color: var(--primary); background: white; box-shadow: 0 1px 5px #302d450a; font-weight: 600; }
.review-tabs { margin-bottom: 15px; }
.draft-editor { min-height: 52dvh; padding: 12px; background: #fdfcfa; font-size: 16px; }
.text-panel { padding: 18px; }
.text-panel .small { margin-top: 10px; }
.save-state { color: var(--green); }
.save-state.unsaved { color: #9b6e23; }
.review-footer { margin-top: 16px; padding: 18px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.review-footer strong { font-size: 14px; }
.review-footer p { margin-top: 4px; }
.review-footer .button { width: 100%; }
.review-footer .form-error { width: 100%; }
.image-viewer { background: #f3f1f5; border-radius: 12px; padding: 8px; }
.image-viewer a { display: block; }
.image-viewer img { width: 100%; height: auto; display: block; border-radius: 8px; }
.image-viewer span { display: block; text-align: center; font-size: 11px; color: var(--muted); padding: 9px 0 3px; }
.image-pagination { display: flex; gap: 12px; margin-top: 14px; }
.image-pagination .button { flex: 1; }
.page-content-list { display: grid; gap: 12px; }
details summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: 12px; list-style: none; }
details summary::after { content: '+'; color: var(--muted); font-size: 22px; margin-left: auto; }
details[open] summary::after { content: '−'; }
details summary::-webkit-details-marker { display: none; }
.document-page { padding: 11px 18px; }
.document-page summary strong { font-size: 14px; overflow-wrap: anywhere; }
.document-page > p { border-top: 1px solid var(--line); padding: 18px 0 8px; font-size: 14px; line-height: 1.9; }
.material-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.material-actions .button { font-size: 13px; padding: 12px 8px; }
.material-delete { grid-column: 1 / -1; }
.material-file-note { margin: 12px 0 18px; }
.material-preview { padding: 12px 18px; margin-bottom: 20px; scroll-margin-top: 16px; }
.material-preview summary { flex-wrap: wrap; gap: 6px 12px; }
.material-preview summary strong { font-size: 15px; }
.material-preview-body { border-top: 1px solid var(--line); padding-top: 16px; }
.material-preview-body > p { margin-bottom: 12px; }
.material-preview .field-label { margin-top: 14px; }
.material-page-image { display: block; margin-top: 16px; background: #f3f1f5; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.material-page-image img { display: block; width: 100%; height: auto; }
.material-preview-error .button { margin: 12px 0; }
.material-delete-dialog, .worksheet-delete-dialog { width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; margin: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--ink); background: var(--surface); }
.material-delete-dialog::backdrop, .worksheet-delete-dialog::backdrop { background: #23232d70; }
.material-delete-name, .worksheet-delete-name { margin: 14px 0 10px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.material-dialog-actions, .worksheet-dialog-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.archive-search { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 23px; }
.archive-search input { flex: 1 1 100%; background: white; }
.archive-search select { flex: 1; width: auto; font-size: 14px; }
.archive-search .button { min-width: 88px; }
.worksheet-card { padding: 21px; }
.worksheet-card .row { justify-content: space-between; }
.worksheet-card h2 { margin-top: 17px; font-size: 18px; overflow-wrap: anywhere; }
.worksheet-card > p { margin-top: 7px; font-size: 11px; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; margin-top: 17px; border-top: 1px solid var(--line); color: var(--primary); font-size: 12px; }
.worksheet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.worksheet-actions .button { flex: 1; font-size: 12px; padding: 12px 10px; }
.questions-paper { padding: 0 21px; }
.paper-heading { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--line); }
.paper-heading .small { font-size: 11px; }
.question { padding: 23px 0; border-bottom: 1px solid var(--line); }
.question:last-child { border: 0; }
.question-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.question-number { color: var(--primary); font-size: 15px; font-weight: 700; }
.question-meta .small { font-size: 11px; }
.question-text { font-size: 16px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.answer-text { background: var(--green-bg); border-left: 3px solid #6e9b81; padding: 13px 15px; border-radius: 0 10px 10px 0; margin-top: 17px; }
.answer-text > span { color: var(--green); font-size: 11px; font-weight: 600; }
.answer-text > p { font-size: 14px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 6px; }
.submission-card { margin-top: 24px; scroll-margin-top: 20px; }
.submission-card .section-title { align-items: flex-start; margin-bottom: 0; }
.submission-card .section-title h2 { font-size: 16px; }
.submission-record { padding: 11px 17px; margin-top: 11px; }
.submission-record summary { flex-wrap: wrap; gap: 3px 12px; }
.submission-record summary strong { font-size: 13px; }
.submission-record summary time { font-size: 10px; }
.submission-files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 14px; padding-bottom: 8px; }
.submission-file { background: #f5f3f8; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 120px; gap: 8px; color: var(--primary); }
.submission-file img { width: 100%; height: 140px; object-fit: cover; }
.submission-file span { font-size: 11px; padding: 0 10px 10px; max-width: 100%; overflow-wrap: anywhere; }
.source-link { display: flex; min-height: 48px; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); gap: 8px; margin-top: 25px; }
.worksheet-delete-section { margin-top: 24px; }
.worksheet-delete-section > h2 { font-size: 16px; }
.worksheet-delete-section > p { margin: 10px 0 16px; }
.login-shell { max-width: 460px; padding-top: clamp(25px, 7dvh, 65px); }
.login-intro { margin-bottom: 28px; }
.login-intro h1 { font-size: 30px; line-height: 1.6; margin: 11px 0; letter-spacing: -.7px; }
.login-intro > p { font-size: 13px; }
.login-card { padding: 25px; }
.login-card > h2 { margin: 17px 0 4px; }
.login-card .button.primary { margin-top: 25px; }
.password-field { position: relative; }
.password-field input { padding-right: 62px; }
.text-button { border: 0; background: transparent; color: var(--primary); font-size: 12px; min-width: 48px; min-height: 48px; }
.password-field .text-button { position: absolute; top: 1px; right: 4px; }
.login-footer { margin: 25px 0; text-align: center; font-size: 11px; color: #96909f; }
.toast { position: fixed; bottom: calc(95px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); max-width: calc(100% - 40px); background: #302b42; color: #fff; border-radius: 12px; padding: 12px 18px; font-size: 13px; z-index: 30; box-shadow: 0 5px 20px #302d4520; }
.skip-link { position: fixed; top: -100px; left: 16px; background: #fff; color: var(--primary); padding: 12px; z-index: 40; }
.skip-link:focus { top: 8px; }
.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; }
@keyframes pulse { 50% { opacity: .35; } }
@media (max-width: 359px) {
  .shell { padding-left: 14px; padding-right: 14px; }
  .site-header { padding-left: 16px; padding-right: 14px; }
  .card { padding: 17px; }
  .brand-caption { display: none; }
  .section-title { gap: 10px; }
  .section-title .pill { display: none; }
  .record-card { flex-wrap: wrap; }
  .record-card .grow { min-width: 130px; }
  .worksheet-actions .button { flex-basis: 100%; }
}
@media (max-width: 600px) { .brand-caption { display: none; } }
@media (max-width: 759px) { .keyboard-open .bottom-nav { display: none; } }
@media (min-width: 760px) {
  .material-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .material-delete { grid-column: auto; }
  .shell { padding-top: 24px; }
  .home-grid { grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: start; }
  .courseware-prompt { padding: 27px; }
  .worksheet-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worksheet-list .empty-state { grid-column: 1/-1; }
  .archive-search { flex-wrap: nowrap; }
  .archive-search input { flex-basis: auto; }
  .archive-search select { flex: 0 0 160px; }
  .review-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1.1fr; align-items: start; }
  .review-grid .image-panel[hidden], .review-grid .text-panel[hidden] { display: block !important; }
  .review-tabs { display: none; }
  .review-footer .button { width: auto; }
  .questions-paper { padding: 0 32px; }
  .worksheet-actions { justify-content: flex-end; }
  .worksheet-actions .button { flex: 0 1 auto; font-size: 13px; padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header,.bottom-nav,.worksheet-actions,.submission-card,.section-block,.source-link,.back-link,.worksheet-delete-section { display: none; } .shell { padding: 0; } .questions-paper { box-shadow: none; border: none; } }
