@import "https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700;800&family=Rubik:wght@500;600;700;800&display=swap";:root{--bg:#f4f5fa;--card:#fff;--ink:#0f172a;--muted:#5b6478;--muted-2:#475069;--line:#e8eaf3;--line-2:#f1f2f8;--primary:#5b4cf0;--primary-ink:#4338ca;--primary-soft:#e9e7ff;--primary-tint:#f7f6ff;--navy:#131a3a;--navy-2:#1e2752;--navy-3:#2e3973;--indigo:#1e1b6b;--indigo-2:#2e2a85;--night:#0e1333;--night-2:#1a2052;--night-3:#1d2456;--lilac:#c7c3ff;--green:#15803d;--green-soft:#dcfce7;--green-ink:#166534;--amber:#fbbf24;--amber-soft:#fef3c7;--amber-ink:#92400e;--red:#be123c;--red-soft:#ffe4e6;--red-ink:#9f1239;--orange-soft:#ffedd5;--orange-ink:#9a3412;--radius:20px;--font-body:Onest, system-ui, sans-serif;--font-display:Rubik, Onest, system-ui, sans-serif;font-family:var(--font-body);color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{background:var(--bg);margin:0}a{color:var(--primary-ink)}a:hover{color:#312e81}button,input,select,textarea{font-family:inherit}button{cursor:pointer}h1,h2,h3,p{margin:0}:focus-visible{outline-offset:2px;outline:3px solid #8b80ff}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.shell{min-height:100vh;display:flex}.sidebar{background:var(--navy);color:#e4e7f5;flex-direction:column;flex:none;gap:26px;width:260px;height:100vh;padding:28px 18px;display:flex;position:sticky;top:0;overflow-y:auto}.brand{align-items:center;gap:12px;padding:0 8px;text-decoration:none;display:flex}.brand-logo{background:var(--primary);color:#fff;border-radius:12px;flex:none;place-items:center;width:44px;height:44px;display:grid}.brand-name{color:#fff;letter-spacing:-.02em;font-size:21px;font-weight:800;display:block}.brand-sub{color:#a9b0d0;font-size:11px;display:block}.brand-sub.teacher{color:var(--amber);letter-spacing:.08em;text-transform:uppercase;font-weight:700}.nav{flex-direction:column;gap:3px;display:flex}.nav a{color:#d5d9ee;border-radius:12px;align-items:center;gap:14px;padding:12px 14px;font-size:15px;font-weight:600;text-decoration:none;transition:background .2s;display:flex}.nav a:hover{color:#fff;background:#ffffff14}.nav a.active{background:var(--primary);color:#fff;font-weight:700;box-shadow:0 8px 20px #5b4cf059}.side-card{background:var(--navy-2);border-radius:16px;flex-direction:column;gap:8px;margin-top:auto;padding:18px;display:flex}.side-card .label{color:#a9b0d0;font-size:12px;font-weight:700}.side-card .big{color:#fff;font-size:26px;font-weight:800}.side-card .hint{color:#c5cae6;font-size:12px}.side-role{text-align:center;color:var(--lilac);border:1px solid var(--navy-3);border-radius:12px;padding:10px;font-size:13px;font-weight:700;text-decoration:none;display:block}.side-role:hover{color:#fff;background:#ffffff0f}.main{flex-direction:column;flex:1;gap:24px;min-width:0;padding:28px 36px 48px;display:flex}.topbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.topbar-title{flex-direction:column;gap:6px;min-width:0;display:flex}.topbar-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.eyebrow{color:var(--muted);font-size:14px;font-weight:600}.h1{letter-spacing:-.02em;font-size:30px;font-weight:800}.crumbs{color:var(--muted);flex-wrap:wrap;align-items:center;gap:8px;font-size:14px;font-weight:600;display:flex}.crumbs a{color:var(--muted);text-decoration:none}.crumbs a:hover,.crumbs .cur{color:var(--ink)}.icon-btn{color:#334155;background:#fff;border:1px solid #e3e6f0;border-radius:12px;place-items:center;width:46px;height:46px;display:grid;position:relative}.icon-btn .dot{background:#e11d48;border-radius:99px;width:8px;height:8px;position:absolute;top:10px;right:11px}.user-chip{background:#fff;border:1px solid #e3e6f0;border-radius:12px;align-items:center;gap:10px;padding:6px 14px 6px 6px;display:flex}.avatar{background:var(--primary-soft);color:#3730a3;border-radius:10px;flex:none;place-items:center;width:34px;height:34px;font-size:13px;font-weight:800;display:grid}.user-chip .name{font-size:14px;font-weight:700;display:block}.user-chip .sub{color:var(--muted);font-size:12px;display:block}.lang{background:#fff;border:1px solid #e3e6f0;border-radius:12px;gap:4px;padding:4px;display:flex}.lang button{height:36px;color:var(--muted-2);background:0 0;border:none;border-radius:9px;padding:0 12px;font-size:13px;font-weight:800}.lang button[aria-pressed=true]{background:var(--primary);color:#fff}.lang.dark{background:var(--night-3);border-color:var(--navy-3)}.lang.dark button{color:var(--lilac)}.lang.dark button[aria-pressed=true]{color:#fff}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);flex-direction:column;gap:16px;padding:22px;display:flex}.card-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.h2{font-size:20px;font-weight:800}.h3{font-size:18px;font-weight:800}.muted{color:var(--muted)}.small{font-size:13px}.link{font-size:14px;font-weight:700;text-decoration:none}.btn{white-space:nowrap;border:none;border-radius:12px;justify-content:center;align-items:center;gap:8px;height:46px;padding:0 20px;font-size:15px;font-weight:700;text-decoration:none;display:inline-flex}.btn-primary{background:var(--primary);color:#fff;box-shadow:0 8px 20px #5b4cf04d}.btn-primary:hover{color:#fff;filter:brightness(1.06)}.btn-green{background:var(--green);color:#fff}.btn-green:hover{color:#fff;filter:brightness(1.08)}.btn-dark{background:var(--indigo);color:#fff}.btn-dark:hover{color:#fff}.btn-ghost{color:var(--ink);background:#fff;border:1px solid #d9dcea}.btn-soft{color:#3730a3;background:#f1f0ff}.btn-white{color:var(--indigo);background:#fff;font-weight:800}.btn-block{width:100%}.btn:disabled{opacity:.5;cursor:not-allowed}.pill{white-space:nowrap;border-radius:99px;align-items:center;gap:6px;padding:5px 10px;font-size:12px;font-weight:700;display:inline-flex}.pill-green{background:var(--green-soft);color:var(--green-ink)}.pill-amber{background:var(--amber-soft);color:var(--amber-ink)}.pill-red{background:var(--red-soft);color:var(--red-ink)}.pill-violet{background:var(--primary-soft);color:#3730a3}.pill-orange{background:var(--orange-soft);color:var(--orange-ink)}.pill-gray{background:var(--line-2);color:var(--muted-2)}.bar{background:#eceef6;border-radius:99px;height:8px;overflow:hidden}.bar>span{background:var(--primary);border-radius:99px;height:100%;transition:width .4s;display:block}.seg{background:#e9ebf4;border-radius:14px;flex-wrap:wrap;gap:6px;padding:5px;display:flex}.seg button{height:38px;color:var(--muted-2);background:0 0;border:none;border-radius:10px;padding:0 16px;font-size:14px;font-weight:700}.seg button[aria-selected=true]{color:var(--ink);background:#fff;box-shadow:0 2px 6px #1e1b4b1a}.chip{height:36px;color:var(--muted-2);background:#fff;border:1px solid #d9dcea;border-radius:99px;padding:0 14px;font-size:13px;font-weight:700}.chip[aria-pressed=true]{background:var(--primary);color:#fff;border-color:var(--primary)}.field{color:var(--muted-2);flex-direction:column;gap:6px;font-size:13px;font-weight:700;display:flex}.input{height:46px;color:var(--ink);background:#fafafd;border:1px solid #d9dcea;border-radius:12px;width:100%;padding:0 14px;font-size:15px}textarea.input{resize:vertical;height:auto;padding:12px 14px}.switch{background:#cbd0e0;border:none;border-radius:99px;flex:none;justify-content:flex-start;width:48px;height:28px;padding:3px;transition:background .2s;display:flex}.switch[aria-checked=true]{background:var(--primary);justify-content:flex-end}.switch span{background:#fff;border-radius:99px;width:22px;height:22px;box-shadow:0 1px 3px #0003}.lift{transition:transform .2s,box-shadow .2s}.lift:hover{transform:translateY(-2px);box-shadow:0 14px 32px #1e1b4b1a}.grid-stats{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;display:grid}.stat{border:1px solid var(--line);border-radius:var(--radius);background:#fff;flex-direction:column;gap:10px;padding:22px;display:flex}.stat .label{color:var(--muted);font-size:13px;font-weight:600}.stat .value{font-size:34px;font-weight:800;line-height:1}.stat .value small{color:var(--muted);font-size:18px}.stat.accent{background:var(--primary);border-color:var(--primary);color:#fff;box-shadow:0 12px 28px #5b4cf047}.stat.accent .label,.stat.accent .hint{color:#e4e1ff}.stat.accent .bar{background:#ffffff47}.stat.accent .bar>span{background:#fff}.stat.warn{background:#fff7ed;border-color:#fed7aa}.stat.warn .label,.stat.warn .value{color:var(--orange-ink)}.cols{flex-wrap:wrap;align-items:flex-start;gap:24px;display:flex}.col-main{flex-direction:column;flex:999 520px;gap:24px;min-width:0;display:flex}.col-side{flex-direction:column;flex:300px;gap:24px;min-width:0;display:flex}.table-wrap{overflow-x:auto}table.table{border-collapse:collapse;width:100%;font-size:14px}.table th{text-align:left;color:var(--muted);border-bottom:1px solid #eceef6;padding:10px 12px;font-size:12px;font-weight:700}.table td{border-bottom:1px solid var(--line-2);padding:12px}.table tr:last-child td{border-bottom:none}.dark-card{background:var(--indigo);color:#fff;border-radius:var(--radius);flex-direction:column;gap:14px;padding:24px;display:flex}.kicker{letter-spacing:.08em;text-transform:uppercase;font-size:12px;font-weight:800}.toast{background:var(--ink);color:#fff;z-index:50;border-radius:14px;padding:14px 20px;font-size:14px;font-weight:700;position:fixed;bottom:28px;left:50%;transform:translate(-50%);box-shadow:0 12px 30px #00000040}.empty{text-align:center;flex-direction:column;align-items:center;gap:12px;padding:60px 20px;display:flex}.mobile-nav{display:none}@media (width<=900px){.sidebar{display:none}.main{gap:18px;padding:18px 16px 96px}.h1{font-size:24px}.mobile-nav{z-index:40;border-top:1px solid var(--line);padding:8px 4px calc(10px + env(safe-area-inset-bottom));background:#fff;grid-template-columns:repeat(5,minmax(0,1fr));display:grid;position:fixed;bottom:0;left:0;right:0}.mobile-nav a{color:var(--muted);flex-direction:column;align-items:center;gap:4px;padding:4px 0;font-size:11px;font-weight:700;text-decoration:none;display:flex}.mobile-nav a.active{color:var(--primary-ink);font-weight:800}.user-chip .name,.user-chip .sub{display:none}.user-chip{padding:6px}}.seg-tight button{white-space:nowrap;padding:0 8px;font-size:13px}@media (width<=600px){.deco{display:none}}@keyframes gain-up{0%{opacity:0;transform:translateY(6px)}20%{opacity:1}to{opacity:0;transform:translateY(-10px)}}.race-gain{animation:2.6s ease-out forwards gain-up}@media (prefers-reduced-motion:reduce){.race-gain{animation:none}}h1,h2,h3,.h1,.h2,.h3,.brand-name,.side-card .big,.stat .value{font-family:var(--font-display)}.h1,.brand-name{letter-spacing:-.01em}h1,h2,h3,.h1,.h2,.h3{font-weight:700}.home-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;display:grid}.home-actions{flex-wrap:wrap;gap:10px;display:flex}.home-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.home-row{border:1px solid var(--line-2);color:inherit;border-radius:14px;flex-wrap:wrap;align-items:center;gap:4px 12px;padding:10px 12px;text-decoration:none;transition:background .15s;display:flex}.home-row:hover{background:var(--primary-tint)}.home-row.low{background:var(--red-soft);border-color:#fecdd3}.home-row-main{overflow-wrap:anywhere;flex-direction:column;flex:160px;gap:2px;min-width:0;display:flex}.home-row-when{white-space:nowrap}.home-group{flex-direction:column;gap:8px;display:flex}.home-group+.home-group{border-top:1px solid var(--line-2);padding-top:12px}.home-group-title{align-items:center;gap:8px;font-size:15px;font-weight:700;display:flex}.home-dot{border-radius:8px;flex:none;place-items:center;width:26px;height:26px;display:grid}.home-dot.red{background:var(--red-soft);color:var(--red-ink)}.home-dot.green{background:var(--green-soft);color:var(--green-ink)}.home-dot.amber{background:var(--amber-soft);color:var(--amber-ink)}.home-empty{background:var(--primary-tint);color:var(--muted-2);border-radius:14px;flex-direction:column;align-items:flex-start;gap:12px;padding:16px;display:flex}.home-empty-icon{background:var(--primary-soft);width:40px;height:40px;color:var(--primary-ink);border-radius:12px;place-items:center;display:grid}.link-btn{color:var(--primary-ink);background:0 0;border:none;align-self:flex-start;padding:4px 0;font-size:14px;font-weight:700}.student-highlight>td{background:var(--amber-soft)!important}.student-highlight>td:first-child{box-shadow:inset 4px 0 0 var(--amber)}@media (width<=900px){.home-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.home-stats .stat{padding:16px}.home-stats .stat .value{font-size:28px}.home-side{order:-1}.home-actions>*{flex:100%}}.home-empty .btn,.home-side .btn{white-space:normal;text-align:center;max-width:100%;height:auto;min-height:44px;padding-top:10px;padding-bottom:10px;line-height:1.3}.dialog{width:min(440px,100vw - 32px);max-height:calc(100vh - 32px);color:var(--ink);border:none;border-radius:22px;padding:0;box-shadow:0 24px 60px #0f172a59}.dialog::backdrop{background:#0f172a8c}.dialog-body{flex-direction:column;gap:14px;padding:24px;display:flex}.dialog-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:4px;display:flex}.dialog-actions>.btn{flex:140px}.btn-danger{background:var(--red);color:#fff}.btn-danger:hover{background:var(--red-ink)}.pin-big{text-align:center;font-family:var(--font-display);letter-spacing:.3em;background:var(--primary-tint);color:var(--indigo);font-variant-numeric:tabular-nums;border-radius:16px;padding:14px 0 14px .3em;font-size:52px;font-weight:800;display:block}.readiness{background:var(--red-soft);color:var(--red-ink);border:1.5px solid #fda4af;border-radius:16px;flex-direction:column;gap:8px;padding:14px 16px;display:flex}.readiness-title{align-items:center;gap:8px;font-size:15px;display:flex}.readiness ul{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.readiness-item{text-align:left;width:100%;color:var(--red-ink);background:#fff;border:1px solid #fecdd3;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;font-size:14px;font-weight:600;display:flex}.readiness-item:hover{background:#fff1f2}.input[aria-invalid=true]{border-color:var(--red);box-shadow:0 0 0 3px #e11d4826}.flash{animation:1.6s ease-out flash}@keyframes flash{0%,30%{box-shadow:0 0 0 4px #e11d488c}to{box-shadow:0 0 0 4px #e11d4800}}@media (prefers-reduced-motion:reduce){.flash{outline:3px solid var(--red);animation:none}}.module-card{gap:14px}.module-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.module-title{overflow-wrap:anywhere;flex-direction:column;flex:260px;gap:4px;min-width:0;display:flex}.module-actions,.module-rename{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.module-rename .input{flex:220px}.module-lessons{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.module-lessons li{border:1px solid var(--line-2);border-radius:14px;align-items:center;gap:12px;padding:10px 12px;display:flex}.module-lesson-n{width:30px;height:30px;color:var(--muted);border:1.5px solid #cbd0e0;border-radius:99px;flex:none;place-items:center;font-size:13px;font-weight:800;display:grid}.module-lesson-n.done{background:var(--green);border-color:var(--green);color:#fff}.module-lesson-main{overflow-wrap:anywhere;flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.module-lesson-main a{color:var(--ink);font-weight:700;text-decoration:none}.module-lesson-main a:hover{color:var(--primary-ink);text-decoration:underline}.arrows{flex:none;gap:6px;display:inline-flex}.icon-btn{width:40px;height:40px;color:var(--ink);background:#fff;border:1px solid #d9dcea;border-radius:12px;place-items:center;font-size:18px;font-weight:800;display:grid}.icon-btn:hover:not(:disabled){background:var(--primary-tint);border-color:var(--primary)}.icon-btn:disabled{opacity:.35;cursor:default}.segmented{flex-wrap:wrap;gap:6px;display:inline-flex}.week-chart{grid-template-columns:repeat(8,minmax(0,1fr));align-items:end;gap:8px;display:grid}.week-col{flex-direction:column;align-items:center;gap:4px;min-width:0;display:flex}.week-n{color:var(--muted-2);min-height:16px;font-size:12px;font-weight:700}.week-bar-box{background:var(--line-2);border-radius:8px;align-items:flex-end;width:100%;max-width:44px;height:120px;display:flex;overflow:hidden}.week-bar{background:var(--primary);border-radius:8px 8px 0 0;width:100%;min-height:0;transition:height .3s}.week-avg{color:var(--muted);font-size:12px;font-weight:800}.week-day{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:11px;overflow:hidden}.week-avg.red,.txt-red{color:var(--red-ink)}.week-avg.amber,.txt-amber{color:var(--amber-ink)}.week-avg.green,.txt-green{color:var(--green-ink)}.stats-matrix th[scope=row]{z-index:1;text-align:left;white-space:nowrap;background:#fff;position:sticky;left:0}.stats-matrix th[scope=row] a,.stats-matrix thead a{color:var(--ink)}.stats-matrix thead th{white-space:normal;max-width:160px;font-size:13px}.cell-wrap{display:inline-block;position:relative}.cell{border:none;border-radius:10px;min-width:54px;height:34px;font-size:14px;font-weight:800}.cell.red{background:var(--red-soft);color:var(--red-ink)}.cell.amber{background:var(--amber-soft);color:var(--amber-ink)}.cell.green{background:var(--green-soft);color:var(--green-ink)}.cell-tip{z-index:5;background:var(--ink);color:#fff;white-space:nowrap;border-radius:10px;padding:8px 10px;font-size:12px;font-weight:600;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 8px 20px #0003}.phone-row{border:1px solid var(--line-2);border-radius:14px;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}.phone-row a{color:var(--ink);overflow-wrap:anywhere;font-weight:700}.hard-row{border:1px solid var(--line-2);border-radius:14px;flex-direction:column;gap:4px;padding:10px 12px;display:flex}.matrix-phone{flex-direction:column;gap:12px;display:none}@media (width<=700px){.matrix-desktop{display:none}.matrix-phone{display:flex}.week-bar-box{height:90px}.cell-tip{white-space:normal;width:200px}}a.chip{color:inherit;align-items:center;gap:6px;text-decoration:none;display:inline-flex}
