/* TD live workspace only. Keep original controls, blue 2:1 table SVG and handlers. */
@media screen and (min-width:900px){
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view):not(.pb-kitchen-open) .shell>main,
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view):not(.pb-kitchen-open) .shell>nav{scroll-padding-bottom:calc(var(--pb794-account-clearance,100px) + 20px);padding-bottom:calc(var(--pb794-account-clearance,100px) + 20px)!important;min-height:0}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view):not(.pb-kitchen-open) .shell>nav{overflow-y:auto!important;overscroll-behavior:contain}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) :is(#doubleWorkspace #deMatches,#scotchSharedBracket756 #deMatches,#pbFormatLive){padding:12px!important;margin:8px 0!important;min-width:0}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) :is(#doubleWorkspace #deMatches,#scotchSharedBracket756 #deMatches,#pbFormatLive)>h2{font-size:20px;margin:0 0 7px!important}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) :is(#doubleWorkspace #deMatches,#scotchSharedBracket756 #deMatches,#pbFormatLive)>p{margin:6px 0 10px!important;line-height:1.35}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) :is(#doubleWorkspace #deMatches,#scotchSharedBracket756 #deMatches,#pbFormatLive)>.pbde-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,460px),1fr))!important;gap:10px!important;align-items:start}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) :is(#doubleWorkspace #deMatches,#scotchSharedBracket756 #deMatches,#pbFormatLive) .pb646-live-pool{display:grid!important;grid-template-columns:minmax(0,260px) minmax(130px,1fr);gap:8px 12px;align-items:center;margin:0!important;padding:10px!important;min-width:0}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) :is(#doubleWorkspace #deMatches,#scotchSharedBracket756 #deMatches,#pbFormatLive) .pb647-table-surface{grid-column:1;grid-row:1/4;width:100%;max-width:260px;aspect-ratio:2/1;margin:0!important}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) :is(#doubleWorkspace #deMatches,#scotchSharedBracket756 #deMatches,#pbFormatLive) .pb647-table-content{inset:12% 7%;gap:4px;font-size:12px;line-height:1.2}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) :is(#doubleWorkspace #deMatches,#scotchSharedBracket756 #deMatches,#pbFormatLive) .pb647-table-content>strong{font-size:14px}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) :is(#doubleWorkspace #deMatches,#scotchSharedBracket756 #deMatches,#pbFormatLive) .pb647-player small{margin-top:2px}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) :is(#doubleWorkspace #deMatches,#scotchSharedBracket756 #deMatches,#pbFormatLive) .pb671-score-entry{grid-column:2;display:grid!important;grid-template-columns:minmax(0,1fr);gap:7px!important;margin:0!important;min-width:0;width:100%!important;max-width:none!important}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) :is(#doubleWorkspace #deMatches,#scotchSharedBracket756 #deMatches,#pbFormatLive) .pb671-score-entry label{display:grid!important;grid-template-columns:minmax(0,1fr) 58px!important;align-items:center;gap:8px!important;margin:0!important;min-width:0;line-height:1.25}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) :is(#doubleWorkspace #deMatches,#scotchSharedBracket756 #deMatches,#pbFormatLive) .pb671-score-entry label span{overflow-wrap:anywhere;font-size:13px}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) :is(#doubleWorkspace #deMatches,#scotchSharedBracket756 #deMatches,#pbFormatLive) .pb671-score-entry input{width:58px!important;max-width:58px!important;min-width:58px!important;height:40px!important;min-height:40px;padding:5px!important;font-size:15px!important;box-sizing:border-box}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) :is(#doubleWorkspace #deMatches,#scotchSharedBracket756 #deMatches,#pbFormatLive) .pb646-live-pool>button{grid-column:2;margin:0!important;min-height:44px;padding:8px 10px!important;font-size:14px!important}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) :is(#doubleWorkspace #deMatches,#scotchSharedBracket756 #deMatches,#pbFormatLive) .pb758-team-live-racks{grid-column:1/-1;margin:0!important;font-size:13px}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) :is(#doubleWorkspace,#scotchSharedBracket756) [data-pb677-release-panel]{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:10px 12px!important;margin:8px 0!important}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) :is(#doubleWorkspace,#scotchSharedBracket756) [data-pb677-release-panel]>h3{font-size:16px;margin:0!important}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) :is(#doubleWorkspace,#scotchSharedBracket756) [data-pb677-release-panel]>p{flex:1 1 350px;margin:0!important;font-size:13px;line-height:1.35}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) :is(#doubleWorkspace,#scotchSharedBracket756) [data-pb677-release-panel]>label{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:13px;min-width:0}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) :is(#doubleWorkspace,#scotchSharedBracket756) [data-pb677-release-panel] select{max-width:100%;min-height:40px}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) :is(#doubleWorkspace,#scotchSharedBracket756) [data-pb677-release-panel]>button{min-height:44px;margin:0!important;padding:8px 12px!important;font-size:14px}
}
/* Narrow/zoomed work area: preserve labels and controls instead of clipping a fixed two-column card. */
@media screen and (min-width:900px) and (max-width:1100px){
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) :is(#doubleWorkspace #deMatches,#scotchSharedBracket756 #deMatches,#pbFormatLive) .pb646-live-pool{grid-template-columns:minmax(0,240px) minmax(130px,1fr)}
}

.pb794-race{display:none}
@media screen and (min-width:900px){
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) :is(#doubleWorkspace #deMatches,#scotchSharedBracket756 #deMatches,#pbFormatLive) .pb647-players{display:none!important}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) :is(#doubleWorkspace #deMatches,#scotchSharedBracket756 #deMatches,#pbFormatLive) .pb794-race{display:block;font-size:12px;font-weight:normal;color:#bfd6e7;margin-top:2px}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) :is(#doubleWorkspace #deMatches,#scotchSharedBracket756 #deMatches,#pbFormatLive) .pb671-score-entry label span{display:block!important}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) #pbFormatLive .pb434-table-map:has(.pb646-live-pool){grid-template-columns:repeat(auto-fit,minmax(min(100%,460px),1fr))!important}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) #pbFormatLive .pb434-pool:has(.pb646-live-pool){min-height:0!important;aspect-ratio:auto!important}
}
@media screen and (min-width:900px){
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view)[data-pb-scotch-view="matches"] #scotchWorkspace754{padding:12px!important;margin-top:8px!important}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view)[data-pb-scotch-view="matches"] #scotchStatus754{margin:0 0 8px!important;font-size:13px;line-height:1.35}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) #scotchSharedBracket756>.actions{margin:6px 0!important}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view) #scotchSharedBracket756>.actions>button{min-height:44px;padding:8px 12px!important;font-size:14px!important;margin:0!important}
}

/* Browser zoom can put a desktop below900px while its account bar remains fixed. */
@media screen{
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view):not(.pb-kitchen-open) .shell>main,
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view):not(.pb-kitchen-open) .shell>nav{scroll-padding-bottom:calc(var(--pb794-account-clearance,100px) + 20px);padding-bottom:calc(var(--pb794-account-clearance,100px) + 20px)!important}
}
