/* ===== Flow & Event Stability Batch ===== */

/* Home: content should flow naturally rather than being forced into a viewport-height box. */
.template-home-screen,.template-home-dashboard,.flow-home-audited{overflow:visible!important}
.template-home-dashboard{height:auto!important;min-height:calc(100dvh - 100px)!important;max-height:none!important}
.template-home-hero{grid-template-columns:minmax(0,1fr) minmax(230px,.58fr)!important}
.template-hero-athlete{display:none!important}
.template-hero-visual{min-width:0!important;justify-content:center!important;padding:14px 22px!important}
.flow-hero-eventmark{position:relative;z-index:2;width:min(280px,100%);padding:20px 18px;border:1px solid rgba(91,199,255,.24);border-radius:14px;background:linear-gradient(145deg,rgba(8,30,47,.90),rgba(5,19,31,.82));box-shadow:0 18px 46px rgba(0,0,0,.30),inset 0 1px rgba(255,255,255,.04);text-align:left}
.flow-hero-eventmark small{display:block;font-size:8px;letter-spacing:.16em;font-weight:950;color:#69d4ff}.flow-hero-eventmark strong{display:block;margin-top:8px;font-size:20px;line-height:1.1;color:#f3f9fc;overflow-wrap:anywhere}.flow-hero-eventmark span{display:block;margin-top:8px;font-size:9px;line-height:1.5;color:#8eabb9;overflow-wrap:anywhere}
.template-dashboard-alerts{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important}
.template-dashboard-alerts>*{min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.35!important;text-align:center!important}
.template-home-decks{align-items:stretch!important}
.template-home-decks .home-deck{min-height:0!important;height:auto!important;max-height:none!important}
.template-home-decks .deck-content{min-height:190px!important;max-height:none!important;height:auto!important;overflow:auto!important}
.template-home-utilities{align-items:stretch!important}
.template-utility-card{min-width:0!important;overflow:hidden!important}
.template-utility-card>header{flex-wrap:wrap!important;align-items:flex-start!important}
.template-utility-card>header>div{min-width:0!important}.template-utility-card>header h3{overflow-wrap:anywhere!important;line-height:1.25!important}.template-utility-card>header button{white-space:normal!important;text-align:right!important;line-height:1.3!important}
.template-list-row{min-width:0!important;min-height:52px!important;align-items:start!important;grid-template-columns:32px minmax(0,1fr) auto!important}
.template-list-row span{min-width:0!important}.template-list-row strong,.template-list-row small{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;line-height:1.35!important}.template-list-row em{align-self:center!important;white-space:nowrap!important}
.template-mini-metric{min-width:0!important}.template-mini-metric small,.template-mini-metric strong,.template-mini-metric span{min-width:0!important;overflow-wrap:anywhere!important}
.template-quick-grid button{min-width:0!important;white-space:normal!important;line-height:1.35!important}
.template-hero-chips button:disabled{opacity:.55;cursor:default}

/* Event scoreboard: stable DOM updates should not visually flash. */
.template-live-leaderboard .uls-row,#liveScoreboard .uls-row{transition:none!important;animation:none!important;will-change:auto!important}
.template-live-leaderboard .uls-row.changed,#liveScoreboard .uls-row.changed{background:transparent!important;transform:none!important}
.template-live-leaderboard .uls-list{max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain!important}
.template-live-leaderboard .uls-name strong,.template-live-leaderboard .uls-name small{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.25!important}

/* Live viewer and commentary: readable, no clipped commentary lines. */
.template-live-arena [data-track-runner]{transition:none!important}
.template-live-commentary{min-height:180px!important;overflow:hidden!important;grid-template-columns:138px minmax(0,1fr)!important}
.template-live-commentary .matchday-commentator{min-width:0!important}
.template-live-commentary .matchday-call{min-width:0!important;min-height:168px!important;max-height:230px!important;padding:9px 12px!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important}
.template-commentary-feed{min-width:0!important}
.template-commentary-line{grid-template-columns:112px minmax(0,1fr)!important;gap:12px!important;padding:10px 11px!important;min-width:0!important}
.template-commentary-line small{font-size:9px!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:anywhere!important}
.template-commentary-line p{font-size:12px!important;line-height:1.55!important;letter-spacing:0!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important}
.template-commentary-line.latest p{font-size:13px!important;color:#f5f9fc!important}

/* Event exits remain visible even though Event Day hides the normal navigation rail. */
.flow-event-exit{min-height:38px!important;padding:0 13px!important;white-space:nowrap!important;flex:0 0 auto!important}
.flow-event-exit.home-return{border-color:rgba(91,199,255,.35)!important;background:#0d2b40!important;color:#dff5ff!important}
.flow-event-exit.event-return{border-color:rgba(88,205,174,.34)!important;background:#103228!important;color:#bcebd8!important}
.flow-overview-home{margin-left:auto!important;align-self:flex-start!important}
.event-day-brandline{position:relative!important;gap:12px!important}

/* Athlete rating: give the assessment range, development row and facts their own space. */
.premium-athlete-profile .profile-hero{grid-template-columns:166px minmax(0,1fr) minmax(240px,300px)!important}
.premium-athlete-profile .premium-rating-card.flow-rating-card{width:100%!important;min-width:0!important;max-width:none!important;overflow:hidden!important;align-items:stretch!important;justify-content:center!important;gap:6px!important;padding:15px 16px!important;text-align:left!important}
.premium-athlete-profile .flow-rating-card>small{width:auto!important;text-align:left!important;white-space:normal!important}
.premium-athlete-profile .flow-rating-card>strong.assessment-range{display:block!important;width:100%!important;max-width:100%!important;font-size:clamp(30px,3.2vw,44px)!important;line-height:1!important;text-align:left!important;white-space:nowrap!important;letter-spacing:-.045em!important}
.premium-athlete-profile .flow-rating-card .profile-development-line{width:100%!important;display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:5px 8px!important;margin:3px 0 0!important;padding-top:8px!important;border-top:1px solid rgba(255,255,255,.10)!important;min-width:0!important}
.premium-athlete-profile .flow-rating-card .profile-development-line>small{width:auto!important;flex:1 1 auto!important;text-align:left!important;white-space:normal!important}
.premium-athlete-profile .flow-rating-card .profile-development-line>.development-grade{flex:0 0 auto!important}
.premium-athlete-profile .flow-rating-card .profile-development-line>em{flex:1 0 100%!important;max-width:100%!important;font-size:8px!important;line-height:1.35!important;font-style:normal!important;color:#7f9daa!important;white-space:normal!important;overflow-wrap:anywhere!important}
.premium-athlete-profile .flow-rating-card>.assessment-confidence{width:100%!important;max-width:100%!important;justify-content:flex-start!important;margin:0!important;white-space:normal!important;line-height:1.3!important;text-align:left!important}
.premium-athlete-profile .flow-rating-card .premium-rating-facts{width:100%!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin-top:5px!important}
.premium-athlete-profile .flow-rating-card .premium-rating-facts>div{min-width:0!important}.premium-athlete-profile .flow-rating-card .premium-rating-facts strong{white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.2!important}

.flow-empty-coach-history{padding:10px 11px!important;border:1px dashed rgba(91,199,255,.22)!important;border-radius:8px!important;background:rgba(8,27,42,.45)!important;color:#8ea9b8!important}

@media(max-width:1180px){
 .template-home-utilities{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .premium-athlete-profile .profile-hero{grid-template-columns:132px minmax(0,1fr) minmax(220px,260px)!important}
}
@media(max-width:900px){
 .template-home-hero{grid-template-columns:1fr!important}.template-hero-visual{display:flex!important;min-height:90px!important;padding:4px 0!important}.flow-hero-eventmark{width:100%!important;max-width:none!important;padding:12px 14px!important}.template-track-lines{opacity:.4}
 .template-home-utilities{grid-template-columns:1fr 1fr!important}
 .template-live-commentary{grid-template-columns:118px minmax(0,1fr)!important}.template-commentary-line{grid-template-columns:95px minmax(0,1fr)!important}
 .premium-athlete-profile .profile-hero{grid-template-columns:132px minmax(0,1fr)!important}.premium-athlete-profile .flow-rating-card{grid-column:1/-1!important;width:100%!important;max-width:none!important}
}
@media(max-width:700px){
 .template-home-utilities{grid-template-columns:1fr!important}.template-list-row{grid-template-columns:30px minmax(0,1fr)!important}.template-list-row em{display:none!important}
 .template-live-commentary{grid-template-columns:1fr!important;min-height:170px!important}.template-live-commentary .matchday-commentator{display:none!important}.template-live-commentary .matchday-call{min-height:160px!important;max-height:260px!important}.template-commentary-line{grid-template-columns:1fr!important;gap:4px!important}.template-commentary-line p{font-size:12px!important}.template-commentary-line.latest p{font-size:13px!important}
 .flow-event-exit{min-height:36px!important;font-size:8px!important;padding:0 9px!important}.flow-overview-home{width:100%!important;margin-top:8px!important}
 .premium-athlete-profile .profile-hero{grid-template-columns:84px minmax(0,1fr)!important}.premium-athlete-profile .flow-rating-card{grid-column:1/-1!important;padding:11px 12px!important}.premium-athlete-profile .flow-rating-card>strong.assessment-range{font-size:30px!important}.premium-athlete-profile .flow-rating-card .premium-rating-facts{grid-template-columns:1fr 1fr!important}
}
/* ===== End Flow & Event Stability Batch ===== */
