:root {
  color-scheme: light;
  --bg: #f5f7f4;
  --paper: #fff;
  --text: #172820;
  --muted: #56655e;
  --line: #e1e7e1;
  --primary: #176a49;
  --primary-dark: #0d4e37;
  --mint: #e8f5ed;
  --gold: #9b591f;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
h1, h2, h3, p { margin: 0; }
a { color: var(--primary-dark); text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #54a98b; outline-offset: 3px; }
svg { flex: 0 0 auto; }
[hidden] { display: none !important; }
.skip { position: absolute; z-index: 5; top: -100px; left: 12px; background: white; padding: 8px 12px; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); }
.loading { padding: 56px; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-panel { width: min(100%, 390px); padding: 28px; }
.login-panel h1 { font-size: 24px; }
.login-panel .settings-form { margin-top: 20px; gap: 16px; }
.login-error { color: #a32d2d; }
.workspace { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { background: #fcfdfb; border-right: 1px solid var(--line); align-self: start; height: 100vh; position: sticky; top: 0; display: flex; flex-direction: column; padding: 29px 17px 18px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px; color: var(--text); margin-bottom: 43px; }
.brand-icon { background: var(--primary-dark); color: #f2f8f1; width: 37px; height: 37px; border-radius: 10px; display: grid; place-items: center; }
.brand b { font-size: 17px; line-height: 1.5; display: block; letter-spacing: .03em; }
.brand small { font-size: 11px; color: var(--muted); white-space: nowrap; display: block; }
.sidebar nav, .side-bottom { display: grid; gap: 5px; }
.side-bottom { margin-top: auto; }
.sidebar nav a, .sidebar nav button, .side-bottom a, .side-bottom button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 13px; border: 0; background: transparent; color: var(--muted); border-radius: 8px; text-align: left; }
.sidebar a[aria-current=page], .sidebar button:hover, .sidebar a:hover:not(.brand) { color: var(--primary-dark); background: #e8f2e9; }
.sidebar a[aria-current=page] { font-weight: 700; }
.local { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; padding: 17px 10px 0; margin-top: 8px; }
.local i, .state i, .hero-label i { width: 7px; height: 7px; border-radius: 50%; background: #30976d; display: inline-block; flex-shrink: 0; }
.main { width: min(100%, 1440px); padding: 32px clamp(24px, 4vw, 62px) 50px; margin: 0 auto; }
.page-header { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 26px; }
.page-header .eyebrow { color: var(--primary); font-size: 13px; font-weight: 710; margin-bottom: 3px; }
.page-header h1 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.025em; line-height: 1.3; }
.page-header p:last-child { color: var(--muted); margin-top: 7px; }
.hero { display: flex; align-items: center; min-height: 272px; overflow: hidden; position: relative; background: linear-gradient(106deg,#0c392d 7%,#114f3b 81%,#185b43); color: #eef8f0; border-radius: 17px; isolation: isolate; }
.hero-text { padding: 27px 36px 31px; position: relative; z-index: 1; }
.hero-label { display: flex; align-items: center; gap: 9px; color: #c7e9d4; font-size: 12px; letter-spacing: .1em; }
.hero-label i { background: #a9d5b4; }
.hero h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 740; line-height: 1.24; letter-spacing: .025em; margin: 8px 0; }
.hero-text > p:not(.hero-label) { color: #d2e6da; }
.hero-buttons { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 9px 14px; min-height: 41px; border: 1px solid transparent; border-radius: 8px; font-weight: 680; white-space: nowrap; font-size: 14px; transition: background .15s ease; }
.primary { background: var(--primary); color: white; }
.primary:hover:not(:disabled) { background: var(--primary-dark); }
.outline { background: white; color: var(--text); border-color: #cfdad0; }
.outline:hover:not(:disabled) { background: #edf4ed; }
.hero-primary { background: #edf6e9; color: #133c2d; }
.hero-primary:hover { background: #d6ead5; }
.hero-secondary { color: #f3f8f4; background: #ffffff12; border-color: #a6cbbb70; }
.hero-secondary:hover { background: #ffffff2b; }
.hero-art { position: absolute; right: 0; width: 49%; height: 100%; inset-block: 0; pointer-events: none; }
.orbit { position: absolute; top: 49%; left: 47%; border: 1px solid #a7d4b739; border-radius: 50%; transform: translate(-50%, -50%); width: 320px; aspect-ratio: 1; }
.orbit.two { width: 400px; }
.orbit.three { width: 480px; }
.hero-sheet { position: absolute; top: 50%; left: 47%; width: 112px; height: 148px; border-radius: 13px; }
.hero-sheet.back { transform: translate(-37%, -54%) rotate(21deg); background: #b9d6a58c; border: 1px solid #d2ecc0a0; }
.hero-sheet.front { transform: translate(-58%, -49%) rotate(-13deg); background: linear-gradient(150deg,#edf6e7,#c8e3c8); padding: 32px 20px; box-shadow: 0 10px 25px #082c254a; }
.hero-sheet.front span { display: block; width: 100%; height: 4px; border-radius: 6px; background: #7caa94; margin: 0 0 11px; }
.hero-sheet.front span:first-child { width: 54%; height: 8px; background: #4e8b73; }
.hero-sheet.front span:last-child { width: 72%; }
.hero-check { display: grid; place-items: center; position: absolute; top: 58%; left: calc(47% + 44px); width: 56px; height: 56px; background: #cbecb2; color: #185e42; border: 4px solid #2a674d; border-radius: 50%; }
.art-dot { position: absolute; left: 24%; top: 28%; background: #c0e0b1; border-radius: 50%; width: 9px; height: 9px; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 18px 0 29px; }
.metrics article { display: flex; align-items: center; gap: 13px; padding: 15px 17px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.metric-icon, .doc-icon { display: grid; place-items: center; border-radius: 9px; width: 42px; height: 42px; flex-shrink: 0; }
.green { background: #e9f5eb; color: #226f4e; }
.blue { background: #e9f1f4; color: #3b6a78; }
.amber { background: #f8eee0; color: #975b2c; }
.metrics small, .metrics strong { display: block; }
.metrics small { color: var(--muted); font-size: 12px; }
.metrics strong { font-size: 22px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.metrics strong span { color: var(--muted); font-size: 12px; font-weight: 510; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.section-title h2 { font-size: 23px; }
.section-title a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; }
.library-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 13px; }
.tabs { display: flex; gap: 3px; background: #ebefea; padding: 4px; border-radius: 9px; }
.tabs button { background: transparent; border: 0; border-radius: 6px; padding: 5px 11px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.tabs .selected { background: white; font-weight: 700; color: var(--primary-dark); box-shadow: 0 1px 3px #152b1b16; }
.search { border: 1px solid var(--line); display: flex; gap: 8px; align-items: center; background: white; color: var(--muted); border-radius: 8px; padding: 0 10px; }
.search input { display: block; width: min(180px, 45vw); min-height: 37px; background: transparent; padding: 3px 2px; border: 0; }
.search:focus-within { outline: 2px solid #74ab96; }
.search input:focus-visible { outline: 0; }
.paper-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.paper { display: flex; flex-direction: column; justify-content: space-between; min-height: 158px; border: 1px solid var(--line); border-radius: 12px; background: white; padding: 14px 16px 11px; transition: border-color .15s ease; }
.paper:hover { border-color: #afc9b6; }
.paper-top, .paper-footer { display: flex; justify-content: space-between; align-items: center; gap: 5px; }
.paper-source { color: var(--muted); font-size: 12px; margin: 7px 0 1px; }
.paper h3, .history-list h3 { font-size: 15px; overflow-wrap: anywhere; }
.paper-footer { color: var(--muted); font-size: 12px; padding-top: 8px; }
.paper-footer .text-btn { flex-shrink: 0; }
.text-btn { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; padding: 4px 2px; color: var(--primary-dark); font-size: 13px; font-weight: 680; }
.text-btn:hover { text-decoration: underline; }
.sep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: #7b8b81; margin: 0 4px 2px; }
.state { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; border-radius: 999px; padding: 3px 7px; font-size: 11px; background: #eff1ef; color: #516158; }
.state i { height: 5px; width: 5px; background: #7b8b83; }
.state.ready { background: var(--mint); color: #1c6749; }
.state.ready i { background: #30976d; }
.state.partial { background: #fbf0db; color: #774916; }
.state.partial i { background: #c17c2b; }
.pagination { display: flex; gap: 15px; align-items: center; justify-content: center; margin-top: 22px; color: var(--muted); font-size: 13px; }
.pagination button { border: 1px solid var(--line); border-radius: 7px; background: white; padding: 5px 9px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 13px; }
.empty { text-align: center; color: var(--muted); padding: 37px 14px; }
.empty a { font-weight: 700; }
.history-list { display: grid; gap: 9px; }
.history-list article { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; background: white; border: 1px solid var(--line); border-radius: 10px; padding: 13px 16px; }
.history-list p, .history-result { color: var(--muted); font-size: 13px; }
.history-result b { color: var(--text); }
.attempt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.settings-grid article { padding: 22px; }
.settings-grid h2 { margin: 9px 0 5px; font-size: 20px; }
.settings-grid p { color: var(--muted); margin-bottom: 5px; }
.prompt-panel { grid-column: 1 / -1; }
.settings-form { display: grid; gap: 12px; margin-top: 12px; }
.settings-form label { display: grid; gap: 5px; font-weight: 650; }
.settings-form input { min-width: 0; width: 100%; background: white; border: 1px solid #cedacf; border-radius: 7px; padding: 7px 8px; }
.settings-form input, .settings-form textarea { font-weight: 400; }
.settings-actions, .practice-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.question-search { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 12px; }
.question-search .search { flex: 1 1 200px; }
.question-search .search input { width: 100%; }
.question-search select { max-width: min(100%, 300px); }
.question-count { margin: 15px 0 8px; font-size: 13px; }
.question-results { display: grid; gap: 9px; }
.question-results article { padding: 14px 16px; overflow-wrap: anywhere; }
.question-results h2 { margin: 3px 0; font-size: 16px; white-space: pre-wrap; }
.question-results h2 a:hover { text-decoration: underline; }
.question-results p, .question-results ul { font-size: 13px; }
.question-results ul { display: flex; flex-wrap: wrap; gap: 3px 18px; padding: 0; margin: 6px 0 0; list-style: none; color: var(--muted); }
.practice-view { max-width: 880px; }
.practice-back { margin-bottom: 13px; }
.practice-actions { margin-top: 17px; }
.practice-view .answer-info > p { margin-top: 6px; }
.practice-view .answer-info:focus { outline: 2px solid #74ab96; outline-offset: 2px; }
.audit-table { overflow-x: auto; }
.audit-table table { width: 100%; border-collapse: collapse; text-align: left; }
.audit-table th, .audit-table td { padding: 10px 15px; border-bottom: 1px solid var(--line); }
.audit-table th { background: #ecf3ec; white-space: nowrap; }
.audit-table td small { display: block; color: var(--muted); }
.dialog-header, .dialog-footer { padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dialog-header { border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 20px; }
.dialog-footer { border-top: 1px solid var(--line); justify-content: flex-end; }
dialog { padding: 0; width: min(94vw,540px); color: var(--text); border: 0; border-radius: 14px; box-shadow: 0 18px 65px #0e211c46; max-height: min(90vh,850px); }
dialog.wide { width: min(94vw,720px); }
dialog::backdrop { background: #122b235a; }
.dialog-body { padding: 18px 20px; }
.icon-button { flex: 0 0 auto; height: 37px; width: 37px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--text); display: grid; place-items: center; }
.icon-button:hover { background: var(--mint); }
.muted { color: var(--muted); }
.callout { padding: 11px 13px; margin: 10px 0; background: #f5f7ef; color: #405043; border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.source-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.source-list li { display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.source-list span { color: var(--muted); font-size: 12px; }
.source-list code { font: inherit; font-size: 12px; overflow-wrap: anywhere; }
.detail-stats { display: flex; gap: 14px; flex-wrap: wrap; color: var(--primary-dark); font-weight: 650; }
.number-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin-top: 11px; }
.number-grid label { font-size: 12px; color: var(--muted); }
input[type=number], textarea, select { background: white; border: 1px solid #cedacf; border-radius: 7px; padding: 7px 8px; color: var(--text); }
input[type=number], textarea { width: 100%; }
textarea { display: block; resize: vertical; margin: 6px 0; }
input[type=checkbox] { accent-color: var(--primary); }
.selection-title { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; }
.selection-title h3 { font-size: 15px; }
.source-select { max-height: 220px; overflow-y: auto; display: grid; gap: 3px; margin-top: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; }
.source-select label { display: flex; align-items: center; gap: 7px; padding: 4px 7px; }
.source-select label:hover { background: var(--mint); }
.source-select small { margin-left: auto; white-space: nowrap; color: var(--muted); }
.error-text { color: #9c2630; margin-top: 7px; }
.error-text:empty { display: none; }
.exam-header { padding: 13px clamp(17px,5vw,62px); background: white; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; z-index: 2; }
.exam-header-start, .exam-actions { display: flex; align-items: center; gap: 11px; }
.exam-header .attempt-actions { justify-content: flex-end; }
.exam-header h1 { font-size: clamp(15px,2.5vw,23px); line-height: 1.25; }
.exam-header p { color: var(--muted); font-size: 11px; }
.timer { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #eef5ed; color: var(--primary-dark); border: 0; border-radius: 9px; padding: 8px 11px; font-variant-numeric: tabular-nums; }
.timer.urgent { background: #fcecee; color: #9c2630; }
.exam-main { margin: 0 auto; padding: 25px clamp(14px,4vw,42px) 50px; width: min(100%,1400px); }
.exam-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(255px,330px); gap: 17px; align-items: start; }
.exam-content { min-width: 0; scroll-margin-top: 86px; }
.answer-card { padding: 16px; position: sticky; top: 84px; }
.answer-card header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.answer-card h2 { font-size: 18px; }
.answer-card header span { font-size: 12px; color: var(--muted); }
progress { accent-color: var(--primary); width: 100%; height: 7px; border: 0; border-radius: 9px; margin: 8px 0; display: block; }
progress::-webkit-progress-bar { background: #e7ede7; border-radius: 9px; }
progress::-webkit-progress-value { background: var(--primary); border-radius: 9px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 11px; }
.legend span { display: flex; align-items: center; gap: 4px; }
.legend i { display: inline-block; width: 10px; height: 10px; border: 1px solid #bed0c2; border-radius: 3px; }
.legend .answered { background: #d9efdf; }
.legend .flagged { background: #ebaa45; border-color: #ebaa45; }
.number-list { max-height: min(54dvh,490px); overflow: auto; padding: 2px 3px 2px 2px; }
.number-group p { margin: 8px 0 3px; color: var(--muted); font-size: 11px; }
.question-grid { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 4px; }
.number { position: relative; min-width: 0; padding: 1px; min-height: 27px; border: 1px solid var(--line); color: var(--text); border-radius: 5px; background: white; font-size: 11px; font-variant-numeric: tabular-nums; }
.number:hover { background: #f0f6ee; }
.number.answered, .number.correct { background: #def0e1; color: #136044; border-color: #c0daca; }
.number.incorrect { background: #fbe7e8; color: #8f293a; }
.number.ungraded, .number.unanswered { background: #f0f0ea; }
.number.flagged::after { content: ""; position: absolute; top: 0; right: 0; width: 8px; height: 8px; background: #e9a73d; clip-path: polygon(0 0,100% 0,100% 100%); border-top-right-radius: 3px; }
.number.current { outline: 2px solid var(--primary); outline-offset: -1px; font-weight: 750; }
.question-card { padding: clamp(16px,3.2vw,32px); }
.question-top { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.type-pill { display: inline-block; padding: 4px 9px; background: var(--mint); color: var(--primary-dark); font-size: 13px; font-weight: 690; border-radius: 6px; }
.question-score { color: var(--muted); font-size: 13px; margin-left: 8px; }
.question-tools { display: flex; flex-wrap: wrap; gap: 9px; }
.flag-active { color: var(--gold); }
.material { margin-bottom: 17px; border-radius: 8px; border: 1px solid var(--line); background: #f8faf7; padding: 10px 12px; }
.material summary { cursor: pointer; font-weight: 690; color: var(--primary-dark); }
.material .prose { margin-top: 9px; }
.stem-line { display: flex; align-items: baseline; gap: 8px; font-size: clamp(16px,2.1vw,19px); }
.stem { white-space: pre-wrap; min-width: 0; overflow-wrap: anywhere; font-weight: 590; }
mark { border-radius: 2px; background: #f9d987; color: inherit; }
.figure { display: block; margin: 11px 0; }
.figure img { display: block; max-width: 100%; max-height: 550px; object-fit: contain; border: 1px solid var(--line); background: white; border-radius: 5px; }
.option-hint { margin-top: 8px; font-size: 12px; }
.options { display: grid; gap: 8px; margin-top: 17px; }
.option { display: flex; align-items: center; text-align: left; gap: 11px; border: 1px solid var(--line); border-radius: 8px; background: #fdfefc; color: var(--text); width: 100%; padding: 9px 11px; min-height: 45px; }
.option-text { flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
button.option:hover { border-color: #77aa8e; }
.option-key { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 6px; background: #ecf1eb; color: #435a4a; font-size: 13px; font-weight: 740; flex: 0 0 26px; }
.option.picked, .option.is-correct { background: #eaf6ed; border-color: #83b897; color: #155c3d; }
.option.picked .option-key, .option.is-correct .option-key { background: #1e7451; color: white; }
.option.is-wrong { background: #ffeded; border-color: #dfb2b8; color: #811e2c; }
.option.is-wrong .option-key { background: #9e3a4a; color: white; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: var(--muted); font-size: 13px; }
.results-banner { display: flex; justify-content: space-between; align-items: center; gap: 15px; background: #123f31; color: #edf8ef; padding: 17px 23px; border-radius: 12px; margin-bottom: 13px; }
.results-banner p { color: #d4efdf; font-size: 13px; }
.results-banner strong { font-size: 31px; }
.results-banner small { font-size: 14px; font-weight: 500; }
.result-metrics { display: flex; gap: clamp(12px,4vw,38px); flex-wrap: wrap; }
.result-metrics div { display: grid; text-align: center; }
.result-metrics b { font-size: 21px; }
.result-metrics span { font-size: 11px; color: #d4efdf; }
.review-filter { color: var(--muted); font-size: 12px; }
.answer-info { background: #f5f8f3; border-radius: 9px; margin-top: 18px; padding: 13px; }
.answer-info.incorrect { background: #fcf2f2; }
.answer-info > div { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.answer-info > div span { color: var(--muted); font-size: 13px; }
.answer-info h3 { font-size: 15px; margin-top: 11px; }
.answer-info button { margin-top: 11px; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-log { display: grid; gap: 9px; max-height: min(46vh,435px); overflow: auto; padding-right: 6px; }
.chat-empty { text-align: center; padding: 14px; color: var(--muted); }
.chat-empty span { margin: 0 auto 8px; }
.turn { padding: 9px 12px; background: #f2f6f1; border-radius: 8px; min-width: 0; }
.turn.user { background: #e8f2e9; }
.turn > b { color: var(--primary-dark); font-size: 12px; }
.turn-effort { font-size: 12px; color: var(--muted); margin-left: 10px; }
.markdown { overflow-wrap: anywhere; }
.markdown :is(p,ul,ol,pre,table,blockquote) { margin: 7px 0; }
.markdown :is(h1,h2,h3,h4,h5,h6) { font-size: 1.05em; margin: 12px 0 6px; }
.markdown :is(ul,ol) { padding-left: 1.5em; }
.markdown code { font-size: .9em; background: #e4ede3; padding: 0 .22em; border-radius: 3px; }
.markdown pre { padding: 8px 10px; background: #e4ede3; border-radius: 6px; overflow: auto; }
.markdown pre code { padding: 0; }
.markdown blockquote { border-left: 3px solid #82a993; padding-left: 10px; color: var(--muted); }
.markdown table { display: block; width: max-content; max-width: 100%; overflow: auto; border-collapse: collapse; }
.markdown :is(th,td) { padding: 4px 8px; border: 1px solid #c9dbce; }
.markdown a { text-decoration: underline; }
.chat-tools { display: flex; justify-content: space-between; flex-wrap: wrap; padding-top: 10px; gap: 8px; align-items: center; }
.chat-tools label { font-size: 13px; }
.chat-disclosure { font-size: 12px; }
#chat-status { font-size: 12px; }
#notice { position: fixed; bottom: 17px; right: 17px; z-index: 10; padding: 10px 13px; border-radius: 8px; background: #143c2d; color: white; max-width: min(460px,92vw); display: none; box-shadow: 0 10px 30px #132a2040; }
#notice.visible { display: block; }
#notice.error { background: #842e3a; }
@media (max-width: 1130px) {
  .workspace { grid-template-columns: 193px minmax(0,1fr); }
  .main { padding-inline: 24px; }
  .paper-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 915px) {
  .workspace { grid-template-columns: 155px minmax(0,1fr); }
  .sidebar { padding-inline: 10px; }
  .brand { gap: 7px; padding-inline: 0; }
  .brand small { font-size: 10px; }
  .paper-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-text { padding-inline: 23px; }
}
@media (max-width: 720px) {
  .workspace { display: block; }
  .sidebar { position: static; height: auto; padding: 10px 11px; border-right: 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
  .brand { margin: 0; }
  .brand-icon { width: 31px; height: 31px; }
  .brand small, .local { display: none; }
  .sidebar nav, .side-bottom { display: flex; flex-wrap: wrap; gap: 1px; }
  .sidebar nav a, .sidebar nav button, .side-bottom a { width: auto; padding: 4px 6px; font-size: 12px; gap: 4px; }
  .sidebar nav svg, .side-bottom svg { width: 15px; height: 15px; }
  .main { padding: 20px 12px 28px; }
  .hero { min-height: 235px; }
  .hero-art { right: -8%; opacity: .62; }
  .metrics { gap: 6px; }
  .metrics article { padding: 8px; gap: 6px; }
  .metric-icon { width: 31px; height: 31px; }
  .metric-icon svg { width: 16px; }
  .metrics strong { font-size: 17px; }
  .exam-layout { display: flex; flex-direction: column; }
  .exam-content, .answer-card { width: 100%; }
  .answer-card { position: static; }
  .number-list { max-height: 250px; }
  .question-grid { grid-template-columns: repeat(10,minmax(0,1fr)); }
}
@media (max-width: 450px) {
  .paper-grid { grid-template-columns: 1fr; }
  .paper { min-height: 132px; }
  .hero-art { right: -3%; width: 40%; opacity: .36; }
  .hero-sheet { width: 82px; height: 113px; }
  .hero-sheet.front { padding: 22px 16px; }
  .hero-check { left: calc(47% + 23px); height: 42px; width: 42px; }
  .metrics article { display: block; }
  .metrics .metric-icon { display: none; }
  .number-grid { grid-template-columns: repeat(3,1fr); }
  .history-list article { grid-template-columns: auto 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .question-search select { max-width: min(68vw, 300px); }
  .timer { padding-inline: 5px; font-size: 12px; }
  .timer svg { width: 13px; }
}
.option-image { display: block; max-width: 100%; max-height: 200px; object-fit: contain; }
.provenance { margin-top: 14px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.provenance summary { cursor: pointer; font-weight: 650; }
.provenance p { margin: 5px 0; }
.provenance a { display: inline-block; font-weight: 650; margin-right: 12px; }
.audit-summary { color: var(--muted); margin: -10px 0 12px; }
.audit-other { margin-top: 14px; padding: 12px 15px; }
.audit-other summary { cursor: pointer; font-weight: 650; }
