/* Viewport workspaces: keep commands visible and scroll only the data region. */
.so-market .so-workspace[data-workspace=lineup]{grid-template-columns:minmax(0,1fr)!important}
.so-market .so-pool[hidden]{display:none!important}
.so-market .so-workspace[data-workspace=lineup] .so-team-panel{min-width:0}
.so-market .game-owned-list{overflow:auto;overscroll-behavior:contain;max-height:420px}
.so-market .so-player-grid{overflow:auto;overscroll-behavior:contain;max-height:560px;padding:3px 6px 3px 3px;align-content:start}
.so-market .so-player-grid:focus-visible{outline:2px solid #80ded0;outline-offset:-2px}
@media(min-width:1000px) and (min-height:650px){
 body:not(.is-career-menu) #app{height:calc(100dvh - 100px);min-height:0;overflow:hidden;display:flex;flex-direction:column;padding:12px 24px}
 #app>.career-tools{flex:0 0 auto;margin:0 0 6px}
 .so-market.game-workbench{width:100%;max-width:none;align-self:stretch;flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;height:auto!important}
 .so-market .so-head{flex:0 0 auto;margin:0 0 6px!important;padding:0 0 6px!important}
 .so-market .so-head h1{font-size:28px!important;margin:0}
 .so-market .so-head p{margin:0}
 .so-market .so-budget{position:static;flex:0 0 auto;margin:0 0 6px!important}
 .so-market .game-market-policy{flex:0 0 auto;margin:0 0 6px;max-height:70px;overflow:auto}
 .so-market .so-notice{flex:0 0 auto;max-height:60px;overflow:auto;margin:0 0 6px}
 .so-market .so-workspace{flex:1;min-height:0;overflow:hidden;align-items:stretch;gap:14px}
 .so-market .so-team-panel{display:flex;flex-direction:column;min-height:0;overflow:hidden;align-self:stretch;padding:6px!important;gap:6px}
 .so-market .game-console-tabs{margin:0;padding:0;flex:0 0 auto}
 .so-market .lineup-board header{margin:0;padding:0}
 .so-market .so-roster{flex:1;min-height:0;display:flex;flex-direction:column}
 .so-market .game-owned-list{flex:1;min-height:0;max-height:none;margin:0}
 .so-market .so-pool{min-height:0;display:flex;flex-direction:column;overflow:hidden}
 .so-market .so-section-heading{flex:0 0 auto;margin:0}
 .so-market .game-pool-toolbar{flex:0 0 auto}
 .so-market .so-filters{position:static;padding:4px 0;margin:0}
 .so-market .so-player-grid{flex:1;min-height:0;max-height:none}
 .so-market .so-actions{position:static!important;flex:0 0 auto;margin:6px 0 0!important;padding:6px 8px!important}
 .so-market .lineup-board{flex:1;min-height:0;grid-template-columns:minmax(360px,1fr) minmax(340px,1fr);gap:14px;overflow:hidden}
 .so-market .board-lists{max-height:none;height:100%;min-height:0}
 .so-market .board-court-column{display:flex;flex-direction:column;min-height:0;overflow:auto}
 .so-market .board-court{min-height:235px;padding:6px 10px}
 .so-market .board-back{margin-top:10px}
 .so-market .board-shirt{height:38px;width:48px}
 .so-market .board-slot strong{min-height:30px;padding:3px;line-height:1.1}
 .so-market .board-court-column h2{font-size:22px;margin:2px 0}
 .so-market .board-libero .board-slot{margin:6px 0}
 .so-market .board-help{margin:2px 0}
 .so-market .so-validation{flex:0 0 auto;max-height:50px;overflow:auto}
 .room-summary{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 .room-summary .game-report-heading{flex:0 0 auto}
 .room-summary .room-result-panel{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 .room-summary .room-result-hero,.room-summary .game-report-tabs{flex:0 0 auto}
 .room-summary .room-summary-grid{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
 .game-team-hub{flex:1;min-height:0;overflow:hidden}
 .game-team-hub .so-w-table-scroll,.game-team-hub .so-w-log-index{max-height:calc(100dvh - 260px)!important}
}
@media(max-width:999px){
 .so-market .lineup-board{grid-template-columns:1fr!important}
 .so-market .board-lists{height:360px;max-height:360px}
 .so-market .so-player-grid{max-height:520px}
}
@media(min-width:1000px) and (min-height:650px){
 .so-market:has(.so-workspace[data-workspace=lineup]) .so-budget,
 .so-market:has(.so-workspace[data-workspace=lineup]) .game-market-policy{display:none!important}
 .so-market .board-court{flex:0 0 auto}
 .so-market .board-libero{flex:0 0 auto}
 .so-market .board-help,.so-market .board-feedback{flex:0 0 auto}
}
.game-team-hub .so-w-balance{background:#17263a!important;color:#f0f5fc!important;border:1px solid #536980;padding:8px 14px!important;min-width:104px}
.game-team-hub .so-w-balance span{color:#bfd0e1!important;font-size:14px}
.game-team-hub .so-w-balance strong{color:#80ded0!important;font-size:24px}
.game-team-hub .so-w-pace{display:flex;flex-wrap:wrap;min-width:0;gap:4px}
@media(min-width:1000px) and (min-height:650px){
 .game-team-hub{width:100%;max-width:none!important;display:flex;flex-direction:column}
 .game-team-hub .game-team-identity{display:flex!important;flex-direction:row!important;justify-content:space-between;align-items:center;flex:0 0 auto;padding:0 0 8px!important}
 .game-team-hub .game-hub-layout{flex:1;min-height:0;overflow:hidden;grid-template-columns:minmax(290px,320px) minmax(0,1fr)}
 .game-team-hub .game-hub-agenda,.game-team-hub .game-hub-main{min-height:0;overflow:auto;overscroll-behavior:contain}
 .game-team-hub .game-hub-main{display:flex;flex-direction:column}
 .game-team-hub .so-w-active-panel{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
 .game-team-hub .game-console-tabs{flex-wrap:wrap}
}
.career-tools:has(+.game-team-hub){position:static!important;top:auto!important;right:auto!important;z-index:auto!important}
.game-team-hub .so-w-pace .so-w-segmented{display:flex!important;flex-wrap:wrap!important;min-width:0;max-width:100%;width:100%;background:#17263a!important}
.game-team-hub .so-w-pace .so-w-segmented button{flex:1 1 110px;min-width:0;white-space:normal}
.game-team-hub .game-hub-agenda{overflow-x:hidden}
@media(min-width:1000px) and (min-height:650px){
 .national-selection.so-national{flex:1;min-height:0;width:100%;max-width:none!important;display:flex;flex-direction:column;overflow:hidden;height:auto!important}
 .national-selection>.so-head{flex:0 0 auto;margin:0 0 6px!important;padding:0 0 6px!important}
 .national-selection>.so-head .so-kicker{display:none}
 .national-selection>.so-head h1{font-size:28px!important;margin:0}
 .national-selection>.so-head p{margin:4px 0}
 .national-selection .so-national-top{flex:0 0 auto;padding:6px 10px!important;margin:0 0 6px!important}
 .national-selection .board-filters{flex:0 0 auto;margin:0 0 6px!important}
 .national-selection .so-filters{margin:0;padding:0;position:static;gap:12px}
 .national-selection .lineup-board{flex:1;min-height:0;max-height:none;height:auto!important;grid-template-columns:minmax(360px,1fr) minmax(400px,1.12fr);gap:16px;overflow:hidden}
 .national-selection .board-court-column{display:flex;flex-direction:column;min-height:0;overflow:auto;overscroll-behavior:contain}
 .national-selection .board-lists{height:100%;max-height:none;min-height:0}
 .national-selection .board-court-column header{margin:0;padding:0}
 .national-selection .board-court-column h2{font-size:22px;margin:0}
 .national-selection .board-court{flex:0 0 auto;min-height:235px;padding:6px 10px}
 .national-selection .board-shirt{height:38px;width:48px}
 .national-selection .board-back{margin-top:10px}
 .national-selection .board-slot strong{min-height:30px;padding:3px;line-height:1.1}
 .national-selection .board-libero{flex:0 0 auto}
 .national-selection .board-libero .board-slot{margin:6px 0}
 .national-selection .board-help,.national-selection .board-feedback{flex:0 0 auto;margin:2px 0}
 .national-selection>.so-validation{flex:0 0 auto;max-height:40px;overflow:auto}
 .national-selection>.so-actions{position:static!important;flex:0 0 auto;margin:6px 0 0!important;padding:6px 8px!important}
}
@media(min-width:1000px) and (min-height:650px){
 .national-selection .so-national-top{display:flex;gap:12px;align-items:end}
 .national-selection .so-national-top>label{flex:0 0 160px}
 .national-selection .so-national-top>h2{flex:0 0 auto;margin:0 0 8px;font-size:22px}
 .national-selection .so-national-top>.board-filters{flex:1;min-width:270px;margin:0!important}
 .national-selection .so-national-top .so-filters{display:flex;gap:8px}
 .national-selection .so-national-top .so-filters>label{min-width:0;flex:1;margin:0}
 .national-selection .so-national-top .so-filters input,.national-selection .so-national-top .so-filters select{width:100%;margin:0}
 .national-selection .so-selection-counts{flex:0 0 auto}
}
@media(max-width:999px){.national-selection .so-national-top>.board-filters{flex:1 1 100%;min-width:0}}
/* Player lists and the selected profile are independent bounded workspaces. */
.game-database-rows{max-height:520px;overflow:auto;overscroll-behavior:contain}
@media(min-width:1000px) and (min-height:650px){
 .game-database{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 .game-database>.so-head,.game-database-filters{flex:0 0 auto}
 .game-database-filters{margin:8px 0}
 #database{flex:1;min-height:0;overflow:hidden}
 .game-database-workspace{height:100%;min-height:0;overflow:hidden}
 .game-database-list{min-height:0;display:flex;flex-direction:column}
 .game-database-list>.game-section-heading{flex:0 0 auto}
 .game-database-rows{flex:1;min-height:0;max-height:none}
 .game-player-inspector{height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;align-self:stretch;box-sizing:border-box}
}
