.exam-intro,.exam-setup,.exam-official,.exam-archive,.exam-results,.exam-review-task,.exam-review-answers{padding:32px;margin-bottom:24px}
.exam-intro{display:grid;grid-template-columns:1.15fr 1fr;gap:48px;border-top:2px solid var(--green)}
.exam-kicker{font-size:11px;letter-spacing:.12em;color:var(--green)}.exam-intro h2{font-size:28px;margin:18px 0;line-height:1.5;letter-spacing:-.02em}.exam-intro p{color:var(--muted);max-width:50ch}.exam-timeline{display:flex;flex-direction:column;justify-content:center}.exam-timeline>span{position:relative;padding:14px 0 14px 40px;border-bottom:1px solid var(--line);font-size:16px}.exam-timeline>span:last-child{border:0}.exam-timeline b{position:absolute;left:0;top:17px;font-size:11px;color:var(--green);font-weight:500;font-variant-numeric:tabular-nums}.exam-timeline small{display:block;font-size:12px;margin-top:5px;color:var(--muted)}
.exam-resume{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px;padding:22px 30px;background:var(--deep);border-radius:10px}.exam-resume p{font-size:13px;color:var(--muted);margin:6px 0 0}.exam-resume button{flex-shrink:0}
.exam-paper-title{font-size:20px;margin:20px 0 8px}.exam-setup>.form-grid{margin-top:25px}.exam-setup>.primary{min-height:48px;margin-top:8px}.exam-import{border-top:1px solid var(--line);margin-top:28px;padding-top:22px}.exam-import summary{cursor:pointer;min-height:32px}.exam-import>p{font-size:13px;line-height:1.9;color:var(--muted);margin-top:15px}.exam-import-actions,.exam-review-actions,.exam-links{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.exam-import-actions{margin:20px 0}.exam-file-label{display:flex;align-items:center;gap:8px;font-size:12px;max-width:100%;margin:0}.exam-file-label input{font-size:12px;max-width:230px;padding:8px}.exam-links{margin:24px 0;gap:15px 28px}.exam-links a,.exam-official a{color:var(--green)}.exam-official>p{font-size:14px;color:var(--muted)}.exam-archive article{padding:20px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:18px;align-items:center}.exam-archive article p{font-size:12px;color:var(--muted);margin:5px 0 0}
.exam-portal{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid var(--line);border-left:3px solid var(--blue);padding:20px 24px;margin-bottom:24px;border-radius:8px;background:var(--surface)}.exam-portal strong{display:block;font-weight:550;font-size:16px}.exam-portal small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.exam-portal b{font-size:13px;color:var(--blue);font-weight:500;white-space:nowrap}
/* The examination workspace takes the full viewport; the study shell remains available on exit. */
body.exam-focus .sidebar,body.exam-focus .topbar,body.exam-focus .workspace>footer{display:none}body.exam-focus .workspace{margin:0}body.exam-focus #main{padding:0;max-width:none;width:100%}body.exam-focus{overflow:hidden}
.exam-shell{--ex-bg:#171c1b;--ex-panel:#1f2524;--ex-toolbar:#293130;--ex-ink:#e8edea;--ex-muted:#b7c3bd;--ex-line:#46534d;--ex-accent:#b6d7c6;--ex-button:#313c37;--ex-input:#18211d;--ex-mark:#514b26;--ex-mark-ink:#fff2a9;background:var(--ex-bg);color:var(--ex-ink);height:100vh;height:100dvh;display:flex;flex-direction:column;font-family:Arial,'PingFang SC','Microsoft YaHei',sans-serif;font-size:var(--exam-font,18px)}
.exam-theme-light{--ex-bg:#edf1f0;--ex-panel:#fff;--ex-toolbar:#dfe9e6;--ex-ink:#17231e;--ex-muted:#485b52;--ex-line:#a3b5ac;--ex-accent:#205a42;--ex-button:#e5efea;--ex-input:#fff;--ex-mark:#fff0a2;--ex-mark-ink:#302700}
.exam-shell button,.exam-shell input,.exam-shell textarea,.exam-shell select{color:var(--ex-ink);border:1px solid var(--ex-line);background:var(--ex-button);font-family:inherit;font-size:14px;min-height:40px;border-radius:4px;box-shadow:none}.exam-shell button{padding:8px 12px}.exam-shell button:hover:not(:disabled){border-color:var(--ex-accent);background:var(--ex-toolbar)}.exam-shell button:focus-visible,.exam-shell input:focus-visible,.exam-shell select:focus-visible,.exam-shell textarea:focus-visible{outline:2px solid var(--ex-accent);outline-offset:2px}.exam-shell :disabled{opacity:.6}.exam-shell button[aria-pressed=true]{background:var(--ex-accent);color:var(--ex-bg);border-color:var(--ex-accent)}.exam-shell button[aria-pressed=true]:hover{color:var(--ex-ink)}
.exam-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 24px;background:var(--ex-toolbar);border-bottom:1px solid var(--ex-line);flex-shrink:0}.exam-toolbar>div:first-child{min-width:180px}.exam-exit{display:block;color:var(--ex-muted);font-size:11px;margin:0 0 5px}.exam-toolbar strong{font-size:19px;font-weight:550}.exam-toolbar strong small{font-size:10px;font-weight:400;margin-left:10px;letter-spacing:.06em;color:var(--ex-muted)}.exam-toolbar-actions{display:flex;gap:8px;align-items:center}.exam-clock{text-align:center;min-width:126px}.exam-clock strong{font-size:27px;font-weight:500;font-variant-numeric:tabular-nums;line-height:1.15;letter-spacing:.03em}.exam-clock span{display:block;font-size:11px;color:var(--ex-muted);margin-top:4px}.exam-clock .warning{color:#efb488}.exam-theme-light .exam-clock .warning{color:#a1370f}
.exam-section-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--ex-line);padding:10px 24px;flex-shrink:0}.exam-section-bar>div{display:flex;gap:8px}.exam-section-bar>p{margin:0;color:var(--ex-muted);font-size:12px}.exam-mobile-panes{display:none}
.exam-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:0;flex:1;overflow:hidden}.exam-text-panel,.exam-answer-panel{min-width:0;overflow-y:auto;overscroll-behavior:contain;padding:26px 32px 60px;scrollbar-gutter:stable;background:var(--ex-panel)}.exam-answer-panel{border-left:1px solid var(--ex-line);background:var(--ex-bg)}.exam-part-heading{padding-bottom:20px;margin-bottom:22px;border-bottom:1px solid var(--ex-line)}.exam-part-heading h2{color:var(--ex-ink);font-size:21px;line-height:1.5;margin:0 0 12px;font-weight:600}.exam-part-heading h2:last-child{margin:0}.exam-text-tools{display:flex;gap:8px}.exam-text-tools button{font-size:11px;min-height:34px;padding:6px 10px}.exam-passage{font-size:var(--exam-font);line-height:1.8;max-width:74ch}.exam-passage p{margin:0 0 24px;white-space:pre-wrap}.exam-passage mark{background:var(--ex-mark);color:var(--ex-mark-ink)}.exam-instruction{font-size:16px;line-height:1.7;padding-bottom:18px;margin-bottom:22px;border-bottom:1px solid var(--ex-line);white-space:pre-wrap;font-weight:550}.exam-question-group{margin:0 0 36px}.exam-question{border:0;padding:0 0 24px;margin:0 0 24px;border-bottom:1px solid var(--ex-line);min-width:0;scroll-margin:24px}.exam-question:focus{outline:1px solid var(--ex-accent);outline-offset:8px}.exam-question legend{font-size:var(--exam-font);line-height:1.65;margin-bottom:14px;color:var(--ex-ink);padding:0}.exam-question legend b{display:inline-block;margin-right:8px;font-weight:600}.exam-question>input,.exam-question>select{background:var(--ex-input);font-size:16px;max-width:100%;min-height:44px;margin-bottom:6px}.exam-question>input{max-width:320px}.exam-question>small{display:block;font-size:11px;color:var(--ex-muted);margin:4px 0 6px}.exam-choice{display:flex;align-items:flex-start;gap:11px;min-height:44px;cursor:pointer;font-size:var(--exam-font);color:var(--ex-ink);margin:0 0 4px;padding:8px 6px;border-radius:4px}.exam-choice:has(input:checked){background:var(--ex-toolbar)}.exam-choice input{flex:0 0 auto;width:17px;height:17px;min-height:0;margin:5px 0 0;accent-color:var(--ex-accent)}.exam-shell .exam-flag{display:block;border:0;background:transparent;padding:6px 0;font-size:11px;color:var(--ex-muted);min-height:36px;margin-top:8px}.exam-shell .exam-flag[aria-pressed=true]{color:var(--ex-accent)}
.exam-shell .exam-bottom{display:flex;flex-direction:column;gap:10px;padding:12px 24px;border-top:1px solid var(--ex-line);background:var(--ex-toolbar);flex-shrink:0;color:var(--ex-ink);font-size:12px}.exam-question-nav{display:flex;flex-direction:row;flex-wrap:wrap;gap:5px;margin:0;width:auto}.exam-question-nav button{position:relative;min-width:34px;width:34px;min-height:34px;height:34px;padding:4px;font-size:12px;font-variant-numeric:tabular-nums}.exam-question-nav button.answered{background:var(--ex-accent);color:var(--ex-bg);border-color:var(--ex-accent)}.exam-question-nav button.current{outline:2px solid var(--ex-accent);outline-offset:1px}.exam-question-nav button.flagged{border-style:dashed;border-width:2px}.exam-question-nav sup{position:absolute;right:-4px;top:-9px;line-height:1;color:var(--ex-ink);background:var(--ex-toolbar);font-size:12px}.exam-save{display:flex;gap:12px;align-items:center;min-height:32px}.exam-save>span{margin-right:auto;color:var(--ex-muted);font-size:11px}.exam-save>span.error{color:#f3be9c}.exam-theme-light .exam-save>span.error{color:#a1370f}.exam-save button{font-size:11px;min-height:32px;padding:4px 9px}.exam-local-notice{margin:0!important;padding:6px 24px max(6px,env(safe-area-inset-bottom));font-size:10px;line-height:1.5;color:var(--ex-muted);flex-shrink:0}.exam-writing-progress{font-size:13px;font-variant-numeric:tabular-nums}.exam-writing-progress span{margin-left:26px}
.exam-writing-prompt{font-size:var(--exam-font);line-height:1.85;max-width:70ch}.exam-writing-prompt>p{white-space:pre-wrap;margin-bottom:26px}.exam-writing-label{font-size:13px;display:block;color:var(--ex-muted);margin-bottom:14px}.exam-shell #exam-writing{display:block;min-height:350px;height:calc(100% - 85px);resize:vertical;background:var(--ex-input);color:var(--ex-ink);font-family:Arial,sans-serif;font-size:var(--exam-font);line-height:1.8;padding:20px;width:100%;border-radius:3px}.exam-word-count{font-size:12px;text-align:right;margin:12px 0 0;color:var(--ex-muted);font-variant-numeric:tabular-nums}.exam-chart{margin:28px 0}.exam-chart figcaption{font-size:17px;line-height:1.6;font-weight:600;text-align:center}.exam-chart figcaption small{font-size:12px;font-weight:400}.exam-chart-legend{display:flex;gap:18px;justify-content:center;font-size:12px;margin:16px 0 25px}.exam-chart-legend span{display:flex;gap:7px;align-items:center}.exam-chart-legend i{display:block;width:13px;height:13px}.series-0{background:#8db9b1}.series-1{background:#e2b67e}.series-2{background:#a79fc8}.series-3{background:#b6bd74}.series-4{background:#b49a9a}.series-5{background:#91add1}.exam-chart-category{display:grid;grid-template-columns:110px 1fr;gap:15px;margin-bottom:18px;align-items:center}.exam-chart-category b{font-size:12px;font-weight:500;line-height:1.5}.exam-chart-track{display:flex;align-items:center;gap:7px;margin:5px 0;min-height:16px}.exam-chart-track span{display:block;height:14px;min-width:2px}.exam-chart-track em{font-size:11px;font-style:normal}.exam-chart details{font-size:12px;margin-top:22px}.exam-chart summary{cursor:pointer;min-height:32px}.exam-chart table{border-collapse:collapse;width:100%;font-size:12px}.exam-chart th,.exam-chart td{padding:8px;text-align:left;border-bottom:1px solid var(--ex-line,var(--line));font-weight:400}
.exam-audio-bar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:9px 24px;border-bottom:1px solid var(--ex-line);font-size:12px;flex-shrink:0}.exam-audio-bar label{display:flex;gap:10px;align-items:center;margin:0;font-size:12px;color:var(--ex-ink)}.exam-audio-bar input[type=range]{width:100px;min-height:20px;padding:0;accent-color:var(--ex-accent)}.exam-audio-bar button{font-size:11px;min-height:32px}.exam-result-scores{display:flex;gap:40px;flex-wrap:wrap;margin:28px 0}.exam-result-scores>div{display:flex;flex-direction:column;gap:8px}.exam-result-scores span{font-size:14px;color:var(--muted)}.exam-result-scores strong{font-size:36px;font-weight:450;line-height:1.2;font-variant-numeric:tabular-nums}.exam-result-scores strong small{font-size:18px}.exam-result-scores small{font-size:12px;color:var(--muted)}.exam-results .exam-review-actions{margin-top:25px}.exam-review-task>p{line-height:1.9;max-width:80ch}.exam-preserve{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}.exam-review-answers details{padding:16px 0;border-top:1px solid var(--line)}.exam-review-answers summary{display:flex;align-items:flex-start;gap:12px;cursor:pointer;font-size:14px;line-height:1.7}.exam-review-answers summary>b{min-width:24px;color:var(--green)}.exam-review-answers summary>em{font-size:11px;white-space:nowrap;margin-left:auto;color:var(--muted);font-style:normal}.exam-review-answers details>p{font-size:14px;line-height:1.9;margin:20px 0}.exam-review-answers blockquote{border-left:2px solid var(--green);padding-left:16px;color:var(--muted);font-size:14px;line-height:1.9}.exam-results summary{cursor:pointer}.exam-recovery{padding:10px 24px;color:var(--amber);font-size:12px;background:var(--bg);display:flex;gap:12px;align-items:center;flex-wrap:wrap}.exam-recovery button{font-size:12px}
@media(max-width:1000px){.exam-intro{gap:25px;grid-template-columns:1fr 1fr}.exam-intro h2{font-size:24px}.exam-toolbar{padding:10px 16px;gap:10px}.exam-toolbar>div:first-child{min-width:130px}.exam-toolbar-actions{gap:5px}.exam-toolbar-actions button{padding:7px 9px;font-size:12px}.exam-text-panel,.exam-answer-panel{padding:22px 22px 45px}.exam-section-bar{padding:10px 16px}.exam-section-bar>p{font-size:11px;max-width:30ch}.exam-shell .exam-bottom{padding:10px 16px}}
@media(max-width:700px){.exam-intro{grid-template-columns:1fr;gap:12px}.exam-intro,.exam-setup,.exam-official,.exam-archive,.exam-results,.exam-review-task,.exam-review-answers{padding:24px 20px}.exam-setup .form-grid{grid-template-columns:1fr}.exam-resume{padding:20px;align-items:stretch;flex-direction:column}.exam-import-actions{align-items:stretch;flex-direction:column}.exam-file-label{flex-direction:column;align-items:flex-start}.exam-links{flex-direction:column;align-items:flex-start}.exam-portal{padding:18px;align-items:flex-start}.exam-portal small{max-width:25ch}.exam-toolbar{flex-wrap:wrap;gap:8px;padding:8px 12px}.exam-toolbar>div:first-child{min-width:100px;flex:1}.exam-toolbar strong{font-size:17px}.exam-clock{min-width:100px}.exam-clock strong{font-size:23px}.exam-toolbar-actions{width:100%;display:flex}.exam-toolbar-actions button{flex:1;min-height:40px}.exam-section-bar{padding:8px 12px;gap:8px}.exam-section-bar>p{display:none}.exam-section-bar button{font-size:12px;min-height:38px}.exam-mobile-panes{display:flex;gap:8px;padding:8px 12px;border-bottom:1px solid var(--ex-line)}.exam-mobile-panes button{flex:1;min-height:36px}.exam-columns{display:block}.exam-text-panel,.exam-answer-panel{height:100%;border:0;padding:20px 18px 45px}.exam-columns[data-pane=text] .exam-answer-panel,.exam-columns[data-pane=answers] .exam-text-panel{display:none}.exam-question-nav{flex-wrap:nowrap;overflow-x:auto;padding:5px 3px 9px}.exam-question-nav button{flex-shrink:0;min-width:40px;width:40px;min-height:40px;height:40px;font-size:13px}.exam-save{flex-wrap:wrap;gap:6px}.exam-save>span{flex:1;min-width:50%;font-size:10px}.exam-save button{min-height:36px}.exam-local-notice{padding-inline:12px;font-size:9px}.exam-shell .exam-bottom{padding:8px 12px;gap:4px}.exam-passage,.exam-question legend,.exam-choice{font-size:max(16px,var(--exam-font))}.exam-chart-category{grid-template-columns:90px 1fr;gap:10px}.exam-shell #exam-writing{height:calc(100% - 80px);min-height:200px;padding:14px}.exam-audio-bar{padding:8px 12px;flex-wrap:wrap;gap:7px}.exam-audio-bar label{font-size:10px}.exam-audio-bar input[type=range]{width:65px}.exam-archive article{align-items:flex-start}.exam-archive article strong{font-size:14px}.exam-archive button{white-space:nowrap}.exam-result-scores{gap:24px}.exam-result-scores strong{font-size:30px}.exam-review-answers summary{font-size:13px}.exam-review-answers summary>em{font-size:10px}.exam-writing-progress{font-size:12px}.exam-writing-progress span{margin-left:15px}}
@media(prefers-reduced-motion:reduce){.exam-shell *{scroll-behavior:auto;transition:none}}

.exam-question-nav button.answered:hover:not(:disabled){background:var(--ex-accent);color:var(--ex-bg)}

/* Daily papers reuse the examination workspace; the library stays in the study shell. */
.daily-intro{display:flex;align-items:center;justify-content:space-between;gap:40px;padding:8px 0 30px;margin-bottom:26px;border-bottom:1px solid var(--line)}
.daily-intro>div:first-child{max-width:68ch}.daily-intro h2{font-size:25px;line-height:1.55;margin:18px 0 12px;font-weight:500}.daily-intro p{font-size:14px;line-height:1.9;color:var(--muted);margin:0}.daily-facts{display:flex;flex-direction:column;gap:5px;min-width:145px;font-size:12px;color:var(--muted)}.daily-facts strong{font-size:42px;line-height:1.3;font-variant-numeric:tabular-nums;font-weight:400;color:var(--blue)}.daily-facts small{font-size:10px}
.daily-library,.daily-unfinished,.daily-import,.daily-archive{padding:28px 30px;margin-bottom:24px}.daily-library article,.daily-unfinished article,.daily-archive article{display:flex;justify-content:space-between;gap:26px;align-items:center;padding:26px 0;border-top:1px solid var(--line)}.daily-library article:last-child,.daily-unfinished article:last-child,.daily-archive article:last-child{padding-bottom:0}.daily-paper-info{max-width:70ch}.daily-paper-meta{font-size:11px;color:var(--blue);font-variant-numeric:tabular-nums}.daily-paper-info h3{font-size:20px;line-height:1.6;margin:10px 0}.daily-paper-info p{font-size:12px;color:var(--muted);line-height:1.8;margin:0}.daily-paper-info .daily-last-result{margin-top:12px;color:var(--green)}.daily-paper-info .small{margin-top:12px}.daily-paper-actions{display:flex;flex-direction:column;gap:10px;flex-shrink:0}.daily-paper-actions button,.daily-unfinished button,.daily-archive button{min-height:44px;white-space:nowrap}.daily-empty{padding:25px 0}.daily-empty h3{font-size:19px;margin-bottom:12px}.daily-empty p{color:var(--muted);font-size:14px;max-width:65ch;line-height:1.9}.daily-empty a{color:var(--green);font-size:13px}.daily-import summary,.daily-archive summary{cursor:pointer;min-height:32px}.daily-import>p{color:var(--muted);font-size:13px;line-height:1.9;margin-top:16px;max-width:78ch}.daily-unfinished h2{font-size:19px;margin-bottom:20px}.daily-unfinished p,.daily-archive p{font-size:12px;color:var(--muted);margin:5px 0 0}.daily-secondary{padding:0 0 20px}.daily-secondary p{font-size:12px;color:var(--muted);margin:8px 0}.daily-back{margin-bottom:22px}.daily-archive summary span{font-size:12px;color:var(--muted);margin-left:14px}
@media(max-width:700px){.daily-intro{flex-direction:column;align-items:stretch;gap:22px}.daily-intro h2{font-size:22px}.daily-facts{display:grid;grid-template-columns:auto 1fr;gap:0 12px;align-items:center}.daily-facts strong{grid-row:1/3;font-size:32px}.daily-facts small{grid-column:2}.daily-library,.daily-unfinished,.daily-import,.daily-archive{padding:22px 20px}.daily-library .section-head{align-items:flex-start;flex-direction:column;gap:8px}.daily-library article{align-items:stretch;flex-direction:column;gap:18px}.daily-paper-info h3{font-size:18px}.daily-paper-actions{flex-direction:row;flex-wrap:wrap}.daily-paper-actions button{flex:1}.daily-unfinished article,.daily-archive article{gap:15px}.daily-unfinished strong,.daily-archive strong{font-size:14px}.daily-unfinished button,.daily-archive button{font-size:12px;padding:10px}.daily-import .exam-import-actions{align-items:stretch}}
