.room-footer [data-action=mic],.room-footer [data-action=camera]{min-width:64px}
.room-footer .media-on{color:var(--green,#197769);background:#e7f1ed;box-shadow:inset 0 -2px #197769}
/* Reserve space in the reading stage only. Writing/footer controls never move. */
.canvas-area>.stage{margin-top:var(--call-dock-top,0px);margin-right:var(--call-dock-right,0px)}
.call-window{position:fixed;z-index:6;display:flex;flex-direction:column;overflow:hidden;background:#fff;border-radius:8px;color:#263b43}
.call-window[hidden],.call-window [hidden],.call-gallery-scrim[hidden],.call-gallery-scrim [hidden]{display:none!important}
.call-head{height:32px;flex:none;display:flex;align-items:center;gap:2px}
.call-head button{height:32px;min-height:32px;padding:0 8px;border:0;background:transparent;white-space:nowrap;font-size:12px;box-shadow:none}
.call-head [data-call=all]{margin-right:auto;color:#42695b}
.call-head [data-call=close],.call-head [data-call=minimize]{width:36px;flex:none;padding:0;font-size:21px}
.call-head .call-drag{width:32px;flex:none;padding:0;cursor:grab;touch-action:none;font-size:21px;color:#688176}
.call-head button:hover{background:#eaf2ef}
.call-strip{display:flex;align-items:stretch;gap:6px;flex:1;min-height:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior:contain;scrollbar-width:thin;padding:0 2px 3px;touch-action:pan-x}
.call-strip.few{justify-content:center}
.call-window.side .call-strip.few{justify-content:flex-start}
.call-tile{position:relative;flex:0 0 calc((100% - 18px)/4);min-width:0;min-height:0;overflow:hidden;border-radius:5px;background:#f5f8f6;box-shadow:inset 0 0 0 1px #e5eee8}
.call-tile.speaking{box-shadow:inset 0 0 0 2px #197565}
/* Media and loading status share one fixed surface; neither creates grid rows.
   Explicit edges also prevent portrait intrinsic dimensions from overflowing. */
.call-picture{position:absolute;inset:0;overflow:hidden}
.call-picture video{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:none;max-height:none;object-fit:cover;object-position:center}
.call-placeholder{position:absolute;inset:0;z-index:1;display:grid;place-items:center;font-size:10px;color:#708578;text-align:center;background:#f5f8f6;padding:0 4px}
.call-tile.speaking::after{content:"";position:absolute;inset:0;border:2px solid #197565;border-radius:inherit;pointer-events:none}
.call-grid .call-picture{background:#183039}
.call-grid .call-picture video{object-fit:contain}
.call-name{position:absolute;bottom:0;left:0;right:0;padding:3px 5px;line-height:14px;font-size:10px;color:#fff;background:linear-gradient(transparent,#183e2eaa);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
.call-pin{display:none}
.call-window.floating{box-shadow:0 3px 16px #21352e38;border:1px solid #dce7df}
.call-window.minimized{box-shadow:0 2px 10px #21352e24;border:1px solid #dce7df}
.call-window.minimized .call-head{height:100%}
.call-window.minimized .call-strip{display:none}
.call-window.side .call-head{height:64px;flex-wrap:wrap;gap:0}
.call-window.side .call-head [data-call=all]{padding:0 4px;flex:1;font-size:11px}
.call-window.side .call-head [data-call=minimize],.call-window.side .call-head [data-call=close]{width:50%}
.call-window.side .call-strip{flex-direction:column;overflow-x:hidden;overflow-y:auto;touch-action:pan-y}
.call-window.side .call-tile{flex:0 0 88px}
.call-window.compact-side .call-head{height:32px;flex-wrap:nowrap}
.call-window.compact-side .call-head [data-call=all]{min-width:0;overflow:hidden;text-overflow:ellipsis}
.call-window.compact-side .call-head [data-call=minimize],.call-window.compact-side .call-head [data-call=close]{width:32px}
.call-window.compact-side .call-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:calc((100% - 6px)/2)}
.call-gallery-scrim{position:fixed;inset:0;z-index:25;background:#233b354d;display:flex;align-items:center;justify-content:center;padding:16px}
.call-gallery{width:min(760px,100%);height:min(var(--gallery-height,700px),80dvh,700px);max-height:calc(100dvh - 32px);display:flex;flex-direction:column;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 8px 36px #183b2930}
.call-gallery-head{flex:none;display:flex;align-items:center;justify-content:space-between;padding:10px 14px;gap:8px}
.call-gallery-head h2{font-size:16px;margin:0 0 4px}
.call-device-state{font-size:11px;color:#718278}
.call-gallery-head button{width:44px;height:44px;min-height:44px;font-size:25px;padding:0}
.call-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));grid-auto-rows:150px;align-content:start;overflow:auto;min-height:0;gap:8px;padding:0 12px 12px;overscroll-behavior:contain}
.call-grid .call-name{font-size:12px;padding:6px}
.call-grid .call-pin{display:block;position:absolute;top:2px;right:2px;min-height:36px;padding:0 8px;background:#ffffffdf;font-size:11px;color:#375d4d}
.call-grid .call-pin[aria-pressed=true]{background:#197565;color:#fff}
.call-grid .call-placeholder{font-size:12px}
.room-code-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0}
.room-code{font-size:28px;font-weight:600;letter-spacing:5px}
.room-code-help{font-size:12px;color:#687c70;margin:4px 0 16px}
@media(max-width:620px),(max-width:1000px) and (max-height:500px){
 .room-footer .footer-left{grid-template-columns:repeat(5,minmax(0,1fr))}
 .room-footer [data-action=mic],.room-footer [data-action=camera]{display:inline-block;min-width:0}
 .room-footer [data-action=zoomMenu]{display:none}
 .room-footer .tool{padding:0 4px}
 .call-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:150px}
}
@media(max-height:480px){.call-gallery{height:min(var(--gallery-height,700px),calc(100dvh - 24px))}.call-gallery-scrim{padding:12px}.call-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:128px}}
.call-head .call-drag{width:38px;font-size:11px}
.call-head [data-call=minimize]{width:40px;font-size:12px}
.call-head [data-call=close]{width:60px;font-size:12px}
.call-head [data-call=all]{min-width:0;padding:0 4px}
.call-window.side .call-head{display:grid;grid-template-columns:1fr 1fr;height:64px;gap:0}
.call-window.side .call-head button{width:100%;padding:0 2px}
.call-window.side .call-head [data-call=minimize],.call-window.side .call-head [data-call=close]{width:100%}
.call-window.minimized .call-head{height:36px}
.call-window.minimized .call-head button{height:36px}

/* Audio-only participants use the same indicator as video callers. */
.member-top .avatar{position:relative;flex:none;overflow:visible}
.speaker-badge{position:absolute;right:-5px;bottom:-4px;display:grid;place-items:center;width:20px;height:20px;border:2px solid white;border-radius:50%;background:#197565;color:white}
.speaker-badge svg{width:14px;height:14px}
.member-speaking .avatar{box-shadow:0 0 0 2px #197565}
.member-top .speaker-label{display:block;color:#156b5d;font-size:11px;font-weight:600;line-height:16px}
.speaker-badge[hidden],.room-speaking-bar[hidden]{display:none!important}
.speaker-label[hidden]{display:block!important;visibility:hidden}
.room-speaking-bar{display:none;flex:none;align-items:center;gap:8px;height:28px;padding:0 12px;border-bottom:1px solid #dce9e3;background:#f5f9f7;color:#687c70;font-size:12px}
.speaking-names{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.speaking-count{flex:none;font-weight:600}
.room-speaking-bar.has-speakers{color:#156b5d}
.room-empty .room-speaking-bar{display:flex}
@media(max-width:900px),(max-width:1000px) and (max-height:500px){.room-speaking-bar{display:flex}}
