:root{--bg:#f7f9fc;--white:#fff;--ink:#14243a;--sub:#69798e;--line:#e5ebf2;--blue:#1768ea;--navy:#101e34;--green:#0c9468;--orange:#e77920;--danger:#d44752;--shadow:0 14px 38px rgba(24,43,75,.07);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink)}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-size:14px;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}.hidden{display:none!important}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:inherit;text-decoration:none}.muted{color:var(--sub)}h1,h2,h3,p{margin-top:0}h1{font-size:27px;letter-spacing:-.8px}h2{font-size:18px;letter-spacing:-.25px}h3{font-size:15px}p{line-height:1.6}label{display:block;color:#32435b;font-weight:650;margin:17px 0 7px}input,select{width:100%;height:45px;background:#fff;color:var(--ink);border:1px solid #d9e2ec;border-radius:10px;padding:0 13px;outline:none;transition:.18s}input:focus,select:focus{border-color:#438df2;box-shadow:0 0 0 3px #1768ea15}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:10px;font-weight:650;padding:11px 16px;min-height:40px;white-space:nowrap;transition:.15s;line-height:1}.btn:hover:not(:disabled){transform:translateY(-1px)}.btn.primary{background:var(--blue);color:white;box-shadow:0 4px 10px #1768ea22}.btn.secondary{background:#fff;color:#3b4d65;border-color:#dfe6f0}.btn.danger{color:#b93f45;border-color:#efd4d7;background:#fff}.btn.subtle{background:#243a5a;color:#d6e5f8}.btn.wide{width:100%;margin-top:20px;min-height:46px}.eyebrow,.step-mark{color:#8394a9;font-size:10px;letter-spacing:1.3px;font-weight:800}.pill{background:#eef4fc;border:1px solid #dae6f5;border-radius:99px;color:#46617e;padding:7px 12px;font-size:12px;font-weight:700}.pill-green{background:#e8f8f1;border-color:#c2eddc;color:#0d8a60}.neutral{background:#f4f6f9}.brand{display:flex;gap:9px;align-items:center;white-space:nowrap;font-size:17px;letter-spacing:-.5px}.brand strong>span{color:#2a8de8}.brand-icon{display:grid;place-items:center;width:37px;height:37px;background:linear-gradient(145deg,#ff892f,#f16c25);color:#fff;border-radius:11px;font-size:23px;font-weight:800}.auth-body{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:25px;background:radial-gradient(circle at 75% 14%,#dfeafb,transparent 36%),#f7f9fc}.auth-card{width:min(440px,100%);padding:37px;background:#fff;border:1px solid #e2eaf3;border-radius:20px;box-shadow:0 24px 65px #273b6215}.auth-card h1{margin-top:30px;margin-bottom:7px}.auth-card .muted{line-height:1.7}.footnote{text-align:center;font-size:11px;margin-top:25px}.notice{border-radius:10px;padding:10px 12px;font-size:13px;line-height:1.5;margin:12px 0}.notice.err{background:#fff0f1;color:#ae3346;border:1px solid #ffdadc}.notice.success{background:#ecfff7;color:#127a58;border:1px solid #d0f2df}.app{min-height:100vh;display:flex}.sidebar{width:248px;flex-shrink:0;position:sticky;top:0;height:100vh;background:var(--navy);color:#ecf4ff;padding:28px 17px;display:flex;flex-direction:column;gap:36px}.sidebar .brand{font-size:17px;padding:0 8px}.sidebar .nav{display:flex;align-items:center;gap:12px;border-radius:11px;padding:14px 13px;font-size:13px;color:#a4b5cd;margin-bottom:8px}.sidebar .nav span{font-size:18px}.sidebar .nav.active{background:#243955;color:#fff;font-weight:700}.sidebar .nav:hover{background:#23334c}.side-bottom{margin-top:auto;display:grid;gap:18px;padding:0 8px}.side-online{display:flex;align-items:center;gap:9px;color:#a7b8ce;font-size:11px}.side-bottom .btn{width:100%}.dot{display:inline-block;width:9px;height:9px;background:#38ca9e;border-radius:50%;box-shadow:0 0 0 3px #12a77824;flex:none}.dot.amber{background:#eca744;box-shadow:0 0 0 3px #eca74425}.dot.green{background:#13b78a}.main{flex:1;min-width:0}.topbar{padding:31px 38px 21px;display:flex;justify-content:space-between;align-items:center;gap:20px;background:#fff;border-bottom:1px solid var(--line)}.topbar h1{margin:8px 0 5px}.topbar p{margin:0}.top-actions{display:flex;gap:13px;align-items:center}.content{max-width:1720px;margin:auto;padding:26px 38px 45px}.room-bar{border:1px solid #e2eaf3;background:#fff;border-radius:16px;padding:23px 26px;display:flex;justify-content:space-between;align-items:center;gap:15px;box-shadow:var(--shadow)}.room-code{display:flex;align-items:center;gap:14px;margin:9px 0}.room-code>span:first-child{font-size:25px;font-weight:800;letter-spacing:1px}.room-bar p{margin-bottom:0}.room-actions{display:flex;gap:9px;flex-wrap:wrap}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:17px}.metric{border:1px solid #e7edf4;background:#fff;border-radius:15px;padding:20px 21px;box-shadow:0 2px 8px #22334f08;display:flex;flex-direction:column;gap:10px}.metric span{font-size:12px;color:#73849a}.metric strong{font-size:30px;line-height:1;letter-spacing:-1px}.workspace-head{margin:32px 0 15px;display:flex;align-items:center;justify-content:space-between;gap:15px}.workspace-head h2{margin:0 0 4px}.workspace-head p{margin:0}.filters,.flex{display:flex;align-items:center;gap:9px}.filters select{width:170px;height:40px}.student-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.student-tile{min-width:0;background:#fff;border:1px solid #dce5ef;border-radius:13px;overflow:hidden;box-shadow:0 3px 8px #1b37560a}.tile-monitor{height:auto;aspect-ratio:16/9;background:#1c2a41;position:relative;overflow:hidden}.tile-monitor video{width:100%;height:100%;object-fit:contain}.tile-placeholder{position:absolute;inset:0;display:grid;place-items:center;color:#4a6588;font-size:40px;background:radial-gradient(circle at 50% 50%,#2b4160,#18243a)}.tile-info{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 11px 7px}.tile-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.student-state{white-space:nowrap;font-size:10px;font-weight:750}.status-green{color:#0c9068}.status-red{color:#c54950}.status-yellow{color:#b47b19}.tile-tools{display:flex;padding:3px 11px 11px;justify-content:space-between;gap:8px}.tile-action,.tile-remove{border:1px solid #e2e9f3;background:#f7faff;border-radius:7px;padding:6px 10px;font-size:11px;color:#355574;font-weight:650}.tile-remove{color:#b55560}.empty{border:1px dashed #cfdaeb;border-radius:16px;padding:55px 15px;text-align:center;color:#687b94;background:#ffffffbb}.empty h3{color:var(--ink);margin:10px 0 5px}.empty p{margin:0}.empty-icon{font-size:46px;color:#a9b8ca}.focus{border:1px solid #d5e3f3;background:#fff;padding:18px;border-radius:16px;margin-bottom:19px;box-shadow:0 6px 22px #0e345b09}.focus-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.focus-head h2{margin:6px 0 0}.focus-player{position:relative;background:#172235;border-radius:10px;overflow:hidden;display:grid;place-items:center;max-height:67vh;min-height:240px}.focus-player video{max-width:100%;max-height:67vh;object-fit:contain}.video-watermark{position:absolute;left:18px;top:16px;padding:6px 9px;color:#dbebfc;font-size:10px;border:1px solid #fff3;background:#101e346e;border-radius:6px}.focus:fullscreen{background:#0c1728;display:flex;flex-direction:column}.focus:fullscreen .focus-player{flex:1;max-height:100%;height:calc(100vh - 88px)}.focus:fullscreen video{max-height:100%;width:100%}.focus:fullscreen h2{color:#fff}.statusline{display:flex;justify-content:space-between;gap:15px;margin:24px 0;color:#8b9aac;font-size:11px}.toast{position:fixed;right:24px;bottom:24px;background:#1b344e;color:#fff;padding:14px 20px;border-radius:10px;box-shadow:0 12px 30px #0c22384d;z-index:99;max-width:410px}.toast.error{background:#a63143}.student-page{background:radial-gradient(circle at 14% 9%,#e4edfb,transparent 33%),#f7f9fc}.student-header{padding:25px max(25px,calc((100vw - 1040px)/2));display:flex;align-items:center;justify-content:space-between}.student-main{max-width:640px;margin:45px auto 70px;padding:0 20px}.student-intro{text-align:center;max-width:590px;margin:0 auto 31px}.student-intro h1{font-size:35px;margin:13px 0}.student-intro p{color:#697a90;font-size:14px}.student-card{background:#fff;border:1px solid #e1e9f4;border-radius:20px;padding:34px;box-shadow:var(--shadow)}.student-card h2{font-size:22px;margin:14px 0 14px}.student-card label{margin:19px 0 7px}.share-icon{display:grid;place-items:center;background:#e8f1ff;width:55px;height:55px;border-radius:14px;color:var(--blue);font-size:28px;margin-top:19px}.student-status{display:flex;align-items:center;gap:10px;background:#f7faff;border:1px solid #e5edf8;border-radius:10px;padding:14px;margin:22px 0;font-size:13px;font-weight:750}.student-buttons{display:grid;gap:8px}.student-buttons .btn{margin:0}.privacy-note{border-top:1px solid #edf0f5;padding-top:18px;margin-top:22px;color:#75859b;font-size:12px;line-height:1.65}.student-help{margin-top:21px;padding:17px 5px;color:#667a92}.student-help h3{color:#33465f}.student-help p{font-size:12px}.auth-card .btn{margin-top:24px}@media(max-width:1100px){.student-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sidebar{width:212px}.content{padding:25px}.topbar{padding:25px}}@media(max-width:780px){.sidebar{display:none}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.student-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar,.room-bar{flex-direction:column;align-items:flex-start}.content{padding:20px}.topbar{padding:20px}.statusline{flex-direction:column}.workspace-head{flex-direction:column;align-items:flex-start}}@media(max-width:440px){.student-grid{grid-template-columns:1fr}.room-actions,.top-actions{width:100%;flex-wrap:wrap}.top-actions .btn{flex:1}.student-main{margin-top:25px}.student-card{padding:23px}.student-intro h1{font-size:28px}}

.manager{margin-top:30px;border-top:1px solid var(--line);padding-top:8px}.teacher-manager-layout{display:grid;grid-template-columns:minmax(240px,360px) minmax(0,1fr);gap:16px}.teacher-management-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:23px}.teacher-account-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:12px 0;gap:15px}.teacher-account-row>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.teacher-account-row .btn{font-size:11px}@media(max-width:700px){.teacher-manager-layout{grid-template-columns:1fr}.teacher-account-row{align-items:flex-start;flex-direction:column}}

/* ============================================================
   SmartClass v1.1 — Unified Modern Experience
   Accessible motion, coherent design tokens, responsive layout.
   ============================================================ */
:root {
  --blue:#2468ed;--blue-deep:#194fcb;--orange:#f4803a;--ink:#15243b;
  --sub:#6b7a90;--line:#e5ebf3;--navy:#0c1b34;--bg:#f6f8fc;
  --shadow:0 16px 55px rgba(15,36,76,.075);
}
body { letter-spacing:-.005em; }
:focus-visible { outline:3px solid #f5a344;outline-offset:3px; }
.btn { border-radius:11px;transition:transform .22s ease,box-shadow .22s ease,background .22s ease,opacity .2s ease; }
.btn.primary { background:linear-gradient(115deg,#2468ed 0%,#387af5 100%);box-shadow:0 8px 20px rgba(36,104,237,.18); }
.btn.primary:hover:not(:disabled) {box-shadow:0 12px 24px rgba(36,104,237,.24)}
input,select {border-color:#dce5f0;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;}
input:focus,select:focus {border-color:#5b91fa;box-shadow:0 0 0 4px rgba(36,104,237,.1)}
.brand-icon {position:relative;background:linear-gradient(140deg,#ff9a53,#f26d2f);box-shadow:0 5px 15px rgba(245,117,48,.18);}

/* Teacher login: premium split-screen experience */
.auth-screen {min-height:100svh;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);background:#fff;}
.auth-experience {min-height:100svh;position:relative;overflow:hidden;background:radial-gradient(circle at 83% 64%,#234b80 0%,transparent 42%),linear-gradient(145deg,#0c1b33,#10294b 65%,#112949);color:#fff;}
.auth-experience::before {content:"";position:absolute;inset:0;background-image:linear-gradient(#ffffff05 1px,transparent 1px),linear-gradient(90deg,#ffffff05 1px,transparent 1px);background-size:55px 55px;mask-image:linear-gradient(to bottom,transparent,#0008);pointer-events:none;}
.auth-experience-inner {position:relative;z-index:1;max-width:680px;min-height:100svh;margin:auto;padding:50px clamp(35px,6vw,86px) 35px;display:flex;flex-direction:column;justify-content:space-between;gap:40px;}
.brand-light {color:#f8fbff}.brand-light strong>span{color:#a4cafe}
.auth-experience .brand{font-size:19px}.auth-experience .brand-icon{width:42px;height:42px}
.auth-gradient-orb{position:absolute;border-radius:50%;filter:blur(13px);pointer-events:none;opacity:.54;animation:ambientFloat 14s ease-in-out infinite alternate;}
.orb-a{width:420px;height:420px;background:radial-gradient(circle,#2466b75c,transparent 70%);top:-170px;right:-190px}
.orb-b{width:400px;height:400px;background:radial-gradient(circle,#f47e3325,transparent 70%);left:-230px;bottom:-180px;animation-delay:-6s}
.auth-story .eyebrow.light,.setup-aside .eyebrow.light{color:#8dacd1;letter-spacing:2px;font-size:10px;}
.auth-story h1 {font-size:clamp(35px,3.7vw,57px);line-height:1.13;letter-spacing:-2.6px;font-weight:780;margin:19px 0 21px;}
.auth-story h1 em {font-style:normal;background:linear-gradient(100deg,#b4d4ff,#f7ad71);background-clip:text;-webkit-background-clip:text;color:transparent;}
.auth-story>p{font-size:14px;max-width:440px;line-height:1.9;color:#b4c6de;}
.auth-experience-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;color:#7898b9;font-size:11px;}
.auth-visual{position:relative;max-width:460px;margin-top:43px;margin-bottom:12px;perspective:700px;}
.visual-window{border:1px solid #7796c63b;border-radius:20px;padding:14px;background:linear-gradient(140deg,#1f385a,#142847);box-shadow:0 30px 80px #07132683;transform:rotateY(-5deg) rotateX(2deg);animation:windowEnter 1s cubic-bezier(.2,.8,.2,1) both;}
.visual-toolbar{display:flex;align-items:center;gap:5px;height:23px;padding:0 4px 11px;border-bottom:1px solid #ffffff16;}
.visual-toolbar span{width:7px;height:7px;border-radius:50%;background:#fa9d7a;opacity:.8}.visual-toolbar span:nth-child(2){background:#e6c887}.visual-toolbar span:nth-child(3){background:#7dbab1}
.visual-toolbar b{margin-left:auto;font-size:8px;color:#839fbe;letter-spacing:1px;}
.visual-content{display:grid;grid-template-columns:1.5fr 1fr;gap:11px;margin-top:15px;}
.visual-feature-main{height:158px;background:linear-gradient(140deg,#2b568c,#1c3a62);border-radius:10px;padding:17px;display:flex;flex-direction:column;justify-content:flex-end;gap:14px;}
.visual-bar{height:61px;border-radius:8px;background:linear-gradient(110deg,#547ba988,#83bbf03d);position:relative;overflow:hidden}
.visual-bar::after{content:"";position:absolute;left:8%;right:9%;top:50%;height:2px;background:#8ebaf480;transform:rotate(-9deg);box-shadow:0 13px 0 #b0d4f54a;}
.visual-lines span{display:block;width:68%;height:5px;background:#89a9ce5c;border-radius:10px;margin-top:6px}.visual-lines span:nth-child(2){width:82%}.visual-lines span:nth-child(3){width:52%}
.visual-feature-side{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;}.visual-feature-side div{background:linear-gradient(145deg,#3e648b,#1f3856);border:1px solid #ffffff16;border-radius:9px;position:relative;}
.visual-feature-side div::before{content:"";position:absolute;left:20%;right:20%;top:34%;height:6px;background:#a3c5ea62;border-radius:5px;box-shadow:0 13px 0 #a3c5ea33;}
.visual-footer{display:flex;justify-content:space-between;align-items:center;margin-top:15px;font-size:8px;color:#99afd1;letter-spacing:1.1px}.visual-online{display:inline-block;width:6px;height:6px;border-radius:50%;background:#43d9a2;margin-right:4px;box-shadow:0 0 10px #43d9a28a}
.visual-float{position:absolute;right:-28px;bottom:9px;border:1px solid #ffffff29;background:#f3f7ff;box-shadow:0 12px 40px #05152a77;color:#273d5c;border-radius:13px;padding:12px 14px;display:grid;grid-template-columns:21px auto;gap:1px 5px;font-size:12px;animation:ambientFloat 6s ease-in-out infinite alternate}.visual-float b{font-size:11px}.visual-float small{grid-column:2;color:#8a9cb0;font-size:9px}.visual-float:first-letter{color:#2ca780}
.auth-login-panel{min-width:0;display:grid;place-items:center;padding:65px 45px;background:radial-gradient(circle at 95% 0%,#f4f8ff 0%,transparent 45%),#fff;}
.auth-login-content{width:min(410px,100%);animation:authPanelEnter .65s cubic-bezier(.2,.8,.2,1) both}
.auth-mobile-brand{display:none;align-items:center;gap:10px;margin-bottom:36px;font-size:17px}
.auth-meta{display:flex;align-items:center;gap:9px;font-size:10px;font-weight:800;letter-spacing:1.7px;color:#7187a5;}
.auth-sparkle{display:grid;place-items:center;background:#eaf1fe;color:var(--blue);width:29px;height:29px;border-radius:8px;font-size:16px}
.auth-version{font-size:10px;font-weight:700;letter-spacing:0;color:#6484a6;background:#f3f6fb;border:1px solid #e6ecf5;border-radius:8px;padding:5px 8px;margin-left:auto}
.auth-login-content h2{font-size:clamp(29px,2.6vw,38px);letter-spacing:-1.45px;margin:22px 0 9px;color:#17273d;line-height:1.2}
.auth-accent{color:var(--orange)}.auth-subtitle{color:#78869b;font-size:14px;margin-bottom:34px;line-height:1.8}
.auth-form label{font-size:12px;color:#344761;font-weight:750;margin:0 0 10px}.auth-form .label-line{margin-top:23px}
.auth-input-wrap{display:flex;align-items:center;position:relative;min-height:53px}
.auth-input-wrap input{width:100%;height:54px;padding:0 72px 0 44px;border-radius:12px;background:#fbfcff;border:1px solid #e1e8f1;color:#192b45;font-size:14px;}
.auth-input-wrap input:focus{background:#fff}
.auth-input-wrap .input-icon{position:absolute;left:15px;top:16px;color:#9aabc0;font-size:20px;line-height:1;pointer-events:none}
.input-visibility{position:absolute;right:9px;top:10px;min-width:45px;height:34px;background:transparent;border:0;color:#687c99;font-size:11px;font-weight:750;border-radius:8px}
.input-visibility:hover{background:#eff3fa}.auth-login-button{min-height:55px;margin-top:28px;justify-content:space-between;padding:0 18px;font-size:14px}.arrow-glyph{font-size:20px;font-weight:400}
.auth-divider{display:flex;align-items:center;gap:12px;margin-top:39px;color:#98a6b9;font-size:9px;letter-spacing:1.7px;font-weight:800}.auth-divider::before,.auth-divider::after{content:"";height:1px;flex:1;background:#e7edf3}
.auth-assurance{display:flex;align-items:flex-start;gap:12px;margin:22px 0 0}.assurance-symbol{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#e6f7f0;color:#15865d;flex:none;font-weight:800}.auth-assurance p{font-size:11px;color:#8392a7;line-height:1.75;margin:0}.auth-note{text-align:center;color:#a4aec0;font-size:11px;margin-top:50px}

/* Entry completion is shown only after server confirmation */
.entry-celebration{position:fixed;inset:0;background:rgba(9,26,52,.94);backdrop-filter:blur(14px);z-index:1000;display:grid;place-items:center;color:#fff;text-align:center;animation:entryBackdrop .3s ease-out both}
.entry-content{display:flex;align-items:center;flex-direction:column;padding:25px;animation:entryContent .56s cubic-bezier(.2,1.5,.4,1) both}
.entry-check{width:86px;height:86px;border:2px solid rgba(255,255,255,.3);background:linear-gradient(135deg,#2fcd97,#0cae76);box-shadow:0 0 0 16px rgba(53,215,149,.08),0 22px 60px #00a7854d;border-radius:50%;display:grid;place-items:center;font-size:41px;margin-bottom:35px;animation:checkPop .48s cubic-bezier(.2,1.8,.4,1) both}
.entry-kicker{font-size:10px;letter-spacing:2px;color:#95b6dc;font-weight:800;margin-bottom:12px}.entry-content strong{font-size:clamp(26px,5vw,38px);letter-spacing:-1px}.entry-content small{color:#a7bed9;font-size:13px;margin-top:14px}
.entry-celebration.fade-out{animation:entryFade .3s ease-in forwards}
@keyframes ambientFloat{to{transform:translate(0,-14px)}}
@keyframes authPanelEnter{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
@keyframes windowEnter{from{opacity:0;transform:translateY(25px) rotateY(-12deg)}to{opacity:1;transform:translateY(0) rotateY(-5deg) rotateX(2deg)}}
@keyframes checkPop{from{opacity:.1;transform:scale(.4) rotate(-30deg)}to{opacity:1;transform:scale(1) rotate(0)}}
@keyframes entryContent{from{opacity:0;transform:translateY(22px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes entryBackdrop{from{opacity:0}to{opacity:1}}
@keyframes entryFade{from{opacity:1}to{opacity:0}}

/* Installation wizard */
.setup-body{background:#f8fafc;min-height:100svh}
.setup-layout{display:grid;grid-template-columns:minmax(310px,.83fr) minmax(560px,1.17fr);min-height:100svh}
.setup-aside{background:radial-gradient(circle at 80% 50%,#22466b 0%,transparent 46%),linear-gradient(150deg,#0c1b34,#122e50);color:#fff;position:relative;padding:clamp(35px,5vw,72px) clamp(32px,4.9vw,75px);display:flex;flex-direction:column;justify-content:center;overflow:hidden;gap:22px}
.setup-aside::before{content:"";position:absolute;inset:0;background-image:linear-gradient(#ffffff06 1px,transparent 1px),linear-gradient(90deg,#ffffff06 1px,transparent 1px);background-size:52px 52px;pointer-events:none}
.setup-aside>*{position:relative}.setup-aside .brand{position:absolute;top:45px;left:clamp(32px,4.9vw,75px)}
.setup-art{height:240px;position:relative;display:grid;place-items:center;margin-top:55px;margin-bottom:10px}
.setup-orbit{position:absolute;border:1px solid rgba(143,190,254,.23);border-radius:50%;width:225px;height:225px;animation:setupOrbit 30s linear infinite}
.setup-orbit::after{content:"";position:absolute;width:10px;height:10px;border-radius:50%;background:#ff9d59;top:40px;left:21px;box-shadow:0 0 28px #ff9d59b8}
.orbit-two{width:295px;height:295px;border-style:dashed;border-color:#86b4e124;animation-direction:reverse}.orbit-two::after{background:#69a9ff;top:220px;left:21px;box-shadow:0 0 22px #69a9ff}
.setup-art-core{background:linear-gradient(130deg,#2f639e,#193b68);border:1px solid #99bdee5c;box-shadow:0 30px 70px #030a1875;width:124px;height:124px;border-radius:30px;display:grid;place-items:center;transform:rotate(-8deg)}
.setup-art-core>span{font-size:58px;color:#c6e2fc}.setup-art-core i{display:block;position:absolute;width:12px;height:12px;border-radius:50%;background:#57ce9b;right:15px;top:15px;border:3px solid #1e4572}
.setup-art-core i:nth-of-type(2){left:15px;top:18px;background:#ffbd74}.setup-art-core i:nth-of-type(3){left:15px;top:auto;bottom:15px;background:#6ba6ff}
.setup-aside h1{font-size:clamp(31px,3.25vw,46px);letter-spacing:-1.8px;line-height:1.22;margin:0}.setup-aside h1 em{font-style:normal;color:#f8af80}.setup-aside>p{color:#aec1d9;line-height:1.9;max-width:440px;font-size:14px}.setup-points{display:flex;flex-direction:column;gap:13px;margin-top:12px;color:#c4d5e8;font-size:12px}
.setup-main{display:flex;justify-content:center;padding:54px clamp(24px,5vw,76px)}.setup-shell{width:min(650px,100%)}.setup-heading{margin:0 0 30px}.page-overline{font-size:10px;color:#6a8fc6;letter-spacing:2px;font-weight:800}.setup-heading h2{font-size:clamp(27px,3vw,37px);letter-spacing:-1.2px;margin:10px 0 7px}.setup-heading p{color:#73849b;font-size:13px;margin:0}
.setup-section{background:#fff;border:1px solid #e3eaf3;border-radius:18px;padding:24px 25px 27px;margin-bottom:16px;box-shadow:0 10px 25px #192d4b08}
.setup-section-heading{display:flex;align-items:flex-start;gap:13px;margin-bottom:21px}.step-number{display:grid;place-items:center;width:38px;height:38px;flex:none;background:#eef4ff;border:1px solid #dce9fc;color:#3674da;border-radius:11px;font-size:12px;font-weight:800}
.setup-section-heading h3{margin:0 0 4px;font-size:16px}.setup-section-heading p{margin:0;font-size:11px;color:#8290a5}.step-status{font-size:9px;letter-spacing:.7px;color:#8199af;border:1px solid #dfe6ef;border-radius:25px;padding:6px 9px;margin-left:auto}
.setup-fields{display:grid;gap:14px;margin-bottom:14px}.setup-fields.two{grid-template-columns:repeat(2,minmax(0,1fr))}.setup-section .field{min-width:0}.setup-section .field>label{font-size:12px;font-weight:750;margin:0 0 8px}.setup-section .field input{min-height:45px;font-size:13px}.setup-section .field small{display:block;color:#a1acb8;font-size:10px;margin-top:6px}.setup-section .field:last-child:not(.setup-fields .field){margin-top:0}
.password-wrap{position:relative}.password-wrap input{padding-right:65px}.password-toggle{position:absolute;right:5px;top:6px;min-width:48px;height:33px;border:0;background:#f3f6fc;color:#637b96;border-radius:8px;font-weight:750;font-size:11px}
.setup-requirements{background:#f2f6fb;border:1px solid #e0e8f2;border-radius:13px;padding:17px 19px;margin:18px 0}.setup-requirements>strong{display:block;font-size:12px;margin-bottom:12px}.check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.check-item{font-size:11px;color:#67809e}.check-item.ready{color:#1b8665}.check-item.missing{color:#c0474b}.setup-submit{min-height:54px;display:flex;justify-content:space-between;padding:0 18px;margin-top:12px}.setup-submit.is-processing{background:#6485c5}.setup-small{font-size:11px;color:#8899ab;line-height:1.7;margin:13px 0 0}.setup-result{padding:35px;background:#fff;border:1px solid #e0e9f3;box-shadow:var(--shadow);border-radius:20px;text-align:center}.setup-result h3{font-size:24px;letter-spacing:-.7px}.setup-result p{color:#64758d;font-size:13px}.setup-success-mark{width:68px;height:68px;border-radius:50%;display:grid;place-items:center;margin:10px auto 24px;font-size:35px;color:white;background:linear-gradient(135deg,#2cc691,#089d71);box-shadow:0 0 0 11px #26bf9121;animation:checkPop .6s both}
@keyframes setupOrbit{to{transform:rotate(360deg)}}

/* Student join with code validation states */
.student-page{background:radial-gradient(circle at 13% 12%,#dfeafa,transparent 30%),radial-gradient(circle at 90% 40%,#eff4ff,transparent 36%),#f8fafc;min-height:100svh}
.student-header{max-width:1200px;padding:29px 28px;margin:auto}.student-main{max-width:550px;margin:43px auto 70px;padding:0 20px}
.student-intro{text-align:center;margin:0 auto 30px}.student-headline-icon{display:grid;place-items:center;margin:15px auto -2px;width:44px;height:44px;border-radius:14px;background:linear-gradient(140deg,#f1f6ff,#dceafb);color:#357aea;font-size:20px;box-shadow:0 7px 22px #2366a514}
.student-intro h1{font-size:clamp(32px,4vw,45px);letter-spacing:-1.7px;line-height:1.15;margin:19px 0 14px;color:#172b43}.student-intro h1 em{color:#3375e6;font-style:normal}.student-intro p{font-size:13px;line-height:1.85;max-width:480px;margin:auto}
.student-card{padding:32px;border-radius:22px;box-shadow:0 22px 70px #1934510f;position:relative;overflow:hidden;animation:authPanelEnter .45s ease-out both}
.student-card::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,#f18f4a,#3879ed)}
.student-card-top{display:flex;justify-content:space-between;align-items:center}.step-mark{letter-spacing:1.5px;color:#6f91b3}.step-pill{font-size:11px;color:#3b7be2;font-weight:850;background:#eef5ff;border-radius:20px;padding:6px 10px}.step-pill span{color:#a3b4c7}
.student-card h2{font-size:23px;letter-spacing:-.6px;margin:18px 0 7px}.student-card-sub{color:#8695ab;font-size:12px;margin:0 0 27px}
.student-card label{font-size:12px;color:#304562;font-weight:800;margin:18px 0 9px}.student-card input{height:51px;border-radius:11px;font-size:14px}
.room-input-shell{position:relative;display:flex;align-items:center;border:1px solid #dfe8f3;background:#f8faff;border-radius:13px;transition:box-shadow .2s,border-color .2s,background .2s,transform .2s}
.room-input-shell:focus-within{background:white;border-color:#3476ed;box-shadow:0 0 0 4px rgba(52,118,237,.11)}
.room-input-shell input{width:100%;border:0;background:transparent;box-shadow:none!important;height:65px;text-align:center;letter-spacing:9px;font-size:26px;font-weight:800;font-variant-numeric:tabular-nums;padding:0 35px}
.room-input-shell input::placeholder{color:#c5d0df}.code-icon{position:absolute;left:17px;font-size:18px;font-weight:750;color:#9fb1c7}.code-valid-icon{position:absolute;right:15px;opacity:0;color:#169870;font-size:23px;font-weight:800;transform:scale(.6);transition:.25s}
.room-input-shell.is-valid{background:#f5fffa;border-color:#57cfa3;box-shadow:0 0 0 4px #36bf8a12;animation:validPulse .42s ease-out}.room-input-shell.is-valid .code-valid-icon{opacity:1;transform:scale(1)}
.room-input-shell.is-invalid{border-color:#e08a96;background:#fff8f9}.code-feedback{font-size:11px;line-height:1.5;color:#8b9bb0;margin:8px 0 20px;min-height:17px}.code-feedback.ok{color:#159668;font-weight:700}.code-feedback.bad{color:#b85a62}
.student-join-button{min-height:53px;margin-top:23px;display:flex;justify-content:space-between;padding:0 18px}.student-trust{display:flex;align-items:center;justify-content:center;gap:8px;font-size:11px;color:#91a0b3;margin:22px 0 2px}.student-trust span{color:#1da17c;font-size:17px}
.student-help{border:0;text-align:center;margin:26px auto 0;max-width:450px}.student-help h3{font-size:12px;color:#566e8b;margin-bottom:6px}.student-help p{line-height:1.75;color:#95a2b2;font-size:11px}
.student-status{border-radius:13px}.share-icon{border-radius:16px}.privacy-note{line-height:1.8}
@keyframes validPulse{50%{transform:scale(1.012);box-shadow:0 0 0 8px #37bf8a14}100%{transform:scale(1)}}

/* Refined authenticated workspace */
.sidebar{background:linear-gradient(180deg,#0c1b34,#142844)}.sidebar .brand strong>span{color:#a8d1ff}.sidebar .nav.active{background:linear-gradient(100deg,#224a77,#243d61);border:1px solid #6383ad2b}.sidebar .nav:hover{transform:translateX(2px)}
.topbar{background:#fff}.topbar h1{letter-spacing:-.9px}.metric,.room-bar,.student-tile,.focus,.teacher-management-card{transition:box-shadow .25s ease,border-color .25s ease}.metric:hover,.student-tile:hover{box-shadow:0 13px 35px #12345b0f;border-color:#ccdcef}
.room-code>span:first-child{font-size:29px;font-variant-numeric:tabular-nums;letter-spacing:2px}.room-code>span:first-child.code-flash{animation:codeFlash .6s ease-out both}
@keyframes codeFlash{from{opacity:.2;transform:translateY(7px);filter:blur(4px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}
.toast{border-radius:13px;box-shadow:0 18px 45px #071d3d44;animation:authPanelEnter .24s ease-out}

@media (max-width:1050px){.setup-layout{grid-template-columns:minmax(280px,.75fr) minmax(480px,1.25fr)}.setup-aside{padding:50px 30px}.setup-aside .brand{left:30px}.setup-main{padding:45px 27px}.auth-experience-inner{padding:38px}.auth-screen{grid-template-columns:minmax(0,.94fr) minmax(390px,1.06fr)}}
@media (max-width:820px){.auth-experience{display:none}.auth-screen{display:block}.auth-login-panel{min-height:100svh;padding:40px 24px}.auth-mobile-brand{display:flex}.auth-login-content{width:min(430px,100%)}.setup-layout{grid-template-columns:1fr}.setup-aside{min-height:210px;padding:37px 32px 27px;gap:15px}.setup-aside .brand{position:relative;top:auto;left:auto}.setup-aside .setup-art,.setup-aside .setup-points{display:none}.setup-aside h1{font-size:28px}.setup-aside>p{margin:0}.setup-main{padding:40px 24px}.student-main{margin-top:25px}}
@media (max-width:600px){.setup-main{padding:29px 15px}.setup-aside{padding:27px 20px}.setup-section{padding:20px 17px}.setup-fields.two{grid-template-columns:1fr}.check-grid{grid-template-columns:1fr}.student-header{padding:20px}.student-card{padding:24px}.student-main{padding:0 14px}.room-input-shell input{font-size:24px;letter-spacing:6px}.auth-login-panel{padding:30px 22px}.auth-note{margin-top:36px}.setup-aside h1{font-size:25px}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}
