
:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#173049;background:#f3f7fa;font-synthesis:none;font-size:15px;--navy:#142d46;--blue:#55b9e8;--muted:#718498;--line:#e2eaf0;--pale:#eaf5fb;--green:#168570;--red:#b7444e}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,textarea,select{outline-offset:4px}button:focus-visible,a:focus-visible{outline:3px solid #1585c2}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button{transition:background .15s,transform .15s}button:active:not(:disabled){transform:translateY(1px)}a{color:#207da8;text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1px;line-height:1.15}h2{font-size:20px;letter-spacing:-.4px}h3{font-size:16px}p{line-height:1.65}.muted,small{color:var(--muted)}small{font-size:12px}.hidden,[hidden]{display:none!important}.icon{width:20px;height:20px;stroke:currentColor;stroke-width:1.8;fill:none;vertical-align:middle;flex-shrink:0}.brand{display:flex;align-items:center;gap:10px;font-size:23px;font-weight:750;letter-spacing:-1px}.brand img{width:36px;height:36px}.brand em{font-style:normal;color:#8296a8;font-size:14px;letter-spacing:0;font-weight:500;border-left:1px solid #cfdde7;padding-left:10px;margin-left:4px}.pill{display:inline-flex;align-items:center;gap:6px;border-radius:30px;padding:6px 10px;font-size:11px;font-weight:650;background:var(--pale);color:#417699;white-space:nowrap}.pill.green{background:#e8f5f0;color:var(--green)}.pill.red{background:#fff0ef;color:var(--red)}.pill.amber{background:#fff5dc;color:#937020}.dot{width:6px;height:6px;border-radius:100%;background:currentColor;display:inline-block}.button{border:1px solid var(--line);border-radius:9px;background:white;color:var(--navy);padding:10px 15px;display:inline-flex;gap:8px;align-items:center;justify-content:center;font-weight:600;font-size:13px;line-height:1.4}.button:hover{background:#f2f7fb}.button.primary{background:var(--navy);color:white;border-color:var(--navy)}.button.primary:hover{background:#244663}.button.blue{background:#dff2fc;border-color:#bce3f6;color:#216285}.button.danger{background:#fff1f1;color:#b7444e;border-color:#f3d9dc}.button.small{font-size:11px;padding:6px 9px}.text-button{background:transparent;border:0;color:#357caa;font-weight:600;font-size:12px;padding:6px}.eyebrow{font-size:11px;letter-spacing:1.7px;font-weight:750;text-transform:uppercase;color:#5c849f}.loading{display:grid;min-height:100vh;place-items:center;color:#6c8496}.login{min-height:100vh;padding:36px 6vw;background:radial-gradient(ellipse at 72% 40%,#d7edf8,transparent 50%),#f4f9fc;display:flex;flex-direction:column}.login-main{display:grid;grid-template-columns:1.15fr 1fr;max-width:1100px;gap:80px;width:100%;margin:auto;align-items:center;padding:55px 0}.login-copy h1{font-size:56px;line-height:1.1;letter-spacing:-2px;margin:22px 0}.login-copy h1 span{color:#368fb9}.login-copy p{color:#647d91;max-width:420px}.login-features{display:flex;gap:20px;margin-top:32px;font-size:12px;color:#628093}.login-features span{display:flex;gap:6px;align-items:center}.login-card{background:#fff;border:1px solid #e7eef4;box-shadow:0 18px 60px #294e6f0c;border-radius:20px;padding:36px}.login-card h2{font-size:25px}.login-card>p{font-size:13px;margin:12px 0 26px;color:#718498}.google{width:100%;padding:15px;font-size:14px}.google strong{font-size:20px;color:#4285f4;margin-right:6px}.privacy-copy{display:flex;gap:10px;font-size:12px;color:#7b8d9d;margin-top:25px;padding-top:22px;border-top:1px solid var(--line);line-height:1.6}.demo-banner{background:#fff6dd;color:#806327;padding:10px 20px;font-size:12px;border-bottom:1px solid #efdfb4;text-align:center}.role-grid{display:grid;gap:9px;margin-top:18px}.role-choice{justify-content:flex-start;padding:14px;text-align:left}.role-choice span{display:flex;flex-direction:column;gap:3px}.role-choice .icon{margin-right:5px}.login-foot{display:flex;justify-content:space-between;color:#92a3af;font-size:11px}.layout{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:25px 18px;position:fixed;inset:0 auto 0 0;width:232px;display:flex;flex-direction:column;z-index:5}.sidebar .brand{font-size:22px;padding:0 8px}.sidebar .brand em{display:none}.sidebar .eyebrow{font-size:9px;color:#a0afbc;padding:0 15px;margin:40px 0 14px}.navigation{display:grid;gap:7px}.nav-item{background:none;border:0;text-align:left;display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:10px;font-size:13px;color:#708296;font-weight:550}.nav-item:hover{background:#f6f9fc}.nav-item.active{background:#eaf5fb;color:#245d82}.sidebar-foot{margin-top:auto}.privacy-box{display:flex;gap:10px;background:#f4f9fc;border:1px solid #e7f0f6;border-radius:11px;padding:15px 12px;color:#6d90a9;font-size:11px;line-height:1.6}.privacy-box b{font-weight:650;color:#47728d}.profile{margin-top:18px;border-top:1px solid var(--line);padding:18px 5px 0;display:flex;gap:10px;align-items:center}.avatar{height:34px;width:34px;background:#e9edf9;color:#6674ad;border-radius:10px;display:grid;place-items:center;font-weight:750;font-size:12px;flex-shrink:0}.profile>div:nth-child(2){flex:1;font-size:12px;line-height:1.6}.signout{border:0;background:transparent;color:#90a0b0;padding:4px}.main-column{grid-column:2;min-width:0}.topbar{height:77px;border-bottom:1px solid var(--line);background:#ffffffb0;display:flex;align-items:center;justify-content:space-between;padding:0 38px;font-size:12px}.crumb{color:#8b9aa8}.crumb span{margin:0 12px;color:#c4d0da}.crumb b{color:#3d5368;font-weight:600}.top-right{display:flex;gap:22px;align-items:center}.top-right small{display:flex;gap:6px;align-items:center;font-size:11px}.menu-button{display:none;background:none;border:0}.content{max-width:1460px;margin:auto;padding:34px 38px 38px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:27px;gap:20px}.page-heading p{font-size:13px;color:var(--muted);margin-top:9px}.hero{display:grid;grid-template-columns:1fr 260px;background:linear-gradient(115deg,#e1f0fa,#eef8fc);border:1px solid #d4e7f4;border-radius:16px;padding:34px 36px;position:relative;overflow:hidden;min-height:230px}.hero h2{font-size:29px;line-height:1.25;letter-spacing:-.9px;margin:13px 0}.hero p{font-size:13px;color:#6b879d;max-width:440px}.hero .button{margin-top:22px}.hero-art{display:grid;place-items:center;position:relative}.art-card{background:#ffffffdd;box-shadow:0 15px 35px #3d688922;border:1px solid #e1edf5;border-radius:12px;transform:rotate(-7deg);padding:20px;width:200px}.art-card small{display:flex;align-items:center;gap:6px;font-size:9px}.art-code{color:#5483a3;font:13px/1.9 ui-monospace,monospace;margin:12px 0}.art-bar{height:5px;background:#cce8f6;border-radius:10px;margin:9px 0;width:75%}.art-bar:nth-child(2n){width:50%}.art-badge{position:absolute;bottom:15px;right:2px;background:white;padding:13px;border-radius:12px;box-shadow:0 8px 25px #32587615;color:#2d957e;transform:rotate(5deg);font-size:11px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:30px 0 17px}.section-heading h2{font-size:18px}.class-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.class-card,.panel{border:1px solid var(--line);background:#fff;border-radius:13px}.class-card{padding:23px}.class-head{display:flex;gap:14px;align-items:flex-start}.class-icon{height:44px;width:44px;border-radius:12px;background:#edf2fd;color:#6c85bd;display:grid;place-items:center;flex-shrink:0}.class-icon.green{background:#e8f5f1;color:#4d9680}.class-head h3{line-height:1.4;font-size:15px}.class-head p{font-size:11px;color:#91a0ac;margin-top:5px}.class-head>div:nth-child(2){flex:1}.class-card footer{display:flex;justify-content:space-between;gap:10px;align-items:center;padding-top:20px;margin-top:20px;border-top:1px solid #edf2f5}.class-card footer span{font-size:11px;color:#8297a8}.class-actions{margin-top:15px;display:flex;gap:8px;flex-wrap:wrap}.grid-two{display:grid;grid-template-columns:1.15fr 1fr;gap:20px}.panel{padding:23px}.panel h3{margin-bottom:18px}.event-row{display:flex;gap:15px;align-items:center;padding:15px 0;border-top:1px solid #edf2f5}.event-date{background:#f2f7fb;width:44px;text-align:center;border-radius:9px;padding:8px;font-size:10px;color:#9babb8}.event-date b{font-size:19px;display:block;color:#56748e;margin-bottom:2px}.event-row>div:nth-child(2){flex:1}.event-row strong{font-size:12px;display:block;margin-bottom:6px}.event-row small{font-size:11px}.note-box{border:1px solid var(--line);background:#fbfdfe;border-radius:10px;padding:16px;width:100%;min-height:220px;resize:vertical;line-height:1.7;color:#3f596f;font-size:13px}.empty{padding:35px 20px;text-align:center;background:#f8fbfd;border:1px dashed #dbe6ee;border-radius:12px;color:#8b9fae;font-size:13px;line-height:1.7}.helper-list{list-style:none;padding:0;margin:0;display:grid;gap:20px;font-size:12px;color:#7990a3}.helper-list li{display:flex;align-items:flex-start;gap:12px;line-height:1.7}.helper-list .icon{color:#56a6c9}.helper-list strong{display:block;color:#486d88;margin-bottom:3px}.room-content{padding:23px 28px 95px;max-width:1800px}.room-heading{display:flex;align-items:center;gap:14px;justify-content:space-between;margin-bottom:20px}.room-heading h1{font-size:22px;letter-spacing:-.5px}.room-heading p{color:#8b9cac;font-size:11px;margin-top:6px}.room-meta{display:flex;align-items:center;gap:10px}.room-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px}.stage{aspect-ratio:16/9;background:#142b41;border-radius:14px;position:relative;overflow:hidden;border:1px solid #213a50;display:grid;place-items:center}.stage-placeholder{text-align:center;color:#a4bdcf;max-width:400px;padding:25px}.stage-placeholder .avatar{width:65px;height:65px;border-radius:20px;margin:0 auto 18px;background:#29465d;color:#afd8f1;font-size:23px}.stage-placeholder h3{font-size:18px;color:#e4f0f8;margin-bottom:8px}.stage-placeholder p{font-size:12px}.stage>video{width:100%;height:100%;object-fit:contain;position:absolute;inset:0;background:#142b41}.stage .camera-overlay{position:absolute;right:17px;bottom:45px;width:22%;aspect-ratio:16/9;border-radius:8px;overflow:hidden;border:2px solid #ffffff55;z-index:2}.camera-overlay video{width:100%;height:100%;object-fit:cover}.stage-label{position:absolute;left:14px;bottom:13px;z-index:3;color:#e6f0f6;background:#10273bbb;padding:7px 10px;border-radius:6px;font-size:10px}.stage-top{position:absolute;top:13px;left:14px;z-index:3;background:#203e57b0;padding:6px 10px;border-radius:6px;font-size:9px;letter-spacing:.5px;color:#bad5e7}.below-stage{display:flex;justify-content:space-between;margin:16px 0 22px;font-size:11px;color:#8da0ad}.below-stage>span{display:flex;align-items:center;gap:6px}.assignment{padding:18px 21px;border:1px solid #cce2ef;background:#ecf7fc;border-radius:12px;display:flex;align-items:center;gap:15px;justify-content:space-between;margin-bottom:18px}.assignment small{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:#5183a0}.assignment h3{margin:5px 0 4px;font-size:15px}.assignment p{font-size:11px;color:#6a8aa0}.room-tabs{display:flex;border-bottom:1px solid var(--line);margin-top:8px;gap:28px}.room-tab{border:0;background:transparent;padding:13px 0;color:#8c9cac;font-size:12px;border-bottom:2px solid transparent}.room-tab.active{color:#286586;border-color:#409cc6;font-weight:650}.room-help{font-size:12px;color:#8095a5;padding:18px 0;line-height:1.8}.roster-panel{padding:0;overflow:hidden;align-self:start;min-height:480px}.side-tabs{display:flex;border-bottom:1px solid var(--line);padding:0 16px;gap:20px}.side-tabs button{padding:18px 0}.roster-head{display:flex;justify-content:space-between;padding:19px 18px 10px;font-size:11px;color:#8194a4}.roster{padding:0 10px 12px;max-height:490px;overflow-y:auto}.person{display:flex;align-items:center;gap:10px;padding:12px 8px;border-bottom:1px solid #edf2f7}.person .avatar{width:31px;height:31px;font-size:10px;background:#edf4fa;color:#7295af}.person-info{min-width:0;flex:1}.person-info b{font-size:11px;display:block}.person-info small{display:block;font-size:9px;margin-top:4px}.person-controls{display:flex;gap:4px}.round-button{border:1px solid #e1eaf1;background:white;border-radius:7px;width:28px;height:28px;display:grid;place-items:center;color:#8095a5;padding:0}.round-button .icon{width:14px;height:14px}.round-button.on{color:#238f75;background:#e9f7f0;border-color:#cfecdf}.round-button.warn{background:#fff4d6;color:#a87c22;border-color:#f3dfab}.roster-footer{margin:0 17px 17px;padding:12px;border-radius:9px;background:#f3f8fc;color:#8097a9;font-size:10px;line-height:1.7}.chat-pane{padding:16px;display:flex;flex-direction:column;min-height:430px}.chat-select{width:100%;border:1px solid var(--line);border-radius:8px;padding:10px;font-size:11px;background:#fbfdff;color:#41617a}.messages{height:300px;overflow:auto;padding:12px 0;display:flex;flex-direction:column;gap:12px}.message{max-width:95%;background:#eff6fb;border-radius:9px 9px 9px 2px;padding:10px 12px;font-size:12px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}.message.mine{align-self:flex-end;background:#e0f0fa;border-radius:9px 9px 2px 9px}.message small{font-size:9px;display:block;margin-bottom:3px;color:#8a9fac}.composer{display:flex;gap:7px;margin-top:auto}.composer textarea{resize:vertical;min-height:40px;max-height:120px;width:100%;border:1px solid var(--line);border-radius:8px;padding:10px;font-size:11px}.composer .button{padding:10px}.toolbar{position:fixed;bottom:0;left:232px;right:0;background:#fff;border-top:1px solid var(--line);padding:14px 28px;z-index:4;display:flex;justify-content:space-between;gap:12px;align-items:center;box-shadow:0 -8px 28px #294e6f04}.toolbar-group{display:flex;gap:9px;align-items:center}.toolbar .button{font-size:11px;padding:10px 12px}.toolbar .icon{width:17px;height:17px}.gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:22px}.screen-tile{aspect-ratio:16/10;background:#152d42;border-radius:10px;overflow:hidden;position:relative;display:grid;place-items:center;border:1px solid #27465e}.screen-tile video{width:100%;height:100%;object-fit:contain}.screen-tile>span{position:absolute;bottom:9px;left:9px;background:#14293bd9;padding:5px 8px;border-radius:5px;color:#c1d6e6;font-size:10px}.screen-placeholder{color:#7698b2;text-align:center;font-size:11px;padding:20px;line-height:1.8}.screen-placeholder .icon{display:block;margin:0 auto 10px}.test-head{display:flex;justify-content:space-between;align-items:center;margin:0 0 14px}.test-head h2{font-size:16px}.test-head small{font-size:10px}.status-alert{padding:11px 14px;border:1px solid #eed9b3;border-radius:9px;background:#fff8e8;color:#987834;font-size:11px;line-height:1.6;margin-bottom:15px}.status-alert.error{background:#fff0ef;border-color:#efd1cf;color:#a85652}.report-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:23px;margin-bottom:18px}.report-head{display:flex;gap:15px;align-items:center;justify-content:space-between}.report-head h3{margin-bottom:7px}.report-head small{font-size:11px}.report-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:19px;padding-top:18px;border-top:1px solid #edf2f5}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px}th,td{text-align:left;padding:13px 12px;border-bottom:1px solid #e7eef4}th{color:#8ca0af;font-size:10px;text-transform:uppercase;letter-spacing:.7px;font-weight:600}td{color:#577187}dialog{border:1px solid #dfe8ef;border-radius:16px;padding:28px;width:min(560px,calc(100% - 30px));color:var(--navy);box-shadow:0 30px 90px #082a4f33}dialog::backdrop{background:#132d4666;backdrop-filter:blur(3px)}dialog h2{font-size:23px;margin-bottom:10px}dialog>p{font-size:13px;color:#8597a5;margin-bottom:20px}dialog label{display:block;margin:17px 0 7px;font-size:12px;color:#58758b;font-weight:600}dialog input:not([type=checkbox]),dialog select,dialog textarea{width:100%;padding:12px;border:1px solid #dce6ee;border-radius:8px;font-size:13px;background:#fcfdfe;color:#34566e}dialog textarea{min-height:140px;resize:vertical}dialog .check-label{display:flex;gap:10px;align-items:flex-start;line-height:1.6;font-weight:400}dialog footer{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}dialog .dialog-error{color:var(--red);font-size:12px;margin-top:14px;line-height:1.6}dialog video{width:100%;border-radius:10px;background:#132c42;margin-top:12px}#notices{position:fixed;right:24px;bottom:90px;z-index:30;display:grid;gap:10px;max-width:min(390px,calc(100% - 32px))}.notice{border:1px solid #cfe4ed;background:#fff;color:#4d7289;padding:15px 18px;border-radius:11px;box-shadow:0 12px 35px #25465d16;font-size:12px;line-height:1.6}.notice.error{border-color:#ebc8c5;color:#ac5b56}.connection-line{font-size:10px;color:#89a1b3;text-align:center;margin-top:10px}.student-welcome{padding:19px;font-size:12px;color:#7e98aa;line-height:1.8}.student-welcome .icon{color:#5b9fba;margin-bottom:14px;width:27px;height:27px}.student-welcome h3{font-size:14px;color:#436a85;margin-bottom:10px}.sound-button{position:absolute;top:15px;right:15px;z-index:4}.recording-steps{display:flex;gap:17px;flex-wrap:wrap;margin:16px 0 0;color:#8b9dab;font-size:10px}.recording-steps b{color:#507fa0;margin-right:5px}.mini-title{font-size:11px;letter-spacing:.6px;text-transform:uppercase;color:#8aa0b0;margin:20px 0 8px}
@media(min-width:1500px){.gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1150px){.layout{grid-template-columns:200px minmax(0,1fr)}.sidebar{width:200px}.content{padding:28px}.toolbar{left:200px;padding:14px 20px}.room-layout{grid-template-columns:minmax(0,1fr) 265px;gap:15px}.room-content{padding:22px 20px 100px}.hero{grid-template-columns:1fr 190px;padding:27px}.class-grid{gap:14px}.class-card{padding:18px}.class-head .pill{display:none}.toolbar .button{padding:9px}.toolbar .button span{display:none}.hero-art{transform:scale(.85)}}@media(max-width:900px){.layout{display:block}.sidebar{transform:translateX(-100%);box-shadow:20px 0 50px #142d4620}.sidebar.open{transform:none}.main-column{width:100%}.menu-button{display:block}.topbar{height:64px;padding:0 22px}.crumb{margin-right:auto;margin-left:15px}.top-right small{display:none}.toolbar{left:0}.room-layout{grid-template-columns:minmax(0,1fr) 270px}.login-main{gap:35px}.login-copy h1{font-size:44px}.login{padding:25px}.login-card{padding:28px}}@media(max-width:700px){.login-main{grid-template-columns:1fr;gap:35px;padding:45px 0}.login-copy h1{font-size:40px}.login-copy .eyebrow{margin-top:10px}.login-features{margin-top:20px}.login-foot{gap:15px;margin-top:25px}.content{padding:25px 18px}.page-heading h1{font-size:25px}.page-heading{align-items:flex-start}.page-heading p{font-size:12px}.hero{grid-template-columns:1fr;padding:27px}.hero-art{display:none}.hero h2{font-size:27px}.class-grid,.grid-two{grid-template-columns:1fr}.room-layout{grid-template-columns:1fr}.roster-panel{min-height:auto}.room-content{padding:19px 14px 125px}.room-heading{align-items:flex-start}.room-heading h1{font-size:18px}.room-meta{gap:5px;flex-wrap:wrap;justify-content:flex-end}.room-meta .pill{font-size:9px;padding:5px 7px}.toolbar{padding:12px;gap:7px;flex-wrap:wrap}.toolbar-group{gap:6px}.toolbar .button{padding:10px}.toolbar .button span{display:none}.toolbar .end-button span{display:inline}.assignment{align-items:flex-start;padding:15px;gap:10px}.assignment .button{font-size:10px;padding:8px;white-space:nowrap}.roster{max-height:280px}.gallery{gap:10px}.report-head{align-items:flex-start;flex-wrap:wrap}.report-actions .button{font-size:11px}.below-stage{font-size:9px;gap:8px}.topbar .brand{font-size:17px}.chat-pane{min-height:340px}.messages{height:240px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Touch layouts keep the complete controls and private conversation reachable. */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}
html { -webkit-text-size-adjust: 100%; }
body { min-width: 280px; }
.button, .text-button, .nav-item, .room-tab, .menu-button, .signout {
  min-height: 44px;
  touch-action: manipulation;
}
.menu-button, .signout { min-width: 44px; }
input, select, textarea, dialog input:not([type=checkbox]), dialog select,
dialog textarea, .chat-select, .composer textarea, .note-box { font-size: 16px; }
input, select, textarea { min-width: 0; max-width: 100%; }
.login, .layout, .loading { min-height: 100svh; }
.class-head > div, .room-heading > div, .report-head > div, .event-row > div,
.room-layout > *, .page-heading > div { min-width: 0; }
h1, h2, h3, .room-help, .status-alert, .class-head p, .person-info b,
.person-info small, .report-head small { overflow-wrap: anywhere; }
.composer textarea { flex: 1 1 auto; line-height: 1.45; min-height: 48px; }
.composer .button { flex: 0 0 48px; min-height: 48px; align-self: flex-end; }
.messages { overscroll-behavior: contain; }
.room-content { --class-toolbar-space: 112px; padding-bottom: calc(var(--class-toolbar-space) + var(--safe-bottom)); }
.toolbar { padding-bottom: calc(14px + var(--safe-bottom)); }
.toolbar .button span { display: inline; }
.toolbar-group { min-width: 0; flex-wrap: wrap; }
.toolbar .button { min-height: 44px; }
#notices { bottom: calc(120px + var(--safe-bottom)); overflow-wrap: anywhere; }
dialog {
  max-width: calc(100% - 24px - var(--safe-left) - var(--safe-right));
  max-height: calc(100vh - 24px - var(--safe-top) - var(--safe-bottom));
  max-height: calc(var(--visual-viewport-height, 100dvh) - 24px - var(--safe-top) - var(--safe-bottom));
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 20px;
}
dialog footer { flex-wrap: wrap; }
dialog input, dialog select, dialog textarea, .composer textarea, .note-box {
  scroll-margin-block: 28px;
}
dialog video { max-height: 55vh; max-height: calc(var(--visual-viewport-height, 100dvh) * .55); }

@media (max-width: 1150px) {
  .toolbar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
  .toolbar-group { display: contents; }
  .toolbar .button { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: 12px; line-height: 1.3; text-align: center; }
  .toolbar .button span { display: inline; }
}

@media (max-width: 900px) {
  .topbar { height: auto; min-height: 64px; padding: calc(8px + var(--safe-top)) max(14px, var(--safe-right)) 8px max(14px, var(--safe-left)); gap: 8px; }
  .crumb { min-width: 0; margin-left: 0; overflow-wrap: anywhere; }
  .crumb span { margin: 0 5px; }
  .top-right { flex-shrink: 0; gap: 8px; }
  .sidebar { width: min(280px, calc(100% - 56px)); max-height: 100dvh; overflow-y: auto; padding-top: calc(20px + var(--safe-top)); padding-bottom: calc(20px + var(--safe-bottom)); }
  .sidebar .eyebrow { margin-top: 26px; }
  .profile > div:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
  .content { padding-left: max(18px, var(--safe-left)); padding-right: max(18px, var(--safe-right)); }
  .room-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .room-content { --class-toolbar-space: 112px; padding-bottom: calc(var(--class-toolbar-space) + var(--safe-bottom)); }
  .room-heading, .page-heading, .section-heading { flex-wrap: wrap; gap: 12px; }
  .room-meta { flex-wrap: wrap; justify-content: flex-start; }
  .stage { min-width: 0; }
  .stage .camera-overlay { width: 26%; right: 10px; bottom: 42px; }
  .below-stage { flex-wrap: wrap; font-size: 11px; gap: 8px; }
  .below-stage > span { min-width: 0; align-items: flex-start; }
  .room-tabs { gap: 10px; flex-wrap: wrap; }
  .room-tabs .room-tab, .side-tabs .room-tab { padding: 12px 6px; font-size: 13px; }
  .roster-panel { min-height: 0; }
  .roster { max-height: 360px; max-height: min(360px, 55dvh); }
  .person { flex-wrap: wrap; }
  .person-info b { font-size: 13px; }
  .person-info small { font-size: 11px; }
  .person-controls { gap: 6px; }
  .round-button { min-width: 44px; width: 44px; min-height: 44px; height: 44px; }
  .round-button .icon { width: 18px; height: 18px; }
  .chat-pane { min-height: 0; padding: 16px; }
  .student-welcome { padding: 12px 0; }
  .student-welcome .icon { margin-bottom: 8px; }
  .messages { height: clamp(180px, 35dvh, 300px); min-height: 0; }
  .message { font-size: 14px; }
  .message small { font-size: 11px; }
  .composer { position: relative; margin-top: 8px; background: #fff; }
  .toolbar { left: 0; padding: 10px max(14px, var(--safe-right)) calc(10px + var(--safe-bottom)) max(14px, var(--safe-left)); }
  .toolbar .button { min-height: 62px; }
  .assignment { flex-wrap: wrap; }
  .assignment .button { font-size: 13px; white-space: normal; }
  .report-actions .button { font-size: 13px; }
  .login { padding: calc(24px + var(--safe-top)) max(22px, var(--safe-right)) calc(24px + var(--safe-bottom)) max(22px, var(--safe-left)); }
  .login-main { grid-template-columns: minmax(0, 1fr); max-width: 580px; gap: 28px; padding: 32px 0; }
  .login-copy h1 { font-size: clamp(32px, 7vw, 44px); }
  .login-features, .login-foot { flex-wrap: wrap; }
  .login-card { padding: 24px; min-width: 0; }
  .google { white-space: normal; }
  dialog { padding: 22px; }
  dialog footer { gap: 8px; }
  dialog footer .button { flex: 1 1 100px; }
  /* While typing, keep the media bar in normal flow instead of covering the
     composer with a second fixed layer above the software keyboard. */
  .room-content:has(.composer textarea:focus, .note-box:focus) { padding-bottom: calc(20px + var(--safe-bottom)); }
  .room-content:has(.composer textarea:focus, .note-box:focus) .toolbar { position: static; margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; }
  .room-content:has(.composer textarea:focus) .messages { height: clamp(100px, 25dvh, 200px); }
}

@media (max-width: 600px) {
  .content { padding-top: 22px; }
  .room-content { --class-toolbar-space: 180px; padding: 18px max(14px, var(--safe-right)) calc(var(--class-toolbar-space) + var(--safe-bottom)) max(14px, var(--safe-left)); }
  .toolbar { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding-top: 8px; padding-bottom: calc(8px + var(--safe-bottom)); }
  .toolbar .button { min-width: 0; min-height: 64px; font-size: 12px; line-height: 1.25; padding: 7px 3px; }
  .toolbar .end-button { grid-column: span 2; flex-direction: row; gap: 8px; }
  .toolbar .button span { display: inline; }
  #notices { bottom: calc(190px + var(--safe-bottom)); right: max(14px, var(--safe-right)); max-width: calc(100% - 28px - var(--safe-left) - var(--safe-right)); }
  .room-heading { display: block; }
  .room-heading h1 { font-size: 21px; line-height: 1.3; }
  .room-meta { margin-top: 12px; gap: 7px; }
  .room-meta .pill { font-size: 11px; padding: 6px 9px; }
  .stage-placeholder { padding: 36px 16px 42px; }
  .stage-placeholder .avatar { display: none; }
  .stage-placeholder h3 { font-size: 16px; }
  .stage-placeholder p { font-size: 12px; line-height: 1.5; }
  .stage-top { top: 9px; left: 10px; font-size: 8px; }
  .stage-label { bottom: 9px; left: 10px; padding: 5px 7px; }
  .sound-button { top: auto; bottom: 44px; right: 10px; max-width: calc(100% - 20px); }
  .class-grid, .grid-two, .gallery { grid-template-columns: minmax(0, 1fr); }
  .class-card footer, .report-head, .event-row { flex-wrap: wrap; }
  .class-card footer .button { flex-shrink: 0; }
  .class-head { gap: 10px; }
  .class-card, .panel:not(.roster-panel) { padding: 18px; }
  .page-heading > .button { width: 100%; }
  .hero { padding: 24px; }
  .hero h2 { font-size: 25px; }
  .login-card { padding: 22px; }
  .brand em { font-size: 12px; }
  dialog { width: calc(100% - 24px); padding: 20px; border-radius: 12px; }
  dialog h2 { font-size: 21px; }
  dialog textarea { min-height: 100px; }
  dialog footer { margin-top: 18px; }
  .check-label input { width: 24px; height: 24px; flex: 0 0 24px; }
}

@media (min-width: 601px) and (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .topbar { min-height: 52px; padding-top: max(4px, var(--safe-top)); padding-bottom: 4px; }
  .room-heading { margin-bottom: 12px; }
  .stage { max-height: 60dvh; aspect-ratio: 16 / 9; }
  .stage-placeholder { padding: 28px 16px 36px; }
  .stage-placeholder .avatar { display: none; }
  .toolbar .button { min-height: 52px; }
  .room-content { --class-toolbar-space: 100px; }
  .sidebar .privacy-box { display: none; }
  .sidebar .eyebrow { margin-top: 16px; }
}
.room-content > .sound-button { position: static; margin: 0 0 14px; }

/* The live classroom keeps its lecture and private conversation within reach. */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.recording-consent { font-size:12px; line-height:1.5; color:#607b8d; margin:0 0 12px; max-width:85ch; }
.stage-actions { position:absolute; top:12px; right:12px; z-index:6; display:flex; gap:8px; }
.stage-actions .button { min-height:44px; padding:8px 12px; background:#142d46e8; color:#fff; border:1px solid #ffffff55; box-shadow:0 2px 10px #0003; }
.stage-actions [hidden], .chat-pane [hidden], .toolbar [hidden] { display:none!important; }
.stage-top { max-width:calc(100% - 175px); }
.stage-rotate-tip { position:absolute; z-index:5; bottom:max(16px,env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); margin:0; padding:9px 12px; border-radius:9px; color:#fff; background:#142d46dc; font-size:12px; max-width:calc(100% - 24px); text-align:center; }
.stage-rotate-tip[hidden] { display:none; }
.stage:is(:fullscreen, :-webkit-full-screen), .stage.stage-expanded { width:100%; height:100%; max-width:none; max-height:none; aspect-ratio:auto; border:0; border-radius:0; background:#091827; }
.stage.stage-expanded { position:fixed; z-index:60; top:var(--class-top,0px); left:var(--class-left,0px); width:var(--class-width,100vw); height:var(--class-height,100dvh); }
.stage:is(:fullscreen, :-webkit-full-screen) .camera-overlay, .stage.stage-expanded .camera-overlay { width:clamp(100px,22%,320px); bottom:70px; right:max(18px,env(safe-area-inset-right)); }
.stage:is(:fullscreen, :-webkit-full-screen) .stage-actions, .stage.stage-expanded .stage-actions { top:max(14px,env(safe-area-inset-top)); right:max(14px,env(safe-area-inset-right)); }
.stage:is(:fullscreen, :-webkit-full-screen) .stage-top, .stage.stage-expanded .stage-top { top:max(18px,env(safe-area-inset-top)); }
.stage:is(:fullscreen, :-webkit-full-screen) .stage-fullscreen, .stage.stage-expanded .stage-fullscreen { display:none; }
.stage > video { object-fit:contain!important; }
.chat-heading { display:flex; align-items:flex-start; gap:12px; justify-content:space-between; padding-bottom:12px; }
.chat-heading h2 { font-size:17px; margin:0 0 4px; }
.chat-heading p { font-size:12px; line-height:1.45; color:#718795; margin:0; }
#chat-close { display:none; }
.chat-pane { gap:0; min-width:0; }
.chat-pane .messages { min-height:180px; height:min(44vh,440px); flex:1 1 auto; scrollbar-gutter:stable; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; overflow-anchor:none; }
.messages:empty::before { content:'Your private conversation starts here.'; color:#8a9eac; margin:auto 0; text-align:center; padding:28px 12px; font-size:13px; }
.chat-pane .composer { flex:0 0 auto; margin:8px 0 0; align-items:flex-end; }
.chat-pane .composer textarea { resize:none; height:68px; max-height:100px; min-height:48px; font-size:16px; }
.chat-pane .composer .button { min-width:56px; flex:0 0 auto; flex-direction:column; gap:2px; font-size:11px; padding:7px 10px; }
.chat-feedback { margin:7px 0 0; min-height:16px; font-size:11px; line-height:1.4; color:#748b9b; }
.chat-new-messages { flex:0 0 auto; align-self:center; background:#e8f3fb; padding:7px 14px; border-radius:24px; }
.chat-control { position:relative; }
.chat-unread { position:absolute; top:0; right:0; min-width:19px; height:19px; border-radius:20px; padding:1px 4px; display:grid!important; place-items:center; color:white; background:#bd4141; border:2px solid white; font-size:10px; line-height:1; }
.toolbar { display:flex; gap:12px; }
.toolbar-primary,.toolbar-secondary { display:flex; align-items:center; gap:8px; }
.toolbar .more-control,.more-heading { display:none; }
.toolbar .button { flex-direction:row; gap:6px; font-size:12px; padding:9px 11px; }
.toolbar .end-button { grid-column:auto; }
.chat-scrim { display:none; }
@media (max-width:1150px) and (min-width:901px) {
  .toolbar { flex-wrap:wrap; }
  .toolbar .button { font-size:11px; padding:8px; }
}
@media (max-width:900px) {
  .room-content { --class-toolbar-space:92px; padding-bottom:calc(var(--class-toolbar-height,calc(76px + var(--safe-bottom))) + 20px); }
  .room-content:has(.composer textarea:focus, .note-box:focus) { padding-bottom:calc(var(--class-toolbar-height,calc(76px + var(--safe-bottom))) + 20px); }
  .room-content:has(.composer textarea:focus, .note-box:focus) .toolbar { position:fixed; margin:0; border-radius:0; border-width:1px 0 0; }
  .room-heading { margin-bottom:12px; }
  .room-heading h1 { font-size:20px; }
  .room-heading p { font-size:12px; }
  .room-meta { margin-top:8px; }
  .recording-consent { font-size:11px; line-height:1.45; }
  .stage-actions { top:8px; right:8px; }
  .stage-actions .button { font-size:12px; padding:7px 10px; }
  .stage-top { display:none; }
  .toolbar { display:block; position:fixed; top:calc(var(--class-top,0px) + var(--class-height,100dvh) - var(--class-toolbar-height,calc(76px + var(--safe-bottom)))); left:var(--class-left,0px); width:var(--class-width,100vw); bottom:auto; box-sizing:border-box; padding:8px max(10px,var(--safe-right)) calc(8px + var(--safe-bottom)) max(10px,var(--safe-left)); z-index:28; }
  .toolbar-primary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }
  .toolbar-primary .button { min-width:0; min-height:56px; flex-direction:column; padding:6px 2px; gap:4px; font-size:12px; line-height:1.2; }
  .toolbar .more-control { display:flex; }
  .toolbar-secondary { display:none; position:absolute; right:max(10px,var(--safe-right)); bottom:calc(100% + 8px); background:white; border:1px solid #dbe6ef; box-shadow:0 12px 45px #17364b30; border-radius:14px; padding:12px; width:min(300px,calc(100vw - 24px)); max-height:calc(var(--class-height,100dvh) - 100px); overflow:auto; }
  .more-open .toolbar-secondary { display:grid; gap:8px; }
  .toolbar-secondary .button { width:100%; justify-content:flex-start; min-height:46px; flex-direction:row; font-size:14px; gap:10px; padding:9px 12px; }
  .more-heading { display:block; margin:0 0 4px; color:#718898; font-size:12px; }
  .student-room .roster-panel { display:contents; }
  .student-room .side-tabs { display:none; }
  .chat-pane { display:none; }
  .chat-sheet-open .chat-pane { display:flex!important; position:fixed; z-index:26; left:calc(var(--class-left,0px) + 8px); top:calc(var(--class-top,0px) + var(--class-chat-stage,0px) + 8px); width:calc(var(--class-width,100vw) - 16px); height:calc(var(--class-height,100dvh) - var(--class-chat-stage,0px) - var(--class-toolbar-height,calc(76px + var(--safe-bottom))) - 16px); min-height:0; box-sizing:border-box; padding:14px 14px 10px; border-radius:16px; background:white; box-shadow:0 6px 30px #0b243c26; border:1px solid #d9e7f0; }
  .chat-sheet-open #chat-close { display:flex; flex:0 0 auto; }
  .chat-pane .chat-heading { flex:0 0 auto; padding-bottom:8px; }
  .chat-pane .chat-heading h2 { font-size:17px; }
  .chat-pane .chat-heading p { font-size:11px; }
  .chat-pane .chat-select { flex:0 0 auto; padding:8px; min-height:40px; }
  .chat-pane .messages,.room-content:has(.composer textarea:focus) .messages { flex:1 1 auto; height:auto; min-height:0; padding:10px 0; }
  .chat-pane .message { font-size:14px; line-height:1.5; }
  .chat-pane .composer { position:relative; margin-top:6px; }
  .chat-pane .composer textarea { height:56px; }
  .chat-sheet-open .chat-scrim { display:block; position:fixed; z-index:20; inset:0; background:#0b203b; touch-action:none; }
  .chat-sheet-open .stage:not(.hidden) { position:fixed; z-index:22; top:var(--class-top,0px); left:calc(var(--class-left,0px) + 8px); width:calc(var(--class-width,100vw) - 16px); height:var(--class-chat-stage,0px); aspect-ratio:auto; border-radius:0 0 12px 12px; min-height:0; }
  .chat-sheet-open:not(.chat-stage-visible) .stage { visibility:hidden; }
  .chat-sheet-open .stage-placeholder { padding:8px; }
  .chat-sheet-open .stage-placeholder h3 { font-size:13px; margin:0; }
  .chat-sheet-open .stage-placeholder p,.chat-sheet-open .stage-placeholder .avatar,.chat-sheet-open .stage-label { display:none; }
  .chat-sheet-open .stage .camera-overlay { width:20%; bottom:8px; right:8px; }
  .chat-sheet-open .stage-actions { top:6px; right:6px; }
  .chat-sheet-open .toolbar { top:calc(var(--class-top,0px) + var(--class-height,100dvh) - var(--class-toolbar-height,calc(76px + var(--safe-bottom)))); }
  #notices { bottom:calc(90px + var(--safe-bottom)); z-index:80; }
}
@media (max-height:430px) and (max-width:900px) {
  .chat-sheet-open .chat-pane { padding:8px 12px; }
  .chat-heading p,.chat-feedback { display:none; }
  .chat-heading { padding-bottom:4px; }
  .chat-pane .composer textarea { height:48px; }
}
.mic-recording-label { display:block; font-size:9px; line-height:1.2; margin-top:2px; font-weight:400; white-space:normal; }
.toolbar-primary .button > span { min-width:0; max-width:100%; }

.chat-error { flex:0 0 auto; margin:5px 0 0; padding:8px 10px; border-radius:8px; color:#973d39; background:#fff0ef; font-size:12px; line-height:1.4; }
.microphone-capacity { margin-bottom: 8px; }
.microphone-capacity b { display: block; color: #486d88; margin-bottom: 4px; }
.self-unmute-control { width: 100%; min-height: 48px; justify-content: space-between; gap: 12px; text-align: left; white-space: normal; }
.self-unmute-control strong { flex-shrink: 0; font-size: 12px; padding: 3px 8px; border-radius: 8px; background: rgba(20, 70, 97, .08); }
.self-unmute-control[aria-pressed="true"] strong { background: #0f5b75; color: #fff; }
#self-unmute-help { margin: 10px 0; }
#self-unmute-mobile { display: none; }
@media (max-width: 900px) { #self-unmute-mobile { display: flex; grid-column: 1 / -1; } }
.classroom-expanded #self-unmute-mobile { display: flex; grid-column: 1 / -1; }
.video-presenter { margin:18px 0; padding:22px; border:1px solid #d7e4ee; background:#f8fbfe; }
.video-presenter[hidden] { display:none; }
.video-presenter header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.video-presenter h2 { margin:4px 0 0; font-size:20px; }
.video-presenter p { color:#486276; line-height:1.6; font-size:13px; }
.video-file-label { display:block; font-weight:600; font-size:13px; margin-top:16px; }
.video-file-label small { display:block; font-weight:400; color:#647b8d; margin:4px 0 8px; }
.video-presenter input[type=file] { width:100%; max-width:100%; padding:10px; border:1px dashed #abc2d5; border-radius:10px; background:#fff; font:inherit; font-size:13px; }
.video-presenter input[type=file]::file-selector-button { padding:8px 12px; margin-right:10px; border:0; border-radius:7px; background:#e6f0f8; color:#173f60; cursor:pointer; font:inherit; }
.video-presenter video { display:block; width:100%; max-height:340px; aspect-ratio:16/9; margin:14px 0; border-radius:10px; background:#101e2a; object-fit:contain; }
.video-presenter-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.video-presenter-footer p { margin:0; flex:1 1 210px; }
.video-presenter-actions { display:flex; gap:8px; flex-wrap:wrap; }
.video-presenter .video-presenter-note { margin:14px 0 0; font-size:12px; }
@media(max-width:600px) { .video-presenter { padding:14px; } .video-presenter header { align-items:flex-start; } .video-presenter-actions { width:100%; } .video-presenter-actions .button { flex:1; } }

/* Navigation remains dismissible above the classroom and its floating dock. */
.test-dialog { width:min(690px,calc(100% - 24px)); max-height:calc(100dvh - 24px); padding:24px; overflow:auto; overscroll-behavior:contain; }
.test-dialog-heading { position:sticky; top:0; z-index:2; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding-bottom:6px; background:#fff; }
.test-dialog-heading h2 { margin:6px 0 12px; }
.test-dialog-heading > button { min-width:44px; min-height:44px; padding:10px; flex:0 0 auto; }
.test-dialog > p { color:#526e83; }
.test-question-row { padding:14px; margin:12px 0; border:1px solid #dce7ef; border-radius:12px; background:#f8fbfd; }
.test-question-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:9px; }
.test-question-heading label { margin:0; color:#234c69; font-size:14px; }
.test-question-actions { display:flex; gap:5px; }
.test-question-actions .button { min-width:40px; min-height:40px; padding:8px; font-size:17px; }
.test-dialog input[aria-invalid=true] { border-color:#b64747; box-shadow:0 0 0 1px #b64747; }
.test-dialog .field-error { font-size:12px; line-height:1.5; color:#a53d3d; margin-top:6px; }
.test-dialog .field-error:empty { display:none; }
.test-add-row { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.test-add-row .button { min-height:44px; }
.test-timing { border-top:1px solid #dce7ef; margin-top:20px; padding-top:4px; }
.test-timing label { font-size:14px; color:#234c69; }
.test-timing label small { font-weight:400; margin-left:6px; }
.test-duration-field { display:flex; align-items:center; gap:10px; font-size:13px; color:#526e83; }
.test-duration-field input { max-width:190px; }
#test-duration-help { font-size:12px; color:#526e83; margin-top:9px; }
.test-dialog footer { position:sticky; bottom:-24px; padding:15px 0 8px; margin-top:12px; background:#fff; border-top:1px solid #e4ecf2; }
.test-dialog footer .button { min-height:44px; }
.assignment.test-assignment { display:block; padding:20px; }
.test-assignment-heading { display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.test-assignment-heading h3 { margin:3px 0 0; font-size:19px; }
.test-clock { padding:8px 11px; border-radius:8px; background:#fff; border:1px solid #bfdae9; color:#225b7b; font-size:14px; font-weight:700; font-variant-numeric:tabular-nums; white-space:nowrap; }
.test-clock.test-clock-ended { background:#fff4df; border-color:#e4c479; color:#765112; }
#test-status { font-size:13px; color:#46667b; margin-top:10px; }
.test-question-links { list-style:none; padding:0; margin:16px 0 0; display:grid; gap:9px; }
.test-question-links li { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px; background:#fff; border:1px solid #d4e6f0; border-radius:10px; min-width:0; }
.test-question-links li > div { display:flex; align-items:center; gap:10px; min-width:0; }
.test-question-links h3 { font-size:14px; line-height:1.45; overflow-wrap:anywhere; }
.test-question-number { display:grid; place-items:center; min-width:27px; height:27px; border-radius:8px; background:#eaf5fb; color:#3d7594; font-size:12px; font-weight:700; }
.test-question-links .button { flex:0 0 auto; font-size:12px; min-height:44px; white-space:normal; }
.test-share-guidance { font-size:12px; color:#526f82; margin-top:13px; }
.test-phone-notice { margin-top:14px; padding:13px 14px; border:1px solid #d7ad55; border-radius:10px; background:#fff5dc; color:#684b19; font-size:14px; font-weight:650; line-height:1.6; }
.test-account-card,.test-results-card { padding:17px; margin-top:16px; border:1px solid #cbdfe9; border-radius:12px; background:#fff; }
.test-account-card h3,.test-results-card h3 { margin:0; font-size:16px; }
.test-account-card p,.test-results-card header p { margin-top:8px; font-size:12px; color:#526e83; }
.test-account-heading,.test-results-card > header { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.test-account-heading small { display:block; margin-bottom:3px; }
.test-account-card label { display:block; margin:14px 0 7px; font-size:13px; font-weight:600; color:#34566e; }
.test-register-row { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.test-register-row input { flex:1 1 190px; min-width:0; padding:12px; border:1px solid #c5d9e6; border-radius:8px; background:#fcfdfe; font-size:14px; color:#234c69; }
.test-register-row .button { min-height:44px; }
.test-score-rules { font-size:12px; color:#526e83; line-height:1.6; margin-top:12px; }
.test-score-value { font-size:19px; color:#1d5d7b; font-variant-numeric:tabular-nums; white-space:nowrap; }
.test-results-actions { display:flex; gap:8px; flex-wrap:wrap; }
.test-result-list { display:grid; gap:8px; margin-top:14px; }
.test-result-row { border:1px solid #dce7ef; border-radius:10px; padding:0 12px; background:#fafdff; }
.test-result-row summary { display:flex; align-items:center; gap:12px; min-height:58px; cursor:pointer; list-style:none; }
.test-result-row summary::-webkit-details-marker { display:none; }
.test-result-student { font-size:13px; font-weight:700; flex:1; min-width:0; overflow-wrap:anywhere; }
.test-result-state { font-size:11px; color:#56748a; }
.test-result-expand { font-size:11px; color:#267ba3; }
.test-result-row[open] .test-result-expand { color:#546c7b; }
.test-result-row .test-score-value { font-size:16px; }
.test-result-message { margin:8px 0 12px; color:#526e83; font-size:12px; line-height:1.6; }
.test-result-questions { list-style:none; padding:0; margin:0 0 12px; display:grid; gap:8px; }
.test-result-questions li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-top:1px solid #dfebf2; }
.test-result-questions strong { font-size:12px; }
.test-result-questions small { display:block; font-size:11px; margin-top:5px; line-height:1.6; }
.test-result-badge,.test-question-progress { color:#6b7680; font-size:11px; line-height:1.5; }
.test-result-badge { flex:0 0 auto; padding:5px 8px; border-radius:6px; background:#edf3f6; }
.test-result-badge.solved { background:#e4f5ed; color:#237d59; }
.test-question-progress { display:block; margin-top:4px; }
.test-question-progress.solved { color:#237d59; font-weight:600; }
.test-results-empty { padding:16px 0; color:#526e83; font-size:13px; line-height:1.6; }
.test-account-card .field-error,.test-results-card .field-error,.test-report-dialog .field-error { color:#a53d3d; font-size:12px; line-height:1.6; margin-top:9px; }
.test-report-dialog { width:min(850px,calc(100% - 24px)); max-height:calc(100dvh - 24px); overflow:auto; overscroll-behavior:contain; }
.test-report-controls { display:flex; gap:9px; align-items:center; flex-wrap:wrap; margin-bottom:16px; }
.test-report-controls label { margin:0; }
.test-report-controls select { flex:1 1 230px; width:auto; min-width:0; }
.test-report-summary { display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
@media(max-width:600px) {
  .test-dialog { padding:16px; }
  .test-dialog footer { bottom:-16px; }
  .test-dialog input:not([type=checkbox]) { font-size:16px; }
  .test-question-row { padding:11px; }
  .test-question-actions .button { min-width:44px; min-height:44px; }
  .assignment.test-assignment { padding:15px; }
  .test-question-links li { align-items:stretch; flex-direction:column; gap:10px; }
  .test-question-links .button { align-self:flex-start; font-size:13px; padding:10px 12px; }
  .test-register-row input { font-size:16px; }
  .test-account-card,.test-results-card { padding:13px; }
  .test-result-row summary { flex-wrap:wrap; gap:8px; padding:10px 0; }
  .test-result-state { flex-basis:100%; order:4; }
  .test-result-questions li { align-items:flex-start; flex-direction:column; gap:8px; }
  .test-report-dialog { padding:16px; }
}
.sidebar-header { display:flex; align-items:center; justify-content:space-between; gap:8px; flex:0 0 auto; }
.sidebar-header .brand { min-width:0; }
.sidebar-close,.navigation-scrim { display:none; }
.navigation-scrim[hidden] { display:none!important; }
@media(max-width:900px) {
  body.navigation-open { overflow:hidden; }
  .sidebar { z-index:100; overscroll-behavior:contain; }
  .sidebar-close { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; min-width:44px; min-height:44px; padding:9px; border:1px solid #d9e5ed; border-radius:10px; background:#f5f9fc; color:#173c55; font-size:13px; }
  .navigation-scrim { display:block; position:fixed; inset:0; z-index:99; width:100%; height:100%; padding:0; border:0; background:#0b203b66; touch-action:none; cursor:pointer; }
}

/* Expand the whole classroom so its existing chat and controls stay available. */
.room-content.classroom-expanded { position:fixed; z-index:60; top:var(--class-top,0px); left:var(--class-left,0px); width:var(--class-width,100vw); height:var(--class-height,100dvh); max-width:none; margin:0; padding:0; background:#091827; overflow:hidden; isolation:isolate; }
.room-content:fullscreen,.room-content:-webkit-full-screen { border:0; border-radius:0; }
.room-content::backdrop { background:#091827; }
.classroom-expanded .stage.stage-expanded { position:absolute; inset:0; width:100%; height:100%; z-index:1; outline:none; }
.classroom-expanded .room-heading,.classroom-expanded .recording-consent,.classroom-expanded #room-alert,.classroom-expanded #screen-share-hint,.classroom-expanded .below-stage,.classroom-expanded .room-tabs,.classroom-expanded #room-about,.classroom-expanded #room-notes,.classroom-expanded #assignment,.classroom-expanded #gallery-wrap { display:none; }
.classroom-expanded .roster-panel { display:contents; }
.classroom-expanded .side-tabs,.classroom-expanded #people-pane { display:none; }
.classroom-expanded .toolbar { position:absolute; z-index:10; top:auto; left:0; right:0; bottom:0; width:100%; box-sizing:border-box; margin:0; padding-bottom:calc(10px + var(--safe-bottom)); visibility:visible; border-top:1px solid #d4e2eb; background:#fffffff5; box-shadow:0 -8px 30px #0002; transition:opacity .18s ease,transform .18s ease; }
.classroom-expanded .stage-actions { transition:opacity .18s ease; }
.classroom-expanded .stage-rotate-tip { display:none; }
.classroom-expanded .stage .camera-overlay { bottom:calc(var(--class-toolbar-height,90px) + 12px); }
.classroom-expanded > .sound-button { position:absolute; z-index:12; top:max(12px,var(--safe-top)); left:max(12px,var(--safe-left)); right:auto; bottom:auto; margin:0; }
.classroom-expanded.controls-hidden .toolbar { opacity:0; transform:translateY(100%); pointer-events:none; }
.classroom-expanded.controls-hidden .stage-actions,.classroom-expanded.controls-hidden .stage-rotate-tip { opacity:0; pointer-events:none; }
.classroom-expanded .video-presenter:not([hidden]) { position:absolute; z-index:12; left:50%; top:16px; transform:translateX(-50%); width:min(680px,calc(100% - 24px)); max-height:calc(100% - var(--class-toolbar-height,90px) - 32px); margin:0; overflow:auto; overscroll-behavior:contain; }
@media(min-width:901px) {
  .classroom-expanded .chat-pane:not(.hidden) { position:absolute; z-index:8; display:flex; right:16px; top:72px; width:min(370px,calc(100% - 32px)); height:calc(100% - var(--class-toolbar-height,80px) - 88px); min-height:0; border:1px solid #d7e4ee; border-radius:16px; background:#fff; box-shadow:0 8px 36px #0004; }
  .classroom-expanded .chat-pane .messages { height:auto; min-height:0; }
  .classroom-expanded #chat-close { display:flex; }
}
@media(max-width:900px) {
  .room-content.classroom-expanded:has(.composer textarea:focus) { padding:0; }
  .classroom-expanded.chat-sheet-open .chat-pane { position:absolute; z-index:8; left:8px; top:calc(var(--class-chat-stage,0px) + 8px); width:calc(100% - 16px); }
  .classroom-expanded.chat-sheet-open .chat-scrim { position:absolute; z-index:0; }
  .classroom-expanded.chat-sheet-open .stage.stage-expanded { inset:auto; top:0; left:8px; width:calc(100% - 16px); height:var(--class-chat-stage,0px); z-index:1; }
  .classroom-expanded.chat-sheet-open .stage .camera-overlay { bottom:8px; }
  .classroom-expanded.chat-sheet-open .stage-rotate-tip { display:none; }
  .classroom-expanded.chat-sheet-open .toolbar,.room-content.classroom-expanded:has(.composer textarea:focus) .toolbar { position:absolute; top:auto; bottom:0; }
}

.message-actions{display:flex;gap:4px;margin-top:6px;white-space:normal}.message-actions .text-button{padding:4px 8px;border-radius:6px;background:#ffffff99}.message-actions .text-button:hover{background:#fff}.chat-reply{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 0;padding:8px 10px;border-radius:8px;background:#e6f4fb;color:#245d82;font-size:12px;font-weight:600}

/* 2026 minimalist classroom polish: visual-only, no media or privacy behavior. */
:root{--navy:#102a43;--blue:#3698c5;--muted:#64798c;--line:#dfe8ef;--pale:#edf6fa;background:#f6f8fa;color:#183247}
body{background:#f6f8fa;color:#183247}
.sidebar{background:#fffffffa;border-color:#e5ebf0;padding:24px 16px}.navigation{gap:4px}.nav-item{border-radius:12px;padding:12px 13px;color:#607487}.nav-item.active{background:#eaf4f8;color:#174f6d;font-weight:700}.topbar{background:#ffffffeb;backdrop-filter:blur(14px);border-color:#e5ebf0}
.content,.room-content{animation:aula-enter .22s ease-out}.panel,.class-card,.report-card{border-color:#e2e9ef;border-radius:16px;box-shadow:0 1px 2px #102a4308}.hero{border-radius:18px;background:linear-gradient(125deg,#eaf5f9,#f6fbfc);border-color:#dcebf1}.button{border-radius:11px;border-color:#d9e4eb;min-height:42px}.button.primary{background:#123b55;border-color:#123b55}.button.primary:hover{background:#0e3046}.pill{font-weight:700;letter-spacing:.01em}
.room-heading{margin-bottom:16px}.room-heading h1{font-weight:760}.room-layout{gap:16px}.stage{background:#071724;border-color:#162d3d;border-radius:18px;box-shadow:0 12px 34px #0717241c}.stage>video{background:#071724}.stage-placeholder{color:#8da8ba}.stage-placeholder h3{color:#eef6fa}.stage-label,.stage-top{background:#071724c7;backdrop-filter:blur(10px);border:1px solid #ffffff14;border-radius:9px}
.roster-panel{border-radius:16px;box-shadow:0 1px 2px #102a4308}.side-tabs{padding:0 18px;gap:24px}.room-tab{padding:16px 0}.room-tab.active{color:#165e82;border-color:#2e91bd}.person{padding:13px 8px}.person .avatar{border-radius:10px}.chat-pane{background:#fff}.message{background:#f0f5f8;border-radius:13px 13px 13px 4px;padding:11px 13px}.message.mine{background:#dff0f7;border-radius:13px 13px 4px 13px}.composer textarea,.chat-select{border-radius:11px;border-color:#d9e4eb;background:#fbfcfd}
.toolbar{background:#fffffff2;backdrop-filter:blur(16px);border-color:#dfe7ed;box-shadow:0 -10px 32px #102a4309}.toolbar .button{border-radius:12px}.toolbar .end-button{background:#fff0f0;color:#a83f49;border-color:#f0d1d4}.notice{border-radius:13px;box-shadow:0 14px 35px #102a4317}.round-button{border-radius:9px}
@keyframes aula-enter{from{opacity:.35;transform:translateY(3px)}to{opacity:1;transform:none}}
@media(min-width:901px){.toolbar{margin:0 18px 12px;border:1px solid #dfe7ed;border-radius:16px;left:250px;right:18px;padding:10px 14px}.room-content{padding-bottom:112px}.classroom-expanded .toolbar{margin:0;border-radius:0;left:0;right:0}}
@media(max-width:900px){.toolbar{background:#fffffff7}.chat-sheet-open .chat-pane{border-radius:18px}.stage{border-radius:15px}.sidebar{transition:transform .2s ease}.button:active:not(:disabled){transform:scale(.98)}}
@media(prefers-reduced-motion:reduce){.content,.room-content{animation:none}}

/* Clear post-class reporting hierarchy. */
.library-filter{display:grid;grid-template-columns:minmax(180px,.55fr) minmax(260px,1fr);align-items:end;gap:24px;margin-bottom:22px}.library-filter label{display:block;font-weight:750;margin-bottom:5px}.library-filter p{font-size:12px}.library-filter .chat-select{min-height:46px;font-size:14px;background:#fff}.report-list{display:grid;gap:16px}.session-report{margin:0;padding:0;overflow:hidden}.session-report .report-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding:20px 22px;border-bottom:1px solid #e7edf2;background:#fbfcfd}.report-date{width:54px;height:58px;border:1px solid #dbe6ed;border-radius:13px;background:#fff;display:grid;place-content:center;text-align:center;line-height:1}.report-date strong{font-size:22px;color:#163f58}.report-date span{margin-top:5px;color:#718698;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.08em}.report-title{min-width:0}.report-title .eyebrow{font-size:9px}.report-title h3{font-size:17px;margin:4px 0 5px;overflow-wrap:anywhere}.report-title p{font-size:12px;color:#718698;line-height:1.45}.report-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.report-section{padding:20px 22px;min-width:0}.report-section+ .report-section{border-left:1px solid #e7edf2}.report-section h4{font-size:13px;margin:0 0 4px;color:#24475d}.report-section>div>p{font-size:11px;color:#7b8e9d;line-height:1.5}.report-action-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:14px}.report-action-row .button{font-size:12px;padding:9px 11px}.report-note{font-size:11px;line-height:1.55;color:#7a8e9e;background:#f5f8fa;border-radius:9px;padding:10px 12px;margin-top:12px}.session-report>.status-alert{margin:16px 22px 0}
@media(max-width:760px){.library-filter{grid-template-columns:1fr;gap:12px}.session-report .report-head{grid-template-columns:auto minmax(0,1fr);padding:16px}.session-report .report-head>.pill{grid-column:2;justify-self:start}.report-date{width:48px;height:52px}.report-title h3{font-size:16px}.report-sections{grid-template-columns:1fr}.report-section{padding:17px 16px}.report-section+ .report-section{border-left:0;border-top:1px solid #e7edf2}.report-action-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.report-action-row .button{width:100%;min-width:0}.session-report>.status-alert{margin:14px 16px 0}}
@media(max-width:420px){.report-action-row{grid-template-columns:1fr}.report-date{display:none}.session-report .report-head{grid-template-columns:1fr}.session-report .report-head>.pill{grid-column:1}}
