:root{--ink:#202039;--muted:#79798d;--line:#e9e8f1;--bg:#f7f7fb;--purple:#5b5bd6;--pale:#ededff;--green:#28a879;--orange:#f1a33c;--blue:#4389de;--red:#db6670;--shadow:0 8px 30px #2d286512}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}.sidebar{position:fixed;inset:0 auto 0 0;width:242px;background:#fff;border-right:1px solid var(--line);padding:27px 18px;display:flex;flex-direction:column;z-index:3}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;padding:0 10px 32px;font-size:18px}.brand span{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:linear-gradient(145deg,#7775ec,var(--purple));color:white;font-weight:800}.sidebar nav{display:grid;gap:6px}.nav{border:0;background:none;color:#707084;text-align:left;padding:12px 14px;border-radius:12px;cursor:pointer;font-weight:650}.nav span{margin-left:12px}.nav:hover,.nav.active{background:var(--pale);color:var(--purple)}.profile{margin-top:auto;border-top:1px solid var(--line);padding:20px 7px 0;display:flex;align-items:center;gap:11px}.profile small,.profile strong{display:block}.profile small{color:var(--muted);font-size:11px}.avatar{width:38px;height:38px;border-radius:12px;background:var(--pale);color:var(--purple);font-weight:800;display:grid;place-items:center}main{margin-left:242px;min-height:100vh;padding:0 44px 50px}header{height:78px;display:flex;align-items:center;justify-content:space-between}header p{margin:0;color:var(--muted);font-size:13px}.menu{display:none}.role-switch{background:#ececf4;border-radius:10px;padding:3px}.role-switch button,.filter button{border:0;background:transparent;padding:7px 13px;border-radius:8px;color:var(--muted);cursor:pointer}.role-switch button.active,.filter button.active{background:#fff;color:var(--purple);box-shadow:0 2px 8px #3332}.page{display:none;max-width:1250px;margin:auto}.page.active{display:block}.hero{min-height:184px;border-radius:22px;padding:34px 40px;background:linear-gradient(120deg,#5553cf,#7775ed);color:#fff;display:flex;justify-content:space-between;align-items:center;position:relative;overflow:hidden}.hero:after{content:"";position:absolute;width:340px;height:340px;border:60px solid #ffffff10;border-radius:50%;right:-80px}.hero h1{font-size:32px;margin:5px 0}.hero p{margin:0;color:#e9e9ff}.eyebrow{font-size:10px;letter-spacing:.14em;font-weight:800;color:var(--purple)}.hero .eyebrow{color:#d8d8ff}.streak{z-index:1;width:96px;height:96px;border-radius:50%;background:#ffffff16;border:1px solid #ffffff2c;display:grid;place-content:center;text-align:center}.streak b{font-size:27px}.streak span{font-size:10px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:20px 0}.stats article{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;display:flex;align-items:center;gap:14px}.stats b,.stats small{display:block}.stats b{font-size:22px}.stats small{color:var(--muted)}.stat-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;font-weight:800}.purple{background:#ecebff;color:var(--purple)}.blue{background:#e5f1ff;color:var(--blue)}.green{background:#e5f8f1;color:var(--green)}.orange{background:#fff1df;color:var(--orange)}.grid{display:grid;grid-template-columns:1.1fr .9fr;gap:20px}.card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.card-head{padding:22px 24px 14px;display:flex;align-items:center;justify-content:space-between}.card-head h2{margin:3px 0;font-size:19px}.link{border:0;background:none;color:var(--purple);cursor:pointer}.lesson,.homework-row,.activity,.student{display:flex;align-items:center;gap:14px;padding:15px 24px;border-top:1px solid var(--line)}.lesson time{width:64px;font-weight:800}.dot{width:10px;height:10px;border-radius:50%;background:var(--purple)}.lesson div,.homework-row div,.activity div,.student div{flex:1}.lesson small,.homework-row small,.activity small,.student small{display:block;color:var(--muted)}.pill{font-size:10px;border-radius:20px;background:var(--pale);color:var(--purple);padding:5px 9px}.page-title{display:flex;justify-content:space-between;align-items:end;margin:14px 0 26px}.page-title h1{font-size:32px;margin:3px 0}.page-title p{color:var(--muted);margin:0}.primary{background:var(--purple);color:#fff;border:0;border-radius:10px;padding:10px 16px;font-weight:750;cursor:pointer}.filter{display:flex;gap:6px;margin-bottom:18px}.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.homework-card{padding:22px}.homework-card header{height:auto}.homework-card h3{margin:14px 0 5px}.homework-card p{color:var(--muted)}.homework-card footer{display:flex;justify-content:space-between;align-items:center;margin-top:20px}.check{border:1px solid var(--line);background:#fff;border-radius:9px;padding:7px 11px;cursor:pointer}.check.done{color:var(--green)}.week{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;overflow:auto}.day{min-width:170px}.day h3{font-size:13px;text-align:center}.lesson-card{background:#fff;border:1px solid var(--line);border-left:4px solid var(--purple);border-radius:12px;padding:14px;margin:9px 0}.lesson-card b,.lesson-card small{display:block}.lesson-card small{color:var(--muted);font-size:11px}.subject-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.subject-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:24px}.subject-card .subject-icon{width:45px;height:45px;border-radius:13px;display:grid;place-items:center;background:var(--pale);font-size:20px}.subject-card h3{margin:14px 0 2px}.subject-card p{color:var(--muted);margin:0}.progress{height:7px;background:#ececf3;border-radius:5px;margin-top:18px;overflow:hidden}.progress i{display:block;height:100%;background:var(--purple)}.behaviour-summary{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:20px}.behaviour-summary div{background:#fff;border-radius:17px;border:1px solid var(--line);padding:25px}.behaviour-summary span,.behaviour-summary b{display:block}.behaviour-summary b{font-size:32px}.activity .points{font-weight:800;color:var(--green)}.activity .points.negative{color:var(--red)}.chat{max-width:800px}.chat-head{display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:19px 24px}.chat-head strong,.chat-head small{display:block}.chat-head small{color:var(--muted)}.chat-head i{display:inline-block;width:7px;height:7px;background:var(--green);border-radius:50%}.messages{height:390px;overflow:auto;padding:24px;background:#fbfbfd}.message{max-width:72%;background:#fff;border:1px solid var(--line);border-radius:14px 14px 14px 3px;padding:11px 14px;margin-bottom:12px}.message.mine{margin-left:auto;background:var(--purple);border:0;color:#fff;border-radius:14px 14px 3px 14px}.message time{font-size:9px;opacity:.65;display:block;margin-top:4px}.chat form{display:flex;padding:15px;border-top:1px solid var(--line);gap:10px}.chat input,.card-head input{flex:1;border:1px solid var(--line);border-radius:10px;padding:10px 13px;outline:none}.admin-stats{grid-template-columns:repeat(3,1fr)}.student .avatar{background:#f0efff}.student button{border:1px solid var(--line);background:#fff;padding:6px 10px;border-radius:8px;cursor:pointer}dialog{border:0;border-radius:18px;width:min(480px,calc(100% - 30px));box-shadow:0 30px 80px #20203940;padding:0}dialog::backdrop{background:#20203980}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line)}.dialog-head h2{margin:0}.dialog-head button{border:0;background:none;font-size:24px}.dialog-actions{padding:16px 24px;display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--line)}.dialog-actions button{border:0;border-radius:9px;padding:9px 14px}.field{display:grid;gap:6px;margin:16px 24px}.field input,.field select,.field textarea{border:1px solid var(--line);border-radius:9px;padding:10px}.field textarea{min-height:85px}.empty{padding:30px;text-align:center;color:var(--muted)}@media(max-width:900px){.sidebar{width:78px}.brand strong,.nav span,.profile div:not(.avatar){display:none}.brand{padding-left:3px}.nav{text-align:center}.profile{justify-content:center}main{margin-left:78px;padding:0 22px 40px}.stats{grid-template-columns:repeat(2,1fr)}.grid,.cards{grid-template-columns:1fr}.subject-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.sidebar{transform:translateX(-100%);width:240px;transition:.2s}.sidebar.open{transform:none}.sidebar.open .brand strong,.sidebar.open .nav span,.sidebar.open .profile div:not(.avatar){display:block}main{margin-left:0;padding:0 14px 30px}.menu{display:inline;border:0;background:none;font-size:20px}.hero{padding:27px 22px}.hero h1{font-size:25px}.streak{display:none}.stats{grid-template-columns:1fr 1fr}.stats article{padding:13px}.stat-icon{display:none}.week{grid-template-columns:repeat(5,170px)}.subject-grid{grid-template-columns:1fr}.page-title{align-items:flex-start;gap:15px}.page-title h1{font-size:27px}.page-title .primary{white-space:nowrap}.role-switch button{padding:6px 8px}}
