@import url('./media-window.css');
html.core-pupil,html.core-pupil body{overscroll-behavior-y:none}
/* Host styles are scoped: SRL owns every element inside its activation. */
html,body{margin:0;width:100%;height:100%;overflow-x:clip}
body{height:100vh;height:100dvh;display:flex;flex-direction:column;background:#f5f7fb}
#school-apps{display:flex;flex-shrink:0;align-items:center;gap:8px;padding:6px 16px;background:#fff;border-bottom:1px solid #dce6e0;font:14px system-ui,sans-serif}
#school-apps[hidden]{display:none}
#school-apps button{font:inherit;font-weight:600;padding:8px 18px;border:1px solid #b8c9b3;border-radius:18px;background:#f3f7f4;color:#24452a;cursor:pointer}
#school-apps button:focus-visible{outline:2px solid #008c5b;outline-offset:2px}
#school-apps [role=status]{color:#a02625}
#workspace{flex:1;min-height:0;position:relative}
#viewport,#viewport>[data-app-id]{height:100%;min-height:0;max-width:100%}
#viewport>[data-app-id]:not([data-app-id="srl"],[data-app-id="castle"],[data-app-id="race"],[data-app-id="portal"]){box-sizing:border-box;padding:2rem;font:16px system-ui,sans-serif;color:#243342;overflow:auto}
#comms[hidden]{display:none!important}
#viewport>[data-app-id="castle"],#viewport>[data-app-id="race"]{padding:0;overflow:hidden}
#preview-bar,#comms{box-sizing:border-box;font:13px system-ui,sans-serif;color:#334d45;background:#fff}
#preview-bar{position:relative;z-index:10;flex-shrink:0;display:flex;align-items:center;gap:16px;min-height:44px;padding:6px 16px calc(6px + env(safe-area-inset-bottom,0px));border-top:1px solid #dce6e0}
#preview-bar[hidden]{display:none}
.preview-label{margin-right:auto;font-weight:600}
.preview-label span{font-weight:400;color:#64776e}
#preview-controls summary{cursor:pointer;padding:6px 0}
#preview-bar button{font:inherit;border:1px solid #dce6e0;border-radius:8px;padding:6px 10px;cursor:pointer;background:#f3f7f4;color:#334d45}
#preview-bar button:hover{background:#e7f4eb}
#preview-bar button:focus-visible,#preview-controls summary:focus-visible{outline:2px solid #008c5b;outline-offset:2px}
.preview-panel{position:absolute;bottom:calc(100% + 8px);right:16px;width:min(540px,calc(100% - 32px));box-sizing:border-box;padding:20px;background:#fff;border:1px solid #dce6e0;border-radius:16px;box-shadow:0 8px 32px #12382524}
.preview-panel nav{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.preview-panel #boot{overflow-wrap:anywhere}
.preview-panel #status,.preview-panel #identity,.preview-panel #boot{margin-top:8px;font-size:12px}
#comms{position:fixed;z-index:9;display:flex;flex-direction:column;background:#f2f8f4}
#comms.minimized{display:none}
#comms-surface{display:flex;flex:1;min-height:0}
#comms-surface iframe{width:100%;height:100%;border:0;flex:1}
#viewport>[data-app-id="meeting"].meeting-app{padding:0;overflow:hidden}
.meeting-anchor{height:100%;width:100%}
#workspace.classroom-docked #viewport{box-sizing:border-box;margin-left:var(--core-reserved-left,0px);margin-top:var(--core-reserved-top,0px);width:calc(100% - var(--core-reserved-left,0px) - var(--core-reserved-right,0px));height:calc(100% - var(--core-reserved-top,0px) - var(--core-reserved-bottom,0px))}
#comms.classroom-dock{z-index:1500;box-sizing:border-box;border:0;border-radius:0;box-shadow:0 8px 28px #24452a29;background:#fffffff5;overflow:hidden;font-family:Raleway,system-ui,sans-serif;color:#244b38}
#comms.classroom-dock[data-placement="float"]{border-radius:20px;box-shadow:0 12px 36px #24452a40}
#comms.classroom-dock[data-placement="right"]{border-radius:20px 0 0 20px}#comms.classroom-dock[data-placement="left"]{border-radius:0 20px 20px 0}
#comms.classroom-dock[data-placement="top"]{border-radius:0 0 20px 20px}#comms.classroom-dock[data-placement="bottom"]{border-radius:20px 20px 0 0}
/* A floating frame resizes from every side and corner. */
.classroom-dock-side{display:none;position:absolute;z-index:3;touch-action:none}
#comms.classroom-dock[data-placement="float"]:not(.classroom-content-expanded):not(:fullscreen,.classroom-page-full)>.classroom-dock-side{display:block}
.classroom-dock-side:is([data-side="n"],[data-side="s"]){left:16px;right:16px;height:7px;cursor:ns-resize}
.classroom-dock-side:is([data-side="e"],[data-side="w"]){top:16px;bottom:16px;width:7px;cursor:ew-resize}
.classroom-dock-side:is([data-side="ne"],[data-side="nw"],[data-side="se"],[data-side="sw"]){width:16px;height:16px;z-index:4}
.classroom-dock-side:is([data-side="n"],[data-side="ne"],[data-side="nw"]){top:0}.classroom-dock-side:is([data-side="s"],[data-side="se"],[data-side="sw"]){bottom:0}
.classroom-dock-side:is([data-side="e"],[data-side="ne"],[data-side="se"]){right:0}.classroom-dock-side:is([data-side="w"],[data-side="nw"],[data-side="sw"]){left:0}
.classroom-dock-side:is([data-side="ne"],[data-side="sw"]){cursor:nesw-resize}.classroom-dock-side:is([data-side="nw"],[data-side="se"]){cursor:nwse-resize}
/* Where the dragged frame will stick when let go. */
.classroom-dock-snap{position:fixed;z-index:1490;box-sizing:border-box;border:2px dashed #00aa59;border-radius:20px;background:#00aa5926;pointer-events:none;transition:left .1s,top .1s,width .1s,height .1s}
.classroom-dock-snap[hidden]{display:none}
#workspace:is([data-classroom-theme="castle"],[data-classroom-theme="race"]) .classroom-dock-snap{border-color:var(--class-accent);background:color-mix(in srgb,var(--class-accent) 18%,transparent)}
/* The drag handle, top centre of the frame. */
.media-grip{display:none;position:absolute;top:0;left:50%;z-index:4;box-sizing:border-box;width:56px;height:18px;padding:5px 14px;margin-left:-28px;color:#5f7563;cursor:grab;touch-action:none}
.media-grip svg{display:block;width:100%;height:100%}.media-grip:hover{color:#244b38}
#comms.classroom-dock:not(.classroom-content-expanded)>.classroom-dock-grip,#comms.media-window:not(.media-window-expanded):not(:fullscreen,.classroom-page-full)>.media-window-grip{display:block}
#comms.classroom-dock-dragging>.media-grip,#comms.media-window-dragging>.media-grip{cursor:grabbing;color:#244b38}
[data-classroom-theme]:not([data-classroom-theme="srl"]) .media-grip,#comms[data-media-window-theme]:not([data-media-window-theme="srl"]) .media-grip{color:var(--class-muted,#acb8c5)}
/* End call: red in every theme, like every call app. */
.classroom-dock-bar button.classroom-dock-icon.media-hang-up,[data-classroom-theme] .classroom-dock-bar button.classroom-dock-icon.media-hang-up,.media-window-bar button.media-hang-up,#comms.media-window .media-window-bar button.media-hang-up{background:#d93025;color:#fff}
.classroom-dock-bar button.classroom-dock-icon.media-hang-up:hover,.media-window-bar button.media-hang-up:hover{background:#b3261e}
#comms.classroom-content-expanded{z-index:1600;background:#fff}
.classroom-dock-bar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:16px 10px 4px;color:#244b38;background:transparent;flex-shrink:0}
.classroom-dock-bar strong{flex:1}.classroom-dock-bar button,#classroom-dock-reopen{font:600 12px Raleway,system-ui,sans-serif;padding:7px 9px;border:0;border-radius:999px;background:#f7fff2e8;color:#086f3e;cursor:pointer}
.classroom-dock-bar button.classroom-dock-icon:not([hidden]){display:grid;place-items:center;width:40px;height:40px;padding:9px;flex-shrink:0}.classroom-dock-icon svg{width:22px;height:22px}
.classroom-dock-bar button:hover,#classroom-dock-reopen:hover{background:#d9ffb8}
.classroom-dock-bar button:focus-visible,#classroom-dock-reopen:focus-visible{outline:2px solid #009e58;outline-offset:2px}
.classroom-dock-bar button.classroom-dock-icon{background:#eef3e8;color:#244b38}
.classroom-dock-bar [hidden],.classroom-dock-bar[hidden],.classroom-dock-resize[hidden],#classroom-dock-reopen[hidden]{display:none}
.classroom-dock-resize{position:absolute;padding:0;border:0;background:transparent;touch-action:none;z-index:3}
.classroom-dock-resize[data-edge="right"]{left:-2px;top:0;bottom:0;width:10px;cursor:ew-resize}
.classroom-dock-resize[data-edge="left"]{right:-2px;top:0;bottom:0;width:10px;cursor:ew-resize}
.classroom-dock-resize[data-edge="top"]{left:0;right:0;bottom:-2px;height:10px;cursor:ns-resize}
.classroom-dock-resize[data-edge="bottom"]{left:0;right:0;top:-2px;height:10px;cursor:ns-resize}
.classroom-dock-resize[data-edge="float"]{right:0;bottom:0;width:18px;height:18px;color:#7d917f;border-radius:0 0 20px 0;cursor:nwse-resize;background:linear-gradient(135deg,transparent 55%,currentColor 55% 65%,transparent 65% 75%,currentColor 75% 85%,transparent 85%)}
.classroom-dock-resize:hover,.classroom-dock-resize:focus-visible{background:#00aa5966;outline:0}
#comms.classroom-dock[data-placement="float"] .classroom-dock-bar strong{cursor:move;touch-action:none}
#comms.classroom-dock:is([data-placement="top"],[data-placement="bottom"]):not(.classroom-content-expanded){flex-direction:row}
#comms.classroom-dock:is([data-placement="top"],[data-placement="bottom"]):not(.classroom-content-expanded) .classroom-dock-bar{order:2;flex-direction:column;flex-wrap:nowrap;justify-content:center;width:52px;padding:6px 6px 30px}
#comms.classroom-dock:is([data-placement="top"],[data-placement="bottom"]):not(.classroom-content-expanded) .classroom-dock-bar strong{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
/* Review of SOR-2816: with 44px touch items the menu can be taller than a phone on its side; it never passes the viewport and
   scrolls inside, so every item (Hide panel, End the call) stays reachable. */
.classroom-dock-menu{max-height:calc(100dvh - 8px);overflow-y:auto;overscroll-behavior:contain;position:fixed;inset:auto;margin:0;min-width:236px;box-sizing:border-box;padding:6px;border:1px solid #c1d8b6;border-radius:14px;background:#f7fff2;color:#244b38;box-shadow:0 10px 30px #24452a4d;font:600 13px Raleway,system-ui,sans-serif}
.classroom-dock-menu:popover-open{display:flex;flex-direction:column;gap:2px}
.classroom-dock-menu [hidden]{display:none!important}
.classroom-dock-menu button{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border:0;border-radius:9px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.classroom-dock-menu button:hover,.classroom-dock-menu button:focus-visible{background:#d9ffb8;outline:0}
.classroom-dock-menu button[aria-checked="true"]{background:#c9f2aa;color:#087940}
.classroom-dock-menu svg{width:18px;height:18px;flex-shrink:0}
[data-classroom-theme]:not([data-classroom-theme="srl"]) .classroom-dock-menu{background:var(--class-panel);color:var(--class-text);border-color:var(--class-accent)}
[data-classroom-theme]:not([data-classroom-theme="srl"]) .classroom-dock-menu button:hover,[data-classroom-theme]:not([data-classroom-theme="srl"]) .classroom-dock-menu button:focus-visible{background:var(--class-bg)}
[data-classroom-theme]:not([data-classroom-theme="srl"]) .classroom-dock-menu button[aria-checked="true"]{background:var(--class-accent);color:var(--class-on-accent)}
#comms.classroom-dock-dragging iframe{pointer-events:none}
#classroom-dock-reopen{position:absolute;right:12px;top:8px;z-index:1500;max-width:calc(100% - 24px)}
#comms.classroom-dock:fullscreen{inset:0!important;width:100vw!important;height:100dvh!important;border-radius:0}
/* SOR-2818: the frame grown for MiniClass's chat sheet on a phone: square, like a sheet, over the game under its header. */
#comms.classroom-dock[data-sheet="open"]{border-radius:0}
/* SOR-2807: full screen without the browser's (an iPhone): the frame over the whole page, under the toasts (2147483500) and the
   pre-join card (2147483000), over the game, its header and its menus, as the browser's full screen would be. */
#comms.classroom-dock.classroom-page-full{inset:0!important;width:100vw!important;height:100dvh!important;z-index:2147482000;border-radius:0}
/* SOR-2830: the lesson chat as a modal (classroom-sheet presentation 'modal'): the frame over the whole screen at every size,
   transparent (MiniClass draws the backdrop and the centred dialog), over the game, its header, the toasts (2147483500) and the
   pre-join card (2147483000); the rest of the page is inert meanwhile. Only the call's surface shows: no bar, grip, edges or
   handle. The inline box stays the dock's, so the end of the modal shows the frame exactly where it was.
   After every other #comms state (review r1 of SOR-2830) and important: the modal wins over the page's full screen (2147482000,
   an iPhone), the class loader's 20001, shared content's 1600, a placement's edges and a theme's background, in any combination. */
#comms.classroom-dock[data-sheet="modal"]{inset:0!important;width:100vw!important;height:100dvh!important;z-index:2147483600!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
#comms.classroom-dock[data-sheet="modal"]>:not(#comms-surface){display:none!important}
#comms.classroom-dock[data-sheet="modal"] #comms-surface iframe{background:transparent}
/* SOR-2830 keyboard: the safe-area insets as computed lengths, for the modal's `view` (classroom-dock.mjs visibleArea). */
.classroom-safe-probe{position:fixed;top:0;left:0;width:0;height:0;visibility:hidden;pointer-events:none;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)}
#games-welcome{position:absolute;inset:0;z-index:11;overflow:auto;height:100%}
#games-welcome[hidden]{display:none!important}
#meeting-status{font-size:12px}
@media(max-width:540px){#meeting-status{max-width:110px;font-size:11px}}
@media(max-width:540px){#preview-bar{gap:10px;padding-left:12px;padding-right:12px;font-size:12px}.preview-label span{display:none}}

#module-version{position:relative;flex-shrink:0;box-sizing:border-box;min-height:20px;padding:2px 8px;z-index:10000;display:flex;align-items:center;justify-content:flex-end;gap:6px;font:10px/1.3 system-ui;color:#526079;pointer-events:none;opacity:.75}
#module-version small{font:inherit;background:#ffffffe6;border-radius:3px;padding:1px 4px}
#module-version button{pointer-events:auto;font:inherit;padding:2px 5px;border:1px solid #b4bfd0;border-radius:3px;background:#fff;color:#253652;cursor:pointer}

/* Hide the initial dark classroom document until its hosted presentation is painted. */
#comms-surface iframe.classroom-starting,#comms-surface iframe.meeting-starting{visibility:hidden}

/* The video surface continues each game's own background without an outer card. */
[data-classroom-theme="castle"],body:has(#workspace[data-classroom-theme="castle"]),.core-module-curtain[data-app="castle"]{--class-bg:#2b2529;--class-text:#f2eadf;--class-muted:#c1b0a6;--class-panel:#43393c;--class-accent:#c3a16a;--class-on-accent:#2b2529}
[data-classroom-theme="race"],body:has(#workspace[data-classroom-theme="race"]),.core-module-curtain[data-app="race"]{--class-bg:#0c1117;--class-text:#f4f7fa;--class-muted:#acb8c5;--class-panel:#25323e;--class-accent:#b9f232;--class-on-accent:#131b0d}
#workspace:is([data-classroom-theme="castle"],[data-classroom-theme="race"]){background:var(--class-bg)}
#comms.classroom-dock:is([data-classroom-theme="castle"],[data-classroom-theme="race"]){background:var(--class-bg);color:var(--class-text);border-color:var(--class-accent)}
[data-classroom-theme]:not([data-classroom-theme="srl"]) .classroom-dock-bar{color:var(--class-text)}
[data-classroom-theme]:not([data-classroom-theme="srl"]) .classroom-dock-bar button,
[data-classroom-theme]:not([data-classroom-theme="srl"]) #classroom-dock-reopen{background:var(--class-panel);color:var(--class-text)}
[data-classroom-theme]:not([data-classroom-theme="srl"]) .classroom-dock-bar button:hover,
[data-classroom-theme]:not([data-classroom-theme="srl"]) #classroom-dock-reopen:hover{background:var(--class-accent);color:var(--class-on-accent)}
[data-classroom-theme]:not([data-classroom-theme="srl"]) .classroom-dock-bar button:focus-visible,
[data-classroom-theme]:not([data-classroom-theme="srl"]) #classroom-dock-reopen:focus-visible{outline-color:var(--class-accent)}
body:has(#workspace[data-classroom-theme]:not([data-classroom-theme="srl"])) #module-version{background:var(--class-bg);color:var(--class-muted);opacity:1}
body:has(#workspace[data-classroom-theme]:not([data-classroom-theme="srl"])) #module-version small{background:var(--class-panel)}

#module-version[hidden]{display:none}

/* Scrollbars stay quiet on any module's background: thin, see-through track. */
*{scrollbar-width:thin;scrollbar-color:#8a94a080 transparent}
.classroom-popup{position:fixed;inset:auto;margin:0;box-sizing:border-box;width:min(266px,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow:auto;padding:12px;border:0;border-radius:18px;box-shadow:0 12px 36px #24452a4d;font:600 14px/1.25 Raleway,system-ui,sans-serif}
.classroom-popup:popover-open{display:flex;flex-direction:column;gap:6px}
.classroom-popup strong{padding:2px 4px 6px;font-size:21px;font-weight:800;line-height:1.2;overflow-wrap:anywhere}
.classroom-popup button{flex:none;display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:6px 10px;border:0;border-radius:14px;font:inherit;text-align:left;cursor:pointer}
.classroom-popup button:hover{filter:brightness(.94)}
.classroom-popup button:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.classroom-popup button>span:last-child{min-width:0;overflow-wrap:anywhere}
.classroom-popup button>span:first-child{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#ffffff2e}
.classroom-popup svg{width:20px;height:20px}
/* In a strip the pupils take the middle: the handle stands in the bar's own column, under the frame's menu. */
/* SOR-2701: in a strip the placement button and the drag handle stand together beside the call's one row of buttons.
   SOR-2713 review: both at the column's foot, the handle 8px from the bottom (clear of a top strip's 8px resize edge) and the
   bar's 28px foot kept clear for it, so the button (and the content button above it) never lies under the dots. */
#comms.classroom-dock:is([data-placement="top"],[data-placement="bottom"])>.classroom-dock-grip{top:auto;right:2px;bottom:8px;left:auto;width:48px;margin:0;padding:5px 10px}
/* SOR-2713 (owner, 2026-11-11): the placement button is a bare icon, no round block, set like the drag handle: the same 48px box
   as the handle, its icon on the handle's line. In a strip it stands right above the handle, both 2px from the right edge. In a
   rail or a floating frame the handle comes 7px down and the icon stands on its line, both clear of the frame's resize edges
   (the top edge is 7px high, a corner 16px square, a rail's inner edge 8px wide): the bar starts 7px down, 16px in from each
   side, and its other buttons (show the content) go to the top left corner, clear of the handle in the middle (200px and up). */
.classroom-dock .classroom-dock-bar button.classroom-dock-icon.classroom-dock-place:not([hidden]){box-sizing:border-box;width:48px;height:32px;padding:5px 13px;border-radius:8px}
:is(.classroom-dock,[data-classroom-theme]) .classroom-dock-bar button.classroom-dock-icon.classroom-dock-place{background:transparent;color:inherit}
:is(.classroom-dock,[data-classroom-theme]) .classroom-dock-bar button.classroom-dock-icon.classroom-dock-place:hover{background:transparent;color:var(--class-accent,#00aa59)}
#comms.classroom-dock:not(:is([data-placement="top"],[data-placement="bottom"],[data-placement="fill"])):not(.classroom-content-expanded):not(:fullscreen,.classroom-page-full) .classroom-dock-bar{align-items:flex-start;padding:7px 16px 4px}
#comms.classroom-dock:not(:is([data-placement="top"],[data-placement="bottom"],[data-placement="fill"])):not(.classroom-content-expanded):not(:fullscreen,.classroom-page-full) .classroom-dock-bar>button:not(.classroom-dock-place){order:-1;margin-top:1px}
#comms.classroom-dock:not(:is([data-placement="top"],[data-placement="bottom"],[data-placement="fill"])):not(.classroom-content-expanded):not(:fullscreen,.classroom-page-full)>.classroom-dock-grip{top:7px}
/* SOR-2801: the narrow rail of a pupil's phone on its side (160px) has no room for the buttons beside the handle: the handle
   stands alone at the top and the buttons go under it, 8px from the sides (clear of the rail's resize edge). */
#comms.classroom-dock.classroom-pupil[data-rail="narrow"]:not(.classroom-content-expanded):not(:fullscreen,.classroom-page-full) .classroom-dock-bar{padding:28px 8px 4px}
#comms.classroom-dock.classroom-pupil[data-rail="narrow"]:not(.classroom-content-expanded):not(:fullscreen,.classroom-page-full)>.classroom-dock-grip{top:5px}
#comms.classroom-dock:is([data-placement="top"],[data-placement="bottom"]):not(.classroom-content-expanded) .classroom-dock-bar{justify-content:flex-end;padding:4px 0 28px}
/* A short strip (under 114px; the lowest is 112px, SIZES.strip.min, SOR-2845): the column has no room for both buttons over the
   handle, so the content button stands beside the placement button, 8px from the top (clear of a bottom strip's resize edge), and
   the handle right under the placement button. */
#comms.classroom-dock:is([data-placement="top"],[data-placement="bottom"]):not(.classroom-content-expanded){container:classroom-strip/size}
@container classroom-strip (height < 114px){
 #comms.classroom-dock:is([data-placement="top"],[data-placement="bottom"]):not(.classroom-content-expanded) .classroom-dock-bar{flex-direction:row;align-items:flex-start;justify-content:flex-end;width:auto;padding:8px 2px 0 0}
 #comms.classroom-dock:is([data-placement="top"],[data-placement="bottom"])>.classroom-dock-grip{top:42px;bottom:auto}
}
/* The frame clips what stands out of it: the focus ring of a button at its edge is drawn inside the button. */
.classroom-dock .classroom-dock-bar button.classroom-dock-place:focus-visible{outline-offset:-2px}
/* SOR-2816: on a touch screen (a coarse primary pointer) every control of the call's frame is at least 44 CSS px each way, the
   smallest comfortable target for a finger (the buttons were 40px, the placement button 32px high, the handle 18px); a mouse keeps
   the sizes above. The handle keeps its dots and gets a 44px box around them. A strip's column then needs 156px (8px edge, 44 + 6 + 44
   buttons, 54px foot: the handle 8px above the resize edge): below that the short layout takes over, the handle beside the row of
   buttons (review of SOR-2816: under the row it reached into a low strip's resize edge), all of them 8px from the top, so the lowest
   strip (112px) keeps them clear of both edges. The resize edges stay thin; the menu's Larger and Smaller do the same (dock code). */
@media (pointer: coarse){
 .classroom-dock-bar button.classroom-dock-icon:not([hidden]){width:44px;height:44px;padding:11px}
 .classroom-dock .classroom-dock-bar button.classroom-dock-icon.classroom-dock-place:not([hidden]){height:44px;padding:11px 13px}
 .classroom-dock-menu button{min-height:44px}
 body #classroom-dock-reopen{min-height:44px}
 #comms.classroom-dock[data-placement]>.classroom-dock-grip{height:44px;padding-top:18px;padding-bottom:18px}
 #comms.classroom-dock.classroom-pupil[data-rail="narrow"]:not(.classroom-content-expanded):not(:fullscreen,.classroom-page-full) .classroom-dock-bar{padding-top:52px}
 #comms.classroom-dock:is([data-placement="top"],[data-placement="bottom"])>.classroom-dock-grip{bottom:8px}
 #comms.classroom-dock:is([data-placement="top"],[data-placement="bottom"]):not(.classroom-content-expanded) .classroom-dock-bar{padding-bottom:54px}
 @container classroom-strip (height < 156px){
  #comms.classroom-dock:is([data-placement="top"],[data-placement="bottom"]):not(.classroom-content-expanded) .classroom-dock-bar{flex-direction:row;align-items:flex-start;justify-content:flex-end;width:auto;padding:8px 54px 0 0}
  #comms.classroom-dock:is([data-placement="top"],[data-placement="bottom"])>.classroom-dock-grip{top:8px;bottom:auto}
 }
}

/* The collapsed panel: one pill, always above the header. */
#classroom-dock-reopen{position:fixed;top:8px;right:auto;left:50%;z-index:1600;transform:translateX(-50%);display:inline-flex;align-items:center;gap:12px;box-sizing:border-box;min-height:42px;max-width:calc(100vw - 24px);padding:0 18px;border-radius:999px;background:#fff;color:#244b38;box-shadow:0 6px 22px #24452a40;font:600 13px Raleway,system-ui,sans-serif;white-space:nowrap;cursor:pointer}
#classroom-dock-reopen[hidden]{display:none}
#classroom-dock-reopen{border:2px solid transparent;transition:border-color .5s ease-out,box-shadow .5s ease-out}
#classroom-dock-reopen[data-speaking="true"]{border-color:#19d36b;box-shadow:0 0 0 4px #19d36b40,0 6px 22px #24452a40;transition:border-color .12s ease-in,box-shadow .12s ease-in}
.classroom-reopen-title{display:inline-flex;align-items:center;gap:8px;font-weight:800}
.classroom-reopen-title svg{width:22px;height:22px}
.classroom-reopen-part{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#d93025;color:#fff}
.classroom-reopen-part[data-on="true"]{background:#00aa59}
.classroom-reopen-part svg{width:16px;height:16px}

.quick-tip{position:fixed;inset:auto;margin:0;max-width:260px;padding:6px 10px;border:0;border-radius:8px;background:#1d2a22;color:#fff;font:600 12px/1.3 Raleway,system-ui,sans-serif;pointer-events:none;box-shadow:0 4px 14px #0000004d}
/* Full screen: the panel's own layout fills it; only the way out stands on top. */
#comms.classroom-dock:is(:fullscreen,.classroom-page-full) .classroom-dock-bar{position:absolute;top:10px;right:12px;z-index:6;padding:0;background:transparent}
#comms.classroom-dock:is(:fullscreen,.classroom-page-full) .classroom-dock-bar strong{display:none}
#comms.classroom-dock:is(:fullscreen,.classroom-page-full)>.classroom-dock-grip,#comms.classroom-dock[data-placement="fill"]>.classroom-dock-grip{display:none}
/* SOR-2653 item 18: the curtain public/module-fade.mjs holds and fades out over a newly mounted module and over the workspace when the
   loader's shield lifts. Not opacity on the module or #workspace: that would make a stacking context and reorder a game's
   fixed layers against the call dock during the fade. */
/* Its colour is the mounting module's: Castle and Race take their theme's --class-bg (above), everything else the page's. */
.core-module-curtain{position:absolute;z-index:1;pointer-events:none;background-color:#f5f7fb;--core-curtain-veil:none}
.core-module-curtain-art{position:absolute;inset:0;background-image:var(--core-curtain-veil,none),var(--core-curtain-art,none);background-size:cover;background-position:center;background-repeat:no-repeat;opacity:0;transition:opacity .3s ease-out}
.core-module-curtain-art[data-ready]{opacity:1}
@media(prefers-reduced-motion:reduce){.core-module-curtain-art{transition:none}}
.core-module-curtain:is([data-app="castle"],[data-app="race"]){background-color:var(--class-bg);--core-curtain-veil:linear-gradient(color-mix(in srgb,var(--class-bg) 70%,transparent),color-mix(in srgb,var(--class-bg) 45%,transparent) 45%,color-mix(in srgb,var(--class-bg) 85%,transparent))}
.core-module-curtain[hidden]{display:none}
/* SOR-2698: MiniClass's pre-join modal (prejoin-dialog.mjs): the look of Core's former connection-lost dialog, one column on a phone and a desktop. */
.mc-prejoin{box-sizing:border-box;width:min(440px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);overflow:auto;padding:22px;border:0;border-radius:28px;background:#fdfffa;color:#2b2b2b;box-shadow:0 0 2px #24452a3d,0 18px 40px -6px #24452a59;font-family:Raleway,system-ui,sans-serif}
.mc-prejoin[open]{display:flex;flex-direction:column;gap:14px}
.mc-prejoin::backdrop{background:#24452a66;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.mc-prejoin-head{display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center}
.mc-prejoin-title{margin:0;color:#018a47;font-size:24px;font-weight:800;line-height:1.2}
.mc-prejoin-ready{margin:0;color:#5c6b60;font-size:15px}
.mc-prejoin-preview{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:16/10;border-radius:20px;overflow:hidden;background:linear-gradient(135deg,#2c4d3b,#173226)}
.mc-prejoin-preview video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.mc-prejoin-preview video[hidden],.mc-prejoin-initials[hidden]{display:none}
/* SOR-2737: the loader while the camera starts (prejoin-dialog.mjs previewPhase 'starting'): over the box on its own
   stage colour, so the not yet playing video under it never shows as a grey box. Reduced motion: the ring stands still. */
.mc-prejoin-loader{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px;background:linear-gradient(135deg,#2c4d3b,#173226);color:#fff;font-size:15px;font-weight:600;line-height:1.3;text-align:center}
.mc-prejoin-loader[hidden]{display:none}
.mc-prejoin-spin{box-sizing:border-box;width:44px;height:44px;border-radius:50%;border:4px solid #ffffff38;border-top-color:#01aa59;animation:mc-prejoin-spin .9s linear infinite}
@keyframes mc-prejoin-spin{to{transform:rotate(1turn)}}
@media (prefers-reduced-motion:reduce){.mc-prejoin-spin{animation:none;border-color:#01aa59;opacity:.6}}
.mc-prejoin-initials{display:grid;place-items:center;width:min(96px,32%);aspect-ratio:1;border-radius:50%;background:#01aa59;color:#fff;font-size:34px;font-weight:800}
.mc-prejoin-toggles{display:flex;gap:10px}
.mc-prejoin button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.mc-prejoin button:focus-visible{outline:3px solid #01aa59;outline-offset:3px}
.mc-prejoin-toggle{flex:1 1 0;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:10px;padding:10px 12px;border:2px solid #ebf4da;border-radius:18px;background:#fdeeea;color:#2b2b2b;text-align:left;transition:background-color .16s,border-color .16s}
.mc-prejoin-toggle.on{border-color:#01aa59;background:#e3f6ea}
.mc-prejoin-icon{grid-row:1/3;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#d9442b;color:#fff}
.mc-prejoin-toggle.on .mc-prejoin-icon{background:#01aa59}
.mc-prejoin-icon svg{width:22px;height:22px}
.mc-prejoin-name{align-self:end;min-width:0;overflow:hidden;font-size:15px;font-weight:700;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.mc-prejoin-state{align-self:start;font-size:13px;line-height:1.2;color:#5c6b60}
.mc-prejoin-consent{margin:0;padding:10px 12px;border-radius:14px;background:#e3f6ea;color:#4e5e52;font-size:13px;line-height:1.35;text-align:center}
.mc-prejoin-join{min-height:52px;padding:12px 24px;border:0;border-radius:18px;background:#01aa59;color:#fff;font-size:17px;font-weight:800;box-shadow:0 4px 0 #018a47,0 12px 18px #01aa5940;transition:transform .12s,box-shadow .12s}
.mc-prejoin-join:hover{transform:translateY(-2px)}
.mc-prejoin-join:active{transform:translateY(3px);box-shadow:0 1px 0 #018a47}
.mc-prejoin-quiet{align-self:center;padding:6px 12px;border:0;border-radius:12px;background:transparent;color:#5c6b60;font-size:15px;font-weight:600}
.mc-prejoin-quiet:hover{background:#fdeeea;color:#2b2b2b}
@media (max-width:340px){.mc-prejoin-toggles{flex-direction:column}}
@media (max-height:560px){.mc-prejoin-preview{display:none}}
@media (prefers-reduced-motion:reduce){.mc-prejoin-join{transition:none}}
/* The teacher's running lesson (prejoin-dialog.mjs passive): not modal, a light veil that catches no click, the card centred above the page. */
.mc-prejoin.passive[open]{position:fixed;inset:0;z-index:2147483000;margin:auto;height:fit-content}
.mc-prejoin-veil{position:fixed;inset:0;z-index:2147482999;background:#24452a26;pointer-events:none}
.mc-prejoin-veil[hidden]{display:none}
.mc-prejoin-toggle:not(.on){--mc-prejoin-slash:#d9442b}
