.classroom-library{margin-block:24px}.classroom-picker{background:#f4f1fb;border:1px solid #d9caed;border-radius:20px;padding:20px;margin-bottom:18px}.classroom-picker summary{font-weight:700;cursor:pointer}.classroom-picker label{display:block;margin:16px 0}.classroom-picker input,.classroom-picker select{width:100%;min-height:48px}#classroom-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:320px;overflow:auto}#classroom-results button{text-align:left;background:white;color:#263963}#classroom-results small{display:block;margin-top:8px;color:#61708b}#classroom-preview{border:2px dashed #9c81c8;border-radius:20px;margin-top:20px;padding:20px}.classroom-slide{background:white;border:1px solid #d6e3f7;border-radius:24px;padding:clamp(18px,3vw,36px)}.classroom-slide h2{font-size:clamp(24px,3vw,36px)}.classroom-caption{font-size:clamp(18px,2vw,24px);line-height:1.6;background:#eef8f2;padding:20px;border-radius:16px}.classroom-model{max-width:850px;margin:20px auto}.classroom-model svg{max-height:300px}.classroom-shapes{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.classroom-shapes svg{width:100%;max-height:180px}.classroom-slide li{padding:12px;font-size:20px}.classroom-library>.actions{flex-wrap:wrap}.classroom-library button{min-height:48px}@media(max-width:600px){#classroom-results{grid-template-columns:1fr}.classroom-shapes{grid-template-columns:repeat(2,1fr)}}

.classroom-preview-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:16px}#classroom-preview{scroll-margin-top:16px}

/* Keep camera controls above a compact landscape video, including demo rooms. */
.room .room-media-controls{padding:16px;background:#223650;border-radius:16px;margin-bottom:16px}
.room .room-media-controls label{max-width:440px;margin-top:12px;font-size:16px}
.room .room-media-controls select{width:100%;min-height:48px}
.room .videos{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));align-items:start}
.room .video-tile{width:100%;max-width:640px;min-height:0;max-height:none}
.room video-player-container{display:block;width:100%;aspect-ratio:16/9;max-height:360px}
.room .video-tile video-player,.room .video-tile video{display:block;width:100%;height:100%;max-height:360px;aspect-ratio:16/9;object-fit:contain}

#classroom-response:not(:empty){background:#f4f1fb;color:#263963;padding:20px;border-radius:18px;margin-top:16px}.classroom-answer-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:16px}.classroom-answer-options button{background:white;color:#263963;border:2px solid #bac6d8}.classroom-answer-options button[aria-pressed="true"]{background:#dfefd9;border-color:#405c48}.answer-selected{display:block;font-weight:800}#classroom-response p{color:#435578}

.room #shared-canvas{scroll-margin-top:16px}.room-shortcuts{margin-block:16px}
.room.room-studio{max-width:1500px;margin:20px auto;padding:clamp(16px,3vw,30px);background:#f8fbff!important;color:#263963;border:1px solid #cfdaea;border-radius:28px;box-shadow:0 18px 45px #2639630c}.room-studio .practice-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.room-studio .practice-head h2{font:700 clamp(20px,2vw,26px)/1.3 system-ui;margin:0}.room-studio #leave-room{background:#fff;color:#943a48;border:1px solid #e8cdd2}.room-studio-layout{display:grid;grid-template-columns:minmax(240px,.42fr) minmax(0,1fr);gap:22px;align-items:start}.room-studio-people,.room-studio-workspace{min-width:0}.room-studio .videos{display:grid;grid-template-columns:1fr;gap:14px}.room-studio .video-tile{background:#dfe8f1;border:1px solid #cfdaea;border-radius:18px;overflow:hidden;position:relative;max-width:none}.room-studio .video-tile>span{display:block;padding:12px 16px;background:#263e60;color:white}.room-studio video-player-container{aspect-ratio:4/3;max-height:none}.room-studio .video-tile video-player{max-height:none}.room-studio .room-waiting{display:grid;gap:14px}.room-studio .room-waiting>div,.room-camera-off{min-height:170px;background:#e4ecf5;border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#3d5574}.room-avatar{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#c7d7eb;font-size:24px;font-weight:700}.room-waiting small{color:#60728c}.room-has-video .room-waiting{display:none}.room-studio .room-media-controls{background:transparent;padding:0;margin-top:16px}.room-studio .room-media-controls .actions{display:flex;flex-wrap:wrap;gap:8px}.room-studio button{font:600 14px/1.35 system-ui;min-height:44px;border-radius:10px;padding:10px 14px;box-shadow:none}.room-studio button:not(#leave-room){background:#fff;color:#29456d;border:1px solid #cdd9e9}.room-studio #connect,.room-studio #classroom-present,.room-studio #classroom-send-answer{background:#2854cb;color:white}.room-studio button[aria-pressed=true]{background:#e7efff!important;border:2px solid #2854cb!important;color:#234580!important}.room-studio p,.room-studio small{color:#60718a}.room-device-settings{margin-top:14px;font-size:14px}.room-device-settings summary,.room-custom-question summary{cursor:pointer;font-weight:700}.room-studio-workspace{background:white;border:1px solid #d5dfed;border-radius:20px;overflow:hidden}.room-workspace-heading{display:flex;justify-content:space-between;gap:12px;padding:18px 22px;background:#edf3f9;font-size:14px}.room-workspace-heading span{color:#4c7c68}.room-studio #classroom-library{margin:0;padding:20px}.room-studio .classroom-picker{padding:0;background:white;border:0;margin-bottom:14px}.room-studio #classroom-results{grid-template-columns:1fr;max-height:340px}.room-studio #classroom-results button{border-radius:14px;padding:16px}.room-studio #classroom-results small{margin-top:5px}.room-studio .classroom-slide{padding:18px;border:0;border-radius:0}.room-studio .classroom-slide h2{font:700 clamp(22px,2vw,32px)/1.3 system-ui}.room-studio .classroom-model svg{width:100%;height:auto;max-height:400px;object-fit:contain}.room-studio .classroom-caption{font-size:17px;padding:14px}.room-studio #shared-canvas{margin:0 20px 20px;width:auto;background:#f8faff;border:1px solid #d6e1ed;border-radius:16px}.room-studio #shared-canvas canvas{display:block;width:100%;height:clamp(260px,45vh,480px);touch-action:none}.room-studio .toolbar{display:flex;gap:8px;flex-wrap:wrap;padding:12px}.room-studio #room-question{font-size:32px;padding:20px;margin:0}.room-workspace-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:14px 20px;background:#f5f8fc;border-top:1px solid #dbe4f0}.room-studio #board-status,.room-layer-note,.room-custom-question{margin:14px 20px;font-size:13px}.room-studio #problem-form{display:flex;flex-wrap:wrap;gap:12px}.room-studio #problem-form label{flex:1 1 140px}.room-studio[data-workspace=lesson] #shared-canvas,.room-studio[data-workspace=lesson] #room-question,.room-studio[data-workspace=canvas] #classroom-library{display:none}.room-studio #classroom-preview{padding:12px;border:1px solid #b7c7e3}.room-studio .classroom-library>.actions{display:flex;gap:8px;flex-wrap:wrap}.room-studio #classroom-stage:empty{display:none}@media(max-width:760px){.room-studio-layout{grid-template-columns:1fr}.room-studio .videos,.room-studio .room-waiting{grid-template-columns:repeat(2,minmax(0,1fr))}.room-studio .room-waiting>div{min-height:140px}.room-studio .video-tile>span{padding:8px;font-size:13px}.room-studio #classroom-library{padding:12px}.room-workspace-heading{padding:14px}.room.room-studio{padding:12px;margin:12px 0}.room-studio .classroom-slide{padding:6px}.room-studio #shared-canvas{margin:0 12px 12px}}

.room-camera-off[hidden]{display:none}
