:root{font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:#203e39;background:#f6f8f7;font-size:15px}*{box-sizing:border-box}body{margin:0;display:flex}aside{width:246px;background:#123f36;color:#fff;position:fixed;inset:0 auto 0 0;padding:36px 23px;display:flex;flex-direction:column}.brand b{font-size:48px;letter-spacing:-4px}.brand span{color:#d6ef8b;font-size:18px;margin-left:6px}.brand small{display:block;font-size:8px;letter-spacing:1.4px;margin:3px 0 34px}.school{padding:23px 0;border-top:1px solid #ffffff26;line-height:1.8}.school small,.sidefoot{color:#a9c4ba;font-size:12px}nav{display:grid;gap:8px;margin-top:12px}button,input,select{font:inherit}button{cursor:pointer;border:1px solid #dce4df;border-radius:8px;padding:11px 16px;background:white;color:#234a40}button:hover{filter:brightness(.96)}button:disabled{opacity:.5;cursor:default}nav button{background:none;border:0;color:#c0d5cd;text-align:left;font-size:13px;padding:14px 10px}nav button.active{background:#d9edab;color:#183f32;font-weight:650}.sidefoot{margin-top:auto;line-height:1.9}main{margin-left:246px;width:calc(100% - 246px)}header{height:82px;background:#fff;border-bottom:1px solid #e5eae7;display:flex;align-items:center;justify-content:space-between;padding:0 44px;font-size:11px;letter-spacing:.8px}header i{color:#b5c2bc;margin:0 16px}header button{font-size:12px;letter-spacing:0}section{padding:35px 44px;max-width:1400px;margin:auto}.eyebrow{font-size:11px;color:#6f887e;letter-spacing:1.5px;font-weight:650}h1{font-size:33px;letter-spacing:-1px;font-weight:650;margin:9px 0 10px}p{color:#78877f;line-height:1.65}h2{font-size:19px;margin:0 0 8px}.top{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.date{border:1px solid #dbe3dd;padding:12px 17px;border-radius:10px;background:#fff;font-size:13px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin:24px 0}.stat,.card{background:#fff;border:1px solid #e0e7e2;border-radius:13px}.stat{padding:22px}.stat small{color:#7e8d84}.stat strong{font-size:32px;display:block;margin-top:14px}.stat em{font-size:12px;font-style:normal;color:#699772}.card{padding:25px;margin:20px 0}.toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.primary{background:#164e40;color:white;border-color:#164e40}.accent{background:#e6f1ce;border-color:#dce9bd}.pill{border-radius:20px;background:#edf4e6;color:#55723f;padding:6px 11px;font-size:11px}.muted{background:#f4eee0;color:#9b773b}select,input{border:1px solid #d9e1dc;border-radius:7px;padding:11px;background:#fff;color:#254d40}input[type=month]{max-width:210px}table{width:100%;border-collapse:collapse;margin-top:20px;text-align:left;font-size:13px}th{font-size:10px;letter-spacing:.8px;color:#88968c;font-weight:600;background:#f7f9f6;padding:13px}td{border-bottom:1px solid #edf0ec;padding:16px 13px}td small{color:#88968c}.choice{padding:8px 14px;border-radius:6px;font-size:12px}.choice.on{background:#e6f2df;border-color:#a8c493;color:#3c6c2f}.choice.abs.on{background:#fde9e5;border-color:#deafa4;color:#a44832}.bottom{display:flex;justify-content:space-between;align-items:center;padding-top:24px}.note{font-size:12px;color:#8b968f}.notice{background:#f0f3e5;border:1px solid #e1e7c9;border-radius:8px;padding:14px;font-size:12px;line-height:1.7}.empty{text-align:center;padding:40px}footer{padding:15px 44px 30px;font-size:11px;color:#98a399}#banner{padding:0 44px}#banner:not(:empty){padding-top:16px;font-size:12px;color:#846a35}dialog{border:0;border-radius:16px;padding:32px;width:420px;max-width:95vw;box-shadow:0 20px 90px #123f3640}dialog::backdrop{background:#183b3655}label{display:block;font-size:13px;margin:18px 0}label input{display:block;width:100%;margin-top:8px}#toast{position:fixed;bottom:24px;right:28px;background:#153f35;color:white;border-radius:10px;padding:16px;display:none;z-index:20}.forms{display:flex;gap:10px;flex-wrap:wrap}.forms input{max-width:220px}.audit{white-space:pre-wrap;font-size:11px;max-width:300px;overflow-wrap:anywhere}a{color:#1b6e56}.statusline{color:#85968c;font-size:12px}@media(max-width:850px){aside{width:76px;padding:20px 9px}.brand b{font-size:28px}.brand small,.school,.sidefoot{display:none}nav button{font-size:0}nav button::first-letter{font-size:20px}main{margin-left:76px;width:calc(100% - 76px)}section{padding:24px 18px}header{padding:0 18px}.top{align-items:flex-start;gap:16px}h1{font-size:26px}.date{font-size:11px}.stats{gap:8px}.stat{padding:14px}.card{padding:16px;overflow:auto}.bottom{gap:12px}footer{padding:18px}.forms input{max-width:100%}}
/* PU NAN: high-contrast monochrome, touch-friendly controls. */
:root{color:#171717;background:#f5f5f5;font-size:16px}aside{background:#fff;color:#111;border-right:1px solid #d4d4d4;padding:26px 18px}.brand{display:flex;align-items:center;gap:12px}.brand img{width:58px;height:74px;object-fit:contain;flex-shrink:0}.brand b{font-size:17px;letter-spacing:0;line-height:1.4}.brand small{font-size:12px;letter-spacing:1px;color:#555;margin:6px 0 0}.school{font-size:13px;border-top:1px solid #ddd;margin-top:24px}.school small,.sidefoot{color:#555}nav button{color:#333;font-size:14px;min-height:48px;padding:12px 10px}nav button.active{background:#151515;color:#fff}button{color:#171717;border-color:#aaa;min-height:46px}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #111;outline-offset:3px}button:disabled{opacity:1;background:#eee;color:#777;border-color:#ccc}.primary{background:#111;color:#fff;border-color:#111}.accent{background:#fff;border-color:#111;color:#111}.choice{min-height:44px;min-width:96px;color:#333}.choice.on{background:#111;border-color:#111;color:#fff}.choice.abs.on{background:#fff;border:2px solid #111;color:#111;text-decoration:underline;text-underline-offset:3px}.pill{background:#eee;color:#222;border:1px solid #ccc}.muted{background:white;color:#555;border-style:dashed}.eyebrow{color:#555}.stat em,.stat small,p,.note,.statusline,td small{color:#555}.card,.stat{border-color:#d4d4d4}.notice{background:#f1f1f1;border-color:#ccc;color:#333}select,input{color:#111;border-color:#aaa;min-height:46px}th{background:#f1f1f1;color:#555}td{border-color:#ddd}h1{font-size:28px}header{letter-spacing:0;font-size:12px;border-color:#ddd}header i{color:#555}a{color:#111}footer{color:#666}#toast{background:#111}#banner{color:#444;line-height:1.6}#menu{display:none}.profile-logo{width:80px;height:100px;object-fit:contain;display:block;margin:20px 0}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}.settings-grid .card{margin-top:0}.settings-grid label{margin:20px 0}.settings-grid input{max-width:100%}header>span{white-space:nowrap}.stats{margin:16px 0}.stat{padding:18px}.stat strong{font-size:28px;margin-top:8px}.top{margin-bottom:16px}.top p{margin-bottom:0}.card{padding:20px}button:hover{background:#e8e8e8;color:#111}.primary:hover,nav button.active:hover{background:#333;color:white}
@media(max-width:1000px){.settings-grid{grid-template-columns:1fr}.forms{display:grid;grid-template-columns:1fr}.forms input{max-width:100%}}
@media(max-width:850px){aside{width:100%;height:auto;max-height:calc(100dvh - 65px);overflow:auto;inset:65px 0 auto;z-index:30;display:none;padding:20px;border-bottom:2px solid #111;box-shadow:0 10px 20px #0002}.menu-open aside{display:block}.brand img{width:44px;height:55px}.brand b{font-size:18px}.brand small{display:block;font-size:12px}.school,.sidefoot{display:none}nav{grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}nav button{font-size:14px;border:1px solid #ccc;min-height:52px}nav button::first-letter{font-size:14px}main{margin:0;width:100%}header{height:65px;padding:0 12px;position:sticky;top:0;z-index:40;gap:10px}#menu{display:inline-flex;align-items:center;padding:8px 12px}header>span{font-size:11px;overflow:hidden;text-overflow:ellipsis}header>span i{margin:0 4px}header #auth{font-size:11px;padding:8px;min-height:42px;max-width:138px}section{padding:20px 14px 100px}.top{display:block}.date{display:inline-block;padding:7px 10px;font-size:12px;margin-top:12px}.eyebrow{font-size:10px}h1{font-size:25px;line-height:1.2}.top p{font-size:14px}.stats{gap:8px}.stat{padding:12px 9px}.stat small{font-size:11px}.stat strong{font-size:25px}.stat em{font-size:10px}.card{padding:15px;margin:16px 0;overflow-x:auto}.toolbar{gap:16px}.toolbar>div:last-child{display:flex;gap:8px;width:100%}.toolbar select{flex:1;min-width:0}.toolbar button{white-space:nowrap}table{font-size:13px;margin-top:14px}th{font-size:9px;padding:10px 6px}td{padding:14px 6px}td:first-child{width:28px}td:last-child{white-space:nowrap}.choice{padding:10px 8px;min-width:66px;font-size:12px}.bottom{position:fixed;bottom:0;left:0;right:0;background:white;border-top:1px solid #ccc;padding:12px 14px;z-index:20;box-shadow:0 -3px 15px #0001}.bottom .note{font-size:10px;max-width:48%;line-height:1.4}.bottom .primary{min-height:50px;font-size:14px;flex:1}.notice{font-size:11px}#banner{padding:12px 14px 0;font-size:11px}footer{font-size:10px;padding:12px 14px 90px}dialog{padding:24px}#toast{bottom:92px;left:14px;right:14px}.settings-grid{gap:0}.settings-grid .card{overflow:visible}#schoolform button,#passwordform button{width:100%}.brand{justify-content:flex-start}}
@media(max-width:380px){header>span{display:none}.choice{min-width:58px;padding:10px 5px;font-size:11px}td{padding:12px 4px}.stats .stat em{display:none}}

.mobile-school{display:none}@media(max-width:850px){.mobile-school{display:flex;align-items:center;gap:12px;background:white;border-bottom:1px solid #ddd;padding:14px}.mobile-school img{width:36px;height:46px;object-fit:contain}.mobile-school b{display:block;font-size:15px}.mobile-school small{display:block;color:#555;font-size:11px;margin-top:5px}}

.home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}.home-card{display:flex;flex-direction:column;gap:12px;text-align:left;background:white;min-height:120px;padding:22px;border:1px solid #bbb}.home-card b{font-size:18px}.home-card span{font-size:14px;color:#555}#home{white-space:nowrap}@media(max-width:850px){header>span{display:none}header{justify-content:space-between}.home-grid{grid-template-columns:1fr;gap:12px}.home-card{min-height:95px;padding:18px}#home{padding:8px 10px;font-size:13px}}

.school-overview{border:1px solid #999}.school-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0 12px}.school-stat{padding:16px;border:1px solid #ddd;border-radius:8px;background:#fafafa}.school-stat small{display:block;color:#444;font-size:13px}.school-stat strong{display:block;color:#111;font-size:32px;margin-top:10px}.school-stat:last-child{border:2px solid #333}.school-overview .note{margin:10px 0 0;line-height:1.5}.class-summary-heading{margin-top:26px}@media(max-width:650px){.school-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.school-stat{padding:14px}.school-stat strong{font-size:29px}.school-stat small{font-size:12px}.school-overview .toolbar{align-items:center}.school-overview .toolbar>div{width:auto}.school-overview .toolbar button{font-size:12px;padding:9px}}
