/* One replay controller in the header; reports never reserve a video column. */
.training-header{position:relative;display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-width:0;margin-bottom:18px;align-items:start}
.training-header-main{min-width:0}
.training-header .training-pagehead{margin-bottom:16px;gap:14px}
.training-header .training-context-bar{display:flex;flex-wrap:wrap;gap:12px;min-width:0;align-items:end}
.training-header .training-context-bar .filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) max-content;gap:12px;align-items:end;width:100%;min-width:0;margin:0}
.training-header .filters>label,.training-header .rally-selector-field{min-width:0;max-width:none;gap:7px}
.training-header .filters select,.training-header .top-rally-selector{width:100%;min-width:0;max-width:none}
.training-header .filters select,.training-header .top-rally-selector>summary,.training-header #reset-filters{box-sizing:border-box;min-height:40px;height:40px}
.training-header .top-rally-selector>summary{display:flex;align-items:center;justify-content:space-between;gap:8px}
.training-header .top-rally-selector>summary::after{float:none;margin-left:0}
.training-header .top-rally-selector>summary>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.training-header #identity-scope{grid-column:1/-1}
.training-header .training-context-bar:has(.identity-scope:not([hidden])) .filters>label{min-width:0}
.training-header #reset-filters{white-space:nowrap;align-self:end}
.training-header .training-replay-show{position:absolute;top:0;right:0;margin:0;min-height:44px}
/* Hidden replay restores from the same upper-right header corner. */
.training-header-main:has(#training-replay-show:not([hidden])) .training-pagehead{display:grid;grid-template-columns:minmax(0,1fr) 144px;grid-template-rows:minmax(44px,auto) auto auto;align-items:end;gap:4px 14px}
.training-header-main:has(#training-replay-show:not([hidden])) .training-pagehead>div{display:contents}
.training-header-main:has(#training-replay-show:not([hidden])) .training-pagehead .eyebrow{grid-column:1;grid-row:1;align-self:start;margin:0;overflow-wrap:anywhere}
.training-header-main:has(#training-replay-show:not([hidden])) .training-pagehead h1{grid-column:1;grid-row:2;margin:0}
.training-header-main:has(#training-replay-show:not([hidden])) .training-pagehead>button{grid-column:2;grid-row:2;justify-self:end}
.training-header-main:has(#training-replay-show:not([hidden])) .training-pagehead .subtitle{grid-column:1/-1;grid-row:3;margin:0}
#training-stage{display:block;min-width:0}
#training-stage>#report-body{min-width:0;width:100%}
#training-replay-home{display:contents}
.training-header:has(#training-replay-home>.training-replay.is-docked:not(.is-expanded):not([hidden]))>#training-replay-home{display:block;min-width:0;width:min(100%,560px);justify-self:end}
#training-replay-home>.training-replay.is-docked:not(.is-expanded){position:relative;inset:auto!important;width:100%!important;height:clamp(280px,calc(56.25vw + 88px),410px)!important;min-width:0;min-height:0;max-width:none;max-height:none;box-shadow:none;touch-action:auto;z-index:40}
#training-replay-home>.is-docked .training-replay-resize{display:none}
#training-replay-home>.is-docked #training-replay-header{cursor:default}
#training-recorded-host,#training-forecast-host,#training-reachability-pane{min-width:0;width:100%}
#training-reachability-forecasts{margin-top:18px;border:1px solid #31526a;border-radius:12px;padding:12px}
#training-reachability-forecasts>summary{cursor:pointer;min-height:36px;font-weight:600}
@media(min-width:1100px) and (min-height:560px){
 .training-header:has(#training-replay-home>.training-replay.is-docked:not(.is-expanded):not([hidden])){grid-template-columns:minmax(0,1fr) clamp(360px,30vw,430px);column-gap:18px}
 .training-header:has(#training-replay-home>.training-replay.is-docked:not(.is-expanded):not([hidden]))>#training-replay-home{width:100%}
 #training-replay-home>.training-replay.is-docked:not(.is-expanded){height:360px!important}
}
/* Compact labels may hide; the shared placement icons remain visible. */
#training-replay .replay-icon-button .pip-window-icon,#training-replay .replay-icon-button .pip-minimize-icon{display:block}
/* The shared PIP keeps every action reachable at narrow dock widths. */
@container (max-width:400px){
 #training-replay-home #training-replay-header{flex-wrap:wrap}
 #training-replay-home .replay-ident{flex-basis:100%;max-width:none}
 #training-replay-home .replay-top-tools{width:100%;min-width:0;margin-left:0;justify-content:space-between;flex-wrap:wrap}
 #training-replay-home .replay-top-tools>.replay-icon-button,
 #training-replay-home .replay-view-choice button,
 #training-replay-home .replay-more>summary{min-width:44px;min-height:44px}
}
@media(max-width:760px){
 #training-replay-home>.training-replay.is-docked:not(.is-expanded){height:340px!important}
 .training-header .training-context-bar .filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .training-header .filters select,.training-header .top-rally-selector>summary,.training-header #reset-filters{height:44px;min-height:44px}
 .training-header .training-context-bar:has(.identity-scope:not([hidden])) .filters select{height:44px}
 .training-header .training-context-bar:has(.identity-scope:not([hidden])) .filters>label{min-width:0}
 .training-header #reset-filters{width:100%}
}
@media(max-width:1399px),(max-height:559px){
 body[data-page=training] section[data-view=training].has-training-sidebar{display:block}
}

#report-tabs.training-navigation-attention .book-nav-surface,#report-tabs.training-navigation-attention .training-nav-toggle{animation:training-navigation-cue 900ms ease-out both}
@keyframes training-navigation-cue{0%,100%{box-shadow:0 0 0 0 transparent}30%{box-shadow:0 0 0 3px #69b9ff,0 0 22px #469fff50}}
@media(prefers-reduced-motion:reduce){#report-tabs.training-navigation-attention .book-nav-surface,#report-tabs.training-navigation-attention .training-nav-toggle{animation:none}}
