:root{--ink:#20312d;--muted:#6d7b75;--paper:#f6f8f6;--surface:#fff;--line:#e1e8e3;--green:#175c4b;--green-light:#e7f2ec;--shadow:0 2px 8px #1b352c05;--radius:16px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none;line-height:1.55}*{box-sizing:border-box}body{margin:0;padding:0 0 calc(90px + env(safe-area-inset-bottom));-webkit-tap-highlight-color:transparent}button,input,select,textarea{font:inherit}button,.file-label{cursor:pointer;touch-action:manipulation}button{border:0}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #75bca5;outline-offset:3px}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:20px;letter-spacing:.04em;line-height:1.35}h2{font-size:25px;letter-spacing:-.03em;font-weight:700}h3{font-size:17px}p{overflow-wrap:anywhere}input,select,textarea{border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);width:100%;min-height:46px;padding:10px 12px;min-width:0;font-size:16px}select{padding-right:28px}input[type=date]{-webkit-appearance:none;min-height:46px}textarea{resize:vertical}input[type=checkbox]{width:22px;height:22px;min-height:22px;accent-color:var(--green)}.topbar{max-width:820px;margin:auto;padding:24px 22px 16px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:12px;align-items:center}.brand-icon{height:43px;width:43px;background:var(--green);color:#fff;border-radius:13px;display:grid;place-items:center;font-weight:700;font-size:29px}.brand p{font-size:11px;color:var(--muted);letter-spacing:.16em;margin-top:3px}.icon-button{width:44px;min-height:44px;background:transparent;border:1px solid var(--line);border-radius:50%;color:var(--ink);font-size:26px;line-height:1}.topbar .icon-button{font-size:25px;background:#fff}main{max-width:820px;margin:auto;padding:0 22px}.utility-row{font-size:11px;color:var(--muted);display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 0 25px;flex-wrap:wrap}.network{display:flex;align-items:center;gap:6px}.network i{width:6px;height:6px;background:#88a698;border-radius:50%;display:inline-block}.network.offline i{background:#c88a29}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 18px}.eyebrow{font-size:9px;letter-spacing:.19em;font-weight:700;color:#8a9b91;margin-bottom:5px}.text-button{background:none;color:var(--green);font-size:13px;font-weight:600;padding:10px 2px;min-height:44px}.setup-card,.data-card{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:var(--radius);padding:18px}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;color:#63746a;margin-bottom:14px;min-width:0}.field-pair{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:12px}.full-width{width:100%}.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;min-height:46px;border-radius:10px;padding:11px 17px;text-align:center;font-size:14px;font-weight:600;line-height:1.5}.primary{color:#fff;background:var(--green);border:1px solid var(--green)}.secondary{color:var(--ink);background:#fff;border:1px solid var(--line)}.empty-state{text-align:center;padding:42px 10px 26px}.empty-symbol{width:64px;height:64px;margin:0 auto 18px;border-radius:20px;background:var(--green-light);display:grid;place-items:center;color:var(--green);font-size:33px}.empty-state h3{font-size:19px}.empty-state p{font-size:14px;color:var(--muted);line-height:1.9;margin:10px 0 22px}.empty-state .text-button{display:block;margin:8px auto 0;font-size:12px;color:var(--muted)}.session-heading{display:flex;align-items:center;justify-content:space-between;margin:27px 0 14px;gap:12px}.session-heading h3{font-size:18px}.session-heading p{font-size:12px;color:var(--muted);margin-top:4px}.pill{display:inline-flex;align-items:center;white-space:nowrap;border:1px solid var(--line);background:#fff;border-radius:30px;padding:5px 10px;font-size:11px;color:var(--muted)}.summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden;padding:12px 3px;margin-bottom:16px}.stat{text-align:center;min-width:0;border-right:1px solid #eef1ee}.stat:last-child{border:0}.stat strong{font-size:22px;font-variant-numeric:tabular-nums;line-height:1.2;display:block}.stat span{font-size:10px;color:var(--muted);display:block;margin-top:4px}.stat.present strong{color:#227454}.stat.absent strong{color:#b14b4b}.stat.late strong{color:#b88228}.stat.excused strong{color:#537bad}.stat.waiting strong{color:#8d70a7}.list-toolbar{display:flex;gap:10px}.search-field{display:flex;align-items:center;gap:7px;flex:1;min-width:0;border:1px solid var(--line);background:#fff;border-radius:10px;padding-left:12px}.search-field span{font-size:22px;color:#7d8d82;line-height:1}.search-field input{border:0;background:transparent;padding-left:0}.list-toolbar>select{width:116px;font-size:13px}.batch-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted);padding:4px 1px}.batch-row .text-button{font-size:12px}.student-list{display:grid;gap:10px}.student-card{padding:13px;background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow)}.student-header{display:flex;align-items:center;gap:10px;min-height:40px;margin-bottom:8px}.student-number{display:grid;place-items:center;min-width:31px;height:31px;border-radius:9px;background:#f0f4f0;color:#7e9083;font-size:11px;font-variant-numeric:tabular-nums}.student-name{font-size:16px;font-weight:650;overflow-wrap:anywhere}.student-identity{flex:1;min-width:0}.student-state{font-size:10px;color:var(--muted);margin-left:7px;font-weight:400;white-space:nowrap}.note-button{background:none;color:#819186;font-size:11px;min-height:44px;min-width:44px;padding:4px 2px}.note-button.has-note{color:var(--green)}.status-buttons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.status-button{border-radius:8px;min-height:44px;padding:8px 2px;font-size:12px;color:#8a958e;background:#f5f7f5;white-space:nowrap;border:1px solid transparent}.status-button[aria-pressed=true]{font-weight:700}.status-button.present[aria-pressed=true]{background:#e4f3e9;color:#23704d;border-color:#c0dfcb}.status-button.absent[aria-pressed=true]{background:#fbecec;color:#b24a4a;border-color:#edcccc}.status-button.late[aria-pressed=true]{background:#fff3de;color:#9d6e1d;border-color:#eed9b1}.status-button.excused[aria-pressed=true]{background:#eaf0fa;color:#5277a9;border-color:#cddbef}.status-button.waiting[aria-pressed=true]{background:#f2ebf7;color:#8b65a2;border-color:#e0d1ea}.student-note{font-size:12px;color:var(--muted);margin-top:9px;padding:7px 9px;background:#f7f9f7;border-radius:7px;white-space:pre-wrap;overflow-wrap:anywhere}.session-footer{display:flex;flex-direction:column;align-items:center;margin:18px 0;font-size:10px;color:#97a399;gap:2px}.notice{background:#edf3ef;color:#486759;border:1px solid #dbe6de;border-radius:12px;padding:14px 16px;font-size:13px;margin:16px 0}.notice p{margin-top:6px;font-size:12px;line-height:1.9}.danger{background:#fff1e8;border-color:#f0d2bb;color:#985c34}.privacy-note{margin-top:0}.privacy-note strong{font-size:14px}.data-card{margin-bottom:14px}.data-card>p{font-size:12px;color:var(--muted);line-height:1.9;margin:9px 0 15px}.card-heading{display:flex;justify-content:space-between;gap:10px;align-items:center}.muted{font-size:12px;color:var(--muted)}.button-row{display:flex;flex-wrap:wrap;gap:8px}.button-row>*{flex:1;white-space:nowrap}.file-label{position:relative;overflow:hidden}.file-label input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.class-list{margin-top:14px}.class-item{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid var(--line);font-size:13px}.class-item span:last-child{color:var(--muted);font-size:12px;white-space:nowrap}.help-card{border:1px solid var(--line);border-radius:12px;padding:14px 16px;background:#fff;margin-top:18px}.help-card summary{font-size:13px;font-weight:600;cursor:pointer;min-height:32px;line-height:32px}.help-card p{font-size:12px;color:var(--muted);line-height:1.9;margin-top:12px}.history-filters{display:flex;align-items:end;gap:10px;margin-bottom:14px}.history-filters .field{flex:1;margin:0}.history-filters input,.history-filters select{font-size:14px}.history-filters>.text-button{padding-bottom:12px}.history-list{display:grid;gap:12px}.history-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:17px;width:100%;text-align:left;color:var(--ink)}.history-card .history-top{display:flex;justify-content:space-between;gap:10px;align-items:center}.history-card h3{font-size:16px}.history-card .date-label{font-size:12px;color:var(--muted);margin:5px 0 12px}.history-card .history-stats{display:flex;flex-wrap:wrap;gap:6px 13px;font-size:11px;color:var(--muted)}.history-stats b{color:var(--ink);font-size:13px;font-variant-numeric:tabular-nums;margin-left:3px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:10;display:grid;grid-template-columns:repeat(3,1fr);background:#fffffff5;backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:7px max(20px,calc((100% - 780px)/2)) calc(7px + env(safe-area-inset-bottom));gap:10px}.bottom-nav button{display:flex;flex-direction:column;gap:0;align-items:center;justify-content:center;min-height:51px;font-size:11px;background:none;color:#8c9b91;border-radius:10px}.bottom-nav button span{font-size:23px;line-height:1.2;height:28px}.bottom-nav button[aria-current=page]{color:var(--green);font-weight:700;background:#eef5f0}.skip-link{position:absolute;left:10px;top:-100px;z-index:100;background:white;padding:10px}.skip-link:focus{top:5px}#toast{position:fixed;bottom:calc(88px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:50;max-width:min(90%,540px);width:max-content;padding:12px 17px;border-radius:12px;background:#233b32f2;color:#fff;box-shadow:0 5px 24px #0002;font-size:13px;text-align:center}#toast.error{background:#935538}dialog{width:min(calc(100% - 28px),540px);max-height:calc(100dvh - 44px);border:1px solid var(--line);padding:23px;border-radius:20px;color:var(--ink);box-shadow:0 20px 80px #15281e33;overflow:auto}dialog::backdrop{background:#14291f66;backdrop-filter:blur(3px)}.dialog-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.dialog-header h2{font-size:21px}.dialog-header .icon-button{flex-shrink:0}dialog>p{font-size:13px;line-height:1.9;margin:12px 0 18px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.candidate{border:1px solid var(--line);border-radius:12px;padding:13px;margin-top:12px}.candidate-top{display:flex;gap:10px;align-items:center}.candidate-top input[type=text]{font-size:14px;min-width:0}.candidate>p{margin:8px 0 0 32px;font-size:11px;color:var(--muted)}.candidate .warning-text{color:#9f7739}.no-results{text-align:center;font-size:13px;color:var(--muted);padding:35px 10px}.modal-open{overflow:hidden}@media(min-width:700px){.topbar{padding-top:32px}.setup-card{display:grid;grid-template-columns:1.15fr 1.3fr;gap:14px}.setup-card>.primary{grid-column:1/-1}.setup-card .field,.setup-card .field-pair .field{margin:0}.student-list{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-grid{padding:17px 4px}.stat strong{font-size:27px}.stat span{font-size:12px}.student-card{padding:14px}.view{padding-bottom:20px}.data-card{padding:22px}.utility-row{margin-bottom:30px}.empty-state{padding:55px 10px}.section-heading{margin-bottom:20px}}@media(max-width:359px){main{padding:0 13px}.topbar{padding-left:13px;padding-right:13px}.student-card{padding:10px}.field-pair{gap:8px}.setup-card{padding:14px}.status-button{font-size:11px}.history-filters{flex-wrap:wrap}.history-filters>.field{min-width:110px}.summary-grid .stat strong{font-size:20px}dialog{padding:17px}}
