/* BETRI website palette. Light-only appearance; text and controls use paired contrast tokens. */
/* Automatic training load uses theme tokens for legible chart labels. */
.load-history-panel{--load-ctl:#2170a2;--load-atl:#9561b0;--load-tsb:#a84b20}.load-chart-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.load-chart-controls .load-sport-tabs{margin:0}.load-range-tabs{display:flex;gap:4px}.load-current-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0}.load-current-values>div{display:flex;flex-direction:column;gap:6px;padding:14px 16px;background:var(--soft);border-radius:10px}.load-current-values span{font-size:14px;color:var(--muted)}.load-current-values strong{font-size:28px;line-height:1.2;font-variant-numeric:tabular-nums}.load-value-0{color:var(--load-ctl)}.load-value-1{color:var(--load-atl)}.load-value-2{color:var(--load-tsb)}.load-history-panel .load-curve-legend{font-size:14px}.load-line-0{stroke:var(--load-ctl);border-color:var(--load-ctl)!important}.load-line-1{stroke:var(--load-atl);border-color:var(--load-atl)!important}.load-line-2{stroke:var(--load-tsb);border-color:var(--load-tsb)!important}.load-path{fill:none;stroke-width:2.6;stroke-linejoin:round;stroke-linecap:round}.load-history-chart text{fill:var(--muted);font-size:14px}.load-grid{stroke:var(--line)}.load-zero{stroke:var(--input-line);stroke-dasharray:4 4}.load-day-hit{fill:transparent}.load-day-hit:hover{fill:var(--ink);fill-opacity:.06}.load-history-panel .load-method-note summary{color:var(--muted);font-size:14px}.load-history-panel a{color:var(--accent-ink)}
@media(max-width:700px){.load-chart-controls{align-items:stretch;gap:12px}.load-range-tabs{width:100%}.load-chart-controls .load-sport-tabs{gap:5px}.load-chart-controls .load-sport-tabs button{font-size:14px;min-height:44px;padding:8px 10px}.load-current-values{gap:7px}.load-current-values>div{padding:12px 8px}.load-current-values strong{font-size:23px}.load-current-values span{font-size:14px}.load-history-panel .load-curve-legend{gap:10px}.load-history-panel .load-history-chart{min-height:150px}}
:root{color-scheme:light;--navy:#15182f;--ink:#252253;--muted:#69647d;--orange:#ff713f;--accent-ink:#9b3b19;--line:#d8d2e2;--border:var(--line);--input-line:#91879f;--paper:#f8f6f3;--surface:#fff;--soft:#eeebf4;--accent-soft:#f5dfd0;--focus:#a53c18;--positive:#276b4c;--positive-bg:#e4f1e9;--negative:#9c302d;--negative-bg:#ffebeb;--font:Arial,Helvetica,sans-serif}
body{font-size:16px;background:var(--paper);color:var(--ink)}h1,h2,h3,.number,.wordmark{font-family:var(--font)}
.sidebar{background:var(--navy);color:#d5d1e3;overflow-y:auto}.sidebar .brand{padding:0 0 24px;align-self:center}.moje-brand{width:165px;max-width:100%;align-items:center;gap:12px;text-align:center}.moje-brand img{width:100%;height:auto}.moje-brand span{display:block;width:100%;font-size:14px;line-height:1.4;letter-spacing:.14em;color:#fff;text-align:center}.sidebar .brand small{font-size:10px;letter-spacing:.08em;text-align:center;color:#c5c3d7}.nav-section{color:#bcb5d1;font-size:11px}.nav-btn{font-size:14px;min-height:44px}.nav-btn.active{background:#34304f;color:#fff}.nav-btn.active .icon{color:#ffb094}.sidebar-foot a{color:#c5c3d7;font-size:13px}.sidebar-foot .club{font-size:13px}.login-story p{color:#d5d1e3}
.topbar,.panel,.stat,.athlete-card,.connector-card,.exercise-card,.week-calendar,.month-day,.swimmer,.timer-control,.roster-pick label,.login-page,dialog,.modal-head,.daily-gym-exercise,.swim-angle-card,.hub-shortcut,.athlete-switcher,.result-list button,.lab-comparison-tabs button,.load-sport-tabs button{background:var(--surface);color:var(--ink);border-color:var(--line)}
.btn{font-size:14px;background:var(--orange);color:#171326;min-height:44px}.btn.dark{background:var(--navy);color:#fff}.btn.secondary,.icon-btn,.selector,.swim-playback-toolbar select{background:var(--surface);color:var(--ink);border-color:var(--input-line)}.btn.ghost{background:transparent;color:var(--ink)}.btn.danger{background:var(--negative-bg);color:var(--negative);border-color:var(--line)}.icon-btn{min-width:40px;min-height:40px}
input,select,textarea{background:var(--surface);color:var(--ink);border-color:var(--input-line);font-size:16px}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}.muted,.note,.form-note,.stat-bottom,.stat-top,.date-line,.user-role,.athlete-switcher small,.profile-row>span,.workout-info p,.panel-head p,.card-facts span,.exercise-card-body p{color:var(--muted)}.tiny{font-size:12px}.small,.note,.form-note,.date-line,.user-name{font-size:14px}.user-role{font-size:12px}.orange{color:var(--accent-ink)}
.search-btn,.search-btn kbd,.checkin-note,.empty-icon,.detail-block,.result-list button:hover,.athlete-results button[aria-current=true],.month-day.outside,.exercise-img,.week-progress{background:var(--soft);color:var(--ink);border-color:var(--line)}.search-btn,.selector{font-size:14px}.notice,.demo-banner,.onboarding,.goal,.badge.orange,.message-bubble.mine{background:var(--accent-soft);color:var(--ink);border-color:var(--line)}.section-link,.helper-link,.goal-hero h2,.energy-main>strong,.catalogue-total strong,.stat .value,.breadcrumb strong{color:var(--ink)}
.badge.green,.badge.completed,.pill.green{background:var(--positive-bg);color:var(--positive)}.badge.red,.inline-error{color:var(--negative)}.badge.draft,.badge.published,.badge.partial,.badge.missed,.badge.cancelled{background:var(--soft);color:var(--ink)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.conversation-row{color:var(--ink)}.conversation-row small{color:var(--muted)}.conversation-row.selected{background:var(--soft);border-color:var(--line)}.message-form{background:var(--surface);border-color:var(--line)}
@media(max-width:700px){.main .topbar .top-tools{gap:6px}.nav-btn{min-height:44px}.sidebar .brand{padding-bottom:18px}.moje-brand{width:165px}.sidebar-foot{padding-top:16px}}
/* The goal banner keeps its own dark surface in the light theme. */
.goal-hero h2{color:#fff}.goal-hero .eyebrow{color:#ffb094}
.conversation-thread .message-form{background:var(--surface);border-color:var(--line)}.inbox-filters label{color:var(--muted);font-size:14px}.unread-badge{background:#ff713f;color:#171326;font-size:12px}.message-meta{color:var(--muted)}

/* Shared chrome and controls pair their text with the actual component surface. */
.footer-caption{color:var(--muted);font-size:12px}.modal-footer{background:var(--surface);color:var(--ink)}
.day-head.today .day-num{color:#171326}.calendar-view-tabs{background:var(--soft)}

.avatar{background:var(--soft);color:var(--ink)}
