:root{font-family:Arial,Helvetica,sans-serif;color:#172033;background:#f4f6fa;font-synthesis:none;text-rendering:optimizeLegibility}
*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,textarea{font:inherit}button{cursor:pointer}
.topbar{height:70px;background:#fff;border-bottom:1px solid #e7eaf0;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1240px)/2));position:sticky;top:0;z-index:5}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#152039;font-family:Arial,sans-serif;font-weight:800;letter-spacing:.08em}
.brand-mark{width:52px;height:52px;border-radius:16px;background:#1e3a8a;color:white;display:grid;place-items:center;font:800 26px Arial,sans-serif;box-shadow:0 8px 20px #1e3a8a2b}
.brand-mark.small{width:34px;height:34px;border-radius:10px;font-size:18px}
.top-actions{display:flex;align-items:center;gap:22px}.top-actions form{margin:0}.top-caption,.muted,.hint{color:#7b8497}.top-caption{font-size:13px}
.container{max-width:1240px;margin:0 auto;padding:36px 24px 70px}.page-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:26px}
h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Arial,Helvetica,sans-serif;letter-spacing:-.035em}h1{font-size:34px;margin-bottom:7px}h2{font-size:21px;margin-bottom:0}h3{font-size:17px;margin-bottom:5px}
.eyebrow{font-size:10px;font-weight:700;letter-spacing:.15em;color:#71809b;margin:0 0 7px}.muted{font-size:13px;margin-bottom:0;line-height:1.5}
.button{border:0;border-radius:10px;padding:11px 16px;font-weight:700;font-size:13px;transition:.15s}.button:hover{filter:brightness(.96);transform:translateY(-1px)}.primary{background:#2449a5;color:white}.danger{background:#fff0ef;color:#b42318}.ghost{background:#f0f2f6;color:#45516a}.full{width:100%}
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.stat-card,.panel,.student-card{background:#fff;border:1px solid #e8ebf1;border-radius:16px;box-shadow:0 3px 12px #18294b08}
.stat-card{padding:18px 20px}.stat-label{display:block;color:#7b8497;font-size:12px;margin-bottom:7px}.stat-card strong{font:800 27px Arial,sans-serif}
.panel{padding:22px}.lesson-panel{margin-bottom:34px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.status-pill{border-radius:30px;padding:7px 11px;font-size:11px;font-weight:700}.status-pill.neutral{background:#f0f2f6;color:#6d7688}.status-pill.live{background:#e5f7ee;color:#16804b}
.lesson-start{display:flex;gap:10px;margin-top:18px}.lesson-start input{flex:1}.lesson-active{display:flex;align-items:center;justify-content:space-between;padding:14px;background:#f7f9fc;border-radius:12px;margin-top:15px}.lesson-active p{margin:5px 0 0}.hint{font-size:11px;margin:12px 0 0}
input,textarea{width:100%;border:1px solid #dfe4ec;background:#fff;border-radius:9px;padding:12px 13px;color:#172033;outline:none}input:focus,textarea:focus{border-color:#7391d4;box-shadow:0 0 0 3px #2449a514}label{font-size:12px;font-weight:700;color:#536078;margin-bottom:-5px}
.content-section{margin-top:32px}.search-input{max-width:260px}.students-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.student-card{padding:18px;min-width:0}.student-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:15px}.student-name{cursor:pointer}.student-name:hover{color:#2449a5}.student-meta{font-size:11px;color:#8790a1}.student-count{font-size:11px;background:#f1f4fa;color:#5d6b84;padding:6px 9px;border-radius:20px;white-space:nowrap}
.event-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.event-button{border:1px solid #e8ebf1;background:#fafbfc;color:#39445a;border-radius:9px;padding:9px 8px;text-align:left;font-size:11px;font-weight:600;min-height:39px}.event-button:hover{border-color:#9aadd8;background:#f3f6fc}.event-button span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card-footer{display:flex;justify-content:space-between;align-items:center;margin-top:13px;padding-top:12px;border-top:1px solid #eef0f4}.text-button{border:0;background:none;color:#2449a5;font-weight:700;font-size:12px;padding:4px}.text-button.muted-action{color:#7b8497}
.recent-list{padding:0;overflow:hidden}.recent-row{display:flex;justify-content:space-between;gap:15px;padding:13px 17px;border-bottom:1px solid #eef0f4;font-size:12px}.recent-row:last-child{border-bottom:0}.recent-row strong{display:block;margin-bottom:4px}.recent-time{color:#8992a3;white-space:nowrap;font-size:11px}.empty-state{text-align:center;padding:35px 15px;color:#788397;background:#fff;border:1px dashed #d8deea;border-radius:15px}.empty-state strong{color:#344057}.empty-state p{font-size:13px;margin:7px 0 0}.hidden{display:none!important}
.modal{border:0;border-radius:18px;padding:25px;width:min(440px,calc(100% - 28px));box-shadow:0 24px 80px #0b173344}.modal::backdrop{background:#10182888;backdrop-filter:blur(3px)}.modal-wide{width:min(760px,calc(100% - 28px));max-height:88vh;overflow:auto}.stack{display:flex;flex-direction:column;gap:12px}.modal-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:8px}.icon-button{border:0;background:#f1f3f7;border-radius:9px;width:32px;height:32px;font-size:22px;color:#59647a}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}
.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#172033;color:white;border-radius:10px;padding:12px 17px;font-size:13px;box-shadow:0 8px 30px #0002;transition:.2s;z-index:20}.toast.show{opacity:1;transform:translate(-50%,0)}
.login-page{display:grid;place-items:center;background:radial-gradient(circle at top left,#dce7ff,#f4f6fa 50%,#e9eef8);padding:20px}.login-card{background:#fff;border:1px solid #e8ebf1;box-shadow:0 20px 70px #15284b16;border-radius:22px;padding:38px;width:min(410px,100%);text-align:center}.login-card .brand-mark{margin:0 auto 20px}.login-card h1{font-size:27px}.login-card .stack{text-align:left;margin-top:25px}.error{color:#b42318;font-size:13px;min-height:18px;margin:12px 0 0}
.profile-header{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:20px}.profile-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.profile-section{border-top:1px solid #edf0f5;padding-top:16px;margin-top:16px}.profile-entry{padding:11px 0;border-bottom:1px solid #edf0f5;font-size:12px}.profile-entry:last-child{border:0}.profile-entry small{display:block;color:#8490a3;margin-top:5px}.note-form{display:flex;flex-direction:column;gap:8px;margin:12px 0}.note-content{white-space:pre-wrap;line-height:1.5}.danger-link{color:#b42318}
@media(max-width:760px){.container{padding:25px 15px 50px}.page-heading{align-items:flex-start;flex-direction:column}.stats-grid{gap:8px}.stat-card{padding:13px}.stat-card strong{font-size:22px}.students-grid{grid-template-columns:1fr}.top-caption{display:none}.lesson-start{flex-direction:column}.profile-columns{grid-template-columns:1fr}.section-title{align-items:flex-start;flex-direction:column}.search-input{max-width:none}.topbar{padding:0 15px}}

.profile-head-actions{display:flex;align-items:center;gap:10px}
