:root{--blue:#4b87e7;--blue-dark:#326fcc;--ink:#203654;--muted:#74859a;--line:#e2ebf5;--pale:#f3f8ff;--white:#fff;--green:#2b976b;--danger:#bd354c;--radius:18px;font-family:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;color:var(--ink);font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--pale);font-size:15px;line-height:1.65}button,input,select,textarea{font:inherit;color:inherit}button,a,input{-webkit-tap-highlight-color:transparent}a{color:var(--blue);text-decoration:none}button{cursor:pointer;border:1px solid var(--line);background:white;border-radius:11px;padding:10px 16px;font-weight:600;min-height:44px;touch-action:manipulation}button:hover{background:#edf5ff}button:disabled{opacity:.5;cursor:not-allowed}.primary{background:var(--blue);border-color:var(--blue);color:white}.primary:hover{background:var(--blue-dark)}.danger{color:var(--danger)}button svg{width:18px;height:18px;vertical-align:-4px;margin-right:7px}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #e7b843;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:29px;letter-spacing:.3px;line-height:1.4}h2{font-size:20px}h3{font-size:17px}small,.muted{color:var(--muted)}.topbar{height:78px;background:white;border-bottom:1px solid var(--line);padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;gap:10px;align-items:center;color:var(--ink);white-space:nowrap}.brand strong{font-size:22px;font-weight:800}.brand-mark{width:38px;height:38px;display:grid;place-items:center;background:#edf5ff;border-radius:13px;color:var(--blue);font-size:27px}.brand-sub{font-size:12px;color:var(--muted);padding-left:12px;border-left:1px solid var(--line)}.top-actions{display:flex;gap:22px;font-size:13px}.demo-notice{background:#fff8e5;border-bottom:1px solid #f5e4b6;color:#846018;padding:8px 32px;font-size:12px}.layout{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:calc(100vh - 78px)}.sidebar{background:white;border-right:1px solid var(--line);padding:28px 16px;display:flex;flex-direction:column;gap:24px}.tool-name{font-weight:750;padding-left:15px;font-size:16px}nav{display:grid;gap:8px}nav button{border:0;text-align:left;padding:13px 16px;color:var(--muted);border-radius:12px}nav button.active{background:#edf5ff;color:var(--blue-dark)}nav svg{width:21px;height:21px;margin-right:13px;vertical-align:-5px}.sidebar-note{margin-top:auto;padding:18px 15px;color:var(--muted);font-size:12px;line-height:1.9}.sidebar-note strong{font-size:13px;color:var(--ink)}.sidebar-note p{margin-top:6px}main{padding:32px 38px 60px;min-width:0;max-width:1580px;width:100%;margin:auto;margin-top:0}.page-head{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-bottom:28px}.page-head p{font-size:13px;color:var(--muted);margin-top:5px}.head-actions,.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.class-select{max-width:250px}.class-row{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding:0 0 22px;margin-bottom:24px}.class-row .muted{font-size:13px}.panel{border:1px solid var(--line);background:white;border-radius:var(--radius);padding:24px;margin-bottom:20px;box-shadow:0 6px 18px #3762a004}.toolbar{margin-bottom:22px}.search{flex:1;min-width:180px;max-width:440px}.toolbar .spacer{flex:1}input:not([type=checkbox]):not([type=color]),select,textarea{border:1px solid #dae5f1;background:white;border-radius:10px;padding:10px 12px;min-height:44px;width:100%;outline-offset:2px}select{width:auto;max-width:100%}textarea{resize:vertical;min-height:80px}.task-list{display:grid;gap:16px}.task-card{border:1px solid var(--line);background:white;border-radius:18px;padding:24px;display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:24px;box-shadow:0 6px 18px #3762a004}.task-top{display:flex;gap:10px;align-items:center;margin-bottom:8px;flex-wrap:wrap}.tag{display:inline-flex;align-items:center;padding:2px 9px;border-radius:6px;background:#f0f5fc;color:#587493;font-size:12px;white-space:nowrap}.tag.ended{background:#f1f4f6;color:#6c7d8d}.tag.archived{background:#fff7e8;color:#a17935}.task-meta{color:var(--muted);font-size:12px;display:flex;gap:16px;flex-wrap:wrap}.task-description{font-size:13px;color:#61758d;margin-top:13px;overflow-wrap:anywhere}.task-progress{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted);margin-bottom:9px}.task-progress strong{font-size:26px;font-weight:750;color:var(--ink);line-height:1.2}.task-progress strong small{font-size:13px;color:var(--muted);font-weight:400}.progress-bar{height:6px;background:#edf2f9;border-radius:6px;overflow:hidden}.progress-bar span{height:100%;display:block;background:var(--blue);border-radius:6px}.task-buttons{display:flex;gap:8px;margin-top:17px}.task-buttons button{padding:9px 12px;flex:1;font-size:13px}.task-buttons button.primary{flex:1.6}.empty{text-align:center;padding:70px 20px;background:white;border:1px dashed #d3e2f3;border-radius:18px}.empty h2{margin:14px 0 8px}.empty p{color:var(--muted);font-size:14px;margin-bottom:22px}.empty-icon{color:var(--blue);width:64px;height:64px;margin:auto;background:#edf5ff;border-radius:18px;display:grid;place-items:center}.empty-icon svg{width:30px;height:30px}.summary-strip{display:flex;gap:32px;padding:18px 0;margin-bottom:15px;border-bottom:1px solid var(--line);flex-wrap:wrap}.summary-strip strong{font-size:25px;color:var(--blue-dark);margin-right:7px}.summary-strip span{font-size:13px;color:var(--muted)}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.section-head p{font-size:12px;color:var(--muted);margin-top:4px}.chips{display:flex;flex-wrap:wrap;gap:8px}.rule-line{padding:16px 0;border-top:1px solid var(--line);display:flex;gap:15px;align-items:center;justify-content:space-between}.rule-line .chips{margin-top:8px}.evaluation{color:var(--evaluation-color,#4b87e7);display:inline-flex;align-items:center;gap:6px;font-size:12px}.evaluation:before{content:"";width:7px;height:7px;background:currentColor;border-radius:50%}.qr-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:16px}.qr-card{position:relative;border:1px solid var(--line);border-radius:12px;padding:14px;text-align:center;background:white}.qr-card img{display:block;width:100%;aspect-ratio:1;margin:auto}.qr-card strong{font-size:14px;display:block}.qr-card small{font-size:12px}.qr-card input{position:absolute;top:9px;left:9px;accent-color:var(--blue);width:18px;height:18px}.filter-line{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:16px}.filter-line label{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:8px}.filter-line input[type=date]{width:155px}.filter-line select{min-width:120px}.periods{display:flex;gap:5px;padding:4px;background:#edf2f9;border-radius:12px}.periods button{border:0;min-height:36px;padding:6px 17px;background:transparent}.periods button.active{background:white;color:var(--blue-dark);box-shadow:0 2px 6px #2646630d}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:13px}th{font-size:12px;font-weight:500;color:var(--muted);background:#f8fbff;padding:14px 12px}td{padding:16px 12px;border-top:1px solid var(--line)}td button{padding:0;border:0;min-height:32px;background:none;color:var(--blue-dark)}td .student-name{font-weight:650;font-size:15px}td .sub{display:block;font-size:11px;color:var(--muted);max-width:360px;white-space:normal}.rate{font-weight:750;color:var(--green)}.back{border:0;background:none;padding:0;min-height:32px;font-size:13px;color:var(--muted);margin-bottom:15px}.row-actions{display:flex;gap:6px}.row-actions button{font-size:12px;padding:6px 9px;min-height:34px}.notice{border:1px solid #dbe9fa;border-radius:12px;background:#f0f6ff;padding:14px 18px;font-size:13px;color:#496b96;margin-bottom:20px}.error-box{background:#fff0f2;border:1px solid #efc1ca;color:var(--danger);padding:14px;border-radius:12px}.error-box p{font-size:13px;line-height:1.9;margin-top:7px}.scan-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px}.camera{background:#152238;border-radius:20px;aspect-ratio:4/3;position:relative;overflow:hidden;display:grid;place-items:center}.camera video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.camera-idle{position:relative;text-align:center;color:white;padding:28px}.camera-idle p{color:#b9cbe1;font-size:13px;max-width:320px;margin:12px auto 20px}.camera-idle svg{width:45px;height:45px}.scan-target{position:absolute;width:53%;aspect-ratio:1;border:2px solid #b8dbff;border-radius:20px;pointer-events:none;box-shadow:0 0 0 100vmax #15223844}.scan-caption{position:absolute;bottom:18px;left:0;right:0;text-align:center;font-size:12px;color:white}.scan-result{border:1px solid var(--line);background:#fff;border-radius:16px;padding:22px;min-height:140px;margin-top:16px}.scan-result.success{border-color:#b9ddcc;background:#f4fbf7}.scan-result.error{border-color:#efbcc7;background:#fff0f2;color:var(--danger)}.scan-result .result-name{font-size:25px;font-weight:750;line-height:1.4}.scan-result p{font-size:13px;color:var(--muted);margin-top:6px}.scan-result.error p{color:var(--danger)}.scan-result small{color:var(--green)}.scan-side{background:white;border:1px solid var(--line);border-radius:18px;padding:22px;align-self:start}.scan-side h3{margin-bottom:8px}.scan-side p{color:var(--muted);font-size:12px;margin-bottom:16px}.evaluation-buttons{display:grid;gap:10px}.evaluation-buttons button{border-left:4px solid var(--evaluation-color,var(--line));text-align:left}.evaluation-buttons button.selected{background:#eef5ff;border-color:var(--blue)}.scan-side .secondary-actions{display:grid;gap:10px;margin-top:22px}.demo-scan{margin-top:15px}.demo-scan select{width:100%;margin-top:8px}.demo-scan button{width:100%;margin-top:10px}dialog{border:1px solid var(--line);border-radius:20px;padding:28px;width:min(620px,calc(100vw - 28px));max-height:90dvh;color:var(--ink);box-shadow:0 25px 100px #20365433}dialog::backdrop{background:#162b4655;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}.dialog-head button{border:0;padding:0;min-height:32px;width:32px;font-size:22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:grid;gap:6px;font-size:13px}.field.wide{grid-column:1/-1}.field small{font-size:11px}.field select{width:100%}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.form-error{margin-top:16px;color:var(--danger);font-size:13px}.rule-editor{display:grid;gap:10px;margin-top:18px}.rule-editor-row{display:grid;grid-template-columns:minmax(0,1fr) 48px 80px 36px;gap:8px;align-items:center}.rule-editor-row input[type=color]{padding:2px;border:1px solid var(--line);border-radius:8px;width:44px;height:44px}.rule-editor-row button{padding:4px;min-height:36px}.report-details{margin-top:20px}.report-details .rule-line{display:block}.report-details .rule-line small{display:block}.report-actions{display:flex;gap:10px;margin-top:20px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#203654;color:white;padding:12px 22px;border-radius:12px;max-width:calc(100vw - 32px);box-shadow:0 8px 24px #20365425;z-index:10;font-size:13px}#toast.error{background:var(--danger)}[hidden]{display:none!important}.full-error{max-width:650px;margin:60px auto;background:white;border:1px solid var(--line);padding:32px;border-radius:18px}.full-error h2{margin-bottom:12px}.full-error p{margin-bottom:22px;color:var(--muted)}
@media(max-width:1050px){main{padding:28px 24px}.layout{grid-template-columns:185px minmax(0,1fr)}.scan-layout{grid-template-columns:1fr}.scan-side{display:block}.evaluation-buttons{grid-template-columns:repeat(2,1fr)}.scan-side .secondary-actions{grid-template-columns:1fr 1fr}.task-card{grid-template-columns:minmax(0,1fr) 180px;gap:16px}}
@media(max-width:700px){.topbar{height:64px;padding:0 16px}.brand strong{font-size:18px}.brand-mark{width:32px;height:32px;font-size:23px}.brand-sub,#teacher{display:none}.top-actions{font-size:12px}.demo-notice{padding:7px 16px;font-size:11px}.layout{display:block}.sidebar{position:sticky;top:0;z-index:3;display:block;padding:0 10px;border-right:0;border-bottom:1px solid var(--line)}.tool-name,.sidebar-note{display:none}nav{display:flex;gap:0}nav button{flex:1;text-align:center;white-space:nowrap;padding:12px 4px;border-radius:0;font-size:13px;border-bottom:3px solid transparent}nav button.active{background:white;border-bottom-color:var(--blue)}nav svg{width:17px;height:17px;margin-right:4px;vertical-align:-4px}main{padding:24px 16px 40px}h1{font-size:24px}.page-head{gap:12px;margin-bottom:21px}.page-head p{font-size:12px}.page-head .primary{padding:9px 11px;font-size:12px}.page-head .primary svg{display:none}.class-row{gap:8px;margin-bottom:18px;padding-bottom:16px}.class-select{max-width:215px;font-size:13px}.class-row .muted{font-size:11px}.toolbar{gap:8px;margin-bottom:17px}.toolbar button,.toolbar select{font-size:12px}.toolbar .search{max-width:none;flex-basis:100%}.task-card{display:block;padding:20px}.task-top h3{font-size:16px}.task-meta{gap:9px;font-size:11px}.task-card>div:last-child{margin-top:18px}.task-progress strong{font-size:23px}.task-buttons{margin-top:15px}.task-buttons button{font-size:13px;min-height:44px}.panel{padding:18px;border-radius:14px}.section-head h2{font-size:18px}.section-head button{font-size:12px;padding:8px 10px}.rule-line{gap:10px}.rule-line .row-actions{flex-wrap:wrap;justify-content:flex-end;max-width:130px}.rule-line .row-actions button{font-size:11px}.summary-strip{gap:18px;padding-top:8px}.summary-strip strong{font-size:22px}.summary-strip span{font-size:12px}.qr-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.qr-card{padding:14px 10px}.qr-card strong{font-size:13px}.filter-line{gap:8px}.filter-line select{min-width:0;max-width:calc(50vw - 26px);font-size:12px}.filter-line input[type=date]{width:135px;font-size:12px}.filter-line label{font-size:11px}.periods{width:100%}.periods button{flex:1;padding:6px 10px;font-size:12px}.camera{aspect-ratio:1}.scan-layout{gap:16px}.scan-result{padding:19px}.scan-result .result-name{font-size:24px}.scan-side{padding:19px}.evaluation-buttons button{font-size:14px;min-height:50px}.form-grid{grid-template-columns:1fr}.field.wide{grid-column:auto}dialog{padding:21px}.report-actions{flex-wrap:wrap}.empty{padding:48px 16px}.notice{padding:12px 14px;font-size:12px}.rule-editor-row{grid-template-columns:minmax(0,1fr) 44px 66px 28px;gap:5px}.rule-editor-row input{font-size:12px!important;padding:8px!important}.rule-editor-row input[type=color]{padding:2px!important}.head-actions{justify-content:flex-end}.scan-side .secondary-actions button{font-size:13px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s}.task-card{animation:appear .25s ease-out}@keyframes appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}}
@media(max-width:700px){.scan-mode .sidebar{display:none}.scan-mode main{padding-top:16px}.scan-mode .page-head{margin-bottom:12px}.scan-mode .class-row{display:none}.scan-mode .camera{aspect-ratio:4/3;max-height:240px}.scan-mode .summary-strip{padding:8px 0;margin:0 0 14px}.scan-mode .scan-result{min-height:0;padding:16px;margin-top:12px}.scan-mode .scan-layout{gap:12px}.scan-mode .scan-side{padding:16px}.scan-mode .scan-side h3{margin-bottom:4px}.scan-mode .scan-side p{margin-bottom:10px}.scan-mode .scan-side .secondary-actions{margin-top:12px}.scan-mode .camera-idle{padding:15px}.scan-mode .camera-idle p{margin:8px auto 13px;font-size:12px}.scan-mode .camera-idle h2{font-size:18px}}

.roster-shortcut,.roster-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:20px}.roster-shortcut{background:#edf5ff;padding:12px 16px;border-radius:12px}.roster-shortcut span{margin-right:auto;color:#496584;font-size:13px}.roster-list{max-height:50vh;overflow:auto;margin-top:16px}.roster-row{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #e4edf5}.roster-row small{display:block;margin-top:4px;color:#667d94}.import-divider{margin:14px 0;color:#667d94;font-size:13px}.template-link{display:inline-block;margin:14px 0 20px;color:#3672ce}.import-preview{max-height:40vh;overflow:auto;margin-top:16px}.import-preview thead{position:sticky;top:0;background:#f3f8ff}.notice p{margin-top:6px}.field textarea{min-height:140px}@media(max-width:700px){.roster-shortcut{gap:8px}.roster-shortcut span{width:100%}.head-actions{flex-wrap:wrap}.roster-row .row-actions{flex-wrap:nowrap}dialog{max-width:calc(100vw - 24px)}}
/* Phone-first collection flow: modes above the camera, feedback immediately below. */
:root{--blue:#286add;--blue-dark:#2059bb;--ink:#183454;--muted:#657990;--pale:#f4f7fc;--green:#168366;--line:#e0e8f2}
.home-guide{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px;padding:14px 18px;background:#eaf1ff;border-radius:14px;font-size:13px;color:#41618b}.home-guide button{border:0;background:transparent;color:var(--blue-dark);font-size:12px}.mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:5px;background:#eaf0f8;border-radius:13px;padding:5px}.mode-switch button{background:transparent;border:1px solid transparent;border-radius:10px;text-align:center;padding:8px 10px;font-size:15px}.mode-switch button small{display:block;font-size:11px;font-weight:400}.mode-switch button.active{background:white;color:var(--blue-dark);border-color:#c9d9f4;box-shadow:0 2px 5px #1834540a}.mode-switch button.active small{color:#5278ae}.scan-heading{display:flex;align-items:center;gap:12px;margin-bottom:10px}.scan-heading strong{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:20px}.scan-heading .back{margin:0;white-space:nowrap}.scan-heading>button:last-child{min-height:40px;padding:7px 13px;font-size:13px}.scan-controls{max-width:100%;background:white;border:1px solid var(--line);border-radius:16px;padding:12px;margin-bottom:16px}.preset-row{display:flex;align-items:center;gap:12px;margin-top:12px}.preset-row label{font-size:13px;color:var(--muted)}.preset-row select{flex:1;font-weight:700;color:var(--blue-dark)}#scan-mode-hint{font-size:12px;color:var(--muted);padding:8px 3px 0}.scan-mode .summary-strip{justify-content:space-between;padding:6px 0 12px;margin-bottom:12px}.scan-mode .summary-strip small{font-size:15px}.utility-panel{padding:8px 18px}.utility-panel>button{display:block;width:100%;text-align:left;border:0;border-radius:0;border-bottom:1px solid var(--line);padding:14px 0;min-height:56px}.utility-panel>button:last-child{border-bottom:0}.utility-panel>button span{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:3px}.settings-group summary{font-size:17px;font-weight:700;cursor:pointer}.settings-group[open] summary{margin-bottom:18px}.settings-group .section-head h2{display:none}.settings-group .section-head{justify-content:flex-end}.install-preview{display:grid;justify-items:center;gap:6px;margin-bottom:22px}.app-icon-preview{width:76px;height:76px;border-radius:20px;background:var(--blue);color:white;display:grid;place-items:center}.app-icon-preview svg{width:44px;height:44px}.install-preview small{font-size:12px}.install-steps{padding-left:23px;font-size:13px;line-height:1.8}.install-steps li{margin-bottom:10px}.install-close{width:100%}.task-meta{row-gap:4px}.task-meta span:last-child{color:#4972a4}.form-modes{margin-bottom:5px}#form-mode-hint{font-size:12px}.form-grid .task-note textarea{min-height:70px}.scan-result{min-height:108px}.scan-side .evaluation-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:700px){
 body{font-size:14px;line-height:1.55}.topbar{height:56px;padding:0 16px;gap:8px}.brand{gap:8px}.brand strong{font-size:16px}.brand-mark{width:30px;height:30px;border-radius:9px;font-size:22px}.top-actions{gap:8px}.top-settings{min-height:36px;padding:5px 9px;font-size:12px;border:0;background:transparent;color:var(--muted)}.layout{min-height:calc(100dvh - 56px)}.sidebar{position:fixed;inset:auto 0 0;z-index:5;background:#fff;padding:4px 10px calc(4px + env(safe-area-inset-bottom));border-top:1px solid var(--line);border-bottom:0;box-shadow:0 -4px 20px #18345405}nav{display:grid;grid-template-columns:repeat(4,1fr)}nav button{display:grid;justify-items:center;gap:4px;padding:8px 4px;min-height:54px;border:0;border-radius:10px;font-size:11px;font-weight:600}nav svg{width:22px;height:22px;margin:0}nav button.active{border:0;background:#edf3ff;color:var(--blue-dark)}main{padding:18px 16px calc(96px + env(safe-area-inset-bottom))}h1{font-size:25px}.page-head{align-items:flex-start;margin-bottom:14px;gap:10px}.page-head p{max-width:220px;font-size:12px;line-height:1.6}.page-head .primary{font-size:13px;min-height:44px;padding:10px 13px}.page-head .primary svg{display:inline-block;width:15px;height:15px;margin-right:3px}.head-actions{gap:7px}.head-actions button{padding:8px 10px;font-size:12px;min-height:42px}.class-row{justify-content:flex-start;gap:8px;padding-bottom:12px;margin-bottom:16px;flex-wrap:wrap}.class-row select{font-size:13px;min-height:38px;border:0;background:transparent;padding:4px 2px;font-weight:650}.class-row button{padding:5px 7px;min-height:32px;font-size:11px;border:0;background:transparent;color:var(--muted)}.class-row .muted{margin-left:auto;font-size:11px}.home-guide{display:block;padding:12px 14px;margin-bottom:17px;font-size:11px}.home-guide button{display:block;text-align:left;padding:7px 0 0;min-height:32px;font-size:12px}.toolbar{gap:8px}.toolbar .search{flex-basis:50%;min-width:100px;font-size:13px}.toolbar select{font-size:12px;min-height:44px}.toolbar .spacer{display:none}#task-count{width:100%;font-size:11px}.task-list{gap:12px}.task-card{padding:17px 18px;border-radius:16px}.task-top{justify-content:space-between;flex-wrap:nowrap}.task-top h3{font-size:16px;overflow-wrap:anywhere}.task-meta{font-size:11px;gap:4px 12px}.task-meta span:last-child{width:100%;margin-top:4px}.task-description{margin-top:8px;font-size:12px}.task-card>div:last-child{margin-top:14px}.task-progress strong{font-size:26px;font-variant-numeric:tabular-nums}.task-progress>span:last-child{font-size:11px}.task-buttons button{min-height:46px}.task-buttons button.primary{flex:2}.panel{padding:16px}.empty{padding:35px 15px}.scan-mode .topbar{height:44px}.scan-mode .brand strong{font-size:13px}.scan-mode .brand-mark{width:24px;height:24px;font-size:18px}.scan-mode .top-actions{display:none}.scan-mode main{padding:12px 16px calc(22px + env(safe-area-inset-bottom));max-width:560px}.scan-heading{gap:9px;margin-bottom:8px}.scan-heading strong{font-size:17px}.scan-heading .back{font-size:12px}.scan-mode .summary-strip{margin-bottom:10px;padding:3px 0 10px}.scan-mode .summary-strip strong{font-size:25px;font-variant-numeric:tabular-nums}.scan-controls{padding:9px;margin-bottom:12px;border-radius:14px}.mode-switch button{min-height:49px;font-size:14px;padding:7px 5px}.mode-switch button small{font-size:10px}.preset-row{margin-top:8px}.preset-row select{min-height:38px;padding:6px 10px;font-size:14px}.preset-row label{font-size:12px}#scan-mode-hint{font-size:11px;padding-top:7px}.scan-mode .camera{aspect-ratio:16/9;max-height:225px;border-radius:16px}.scan-mode .camera-idle{padding:10px}.scan-mode .camera-idle>svg{display:none}.scan-mode .camera-idle h2{font-size:16px}.scan-mode .camera-idle p{font-size:11px;margin:5px auto 10px}.scan-mode .camera-idle button{min-height:42px;padding:8px 18px;font-size:14px}.scan-target{width:43%;border-radius:14px}.scan-caption{bottom:8px;font-size:11px}.scan-mode .scan-result{padding:12px 15px;margin-top:10px;min-height:82px;border-radius:14px}.scan-result h3{font-size:16px}.scan-result .result-name{font-size:23px}.scan-result.success{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:8px}.scan-result.success small{grid-column:1/-1;font-size:11px}.scan-result.success p{font-size:12px;margin-top:0;text-align:right}.scan-mode .scan-layout{gap:10px}.scan-mode .scan-side{padding:13px 14px;border-radius:14px}.scan-side h3{font-size:14px}.scan-side p{font-size:11px}.scan-side .evaluation-buttons{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.evaluation-buttons button{min-height:40px;padding:6px 3px;font-size:12px;text-align:center;border-left-width:2px}.scan-side .secondary-actions{grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.scan-side .secondary-actions button{font-size:11px;padding:7px;min-height:39px}.scan-side .secondary-actions>[data-action=offline-photo]{grid-column:1/-1;min-height:34px;background:#f5f8fc;color:var(--muted);border:0;font-size:11px}.scan-side .secondary-actions>[data-action=undo-scan]{order:-1}.scan-side .secondary-actions>[data-action=detail]{order:-1}dialog{border-radius:18px;padding:20px;max-height:92dvh}.dialog-head{margin-bottom:16px}.dialog-head h2{font-size:19px}.form-grid{grid-template-columns:1fr 1fr;gap:13px}.field.wide{grid-column:1/-1}.field{font-size:12px}.field small{font-size:11px}.form-actions{margin-top:18px;position:sticky;bottom:0;padding-top:12px;background:white}.form-actions button.primary{flex:1}.form-actions button{min-height:46px}.utility-panel{padding:5px 16px}.qr-grid{gap:10px}.qr-card{border-radius:14px}.filter-line input[type=date]{width:130px}.filter-line{justify-content:space-between}.filter-line .search{min-width:150px}#toast{bottom:calc(84px + env(safe-area-inset-bottom));text-align:center;min-width:220px}.scan-mode #toast{bottom:20px}.settings-group .rule-line{flex-wrap:wrap}.settings-group .row-actions{max-width:none}.settings-group{margin-bottom:12px}
}
.brand-mark svg{width:100%;height:100%;display:block;border-radius:9px}.app-icon-preview{background:none}.app-icon-preview>svg{width:100%;height:100%;border-radius:20px}.utility-panel button svg{width:18px;height:18px}
@media(max-width:360px){.class-row .muted{margin-left:0;width:100%}.scan-side .evaluation-buttons button{font-size:11px}.scan-heading strong{font-size:15px}.scan-mode main{padding-left:12px;padding-right:12px}.home-guide{font-size:10px}.task-buttons button{padding-left:8px;padding-right:8px}}
#offline-ready{color:var(--green);font-size:11px;display:block;margin-top:3px}
@media(max-width:700px){.scan-mode .camera{aspect-ratio:4/3;max-height:320px}.scan-mode .scan-target{width:70%;max-width:290px;transform:translateY(-10px);border-radius:18px}.scan-mode .scan-caption{bottom:8px}}
@media(max-width:700px){
 .stats-table,.detail-table{display:block;white-space:normal}.stats-table thead,.detail-table thead{display:none}.stats-table tbody,.detail-table tbody{display:grid;gap:10px}.stats-table tr,.detail-table tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:12px;padding:12px;background:#fff;gap:8px}.stats-table td,.detail-table td{border:0;padding:0;min-width:0}.stats-table td:first-child,.detail-table td:first-child{grid-column:1/-1}.stats-table td:nth-child(n+2){background:#f5f8fc;padding:7px 8px;border-radius:8px;font-size:15px;font-variant-numeric:tabular-nums}.stats-table td:nth-child(n+2):before{display:block;font-size:10px;color:var(--muted);font-weight:400}.stats-table td:nth-child(2):before{content:'应交'}.stats-table td:nth-child(3):before{content:'已交'}.stats-table td:nth-child(4):before{content:'未交'}.stats-table td:nth-child(5):before{content:'提交率'}.stats-table td:nth-child(6):before{content:'总分 / 排名'}.stats-table td:nth-child(5){grid-column:1/-1;display:flex;align-items:center;justify-content:space-between}.stats-table td:nth-child(6){grid-column:1/-1}.stats-table td .sub{margin:4px 0 5px;font-size:11px}.detail-table tr{grid-template-columns:1fr 1fr}.detail-table td:first-child{grid-column:auto;font-size:14px}.detail-table td:nth-child(2){text-align:right}.detail-table td:nth-child(3){grid-column:1/-1}.detail-table td:nth-child(3):before{content:'本次评价';display:block;font-size:11px;color:var(--muted);margin-bottom:3px}.detail-table td:nth-child(3) select{width:100%;min-height:38px;padding:6px 10px}.detail-table td:nth-child(4){font-size:11px;color:var(--muted);align-self:center}.detail-table td:nth-child(5){text-align:right}.detail-table td:nth-child(5) button{min-height:38px;padding:5px 8px}.scan-mode .camera-idle h2{font-size:18px}.scan-mode .camera-idle p{font-size:12px;margin:8px auto 14px}
}
.install-tabs{display:flex;padding:4px;background:#edf2f9;border-radius:12px;gap:4px;margin-bottom:18px}.install-tabs button{flex:1;font-size:12px;padding:7px 6px;border:0;background:transparent;min-height:38px}.install-tabs button.active{background:white;color:var(--blue-dark);box-shadow:0 2px 5px #1834540a}.install-step-list{display:grid;gap:11px;margin-bottom:16px}.install-step{display:flex;align-items:flex-start;gap:10px;background:#f5f8fc;padding:13px;border-radius:13px}.step-number{flex-shrink:0;width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:var(--blue);color:white;font-weight:700;font-size:13px}.install-step>div{flex:1;min-width:0}.install-step strong{font-size:13px}.install-step p{font-size:11px;color:var(--muted);margin-top:5px;line-height:1.7}.step-symbol{width:32px;height:32px;display:grid;place-items:center;flex-shrink:0;background:white;color:var(--blue);font-size:21px;border-radius:8px}.install-note{font-size:11px;color:var(--muted);margin:12px 0 16px;line-height:1.7}
.camera:has(#camera-idle:not([hidden])):before{content:'';position:absolute;width:70%;aspect-ratio:1;max-height:86%;border:2px solid #b8dbff55;border-radius:18px;transform:translateY(-10px);pointer-events:none}
/* Shared structure, three restrained palettes. QR paper always stays white. */
:root{--accent-pale:#eaf1ff;--accent-line:#c9d9f4}
:root[data-theme=apricot]{--blue:#ac5b20;--blue-dark:#914714;--ink:#47362d;--muted:#806c5c;--pale:#fff8ef;--line:#eddcc9;--accent-pale:#fbead6;--accent-line:#e9c3a0}
:root[data-theme=green]{--blue:#237a66;--blue-dark:#17634f;--ink:#213a32;--muted:#627b70;--pale:#f3faf6;--line:#d9e9df;--accent-pale:#e1f1e8;--accent-line:#b8d9c8}
.home-guide,.roster-shortcut,nav button.active,.qr-view-switch,.mode-switch,.install-tabs,.empty-icon{background:var(--accent-pale);color:var(--blue-dark)}
.mode-switch button.active{border-color:var(--accent-line)}.mode-switch button.active small,.task-meta span:last-child{color:var(--blue-dark)}
button:hover{background:var(--accent-pale)}.primary:hover{background:var(--blue-dark)}.tag.active{background:var(--accent-pale);color:var(--blue-dark)}
input:not([type=checkbox]):not([type=color]),select,textarea{border-color:var(--line)}
.theme-panel h2{font-size:16px;margin-bottom:14px}.theme-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.theme-picker button{padding:12px 3px;display:grid;justify-items:center;gap:6px;font-size:12px;font-weight:600}.theme-picker button.active{border-color:var(--blue);background:var(--accent-pale)}.theme-picker small{font-size:10px;font-weight:400}.theme-dot{width:27px;height:27px;border-radius:50%;border:4px solid #fff;box-shadow:0 0 0 1px #ddd}.theme-dot.blue{background:#286add}.theme-dot.apricot{background:#ac5b20}.theme-dot.green{background:#237a66}
.roster-intro{display:grid;grid-template-columns:1fr auto;gap:14px;padding:18px;background:white;border:1px solid var(--line);border-radius:16px;margin-bottom:23px}.roster-intro strong{font-size:17px}.roster-intro small{display:block;font-size:11px;margin-top:5px}.roster-intro>button{align-self:center}.roster-secondary{grid-column:1/-1;display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:10px}.roster-secondary button{border:0;background:transparent;font-size:12px;padding:5px 0;color:var(--muted)}
.qr-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:8px}.qr-section-head h2{font-size:18px}.qr-section-head span{font-size:11px;color:var(--muted)}.qr-view-switch{display:flex;padding:4px;border-radius:12px;margin-bottom:14px}.qr-view-switch button{flex:1;border:0;background:transparent;font-size:13px}.qr-view-switch button.active{background:white;color:var(--blue-dark)}.qr-options{display:flex;gap:12px;align-items:end;margin-bottom:8px}.qr-options label{flex:1;color:var(--muted);font-size:11px}.qr-options label select{display:block;width:100%;margin-top:5px}.qr-options>select{font-size:12px}.qr-note{font-size:11px;color:var(--muted);margin:8px 0 14px;line-height:1.7}.qr-export{display:flex;gap:10px;padding:12px 0 2px;background:var(--pale)}.qr-export .primary{flex:1}.qr-export button{font-size:13px}
.a4-sheet{width:100%;max-width:650px;aspect-ratio:210/297;background:#fff;border:1px solid #c8cbd0;padding:4.76190476%;box-shadow:0 5px 15px #172b3a08;color:#111;margin:auto}.a4-grid{width:100%;height:100%;display:grid;grid-template-columns:repeat(var(--cols),1fr);grid-template-rows:repeat(var(--rows),1fr);border-left:1px dashed #9a9a9a;border-top:1px dashed #9a9a9a;gap:0}.a4-cell{display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:0;overflow:hidden;border-right:1px dashed #9a9a9a;border-bottom:1px dashed #9a9a9a;background:white}.a4-cell img{width:var(--qr-ratio);aspect-ratio:1;display:block}.a4-cell strong{font-size:clamp(5px,1.9vw,11px);line-height:1.3;font-weight:600;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.a4-cell small{color:#333;font-size:clamp(4px,1.5vw,8px);line-height:1.4}.a4-caption{text-align:center;font-size:11px;color:var(--muted);margin:8px 0 14px}.a4-zoom-hint{display:block;margin:5px auto 10px;background:transparent;border:0;min-height:32px;font-size:11px;color:var(--blue-dark);padding:0}.a4-zoom{overflow:auto}.a4-zoom .a4-sheet{width:650px;max-width:none;padding:30.95px}.a4-zoom .a4-cell strong{font-size:11px}.a4-zoom .a4-cell small{font-size:8px}.flow-steps{display:flex;gap:10px;background:var(--accent-pale);padding:12px;border-radius:10px;margin-bottom:18px;font-size:12px;color:var(--muted)}.flow-steps strong{color:var(--blue-dark)}.form-help{font-size:12px;margin-top:14px}
.tutorial-step-heading{display:flex;align-items:center;gap:9px;font-size:13px;margin-bottom:10px}.tutorial-step-heading small{margin-left:auto}.tutorial-image{display:block;width:100%;border:0;background:#f6f7f9;padding:0;border-radius:12px;overflow:hidden}.tutorial-image img{display:block;width:100%;max-height:340px;object-fit:contain}.tutorial-caption{font-size:11px;color:var(--muted);margin:10px 0}.tutorial-controls{display:flex;gap:10px}.tutorial-controls button{flex:1;font-size:12px}.tutorial-large{display:block;width:100%;margin-bottom:12px}.install-preview{margin-bottom:14px}.install-preview .app-icon-preview{width:60px;height:60px}
@media(min-width:701px){#qr-grid{max-width:650px}.a4-sheet{padding:30.95px}.a4-cell strong{font-size:11px}.a4-cell small{font-size:8px}.qr-export{max-width:650px}}
@media(max-width:700px){.qr-export{position:sticky;bottom:calc(72px + env(safe-area-inset-bottom));z-index:2}.roster-intro{padding:15px;gap:11px}.roster-intro>button{font-size:13px;padding:10px 12px}.class-row .muted{margin-left:0;flex-basis:100%}.class-row button{min-height:38px;padding:6px 9px;color:var(--blue-dark)}.qr-options select{font-size:12px}.tutorial-image img{max-height:300px}.theme-panel{margin-bottom:16px}}
.work-setting-links,.work-setting-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.work-setting-links button{border:0;background:transparent;padding:6px 8px;font-size:12px;color:var(--blue-dark);min-height:36px}.work-setting-tabs .active{background:var(--accent-pale);color:var(--blue-dark)}.field-link{border:0;background:transparent;color:var(--blue-dark);font-size:12px;padding:4px 0;min-height:32px;text-align:left}.form-section-label{font-weight:700;border-top:1px solid var(--line);padding-top:14px;font-size:14px}.attachment-actions{display:flex;gap:10px;margin:5px 0}.upload-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);padding:10px 15px;border-radius:10px;background:var(--accent-pale);color:var(--blue-dark);cursor:pointer;min-height:44px;font-size:13px}.attachment-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.attachment{position:relative}.attachment img{width:100%;height:100px;object-fit:cover;border-radius:9px}.attachment button{position:absolute;right:3px;top:3px;min-height:30px;width:30px;padding:0;border-radius:50%;background:white;color:#a12a39}.assignment-content h2{font-size:16px}.assignment-content p{white-space:pre-wrap;margin:10px 0;font-size:13px}.assignment-images{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:12px}.assignment-images img{width:100%;display:block;border-radius:8px}.record-comment{font-size:12px;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;margin-top:6px}.report-details .rule-line{flex-wrap:wrap}.report-details .record-comment{flex-basis:100%}.scan-comment-field{margin:12px 0 9px}.scan-comment-field textarea{min-height:72px;font-size:13px}.scan-comment-field small{font-size:10px}.scan-confirm{width:100%;min-height:45px;font-size:13px}.student-pick{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:12px}.student-pick button{text-align:left;font-size:13px}#image-status{font-size:11px;color:var(--muted)}
@media(max-width:700px){.scan-side .secondary-actions>[data-action=detail]{grid-column:1/-1}.detail-table td:nth-child(5) button{margin-left:4px}.scan-result.success{display:block}.scan-result.success p{text-align:left;margin-top:4px}.work-setting-links{margin-bottom:12px}.home-guide{margin-bottom:5px}}

/* Teacher-facing type scale and shared alignment. Keep paper/PDF measurements unchanged. */
:root{--muted:#61748a}body{font-size:16px}button{text-align:center;font-size:16px;line-height:1.45}button svg{display:inline-block;vertical-align:middle;margin-top:-2px}button:has(>svg){align-items:center}input:not([type=checkbox]):not([type=color]),select,textarea{font-size:16px;line-height:1.5}
.topbar{height:88px;padding:0 32px}.header-brands{display:flex;align-items:center;gap:24px;min-width:0}.platform-brand{display:flex;align-items:center;flex-shrink:0}.platform-brand img{display:block;width:180px;height:60px;object-fit:contain}.tool-brand{border-left:1px solid var(--line);padding-left:24px;gap:12px}.tool-brand strong{font-size:23px;line-height:1.2}.tool-brand .brand-mark{width:40px;height:40px;flex-shrink:0}.top-actions{align-items:center;gap:24px;font-size:16px;white-space:nowrap}.personal-center,#hall{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px}.personal-center{color:var(--ink);padding:8px 14px;background:var(--pale);border-radius:12px;border:1px solid var(--line)}.personal-center svg{width:20px;height:20px}.layout{min-height:calc(100dvh - 88px)}
.sidebar{padding:28px 20px}.tool-name{padding:0 16px;font-size:18px}#nav button{display:flex;align-items:center;justify-content:flex-start;gap:13px;width:100%;margin:0;padding:14px 16px;min-height:56px;font-size:17px;line-height:1.4}#nav button svg{flex-shrink:0;width:24px;height:24px;margin:0;display:block}#nav button.active{border:0}main{padding:32px 32px 60px}h1{font-size:32px}h2{font-size:22px}h3{font-size:19px}
.page-head p,.class-row .muted,.task-meta,.task-description,.tag,.section-head p,.qr-note,.qr-options label,.qr-options>select,.qr-section-head span,.task-progress,.task-progress strong small,.field small,.form-help,.form-error,.record-comment,.assignment-content p,.work-setting-links button,.flow-steps,.home-guide{font-size:14px}.task-top h3{font-size:20px}.task-buttons button,.head-actions button,.qr-export button,.row-actions button,.field,.filter-line label,.back{font-size:16px}.head-actions button{min-height:48px}.roster-intro{padding:24px}.roster-intro strong{font-size:20px}.roster-intro small,.roster-secondary button{font-size:15px}.head-actions:has([data-action=add-class]){padding-right:25px}.head-actions [data-action=add-class],.roster-intro>[data-action=import-students]{min-width:144px;min-height:48px;padding:10px 18px}
.qr-view-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.qr-view-switch button,.mode-switch button{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:48px;font-size:16px;line-height:1.5}.mode-switch button small{font-size:13px}.qr-options{gap:12px}.qr-options select{font-size:16px}.a4-zoom-hint,.a4-caption{font-size:14px}.qr-export{max-width:none;width:100%;align-items:center;justify-content:center}.qr-export button{min-height:48px}.qr-export .primary{flex:1}.qr-export button svg{margin-right:6px}
table{font-size:15px}th{font-size:14px}td .student-name{font-size:17px}td .sub{font-size:14px}.stats-table td:not(:first-child),.stats-table th:not(:first-child),.detail-table td:not(:first-child),.detail-table th:not(:first-child){text-align:center}.assignment-content h2{font-size:20px}.summary-strip span{font-size:16px}.summary-strip strong{font-size:28px}.theme-panel h2{font-size:20px}.theme-picker button{font-size:15px}.theme-picker small{font-size:13px}.utility-panel>button span{font-size:14px}
.scan-side{padding:20px}.scan-side h3{font-size:19px}.scan-side p,.scan-result p,.scan-result small,#scan-mode-hint,.preset-row label,.scan-comment-field small,.scan-side .secondary-actions button{font-size:14px}.scan-side .evaluation-buttons button{display:flex;align-items:center;justify-content:center;min-height:46px;text-align:center;font-size:16px;padding:9px 6px}.scan-comment-field textarea{font-size:16px;min-height:90px}.scan-confirm{font-size:16px;min-height:48px}.scan-side .secondary-actions button{min-height:44px}.scan-heading strong{font-size:23px}.scan-heading .back,.scan-heading>button:last-child{font-size:16px}.preset-row select{font-size:16px}
.comment-samples{margin:16px 0}.comment-samples>p{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 10px;font-size:16px;color:var(--ink);font-weight:650}.comment-samples>p span{font-size:14px;font-weight:400;color:var(--muted)}.comment-sample-list{display:grid;gap:8px}.comment-sample-list button{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:10px;padding:10px 12px;text-align:left;min-height:48px;font-size:14px;font-weight:400}.comment-sample-list button strong{display:flex;align-items:center;justify-content:center;align-self:stretch;min-height:30px;border-radius:7px;background:var(--accent-pale);color:var(--blue-dark);font-size:14px}.comment-sample-list button span{line-height:1.6}.comment-sample-list button.selected{border-color:var(--blue);background:var(--accent-pale)}.comment-samples>small{display:block;font-size:13px;margin-top:8px}.upload-button,.field-link{font-size:15px}.form-section-label{font-size:17px}
@media(min-width:1051px){.scan-layout{grid-template-columns:minmax(0,1fr) 390px}.scan-side .evaluation-buttons{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1050px) and (min-width:701px){.platform-brand img{width:140px}.header-brands{gap:16px}.tool-brand{padding-left:16px}.tool-brand strong{font-size:20px}.top-actions{gap:16px}.layout{grid-template-columns:190px minmax(0,1fr)}}
@media(max-width:700px){
 body{font-size:16px}.topbar{height:66px;padding:0 12px;gap:8px}.header-brands{gap:10px;flex:1}.platform-brand img{width:82px;height:34px}.tool-brand{padding-left:10px;gap:6px}.tool-brand strong{font-size:15px}.tool-brand .brand-mark{width:26px;height:26px}.top-actions{gap:4px}.personal-center,#hall{width:34px;min-height:38px;padding:5px;border:0;background:none}.personal-center span,#hall>span:first-child{display:none}.personal-center svg{width:21px;height:21px}.layout{min-height:calc(100dvh - 66px)}.sidebar{padding:4px 10px calc(4px + env(safe-area-inset-bottom))}#nav{gap:0}#nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px 4px;min-height:60px;font-size:13px}#nav button svg{width:24px;height:24px}main{padding:22px 16px calc(102px + env(safe-area-inset-bottom))}h1{font-size:28px}h2{font-size:21px}h3{font-size:19px}.page-head{gap:12px;align-items:center}.page-head p{font-size:14px;max-width:220px}.page-head .primary,.head-actions button{font-size:16px;min-height:48px;padding:10px 12px}.head-actions{gap:8px}.class-row select{font-size:16px;min-height:44px}.class-row .muted{font-size:14px}.home-guide{font-size:14px;padding:12px;margin-bottom:8px}.work-setting-links button{font-size:14px;padding:7px 4px}.toolbar .search,.toolbar select{font-size:16px}#task-count{font-size:14px}.task-card{padding:18px}.task-top h3{font-size:19px}.task-meta{font-size:14px;gap:6px 12px}.task-description{font-size:15px}.task-progress>span:last-child{font-size:14px}.task-buttons button{font-size:16px;min-height:48px}.panel{padding:18px}.roster-intro{padding:18px;gap:12px}.roster-intro strong{font-size:18px}.roster-intro small{font-size:14px}.roster-secondary button{font-size:14px}.head-actions:has([data-action=add-class]){padding-right:19px}.head-actions [data-action=add-class],.roster-intro>[data-action=import-students]{min-width:118px;font-size:16px;padding:10px 12px}.qr-section-head{align-items:flex-start;flex-direction:column}.qr-section-head h2{font-size:21px}.qr-section-head span{font-size:14px}.qr-options label,.qr-note,.a4-caption{font-size:14px}.qr-options select{font-size:16px}.qr-export{bottom:calc(80px + env(safe-area-inset-bottom))}.qr-export button{font-size:16px;min-height:48px}.filter-line label{font-size:14px}.filter-line input[type=date]{width:142px;font-size:15px}.filter-line select{font-size:16px}.periods{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.periods button{font-size:15px;padding:8px 6px;min-height:44px}.stats-table td:nth-child(n+2):before,.stats-table td .sub,.detail-table td:nth-child(3):before,.detail-table td:nth-child(4){font-size:14px}.stats-table td:nth-child(n+2){font-size:16px}.detail-table td:first-child,.detail-table td:nth-child(5) button{font-size:16px}.theme-picker button{font-size:14px}.theme-picker small{font-size:13px}.utility-panel>button span{font-size:14px}.field,.field small{font-size:14px}.dialog-head h2{font-size:23px}.form-grid{gap:16px}.form-actions button{font-size:16px;min-height:48px}.form-modes .mode-switch button{font-size:15px}.mode-switch button small{font-size:13px}.scan-mode .topbar{height:56px}.scan-mode .tool-brand strong{font-size:14px}.scan-mode .tool-brand .brand-mark{width:24px;height:24px}.scan-mode .platform-brand img{width:74px}.scan-mode main{padding:16px 16px 28px}.scan-heading strong{font-size:19px}.scan-heading .back,.scan-heading>button:last-child{font-size:14px;min-height:44px}.scan-mode .summary-strip small{font-size:16px}.scan-mode .summary-strip strong{font-size:28px}.scan-controls{padding:12px}.mode-switch button{min-height:56px;font-size:16px}.preset-row label{font-size:14px}.preset-row select{font-size:16px;min-height:44px}#scan-mode-hint{font-size:14px;line-height:1.6}.scan-mode .camera-idle p,.scan-caption{font-size:14px}.scan-mode .camera-idle button{font-size:16px;min-height:48px}.scan-mode .scan-result{padding:16px}.scan-result .result-name{font-size:26px}.scan-result small,.scan-result p{font-size:14px}.scan-mode .scan-side{padding:18px}.scan-side h3{font-size:19px}.scan-side p{font-size:14px}.scan-side .evaluation-buttons{gap:7px}.scan-side .evaluation-buttons button{font-size:15px;min-height:46px}.scan-side .secondary-actions button{font-size:14px;min-height:44px}.comment-sample-list button{grid-template-columns:60px minmax(0,1fr);gap:10px;font-size:14px;padding:10px}.comment-samples>small,.scan-comment-field small{font-size:13px}.scan-comment-field textarea{font-size:16px}.scan-confirm{font-size:16px;min-height:48px}.theme-panel h2{font-size:20px}.tutorial-step-heading,.tutorial-controls button,.install-tabs button{font-size:14px}.tutorial-caption,.install-note,.install-step p{font-size:14px}.install-step strong{font-size:16px}#toast{font-size:15px;bottom:calc(92px + env(safe-area-inset-bottom))}
}
@media(max-width:360px){.topbar{padding:0 8px}.header-brands{gap:7px}.platform-brand img{width:70px}.tool-brand{padding-left:7px}.tool-brand strong{font-size:14px}.tool-brand .brand-mark{width:24px;height:24px}.personal-center,#hall{width:30px}.page-head .primary{padding:10px 9px;font-size:15px}.head-actions:has([data-action=add-class]){padding-right:19px}.head-actions [data-action=add-class],.roster-intro>[data-action=import-students]{min-width:108px;font-size:15px}.qr-options{gap:8px}.qr-options select{font-size:14px}}
@media(max-width:700px){.platform-brand{display:none}.tool-brand{border:0;padding-left:0}.tool-brand strong{font-size:17px}.header-brands{gap:0}.top-actions{gap:8px}#hall{width:auto;font-size:14px;padding:5px 0}#hall>span:first-child{display:inline}.scan-mode .tool-brand strong{font-size:16px}}
.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.field{min-width:0}.field input,.field select,.field textarea{min-width:0;max-width:100%}
@media(max-width:700px){.field input[type=date]{padding-left:8px;padding-right:8px}.stats-table td:first-child,.detail-table td:first-child{text-align:left}.form-actions{padding-bottom:4px}.field.wide>small{line-height:1.65}}

.class-quota{font-size:14px;color:var(--muted);margin:0 0 18px;line-height:1.65}.class-quota+.flow-steps{margin-top:10px}

.class-choices{display:grid;gap:14px;margin:20px 0}.class-choices button{width:100%;min-height:88px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;gap:6px;padding:18px}.class-choices strong{font-size:20px}.class-choices small{font-weight:400;font-size:16px;line-height:1.6;color:var(--muted)}
