:root {
  color-scheme: light;
  --ink: #202c26;
  --muted: #78857f;
  --line: #e3e9e5;
  --canvas: #f5f7f6;
  --white: #fff;
  --green: #177a56;
  --green-dark: #116344;
  --green-light: #edf7f0;
  --blue: #337fab;
  --amber: #b57a1d;
  --red: #c44b4b;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--ink);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #8acbb0; outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { overflow-wrap: anywhere; }
h1 { font-size: 28px; font-weight: 650; line-height: 1.45; }
h2 { font-size: 17px; font-weight: 650; line-height: 1.5; }
h3 { font-size: 15px; font-weight: 600; }
svg { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: middle; }
.muted { color: var(--muted); }
.text-green { color: var(--green); }
.text-amber { color: var(--amber); }
.text-danger { color: var(--red); }
.numeric, .exam-timer strong, .question-position { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.align-right { text-align: right; }
.unit { font-size: 12px; color: var(--muted); font-weight: 400; }
.full-width { width: 100%; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; min-height: 40px; border: 1px solid transparent; border-radius: 5px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s; }
.button.primary { background: var(--green); color: white; }
.button.primary:hover:not(:disabled) { background: var(--green-dark); }
.button.secondary { background: white; color: #45534b; border-color: #dce4de; }
.button.secondary:hover:not(:disabled) { background: #f0f4f1; border-color: #bccbc2; }
.button.danger { background: var(--red); color: white; }
.button.danger:hover:not(:disabled) { background: #ae3636; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #6e7d74; flex: 0 0 auto; }
.icon-button:hover:not(:disabled) { background: #eaf0ec; color: var(--ink); }
.icon-button:disabled { opacity: .3; }
.text-button { border: 0; padding: 0; background: none; color: inherit; text-align: left; }
.text-link { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: 13px; font-weight: 500; }
.text-link:hover { color: var(--green-dark); }
.text-link svg { width: 15px; height: 15px; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid #b9d8c7; border-top-color: var(--green); border-radius: 50%; animation: spin .7s linear infinite; flex: 0 0 auto; }
.primary .spinner { border-color: #ffffff55; border-top-color: white; }
@keyframes spin { to { transform: rotate(360deg); } }

label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 500; color: #48564d; min-width: 0; }
input, textarea, select { width: 100%; min-width: 0; border: 1px solid #dbe3dd; border-radius: 5px; background: white; color: var(--ink); padding: 10px 12px; font-size: 14px; outline: none; }
input, select { min-height: 42px; }
input:focus, textarea:focus, select:focus { border-color: #59a77f; box-shadow: 0 0 0 3px #177a5610; }
input::placeholder, textarea::placeholder { color: #a2aba5; font-weight: 400; }
textarea { resize: vertical; line-height: 1.75; }
select { padding-right: 30px; }
input[type="radio"], input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--green); box-shadow: none; flex: 0 0 auto; }
.input-with-action { display: flex; align-items: center; border: 1px solid #dbe3dd; border-radius: 5px; background: white; padding-right: 5px; overflow: hidden; }
.input-with-action:focus-within { border-color: #59a77f; box-shadow: 0 0 0 3px #177a5610; }
.input-with-action input { border: 0; box-shadow: none; flex: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stack-form { display: flex; flex-direction: column; gap: 20px; }
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.field-heading label { display: block; }
.field-note { color: var(--muted); font-size: 12px; margin: -12px 0 0; }
.access-notice { color: #51655a; font-size: 13px; line-height: 1.8; padding: 14px 16px; background: var(--green-light); border: 1px solid #dcebe1; border-radius: 5px; margin-bottom: 22px; }
.stack-form .access-notice { margin-bottom: 0; }
.access-key-value { font-family: Consolas, ui-monospace, monospace; font-size: 15px; }
.form-error { padding: 10px 12px; color: #aa3f3f; background: #fdf1f1; border-left: 3px solid #d96868; font-size: 13px; overflow-wrap: anywhere; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.confirm-text { color: #5b6860; line-height: 1.9; }
.segmented-control { display: inline-flex; gap: 3px; background: #f0f3f1; border: 1px solid #e6ebe7; padding: 3px; border-radius: 5px; align-self: flex-start; max-width: 100%; }
.segmented-control label { display: inline-flex; position: relative; font-weight: 500; cursor: pointer; }
.segmented-control label input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-control label span, .segmented-control > button { border-radius: 3px; padding: 7px 16px; color: #7b8780; font-size: 13px; border: 0; background: none; white-space: nowrap; }
.segmented-control label input:checked + span, .segmented-control > button.active { background: white; color: var(--green); box-shadow: 0 1px 3px #22392a12; }
.segmented-control label input:focus-visible + span { outline: 2px solid #8acbb0; outline-offset: 1px; }
.number-with-unit { display: flex; align-items: center; position: relative; }
.number-with-unit input { padding-right: 60px; }
.number-with-unit > span { position: absolute; right: 30px; color: var(--muted); font-size: 12px; pointer-events: none; }

.brand { display: flex; align-items: center; gap: 12px; color: #f4faf6; font-size: 25px; font-weight: 650; line-height: 1.25; }
.brand-mark { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: #248563; color: white; border-radius: 7px; flex: 0 0 auto; }
.brand-mark svg { width: 23px; height: 23px; }
.brand-subtitle { display: block; font-size: 8px; line-height: 1.8; font-weight: 500; margin-top: 3px; color: #9bafa2; letter-spacing: 0; }
.brand-dark { color: var(--ink); }
.brand-dark .brand-subtitle { color: #7d8a81; }
.brand.compact { font-size: 22px; }
.brand.compact .brand-mark { width: 34px; height: 34px; border-radius: 5px; }
.brand.compact .brand-mark svg { width: 21px; height: 21px; }
.eyebrow { color: var(--muted); font-size: 12px; font-weight: 500; display: block; margin-bottom: 9px; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 40px 24px; background: white; }
.auth-shell { width: 100%; max-width: 380px; }
.auth-shell .brand { margin-bottom: 58px; }
.auth-heading { margin-bottom: 28px; }
.auth-heading h1 { font-size: 30px; }
.auth-form { display: flex; flex-direction: column; gap: 24px; }
.auth-form .button { min-height: 44px; }
.auth-footer { text-align: center; margin-top: 56px; font-size: 11px; color: #a0aaa3; }
.setup-page { background: white; }
.setup-shell { width: 100%; max-width: 590px; margin: 0 auto; padding: 44px 28px; }
.setup-heading { margin: 36px 0 28px; }
.setup-form { display: flex; flex-direction: column; gap: 26px; }
.form-section { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-direction: column; gap: 18px; }
.form-section h2 { display: flex; align-items: center; gap: 9px; font-size: 15px; margin-bottom: 2px; }
.form-section h2 svg { color: var(--green); }
.setup-success { padding: 38px 0; text-align: center; }
.setup-success h2 { margin: 18px 0 8px; }
.setup-success p { color: var(--muted); margin-bottom: 24px; }
.success-symbol { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--green-light); color: var(--green); }
.success-symbol svg { width: 25px; height: 25px; }
.boot-state { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.boot-state .empty-state { width: 100%; }
.loading-section { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 340px; color: var(--muted); }
.noscript { position: fixed; top: 24px; left: 24px; right: 24px; padding: 16px; background: white; color: var(--red); border: 1px solid var(--line); z-index: 100; }

.admin-layout { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 240px; padding: 32px 20px 18px; background: #1d2922; z-index: 30; display: flex; flex-direction: column; }
.sidebar .brand { margin: 0 12px 46px; }
.sidebar-label { margin: 0 14px 15px; font-size: 10px; color: #718a78; }
.main-nav { display: flex; flex-direction: column; gap: 7px; }
.main-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 45px; font-size: 13px; color: #a2b6a9; border-radius: 5px; position: relative; }
.main-nav a > svg { width: 19px; height: 19px; }
.main-nav a:hover { background: #263b2e; color: #edf6ef; }
.main-nav a.active { background: #304839; color: #eaf7ee; }
.main-nav a.active::before { content: ""; position: absolute; width: 3px; height: 18px; background: #73bf91; left: 0; border-radius: 2px; }
.nav-count { margin-left: auto; color: #92ad9b; font-size: 11px; background: #ffffff0b; padding: 1px 6px; border-radius: 3px; font-variant-numeric: tabular-nums; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid #ffffff0f; padding: 20px 8px 0; }
.workspace-owner { display: flex; align-items: center; gap: 11px; color: #e2ece5; font-size: 12px; }
.workspace-owner small { display: block; color: #809b88; font-size: 10px; margin-top: 2px; }
.operator-identity { min-width: 0; }
#operator-name { display: block; max-width: 134px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#operator-role { line-height: 1.5; }
.avatar { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #dfece3; color: #43835b; font-size: 12px; font-weight: 600; flex: 0 0 auto; }
.sidebar .avatar { background: #324638; color: #a2c5ad; }
.avatar.small { width: 30px; height: 30px; }
.connection-dot { width: 6px; height: 6px; background: #6cab82; border-radius: 50%; margin-left: auto; }
.sidebar-bottom-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 17px; }
.sidebar-bottom-actions > button:first-child { display: flex; align-items: center; gap: 8px; color: #809b88; background: none; border: 0; font-size: 11px; padding: 0; }
.sidebar-bottom-actions .icon-button { color: #829e8b; }
.sidebar-bottom-actions button:hover { color: #d9eddf; background: transparent; }
.admin-main { margin-left: 240px; min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: flex; justify-content: space-between; align-items: center; height: 70px; padding: 0 36px; background: white; border-bottom: 1px solid var(--line); gap: 16px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; font-size: 12px; color: #8b978f; min-width: 0; }
.topbar-left > svg { width: 12px; height: 12px; color: #bdc6c0; }
#breadcrumb { color: #4a5d50; white-space: nowrap; }
.topbar-right { gap: 18px; }
.topbar-right > .icon-button { border-right: 1px solid var(--line); border-radius: 0; width: 47px; padding-right: 13px; }
.mobile-menu { display: none; }
.workspace { width: 100%; max-width: 1580px; padding: 32px 36px 24px; flex: 1; }
.workspace-footer { display: flex; justify-content: space-between; padding: 22px 36px; font-size: 10px; color: #9ca89f; gap: 20px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading > div:first-child { min-width: 0; }
.page-heading p { font-size: 12px; color: #839188; margin-top: 5px; white-space: pre-line; overflow-wrap: anywhere; }
.heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding-top: 5px; flex: 0 0 auto; }
.stats-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.stat { min-width: 0; padding: 0 24px; border-right: 1px solid var(--line); }
.stat:last-child { border: 0; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #67796c; font-size: 12px; }
.stat-icon { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; }
.stat-icon.green { background: #edf7f0; color: #478860; }
.stat-icon.blue { background: #edf5fb; color: #4d87af; }
.stat-icon.amber { background: #fbf5e8; color: #b48b43; }
.stat-icon.rose { background: #faeef0; color: #b66d7d; }
.stat > strong { display: block; font-size: 33px; font-weight: 600; line-height: 1.4; margin: 10px 0 8px; font-variant-numeric: tabular-nums; }
.stat-detail { font-size: 11px; color: #8f9b92; }
.overview-band { display: grid; grid-template-columns: minmax(0, 1fr) 220px; background: white; margin-top: 20px; padding: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); gap: 32px; }
.completion-overview { min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { font-size: 15px; }
.section-heading > .muted { font-size: 11px; }
.completion-bar { height: 10px; display: flex; background: #e8ede9; overflow: hidden; border-radius: 3px; margin-top: 28px; }
.completion-bar .completed { background: #69ad84; }
.completion-bar .progress { background: #dbb86c; }
.completion-legend { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 18px; font-size: 11px; color: #7d8b80; }
.completion-legend > span { display: flex; gap: 7px; align-items: center; }
.completion-legend strong { color: #394d3f; font-size: 12px; margin-left: 5px; }
.legend-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; }
.legend-dot.green { background: #6aae84; }
.legend-dot.amber { background: #d7b367; }
.legend-dot.neutral { background: #cbd5cd; }
.average-overview { border-left: 1px solid var(--line); padding-left: 32px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.average-overview > span { font-size: 11px; }
.average-overview > strong { font-size: 29px; font-weight: 600; font-variant-numeric: tabular-nums; }
.average-overview small { font-size: 12px; font-weight: 400; color: #94a098; }
.workspace-section { margin-top: 32px; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.table-toolbar > .muted { font-size: 12px; }
.search-field { position: relative; display: flex; flex-direction: row; align-items: center; width: 260px; max-width: 100%; }
.search-field > svg { position: absolute; left: 12px; color: #96a399; width: 16px; height: 16px; }
.search-field input { padding-left: 36px; min-height: 38px; font-size: 12px; background: #fff; }
.table-scroll { overflow-x: auto; width: 100%; background: white; }
.data-table { width: 100%; border-collapse: collapse; min-width: 820px; table-layout: auto; font-size: 12px; }
.data-table thead { background: #edf1ee; }
.data-table th { font-weight: 500; color: #8a978e; font-size: 11px; text-align: left; padding: 12px 16px; white-space: nowrap; }
.data-table th.align-right { text-align: right; }
.data-table td { padding: 17px 16px; border-bottom: 1px solid #edf0ee; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.data-table tbody tr:hover { background: #fafcfb; }
.data-table th:first-child, .data-table td:first-child { padding-left: 20px; }
.data-table td:first-child { width: 34%; max-width: 380px; }
.link-table td:first-child { width: 32%; }
.data-table .row-actions { min-width: 148px; }
.item-title { display: block; color: #344e3e; font-weight: 600; font-size: 12px; line-height: 1.6; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-title:hover { color: var(--green); }
.cell-subtitle { display: block; font-size: 10px; font-weight: 400; color: #929d96; line-height: 1.7; margin-top: 4px; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paper-name { display: flex; align-items: center; gap: 13px; }
.paper-name > div { min-width: 0; }
.paper-symbol { width: 32px; height: 38px; display: inline-flex; align-items: center; justify-content: center; color: #6c9179; background: #eff5f0; border-radius: 4px; flex: 0 0 auto; }
.paper-symbol svg { width: 18px; height: 18px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 500; padding: 3px 8px; border-radius: 3px; white-space: nowrap; }
.badge > span { width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.badge.green { color: #529067; background: #eef7ef; }
.badge.amber { color: #b08737; background: #fcf6e8; }
.badge.neutral { color: #8b9790; background: #f0f3f1; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.row-actions .icon-button { width: 29px; height: 29px; color: #84988a; }
.row-actions .icon-button svg { width: 15px; height: 15px; }
.row-actions [data-action^="delete-"]:hover { background: #fcf0f0; color: var(--red); }
.table-score { font-size: 14px; font-weight: 600; }
.paper-strip { display: grid; grid-template-columns: 1fr 1fr; background: white; }
.paper-strip-item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.paper-strip-item:nth-child(odd) { border-right: 1px solid var(--line); }
.paper-strip-item > div { min-width: 0; flex: 1; }
.paper-strip-item p { color: var(--muted); font-size: 10px; margin-top: 4px; }
.link-filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.link-filter-bar .search-field { width: 220px; margin-bottom: 12px; }
.filter-tabs { display: flex; align-items: center; gap: 22px; min-width: 0; overflow-x: auto; }
.filter-tab { display: flex; align-items: center; gap: 6px; color: #909c94; padding: 0 0 17px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 12px; white-space: nowrap; }
.filter-tab.active { border-bottom-color: var(--green); color: var(--green); }
.filter-tab > span { background: #e9eeea; border-radius: 3px; padding: 1px 5px; font-size: 10px; }
.filter-tab.active > span { background: #dfeee3; color: #50815c; }
.pagination { display: flex; align-items: center; justify-content: space-between; color: #8b998e; font-size: 11px; padding-top: 18px; gap: 14px; }
.pagination > div { display: flex; align-items: center; gap: 10px; }
.pagination .icon-button { background: white; border: 1px solid var(--line); width: 30px; height: 30px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: #7f9384; font-size: 12px; margin-bottom: 20px; }
.back-link svg { width: 15px; height: 15px; }
.paper-meta-band { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.paper-meta-band .button { margin-left: auto; }
.empty-state { padding: 52px 20px; text-align: center; }
.empty-icon { display: inline-flex; width: 44px; height: 44px; justify-content: center; align-items: center; background: #ebf0ed; color: #a0b3a5; border-radius: 8px; }
.empty-icon svg { width: 22px; height: 22px; }
.empty-state h3 { font-size: 13px; font-weight: 500; color: #8a9b90; margin: 16px 0 20px; }

.question-list { background: white; }
.question-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 64px; gap: 16px; padding: 26px 22px; border-bottom: 1px solid var(--line); }
.question-order { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: #85968b; background: #f0f4f1; border-radius: 4px; font-size: 12px; font-variant-numeric: tabular-nums; }
.question-row-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.type-label { display: inline-block; background: #eef3f7; color: #6689a4; border-radius: 3px; padding: 2px 7px; font-size: 10px; font-weight: 500; white-space: nowrap; }
.correct-label { color: var(--green); font-size: 11px; white-space: nowrap; }
.question-row h3 { font-size: 14px; line-height: 1.9; font-weight: 500; white-space: pre-line; }
.question-options-compact { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 20px; margin-top: 16px; font-size: 12px; color: #839188; }
.question-options-compact > span { white-space: pre-line; overflow-wrap: anywhere; }
.question-options-compact b { font-weight: 500; }
.question-options-compact .correct-option { color: #4e8c63; }
.question-explanation { color: #95a096; font-size: 11px; margin-top: 16px; line-height: 1.9; white-space: pre-line; overflow-wrap: anywhere; }
.question-explanation b { color: #6b8572; font-weight: 500; }
.question-row-tools { display: flex; align-items: flex-start; gap: 2px; }
.question-row-tools .icon-button { width: 30px; height: 30px; }
.editor-option { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.editor-answer { display: flex; flex-direction: row; align-items: center; gap: 9px; flex: 0 0 43px; cursor: pointer; }
.editor-answer span { font-size: 13px; color: #74877b; }
.editor-option textarea { flex: 1; min-height: 55px; }
.editor-option > .icon-button { width: 28px; height: 28px; }

.modal { border: 0; border-radius: 8px; padding: 0; width: min(580px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 40px); overflow-y: auto; color: var(--ink); box-shadow: 0 20px 100px #112b2859; }
.modal.wide { width: min(1040px, calc(100% - 40px)); }
.modal::backdrop { background: #17292175; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 23px 26px; border-bottom: 1px solid var(--line); background: white; }
.modal-header h2 { font-size: 18px; }
.modal-header p { margin-top: 5px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.modal-body { padding: 24px 26px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); padding: 16px 26px; }
.import-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.import-source { min-width: 0; }
.import-format-hint { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 10px 0 14px; }
.import-text { height: 370px; min-height: 200px; padding: 14px; font-size: 12px; font-family: "Cascadia Code", Consolas, "Microsoft YaHei", monospace; resize: vertical; }
.import-source-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.compact-segment label span { padding: 6px 10px; font-size: 11px; }
.import-source-bottom .button { font-size: 11px; min-height: 36px; padding: 6px 10px; }
.import-preview { min-width: 0; border-left: 1px solid var(--line); padding-left: 24px; }
.import-preview .field-heading .muted { font-size: 10px; }
.preview-content { height: 428px; overflow-y: auto; padding-right: 4px; }
.preview-content .empty-state { padding-top: 114px; }
.preview-question { border-bottom: 1px solid var(--line); }
.preview-question summary { display: flex; align-items: flex-start; gap: 8px; padding: 15px 0; cursor: pointer; list-style: none; }
.preview-question summary::-webkit-details-marker { display: none; }
.preview-question summary > strong { font-size: 12px; font-weight: 500; line-height: 1.8; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.preview-question summary > .type-label { margin-top: 1px; }
.preview-question summary > .correct-label { padding-top: 2px; }
.preview-question > div { padding: 0 0 15px; font-size: 11px; color: #718579; }
.preview-question > div p { margin: 7px 0; white-space: pre-line; overflow-wrap: anywhere; }
.import-issue { padding: 10px 12px; border-left: 3px solid #d77878; background: #fdf3f3; font-size: 11px; color: #ad5b5b; margin-bottom: 10px; }
.import-issue p { margin-top: 4px; overflow-wrap: anywhere; }
.preview-limit { padding: 16px 0; font-size: 11px; }
.share-summary { text-align: center; padding: 10px 0 26px; }
.share-summary h3 { margin-top: 16px; overflow-wrap: anywhere; }
.share-summary p { color: var(--muted); font-size: 12px; margin-top: 6px; }
.share-field input { font-size: 12px; }
.detail-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.detail-top h3 { font-size: 17px; }
.detail-top p { color: var(--muted); font-size: 12px; margin-top: 5px; overflow-wrap: anywhere; }
.detail-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 24px 0; margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-metrics > div { border-right: 1px solid var(--line); padding: 0 26px; }
.detail-metrics > div:first-child { padding-left: 0; }
.detail-metrics > div:last-child { border-right: 0; }
.detail-metrics span { display: block; font-size: 11px; color: var(--muted); }
.detail-metrics strong { font-size: 29px; font-weight: 600; font-variant-numeric: tabular-nums; }
.detail-metrics small { font-size: 12px; color: #92a097; font-weight: 400; }
.detail-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 26px; margin: 24px 0; font-size: 12px; }
.detail-dates > div { display: flex; gap: 20px; min-width: 0; flex-wrap: wrap; }
.detail-dates dt { color: var(--muted); }
.detail-dates dd { margin: 0; color: #465e4e; }
.detail-link { display: flex; align-items: center; gap: 8px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.detail-link input { font-size: 12px; }
.detail-results-heading { margin-top: 26px; }
.toast-region { position: fixed; z-index: 100; bottom: 26px; right: 28px; max-width: min(420px, calc(100vw - 40px)); display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border: 1px solid #d8e5dc; border-radius: 6px; background: white; color: #497455; box-shadow: 0 5px 25px #14372016; font-size: 12px; overflow-wrap: anywhere; }
.toast.error { color: var(--red); border-color: #efd4d4; }
.clipboard-fallback { position: fixed; width: 1px; height: 1px; opacity: 0; padding: 0; border: 0; bottom: 0; left: 0; }

.exam-page { background: #f7f9f8; }
.exam-topbar { height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; background: white; border-bottom: 1px solid var(--line); }
.exam-topbar-label { display: flex; align-items: center; gap: 7px; color: #91a296; font-size: 11px; }
.exam-topbar-label svg { width: 15px; height: 15px; }
#exam-root > .boot-state { min-height: calc(100vh - 70px); }
.exam-introduction { max-width: 820px; margin: 0 auto; padding: 68px 36px; }
.intro-heading .eyebrow { margin-top: 28px; }
.intro-paper-icon { display: inline-flex; justify-content: center; align-items: center; width: 52px; height: 60px; background: #eaf3ed; color: #70a07d; border-radius: 5px; }
.intro-paper-icon svg { width: 27px; height: 27px; }
.intro-heading h1 { font-size: 28px; }
.intro-description { margin-top: 16px; font-size: 13px; color: #7f8d83; white-space: pre-line; overflow-wrap: anywhere; }
.intro-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 30px 0; margin: 36px 0 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro-metrics > div { display: grid; grid-template-columns: 22px 1fr; column-gap: 7px; align-items: center; padding: 0 22px; border-right: 1px solid var(--line); }
.intro-metrics > div:first-child { padding-left: 0; }
.intro-metrics > div:last-child { border-right: 0; }
.intro-metrics svg { color: #82988a; width: 16px; height: 16px; }
.intro-metrics span { color: #829087; font-size: 11px; }
.intro-metrics strong { grid-column: 1 / -1; font-size: 25px; font-weight: 600; margin-top: 10px; font-variant-numeric: tabular-nums; }
.intro-metrics small { font-size: 12px; font-weight: 400; color: #9aa49d; }
.intro-footer { display: flex; justify-content: space-between; align-items: center; }
.start-exam { min-width: 155px; min-height: 44px; }
#start-error { margin-top: 20px; }
.exam-message { max-width: 640px; margin: 0 auto; padding: 110px 28px; text-align: center; }
.exam-message h1 { font-size: 20px; margin: 24px 0; }
.exam-workspace { max-width: 1260px; margin: 0 auto; padding: 30px 30px 60px; }
.exam-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 26px; }
.exam-title-block { min-width: 0; }
.exam-title-block .eyebrow { margin-bottom: 4px; }
.exam-title-block h1 { font-size: 22px; line-height: 1.6; }
.exam-heading-tools { display: flex; align-items: center; gap: 24px; flex: 0 0 auto; }
.save-state { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: #72927b; min-width: 90px; white-space: nowrap; }
.save-state.error { color: var(--red); }
.save-state svg { width: 16px; height: 16px; }
.exam-timer { display: flex; align-items: center; gap: 12px; border-left: 1px solid var(--line); padding-left: 24px; min-width: 136px; color: #4e7358; }
.exam-timer > svg { width: 22px; height: 22px; }
.exam-timer span { display: block; font-size: 10px; color: #8ca191; }
.exam-timer strong { display: block; font-size: 23px; line-height: 1.3; font-weight: 600; }
.exam-timer.urgent { color: var(--red); }
.exam-timer.urgent span { color: #c48585; }
.save-error { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-left: 3px solid #d6a855; background: #fcf8eb; color: #af8737; padding: 12px 15px; margin-bottom: 18px; font-size: 12px; }
.save-error span { overflow-wrap: anywhere; }
.save-error button { white-space: nowrap; flex: 0 0 auto; }
.exam-content { display: grid; grid-template-columns: 252px minmax(0, 1fr); background: white; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.question-nav { padding: 26px 22px; border-right: 1px solid var(--line); align-self: start; min-width: 0; position: sticky; top: 20px; }
.question-nav .section-heading { margin-bottom: 14px; }
.question-nav h2 { font-size: 14px; }
#answered-counter { color: #8aa191; font-size: 11px; font-variant-numeric: tabular-nums; }
.answer-progress { height: 4px; background: #edf2ee; border-radius: 2px; overflow: hidden; margin-bottom: 24px; }
.answer-progress > span { display: block; height: 100%; background: #7eb38b; transition: width .2s; }
.question-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 36px; gap: 7px; max-height: calc(100dvh - 330px); min-height: 36px; overflow-y: auto; scrollbar-width: thin; }
.question-tile { background: #fff; border: 1px solid #e0e7e2; border-radius: 4px; color: #8b9d91; padding: 0; font-size: 11px; font-variant-numeric: tabular-nums; height: 36px; min-width: 0; }
.question-tile:hover { border-color: #89b89a; }
.question-tile.answered { background: #e9f4ed; border-color: #d3e6d8; color: #5a9068; }
.question-tile.current { border-color: var(--green); background: var(--green); color: white; }
.question-legend { display: flex; justify-content: space-between; gap: 8px; padding: 22px 0 24px; font-size: 10px; color: #90a096; }
.question-legend > span { display: flex; align-items: center; gap: 5px; }
.nav-legend { width: 8px; height: 8px; background: white; border: 1px solid #dee6e0; border-radius: 2px; }
.nav-legend.answered { background: #e9f4ed; border-color: #d3e6d8; }
.nav-legend.current { background: var(--green); border-color: var(--green); }
.nav-submit { margin-top: 0; }
.question-surface { padding: 30px 36px; min-width: 0; min-height: 610px; display: flex; flex-direction: column; }
.question-surface-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 25px; }
.question-position { color: #95a39a; font-size: 12px; }
.question-position strong { font-size: 18px; font-weight: 600; color: var(--green); margin-left: 3px; }
.exam-question-stem { font-size: 22px; font-weight: 500; line-height: 1.8; margin: 16px 0 28px; white-space: pre-line; overflow-wrap: anywhere; }
.exam-options { display: flex; flex-direction: column; gap: 14px; }
.exam-option { display: flex; align-items: center; gap: 16px; width: 100%; padding: 17px 20px; min-height: 69px; border: 1px solid #dfe7e1; border-radius: 5px; background: white; color: #5b7063; text-align: left; }
.exam-option:hover:not(:disabled) { background: #f8fbf9; border-color: #a6cbb1; }
.exam-option.selected { background: #f0f8f2; border-color: #78b48b; color: #3b7450; }
.exam-option.selected:hover:not(:disabled) { background: #eaf6ed; }
.exam-option:disabled { opacity: .7; }
.option-letter { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e0e8e2; border-radius: 4px; color: #889c8d; font-size: 12px; font-weight: 600; flex: 0 0 auto; background: #fafcfb; }
.exam-option.selected .option-letter { background: #d9eddf; border-color: #c8e2d0; color: #569669; }
.option-text { flex: 1; min-width: 0; font-size: 14px; line-height: 1.85; white-space: pre-line; overflow-wrap: anywhere; }
.option-selection { flex: 0 0 18px; color: #b8c8bc; }
.exam-option.selected .option-selection { color: var(--green); }
.question-navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 40px; }
.question-navigation > span { font-size: 11px; color: #a0ada3; font-variant-numeric: tabular-nums; }
.question-navigation .button { min-width: 112px; }
.mobile-answer-card { display: none; }
.question-nav-backdrop { position: fixed; inset: 70px 0 0; background: #17292155; border: 0; z-index: 29; }
.exam-results { max-width: 1080px; margin: 0 auto; padding: 42px 36px 80px; }
.result-heading { display: flex; justify-content: space-between; align-items: center; gap: 26px; }
.result-heading p { font-size: 13px; margin-top: 8px; color: var(--muted); overflow-wrap: anywhere; }
.result-check { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: #e8f3eb; color: #6da37b; border-radius: 50%; flex: 0 0 auto; }
.result-check svg { width: 28px; height: 28px; }
.result-score-band { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; background: white; margin-top: 28px; padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-main-score, .result-stat { padding: 0 26px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.result-stat:last-child { border: 0; }
.result-main-score > span, .result-stat > span { font-size: 11px; color: #93a196; }
.result-main-score > strong { font-size: 46px; line-height: 1.25; font-weight: 600; color: #39704b; font-variant-numeric: tabular-nums; }
.result-main-score small { font-size: 13px; font-weight: 400; }
.result-stat strong { font-size: 27px; font-weight: 600; font-variant-numeric: tabular-nums; }
.result-stat small { font-size: 12px; font-weight: 400; color: #8d9d91; }
.result-submitted { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #91a195; margin-top: 16px; }
.result-submitted svg { width: 14px; height: 14px; }
.result-review-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 40px 0 20px; }
.result-review-heading h2 { font-size: 17px; }
.result-review-controls { display: flex; align-items: center; gap: 12px; }
.result-filters > button { font-size: 11px; padding: 6px 12px; }
.review-list { background: white; }
.review-question { border-bottom: 1px solid var(--line); }
.review-question summary { display: flex; align-items: flex-start; gap: 16px; padding: 21px 22px; cursor: pointer; list-style: none; }
.review-question summary::-webkit-details-marker { display: none; }
.review-order { color: #91a097; font-size: 11px; padding-top: 2px; min-width: 20px; font-variant-numeric: tabular-nums; }
.review-stem { flex: 1; min-width: 0; font-size: 13px; color: #465c4c; line-height: 1.9; white-space: pre-line; overflow-wrap: anywhere; }
.review-state { font-size: 11px; white-space: nowrap; padding-top: 3px; }
.review-question summary > svg { width: 14px; height: 14px; margin-top: 5px; color: #9bae9f; transition: transform .15s; }
.review-question[open] summary > svg { transform: rotate(180deg); }
.review-body { padding: 0 52px 26px; }
.review-options { display: flex; flex-direction: column; gap: 10px; }
.review-options p { display: flex; align-items: flex-start; gap: 12px; font-size: 12px; color: #91a095; }
.review-options p > b { font-size: 12px; font-weight: 500; }
.review-options p > span { flex: 1; min-width: 0; white-space: pre-line; overflow-wrap: anywhere; }
.review-options p > svg { width: 14px; height: 14px; margin-top: 2px; }
.review-options p.correct { color: #5a956a; }
.review-options p.incorrect { color: #c07b7b; }
.answer-comparison { display: flex; flex-wrap: wrap; gap: 22px; font-size: 11px; color: #97a39a; margin-top: 18px; }
.answer-comparison b { font-weight: 500; margin-left: 6px; }
.review-explanation { border-top: 1px solid #edf1ee; padding-top: 14px; margin-top: 18px; font-size: 11px; line-height: 1.9; }
.review-explanation strong { font-weight: 500; color: #6e8e77; }
.review-explanation p { color: #8da093; margin-top: 5px; white-space: pre-line; overflow-wrap: anywhere; }
.sidebar-backdrop { position: fixed; inset: 0; background: #17292166; border: 0; z-index: 29; }

@media (max-width: 1180px) {
  .sidebar { width: 215px; padding-left: 15px; padding-right: 15px; }
  .admin-main { margin-left: 215px; }
  .workspace { padding-left: 26px; padding-right: 26px; }
  .topbar { padding-left: 26px; padding-right: 26px; }
  .stat { padding-left: 18px; padding-right: 18px; }
  .link-filter-bar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .link-filter-bar .search-field { width: 260px; }
  .filter-tabs { width: 100%; }
  .filter-tab { padding-bottom: 12px; }
  .exam-heading-tools { gap: 16px; }
  .question-surface { padding: 28px; }
}

@media (max-width: 900px) {
  .sidebar { width: 240px; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .mobile-menu { display: inline-flex; }
  .topbar { padding: 0 24px; }
  .topbar-left { gap: 10px; }
  .topbar-left > span:first-of-type { display: none; }
  .topbar-left > svg { display: none; }
  .workspace { padding: 28px 24px; }
  .workspace-footer { padding: 20px 24px; }
  .exam-content { grid-template-columns: minmax(0, 1fr); }
  .question-nav { position: fixed; inset: 70px auto 0 0; width: 290px; max-width: calc(100vw - 20px); background: white; z-index: 30; transform: translateX(-100%); transition: transform .2s; overflow-y: auto; padding: 28px 24px; box-shadow: 10px 0 25px #16332110; }
  .question-nav.open { transform: translateX(0); }
  .question-grid { grid-auto-rows: 40px; max-height: calc(100dvh - 310px); }
  .question-tile { height: 40px; }
  .mobile-answer-card { display: inline-flex; min-height: 34px; padding: 6px 10px; font-size: 11px; }
  .question-surface { min-height: 580px; }
  .exam-workspace { padding: 28px 24px 48px; }
  .intro-metrics > div { padding-right: 16px; padding-left: 16px; }
  .result-main-score, .result-stat { padding: 0 20px; }
}

@media (max-width: 640px) {
  .topbar { height: 62px; padding: 0 16px; }
  .topbar-right { gap: 10px; }
  #today-label { display: none; }
  .topbar-right > .icon-button { padding: 0; border: 0; width: 34px; }
  .workspace { padding: 24px 16px; }
  .workspace-footer { padding: 18px 16px; }
  .page-heading { flex-direction: column; gap: 18px; margin-bottom: 24px; }
  .heading-actions { padding: 0; justify-content: flex-start; width: 100%; }
  .heading-actions .button { flex: 1; padding: 9px 12px; }
  .stats-band { grid-template-columns: 1fr 1fr; padding: 0; }
  .stat { padding: 20px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stat > strong { font-size: 31px; }
  .overview-band { grid-template-columns: 1fr; padding: 22px 20px; gap: 20px; }
  .average-overview { border-left: 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0; }
  .average-overview > strong { grid-column: 2; grid-row: 1 / 3; }
  .completion-legend { gap: 18px; }
  .completion-bar { margin-top: 20px; }
  .paper-strip { grid-template-columns: 1fr; }
  .paper-strip-item:nth-child(odd) { border-right: 0; }
  .table-toolbar { align-items: center; }
  .table-toolbar .search-field { flex: 1; }
  .table-toolbar .button { font-size: 11px; padding: 8px 10px; }
  .table-toolbar > .muted { white-space: nowrap; }
  .filter-tabs { gap: 18px; }
  .filter-tab { font-size: 11px; }
  .link-filter-bar .search-field { width: 100%; }
  .question-row { grid-template-columns: 26px minmax(0, 1fr); padding: 22px 16px; gap: 12px; }
  .question-order { width: 26px; height: 28px; font-size: 10px; }
  .question-row-content { grid-column: 2; }
  .question-row-tools { grid-column: 2; justify-content: flex-end; margin-top: -6px; }
  .question-options-compact { grid-template-columns: 1fr; gap: 8px; }
  .paper-meta-band { gap: 14px; }
  .paper-meta-band .button { font-size: 11px; padding: 7px 10px; }
  .modal, .modal.wide { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .modal-header { padding: 19px 20px; }
  .modal-body { padding: 22px 20px; }
  .import-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .import-preview { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .import-text { height: 300px; }
  .preview-content { height: 320px; }
  .preview-content .empty-state { padding-top: 70px; }
  .detail-metrics > div { padding: 0 14px; }
  .detail-metrics strong { font-size: 25px; }
  .detail-metrics small { font-size: 10px; }
  .detail-dates { grid-template-columns: 1fr; gap: 12px; }
  .detail-dates > div { gap: 16px; }
  .detail-link { gap: 5px; }
  .toast-region { bottom: 18px; right: 16px; max-width: calc(100vw - 32px); }
  .exam-topbar { height: 64px; padding: 0 20px; }
  #exam-root > .boot-state { min-height: calc(100vh - 64px); }
  .exam-introduction { padding: 40px 24px; }
  .intro-metrics { grid-template-columns: 1fr 1fr; padding: 0; margin-top: 28px; }
  .intro-metrics > div { padding: 22px; }
  .intro-metrics > div:first-child { padding-left: 22px; }
  .intro-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .intro-metrics > div:nth-child(2) { border-right: 0; }
  .exam-workspace { padding: 22px 16px 36px; }
  .exam-heading { flex-direction: column; align-items: stretch; gap: 18px; margin-bottom: 20px; }
  .exam-title-block h1 { font-size: 22px; }
  .exam-heading-tools { flex-direction: row-reverse; justify-content: space-between; gap: 18px; }
  .exam-timer { border-left: 0; padding-left: 0; }
  .save-state { justify-content: flex-end; }
  .question-surface { padding: 22px 18px; min-height: 580px; }
  .question-surface-top { margin-bottom: 18px; }
  .exam-question-stem { font-size: 20px; line-height: 1.85; margin-bottom: 24px; }
  .exam-option { padding: 14px 12px; gap: 11px; min-height: 66px; }
  .option-letter { width: 26px; height: 28px; }
  .option-text { font-size: 13px; }
  .option-selection svg { width: 16px; height: 16px; }
  .question-navigation .button { min-width: 95px; padding-left: 12px; padding-right: 12px; font-size: 12px; }
  .question-nav, .question-nav-backdrop { top: 64px; }
  .save-error { font-size: 11px; padding: 10px 12px; }
  .exam-results { padding: 32px 20px 54px; }
  .result-score-band { grid-template-columns: 1fr 1fr; padding: 0; }
  .result-main-score, .result-stat { padding: 22px; }
  .result-score-band > div:nth-child(2) { border-right: 0; }
  .result-score-band > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .result-main-score > strong { font-size: 40px; }
  .result-stat strong { font-size: 25px; }
  .result-review-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-top: 32px; }
  .result-review-controls { width: 100%; justify-content: space-between; }
  .result-filters > button { padding: 6px 10px; }
  .review-question summary { padding: 18px 15px; gap: 10px; }
  .review-stem { font-size: 12px; }
  .review-body { padding: 0 18px 22px 43px; }
  .review-state { font-size: 10px; }
  .answer-comparison { gap: 12px; }
}

@media (max-width: 400px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .detail-metrics > div { padding-right: 10px; padding-left: 10px; }
  .detail-metrics strong { font-size: 22px; }
  .editor-option { gap: 7px; }
  .editor-answer { flex-basis: 35px; gap: 6px; }
  .dialog-actions .button { flex: 1; }
  .completion-legend { gap: 12px; }
  .result-main-score, .result-stat { padding-left: 18px; padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  body { background: white; }
  .exam-topbar, .result-review-controls, .toast-region, .modal, .review-question summary > svg { display: none !important; }
  .exam-results { max-width: none; padding: 0; }
  .result-score-band { grid-template-columns: repeat(4, 1fr); background: none; }
  .result-score-band > div { border-bottom: 0 !important; }
  .review-question { break-inside: avoid; }
  .review-question summary { padding-left: 0; padding-right: 0; }
  .review-body { padding-left: 30px; }
}
