.native-shared-room{display:grid;grid-template-columns:minmax(0,2fr) minmax(230px,1fr);gap:12px;position:relative;background:#fff8ee;min-height:420px}.native-shared-room #native-media{min-width:0;overflow:hidden}.native-shared-side{display:flex;flex-direction:column;min-height:0;max-height:65vh;background:#fffdf7;border:1px solid #d4c8b7;padding:12px;border-radius:10px}.native-shared-side h3{margin:0 0 8px}.native-shared-feedback{font-size:12px;color:#a43f32}.native-shared-feed{flex:1;min-height:130px;overflow:auto;overflow-wrap:anywhere;font-size:14px;line-height:1.55}.native-shared-message{margin:4px 0}.native-shared-message button{padding:0 5px;float:right}.native-shared-compose{display:flex;gap:5px;align-items:center}.native-shared-compose input{min-width:0;flex:1;margin:0;height:36px}.native-shared-compose button{height:36px;padding:2px 8px}.native-shared-reactions{display:flex;gap:4px;flex-wrap:wrap}.native-shared-reactions button{border:0;background:transparent;padding:5px;font-size:20px;box-shadow:none}.native-shared-tools{grid-column:1/-1;display:flex;gap:6px;flex-wrap:wrap;align-items:center}.native-shared-tools button{padding:5px 9px}.native-shared-live-status{grid-column:1/-1}.native-shared-ink,.native-shared-floats{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.native-shared-ink.is-drawing{pointer-events:auto;touch-action:none}.native-shared-float{position:absolute;right:12%;bottom:15%;font-size:28px;color:white;animation:native-reaction 3.5s forwards;text-shadow:0 1px 3px #222}.native-shared-choice{display:block;width:100%;margin:5px 0}.native-shared-side details{max-height:160px;overflow:auto}.native-poll-form input,.native-poll-form textarea,.native-poll-select{width:100%;font-size:13px}.native-shared-room:is(:fullscreen,.native-shared-expanded),.native-shared-expanded{width:100%;height:100dvh;padding:12px;background:#202124;color:white}.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-side,.native-shared-expanded .native-shared-side{color:#272724;max-height:85vh}.native-shared-chat-hidden .native-shared-side{display:none}.native-shared-chat-hidden{grid-template-columns:1fr}.native-shared-room:is(:fullscreen,.native-shared-expanded) #native-media video{max-height:80vh!important}@keyframes native-reaction{to{transform:translateY(-160px);opacity:0}}@media(prefers-reduced-motion:reduce){.native-shared-float{animation:none}}@media(max-width:650px){.native-shared-room{grid-template-columns:1fr}.native-shared-side{max-height:320px}.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-side{position:absolute;bottom:55px;left:8px;right:8px;background:transparent;color:white;border:0;max-height:210px}.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-message{display:none}.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-message:nth-last-child(-n+3){display:block}.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-side h3{display:none}}@media(orientation:landscape) and (max-height:550px){.native-shared-room:is(:fullscreen,.native-shared-expanded){grid-template-columns:minmax(0,2fr) minmax(200px,1fr)}.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-side{position:static;background:#fffdf7;color:#272724;max-height:75vh}}

.native-shared-room [hidden]{display:none!important}
#modal:has(.native-shared-room){width:min(1180px,96vw);max-width:96vw}.native-shared-side{box-sizing:border-box}.native-shared-tools button[title]{background:transparent;border:0;box-shadow:none;font-size:22px}.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-tools{position:absolute;bottom:8px;left:8px;right:8px}.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-tools button{background:#fff9;color:#272724}

.native-shared-expanded{position:fixed!important;inset:0!important;z-index:9999;box-sizing:border-box;overflow:hidden}
.native-shared-room:is(:fullscreen,.native-shared-expanded){grid-template-rows:24px minmax(0,1fr) 45px;box-sizing:border-box;min-height:0}
.native-shared-room:is(:fullscreen,.native-shared-expanded) #native-media{min-height:0!important}
.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-tools>b{display:none}
@media(max-width:650px){.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-side{background:transparent!important;box-shadow:none!important;padding:5px;max-height:210px;min-height:0}.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-feed{min-height:0;max-height:85px}.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-reactions button{background:#fff6!important;box-shadow:none!important;padding:2px;font-size:18px}.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-tools{justify-content:space-between}.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-tools button{box-shadow:none!important;border:0!important}.native-shared-room:is(:fullscreen,.native-shared-expanded) input{height:30px!important;font-size:12px}.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-compose button{height:30px!important;padding:2px 7px}}
@media(orientation:landscape) and (max-height:550px){.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-side{position:static;grid-column:2;grid-row:2;background:#fffdf7!important;color:#272724;border:1px solid #d4c8b7;max-height:100%;height:100%}.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-feed{max-height:none;min-height:0}.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-message{display:block}.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-side h3{display:block}}

/* iPhone Safari viewport fallback must resize the top-layer dialog too. */
#modal.native-classroom-viewport{position:fixed!important;inset:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;overflow:hidden!important;transform:none!important}
#modal.native-classroom-viewport #modalbody{margin:0!important;padding:0!important;max-height:none!important;overflow:visible!important}
#modal.native-classroom-viewport>.actions{display:none!important}
.native-shared-room:is(:fullscreen,.native-shared-expanded){padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);gap:8px}
.native-shared-room:is(:fullscreen,.native-shared-expanded) #native-media{grid-column:1;grid-row:2;height:100%;position:relative;display:flex;align-items:center;justify-content:center}
.native-shared-room:is(:fullscreen,.native-shared-expanded) #native-media video{width:100%!important;height:100%!important;max-height:100%!important;object-fit:contain}
.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-side{grid-column:2;grid-row:2;overflow:hidden;min-width:0}
.native-shared-room .native-shared-reactions button{box-shadow:none!important;border:0!important;min-width:0}
.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-tools button[title]{background:transparent!important;border:0!important;box-shadow:none!important;color:white}
.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-tools button[title="Toggle chat"]{margin-left:auto}
.native-shared-room .native-shared-compose input{box-sizing:border-box;min-height:0!important}
.native-shared-room .native-shared-compose button{box-shadow:none!important;flex:0 0 34px;min-width:0}
@media(max-width:650px) and (orientation:portrait){
.native-shared-room:is(:fullscreen,.native-shared-expanded){grid-template-columns:minmax(0,1fr)}
.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-side{grid-column:1;bottom:45px;max-height:190px}
.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-side>input{flex:0 0 28px;margin:2px 0;box-sizing:border-box;min-width:0;width:100%}
.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-reactions{flex-wrap:nowrap}
}
@media(orientation:landscape) and (max-height:550px){
.native-shared-room:is(:fullscreen,.native-shared-expanded){grid-template-columns:minmax(0,1fr) minmax(220px,32%)}
.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-side{position:static;grid-column:2;grid-row:2;padding:8px;max-height:100%;height:100%;background:#fffdf7!important}
.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-side h3{font-size:16px;margin:0 0 4px}
.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-feed{flex:1;min-height:0;font-size:13px;line-height:1.35}
.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-reactions{flex-wrap:nowrap}
.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-reactions button{font-size:18px;padding:2px}
.native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-side>input{height:28px;min-height:0;box-sizing:border-box;margin:2px 0}
}

/* Live classroom is an in-page destination, not a modal. */
body.native-classroom-page-open .layout{display:block;max-width:1440px;margin:auto}
body.native-classroom-page-open .layout>aside{display:none}
#native-room-page{width:100%;box-sizing:border-box;padding:16px;background:#fff8ee}
#native-room-page>h2{font-size:24px;margin:0 0 8px;color:#87472c}
#native-room-page .native-shared-room{min-height:480px;grid-template-rows:24px minmax(0,1fr) auto;grid-template-columns:minmax(0,2fr) minmax(270px,1fr);padding:12px;border:2px solid #d8c5aa;border-radius:14px}
#native-room-page #native-media{grid-column:1;grid-row:2;min-height:380px;border-radius:10px;display:flex;align-items:center;justify-content:center}
#native-room-page .native-shared-side{grid-column:2;grid-row:2;height:100%;max-height:65vh;border:2px solid #d8c5aa;background:#fffdf7;border-radius:12px;padding:12px;overflow:hidden;min-width:0}
#native-room-page .native-shared-side h3{color:#87472c;font-size:18px}
#native-room-page .native-shared-feed{min-height:0}
#native-room-page .native-shared-compose{flex-shrink:0}
#native-room-page .native-shared-compose input{font-size:16px}
#native-room-page .native-shared-tools>b{display:none}
#native-room-page .native-shared-tools button[title="Toggle chat"]{margin-left:auto}
#native-room-page .native-shared-tools button[title]{box-shadow:none!important;border:0!important;background:transparent!important}
#native-room-page .native-shared-reactions button{font-size:22px;background:transparent!important;box-shadow:none!important}
#native-room-page .native-diagnostics{font-size:12px;color:#746653}
#native-room-page .native-shared-room:is(:fullscreen,.native-shared-expanded){border:0;border-radius:0;padding:8px;min-height:0;grid-template-rows:24px minmax(0,1fr) 40px;height:100dvh}
#native-room-page .native-shared-room:is(:fullscreen,.native-shared-expanded) #native-media{min-height:0;height:100%}
#native-room-page .native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-side{max-height:100%;min-height:0}
@media(max-width:650px) and (orientation:portrait){
#native-room-page{padding:8px}
#native-room-page .native-shared-room{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto;min-height:0;padding:8px}
#native-room-page #native-media{grid-row:2;min-height:200px;aspect-ratio:16/9}
#native-room-page .native-shared-side{grid-column:1;grid-row:3;height:320px;max-height:45dvh}
#native-room-page .native-shared-room:is(:fullscreen,.native-shared-expanded){grid-template-rows:24px minmax(0,1fr) 40px}
#native-room-page .native-shared-room:is(:fullscreen,.native-shared-expanded) #native-media{aspect-ratio:auto}
#native-room-page .native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-side{position:absolute;bottom:45px;left:8px;right:8px;height:auto;max-height:190px;border:0;padding:4px;background:transparent!important;color:white}
}
@media(orientation:landscape) and (max-height:550px){
#native-room-page .native-shared-room:is(:fullscreen,.native-shared-expanded){grid-template-columns:minmax(0,1fr) minmax(220px,32%)}
#native-room-page .native-shared-room:is(:fullscreen,.native-shared-expanded) .native-shared-side{position:static;grid-column:2;grid-row:2;height:100%;background:#fffdf7!important;padding:8px}
}
#native-room-page #native-media{width:100%;box-sizing:border-box;min-width:0}
#native-room-page #native-media video{min-width:0;max-width:100%;display:block}
@media(max-width:650px) and (orientation:portrait){#native-room-page #native-media{aspect-ratio:auto;min-height:200px!important}#native-room-page .native-shared-room:is(:fullscreen,.native-shared-expanded) #native-media{min-height:0!important}}

/* Match the site cards and keep guest composition controls separate. */
#native-room-page .native-shared-side{border:2px solid #302d28;border-top:4px solid #efaa67;border-radius:0;background:#fffaf0;box-shadow:3px 3px 0 #cbbca5;padding:14px;gap:8px}
#native-room-page .native-shared-side h3{font-size:18px;line-height:1.3;color:#302d28;margin:0 0 3px}
#native-room-page .native-shared-side>input,#native-room-page .native-shared-compose input{flex-shrink:0;box-sizing:border-box;height:34px!important;min-height:34px!important;margin:0!important;border:1px solid #b7ab98;border-radius:6px;background:#fffdf8;padding:6px 9px;line-height:20px;font-size:16px!important;width:100%;min-width:0}
#native-room-page .native-shared-side input::placeholder{font-size:12px;color:#8c857b}
#native-room-page .native-shared-compose{gap:8px;margin:0!important;align-items:center;flex:0 0 34px}
#native-room-page .native-shared-compose button{height:34px!important;min-height:34px;flex:0 0 34px;padding:0;font-size:21px;line-height:1;border:1px solid #b7ab98;border-radius:6px;background:#ffe7c9;box-shadow:none}
#native-room-page .native-shared-tools{position:relative;z-index:3;pointer-events:auto}
#native-room-page .native-shared-room.native-shared-expanded .native-shared-tools{position:absolute}
#native-room-page .native-shared-room.native-shared-chat-hidden{grid-template-columns:minmax(0,1fr)}
#native-room-page .native-shared-room.native-shared-chat-hidden .native-shared-side{display:none!important}
#native-room-page .native-shared-room.native-shared-expanded .native-shared-side{box-shadow:none}
@media(max-width:650px) and (orientation:portrait){#native-room-page .native-shared-room.native-shared-expanded .native-shared-side{border:0;gap:5px;box-shadow:none;background:transparent!important}#native-room-page .native-shared-room.native-shared-expanded .native-shared-side>input,#native-room-page .native-shared-room.native-shared-expanded .native-shared-compose input{height:30px!important;min-height:30px!important}#native-room-page .native-shared-room.native-shared-expanded .native-shared-compose{flex-basis:30px}#native-room-page .native-shared-room.native-shared-expanded .native-shared-compose button{height:30px!important;min-height:30px}}

/* Mobile landscape uses the same bottom overlay as portrait. */
@media(orientation:landscape) and (max-height:550px) and (pointer:coarse), (orientation:landscape) and (max-height:550px) and (max-width:1000px){
#native-room-page .native-shared-room.native-shared-expanded{grid-template-columns:minmax(0,1fr);grid-template-rows:24px minmax(0,1fr) 40px}
#native-room-page .native-shared-room.native-shared-expanded #native-media{grid-column:1;grid-row:2;width:100%;height:100%;min-height:0!important}
#native-room-page .native-shared-room.native-shared-expanded .native-shared-side{position:absolute;left:50px;right:50px;bottom:max(44px,env(safe-area-inset-bottom));height:auto;max-height:180px;grid-column:auto;grid-row:auto;background:transparent!important;color:white;border:0;box-shadow:none;padding:0;gap:5px}
#native-room-page .native-shared-room.native-shared-expanded .native-shared-side h3{display:none}
#native-room-page .native-shared-room.native-shared-expanded .native-shared-feed{flex:0 1 auto;min-height:0;max-height:64px;overflow:auto;font-size:12px;line-height:1.35;text-shadow:0 1px 3px #000}
#native-room-page .native-shared-room.native-shared-expanded .native-shared-message{display:none}
#native-room-page .native-shared-room.native-shared-expanded .native-shared-message:nth-last-child(-n+3){display:block;margin:2px 0}
#native-room-page .native-shared-room.native-shared-expanded .native-shared-side>input,#native-room-page .native-shared-room.native-shared-expanded .native-shared-compose input{height:30px!important;min-height:30px!important}
#native-room-page .native-shared-room.native-shared-expanded .native-shared-compose{flex-basis:30px}
#native-room-page .native-shared-room.native-shared-expanded .native-shared-compose button{height:30px!important;min-height:30px}
#native-room-page .native-shared-room.native-shared-expanded .native-shared-reactions{flex-wrap:nowrap}
#native-room-page .native-shared-room.native-shared-expanded .native-shared-reactions button{font-size:18px;padding:1px 4px;background:#fff4!important;border-radius:4px;color:white}
#native-room-page .native-shared-room.native-shared-expanded.native-shared-poll-active .native-shared-side{max-height:calc(100dvh - 90px)}
#native-room-page .native-shared-room.native-shared-expanded.native-shared-poll-active .native-shared-feed{max-height:calc(100dvh - 125px);overflow:auto;padding:8px;background:#fffaf0e8;color:#302d28;text-shadow:none;border-radius:8px}
}
@media(max-width:650px) and (orientation:portrait){#native-room-page .native-shared-room.native-shared-expanded.native-shared-poll-active .native-shared-side{max-height:50dvh}#native-room-page .native-shared-room.native-shared-expanded.native-shared-poll-active .native-shared-feed{max-height:calc(50dvh - 40px);padding:8px;background:#fffaf0e8;color:#302d28;text-shadow:none;border-radius:8px}}

/* Compact emoji picker beside chat; richer cards only outside expanded video. */
#native-room-page .native-shared-tools button[title="Choose emoji"]{margin-left:auto}
#native-room-page .native-shared-tools button[title="Toggle chat"]{margin-left:0}
#native-room-page .native-shared-reactions{position:absolute;right:12px;bottom:54px;z-index:8;display:flex;gap:5px;padding:7px;border:1px solid #b7ab98;border-radius:10px;background:#fffaf0f2;box-shadow:0 3px 12px #0003;flex-wrap:nowrap;max-width:calc(100% - 24px);box-sizing:border-box}
#native-room-page .native-shared-room .native-shared-reactions button{background:transparent!important;color:#302d28;padding:4px;font-size:22px;line-height:1.2}
#native-room-page .native-shared-room:not(.native-shared-expanded){grid-template-rows:24px minmax(420px,58vh) auto}
#native-room-page .native-shared-room:not(.native-shared-expanded) .native-shared-side{height:100%;max-height:none;min-height:0;padding:12px;gap:10px}
#native-room-page .native-shared-room:not(.native-shared-expanded) #native-media{height:100%;min-height:0}
#native-room-page .native-shared-room:not(.native-shared-expanded) .native-shared-side h3{align-self:flex-start;padding:7px 13px;border:1px solid #dfb67d;background:#ffe7c4;border-radius:7px;color:#6f462a;font-size:16px;box-shadow:2px 2px 0 #d8c3a3}
#native-room-page .native-shared-room:not(.native-shared-expanded) .native-shared-feed{padding:8px;background:#f5eddf;border:1px solid #d8c9b1;border-radius:8px;scrollbar-gutter:stable;overflow-y:scroll;scrollbar-width:auto;scrollbar-color:#786b57 #e7ddcb}
#native-room-page .native-shared-room:not(.native-shared-expanded) .native-shared-message{padding:8px 10px;margin:0 0 8px;border:1px solid #ddd0bb;border-radius:8px;background:#fffdf8;font-size:13px;line-height:1.5}
.native-shared-feed::-webkit-scrollbar{width:10px}.native-shared-feed::-webkit-scrollbar-track{background:#e7ddcb;border-radius:8px}.native-shared-feed::-webkit-scrollbar-thumb{background:#786b57;border:2px solid #e7ddcb;border-radius:8px}
@media(max-width:650px) and (orientation:portrait){#native-room-page .native-shared-room:not(.native-shared-expanded){grid-template-rows:24px auto 390px auto}#native-room-page .native-shared-room:not(.native-shared-expanded) .native-shared-side{height:390px;max-height:none}#native-room-page .native-shared-room:not(.native-shared-expanded) #native-media{height:210px}}
@media(orientation:landscape) and (max-height:550px){#native-room-page .native-shared-room:not(.native-shared-expanded){grid-template-rows:24px 380px auto}#native-room-page .native-shared-room:not(.native-shared-expanded) .native-shared-side,#native-room-page .native-shared-room:not(.native-shared-expanded) #native-media{height:380px;max-height:none}}
/* One shared white message area, not individual message bubbles. */
#native-room-page .native-shared-room:not(.native-shared-expanded) .native-shared-feed{background:#fff;color:#454545;border:1px solid #c5b9a7;border-radius:8px;padding:10px;line-height:1.55}
#native-room-page .native-shared-room:not(.native-shared-expanded) .native-shared-message{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;margin:4px 0;color:#454545;font-size:13px;line-height:1.55}

/* Clear hierarchy for the real schedule cards on desktop and mobile. */
.class-schedule-grid{gap:18px!important;align-items:stretch}
.class-schedule-note{font:13px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#786e61;margin:10px 0 20px}
.home-live .class-card{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;background:#fffdf8;border:1px solid #dacdbb;border-radius:12px;box-shadow:0 3px 9px #7d664410;padding:20px!important;display:flex;flex-direction:column;gap:0;min-width:0}
.home-live .class-card.class-card-public{border-top:4px solid #73aeb9}
.home-live .class-card .date{margin:0 0 10px!important;color:#756854;font-size:13px!important;font-weight:600;line-height:1.6!important}
.home-live .class-card h3.class-card-topic{font-family:inherit!important;font-size:21px!important;font-weight:650;line-height:1.35!important;letter-spacing:-.2px;color:#365d72;margin:0 0 16px!important}
.home-live .class-card-public h3.class-card-topic{color:#276b79}
.class-card-meta{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-bottom:16px}
.home-live .class-card-meta .tag{display:inline-block;font:600 11px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;border:0;box-shadow:none;margin:0!important;padding:4px 9px;border-radius:6px;background:#ede8dd;color:#665c4e}
.home-live .class-card-meta .class-card-status{background:#f8eacb;color:#826025}
.home-live .class-card-meta .class-card-free{background:#dceef1;color:#276b79}
.home-live .class-card .class-card-description{margin:0 0 14px!important;font-size:14px!important;line-height:1.7!important;color:#504e48;white-space:pre-wrap}
.home-live .class-card .class-card-access{font-size:12px!important;line-height:1.6!important;color:#6d817f;margin:0 0 18px!important}
.home-live .class-card .class-card-actions{margin-top:auto;padding-top:14px;border-top:1px solid #e9e0d2;gap:10px;align-items:center}
@media(max-width:650px){.home-live .class-card{padding:17px!important}.home-live .class-card h3.class-card-topic{font-size:19px!important;line-height:1.4!important;margin-bottom:14px!important}.home-live .class-card .date{font-size:12px!important}.home-live .class-card .class-card-description{font-size:13px!important;line-height:1.75!important}.class-schedule-grid{gap:16px!important}}

/* Cooler room palette, expanded chat shared across desktop and mobile. */
#native-room-page{background:#f3f7f6}
#native-room-page>h2{color:#3d6475}
#native-room-page .native-shared-room:not(.native-shared-expanded){background:#f8faf9;border-color:#c5d5d5}
#native-room-page .native-shared-room:not(.native-shared-expanded) .native-shared-side{background:#f2f6f8;border:1px solid #b8cbce;border-top:3px solid #7ea5b3;box-shadow:2px 3px 0 #d8e3e5;border-radius:10px}
#native-room-page .native-shared-room:not(.native-shared-expanded) .native-shared-feed{background:#e9f2ef;border-color:#bed2cc;scrollbar-color:#607e80 #d8e6e2}
#native-room-page .native-shared-compose button{background:#dcebf2;border-color:#a9c0cb;color:#395c70}
#native-room-page .native-shared-side>input,#native-room-page .native-shared-compose input{background:#f8fbfa;border-color:#b3c8c6}
#native-room-page .native-shared-reactions{background:#edf5f7f2;border-color:#abc5cb}
#native-room-page .native-shared-feed::-webkit-scrollbar-track{background:#d8e6e2}
#native-room-page .native-shared-feed::-webkit-scrollbar-thumb{background:#607e80;border-color:#d8e6e2}
#native-room-page .native-shared-room.native-shared-expanded{grid-template-columns:minmax(0,1fr);grid-template-rows:24px minmax(0,1fr) 40px}
#native-room-page .native-shared-room.native-shared-expanded #native-media{grid-column:1;grid-row:2;width:100%;height:100%}
#native-room-page .native-shared-room.native-shared-expanded .native-shared-side{position:absolute;left:50%;right:auto;bottom:48px;transform:translateX(-50%);width:min(760px,calc(100% - 110px));height:auto;max-height:310px;grid-column:auto;grid-row:auto;padding:0;background:transparent!important;color:#fff;border:0;border-radius:0;box-shadow:none;gap:6px}
#native-room-page .native-shared-room.native-shared-expanded .native-shared-feed{flex:0 1 auto;min-height:0;max-height:210px;overflow:auto;background:transparent;color:#fff;border:0;padding:0;font-size:14px;line-height:1.5;text-shadow:0 1px 3px #000;scrollbar-gutter:auto}
#native-room-page .native-shared-room.native-shared-expanded .native-shared-message{display:none;background:transparent;border:0;box-shadow:none;padding:0;margin:2px 0;color:#fff}
#native-room-page .native-shared-room.native-shared-expanded .native-shared-message:nth-last-child(-n+7){display:block}
#native-room-page .native-shared-room.native-shared-expanded.native-shared-poll-active .native-shared-side{max-height:55dvh}
#native-room-page .native-shared-room.native-shared-expanded.native-shared-poll-active .native-shared-feed{max-height:calc(55dvh - 45px);padding:10px;background:#edf5f2ed;color:#354b51;text-shadow:none;border-radius:8px}
#native-room-page .native-shared-room.native-shared-expanded.native-shared-teacher .native-shared-side{bottom:100px}
@media(max-width:650px),(max-width:1000px) and (pointer:coarse),(max-width:1000px) and (orientation:landscape) and (max-height:550px){
#native-room-page .native-shared-room.native-shared-expanded .native-shared-side{left:40px;right:40px;bottom:44px;transform:none;width:auto;max-height:190px}
#native-room-page .native-shared-room.native-shared-expanded .native-shared-feed{max-height:85px;font-size:12px;line-height:1.35}
#native-room-page .native-shared-room.native-shared-expanded .native-shared-message:nth-last-child(-n+7){display:none}
#native-room-page .native-shared-room.native-shared-expanded .native-shared-message:nth-last-child(-n+3){display:block}
#native-room-page .native-shared-room.native-shared-expanded.native-shared-poll-active .native-shared-side{max-height:calc(100dvh - 90px)}
#native-room-page .native-shared-room.native-shared-expanded.native-shared-poll-active .native-shared-feed{max-height:calc(100dvh - 130px)}
}

/* Requested warm accents, keeping the approved room layout. */
#native-room-page .native-shared-room:not(.native-shared-expanded){border:2px solid #f3a551;background:#fffaf3}
#native-room-page .native-shared-room:not(.native-shared-expanded) .native-shared-side{border:1px solid #e7cba6;border-top:3px solid #ffb75e;background:#fff7eb;box-shadow:2px 3px 0 #f0dcc0}
#native-room-page .native-shared-room:not(.native-shared-expanded) .native-shared-feed{background:#fff0d8;border-color:#e8cba2}
#native-room-page .native-shared-feedback{font-size:12px;line-height:1.4;color:#874b22;margin:0;min-height:0}
#native-room-page .native-shared-feedback:empty{display:none}
#native-room-page input[aria-invalid="true"]{border:2px solid #c55c40!important}
#native-room-page .native-shared-room.native-shared-expanded .native-shared-feedback{color:#ffe0b4;text-shadow:0 1px 2px #000}

#native-room-page .native-shared-room:not(.native-shared-expanded) .native-shared-feed{background:#fff8ec}

/* Online audience badge, controlled by the teacher. */
#native-room-page .native-shared-side{position:relative}
#native-room-page .native-shared-viewers{align-self:flex-end;flex:0 0 auto;display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:600;line-height:1.4;color:#775536;background:#fff5e5;border:1px solid #edd6b4;border-radius:12px;padding:3px 8px}
#native-room-page .native-shared-room.native-shared-expanded .native-shared-viewers{background:#20212466;color:#fff;border-color:#ffffff40;text-shadow:0 1px 2px #000}

/* CantoKingho bright orange edges with clean white accents. */
#native-room-page{background:#fffaf3}
#native-room-page>h2{color:#b95a00}
#native-room-page .native-shared-room:not(.native-shared-expanded){border:2px solid #ff8a00;background:#fff;box-shadow:0 4px 15px #d8760010}
#native-room-page .native-shared-room:not(.native-shared-expanded) .native-shared-side{border:1px solid #ff8a00;border-top:4px solid #ff8a00;background:#fff;box-shadow:none}
#native-room-page .native-shared-room:not(.native-shared-expanded) .native-shared-feed{background:#fff8ec;border-color:#f0d8b9}
#native-room-page .native-shared-compose button{background:#ff8a00;border-color:#ff8a00;color:#fff}
#native-room-page .native-shared-side>input,#native-room-page .native-shared-compose input{background:#fff;border-color:#dbcbb8}
#native-room-page .native-shared-viewers{background:#fff;border-color:#ffb25a;color:#a95600}
#native-room-page .native-shared-reactions{background:#fffffff2;border-color:#ff8a00}
.teacher-class-grid{gap:20px!important;align-items:stretch}
.class-management .teacher-class-card{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#fff;border:1px solid #ff8a00;border-top:4px solid #ff8a00;border-radius:14px;padding:20px;box-shadow:0 4px 12px #c46d0010;display:flex;flex-direction:column;min-width:0}
.teacher-class-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
.class-management .teacher-class-card .tag{font:600 11px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;border:0;box-shadow:none;padding:4px 9px;border-radius:6px;margin:0}
.teacher-class-top .teacher-published{background:#fff0d9;color:#a65700}.teacher-class-top .teacher-class-state{background:#f0f3f3;color:#667577}
.teacher-class-date{margin:0 0 13px;color:#995b18;font-size:13px;font-weight:650;line-height:1.6}.teacher-class-date small{display:block;color:#8b8173;font-size:11px;font-weight:400;margin-top:3px}
.class-management .teacher-class-card .teacher-class-topic{font-family:inherit;font-size:21px;font-weight:650;line-height:1.35;letter-spacing:-.2px;color:#304b58;margin:0 0 14px}
.teacher-class-meta{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px}.teacher-class-meta .tag{background:#f2eee8;color:#6c6358}.teacher-class-meta .teacher-class-access{background:#e4f1f2;color:#326c73}
.teacher-class-description{margin:0 0 17px;color:#54514b;font-size:13px;line-height:1.75;white-space:pre-wrap}
.teacher-class-facts{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;padding:13px;background:#fff7e9;border-radius:9px;margin-bottom:15px}
.teacher-class-facts span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.4px;color:#8c7961;margin-bottom:5px}.teacher-class-facts strong{display:block;font-size:12px;font-weight:550;line-height:1.6;color:#66513b}
.teacher-class-public-note{font-size:11px;line-height:1.6;color:#748280;margin:0 0 16px}
.teacher-class-actions{margin-top:auto;padding-top:15px;border-top:1px solid #f1e7d9;display:flex;gap:10px;flex-wrap:wrap}
.class-management .teacher-class-actions button{font:600 12px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;border:1px solid #ff8a00;border-radius:7px;background:#fff;color:#a85500;padding:10px 13px;box-shadow:none}
.class-management .teacher-class-actions .teacher-class-edit{background:#ff8a00;color:#fff}
.teacher-class-card .class-danger-options{margin-top:17px;padding-top:12px;border-top:1px dashed #e4d9ca}.teacher-class-card .class-danger-options summary{font-size:11px;color:#8a8074}
@media(max-width:650px){.class-management .teacher-class-card{padding:17px}.class-management .teacher-class-card .teacher-class-topic{font-size:19px;line-height:1.4}.teacher-class-grid{gap:17px!important}.teacher-class-date{font-size:12px}.teacher-class-facts{padding:11px}}

/* Unified live controls: white signboard buttons, clear state, no old block shadows. */
#native-room-page button{font:600 13px/1.35 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;border:1.5px solid #ff8a00!important;border-radius:10px!important;background:#fff!important;color:#934c00!important;box-shadow:none!important;padding:9px 13px!important;min-height:38px;transition:background .16s,border-color .16s,transform .16s}
#native-room-page button:hover:not(:disabled){background:#fff3df!important;transform:translateY(-1px)}
#native-room-page button:focus-visible,#native-room-page select:focus-visible{outline:3px solid #ffd18a;outline-offset:3px}
#native-room-page button:disabled{opacity:.55;cursor:default;transform:none}
#native-room-page button[aria-pressed="true"]{background:#e3f5ec!important;border-color:#25865b!important;color:#185c3c!important}
#native-room-page .native-danger-control{border-color:#df6c62!important;color:#a63731!important;background:#fff7f6!important}
#native-room-page .native-teacher-tools{grid-column:1/-1;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 0 2px;border-top:1px solid #f5dec3}
#native-room-page .native-teacher-tools button{min-height:34px;padding:7px 11px!important;font-size:12px!important}
#native-room-page #native-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:18px 0 0;padding:16px;background:#fff;border:1px solid #efc58d;border-radius:14px}
#native-room-page #native-controls>button[aria-pressed="false"]{background:#fff8ed!important;border-color:#d7c6b3!important;color:#786b5c!important}
#native-room-page .native-mic-panel{display:grid;grid-template-columns:minmax(180px,300px) minmax(130px,230px);align-items:center;gap:8px 16px;flex:1 1 450px;padding-left:12px;border-left:1px solid #ecd9be}
#native-room-page .native-mic-panel label{font-size:12px;color:#655b4e;display:flex;flex-direction:column;gap:5px;grid-row:1/3}
#native-room-page .native-mic-panel select{font:500 13px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;max-width:100%!important;width:100%;min-height:36px;padding:6px 8px;border:1.5px solid #e6bc84;border-radius:8px;background:#fff;color:#354b55}
#native-room-page #native-mic-signal{font-size:12px;color:#496e5a;min-height:16px}
#native-room-page .native-mic-meter{height:30px;display:flex;align-items:flex-end;gap:3px;padding:5px 7px;border:1px solid #d4e6d9;border-radius:8px;background:#f6fbf7;box-sizing:border-box}
#native-room-page .native-mic-meter i{display:block;flex:1;height:100%;border-radius:2px;background:#dfebe3;transition:background .08s}
#native-room-page .native-mic-meter i:nth-child(3n+1){height:55%}#native-room-page .native-mic-meter i:nth-child(3n+2){height:78%}
#native-room-page .native-mic-meter i.is-lit{background:#39a777}#native-room-page .native-mic-meter i.is-lit:nth-last-child(-n+4){background:#ff9b22}
#native-room-page .native-room-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:22px;padding-top:16px;border-top:1px solid #ecdec9}
#native-room-page .native-room-footer button{background:#fff!important;border-color:#c8d6d8!important;color:#3c5863!important}
#native-room-page .native-shared-room #native-media{position:relative}
#native-room-page .native-shared-room .native-shared-tools{position:absolute!important;inset:auto 10px 10px!important;display:flex;align-items:center;gap:8px;min-height:36px;z-index:5;padding:0;pointer-events:none;grid-column:auto;grid-row:auto}
#native-room-page .native-shared-room .native-shared-tools>b{display:none}
#native-room-page .native-shared-room .native-shared-tools>button{pointer-events:auto;display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;min-height:34px;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;color:#fff!important;font-size:24px!important;line-height:1!important;box-shadow:none!important;text-shadow:0 1px 4px #000a}
#native-room-page .native-shared-room .native-shared-tools>button:hover{background:#ffffff24!important}
#native-room-page .native-shared-room .native-shared-tools>button[aria-pressed="true"]{background:#ffffff20!important;color:#fff!important;border:0!important}
#native-room-page .native-shared-room .native-shared-tools>[title="Choose emoji"]{margin-left:auto}
#native-room-page .native-shared-room .native-shared-tools>[title="Toggle chat"]{margin-left:0}
#native-room-page .native-shared-room.native-shared-expanded .native-teacher-tools{position:absolute;bottom:8px;left:12px;right:12px;padding:8px;background:#111b28b3;border:1px solid #ffffff38;border-radius:12px;z-index:7}
#native-room-page .native-shared-room.native-shared-expanded.native-shared-teacher #native-media .native-shared-tools{bottom:70px!important}
#native-room-page .native-shared-room.native-shared-expanded:not(.native-shared-teacher){grid-template-rows:24px minmax(0,1fr) 0;gap:0}
#native-room-page .native-shared-room.native-shared-expanded .native-teacher-tools button{min-height:32px}
#native-room-page .native-shared-compose button{border-radius:8px!important;background:#ff8a00!important;border-color:#ff8a00!important;color:#fff!important;padding:0!important;min-height:30px}
#native-room-page .native-shared-feed .native-shared-message button{border:0!important;min-height:0;padding:0 4px!important;border-radius:4px!important;color:#ab6d2f!important}
#native-room-page .native-shared-reactions button{border:0!important;background:transparent!important;padding:4px!important;min-height:28px}
@media(max-width:650px){#native-room-page #native-controls{padding:12px;gap:8px}#native-room-page .native-mic-panel{grid-template-columns:1fr;flex-basis:100%;padding:12px 0 0;border-left:0;border-top:1px solid #ecd9be}#native-room-page .native-mic-panel label{grid-row:auto}#native-room-page .native-room-footer{margin-top:18px}#native-room-page .native-shared-room .native-shared-tools{left:8px!important;right:8px!important;bottom:8px!important}}
@media(prefers-reduced-motion:reduce){#native-room-page button,#native-room-page .native-mic-meter i{transition:none}}

/* Fullscreen chat stays above, rather than against, the bottom icon row. */
#native-room-page .native-shared-room.native-shared-expanded .native-shared-side{bottom:calc(76px + env(safe-area-inset-bottom,0px));max-height:min(310px,calc(100dvh - 120px))}
#native-room-page .native-shared-room.native-shared-expanded.native-shared-teacher .native-shared-side{bottom:calc(136px + env(safe-area-inset-bottom,0px))}
#native-room-page .native-shared-room.native-shared-expanded .native-shared-tools>button:is(#native-sound-toggle,[title="Choose emoji"],[title="Toggle chat"]){opacity:.6;transition:opacity .16s}
#native-room-page .native-shared-room.native-shared-expanded .native-shared-tools>button:is(#native-sound-toggle,[title="Choose emoji"],[title="Toggle chat"]):is(:hover,:focus-visible,:active){opacity:1}
@media(max-width:950px) and (max-height:550px), (max-width:650px){#native-room-page .native-shared-room.native-shared-expanded .native-shared-side{bottom:calc(72px + env(safe-area-inset-bottom,0px));max-height:min(190px,calc(100dvh - 114px))}}

/* Compact landscape composer; inline video already has a visible chat panel. */
#native-room-page .native-shared-room:not(.native-shared-expanded) .native-shared-tools>[title="Toggle chat"]{display:none!important}
#native-room-page .native-shared-room:not(.native-shared-expanded) .native-shared-tools>button:is(#native-sound-toggle,[title="Choose emoji"]){opacity:.6;transition:opacity .16s}
#native-room-page .native-shared-room:not(.native-shared-expanded) .native-shared-tools>button:is(#native-sound-toggle,[title="Choose emoji"]):is(:hover,:focus-visible,:active){opacity:1}
@media(orientation:landscape) and (max-height:550px) and (max-width:950px){#native-room-page .native-shared-room.native-shared-expanded:not(.native-shared-teacher) .native-shared-side{bottom:calc(60px + env(safe-area-inset-bottom,0px));gap:3px}}

/* Landscape: composer sits between the left playback and right social icons. */
@media(orientation:landscape) and (max-height:550px) and (max-width:950px){#native-room-page .native-shared-room.native-shared-expanded:not(.native-shared-teacher) .native-shared-side{left:104px;right:104px;width:auto;transform:none;bottom:calc(18px + env(safe-area-inset-bottom,0px));gap:3px;max-height:min(190px,calc(100dvh - 64px))}}

/* Touch browsers may retain :hover after a tap; no sticky selected halo. */
@media(hover:none){#native-room-page #native-media .native-shared-tools>button{background:transparent!important;transform:none!important}#native-room-page .native-shared-room .native-shared-tools>button:is(#native-sound-toggle,[title="Choose emoji"],[title="Toggle chat"]):not(:active){opacity:.6}}

/* Students see the classroom, without teacher diagnostics or empty control cards. */
#native-room-page[data-viewer-role]:not([data-viewer-role="teacher"]) :is(#native-quality,.native-diagnostics,#native-audience){display:none!important}
#native-room-page[data-viewer-role]:not([data-viewer-role="teacher"]) #native-controls:empty{display:none!important}
#native-room-page[data-viewer-role]:not([data-viewer-role="teacher"]) .native-room-footer{border-top:0;padding-top:0;margin-top:12px}

/* Keep the live-room navigation rail inside narrow landscape viewports. */
body.native-classroom-page-open .toolbar{min-width:0;max-width:100vw}
body.native-classroom-page-open #top-nav{min-width:0;max-width:100%;flex:1 1 auto;overflow-x:auto;overscroll-behavior-x:contain}
body.native-classroom-page-open #native-room-page{min-width:0;max-width:100%}
/* Match the actual 16:9 media instead of shrinking it to 55vh on landscape phones. */
#native-room-page #native-media.native-video-stage{position:relative;aspect-ratio:16/9;width:100%;min-height:0!important;overflow:hidden;background:#111;border-radius:10px;align-self:start}
#native-room-page #native-media.native-video-stage>video{position:absolute;inset:0;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain;display:block}
#native-room-page #native-media.native-video-stage>audio{display:none}
#native-room-page .native-video-tools{position:absolute;right:10px;bottom:10px;z-index:12;display:flex;gap:8px;align-items:center}
#native-room-page .native-video-tools button{min-height:44px;padding:8px 12px;margin:0;background:#fffffff0!important;color:#17212b!important;border:1px solid #ffffff88!important;border-radius:9px;box-shadow:0 2px 10px #0003;font-size:14px}
#native-room-page .native-video-tools .native-overlay-control{position:static!important}
body.native-video-view-open{overflow:hidden!important}
#native-room-page #native-media.native-video-enlarged{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none!important;max-height:none!important;aspect-ratio:auto!important;z-index:10000;border-radius:0;display:flex!important}
#native-room-page #native-media.native-video-enlarged .native-video-tools{right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));padding:4px;border-radius:12px;background:#0005}
#native-room-page #native-media.native-video-enlarged>.native-shared-tools{display:none!important}
#native-room-page #native-media.native-video-has-screen>video[data-media-source="screen_share"]{z-index:2}
#native-room-page #native-media.native-video-has-screen>video[data-media-source="camera"]{inset:auto 12px 65px auto;width:24%!important;height:auto!important;aspect-ratio:16/9;z-index:3;border:1px solid #fff8;border-radius:8px;background:#111}
@media(orientation:landscape) and (max-height:550px){#native-room-page .native-video-tools button{min-height:40px;font-size:13px;padding:6px 10px}}
#native-room-page .native-video-tools{top:10px;bottom:auto}
#native-room-page #native-media.native-video-enlarged .native-video-tools{top:auto;bottom:max(12px,env(safe-area-inset-bottom))}

/* Live viewing must scroll freely beneath no pinned site navigation. */
body.native-classroom-page-open>header,
body.native-classroom-page-open>.toolbar{position:relative!important;top:auto!important}
#native-room-page #native-media.native-video-enlarged{
 --native-safe-top:env(safe-area-inset-top,0px);
 --native-safe-right:env(safe-area-inset-right,0px);
 --native-safe-bottom:env(safe-area-inset-bottom,0px);
 --native-safe-left:env(safe-area-inset-left,0px);
 background:#000!important;
}
#native-room-page #native-media.native-video-enlarged>video{
 inset:var(--native-safe-top) var(--native-safe-right) var(--native-safe-bottom) var(--native-safe-left);
 width:calc(100% - var(--native-safe-left) - var(--native-safe-right))!important;
 height:calc(100% - var(--native-safe-top) - var(--native-safe-bottom))!important;
 object-fit:contain;
}
#native-room-page #native-media.native-video-enlarged .native-video-tools{
 right:calc(12px + var(--native-safe-right));
 bottom:calc(12px + var(--native-safe-bottom));
 max-width:calc(100% - var(--native-safe-left) - var(--native-safe-right) - 24px);
 flex-wrap:wrap;justify-content:flex-end;
}
#native-room-page #native-media.native-video-enlarged.native-video-has-screen>video[data-media-source="camera"]{
 inset:auto calc(12px + var(--native-safe-right)) calc(72px + var(--native-safe-bottom)) auto;
 width:22%!important;height:auto!important;
}

/* Native fullscreen hides browser chrome; CSS enlargement remains a fallback. */
#native-room-page #native-media.native-video-stage:fullscreen{aspect-ratio:auto;width:100%;height:100%;max-width:none;border-radius:0;background:#000}
#native-room-page #native-media.native-video-stage:fullscreen .native-video-tools{top:max(12px,env(safe-area-inset-top,0px));right:max(12px,env(safe-area-inset-right,0px));bottom:auto}

.native-shared-tools button.native-classroom-view{font-size:13px!important;font-weight:700;padding:6px 9px;border:1px solid #ffffff80;border-radius:8px;background:#ffffffdf}
