/* STATBASKET MOBILE V2 - scoped, desktop untouched */
html.sb-mobile-v2{width:100%;max-width:100%;overflow-x:hidden;background:#edf2f7}
html.sb-mobile-v2 body{width:100%;max-width:100%;overflow-x:hidden;padding:0 0 72px!important;font-size:12px!important}
html.sb-mobile-v2 *{box-sizing:border-box}
html.sb-mobile-v2 #sbMainLayoutV44{width:100%!important;max-width:100%!important;gap:6px!important;padding:5px!important}
html.sb-mobile-v2 #sbMainMenuV44{order:1!important;position:relative!important;top:auto!important;display:grid!important;grid-template-columns:1fr auto!important;gap:5px!important;min-height:48px!important;padding:5px!important;border-radius:10px!important}
html.sb-mobile-v2 #sbBrandV50{order:0!important;width:auto!important;min-height:38px!important;margin:0!important;padding:0 10px!important;justify-content:flex-start!important;font-size:20px!important}
html.sb-mobile-v2 #sbMobileMenuToggleV2{order:0!important;display:flex!important;min-width:92px!important;height:38px!important;align-items:center!important;justify-content:center!important;border-radius:8px!important;background:#203a5f!important;color:#fff!important;font-size:12px!important;font-weight:1000!important}
html.sb-mobile-v2 #sbMainMenuV44:not(.sb-mobile-menu-open)>:not(#sbBrandV50):not(#sbMobileMenuToggleV2){display:none!important}
html.sb-mobile-v2 #sbMainMenuV44.sb-mobile-menu-open{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important}
html.sb-mobile-v2 #sbMainMenuV44.sb-mobile-menu-open #sbBrandV50{grid-column:1!important}
html.sb-mobile-v2 #sbMainMenuV44.sb-mobile-menu-open #sbMobileMenuToggleV2{grid-column:2!important}
html.sb-mobile-v2 #sbMainMenuV44.sb-mobile-menu-open>:not(#sbBrandV50):not(#sbMobileMenuToggleV2){display:flex!important;position:static!important;inset:auto!important;width:100%!important;min-width:0!important;max-width:none!important;height:36px!important;min-height:36px!important;margin:0!important;align-items:center!important;justify-content:center!important;font-size:9px!important;padding:3px 5px!important;overflow:hidden!important}
html.sb-mobile-v2 #sbMainMenuV44.sb-mobile-menu-open #sbConsoleLockBar{grid-column:1/-1!important;height:auto!important;min-height:42px!important}

/* scoreboard vertical: clock with scores, team buttons below */
html.sb-mobile-v2 #sbMainLayoutV44>.scoreboard{order:2!important;display:grid!important;grid-template-columns:1fr 1fr!important;grid-template-areas:"clock clock" "home away"!important;gap:5px!important;width:100%!important}
html.sb-mobile-v2 .scoreboard>.clock-box{grid-area:clock!important;width:100%!important;min-height:122px!important;border-radius:11px!important;padding:5px!important}
html.sb-mobile-v2 #homeBtn{grid-area:home!important}
html.sb-mobile-v2 #awayBtn{grid-area:away!important}
html.sb-mobile-v2 #homeBtn,html.sb-mobile-v2 #awayBtn{width:100%!important;min-width:0!important;min-height:68px!important;height:68px!important;padding:7px!important;border-radius:10px!important}
html.sb-mobile-v2 #homeBtn .team-name,html.sb-mobile-v2 #awayBtn .team-name{font-size:clamp(14px,4.4vw,19px)!important;line-height:1!important;text-align:center!important}
html.sb-mobile-v2 #homeBtn>:not(.team-name),html.sb-mobile-v2 #awayBtn>:not(.team-name){display:none!important}
html.sb-mobile-v2 #sbScorelineV39{display:grid!important;grid-template-columns:minmax(70px,1fr) minmax(130px,1.35fr) minmax(70px,1fr)!important;gap:3px!important;width:100%!important;min-height:108px!important;border:0!important}
html.sb-mobile-v2 #clock{font-size:clamp(42px,14vw,61px)!important;line-height:.9!important}
html.sb-mobile-v2 #period{font-size:18px!important}
html.sb-mobile-v2 .sb-v39-score{font-size:clamp(44px,14vw,62px)!important}
html.sb-mobile-v2 .sb-v45-score-meta{font-size:8px!important;gap:2px 4px!important}
html.sb-mobile-v2 .sb-v45-score-meta strong{font-size:11px!important}
html.sb-mobile-v2 #sbClockStateV51{font-size:9px!important;margin-top:3px!important;padding:3px 7px!important}

/* guide and last event */
html.sb-mobile-v2 #sbMainLayoutV44>#sbGuideLineupRowV61{order:3!important;display:grid!important;grid-template-columns:minmax(0,1fr) 88px!important;gap:5px!important}
html.sb-mobile-v2 #guideText{display:flex!important;min-height:52px!important;height:auto!important;padding:6px!important;align-items:center!important;justify-content:center!important;font-size:clamp(15px,4.5vw,20px)!important;line-height:1.05!important;border-radius:9px!important}
html.sb-mobile-v2 #sbChangeLineupV60{min-width:0!important;width:88px!important;padding:3px!important;font-size:13px!important;border-radius:9px!important}
html.sb-mobile-v2 #sbLastActionRowV44{order:4!important;grid-template-columns:minmax(0,1fr) 78px!important;gap:5px!important}
html.sb-mobile-v2 #lastActionBar{min-height:62px!important;padding:6px!important;font-size:clamp(14px,4vw,18px)!important;line-height:1.05!important;border-width:2px!important;border-radius:9px!important}
html.sb-mobile-v2 #sbUndoMainV44{width:78px!important;min-width:78px!important;min-height:62px!important;font-size:11px!important;border-radius:9px!important}

/* controls */
html.sb-mobile-v2 #sbMainLayoutV44>.topbar{order:5!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important;width:100%!important;padding:5px!important;border-radius:10px!important}
html.sb-mobile-v2 #sbMainLayoutV44>.topbar .ctrl{width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;padding:2px!important;border-radius:8px!important;font-size:11px!important;line-height:1!important}
html.sb-mobile-v2 #sbPlayerFoulsQuickV38{width:auto!important;max-width:none!important;min-width:0!important;white-space:normal!important}

/* quarters + dashboard */
html.sb-mobile-v2 #sbMainLayoutV44>.quarters{order:6!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important}
html.sb-mobile-v2 #sbProDashboard{order:7!important;width:100%!important;min-width:0!important;margin:0!important;border-radius:10px!important;overflow:hidden!important}
html.sb-mobile-v2 .sbpro-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
html.sb-mobile-v2 .sbpro-tab{min-width:0!important;height:42px!important;padding:3px!important;font-size:9px!important}
html.sb-mobile-v2 .sbpro-body{padding:5px!important;overflow:hidden!important}
html.sb-mobile-v2 .sbpro-teams{display:grid!important;grid-template-columns:1fr!important;gap:6px!important}
html.sb-mobile-v2 .sbpro-card{min-width:0!important;border-radius:8px!important}
html.sb-mobile-v2 .sbpro-card-title{font-size:13px!important;padding:6px!important}
html.sb-mobile-v2 .sbpro-table-wrap{width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
html.sb-mobile-v2 .sbpro-table{min-width:430px!important;font-size:10px!important}
html.sb-mobile-v2 .sbpro-table th,html.sb-mobile-v2 .sbpro-table td{padding:4px 3px!important;font-size:10px!important}
html.sb-mobile-v2 .sbpro-pbp-row{grid-template-columns:42px 30px minmax(0,1fr)!important;padding:6px!important;font-size:10px!important}
html.sb-mobile-v2 .sbpro-pbp-score{display:none!important}
html.sb-mobile-v2 .sbpro-footer{display:none!important}

/* action popup: dedicated full-screen surface */
html.sb-mobile-v2 #actionsPanel{position:fixed!important;inset:0!important;z-index:900000!important;width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;padding:5px!important;border:0!important;border-radius:0!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;gap:5px!important;overflow:hidden!important}
html.sb-mobile-v2 body.sb-step-team #actionsPanel{display:none!important}
html.sb-mobile-v2 #actionsPanel .sb-v43-actions-head{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) 86px 72px!important;gap:4px!important;min-height:54px!important}
html.sb-mobile-v2 #actionsPanel .panel-title{font-size:26px!important;min-height:54px!important;padding:5px!important;border-radius:9px!important}
html.sb-mobile-v2 #actionsPanel .sb-v43-actions-head button{min-width:0!important;height:54px!important;padding:3px!important;font-size:10px!important;border-radius:9px!important}
html.sb-mobile-v2 #actionsPanel .actions{position:static!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:repeat(4,minmax(0,1fr))!important;gap:5px!important;height:auto!important;min-height:0!important;overflow:hidden!important}
html.sb-mobile-v2 #actionsPanel .action{min-width:0!important;min-height:0!important;height:auto!important;margin:0!important;padding:3px!important;border-radius:9px!important;font-size:clamp(28px,10vw,46px)!important;line-height:.9!important}
html.sb-mobile-v2 #actionsPanel .action.p2,html.sb-mobile-v2 #actionsPanel .action.p3,html.sb-mobile-v2 #actionsPanel .action.ft{font-size:clamp(44px,14vw,64px)!important}
html.sb-mobile-v2 #actionsPanel .staff-box{position:static!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:4px!important;margin:0!important}
html.sb-mobile-v2 #actionsPanel .staff-btn{height:42px!important;font-size:12px!important;border-radius:8px!important}

/* player popup */
html.sb-mobile-v2 #playersPanel{position:fixed!important;inset:0!important;z-index:910000!important;width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;padding:5px!important;border:0!important;border-radius:0!important;grid-template-rows:auto minmax(0,1fr)!important;overflow:hidden!important}
html.sb-mobile-v2 #playersPanel .sb-v42-popup-head{display:grid!important;grid-template-columns:minmax(0,1fr) 80px 65px!important;gap:4px!important;min-height:52px!important}
html.sb-mobile-v2 #playersPanel .selected-action{min-height:52px!important;padding:5px!important;font-size:21px!important;border-radius:9px!important}
html.sb-mobile-v2 #playersPanel .sb-v42-popup-head button{min-width:0!important;height:52px!important;padding:3px!important;font-size:9px!important;border-radius:9px!important}
html.sb-mobile-v2 #playersList{display:grid!important;grid-template-columns:1fr 1fr!important;grid-auto-rows:minmax(70px,auto)!important;gap:5px!important;padding:5px!important;overflow-y:auto!important;align-content:start!important}
html.sb-mobile-v2 #playersList .player{display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;min-width:0!important;min-height:70px!important;padding:5px!important;border-radius:9px!important;column-gap:4px!important}
html.sb-mobile-v2 #playersList .player-number{width:43px!important;height:43px!important;font-size:29px!important;border-width:2px!important}
html.sb-mobile-v2 #playersList .player-name{font-size:14px!important;padding:3px 0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html.sb-mobile-v2 #playersList .player-stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:2px!important;margin-top:2px!important}
html.sb-mobile-v2 #playersList .player-stats span{min-width:0!important;min-height:23px!important;padding:2px!important;font-size:9px!important;border-radius:5px!important}

/* lineup modal with team tabs */
html.sb-mobile-v2 #sbLineupModalV60{position:fixed!important;inset:0!important;z-index:950000!important;padding:0!important}
html.sb-mobile-v2 #sbLineupModalV60 .sb-v60-card{width:100vw!important;height:100dvh!important;max-height:100dvh!important;border:0!important;border-radius:0!important}
html.sb-mobile-v2 #sbLineupModalV60 .sb-v60-head{min-height:52px!important;padding:5px 7px!important}
html.sb-mobile-v2 #sbLineupModalV60 .sb-v60-head h2{font-size:23px!important}
html.sb-mobile-v2 #sbLineupModalV60 .sb-v60-cancel{min-width:72px!important;padding:4px!important;font-size:11px!important}
html.sb-mobile-v2 #sbLineupClockV71{grid-template-columns:auto 78px!important;gap:3px!important;padding:3px 5px!important}
html.sb-mobile-v2 .sb-v71-clock-buttons{grid-column:1/-1!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:3px!important}
html.sb-mobile-v2 .sb-v71-clock-buttons button{height:31px!important;min-height:31px!important;font-size:9px!important}
html.sb-mobile-v2 #sbMobileLineupTabsV2{display:grid!important;grid-template-columns:1fr 1fr!important;gap:4px!important;padding:4px!important;background:#cbd5e1!important}
html.sb-mobile-v2 #sbMobileLineupTabsV2 button{height:38px!important;border:0!important;border-radius:7px!important;background:#475569!important;color:#fff!important;font-size:11px!important;font-weight:1000!important}
html.sb-mobile-v2 #sbMobileLineupTabsV2 button.active{background:#16834c!important}
html.sb-mobile-v2 #sbLineupModalV60 .sb-v60-body{display:block!important;flex:1!important;min-height:0!important;padding:4px!important;overflow:hidden!important}
html.sb-mobile-v2 #sbLineupModalV60 .sb-v60-team{display:none!important;height:100%!important;min-height:0!important}
html.sb-mobile-v2 #sbLineupModalV60 .sb-v60-team.sb-mobile-team-active{display:flex!important}
html.sb-mobile-v2 #sbLineupModalV60 .sb-v60-team header{min-height:39px!important;padding:3px 5px!important}
html.sb-mobile-v2 #sbLineupModalV60 .sb-v60-team h3{font-size:15px!important}
html.sb-mobile-v2 #sbLineupModalV60 .sb-v60-count{font-size:10px!important}
html.sb-mobile-v2 #sbLineupModalV60 .sb-v60-roster{display:grid!important;grid-template-columns:1fr 1fr!important;grid-auto-rows:minmax(53px,1fr)!important;gap:4px!important;padding:4px!important;overflow-y:auto!important}
html.sb-mobile-v2 #sbLineupModalV60 .sb-v60-player{min-height:53px!important;grid-template-columns:39px minmax(0,1fr)!important;padding:3px!important}
html.sb-mobile-v2 #sbLineupModalV60 .sb-v60-number{font-size:27px!important}
html.sb-mobile-v2 #sbLineupModalV60 .sb-v60-player-name{font-size:11px!important}
html.sb-mobile-v2 #sbLineupModalV60 .sb-v60-player-meta{font-size:8px!important}
html.sb-mobile-v2 #sbLineupModalV60 .sb-v60-actions{position:sticky!important;bottom:0!important;min-height:48px!important;padding:4px!important}
html.sb-mobile-v2 #sbLineupModalV60 .sb-v60-save{min-width:130px!important;padding:5px!important;font-size:12px!important}

/* foul summary and complete event editor */
html.sb-mobile-v2 .sb-player-fouls-overlay{position:fixed!important;inset:0!important;z-index:960000!important;padding:2px!important}
html.sb-mobile-v2 .sb-player-fouls-card{width:100vw!important;height:100dvh!important;max-height:100dvh!important;border:0!important;border-radius:0!important;overflow:hidden!important}
html.sb-mobile-v2 .sb-player-fouls-head{height:40px!important;min-height:40px!important}
html.sb-mobile-v2 .sb-player-fouls-teams{height:calc(100dvh - 40px)!important;grid-template-columns:1fr 1fr!important;gap:2px!important;padding:2px!important;overflow:hidden!important}
html.sb-mobile-v2 .sb-player-fouls-team{min-width:0!important;border-radius:6px!important}
html.sb-mobile-v2 .sb-player-foul-row{grid-template-columns:29px minmax(0,1fr) 37px!important;height:calc((100dvh - 75px)/15)!important;min-height:25px!important;padding:1px 2px!important;gap:1px!important}
html.sb-mobile-v2 .sb-player-foul-number{font-size:10px!important}
html.sb-mobile-v2 .sb-player-foul-name{font-size:8px!important}
html.sb-mobile-v2 .sb-player-foul-count{font-size:12px!important;padding:1px!important}
html.sb-mobile-v2 #eventsScreen{position:fixed!important;inset:0!important;z-index:970000!important;width:100vw!important;height:100dvh!important;padding:0!important;overflow-y:auto!important;background:#eef2f7!important}
html.sb-mobile-v2 #eventsScreen .nav-top{position:sticky!important;top:0!important;z-index:10!important;min-height:50px!important}
html.sb-mobile-v2 #eventsScreen .event-row,html.sb-mobile-v2 #eventsScreen .event-editor{max-width:100%!important;overflow:hidden!important}
html.sb-mobile-v2 #eventsScreen input,html.sb-mobile-v2 #eventsScreen select,html.sb-mobile-v2 #eventsScreen button{max-width:100%!important;font-size:12px!important}

/* bottom dock */
html.sb-mobile-v2 #sbMobileDockV2{position:fixed;left:5px;right:5px;bottom:max(5px,env(safe-area-inset-bottom));z-index:800000;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:5px;border:1px solid #94a3b8;border-radius:12px;background:rgba(248,250,252,.97);box-shadow:0 8px 28px rgba(15,23,42,.28)}
html.sb-mobile-v2 #sbMobileDockV2 button{height:48px;min-width:0;border:0;border-radius:8px;background:#203a5f;color:#fff;font-size:11px;font-weight:1000}
html.sb-mobile-v2.sb-mobile-modal-open #sbMobileDockV2,html.sb-mobile-v2 body.sb-mobile-modal-open #sbMobileDockV2{display:none!important}
html.sb-mobile-v2 .status{bottom:74px!important;right:7px!important;max-width:65vw!important;font-size:8px!important}


/* MOBILE V2.1 - stable professional layout */
html.sb-mobile-v2 #sbThemeToggle{display:none!important}
html.sb-mobile-v2 #sbMainLayoutV44>.scoreboard{
 position:relative!important;inset:auto!important;transform:none!important;
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
 grid-template-rows:auto auto!important;grid-template-areas:"clock clock" "home away"!important;
 align-items:stretch!important;gap:6px!important;overflow:visible!important
}
html.sb-mobile-v2 #sbMainLayoutV44>.scoreboard>.clock-box{
 position:relative!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;
 transform:none!important;grid-area:clock!important;grid-row:1!important;grid-column:1/-1!important;
 width:100%!important;max-width:none!important;margin:0!important;z-index:1!important
}
html.sb-mobile-v2 #sbMainLayoutV44>.scoreboard>#homeBtn,
html.sb-mobile-v2 #sbMainLayoutV44>.scoreboard>#awayBtn{
 position:relative!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;
 transform:none!important;grid-row:2!important;width:100%!important;max-width:none!important;
 min-width:0!important;margin:0!important;z-index:1!important
}
html.sb-mobile-v2 #sbMainLayoutV44>.scoreboard>#homeBtn{grid-area:home!important;grid-column:1!important}
html.sb-mobile-v2 #sbMainLayoutV44>.scoreboard>#awayBtn{grid-area:away!important;grid-column:2!important}
html.sb-mobile-v2 #sbConsoleLockBar{
 display:flex!important;grid-column:1/-1!important;width:100%!important;max-width:none!important;
 height:auto!important;min-height:42px!important;overflow:visible!important;position:relative!important;
 z-index:20!important;align-items:center!important;justify-content:center!important;padding:4px!important
}
html.sb-mobile-v2 #sbConsoleLockTake,
html.sb-mobile-v2 #sbConsoleLockRelease{
 pointer-events:auto!important;min-height:36px!important;min-width:150px!important;padding:7px 12px!important;
 font-size:11px!important;line-height:1.1!important;position:relative!important;z-index:21!important
}
html.sb-mobile-v2 body.sb-console-viewer #sbConsoleLockBar,
html.sb-mobile-v2 body.sb-console-viewer #sbConsoleLockTake{pointer-events:auto!important}
html.sb-mobile-v2 #sbMobileDockV2{grid-template-columns:repeat(5,minmax(0,1fr))!important}
html.sb-mobile-v2 #sbMobileDockV2 button{min-width:0!important;padding:4px 2px!important;font-size:9px!important}


/* MOBILE V2.2 - larger menu, compact actions, readable player stats */
html.sb-mobile-v2 #sbMainMenuV44.sb-mobile-menu-open{
 gap:7px!important;padding:7px!important
}
html.sb-mobile-v2 #sbMainMenuV44.sb-mobile-menu-open>:not(#sbBrandV50):not(#sbMobileMenuToggleV2){
 height:50px!important;min-height:50px!important;padding:7px 9px!important;
 font-size:12px!important;line-height:1.1!important;border-radius:9px!important;
 overflow:visible!important;white-space:normal!important
}
html.sb-mobile-v2 #sbMainMenuV44.sb-mobile-menu-open #sbConsoleLockBar{
 height:auto!important;min-height:54px!important;padding:5px!important
}
html.sb-mobile-v2 #sbMainMenuV44.sb-mobile-menu-open #sbConsoleLockTake,
html.sb-mobile-v2 #sbMainMenuV44.sb-mobile-menu-open #sbConsoleLockRelease{
 min-height:42px!important;font-size:13px!important
}
html.sb-mobile-v2 .status{display:none!important}
html.sb-mobile-v2 #actionsPanel .panel-title{font-size:21px!important}
html.sb-mobile-v2 #actionsPanel .action{
 font-size:clamp(20px,7vw,32px)!important;line-height:1!important
}
html.sb-mobile-v2 #actionsPanel .action.p2,
html.sb-mobile-v2 #actionsPanel .action.p3,
html.sb-mobile-v2 #actionsPanel .action.ft{
 font-size:clamp(34px,11vw,48px)!important
}
html.sb-mobile-v2 #actionsPanel .staff-btn{font-size:10px!important}
html.sb-mobile-v2 #playersList .player-stats .pt,
html.sb-mobile-v2 #playersList .player-stats .fl,
html.sb-mobile-v2 #playersList .player-stats span.pt,
html.sb-mobile-v2 #playersList .player-stats span.fl{
 color:#fff!important;-webkit-text-fill-color:#fff!important
}


/* MOBILE V2.3 - dedicated menu and contained popup headers */
html.sb-mobile-v2 #sbMainMenuV44{
 grid-template-columns:minmax(0,1fr) 96px!important;align-items:center!important
}
html.sb-mobile-v2 #sbMainMenuV44>:not(#sbBrandV50):not(#sbMobileMenuToggleV2):not(#sbMobileMenuPanelV2){
 display:none!important
}
html.sb-mobile-v2 #sbMainMenuV44.sb-mobile-menu-open{
 grid-template-columns:minmax(0,1fr) 96px!important
}
html.sb-mobile-v2 #sbMainMenuV44.sb-mobile-menu-open #sbBrandV50{grid-column:1!important}
html.sb-mobile-v2 #sbMainMenuV44.sb-mobile-menu-open #sbMobileMenuToggleV2{grid-column:2!important}
html.sb-mobile-v2 #sbMainMenuV44 #sbMobileMenuPanelV2,
html.sb-mobile-v2 #sbMainMenuV44.sb-mobile-menu-open #sbMobileMenuPanelV2{
 grid-column:1/-1!important;display:grid!important;grid-template-columns:1fr 1fr!important;
 gap:7px!important;width:100%!important;height:auto!important;min-height:0!important;
 padding:7px!important;margin:0!important;overflow:visible!important;
 border-radius:11px!important;background:#dce4ee!important
}
html.sb-mobile-v2 #sbMobileMenuPanelV2[hidden]{display:none!important}
html.sb-mobile-v2 #sbMobileMenuPanelV2 button{
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:100%!important;min-width:0!important;height:52px!important;min-height:52px!important;
 padding:7px!important;border:0!important;border-radius:9px!important;
 background:#203a5f!important;color:#fff!important;font-size:14px!important;
 line-height:1!important;font-weight:1000!important;white-space:normal!important
}
html.sb-mobile-v2 #sbMobileMenuPanelV2 button.wide{grid-column:1/-1!important}
html.sb-mobile-v2 #sbMobileMenuPanelV2 #sbMobileTakeControlV2{background:#b91c1c!important}
html.sb-mobile-v2 #sbMobileMenuPanelV2 #sbMobileTakeControlV2.active{background:#16834c!important}
html.sb-mobile-v2 #actionsPanel .sb-v43-actions-head{
 grid-template-columns:minmax(0,1fr) 88px 88px!important;width:100%!important;min-width:0!important
}
html.sb-mobile-v2 #actionsPanel .panel-title{
 width:100%!important;min-width:0!important;max-width:100%!important;
 font-size:clamp(17px,5vw,21px)!important;line-height:1!important;
 white-space:normal!important;overflow-wrap:anywhere!important;overflow:hidden!important
}
html.sb-mobile-v2 #actionsPanel .sb-v43-actions-head button{
 width:100%!important;min-width:0!important;max-width:88px!important;
 font-size:9px!important;line-height:1!important;white-space:normal!important;overflow:hidden!important
}
html.sb-mobile-v2 #playersPanel .sb-v42-popup-head{
 grid-template-columns:minmax(0,1fr) 82px 82px!important;width:100%!important;min-width:0!important
}
html.sb-mobile-v2 #playersPanel .selected-action{
 width:100%!important;min-width:0!important;max-width:100%!important;
 font-size:clamp(15px,4.5vw,19px)!important;line-height:1!important;
 white-space:normal!important;overflow-wrap:anywhere!important;overflow:hidden!important
}
html.sb-mobile-v2 #playersPanel .sb-v42-popup-head button{
 width:100%!important;min-width:0!important;max-width:82px!important;
 font-size:9px!important;line-height:1!important;white-space:normal!important;overflow:hidden!important
}


/* MOBILE V2.4 - compact foul flow, no duplicate dock, responsive editor */
html.sb-mobile-v2 body{padding-bottom:6px!important}
html.sb-mobile-v2 #sbMobileDockV2,
html.sb-mobile-v2 #sbOfflineBadge,
html.sb-mobile-v2 #status,
html.sb-mobile-v2 .status{display:none!important}

html.sb-mobile-v2 #sbFoulShotsV58,
html.sb-mobile-v2 #sbFtResultV59{
 padding:10px!important;align-items:center!important;justify-content:center!important
}
html.sb-mobile-v2 #sbFoulShotsV58 .sb-v58-card,
html.sb-mobile-v2 #sbFtResultV59 .sb-v58-card{
 width:min(92vw,420px)!important;max-width:92vw!important;
 padding:14px!important;border-width:3px!important;border-radius:16px!important
}
html.sb-mobile-v2 .sb-v58-title{
 font-size:clamp(21px,6vw,28px)!important;line-height:1!important
}
html.sb-mobile-v2 .sb-v58-subtitle,
html.sb-mobile-v2 .sb-v59-shooter,
html.sb-mobile-v2 .sb-v59-progress{
 margin-top:7px!important;font-size:clamp(15px,4.5vw,20px)!important;line-height:1.1!important
}
html.sb-mobile-v2 .sb-v58-buttons{
 grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;margin-top:12px!important
}
html.sb-mobile-v2 .sb-v58-buttons button{
 min-width:0!important;height:68px!important;border-radius:11px!important;
 font-size:34px!important;line-height:1!important
}
html.sb-mobile-v2 .sb-v59-results{
 grid-template-columns:1fr 1fr!important;gap:7px!important;margin-top:12px!important
}
html.sb-mobile-v2 .sb-v59-results button{
 min-width:0!important;height:76px!important;padding:5px!important;border-radius:12px!important;
 font-size:clamp(17px,5vw,23px)!important;line-height:1!important;white-space:normal!important
}
html.sb-mobile-v2 .sb-v58-close{
 width:100%!important;max-width:100%!important;height:45px!important;margin-top:8px!important;
 padding:4px!important;border-radius:10px!important;font-size:13px!important;line-height:1!important
}

html.sb-mobile-v2 #actionsPanel .sb-v43-actions-head{
 grid-template-columns:minmax(0,1fr) 78px 78px!important;gap:3px!important;padding:0!important
}
html.sb-mobile-v2 #playersPanel .sb-v42-popup-head{
 grid-template-columns:minmax(0,1fr) 78px 78px!important;gap:3px!important;padding:0!important
}
html.sb-mobile-v2 #actionsPanel .sb-v43-actions-head button,
html.sb-mobile-v2 #playersPanel .sb-v42-popup-head button{
 width:78px!important;min-width:0!important;max-width:78px!important;
 padding:2px!important;font-size:9px!important;letter-spacing:-.2px!important
}

html.sb-mobile-v2 #eventsScreen{
 width:100vw!important;max-width:100vw!important;overflow-x:hidden!important;
 padding:0 0 8px!important
}
html.sb-mobile-v2 #eventsScreen .nav-top{
 width:100%!important;max-width:100%!important;padding:5px!important
}
html.sb-mobile-v2 #eventsScreen .events-list{
 width:100%!important;max-width:100%!important;min-width:0!important;
 padding:5px!important;margin:0!important;overflow-x:hidden!important
}
html.sb-mobile-v2 #eventsScreen .event-row{
 width:100%!important;max-width:100%!important;min-width:0!important;
 margin:0 0 6px!important;border-radius:10px!important;overflow:hidden!important
}
html.sb-mobile-v2 #eventsScreen .event-main{
 width:100%!important;min-width:0!important;max-width:100%!important;
 grid-template-columns:46px 48px minmax(0,1fr) 62px!important;
 gap:4px!important;padding:7px!important
}
html.sb-mobile-v2 #eventsScreen .event-time{font-size:12px!important}
html.sb-mobile-v2 #eventsScreen .event-team{font-size:8px!important;overflow:hidden!important}
html.sb-mobile-v2 #eventsScreen .event-player{
 min-width:0!important;font-size:11px!important;white-space:nowrap!important;
 overflow:hidden!important;text-overflow:ellipsis!important
}
html.sb-mobile-v2 #eventsScreen .event-action{
 min-width:0!important;padding:5px 2px!important;border-radius:7px!important;
 font-size:9px!important;overflow:hidden!important
}
html.sb-mobile-v2 #eventsScreen .event-editor{
 width:100%!important;max-width:100%!important;min-width:0!important;
 padding:7px!important;overflow:hidden!important
}
html.sb-mobile-v2 #eventsScreen .editor-grid{
 grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;margin-bottom:7px!important
}
html.sb-mobile-v2 #eventsScreen .editor-btn{
 min-width:0!important;padding:8px 2px!important;border-radius:8px!important;font-size:11px!important
}
html.sb-mobile-v2 #eventsScreen .editor-time,
html.sb-mobile-v2 #eventsScreen .player-select,
html.sb-mobile-v2 #eventsScreen .sb-v46-event-type{
 width:100%!important;max-width:100%!important;height:42px!important;
 margin:5px 0!important;padding:4px 7px!important;border-width:1px!important;
 border-radius:8px!important;font-size:12px!important
}
html.sb-mobile-v2 #eventsScreen .mini-edit-row{
 display:grid!important;grid-template-columns:1fr 1fr!important;gap:5px!important;margin:6px 0!important
}
html.sb-mobile-v2 #eventsScreen .mini-point-btn{height:42px!important;border-radius:8px!important;font-size:17px!important}
html.sb-mobile-v2 #eventsScreen .editor-actions{display:grid!important;grid-template-columns:minmax(0,1fr) 64px!important;gap:5px!important}
html.sb-mobile-v2 #eventsScreen .editor-save,
html.sb-mobile-v2 #eventsScreen .editor-delete{
 width:100%!important;min-width:0!important;height:48px!important;padding:5px!important;
 border-radius:9px!important;font-size:13px!important
}


/* MOBILE V2.5 - four primary controls + secondary bottom sheet */
html.sb-mobile-v2 #sbMainLayoutV44>.topbar,
html.sb-mobile-v2 #sbMainLayoutV44>.quarters{display:none!important}
html.sb-mobile-v2 #sbMobilePrimaryV25{
 order:3!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:4px!important;width:100%!important;padding:5px!important;margin:0!important;
 border:1px solid #b8c5d4!important;border-radius:10px!important;background:#f8fafc!important
}
html.sb-mobile-v2 #sbMobilePrimaryV25 button{
 min-width:0!important;height:48px!important;padding:4px 2px!important;border:0!important;
 border-radius:8px!important;background:#203a5f!important;color:#fff!important;
 font-size:10px!important;line-height:1!important;font-weight:1000!important
}
html.sb-mobile-v2 #sbMobilePrimaryV25 button[data-kind="clock"]{background:#16834c!important}
html.sb-mobile-v2 #sbMobilePrimaryV25 button[data-kind="undo"]{background:#b91c1c!important}
html.sb-mobile-v2 #sbMobilePrimaryV25 button[data-kind="more"]{background:#475569!important}
html.sb-mobile-v2 #sbMainLayoutV44>#sbGuideLineupRowV61{order:4!important}
html.sb-mobile-v2 #sbLastActionRowV44{order:5!important}
html.sb-mobile-v2 #sbProDashboard{order:6!important}

html.sb-mobile-v2 #sbMobileMoreV25{
 position:fixed!important;inset:0!important;z-index:990000!important;display:none!important;
 align-items:flex-end!important;justify-content:center!important;padding:8px!important;
 background:rgba(2,6,23,.62)!important;backdrop-filter:blur(3px)!important
}
html.sb-mobile-v2 #sbMobileMoreV25.show{display:flex!important}
html.sb-mobile-v2 #sbMobileMoreV25 .sb-mobile-more-card{
 width:100%!important;max-width:520px!important;max-height:82dvh!important;
 padding:7px!important;border:2px solid #cbd5e1!important;border-radius:16px 16px 10px 10px!important;
 background:#f8fafc!important;color:#172033!important;overflow-y:auto!important;
 box-shadow:0 -14px 50px rgba(2,6,23,.35)!important
}
html.sb-mobile-v2 #sbMobileMoreV25 header{
 position:sticky!important;top:-7px!important;z-index:2!important;display:grid!important;
 grid-template-columns:minmax(0,1fr) 82px!important;gap:6px!important;align-items:center!important;
 min-height:48px!important;padding:6px!important;background:#f8fafc!important
}
html.sb-mobile-v2 #sbMobileMoreV25 header strong{font-size:18px!important}
html.sb-mobile-v2 #sbMobileMoreV25 header button{
 width:82px!important;height:38px!important;border:0!important;border-radius:8px!important;
 background:#b91c1c!important;color:#fff!important;font-size:10px!important;font-weight:1000!important
}
html.sb-mobile-v2 #sbMobileMoreV25 .sb-mobile-more-grid{
 display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important
}
html.sb-mobile-v2 #sbMobileMoreV25 .sb-mobile-more-grid button{
 min-width:0!important;height:50px!important;padding:5px!important;border:0!important;
 border-radius:9px!important;background:#203a5f!important;color:#fff!important;
 font-size:12px!important;line-height:1!important;font-weight:1000!important;white-space:normal!important
}
html.sb-mobile-v2 #sbMobileMoreV25 .sb-mobile-more-grid button:nth-last-child(1){
 grid-column:1/-1!important;background:#475569!important
}
html.sb-mobile-v2 body.sb-mobile-more-open{overflow:hidden!important}


/* MOBILE V2.6 - strict small labels and bounded last action */
html.sb-mobile-v2 #sbBrandV50{
 min-width:0!important;max-width:100%!important;padding:0 7px!important;
 font-size:13px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important
}
html.sb-mobile-v2 #sbMobileTakeControlV2,
html.sb-mobile-v2 #sbMobileMenuPanelV2 #sbMobileTakeControlV2{
 min-width:0!important;max-width:100%!important;padding:5px 3px!important;
 font-size:10px!important;line-height:1!important;white-space:normal!important;overflow:hidden!important
}
html.sb-mobile-v2 #sbMobilePrimaryV25{min-width:0!important;max-width:100%!important;overflow:hidden!important}
html.sb-mobile-v2 #sbMobilePrimaryV25 button{
 min-width:0!important;max-width:100%!important;padding:3px 1px!important;
 font-size:9px!important;letter-spacing:-.3px!important;white-space:normal!important;overflow:hidden!important
}
html.sb-mobile-v2 #sbLastActionRowV44{
 display:grid!important;grid-template-columns:minmax(0,1fr) 66px!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
 gap:4px!important;margin:0!important;padding:0!important;overflow:hidden!important
}
html.sb-mobile-v2 #lastActionBar{
 width:100%!important;max-width:100%!important;min-width:0!important;
 margin:0!important;padding:6px 4px!important;font-size:13px!important;
 line-height:1.05!important;white-space:normal!important;overflow-wrap:anywhere!important;
 overflow:hidden!important
}
html.sb-mobile-v2 #sbUndoMainV44{
 width:66px!important;max-width:66px!important;min-width:0!important;
 margin:0!important;padding:3px 1px!important;font-size:9px!important;
 line-height:1!important;white-space:normal!important;overflow:hidden!important
}


/* MOBILE V2.7 - screenshot overflow correction */
html.sb-mobile-v2 #sbMainMenuV44{grid-template-columns:minmax(0,1fr) 96px!important;overflow:hidden!important}
html.sb-mobile-v2 #sbBrandV50{
 grid-column:1!important;grid-row:1!important;width:100%!important;min-width:0!important;
 max-width:100%!important;font-size:11px!important
}
html.sb-mobile-v2 #sbMobileMenuToggleV2{
 grid-column:2!important;grid-row:1!important;width:96px!important;min-width:0!important;
 max-width:96px!important;font-size:10px!important
}
html.sb-mobile-v2 #sbLastActionRowV44{
 grid-template-columns:minmax(0,1fr) 58px!important;
 width:calc(100% - 8px)!important;max-width:calc(100% - 8px)!important;
 margin-right:8px!important;padding:0!important;overflow:hidden!important
}
html.sb-mobile-v2 #lastActionBar{
 min-width:0!important;max-width:100%!important;font-size:12px!important;
 padding-left:4px!important;padding-right:4px!important
}
html.sb-mobile-v2 #sbUndoMainV44{
 width:58px!important;min-width:0!important;max-width:58px!important;
 padding:2px 0!important;font-size:8px!important;letter-spacing:-.4px!important
}


/* MOBILE V2.8 - visible console master state */
html.sb-mobile-v2 #sbMobileTakeControlMoreV25{
 background:#b91c1c!important;color:#fff!important
}
html.sb-mobile-v2 #sbMobileTakeControlMoreV25.active,
html.sb-mobile-v2 #sbMobileTakeControlV2.active{
 background:#16834c!important;color:#fff!important;
 box-shadow:inset 0 0 0 2px #86efac!important
}

/* MOBILE V2.9 - pre-game access: START and console control always reachable */
html.sb-mobile-v2 #sbMobilePrimaryV25{
 grid-template-columns:repeat(5,minmax(0,1fr))!important;
}
html.sb-mobile-v2 #sbMobilePrimaryV25 button[data-kind="start"]{
 display:none!important;
 background:#16a34a!important;
 color:#fff!important;
 border:2px solid #86efac!important;
}
html.sb-mobile-v2 body.sb-v75-pregame-locked #sbMobilePrimaryV25{
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
html.sb-mobile-v2 body.sb-v75-pregame-locked #sbMobilePrimaryV25 button[data-kind="start"]{
 display:flex!important;
 grid-column:1/-1!important;
 align-items:center!important;
 justify-content:center!important;
 min-height:64px!important;
 font-size:22px!important;
 letter-spacing:.04em!important;
}
html.sb-mobile-v2 body.sb-v75-pregame-locked #sbMobileMenuToggleV2,
html.sb-mobile-v2 body.sb-v75-pregame-locked #sbMobileTakeControlV2,
html.sb-mobile-v2 body.sb-v75-pregame-locked #sbMobileTakeControlMoreV25,
html.sb-mobile-v2 body.sb-v75-pregame-locked #sbConsoleLockTake,
html.sb-mobile-v2 body.sb-v75-pregame-locked #sbMobilePrimaryV25 button[data-kind="more"],
html.sb-mobile-v2 body.sb-v75-pregame-locked #sbMobileMoreV25 [data-close]{
 opacity:1!important;
 filter:none!important;
 cursor:pointer!important;
 pointer-events:auto!important;
}
@media(max-width:420px){
 html.sb-mobile-v2 #sbMobilePrimaryV25{grid-template-columns:repeat(5,minmax(0,1fr))!important}
 html.sb-mobile-v2 body.sb-v75-pregame-locked #sbMobilePrimaryV25{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html.sb-mobile-v2 #sbMobilePrimaryV25 button{font-size:8px!important}
 html.sb-mobile-v2 body.sb-v75-pregame-locked #sbMobilePrimaryV25 button[data-kind="start"]{font-size:21px!important}
}


/* MOBILE V3 · PWA con tendine dal basso, desktop invariato */
html.sb-mobile-v2 body.sb-mobile-modal-open::before{
 content:"";position:fixed;inset:0;z-index:899000;
 background:rgba(2,6,23,.66);backdrop-filter:blur(3px);
}
html.sb-mobile-v2 #actionsPanel,
html.sb-mobile-v2 #playersPanel{
 top:auto!important;right:0!important;bottom:0!important;left:0!important;
 width:100vw!important;height:min(88dvh,780px)!important;max-height:88dvh!important;
 border:2px solid #cbd5e1!important;border-bottom:0!important;
 border-radius:20px 20px 0 0!important;
 padding:7px!important;background:#f8fafc!important;
 box-shadow:0 -18px 55px rgba(2,6,23,.42)!important;
 animation:sbMobileSheetUp .18s ease-out!important;
}
html.sb-mobile-v2 #actionsPanel{z-index:900000!important}
html.sb-mobile-v2 #playersPanel{z-index:910000!important}
html.sb-mobile-v2 #actionsPanel .sb-v43-actions-head,
html.sb-mobile-v2 #playersPanel .sb-v42-popup-head{
 position:sticky!important;top:0!important;z-index:3!important;
 background:#f8fafc!important;border-radius:15px 15px 0 0!important;
}
html.sb-mobile-v2 #actionsPanel .actions{
 grid-template-columns:repeat(3,minmax(0,1fr))!important;
 grid-template-rows:none!important;grid-auto-rows:minmax(70px,1fr)!important;
 overflow-y:auto!important;overscroll-behavior:contain!important;
 padding-bottom:max(8px,env(safe-area-inset-bottom))!important;
}
html.sb-mobile-v2 #actionsPanel .action{
 min-height:70px!important;font-size:clamp(23px,8vw,38px)!important;
}
html.sb-mobile-v2 #playersList{
 overflow-y:auto!important;overscroll-behavior:contain!important;
 padding-bottom:max(10px,env(safe-area-inset-bottom))!important;
}
html.sb-mobile-v2 #sbMobileMoreV25{
 align-items:flex-end!important;
}
html.sb-mobile-v2 #sbMobileMoreV25 .sb-mobile-more-card{
 max-height:88dvh!important;border-radius:20px 20px 0 0!important;
 animation:sbMobileSheetUp .18s ease-out!important;
}
html.sb-mobile-v2 #sbLineupModalV60 .sb-v60-card,
html.sb-mobile-v2 .sb-player-fouls-card{
 position:absolute!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;
 width:100vw!important;height:92dvh!important;max-height:92dvh!important;
 border-radius:20px 20px 0 0!important;
 box-shadow:0 -18px 55px rgba(2,6,23,.42)!important;
 animation:sbMobileSheetUp .18s ease-out!important;
}
html.sb-mobile-v2 #eventsScreen{
 top:6dvh!important;height:94dvh!important;border-radius:20px 20px 0 0!important;
 box-shadow:0 -18px 55px rgba(2,6,23,.42)!important;
}
@keyframes sbMobileSheetUp{
 from{transform:translateY(28px);opacity:.5}
 to{transform:translateY(0);opacity:1}
}
@media (orientation:landscape) and (max-height:600px){
 html.sb-mobile-v2 #actionsPanel,
 html.sb-mobile-v2 #playersPanel,
 html.sb-mobile-v2 #sbMobileMoreV25 .sb-mobile-more-card{
  height:96dvh!important;max-height:96dvh!important;
 }
 html.sb-mobile-v2 #actionsPanel .actions{grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-auto-rows:minmax(58px,1fr)!important}
}
