/* Survey route presentation. Existing source values and controls remain authoritative.
   Scope deliberately excludes the detached PNG export clone. */
#app .sv-team-navigation{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 14px}
#app .sv-team-navigation label{font-weight:600;margin-left:4px}
#app .sv-team-navigation button,#app .sv-team-navigation select{min-height:44px;border:1px solid var(--sv-ctl-line);border-radius:2px;background:var(--sv-surface);color:var(--sv-ink);padding:8px 12px}
#app .sv-team-navigation select{min-width:72px}
#app .section-title{gap:18px}
#app .section-title>div{min-width:0}
#app .section-title p{max-width:66ch;line-height:1.55}
#app .card-head{gap:12px;flex-wrap:wrap}
#app .card-head .chip{max-width:100%;white-space:normal}
#app .hero .score-explain{border-radius:0;min-width:min(260px,100%)}
#app .rank-row{gap:8px;transform:none}
#app .rank-row .team-link{min-height:44px}
#app .rank-row .raw{overflow-wrap:anywhere}

/* Retain all 32 existing directory links and their canonical summary values. */
#app .team-directory-card{padding:0;border-top:3px solid var(--sv-ink)}
#app .team-directory-link{display:block;width:100%;min-height:132px;padding:16px;text-align:left}
#app .team-directory-name{display:flex;align-items:center;gap:12px;min-width:0;margin-top:8px}
#app .team-directory-name .value{font:700 25px/1.08 var(--sv-fd);letter-spacing:-.02em;overflow-wrap:anywhere}
#app .team-directory-card .bar{margin:0 16px 16px}
#app .team-directory-card .label{font:700 11px var(--sv-fd);text-transform:uppercase;letter-spacing:.09em}
#app .team-directory-card .sub{line-height:1.5}
#app .team-hero{border-top:10px solid light-dark(var(--team-accent-light,var(--sv-ink)),var(--team-accent-dark,var(--sv-ink)));gap:20px}
#app .team-hero h1{font:700 clamp(28px,4vw,46px)/1.08 var(--sv-fd);text-transform:uppercase;overflow-wrap:anywhere}
#app .team-hero .raw{margin-top:8px;line-height:1.5}
#app .record-big strong{font-family:var(--sv-fd);font-variant-numeric:tabular-nums}
#app .team-view-toolbar{gap:12px;flex-wrap:wrap}
#app .schedule-row{min-height:52px}
#app .schedule-audit{line-height:1.6;overflow-wrap:anywhere}

/* Games keep the complete forecast audit; narrow layouts wrap rather than omit it. */
#app #gamesList .game-button{padding:16px 18px;border-bottom:1px solid var(--sv-rule);border-radius:0}
#app #gamesList .game-top{gap:12px;flex-wrap:wrap;font-size:12px}
#app #gamesList .game-line{gap:8px;margin-top:10px;font-variant-numeric:tabular-nums}
#app #gamesList .forecast-audit-strip{border-radius:0;padding:12px 0;border-width:1px 0 0;column-gap:18px;font-size:11px}
#app #gamesList .forecast-audit-strip b{font:700 10px var(--sv-fd);letter-spacing:.06em}
#app #gamesList .forecast-audit-strip>span{white-space:nowrap;line-height:26px}
#app #gamesList .forecast-audit-strip>span>b{line-height:14px}
#app #gamesList .game-score-placeholder{color:var(--sv-ink2)}
#app .games-score-message{min-height:26px;color:var(--sv-ink2)}
#app .games-score-message>p{margin:0 0 6px;font-size:13px;line-height:20px}
#app #gamesList .open-game{font:700 11px var(--sv-fd);text-transform:uppercase;opacity:1}
#app .sv-game-panel{padding:14px 18px 18px;border-bottom:2px solid var(--sv-ink);background:var(--sv-ground)}
#app .sv-game-panel h2{font:700 21px var(--sv-fd);margin:0 0 6px}
#app .sv-game-panel p{font-size:12px;line-height:1.5;color:var(--sv-ink2)}
#app .sv-matchup-pairs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
#app .sv-matchup-pairs h3{font:700 13px var(--sv-fd);margin:12px 0}
#app .sv-matchup-units{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
#app .sv-matchup-units th,#app .sv-matchup-units td{padding:9px 4px;border-bottom:1px solid var(--sv-rule);font-size:12px;text-align:right;white-space:normal}
#app .sv-matchup-units th:first-child{text-align:left;font-weight:500;width:30%}
#app .sv-matchup-units td:nth-child(3){width:44%;padding-inline:9px}
#app .sv-unit-ruler{display:block;position:relative;width:100%;height:20px;background:linear-gradient(var(--sv-ctl-line),var(--sv-ctl-line)) 0 50%/100% 1px no-repeat}
#app .sv-unit-ruler i{position:absolute;width:8px;height:8px;border:1px solid var(--sv-ink);transform:translateX(-50%)}
#app .sv-unit-ruler .offense{top:1px;border-radius:50%;background:var(--sv-ink)}
#app .sv-unit-ruler .defense{top:11px;background:var(--sv-surface)}
#app .sv-matchup-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:12px}
#app .sv-matchup-actions a,#app .sv-matchup-actions button{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid var(--sv-ctl-line);background:var(--sv-surface);color:var(--sv-ink);border-radius:2px}
#app .sv-matchup-actions :focus-visible,#app #gamesList .game-button:focus-visible{outline:2px solid var(--sv-sig);outline-offset:-2px}
#app .sv-games-empty{padding:16px}
@media(max-width:950px){#app .sv-matchup-pairs{grid-template-columns:minmax(0,1fr);gap:12px}#app .sv-game-panel{padding:12px}}
#app .matchup-hero{border-top:3px solid var(--sv-ink)}
#app .matchup-hero .matchup-team{border-top:5px solid light-dark(var(--team-accent-light,var(--sv-ink)),var(--team-accent-dark,var(--sv-ink)));padding-top:7px}
#app .team-accent-card{box-shadow:inset 0 3px 0 light-dark(var(--team-accent-light,var(--sv-ink)),var(--team-accent-dark,var(--sv-ink)))}
#app .update-team-card{border-top-color:light-dark(var(--team-accent-light,var(--sv-ink)),var(--team-accent-dark,var(--sv-ink)))}
#app .matchup-team{min-width:0}
#app .matchup-team h1{overflow-wrap:anywhere}
#app .matchup-center .raw{line-height:1.6}
#app .duel-side{min-width:0}
#app .duel-side b{overflow-wrap:anywhere}
#app .duel-side small{font-size:11px;line-height:1.5}

/* Projection tables retain every column; horizontal scrolling belongs to the pane. */
#app .projection-card .card-head,#app .playoff-card .card-head{border-bottom:2px solid var(--sv-ink)}
#app .projection-table th{white-space:normal;line-height:1.3;vertical-align:bottom;max-width:180px}
#app .projection-table td{font-variant-numeric:tabular-nums}
#app .projection-table .team-link{min-height:36px}
#app .projection-table .projected-in+.projected-out td{border-top:2px solid var(--sv-ink)}
#app .projection-table td small{font-size:11px;line-height:1.45}
#app .slate-game-card{border-top:3px solid var(--sv-ink)}
#app .slate-game-meta{font-size:11px;gap:8px;flex-wrap:wrap}
#app .slate-team-name{white-space:normal;line-height:1.25}
#app .slate-game-head{font-size:10px;letter-spacing:.06em}

/* Owner-authorized adaptation of the existing QB, Update, Lab and Method screens. */
#app .qb-builder .card-head{align-items:flex-start}
#app .qb-weight-grid label{min-width:0;line-height:1.5}
#app .qb-weight-grid input[type=range]{width:100%;min-height:44px}
#app .qb-ranking-table th{line-height:1.35}
#app .update-summary-actions{gap:10px;flex-wrap:wrap}
#app .update-summary-stats{gap:12px;flex-wrap:wrap;font-variant-numeric:tabular-nums}
#app .update-team-meta{line-height:1.55;gap:8px;flex-wrap:wrap}
#app .update-metric-list>div{border-radius:0;min-width:0}
#app .update-metric-list small{overflow-wrap:anywhere;line-height:1.5}
#app .lab{grid-template-columns:minmax(260px,330px) minmax(0,1fr)}
#app .lab>.card,#app .lab>section{min-width:0}
#app .lab .control select,#app .lab .control input{max-width:100%;width:100%;min-height:44px}
#app .lab .player{min-height:52px;grid-template-columns:28px minmax(0,1fr) 48px}
#app .lab .player input{width:20px;height:20px;margin:0;accent-color:var(--sv-sig)}
#app .scenario-stat{border-radius:0;background:var(--sv-ground);border-color:var(--sv-rule)}
#app .scenario-stat strong{font-family:var(--sv-fd);font-variant-numeric:tabular-nums}
#app .method>p,#app .method>ul,#app .method>ol{max-width:66ch;line-height:1.7}
#app .method h2{padding-top:14px;border-top:1px solid var(--sv-rule)}
#app .method .table-wrap{max-width:100%}

#app .sv-team-divisions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#app .sv-team-division{min-width:0}
#app .sv-team-division .card-head{border-bottom:2px solid var(--sv-ink)}
#app .sv-team-directory{min-width:620px;font-variant-numeric:tabular-nums}
#app .sv-team-directory th{white-space:normal;line-height:1.3;vertical-align:bottom}
#app .sv-team-directory th:first-child{width:54px}
#app .sv-team-directory td:not(:nth-child(2)){white-space:nowrap}
#app .sv-team-directory .team-link{min-height:44px;min-width:160px}
#app .sv-team-directory .team-identity-copy{gap:4px}
#app .sv-team-directory .bar{min-width:54px;max-width:74px;height:4px}
#app .sv-directory-deviation{display:block;position:relative;min-width:54px;height:5px;margin-top:5px;background:var(--sv-rule)}
#app .sv-directory-deviation:after{content:"";position:absolute;left:50%;top:-2px;bottom:-2px;width:1px;background:var(--sv-ink2)}
#app .sv-directory-deviation i{position:absolute;height:100%;background:var(--sv-ink2)}
#app .sv-directory-deviation.flag-harm i{background:var(--sv-harm)}
#app .sv-directory-deviation.flag-benefit i{background:var(--sv-ben)}
@media(max-width:1300px){#app .sv-team-divisions{grid-template-columns:minmax(0,1fr)}}

@media(max-width:1100px){
  #app .team-directory-name .value{font-size:22px}
  #app .team-directory-link{padding:14px}
}
@media(max-width:950px){
  #app .section-title{align-items:flex-start;flex-wrap:wrap}
  #app .rank-row{grid-template-columns:30px minmax(0,1fr) 70px 64px}
  #app .rank-row .raw{display:block;grid-column:2/-1;font-size:11px}
  #app .team-hero{padding:18px;gap:14px}
  #app .record-big{padding-top:12px;border-top:1px solid var(--sv-rule)}
  #app .projection-table .team-link{min-height:44px}
  #app .lab{grid-template-columns:minmax(0,1fr)}
  #app .slate-team-row{min-height:48px}
  #app #gamesList .game-button{padding:14px 12px}
  #app #gamesList .forecast-audit-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  #app #gamesList .forecast-audit-strip .rating-shift,#app #gamesList .forecast-audit-strip .rematch-forecast{grid-column:1/-1}
}
@media(max-width:600px){
  #app .team-directory-link{min-height:116px}
  #app .team-hero h1{font-size:30px}
  #app #gamesList .game-line{grid-template-columns:minmax(0,1fr) 42px 16px 42px minmax(0,1fr);gap:4px}
  #app #gamesList .game-line .team-identity{flex-wrap:wrap;gap:4px}
  #app #gamesList .forecast-audit-strip{grid-template-columns:minmax(0,1fr)}
  #app .schedule-row.audit-row{padding:12px;grid-template-columns:36px minmax(0,1fr) 74px}
  #app .schedule-row.audit-row .schedule-audit{display:block;grid-column:1/-1}
  #app .update-summary-actions>*{width:100%;min-height:44px}
  #app .scenario-hero{padding:14px;gap:10px}
}

/* Phase 3: original Design Y artwork, without filters or reconstructed geometry. */
#app .force-design-y{display:inline-block;line-height:0}
#app .force-design-y .force-brand-logo{filter:none;box-shadow:none;border-radius:0}
#app .force-brand-logo-topbar{height:29px;width:auto;max-width:190px}
#app .force-wordmark-board .force-brand-logo-about{height:58px;width:auto;max-width:100%;margin:0}
#app .brand-dark{display:none}
#app:is(html[data-theme="dark"] *) .brand-light{display:none}
#app:is(html[data-theme="dark"] *) .brand-dark{display:block}
#app .force-boot-mark{width:64px;height:64px;animation:none}
#app .data-integrity-block,#app .matchup-unavailable{padding:clamp(16px,3vw,28px)}
#app .data-integrity-block .warning{margin-block:12px}
#app .update-missing{color:var(--sv-harm-t);background:transparent;border-color:currentColor;border-radius:2px}
#app .force-acronym{display:flex;flex-wrap:wrap;gap:12px 24px;margin:24px 0}
#app .force-acronym>div{display:flex;align-items:baseline;gap:6px}
#app .force-acronym dt{font:700 28px/1 var(--sv-fd);color:var(--sv-sig)}
#app .force-acronym dd{margin:0;color:var(--sv-ink)}
#app .team-mark-fallback:not([hidden]){display:flex;align-items:center;justify-content:center;min-width:24px;min-height:24px;border:1px solid var(--sv-rule);background:var(--sv-surface);color:var(--sv-ink);font:700 10px/1 var(--sv-ft)}
#app img[hidden]{display:none}
#app .rank-team-code{font-weight:700}
#app .team-mark[hidden]{display:none}
#app :is(.sv-board,.sv-team-directory,.game-line) .team-identity::before{content:"";flex:none;width:4px;height:14px;background:light-dark(var(--team-accent-light,var(--sv-ink)),var(--team-accent-dark,var(--sv-ink)))}
#app .sv-team-directory .team-identity::before{height:25px}
#app .diagnostic-table .team-link{min-height:30px}
#app .diagnostic-table .team-link:focus-visible{outline-offset:-2px}
#app .diagnostic-table .team-identity-copy{gap:0 6px}
@media(pointer:coarse){#app .diagnostic-table .team-link{min-height:44px}}
@media(max-width:1300px){#app .sv-board[data-wide="true"] .diagnostic-table .team-identity-name,#app .sv-board[data-wide="true"] .diagnostic-table .team-identity-copy>small{display:none}}
@media(prefers-color-scheme:dark){#app:is(html[data-theme="system"] *) .brand-light{display:none}#app:is(html[data-theme="system"] *) .brand-dark{display:block}}
@media(max-width:950px){#app .force-brand-logo-topbar{height:25px;width:auto;max-width:164px}}
@media(forced-colors:active){
  #app .force-design-y{forced-color-adjust:none}
  #app:is(html *) .force-design-y>.brand-dark{display:none}
  #app:is(html *) .force-design-y>.brand-light{display:block}
  #app :is(.sv-board,.sv-team-directory,.game-line) .team-identity::before{background:CanvasText;forced-color-adjust:none}
}
#app .topbar{display:grid;grid-template-columns:auto minmax(0,1fr);padding:0 16px;gap:0 24px}
#app .nav{order:0;flex:none;margin:0;padding:0;border:0;overflow:visible;justify-content:flex-end;align-items:center}
#app .top-actions{grid-column:1/-1;justify-content:flex-end;padding:6px 0;border-top:1px solid var(--sv-rule)}
#app .mobile-export-button{display:none}
#app .topbar:has(.survey-more[open]){z-index:30}
#app .survey-more{position:relative}
#app .survey-more summary{display:flex;align-items:center;min-height:44px;padding:0 12px;cursor:pointer;color:var(--sv-ink2);font:600 14px/1 var(--sv-fd)}
#app .survey-more summary:has(+div button.active){color:var(--sv-ink);box-shadow:inset 0 -3px var(--sv-ink)}
#app .survey-more>div{position:fixed;z-index:80;width:220px;padding:6px;background:var(--sv-surface);border:1px solid var(--sv-ctl-line);box-shadow:var(--sv-over)}
#app .survey-more>div button{display:block;text-align:left;width:100%;min-height:44px}
@media(pointer:coarse){#app .nav button{min-height:44px}}
@media(max-width:950px){#app .topbar{display:flex;padding:0 12px;gap:4px 12px}#app .brand{flex:1}#app .nav{order:3;flex:1 0 100%;justify-content:flex-start;overflow-x:auto;overflow-y:visible;gap:0;white-space:nowrap}#app .top-actions{width:100%;justify-content:flex-start}#app .nav button{min-height:44px;padding:0 10px}#app .survey-more{flex:none}}

/* Projection marks reuse the printed scores and odds, never a separate calculation.
   Native hidden keeps them out of detached PNGs; only the live app reveals them. */
#app .sv-division-strength[hidden]{display:block;padding:10px 22px 8px;border-bottom:1px solid var(--sv-rule)}
#app .sv-division-caption{font:600 10px var(--sv-fd);letter-spacing:.07em;text-transform:uppercase;color:var(--sv-ink2)}
#app .sv-division-strip{position:relative;height:50px;margin:0 8px;background:repeating-linear-gradient(90deg,var(--sv-ctl-line) 0 1px,transparent 1px 10%) 0 50%/100% 7px no-repeat,linear-gradient(var(--sv-ink),var(--sv-ink)) 50% 50%/1px 13px no-repeat,linear-gradient(var(--sv-ctl-line),var(--sv-ctl-line)) 100% 50%/1px 7px no-repeat,linear-gradient(var(--sv-ctl-line),var(--sv-ctl-line)) 0 50%/100% 1px no-repeat}
#app .sv-division-strip>i{position:absolute;top:50%;width:8px;height:8px;margin:-4px 0 0 -4px;border-radius:50%;background:var(--sv-ink)}
#app .sv-division-strip b{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);font:700 11px/1 var(--sv-fd);font-style:normal;color:var(--sv-ink)}
#app .sv-division-strip b.below{bottom:auto;top:10px}
#app .sv-division-scale{display:flex;justify-content:space-between;margin:0 8px;color:var(--sv-ink2);font:10px/1 var(--sv-ft);font-variant-numeric:tabular-nums}
#app .sv-division-scale span:first-child:before{content:"0"}
#app .sv-division-scale span:nth-child(2):before{content:"50"}
#app .sv-division-scale span:last-child:before{content:"100"}
#app .sv-projection-ruler[hidden]{display:block;position:relative;width:76px;max-width:100%;height:10px;margin-top:4px;background:repeating-linear-gradient(90deg,var(--sv-ctl-line) 0 1px,transparent 1px 10%) 0 100%/100% 4px no-repeat,linear-gradient(var(--sv-ctl-line),var(--sv-ctl-line)) 100% 100%/1px 4px no-repeat,linear-gradient(var(--sv-ctl-line),var(--sv-ctl-line)) 0 100%/100% 1px no-repeat}
#app .sv-projection-ruler>i{position:absolute;left:0;top:2px;height:4px;background:var(--sv-ink)}
@media(forced-colors:active){#app .sv-division-strip{border-bottom:1px solid CanvasText}#app .sv-division-strip>i,#app .sv-projection-ruler>i{background:CanvasText}#app .sv-projection-ruler[hidden]{border-bottom:1px solid CanvasText}}

/* ===== Phase 4A (owner authorization 2026-11-14): adaptive widths =====
   Layout only: no content, value or export change (the PNG clone is staged outside #app).
   Each route gets the width its layout can use; header and content share one gutter so their edges line up.
   Narrative text keeps a readable measure at every width: 66ch renders about 70 to 82 counted characters per line,
   because the ch unit is wider than an average letter (78ch and 82ch rendered 86 to 98). Apart from that measure,
   nothing changes at 950px and narrower. */
@media(min-width:951px){
  #app .shell{max-width:1800px;padding-inline:clamp(20px,2vw,64px)}
  #app .topbar{padding-inline:max(clamp(20px,2vw,64px),calc(50% - 750px + clamp(20px,2vw,64px)))}
  #app .shell:has(#rankBody),#app .shell:has(#gamesList),#app .shell:has(.slate-board){max-width:none}
  #app .shell:has(.projection-grid),#app .shell:has(.playoff-grid),#app .shell:has(.sv-team-divisions){max-width:3000px}
  #app .shell:has(.qb-ranking-table){max-width:2200px}
  #app .shell:has(.method){max-width:1500px}
}
#app #exportCapture p.raw,#app .diagnostic-note,#app .flag-intro p,#app .card[aria-labelledby="individual-qb-heading"]>p,#app .matchup-analysis p,#app .luck-build-card p{max-width:66ch;text-wrap:pretty}
@media(min-width:1200px){#app .slate-board{grid-template-columns:repeat(auto-fill,minmax(440px,1fr))}}
@media(min-width:1960px){
  #app .playoff-grid{display:flex;align-items:flex-start}
  #app .playoff-grid>.playoff-card{flex:1 1 0}
}
@media(min-width:2100px){#app .projection-grid,#app .sv-team-divisions{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:2800px){#app .projection-grid,#app .sv-team-divisions{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* ===== Phase 4A: Games week navigation and multi-column list =====
   The week controls drive the existing Week filter. On wide screens the list fills the window in columns: each
   game keeps its own cell in schedule order, and each later week starts a new row under a rule. */
#app .sv-week-nav{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 10px}
#app .sv-week-nav button{min-width:44px;padding:8px 10px;font-size:13px}
#app .sv-week-nav [data-week-step]{font-size:20px;line-height:1}
#app .sv-filter-label{align-self:center;font:600 12px var(--sv-fd);letter-spacing:.04em;color:var(--sv-ink2)}
#app .sv-week-label{min-width:70px;text-align:center;font:700 15px/1 var(--sv-fd);font-variant-numeric:tabular-nums;color:var(--sv-ink)}
#app .sv-week-nav button[aria-pressed="true"]{background:var(--sv-ink);border-color:var(--sv-ink);color:var(--sv-surface)}
#app .sv-week-nav button[aria-disabled="true"],#app .sv-week-nav button[aria-disabled="true"]:hover{background:transparent;border-color:var(--sv-rule);color:var(--sv-ink2);cursor:default}
@media(forced-colors:active){#app .sv-week-nav button[aria-pressed="true"]{forced-color-adjust:none;background:Highlight;border-color:Highlight;color:HighlightText}}
#app #gamesList .game-filter.sv-week-start{position:relative}
#app #gamesList .game-filter.sv-week-start::before{content:"";position:absolute;left:0;top:0;width:100vw;height:2px;background:var(--sv-ink)}
#app #gamesList .game-button:focus-visible{z-index:1}
@media(min-width:1200px){
  #app #gamesList{display:grid;grid-template-columns:repeat(auto-fill,minmax(560px,1fr))}
  #app #gamesList .game-filter{display:flex;flex-direction:column;min-width:0}
  #app #gamesList .game-filter.sv-week-start{grid-column-start:1}
  #app #gamesList .game-button{display:flex;flex-direction:column;flex:1 0 auto}
  #app #gamesList .sv-games-empty{grid-column:1/-1}
  #app #gamesList .sv-matchup-pairs{grid-template-columns:minmax(0,1fr);gap:12px}
}

/* ===== Phase 4A: type scale and two spacing fixes =====
   A designed scale, not a floor. Values and sentences read at 12px and uppercase labels at 11px on Games, Home,
   the matchup report, team pages, Update, the Slate, Divisions, Playoffs, Quarterbacks and the Rankings notes.
   Labels placed by collision inside a chart (Matrix team codes, division strips) keep their size, as do the header
   status line (a Phase 4B wording item) and the Rankings tables, which already read at 13px. Nothing is hidden,
   clipped or removed, and the detached PNG is outside #app, so exports are unchanged. */
#app .game-top{font-size:12px}
#app .forecast-badge{font-size:11px}
#app .forecast-audit-strip,#app #gamesList .forecast-audit-strip{font-size:12px}
#app .forecast-audit-strip b,#app #gamesList .forecast-audit-strip b{font-size:11px}
#app .market-detail{font-size:12px;line-height:1.45;max-width:66ch;margin-left:auto;text-wrap:pretty}
#app .open-game{font-size:11px}
#app #exportCapture :is(.diagnostic-note,.refresh-warning),#app .flag-intro p,#app .chip,#app .pill-live,#app .team-identity-copy small{font-size:12px}
#app .schedule-audit{font-size:12px}
#app .schedule-audit b{font-size:11px}
#app .update-status,#app .update-metric-list span{font-size:11px}
#app .update-team-meta,#app .update-metric-list small{font-size:12px}
#app .duel-side small,#app :is(.context-grid,.prediction-grid,.postgame-grid) small,#app .matchup-footnote,#app :is(.rb-featured-back,.rb-workload,.rb-player-stats){font-size:12px}
#app :is(.context-grid,.prediction-grid,.postgame-grid) span,#app .matchup-subedge-title,#app .matchup-edge-wrap small,#app .game-flow-head b{font-size:11px}
#app .slate-game-head,#app .sv-division-caption{font-size:11px}
#app .projection-table td small,#app .sv-team-directory small{font-size:12px}
#app :is(.qb-ranking-table,.individual-qb-table) th,#app :is(.qb-ranking-table,.individual-qb-table) th .raw,#app .qb-weight span,#app .qb-weight b{font-size:12px}
#app .lab .player small,#app .scenario-stat span{font-size:12px}
#app .lab .player input{width:24px;height:24px}
/* Home's week card ran the away team's name into its win chance. The gap comes from the win chance's own column, so
   the name columns keep their width. The Games list already has a column gap. */
#app .game-line>.prob:nth-child(2){padding-left:6px}
#app #gamesList .game-line>.prob:nth-child(2){padding-left:0}
/* Quarterbacks: headings and notes that sit directly in a card take the card's inset. */
#app .card[aria-labelledby="individual-qb-heading"]>:is(h2,p),#app .card:has(>.qb-ranking-table-wrap)>h2,#app .qb-builder>p.raw{padding-inline:18px}

/* ===== Phase 4A: page headings =====
   Each route's title is now its main heading (h1) and the matchup report's team names are second-level headings
   under one main heading that names the game. These rules give the new elements exactly the appearance of the old
   ones; the PNG export restores the old elements (data-export-tag). */
#app .section-title h1{margin:0;font-size:22px;font-weight:700;letter-spacing:0}
#app .matchup-team h2{font-size:clamp(25px,3vw,39px);margin:2px 0 5px;max-width:100%;overflow-wrap:anywhere;word-break:break-word;line-height:1.05}
@media(max-width:1200px){#app .matchup-team h2{font-size:clamp(22px,2.6vw,34px)}}

/* ===== Phase 4A package F: pinned identity column on wide tables ===== */
/* While a wide table scrolls sideways, its quarterback, player or team column stays at the pane's left edge, opaque and
   ruled on its right, and QB panes keep a focused header button clear of it; columns, widths, values and PNGs unchanged. */
#app .qb-ranking-table :is(th,td):nth-child(2),#app .individual-qb-table thead th:first-child,#app .individual-qb-table tbody th[scope="row"],#app .projection-table :is(th,td):nth-child(2),#app .sv-team-directory :is(th,td):nth-child(2){position:sticky;left:0;z-index:1;background-color:var(--sv-surface);background-clip:padding-box}
#app :is(.qb-ranking-table,.projection-table,.sv-team-directory) thead th:nth-child(2),#app .individual-qb-table thead th:first-child{z-index:2}
#app :is(.qb-ranking-table,.projection-table,.sv-team-directory) tbody tr:hover td:nth-child(2){background-color:var(--sv-hover)}
#app :is(.qb-ranking-table,.projection-table,.sv-team-directory) :is(th,td):nth-child(2)::after,#app .individual-qb-table thead th:first-child::after,#app .individual-qb-table tbody th[scope="row"]::after{content:"";position:absolute;top:0;right:0;bottom:0;border-right:1px solid var(--sv-rule)}
#app .qb-ranking-table-wrap,#app .individual-qb-wrap{scroll-padding-left:240px}

/* ===== Phase 4A E follow-up: card headings at the second level ===== */
/* Teams division, Update Center team and diagnostic, and Roster Lab card headings are h2 so no page skips from h1 to h3;
   the PNG restores h3 through data-export-tag. The card-head rules treat h2 and h3 alike; only the Update card's flex
   layout was written for h3. */
#app .update-team-card .card-head h2{display:flex;align-items:center}

/* ===== Phase 4A R2 (C1): Quarterbacks scored table ===== */
/* From about 1,000px wide, all twelve columns fit the window: header labels and long names wrap onto two or three lines,
   type keeps its size, and cells take 8px side padding. Narrower windows scroll the pane sideways on purpose: the
   quarterback column stays pinned, the pane is a named, focusable region, a note above it (shown only while it scrolls)
   names every column, and a focused control is moved clear of the pinned column. Each quarterback cell is a row header
   in the live page with the look of the plain cell. Live page only: the PNG keeps its accepted 1,600px layout. */
#app .qb-ranking-table{min-width:0}
#app .qb-ranking-table :is(th,td){padding-inline:8px}
#app .qb-ranking-table thead th{white-space:normal;vertical-align:bottom}
#app .qb-ranking-table .qb-sort-head{white-space:normal;text-align:inherit}
#app .qb-ranking-table .qb-name-team{white-space:normal}
#app .qb-ranking-table tbody th{font:inherit;font-variant-numeric:tabular-nums;letter-spacing:normal;text-transform:none;color:inherit;text-align:start;padding-block:4px;border-bottom:1px solid var(--sv-rule)}
#app .qb-ranking-table tbody tr:hover th{background-color:var(--sv-hover)}
#app .qb-ranking-table-wrap:focus-visible{outline:2px solid var(--sv-sig);outline-offset:-2px}
#app .qb-table-cue{padding-inline:18px;margin:0 0 8px}
