/* Host/Guest workspace only. No OBS scene styles or live-feed timing changes. */
.game-explorer-panel{min-width:0;min-height:0;display:flex;flex-direction:column;border:1px solid #344c6e;border-radius:9px;background:linear-gradient(#121e30,#08111d);overflow:hidden;color:#e1ecfa}
.game-explorer-panel[hidden]{display:none!important}.game-explorer-panel>header{display:flex;align-items:center;justify-content:space-between;padding:9px 11px;min-height:43px;flex-shrink:0;border-bottom:1px solid #304862;font-size:12px;letter-spacing:1px;color:#a0d8ff}
.game-explorer-panel>header .btn{padding:3px 8px;min-height:25px}.explorer-tabs{display:flex;gap:5px;padding:10px}.explorer-tabs .btn{flex:1;min-width:0;padding:7px 4px;font-size:11px;letter-spacing:0}.explorer-scroll{overflow:auto;min-height:0;padding:0 12px 12px;overscroll-behavior:contain}.explorer-filters{display:grid;gap:8px}.explorer-field-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.explorer-filters label{font-size:10px;display:flex;flex-direction:column;gap:4px;letter-spacing:0;color:#9db5ce;margin:0}.explorer-filters input,.explorer-filters select{width:100%;min-width:0;padding:6px 7px;font-size:12px;height:32px}.explorer-online-filters,.explorer-player-filters{display:grid;gap:7px}.game-explorer-panel[data-source=masters] .explorer-online-filters,.game-explorer-panel:not([data-source=player]) .explorer-player-filters,.game-explorer-panel[data-source=player] .explorer-rating{display:none}.explorer-apply{font-size:10px;padding:6px;min-height:28px}.explorer-position{font-size:12px;margin:15px 0 8px;color:#ccdcf0}.explorer-status{font-size:11px;line-height:1.5;color:#9cb6d2;margin:8px 0;overflow-wrap:anywhere}.explorer-status.error{color:#ffb4a8}.explorer-opening{display:block;color:#b6d7ee;font-size:12px;line-height:1.5;margin:10px 0}.explorer-move-table{width:100%;table-layout:fixed;border-collapse:collapse}.explorer-move-table th{font-size:9px;font-weight:600;color:#8fa7c2;text-align:left;padding:7px 0}.explorer-move-table th:first-child{width:25%}.explorer-move-table th:nth-child(2){width:29%}.explorer-move-table td{border-top:1px solid #263e57;font-size:12px;padding:9px 3px 9px 0}.explorer-move{background:none;border:0;padding:0;font-size:15px;font-weight:800;color:#a2d7ff;cursor:pointer}.explorer-move:hover{text-decoration:underline}.explorer-result-bar{display:flex;height:15px;border-radius:3px;overflow:hidden;width:100%}.explorer-result-bar i:nth-child(1){background:#dce8f6}.explorer-result-bar i:nth-child(2){background:#8497ac}.explorer-result-bar i:nth-child(3){background:#2c405d}.explorer-legend{color:#9fb0c6;font-size:9px;padding:10px 0 15px}.explorer-results h4{font-size:10px;letter-spacing:1px;color:#a1bad3;border-top:1px solid #304760;padding-top:13px;margin:8px 0}.explorer-reference{padding:10px 0;border-bottom:1px solid #263b54}.explorer-reference strong{display:block;font-size:12px;overflow-wrap:anywhere;line-height:1.4}.explorer-reference small{display:block;font-size:10px;color:#a0b5cb;margin:5px 0}.explorer-reference .btn{font-size:10px;min-height:25px;padding:4px 10px}.explorer-foot{display:flex;gap:6px;flex-wrap:wrap;margin-top:15px}.explorer-foot .btn{font-size:10px;padding:7px 6px;flex:1;letter-spacing:0}.explorer-empty{font-size:12px;line-height:1.6;color:#9dafc4}.explorer-credit{display:block;font-size:9px;color:#8099b1;line-height:1.6;margin-top:12px}.explorer-preview-dialog,.explorer-settings-dialog{background:#0b1525;color:#e8f2ff;border:1px solid #79afd8;border-radius:12px;padding:18px;max-height:94vh;overflow:auto}.explorer-preview-dialog::backdrop,.explorer-settings-dialog::backdrop{background:#0009}.explorer-preview-dialog{width:min(1000px,95vw)}.explorer-settings-dialog{width:min(560px,94vw)}.explorer-preview-dialog header,.explorer-settings-dialog header{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:16px}.explorer-preview-dialog header strong{display:block;font-size:18px;margin-top:5px}.explorer-preview-dialog header small{color:#a5d4fa;font-size:10px;letter-spacing:1px}.explorer-preview-content{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:18px}.explorer-preview-stage{height:min(54vh,540px);width:100%;display:grid;place-items:center}.explorer-preview-navigation{display:flex;gap:6px;align-items:center;margin-top:12px}.explorer-preview-navigation .btn{font-size:12px;padding:7px}.explorer-preview-navigation input{width:0;min-width:30px;flex:1}.explorer-preview-navigation span{font-size:11px}.explorer-preview-moves{max-height:61vh;overflow:auto;display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:5px}.explorer-preview-moves .btn{text-align:left;font-size:12px;padding:7px;min-width:0}.explorer-preview-dialog footer{margin-top:18px;color:#92abc4;font-size:11px}.explorer-settings-dialog p,.explorer-settings-dialog small{font-size:13px;line-height:1.6}.explorer-settings-dialog input{width:100%;margin:8px 0}.explorer-settings-dialog .row{margin:18px 0}.explorer-settings-status{font-size:13px;color:#b7d6f1}.explorer-settings-dialog a{color:#a4d7ff}
@media(min-width:901px){
 .host-console.explorer-workspace{--host-games-width:278px}
 .host-console.explorer-workspace .games-panel{min-width:220px!important}
 .host-console.explorer-workspace .host-board-workbench,.guest-console.explorer-workspace .guest-board-workbench{display:grid!important;grid-template-columns:260px minmax(0,1fr) var(--guest-tools-width,104px) 7px var(--host-notation-width,278px)!important;grid-template-rows:minmax(0,1fr)!important;gap:7px!important;overflow:hidden!important}
 .guest-console.explorer-workspace .guest-board-workbench{grid-template-columns:260px minmax(0,1fr) var(--guest-tools-width,104px) 7px var(--guest-notation-width,278px)!important}
 .explorer-workspace .game-explorer-panel{grid-column:1;grid-row:1}
 .host-console.explorer-workspace .host-board-center,.guest-console.explorer-workspace .guest-board-center{grid-column:2!important;grid-row:1!important;height:100%!important;min-height:0!important;overflow:hidden!important}
 .host-console.explorer-workspace .host-board-tools-rail,.guest-console.explorer-workspace .guest-board-tools-rail{grid-column:3!important;grid-row:1!important;width:100%!important;min-width:0!important}
 .explorer-workspace #hostNotationResizeHandle,.explorer-workspace #guestNotationResizeHandle{grid-column:4!important;grid-row:1!important}
 .explorer-workspace #guestToolsResizeHandle{display:none!important}
 .host-console.explorer-workspace .host-board-notation-rail,.guest-console.explorer-workspace .guest-board-notation-rail{grid-column:5!important;grid-row:1!important;width:100%!important;min-height:0!important;height:100%!important;max-height:none!important}
 .guest-console.explorer-workspace{--guest-games-width:278px;--guest-notation-width:278px;--guest-tools-width:104px}
 .guest-console.explorer-workspace.guest-games-collapsed{--guest-games-width:0px!important}
 .guest-console.explorer-workspace.guest-dock-tools-collapsed .guest-board-workbench{grid-template-columns:260px minmax(0,1fr) 0px 7px 278px!important}
 .guest-console.explorer-workspace.guest-dock-notation-collapsed .guest-board-workbench{grid-template-columns:260px minmax(0,1fr) 104px 0px 0px!important}
 .guest-console.explorer-workspace.guest-dock-tools-collapsed.guest-dock-notation-collapsed .guest-board-workbench{grid-template-columns:260px minmax(0,1fr) 0px 0px 0px!important}
 .host-console.explorer-workspace.explorer-collapsed .host-board-workbench,.guest-console.explorer-workspace.explorer-collapsed .guest-board-workbench{grid-template-columns:0px minmax(0,1fr) 104px 7px 278px!important}
 .guest-console.explorer-workspace.explorer-collapsed.guest-dock-tools-collapsed .guest-board-workbench{grid-template-columns:0px minmax(0,1fr) 0px 7px 278px!important}
 .guest-console.explorer-workspace.explorer-collapsed.guest-dock-notation-collapsed .guest-board-workbench{grid-template-columns:0px minmax(0,1fr) 104px 0px 0px!important}
 .guest-console.explorer-workspace.explorer-collapsed.guest-dock-tools-collapsed.guest-dock-notation-collapsed .guest-board-workbench{grid-template-columns:0px minmax(0,1fr) 0px 0px 0px!important}
 .explorer-workspace .host-live-board-wall,.explorer-workspace .guest-live-board-wall{grid-template-columns:minmax(0,1fr)!important}
 .host-console.explorer-workspace .host-board-center>.board-popout-launch-row{display:none!important}
 .host-console.explorer-workspace .board-primary-actions{grid-template-columns:minmax(0,1.8fr) minmax(0,.75fr) minmax(0,.8fr) minmax(0,1.6fr)!important;grid-auto-rows:42px;flex:0 0 42px!important;height:42px!important;width:100%!important;max-width:none!important}
 .host-console.explorer-workspace .board-primary-actions>.btn{font-size:10px!important}
 .explorer-workspace .host-board-tools-rail .btn,.explorer-workspace .guest-board-tools-rail .btn{font-size:10px!important;white-space:normal!important;letter-spacing:0!important}
}
@media(min-width:901px) and (max-width:1550px){
 .host-console.explorer-workspace{--host-games-width:220px!important}
 .guest-console.explorer-workspace{--guest-games-width:220px!important}
 .host-console.explorer-workspace .host-board-workbench,.guest-console.explorer-workspace .guest-board-workbench{grid-template-columns:220px minmax(0,1fr) 82px 5px 240px!important;gap:5px!important}
 .host-console.explorer-workspace.explorer-collapsed .host-board-workbench,.guest-console.explorer-workspace.explorer-collapsed .guest-board-workbench{grid-template-columns:0px minmax(0,1fr) 82px 5px 240px!important}
 .guest-console.explorer-workspace.guest-games-collapsed{--guest-games-width:0px!important}
}
/* Preserve useful board space in narrow desktop windows: explorer becomes a drawer. */
@media(min-width:901px) and (max-width:1350px){
 .explorer-workspace .game-explorer-panel{position:fixed;left:12px;top:150px;bottom:12px;width:280px;z-index:220;box-shadow:0 8px 35px #000a}
 .host-console.explorer-workspace .host-board-workbench,.guest-console.explorer-workspace .guest-board-workbench{grid-template-columns:0px minmax(0,1fr) 82px 5px 240px!important}
}
.guest-board-popout.explorer-workspace .guest-board-popout-workspace{grid-template-columns:280px minmax(0,1fr) 130px 290px!important;grid-template-rows:minmax(0,1fr)!important;overflow:hidden!important}
.guest-board-popout.explorer-workspace .guest-board-popout-board-column{grid-column:2!important;grid-row:1!important;--popout-board-span:min(820px,calc(var(--app-viewport-height,100vh) - 370px),calc(var(--app-viewport-width,100vw) - 755px))}
.guest-board-popout.explorer-workspace .guest-board-popout-controls{grid-column:3!important;grid-row:1!important;display:flex!important;flex-direction:column!important;min-height:0;overflow:auto!important}
.guest-board-popout.explorer-workspace .guest-board-popout-notation{grid-column:4!important;grid-row:1!important;height:100%!important;min-height:0!important;max-height:none!important}
.guest-board-popout.explorer-workspace .guest-board-popout-tool-grid,.guest-board-popout.explorer-workspace .guest-board-popout-symbol-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.guest-board-popout.explorer-workspace .guest-board-popout-tool-grid>.btn:first-child{grid-column:1/-1}.guest-board-popout.explorer-workspace .guest-board-popout-color-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.guest-board-popout.explorer-workspace .guest-board-popout-controls .btn{font-size:10px;white-space:normal;padding:6px 4px}.guest-board-popout.explorer-workspace .guest-board-popout-controls .notice{font-size:10px}
.guest-board-popout.explorer-workspace.explorer-collapsed .guest-board-popout-workspace{grid-template-columns:0px minmax(0,1fr) 130px 290px!important}
.guest-board-popout.explorer-workspace.explorer-collapsed .guest-board-popout-board-column{--popout-board-span:min(820px,calc(var(--app-viewport-height,100vh) - 370px),calc(var(--app-viewport-width,100vw) - 475px))}
@media(min-width:801px) and (max-width:1350px){.guest-board-popout.explorer-workspace .game-explorer-panel{position:fixed;left:12px;top:135px;bottom:12px;width:280px;z-index:220;box-shadow:0 8px 35px #000a}.guest-board-popout.explorer-workspace .guest-board-popout-workspace{grid-template-columns:0px minmax(0,1fr) 120px 270px!important}.guest-board-popout.explorer-workspace .guest-board-popout-board-column{--popout-board-span:min(820px,calc(var(--app-viewport-height,100vh) - 370px),calc(var(--app-viewport-width,100vw) - 445px))}}
@media(max-width:900px){.explorer-workspace .game-explorer-panel{height:400px;flex-shrink:0;order:0}.explorer-workspace .guest-board-center,.explorer-workspace .host-board-center{order:1}.explorer-workspace .guest-board-tools-rail,.explorer-workspace .host-board-tools-rail{order:2}.explorer-workspace .guest-board-notation-rail,.explorer-workspace .host-board-notation-rail{order:3}.explorer-preview-content{grid-template-columns:1fr}.explorer-preview-moves{max-height:180px}}
@media(max-width:800px){.guest-board-popout.explorer-workspace .guest-board-popout-workspace{display:flex!important;flex-direction:column!important;overflow:visible!important}.guest-board-popout.explorer-workspace .game-explorer-panel{order:0}.guest-board-popout.explorer-workspace .guest-board-popout-board-column{order:1;--popout-board-span:min(720px,calc(var(--app-viewport-width,100vw) - 24px),calc(var(--app-viewport-height,100vh) - 370px))}.guest-board-popout.explorer-workspace .guest-board-popout-controls{order:2;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.guest-board-popout.explorer-workspace .guest-board-popout-notation{order:3;min-height:400px!important}}
/* Stacked pop-outs must never flex-shrink the square board stage. */
@media(max-width:800px){.guest-board-popout.explorer-workspace .guest-board-popout-board-column{flex:0 0 auto;min-height:calc(var(--popout-board-span) + 220px)!important;overflow:visible!important}.guest-board-popout.explorer-workspace .guest-board-popout-notation{flex:0 0 440px!important;height:440px!important}}

@media(min-width:1551px){
 .host-console.explorer-workspace.explorer-collapsed .host-board-workbench{grid-template-columns:0px minmax(0,1fr) 104px 7px var(--host-notation-width,278px)!important}
 .guest-console.explorer-workspace.explorer-collapsed .guest-board-workbench{grid-template-columns:0px minmax(0,1fr) var(--guest-tools-width,104px) 7px var(--guest-notation-width,278px)!important}
 .guest-console.explorer-workspace.guest-dock-tools-collapsed .guest-board-workbench{grid-template-columns:260px minmax(0,1fr) 0px 7px var(--guest-notation-width,278px)!important}
 .guest-console.explorer-workspace.guest-dock-notation-collapsed .guest-board-workbench{grid-template-columns:260px minmax(0,1fr) var(--guest-tools-width,104px) 0px 0px!important}
 .guest-console.explorer-workspace.explorer-collapsed.guest-dock-tools-collapsed .guest-board-workbench{grid-template-columns:0px minmax(0,1fr) 0px 7px var(--guest-notation-width,278px)!important}
 .guest-console.explorer-workspace.explorer-collapsed.guest-dock-notation-collapsed .guest-board-workbench{grid-template-columns:0px minmax(0,1fr) var(--guest-tools-width,104px) 0px 0px!important}
}
/* TEAM_LEAGUE_TEAL_BEGIN */
:where(html.tl-teal) .game-explorer-panel{border-color:rgba(60,89,102,1);background:linear-gradient(rgba(22,38,44,1),rgba(11,22,26,1));color:rgba(233,239,242,1);}
:where(html.tl-teal) .game-explorer-panel>header{border-bottom-color:rgba(55,80,91,1);color:rgba(194,213,221,1);}
:where(html.tl-teal) .explorer-filters label{color:rgba(176,201,212,1);}
:where(html.tl-teal) .explorer-position{color:rgba(223,232,236,1);}
:where(html.tl-teal) .explorer-status{color:rgba(176,201,212,1);}
:where(html.tl-teal) .explorer-opening{color:rgba(197,215,223,1);}
:where(html.tl-teal) .explorer-move-table th{color:rgba(176,201,212,1);}
:where(html.tl-teal) .explorer-move-table td{border-top-color:rgba(45,70,80,1);}
:where(html.tl-teal) .explorer-move{color:rgba(195,214,222,1);}
:where(html.tl-teal) .explorer-result-bar i:nth-child(1){background:rgba(228,235,238,1);}
:where(html.tl-teal) .explorer-result-bar i:nth-child(2){background:rgba(133,160,171,1);}
:where(html.tl-teal) .explorer-result-bar i:nth-child(3){background:rgba(51,76,86,1);}
:where(html.tl-teal) .explorer-legend{color:rgba(178,200,209,1);}
:where(html.tl-teal) .explorer-results h4{color:rgba(176,201,212,1);border-top-color:rgba(55,79,89,1);}
:where(html.tl-teal) .explorer-reference{border-bottom-color:rgba(44,68,78,1);}
:where(html.tl-teal) .explorer-reference small{color:rgba(176,201,212,1);}
:where(html.tl-teal) .explorer-empty{color:rgba(179,200,209,1);}
:where(html.tl-teal) .explorer-credit{color:rgba(179,200,208,1);}
:where(html.tl-teal) .explorer-preview-dialog,:where(html.tl-teal) .explorer-settings-dialog{background:rgba(14,28,34,1);color:rgba(241,245,246,1);border-color:rgba(134,182,203,1);}
:where(html.tl-teal) .explorer-preview-dialog header small{color:rgba(194,213,221,1);}
:where(html.tl-teal) .explorer-preview-dialog footer{color:rgba(176,201,212,1);}
:where(html.tl-teal) .explorer-settings-status{color:rgba(200,217,224,1);}
:where(html.tl-teal) .explorer-settings-dialog a{color:rgba(196,215,223,1);}
