:root {
  --bg: #f3f5f3;
  --surface: #ffffff;
  --surface-2: #f5f7f6;
  --surface-3: #e8eeeb;
  --line: #dce4df;
  --line-soft: #e8eeea;
  --text: #1b2926;
  --muted: #64736e;
  --soft: #3d514a;
  --good: #227750;
  --warn: #a86b11;
  --bad: #b94248;
  --radius: 8px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html, body { background: var(--bg); }
body { color: var(--text); }
button, input, select, textarea { letter-spacing: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
input[type="checkbox"], input[type="range"] { accent-color: var(--brand); }
.muted, .tiny { color: var(--muted); }
.section-label, label { color: var(--muted); font-size: .75rem; letter-spacing: .04em; }
.section-label { display: inline-block; }
h2, h3 { letter-spacing: 0; }
.card h3, .page-head h3 { font-size: 1.05rem; line-height: 1.25; }
.page-head h2, .coach-page-head h2, .workspace.athlete-mode .view:not(#appView) > .page-head h2 {
  font-size: clamp(1.45rem, 5vw, 2rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}
.page-head p { margin-top: 5px; line-height: 1.4; font-size: .9rem; }

.auth { background: #e9efeb; }
.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 58px rgba(24, 49, 37, .1);
  padding: clamp(22px, 5vw, 32px);
}
.auth h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); font-weight: 760; line-height: 1.1; letter-spacing: 0; text-transform: none; }
.auth-subtitle { font-size: .93rem; }
.brand-mark {
  border-radius: 7px;
  background: var(--brand);
  color: #18241f;
  box-shadow: none;
}
.brand-mark.has-logo-image { background: transparent; overflow: hidden; }
.brand-mark.has-logo-image img { width: 100%; height: 100%; object-fit: contain; }
#brandColorHex { width: 72px; height: 42px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; }
.brand-row strong { font-size: 1.05rem; }
.role-switch { background: var(--surface-2); border-color: var(--line); border-radius: 7px; }
.role-switch button, .segmented button, .tab-row button, .chip { border-radius: 5px; }
.role-switch button.active, .segmented button.active, .tab-row button.active, .chip.active {
  color: var(--text);
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 1px 3px rgba(19, 43, 30, .08);
}

.workspace, .workspace.active, .workspace.active.athlete-mode { max-width: none; width: 100%; padding: 0; gap: 0; }
.workspace.active { grid-template-columns: minmax(0, 1fr); }
.mobile-shell {
  max-width: none;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.topbar {
  min-height: 66px;
  padding: 10px clamp(16px, 4vw, 36px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.topbar .brand-mark { width: 38px; height: 38px; font-size: .88rem; }
.topbar .brand-row strong { font-size: .95rem; }
.topbar .brand-row .tiny { font-size: .72rem; }
.top-actions { gap: 6px; }
.top-actions .badge { background: var(--surface-2); }
main { padding: 24px clamp(16px, 4vw, 36px) calc(96px + env(safe-area-inset-bottom)); overflow: visible; }
.view.active { width: min(100%, 1180px); margin: 0 auto; }
.page-head { margin: 0 0 22px; gap: 14px; }
.page-head > .secondary, .page-head > .ghost { width: auto; justify-self: start; }
.profile-page-head { margin-bottom: 16px; }
.profile-page-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile-page-title .ghost { width: 38px; min-width: 38px; padding: 0; font-size: 0; }
.profile-page-title .ghost::before { content: "←"; font-size: 1.3rem; }
.profile-page-title p { display: none; }

.card, .auth-card, .mobile-shell, .side-panel, .phone-preview {
  box-shadow: none;
}
.card, .meal, .app-meal, .app-exercise-card, .training-plan-switcher, .resource-card,
.home-meal-preview, .home-action, .home-quick-link, .shortcut-card, .date-card,
.training-day-row button, .info-tile, .compact-stat, .coach-metric, .photo-box,
.protocol-item, .inline-form, .empty, .list-button, .action, .food-row,
.focus-summary, .series-editor-row, .nutrition-preview, .food-search-result {
  border-radius: 8px;
  box-shadow: none;
}
.card { background: #fff; border: 1px solid var(--line); padding: clamp(16px, 3vw, 22px); }
.stack { gap: 14px; }
.grid, .coach-dashboard-grid { gap: 14px; }
.list > *, .action-list > * { min-width: 0; }
.row { align-items: center; }
.badge {
  border-radius: 5px;
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--soft);
  font-size: .73rem;
  font-weight: 700;
}
.badge.good { background: #e8f4eb; color: var(--good); border-color: #c9e4d2; }
.badge.warn { background: #fff4df; color: var(--warn); border-color: #f4dfba; }
.badge.bad { background: #fdeced; color: var(--bad); border-color: #f2cbd0; }
.primary, .secondary, .ghost, .icon-btn, .icon-action, .start-workout {
  border-radius: 7px;
  box-shadow: none;
  font-weight: 700;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.primary { background: var(--brand); color: #18241f; }
.primary:hover { filter: brightness(.92); }
.secondary { background: var(--text); color: #fff; border: 1px solid var(--text); }
.secondary:hover { background: #30433b; }
.ghost, .icon-btn, .icon-action { background: #fff; color: var(--soft); border-color: var(--line); }
.ghost:hover, .icon-btn:hover, .icon-action:hover { background: var(--surface-2); border-color: #bccbc2; }
.input, .select, textarea {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
  border-radius: 6px;
}
.input::placeholder, textarea::placeholder { color: #8b9a93; }
.input:focus, .select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .13); }
.filter-row { margin-top: 0; }
.food-search-result { background: #fff; }
.nutrition-preview { background: var(--surface-2); }
.swatch { border-radius: 6px; }
.swatch.active { border-color: var(--text); outline: 2px solid #fff; outline-offset: -4px; }
.modal { background: #fff; border-color: var(--line); border-radius: 8px; box-shadow: 0 30px 90px rgba(12, 30, 23, .22); }
.overlay { background: rgba(16, 32, 25, .52); }
.toast { background: var(--text); color: #fff; border-radius: 6px; }

.coach-metrics { gap: 10px; }
.coach-metric { min-height: 110px; background: #fff; border: 1px solid var(--line); padding: 17px; }
.coach-metric > span, .coach-metric small { color: var(--muted); }
.coach-metric strong { font-size: clamp(1.55rem, 4vw, 2.15rem); }
.coach-metric.attention { background: #fff8ef; border-color: #f2dac2; }
.coach-metric.attention strong { color: #a45929; }
.coach-queue-card, .coach-focus-card { align-content: start; }
.coach-queue-item, .athlete-directory-card { background: #fff; }
.athlete-directory-card { min-width: 0; max-width: 100%; }
.coach-queue-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.coach-queue-item .athlete-line { flex: none; min-width: 0; }
.athlete-line .avatar { flex: 0 0 46px; white-space: nowrap; }
.athlete-line > span:last-child { display: block; min-width: 0; flex: 1; }
.athlete-line > span:last-child strong, .athlete-line > span:last-child p { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coach-queue-item:hover, .athlete-directory-card:hover { border-color: #aebfb4; background: #fbfcfb; }
.queue-status { margin-left: auto; }
.focus-summary { background: var(--surface-2); border-color: var(--line); }
.focus-summary > div + div { border-left-color: var(--line); }
.profile-card { background: #fff; }
.avatar { border-radius: 6px; background: #e2eae4; color: #375b4a; border-color: #d2ded4; }
.progress { background: #edf1ee; }
.progress i { background: var(--brand); }
.info-tile, .compact-stat, .checkin-stat, .meal, .food-row, .list-button, .action,
.series-editor-row, .inline-form { background: var(--surface-2); border-color: var(--line); }
.compact-stat { min-height: 84px; padding: 13px; }
.compact-stat span { font-size: .76rem; }
.compact-stat strong { font-size: clamp(1.05rem, 3vw, 1.35rem); }
.profile-admin { gap: 8px; }
.info-tile { min-height: 78px; padding: 12px; display: grid; gap: 6px; justify-items: start; align-content: center; }
.info-tile strong { text-align: left; font-size: .95rem; }
.info-tile.expiry-tile { grid-template-columns: 1fr; }
.info-tile.expiry-tile .badge { grid-column: auto; }
.profile-details { padding-inline: 18px; }
.contract-panel { border-left: 3px solid var(--brand); }
.timeline-item::before { box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .13); }
.timeline-item:not(:last-child)::after { background: var(--line); }
.tab-row { margin: 16px 0; padding: 0; }
.profile-tabs {
  display: flex;
  gap: 2px;
  padding: 4px;
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e8eeea;
  scrollbar-width: thin;
  scrollbar-color: #b8c7bc transparent;
}
.profile-tabs button {
  min-width: 96px;
  width: auto;
  flex: 1 0 auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .82rem;
  padding: 0 12px;
}
.profile-tabs button:last-child { grid-column: auto; }
.profile-tabs button.active { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(29, 53, 37, .08); }
.profile-tabs button:hover:not(.active) { background: rgba(255,255,255,.45); }
.pane.active { gap: 14px; }
.meal { padding: 15px; }
.meal li + li { border-top: 1px solid var(--line); padding-top: 8px; }
.empty { background: var(--surface-2); color: var(--muted); border-style: dashed; }
.resource-card { background: #fff; border-color: var(--line); }
.resource-file { background: #fff; }
.phone-preview { background: #fff; border-color: var(--line); border-radius: 8px; }
.library-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.library-toolbar > div { display: grid; gap: 4px; min-width: 0; }
.library-toolbar strong { overflow-wrap: anywhere; }
.library-toolbar .primary { width: auto; flex: none; margin: 0; }
.library-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(170px, 1fr); gap: 12px; margin: 20px 0 8px; }
.library-filters .field { margin: 0; min-width: 0; }
#libraryResultCount { margin: 0 0 12px; }
#libraryExerciseForm { margin: 0 0 18px; }
#libraryExerciseForm.hidden { display: none; }
.library-more { display: block; width: 100%; margin: 16px 0 0; }
.library-more.hidden { display: none; }
.series-count-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.series-count-head label { margin: 0; }
.series-count-control { display: inline-grid; grid-template-columns: 36px minmax(76px, auto) 36px; align-items: center; gap: 6px; }
.series-count-control output { text-align: center; font-size: 0.86rem; font-weight: 700; white-space: nowrap; }
.series-count-control .ghost { display: grid; place-items: center; width: 36px; min-height: 36px; padding: 0; font-size: 1.3rem; }
.workout-load-cell { display: grid; gap: 3px; min-width: 0; }
.workout-load-cell .input { width: 100%; min-width: 0; text-align: center; font-weight: 700; padding: 0 4px; }
.workout-load-cell small { color: var(--muted); font-size: 0.66rem; text-align: center; white-space: nowrap; }
.workout-reps-cell { display: grid; gap: 3px; min-width: 0; }
.workout-reps-cell .input { width: 100%; min-width: 0; padding: 0 4px; text-align: center; font-weight: 700; }
.workout-reps-cell small { color: var(--muted); font-size: .66rem; text-align: center; }
.workout-prescription { display: grid; gap: 2px; min-width: 0; text-align: center; }
.workout-prescribed-reps { font-size: .84rem; font-weight: 700; overflow-wrap: anywhere; }
.workout-prescription small { color: var(--muted); font-size: .68rem; line-height: 1.2; overflow-wrap: anywhere; }
.app-exercise-head-shell { grid-template-columns: 52px minmax(0, 1fr) 48px; }
.app-exercise-head-shell .app-exercise-head { grid-template-columns: minmax(0, 1fr) auto; padding-left: 0; }
.exercise-complete-button { display: grid; place-items: center; padding: 0 0 0 12px; background: transparent; }
.exercise-complete-button:disabled { cursor: default; }
.exercise-complete-button:not(:disabled):hover .check-ring { border-color: var(--brand); color: var(--brand); }
.workout-timer { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; font-weight: 800; color: var(--text); }
.workout-timer svg { width: 17px; height: 17px; }
.workout-session-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.workout-session-status .tiny { margin: 0; }
.workout-session-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.workout-session-actions button { min-height: 42px; }
.workout-session-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.workout-session-row:last-child { border-bottom: 0; }
.workout-session-row > div { display: grid; gap: 3px; min-width: 0; }
.workout-session-row small { color: var(--muted); }
.workout-session-row > strong { white-space: nowrap; }
.story-modal { width: min(100%, 470px); }
.story-preview { display: flex; justify-content: center; max-height: 54vh; overflow: hidden; background: #101112; border-radius: 6px; }
.story-preview canvas { display: block; width: auto; max-width: 100%; height: min(54vh, 600px); aspect-ratio: 9 / 16; }
.story-camera { display: flex; justify-content: center; max-height: 54vh; background: #101112; border-radius: 6px; overflow: hidden; }
.story-camera video, .story-camera img { display: block; width: auto; max-width: 100%; height: min(54vh, 600px); aspect-ratio: 9 / 16; object-fit: cover; }
.story-camera video { transform: scaleX(-1); }
.story-preview.hidden, .story-camera.hidden, .story-camera .hidden, .story-actions.hidden, .story-actions button.hidden { display: none; }
.story-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.story-actions button { min-width: 0; justify-content: center; }
@media (max-width: 420px) { .story-actions { grid-template-columns: 1fr; } .workout-session-row { align-items: flex-start; } }
@media (max-width: 420px) {
  .app-exercise-body .series-row { grid-template-columns: 30px minmax(54px, 1fr) minmax(70px, 1fr) 34px; gap: 5px; }
  .app-exercise-body .series-label, .app-exercise-body .check-ring { width: 30px; height: 30px; }
  .workout-prescribed-reps { font-size: .78rem; }
  .workout-load-cell .input { font-size: .8rem; }
}
.load-history-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.load-history-row:last-child { border-bottom: 0; }
.load-history-row > div { display: grid; gap: 3px; min-width: 0; }
.load-history-row small { color: var(--muted); }
.load-history-value { text-align: right; white-space: nowrap; }
@media (max-width: 460px) { .load-history-row { align-items: flex-start; } .load-history-value { white-space: normal; } }
.exercise-library-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); }
.exercise-library-card { background: var(--surface, #161819); border: 1px solid var(--line); border-radius: 8px; padding: 16px; align-content: start; }
.library-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-width: 0; }
.library-card-head > div { min-width: 0; }
.library-card-head strong { line-height: 1.3; overflow-wrap: anywhere; }
.library-card-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; color: var(--muted); font-size: 0.82rem; }
.library-card-meta span + span::before { content: "· "; }
.exercise-library-card p { line-height: 1.4; margin: 0; }
.exercise-library-card .button-row { margin-top: auto; }
.exercise-library-card .primary { flex: 1 1 170px; width: auto; margin: 0; }
.exercise-library-card .ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 12px; text-decoration: none; }
.exercise-library-card .library-remove { min-height: 30px; font-size: 0.8rem; }
@media (max-width: 600px) { .library-toolbar { align-items: stretch; flex-wrap: wrap; } .library-toolbar .primary { width: 100%; } .library-filters { grid-template-columns: 1fr; } }

.workspace.athlete-mode .view:not(#appView) > .page-head { border-bottom-color: var(--line); }
.athlete-home-hero {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}
.athlete-greeting { padding: clamp(17px, 4vw, 26px); }
.athlete-greeting h3 { font-size: clamp(1.35rem, 5vw, 1.9rem); font-weight: 750; }
.athlete-summary-grid { background: #f7f9f7; border-top-color: var(--line); }
.athlete-summary-item + .athlete-summary-item { border-left-color: var(--line); }
.athlete-summary-item span { color: var(--muted); }
.athlete-summary-target { color: var(--muted); font-size: .7rem; line-height: 1.25; }
.today-workout {
  background: #203b32;
  color: #fff;
  border: 1px solid #203b32;
  border-radius: 8px;
  box-shadow: none;
}
.today-workout .section-label, .today-workout small { color: #bcd5c5; }
.workout-progress-ring { background: conic-gradient(var(--brand) var(--workout-progress, 0deg), #456053 0); }
.workout-progress-ring span { background: #203b32; color: #fff; }
.home-meal-preview, .home-action, .home-quick-link, .shortcut-card,
.app-meal, .app-exercise-card, .training-plan-switcher, .macro-item,
.date-card, .training-day-row button { background: #fff; border-color: var(--line); }
.home-action:hover, .shortcut-card:hover, .app-meal:hover, .app-exercise-card:hover { border-color: #aebfb4; }
.home-action > .icon, .home-quick-link .icon, .shortcut-card .icon { color: var(--brand); }
.home-meal-foods span, .alt-chip { background: var(--surface-2); border-color: var(--line); color: var(--soft); border-radius: 5px; }
.macro-item { border-radius: 8px; min-height: 86px; }
.macro-item strong { font-size: clamp(1.2rem, 3vw, 1.65rem); }
.app-meal-body, .app-exercise-body { border-top-color: var(--line); }
.food-choice { border-bottom-color: var(--line); }
.check-ring { border-color: #b8c9bd; }
.check-ring.done { border-color: var(--good); background: #e8f4eb; color: var(--good); }
.video-button { background: #fff; color: var(--brand); border-color: var(--line); }
.video-button:hover { background: var(--surface-2); }
.alt-chip.active { border-color: #aebfb4; background: #eef5ef; color: var(--text); }
.training-focus-card { border-color: #bdd0c2; }
.training-day-row button.active { background: #eef5ef; border-color: #8faf96; color: var(--text); }
.start-workout { background: var(--text); color: #fff; }
.series-label { background: #e7eee9; color: var(--soft); }
.series-input { background: #fff; color: var(--text); }
.mood-row button { border-radius: 8px; background: #fff; border-color: var(--line); color: var(--muted); }
.mood-row button.active { background: #e8f4eb; border-color: var(--good); color: var(--text); }
.mood-row strong { color: var(--text); }
.protocol-hero, .protocol-item { background: #fff; }
.protocol-hero h3 { font-size: clamp(1.25rem, 4vw, 1.65rem); font-weight: 750; line-height: 1.2; letter-spacing: 0; text-transform: none; }
.protocol-progress { background: var(--surface-3); border-color: var(--line); }
.protocol-progress i { background: var(--brand); }
.protocol-item { border-color: var(--line); }
.protocol-overview { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 2px 0 12px; border-bottom: 1px solid var(--line); }
.protocol-overview h3 { margin: 5px 0 2px; font-size: 1.35rem; line-height: 1.2; }
.protocol-overview > .tiny { flex-shrink: 0; }
.protocol-group { margin-top: 8px; gap: 10px; }
.protocol-group-title { padding: 2px 0; margin: 0; }
.protocol-group-title h4 { margin: 0; font-size: .94rem; font-weight: 700; }
.protocol-item { padding: 18px; gap: 14px; }
.protocol-item-top h3 { margin: 4px 0 0; font-size: 1.04rem; line-height: 1.25; }
.protocol-fields { display: flex; gap: 10px; flex-wrap: wrap; }
.protocol-fields > div { display: grid; gap: 4px; min-width: 120px; flex: 1 1 140px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 6px; background: var(--surface-2); }
.protocol-fields strong { font-size: .95rem; overflow-wrap: anywhere; }
.protocol-note { border-top: 1px solid var(--line-soft); padding-top: 12px; }
.protocol-note p { margin: 5px 0 0; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.protocol-help { margin: 4px 0 0; line-height: 1.5; }
.protocol-coach-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.protocol-coach-row > div:first-child { display: grid; gap: 3px; min-width: 0; }
.protocol-coach-row strong, .protocol-coach-row .tiny { overflow-wrap: anywhere; }
.protocol-publish-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.protocol-publish-bar .primary { width: auto; }
.athlete-exams-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.athlete-exams-head .primary { width: auto; }
.exam-row { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); text-decoration: none; }
.exam-row > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.exam-row-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 6px; background: var(--surface-2); }
.exam-row-open { color: var(--muted); }
@media (max-width: 600px) {
  .protocol-overview, .protocol-coach-row, .protocol-publish-bar { align-items: stretch; flex-direction: column; }
  .protocol-publish-bar .primary, .athlete-exams-head .primary { width: 100%; }
  .athlete-exams-head { align-items: stretch; flex-direction: column; }
}
.dose strong { font-size: clamp(1.15rem, 3vw, 1.55rem); }
.unit-pill { background: var(--surface-2); color: var(--soft); }
.syringe::before { border-color: #b5c5ba; background: repeating-linear-gradient(90deg, transparent 0 17px, #cad7ce 18px 20px); }
.syringe::after { background: var(--text); box-shadow: none; }
.syringe-fill { background: rgba(var(--brand-rgb), .42); }
.angle-row button, .progress-toolbar button { border-radius: 6px; background: #fff; border-color: var(--line); color: var(--muted); }
.angle-row button.active, .progress-toolbar button.active { background: #eaf2eb; border-color: #b8cfbe; color: var(--text); }
.progress-photo-card { border-radius: 8px; }
.photo-stamp, .unit-pill { border-radius: 5px; }

.bottom-nav {
  width: 100%;
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 25px rgba(24, 47, 33, .05);
}
.nav-btn { border-radius: 6px; color: var(--muted); font-weight: 650; }
.nav-btn.active { background: rgba(var(--brand-rgb), .13); color: var(--text); }
.nav-btn .icon { width: 1.25rem; height: 1.25rem; }

@media (min-width: 720px) {
  .mobile-shell { max-width: none; border: 0; }
  .bottom-nav { width: 100%; }
  .profile-admin { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-key-admin { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 930px) {
  .workspace.active:not(.athlete-mode) {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    max-width: none;
    padding: 0;
    gap: 0;
  }
  .workspace:not(.athlete-mode) > .side-panel {
    order: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: 224px;
    height: 100dvh;
    min-height: 100vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 22px 12px;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
  }
  .workspace:not(.athlete-mode) > .mobile-shell { grid-column: 2; order: 1; min-width: 0; border: 0; border-radius: 0; }
  .workspace:not(.athlete-mode) .topbar { justify-content: flex-end; }
  .workspace:not(.athlete-mode) .topbar > .brand-row { display: none; }
  .workspace:not(.athlete-mode) .bottom-nav { display: none; }
  .workspace:not(.athlete-mode) main { padding: 30px clamp(24px, 4vw, 56px) 64px; }
  .workspace:not(.athlete-mode) .coach-dashboard-grid { grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); }
  .side-brand { padding: 2px 8px 20px; border-bottom: 1px solid var(--line); }
  .side-nav-label { padding: 26px 11px 9px; color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
  .side-shortcuts { gap: 3px; }
  .side-shortcuts button, .side-bottom button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 43px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--soft);
    text-align: left;
    font-size: .86rem;
  }
  .side-shortcuts button:hover, .side-bottom button:hover { background: var(--surface-2); }
  .side-shortcuts button.active, .side-bottom button.active { background: rgba(var(--brand-rgb), .13); color: var(--text); }
  .side-shortcuts button > .icon, .side-bottom button > .icon { width: 18px; height: 18px; color: currentColor; }
  .side-shortcuts button > span:nth-child(2) { display: block; }
  .side-shortcuts button > span:last-child { color: inherit; font-size: inherit; }
  .side-bottom { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
  .workspace.active.athlete-mode { width: 100%; padding: 0; }
  .workspace.athlete-mode .mobile-shell { min-height: 100vh; }
  .workspace.athlete-mode main { padding: 34px clamp(24px, 5vw, 60px) 110px; }
  .workspace.athlete-mode .bottom-nav { position: fixed; left: 50%; transform: translateX(-50%); width: min(100%, 1000px); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .page-head { gap: 10px; }
  .coach-metric { min-height: 90px; padding: 11px; }
  .coach-metric strong { font-size: 1.35rem; }
  .coach-metric > span, .coach-metric small { font-size: .7rem; }
  .profile-key-admin { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-hero { grid-template-columns: minmax(0, 1fr); }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal { max-height: 90vh; }
}
@media (max-width: 390px) {
  .topbar .badge { display: none; }
  .coach-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .coach-metric { padding: 9px; }
  .coach-metric strong { font-size: 1.2rem; }
  .athlete-greeting { flex-wrap: wrap; }
  .mood-row { gap: 3px; }
  .mood-row button { font-size: .68rem; }
  .mood-row strong { font-size: 1.08rem; }
}
@media (max-width: 360px) {
  .nav-btn .icon { display: block; width: 1.1rem; height: 1.1rem; }
  .nav-btn { font-size: .66rem; }
}

.diet-audit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.diet-audit-stat { min-width: 0; display: grid; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); }
.diet-audit-stat strong { font-size: 1.15rem; line-height: 1.2; overflow-wrap: anywhere; }
.daily-consumption { display: grid; gap: 7px; padding-top: 12px; border-top: 1px solid var(--line); }
.daily-consumption strong { font-size: 1rem; }
.calorie-progress { width: 100%; height: 6px; overflow: hidden; border-radius: 3px; background: var(--line); }
.calorie-progress span { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width .2s ease; }
.diet-alert, .diet-warning { margin-top: 12px; padding: 12px 14px; border: 1px solid #b7791f; border-radius: 6px; background: #fff8eb; color: #663d0a; }
.diet-alert ul { margin: 7px 0 0; padding-left: 18px; }
.diet-alert li + li { margin-top: 4px; }
.substitution-editor-row { gap: 12px; }
.substitution-editor-row span { min-width: 0; display: grid; gap: 3px; }
.app-meal-head { grid-template-columns: minmax(0, 1fr) auto; }
.meal-head-end { display: flex; align-items: center; gap: 10px; }
.meal-done { border-color: #9db9a4; }
.meal-done-action { margin-top: 16px; width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.food-alternatives { display: grid; gap: 6px; }
.food-alternatives .alt-chip { cursor: pointer; max-width: 100%; white-space: normal; text-align: left; line-height: 1.25; padding: 7px 10px; }
.food-alternatives .alt-chip.active { border-color: var(--brand); background: rgba(var(--brand-rgb), .12); color: var(--text); }
.diet-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.diet-section-head h3 { margin: 2px 0 0; font-size: 1.15rem; }
.diet-section-head p { margin: 5px 0 0; }
.diet-section-head .secondary { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.food-check-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: start; gap: 10px; }
.food-check-row > .check-ring { cursor: pointer; margin-top: 2px; }
.food-check-copy { min-width: 0; display: grid; gap: 5px; }
.food-check-copy .row { gap: 8px; align-items: baseline; }
.food-check-copy strong { min-width: 0; overflow-wrap: anywhere; }
.food-checked .food-check-copy > .row > strong { color: var(--brand); }
.extra-food-section { display: grid; gap: 14px; padding-block: 8px 18px; }
.extra-food-list { border-top: 1px solid var(--line); }
.extra-food-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.extra-food-row > div { min-width: 0; display: grid; gap: 4px; }
.extra-food-row strong { overflow-wrap: anywhere; }
.extra-food-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.meal-day-adjustments { display: grid; gap: 4px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.meal-add-button { display: inline-flex; align-items: center; gap: 8px; justify-content: center; width: 100%; margin-top: 14px; }
.meal-swap-button { justify-self: start; border: 0; background: none; color: var(--brand); font: inherit; font-weight: 650; padding: 5px 0; cursor: pointer; }
.food-replaced { background: var(--surface-2); border-radius: 6px; padding-inline: 12px; }
.food-replaced > .tiny { color: var(--muted); }
.food-replaced .extra-food-row { border: 0; padding-block: 4px 0; }
.extra-food-preview { padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; }
@media (max-width: 620px) {
  .diet-audit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diet-audit-stat:last-child { grid-column: 1 / -1; }
  .meal-head-end { gap: 6px; }
  .diet-section-head { align-items: flex-start; }
  .food-check-copy .row { align-items: flex-start; flex-direction: column; gap: 2px; }
}

/* Clearer visual hierarchy across coach and athlete workspaces. */
:root {
  --bg: #f1f4f5;
  --surface-2: #f6f8f9;
  --surface-3: #e9eef0;
  --line: #dbe3e6;
  --line-soft: #e9eef0;
  --text: #19272c;
  --muted: #5b6b72;
  --soft: #38505a;
}
.auth { background: var(--bg); }
.auth-card {
  border-top: 4px solid var(--brand);
  box-shadow: 0 18px 55px rgba(25, 39, 44, .12);
}
.role-switch { background: #e9eef0; }
.topbar { background: rgba(255, 255, 255, .97); }
.topbar .brand-mark, .side-brand .brand-mark { box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .13); }
.page-head h2 { display: flex; align-items: center; gap: 10px; min-width: 0; }
.title-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(var(--brand-rgb), .24);
  border-radius: 7px;
  background: rgba(var(--brand-rgb), .1);
  color: var(--text);
}
.title-icon .icon { width: 19px; height: 19px; }
.card { border-color: var(--line); }
.section-label { font-weight: 800; text-transform: uppercase; }
.primary:hover { filter: brightness(.95); transform: translateY(-1px); }
.secondary:hover { background: #30434a; }
.ghost:hover, .icon-btn:hover, .icon-action:hover { border-color: #abbcc2; }
.input:focus, .select:focus, textarea:focus { background: #fff; }
.badge.good { background: #e9f5ef; }
.badge.warn { background: #fff3e2; }
.badge.bad { background: #fcebed; }

.coach-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.coach-metric {
  --metric-color: var(--brand);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 7px;
  min-height: 152px;
  padding: 17px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--metric-color);
}
.coach-metric.published { --metric-color: #287a8b; }
.coach-metric.attention { --metric-color: #b67438; background: #fff; border-color: var(--line); border-top-color: var(--metric-color); }
.coach-metric.attention strong { color: var(--text); }
.coach-metric strong { align-self: end; font-size: 2.15rem; line-height: 1; font-variant-numeric: tabular-nums; }
.coach-metric small { font-size: .72rem; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .77rem; font-weight: 750; color: var(--muted); }
.metric-icon { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 6px; background: color-mix(in srgb, var(--metric-color) 13%, white); color: var(--metric-color); }
.metric-icon .icon { width: 17px; height: 17px; }
.metric-track, .summary-calorie-track, .macro-progress-track { overflow: hidden; background: var(--surface-3); border-radius: 99px; }
.metric-track { height: 5px; }
.metric-track i, .summary-calorie-track i, .macro-progress-track i { display: block; height: 100%; border-radius: inherit; transition: width .25s ease; }
.metric-track i { background: var(--metric-color); }
.coach-queue-card, .coach-focus-card { min-height: 230px; }
.coach-queue-item { border-left: 3px solid #d3b28b; }
.coach-queue-item:hover { border-left-color: #b67438; }
.coach-focus-card .focus-summary { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 12px 0 0; }
.focus-summary > div + div { border-left-color: var(--line); }
.profile-card { border-top: 3px solid var(--brand); }
.profile-card .avatar { background: rgba(var(--brand-rgb), .14); border-color: rgba(var(--brand-rgb), .24); color: var(--text); }
.profile-card .profile-hero h3 { font-size: 1.3rem; }
.profile-key-admin .info-tile { min-height: 74px; background: var(--surface-2); }
.profile-tabs { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; gap: 2px; }
.profile-tabs button { border-radius: 0; border-bottom: 3px solid transparent; }
.profile-tabs button.active { border-bottom-color: var(--brand); box-shadow: none; background: transparent; }
.profile-tabs button:hover:not(.active) { background: var(--surface-2); }
.compact-stat { background: var(--surface-2); }
.compact-stat strong { font-variant-numeric: tabular-nums; }
.training-focus-card { border-top: 3px solid var(--brand); border-color: var(--line); border-top-color: var(--brand); }
.training-day-row button.active { background: rgba(var(--brand-rgb), .1); border-color: var(--brand); }
.start-workout { background: var(--text); }

.athlete-home-hero { border: 1px solid var(--line); border-top: 4px solid var(--brand); border-left-width: 1px; }
.athlete-summary-grid { background: var(--surface-2); }
.athlete-summary-item { min-width: 0; align-content: start; }
.athlete-summary-item strong { overflow-wrap: anywhere; }
.summary-calorie-track { height: 5px; margin-top: 5px; }
.summary-calorie-track i { background: var(--brand); }
.today-workout { background: #24383b; border-color: #24383b; }
.today-workout .section-label, .today-workout small { color: #c3d8d8; }
.workout-progress-ring { background: conic-gradient(var(--brand) var(--workout-progress, 0deg), #50666a 0); }
.workout-progress-ring span { background: #24383b; }
.home-action > .icon { flex-shrink: 0; width: 21px; height: 21px; }
.home-action-arrow { font-size: 1.35rem; }
.home-meal-preview { border-left: 3px solid var(--brand); }
.daily-consumption { padding: 16px 0 2px; gap: 9px; }
.daily-consumption strong { font-size: 1.8rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.calorie-progress { height: 9px; }
.macro-progress-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 13px; border-top: 1px solid var(--line); }
.macro-progress-item { min-width: 0; display: grid; gap: 10px; padding: 11px 12px; background: var(--surface-2); border-radius: 7px; }
.macro-progress-item > div:first-child { display: grid; gap: 5px; }
.macro-progress-item span { color: var(--muted); font-size: .73rem; font-weight: 750; }
.macro-progress-item strong { color: var(--text); font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.macro-progress-item strong small { color: var(--muted); font-size: .73rem; font-weight: 600; }
.macro-progress-track { height: 5px; }
.macro-progress-track i { background: var(--macro-tone); }
.app-meal { border-left: 3px solid transparent; }
.app-meal.meal-done { border-left-color: var(--good); }
.app-exercise-card { border-left: 3px solid transparent; }
.app-exercise-card:has(.check-ring.done) { border-left-color: var(--good); }
.bottom-nav { box-shadow: 0 -8px 24px rgba(25, 39, 44, .07); }
.nav-btn.active { background: rgba(var(--brand-rgb), .12); color: var(--text); }

@media (min-width: 930px) {
  .workspace:not(.athlete-mode) > .side-panel { background: #202c30; border-right-color: #202c30; }
  .workspace:not(.athlete-mode) .side-brand { border-bottom-color: rgba(255,255,255,.13); }
  .workspace:not(.athlete-mode) .side-brand strong { color: #f7faf9; }
  .workspace:not(.athlete-mode) .side-brand .tiny, .workspace:not(.athlete-mode) .side-nav-label { color: #aabcc0; }
  .workspace:not(.athlete-mode) .side-shortcuts button, .workspace:not(.athlete-mode) .side-bottom button { color: #d6e0e2; }
  .workspace:not(.athlete-mode) .side-shortcuts button:hover, .workspace:not(.athlete-mode) .side-bottom button:hover { background: rgba(255,255,255,.09); }
  .workspace:not(.athlete-mode) .side-shortcuts button.active, .workspace:not(.athlete-mode) .side-bottom button.active { background: rgba(var(--brand-rgb), .18); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
  .workspace:not(.athlete-mode) .side-bottom { border-top-color: rgba(255,255,255,.13); }
}
@media (max-width: 620px) {
  .coach-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coach-metric { min-height: 134px; padding: 13px; }
  .coach-metric strong { font-size: 1.85rem; }
  .coach-metric.attention { grid-column: 1 / -1; min-height: 100px; }
  .metric-top { font-size: .72rem; }
  .metric-icon { width: 28px; height: 28px; flex-basis: 28px; }
  .macro-progress-grid { grid-template-columns: 1fr; }
  .macro-progress-item { grid-template-columns: 1fr minmax(70px, 1fr); align-items: center; }
  .macro-progress-track { height: 6px; }
  .title-icon { flex-basis: 31px; width: 31px; height: 31px; }
  .coach-queue-item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .coach-queue-item .athlete-line { width: 100%; }
  .coach-queue-item .queue-status { margin-left: 58px; justify-self: start; }
}
@media (max-width: 390px) {
  .coach-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coach-metric strong { font-size: 1.65rem; }
}

.protocol-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, .75fr);
  align-items: center;
  gap: 24px;
  padding: 20px 22px;
  background: #24383b;
  border: 0;
  border-top: 4px solid var(--brand);
  border-radius: 8px;
  color: #fff;
}
.protocol-dose-input { position: relative; }
.form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.form-actions .hidden { display: none; }
.form-actions button { min-width: 0; }
@media (max-width: 620px) { .form-actions button { flex: 1 1 145px; } }
.protocol-dose-input .input { padding-right: 46px; }
.protocol-dose-input > span { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--muted); font-size: .85rem; font-weight: 750; pointer-events: none; }
#protocolCadenceCustomField.hidden { display: none; }
#protocolLegacyDose:empty { display: none; }
.protocol-overview .section-label, .protocol-overview .muted, .protocol-overview .tiny { color: #c5d7d9; }
.protocol-overview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.protocol-refresh { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid #65797c; border-radius: 6px; background: transparent; color: #fff; cursor: pointer; }
.protocol-refresh:hover { background: rgba(255,255,255,.1); }
.protocol-refresh .icon { width: 17px; height: 17px; }
.protocol-overview h3 { margin: 5px 0 6px; font-size: 1.45rem; }
.protocol-overview p { margin: 0; }
.protocol-cycle-summary { display: grid; gap: 9px; min-width: 0; }
.protocol-cycle-summary > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.protocol-cycle-summary strong { font-size: .95rem; text-align: right; }
.protocol-cycle-summary small { color: #a8c0c4; font-size: .73rem; }
.protocol-cycle-track { height: 8px; overflow: hidden; border-radius: 99px; background: #50666a; }
.protocol-cycle-track i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.protocol-group { gap: 10px; margin-top: 14px; }
.protocol-group-title { margin: 4px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.protocol-group-title h4 { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; }
.protocol-group-title .icon { width: 17px; height: 17px; color: var(--brand); }
.protocol-item { padding: 18px 20px; gap: 14px; border: 1px solid var(--line); border-left: 3px solid rgba(var(--brand-rgb), .55); }
.protocol-item-main { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-width: 0; }
.protocol-item-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 7px; background: rgba(var(--brand-rgb), .11); color: var(--text); }
.protocol-item-icon .icon { width: 20px; height: 20px; }
.protocol-item-copy { min-width: 0; display: grid; gap: 3px; }
.protocol-item-copy h3 { margin: 0; font-size: 1.07rem; line-height: 1.2; overflow-wrap: anywhere; }
.protocol-item-copy > .tiny { display: inline-flex; align-items: center; gap: 5px; }
.protocol-item-copy > .tiny .icon { width: 13px; height: 13px; }
.protocol-dose { min-width: 95px; display: grid; justify-items: end; gap: 4px; padding-left: 12px; border-left: 1px solid var(--line); text-align: right; }
.protocol-dose strong { font-size: 1.25rem; line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.protocol-preparation { display: flex; align-items: flex-start; gap: 9px; margin: 0; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.protocol-preparation > .icon { flex: 0 0 17px; width: 17px; height: 17px; color: var(--muted); }
.protocol-preparation span { display: grid; gap: 3px; }
.protocol-preparation small { color: var(--muted); }
.protocol-preparation strong { font-size: .87rem; font-weight: 650; }
.protocol-note { margin: 0; }
.protocol-syringe-panel { display: grid; gap: 7px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.protocol-syringe-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.protocol-syringe-head strong { font-size: .9rem; font-variant-numeric: tabular-nums; }
.protocol-syringe-graphic { display: flex; align-items: center; width: min(100%, 410px); height: 42px; }
.protocol-syringe-plunger { flex: 0 0 14px; height: 20px; border: 2px solid #8b9ba2; border-radius: 3px 0 0 3px; }
.protocol-syringe-barrel { position: relative; flex: 1; height: 24px; border: 2px solid #8b9ba2; border-radius: 4px; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), #d4dde0 calc(10% - 1px) 10%); overflow: hidden; }
.protocol-syringe-barrel i { display: block; width: var(--syringe-fill); height: 100%; background: rgba(var(--brand-rgb), .48); border-right: 3px solid var(--brand); }
.protocol-syringe-tip { flex: 0 0 25px; height: 2px; background: #8b9ba2; }
.protocol-syringe-scale { display: flex; justify-content: space-between; width: min(calc(100% - 40px), 370px); margin-left: 14px; color: var(--muted); font-size: .66rem; font-variant-numeric: tabular-nums; }
@media (max-width: 620px) {
  .protocol-overview { grid-template-columns: 1fr; gap: 14px; padding: 17px; }
  .protocol-cycle-summary { padding-top: 12px; border-top: 1px solid #50666a; }
  .protocol-item { padding: 14px; }
  .protocol-item-main { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .protocol-item-icon { width: 36px; height: 36px; }
  .protocol-dose { grid-column: 2; justify-items: start; min-width: 0; padding: 7px 0 0; border: 0; text-align: left; }
  .protocol-dose strong { font-size: 1.2rem; }
}

.followup-section { display: grid; gap: 16px; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); margin-bottom: 14px; }
.training-validity { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 2px 0 18px; border-bottom: 1px solid var(--line); }
.training-validity > div { display: grid; gap: 4px; min-width: 0; }
.training-validity strong { font-size: 1.05rem; line-height: 1.3; }
.training-validity small { line-height: 1.35; }
.training-validity .ghost { flex: 0 0 auto; }
.training-period-heading { display: grid; gap: 4px; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.training-period-heading strong { font-size: .94rem; }
.training-validity-note { margin: 10px 0 14px; color: var(--muted); font-size: .83rem; line-height: 1.4; }
.training-validity-note.warn { color: #9a621a; }
.training-validity-note.bad { color: var(--bad); }
@media (max-width: 620px) { .training-validity { align-items: flex-start; flex-direction: column; gap: 10px; } }
.followup-section h3 { margin: 2px 0 0; font-size: 1.1rem; }
.followup-section .row { align-items: flex-start; flex-wrap: wrap; }
.followup-section .row button { white-space: nowrap; }
.followup-metric-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line-soft); }
.followup-metric-row > div { display: grid; align-content: center; gap: 5px; min-width: 0; padding: 14px 12px; }
.followup-metric-row > div + div { border-left: 1px solid var(--line-soft); }
.followup-metric-row small, .followup-answers small { color: var(--muted); }
.followup-metric-row strong { overflow-wrap: anywhere; font-size: 1rem; }
.followup-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.followup-answers > div { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.followup-answers strong { font-size: .92rem; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.followup-divider { padding-top: 12px; border-top: 1px solid var(--line); }
.followup-divider h4 { margin: 0 0 5px; }
.followup-divider p { margin: 0; }
.followup-record { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); min-width: 0; }
.followup-record > div { min-width: 0; display: grid; gap: 4px; }
.followup-record small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.followup-record > span { max-width: 80%; }
.followup-record > strong { flex: 0 0 auto; }
.followup-alert { color: var(--bad); }
.followup-review { padding: 12px 0; border-top: 1px solid var(--line); }
.followup-review p { margin: 7px 0 0; white-space: pre-wrap; }
.followup-links { display: flex; flex-wrap: wrap; gap: 8px; }
.followup-links button { display: inline-flex; align-items: center; gap: 8px; }
.followup-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.followup-chart { min-width: 0; }
.followup-chart svg { width: 100%; height: 145px; display: block; overflow: visible; }
.followup-chart polyline { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.followup-chart .chart-axis { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-ends { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .75rem; }
.chart-ends strong { color: var(--text); font-size: 1rem; }
.intake-question { display: flex; flex-wrap: wrap; gap: 9px 18px; padding: 13px 0; margin: 0; border: 0; border-top: 1px solid var(--line-soft); }
.intake-question legend { float: left; width: 100%; margin-bottom: 8px; font-weight: 600; line-height: 1.45; }
.intake-question label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.intake-question input { accent-color: var(--brand); }
.followup-modal { width: min(100%, 680px); }
#closeIntake.hidden { display: none; }
#intakeModal { align-items: center; }
#intakeModal .intake-modal { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 0; width: min(100%, 780px); max-height: min(90dvh, 900px); padding: 0; overflow: hidden; border-radius: 8px; }
#intakeModal .intake-header { padding: 22px 28px 24px; background: #202c30; color: #fff; }
#intakeModal .intake-header-top { display: flex; align-items: center; justify-content: space-between; min-height: 27px; gap: 16px; margin-bottom: 15px; }
#intakeModal .intake-header-top > span { color: #b8cbce; font-size: .66rem; font-weight: 800; letter-spacing: .1em; }
#intakeModal .intake-header-top .ghost { min-height: 27px; padding: 2px 9px; border-color: #71858a; background: transparent; color: #fff; font-size: .72rem; }
#intakeModal .intake-heading { display: flex; align-items: flex-start; gap: 14px; }
#intakeModal .intake-heading-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; border: 1px solid #60777c; border-radius: 7px; background: #34474b; color: #e5eded; }
#intakeModal .intake-heading-icon .icon { width: 22px; height: 22px; }
#intakeModal .intake-heading h3 { margin: 0; color: #fff; font-size: 1.35rem; line-height: 1.2; }
#intakeModal .intake-heading p { margin: 5px 0 0; color: #c8d4d5; font-size: .84rem; line-height: 1.45; }
#intakeModal .intake-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: #fff; }
#intakeModal .intake-section { padding: 23px 28px 25px; border-bottom: 1px solid var(--line); }
#intakeModal .intake-section-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 16px; }
#intakeModal .intake-section-number { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 5px; background: var(--surface-3); color: #375a53; font-size: .68rem; font-weight: 800; }
#intakeModal .intake-section-head h4 { margin: 1px 0 2px; color: var(--text); font-size: 1rem; line-height: 1.3; }
#intakeModal .intake-section-head p { margin: 0; color: var(--muted); font-size: .79rem; line-height: 1.4; }
#intakeModal .intake-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
#intakeModal .intake-field-grid .field { min-width: 0; margin: 0; }
#intakeModal .intake-field-full { grid-column: 1 / -1; }
#intakeModal .intake-field-grid label { font-size: .69rem; }
#intakeModal .intake-field-grid .input, #intakeModal .intake-field-grid .select, #intakeModal .intake-field-grid textarea { min-height: 43px; border-radius: 6px; background: #fff; }
#intakeModal .intake-field-grid textarea { min-height: 82px; padding: 10px 12px; line-height: 1.45; }
#intakeGoalOtherField[hidden] { display: none !important; }
#intakeModal .intake-screening-note { margin: 0 0 10px; padding: 11px 13px; border-left: 3px solid #9aaeb1; background: #f4f7f7; color: #53676a; font-size: .74rem; line-height: 1.5; }
#intakeModal .intake-screening-note a { color: #285e63; text-decoration: underline; }
#intakeModal .intake-question { display: block; padding: 14px 0; border-top: 1px solid var(--line-soft); }
#intakeModal .intake-question legend { float: left; width: 100%; display: flex; align-items: baseline; gap: 11px; margin: 0 0 10px; color: var(--text); font-size: .82rem; font-weight: 650; line-height: 1.4; }
#intakeModal .intake-question legend span { flex: 0 0 auto; color: #8a9a9d; font-size: .68rem; font-weight: 800; }
#intakeModal .intake-choices { display: flex; gap: 7px; }
#intakeModal .intake-choices label { position: relative; display: block; margin: 0; cursor: pointer; }
#intakeModal .intake-choices input { position: absolute; width: 1px; height: 1px; opacity: 0; }
#intakeModal .intake-choices label span { display: grid; place-items: center; min-width: 68px; min-height: 34px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #496066; font-size: .75rem; font-weight: 700; }
#intakeModal .intake-choices input:checked + span { border-color: #547a70; background: #e6f0eb; color: #245945; }
#intakeModal .intake-choices label:last-child input:checked + span { border-color: #be8d48; background: #fff5e4; color: #82561b; }
#intakeModal .intake-choices input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
#intakeModal .intake-safety-note { margin: 7px 0 0; color: #647578; font-size: .74rem; line-height: 1.45; }
#intakeModal .intake-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 28px; border-top: 1px solid var(--line); background: #fff; }
#intakeModal .intake-footer span { max-width: 300px; color: var(--muted); font-size: .75rem; line-height: 1.35; }
#intakeModal .intake-footer button { min-width: 190px; min-height: 43px; border-radius: 6px; }
@media (max-width: 620px) {
  #intakeModal { align-items: flex-end; padding: 0; }
  #intakeModal .intake-modal { width: 100%; max-height: calc(100dvh - env(safe-area-inset-top)); border-radius: 8px 8px 0 0; }
  #intakeModal .intake-header { padding: 17px 18px 19px; }
  #intakeModal .intake-heading h3 { font-size: 1.17rem; }
  #intakeModal .intake-section { padding: 19px 18px 21px; }
  #intakeModal .intake-field-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  #intakeModal .intake-footer { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 9px; padding: 11px 18px calc(13px + env(safe-area-inset-bottom)); }
  #intakeModal .intake-footer span { max-width: none; }
  #intakeModal .intake-footer button { width: 100%; }
}
@media (max-width: 620px) {
  .followup-section { padding: 16px; }
  .followup-metric-row { grid-template-columns: 1fr 1fr; }
  .followup-metric-row > div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line-soft); }
  .followup-metric-row > div:nth-child(2) { border-left: 0; }
  .followup-answers { grid-template-columns: 1fr; }
  .followup-fields { grid-template-columns: 1fr 1fr; }
  .chart-ends { flex-wrap: wrap; }
}

/* The screen preview and browser PDF share one printable workout layout. */
#printModal .modal { width: min(100%, 1000px); }
#trainingPrintPreview { color: #1c292d; font-family: Arial, Helvetica, sans-serif; }
#trainingPrintPreview .print-sheet { min-height: 980px; display: flex; flex-direction: column; background: #fff; border: 1px solid #dce2e2; }
#trainingPrintPreview .print-masthead { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 132px; margin: 0; padding: 28px 36px; border: 0; background: #202c30; color: #fff; }
#trainingPrintPreview .print-brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
#trainingPrintPreview .print-brand-mark { display: grid; place-items: center; width: 68px; height: 68px; flex: 0 0 68px; overflow: hidden; border: 1px solid rgba(255,255,255,.38); color: #fff; font-size: 1.2rem; font-weight: 800; }
#trainingPrintPreview .print-brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
#trainingPrintPreview .print-brand strong { display: block; font-size: 1.25rem; line-height: 1.2; overflow-wrap: anywhere; }
#trainingPrintPreview .print-brand small { display: block; margin-top: 6px; color: #d5e0e0; font-size: .64rem; font-weight: 700; letter-spacing: .14em; }
#trainingPrintPreview .print-document-tag { flex: 0 0 auto; padding: 8px 11px; border: 1px solid rgba(255,255,255,.36); color: #e5ebeb; font-size: .62rem; font-weight: 800; letter-spacing: .1em; }
#trainingPrintPreview .print-sheet-body { flex: 1; padding: 35px 36px 44px; }
#trainingPrintPreview .print-title-block { border-bottom: 2px solid #202c30; padding-bottom: 21px; }
#trainingPrintPreview .print-eyebrow { color: #687a7e; font-size: .68rem; font-weight: 800; letter-spacing: .14em; }
#trainingPrintPreview .print-title-block h1 { margin: 8px 0 3px; font-size: 2rem; line-height: 1.14; overflow-wrap: anywhere; }
#trainingPrintPreview .print-title-block p { margin: 0; color: #627276; font-size: .92rem; }
#trainingPrintPreview .print-meta { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); margin: 20px 0 26px; border: 1px solid #dce2e2; background: #f7f9f9; }
#trainingPrintPreview .print-meta > div { display: grid; align-content: center; gap: 6px; min-width: 0; min-height: 71px; padding: 12px 16px; }
#trainingPrintPreview .print-meta > div + div { border-left: 1px solid #dce2e2; }
#trainingPrintPreview .print-meta small { color: #687a7e; font-size: .61rem; font-weight: 800; letter-spacing: .1em; }
#trainingPrintPreview .print-meta strong { font-size: .95rem; line-height: 1.25; overflow-wrap: anywhere; }
#trainingPrintPreview .print-guidance { margin: 0 0 29px; padding: 15px 18px; border-left: 3px solid var(--brand, #538e73); background: #f4f7f6; }
#trainingPrintPreview .print-guidance strong { font-size: .8rem; }
#trainingPrintPreview .print-guidance p { margin: 5px 0 0; color: #43575c; white-space: pre-wrap; font-size: .8rem; line-height: 1.5; }
#trainingPrintPreview .print-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 13px; }
#trainingPrintPreview .print-section-head h2 { margin: 0; font-size: 1.08rem; }
#trainingPrintPreview .print-section-head span { color: #687a7e; font-size: .75rem; }
#trainingPrintPreview .print-exercise-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; border: 1px solid #dce2e2; font-size: .75rem; line-height: 1.4; }
#trainingPrintPreview .print-exercise-table th { padding: 12px 10px; border: 0; background: #e9eeed; color: #485e63; font-size: .59rem; font-weight: 800; letter-spacing: .05em; }
#trainingPrintPreview .print-exercise-table td { padding: 13px 10px; border: 0; border-top: 1px solid #e2e7e7; vertical-align: top; overflow-wrap: anywhere; }
#trainingPrintPreview .print-exercise-table tbody tr:nth-child(even) { background: #f7f9f9; }
#trainingPrintPreview .print-exercise-table th:first-child { width: 29%; }
#trainingPrintPreview .print-exercise-table th:nth-child(2) { width: 8%; }
#trainingPrintPreview .print-exercise-table th:nth-child(3) { width: 18%; }
#trainingPrintPreview .print-exercise-table th:nth-child(4) { width: 12%; }
#trainingPrintPreview .print-exercise-table th:nth-child(5) { width: 33%; }
#trainingPrintPreview .print-exercise-table td strong { display: block; font-size: .78rem; }
#trainingPrintPreview .print-exercise-table td small { display: block; margin-top: 4px; color: #78888b; font-size: .68rem; }
#trainingPrintPreview .print-series-line, #trainingPrintPreview .print-notes span { display: block; }
#trainingPrintPreview .print-series-line + .print-series-line, #trainingPrintPreview .print-notes span + span { margin-top: 3px; }
#trainingPrintPreview .print-series-line b { color: #77878b; font-weight: 600; }
#trainingPrintPreview .print-footer { display: flex; justify-content: space-between; gap: 20px; margin: 0 36px; padding: 18px 0 22px; border-top: 1px solid #dce2e2; color: #66797d; font-size: .69rem; overflow-wrap: anywhere; }
#trainingPrintPreview .print-footer span:first-child { color: #202c30; font-weight: 800; }
@media (max-width: 700px) {
  #trainingPrintPreview .print-sheet { min-height: 0; }
  #trainingPrintPreview .print-masthead { min-height: 0; padding: 20px; }
  #trainingPrintPreview .print-document-tag { display: none; }
  #trainingPrintPreview .print-sheet-body { padding: 22px 16px; }
  #trainingPrintPreview .print-exercise-table { min-width: 610px; }
  #trainingPrintPreview .print-sheet-body { overflow-x: auto; }
  #trainingPrintPreview .print-footer { margin: 0 16px; }
}
@page { size: A4 portrait; margin: 10mm; }
@media print {
  html, body, #printModal, #printModal .modal { width: 100% !important; min-height: 0 !important; margin: 0 !important; }
  #printModal .modal { padding: 0 !important; }
  #trainingPrintPreview { font: 9pt/1.35 Arial, Helvetica, sans-serif !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  #trainingPrintPreview .print-sheet { min-height: 271mm; border: 0; }
  #trainingPrintPreview .print-masthead { min-height: 29mm; padding: 6mm 8mm; border: 0; margin: 0; }
  #trainingPrintPreview .print-brand-mark { width: 15mm; height: 15mm; flex-basis: 15mm; }
  #trainingPrintPreview .print-brand strong { font-size: 15pt; }
  #trainingPrintPreview .print-sheet-body { padding: 8mm; overflow: visible; }
  #trainingPrintPreview .print-title-block h1 { font-size: 20pt; }
  #trainingPrintPreview .print-meta { margin: 5mm 0 7mm; }
  #trainingPrintPreview .print-exercise-table { min-width: 0; font-size: 8pt; }
  #trainingPrintPreview .print-exercise-table thead { display: table-header-group; }
  #trainingPrintPreview .print-exercise-table tr { break-inside: avoid; page-break-inside: avoid; }
  #trainingPrintPreview .print-exercise-table th { font-size: 6.5pt; }
  #trainingPrintPreview .print-exercise-table td { padding: 3mm 2mm; }
  #trainingPrintPreview .print-footer { margin: 0 8mm; padding: 5mm 0; }
}

.coach-upcoming { margin-top: 24px; }
.coach-upcoming > .row { margin-bottom: 12px; }
.agenda-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 240px)); gap: 12px; margin: 18px 0 22px; }
.agenda-list, #dashboardAppointments { display: grid; gap: 10px; }
.appointment-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line, #dce3e6); border-radius: 8px; background: var(--surface, #fff); }
.appointment-row.cancelled { opacity: .58; }
.appointment-date { display: grid; justify-items: center; border-right: 1px solid var(--line, #dce3e6); padding-right: 12px; }
.appointment-date strong { font-size: 1.4rem; line-height: 1; }
.appointment-date span { font-size: .8rem; text-transform: uppercase; }
.appointment-details { display: grid; gap: 4px; min-width: 0; }
.appointment-details strong { overflow-wrap: anywhere; }
.appointment-details span, .appointment-details small { color: var(--muted, #627379); }
.appointment-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; max-width: 400px; }
.appointment-actions .ghost, .appointment-actions .primary { min-height: 34px; padding: 6px 10px; }
.hydration-hero, .hydration-summary { background: var(--surface, #fff); }
.hydration-hero { padding: 22px; border: 1px solid var(--line, #dce3e6); border-radius: 8px; }
.hydration-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.hydration-summary > div:first-child { display: grid; gap: 2px; }
.hydration-summary strong { font-size: 2rem; line-height: 1.1; }
.hydration-summary small { color: var(--muted, #627379); }
.hydration-symbol { color: #287b95; }
.hydration-symbol .icon { width: 36px; height: 36px; }
.hydration-track { height: 10px; background: #e1ecef; border-radius: 99px; overflow: hidden; margin-top: 14px; }
.hydration-track i { display: block; height: 100%; background: #287b95; border-radius: inherit; }
.hydration-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.hydration-quick button { min-height: 44px; padding: 0 18px; border: 1px solid #b8d5df; border-radius: 6px; background: #eef7fa; color: #17576d; font-weight: 700; cursor: pointer; }
.hydration-goal-form { display: flex; align-items: end; gap: 12px; margin-top: 14px; }
.hydration-goal-form .field { flex: 1; min-width: 0; margin: 0; }
.hydration-goal-form button { flex: 0 0 auto; }
.hydration-entries { display: grid; }
.hydration-entry { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line, #dce3e6); }
.hydration-entry strong { margin-left: auto; }
.hydration-history { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: end; gap: 8px; min-height: 144px; margin-top: 12px; }
.hydration-day { display: grid; justify-items: center; gap: 6px; min-width: 0; font-size: .72rem; text-align: center; }
.hydration-day strong { font-size: .72rem; white-space: nowrap; }
.hydration-bar { display: flex; align-items: end; width: min(100%, 38px); height: 88px; border-radius: 4px; background: #e5eff2; overflow: hidden; }
.hydration-bar i { width: 100%; min-height: 0; background: #287b95; }
button.athlete-summary-item { text-align: left; cursor: pointer; font: inherit; }
.athlete-water-summary > span { display: inline-flex; align-items: center; gap: 6px; }
.athlete-water-summary .icon { width: 15px; height: 15px; color: #287b95; }
.athlete-water-summary .summary-calorie-track i { background: #287b95; }
.agenda-toolbar { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 20px 0 14px; }
.agenda-toolbar > .field { width: min(100%, 260px); margin: 0; }
.agenda-month-nav { display: flex; align-items: center; gap: 8px; min-width: 0; }
.agenda-month-nav h3 { min-width: 160px; margin: 0; text-align: center; font-size: 1.08rem; text-transform: capitalize; }
.agenda-month-nav .icon-btn { flex: 0 0 38px; width: 38px; height: 38px; }
.agenda-month-nav .ghost { min-height: 38px; }
.agenda-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; padding: 1px; border: 1px solid var(--line); border-radius: 8px; background: var(--line); overflow: hidden; }
.agenda-weekday { display: grid; place-items: center; min-width: 0; min-height: 34px; background: var(--surface-2); color: var(--muted); font-size: .72rem; font-weight: 750; text-transform: uppercase; }
.agenda-calendar-blank { background: var(--surface-2); }
.agenda-calendar-day { display: flex; flex-direction: column; align-items: stretch; gap: 5px; min-width: 0; min-height: 102px; padding: 8px; border: 0; border-radius: 0; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; }
.agenda-calendar-day:hover { background: #f0f6f3; }
.agenda-calendar-day.selected { background: #e8f2ec; box-shadow: inset 0 0 0 2px var(--brand); }
.agenda-calendar-day.today .agenda-day-number { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--text); color: #fff; }
.agenda-day-number { font-size: .82rem; font-weight: 750; line-height: 24px; }
.agenda-day-count { align-self: flex-start; padding: 1px 6px; border-radius: 4px; background: #e5efe9; color: #20553e; font-size: .68rem; font-weight: 800; }
.agenda-day-events { display: grid; gap: 3px; min-width: 0; }
.agenda-event { display: block; overflow: hidden; padding: 3px 5px; border-left: 2px solid var(--brand); border-radius: 2px; background: #f1f6f2; font-size: .65rem; white-space: nowrap; text-overflow: ellipsis; }
.agenda-event.confirmed { border-left-color: #287b95; background: #eaf4f7; }
.agenda-event.completed { border-left-color: #6c7d72; background: #eef0ef; }
.agenda-day-section { margin-top: 24px; }
.agenda-day-section > .row { margin-bottom: 12px; }
.agenda-day-section h3 { margin-top: 3px; text-transform: capitalize; }
.hydration-hero { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 220px; background: #e8f4f6; border-color: #c4dee5; }
.hydration-hero-copy { min-width: 0; }
.hydration-hero h3 { margin: 3px 0 8px; font-size: 1.45rem; }
.hydration-hero p { margin: 0; color: #356578; }
.hydration-totals { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 24px; }
.hydration-totals > div { display: grid; gap: 2px; }
.hydration-totals span { color: #356578; font-size: .76rem; font-weight: 700; }
.hydration-totals strong { font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hydration-ring { display: grid; place-items: center; flex: 0 0 146px; width: 146px; height: 146px; border-radius: 50%; background: conic-gradient(#287b95 var(--hydration-progress), #c6dce2 0); }
.hydration-ring > div { display: grid; align-content: center; justify-items: center; gap: 1px; width: 118px; height: 118px; border-radius: 50%; background: #f3fbfc; }
.hydration-ring .icon { width: 24px; height: 24px; color: #287b95; }
.hydration-ring strong { font-size: 1.55rem; font-variant-numeric: tabular-nums; }
.hydration-ring small { color: #54717b; font-size: .67rem; }
.hydration-register { padding: 18px 0; }
.hydration-register h3, #appHydrationView .home-section h3 { margin: 3px 0 0; font-size: 1.03rem; }
.hydration-quick button { display: inline-flex; align-items: center; gap: 6px; }
.hydration-quick .icon { width: 15px; height: 15px; }
.hydration-entry-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: #eaf4f7; color: #287b95; }
.hydration-entry-icon .icon { width: 16px; height: 16px; }
.hydration-empty { padding: 15px 0; color: var(--muted); }
@media (min-width: 1000px) {
  .workspace.athlete-mode .home-action-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .agenda-toolbar { align-items: stretch; }
  .agenda-toolbar > .field { width: 100%; }
  .agenda-calendar-day { min-height: 64px; padding: 5px; }
  .agenda-day-events { display: none; }
  .appointment-row { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; }
  .appointment-actions { grid-column: 2; justify-content: flex-start; }
  .appointment-details span { font-size: .85rem; }
}
@media (max-width: 420px) {
  .agenda-month-nav { width: 100%; justify-content: space-between; gap: 4px; }
  .agenda-month-nav h3 { min-width: 0; font-size: .96rem; }
  .agenda-month-nav .ghost { padding-inline: 9px; }
  .agenda-calendar-day { min-height: 54px; padding: 4px; }
  .agenda-day-count { padding-inline: 5px; }
  .agenda-day-section > .row { align-items: start; flex-wrap: wrap; }
  .hydration-hero { min-height: 0; padding: 18px; gap: 12px; }
  .hydration-hero h3 { font-size: 1.2rem; }
  .hydration-hero p { font-size: .8rem; }
  .hydration-totals { gap: 16px; margin-top: 18px; }
  .hydration-totals strong { font-size: 1.2rem; }
  .hydration-ring { flex-basis: 96px; width: 96px; height: 96px; }
  .hydration-ring > div { width: 76px; height: 76px; }
  .hydration-ring strong { font-size: 1.1rem; }
  .hydration-ring .icon { width: 17px; height: 17px; }
  .hydration-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hydration-quick button { justify-content: center; min-width: 0; padding: 0 4px; font-size: .82rem; }
  .hydration-goal-form { flex-direction: column; align-items: stretch; }
  .hydration-history { gap: 3px; }
  .hydration-day strong { font-size: .58rem; }
}

@media (min-width: 930px) {
  .workspace.athlete-mode .mobile-shell { width: calc(100% - 96px); margin: 0 0 0 96px; }
  .workspace.athlete-mode .bottom-nav {
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 96px;
    height: 100dvh;
    padding: 16px 8px;
    transform: none;
    border: 0;
    border-right: 1px solid var(--line);
    background: #fff;
    box-shadow: none;
  }
  .workspace.athlete-mode .bottom-nav .nav-btn { width: 100%; min-height: 70px; padding: 8px 4px; font-size: .74rem; }
  .workspace.athlete-mode main { padding-bottom: 64px; }
  .workspace.athlete-mode #appTrainingView > .page-head,
  .workspace.athlete-mode #athleteTrainingApp { width: min(100%, 1180px); margin-inline: auto; }
  .workspace.athlete-mode #athleteTrainingApp { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .workspace.athlete-mode #athleteTrainingApp > .list { grid-column: 1; }
  .workspace.athlete-mode #athleteTrainingApp .training-plan-switcher { padding: 20px; }
  .workspace.athlete-mode #athleteTrainingApp .training-day-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0; padding: 0; overflow: visible; }
  .workspace.athlete-mode #athleteTrainingApp .training-day-row button { min-width: 0; min-height: 68px; padding: 10px 13px; border-radius: 6px; text-align: left; }
  .workspace.athlete-mode #athleteTrainingApp .training-day-row button small { line-height: 1.3; }
  .workspace.athlete-mode #athleteTrainingApp .training-focus-card { gap: 12px; }
  .workspace.athlete-mode #athleteTrainingApp .training-focus-card > p { max-width: 90ch; line-height: 1.5; }
  .workspace.athlete-mode #athleteTrainingApp .app-exercise-body .series-table { width: min(100%, 690px); }
  .workspace.athlete-mode #athleteTrainingApp .app-exercise-body .series-row { grid-template-columns: 56px minmax(140px, 1fr) 172px 44px; gap: 12px; }
}

#trainingPrintPreview .print-sheet { min-height: 0; margin-bottom: 18px; }
#trainingPrintPreview .print-masthead { min-height: 90px; margin-bottom: 0; padding: 18px 28px; border-bottom: 0; }
#trainingPrintPreview .print-brand-mark { width: 52px; height: 52px; flex-basis: 52px; }
#trainingPrintPreview .print-sheet-body { padding: 22px 28px 24px; }
#trainingPrintPreview .print-program-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-bottom: 13px; border-bottom: 2px solid #202c30; }
#trainingPrintPreview .print-program-head h1 { margin: 3px 0 0; font-size: 1.36rem; line-height: 1.2; }
#trainingPrintPreview .print-program-head > span { color: #687a7e; font-size: .72rem; text-align: right; }
#trainingPrintPreview .print-training-block { margin: 18px 0 0; }
#trainingPrintPreview .print-training-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border-left: 3px solid var(--brand, #538e73); background: #eef2f1; }
#trainingPrintPreview .print-training-heading span { color: #64787a; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
#trainingPrintPreview .print-training-heading h2 { margin: 2px 0 0; font-size: .93rem; line-height: 1.25; }
#trainingPrintPreview .print-training-heading small { flex: 0 0 auto; color: #617377; font-size: .69rem; }
#trainingPrintPreview .print-training-note { margin: 8px 0; color: #52666a; font-size: .7rem; line-height: 1.45; white-space: pre-wrap; }
#trainingPrintPreview .print-training-note strong { color: #24373b; }
#trainingPrintPreview .print-exercise-table { margin-top: 8px; font-size: .7rem; line-height: 1.3; }
#trainingPrintPreview .print-exercise-table th { padding: 8px 7px; }
#trainingPrintPreview .print-exercise-table td { padding: 8px 7px; }
#trainingPrintPreview .print-exercise-table th:first-child { width: 27%; }
#trainingPrintPreview .print-exercise-table th:nth-child(2) { width: 7%; }
#trainingPrintPreview .print-exercise-table th:nth-child(3) { width: 10%; }
#trainingPrintPreview .print-exercise-table th:nth-child(4) { width: 11%; }
#trainingPrintPreview .print-exercise-table th:nth-child(5) { width: 45%; }
#trainingPrintPreview .print-exercise-table td strong { font-size: .72rem; }
#trainingPrintPreview .print-exercise-table td small { margin-top: 2px; font-size: .64rem; }
#trainingPrintPreview .print-notes span { display: inline; }
#trainingPrintPreview .print-footer { margin: 0 28px; padding: 12px 0 15px; }
@media (max-width: 700px) {
  #trainingPrintPreview .print-masthead { padding: 16px; }
  #trainingPrintPreview .print-sheet-body { padding: 17px 16px; }
  #trainingPrintPreview .print-program-head { align-items: flex-start; flex-direction: column; }
  #trainingPrintPreview .print-program-head > span { text-align: left; }
  #trainingPrintPreview .print-training-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  #trainingPrintPreview .print-footer { margin: 0 16px; }
}
@media print {
  #trainingPrintPreview { font: 8pt/1.3 Arial, Helvetica, sans-serif !important; }
  #trainingPrintPreview .print-sheet { min-height: 271mm; margin: 0; break-after: page; page-break-after: always; }
  #trainingPrintPreview .print-sheet:last-child { break-after: auto; page-break-after: auto; }
  #trainingPrintPreview .print-masthead { min-height: 20mm; padding: 4mm 6mm; }
  #trainingPrintPreview .print-brand-mark { width: 12mm; height: 12mm; flex-basis: 12mm; }
  #trainingPrintPreview .print-brand strong { font-size: 12pt; }
  #trainingPrintPreview .print-sheet-body { padding: 5mm 6mm 3mm; }
  #trainingPrintPreview .print-program-head { padding-bottom: 3mm; }
  #trainingPrintPreview .print-program-head h1 { font-size: 14pt; }
  #trainingPrintPreview .print-training-block { margin-top: 5mm; break-inside: avoid; page-break-inside: avoid; }
  #trainingPrintPreview .print-training-heading { padding: 2mm 3mm; }
  #trainingPrintPreview .print-training-heading h2 { font-size: 9pt; }
  #trainingPrintPreview .print-training-note { margin: 2mm 0; font-size: 7pt; }
  #trainingPrintPreview .print-exercise-table { margin-top: 2mm; font-size: 7pt; line-height: 1.2; }
  #trainingPrintPreview .print-exercise-table th { padding: 1.5mm; font-size: 6pt; }
  #trainingPrintPreview .print-exercise-table td { padding: 1.7mm 1.5mm; }
  #trainingPrintPreview .print-exercise-table td strong { font-size: 7pt; }
  #trainingPrintPreview .print-exercise-table td small { font-size: 6pt; }
  #trainingPrintPreview .print-footer { margin: 0 6mm; padding: 3mm 0; }
}

#trainingPrintPreview .print-diet-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 17px 0 8px; border: 1px solid #dce2e2; background: #f7f9f9; }
#trainingPrintPreview .print-diet-summary > div { min-width: 0; padding: 11px 13px; }
#trainingPrintPreview .print-diet-summary > div + div { border-left: 1px solid #dce2e2; }
#trainingPrintPreview .print-diet-summary small { display: block; color: #687a7e; font-size: .58rem; font-weight: 800; letter-spacing: .06em; }
#trainingPrintPreview .print-diet-summary strong { display: block; margin-top: 4px; font-size: .95rem; }
#trainingPrintPreview .print-diet-reference { margin: 0 0 17px; color: #617377; font-size: .69rem; line-height: 1.4; }
#trainingPrintPreview .print-diet-meal { margin-top: 18px; }
#trainingPrintPreview .print-diet-meal-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 10px 12px; border-left: 3px solid var(--brand, #538e73); background: #eef2f1; }
#trainingPrintPreview .print-diet-meal-head span { color: #64787a; font-size: .62rem; font-weight: 800; letter-spacing: .06em; }
#trainingPrintPreview .print-diet-meal-head h2 { margin: 2px 0 0; font-size: .93rem; }
#trainingPrintPreview .print-diet-meal-head small { color: #617377; font-size: .69rem; white-space: nowrap; }
#trainingPrintPreview .print-diet-table { width: 100%; margin-top: 8px; border: 1px solid #dce2e2; border-collapse: collapse; font-size: .72rem; }
#trainingPrintPreview .print-diet-table th { padding: 8px 10px; background: #e9eeed; color: #485e63; font-size: .58rem; letter-spacing: .05em; }
#trainingPrintPreview .print-diet-table th:first-child { width: 64%; }
#trainingPrintPreview .print-diet-table th:nth-child(2) { width: 19%; }
#trainingPrintPreview .print-diet-table th:nth-child(3) { width: 17%; }
#trainingPrintPreview .print-diet-table td { padding: 8px 10px; border-top: 1px solid #e2e7e7; vertical-align: top; overflow-wrap: anywhere; }
#trainingPrintPreview .print-diet-table tbody tr:nth-child(even) { background: #f7f9f9; }
#trainingPrintPreview .print-diet-table td small { display: block; margin-top: 3px; color: #617377; font-size: .64rem; line-height: 1.3; }
#trainingPrintPreview .print-diet-table td .print-diet-alternatives { color: #485e63; }
#trainingPrintPreview .print-diet-table td .print-diet-alternatives b { color: #24373b; }
#trainingPrintPreview .print-diet-meal-total { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid #dce2e2; border-top: 0; background: #f4f7f6; font-size: .67rem; }
#trainingPrintPreview .print-diet-meal-total span { color: #617377; }
#trainingPrintPreview .print-diet-meal-total strong { text-align: right; }
@media (max-width: 620px) {
  #trainingPrintPreview .print-diet-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #trainingPrintPreview .print-diet-summary > div:nth-child(3) { border-left: 0; border-top: 1px solid #dce2e2; }
  #trainingPrintPreview .print-diet-summary > div:nth-child(4) { border-top: 1px solid #dce2e2; }
  #trainingPrintPreview .print-diet-meal-head { align-items: flex-start; flex-direction: column; gap: 3px; }
}
@media print {
  #trainingPrintPreview .print-diet-summary { margin: 4mm 0 2mm; }
  #trainingPrintPreview .print-diet-summary > div { padding: 2mm 3mm; }
  #trainingPrintPreview .print-diet-summary strong { font-size: 8pt; }
  #trainingPrintPreview .print-diet-reference { margin-bottom: 3mm; font-size: 6.5pt; }
  #trainingPrintPreview .print-diet-meal { margin-top: 4mm; break-inside: avoid; page-break-inside: avoid; }
  #trainingPrintPreview .print-diet-meal-head { padding: 2mm 3mm; }
  #trainingPrintPreview .print-diet-meal-head h2 { font-size: 9pt; }
  #trainingPrintPreview .print-diet-table { margin-top: 2mm; font-size: 7pt; }
  #trainingPrintPreview .print-diet-table th { padding: 1.5mm 2mm; font-size: 6pt; }
  #trainingPrintPreview .print-diet-table td { padding: 1.7mm 2mm; }
  #trainingPrintPreview .print-diet-table tr { break-inside: avoid; page-break-inside: avoid; }
  #trainingPrintPreview .print-diet-table td small { font-size: 6pt; }
  #trainingPrintPreview .print-diet-meal-total { padding: 1.5mm 2mm; font-size: 6.5pt; }
}

.training-template-tools,
.training-template-save {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: end;
  gap: 9px;
}
.training-template-tools { padding-top: 16px; border-top: 1px solid var(--line); }
.training-template-save { grid-template-columns: minmax(0, 1fr) auto auto; padding: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; }
.training-template-tools .field,
.training-template-save .field { min-width: 0; margin: 0; }
.training-template-tools button,
.training-template-save button { min-height: 42px; white-space: nowrap; }
.training-template-save.hidden { display: none; }
.checkin-wellness-grid,
.checkin-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.checkin-option-grid label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--text); font-size: .85rem; letter-spacing: 0; cursor: pointer; }
.checkin-option-grid input { width: 17px; height: 17px; margin: 0; flex: 0 0 auto; }
@media (min-width: 900px) {
  .workspace.athlete-mode #athleteCheckinApp { display: block; }
  #athleteCheckinForm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
  #athleteCheckinForm > article:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .training-template-tools { grid-template-columns: minmax(0, 1fr) auto; }
  .training-template-tools .field { grid-column: 1 / -1; }
  .training-template-tools [data-save-training-template] { grid-column: 1; }
  .training-template-save { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .training-template-save .field { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
  .checkin-wellness-grid { grid-template-columns: 1fr; }
  .training-template-tools { grid-template-columns: minmax(0, 1fr) 42px; }
  .training-template-tools [data-use-training-template] { grid-column: 1 / -1; }
  .training-template-tools [data-save-training-template] { min-width: 0; white-space: normal; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.message-header-button { position: relative; }
.message-unread-count { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; border-radius: 9px; background: #ba393e; color: #fff; font-size: 10px; font-weight: 700; line-height: 1; }
.message-unread-count.hidden, .message-side-count.hidden { display: none; }
.message-side-count:not(.hidden) { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-top: 2px; padding: 0 5px; border-radius: 10px; background: #ba393e; color: #fff; font-size: 11px; font-weight: 700; }
.message-layout { display: grid; grid-template-columns: minmax(255px, 330px) minmax(0, 1fr); min-height: min(72vh, 730px); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.message-layout.athlete { grid-template-columns: minmax(0, 1fr); }
.message-layout.athlete .message-inbox { display: none; }
.message-inbox { min-width: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.message-inbox-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 8px; }
.message-inbox > .field { margin: 0; padding: 0 14px 14px; }
.message-inbox > .field input { margin-top: 7px; }
.message-thread-list { flex: 1; max-height: 620px; overflow-y: auto; border-top: 1px solid var(--line); }
.message-thread-option { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 76px; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: transparent; text-align: left; cursor: pointer; }
.message-thread-option:hover, .message-thread-option.active { background: var(--surface-2); }
.message-thread-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #dfe9e3; color: #345847; font-weight: 750; }
.message-thread-copy { display: grid; gap: 3px; min-width: 0; }
.message-thread-copy strong, .message-thread-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-thread-copy strong { color: var(--text); font-size: .88rem; }
.message-thread-copy small, .message-thread-meta small { color: var(--muted); font-size: .72rem; }
.message-thread-meta { align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 5px; }
.message-thread-meta b { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 11px; }
.message-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.message-thread-head { display: flex; align-items: center; gap: 10px; min-height: 70px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.message-thread-person { display: grid; gap: 2px; min-width: 0; }
.message-thread-person strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-thread-person small { color: var(--muted); font-size: .75rem; }
.message-back { display: none; }
.message-history { flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 320px; max-height: 585px; padding: 20px; overflow-y: auto; background: #f8faf9; }
.message-bubble { align-self: flex-start; max-width: min(80%, 560px); padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow-wrap: anywhere; }
.message-bubble.own { align-self: flex-end; border-color: #cbded2; background: #e3f0e8; }
.message-bubble p { margin: 0 0 6px; color: var(--text); font-size: .9rem; line-height: 1.45; }
.message-bubble small { display: block; color: var(--muted); font-size: .68rem; text-align: right; }
.message-empty { margin: auto; padding: 24px; color: var(--muted); text-align: center; font-size: .88rem; }
.message-older { align-self: center; border: 0; background: transparent; color: var(--soft); font-size: .78rem; cursor: pointer; }
.message-composer { display: flex; align-items: flex-end; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.message-composer textarea { flex: 1; min-width: 0; min-height: 48px; max-height: 150px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); resize: vertical; font: inherit; font-size: .88rem; }
.message-composer button { flex: 0 0 auto; width: auto; min-height: 48px; display: inline-flex; align-items: center; gap: 7px; }
@media (max-width: 700px) {
  .message-layout { display: block; height: calc(100dvh - 350px); min-height: 360px; }
  .message-inbox { height: 100%; min-height: 0; border-right: 0; }
  .message-thread { display: none; height: 100%; min-height: 0; }
  .message-layout.thread-open .message-inbox { display: none; }
  .message-layout.thread-open .message-thread, .message-layout.athlete .message-thread { display: flex; }
  .message-layout.athlete .message-back { display: none; }
  .message-back { display: inline-grid; flex: 0 0 auto; }
  .message-history { min-height: 0; max-height: none; padding: 14px; }
  .message-composer { padding: 10px; }
.message-composer button span:last-child { display: none; }
}

/* Montric platform palette; tenant accent colors still come from --brand. */
:root {
  --bg: #f3f7f8;
  --surface-2: #f5f9fa;
  --surface-3: #e6f0f2;
  --line: #d7e4e8;
  --line-soft: #e8eff1;
  --text: #142b3b;
  --muted: #5b7180;
  --soft: #35566b;
}
.auth { background: #eef6f7; }
.auth-card { box-shadow: 0 18px 55px rgba(3, 40, 81, .12); }
.auth-portal-label { display: inline-block; margin: 26px 0 9px; color: var(--brand); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.auth-other-portal { display: block; width: fit-content; margin: 18px auto 0; color: var(--soft); font-size: .9rem; text-align: center; text-decoration: none; }
.auth-other-portal:hover, .auth-other-portal:focus-visible { color: var(--brand); text-decoration: underline; }
.topbar { border-bottom-color: #d5e7ea; }
.platform-brand #auth .brand-row { display: block; }
.platform-brand #auth .brand-mark { width: min(230px, 100%); height: 94px; box-shadow: none; }
.platform-brand #auth .brand-row strong { display: none; }
.platform-brand #auth .brand-row .tiny { margin-top: 2px; }
.platform-brand .side-brand { display: block; }
.platform-brand .side-brand .brand-mark { width: 192px; max-width: 100%; height: 94px; box-shadow: none; }
.platform-brand .side-brand strong { display: none; }
.platform-brand .side-brand .tiny { margin-top: -7px; }
.platform-brand .brand-mark.has-logo-image { border-radius: 4px; }
@media (min-width: 930px) {
  .workspace:not(.athlete-mode) > .side-panel { background: #032851; border-right-color: #032851; }
  .workspace:not(.athlete-mode) .side-shortcuts button.active,
  .workspace:not(.athlete-mode) .side-bottom button.active { color: #fff; }
}
