/* Retain the existing draft layout, with room for the longer baseball roster. */
.diamond-ice #draft .slots{grid-template-columns:repeat(6,minmax(0,1fr))}
.diamond-ice .draft-progress span{flex:0 1 24px}
.diamond-ice .slot b{font-size:.7rem}
@media(max-width:740px){
  .diamond-ice #draft .slots{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
  .diamond-ice #draft .slot{min-width:0;min-height:38px;padding:3px}
  .diamond-ice #draft .slot b{font-size:.57rem}
  .diamond-ice #draft .slot span{font-size:.55rem}
  .diamond-ice .draft-progress{gap:3px}
  .diamond-ice .draft-progress span{width:14px;flex-basis:14px}
  .diamond-ice .draft-progress .current{width:24px;flex-basis:24px}
}

.diamond-ice #draft .draft-grid{width:100%;min-width:0}
.diamond-ice #draft .roster-filters{min-width:0;max-width:100%}

/* Animate only the reel being changed; the pinned team or season stays still. */
.diamond-ice .spinning .draw-reel strong{animation:none}
.diamond-ice .spinning .draw-reel.rolling strong{animation:nfl-slot-roll .13s linear infinite}

@media(max-width:740px){
 .diamond-ice #draft .slot{min-height:44px}
 .diamond-ice #draft .slot b{font-size:.65rem}
 .diamond-ice #draft .slot span{font-size:.65rem}
 .diamond-ice.mlb #draft .slots{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
 .diamond-ice.mlb #draft .slot{min-height:48px}
}

/* Keep selection and open slots together on short phones. */
@media(max-width:740px){
 body.diamond-ice.nfl-drafting{height:100dvh;overflow:hidden}
 body.diamond-ice.nfl-drafting .nfl-topbar{display:none}
 body.diamond-ice.nfl-drafting main{height:100dvh;padding:3px 8px}
 body.diamond-ice #draft:not([hidden]){height:100%;display:flex;flex-direction:column}
 body.diamond-ice #draft .draft-progress,body.diamond-ice #draft .lineup-head,body.diamond-ice #draft .players-head{display:none}
 body.diamond-ice #draft .draft-grid{flex:1;min-height:0;gap:4px}
 body.diamond-ice #draft #draw-overline,body.diamond-ice #draft .draw-reel small,body.diamond-ice #draft .draw-reel em,body.diamond-ice #draft .draw-question{display:none}
 body.diamond-ice #draft .draw-result{margin:0;gap:4px}
 body.diamond-ice #draft .draw-reel strong{font-size:1.15rem}
 body.diamond-ice #draft .reveal-button{min-height:44px;margin:0;box-shadow:none}
 body.diamond-ice #draft .reroll-row button{min-height:44px}
 body.diamond-ice #draft .slots{grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}
 body.diamond-ice #draft .slot{min-height:44px;padding:3px 1px}
 body.diamond-ice #draft .roster-filters{padding:2px 0;margin:0}
 body.diamond-ice #draft .roster-filters button{min-height:44px}
 body.diamond-ice #draft .options:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;flex:1;min-height:0;height:auto;overflow-y:auto;overflow-x:hidden;gap:5px;padding:3px 2px 8px}
 body.diamond-ice #draft .option{display:flex;flex-direction:column;align-items:stretch;min-height:90px;width:auto;padding:6px;gap:3px}
 body.diamond-ice #draft .option .stats{margin:0;gap:2px;width:100%}
 body.diamond-ice #draft .option-head b{font-size:.76rem;line-height:1.15}
 body.diamond-ice #draft .stats b{font-size:.7rem}
 body.diamond-ice #draft .stats small{font-size:.4rem;letter-spacing:0}
 body.diamond-ice #draft .option em{font-size:.48rem}
 body.diamond-ice #draft #confirmation:not([hidden]){padding:4px;margin:2px 0;display:flex;align-items:center;justify-content:space-between}
 body.diamond-ice #draft #selected-role{display:none}
 body.diamond-ice #draft #confirmation #change{min-height:44px}
}

/* MLB roster and result details from the game page. */
body.mlb #draft .option .stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px}
body.mlb #draft .option .stats>span{min-width:0;padding:2px 0}
body.mlb #draft .option .stats>span:nth-child(-n+3){grid-column:span 2}
body.mlb #draft .option .stats>span:nth-child(n+4){grid-column:span 3}
body.mlb #draft .option{min-height:122px}
body.mlb .mlb-daily-goal{margin:0 0 10px;padding:12px;border:2px solid #17123b;border-radius:12px;background:#fff1a8}
body.mlb .mlb-daily-goal strong,body.mlb .mlb-daily-goal span{display:block}
body.mlb .mlb-daily-goal strong{font-size:1rem}
body.mlb .mlb-daily-goal span{margin-top:4px;font-size:.78rem}
body.mlb #join-name,body.mlb #invite-link{height:44px}

/* NHL roster and result details from the game page. */
body.nhl #boss-list{display:block;margin-top:9px;font-size:12px;line-height:1.45;font-weight:800;letter-spacing:0}
body.nhl #boss-challenge-note{display:block;margin:5px 0 0;font-size:12px;line-height:1.4;font-weight:650;letter-spacing:0;opacity:1}
body.nhl #record{display:grid;place-items:center;gap:1px;min-width:62px;padding:3px 5px;line-height:1;white-space:nowrap}
body.nhl #record small{font-size:8px;letter-spacing:.04em}
body.nhl #record b{font-size:11px}
body.nhl .nhl-form-error{display:block;margin:8px 0 0;color:#8b1734;font-size:12px;font-weight:800;line-height:1.4}
body.nhl #result-pages{display:grid;gap:12px;overflow:visible;scroll-snap-type:none;height:auto}
body.nhl #result-pages .nfl-result-page{width:100%;scroll-snap-align:none}
body.nhl #result-pages .secondary{min-height:44px}

/* NHL October 3: goal, roster and confirmation precede the single player list. */
body.nhl #draft .draft-grid{display:flex;flex-direction:column;min-height:0;gap:4px}
body.nhl #draft .lineup{order:0;flex:none;padding:5px}
body.nhl #draft .board{order:1;display:flex;flex-direction:column;flex:1;min-height:0}
body.nhl #draft .options:not([hidden]){display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;min-height:0;flex:1;height:auto;gap:5px}
body.nhl #draft .option{display:block;min-height:80px;flex:none;padding:8px;transform:none}
body.nhl #draft .option-head b{font-size:.9rem;line-height:1.2}
body.nhl #draft .stats b{font-size:.8rem}
body.nhl #draft .stats small{font-size:.75rem;letter-spacing:0}
body.nhl #draft .option em{display:none}
body.nhl #draft .draw{min-height:0;padding:4px}
body.nhl #draft .draw-reel{min-height:0;padding:4px}
body.nhl #draft #draft-goal{margin:3px 0;font-size:.8rem;line-height:1.3;font-weight:800}
body.nhl #draft #draft-teaching{margin:0 0 3px;font-size:.72rem;line-height:1.3}
body.nhl #draft #draft-status{margin:2px 0;font-size:.72rem;line-height:1.3}
body.nhl #draft .nhl-draft-tools{display:flex;align-items:center;gap:5px}
body.nhl #draft .nhl-draft-tools>button,body.nhl #draft summary{min-height:44px;min-width:44px;padding:8px;display:flex;align-items:center;font-size:.7rem}
body.nhl #draft #estimate-details{max-height:100px;overflow-y:auto;margin:3px;font-size:.8rem;line-height:1.35}
body.nhl #draft #selected-role{display:block;font-size:.75rem;line-height:1.3}
body.nhl #draft .slot{min-height:44px;min-width:44px}
body.nhl #draft .roster-filters button{min-width:44px;font-size:.75rem}
body.nhl #draft #exit{min-height:44px;min-width:44px}
body.nhl #draft .slot.eligible b{font-size:.65rem}
body.nhl button:focus-visible,body.nhl summary:focus-visible{outline:3px solid #17123b;outline-offset:3px}
@media(max-width:740px){
 body.nhl #draft .draw-reel strong{font-size:1rem}
 body.nhl #draft .draft-head .mode-chip{display:none}
 body.nhl #draft .draft-head{min-height:44px}
 body.nhl #draft .roster-filters{flex-wrap:wrap;gap:3px}
 body.nhl #draft .option{min-height:78px}
 body.nhl #draft .slot b{font-size:.68rem}
 body.nhl #draft .slot span{font-size:.65rem}
 body.nhl #draft .slot.eligible span{display:none}
 body.nhl #draft .confirmation small{display:none}
 body.nhl #draft #confirmation:not([hidden]){margin:2px 0}
}

/* MLB October 3: persistent goal, compact roster and explicit confirmation. */
body.mlb #draft .mlb-draft-goal {margin:4px 0;font:700 .8rem/1.25 system-ui;color:var(--ink,#17123b)}
body.mlb #draft .draft-grid {display:block;min-height:0}
body.mlb #draft .board {display:flex;flex-direction:column;gap:6px;min-height:0}
body.mlb #draft .lineup {padding:6px;min-height:0;flex:none}
body.mlb #draft .lineup .note {display:none}
body.mlb #draft .confirmation {display:flex;flex-wrap:wrap;gap:4px;margin:4px 0 0;padding:4px}
body.mlb #draft .confirmation[hidden] {display:none}
body.mlb #draft .confirmation > div:first-child {flex:1;min-width:150px}
body.mlb #draft .confirmation small {display:none}
body.mlb #draft #selected-name {font-size:.9rem}
body.mlb #draft #selected-role {font-size:.7rem;line-height:1.2}
body.mlb #draft .confirm-actions {display:flex;gap:4px;flex-wrap:wrap}
body.mlb #draft .confirm-actions button {min-height:44px;white-space:normal;font-size:.75rem;padding:6px}
body.mlb #draft .filter-label {font:700 .7rem system-ui}
body.mlb #draft .roster-filters {display:flex;flex-wrap:nowrap;overflow-x:auto;min-height:44px;flex:none}
body.mlb #draft .roster-filters[hidden] {display:none}
body.mlb #draft .roster-filters button {min-height:44px;min-width:44px;flex:none}
body.mlb #draft .options {display:grid;grid-template-columns:1fr;gap:6px;align-content:start}
body.mlb #draft .options[hidden] {display:none}
body.mlb #draft .option {min-height:84px;padding:8px}
body.mlb #draft .option-head b {font-size:.95rem;line-height:1.2}
body.mlb #draft .option-head small {font-size:.75rem}
body.mlb #draft .stats b {font-size:.9rem}
body.mlb #draft .stats small {font-size:.65rem}
body.mlb #draft .option em {display:none}
@media(max-width:700px) {
 body.mlb.nfl-drafting #draft {display:flex;flex-direction:column;min-height:0}
 body.mlb #draft .draft-progress,body.mlb #draft .players-head,body.mlb #draft .lineup-head {display:none}
 body.mlb #draft .draft-grid {display:flex;flex:1;min-height:0}
 body.mlb #draft .board {flex:1;min-height:0;gap:3px}
 body.mlb #draft .lineup {padding:2px}
 body.mlb #draft .slots {grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}
 body.mlb #draft .slot {min-height:44px;padding:2px;font-size:.7rem}
 body.mlb #draft .slot b {font-size:.8rem}
 body.mlb #draft .slot span {font-size:.6rem}
 body.mlb #draft .draw {min-height:48px;padding:3px}
 body.mlb #draft .options {flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
 body.mlb #draft .confirmation > div:first-child {min-width:0;flex-basis:100%}
 body.mlb #draft #selected-name {display:block;font-size:.8rem}
 body.mlb #draft .confirm-actions {flex:1;flex-wrap:nowrap}
 body.mlb #draft #confirm-pick {flex:1;min-width:0}
 body.mlb #draft .mlb-draft-goal {font-size:.72rem;margin:2px 0}
}

/* Keep compact MLB destinations above the minimum hit size on narrow phones. */
@media(max-width:360px){body.mlb #draft .slots{grid-template-columns:repeat(4,minmax(0,1fr))}}
body.mlb #draft .slot{min-width:44px}
body.mlb #draft .stats small{font-size:.75rem}

/* Observed MLB320 selected-list collapse: roster details + compact confirmation. */
body.mlb #draft .board>*{order:0}
body.mlb #draft #options:not([hidden]){grid-template-columns:1fr}
body.mlb #draft #confirmation:not([hidden]){align-items:stretch;flex-direction:column}
body.mlb #draft #confirmation .confirm-actions{width:100%;flex:none}
body.mlb #draft #confirmation #change{flex:0 0 64px;width:64px}
body.mlb #draft #confirmation #confirm-pick{flex:1;min-width:0}
body.mlb #draft #draft-destinations{display:flex;gap:4px}
body.mlb #draft #draft-destinations:empty{display:none}
body.mlb #draft #draft-destinations button{flex:1;min-height:44px}
body.mlb #draft #roster-details{margin:0}
body.mlb #draft #roster-summary{font-size:.75rem;line-height:1.2;padding:3px}
body.mlb #draft #roster-details[open]{max-height:200px;overflow-y:auto}
body.mlb #draft #confirmation #selected-role{display:block;font-size:.75rem}
body.mlb #draft .stats{grid-template-columns:repeat(5,minmax(0,1fr))}
body.mlb #draft .stats>span:nth-child(n){grid-column:auto}

body.nhl #draft #confirmation #selected-role{font-size:12px}


/* MLB-only candidate fragment. Master integrates into diamond-ice.css after independent QA. */
body.mlb .mlb-overlay{position:fixed;inset:0;z-index:100;background:#17123baa;padding:calc(env(safe-area-inset-top,0px) + 12px) 12px calc(env(safe-area-inset-bottom,0px) + 12px);display:flex;align-items:center;justify-content:center}
body.mlb .mlb-overlay[hidden]{display:none}
body.mlb .mlb-sheet{background:#fff8e8;color:#17123b;border:3px solid #17123b;border-radius:14px;padding:12px;width:min(100%,520px);max-height:100%;overflow:auto;font-size:14px;line-height:1.4}
body.mlb .mlb-sheet>button:first-child{width:100%;min-height:44px;position:sticky;top:0;z-index:1}
body.mlb .mlb-sheet summary,body.mlb .mlb-sheet button{min-height:44px;min-width:44px}
body.mlb #draft .mlb-draft-tools{display:flex;align-items:center;gap:8px;flex:none}
body.mlb #draft #draft-status{font-size:12px;line-height:1.2;flex:1}
body.mlb #draft #roster-open{font-size:12px;min-height:44px;padding:4px 8px;max-width:45%}
body.mlb #draft #filter-label{display:none}
body.mlb #draft #options:not([hidden]){display:flex;flex-direction:row;flex:1;min-height:0;min-width:0;overflow-x:auto;overflow-y:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;gap:0;padding:0;touch-action:pan-x pan-y}
body.mlb #draft #options .mlb-choice-page{flex:0 0 100%;width:100%;min-width:0;display:grid;grid-template-rows:repeat(var(--mlb-page-size,1),minmax(0,1fr));gap:8px;scroll-snap-align:start;scroll-snap-stop:always;padding:3px 3px 5px;box-sizing:border-box}
body.mlb #draft #options .option{height:auto;min-height:180px;max-height:none;display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:6px;padding:10px;overflow:visible;transform:none;white-space:normal}
body.mlb #draft #options .option-head{min-width:0;gap:8px;align-items:start}
body.mlb #draft #options .option-head>div{min-width:0;flex:1}
body.mlb #draft #options .option-head b{font-size:16px;line-height:1.15;white-space:normal;overflow:visible;text-overflow:clip}
body.mlb #draft #options .option-head small{font-size:12px;line-height:1.2}
body.mlb #draft #options .option-head>span{display:block;font-size:12px;min-width:32px;white-space:normal}
body.mlb #draft #options .option .stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin:0;width:100%;flex:none}
body.mlb #draft #options .option .stats>span{grid-column:span 2;min-width:0;padding:3px 1px}
body.mlb #draft #options .option .stats>span:nth-child(n+4){grid-column:span 3}
body.mlb #draft #options .stats b{font-size:15px;line-height:1.2;white-space:normal;overflow-wrap:anywhere}
body.mlb #draft #options .stats small{font-size:12px;line-height:1.2;letter-spacing:0}
body.mlb #draft #options .option em{display:block;font-size:12px;line-height:1.2;margin:0}
body.mlb #draft .mlb-choice-nav{display:flex;gap:8px;align-items:center;justify-content:space-between;flex:none;min-height:44px}
body.mlb #draft .mlb-choice-nav button{min-height:44px;min-width:44px;padding:4px 12px}
body.mlb #draft #choice-page{font-size:12px;font-weight:800}
body.mlb #draft .lineup:has(#confirmation[hidden]){display:none}
body.mlb #draft #confirmation:not([hidden]){gap:4px;padding:5px;margin:0}
body.mlb #draft #confirmation>div:first-child>small{display:none}
body.mlb #draft #confirmation #change{min-width:64px}
body.mlb #draft #draft-destinations button{min-height:44px;min-width:44px}
body.mlb button:focus-visible,body.mlb summary:focus-visible{outline:3px solid #17123b;outline-offset:2px}
@media(max-width:740px){
 body.mlb.nfl-drafting{height:var(--app-height,100dvh);min-height:0}
 body.mlb.nfl-drafting main{height:100%;padding:env(safe-area-inset-top,0px) 8px env(safe-area-inset-bottom,0px)}
 body.mlb #draft .draft-head{min-height:44px;gap:4px;margin:0;padding:0;flex:none}
 body.mlb #draft #draft-mode-label{display:none}
 body.mlb #draft #draft-goal{font-size:12px;line-height:1.25;margin:3px 0;flex:none}
 body.mlb #draft .draft-grid,body.mlb #draft .board{display:flex;flex-direction:column;flex:1;min-height:0;gap:4px;margin:0;padding:0}
 body.mlb #draft #nfl-draw{flex:none;min-height:0;padding:3px;margin:0}
 body.mlb #draft .draw-reel{min-height:0;padding:4px}
 body.mlb #draft .draw-reel strong{font-size:20px;line-height:1.1}
 body.mlb #draft #reroll-row{flex:none;gap:5px;margin:0}
 body.mlb #draft #reroll-row button{min-height:44px;margin:0;padding:4px 6px}
 body.mlb #draft #reroll-row button span{font-size:11px;letter-spacing:0}
 body.mlb #draft .roster-filters{flex:none;display:flex;flex-wrap:nowrap;overflow-x:auto;gap:4px;padding:0;margin:0;min-height:44px}
 body.mlb #draft .roster-filters button{flex:none;min-height:44px;min-width:44px;padding:4px 8px;font-size:12px}
 body.mlb #draft .lineup{padding:3px;margin:0;flex:none}
 body.mlb #draft #confirmation #selected-role{font-size:12px}
 body.mlb #setup .hero{padding:8px 0;margin:0;min-height:0}
 body.mlb #setup .hero h1{font-size:24px;line-height:1.1;margin:0}
 body.mlb #setup .hero h1 br,body.mlb #setup .hero>.eyebrow,body.mlb #setup .hero>p:not(.eyebrow){display:none}
 body.mlb #setup .nfl-entry-grid{display:grid;grid-template-columns:1fr;gap:8px;margin:4px 0}
 body.mlb #setup .nfl-entry{min-height:76px;padding:9px 12px;display:grid;grid-template-columns:32px 1fr;gap:3px 8px;text-align:left}
 body.mlb #setup .nfl-entry>span{grid-row:1/3;font-size:24px}
 body.mlb #setup .nfl-entry>b{font-size:18px;margin:0}
 body.mlb #setup .nfl-entry>p{grid-column:2;font-size:12px;line-height:1.2;margin:0}
 body.mlb #setup .nfl-entry>small,body.mlb #setup .nfl-entry>strong{display:none}
 body.mlb #campaign-path,body.mlb #daily-path,body.mlb #h2h-path{padding:8px 0;margin:0}
 body.mlb .path-top{margin:0 0 4px;min-height:44px}
 body.mlb .path-top .back{min-height:44px}
 body.mlb .path-hero{padding:0;margin:0 0 8px}
 body.mlb .path-hero .eyebrow,body.mlb .path-hero>p:not(.eyebrow){display:none}
 body.mlb .path-hero h1{font-size:22px;line-height:1.1;margin:0}
 body.mlb #campaign-path .path-card{padding:8px;margin:0;display:flex;flex-direction:column;gap:6px}
 body.mlb #campaign-path .mode-grid{display:flex;gap:6px;margin:0}
 body.mlb #campaign-path .mode-grid .mode{flex:1;min-height:56px;padding:5px;display:flex;flex-direction:column;gap:3px}
 body.mlb #campaign-path .mode-grid .mode span,body.mlb #campaign-path .mode-grid .mode small{display:none}
 body.mlb #boss-setting{margin:0;display:grid;grid-template-columns:1fr;gap:3px;font-size:12px}
 body.mlb #boss-setting[hidden]{display:none}
 body.mlb #boss-decade{min-height:44px;font-size:16px;margin:0;padding:4px 8px}
 body.mlb #boss-list{font-size:12px;line-height:1.2;margin:0;display:block}
 body.mlb #campaign-progress,body.mlb #setup-goal{font-size:12px;line-height:1.2;margin:0}
 body.mlb #campaign-path #start,body.mlb #campaign-path #new-run,body.mlb #setup-settings-open{min-height:44px;margin:0;padding:6px;font-size:12px}
 body.mlb #campaign-path #new-run{display:none}
 body.mlb #daily-path .mlb-daily-goal{padding:8px;margin:0 0 8px}
 body.mlb #daily-path .mlb-daily-goal strong{font-size:14px}
 body.mlb #daily-path .mlb-daily-goal span{font-size:12px;line-height:1.3}
 body.mlb #daily-path .path-card{padding:8px;margin:0}
 body.mlb #daily-path .daily-calendar,body.mlb #daily-leaders{font-size:12px;margin:8px 0 0}
 body.mlb #daily-path .daily-calendar summary{min-height:44px;display:flex;align-items:center}
 body.mlb #daily-path .daily-calendar[open],body.mlb #daily-leaders{max-height:140px;overflow:auto}
 body.mlb #result{padding:0;margin:0}
 body.mlb #result .nfl-result-nav{min-height:44px;margin:0}
 body.mlb #result #result-back{min-height:44px;font-size:12px}
 body.mlb #result #again-top{display:none}
 body.mlb #result>.result-card{padding:8px;margin:0;min-height:0}
 body.mlb #result .fsg-showdown-verdict{padding:0;min-height:0}
 body.mlb #result .fsg-showdown-verdict h2{font-size:22px;line-height:1.1;margin:0 0 6px}
 body.mlb #result .fsg-showdown-count{font-size:12px;margin:4px 0}
 body.mlb #result .fsg-showdown-records{gap:6px;margin:6px 0}
 body.mlb #result .fsg-showdown-records>div{padding:6px}
 body.mlb #result .fsg-showdown-records strong{font-size:26px;line-height:1.1}
 body.mlb #result .fsg-showdown-records small{font-size:12px}
 body.mlb #result .fsg-showdown-why{font-size:12px;line-height:1.3;margin:6px 0}
 body.mlb #result .fsg-showdown-verdict-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:6px 0}
 body.mlb #result .fsg-showdown-verdict-actions button{min-height:44px;min-width:44px;padding:6px;font-size:12px}
 body.mlb #result .fsg-showdown-primary{grid-column:1/-1}
 body.mlb #result #mlb-showdown-details>summary{display:none}
 body.mlb #result #mlb-showdown-details[open]{position:fixed;inset:calc(env(safe-area-inset-top,0px) + 8px) 8px calc(var(--fsg-bottom-clearance,56px) + 8px);z-index:60;overflow:auto;background:#fff8e8;border:3px solid #17123b;border-radius:14px;padding:8px}
 body.mlb #result #mlb-showdown-details[open]>summary{display:flex;align-items:center;min-height:44px;position:sticky;top:0;background:#fff8e8;z-index:1}
 body.mlb #result #result-pages{height:auto!important;max-height:none}
}

/* Grouped comparison keeps equal stat labels and horizontally browsable position pairs. */
body.mlb #reveal .fsg-showdown-list{display:flex;gap:0;overflow-x:auto;scroll-snap-type:x mandatory;min-width:0}
body.mlb #reveal .fsg-showdown-pair{flex:0 0 100%;min-width:0;scroll-snap-align:start;box-sizing:border-box;padding:4px}
body.mlb #reveal .fsg-showdown-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}
body.mlb #reveal .fsg-showdown-stats>span{grid-column:span 2;min-width:0}
body.mlb #reveal .fsg-showdown-stats>span:nth-child(n+4){grid-column:span 3}
body.mlb #reveal .fsg-showdown-stats small{font-size:12px}
body.mlb #reveal .fsg-showdown-stats strong{font-size:14px;overflow-wrap:anywhere}
body.mlb #reveal .fsg-showdown-list:before{content:none}
body.mlb #reveal .mlb-reveal-pages{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12px}
body.mlb #reveal .mlb-reveal-pages button{min-width:44px;min-height:44px}
@media(max-width:740px){body.mlb #draft #confirmation #selected-role{font-size:12px}body.mlb #reveal .result-card{padding:8px}body.mlb #reveal .fsg-showdown-card{padding:8px}body.mlb #reveal .fsg-showdown-card>b{font-size:16px}body.mlb #reveal .fsg-showdown-next{min-height:44px}}

body.mlb .mlb-start-actions{display:flex;align-items:stretch;gap:6px}body.mlb .mlb-start-actions #start{flex:1}body.mlb .mlb-start-actions #setup-settings-open{flex:0 0 auto}
@media(max-width:740px){body.mlb #campaign-path .path-hero{display:none}body.mlb #campaign-path .mode-grid .mode{min-height:44px}body.mlb #h2h-path .path-card{padding:8px;margin:0}body.mlb #h2h-path .setting{margin:0 0 6px;font-size:12px}body.mlb #h2h-path input{min-height:44px;font-size:16px}body.mlb #h2h-path .board-option{padding:6px;margin:4px 0;font-size:12px}body.mlb #h2h-path .board-option small{font-size:12px;line-height:1.2}body.mlb #h2h-path .game-settings summary{min-height:44px;display:flex;align-items:center;font-size:12px}body.mlb #h2h-path #h2h-start{margin:4px 0 0;min-height:44px}body.mlb #mlb-settings-dialog #new-run{display:block;margin-top:8px;min-height:44px}}

body.mlb #reveal .fsg-showdown-card>small,body.mlb #reveal .fsg-showdown-card>span{font-size:12px;line-height:1.2}


/* NHL October 5 candidate. Append only after the recorded shared CSS baseline. */
@media(max-width:740px){
 body.nhl main{padding:4px 8px!important;height:var(--nhl-frame-height,calc(var(--app-height,100dvh) - 158px));min-height:0}
 body.nhl main>section:not([hidden]){height:100%;min-height:0;margin:0;position:relative;display:flex;flex-direction:column;gap:6px}
 body.nhl main>section[hidden]{display:none!important}
 body.nhl .path-top,body.nhl .path-hero .eyebrow,body.nhl .hero .eyebrow,body.nhl .path-hero>p:last-child,body.nhl .hero>p:last-child{display:none}
 body.nhl .hero h1,body.nhl .path-hero h1{font-size:24px;margin:0;line-height:1.1;letter-spacing:-.02em}
 body.nhl .nfl-entry-grid{display:grid;grid-template-columns:1fr;gap:6px;flex:1;min-height:0}
 body.nhl .nfl-entry{min-height:54px;padding:8px;display:grid;grid-template-columns:38px 1fr;align-items:center;text-align:left}
 body.nhl .nfl-entry>span{grid-row:1/3;font-size:24px}body.nhl .nfl-entry>b{font-size:18px}body.nhl .nfl-entry>small{font-size:12px}
 body.nhl .nfl-entry>p,body.nhl .nfl-entry>strong{display:none}
 body.nhl .path-card,body.nhl .result-card{padding:9px;box-shadow:none;margin:0;min-height:0;border-width:2px}
 body.nhl .path-card{display:flex;flex-direction:column;gap:6px}
 body.nhl button,body.nhl summary,body.nhl input,body.nhl select{min-height:44px;font-size:14px}
 body.nhl input,body.nhl select{font-size:16px}
 body.nhl .setting{margin:0;font-size:12px}body.nhl .setting input,body.nhl .setting select{margin-top:3px;padding:7px}
 body.nhl .mode-grid{gap:6px}body.nhl .mode{min-height:54px;padding:6px}body.nhl .mode span,body.nhl .mode small{display:none}
 body.nhl #boss-setting{font-size:12px}body.nhl #boss-list{margin-top:5px;font-size:12px}body.nhl #boss-challenge-note{display:none}
 body.nhl #nhl-campaign-progress{display:block;font-size:12px;font-weight:800;margin-top:4px}
 body.nhl #start,body.nhl #daily-play,body.nhl #h2h-start{margin:0;padding:10px;min-height:44px}
 body.nhl .nhl-secondary>summary,body.nhl .daily-calendar>summary{display:flex;align-items:center;min-height:44px;font-size:12px}
 body.nhl .nhl-secondary[open],body.nhl .daily-calendar[open],body.nhl .game-settings[open]{position:absolute;inset:0;z-index:5;background:#fff8e8;padding:8px;border:2px solid #17123b;border-radius:12px;overflow:auto}
 body.nhl #daily-days{display:grid;grid-auto-flow:column;grid-template-rows:repeat(3,minmax(44px,1fr));grid-auto-columns:calc((100% - 8px)/2);overflow-x:auto;scroll-snap-type:x mandatory;gap:4px;max-height:240px}
 body.nhl #daily-days button{scroll-snap-align:start}
 body.nhl .daily-banner{display:flex;flex-direction:column;gap:8px;margin:0;padding:0}
 body.nhl #daily-goal{font-size:14px}body.nhl #daily-reset,body.nhl #daily-rule{font-size:12px}
 body.nhl #daily-leaders{font-size:14px;box-shadow:none}
 /* Collapse informational roster chrome; all six actual positions remain available in a dialog. */
 body.nhl #draft{height:var(--nhl-frame-height)!important;padding:0;gap:3px}
 body.nhl #draft .draft-head{margin:0;min-height:44px;flex:none;display:flex;gap:4px}body.nhl #draft #record{display:none}body.nhl #draft .draft-head>div{flex:1;font-size:12px}
 body.nhl #draft #draft-goal{font-size:13px;line-height:1.25;margin:0;flex:none}
 body.nhl #draft #draft-teaching{font-size:12px;line-height:1.2;margin:0;flex:none}
 body.nhl #draft #draft-progress{display:none}
 body.nhl #draft .draft-grid{display:flex;flex-direction:column;flex:1;min-height:0;gap:3px}
 body.nhl #draft .lineup{padding:0;border:0;background:transparent;box-shadow:none;display:flex;flex-wrap:wrap;gap:4px}
 body.nhl #draft .lineup-head,body.nhl #draft #slots,body.nhl #draft #estimate-panel,body.nhl #draft #change,body.nhl #draft #confirmation small{display:none}
 body.nhl #draft #nhl-roster-open,body.nhl #draft #draft-rules{min-height:44px;padding:6px 10px;font-size:12px}
 body.nhl #draft .nhl-draft-tools{margin-left:auto}
 body.nhl #draft #draft-status{width:100%;font-size:12px;margin:0;line-height:1.25;min-height:0}
 body.nhl #draft #confirmation:not([hidden]){order:3;width:100%;padding:5px;display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:44px}
 body.nhl #draft #confirmation #selected-role{font-size:12px}
 body.nhl #draft .board{flex:1;display:flex;flex-direction:column;min-height:0;gap:3px}
 body.nhl #draft .draw{flex:none;min-height:38px;margin:0;padding:3px}
 body.nhl #draft .draw-result{gap:4px}body.nhl #draft .draw-reel{padding:2px}
 body.nhl #draft .draw-reel strong{font-size:16px}body.nhl #draft .draw small,body.nhl #draft .draw em,body.nhl #draft #pool-count{display:none}
 body.nhl #draft #reroll-row{flex:none;min-height:44px;gap:4px;margin:0}
 body.nhl #draft #reroll-row button{min-height:44px;font-size:12px;white-space:normal;padding:5px}
 body.nhl #draft #players-head,body.nhl #draft #roster-filters{display:none}
 body.nhl #draft #options:not([hidden]){display:flex;flex-direction:row;gap:0;flex:1;min-height:144px;width:100%;overflow-x:auto;overflow-y:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;padding:0;margin:0;touch-action:pan-x pan-y}
 body.nhl #draft #options .option{flex:0 0 100%;width:100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;min-height:144px;height:100%;padding:10px;display:flex;flex-direction:column;justify-content:space-evenly;gap:6px;box-sizing:border-box;border:2px solid #17123b;border-radius:12px;transform:none}
 body.nhl #draft .option-head{width:100%;gap:6px}body.nhl #draft .option-head b{font-size:18px;white-space:normal;overflow-wrap:break-word;line-height:1.15}body.nhl #draft .option-head small{font-size:12px}
 body.nhl #draft .option-head>span{display:none}
 body.nhl #draft .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;width:100%;margin:0}
 body.nhl #draft .stats>span{min-width:0;padding:5px;border:1px solid #17123b;border-radius:7px}
 body.nhl #draft .stats b{font-size:17px;white-space:nowrap;word-break:normal;overflow-wrap:normal}
 body.nhl #draft .stats small{font-size:12px;letter-spacing:0;white-space:nowrap}
 body.nhl #draft .option em{display:block;font-style:normal;font-size:12px}
 body.nhl #draft .nhl-card-action{font-size:14px;font-weight:900;margin:0}
 body.nhl .nhl-page-nav{display:flex;align-items:center;justify-content:space-between;flex:none;min-height:44px;gap:8px}
 body.nhl .nhl-page-nav button{width:44px;min-height:44px;padding:5px}body.nhl .nhl-page-nav span{font-size:12px;font-weight:800}
 body.nhl #result .nfl-result-nav,body.nhl #result .result-card>details{display:none}
 body.nhl #result>.result-card{height:100%;display:flex;flex-direction:column;justify-content:center}
 body.nhl #nhl-showdown-verdict{display:flex;flex-direction:column;gap:6px}
 body.nhl #nhl-showdown-verdict h2{font-size:28px;margin:0}body.nhl #nhl-showdown-verdict p{font-size:13px;line-height:1.25;margin:0}
 body.nhl #nhl-showdown-verdict .fsg-showdown-verdict-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px}
 body.nhl #nhl-showdown-verdict button{padding:7px;min-height:44px;font-size:12px}
 body.nhl #waiting h1{font-size:26px}body.nhl #waiting .waiting-grid{display:none}body.nhl #waiting .result-card{display:flex;flex-direction:column;gap:6px}
 body.nhl #invite h1,body.nhl #challenge h1{font-size:24px;line-height:1.15;margin:0}
 body.nhl #invite p,body.nhl #challenge p{font-size:13px;margin:4px 0}
 body.nhl #invite .eyebrow,body.nhl #challenge .eyebrow,body.nhl .challenge-steps,body.nhl #invite .invite-step> b,body.nhl #invite .invite-step h2,body.nhl #invite .invite-step p{display:none}
 body.nhl #invite .invite-step{padding:0;margin:4px 0;display:block}body.nhl #invite .invite-step>div{width:100%}
 body.nhl #nhl-roster-dialog,body.nhl #nhl-details-dialog{width:calc(100vw - 16px);max-height:calc(var(--app-height,100dvh) - 24px);padding:10px;border:2px solid #17123b;border-radius:14px;background:#fff8e8;color:#17123b}
 body.nhl dialog::backdrop{background:#17123b99}
 body.nhl #nhl-roster-content p{font-size:14px;padding:7px 0;margin:0;border-bottom:1px solid #17123b33}
 body.nhl #nhl-details-dialog #nhl-showdown-details{display:block;border:0;padding:0}
 body.nhl #nhl-details-dialog #nhl-showdown-details>summary{display:none}
 body.nhl #nhl-details-dialog #result-pages{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:0;height:auto}
 body.nhl #nhl-details-dialog .nfl-result-page{flex:0 0 100%;width:100%;min-width:0;scroll-snap-align:start;padding:6px}
 body.nhl #nhl-details-dialog .final-row{padding:5px;font-size:14px}
}

@media(min-width:741px){body.nhl #nhl-choice-nav{display:none}body.nhl #nhl-roster-open{min-height:44px}}


/* NHL r2 delta; append after the integrated r1 fragment. */
@media(max-width:740px){
 body.nhl #nhl-details-dialog[open]{display:flex;flex-direction:column;height:calc(var(--app-height,100dvh) - 24px);max-height:calc(var(--app-height,100dvh) - 24px);box-sizing:border-box;overflow:hidden;gap:6px}
 body.nhl #nhl-details-close,body.nhl #nhl-details-dialog>.nhl-page-nav{flex:none;min-height:44px;margin:0}
 body.nhl #nhl-details-content{flex:1;min-height:0;display:flex;overflow:hidden}
 body.nhl #nhl-details-dialog #nhl-showdown-details{flex:1;min-height:0;display:flex;margin:0;overflow:hidden}
 body.nhl #nhl-details-dialog #nhl-showdown-details>*:not(#result-pages){display:none!important}
 body.nhl #nhl-details-dialog #result-pages{flex:1;min-height:0;height:100%;overflow-y:hidden;align-items:stretch;margin:0}
 body.nhl #nhl-details-dialog .nfl-result-page{height:100%;max-height:100%;overflow-y:auto;box-sizing:border-box;overscroll-behavior-y:contain}
 body.nhl #nhl-details-dialog .nfl-result-page h2{font-size:16px;margin:0 0 6px}
 body.nhl #nhl-details-dialog .final-row{padding:4px;font-size:14px;min-height:0;gap:5px}
 body.nhl #nhl-details-dialog .final-row small{font-size:12px;line-height:1.2}
 body.nhl #nhl-details-dialog .nhl-review-page>.mode-card{padding:4px;margin:0;border:0;box-shadow:none}
}

/* NHL compact details width correction — October5 master, independent P1 evidence. */
@media(max-width:740px){
 body.nhl #nhl-details-content,body.nhl #nhl-details-dialog #nhl-showdown-details{min-width:0;width:100%;max-width:100%;box-sizing:border-box}
 body.nhl #nhl-details-dialog #result-pages{min-width:0;width:100%;max-width:100%;flex-direction:row;box-sizing:border-box}
 body.nhl #nhl-details-dialog .nfl-result-page{max-width:100%;overflow-wrap:normal}
}

/* MLB r4: append after the existing MLB r1 rules. No rules or scoring changes. */
body.mlb #reveal .fsg-showdown-pair{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:5px}
body.mlb #reveal .fsg-showdown-vs{display:none}
body.mlb #reveal .fsg-showdown-card{min-width:0;padding:6px}
body.mlb #reveal .fsg-showdown-card>b{overflow-wrap:normal;word-break:normal;line-height:1.2;font-size:16px}
body.mlb #reveal .fsg-showdown-card>small{overflow-wrap:normal;line-height:1.2}
body.mlb #reveal .mlb-comparison{grid-column:1/-1;width:100%;table-layout:fixed;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:16px;line-height:1.2}
body.mlb #reveal .mlb-comparison th,body.mlb #reveal .mlb-comparison td{padding:4px;border-bottom:1px solid #17123b44;text-align:center;white-space:nowrap;overflow-wrap:normal;word-break:normal}
body.mlb #reveal .mlb-comparison th{font-size:12px}
body.mlb #reveal .mlb-comparison td:nth-child(2){background:#d9ffe9}
body.mlb #reveal .mlb-comparison td:nth-child(3){background:#e4dcff}
body.mlb #reveal .fsg-showdown-edge{grid-column:1/-1;min-width:0;overflow-wrap:normal;font-size:12px;padding:6px}
body.mlb #reveal .fsg-showdown-tally{font-size:12px;line-height:1.2}
body.mlb #reveal .fsg-showdown-tally>span{padding:5px;overflow-wrap:normal}
body.mlb #result .nfl-result-nav{display:none}
body.mlb #result .mlb-verdict{gap:5px;padding:8px}
body.mlb #result .mlb-verdict h2{margin:0;font-size:24px;line-height:1.1}
body.mlb #result .mlb-verdict p{margin:0;font-size:13px;line-height:1.25}
body.mlb #result .mlb-verdict .fsg-showdown-records{grid-template-columns:1fr;margin:0}
body.mlb #result .mlb-verdict .fsg-showdown-records>div{padding:5px 8px;gap:2px}
body.mlb #result .mlb-verdict .fsg-showdown-records strong{font-size:40px;line-height:1;white-space:nowrap;overflow-wrap:normal}
body.mlb #result .mlb-verdict .fsg-showdown-records small{font-size:12px;line-height:1.2;overflow-wrap:normal}
body.mlb #result .mlb-result-opponent b,body.mlb #result .mlb-result-opponent span{display:block}
body.mlb #result .mlb-verdict .fsg-showdown-verdict-actions{margin:2px 0 0;gap:5px}
body.mlb #result .mlb-verdict .fsg-showdown-verdict-actions button{min-height:44px;min-width:44px;padding:6px;font-size:13px;line-height:1.2}
body.mlb #result .mlb-verdict .fsg-showdown-menu{grid-column:1/-1}
body.mlb #result #mlb-showdown-details[open]{position:fixed;inset:calc(env(safe-area-inset-top,0px) + 8px) 8px calc(var(--fsg-bottom-clearance,56px) + 8px);z-index:60;padding:8px;margin:0;background:#fff8e8;border:2px solid #17123b;border-radius:14px;overflow:hidden;box-sizing:border-box}
body.mlb #result #mlb-showdown-details[open]>*:not(.mlb-report){display:none!important}
body.mlb #result .mlb-report{height:100%;min-height:0;display:flex;flex-direction:column;gap:6px;text-align:left}
body.mlb #result .mlb-report-top{display:flex;align-items:center;justify-content:space-between;gap:6px;flex:none;font-size:12px;line-height:1.2}
body.mlb #result .mlb-report button{min-width:44px;min-height:44px;padding:6px;border:2px solid #17123b;border-radius:8px;background:#fff;font-size:13px;line-height:1.2;font-weight:800}
body.mlb #result .mlb-report-pages{display:flex;flex:1;min-height:0;min-width:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;gap:0;overscroll-behavior-x:contain}
body.mlb #result .mlb-report-page{flex:0 0 100%;min-width:0;height:100%;scroll-snap-align:start;box-sizing:border-box;padding:4px;overflow-y:auto;overscroll-behavior-y:contain}
body.mlb #result .mlb-report-page h2{font-size:16px;line-height:1.2;margin:0 0 8px}
body.mlb #result .mlb-report-page p{font-size:14px;line-height:1.4;margin:8px 0}
body.mlb #result .mlb-report-page>button{display:block;width:100%;margin:8px 0}
body.mlb #result .mlb-report-page .final-row{min-height:54px;padding:7px 0;gap:6px;font-size:14px;line-height:1.3}
body.mlb #result .mlb-report-page .final-row span{min-width:0;overflow-wrap:normal}
body.mlb #result .mlb-report-page .final-row small{display:block;font-size:12px;line-height:1.3;white-space:normal}
body.mlb #result .mlb-report-totals{display:grid;grid-template-columns:1fr 1fr;gap:8px}
body.mlb #result .mlb-report-totals>div{border:1px solid #17123b;border-radius:8px;padding:8px}
body.mlb #result .mlb-report-totals b,body.mlb #result .mlb-report-totals small{display:block}
body.mlb #result .mlb-report-totals b{font-size:22px;white-space:nowrap}
body.mlb #result .mlb-report-totals small{font-size:12px}
body.mlb #result .mlb-report-axis{display:flex;justify-content:space-between;gap:8px;font-size:16px;padding:9px;border-bottom:1px solid #17123b44}
body.mlb #result .mlb-report-nav{display:flex;flex:none;justify-content:space-between;align-items:center;gap:6px;font-size:13px}
@media(max-width:740px){
 body.mlb main:has(>#result:not([hidden])){padding:4px 8px calc(var(--fsg-bottom-clearance,56px) + 8px);min-height:0}
 body.mlb #result>.result-card{margin:0;padding:5px;height:auto;overflow:visible}
 body.mlb #reveal{margin:0;padding:4px}
 body.mlb #reveal .result-card{margin:0;padding:4px;min-height:0;display:block}
 body.mlb #reveal .fsg-showdown{gap:5px;padding:4px}
 body.mlb #reveal .fsg-showdown-top{font-size:12px}
 body.mlb #reveal .fsg-showdown-list{max-height:none;overflow-y:visible}
 body.mlb #reveal .fsg-showdown-skip,body.mlb #reveal .fsg-showdown-next,body.mlb #reveal .mlb-reveal-pages button{min-width:44px;min-height:44px}
}
/* Preserve the approved mint/lavender pair; compact actions occupy two rows. */
body.mlb #result .mlb-verdict .fsg-showdown-records{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
body.mlb #result .mlb-verdict .fsg-showdown-records>div{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:5px;gap:2px}
body.mlb #result .mlb-verdict .fsg-showdown-records strong{font-size:30px;line-height:1;letter-spacing:-.04em}
body.mlb #result .mlb-verdict .fsg-showdown-records small{font-size:12px;line-height:1.15;white-space:normal;overflow-wrap:normal}
body.mlb #result .mlb-verdict .fsg-showdown-primary,body.mlb #result .mlb-verdict .fsg-showdown-menu{grid-column:auto}
body.mlb #result .mlb-verdict .fsg-showdown-count,body.mlb #result .mlb-verdict .mlb-result-progress{font-size:12px;line-height:1.2}

/* NHL r7: own-roster dialog retains Close while the readable list scrolls. */
@media(max-width:740px){
 body.nhl #nhl-roster-dialog[open]{display:flex;flex-direction:column;box-sizing:border-box;gap:6px;overflow:hidden}
 body.nhl #nhl-roster-dialog>button,body.nhl #nhl-roster-dialog>h2{flex:none;margin:0}
 body.nhl #nhl-roster-close{min-height:44px}
 body.nhl #nhl-roster-content{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior-y:contain}
}

/* MLB r7 waiting correction: append after integrated r4 MLB rules. */
body.mlb #waiting>.back{display:none}
body.mlb #waiting>.result-card{min-height:0;margin:0;padding:8px;display:flex;flex-direction:column;gap:6px;text-align:left}
body.mlb #waiting .result-card>small,body.mlb #waiting .waiting-grid h2{display:none}
body.mlb #waiting .result-card>.small-hero{font-size:26px!important;line-height:1.1;letter-spacing:-.03em;text-shadow:none;color:#17123b;margin:0}
body.mlb #waiting #waiting-projection{font-size:16px;line-height:1.25;margin:0;font-variant-numeric:tabular-nums}
body.mlb #waiting .waiting-grid{display:flex;flex-direction:column;gap:6px;margin:0}
body.mlb #waiting #locked-twelve button{width:100%;min-height:44px;min-width:44px;margin:0;font-size:14px}
body.mlb #waiting #their-picks p{font-size:12px;line-height:1.2;margin:0;font-weight:800}
body.mlb #waiting #waiting-status{font-size:14px;line-height:1.3;margin:0;overflow-wrap:anywhere}
body.mlb #waiting .result-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0}
body.mlb #waiting .result-buttons button{min-height:44px;min-width:44px;margin:0;padding:6px;font-size:14px;line-height:1.2;border:2px solid #17123b;border-radius:8px;font-weight:800}
body.mlb #waiting .result-buttons #waiting-back{display:block;grid-column:1/-1;background:#e8ddff}
body.mlb #waiting #mlb-showdown-details[open]{position:fixed;inset:calc(env(safe-area-inset-top,0px) + 8px) 8px calc(var(--fsg-bottom-clearance,56px) + 8px);z-index:60;padding:8px;margin:0;background:#fff8e8;border:2px solid #17123b;border-radius:14px;overflow:hidden;box-sizing:border-box}
body.mlb #waiting #mlb-showdown-details[open]>*:not(.mlb-report){display:none!important}
body.mlb #waiting .mlb-report{height:100%;min-height:0;display:flex;flex-direction:column;gap:6px;text-align:left}
body.mlb #waiting .mlb-report-top{display:flex;align-items:center;justify-content:space-between;gap:6px;flex:none;font-size:12px;line-height:1.2}
body.mlb #waiting .mlb-report button{min-width:44px;min-height:44px;padding:6px;border:2px solid #17123b;border-radius:8px;background:#fff;font-size:13px;line-height:1.2;font-weight:800}
body.mlb #waiting .mlb-report-pages{display:flex;flex:1;min-height:0;min-width:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;gap:0;overscroll-behavior-x:contain}
body.mlb #waiting .mlb-report-page{flex:0 0 100%;min-width:0;height:100%;scroll-snap-align:start;box-sizing:border-box;padding:4px;overflow-y:auto;overscroll-behavior-y:contain}
body.mlb #waiting .mlb-report-page h2{font-size:16px;line-height:1.2;margin:0 0 8px}
body.mlb #waiting .mlb-report-page p{font-size:14px;line-height:1.4;margin:8px 0}
body.mlb #waiting .mlb-report-page>button{display:block;width:100%;margin:8px 0}
body.mlb #waiting .mlb-report-page .final-row{min-height:54px;padding:7px 0;gap:6px;font-size:14px;line-height:1.3}
body.mlb #waiting .mlb-report-page .final-row span{min-width:0;overflow-wrap:normal}
body.mlb #waiting .mlb-report-page .final-row small{display:block;font-size:12px;line-height:1.3;white-space:normal}
body.mlb #waiting .mlb-report-totals{display:grid;grid-template-columns:1fr 1fr;gap:8px}
body.mlb #waiting .mlb-report-totals>div{border:1px solid #17123b;border-radius:8px;padding:8px}
body.mlb #waiting .mlb-report-totals b,body.mlb #waiting .mlb-report-totals small{display:block}
body.mlb #waiting .mlb-report-totals b{font-size:22px;white-space:nowrap}
body.mlb #waiting .mlb-report-totals small{font-size:12px}
body.mlb #waiting .mlb-report-axis{display:flex;justify-content:space-between;gap:8px;font-size:16px;padding:9px;border-bottom:1px solid #17123b44}
body.mlb #waiting .mlb-report-nav{display:flex;flex:none;justify-content:space-between;align-items:center;gap:6px;font-size:13px}

@media(max-width:740px){
 body.mlb main:has(>#waiting:not([hidden])){padding:4px 8px calc(var(--fsg-bottom-clearance,56px) + 8px);min-height:0}
 body.mlb #waiting{padding:4px 0;margin:0}
 body.mlb #waiting>.result-card{padding:8px;gap:6px}
}

/* October5 master: measured NHL waiting headline/card bounds correction. */
@media(max-width:740px){
 body.nhl #waiting .result-card{height:auto;flex:none;min-height:0;gap:6px;padding:9px}
 body.nhl #waiting h1.small-hero{font-size:24px!important;line-height:1.2;letter-spacing:-.03em;color:var(--ink);text-shadow:none;margin:0}
 body.nhl #waiting .result-card>p{margin:0;font-size:14px;line-height:1.3}
 body.nhl #waiting .result-buttons{display:flex;gap:6px;margin:0;flex:none}
 body.nhl #waiting .result-buttons button{flex:1;min-width:44px;min-height:44px;padding:8px 6px;margin:0;font-size:14px;line-height:1.2}
}

/* October 7 MLB active draft only. Append once after current shared styles. */
body.mlb #draft #options:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;align-items:stretch;flex:1;min-height:0;min-width:0;height:auto;gap:4px;padding:2px 1px 5px;margin:0;overflow-x:hidden;overflow-y:auto;scroll-snap-type:none;overscroll-behavior-y:contain;touch-action:pan-y}
body.mlb #draft #options .option{width:auto;min-width:0;min-height:44px;height:auto;max-height:none;display:flex;flex-direction:column;justify-content:start;align-items:stretch;gap:3px;padding:5px;box-sizing:border-box;overflow:visible;white-space:normal;border:1px solid #17123b;border-radius:8px;box-shadow:none;transform:none}
body.mlb #draft #options .option-head{display:block;min-width:0}
body.mlb #draft #options .option-head>div{min-width:0}
body.mlb #draft #options .option-head b{display:block;font-size:14px;line-height:1.1;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:normal;word-break:normal}
body.mlb #draft #options .option-head small{font-size:12px;line-height:1.1;opacity:1;white-space:normal}
body.mlb #draft #options .option-head>span{display:none}
body.mlb #draft #options .option .stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px 3px;margin:0;width:100%;flex:none}
body.mlb #draft #options .option .stats>span:nth-child(n){grid-column:auto;display:flex;flex-direction:row-reverse;justify-content:flex-end;align-items:baseline;gap:3px;padding:0;border:0;min-width:0;text-align:left;border-radius:0}
body.mlb #draft #options .stats b,body.mlb #draft #options .stats small{display:inline;font-size:12px;line-height:1.15;letter-spacing:0;white-space:nowrap;overflow-wrap:normal;word-break:normal}
body.mlb #draft #options .stats b{font-variant-numeric:tabular-nums}
body.mlb #draft #options .option em{display:none}
body.mlb #draft .mlb-draft-tools{gap:5px;position:relative;min-height:44px}
body.mlb #draft #roster-open{min-width:44px;max-width:none;padding:3px 6px;flex:none}
body.mlb #draft #draft-status{font-size:12px;line-height:1.15;min-width:0}
body.mlb #draft #draft-filters{flex:none}
body.mlb #draft #draft-filters>summary{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:3px 6px;box-sizing:border-box;border:2px solid #17123b;border-radius:8px;background:#fff;font-size:12px;font-weight:800;cursor:pointer;list-style:none}
body.mlb #draft #draft-filters>summary::-webkit-details-marker{display:none}
body.mlb #draft #draft-filters #roster-filters:not([hidden]){position:absolute;top:100%;left:0;right:0;z-index:20;display:flex;flex-wrap:wrap;gap:4px;min-height:44px;padding:6px;margin:0;border:2px solid #17123b;border-radius:8px;background:#fff8e8;box-shadow:0 4px 10px #17123b33;overflow:visible}
body.mlb #draft #draft-filters #roster-filters button{min-height:44px;min-width:44px;font-size:12px;padding:4px 7px}
@media(max-width:740px){
 body.mlb #draft .draft-head{gap:4px;margin:0;min-height:44px}
 body.mlb #draft #draft-goal{font-size:12px;line-height:1.15;margin:1px 0 2px}
 body.mlb #draft .draft-grid,body.mlb #draft .board{gap:3px}
 body.mlb #draft #nfl-draw{padding:2px 4px;border-width:1px;border-radius:8px;box-shadow:none;gap:4px}
 body.mlb #draft .draw-result{gap:4px}
 body.mlb #draft .draw-reel{padding:0;min-height:0}
 body.mlb #draft .draw-reel strong{font-size:18px;line-height:1.1}
 body.mlb #draft #pool-count{font-size:12px;padding:2px}
 body.mlb #draft #reroll-row{gap:4px}
 body.mlb #draft #reroll-row button{padding:3px 5px;box-shadow:none}
 body.mlb #draft #reroll-row button span{font-size:12px;line-height:1.1}
}

/* NHL October7 draft comparison only. Append after existing NHL styles. */
@media(max-width:740px){
 body.nhl #draft #nhl-choice-nav{display:none!important}
 body.nhl #draft:has(#options:not([hidden])) .draw{display:none}
 body.nhl #draft #draft-teaching{display:none}
 body.nhl #draft #draft-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 body.nhl #draft #draft-goal{font-size:12px;line-height:1.2;margin:0}
 body.nhl #draft .draft-head>div{min-width:0;line-height:1.2}
 body.nhl #draft .draft-head .mode-chip{display:none}
 body.nhl #draft #options:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;align-items:start;gap:4px;flex:1;min-height:0;height:auto;overflow-y:auto;overflow-x:hidden;scroll-snap-type:none;touch-action:pan-y;scrollbar-width:auto}
 body.nhl #draft #options .option{display:flex;flex-direction:column;justify-content:flex-start;align-self:start;gap:2px;width:100%;min-width:0;min-height:44px;height:max-content;max-height:none;flex:none;padding:3px;box-sizing:border-box;border-radius:8px;scroll-snap-align:none;scroll-snap-stop:normal;text-align:left}
 body.nhl #draft .option-head{width:100%;gap:0;min-width:0}
 body.nhl #draft .option-head>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:3px;width:100%;min-width:0}
 body.nhl #draft .option-head b{font-size:14px;line-height:1.15;white-space:normal;overflow:visible;overflow-wrap:normal;word-break:normal;letter-spacing:0}
 body.nhl #draft .option-head small{font-size:12px;line-height:1.2;margin:0}
 body.nhl #draft .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;width:100%;margin:0}
 body.nhl #draft .stats>span{min-width:0;padding:0;border:0;border-radius:0}
 body.nhl #draft .stats b{display:block;font-size:14px;line-height:1.1;white-space:nowrap;letter-spacing:0}
 body.nhl #draft .stats small{display:block;font-size:12px;line-height:1.1;letter-spacing:0;white-space:nowrap}
 body.nhl #draft .option em{font-size:12px;line-height:1.2;margin:0}
 body.nhl #draft .option em abbr{text-decoration:none}
 body.nhl #draft .nhl-card-action{display:none}
}

/* MLB r2: keep each stat label/value together; wrap whole pairs between rows. */
body.mlb #draft #options .option .stats{display:flex;flex-wrap:wrap;gap:1px 6px}
body.mlb #draft #options .option .stats>span:nth-child(n){flex:0 0 auto;width:max-content;max-width:100%;flex-wrap:wrap}

/* NHL October7 r2: compact goalie decimals retain full readable values. */
@media(max-width:360px){
 body.nhl #draft #options .option[aria-label*=" · G · "] .stats{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:4px}
}

/* October 16: one readable NHL Daily card and reachable primary action. */
body.nhl.fsg-shell #daily-path .path-card{display:block;flex:0 0 auto;overflow:visible;padding:0;border:0;background:transparent;box-shadow:none}
body.nhl #daily-path .path-card .daily-banner{flex:0 0 auto;align-items:stretch;gap:14px;padding:16px;margin:0}
body.nhl #daily-path .daily-banner>div{width:100%;min-width:0;display:grid;gap:8px}
body.nhl #daily-path .live-dot{display:none}
body.nhl #daily-path #daily-banner-title{font-size:13px;line-height:1.3}
body.nhl #daily-path #daily-goal{display:block;font-size:24px;line-height:1.15}
body.nhl #daily-path #daily-rule,body.nhl #daily-path #daily-reset{display:block;max-width:none;white-space:normal;overflow:visible;text-overflow:clip;-webkit-line-clamp:unset;font-size:13px;line-height:1.35;margin:0}
body.nhl #daily-path #daily-play{position:static;transform:none;align-self:stretch;width:100%;min-height:48px;margin:0}
body.nhl #daily-path .nhl-daily-note{font-size:12px;line-height:1.4;margin:10px 0;color:var(--ink)}
body.nhl #daily-path .daily-calendar,body.nhl #daily-path .nhl-secondary{margin:0;padding:0 4px;border:0;border-top:1px solid #17123b40;border-radius:0;background:transparent;box-shadow:none}
body.nhl #daily-path details>summary{min-height:48px;gap:12px}

/* Keep the complete invitation above the fixed phone navigation. */
@media(max-width:740px){
 body.nhl #invite .path-card{display:grid;grid-template-columns:auto minmax(0,1fr);align-content:start;gap:8px;padding:10px}
 body.nhl #invite #invite-back{grid-column:1;grid-row:1;min-height:44px;margin:0;padding:0 4px;font-size:12px;white-space:nowrap}
 body.nhl #invite h1{grid-column:2;grid-row:1;align-self:center;text-align:right;font-size:20px;line-height:1.15}
 body.nhl #invite .path-card>p,body.nhl #invite .invite-step{grid-column:1/-1}
 body.nhl #invite .path-card>p{margin:0;font-size:13px;line-height:1.3}
 body.nhl #invite .invite-step{border:0;border-radius:0;background:transparent;margin:0;padding:0}
 body.nhl #invite .invite-step label{font-size:12px;margin:0 0 4px}
 body.nhl #invite #invite-link{height:44px;min-height:44px;width:100%;font-size:16px;margin:0}
 body.nhl #invite .invite-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}
 body.nhl #invite .invite-actions button{min-width:0;min-height:44px;margin:0;padding:6px;font-size:12px}
 body.nhl #invite #start-own-draft{width:100%;min-height:48px;margin:0;font-size:14px}
}

/* October 16: each completed lineup stays together on one details page. */
body.mlb .mlb-report-page .mlb-complete-roster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}
body.mlb #result .mlb-complete-roster .final-row,body.mlb #waiting .mlb-complete-roster .final-row{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;min-width:0;min-height:50px;padding:4px;gap:4px;font-size:13px;line-height:1.15;box-sizing:border-box}
body.mlb .mlb-complete-roster .final-row>b{min-width:0;font-size:12px}
body.mlb #result .mlb-complete-roster .final-row small,body.mlb #waiting .mlb-complete-roster .final-row small{font-size:11px;line-height:1.2;white-space:normal}
body.mlb #result .mlb-complete-roster .final-row>span,body.mlb #waiting .mlb-complete-roster .final-row>span{min-width:0;overflow-wrap:anywhere}
body.nhl #nhl-details-dialog .nhl-squad-all{display:grid;grid-template-columns:1fr;gap:3px}
body.nhl #nhl-details-dialog .nhl-squad-all .final-row{min-height:50px;box-sizing:border-box;margin:0;padding:5px;line-height:1.2}

/* The same bounded NHL details viewer also serves wide screens. */
@media(min-width:741px){
 body.nhl #nhl-details-dialog[open]{display:flex;flex-direction:column;width:min(900px,calc(100vw - 24px));height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);box-sizing:border-box;overflow:hidden;gap:6px;padding:10px;border:2px solid #17123b;border-radius:14px;background:#fff8e8;color:#17123b}
 body.nhl #nhl-details-close,body.nhl #nhl-details-dialog>.nhl-page-nav{flex:none;min-height:44px;margin:0}
 body.nhl #nhl-details-content{flex:1;min-height:0;min-width:0;display:flex;overflow:hidden}
 body.nhl #nhl-details-dialog #result-pages{display:flex;flex:1;min-height:0;min-width:0;width:100%;height:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;gap:0;margin:0}
 body.nhl #nhl-details-dialog .nfl-result-page{flex:0 0 100%;width:100%;min-width:0;max-width:100%;height:100%;overflow-y:auto;scroll-snap-align:start;box-sizing:border-box;padding:6px}
 body.nhl #nhl-details-dialog .nfl-result-page h2{font-size:16px;margin:0 0 6px}
 body.nhl #nhl-details-dialog .nhl-page-nav{display:flex;align-items:center;justify-content:space-between;gap:8px}
 body.nhl #nhl-details-dialog button{min-height:44px;min-width:44px}
}
@media(max-height:450px) and (min-width:500px){
 body.mlb #result #mlb-showdown-details[open],body.mlb #waiting #mlb-showdown-details[open]{inset:8px}
 body.mlb .mlb-report-page .mlb-complete-roster{grid-template-columns:repeat(4,minmax(0,1fr))}
 body.mlb #result .mlb-report-page,body.mlb #waiting .mlb-report-page{padding:2px}
 body.mlb #result .mlb-report-page h2,body.mlb #waiting .mlb-report-page h2{font-size:14px;line-height:1.1;margin-bottom:2px}
 body.mlb #result .mlb-report,body.mlb #waiting .mlb-report{height:calc(100dvh - 36px);max-height:calc(100dvh - 36px)}
 body.mlb #result .mlb-report-pages,body.mlb #waiting .mlb-report-pages{scrollbar-width:none}
 body.mlb .mlb-report-pages::-webkit-scrollbar{display:none}
 body.mlb #result .mlb-complete-roster .final-row,body.mlb #waiting .mlb-complete-roster .final-row{min-height:46px;padding:3px}
 body.nhl #nhl-details-dialog .nhl-squad-all{grid-template-columns:repeat(2,minmax(0,1fr));padding:0;border:0;background:transparent}
 body.nhl #nhl-details-dialog .nhl-squad-all .final-row{min-height:44px;padding:3px;font-size:13px}
 body.nhl #nhl-details-dialog .nhl-squad-all .final-row small{font-size:11px}
 body.nhl #nhl-details-dialog .nfl-result-page{padding:4px}
 body.nhl #nhl-details-dialog .nfl-result-page h2{font-size:14px;line-height:1.1;margin-bottom:2px}
}

/* Portrait audit: persistent role/filter context and intact home heading. */
body.mlb #setup .hero h1{display:block;line-height:1.2;white-space:normal;overflow:visible;transform:none}
body.mlb .open-roles{font:600 12px/1.35 system-ui,sans-serif;margin:2px 0 4px;overflow-wrap:anywhere}
body.mlb #daily-play{min-height:44px;padding:10px 12px}
body.mlb #draft-filters>summary{min-width:72px;white-space:nowrap}
body.mlb #draft .mlb-draft-tools #draft-status{line-height:1.3}
body.diamond-ice .entry-icon svg{width:24px;height:24px;display:block}

body.nhl #setup h1,body.nhl #setup h2,body.nhl #setup .hero em{text-shadow:none}
