
:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#19344c;background:#f3f6f9;font-synthesis:none;--navy:#12395b;--blue:#17659a;--muted:#6c8093}*{box-sizing:border-box}body{margin:0}header{height:94px;background:var(--navy);color:white;display:flex;align-items:center;justify-content:space-between;padding:0 42px}.brand{display:flex;align-items:center;gap:15px}.brand-icon{display:grid;place-items:center;font-family:Georgia,serif;font-size:30px;border:1px solid #83aac2;border-radius:12px;width:48px;height:48px}.brand strong{font-size:19px}.brand small{display:block;color:#b6cddd;letter-spacing:2px;font-size:10px;margin-top:7px}#date-label{font-size:13px;color:#c8d9e6}.shell{display:flex;min-height:calc(100vh - 94px)}aside{width:245px;flex-shrink:0;border-right:1px solid #dfe7ed;background:#fff;padding:32px 20px;position:relative}.nav-caption{font-size:10px;letter-spacing:1.4px;color:#8191a1;margin:5px 12px 22px}nav{display:grid;gap:9px}nav button{text-align:left;background:transparent;color:#61788b;display:flex;gap:14px;align-items:center;font-size:16px;border:0;padding:16px}nav button.selected{background:#eaf3fa;color:#125887;border-left:3px solid #1674ad;font-weight:650}.aside-note{margin:100px 10px 0;font-size:11px;color:#4e6e82;line-height:1.7}.aside-note p{color:#8a9aaa}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#2b9c73;margin-right:6px}main{padding:42px 50px;max-width:1600px;width:100%;min-width:0}.eyebrow{font-size:10px;font-weight:700;color:#5383a5;letter-spacing:2px;margin:0 0 12px}h1{font-size:30px;letter-spacing:-.8px;margin:0 0 10px}h2{font-size:19px;margin:0 0 18px}h3{font-size:15px}p{line-height:1.65}.intro{color:var(--muted);font-size:14px;margin:0 0 30px}.card{background:white;border:1px solid #e0e8ee;border-radius:14px;padding:28px;margin-bottom:22px;box-shadow:0 3px 12px #23465c04}.card-header{border-bottom:1px solid #edf1f4;margin:-2px 0 26px;padding-bottom:18px;display:flex;justify-content:space-between;align-items:center}.card-header h2{margin:0}.badge{font-size:11px;background:#edf6fb;padding:7px 11px;border-radius:20px;color:#47718d}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.full{grid-column:1/-1}label{display:block;font-size:12px;font-weight:650;line-height:1.6}input,select,textarea{min-width:0;max-width:100%;display:block;width:100%;border:1px solid #cfdae3;background:white;border-radius:7px;padding:12px 13px;color:#203e54;font:inherit;font-size:14px;margin-top:7px;min-height:44px}input[type=checkbox]{display:inline-block;width:19px;height:19px;min-height:0;accent-color:var(--blue);vertical-align:middle;margin:0 7px 0 0}input[type=file]{font-size:12px}textarea{resize:vertical;min-height:130px}input:focus,select:focus,textarea:focus,button:focus-visible{outline:3px solid #82b9dc66;outline-offset:2px;border-color:#4789b5}small,.muted{color:var(--muted);font-size:12px}.helper{margin:9px 0 0;font-size:11px;color:#8395a3}button,.button{font-family:inherit;cursor:pointer;background:var(--blue);border:1px solid transparent;border-radius:7px;color:white;font-size:13px;font-weight:650;padding:12px 18px;display:inline-block;text-decoration:none;line-height:1.4}button:hover,.button:hover{filter:brightness(.95)}button:disabled{opacity:.45;cursor:not-allowed}.secondary{background:#fff;border-color:#ccd9e2;color:#355970}.danger{background:#fff0f1;border-color:#f5ced3;color:#b12b3b}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:24px}.actions.end{justify-content:flex-end;border-top:1px solid #edf1f4;padding-top:22px}.callout{background:#ecf5fa;border:1px solid #d7e8f2;border-radius:9px;padding:17px 20px;color:#4b748f;font-size:12px;line-height:1.6}.callout strong{display:block;color:#275775;margin-bottom:3px}.step{font-size:11px;color:#7b95a6}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:25px 0}.stat{background:white;border:1px solid #e1e9ee;border-radius:10px;padding:20px}.stat b{display:block;font-size:27px;margin:8px 0}.stat small{font-size:11px}.table-wrap{overflow:auto;border:1px solid #e0e7ec;border-radius:8px}table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}th{background:#eef4f8;color:#385d77;text-align:left;font-size:10px;letter-spacing:.4px;padding:15px 12px}td{padding:12px;border-top:1px solid #e6edf2}td input[type=text]{margin:0;min-width:200px;font-size:12px;padding:8px}.attendance td:first-child{min-width:220px}.attendance td:nth-child(2),.attendance td:nth-child(3){text-align:center}.row-absent{background:#fff1f2}.row-late{background:#fff8eb}.state-N,.state-X{background:#d93645!important;color:white;text-align:center;font-weight:700}.state-D{background:#fde68a!important;color:#302609;text-align:center;font-weight:700}.state-empty{background:#e5e7eb!important;color:#677584;text-align:center}.report td:nth-child(n+4){text-align:center;min-width:70px}.report th{background:#173b66;color:white}.link{border:0;background:none;color:#17659a;padding:0;text-align:left}.subnav{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0}.subnav button{background:#e9f0f5;color:#51738c}.subnav button.selected{background:#173b66;color:white}.inline-check{font-weight:400;padding:8px 0}.list-item{flex-wrap:wrap;overflow-wrap:anywhere;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e8eef2;padding:13px 0;gap:10px}.list-item .actions{margin:0}.list-item button{padding:7px 11px;font-size:11px}#notice{position:fixed;bottom:25px;right:25px;max-width:460px;background:#156547;color:white;border-radius:9px;padding:16px 22px;box-shadow:0 8px 30px #0002;display:none;z-index:20}#notice.error{background:#a12d3c}dialog{border:0;border-radius:14px;padding:30px;width:min(1000px,95vw);max-height:90vh;color:#19344c}dialog::backdrop{background:#12324a88}dialog #close-modal{margin-top:22px}.empty{text-align:center;padding:40px 20px;color:#7890a1}.login{max-width:480px;margin:35px auto}.coverage{display:flex;gap:10px;flex-wrap:wrap}.coverage span{padding:9px 12px;border:1px solid #dde7ee;border-radius:6px;font-size:12px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px}.legend{font-size:11px;line-height:1.8;color:#607b8e;margin-top:18px}.search{max-width:300px;margin-bottom:14px}.help-line{display:flex;gap:12px;margin:24px 0;color:#668297;font-size:12px}.help-line b{color:#305a77}.loading{padding:70px;color:#638199;text-align:center}@media(min-width:1300px){.teacher-form{max-width:950px}}@media(max-width:900px){header{padding:18px;height:85px}#date-label{display:none}aside{width:180px;padding:25px 10px}main{padding:30px 24px}.stats{grid-template-columns:repeat(2,1fr)}.grid.three{grid-template-columns:1fr 1fr}}@media(max-width:620px){header{height:78px}.brand strong{font-size:15px}.brand small{font-size:8px}.brand-icon{width:40px;height:40px}.shell{display:block}aside{width:100%;padding:8px;border-right:0;border-bottom:1px solid #dfe7ed}.nav-caption,.aside-note{display:none}nav{display:flex;gap:4px}nav button{flex:1;justify-content:center;font-size:12px;gap:6px;padding:12px 6px}nav button.selected{border-left:0;border-bottom:2px solid #1674ad}main{padding:26px 15px}h1{font-size:25px}.card{padding:20px}.grid,.grid.three{grid-template-columns:1fr;gap:17px}.card-header{gap:8px}.badge{font-size:9px}.stats{gap:8px}.stat{padding:14px}.actions button{flex-grow:1}.toolbar{align-items:flex-start;flex-direction:column}.attendance td:first-child{min-width:160px}.attendance td{padding:10px 7px}#notice{left:15px;right:15px;bottom:15px}}
.cell-history{color:inherit}pre{white-space:pre-wrap;overflow-wrap:anywhere}.report td:first-child,.report th:first-child{position:sticky;left:0;background:white}.report th:first-child{background:#173b66}
.second-hour{margin-top:14px}
@media(max-width:620px){nav{width:100%;min-width:0}nav button{min-width:0;gap:4px;padding-left:2px;padding-right:2px;font-size:11px}nav button span{white-space:nowrap;font-size:10px}}

@media(max-width:620px){.brand{min-width:0;gap:10px}.brand-icon{flex-shrink:0}.brand strong{overflow-wrap:anywhere}.list-item>span{min-width:0;flex:1 1 160px}.list-item .actions{flex-wrap:wrap}input,select,textarea{font-size:16px}.subnav{margin:12px 0}.help-line{flex-wrap:wrap}dialog{padding:18px}}
