/* Stage 61 – independent resizable rosters and a single settings dialog. */
#viewerSection .viewer-team.stage61-sized{width:min(var(--stage61-panel-width),46vw,1200px)!important;height:min(var(--stage61-panel-height),64dvh,1600px)!important;max-height:max(100px,min(64dvh,calc(100dvh - var(--viewer-bottom-height,165px) - 105px)))!important;min-width:0!important;top:calc((100dvh + 76px - var(--viewer-bottom-height,165px) - 20px)/2)!important;}
#viewerSection .viewer-team.stage61-sized .viewer-team-list{flex:1 1 auto!important;max-height:none!important;min-height:0;overflow:auto!important;padding-bottom:22px;}
#viewerSection .viewer-team .stage61-roster-grip{position:absolute;bottom:0;right:0;z-index:4;display:grid;place-items:center;width:24px;height:24px;min-width:0;padding:0;border:0;border-radius:5px 0 0 0;background:#1b4059;color:#c6e5f4;cursor:nwse-resize;touch-action:none;user-select:none;font-size:15px;line-height:1;}
#viewerSection .viewer-team-t .stage61-roster-grip{left:0;right:auto;cursor:nesw-resize;transform:scaleX(-1);}
#viewerSection .stage61-roster-grip:disabled{opacity:.35;cursor:wait;}
#viewerSection .stage61-roster-grip:focus-visible,#viewerSection .stage61-roster-grip.is-dragging{outline:2px solid #6ec4ff;outline-offset:-2px;}
#viewerSection .stage61-size-status{position:absolute;z-index:180;left:50%;bottom:calc(var(--viewer-bottom-height,165px) + 20px);transform:translateX(-50%);background:#102c43;color:#edf8ff;border:1px solid #4d7997;border-radius:8px;padding:8px 12px;max-width:85vw;pointer-events:none;font-size:12px;}
#viewerSection .stage61-size-status[hidden],#viewerSection #viewerVoiceToggle[hidden],#viewerSection #viewerVoiceDrag[hidden],#viewerSection #stage61SettingsDialog [role=tabpanel][hidden]{display:none!important;}
#viewerSection #stage61SettingsGear{position:absolute;right:12px;bottom:12px;z-index:160;width:46px;height:46px;min-width:0;padding:0;border:1px solid #456b85;border-radius:10px;background:#10283c;color:#e6f4ff;font-size:27px;line-height:1;display:grid;place-items:center;}
#viewerSection #stage61SettingsDialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(800px,94vw);height:min(650px,88dvh);max-width:94vw;max-height:88dvh;padding:0;overflow:hidden;background:#102438;color:#e4f1fa;border:1px solid #4d718b;border-radius:14px;box-shadow:0 18px 70px #000a;}
#viewerSection #stage61SettingsDialog:not([open]){display:none!important;}
#viewerSection #stage61SettingsDialog[open]{display:flex;flex-direction:column;}
#viewerSection #stage61SettingsDialog::backdrop{background:#030a13a8;}
#viewerSection #stage61SettingsDialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;border-bottom:1px solid #35536c;flex:0 0 auto;}
#viewerSection #stage61SettingsDialog h2{font-size:20px;margin:0;}
#viewerSection .stage61-settings-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:12px 18px;border-bottom:1px solid #35536c;flex:0 0 auto;}
#viewerSection .stage61-settings-tabs button{flex:1 1 auto;border:1px solid #3a5770;background:#172e45;color:#b9d2e5;padding:10px;border-radius:7px;font-size:13px;}
#viewerSection .stage61-settings-tabs button[aria-selected=true]{background:#244f6c;color:#fff;border-color:#78b5d8;}
#viewerSection .stage61-settings-content{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px;}
#viewerSection #stage61SettingsDialog .viewer-settings-body{box-sizing:border-box;width:100%;padding:0;display:flex;flex-direction:column;gap:16px;overflow:visible;}
#viewerSection #stage61SettingsDialog .viewer-skip-buy{display:flex;align-items:center;gap:8px;white-space:normal;font-size:14px;}
#viewerSection #stage61SettingsDialog .stage61-embedded-voice{position:static!important;inset:auto!important;transform:none!important;width:100%!important;height:auto!important;min-width:0!important;max-width:none!important;min-height:0!important;max-height:none!important;resize:none!important;overflow:visible!important;box-shadow:none!important;border:0!important;background:transparent!important;padding:0!important;}
#viewerSection #stage61SettingsDialog .stage61-embedded-voice .viewer-voice-body{overflow:visible!important;max-height:none!important;padding:0;}
#viewerSection #stage61SettingsDialog .viewer-heatmap-config{display:flex;flex-direction:column;align-items:stretch;gap:12px;}
#viewerSection #stage61SettingsDialog .stage60-hotkeys{padding:0;}
#viewerSection #stage61SettingsDialog .stage60-hotkeys label{padding:7px 0;border-bottom:1px solid #2a435a;}
#viewerSection #stage61SettingsDialog .stage60-hotkeys button{font-size:13px;min-width:120px;}
#viewerSection #viewerBackTick,#viewerSection #viewerNextTick{white-space:nowrap;min-width:64px;font-size:12px;}
@media(max-width:1240px){#viewerSection #stage61SettingsGear{right:8px;bottom:calc(var(--viewer-bottom-height,165px) + 20px);}}
@media(max-width:700px){#viewerSection .viewer-team.stage61-sized{max-height:max(100px,min(40dvh,calc(100dvh - var(--viewer-bottom-height,165px) - 105px)))!important;}#viewerSection #stage61SettingsGear{width:38px;height:38px;font-size:22px;}#viewerSection .stage61-settings-content{padding:12px;}#viewerSection .stage61-settings-tabs{padding:8px;}}
