:root {
  color-scheme: light;
  --background: #f6f7f1;
  --surface: #ffffff;
  --ink: #1b2b23;
  --muted: #596b60;
  --quiet: #456052;
  --line: #dce5dd;
  --brand: #2d6042;
  --brand-deep: #1c3828;
  --tint: #ebf0e3;
  --lift: #d9efaf;
  --cream: #faf2df;
  --warm: #76561b;
  --danger: #922d35;
  --radius: 24px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
a { color: var(--brand); text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #4d9970; outline-offset: 3px; }
button:disabled { opacity: .55; cursor: default; }
img, canvas { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.045em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.55rem); line-height: 1.03; font-weight: 760; }
h2 { font-size: 1.4rem; line-height: 1.15; }
h3 { font-size: 1.08rem; line-height: 1.25; }
p, li { line-height: 1.48; }
.skip { position: fixed; left: 1rem; top: -60px; padding: .7rem 1rem; background: white; z-index: 10; }
.skip:focus { top: 1rem; }
.shell { display: grid; grid-template-columns: 225px minmax(0, 1fr); min-height: 100vh; }
.rail { height: 100dvh; position: sticky; top: 0; display: flex; flex-direction: column; align-items: stretch; padding: 28px 18px 20px; background: #fff; border-right: 1px solid var(--line); z-index: 2; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 9px; text-decoration: none; color: var(--ink); }
.brand strong { display: block; font-size: 1.18rem; line-height: 1.12; letter-spacing: -.035em; }
.brand small { display: block; color: var(--muted); font-size: .79rem; margin-top: 3px; }
.brand-mark { width: 40px; height: 40px; flex: none; display: grid; place-items: center; position: relative; background: var(--brand-deep); border-radius: 12px; font-size: 1.4rem; font-weight: 750; color: #e0f5d8; }
.brand-mark span { width: 6px; height: 6px; border-radius: 50%; background: #a8da93; position: absolute; right: 6px; top: 7px; }
.primary-nav { display: grid; gap: 5px; margin-top: 38px; }
.nav-link { display: flex; align-items: center; gap: .78rem; padding: 11px 12px; min-height: 45px; text-decoration: none; color: #3d5247; font-weight: 560; font-size: .94rem; border-radius: 10px; white-space: nowrap; }
.nav-link:hover { background: #f0f5ef; }
.nav-link[aria-current="page"] { color: #254331; background: #e7efd9; font-weight: 720; }
.rail-foot { margin-top: auto; }
.privacy-label { font-size: .77rem; color: var(--muted); padding: 12px 9px 0; margin: 10px 3px 0; border-top: 1px solid var(--line); }
.privacy-label i { display: inline-block; width: 7px; height: 7px; margin-right: .3rem; border-radius: 50%; background: #519a65; }
.workspace { min-width: 0; }
.top { height: 66px; padding: 0 clamp(18px, 3.55vw, 52px); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fbfcf8; }
.top-date { display: flex; gap: .55rem; align-items: center; color: #43584b; font-size: .89rem; }
.top-date span::first-letter { text-transform: uppercase; }
.switch, .segmented { display: flex; flex-wrap: wrap; gap: 3px; padding: 4px; background: #e8eee7; border-radius: 12px; }
.switch[hidden] { display: none; }
.switch button, .segmented button { border: 0; background: transparent; color: #486054; border-radius: 8px; min-height: 31px; padding: 5px 15px; font-size: .88rem; font-weight: 650; }
.switch button[aria-pressed="true"], .segmented button[aria-pressed="true"] { background: white; color: var(--brand-deep); box-shadow: 0 1px 3px #29443320; }
main { max-width: 1330px; margin: 0 auto; padding: 24px clamp(18px, 3.55vw, 52px) 45px; }
.section-nav { display:flex; gap:7px; margin:0 0 18px; align-items:center; flex-wrap:wrap; }
.section-nav a { border-radius:99px; padding:7px 13px; color:var(--muted); font-size:.84rem; font-weight:650; text-decoration:none; }
.section-nav a[aria-current="page"] { background:#e8eddd; color:var(--brand-deep); }
.section-nav a:hover { background:#ecf0e6; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 23px; }
.page-head p { margin-top: 7px; color: var(--muted); }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.button, .icon-button { display: inline-flex; justify-content: center; align-items: center; gap: .45rem; color: var(--brand-deep); background: white; border: 1px solid var(--line); border-radius: 10px; min-height: 42px; padding: 8px 15px; font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.button:hover, .icon-button:hover { background: var(--tint); }
.button.primary { color: #fff; background: var(--brand); border-color: var(--brand); }
.button.primary:hover { background: var(--brand-deep); }
.button.soft { background: #e8f2e7; border-color: #d6e6d7; }
.button.flat { border-color: transparent; background: transparent; }
.button.small { min-height: 34px; padding: 5px 10px; }
.button.danger { color: var(--danger); }
.icon-button { width: 39px; min-height: 39px; padding: 0; font-size: 1.45rem; line-height: 1; }
.hero { min-height: 250px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; border-radius: 28px; background: #20392b; color: #f6fff5; position: relative; isolation: isolate; box-shadow: 0 12px 26px #283b260f; }
.hero-copy { padding: clamp(22px, 3.2vw, 41px); align-self: center; z-index: 1; }
.hero-copy h2 { font-size: clamp(2rem, 4.2vw, 3.35rem); line-height: 1.03; max-width: 17ch; }
.hero-copy p { margin-top: 11px; color: #d0e4d4; }
.hero-copy .hero-kicker { display: block; margin-bottom: .65rem; font-size: .79rem; font-weight: 720; letter-spacing: .08em; color: #c3e8b2; text-transform: uppercase; }
.hero-copy .button { margin-top: 19px; background: var(--lift); border-color: var(--lift); color:#203522; }
.hero-media { position: relative; background: #143e30 url('assets/chicken.webp') center 52% / cover no-repeat; }
.hero-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #20392b, #20392b00 46%); }
.grain-hero .hero-media { background-image:url('assets/buckwheat.webp'),url('assets/chicken.webp'); }
.training-hero .hero-media { background-image:url('assets/movement.webp'),url('assets/chicken.webp'); }
.breakfast-hero .hero-media { background-image:url('assets/breakfast.webp'),url('assets/movement.webp'); }
.snack-hero .hero-media { background-image:url('assets/snack.webp'),url('assets/movement.webp'); }
.macro-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin: 17px 0 25px; }
.macro { padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.macro:first-child { background:#edf1e5; border-color:#dfe9d7; }
.macro-label { font-size: .875rem; color: #41574b; font-weight: 650; display: flex; gap: 7px; align-items: center; }
.macro-label .icon { width: 17px; height: 17px; color: #377152; }
.macro strong, .stat-value { font-size: clamp(1.45rem, 3.2vw, 2rem); letter-spacing: -.045em; line-height: 1.05; display: inline-block; margin-top: 8px; font-variant-numeric: tabular-nums; }
.macro small { color: var(--muted); padding-left: 4px; }
.macro-track { margin-top: 10px; height: 5px; border-radius: 20px; background: #e9f0e8; overflow: hidden; }
.macro-track i { display: block; height: 100%; border-radius: inherit; background: var(--meter, #67a885); }
.macro-note { margin-top: 5px; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.grid-2 { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 17px; align-items: start; }
.stack { display: grid; gap: 15px; min-width: 0; }
.panel { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 20px; min-width: 0; }
.panel + .panel:not(.stack .panel) { margin-top: 15px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 11px; }
.panel-head p { color: var(--muted); font-size: .9rem; margin-top: 5px; }
.muted { color: var(--muted); }
.meta { color: var(--muted); font-size: .85rem; }
.next-step { background: #e8f0e3; border-color: #d7e4d2; }
.next-step p { margin: .55rem 0 .8rem; color: #445d4f; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 6px; background: #e9f2e8; color: #305e45; font-size: .78rem; font-weight: 700; }
.pill.warm { background: var(--cream); color: var(--warm); }
.meal-list { list-style: none; padding: 0; margin: 0; }
.meal-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #edf0ec; }
.meal-row:last-child { padding-bottom: 1px; }
.meal-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 9px; background: #eaf2e7; color: #387153; }
.meal-row time { color: var(--muted); font-size: .81rem; margin-right: .38rem; }
.meal-row b { font-size: .98rem; }
.meal-row label { position: relative; }
input[type="checkbox"] { width: 19px; height: 19px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.date-bar { display: flex; gap: 7px; align-items: center; margin: 0 0 20px; }
.days { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { display: grid; gap: 4px; justify-items: center; padding: 8px 4px; color: #51665a; border-radius: 10px; border: 1px solid var(--line); background: white; min-width: 0; cursor: pointer; font-size: .83rem; }
.day strong { color: var(--ink); font-size: 1rem; }
.day[aria-pressed="true"] { background: var(--brand-deep); border-color: var(--brand-deep); color: #deeedc; }
.day[aria-pressed="true"] strong { color: white; }
.wide-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 3px 0 10px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: 10px 7px; border-bottom: 1px solid #e7ece7; vertical-align: middle; }
th { color: #485e52; font-size: .8rem; }
td { font-size: .9rem; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 20px 12px; background: #f5f8f4; border-radius: 12px; }
.notice { padding: 12px 14px; background: #f6efdd; color: #58421e; border-radius: 10px; border: 1px solid #ead9af; font-size: .92rem; margin: 9px 0; }
.notice.alert { background: #f9e9e8; color: #772b2b; border-color: #eabfbf; }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: .75rem 0; }
.fields.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.field { display: grid; gap: .35rem; min-width: 0; font-size: .89rem; font-weight: 620; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; padding: 8px 11px; min-height: 41px; border: 1px solid #cfdad2; border-radius: 8px; color: var(--ink); background: #fcfefc; }
.field textarea { resize: vertical; min-height: 75px; }
.actions > .field, .exercise-alternative { width: 100%; }
.exercise-alternative { grid-column: 1/-1; }
.exercise-actions { display:flex; gap:5px; }
.product-button { padding-left: 1px; white-space: normal; text-align: left; justify-content: start; }
.recipe-options { display:flex; flex-wrap:wrap; gap:7px; margin: 12px 0; }
.recipe-options .button { white-space: normal; text-align: left; min-height:38px; }
.symptoms { display:grid; gap:8px; margin:14px 0 10px; padding:12px; border:1px solid var(--line); border-radius:10px; }
.symptoms label { display:flex; align-items:flex-start; gap:.55rem; font-size:.93rem; line-height:1.3; }
.symptoms input { flex:none; }
.danger-panel { background:#faeded; border-color:#e8bbbb; }
.danger-panel .button { margin-top:8px; }
.subhead { margin: 15px 0 8px; }
.source-status { margin: 8px 0; }
.line-check { display:flex; align-items:center; gap:8px; font-size:.9rem; }
.week-actions { margin-top:0; }
.actions { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.rules { padding-left: 1.25em; margin: .6rem 0; }
.rules li { padding: 3px 0; }
.rules li::marker { color: var(--brand); font-weight: 700; }
.workout-plan { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.exercise-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: start; }
.exercise-row .fields { grid-column: 1/-1; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.exercise-row p { margin-top: 4px; }
.exercise-fields { grid-column:1/-1; }
.exercise-fields .fields { margin-top:8px; }
.training-feature { padding:0; overflow:hidden; }
.training-photo { min-height:118px; background:#d9e4cf url('assets/movement.webp') center 64% / cover; }
.training-feature-body { padding:18px; }
.training-feature-body h2 { margin-bottom:5px; }
.compact-summary { display:grid; grid-template-columns:40px minmax(0,1fr) auto; align-items:center; gap:11px; }
.compact-summary h2 { font-size:1.05rem; }
.day-schedule-shortcut, .routine-timeline { margin-bottom: 14px; }
.schedule-list { list-style:none; padding:0; margin:10px 0 0; }
.schedule-list li { display:grid; grid-template-columns:minmax(64px,auto) minmax(0,1fr) auto; align-items:center; gap:10px; padding:11px 0; border-top:1px solid #e4ebe1; }
.schedule-time { font-weight:750; color:var(--brand-deep); font-variant-numeric:tabular-nums; }
.schedule-list small { display:block; margin-top:3px; line-height:1.35; }
.summary-icon { width:40px; height:40px; border-radius:12px; display:grid; place-items:center; background:#eef3e2; color:#386247; flex:none; }
.detail-fold { border-top:1px solid #e8ede2; margin:12px 0 2px; }
.detail-fold summary { list-style:none; display:flex; align-items:center; gap:9px; justify-content:space-between; padding:9px 0; font-size:.9rem; }
.detail-fold summary::-webkit-details-marker { display:none; }
.detail-fold summary::after { content:'+'; color:#446750; font-size:1.23rem; line-height:1; font-weight:450; }
.detail-fold[open] > summary::after { content:'−'; }
.panel > .detail-fold:first-child { margin-top:0; border-top:0; }
.panel > .detail-fold:first-child > summary { font-size:1.02rem; padding:0; }
.detail-fold[open] > summary { margin-bottom:5px; }
.meal-card-title { display:flex; gap:12px; align-items:center; min-width:0; }
.meal-card-title h2 { font-size:1.13rem; margin-top:3px; }
.meal-card-title .meta { margin:0; }
.meal-actions { display:flex; align-items:center; }
.inline-check { display:flex; align-items:center; gap:7px; font-size:.85rem; color:#3c5647; }
.shopping-row { display:grid; grid-template-columns:20px minmax(0,1fr) auto; align-items:center; gap:13px; border-top:1px solid #e7ede3; padding:11px 0; }
.shopping-row:has(input:checked) .shopping-description { opacity:.63; }
.shopping-description { min-width:0; }
.product-name { display:block; border:0; background:transparent; color:var(--ink); padding:2px 0; text-align:left; font-weight:700; }
.product-name:hover { color:var(--brand); text-decoration:underline; text-underline-offset:3px; }
.shopping-action { display:flex; gap:5px; align-items:flex-end; flex-direction:column; white-space:nowrap; }
.shopping-action strong { font-size:1.02rem; }
.quote-overview { background:#233e2e; border-color:#233e2e; color:#f5faef; }
.quote-overview .meta, .quote-overview .detail-fold summary { color:#dcead5; }
.quote-overview .detail-fold { border-color:#45614f; }
.quote-overview .detail-fold summary::after { color:#dcead5; }
.quote-overview .stat-value { font-size:2.75rem; }
.quote-list { display:grid; gap:10px; margin:12px 0; }
.quote-card { border:1px solid var(--line); border-radius:15px; padding:12px; }
.quote-card h3 { margin:7px 0 5px; }
.quote-actions { justify-content:space-between; }
.shop-sidebar > .panel > details > .batch-card { margin-top:10px; }
.record { display: flex; justify-content: space-between; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.record > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.record small { display: block; margin-top: .25rem; color: var(--muted); }
.record .actions { margin-top: 0; }
.chart { width: 100%; height: 230px; display: block; }
.demo-canvas { display: block; width: 100%; height: auto; background: #eaf2e9; border-radius: 12px; color: var(--brand-deep); }
.demo-control { display: flex; justify-content: space-between; gap: .6rem; align-items: center; margin: .55rem 0 .8rem; }
.timer { position: sticky; bottom: 12px; width: fit-content; margin-left: auto; z-index: 1; display: flex; align-items: center; gap: .6rem; padding: .45rem .55rem .45rem .85rem; border-radius: 12px; background: #153e2d; color: white; box-shadow: 0 4px 16px #10241930; }
.timer strong { font-variant-numeric: tabular-nums; }
dialog { width: min(650px, calc(100% - 24px)); max-height: min(90dvh, 850px); padding: 0; border: 0; border-radius: var(--radius); color: var(--ink); box-shadow: 0 24px 70px #142b2280; }
dialog::backdrop { background: #0f231abb; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--line); position: sticky; z-index: 1; top: 0; background: white; }
#dialog-content { padding: 16px 20px 22px; }
.toast { position: fixed; z-index: 20; right: 18px; bottom: 18px; padding: 11px 16px; border-radius: 10px; background: #173e2d; color: white; max-width: min(430px, calc(100% - 36px)); box-shadow: 0 5px 20px #10241930; }
.toast:empty { display: none; }
.toast.error { background: #7c2c34; }
details { margin: 8px 0; }
summary { cursor: pointer; font-weight: 650; color: var(--brand-deep); padding: .4rem 0; }
@media (max-width: 990px) {
  .shell { grid-template-columns: 176px minmax(0,1fr); }
  .rail { padding-inline: 11px; }
  main, .top { padding-inline: 22px; }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .rail { height: auto; display: grid; grid-template-columns: 1fr auto; gap: 9px; padding: 11px 13px 7px; border: 0; border-bottom: 1px solid var(--line); }
  .brand { gap: 8px; padding: 0; }
  .brand strong { font-size: 1.03rem; }
  .brand small { font-size: .72rem; }
  .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
  .rail-foot { grid-area: 1 / 2; margin: 0; }
  .privacy-label { display: none; }
  .primary-nav { position:fixed; z-index:4; left:0; right:0; bottom:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:0; gap:6px; padding:7px 10px max(9px,env(safe-area-inset-bottom)); background:#fbfcf8; border-top:1px solid var(--line); box-shadow:0 -5px 20px #22322808; }
  .primary-nav .nav-link { min-height:45px; padding:5px 4px; gap:4px; font-size:.75rem; flex-direction:column; justify-content:center; text-align:center; white-space:normal; }
  .nav-link .icon { width: 16px; height: 16px; }
  .top { height: 51px; }
  .top-date { font-size: .8rem; }
  main { padding-top: 16px; padding-bottom:90px; }
  .grid-2 { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .macro-grid { gap: 8px; }
  .macro { padding: 11px; }
  .hero { min-height: 210px; }
  .hero-copy { padding: 18px; }
  .panel { padding: 16px; }
  .training-feature { padding:0; }
  .shop-grid { display:grid; grid-template-columns:minmax(0,1fr); }
  .shop-grid > .stack { display:contents; }
  .shop-sidebar > :nth-child(1) { grid-row:1; }
  .shop-sidebar > :nth-child(2) { grid-row:2; }
  .shop-list > section { grid-row:3; }
  .shop-sidebar > :nth-child(3) { grid-row:4; }
  .shop-sidebar > :nth-child(4) { grid-row:5; }
  .walk-priority > .stack { display:contents; }
  .walk-priority .walk-panel { grid-row:1; }
  .toast { bottom:76px; }
}
@media (max-width: 480px) {
  main, .top { padding-inline: 13px; }
  .page-head { flex-wrap: wrap; align-items: start; margin-bottom: 16px; }
  .hero { grid-template-columns: minmax(0,1fr); min-height: 215px; }
  .hero-media { position: absolute; inset: 0 0 0 20%; z-index: -1; }
  .hero-media::before { background: linear-gradient(90deg, #20392b 0%, #20392bee 30%, #20392b46 96%); }
  .hero-copy { width: min(315px,100%); }
  .hero-copy p { max-width: 25ch; }
  .macro-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fields, .exercise-row .fields { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .panel-head { align-items: start; }
  .record { flex-wrap: wrap; }
  .exercise-actions { flex-direction: column; }
  .date-bar { gap: 3px; }
  .days { gap: 3px; }
  .date-bar .icon-button { width: 28px; font-size: 1.12rem; }
  .compact-summary, .training-feature-body { padding:13px; }
  .shopping-row { gap:8px; }
  .shopping-action .button { min-height:37px; padding:5px 8px; font-size:.77rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; }
}
