:root {
  --bg: #f4f6f3;
  --surface: #ffffff;
  --surface-2: #eef1ed;
  --text: #17201b;
  --muted: #69736d;
  --line: #dfe4df;
  --green: #2f7d50;
  --green-dark: #215d3a;
  --green-soft: #dff0e5;
  --lime: #c8f05a;
  --orange: #e97732;
  --orange-soft: #fff0e6;
  --blue: #3677bc;
  --blue-soft: #e7f1fb;
  --charcoal: #17201b;
  --danger: #b3483b;
  --shadow: 0 12px 32px rgba(26, 39, 31, .11);
  --safe-bottom: max(14px, env(safe-area-inset-bottom));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
body { margin: 0; min-height: 100vh; background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(47, 125, 80, .25); outline-offset: 2px; }
button, .choice, label { -webkit-tap-highlight-color: transparent; }
svg { width: 20px; height: 20px; stroke-width: 2; }

.app-shell { min-height: 100vh; }
.auth-gate { position: fixed; z-index: 300; inset: 0; display: none; overflow-y: auto; padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); background: var(--bg); }
.auth-gate.visible { display: grid; place-items: center; }
.auth-panel { width: min(100%, 430px); }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.auth-brand > span:last-child strong, .auth-brand > span:last-child small { display: block; }
.auth-brand > span:last-child strong { font-size: 17px; }
.auth-brand > span:last-child small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.auth-visual { position: relative; height: min(39vh, 350px); min-height: 260px; overflow: hidden; border-radius: 8px; background: var(--charcoal); }
.auth-visual > img { width: 100%; height: 100%; object-fit: cover; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(12,17,14,.86)); }
.auth-visual > div { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 17px; color: white; }
.auth-visual span, .auth-visual strong, .auth-visual small { display: block; }
.auth-visual span { margin-bottom: 4px; color: var(--lime); font-size: 11px; font-weight: 800; }
.auth-visual strong { font-size: 22px; }
.auth-visual small { margin-top: 5px; color: rgba(255,255,255,.7); font-size: 11px; }
.auth-copy { margin: 24px 0 18px; }
.auth-copy h1 { margin: 0 0 9px; font-size: 27px; line-height: 1.2; letter-spacing: 0; }
.auth-copy > p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.auth-primary, .auth-secondary { width: 100%; }
.auth-secondary { margin-top: 9px; }
.auth-terms { margin: 13px 10px 0; color: var(--muted); font-size: 9px; line-height: 1.5; text-align: center; }
.side-rail { display: none; }
.app-main { width: 100%; min-height: 100vh; padding: 0 18px calc(98px + var(--safe-bottom)); }
.view { display: none; max-width: 760px; margin: 0 auto; padding-top: max(22px, env(safe-area-inset-top)); }
.view.active { display: block; animation: view-in .22s ease-out; }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.page-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.eyebrow { margin: 0 0 5px; color: var(--green); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.page-header h1, .onboarding-step h1, .player-content h1 { margin: 0; font-size: clamp(24px, 7vw, 32px); line-height: 1.18; letter-spacing: 0; }
.icon-button { position: relative; width: 44px; height: 44px; flex: 0 0 44px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; }
.icon-button.subtle { background: var(--surface-2); border-color: transparent; }
.icon-button.dark { color: #fff; background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.18); }
.notification-dot { position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border: 2px solid white; border-radius: 50%; background: var(--orange); }

.status-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 0 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.status-strip > div { min-width: 0; padding: 13px 9px; background: var(--surface); text-align: center; }
.status-strip span, .status-strip strong { display: block; }
.status-strip span { margin-bottom: 5px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.status-strip strong { font-size: 15px; }

.workout-spotlight { position: relative; min-height: 300px; overflow: hidden; border-radius: 8px; background: #29342d; color: #fff; }
.workout-spotlight > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.spotlight-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,16,13,.15) 5%, rgba(12,16,13,.26) 40%, rgba(12,16,13,.9) 100%); }
.spotlight-content { position: relative; min-height: 300px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.spotlight-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tag { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 5px 9px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.tag svg { width: 15px; height: 15px; }
.tag-light { background: rgba(255,255,255,.88); color: var(--text); backdrop-filter: blur(10px); }
.spotlight-status { font-size: 12px; font-weight: 700; }
.spotlight-content p { margin: 0 0 6px; color: rgba(255,255,255,.78); font-size: 13px; }
.spotlight-content h2 { margin: 0 0 12px; font-size: 25px; letter-spacing: 0; }
.spotlight-meta { display: flex; flex-wrap: wrap; gap: 14px; color: rgba(255,255,255,.88); font-size: 13px; }
.spotlight-meta span { display: inline-flex; align-items: center; gap: 6px; }
.spotlight-meta svg { width: 16px; height: 16px; }

.section-heading { min-height: 56px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 28px 0 14px; }
.section-heading.compact-heading { margin-top: 24px; }
.section-heading h2 { margin: 0; font-size: 20px; letter-spacing: 0; }
.text-button { padding: 7px 0; border: 0; background: transparent; color: var(--green); font-size: 13px; font-weight: 750; cursor: pointer; }
.text-button.light-text { color: #fff; }

.exercise-list { display: grid; gap: 9px; }
.exercise-card { min-height: 94px; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; text-align: left; }
.exercise-card:hover { border-color: #bdc8c0; }
.exercise-number { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); color: var(--green); font-weight: 800; }
.exercise-card > span:nth-child(2) { min-width: 0; }
.exercise-card strong, .exercise-card small { display: block; }
.exercise-card strong { margin-bottom: 6px; font-size: 15px; }
.exercise-card small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.exercise-side { min-width: 80px; text-align: right; }
.exercise-side span, .exercise-side small { display: block; }
.exercise-side span { margin-bottom: 6px; color: var(--orange); font-size: 12px; font-weight: 750; }
.exercise-side small { color: var(--muted); }

.routine-guides { display: grid; gap: 8px; margin-top: 12px; }
.routine-guides article { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 11px; min-height: 64px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.routine-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 7px; }
.routine-icon.warm { color: var(--orange); background: var(--orange-soft); }
.routine-icon.cool { color: var(--blue); background: var(--blue-soft); }
.routine-guides h2 { margin: 0 0 4px; font-size: 12px; }
.routine-guides p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.readiness-band, .milestone-band { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 20px; padding: 15px; border: 1px solid #d2dfd6; border-radius: 8px; background: var(--green-soft); }
.readiness-icon, .milestone-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--green); }
.readiness-band h2 { margin: 0 0 3px; font-size: 15px; }
.readiness-band p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.motivation-band { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf8; }
.motivation-band > svg { width: 24px; height: 24px; color: var(--orange); }
.motivation-band p { margin: 0 0 3px; color: var(--muted); font-size: 10px; }
.motivation-band h2 { margin: 0; font-size: 14px; line-height: 1.45; }

.primary-button, .secondary-button, .outline-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border-radius: 7px; font-weight: 800; cursor: pointer; }
.primary-button { border: 1px solid var(--green-dark); background: var(--green-dark); color: #fff; box-shadow: 0 8px 18px rgba(33,93,58,.18); }
.primary-button:hover { background: #194c2e; }
.secondary-button { border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.secondary-button.small { min-height: 36px; padding: 0 13px; font-size: 12px; }
.outline-button { border: 1px solid var(--line); background: transparent; color: var(--text); }
.outline-button.full { width: 100%; margin-top: 22px; }
.workout-action { width: 100%; margin-top: 12px; }
.hero-photo-button { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--muted); font-size: 11px; }
.hero-photo-button svg { width: 15px; height: 15px; }
.training-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }.training-tools button { min-height: 68px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-align: left; cursor: pointer; }.training-tools button > svg:first-child { color: var(--green); }.training-tools button > svg:last-child { width: 15px; color: var(--muted); }.training-tools strong, .training-tools small { display: block; }.training-tools strong { margin-bottom: 3px; font-size: 12px; }.training-tools small { color: var(--muted); font-size: 10px; line-height: 1.3; }

.bottom-nav { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: calc(70px + var(--safe-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 8px var(--safe-bottom); border-top: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(18px); }
.bottom-nav button { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; background: transparent; color: #7b847e; font-size: 10px; cursor: pointer; }
.bottom-nav svg { width: 21px; height: 21px; }
.bottom-nav button.active { color: var(--green-dark); font-weight: 800; }

.week-progress { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.progress-copy { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.progress-copy span { color: var(--muted); }
.progress-track { height: 7px; margin-top: 14px; overflow: hidden; border-radius: 4px; background: var(--surface-2); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.reschedule-banner { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 10px; padding: 12px; border-left: 3px solid var(--blue); background: var(--blue-soft); color: #245b91; }
.reschedule-banner[hidden] { display: none; }
.reschedule-banner svg { width: 19px; height: 19px; }
.reschedule-banner strong { display: block; font-size: 12px; }
.reschedule-banner p { margin: 4px 0 0; color: #587a9c; font-size: 10px; line-height: 1.5; }
.plan-review { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 10px; padding: 13px; border: 1px solid #d9d4c7; border-radius: 8px; background: #fcfbf7; }
.review-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 7px; color: #7a621f; background: #f7efd5; }
.review-icon svg { width: 19px; height: 19px; }
.plan-review p { margin: 0 0 3px; color: #7a621f; font-size: 11px; font-weight: 800; }
.plan-review h2 { margin: 0; font-size: 13px; }
.plan-review small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.week-selector { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 16px; }
.day { min-width: 0; height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 5px 2px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.day span { font-size: 11px; }.day strong { font-size: 14px; }.day svg { width: 12px; height: 12px; }
.day.done { color: var(--green); }.day.current { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }

.schedule-list { border-top: 1px solid var(--line); }
.schedule-row { min-height: 78px; display: grid; grid-template-columns: 42px 40px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.schedule-row.selected { margin: 4px -8px; padding: 0 8px; border: 1px solid #b6d4c0; border-radius: 8px; background: var(--green-soft); }
.schedule-day { color: var(--muted); font-size: 12px; }.schedule-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 7px; background: var(--surface); color: var(--green); }
.schedule-row > div:nth-child(3) { min-width: 0; }.schedule-row strong, .schedule-row div span { display: block; }.schedule-row strong { margin-bottom: 5px; font-size: 14px; }.schedule-row div span, .schedule-kcal { color: var(--muted); font-size: 11px; }
.schedule-row > button { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }.schedule-row > button svg { width: 18px; }
.future-heading { margin-top: 24px; }
.future-heading > span { color: var(--muted); font-size: 11px; }
.future-plan-list { display: grid; gap: 8px; }
.future-plan-card { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 11px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; }
.future-plan-card:hover { border-color: #9db5a4; }
.future-plan-card.is-rest { opacity: .78; cursor: default; }
.future-plan-date { display: grid; gap: 2px; color: var(--muted); font-size: 10px; text-align: center; }
.future-plan-date strong { color: var(--text); font-size: 15px; }
.future-plan-card h3 { margin: 0 0 3px; font-size: 13px; }
.future-plan-card p { margin: 0; color: var(--muted); font-size: 10px; }
.future-plan-card svg { width: 18px; height: 18px; color: var(--green); }
.coach-note { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 20px; padding: 16px; border-radius: 8px; background: var(--charcoal); color: white; }
.coach-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--text); }.coach-note span { color: var(--lime); font-size: 11px; font-weight: 800; }.coach-note p { margin: 5px 0 0; color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.6; }

.nutrition-summary { min-height: 150px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px; padding: 18px; border-radius: 8px; background: var(--charcoal); color: #fff; }
.nutrition-ring { width: 104px; height: 104px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--lime) 0 62%, rgba(255,255,255,.14) 62% 100%); }
.nutrition-ring::before { content: ""; grid-area: 1 / 1; width: 78px; height: 78px; border-radius: 50%; background: var(--charcoal); }
.nutrition-ring > span { position: relative; grid-area: 1 / 1; text-align: center; }
.nutrition-ring strong, .nutrition-ring small { display: block; }
.nutrition-ring strong { font-size: 20px; }
.nutrition-ring small { margin-top: 2px; color: rgba(255,255,255,.6); font-size: 9px; }
.nutrition-copy .eyebrow { color: var(--lime); }
.nutrition-copy h2 { margin: 0 0 7px; font-size: 18px; line-height: 1.3; }
.nutrition-copy > p:last-child { margin: 0; color: rgba(255,255,255,.65); font-size: 11px; }
.diet-plan-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin-top: 12px; padding: 15px; border: 1px solid #d5dfd7; border-radius: 8px; background: #f7faf7; }
.diet-plan-card h2 { margin: 0 0 5px; font-size: 15px; }.diet-plan-card p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.diet-target-grid { display: grid; grid-template-columns: repeat(2, minmax(74px, 1fr)); gap: 8px; }.diet-target-grid span { padding: 9px; border-radius: 7px; background: var(--surface); text-align: center; }.diet-target-grid small, .diet-target-grid strong, .diet-target-grid em { display: block; }.diet-target-grid small, .diet-target-grid em { color: var(--muted); font-size: 9px; font-style: normal; }.diet-target-grid strong { margin: 4px 0 2px; font-size: 12px; }
.macro-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.macro-grid article { min-width: 0; padding: 12px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.macro-grid span, .macro-grid strong { display: block; }
.macro-grid article > div:first-child span { margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.macro-grid strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.macro-track { height: 5px; margin-top: 10px; overflow: hidden; border-radius: 3px; background: var(--surface-2); }
.macro-track > span { height: 100%; border-radius: inherit; background: var(--green); }
.macro-track.orange > span { background: var(--orange); }
.macro-track.blue > span { background: var(--blue); }
.food-scan { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 13px; margin-top: 18px; padding: 17px; border: 1px dashed #a9b8ad; border-radius: 8px; background: #f8faf8; }
.food-scan-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 8px; background: var(--green-soft); color: var(--green); }
.food-scan > div:nth-child(3) { min-width: 0; }
.food-scan h2 { margin: 0 0 5px; font-size: 17px; }
.food-scan p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.food-scan > .primary-button { grid-column: 1 / -1; width: 100%; }
.food-analysis { margin-top: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.analysis-photo { position: relative; height: 220px; overflow: hidden; border-radius: 8px; background: var(--surface-2); }
.analysis-photo img { width: 100%; height: 100%; object-fit: cover; }
.analysis-photo > span { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 6px; background: rgba(255,255,255,.92); color: var(--green-dark); font-size: 10px; font-weight: 800; }
.analysis-photo svg { width: 14px; height: 14px; }
.analysis-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.analysis-metrics > div { min-width: 0; padding: 10px 5px; background: var(--bg); text-align: center; }
.analysis-metrics span, .analysis-metrics strong, .analysis-metrics small { display: block; }
.analysis-metrics span { margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.analysis-metrics strong { font-size: 12px; line-height: 1.3; }
.analysis-metrics small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.estimate-note { display: grid; grid-template-columns: auto 1fr; gap: 7px; margin: 13px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.estimate-note svg { width: 15px; height: 15px; }
.full-analysis { width: 100%; margin-top: 14px; }
.meal-list { border-top: 1px solid var(--line); }
.meal-list article { min-height: 72px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.meal-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; }
.meal-icon.breakfast { color: var(--orange); background: var(--orange-soft); }
.meal-icon.lunch { color: var(--green); background: var(--green-soft); }
.meal-icon.snack { color: var(--blue); background: var(--blue-soft); }
.meal-list article > div { min-width: 0; }
.meal-list strong, .meal-list small { display: block; }
.meal-list em { display: block; margin-top: 3px; color: var(--green); font-size: 9px; font-style: normal; }
.meal-list article > div strong { margin-bottom: 4px; font-size: 13px; }
.meal-list small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.meal-list article > span:last-child { text-align: right; }
.meal-list article > span:last-child strong { font-size: 12px; }
.recipe-list { display: grid; gap: 10px; }
.recipe-card { display: grid; grid-template-columns: 1fr; min-height: 144px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.recipe-card > img { width: 100%; height: 170px; object-fit: cover; }
.recipe-card > div { min-width: 0; padding: 12px; }
.recipe-tag { min-height: 24px; padding: 3px 7px; background: var(--green-soft); color: var(--green-dark); }
.recipe-tag.alt { background: var(--orange-soft); color: #85451f; }
.recipe-card h3 { margin: 9px 0 5px; font-size: 14px; }
.recipe-card p { margin: 0; color: var(--muted); font-size: 10px; }
.recipe-totals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; color: var(--green-dark); font-size: 10px; font-weight: 800; }
.ingredient-table { display: grid; margin-top: 11px; border-top: 1px solid var(--line); font-size: 9px; }
.ingredient-table > div { display: grid; grid-template-columns: minmax(76px, 1.4fr) .9fr .9fr .9fr; gap: 5px; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.ingredient-table > div span:not(:first-child) { text-align: right; }
.ingredient-table .ingredient-head { color: var(--text); font-weight: 800; }
.recipe-card details { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }.recipe-card summary { color: var(--green-dark); font-size: 10px; font-weight: 800; cursor: pointer; }.recipe-card details p { margin-top: 7px; line-height: 1.5; }

.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.metric-grid article { min-height: 126px; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.metric-grid article:first-child { grid-column: span 2; min-height: 112px; background: var(--charcoal); color: #fff; }
.metric-grid span, .metric-grid strong, .metric-grid small { display: block; }.metric-grid span { color: var(--muted); font-size: 12px; }.metric-grid article:first-child span { color: rgba(255,255,255,.65); }.metric-grid strong { margin: 8px 0 6px; font-size: 30px; }.metric-grid em { margin-left: 3px; font-size: 14px; font-style: normal; }.metric-grid small { color: var(--muted); font-size: 11px; }.metric-grid small svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }.metric-grid article:first-child small { color: var(--lime); }
.chart-section, .consistency-section { margin-top: 24px; padding-top: 2px; border-top: 1px solid var(--line); }
.weight-summary { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }.weight-summary strong { font-size: 25px; }.weight-summary span { color: var(--muted); font-size: 12px; }.weight-summary b { color: var(--green); }
.line-chart { position: relative; height: 220px; padding-bottom: 26px; overflow: hidden; }
.chart-grid { position: absolute; inset: 0 0 26px; display: flex; flex-direction: column; justify-content: space-between; }.chart-grid span { height: 1px; background: var(--line); }
.line-chart svg { position: relative; width: 100%; height: calc(100% - 26px); overflow: visible; }.line-chart .area { fill: url(#areaFill); }.line-chart .line { fill: none; stroke: var(--green); stroke-width: 4; vector-effect: non-scaling-stroke; }.line-chart circle { fill: var(--surface); stroke: var(--green); stroke-width: 4; vector-effect: non-scaling-stroke; }
.chart-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }.legend { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }.legend i { width: 9px; height: 9px; border-radius: 2px; background: var(--green); }
.activity-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }.activity-day { aspect-ratio: 1; border-radius: 3px; background: #e4e8e4; }.activity-day.level-1 { background: #b9dcc5; }.activity-day.level-2 { background: #6fb289; }.activity-day.level-3 { background: var(--green); }.activity-day.today { outline: 2px solid var(--orange); outline-offset: 2px; }
.milestone-band { background: var(--orange-soft); border-color: #f1d0bc; }.milestone-icon { color: var(--orange); }.milestone-band span, .milestone-band strong { display: block; }.milestone-band div span { color: var(--muted); font-size: 11px; }.milestone-band strong { margin-top: 4px; font-size: 13px; }.milestone-count { font-size: 12px; font-weight: 800; color: var(--orange); }

.profile-summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.profile-avatar, .avatar { display: grid; place-items: center; border-radius: 50%; background: var(--charcoal); color: white; font-weight: 800; }.profile-avatar { width: 58px; height: 58px; font-size: 20px; }.profile-summary h2 { margin: 0 0 5px; font-size: 19px; }.profile-summary p { margin: 0; color: var(--muted); font-size: 12px; }
.body-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 18px 0 26px; background: var(--line); }.body-stats div { padding: 11px 6px; background: var(--bg); text-align: center; }.body-stats span, .body-stats strong { display: block; }.body-stats span { margin-bottom: 5px; color: var(--muted); font-size: 10px; }.body-stats strong { font-size: 13px; }
.settings-group { margin-top: 22px; }.settings-group h2 { margin: 0 0 6px; color: var(--muted); font-size: 12px; }.settings-group > button { width: 100%; min-height: 68px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }.setting-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 7px; }.setting-icon.green { color: var(--green); background: var(--green-soft); }.setting-icon.orange { color: var(--orange); background: var(--orange-soft); }.setting-icon.blue { color: var(--blue); background: var(--blue-soft); }.setting-icon.gray { color: var(--muted); background: var(--surface-2); }.settings-group strong, .settings-group small { display: block; }.settings-group strong { margin-bottom: 4px; font-size: 14px; }.settings-group small { color: var(--muted); font-size: 11px; }.settings-group > button > svg { width: 17px; color: var(--muted); }
.prototype-note { margin: 14px auto 0; color: var(--muted); font-size: 10px; text-align: center; }

.onboarding { position: fixed; z-index: 100; inset: 0; display: none; overflow-y: auto; background: var(--bg); }
.onboarding.visible { display: block; }
.onboarding-shell { width: min(100%, 680px); min-height: 100vh; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 20px calc(100px + var(--safe-bottom)); }
.onboarding-header { height: 54px; display: grid; grid-template-columns: 44px 1fr 70px; align-items: center; }
.onboarding-brand { display: flex; align-items: center; justify-content: center; gap: 8px; }.brand-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 7px; background: var(--lime); color: var(--text); font-weight: 950; }
.onboarding-back.hidden { visibility: hidden; }
.step-progress { height: 4px; margin: 8px 0 40px; overflow: hidden; border-radius: 3px; background: #dce1dc; }.step-progress span { display: block; width: 25%; height: 100%; border-radius: inherit; background: var(--green); transition: width .25s ease; }
.onboarding-step { display: none; animation: view-in .2s ease-out; }.onboarding-step.active { display: block; }.step-count { margin: 0 0 9px; color: var(--green); font-size: 12px; font-weight: 850; }.onboarding-step h1 { margin-bottom: 10px; }.step-intro { max-width: 520px; margin: 0 0 30px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.field-grid { display: grid; gap: 13px; margin-bottom: 14px; }.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid label, .full-field, .range-field, .segmented-field, .weekday-field { display: block; }.field-grid label > span:first-child, .full-field > span:first-child, .range-field > span:first-child, .segmented-field > span:first-child, .weekday-field > span:first-child { display: block; margin-bottom: 9px; color: var(--muted); font-size: 12px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #cfd6d0; border-radius: 7px; background: var(--surface); color: var(--text); }
input, select { height: 52px; padding: 0 13px; } textarea { padding: 12px 13px; resize: vertical; line-height: 1.5; }
.input-with-unit { position: relative; display: block; }.input-with-unit input { padding-right: 48px; }.input-with-unit b { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 12px; }
.full-field { margin-top: 14px; }.full-field small { font-weight: 500; }
.guardian-consent { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 9px; margin: 4px 0 14px; padding: 11px; border-left: 3px solid var(--orange); background: var(--orange-soft); color: #76462c; font-size: 11px; line-height: 1.5; }
.guardian-consent input { width: 17px; height: 17px; margin: 0; accent-color: var(--green); }
.choice-grid { display: grid; gap: 9px; }.choice { min-height: 72px; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-align: left; cursor: pointer; }.choice > svg:first-child { width: 36px; height: 36px; padding: 8px; border-radius: 7px; background: var(--surface-2); color: var(--muted); }.choice > svg:last-child { color: #a6afa9; }.choice strong, .choice small { display: block; }.choice strong { margin-bottom: 4px; }.choice small { color: var(--muted); font-size: 11px; }.choice.selected { border-color: var(--green); background: var(--green-soft); }.choice.selected > svg:first-child, .choice.selected > svg:last-child { color: var(--green); }
.range-field { margin-top: 26px; }.range-field > span:first-child { display: flex; justify-content: space-between; color: var(--text); }.range-field output { color: var(--green); font-weight: 800; }.range-field input { height: 24px; padding: 0; accent-color: var(--green); border: 0; background: transparent; }.range-field small { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.target-body-grid { margin-top: 22px; }.target-body-note { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.segmented-field { margin-bottom: 24px; }.segmented { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }.segmented button, .scene-switch button { min-height: 46px; padding: 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font-size: 12px; cursor: pointer; }.segmented button.selected, .scene-switch button.selected { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); font-weight: 800; }
.segmented.three-option { grid-template-columns: repeat(3, 1fr); }
.weekday-field { margin-top: 30px; }.weekday-field > div { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }.weekday-field button { aspect-ratio: 1; min-width: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; }.weekday-field button.selected { border-color: var(--green-dark); background: var(--green-dark); color: white; font-weight: 800; }
.scene-switch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }.scene-switch button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 72px; }.scene-switch svg { width: 22px; height: 22px; }
.equipment-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 24px 0 0; padding: 0; border: 0; }.equipment-grid legend { margin-bottom: 9px; color: var(--muted); font-size: 12px; font-weight: 700; }.equipment-grid label { min-width: 0; }.equipment-grid input { position: absolute; opacity: 0; pointer-events: none; }.equipment-grid span { min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font-size: 12px; cursor: pointer; }.equipment-grid input:checked + span { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); font-weight: 700; }.equipment-grid svg { width: 17px; }
.equipment-hint { margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.strength-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.strength-inputs > p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.strength-inputs > p small { font-weight: 500; }
.strength-inputs label > span:first-child { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.injury-field { margin: 22px 0 0; }
.segmented.two-option { grid-template-columns: repeat(2, 1fr); }
.safety-note { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 16px; padding: 12px; border-left: 3px solid var(--orange); background: var(--orange-soft); color: #76462c; }.safety-note svg { width: 18px; }.safety-note p { margin: 0; font-size: 11px; line-height: 1.55; }
.onboarding-actions { position: fixed; z-index: 2; left: 0; right: 0; bottom: 0; padding: 12px 20px var(--safe-bottom); background: rgba(244,246,243,.94); backdrop-filter: blur(16px); }.onboarding-actions .primary-button { width: min(100%, 640px); margin: 0 auto; display: flex; }

.workout-player { position: fixed; z-index: 110; inset: 0; display: none; flex-direction: column; overflow: hidden; background: var(--bg); }.workout-player.visible { display: flex; }
.player-header { min-height: calc(70px + env(safe-area-inset-top)); display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 12px; padding: env(safe-area-inset-top) 16px 0; background: var(--charcoal); color: white; }.player-header > div { min-width: 0; text-align: center; }.player-header span, .player-header strong { display: block; }.player-header span { color: rgba(255,255,255,.6); font-size: 10px; }.player-header strong { overflow: hidden; margin-top: 3px; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.player-progress { height: 4px; background: #344039; }.player-progress span { display: block; width: 20%; height: 100%; background: var(--lime); transition: width .25s ease; }.player-main { flex: 1; min-height: 0; overflow-y: auto; }.player-visual { position: relative; height: 32vh; min-height: 210px; max-height: 360px; background: #263029; }.player-visual img { width: 100%; height: 100%; object-fit: cover; }.player-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(10,14,11,.7)); }.player-visual span { position: absolute; z-index: 1; left: 16px; bottom: 14px; padding: 6px 9px; border-radius: 5px; background: rgba(255,255,255,.9); color: var(--text); font-size: 11px; font-weight: 750; }.player-content { max-width: 680px; margin: 0 auto; padding: 20px 18px 120px; }.player-tip { margin: 10px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.player-visual .player-live { top: 14px; bottom: auto; left: 14px; display: inline-flex; align-items: center; gap: 5px; color: #fff; background: rgba(20,35,25,.72); }.player-live svg { width: 12px; color: var(--lime); animation: live-pulse 1.3s ease-in-out infinite; }
.motion-demo { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 0 0 16px; padding: 13px; border: 1px solid #ccd9cf; border-radius: 8px; background: var(--green-soft); }.motion-demo h2 { margin: 0; font-size: 14px; }.motion-demo .eyebrow { margin-bottom: 3px; }.motion-demo > .icon-button { width: 36px; height: 36px; background: var(--surface); }.motion-steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }.motion-step { min-height: 64px; display: grid; align-content: center; gap: 3px; padding: 9px; border-radius: 7px; background: rgba(255,255,255,.72); }.motion-step span { color: var(--muted); font-size: 9px; }.motion-step strong { font-size: 11px; }.motion-step.active { outline: 2px solid var(--green); background: var(--surface); }.motion-step.active strong { color: var(--green-dark); }
.set-table { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }.set-head, .set-row { display: grid; grid-template-columns: 42px 1fr 1fr 54px; align-items: center; gap: 8px; min-height: 48px; padding: 0 10px; text-align: center; }.set-head { min-height: 36px; background: var(--surface-2); color: var(--muted); font-size: 10px; }.set-row { border-top: 1px solid var(--line); font-size: 13px; }.set-row:first-child { border-top: 0; }.set-check { width: 34px; height: 34px; display: grid; place-items: center; margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; }.set-check.done { border-color: var(--green); background: var(--green); color: white; }.set-check svg { width: 17px; }
.substitution-button { width: 100%; min-height: 62px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-align: left; cursor: pointer; }.substitution-button > svg:first-child { color: var(--blue); }.substitution-button strong, .substitution-button small { display: block; }.substitution-button strong { margin-bottom: 3px; font-size: 12px; }.substitution-button small { color: var(--muted); font-size: 10px; }.substitution-button > svg:last-child { width: 16px; color: var(--muted); }
.player-footer { position: fixed; z-index: 2; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: .8fr 1.4fr; gap: 9px; padding: 12px 16px var(--safe-bottom); border-top: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(16px); }

.modal-backdrop { position: fixed; z-index: 120; inset: 0; display: none; align-items: flex-end; justify-content: center; padding: 20px 0 0; background: rgba(15,22,17,.5); }.modal-backdrop.visible { display: flex; }.bottom-sheet { width: min(100%, 620px); max-height: 88vh; overflow-y: auto; padding: 8px 18px calc(20px + var(--safe-bottom)); border-radius: 8px 8px 0 0; background: var(--surface); box-shadow: var(--shadow); animation: sheet-up .22s ease-out; }.sheet-handle { width: 42px; height: 4px; margin: 0 auto 12px; border-radius: 3px; background: #cad0cb; }.bottom-sheet header { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 18px; }.bottom-sheet h2 { margin: 0; font-size: 21px; }.sheet-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }.sheet-choice { min-height: 86px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font-size: 12px; cursor: pointer; }.sheet-choice svg { color: var(--muted); }.sheet-choice.selected { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); font-weight: 750; }.sheet-choice.selected svg { color: var(--green); }.sheet-submit { width: 100%; margin-top: 16px; }.sheet-form label { display: block; margin-bottom: 12px; }.sheet-form label > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; }.sheet-copy { color: var(--muted); font-size: 13px; line-height: 1.7; }.sheet-workout-options { display: grid; gap: 8px; }.sheet-workout-options button { min-height: 62px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-align: left; cursor: pointer; }.sheet-workout-options button > span { min-width: 0; }.sheet-workout-options strong, .sheet-workout-options small { display: block; }.sheet-workout-options strong { margin-bottom: 3px; }.sheet-workout-options small { color: var(--muted); font-size: 11px; }.sheet-workout-options button > svg:last-child { width: 16px; color: var(--muted); }
.visual-choice-grid { display: grid; gap: 10px; }
.visual-choice { display: grid; grid-template-columns: 108px 1fr; gap: 12px; width: 100%; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; }
.visual-choice img { width: 108px; height: 78px; object-fit: cover; }
.visual-choice span { align-self: center; padding-right: 12px; }
.visual-choice strong, .visual-choice small { display: block; }
.visual-choice strong { margin-bottom: 4px; font-size: 13px; }
.visual-choice small { color: var(--muted); font-size: 10px; }
.visual-choice.selected { border-color: var(--green); box-shadow: inset 3px 0 var(--green); }
.slogan-choices .sheet-choice { min-height: 106px; text-align: left; align-items: flex-start; justify-content: flex-start; line-height: 1.45; }
.video-sheet-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }.video-sheet-thumb { position: relative; height: 210px; display: grid; place-items: center; background: var(--charcoal); color: #fff; }.video-sheet-thumb svg { width: 48px; height: 48px; color: var(--lime); }.video-sheet-thumb span { position: absolute; left: 12px; bottom: 11px; font-size: 10px; }.video-copy { padding: 15px 14px 2px; }.video-copy h3 { margin: 3px 0 6px; font-size: 16px; }.video-copy p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }.video-copy .video-label { color: var(--green); font-size: 10px; font-weight: 800; }.video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #17201b; }.video-frame video { width: 100%; height: 100%; object-fit: contain; background: #111713; }.video-duration { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px; min-height: 25px; padding: 0 8px; border-radius: 5px; background: rgba(15,22,17,.75); color: white; font-size: 9px; }.video-duration svg { width: 13px; }.video-cue-grid { display: grid; gap: 1px; margin: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--line); }.video-cue-grid article { display: grid; grid-template-columns: 32px 1fr; gap: 9px; padding: 11px; background: var(--surface); }.video-cue-grid article > span { color: var(--green); font-size: 11px; font-weight: 900; }.video-cue-grid strong { display: block; margin-bottom: 4px; font-size: 11px; }.video-cue-grid p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }.video-cue-grid .warning > span { color: var(--danger); }.video-source { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: center; margin: 0 14px 14px; padding: 10px; background: var(--surface-2); }.video-source svg { width: 18px; color: var(--green); }.video-source strong, .video-source small { display: block; }.video-source strong { font-size: 10px; }.video-source small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.video-button { width: 100%; min-height: 62px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-top: 15px; padding: 10px 12px; border: 1px solid #bcd4c4; border-radius: 8px; background: var(--green-soft); color: var(--text); text-align: left; cursor: pointer; }.video-button > svg:first-child { color: var(--green); }.video-button > svg:last-child { width: 16px; color: var(--green-dark); }.video-button strong, .video-button small { display: block; }.video-button strong { margin-bottom: 3px; font-size: 12px; }.video-button small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.assistant-fab { position: fixed; z-index: 90; right: 18px; bottom: calc(84px + var(--safe-bottom)); display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border: 1px solid var(--green-dark); border-radius: 22px; background: var(--charcoal); color: var(--lime); box-shadow: 0 12px 26px rgba(23,32,27,.22); cursor: pointer; font-size: 12px; font-weight: 800; }.assistant-fab svg { width: 17px; }
.assistant-panel { position: fixed; z-index: 160; right: 18px; bottom: calc(82px + var(--safe-bottom)); display: none; width: min(420px, calc(100% - 36px)); max-height: min(680px, calc(100vh - 120px)); overflow: hidden; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); box-shadow: 0 24px 60px rgba(15,22,17,.24); }.assistant-panel.visible { display: flex; }.assistant-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); background: var(--surface); }.assistant-panel h2 { margin: 0; font-size: 18px; }.assistant-chips { display: flex; gap: 7px; overflow-x: auto; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }.assistant-chips button { flex: 0 0 auto; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); color: var(--text); font-size: 10px; cursor: pointer; }.assistant-chat { flex: 1; min-height: 190px; overflow-y: auto; padding: 14px; }.assistant-message { max-width: 88%; margin-bottom: 10px; padding: 10px 11px; border-radius: 8px; background: var(--surface); white-space: pre-line; }.assistant-message.user { margin-left: auto; background: var(--green-dark); color: #fff; }.assistant-message p { margin: 0; font-size: 12px; line-height: 1.6; }.assistant-message > svg { float: left; width: 15px; margin: 2px 6px 0 0; color: var(--green); }.assistant-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }.assistant-actions button { min-height: 28px; padding: 0 9px; border: 1px solid #bdd1c2; border-radius: 5px; background: var(--green-soft); color: var(--green-dark); font-size: 10px; cursor: pointer; }.assistant-composer { display: grid; grid-template-columns: 1fr 42px; gap: 7px; padding: 10px; border-top: 1px solid var(--line); background: var(--surface); }.assistant-composer input { height: 42px; }.assistant-composer button { display: grid; place-items: center; border: 0; border-radius: 7px; background: var(--green-dark); color: #fff; cursor: pointer; }
.exercise-manager { display: grid; gap: 7px; }.exercise-manager > div { display: grid; grid-template-columns: 28px 1fr 34px 34px; align-items: center; gap: 8px; min-height: 48px; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }.exercise-manager > div > span { color: var(--muted); font-size: 10px; font-weight: 800; }.exercise-manager strong { min-width: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.exercise-manager button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); cursor: pointer; }.exercise-manager button:disabled { opacity: .35; cursor: not-allowed; }.exercise-manager svg { width: 15px; }.add-exercise-form { margin-top: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.set-row-editable label { min-width: 0; }.set-row-editable .set-entry { width: 100%; height: 34px; min-width: 0; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--text); text-align: center; font-size: 12px; }.set-row-editable .set-entry:focus { background: var(--surface); }
.workout-review-summary { display: grid; gap: 4px; margin-bottom: 16px; padding: 13px; border-left: 3px solid var(--green); background: var(--green-soft); }.workout-review-summary strong { font-size: 15px; }.workout-review-summary small { color: var(--muted); font-size: 11px; }.sheet-form output { display: block; margin-top: 7px; color: var(--green-dark); font-size: 11px; font-weight: 800; }.sheet-form input[type="range"] { width: 100%; padding: 0; border: 0; accent-color: var(--green); }
.health-area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 18px; }.health-area { min-height: 42px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); cursor: pointer; font-size: 12px; }.health-area.selected { border-color: var(--orange); background: var(--orange-soft); color: #91441e; font-weight: 800; }.health-form { margin-top: 12px; }
.data-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }.data-summary article { min-width: 0; padding: 13px 7px; background: var(--surface-2); text-align: center; }.data-summary strong, .data-summary span { display: block; }.data-summary strong { margin-bottom: 4px; font-size: 18px; }.data-summary span { color: var(--muted); font-size: 9px; }.danger-outline { border-color: #e1a29a; color: var(--danger); }
:root[data-theme="orange"] { --green: #c65d27; --green-dark: #94401a; --green-soft: #fff0e6; --lime: #ffd36b; }
:root[data-theme="blue"] { --green: #3677bc; --green-dark: #245686; --green-soft: #e7f1fb; --lime: #9bd1ff; }
:root[data-theme="charcoal"] { --green: #47574d; --green-dark: #17201b; --green-soft: #e7ebe8; --lime: #c8f05a; }
.profile-avatar, .avatar { overflow: hidden; }
.profile-avatar img, .avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar[data-color="forest"], .avatar[data-color="forest"] { background: var(--green-dark); }
.profile-avatar[data-color="orange"], .avatar[data-color="orange"] { background: var(--orange); }
.profile-avatar[data-color="blue"], .avatar[data-color="blue"] { background: var(--blue); }
.setting-icon.purple { color: #7653a7; background: #f0eafe; }
.setting-icon.lime { color: #55721f; background: #eef8ce; }
.profile-custom-group { margin-bottom: 2px; }
.profile-editor { display: grid; gap: 18px; }
.profile-editor-avatar { display: grid; grid-template-columns: 68px 1fr; align-items: center; gap: 13px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.profile-editor-avatar .profile-avatar { width: 68px; height: 68px; font-size: 21px; }
.profile-editor-avatar strong, .profile-editor-avatar small { display: block; }
.profile-editor-avatar strong { margin-bottom: 4px; font-size: 14px; }
.profile-editor-avatar small { color: var(--muted); font-size: 10px; }
.inline-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.inline-actions .secondary-button { min-height: 34px; padding: 0 10px; font-size: 10px; }
.danger-text { border: 0; color: var(--danger); font-size: 11px; }
.avatar-color-picker > span, .customize-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.avatar-color-grid { display: flex; gap: 9px; }
.avatar-color { width: 36px; height: 36px; padding: 0; border: 3px solid transparent; border-radius: 50%; background: var(--charcoal); cursor: pointer; }
.avatar-color[data-avatar-color="forest"] { background: #215d3a; }.avatar-color[data-avatar-color="orange"] { background: #e97732; }.avatar-color[data-avatar-color="blue"] { background: #3677bc; }
.avatar-color.selected { border-color: var(--surface); outline: 2px solid var(--green); }
.playlist-empty { display: grid; justify-items: center; gap: 7px; padding: 28px 14px; border: 1px dashed #b9c8bd; border-radius: 8px; color: var(--muted); text-align: center; }
.playlist-empty svg { width: 30px; height: 30px; color: var(--green); }.playlist-empty strong { color: var(--text); font-size: 14px; }.playlist-empty p { margin: 0; font-size: 11px; }
.playlist-list { display: grid; gap: 7px; }
.playlist-row { display: grid; grid-template-columns: 38px minmax(0,1fr) 32px 32px 32px; align-items: center; gap: 7px; min-height: 56px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.playlist-row > div { min-width: 0; }.playlist-row strong, .playlist-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.playlist-row strong { font-size: 12px; }.playlist-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.playlist-play { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); cursor: pointer; }.playlist-play:disabled { opacity: .45; cursor: not-allowed; }.playlist-play svg { width: 16px; }
.playlist-row .icon-button { width: 30px; height: 30px; flex-basis: 30px; }.playlist-row .icon-button svg { width: 14px; }.danger-icon { color: var(--danger); }
.playlist-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }.playlist-actions .secondary-button { min-width: 0; min-height: 42px; padding: 0 8px; font-size: 11px; }.playlist-url-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.customize-panel { display: grid; gap: 20px; }.customize-section { padding-bottom: 18px; border-bottom: 1px solid var(--line); }.customize-section:last-child { padding-bottom: 0; border-bottom: 0; }
.theme-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }.theme-choice { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 7px; min-height: 58px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); text-align: left; cursor: pointer; }.theme-choice > svg { width: 15px; opacity: 0; color: var(--green); }.theme-choice.selected { border-color: var(--green); background: var(--green-soft); }.theme-choice.selected > svg { opacity: 1; }.theme-choice strong, .theme-choice small { display: block; }.theme-choice strong { font-size: 11px; }.theme-choice small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.theme-swatch { width: 19px; height: 19px; border-radius: 50%; background: #2f7d50; }.theme-swatch.orange { background: #e97732; }.theme-swatch.blue { background: #3677bc; }.theme-swatch.charcoal { background: #17201b; }
.toggle-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; min-height: 59px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }.customize-label + .toggle-row { border-top: 0; }.toggle-row strong, .toggle-row small { display: block; }.toggle-row strong { margin-bottom: 3px; font-size: 12px; }.toggle-row small { color: var(--muted); font-size: 10px; }.toggle-row input { width: 38px; height: 22px; accent-color: var(--green); }
.photo-setting-button { width: 100%; min-height: 58px; display: grid; grid-template-columns: 24px 1fr 20px; align-items: center; gap: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); text-align: left; cursor: pointer; }.photo-setting-button > svg:first-child { color: var(--blue); }.photo-setting-button > svg:last-child { width: 16px; color: var(--muted); }.photo-setting-button strong, .photo-setting-button small { display: block; }.photo-setting-button strong { margin-bottom: 3px; font-size: 12px; }.photo-setting-button small { color: var(--muted); font-size: 10px; }
body.compact-cards .exercise-card { min-height: 58px; padding-top: 8px; padding-bottom: 8px; } body.compact-cards .exercise-card small { margin-top: 2px; }
@keyframes sheet-up { from { transform: translateY(30px); opacity: .5; } to { transform: none; opacity: 1; } }
@keyframes live-pulse { 50% { opacity: .35; transform: scale(.85); } }
.toast { position: fixed; z-index: 200; left: 50%; bottom: calc(90px + var(--safe-bottom)); transform: translate(-50%, 16px); display: flex; align-items: center; gap: 8px; padding: 11px 15px; border-radius: 7px; background: var(--charcoal); color: white; box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transition: .2s ease; }.toast.visible { opacity: 1; transform: translate(-50%, 0); }.toast svg { width: 17px; color: var(--lime); }

@media (max-width: 699px) {
  html, body { width: 100%; overflow-x: hidden; }
  .app-main { padding: 0 16px calc(92px + var(--safe-bottom)); }
  .view { padding-top: max(18px, env(safe-area-inset-top)); }
  .page-header { min-height: 56px; margin-bottom: 16px; }.page-header h1 { font-size: 27px; }
  .bottom-nav { height: calc(68px + var(--safe-bottom)); padding: 5px 6px var(--safe-bottom); box-shadow: 0 -8px 24px rgba(23,32,27,.06); }
  .bottom-nav button { min-height: 54px; gap: 3px; font-size: 9px; }.bottom-nav button.active { background: var(--green-soft); border-radius: 7px; }.bottom-nav svg { width: 20px; height: 20px; }
  .assistant-fab { right: 14px; bottom: calc(80px + var(--safe-bottom)); min-height: 42px; padding: 0 12px; }.assistant-panel { right: 10px; bottom: calc(76px + var(--safe-bottom)); width: calc(100% - 20px); max-height: min(640px, calc(100dvh - 100px)); }
  .profile-summary { grid-template-columns: 54px minmax(0,1fr) 42px; gap: 10px; padding: 14px 0; }.profile-avatar { width: 54px; height: 54px; font-size: 17px; }.profile-summary h2 { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }.profile-summary p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .body-stats { margin: 14px 0 22px; }.body-stats div { min-height: 58px; padding: 10px 4px; }.body-stats strong { font-size: 12px; }
  .settings-group { margin-top: 20px; }.settings-group > button { min-height: 64px; gap: 10px; }.settings-group strong { font-size: 13px; }.settings-group small { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .setting-icon { width: 36px; height: 36px; }.settings-group > button > svg { width: 16px; }
  .modal-backdrop { padding-top: 10px; }.bottom-sheet { width: 100%; max-height: calc(100dvh - 10px); padding: 8px 16px calc(18px + var(--safe-bottom)); overscroll-behavior: contain; }.bottom-sheet header { position: sticky; z-index: 2; top: -8px; padding: 8px 0 12px; margin-bottom: 12px; background: var(--surface); }.bottom-sheet h2 { max-width: 260px; font-size: 19px; line-height: 1.25; }.sheet-handle { margin-bottom: 8px; }
  .profile-editor-avatar { grid-template-columns: 58px minmax(0,1fr); padding: 11px; }.profile-editor-avatar .profile-avatar { width: 58px; height: 58px; }.inline-actions { gap: 5px; }.inline-actions .secondary-button { min-height: 36px; }
  .playlist-row { grid-template-columns: 38px minmax(0,1fr) 30px 30px 30px; gap: 5px; padding: 7px; }.playlist-row .icon-button { width: 30px; height: 30px; }.playlist-actions { grid-template-columns: 1fr; }.playlist-actions .secondary-button { min-height: 44px; font-size: 12px; }
  .theme-choice { min-height: 62px; }.theme-choice strong { font-size: 12px; }.toggle-row { min-height: 64px; }
  .toast { bottom: calc(82px + var(--safe-bottom)); width: max-content; max-width: calc(100% - 32px); }
}

@media (min-width: 700px) {
  .app-main { padding-left: 30px; padding-right: 30px; }
  .workout-spotlight { min-height: 360px; }.spotlight-content { min-height: 360px; padding: 24px; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }.metric-grid article:first-child { grid-column: span 1; min-height: 126px; }
  .food-scan { grid-template-columns: auto 1fr auto; }.food-scan > .primary-button { grid-column: auto; width: auto; }
  .recipe-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }.recipe-card { grid-template-columns: 1fr; }.recipe-card > img { width: 100%; height: 170px; }
  .player-footer { left: 50%; width: 680px; transform: translateX(-50%); }
}

@media (min-width: 980px) {
  body { background: #e8ece8; }
  .app-shell { width: min(1180px, calc(100% - 48px)); min-height: calc(100vh - 40px); display: grid; grid-template-columns: 236px 1fr; margin: 20px auto; overflow: hidden; border: 1px solid #d9dfda; border-radius: 8px; background: var(--bg); box-shadow: 0 20px 60px rgba(22,34,27,.1); }
  .side-rail { position: relative; display: flex; flex-direction: column; min-height: calc(100vh - 42px); padding: 24px 16px 18px; border-right: 1px solid var(--line); background: var(--surface); }
  .brand-mark { display: flex; align-items: center; gap: 10px; padding: 0 8px; border: 0; background: transparent; text-align: left; cursor: pointer; }.brand-copy strong, .brand-copy small { display: block; }.brand-copy strong { font-size: 17px; }.brand-copy small { margin-top: 2px; color: var(--muted); font-size: 10px; }
  .rail-nav { display: grid; gap: 5px; margin-top: 44px; }.rail-nav button { min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; }.rail-nav button.active { background: var(--green-soft); color: var(--green-dark); font-weight: 800; }
  .rail-profile { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; margin-top: auto; padding: 12px 8px 0; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }.avatar { width: 36px; height: 36px; font-size: 12px; }.rail-profile strong, .rail-profile small { display: block; }.rail-profile strong { font-size: 12px; }.rail-profile small { margin-top: 3px; color: var(--muted); font-size: 9px; }.rail-profile svg { width: 15px; color: var(--muted); }
  .app-main { min-width: 0; max-height: calc(100vh - 42px); overflow-y: auto; padding: 0 42px 52px; }.view { padding-top: 36px; }
  .bottom-nav { display: none; }
  .workout-player { left: 50%; top: 20px; bottom: 20px; width: min(820px, calc(100% - 80px)); transform: translateX(-50%); border-radius: 8px; box-shadow: 0 30px 80px rgba(15,22,17,.3); }.workout-player::before { content: ""; position: fixed; z-index: -1; inset: -20px -100vw; background: rgba(15,22,17,.52); }.player-footer { position: absolute; width: 100%; }.player-header { padding-left: 20px; padding-right: 20px; }.modal-backdrop { align-items: center; padding: 20px; }.bottom-sheet { border-radius: 8px; }
}

@media (max-width: 380px) {
  .app-main { padding-left: 14px; padding-right: 14px; }
  .status-strip span { font-size: 9px; }.status-strip strong { font-size: 13px; }
  .exercise-card { grid-template-columns: 40px 1fr; }.exercise-number { width: 40px; height: 40px; }.exercise-side { grid-column: 2; display: flex; align-items: center; gap: 8px; text-align: left; }.exercise-side span { margin: 0; }
  .readiness-band { grid-template-columns: auto 1fr; }.readiness-band .secondary-button { grid-column: 2; justify-self: start; }
  .motivation-band { grid-template-columns: auto 1fr; }.motivation-band .icon-button { grid-column: 2; justify-self: end; }
  .plan-review { grid-template-columns: 36px 1fr; }.plan-review .secondary-button { grid-column: 2; justify-self: start; }
  .field-grid.two { grid-template-columns: 1fr; }.segmented { grid-template-columns: repeat(2, 1fr); }.equipment-grid { grid-template-columns: 1fr; }
  .scene-switch { grid-template-columns: repeat(2, 1fr); }.strength-inputs { grid-template-columns: 1fr; }.nutrition-summary { grid-template-columns: 1fr; }.nutrition-ring { width: 92px; height: 92px; }.macro-grid { grid-template-columns: 1fr; }
  .schedule-row { grid-template-columns: 38px 36px 1fr; }.schedule-row > :last-child { display: none; }
  .bottom-nav { padding-left: 4px; padding-right: 4px; }.bottom-nav button { font-size: 8px; }.assistant-fab { right: 10px; padding: 0 10px; }.assistant-fab span { font-size: 11px; }
  .profile-summary { grid-template-columns: 48px minmax(0,1fr) 40px; }.profile-avatar { width: 48px; height: 48px; }.settings-group > button { min-height: 62px; }.setting-icon { width: 34px; height: 34px; }
  .playlist-row { grid-template-columns: 36px minmax(0,1fr) 28px 28px 28px; gap: 4px; }.playlist-row .icon-button { width: 28px; height: 28px; flex-basis: 28px; }.playlist-play { width: 34px; height: 34px; }.playlist-row strong { font-size: 11px; }
  .theme-choice-grid { grid-template-columns: 1fr; }.theme-choice { min-height: 54px; }.bottom-sheet { padding-left: 14px; padding-right: 14px; }
  .health-area-grid { grid-template-columns: repeat(2, 1fr); }.set-head, .set-row { grid-template-columns: 34px 1fr 1fr 42px; gap: 5px; padding: 0 7px; }.set-row-editable .set-entry { height: 32px; padding: 0 3px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

.video-frame iframe { width: 100%; height: 100%; border: 0; background: #111713; }
.video-library-heading { scroll-margin-top: 20px; }
.video-library-heading > span { color: var(--muted); font-size: 11px; }
.video-library-filters { display: flex; gap: 7px; overflow-x: auto; margin: 0 0 12px; padding-bottom: 3px; scrollbar-width: none; }
.video-library-filters::-webkit-scrollbar { display: none; }
.video-library-filters button { flex: 0 0 auto; min-width: 58px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); color: var(--muted); font-size: 11px; cursor: pointer; }
.video-library-filters button.selected { border-color: var(--green-dark); background: var(--green-dark); color: white; font-weight: 800; }
.video-library { display: grid; gap: 8px; }
.video-library-card { min-width: 0; display: grid; grid-template-columns: 104px minmax(0, 1fr) 20px; align-items: center; gap: 12px; min-height: 82px; overflow: hidden; padding: 0 12px 0 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; }
.video-library-card:hover { border-color: #9db5a4; }
.video-library-media { position: relative; width: 104px; height: 80px; overflow: hidden; background: var(--charcoal); }
.video-library-media img, .video-library-media video { width: 100%; height: 100%; object-fit: cover; }
.video-library-placeholder { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 5px; background: #26342c; color: white; }
.video-library-placeholder svg { width: 24px; color: var(--lime); }
.video-library-placeholder small { color: rgba(255,255,255,.72); font-size: 9px; }
.video-library-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15,22,17,.18); }
.video-library-play svg { width: 28px; height: 28px; padding: 7px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--green-dark); fill: var(--green-dark); }
.video-library-copy { min-width: 0; }
.video-library-copy strong, .video-library-copy small, .video-library-copy em { display: block; }
.video-library-copy strong { margin-bottom: 4px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.video-library-copy small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.video-library-copy em { display: flex; align-items: center; gap: 4px; margin-top: 7px; color: var(--green-dark); font-size: 9px; font-style: normal; font-weight: 750; }
.video-library-copy em svg { width: 12px; height: 12px; }
.video-library-card > svg { width: 17px; color: var(--muted); }

@media (min-width: 700px) {
  .video-library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
