/* Student stage: class first, compact self preview, persistent controls. */
.student-c86{position:relative;padding-bottom:150px}
.student-c86 .bar{align-items:center;gap:12px;margin:10px 0 16px}
.student-c86 #roomTitle{font-size:clamp(15px,3vw,20px);line-height:1.35}
.student-c86 #count{flex:none;background:#e6edf6;padding:8px 12px;border-radius:30px;font-size:13px}
.student-c86 #videos{display:flex;flex-direction:column;gap:12px;margin:0}
.student-c86 #videos .teacher-c86{order:-2;width:100%;padding:0;min-height:170px;aspect-ratio:16/9;background:#10283f}
.student-c86 #videos .teacher-c86 video{width:100%;height:100%;max-height:none;max-width:none;object-fit:contain;margin:0;border-radius:0;aspect-ratio:16/9}
.student-c86 #videos .teacher-c86>span{position:absolute;bottom:8px;left:10px;padding:5px 10px!important;background:#10283fcc;border-radius:12px;font-size:12px;max-width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.media-wait86{position:absolute;inset:35% 16px auto;text-align:center;color:#dbe9f7;font-size:14px;pointer-events:none;margin:0}
.student-c86 #videos .self-c86{order:2;display:flex;align-items:center;gap:10px;padding:10px 14px;min-height:54px;width:min(100%,360px);background:#fff;color:#173049;border:1px solid #d9e1eb;border-radius:16px}
.student-c86 #videos .self-c86>span{padding:0;font-size:12px;line-height:1.4}
.student-c86 #videos .self-c86 video{width:96px;height:64px;max-height:64px;object-fit:cover;margin:0;border-radius:10px}
.student-c86 .self-c86[data-camera86="false"]:before{content:'Tú';display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#e7edf5;font-weight:700;flex:none;font-size:12px}
.student-c86 #videos .tile:not(.self-c86):not(.teacher-c86){max-width:360px;padding:8px}
.student-c86 #videos .tile:not(.self-c86):not(.teacher-c86) video{max-height:170px}
.student-c86 #liveTranscript{margin-top:14px;order:5}
.student-c86 #liveTranscript:empty{display:none}
.student-c86 #liveTranscript .panel{margin:8px 0;padding:12px;font-size:13px}
.student-c86>.hint,.student-c86 #recordState{display:none}
.student-c86>.toolbar{position:fixed;bottom:0;left:0;right:0;z-index:40;background:#fff;border-top:1px solid #dce4ee;box-shadow:0 -4px 20px #10283f12;justify-content:center;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));}
.student-c86>.toolbar button{flex:none;font-size:13px;line-height:1.25;min-height:44px;max-width:165px;padding:10px 14px;border-radius:24px}
.student-c86>.toolbar #mic,.student-c86>.toolbar #camera{background:#173f65}
.student-c86>.toolbar .mic-on-c28{background:#087447!important;outline:2px solid #b5e1cc}
.student-c86>.toolbar .mic-off-c28{background:#a70f34!important}
.student-c86>.toolbar #leave{background:#53232c}
.student-c86 #questionClock{font-size:12px}
#studentTools86{margin:14px 0}
.voice-line86{display:flex;gap:10px;align-items:center;background:#fff;padding:10px 12px;border-radius:14px;border:1px solid #dae3ed;font-size:12px}
.voice-line86 meter{width:76px;flex:none;height:10px}
.class-actions86{display:flex;gap:8px;margin-top:10px}
.class-actions86 button{background:#163f65;border-radius:22px;font-size:13px;padding:9px 14px;min-height:42px}
#studentList86{margin-top:12px;padding:16px;background:white;border:1px solid #dce4ee;border-radius:20px;max-height:55vh;overflow:auto}
.person-row86{display:grid!important;grid-template-columns:40px minmax(0,1fr);gap:12px!important;align-items:center;padding:12px 0!important;border-bottom:1px solid #e3e9f1}
.person-avatar86{display:grid!important;place-items:center;padding:0!important;border-radius:50%;width:40px;height:40px;background:#e4ecf6;color:#193f64;font-size:13px;font-weight:700;letter-spacing:.5px}
.person-row86 strong{font-size:14px;line-height:1.35;overflow-wrap:anywhere;display:block}
.person-row86 small{display:block;font-size:12px;line-height:1.5}
.person-role86{color:#234e7c;font-weight:600}
.person-status86[data-online86="true"]{color:#087447}
.person-status86[data-online86="false"]{color:#815d1c}
.person-signals86{color:#56687b;font-size:11px!important}
.people-group86 h4{font-size:12px;text-transform:uppercase;letter-spacing:.7px;color:#607083;margin:18px 0 4px}
.search-people86{font-size:12px;margin:12px 0}
.search-people86 input{font-size:14px;padding:10px;border-radius:20px}
.c19-roster{width:min(410px,94vw)}
.c19-roster>header{background:white;color:#173049;padding:0 0 8px;gap:10px}
.c19-roster .academic-roster86{margin-top:20px;font-size:13px;border-top:1px solid #dbe4ee;padding-top:14px}
.c19-roster .academic-roster86 summary{cursor:pointer;font-weight:600}
.c19-roster [data-live-summary86],#studentList86 [data-live-summary86]{font-size:12px;color:#50677e}
.teacher-c86:fullscreen{border-radius:0;background:#071c2e;display:grid;place-items:center}
.teacher-c86:fullscreen video{width:100%;height:100%;object-fit:contain}
@media(max-width:600px){
 body:has(.student-c86:not([hidden]))>header{padding:10px 14px;gap:10px}
 body:has(.student-c86:not([hidden]))>header img{width:72px}
 body:has(.student-c86:not([hidden]))>header span{font-size:9px;letter-spacing:.3px}
 body:has(.student-c86:not([hidden]))>header h1{font-size:16px}
 body:has(.student-c86:not([hidden])) main{margin:10px auto;padding:0 12px}
 body:has(.student-c86:not([hidden])) #status{padding:10px 12px;font-size:13px;margin:8px 0}
 .student-c86>.toolbar{gap:6px;padding-top:8px}
 .student-c86>.toolbar button{font-size:12px;max-width:none;flex:1 1 28%;padding:9px 8px}
 .student-c86 .bar{align-items:flex-start}
 .student-c86 #count{font-size:11px;padding:6px 8px}
 .student-c86 #videos .teacher-c86{border-radius:16px;min-height:0}
 .student-c86 #videos .teacher-c86 video{width:100%;height:100%;max-height:none}
 .student-c86 #liveTranscript{font-size:12px}
 .student-c86 .self-c86 .c18-portrait{position:static;width:36px;height:36px}
}
@media(prefers-reduced-motion:reduce){.c19-roster{transition:none}}
