:root {
  --ink: #1f2b25;
  --muted: #66746c;
  --line: #dce3d8;
  --paper: #fafaf5;
  --panel: #ffffff;
  --deep: #243d33;
  --sage: #78957c;
  --tomato: #b9573f;
  --blue: #557f9d;
  --gold: #c6943d;
  --shadow: 0 18px 46px rgba(31, 43, 37, 0.11);
  --sticky-nav-height: 80px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, .button, .primary, input, select {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
button, .button, .primary { min-height: 40px; padding: 9px 13px; background: var(--panel); cursor: pointer; font-weight: 750; }
.primary, .button.primary { background: var(--deep); border-color: var(--deep); color: white; }
button.is-loading, .button.is-loading {
  position: relative;
  min-width: var(--loading-button-width, auto);
  color: transparent !important;
  cursor: progress;
  opacity: .92;
  pointer-events: none;
}
button.is-loading > *, .button.is-loading > * { visibility: hidden; }
button.is-loading::after, .button.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1em;
  height: 1em;
  margin: -.5em 0 0 -.5em;
  border: 2px solid var(--deep);
  border-top-color: transparent;
  border-radius: 50%;
  animation: planner-spin .8s linear infinite;
}
button.primary.is-loading::after, .button.primary.is-loading::after { border-color: white; border-top-color: transparent; }
.home-hero .button.primary.is-loading::after { border-color: var(--deep); border-top-color: transparent; }
.home-hero .button:not(.primary).is-loading::after { border-color: white; border-top-color: transparent; }
input, select { width: 100%; min-height: 40px; padding: 8px 10px; background: white; }
fieldset { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
legend, .eyebrow, .day, .summary-row span { color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.5rem, 7vw, 5.8rem); line-height: .94; letter-spacing: 0; }
h2 { line-height: 1.12; }
p, li, small { color: var(--muted); line-height: 1.58; }

.site-nav, .site-footer, .page, .app-shell, .home-hero, .home-delivers, .home-flow, .home-closing {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}
.site-nav-shell { position: sticky; top: 0; z-index: 90; background: rgba(250, 250, 245, .94); border-bottom: 1px solid rgba(220, 227, 216, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-nav { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 18px 0; }
.site-nav a { border-radius: 8px; padding: 9px 11px; font-weight: 750; color: var(--muted); }
.site-nav a[aria-current="page"] { background: #edf3ea; color: var(--ink); }
.menu-toggle { width: 44px; height: 44px; display: grid; align-content: center; gap: 5px; padding: 10px; background: var(--panel); }
.menu-toggle span { display: block; width: 22px; height: 2px; margin-inline: auto; background: var(--ink); transition: transform .18s ease, opacity .18s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
.site-menu { position: absolute; top: calc(100% - 8px); right: 0; width: min(360px, calc(100vw - 20px)); border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: var(--panel); box-shadow: var(--shadow); }
.site-menu[hidden] { display: none; }
.site-menu-links, .site-menu .nav-actions { display: grid; gap: 5px; }
.site-menu-links { margin-bottom: 10px; }
.site-menu a, .site-menu button { width: 100%; text-align: left; }
.site-menu .nav-actions { border-top: 1px solid var(--line); padding-top: 10px; }
.site-nav .nav-actions a.primary { background: var(--deep); border-color: var(--deep); color: white; }
.nav-actions button { color: var(--muted); background: transparent; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink) !important; font-weight: 900 !important; }
.brand-logo { display: block; width: 46px; height: 32px; flex: 0 0 auto; object-fit: contain; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.footer-brand img { display: block; width: 38px; height: 26px; object-fit: contain; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.auth-options article, .setup-card, .meal-card, .side-panel, .target-row article, .journey-strip article, dialog, .faq-list details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.home-page { overflow: hidden; }
.home-hero { position: relative; display: grid; align-items: end; height: min(720px, calc(100svh - 112px)); min-height: 560px; overflow: hidden; background-color: var(--deep); background-image: url("/assets/about-shared-meal.png"); background-image: image-set(url("/assets/about-shared-meal.png") 1x, url("/assets/about-shared-meal@2x.jpg") 2x, url("/assets/about-shared-meal@3x.jpg") 3x); background-position: center 48%; background-size: cover; background-repeat: no-repeat; }
.home-hero::before { content: ""; position: absolute; inset: 0; background: rgba(18, 32, 26, .57); }
.home-hero-content { position: relative; z-index: 1; width: min(760px, calc(100% - 64px)); padding: 58px 0 54px 54px; color: white; }
.home-hero .eyebrow, .home-hero p, .home-hero small { color: #eef3ea; }
.home-hero h1 { margin-bottom: 24px; color: white; font-size: 4.9rem; }
.home-hero p:not(.eyebrow) { max-width: 660px; font-size: 1.18rem; }
.home-hero .actions { margin-bottom: 20px; }
.home-hero .button.primary { background: white; border-color: white; color: var(--deep); }
.home-hero .button:not(.primary) { background: rgba(36, 61, 51, .62); border-color: rgba(255, 255, 255, .72); color: white; }
.home-hero small { display: block; max-width: 640px; font-size: .84rem; }
.home-delivers { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: 64px; padding-block: 78px 84px; }
.home-delivers header h2 { margin-bottom: 0; font-size: 2.4rem; }
.home-deliver-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 34px; }
.home-deliver-grid article { border-top: 1px solid var(--line); padding: 20px 0 22px; }
.home-deliver-grid span { color: var(--tomato); font-weight: 900; }
.home-deliver-grid h3 { margin: 9px 0 7px; font-size: 1.16rem; }
.home-deliver-grid p { margin: 0; }
.home-belief-band { background: var(--deep); color: white; }
.home-belief-inner { width: min(1020px, calc(100% - 32px)); margin-inline: auto; padding-block: 84px 88px; text-align: center; }
.home-belief-band .eyebrow, .home-belief-band p { color: #c6d2cb; }
.home-belief-band blockquote { max-width: 940px; margin: 16px auto 24px; color: white; font-size: 3.4rem; font-weight: 900; line-height: 1.08; }
.home-belief-band p:last-child { max-width: 720px; margin: 0 auto; font-size: 1.05rem; }
.home-flow { padding-block: 88px 92px; }
.home-section-head { display: grid; grid-template-columns: minmax(0, .85fr) minmax(320px, 1fr); gap: 52px; align-items: end; margin-bottom: 48px; }
.home-section-head h2 { margin-bottom: 0; font-size: 2.7rem; }
.home-section-head > p { max-width: 600px; margin: 0; font-size: 1.06rem; }
.home-flow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.home-flow-grid article { border-top: 5px solid var(--sage); padding-top: 20px; }
.home-flow-grid article:nth-child(2) { border-top-color: var(--tomato); }
.home-flow-grid article:nth-child(3) { border-top-color: var(--blue); }
.home-flow-grid span { color: var(--muted); font-size: .78rem; font-weight: 850; text-transform: uppercase; }
.home-flow-grid h3 { margin: 10px 0 9px; font-size: 1.3rem; }
.home-closing { border-top: 1px solid var(--line); padding-block: 72px 88px; text-align: center; }
.home-closing img { display: block; width: 90px; height: 60px; margin: 0 auto 16px; object-fit: contain; }
.home-closing h2 { max-width: 790px; margin: 0 auto 24px; font-size: 2.6rem; }
.home-closing .button { display: inline-flex; }

.about-page { overflow: hidden; }
.about-intro, .about-section, .about-band-inner, .about-closing, .about-meal-figure { width: min(1200px, calc(100% - 32px)); margin-inline: auto; }
.about-intro { padding: 62px 0 58px; }
.about-title-lockup { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.about-title-lockup .eyebrow { margin: 0; }
.about-mark { display: block; width: 92px; height: 62px; object-fit: contain; }
.about-intro h1 { max-width: 1060px; margin-bottom: 34px; font-size: 5rem; }
.about-intro-copy { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 46px; max-width: 980px; }
.about-intro-copy p { margin: 0; }
.about-lede { color: var(--ink); font-size: 1.3rem; line-height: 1.45; }
.about-meal-figure { position: relative; height: min(66vw, 660px); min-height: 430px; margin-bottom: 0; overflow: hidden; background: var(--deep); }
.about-meal-figure img { width: 100%; height: 100%; object-fit: cover; }
.about-meal-figure figcaption { position: absolute; left: 0; bottom: 0; display: grid; gap: 7px; width: min(520px, 72%); padding: 26px 32px 30px; background: rgba(36, 61, 51, .94); color: white; }
.about-meal-figure figcaption span { color: #c6d2cb; font-size: .78rem; font-weight: 850; text-transform: uppercase; }
.about-meal-figure figcaption strong { font-size: 1.45rem; line-height: 1.28; }
.about-question-band { margin-top: 0; background: var(--deep); color: white; }
.about-question-band .about-band-inner { padding-block: 86px; }
.about-question-band .eyebrow, .about-question-band p { color: #c6d2cb; }
.about-question-band h2, .about-question-band blockquote { color: white; }
.about-question-layout { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); gap: 76px; align-items: start; }
.about-question-band h2 { max-width: 500px; font-size: 3rem; }
.question-story { max-width: 690px; }
.question-story > p:first-child { margin-bottom: 30px; font-size: 1.08rem; }
.question-story .question-answer { margin-bottom: 8px; color: #f1c8bc; font-weight: 800; }
.question-story blockquote { margin: 0 0 26px; border-left: 4px solid var(--tomato); padding-left: 22px; font-size: 2rem; font-weight: 850; line-height: 1.3; }
.about-section { padding-block: 88px; }
.about-section-head { display: grid; grid-template-columns: minmax(0, .85fr) minmax(320px, 1fr); gap: 48px; align-items: start; margin-bottom: 48px; }
.about-section-head .eyebrow { grid-column: 1 / -1; margin-bottom: -30px; }
.about-section-head h2 { margin: 0; font-size: 2.7rem; }
.about-section-head > p:last-child { max-width: 620px; margin: 0; font-size: 1.08rem; }
.manifesto-layout { display: grid; grid-template-columns: minmax(250px, .68fr) minmax(0, 1.32fr); gap: 62px; align-items: start; }
.manifesto-quote { position: sticky; top: 24px; margin: 0; border-top: 5px solid var(--tomato); padding-top: 20px; color: var(--ink); font-size: 1.75rem; font-weight: 850; line-height: 1.3; }
.philosophy-list { display: grid; }
.philosophy-list article { display: grid; grid-template-columns: 48px 1fr; gap: 16px; border-top: 1px solid var(--line); padding: 23px 0 26px; }
.philosophy-list article > span { color: var(--tomato); font-weight: 900; }
.philosophy-list h3 { margin-bottom: 7px; font-size: 1.2rem; }
.philosophy-list p { margin-bottom: 0; }
.about-loop-band { background: #edf3ea; }
.about-loop-band .about-band-inner { padding-block: 84px; }
.about-loop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 34px; row-gap: 38px; counter-reset: loop; }
.about-loop article { position: relative; border-top: 3px solid var(--sage); padding: 52px 0 0; }
.about-loop article::before { content: ""; position: absolute; top: 23px; left: 30px; width: calc(100% - 30px); height: 1px; background: #bfcdbc; }
.about-loop article:nth-child(3n)::before { display: none; }
.about-loop article > span { position: absolute; top: 12px; left: 0; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--deep); color: white; font-weight: 900; }
.about-loop h3 { margin-bottom: 7px; font-size: 1.2rem; }
.about-loop p { margin: 0; }
.about-trust { border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.trust-grid article { border-top: 5px solid var(--blue); padding-top: 20px; }
.trust-grid article:nth-child(2) { border-top-color: var(--gold); }
.trust-grid article:nth-child(3) { border-top-color: var(--tomato); }
.trust-grid span { color: var(--muted); font-size: .76rem; font-weight: 850; text-transform: uppercase; }
.trust-grid h3 { margin: 9px 0 10px; font-size: 1.35rem; }
.about-closing { padding-block: 82px 96px; text-align: center; }
.about-closing img { display: block; width: 92px; height: 62px; margin: 0 auto 18px; object-fit: contain; }
.about-closing h2 { max-width: 900px; margin: 0 auto 18px; font-size: 2.7rem; }
.about-closing > p:not(.eyebrow) { max-width: 720px; margin-inline: auto; font-size: 1.08rem; }
.about-closing .button { display: inline-flex; align-items: center; margin-top: 14px; }

.page { padding: 34px 0 70px; }
.page-head { max-width: 900px; margin-bottom: 30px; }
.auth-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 900px; }
.auth-options article { padding: 24px; display: grid; gap: 10px; align-content: start; }
.auth-options .button { justify-self: start; }
.setup-flow { display: grid; gap: 18px; }
.setup-card { display: grid; grid-template-columns: minmax(220px, .4fr) minmax(0, 1fr); gap: 24px; padding: 22px; }
.setup-card-intro { min-width: 0; }
.setup-card-intro h2 { margin: 12px 0 8px; }
.setup-card-intro p { margin-bottom: 0; }
.setup-profile-content { display: grid; gap: 16px; min-width: 0; }
.nutrition-estimate-notice { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 11px; align-items: start; border-block: 1px solid #b8cad4; padding: 13px 2px; background: #f1f6f8; color: var(--ink); }
.nutrition-estimate-notice > span { display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--blue); border-radius: 50%; color: var(--blue); font-size: .8rem; font-weight: 900; }
.nutrition-estimate-notice p { margin: 1px 0 0; font-size: .9rem; font-weight: 650; }
.auth-card { margin-bottom: 18px; }
.step { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--deep); color: white; font-weight: 900; }
.form-grid, .profile-grid, .choice-grid { display: grid; gap: 14px; }
.form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-card { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.professional-targets { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 14px; }
.professional-targets header { display: grid; gap: 3px; margin-bottom: 12px; }
.professional-targets header small, .professional-target-grid label > small { color: var(--muted); font-weight: 500; }
.professional-target-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
label { min-width: 0; display: grid; gap: 6px; color: var(--muted); font-size: .82rem; font-weight: 750; }
label small { overflow-wrap: anywhere; }
.signup-page { width: min(1320px, calc(100% - 32px)); }
.signup-head { max-width: 980px; }
.signup-head h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); line-height: 1; }
.signup-page input,
.signup-page select,
.signup-page button,
.signup-page .button { min-width: 0; }
.signup-account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.signup-account-grid label:nth-child(5) { grid-column: 1 / -1; }
.signup-routine-grid { grid-template-columns: repeat(3, minmax(180px, 1fr)); align-items: start; }
.signup-routine-grid .inline { align-self: end; min-height: 40px; }
.signup-leftovers-choice { grid-column: 1 / -1; justify-self: start; }
.routine-day-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; border-top: 1px solid var(--line); margin-top: 2px; padding-top: 16px; }
.signup-page .profile-grid { grid-template-columns: 1fr; }
.signup-page .profile-card { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 20px; }
.signup-page .profile-card .unit-field,
.signup-page .profile-card .snack-flex-field,
.signup-page .profile-card .clinical-guidance-choice { grid-column: span 2; }
.signup-page .profile-card .professional-target-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.signup-page .snack-flex-field { grid-template-columns: minmax(180px, 1fr) minmax(190px, .9fr); align-items: end; column-gap: 12px; }
.signup-page .snack-flex-field > span { grid-column: 1 / -1; }
.signup-page .snack-flex-field small { align-self: center; line-height: 1.35; }
.unit-field {
  display: grid;
  grid-column: 1 / -1;
  gap: 6px;
}
.unit-label {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 750;
}
.unit-inputs {
  display: grid;
  gap: 8px;
}
.unit-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 92px;
  gap: 8px;
  align-items: center;
}
.unit-row[hidden] {
  display: none;
}
.unit-row.two {
  grid-template-columns: minmax(88px, 1fr) minmax(88px, 1fr) 92px;
}
.unit-row select {
  padding-inline: 8px;
}
.choice { display: flex; align-items: center; gap: 8px; margin: 7px 0; color: var(--ink); font-weight: 520; }
.choice input, .inline input { width: auto; min-height: auto; }
.choice-grid { grid-template-columns: repeat(3, 1fr); }
.signup-cuisine-grid { display: grid; grid-template-columns: 1fr; gap: 2px; }
.cuisine-scroll-region { max-height: clamp(240px, 42vh, 430px); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; margin-top: 4px; padding: 2px 8px 2px 0; }
.cuisine-scroll-region .choice { min-height: 34px; align-items: flex-start; }
.inline { display: flex; align-items: end; gap: 10px; color: var(--ink); }

.portal-shell { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 82px; }
.portal-head { display: flex; justify-content: space-between; gap: 28px; align-items: end; padding-bottom: 30px; }
.portal-head > div { max-width: 760px; }
.portal-head h1 { margin-bottom: 12px; font-size: 3.6rem; }
.portal-head p:last-child { margin-bottom: 0; font-size: 1.05rem; }
.portal-tabs { display: flex; gap: 4px; overflow-x: auto; border-block: 1px solid var(--line); padding: 8px 0; }
.portal-tabs button { flex: 0 0 auto; border-color: transparent; background: transparent; color: var(--muted); }
.portal-tabs button[aria-current="page"] { background: var(--deep); color: white; }
.portal-panel { padding-top: 42px; }
.portal-section-head { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(340px, 1fr); gap: 48px; align-items: end; margin-bottom: 34px; }
.portal-section-head h2 { margin-bottom: 0; font-size: 2.25rem; }
.portal-section-head > p { max-width: 620px; margin: 0; }
.portal-member-summaries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.portal-member-summary { border: 1px solid var(--line); border-top: 6px solid var(--sage); border-radius: 8px; padding: 24px; background: var(--panel); box-shadow: 0 8px 24px rgba(31, 43, 37, .07); }
.portal-member-summary:nth-child(2) { border-top-color: var(--tomato); }
.portal-member-title { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.portal-member-title h2 { margin-bottom: 20px; font-size: 1.8rem; }
.portal-weight-line { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 8px; align-items: baseline; border-block: 1px solid var(--line); padding: 14px 0; }
.portal-weight-line span { color: var(--muted); font-size: .8rem; font-weight: 750; }
.portal-weight-line strong { font-size: 1.05rem; }
.portal-target-line { display: flex; gap: 8px; align-items: baseline; padding-top: 18px; }
.portal-target-line strong { font-size: 1.7rem; }
.portal-target-line span { color: var(--muted); font-size: .84rem; font-weight: 750; }
.portal-macro-line { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0 14px; color: var(--muted); font-size: .88rem; }
.portal-macro-line strong { color: var(--ink); }
.portal-routine-summary { display: grid; grid-template-columns: 1.25fr repeat(4, 1fr); gap: 22px; align-items: center; margin-top: 20px; border-block: 1px solid var(--line); padding: 22px 0; }
.portal-routine-summary header h2 { margin-bottom: 0; font-size: 1.25rem; }
.portal-routine-summary div span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.portal-routine-summary div strong { font-size: .96rem; }
.portal-overview-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.portal-section-form { display: grid; gap: 24px; }
.portal-people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.portal-person { padding: 22px; background: var(--panel); }
.portal-person legend { padding-inline: 8px; color: var(--ink); font-size: 1.25rem; font-weight: 900; text-transform: none; }
.portal-person-target { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; padding-bottom: 14px; }
.portal-person-target span { color: var(--muted); font-size: .86rem; }
.portal-person-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.portal-person-fields .professional-target-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portal-restriction-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.portal-restriction-grid fieldset, .portal-cuisines { padding: 22px; background: var(--panel); }
.portal-restriction-grid legend, .portal-cuisines legend { padding-inline: 8px; color: var(--ink); font-size: 1.05rem; font-weight: 900; text-transform: none; }
.portal-restriction-grid fieldset > p, .portal-cuisines > p { margin-bottom: 14px; font-size: .9rem; }
.portal-choice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.portal-cuisine-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px 24px; }
.brand-preferences-form { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 34px; scroll-margin-top: 10px; }
.brand-preferences-head { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(340px, 1fr); gap: 48px; align-items: end; }
.brand-preferences-head h2 { margin-bottom: 0; font-size: 1.8rem; }
.brand-preferences-head > p { max-width: 620px; margin: 0; }
.personal-snacks, .custom-products { margin-top: 38px; border-top: 1px solid var(--line); padding-top: 30px; }
.snack-member-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.snack-member { border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.shared-snack-member { margin-top: 20px; border-left: 5px solid var(--blue); background: #f0f6f8; }
.snack-member-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.snack-member-head h3 { margin: 0; }
.snack-list { display: grid; gap: 9px; margin-top: 14px; }
.snack-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.snack-row > div:first-child { display: grid; gap: 3px; min-width: 0; }
.snack-row > div:last-child { display: flex; gap: 6px; }
.snack-row span, .snack-row small { overflow-wrap: anywhere; }
.snack-row.is-disabled { opacity: .62; }
.product-active-label { align-self: center; border: 1px solid #9cb7a0; border-radius: 999px; padding: 7px 10px; background: #edf5e9; color: var(--deep); font-size: .78rem; font-weight: 850; white-space: nowrap; }
.empty-setting { color: var(--muted); }
.settings-dialog { width: min(720px, calc(100vw - 28px)); }
.settings-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.settings-form-grid label { display: grid; gap: 6px; }
.settings-form-grid .snack-share-toggle { grid-column: 1 / -1; }
.custom-data-warning { margin: 18px 0; padding: 14px; border-left: 4px solid var(--sage); background: #f3f8f5; }
.custom-data-warning p { margin: 4px 0 0; }
.skip-day-control { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid #d8c7bc; border-left: 6px solid var(--tomato); border-radius: 8px; background: #fff9f5; }
.skip-day-control h3, .skip-day-control p { margin: 0; }
.skip-day-control > div { display: grid; gap: 4px; min-width: 0; }
.skip-day-control > div > p:last-child { color: var(--muted); }
.skip-day-control.is-skipped { border-color: #c8cec7; border-left-color: #879087; background: #f1f3ef; }
.skip-day-control.partial { border-left-color: #bd7041; background: #fffaf5; }
.skip-day-button { flex: 0 0 auto; border-color: #d8a89c; color: #91422f; }
.skip-day-button.restore { border-color: var(--deep); color: var(--deep); }
.skip-day-button.partial { border-color: #bd7041; color: #6f3d22; }
.day-snack-summary { padding: 16px; border: 1px solid #cad8c6; border-left: 5px solid var(--sage); border-radius: 6px; background: #f3f8f5; }
.day-snack-summary header { display: flex; justify-content: space-between; gap: 14px; }
.day-snack-summary h3 { margin: 0; }
.day-snack-summary > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.day-snack-summary article { display: grid; gap: 3px; padding: 10px; background: #fff; border-radius: 4px; }
.day-snack-summary p { margin: 0; }
.snack-omitted { color: var(--gold); font-style: italic; }
.snack-day-choice { display: grid; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); }
.snack-day-choice:first-of-type { border-top: none; padding-top: 0; }
.snack-day-choice-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.snack-day-choice-buttons button { border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; background: #fff; font-size: .78rem; color: var(--muted); }
.snack-day-choice-buttons button.is-active { border-color: var(--sage); background: #edf5e9; color: var(--deep); font-weight: 800; }
.brand-preference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.brand-preference { border-top: 1px solid var(--line); padding: 16px 0; }
.brand-preference > span { color: var(--ink); font-size: .9rem; font-weight: 850; }
.brand-preference small { min-height: 2.5em; font-weight: 500; }
.portal-routine-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.portal-routine-fields > label { border-top: 1px solid var(--line); padding-top: 16px; }
.portal-routine-fields label > small { font-weight: 500; }
.portal-toggle { display: flex; align-items: center; gap: 12px; }
.portal-toggle input { width: auto; min-height: auto; }
.portal-toggle span { display: grid; gap: 4px; }
.portal-toggle strong { color: var(--ink); }
.portal-save-bar { display: flex; justify-content: space-between; gap: 24px; align-items: center; border-top: 1px solid var(--line); padding-top: 20px; }
.portal-save-bar > p { max-width: 620px; margin: 0; font-size: .9rem; }
.portal-save-bar > div { display: flex; gap: 12px; align-items: center; }
.portal-save-bar [role="status"] { color: var(--deep); font-size: .88rem; font-weight: 750; }
.portal-account-form { margin-bottom: 34px; }
.portal-password-form { border-top: 1px solid var(--line); margin-bottom: 34px; padding-top: 26px; }
.portal-password-form > header { display: grid; grid-template-columns: minmax(220px, .58fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.portal-password-form > header h2 { margin: 4px 0 0; font-size: 1.45rem; }
.portal-password-form > header p:last-child { margin: 0; }
.portal-password-grid { align-items: start; }
.portal-password-grid label { grid-template-rows: auto 40px minmax(1.45em, auto); align-content: start; }
.portal-password-grid label small { line-height: 1.35; }
.portal-signout { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; }
.portal-signout h2 { margin-bottom: 5px; font-size: 1.2rem; }
.portal-signout p { margin: 0; }

.app-shell { padding: 24px 0 70px; }
.app-head { display: grid; gap: 18px; align-items: start; }
.modal-head { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.app-head h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.app-head > div:first-child { max-width: 760px; }
.app-head-actions { justify-content: flex-start; margin-top: 0; }
.plan-bottom-actions { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 24px; }
.notice { margin: 14px 0 0; border-left: 5px solid var(--sage); background: #eef3ea; padding: 11px 13px; color: var(--ink); font-weight: 700; }
.global-activity { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 3px; pointer-events: none; opacity: 0; transition: opacity .18s ease; }
.global-activity.is-active { opacity: 1; }
.global-activity-bar { position: absolute; inset-block: 0; left: 0; width: 42%; background: linear-gradient(90deg, var(--deep), var(--tomato), var(--blue)); box-shadow: 0 0 18px rgba(36, 61, 51, .24); animation: global-progress 1.1s ease-in-out infinite; }
.global-activity-text { position: fixed; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.app-toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: min(420px, calc(100% - 32px)); border-left: 5px solid var(--sage); border-radius: 6px; padding: 14px 16px; background: var(--ink); color: white; box-shadow: 0 14px 36px rgba(31, 43, 37, .24); font-size: .92rem; font-weight: 750; opacity: 0; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.app-toast.is-visible { opacity: 1; transform: translateY(0); }
.app-toast[hidden] { display: none; }
.ios-install-prompt { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 55; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; width: min(560px, calc(100% - 28px)); border: 1px solid #c8d9d2; border-left: 5px solid var(--blue); border-radius: 8px; padding: 14px 14px 14px 16px; background: rgba(255, 255, 252, .96); box-shadow: 0 18px 46px rgba(31, 43, 37, .18); transform: translateX(-50%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ios-install-prompt strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: .95rem; }
.ios-install-prompt p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.ios-install-prompt p strong { display: inline; margin: 0; color: var(--ink); font-size: inherit; }
.ios-install-prompt button { min-height: 36px; padding-inline: 11px; color: var(--deep); background: #f3f8f5; }
.cycle-tabs { display: flex; gap: 8px; margin: 20px 0 10px; border-bottom: 1px solid var(--line); }
.cycle-tabs button { min-width: 180px; display: grid; justify-items: start; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: var(--muted); }
.cycle-tabs button[aria-selected="true"] { border-bottom-color: var(--tomato); color: var(--ink); }
.cycle-tabs span { font-size: .78rem; text-transform: uppercase; font-weight: 800; }
.cycle-tabs strong { margin-top: 3px; }
.summary-row, .target-row { display: grid; gap: 14px; margin: 18px 0; }
.journey-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.journey-strip article { padding: 16px; box-shadow: none; }
.journey-strip article.active { border-color: var(--deep); background: #f0f5ed; }
.journey-strip article.done { background: #f6f7f3; }
.journey-strip span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--line); color: var(--ink); font-weight: 900; margin-bottom: 10px; }
.journey-strip article.active span { background: var(--deep); color: white; }
.journey-strip article.done span { background: var(--sage); color: white; }
.journey-strip strong { display: block; margin-bottom: 6px; }
.journey-strip p { margin: 0; font-size: .9rem; }
.summary-row { grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); padding: 16px 0; }
.summary-row strong { display: block; font-size: 1.4rem; }
.target-row { grid-template-columns: repeat(2, 1fr); }
.target-row article { padding: 18px; }
.nutrition-budget-summary { display: grid; gap: 16px; margin: 18px 0 22px; border: 1px solid #c8d9d2; border-left: 6px solid var(--blue); border-radius: 8px; padding: 20px; background: #f4f9f7; }
.nutrition-budget-summary header { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.nutrition-budget-summary h2 { margin: 0; font-size: 1.32rem; color: var(--deep); }
.nutrition-budget-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nutrition-budget-grid article { display: grid; grid-template-columns: minmax(110px, .7fr) repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: var(--panel); }
.nutrition-budget-grid article > strong { align-self: center; color: var(--ink); font-size: 1.05rem; }
.nutrition-budget-grid div { display: grid; gap: 2px; border-left: 1px solid var(--line); padding-left: 12px; }
.nutrition-budget-grid span { color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.nutrition-budget-grid b { color: var(--deep); font-size: 1.22rem; line-height: 1.15; }
.nutrition-budget-grid small { color: var(--muted); line-height: 1.35; }
.macro-row { display: grid; grid-template-columns: repeat(3, auto 1fr); gap: 4px 8px; align-items: baseline; margin: 12px 0; }
.macro-row strong { font-size: 1.05rem; }
.macro-row span { color: var(--muted); font-size: .84rem; font-weight: 750; }
.planner-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.meal-list, .day-plan-section, .day-meal-list { display: grid; gap: 14px; }
.macro-fit-summary { display: grid; grid-template-columns: minmax(250px, .65fr) minmax(360px, 1fr); align-items: center; gap: 22px; border: 1px solid #cad8c6; border-left: 6px solid var(--sage); border-radius: 6px; padding: 20px 22px; background: #eef3ea; }
.macro-fit-summary strong { color: var(--deep); font-size: 1.18rem; line-height: 1.25; }
.macro-fit-summary span { max-width: 720px; color: var(--ink); font-size: .94rem; line-height: 1.55; }
.macro-fit-summary.needs-balance { border-color: #e7c9bd; border-left-color: var(--tomato); background: #fff4ef; }
.macro-fit-summary.needs-balance strong { color: #91422f; }
.day-macro-summary { display: grid; gap: 8px; border: 1px solid #e7c9bd; border-left: 5px solid var(--tomato); border-radius: 6px; padding: 13px 14px; background: #fff8f2; color: #3f2920; }
.day-macro-summary > strong { color: #91422f; }
.day-macro-summary ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.day-macro-summary li { display: grid; grid-template-columns: minmax(110px, .28fr) minmax(0, 1fr); gap: 10px; align-items: baseline; }
.day-macro-summary span { font-weight: 850; color: var(--ink); }
.day-macro-summary p { margin: 0; color: var(--muted); }
.technical-failure, .planning-constraint-notice, .recipe-choice-result { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 14px 0; padding: 16px; border: 1px solid #bd7041; border-left-width: 5px; border-radius: 6px; background: #fff8f2; color: #3f2920; }
.technical-failure p, .planning-constraint-notice p, .recipe-choice-result p { margin: 4px 0 0; }
.planning-constraint-notice { border-color: #678b78; background: #f3f8f5; color: #243d33; }
.recipe-choice-result { margin: 0; }
.recipe-choice-result { align-items: flex-start; border-color: #678b78; background: #f3f8f5; color: #243d33; }
.recipe-choice-result > div { min-width: 0; }
.recipe-choice-result > button { flex: 0 0 auto; }
.macro-confirmation-dialog { width: min(760px, calc(100vw - 28px)); }
.macro-conflict-locations { display: grid; gap: 8px; margin: 16px 0; }
.macro-conflict-locations article { padding: 12px; border: 1px solid var(--line); border-radius: 6px; }
.macro-conflict-locations p { margin: 4px 0; }
.macro-resolution-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.macro-override-choice { padding: 16px; border: 1px solid #bd7041; border-radius: 6px; background: #fff8f2; }
.macro-override-choice h3, .macro-override-choice p { margin-top: 0; }
.macro-override-choice label { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0; }
.macro-override-choice.compact { margin-top: 12px; padding: 13px 14px; }
.macro-override-choice.compact p { margin-bottom: 10px; }
.swap-override-choice { margin: 16px 0 4px; }
.skip-meal-dialog { width: min(560px, calc(100vw - 28px)); }
.skip-meal-dialog > p { margin-bottom: 16px; }
.skip-choice-list { display: grid; gap: 10px; }
.skip-choice-list button { display: grid; justify-items: start; gap: 4px; width: 100%; padding: 14px; text-align: left; }
.skip-choice-list button strong { color: var(--ink); }
.skip-choice-list button span { color: var(--muted); font-size: .92rem; }
.skip-choice-list button.restore { border-color: var(--deep); background: #f3f8f5; }
.load-failure { max-width: 720px; }
.tune-week-accordion { border-left: 6px solid var(--blue); background: #fbfcf8; }
.tune-week-accordion.is-open { border-color: var(--blue); }
.tune-week-accordion > .plan-accordion-toggle { min-height: 118px; background: #f5f9f6; }
.tune-week-accordion .plan-accordion-copy > strong { font-size: 1.32rem; }
.tune-week-accordion .plan-accordion-meta strong { border-radius: 999px; padding: 7px 10px; background: #e6eef2; color: #31596d; font-size: .84rem; }
.tune-week-options { display: grid; gap: 12px; }
.tune-week-options .personal-snack-prompt,
.tune-week-options .brand-choice-prompt,
.tune-week-options .food-rhythm-summary { border: 1px solid var(--line); border-left-width: 5px; border-radius: 8px; padding: 16px; background: var(--panel); box-shadow: none; }
.tune-week-options .personal-snack-prompt { border-left-color: var(--blue); }
.tune-week-options .brand-choice-prompt { border-left-color: var(--tomato); border-bottom: 1px solid var(--line); }
.tune-week-options .food-rhythm-summary { border-left-color: var(--gold); border-block: 1px solid var(--line); }
.tune-week-options h2 { font-size: 1.1rem; }
.food-rhythm-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-block: 1px solid var(--line); padding: 20px 2px; }
.food-rhythm-summary > div { max-width: 760px; }
.food-rhythm-summary h2 { margin-bottom: 5px; font-size: 1.25rem; }
.food-rhythm-summary p { margin-bottom: 0; }
.food-rhythm-summary > button { flex: 0 0 auto; }
.brand-choice-prompt { display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); padding: 20px 2px; }
.brand-choice-prompt > div { max-width: 760px; }
.brand-choice-prompt h2 { margin-bottom: 5px; font-size: 1.25rem; }
.brand-choice-prompt p:last-child { margin-bottom: 0; }
.brand-choice-prompt > button { flex: 0 0 auto; }
.personal-snack-prompt { display: flex; align-items: center; justify-content: space-between; gap: 28px; border-left: 5px solid var(--blue); padding: 22px 20px; background: #f0f6f8; }
.personal-snack-prompt > div { max-width: 760px; }
.personal-snack-prompt h2 { margin-bottom: 6px; font-size: 1.35rem; }
.personal-snack-prompt p:last-child { margin-bottom: 0; }
.personal-snack-prompt > button { flex: 0 0 auto; }
.preferred-recipe-badge { display: inline-flex; width: fit-content; border: 1px solid #b9cdb8; border-radius: 999px; padding: 5px 9px; background: #edf5e9; color: var(--deep); font-size: .76rem; font-weight: 800; }
.preferred-recipe-badge { margin-left: 8px; vertical-align: middle; text-transform: none; }
.recipe-choice-dialog { width: min(1180px, calc(100% - 24px)); height: min(880px, calc(100dvh - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; }
.recipe-choice-shell { display: grid; grid-template-areas: "head" "tools" "feedback" "results" "footer"; grid-template-rows: auto auto auto minmax(0, 1fr) auto; height: 100%; }
.recipe-choice-shell > .modal-head { grid-area: head; padding: 24px 24px 16px; }
.recipe-choice-shell > .modal-head p { max-width: 760px; margin-bottom: 0; }
.recipe-choice-tools { grid-area: tools; display: grid; grid-template-columns: minmax(240px, 1fr) auto; gap: 18px; align-items: end; border-block: 1px solid var(--line); padding: 14px 24px; }
.recipe-choice-tools label > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.recipe-choice-feedback { grid-area: feedback; display: grid; gap: 10px; padding: 0 24px; background: #f5f6f2; }
.recipe-choice-feedback:not(:empty) { padding-top: 14px; }
.recipe-choice-results { grid-area: results; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-content: start; overflow-y: auto; padding: 18px 24px 28px; background: #f5f6f2; }
.recipe-choice-card { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: var(--panel); }
.recipe-choice-card-head { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.recipe-choice-card h3 { margin: 9px 0 7px; font-size: 1.05rem; }
.recipe-choice-card p { margin-bottom: 12px; font-size: .88rem; line-height: 1.45; }
.recipe-choice-card .tags { margin-bottom: 10px; }
.recipe-choice-card small { display: block; margin-bottom: 14px; }
.recipe-choice-card button { width: 100%; margin-top: auto; }
.swap-choice-counts { display: flex; align-items: center; gap: 8px; padding-bottom: 4px; white-space: nowrap; }
.swap-choice-counts strong, .swap-choice-counts span { border-radius: 8px; padding: 7px 9px; font-size: .82rem; font-weight: 850; }
.swap-choice-counts strong { background: #dfeedd; color: #27563a; }
.swap-choice-counts span { background: #f7e4de; color: #91422f; }
.swap-choice-card.is-macro-fit { border-color: #c6d8c0; box-shadow: inset 0 0 0 1px #d7e5d2; }
.swap-choice-card.needs-balance { border-color: #e7c9bd; }
.swap-fit-note { display: grid; gap: 6px; margin: 0 0 14px; border-radius: 6px; padding: 10px; font-size: .84rem; }
.swap-fit-note p { margin: 0; font-size: .84rem; }
.swap-fit-note.is-compatible { background: #edf5e9; color: #27563a; }
.swap-fit-note.needs-balance { background: #fff4ef; color: #3f2920; }
.swap-fit-note ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.swap-fit-note li { display: grid; gap: 2px; }
.swap-fit-note li span { color: var(--muted); line-height: 1.35; }
.swap-choice-current { border-left-color: var(--sage); }
.recipe-choice-empty { grid-column: 1 / -1; padding: 48px 0; text-align: center; }
.recipe-choice-footer { grid-area: footer; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding: 14px 24px; background: var(--panel); box-shadow: 0 -8px 22px rgba(31, 43, 37, .06); }
.recipe-choice-footer > div:first-child { display: grid; gap: 2px; }
.recipe-choice-footer span { color: var(--muted); font-size: .82rem; }
.recipe-choice-footer > div:last-child { display: flex; gap: 8px; }
.section-head h2 { margin-bottom: 4px; }
.section-head p { margin-bottom: 0; }
.plan-accordion { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 8px 24px rgba(31, 43, 37, .06); scroll-margin-top: 12px; }
.plan-accordion.is-open { border-color: var(--sage); }
.plan-accordion-toggle { width: 100%; min-height: 104px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; border: 0; border-radius: 0; padding: 18px 20px; scroll-margin-top: 10px; text-align: left; }
.plan-accordion-toggle:hover { background: #f5f7f2; }
.plan-accordion-copy { display: grid; gap: 4px; min-width: 0; }
.plan-accordion-copy > strong { font-size: 1.18rem; }
.plan-accordion-copy small { font-weight: 500; }
.plan-accordion-meta { display: flex; align-items: center; gap: 16px; color: var(--muted); white-space: nowrap; }
.accordion-chevron { width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .18s ease; }
.plan-accordion.is-open .accordion-chevron { transform: rotate(225deg); }
.plan-accordion-content { display: grid; gap: 14px; border-top: 1px solid var(--line); padding: 18px; }
.plan-accordion-content[hidden] { display: none; }
.planning-days { display: grid; gap: 12px; }
.planning-day-flow { display: grid; gap: 24px; }
.planning-slot { display: grid; gap: 10px; }
.planning-slot + .planning-slot { border-top: 1px solid var(--line); padding-top: 22px; }
.planning-slot > header { display: flex; align-items: center; gap: 10px; }
.planning-slot > header > span { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; background: var(--deep); color: white; font-size: .78rem; font-weight: 900; }
.planning-slot > header > div { display: grid; gap: 2px; }
.planning-slot > header strong { font-size: 1.02rem; }
.planning-slot > header small { color: var(--muted); }
.planning-day-flow .planning-slot .meal-card { border: 1px solid var(--line); border-left: 6px solid var(--tomato); border-radius: 8px; padding: 17px; box-shadow: none; }
.planning-day-flow .planning-slot-lunch .meal-card { border-left-color: var(--blue); }
.planning-day-flow .planning-slot-breakfast .meal-card { border-left-color: var(--gold); }
.leftover-choice { display: grid; gap: 12px; border: 1px solid #cfdcca; border-left: 6px solid var(--sage); border-radius: 8px; padding: 17px; background: #f3f7f0; }
.leftover-choice legend { padding: 0 6px; color: var(--ink); font-size: 1rem; font-weight: 900; text-transform: none; }
.leftover-choice > p { margin: 0; font-size: .9rem; }
.leftover-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.leftover-options label { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 13px; background: var(--panel); cursor: pointer; }
.leftover-options label:has(input:checked) { border-color: var(--deep); box-shadow: inset 0 0 0 1px var(--deep); }
.leftover-options input { width: auto; min-height: auto; margin-top: 3px; accent-color: var(--deep); }
.leftover-options span { display: grid; gap: 4px; }
.leftover-options small { color: var(--muted); font-weight: 500; }
.leftover-choice.is-unavailable { display: block; border-left-color: var(--line); background: #f6f7f3; }
.leftover-choice.is-unavailable div { display: grid; gap: 4px; }
.shopping-accordion-head { display: flex; justify-content: flex-start; }
.active-week { display: grid; gap: 18px; }
.week-date-nav { display: grid; grid-template-columns: repeat(7, minmax(68px, 1fr)); gap: 8px; border-block: 1px solid var(--line); padding: 10px 0; }
.week-date-nav button { min-height: 62px; display: grid; place-items: center; gap: 2px; padding: 7px; color: var(--muted); background: transparent; box-shadow: none; }
.week-date-nav button span { font-size: .74rem; font-weight: 800; text-transform: uppercase; }
.week-date-nav button strong { color: var(--ink); font-size: 1.12rem; }
.week-date-nav button[aria-current="date"] { color: white; background: var(--deep); border-color: var(--deep); }
.week-date-nav button[aria-current="date"] strong { color: white; }
.daily-agenda { display: grid; gap: 12px; }
.agenda-day { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 8px 24px rgba(31, 43, 37, .06); scroll-margin-top: 14px; }
.agenda-day.is-open { border-color: var(--sage); }
.agenda-day.is-today { border-left: 6px solid var(--deep); }
.agenda-day-toggle { width: 100%; min-height: 96px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; border: 0; border-radius: 0; padding: 16px 18px; text-align: left; }
.agenda-day-toggle:hover { background: #f5f7f2; }
.agenda-day-copy { display: grid; gap: 4px; min-width: 0; }
.agenda-day-copy > strong { color: var(--ink); font-size: 1.28rem; }
.agenda-day-copy small { color: var(--muted); font-weight: 500; }
.agenda-day-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); white-space: nowrap; }
.agenda-day.is-open .accordion-chevron { transform: rotate(225deg); }
.today-marker { color: var(--deep); background: #e6efe3; border-radius: 8px; padding: 6px 8px; font-size: .78rem; font-weight: 800; }
.agenda-slots { display: grid; gap: 10px; border-top: 1px solid var(--line); padding: 14px; }
.agenda-slots[hidden] { display: none; }
.agenda-meal-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, .42fr); gap: 18px; padding: 17px; background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: 8px; box-shadow: 0 8px 24px rgba(31, 43, 37, .07); }
.agenda-meal-card.slot-lunch { border-left-color: var(--blue); }
.agenda-meal-card.slot-dinner { border-left-color: var(--tomato); }
.agenda-meal-copy h3 { margin: 3px 0 6px; font-size: 1.2rem; }
.agenda-meal-copy p { margin-bottom: 10px; }
.meal-slot-label { color: var(--muted); font-size: .75rem; font-weight: 850; text-transform: uppercase; }
.agenda-empty { min-height: 62px; display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 12px; border: 1px dashed var(--line); border-radius: 8px; padding: 13px 16px; color: var(--muted); }
.agenda-empty strong { color: var(--muted); font-size: .9rem; }
.today-jump { position: fixed; left: 50%; bottom: 22px; z-index: 20; display: grid; justify-items: center; min-width: 132px; transform: translateX(-50%); background: var(--deep); border-color: var(--deep); color: white; box-shadow: var(--shadow); }
.today-jump > span:not(.today-chevron) { font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.today-jump strong { font-size: .9rem; }
.today-jump[hidden] { display: none; }
.today-chevron { position: absolute; width: 12px; height: 12px; border-top: 3px solid var(--deep); border-left: 3px solid var(--deep); }
.today-jump[data-direction="up"] .today-chevron { top: -14px; transform: rotate(45deg); animation: today-bounce-up .9s ease-in-out infinite; }
.today-jump[data-direction="down"] .today-chevron { bottom: -10px; transform: rotate(225deg); animation: today-bounce-down .9s ease-in-out infinite; }
.reset-plan-float { position: fixed; right: 22px; bottom: 22px; z-index: 20; display: flex; align-items: center; gap: 8px; min-height: 48px; border-color: var(--deep); background: var(--panel); color: var(--deep); box-shadow: var(--shadow); }
.reset-plan-float > span { font-size: 1.35rem; line-height: 1; }
.reset-plan-dialog { width: min(520px, calc(100% - 24px)); }
.reset-plan-dialog h2 { margin-bottom: 10px; }
.reset-plan-dialog > p:not(.eyebrow) { margin-bottom: 10px; }
.reset-plan-dialog .actions { justify-content: flex-end; }

@keyframes today-bounce-up {
  0%, 100% { top: -14px; }
  50% { top: -19px; }
}

@keyframes today-bounce-down {
  0%, 100% { bottom: -10px; }
  50% { bottom: -15px; }
}

@media (prefers-reduced-motion: reduce) {
  .today-chevron { animation: none !important; }
  .app-toast { transition: none; }
  .planner-thinking-spinner { animation: none !important; }
  .global-activity-bar, button.is-loading::after, .button.is-loading::after { animation: none !important; }
}
.meal-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr); gap: 18px; padding: 20px; border-left: 7px solid var(--tomato); }
.meal-card:nth-child(2n) { border-left-color: var(--blue); }
.meal-card:nth-child(3n) { border-left-color: var(--gold); }
.meal-card.is-skipped, .agenda-meal-card.is-skipped { border-color: #c8cec7; border-left-color: #879087; background: #f1f3ef; box-shadow: none; }
.meal-card.has-partial-skip { border-left-color: #bd7041; background: #fffaf5; }
.is-skipped h2, .is-skipped h3 { color: var(--muted); }
.skip-meal-button { border-color: #d8a89c; color: #91422f; }
.skip-meal-button.restore { border-color: var(--deep); color: var(--deep); }
.skip-meal-button.partial { border-color: #bd7041; color: #6f3d22; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { background: #eef3ea; border-radius: 8px; padding: 6px 8px; color: var(--muted); font-size: .84rem; font-weight: 750; }
.tags .macro-fit-tag.is-compatible { background: #dfeedd; color: #27563a; }
.tags .macro-fit-tag.needs-balance { background: #f7e4de; color: #91422f; }
.tags .repeat-meal-tag { background: #e5eef4; color: #31596d; }
.meal-actions, .sub-grid { display: grid; gap: 10px; }
.exception-control { border-top: 1px solid var(--line); padding-top: 10px; }
.side-panel { position: sticky; top: 16px; padding: 18px; }
.shopping-date { margin-top: -8px; font-size: .88rem; }
.shopping-groups { display: grid; gap: 14px; }
.shopping-group { display: grid; gap: 6px; }
.shopping-group h3 { margin: 0; color: var(--ink); font-size: .92rem; }
.shopping-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.shopping-list li, .recipe-grid li { display: grid; grid-template-columns: 1fr auto; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 7px; }
.shopping-page { padding-bottom: 80px; }
.shopping-page-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.shopping-page-head h1 { margin-bottom: 14px; font-size: clamp(2.2rem, 5vw, 4.4rem); }
.shopping-category-nav { position: sticky; top: var(--sticky-nav-height); z-index: 20; display: flex; gap: 8px; overflow-x: auto; margin: 22px 0; border-block: 1px solid var(--line); padding: 10px 0; background: var(--paper); }
.shopping-category-nav a { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; background: var(--panel); color: var(--ink); font-weight: 750; }
.shopping-page-list { max-width: 820px; }
.shopping-page-list .shopping-groups { gap: 26px; }
.shopping-page-list .shopping-group { scroll-margin-top: 74px; }
.shopping-page-list .shopping-group h3 { border-bottom: 3px solid var(--sage); padding-bottom: 10px; font-size: 1.15rem; }
.shopping-page-list .shopping-list { gap: 0; }
.shopping-page-list .shopping-list li { min-height: 54px; align-items: center; padding: 10px 2px; font-size: 1.02rem; }
.week-checkin-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 26px; border-block: 1px solid var(--line); padding: 24px 2px; }
.week-checkin-cta.due { border-top: 4px solid var(--tomato); }
.week-checkin-cta h2, .week-checkin-cta p { margin: 0; }
.week-checkin-cta div { display: grid; gap: 7px; }
.week-checkin-cta button { flex: 0 0 auto; min-height: 48px; }
.checkin-form { display: grid; gap: 20px; }
.checkin-members { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.checkin-members fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.household-review { border-top: 1px solid var(--line); padding-top: 18px; }

dialog { width: min(1080px, calc(100% - 24px)); max-height: 86vh; overflow: auto; padding: 24px; }
dialog::backdrop { background: rgba(31, 43, 37, .38); }
.planner-thinking-overlay { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0; border-radius: 0; padding: 18px; background: transparent; box-shadow: none; }
.planner-thinking-overlay[open] { display: grid; place-items: center; }
.planner-thinking-overlay::backdrop { background: rgba(31, 43, 37, .68); }
.planner-thinking-panel { width: min(560px, 100%); border: 1px solid var(--line); border-radius: 8px; padding: 28px; background: var(--panel); box-shadow: 0 24px 70px rgba(20, 31, 25, .32); }
.planner-thinking-panel h2 { margin-bottom: 8px; font-size: 1.75rem; }
.planner-thinking-panel > p:not(.eyebrow) { margin-bottom: 18px; }
.planner-thinking-current { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 60px; margin-bottom: 15px; border-block: 1px solid var(--line); padding: 12px 0; color: var(--ink); }
.planner-thinking-spinner { width: 20px; height: 20px; border: 3px solid #d6dfd3; border-top-color: var(--deep); border-radius: 50%; animation: planner-spin .8s linear infinite; }
.planner-thinking-panel ol { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.planner-thinking-panel li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: center; color: #8a958e; font-size: .86rem; }
.planner-thinking-panel li > span { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 50%; background: #f5f6f2; font-size: .72rem; }
.planner-thinking-panel li.is-active { color: var(--ink); }
.planner-thinking-panel li.is-active > span { border-color: var(--deep); background: var(--deep); color: white; }
.planner-thinking-panel li.is-done { color: var(--muted); }
.planner-thinking-panel li.is-done > span { border-color: #b9cdb8; background: #edf5e9; color: var(--deep); }
.planner-thinking-panel > small { display: block; border-top: 1px solid var(--line); padding-top: 13px; }
@keyframes planner-spin { to { transform: rotate(360deg); } }
@keyframes global-progress {
  0% { transform: translateX(-110%); }
  55% { transform: translateX(90vw); }
  100% { transform: translateX(245vw); }
}
.swap-conflict-dialog { width: min(780px, calc(100% - 24px)); }
.swap-conflict-dialog > p { max-width: 680px; }
.coordinated-options { display: grid; gap: 12px; margin-top: 20px; }
.macro-conflict-summary { margin: 18px 0 4px; border-left: 5px solid var(--tomato); padding: 16px 18px; background: #fff7f3; }
.macro-conflict-summary h3 { margin-bottom: 7px; font-size: 1.05rem; }
.macro-conflict-summary p { margin-bottom: 10px; }
.macro-conflict-summary p:last-child { margin: 12px 0 0; font-size: .86rem; }
.macro-conflict-summary ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.macro-conflict-summary li { display: grid; grid-template-columns: minmax(150px, .45fr) minmax(0, 1fr); gap: 12px; border-top: 1px solid #efd9ce; padding-top: 8px; }
.macro-conflict-summary li > span:first-child { color: var(--ink); }
.macro-conflict-summary li > span:last-child { color: var(--muted); }
.coordinated-option { display: grid; gap: 15px; border: 1px solid var(--line); border-radius: 8px; padding: 17px; box-shadow: none; }
.coordinated-option-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.coordinated-option-head > span { border-radius: 8px; padding: 5px 8px; background: #dfeedd; color: #27563a; font-size: .78rem; font-weight: 850; }
.coordinated-replacements { display: grid; gap: 12px; }
.coordinated-replacements > div { display: grid; gap: 5px; border-top: 1px solid var(--line); padding-top: 11px; }
.coordinated-replacements span { color: var(--muted); font-size: .76rem; font-weight: 850; text-transform: uppercase; }
.coordinated-replacements p { display: grid; grid-template-columns: minmax(0, .8fr) 24px minmax(0, 1fr); gap: 10px; align-items: center; margin: 0; }
.coordinated-replacements p::before { content: ""; grid-column: 2; grid-row: 1; width: 8px; height: 8px; border-top: 2px solid var(--deep); border-right: 2px solid var(--deep); transform: rotate(45deg); }
.coordinated-replacements del { grid-column: 1; grid-row: 1; color: var(--muted); }
.coordinated-replacements strong { grid-column: 3; grid-row: 1; color: var(--ink); }
.linked-change { margin: 0; border-left: 4px solid var(--blue); padding: 8px 10px; background: #f1f6f8; font-size: .86rem; }
.coordinated-option > button { justify-self: start; }
.coordinated-status { min-height: 22px; margin-bottom: 0; color: var(--deep); font-weight: 750; }
.recipe-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.recipe-meta span { border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
.recipe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.recipe-grid article { border-top: 1px solid var(--line); padding-top: 14px; }
.recipe-grid ol { padding-left: 20px; }
.recipe-portion + .recipe-portion { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 10px; }
.portion-macros { display: flex; flex-wrap: wrap; gap: 7px 14px; margin: -3px 0 12px; color: var(--muted); font-size: .84rem; }
.portion-macros span { white-space: nowrap; }
.portion-macros strong { color: var(--ink); }
.portion-disclosure { margin-top: 12px; border-top: 1px solid #e2e8dd; padding-top: 10px; }
.portion-disclosure summary { cursor: pointer; color: var(--deep); font-weight: 850; }
.portion-disclosure-body { display: grid; gap: 10px; padding-top: 10px; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.portion-disclosure-body > strong { color: var(--ink); font-size: .96rem; }
.portion-disclosure-body > span { color: var(--ink); font-weight: 800; }
.portion-disclosure-body p { margin: 0; }
.logging-macros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0; list-style: none; }
.logging-macros li { border: 1px solid var(--line); border-radius: 6px; padding: 8px; background: var(--panel); color: var(--ink); font-weight: 800; text-align: center; }
.fit-adjustment-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fit-adjustment-list li { display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; background: var(--panel); }
.fit-adjustment-list span { color: var(--ink); font-weight: 850; }
.fit-adjustment-list strong, .fit-adjustment-list small { color: var(--muted); font-size: .8rem; }
.audit-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.audit-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .82rem; }
.audit-table th, .audit-table td { border-bottom: 1px solid #edf0e9; padding: 9px 10px; text-align: right; vertical-align: top; }
.audit-table th:first-child, .audit-table td:first-child { text-align: left; }
.audit-table th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.audit-table tbody tr:last-child td { border-bottom: 0; }
.audit-table .audit-total td { background: #f4f7f0; color: var(--ink); font-weight: 900; }
.component-audit-list { display: grid; gap: 8px; }
.component-audit { border: 1px solid var(--line); border-radius: 6px; padding: 11px; background: var(--panel); }
.component-audit summary { color: var(--ink); }
.component-audit > div { display: grid; gap: 10px; padding-top: 10px; }
.batch-facts { display: grid; gap: 7px; margin: 0; }
.batch-facts div { display: grid; gap: 2px; }
.batch-facts dt { color: var(--muted); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.batch-facts dd { margin: 0; color: var(--ink); font-weight: 750; }
.ingredient-audit-table td:first-child span, .ingredient-audit-table td:first-child small { display: block; }
.ingredient-audit-table td:first-child small { margin-top: 3px; color: var(--muted); font-size: .72rem; font-weight: 800; }
.faq-list { display: grid; gap: 12px; max-width: 900px; }
.faq-list details { padding: 18px 20px; }
.legal-page { max-width: 900px; }
.legal-page > section { display: grid; gap: 8px; padding-bottom: 42px; }
.legal-page h2 { margin-top: 24px; font-size: 1.35rem; }
.legal-page p { margin: 0; }
.site-footer { display: grid; gap: 30px; border-top: 1px solid var(--line); padding: 36px 0 28px; color: var(--muted); }
.footer-main { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); gap: 48px; }
.footer-identity { display: grid; align-content: start; gap: 10px; }
.footer-identity p { max-width: 280px; margin: 0; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer-links section { display: grid; align-content: start; gap: 9px; }
.footer-links section > strong { color: var(--ink); font-size: .82rem; text-transform: uppercase; }
.footer-links a { width: fit-content; color: var(--muted); font-weight: 650; }
.footer-links a:hover { color: var(--deep); }
.footer-legal { display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding-top: 20px; font-size: .82rem; }

@media (max-width: 920px) {
  .home-delivers, .home-section-head, .auth-options, .setup-card, .form-grid, .profile-grid, .choice-grid, .journey-strip, .summary-row, .target-row, .planner-layout, .meal-card, .agenda-meal-card, .recipe-grid, .checkin-members, .about-section-head, .about-question-layout, .manifesto-layout, .portal-section-head, .portal-member-summaries, .portal-people-grid, .portal-routine-summary, .brand-preferences-head, .brand-preference-grid, .snack-member-grid, .settings-form-grid, .day-snack-summary > div, .nutrition-budget-grid, .nutrition-budget-grid article { grid-template-columns: 1fr; }
  .skip-day-control { display: grid; align-items: start; }
  .skip-day-button { width: 100%; }
  .nutrition-budget-summary header { display: grid; align-items: start; }
  .nutrition-budget-summary header button { width: 100%; }
  .nutrition-budget-grid div { border-left: 0; border-top: 1px solid var(--line); padding: 10px 0 0; }
  .signup-page .profile-card,
  .signup-page .profile-card .professional-target-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .snack-row { align-items: stretch; flex-direction: column; }
  .home-delivers, .home-section-head { gap: 30px; }
  .home-flow-grid { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .about-section-head .eyebrow { margin-bottom: -18px; }
  .about-question-layout, .manifesto-layout { gap: 32px; }
  .manifesto-quote { position: static; max-width: 680px; }
  .about-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-loop article::before { display: none; }
  .trust-grid { grid-template-columns: 1fr; }
  .portal-section-head { gap: 18px; }
  .brand-preferences-head { gap: 14px; }
  .portal-routine-summary { gap: 16px; }
  .cuisine-scroll-region { max-height: 340px; }
}

@media (max-width: 620px) {
  .site-nav, .site-footer, .page, .app-shell, .home-hero, .home-delivers, .home-flow, .home-closing, .portal-shell { width: min(100% - 20px, 1200px); }
  .app-toast { right: 10px; bottom: 14px; width: calc(100% - 20px); }
  .ios-install-prompt { grid-template-columns: 1fr; align-items: stretch; width: calc(100% - 20px); padding: 14px; }
  .ios-install-prompt button { justify-self: end; }
  .home-hero { height: min(680px, calc(100svh - 92px)); min-height: 590px; background-position: 56% center; }
  .home-hero::before { background: rgba(18, 32, 26, .64); }
  .home-hero-content { width: calc(100% - 36px); padding: 36px 0 34px 18px; }
  .home-hero h1 { font-size: 3.15rem; line-height: 1; }
  .home-hero p:not(.eyebrow) { font-size: 1.02rem; }
  .home-hero .actions { display: grid; }
  .home-hero .button { justify-content: center; text-align: center; }
  .home-delivers, .home-flow { padding-block: 58px; }
  .home-delivers header h2, .home-section-head h2, .home-closing h2 { font-size: 2rem; }
  .home-deliver-grid { grid-template-columns: 1fr; }
  .home-belief-inner { width: min(100% - 20px, 1020px); padding-block: 62px 66px; }
  .home-belief-band blockquote { font-size: 2.25rem; }
  .home-flow-grid { gap: 28px; }
  .home-closing { padding-block: 58px 68px; }
  .portal-shell { padding-top: 24px; }
  .portal-head, .portal-save-bar, .portal-signout, .portal-password-form > header { display: grid; grid-template-columns: 1fr; align-items: start; }
  .portal-head h1 { font-size: 2.55rem; }
  .portal-head .button { justify-self: start; }
  .portal-tabs { margin-inline: -10px; padding-inline: 10px; }
  .portal-panel { padding-top: 32px; }
  .portal-section-head h2 { font-size: 1.85rem; }
  .portal-weight-line { grid-template-columns: auto 1fr; }
  .portal-person-fields, .portal-restriction-grid, .portal-choice-list, .portal-cuisine-grid, .portal-routine-fields { grid-template-columns: 1fr; }
  .portal-cuisine-grid { column-count: auto; }
  .cuisine-scroll-region { max-height: min(280px, 42vh); padding-right: 6px; }
  .portal-save-bar > div { display: grid; }
  .portal-save-bar button { width: 100%; }
  .profile-card, .professional-target-grid, .portal-person-fields .professional-target-grid,
  .signup-page .profile-card,
  .signup-page .profile-card .professional-target-grid,
  .signup-account-grid,
  .signup-routine-grid { grid-template-columns: 1fr; }
  .signup-head h1 { font-size: clamp(2.1rem, 8.8vw, 2.6rem); line-height: 1.04; }
  .signup-account-grid label:nth-child(5),
  .signup-page .profile-card .unit-field,
  .signup-page .profile-card .snack-flex-field,
  .signup-page .profile-card .clinical-guidance-choice { grid-column: auto; }
  .routine-day-grid,
  .signup-page .snack-flex-field { grid-template-columns: 1fr; }
  .unit-row,
  .unit-row.two { grid-template-columns: 1fr; }
  .modal-head { display: grid; }
  .brand-choice-prompt { align-items: stretch; flex-direction: column; gap: 14px; padding: 20px 10px; }
  .brand-choice-prompt > button { width: 100%; }
  .personal-snack-prompt { align-items: stretch; flex-direction: column; gap: 16px; padding: 20px 14px; }
  .personal-snack-prompt > button { width: 100%; }
  .recipe-choice-dialog { width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .recipe-choice-shell > .modal-head { grid-template-columns: minmax(0, 1fr) auto; padding: 16px 14px 12px; }
  .recipe-choice-shell > .modal-head h2 { font-size: 1.45rem; }
  .recipe-choice-shell > .modal-head p:not(.eyebrow) { display: none; }
  .recipe-choice-tools { grid-template-columns: 1fr; gap: 10px; padding: 10px 14px; }
  .recipe-choice-feedback { padding-inline: 14px; }
  .recipe-choice-results { grid-template-columns: 1fr; padding: 12px 14px 22px; }
  .recipe-choice-footer { align-items: stretch; flex-direction: column; gap: 10px; padding: 11px 14px max(11px, env(safe-area-inset-bottom)); }
  .recipe-choice-footer > div:last-child { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .logging-macros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portion-disclosure-body button { width: 100%; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { grid-template-columns: 1fr; gap: 24px; }
  .footer-legal { align-items: flex-start; flex-direction: column; gap: 6px; }
  .app-head-actions, .cycle-tabs { width: 100%; }
  .app-head-actions > * { flex: 1 1 auto; text-align: center; }
  .macro-fit-summary { grid-template-columns: 1fr; align-items: start; gap: 8px; padding: 18px 16px; }
  .technical-failure, .planning-constraint-notice, .recipe-choice-result { align-items: stretch; flex-direction: column; }
  .recipe-choice-result > button { width: 100%; }
  .food-rhythm-summary { align-items: stretch; flex-direction: column; gap: 14px; padding-inline: 10px; }
  .food-rhythm-summary > button { width: 100%; }
  .journey-strip { display: flex; overflow-x: auto; margin-inline: -10px; padding: 0 10px 0 15px; scroll-padding-left: 5px; scroll-snap-type: x proximity; }
  .journey-strip article { flex: 0 0 min(76vw, 270px); scroll-snap-align: start; }
  .summary-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .target-row { display: flex; overflow-x: auto; margin-inline: -10px; padding: 0 10px 0 15px; overscroll-behavior-x: contain; scroll-behavior: smooth; scroll-padding-left: 15px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .target-row article { flex: 0 0 calc(100vw - 40px); scroll-snap-align: start; scroll-snap-stop: always; }
  .plan-accordion-toggle { min-height: 92px; gap: 10px; padding: 15px 14px; }
  .plan-accordion-copy small { display: none; }
  .plan-accordion-meta { gap: 11px; font-size: .85rem; }
  .plan-accordion-content { padding: 12px; }
  .planning-day-flow { gap: 20px; }
  .planning-slot .meal-card { grid-template-columns: 1fr; padding: 14px; }
  .leftover-options { grid-template-columns: 1fr; }
  .shopping-page-head { display: grid; }
  .shopping-page-head .button { justify-self: start; }
  .coordinated-option-head { align-items: flex-start; flex-direction: column; }
  .macro-conflict-summary { padding: 14px; }
  .macro-conflict-summary li { grid-template-columns: 1fr; gap: 2px; }
  .coordinated-replacements p { grid-template-columns: 1fr; }
  .coordinated-replacements p::before { display: none; }
  .coordinated-replacements del, .coordinated-replacements strong { grid-column: 1; }
  .coordinated-replacements del { grid-row: 1; }
  .coordinated-replacements strong { grid-row: 2; }
  .coordinated-option > button { width: 100%; }
  .planner-thinking-overlay[open] { align-items: end; padding: 10px; }
  .planner-thinking-panel { max-height: calc(100dvh - 20px); overflow-y: auto; padding: 22px 18px; }
  .planner-thinking-panel h2 { font-size: 1.45rem; }
  .cycle-tabs { overflow-x: auto; }
  .cycle-tabs button { min-width: 150px; }
  .checkin-members fieldset { grid-template-columns: 1fr; }
  .week-checkin-cta { align-items: stretch; flex-direction: column; }
  .week-checkin-cta button { width: 100%; }
  .week-date-nav { display: flex; overflow-x: auto; }
  .week-date-nav button { min-width: 64px; }
  .agenda-day-toggle { min-height: 86px; gap: 10px; padding: 14px; }
  .agenda-day-copy small { display: none; }
  .agenda-day-meta { gap: 9px; font-size: .85rem; }
  .agenda-slots { padding: 12px; }
  .agenda-empty { grid-template-columns: 88px 1fr; }
  .today-jump { bottom: 12px; min-width: 118px; }
  .reset-plan-float { right: 12px; bottom: 12px; }
  .about-intro, .about-section, .about-band-inner, .about-closing, .about-meal-figure { width: min(100% - 20px, 1200px); }
  .about-intro { padding: 36px 0 54px; }
  .about-title-lockup { gap: 12px; margin-bottom: 22px; }
  .about-mark { width: 72px; height: 48px; }
  .about-intro h1 { font-size: 3rem; line-height: 1; }
  .about-intro-copy { grid-template-columns: 1fr; gap: 14px; }
  .about-lede { font-size: 1.05rem; }
  .about-meal-figure { height: 520px; min-height: 0; }
  .about-meal-figure img { object-position: 52% center; }
  .about-meal-figure figcaption { width: 100%; padding: 20px; }
  .about-meal-figure figcaption strong { font-size: 1.2rem; }
  .about-question-band .about-band-inner, .about-loop-band .about-band-inner, .about-section { padding-block: 54px; }
  .about-question-band h2, .about-section-head h2, .about-closing h2 { font-size: 2rem; }
  .question-story blockquote { padding-left: 16px; font-size: 1.5rem; }
  .manifesto-quote { font-size: 1.45rem; }
  .philosophy-list, .about-loop { grid-template-columns: 1fr; }
  .philosophy-list article { grid-template-columns: 40px 1fr; }
  .about-closing { padding-block: 56px 68px; }
}
