/* Shared exits use the measured viewport, including old WebViews and keyboards. */
#commissioner292,#leagueShare295,#leagueLibrary294,#creator241{max-height:calc(100vh - 20px)!important;max-height:calc(var(--sdf-dialog-height,100vh) - 20px)!important;box-sizing:border-box;overscroll-behavior:contain}
.mobile-more-menu{max-height:calc(100vh - 160px);max-height:calc(var(--sdf-dialog-height,100vh) - 160px);overflow-y:auto;overscroll-behavior:contain}
.editor-sections296{display:flex;gap:5px;overflow-x:auto;padding:3px 0 7px;margin-bottom:3px;scrollbar-width:thin;scrollbar-color:#6b477d transparent}
.editor-sections296 button{flex:0 0 auto;min-height:44px;border:1px solid #315268;border-radius:8px;background:#102c3c;color:#c3d8e5;padding:8px 12px;font-size:12px;font-weight:750}
.editor-sections296 button.selected{background:#162b38;border-color:#8e743a;color:#fff;box-shadow:inset 0 -2px 0 #e3b95a}
.editor-save-note296{font-size:12px;color:#9eb7c7;line-height:1.45;margin:0 0 12px}
.sdf-form>[hidden]{display:none!important}
.page-utilities296{display:flex;justify-content:flex-end;align-items:center;gap:7px;flex-wrap:wrap;margin:3px 0 8px}
.page-utilities296>.sdf-page-help,.page-utilities296>.creator-entry241{float:none!important;margin:0!important;min-height:40px!important;padding:7px 10px!important;font-size:11px!important}
.section-more296{display:none}
.section-more296[hidden]{display:none!important}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 .tab-page>.ui-section-nav-v219.phone-section-menu-v232{display:grid!important;grid-template-columns:repeat(var(--section-columns296,3),minmax(0,1fr))!important;flex-wrap:wrap!important;overflow:visible!important;min-width:0;max-width:100%;gap:5px!important;padding:4px!important}
 .tab-page>.ui-section-nav-v219.phone-section-menu-v232>.ui-section-chip{display:flex!important;align-items:center;justify-content:center;min-width:0!important;min-height:44px!important;padding:8px 5px!important;font-size:12px!important;white-space:normal!important;text-transform:none;line-height:1.25;overflow-wrap:normal!important}
 .tab-page>.ui-section-nav-v219.phone-section-menu-v232>.ui-section-chip.hidden{display:none!important}
 #rosterTab .section-head>.actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;flex:1 1 100%!important;width:100%!important;min-width:0!important;max-width:100%}
 #rosterTab .section-head>.actions>button{min-width:0!important;width:100%!important;white-space:normal;min-height:44px}
 #rosterTab .section-head>.actions>button:last-child:nth-child(odd){grid-column:1/-1}
 .phone-roster-command-v232 .roster-command-nav-v224{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important}
 .roster-command-nav-v224 button{min-width:0!important;padding:7px 3px!important;font-size:11px!important;min-height:44px}
 #recruitingCommandV223{gap:6px!important;padding:10px!important;border-radius:14px}
 #recruitingCommandV223 .recruit-command-copy-v223 h2{font-size:18px;margin:3px 0}
 #recruitingCommandV223 .recruit-command-copy-v223 p{font-size:11px;line-height:1.35}
 #recruitCommandStatsV223>div{padding:5px 3px!important}
 #recruitCommandStatsV223 small{font-size:9px!important;letter-spacing:.03em!important}
 #recruitCommandStatsV223 b{font-size:17px!important;line-height:1.15}
 #recruitBalancesV252{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 42px!important;gap:5px}
 #recruitBalancesV252>div{grid-template-columns:1fr!important;gap:4px;padding:7px!important;min-width:0}
 #recruitBalancesV252 small{font-size:9px;letter-spacing:.02em}
 #recruitBalancesV252 b{grid-column:auto;grid-row:auto;font-size:15px}
 #recruitBalancesV252 span{display:none}
 #recruitBalancesV252>button{grid-column:auto!important;padding:5px!important;font-size:0!important;min-width:0;min-height:44px}
 #recruitBalancesV252>button:after{content:'?';font-size:20px}
 .scheme-fit-row{min-width:0;overflow-wrap:anywhere}
 #sdfAndroidEditor .editor-sections296{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:5px}
 #sdfAndroidEditor .editor-sections296 button{padding:7px 4px;min-width:0;font-size:11px}
 #sdfAndroidEditor .editor-team296 button:last-child{grid-column:span 2}
 #sdfAndroidEditor .editor-player296{grid-template-columns:repeat(4,minmax(0,1fr))}
 #sdfAndroidEditor .sdf-premium-head{padding:12px!important}
 #sdfAndroidEditor .sdf-premium-head h2{font-size:20px!important;margin:5px 0}
 #sdfAndroidEditor .sdf-premium-head p{font-size:11px!important;line-height:1.4;margin:4px 0}
 #sdfAndroidEditor .sdf-premium-body{padding:10px!important}
 #sdfAndroidEditor .sdf-editor-nav292{margin-top:8px}
 #sdfAndroidEditor .sdf-ed-grid{gap:8px}
 #sdfAndroidEditor .sdf-ed-panel{padding:10px}
 #sdfAndroidEditor .sdf-editing295{font-size:16px;margin-bottom:9px}
 #sdfAndroidEditor .sdf-editing295 small{font-size:11px}
 #sdfAndroidEditor .sdf-form{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
 #sdfAndroidEditor .sdf-form>.wide,#sdfAndroidEditor .sdf-form>.editor-wide296{grid-column:1/-1}
 #sdfAndroidEditor .sdf-form label{font-size:10px;min-width:0}
 #sdfAndroidEditor .sdf-form input,#sdfAndroidEditor .sdf-form select{font-size:16px;min-width:0}
 .sdf-form input[type=color]{min-height:44px}
}
@media(max-width:340px){#sdfAndroidEditor .sdf-form{grid-template-columns:1fr!important}.roster-command-nav-v224 button{font-size:10px!important}.tab-page>.ui-section-nav-v219.phone-section-menu-v232>.ui-section-chip{padding:8px 9px!important}}
@media(max-height:500px){.sdf-help-head{padding:10px 12px!important}.sdf-help-head p{font-size:11px;margin:4px 0 0}.sdf-help-head h2{font-size:18px!important;margin:3px 0}.sdf-help-actions{padding:8px 12px!important}#sdfAndroidEditor .sdf-premium-head p{display:none}}

@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 #sdfAndroidEditor .sdf-premium-ey,#sdfAndroidEditor #sdfEditorSubtitle,#sdfAndroidEditor #sdfEditorToast:empty{display:none}
 #sdfAndroidEditor .sdf-premium-head{padding:10px!important}
 #sdfAndroidEditor .sdf-premium-head h2{font-size:18px!important;margin:2px 0}
 #sdfAndroidEditor .sdf-editor-nav292{margin-top:6px;gap:6px}
 #sdfAndroidEditor #sdfTeamForm>.sdf-editing295{display:none}
 #sdfAndroidEditor .sdf-team-brand-row-v195{margin-bottom:10px;gap:10px}
 #sdfAndroidEditor .sdf-team-logo-preview-v195{width:44px;height:44px}
 #sdfAndroidEditor .sdf-team-brand-row-v195 b{font-size:14px}
 #sdfAndroidEditor .sdf-ed-actions{position:static;padding:8px 0 0}
 #sdfAndroidEditor .editor-save-note296{font-size:11px;margin-bottom:10px}
}

.editor-filter296{display:block;font-size:12px;color:#a9c1d0;margin:0 0 10px}
.editor-filter296 select{display:block;width:100%;min-height:44px;margin-top:5px;background:#06131c;border:1px solid #315268;border-radius:8px;color:#eef6fc;padding:9px;font-size:14px}
.editor-result-count296{font-size:12px;color:#a9c1d0;margin:8px 0}
.editor-empty296{font-size:14px;line-height:1.5;color:#c5d5df}
.editor-picker-pages296{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0}
.editor-picker-pages296[hidden],.editor-empty296[hidden],#editorPickerBack296[hidden]{display:none!important}
.editor-picker-pages296 button{min-height:44px;border:1px solid #315268;border-radius:8px;background:#183343;color:#e8f3fc;font-weight:750;padding:9px 14px}
.editor-picker-pages296 button:disabled{opacity:.4}
.editor-picker-pages296 span{color:#b6cbd8;font-size:13px}
.editor-bulk296{margin-top:15px;border-top:1px solid #315268;padding-top:5px}
.editor-bulk296 summary{font-size:13px;min-height:44px}
.editor-pick-card296 strong small{display:block;font-size:10px;color:#a9c1d0;font-weight:600;margin-top:2px}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 #dashboardTab>.page-utilities296{display:none}
 #sdfAndroidEditor.picker-open296 .sdf-selected-form296,#sdfAndroidEditor.picker-open296 #sdfQuickSave292{display:none!important}
 #sdfAndroidEditor .sdf-picker295>.sdf-player-list{max-height:none;overflow:visible;gap:9px}
 #sdfAndroidEditor .editor-pick-card296{display:grid;grid-template-columns:minmax(0,1fr) 46px;align-items:center;gap:12px;min-height:76px;padding:12px;border-radius:12px;background:#0d2535;border-color:#294a60;width:100%;box-sizing:border-box}
 #sdfAndroidEditor .editor-pick-card296.active{border-color:#8e743a;background:#162b38}
 #sdfAndroidEditor .editor-pick-card296 b{font-size:15px;line-height:1.3}
 #sdfAndroidEditor .editor-pick-card296 small{font-size:12px;line-height:1.5}
 #sdfAndroidEditor .editor-pick-card296 strong{font-size:22px;text-align:center;background:#071722;border-radius:8px;padding:7px 3px;line-height:1}
 #sdfAndroidEditor .editor-pick-card296 strong small{font-size:9px}
 #sdfAndroidEditor .editor-pick-card296 img{width:40px!important;height:40px!important}
 #sdfAndroidEditor #peTeam292{font-size:14px;min-height:44px;margin-top:6px}
 #sdfAndroidEditor .sdf-picker295>label{font-size:12px}
 #sdfAndroidEditor .sdf-ed-search{font-size:16px;min-height:46px}
 #sdfAndroidEditor .sdf-picker295 summary{font-size:14px}
 #sdfAndroidEditor.picker-open296 .sdf-picker295{border:0;background:transparent;padding:0}
}

#editorPickerNav296[hidden]{display:none!important}

[data-area-hidden296]{display:none!important}
.area-navigation296{display:flex;gap:6px;margin:8px 0 12px;padding:5px;border:1px solid #315268;border-radius:12px;background:#081a27}
.area-navigation296[hidden]{display:none!important}
.area-navigation296 button{flex:1;min-width:0;min-height:44px;padding:8px 10px;border:1px solid transparent;border-radius:8px;background:transparent;color:#a5becd;font-size:13px;font-weight:750;cursor:pointer}
.area-navigation296 button.selected{background:#162b38;border-color:#8e743a;color:#fff;box-shadow:inset 0 -2px 0 #e3b95a}
#moreTools296{grid-column:1/-1;border-top:1px solid #315268;margin-top:4px;padding-top:4px}
#moreTools296>summary{min-height:44px;align-content:center;cursor:pointer;color:#d4e2ec;font-size:14px;font-weight:750;padding:5px}
.more-tools-grid296{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:5px 0}
.more-tools-grid296 button{min-height:44px!important;font-size:12px!important;padding:8px!important;white-space:normal}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 .area-navigation296{gap:3px;padding:4px;margin:5px 0 8px}
 .area-navigation296 button{font-size:11px;padding:7px 4px}
 #mobileMoreMenu>[data-area296]{grid-column:1/-1;min-height:48px;font-size:15px;text-align:left;padding:12px 15px}
}

.section-view-label296[hidden]{display:none!important}
.section-view-label296{grid-column:1/-1;color:#a9c1d0;font-size:11px;font-weight:750;text-align:left}
.section-view-label296 span{display:block;margin:3px 3px 5px}
.section-view-select296{box-sizing:border-box;width:100%;min-height:46px;border:1px solid #8e743a;border-radius:9px;background:#10232f;color:#fff;font-size:15px;font-weight:750;padding:9px 11px}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 .phone-select-nav296{display:block!important;overflow:visible!important}
 .phone-select-nav296>button.ui-section-chip{display:none!important}
 .coach-branch-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important;overflow:visible!important}
 .coach-branch-tab{min-height:44px!important}
 .coach-branch-tab b{white-space:normal!important;text-overflow:clip!important;font-size:12px!important}
 .recruit-profile-tabs-v226,.player-profile-tabs-v225{overflow:visible!important}
 #gameSimBody .gc-center .gc-feed{max-height:none!important;overflow:visible!important}
}
@media(max-width:340px){.area-navigation296[data-area="league"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}

.section-view-label296{display:none}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 .tab-page>.ui-section-nav-v219.phone-section-menu-v232.phone-select-nav296,#homeDetailsCard #dashboardSectionNavV219.phone-select-nav296{display:none!important}
 .section-view-label296:not([hidden]){display:block;margin:5px 0 10px;padding:8px;border:1px solid #315268;border-radius:12px;background:#081a27}
}

@media(max-width:760px),(max-width:1000px) and (max-height:500px){html.phone-overlay-open296,html.phone-overlay-open296 body{overflow:hidden!important;overscroll-behavior:none}}

/* Review option B retains the existing section actions in a visible phone grid. */
.team-edit-actions296{display:flex;gap:8px;flex-wrap:wrap}
.team-edit-actions296>.team-tool-button296{min-height:44px;box-sizing:border-box;border:1px solid #315268!important;border-radius:8px!important;background:#102c3c!important;color:#e8f2fa!important;padding:10px 12px!important;font-weight:800!important;white-space:normal}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 #teamTab>.page-utilities296{display:block;margin:8px 0 12px}
 #teamTab .team-edit-actions296{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #teamTab .team-tool-button296{width:100%;min-width:0;margin:0!important;font-size:11px!important;line-height:1.35}
 #teamTab .section-head>.sdf-page-help{float:none;margin:0;min-height:44px;padding:7px 9px;font-size:11px}
 #homeDetailsCard #dashboardSectionNavV219.phone-visible-sections296,
 .tab-page>.ui-section-nav-v219.phone-visible-sections296{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;overflow:visible!important;margin:5px 0 12px!important;padding:5px!important}
 #homeDetailsCard #dashboardSectionNavV219.phone-visible-sections296>button.ui-section-chip,
 .tab-page>.ui-section-nav-v219.phone-visible-sections296>button.ui-section-chip{display:flex!important;align-items:center;justify-content:center;min-width:0!important;min-height:44px!important;padding:8px!important;border:1px solid #315268!important;border-radius:8px!important;background:#102c3c!important;color:#bcd2df!important;font-size:12px!important;line-height:1.3!important;white-space:normal!important}
 #homeDetailsCard #dashboardSectionNavV219.phone-visible-sections296>button.ui-section-chip.active,
 .tab-page>.ui-section-nav-v219.phone-visible-sections296>button.ui-section-chip.active{background:#162b38!important;border-color:#8e743a!important;color:white!important;box-shadow:inset 0 -2px 0 #e3b95a!important}
 #homeDetailsCard #dashboardSectionNavV219.phone-visible-sections296>button.hidden,
 .tab-page>.ui-section-nav-v219.phone-visible-sections296>button.hidden{display:none!important}
}

@media(max-width:760px),(max-width:1000px) and (max-height:500px){#gameScreen .tab-page>.ui-section-nav-v219.phone-section-menu-v232.phone-visible-sections296{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 #teamTab>.page-utilities296{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;align-items:stretch}
 #teamTab>.page-utilities296>.sdf-page-help{width:44px;min-width:44px;min-height:44px!important;box-sizing:border-box;font-size:0!important;padding:5px!important;margin:0!important}
 #teamTab>.page-utilities296>.sdf-page-help>*{display:none!important}
 #teamTab>.page-utilities296>.sdf-page-help:after{content:'?';font-size:19px;font-weight:800}
}

@media(max-width:760px),(max-width:1000px) and (max-height:500px){#teamTab>.page-utilities296>.sdf-page-help:before{display:none!important;content:none!important}}

/* Selected navigation uses one dark-and-gold treatment, independent of team colors. */
.area-navigation296,.editor-sections296{padding:5px;border:1px solid #273d4c;border-radius:14px;background:#08151f}
.area-navigation296 button,.editor-sections296 button{border:1px solid transparent;border-radius:9px;background:transparent;color:#9cb2c0}
.area-navigation296 button.selected,.editor-sections296 button.selected{background:#162b38;border-color:#8e743a;color:#fff;box-shadow:inset 0 -2px 0 #e3b95a}
.section-view-label296 span{color:#c5d4de;font-size:12px;font-weight:800;letter-spacing:.02em}
.section-view-select296:focus-visible,.area-navigation296 button:focus-visible,.editor-sections296 button:focus-visible{outline:2px solid #e3b95a;outline-offset:2px}
#mainTabs>[data-tab].active{background:#162b38!important;border-color:#8e743a!important;color:#fff!important;box-shadow:inset 0 -2px 0 #e3b95a!important}
#mobileBottomNav>button.active{background:#10232f!important;border-color:#8e743a!important;color:#fff!important;box-shadow:inset 0 2px 0 #e3b95a!important}

/* Short landscape phones retain usable forms and show more game content. */
@media(max-width:1000px) and (max-height:500px){
 #sdfAndroidEditor .sdf-ed-grid{grid-template-columns:minmax(0,1fr)}
 #sdfAndroidEditor .sdf-premium-head{padding:8px 10px!important}
 #sdfAndroidEditor .sdf-premium-head>div{flex:1;display:flex;align-items:center;gap:12px;min-width:0}
 #sdfAndroidEditor .sdf-premium-head h2{font-size:17px!important}
 #sdfAndroidEditor .sdf-editor-nav292{margin:0;flex-wrap:wrap}
 #sdfAndroidEditor .sdf-premium-close{width:44px;height:44px;flex-shrink:0}
 #sdfAndroidEditor .sdf-premium-body{padding:8px!important}
 #sdfAndroidEditor .editor-sections296{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:6px}
 #sdfAndroidEditor .editor-team296 button:last-child{grid-column:auto}
 #sdfAndroidEditor .editor-save-note296{margin-bottom:8px}
 .topbar{height:54px!important;min-height:54px!important;padding:4px 16px!important}
 .topbar .brand h1{font-size:15px!important}
 #gameScreen .nav-tabs{position:static!important;margin-bottom:8px!important;padding:3px!important;gap:4px!important}
 #mainTabs>.nav-tab{min-height:44px!important;padding:6px!important;font-size:11px!important;line-height:1.2}
 #seasonProgress243{padding:6px 10px!important;margin-bottom:6px!important}
 #mobileStatus{top:54px!important;padding:3px 8px!important;gap:5px}
 #mobileStatus>div{padding:3px!important}
 .topbar .brand p{display:none!important}
 #homeDetailsCard .home-details-heading{padding:5px!important}
 #homeDetailsCard .home-details-heading p{display:none}
 .page-utilities296{margin:3px 0 5px}
 #sdfMobileBrand232{padding:4px 8px!important}
 #mobileBottomNav{padding-top:2px!important;padding-bottom:2px!important}
 #mobileBottomNav button{min-height:44px!important}
 #mobileMoreMenu{max-height:calc(var(--sdf-dialog-height,100vh) - 70px);bottom:58px}
}

@media(min-width:761px){#sdfAndroidEditor .sdf-form label{font-size:11px}#sdfAndroidEditor .sdf-form input,#sdfAndroidEditor .sdf-form select{font-size:14px;min-height:44px}}
#sdfAndroidEditor .sdf-editor-toast:empty{display:none}
