:root{font-family:system-ui,-apple-system,"Segoe UI","맑은 고딕",sans-serif;color:#213448;background:#f3f6fa;font-synthesis:none;--blue:#315bce;--line:#d7e0eb;--muted:#66778b}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled,input:disabled{cursor:default}button:disabled{opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #d17a11;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:1.5rem;letter-spacing:-.04em}h2{font-size:1.05rem}h3{font-size:.95rem}p{line-height:1.6}a{color:inherit}.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid transparent;border-radius:8px;padding:9px 13px;min-height:40px;background:#fff;color:#294564;font-size:.86rem;font-weight:600;text-decoration:none;white-space:nowrap}.primary{background:var(--blue);color:white}.primary:hover:not(:disabled){background:#2447b0}.secondary{border-color:#c6d4e5;background:white}.quiet{background:transparent;color:#596f88}.button:hover:not(:disabled){filter:brightness(.97)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:absolute;left:12px;top:-80px;padding:10px;background:white;z-index:100}.skip-link:focus{top:10px}.app-header{display:flex;align-items:center;justify-content:space-between;gap:20px;background:white;border-bottom:1px solid var(--line);padding:12px 28px}.brand{display:flex;align-items:center;gap:9px;text-decoration:none}.brand strong{font-size:1.06rem}.brand span{border-left:1px solid #d5dce6;padding-left:10px;font-size:.85rem;color:var(--muted)}.header-actions{display:flex;align-items:center;gap:6px}.header-actions>span{font-size:.74rem;color:#7b8897;margin-right:10px}main{max-width:1920px;margin:auto;padding:20px 28px 24px}.stage-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px}.eyebrow{font-size:.73rem;color:var(--muted);margin-bottom:3px}.step-nav{display:flex;list-style:none;margin:0;padding:0;gap:8px}.step-nav button{display:flex;align-items:center;gap:7px;border:0;background:transparent;color:#7b8899;padding:7px;font-size:.8rem}.step-nav button>span{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#e3e9f1;font-weight:700}.step-nav button[aria-current=step]{color:var(--blue);font-weight:700}.step-nav button[aria-current=step]>span{background:var(--blue);color:white}.step-nav button:disabled{opacity:.8}.message{padding:10px 14px;border-radius:8px;margin-bottom:12px;font-size:.86rem;line-height:1.5}.error-message{background:#fff0ef;color:#963a36;border:1px solid #f2c4c0}.notice-message{background:#eaf2ff;border:1px solid #ccdef9;color:#335d93}.busy-status{padding:10px;background:#fff8db;margin-bottom:12px;font-size:.86rem}.setup-card,.output-card{background:white;border:1px solid var(--line);border-radius:12px;padding:22px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.section-title p,.setup-card>p{font-size:.86rem;color:var(--muted);margin-top:6px}.setting-head,.setting-row{display:grid;grid-template-columns:repeat(3,minmax(110px,180px)) 64px;gap:12px;align-items:center}.setting-head{color:var(--muted);font-size:.8rem;margin-bottom:8px}.setting-row{margin-bottom:10px}input[type=number],select,input[type=search]{border:1px solid #c7d3e2;background:white;border-radius:7px;padding:9px 11px;min-height:40px;color:#28435e;width:100%}input[type=number]:disabled{background:#f5f7fb}.intake-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.section-index{display:inline-grid;place-items:center;width:27px;height:27px;background:#edf2fc;color:var(--blue);border-radius:7px;font-weight:700;margin-bottom:12px}.header-example{display:flex;flex-wrap:wrap;gap:0;margin:15px 0 18px!important}.header-example span{padding:8px 10px;background:#f0f4fa;border:1px solid #dce4ef;margin-left:-1px;font-size:.77rem}.compact-help{margin-top:15px;font-size:.83rem;color:#536d89}.compact-help summary{cursor:pointer}.compact-help p{margin-top:8px}.text-button{border:0;background:#edf3fe;color:#355993;padding:7px 10px;border-radius:5px;margin:3px;cursor:pointer}.file-picker{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:145px;background:#f5f8fe;border:2px dashed #b7c8e4;border-radius:10px;margin:18px 0;font-size:.88rem;color:#315b97;font-weight:700}.file-picker input{max-width:90%;font-size:.78rem;font-weight:400}.is-busy{opacity:.6}.caption{color:var(--muted);font-size:.77rem;line-height:1.6}.empty-intake{margin-top:20px;padding:20px;background:#f8fafd;border-radius:8px;color:#8493a5;font-size:.83rem}.import-ready{margin-top:18px;padding:14px 16px;background:#eef8f3;border-radius:8px;color:#316d53}.import-ready p{font-size:.8rem;margin-top:4px}.import-ready span{display:block;font-size:.78rem;margin-top:4px}.stage-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding-top:16px}.stage-actions>span{color:var(--muted);font-size:.8rem}.flow-line{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:.84rem;color:#61758d;margin-bottom:14px}.flow-line details{position:relative;max-width:340px}.flow-line summary{cursor:pointer;white-space:nowrap}.flow-line details[open]{padding:12px;background:white;border:1px solid var(--line);border-radius:8px}.work-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}.work-layout.with-issues{grid-template-columns:290px minmax(0,1fr)}.board-panel{background:white;border:1px solid var(--line);border-radius:11px;min-width:0;overflow:hidden}.board-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line)}.grade-tabs{display:flex;flex-wrap:wrap;gap:5px}.grade-tab{border:0;border-radius:6px;padding:8px 12px;background:#f2f5fa;color:#667b95;font-size:.86rem;font-weight:700}.grade-tab.active{background:#e7efff;color:var(--blue)}.search-label{max-width:195px}.search-label input{min-height:34px;font-size:.78rem}.selection-tools{display:flex;align-items:center;gap:7px;padding:9px 12px;background:#f4f7fc;border-bottom:1px solid var(--line);flex-wrap:wrap;font-size:.78rem}.selection-tools strong{min-width:64px;color:#416185}.selection-tools select{max-width:92px;min-height:34px;padding:5px 9px}.selection-tools .button{min-height:34px;padding:5px 10px;font-size:.77rem}.history-buttons{margin-left:auto;display:flex;gap:2px}.board-columns{display:flex;align-items:flex-start;gap:10px;overflow:auto;padding:12px;height:calc(100vh - 285px);min-height:350px;scrollbar-width:thin;scrollbar-color:#bdcbdc transparent}.class-column{flex:1 0 198px;min-width:198px;max-width:270px;border:1px solid var(--line);border-radius:8px;background:#fbfcfe}.class-header{position:sticky;top:-12px;z-index:2;display:grid;grid-template-columns:1fr auto;gap:4px;background:#eef3fa;padding:10px 12px;border-bottom:1px solid var(--line);border-radius:7px 7px 0 0}.class-header h2{font-size:.94rem}.class-header>strong{font-size:.84rem}.class-header>span{grid-column:1/-1;color:#637a93;font-size:.75rem}.student-list{display:grid;gap:5px;padding:7px}.student-card{display:flex;align-items:center;gap:4px;border:1px solid #dbe3ee;border-left:3px solid #88b0e2;border-radius:5px;min-height:39px;padding:5px 6px;background:white;position:relative}.student-card.female-card{border-left-color:#cb8cab}.student-select{display:flex;align-items:center;gap:6px;min-width:0;flex:1;cursor:pointer}.student-select input{width:16px;height:16px;accent-color:var(--blue);margin:0;flex-shrink:0}.student-select strong{font-size:.82rem;font-weight:600;line-height:1.4;overflow-wrap:anywhere}.gender{font-size:.65rem;color:#607b9b;border-radius:3px;background:#edf3fc;padding:2px 3px;flex-shrink:0}.female-card .gender{background:#faeff5;color:#975975}.card-state{font-size:.62rem;color:#7c8794;white-space:nowrap}.student-info{font-size:.65rem;padding:5px 3px;border:0;background:transparent;color:#63768d;flex-shrink:0;min-height:27px}.student-card.selected{outline:2px solid var(--blue);outline-offset:-1px;background:#eaf1ff}.student-card.related{box-shadow:inset 0 0 0 1px #d59132}.student-card.processed{background:#f0f2f5;color:#8090a1}.student-card.processed .student-select{cursor:default}.student-card.search-match{background:#fff4cf;outline:2px solid #d29724}.student-card[draggable=true]{cursor:grab}.student-card.dragging{opacity:.45}.drop-target{outline:3px dashed #6188d6}.empty-class{font-size:.75rem;color:#9aa7b6;padding:20px 10px;text-align:center}.deferred-info{padding:10px 14px;font-size:.77rem;color:#768296;background:#f8fafc;border-top:1px solid var(--line)}.deferred-info summary{cursor:pointer}.deferred-info p{padding-top:8px}.issues-panel{background:white;border:1px solid var(--line);border-radius:11px;padding:14px;min-width:0;max-height:calc(100vh - 230px);overflow:auto;scrollbar-width:thin}.issues-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.issues-heading strong{font-size:1.2rem;color:var(--blue)}.issues-heading small{font-size:.72rem;font-weight:400;margin-left:3px}.issue-list{display:grid;gap:6px;margin-top:12px;max-height:245px;overflow:auto;scrollbar-width:thin}.issue-item{display:flex;gap:8px;align-items:flex-start;text-align:left;border:1px solid #e1e7ef;border-radius:7px;background:white;padding:10px 8px;min-height:52px}.issue-item.active{background:#eef4ff;border-color:#6186cf}.issue-item small{display:block;font-size:.65rem;color:#7c8ba0;margin-bottom:3px}.issue-item strong{font-size:.77rem;line-height:1.45;display:block}.issue-kind{font-size:.61rem;padding:3px 4px;border-radius:4px;background:#edf1f7;color:#627589;margin-top:2px;flex-shrink:0}.error-kind{background:#fff0e4;color:#aa692e}.proposal-panel{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.proposal-panel>p{font-size:.77rem;color:var(--muted);margin:7px 0}.proposal{border:1px solid #d4e0f5;background:#f7faff;border-radius:8px;padding:12px;margin-top:10px;font-size:.77rem}.proposal>strong{color:#4166a1}.proposal ul{padding-left:18px;margin:8px 0;line-height:1.6}.proposal p{font-size:.72rem;color:#677e96;margin-bottom:9px}.proposal-before{padding:7px;background:white;border-radius:4px}.proposal .button{width:100%;font-size:.78rem}.proposal-placeholder,.issues-empty,.no-proposal{font-size:.8rem;color:#73869c;padding:18px 4px}.no-proposal{background:#fff8ed;border-radius:7px;padding:12px}.no-proposal p,.issues-empty p{font-size:.75rem;margin-top:5px}.review-panel{background:white;border:1px solid var(--line);border-radius:11px;padding:17px;margin-bottom:14px}.review-panel .section-title{margin-bottom:13px}.review-panel .section-title p{font-size:.8rem}.review-total{color:#39765a;background:#edf8f1;padding:7px 10px;border-radius:6px;font-size:.8rem;white-space:nowrap}.review-total.has-errors{color:#a95d30;background:#fff0e2}.review-checks{display:flex;flex-wrap:wrap;gap:7px}.review-check{display:flex;gap:6px;align-items:center;border:1px solid #d6e8df;border-radius:6px;padding:7px 9px;font-size:.73rem;background:#fbfdfc}.review-check span{color:#3e8b62}.review-check small{color:#89968e;font-size:.65rem}.review-check.needs-review{background:#fffbf4;border-color:#ebd7b5}.review-check.needs-review span{color:#b07524}.remaining-issues{margin-top:14px;font-size:.8rem;color:#80664b}.remaining-issues summary{cursor:pointer}.remaining-issues li{margin:6px 0;line-height:1.5}.review-panel+.work-layout .board-columns{height:calc(100vh - 430px)}.gender-order{border:0;padding:0;display:flex;gap:14px;white-space:nowrap}.gender-order legend{font-size:.72rem;color:#71839a;margin-bottom:6px}.gender-order label{font-size:.85rem}.gender-order input{accent-color:var(--blue)}.output-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-start;margin-bottom:18px}.hwp-options>summary{cursor:pointer;list-style:none}.hwp-options>div{border:1px solid var(--line);border-radius:7px;padding:10px;max-width:400px;font-size:.74rem;margin-top:8px;background:#f8fafc}.hwp-options p{margin-top:7px;color:var(--muted)}.result-table{max-height:calc(100vh - 300px);overflow:auto;border:1px solid var(--line);border-radius:8px}table{border-collapse:collapse;width:100%;font-size:.85rem}th{background:#eef3fa;position:sticky;top:0;text-align:left;color:#3f5d7b}th,td{padding:10px 16px;border-bottom:1px solid #e5ebf3}tbody tr:nth-child(even){background:#fafbfd}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#233d59;color:white;padding:12px 20px;border-radius:9px;z-index:20;max-width:90%;font-size:.85rem;box-shadow:0 8px 30px #1233}.toast[hidden]{display:none}dialog{border:1px solid var(--line);border-radius:12px;max-width:560px;width:calc(100% - 36px);padding:0;color:#28405b}dialog::backdrop{background:#17345066}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid var(--line)}.icon-close{position:relative;width:34px;height:34px;font-size:0;border:0;background:transparent;border-radius:6px}.icon-close:before,.icon-close:after{content:"";position:absolute;width:16px;height:2px;background:#68819d;left:9px;top:16px;transform:rotate(45deg)}.icon-close:after{transform:rotate(-45deg)}.modal-body{padding:20px 22px;font-size:.87rem;max-height:65vh;overflow:auto}.modal-body p{margin-bottom:10px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;padding:14px 22px;border-top:1px solid var(--line)}.student-details{display:grid;grid-template-columns:100px 1fr;gap:12px;margin:0}.student-details dt{color:#7d8ca0}.student-details dd{margin:0;overflow-wrap:anywhere}.help-flow li{margin-bottom:10px}
@media(min-width:1550px){.class-column{min-width:210px;flex-basis:210px}}@media(max-width:1000px){.app-header{padding:10px 16px}.header-actions>span{display:none}main{padding:16px}.stage-header{align-items:flex-start}.step-nav{gap:2px}.step-nav button{font-size:.72rem;padding:5px}.step-nav button>span{width:21px;height:21px}.work-layout.with-issues{grid-template-columns:250px minmax(0,1fr)}.history-buttons{margin-left:0}}@media(max-width:720px){.app-header{flex-wrap:wrap;gap:7px}.header-actions{width:100%;justify-content:space-between}.header-actions .button{font-size:.72rem;padding:7px 8px;min-height:35px}.stage-header{flex-direction:column;gap:10px}.step-nav{flex-wrap:wrap}.step-nav button{font-size:.72rem}.intake-grid{grid-template-columns:1fr}.setup-card{padding:16px}.setting-head,.setting-row{grid-template-columns:repeat(3,minmax(0,1fr)) 48px;gap:7px}.setting-row input{padding:8px}.work-layout.with-issues{grid-template-columns:1fr}.issues-panel{max-height:330px}.issue-list{max-height:130px}.board-columns{height:65vh;min-height:320px}.class-column{min-width:195px;flex-basis:195px}.board-top{flex-wrap:wrap}.flow-line{align-items:flex-start}.section-title{align-items:flex-start;flex-wrap:wrap}.output-card{padding:14px}.review-panel+.work-layout .board-columns{height:65vh}.stage-actions{flex-wrap:wrap}.student-select input{width:18px;height:18px}.student-card{min-height:44px}}
@media print{body,main{background:white;padding:0;margin:0}.app-header,.stage-header,.message,.stage-actions,.output-actions,.output-card>.section-title,.toast,dialog{display:none!important}.output-card{border:0;padding:0}.result-table{max-height:none;overflow:visible;border:0}table{font-size:10pt}th{position:static}th,td{padding:5px 10px;border:1px solid #bbc5d0}thead{display:table-header-group}tr{break-inside:avoid}}

.download-ready{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#edf8f1;border:1px solid #cee6d9;border-radius:8px;padding:8px 14px;margin-bottom:12px;font-size:.8rem;color:#316d53}.download-ready a{font-weight:600}.download-ready .button{min-height:30px;padding:4px 8px}
.stage-actions{position:sticky;bottom:0;background:#f3f6faef;padding-bottom:8px;z-index:3}.student-card:hover:not(.processed):not(.selected){background:#f5f8ff}.proposal button{position:sticky;bottom:0}.issues-panel{scroll-padding-top:12px}
@media print{.download-ready{display:none!important}}
@media(min-width:721px){main:has(.work-layout){height:calc(100dvh - 65px);display:flex;flex-direction:column;min-height:0}.stage-header,.flow-line,.message,.download-ready,.stage-actions{flex-shrink:0}.work-layout{flex:1;min-height:200px}.board-panel{display:flex;flex-direction:column}.board-top,.selection-tools,.deferred-info{flex-shrink:0}.board-columns,.review-panel+.work-layout .board-columns{flex:1;height:auto;min-height:0}.issues-panel{max-height:none;min-height:0}.review-panel{max-height:210px;overflow:auto;flex-shrink:0}.stage-actions{position:static}.deferred-info[open]{max-height:100px;overflow:auto}}
@media(min-width:721px){main:has(.work-layout){padding-top:12px;padding-bottom:16px}main:has(.work-layout) .eyebrow{display:none}main:has(.work-layout) .stage-header{margin-bottom:10px}main:has(.work-layout) h1{font-size:1.25rem}main:has(.work-layout) .flow-line{margin-bottom:8px}.board-top{padding-top:8px;padding-bottom:8px}.selection-tools{padding-top:6px;padding-bottom:6px}}
.brand-mark{display:block;flex-shrink:0;object-fit:contain}.brand .brand-cross{border:0;padding:0;color:#8390a1;font-size:1.15rem}.schoolbell-brand{display:block;object-fit:contain;flex-shrink:0}.brand .brand-context{white-space:nowrap}
@media(min-width:721px){body:has(.work-layout){height:100dvh;display:flex;flex-direction:column}.app-header{flex-shrink:0}main:has(.work-layout){width:100%;flex:1;height:auto;min-height:0}}
@media(max-width:1050px){.app-header{flex-wrap:wrap;gap:8px}.header-actions{margin-left:auto}}
@media(max-width:720px){.brand{gap:7px}.brand-mark{width:34px;height:34px}.schoolbell-brand{width:94px;height:33px}.brand .brand-cross{font-size:1rem}}

.demo-entry{background:#f1f7ff;border:1px solid #cbdced;border-radius:14px;padding:18px 22px;display:flex;align-items:center;gap:12px 24px;flex-wrap:wrap;margin-bottom:16px}.demo-entry h2{font-size:18px;margin:0 0 6px}.demo-entry p{margin:0;color:#52697b;font-size:14px}.demo-actions{display:flex;gap:8px;flex-wrap:wrap;margin-left:auto}.demo-entry .compact-help{width:100%;margin:0}.demo-entry details p{margin:10px 0;line-height:1.6}.demo-status{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;background:#edf5ff;border:1px solid #cbdced;border-radius:10px;padding:8px 12px;font-size:13px;margin-bottom:10px;flex-shrink:0}.demo-status strong{color:#274560}.demo-status>div{display:flex;gap:6px;flex-shrink:0}
@media(max-width:720px){.demo-entry{padding:16px}.demo-actions{margin-left:0}.demo-status{flex-wrap:wrap}.demo-status>div{flex-wrap:wrap}.demo-status .button{padding:7px 10px}}
@media print{.demo-status{display:none}}
@media(min-width:721px){.issues-panel:has(.proposal-panel) .issue-list{max-height:110px}.issues-panel:has(.proposal-panel) .proposal-panel{margin-top:10px;padding-top:10px}}

.intake-selection{border:1px solid var(--line);border-radius:8px;margin:14px 0;background:#f8fafd}.intake-selection-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 12px;font-size:.83rem}.intake-file-list{list-style:none;margin:0;padding:0 12px;max-height:200px;overflow:auto}.intake-file-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);font-size:.8rem}.intake-file-list li>span{overflow-wrap:anywhere;min-width:0}.intake-file-list .button{flex-shrink:0}.intake-guidance{margin-top:10px}#upload-error{margin-top:12px;overflow-wrap:anywhere}

.upload-card .file-picker{min-height:105px;border-style:solid;gap:8px}
.replace-roster{margin-top:10px;color:var(--muted);font-size:.9rem}
.replace-roster>summary{cursor:pointer}
.setup-next{width:100%;margin-top:12px;min-height:50px;font-size:1rem}
.scope-actions{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-bottom:8px}

/* Keep preparation and the next action together without shrinking readable controls. */
.app-header{padding:8px 18px;gap:12px}
main{padding:12px 18px 16px}
.stage-header{margin-bottom:10px;gap:12px}
.stage-header .eyebrow{display:none}
h1{font-size:1.3rem}
.setup-layout{display:grid;gap:10px;align-items:start}
.setup-card,.output-card{padding:14px;border-radius:9px;min-width:0}
.section-title{gap:8px;margin-bottom:10px}
.section-title p,.setup-card>p{margin-top:4px;line-height:1.45}
.setting-head,.setting-row{grid-template-columns:repeat(3,minmax(0,1fr)) 44px;gap:6px}
.setting-row{margin-bottom:6px}
.setting-row input{padding:7px 8px}
.setting-row .button{padding:5px}
.intake-grid{gap:10px;margin-top:0;align-items:start}
.intake-title{display:flex;align-items:center;gap:7px;margin-bottom:6px}
.section-index{width:23px;height:23px;font-size:.85rem;margin:0;flex-shrink:0}
.header-example{margin:10px 0!important}
.header-example span{padding:6px;font-size:.74rem}
.compact-help{margin-top:9px;line-height:1.45}
.upload-card .file-picker{min-height:0;padding:10px;margin:10px 0;gap:5px}
.intake-selection{margin:8px 0}
.intake-selection-head{padding:4px 8px}
.intake-file-list{padding:0 8px;max-height:116px}
.intake-file-list .button{min-height:32px;padding:4px 8px}
.intake-guidance{margin-top:7px;line-height:1.45}
.intake-guidance .text-button{margin:3px 0;padding:6px 8px}
.empty-intake{margin-top:10px;padding:9px;font-size:.78rem}
.import-ready{margin-top:10px;padding:10px 12px}
.stage-actions{padding-top:10px;gap:8px}
.demo-entry{padding:10px 14px;gap:8px 14px;margin-bottom:10px;border-radius:9px}
.demo-entry h2{font-size:1rem;margin-bottom:3px}
.demo-entry p{font-size:.8rem;line-height:1.4}
.demo-entry .compact-help{width:auto;margin:0}
.demo-entry details[open]{width:100%}
.demo-entry details p{margin:7px 0}
.demo-actions{gap:6px}
.demo-status{padding:5px 10px;margin-bottom:6px}
.message,.download-ready{padding:7px 10px;margin-bottom:8px}
.review-panel{padding:10px 12px;margin-bottom:8px}
.review-panel .section-title{margin-bottom:8px}
.review-check{padding:5px 7px}
.output-actions{margin-bottom:10px}
.output-card .section-title{margin-bottom:10px}
.board-columns{gap:8px;padding:8px}
.class-header{padding:7px 9px;top:-8px}
.student-list{gap:4px;padding:5px}
.student-card{min-height:36px;padding:4px 5px}
.issues-panel{padding:10px}
.work-layout{gap:10px}

@media(min-width:960px){
  body:has(.setup-layout){height:100dvh;display:flex;flex-direction:column}
  main:has(.setup-layout){width:100%;flex:1;min-height:0;display:flex;flex-direction:column}
  main:has(.setup-layout)>.demo-entry{flex-shrink:0}
  .setup-layout{flex:none;min-height:0;grid-template-columns:minmax(350px,1fr) minmax(400px,1.2fr);grid-template-rows:auto;gap:12px;align-items:start}
  .setup-layout>.intake-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
  .setup-layout .setup-card{max-height:none;overflow:auto;scrollbar-width:thin;padding:18px;min-height:0}
  .settings-card{grid-column:1;grid-row:1}
  .templates-card{display:flex;flex-direction:column;align-items:flex-start}
  .upload-card{display:flex;flex-direction:column}
  .setup-layout h2{font-size:1.2rem}
  .setup-layout p{font-size:.94rem;line-height:1.5}
  .setup-layout .caption{font-size:.85rem}
  .setup-layout .button{font-size:1rem;min-height:48px;padding:10px 16px}
  .setup-layout .section-index{width:30px;height:30px;font-size:1rem}
  .settings-card .section-title{align-items:flex-start;flex-wrap:nowrap}
  .setting-head{font-size:.9rem}
  .setting-row input{font-size:1.15rem;min-height:46px}
  .setting-row .button{font-size:.85rem;padding:6px;min-height:42px}
  .templates-card .header-example{margin:7px 0!important}
  .header-example span{font-size:.85rem;padding:8px}
  #templates{width:100%;min-height:52px;font-size:1.1rem;margin:3px 0 5px}
  .templates-card .compact-help{font-size:.94rem;margin-top:6px}
  .upload-card .file-picker{flex:1;flex-direction:column;justify-content:center;min-height:120px;gap:10px;padding:16px;margin:12px 0}
  #add-roster-files{min-height:60px;min-width:75%;font-size:1.2rem}
  #apply-roster-files{width:100%;min-height:56px;font-size:1.1rem}
  .intake-selection-head .button,.intake-file-list .button{min-height:32px;font-size:.85rem;padding:5px 8px}
  .intake-guidance .text-button{font-size:.9rem;min-height:36px}
  .intake-limits{font-size:.9rem}
  .upload-card .empty-intake{font-size:.9rem;padding:12px;margin-top:8px}
  .import-ready strong{font-size:1.15rem}
  .upload-card.is-ready .import-ready{flex:1;display:flex;flex-direction:column;justify-content:center;padding:22px}
  .upload-card.is-ready .import-ready strong{font-size:2rem;margin-bottom:10px}
  .upload-card.is-ready .import-ready span{font-size:1rem;margin-top:8px}
  .setup-layout .setup-next{min-height:60px;font-size:1.2rem}
  .demo-entry{padding:12px 16px}
  .demo-entry .button{min-height:46px;font-size:.95rem}
  .demo-entry h2{font-size:1.1rem}
  .demo-entry p{font-size:.85rem}
  .setup-layout .scope-actions .button{min-height:38px;padding:7px 10px;font-size:.9rem}
  .setup-layout.whole-school{flex:1;grid-template-columns:minmax(240px,.9fr) minmax(260px,1fr) minmax(300px,1.35fr);grid-template-rows:minmax(0,1fr);align-items:stretch}
  .setup-layout.whole-school>.intake-grid{display:contents}
  .whole-school .settings-card,.whole-school .templates-card,.whole-school .upload-card{grid-row:1;grid-column:auto}
  .setup-layout.whole-school .setup-card{padding:14px}
  .whole-school .section-title{margin-bottom:6px}
  .whole-school .section-title p{font-size:.85rem}
  .whole-school h2{font-size:1.05rem}
  .whole-school .setting-row{margin-bottom:4px;grid-template-columns:repeat(3,minmax(0,1fr)) 32px}
  .whole-school .setting-head{grid-template-columns:repeat(3,minmax(0,1fr)) 32px;font-size:.77rem}
  .whole-school .setting-row input{min-height:40px;font-size:1rem;padding:6px}
  .whole-school .setting-row .button{min-height:36px;padding:3px;font-size:.75rem}
  .whole-school .scope-actions .button{font-size:.8rem;padding:6px 8px}
  .whole-school #add-roster-files{min-width:100%;font-size:1.05rem}
  .whole-school .upload-card .file-picker{padding:10px}
  .whole-school .header-example span{font-size:.74rem;padding:6px}
  .whole-school .setup-next{font-size:1.05rem}
  .whole-school .import-ready strong{font-size:1.7rem}
  .whole-school .import-ready span{font-size:.85rem}
}
@media(min-width:721px){
  main:has(.work-layout){padding:10px 18px 10px}
  .flow-line{margin-bottom:6px}
  .stage-actions{padding-bottom:0}
  body:has(.output-card){height:100dvh;display:flex;flex-direction:column}
  main:has(.output-card){width:100%;flex:1;min-height:0;display:flex;flex-direction:column}
  .output-card{flex:1;min-height:0;display:flex;flex-direction:column}
  .output-card>.section-title,.output-actions{flex-shrink:0}
  .result-table{flex:1;min-height:0;max-height:none}
}
@media(max-width:959px){
  .setup-layout{gap:10px}
  .settings-card .section-title{margin-bottom:7px}
  .demo-entry .compact-help{width:100%}
}
@media(max-width:720px){
  .app-header{padding:8px 12px}
  main{padding:10px 12px}
  .stage-header{gap:6px}
  .setup-card{padding:12px}
  .intake-grid{grid-template-columns:1fr}
  .student-card{min-height:44px}
  .demo-actions{margin-left:0}
  .demo-entry{padding:10px 12px}
  .demo-entry .compact-help{width:100%}
}
@media print{
  main,.output-card{padding:0}
  body:has(.output-card),main:has(.output-card),.output-card{height:auto;display:block}
  .result-table{max-height:none;overflow:visible}
}

/* A compact vertical step menu leaves the main work area together on the right. */
#main:has(>.stage-sidebar){display:grid;grid-template-columns:164px minmax(0,1fr);gap:14px;align-items:start}
.stage-sidebar{position:sticky;top:12px;align-self:start;border-right:1px solid var(--line);padding-right:10px}
.stage-sidebar .step-nav{display:flex;flex-direction:column;gap:6px;flex-wrap:nowrap}
.stage-sidebar .step-nav button{width:100%;min-height:46px;padding:8px;text-align:left;border-radius:8px;gap:8px;font-size:.86rem}
.stage-sidebar .step-nav .step-number{width:28px;height:28px;flex-shrink:0}
.stage-sidebar .step-nav .step-label{display:block;width:auto;height:auto;border-radius:0;background:none;font-weight:inherit}
.stage-sidebar .step-nav button[aria-current=step]{background:#e7efff}
.stage-sidebar .step-nav button[aria-current=step]>.step-label{background:none;color:var(--blue)}
.stage-content{min-width:0;min-height:0}
@media(min-width:721px){
  #main:has(>.stage-sidebar){align-items:stretch}
  .stage-content{display:flex;flex-direction:column}
  .stage-content>.stage-header,.stage-content>.demo-entry,.stage-content>.demo-status,.stage-content>.share-bar{flex-shrink:0}
}
@media(min-width:960px){
  .stage-content .setup-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}
  .stage-content .setup-layout.whole-school{grid-template-columns:minmax(0,.9fr) minmax(0,1fr) minmax(0,1.35fr)}
  .stage-content .setup-layout .button{white-space:normal}
}
@media(max-width:1100px){
  #main:has(>.stage-sidebar){grid-template-columns:136px minmax(0,1fr);gap:10px}
  .stage-sidebar .step-nav button{font-size:.78rem;padding:7px 4px;gap:6px}
}
@media(max-width:720px){
  #main:has(>.stage-sidebar){grid-template-columns:88px minmax(0,1fr);gap:8px}
  .stage-sidebar{padding-right:6px;top:8px}
  .stage-sidebar .step-nav button{flex-direction:column;align-items:center;justify-content:center;font-size:.72rem;gap:4px;min-height:64px;padding:6px 2px;text-align:center}
  .stage-sidebar .step-nav .step-label{white-space:normal;line-height:1.35}
  .stage-content .button{white-space:normal}
  .stage-content .demo-actions{width:100%}
  .stage-content .demo-status>div{min-width:0}
  .stage-content .review-total{white-space:normal}
  .stage-content .setting-head{font-size:.72rem}
  .stage-content .setting-row input{padding:6px 4px}
}
@media print{
  .stage-sidebar{display:none!important}
  #main:has(>.stage-sidebar),.stage-content{display:block}
}

/* Final checks and the roster stay beside each other during manual review. */
.work-layout.with-review{grid-template-columns:minmax(360px,.85fr) minmax(0,1.3fr)}
.final-checklist{min-width:0;min-height:0;max-height:none;overflow:auto;margin-bottom:0;padding:12px;scrollbar-width:thin}
.final-checklist .section-title{flex-wrap:wrap;gap:6px}
.final-checklist h2{font-size:1rem}
.final-checklist .section-title p{font-size:.78rem}
.final-checklist .review-total{padding:4px 7px;font-size:.76rem}
.stage-header>.share-bar{margin:0;padding:0;border:0;background:none;font-size:.8rem}
.stage-header>.share-bar .button{min-height:34px;padding:6px 10px}
.review-criteria{font-size:.76rem;color:#526b89;line-height:1.45;margin:0 0 8px}
.review-integrity{display:grid;gap:3px;background:#f3f6fa;border-radius:7px;padding:9px 10px;margin-bottom:10px;font-size:.77rem;color:#526b89;line-height:1.45}
.review-integrity strong{color:#294564}
.review-integrity.needs-review{background:#fff5e7;color:#8c5d22}
.final-checklist .review-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.final-checklist .review-check{display:block;min-width:0;padding:0;border-color:var(--line);background:white;font-size:.8rem}
.final-checklist .review-check>summary{display:flex;align-items:center;gap:7px;padding:10px 8px;min-height:50px;list-style:none;cursor:pointer}
.final-checklist .review-check>summary::-webkit-details-marker{display:none}
.final-checklist .review-check>summary:after{content:'⌄';color:#677b93;margin-left:auto;flex-shrink:0}
.final-checklist .review-check[open]>summary:after{content:'⌃'}
.final-checklist .review-check strong{font-weight:600;line-height:1.45}
.final-checklist .review-check strong>small{display:block;font-size:.72rem;font-weight:400;color:#5d728c}
.final-checklist .review-badge{padding:3px 5px;border-radius:4px;background:#edf8f1;color:#287453;font-size:.7rem;white-space:nowrap}
.final-checklist .needs-review .review-badge{background:#fff3de;color:#8e5810}
.final-checklist .origin-check{grid-column:1/-1}
.review-detail{padding:8px 10px;border-top:1px solid var(--line);font-size:.76rem;color:#5d728c;line-height:1.55}
.review-detail>p{line-height:1.55}
.origin-distribution{margin-top:7px}
.origin-distribution>.button{min-height:34px;padding:6px 9px;font-size:.77rem}
.review-table-wrap{max-width:100%;overflow:auto;margin-top:8px}
.review-distribution{width:100%;border-collapse:collapse;font-size:.76rem}
.review-distribution caption{text-align:left;font-weight:600;color:#294564;padding:4px 0}
.review-distribution th,.review-distribution td{position:static;padding:7px 5px;border-bottom:1px solid var(--line);font-weight:400;text-align:left;white-space:nowrap}
.review-distribution td>small{display:block;font-size:.7rem}
.review-distribution .origin-gap{background:#fff5e7;color:#8e5810}
.review-distribution .origin-exception{background:#f1f5fb;color:#5d728c}
@media(max-width:1100px) and (min-width:721px){.work-layout.with-review{grid-template-columns:330px minmax(0,1fr)}}
@media(max-width:720px){.work-layout.with-review{grid-template-columns:minmax(0,1fr)}.final-checklist .review-checks{grid-template-columns:minmax(0,1fr)}.final-checklist .origin-check{grid-column:auto}.final-checklist .review-check>summary{min-height:52px}.final-checklist{overflow:visible}.review-integrity{font-size:.8rem}}
@media(max-width:720px){.stage-header>.share-bar{width:100%;justify-content:space-between}.stage-header>.share-bar>span{font-size:.75rem}}

/* Student identity uses the original roster, not the new placement. */
.student-card{min-height:60px;padding:6px 7px;gap:6px;align-items:flex-start}
.student-select{gap:7px;align-items:center;min-height:46px}
.student-identity{display:flex;flex-direction:column;flex:1;min-width:0}
.student-name-row{display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-width:0;min-height:22px}
.student-select strong{font-size:.95rem;font-weight:650;line-height:1.35;overflow-wrap:anywhere}
.student-name-row .gender{font-size:.72rem;line-height:1.4;padding:1px 4px}
.student-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 6px;margin-top:3px;min-width:0}
.student-origin{font-size:.76rem;color:#60748d;white-space:nowrap;font-variant-numeric:tabular-nums}
.student-tags{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:3px;min-width:0;max-width:100%}
.student-trait{font-size:.72rem;line-height:1.4;padding:1px 5px;border-radius:4px;background:#f0f3f8;color:#53677e;max-width:100%;overflow-wrap:anywhere}
.student-trait.name-duplicate{background:#edf2fb;color:#48648b}
.student-trait.attention-trait{background:#fff1e5;color:#8a4d25}
.student-meta .card-state{font-size:.72rem;color:#607083}
.student-info{align-self:flex-start;min-height:30px;font-size:.72rem;padding:5px 3px}
@media(pointer:coarse){.student-select{min-height:44px}.student-info{min-width:44px;min-height:44px}}


.final-checklist .disabled-check .review-badge{background:#eef1f5;color:#596c80}

/* Match EduHelper: explicit symbols, words and border weight accompany color. */
.final-checklist .review-check:not(.needs-review):not(.disabled-check){background:#e5efff;color:#123f78;border:1px solid #93afd5}
.final-checklist .review-check:not(.needs-review):not(.disabled-check) .review-badge{background:#e5efff;color:#123f78}
.final-checklist .review-check.needs-review{background:#ffda69;color:#332800;border:3px solid #705400}
.final-checklist .review-check.needs-review .review-badge{background:#ffda69;color:#332800}
.final-checklist .review-check.disabled-check{background:#fff;color:#526579;border:1px solid #d7e0eb}
.final-checklist .review-check>summary strong>small,.final-checklist .review-check>summary strong,.final-checklist .review-check .review-badge,.final-checklist .review-check>summary:after{color:inherit}
.final-checklist .review-check .review-detail{background:#fff;color:#213448;border-radius:0 0 4px 4px}
.issue-list .issue-item{background:#ffda69;color:#332800;border:3px solid #705400}
.issue-list .issue-item.active{background:#ffda69;color:#332800;border:3px solid #315bce}
.issue-list .issue-item .issue-kind,.issue-list .issue-item .issue-kind.error-kind{background:#ffda69;color:#332800}
.issue-list .issue-item small{color:#332800}

.condition-options-panel{margin:18px 0 0;border:1px solid var(--line);border-radius:8px;min-width:0}.condition-options-panel>summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 12px;min-height:48px;cursor:pointer;list-style:none}.condition-options-panel>summary::-webkit-details-marker{display:none}.condition-options-panel>summary::before{content:"";border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:6px solid currentColor;flex:none}.condition-options-panel[open]>summary::before{transform:rotate(90deg)}.condition-options-panel>summary:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:7px}.condition-count{margin-left:auto;color:var(--muted);font-size:.8rem}.condition-collapse-label,.condition-expand-label{color:var(--blue);font-size:.8rem}.condition-options-panel[open] .condition-expand-label,.condition-options-panel:not([open]) .condition-collapse-label{display:none}.condition-options{margin:0;border:0;padding:0 12px 12px;min-width:0}.condition-options .caption{margin-bottom:7px}.condition-choices{display:grid;grid-template-columns:minmax(0,1fr);gap:3px}.condition-choices label{display:flex;align-items:center;gap:9px;min-height:38px;font-size:.85rem;cursor:pointer}.condition-choices input{width:20px;height:20px;accent-color:var(--blue);flex:none}
.intake-methods{display:flex;flex-wrap:wrap;gap:10px;width:100%}.intake-methods .button{flex:1;min-width:0}.intake-methods #add-roster-files{min-width:0;min-height:52px;font-size:1rem}.intake-methods #open-paste{min-height:52px;font-size:1rem}@media(max-width:480px){.intake-methods{flex-direction:column}}.paste-label{display:block;font-weight:600;margin:12px 0 6px}.paste-roster{display:block;width:100%;height:150px;min-height:120px;max-height:32vh;resize:vertical;border:1px solid #b8c9df;border-radius:7px;padding:9px;font:13px/1.5 ui-monospace,SFMono-Regular,monospace;tab-size:4;white-space:pre}.paste-roster:focus-visible{outline:3px solid #d17a11;outline-offset:3px}.paste-summary{margin-top:14px}.paste-config{overflow-x:auto;margin:8px 0}.paste-config th,.paste-config td{padding:8px;font-size:.8rem}.paste-config input{width:5rem;min-height:36px;border:1px solid #b8c9df;border-radius:5px;padding:5px;font:inherit}
.paste-sheet-guide{margin-bottom:12px}.paste-sheet-guide>p{margin:0 0 7px}.paste-sheet-links{display:flex;flex-wrap:wrap;gap:8px;margin:7px 0}.paste-sheet-links>.button{flex:1 1 210px;font-size:.8rem;white-space:normal;text-align:center}
.template-methods{margin:3px 0 8px}.template-methods #templates,.template-methods>.button{width:auto;margin:0;min-height:52px;min-width:0;font-size:1rem;white-space:normal;text-align:center}.paste-sheet-guide .caption>a{color:var(--blue);text-decoration:underline;text-underline-offset:2px}

/* Keep the established desktop workspace; let preparation lead with real work. */
.stage-description{font-size:.88rem;color:#526579;margin-top:5px;line-height:1.5}
.practice-options{margin-top:14px;border-top:1px solid var(--line);padding-top:12px;color:#425c78;font-size:.86rem}
.practice-options>summary{cursor:pointer;padding:10px 2px;min-height:44px;font-weight:600}
.practice-options>summary>span{font-size:.78rem;font-weight:400;color:#526579;margin-left:8px}
.practice-options .demo-entry{margin-top:8px;margin-bottom:0;background:#fff}
.condition-options-panel{margin-top:14px}
.condition-options-panel>summary{font-size:.9rem}
.intake-guidance #sample-settings{display:block;margin:6px 0 0}
.setup-layout .upload-card .empty-intake{color:#526579}
#settings-error{margin-top:10px;margin-bottom:0}
.search-label{max-width:210px;flex:1 1 150px}
.student-search-tools{display:flex;align-items:center;gap:4px;flex-wrap:wrap;max-width:100%;min-width:0}
.student-search-tools .button{min-height:40px;padding:6px 8px;font-size:.78rem}
.search-label input{min-height:40px;font-size:.86rem}
.search-status{padding:8px 12px;font-size:.82rem;line-height:1.5;color:#664c15;background:#fff8df;border-bottom:1px solid #e1d5ad;flex-shrink:0}
.search-status[hidden]{display:none}
.destination-label{display:flex;align-items:center;gap:6px;color:#425c78}
.destination-label select{width:auto;min-width:78px}
.selection-tools .button,.selection-tools select{min-height:40px}
.selection-tools strong{min-width:90px}
.student-info{min-width:38px;min-height:38px}
.student-select input:focus-visible{outline:3px solid #d17a11;outline-offset:3px}
.class-column{max-width:none}
.stage-actions{flex-wrap:wrap}
.modal-actions{flex-wrap:wrap}
.icon-close{min-width:44px;min-height:44px}
.icon-close:before,.icon-close:after{left:14px;top:21px}
.practice-options>summary:focus-visible{outline:3px solid #d17a11;outline-offset:3px}
@media(min-width:960px){
  .stage-content .setup-layout.whole-school{grid-template-columns:minmax(260px,.95fr) minmax(0,1.2fr);align-items:start;flex:none}
  .stage-content .setup-layout.whole-school>.intake-grid{display:grid;grid-template-columns:minmax(0,1fr)}
  .whole-school .settings-card,.whole-school .templates-card,.whole-school .upload-card{grid-column:auto;grid-row:auto}
  .setup-layout .button{min-height:44px;font-size:.94rem}
  .setup-layout .upload-card .file-picker{min-height:0;padding:12px}
  .setup-layout #apply-roster-files{min-height:48px;font-size:1rem}
}
@media(max-width:1100px){
  .board-top{flex-wrap:wrap}
  .student-search-tools{flex:1 1 100%}
}
@media(max-width:900px){
  #main:has(>.stage-sidebar){display:flex;flex-direction:column;gap:12px;align-items:stretch}
  .stage-sidebar{position:static;padding:0;border:0;min-width:0}
  .stage-sidebar .step-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
  .stage-sidebar .step-nav button{flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:5px;padding:8px 3px;min-height:70px;font-size:.78rem;height:100%}
  .stage-sidebar .step-nav .step-label{line-height:1.4}
  .stage-content{flex:1;min-height:0}
  .work-layout.with-issues,.work-layout.with-review{grid-template-columns:minmax(0,1fr)}
  .issues-panel,.final-checklist{max-height:300px;flex-shrink:0}
  .work-layout{display:flex;flex-direction:column;min-height:420px}
  .board-panel{flex:1;min-height:300px}
  .board-columns{min-height:220px}
  body:has(.work-layout){height:auto;min-height:100dvh}
  main:has(.work-layout){height:auto;flex:none}
  .header-actions{margin-left:0;flex:1 1 100%;justify-content:flex-start}
}
@media(max-width:480px){
  .brand{flex-wrap:wrap;gap:6px}
  .header-actions .button{min-height:44px;font-size:.78rem}
  .header-actions{gap:4px}
  .stage-sidebar .step-nav button{font-size:.72rem}
  .setup-card{padding:14px}
  .setting-head,.setting-row{grid-template-columns:repeat(3,minmax(0,1fr)) 40px}
  .setting-row input{min-height:44px;font-size:1rem}
  .setup-layout .intake-methods{flex-direction:column}
  .final-checklist .review-checks{grid-template-columns:minmax(0,1fr)}
  .selection-tools{gap:8px}
  .destination-label{flex:1}
  .destination-label select{flex:1;max-width:none}
  .history-buttons{width:100%}
  .student-search-tools{gap:6px}
  .student-search-tools .search-label{flex-basis:100%;max-width:none}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{.practice-options,.stage-description,.search-status{display:none!important}}
@media(min-width:1200px){
  .stage-content .setup-layout,.stage-content .setup-layout.whole-school{grid-template-columns:minmax(270px,.95fr) minmax(260px,.95fr) minmax(300px,1.1fr);align-items:start}
  .stage-content .setup-layout>.intake-grid{display:contents}
  .stage-content .setup-layout .setup-card{padding:16px}
  .stage-content .setup-layout h2{font-size:1.05rem}
  .stage-content .setup-layout p{font-size:.86rem}
  .stage-content .setup-layout .intake-methods{flex-direction:column}
  .stage-content .setting-row,.stage-content .setting-head{grid-template-columns:repeat(3,minmax(0,1fr)) 34px;font-size:.78rem}
  .stage-content .setting-row input{padding:8px 6px;font-size:1rem}
  .stage-content .setting-row .button{padding:4px;font-size:.75rem}
  .stage-content .header-example span{font-size:.76rem;padding:6px}
  .stage-content .grade-picker{gap:5px}
  .stage-content .condition-count{font-size:.75rem}
}
@media(max-width:480px){.header-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.header-actions .button{width:100%}}
@media(max-width:900px){.final-checklist{max-height:none;overflow:visible}}
