/* Workspace-only rules. Broadcast geometry remains in app.css. */
.board-primary-actions,.guest-board-quick-actions{display:flex!important;flex-wrap:wrap;justify-content:center;gap:8px;margin:5px 0 8px;flex-shrink:0}
.board-primary-actions .btn,.guest-board-quick-actions .btn{min-height:38px;font-size:13px}
.host-console .host-board-center>.console-player-bar,.host-console .host-board-navigation,.host-console .host-live-return-row{width:min(100%,var(--actual-board-width,100%))!important;max-width:var(--actual-board-width,100%)!important}
.host-console .host-board-center .board-stage{min-width:0;width:100%}
.host-console .host-live-board-wall,.guest-console .guest-live-board-wall{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-content:start;padding:8px}
.host-live-board-head,.guest-live-board-head{display:block!important;padding:6px!important;min-height:62px}
.host-live-board-head strong,.guest-live-board-head strong{display:block!important;white-space:normal!important;text-overflow:unset!important;font-size:clamp(11px,.76vw,15px)!important;line-height:1.3!important;overflow-wrap:anywhere}
.host-live-board-head strong>span,.guest-live-board-head strong>span{font-size:10px!important;color:#9acbdf}
.host-live-board-head em,.guest-live-board-head em{display:block;font-size:10px!important;margin-top:3px}
.host-live-board-meta,.guest-live-board-meta{font-size:10px!important}
.live-games-popout-button{margin:5px 8px 8px;font-size:12px!important;white-space:normal}
.game-notes-game-title{display:block;line-height:1.4;font-size:15px;margin:4px 0 10px;overflow-wrap:anywhere}
.game-notes-status{font-size:13px;color:#b5e1ff;line-height:1.4;margin:8px 0}.game-notes-conflict{border:1px solid #dcad57;padding:8px;border-radius:6px}
.game-notes-conflict pre,.workspace-popout pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:200px;overflow:auto;font:14px/1.4 sans-serif}
.host-game-notes-drawer{position:fixed;right:8px;top:90px;bottom:10px;z-index:200;width:min(520px,95vw);padding:16px;background:#0c1627;border:1px solid #78b4e7;border-radius:10px;overflow:auto;box-shadow:0 8px 40px #0008}
.host-game-notes-drawer[hidden]{display:none}.host-game-notes-drawer .commentary-notes-block{height:calc(100% - 55px);display:flex;flex-direction:column}.host-game-notes-drawer textarea{flex:1;min-height:240px;width:100%;font-size:18px;line-height:1.5}
.host-game-notes-drawer>header{display:flex;gap:8px;align-items:center;margin-bottom:12px}.host-game-notes-drawer>header strong{flex:1}
.guest-notes-panel textarea{font-size:18px;line-height:1.5}.guest-notes-panel .panel-head{flex-wrap:wrap;gap:6px}
.host-console .board-panel>.standings-page-controls{position:static;flex-wrap:wrap;padding:8px;gap:8px;border:1px solid #68a7c9;margin:5px 7px;color:#fff;background:#132138;min-height:52px}
.host-console .board-panel>.standings-page-controls[hidden]{display:none!important}
.host-console .host-prestream-menu{width:min(950px,calc(100vw - 30px));max-height:calc(100vh - 180px);overflow:auto}
.inline-roll-call-editor{margin-top:12px;padding:12px;border:1px solid #6490b5;border-radius:8px;background:#101b2d}
.inline-roll-call-editor>summary{cursor:pointer;font-size:17px;font-weight:700;padding:8px;list-style:none}
.inline-roll-call-editor .roll-call-workspace-bar,.inline-roll-call-editor .roll-call-search-panel,.inline-roll-call-editor .roll-call-primary-actions,.inline-roll-call-editor .roll-call-summary,.inline-roll-call-editor .roll-call-list-head,.inline-roll-call-editor .roll-call-workspace-brand,.inline-roll-call-editor .roll-call-window-actions{display:none!important}
.host-console .inline-roll-call-editor .roll-call-editor{display:block}.host-console .inline-roll-call-editor .showcase-lineup.selected,.host-console .inline-roll-call-editor .showcase-lineup.candidates{max-height:none;height:auto;overflow:visible}.inline-roll-call-editor .roll-call-candidate-panel{margin-top:15px}
.roll-call-editor-title{font-size:17px;margin:12px 0}.inline-roll-call-editor .showcase-candidate-row,.inline-roll-call-editor .showcase-selected-row{position:relative;min-height:95px;padding:12px;gap:12px}.inline-roll-call-editor .showcase-candidate-row.recommended{border:2px solid #fa5960;padding-top:33px}.roll-call-recommended{position:absolute;top:5px;left:12px;color:#ff8185;font-size:13px;font-weight:800}.roll-call-reason{display:block;color:#ffd7d8;font-size:14px;line-height:1.4;margin-top:8px}
.inline-roll-call-editor .showcase-lineup-copy strong{font-size:18px;line-height:1.35}.inline-roll-call-editor .showcase-lineup-copy>span{font-size:15px;line-height:1.35}.host-console .inline-roll-call-editor .showcase-lineup-copy strong,.host-console .inline-roll-call-editor .showcase-lineup-copy span{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}.inline-roll-call-editor .showcase-meta small{font-size:14px}.inline-roll-call-editor .showcase-tags,.inline-roll-call-editor .showcase-callout-label{display:none}
.inline-roll-call-editor .showcase-candidate-row.selected{border-color:#64b891;background:#16302c}.roll-call-draft-actions{position:sticky;bottom:0;display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:10px;background:#0b1729;border-top:1px solid #6aa3c6;z-index:1}
.inline-roll-call-editor .roll-call-reason{grid-column:1/-1;grid-row:2}.inline-roll-call-editor .roll-call-select{grid-column:2;grid-row:1;display:flex;align-items:center;gap:8px;font-size:14px}.inline-roll-call-editor .roll-call-select input{width:20px;height:20px}
#prepareRollCallCard.inline-roll-call-card{padding:0!important;border:0;background:transparent;box-shadow:none}
.workspace-popout{margin:0;background:#07111e;color:#eef7ff;min-height:100vh;font-family:Arial,sans-serif}.workspace-popout>header{position:sticky;top:0;display:flex;gap:15px;align-items:center;flex-wrap:wrap;padding:15px;background:#111e32;border-bottom:1px solid #759dc2;z-index:3}.workspace-popout h1{font-size:24px;margin:0}.workspace-popout #panelConnection{flex:1;font-size:13px}.workspace-popout main{padding:15px}.workspace-live-wall{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-content:start}.workspace-live-card{border:1px solid #4c6880;border-radius:9px;background:#111e2f;overflow:hidden;cursor:pointer;min-width:0}.workspace-live-card.selected{border:2px solid #5bb2fb}.workspace-live-card.on-air{box-shadow:0 0 0 2px #5aad78}.workspace-live-card>strong{display:block;padding:12px 12px 4px;font-size:clamp(17px,2vw,25px);line-height:1.3;overflow-wrap:anywhere}.workspace-live-card>small{display:block;padding:0 12px 8px;line-height:1.4;font-size:14px;color:#b6d3ed;overflow-wrap:anywhere}.workspace-mini-stage{aspect-ratio:1;width:100%;position:relative;min-height:0}.workspace-mini-meta{padding:10px;font-size:14px;font-weight:bold}.workspace-popout #gameNotesPanel{display:flex;flex-direction:column;min-height:calc(100vh - 140px);gap:10px}.workspace-popout #gameNotesPanel[hidden],.workspace-popout #liveGamesPanel[hidden]{display:none}.workspace-popout textarea{flex:1;min-height:360px;resize:vertical;font-size:20px;line-height:1.5;padding:15px}.workspace-popout h2{font-size:20px;overflow-wrap:anywhere;margin:0}.workspace-popout .workspace-live-card[aria-disabled=true]{opacity:.65;cursor:default}
@media(min-width:901px){.host-console>.shell{grid-template-columns:var(--host-games-width,340px) minmax(0,1fr) 310px!important}.host-console.workspace-admin-collapsed>.shell{grid-template-columns:var(--host-games-width,340px) minmax(0,1fr)!important}.host-console.workspace-games-collapsed>.shell{grid-template-columns:minmax(0,1fr) 310px!important}.host-console.workspace-admin-collapsed.workspace-games-collapsed>.shell{grid-template-columns:minmax(0,1fr)!important}.host-console .games-panel{resize:horizontal;max-width:600px;min-width:260px;overflow:auto}.guest-console{--guest-games-width:340px}}
@media(max-width:1400px) and (min-width:901px){.host-console>.shell{grid-template-columns:var(--host-games-width,290px) minmax(0,1fr) 280px!important}.host-console.workspace-admin-collapsed>.shell{grid-template-columns:var(--host-games-width,290px) minmax(0,1fr)!important}.host-console .host-board-workbench{grid-template-columns:82px minmax(0,1fr) 7px minmax(220px,var(--host-notation-width,260px))!important}}
@media(max-width:650px){.workspace-live-wall,.host-console .host-live-board-wall,.guest-console .guest-live-board-wall{grid-template-columns:minmax(0,1fr)}.inline-roll-call-editor .showcase-candidate-row{flex-wrap:wrap}}

.host-prestream-menu .inline-roll-call-editor .btn{width:auto!important;flex:none!important}.inline-roll-call-editor .roll-call-draft-actions>span{flex:1;min-width:200px}.inline-roll-call-editor .showcase-selected-actions{display:flex;flex-wrap:wrap;gap:5px}

@media(min-width:901px){.host-console .host-board-center .board-stage{min-height:220px!important;flex:1 1 auto!important}.host-console .host-board-center{overflow:auto!important}.host-console .host-board-navigation{display:grid!important;grid-template-columns:32px minmax(80px,1fr) 32px 32px!important;width:100%!important;max-width:none!important;flex-shrink:0;align-items:center;gap:5px}.host-console .host-live-return-row{width:100%!important;max-width:none!important}.host-console .workspace-analysis-controls{display:flex;flex-wrap:wrap;gap:6px;padding:6px}.host-console .workspace-analysis-controls .btn{font-size:12px;flex:1;min-height:35px}.host-console .host-board-navigation .range-wrap{width:100%;min-width:0}}
@media(min-width:901px){.host-console .host-live-return-row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.host-console .host-live-return-row>.btn{width:100%;min-width:0;white-space:normal;padding:7px 5px;line-height:1.2;font-size:12px;min-height:42px}.host-console .host-board-center>.console-player-bar{min-height:44px;grid-template-columns:16px minmax(0,1fr) 100px;gap:6px;padding:0 8px}.host-console .host-board-center .console-player-clock strong{font-size:24px}.host-console .host-board-center .console-player-name-line strong{font-size:15px}}
.host-games-resize-handle{position:absolute;right:0;top:0;bottom:0;width:7px;cursor:ew-resize;background:transparent;z-index:4;touch-action:none}.host-games-resize-handle:hover,.host-games-resize-handle:focus{background:#77b7e7}.host-console .games-panel{position:relative;resize:none}

/* v2.180n: reserve readable notation; closed branch summaries use natural height. */
.board-notation-rail{overflow-y:auto;scrollbar-width:thin}
.board-notation-rail>.move-line{min-height:140px!important;position:relative}
.board-notation-rail>.analysis-variations{flex:0 0 auto!important;max-height:180px!important;overflow:auto}
.board-popout-launch-row{flex:0 0 auto;display:flex;justify-content:flex-end;width:100%;box-sizing:border-box;margin-bottom:5px}
.board-popout-launch-row>.btn{font-size:13px;min-height:34px;padding:6px 10px;white-space:nowrap}
.host-console .board-popout-launch-row{width:min(100%,var(--actual-board-width,100%));max-width:var(--actual-board-width,100%)}
.guest-console .board-popout-launch-row{width:var(--guest-board-span);max-width:100%}
.host-display-size{display:flex;align-items:center;gap:8px;padding:8px;font-size:13px;white-space:nowrap}

.guest-console .board-popout-launch-row{width:min(100%,var(--actual-board-width,var(--guest-board-span)))!important;max-width:var(--actual-board-width,100%)!important;align-self:center}

/* v2.180t: full notation height; move notes open only on request. */
.move-note-dialog{box-sizing:border-box;width:min(540px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:16px;border:1px solid #78b4e7;border-radius:12px;background:#0c1627;color:#eef7ff;overflow:auto;box-shadow:0 16px 60px #0009}
.move-note-dialog:not([open]){display:none}
.move-note-dialog::backdrop{background:rgba(0,6,14,.55)}
.move-note-dialog-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:12px}
.move-note-dialog-heading strong{font-size:16px;line-height:1.4;overflow-wrap:anywhere}
.move-note-dialog .move-note-editor{display:flex;flex-direction:column;gap:10px;padding:0;border:0;background:transparent;min-height:0}
.move-note-dialog .move-note-editor label span,.move-note-dialog .move-note-editor label strong{font-size:14px;line-height:1.4}
.move-note-dialog .move-note-editor textarea{box-sizing:border-box;width:100%;height:180px;min-height:100px;max-height:45vh;font-size:17px;line-height:1.5;resize:vertical;padding:10px}
.move-note-dialog .move-note-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.move-note-dialog .move-note-actions>span{font-size:12px;margin-right:auto}
.move-note-dialog .move-note-actions .btn{font-size:14px;min-height:36px}
.board-notation-rail>.move-line{flex:1 1 0!important}
.board-notation-rail .workspace-toolbar{gap:5px;padding:5px 8px}
.board-notation-rail .workspace-toolbar .btn{min-height:30px;padding:4px 7px}
.board-notation-rail .workspace-toolbar strong{font-size:11px}
.board-notation-rail .workspace-toolbar .workspace-context{display:none}

/* Tools remain left of the board in both Host and Guest board popouts. */
.guest-board-popout-workspace{grid-template-columns:180px minmax(0,1fr) minmax(280px,340px);align-items:stretch}
.guest-board-popout-controls{grid-column:1;grid-row:1;display:flex;overflow:auto}
.guest-board-popout-board-column{grid-column:2;grid-row:1}
.guest-board-popout-notation{grid-column:3;grid-row:1}
.guest-board-popout-tool-grid{grid-template-columns:1fr}
.guest-board-popout-color-grid,.guest-board-popout-symbol-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1180px) and (min-width:801px){
 .guest-board-popout-workspace{grid-template-columns:140px minmax(0,1fr) minmax(240px,280px)}
 .guest-board-popout-board-column{--popout-board-span:min(720px,calc(var(--app-viewport-height,100vh) - 270px),calc(var(--app-viewport-width,100vw) - 460px))}
}
@media(max-width:800px){
 .guest-board-popout-workspace{grid-template-columns:110px minmax(0,1fr)}
 .guest-board-popout-controls{grid-row:1;grid-column:1;display:flex;overflow:auto;max-height:calc(100vh - 180px)}
 .guest-board-popout-board-column{grid-row:1;grid-column:2;--popout-board-span:min(720px,calc(var(--app-viewport-width,100vw) - 150px))}
 .guest-board-popout-notation{grid-column:1/-1;grid-row:2;min-height:400px;max-height:600px}
 .guest-board-popout-controls>section{padding:4px}
}

/* Host player bars hug the board; spare height sits around the whole group. */
@media(min-width:1201px){
.host-console .host-board-center{justify-content:safe center!important}
.host-console .host-board-center .board-stage{flex:0 0 auto!important;height:var(--console-board-px,720px)!important;min-height:0!important;padding:0!important}
.host-console .host-board-center>.host-live-return-row,.host-console .host-board-center>.host-board-navigation{width:min(100%,var(--actual-board-width,100%))!important;max-width:var(--actual-board-width,100%)!important;align-self:center!important}
}

/* v2.180w: invariant board group geometry in live, review and analysis. */
.host-console .host-board-center,.guest-console .guest-board-center{justify-content:safe center!important}
.host-console .host-board-center .board-stage,.guest-console .guest-board-center .board-stage{flex:0 0 auto!important;height:var(--console-board-px,400px)!important;min-height:0!important;padding:0!important;place-items:center!important}
.host-console .host-board-center>.console-player-bar,.guest-console .guest-board-center>.console-player-bar{flex:0 0 39px!important;height:39px!important;min-height:39px!important}
.host-console .board-primary-actions,.guest-console .guest-board-quick-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:42px;gap:5px!important;flex:0 0 89px!important;height:89px!important;box-sizing:border-box}
.board-primary-actions>.btn,.guest-board-quick-actions>.btn{min-width:0!important;padding:4px!important;font-size:12px!important;white-space:normal;line-height:1.2}
#hostLatestLiveBtn[hidden],#guestLatestLiveBtn[hidden]{display:block!important;visibility:hidden;pointer-events:none}
.host-console .host-board-navigation,.guest-console .guest-board-navigation{flex:0 0 40px!important;height:40px!important;box-sizing:border-box}
@media(max-width:1200px) and (min-width:901px){
 .host-console .host-board-workbench{grid-template-columns:82px minmax(0,1fr)!important;grid-auto-rows:auto!important}
 .host-console #hostNotationResizeHandle{display:none!important}
 .host-console .host-board-notation-rail{grid-column:1/-1!important;height:440px!important;min-height:440px!important;max-height:440px!important}
 .host-console .host-board-center{height:auto!important;min-height:0!important;overflow:visible!important}
}
@media(max-width:900px){
 .host-console>.shell{display:flex!important;flex-direction:column!important;width:100%!important;min-width:0!important}
 .host-console>.shell>.games-panel{height:240px!important;min-height:240px!important}
 .host-console>.shell>.board-panel,.host-console>.shell>.control-workspace-panel{width:100%!important;min-width:0!important}
 .host-console .host-board-center{height:auto!important;min-height:0!important}
 .host-console .host-board-notation-rail{height:500px!important;min-height:500px!important;max-height:none!important}
}
.host-console .host-board-center #board.board-wrap,.guest-console .guest-board-center #guestBoard.board-wrap{width:var(--console-board-px,400px)!important;height:var(--console-board-px,400px)!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;box-sizing:border-box!important;flex:0 0 auto!important}
/* Status borders and long reference labels occupy the same slot in every mode. */
.host-console .host-board-panel>.mode-banner,.guest-console .guest-board-panel>#guestModeBanner,#popoutBoardMode{box-sizing:border-box!important;height:22px!important;min-height:22px!important;max-height:22px!important;flex:0 0 22px!important;padding:3px 8px!important;line-height:14px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis}

/* v2.180w: recover board height without changing geometry between modes. */
@media(min-width:1121px){
 .guest-console .guest-board-quick-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;align-self:stretch!important}
 .guest-console .guest-board-quick-actions>.btn{font-size:11px!important;letter-spacing:0!important}
}
@media(max-width:1120px){
 .guest-console .guest-board-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;flex:0 0 89px!important;height:89px!important}
 .guest-console .guest-board-quick-actions>.btn{font-size:10px!important;letter-spacing:0!important}
}
@media(min-width:901px) and (max-width:1120px){
 .guest-console{--guest-games-width:280px!important;--guest-tools-width:96px!important;--guest-notation-width:280px!important}
 .guest-console .guest-shell{height:calc(var(--app-viewport-height,100dvh) - 112px)!important}
 .guest-console .guest-production-strip{flex:0 0 51px!important}
 .guest-console.guest-games-collapsed{--guest-games-width:0px!important}
 .guest-console.guest-dock-tools-collapsed{--guest-tools-width:0px!important}
 .guest-console.guest-dock-notation-collapsed{--guest-notation-width:0px!important}
}
/* Reserve the latest-live slot even when analysis is inactive. */
@media(min-width:901px){
 .guest-console.guest-games-collapsed{--guest-games-width:0px!important}
 .guest-console.guest-dock-tools-collapsed{--guest-tools-width:0px!important}
 .guest-console.guest-dock-notation-collapsed{--guest-notation-width:0px!important}
}
#guestLatestLiveBtn[hidden],#popoutLatestLive[hidden]{display:block!important;visibility:hidden;pointer-events:none}
.guest-board-popout .board-primary-actions{display:grid!important;grid-template-columns:minmax(0,1.8fr) minmax(0,.75fr) minmax(0,.8fr) minmax(0,1.6fr)!important;grid-auto-rows:44px;gap:5px!important;height:44px!important;flex:0 0 44px!important;width:100%!important;max-width:none!important}
.guest-board-popout .board-primary-actions>.btn{font-size:11px!important;letter-spacing:0!important}
@media(max-width:1000px){
 .guest-board-popout .board-primary-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;height:93px!important;flex:0 0 93px!important}
}
/* TEAM_LEAGUE_TEAL_BEGIN */
:where(html.tl-teal) .host-live-board-head strong>span,:where(html.tl-teal) .guest-live-board-head strong>span{color:rgba(176,201,212,1);}
:where(html.tl-teal) .game-notes-status{color:rgba(223,232,236,1);}
:where(html.tl-teal) .host-game-notes-drawer{background:rgba(15,30,36,1);border-color:rgba(142,189,209,1);}
:where(html.tl-teal) .host-console .board-panel>.standings-page-controls{border-color:rgba(118,167,187,1);background:rgba(24,43,51,1);}
:where(html.tl-teal) .inline-roll-call-editor{border-color:rgba(111,152,170,1);background:rgba(20,35,41,1);}
:where(html.tl-teal) .inline-roll-call-editor .showcase-candidate-row.selected{background:rgba(24,39,46,1);}
:where(html.tl-teal) .roll-call-draft-actions{background:rgba(15,31,37,1);border-top-color:rgba(119,165,185,1);}
:where(html.tl-teal) .workspace-popout{background:rgba(10,22,27,1);color:rgba(244,247,249,1);}
:where(html.tl-teal) .workspace-popout>header{background:rgba(21,39,46,1);border-bottom-color:rgba(128,167,183,1);}
:where(html.tl-teal) .workspace-live-card{border-color:rgba(83,110,121,1);background:rgba(21,37,43,1);}
:where(html.tl-teal) .workspace-live-card.selected{border-color:rgba(136,185,206,1);}
:where(html.tl-teal) .workspace-live-card>small{color:rgba(196,215,223,1);}
:where(html.tl-teal) .host-games-resize-handle:hover,:where(html.tl-teal) .host-games-resize-handle:focus{background:rgba(36,81,100,1);}
:where(html.tl-teal) .move-note-dialog{border-color:rgba(142,189,209,1);background:rgba(15,30,36,1);color:rgba(244,247,249,1);}
:where(html.tl-teal) .move-note-dialog::backdrop{background:rgba(3,9,11,0.55);}
