:root{--navy:#172c2b;--ink:#213330;--muted:#65756f;--green:#16735d;--green-dark:#105443;--mint:#e6f0ea;--paper:#f6f7f2;--surface:#fff;--line:#dce3da;--danger:#a52f3c;--focus:#2466b9;--radius:18px}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI","Microsoft JhengHei",sans-serif;font-size:16px;line-height:1.6}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.65;cursor:wait}a,button{touch-action:manipulation}img{display:block}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(26px,2.5vw,36px);letter-spacing:-.03em;line-height:1.35;margin-bottom:12px}h2{font-size:22px;line-height:1.4;margin-bottom:16px}h3{font-size:18px;line-height:1.45;margin-bottom:10px}p{margin-bottom:18px}small,.small{font-size:13px}strong{font-weight:650}:focus-visible{outline:3px solid var(--focus);outline-offset:4px}.muted{color:var(--muted)}.eyebrow{display:block;font-size:12px;font-weight:700;letter-spacing:.16em;color:var(--green);margin-bottom:14px}.pill{display:inline-flex;align-items:center;padding:5px 12px;background:var(--mint);color:var(--green-dark);font-size:12px;line-height:1.5;font-weight:650;border-radius:100px}.pill.neutral{background:#f0f2ee;color:var(--muted)}.pill.dark{background:#29433d;color:#d4e5dc}
.button{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:46px;padding:10px 18px;border:1px solid transparent;border-radius:10px;font-size:14px;font-weight:650;transition:background .18s,transform .18s}.button.primary{background:var(--green);color:white}.button.primary:hover{background:var(--green-dark)}.button.secondary{border-color:var(--line);background:var(--surface)}.button.secondary:hover{background:var(--mint);border-color:#b6cfc0}.button.light{background:white;color:var(--green-dark)}.button.light:hover{background:#f5faf6}.button.full{width:100%}.button.text-button{padding:7px 10px;background:transparent;color:var(--muted)}.button.text-button:hover{background:#f2f4ef}.notice{padding:13px 18px;border:1px solid #c6ddce;background:#ebf5ee;border-radius:10px;margin-bottom:22px;color:#24583d;font-size:14px;overflow-wrap:anywhere}.notice.danger{border-color:#edc8ce;background:#fff1f3;color:var(--danger)}.notice.warning{background:#fcf5e4;color:#77511a;border-color:#ead9b3}
.form-stack{display:grid;gap:22px}.form-stack label{display:grid;gap:8px;font-size:14px;font-weight:600}.form-stack label small{font-weight:400}input,select{width:100%;min-width:0;min-height:48px;border:1px solid #cbd5ca;background:white;border-radius:9px;padding:11px 13px;color:var(--ink)}input:focus,select:focus{border-color:var(--green)}.password-field{display:flex;position:relative}.password-field input{padding-right:68px}.password-toggle{position:absolute;right:5px;top:3px;bottom:3px;min-width:52px;border:0;background:transparent;border-radius:6px;color:var(--muted);font-size:13px}
.auth-body{min-height:100dvh;display:grid;place-items:center;padding:40px}.auth-shell{width:min(1100px,100%);display:grid;grid-template-columns:1.12fr 1fr;background:var(--surface);border:1px solid var(--line);border-radius:24px;overflow:hidden;min-height:660px}.auth-story{background:var(--navy);color:white;padding:42px 46px;position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:25px}.brand{display:flex;gap:12px;align-items:center;font-size:18px;font-weight:650;letter-spacing:-.02em;line-height:1.35}.brand small{display:block;font-size:11px;font-weight:400;letter-spacing:.06em;margin-top:7px;color:#b3c9bf}.brand img{flex-shrink:0}.story-copy{margin-top:28px}.story-copy .eyebrow{color:#a8cfbd}.story-copy h1{font-size:42px;line-height:1.3}.story-copy p{color:#b8cec3;font-size:14px;line-height:1.9;margin:18px 0 0}.paper-preview{background:#f8f9f4;color:var(--ink);padding:26px;border-radius:9px;width:100%;max-width:346px;transform:rotate(-3deg);margin:10px 0 0 20px;border:1px solid #c6d3c6}.paper-label{display:block;font-size:9px;letter-spacing:.2em;color:var(--muted);margin-bottom:7px}.paper-preview strong{font-size:20px}.paper-rule{height:1px;background:var(--line);margin:16px 0}.paper-question{display:block;font-weight:650;font-size:16px;margin-bottom:12px}.paper-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:12px}.paper-options span{padding:7px;border-radius:4px}.paper-options .selected{background:#deeadf;color:#155d43}.paper-preview small{display:block;font-size:10px;color:var(--muted);margin-top:16px}.story-footer{color:#a6beb2;font-size:11px;margin-top:auto;margin-bottom:0;letter-spacing:.06em}.auth-form{padding:65px 52px;align-self:center;width:100%;max-width:510px}.auth-form h2{font-size:28px;letter-spacing:-.025em;margin:20px 0 10px}.auth-form>.muted{font-size:14px;margin-bottom:28px}.auth-note{font-size:12px;color:var(--muted);margin-top:24px;margin-bottom:0}
.app-shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100dvh}.sidebar{position:sticky;top:0;height:100dvh;background:var(--navy);color:#c4d4cb;padding:32px 22px;display:flex;flex-direction:column}.sidebar .brand{color:white;gap:9px;font-size:16px}.sidebar .brand small{font-size:10px}.nav-label{font-size:10px;letter-spacing:.14em;color:#91aaa0;margin:48px 15px 12px}.sidebar nav{display:grid;gap:8px}.sidebar nav a{min-height:48px;display:flex;align-items:center;gap:13px;padding:11px 14px;border-radius:9px;font-size:14px;transition:background .18s}.sidebar nav a:hover{background:#23433b;color:white}.sidebar nav a[aria-current]{background:#2d4c43;color:#fff}.nav-symbol{width:21px;font-size:20px;line-height:1}.sidebar-bottom{margin-top:auto;padding:24px 12px 0}.sidebar-bottom p{font-size:12px;color:#9db5a9;margin:16px 0 0;line-height:1.8}.workspace{min-width:0;display:flex;flex-direction:column}.topbar{min-height:88px;border-bottom:1px solid var(--line);padding:14px 42px;display:flex;justify-content:space-between;align-items:center;gap:20px;background:var(--surface)}.topbar-left{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted)}.breadcrumb{color:var(--ink);margin-left:9px}.account{display:flex;align-items:center;gap:12px}.avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#e1ebdf;color:#2e614c;font-size:15px;font-weight:700;text-transform:uppercase;flex-shrink:0}.account-name{font-size:13px;font-weight:600}.account-name small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:2px}.logout{min-height:44px;border:0;background:transparent;color:var(--muted);font-size:12px;padding:8px;margin-left:12px}.menu-toggle{display:none;border:1px solid var(--line);border-radius:7px;background:white;min-width:44px;min-height:44px}.main-content{padding:42px;max-width:1400px;width:100%;margin:auto;flex:1}.welcome{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:26px}.welcome .eyebrow{margin-bottom:9px}.welcome h1{font-size:clamp(24px,2vw,30px)}.welcome p{margin:0;font-size:14px}.date-label{white-space:nowrap;color:var(--muted);font-size:12px;padding-bottom:5px}.intro-panel{padding:32px 38px;border:1px solid #d2dfd2;border-radius:var(--radius);background:#e7efdf;display:grid;grid-template-columns:1fr 240px;gap:28px;overflow:hidden}.intro-panel h2{font-size:28px;margin:18px 0 12px}.intro-panel p{font-size:14px;max-width:520px;color:#546959}.intro-visual{position:relative;display:grid;place-items:center}.mini-paper{padding:24px;background:#fffdfa;border:1px solid #cbd5c5;border-radius:7px;transform:rotate(8deg);width:190px;position:absolute}.mini-paper>span:first-child{font-size:9px;letter-spacing:.2em;color:var(--muted)}.mini-paper strong{display:block;font-size:22px;line-height:1.3;margin:10px 0 18px;letter-spacing:-.03em}.mini-paper>div{height:5px;background:#e5e9df;border-radius:3px;width:100%;margin-top:9px}.mini-paper>div:nth-of-type(2){width:70%}.mini-paper>div:nth-of-type(3){width:85%}.mini-stamp{display:block;color:#45654c;border:1px solid #b7c9af;border-radius:4px;padding:5px 8px;width:max-content;font-size:8px;letter-spacing:.1em;margin-top:20px;transform:rotate(-8deg)}
.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:22px}.stat-card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:24px}.stat-card>span{font-size:12px;color:var(--muted)}.stat-card strong{display:block;font-size:34px;line-height:1.2;margin:15px 0 12px;letter-spacing:-.035em}.stat-card strong small{margin-left:12px;font-size:12px;letter-spacing:0;color:var(--muted);font-weight:400}.stat-card .text-value{font-size:25px;margin:21px 0 16px}.stat-card p{margin:0;font-size:11px;color:var(--muted)}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:38px 0 20px}.section-heading .eyebrow{margin-bottom:8px}.section-heading h2{margin:0}.workflow-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.workflow-card{padding:22px;border:1px solid var(--line);border-radius:14px;background:#fafbf7}.step-number{display:grid;place-items:center;width:35px;height:35px;border:1px solid #cbd8c9;color:var(--green);font-size:12px;border-radius:9px;font-weight:650;flex-shrink:0}.workflow-card h3{font-size:16px;margin:17px 0 10px}.workflow-card p{font-size:12px;color:var(--muted);min-height:55px;margin-bottom:13px}.workflow-card .small{font-size:10px}.bottom-callout{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:30px;padding:23px 0;border-top:1px solid var(--line)}.bottom-callout strong{font-size:15px}.bottom-callout p{font-size:12px;margin:6px 0 0}.app-footer{display:flex;justify-content:space-between;gap:16px;padding:20px 42px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}.skip-link{position:fixed;top:-100px;left:12px;z-index:30;background:white;color:var(--ink);padding:12px}.skip-link:focus{top:10px}
.page-heading{margin-bottom:32px}.page-heading .eyebrow{margin-bottom:9px}.page-heading p{font-size:14px;margin-bottom:0}.heading-row{display:flex;justify-content:space-between;align-items:center;gap:20px}.two-column{display:grid;grid-template-columns:1fr 1fr;gap:24px}.panel{padding:28px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);min-width:0}.panel h2{font-size:20px}.panel>p{font-size:14px}.panel.spaced{margin-top:24px}.detail-list{margin:0}.detail-list>div{display:flex;justify-content:space-between;gap:20px;padding:13px 0;border-bottom:1px solid #edf0e9;font-size:13px}.detail-list dt{color:var(--muted)}.detail-list dd{margin:0;overflow-wrap:anywhere;text-align:right;font-weight:600}.detail-list+p{margin:20px 0 0}.empty-state{text-align:center;background:white;border:1px dashed #c5d2c2;border-radius:var(--radius);padding:60px 28px}.empty-state p{font-size:14px}.empty-mark{display:inline-grid;place-items:center;background:var(--mint);color:var(--green);border-radius:14px;width:60px;height:60px;font-size:28px;margin-bottom:20px}.job-card{margin-bottom:18px}.job-heading{display:flex;justify-content:space-between;gap:20px;align-items:center}.job-heading h2{margin:7px 0 0;font-size:18px}.job-card>.small{margin:12px 0}.status{display:inline-flex;white-space:nowrap;background:#edf0e8;color:var(--muted);font-size:11px;border-radius:100px;padding:5px 11px}.status.completed{background:#e3f1e7;color:#245b3d}.status.failed{background:#ffedf0;color:var(--danger)}.status.running,.status.queued{background:#fcf2db;color:#795418}.result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;background:var(--paper);border-radius:12px;padding:20px;margin:18px 0}.result-grid span{display:block;color:var(--muted);font-size:11px}.result-grid strong{display:block;font-size:14px;margin-top:4px;overflow-wrap:anywhere}.question-preview{padding:24px;background:var(--paper);border-radius:12px;margin-top:18px}.question-preview h3{margin-top:18px}.question-preview ol{padding-left:26px}.question-preview p{margin:0;font-size:13px}.users-grid{grid-template-columns:1.25fr 1fr}.user-row{display:flex;align-items:center;gap:13px;padding:18px 0;border-bottom:1px solid var(--line)}.user-row:last-child{border:0}.user-info{min-width:0;flex:1;font-size:14px}.user-info>span{display:block;font-size:12px;color:var(--muted);overflow-wrap:anywhere}.user-info small{font-size:11px;color:var(--muted)}.roadmap{margin-top:28px}.roadmap-row{display:flex;align-items:center;gap:24px;padding:24px;border:1px solid var(--line);border-radius:14px;background:white;margin-bottom:14px}.roadmap-row>div{flex:1}.roadmap-row h2{font-size:18px;margin-bottom:7px}.roadmap-row p{font-size:13px;margin:0}.competition-panel .two-column{margin-top:22px}.competition-panel h3{font-size:17px;margin-top:15px}.competition-panel p{font-size:13px}
@media(min-width:1600px){.main-content{padding:48px 60px}.topbar{padding-inline:60px}}
@media(max-width:1100px){.app-shell{grid-template-columns:220px minmax(0,1fr)}.sidebar{padding-inline:16px}.sidebar .brand{font-size:14px}.main-content{padding:28px}.topbar{padding-inline:28px}.workflow-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workflow-card p{min-height:0}.intro-panel{grid-template-columns:1fr 170px;padding:28px}.mini-paper{width:160px;padding:20px}.mini-paper strong{font-size:19px}.stat-card{padding:18px}.stat-card .text-value{font-size:22px}.users-grid{grid-template-columns:1fr}.auth-body{padding:26px}.auth-form{padding:48px 32px}.auth-story{padding:34px}.story-copy h1{font-size:36px}.paper-preview{margin-left:0}}
@media(max-width:800px){.app-shell{display:block}.sidebar{position:fixed;z-index:20;left:0;top:78px;height:calc(100dvh - 78px);width:248px;transform:translateX(-100%);transition:transform .2s}.menu-open .sidebar{transform:translateX(0)}.menu-toggle{display:block}.topbar{min-height:78px;padding:12px 22px}.account-name{display:none}.logout{margin-left:0}.topbar-left{gap:10px}.main-content{padding:28px 22px}.welcome{align-items:flex-start}.date-label{display:none}.two-column{grid-template-columns:1fr}.auth-shell{grid-template-columns:1fr;max-width:480px;min-height:0}.auth-story{padding:28px;gap:18px}.auth-story .story-copy{margin:0}.story-copy h1{font-size:27px}.story-copy h1 br{display:none}.story-copy p{display:none}.paper-preview,.story-footer{display:none}.auth-form{padding:30px 28px;max-width:none}.auth-form h2{font-size:25px}.auth-body{padding:24px 18px}.app-footer{padding:18px 22px}}
@media(max-width:540px){.main-content{padding:26px 18px}.topbar{padding-inline:18px}.topbar-left{font-size:11px}.breadcrumb{display:none}.account{gap:8px}.intro-panel{display:block;padding:24px}.intro-panel h2{font-size:24px}.intro-visual{display:none}.stat-grid{gap:10px;grid-template-columns:1fr}.stat-card{display:grid;grid-template-columns:1fr auto;gap:8px;padding:18px}.stat-card strong,.stat-card .text-value{font-size:25px;grid-row:span 2;align-self:center;margin:0}.stat-card p{grid-column:1}.stat-card strong small{font-size:10px;margin-left:8px}.workflow-grid{gap:12px}.workflow-card{padding:18px}.workflow-card h3{font-size:15px}.section-heading{align-items:flex-start;flex-direction:column;gap:8px}.section-heading h2{font-size:20px}.bottom-callout{align-items:flex-start;flex-direction:column}.panel{padding:22px}.page-heading h1{font-size:28px}.heading-row{align-items:flex-start;flex-direction:column}.job-heading{align-items:flex-start;gap:12px}.job-heading h2{font-size:16px}.result-grid{grid-template-columns:1fr}.roadmap-row{padding:20px;gap:14px;align-items:flex-start;flex-wrap:wrap}.roadmap-row>div{flex:1;min-width:190px}.roadmap-row>.pill{margin-left:49px}.app-footer{flex-direction:column;gap:5px}.desktop-only{display:none}.user-row{gap:10px}}
@media(max-width:800px){.sidebar{visibility:hidden}.menu-open .sidebar{visibility:visible}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.exam-create-panel,.exam-list-panel,.exam-detail-panel{margin-bottom:22px}.exam-create-panel .eyebrow,.exam-detail-heading .eyebrow{margin-bottom:7px}.exam-create-panel h2,.exam-list-panel h2{margin-bottom:8px}.exam-create-panel>p{max-width:780px}.exam-create-form{display:grid;grid-template-columns:2fr 1.4fr 1fr 1fr auto;align-items:end;gap:16px;margin-top:22px}.exam-create-form label{display:grid;gap:7px;font-size:13px;font-weight:600}.exam-create-form label small{font-weight:400;line-height:1.5}.exam-create-form select{font-size:13px}.exam-create-form button{white-space:nowrap}.difficulty-hard{background:#fff1d6;color:#875400}.exam-list-panel .section-heading{margin:0 0 18px}.exam-list{border-top:1px solid var(--line)}.exam-list-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:17px 4px;border-bottom:1px solid var(--line)}.exam-list-row:hover{background:#fafbf7}.exam-list-row strong,.exam-list-row small{display:block}.exam-list-row strong{font-size:14px}.exam-list-row small{margin-top:4px;color:var(--muted);font-size:11px}.exam-detail-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}.exam-detail-heading h2{margin:5px 0;font-size:22px}.exam-detail-heading p{margin:0}.exam-summary{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 18px}.exam-summary span{padding:7px 12px;border-radius:50px;background:var(--paper);font-size:12px}.exam-section{margin-top:26px;padding-top:23px;border-top:1px solid var(--line)}.exam-section-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:15px}.exam-section-heading .eyebrow{margin:0 0 4px}.exam-section-heading h3{margin:0}.exam-question-list{display:grid;gap:8px}.exam-question{border:1px solid var(--line);border-radius:10px;background:#fff}.exam-question summary{padding:12px 15px;cursor:pointer;font-weight:600;font-size:13px}.exam-question-body{padding:0 18px 14px;font-size:13px}.exam-question-body ol{padding-left:25px}.exam-question-body li{padding:3px 6px;border-radius:5px}.exam-question-body li.is-answer{background:#e7f3e9;color:#245b3d}.exam-question-body p{margin:8px 0 0}.exam-passage{margin:16px 0 22px;padding:18px;border-radius:12px;background:var(--paper)}.exam-passage h4{font-size:15px;margin:0 0 10px}.passage-text{white-space:normal;font-size:14px;line-height:1.8}.exam-passage>.small{margin:10px 0 14px}.exam-passage .exam-question{background:white}
@media(max-width:1000px){.exam-create-form{grid-template-columns:repeat(2,minmax(0,1fr))}.exam-create-form button{grid-column:1/-1;justify-self:start}}
@media(max-width:540px){.exam-create-form{grid-template-columns:1fr}.exam-create-form button{grid-column:auto;width:100%}.exam-list-row{align-items:flex-start;flex-direction:column}.exam-detail-heading{align-items:flex-start;flex-direction:column}.exam-section-heading{align-items:flex-start;flex-direction:column}.exam-summary{gap:6px}.exam-passage{padding:14px}}
.exam-question summary .pill{margin-left:7px}.exam-question-edit,.exam-question-review{display:grid;gap:13px;margin-top:16px;padding-top:15px;border-top:1px solid var(--line)}.exam-question-edit label,.exam-question-review label{display:grid;gap:6px;font-size:12px;font-weight:600}.exam-question-edit input,.exam-question-edit select,.exam-question-review textarea{font-size:13px}.exam-question-edit input[readonly]{background:var(--paper);color:var(--muted)}.exam-question-edit fieldset{margin:0;padding:12px;border:1px solid var(--line);border-radius:9px}.exam-question-edit legend{padding:0 5px;color:var(--muted);font-size:12px}.exam-option-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.exam-option-editor label{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:8px;color:var(--muted)}.exam-question-review>div{display:flex;flex-wrap:wrap;gap:8px}.exam-question-review .reject-review{color:var(--danger)}.exam-question-review .reject-review:hover{background:#fff1f3}
@media(max-width:540px){.exam-option-editor{grid-template-columns:1fr}.exam-question-review>div{align-items:stretch;flex-direction:column}.exam-question-review>div .button{width:100%}}

.exam-create-form .reading-settings{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:14px;margin:4px 0 0;padding:18px;border:1px solid var(--line);border-radius:12px;background:#fbfcf8}
.exam-create-form .reading-settings[hidden]{display:none}
.reading-settings>legend{padding:0 7px;font-size:14px;font-weight:700}
.reading-settings>label{align-self:start}
.reading-range-card{display:grid;gap:10px;padding:13px;border:1px solid var(--line);border-radius:9px;background:white}
.reading-range-card>strong{font-size:12px;line-height:1.5}
.word-range-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.word-range-fields label{font-size:11px!important;font-weight:500!important}
.word-range-fields input,.reading-settings input{min-height:42px;padding:8px 10px;font-size:13px}
.reading-settings-note{grid-column:1/-1;margin:0;font-weight:400}
@media(max-width:1000px){.exam-create-form .reading-settings{grid-template-columns:repeat(2,minmax(0,1fr))}.reading-settings-note{grid-column:1/-1}}
@media(max-width:540px){.exam-create-form .reading-settings{grid-template-columns:1fr;padding:14px}.reading-settings-note{grid-column:auto}.word-range-fields{grid-template-columns:1fr 1fr}}
.exam-picture-preview{margin:12px 0 16px;max-width:360px}.exam-picture-preview img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border:1px solid var(--line);border-radius:12px;background:var(--paper)}.exam-picture-preview figcaption{margin-top:7px;color:var(--muted);font-size:11px}.exam-translation-prompt{padding:10px 12px;border-left:3px solid var(--accent);background:var(--paper)}.cloze-gap{padding:0 4px;color:var(--ink);white-space:nowrap}
.exam-review-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:18px 0;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}.exam-review-toolbar>div:first-child{display:grid;gap:3px;margin-right:auto}.exam-review-controls,.exam-review-toolbar form{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.exam-review-toolbar form .small{max-width:220px}
@media(max-width:540px){.exam-review-toolbar>div:first-child{margin-right:0}.exam-review-controls,.exam-review-toolbar form{width:100%}.exam-review-controls .button,.exam-review-toolbar form .button{flex:1}.exam-review-toolbar form .small{max-width:none}}

/* Exam draft form: separate core choices, reading controls, and final action. */
.exam-create-form{grid-template-columns:minmax(0,1fr);align-items:stretch;gap:18px}
.exam-create-form fieldset{min-width:0}
.exam-create-form .exam-basic-settings{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.4fr) minmax(130px,.8fr) minmax(170px,1fr);align-items:end;gap:14px 16px;margin:0;padding:18px;border:1px solid var(--line);border-radius:12px;background:#fff}
.exam-create-form .exam-basic-settings>legend{padding:0 7px;font-size:14px;font-weight:700}
.exam-create-form .exam-basic-settings>label{min-width:0}
.exam-basic-note{grid-column:1/-1;margin:0;font-weight:400}
.exam-create-form .reading-settings{grid-column:auto;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:14px;margin:0;padding:18px}
.exam-create-form .reading-settings>legend{padding:0 7px;font-size:14px;font-weight:700}
.exam-create-form .reading-settings>label{min-width:0;align-self:start}
.reading-range-card{min-width:0}
.exam-create-actions{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:2px}
.exam-create-actions>p{max-width:900px;margin:0}
.exam-create-actions>button{flex:none;grid-column:auto;justify-self:auto;width:auto}
@media(max-width:1100px){
  .exam-create-form .exam-basic-settings{grid-template-columns:repeat(2,minmax(0,1fr))}
  .exam-create-form .exam-basic-settings>label:first-of-type,.exam-basic-note{grid-column:1/-1}
  .exam-create-form .reading-settings{grid-template-columns:repeat(2,minmax(0,1fr))}
  .reading-settings-note{grid-column:1/-1}
}
@media(max-width:700px){
  .exam-create-form{gap:14px}
  .exam-create-form .exam-basic-settings,.exam-create-form .reading-settings{grid-template-columns:minmax(0,1fr);padding:15px}
  .exam-create-form .exam-basic-settings>label:first-of-type,.exam-basic-note,.reading-settings-note{grid-column:auto}
  .exam-create-actions{align-items:stretch;flex-direction:column;gap:14px}
  .exam-create-actions>button{width:100%}
}
.exam-create-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.exam-create-heading.is-compact{margin-bottom:0}
.exam-create-heading .eyebrow{margin-bottom:7px}
.exam-create-heading h2{margin:0}
.exam-create-heading>.button{flex:none;white-space:nowrap}
.exam-create-dialog{width:min(1080px,calc(100vw - 36px));max-width:none;max-height:calc(100dvh - 36px);margin:auto;padding:26px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);box-shadow:0 24px 80px rgba(12,32,27,.24);overflow:auto}
.exam-create-dialog::backdrop{background:rgba(15,35,31,.58);backdrop-filter:blur(2px)}
.exam-create-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.exam-create-dialog-heading h2{margin:3px 0 5px;font-size:22px}
.exam-create-dialog-heading p{margin:0}
.exam-create-dialog .exam-create-form{margin-top:18px}
.exam-detail-actions,.exam-list-actions{display:flex;align-items:center;gap:12px;flex:none}
.exam-list-row{align-items:center}
.exam-list-link{flex:1;min-width:0;color:inherit}
.exam-list-link>span{display:block}
.exam-list-actions form,.exam-detail-actions form{margin:0}
.danger-button{color:var(--danger)!important}
.danger-button:hover{background:#fff1f3!important}
@media(max-width:700px){
  .exam-create-heading{align-items:stretch;flex-direction:column;gap:14px}
  .exam-create-heading>.button{width:100%}
  .exam-create-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:17px 14px;border-radius:14px}
  .exam-create-dialog-heading{gap:12px}
  .exam-create-dialog-heading h2{font-size:19px}
  .exam-detail-actions{align-self:stretch;justify-content:space-between}
}
@media(max-width:540px){
  .exam-list-row{align-items:flex-start;flex-direction:column;gap:10px}
  .exam-list-actions{width:100%;justify-content:space-between}
}
.reading-range-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.reading-range-heading>strong{font-size:12px;line-height:1.6}
.exam-create-form .reading-target-count{display:grid;grid-template-columns:minmax(0,1fr) 88px;align-items:center;gap:8px;font-size:11px;font-weight:600}
.exam-create-form .reading-topic-add{display:grid;place-items:center;flex:none;width:32px;min-height:32px;padding:0;border:1px solid var(--line);border-radius:7px;background:var(--mint);color:var(--green-dark);font-size:21px;line-height:1;cursor:pointer}
.exam-create-form .reading-topic-add:hover{background:#dcece1;border-color:#b6cfc0}
.exam-create-form .reading-topic-add:disabled{opacity:.45;cursor:default}
.reading-topic-list{display:grid;gap:10px;min-width:0}
.reading-topic-list:empty{display:none}
.reading-topic-row{display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:start;gap:6px}
.exam-create-form .reading-topic-row label{min-width:0;font-size:11px;gap:6px}
.reading-topic-row textarea{display:block;width:100%;min-width:0;min-height:72px;resize:vertical;padding:9px;border:1px solid #cbd5ca;border-radius:7px;background:white;color:var(--ink);font:inherit;font-size:12px;line-height:1.6}
.exam-create-form .reading-topic-remove{width:28px;min-height:28px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:20px;line-height:1;cursor:pointer}
.exam-create-form .reading-topic-remove:hover{background:#fff1f3;color:var(--danger)}
.reading-topic-hint{margin:0;font-size:11px;line-height:1.6;font-weight:400}
.exam-export-panel { margin: 24px 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fafbf8; }
.exam-export-panel h3 { margin: 0 0 8px; }
.exam-export-panel .section-heading { align-items: flex-start; gap: 20px; }
.exam-export-panel .section-heading p { margin: 0; max-width: 680px; }
.exam-export-panel form { flex-shrink: 0; }
.admin-test-export { display: grid; justify-items: end; gap: 10px; max-width: 410px; }
.admin-test-export .notice { margin: 0; }
.exam-export-version strong .status { margin-left: 7px; vertical-align: middle; }
.exam-export-version { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.exam-export-version small { display: block; margin-top: 5px; }
.exam-export-downloads { display: flex; flex-wrap: wrap; gap: 16px 28px; }
.exam-export-downloads > div { display: flex; align-items: center; gap: 10px; }
.exam-export-downloads .button { padding: 10px 15px; min-height: 40px; }
.exam-export-history { margin-top: 18px; }
.exam-export-history > summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 6px 0; }
@media (max-width: 700px) { .exam-export-panel { padding: 16px; } .exam-export-panel .section-heading { flex-direction: column; align-items: stretch; } .exam-export-panel form .button { width: 100%; } .admin-test-export { max-width: none; justify-items: stretch; } }
.exam-picture-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px;margin:12px 0 18px}
.exam-picture-actions form{display:grid;align-content:start;gap:9px;min-width:0;padding:13px;border:1px solid var(--line);border-radius:10px;background:#fafbf8}
.exam-picture-actions label{display:grid;gap:7px;font-size:12px;font-weight:600}
.exam-picture-actions input[type=file]{display:block;width:100%;min-width:0;font-size:12px}
.exam-picture-actions small{font-size:11px;line-height:1.6}
.exam-picture-actions button{justify-self:start}
.exam-picture-actions button:disabled{opacity:.55;cursor:default}
.exam-review-votes{margin:12px 0;padding:11px 13px;border:1px solid var(--line);border-radius:9px;background:#f7f8f3;font-size:12px}
.exam-review-votes ul{display:flex;flex-wrap:wrap;gap:6px 18px;margin:7px 0 0;padding-left:19px;color:var(--muted)}
.exam-review-toolbar form{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
@media(max-width:600px){.exam-picture-actions{grid-template-columns:minmax(0,1fr)}.exam-picture-actions button{width:100%}.exam-review-votes ul{display:block}}
.exam-content-regenerate{margin-top:14px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}.exam-content-regenerate>summary{cursor:pointer;color:var(--green-dark);font-size:13px;font-weight:700}.exam-content-regenerate form{display:grid;gap:10px;margin-top:12px}.exam-content-regenerate label{display:grid;gap:6px;font-size:12px;font-weight:600}.exam-content-regenerate textarea{font-size:13px}.exam-content-regenerate button{justify-self:start}.exam-passage-regenerate{margin:12px 0}
.exam-question-filter{display:grid;gap:3px;min-width:150px;font-size:11px;font-weight:650}.exam-question-filter select{min-height:38px;padding:6px 10px;font-size:12px}.exam-review-toolbar>[data-question-filter-count]{white-space:nowrap}.exam-repetition-settings{padding:14px 16px;border:1px solid var(--line);border-radius:11px;background:#fbfcf8}.exam-repetition-settings>summary{cursor:pointer;color:var(--green-dark);font-weight:700;font-size:14px}.exam-repetition-body{display:grid;gap:12px;margin-top:13px}.exam-repetition-body>p{margin:0}.exam-repetition-scopes{display:flex;flex-wrap:wrap;gap:10px 20px}.exam-repetition-scopes label{display:flex!important;align-items:center;gap:8px!important;font-size:12px!important;font-weight:500!important}.exam-repetition-scopes input,.exam-repetition-candidate input{width:17px;min-height:17px;flex:none;accent-color:var(--green)}.exam-repetition-heading{display:flex;justify-content:space-between;gap:12px;padding-top:4px}.exam-repetition-candidates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:245px;overflow:auto;padding:2px}.exam-repetition-candidate{display:flex!important;align-items:flex-start;gap:10px!important;min-width:0;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:12px!important;font-weight:400!important;cursor:pointer}.exam-repetition-candidate[hidden]{display:none!important}.exam-repetition-candidate span{min-width:0}.exam-repetition-candidate strong,.exam-repetition-candidate small{display:block;overflow-wrap:anywhere}.exam-repetition-candidate small{margin-top:3px;color:var(--muted);font-size:10px;line-height:1.5}.exam-repetition-candidate input:disabled{opacity:.45;cursor:not-allowed}.exam-repetition-candidate:has(input:checked){border-color:#9bbda9;background:#f1f7f1}.exam-question-filter-empty{margin:0 0 14px;padding:10px 12px;border-radius:8px;background:#fff8e9;color:#77511a}
@media(max-width:600px){.exam-question-filter{width:100%}.exam-review-toolbar>[data-question-filter-count]{width:100%}.exam-repetition-candidates{grid-template-columns:minmax(0,1fr)}.exam-repetition-scopes{display:grid}.exam-repetition-heading{align-items:flex-start;flex-direction:column}}
.exam-draft-filter{display:grid;gap:3px;min-width:190px;font-size:11px;font-weight:650}.exam-draft-filter select{min-height:38px;padding:6px 10px;font-size:12px}.exam-review-counts{color:var(--green-dark)!important}.exam-list-row[hidden],.exam-question[hidden],.exam-section[hidden],.exam-passage[hidden]{display:none!important}
.exam-target-word-settings,.exam-question-feedback,.exam-revision-history{margin-top:14px;padding:13px 15px;border:1px solid var(--line);border-radius:10px;background:#fbfcf8}.exam-target-word-settings>summary,.exam-revision-history>summary{cursor:pointer;color:var(--green-dark);font-size:13px;font-weight:700}.exam-target-word-body{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:13px}.exam-target-word-body>p{grid-column:1/-1;margin:0}.exam-target-word-body label,.exam-question-feedback-form>label{display:grid;gap:6px;font-size:12px;font-weight:650}.exam-target-word-body textarea,.exam-question-feedback-form textarea{font-size:13px;resize:vertical}.exam-question-feedback h4{margin:0 0 8px;font-size:13px}.exam-feedback-tags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 9px}.feedback-tag-pill{background:#e8f0f6;color:#33566a}.exam-feedback-comments{display:grid;gap:8px;margin:9px 0;padding:0;list-style:none}.exam-feedback-comments li{padding:9px 11px;border-radius:8px;background:white;border:1px solid var(--line);font-size:12px}.exam-feedback-comments li>strong{margin-right:9px}.exam-feedback-comments time,.exam-revision-history small{color:var(--muted);font-size:10px}.exam-feedback-comments p{margin:5px 0 0;white-space:normal;overflow-wrap:anywhere}.exam-question-feedback-form{display:grid;gap:10px;margin-top:10px}.exam-feedback-tag-picker{display:flex;flex-wrap:wrap;gap:7px 14px;margin:0;padding:9px 10px;border:1px solid var(--line);border-radius:8px}.exam-feedback-tag-picker legend{padding:0 5px;color:var(--muted);font-size:11px}.exam-feedback-tag-picker label{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:500;cursor:pointer}.exam-feedback-tag-picker input{width:15px;min-height:15px;accent-color:var(--green)}.exam-question-feedback-form button{justify-self:start}.exam-revision-history ol{display:grid;gap:7px;margin:10px 0 0;padding:0;list-style:none}.exam-revision-history>ol>li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 10px;border:1px solid var(--line);border-radius:8px;background:white}.exam-revision-history>ol>li>div{display:grid;gap:3px;min-width:0}.exam-revision-history li strong{font-size:12px}.exam-revision-history>ol>li>form{margin:0;flex:none}.exam-revision-history .text-button{padding:6px 8px;font-size:11px}
.exam-revision-preview{flex:1;min-width:150px}.exam-revision-preview>summary{cursor:pointer;color:var(--green-dark);font-size:11px;font-weight:650}.exam-revision-preview>p{margin:7px 0;font-size:11px;line-height:1.65}.exam-revision-preview h5{margin:8px 0 4px}.exam-revision-preview ol{display:block;margin:4px 0 4px 18px;padding:0;list-style:upper-alpha}.exam-revision-preview ol li{display:list-item;padding:2px;border:0;border-radius:0;font-size:11px}.exam-revision-preview[open]{max-height:300px;overflow:auto}
@media(max-width:600px){.exam-target-word-body{grid-template-columns:1fr}.exam-target-word-body>p{grid-column:auto}.exam-feedback-tag-picker{display:grid;grid-template-columns:1fr 1fr}.exam-revision-history>ol>li{align-items:flex-start;flex-direction:column}}
@media(max-width:700px){.exam-draft-filter{width:100%}}
.question-bank-panel{display:grid;gap:24px}.question-bank-filters{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,.7fr) auto auto;align-items:end;gap:12px}.question-bank-filters label{display:grid;gap:6px;font-size:12px;font-weight:650}.question-bank-filters select{min-height:42px}.question-bank-compose-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border:1px solid #c6ddce;border-radius:12px;background:#eff6ef}.question-bank-compose-bar p{margin:4px 0 0}.question-bank-group{display:grid;gap:14px}.question-bank-group-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:10px;border-bottom:1px solid var(--line)}.question-bank-group-heading .eyebrow{margin-bottom:4px}.question-bank-group-heading h2{margin-bottom:3px}.question-bank-group-heading p{margin-bottom:0}.question-bank-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.question-bank-card{display:flex;flex-direction:column;gap:12px;min-width:0;padding:18px;border:1px solid var(--line);border-radius:12px;background:#fff}.question-bank-card-heading{display:grid;gap:7px}.question-bank-card-heading h3{margin:0;overflow-wrap:anywhere}.question-bank-card-heading p{margin:0}.question-bank-select{display:flex;align-items:center;gap:8px;width:max-content;font-size:12px;font-weight:650;color:var(--green-dark);cursor:pointer}.question-bank-select input{width:17px;min-height:17px;margin:0;accent-color:var(--green)}.question-bank-passage-text{margin:0;padding:13px;border-radius:9px;background:#f6f7f2;white-space:normal;overflow-wrap:anywhere}.question-bank-question-list{display:grid;gap:11px;margin:0;padding-left:24px}.question-bank-question-list>li{padding-left:3px}.question-bank-question-list>li>strong{display:block;margin-bottom:7px}.question-bank-question-list ol,.question-bank-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 16px;margin:6px 0 0;padding-left:24px}.question-bank-question-list .is-answer,.question-bank-options .is-answer{color:var(--green-dark);font-weight:700}.question-bank-image{width:min(100%,300px);max-height:220px;object-fit:contain;border:1px solid var(--line);border-radius:9px;background:#f6f7f2}.question-bank-remove{display:flex;justify-content:flex-end;margin-top:auto;padding-top:8px;border-top:1px solid var(--line)}.question-bank-remove button{min-height:34px}.exam-question-favorite,.exam-passage-favorite{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:#fbfcf8}.exam-question-favorite{margin:12px 0}.exam-passage-favorite{margin:12px 0}.exam-question-favorite .button,.exam-passage-favorite .button{min-height:38px}.exam-passage-favorite span,.exam-question-favorite span{font-size:12px}
@media(max-width:900px){.question-bank-cards{grid-template-columns:minmax(0,1fr)}}@media(max-width:620px){.question-bank-filters{grid-template-columns:1fr 1fr}.question-bank-filters label:first-of-type{grid-column:1/-1}.question-bank-filters .button{width:100%}.question-bank-compose-bar,.question-bank-group-heading{align-items:stretch;flex-direction:column}.question-bank-compose-bar .button{width:100%}.question-bank-question-list ol,.question-bank-options{grid-template-columns:minmax(0,1fr)}}
