:root{font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#f5f7fb;background:#081426;font-synthesis:none}*{box-sizing:border-box}html[data-theme=light]{color:#172438;background:#edf2f8}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:#ff6b83}h1{font-size:25px;margin:0 0 14px}h2{font-size:20px;margin:8px 0}h3{font-size:17px;margin:8px 0}p{line-height:1.55}.app{max-width:880px;margin:auto;min-height:100dvh;padding-bottom:94px}header{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;background:#0c192b;border-bottom:1px solid #26364c}.brand{display:flex;align-items:center;gap:8px;font-weight:800;font-size:23px;letter-spacing:-.6px}.brand svg,.brand span{color:#ee3855}.brand.big{font-size:37px;margin-bottom:30px}.group{display:flex;justify-content:space-between;align-items:center;margin:16px 16px 8px;background:#17263e;padding:15px 17px;border:1px solid #30425d;border-radius:17px;gap:10px}.group small,.group strong{display:block}.group small{color:#a3afc3;font-size:12px;margin-bottom:5px}.role{font-size:12px;border-radius:30px;background:#56283c;color:#ff8da0;padding:8px 10px;white-space:nowrap}main{padding:18px 16px}.welcome{margin:7px 0 20px}.welcome p{color:#a3afc3;margin:0}.panel{background:#15233a;border:1px solid #2b3d58;border-radius:18px;padding:18px;margin-bottom:14px;overflow:hidden}.panel.accent{background:radial-gradient(circle at 95% 0%,#4a263b,#14243d 65%);border-color:#54324b}.panel small,.eyebrow{color:#a9b6cb;font-size:12px}.panel p{color:#aebbd0}.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tile{border:1px solid #34445f;background:#19283f;color:inherit;min-height:135px;padding:17px;border-radius:17px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between}.tile svg{color:#ef4865}.tile small{color:#9dacc2}.tile:hover,.secondary:hover{border-color:#ed4260}.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 18px}.sectionhead h1{margin:0}.sectionhead span{color:#a9b6cb}.stack{display:grid;gap:10px}.member{display:flex;gap:12px;align-items:center;background:#17263e;padding:12px;border:1px solid #2b3d58;border-radius:15px}.avatar{display:grid;place-items:center;flex:none;width:45px;height:45px;border-radius:13px;background:#35435c;color:#fff;font-weight:700}.grow{flex:1;min-width:0}.grow b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.grow small{display:block;color:#a5b1c3;margin-top:5px}.memberactions,.inline{display:flex;align-items:center;justify-content:space-between;gap:8px}.memberactions{justify-content:flex-end}.iconbtn{display:grid;place-items:center;border:1px solid #34445f;border-radius:12px;color:inherit;background:#23324b;min-width:38px;min-height:38px}.iconbtn.danger{color:#ff748b}.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;padding:13px 17px;background:linear-gradient(120deg,#e93453,#ae2445);color:#fff;font-weight:700;text-decoration:none}.primary.compact{padding:10px 12px;font-size:13px}.secondary{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #41516c;border-radius:11px;padding:10px 12px;background:#263650;color:#fff;margin:4px 4px 4px 0}.lesson h3{margin:8px 0}.lesson p{font-size:14px;margin:6px 0 12px}.scroll{overflow-x:auto}.journal{border-collapse:collapse;width:100%;min-width:460px;text-align:center}.journal th,.journal td{border-bottom:1px solid #34435a;padding:11px 8px;min-width:80px}.journal th:first-child,.journal td:first-child{text-align:left;min-width:135px;position:sticky;left:0;background:#15233a;z-index:1}.journal th{font-size:12px}.journal th small{display:block;margin-top:5px}.journal td{font-size:13px}.mark{border:0;border-radius:10px;width:36px;height:36px;display:inline-grid;place-items:center;font-weight:800}.mark.present{color:#40d99d;background:#153e36}.mark.late{color:#ffc05b;background:#49391e}.mark.absent{color:#ff7485;background:#482633}.mark.excused{color:#82b8ff;background:#1b3653}.mark.none{color:#a6afc0;background:#2a3445}.mark:disabled{opacity:.85;cursor:default}.legend{display:flex;flex-wrap:wrap;gap:10px;margin:15px 0}.legend span{display:flex;align-items:center;gap:6px;font-size:12px;color:#aab6c8}.legend .mark{width:25px;height:25px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;text-align:center}.stats strong,.stats small{display:block}.stats strong{font-size:22px;color:#f05c75}.stats small{font-size:11px;margin-top:7px}.empty{text-align:center;padding:42px 15px;color:#9eabc0;background:#15233a;border:1px dashed #33435d;border-radius:16px}.muted{color:#9eabc0!important;font-size:13px}.alert{background:#522334;border:1px solid #e74b69;border-radius:12px;margin:12px 16px;padding:13px;color:#fff}.auth{max-width:540px;margin:50px auto;padding:20px}.auth .panel{margin-top:22px}.field{display:grid;gap:7px;font-size:13px;color:#bac6d8;margin:12px 0}input,textarea,select{background:#0e1c30;color:#f6f8fb;border:1px solid #394b65;border-radius:10px;padding:12px;min-width:0;width:100%}input[type=checkbox]{width:auto}textarea{min-height:100px;resize:vertical}nav{position:fixed;bottom:0;left:0;right:0;max-width:880px;margin:auto;display:flex;overflow-x:auto;gap:2px;background:#0d192b;border-top:1px solid #2b3d58;padding:8px 7px calc(8px + env(safe-area-inset-bottom));z-index:3}nav button{flex:1 0 72px;min-width:68px;background:transparent;border:0;color:#8797ae;display:flex;flex-direction:column;align-items:center;gap:5px;padding:7px 2px;font-size:10px}nav button.active{color:#ff5a78}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000b;display:flex;align-items:center;justify-content:center;padding:16px;z-index:10}.dialog{width:min(100%,490px);max-height:85dvh;overflow:auto;background:#182840;border:1px solid #40506b;border-radius:18px;padding:20px}.dialog .primary{width:100%;margin-top:14px}.center{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px}.center svg,.center span{color:#e93a59}.center p{max-width:400px}html[data-theme=light] header,html[data-theme=light] nav{background:#fff;border-color:#d8e0eb}html[data-theme=light] .group,html[data-theme=light] .panel,html[data-theme=light] .member,html[data-theme=light] .tile,html[data-theme=light] .empty{background:#fff;color:#172438;border-color:#d7e0ed}html[data-theme=light] .panel.accent{background:linear-gradient(120deg,#fff,#ffe9ee)}html[data-theme=light] .panel p,html[data-theme=light] .welcome p{color:#61728c}html[data-theme=light] .journal th:first-child,html[data-theme=light] .journal td:first-child{background:#fff}html[data-theme=light] input,html[data-theme=light] textarea,html[data-theme=light] select{background:#fff;color:#172438}html[data-theme=light] .secondary,html[data-theme=light] .iconbtn{background:#f2f5fa;color:#25344c}html[data-theme=light] .dialog{background:#fff;color:#172438}@media(max-width:420px){.group{padding:12px}.group small{font-size:11px}.stats strong{font-size:18px}.member{gap:7px}.memberactions{gap:3px}.tiles{gap:9px}.tile{padding:14px;min-height:125px}}.student-hero{margin:14px 0 22px;text-align:center;padding:35px 16px 28px;background:radial-gradient(circle at 50% 0%,#242039,#0a172c 70%);border-radius:18px}.student-hero h1{font-size:clamp(23px,5vw,34px);line-height:1.25;margin:24px 0 13px}.student-hero p{color:#a9b8ce;font-size:17px}.student-hero small{color:#8c9cb1}.student-pill{display:inline-block;padding:10px 18px;border:1px solid #55406f;color:#c4a5ff;border-radius:50px;background:#25203d;font-size:13px;font-weight:700}.student-choices{display:grid;gap:13px;margin:12px 0 24px}.student-choice{width:100%;min-height:86px;display:flex;align-items:center;gap:20px;text-align:left;padding:15px 20px;background:#1b2233;color:#f7f8fd;border:1px solid #343b52;border-radius:17px}.student-choice:hover,.student-choice.selected{border-color:#fa4d70;background:#24243c}.student-choice b{font-size:17px}.student-choice small{display:block;margin-top:5px;color:#9eaac0;font-size:12px}.choice-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:15px;flex:none}.choice-icon.present{background:#1b413a;color:#3cd7a0}.choice-icon.late{background:#433723;color:#f6bb58}.choice-icon.absent{background:#4b2b39;color:#f26e88}.choice-icon.excused{background:#322b5b;color:#b9a4ff}html[data-theme=light] .student-hero{background:#e9eefa}html[data-theme=light] .student-choice{background:#fff;color:#18283e;border-color:#d3dbe7}button:disabled{opacity:.65;cursor:not-allowed}.tg-handle{color:#8db9ec!important;font-size:12px;overflow-wrap:anywhere}.memberactions{flex-wrap:wrap}.memberactions .iconbtn{min-width:34px;min-height:34px}
