@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Fraunces:opsz,wght@9..144,500;9..144,600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #17212b;
  --muted: #66716d;
  --canvas: #f5f2ec;
  --paper: #fffdf8;
  --line: #e3ddd3;
  --green: #5d806a;
  --green-dark: #17212b;
  --mint: #e7efe8;
  --lime: #73977d;
  --peach: #f6eddc;
  --lavender: #eee9e1;
  --red: #b96f62;
  --navy: #17212b;
  --success: #73977d;
  --gold: #b99052;
  --gold-dark: #775923;
  --journal: #837996;
  --coral: #b96f62;
  --coral-wash: #f7e9e4;
  --shadow: 0 12px 32px rgba(23, 33, 43, .09);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; background: #e8e2d9; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 50% -15%, #fffdf8, #f1ede5 58%, #e8e2d9); font-family: "DM Sans", system-ui, sans-serif; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(127, 166, 138, .5); outline-offset: 2px; }

.app-shell { min-height: 100svh; display: grid; place-items: center; padding: 22px; }
.phone { width: min(100%, 440px); height: min(900px, calc(100svh - 44px)); overflow: hidden; position: relative; background: var(--canvas); box-shadow: 0 24px 70px rgba(23, 33, 43, .18); border-radius: 30px; }
.screen { height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: max(22px, env(safe-area-inset-top)) 18px calc(98px + env(safe-area-inset-bottom)); }
.screen::-webkit-scrollbar { display: none; }

.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 27px; }
.brand { display: flex; gap: 9px; align-items: center; color: var(--green); font-family: Fraunces, Georgia, serif; font-size: 28px; font-weight: 600; letter-spacing: -.06em; }
.brand-mark { width: 25px; height: 25px; border-radius: 50% 50% 50% 7px; background: var(--green); transform: rotate(-42deg); position: relative; }
.brand-mark::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; right: 4px; top: 4px; background: var(--lime); }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--paper); }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; }

.eyebrow { color: var(--green); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 600 35px/.99 Fraunces, Georgia, serif; letter-spacing: -.055em; margin-bottom: 10px; }
h2 { font: 600 23px/1.05 Fraunces, Georgia, serif; letter-spacing: -.045em; margin-bottom: 7px; }
h3 { font-size: 15px; letter-spacing: -.02em; margin-bottom: 4px; }
.subcopy { color: var(--muted); font-size: 14px; line-height: 1.45; }
.tiny { color: var(--muted); font-size: 11px; line-height: 1.45; }
.mono { font: 500 10px/1.3 "DM Mono", monospace; letter-spacing: .03em; }

.nav { position: absolute; z-index: 3; bottom: 0; width: 100%; height: 76px; display: flex; justify-content: space-around; align-items: flex-start; padding: 10px 11px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(227, 221, 211, .93); background: rgba(255,253,248,.95); backdrop-filter: blur(14px); }
.nav button { min-width: 51px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 2px 6px; color: #8b948d; border: 0; background: none; font-size: 9px; }
.nav button.active { color: var(--green); font-weight: 700; }
.nav svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.8; }

.hero { margin-bottom: 19px; display: grid; grid-template-columns: 1fr auto; align-items: end; }
.hero h1 { margin-bottom: 0; }
.date { margin-bottom: 7px; }
.pulse { width: 73px; height: 73px; position: relative; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) 0 71%, var(--mint) 71% 100%); }
.pulse::before { content: ""; position: absolute; inset: 6px; border-radius: inherit; background: var(--canvas); }
.pulse svg { position: relative; width: 25px; stroke: var(--green); fill: none; }

.streak { background: var(--navy); color: white; min-height: 93px; border-radius: 20px; padding: 15px 16px; display: flex; align-items: center; gap: 15px; box-shadow: var(--shadow); margin-bottom: 20px; }
.streak-num { color: var(--lime); font: 600 42px/.8 Fraunces, Georgia, serif; letter-spacing: -.07em; }
.streak p { color: rgba(255,255,255,.74); font-size: 12px; margin: 4px 0 0; }
.streak-title { font-size: 15px; font-weight: 600; }
.streak-flame { margin-left: auto; width: 33px; height: 38px; color: var(--lime); }

.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 23px 2px 11px; }
.section-heading h2 { margin: 0; font: 600 17px/1 Fraunces, Georgia, serif; }
.text-btn { padding: 0; color: var(--green); border: 0; background: none; font-size: 12px; font-weight: 700; }

.today-card { width: 100%; display: grid; grid-template-columns: 48px 1fr 25px; align-items: center; gap: 12px; padding: 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 17px; text-align: left; box-shadow: 0 3px 12px rgba(29, 51, 36, .025); }
.today-card + .today-card { margin-top: 9px; }
.today-card:hover { border-color: #c5d9c8; transform: translateY(-1px); }
.today-icon { width: 47px; height: 47px; border-radius: 14px; display: grid; place-items: center; }
.today-icon.train { background: #eef1f4; color: var(--navy); }
.today-icon.fuel { background: var(--peach); color: var(--gold-dark); }
.today-card h3 { margin: 0 0 3px; }
.today-card p { margin: 0; color: var(--muted); font-size: 12px; }
.today-card svg { width: 21px; stroke: var(--muted); }
.home-start-card { display: grid; grid-template-columns: 30px 1fr 18px; gap: 10px; align-items: center; width: 100%; margin: 0 0 10px; padding: 12px; border: 1px solid #d8e5dc; border-radius: 16px; color: var(--ink); background: #f4f9f5; text-align: left; }
.home-start-card > span:first-child { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: #47745a; background: #e2f0e5; }
.home-start-card svg { width: 16px; stroke: currentColor; }
.home-start-card strong { display: block; margin: 2px 0; font-size: 12px; }
.home-start-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.32; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick { min-height: 109px; padding: 14px; border: 0; border-radius: 17px; text-align: left; color: var(--ink); }
.quick.reflect { background: var(--lavender); }
.quick.progress { background: #eaf6ee; }
.quick svg { width: 22px; height: 22px; margin-bottom: 13px; stroke: var(--green); }
.quick.reflect svg { stroke: var(--journal); }
.quick.progress svg { stroke: var(--success); }
.quick strong, .quick span { display: block; }
.quick strong { font-size: 13px; margin-bottom: 3px; }
.quick span { color: var(--muted); font-size: 11px; }

.screen-header { margin-bottom: 17px; }
.screen-header h1 { font-size: 32px; margin: 8px 0 7px; }
.goal-context { border: 0; background: var(--mint); color: var(--green); padding: 7px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.goal-tabs { display: flex; gap: 7px; overflow: auto; scrollbar-width: none; margin: 0 -18px 19px; padding: 0 18px; }
.goal-tabs button { white-space: nowrap; padding: 9px 13px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); background: var(--paper); font-size: 12px; }
.goal-tabs button.selected { border-color: var(--navy); color: white; background: var(--navy); }
.progression-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; margin-bottom: 10px; border: 1px solid #dce3e7; border-radius: 17px; background: #f1f4f6; }
.progression-card h3 { margin: 5px 0 3px; color: var(--green-dark); font: 600 18px/1 Fraunces, Georgia, serif; }
.progression-card p { max-width: 255px; margin: 0; color: #5c6a76; font-size: 11px; line-height: 1.35; }
.split-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; margin-bottom: 14px; border-radius: 13px; background: #e8ece5; }
.split-tabs button { min-height: 33px; padding: 7px 5px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 600; }
.split-tabs button.selected { color: var(--navy); background: white; box-shadow: 0 1px 3px rgba(25, 46, 31, .08); }
.workout-banner { position: relative; overflow: hidden; margin-bottom: 15px; padding: 17px; border-radius: 20px; background: var(--navy); color: white; }
.workout-banner::after { content: ""; width: 130px; height: 130px; position: absolute; right: -50px; top: -43px; border: 22px solid rgba(127, 166, 138,.32); border-radius: 50%; }
.workout-banner p { color: rgba(255,255,255,.72); margin: 4px 0 0; font-size: 12px; }
.workout-banner .mono { color: var(--lime); position: relative; z-index: 1; }
.workout-banner h2 { position: relative; z-index: 1; margin-bottom: 0; }
.exercise-list { display: grid; gap: 9px; }
.exercise { display: grid; grid-template-columns: 40px 1fr auto; gap: 11px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.exercise-with-picker { align-items: start; }
.exercise-with-picker .exercise-dot { margin-top: 2px; }
.exercise-dot { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; background: #f2f4ec; color: var(--green); }
.exercise h3 { margin: 0 0 3px; font-size: 13px; }
.exercise p { color: var(--muted); margin: 0; font-size: 11px; }
.exercise-picker { display: grid; gap: 4px; margin-top: 9px; }
.exercise-picker > span { color: var(--green); font: 500 9px "DM Mono", monospace; letter-spacing: .02em; text-transform: uppercase; }
.exercise-picker select { width: 100%; min-width: 0; padding: 7px 26px 7px 8px; border: 1px solid #d9e4d9; border-radius: 9px; color: #375745; background: #f5faf4; font-size: 11px; font-weight: 600; }
.exercise-action { display: flex; align-items: center; gap: 5px; padding: 7px 0 7px 7px; color: var(--green); border: 0; background: none; font-size: 11px; font-weight: 700; }
.exercise-action svg { width: 15px; height: 15px; }
.exercise-actions { display: flex; align-items: center; gap: 5px; }
.muted-action { color: var(--muted); font-weight: 600; }
.info-row { display: flex; align-items: center; gap: 7px; padding: 12px 2px 0; color: var(--muted); font-size: 11px; }
.info-row svg { width: 14px; stroke: var(--green); }

.macro-card { padding: 17px; border: 1px solid #ead8b5; border-radius: 20px; background: var(--peach); margin-bottom: 16px; }
.macro-card h2 { margin: 6px 0 13px; font-size: 24px; }
.macros { display: flex; gap: 22px; }
.macros div { display: grid; gap: 3px; }
.macros strong { font: 600 20px/1 Fraunces, Georgia, serif; letter-spacing: -.05em; }
.macros span { color: #75623e; font: 10px "DM Mono", monospace; text-transform: uppercase; }
.meal { position: relative; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.meal + .meal { margin-top: 9px; }
.meal-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.meal h3 { margin: 4px 0 4px; }
.meal p { margin: 0; color: var(--muted); font-size: 11px; }
.meal-badge { padding: 6px 8px; color: var(--gold-dark); border-radius: 10px; background: #f7e9cd; font: 500 9px "DM Mono", monospace; }
.meal-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; }
.meal-footer span { color: var(--muted); font-size: 11px; }
.meal-actions { display: flex; gap: 9px; align-items: center; }
.meal-footer .meal-actions { color: inherit; }
.meal-adapted { display: inline-block; margin-top: 6px; padding: 3px 6px; border-radius: 7px; color: #6d5c3c; background: #faf0dc; font: 500 9px "DM Mono", monospace; }
.add-btn { padding: 6px 0; color: var(--green); border: 0; background: none; font-size: 11px; font-weight: 700; }
.price-note { display: flex; gap: 8px; align-items: center; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: #f0f2ea; color: var(--muted); font-size: 10px; }
.price-note svg { width: 14px; flex: 0 0 auto; stroke: var(--green); }
.daily-food-progress { margin-top: 18px; }
.pending-meal-list { display: grid; gap: 9px; }
.pending-meal-list .meal + .meal { margin-top: 0; }
.all-meals-logged { display: flex; gap: 11px; align-items: center; padding: 14px; border: 1px solid #cfe3d4; border-radius: 16px; background: #f2f8f3; color: #386c4c; }
.all-meals-logged svg { width: 19px; flex: 0 0 auto; stroke: currentColor; }
.all-meals-logged strong { display: block; font-size: 12px; }
.all-meals-logged p { margin: 3px 0 0; color: #52735d; font-size: 10px; line-height: 1.35; }
.logged-today { margin-top: 15px; border: 1px solid #e1e5e2; border-radius: 16px; background: #fafbfa; }
.logged-today summary { display: flex; align-items: center; justify-content: space-between; gap: 11px; padding: 13px; cursor: pointer; list-style: none; }
.logged-today summary::-webkit-details-marker { display: none; }
.logged-today summary strong { display: block; margin-top: 3px; color: var(--ink); font-size: 12px; }
.logged-today-toggle { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-size: 10px; font-weight: 700; }
.logged-today-toggle svg { width: 14px; transition: transform .16s ease; }
.logged-today[open] .logged-today-toggle svg { transform: rotate(90deg); }
.logged-food-list { display: grid; gap: 8px; padding: 0 10px 10px; }
.logged-food { display: grid; grid-template-columns: 25px 1fr auto; gap: 8px; align-items: start; padding: 11px; border: 1px solid #e7ebe8; border-radius: 13px; background: #fff; }
.logged-food-mark { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: #4f8a62; background: #e5f0e7; }
.logged-food-mark svg { width: 13px; stroke: currentColor; }
.logged-food h3 { margin: 3px 0; font-size: 12px; }
.logged-food p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.35; }
.logged-food-actions { display: grid; gap: 5px; }
.logged-food-actions button { padding: 4px 5px; border: 1px solid #dde4df; border-radius: 7px; color: var(--muted); background: #fbfcfb; font-size: 8px; font-weight: 700; }
.logged-food-actions button:last-child { color: #a9625b; border-color: #efd5d1; background: #fffafa; }
.delete-log-btn { width: 100%; margin-top: 13px; padding: 10px; border: 1px solid #ebcdc8; border-radius: 11px; color: #a65852; background: #fffafa; font-size: 11px; font-weight: 700; }

.fuel-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 10px; border-radius: 12px; background: #e9ece5; }
.fuel-tabs button { padding: 9px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 11px; }
.fuel-tabs button.active { color: var(--gold-dark); background: white; box-shadow: 0 1px 3px rgba(0,0,0,.07); font-weight: 700; }
.fuel-view-switcher { position: sticky; top: 0; z-index: 2; padding-bottom: 1px; background: var(--canvas); box-shadow: 0 7px 13px rgba(28, 47, 35, .06); }
.fuel-view-content { min-width: 0; }
.dietary-bar { display: grid; grid-template-columns: 29px 1fr auto; gap: 9px; align-items: center; padding: 11px 12px; margin-bottom: 16px; border: 1px solid #eee2cb; border-radius: 14px; background: #fffcf6; }
.dietary-bar > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--gold-dark); background: var(--peach); }
.dietary-bar svg { width: 15px; stroke: currentColor; }
.dietary-bar strong { display: block; color: var(--ink); font-size: 11px; }
.dietary-bar p { margin: 2px 0 0; color: var(--muted); font-size: 10px; line-height: 1.3; }
.weekly-intro { padding: 17px; border-radius: 20px; background: var(--peach); }
.weekly-intro h2 { margin: 5px 0 6px; color: var(--green-dark); font-size: 25px; }
.weekly-intro p { margin: 0; color: #6d5c3c; font-size: 12px; line-height: 1.4; }
.weekly-intro .primary-btn { margin-top: 14px; }
.weekly-plan-overview .secondary-btn { margin-top: 6px; color: var(--gold-dark); }
.weekly-plan-days { display: grid; gap: 11px; margin-top: 8px; }
.weekly-plan-header { margin: 2px 0 8px; }
.weekly-plan-header h2 { margin: 4px 0 5px; font-size: 23px; }
.weekly-plan-header p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.42; }
.weekly-plan-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.weekly-plan-action { min-width: 0; min-height: 51px; display: grid; align-content: center; gap: 3px; padding: 8px; border: 1px solid #dde4df; border-radius: 11px; color: var(--ink); background: var(--paper); text-align: left; }
.weekly-plan-action:hover { border-color: #c1d5c4; background: #f8fbf8; }
.weekly-plan-action span { display: flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; line-height: 1.15; }
.weekly-plan-action span svg { width: 12px; height: 12px; stroke: currentColor; }
.weekly-plan-action small { overflow: hidden; color: var(--muted); font-size: 8px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.weekly-plan-action-shop { border-color: #ead8b5; color: var(--gold-dark); background: #fffbf3; }
.weekly-plan-context .meal-plan-integrity { gap: 7px; margin: 0 0 6px; padding: 1px 1px 4px; border: 0; border-radius: 0; color: var(--muted); background: transparent; }
.weekly-plan-context .meal-plan-integrity svg { width: 14px; color: var(--green); stroke: currentColor; }
.weekly-plan-context .meal-plan-integrity p { font-size: 10px; line-height: 1.38; }
.weekly-plan-context .meal-plan-integrity strong { color: var(--ink); }
.weekly-plan-day { padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.weekly-plan-day-heading { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: start; }
.weekly-plan-day-heading h3 { margin: 2px 0 3px; font-size: 15px; }
.weekly-plan-day-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.3; }
.weekly-plan-meals { display: grid; gap: 1px; margin-top: 13px; padding: 5px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.weekly-plan-meals button { display: grid; grid-template-columns: 70px 1fr; gap: 5px 9px; width: 100%; padding: 9px 1px; border: 0; color: var(--ink); background: transparent; text-align: left; }
.weekly-plan-meals button + button { border-top: 1px solid #f0f1f0; }
.weekly-plan-meals span { color: var(--gold-dark); font: 600 9px/1 "DM Mono", monospace; letter-spacing: .03em; text-transform: uppercase; }
.weekly-plan-meals strong { font-size: 11px; line-height: 1.2; }
.weekly-plan-meals em { grid-column: 2; color: var(--muted); font-size: 9px; font-style: normal; }
.daily-plan-total { position: relative; margin-top: 12px; padding: 11px 12px; border: 1px solid #ead8b5; border-radius: 13px; background: #fffbf3; }
.daily-plan-total > span { display: block; color: var(--gold-dark); font: 600 9px/1 "DM Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.daily-plan-total strong { display: block; margin: 5px 0 3px; color: var(--ink); font-size: 13px; }
.daily-plan-total p { margin: 0; color: #6d5c3c; font-size: 9px; line-height: 1.35; }
.daily-plan-total em { display: inline-block; max-width: 100%; margin-top: 8px; padding: 4px 6px; border-radius: 7px; color: #6d5c3c; background: #f7e9cd; font: 600 8px/1.25 "DM Mono", monospace; font-style: normal; text-transform: uppercase; }
.daily-plan-total em.on-target { color: #3e7655; background: #e5efe8; }
.plan-meal-controls { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.plan-meal-controls button, .ingredient-exclude { padding: 5px 7px; border: 1px solid #e2e4e2; border-radius: 8px; color: var(--muted); background: #fbfcfb; font-size: 9px; font-weight: 700; }
.plan-meal-controls button:first-child { color: #3e7655; border-color: #cfe6d6; background: #f2f9f4; }
.portion-control { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 13px; border-radius: 14px; background: #fffbf3; }
.portion-control strong { display: block; margin: 4px 0 2px; font-size: 16px; }
.portion-control .eyebrow::after { content: " · 5% steps"; color: var(--muted); letter-spacing: .04em; }
.portion-control p::before { content: "Recipe baseline: 1 serving · "; }
.portion-control p { margin: 0; color: #6d5c3c; font-size: 10px; }
.portion-control > div:last-child { display: flex; gap: 6px; }
.portion-control button { width: 34px; height: 34px; border: 1px solid #e4d3b1; border-radius: 9px; color: var(--gold-dark); background: #fffdf8; font-size: 18px; line-height: 1; }
.ingredients li { position: relative; }
.ingredient-exclude { margin-left: auto; flex: 0 0 auto; color: var(--coral); border-color: #efc8c0; background: #fffaf9; }
.swap-options { display: grid; gap: 9px; margin-top: 19px; }
.swap-option { display: grid; grid-template-columns: 1fr 18px; gap: 10px; align-items: center; width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: var(--paper); text-align: left; }
.swap-option strong { display: block; margin: 4px 0 3px; font-size: 13px; }
.swap-option p { margin: 0; color: var(--muted); font-size: 10px; }
.swap-option svg { width: 16px; stroke: var(--gold-dark); }
.weekly-days { display: grid; gap: 8px; margin-top: 13px; }
.weekly-day { display: grid; grid-template-columns: 35px 1fr auto; gap: 10px; align-items: center; width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: var(--paper); text-align: left; }
.day-circle { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--gold-dark); background: var(--peach); font: 600 15px Fraunces, Georgia, serif; }
.weekly-day h3 { margin: 2px 0 2px; font-size: 13px; }
.weekly-day p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.3; }
.week-count { display: flex; align-items: center; gap: 3px; color: var(--gold-dark); font-size: 10px; font-weight: 700; white-space: nowrap; }
.week-count svg { width: 14px; stroke: currentColor; }

.reflect-hero { padding: 18px; border-radius: 21px; background: var(--lavender); margin-bottom: 18px; }
.reflect-hero h2 { font-size: 25px; margin: 7px 0; }
.moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin: 15px 0 4px; }
.mood { height: 51px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 14px; background: rgba(255,255,255,.68); font-size: 21px; transition: transform .18s, border-color .18s; }
.mood:hover { transform: translateY(-2px); }
.mood.active { border: 2px solid var(--journal); background: white; transform: translateY(-2px); }
.diary { width: 100%; min-height: 111px; resize: vertical; padding: 13px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--paper); font-size: 13px; line-height: 1.45; }
.diary::placeholder { color: #aab1aa; }
.primary-btn { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; margin-top: 10px; padding: 13px; border: 0; border-radius: 14px; color: white; background: var(--navy); box-shadow: 0 8px 18px rgba(23,33,43,.16); font-weight: 700; font-size: 13px; }
.primary-btn:hover { background: #2a3845; }
.primary-btn svg { width: 16px; }
.history-peek { margin-top: 20px; }
.entry { display: flex; gap: 11px; align-items: center; padding: 10px 1px; border-bottom: 1px solid var(--line); }
.entry:last-child { border: 0; }
.entry-emote { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: #f1f3ed; font-size: 16px; }
.entry p { margin: 2px 0 0; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry .tiny { margin-left: auto; white-space: nowrap; }

.period-tabs { display: flex; gap: 5px; padding: 4px; margin-bottom: 19px; border-radius: 12px; background: #e9ece5; }
.period-tabs button { flex: 1; padding: 8px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 11px; }
.period-tabs button.active { color: var(--success); background: white; box-shadow: 0 1px 3px rgba(0,0,0,.07); font-weight: 700; }
.chart-card { padding: 15px 14px 12px; border: 1px solid var(--line); border-radius: 19px; background: var(--paper); }
.chart-card + .chart-card { margin-top: 11px; }
.chart-card h3 { margin: 3px 0 2px; font-size: 15px; }
.chart-card p { margin: 0; color: var(--muted); font-size: 10px; }
.chart { width: 100%; height: 133px; overflow: visible; margin-top: 8px; }
.chart .grid { stroke: #e9ece5; stroke-width: 1; }
.chart .line { fill: none; stroke: var(--success); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart .fill { fill: rgba(104,184,138,.22); }
.chart .point { fill: white; stroke: var(--success); stroke-width: 2.5; }
.chart-labels { display: flex; justify-content: space-between; color: #97a199; font: 9px "DM Mono", monospace; }
.insight { display: flex; gap: 11px; margin-top: 14px; padding: 13px; border-radius: 15px; background: var(--mint); }
.insight svg { width: 20px; height: 20px; flex: 0 0 auto; stroke: var(--success); }
.insight p { margin: 1px 0 0; color: #466b52; font-size: 11px; line-height: 1.35; }

.sheet-backdrop { position: absolute; inset: 0; z-index: 8; display: flex; align-items: end; background: rgba(17, 31, 23, .34); backdrop-filter: blur(3px); }
.sheet { width: 100%; max-height: 86%; overflow: auto; padding: 10px 18px 34px; border-radius: 25px 25px 0 0; background: var(--paper); animation: rise .25s ease-out; scroll-padding-top: 90px; }
.sheet-handle { width: 34px; height: 4px; margin: 0 auto 12px; border-radius: 5px; background: #d9ded5; }
.sheet-top { position: sticky; z-index: 2; top: -10px; display: flex; justify-content: space-between; align-items: start; gap: 12px; margin: 0 -18px 15px; padding: 10px 18px 12px; border-bottom: 1px solid var(--line); background: var(--paper); }
.sheet-top h2 { font-size: 26px; margin-bottom: 4px; }
.close { width: 44px; height: 44px; flex: 0 0 auto; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: #f1f3ee; color: var(--muted); font-size: 23px; }
.log-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 8px; }
.log-load-field { min-width: 0; }
.log-load-label { display: flex; align-items: center; min-height: 43px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--green-dark); background: var(--mint); font-size: 14px; font-weight: 700; }
.log-load-field small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.load-mode-toggle { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.load-mode-toggle button { flex: 1; min-width: max-content; padding: 7px 8px; border: 1px solid #d6dfd6; border-radius: 9px; color: #58715f; background: #fff; font-size: 10px; font-weight: 700; }
.load-mode-toggle button.active { border-color: #95bea2; color: #24613e; background: #edf7ef; }
.field label { display: block; margin: 0 0 6px; color: var(--muted); font: 10px "DM Mono", monospace; text-transform: uppercase; }
.field input { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fbfcf9; font-size: 15px; }
.video-link { display: inline-flex; gap: 6px; align-items: center; margin-top: 17px; color: var(--green); font-size: 12px; font-weight: 700; }
.video-link svg { width: 16px; }
.basket-winner { padding: 15px; margin: 16px 0 12px; border-radius: 17px; color: white; background: var(--navy); }
.basket-winner .mono { color: var(--lime); }
.basket-winner h3 { margin: 5px 0 2px; font: 600 21px Fraunces, Georgia, serif; }
.basket-winner p { margin: 0; color: rgba(255,255,255,.7); font-size: 11px; }
.grocery { display: flex; justify-content: space-between; align-items: center; padding: 12px 1px; border-bottom: 1px solid var(--line); }
.grocery:last-child { border-bottom: 0; }
.grocery label { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.grocery input { accent-color: var(--green); width: 16px; height: 16px; }
.grocery span { color: var(--muted); font: 11px "DM Mono", monospace; }
.grocery label > span { display: grid; gap: 2px; color: var(--ink); font-family: "DM Sans", system-ui, sans-serif; }
.grocery label strong { color: var(--ink); font-size: 12px; font-weight: 600; }
.grocery label small { color: var(--green); font: 9px "DM Mono", monospace; }
.grocery > span { display: grid; justify-items: end; gap: 2px; }
.grocery > span b { color: var(--muted); font: 500 10px "DM Mono", monospace; }
.grocery > span em { color: #99a39a; font: 9px "DM Mono", monospace; font-style: normal; }
.store-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 13px; border: 1px solid var(--line); border-radius: 13px; margin-top: 8px; font-size: 12px; }
.store-row.best { border-color: #b9dec5; background: #f0f8f3; }
.store-row strong { color: #3b8960; }
.store-row small { color: var(--muted); }
.shop-preference-note { display: flex; gap: 7px; align-items: center; padding: 10px 11px; margin: 13px 0 3px; border-radius: 12px; color: #496353; background: var(--mint); font-size: 10px; }
.shop-preference-note svg { width: 14px; flex: 0 0 auto; stroke: var(--green); }
.shop-group { padding-top: 4px; }
.shop-group .section-heading { margin: 18px 0 5px; }
.shop-group .section-heading h2 { font-size: 15px; }
.day-meals { display: grid; gap: 8px; margin-top: 19px; }
.week-meal { display: flex; align-items: center; justify-content: space-between; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.week-meal h3 { margin: 4px 0 3px; font-size: 13px; }
.week-meal p { margin: 0; color: var(--muted); font-size: 10px; }
.dietary-options { display: grid; gap: 8px; margin-top: 18px; }
.dietary-option { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: #fff; text-align: left; }
.dietary-option.selected { border-color: var(--gold); background: #fffbf2; }
.dietary-option strong { display: block; font-size: 13px; }
.dietary-option p { margin: 2px 0 0; color: var(--muted); font-size: 10px; line-height: 1.3; }
.swap-preview { margin-top: 19px; padding: 1px 12px 11px; border-radius: 15px; background: #fffbf3; }
.swap-preview .section-heading { margin: 13px 0 8px; }
.swap-preview .section-heading h2 { font-size: 15px; }
.swap-preview > div { display: grid; grid-template-columns: 1fr 15px 1fr; gap: 5px; align-items: center; padding: 8px 0; border-top: 1px solid #e1e8dd; color: var(--muted); font-size: 10px; }
.swap-preview svg { width: 13px; stroke: var(--green); }
.swap-preview strong { color: var(--green-dark); font-size: 10px; }

.progression-options { display: grid; gap: 10px; margin-top: 20px; }
.progression-option { display: grid; grid-template-columns: 27px 1fr 19px; gap: 10px; align-items: center; width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: #fff; text-align: left; }
.progression-option.selected { border-color: var(--green); background: #f3f9f2; }
.progression-option strong, .progression-option em, .progression-option p { display: block; }
.progression-option strong { font-size: 14px; }
.progression-option em { margin: 2px 0 5px; color: var(--green); font: 500 9px "DM Mono", monospace; font-style: normal; letter-spacing: .04em; text-transform: uppercase; }
.progression-option p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.progression-option > svg { width: 17px; stroke: var(--muted); }
.progression-check { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #d3dbd1; border-radius: 50%; color: white; }
.progression-option.selected .progression-check { border-color: var(--green); background: var(--green); }
.progression-check svg { width: 15px; stroke: currentColor; }

.recipe-section, .guide-section { margin-top: 20px; }
.recipe-section .section-heading, .guide-section .section-heading { margin: 0 0 10px; }
.ingredients, .recipe-steps, .guide-steps { list-style: none; padding: 0; margin: 0; }
.ingredients { display: grid; gap: 8px; }
.ingredients li { display: flex; align-items: center; gap: 9px; color: #415347; font-size: 13px; }
.ingredients svg { width: 15px; color: var(--green); stroke: currentColor; }
.ingredients .ingredient-swapped { color: var(--green-dark); }
.ingredients li em { margin-left: auto; padding: 3px 5px; border-radius: 6px; color: var(--green); background: var(--mint); font: 8px "DM Mono", monospace; font-style: normal; text-transform: uppercase; }
.recipe-steps, .guide-steps { display: grid; gap: 11px; }
.recipe-steps li, .guide-steps li { display: grid; grid-template-columns: 25px 1fr; gap: 10px; align-items: start; }
.recipe-steps li > span, .guide-steps li > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--mint); font: 500 10px "DM Mono", monospace; }
.recipe-steps p, .guide-steps p { margin: 3px 0 0; color: #536259; font-size: 12px; line-height: 1.42; }
.recipe-guide { padding: 14px; border: 1px solid #e1e6df; border-radius: 15px; background: #fafcf9; }
.recipe-guide + .recipe-guide { margin-top: 12px; }
.recipe-guide p { margin: 0 0 10px; color: #536259; font-size: 12px; line-height: 1.48; }
.recipe-guide p:last-child { margin-bottom: 0; }
.recipe-heat-note { padding: 10px; border-radius: 10px; color: #485a4e !important; background: #edf4ee; }
.recipe-sheet-refined { position: relative; padding-bottom: 28px; scroll-padding-top: 118px; }
.recipe-sheet-refined .recipe-sheet-top { position: sticky; z-index: 4; top: -10px; isolation: isolate; margin: 0 -18px 13px; padding: 22px 18px 12px; background: var(--paper); box-shadow: 0 8px 14px rgba(35, 42, 36, .05); }
.recipe-sheet-refined .recipe-sheet-top::before { content: ''; position: absolute; z-index: -1; top: -22px; right: 0; left: 0; height: 24px; background: var(--paper); }
.recipe-hero { position: relative; aspect-ratio: 16 / 9.5; margin: 0; overflow: hidden; border: 1px solid #e5ddcf; border-radius: 18px; background: #f7f1e5; box-shadow: 0 9px 20px rgba(47, 41, 31, .08); }
.recipe-hero .recipe-dish-svg { display: block; width: 100%; height: 100%; }
.recipe-hero figcaption { position: absolute; right: 11px; bottom: 10px; display: grid; justify-items: end; gap: 2px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.52); border-radius: 10px; color: #fffdf8; background: rgba(20,31,37,.76); backdrop-filter: blur(7px); }
.recipe-hero figcaption span { color: #ded8ca; font: 600 8px/1 "DM Mono", monospace; letter-spacing: .07em; text-transform: uppercase; }
.recipe-hero figcaption strong { max-width: 205px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.meal-copy { min-width: 0; flex: 1; }
.meal-dish-thumbnail { width: 60px; height: 36px; flex: 0 0 60px; align-self: center; overflow: hidden; border: 1px solid #e7ded0; border-radius: 10px; background: #f7f1e5; box-shadow: 0 4px 10px rgba(47, 41, 31, .06); }
.meal-dish-thumbnail .recipe-dish-svg { display: block; width: 100%; height: 100%; }
.recipe-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 11px; overflow: hidden; border: 1px solid #e4e0d7; border-radius: 13px; background: #e4e0d7; }
.recipe-facts > div { min-width: 0; padding: 10px 7px; background: #fffdf8; text-align: center; }
.recipe-facts span { display: block; overflow: hidden; color: var(--muted); font: 600 8px/1 "DM Mono", monospace; letter-spacing: .04em; text-overflow: ellipsis; white-space: nowrap; }
.recipe-facts strong { display: block; margin-top: 5px; color: var(--ink); font-size: 10px; white-space: nowrap; }
.recipe-macro-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 13px; border: 1px solid #e7d8bc; border-radius: 14px; background: #fffaf1; }
.recipe-macro-summary strong { display: block; margin-top: 3px; color: #6f552e; font-size: 18px; }
.recipe-macro-summary p { display: grid; gap: 4px; margin: 0; color: #715c38; font-size: 10px; text-align: right; }
.recipe-nutrition-details { margin-top: 12px; overflow: hidden; border: 1px solid #e7d8bc; border-radius: 14px; background: #fffaf1; }
.recipe-nutrition-details summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px; cursor: pointer; color: #6f552e; list-style: none; }
.recipe-nutrition-details summary::-webkit-details-marker { display: none; }
.recipe-nutrition-details summary > span:first-child { display: grid; gap: 2px; }
.recipe-nutrition-details summary strong { color: #5c4729; font-size: 12px; }
.recipe-nutrition-details summary small { color: #7c6a4c; font-size: 10px; }
.recipe-nutrition-details summary > span:last-child { padding-right: 18px; color: #6f552e; font-size: 12px; font-weight: 700; background: linear-gradient(45deg, transparent 45%, currentColor 46% 54%, transparent 55%) right center / 8px 8px no-repeat; }
.recipe-nutrition-details[open] summary > span:last-child { background-image: linear-gradient(135deg, transparent 45%, currentColor 46% 54%, transparent 55%); }
.recipe-nutrition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border-top: 1px solid #e7d8bc; background: #e7d8bc; }
.recipe-nutrition-grid > div { display: grid; gap: 3px; padding: 10px 11px; background: #fffdf8; }
.recipe-nutrition-grid span { color: #806d4e; font: 600 8px/1 "DM Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
.recipe-nutrition-grid strong { color: #514327; font-size: 12px; }
.recipe-nutrition-estimate { margin: 0; padding: 10px 12px 12px; color: #78684e; border-top: 1px solid #eadfcb; background: #fffaf1; font-size: 10px; line-height: 1.35; }
.recipe-quick-notes { display: grid; gap: 0; margin-top: 15px; border: 1px solid #e0e5dc; border-radius: 14px; overflow: hidden; }
.recipe-quick-notes > div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 10px 11px; border-top: 1px solid #e8ece7; background: #fbfcfa; }
.recipe-quick-notes > div:first-child { border-top: 0; }
.recipe-quick-notes strong { color: var(--green-dark); font-size: 10px; }
.recipe-quick-notes span { color: var(--muted); font-size: 10px; line-height: 1.38; }
.recipe-ingredients { margin-top: 18px; }
.ingredient-component { padding: 11px 0; border-top: 1px solid #e8ebe6; }
.ingredient-component h3 { margin: 0 0 8px; color: #506857; font-size: 11px; }
.ingredient-component:first-of-type { border-top: 0; }
.ingredient-component .ingredients { gap: 7px; }
.recipe-finish { border-color: #eadcc3; background: #fffaf2; }
.recipe-bottom-actions { display: grid; gap: 8px; margin-top: 18px; }
.recipe-bottom-actions .secondary-fill, .recipe-bottom-actions .primary-btn { width: 100%; margin: 0; }
.plan-settings-link { display: grid; grid-template-columns: 28px 1fr 17px; gap: 9px; align-items: center; width: 100%; margin: 1px 0 15px; padding: 12px; border: 1px solid #d7e2d8; border-radius: 14px; color: var(--ink); background: #f4f8f3; text-align: left; }
.plan-settings-link > span:first-child { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; color: var(--green); background: #e3eee4; }
.plan-settings-link svg { width: 15px; stroke: currentColor; }
.plan-settings-link strong, .plan-settings-link small { display: block; }
.plan-settings-link strong { font-size: 12px; }
.plan-settings-link small { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.meal-plan-integrity { display: flex; align-items: flex-start; gap: 9px; margin: 14px 0; padding: 12px 13px; border: 1px solid #d6e4d8; border-radius: 13px; color: #3e5c47; background: #f3f8f4; }
.meal-plan-integrity svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; }
.meal-plan-integrity p { margin: 0; font-size: 12px; line-height: 1.42; }
.meal-plan-integrity.needs-attention { border-color: #e6d3aa; color: #705c34; background: #fffaf0; }
.motion-guide { margin-top: 19px; padding: 14px; overflow: hidden; border-radius: 17px; color: white; background: linear-gradient(135deg, #17212b, #25362f); }
.motion-header { display: flex; align-items: center; gap: 7px; color: #e2eee5; font-size: 11px; font-weight: 700; }
.motion-header svg { width: 17px; stroke: var(--green); }
.motion-header em { margin-left: auto; color: #c7d9cd; font: 9px "DM Mono", monospace; font-style: normal; text-transform: uppercase; }
.motion-frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 13px 0 10px; }
.motion-frame { min-width: 0; min-height: 132px; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(255,255,255,.09); animation: motionFramePulse 4.8s infinite ease-in-out var(--motion-delay); }
.motion-frame-art { min-height: 66px; display: grid; place-items: end center; padding: 7px 5px 2px; background: linear-gradient(180deg, rgba(127,166,138,.1), transparent); }
.motion-frame figcaption { display: grid; gap: 3px; padding: 6px 7px 8px; text-align: left; }
.motion-frame strong { color: #f2f7f4; font-size: 9px; line-height: 1.14; }
.motion-frame figcaption span { color: #c8d6d3; font-size: 8px; line-height: 1.26; }
.technique-illustration { width: 56px; height: 46px; margin: 0 auto; overflow: visible; fill: none; stroke: #d9e4e5; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.technique-illustration .ground { stroke: rgba(127,166,138,.8); }
.technique-illustration .motion-line, .technique-illustration .control-ring, .technique-illustration .motion, .technique-illustration .accent { stroke: var(--green); }
.technique-illustration .equipment { stroke: #b9c6ca; }
.technique-illustration .body { stroke: #f0f5f2; }
.motion-frame .technique-illustration .body { stroke-dasharray: 90; stroke-dashoffset: 0; animation: drawTechnique 4.8s infinite ease-out var(--motion-delay); }
.motion-frame-setup .technique-illustration { animation: settleTechnique 4.8s infinite ease-in-out var(--motion-delay); }
.motion-frame-move .technique-illustration { animation: travelTechnique 2s infinite ease-in-out var(--motion-delay); }
.motion-frame-move .technique-illustration .motion { stroke-dasharray: 4 7; animation: traceRange .72s infinite linear var(--motion-delay); }
.motion-frame-control .technique-illustration .accent { stroke-dasharray: 28; stroke-dashoffset: 28; animation: finishTechnique 1.8s infinite ease-in-out var(--motion-delay); }
.motion-frames.anatomy-frames { grid-template-columns: repeat(3, minmax(142px, 1fr)); align-items: start; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline proximity; scrollbar-width: none; }
.motion-frames.anatomy-frames::-webkit-scrollbar { display: none; }
.anatomy-frame { min-height: 0; scroll-snap-align: start; animation: none; background: rgba(255,255,255,.075); }
.anatomy-board { display: grid; width: 100%; aspect-ratio: 11 / 8; place-items: center; overflow: hidden; padding: 5px; border-radius: 11px 11px 0 0; background: radial-gradient(circle at 50% 15%, rgba(127,166,138,.15), transparent 48%), #10222b; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.raster-exercise-board { aspect-ratio: var(--guide-frame-ratio, 1 / 1); padding: 0; background-image: var(--guide-image); background-position: var(--guide-background-position, center); background-repeat: no-repeat; background-size: var(--guide-background-size, cover); }
.vector-exercise-board { isolation: isolate; }
.vector-exercise-board .exercise-visual-svg { max-width: 100%; max-height: 100%; }
.exercise-triptych { margin: 13px 0 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 13px; background: #10222b; }
.exercise-triptych img { display: block; width: 100%; height: auto; object-fit: contain; }
.triptych-phase-list { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; background: rgba(11,22,31,.66); }
.triptych-phase-list li { display: grid; grid-template-columns: 21px 1fr; gap: 7px; align-items: start; padding: 8px 10px; border-top: 1px solid rgba(255,255,255,.09); }
.triptych-phase-list li:first-child { border-top: 0; }
.triptych-phase-list > li > span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; color: #cfe4d4; background: rgba(127,166,138,.23); font: 600 8px "DM Mono", monospace; }
.triptych-phase-list strong { display: block; color: #f5f8f6; font-size: 9px; }
.triptych-phase-list p { margin: 2px 0 0; color: #d5dfdc; font-size: 8px; line-height: 1.28; }
.exercise-visual-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.exercise-visual-surface { fill: rgba(255,255,255,.025); stroke: rgba(223,237,232,.13); stroke-width: 1; }
.exercise-visual-ground { fill: none; stroke: rgba(127,166,138,.68); stroke-width: 2; stroke-linecap: round; }
.exercise-visual-person { fill: none; stroke: #f2f6f3; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.exercise-visual-head { fill: #f2f6f3; stroke: #bfd0cc; stroke-width: 1.5; }
.exercise-visual-equipment { fill: none; stroke: #aabdc0; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.exercise-visual-pad { fill: none; stroke: #72858a; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.exercise-visual-load, .exercise-visual-handle, .exercise-visual-footplate { fill: none; stroke: #d4a85c; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.exercise-visual-mat { fill: rgba(127,166,138,.28); stroke: #7fa68a; stroke-width: 1.5; }
.exercise-visual-step { fill: none; stroke: #c5d3d1; stroke-width: 3; stroke-linecap: round; }
.exercise-visual-working-foot { fill: none; stroke: #d4a85c; stroke-width: 4; stroke-linecap: round; }
.exercise-visual-motion { fill: none; stroke: #7fa68a; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.exercise-visual-control, .exercise-visual-accent { fill: none; stroke: #d4a85c; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.anatomy-frame figcaption { min-height: 66px; background: rgba(11,22,31,.56); }
.anatomy-frame figcaption strong { color: #f5f8f6; }
.anatomy-frame figcaption span { color: #d5dfdc; }
.muscle-activation-key { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 12px; }
.muscle-activation-key span { display: inline-flex; gap: 4px; align-items: center; padding: 5px 6px; border: 1px solid rgba(255,255,255,.12); border-radius: 7px; color: #d7e2df; background: rgba(255,255,255,.06); font-size: 8px; line-height: 1.2; }
.muscle-activation-key b { color: #ff776d; font: 600 8px "DM Mono", monospace; letter-spacing: .03em; text-transform: uppercase; }
.motion-guide p { margin: 0; color: #d9e5e2; font-size: 11px; line-height: 1.35; }
.essential-form-cue { margin-top: 11px !important; padding: 10px; border: 1px solid rgba(231,239,232,.18); border-radius: 10px; background: rgba(255,255,255,.07); }
.essential-form-cue strong { color: #f5f7ef; }
.guide-visual-status { margin-top: 19px; padding: 14px; border: 1px solid var(--line); border-radius: 17px; color: var(--ink); background: var(--paper); }
.guide-visual-status > strong { display: block; color: var(--green-dark); font-size: 12px; }
.guide-visual-status > p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.guide-visual-status .essential-form-cue { color: #d9e5e2; background: var(--ink); }
.form-text-alternative { margin-top: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.form-text-alternative summary { padding: 12px 13px; color: var(--green); cursor: pointer; font-size: 11px; font-weight: 700; }
.form-text-alternative .guide-steps { padding: 0 13px 13px; }
.getting-started-sheet { padding-bottom: 28px; }
.getting-started-steps { display: grid; gap: 10px; padding: 0; margin: 2px 0 14px; list-style: none; }
.getting-started-steps li { display: grid; grid-template-columns: 29px 1fr; gap: 10px; align-items: start; padding: 12px; border: 1px solid #dfe7df; border-radius: 14px; background: #fbfcfa; }
.getting-started-steps > li > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; color: var(--green); background: var(--mint); font: 600 10px "DM Mono", monospace; }
.getting-started-steps strong { display: block; color: var(--ink); font-size: 12px; }
.getting-started-steps p { margin: 4px 0 7px; color: var(--muted); font-size: 11px; line-height: 1.42; }
.getting-started-steps .text-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; }
.getting-started-steps .text-btn svg { width: 14px; stroke: currentColor; }
.getting-started-note { margin: 0 0 12px; padding: 10px 11px; border-radius: 11px; color: #58675d; background: #f2f5f0; line-height: 1.38; }
.experience-note { display: flex; gap: 8px; align-items: start; margin: 12px 0 0; padding: 10px 11px; border-radius: 13px; color: #57665b; background: #eef2e9; font-size: 11px; line-height: 1.36; }
.experience-note svg { width: 16px; flex: 0 0 auto; color: var(--green); stroke: currentColor; }
.alternative-card { margin-top: 20px; padding: 15px; border: 1px solid #dce3e7; border-radius: 17px; background: #f3f6f7; }
.alternative-card h3 { margin: 6px 0 4px; color: var(--green-dark); font: 600 18px/1.06 Fraunces, Georgia, serif; }
.alternative-card p { margin: 0; color: #5c6a76; font-size: 11px; line-height: 1.35; }
.secondary-fill { width: 100%; margin-top: 12px; padding: 10px; border: 0; border-radius: 11px; color: var(--navy); background: #e8f5ed; font-size: 12px; font-weight: 700; }

.support { color: #783f38; background: var(--coral-wash); }
.support h2 { color: #783f38; }
.support .primary-btn { background: #b85d51; }
.support-actions { display: grid; gap: 8px; margin: 17px 0 9px; }
.support-action { display: flex; align-items: center; justify-content: space-between; padding: 13px; border: 1px solid #efc8c0; border-radius: 14px; color: #783f38; background: #fffaf9; text-decoration: none; font-size: 13px; font-weight: 700; }
.support-action span { color: #ae675e; font-size: 11px; font-weight: 500; }
.support-section { margin-top: 18px; }
.support-urgent { margin: 17px 0; padding: 14px; border: 1px solid #d77a6a; border-radius: 15px; color: #6f302b; background: #fff8f7; }
.support-urgent strong { display: block; margin: 6px 0 4px; font-size: 15px; }
.support-urgent p { margin: 0; color: #884c45; font-size: 11px; line-height: 1.4; }
.support-urgent .primary-btn { margin-top: 12px; background: #a84f45; box-shadow: none; }

.settings-profile { display: flex; gap: 12px; align-items: center; padding: 16px 0 17px; border-bottom: 1px solid var(--line); }
.avatar { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--mint); font: 600 20px Fraunces, Georgia, serif; }
.settings-list { margin-top: 10px; }
.setting { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 15px 1px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: none; text-align: left; font-size: 13px; }
.setting small { color: var(--muted); font-size: 11px; }
.setting svg { width: 17px; stroke: var(--muted); }

.onboarding-shell { position: absolute; inset: 0; z-index: 10; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; color: var(--ink); background: var(--canvas); }
.onboarding-header { position: relative; z-index: 1; padding: max(13px, env(safe-area-inset-top)) 18px 12px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: 0 5px 16px rgba(28, 47, 35, .04); }
.onboarding-header-top { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.onboarding-header .brand { font-size: 23px; }
.onboarding-header .brand-mark { width: 21px; height: 21px; }
.onboarding-back { min-height: 34px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--canvas); font-size: 11px; font-weight: 700; }
.onboarding-header-spacer { width: 56px; }
.onboarding-progress { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; margin-top: 10px; color: var(--muted); font: 500 9px/1 "DM Mono", monospace; letter-spacing: .05em; text-transform: uppercase; }
.onboarding-progress .steps { margin: 0; }
.onboarding-progress .steps span { width: auto; flex: 1; }
.onboarding { position: relative; inset: auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; padding: 25px 23px max(30px, env(safe-area-inset-bottom)); color: var(--ink); background: var(--canvas); }
.onboarding > .onboard-logo, .onboarding > .steps { display: none; }
.secondary-goals { margin: 15px 0; padding: 13px; border: 1px solid #dce5df; border-radius: 15px; background: #f8faf8; }
.secondary-goals h3 { margin: 6px 0 4px; color: var(--green-dark); }
.secondary-goals p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.secondary-goal-options { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.secondary-goal-options button { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 7px 9px; border: 1px solid #d5dfd7; border-radius: 10px; color: #536259; background: white; font-size: 11px; font-weight: 700; }
.secondary-goal-options button.selected { border-color: var(--green); color: #2f6442; background: var(--mint); }
.secondary-goal-options svg { width: 13px; stroke: currentColor; }
.nutrition-estimate { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.daily-plan-total small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; font-weight: 400; line-height: 1.35; }
.basket-cost-card { margin: 14px 0; padding: 14px; border: 1px solid #ded8c7; border-radius: 16px; background: #fffdf8; }
.basket-cost-card .section-heading { align-items: start; margin: 0 0 11px; }
.basket-cost-card .section-heading h2 { margin: 4px 0 0; color: var(--gold-dark); }
.basket-cost-card .section-heading .tiny { max-width: 130px; text-align: right; }
.basket-cost-fields { gap: 9px; }
.consent-checkbox { display: flex; align-items: start; gap: 8px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.consent-checkbox input { width: 15px; height: 15px; margin-top: 1px; accent-color: var(--green); }
.onboard-logo { margin-bottom: auto; }
.steps { display: flex; gap: 5px; margin-bottom: 24px; }
.steps span { width: 28px; height: 4px; border-radius: 4px; background: #dce1d9; }
.steps span.active { background: var(--green); }
.onboarding h1 { max-width: 300px; font-size: 39px; }
.onboarding .subcopy { max-width: 330px; margin-bottom: 22px; }
.goal-options { display: grid; gap: 9px; }
.goal-option { display: grid; grid-template-columns: 38px 1fr 20px; gap: 11px; align-items: center; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: var(--paper); text-align: left; }
.goal-option.selected { border: 2px solid var(--green); padding: 11px; }
.goal-option .circle { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); font-size: 18px; }
.goal-option strong, .goal-option span { display: block; }
.goal-option strong { font-size: 14px; }
.goal-option span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.tick { width: 18px; height: 18px; border: 1px solid #cbd2c9; border-radius: 50%; }
.goal-option.selected .tick { position: relative; border-color: var(--green); background: var(--green); }
.goal-option.selected .tick::after { content: ""; width: 7px; height: 4px; position: absolute; top: 5px; left: 4px; border-left: 1.5px solid white; border-bottom: 1.5px solid white; transform: rotate(-45deg); }
.onboarding .primary-btn { margin-top: auto; }
.consent-card { padding: 18px; border-radius: 19px; background: var(--lavender); }
.consent-card svg { width: 30px; margin-bottom: 16px; stroke: var(--journal); }
.consent-card h2 { font-size: 23px; }
.consent-card p { color: #625b75; font-size: 13px; line-height: 1.45; }
.consent-points { display: grid; gap: 11px; margin: 18px 0 2px; }
.consent-points div { display: flex; gap: 8px; align-items: start; font-size: 11px; line-height: 1.4; }
.consent-points svg { width: 15px; margin: 0; flex: 0 0 auto; stroke: var(--journal); }
.secondary-btn { display: flex; justify-content: center; width: 100%; margin-top: 9px; padding: 13px; border: 0; color: var(--green); background: transparent; font-size: 12px; font-weight: 700; }

.toast { position: absolute; z-index: 12; left: 18px; right: 18px; bottom: 87px; padding: 12px 14px; display: flex; align-items: center; gap: 9px; border-radius: 13px; color: white; background: var(--navy); box-shadow: 0 10px 25px rgba(23,33,43,.22); animation: toast .25s ease-out; font-size: 12px; }
.toast.is-leaving { pointer-events: none; animation: toastExit .24s ease-in forwards; }
.toast svg { width: 17px; color: var(--lime); flex: 0 0 auto; }

.home-streak { min-height: 84px; margin-bottom: 19px; }
.featured-today { margin-bottom: 10px; }
.featured-today .eyebrow { margin-bottom: 3px; }
.featured-today.is-complete { border-color: #b9d1bd; background: linear-gradient(135deg, #fbfdf9, #f1f7f1); }
.featured-today.is-complete .today-icon { color: #4e7d5a; background: #e2efe4; }
.today-snapshot { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.snapshot-card { display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: var(--paper); text-align: left; }
.snapshot-card > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: var(--mint); }
.snapshot-card svg { width: 15px; stroke: currentColor; }
.snapshot-card strong { display: block; margin: 4px 0 2px; color: var(--green-dark); font-size: 12px; line-height: 1.15; }
.snapshot-card p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.28; }
.fuel-snapshot > span { color: var(--gold-dark); background: var(--peach); }
.quick-check-card { padding: 13px; margin-bottom: 10px; border: 1px solid #ded8eb; border-radius: 16px; background: #f5f2f8; }
.quick-check-card strong { display: block; font-size: 12px; }
.quick-check-card p { margin: 3px 0 9px; color: #655f78; font-size: 10px; }
.mini-moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.mini-moods button { min-height: 34px; display: grid; place-items: center; padding: 3px; border: 1px solid transparent; border-radius: 10px; background: rgba(255,255,255,.72); }
.mini-moods button.active { border-color: var(--journal); background: white; box-shadow: 0 1px 4px rgba(77,68,104,.12); }
.mood-mark { width: 13px; height: 13px; display: block; border: 1.5px solid currentColor; border-radius: 50%; }
.mood-1 { color: #b25e51; background: #f5dcd7; }
.mood-2 { color: #9b783f; background: #f5e9ce; }
.mood-3 { color: #68737d; background: #e5e8ea; }
.mood-4 { color: #5f8670; background: #deece2; }
.mood-5 { color: #397852; background: #c8e6d2; }
.mini-moods button.active .mood-mark { transform: scale(1.16); }
.entry-emote .mood-mark { width: 12px; height: 12px; }

/* Quick check-in: a calm, independent mood and energy signal. */
.quick-check-card { margin: 20px 0 16px; padding: 18px; border: 1px solid #e4e0e9; border-radius: 20px; color: #202833; background: #f4f1f6; box-shadow: 0 8px 20px rgba(32,40,51,.045); font-family: Inter, "DM Sans", system-ui, sans-serif; }
.check-in-card-heading { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 17px; }
.check-in-eyebrow { color: #78a68a; font-size: 10px; font-weight: 600; letter-spacing: .14em; line-height: 1; text-transform: uppercase; }
.quick-check-card h2 { margin: 8px 0 5px; color: #202833; font: 700 25px/1.05 Inter, "DM Sans", system-ui, sans-serif; letter-spacing: -.045em; }
.quick-check-card .check-in-card-heading p { max-width: 270px; margin: 0; color: #6d687d; font: 400 12px/1.42 Inter, "DM Sans", system-ui, sans-serif; }
.check-in-card-mark { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #e4e0e9; border-radius: 11px; color: #78a68a; background: #fcfbfc; }
.check-in-card-mark svg { width: 23px; height: 23px; }
.check-in-scale + .check-in-scale { margin-top: 16px; }
.check-in-scale-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 1px 8px; }
.check-in-scale-heading strong { color: #202833; font: 600 11px/1 Inter, "DM Sans", system-ui, sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.check-in-scale-heading span { color: #6d687d; font: 400 10px/1 Inter, "DM Sans", system-ui, sans-serif; }
.check-in-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.check-in-option { min-height: 82px; position: relative; display: grid; align-content: center; justify-items: center; gap: 6px; padding: 7px 3px; overflow: hidden; border: 1px solid #e7e3e9; border-radius: 13px; color: #202833; background: #fcfbfc; font: 600 9px/1 Inter, "DM Sans", system-ui, sans-serif; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.check-in-option:hover { transform: translateY(-1px); border-color: var(--check-in-state); }
.check-in-option.selected { border: 1.5px solid var(--check-in-state); background: var(--check-in-tint); box-shadow: 0 3px 9px rgba(32,40,51,.05); }
.check-in-option-icon { width: 25px; height: 25px; overflow: visible; fill: none; stroke: var(--check-in-state); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.energy-icon { stroke: #a77a56; }
.energy-icon .coffee-fill { fill: #d4ad88; stroke: none; }
.energy-icon .coffee-steam { stroke: #c49a76; stroke-width: 1.35; }
.check-in-option.selected .energy-icon { stroke: var(--check-in-state); }
.check-in-option.selected .energy-icon .coffee-fill { fill: var(--check-in-state); opacity: .78; }
.check-in-option.selected .energy-icon .coffee-steam { stroke: var(--check-in-state); }
.check-in-option > span { color: #202833; white-space: nowrap; }
.check-in-selected-mark { width: 14px; height: 14px; position: absolute; top: 5px; right: 5px; display: none; place-items: center; border-radius: 50%; color: white; background: var(--check-in-state); }
.check-in-selected-mark svg { width: 9px; height: 9px; stroke: currentColor; stroke-width: 2.5; }
.check-in-option.selected .check-in-selected-mark { display: grid; }
.check-in-before-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 15px; padding: 11px 12px; border: 1px solid #e5e1e9; border-radius: 12px; background: #fcfbfc; }
.check-in-before-summary span { color: #6d687d; font: 500 10px/1 Inter, "DM Sans", system-ui, sans-serif; }
.check-in-before-summary strong { color: #202833; font: 600 10px/1.35 Inter, "DM Sans", system-ui, sans-serif; text-align: right; }
.check-in-divider { height: 1px; margin: 2px 0 16px; background: #dfd9e5; }
.check-in-optional { margin: 13px 1px 0; color: #6d687d; font: 400 10px/1.4 Inter, "DM Sans", system-ui, sans-serif; }
.check-in-comparison { padding: 13px; border: 1px solid #dedfe2; border-radius: 14px; background: #fcfbfc; }
.check-in-comparison-kicker { margin-bottom: 10px; color: #78a68a; font: 600 9px/1 Inter, "DM Sans", system-ui, sans-serif; letter-spacing: .12em; }
.check-in-comparison-row { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid #eeeaf0; }
.check-in-comparison-row span { color: #6d687d; font: 500 10px/1 Inter, "DM Sans", system-ui, sans-serif; }
.check-in-comparison-row strong { color: #202833; font: 600 11px/1.2 Inter, "DM Sans", system-ui, sans-serif; }
.check-in-comparison-row strong b { color: #9a96a2; font-weight: 500; }
.check-in-comparison-row em { min-width: 23px; padding: 4px 5px; border-radius: 7px; color: #6d687d; background: #f0f1ef; font: 600 10px/1 Inter, "DM Sans", system-ui, sans-serif; font-style: normal; text-align: center; }
.check-in-comparison-row em.up { color: #3e7655; background: #e5efe8; }
.check-in-comparison-row em.down { color: #95605d; background: #f7e8e7; }
.check-in-comparison p { margin: 11px 0 0; color: #6d687d; font: 400 11px/1.42 Inter, "DM Sans", system-ui, sans-serif; }
.weekly-review-card, .meal-preference-card, .how-doing-card { display: grid; grid-template-columns: 28px 1fr 18px; gap: 10px; align-items: center; width: 100%; margin-top: 17px; padding: 13px; border: 1px solid #dce8df; border-radius: 16px; color: var(--ink); background: #f5faf6; text-align: left; }
.weekly-review-card > span:first-child, .meal-preference-card > span:first-child, .how-doing-card > span:first-child { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; color: #397852; background: #e8f5ed; }
.weekly-review-card svg, .meal-preference-card svg, .how-doing-card svg { width: 16px; stroke: currentColor; }
.weekly-review-card strong, .meal-preference-card strong, .how-doing-card strong { display: block; margin: 3px 0; font-size: 12px; line-height: 1.24; }
.weekly-review-card p, .meal-preference-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.3; }
.progress-review { margin-top: 14px; }

.macro-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.macro-heading .text-btn { margin-top: 8px; }
.macro-actions { display: flex; gap: 10px; white-space: nowrap; }
.macro-note { margin: 12px 0 0; color: #63735d; font-size: 10px; line-height: 1.35; }
.meal-preference-card { margin: 0 0 15px; background: #fffcf6; border-color: #ead8b5; }
.meal-preference-card > span:first-child { color: var(--gold-dark); background: var(--peach); }

.training-utility-row { display: flex; gap: 8px; margin: -5px 0 12px; }
.subtle-action { flex: 1; min-height: 37px; padding: 8px 10px; border: 1px solid #d9e4d7; border-radius: 11px; color: var(--green); background: #f5faf4; font-size: 10px; font-weight: 700; }
.banner-button { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; padding: 8px 10px; border: 0; border-radius: 10px; color: var(--navy); background: var(--green); font-size: 11px; font-weight: 800; }
.banner-button svg { width: 14px; stroke: currentColor; }
.overload-card { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; margin: 0 0 14px; padding: 13px; border: 1px solid #cbe6d4; border-radius: 15px; background: #eef8f1; }
.overload-card svg { width: 19px; color: var(--success); stroke: currentColor; }
.overload-card strong { display: block; margin: 4px 0 2px; color: var(--green-dark); font-size: 12px; }
.overload-card p { margin: 0; color: #61735e; font-size: 10px; line-height: 1.35; }

/* Beginner-first training presentation: primary information at a glance, detail on demand. */
.train-header { margin-bottom: 12px; }
.adaptive-plan-card { display: grid; gap: 12px; margin-bottom: 10px; padding: 14px; border: 1px solid #d8e2dd; border-radius: 17px; background: #f3f8f4; }
.adaptive-plan-card h2 { margin: 5px 0 4px; color: var(--green-dark); font-size: 21px; }
.adaptive-plan-card p { margin: 0; color: #53675a; font-size: 11px; line-height: 1.38; }
.adaptive-plan-card .plan-count { margin-bottom: 5px; color: var(--green); font: 600 10px/1.2 "DM Mono", monospace; letter-spacing: .03em; text-transform: uppercase; }
.adaptive-plan-actions { display: flex; gap: 15px; align-items: center; }
.adaptive-plan-actions .text-btn { font-size: 11px; }
.beginner-split-tabs { margin-bottom: 11px; }
.beginner-split-tabs button { min-height: 38px; padding: 6px 4px; line-height: 1.1; }
.beginner-workout-banner { margin-bottom: 11px; }
.beginner-workout-banner .workout-secondary { margin-top: 6px; color: var(--lime); font-size: 11px; font-weight: 700; }
.recovery-recommendation { display: grid; grid-template-columns: 20px 1fr auto; gap: 9px; align-items: start; margin: 0 0 11px; padding: 11px; border: 1px solid #ded7c8; border-radius: 14px; background: #fffaf0; }
.recovery-recommendation > span { color: var(--gold-dark); }
.recovery-recommendation svg { width: 17px; stroke: currentColor; }
.recovery-recommendation p { margin: 4px 0 0; color: #665c4d; font-size: 10px; line-height: 1.4; }
.recovery-recommendation .text-btn { align-self: center; color: #796136; font-size: 10px; }
.training-schedule-card { display: grid; gap: 12px; margin: 0 0 14px; padding: 14px; border: 1px solid #d9e2dd; border-radius: 17px; background: #f8faf8; }
.training-schedule-card h3 { margin: 5px 0 4px; color: var(--green-dark); font-size: 14px; }
.training-schedule-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.training-schedule-list { display: grid; gap: 6px; }
.training-schedule-list > div { display: grid; grid-template-columns: 33px 1fr auto; gap: 8px; align-items: center; min-height: 36px; padding: 7px 8px; border: 1px solid #e4e9e6; border-radius: 10px; color: var(--ink); background: var(--paper); }
.training-schedule-list > div.current { border-color: var(--green); background: var(--mint); box-shadow: inset 3px 0 0 var(--green); }
.training-schedule-list span { color: var(--green); font: 600 9px "DM Mono", monospace; letter-spacing: .05em; text-transform: uppercase; }
.training-schedule-list strong { min-width: 0; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.training-schedule-list em { color: var(--muted); font: 500 8px "DM Mono", monospace; font-style: normal; letter-spacing: .03em; }
.banner-why { position: relative; z-index: 1; display: block; margin-top: 11px; padding: 0; border: 0; color: rgba(255,255,255,.73); background: none; font-size: 11px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.train-exercise-heading { margin-top: 19px; }
.train-exercise-heading h2 { font-size: 18px; }
.beginner-exercise-list { gap: 10px; }
.beginner-exercise { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 13px; }
.beginner-exercise .exercise-dot { width: 34px; height: 34px; border-radius: 10px; }
.exercise-main { min-width: 0; }
.beginner-exercise h3 { margin-bottom: 2px; font-size: 14px; }
.beginner-exercise .exercise-muscle { color: #53675a; font-size: 11px; font-weight: 700; }
.beginner-exercise .exercise-prescription { margin-top: 7px !important; color: #637068 !important; font-size: 10px; font-weight: 600; line-height: 1.42; }
.sets-reps-help { display: inline-grid; width: 14px; height: 14px; margin-left: 2px; padding: 0; border: 0; border-radius: 50%; color: var(--green); background: #eaf3ea; vertical-align: -2px; }
.sets-reps-help svg { width: 10px; height: 10px; margin: auto; stroke: currentColor; }
.exercise-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; margin-top: 7px; }
.exercise-card-actions .exercise-action { padding: 4px 0; font-size: 10px; }
.exercise-card-actions .exercise-action:first-child { padding-left: 0; }
.exercise-swap { margin-top: 8px; padding-top: 8px; border-top: 1px solid #edf0ec; }
.exercise-swap summary { color: var(--green); cursor: pointer; font-size: 10px; font-weight: 700; list-style: none; }
.exercise-swap summary::-webkit-details-marker { display: none; }
.exercise-swap summary::after { content: "+"; margin-left: 5px; font-size: 13px; line-height: 0; }
.exercise-swap[open] summary::after { content: "−"; }
.exercise-swap .exercise-picker { margin-top: 8px; }
.simple-cardio-card { display: grid; grid-template-columns: 36px 1fr; gap: 11px; margin-top: 18px; padding: 14px; border: 1px solid #d6dfe6; border-radius: 17px; background: #f3f6f8; }
.simple-cardio-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--navy); background: #e0e8ed; }
.simple-cardio-icon svg { width: 17px; stroke: currentColor; }
.simple-cardio-card h2 { margin: 4px 0 4px; color: var(--navy); font-size: 18px; }
.simple-cardio-card p { margin: 0; color: #50616e; font-size: 11px; line-height: 1.42; }
.simple-cardio-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.simple-cardio-actions .text-btn, .simple-cardio-card > div .text-btn { font-size: 10px; }
.simple-cardio-card .text-btn svg { width: 13px; vertical-align: -2px; }
.recovery-card { border-color: #ddd5e5; background: #f5f1f8; }
.recovery-card .simple-cardio-icon { color: var(--journal); background: #eae4f0; }
.full-body-overview { display: grid; gap: 12px; margin: 14px 0; padding: 14px; border: 1px solid #d7e2da; border-radius: 17px; background: #f7faf7; }
.full-body-overview-heading { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: start; }
.full-body-overview-heading > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: var(--green); background: #e8f1e8; }
.full-body-overview-heading svg { width: 17px; stroke: currentColor; }
.full-body-overview h3 { margin: 4px 0 3px; color: var(--green-dark); font-size: 14px; }
.full-body-overview p { margin: 0; color: #586b5d; font-size: 10px; line-height: 1.42; }
.full-body-coverage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.full-body-coverage-grid > div { display: grid; gap: 3px; min-height: 54px; padding: 9px; border: 1px solid #e2e9e2; border-radius: 11px; background: var(--paper); }
.full-body-coverage-grid strong { color: var(--green-dark); font: 600 17px/1 Fraunces, Georgia, serif; }
.full-body-coverage-grid span { color: var(--muted); font-size: 9px; line-height: 1.2; }
.session-time-breakdown { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #637267; font: 600 9px/1.3 "DM Mono", monospace; text-transform: uppercase; }
.session-time-breakdown i { width: 3px; height: 3px; border-radius: 50%; background: #a7b8a9; }
.optional-cooldown { display: grid; gap: 11px; margin: 14px 0; padding: 14px; border: 1px solid #e3ded1; border-radius: 16px; background: #fbfaf6; }
.optional-cooldown > div { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 10px; align-items: start; }
.optional-cooldown-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--gold-dark); background: #f5ecd9; }
.optional-cooldown-mark svg { width: 16px; stroke: currentColor; }
.optional-cooldown h3 { margin: 4px 0 3px; color: var(--ink); font-size: 14px; }
.optional-cooldown p { margin: 0; color: #665f51; font-size: 10px; line-height: 1.42; }
.optional-cooldown ol { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.optional-cooldown li { display: grid; gap: 2px; padding: 8px 9px; border-radius: 10px; background: rgba(255,255,255,.72); }
.optional-cooldown li strong { color: #4d514b; font-size: 10px; }
.optional-cooldown li span { color: #747168; font-size: 9px; line-height: 1.35; }
.optional-cooldown .text-btn { justify-self: start; color: var(--gold-dark); font-size: 10px; }
.recovery-flow { display: grid; gap: 12px; margin-top: 18px; }
.recovery-flow-heading { display: grid; grid-template-columns: minmax(0, 1fr) 33px; gap: 12px; align-items: start; padding: 14px; border: 1px solid #ddd5e5; border-radius: 17px; background: #f5f1f8; }
.recovery-flow-heading > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: var(--journal); background: #eae4f0; }
.recovery-flow-heading svg { width: 16px; stroke: currentColor; }
.recovery-flow-heading h2 { margin: 4px 0 4px; color: #4c455d; font-size: 19px; }
.recovery-flow-heading p { margin: 0; color: #625b70; font-size: 10px; line-height: 1.42; }
.recovery-flow-list { display: grid; gap: 9px; }
.recovery-flow-step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; align-items: stretch; padding: 10px; border: 1px solid #e2dce8; border-radius: 15px; background: var(--paper); }
.recovery-flow-visual { min-height: 0; padding: 7px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; background: #10222b; overflow: hidden; }
.recovery-visual-system { width: 100%; }
.recovery-stage-frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.recovery-stage-frame { min-width: 0; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(255,255,255,.06); }
.recovery-stage-board { min-height: 0; padding: 3px; border-radius: 9px 9px 0 0; }
.recovery-stage-frame figcaption { display: grid; gap: 3px; min-height: 51px; padding: 7px; background: rgba(8,20,29,.78); }
.recovery-stage-frame strong { display: flex; align-items: flex-start; gap: 4px; color: #f5f8f6; font-size: 8px; line-height: 1.18; }
.recovery-stage-frame strong > span { display: grid; flex: 0 0 auto; place-items: center; width: 14px; height: 14px; border-radius: 5px; color: #d7eadc; background: rgba(127,166,138,.25); font: 600 7px/1 "DM Mono", monospace; }
.recovery-stage-frame small { color: #cbd8d4; font-size: 7px; line-height: 1.28; }
.recovery-visual-system.compact .recovery-stage-frame figcaption { min-height: 31px; padding: 6px; }
.recovery-visual-system.compact .recovery-stage-frame small { display: none; }
.recovery-flow-copy { min-width: 0; }
.recovery-flow-step-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.recovery-flow-step-meta span { color: var(--journal); font: 600 9px/1 "DM Mono", monospace; letter-spacing: .08em; }
.recovery-flow-step-meta em { padding: 4px 6px; border-radius: 6px; color: #655e72; background: #f1edf4; font: 600 8px/1 "DM Mono", monospace; font-style: normal; text-transform: uppercase; }
.recovery-flow-step h3 { margin: 5px 0 3px; color: var(--ink); font-size: 13px; }
.recovery-flow-step p { margin: 0; color: #60676a; font-size: 10px; line-height: 1.42; }
.recovery-flow-alternative { display: grid; gap: 2px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #ede9ef; }
.recovery-flow-alternative strong { color: #777080; font: 600 8px/1 "DM Mono", monospace; letter-spacing: .05em; text-transform: uppercase; }
.recovery-flow-alternative span { color: #716b79; font-size: 9px; line-height: 1.35; }
.recovery-safety-note { padding: 11px 12px; border: 1px solid #e6d8bb; border-radius: 13px; background: #fff9ee; }
.recovery-safety-note strong { display: block; margin-bottom: 4px; color: #765c31; font-size: 11px; }
.recovery-safety-note p { margin: 0; color: #6f624b; font-size: 10px; line-height: 1.42; }
.recovery-workout-visual { display: grid; gap: 9px; margin: 13px 0 0; padding: 10px; border: 1px solid #d3e2d7; border-radius: 14px; background: #f4f8f4; }
.recovery-workout-visual .recovery-visual-system { padding: 6px; border-radius: 11px; background: #10222b; }
.recovery-workout-visual p { margin: 0; color: #52665a; font-size: 10px; line-height: 1.4; }
.recovery-step-alternative { display: grid; gap: 3px; margin-top: 12px; padding: 11px 12px; border: 1px solid #e0d9e6; border-radius: 13px; background: #faf8fb; }
.recovery-step-alternative strong { color: #585061; font-size: 11px; }
.recovery-step-alternative p { margin: 0; color: #6a6471; font-size: 10px; line-height: 1.4; }
.recovery-step-alternative small { color: #7a6a54; font-size: 9px; line-height: 1.35; }
.workout-cooldown-link { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: 100%; margin-top: 12px; padding: 10px; border: 1px solid #e0d9cb; border-radius: 12px; color: var(--gold-dark); background: #fbf8ef; font-size: 11px; font-weight: 800; }
.workout-cooldown-link svg { width: 14px; stroke: currentColor; }
.cooldown-steps { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.cooldown-steps li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 9px; padding: 10px 0; border-bottom: 1px solid #ece8df; }
.cooldown-steps li > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; color: var(--gold-dark); background: #f4ead8; font: 600 10px/1 "DM Mono", monospace; }
.cooldown-steps strong, .cooldown-steps em { display: block; }
.cooldown-steps strong { color: var(--ink); font-size: 12px; }
.cooldown-steps em { margin-top: 3px; color: #7e6e52; font-size: 9px; font-style: normal; }
.cooldown-steps p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.explanation-sheet .sheet-top { margin-bottom: 16px; }
.explanation-highlight { margin-bottom: 14px; padding: 13px; border: 1px solid #d7e3d9; border-radius: 14px; background: #f3f8f4; }
.explanation-highlight strong { display: block; margin: 4px 0; color: var(--green-dark); font-size: 15px; }
.explanation-highlight p { margin: 5px 0 0; color: #53675a; font-size: 12px; line-height: 1.45; }
.plan-explanation-list { display: grid; gap: 4px; margin-bottom: 15px; }
.plan-explanation-list > div { display: grid; grid-template-columns: 31px 1fr; gap: 9px; padding: 9px 0; border-bottom: 1px solid #edf0ec; }
.plan-explanation-list > div > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: #edf5ee; }
.plan-explanation-list svg { width: 15px; stroke: currentColor; }
.plan-explanation-list p { display: grid; gap: 2px; margin: 0; }
.plan-explanation-list strong { font-size: 12px; }
.plan-explanation-list small { color: var(--green); font-size: 10px; font-weight: 700; }
.plan-explanation-list em { color: var(--muted); font-size: 10px; font-style: normal; line-height: 1.35; }
.explanation-note { margin: 0 0 14px; }
.plain-explanation-points { display: grid; gap: 8px; margin-bottom: 16px; }
.plain-explanation-points > div { display: grid; gap: 3px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfa; }
.plain-explanation-points strong { color: var(--green-dark); font-size: 11px; }
.plain-explanation-points span { color: var(--muted); font-size: 11px; line-height: 1.4; }
.explanation-sheet .secondary-btn { margin-top: -7px; }

/* Goal-driven programme generation: purpose, patterns and deliberate cardio. */
.session-purpose-card { margin: 0 0 11px; padding: 13px; border: 1px solid #d6e2d8; border-radius: 15px; background: #f5f9f4; }
.session-purpose-card p { margin: 5px 0 7px; color: #415b4a; font-size: 12px; line-height: 1.4; }
.session-purpose-card span { color: var(--green); font-size: 10px; line-height: 1.35; }
.movement-coverage { margin: 15px 0 10px; padding: 11px 12px; border: 1px solid #e3e7e2; border-radius: 13px; background: #fbfcfa; }
.movement-coverage p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.35; }
.exercise-meta { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 !important; }
.exercise-meta span { padding: 3px 5px; border-radius: 6px; color: #4b6d58; background: #ecf4ed; font: 600 8px/1 "DM Mono", monospace; text-transform: uppercase; }
.exercise-prescription { margin-top: 6px !important; color: #53685a !important; font-weight: 600; }
.exercise-reason { margin-top: 5px !important; color: #69766d !important; font-size: 10px !important; line-height: 1.35; }
.exercise-reason strong { margin-right: 3px; color: var(--green); font-size: 9px; text-transform: uppercase; }
.cardio-prescription { margin-top: 15px; padding: 15px; border: 1px solid #d6dfea; border-radius: 17px; background: #f1f4f7; }
.cardio-prescription-top { display: grid; grid-template-columns: 31px 1fr; gap: 10px; align-items: start; }
.cardio-prescription-top > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: var(--navy); background: #e1e8ee; }
.cardio-prescription-top svg { width: 17px; stroke: currentColor; }
.cardio-prescription h3 { margin: 4px 0 3px; color: var(--navy); font-size: 17px; }
.cardio-prescription p { margin: 0; color: #5a6875; font-size: 11px; line-height: 1.4; }
.cardio-metrics, .cardio-workout-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 13px; }
.cardio-metrics > div, .cardio-workout-details > div { padding: 9px; border: 1px solid #dce3e9; border-radius: 10px; background: rgba(255,255,255,.74); }
.cardio-metrics span, .cardio-workout-details span { display: block; color: #68737f; font: 600 8px/1 "DM Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
.cardio-metrics strong, .cardio-workout-details strong { display: block; margin-top: 5px; color: var(--navy); font-size: 10px; line-height: 1.2; }
.cardio-note { margin-top: 12px !important; color: #4d6170 !important; }
.mobility-prescription { border-color: #ded5e7; background: #f5f1f8; }
.mobility-prescription .cardio-prescription-top > span { color: var(--journal); background: #ebe5f1; }
.cardio-workout-details { margin-top: 4px; }
.cardio-workout-details > div { min-height: 67px; background: #f2f5f6; }
.exercise-why-card { margin: 15px 0; padding: 12px; border-radius: 13px; background: #f1f7f1; }
.exercise-why-card p { margin: 6px 0 0; color: #4c6253; font-size: 11px; line-height: 1.4; }

.workout-mode { display: flex; flex-direction: column; min-height: 100%; padding-top: max(22px, env(safe-area-inset-top)); padding-bottom: max(28px, env(safe-area-inset-bottom)); }
.workout-mode-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: var(--muted); font: 10px "DM Mono", monospace; }
.workout-mode-top .text-btn:last-child { justify-self: end; display: inline-flex; align-items: center; gap: 4px; }
.workout-mode-top svg { width: 14px; stroke: currentColor; }
.workout-progress { height: 5px; overflow: hidden; margin: 22px 0 26px; border-radius: 7px; background: #dfe8dd; }
.workout-progress span { display: block; height: 100%; border-radius: inherit; background: var(--navy); transition: width .25s ease; }
.workout-kicker { color: var(--green); font: 500 10px "DM Mono", monospace; letter-spacing: .08em; }
.workout-mode h1 { max-width: 340px; margin: 10px 0 7px; font-size: 42px; }
.workout-muscle { margin: 0; color: var(--muted); font-size: 14px; }
.workout-cue { display: flex; gap: 8px; align-items: start; margin: 20px 0; padding: 12px; border-radius: 13px; color: #506650; background: var(--mint); font-size: 12px; line-height: 1.38; }
.workout-cue svg { width: 17px; flex: 0 0 auto; color: var(--green); stroke: currentColor; }
.workout-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.workout-numbers > div { padding: 16px 12px 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); text-align: center; }
.workout-numbers span { display: block; color: var(--muted); font: 10px "DM Mono", monospace; text-transform: uppercase; }
.workout-numbers strong { display: block; margin: 8px 0 11px; color: var(--green-dark); font: 600 42px/.85 Fraunces, Georgia, serif; letter-spacing: -.06em; }
.workout-numbers em { margin-left: 3px; font: 11px "DM Sans", sans-serif; font-style: normal; letter-spacing: 0; }
.workout-load-numbers .workout-load-label { min-height: 36px; display: grid; align-items: center; margin: 8px 0 5px; font: 700 17px/1.05 "DM Sans", system-ui, sans-serif; letter-spacing: 0; }
.workout-load-numbers small { display: block; min-height: 27px; margin: 0 0 7px; color: var(--muted); font-size: 9px; line-height: 1.25; }
.workout-load-numbers .workout-load-control .load-mode-toggle { justify-content: center; margin-top: 7px; }
.workout-load-numbers .workout-load-control .load-mode-toggle button { flex: 0 1 auto; padding: 6px 7px; font-size: 9px; }
.number-stepper { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.number-stepper button { min-height: 34px; border: 1px solid #d7e2d6; border-radius: 9px; color: var(--green); background: #f3f8f2; font-size: 20px; line-height: 1; }
.workout-complete-btn { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; margin-top: 15px; padding: 16px; border: 0; border-radius: 15px; color: white; background: var(--navy); font-size: 15px; font-weight: 800; }
.workout-complete-btn svg { width: 18px; }
.rest-panel { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 12px; border-radius: 14px; background: #edf0e9; }
.rest-panel.active { color: #325844; background: #e6f2e8; }
.rest-panel strong { display: block; margin-top: 3px; font: 600 24px/1 Fraunces, Georgia, serif; }
.next-exercise-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: auto; padding: 13px; border: 0; color: var(--green); background: transparent; font-size: 12px; font-weight: 800; }
.next-exercise-btn svg { width: 15px; stroke: currentColor; }

.form-stack { display: grid; gap: 12px; margin-top: 20px; }
.field { display: grid; gap: 6px; color: var(--muted); font: 10px "DM Mono", monospace; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fbfcf9; font: 13px "DM Sans", system-ui, sans-serif; text-transform: none; }
.field textarea { resize: vertical; line-height: 1.4; }
.empty-state { display: grid; justify-items: start; gap: 7px; margin: 15px 0; padding: 16px; border: 1px dashed #c9d8ca; border-radius: 16px; background: #f5f8f3; }
.empty-state > div { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; color: var(--green); background: var(--mint); }
.empty-state > div svg { width: 16px; stroke: currentColor; }
.empty-state h3 { margin: 2px 0 0; color: var(--green-dark); font-size: 15px; }
.empty-state p { margin: 0; color: #586a5d; font-size: 11px; line-height: 1.45; }
.empty-state .secondary-fill { margin-top: 3px; }
.safety-boundary, .allergen-note, .privacy-beta-card { margin-top: 16px; padding: 13px; border: 1px solid #e4cfaa; border-radius: 14px; background: #fff9ed; }
.safety-boundary strong, .allergen-note strong, .privacy-beta-card h3 { display: block; margin: 0 0 5px; color: #715526; font-size: 12px; }
.safety-boundary p, .allergen-note p, .privacy-beta-card p { margin: 0; color: #6e6045; font-size: 10px; line-height: 1.45; }
.privacy-beta-card .tiny { margin-top: 8px; }
.movement-avoidances { display: grid; gap: 8px; margin-top: 20px; }
.movement-avoidances h3 { margin: 0; font-size: 14px; }
.movement-avoidances > p { margin: -2px 0 2px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.unsupported-exercise { border-color: #e4cfaa; background: #fff9ed; }
.feedback-prompt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 14px; padding: 13px; border: 1px solid #d5e3d4; border-radius: 15px; background: #f3f8f2; }
.feedback-prompt strong { display: block; margin-top: 3px; color: var(--green-dark); font-size: 13px; }
.feedback-prompt p { margin: 3px 0 0; color: #586a5d; font-size: 10px; line-height: 1.35; }
.consent-checkbox { display: grid; grid-template-columns: 16px 1fr; gap: 8px; align-items: start; color: var(--muted); font-size: 10px; line-height: 1.4; }
.consent-checkbox input { width: 16px; height: 16px; margin: 0; accent-color: var(--green); }
.meal-save-money { padding: 11px; border: 1px solid #dce8df; border-radius: 12px; background: #f5faf6; }
.meal-save-money strong, .meal-save-money small { display: block; }
.meal-save-money strong { margin-bottom: 2px; color: var(--ink); font-size: 11px; }
.meal-save-money small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.destructive-setting span { color: #98544a; }
.setup-preview, .readiness-result, .plain-summary, .future-card, .connection-card { margin-top: 18px; padding: 14px; border-radius: 15px; background: #f0f6ed; }
.setup-preview h3, .future-card h3 { margin: 5px 0 4px; color: var(--green-dark); font-size: 18px; }
.setup-preview p, .future-card p, .plain-summary p, .connection-card p { margin: 0; color: #5a7061; font-size: 11px; line-height: 1.4; }
.target-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 20px; }
.unit-toggle { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px; background: #e9eee6; }
.unit-toggle button { min-width: 39px; min-height: 29px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font: 600 10px "DM Mono", monospace; text-transform: lowercase; }
.unit-toggle button.active { color: white; background: var(--navy); }
.measurement-unit-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; padding: 11px 12px; border-radius: 13px; background: #f0f3ee; color: var(--muted); font-size: 11px; }
.onboarding-measurements { margin-bottom: 14px; }
.readiness-fields { display: grid; gap: 14px; margin-top: 20px; }
.readiness-fields section > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.readiness-fields strong { font-size: 13px; }
.readiness-fields span { color: var(--muted); font-size: 9px; }
.readiness-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 7px; }
.readiness-scale button { height: 34px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--paper); font-size: 11px; font-weight: 700; }
.readiness-scale button.active { border-color: var(--navy); color: white; background: var(--navy); }
.readiness-result { display: flex; gap: 8px; align-items: start; }
.readiness-result svg, .plain-summary svg { width: 18px; flex: 0 0 auto; color: var(--green); stroke: currentColor; }
.readiness-result p { margin: 0; color: #506650; font-size: 11px; line-height: 1.4; }
.habit-options { display: grid; gap: 8px; margin-top: 20px; }
.habit-option { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--paper); text-align: left; }
.habit-option.selected { border-color: #9ac59f; background: #f3f9f2; }
.habit-option > span { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid #d4ded2; border-radius: 50%; color: white; }
.habit-option.selected > span { border-color: var(--success); background: var(--success); }
.habit-option svg { width: 14px; stroke: currentColor; }
.habit-option strong { font-size: 13px; }
.habit-option em { color: var(--muted); font-size: 10px; font-style: normal; }
.habit-metric-list { display: grid; gap: 10px; margin-top: 18px; }
.habit-metric-card { display: grid; grid-template-columns: 51px minmax(0, 1fr); gap: 11px; padding: 13px; border: 1px solid #dce6dd; border-radius: 16px; background: #f6faf6; }
.habit-ring { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: radial-gradient(closest-side, #f6faf6 76%, transparent 77% 99.9%), conic-gradient(var(--green) var(--habit-progress), #dfe8df 0); }
.habit-ring svg { width: 18px; height: 18px; stroke: currentColor; }
.habit-metric-content { min-width: 0; }
.habit-metric-content > strong { display: block; margin: 4px 0 3px; color: var(--green-dark); font: 600 17px/1 Fraunces, Georgia, serif; letter-spacing: -.035em; }
.habit-metric-content > p { margin: 0; color: #607067; font-size: 10px; line-height: 1.35; }
.habit-quick-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.habit-quick-actions button, .habit-manual-entry button { min-height: 30px; padding: 5px 8px; border: 1px solid #cfe1d0; border-radius: 8px; color: #3d7250; background: #edf7ef; font-size: 9px; font-weight: 700; }
.habit-manual-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; margin-top: 8px; }
.habit-manual-entry input { width: 100%; min-width: 0; min-height: 31px; padding: 6px 8px; border: 1px solid #d8e3d9; border-radius: 8px; color: var(--ink); background: var(--paper); font-size: 11px; }
.habit-manual-entry.sleep-entry { max-width: 216px; }
.water-habit-card { border-color: #eadbbc; background: #fffbf4; }
.water-habit-card .habit-ring { color: var(--gold-dark); background: radial-gradient(closest-side, #fffbf4 76%, transparent 77% 99.9%), conic-gradient(var(--gold) var(--habit-progress), #eee3cf 0); }
.water-habit-card .habit-metric-content > strong { color: #67512d; }
.water-habit-card .habit-quick-actions button, .water-habit-card .habit-manual-entry button { border-color: #e8d5ad; color: #856027; background: #fff6e3; }
.sleep-habit-card { border-color: #ded7e8; background: #f8f6fb; }
.sleep-habit-card .habit-ring { color: var(--journal); background: radial-gradient(closest-side, #f8f6fb 76%, transparent 77% 99.9%), conic-gradient(var(--journal) var(--habit-progress), #e5dfed 0); }
.sleep-habit-card .habit-quick-actions button, .sleep-habit-card .habit-manual-entry button { border-color: #dbd1e5; color: #716284; background: #f1edf7; }
.habit-context-note { display: flex; gap: 8px; align-items: start; margin-top: 11px; padding: 11px 12px; border-radius: 13px; background: var(--mint); }
.habit-context-note svg { width: 17px; flex: 0 0 auto; color: var(--green); stroke: currentColor; }
.habit-context-note p { margin: 0; color: #4f6757; font-size: 10px; line-height: 1.4; }
.other-habits .section-heading { margin-top: 19px; }
.hydration-last-entry { border: 1px solid #eadbbc; background: #fffbf4; }
.hydration-undo { margin-top: 8px; }
.water-entry-history { display: grid; gap: 0; margin-top: 17px; }
.water-entry-history > div:not(.section-heading) { display: flex; justify-content: space-between; gap: 10px; padding: 9px 2px; border-top: 1px solid var(--line); }
.water-entry-history strong { font-size: 11px; }
.water-entry-history span { color: var(--muted); font-size: 10px; text-align: right; }
.review-grid, .metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 19px; }
.review-grid > div, .metric-grid > div { padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.review-grid strong, .metric-grid strong { display: block; color: var(--green-dark); font: 600 20px/1 Fraunces, Georgia, serif; letter-spacing: -.04em; }
.review-grid span, .metric-grid span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.25; }
.review-section { margin-top: 15px; padding: 13px; border-radius: 14px; background: #f5f7f1; }
.review-section p, .review-section li { margin: 6px 0 0; color: #526359; font-size: 11px; line-height: 1.4; }
.review-section ul { margin: 5px 0 0; padding-left: 17px; }
.how-doing-card { margin: 0 0 13px; background: #eef5ec; }
.how-doing-card strong { color: #42604b; font-size: 12px; font-weight: 600; }
.measurements-card { display: flex; align-items: start; justify-content: space-between; gap: 10px; margin-top: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.measurements-card h3 { margin: 4px 0 3px; }
.measurements-card p { margin: 0; color: var(--muted); font-size: 10px; }
.mood-phase + .mood-phase { margin-top: 13px; padding-top: 13px; border-top: 1px solid rgba(155,145,183,.24); }
.mood-phase > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mood-phase strong { font-size: 12px; }
.mood-phase span { color: #655f78; font-size: 9px; }
.mood-phase .mini-moods { margin-top: 7px; }
.private-note { display: flex; gap: 7px; align-items: start; margin: 11px 0 0; color: var(--muted); font-size: 10px; line-height: 1.35; }
.private-note svg { width: 14px; flex: 0 0 auto; stroke: var(--green); }
.appearance-options { display: grid; gap: 8px; margin-top: 20px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--paper); text-align: left; }
.toggle-row.selected { border-color: #b9dec5; background: #f2f9f4; }
.toggle-row strong, .toggle-row small { display: block; }
.toggle-row strong { font-size: 13px; }
.toggle-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.toggle-row em { min-width: 31px; padding: 4px 5px; border-radius: 8px; color: var(--green); background: var(--mint); text-align: center; font: 9px "DM Mono", monospace; font-style: normal; }
.text-size-control { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding: 13px; border-radius: 14px; background: #f1f4ee; }
.text-size-control strong { font-size: 13px; }
.text-size-control p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.text-size-control > div:last-child { display: flex; gap: 4px; }
.text-size-control button { min-width: 36px; min-height: 34px; border: 1px solid #d6ded3; border-radius: 9px; color: var(--green); background: white; font-weight: 700; }
.text-size-control button.active { color: white; border-color: var(--navy); background: var(--navy); }
.connection-card { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.connection-card > span { color: var(--green); }
.connection-card svg { width: 21px; stroke: currentColor; }
.connection-card strong { display: block; margin-bottom: 4px; font-size: 13px; }

/* Structured nutrition logging and progress check-ins use the shared Self tones. */
.food-search-field { margin-top: 4px; }
.food-search-field input { border-color: #d9dfd8; background: #fcfdfb; }
.search-helper { margin: 8px 0 13px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.food-search-results { display: grid; gap: 7px; max-height: 330px; overflow: auto; }
.food-search-result { display: grid; grid-template-columns: 1fr 16px; gap: 9px; align-items: center; width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--paper); text-align: left; }
.food-search-result strong { display: block; margin: 4px 0 2px; font-size: 12px; }
.food-search-result p { margin: 0; color: var(--muted); font-size: 10px; }
.food-search-result svg { width: 15px; color: var(--gold-dark); stroke: currentColor; }
.food-search-back { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.selected-food { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-top: 4px; padding: 14px; border: 1px solid #e6dfce; border-radius: 16px; background: #fffdf8; }
.selected-food h3 { margin: 5px 0 3px; font-size: 17px; }
.selected-food p { margin: 0; color: var(--muted); font-size: 10px; }
.icon-btn { border: 0; background: transparent; }
.food-favourite { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #e5dfd1; border-radius: 10px; color: #a89469; background: #fff; }
.food-favourite svg { width: 15px; stroke: currentColor; }
.food-favourite.active { color: #aa7a33; border-color: #dec89c; background: #fff5df; }
.catalogue-nutrition { display: grid; gap: 4px; margin-top: 10px; padding: 12px 13px; border-radius: 13px; color: #6d5c3c; background: var(--peach); }
.catalogue-nutrition strong { color: var(--ink); font: 600 22px/1 Fraunces, Georgia, serif; }
.catalogue-nutrition span { font-size: 10px; }
.target-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.target-comparison > div { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.target-comparison > div:last-child { border-color: #b7d0bb; background: #f1f8f2; }
.target-comparison span, .target-recommendation span { display: block; color: var(--muted); font: 500 9px/1 "DM Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.target-comparison strong { display: block; margin: 7px 0 4px; color: var(--green-dark); font-size: 17px; }
.target-comparison p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.35; }
.target-recommendation { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.target-recommendation > div { padding: 11px; border: 1px solid #d9e3d9; border-radius: 13px; background: #f8fbf7; }
.target-recommendation strong { display: block; margin-top: 5px; color: var(--green-dark); font-size: 13px; }
.height-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.measurement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.measurement-grid label { display: grid; gap: 5px; color: var(--muted); font: 10px "DM Mono", monospace; text-transform: uppercase; }
.measurement-grid input { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fbfcf9; font: 13px "DM Sans", system-ui, sans-serif; }
.monthly-checkin-card { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; margin-top: 15px; padding: 14px; border: 1px solid #d9e6db; border-radius: 15px; background: #f3f8f4; }
.monthly-checkin-card.settled { background: #f7f8f4; border-color: #e1e5df; }
.monthly-checkin-card h3 { margin: 5px 0 4px; color: var(--green-dark); font-size: 14px; }
.monthly-checkin-card p { margin: 0; color: #587060; font-size: 10px; line-height: 1.4; }
.secondary-fill { padding: 9px 11px; border: 1px solid #c7d9ca; border-radius: 10px; color: #376c4b; background: #e8f3ea; font-size: 10px; font-weight: 700; white-space: nowrap; }
.measurement-history { display: grid; gap: 7px; margin-top: 18px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #fafbf9; }
.measurement-history > .eyebrow { margin-bottom: 2px; }
.measurement-history > div:not(.eyebrow) { display: flex; justify-content: space-between; gap: 10px; padding-top: 7px; border-top: 1px solid #edf0ec; }
.measurement-history strong { font-size: 11px; }
.measurement-history span { color: var(--muted); font-size: 10px; text-align: right; }
.monthly-checkin-sheet .tiny { margin: 13px 0 0; line-height: 1.4; }

/* Refined Self palette: warm stone foundations, eucalyptus utility and restrained gold nutrition cues. */
.progression-card, .alternative-card { border-color: #ded8ce; background: #f7f3eb; }
.progression-card p, .alternative-card p { color: #5e6c67; }
.fuel-tabs, .period-tabs { background: #e9e4da; }
.fuel-tabs button.active, .period-tabs button.active { background: var(--paper); }
.field input, .field select, .field textarea, .measurement-grid input { border-color: #ddd7cd; background: #fffdf9; }
.sheet-handle { background: #d8d1c6; }
.close { background: #f1ece3; }
.toggle-row.selected { border-color: #b9cebd; background: #f0f6ef; }
.quick-check-card { border-color: #ded8ce; color: var(--ink); background: #f2eee7; box-shadow: 0 8px 20px rgba(23,33,43,.05); }
.check-in-eyebrow, .check-in-comparison-kicker { color: var(--green); }
.quick-check-card h2, .check-in-scale-heading strong, .check-in-option, .check-in-option > span, .check-in-before-summary strong, .check-in-comparison-row strong { color: var(--ink); }
.quick-check-card .check-in-card-heading p, .check-in-scale-heading span, .check-in-before-summary span, .check-in-optional, .check-in-comparison-row span, .check-in-comparison p { color: var(--muted); }
.check-in-card-mark, .check-in-option, .check-in-before-summary, .check-in-comparison { border-color: #e1dcd3; background: #fffdf9; }
.check-in-divider { background: #e5dfd6; }
.check-in-comparison-row { border-color: #e5dfd6; }
.energy-icon { stroke: #8a6b45; }
.energy-icon .coffee-fill { fill: #c9a576; }
.energy-icon .coffee-steam { stroke: #a98356; }
.weekly-review-card, .meal-preference-card, .how-doing-card { border-color: #d7e1d7; background: #f3f7f1; }
.weekly-review-card > span:first-child, .meal-preference-card > span:first-child, .how-doing-card > span:first-child { color: #406d56; background: #e7efe8; }
.meal-preference-card { border-color: #e4d5bb; background: #fcf8ef; }
.subtle-action { border-color: #d4e0d4; color: var(--green); background: #f2f7f1; }
.macro-card, .weekly-intro { border-color: #e4d3b5; background: #f7efdf; }
.recipe-guide { border-color: #e0dbd1; background: #fcfaf5; }
.recipe-heat-note { color: #465d4f !important; background: #edf3e9; }
.ingredients li, .recipe-steps p, .guide-steps p { color: #4e5e57; }

.phone.dark-mode { --ink: #f3f0e9; --muted: #bac1bb; --canvas: #121916; --paper: #1a2420; --line: #35433b; --green: #a9c8b0; --green-dark: #f3f0e9; --mint: #20342a; --lime: #8eb596; --peach: #3a3021; --lavender: #302f2d; --red: #df9788; --navy: #0d1513; --success: #8eb596; --gold: #d3ad70; --gold-dark: #f0ce94; --journal: #c0b3d0; --coral: #df9788; --coral-wash: #3e2d29; background: var(--canvas); }
.phone.dark-mode .macro-card, .phone.dark-mode .weekly-intro, .phone.dark-mode .meal-preference-card { background: #3a301d; }
.phone.dark-mode .quick.progress, .phone.dark-mode .how-doing-card, .phone.dark-mode .review-section, .phone.dark-mode .future-card, .phone.dark-mode .setup-preview, .phone.dark-mode .plain-summary, .phone.dark-mode .connection-card { background: #1e3b2b; }
.phone.dark-mode .quick-check-card, .phone.dark-mode .reflect-hero, .phone.dark-mode .consent-card { background: #302b42; }
.phone.dark-mode .empty-state, .phone.dark-mode .feedback-prompt { border-color: #34513d; background: #1e3b2b; }
.phone.dark-mode .empty-state p, .phone.dark-mode .feedback-prompt p { color: #c0d2c4; }
.phone.dark-mode .safety-boundary, .phone.dark-mode .allergen-note, .phone.dark-mode .privacy-beta-card, .phone.dark-mode .unsupported-exercise { border-color: #574727; background: #3a301d; }
.phone.dark-mode .safety-boundary strong, .phone.dark-mode .allergen-note strong, .phone.dark-mode .privacy-beta-card h3 { color: #f1cd88; }
.phone.dark-mode .safety-boundary p, .phone.dark-mode .allergen-note p, .phone.dark-mode .privacy-beta-card p { color: #ead9b3; }
.phone.dark-mode .food-search-result, .phone.dark-mode .selected-food, .phone.dark-mode .target-comparison > div, .phone.dark-mode .measurement-history, .phone.dark-mode .secondary-goals, .phone.dark-mode .basket-cost-card { border-color: #34414b; background: #17212b; }
.phone.dark-mode .secondary-goal-options button { border-color: #40515b; color: var(--ink); background: #111c25; }
.phone.dark-mode .secondary-goal-options button.selected { border-color: var(--green); background: #1e3b2b; }
.phone.dark-mode .onboarding-back { border-color: #34414b; background: #17212b; }
.phone.dark-mode .target-comparison > div:last-child, .phone.dark-mode .monthly-checkin-card { background: #1e3b2b; }
.phone.dark-mode .measurement-grid input { color: var(--ink); background: #111c25; }
.phone.dark-mode .sheet-top { background: var(--paper); }
.phone.dark-mode .habit-metric-card { border-color: #34513d; background: #1e3b2b; }
.phone.dark-mode .habit-ring { background: radial-gradient(closest-side, #1e3b2b 76%, transparent 77% 99.9%), conic-gradient(var(--green) var(--habit-progress), #344d3a 0); }
.phone.dark-mode .habit-metric-content > p, .phone.dark-mode .habit-context-note p { color: #c0d2c4; }
.phone.dark-mode .habit-manual-entry input { color: var(--ink); border-color: #34414b; background: #111c25; }
.phone.dark-mode .water-habit-card, .phone.dark-mode .hydration-last-entry { border-color: #574727; background: #3a301d; }
.phone.dark-mode .water-habit-card .habit-ring { background: radial-gradient(closest-side, #3a301d 76%, transparent 77% 99.9%), conic-gradient(var(--gold) var(--habit-progress), #574727 0); }
.phone.dark-mode .water-habit-card .habit-metric-content > strong { color: #f1cd88; }
.phone.dark-mode .sleep-habit-card { border-color: #4b405a; background: #302b42; }
.phone.dark-mode .sleep-habit-card .habit-ring { background: radial-gradient(closest-side, #302b42 76%, transparent 77% 99.9%), conic-gradient(var(--journal) var(--habit-progress), #4b405a 0); }
.phone.dark-mode .habit-context-note { background: #1e3b2b; }
.phone.dark-mode .session-purpose-card, .phone.dark-mode .movement-coverage, .phone.dark-mode .exercise-why-card { background: #1e3b2b; }
.phone.dark-mode .recovery-recommendation { border-color: #574727; background: #3a301d; }
.phone.dark-mode .recovery-recommendation p { color: #ead9b3; }
.phone.dark-mode .cardio-prescription, .phone.dark-mode .cardio-workout-details > div { color: var(--ink); background: #1b2a38; border-color: #344657; }
.phone.dark-mode .cardio-prescription h3, .phone.dark-mode .cardio-metrics strong, .phone.dark-mode .cardio-workout-details strong { color: var(--ink); }
.phone.dark-mode .adaptive-plan-card, .phone.dark-mode .explanation-highlight { border-color: #34513d; background: #1e3b2b; }
.phone.dark-mode .adaptive-plan-card p, .phone.dark-mode .explanation-highlight p, .phone.dark-mode .beginner-exercise .exercise-muscle { color: #c0d2c4; }
.phone.dark-mode .simple-cardio-card { border-color: #344657; background: #1b2a38; }
.phone.dark-mode .simple-cardio-icon { color: var(--ink); background: #2b3d4e; }
.phone.dark-mode .simple-cardio-card h2 { color: var(--ink); }
.phone.dark-mode .simple-cardio-card p { color: #c0cad1; }
.phone.dark-mode .recovery-card { border-color: #4b405a; background: #302b42; }
.phone.dark-mode .recovery-card .simple-cardio-icon { color: var(--journal); background: #453b56; }
.phone.dark-mode .exercise-swap { border-color: #34414b; }
.phone.dark-mode .plain-explanation-points > div { background: #111c25; }
.phone.dark-mode .sheet, .phone.dark-mode .onboarding { background: var(--paper); }
.phone.dark-mode .field input, .phone.dark-mode .field select, .phone.dark-mode .field textarea, .phone.dark-mode .workout-numbers > div { color: var(--ink); background: #111c25; }
.phone.dark-mode .training-schedule-card { border-color: #34513d; background: #1e3b2b; }
.phone.dark-mode .training-schedule-list > div { border-color: #34414b; background: #17212b; }
.phone.dark-mode .training-schedule-list > div.current { border-color: var(--green); background: #244533; }
.phone.dark-mode .support-urgent { border-color: #b9645d; color: #ffe9e5; background: #442c2b; }
.phone.dark-mode .support-urgent p { color: #f4c8c1; }
.phone.dark-mode .support-action { border-color: #6c4541; color: #ffe0db; background: #352827; }
.phone.dark-mode .support-action span { color: #f0aaa0; }
.phone.dark-mode .fuel-tabs, .phone.dark-mode .period-tabs { background: #26322c; }
.phone.dark-mode .fuel-tabs button.active, .phone.dark-mode .period-tabs button.active { background: #1a2420; }
.phone.dark-mode .weekly-plan-action { border-color: #3b493f; background: #1b2720; }
.phone.dark-mode .weekly-plan-action:hover { border-color: #5b7a65; background: #203128; }
.phone.dark-mode .weekly-plan-action-shop { border-color: #5b4a31; background: #30291d; }
.phone.dark-mode .weekly-plan-context .meal-plan-integrity strong { color: var(--ink); }
.phone.dark-mode .meal-dish-thumbnail { border-color: #4b483f; background: #302e28; }
.phone.dark-mode .quick-check-card { border-color: #3d463f; color: var(--ink); background: #202a25; }
.phone.dark-mode .check-in-card-mark, .phone.dark-mode .check-in-option, .phone.dark-mode .check-in-before-summary, .phone.dark-mode .check-in-comparison { border-color: #3b453f; background: #18211e; }
.phone.dark-mode .check-in-divider { background: #3b453f; }
.phone.dark-mode .check-in-comparison-row { border-color: #3b453f; }
.phone.dark-mode .quick-check-card .check-in-card-heading p, .phone.dark-mode .check-in-scale-heading span, .phone.dark-mode .check-in-before-summary span, .phone.dark-mode .check-in-optional, .phone.dark-mode .check-in-comparison-row span, .phone.dark-mode .check-in-comparison p { color: var(--muted); }
.phone.dark-mode .recipe-guide, .phone.dark-mode .form-text-alternative { border-color: #39453e; background: #18211e; }
.phone.dark-mode .recipe-guide p, .phone.dark-mode .recipe-steps p, .phone.dark-mode .guide-steps p, .phone.dark-mode .ingredients li { color: #d0d9d1; }
.phone.dark-mode .macro-card, .phone.dark-mode .weekly-intro, .phone.dark-mode .meal-preference-card { border-color: #55472f; }
.phone.dark-mode .portion-control p { color: #ead9b3; }
.phone.dark-mode .recipe-hero { border-color: #4b483f; background: #302e28; }
.phone.dark-mode .recipe-facts { border-color: #41453f; background: #41453f; }
.phone.dark-mode .recipe-facts > div, .phone.dark-mode .recipe-quick-notes > div { background: #202923; }
.phone.dark-mode .recipe-macro-summary, .phone.dark-mode .recipe-finish { border-color: #594b34; background: #332b20; }
.phone.dark-mode .recipe-nutrition-details { border-color: #594b34; background: #332b20; }
.phone.dark-mode .recipe-nutrition-details summary { color: #ead9b3; }
.phone.dark-mode .recipe-nutrition-details summary strong, .phone.dark-mode .recipe-nutrition-grid strong { color: #f5e6c4; }
.phone.dark-mode .recipe-nutrition-details summary small, .phone.dark-mode .recipe-nutrition-grid span, .phone.dark-mode .recipe-nutrition-estimate { color: #cfbea0; }
.phone.dark-mode .recipe-nutrition-grid { border-color: #594b34; background: #594b34; }
.phone.dark-mode .recipe-nutrition-grid > div { background: #25251f; }
.phone.dark-mode .recipe-nutrition-estimate { border-color: #594b34; background: #332b20; }
.phone.dark-mode .recipe-quick-notes { border-color: #414c43; }
.phone.dark-mode .recipe-quick-notes > div { border-color: #3b473e; }
.phone.dark-mode .ingredient-component { border-color: #3b473e; }
.phone.dark-mode .plan-settings-link { border-color: #425849; background: #202c24; }
.phone.dark-mode .home-start-card { border-color: #425849; background: #202c24; }
.phone.dark-mode .home-start-card > span:first-child { color: #a9c9b0; background: #274533; }
.phone.dark-mode .getting-started-steps li { border-color: #3b473e; background: #18211e; }
.phone.dark-mode .getting-started-note { color: #c6d0c7; background: #202923; }
.phone.dark-mode .full-body-overview { border-color: #34513d; background: #1e3b2b; }
.phone.dark-mode .full-body-overview p, .phone.dark-mode .session-time-breakdown { color: #c0d2c4; }
.phone.dark-mode .full-body-coverage-grid > div { border-color: #34414b; background: #17212b; }
.phone.dark-mode .full-body-coverage-grid span { color: #bac1bb; }
.phone.dark-mode .optional-cooldown { border-color: #574727; background: #302b20; }
.phone.dark-mode .optional-cooldown p, .phone.dark-mode .optional-cooldown li span { color: #e0d2b8; }
.phone.dark-mode .optional-cooldown li { background: #24251f; }
.phone.dark-mode .recovery-flow-heading { border-color: #4b405a; background: #302b42; }
.phone.dark-mode .recovery-flow-heading h2 { color: var(--ink); }
.phone.dark-mode .recovery-flow-heading p { color: #d0c5dc; }
.phone.dark-mode .recovery-flow-step { border-color: #443d4f; background: #1a2420; }
.phone.dark-mode .recovery-flow-visual { border-color: #35453e; background: #10222b; }
.phone.dark-mode .recovery-workout-visual { border-color: #35453e; background: #1a2420; }
.phone.dark-mode .recovery-flow-step p, .phone.dark-mode .recovery-flow-alternative span, .phone.dark-mode .recovery-workout-visual p { color: #c9d4cc; }
.phone.dark-mode .recovery-flow-alternative { border-color: #3d3945; }
.phone.dark-mode .recovery-step-alternative { border-color: #4a4051; background: #252331; }
.phone.dark-mode .recovery-step-alternative p { color: #d0c9d5; }
.phone.dark-mode .recovery-safety-note { border-color: #574727; background: #3a301d; }
.phone.dark-mode .recovery-safety-note p { color: #ead9b3; }
.phone.dark-mode .workout-cooldown-link { border-color: #574727; color: var(--gold-dark); background: #302b20; }
.phone.dark-mode .cooldown-steps li { border-color: #3b423a; }
.phone.dark-mode .cooldown-steps p { color: #c6cec7; }
.phone.high-contrast { --line: #52616c; --muted: #45515d; }
.phone.high-contrast .today-card, .phone.high-contrast .snapshot-card, .phone.high-contrast .exercise, .phone.high-contrast .meal { border-width: 2px; }
.phone.high-contrast .text-btn, .phone.high-contrast .eyebrow { font-weight: 700; }
.phone.colour-blind-safe { --green: #326c8e; --lime: #327b9c; --mint: #e6f1f6; --success: #326c8e; --journal: #5d5a8d; --coral: #a65b4d; --gold: #b5852d; --gold-dark: #785710; }
.phone.colour-blind-safe .today-card, .phone.colour-blind-safe .exercise, .phone.colour-blind-safe .meal, .phone.colour-blind-safe .toggle-row.selected { border-width: 2px; }
.phone.colour-blind-safe .today-card.fuel, .phone.colour-blind-safe .macro-card { background-image: linear-gradient(135deg, rgba(181,133,45,.12) 25%, transparent 25%, transparent 50%, rgba(181,133,45,.12) 50%, rgba(181,133,45,.12) 75%, transparent 75%); background-size: 12px 12px; }
.phone.colour-blind-safe .training-schedule-list > div.current { box-shadow: inset 4px 0 0 var(--green), 0 0 0 1px var(--green); }
.phone[data-text-size="large"] .subcopy { font-size: 16px; }
.phone[data-text-size="large"] .tiny, .phone[data-text-size="large"] .exercise p, .phone[data-text-size="large"] .meal p { font-size: 12px; }
.phone[data-text-size="small"] .subcopy { font-size: 12px; }
.phone.celebration-off .toast { animation: none; }
.phone.reduced-motion *, .phone.reduced-motion *::before, .phone.reduced-motion *::after { animation: none !important; transition: none !important; }

@keyframes rise { from { transform: translateY(35px); opacity: .65; } to { transform: translateY(0); opacity: 1; } }
@keyframes toast { from { transform: translateY(15px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toastExit { to { transform: translateY(10px); opacity: 0; } }

@media (max-width: 380px) {
  .app-shell { padding: 0; }
  .phone { width: 100%; height: 100svh; border-radius: 0; }
  .screen { padding-inline: 15px; }
  .onboarding-header { padding-inline: 15px; }
  .onboarding { padding-inline: 18px; }
  .training-schedule-list > div { grid-template-columns: 30px 1fr; }
  .training-schedule-list em { grid-column: 2; }
  .full-body-coverage-grid > div { padding: 8px 7px; }
  .full-body-coverage-grid span { font-size: 8px; }
  .session-time-breakdown { gap: 5px; font-size: 8px; }
  .recovery-flow-step { grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 9px; }
  .recovery-flow-visual { min-height: 0; }
  .recovery-workout-visual { grid-template-columns: minmax(0, 1fr); }
  .recovery-stage-frame figcaption { min-height: 29px; padding: 5px; }
  .recovery-stage-frame small { display: none; }
}
@keyframes motionFramePulse { 0%, 100% { transform: translateY(0); background: rgba(255,255,255,.09); } 45%, 58% { transform: translateY(-2px); background: rgba(127,166,138,.17); } }
@keyframes drawTechnique { 0%, 100% { stroke-dashoffset: 0; opacity: .84; } 45%, 62% { opacity: 1; } }
@keyframes settleTechnique { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1px); } }
@keyframes travelTechnique { 0%, 100% { transform: translateX(-1px); } 50% { transform: translateX(2px); } }
@keyframes traceRange { to { stroke-dashoffset: -22; } }
@keyframes finishTechnique { 0%, 100% { stroke-dashoffset: 28; opacity: .4; } 45%, 70% { stroke-dashoffset: 0; opacity: 1; } }

@media (max-width: 520px) {
  .app-shell { padding: 0; }
  .phone { width: 100%; height: 100svh; border-radius: 0; }
}
