/* Team identity belongs to the main route, independent of the Players drawer. */
.team-profile-route>.team-sidebar-heading{justify-content:flex-start;justify-self:start;text-align:left;width:100%;margin:0 0 20px}
.team-profile-route>.team-sidebar-heading .team-profile-identity{flex:0 1 auto;text-align:left}
/* Stack keeps the rink above its corresponding metric controls in every tab. */
.plays-events-explorer.explorer-section[data-explorer-layout="stack"] .plays-columns{grid-template-columns:minmax(0,1fr)}
.plays-events-explorer.explorer-section[data-explorer-layout="stack"] .plays-columns>.plays-right{grid-column:1;grid-row:1;position:static;top:auto}
.plays-events-explorer.explorer-section[data-explorer-layout="stack"] .plays-columns>.plays-left{grid-column:1;grid-row:2;max-height:none;overflow:visible}
/* Constrain both direct accordion cards and wrapped event-rule cards. Each card
   scrolls independently while the summary and drag handle stay reachable. */
#gamepad-tray-filter-body .play-filter-content{box-sizing:border-box;min-height:0;overflow-y:hidden}
#gamepad-tray-filter-body .play-filter-content>.play-filter-group,
#gamepad-tray-filter-body .play-filter-content>.play-event-draggable{height:100%;min-height:0;box-sizing:border-box;overflow:hidden}
#gamepad-tray-filter-body .play-filter-content .play-filter-group{min-height:0;box-sizing:border-box;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;overscroll-behavior-y:contain}
#gamepad-tray-filter-body .play-filter-content>.play-event-draggable>.play-filter-group{height:100%;max-height:100%;min-height:0;flex:1 1 auto}
#gamepad-tray-filter-body .play-filter-content .play-filter-group>summary{position:sticky;top:0;z-index:5;background:var(--surface,var(--tone-light))}
#gamepad-tray-filter-body .play-filter-content .play-filter-group>.play-filter-group-body{overflow:visible}

/* Use viewport coordinates rather than right-aligning against a narrow trigger. */
.team-sidebar-picker .team-sidebar-picker-popover.plays-popover-panel{position:fixed;inset:auto;margin:0;box-sizing:border-box;min-width:0;max-width:calc(100vw - 16px);overflow:auto;overscroll-behavior:contain}
.team-sidebar-picker-popover .team-sidebar-picker-list a{overflow-wrap:anywhere}
.team-profile-route .team-sidebar-heading .team-profile-logo{width:100px;height:100px}
/* Equal dimensions for the settings wrapper and its trigger. */
.plays-popover.explorer-settings{display:inline-flex;align-items:center;justify-content:center;align-self:center;flex:0 0 40px;width:40px;height:40px;box-sizing:border-box}
.plays-popover.explorer-settings>button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;min-height:40px;padding:8px;overflow:hidden}
.explorer-section{background:transparent}
.rink-event-details-row{height:52px;min-height:52px;max-height:52px;box-sizing:border-box;display:flex;align-items:center;padding:6px 2px;overflow:hidden;text-align:left}
.rink-event-details-content{display:flex;flex-direction:column;gap:4px;min-width:0;max-width:100%;line-height:16px}
.rink-event-details-type,.rink-event-details-player{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
.rink-event-details-type{font-weight:600}.rink-event-details-player{opacity:.7}
.rink-jersey-labels text{font-family:'PP Mori',sans-serif;fill:#fff;stroke:none}
.rink-jersey-labels rect{stroke:rgb(255 255 255 / .65);stroke-width:.7}
.rink-jersey-labels path{stroke-dasharray:none;vector-effect:non-scaling-stroke}
