/* Studio Calls / Huddles Stage (CSP style-src 'self' safe) */
.call-stage-host[hidden],
.call-stage [hidden] { display: none !important; }
.call-hdr-slot { display: inline-flex; align-items: center; margin-left: 8px; flex-shrink: 0; }
.call-hdr-btn { font-size: 12.5px; padding: 5px 11px; border-radius: 16px; background: var(--panel2); border: 1px solid var(--line); color: var(--text); font-weight: 600; white-space: nowrap; }
.call-hdr-btn:hover { border-color: var(--ok); color: #fff; }
.call-hdr-btn.active { background: rgba(63, 191, 127, .18); border-color: rgba(63, 191, 127, .55); color: #8af0bb; }
.call-hdr-btn.in-call { background: rgba(229, 83, 75, .18); border-color: rgba(229, 83, 75, .55); color: #ffb0aa; }

.call-stage-host { flex-shrink: 0; }
.call-lobby { background: linear-gradient(180deg, #1a202c 0%, #151922 100%); border-bottom: 1px solid var(--line); padding: 14px 18px; display: grid; gap: 10px; }
.call-lobby-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.call-lobby select { max-width: 280px; }
.call-status-txt { color: var(--dim); font-size: 12px; }

.call-stage { background: #101319; border-bottom: 1px solid var(--line); padding: 10px 16px 12px; display: grid; gap: 10px; }
.call-stage.collapsed .call-spotlight,
.call-stage.collapsed .call-grid,
.call-stage.collapsed .call-dev-pop { display: none; }

.call-stage-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.call-live-pill { font-size: 11.5px; font-weight: 700; color: #7ef0b5; background: rgba(63, 191, 127, .16); border: 1px solid rgba(63, 191, 127, .42); border-radius: 12px; padding: 2px 9px; }
.call-timer { font: 600 12px/1 ui-monospace, Consolas, monospace; color: var(--text); }
.call-count { font-size: 12px; color: var(--dim); }
.call-stage-top .call-status-txt { flex: 1; min-width: 120px; }
.call-mini-btn { font-size: 11.5px; padding: 3px 9px; }

/* Screen-share spotlight */
.call-spotlight { display: grid; gap: 8px; }
.call-spot-card { background: #090b0f; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; display: grid; }
.call-spot-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; background: #151922; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text); }
.call-spot-vid { width: 100%; max-height: 320px; object-fit: contain; background: #050608; display: block; }

/* Participant tile grid */
.call-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 240px)); gap: 10px; }
.call-tile { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #181c26; border: 2px solid #282e3d; display: grid; place-items: center; transition: border-color .15s, box-shadow .15s; }
.call-tile.speaking { border-color: #3fbf7f; box-shadow: 0 0 0 3px rgba(63, 191, 127, .28); }
.call-tile-av { width: 54px; height: 54px; border-radius: 50%; background: #293246; color: #e8eef8; font-weight: 700; font-size: 18px; display: grid; place-items: center; overflow: hidden; border: 2px solid rgba(255,255,255,.12); }
.call-tile-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.call-tile-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0c0e13; }
.call-tile-foot { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 6px; background: rgba(12, 14, 19, .78); font-size: 11.5px; color: #f0f3f9; backdrop-filter: blur(4px); }
.call-tile-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.call-tile-muted { font-size: 11px; }
.call-tile-state { font-size: 10.5px; color: var(--dim); }
.call-tile-state.live { color: #7ef0b5; }

/* Device picker popover */
.call-dev-pop { display: flex; flex-wrap: wrap; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; }
.call-dev-pop label { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); }
.call-dev-pop select { max-width: 240px; font-size: 12px; }

/* Studio control dock */
.call-dock { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding-top: 2px; }
.call-dock button { padding: 6px 13px; border-radius: 18px; font-size: 12.5px; font-weight: 600; background: #1e2330; border: 1px solid #32394a; }
.call-dock button:hover { background: #272d3d; border-color: var(--accent); }
.call-dock button.on { background: #254675; border-color: var(--accent); color: #fff; }
.call-dock button.muted { background: rgba(227, 179, 65, .16); border-color: rgba(227, 179, 65, .5); color: #f7d882; }
.call-dock button.call-leave-btn { background: #b93832; border-color: #d94a43; color: #fff; }
.call-dock button.call-leave-btn:hover { background: #cf413a; }
