:root{--paper:#f1f5f4;--surface:#ffffff;--ink:#172f32;--muted:#607579;--green:#0b5754;--pale:#e6f2ef;--line:#dce6e5;--danger:#ad4143;--delete-action:#bd302d;--warn:#8c5a13;--body:'Noto Sans SC','PingFang SC','Microsoft YaHei UI','Microsoft YaHei',system-ui,sans-serif;font-family:var(--body);font-size:100%;color:var(--ink);background:var(--paper);font-synthesis:none}
.session-cover{position:fixed;inset:0;z-index:200;background:var(--paper);display:grid;place-items:center;padding:24px}.session-cover-panel{max-width:390px;width:100%;text-align:center}.session-cover-panel .brand{justify-content:center}.session-cover-panel p{margin:24px 0;color:var(--muted)}.session-cover-panel .spinner{display:inline-block}.read-refresh-note{font-size:.875rem;color:var(--muted);background:var(--pale);padding:10px 14px;margin-bottom:14px;border-radius:10px}
*{box-sizing:border-box}body{margin:0;font-size:1rem;line-height:1.6}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button{transition:background .15s,transform .12s}button:active:not(:disabled){transform:translateY(1px)}a{color:var(--green)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #80a798;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:1.625rem;line-height:1.4;font-weight:600}h2{font-size:1.25rem;line-height:1.5;font-weight:600}h3{font-size:1.0625rem;line-height:1.5;font-weight:600}img{max-width:100%}svg{display:block}.icon{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex:none}.muted,small{color:var(--muted);font-size:.875rem;line-height:1.65}.eyebrow{font-size:.875rem;font-weight:500;color:var(--green)}.brand{display:flex;align-items:center;gap:10px;font-size:1.25rem;font-weight:600}.brand-mark{width:34px;height:38px;border-radius:11px;display:grid;place-items:center;background:var(--pale);color:var(--green)}.brand-mark .icon{width:23px;height:23px}.boot{padding:50px 24px;max-width:460px;margin:auto}.boot p{margin-top:18px;color:var(--muted)}
.button{border:1px solid transparent;background:var(--green);color:#fff;min-height:50px;padding:11px 18px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:.9375rem;font-weight:500;line-height:1.6;text-decoration:none}.button:hover:not(:disabled){background:#084944}.button.secondary{background:var(--surface);border-color:#bfd2cf;color:var(--green)}.button.secondary:hover:not(:disabled){background:var(--pale)}.button.subtle{background:transparent;color:var(--green);border-color:transparent}.button.subtle:hover:not(:disabled){background:var(--pale)}.button.danger{background:#fff9f7;border-color:#ddb9b1;color:var(--danger)}.button.small{min-height:44px;padding:9px 12px;font-size:.875rem}.button.full{width:100%}.icon-button{width:44px;height:44px;border:0;border-radius:50%;display:grid;place-items:center;background:var(--pale);color:var(--green);flex:none}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.actions>*{flex-shrink:0}.split{display:flex;align-items:center;justify-content:space-between;gap:12px}.split>div{min-width:0}.stack{display:grid;gap:16px}.spaced{margin-top:22px}.field{display:grid;gap:7px;font-size:.875rem;font-weight:500;min-width:0}.field small{font-weight:400}.input,input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{background:var(--surface);border:1px solid #bfd2cf;border-radius:12px;min-height:50px;padding:11px 13px;font-size:.9375rem;line-height:1.6;width:100%;min-width:0}textarea{resize:vertical;min-height:120px}input::placeholder,textarea::placeholder{color:#747d72;font-weight:400}input[type=checkbox],input[type=radio]{accent-color:var(--green);width:20px;height:20px;flex:none;margin:0}.check{display:flex;align-items:center;gap:10px;min-height:44px;font-size:.9375rem;cursor:pointer}.check.compact{min-height:44px}.fields-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.fields-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.error{background:#fff0eb;color:#8b342a;border-radius:12px;padding:12px 14px;font-size:.875rem;line-height:1.7}.notice{background:var(--pale);color:#45594b;padding:13px 15px;border-radius:12px;font-size:.875rem;line-height:1.7}.notice.warning{background:#f2eddb;color:var(--warn)}.empty{text-align:center;padding:36px 18px;color:var(--muted);font-size:.9375rem;line-height:1.8}.empty h3{color:var(--ink);margin-bottom:7px}.empty .button{margin-top:17px}.loading{padding:25px 4px;font-size:.9375rem;color:var(--muted)}.spinner{display:inline-block;width:16px;height:16px;border:2px solid #a3b7a8;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite;vertical-align:middle;margin-right:8px}@keyframes spin{to{transform:rotate(360deg)}}[hidden]{display:none!important}
.login-page{min-height:100svh;display:grid;place-items:center;padding:32px 20px}.login-panel{width:min(100%,430px);background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:30px}.login-panel .brand{margin-bottom:32px}.login-panel h1{font-size:1.875rem;margin-bottom:8px}.login-panel .role-tabs{margin:28px 0 24px}.role-tabs{display:flex;background:var(--pale);padding:5px;border-radius:14px;gap:4px}.role-tabs button{flex:1;min-height:46px;padding:9px 10px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-size:.9375rem}.role-tabs button.active{background:var(--surface);color:var(--green);font-weight:600}.login-footer{text-align:center;margin-top:23px}.login-note{margin-top:18px}.login-panel .form-error:empty{display:none}
.mobile-shell{max-width:480px;margin:0 auto;min-height:100svh;background:var(--paper)}.brandbar{display:flex;align-items:center;justify-content:space-between;padding:19px 22px 12px;gap:12px}.avatar{width:44px;height:44px;border-radius:50%;background:#e0eeea;display:grid;place-items:center;font-weight:600;color:var(--green);border:0;flex:none;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.mobile-main{padding:16px 22px calc(7.25rem + env(safe-area-inset-bottom))}.page-heading{margin-bottom:24px}.page-heading p{margin-top:7px;font-size:.875rem;color:var(--muted)}.page-heading.split{align-items:flex-start}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,480px);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:9px 10px calc(10px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);z-index:20}.bottom-nav button{background:transparent;border:0;min-height:57px;color:var(--muted);border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:.875rem;padding:5px 3px}.bottom-nav button.active{background:#e6f2ef;color:var(--green);font-weight:500}.bottom-nav.student-nav{grid-template-columns:repeat(3,minmax(0,1fr))}.student-context{border:1px solid #cbdedb;background:#e6f2ef;border-radius:18px;padding:17px;margin-bottom:21px}.student-context .eyebrow{display:flex;align-items:center;gap:7px;margin-bottom:10px}.student-context .student-name{font-size:1.125rem;font-weight:600;overflow-wrap:anywhere}.student-context .student-data{font-size:.875rem;color:#496b6b;margin-top:3px}.student-context .select-student{width:100%;margin-top:14px;background:var(--surface)}.student-context .select-student:hover{background:#fff}.student-context .avatar{background:#ffffff}.selected-line{display:flex;align-items:center;gap:12px}.selected-line>div:last-child{min-width:0}.student-context.unselected{border:1px solid #b8d1ca}.student-context.unselected h2{font-size:1.25rem}.student-context.unselected p{margin-top:5px;font-size:.875rem;color:#496b6b}.work-surface{background:var(--surface);border:1px solid #dce6e5;border-radius:20px;padding:20px;margin-top:20px}.work-surface h2{margin-bottom:8px}.work-surface>.muted{margin-bottom:18px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:25px 0 10px}.section-head h2{font-size:1.125rem}.step-label{font-size:.875rem;color:var(--muted);font-weight:500;margin-bottom:12px}.upload-input{position:absolute;opacity:0;width:1px;height:1px;overflow:hidden}.upload-zone{padding:22px 15px;background:#edf4f2;border:1px dashed #9aaf93;border-radius:14px;text-align:center;cursor:pointer;display:grid;justify-items:center;gap:8px}.upload-zone .icon{width:30px;height:30px}.upload-zone strong{font-weight:500}.upload-zone small{max-width:270px}.upload-zone:focus-within{outline:3px solid #80a798;outline-offset:3px}.image-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.image-tile{display:block;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--pale);text-decoration:none}.image-tile img{width:100%;height:90px;object-fit:cover;display:block}.image-tile small{display:block;padding:5px 7px;font-size:.875rem}.batch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:14px 0}.batch-row strong{font-size:.9375rem;font-weight:500;overflow-wrap:anywhere}.batch-row small{display:block;margin-top:3px}.status{display:inline-flex;align-items:center;padding:3px 7px;border-radius:6px;background:var(--pale);color:var(--green);font-size:.875rem;white-space:nowrap}.status.warn{background:#f3ead3;color:var(--warn)}.status.failed{background:#fae8e2;color:var(--danger)}.review-toolbar{position:sticky;top:0;z-index:5;background:var(--paper);padding:12px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}.candidate{padding:20px 0;border-bottom:1px solid var(--line)}.candidate-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px}.candidate p{font-size:1rem;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.candidate .actions{margin-top:10px}.candidate .notice{margin:12px 0}.candidate .check{font-weight:500}.tag{display:inline-block;font-size:.875rem;line-height:1.65;padding:3px 7px;border-radius:6px;background:#e6f2ef;color:#355f5b;margin-right:6px;margin-top:5px}.question-list{margin-top:10px}.question-row{display:flex;align-items:flex-start;gap:12px;padding:21px 0;border-bottom:1px solid var(--line)}.question-row>.check{width:32px;flex:none;align-items:flex-start;padding-top:4px}.question-body{min-width:0;flex:1}.question-body .q-text{font-size:1rem;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0}.question-body .q-meta{font-size:.875rem;line-height:1.7;color:var(--muted)}.question-body .actions{margin-top:12px}.question-figure{max-width:100%;max-height:220px;object-fit:contain;display:block;margin:10px 0;border:1px solid var(--line);border-radius:8px}.selection-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.selection-bar .button{white-space:nowrap}.filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}.filters .wide{grid-column:1/-1}.filters input,.filters select{min-height:46px;font-size:.875rem}.filter-toggle{margin-top:12px}.filter-detail{padding:0}.filter-detail summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;font-size:.875rem;color:var(--green);cursor:pointer;list-style:none}.filter-detail summary:after{content:'＋';font-size:1.2rem}.filter-detail[open] summary:after{content:'−'}.pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:22px}.pagination small{white-space:nowrap}.report-cover{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:23px 20px;margin-top:24px}.report-cover .month{font-size:2.5rem;line-height:1.2;color:#668363;font-weight:500;margin:7px 0 14px}.report-cover h2{font-size:1.5rem;line-height:1.5;margin-bottom:12px}.report-section{margin-top:25px}.report-section h3{font-size:1.1875rem;margin-bottom:10px}.report-section p,.report-section li{font-size:1rem;line-height:1.9}.report-section ul{padding-left:22px;margin:10px 0}.parent-note{font-size:1.0625rem;line-height:1.9;background:#e6f2ef;border-radius:14px;padding:20px;margin-top:25px}.report-history{margin-top:25px}.report-history summary{min-height:44px;font-size:.9375rem;font-weight:500;cursor:pointer}.report-row{padding:13px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}.report-row small{display:block}.profile-panel{padding:12px 0 25px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:15px}.profile-panel .avatar{width:64px;height:64px;font-size:1.5rem}.profile-panel h2{font-size:1.25rem}.settings-row{min-height:70px;width:100%;background:transparent;border:0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;text-align:left;gap:12px;padding:15px 1px;font-size:1rem}.settings-row small{display:block;margin-top:3px}.settings-row>.icon{color:var(--muted)}
.admin-shell{min-height:100svh;display:grid;grid-template-columns:220px minmax(0,1fr)}.sidebar{background:var(--surface);border-right:1px solid var(--line);padding:29px 20px;position:sticky;top:0;height:100svh;display:flex;flex-direction:column}.sidebar .brand{padding:0 6px;flex-wrap:wrap}.sidebar .brand small{width:100%;font-weight:400;padding-left:44px;margin-top:-3px}.sidebar nav{display:grid;gap:7px;margin-top:38px}.sidebar nav button{display:flex;align-items:center;gap:12px;min-height:49px;background:transparent;border:0;border-radius:12px;text-align:left;font-size:.9375rem;padding:12px 15px;color:var(--muted)}.sidebar nav button.active{background:#e6f2ef;color:var(--green);font-weight:600}.sidebar-foot{margin-top:auto;border-top:1px solid var(--line);padding:20px 5px 0;font-size:.875rem;color:var(--muted)}.sidebar-foot .button{margin-top:10px;width:100%}.admin-main{min-width:0}.admin-top{padding:24px 34px 8px;display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:.875rem;gap:15px}.admin-content{padding:23px 34px 40px;max-width:1600px;margin:auto}.admin-content>.page-heading h1{font-size:1.75rem}.admin-surface{border:1px solid var(--line);border-radius:18px;background:var(--surface);padding:22px}.admin-content .student-context{max-width:none}.admin-content .student-context .select-student{width:auto;margin-top:0}.admin-content .student-context .student-context-body{display:flex;align-items:center;justify-content:space-between;gap:16px}.admin-filters{display:grid;grid-template-columns:minmax(220px,1.7fr) repeat(3,minmax(125px,1fr)) auto;gap:12px;align-items:end;margin:18px 0}.admin-filters .field{font-size:.875rem}.table-wrap{overflow:auto;border-radius:10px;min-width:0;margin-top:20px}table{width:100%;border-collapse:collapse;text-align:left;min-width:740px}th{background:#edf4f2;font-size:.875rem;line-height:1.6;font-weight:500;color:#536750;white-space:nowrap}td{font-size:.9375rem;line-height:1.7;border-bottom:1px solid var(--line)}th,td{padding:13px 12px}td strong{font-weight:500}td small{display:block}td .actions{gap:3px;flex-wrap:nowrap}td .button{white-space:nowrap}tbody tr:hover{background:#f6f9f8}.admin-content .filters{grid-template-columns:repeat(4,minmax(0,1fr))}.admin-content .filters .wide{grid-column:auto}.admin-content .filter-detail{margin-top:10px}.admin-content .question-body{max-width:900px}.admin-content .report-view{max-width:860px;margin:0 auto}.admin-content .report-cover{padding:28px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.service-config{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:24px}.service-config h2{margin-bottom:6px}.service-config>.muted{margin-bottom:22px}.config-subheading{margin:25px 0 12px}.usage-row{border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;padding:12px 0;font-size:.9375rem}.settings-footer{margin-top:24px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}.admin-content .filter-detail>.filters{margin-top:4px}.admin-content .selection-bar{margin-top:8px}.count-note{font-size:.875rem;color:var(--muted)}
dialog{border:1px solid #cbdedb;border-radius:20px;background:var(--surface);color:var(--ink);padding:0;width:min(620px,calc(100vw - 32px));max-height:calc(100svh - 40px);box-shadow:0 20px 70px #18382429;overflow:hidden}dialog::backdrop{background:#18332955;backdrop-filter:blur(2px)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 22px;border-bottom:1px solid var(--line)}.modal-head h2{font-size:1.25rem}.modal-body{padding:22px;max-height:calc(100svh - 126px);overflow:auto;overscroll-behavior:contain}.modal-body .modal-intro{margin-bottom:20px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.modal-actions .button{min-width:96px}.picker-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:16px;background:#edf4f2;border-radius:14px;margin-top:17px}.picker-filters .search-field{grid-column:1/-1}.picker-filters .field{font-size:.875rem}.picker-filters select{font-size:.875rem;padding-left:9px;padding-right:9px}.picker-count{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:13px 0 3px;font-size:.875rem;color:var(--muted)}.student-result{width:100%;background:transparent;border:0;border-bottom:1px solid var(--line);padding:15px 0;display:flex;align-items:center;gap:12px;text-align:left}.student-result:hover{background:#f1f6f5}.student-result .student-result-body{flex:1;min-width:0}.student-result strong{font-size:1rem;font-weight:500;overflow-wrap:anywhere}.student-result small{display:block;margin-top:2px}.student-result .icon{color:var(--green);width:19px}.subject-checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 8px}.subject-checks .check{font-size:.875rem}.form-section{margin-top:20px}.form-section>label{font-size:.875rem;font-weight:500}.sheet-error:empty{display:none}.candidate-preview{margin-top:14px;padding:16px;background:var(--paper);border-radius:12px;white-space:pre-wrap;line-height:1.9}.login-hint{color:var(--muted);font-size:.875rem}.progress-line{margin-top:14px;line-height:1.8;font-size:.875rem;color:var(--green)}.format-note{font-size:.875rem;line-height:1.65;color:var(--muted);margin-top:8px}#toast{position:fixed;left:50%;bottom:calc(6.5rem + env(safe-area-inset-bottom));transform:translate(-50%,12px);max-width:min(90vw,520px);z-index:100;background:#263e32;color:#fff;padding:12px 18px;border-radius:12px;font-size:.875rem;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s;box-shadow:0 4px 15px #263e321a}#toast.visible{opacity:1;transform:translate(-50%,0)}.katex-display{overflow-x:auto;overflow-y:hidden;max-width:100%}.question-body .katex,.candidate .katex{font-size:1.1em}
@media(min-width:600px){.mobile-shell{margin:24px auto;border:1px solid #dce6e5;border-radius:22px 22px 0 0;min-height:calc(100svh - 24px)}.bottom-nav{border-left:1px solid var(--line);border-right:1px solid var(--line)}body:has(.mobile-shell){background:#e7eeec}.mobile-main{min-height:calc(100svh - 130px)}}
@media(max-width:1100px){.admin-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-filters .field:first-child{grid-column:span 2}.settings-grid{grid-template-columns:1fr}.admin-content{padding:22px 25px 36px}.admin-top{padding-left:25px;padding-right:25px}.admin-shell{grid-template-columns:195px minmax(0,1fr)}.sidebar{padding-left:14px;padding-right:14px}}
@media(max-width:700px){.admin-shell{grid-template-columns:minmax(0,1fr)}.sidebar{position:static;height:auto;padding:16px 16px 9px;border-right:0;border-bottom:1px solid var(--line)}.sidebar .brand{font-size:1.125rem;flex-wrap:nowrap}.sidebar .brand small{width:auto;margin:0;padding:0;font-size:.875rem;flex:1;text-align:right}.sidebar .brand-mark{width:30px;height:34px}.sidebar nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:15px;gap:4px}.sidebar nav button{display:flex;flex-direction:column;justify-content:center;gap:5px;padding:8px 4px;min-height:62px;font-size:.875rem}.sidebar-foot{display:none}.admin-top{padding:14px 17px 0;font-size:.875rem}.admin-top .button{font-size:.875rem;min-height:44px;padding:8px}.admin-content{padding:19px 17px 30px}.admin-content>.page-heading h1{font-size:1.5625rem}.admin-surface{padding:16px 13px}.admin-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.admin-filters .field:first-child{grid-column:1/-1}.admin-filters .button{align-self:end}.admin-content .filters{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-content .student-context .student-context-body{display:block}.admin-content .student-context .select-student{width:100%;margin-top:14px}.service-config{padding:20px 16px}.admin-content .report-cover{padding:22px 18px}.settings-footer{display:grid}.table-wrap{margin-top:12px}.admin-content .page-heading.split{gap:9px}.admin-content .page-heading .button{padding:10px 12px;white-space:nowrap}.admin-content .page-heading .button .icon{display:none}.admin-content .page-heading p{font-size:.875rem}.login-page{padding:20px 16px}.login-panel{padding:27px 22px}}
@media(max-width:400px){.mobile-main{padding-left:18px;padding-right:18px}.brandbar{padding-left:18px;padding-right:18px}.student-context{padding:15px}.work-surface{padding:18px 16px}.modal-head{padding:15px 17px}.modal-body{padding:18px 16px}.picker-filters{padding:13px 11px;grid-template-columns:repeat(2,minmax(0,1fr))}.picker-filters .field:last-child{grid-column:1/-1}.picker-filters .field:last-child select{width:100%}.fields-3{grid-template-columns:1fr}.report-cover{padding:21px 17px}.button{padding-left:14px;padding-right:14px}.selection-bar{gap:8px}.selection-bar .button{padding-left:10px;padding-right:10px}.candidate-top{flex-wrap:wrap}.subject-checks{grid-template-columns:repeat(3,minmax(0,1fr))}.login-panel h1{font-size:1.625rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition:none!important;scroll-behavior:auto!important}}
.environment-note{font-size:.875rem;color:#64745f;padding:0 22px 7px;margin:0;line-height:1.6}.environment-note.admin-note{padding:0 34px;margin:8px 0 -8px}.environment-note.login-demo{padding:15px 0 0;text-align:center}
.context-compact .eyebrow{margin-bottom:9px}.context-compact .student-context-body{display:flex;align-items:center;justify-content:space-between;gap:9px}.context-compact .select-student{width:auto;margin:0;padding:10px 12px;min-height:46px;white-space:nowrap;font-size:.875rem}.context-compact .select-student .icon{display:none}.context-compact .student-name{font-size:1.0625rem}.context-compact .student-data{font-size:.875rem}.context-compact .selected-line{gap:9px;min-width:0}.context-compact .avatar{width:38px;height:38px}.picker-count .actions{gap:2px}.picker-count .button{padding:8px 10px}.picker-count .button .icon{width:17px;height:17px}
@media(max-width:700px){.admin-content .context-compact .student-context-body{display:flex}.admin-content .context-compact .select-student{width:auto;margin:0}.environment-note.admin-note{padding-left:17px}}
input::placeholder,textarea::placeholder{color:#6d756b}.student-data{overflow-wrap:anywhere}
.context-compact .student-context-body{flex-wrap:wrap}.context-compact .selected-line{flex:1 1 180px}.context-compact .select-student{flex:0 0 auto}
.question-source{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;margin-top:9px}.question-source .q-meta{flex:1 1 180px}.original-entry{padding:8px 10px;gap:6px;min-height:44px;flex:none}.original-entry .icon{width:18px;height:18px}.original-unavailable{font-size:.875rem;color:var(--muted);line-height:1.7;white-space:nowrap}
.original-dialog{width:min(860px,calc(100vw - 32px))!important}.original-dialog .modal-body{padding:18px 22px 20px}.original-meta>strong{font-size:1rem;font-weight:600}.original-meta>p{font-size:.9375rem;line-height:1.7;margin-top:3px;overflow-wrap:anywhere}.original-scope{display:flex;flex-direction:column;gap:3px;margin-top:12px;background:#edf4f2;border-radius:10px;padding:10px 12px;font-size:.875rem;line-height:1.65;color:#495c49}.original-scope strong{font-weight:500}.original-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px}.original-zoom,.original-pages{display:flex;align-items:center;gap:6px}.original-zoom>.button:first-child,.original-zoom>.button:nth-of-type(2),.original-pages>.button{width:44px;min-height:44px;padding:7px;font-size:1.125rem}.original-zoom>span{font-size:.875rem;color:var(--muted);min-width:42px;text-align:center}.original-zoom .button:last-child{font-size:.875rem;padding:9px 10px}.original-pages span{min-width:44px;font-size:.875rem;text-align:center;color:var(--muted)}.original-image-meta{font-size:.875rem;color:var(--muted);line-height:1.7;margin:12px 0 9px}.original-stage{width:100%;height:clamp(260px,48svh,500px);overflow:auto;border:1px solid #d1dacc;background:#e6f2ef;border-radius:12px;overscroll-behavior:contain;touch-action:pan-x pan-y;scrollbar-width:thin}.original-canvas{min-width:100%;min-height:100%;padding:12px;display:flex;align-items:center;justify-content:center;box-sizing:border-box}.original-canvas img{display:block;max-width:none;flex:none;background:white;user-select:none;-webkit-user-drag:none;box-shadow:0 2px 8px #263e320c}.original-stage.is-zoomed{cursor:grab}.original-stage.is-dragging{cursor:grabbing}.original-image-error{padding:20px 16px;text-align:center;font-size:.9375rem;line-height:1.8;max-width:450px}.original-image-error .button{margin-top:14px}.original-help{font-size:.875rem;color:var(--muted);line-height:1.7;margin-top:11px}
@media(max-width:600px){.original-dialog .modal-body{padding:16px}.original-toolbar{gap:9px}.original-stage{height:clamp(240px,42svh,390px)}.original-pages{margin-left:auto}.question-source .q-meta{flex-basis:145px}.original-dialog .modal-head{padding:15px 16px}}
@media(max-width:600px){.original-zoom>span{display:none}.original-zoom{gap:4px}.original-zoom .button:last-child{width:58px;padding:9px 5px}.original-pages{gap:4px}.original-pages span{min-width:33px}.original-toolbar{gap:8px}.original-help{font-size:.875rem}}
.original-fit-narrow{display:none}@media(max-width:600px){.original-fit-wide{display:none}.original-fit-narrow{display:inline}}
/* Mobile management inherits the same ink and paper tokens. */
.admin-mobile-top,.admin-bottom-nav,.student-archives,.settings-mobile-home,.settings-subhead,.usage-mobile-list{display:none}
.archive-detail-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.archive-detail-heading>div{flex:1;min-width:0}.archive-detail-heading h3{font-size:1.2rem;overflow-wrap:anywhere}.archive-detail-heading p{font-size:.875rem;color:var(--muted);margin-top:3px}.archive-facts{margin:20px 0}.archive-facts>div{display:grid;grid-template-columns:85px minmax(0,1fr);gap:12px;padding:13px 0;border-bottom:1px solid var(--line);font-size:.9375rem}.archive-facts dt{color:var(--muted)}.archive-facts dd{margin:0;overflow-wrap:anywhere}.archive-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0 10px}.profile-admin-entry{display:flex;flex-direction:column;align-items:center;margin-top:18px}.profile-admin-entry>.button{font-size:.875rem;color:var(--muted)}.profile-admin-entry>small{font-size:.875rem}.login-footer .button{font-size:.875rem;color:var(--muted)}.budget-summaries{display:grid;grid-template-columns:1fr 1fr;gap:18px}.budget-summary{padding:17px 18px;background:var(--pale);border-radius:13px}.budget-summary h3{font-size:.9375rem;font-weight:500}.budget-amount{font-size:1.65rem;line-height:1.3;margin-top:11px}.budget-amount small{display:block;font-size:.875rem;margin-top:6px}.budget-summary .usage-row{font-size:.875rem;border:0;padding-bottom:0}.save-feedback{font-size:.875rem;color:var(--green);line-height:1.7}.save-feedback:empty,.settings-panel .form-error:empty{display:none}.settings-panel form>.button{justify-self:start;min-width:150px}.settings-panel .fields-2 .field{align-content:start}.settings-panel .field>small{font-size:.875rem}.settings-page .section-head{margin-top:30px}
@media(max-width:700px){
 .admin-shell{display:block}.admin-shell>.sidebar,.admin-top{display:none}.admin-mobile-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 18px 12px}.admin-mobile-top>div{min-width:0;display:flex;align-items:center;gap:9px}.admin-mobile-top .brand{font-size:1.0625rem;gap:8px}.admin-mobile-top .brand-mark{width:31px;height:35px}.admin-identity{font-size:.875rem;color:var(--green);border-left:1px solid #b4c3b3;padding-left:9px;white-space:nowrap}.admin-mobile-top>.button{font-size:.875rem;padding:8px;flex:none}.admin-bottom-nav{display:grid;width:100%;max-width:none;border-left:0;border-right:0}.admin-content{padding:16px 18px calc(7.25rem + env(safe-area-inset-bottom))}.environment-note.admin-note{padding:0 18px;margin:0}.admin-content>.page-heading h1,.settings-page-heading h1{font-size:1.625rem}.admin-content .page-heading p{font-size:.875rem;line-height:1.7}.admin-content>.page-heading{margin-bottom:21px}.admin-content .page-heading.split{align-items:center;gap:14px}.admin-content .page-heading .button{font-size:.875rem;min-height:46px;padding:9px 12px}.admin-content .page-heading .button .icon{display:block;width:17px}.admin-content .page-heading.split p{max-width:205px}.admin-surface{padding:0;border:0;border-radius:0;background:transparent}.admin-filters{margin:0 0 18px;background:#edf4f2;border:1px solid #cbdedb;border-radius:18px;padding:15px}.admin-filters .field{font-size:.875rem}.admin-filters input,.admin-filters select{min-height:47px;font-size:.875rem}.admin-filters .button{min-height:47px;font-size:.8755rem}.admin-surface>.split{font-size:.875rem;gap:8px}.admin-surface>.split>.muted{font-size:.875rem}.desktop-student-table,.desktop-usage-table{display:none}.student-archives{display:block;margin-top:7px}.archive-row{border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;width:100%;padding:20px 0;display:flex;gap:12px;align-items:center;text-align:left;min-height:105px}.archive-row:hover{background:#edf4f2}.archive-row>.icon{width:18px;color:var(--muted)}.archive-row>.avatar{width:44px;height:44px;align-self:flex-start;margin-top:4px}.archive-body{flex:1;min-width:0}.archive-name{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:3px}.archive-name strong{font-size:1rem;font-weight:600;overflow-wrap:anywhere}.archive-name .status{font-size:.875rem;padding:1px 5px}.archive-body small{display:block;font-size:.875rem;line-height:1.8;overflow-wrap:anywhere}.archive-actions>.button{font-size:.875rem;padding-left:10px;padding-right:10px}.archive-actions .icon{width:19px}.settings-mobile-home{display:block}.admin-account{background:#edf4f2;border:1px solid #cbdedb;border-radius:18px;padding:19px 16px;display:flex;align-items:center;gap:13px;margin-bottom:18px}.admin-account>.brand-mark{width:43px;height:46px;background:var(--surface)}.admin-account strong{font-size:1rem;font-weight:500}.admin-account small{display:block;font-size:.875rem;margin-top:4px}.settings-directory{padding:0 2px}.settings-entry-icon{align-self:flex-start;padding-top:3px;color:#56715a}.settings-entry-icon>.icon{width:21px;height:21px}.settings-entry-text{flex:1;min-width:0}.settings-directory>.settings-row{gap:13px;padding:18px 0;min-height:92px;font-size:1rem}.settings-directory>.settings-row small{font-size:.875rem;line-height:1.65}.settings-directory>.settings-row>.icon{width:18px}.settings-subhead{align-items:center;justify-content:space-between;margin:-6px 0 18px;gap:10px}.settings-subhead>.button{padding-left:0}.settings-subhead>span{font-size:.875rem;color:var(--muted)}.settings-workspace .settings-grid{display:contents}.settings-workspace .settings-panel{display:none;margin:0}.settings-page[data-section="home"] .settings-workspace{display:none}.settings-page:not([data-section="home"]) .settings-mobile-home,.settings-page:not([data-section="home"]) .settings-page-heading{display:none}.settings-page:not([data-section="home"]) .settings-subhead{display:flex}.settings-page[data-section="recognition"] [data-settings-panel="recognition"],.settings-page[data-section="analysis"] [data-settings-panel="analysis"],.settings-page[data-section="budget"] [data-settings-panel="budget"],.settings-page[data-section="access"] [data-settings-panel="access"],.settings-page[data-section="maintenance"] [data-settings-panel="maintenance"]{display:block}.settings-panel{padding:21px 17px;border-radius:18px}.settings-panel h2{font-size:1.3rem}.settings-panel>.split{align-items:flex-start;gap:9px}.settings-panel>.split .status{font-size:.875rem;margin-top:4px}.settings-panel>.muted{margin-top:7px;margin-bottom:23px;font-size:.875rem;line-height:1.8}.settings-panel form>.button{width:100%;justify-self:stretch}.settings-panel .fields-2{gap:11px}.settings-panel .field{font-size:.875rem}.budget-summaries{grid-template-columns:1fr;gap:12px}.budget-summary{padding:17px 15px}.budget-summary .usage-row{gap:8px}.budget-summary .usage-row strong{white-space:nowrap}.budget-amount{font-size:1.5rem}.usage-mobile-list{display:block}.usage-record{padding:18px 0;border-bottom:1px solid var(--line)}.usage-record>.split>strong{font-size:.9375rem;font-weight:500}.usage-record>.split>.status{font-size:.875rem}.usage-record>small{font-size:.875rem;display:block;margin-top:5px}.usage-record-values{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.875rem;color:var(--muted);margin:12px 0}.usage-record-values b{font-weight:500;color:var(--ink);white-space:nowrap}.usage-record .button{margin-top:3px}.settings-page .section-head{gap:9px}.settings-page .section-head h3{font-size:1rem}.settings-page .section-head>.muted{font-size:.875rem}.service-config .usage-row{flex-wrap:wrap}.settings-panel input[type=number]{padding-right:7px}.profile-admin-entry{padding-bottom:6px}
}
@media(max-width:700px){.settings-directory>.settings-row{min-height:84px;padding:14px 0}.archive-name .status{font-size:.875rem}.settings-mobile-home>.button{margin-top:24px}}
@media(max-width:700px){.budget-summaries{gap:0;border-top:1px solid var(--line)}.budget-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:7px 12px;padding:16px 0;border-bottom:1px solid var(--line);background:transparent;border-radius:0}.budget-summary h3{align-self:center}.budget-amount{margin:0;text-align:right;font-size:1.4rem}.budget-amount small{font-size:.875rem}.budget-summary .usage-row{grid-column:1/-1;padding:3px 0 0}.settings-panel[data-settings-panel="budget"]>.muted{margin-bottom:18px}}
/* Page progress and review use the established continuous work list. */
.page-task{padding:16px 0;border-bottom:1px solid var(--line)}.page-task-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.page-task-heading strong{font-size:.9375rem;font-weight:500}.page-task>p{font-size:.875rem;line-height:1.8;color:var(--muted);margin-top:7px;overflow-wrap:anywhere}.page-task>p.page-warning{color:var(--warn)}.page-task-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:6px}.page-task-actions .button{padding:8px 10px}.candidate-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;font-size:1rem}.candidate>p.candidate-source{font-size:.875rem;color:var(--muted);margin-bottom:8px}.candidate-risks{border-left:3px solid #b59955;background:#f6f0df;padding:12px 14px;margin:13px 0;color:#6b5425;border-radius:0 10px 10px 0;font-size:.875rem;line-height:1.8}.candidate-risks>strong{font-weight:500}.candidate-risks ul{padding-left:19px;margin:4px 0}.candidate-risks>p{font-size:.875rem;line-height:1.8;white-space:pre-wrap;margin-top:5px}.candidate:focus{outline:2px solid #98b39e;outline-offset:5px}.editor-preview>summary,.editor-source>summary{min-height:44px;cursor:pointer;color:var(--green);font-size:.875rem;padding:10px 0}.editor-preview .candidate-preview{margin-top:4px;font-size:1rem;overflow-wrap:anywhere}.editor-source-image{max-height:380px;overflow:auto;margin-top:12px;border:1px solid var(--line);border-radius:10px;background:var(--pale)}.editor-source-image img{display:block;max-width:none;width:100%;min-width:520px}.editor-source-image>.loading,.editor-source-image>.error{padding:18px}.editor-source-image>.button{margin:0 16px 16px}.reviewed-check{align-items:flex-start!important;line-height:1.8}.reviewed-check input{margin-top:6px;flex:none}.thinking-setting{align-self:end;min-height:48px}.pricing-note{font-size:.875rem;line-height:1.8;color:var(--muted);border-top:1px solid var(--line);padding-top:15px}.service-config .fields-2 .field small{min-height:20px}#recognition-pages[hidden],#candidate-review[hidden]{display:none}
@media(max-width:400px){.candidate-risks{padding:11px 12px}.page-task-actions{gap:5px}.candidate .actions{gap:7px}.candidate .actions .button{padding-left:11px;padding-right:11px}.thinking-setting{font-size:.875rem}.editor-source-image{max-height:310px}}
.modal-body:has(#question-form){height:calc(100svh - 126px);display:flex;flex-direction:column;overflow:hidden;padding-bottom:16px}.modal-body:has(#question-form)>.modal-intro{flex:none;margin-bottom:14px;font-size:.875rem}#question-form{display:flex;flex-direction:column;flex:1;min-height:0}#question-form>.stack{min-height:0;overflow:auto;padding:4px 5px 12px 4px;margin:-4px;overscroll-behavior:contain;scrollbar-width:thin}#question-form>.modal-actions{flex:none;position:relative;margin-top:12px;padding-top:14px;background:var(--surface)}#question-form .candidate-risks{margin-top:0}#question-form textarea{min-height:158px}
.editor-save-state{flex-basis:100%;font-size:.875rem;color:var(--muted);line-height:1.7}.modal-body:has(#question-form) .modal-actions{gap:8px 10px}.modal-body:has(#question-form) code{font:inherit;color:var(--green)}

.student-report-identity{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.student-report-identity strong{font-size:1rem;font-weight:500}.student-report-identity span{font-size:.875rem;color:var(--muted)}.student-report-filter{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;margin-top:22px}.student-report-filter .button{min-height:48px}.student-reports .report-cover{margin-top:22px}.account-created{margin:0;padding:0}.account-created>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.account-created dt{font-size:.875rem;color:var(--muted)}.account-created dd{margin:0;font-weight:500;overflow-wrap:anywhere}.student-reports .report-row>div{min-width:0}.student-reports .report-row small{overflow-wrap:anywhere}
.student-report-history{margin-top:16px;border-bottom:1px solid var(--line);padding-bottom:3px}.student-report-history summary{font-size:.875rem;color:var(--green);padding:9px 0;min-height:44px}.student-report-history .report-row{padding:12px 0}.student-report-history .report-row strong{font-size:.875rem;font-weight:500}.student-report-history .report-row small{font-size:.875rem}.student-reports .report-history+.report-view .report-cover{margin-top:18px}
.figure-review-note{font-size:.875rem;line-height:1.8;color:var(--warn);margin:9px 0}.figure-edit-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.figure-reviewed-check{padding:14px 12px;background:var(--pale);border-radius:12px;align-items:flex-start;line-height:1.8;margin-top:14px}.figure-reviewed-check input{margin-top:5px;flex:none}.crop-mode .modal-intro,.crop-mode #question-form>.modal-actions,.crop-mode #question-form>.stack>*:not(#figure-crop-workspace){display:none!important}.crop-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px}.crop-heading>.button{padding-left:0}.crop-heading>span{font-size:.875rem;color:var(--muted)}#figure-crop-workspace h3{font-size:1.125rem;font-weight:500}.crop-help{font-size:.875rem;line-height:1.8;color:var(--muted);margin:8px 0 15px}.crop-stage{display:flex;justify-content:center;align-items:center;min-height:170px;overflow:hidden;background:#edf4f2;border:1px solid var(--line);border-radius:12px;margin-top:14px;padding:16px}.crop-board{position:relative;display:inline-block;max-width:100%;line-height:0;touch-action:none;user-select:none}.crop-board[hidden]{display:none}.crop-board>img{display:block;max-width:100%;max-height:350px;width:auto;height:auto;pointer-events:none}.crop-box{position:absolute;border:2px solid #0b5754;background:#d9edcf20;box-shadow:0 0 0 999px #1e352844;cursor:move;touch-action:none}.crop-box-label{position:absolute;left:5px;top:5px;line-height:1.5;background:#ffffffde;color:var(--green);font-size:.875rem;padding:1px 5px;pointer-events:none}.crop-handle{position:absolute;width:44px;height:44px;border:0;padding:14px;background:transparent;display:grid;place-items:center;touch-action:none;z-index:1}.crop-handle span{display:block;width:16px;height:16px;border:2px solid #ffffff;background:#0b5754;border-radius:4px;box-shadow:0 0 0 1px #0b5754}.crop-handle.nw{left:-23px;top:-23px;cursor:nwse-resize}.crop-handle.ne{right:-23px;top:-23px;cursor:nesw-resize}.crop-handle.sw{left:-23px;bottom:-23px;cursor:nesw-resize}.crop-handle.se{right:-23px;bottom:-23px;cursor:nwse-resize}.crop-adjust>summary{min-height:44px;padding:11px 0;color:var(--green);font-size:.875rem;cursor:pointer}.crop-boundaries{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.crop-boundaries .field{font-size:.875rem}.crop-result{margin-top:10px}.crop-result>.field{font-size:.875rem;margin-bottom:8px}.crop-result canvas{display:block;max-width:100%;max-height:160px;width:auto;height:auto;border:1px solid var(--line);border-radius:8px;background:white}.crop-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:14px;padding:13px 0 2px;border-top:1px solid var(--line);background:var(--surface)}.crop-actions .format-note{flex-basis:100%;margin:0}.crop-error:empty{display:none}.crop-error{margin-top:12px}.crop-stage:has(.crop-board[hidden]){display:none}#crop-image-status>.loading,#crop-image-status>.error{margin-top:13px}.crop-mode .modal-body:has(#question-form){padding-top:8px}
@media(max-width:600px){.crop-stage{padding:13px}.crop-board>img{max-height:310px}.crop-help{font-size:.875rem;line-height:1.75;margin-bottom:11px}.crop-boundaries{grid-template-columns:repeat(2,minmax(0,1fr))}.crop-result canvas{max-height:130px}.crop-actions .button{flex:1;font-size:.875rem;padding-left:8px;padding-right:8px}.crop-heading{margin-bottom:2px}.crop-mode .modal-body{padding-left:13px;padding-right:13px}}
#crop-controls{flex:none;padding-top:12px;margin-top:10px}.crop-board>img{max-height:300px}@media(max-width:600px){.crop-board>img{max-height:250px}.crop-help{margin-top:5px}.crop-stage{margin-top:10px}.crop-result{margin-top:4px}#crop-controls .format-note{font-size:.875rem;line-height:1.6}}
@media(min-width:601px){.crop-board>img{max-height:clamp(180px,calc(100svh - 600px),300px)}}
.candidate-text,.q-text,#editor-text-preview{white-space:normal}.question-prose{white-space:pre-wrap;overflow-wrap:anywhere}.question-table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border:1px solid var(--line);border-radius:10px;margin:14px 0;white-space:normal;scrollbar-width:thin}.question-table{border-collapse:collapse;width:max-content;min-width:100%;font-size:.9375rem;line-height:1.7;font-variant-numeric:tabular-nums}.question-table th,.question-table td{min-width:5.5em;padding:10px 13px;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}.question-table th{font-weight:500;background:var(--pale)}.question-table tr:last-child td{border-bottom:0}.question-table-warning{font-size:.875rem;line-height:1.8;color:var(--warn);background:#f6f0df;border-left:3px solid #b59955;padding:10px 12px;border-radius:0 8px 8px 0;margin:12px 0}.question-table-raw{font-size:.875rem;line-height:1.8}.question-table-scroll:focus-visible{outline:2px solid var(--green);outline-offset:3px}.question-body{min-width:0}
.question-table-hint{font-size:.875rem;color:var(--muted);line-height:1.7;margin:-7px 0 14px}.question-table-hint[hidden]{display:none}
/* Shared workflow additions inherit the warm ink tokens. */
.haoxue-mark{width:100%;height:100%}.brand-mark{background:transparent;color:#216853}.pagination{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:20px 0}.pagination>span{text-align:center;font-size:.875rem;line-height:1.6}.pagination small{display:block;font-size:.875rem}.repeat-count{display:inline-block;color:var(--green);background:#e3eddf;border:1px solid #c5d8be;border-radius:6px;padding:0 6px;font-size:.875rem;font-weight:600;white-space:nowrap}.capture-modes{display:grid;gap:12px}.capture-camera{width:100%;display:flex;flex-wrap:wrap;padding:15px 12px;min-height:82px}.capture-camera small{flex-basis:100%;font-size:.875rem;color:#e6efe5}.capture-secondary{display:grid;grid-template-columns:1fr 1fr;gap:10px}.capture-secondary .button{padding:10px 8px;font-size:.875rem}.capture-secondary .icon{width:19px}.capture-modes .format-note{margin:0}.upload-status-banner{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#e9efe4;padding:5px 10px;border-radius:12px;font-size:.875rem;margin-bottom:18px}.upload-status-banner .button{white-space:nowrap;padding:8px}.upload-status-banner .icon{width:15px}.queue-row{border-bottom:1px solid var(--line);padding:14px 0;font-size:.875rem}.queue-row strong,.queue-row small,.queue-row>div>span{display:block;overflow-wrap:anywhere}.queue-row strong{font-weight:500}.queue-row .actions{margin-top:7px;gap:4px}.queue-row .error{margin-top:8px}.group-previews{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}.group-preview{border:1px solid var(--line);border-radius:12px;padding:10px;min-width:0}.group-preview strong{display:block;font-size:.875rem;line-height:1.7;margin-bottom:8px}.group-preview img{display:block;width:100%;height:170px;object-fit:contain;background:var(--paper)}.group-placeholder{display:grid;place-items:center;height:170px;background:var(--paper);color:var(--muted);font-size:.875rem}.group-preview .button{padding:8px 0;width:100%}.export-original-option{margin:14px 0}.report-list-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:18px 0 10px}.report-list-toolbar .field{flex:1 1 150px}.report-list-toolbar .button{padding-left:12px;padding-right:12px}.report-library{margin-top:24px;border-top:1px solid var(--line)}.report-library-row{display:flex;align-items:center;gap:12px;width:100%;padding:20px 0;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left}.report-library-body{min-width:0;flex:1;display:grid;gap:5px}.report-library-body strong{font-size:1.0625rem;font-weight:600}.report-library-body>span{font-size:.875rem;color:var(--muted)}.report-library-body small{font-size:.875rem}.report-library-symbol{width:39px;height:48px;border:1px solid #cbdedb;border-radius:8px;display:grid;place-items:center;color:var(--green);background:#edf4f2;flex:none}.report-library-row>.icon{width:18px}.report-library-row:hover{background:#edf4f2}.report-back{padding-left:0;margin-bottom:15px}.report-paper{background:var(--surface);padding:28px 25px;border:1px solid var(--line);border-radius:18px;max-width:860px;margin:auto;overflow-wrap:anywhere}.report-paper-head{padding-bottom:24px;border-bottom:2px solid #a3bdab}.report-paper-head h1{font-size:1.75rem;margin:14px 0 8px;letter-spacing:0;line-height:1.5}.report-period{font-size:1rem;color:var(--green)}.report-evidence{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px 18px;margin-top:22px;font-size:.875rem;color:var(--muted)}.report-evidence strong{font-size:1.125rem;color:var(--ink);font-weight:600;margin:0 3px}.report-summary{margin:24px 0;background:#edf4f2;border-left:3px solid #6b957b;padding:18px}.report-summary h2{font-size:1rem;font-weight:600;margin-bottom:10px}.report-summary p{font-size:1rem;line-height:1.95}.report-chapter{padding:26px 0;border-top:1px solid var(--line)}.report-chapter-title{display:flex;gap:11px;align-items:baseline;margin-bottom:16px}.report-chapter-title>span{color:#728e78;font-size:.875rem;font-variant-numeric:tabular-nums;flex:none}.report-chapter h2{font-size:1.1875rem;line-height:1.5}.report-chapter p,.report-chapter li{font-size:1rem;line-height:1.95}.report-chapter ul{padding-left:21px;margin:0;display:grid;gap:15px}.report-chapter li::marker{color:#799783}.report-subjects{margin:0 0 16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.report-subjects>div{padding:12px 0;border-bottom:1px solid var(--line)}.report-subjects dt{font-size:.875rem;color:var(--muted)}.report-subjects dd{margin:5px 0 0;font-size:1.375rem;font-weight:600}.report-subjects small{display:block;font-weight:400;font-size:.875rem}.report-parent{border-top-color:#cbdedb}.report-boundary{font-size:.875rem;color:var(--muted);border-top:1px solid var(--line);padding-top:23px;margin-top:4px;line-height:1.8}.report-boundary strong{color:#506750;font-weight:500}.report-boundary p{margin-top:7px}.report-export{max-width:860px;margin-left:auto;margin-right:auto;display:flex}.date-trigger{display:flex;justify-content:space-between;align-items:center;gap:10px;background:var(--surface);border:1px solid #bfd2cf;border-radius:12px;min-height:50px;padding:11px 13px;font-size:.9375rem;line-height:1.6;width:100%;min-width:0;text-align:left}.date-trigger>span{overflow-wrap:anywhere}.date-trigger svg{width:20px;height:20px;stroke:var(--green);fill:none;stroke-width:1.5;flex:none}.date-dialog{width:min(410px,calc(100vw - 24px));padding:20px;overflow:auto;max-height:calc(100svh - 24px)}.date-head,.date-nav{display:flex;align-items:center;justify-content:space-between;gap:12px}.date-head h2{font-size:1.1875rem}.date-nav{margin:14px 0 12px}.date-nav>button{border:1px solid var(--line);background:var(--surface);width:44px;height:44px;min-height:44px;border-radius:12px;color:var(--green);font-size:1.5rem}.date-nav>strong{font-size:1rem;font-weight:600}.date-grid,.date-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}.date-week>span{text-align:center;font-size:.875rem;color:var(--muted);padding:5px 0 10px}.date-grid button{height:44px;min-height:44px;border:0;border-radius:10px;background:transparent;padding:0;font-size:.875rem}.date-grid button:hover{background:var(--pale)}.date-grid button.selected{background:var(--green);color:white;font-weight:600}.date-grid button.other-month{color:#859080}.date-grid button.in-range{background:#e6f2ef;border-radius:2px}.date-grid button:disabled{color:#adb6a8;background:transparent;opacity:1}.date-grid.month-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.date-grid.month-grid button{height:48px}.date-key-hint{font-size:.875rem;line-height:1.7;color:var(--muted);margin-top:14px}.date-actions{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:16px;padding-top:14px}.date-range-status{padding:10px 12px;background:var(--pale);border-radius:10px;font-size:.875rem;margin-bottom:15px}.date-dialog .icon-button{font-size:1.5rem}.profile-panel:first-child{margin-top:6px;margin-bottom:26px}
@media(min-width:900px){.mobile-shell:has(.report-paper){max-width:860px}.mobile-shell:has(.report-paper) .bottom-nav{width:min(100%,860px)}.mobile-shell:has(.report-paper) .mobile-main{padding-left:42px;padding-right:42px}.report-paper{padding:40px 44px}.report-paper-head h1{font-size:2rem}.report-subjects{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:400px){.report-paper{padding:23px 18px}.report-paper-head h1{font-size:1.5rem}.report-summary{padding:16px 14px}.report-library-symbol{display:none}.report-library-row{gap:8px}.report-library-row>.status{font-size:.875rem;padding:3px 5px}.date-dialog{padding:16px 12px}.date-grid{gap:1px}.date-grid button{font-size:.875rem}.capture-secondary .button{font-size:.875rem}.group-preview img,.group-placeholder{height:140px}}
.repeat-picker{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:7px 0}.repeat-picker>summary,.repeat-option>summary{cursor:pointer;min-height:44px;padding:10px 0;font-size:.9375rem;line-height:1.8}.repeat-option{border-bottom:1px solid var(--line);padding:8px 0}.repeat-option .q-text{margin:12px 0}.repeat-option .button{margin-top:10px}.repeat-option .question-figure{max-height:220px;object-fit:contain}.repeat-picker #repeat-results{max-height:480px;overflow:auto;overscroll-behavior:contain;padding-right:4px}
.date-row{display:contents}
@media(max-width:480px){.mobile-main:has(#capture-form) .context-compact .selected-line{flex-basis:150px}.mobile-main:has(#capture-form)>.page-heading{margin-bottom:20px}.capture-camera{min-height:74px;padding-top:12px;padding-bottom:12px;gap:4px}}

.batch-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.batch-switch .format-note{margin:0;flex:1;min-width:0}.batch-switch button{flex-shrink:0}

/* Capture first; metadata can be completed while the queue runs. */
.capture-source{padding:23px 0 18px;border-bottom:1px solid var(--line);margin:0 0 8px}.source-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.source-heading h2{font-size:1.0625rem}.source-heading>.muted{font-size:.875rem;white-space:nowrap}.source-save-row{display:flex;align-items:center;gap:10px;justify-content:space-between}.source-save-row .format-note{margin:0}.source-save-row>.button{flex:none}.source-error{color:var(--danger)}.avatar-teacher{font-size:.875rem;white-space:nowrap}.profile-panel .avatar-teacher{font-size:1.125rem;letter-spacing:.04em}

.status.withdrawn{background:#eee8df;color:#6d5949}.student-status-readonly>div{min-height:50px;display:flex;align-items:center}.student-status-confirm{margin:4px 0 12px}.student-status-confirm p{margin:8px 0 12px;font-size:.875rem;line-height:1.8}.student-status-confirm .check{font-size:.875rem;align-items:flex-start}.manage-student-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,.65fr);gap:12px}.managed-student-name{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.managed-student-row>div:first-child{min-width:0;flex:1}.managed-student-row small{overflow-wrap:anywhere}.managed-student-row>.actions{flex-shrink:0;gap:2px}.report-task-progress{padding:20px 0;margin-top:15px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.report-task-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}.report-task-heading strong{font-size:1rem;font-weight:500}.report-task-heading span{font-size:.875rem;color:var(--muted);white-space:nowrap}.report-task-progress progress{display:block;width:100%;height:7px;border:0;border-radius:8px;overflow:hidden;margin:15px 0;background:var(--pale);accent-color:var(--green)}.report-task-progress progress::-webkit-progress-bar{background:var(--pale)}.report-task-progress progress::-webkit-progress-value{background:var(--green);border-radius:8px}.report-task-progress progress::-moz-progress-bar{background:var(--green);border-radius:8px}.report-task-progress p{font-size:.875rem;margin:10px 0 7px;line-height:1.8}.report-task-progress small,.report-task-budget small{display:block;font-size:.875rem;line-height:1.75;color:var(--muted)}.report-task-budget{margin-top:20px;padding:15px 16px;background:var(--paper);border-radius:12px}.report-task-budget>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:.875rem}.report-task-budget strong{font-weight:500}.report-task-budget p{font-size:.875rem;line-height:1.8;margin:7px 0;color:var(--muted)}.report-limit-setting{padding-top:18px;border-top:1px solid var(--line)}
@media(max-width:480px){.managed-student-row{flex-wrap:wrap;gap:5px}.managed-student-row>div:first-child{flex-basis:100%}.managed-student-row>.actions{justify-content:flex-end;width:100%}.managed-student-row>.actions .button{padding:8px 12px}.manage-student-filters{gap:10px;grid-template-columns:minmax(0,1fr) 112px}.report-task-budget{padding:14px 12px}.student-status-confirm .check{line-height:1.7}}

/* 学生筛选区固定，结果独立滚动，切换条件时保持窗口位置。 */
dialog:has(#picker-form){height:min(780px,calc(100svh - 32px));max-height:calc(100svh - 32px)}
dialog[open]:has(#picker-form){display:flex;flex-direction:column}
dialog:has(#picker-form) .modal-head{flex:none}
dialog:has(#picker-form) .modal-body{display:flex;flex-direction:column;flex:1;min-height:0;max-height:none;overflow:hidden}
dialog:has(#picker-form) .picker-intro,dialog:has(#picker-form) .picker-filters,dialog:has(#picker-form) .picker-count{flex:none}
dialog:has(#picker-form) .picker-count{min-height:44px;margin:10px 0 6px}
#picker-count{white-space:nowrap}
#picker-results{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable}
#picker-results .empty{padding:28px 12px}
#picker-pagination{flex:none;height:70px;display:flex;align-items:center;border-top:1px solid var(--line);padding-top:8px}
#picker-pagination .pagination{width:100%;margin:0;padding:0}
.picker-page-note{width:100%;text-align:center;font-size:.875rem;color:var(--muted)}
@media(max-height:600px){dialog:has(#picker-form) .modal-body{overflow-y:auto;scrollbar-gutter:stable}#picker-results{flex:none;height:260px;max-height:none;min-height:0}}
dialog:has(#picker-form) .picker-filters{padding:12px;gap:8px}
dialog:has(#picker-form) .picker-filters .field{gap:5px}
dialog:has(#picker-form) .picker-filters input,dialog:has(#picker-form) .picker-filters select{height:44px;min-height:44px;padding:9px 11px;line-height:1.5}
#picker-results .student-result{padding:12px 0}
#picker-results .student-result small{line-height:1.5}
.collection-overview{display:flex;align-items:flex-start;gap:12px;background:var(--green-soft,#e8f0e9);border:1px solid var(--line);border-radius:16px;padding:17px 18px}
.collection-overview strong{display:block;font-size:.9375rem;color:var(--green)}
.collection-overview p{margin:4px 0 0;font-size:.875rem;line-height:1.7;color:var(--muted)}
.collection-mark{display:flex;align-items:center;justify-content:center;flex:none;width:28px;height:28px;border-radius:50%;background:var(--green);color:white}
.collection-mark .icon{width:17px;height:17px}
.auto-collection-count{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 14px;padding:15px 2px 4px;font-size:.875rem}
.auto-candidate .candidate-top{justify-content:space-between;gap:10px;align-items:center}
.candidate-heading{display:flex;align-items:baseline;gap:12px;min-width:0}
.candidate-heading strong{font-size:1rem;white-space:nowrap}
.candidate-confirm{flex:none;min-height:44px;padding:9px 12px;font-size:.875rem}
.candidate-confirm .icon{width:16px;height:16px}
.auto-candidate.needs-check{border-color:#c3ad82}
.candidate-review-caption{margin:8px 0 0;color:#786344;font-size:.875rem;line-height:1.7}
.auto-review-notice{margin:14px 0 8px}
.auto-candidate .actions{margin-top:12px}
.auto-candidate .collected-status{background:#e8f0e9;color:var(--green);border:1px solid #d1e1d4}
@media(max-width:440px){.collection-overview{padding:14px}.auto-collection-count>.muted{display:none}.candidate-heading{gap:8px}.auto-candidate .candidate-top{flex-wrap:nowrap}.candidate-confirm{padding:9px 10px}}

.read-refresh-note:has(button){display:flex;align-items:center;gap:10px;padding:8px 10px 8px 14px}.read-refresh-note>span{flex:1}.read-refresh-note>.button{flex:none;white-space:nowrap}

.local-draft-panel{padding:11px 14px;background:var(--pale);border-radius:12px;color:var(--muted);font-size:.875rem;line-height:1.7}.local-draft-panel p{margin:0}.local-draft-panel .actions{margin-top:10px;gap:6px}.local-draft-panel .actions .button{white-space:normal}.draft-comparison{margin-top:10px}.draft-comparison summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--green)}.draft-comparison .q-text{padding:12px;background:var(--surface);border-radius:10px;max-height:220px;overflow:auto;font-size:.875rem}.local-edit-note{font-size:.875rem;color:var(--warn);margin-top:8px}.local-draft-panel:has(#local-draft-status:empty){display:none}

.pending-edit-row{padding:15px 0;border-bottom:1px solid var(--line)}.pending-edit-row p{font-size:.9375rem;overflow-wrap:anywhere}.pending-edit-row small{display:block;margin:7px 0}.pending-edit-row .actions{gap:8px}
/* 1.0.4: stable local work surfaces and one-round capture review. */
html{scrollbar-gutter:stable;scroll-behavior:auto}
.mobile-main,.admin-content{overflow-anchor:none}
#capture-home>.student-context{margin-top:0}
.capture-home-actions{margin-top:18px}
.capture-home-actions>h2{margin-bottom:7px}
.capture-home-actions .capture-manual{border-top:1px solid var(--line);border-radius:0;margin-top:4px;min-height:50px}
.capture-resume-bar{width:100%;display:flex;align-items:center;gap:12px;padding:14px 15px;border:1px solid #becfbe;border-radius:14px;background:#edf4f2;text-align:left;min-height:78px;margin-bottom:18px}
.resume-symbol{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--surface);color:var(--green);flex:none}
.resume-text{min-width:0;flex:1}.resume-text strong,.resume-text small{display:block}.resume-text strong{font-weight:600;font-size:.9375rem;overflow-wrap:anywhere}.resume-text small{margin-top:3px}.resume-arrow{color:var(--green)}
.capture-workspace-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:-8px -8px 15px;min-height:44px}.capture-workspace-head>span{font-size:.875rem;color:var(--muted);text-align:right;overflow-wrap:anywhere;min-width:0}
.round-source{margin:0 0 12px;padding:0;background:transparent;border:0;border-radius:0}.round-source .field{display:block}.round-source .field>small{font-weight:400;margin-left:7px}.round-source input{margin-top:7px}.round-source .source-save-row{min-height:26px;margin-top:4px}.round-source .source-save-row .format-note{margin:0;font-size:.875rem}
.round-photos{display:flex;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;padding-bottom:7px;margin:4px 0 10px;min-height:177px}
.round-photo{padding:0;border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden;flex:0 0 220px;scroll-snap-align:start;min-width:0;text-align:left;transition:background .16s;touch-action:pan-x pan-y}.round-photo:active:not(:disabled){transform:none}
.round-photo-picture{display:grid;place-items:center;height:140px;background:#edf2f1}.round-photo-picture img{display:block;width:100%;height:140px;object-fit:contain}.round-photo small{display:block;padding:7px 11px;font-size:.875rem}
.round-progress{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px}.round-progress>span{font-size:.875rem;color:var(--muted)}
.round-candidate-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:20px 0 12px}.round-candidate-heading h2{font-size:1.125rem}.round-candidate-heading>span{font-size:.875rem}
.round-candidates{display:grid;gap:14px;overflow-anchor:none}.round-candidate{display:grid;grid-template-columns:minmax(0,1fr) 66px;gap:12px;padding:16px 12px 16px 16px;border:1px solid var(--line);border-radius:16px;background:var(--surface);margin:0;overflow-anchor:none}.round-candidate-body{min-width:0}.round-candidate .candidate-heading{display:flex;flex-wrap:wrap;gap:5px 9px;margin-bottom:5px}.round-candidate .candidate-text{font-size:.9375rem;margin:10px 0;overflow-wrap:anywhere}.round-candidate .candidate-source{font-size:.875rem}.round-candidate .question-prose{line-height:1.85}.round-candidate .question-figure{width:100%;height:180px;object-fit:contain;margin:8px 0}.round-candidate .candidate-risks{margin:12px 0 0;padding:10px;font-size:.875rem}.round-candidate .candidate-risks strong{font-size:.875rem}.round-candidate .candidate-risks ul{padding-left:17px;margin:5px 0}
.round-candidate-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px;align-self:start}.round-candidate-actions .button{display:flex;flex-direction:column;gap:3px;width:66px;min-height:59px;padding:8px 4px;border-radius:11px;font-size:.875rem;white-space:normal}.round-candidate-actions .icon{width:18px;height:18px}.round-candidate-actions .collect-action{background:var(--green);color:#fff}.round-candidate-actions .delete-action{background:var(--delete-action);border-color:var(--delete-action);color:white}.round-candidate-actions .delete-action:hover:not(:disabled){background:#a32523}.round-candidate-actions .button:active:not(:disabled){transform:scale(.97)}
.round-append{margin-top:22px;padding-top:16px;border-top:1px solid var(--line)}.round-append>.actions{justify-content:space-between;margin-top:7px}.round-undo{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--pale);border-radius:12px;padding:3px 12px;margin-bottom:12px;min-height:50px;font-size:.875rem}
#round-complete{text-align:center;padding:28px 12px 18px}.round-complete-mark{display:grid;place-items:center;margin:0 auto 14px;border-radius:50%;width:52px;height:52px;background:var(--pale);color:var(--green)}#round-complete>p{margin-top:8px}.round-page-error{background:#fff1ec;border:1px solid #e8c9c1;border-radius:12px;padding:13px;margin:12px 0}.round-page-error p{font-size:.875rem;margin:5px 0 10px;overflow-wrap:anywhere}.round-page-error .actions{justify-content:flex-end}.round-page-tasks:empty{display:none}
#modal.capture-editor-page{width:min(100%,480px);height:100dvh;max-height:100dvh;max-width:100vw;margin:0 auto;border-radius:0;border:0;padding:0;background:var(--paper);animation:editor-page-in .18s ease-out;overflow:hidden}#modal.capture-editor-page::backdrop{background:rgba(37,60,52,.12)}#modal.capture-editor-page>.modal-head{height:64px;padding:8px 18px;display:flex;justify-content:flex-start;gap:12px;background:var(--surface);border-bottom:1px solid var(--line)}#modal.capture-editor-page .modal-head h2{font-size:1.125rem}#modal.capture-editor-page>.modal-body{height:calc(100dvh - 64px);max-height:none;overflow-y:auto;padding:18px 20px calc(20px + env(safe-area-inset-bottom));overscroll-behavior:contain}#modal.capture-editor-page .editor-page-back{font-size:30px;background:transparent;color:var(--green)}#modal.capture-editor-page .modal-actions{position:sticky;bottom:calc(-20px - env(safe-area-inset-bottom));margin:20px -20px calc(-20px - env(safe-area-inset-bottom));padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:10px;z-index:5}#modal.capture-editor-page .modal-actions>button[data-action=close-modal]{display:none}#modal.capture-editor-page .editor-save-state{grid-column:1/-1;font-size:.875rem}#modal.capture-editor-page .modal-actions .button{min-width:0;min-height:48px;padding:9px 10px}#modal.capture-editor-page .modal-intro{font-size:.875rem;margin-bottom:16px}#modal.capture-editor-page .local-draft-panel{padding:11px 13px;font-size:.875rem}#modal.capture-editor-page .field textarea{min-height:200px}
#modal.round-photo-dialog{width:min(100vw,900px)!important;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:0;margin:0 auto;background:#17221e;color:#fff;overflow:hidden}#modal.round-photo-dialog::backdrop{background:rgba(0,0,0,.9)}#modal.round-photo-dialog .modal-head{height:60px;padding:8px 16px;background:#17221e;border:0}#modal.round-photo-dialog .modal-head h2{font-size:1rem}#modal.round-photo-dialog .icon-button{background:rgba(255,255,255,.12);color:#fff}#modal.round-photo-dialog .modal-body{height:calc(100dvh - 60px);max-height:none;padding:0;overflow:auto}.round-photo-viewer{display:grid;place-items:center;min-height:100%;padding:12px;touch-action:pan-x pan-y pinch-zoom}.round-photo-viewer img{max-width:100%;max-height:none;width:auto;height:auto;object-fit:contain}.report-cutoff{font-size:.875rem;color:var(--muted);margin:7px 0}
@keyframes editor-page-in{from{opacity:.55;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){#modal.capture-editor-page{animation:none}.round-candidate-actions .button{transition:none}}
@media(max-width:390px){.round-candidate{padding:14px 10px 14px 12px;gap:10px;grid-template-columns:minmax(0,1fr) 60px}.round-candidate-actions .button{width:60px}.round-candidate-heading{align-items:baseline}.round-photo{flex-basis:208px}}

/* Compact the review header while retaining stable touch targets. */
@media(max-width:767px){html{scrollbar-gutter:auto}.round-photos{min-height:155px}.round-photo-picture,.round-photo-picture img{height:120px}.round-source .source-save-row{min-height:20px}.round-candidate-heading{margin-top:12px}.round-source{margin-bottom:8px}}
.question-image-entry{min-height:44px;padding:8px 0;gap:7px;font-size:.875rem}.question-image-entry .icon{width:17px;height:17px}.image-mode-label{font-size:.875rem;color:var(--green);border-left:1px solid var(--line);padding-left:8px}.question-image-body{display:grid;gap:12px;margin:15px 0}.question-image-open{padding:0;border:1px solid var(--line);background:white;border-radius:8px;overflow:hidden;width:100%;text-align:left}.question-image-open img{display:block;width:100%;height:auto}.question-display-options{display:grid;grid-template-columns:1fr auto;align-items:end;gap:10px;padding-bottom:16px;border-bottom:1px solid var(--line)}.question-display-options .format-note{grid-column:1/-1}.image-question-editor #edit-figures,.image-question-editor [data-action=crop-figure],.image-question-editor .field:has(#candidate-figure){display:none}.slice-add-question{padding-left:0;margin:-6px 0 12px}.question-images-dialog{padding:0;width:min(860px,calc(100vw - 32px));max-width:100vw;height:min(900px,calc(100dvh - 32px));max-height:100dvh;overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:20px;color:var(--ink);box-shadow:0 16px 70px #17362d29}.question-images-dialog::backdrop{background:#18392d70}.question-images-dialog>.modal-head{height:68px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;padding:12px 22px;border-bottom:1px solid var(--line)}.question-images-dialog h2{font-size:1.125rem}.question-images-content{height:calc(100% - 68px);overflow-y:auto;padding:18px 22px;box-sizing:border-box;overscroll-behavior:contain}.question-images-summary{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;line-height:1.7;margin-bottom:12px}.question-images-summary strong{font-size:.9375rem}.question-images-summary>span{font-size:.875rem;color:var(--muted)}.slice-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0 9px}.slice-toolbar>.muted{font-size:.875rem;white-space:nowrap}.slice-zoom{display:flex;align-items:center;gap:5px}.slice-zoom .button{min-width:44px;min-height:44px;padding:7px;font-size:1rem}.slice-zoom span{font-size:.875rem;width:40px;text-align:center}.slice-view-stage{height:clamp(230px,45dvh,460px);overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:12px;background:var(--paper);touch-action:pan-x pan-y}.slice-view-stage>div{min-width:100%;min-height:100%;width:max-content;padding:12px;display:flex;justify-content:center;align-items:center;box-sizing:border-box}.slice-view-stage img{display:block;max-width:none;background:white}.slice-sequence{display:flex;gap:7px;overflow-x:auto;padding:12px 0 6px;overscroll-behavior-x:contain}.slice-sequence-item{min-height:44px;flex:none;padding:7px 13px;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--muted);font-size:.875rem}.slice-sequence-item.active{background:var(--pale);border-color:#749888;color:var(--green)}.slice-edit-actions{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin:9px 0 15px}.slice-edit-actions .button{min-height:44px;font-size:.875rem}.slice-remove{color:#bd302d}.slice-save-actions{position:sticky;bottom:-18px;margin:14px -22px -18px;padding:13px 22px calc(13px + env(safe-area-inset-bottom));display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;background:var(--surface);border-top:1px solid var(--line);z-index:3}.slice-save-actions .format-note{flex-basis:100%;margin:0;font-size:.875rem}.slice-save-actions .button{min-height:48px}.slice-error:empty,.slice-feedback:empty{display:none}.slice-error{color:#a32c29;background:#fbefeb;padding:12px;font-size:.875rem;line-height:1.7;margin:12px 0;border-radius:10px}.slice-feedback{font-size:.875rem;color:var(--green);margin:12px 0}.slice-crop-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.slice-crop-heading strong{font-size:.875rem}.slice-crop-heading .button{padding-left:0}.slice-crop-stage{display:flex;align-items:center;justify-content:center;min-height:180px;padding:22px;margin:12px 0;background:var(--paper);border:1px solid var(--line);border-radius:12px;overflow:hidden}.slice-crop-stage .crop-board>img{max-height:330px;max-width:100%;width:auto}.slice-crop-result{padding-top:9px;border-top:1px solid var(--line)}.slice-crop-result>.field{font-size:.875rem;margin-bottom:8px}.slice-crop-result canvas{display:block;max-width:100%;max-height:200px;width:auto;background:#fff;border:1px solid var(--line)}.slice-crop-footer{display:flex;justify-content:flex-end;gap:10px;position:sticky;bottom:-18px;margin:16px -22px -18px;padding:12px 22px calc(12px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);z-index:3}.slice-crop-footer .button{min-height:48px}
@media(max-width:600px){.question-images-dialog{width:100%;height:100dvh;margin:0;border:0;border-radius:0}.question-images-dialog>.modal-head{height:62px;padding:9px 16px}.question-images-content{height:calc(100% - 62px);padding:14px 16px}.question-images-summary{margin-bottom:5px}.slice-view-stage{height:clamp(230px,40dvh,400px)}.slice-zoom span{display:none}.slice-save-actions{bottom:-14px;margin:14px -16px -14px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr 1fr}.slice-save-actions .format-note{grid-column:1/-1}.slice-save-actions .button{padding:9px 8px;font-size:.875rem}.slice-crop-stage{padding:22px 20px}.slice-crop-stage .crop-board>img{max-height:310px}.slice-crop-footer{bottom:-14px;margin:14px -16px -14px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr 1fr}.question-display-options{grid-template-columns:1fr}.question-display-options .format-note{grid-column:auto}.slice-edit-actions{gap:3px 6px}.slice-edit-actions .button{padding:8px}.slice-crop-result canvas{max-height:145px}}

.question-images-dialog .slice-remove{color:#bd302d}.slice-crop-result>summary{display:flex;align-items:center;min-height:44px;font-size:.875rem;color:var(--green);cursor:pointer}.slice-crop-result[open] canvas{margin-top:8px}.question-images-dialog .slice-edit-actions{margin-bottom:10px}

/* 清透工作台：沿用同一组业务组件与主题变量。 */
:root{--green-pressed:#084944;--radius-work:16px;--motion-short:160ms;--motion-ease:cubic-bezier(.2,.7,.2,1);letter-spacing:0}
body{background:var(--paper)}
.button,.icon-button,.settings-row,.archive-row,.student-result,.report-library-row,.bottom-nav button{transition:background-color var(--motion-short),color var(--motion-short),border-color var(--motion-short),transform 120ms var(--motion-ease)}
.button:active:not(:disabled),.icon-button:active:not(:disabled){transform:scale(.985)}
.button{min-height:48px;border-radius:12px;font-size:1rem}
.button.small{min-height:44px;font-size:.875rem}.button.danger{border-color:#e4bfc0;background:#fff6f6;color:var(--danger)}
.button:focus-visible,.icon-button:focus-visible{outline-color:#6ab7a8}.icon-button{border-radius:10px}
input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea,.date-trigger{font-size:1rem;border-color:#c7d9d5;border-radius:11px;background:var(--surface)}
.field{font-size:.875rem;line-height:1.6}.icon{width:24px;height:24px;stroke-width:1.75}.muted,small{line-height:1.65}
.notice{color:#395e5b}.error{background:#fff0ef;color:#983338}.notice.warning{background:#fff4df;color:var(--warn)}
.brand .brand-mark{width:36px;height:36px;flex:none}.brand{font-size:1.125rem;letter-spacing:0;font-weight:600;gap:10px}
.haoxue-mark{width:100%;height:100%;display:block}.brand-mark{background:transparent!important;padding:0!important;box-shadow:none!important}
.mobile-shell{max-width:480px;background:var(--green);overflow:clip;border:0;border-radius:0;min-height:100svh}
.mobile-top{background:var(--green);color:#fff;padding-top:env(safe-area-inset-top)}
.brandbar{min-height:76px;padding:18px 20px 12px;color:#fff;gap:12px}
.brandbar .avatar{background:#e6f2ef;color:var(--green);width:44px;height:44px;font-size:1rem}
.brandbar .brand{font-size:1.0625rem}
.workspace-heading{padding:10px 20px 28px;min-height:104px;color:#fff;display:flex;flex-direction:column;justify-content:flex-start;gap:7px}
.workspace-heading h1{font-size:1.625rem;line-height:1.4;letter-spacing:0}
.workspace-heading p{font-size:.875rem;line-height:1.65;color:#dbece7;min-height:23px}
.workspace-heading[hidden]{display:none}
.mobile-main{position:relative;margin:0;border-radius:20px 20px 0 0;padding:20px 18px calc(100px + env(safe-area-inset-bottom));background:var(--surface);min-height:calc(100svh - 180px);overflow-anchor:none}
.mobile-main:focus{outline:none}.mobile-main>.loading{min-height:260px;padding:26px 4px}
#app[data-page=profile] .mobile-main{min-height:calc(100svh - 76px)}
.bottom-nav{width:min(100%,480px);border:0;border-top:1px solid var(--line);padding:8px 10px calc(10px + env(safe-area-inset-bottom));gap:6px;background:#fff}
.bottom-nav button{min-height:58px;font-size:.875rem;border-radius:12px;padding:6px 4px;gap:4px}
.bottom-nav button.active{background:var(--pale);font-weight:600;color:var(--green)}
.bottom-nav .icon{width:23px;height:23px}.bottom-nav button:active{transform:none}
.student-context{background:var(--pale);border:1px solid transparent;border-radius:14px;padding:16px;margin-bottom:20px}
.student-context .eyebrow{font-size:.875rem;color:var(--green);font-weight:600;gap:8px;margin-bottom:9px;letter-spacing:0}
.student-context .student-name{font-size:1.125rem;line-height:1.5}.student-context .student-data{color:#496b6b;font-size:.875rem;line-height:1.7}
.student-context.unselected{border-color:#c6ddD5}.student-context.unselected h2{font-size:1.125rem;line-height:1.6}.student-context.unselected p{margin:6px 0 0}
.student-context .avatar{background:#fff;width:48px;height:48px}
.student-context .select-student{width:auto;min-height:44px;margin-top:14px;padding:9px 14px;border-color:#b9d5cc}
.student-context.unselected .select-student{background:var(--green);color:#fff;border-color:var(--green)}
.context-compact .student-context-body{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.context-compact .selected-line{flex:1 1 180px}.context-compact .select-student{margin-top:0;flex:0 0 auto}
.work-surface{border:0;border-radius:0;padding:0;background:transparent;margin-top:24px}
.work-surface>h2{font-size:1.125rem}.work-surface>.muted{margin-top:6px;margin-bottom:18px;font-size:.875rem;line-height:1.75}
.capture-home-actions{margin-top:24px}.capture-home-actions>h2{margin-bottom:0}
.capture-camera{min-height:82px;gap:5px;font-size:1.125rem;border-radius:14px}.capture-camera>.icon{width:28px;height:28px}.capture-camera small{font-size:.875rem;color:inherit;font-weight:400}
.capture-secondary{gap:12px}.capture-secondary .button{min-height:52px;font-size:.875rem;gap:7px;background:var(--surface)}
.capture-home-actions .capture-manual{margin-top:8px;padding:14px 0;border-top:1px solid var(--line);min-height:56px}
.capture-resume-bar{border-color:#bcd8cf;background:#e3efea;border-radius:13px;min-height:76px;margin-bottom:0}.resume-symbol{background:#fff}.resume-text small{font-size:.875rem}
.capture-workspace-head{margin:-4px 0 14px}.capture-workspace-head>.button{padding-left:0}.capture-workspace-head>span{font-size:.875rem;color:var(--green)}
.round-source .source-save-row .format-note{font-size:.875rem}.round-source .field>small{color:var(--muted)}
.round-source input{background:var(--surface)}.round-photos{min-height:163px;margin-top:10px;padding-bottom:8px;gap:12px}
.round-photo{flex-basis:164px;border-radius:12px;border-color:var(--line)}.round-photo-picture,.round-photo-picture img{height:122px;background:#e8f0ed}.round-photo small{font-size:.875rem;padding:8px 10px;min-height:39px}
.round-progress{margin-top:4px;align-items:flex-start}.round-progress>span{padding-top:9px;line-height:1.65;font-size:.875rem}
.round-candidate-heading{align-items:flex-start;margin-top:20px;gap:12px}.round-candidate-heading>span{font-size:.875rem;text-align:right;line-height:1.6}
.round-candidate{grid-template-columns:minmax(0,1fr) 60px;gap:12px;padding:16px 12px 16px 16px;border-radius:14px;background:var(--surface);border-color:#d8e6e1}
.round-candidate .candidate-text,.round-candidate .question-prose{font-size:1rem;line-height:1.85}.round-candidate .candidate-heading{align-items:center;font-size:1rem;gap:5px 10px}
.round-candidate .candidate-heading .q-meta{font-size:.875rem;background:var(--pale);color:var(--green);padding:2px 6px;border-radius:5px}
.round-candidate .candidate-source{font-size:.875rem;color:var(--muted)}.round-candidate .candidate-risks,.round-candidate .candidate-risks strong{font-size:.875rem}
.round-candidate-actions .button{width:60px;font-size:.875rem;min-height:62px;padding:8px 3px;border-radius:10px}
.round-candidate-actions .icon{width:20px;height:20px}.round-candidate-actions .delete-action{background:var(--delete-action);color:#fff;border-color:var(--delete-action)}
.question-image-entry{font-size:.875rem;padding:9px 0;justify-content:flex-start;white-space:normal;text-align:left;min-height:44px;flex-wrap:wrap}.question-image-entry .icon{width:20px;height:20px}
.question-image-status{display:block;font-size:.875rem;line-height:1.65;color:var(--muted);margin-top:2px}.question-image-status.warning{color:var(--warn)}
.page-image-progress{padding:14px 16px;background:var(--pale);border:1px solid #cbded5;border-radius:12px;margin:12px 0;font-size:.875rem;line-height:1.75}.page-image-progress .split{align-items:flex-start;gap:8px}.page-image-progress strong{font-weight:600}.page-image-progress p{margin-top:7px}.page-image-progress .button{margin-top:10px}.page-image-progress.warning{background:#fff6e8;border-color:#ecdcbb;color:var(--warn)}
.image-mode-label{font-size:.875rem}.question-list{display:grid;gap:14px;margin-top:16px}.question-row{padding:18px 14px;background:var(--surface);border:1px solid var(--line);border-radius:14px;gap:10px}
.question-row>.check{width:22px;padding-top:2px;min-height:44px}.question-body .q-meta{font-size:.875rem;line-height:1.8}.question-body .q-text{font-size:1rem;line-height:1.85}
.question-row:has(> .check input:checked){border-color:#6caaa0;background:#fcfffd}.question-body .actions{gap:4px 10px}.question-body .actions .button{padding-left:0;padding-right:8px}
.selection-bar{gap:10px;border:0;padding:12px 0 4px}.selection-bar .check{font-size:.875rem}.selection-bar .button{min-height:48px}
.filters{gap:12px;margin:16px 0}.filters input,.filters select{font-size:1rem;min-height:48px}.filter-detail{border-bottom:1px solid var(--line);margin-bottom:8px}.filter-detail summary{font-size:.875rem;min-height:48px}
.pagination{gap:12px;min-height:60px;font-size:.875rem}.pagination .button{min-width:80px}.pagination small{font-size:.875rem;white-space:normal}
.tag{background:var(--pale);color:var(--green);font-size:.875rem}.status{font-size:.875rem}.status.warn{background:#fff1d5;color:var(--warn)}.status.failed{background:#fbe8e8;color:var(--danger)}
.report-list-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;margin-top:20px}.report-list-toolbar>[data-action=generate-report]{grid-column:1/-1;width:100%}
.report-library{margin-top:24px;border-top:0;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:0 14px}.report-library-row{padding:18px 0;gap:10px;align-items:flex-start;flex-wrap:wrap}.report-library-row:last-child{border-bottom:0}
.report-library-symbol{width:38px;height:44px;background:var(--pale);border:0;display:grid}.report-library-body{flex-basis:180px}.report-library-body small{font-size:.875rem}.report-library-row>.status{font-size:.875rem}.report-library-row>.icon{width:18px;height:24px;align-self:center}
.report-paper{padding:0;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--surface);max-width:860px}.report-paper-head{padding:26px 22px 24px;background:var(--green);color:#fff;border:0}
.report-paper-head .eyebrow{color:#d9ebe5;font-size:.875rem;letter-spacing:0}.report-paper-head h1{font-size:1.625rem;line-height:1.55;margin:17px 0 12px;letter-spacing:0}
.report-period,.report-paper-head .report-cutoff{color:#e0eee9;font-size:1rem}.report-evidence{border-top:1px solid #ffffff35;padding-top:18px;margin-top:22px;color:#e0eee9;font-size:.875rem;gap:8px 16px}.report-evidence strong{color:#fff;font-size:1.5rem}
.report-summary{padding:24px 22px;margin:0;background:#f5faf7;border:0;border-bottom:1px solid var(--line)}.report-summary h2{font-size:1.125rem;margin-bottom:12px}.report-summary p{font-size:1rem;line-height:1.95}
.report-chapter{padding:25px 22px;border-top:0;border-bottom:1px solid var(--line);margin:0}.report-chapter-title{gap:10px;align-items:baseline;margin-bottom:18px}.report-chapter-title>span{font-size:.875rem;color:var(--green)}
.report-chapter p,.report-chapter li{font-size:1rem;line-height:1.9}.report-chapter h2{font-size:1.1875rem;line-height:1.5}.report-chapter li::marker{color:#60958c}
.report-subjects{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}.report-subjects>div{padding:0 0 12px;border-color:var(--line)}.report-subjects small{font-size:.875rem}.report-subjects dd{font-size:1.5rem;color:var(--green)}
.report-parent{background:#f8fbf9}.report-boundary{padding:22px;margin:0;border:0;font-size:.875rem;line-height:1.8}.report-boundary strong{color:var(--ink)}
.report-paper:not(:has(.report-paper-head)){padding:24px 22px}.report-paper:not(:has(.report-paper-head))>h1{font-size:1.5rem}.report-paper .report-progress{margin:18px 0}
.report-back{min-height:44px;margin-bottom:14px}.student-report-identity{padding:14px 16px;border:0;border-radius:12px;background:var(--pale);font-size:1rem}.student-report-identity span{font-size:.875rem}
.profile-panel{border-bottom:0;padding:4px 0 24px;margin:0 0 10px!important;gap:16px}.profile-panel .avatar{width:64px;height:64px;border-radius:16px;font-size:1.375rem;background:var(--pale)}.profile-panel h2{font-size:1.25rem}
.settings-row{padding:18px 0;min-height:76px;gap:13px}.settings-entry-text{flex:1;min-width:0}.settings-entry-icon{flex:none;color:var(--green);align-self:center;padding:0}
.settings-entry-text small,.settings-row small{font-size:.875rem;line-height:1.7}.profile-admin-entry>small,.profile-admin-entry>.button{font-size:.875rem}.profile-admin-entry{padding:8px 0 0;margin-top:20px}
.login-page{background:var(--paper);padding:36px 22px;align-items:center}.login-panel{max-width:440px;border:0;background:transparent;border-radius:0;padding:0}.login-panel .brand{margin-bottom:30px;font-size:1.375rem;gap:12px}
.login-panel .brand-mark{width:48px;height:48px}.login-panel h1{font-size:1.75rem;margin-bottom:8px}.login-panel>.muted{font-size:1rem;line-height:1.75}.login-panel .role-tabs{margin:24px 0}.role-tabs{border-radius:11px;background:#e1ece8;padding:4px}.role-tabs button{font-size:.875rem;min-height:44px;border-radius:8px}
.login-panel .fields-2{gap:12px}.login-panel .stack{gap:20px}.login-panel .field{gap:8px}.login-panel .button.full{min-height:50px;margin-top:0}.login-note{font-size:.875rem;line-height:1.8;margin-top:18px}
.login-footer{border-top:1px solid var(--line);padding-top:14px;margin-top:20px}.login-footer .button{font-size:.875rem;color:var(--green)}
dialog{border-color:var(--line);border-radius:18px;box-shadow:0 16px 50px #163d3526}dialog::backdrop{background:#142f3266;backdrop-filter:none}.modal-head{background:var(--surface);padding:16px 20px}.modal-head h2{font-size:1.25rem}.modal-body{padding:20px}.modal-actions{gap:12px}.modal-actions .button{min-height:48px}
.picker-filters{background:var(--paper);border-radius:12px}.picker-filters .field{font-size:.875rem}.picker-filters select{font-size:1rem!important}.picker-count{font-size:.875rem}.student-result .student-result-body small{font-size:.875rem;line-height:1.7}.student-result:hover{background:var(--paper)}
#picker-results .student-result{min-height:92px;padding:14px 0}.picker-page-note{font-size:.875rem}.picker-intro{font-size:.875rem;line-height:1.7}
dialog:has(#picker-form){height:min(800px,calc(100dvh - 24px));max-height:calc(100dvh - 24px)}dialog:has(#picker-form) .modal-head{flex:none}.picker-filters input{font-size:1rem!important}
.date-trigger{min-height:48px}.date-dialog{padding:20px 16px}.date-grid button{font-size:.875rem}.date-key-hint{font-size:.875rem}.date-week>span{font-size:.875rem}.date-grid button.in-range{background:var(--pale)}
#modal.capture-editor-page{background:var(--paper)}#modal.capture-editor-page>.modal-head{background:var(--green);color:#fff;border:0;height:64px}#modal.capture-editor-page .editor-page-back{color:#fff}#modal.capture-editor-page .modal-head .icon-button{background:#ffffff1a;color:#fff}
#modal.capture-editor-page>.modal-body{padding-top:20px}#modal.capture-editor-page .field textarea{font-size:1rem;line-height:1.85}#modal.capture-editor-page .modal-intro{font-size:.875rem}
.question-images-dialog>.modal-head{background:var(--green);color:#fff;border:0}.question-images-dialog>.modal-head .icon-button{color:#fff;background:#ffffff1c}.question-images-content{background:var(--paper)}
.slice-view-stage{background:#e8efec;border-radius:12px}.slice-edit-actions .button,.slice-toolbar>.muted,.slice-sequence-item,.question-images-summary>span{font-size:.875rem}.slice-sequence-item.active{background:var(--green);color:#fff;border-color:var(--green)}
.slice-save-actions,.slice-crop-footer{background:var(--surface)}.slice-edit-actions .slice-remove{color:var(--delete-action)}.slice-crop-heading .button{padding-left:0}.slice-crop-stage{background:#e5eeea}
.admin-shell{background:var(--paper);grid-template-columns:228px minmax(0,1fr)}.sidebar{background:var(--green);color:#fff;border-right:0;padding:30px 20px}.sidebar .brand{color:#fff;font-size:1.0625rem}.sidebar .brand small{color:#cee5df;padding-left:46px;margin-top:0;font-size:.875rem}
.sidebar nav{gap:8px;margin-top:34px}.sidebar nav button{color:#d8e9e4;font-size:1rem;border-radius:10px;padding:13px 15px;min-height:50px}.sidebar nav button.active{background:#ffffff19;color:#fff;box-shadow:inset 3px 0 #b7dfd4}.sidebar nav button:hover{background:#ffffff12}
.sidebar-foot{border-color:#ffffff28;color:#d8e9e4}.sidebar-foot .button{color:#fff;justify-content:flex-start}.sidebar-foot .button:hover{background:#ffffff16}.admin-top{padding:22px 32px 8px;font-size:.875rem}.admin-content{padding:24px 32px 40px;min-height:calc(100svh - 88px)}
.admin-workspace-heading{display:none}.admin-surface,.service-config{border-radius:16px;border-color:var(--line);background:#fff}.admin-surface{padding:24px}.admin-content .page-heading h1{font-size:1.625rem}.admin-content .page-heading p{font-size:.875rem}
.admin-filters{gap:14px}.admin-filters .field{font-size:.875rem}.admin-filters input,.admin-filters select{font-size:1rem}.admin-content .question-list{gap:16px}.admin-content .question-row{padding:22px}.admin-content .question-body{max-width:none}
.admin-content .student-context{padding:18px 20px}.admin-content .report-paper{max-width:860px}.admin-content .report-list-toolbar{grid-template-columns:260px auto auto;justify-content:start}.admin-content .report-list-toolbar>[data-action=generate-report]{grid-column:auto}
.admin-content .report-library{max-width:860px}.admin-content .report-library-row{flex-wrap:nowrap}.admin-content .settings-directory{background:var(--surface);border-radius:14px}.service-config{padding:24px}.settings-panel .field>small{font-size:.875rem}
.budget-summary{background:var(--paper);border-radius:12px}.budget-summary .usage-row,.save-feedback,.usage-record-values,.archive-body small,.archive-name .status{font-size:.875rem}
.table-wrap{border:1px solid var(--line);border-radius:12px}th{background:#edf4f1;font-size:.875rem;color:#496b66}td{font-size:.9375rem}td small{font-size:.875rem}th,td{padding:14px}tbody tr:hover{background:#f5f9f7}
.page-enter{opacity:1}
@media(min-width:600px){.mobile-shell{margin:24px auto 0;border-radius:20px 20px 0 0;min-height:calc(100svh - 24px)}body:has(.mobile-shell){background:#e7eeec}.mobile-main{min-height:calc(100svh - 204px)}.mobile-shell:has(.report-paper){max-width:480px}.mobile-shell:has(.report-paper) .bottom-nav{width:min(100%,480px)}.mobile-shell:has(.report-paper) .mobile-main{padding-left:18px;padding-right:18px}.report-paper-head h1{font-size:1.625rem}}
@media(max-width:700px){.admin-shell{display:block;background:var(--green)}.admin-main{background:var(--green)}.admin-mobile-top{padding:18px 18px 12px;min-height:76px;background:var(--green);color:#fff}.admin-mobile-top .brand{color:#fff}.admin-mobile-top .brand-mark{width:32px;height:32px}.admin-identity{color:#d8e9e4;border-color:#ffffff44;font-size:.875rem}.admin-mobile-top>.button{color:#fff}.admin-workspace-heading{display:flex;padding-left:18px;padding-right:18px}.admin-content{padding:20px 18px calc(100px + env(safe-area-inset-bottom));background:var(--surface);border-radius:20px 20px 0 0;min-height:calc(100svh - 180px)}.admin-content>.page-heading>div,.settings-page-heading{display:none}.admin-content>.page-heading{justify-content:flex-end;margin:0 0 16px}.admin-content>.page-heading:not(.split){display:none}.admin-surface{padding:0;border:0;background:transparent}.admin-filters{background:transparent;border:0;border-radius:0;padding:0;margin-bottom:16px;gap:12px}.admin-filters .field{font-size:.875rem}.admin-filters .field:first-child{grid-column:1/-1}.admin-content .filters{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-content .student-context{padding:16px}.admin-content .student-context .select-student{width:auto;margin-top:12px}.admin-content .question-row{padding:18px 14px}.admin-content .report-list-toolbar{grid-template-columns:minmax(0,1fr) auto}.admin-content .report-list-toolbar>[data-action=generate-report]{grid-column:1/-1}.admin-content .report-library-row{flex-wrap:wrap}.admin-content .settings-directory{background:transparent;border-radius:0}.settings-panel{padding:20px 16px}.settings-panel h2{font-size:1.25rem}.archive-row{padding:18px 0;min-height:104px}.archive-name .status{font-size:.875rem}.archive-body small{font-size:.875rem}.settings-subhead{margin:0 0 16px}.settings-subhead>span{font-size:.875rem}.budget-summary{background:transparent}.admin-bottom-nav{width:100%;max-width:none}.usage-record>small,.usage-record-values,.usage-record>.split>.status{font-size:.875rem}.settings-panel>.split{flex-wrap:wrap}.settings-panel>.split .status{font-size:.875rem}}
@media(max-width:400px){.mobile-main{padding-left:16px;padding-right:16px}.brandbar,.workspace-heading{padding-left:18px;padding-right:18px}.student-context{padding:14px}.round-candidate{padding:14px 10px 14px 12px;gap:10px;grid-template-columns:minmax(0,1fr) 56px}.round-candidate-actions .button{width:56px}.round-candidate .candidate-text{font-size:1rem}.capture-secondary .button{font-size:.875rem;padding:10px 8px;gap:6px}.capture-secondary .icon{width:21px;height:21px}.modal-body{padding:18px 16px}.report-library-body{flex-basis:145px}.report-library-symbol{display:none}.report-paper-head,.report-summary,.report-chapter,.report-boundary{padding-left:18px;padding-right:18px}.selection-bar .button{padding-left:10px;padding-right:10px;font-size:.875rem}.login-page{padding:30px 22px}.login-panel{padding:0}.login-panel h1{font-size:1.75rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}.page-enter{opacity:1}}

/* 第一轮实际截图修正：身份并入深青顶区，给题目正文留出首屏空间。 */
.mobile-top .workspace-heading{min-height:0;padding-top:2px;padding-bottom:14px;gap:0}
.mobile-top .workspace-heading h1{font-size:1.375rem;line-height:1.5}
.workspace-student{padding:0 18px 20px}
.workspace-student .student-context{margin:0;padding:13px 14px;border:1px solid #ffffff35;background:#ffffff08;border-radius:14px;color:#fff}
.workspace-student .student-context .eyebrow{color:#e0eee9;margin-bottom:8px;font-size:.875rem}
.workspace-student .student-context .student-name{font-size:1.0625rem;color:#fff}
.workspace-student .student-context .student-data{font-size:.875rem;line-height:1.65;color:#e0eee9;margin-top:2px}
.workspace-student .student-context .student-context-body{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:nowrap}
.workspace-student .selected-line{gap:10px;flex:1 1 150px;min-width:0}
.workspace-student .student-context .avatar{width:40px;height:40px;background:#e6f2ef;color:var(--green);font-size:1rem}
.workspace-student .student-context .select-student{width:auto;min-height:44px;padding:8px 10px;border:1px solid #ffffff55;background:transparent;color:#fff;margin-top:0;font-size:.875rem;flex:none}
.workspace-student .student-context .select-student:hover:not(:disabled){background:var(--pale);color:var(--green)}
.workspace-student .student-context .select-student>.icon{display:none}
.workspace-student .student-context.unselected .select-student{margin-top:12px;background:#fff;color:var(--green)}
.workspace-student .student-context.unselected p{color:#e0eee9}
#app:not([data-page=capture]) .workspace-student .context-compact{padding:4px 0 0;border:0;border-radius:0;background:transparent}
#app:not([data-page=capture]) .workspace-student .context-compact>.eyebrow{display:none}
.mobile-main{min-height:calc(100svh - 190px)}
.capture-home-actions{margin-top:0}.capture-resume-bar{margin-bottom:22px}
.mobile-main #question-filter>.filters:first-child{margin-top:0}
.mobile-main .report-list-toolbar{margin-top:0}
.workspace-student[hidden]{display:none}
@media(min-width:600px){.mobile-main{min-height:calc(100svh - 214px)}}
@media(max-width:400px){.workspace-student{padding-left:16px;padding-right:16px}.workspace-student .student-context{padding:12px}.workspace-student .student-context .select-student{padding-left:9px;padding-right:9px}}

.report-detail-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;min-height:44px}
.report-detail-toolbar .report-back{margin:0;padding:8px 0;min-height:44px;font-size:.875rem}
.report-detail-toolbar>span{font-size:.875rem;color:var(--muted)}

/* 1.0.7: stable working surfaces and distinct recognition attention. */
#content{overflow-anchor:none}
#content[aria-busy="true"]{cursor:progress}
.session-cover-compact{background:transparent;padding:0;display:block}
.session-cover-compact .session-cover-panel{position:fixed;top:8px;left:50%;transform:translateX(-50%);max-width:310px;width:calc(100% - 40px);border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:9px 14px;box-shadow:0 3px 15px #172f3214;display:flex;align-items:center;justify-content:center;gap:12px;animation:session-wait .18s step-end}
.session-cover-compact .brand{display:none}.session-cover-compact .session-cover-panel p{margin:0;font-size:.875rem}
@keyframes session-wait{from{visibility:hidden}to{visibility:visible}}
.candidate.has-recognition-risk{background:#fff8e3;border-color:#e2bd62;border-left:4px solid #cc9b2e}
.candidate-attention-label{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:2px 9px;margin:8px 0 2px;border-radius:6px;background:#fae9ae;color:#704b0e;font-size:.875rem;font-weight:600}
.candidate-attention-label .icon{width:16px;height:16px}
.has-recognition-risk .candidate-risks{background:#fff2c8;color:#704b0e;border-color:#e5c875}
.has-recognition-risk .candidate-risks strong{color:#704b0e}
.editor-recognition-notice{background:#fff2c8;color:#704b0e;border-color:#e5c875}
.editor-recognition-notice[hidden]{display:none}
.editor-recognition-notice p{margin:6px 0 0}
.editor-recognition-notice summary{min-height:44px;display:flex;align-items:center;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
#question-form>.modal-actions>.sheet-error{flex-basis:100%;grid-column:1/-1;margin:0;line-height:1.65;font-size:.875rem;overflow-wrap:anywhere}
#question-form>.modal-actions>.sheet-error:focus{outline:2px solid #AD4143;outline-offset:2px}
#question-form [aria-disabled=true]{opacity:.7}
dialog:has(#picker-form) .modal-head{padding:10px 16px}
dialog:has(#picker-form) .modal-body{padding:12px 16px}
dialog:has(#picker-form) .picker-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:8px;margin:0;border-radius:12px}
dialog:has(#picker-form) .picker-filters .field{grid-column:auto;gap:3px;font-size:.875rem}
dialog:has(#picker-form) .picker-filters .field:nth-child(1){order:0}
dialog:has(#picker-form) .picker-filters .field:nth-child(4){order:1}
dialog:has(#picker-form) .picker-filters .field:nth-child(2){order:2}
dialog:has(#picker-form) .picker-filters .field:nth-child(3){order:3}
dialog:has(#picker-form) .picker-filters input{padding:9px 8px;font-size:.875rem!important}
dialog:has(#picker-form) .picker-filters select{padding:9px 7px}
dialog:has(#picker-form) .picker-count{margin:6px 0 2px}
#picker-results .student-result{padding:9px 0;min-height:78px}
#picker-pagination{height:64px}.usage-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}
.usage-student-filter{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding-bottom:10px}
#usage-student-label{font-size:.9375rem;overflow-wrap:anywhere}.usage-student{margin:7px 0 2px;font-size:.9375rem}.block{display:block}
#usage-filter-summary{min-height:46px}.local-export-row{display:flex;gap:12px;padding:18px 0;border-bottom:1px solid var(--line)}
.local-export-icon{flex:none;color:var(--green);padding-top:4px}.local-export-icon .icon{width:22px;height:22px}
.local-export-body{flex:1;min-width:0}.local-export-body>strong{display:block;overflow-wrap:anywhere;font-size:1rem;line-height:1.65}
.local-export-body>small{display:block;margin-top:6px;font-size:.875rem;color:var(--muted)}.local-export-body .actions{margin-top:12px;gap:8px;flex-wrap:wrap}
.local-exports[aria-busy="true"]{min-height:120px}.export-library-note{font-size:.875rem}
@media(max-width:700px){.usage-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.usage-filters .field:first-child{grid-column:1/-1}.usage-student-filter{align-items:flex-start}.usage-student-filter .actions{flex:none;gap:2px}.usage-student-filter .button{padding:8px 10px}}
@media(prefers-reduced-motion:reduce){.session-cover-compact .session-cover-panel{animation:none}}
.question-actions .answer-entry{font-weight:600;min-height:44px}
#modal.question-answer-dialog{width:min(720px,calc(100vw - 32px))!important;max-height:calc(100dvh - 32px);animation:editor-page-in .16s ease-out}
.question-answer-dialog>.modal-head{padding:14px 20px}
.question-answer-dialog>.modal-head .icon-button{min-width:44px;min-height:44px}
.question-answer-dialog>.modal-body{max-height:calc(100dvh - 108px);overscroll-behavior:contain;padding:20px 24px 24px}
.answer-context{font-size:.875rem;line-height:1.65;color:var(--muted);margin:0 0 18px;overflow-wrap:anywhere}
#question-answer-body{min-height:170px;min-width:0}
.answer-ready{font-size:.875rem;color:var(--green);margin-bottom:16px}
.answer-section{min-width:0}.answer-section+.answer-section{margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}
.answer-section h3{font-size:1.125rem;line-height:1.6;margin:0 0 10px;color:var(--ink)}
.answer-prose{font-size:1rem;line-height:1.85;overflow-wrap:anywhere;min-width:0}
.answer-prose .question-prose{font-size:1rem;line-height:1.85;white-space:pre-wrap}
.answer-prose .katex{font-size:1.1em}.answer-prose .katex-display{margin:1em 0}
.answer-prose .katex-display[tabindex="0"]:focus-visible{outline:2px solid var(--green);outline-offset:3px;border-radius:3px}
.answer-prose .answer-math-hint{white-space:normal;margin:-6px 0 14px;font-size:.875rem;line-height:1.65}
.answer-state{position:relative;padding:20px 0;min-height:150px;overflow-wrap:anywhere}
.answer-state h3{font-size:1.125rem;line-height:1.6;margin:0 0 10px}
.answer-state p{font-size:1rem;line-height:1.75;margin:0;color:var(--muted)}
.answer-state p+p{margin-top:10px}.answer-state .answer-state-detail{font-size:.875rem;color:var(--ink)}
.answer-state .spinner{color:var(--green);margin-bottom:14px;width:20px;height:20px}
.answer-state.is-warning{min-height:0;background:#fff7de;border:1px solid #e5cf91;border-radius:12px;padding:18px;margin-bottom:16px;color:#704b0e}
.answer-state.is-warning p{color:#704b0e}
.answer-recovery,.answer-retry-confirm{margin-top:18px;padding-top:16px;border-top:1px solid var(--line);min-width:0}
.answer-recovery-note,.answer-format-note,.answer-action-feedback{font-size:.875rem;line-height:1.75;overflow-wrap:anywhere;color:var(--muted);margin:0 0 10px}
.answer-format-note{margin-top:-6px;margin-bottom:18px}.answer-action-feedback:empty{display:none}.answer-action-feedback{margin:16px 0 0;color:var(--green)}
.answer-action-feedback.is-error{color:#704b0e;background:#fff7de;border:1px solid #e5cf91;border-radius:10px;padding:12px 14px}
.answer-action-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.answer-action-buttons>.button{min-height:48px;max-width:100%;white-space:normal}
.answer-retry-confirm h3{font-size:1.125rem;line-height:1.6;margin:0 0 10px}.answer-retry-confirm>p{font-size:1rem;line-height:1.75;margin:0 0 12px;overflow-wrap:anywhere}
.answer-retry-confirm .answer-unknown-note{color:#704b0e;font-size:.875rem}.answer-ack{align-items:flex-start;padding:8px 0;line-height:1.7}.answer-ack input{margin-top:3px}
@media(max-width:600px){.answer-action-buttons>.button{flex:1 1 190px}.answer-recovery,.answer-retry-confirm{margin-top:16px}}
.answer-disclaimer{font-size:.875rem;line-height:1.65;color:var(--muted);margin:24px 0 0;padding-top:16px;border-top:1px solid var(--line)}
.export-answer-option{margin-top:20px;min-height:44px}
.budget-summaries{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:900px){.budget-summaries{grid-template-columns:1fr}}
@media(max-width:700px){.settings-page[data-section="answer"] [data-settings-panel="answer"]{display:block}}
@media(max-width:600px){#modal.question-answer-dialog{width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)}.question-answer-dialog>.modal-head{padding:10px 16px}.question-answer-dialog>.modal-body{padding:18px 16px 22px;max-height:calc(100dvh - 94px)}.answer-section+.answer-section{margin-top:20px;padding-top:18px}.answer-disclaimer{margin-top:20px}}
@media(prefers-reduced-motion:reduce){#modal.question-answer-dialog{animation:none}}
