.teacher-device-backdrop{position:fixed;inset:0;z-index:12000;background:#07131bd1;display:grid;place-items:center;padding:20px}.teacher-device-dialog{display:flex;flex-direction:column;width:min(100%,580px);max-height:90dvh;min-height:0;border:1px solid #d8d1ca;border-radius:18px;background:#fff;color:#202e3a;box-shadow:0 24px 80px #0005;overflow:hidden;font-family:inherit}.teacher-device-dialog header,.teacher-device-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;flex-shrink:0;border-bottom:1px solid #e5e1dc}.teacher-device-dialog footer{border:0;border-top:1px solid #e5e1dc;justify-content:flex-end}.teacher-device-dialog h2{font-size:18px;margin:0}.teacher-device-dialog button,.teacher-connection-settings button{font:inherit;min-height:44px;border:1px solid #c9c5c0;border-radius:10px;background:#fff;color:#26333c;padding:9px 16px;cursor:pointer}.teacher-device-dialog button:focus-visible,.teacher-device-dialog input:focus-visible,.teacher-connection-settings :focus-visible{outline:3px solid #3978bd;outline-offset:3px}.teacher-device-body{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:20px;line-height:2}.teacher-device-body p{margin:10px 0}.teacher-device-body ol{padding-inline-start:24px}.teacher-device-qr{display:block;width:200px;height:200px;max-width:100%;margin:16px auto}.teacher-device-body label,.teacher-connection-settings label{display:grid;gap:8px;font-weight:600}.teacher-device-body input{box-sizing:border-box;width:100%;min-width:0;min-height:44px;border:1px solid #b7bfc5;border-radius:9px;padding:8px;font:13px monospace;color:#202e3a;background:#fff}.teacher-device-body .teacher-device-primary,.teacher-connection-settings .teacher-device-primary{background:#9b1822;color:#fff;border-color:#9b1822}.teacher-device-primary:disabled{opacity:.6;cursor:default}.teacher-device-audio{padding:12px;border:1px solid #e1cda5;border-radius:10px;background:#fff8e9;color:#634918}.teacher-device-body small{display:block;color:#58616a}.teacher-connection-settings{padding:20px;margin:18px 0;border:1px solid #d7dce1;border-radius:14px;background:#fff;color:#202e3a;line-height:2}.teacher-connection-settings h2{font-size:18px;margin:0}.teacher-connection-settings label{max-width:300px}.teacher-connection-settings select{font:inherit;min-height:44px;border:1px solid #b7bfc5;border-radius:9px;padding:6px;background:#fff;color:#202e3a}.teacher-connection-settings>div{display:flex;gap:10px;flex-wrap:wrap}.skyroom-stage-actions .teacher-device-open,.skyroom-room-card .teacher-device-open{min-height:44px;border:1px solid #9b1822;border-radius:10px;padding:9px 14px;background:#fff;color:#9b1822;font:inherit;cursor:pointer}.teacher-device-target{padding:12px 16px;background:#eef6ff;color:#244766;border:1px solid #b8d1ea;border-radius:12px;margin:16px 0;line-height:2}@media(max-width:600px){.teacher-device-backdrop{padding:10px}.teacher-device-dialog{max-height:94dvh}.teacher-device-dialog header,.teacher-device-dialog footer{padding:12px 15px}.teacher-device-body{padding:15px}.teacher-connection-settings{padding:15px}.teacher-connection-settings select{font-size:16px}}@media(prefers-reduced-motion:reduce){.teacher-device-dialog{scroll-behavior:auto}}

/* Exercise content uses only the viewport left below the current notice bars. */
#chat-app-content:has(> .member-app-shell > .member-shell-content > .ce-root){display:flex;flex-direction:column;height:var(--app-visual-viewport-height,100dvh);min-height:0;overflow:hidden}
#chat-app-content:has(> .member-app-shell > .member-shell-content > .ce-root)>:not(.member-app-shell){flex:0 0 auto}
#chat-app-content:has(> .member-app-shell > .member-shell-content > .ce-root)>.member-app-shell{flex:1 1 0%;height:auto;min-height:0}
