/* Office layout pass: fill the desk, cut needless scrolling.
   Loaded last. Layout only: no colours, tokens or game state change here. */

/* ---------- Promo and planning conversation: use the full stage height ----------
   The earlier pass shrank the window to its content, leaving most of the
   screen empty. On desktop the window now fills the stage; dialogue and
   decision columns each own their scroll. */
@media (min-width:901px) and (min-height:600px){
 #tv .s-promo:not(.broadcast-redesign),
 #tv .s-meeting:not(.sheet-redesign){grid-template-rows:minmax(0,1fr);align-content:stretch;overflow:hidden}
 #tv .s-promo:not(.broadcast-redesign)>.win,
 #tv .s-meeting:not(.sheet-redesign)>.win{height:100%;min-height:0;overflow:hidden;align-self:stretch;display:flex;flex-direction:column}
 #tv .s-promo:not(.broadcast-redesign)>.win>.wbody,
 #tv .s-meeting:not(.sheet-redesign)>.win>.wbody{flex:1 1 auto;min-height:0;grid-template-rows:auto minmax(0,1fr) auto;align-items:stretch;overflow:hidden}
 #tv :is(.s-promo:not(.broadcast-redesign),.s-meeting:not(.sheet-redesign)) .wbody>:is(.scene,.promo-conversation),
 #tv :is(.s-promo:not(.broadcast-redesign),.s-meeting:not(.sheet-redesign)) .wbody>.decide2{align-self:stretch;min-height:0;overflow:auto;overscroll-behavior:contain}
 #tv :is(.s-promo:not(.broadcast-redesign),.s-meeting:not(.sheet-redesign)) .scene{padding:10px 12px}
 #tv :is(.s-promo:not(.broadcast-redesign),.s-meeting:not(.sheet-redesign)) .decide2{padding:10px 14px}
 #tv .s-promo:not(.broadcast-redesign) .promo-conversation>.scene{overflow:visible}
 /* With the extra height, give choices and their consequences room to read. */
 #tv :is(.s-promo:not(.broadcast-redesign),.s-meeting:not(.sheet-redesign)) .decision-option{padding:9px 11px;gap:5px}
 #tv :is(.s-promo:not(.broadcast-redesign),.s-meeting:not(.sheet-redesign)) .decision-option>b{font-size:21px}
 #tv :is(.s-promo:not(.broadcast-redesign),.s-meeting:not(.sheet-redesign)) .decision-option>span:not(.tags){font-size:17px;line-height:1.25}
 #tv :is(.s-promo:not(.broadcast-redesign),.s-meeting:not(.sheet-redesign)) .tags i{font-size:15px;padding:2px 5px}
 #tv :is(.s-promo:not(.broadcast-redesign),.s-meeting:not(.sheet-redesign)) .scene{font-size:20px}
 #tv :is(.s-promo:not(.broadcast-redesign),.s-meeting:not(.sheet-redesign)) .decide2 .section-h{font-size:30px}
}

/* ---------- Full-time result: one compact headline row, not a poster ---------- */
.s-result .final{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"stars verdict" "stars sum";align-items:center;column-gap:24px;row-gap:6px;text-align:left;padding:6px 12px 4px}
.s-result .final .bigstars{grid-area:stars;font-size:clamp(52px,5.4vw,80px);text-shadow:3px 3px 0 var(--blood),6px 6px 0 #000}
.s-result .final .verdict{grid-area:verdict;margin:0;font-size:26px}
.s-result .final>:not(.bigstars):not(.verdict){grid-area:sum;margin:0;min-width:0}
@media (max-width:720px){
 .s-result .final{grid-template-columns:minmax(0,1fr);grid-template-areas:"stars" "verdict" "sum";text-align:center;justify-items:center}
}

/* ---------- Booking sheets: two newspaper columns instead of one long strip ---------- */
@media (min-width:1100px){
 /* The columns live on an inner wrapper with its natural height. On the scrolling panel itself, a fixed
    height made extra columns spill sideways into a horizontal scrollbar once the board filled up. */
 #view .wbody[data-keep="sheets"] .sheet-columns{columns:2 460px;column-gap:18px;column-rule:1px solid var(--stone-lo)}
 #view .wbody[data-keep="sheets"] .sheet-columns .section-h{break-after:avoid}
 #view .wbody[data-keep="sheets"] .sheet-columns :is(li,.cons,.well,.board,table,p){break-inside:avoid}
 #view .wbody[data-keep="sheets"] .sheet-columns>.section-h:first-child{margin-top:0}
}

/* ---------- Thin explanatory paragraphs: keep a readable measure ---------- */
#view .wbody>p{max-width:110ch}

/* ---------- Empty states: compact, not a full-height void ---------- */
#view .empty,#view .wbody>.empty{padding:14px}

/* ---------- Phone: less vertical waste ---------- */
@media (max-width:720px){
 /* Header already shows reputation and meetings; don't repeat them on the desk. */
 #view .phone-progress{display:none}
 .top .readouts{grid-template-columns:minmax(0,1.25fr) minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr)}
 .top .ro b{white-space:nowrap;font-size:15px}
 /* Record cards: action sits beside the facts instead of on its own row. */
 #view .phone-card:has(>.record-actions){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;row-gap:3px;align-items:center}
 #view .phone-card:has(>.record-actions)>:not(.record-actions){grid-column:1}
 #view .phone-card>.record-actions{grid-column:2;grid-row:1/span 3;margin:0;align-self:center}
 #view .phone-card>.record-actions .btn{width:auto;min-height:44px;padding:4px 10px}
 #view .desk-brief{gap:6px}
 .top .ro small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
 /* Filters: search and view side by side; count and clear share one line. */
 #view .management-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px 8px;align-items:end;padding:6px 8px}
 #view .management-filters label{min-width:0;margin:0;grid-row:1;grid-column:2}
 #view .management-filters label:first-of-type{grid-column:1}
 #view .management-filters .filter-results{grid-row:2;grid-column:1}
 #view .management-filters .btn{grid-row:2;grid-column:2;white-space:nowrap}
 #view .management-filters :is(input,select){width:100%;min-width:0;min-height:40px}
 #view .management-filters .btn{min-height:36px;justify-self:end}
 /* Scouting has three controls, unlike the two-control management toolbars.
    Keep the search readable and prevent the two selects sharing a grid cell. */
 #view .free-filters .management-filters label:has([data-scout-query]){grid-column:1/-1;grid-row:1}
 #view .free-filters .management-filters label:has([data-scout-style]){grid-column:1;grid-row:2}
 #view .free-filters .management-filters label:has([data-scout-budget]){grid-column:2;grid-row:2}
 #view .free-filters .management-filters .filter-results{grid-row:3;grid-column:1}
 #view .free-filters .management-filters .btn{grid-row:3;grid-column:2}
 #view .free-filters .management-filters :is(input,select,.btn){box-sizing:border-box;min-width:0;max-width:100%;min-height:44px}
 /* Title-bar shortcuts stay on the bar instead of wrapping to a second row. */
 #view .tbar:has(>.btn){flex-wrap:nowrap}
 #view .tbar>h2{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #view .tbar>.btn{flex:none;min-height:36px;padding:2px 7px;font-size:14px}
}

/* ---------- Card ladder: tighter tiers so the pyramid fits on one desk ---------- */
#view .belt-hero{padding:4px 10px;margin-bottom:4px;grid-template-columns:minmax(0,150px) 1fr}
#view .tiers{gap:3px;padding:2px 8px}
#view .tier{grid-template-columns:92px minmax(0,1fr);gap:8px}
#view .tier>strong{font-size:20px;line-height:1.05}
#view .tier .entries{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:3px}
#view .pent{min-width:0;padding:2px 7px;line-height:1.15}
#view .pent small{font-size:14px;line-height:1.1}
@media (max-width:720px){
 #view .tier{grid-template-columns:minmax(0,1fr);gap:3px}
 #view .tier>strong{text-align:left}
 #view .tier .entries{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ---------- Promo segment picker: a full-size menu, not a strip at the top ---------- */
@media (min-width:901px) and (min-height:600px){
 #tv .s-promo:not(.broadcast-redesign) .wbody:not(:has(.scene))>.decide2{overflow:auto;padding:12px 16px}
 #tv .s-promo:not(.broadcast-redesign) .wbody:not(:has(.scene)) .desk-table .grid{font-size:19px}
 #tv .s-promo:not(.broadcast-redesign) .wbody:not(:has(.scene)) .desk-table .grid :is(td,th){padding:10px 10px;vertical-align:middle}
 #tv .s-promo:not(.broadcast-redesign) .wbody:not(:has(.scene)) .desk-table .grid th{font-size:16px}
 #tv .s-promo:not(.broadcast-redesign) .wbody:not(:has(.scene)) .desk-table .row-pick b{font-size:21px}
 #tv .s-promo:not(.broadcast-redesign) .wbody:not(:has(.scene)) .desk-table :is(.row-pick small,.desk-effect){font-size:16px;line-height:1.3}
}

/* ---------- Training: headings never break mid-word ---------- */
#view .s-train .train-grid th{overflow-wrap:normal;word-break:normal;white-space:nowrap}
#view .s-train .train-grid td{overflow-wrap:break-word}

/* ---------- Phone profile: each action sits beside its note, left aligned ---------- */
@media (max-width:900px){
 #view .phead .acts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 10px;align-items:center;justify-items:start}
 #view .phead .acts>.btn{grid-column:1;width:100%;min-height:44px;margin:0}
 #view .phead .acts>span{grid-column:2;line-height:1.25}
}

/* ---------- Contrast: text on dark wells must use light ink ----------
   Shared rules force <b> inside choices to dark ink; when a choice sits on a
   dark well it must inherit the light row colour instead. */
.neg-choices .neg-choice b,.neg-choices .neg-choice strong{color:inherit}
.neg-choices>.neg-more{color:var(--white);background:var(--well);border-color:var(--well-line)}
.neg-choices>.neg-more>summary,.neg-choices>.neg-more>.stip-ask{color:var(--white)}
.neg-choices>.neg-more .choice{color:var(--ink)}
.neg-choices>.neg-more .choice b{color:var(--ink)}
.cons li{color:var(--ink)}
/* Muted text inside dark cards and table wells uses the light muted ink. */
:is(.phone-card,.well .grid) .dim{color:var(--dim)}
.phone-card .good{color:var(--good)}.phone-card .bad{color:var(--bad)}

/* ---------- Planning desk typography: one family like every other screen ----------
   An earlier pass switched this desk alone to a sans body face, which clashed
   with the pixel titles. Return it to the game body face (--px), sized up
   because Jersey 15 runs small. Titles keep --jersey. */
@media(min-width:721px){
 #tv .s-meeting.sheet-redesign .wbody{font:19px/1.3 var(--px)}
 #tv .s-meeting.sheet-redesign .desk-rail>*{font-size:19px;line-height:1.2}
 #tv .s-meeting.sheet-redesign :is(.sheet-body small,.desk-notes){font-size:17px}
 #tv .s-meeting.sheet-redesign .desk-objectives{font-size:19px}
 #tv .s-meeting.sheet-redesign .desk-line{font-size:20px;line-height:1.3}
 #tv .s-meeting.sheet-redesign .desk-line b{font-weight:400}
 #tv .s-meeting.sheet-redesign .match-attributes>.match-stat{font-size:17px}
 #tv .s-meeting.sheet-redesign .match-attributes>.match-stat>b{font:400 21px/1.1 var(--px)}
 #tv .s-meeting.sheet-redesign .structure-option b{font:22px/1.1 var(--jersey);font-weight:400}
 #tv .s-meeting.sheet-redesign .structure-option small{font-size:18px;line-height:1.25}
 #tv .s-meeting.sheet-redesign .structure-option .momentum-shape text{font:15px var(--px)}
 #tv .s-meeting.sheet-redesign .shape-axis{font-size:16px}
 #tv .s-meeting.sheet-redesign :is(.structure-help,.structure-change>summary,.structure-lead>span){font-size:18px}
 #tv .s-meeting.sheet-redesign .desk-table .grid{font-size:19px}
 #tv .s-meeting.sheet-redesign :is(.desk-table .grid th,.desk-table .desk-effect,.desk-table .row-pick small){font-size:17px;line-height:1.25}
 #tv .s-meeting.sheet-redesign .desk-table .row-pick b{font-weight:400;font-size:20px}
 #tv .s-meeting.sheet-redesign :is(.finish-objection,.spot-options .btn,.rorder-verdict,.finish-preparation){font-size:17px}
}
/* Response tables: the number column is a narrow index, not half the table. */
#tv .desk-table .grid :is(th:first-child,.desk-index){width:2.4em;white-space:nowrap}
#tv .desk-table .grid tr>.desk-response:last-child{width:100%}
#tv .desk-table .grid :is(th:first-child,.desk-index){width:1%}

/* Sparse effects folded into the response cell (see deskTable). */
#tv .desk-table .desk-effects{display:flex;flex-wrap:wrap;gap:2px 12px;margin-top:3px}
#tv .desk-table .desk-fold-label{color:var(--cyan)}
#tv .desk-table .desk-fold .up{color:var(--good)}
#tv .desk-table .desk-fold .down{color:var(--bad)}

/* Response tables with no effect columns: on wide screens show the options
   as a grid of tiles instead of full-width rows of mostly empty space. */
@media (min-width:901px){
 #tv .desk-table:not(:has(td.desk-effect)) .grid{display:block;width:100%}
 #tv .desk-table:not(:has(td.desk-effect)) thead{display:none}
 #tv .desk-table:not(:has(td.desk-effect)) tbody{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:2px;background:var(--well-line)}
 #tv .desk-table:not(:has(td.desk-effect)) tbody>tr{display:flex;align-items:stretch;min-width:0;background:var(--well)}
 #tv .desk-table:not(:has(td.desk-effect)) tbody>tr:nth-child(even){background:var(--well-row)}
 #tv .desk-table:not(:has(td.desk-effect)) tbody>tr>td{display:block;border:0}
 #tv .desk-table:not(:has(td.desk-effect)) .desk-index{width:auto;flex:none;padding:10px 4px 10px 10px}
 #tv .desk-table:not(:has(td.desk-effect)) .desk-response{flex:1;width:auto;min-width:0}
 #tv .desk-table:not(:has(td.desk-effect)) .row-pick{height:100%;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;align-content:start}
}
/* Four options: always a 2×2 grid, never 3 + 1. */
@media (min-width:901px){
 #tv .desk-table:not(:has(td.desk-effect)) tbody:has(>tr:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* Folded effects: each one is its own small chip with clear separation. */
#tv .desk-table .row-pick .desk-effects{display:flex;flex-wrap:wrap;gap:5px 8px;margin-top:5px}
#tv .desk-table .row-pick .desk-fold{display:inline-flex;align-items:baseline;gap:5px;padding:1px 7px;background:var(--deep);border:1px solid var(--well-line);white-space:nowrap}
/* Tiles don't need row numbers; they aren't shortcuts. */
@media (min-width:901px){
 #tv .desk-table:not(:has(td.desk-effect)) .desk-index{display:none}
 #tv .desk-table:not(:has(td.desk-effect)) .desk-response{padding-left:6px}
}
/* Match-sheet beats: order is shown by position; no numbers. The list stays
   an <ol> so screen readers still hear the order. */
#tv .desk-objectives{list-style:none;padding-left:0}
#tv .desk-objectives li{padding:4px 0;border-bottom:1px solid var(--stone-lo)}
#tv .desk-objectives li.active{padding-left:6px;padding-right:6px}
#tv .desk-objectives li:last-child{border-bottom:0}

/* ---------- Vignette settings: category filter and sort above the tiles ----------
   Many settings, so the player can narrow them by category or sort by fit.
   Layout only; the buttons reuse the inbox filter look (.btn.sm, .go when active). */
#tv .seg-filters{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 14px;margin:0 0 8px}
#tv .seg-filter-group{display:flex;flex-wrap:wrap;gap:4px}
@media (max-width:720px){#tv .seg-filters{justify-content:flex-start}}

/* ---------- After the bell: give the choices the room ----------
   The generic backstage split (dialogue 1.65 : choices 1) left six post-bell actions in a narrow,
   scrolling column beside a nearly empty log. While a decision is open, use the promo split
   (dialogue 2 : choices 3) and lay the options out three across so they fit without scrolling. */
@media (min-width:1181px) and (min-height:600px){
 #tv .s-after:not(.is-done) .wbody{grid-template-columns:minmax(0,2fr) minmax(0,3fr)}
 #tv .s-after:not(.is-done) .decide2 .picks{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Actual microphone duels: compact full-width response rows, rather than
   the oversized segment-picker cards. Keep the crowd and dialogue above. */
@media (min-width:901px){
 #tv .s-promo.broadcast-redesign .promo-conversation:has(.promo-context){grid-template-columns:minmax(0,1.65fr) minmax(0,1fr)}
 #tv .s-promo.broadcast-redesign .desk-table .grid :is(td,th){padding:3px 5px}
 #tv .s-promo.broadcast-redesign .desk-table .row-pick{padding:3px;min-height:0}
 #tv .s-promo.broadcast-redesign .desk-table .row-pick small{font-size:13px;line-height:1.15}
 #tv .s-promo.broadcast-redesign .promo-context :is(p,.mic-read,.mic-cue,.mic-open){margin:0 0 3px;padding:2px 4px}
}

/* Live one-to-one promo: full-width crowd, conversation LEFT, decisions RIGHT.
   Keep the desktop window inside the viewport and let long transcripts scroll
   within their own panel rather than pushing the choices off the screen. */
@media (min-width:901px) and (min-height:600px){
 #tv .s-promo.broadcast-redesign{grid-template-rows:minmax(0,1fr);align-content:stretch;overflow:hidden}
 #tv .s-promo.broadcast-redesign>.win{height:100%;min-height:0;min-width:0;align-self:stretch;overflow:hidden}
 #tv .s-promo.broadcast-redesign>.win>.wbody{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:6px;align-items:stretch;flex:1 1 auto;min-height:0;min-width:0;overflow:hidden}
 #tv .s-promo.broadcast-redesign>.win>.wbody>.crowd-broadcast{grid-column:1/-1;grid-row:1;min-height:0}
 #tv .s-promo.broadcast-redesign>.win>.wbody>.promo-conversation{grid-column:1;grid-row:2;display:flex;flex-direction:column;gap:6px;align-self:stretch;min-width:0;min-height:0;overflow:hidden}
 #tv .s-promo.broadcast-redesign .promo-context{order:-1;flex:0 0 auto;max-height:40%;overflow:auto;min-height:0}
 #tv .s-promo.broadcast-redesign #micTalk.desk-transcript{flex:1 1 0;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
 #tv .s-promo.broadcast-redesign>.win>.wbody>.decide2{grid-column:2;grid-row:2;align-self:stretch;display:flex;flex-direction:column;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;border:2px solid var(--ink);padding:8px;background:var(--paper)}
 #tv .s-promo.broadcast-redesign .decide2 .desk-table{flex:1 0 auto;min-width:0}
 #tv .s-promo.broadcast-redesign .desk-table .grid{display:table;width:100%;table-layout:auto}
 #tv .s-promo.broadcast-redesign .desk-table .grid tbody{display:table-row-group}
 #tv .s-promo.broadcast-redesign .desk-table .grid tbody>tr{display:table-row}
 #tv .s-promo.broadcast-redesign .desk-table .grid tbody>tr>td{display:table-cell}
 #tv .s-promo.broadcast-redesign .desk-table .grid .desk-index{display:none}
 #tv .s-promo.broadcast-redesign .desk-table .grid .desk-response{width:100%;padding:6px}
 #tv .s-promo.broadcast-redesign .desk-table .row-pick.decision-option{display:block;width:100%;height:auto;min-height:48px;padding:7px;text-align:left}
 #tv .s-promo.broadcast-redesign .desk-table .row-pick b{font-size:20px}
 #tv .s-promo.broadcast-redesign .desk-table .row-pick small{font-size:16px;line-height:1.25}
}

/* Shared match-night workspace. Select by the actual direct children, so
   loading screens, the signed match desk and the live ring are unaffected. */
@media (min-width:901px) and (min-height:600px){
 #tv .s-back:not(.s-meeting,.broadcast-redesign):has(>.win>.wbody>.match-night-matchup){
  display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);
  align-content:stretch;overflow:hidden;padding:5px 8px;gap:0
 }
 #tv .s-back:not(.s-meeting,.broadcast-redesign):has(>.win>.wbody>.match-night-matchup)>.win{
  width:100%;max-width:none;height:100%;min-height:0;min-width:0;align-self:stretch;overflow:hidden
 }
 #tv .s-back:not(.s-meeting,.broadcast-redesign)>.win>.wbody:has(>.match-night-matchup){
  display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);
  grid-template-rows:auto minmax(0,1fr);gap:6px;padding:6px;align-items:stretch;
  flex:1 1 auto;min-width:0;min-height:0;overflow:hidden
 }
 #tv .s-back:not(.s-meeting,.broadcast-redesign)>.win>.wbody>.match-night-matchup{
  grid-column:1/-1;grid-row:1;min-width:0
 }
 #tv .s-back:not(.s-meeting,.broadcast-redesign)>.win>.wbody>.scene{
  grid-column:1;grid-row:2;align-self:stretch;min-width:0;min-height:0;
  height:auto;max-height:none;overflow-y:auto;overflow-x:hidden;
  overscroll-behavior:contain;padding:8px
 }
 #tv .s-back:not(.s-meeting,.broadcast-redesign)>.win>.wbody>.decide2{
  grid-column:2;grid-row:2;align-self:stretch;min-width:0;min-height:0;max-height:none;
  overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
  padding:8px;border:2px solid var(--ink);background:var(--paper)
 }
 #tv .s-back:not(.s-meeting,.broadcast-redesign)>.win>.wbody>.decide2 .picks{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:6px
 }
 #tv .s-back:not(.s-meeting,.broadcast-redesign)>.win>.wbody>.decide2 .decision-option{
  min-width:0;min-height:48px;overflow-wrap:anywhere
 }
 /* Menus without a transcript use the whole desk, not an empty left half. */
 #tv .s-back:not(.s-meeting,.broadcast-redesign)>.win>.wbody:has(>.match-night-matchup):not(:has(>.scene)){
  grid-template-columns:minmax(0,1fr)
 }
 #tv .s-back:not(.s-meeting,.broadcast-redesign)>.win>.wbody:not(:has(>.scene))>.decide2{
  grid-column:1/-1;grid-row:2
 }
 /* Programme signing can include a context line above the conversation. */
 #tv .s-back:not(.s-meeting,.broadcast-redesign)>.win>.wbody:has(>.arc-signing){
  grid-template-rows:auto auto minmax(0,1fr)
 }
 #tv .s-back>.win>.wbody>.arc-signing{
  grid-column:1/-1;grid-row:2;margin:0;padding:5px 8px;min-width:0
 }
 #tv .s-back:not(.s-meeting,.broadcast-redesign)>.win>.wbody:has(>.arc-signing)>:is(.scene,.decide2){
  grid-row:3
 }
 /* Completed post-bell scenes show consequences in the right pane; a scene
    without consequences takes the full width. No empty decision column. */
 #tv .s-after.is-done>.win>.wbody>.after-consequences{
  grid-column:2;grid-row:2;height:auto;min-height:0;max-height:none;
  overflow-y:auto;overflow-x:hidden;border:2px solid var(--ink)
 }
 #tv .s-after.is-done>.win>.wbody:not(:has(>.after-consequences)){
  grid-template-columns:minmax(0,1fr)
 }
 #tv .s-after.is-done>.win>.wbody:not(:has(>.after-consequences))>.scene{
  grid-column:1/-1
 }
}
/* At phone sizes and on short displays, allow the whole screen to scroll.
   Do not inherit desktop clipping or the generic full-height well. */
@media (max-width:900px), (max-height:599px){
 #tv .s-back:not(.s-meeting,.broadcast-redesign):has(>.win>.wbody>.match-night-matchup){
  display:block;overflow:auto
 }
 #tv .s-back:not(.s-meeting,.broadcast-redesign):has(>.win>.wbody>.match-night-matchup)>.win{
  height:auto;min-height:0;max-width:none;overflow:visible
 }
 #tv .s-back:not(.s-meeting,.broadcast-redesign)>.win>.wbody:has(>.match-night-matchup){
  display:flex;flex-direction:column;flex:0 0 auto;overflow:visible;min-width:0;min-height:0
 }
 #tv .s-back:not(.s-meeting,.broadcast-redesign)>.win>.wbody>:is(.scene,.decide2,.after-consequences){
  flex:0 0 auto;min-width:0;min-height:0;max-height:none;overflow:visible
 }
 #tv .s-back:not(.s-meeting,.broadcast-redesign)>.win>.wbody>.scene{
  max-height:40dvh;overflow-y:auto;overflow-x:hidden
 }
}
