@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Nunito:wght@400;600;700;800;900&display=swap');
:root {
  color-scheme: light;
  --bg: #f8f7fc; --card: #fff; --ink: #29243c; --muted: #6c667d; --line: #eeebf4;
  --purple: #6b46ce; --pale: #f0eaff; --lavender: #e6dafa; --orange: #fae9dd; --mint: #e5f5ec;
  --body: Nunito, system-ui, sans-serif; --title: Manrope, var(--body);
}
* { box-sizing: border-box; }
body { margin:0; color:var(--ink); background:var(--bg); font-family:var(--body); font-size:15px; }
button,input,textarea,select { font:inherit; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled { cursor:wait; opacity:.65; }
a { color:var(--purple); }
:focus-visible { outline:3px solid #8058eb; outline-offset:4px; }
h1,h2,h3,p { margin:0; }
h1,h2,h3 { font-family: var(--title); }
h2 { font-size:23px; font-weight:800; letter-spacing:-.65px; }
h3 { font-size:16px; font-weight:800; line-height:1.4; }
svg { width:20px; height:20px; flex:none; display:inline-block; vertical-align:middle; }
.layout { display:grid; grid-template-columns:236px minmax(0,1fr); min-height:100vh; }
.sidebar { position:sticky; top:0; height:100dvh; display:flex; flex-direction:column; background:white; border-right:1px solid var(--line); padding:32px 18px 22px; }
.brand { display:flex; align-items:center; gap:10px; padding-left:5px; line-height:1.1; text-decoration:none; color:var(--ink); font:800 17px var(--title); white-space:nowrap; }
.brand-accent { color:var(--purple); }
.brand small { display:block; font:800 9px var(--body); color:var(--muted); margin-top:3px; letter-spacing:1.1px; }
.brand-icon { display:grid; place-items:center; background:#774bd7; color:white; width:38px; height:38px; border-radius:12px; box-shadow:0 4px 10px #9d79ef45; }
.sidebar nav { margin-top:45px; display:grid; gap:5px; }
.nav-link { min-height:46px; padding:0 12px; display:flex; align-items:center; gap:11px; text-decoration:none; color:#686176; font-weight:800; border-radius:11px; }
.nav-link:hover,.nav-link[aria-current="page"] { color:#6036c6; background:var(--pale); }
.nav-link[aria-current="page"] { box-shadow:inset 3px 0 #885ded; }
.side-footer { margin-top:auto; }
.side-note { background:#f7f3ff; padding:15px; border-radius:14px; }
.side-note b { display:block; margin-bottom:3px; }
.side-note p { font-size:13px; color:var(--muted); }
.side-note svg { color:var(--purple); margin-bottom:6px; }
.top { height:80px; padding:0 38px; border-bottom:1px solid var(--line); background:#ffffffba; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.crumb { font-weight:800; color:#5d566c; display:flex; align-items:center; gap:8px; }
.crumb svg { width:17px; height:17px; color:#7c61aa; }
.account { display:flex; gap:9px; align-items:center; }
.btn { display:inline-flex; justify-content:center; align-items:center; gap:8px; padding:10px 17px; border:1px solid transparent; background:#7147cf; color:white; border-radius:11px; font-weight:800; text-decoration:none; min-height:41px; }
.btn:hover { background:#5f37bf; }
.btn.light { background:#fff; color:#5d3bb1; border-color:#e7dcf7; }
.btn.light:hover { background:#f3edfe; }
.btn.ghost { background:transparent; color:var(--purple); padding-inline:8px; }
.btn.ghost:hover { background:var(--pale); }
.btn svg { width:17px; height:17px; }
.content { max-width:1260px; padding:28px 38px 0; margin:auto; }
.hero { min-height:256px; background:linear-gradient(106deg,#eee4ff 2%,#eaddfa 63%,#e1cef8 100%); border:1px solid #e6d8fc; border-radius:24px; position:relative; isolation:isolate; display:flex; align-items:center; overflow:hidden; padding:34px 36px; }
.hero::after { position:absolute; content:''; z-index:-2; width:390px; height:390px; border:1px solid #ffffff78; border-radius:100%; right:0; top:-66px; box-shadow:0 0 0 24px #ffffff23,0 0 0 48px #ffffff1c; }
.hero-copy { z-index:1; max-width:60%; }
.kicker { color:#6446a2; font-weight:900; letter-spacing:1.3px; font-size:11px; text-transform:uppercase; display:flex; align-items:center; gap:6px; margin-bottom:10px; }
.kicker svg { width:15px; height:15px; }
.hero h2 { font-size:clamp(34px,4.1vw,62px); line-height:1.04; letter-spacing:-.06em; font-weight:800; overflow-wrap:anywhere; }
.hero + .page-head { margin-top:25px; }
.hero p { color:#5d4d75; margin:12px 0 19px; font-size:16px; font-weight:700; }
.character { position:absolute; pointer-events:none; height:112%; width:42%; object-fit:contain; object-position:center bottom; bottom:-16px; right:2%; animation:greet .8s ease-out both; }
@keyframes greet { from { opacity:0; transform:translateY(18px) rotate(4deg); } to {opacity:1; transform:translateY(0) rotate(0);} }
.bubble { position:absolute; right:7%; top:14%; z-index:1; transform:rotate(10deg); padding:7px 14px; border-radius:14px 14px 14px 4px; background:white; color:#683dca; font:900 19px var(--body); box-shadow:0 4px 14px #7952b51e; }
.stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:18px 0 28px; }
.stat,.panel { border:1px solid var(--line); background:white; border-radius:16px; box-shadow:0 3px 7px #3a275504; }
.stat { text-decoration:none; color:var(--ink); display:flex; align-items:center; gap:12px; padding:15px; min-width:0; }
.stat:hover { border-color:#d8c3fa; }
.tile-icon { flex:none; width:43px; height:43px; display:grid; place-items:center; border-radius:12px; background:var(--pale); color:#7044cb; }
.tile-icon.orange { background:var(--orange); color:#a05027; }
.tile-icon.green { background:var(--mint); color:#278565; }
.stat strong { display:block; font-family:var(--title); font-size:20px; line-height:1.15; }
.stat small { color:var(--muted); font-size:13px; font-weight:700; }
.columns { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr); align-items:start; gap:20px; }
.panel { padding:19px; min-width:0; }
.panel-head { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:15px; }
.panel-head a { font-size:13px; white-space:nowrap; font-weight:900; text-decoration:none; }
.panel-head a:hover { text-decoration:underline; }
.item { display:flex; align-items:center; gap:12px; padding:12px 0; min-width:0; border-top:1px solid var(--line); }
.item-main { min-width:0; flex:1; overflow-wrap:anywhere; }
.item-main .quiet { display:block; font-size:13px; margin-top:4px; }
.item .btn { padding:7px 11px; min-height:35px; font-size:13px; }
.badge { display:inline-block; padding:3px 8px; border-radius:7px; background:#f9eee5; color:#91592f; font-size:11px; font-weight:900; }
.badge.green { background:var(--mint); color:#23674f; }
.badge.purple { background:var(--pale); color:#6643aa; }
.award { display:flex; align-items:center; gap:12px; padding:10px 0; border-top:1px solid var(--line); }
.award .quiet { font-size:12px; line-height:1.35; }
.award .tile-icon { background:#fff0cb; color:#a46f26; }
.award.locked .tile-icon { background:#f2eff6; color:#726a80; }
.quiet { color:var(--muted); }
.page-head { display:flex; align-items:end; justify-content:space-between; gap:15px; margin:8px 0 20px; }
.page-head h1 { font-size:clamp(27px,4vw,39px); letter-spacing:-.05em; }
.page-head p { margin-top:5px; }
.empty { color:var(--muted); padding:24px 0; }
.avatar { display:grid; place-items:center; overflow:hidden; width:35px; height:35px; background:#eee4fa; border-radius:50%; flex:none; color:var(--purple); }
.avatar img { width:135%; height:135%; object-fit:contain; }
.person { max-width:170px; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.entry-list { display:grid; gap:15px; }
.entry-list .panel { padding:17px 21px; }
.entry-list .item { border:0; padding:0; }
.main-footer { max-width:1260px; padding:24px 38px; margin:auto; color:#716a82; display:flex; justify-content:space-between; font-size:12px; font-weight:800; }
.footer-star { color:#8a66dd; }
dialog { width:min(535px,calc(100% - 28px)); border:1px solid var(--line); border-radius:20px; padding:0; color:var(--ink); box-shadow:0 20px 80px #3122523d; max-height:calc(100dvh - 26px); }
dialog::backdrop { background:#28203c66; backdrop-filter:blur(3px); }
.dialog-inner { padding:25px; }
.dialog-head { display:flex; gap:12px; justify-content:space-between; align-items:start; margin-bottom:13px; }
.close { border:0; border-radius:10px; color:var(--muted); background:var(--bg); width:34px; height:34px; flex:none; }
.close:hover { background:var(--pale); }
form { display:grid; gap:13px; margin-top:15px; }
label { display:grid; gap:5px; font-weight:800; }
input:not([type="radio"]), textarea, select { min-width:0; width:100%; padding:10px 11px; background:#fcfbfe; border:1px solid #ded7eb; border-radius:9px; color:var(--ink); }
textarea { resize:vertical; min-height:105px; }
fieldset { border:0; margin:0; padding:0; }
legend { font-weight:800; padding:0 0 6px; }
.choices { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.choice { display:flex; align-items:center; gap:8px; padding:7px; border:1px solid var(--line); border-radius:10px; cursor:pointer; }
input[type="radio"] { accent-color:var(--purple); }
.text-button { border:0; background:transparent; color:var(--purple); padding:0; font-weight:900; text-align:left; }
.switch { margin-top:13px; display:flex; gap:12px; flex-wrap:wrap; font-size:13px; }
.form-error { color:#a32942; font-size:14px; }
.form-error:empty { display:none; }
.reading { white-space:pre-wrap; overflow-wrap:anywhere; margin:12px 0; line-height:1.65; }
.review-box { margin-top:15px; padding:13px; border-radius:12px; background:#f2ecfb; }
.review-box p:last-child { margin-bottom:0; }
.teacher-roster { margin-bottom:20px; }
.teacher-controls { display:flex; align-items:end; flex-wrap:wrap; gap:12px; }
.teacher-controls label { flex:1; min-width:185px; }
.roster-access { display:flex; align-items:center; gap:8px 16px; flex-wrap:wrap; margin-top:12px; overflow-wrap:anywhere; }
.credentials { margin-top:14px; }
.credentials textarea { min-height:115px; font-family:ui-monospace,monospace; font-size:13px; }
.teacher-list-title { margin:0 0 13px; }
.teacher-empty { display:grid; gap:9px; justify-items:start; padding:25px; }
.teacher-empty p { max-width:55ch; }
.teacher-entry nav,.teacher-entry .side-footer { display:none; }
.teacher-login { display:grid; grid-template-columns:1fr minmax(285px,.8fr); max-width:890px; gap:18px; margin:26px auto 30px; }
.teacher-intro,.teacher-form { padding:clamp(21px,3.4vw,38px); }
.teacher-intro { display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:13px; background:linear-gradient(115deg,#eee4ff,#e4d3f8); border:1px solid #e3d5f7; border-radius:20px; }
.teacher-intro .tile-icon { background:white; }
.teacher-intro h1 { font-size:clamp(31px,4.3vw,52px); line-height:1.1; letter-spacing:-.06em; }
.teacher-intro p { color:#5d4d75; max-width:34ch; font-weight:700; }
.teacher-form p { margin-top:7px; }
.teacher-form .switch a { text-decoration:none; font-weight:900; }
.teacher-form .switch a:hover { text-decoration:underline; }
.upload { padding:12px; background:#f8f5ff; border:1px dashed #cec0ec; border-radius:12px; }
.upload small { font-weight:700; }
.upload input[type="file"] { background:white; font-size:13px; font-weight:700; overflow:hidden; }
.upload input::file-selector-button { border:0; border-radius:7px; padding:5px 9px; margin-right:8px; color:var(--purple); background:var(--pale); font:inherit; cursor:pointer; }
.attachment-list { display:grid; gap:8px; margin:13px 0; }
.attachment { display:flex; align-items:center; gap:10px; color:var(--ink); text-decoration:none; border:1px solid var(--line); background:#fcfbfe; border-radius:11px; padding:8px; }
.attachment:hover { border-color:#d8c3fa; background:#f8f5ff; }
.attachment small { display:block; }
.attachment > svg { margin-right:5px; color:var(--purple); }
#account .teacher-link { white-space:nowrap; }
@media(max-width:650px) { .teacher-login { grid-template-columns:1fr; margin-top:8px; gap:12px; } }
@media(max-width:430px) { #account .teacher-link svg { display:none; } .top:has(.teacher-link) .crumb svg { display:none; } }
#toast { position:fixed; z-index:3; bottom:18px; right:18px; max-width:calc(100% - 36px); background:#34234d; color:white; border-radius:12px; padding:11px 16px; font-weight:800; box-shadow:0 6px 21px #34234d40; }
#toast:empty { display:none; }
@media(max-width:1050px) { .layout {grid-template-columns:195px minmax(0,1fr);} .top,.content,.main-footer {padding-inline:24px;} .sidebar {padding-inline:12px;} .columns{grid-template-columns:minmax(0,1fr) minmax(230px,.8fr);} }
@media(max-width:820px) { .layout{display:block;} .sidebar{position:static;height:auto;padding:14px 16px 0;border-right:0;border-bottom:1px solid var(--line);} .sidebar nav{margin-top:12px;display:flex;overflow-x:auto;gap:3px;} .nav-link{font-size:13px;white-space:nowrap;min-height:40px;padding-inline:9px;} .nav-link[aria-current="page"]{box-shadow:inset 0 -2px #885ded;} .nav-link svg{width:16px;height:16px;} .side-footer{display:none;} .top{height:61px;} }
@media(max-width:570px) { .top,.content,.main-footer{padding-inline:13px;} .top .crumb{font-size:12px;} .account{gap:4px;} .account .btn{font-size:12px;padding-inline:9px;min-height:35px;} .person{max-width:85px;font-size:13px;} .account .avatar{display:none;} .content{padding-top:15px;} .hero{min-height:218px;padding:18px 15px;border-radius:17px;} .hero p{font-size:13px;} .hero h1{font-size:35px;} .hero-copy{max-width:65%;} .hero .btn{font-size:12px;padding-inline:9px;min-height:37px;} .character{width:49%;height:87%;right:-4%;bottom:-6px;} .bubble{right:7%;top:12%;font-size:14px;} .stats{gap:6px;margin:10px 0 15px;} .stat{display:grid;gap:5px;padding:9px;} .stat strong{font-size:18px;} .stat small{font-size:11px;line-height:1.23;display:block;} .stats .tile-icon{width:33px;height:33px;} .columns{grid-template-columns:1fr;gap:13px;} .panel{padding:14px;} .item{gap:8px;} .item .tile-icon{width:33px;height:33px;} .panel-head h2{font-size:20px;} .dialog-inner{padding:16px;} }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after{animation:none!important;scroll-behavior:auto!important;} }

