:root{font-family:system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif;color:#152c4a;background:#f3f6fa;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100dvh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}a{color:#185ca3}.shell{max-width:1140px;margin:0 auto;padding:22px 22px 104px}.top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.brand{display:flex;align-items:center;gap:12px}.brand-icon{width:48px;height:48px;border-radius:15px;background:linear-gradient(135deg,#112a4c,#276ba4);color:white;display:grid;place-items:center;font-weight:900;letter-spacing:-1px}.brand h1{margin:0;font-size:21px;line-height:1.25}.brand p{margin:4px 0 0;font-size:12px;color:#73829b}.user{display:flex;align-items:center;gap:12px}.user span{font-size:12px;color:#718198}.card{background:white;border:1px solid #e3eaf2;border-radius:17px;box-shadow:0 4px 22px #15335508;padding:20px}.grid{display:grid;gap:16px}.grid.two{grid-template-columns:1fr 1fr}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.stats strong{display:block;font-size:31px;letter-spacing:-1px;margin-top:7px;color:#173d68}.stats small{font-size:13px;color:#6a7890}h2{font-size:21px;letter-spacing:-.25px;margin:0 0 10px}h3{font-size:16px;margin:0 0 14px}p{line-height:1.6}.muted{color:#70819a;font-size:13px}.nav{display:flex;gap:7px;margin-bottom:20px;flex-wrap:wrap}.nav button{background:white;border:1px solid #e1e8f0;color:#34526d;padding:10px 15px;border-radius:12px;font-weight:700}.nav button.active{background:#1e4b79;color:white;border-color:#1e4b79}.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:#18558e;color:white;border:1px solid #18558e;padding:10px 15px;border-radius:11px;font-weight:700}.button.secondary{background:white;color:#1d507c;border-color:#ccd9e8}.button.ghost{background:#f3f7fb;color:#284d71;border-color:#e1ebf5}.button.danger{background:#b93d43;border-color:#b93d43}.button.full{width:100%;padding:14px}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.between{justify-content:space-between}.stack{display:flex;flex-direction:column;gap:15px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field label{font-weight:650;font-size:13px}.field input,.field select,.field textarea{width:100%;padding:11px 12px;border:1px solid #d5e0eb;border-radius:10px;background:white;color:#243c52;outline-offset:2px}.field textarea{min-height:85px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#2974b4;outline:3px solid #deeefa}.smallbox{min-width:155px;flex:1}.summary{padding:13px;background:#f1f7fc;border-radius:12px;border:1px solid #dfeaf5}.warn{padding:11px 13px;background:#fffbf1;border:1px solid #f5e4aa;border-radius:11px;color:#805e1e;font-size:13px}.ok{padding:11px 13px;background:#f0faf4;border:1px solid #cdebd9;border-radius:11px;color:#1a7045;font-size:13px}.attendance-list{display:flex;flex-direction:column;margin-top:8px}.student{display:flex;justify-content:space-between;align-items:center;gap:14px;border-top:1px solid #edf1f6;padding:12px 0}.student:first-child{border-top:0}.student-name{font-weight:700}.student-sub{font-size:12px;color:#8190a3;margin-top:3px}.pills{display:flex;gap:5px;flex-wrap:nowrap}.pill{background:#f6f9fc;border:1px solid #dce6ef;border-radius:9px;font-weight:700;color:#60768c;font-size:12px;padding:8px 11px;min-width:45px}.pill.present{background:#dff5e6;border-color:#7fc79a;color:#20633d}.pill.absent{background:#ffe6e7;border-color:#f2a3a3;color:#a53540}.pill.late{background:#fff1d4;border-color:#f1c96d;color:#8b5815}.pill.leave{background:#e8ecff;border-color:#aebeea;color:#4d61a4}.login-wrap{min-height:95dvh;display:grid;place-items:center;padding:22px}.login-card{width:min(440px,100%)}.login-head{text-align:center;margin-bottom:26px}.login-head .brand-icon{width:68px;height:68px;font-size:26px;margin:0 auto 14px}.login-head h1{margin:0}.login-head p{color:#7d8ba0}.login-card form{display:flex;flex-direction:column;gap:16px}.alert-item{padding:12px 0;border-top:1px solid #e8eef5}.alert-item:first-child{border-top:0}.tag{display:inline-flex;padding:5px 8px;border-radius:8px;background:#edf3fa;font-size:12px;color:#55728b;font-weight:650}.toast{position:fixed;left:50%;bottom:30px;transform:translate(-50%,20px);background:#213952;color:white;border-radius:12px;padding:12px 18px;max-width:min(500px,92vw);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:100;font-size:14px}.toast.show{opacity:1;transform:translate(-50%,0)}.toast.error{background:#9d3841}.empty{padding:24px;text-align:center;color:#8190a2;background:#f7f9fc;border-radius:12px}.loading{padding:40px;text-align:center;color:#6e8197}.foot{font-size:12px;color:#8a98a6;text-align:center;padding:26px 0}hr{border:0;border-top:1px solid #e8edf3;margin:14px 0}.table{width:100%;border-collapse:collapse;font-size:13px}.table td,.table th{border-bottom:1px solid #edf1f6;padding:10px 8px;text-align:left}.table-wrap{overflow:auto}.desktop-only{display:initial}@media(max-width:780px){.grid.two,.grid.four,.grid.three{grid-template-columns:1fr 1fr}.shell{padding:15px 12px 105px}.card{padding:15px}.top{align-items:flex-start}.user{flex-direction:column;align-items:flex-end;gap:7px}.nav{position:fixed;z-index:20;bottom:0;left:0;right:0;justify-content:space-around;flex-wrap:nowrap;background:white;margin:0;padding:9px 5px max(10px,env(safe-area-inset-bottom));box-shadow:0 -4px 18px #09284712;border-top:1px solid #e1e6eb;gap:3px}.nav button{font-size:12px;padding:10px 6px;border:none;flex:1}.student{align-items:flex-start}.student-name{font-size:13px}.pill{padding:8px 7px;min-width:33px}.desktop-only{display:none}}@media(max-width:440px){.grid.two,.grid.four,.grid.three{grid-template-columns:1fr 1fr}.brand h1{font-size:18px}.student{flex-direction:column;gap:8px}.pills{width:100%}.pill{flex:1}.stats strong{font-size:25px}}[data-admin-student-row][hidden]{display:none!important}
@media(max-width:780px){.nav{justify-content:flex-start;overflow-x:auto;overscroll-behavior-x:contain}.nav button{flex:0 0 auto;min-width:79px;white-space:nowrap}.table td,.table th{white-space:nowrap}.table td:nth-child(2){white-space:normal;min-width:125px}}
 .import-error{color:#b4232c;font-weight:700}.import-success{color:#147347;font-weight:700}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}}
