/* CantoHub-native classroom: inherit brand, ink, typography, controls and header. */
.canto-room{--room-mint:#e7f1e0;--room-blue:#e4eff5;--room-peach:#ffe7ce;--room-purple:#efe6f7}.canto-room h1{margin:0}.canto-room-heading{margin-bottom:20px}.canto-room-heading p{margin:5px 0 0}.canto-room-review{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:13px 16px;background:#fff0d9;border:2px dashed #b99367;margin-bottom:23px;font-size:12px}.canto-room-review>span{flex:1;color:#75634c;min-width:190px}.canto-room-review>div{display:flex;gap:10px}.canto-room-review button{font-size:12px;min-height:38px;padding:6px 10px}.canto-room-topic{margin-bottom:20px;padding:0 1px}.canto-room-topic h2{margin:9px 0 5px;font-size:25px}.canto-room-topic .date{margin:0}.canto-room-topic .actions{margin:0}.canto-room-primary{background:var(--orange)!important}.canto-room-blue{background:var(--room-blue)}.canto-room-mint{background:var(--room-mint)}.canto-room-peach{background:var(--room-peach)}.canto-room-orange{background:var(--orange)}.canto-room-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;align-items:start}.canto-room-main{min-width:0}.canto-room-player{position:relative;isolation:isolate;width:100%;aspect-ratio:16/10;background:#fffaf0;border:2px solid var(--ink);box-shadow:5px 5px 0 var(--ink);overflow:hidden}.canto-room-player:fullscreen{width:100%;height:100%;aspect-ratio:auto}.canto-room-player-top{position:absolute;inset:16px 15px auto;display:flex;align-items:center;justify-content:space-between;gap:8px;z-index:1}.canto-room-player-top>span:last-child{font-size:11px;color:#756b5c}.canto-room-player-top .tag{font-size:10px}.canto-room-stage{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;background:linear-gradient(135deg,#fff4e3,#fffdf7 55%,#eaf2e3);padding:75px 18px}.canto-room-welcome{width:100%}.canto-room-greeting{display:inline-block;padding:5px 11px;background:#fff;border:2px solid;box-shadow:3px 3px 0 var(--ink);font-size:19px;font-weight:700;transform:rotate(-4deg);margin-bottom:16px}.canto-room-welcome h2{font-size:clamp(24px,2.6vw,36px);line-height:1.25;margin:0 0 15px;color:var(--ink)}.canto-room-welcome>p{font-size:12px;line-height:1.7;color:#6f685e}.canto-room-welcome>.tag{font-size:10px;background:#fff8ec}.canto-room-player-bottom{position:absolute;inset:auto 15px 14px;display:flex;justify-content:space-between;align-items:center;z-index:1;gap:10px}.canto-room-player-bottom>.tag{background:#fff;font-size:11px;box-shadow:2px 2px 0 var(--ink)}.canto-room-expand{font-size:11px;padding:5px 8px;background:#fff;box-shadow:2px 2px 0}.canto-room-media{margin-top:15px;padding:13px;background:#fff;border:2px solid var(--ink);box-shadow:3px 3px 0 var(--ink);gap:12px}.canto-room-media .actions{margin:0;gap:10px}.canto-room-media button{font-size:12px;min-height:39px;padding:6px 9px}.canto-room-media p{font-size:12px;margin:0}.canto-room-connection{font-size:11px;color:#777164;white-space:nowrap}.canto-room-speaking{display:flex;align-items:center;gap:16px;justify-content:space-between;border:2px solid var(--ink);border-top:5px solid #a7c9ad;box-shadow:4px 4px 0 var(--ink);background:#f0f6e9;padding:18px;margin-top:22px}.canto-room-speaking>div{min-width:0;flex:1}.canto-room-speaking b{font-size:14px}.canto-room-speaking p{font-size:12px;line-height:1.7;margin:5px 0 0;color:#637059}.canto-room-speaking button{font-size:12px;min-height:42px}.canto-room-speaking>.tag{font-size:10px}.canto-room-tip{font-size:12px;color:#6b715d;margin:19px 0 0}.canto-room-side{background:#fff;border:2px solid var(--ink);box-shadow:4px 4px 0 var(--ink);border-top:5px solid #b3a0d2;min-width:0}.canto-room-side-title{padding:17px 15px 6px;gap:10px}.canto-room-side-title h2{font-size:18px;margin:0}.canto-room-side-title>.tag{font-size:10px;background:var(--room-blue)}.canto-room-tabs{display:flex;gap:8px;padding:13px 15px 17px;border-bottom:1px dashed #bdb5a5}.canto-room-tabs button{flex:1;font-size:11px;padding:7px 5px;min-height:38px}.canto-room-chat-status{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#8b8070;padding:12px 15px 0}.canto-room-chat-status button{font-size:10px;padding:3px 6px;box-shadow:2px 2px 0}.canto-room-message-list{height:310px;overflow:auto;padding:6px 15px 10px;scrollbar-width:thin}.canto-room-message{padding:12px 10px;border:1px solid #ded7cb;border-left:4px solid #b5cedd;background:#fffdfa;margin:12px 0}.canto-room-message-teacher{border-left-color:var(--orange);background:#fff2de}.canto-room-message .row{gap:5px;flex-wrap:nowrap}.canto-room-message b{font-size:12px}.canto-room-message small{display:inline;font-size:9px;background:#ffdfb4;padding:2px 4px;margin-left:4px;border:1px solid #d9b58b}.canto-room-message p{font-size:12px;line-height:1.7;margin:6px 0 0;overflow-wrap:anywhere;white-space:pre-wrap}.canto-room-delete{font-size:17px;padding:0;border:0;box-shadow:none;min-width:24px;min-height:24px;background:none;color:#8c8273}.canto-room-composer{padding:15px;border-top:1px dashed #bdb5a5}.canto-room-composer label{font-size:12px;font-weight:700;display:block;margin-bottom:7px}.canto-room-composer textarea{min-height:75px;font-size:13px;resize:vertical;padding:10px;background:#fffcf7}.canto-room-composer .row{margin-top:10px;gap:8px;flex-wrap:nowrap}.canto-room-composer small{font-size:9px;color:#7b7366}.canto-room-composer button{font-size:12px;min-height:38px;padding:5px 9px}.canto-room-side-foot{padding:11px 15px;background:#f2eee6;border-top:1px solid #ddd3c5;font-size:10px;text-align:center}.canto-room-hands,.canto-room-people{padding:18px 16px;min-height:400px}.canto-room-hands>h3{font-size:18px;margin:0 0 8px}.canto-room-hands>p{font-size:12px;color:#797061;line-height:1.8}.canto-room-hands>.canto-room-primary{width:100%;margin:12px 0 20px;font-size:13px;min-height:42px}.canto-room-hand-row{display:flex;align-items:center;justify-content:space-between;border-top:1px dashed #c9bfaf;padding:17px 0;gap:10px}.canto-room-hand-row b{font-size:14px}.canto-room-hand-row button{font-size:12px}.canto-room-people>p{font-size:12px}.canto-room-people>div{display:flex;justify-content:space-between;gap:15px;padding:15px 0;border-top:1px dashed #d8ccba;font-size:13px}.canto-room-people>div>span{font-size:11px;color:#77715f}.canto-room-invitation{margin:20px 0 0;padding:20px;border:2px solid var(--ink);border-top:6px solid var(--orange);background:#fff0db;box-shadow:4px 4px 0 var(--ink)}.canto-room-invitation h3{font-size:19px;margin:12px 0 7px}.canto-room-invitation>p{font-size:13px}.canto-room-invitation .actions button{font-size:12px}.canto-room-pending{border:2px dashed #cfaa7c;background:#fff1df;padding:14px;font-size:12px;margin:20px 0 0}.canto-room-pending button{font-size:11px;padding:3px 7px;margin-left:10px}.canto-room-existing{margin-top:30px;border-top:2px dashed #bdad96;padding-top:20px}.canto-room-existing>summary{cursor:pointer;font-weight:700;font-size:15px;padding:8px 0}.canto-room-existing>.sub{font-size:12px;margin-top:12px}.canto-room-existing .home-block{box-shadow:none;border:0;padding:0;background:none}.canto-room-help p{border-bottom:1px dashed #cab99f;padding:13px 0;font-size:14px}.canto-room-help b{font-size:16px}.canto-room-help-button{background:var(--room-blue);font-size:12px}
@media(max-width:1000px){.canto-room-grid{grid-template-columns:minmax(0,1fr) 300px;gap:17px}.canto-room-side-title{padding-inline:12px}.canto-room-side-title h2{font-size:16px}.canto-room-side-title>.tag{font-size:9px}.canto-room-tabs{padding-inline:12px;gap:7px}.canto-room-media{padding:12px}.canto-room-media button{font-size:11px;padding:5px 7px}.canto-room-speaking{padding:14px;gap:10px}.canto-room-speaking>.tag{display:none}.canto-room-player-top>span:last-child{display:none}.canto-room-welcome h2{font-size:27px}.canto-room-welcome>p{font-size:11px}.canto-room-player{aspect-ratio:4/3}}
@media(max-width:800px){.canto-room-grid{grid-template-columns:minmax(0,1fr)}.canto-room-player{aspect-ratio:16/10}.canto-room-side{margin-top:3px}.canto-room-message-list{height:320px}.canto-room-speaking p{font-size:12px}.canto-room-review{font-size:11px;padding:12px}.canto-room-review>div{gap:9px}.canto-room-review button{min-height:39px}.canto-room-topic h2{font-size:23px}.canto-room-topic .actions{margin-top:4px}.canto-room-welcome h2{font-size:31px}.canto-room-welcome>p{font-size:12px}.canto-room-side-title{padding:18px 16px 8px}.canto-room-side-title h2{font-size:20px}.canto-room-tabs{padding:13px 16px 18px}.canto-room-tabs button{font-size:13px;min-height:43px}.canto-room-message b{font-size:13px}.canto-room-message p{font-size:13px}.canto-room-message-list{padding-inline:16px}.canto-room-composer{padding:16px}.canto-room-composer label{font-size:13px}.canto-room-composer textarea{font-size:16px;min-height:85px}.canto-room-composer button{min-height:42px;font-size:13px}.canto-room-composer small{font-size:10px}.canto-room-side-foot{font-size:11px}.canto-room-invitation{padding:17px}.canto-room-invitation h3{font-size:18px}.canto-room-invitation .actions button{min-height:43px}.canto-room-hand-row button{min-height:42px}.canto-room-hand-row{padding-block:18px}.canto-room-hands>p{font-size:13px}.canto-room-hands{min-height:300px}.canto-room-review>span{flex-basis:100%}.canto-room-review>div{width:100%}.canto-room-review>div>button{flex:1}.canto-room-heading{gap:10px}.canto-room-heading h1{font-size:26px}.canto-room-heading .sub{font-size:13px}.canto-room-tip{margin-top:18px}}
@media(max-width:480px){.canto-room-player{aspect-ratio:1.15}.canto-room-stage{padding:70px 12px}.canto-room-welcome h2{font-size:27px}.canto-room-greeting{font-size:17px;margin-bottom:13px}.canto-room-welcome>p{font-size:11px}.canto-room-player-top{left:12px;right:12px;top:12px}.canto-room-player-top .tag{font-size:9px}.canto-room-player-bottom{left:12px;right:12px;bottom:12px;gap:5px}.canto-room-player-bottom>.tag{font-size:10px}.canto-room-expand{font-size:10px;padding:5px 7px}.canto-room-media button{font-size:11px;min-height:42px;padding:5px 6px}.canto-room-media .actions{gap:8px}.canto-room-media{padding:10px;gap:10px}.canto-room-speaking{align-items:flex-start;gap:11px;flex-wrap:wrap}.canto-room-speaking>div{flex-basis:100%}.canto-room-speaking button{min-height:43px}.canto-room-heading .canto-room-help-button{font-size:11px;padding:6px 9px}.canto-room-topic h2{font-size:22px}.canto-room-topic .date{font-size:11px}.canto-room-topic button{font-size:12px;min-height:42px}.canto-room-material h2{font-size:40px!important}.canto-room-pending button{min-height:35px}.canto-room-invitation .actions{gap:10px}}
.canto-room-material h2{font-size:58px;margin:20px 0 8px}.canto-room-material .jyut{font-size:22px}.canto-room-material>p:last-child{font-size:13px;line-height:1.6}.canto-room-invitation .tag{background:#fff9ef}

/* Schedule first, classroom second — local design review. */
.canto-room-schedule-intro{margin:24px 0;padding:24px;background:#fff5e4;border:2px solid var(--ink);border-top:6px solid var(--orange);box-shadow:4px 4px 0 var(--ink)}
.canto-room-schedule-intro h2{margin:12px 0;font-size:27px}.canto-room-schedule-intro p{margin:0;line-height:1.6}
.canto-room-schedule-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:26px 0 32px}
.canto-room-class-card{padding:22px;border:2px solid var(--ink);border-top:6px solid #a9d7ca;background:#fffdf6;box-shadow:4px 4px 0 var(--ink);display:flex;flex-direction:column;min-width:0}
.canto-room-class-1{border-top-color:#a7cfdf;background:#f1f9fb}.canto-room-class-2{border-top-color:#c4b7e0;background:#f8f4fd}
.canto-room-class-card h2{font-size:23px;line-height:1.25;margin:12px 0}.canto-room-class-card>p{line-height:1.6}.canto-room-class-date{font-weight:700;font-size:13px;margin:20px 0 0}.canto-room-class-footer{margin-top:auto;display:grid;gap:18px;padding-top:20px}.canto-room-class-footer button{min-height:48px}.canto-room-back{margin-bottom:16px;background:#e4f2ed!important;font-size:13px}
@media(max-width:1000px){.canto-room-schedule-grid{grid-template-columns:1fr}.canto-room-class-card{padding:20px}.canto-room-class-footer{grid-template-columns:1fr auto;align-items:center}}
@media(max-width:480px){.canto-room-schedule-intro{padding:18px}.canto-room-schedule-intro h2{font-size:23px}.canto-room-class-footer{grid-template-columns:1fr}.canto-room-class-card h2{font-size:23px}.canto-room-class-card .tag{font-size:11px}}

.canto-room-countdown{display:table;padding:8px 12px;background:#fff0d5;border:1px dashed #c47828;color:#6d3b08;font-size:13px;font-weight:800;line-height:1.5!important;margin:12px 0!important}.canto-room-topic .canto-room-countdown{font-size:14px}

.canto-room-countdown{display:block;padding:14px 12px!important;background:#ffe0ae;border:2px solid #cd751e;border-left:6px solid #f38a26;box-shadow:3px 3px 0 #ebbd7d;font-size:15px!important;font-weight:800;letter-spacing:.15px;font-variant-numeric:tabular-nums}.canto-room-schedule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.canto-room-class-3{border-top-color:#f6c78b;background:#fff8eb}@media(max-width:800px){.canto-room-schedule-grid{grid-template-columns:1fr}}

.canto-room-booking-row{display:flex;gap:10px;align-items:center;justify-content:space-between}.canto-room-booking-row>.canto-room-primary{flex:1}.canto-room-chat-first{font-size:12px!important;padding:8px!important;background:#e5f3ed!important;white-space:nowrap}.canto-room-class-footer{grid-template-columns:1fr!important}.canto-room-class-card:first-child{border-top-color:#ff983f;background:#fff6e9}.canto-room-class-card:first-child .canto-room-countdown{background:#ffd392}

/* The active classroom has a distinct, high-contrast invitation. */
.canto-room-class-live{border:3px solid #b62c25!important;border-top:8px solid #d9362b!important;background:#fff0e9!important;box-shadow:5px 5px 0 #79332c!important}.canto-room-class-live h2{color:#8e241e}.canto-room-live-countdown{background:#c92e25!important;border-color:#99231d!important;color:#fff!important;box-shadow:3px 3px 0 #f1b3a3;font-size:17px!important;letter-spacing:.4px}.canto-room-live-cta{background:#c92e25!important;color:#fff!important;border-color:#80221c!important;box-shadow:4px 4px 0 #80221c!important;font-size:17px!important;font-weight:800!important;min-height:56px!important}.canto-room-live-cta:hover,.canto-room-live-cta:focus-visible{background:#a91f18!important;transform:translateY(-2px)}

/* Restrained live emphasis after design review. */
.canto-room-class-live{border:2px solid var(--ink)!important;border-top:6px solid #dc8a79!important;background:#fffaf4!important;box-shadow:4px 4px 0 var(--ink)!important}.canto-room-class-live h2{color:var(--ink)}.canto-room-live-countdown{display:table!important;background:#fde9e5!important;color:#9c342b!important;border:1px solid #e5b3a9!important;border-left:3px solid #c45142!important;box-shadow:none;padding:7px 10px!important;font-size:12px!important;letter-spacing:.2px}.canto-room-live-cta{background:#ba5143!important;color:#fff!important;border:2px solid var(--ink)!important;box-shadow:3px 3px 0 var(--ink)!important;font-size:14px!important;min-height:48px!important}.canto-room-live-cta:hover,.canto-room-live-cta:focus-visible{background:#a3463a!important;transform:none}

/* Match countdown typography, with a light coral live accent. */
.canto-room-live-countdown{font-size:15px!important;font-weight:800!important;line-height:1.5!important;background:#ffe5e1!important;color:#88372f!important;border-color:#efaaa1!important;letter-spacing:.15px!important;padding:14px 12px!important}.canto-room-live-cta{background:#ffaaa0!important;color:#452823!important;border-color:var(--ink)!important}.canto-room-live-cta:hover,.canto-room-live-cta:focus-visible{background:#ffb9b0!important}.canto-room-class-live{border-top-color:#ffaaa0!important}

/* Gentle on-air motion; keep the matching countdown type size. */
.canto-room-live-cta{background:#f98c80!important}.canto-room-live-cta:hover,.canto-room-live-cta:focus-visible{background:#f77c6e!important}.canto-room-class-live{border-top-color:#f98c80!important}.canto-room-live-countdown{background:#ffd5cd!important;border-color:#e98e80!important;color:#783126!important;animation:canto-room-live-breathe 2.6s ease-in-out infinite}
@keyframes canto-room-live-breathe{0%,100%{box-shadow:0 0 0 0 rgba(239,117,99,.08);filter:brightness(1)}50%{box-shadow:0 0 0 5px rgba(239,117,99,.15);filter:brightness(1.035)}}
@media(prefers-reduced-motion:reduce){.canto-room-live-countdown{animation:none}}

/* Full live card emphasis, with a smaller schedule introduction. */
.canto-room-schedule-intro{padding:14px 18px;margin:16px 0;border-top-width:4px;box-shadow:3px 3px 0 var(--ink)}.canto-room-schedule-intro h2{font-size:20px;margin:8px 0;line-height:1.25}.canto-room-schedule-intro p{font-size:12px;line-height:1.45}.canto-room-schedule-intro>.tag{font-size:10px;padding:3px 6px}
.canto-room-class-live{position:relative;isolation:isolate;animation:canto-room-card-glow 2.4s ease-in-out infinite}.canto-room-class-live::after{content:"";position:absolute;inset:-5px;pointer-events:none;border:3px solid #f97e6c;border-radius:2px;opacity:0;animation:canto-room-card-ring 2.4s ease-in-out infinite}.canto-room-live-countdown{animation:none}
@keyframes canto-room-card-glow{0%,100%{filter:brightness(1)}50%{filter:brightness(1.045)}}
@keyframes canto-room-card-ring{0%,100%{opacity:.15;box-shadow:0 0 0 0 rgba(249,126,108,.05)}50%{opacity:.85;box-shadow:0 0 0 5px rgba(249,126,108,.2),0 0 20px rgba(249,126,108,.28)}}
@media(max-width:480px){.canto-room-schedule-intro{padding:12px 14px}.canto-room-schedule-intro h2{font-size:19px}.canto-room-schedule-intro p{font-size:12px}}
@media(prefers-reduced-motion:reduce){.canto-room-class-live,.canto-room-class-live::after{animation:none}.canto-room-class-live::after{opacity:.35}}


/* Repeat the soft live emphasis on both entry cues. */
.canto-room-live-countdown,.canto-room-live-cta{position:relative;isolation:isolate;animation:canto-room-live-cue-breathe 2.4s ease-in-out infinite}.canto-room-live-countdown::after,.canto-room-live-cta::after{content:"";position:absolute;inset:-3px;pointer-events:none;border:2px solid #ef9485;opacity:.2;animation:canto-room-live-cue-ring 2.4s ease-in-out infinite}
@keyframes canto-room-live-cue-breathe{0%,100%{filter:brightness(1)}50%{filter:brightness(1.075)}}
@keyframes canto-room-live-cue-ring{0%,100%{opacity:.15;box-shadow:0 0 0 0 rgba(239,148,133,.06)}50%{opacity:.7;box-shadow:0 0 0 3px rgba(239,148,133,.18),0 0 12px rgba(239,148,133,.2)}}
@media(prefers-reduced-motion:reduce){.canto-room-live-countdown,.canto-room-live-cta,.canto-room-live-countdown::after,.canto-room-live-cta::after{animation:none}}

.canto-room-schedule-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:18px 0}.canto-room-schedule-toolbar>.tag,.canto-room-schedule-toolbar>.canto-room-help-button{font-size:10px!important;font-weight:700;line-height:1.4;padding:5px 8px!important;min-height:28px;display:inline-flex;align-items:center;margin:0;white-space:nowrap}.canto-room-schedule-toolbar>.canto-room-help-button{background:#e6f2ee;box-shadow:2px 2px 0 var(--ink)}.canto-room-cancel-signup{flex:1;background:#f8eee8!important;color:#6f352b;border:2px solid var(--ink);font-weight:700}

.canto-room-booking-dialog h3{line-height:1.4}.canto-room-credit-summary{padding:18px;background:#eef6ef;border:1px solid #b9d3bf;border-left:5px solid #87b899;margin:18px 0}.canto-room-credit-summary>strong{display:block;font-size:32px;margin:8px 0}.canto-room-credit-summary p{margin:8px 0}.canto-room-booking-policy{padding:14px;background:#fff2dc;border:1px dashed #c39c65;line-height:1.6}.canto-room-policy-warning{background:#ffe8e2;color:#8a3529;padding:14px;border-left:4px solid #dc7b6c}.canto-room-booking-dialog .actions{display:flex;flex-wrap:wrap;gap:12px}.canto-room-booking-dialog .actions button{white-space:normal;line-height:1.4;min-height:44px}@media(max-width:480px){.canto-room-booking-dialog .actions button{width:100%;font-size:13px}}

.canto-room-booking-policy{border:2px solid #d99952;border-left:5px solid #e18a35;padding:16px;background:#fff0d6}.canto-room-booking-policy>strong{display:block;font-size:13px;letter-spacing:.5px;color:#70400b;margin-bottom:9px}.canto-room-booking-policy>b{display:block;font-size:17px;line-height:1.55;color:#512e0a;margin-bottom:10px}.canto-room-booking-policy>span{display:block;font-size:13px;line-height:1.65}.canto-room-policy-warning>strong{color:#8a3529;font-size:16px}

.canto-room-booking-date{font-size:17px;font-weight:800;line-height:1.55;color:#512e0a;padding:8px 0}.canto-room-booking-date b,.canto-room-booking-date span{display:block}.canto-room-booking-policy{font-size:13px;font-weight:700;line-height:1.65}

/* Four balanced, compact confirmation cards. */
.canto-room-booking-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:10px;margin:16px 0}.canto-room-booking-cards>section{margin:0!important;padding:12px!important;border:1px solid #cbbda8;border-top:3px solid #dca06b;display:flex;flex-direction:column;justify-content:center;min-width:0;min-height:118px;box-sizing:border-box}.canto-room-booking-cards small{display:block;font-size:10px;font-weight:800;letter-spacing:.4px;margin-bottom:7px;color:#61513c}.canto-room-booking-topic{background:#fff1e3}.canto-room-booking-topic h3{font-size:16px;line-height:1.4;margin:0}.canto-room-booking-cards>.canto-room-booking-date{background:#edf5fa;font-size:15px;line-height:1.5;color:#273f50;border-top-color:#a0c5da}.canto-room-booking-cards>.canto-room-credit-summary{background:#edf6ed;border-top-color:#9bc39d}.canto-room-credit-summary>span{font-size:11px;font-weight:700}.canto-room-credit-summary>strong{font-size:21px;margin:3px 0;line-height:1.2}.canto-room-credit-summary p{font-size:12px;margin:3px 0;line-height:1.4}.canto-room-credit-summary>b{font-size:12px;line-height:1.4}.canto-room-booking-cards>.canto-room-booking-policy{background:#fff4de;font-size:12px;line-height:1.5;border-top-color:#dfbf79}.canto-room-booking-policy p{font-size:12px;line-height:1.5;margin:0;font-weight:700}.canto-room-booking-dialog>.auth-hint{font-size:11px;line-height:1.45}
@media(max-width:480px){.canto-room-booking-cards{grid-template-columns:1fr;gap:8px}.canto-room-booking-cards>section{min-height:100px;padding:10px 12px!important}.canto-room-booking-topic h3{font-size:16px}.canto-room-booking-date{font-size:15px}.canto-room-booking-cards small{margin-bottom:5px}.canto-room-credit-summary>strong{font-size:19px}}

.canto-room-no-cancel{background:#ffd0c5;color:#8c2116;font-weight:900;padding:2px 4px;border-bottom:2px solid #c64e3b;border-radius:3px}
@media(max-width:480px){.canto-room-booking-cards{grid-auto-rows:auto}.canto-room-booking-cards>.canto-room-booking-topic{min-height:72px;padding:10px 12px!important}.canto-room-booking-topic h3{font-size:20px;line-height:1.3}.canto-room-booking-dialog>.actions>.canto-room-primary{order:-1}}

/* Credit hierarchy and a fuller desktop confirmation layout. */
.canto-room-credit-summary>.canto-room-credit-current{color:#166b84;font-weight:900}.canto-room-credit-summary>.canto-room-credit-after{font-size:15px;line-height:1.5;margin-top:4px}.canto-room-credit-after>span{color:#a8471d;font-size:20px;font-weight:900;padding:0 3px}
@media(min-width:481px){dialog:has(.canto-room-booking-dialog){width:min(760px,calc(100vw - 48px));max-width:760px}.canto-room-booking-dialog{padding:4px}.canto-room-booking-dialog>h2{font-size:27px;line-height:1.2;margin:14px 0 22px}.canto-room-booking-cards{gap:14px;grid-auto-rows:auto;grid-template-columns:1fr 1fr}.canto-room-booking-cards>section{min-height:148px;padding:18px!important;border:1px solid #d8cbb7;border-top-width:4px;box-shadow:2px 2px 0 #e7dccb}.canto-room-booking-topic h3{font-size:25px;line-height:1.25;letter-spacing:-.4px}.canto-room-booking-cards>.canto-room-booking-date{font-size:18px;line-height:1.6}.canto-room-booking-cards small{font-size:11px;margin-bottom:10px}.canto-room-credit-summary>span{font-size:12px}.canto-room-credit-summary>.canto-room-credit-current{font-size:30px;line-height:1.15}.canto-room-credit-summary>p{font-size:13px}.canto-room-credit-summary>.canto-room-credit-after{font-size:15px}.canto-room-credit-after>span{font-size:24px}.canto-room-booking-policy p{font-size:13px;line-height:1.65}.canto-room-booking-dialog>.actions{justify-content:flex-end;margin-top:18px}.canto-room-booking-dialog>.actions>button{padding:12px 18px;font-size:14px}.canto-room-booking-dialog>.auth-hint{padding:10px 12px;margin-top:16px}}
@media(max-width:480px){.canto-room-credit-summary>.canto-room-credit-after{font-size:15px!important}.canto-room-credit-after>span{font-size:21px}.canto-room-credit-summary>.canto-room-credit-current{font-size:23px}.canto-room-booking-cards>.canto-room-credit-summary{min-height:112px}}

/* Compact credit lines, more readable desktop cancellation copy. */
.canto-room-credit-summary>span{line-height:1.2}.canto-room-credit-summary>.canto-room-credit-current{margin:2px 0!important;line-height:1.1}.canto-room-credit-summary>p{margin:2px 0 0!important;line-height:1.25}.canto-room-credit-summary>.canto-room-credit-after{margin-top:0!important;line-height:1.3}.canto-room-credit-after>span{line-height:1.1}
@media(min-width:481px){.canto-room-booking-cards>.canto-room-booking-policy{justify-content:flex-start}.canto-room-booking-policy p{font-size:16px;line-height:1.8}.canto-room-booking-policy small{margin-bottom:10px}}

/* Single-column confirmation, constrained to the available screen. */
dialog:has(.canto-room-booking-dialog){width:min(540px,calc(100vw - 32px));max-width:540px;max-height:calc(100dvh - 32px);overflow-y:auto;padding:18px!important}.canto-room-booking-dialog{padding:0!important}.canto-room-booking-dialog>h2{font-size:23px;margin:10px 0 14px;line-height:1.25}.canto-room-booking-cards{grid-template-columns:1fr!important;grid-auto-rows:auto!important;gap:8px;margin:12px 0}.canto-room-booking-cards>section{min-height:0!important;padding:10px 12px!important;box-shadow:none}.canto-room-booking-cards small{margin-bottom:5px;font-size:10px}.canto-room-booking-topic h3{font-size:22px;line-height:1.25}.canto-room-booking-cards>.canto-room-booking-date{font-size:16px;line-height:1.45}.canto-room-credit-summary>.canto-room-credit-current{font-size:23px!important}.canto-room-booking-cards>.canto-room-credit-summary{min-height:0}.canto-room-booking-dialog>.auth-hint{padding:8px 10px;margin:10px 0;font-size:11px}.canto-room-booking-dialog>.actions{margin-top:10px;gap:8px}.canto-room-booking-dialog>.actions>button{min-height:42px;padding:9px 12px;font-size:13px}
@media(max-width:480px){dialog:has(.canto-room-booking-dialog){width:calc(100vw - 28px);max-height:calc(100dvh - 40px);padding:14px!important}.canto-room-booking-dialog>h2{font-size:21px;margin:8px 0 12px}.canto-room-booking-topic h3{font-size:20px}.canto-room-booking-cards>.canto-room-booking-date{font-size:15px}.canto-room-booking-cards>section{padding:9px 11px!important}.canto-room-booking-dialog>.actions>button{min-height:40px;padding:8px 12px}.canto-room-booking-policy p{font-size:12px;line-height:1.5}}

/* Keep the highlighted phrase intact and unify mobile typography. */
.canto-room-no-cancel{display:inline-block;white-space:nowrap;line-height:1.25;vertical-align:baseline}
@media(max-width:480px){.canto-room-booking-dialog>h2{font-size:19px;line-height:1.3}.canto-room-booking-cards small,.canto-room-credit-summary>span{font-size:11px;line-height:1.3}.canto-room-booking-topic h3{font-size:16px;line-height:1.4;letter-spacing:0}.canto-room-booking-cards>.canto-room-booking-date{font-size:14px;line-height:1.45}.canto-room-credit-summary>.canto-room-credit-current{font-size:18px!important;line-height:1.3}.canto-room-credit-summary>p,.canto-room-booking-policy p{font-size:13px;line-height:1.5}.canto-room-credit-summary>.canto-room-credit-after{font-size:14px!important;line-height:1.4}.canto-room-credit-after>span{font-size:18px}.canto-room-booking-dialog>.actions>button{font-size:13px}.canto-room-booking-cards>section{padding:10px 11px!important}}

/* Desktop typography aligned to the approved mobile hierarchy. */
@media(min-width:481px){.canto-room-booking-dialog>h2{font-size:22px;line-height:1.3}.canto-room-booking-cards small,.canto-room-credit-summary>span{font-size:11px;line-height:1.3}.canto-room-booking-topic h3{font-size:18px;line-height:1.4;letter-spacing:0}.canto-room-booking-cards>.canto-room-booking-date{font-size:16px;line-height:1.5}.canto-room-credit-summary>.canto-room-credit-current{font-size:21px!important;line-height:1.3}.canto-room-credit-summary>p{font-size:14px;line-height:1.5}.canto-room-credit-summary>.canto-room-credit-after{font-size:15px;line-height:1.5}.canto-room-credit-after>span{font-size:21px}.canto-room-booking-policy p{font-size:14px;line-height:1.65}.canto-room-booking-dialog>.actions>button{font-size:14px}.canto-room-booking-dialog>.auth-hint{font-size:12px;line-height:1.5}}


/* Compact the mobile schedule cards, not the booking confirmation. */
@media(max-width:480px){.canto-room-schedule-grid{gap:16px;margin:16px 0 24px}.canto-room-class-card{padding:13px 14px;border-top-width:4px}.canto-room-class-card .tag{font-size:10px;padding:3px 5px}.canto-room-class-date{font-size:12px;margin:12px 0 0;line-height:1.35!important}.canto-room-class-card h2{font-size:19px;line-height:1.25;margin:9px 0}.canto-room-class-card>p:not(.canto-room-countdown):not(.canto-room-class-date){font-size:12px;line-height:1.45;margin:6px 0}.canto-room-class-card>.canto-room-countdown{font-size:13px!important;padding:9px 10px!important;margin:10px 0!important;line-height:1.4!important}.canto-room-class-footer{gap:10px;padding-top:12px}.canto-room-class-footer small{font-size:11px;line-height:1.3}.canto-room-class-footer button{font-size:12px!important;min-height:42px!important;padding:8px 10px!important}.canto-room-booking-row{gap:8px}.canto-room-class-live{border-top-width:4px!important}}

/* Compact weekly calendar in the former preview-banner slot. */
.canto-room-calendar{border:1px dashed #bca98a;background:#fffaf0;padding:10px 12px;margin:14px 0;max-width:100%;box-sizing:border-box}.canto-room-calendar-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:7px}.canto-room-calendar-head>b{font-size:12px}.canto-room-calendar-head button{font-size:10px;line-height:1.3;padding:4px 7px;min-height:28px;box-shadow:2px 2px 0 var(--ink);background:#edf4ed}.canto-room-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.canto-room-calendar-weekday{text-align:center;font-size:9px;color:#736a5b;padding-bottom:2px}.canto-room-calendar-day{position:relative;display:flex;align-items:center;justify-content:center;min-height:28px;border:1px solid transparent;font-size:12px;background:#fffdf8;line-height:1.2}.canto-room-calendar-day.has-class{border:2px solid #dc796a;background:#fff0ea;color:#733229}.canto-room-calendar-day.is-today>b{text-decoration:underline;text-underline-offset:3px}.canto-room-calendar-day i{width:3px;height:3px;border-radius:50%;background:#cb5d50;position:absolute;bottom:2px}.canto-room-calendar-day.outside-month{opacity:.35}.canto-room-calendar-legend{display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap;margin-top:7px;font-size:9px;color:#8d453a}.canto-room-calendar-legend small{font-size:9px;color:#786d5e}@media(max-width:480px){.canto-room-calendar{padding:8px 9px;margin:10px 0}.canto-room-calendar-day{min-height:27px}.canto-room-calendar-grid{gap:3px}.canto-room-calendar-head{margin-bottom:5px}.canto-room-calendar-head>b{font-size:11px}}

/* Status first, then a prominent date directly above the class topic. */
.canto-room-class-date{font-size:16px;font-weight:800;line-height:1.45!important;margin:8px 0 5px}.canto-room-class-card>.canto-room-countdown{margin-bottom:9px!important}@media(max-width:480px){.canto-room-class-date{font-size:14px;line-height:1.4!important;margin:6px 0 4px}}

/* Distinct, readable topic colours across the schedule. */
.canto-room-class-card.canto-room-class-0 h2{color:#a44739}.canto-room-class-card.canto-room-class-1 h2{color:#196779}.canto-room-class-card.canto-room-class-2 h2{color:#705091}.canto-room-class-card.canto-room-class-3 h2{color:#946019}.canto-room-class-card.canto-room-class-4 h2{color:#35725b}

/* Compact languages below sign-in/sign-out, aligned to the menu’s right edge. */
header>#notice-toggle{margin-left:auto}#quick-menu .menu-language-switch{display:flex;justify-content:flex-end;gap:7px;margin:10px 0 0;padding-top:7px}#quick-menu .menu-language-switch button{display:inline-flex;width:auto;min-width:40px;min-height:32px;align-items:center;justify-content:center;text-align:center;margin:0;padding:4px 8px;font-size:11px;line-height:1.2;box-shadow:2px 2px 0 var(--ink)}#quick-menu .menu-language-switch button[aria-pressed="true"]{background:#ffdfb9}#quick-menu .menu-language-switch button[aria-pressed="false"]{background:#fffaf1}

/* Teaching overlays and in-room polls: local interaction previews. */
.canto-room-annotations{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}.canto-room-annotations.is-drawing{pointer-events:auto;touch-action:none;cursor:crosshair}.canto-room-laser-dot{filter:drop-shadow(0 0 5px #ff3434)}.canto-room-annotation-tools{position:absolute;left:14px;bottom:58px;display:flex;gap:6px;flex-wrap:wrap;z-index:4}.canto-room-annotation-tools button{font-size:11px;padding:5px 7px;min-height:32px;background:#fff8eb;box-shadow:2px 2px 0 #272724}.canto-room-player-bottom{z-index:4}.canto-room-fullscreen-chat-toggle{display:none}.canto-room-polls{padding:16px;overflow:auto}.canto-room-polls h3{font-size:17px;line-height:1.4;margin:12px 0}.canto-room-polls .auth-hint{font-size:11px;margin:0 0 12px}.canto-room-poll-option{display:flex;width:100%;gap:12px;justify-content:space-between;text-align:left;margin:10px 0;padding:11px;background:#f4f7ec;font-size:13px;box-shadow:2px 2px 0 #272724;overflow-wrap:anywhere}.canto-room-poll-option>b{white-space:nowrap;font-size:11px}.canto-room-poll-option.selected{background:#ffe1bc}.canto-room-poll-option:disabled{opacity:1}.canto-room-poll-form{margin-top:18px;padding:14px 0;border-top:1px dashed #bbab97}.canto-room-poll-form label{display:block;margin-bottom:12px;font-size:12px}.canto-room-poll-form input,.canto-room-poll-form textarea{display:block;font-size:14px;margin-top:6px}.canto-room-poll-form button{font-size:13px}.canto-room-tabs{gap:8px}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen){display:block;background:#151915;padding:16px;overflow:hidden;width:100%;height:100%}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-main{height:100%}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-player{height:100%;width:100%;aspect-ratio:auto;box-shadow:none}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-stage{height:100%;display:flex;justify-content:center;align-items:center;padding:80px 20px 100px}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-media,.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-tip{display:none}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-side{display:none;position:absolute;right:24px;bottom:84px;z-index:8;width:min(340px,calc(100% - 48px));max-height:75%;overflow:auto;background:#fff8ee;box-shadow:4px 4px 0 #111}.canto-room-grid.canto-room-fullscreen-chat-open:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-side{display:block}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-fullscreen-chat-toggle{display:block;position:absolute;right:28px;bottom:30px;z-index:9;font-size:13px;background:#ffe0ba}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-message-list{max-height:32vh;min-height:100px}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-composer textarea{min-height:56px}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-player-bottom{right:190px}
@media(max-width:480px){.canto-room-annotation-tools{left:10px;right:10px;bottom:60px;gap:5px}.canto-room-annotation-tools button{font-size:10px;padding:4px 5px}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen){padding:7px}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-side{right:12px;bottom:80px;width:calc(100% - 24px)}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-player-bottom{right:12px;bottom:70px}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-annotation-tools{bottom:112px}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-fullscreen-chat-toggle{right:16px;bottom:22px}}

.canto-room-saved-poll{border:1px solid #d3c8b5;background:#f9f5ec;padding:12px;margin:10px 0}.canto-room-saved-poll>b{display:block;font-size:13px;line-height:1.5}.canto-room-saved-poll>small{display:block;font-size:11px;color:#746b5c;margin-top:6px}.canto-room-saved-poll .actions{margin-top:8px;gap:8px}.canto-room-saved-poll button{font-size:11px;padding:5px 8px;min-height:32px}.canto-room-poll-bank>h3{margin-top:24px}.canto-room-poll-result-bar{height:6px;background:#e7e1d5;margin:-4px 0 12px}.canto-room-poll-result-bar>span{display:block;height:100%;background:#edaa63}.canto-room-polls>button{font-size:12px;min-height:40px}.canto-room-poll-bank .canto-room-composer{background:transparent}

/* Account action and two small square language keys share the bottom row. */
#quick-menu .teacher-menu-account{display:flex;align-items:flex-end;gap:10px}#quick-menu .teacher-menu-account>button{flex:1;width:auto;min-width:0;margin-bottom:0}#quick-menu .menu-language-switch{margin:0;padding:0;gap:5px;flex-shrink:0}#quick-menu .menu-language-switch button{width:28px;height:28px;min-width:28px;min-height:28px;padding:0;font-size:11px;box-shadow:2px 2px 0 var(--ink)}

/* Translucent full-screen chat for both teacher and student views. */
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-side{background:rgba(255,248,238,.82);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);border-color:rgba(39,39,36,.65)}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-side-title,.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-tabs,.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-chat-status,.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-composer,.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-side-foot,.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-polls{background:transparent}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-message{background:rgba(255,253,248,.6)}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-message-teacher{background:rgba(255,230,200,.67)}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-composer textarea,.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-poll-form input{background:rgba(255,253,248,.82)}

/* Override the menu's generic vertical stack for the language keys. */
#quick-menu .menu-language-switch{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;justify-content:flex-end!important;align-items:center!important;margin-left:auto!important;width:max-content;gap:5px!important}#quick-menu #menu-signout,#quick-menu .teacher-menu-account{display:flex!important;flex-direction:row!important;align-items:flex-end!important;gap:10px!important}#quick-menu #menu-signout>button,#quick-menu .teacher-menu-account>button{flex:1;width:auto!important;min-width:0;margin:0!important}#quick-menu .menu-language-switch #lang-en,#quick-menu .menu-language-switch #lang-zh{display:inline-flex!important;flex:0 0 28px!important;width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;margin:0!important;padding:0!important}

/* Full-width sign-in/out, followed by a separate right-aligned language row. */
#quick-menu #menu-signout,#quick-menu .teacher-menu-account{flex-direction:column!important;align-items:stretch!important;gap:10px!important}#quick-menu #menu-signout>button,#quick-menu .teacher-menu-account>button{flex:none;width:100%!important}#quick-menu .menu-language-switch{align-self:flex-end!important;margin-left:auto!important;flex-direction:row!important;justify-content:flex-end!important}

/* Adjacent fullscreen controls and a genuinely light chat overlay. */
.canto-room-fullscreen-controls{display:none}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-fullscreen-controls{display:flex;position:absolute;right:24px;bottom:24px;gap:8px;align-items:center;z-index:10}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-fullscreen-controls button{display:block;position:static;min-height:42px;font-size:12px;padding:8px 11px;background:#ffe0ba}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-player-bottom{left:18px;right:auto;bottom:26px}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-player-bottom>.canto-room-expand{display:none}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-side{background:rgba(255,248,238,.30);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);border-color:rgba(39,39,36,.4)}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-message{background:rgba(255,253,248,.16)}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-message-teacher{background:rgba(255,230,200,.22)}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-composer textarea,.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-poll-form input{background:rgba(255,253,248,.3)}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-side{color:#20221f;text-shadow:0 1px 2px rgba(255,255,255,.65)}
@media(max-width:480px){.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-fullscreen-controls{right:12px;bottom:16px;gap:7px}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-fullscreen-controls button{font-size:11px;min-height:40px;padding:7px 9px}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-player-bottom{left:12px;bottom:68px}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-side{bottom:73px}}

/* Mobile review expands inside the phone frame, rather than the desktop display. */
.canto-room-preview-expanded{overflow:hidden}.canto-room-grid.canto-room-preview-fullscreen{position:fixed;inset:0;width:100%;height:100dvh;z-index:10000;margin:0;box-sizing:border-box}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-side{background:rgba(255,248,238,.3)!important;background-image:none!important;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;border:1px solid rgba(64,64,58,.3)}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-side-title,.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-message-list,.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-tabs,.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-chat-status,.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-composer,.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-side-foot{background:transparent!important;background-image:none!important}.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-message,.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-message-teacher{background:rgba(255,255,255,.12)!important;border-top-color:rgba(39,39,36,.15);border-right-color:rgba(39,39,36,.15);border-bottom-color:rgba(39,39,36,.15)}

/* Compact conversation lines; fullscreen overlays have no panel fill. */
.canto-room-message-list .canto-room-message{display:block;padding:4px 0;margin:0;border:0!important;box-shadow:none!important;background:transparent!important;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.canto-room-message-list .canto-room-message-name{display:inline;font-size:inherit;margin:0;color:inherit}
.canto-room-message-list .canto-room-message .user-content{display:inline;font-size:inherit;line-height:inherit;margin:0;white-space:pre-wrap}
.canto-room-message-list .canto-room-delete{float:right;margin-left:6px}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-side{background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-message-list .canto-room-message{background:transparent!important;border:0!important}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-composer textarea{background:transparent!important}

/* Slim overlay controls and half-screen mobile conversation panel. */
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-side button,.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-fullscreen-controls button{background:rgba(255,236,211,.38)!important;box-shadow:none!important;border-width:1px;min-height:30px;padding:4px 8px;font-size:12px}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-side-title{padding:7px 10px}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-side-title h2{font-size:15px}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-side-foot,.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-composer label,.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-composer small{display:none}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-composer{display:flex;gap:7px;align-items:end;padding:7px 10px}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-composer textarea{flex:1;width:0;min-height:36px!important;height:36px;max-height:70px;padding:6px;font-size:14px;border-width:1px;resize:none}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-composer>.row{margin:0;flex:none}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-composer button{min-height:30px!important;font-size:11px!important;padding:4px 7px!important}
@media(max-width:480px){
.canto-room-grid.canto-room-fullscreen-chat-open:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-side{display:flex;flex-direction:column;height:50dvh;max-height:50dvh;bottom:58px;overflow:hidden}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-side-title{flex:none;min-height:0}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-chat-status{padding:3px 10px;font-size:10px}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-message-list{flex:1;min-height:0;height:auto;max-height:none;padding:3px 10px;overflow:auto}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-tabs{padding:4px 10px;gap:5px}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-polls{flex:1;min-height:0;overflow:auto;padding:8px 10px}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-polls h3{font-size:15px;margin:8px 0}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-polls .auth-hint{font-size:10px;margin:3px 0}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-poll-option{margin:5px 0}
}

.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-player-bottom>.tag{display:none}

/* Portrait and landscape share a compact, bottom-anchored mobile chat overlay. */
.canto-room-player{aspect-ratio:16/9}
.canto-room-player video{width:100%;height:100%;object-fit:contain}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-side:not(.canto-room-poll-active){height:auto;max-height:50dvh;bottom:56px;display:none;overflow:hidden}
.canto-room-grid.canto-room-mobile-preview.canto-room-fullscreen-chat-open:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-side{display:flex;flex-direction:column}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-side:not(.canto-room-poll-active) .canto-room-side-title,
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-chat-status,
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-tabs{display:none}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-message-list{flex:0 1 auto;min-height:0;height:auto;max-height:calc(50dvh - 52px);overflow:auto;padding:0 10px}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-message:nth-last-child(n+4){display:none}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-message{padding:3px 0;font-size:12px;line-height:1.4}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-composer{flex:none}
@media(orientation:landscape) and (max-height:500px){
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-side{right:12px;width:min(340px,48vw);bottom:50px;max-height:calc(100dvh - 65px)}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-message-list{max-height:calc(100dvh - 120px)}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-fullscreen-controls{right:12px;bottom:10px}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-stage{padding:35px 15px 50px}
}

/* Mobile controls sit at opposite corners; input matches Send exactly. */
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-fullscreen-controls{left:12px;right:12px;bottom:max(8px,env(safe-area-inset-bottom));justify-content:space-between;pointer-events:none}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-fullscreen-controls button{pointer-events:auto;width:34px;height:30px;min-height:30px;padding:3px;font-size:18px;display:flex;align-items:center;justify-content:center}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-control-label{display:none}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-side:not(.canto-room-poll-active){bottom:calc(42px + env(safe-area-inset-bottom));right:12px}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-composer{padding:3px 0;align-items:center;gap:6px}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-composer textarea{box-sizing:border-box;height:30px!important;min-height:30px!important;max-height:30px!important;padding:5px 7px;font-size:12px;line-height:18px;box-shadow:none}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-composer button{box-sizing:border-box;height:30px!important;min-height:30px!important;max-height:30px!important;margin:0}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-message-list{padding:0}
@media(min-width:901px){
.canto-room-grid:not(:fullscreen):not(.canto-room-preview-fullscreen)>.canto-room-main{display:contents}
.canto-room-grid:not(:fullscreen):not(.canto-room-preview-fullscreen) .canto-room-player{grid-column:1;grid-row:1}
.canto-room-grid:not(:fullscreen):not(.canto-room-preview-fullscreen)>.canto-room-side{grid-column:2;grid-row:1;contain:size;height:100%;min-height:0;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden}
.canto-room-grid:not(:fullscreen):not(.canto-room-preview-fullscreen) .canto-room-message-list{flex:1;min-height:0;height:auto;overflow:auto}
.canto-room-grid:not(:fullscreen):not(.canto-room-preview-fullscreen) .canto-room-polls,.canto-room-grid:not(:fullscreen):not(.canto-room-preview-fullscreen) .canto-room-people{flex:1;min-height:0;overflow:auto}
.canto-room-grid:not(:fullscreen):not(.canto-room-preview-fullscreen) .canto-room-media{grid-column:1;grid-row:2}
.canto-room-grid:not(:fullscreen):not(.canto-room-preview-fullscreen) .canto-room-tip{grid-column:1;grid-row:3}
}

/* Bare mobile icons and a single anchored chat cluster. */
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-fullscreen-controls button{border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0;outline-offset:1px}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-composer .canto-room-send{width:30px;padding:3px!important;font-size:18px!important;display:flex;align-items:center;justify-content:center}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-side:not(.canto-room-poll-active){margin:0!important;padding:0!important;bottom:calc(38px + env(safe-area-inset-bottom));}
@media(orientation:landscape) and (max-height:500px){
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-side:not(.canto-room-poll-active){right:12px;bottom:calc(38px + env(safe-area-inset-bottom));width:min(320px,48vw);height:auto!important;max-height:calc(100dvh - 48px);display:none;overflow:hidden}
.canto-room-grid.canto-room-mobile-preview.canto-room-fullscreen-chat-open:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-side{display:flex}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-message-list{flex:0 1 auto;height:auto;max-height:calc(100dvh - 86px);min-height:0;margin:0;padding:0}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-composer{margin:0;padding:3px 0;flex:none}
}
@media(orientation:landscape) and (max-height:500px){
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-side:not(.canto-room-poll-active){right:52px;bottom:max(5px,env(safe-area-inset-bottom));width:min(320px,48vw)}
}

/* Landscape chat sits beside the stage instead of over the video. */
@media(orientation:landscape) and (max-height:500px){
.canto-room-grid.canto-room-mobile-preview.canto-room-fullscreen-chat-open:is(:fullscreen,.canto-room-preview-fullscreen){display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,36%);grid-template-rows:minmax(0,1fr);gap:8px;padding:7px 7px 40px}
.canto-room-grid.canto-room-mobile-preview.canto-room-fullscreen-chat-open:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-main{height:100%;min-height:0;grid-column:1;grid-row:1}
.canto-room-grid.canto-room-mobile-preview.canto-room-fullscreen-chat-open:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-side:not(.canto-room-poll-active),
.canto-room-grid.canto-room-mobile-preview.canto-room-fullscreen-chat-open:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-side.canto-room-poll-active{position:static!important;inset:auto!important;width:auto!important;height:100%!important;max-height:none!important;min-height:0;grid-column:2;grid-row:1;display:flex;flex-direction:column;margin:0!important;overflow:hidden;padding:0 3px!important}
.canto-room-grid.canto-room-mobile-preview.canto-room-fullscreen-chat-open:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-message-list{flex:1;height:auto;max-height:none;min-height:0;display:flex;flex-direction:column;justify-content:flex-end;overflow:auto}
.canto-room-grid.canto-room-mobile-preview.canto-room-fullscreen-chat-open:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-message{flex:none}
.canto-room-grid.canto-room-mobile-preview.canto-room-fullscreen-chat-open:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-stage{padding:35px 10px 20px}
.canto-room-grid.canto-room-mobile-preview.canto-room-fullscreen-chat-open:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-welcome h2{font-size:23px}
.canto-room-grid.canto-room-mobile-preview.canto-room-fullscreen-chat-open:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-welcome>p{font-size:10px}
}
@media(orientation:landscape) and (max-height:500px){
.canto-room-grid.canto-room-mobile-preview.canto-room-fullscreen-chat-open:is(:fullscreen,.canto-room-preview-fullscreen){background:#fff8ee}
.canto-room-grid.canto-room-mobile-preview.canto-room-fullscreen-chat-open:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-side{color:#272724;text-shadow:none}
}
/* Landscape's separate sidebar follows the desktop chat card. */
@media(orientation:landscape) and (max-height:500px){
.canto-room-grid.canto-room-mobile-preview.canto-room-fullscreen-chat-open:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-side{background:#fffdf8!important;border:2px solid var(--ink)!important;border-top:4px solid #b3a0d2!important;box-shadow:3px 3px 0 var(--ink)!important;padding:0!important;box-sizing:border-box}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-side:not(.canto-room-poll-active) .canto-room-side-title{display:flex;padding:9px 8px 7px;border-bottom:1px dashed #c9bdad;background:#fffdf8!important;flex:none}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-side-title h2{font-size:14px;line-height:1.25}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-side-title>.tag{display:none}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-message-list{padding:6px 8px;justify-content:flex-start;background:#fffdf8!important}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-message:nth-last-child(n+4){display:block}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-composer{padding:6px!important;background:#fff6e9!important;border-top:1px dashed #c9bdad}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-composer textarea{background:#fff!important}
.canto-room-grid.canto-room-mobile-preview:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-composer .canto-room-send{background:#ffe2bc!important}
}

/* Desktop expand is an icon, with its fullscreen counterpart at bottom left. */
.canto-room-expand{font-size:18px;width:34px;height:32px;padding:3px}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-fullscreen-exit .canto-room-control-label{display:none}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen)>.canto-room-fullscreen-controls{left:24px;right:24px;justify-content:space-between;pointer-events:none}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-fullscreen-controls button{pointer-events:auto}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-fullscreen-controls .canto-room-fullscreen-exit{width:34px;height:32px;min-height:32px;font-size:18px;padding:3px;border:0!important;background:transparent!important;box-shadow:none!important}

/* Consistent bare player controls before and after fullscreen. */
.canto-room-player-bottom{justify-content:flex-start}
.canto-room-player-bottom>.canto-room-expand{border:0!important;background:transparent!important;box-shadow:none!important;color:var(--ink);width:34px;height:32px;font-size:20px;padding:3px}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-fullscreen-chat-toggle .canto-room-control-label{display:none}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-fullscreen-controls .canto-room-fullscreen-chat-toggle{width:34px;height:32px;min-height:32px;font-size:20px;padding:3px;border:0!important;background:transparent!important;box-shadow:none!important}

/* More room for desktop conversation, keeping both columns aligned. */
@media(min-width:901px){
.canto-room-grid:not(:fullscreen):not(.canto-room-preview-fullscreen) .canto-room-player{aspect-ratio:auto;height:clamp(460px,60vh,640px)}
}

.canto-room-reaction-layer{position:absolute;inset:0;pointer-events:none;z-index:6;overflow:hidden}
.canto-room-reaction-controls{position:absolute;right:14px;bottom:12px;z-index:9}
.canto-room-reaction-controls button{border:0!important;background:transparent!important;box-shadow:none!important;font-size:23px;padding:3px;min-width:34px;min-height:34px;cursor:pointer}
.canto-room-reaction-picker{position:absolute;bottom:43px;right:0;display:flex;gap:4px;padding:7px;background:#fff8ee;border:2px solid var(--ink);box-shadow:3px 3px 0 var(--ink)}
.canto-room-reaction-picker[hidden]{display:none}
.canto-room-floating-reaction{position:absolute;bottom:12%;font-size:38px;display:flex;flex-direction:column;align-items:center;animation:canto-room-reaction-float 3.2s ease-out forwards;will-change:transform,opacity}
.canto-room-floating-reaction b{font-size:11px;line-height:1.4;white-space:nowrap;background:#ffe2bc;color:#272724;border:1px solid #c98f58;border-radius:8px;padding:2px 6px;margin-top:2px}
@keyframes canto-room-reaction-float{0%{opacity:0;transform:translateY(12px) scale(.7)}12%{opacity:1;transform:translateY(-15px) scale(1)}75%{opacity:1}100%{opacity:0;transform:translateY(-190px) scale(1.15)}}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-reaction-controls{left:55px;right:auto;bottom:12px}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-reaction-picker{left:0;right:auto}
@media(prefers-reduced-motion:reduce){.canto-room-floating-reaction{animation:none;bottom:30%}}

.canto-room-fullscreen-reactions{display:none}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-player>.canto-room-reaction-controls{display:none}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-fullscreen-controls>.canto-room-fullscreen-reactions{display:block;position:relative;inset:auto;margin-left:auto;pointer-events:auto}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-fullscreen-reactions>.canto-room-reaction-toggle,.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-fullscreen-controls>.canto-room-fullscreen-chat-toggle{width:34px;height:32px;min-width:34px;min-height:32px;box-sizing:border-box;font-size:20px;padding:3px;line-height:26px;border:0!important;background:transparent!important;box-shadow:none!important}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-fullscreen-reactions .canto-room-reaction-picker{left:auto;right:0;bottom:40px}
.canto-room-grid:is(:fullscreen,.canto-room-preview-fullscreen) .canto-room-fullscreen-reactions .canto-room-reaction-picker button{font-size:22px;min-width:30px;min-height:32px;padding:2px}
.canto-room-annotation-tools{flex-wrap:wrap;max-width:calc(100% - 24px)}

.canto-room-public-preview-entry{padding:16px 18px;margin-bottom:22px;border:2px solid var(--ink);border-top:5px solid #ffad61;background:#fff8ee;box-shadow:3px 3px 0 var(--ink)}.canto-room-public-preview-entry p{font-size:13px;line-height:1.6;margin:8px 0}.canto-room-public-preview-entry a{display:inline-block;padding:8px 12px;background:#ffe2bc;color:#272724;border:1px solid;font-weight:bold}
