#coachWorkspace[hidden]{display:none!important}#coachWorkspace{position:fixed;inset:var(--coach-roster-safe-top,48px) 0 0;z-index:2147483000;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;background:radial-gradient(ellipse at top right,#164750,#081b2b 65%);color:#eef9fc;padding:16px max(16px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));font-family:system-ui,sans-serif}#coachWorkspace>header,#coachWorkspace>p,#coachWorkspaceContent{max-width:1200px;margin-left:auto;margin-right:auto}#coachWorkspace>header{display:flex;align-items:center;gap:14px;flex-wrap:wrap}#coachWorkspace h1{font-size:clamp(24px,5vw,40px);margin:10px 0}#coachWorkspace h2{font-size:21px}#coachWorkspace h3{font-size:17px}#coachWorkspace p{line-height:1.5;overflow-wrap:anywhere}#coachWorkspaceIdentity{color:#b9dbe1;font-size:14px}#coachWorkspaceNotice:not(:empty){position:sticky;top:0;z-index:5;padding:12px;background:#153e47;border:1px solid #93d8c5;border-radius:12px}html body #coachWorkspace button,html body #coachBoardHome{min-height:44px;min-width:44px;font-size:15px;white-space:normal;overflow-wrap:anywhere;touch-action:manipulation}#coachWorkspace button{margin:4px;padding:10px 14px;border:1px solid #66989f;border-radius:12px;background:#184050;color:#fff;cursor:pointer}#coachWorkspace button:disabled{opacity:.5}#coachWorkspace button:focus-visible,#coachWorkspace summary:focus-visible{outline:3px solid #ffe19d;outline-offset:2px}#coachWorkspace .coach-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}html body #coachWorkspace .coach-home-grid button{display:flex;flex-direction:column;align-items:flex-start;gap:9px;margin:0;min-height:154px;text-align:left;padding:18px;background:linear-gradient(145deg,#1c5060,#123140);border-color:#52868e;box-shadow:0 5px 18px #0002}.coach-home-grid strong{font-size:19px}.coach-home-grid small{font-size:13px;line-height:1.4;color:#c5dce2}.coach-home-icon{font-size:26px}#coachWorkspace label{display:block;margin:10px 0;font-size:14px}#coachWorkspace input,#coachWorkspace select,#coachWorkspace textarea{display:block;width:100%;box-sizing:border-box;min-height:46px;font:16px system-ui;padding:10px;background:#fff;color:#102c38;border:1px solid #78a6b2;border-radius:9px;margin-top:6px}#coachWorkspace textarea{resize:vertical}#coachWorkspace form,#coachWorkspace article{max-width:100%}#coachWorkspace details{border:1px solid #527b88;border-radius:12px;padding:10px;margin:12px 0}#coachWorkspace summary{min-height:44px;padding:8px;box-sizing:border-box;cursor:pointer}#coachWorkspace .coach-bank-scopes{display:flex;flex-wrap:wrap;gap:6px}#coachWorkspace [aria-pressed=true]{background:#176754;border-color:#95e7c3}#coachWorkspace .coach-bank-filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px}.coach-bank-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:12px}.coach-exercise-card{padding:16px;border:1px solid #5c8997;background:#11313f;border-radius:14px;margin:10px 0}.coach-exercise-image{max-width:100%;height:auto;max-height:400px;object-fit:contain}.coach-exercise-pitch{display:block;width:100%;max-height:340px;margin:12px auto}.coach-preserve-lines{white-space:pre-wrap}body.demo-workspace-open{overflow:hidden!important}body.demo-workspace-open #board,body.demo-workspace-open #coachPlanBar,body.demo-workspace-open #coachPageToolbar{visibility:hidden!important}#coachWorkspace #coach294panel{position:static!important;display:block!important;inset:auto!important;width:100%!important;max-height:none!important;height:auto!important;box-sizing:border-box}#coachWorkspace #rosterPanel{display:block!important}#coachWorkspace #rosterPanel>summary{display:none}#coachWorkspace .workspace-fives #coachTeamEditor{display:none}#coachWorkspace #coachTeamEditor{margin:0}#coachWorkspace #coachSpecialTeamsEditor{margin-top:18px}#coachWorkspace .roster-grid{flex-wrap:wrap}#coachWorkspace #customStoryboard{display:block!important}html body #coachDemoBar #coachBoardHome{flex:none;font-size:13px;padding:6px;margin:2px 0}#coachDemoIdentity{font-size:12px}#coachWorkspace input[type=file]{white-space:normal}#coachWorkspaceContent>*{min-width:0}#coachWorkspace .coach294-panel{overflow:visible}#coachWorkspace .coach-bank-filters label{min-width:0}
@media(min-width:900px){#coachWorkspace .coach-home-grid{grid-template-columns:repeat(4,minmax(0,1fr))}html body #coachWorkspace .coach-home-grid button{min-height:190px}}@media(max-width:370px){#coachWorkspace{padding-left:10px;padding-right:10px}#coachWorkspace .coach-home-grid{gap:8px}html body #coachWorkspace .coach-home-grid button{padding:12px;min-height:150px}.coach-home-grid strong{font-size:17px}}@media(max-width:600px){#coachWorkspace .coach-bank-filters{grid-template-columns:1fr}}@media(max-height:450px) and (min-width:600px){#coachWorkspace .coach-home-grid{grid-template-columns:repeat(4,minmax(0,1fr))}html body #coachWorkspace .coach-home-grid button{min-height:134px;padding:12px}.coach-home-grid small{font-size:12px}}
/* The footer provides the same menu/tools without handles covering the court. */
body.coach-demo #coach212Left,body.coach-demo #coach212Right,body.coach-demo #coach212Bottom{display:none!important}#coachWorkspace h1:focus{outline:none}
/* Keep player dialogs below the always available demo identity/navigation. */
html body.coach-demo .coach-squad-modal{padding-top:calc(var(--coach-roster-safe-top,48px) + 12px)}body.coach-demo .coach-squad-modal header{position:sticky;top:var(--coach-roster-safe-top,48px);z-index:2;background:#142a3a}

/* SportCoach compact navigation. Larger cards remain an explicit preference. */
#coachWorkspace[data-density=compact] .coach-home-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html body #coachWorkspace[data-density=compact] .coach-home-grid button{min-height:112px;padding:12px 8px;gap:6px;align-items:center;text-align:center}
#coachWorkspace[data-density=compact] .coach-home-grid strong{font-size:14px;line-height:1.3}
#coachWorkspace[data-density=compact] .coach-home-grid small{display:none}
#coachWorkspace .sportcoach-invite-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
@media(max-width:340px){#coachWorkspace[data-density=compact] .coach-home-grid,#coachWorkspace .sportcoach-invite-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:700px){#coachWorkspace[data-density=compact] .coach-home-grid{grid-template-columns:repeat(4,minmax(0,1fr))}#coachWorkspace .sportcoach-invite-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}

.sportcoach-avatar{width:36px;height:36px;object-fit:cover;border-radius:50%;flex:none}.sportcoach-profile-image{width:88px;height:88px;object-fit:cover;border-radius:50%}body.sportcoach-recipient #coachDemoBar,body.sportcoach-recipient #coachPlanBar,body.sportcoach-recipient #coachAdministration,body.sportcoach-recipient #coach212Shade,body.sportcoach-recipient .coach-squad-modal,body.sportcoach-recipient #coachShareCenter{display:none!important}body.sportcoach-recipient #coachWorkspace{inset:0!important}#coachWorkspace>header label{min-width:130px;margin-left:auto}#coachWorkspace section textarea{max-width:100%}

/* Home is a destination, not the profile/setup dialog. */
#coachWorkspace[data-route=home] h1{font-size:clamp(23px,5vw,32px);margin:4px 0}#coachWorkspace[data-route=home]>header{gap:8px}#coachWorkspace[data-route=home] #coachWorkspaceIdentity{margin:5px auto;font-size:12px}#coachWorkspace[data-route=home] .coach-home-grid{margin:10px 0;gap:7px}html body #coachWorkspace[data-route=home][data-density=compact] .coach-home-grid button{min-height:94px;padding:8px 5px;gap:4px}#coachWorkspace[data-route=home] .coach-home-icon{font-size:24px}#coachWorkspace .sportcoach-home-extras{display:flex;flex-wrap:wrap;gap:4px}#coachWorkspace .sportcoach-home-extras button{font-size:13px;padding:8px;margin:0}#coachWorkspace .sportcoach-home-settings{margin:6px 0;padding:0 8px}#coachWorkspace .sportcoach-home-settings summary{padding:8px}#coachWorkspace[data-route=home]>header label{margin:0 0 0 auto;font-size:12px}#coachWorkspace[data-route=home]>header select{margin-top:2px;min-height:44px;padding:7px}
#coachWorkspace .sportcoach-calendar-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:4px}#coachWorkspace .sportcoach-calendar-toolbar button{padding:7px;margin:0;font-size:14px}#coachWorkspace .sportcoach-calendar-toolbar strong{flex:1;min-width:100px}#coachWorkspace .sportcoach-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin-top:10px}html body #coachWorkspace .sportcoach-calendar-grid button{min-width:0;min-height:64px;margin:0;padding:4px 2px;display:flex;flex-direction:column;text-align:left;justify-content:flex-start;overflow:hidden;font-size:13px;border-radius:6px}#coachWorkspace .sportcoach-calendar-grid small{text-align:center;font-size:11px}#coachWorkspace .sportcoach-calendar-grid .is-today{border:2px solid #7bf0c0}#coachWorkspace .sportcoach-calendar-grid[data-mode=day]{grid-template-columns:1fr}#coachWorkspace .sportcoach-event{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;border-radius:3px;background:#276857;color:#fff;margin-top:3px}#coachWorkspace .sportcoach-event-match{background:#334e9c}#coachWorkspace .sportcoach-event-cup{background:#885a19}@media(min-width:700px){html body #coachWorkspace .sportcoach-calendar-grid button{min-height:90px;padding:8px}#coachWorkspace .sportcoach-event{font-size:12px}}@media(max-height:450px){html body #coachWorkspace .sportcoach-calendar-grid button{min-height:48px}}
/* The keyboard resizes form panels, not the tactical camera. */
html.coach-editing body:not(.sport-board-active) #coachWorkspace{top:var(--coach-visible-top,0px)!important;bottom:auto!important;height:var(--coach-visible-height,100dvh)!important;min-height:0!important;scroll-padding-top:72px;scroll-padding-bottom:24px}
html.coach-editing body.demo-workspace-open:not(.sport-board-active) #coachDemoBar{visibility:hidden!important}
html.coach-editing #coachWorkspace .sport-object-editor{position:fixed;top:calc(var(--coach-visible-top,0px) + 6px)!important;bottom:auto!important;height:calc(var(--coach-visible-height,100dvh) - 12px)!important;max-height:none;overflow:auto;scroll-padding-top:20px;scroll-padding-bottom:24px}
#coachWorkspace>header{position:sticky;top:0;z-index:8;background:#0d2535;padding:4px 0}
#coachWorkspaceBack{order:-1;white-space:nowrap!important;flex:none}
html.coach-editing #coachWorkspace>header h1,html.coach-editing #coachWorkspaceIdentity,html.coach-editing #coachWorkspaceHome{display:none!important}
html.coach-editing #coachWorkspaceNotice:not(:empty){position:static!important}
#coachWorkspace .sport-object-editor header{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:8px;background:#102c3c}
#coachWorkspace .sport-object-editor header h2{font-size:16px;margin:4px 0}

/* One reusable individual statistics view; no extra match-registration actions. */
.sport-player-stat-filters{display:flex;flex-wrap:wrap;gap:8px}.sport-player-stat-filters label{flex:1 1 140px}.sport-player-stat-filters label[hidden]{display:none!important}
.sport-player-stat-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.sport-player-stat-cards>div{background:#123f50;border:1px solid #4b879c;border-radius:12px;padding:10px 6px;text-align:center}.sport-player-stat-cards strong{display:block;font-size:28px;color:#fff}.sport-player-stat-cards span{font-size:12px;overflow-wrap:anywhere}.sport-stat-note{font-size:12px;color:#bcd5df}
.sport-player-history{overflow-x:auto}.sport-player-history table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.sport-player-history th,.sport-player-history td{padding:6px;text-align:right;border-bottom:1px solid #426775}.sport-player-history th:first-child,.sport-player-history td:first-child{text-align:left;min-width:130px}.sport-player-history small{display:block;font-size:11px;color:#bbcfdb}#coachWorkspace .sport-player-history button{margin:0;padding:5px;text-align:left;background:transparent}.coach-player-stat-link{font-size:12px!important;min-width:44px;min-height:44px}
@media(max-width:500px){.sport-player-stat-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.sport-player-stat-cards strong{font-size:25px}}

#coachWorkspaceNotice[hidden]{display:none!important}
#coachWorkspaceNotice[data-kind=info]{position:fixed!important;left:50%;right:auto;bottom:calc(8px + env(safe-area-inset-bottom,0px));top:auto;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);box-sizing:border-box;margin:0;padding:7px 10px!important;border-radius:10px!important;font-size:12px;line-height:1.3;pointer-events:none;z-index:10}
#coachWorkspaceNotice[data-kind=error]{pointer-events:auto}
body.sport-board-active #coachWorkspace>#coachWorkspaceNotice[data-kind=error]{display:block!important;position:absolute;top:8px;left:8px;right:8px;z-index:30}

/* Reserve navigation space: only the content pane scrolls, including on iPhone. */
body.demo-workspace-open:not(.sport-board-active) #coachWorkspace{display:flex;flex-direction:column;overflow:hidden;min-height:0;padding-top:4px;padding-bottom:max(8px,env(safe-area-inset-bottom));}
body.demo-workspace-open:not(.sport-board-active) #coachWorkspace>header{position:static;flex:none;width:100%;gap:4px;padding:0;background:#0d2535;}
body.demo-workspace-open:not(.sport-board-active) #coachWorkspace>header h1{font-size:20px;margin:4px 8px;}
body.demo-workspace-open:not(.sport-board-active) #coachWorkspaceIdentity{flex:none;width:100%;font-size:12px;margin:4px auto;}
body.demo-workspace-open:not(.sport-board-active) #coachWorkspaceContent{flex:1;min-height:0;width:100%;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:12px;scroll-padding:12px;}
html.coach-editing #coachWorkspaceHome{display:block!important}
body.demo-workspace-open #coachBoardBack{display:none}
html body #coachDemoBar #coachBoardBack{flex:none;font-size:13px;padding:6px;}
/* Focusing/blurring search must not move a result between pointerdown and click. */
html.coach-editing body.demo-workspace-open:not(.sport-board-active) #coachWorkspace{top:max(var(--coach-roster-safe-top,48px),var(--coach-visible-top,0px))!important;height:calc(var(--coach-visible-height,100dvh) - max(0px,calc(var(--coach-roster-safe-top,48px) - var(--coach-visible-top,0px))))!important;}
html.coach-editing body.demo-workspace-open:not(.sport-board-active) #coachDemoBar{visibility:visible!important}
html.coach-editing body.demo-workspace-open:not(.sport-board-active) #coachWorkspace>header h1,html.coach-editing body.demo-workspace-open:not(.sport-board-active) #coachWorkspaceIdentity{display:block!important}
body.demo-workspace-open:not(.sport-board-active) #coachWorkspace>header label{display:flex;align-items:center;gap:6px;min-width:0;margin:0 0 0 auto;font-size:12px;}
body.demo-workspace-open:not(.sport-board-active) #coachWorkspace>header label select{width:auto;min-width:105px;margin:0;padding:6px;min-height:44px;}
