:root{--blue:#1167d8;--blue2:#1d8df1;--green:#55b849;--yellow:#ffb51b;--ink:#17324d;--muted:#6f8092;--bg:#f5f8fc;--card:#fff;--line:#e6edf5;--danger:#d9485f;--radius:22px;--shadow:0 12px 35px rgba(35,75,115,.09)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-rounded,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--ink)}a{color:var(--blue);text-decoration:none}button,input,select{font:inherit}.sidebar{position:fixed;left:0;top:0;bottom:0;width:230px;background:#fff;border-right:1px solid var(--line);padding:22px 15px;display:flex;flex-direction:column;z-index:20}.brand{display:block;padding:0 8px 20px}.brand img{width:100%;max-width:180px}.sidebar nav{display:grid;gap:7px}.sidebar nav a,.logout button{display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:14px;color:#476078;border:0;background:transparent;width:100%;cursor:pointer}.sidebar nav a:hover,.logout button:hover{background:#edf6ff;color:var(--blue)}.sidebar nav i{width:22px;text-align:center}.logout{margin-top:auto}.app-main{margin-left:230px;min-height:100vh;padding-bottom:70px}.topbar{height:72px;background:rgba(255,255,255,.85);backdrop-filter:blur(15px);border-bottom:1px solid var(--line);display:flex;justify-content:flex-end;align-items:center;padding:0 30px;position:sticky;top:0;z-index:10}.topbar>div:first-child{text-align:right;display:grid;margin-right:10px}.topbar small{color:var(--muted)}.avatar{width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,var(--blue),var(--blue2));color:white;display:grid;place-items:center;font-weight:800}.page-wrap{padding:28px;max-width:1400px;margin:auto}.hero{background:linear-gradient(135deg,#0f66d9,#2f98f5);color:white;border-radius:28px;padding:32px;display:flex;justify-content:space-between;align-items:center;box-shadow:var(--shadow);overflow:hidden;position:relative}.hero h1{font-size:clamp(28px,4vw,44px);margin:8px 0}.hero p{max-width:650px;color:#eaf5ff}.eyebrow{font-size:12px;letter-spacing:2px;font-weight:800}.hero-orb{width:120px;height:120px;border-radius:35px;background:rgba(255,255,255,.16);display:grid;place-items:center;font-size:48px;transform:rotate(8deg)}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:30px 0 16px}.section-head h1,.section-head h2{margin:0}.section-head p{margin:.4rem 0 0;color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}.cards.single{grid-template-columns:1fr}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow)}.card h2,.card h3{margin:.6rem 0}.card p{color:var(--muted)}.icon-bubble,.subject-icon{width:54px;height:54px;border-radius:18px;background:#edf6ff;color:var(--blue);display:grid;place-items:center;font-size:22px}.subject-icon{background:#f0faeb;color:var(--green)}.metrics{display:flex;gap:14px;flex-wrap:wrap;color:var(--muted);font-size:13px}.progress{height:9px;background:#edf1f6;border-radius:10px;overflow:hidden;margin:14px 0}.progress i{display:block;height:100%;background:linear-gradient(90deg,var(--blue),#35b9eb);border-radius:10px}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:15px;margin:22px 0}.stat{background:white;border:1px solid var(--line);border-radius:20px;padding:18px;display:flex;align-items:center;gap:15px}.stat i{font-size:25px;color:var(--blue)}.stat div{display:grid}.stat b{font-size:24px}.stat span{color:var(--muted);font-size:13px}.badge{display:inline-flex;background:#eef5ff;color:var(--blue);padding:6px 10px;border-radius:999px;font-size:12px;font-weight:750}.btn{border:1px solid var(--line);background:white;color:var(--ink);padding:12px 16px;border-radius:14px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700}.btn.primary{background:var(--blue);color:white;border-color:var(--blue)}.btn.small{padding:9px 13px}.btn.google{width:100%;margin-top:10px}.btn:disabled{opacity:.5}.form-stack{display:grid;gap:14px}.form-stack label{display:grid;gap:7px;font-weight:650;font-size:14px}.form-stack input,.form-stack select{width:100%;padding:12px 13px;border:1px solid #d8e2ec;border-radius:13px;background:#fff;outline:none}.form-stack input:focus,.form-stack select:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(17,103,216,.09)}.auth-main{min-height:100vh;display:flex;flex-direction:column;justify-content:center}.auth-main .topbar{display:none}.auth-main .page-wrap{width:min(100%,470px)}.auth-card{background:white;border-radius:28px;padding:28px;box-shadow:0 24px 65px rgba(35,75,115,.12);border:1px solid var(--line)}.auth-logo{width:220px;max-width:80%;display:block;margin:0 auto 15px}.auth-card h1{text-align:center}.auth-card>p{text-align:center;color:var(--muted)}.center{text-align:center}.alert{padding:13px 16px;border-radius:14px;margin-bottom:16px}.alert.success{background:#e9f8e6;color:#286c22}.alert.error{background:#fff0f2;color:#a82d42}.two-col{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(320px,1.2fr);gap:20px}.three-col{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.row-item{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid var(--line)}.row-item span{color:var(--muted)}.learning-map{position:relative;max-width:850px;margin:auto}.learning-map:before{content:"";position:absolute;left:27px;top:20px;bottom:20px;width:4px;background:#dbe9f7;border-radius:10px}.map-node{position:relative;display:grid;grid-template-columns:56px 1fr;gap:18px;margin:18px 0}.node-marker{width:56px;height:56px;border-radius:50%;background:white;border:4px solid #cbdbea;display:grid;place-items:center;z-index:1;font-weight:800;color:#789}.map-node.active .node-marker{background:var(--blue);border-color:#a9d0ff;color:#fff}.lesson-head{max-width:850px;margin:auto}.lesson-head h1{font-size:38px}.lesson-body{max-width:850px;margin:20px auto}.content-block{background:white;border:1px solid var(--line);border-radius:22px;padding:24px;margin:16px 0}.content-block img,.content-block video{max-width:100%;border-radius:15px}.rich-text{line-height:1.75}.ai-fab{position:fixed;right:28px;bottom:28px;border:0;background:linear-gradient(135deg,#6c4df6,var(--blue));color:white;border-radius:999px;padding:15px 20px;box-shadow:0 12px 35px rgba(61,77,196,.3);font-weight:800}.big-icon{font-size:64px}.footer{text-align:center;color:#8a9aab;font-size:12px;padding:25px}.mobile-nav{display:none}.notice{margin-top:18px}.empty{text-align:center;color:var(--muted)}
@media(max-width:850px){.sidebar{display:none}.app-main{margin-left:0;padding-bottom:98px}.topbar{height:60px;padding:0 16px}.page-wrap{padding:16px}.hero{padding:22px;border-radius:22px}.hero-orb{display:none}.two-col,.three-col{grid-template-columns:1fr}.mobile-nav{position:fixed;display:flex;left:0;right:0;bottom:0;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-top:1px solid var(--line);z-index:30;justify-content:space-around;padding:8px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}.mobile-nav a{color:#64778a;display:flex;min-width:60px;flex-direction:column;align-items:center;gap:3px;font-size:10px}.mobile-nav i{font-size:21px}.mobile-nav .primary{margin-top:-24px;background:var(--blue);color:white;padding:12px;border-radius:20px;box-shadow:0 8px 20px rgba(17,103,216,.25)}.ai-fab{right:16px;bottom:92px}.lesson-head h1{font-size:30px}.section-head{align-items:start}.auth-main .page-wrap{padding:14px}.auth-card{padding:22px;border-radius:22px}}