:root{font-family:Tahoma,system-ui,sans-serif;color:#23364a;background:#f4f7fb;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:0;border-radius:9px;padding:11px 17px;background:#087f83;color:white;font-weight:600}button:hover{filter:brightness(.94)}button.secondary{background:#edf3f6;color:#344b60}button.small{padding:7px 10px;font-size:12px}a{color:inherit}aside{width:240px;background:#fff;border-right:1px solid #e5ebf0;position:fixed;inset:0 auto 0 0;padding:30px 20px;display:flex;flex-direction:column;gap:8px}.brand{font-size:25px;font-weight:900;color:#087f83;letter-spacing:-1px}.brand span{color:#f6a82e}.subtitle{font-size:11px;color:#8293a3;letter-spacing:1px;margin:5px 0 36px}nav{display:grid;gap:8px}nav button{text-align:left;background:transparent;color:#6a7d8e;padding:14px}nav button.active{background:#e6f5f3;color:#087f83}.foot{margin-top:auto;color:#7c8e9f;font-size:12px;line-height:1.8}.foot strong{color:#30465a}main{margin-left:240px;padding:30px 42px;max-width:1650px}header{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid #e1e8ee;padding-bottom:22px;margin-bottom:30px}header select{width:auto;min-width:160px}h1{font-size:25px;letter-spacing:-.6px;margin:7px 0 10px}h2{font-size:17px;margin:0 0 20px}h3{margin:0 0 10px;font-size:16px}p{line-height:1.8}.muted{color:#8090a0}.eyebrow{color:#087f83;font-size:11px;font-weight:bold;letter-spacing:2px}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.page-heading p{margin:0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:25px}.stat,.panel,.class-card{background:#fff;border:1px solid #e5ebf0;border-radius:14px;padding:23px}.stat .value{font-size:31px;font-weight:700;display:block;margin:15px 0 8px}.stat label{color:#738799}.stat:nth-child(2){background:#087f83;color:white;border-color:#087f83}.stat:nth-child(2) label,.stat:nth-child(2) .muted{color:#c3e9e5}.grid{display:grid;grid-template-columns:1.5fr 1fr;gap:22px}.panel{margin-bottom:22px;overflow:auto}.panel-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.panel-title h2{margin:0}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{font-size:12px;color:#8090a0;font-weight:500;background:#f8fafc}td,th{padding:15px 12px;border-bottom:1px solid #edf1f5}tr:last-child td{border-bottom:0}.badge{padding:5px 9px;border-radius:6px;background:#e7f6f1;color:#188268;font-size:12px;display:inline-block}.badge.warning{background:#fff1de;color:#b97415}.empty{padding:35px;text-align:center;color:#8090a0;line-height:1.9}.list-item{padding:15px 0;border-bottom:1px solid #edf1f5;display:flex;justify-content:space-between;align-items:center;gap:15px}.list-item:last-child{border:0}.class-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.class-card .muted{font-size:12px;line-height:1.9}.class-card form{margin-top:18px;display:flex;gap:8px}.class-card select{min-width:0}.attendance{margin-top:14px}.attendance .list-item{font-size:13px}.actions{display:flex;gap:5px;align-items:center}.auth{max-width:440px;margin:8vh auto;padding:35px;background:white;border:1px solid #e1e8ee;border-radius:18px}.auth .subtitle{margin-bottom:25px}form.fields{display:grid;gap:16px}label.field{display:grid;gap:8px;color:#64788a;font-size:12px}input,select{width:100%;padding:11px 12px;border:1px solid #dbe4eb;border-radius:8px;background:white;color:#23364a}input:focus,select:focus{outline:2px solid #a2d6d2;outline-offset:1px}dialog{border:1px solid #e1e8ee;border-radius:15px;padding:28px;width:min(490px,92vw);max-height:90vh;overflow:auto;color:#23364a}dialog::backdrop{background:#122c4666}dialog h2{margin-bottom:25px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}#toast{position:fixed;right:25px;bottom:25px;max-width:420px;background:#163d48;color:white;padding:16px 22px;border-radius:10px;display:none;z-index:10}.notice{border-left:3px solid #efa636;padding:12px 16px;background:#fff8eb;color:#8d652a;line-height:1.8;margin-bottom:22px;border-radius:6px}.inline{display:flex;gap:12px;align-items:center}.inline input{width:auto}.error{color:#b54738}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}@media(max-width:1000px){aside{width:190px}main{margin-left:190px;padding:25px}.stats{grid-template-columns:repeat(2,1fr)}.grid,.settings-grid{grid-template-columns:1fr}}@media(max-width:700px){aside{position:static;width:100%;padding:18px}.subtitle{margin-bottom:15px}nav{grid-template-columns:repeat(3,1fr)}nav button{padding:10px;text-align:center}.foot{display:none}main{margin:0;padding:20px 15px}.class-grid{grid-template-columns:1fr}.stats{gap:10px}.stat{padding:17px}header{align-items:flex-start}.page-heading{align-items:flex-start}h1{font-size:22px}.auth{margin:30px 15px}.actions{flex-wrap:wrap}}
button:disabled{opacity:.45;cursor:not-allowed}.qr{display:block;max-width:200px;max-height:220px;object-fit:contain;margin:12px 0;border:1px solid #e5ebf0;border-radius:8px}.class-tools{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.lesson-picker{margin-top:20px;padding-top:16px;border-top:1px solid #edf1f5}details{margin-top:12px}summary{cursor:pointer;color:#087f83}input[readonly]{background:#f4f7fb}input[type=file]{white-space:normal}
dialog.wide{width:min(1200px,96vw)}dialog.wide .panel{padding:18px}dialog.wide .stats{grid-template-columns:repeat(4,minmax(0,1fr))}dialog.wide .stat .value{font-size:24px}dialog.wide .actions{flex-wrap:wrap}@media(max-width:700px){dialog.wide .stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
.report-filters{display:flex;gap:18px;flex-wrap:wrap;margin:20px 0}.report-filters .field{min-width:200px}.report-section{border-top:1px solid #e5ebf0;padding:20px 0;overflow:auto}.report-section summary{font-size:16px;font-weight:600;margin-bottom:18px}.report-section h3{margin-top:20px}.report-section td button{margin:3px 0}
.view-filters{display:flex;align-items:end;gap:14px;flex-wrap:wrap}.view-filters .field{min-width:150px;flex:1}.view-filters .search-field{flex:2;min-width:240px}.lesson-calendar{margin-top:20px;border:1px solid #e0e8ee;border-radius:12px;padding:16px;background:#fbfcfd}.calendar-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.calendar-weekday{text-align:center;color:#728798;font-size:12px;padding:6px}.calendar-day{padding:10px 0;min-width:0;background:#edf1f5;color:#8696a4;border:2px solid transparent;font-weight:500}.calendar-day:disabled{opacity:.45}.calendar-day.scheduled{background:#def3ed;color:#076f66;font-weight:700}.calendar-day.future.scheduled{background:#edf1f5;color:#8696a4;font-weight:500}.calendar-day.today{border-color:#eba735}.calendar-day.selected{background:#087f83!important;color:white!important;border-color:#04595c;box-shadow:0 0 0 2px #fff inset}.calendar-legend{font-size:11px;line-height:1.6;color:#718595;margin:12px 0}.legend-dot{display:inline-block;width:10px;height:10px;border-radius:3px;background:#b8e8d8;margin-right:5px}.selected-date{font-size:12px;line-height:1.8;margin:12px 0}.attendance-control{width:200px;flex-shrink:0}.attendance-control select{font-size:12px;padding:10px 7px;font-weight:600}.status-present{background:#e0f4eb;color:#087452;border-color:#a8ddc7}.status-absent{background:#fff0e7;color:#a35e24;border-color:#edc6ad}.status-pending{background:#f1f4f8;color:#637b90}.attendance .list-item{align-items:flex-start}@media(max-width:700px){.attendance-control{width:165px}.view-filters .field{min-width:140px}}

.calendar-day.future.selected{background:#e2e8ee!important;color:#526879!important;border-color:#8d9fae;box-shadow:0 0 0 2px #fff inset}
.student-avatar{width:58px;height:58px;object-fit:cover;border-radius:12px;display:block;margin-bottom:8px;border:1px solid #e1e9ee}
textarea{font:inherit;width:100%;padding:12px;border:1px solid #dbe4eb;border-radius:9px;resize:vertical;color:#23364a}.prose{white-space:pre-wrap;line-height:1.9}.learning-photos{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.learning-photos img{width:170px;height:130px;object-fit:cover;border-radius:10px}.document-link{padding:10px 14px;background:#e8f4f2;color:#087f83;border-radius:8px;display:inline-block}
