/* Task03 / 630: screen-first teaching room; Radio palette and canonical menu. */
.room605.room630{--ink:#f7f3ff;--soft:#c9bfe6;--gold:#ffcf5a;--line:#403652;background:radial-gradient(ellipse at top left,#42235a60,transparent 60%),#140f24;color:var(--ink);padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
.room630 [hidden]{display:none!important}.room630 button,.room630 a{touch-action:manipulation}.room630 button:focus-visible,.room630 a:focus-visible,.room630 textarea:focus-visible{outline:3px solid #ffcf5a;outline-offset:3px}
.room605.room630 .room605-head{padding:14px 22px;background:#1d1636;border-bottom:1px solid var(--line);gap:12px}
.room630 .room605-eyebrow{color:var(--gold);letter-spacing:.14em}.room630 .room605-head h1{font:750 21px/1.2 system-ui;margin:3px 0 0}
.room630 .room605-head nav{flex-wrap:wrap}.room630 .room605-head a,.room630 button,.room630 .room630-tools summary{border:1px solid var(--line);background:#ffffff09;color:var(--ink);font-size:13px;border-radius:999px;min-height:44px;padding:10px 14px;text-decoration:none}
.room630 .room605-head a.room630-primary{background:linear-gradient(135deg,#ffcf5a,#ff7a6b);color:#1b0f2a;border:0;font-weight:800}
.room630 .room630-main{max-width:1500px;margin:auto;padding:16px 20px}
.room630-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start}
.room630-workspace.has-drawer{grid-template-columns:minmax(0,1fr) 350px}
.room630-stage{min-width:0}
.room605.room630.flat605 .room605-scene{height:clamp(260px,calc(100dvh - 410px),720px);min-height:280px;border-radius:18px;border:1px solid #756047;background:#171126;overflow:hidden}
.room605.room630.flat605 .room605-screen{inset:0!important;left:0!important;top:0!important;width:100%!important;height:100%!important;border-radius:17px;box-shadow:none;background:#171126;color:#f7f3ff}
.room630 #empty605{background:radial-gradient(ellipse at top,#34234d,#1b142c);color:#f7f3ff}
.room630 #empty605 h2{font:750 clamp(22px,3vw,38px)/1.2 system-ui}.room630 #empty605 p{font-size:14px;color:#c9bfe6}.room630 .room605-kicker{color:#ffcf5a;font-size:10px}
.room630 .room605-panel{margin-top:12px;border:1px solid var(--line);border-radius:16px;padding:14px 16px;background:#231b40}
.room630 .room605-meta{gap:10px;align-items:flex-start}.room630 .room605-meta strong{font:700 17px/1.35 system-ui}.room630 #badge605{background:#ffcf5a12;color:#ffe19a;border-color:#ffcf5a44;font-size:11px}
.room630 #notice605{font-size:12px;color:#c9bfe6;margin:7px 0 10px;min-height:0}
.room630 .room605-buttons{justify-content:flex-start;gap:6px}.room630 .room605-buttons button{padding:8px 13px}.room630 #count605{min-width:85px}
.room630-tools{margin-left:auto;position:relative}.room630-tools summary{cursor:pointer;list-style:none;text-align:center;font-weight:650}.room630-tools summary::after{content:' ▾'}.room630-tools[open] summary{background:#ffcf5a1a;color:#ffcf5a}
.room630-tools-row{position:absolute;right:0;bottom:calc(100% + 8px);display:flex;flex-wrap:wrap;justify-content:center;gap:6px;width:260px;padding:12px;border:1px solid #5a486f;border-radius:14px;background:#241b38;z-index:8;box-shadow:0 14px 36px #0007}
.room630 .room605-small{font-size:11px;color:#b5a7c8;text-align:left;margin:9px 0 0}
.room630-actions{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-top:12px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:#211932}
.room630-reactions,.room630-extras{display:flex;gap:6px;flex-wrap:wrap}.room630-reactions button{display:flex;align-items:center;gap:6px;font-weight:750;min-width:110px;justify-content:center}.room630-reactions strong{font-size:12px;color:#ffdf8c}
.room630-reactions button:active{background:#ffcf5a22;transform:scale(.98)}.room630-actions .room630-status{flex-basis:100%;font-size:12px;color:#c9bfe6;margin:0}.room630-status:empty{display:none}
.room630-notes{padding:16px;border:1px solid var(--line);border-radius:14px;background:#211932;margin-top:12px}.room630-notes label{display:block;font-weight:700;margin-bottom:8px}.room630-notes textarea{width:100%;resize:vertical;min-height:140px;background:#140f24;color:#f7f3ff;border:1px solid #574568;border-radius:10px;padding:12px;font:14px/1.6 system-ui}.room630-notes>div{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:8px}.room630-notes small{font-size:11px;color:#c9bfe6}
.room630-drawer{position:sticky;top:12px;height:min(78dvh,850px);border:1px solid #594568;border-radius:16px;background:#1d1636;overflow:hidden;display:flex;flex-direction:column;min-width:0}
.room630-drawer-head{display:flex;justify-content:space-between;align-items:center;padding:9px 10px 9px 14px;gap:8px;border-bottom:1px solid var(--line);flex-shrink:0}.room630-drawer-head strong{font-size:14px;color:#ffdf8c}.room630-drawer-head button{padding:5px;min-width:44px}.room630-drawer iframe{width:100%;height:100%;min-height:0;flex:1;border:0;background:#140f24}
.room630 .room630-menu{position:fixed;bottom:0;left:0;right:0;z-index:30;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;padding:7px max(10px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom,0px));background:#1b1430f5;border-top:1px solid #594568;backdrop-filter:blur(14px)}
.room630-menu button,.room630-menu a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;background:none;min-width:0;min-height:48px;padding:3px;color:#eee4ff;font:650 11px/1.2 system-ui;text-decoration:none;border-radius:12px;position:relative}
.room630-menu button>span:first-child,.room630-menu a>i{font-size:21px;font-style:normal}.room630-menu a img{width:23px;height:23px}.room630-menu [aria-current=page]{color:#ffcf5a;background:#ffcf5a0d}
.room630-menu #badge630{position:absolute;top:0;right:calc(50% - 25px);background:#ff6b89;color:#fff;font:800 9px system-ui;border-radius:9px;padding:2px 4px}
.room630-focus .room605-head,.room630-focus .room605-meta,.room630-focus #notice605,.room630-focus .room605-small{display:none}.room605.room630.room630-focus.flat605 .room605-scene{height:calc(100dvh - 210px);min-height:260px}.room630-focus .room630-main{padding-top:8px}.room630-focus .room605-panel{padding:7px 10px;margin-top:6px}.room630-focus .room630-actions{margin-top:6px;padding:6px 10px}
.room605.room630.portrait630.flat605 .room605-scene{height:74dvh;min-height:340px}
.r295-page.r630-panel{background:#140f24!important;margin:0;padding:0}
.r630-panel .r295-head,.r630-panel #r295-listen,.r630-panel #r295-tabs,.r630-panel #r295-mini,.r630-panel .r295-foot,.r630-panel #r295-programme,.r630-panel #r616-audience,.r630-panel .p605-pill,.r630-panel .r295-skip,.r630-panel .r295-counts,.r630-panel .r370-layer,.r630-panel #r370{display:none!important}
.r630-panel .r295-main{padding:0 8px!important;max-width:none!important;margin:0!important}.r630-panel .r295-grid:not([hidden]){display:block!important}.r630-panel .r295-chat,.r630-panel .r318-panel{display:none!important;margin:0!important;border-radius:0!important;border:0!important;box-shadow:none!important;background:transparent!important;padding:8px!important;max-width:none!important}
.r630-panel .r295-chat.on{display:flex!important;flex-direction:column;height:100dvh;min-height:280px;position:static!important;max-height:none!important}.r630-panel .r318-panel.on{display:block!important}
.r630-panel .r295-chathead{flex-shrink:0}.r630-panel .r295-chathead h2{font-size:15px;margin:4px 0}.r630-panel #r295-chatcount{display:none!important}
.r630-panel .r295-log{flex:1;min-height:100px;height:auto!important;max-height:none!important;padding:5px 2px;overscroll-behavior:contain;scrollbar-width:thin}
.r630-panel .r295-compose{flex-shrink:0;padding-bottom:10px!important}.r630-panel .r295-compose textarea{font-size:14px}.r630-panel .r295-compose p{font-size:10px}.r630-panel .r295-msg{padding:8px 0}.r630-panel .r295-text{font-size:13px;line-height:1.5}.r630-panel .r295-who{font-size:11px}.r630-panel .r295-av{width:25px;height:25px;font-size:12px}.r630-panel .r370-chatbar{display:none!important}
.r630-panel #r295-boot{margin:20px;font-size:13px}.r630-panel a{overflow-wrap:anywhere}
.r295-page .r295-controls>.p605-pill{order:0;flex:0 0 100%;width:100%;max-width:none;margin:2px 0 0;padding:11px 16px;background:linear-gradient(135deg,#ffcf5a,#ff7a6b);border:0;color:#1b0f2a;font-weight:800;min-height:46px}
.r295-page .p605-dialog{border-color:#685082;background:#140f24}.r295-page .p605-bar{background:#211733;color:#e8ddf7}.r295-page .p605-close{background:#38264d;border-color:#705087;color:#ffe09b}
@media(max-width:850px){.room630-workspace.has-drawer{grid-template-columns:minmax(0,1fr)}.room630-drawer{position:fixed;top:auto;left:8px;right:8px;bottom:calc(74px + env(safe-area-inset-bottom,0px));height:60dvh;max-height:640px;z-index:25;box-shadow:0 -18px 60px #0009;border:1px solid #79608b}.room630 .room605-head{padding:12px}.room630 .room630-main{padding:10px}.room630 .room605-head h1{font-size:18px}.room630 .room605-head nav{gap:5px}.room630 .room605-head a{padding:8px 10px;font-size:12px}.room630 .room605-meta strong{font-size:15px}.room630 .room630-actions{padding:9px}.room630 .room630-extras button{font-size:12px;padding:8px 11px}.room630 .room630-reactions button{min-width:100px;padding:8px 10px}.room605.room630.flat605 .room605-scene{height:55vw;min-height:215px;max-height:62dvh}.room605.room630.portrait630.flat605 .room605-scene{height:72dvh;max-height:800px;min-height:340px}.room630 .room605-panel{padding:11px}.room630 .room605-buttons{gap:5px}.room630 .room630-menu{padding-left:4px;padding-right:4px}.room630 .room605-eyebrow{font-size:9px}.room630 .room630-tools-row{width:245px}}
@media(prefers-reduced-motion:reduce){.room630 *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.r630-panel #radio295>:not(.r295-grid):not(#r295-boot){display:none!important}

.room630 .room605-small{display:none}

.r295-page .r295-vizrow>.p605-pill{order:0;flex:0 0 100%;width:100%;max-width:none;margin:6px 0;padding:11px 16px;background:linear-gradient(135deg,#ffcf5a,#ff7a6b);border:0;color:#1b0f2a;font-weight:800;min-height:46px}

/* The existing universal Radio panel remains mounted below the slides. */
.room630-inline-chat .room630-workspace,.room630-inline-chat .room630-workspace.has-drawer{display:block}
.room630-inline-chat .room630-drawer{position:static;inset:auto;height:clamp(390px,48dvh,560px);max-height:none;width:100%;margin-top:14px;z-index:auto;box-shadow:none}
.room630-inline-chat .room630-drawer-head{height:auto;min-height:48px}
.room630-inline-chat #radioframe630{height:calc(100% - 48px)}
.room630-inline-chat.room630-focus .room630-drawer{display:none}
@media(max-width:850px){.room630-inline-chat .room630-drawer{position:static;inset:auto;width:100%;height:440px;max-height:65dvh;min-height:340px}}
