/* MultiAdam v265 — final Ground Truth finish. Presentation only. */
:root{--ma265-green:#0f5d3d;--ma265-mint:#dff3e8;--ma265-blue:#e3f0ff;--ma265-purple:#f1e9ff;--ma265-yellow:#fff4d9;--ma265-cream:#f8f5ed;--ma265-ink:#0e1915;--ma265-muted:#76807b;--ma265-line:#e1e6df;--ma265-dark:#0d1714}

/* Typography and shared app density */
body.ma-v265-athlete{background:var(--ma265-cream)!important;color:var(--ma265-ink)!important}
body.ma-v265-athlete .ma-app-page-content{background:var(--ma265-cream)!important}
body.ma-v265-athlete :where(.ma-v22-hub,.ma-v73-shell,.ma-v251-activity-shell,.ma-v194-progress){width:min(calc(100% - 28px),880px)!important;margin-inline:auto!important}
body.ma-v265-athlete :where(.ma-header,.ma-footer){box-shadow:none!important}
body.ma-v265-athlete>.ma-footer{display:none!important}
body.ma-v265-athlete .ma-header .ma-nav{min-height:70px!important;padding-block:8px!important}
body.ma-v265-athlete .ma-header-logo{max-height:44px!important;width:auto!important}
body.ma-v265-athlete :where(.ma-v73-card,.ma-v108-main-chart,.ma-v218-history,.ma-v251-activity-shell>section){box-shadow:none!important;border-color:var(--ma265-line)!important}

/* Athlete home / workout summary */
body.ma-v265-athlete .ma-v108-primary-action{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(170px,auto)!important;align-items:center!important;gap:18px!important;padding:22px!important;border:1px solid #25382f!important;border-radius:21px!important;background:linear-gradient(140deg,#14261f,#0b1713)!important;color:#fff!important;box-shadow:none!important}
body.ma-v265-athlete .ma-v108-primary-action span{color:#55d4aa!important;font-weight:900!important}
body.ma-v265-athlete .ma-v108-primary-action h2{color:#fff!important;font-size:clamp(1.35rem,4vw,2rem)!important;line-height:1.45!important;margin:5px 0!important}
body.ma-v265-athlete .ma-v108-primary-action p{color:#b8c5bf!important;font-size:.78rem!important;line-height:1.8!important}
body.ma-v265-athlete .ma-v108-primary-action .ma-btn{min-height:46px!important;border:0!important;border-radius:14px!important;background:#14b985!important;color:#fff!important;white-space:nowrap!important}
body.ma-v265-athlete .ma-v108-primary-action.is-complete{background:linear-gradient(140deg,#113d2d,#0b281e)!important;border-color:#286249!important}
body.ma-v265-athlete .ma-v108-primary-action.is-complete h2{color:#fff!important}

/* Analytics: compact, color coded and readable */
body.ma-v265-athlete .ma-v108-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important}
body.ma-v265-athlete .ma-v108-kpis article{min-width:0!important;min-height:108px!important;padding:14px!important;border:1px solid var(--ma265-line)!important;border-radius:18px!important;background:#fff!important;box-shadow:none!important}
body.ma-v265-athlete .ma-v108-kpis article:nth-child(1){background:var(--ma265-mint)!important}
body.ma-v265-athlete .ma-v108-kpis article:nth-child(2){background:var(--ma265-purple)!important}
body.ma-v265-athlete .ma-v108-kpis article:nth-child(3){background:var(--ma265-yellow)!important}
body.ma-v265-athlete .ma-v108-kpis article:nth-child(4){background:var(--ma265-blue)!important}
body.ma-v265-athlete .ma-v108-kpis strong{font-size:clamp(1.45rem,4vw,2rem)!important;color:var(--ma265-ink)!important}
body.ma-v265-athlete .ma-v108-kpis :where(span,small){color:#64706a!important;font-size:.7rem!important;line-height:1.65!important}
body.ma-v265-athlete .ma-v108-main-chart{min-height:220px!important;padding:17px!important;border-radius:20px!important;background:#fff!important}

/* Workout history */
body.ma-v265-athlete .ma-v218-history{padding:15px!important;border-radius:21px!important;background:#fff!important}
body.ma-v265-athlete .ma-v218-history-head h2{font-size:1.55rem!important;line-height:1.45!important}
body.ma-v265-athlete .ma-v253-history-tools{margin-block:9px 12px!important}
body.ma-v265-athlete .ma-v253-history-filters{display:flex!important;flex-wrap:wrap!important;overflow:visible!important;gap:5px!important}
body.ma-v265-athlete .ma-v253-history-filters button{min-height:36px!important;flex:1 0 auto!important;padding:6px 10px!important;font-size:.7rem!important}
body.ma-v265-athlete .ma-v218-history-list{gap:7px!important}
body.ma-v265-athlete .ma-v218-history-item{border-radius:16px!important;box-shadow:none!important;overflow:hidden!important}
body.ma-v265-athlete .ma-v218-history-item summary{min-height:76px!important;padding:11px 13px!important;list-style:none!important;gap:10px!important}
body.ma-v265-athlete .ma-v218-history-item summary::-webkit-details-marker{display:none!important}
body.ma-v265-athlete .ma-v218-history-item summary>div{display:grid!important;gap:2px!important;min-width:0!important}
body.ma-v265-athlete .ma-v218-history-item summary strong{font-size:.9rem!important;line-height:1.7!important;overflow-wrap:anywhere!important}
body.ma-v265-athlete .ma-v218-history-item summary :where(small,span){font-size:.66rem!important;line-height:1.65!important}
body.ma-v265-athlete .ma-v218-history-item summary>b{display:grid!important;place-items:center!important;width:30px!important;height:30px!important;flex:0 0 30px!important;border-radius:50%!important;background:#f0f5f1!important;color:var(--ma265-green)!important}
body.ma-v265-athlete .ma-v218-history-item summary span svg{width:14px;height:14px;display:inline-block;vertical-align:middle;margin-inline:4px;fill:none;stroke:currentColor;stroke-width:2}

/* Today view — the reference dark training surface */
body.ma-v265-today,body.ma-v265-today .ma-app-page-content{background:var(--ma265-dark)!important;color:#f5f8f6!important}
body.ma-v265-today .ma-header{background:#0d1714!important;border-color:#26322d!important}
body.ma-v265-today .ma-header :where(a,button){color:#f5f8f6!important}
body.ma-v265-today .ma-lang-switch{background:#17231e!important;border-color:#2a3832!important}
body.ma-v265-today .ma-v22-hub{padding-top:18px!important;padding-bottom:105px!important}
body.ma-v265-today .ma-v22-hub>.ma-v22-hub-head{position:relative!important;min-height:0!important;padding:4px 2px 12px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#fff!important;box-shadow:none!important;overflow:visible!important}
body.ma-v265-today .ma-v22-hub>.ma-v22-hub-head::before,body.ma-v265-today .ma-v22-hub>.ma-v22-hub-head::after{display:none!important}
body.ma-v265-today .ma-v22-hub-head .ma-v20-kicker{color:#64dbb2!important}
body.ma-v265-today .ma-v22-hub-head h1{color:#fff!important;font-size:clamp(1.8rem,5vw,2.6rem)!important}
body.ma-v265-today .ma-v22-hub-head p{color:#9eaaa4!important}
body.ma-v265-today .ma-v22-back-dashboard{color:#b9c7c0!important}
body.ma-v265-today .ma-v22-tabs{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;width:100%!important;max-width:none!important;overflow:visible!important;padding:4px!important;border:1px solid #27352f!important;border-radius:16px!important;background:#17231e!important;gap:4px!important}
body.ma-v265-today .ma-v22-tabs a{display:grid!important;place-items:center!important;min-width:0!important;min-height:38px!important;padding:6px!important;border-radius:12px!important;color:#aeb8b3!important;font-size:.7rem!important}
body.ma-v265-today .ma-v22-tabs a.is-active{background:var(--ma265-green)!important;color:#fff!important;box-shadow:none!important}
body.ma-v265-today .ma-v171-today-unified{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important}
body.ma-v265-today .ma-v171-today-unified>.ma-v22-workout-card.is-large{min-height:280px!important;padding:22px!important;border:1px solid #2a3b33!important;border-radius:21px!important;background:linear-gradient(140deg,#152720,#101d18)!important;color:#fff!important;box-shadow:none!important}
body.ma-v265-today .ma-v171-today-unified>.ma-v22-workout-card.is-large .ma-v22-card-state{color:#58d9ad!important}
body.ma-v265-today .ma-v171-today-unified>.ma-v22-workout-card.is-large h3{margin:auto 0 8px!important;color:#fff!important;font-size:clamp(1.7rem,5vw,2.65rem)!important;line-height:1.25!important}
body.ma-v265-today .ma-v171-today-unified>.ma-v22-workout-card.is-large p{color:#b8c4be!important;line-height:1.8!important}
body.ma-v265-today .ma-v171-today-unified>.ma-v22-workout-card.is-large .ma-v22-card-meta{display:flex!important;gap:12px!important;color:#c8d2cd!important}
body.ma-v265-today .ma-v22-card-meta>span{display:inline-flex!important;align-items:center!important;gap:6px!important}
body.ma-v265-today .ma-v22-card-meta svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body.ma-v265-today .ma-v171-today-unified>.ma-v22-workout-card.is-large .ma-v22-card-link{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:48px!important;margin-top:20px!important;border-radius:14px!important;background:#10b981!important;color:#fff!important}
body.ma-v265-today .ma-v22-empty{border-color:#28362f!important;background:#15211c!important;color:#fff!important}
body.ma-v265-today .ma-v22-empty p{color:#aab5af!important}

/* Onboarding / Start Journey */
body.ma-v265-onboarding{background:var(--ma265-cream)!important}
body.ma-v265-onboarding .ma-v247-shell{width:min(calc(100% - 24px),760px)!important;margin:12px auto 40px!important;padding:18px 20px 84px!important;color:var(--ma265-ink)!important}
body.ma-v265-onboarding .ma-v247-top{padding-bottom:12px!important}
body.ma-v265-onboarding .ma-v247-stage{min-height:0!important;padding:27px 0 18px!important}
body.ma-v265-onboarding .ma-v247-stage h1{font-size:clamp(1.65rem,5vw,2.45rem)!important;line-height:1.55!important;letter-spacing:0!important}
body.ma-v265-onboarding .ma-v247-stage>p{font-size:.8rem!important;line-height:1.9!important;margin:8px 0 20px!important}
body.ma-v265-onboarding .ma-v247-options{gap:8px!important}
body.ma-v265-onboarding :where(.ma-v247-options button,.ma-v247-number-row button,.ma-v247-chips button,.ma-v247-paths button,.ma-v247-dynamic-focus button){border-radius:15px!important;box-shadow:none!important}
body.ma-v265-onboarding .ma-v247-options button{min-height:60px!important;padding:11px 13px!important}
body.ma-v265-onboarding :where(.ma-v247-options button,.ma-v247-number-row button,.ma-v247-chips button,.ma-v247-paths button,.ma-v247-dynamic-focus button).is-selected{border-color:var(--ma265-green)!important;background:var(--ma265-mint)!important;box-shadow:0 0 0 2px rgba(15,93,61,.08)!important;transform:none!important}
body.ma-v265-onboarding .ma-v247-footer{bottom:10px!important;border-radius:16px!important;box-shadow:0 8px 25px rgba(14,52,34,.09)!important}
body.ma-v265-onboarding .ma-v247-primary{min-height:45px!important;border-radius:12px!important;background:var(--ma265-green)!important}

/* Navigation consistency across roles */
:where(.ma-v263-athlete-nav,.ma-v263-coach-report-nav,.ma-v264-coach-nav){max-width:820px!important;border-color:#e6e5df!important;background:rgba(255,255,251,.97)!important;box-shadow:0 -4px 18px rgba(15,65,45,.045)!important}

@media(max-width:760px){
 body.ma-v265-athlete .ma-header .ma-nav{min-height:66px!important;padding:7px 11px!important}
 body.ma-v265-athlete .ma-header .ma-portal-link,body.ma-v265-athlete .ma-header .ma-v62-logout-head{display:none!important}
 body.ma-v265-athlete .ma-v108-primary-action{grid-template-columns:1fr!important;padding:18px!important;gap:13px!important}
 body.ma-v265-athlete .ma-v108-primary-action p{display:block!important}
 body.ma-v265-athlete .ma-v108-primary-action .ma-btn{width:100%!important}
 body.ma-v265-athlete .ma-v108-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.ma-v265-athlete .ma-v108-kpis article{min-height:96px!important;padding:12px!important}
 body.ma-v265-today .ma-v22-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body.ma-v265-today .ma-v171-today-unified{grid-template-columns:1fr!important}
 body.ma-v265-today .ma-v171-today-unified>.ma-v22-workout-card.is-large{min-height:300px!important;padding:20px!important}
 body.ma-v265-onboarding .ma-v247-shell{padding-inline:14px!important}
 body.ma-v265-onboarding .ma-v247-paths{grid-template-columns:1fr!important}
 body.ma-v265-onboarding .ma-v247-paths button{min-height:116px!important}
 body.ma-v265-onboarding .ma-v247-footer{position:static!important;margin-top:12px!important}
}
@media(min-width:761px){
 body.ma-v265-today .ma-v171-today-unified:has(> :only-child){grid-template-columns:minmax(0,500px)!important;justify-content:center!important}
}
@media(max-width:390px){
 body.ma-v265-athlete :where(.ma-v22-hub,.ma-v73-shell,.ma-v251-activity-shell,.ma-v194-progress){width:min(calc(100% - 20px),880px)!important}
 body.ma-v265-athlete .ma-v108-kpis strong{font-size:1.35rem!important}
 body.ma-v265-athlete .ma-v108-kpis article>small{display:block!important}
 body.ma-v265-onboarding .ma-v247-options.cols-2{grid-template-columns:1fr!important}
}
