/* Trainer home: one recent match, a permanent analysis entrance, then history.
   Scoped to the hub; onboarding and the first summary keep their approved layout. */
#coach-overview { max-width: 540px; margin-inline: auto; padding: 22px 18px calc(var(--nav-height, 70px) + max(12px, calc(env(safe-area-inset-bottom, 0px) + 4px)) + 24px);}
#coach-overview .coach-hubbar { grid-template-columns: 48px minmax(0,1fr) auto; gap: 12px; }
#coach-overview .coach-player__identity h1 { font-size: 17px; line-height: 1.3; }
#coach-overview .coach-player__rank-label { color: #a8abb3; font-size: 12px; }
#coach-overview .coach-hubbar__actions { padding: 0; background: none; border: 0; gap: 0; }
#coach-overview .coach-hubbar__summary { font-size: 12px; padding: 0 8px; min-height: 44px; }
#coach-overview .coach-hubbar__summary i { display: none; }
#coach-overview .coach-hubbar__switch { border: 0; width: 44px; min-height: 44px; padding: 0; }
#coach-overview .coach-hubbar__switch i { font-size: 19px; }
#coach-overview .coach-hubbar__switch span { display: none; }
#coach-overview .coach-spotlight__button { position: relative; flex-direction: column; overflow: hidden; background: var(--coach-surface); border: 0; border-radius: 16px; box-shadow: none;}
#coach-overview .coach-spotlight__art { object-fit: contain;}
#coach-overview .coach-spotlight__eyebrow { color: #b5b8c0;}
#coach-overview .coach-spotlight__copy strong { line-height: 1.15; letter-spacing: -.025em; padding-right: 30px; white-space: normal;}
#coach-overview .coach-spotlight__action { position: absolute; background: none; color: #e0e3e9;}
#coach-overview .coach-spotlight__skeleton { border-radius: 16px;}
#coach-overview .coach-hub-deep { display: grid; align-items: center; width: 100%; margin-top: 16px; border: 0; border-radius: 14px; color: var(--coach-on-action); text-align: left; font: inherit; cursor: pointer; transition: background 180ms, transform 240ms cubic-bezier(.16,1,.3,1);}
#coach-overview .coach-hub-deep[hidden] { display: none; }
.coach-hub-deep strong { display: block; font-size: 16px; font-weight: 650; line-height: 1.25; letter-spacing: -.015em; }
.coach-hub-deep small { display: block; font-size: 11px; line-height: 1.4; color: #485363; margin-top: 4px; }
.coach-hub-deep__symbol svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.coach-hub-deep__symbol path { fill: currentColor; stroke: none; }
.coach-hub-deep__arrow { font-size: 25px; font-weight: 400; }
#coach-overview .coach-hub-deep:active { transform: scale(.985); }
#coach-overview .coach-hub-deep:focus-visible { outline: 2px solid white; outline-offset: 4px; }
#coach-overview .coach-match-desk { margin-top: 30px; }
#coach-overview .coach-match-desk__head h2 { font-size: 21px; letter-spacing: -.02em; }
#coach-overview #coach-match-status { font-size: 11px; color: #a1a5ae; }
#coach-overview .coach-match-filters { display: flex; gap: 20px; margin: 14px 0 6px; padding: 0; background: none; border: 0; }
#coach-overview .coach-match-filters[hidden] { display: none; }
#coach-overview .coach-match-filters button { display: flex; gap: 5px; padding: 0; min-height: 44px; background: none; border: 0; border-radius: 0; font: inherit; font-size: 12px; color: #969ba6; }
#coach-overview .coach-match-filters button.is-active { color: #f0f2f6; box-shadow: inset 0 -2px var(--coach-action); }
#coach-overview .coach-match-filters b { font-size: 10px; font-weight: 400; color: #9299a5; background: none; }
#coach-overview .coach-match-list { display: grid; gap: 4px; }
#coach-overview .coach-match-row { position: relative; display: grid; grid-template-columns: 64px minmax(0,1fr) auto 18px; align-items: center; gap: 10px; min-height: 86px; margin: 0; padding: 12px 8px; border: 0; border-radius: 12px; background: transparent; }
#coach-overview .coach-match-row__portrait { width: 64px; height: auto; overflow: visible; border-radius: 0; background: none; }
#coach-overview .coach-match-row__portrait img { display: block; width: 64px; height: 36px; border-radius: 6px; object-fit: contain; }
#coach-overview .coach-match-row__portrait > span { position: static; display: block; background: none; padding: 0; margin-top: 5px; font-size: 9px; line-height: 1.2; text-align: left; color: #aeb5bf; }
#coach-overview .coach-match-row.is-win .coach-match-row__portrait > span { color: #81cda6; }
#coach-overview .coach-match-row.is-loss .coach-match-row__portrait > span { color: #e3a09a; }
#coach-overview .coach-match-row__copy h3 { font-size: 13px; line-height: 1.3; white-space: normal; }
#coach-overview .coach-match-row__copy p { font-size: 10px; line-height: 1.4; color: #a1a6b0; }
#coach-overview .coach-match-row__kda strong { font-size: 11px; font-weight: 500; white-space: nowrap; color: #d5d9e0; }
#coach-overview .coach-match-row__prepare { display: none; }
#coach-overview .coach-match-row__state { width: 18px; min-width: 0; padding: 0; background: none; color: #979fac; }
#coach-overview .coach-match-row__state span { display: none; }
#coach-overview .coach-match-more { min-height: 48px; margin-top: 12px; background: #171a20; color: #d1d7e1; border: 0; font-size: 13px; }
.coach-hub-transition { position: fixed; z-index: 999; object-fit: contain; border-radius: 12px; pointer-events: none; transform-origin: center; }
@media (max-width: 360px) { #coach-overview { padding-inline: 12px; } #coach-overview .coach-hubbar { gap: 8px; } #coach-overview .coach-player__identity h1 { font-size: 15px; } #coach-overview .coach-match-row { gap: 7px; grid-template-columns: 56px minmax(0,1fr) auto 16px; } #coach-overview .coach-match-row__portrait, #coach-overview .coach-match-row__portrait img { width: 56px; } }
@media (prefers-reduced-motion: reduce) { #coach-overview *, .coach-hub-transition { animation: none !important; transition: none !important; } }
#coach-overview .coach-spotlight__art[hidden], #coach-overview .coach-match-desk[hidden] { display: none; }
#coach-overview #coach-match-status:empty { display: none; }
#coach-overview .coach-match-row__portrait > span { inset: auto; background: none !important; }
#coach-overview { font-family: var(--coach-font);}
#coach-overview .coach-hubbar__actions { grid-column: auto; width: auto; display: flex; }
#coach-overview .coach-match-row__kda { display: block; }
#coach-overview .coach-match-row__state { grid-column: 4; }
#coach-overview .coach-match-row__portrait { border: 0; }
#coach-overview .coach-match-row__portrait::after { display: none; }
.coach-hub-history-empty { color: #a1a6b0; font-size: 13px; padding-block: 16px; }
/* Latest match stays above the history without taking over the viewport. */
#coach-overview .coach-spotlight { margin-top: 22px;}
#coach-overview .coach-spotlight__button { display: grid; grid-template-columns: 104px minmax(0,1fr); align-items: center; gap: 14px; min-height: 122px; padding: 16px 14px;}
#coach-overview .coach-spotlight__art { width: 104px; height: auto; aspect-ratio: 256 / 144; border-radius: 8px;}
#coach-overview .coach-spotlight__copy { padding: 0 12px 0 0;}
#coach-overview .coach-spotlight__eyebrow { font-size: 10px; line-height: 1.5;}
#coach-overview .coach-spotlight__copy strong { font-size: 21px; margin-top: 5px; padding: 0;}
#coach-overview .coach-spotlight__copy > span:last-child { font-size: 11px; margin-top: 6px;}
#coach-overview .coach-spotlight__action { width: 20px; height: 20px; right: 8px; bottom: 10px;}
#coach-overview .coach-spotlight__skeleton { height: 122px;}
@media (max-width: 360px) { #coach-overview .coach-spotlight__button { grid-template-columns: 86px minmax(0,1fr); gap: 12px; padding: 14px 12px; } #coach-overview .coach-spotlight__art { width: 86px; } #coach-overview .coach-spotlight__copy strong { font-size: 20px; } }
/* Recent form uses the same available match sample as the history. */
#coach-overview .coach-form { align-items: center; justify-content: space-between; margin-top: 22px; padding: 0 2px 16px; border: 0; border-bottom: 1px solid #24272f; border-radius: 0; background: none; box-shadow: none;}
#coach-overview .coach-form[hidden] { display: none; }
#coach-overview .coach-form__copy { display: flex; flex-direction: column; gap: 5px; }
#coach-overview #coach-form-label { font-size: 11px; color: #a6aebc; }
#coach-overview #coach-form-delta { font-size: 15px; color: #dbe1e9; font-weight: 500; }
#coach-overview #coach-form-result { font-size: 20px; color: #e3e8f0; font-weight: 550; letter-spacing: -.02em; }
#coach-overview .coach-form__strip, #coach-overview .coach-form__context { display: none; }
#coach-overview #coach-form-delta { font-size: 11px; line-height: 1.5; color: #aeb7c6; }
#coach-overview .coach-form { min-height: 0; height: auto;}
/* Outcomes are a compact chronological strip, newest on the right. */
#coach-overview .coach-form { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: 'label rate' 'strip rate'; gap: 9px 22px;}
#coach-overview .coach-form__copy { grid-area: label; }
#coach-overview #coach-form-delta { display: none; }
#coach-overview #coach-form-result { grid-area: rate; font-size: 19px; }
#coach-overview .coach-form__strip { grid-area: strip; display: flex; gap: 4px; align-items: center; width: 100%; min-width: 0; }
#coach-overview .coach-form__strip span { flex: 1 1 0; max-width: 12px; min-width: 2px; height: 14px; border-radius: 3px; }
#coach-overview .coach-form__strip .is-win { background: #65bd92; }
#coach-overview .coach-form__strip .is-loss { background: #d7827c; }
#coach-overview .coach-hub-deep__paid { display: inline-block; margin-bottom: 9px; padding: 3px 7px; border: 1px solid #8995a9; border-radius: 5px; font-size: 10px; line-height: 1.2; color: #414e64; }
#coach-overview .coach-hub-deep small { margin-top: 5px;}
/* Analysis emblem: one selected episode within the layers of a match. */
#coach-overview .coach-hub-deep { grid-template-columns: 48px minmax(0,1fr) 20px; gap: 14px; padding: 20px 18px; background: var(--coach-action);}
#coach-overview .coach-hub-deep__symbol { display: grid; place-items: center; width: 48px; height: 48px; }
#coach-overview .coach-analysis-mark { width: 48px; height: 48px; overflow: visible; fill: none; stroke: #344761; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
#coach-overview .coach-analysis-mark path { fill: none; stroke: inherit; }
#coach-overview .coach-analysis-mark__face { fill: #eef2f8; }
#coach-overview .coach-analysis-mark__back { opacity: .45; }
#coach-overview .coach-analysis-mark__middle { opacity: .7; }
#coach-overview .coach-analysis-mark .coach-analysis-mark__focus { fill: #344761; stroke: none; }
#coach-overview .coach-hub-deep strong { font-size: 18px;}
#coach-overview .coach-hub-deep small { font-size: 10px; line-height: 1.5;}
#coach-overview .coach-analysis-mark__face { animation: coachMarkAssemble 850ms cubic-bezier(.16,1,.3,1) both; }
#coach-overview .coach-analysis-mark__middle { animation: coachMarkAssemble 700ms 80ms cubic-bezier(.16,1,.3,1) both; }
#coach-overview .coach-analysis-mark__focus { animation: coachMarkFocus 1s 180ms ease-out both; }
#coach-overview .coach-hub-deep:active .coach-analysis-mark { transform: translateY(-2px); }
#coach-overview .coach-analysis-mark { transition: transform 250ms cubic-bezier(.16,1,.3,1); }
@keyframes coachMarkAssemble { from { transform: translateY(7px); opacity: 0; } to { transform: translateY(0); } }
@keyframes coachMarkFocus { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 360px) { #coach-overview .coach-hub-deep { gap: 10px; padding-inline: 14px; grid-template-columns: 40px minmax(0,1fr) 18px; } #coach-overview .coach-hub-deep__symbol, #coach-overview .coach-analysis-mark { width: 40px; height: 40px; } #coach-overview .coach-hub-deep strong { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { #coach-overview .coach-analysis-mark, #coach-overview .coach-analysis-mark path { animation: none !important; transition: none !important; } }

/* Report availability never changes the row geometry or navigation affordance. */
#coach-overview .coach-match-row.has-deep-analysis { border: 0; background: transparent; margin: 0; padding: 12px 8px; }
#coach-overview .coach-hub-analysis-marker { display: inline-flex; vertical-align: middle; margin-left: 7px; width: 15px; height: 15px; color: #bac8de; }
#coach-overview .coach-hub-analysis-marker svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
/* A muted violet keyline marks reports without moving the content. */
#coach-overview .coach-match-row.has-deep-analysis,
#coach-overview .coach-spotlight__button.has-deep-analysis {
  box-shadow: inset 0 0 0 1px #75688f;
}
#coach-overview .has-deep-analysis .coach-hub-analysis-marker { color: #ac9bc9; }
/* Two analysis paths retain a shared match identity and equal touch targets. */
#coach-match-detail .coach-analysis-choice { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; font-family: var(--coach-font); max-width: 500px; margin-inline: auto; }
.coach-choice-identity { display: flex; align-items: center; gap: 16px; margin: 0 0 12px; padding-block: 8px 16px; }
.coach-choice-portrait { display: block; width: 112px; height: 63px; flex: none; object-fit: cover; border-radius: 7px; }
.coach-choice-portrait[hidden] { display: none; }
.coach-choice-identity__copy { min-width: 0; }
.coach-choice-identity__copy > span { font-size: 12px; }
.coach-choice-win { color: #81cda6; }
.coach-choice-loss { color: #e3a09a; }
.coach-choice-identity h2 { margin: 6px 0; color: #edf0f5; font-size: 22px; line-height: 1.25; letter-spacing: -.025em; }
.coach-choice-identity p { margin: 0; font-size: 12px; color: #a8afbb; }
.coach-choice-option { display: grid; grid-template-columns: 38px minmax(0,1fr) 20px; gap: 14px; align-items: center; width: 100%; padding: 22px 18px; min-height: 94px; border: 1px solid #333843; border-radius: 14px; background: #14171c; color: #e1e6ed; text-align: left; font: inherit; cursor: pointer; transition: background 180ms ease; }
.coach-choice-option--deep { border-color: #75688f; background: transparent; }
.coach-choice-symbol { display: grid; place-items: center; color: #a9b5c7; }
.coach-choice-symbol svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.coach-choice-option--deep .coach-choice-symbol { color: #b6a4d1; }
.coach-choice-option__copy strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; }
.coach-choice-option__copy small { display: block; font-size: 11px; color: #acb3c1; line-height: 1.5; margin-top: 5px; }
.coach-choice-status { display: block; color: #c7b9da; font-size: 11px; margin-top: 7px; }
.coach-choice-arrow { font-size: 20px; color: #aeb7c7; }
.coach-choice-option:focus-visible { outline: 2px solid #c0b0d8; outline-offset: 4px; }
.coach-choice-option:active { background: #252a33; }
@media(max-width:360px) { .coach-choice-option { padding: 18px 12px; gap: 10px; grid-template-columns: 32px minmax(0,1fr) 18px; } .coach-choice-option__copy strong { font-size: 16px; } }
@media(prefers-reduced-motion:reduce) { .coach-choice-option { transition: none; } }

/* Pricing continues the approved match choice without a competing hero panel. */
.coach-offers { max-width: 500px; margin: 20px auto; font-family: var(--coach-font); }
.coach-offers h2 { font-size: 25px; letter-spacing: -.02em; margin: 0 0 10px; color: #edf0f5; }
.coach-offers-intro { color: #acb3c1; font-size: 14px; line-height: 1.5; margin: 0 0 24px; }
.coach-offer { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px 12px; padding: 20px; margin-bottom: 12px; border: 1px solid #333843; border-radius: 14px; background: #14171c; }
.coach-offer--bundle { border-color: #75688f; background: transparent; }
.coach-offer h3 { margin: 0; font-size: 17px; color: #edf0f5; }
.coach-offer-copy p { margin: 6px 0 0; color: #acb3c1; font-size: 12px; line-height: 1.5; }
.coach-offer-price { font-size: 23px; color: #edf0f5; white-space: nowrap; letter-spacing: -.02em; }
.coach-offer > button { grid-column: 1 / -1; width: 100%; min-height: 44px; }
.coach-offers-note { color: #acb3c1; font-size: 12px; line-height: 1.6; margin: 16px 2px 0; }

.coach-offer--first { border-color: #8c7aa8; }
.coach-offer--first .coach-offer-copy p { color: #c9b9df; }
.coach-offer-price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.coach-offer-old-price { color: #acb3c1; font-size: 14px; font-weight: 400; text-decoration-thickness: 1px; }
.coach-offer-price strong { font-size: inherit; font-weight: 650; }
.coach-offer--first .coach-offer-price strong { color: #e0d3ee; }

@media(max-width:360px){.coach-choice-identity{gap:12px}.coach-choice-portrait{width:88px;height:50px}.coach-choice-identity h2{font-size:19px}}
