@charset "UTF-8";
:root{--ink:#203730;--muted:#748078;--green:#234e40;--green-dark:#173b30;--green-light:#e9f1ec;--paper:#f5f6f2;--border:#e0e5de;--white:#fff;--radius:18px;--shadow:0 8px 28px #20373005;font-family:Inter,"Segoe UI","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--paper)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button,input,select,textarea,a{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #578e6f}button{color:inherit}a{color:inherit;text-decoration:none}h1,h2,p{margin:0}h1{font-size:29px;font-weight:650;letter-spacing:-1px}h2{font-size:16px;font-weight:650}small{font-size:12px}input,select,textarea{color:var(--ink)}[hidden]{display:none!important}.muted{color:var(--muted);font-size:13px}.button{border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:12px;border-radius:10px;min-height:42px;padding:10px 17px;font-weight:550;white-space:nowrap;transition:background .16s,transform .16s}.button:hover:not(:disabled){transform:translateY(-1px)}.primary{background:var(--green);color:white}.primary:hover:not(:disabled){background:var(--green-dark)}.secondary{border-color:#dce5dd;background:#f0f5f0;color:var(--green)}.secondary:hover:not(:disabled){background:#e5eee5}.ghost{border-color:var(--border);background:transparent}.ghost:hover:not(:disabled){background:#eef1eb}.compact{min-height:36px;padding:8px 12px;font-size:13px}.full{width:100%}.icon-button{border:1px solid var(--border);background:white;width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;font-size:20px}.text-button{background:none;border:0;color:var(--green);padding:4px 0;font-size:13px;cursor:pointer;white-space:nowrap}.text-button:hover{text-decoration:underline}.danger{color:#b55444}.spacer{flex:1}
.site-header{background:#fff;border-bottom:1px solid var(--border)}.header-inner{max-width:1344px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:21px 32px}.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:43px;height:43px;background:var(--green-dark);color:#e4f0d9;border-radius:13px;font-size:21px;font-weight:600;display:grid;place-items:center}.brand strong{display:block;font-size:19px;letter-spacing:1px}.brand small{display:block;font-size:11px;letter-spacing:1px;color:var(--muted);margin-top:4px}.header-actions{display:flex;gap:10px;align-items:center}.save-state{color:var(--muted);font-size:12px;margin-right:8px}.save-state i{display:inline-block;width:6px;height:6px;background:#72987d;border-radius:50%;margin-right:7px}.save-state.error{color:#b55444}.save-state.error i{background:#b55444}.shell{max-width:1344px;margin:auto;padding:0 32px}.context-bar{margin-top:26px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px;background:white;border:1px solid var(--border);border-radius:14px}.context-fields{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap}.field{display:flex;align-items:center;gap:12px;min-width:0}.field>span{font-size:12px;color:var(--muted);white-space:nowrap}.field select{border:0;background:#f5f6f2;border-radius:7px;padding:9px 28px 9px 10px;max-width:230px;font-weight:600;font-size:13px}.context-divider{height:24px;width:1px;background:var(--border);margin:0 7px}.session-field select{max-width:260px;font-weight:500}.workspace-heading{display:flex;justify-content:space-between;align-items:center;padding:28px 0 23px;gap:18px}.eyebrow{font-size:11px;color:var(--muted);letter-spacing:1px;margin-bottom:8px}.view-tabs{display:flex;background:#e9ede6;padding:4px;gap:3px;border-radius:11px}.view-tabs button{border:0;background:none;border-radius:8px;padding:11px 21px;color:var(--muted);white-space:nowrap}.view-tabs button.active{background:white;color:var(--green);box-shadow:0 2px 4px #234e400a;font-weight:600}.notice{background:#fff8e8;color:#8d703c;padding:13px 18px;border:1px solid #eedfc0;border-radius:10px;margin-bottom:18px}.card{background:white;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.small-tag{font-size:11px;background:#f3f5ef;border:1px solid #e7ebdf;border-radius:5px;padding:4px 7px;color:#72816f;white-space:nowrap}.small-caption{display:block;font-size:11px;color:var(--muted);letter-spacing:.5px;margin-bottom:10px}
.draw-layout{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:22px}.draw-main{min-width:0}.draw-stage{border:1px solid #dce6d6;background:#e9efdf;border-radius:20px;min-height:326px;padding:22px 27px;position:relative;overflow:hidden;display:flex;flex-direction:column;isolation:isolate}.stage-top,.stage-bottom{display:flex;justify-content:space-between;align-items:center;position:relative;z-index:1}.stage-tag{font-size:12px;color:#607d59;display:flex;align-items:center;gap:7px}.stage-tag i{width:6px;height:6px;background:#86a579;border-radius:50%}.stage-screen{background:#f8fbf37d;border:1px solid #d4dfc9;color:#66825a;padding:7px 11px;font-size:12px;border-radius:7px}.stage-orbit{position:absolute;width:520px;height:520px;border:1px solid #ced9c480;right:-228px;top:-160px;border-radius:50%;z-index:-1}.stage-orbit:before,.stage-orbit:after{content:"";position:absolute;border:1px solid #ced9c450;border-radius:50%;inset:57px}.stage-orbit:after{inset:112px}.draw-result{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:26px 0;min-height:220px;text-align:center;gap:14px}.draw-placeholder{font-size:46px;color:#365331;font-weight:600;letter-spacing:6px}.draw-placeholder-sub{font-size:13px;color:#8b9c7d;letter-spacing:2px}.stage-bottom{color:#73886a;font-size:12px;padding-top:8px}.draw-result.picking{opacity:.4;transform:scale(.98)}.draw-result{transition:opacity .12s,transform .12s}.picked-grid{display:flex;justify-content:center;flex-wrap:wrap;gap:18px;width:100%;position:relative}.picked-student{min-width:140px}.picked-name{font-size:54px;color:#234523;letter-spacing:4px;font-weight:600;line-height:1.3}.picked-number{color:#819372;font-size:12px;letter-spacing:1px;margin-top:9px}.picked-grid.multiple .picked-name{font-size:29px;letter-spacing:1px}.picked-grid.multiple .picked-student{min-width:125px}.picked-actions{display:flex;justify-content:center;gap:5px;margin-top:14px;flex-wrap:wrap}.picked-actions button{background:#f9fcf482;border:1px solid #ccd9c2;border-radius:5px;font-size:11px;padding:5px 7px;color:#64805b}.picked-actions button.active{background:#456841;color:white;border-color:#456841}.draw-controls{margin-top:12px;padding:20px 24px}.draw-control-primary{display:flex;justify-content:space-between;align-items:center;gap:12px}.draw-count-label{display:flex;align-items:center;gap:8px;color:#596c60;font-size:13px}.draw-count-label select{width:61px;padding:9px 10px;background:#f7f8f4;border:1px solid #dfe5dc;border-radius:8px;font-weight:600}.draw-button{min-width:230px;justify-content:space-between;padding:13px 22px;font-size:16px}.draw-button span{font-size:22px;line-height:1}.draw-options{display:flex;align-items:center;gap:22px;padding:20px 0 15px;border-bottom:1px solid #eef1ea;font-size:12px;color:#647566}.draw-options label{display:flex;align-items:center;gap:7px}.draw-options input{accent-color:var(--green);width:15px;height:15px;margin:0}.draw-options .text-button{margin-left:auto}.draw-footnote{display:flex;justify-content:space-between;font-size:11px;color:#99a393;padding-top:12px}.recent-card{padding:22px 24px;margin-top:20px}.recent-card .section-title{margin-bottom:10px}.recent-row{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid #f0f3ed;padding:12px 0;font-size:13px}.recent-row:last-child{border:0}.recent-row time{font-size:11px;color:#99a294;white-space:nowrap}.recent-row .recent-names{line-height:1.7;color:#536752}.recent-draws>.muted{padding:13px 0}
.overview-card{padding:23px}.overview-count{display:flex;align-items:baseline;gap:9px;margin-top:4px}.overview-count>strong{font-size:40px;font-weight:600;letter-spacing:-1px}.overview-count>span{font-size:12px;color:var(--muted)}.overview-count b{font-weight:400}.progress-track{height:5px;background:#edf1e8;border-radius:5px;margin:15px 0 20px;overflow:hidden}.progress-track i{display:block;height:100%;background:#75996d;border-radius:5px;transition:width .2s}.count-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:24px}.count-item{display:flex;align-items:center;justify-content:space-between;gap:8px}.count-item span{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:7px}.count-item i{width:6px;height:6px;border-radius:2px;background:#a6b49d}.count-item strong{font-size:16px;font-weight:500}.count-item.absent i{background:#cf8c76}.count-item.late i{background:#cfb677}.count-item.leave i{background:#8ca7bc}.count-item.unknown i{background:#c1c8b9}.card-note{font-size:11px;color:#8e9989;line-height:1.9;margin-top:14px}.session-card{padding:23px;margin-top:18px}.session-card h2{font-size:16px;line-height:1.5}.session-card p{font-size:12px;line-height:1.9;color:var(--muted);margin:9px 0 14px}.local-note{display:flex;gap:12px;margin:23px 7px;color:#909d8a;font-size:11px;line-height:1.9}.note-mark{display:grid;place-items:center;flex-shrink:0;border:1px solid #d7dfd0;width:23px;height:23px;border-radius:50%;font-size:16px}
.attendance-top{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:24px}.attendance-top h2{font-size:19px;margin-bottom:8px}.toolbar-actions{display:flex;gap:8px}.attendance-toolbar{display:flex;align-items:center;gap:18px;padding:0 24px 18px;flex-wrap:wrap}.search-field{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:8px;background:#f8f9f5;padding:8px 11px}.search-field>span{font-size:21px;line-height:16px;color:#899b85}.search-field input{border:0;outline:none;background:none;width:190px;font-size:12px;min-width:0}.filter-tabs{display:flex;gap:5px}.filter-tabs button{border:0;background:none;border-radius:6px;font-size:12px;padding:7px 12px;color:var(--muted)}.filter-tabs button.active{color:var(--green);background:#eaf1e6}.attendance-toolbar>#filteredCount{margin-left:auto;font-size:11px}.table-wrap{overflow:auto}.attendance-card .table-wrap{max-height:590px;min-height:120px}table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}th{color:#85937e;font-size:11px;font-weight:500;background:#f8faf5;position:sticky;top:0;z-index:1;padding:14px 20px;border-block:1px solid #e9ede3;white-space:nowrap}td{padding:13px 20px;border-bottom:1px solid #f0f2ec}tbody tr:hover{background:#fafcf7}.index-col{width:75px;text-align:center}.attendance-table th:nth-child(2){width:30%}.attendance-table td:first-child{color:#a4ad9d;text-align:center;font-size:11px}.student-name{font-size:13px;font-weight:550;line-height:1.6}.student-number{font-size:11px;color:#9aa590;margin-top:3px;letter-spacing:.4px}.th-note{margin-left:9px;font-size:10px;color:#a7b19e}.status-buttons{display:flex;gap:5px;flex-wrap:wrap}.status-button{background:transparent;border:1px solid #e1e6dd;border-radius:6px;font-size:11px;padding:7px 10px;color:#9aa591;min-width:47px}.status-button:hover{background:#f0f5e9}.status-button.active{background:#ebf3e4;border-color:#d7e7cc;color:#608c49}.status-button.absent.active{background:#fcf0e9;color:#b87b63;border-color:#eed7c9}.status-button.late.active{background:#fbf5e4;color:#a4914b;border-color:#eae0bc}.status-button.leave.active{background:#ebf2f7;color:#6e91a8;border-color:#d6e3ec}.status-button.unknown.active{background:#f0f2ed;color:#8b9682;border-color:#dde3d6}.table-bottom{display:flex;justify-content:space-between;gap:14px;padding:16px 24px;color:#88977e;font-size:11px}.empty-row{text-align:center!important;padding:50px!important;color:#8e9989}
.history-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.history-layout{display:grid;grid-template-columns:265px minmax(0,1fr);gap:20px}.history-sessions{padding:22px;align-self:start}.history-sessions .section-title{margin-bottom:12px}.history-entry{width:100%;display:block;text-align:left;background:none;border:1px solid transparent;border-radius:9px;padding:12px;margin-top:6px}.history-entry:hover{background:#f7f9f2}.history-entry.active{border-color:#dbe7d1;background:#f2f7ea}.history-entry strong{display:block;font-size:13px;font-weight:550;margin:5px 0}.history-entry time{font-size:11px;color:#899b80}.history-entry span{display:block;font-size:11px;color:#9aaa91;margin-top:7px}.summary-card{min-width:0}.summary-card>.section-title{padding:22px 22px 0;margin-bottom:14px}.summary-search input{width:126px}.summary-note{font-size:11px;color:#94a08b;padding:0 22px 18px;line-height:1.8}.summary-table th,.summary-table td{padding:12px 13px;font-size:12px}.summary-table th:first-child,.summary-table td:first-child{padding-left:22px;min-width:132px}.summary-table th{font-size:10px}.summary-card .table-wrap{max-height:650px}.summary-table .rate{font-variant-numeric:tabular-nums;color:#719360}.summary-table .rate-low{color:#b57d64}
.empty-state{text-align:center;max-width:700px;margin:65px auto 80px}.empty-symbol{width:94px;height:94px;border:1px solid #d7e1cb;border-radius:24px;background:#ecf2e5;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;margin:0 auto 28px;transform:rotate(-5deg)}.empty-symbol span{font-family:Georgia,serif;font-size:27px;color:#59784a;line-height:1.2}.empty-symbol i{height:2px;width:32px;background:#bbcdaf}.empty-symbol i:last-child{width:21px}.empty-state .eyebrow{color:#8ca17b;margin-bottom:13px}.empty-state h1{font-size:36px;letter-spacing:0}.empty-state>p:not(.eyebrow){font-size:14px;line-height:2;color:#92a087;margin-top:18px}.empty-actions{display:flex;gap:12px;justify-content:center;margin-top:28px}.empty-notes{display:flex;flex-wrap:wrap;justify-content:center;gap:22px;font-size:11px;color:#a2ad98;margin-top:29px}.empty-notes span:before{content:"✓";margin-right:5px;color:#87a177}.page-footer{display:flex;justify-content:space-between;gap:15px;padding:27px 0;color:#a5ae9b;font-size:11px}.page-footer .text-button{font-size:11px;color:#91a085}
dialog{border:1px solid #dce4d6;border-radius:19px;width:min(580px,calc(100% - 32px));max-height:90dvh;padding:25px;color:var(--ink);box-shadow:0 24px 80px #15332930}dialog::backdrop{background:#1a302d55;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:23px}.dialog-heading h2{font-size:21px}.dialog-heading .icon-button{border:0;background:#f0f3eb}.form-field{display:block;margin-bottom:20px}.form-field>span{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px;font-size:13px;font-weight:550;gap:6px}.form-field>span small{color:#98a48d;font-size:10px;font-weight:400}.form-field input,.form-field textarea{width:100%;border:1px solid #dce3d5;background:#fcfdf9;border-radius:8px;padding:12px;font-size:13px}.form-field textarea{resize:vertical;line-height:1.9}.import-file-box{padding:17px;background:#f3f7ed;border:1px dashed #cbdcbe;border-radius:10px;margin:19px 0}.import-file-box strong{font-size:13px;font-weight:550}.import-file-box p{font-size:11px;line-height:1.8;color:#8b9d7d;margin:7px 0 12px}.import-file-box>div{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.file-button{cursor:pointer}.inline-message{font-size:11px;color:#859978;line-height:1.8;margin-top:-8px}.inline-message.error{color:#b36d55}.dialog-note{font-size:12px;line-height:1.8;color:#94a387;margin-top:12px}.dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:25px;padding-top:18px;border-top:1px solid #eaf0e3}.help-dialog{width:min(660px,calc(100% - 32px))}.help-steps{padding-left:23px;margin:0}.help-steps li{padding-left:6px;margin-bottom:20px;color:#728a60}.help-steps b{color:var(--ink);font-size:14px}.help-steps p,.help-data p{font-size:12px;line-height:1.9;color:#89987c;margin-top:7px}.help-data{background:#f2f6ec;border:1px solid #e0e8d7;border-radius:10px;padding:17px;margin:21px 0}.help-data b{font-size:12px}.help-dialog>.muted{font-size:11px;line-height:1.9}.confirm-dialog{width:min(430px,calc(100% - 32px))}.confirm-dialog p{line-height:1.9;color:#7a8f6e;white-space:pre-line}.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);padding:12px 22px;border-radius:10px;background:#254335;color:white;box-shadow:0 5px 25px #182f3026;z-index:1000;font-size:13px;max-width:90vw;line-height:1.6}.toast.error{background:#a2624c}.projection-exit{position:fixed;right:24px;top:24px;background:#f6f9f1;color:#567647;border-color:#ccdcc0;z-index:500}.projection .site-header,.projection .context-bar,.projection .workspace-heading,.projection .draw-side,.projection .recent-card,.projection .page-footer,.projection .draw-footnote,.projection .draw-options{display:none}.projection .shell{max-width:100%;padding:0}.projection .draw-layout{display:block}.projection .draw-stage{border:0;border-radius:0;min-height:78vh;padding:30px 45px}.projection .draw-result{min-height:55vh}.projection .picked-name{font-size:clamp(70px,10vw,140px)}.projection .picked-grid.multiple .picked-name{font-size:clamp(30px,5vw,68px)}.projection .draw-controls{border:0;box-shadow:none;margin:0;border-radius:0;padding:24px 8vw;min-height:22vh;background:#edf3e5}.projection .draw-button{font-size:23px;min-width:320px}.projection .stage-screen{display:none}
@media(min-width:1500px){.draw-stage{min-height:365px}}
@media(max-width:1150px){.context-fields{gap:8px}.context-divider{display:none}.field{gap:7px}.field select{max-width:190px}.session-field select{max-width:230px}.draw-layout{grid-template-columns:minmax(0,1fr) 260px;gap:18px}.draw-button{min-width:190px}.draw-options{gap:13px}.history-layout{grid-template-columns:230px minmax(0,1fr)}.summary-search input{width:95px}}
@media(max-width:900px){.header-inner,.shell{padding-left:22px;padding-right:22px}.context-bar{align-items:flex-start}.context-fields{row-gap:12px}.field{flex-basis:auto}.session-field{flex-basis:100%}.draw-layout{grid-template-columns:minmax(0,1fr) 240px;gap:15px}.draw-controls{padding:18px}.draw-control-primary{gap:8px}.draw-button{min-width:155px;padding:12px 16px}.draw-options{flex-wrap:wrap;gap:12px}.draw-options .text-button{margin-left:0}.draw-footnote{font-size:10px;gap:10px}.overview-card,.session-card{padding:19px}.history-layout{grid-template-columns:1fr}.history-sessions{padding:18px}.history-sessions #historyList{max-height:210px;overflow-y:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.summary-search input{width:170px}.th-note{display:none}.attendance-table td{padding:12px}.index-col{width:50px}.attendance-table th:nth-child(2){width:25%}.status-button{padding:7px 9px;min-width:45px}}
@media(max-width:720px){.header-inner{padding:16px}.shell{padding:0 16px}.brand-mark{width:37px;height:37px;border-radius:10px;font-size:19px}.brand strong{font-size:17px}.brand small{font-size:10px}.header-actions{gap:7px}.header-actions .save-state{display:none}.header-actions .compact{padding:7px 9px;font-size:11px}.header-actions .icon-button{width:28px;height:30px;font-size:16px}.context-bar{margin-top:18px;padding:14px;flex-wrap:wrap;gap:14px}.context-fields{flex:1;gap:8px}.field>span{font-size:11px}.field select{max-width:195px;padding-right:16px}.context-fields>.icon-button{height:30px;width:30px}.context-fields>.button{font-size:11px;padding:7px 9px}.session-field{margin-top:2px}.session-field select{max-width:265px}.context-bar>.primary{width:100%;font-size:13px;min-height:38px}.workspace-heading{padding:24px 0 20px;flex-wrap:wrap;gap:19px}.workspace-heading h1{font-size:25px}.workspace-heading .eyebrow{margin-bottom:7px}.view-tabs{width:100%;justify-content:space-between}.view-tabs button{flex:1;font-size:13px;padding:10px 8px}.draw-layout{display:block}.draw-stage{padding:19px;min-height:310px;border-radius:16px}.stage-tag,.stage-screen{font-size:11px}.draw-placeholder{font-size:38px;letter-spacing:3px}.picked-name{font-size:47px}.picked-grid{gap:14px}.picked-grid.multiple .picked-name{font-size:27px}.draw-controls{padding:17px;border-radius:14px}.draw-button{min-width:160px;font-size:15px}.draw-options{gap:15px;font-size:11px}.draw-options .text-button{margin-left:auto;font-size:11px}.draw-footnote{font-size:10px}.draw-side{display:grid;grid-template-columns:1fr;gap:14px;margin-top:18px}.overview-card{padding:20px}.overview-count{margin-top:0}.overview-count>strong{font-size:33px}.overview-card .section-title{margin-bottom:8px}.progress-track{margin:10px 0 16px}.count-grid{grid-template-columns:repeat(3,1fr);gap:16px 24px;margin-bottom:18px}.overview-card .card-note{margin-top:11px}.session-card{margin-top:0}.local-note{margin:0 6px}.recent-card{margin-top:18px;padding:19px}.attendance-top{padding:20px;align-items:flex-start;flex-wrap:wrap}.attendance-top h2{font-size:17px}.toolbar-actions{width:100%}.toolbar-actions>button{flex:1;font-size:12px}.attendance-toolbar{padding:0 17px 17px;gap:12px}.attendance-toolbar .search-field{width:100%}.search-field input{width:100%}.attendance-toolbar .filter-tabs{gap:1px}.attendance-toolbar #filteredCount{font-size:10px}.filter-tabs button{padding:7px 9px;font-size:11px}.attendance-table th{padding:12px;font-size:10px}.attendance-table th:first-child,.attendance-table td:first-child{display:none}.attendance-table th:nth-child(2){width:100px}.attendance-table td{padding:14px 11px}.student-name{font-size:12px}.student-number{font-size:10px;word-break:break-all}.status-buttons{gap:4px}.status-button{font-size:10px;padding:8px 6px;min-width:37px;min-height:32px}.table-bottom{padding:14px 17px;font-size:10px;align-items:center}.table-bottom .text-button{font-size:10px}.history-head{align-items:flex-start;flex-wrap:wrap}.history-head .primary{width:100%;font-size:12px}.history-sessions #historyList{grid-template-columns:repeat(2,1fr)}.summary-card>.section-title{padding:18px 16px 0;flex-wrap:wrap}.summary-search{width:100%}.summary-search input{width:100%}.summary-note{padding:0 16px 16px;font-size:10px}.summary-table{min-width:530px}.summary-table th,.summary-table td{padding:12px 11px}.summary-table th:first-child,.summary-table td:first-child{padding-left:17px}.page-footer{font-size:10px;gap:10px;flex-wrap:wrap}.page-footer .text-button{font-size:10px}.empty-state{margin:45px auto}.empty-state h1{font-size:27px}.empty-state>p:not(.eyebrow){font-size:13px}.empty-notes{gap:13px}.empty-actions{gap:9px}.empty-actions button{font-size:12px;padding:11px 13px}dialog{padding:21px}.dialog-heading h2{font-size:19px}.form-field>span{flex-wrap:wrap;gap:7px}.form-field>span small{font-size:10px}.import-file-box{padding:14px}.projection .draw-stage{padding:24px;min-height:76vh}.projection .draw-controls{min-height:24vh;padding:25px}.projection .draw-control-primary{flex-wrap:wrap;justify-content:center;gap:17px}.projection .draw-button{min-width:260px;font-size:20px}.projection-exit{font-size:11px;padding:8px 10px;right:15px;top:15px}.projection .picked-name{font-size:68px}.projection .picked-grid.multiple .picked-name{font-size:34px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
.picked-name{display:block;margin:0 auto;border:0;background:transparent;padding:0;font-family:inherit;cursor:pointer;border-bottom:2px dashed #8fa37d}.picked-name:hover:not(:disabled){color:#527a43;border-color:#527a43}.picked-name:disabled{opacity:1;cursor:default;border-color:transparent}.picked-confirm{font-size:11px;color:#7d946b;margin-top:9px}.picked-confirm.confirmed{color:#527a43}.sheet-options{margin-top:15px;padding-top:13px;border-top:1px solid #dfe9d7;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.sheet-options label{font-size:12px;color:#779267;display:flex;align-items:center;gap:8px}.sheet-options select{max-width:230px;padding:7px;background:white;border:1px solid #d5e2cc;border-radius:6px}.draw-footnote .text-button{font-size:11px;padding:0}.recent-confirm{color:#739161;font-size:11px;margin-left:8px}
@media(max-width:720px){.draw-count-label{white-space:nowrap;font-size:12px;gap:6px}.draw-count-label select{width:50px;padding:9px 6px}.draw-button{min-width:144px}.draw-options{gap:10px}}
.student-pinyin{font-size:11px;line-height:1.5;color:#82927f;letter-spacing:.2px;margin-top:2px}.student-cell{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:185px}.student-edit-button{border:1px solid #dfe7da;border-radius:7px;background:#f8faf5;color:#527a43;padding:7px 10px;font-size:11px;white-space:nowrap}.student-edit-button:hover{background:#edf3e9}.picked-student .student-pinyin{text-align:center;margin-top:5px}.recent-pinyin{display:block;color:#98a48d;font-size:10px;margin-top:2px}.studentDialog .dialog-note{margin-top:3px}
.roster-dialog{width:min(700px,calc(100% - 32px));display:none;}
.roster-dialog[open]{display:block}
.roster-dialog .dialog-heading{margin-bottom:14px}
.roster-dialog .dialog-heading .eyebrow{margin:0 0 4px}
.roster-dialog .dialog-heading h2{font-size:20px}
.call-rating{margin:12px auto 0;display:grid;gap:6px;justify-content:center;color:#779267;font-size:11px}
.call-rating>div{display:flex;justify-content:center;flex-wrap:wrap;gap:5px}
.call-rating button{border:1px solid #ccd9c2;border-radius:6px;background:#f9fcf4;color:#64805b;font-size:11px;padding:5px 8px}
.call-rating button.active{background:#456841;color:#fff;border-color:#456841}
.recent-rating{display:inline-block;margin-left:7px;padding:1px 5px;border-radius:4px;background:#edf3e9;color:#527a43;font-size:10px}
.roster-search{width:100%;margin-bottom:10px}
.roster-search input{width:100%}
.roster-dialog .dialog-note{margin:0 0 12px}
.roster-list{max-height:min(58dvh,560px);overflow:auto;border:1px solid #e8ede2;border-radius:10px;padding:4px 12px}
.roster-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 2px;border-bottom:1px solid #eef1ea}
.roster-row:last-child{border-bottom:0}
.roster-student{display:grid;grid-template-columns:minmax(90px,1fr) minmax(90px,1fr);align-items:center;gap:3px 12px;min-width:0}
.roster-student strong{font-size:13px;font-weight:550;overflow-wrap:anywhere}
.roster-student>span{font-size:11px;color:#82927f;overflow-wrap:anywhere}
.roster-student small{grid-column:1/-1;font-size:10px;color:#9aa590;overflow-wrap:anywhere}
.roster-actions{display:flex;gap:6px;flex-shrink:0}
.roster-actions .compact{padding:7px 10px}
.roster-actions .danger{color:#ad6c58}
.roster-empty{padding:30px 12px;text-align:center;color:#94a08b;font-size:12px}
.history-row{display:flex;align-items:stretch;gap:6px;margin-top:6px;min-width:0}
.history-entry{flex:1;min-width:0;margin-top:0}
.history-edit-button{align-self:center;flex-shrink:0;border:1px solid #dfe7da;border-radius:7px;background:#fff;color:#527a43;padding:7px 10px;font-size:11px}
.history-edit-button:hover{background:#edf3e9}
@media(max-width:720px){.roster-dialog{padding:18px}.roster-list{max-height:58dvh;padding:3px 9px}.roster-row{gap:8px;padding:9px 0}.roster-student{grid-template-columns:1fr;gap:2px}.roster-student small{grid-column:1}.roster-actions{gap:4px}.roster-actions .compact{padding:7px 8px;font-size:10px}.history-row{gap:4px}.history-edit-button{padding:7px 8px;font-size:10px}}
 .startup-loading { position:fixed; inset:0; z-index:1000; display:grid; place-items:center; background:#f7f8f5; color:#183b32; font-weight:700; }
 .startup-loading[hidden] { display:none; }
.draw-mode-switch{display:flex;gap:6px;padding:4px;background:#f0f4ec;border-radius:10px;margin-bottom:18px}.draw-mode-switch button{flex:1;border:0;border-radius:7px;background:transparent;color:#71806a;padding:10px 12px;font:inherit;font-size:13px;font-weight:650;cursor:pointer}.draw-mode-switch button.active{background:white;color:#315d36;box-shadow:0 1px 4px #1b361311}.number-order-controls{padding-top:2px}.number-order-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.number-order-actions .primary{min-height:46px}.number-order-controls .draw-footnote{margin:14px 0 10px}.number-order-card{text-align:center;z-index:1;position:relative}.number-order-progress{font-size:13px;color:#71806a}.number-order-name{font-size:clamp(42px,7vw,76px);line-height:1.15;font-weight:760;letter-spacing:.08em;color:#244a32;margin:25px 0 4px}.number-order-card .student-pinyin{font-size:16px;color:#748a6c}.number-order-number{font-size:14px;color:#7a8974;margin-top:12px}.number-order-finished{position:relative;z-index:1;font-size:24px;font-weight:700;color:#315d36;text-align:center}.draw-mode-switch [hidden],.number-order-controls[hidden],#randomControls[hidden]{display:none}
.remember-device{display:flex;align-items:center;gap:9px;margin:15px 0 5px;font-size:13px;color:#49624d}.remember-device input{width:17px;height:17px;accent-color:#315d36}.remember-device span{line-height:1.4}#accessDialog .dialog-note{margin:8px 0 12px;font-size:11px}
