/* ═══════════════════════════════════════════════════════════
   Atheal — Sample Plan · new data-driven components (Z1)
   Builds on plan-tour-z1.css; all values via DS tokens.
   ═══════════════════════════════════════════════════════════ */

/* generic inline icons */
.ic, .goal-pill svg, .section-kicker svg { display: inline-flex; }
svg { flex: none; }

/* ── Report switcher ── */
.report-switch { position: relative; }
.selected-report-button[aria-expanded="true"] > svg:last-child { transform: rotate(180deg); }
.selected-report-button > svg:last-child { transition: transform var(--dur-2) var(--ease-out); }
.switch-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--color-bg-elevated); border: 1px solid var(--color-stroke-weak);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 6px;
}
.switch-menu[hidden] { display: none; }
.switch-item {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px;
  width: 100%; text-align: start; background: transparent; border: none;
  border-radius: var(--radius-sm); padding: 9px 10px; cursor: pointer;
  transition: background var(--dur-2) var(--ease-out);
}
.switch-item:hover { background: var(--atheal-sand); }
.switch-item.is-active { background: var(--tint-green-weak); }
.switch-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: var(--atheal-forest); color: var(--atheal-cream);
  font: 700 11px/1 var(--font-display); letter-spacing: 0.02em;
}
.switch-text { min-width: 0; }
.switch-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--radius-sm); flex: none;
  background: var(--tint-green); color: var(--atheal-forest);
}
.switch-ic svg { width: 18px; height: 18px; }
.switch-text strong { display: block; font: var(--type-body-2-bold); font-size: 13.5px; }
.switch-text small { font: var(--type-caption); color: var(--color-fg-tertiary); }
.switch-item > svg { width: 16px; height: 16px; color: var(--atheal-green); }
.type-badge { font: var(--type-caption); font-weight: 700; padding: 3px 9px; border-radius: var(--radius-xl); white-space: nowrap; }
.type-badge.first-time { background: var(--tint-blue); color: var(--atheal-blue); }
.type-badge.follow-up { background: var(--tint-green); color: var(--atheal-green); }

/* ── Onboarding overlay ── */
.tour-intro-card.onboarding { width: min(520px, 100%); text-align: start; padding: 30px 30px 28px; animation: none; opacity: 1; transform: none; }
.onboarding .tour-close { top: 16px; inset-inline-end: 16px; }
.onboard-overline { font: var(--type-overline); letter-spacing: var(--type-overline-tracking); text-transform: uppercase; color: var(--atheal-green); }
.onboarding h2 { font: var(--type-title-3); margin: 6px 0 6px; max-width: none; }
.onboard-sub { font: var(--type-body-2); color: var(--color-fg-secondary); line-height: 1.5; max-width: none; margin: 0; }
.onboard-field { display: block; margin-top: 18px; }
.onboard-label { display: block; font: var(--type-body-2-bold); margin-bottom: 9px; }
#onboard-name {
  width: 100%; box-sizing: border-box; font: var(--type-body-1); font-size: 15px;
  padding: 12px 14px; border: 1px solid var(--color-stroke); border-radius: var(--radius-md);
  background: var(--atheal-cream); color: var(--color-fg);
}
#onboard-name::placeholder { color: var(--color-fg-tertiary); }
#onboard-name:focus { outline: none; border-color: var(--atheal-green); box-shadow: 0 0 0 3px rgba(21,154,132,0.18); }

.focus-options { display: flex; flex-direction: column; gap: 8px; }
.focus-option {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px;
  width: 100%; text-align: start; cursor: pointer;
  background: var(--atheal-cream); border: 1px solid var(--color-stroke-weak);
  border-radius: var(--radius-md); padding: 12px 14px;
  transition: border-color var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease-out);
}
.focus-option:hover { border-color: var(--color-stroke); }
.focus-option.is-selected { border-color: var(--atheal-green); background: var(--tint-green-weak); }
.focus-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-sm); flex: none;
  background: var(--color-bg-elevated); border: 1px solid var(--color-stroke-weak); color: var(--atheal-forest);
}
.focus-option.is-selected .focus-ic { background: var(--color-bg-elevated); color: var(--atheal-green); border-color: transparent; }
.focus-ic svg { width: 20px; height: 20px; }
.focus-text { min-width: 0; }
.focus-text strong { display: block; font: var(--type-body-1-bold); }
.focus-text small { font: var(--type-caption); color: var(--color-fg-secondary); }
.focus-check { display: inline-flex; opacity: 0; color: var(--atheal-green); }
.focus-check svg { width: 18px; height: 18px; }
.focus-option.is-selected .focus-check { opacity: 1; }

.onboard-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 24px; }
.onboard-actions .tour-primary { margin-top: 0; }
.onboard-tour-link { background: none; border: none; padding: 4px 2px; font: var(--type-body-2-bold); color: var(--atheal-green); cursor: pointer; }
.onboard-tour-link:hover { color: var(--atheal-forest); }

@media (max-width: 520px) {
  .focus-option { grid-template-columns: auto 1fr auto; }
  .focus-option .type-badge { display: none; }
}

/* ── Sidebar: goals + report map ── */
#goal-list { display: flex; flex-direction: column; gap: 8px; }
.goal-pill { gap: 10px; }
.goal-pill::before { display: none; }
.goal-pill svg { width: 16px; height: 16px; }

#report-map { display: flex; flex-direction: column; gap: 2px; }
.category-nav .cat-title { display: flex; align-items: center; gap: 10px; }
.category-nav button > span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.category-nav button svg { width: 17px; height: 17px; color: var(--color-fg-tertiary); }
.category-nav button.is-active svg { color: var(--atheal-green); }
.grade-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  font: 700 10px/1 var(--font-display); flex: none;
}
.grade-dot.optimal { background: var(--tint-blue); color: var(--atheal-blue); }
.grade-dot.good { background: var(--tint-green); color: var(--atheal-green); }
.grade-dot.attention { background: var(--tint-orange); color: var(--atheal-orange); }

/* ── Hero metric cards: unit + badge ── */
.metric-card strong u { font-size: 18px; font-weight: 500; text-decoration: none; color: var(--color-fg-tertiary); margin-inline-start: 3px; }
.metric-card.health-score strong u { color: var(--atheal-green-soft); }
.metric-badge {
  align-self: flex-start;
  font: var(--type-caption); font-weight: 700;
  background: var(--tint-green); color: var(--atheal-green);
  border-radius: var(--radius-xl); padding: 3px 11px; margin-bottom: 8px;
}
.metric-card.health-score .metric-badge { background: rgba(247,247,242,0.16); color: var(--atheal-cream); }

/* ── Biomarker count bar ── */
.count-card {
  background: var(--color-bg-elevated); border: 1px solid var(--color-stroke-weak);
  border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6);
}
.count-card .section-kicker { color: var(--atheal-green); }
.count-bar { display: flex; gap: 4px; height: 14px; margin: 4px 0 14px; }
.count-bar .seg { border-radius: var(--radius-xs); }
.count-bar .seg.optimal { background: var(--atheal-blue); }
.count-bar .seg.good { background: var(--atheal-green); }
.count-bar .seg.attention { background: var(--atheal-orange); }
.count-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font: var(--type-body-2); }
.count-legend span { display: inline-flex; align-items: baseline; gap: 5px; color: var(--color-fg-secondary); }
.count-legend b { font-weight: 700; color: var(--color-fg); }
.count-legend .optimal b { color: var(--atheal-blue); }
.count-legend .good b { color: var(--atheal-green); }
.count-legend .attention b { color: var(--atheal-orange); }
.count-legend .muted { margin-inline-start: auto; color: var(--color-fg-tertiary); }

/* ── Clinician summary ── */
.summary-card .doctor-avatar svg { width: 26px; height: 26px; }
.summary-card .exec { margin-top: 8px; color: var(--color-fg-secondary); font: var(--type-body-1); font-size: 14px; line-height: 1.6; max-width: 70ch; }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-4);
  background: none; border: none; padding: 0; color: var(--atheal-green);
  font: var(--type-body-2-bold); cursor: pointer;
}
.link-btn svg { width: 16px; height: 16px; }
.link-btn:hover { color: var(--atheal-forest); }

/* ── Block heading (between sections) ── */
.block-head { margin-top: var(--space-2); }
.block-head h2 { font: var(--type-title-3); margin-top: 2px; }

/* ── Priority cards (home) — level colours ── */
.priority-index { letter-spacing: 0; }
/* Priority pills: ongoing = improving → purple; medium urgency is neutral so
   purple stays reserved for "improving" (product-app status scale). */
.priority-index.resolved { color: var(--atheal-green); background: var(--tint-green); }
.priority-index.ongoing { color: var(--atheal-purple); background: var(--tint-purple); }
.priority-index.high { color: var(--atheal-orange); background: var(--tint-orange); }
.priority-index.medium { color: var(--color-fg-secondary); background: var(--tint-neutral); }
.priority-index.low { color: var(--color-fg-secondary); background: var(--atheal-sand); }
.priority-card p { margin-bottom: 2px; }

/* ── Trend chip ── */
.trend { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font: var(--type-caption); font-weight: 700; }
.trend svg { width: 15px; height: 15px; }
.trend b { font-weight: 700; }
.trend i { font-style: normal; font-weight: 600; color: var(--color-fg-tertiary); }
.trend.up { color: var(--atheal-purple); }
.trend.down { color: var(--atheal-orange); }

/* ── Reference tags ── */
.ref-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ref-tag {
  font: var(--type-caption); font-weight: 700; padding: 3px 10px;
  border-radius: var(--radius-xl); background: var(--atheal-sand); color: var(--color-fg-secondary);
}
.ref-tag.attention { background: var(--tint-orange); color: var(--atheal-orange); }
.ref-tag.supporting, .ref-tag.normalizing { background: var(--tint-green); color: var(--atheal-green); }

/* ── Progress since last (home) ── */
.progress-wrap {
  background: var(--color-bg-elevated); border: 1px solid var(--color-stroke-weak);
  border-radius: var(--radius-lg); padding: var(--space-6);
}
.progress-head .section-kicker { color: var(--atheal-green); }
.progress-head h2 { font: var(--type-title-4); margin-bottom: var(--space-5); }
.delta-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.delta-col { display: flex; flex-direction: column; gap: 8px; }
.delta-col-label {
  display: inline-flex; align-items: center; gap: 7px;
  font: var(--type-overline); letter-spacing: var(--type-overline-tracking);
  text-transform: uppercase; margin-bottom: 2px;
}
.delta-col-label svg { width: 15px; height: 15px; }
.delta-col-label.win { color: var(--atheal-purple); }
.delta-col-label.concern { color: var(--atheal-orange); }
.delta {
  background: var(--atheal-cream); border: 1px solid var(--color-stroke-weak);
  border-radius: var(--radius-md); padding: 11px 14px;
  border-inline-start: 3px solid var(--color-stroke);
}
.delta.win { border-inline-start-color: var(--atheal-purple); }
.delta.concern { border-inline-start-color: var(--atheal-orange); }
.delta b { display: block; font: var(--type-body-2-bold); font-size: 13.5px; }
.delta-vals { display: inline-flex; align-items: center; gap: 6px; margin: 3px 0; font: var(--type-body-2); color: var(--color-fg-tertiary); }
.delta-vals svg { width: 14px; height: 14px; color: var(--color-fg-tertiary); }
.delta-vals strong { font-weight: 700; color: var(--color-fg); font-variant-numeric: tabular-nums; }
.delta i { font-style: normal; font: var(--type-caption); color: var(--color-fg-secondary); }

.disclosure.subtle {
  display: inline-flex; align-items: center; gap: 6px; width: max-content;
  background: none; border: none; padding: 8px 2px 2px; color: var(--atheal-green);
  font: var(--type-body-2-bold); cursor: pointer;
}
.disclosure.subtle svg { width: 15px; height: 15px; transition: transform var(--dur-2) var(--ease-out); }
.collapsible.is-open > .disclosure.subtle svg { transform: rotate(180deg); }

/* ── Health report: category headings ── */
.category-heading .cat-title { display: flex; align-items: flex-start; gap: 12px; }
.category-heading .cat-title > svg {
  width: 38px; height: 38px; padding: 8px; flex: none;
  border-radius: var(--radius-sm); background: var(--tint-green); color: var(--atheal-forest);
}
.all-clear {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font: var(--type-body-2-bold); color: var(--atheal-green);
}
.all-clear svg { width: 18px; height: 18px; }
.category-note.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.collapsible.is-open .category-note.clamp { -webkit-line-clamp: unset; }
.cat-narr .inline-more { padding-top: 6px; }
.marker-list.compact .marker-card { background: var(--color-bg-elevated); }

/* ── Priorities list ── */
.plan-list { display: flex; flex-direction: column; gap: var(--space-3); }
.plan-item {
  background: var(--color-bg-elevated); border: 1px solid var(--color-stroke-weak);
  border-radius: var(--radius-lg); overflow: hidden;
}
.plan-item .disclosure {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center;
  gap: 14px; width: 100%; text-align: start; background: none; border: none;
  padding: var(--space-4) var(--space-5); cursor: pointer;
}
.pri-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  font: var(--type-body-1-bold); font-variant-numeric: tabular-nums;
}
.pri-num.resolved { background: var(--tint-green); color: var(--atheal-green); }
.pri-num.ongoing { background: var(--tint-purple); color: var(--atheal-purple); }
.pri-num.high { background: var(--tint-orange); color: var(--atheal-orange); }
.pri-num.medium { background: var(--tint-neutral); color: var(--color-fg-secondary); }
.pri-num.low { background: var(--atheal-sand); color: var(--color-fg-secondary); }
.pri-main { min-width: 0; }
.pri-main strong { display: block; font: var(--type-body-1-bold); }
.pri-sub { display: block; font: var(--type-body-2); color: var(--color-fg-secondary); margin-top: 2px; }
.pri-level {
  font: var(--type-caption); font-weight: 700; padding: 4px 11px; border-radius: var(--radius-xl);
  white-space: nowrap;
}
.pri-level.resolved { background: var(--tint-green); color: var(--atheal-green); }
.pri-level.ongoing { background: var(--tint-purple); color: var(--atheal-purple); }
.pri-level.high { background: var(--tint-orange); color: var(--atheal-orange); }
.pri-level.medium { background: var(--tint-neutral); color: var(--color-fg-secondary); }
.pri-level.low { background: var(--atheal-sand); color: var(--color-fg-secondary); }
.plan-item .disclosure > svg { width: 18px; height: 18px; color: var(--color-fg-tertiary); transition: transform var(--dur-2) var(--ease-out); }
.plan-item.is-open .disclosure > svg { transform: rotate(180deg); }
.plan-item .collapse-body { padding: 0 var(--space-5) var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.plan-item .collapse-body[hidden] { display: none; }
.detail-row { display: flex; flex-direction: column; gap: 4px; }
.detail-label {
  font: var(--type-overline); letter-spacing: var(--type-overline-tracking);
  text-transform: uppercase; color: var(--color-fg-tertiary);
}
.detail-row p { font: var(--type-body-2); font-size: 13.5px; color: var(--color-fg-secondary); line-height: 1.55; }
.action-block { background: var(--atheal-cream); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); }
.action-block h4 { display: flex; align-items: center; gap: 7px; font: var(--type-body-2-bold); color: var(--atheal-forest); margin-bottom: 8px; }
.action-block h4 svg { width: 16px; height: 16px; color: var(--atheal-green); }
.action-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.action-list li {
  position: relative; padding-inline-start: 18px; font: var(--type-body-2); color: var(--color-fg-secondary);
}
.action-list li::before {
  content: ""; position: absolute; inset-inline-start: 4px; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--atheal-green);
}

/* ── Nutrition: macros ── */
.macro-card {
  background: var(--color-bg-elevated); border: 1px solid var(--color-stroke-weak);
  border-radius: var(--radius-lg); padding: var(--space-6);
}
.macro-card .section-kicker { color: var(--atheal-green); }
.macro-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-top: var(--space-2); }
.macro-item { display: flex; flex-direction: column; gap: 4px; padding: var(--space-4); background: var(--atheal-cream); border-radius: var(--radius-md); }
.macro-label { font: var(--type-overline); letter-spacing: var(--type-overline-tracking); text-transform: uppercase; color: var(--color-fg-tertiary); }
.macro-item strong { font: 500 30px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.macro-item strong u { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--color-fg-tertiary); margin-inline-start: 2px; }
.macro-item small { font: var(--type-caption); color: var(--color-fg-secondary); line-height: 1.45; }
.meal-dist { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--color-stroke-weak); }
.meal-dist-label { font: var(--type-overline); letter-spacing: var(--type-overline-tracking); text-transform: uppercase; color: var(--color-fg-tertiary); }
.meal-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); align-items: end; height: 130px; margin-top: 14px; }
.meal-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.meal-bar .bar-fill { width: 100%; max-width: 56px; background: var(--atheal-green); border-radius: var(--radius-sm) var(--radius-sm) 0 0; min-height: 8px; }
.meal-bar b { font: var(--type-body-2-bold); font-variant-numeric: tabular-nums; }
.meal-bar i { font-style: normal; font: var(--type-caption); color: var(--color-fg-tertiary); }

/* ── Nutrition: food cards ── */
.food-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.food-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--color-bg-elevated); border: 1px solid var(--color-stroke-weak);
  border-radius: var(--radius-lg); padding: var(--space-5);
  border-top: 3px solid var(--atheal-green);
}
.food-card.limit { border-top-color: var(--atheal-orange); }
.food-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.food-top h3 { font: var(--type-headline); font-size: 16px; }
.new-badge {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  font: var(--type-caption); font-weight: 700; color: var(--atheal-green);
  background: var(--tint-green); border-radius: var(--radius-xl); padding: 3px 9px;
}
.new-badge svg { width: 13px; height: 13px; }
.food-card p { font: var(--type-body-2); color: var(--color-fg-secondary); line-height: 1.5; flex: 1; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font: var(--type-caption); font-weight: 700; color: var(--color-fg-secondary);
  background: var(--atheal-sand); border-radius: var(--radius-xl); padding: 4px 11px;
}
.chip svg { width: 13px; height: 13px; color: var(--color-fg-tertiary); }

/* ── Nutrition: supplements ── */
.supp-group { display: flex; flex-direction: column; gap: var(--space-2); }
.supp-group + .supp-group { margin-top: var(--space-2); }
.supp-sub { font: var(--type-overline); letter-spacing: var(--type-overline-tracking); text-transform: uppercase; color: var(--color-fg-tertiary); margin-bottom: 4px; }
.supp-card {
  background: var(--color-bg-elevated); border: 1px solid var(--color-stroke-weak);
  border-radius: var(--radius-md); overflow: hidden;
}
.supp-card .disclosure {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px;
  width: 100%; text-align: start; background: none; border: none; padding: var(--space-4); cursor: pointer;
}
.supp-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-sm); flex: none;
  background: var(--tint-green); color: var(--atheal-forest);
}
.supp-ic svg { width: 19px; height: 19px; }
.supp-main { min-width: 0; }
.supp-main strong { display: block; font: var(--type-body-1-bold); }
.supp-meta { font: var(--type-body-2); color: var(--color-fg-secondary); }
.supp-status { font: var(--type-caption); font-weight: 700; padding: 4px 10px; border-radius: var(--radius-xl); white-space: nowrap; }
.supp-status.new { background: var(--tint-green); color: var(--atheal-green); }
.supp-status.continuing { background: var(--tint-blue); color: var(--atheal-blue); }
.supp-card .disclosure > svg { width: 18px; height: 18px; color: var(--color-fg-tertiary); transition: transform var(--dur-2) var(--ease-out); }
.supp-card.is-open .disclosure > svg { transform: rotate(180deg); }
.supp-card .collapse-body { padding: 0 var(--space-4) var(--space-4) 64px; display: flex; flex-direction: column; gap: 10px; }
.supp-card .collapse-body[hidden] { display: none; }
.supp-card .collapse-body p { font: var(--type-body-2); color: var(--color-fg-secondary); line-height: 1.55; }
.supp-facts { display: flex; gap: var(--space-5); }
.supp-facts span { font: var(--type-body-2-bold); }
.supp-facts u { display: block; font: var(--type-caption); font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: var(--type-overline-tracking); color: var(--color-fg-tertiary); margin-bottom: 2px; }
.supp-note { display: flex; align-items: center; gap: 7px; font: var(--type-body-2); color: var(--atheal-orange); background: var(--tint-orange); border-radius: var(--radius-sm); padding: 8px 12px; }
.supp-note svg { width: 15px; height: 15px; flex: none; }
.buy-link { display: inline-flex; align-items: center; gap: 6px; width: max-content; font: var(--type-body-2-bold); color: var(--atheal-forest); text-decoration: none; }
.buy-link svg { width: 15px; height: 15px; }
.buy-link:hover { color: var(--atheal-green); }

/* ── Nutrition: daily schedule ── */
.schedule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.schedule-col { background: var(--color-bg-elevated); border: 1px solid var(--color-stroke-weak); border-radius: var(--radius-lg); padding: var(--space-5); }
.schedule-head { display: flex; align-items: center; gap: 9px; font: var(--type-body-1-bold); margin-bottom: 12px; }
.schedule-head svg { width: 20px; height: 20px; color: var(--atheal-green); }
.schedule-item { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--color-stroke-weak); }
.schedule-item b { font: var(--type-body-2-bold); }
.schedule-item i { font-style: normal; font: var(--type-caption); color: var(--color-fg-tertiary); text-align: end; }

/* ── Movement: week ── */
.week-card { background: var(--color-bg-elevated); border: 1px solid var(--color-stroke-weak); border-radius: var(--radius-lg); padding: var(--space-6); }
.week-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--space-4); }
.week-head .overline { font: var(--type-overline); letter-spacing: var(--type-overline-tracking); text-transform: uppercase; color: var(--color-fg-tertiary); }
.week-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day-cell {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px; border-radius: var(--radius-md); border: 1px solid var(--color-stroke-weak);
  background: var(--atheal-cream); cursor: pointer; text-align: center;
  transition: border-color var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.day-cell:hover:not([disabled]) { border-color: var(--atheal-green); }
.day-cell:active:not([disabled]) { transform: scale(0.97); }
.day-cell[disabled] { cursor: default; opacity: 0.72; }
.day-cell.is-selected { border-color: var(--atheal-green); background: var(--tint-green-weak); }
.day-name { font: var(--type-overline); letter-spacing: var(--type-overline-tracking); text-transform: uppercase; color: var(--color-fg-tertiary); }
.day-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; background: var(--color-bg-elevated); border: 1px solid var(--color-stroke-weak);
}
.day-ic svg { width: 20px; height: 20px; }
.day-cell.strength .day-ic { color: var(--atheal-green); }
.day-cell.cardio .day-ic { color: var(--atheal-blue); }
.day-cell.rest .day-ic, .day-cell.recovery .day-ic { color: var(--atheal-purple); }
.day-cell.is-today { border-color: var(--atheal-green); box-shadow: inset 0 0 0 1px var(--atheal-green); }
.day-label { font: var(--type-body-2-bold); font-size: 12px; line-height: 1.2; }
.day-dur { font: var(--type-caption); color: var(--color-fg-tertiary); }

.workout-list { display: flex; flex-direction: column; gap: var(--space-2); }
.workout-card { background: var(--color-bg-elevated); border: 1px solid var(--color-stroke-weak); border-radius: var(--radius-md); overflow: hidden; scroll-margin-top: 120px; }
.workout-card .disclosure {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  width: 100%; text-align: start; background: none; border: none; padding: var(--space-4) var(--space-5); cursor: pointer;
}
.wk-ic { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--tint-green); color: var(--atheal-forest); flex: none; }
.wk-ic svg { width: 19px; height: 19px; }
.wk-main strong { display: block; font: var(--type-body-1-bold); }
.wk-meta { font: var(--type-body-2); color: var(--color-fg-secondary); }
.workout-card .disclosure > svg { width: 18px; height: 18px; color: var(--color-fg-tertiary); transition: transform var(--dur-2) var(--ease-out); }
.workout-card.is-open .disclosure > svg { transform: rotate(180deg); }
.workout-card .collapse-body { padding: 0 var(--space-5) var(--space-4); }
.ex-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--color-stroke-weak); }
.ex-row b { font: var(--type-body-2-bold); }
.ex-row span { font: var(--type-body-2); color: var(--color-fg-secondary); font-variant-numeric: tabular-nums; }
.ex-row a { display: inline-flex; color: var(--color-fg-tertiary); }
.ex-row a:hover { color: var(--atheal-green); }
.ex-row a svg { width: 16px; height: 16px; }

.tips-card { background: var(--atheal-sand); border-radius: var(--radius-lg); padding: var(--space-6); }
.tips-card h2 { display: flex; align-items: center; gap: 9px; font: var(--type-title-4); margin-bottom: var(--space-3); }
.tips-card h2 svg { width: 22px; height: 22px; color: var(--atheal-green); }
.tips-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tips-list li { position: relative; padding-inline-start: 20px; font: var(--type-body-1); font-size: 14px; color: var(--color-fg-secondary); }
.tips-list li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--atheal-green); }

/* ── Track: recovery progress ── */
.progress-card-2, .timeline-card { background: var(--color-bg-elevated); border: 1px solid var(--color-stroke-weak); border-radius: var(--radius-lg); padding: var(--space-6); }
.progress-card-2 .progress-head h2, .timeline-card .progress-head h2 { margin-bottom: var(--space-4); }
.progress-ind { padding: 12px 0; border-top: 1px solid var(--color-stroke-weak); }
.progress-ind:first-of-type { border-top: none; }
.progress-ind-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.progress-ind-top span { font: var(--type-body-2-bold); }
.progress-ind-top b { font: var(--type-caption); font-weight: 700; color: var(--color-fg-tertiary); white-space: nowrap; }
.progress-track { height: 8px; border-radius: var(--radius-pill); background: var(--atheal-sand); overflow: hidden; }
.progress-track span { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--atheal-green); }

/* habit icon */
.habit-id { display: flex; align-items: center; gap: 11px; }
.habit-id svg { width: 22px; height: 22px; color: var(--atheal-green); flex: none; }

/* ── Track: retests ── */
.retest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.retest-card { display: flex; flex-direction: column; gap: 8px; background: var(--color-bg-elevated); border: 1px solid var(--color-stroke-weak); border-radius: var(--radius-lg); padding: var(--space-5); }
.retest-top { display: flex; align-items: center; justify-content: space-between; }
.retest-top svg { width: 22px; height: 22px; color: var(--atheal-green); }
.retest-when { font: var(--type-caption); font-weight: 700; color: var(--color-fg-secondary); background: var(--atheal-sand); border-radius: var(--radius-xl); padding: 4px 11px; }
.retest-card h3 { font: var(--type-headline); font-size: 16px; }
.retest-card p { font: var(--type-body-2); color: var(--color-fg-secondary); line-height: 1.5; flex: 1; }
.retest-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: max-content;
  background: transparent; border: 1px solid var(--color-stroke-weak); border-radius: var(--radius-md);
  padding: 9px 16px; font: var(--type-body-2-bold); color: var(--color-fg); cursor: pointer;
  transition: background var(--dur-2) var(--ease-out);
}
.retest-btn:hover { background: var(--atheal-sand); }
.retest-btn svg { width: 15px; height: 15px; }
.retest-btn.is-scheduled { background: var(--tint-green); color: var(--atheal-green); border-color: transparent; }

/* ── Track: timeline ── */
.timeline { display: flex; flex-direction: column; }
.timeline-step { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 0 0 var(--space-5) 0; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-dot { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--atheal-green); margin-top: 3px; flex: none; }
.timeline-step:not(:last-child) .timeline-dot::after { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 2px; height: calc(100% + var(--space-5) - 16px); background: var(--color-stroke-weak); }
.timeline-step b { font: var(--type-body-1-bold); }
.timeline-step p { font: var(--type-body-2); color: var(--color-fg-secondary); margin-top: 3px; line-height: 1.55; }

/* ── Track: signs + retest panel ── */
.signs-card { background: var(--atheal-sand); border-radius: var(--radius-lg); padding: var(--space-6); }
.signs-card h2 { display: flex; align-items: center; gap: 9px; font: var(--type-title-4); margin-bottom: var(--space-3); }
.signs-card h2 svg { width: 22px; height: 22px; color: var(--atheal-green); }
.signs-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.signs-list li { display: flex; align-items: flex-start; gap: 9px; font: var(--type-body-1); font-size: 14px; color: var(--color-fg-secondary); }
.signs-list li svg { width: 18px; height: 18px; color: var(--atheal-green); flex: none; margin-top: 1px; }
.retest-markers { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--color-stroke); }
.retest-markers .overline { display: block; margin-bottom: 10px; }
.marker-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.marker-chip { font: var(--type-caption); font-weight: 700; color: var(--color-fg-secondary); background: var(--color-bg-elevated); border: 1px solid var(--color-stroke-weak); border-radius: var(--radius-xl); padding: 4px 12px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .delta-cols { grid-template-columns: 1fr; }
  .food-grid, .schedule-grid, .retest-grid, .macro-grid { grid-template-columns: 1fr 1fr; }
  .signs-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .food-grid, .schedule-grid, .retest-grid, .macro-grid { grid-template-columns: 1fr; }
  .meal-bars { gap: 8px; }
  .week-row { grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .day-cell { padding: 8px 3px; }
  .day-ic { width: 30px; height: 30px; }
  .day-label, .day-dur { font-size: 10px; }
  .plan-item .disclosure { grid-template-columns: auto 1fr auto; gap: 10px; }
  .plan-item .pri-level { display: none; }
  .supp-card .disclosure { grid-template-columns: auto 1fr auto; }
  .supp-card .disclosure .supp-status { display: none; }
  .supp-card .collapse-body { padding-inline-start: var(--space-4); }
  .ex-row { grid-template-columns: 1fr auto; }
  .ex-row a { grid-column: 2; }
}
