/* TELTV studio interface */
.is-admin-user .teltv-support-trigger { display:none !important; }
.teltv-support-overlay { position:fixed; inset:0; z-index:20000; background:#0009; display:grid; place-items:center; padding:12px; }
.teltv-support-overlay.hidden { display:none; }
.teltv-support-card { width:min(100%,520px); max-height:90dvh; display:flex; flex-direction:column; background:#192016; border:1px solid #61734f; border-radius:16px; padding:16px; box-sizing:border-box; }
.teltv-support-header { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.teltv-support-header h2 { font-size:20px; margin:0; }
#teltvSupportStatus { font-size:12px; color:#bdcdb1; }
.teltv-support-history { min-height:100px; height:32dvh; overflow-y:auto; padding:8px; border:1px solid #48563e; border-radius:10px; }
.teltv-support-message { padding:10px; margin-bottom:8px; background:#283422; border-radius:10px; overflow-wrap:anywhere; }
.teltv-support-message p { margin:5px 0 0; white-space:pre-wrap; }
#teltvSupportForm { display:grid; gap:8px; margin-top:12px; }
#teltvSupportInput { width:100%; box-sizing:border-box; resize:vertical; max-height:20dvh; }
.teltv-body-hint { color:#bdcdb1; font-size:12px; line-height:1.5; margin:0 0 10px; }
.codex-studio #studioControlsBar { max-width: calc(100vw - 16px) !important; }
.teltv-panel-handle { display:flex; flex:0 0 auto; gap:8px; align-items:center; position:relative; z-index:5; background:rgba(25,32,22,.85); padding:0 0 8px; }
.teltv-panel-handle button { min-width:44px; min-height:44px; border:1px solid #61734f; border-radius:9px; background:#283422; color:#dcebd0; padding:9px 12px; font-size:12px; }
.teltv-panel-grip { flex:1; cursor:grab; touch-action:none; user-select:none; -webkit-user-select:none; }
.teltv-panel-grip:active { cursor:grabbing; }
.codex-studio #studioControlsBar.teltv-panel-outside-call { display:none !important; }
.teltv-panel-content { flex:1 1 auto; min-height:0; overflow-x:hidden; overflow-y:auto; touch-action:pan-y; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
.codex-studio #studioControlsBar #closeStudioBarBtn { display:none !important; }
.codex-studio #studioControlsBar.teltv-panel-compact > :not(.teltv-panel-handle) { display:none !important; }
.teltv-call-quality { position:relative; }
.teltv-call-quality > summary { cursor:pointer; padding:7px 11px; background:#283422; color:#dcebd0; border:1px solid #61734f; border-radius:9px; font-size:12px; }
.teltv-call-quality .teltv-quality-control { position:fixed; right:max(12px,env(safe-area-inset-right)); width:min(280px,calc(100vw - 24px)); background:#192016; border:1px solid #61734f; border-radius:12px; padding:12px; z-index:100; }
.codex-studio .top-right-actions { overflow:visible !important; }
.teltv-sound-status { color: #a4aca5; font-size: 12px; padding: 8px 14px; margin: 0; }
.teltv-quality-control { grid-column: 1 / -1; width: 100%; }
.teltv-quality-control label { display: grid; gap: 7px; color: #c6d1bd; font-size: 12px; }
.teltv-quality-control select { width: 100%; padding: 8px 10px; }
.teltv-quality-control p { font-size: 11px; line-height: 1.5; color: #a5b19a; margin-top: 8px; }
.codex-studio #studioControlsBar { z-index:160 !important; background:rgba(25,32,22,.78) !important; backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); border:1px solid #61734f !important; border-radius:18px !important; padding:12px !important; max-height:min(84dvh,var(--teltv-panel-available-height,84dvh)) !important; overflow:hidden !important; touch-action:pan-y; }
.codex-studio #beautyFoldersBar { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px !important; }
.codex-studio #beautyFoldersBar.hidden { display: none !important; }
.codex-studio .beauty-folder-card { min-height: 82px !important; width: auto !important; min-width: 0 !important; background: #242f1e !important; border: 1px solid #4c5d40 !important; border-radius: 12px !important; box-shadow: none !important; padding: 12px !important; }
.codex-studio .beauty-folder-card .folder-name { font-size: 12px !important; line-height: 1.4; color: #dbe8d1 !important; }
.codex-studio #beautyMasksCarousel { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px !important; overflow: visible !important; }
.codex-studio #beautyMasksCarousel.hidden { display: none !important; }
.codex-studio .beauty-mask-chip { display: flex !important; flex-direction: column; justify-content: center; gap: 5px; width: auto !important; min-width: 0 !important; min-height: 64px !important; border-radius: 11px !important; padding: 12px !important; font-size: 12px !important; white-space: normal !important; background: #283422 !important; border: 1px solid #4e6240 !important; color: #dcebd0 !important; text-align: left !important; }
.codex-studio .beauty-mask-chip.active { background: #c4ee86 !important; border-color: #d2f5a6 !important; color: #1b2812 !important; }
.codex-studio .beauty-mask-chip small { font-size: 10px; opacity: .68; line-height: 1.3; }
.codex-studio #carouselBackToFoldersBtn { grid-column: 1 / -1; min-height: 42px; border-radius: 10px; background: #343f2d; color: #e4eddc; border: 1px solid #61734f; }
.codex-studio #teltvMaskSearch { width: 100%; margin: 8px 0 12px; padding: 10px 12px; }
.codex-studio #studioControlsBar .hidden { display: none !important; }
@media (max-width: 600px) {
  .codex-studio #beautyFoldersBar { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .codex-studio #beautyMasksCarousel { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .codex-studio #studioControlsBar input[type=search] { font-size:16px !important; }
  .codex-studio #studioControlsBar .studio-intensity-wrap { flex-wrap:wrap; }
  .codex-studio #studioControlsBar .studio-intensity-label { white-space:normal; }
}
:root {
  color-scheme: dark;
  --bg-dark: #101211;
  --bg-card: #191c1a;
  --bg-panel: #1b1e1c;
  --text-main: #f1f3ed;
  --text-muted: #a4aca5;
  --accent: #c4ee86;
  --accent-hover: #d3f8a1;
  --border-subtle: #343a34;
}
body.codex-studio { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
.codex-studio .lobby-screen { background: #101211 !important; padding: 32px max(24px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) !important; }
.codex-studio .lobby-card { max-width: 1200px !important; padding: 0 !important; margin: 0 auto !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; gap: 24px !important; overflow: visible !important; }
.codex-studio .brand-header { gap: 12px !important; padding: 0 0 22px; border-bottom: 1px solid #30352f; }
.codex-studio .brand-logo { width: 42px; height: 42px; background: #c4ee86 !important; color: #172012; border-radius: 12px; }
.codex-studio .brand-header h1 { color: #f1f3ed; font-size: 24px; letter-spacing: -1px; font-weight: 750; }
.studio-wordmark-detail { margin-left: 9px; font-size: 10px; font-weight: 500; letter-spacing: 2.5px; color: #a4aca5; vertical-align: middle; }
.codex-studio .subtitle { color: #9ca59c !important; font-size: 12px; margin-top: 3px; }
.codex-studio .brand-header-actions { gap: 8px !important; }
.codex-studio .header-quick-btn { height: 40px; padding: 8px 12px !important; font-size: 12px !important; background: #1c201c !important; color: #c5cdc3 !important; border: 1px solid #353d33 !important; border-radius: 10px !important; box-shadow: none !important; }
.studio-eyebrow { color: #a5b09e; font-size: 10px; font-weight: 650; letter-spacing: 2px; }
.studio-build { flex-shrink: 0; font: 10px ui-monospace, monospace; color: #c4ee86; border: 1px solid #3f5030; background: #1a2316; border-radius: 7px; padding: 8px 11px; }
.studio-workspace { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; gap: 28px; }
.studio-main, .studio-side { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.studio-section-heading { display: flex; justify-content: space-between; align-items: center; color: #dbe1d7; font-size: 13px; }
.studio-device-label { color: #8d9789; font-size: 9px; letter-spacing: 1.6px; }
.codex-studio .lobby-preview-box { width: 100% !important; height: auto !important; aspect-ratio: 4/3; min-height: 300px; border: 1px solid #353d33 !important; border-radius: 20px !important; background: #1d231d !important; box-shadow: none !important; }
.codex-studio .lobby-preview-box::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 48% 40%, #283523 0%, #1c231c 65%); }
.codex-studio .lobby-preview-box video { position: relative; }
.codex-studio .camera-off-overlay { z-index: 3; background: transparent !important; color: #b3bcae; gap: 14px; font-size: 13px; text-align: center; padding: 20px; }
.codex-studio .gmeet-lobby-bar { z-index: 5; background: #131912e8 !important; border: 1px solid #3a4436 !important; border-radius: 14px !important; box-shadow: none !important; padding: 8px !important; }
.codex-studio .gmeet-lobby-bar .gmeet-btn { height: 44px !important; border-radius: 9px !important; background: #293026 !important; border: 1px solid #424c3b !important; color: #e3eadc !important; font-size: 12px !important; }
.codex-studio .gmeet-btn.is-off, .codex-studio .gmeet-btn.muted-state { color: #ffb0a8 !important; background: #412825 !important; }
.codex-studio .lobby-device-bar { display: grid !important; grid-template-columns: 1fr 1fr auto; gap: 10px !important; padding: 16px !important; border: 1px solid #343b32 !important; border-radius: 14px !important; background: #191e18 !important; }
.codex-studio .device-select-col { min-width: 0; }
.codex-studio .device-select-col label { color: #adb6a7; font-size: 11px; }
.codex-studio input, .codex-studio select, .codex-studio textarea { min-width: 0; color: #e9eee5 !important; background: #121710 !important; border: 1px solid #40493b !important; border-radius: 10px !important; font: inherit; font-size: 14px; min-height: 44px; box-shadow: none !important; }
.codex-studio input::placeholder { color: #929e8b; }
.codex-studio input, .codex-studio textarea { user-select: text; -webkit-user-select: text; }
.codex-studio :focus-visible { outline: 2px solid #d5fca2 !important; outline-offset: 3px; }
.codex-studio .primary-btn { color: #18230f !important; background: #c4ee86 !important; border: 1px solid #c4ee86 !important; border-radius: 10px !important; box-shadow: none !important; font-weight: 650; min-height: 44px; }
.codex-studio .primary-btn:hover { background: #d3f8a1 !important; }
.codex-studio .secondary-btn { color: #e1e8db !important; background: #252d21 !important; border: 1px solid #47533e !important; border-radius: 10px !important; min-height: 40px; }
.codex-studio .danger-btn { background: #482925 !important; border: 1px solid #744039 !important; color: #ffc0b9 !important; border-radius: 10px; }
.codex-studio .auth-section { background: #1a1f18 !important; border: 1px solid #343e2e !important; border-radius: 16px !important; padding: 16px !important; margin: 0 !important; }
.codex-studio .auth-tabs { background: #10160f; border: 0 !important; border-radius: 9px; padding: 4px; margin-bottom: 14px; }
.codex-studio .auth-tab { min-height: 38px; padding: 8px; color: #a8b2a0 !important; border: 0 !important; border-radius: 7px; font-size: 12px; }
.codex-studio .auth-tab.active { color: #e8f1e1 !important; background: #34422a !important; box-shadow: none !important; }
.codex-studio .auth-form { gap: 9px; }
.codex-studio .lobby-actions { display: flex !important; flex-direction: column; gap: 10px !important; margin: 0 !important; }
.codex-studio #createRoomBtn, .codex-studio #createConferenceBtn, .codex-studio #openSoloStudioBtn { display: flex !important; align-items: center; gap: 14px; min-height: 88px !important; padding: 18px !important; background: #1b2019 !important; color: #edf2e8 !important; border: 1px solid #3b4533 !important; border-radius: 14px !important; box-shadow: none !important; text-align: left !important; transition: background .15s, border-color .15s; }
.codex-studio #createRoomBtn { background: #c4ee86 !important; color: #1a2611 !important; border-color: #c4ee86 !important; }
.codex-studio #createConferenceBtn:hover, .codex-studio #openSoloStudioBtn:hover { background: #2b3524 !important; border-color: #79905f !important; }
.studio-room-number { flex-shrink: 0; width: 36px; height: 36px; display: grid; place-items: center; font: 12px ui-monospace, monospace; border: 1px solid currentColor; border-radius: 50%; opacity: .65; }
.studio-room-copy { flex: 1; }
.studio-room-copy strong, .studio-room-copy small { display: block; }
.studio-room-copy strong { font-size: 17px; font-weight: 650; line-height: 1.3; }
.studio-room-copy small { font-size: 12px; font-weight: 400; opacity: .72; margin-top: 5px; line-height: 1.4; }
.studio-room-arrow { font-size: 23px; font-weight: 400; }
.codex-studio .join-by-code-row { margin-top: 4px; gap: 8px; }
.codex-studio .join-by-code-row input { width: 100%; }
.codex-studio .contacts-panel, .codex-studio .admin-rooms-panel { margin: 0 !important; background: #1a1f18 !important; border: 1px solid #343e2e !important; border-radius: 14px !important; box-shadow: none !important; }
.codex-studio .contacts-header { min-height: 48px; padding: 13px !important; background: transparent !important; color: #e0e8d8 !important; border-color: #36412f !important; }
.codex-studio .contacts-sub { color: #9aa88f !important; font-size: 10px; }
.codex-studio .contacts-count-badge { background: #34422a !important; color: #d0e8b8 !important; }
.codex-studio .empty-hint { color: #a4b099 !important; font-size: 12px; padding: 18px 10px; }
.codex-studio .studio-install { margin: 6px 0 0 !important; padding: 20px 0 !important; border: 0 !important; border-top: 1px solid #30392a !important; border-radius: 0 !important; background: transparent !important; }
.codex-studio .app-install-title { font-size: 14px; font-weight: 550; color: #dce5d4; }
.codex-studio .app-install-sub { color: #a2ad99; font-size: 12px; }
.codex-studio .app-install-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.codex-studio .app-dl-btn { min-height: 42px; background: #20271c !important; border: 1px solid #414d37 !important; color: #cddbc1 !important; border-radius: 9px; font-size: 12px; font-weight: 500; }
.codex-studio .user-profile-bar, .codex-studio .avatar-picker-box { background: #1b2317 !important; border-color: #414d37 !important; border-radius: 12px; }
.codex-studio .call-screen, .codex-studio .remote-stage { background: #101410 !important; }
.codex-studio .bottom-bar { background: #181f16ed !important; border-color: #3c4933 !important; backdrop-filter: blur(16px); padding-bottom: max(12px, env(safe-area-inset-bottom)) !important; }
.codex-studio .gmeet-call-btn { background: #293323 !important; border-color: #45533b !important; color: #e4eddc !important; border-radius: 13px !important; min-width: 48px; min-height: 48px; box-shadow: none !important; }
.codex-studio .gmeet-call-btn.is-off, .codex-studio .gmeet-call-btn.muted-state { background: #4c2b26 !important; color: #ffc2b9 !important; border-color: #815045 !important; }
.codex-studio .gmeet-call-btn.active-feature { background: #425b2c !important; border-color: #91b56e !important; }
.codex-studio .top-right-actions { top: max(12px, env(safe-area-inset-top)) !important; right: max(12px, env(safe-area-inset-right)) !important; }
.codex-studio .side-drawer, .codex-studio .call-chat-drawer, .codex-studio .incoming-card { background: #1a2117 !important; border-color: #4a593e !important; border-radius: 18px; box-shadow: 0 20px 80px #0006 !important; }
.codex-studio .toast { background: #293b1c !important; color: #eff8e7 !important; border-color: #708953 !important; }
.studio-break-overlay { position: fixed; inset: 0; z-index: 2147483647; background: #11170f; display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); overflow-y: auto; }
.studio-break-card { width: 100%; max-width: 420px; text-align: center; display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.studio-pause-symbol { color: #c4ee86; background: #26331d; border: 1px solid #586d40; border-radius: 24px; width: 88px; height: 88px; display: grid; place-items: center; font-size: 36px; margin: 10px auto; }
.studio-break-card h1 { font-size: 32px; letter-spacing: -1px; font-weight: 550; }
.studio-break-card p { color: #c7d1be; font-size: 15px; line-height: 1.6; }
.studio-break-card .studio-break-note, .studio-break-card small { color: #a2b094; font-size: 12px; line-height: 1.6; }
.studio-break-card button { min-height: 48px; font-size: 14px; }
.studio-break-room { padding: 12px; color: #cce8ae; border: 1px solid #405333; border-radius: 10px; font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 800px) {
  .codex-studio .lobby-screen { padding: max(20px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom)) !important; }
  .codex-studio .lobby-card { gap: 20px !important; max-width: 620px !important; }
  .studio-workspace { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .codex-studio .brand-header-actions { width: 100%; margin-top: 8px; margin-left: 0 !important; }
  .codex-studio .header-quick-btn { flex: 1; }
  .codex-studio .lobby-preview-box { min-height: 280px; }
  .codex-studio .lobby-device-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 12px !important; }
  .codex-studio #refreshLocalDevicesBtn { grid-column: 1/-1; }
  .codex-studio input, .codex-studio select, .codex-studio textarea { font-size: 16px !important; }
  .codex-studio .app-install-btns { display: grid; grid-template-columns: minmax(0, 1fr); }
  .codex-studio .contacts-header { flex-wrap: wrap; gap: 6px; }
  .studio-build { font-size: 8px; padding: 6px; }
  .codex-studio .gmeet-lobby-bar .gmeet-btn { font-size: 11px !important; min-height: 44px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .codex-studio *, .codex-studio *::before, .codex-studio *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.codex-studio .hidden, .codex-studio .lobby-actions.hidden { display: none !important; }

/* Compact shared chrome. Only controls are positioned; video frames are untouched. */
:root{--teltv-glass:rgba(18,25,21,.66);--teltv-line:rgba(197,222,193,.24);--teltv-chrome-bottom:100px;--teltv-controls-top:100vh}
.codex-studio #teltvCallChrome{position:fixed;top:calc(env(safe-area-inset-top,0px) + 6px);left:8px;right:8px;z-index:220;pointer-events:none;display:flex;flex-direction:column;gap:6px;min-width:0}
.codex-studio #teltvCallChrome .top-right-actions,.codex-studio #teltvCallChrome .top-bar-indicators{position:static!important;inset:auto!important;transform:none!important;width:100%!important;max-width:none!important;min-width:0;pointer-events:auto;margin:0!important}
.codex-studio #teltvCallChrome .top-right-actions{display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;overflow-x:auto!important;overflow-y:visible;gap:5px!important;scrollbar-width:thin;touch-action:pan-x;padding:3px}
.codex-studio #teltvCallChrome .top-right-actions button,.codex-studio #teltvCallChrome summary{min-height:38px!important;padding:7px 10px!important;border-radius:10px!important;border:1px solid var(--teltv-line)!important;background:var(--teltv-glass)!important;box-shadow:none!important;backdrop-filter:blur(10px);color:#edf4e9!important;font-size:12px!important;flex:none}
.codex-studio #teltvCallChrome .top-bar-indicators{display:flex!important;flex-wrap:wrap!important;gap:4px!important;max-height:60px;overflow:auto;font-size:11px!important}
.codex-studio #teltvCallChrome .top-bar-indicators>div{max-width:100%;overflow:hidden;text-overflow:ellipsis;background:var(--teltv-glass)!important;border:1px solid var(--teltv-line)!important;box-shadow:none!important;padding:5px 8px!important;font-size:11px!important}
.codex-studio :is(.bottom-bar,.side-drawer,.call-chat-drawer,.call-device-menu,.teleprompter-overlay,.split-pane-bar,.split-global-toolbar,.admin-quick-nav-frame,.live-stream-drawer){background:var(--teltv-glass)!important;border:1px solid var(--teltv-line)!important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 6px 24px #0003!important;border-radius:14px!important}
.codex-studio :is(.side-drawer,.call-chat-drawer,.teleprompter-overlay,.call-device-menu){z-index:180!important;font-size:12px!important;max-width:calc(100vw - 16px)!important}
.codex-studio .split-global-toolbar{top:calc(var(--teltv-chrome-bottom) + 8px)!important;z-index:190!important;padding:5px!important;display:flex;flex-wrap:nowrap!important;overflow-x:auto;max-width:calc(100vw - 16px)!important;gap:5px!important}
.codex-studio :is(.split-global-pill,.split-mini-btn,.teleprompter-win-btn,.close-mini-btn){min-height:36px!important;padding:5px 8px!important;font-size:11px!important;background:rgba(45,57,44,.7)!important;border:1px solid var(--teltv-line)!important;border-radius:8px!important;box-shadow:none!important}
.codex-studio .teleprompter-header{padding:5px 7px!important;background:transparent!important}
.codex-studio .bottom-bar{padding:6px 8px max(6px,env(safe-area-inset-bottom))!important;gap:5px!important;max-width:calc(100vw - 16px)!important}
.codex-studio .gmeet-call-btn{min-width:40px!important;min-height:40px!important;padding:6px 8px!important;border-radius:10px!important;font-size:15px!important;background:rgba(45,57,44,.65)!important;border:1px solid var(--teltv-line)!important}
.codex-studio #studioControlsBar{width:min(620px,calc(100vw - 16px))!important;z-index:200!important;padding:7px!important;border-radius:14px!important;background:var(--teltv-glass)!important;border:1px solid var(--teltv-line)!important;max-height:min(250px,var(--teltv-panel-available-height,250px))!important;min-height:0!important;box-shadow:0 6px 24px #0003!important}
.codex-studio .teltv-panel-handle{display:flex;gap:5px;padding:0 0 5px;align-items:center;min-height:32px}
.codex-studio .teltv-panel-handle button{min-height:32px!important;min-width:32px!important;width:auto!important;flex:none!important;padding:4px 8px!important;border-radius:8px!important;font-size:12px!important;background:rgba(45,57,44,.65)!important;border:1px solid var(--teltv-line)!important}
.codex-studio .teltv-panel-grip{max-width:34px!important;touch-action:none}
.codex-studio .teltv-panel-title{font-size:12px;flex:1}
.codex-studio #studioControlsBar .teltv-panel-content{display:flex;flex-direction:column;gap:5px;padding:0;overflow-y:auto;touch-action:auto}
.codex-studio #studioControlsBar .studio-top-row{padding:0;gap:5px;min-height:0;display:flex;flex-wrap:wrap}
.codex-studio #studioControlsBar :is(#studioCurrentFolderTitle,#studioBackToFoldersBtn,#carouselBackToFoldersBtn){display:none!important}
.codex-studio #studioControlsBar #beautyFoldersBar,.codex-studio #studioControlsBar #beautyMasksCarousel{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;gap:5px!important;scrollbar-width:thin;touch-action:pan-x;flex:none;padding:2px 0 5px;margin:0!important;min-height:40px}
.codex-studio #studioControlsBar #beautyMasksCarousel.hidden{display:none!important}
.codex-studio #studioControlsBar .beauty-folder-card,.codex-studio #studioControlsBar .beauty-mask-chip{display:inline-flex!important;flex-direction:row!important;align-items:center;justify-content:center;flex:0 0 auto!important;width:auto!important;min-width:0!important;min-height:36px!important;height:36px!important;padding:6px 10px!important;border-radius:9px!important;white-space:nowrap!important;gap:4px!important;background:rgba(45,57,44,.65)!important;border:1px solid var(--teltv-line)!important;font-size:12px!important}
.codex-studio #studioControlsBar .beauty-mask-chip small,.codex-studio #studioControlsBar .folder-icon{display:none!important}
.codex-studio #studioControlsBar .beauty-mask-chip.active,.codex-studio #studioControlsBar .has-active-mask{background:#bce58c!important;color:#172012!important;border-color:#ccebaf!important}
.codex-studio #studioControlsBar #teltvMaskSearch{display:none!important}
.codex-studio #studioControlsBar .studio-slider-row,.codex-studio #studioControlsBar .studio-intensity-wrap{padding:0!important;margin:0!important;border:0!important;background:transparent!important;min-height:28px;gap:6px!important;flex-wrap:nowrap!important}
.codex-studio #studioControlsBar .studio-intensity-label{font-size:10px!important;white-space:nowrap!important}
.codex-studio #studioControlsBar input[type=range]{min-height:24px!important;width:auto;flex:1}
.codex-studio #studioControlsBar #teltvBodyMaskHint{display:none!important}
.codex-studio #teltvEffectStatus{font-size:10px;color:#d0ddc5;margin:0;min-height:13px;line-height:1.3}
.codex-studio .teltv-call-quality .teltv-quality-control{top:calc(var(--teltv-chrome-bottom) + 5px);background:rgba(18,25,21,.94);z-index:300}
.teltv-ios-help{width:min(360px,calc(100vw - 32px));margin:auto;border:1px solid #6b805f;border-radius:18px;padding:20px;background:#19221b;color:#edf4e9;font:15px/1.5 system-ui;z-index:5000}.teltv-ios-help::backdrop{background:#0007}.teltv-ios-help h2{font-size:19px;margin:0 0 12px}.teltv-ios-help button{width:100%;min-height:44px;margin-top:14px;border-radius:10px;background:#bce58c;color:#172012;border:0}
.codex-studio #studioControlsBar .beauty-mask-chip.hidden{display:none!important}
.codex-studio #teltvCallChrome .split-global-toolbar{position:static!important;inset:auto!important;transform:none!important;justify-content:flex-start!important;width:100%!important;max-width:100%!important;touch-action:pan-x;pointer-events:auto}
.codex-studio #teltvCallChrome .split-global-toolbar.hidden,.codex-studio #teltvCallChrome.hidden{display:none!important}
.codex-studio .bottom-bar.teltv-outside-call{display:none!important}
.codex-studio .teltv-outside-call{display:none!important}
.codex-studio .teleprompter-overlay{max-height:clamp(100px,calc(var(--teltv-controls-top) - var(--teltv-chrome-bottom) - 240px),28vh)!important}
.codex-studio .teleprompter-header{flex-wrap:nowrap!important;overflow-x:auto;flex:none;touch-action:pan-x}
.codex-studio .teleprompter-title-wrap{flex:none;font-size:11px}.codex-studio .teleprompter-win-btns{flex-wrap:nowrap!important;flex:none}.codex-studio .teleprompter-viewport{min-height:40px;overflow-y:auto;touch-action:pan-y}
.codex-studio .teleprompter-speed-bar{padding:3px 8px!important;font-size:11px!important;gap:6px!important;flex:none}.codex-studio .teleprompter-speed-bar input[type=range]{min-height:22px!important;height:22px!important}
.codex-studio .teleprompter-overlay{top:calc(var(--teltv-chrome-bottom) + 8px)!important}

/* Visible scroll affordance, without changing the dimensions of existing controls. */
.codex-studio .teltv-scroll-strip{display:grid;grid-template-columns:minmax(0,1fr);gap:3px 4px;min-width:0;max-width:100%;width:100%;pointer-events:auto;flex:none}
.codex-studio .teltv-scroll-strip.teltv-can-scroll{grid-template-columns:30px minmax(0,1fr) 30px}
.codex-studio .teltv-scroll-arrow{display:none;min-width:30px!important;width:30px!important;min-height:36px!important;padding:0!important;align-self:stretch;border:1px solid #849b72!important;border-radius:8px!important;background:rgba(34,48,30,.92)!important;color:#d5f6b5!important;font:26px/1 system-ui!important;cursor:pointer;box-shadow:none!important;touch-action:manipulation}
.codex-studio .teltv-can-scroll>.teltv-scroll-arrow{display:block}
.codex-studio .teltv-scroll-arrow:disabled{opacity:.3;cursor:default}
.codex-studio .teltv-scroll-hint{display:none;grid-column:1/-1;font:10px/1.3 system-ui;color:#c7d8b7;padding:0 2px 2px;white-space:nowrap}
.codex-studio .teltv-can-scroll>.teltv-scroll-hint{display:block}
.codex-studio .teltv-horizontal-rail{min-width:0!important;max-width:100%!important;overflow-x:auto!important;overscroll-behavior-x:contain;touch-action:pan-x;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#a1bf80 #263322}
.codex-studio .teltv-horizontal-rail::-webkit-scrollbar{height:5px}.codex-studio .teltv-horizontal-rail::-webkit-scrollbar-thumb{background:#a1bf80;border-radius:5px}.codex-studio .teltv-horizontal-rail::-webkit-scrollbar-track{background:#263322}
.codex-studio #studioControlsBar{max-height:min(250px,var(--teltv-panel-available-height,250px))!important}
.codex-studio .teltv-horizontal-rail:focus-visible,.codex-studio .teltv-scroll-arrow:focus-visible{outline:2px solid #c4ee86;outline-offset:1px}

/* Desktop admin tile presentation only. Capture and remote commands are unchanged. */
.codex-studio .teltv-admin-desktop .admin-cam-tile.size-xs{width:195px!important;height:126px!important}
.codex-studio .teltv-admin-desktop .admin-cam-tile.size-s{width:252px!important;height:162px!important}
.codex-studio .teltv-admin-desktop .admin-cam-tile.size-m{width:330px!important;height:210px!important}
.codex-studio .teltv-admin-desktop .admin-cam-tile.size-l{width:465px!important;height:297px!important}
.codex-studio .teltv-admin-desktop .admin-cam-tile.portrait-tile.size-xs{width:123px!important;height:213px!important}
.codex-studio .teltv-admin-desktop .admin-cam-tile.portrait-tile.size-s{width:168px!important;height:288px!important}
.codex-studio .teltv-admin-desktop .admin-cam-tile.portrait-tile.size-m{width:213px!important;height:366px!important}
.codex-studio .teltv-admin-desktop .admin-cam-tile.portrait-tile.size-l{width:277.5px!important;height:477px!important}
.codex-studio .teltv-admin-desktop .admin-tile-state-alerts{top:auto!important;bottom:65px!important;right:6px!important;left:auto!important;max-width:calc(100% - 12px);pointer-events:none}
.codex-studio .teltv-admin-desktop .admin-cam-tile-header{z-index:8!important;align-items:flex-start!important}
.codex-studio .teltv-admin-desktop .admin-cam-tile-user{min-width:0;max-width:calc(100% - 78px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.codex-studio .teltv-admin-desktop .admin-cam-tile-tools{pointer-events:auto!important;display:flex!important;flex-wrap:nowrap!important;flex-shrink:0;gap:3px}
.codex-studio .teltv-admin-desktop .admin-tile-mini-btn{pointer-events:auto!important;flex:none!important;min-width:28px!important;min-height:28px!important}
.codex-studio .teltv-admin-desktop .admin-cam-tile-footer{z-index:8!important;pointer-events:auto!important}
.codex-studio .bottom-bar :is(.bottom-bar-primary-row,.bottom-bar-secondary-row){display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;gap:4px!important;padding:1px!important;scrollbar-width:thin;touch-action:pan-x;max-width:100%}
.codex-studio .bottom-bar .gmeet-call-btn{flex:0 0 auto!important}
.codex-studio #studioControlsBar .studio-record-btn{font-size:11px!important;min-height:32px!important;padding:4px 7px!important}
.codex-studio #studioControlsBar{max-height:min(210px,var(--teltv-panel-available-height,210px))!important}
@media(max-width:600px){.codex-studio #studioControlsBar{max-height:min(205px,var(--teltv-panel-available-height,205px))!important}}
.codex-studio .bottom-bar .gmeet-call-label{font-size:9px!important}
@media(max-width:600px){.codex-studio .bottom-bar .gmeet-call-label{display:none!important}}
@media(max-width:600px){.codex-studio .bottom-bar .gmeet-btn-label{display:none!important}.codex-studio .gmeet-call-btn{min-width:36px!important;min-height:40px!important;padding:5px 8px!important}.codex-studio #studioControlsBar{max-height:230px!important}.codex-studio #studioControlsBar #faceSwapToolsRow button{min-height:34px!important;font-size:11px!important;padding:5px 8px!important}.codex-studio #studioControlsBar .studio-intensity-label{max-width:155px;overflow:hidden}.codex-studio #teltvCallChrome .top-right-actions{max-height:46px}}

.codex-studio .teltv-admin-desktop .admin-cam-tile{cursor:grab;user-select:none}
.codex-studio .teltv-admin-desktop .admin-cam-tile:active{cursor:grabbing}
.codex-studio .teltv-admin-desktop .admin-cam-tile-header{flex-direction:column;gap:4px;pointer-events:none}
.codex-studio .teltv-admin-desktop .admin-cam-tile-user{max-width:100%;font-size:11px}
.codex-studio .teltv-admin-desktop .admin-cam-tile-tools{align-self:flex-end}
.codex-studio .teltv-admin-desktop .admin-cam-tile button{cursor:pointer}

/* Keep the recovery target above auxiliary panels and outside the call surface stacking context. */
.codex-studio #bottomBar{z-index:210}
.codex-studio #expandBottomBarBtn{z-index:230;min-height:40px;bottom:max(10px,env(safe-area-inset-bottom));pointer-events:auto;touch-action:manipulation}
.codex-studio #expandBottomBarBtn.teltv-outside-call{display:none!important}

/* Telegram UI insets affect controls only; video framing is unchanged. */
.codex-studio.teltv-telegram #teltvCallChrome{top:calc(max(env(safe-area-inset-top,0px),var(--teltv-tg-top,0px)) + 6px);left:max(8px,var(--teltv-tg-left,0px));right:max(8px,var(--teltv-tg-right,0px))}
.codex-studio.teltv-telegram #bottomBar,.codex-studio.teltv-telegram #expandBottomBarBtn{bottom:calc(max(env(safe-area-inset-bottom,0px),var(--teltv-tg-bottom,0px)) + 10px)}
.teltv-telegram #lobbyScreen{padding-top:calc(max(env(safe-area-inset-top,0px),var(--teltv-tg-top,0px)) + 12px);padding-bottom:calc(max(env(safe-area-inset-bottom,0px),var(--teltv-tg-bottom,0px)) + 12px)}
.teltv-telegram .app-install-banner{display:none!important}

/* Keep all rows reachable when photo tools are shown; do not compress rails into the clipped bottom edge. */
.codex-studio #studioControlsBar:not(.hidden):not(.teltv-panel-outside-call):not(.teltv-panel-compact){display:flex!important;flex-direction:column!important;max-height:min(280px,var(--teltv-panel-available-height,280px))!important}
.codex-studio #studioControlsBar .teltv-panel-content{min-height:0!important;flex:1 1 auto!important;overflow-y:auto!important;scrollbar-width:thin}
.codex-studio #studioControlsBar .teltv-panel-content > *{flex-shrink:0!important}
.codex-studio #studioControlsBar .teltv-scroll-strip{flex-shrink:0;min-height:44px}
.codex-studio #studioControlsBar .beauty-folder-card.has-active-mask:not(.is-open-folder){background:rgba(45,57,44,.65)!important;color:#dbe8d1!important;border-color:#90ae77!important}
.codex-studio #studioControlsBar .beauty-folder-card.is-open-folder,.codex-studio #studioControlsBar .beauty-folder-card.is-open-folder .folder-name{background:#bce58c!important;color:#172012!important;border-color:#ccebaf!important}

.teltv-activity-notice{font-size:10px;line-height:1.4;color:#b3c3aa;margin:4px 0;max-width:900px}
#teltvCallChrome .teltv-activity-notice{margin:0;padding:2px 6px;background:#111a12bd;border-radius:6px}
.teltv-activity-dialog{position:fixed;inset:0;margin:auto;width:min(1050px,calc(100vw - 24px));height:min(80dvh,800px);padding:16px;border:1px solid #607751;border-radius:16px;background:#182016;color:#e4eddf;box-sizing:border-box;z-index:20000}
.teltv-activity-dialog::backdrop{background:#0008}.teltv-activity-dialog[open]{display:flex;flex-direction:column;gap:10px}
.teltv-activity-header,.teltv-activity-filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.teltv-activity-header{justify-content:space-between}.teltv-activity-header h2{font-size:18px;margin:0}
.teltv-activity-dialog button,.teltv-activity-dialog select{min-height:36px;padding:6px 10px;background:#2a3824;color:#ecf3e8;border:1px solid #647b54;border-radius:8px}.teltv-activity-dialog select{max-width:100%}
.teltv-activity-dialog [data-summary]{font-size:12px;margin:0;color:#b9c8b1}.teltv-activity-list{min-height:0;flex:1;overflow:auto;touch-action:pan-y}.teltv-activity-row{font-size:12px;line-height:1.5;margin:0;padding:10px 4px;border-bottom:1px solid #42503a;overflow-wrap:anywhere}
.teltv-quality-control .teltv-network-auto{display:flex;align-items:center;gap:8px;line-height:1.4;margin-top:10px}
.teltv-network-auto input{width:18px;height:18px;flex:none}
#teltvNetworkBadge{font-size:11px;max-width:100%;white-space:normal}
/* Quality picker is outside the scrolling header so iOS can hit-test its controls. */
#teltvQualityPopover{position:fixed;right:max(12px,env(safe-area-inset-right));width:min(300px,calc(100vw - 24px));box-sizing:border-box;z-index:1200;pointer-events:auto;background:rgba(18,25,21,.96);color:#edf4e9;border:1px solid #61734f;border-radius:12px;padding:12px;overflow-y:auto;-webkit-overflow-scrolling:touch;touch-action:pan-y}
#teltvQualityPopover[hidden]{display:none!important}
#teltvQualityPopover select{min-height:44px;font-size:16px}
#teltvQualityPopover .teltv-quality-close{display:block;margin:0 0 8px auto;min-height:34px;padding:5px 10px;border:1px solid #61734f;border-radius:8px;background:#283422;color:#edf4e9}
.teltv-call-quality{flex:0 0 auto}
.teltv-call-quality>summary{display:block;white-space:nowrap;touch-action:manipulation;list-style:none}
.teltv-call-quality>summary::-webkit-details-marker{display:none}
.teltv-call-quality>summary::before{content:'▾ ';font-size:11px}
/* Small, soft squares: icon labels remain available to assistive technology. */
.codex-studio #teltvCallChrome .top-right-actions{flex-wrap:wrap!important;max-height:none!important;gap:5px!important;overflow:visible!important;justify-content:flex-start!important}
.codex-studio #teltvCallChrome .top-right-actions .teltv-icon-button,.codex-studio #bottomBar button.gmeet-call-btn{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;max-width:40px!important;box-sizing:border-box!important;padding:8px!important;border-radius:11px!important;background:rgba(12,20,24,.23)!important;border:1px solid rgba(231,247,255,.65)!important;color:#f5faff!important;box-shadow:0 2px 7px #0002!important;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);align-items:center!important;justify-content:center!important;gap:0!important;line-height:1!important;flex:0 0 40px!important;text-align:center;touch-action:manipulation}
.codex-studio #teltvCallChrome .top-right-actions .teltv-icon-button svg,.codex-studio #bottomBar .gmeet-call-icon svg{width:22px!important;height:22px!important;filter:drop-shadow(0 1px 2px #000b);vertical-align:middle}
.codex-studio #teltvCallChrome .teltv-icon-button::before{content:none!important}
.codex-studio #bottomBar .gmeet-call-label,.codex-studio #bottomBar .gmeet-btn-label{display:none!important}
.codex-studio #bottomBar .bottom-bar-primary-row,.codex-studio #bottomBar .bottom-bar-secondary-row{flex-wrap:wrap!important;overflow:visible!important;touch-action:manipulation;justify-content:center!important;gap:5px!important}
.codex-studio #bottomBar{width:min(540px,calc(100vw - 16px))!important;padding:9px!important;background:rgba(13,23,30,.17)!important;border:1px solid rgba(223,239,255,.35)!important;border-radius:17px!important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.codex-studio #bottomBar .gmeet-call-icon{font-size:22px!important;line-height:1!important}
.codex-studio #bottomBar button.gmeet-call-btn:is(.is-on,.active,.is-active,.active-feature){background:rgba(35,111,204,.3)!important;border-color:#82c1ff!important}
.codex-studio #bottomBar button.gmeet-call-btn:is(.is-off,.muted-state),.codex-studio #bottomBar #hangupBtn,.codex-studio #teltvCallChrome #closeCurrentRoomAdminBtn{background:rgba(149,28,46,.26)!important;border-color:#ffb0b8!important;color:#fff1f2!important}
.codex-studio #teltvCallChrome #callFullExitAppBtn{background:rgba(12,20,24,.34)!important;border-color:rgba(251,191,36,.55)!important;color:#fde68a!important}
.codex-studio #teltvCallChrome .top-right-actions #backToUserLobbyBtn.teltv-pill-nav-btn{width:auto!important;max-width:none!important;flex:0 0 auto!important;padding:0 11px!important;gap:6px!important;display:inline-flex!important;font:700 12px/1 system-ui,-apple-system,sans-serif!important;background:rgba(23,107,194,.34)!important;border-color:#8dc9ff!important;color:#f5faff!important;white-space:nowrap!important}
.teltv-call-exit-modal-backdrop{position:fixed;inset:0;z-index:2600;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(6,11,18,.74);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.teltv-call-exit-modal-backdrop.hidden{display:none!important}
.teltv-call-exit-modal-card{width:min(360px,calc(100vw - 28px));background:rgba(15,23,36,.97);border:1px solid rgba(148,163,184,.34);border-radius:18px;padding:18px 16px;box-shadow:0 20px 50px rgba(0,0,0,.55);color:#f8fafc;display:flex;flex-direction:column;gap:10px}
.teltv-call-exit-modal-title{margin:0;font:700 16px/1.3 system-ui,-apple-system,sans-serif;color:#f8fafc}
.teltv-call-exit-modal-sub{margin:0 0 4px;font:400 13px/1.4 system-ui,-apple-system,sans-serif;color:#cbd5e1}
.teltv-call-exit-choice-btn{width:100%;min-height:46px;padding:10px 14px;border-radius:12px;font:700 13.5px/1.25 system-ui,-apple-system,sans-serif;cursor:pointer;touch-action:manipulation;border:1px solid transparent;text-align:center}
.teltv-call-exit-choice-btn.stay-online{background:#2563eb;border-color:#60a5fa;color:#fff}
.teltv-call-exit-choice-btn.full-offline{background:rgba(153,27,27,.32);border-color:rgba(252,165,165,.55);color:#fecaca}
.teltv-call-exit-choice-btn.cancel{background:rgba(255,255,255,.07);border-color:rgba(148,163,184,.28);color:#e2e8f0}
.codex-studio #teltvCallChrome .teltv-icon-button:focus-visible,.codex-studio #bottomBar button.gmeet-call-btn:focus-visible{outline:2px solid #8dc9ff;outline-offset:3px}
.codex-studio #bottomBar button.gmeet-call-btn.hidden,.codex-studio #teltvCallChrome .top-right-actions .teltv-icon-button.hidden{display:none!important}
.teltv-quality-control select[data-teltv-video-profile][hidden]{display:none!important}
.teltv-quality-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:7px}
.teltv-quality-choices button{min-width:0;min-height:38px;padding:6px 4px;border-radius:10px;border:1px solid #829bb44d;background:#14233466;color:#e8f3ff;font:600 12px/1 system-ui;cursor:pointer;touch-action:manipulation}
.teltv-quality-choices button[aria-pressed=true]{background:#176bc2;border-color:#71b9ff;color:white;box-shadow:0 0 0 1px #459ef733}
.teltv-quality-choices button:disabled{opacity:.6;cursor:wait}
#teltvQualityPopover{background:rgba(13,23,34,.94);border-color:#adc3d14d}
#teltvQualityPopover label{color:#dce8f8}
#teltvQualityPopover p{color:#adbfce}
#teltvQualityPopover input{accent-color:#3292ff}
#teltvQualityPopover .teltv-quality-close{background:#ffffff12;border-color:#bbd4e84d;color:#e8f4ff}
.codex-studio .teltv-quality-control :focus-visible{outline-color:#83bdff!important}

/* Local desktop admin workspace: no capture or video geometry changes. */
.codex-studio #teltvAdminDesktopRail{position:fixed;top:calc(var(--teltv-chrome-bottom) + 12px);bottom:12px;left:12px;z-index:96;display:flex;flex-direction:column;align-items:flex-start;gap:14px;max-width:calc(100vw - 24px);overflow:auto;scrollbar-width:thin;padding:2px 8px 8px 0;pointer-events:none}
.codex-studio #teltvAdminDesktopRail> :not(.teltv-admin-detached){position:relative!important;inset:auto!important;flex-shrink:0;pointer-events:auto;transform:none!important}
.codex-studio #teltvAdminDesktopRail #adminAllCamerasDock{flex-wrap:nowrap;max-width:min(540px,calc(100vw - 36px));max-height:none;overflow-x:auto;overflow-y:hidden;padding:0;pointer-events:auto}
.codex-studio #teltvAdminDesktopRail .admin-cam-tile{flex-shrink:0}
.codex-studio #teltvAdminDesktopRail .teltv-admin-detached{pointer-events:auto}
.codex-studio #teltvAdminDesktopRail #adminNavRoomIdText{min-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.codex-studio #teltvAdminDesktopRail #adminNavRoomModeBadge{height:36px;min-height:36px;box-sizing:border-box;overflow:hidden;display:block;line-height:16px}
/* 50/50 UI distribution; video boxes, fit, crop and transforms are unchanged. */
.codex-studio.split-screen-active #splitGlobalToolbar{position:fixed!important;top:auto!important;bottom:calc(100vh - var(--teltv-controls-top) + 8px)!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;max-width:calc(100vw - 24px)!important;width:max-content;z-index:205!important;cursor:default!important;touch-action:pan-x!important}
.codex-studio.split-screen-active #splitScreenContainer .split-pane-bar{bottom:var(--teltv-split-bar-bottom,12px)!important;left:12px!important;right:auto!important;top:auto!important;width:auto!important;max-width:calc(100% - 24px)!important;padding:5px!important;gap:5px!important;opacity:1;align-items:stretch!important;background:rgba(15,23,35,.7)!important;border-color:#bed2ed66!important}
.codex-studio.split-screen-active #splitScreenContainer .split-pane-bar .split-pane-tools{display:none!important;max-width:330px;max-height:100px;overflow:auto}
.codex-studio.split-screen-active #splitScreenContainer .split-pane-bar.teltv-split-tools-open .split-pane-tools{display:flex!important}
.teltv-split-source-row{display:flex;align-items:center;gap:5px;min-width:0}
.codex-studio .teltv-split-source-row .split-source-select{min-width:0!important;max-width:180px!important;flex:1!important;margin:0!important;height:36px}
.teltv-scene-button{width:36px;min-width:36px;height:36px;padding:5px;border:1px solid #bed2ed80;border-radius:10px;background:#192638bb;color:#f5f8ff;cursor:pointer;font:18px/1 system-ui}
#teltvLightingPanel[hidden],#teltvScreenLight[hidden]{display:none!important}
#teltvLightingPanel{position:fixed;z-index:320;right:12px;bottom:calc(100vh - var(--teltv-controls-top,100vh) + 70px);width:min(340px,calc(100vw - 24px));box-sizing:border-box;padding:14px;border:1px solid #acbfd580;border-radius:18px;background:#172333f5;color:#f4f7fc;box-shadow:0 12px 40px #0006;font:13px/1.5 system-ui;max-height:calc(100dvh - 120px);overflow:auto}
.teltv-scene-heading{display:flex;align-items:center;justify-content:space-between;font-size:16px;font-weight:600}.teltv-light-modes{display:flex;flex-wrap:wrap;gap:6px}.teltv-light-modes button{width:auto;min-width:82px;font:13px system-ui}.teltv-light-modes button[aria-pressed=true]{background:#2769d5;border-color:#a3c8ff}.teltv-screen-light-toggle{display:block;margin:16px 0 10px}#teltvScreenLightStrength{width:78%;vertical-align:middle}.teltv-light-note{color:#bac9db;font-size:12px}#teltvScreenLight{position:fixed;inset:0;z-index:250;border:clamp(16px,4vmin,40px) solid white;border-radius:22px;box-sizing:border-box;pointer-events:none}
#teltvSplitAdminToggle{display:none}.split-screen-active:has(#adminAllCamerasDock.teltv-admin-desktop) #teltvSplitAdminToggle{display:block}
.codex-studio.split-screen-active:not(.teltv-split-admin-open) #teltvAdminDesktopRail{display:none!important}
@media(max-width:600px){.codex-studio .teltv-split-source-row .split-source-select{max-width:110px!important;font-size:11px}.codex-studio.split-screen-active #splitScreenContainer .split-pane-bar{left:6px!important;max-width:calc(100% - 12px)!important}.codex-studio.split-screen-active #splitGlobalToolbar{gap:3px!important}.codex-studio #splitGlobalToolbar .split-global-pill{font-size:10px!important;padding:4px!important;min-width:32px}}

/* r05 slim non-obstructive glass mask tray (TikTok / FaceTime style). Video geometry & framing untouched. */
.codex-studio #studioControlsBar{width:min(560px,calc(100vw - 16px))!important;padding:6px 8px!important;border-radius:18px!important;background:rgba(13,20,26,.46)!important;border:1px solid rgba(223,239,255,.32)!important;backdrop-filter:blur(14px) saturate(1.25)!important;-webkit-backdrop-filter:blur(14px) saturate(1.25)!important;box-shadow:0 8px 28px rgba(0,0,0,.28)!important;transition:opacity .24s ease}
.codex-studio #studioControlsBar.teltv-tray-fading{opacity:.28}
.codex-studio #studioControlsBar.teltv-panel-compact{display:none!important}
.codex-studio #studioControlsBar .teltv-panel-handle{background:transparent!important;padding:0 0 3px!important;min-height:28px!important;gap:4px!important}
.codex-studio #studioControlsBar .teltv-panel-handle button{min-height:28px!important;min-width:28px!important;padding:3px 7px!important;border-radius:9px!important;font-size:11px!important;background:rgba(20,32,40,.48)!important;border:1px solid rgba(220,238,255,.28)!important;color:#f2f8ff!important}
.codex-studio #studioControlsBar #teltvPinMaskTrayBtn[aria-pressed="true"]{background:rgba(46,134,235,.55)!important;border-color:#8cc8ff!important;box-shadow:0 0 0 1px rgba(140,200,255,.35)!important}
.codex-studio #studioControlsBar .teltv-panel-content{gap:4px!important}
.codex-studio #studioControlsBar .teltv-scroll-strip{min-height:34px!important;gap:2px 4px!important}
.codex-studio #studioControlsBar .teltv-scroll-hint{display:none!important}
.codex-studio #studioControlsBar .teltv-scroll-arrow{min-height:32px!important;min-width:26px!important;width:26px!important;font-size:20px!important;background:rgba(18,28,36,.62)!important;border-color:rgba(210,232,255,.32)!important;color:#e6f4ff!important}
.codex-studio #studioControlsBar #beautyFoldersBar,.codex-studio #studioControlsBar #beautyMasksCarousel{min-height:34px!important;padding:1px 0 2px!important;gap:4px!important}
.codex-studio #studioControlsBar .beauty-folder-card,.codex-studio #studioControlsBar .beauty-mask-chip{min-height:32px!important;height:32px!important;padding:4px 10px!important;border-radius:16px!important;font-size:11.5px!important;background:rgba(20,31,38,.54)!important;border:1px solid rgba(220,238,255,.26)!important;color:#eef6ff!important}
.codex-studio #studioControlsBar .beauty-folder-card.is-open-folder,.codex-studio #studioControlsBar .beauty-folder-card.is-open-folder .folder-name,.codex-studio #studioControlsBar .beauty-mask-chip.active{background:#bce58c!important;color:#141e10!important;border-color:#d8f5b4!important;font-weight:600}
.codex-studio #studioControlsBar .studio-slider-row,.codex-studio #studioControlsBar .studio-intensity-wrap{min-height:22px!important}
.codex-studio #studioControlsBar input[type=range]{min-height:20px!important;height:20px!important}
.codex-studio #studioControlsBar #teltvEffectStatus{font-size:10px!important;line-height:1.2!important;min-height:0!important;color:rgba(225,240,250,.78)!important}
.codex-studio #studioControlsBar #teltvEffectStatus:empty{display:none!important}
@media(max-width:768px){
  .codex-studio #teltvCallChrome{gap:4px!important}
  .codex-studio #teltvCallChrome .top-right-actions{flex-wrap:nowrap!important;overflow-x:auto!important;gap:4px!important;padding:2px!important}
  .codex-studio #teltvCallChrome .top-right-actions .teltv-icon-button{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;max-width:36px!important;padding:6px!important;flex:0 0 36px!important;border-radius:10px!important}
  .codex-studio #teltvCallChrome .top-right-actions .teltv-icon-button svg{width:19px!important;height:19px!important}
  .codex-studio #teltvCallChrome .top-right-actions #backToUserLobbyBtn.teltv-pill-nav-btn{height:36px!important;min-height:36px!important;padding:0 9px!important;font-size:11.5px!important;border-radius:10px!important}
  .codex-studio #teltvCallChrome .top-bar-indicators{gap:4px!important;max-height:none!important}
  .codex-studio #teltvCallChrome .top-bar-indicators>div{width:auto!important;max-width:calc(100vw - 20px)!important;padding:3px 9px!important;font-size:10.5px!important;border-radius:999px!important;white-space:nowrap!important}
  #teltvNetworkBadge:not([data-network-warn="true"]){display:none!important}
  #teltvCallChrome .teltv-activity-notice{font-size:9.5px!important;line-height:1.25!important;padding:3px 7px!important}
  #teltvCallChrome .teltv-activity-notice.teltv-notice-settled{display:none!important}
}
@media(max-width:600px){
  .codex-studio #studioControlsBar .teltv-panel-title{display:none!important}
  .codex-studio #studioControlsBar .teltv-panel-grip{flex:1 1 auto!important;max-width:none!important}
}
.codex-studio #studioControlsBar .teltv-panel-handle #studioDownloadBtn:not(.hidden){background:#bce58c!important;color:#141e10!important;border-color:#d8f5b4!important;font-weight:700!important}
#teltvFloatingRecSaveBar{position:fixed;left:50%;transform:translateX(-50%);top:calc(max(env(safe-area-inset-top,0px),var(--teltv-tg-top,0px)) + 54px);z-index:2500;display:flex;align-items:center;gap:6px;max-width:calc(100vw - 16px);padding:6px 8px 6px 12px;border-radius:999px;background:rgba(13,22,28,.92);border:1px solid rgba(188,229,140,.65);box-shadow:0 10px 28px rgba(0,0,0,.45);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:#f1f8ee;font:600 12px/1.2 system-ui,-apple-system,sans-serif;pointer-events:auto}
#teltvFloatingRecSaveBar.hidden{display:none!important}
#teltvFloatingRecSaveBar .teltv-rec-save-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:44vw;font-size:11.5px;color:#dff3cf}
#teltvFloatingRecSaveBar button{min-height:32px;padding:5px 11px;border-radius:999px;font:700 12px/1 system-ui,-apple-system,sans-serif;cursor:pointer;touch-action:manipulation;flex:none}
#teltvFloatingRecSaveBar .teltv-rec-save-primary{background:#bce58c;color:#141e10;border:1px solid #dbf7b8}
#teltvFloatingRecSaveBar .teltv-rec-save-share{background:rgba(36,54,68,.85);color:#eef6ff;border:1px solid rgba(190,220,250,.4);padding:5px 9px}
#teltvFloatingRecSaveBar .teltv-rec-save-close{background:rgba(255,255,255,.08);color:#cbd5e1;border:1px solid rgba(255,255,255,.18);min-width:32px;padding:5px 8px}


/* r32 pill navigation is independent of square icon sizing. */
.codex-studio #teltvCallChrome .top-right-actions .teltv-pill-nav-btn{display:inline-flex!important;align-items:center!important;gap:6px!important;width:auto!important;max-width:none!important;min-width:max-content!important;height:36px!important;min-height:36px!important;padding:0 12px!important;white-space:nowrap!important;overflow:visible!important;flex:0 0 auto!important;border-radius:10px!important;background:rgba(12,20,24,.23)!important;border:1px solid rgba(231,247,255,.65)!important;color:#f5faff!important;}
.codex-studio #teltvCallChrome .top-right-actions .teltv-pill-nav-btn.hidden{display:none!important;}

/* Override the older mobile nowrap toolbar rule at the same specificity. */
.codex-studio #teltvCallChrome .top-right-actions{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;overflow:visible!important;max-height:none!important;}
