@import url('/static/fonts.css');

:root {
  --ink: #16231c;
  --muted: #657269;
  --bg: #f8faf7;
  --paper: #ffffff;
  --line: #dfe5dc;
  --pink: #4d7156;
  --pink-dark: #365640;
  --pink-soft: #eaf1e8;
  --pink-pale: #f3f7f1;
  --plum: #293d31;
  --yellow: #dfead9;
  --peach: #dbe5d7;
  --danger: #a33b3b;
  --radius: 18px;
  --shadow: 0 16px 44px rgba(34, 58, 40, .08);
  --green: var(--pink);
  --light: var(--pink-soft);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.6; font-size: 16px; }
button, input, select, textarea { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.wrap { width: min(1180px, calc(100% - 64px)); margin: auto; }
.hidden, [hidden] { display: none !important; }

.pilot-strip { padding: 9px 20px; text-align: center; border-bottom: 1px solid #eadbd0; background: #f8edc9; color: #65513d; font-size: 12px; font-weight: 600; }
.header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; gap: 11px; align-items: center; font-size: 28px; font-weight: 850; letter-spacing: -1.5px; }
.logo-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50% 50% 48% 38%; background: var(--pink); color: #fff; font-size: 20px; font-weight: 900; transform: rotate(-7deg); box-shadow: 0 8px 24px rgba(185, 79, 120, .2); }
.nav { display: flex; gap: 30px; font-size: 14px; font-weight: 600; color: #563a49; }
.nav a { position: relative; }
.nav a:after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--pink); }
.nav a:hover:after { right: 0; }
.tag { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; background: rgba(255,255,255,.72); font-size: 12px; font-weight: 700; }
.tag-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid transparent; border-radius: 9px; padding: 13px 21px; background: var(--pink); color: #fff; font-size: 14px; font-weight: 800; box-shadow: none; }
.btn:hover { background: var(--pink-dark); }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.secondary:hover { background: var(--pink-pale); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.small { padding: 9px 16px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn.danger { background: #fff; color: var(--danger); border-color: #ecc4cf; box-shadow: none; }
.link-button { border: 0; background: none; color: var(--pink-dark); text-decoration: underline; padding: 2px 0; font-size: 13px; }

/* Landing */
.landing-page { overflow-x: hidden; }
.hero-shell { position: relative; min-height: 720px; overflow: hidden; background: #d987a5; isolation: isolate; }
.hero-shell:before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(104, 53, 76, .46), rgba(169, 90, 120, .12) 55%, rgba(255,255,255,.08)); z-index: -1; }
.hero-shell:after { content: ""; position: absolute; width: 260px; height: 260px; left: -90px; bottom: -105px; border-radius: 50%; background: var(--yellow); transform: rotate(18deg); opacity: .92; }
.hero-photo { position: absolute; inset: 0; z-index: -2; background: url('/static/images/racion-hero.webp') center / cover no-repeat; filter: saturate(.62) contrast(.94) brightness(1.06); }
.hero-content { position: relative; min-height: 720px; display: flex; align-items: center; }
.hero-copy { width: min(690px, 61%); padding: 68px 0 82px; color: #fff; }
.tag-bright { background: var(--yellow); color: var(--ink); border: 0; }
.hero-copy h1 { margin: 25px 0 25px; font-size: clamp(52px, 6.2vw, 88px); line-height: .98; letter-spacing: -5px; font-weight: 900; }
.hero-copy h1 em { display: inline-block; max-width: 700px; color: #fff; font-family: Georgia, serif; font-size: .82em; font-weight: 400; letter-spacing: -3.5px; }
.hero-description { max-width: 560px; margin: 0 0 30px; color: rgba(255,255,255,.9); font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn-light { background: #fff; color: var(--pink-dark); box-shadow: 0 16px 36px rgba(75, 5, 36, .2); }
.btn-light:hover { background: var(--yellow); color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); box-shadow: none; }
.btn-outline-light:hover { background: rgba(255,255,255,.13); }
.micro { font-size: 12px; color: var(--muted); }
.hero-micro { color: rgba(255,255,255,.78); }
.hero-sticker { position: absolute; right: 1%; bottom: 70px; width: 150px; height: 150px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--yellow); color: var(--ink); transform: rotate(9deg); border: 4px solid #fff; box-shadow: 0 16px 45px rgba(65, 0, 29, .25); }
.hero-sticker b { font-size: 33px; line-height: 1; letter-spacing: -2px; }
.hero-sticker span { margin-top: 7px; font-size: 12px; line-height: 1.25; font-weight: 800; text-transform: uppercase; }
.ticker { overflow: hidden; background: var(--plum); color: #fff; transform: rotate(-1deg) scale(1.02); margin: -3px 0 15px; }
.ticker > div { min-width: max-content; display: flex; align-items: center; justify-content: center; gap: 35px; padding: 15px 20px; font-size: 13px; font-weight: 900; letter-spacing: 1.2px; }
.ticker i { color: var(--yellow); font-style: normal; }
.section { padding: 88px 0; }
.section-kicker, .bubble-label { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: var(--pink-soft); color: var(--pink-dark); font-size: 11px; font-weight: 900; letter-spacing: 1.3px; text-transform: uppercase; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 45px; margin: 22px 0 34px; }
.section h2 { margin: 0 0 14px; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.03; letter-spacing: -2.8px; font-weight: 850; }
.section-sub { max-width: 480px; margin: 0; color: var(--muted); font-size: 16px; }
.big-heading h2 { max-width: 750px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { position: relative; min-height: 330px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: 32px; padding: 29px; }
.step-card:before { content: ""; position: absolute; width: 170px; height: 170px; top: -58px; right: -50px; border-radius: 50%; background: rgba(255,255,255,.35); }
.step-card h3 { margin: 18px 0 7px; font-size: 25px; line-height: 1.08; letter-spacing: -1px; }
.step-card p { margin: 0; max-width: 290px; font-size: 14px; line-height: 1.55; }
.step-index { position: absolute; top: 24px; left: 27px; font-size: 12px; font-weight: 900; letter-spacing: 1px; }
.step-icon { font-size: 69px; line-height: 1; }
.step-hot { background: #d980a0; color: #fff; }
.step-pale { background: #f3d9e3; color: var(--ink); }
.step-yellow { background: var(--yellow); color: var(--ink); }
.product-showcase { display: grid; grid-template-columns: .9fr 1fr; gap: 75px; align-items: center; }
.lifestyle-card { position: relative; min-height: 660px; border-radius: 40px; overflow: hidden; background: var(--pink-soft); box-shadow: var(--shadow); }
.lifestyle-card img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.photo-badge { position: absolute; left: 22px; right: 22px; bottom: 22px; display: flex; flex-direction: column; padding: 19px 21px; border: 1px solid rgba(255,255,255,.7); border-radius: 22px; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); }
.photo-badge strong { font-size: 18px; }
.photo-badge span { color: var(--muted); font-size: 13px; }
.eyebrow { margin: 0 0 17px; color: var(--pink-dark); font-size: 11px; font-weight: 900; letter-spacing: 1.9px; text-transform: uppercase; }
.feature-list { list-style: none; margin: 30px 0; padding: 0; }
.feature-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.feature-list li > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--pink-soft); color: var(--pink-dark); font-size: 12px; font-weight: 900; }
.feature-list b, .feature-list small { display: block; }
.feature-list b { font-size: 17px; }
.feature-list small { margin-top: 3px; color: var(--muted); font-size: 13px; }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--pink-dark); font-weight: 850; border-bottom: 2px solid currentColor; }
.demo-section { display: grid; grid-template-columns: .8fr 1fr; gap: 60px; align-items: center; margin: 25px 0 70px; padding: 64px; border-radius: 42px; background: var(--pink); color: #fff; overflow: hidden; }
.demo-section .bubble-label { background: var(--yellow); color: var(--ink); }
.demo-copy h2 { margin-top: 25px; }
.demo-copy p { max-width: 360px; color: rgba(255,255,255,.82); }
.plan-preview { position: relative; max-width: 510px; margin: auto; padding: 27px; border: 1px solid var(--line); border-radius: 30px; background: #fff; color: var(--ink); box-shadow: 0 28px 65px rgba(74, 5, 39, .25); transform: rotate(1.5deg); }
.preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.preview-head h3 { margin: 0; font-size: 21px; letter-spacing: -.6px; }
.preview-head .eyebrow { margin-bottom: 2px; }
.day-dot { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); }
.preview-line { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.preview-active { margin: 0 -10px; padding: 13px 10px; border-radius: 18px; background: var(--pink-pale); }
.food-emoji { width: 62px; height: 62px; display: grid; place-items: center; flex-shrink: 0; border-radius: 20px; background: #fff3c9; font-size: 34px; }
.food-emoji.warm { background: #ffdce8; }
.food-emoji.cool { background: #e7efff; }
.preview-line strong, .preview-line small { display: block; }
.preview-line strong { font-size: 14px; }
.preview-line small { color: var(--muted); font-size: 10px; }
.swap-button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--pink); color: #fff; font-size: 21px; }
.swap-button:hover { background: var(--pink-dark); }
.preview-foot { display: flex; justify-content: space-between; margin-top: 11px; padding: 13px 15px; border-radius: 13px; background: var(--pink-soft); color: var(--pink-dark); font-size: 12px; font-weight: 700; }
.calm-section { display: grid; grid-template-columns: .7fr 1.2fr; gap: 60px; align-items: start; }
.calm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.calm-grid > div { min-height: 270px; padding: 23px; border: 1px solid var(--line); border-radius: 25px; background: #fff; }
.calm-grid span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--pink-soft); color: var(--pink); font-size: 24px; }
.calm-grid b { display: block; margin-top: 55px; line-height: 1.25; }
.calm-grid p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.pricing-section { display: grid; grid-template-columns: 1fr .82fr; gap: 70px; align-items: center; padding: 62px; border-radius: 42px; background: var(--plum); color: #fff; }
.pricing-copy p { max-width: 490px; color: rgba(255,255,255,.72); }
.bubble-label.dark { background: var(--yellow); color: var(--ink); }
.price-card { padding: 31px; border-radius: 28px; background: #fff; color: var(--ink); }
.price { margin: 12px 0; font-size: 49px; font-weight: 900; letter-spacing: -2.5px; }
.price small { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.checkline { margin: 11px 0; font-size: 14px; }
.checkline:before { content: "✓"; display: inline-grid; place-items: center; width: 21px; height: 21px; margin-right: 10px; border-radius: 50%; background: var(--pink-soft); color: var(--pink-dark); font-weight: 900; }
.disclosure { color: var(--muted); font-size: 12px; line-height: 1.6; }
.faq { max-width: 880px; margin: auto; }
.faq details { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 18px; font-weight: 750; }
.faq details p { max-width: 760px; color: var(--muted); font-size: 14px; }
.footer { display: flex; justify-content: space-between; gap: 30px; padding: 34px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer p { max-width: 760px; margin: 0; }

/* Nutrition goals */
.benefits-section { padding-top: 88px; padding-bottom: 80px; }
.benefits-section h2 { margin: 0 0 66px; font-size: clamp(32px, 3.2vw, 40px); line-height: 1.2; letter-spacing: -1.2px; }
.benefits-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
.benefit-card { min-width: 0; }
.benefit-visual { overflow: hidden; border-radius: 22px; background: #f7f7f7; }
.benefit-visual img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.benefit-visual h3 { position: relative; display: grid; place-content: center; min-height: 76px; margin: -16px 0 0; padding: 12px 8px; border-radius: 21px; background: #fcdfef; color: #302b2e; font-size: 19px; font-weight: 650; line-height: 1.3; letter-spacing: -.3px; text-align: center; }
@media (max-width: 1000px) {
  .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
}
@media (max-width: 760px) {
  .section.benefits-section { padding-top: 52px; padding-bottom: 36px; }
  .benefits-section h2 { margin-bottom: 32px; }
  .benefits-grid { gap: 24px 14px; }
  .benefit-visual { border-radius: 18px; }
  .benefit-visual h3 { min-height: 70px; padding: 12px 5px; border-radius: 17px; font-size: 15px; }
}
@media (max-width: 359px) {
  .benefits-grid { grid-template-columns: 1fr; }
}

/* Product app */
.app-header { min-height: 82px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); backdrop-filter: blur(12px); }
.app-header .wrap { min-height: 82px; display: flex; justify-content: space-between; align-items: center; }
.app-header .logo { font-size: 24px; }
.header-right { display: flex; gap: 14px; align-items: center; }
.account-menu { position: relative; width: 100%; color: var(--ink); }
.account-menu summary { width: 100%; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; list-style: none; cursor: pointer; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-avatar { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; border-radius: 50%; background: #e4ece1; color: #3e6249; font-size: 12px; font-weight: 850; }
.account-summary-copy { min-width: 0; flex: 1; text-align: left; }
.account-summary-copy strong, .account-summary-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-summary-copy strong { font-size: 12px; }
.account-summary-copy small { color: var(--muted); font-size: 9px; font-weight: 600; }
.account-popover { position: absolute; z-index: 80; bottom: calc(100% + 8px); left: 0; width: 275px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 16px 42px rgba(26,45,32,.17); }
.account-popover > span, .account-popover > strong { display: block; }
.account-popover > span { color: var(--muted); font-size: 10px; }
.account-popover > strong { overflow: hidden; margin: 3px 0 11px; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.account-popover > button { display: block; width: 100%; padding: 9px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); text-align: left; font-size: 12px; font-weight: 750; }
.account-popover > button:hover { background: var(--pink-pale); }
.account-popover > button[data-logout] { margin-top: 3px; color: #7a3944; }
.account-menu-status { display: block; min-height: 14px; margin-top: 5px; color: var(--danger); font-size: 10px; line-height: 1.35; }
.app-nav { display: flex; gap: 26px; margin-left: 50px; margin-right: auto; }
.app-nav button { padding: 12px 0; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 650; }
.app-nav button.active { color: var(--pink-dark); box-shadow: 0 3px var(--pink); }
.app-content { min-height: 75vh; padding: 38px 0 60px; }
.onboarding { position: relative; width: min(1050px, 100%); margin: 8px auto; display: grid; grid-template-columns: .75fr 1fr; gap: 28px; align-items: stretch; }
.onboarding-intro { min-height: 580px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 35px; border-radius: 32px; background: linear-gradient(180deg, transparent 30%, rgba(76,5,40,.8)), url('/static/images/racion-together.webp') center / cover no-repeat; color: #fff; box-shadow: var(--shadow); }
.onboarding-intro .eyebrow { color: var(--yellow); }
.onboarding-intro h1 { margin: 9px 0; font-size: 43px; line-height: 1.02; letter-spacing: -2px; }
.onboarding-intro p { max-width: 440px; margin: 0; color: rgba(255,255,255,.85); font-size: 14px; }
.form-card { padding: 32px; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.onboarding > .form-card { min-height: 580px; }
.auth-open { overflow: hidden; }
.auth-modal { position: fixed; z-index: 300; inset: 0; display: grid; place-items: center; padding: 24px; }
.auth-backdrop { position: absolute; inset: 0; background: rgba(20, 32, 24, .68); backdrop-filter: blur(5px); }
.auth-dialog { position: relative; width: min(460px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; border: 1px solid rgba(255,255,255,.62); border-radius: 24px; background: #fff; box-shadow: 0 28px 80px rgba(22,35,28,.3); }
.auth-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 26px 19px; border-bottom: 1px solid var(--line); }
.auth-header h2 { margin: 2px 0 0; font-size: 26px; line-height: 1.2; letter-spacing: -.8px; }
.auth-kicker { color: var(--pink-dark); font-size: 10px; font-weight: 850; letter-spacing: 1.3px; text-transform: uppercase; }
.auth-close { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.auth-close:hover { background: var(--pink-pale); color: var(--ink); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 20px 24px 0; padding: 4px; border: 1px solid #dce5da; border-radius: 13px; background: var(--pink-pale); }
.auth-tabs button { min-height: 47px; border: 0; border-radius: 9px; background: transparent; color: var(--pink-dark); font-size: 14px; font-weight: 800; cursor: pointer; }
.auth-tabs button[aria-selected="true"] { background: var(--pink); color: #fff; box-shadow: 0 7px 18px rgba(54,86,64,.2); }
.auth-panel { padding: 20px 24px 25px; }
.auth-intro { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.auth-panel .field { margin: 0 0 16px; }
.auth-panel .field > label { margin-bottom: 6px; color: var(--ink); font-size: 13px; }
.auth-panel .field > label span { color: var(--muted); font-weight: 500; }
.auth-panel .text-input { min-height: 49px; background: #fff; }
.auth-panel .text-input:focus { border-color: var(--pink); outline: 3px solid var(--pink-soft); outline-offset: 1px; }
.auth-consent { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 13px; color: var(--muted); font-size: 12px; line-height: 1.55; cursor: pointer; }
.auth-consent input { width: 18px; height: 18px; flex: 0 0 18px; margin: 2px 0 0; accent-color: var(--pink); }
.auth-consent a { color: var(--pink-dark); font-weight: 750; text-decoration: underline; }
.auth-error { min-height: 20px; margin: 0 0 8px; }
.auth-submit { min-height: 49px; }
.auth-note { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; }
.account-save-card { margin: 22px 0; padding: 20px; border: 1px solid #d5e0d3; border-radius: 17px; background: var(--pink-pale); }
.account-save-card strong { display: block; margin-bottom: 5px; font-size: 17px; }
.account-save-card p { margin: 0 0 15px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.guest-save-banner { margin-left: 240px; padding: 15px clamp(28px,4vw,68px); display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 16px; border-bottom: 1px solid #d8e1d6; background: #f0f4ed; color: #314239; }
.guest-save-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #dfe9dc; color: #426349; font-size: 19px; font-weight: 850; }
.guest-save-banner p { margin: 0; font-size: 13px; line-height: 1.45; }
.guest-save-banner p strong, .guest-save-banner p span { display: block; }
.guest-save-banner p span { margin-top: 2px; color: #68756c; }
.guest-save-actions { display: flex; gap: 8px; }
.guest-save-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #68756c; font-size: 22px; cursor: pointer; }
.guest-save-close:hover { background: #e1e8df; }
.cabinet-card { min-height: 520px; }
.cabinet-session-bar { margin: 20px 0 4px; padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #d6e1d4; border-radius: 13px; background: #f2f6f0; }
.cabinet-session-bar span, .cabinet-session-bar strong, .cabinet-session-bar small { display: block; }
.cabinet-session-bar span { color: #718078; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.cabinet-session-bar strong { overflow-wrap: anywhere; margin: 2px 0; font-size: 15px; }
.cabinet-session-bar small { color: var(--muted); font-size: 10px; }
.cabinet-stats { margin: 23px 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.cabinet-stats article { padding: 17px; border: 1px solid #dfe5dc; border-radius: 13px; background: #f7f9f6; }
.cabinet-stats span { display: block; margin-bottom: 6px; color: #718078; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.cabinet-stats strong { color: #203128; font-size: 19px; }
.cabinet-section { margin-top: 15px; padding: 20px; border: 1px solid #dfe5dc; border-radius: 14px; }
.cabinet-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.cabinet-section h3 { margin: 3px 0 0; color: #203128; }
.cabinet-menu-history { display: grid; gap: 8px; }
.cabinet-menu-item { padding: 13px 0; display: flex; align-items: start; justify-content: space-between; gap: 16px; border-top: 1px solid #e5e9e3; }
.cabinet-menu-item:first-child { border-top: 0; }
.cabinet-menu-item strong, .cabinet-menu-item span { display: block; }
.cabinet-menu-item span { margin-top: 4px; color: #69766d; font-size: 12px; line-height: 1.5; }
.cabinet-menu-item small { flex: 0 0 auto; color: #5f7064; font-size: 11px; font-weight: 750; }
.cabinet-shopping-preview { display: grid; gap: 4px; }
.cabinet-shopping-row { padding: 9px 0; display: grid; grid-template-columns: 22px minmax(0,1fr) auto; gap: 7px; align-items: center; border-top: 1px solid #e5e9e3; font-size: 13px; }
.cabinet-shopping-row span { color: #4d7156; font-weight: 850; }
.cabinet-shopping-row small { color: #6f7c73; }
.cabinet-shopping-row.checked strong { color: #7e8981; text-decoration: line-through; }
.cabinet-more, .cabinet-empty { margin: 10px 0 0 !important; color: #6f7c73; font-size: 12px !important; }
.cabinet-account-section details { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e5e9e3; }
.cabinet-account-section summary { color: #6b3d47; font-size: 13px; font-weight: 750; cursor: pointer; }
.steps { display: flex; gap: 8px; margin-bottom: 26px; }
.steps i { height: 5px; flex: 1; border-radius: 4px; background: var(--line); }
.steps i.active { background: var(--pink); }
.form-card h2 { margin: 0 0 12px; font-size: 25px; letter-spacing: -.8px; }
.form-card p { color: var(--muted); font-size: 14px; }
.field { margin: 19px 0; }
.field > label, .field-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.text-input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: #fffafd; color: var(--ink); font-size: 15px; }
textarea { min-height: 92px; resize: vertical; }
.check { display: flex; align-items: start; gap: 10px; padding: 10px 0; color: var(--muted); font-size: 13px; cursor: pointer; }
.check input { width: 17px; height: 17px; flex-shrink: 0; margin: 4px 0 0; accent-color: var(--pink); }
.check strong { color: var(--ink); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-grid-three { grid-template-columns: repeat(3, 1fr); }
.choice { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; font-size: 14px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--pink); background: var(--pink-pale); }
.plan-days-control { padding: 20px 22px 17px; border: 1px solid #dce5da; border-radius: 17px; background: linear-gradient(135deg, #f3f7f1, #fff); box-shadow: 0 9px 24px rgba(47, 79, 57, .06); }
.plan-days-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.plan-days-summary output { color: #203a2a; font-size: 28px; font-weight: 800; letter-spacing: -.8px; }
.plan-days-summary span { color: var(--muted); font-size: 12px; }
#plan-days { --range-progress: 22.222%; width: 100%; height: 25px; margin: 0; appearance: none; background: linear-gradient(to right, #4f775c 0 var(--range-progress), #dfe7dd var(--range-progress) 100%) center / 100% 8px no-repeat; cursor: pointer; }
#plan-days::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: transparent; }
#plan-days::-moz-range-track { height: 8px; border-radius: 999px; background: transparent; }
#plan-days::-webkit-slider-thumb { width: 26px; height: 26px; margin-top: -9px; appearance: none; border: 5px solid #fff; border-radius: 50%; background: #4f775c; box-shadow: 0 0 0 2px #4f775c, 0 5px 13px rgba(40, 70, 49, .24); }
#plan-days::-moz-range-thumb { width: 16px; height: 16px; border: 5px solid #fff; border-radius: 50%; background: #4f775c; box-shadow: 0 0 0 2px #4f775c, 0 5px 13px rgba(40, 70, 49, .24); }
#plan-days:focus-visible { outline: none; }
#plan-days:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #9ab09c; }
#plan-days:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #9ab09c; }
.plan-days-scale { display: flex; justify-content: space-between; padding: 2px 3px 0; color: #7f8d82; font-size: 10px; font-variant-numeric: tabular-nums; }
.plan-days-scale span { width: 16px; text-align: center; }
.plan-days-ends { display: flex; justify-content: space-between; margin-top: 7px; color: #748078; font-size: 10px; font-weight: 700; }
.choice input, .chip input { accent-color: var(--pink); }
.chip-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { display: flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; cursor: pointer; }
.chip:has(input:checked) { border-color: var(--pink); background: var(--pink-soft); }
.form-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 25px; }
.form-bottom .btn:first-child:last-child { margin-left: auto; }
.notice { padding: 14px 17px; border: 1px solid var(--line); border-radius: 15px; background: var(--pink-pale); color: var(--muted); font-size: 12px; line-height: 1.7; }
.notice.warning { border-color: #efd99d; background: #fff8d6; color: #72542e; }
.notice.danger { border-color: #edc5ce; background: #fff0f3; color: var(--danger); }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 28px; }
.dash-head h1 { margin: 3px 0; font-size: 36px; letter-spacing: -1.5px; }
.dash-head p { margin: 0; color: var(--muted); font-size: 14px; }
.dash-grid { display: grid; grid-template-columns: 1fr 310px; gap: 26px; }
.meal-card { margin-bottom: 14px; padding: 21px; border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: 0 8px 28px rgba(90,11,48,.05); }
.meal-card.meal-cooked { background: #fffdf5; border-color: #eadb9d; }
.meal-top { display: flex; gap: 18px; align-items: center; }
.meal-main { flex: 1; }
.food-photo { position: relative; width: 62px; height: 62px; flex: 0 0 62px; overflow: hidden; border-radius: 17px; background-color: #e9eee7; background-position: center; background-size: cover; text-decoration: none; }
.food-photo-bakery { background-image: url('/static/images/recipe-placeholders/placeholder-bakery.webp'); }
.food-photo-breakfast { background-image: url('/static/images/recipe-placeholders/placeholder-breakfast.webp'); }
.food-photo-dessert { background-image: url('/static/images/recipe-placeholders/placeholder-dessert.webp'); }
.food-photo-fish { background-image: url('/static/images/recipe-placeholders/placeholder-fish.webp'); }
.food-photo-main { background-image: url('/static/images/recipe-placeholders/placeholder-main.webp'); }
.food-photo-pasta { background-image: url('/static/images/recipe-placeholders/placeholder-pasta.webp'); }
.food-photo-salad { background-image: url('/static/images/recipe-placeholders/placeholder-salad.webp'); }
.food-photo-soup { background-image: url('/static/images/recipe-placeholders/placeholder-soup.webp'); }
.food-photo img { width: 100%; height: 100%; display: block; object-fit: cover; opacity: 1; }
.food-photo img.is-loading { opacity: 0; }
.recipe-source-action { text-decoration: none; }
.recipe-source-note { margin: 12px 0 0; }
.recipe-source-note a { color: #42684e; font-weight: 800; }
.meal-label { margin-bottom: 4px; color: var(--pink-dark); font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.meal-card h3 { margin: 0 0 5px; font-size: 19px; font-weight: 750; letter-spacing: -.6px; }
.meal-card .meta { color: var(--muted); font-size: 12px; }
.meal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 15px; }
.meal-detail { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.meal-detail ol { padding-left: 20px; }
.meal-detail h4 { margin: 10px 0; color: var(--ink); font-size: 13px; }
.ingredients { display: flex; flex-wrap: wrap; gap: 6px; }
.ingredient { padding: 5px 9px; border-radius: 999px; background: var(--pink-pale); font-size: 11px; }
.side-card { margin-bottom: 18px; padding: 23px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.side-card h3 { margin: 0 0 10px; font-size: 18px; letter-spacing: -.5px; }
.side-card p { margin: 10px 0 17px; color: var(--muted); font-size: 13px; }
.side-card.green { border-color: var(--pink); background: linear-gradient(145deg, #dc83a3, #c9678c); color: #fff; }
.side-card.green p { color: rgba(255,255,255,.8); }
.side-card.green .btn { background: var(--yellow); color: var(--ink); box-shadow: none; }
.side-card .mini-icon { margin-bottom: 14px; font-size: 28px; }
.side-label { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; opacity: .75; }
.side-card .price { margin: 8px 0; font-size: 33px; }
.side-card .price small { color: inherit; font-size: 12px; opacity: .7; }
.day-number { font-size: 28px; font-weight: 800; letter-spacing: -1px; }
.shopping-list, .chat-box { padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.shopping-item { display: flex; align-items: center; gap: 13px; padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.shopping-item:last-child { border: 0; }
.shopping-item input { width: 17px; height: 17px; accent-color: var(--pink); }
.shopping-item span { flex: 1; }
.shopping-item:has(input:checked) span { color: var(--muted); text-decoration: line-through; }
.shopping-item small { color: var(--muted); font-size: 12px; }
.shopping-item.covered span { color: var(--muted); }
.shopping-mark { max-width: 24px; color: var(--pink-dark); font-weight: 900; }
.price-comparison { margin-top: 22px; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.price-empty p, .price-heading p, .price-card p { color: var(--muted); font-size: 13px; }
.price-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 18px; }
.price-heading h2 { margin: 4px 0 0; }
.price-heading > p { max-width: 390px; margin: 0; text-align: right; }
.eyebrow { color: var(--pink-dark); font-size: 10px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 12px; }
.price-card { padding: 18px; border: 1px solid var(--line); border-radius: 18px; }
.price-card.best { border-color: var(--pink); box-shadow: 0 8px 24px rgba(90,11,48,.07); }
.price-card.selected { border-color: #4d7156; box-shadow: 0 0 0 2px rgba(77,113,86,.11); }
.price-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.best-badge { padding: 4px 8px; border-radius: 999px; background: var(--pink-pale); color: var(--pink-dark); font-size: 10px; font-weight: 800; }
.provider-badge { padding: 4px 8px; border-radius: 999px; background: #edf3ea; color: #365140; font-size: 10px; font-weight: 800; white-space: nowrap; }
.basket-price { margin-top: 12px; font-size: 29px; font-weight: 800; }
.freshness { margin: 8px 0; }
.freshness.stale { color: #9b4c12; }
.retailer-choose { width: 100%; margin-top: 12px; }
.provider-status-card { border-style: dashed; background: #fafcf9; }
.provider-status-card .basket-price { color: #9ba69e; }
.provider-status-card .provider-truth { margin-bottom: 0; font-size: 11px; }
.retailer-cart { width: 100%; margin-top: 12px; }
.retailer-location { display: block; margin-top: 14px; color: var(--ink); font-size: 12px; font-weight: 700; }
.retailer-location select { margin-top: 6px; }
.retailer-location-match { display: flex; gap: 9px; align-items: flex-start; margin-top: 10px; color: var(--ink); font-size: 12px; line-height: 1.4; cursor: pointer; }
.retailer-location-match input { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: var(--pink); }
.retailer-location-match:has(input:disabled) { color: var(--muted); cursor: default; }
.retailer-cart-prep { display: block; width: 100%; margin-top: 12px; text-align: center; }
.cart-result { min-height: 18px; margin: 8px 0 0; color: var(--ink) !important; font-weight: 700; }
.cart-result.error { color: #a21c46 !important; }
.regional-cart-result { margin-top: 12px; padding: 14px; border: 1px solid #cad9c8; border-radius: 11px; background: #f2f6f0; }
.regional-cart-result > strong { display: block; color: var(--ink); font-size: 16px; }
.regional-cart-result > p { margin: 5px 0 0; }
.regional-missing { margin-top: 11px; padding: 11px 12px; border-radius: 9px; background: #fff8dc; color: #655633; font-size: 12px; }
.regional-missing ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 18px; margin: 7px 0 0; padding-left: 18px; }
.regional-products { margin-top: 11px; }
.regional-products summary { color: #365640; font-size: 12px; font-weight: 800; cursor: pointer; }
.regional-products ul { margin: 8px 0 0; padding: 0; list-style: none; }
.regional-products li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #dbe5d8; font-size: 12px; }
.regional-products span { min-width: 0; }
.regional-products small { display: block; overflow: hidden; margin-top: 2px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.regional-cart-open { display: block; width: 100%; margin-top: 12px; text-align: center; }
.regional-cart-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
@media (max-width: 620px) { .regional-missing ul { grid-template-columns: 1fr; } }
.price-card .cart-hint { margin: 8px 0 0; font-size: 11px; line-height: 1.45; }
.price-card details { margin-top: 14px; }
.price-card summary { color: var(--pink-dark); cursor: pointer; font-size: 13px; font-weight: 700; }
.price-lines { margin-top: 10px; border-top: 1px solid var(--line); }
.price-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 12px; }
.price-line span { min-width: 0; }
.price-line small { display: block; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.ad-label { margin: 14px 0 0!important; font-size: 10px!important; }
.pantry-form { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; align-items: end; }
.pantry-form .field { margin: 0; }
.pantry-items { margin-top: 24px; }
.pantry-item { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.pantry-item small { color: var(--muted); }
.chat-messages { min-height: 150px; display: flex; flex-direction: column; gap: 14px; margin: 18px 0; }
.bubble { max-width: 92%; padding: 15px 18px; border-radius: 18px 18px 18px 5px; background: var(--pink-soft); font-size: 14px; white-space: pre-line; }
.bubble.user { align-self: flex-end; border-radius: 18px 18px 5px 18px; background: var(--pink); color: #fff; }
.chat-examples { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-examples button { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--pink-pale); color: var(--pink-dark); font-size: 12px; }
.chat-input-row { display: flex; gap: 12px; align-items: flex-end; }
.chat-input-row textarea { min-height: 58px; height: 60px; }
.chat-recipes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chat-recipe { padding: 14px; border-radius: 14px; background: var(--pink-pale); font-size: 12px; }
.chat-recipe span { display: block; margin-bottom: 7px; font-size: 30px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.feedback-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 14px 0 18px; }
.feedback-scale label { cursor: pointer; }
.feedback-scale input { position: absolute; opacity: 0; pointer-events: none; }
.feedback-scale span { min-height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 800; }
.feedback-scale input:checked + span, .feedback-scale input:focus-visible + span { border-color: var(--pink); background: var(--pink-soft); color: var(--pink-dark); box-shadow: 0 0 0 2px rgba(185,79,120,.11); }
#feedback-form select { width: 100%; margin: 7px 0 12px; }
.feedback-status { min-height: 18px; margin: 8px 0 0; color: var(--pink-dark); font-size: 12px; }
.error { min-height: 20px; margin: 12px 0; color: var(--danger); font-size: 13px; }
.toast { position: fixed; z-index: 100; bottom: 24px; left: 50%; max-width: min(600px, 90vw); padding: 14px 22px; border-radius: 999px; background: var(--plum); color: #fff; font-size: 13px; box-shadow: var(--shadow); transform: translateX(-50%); }
.status-pill { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: var(--pink-soft); color: var(--pink-dark); font-size: 11px; font-weight: 700; }
.narrow { max-width: 800px; margin: 40px auto; padding: 0 24px; }
.narrow:before { content: ""; position: fixed; inset: 0 0 auto; height: 12px; background: linear-gradient(90deg, var(--pink), #eaa5bd, var(--yellow)); }
.narrow h1 { font-size: 38px; line-height: 1.12; letter-spacing: -1.5px; }
.narrow h2 { margin-top: 30px; font-size: 21px; }
.narrow p { color: var(--muted); }
.metrics { width: 100%; border-collapse: collapse; font-size: 13px; }
.metrics th, .metrics td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }

@media (max-width: 1050px) {
  .hero-shell, .hero-content { min-height: 660px; }
  .hero-copy { width: 62%; }
  .hero-copy h1 { font-size: 60px; }
  .hero-sticker { width: 125px; height: 125px; right: 2%; }
  .product-showcase { gap: 42px; }
  .calm-section { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr 270px; }
  .app-nav { margin-left: 28px; gap: 17px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .pilot-strip { padding: 7px 12px; font-size: 10px; }
  .header { min-height: 76px; }
  .header .nav { display: none; }
  .logo { font-size: 23px; }
  .logo-icon { width: 34px; height: 34px; font-size: 17px; }
  .header > .btn { padding: 9px 13px; font-size: 11px; }
  .hero-shell { min-height: 790px; }
  .hero-photo { background-position: 62% center; }
  .hero-shell:before { background: linear-gradient(180deg, rgba(117,64,85,.04) 30%, rgba(94,53,72,.9) 72%); }
  .hero-content { min-height: 790px; align-items: flex-end; }
  .hero-copy { width: 100%; padding: 310px 0 54px; }
  .hero-copy h1 { margin: 18px 0; font-size: clamp(42px, 12vw, 56px); line-height: .98; letter-spacing: -3px; }
  .hero-copy h1 em { letter-spacing: -2px; }
  .hero-description { max-width: 520px; font-size: 15px; line-height: 1.55; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-sticker { top: 26px; right: 16px; bottom: auto; width: 102px; height: 102px; }
  .hero-sticker b { font-size: 25px; }
  .hero-sticker span { font-size: 9px; }
  .ticker > div { justify-content: flex-start; gap: 20px; font-size: 11px; }
  .section { padding: 58px 0; }
  .section h2 { font-size: 37px; letter-spacing: -2px; }
  .section-heading { display: block; }
  .section-sub { font-size: 14px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 250px; }
  .product-showcase { grid-template-columns: 1fr; gap: 38px; }
  .lifestyle-card { min-height: 510px; }
  .demo-section { grid-template-columns: 1fr; gap: 30px; margin: 20px 0 35px; padding: 30px 18px; border-radius: 30px; }
  .demo-copy { padding: 0 10px; }
  .plan-preview { padding: 20px 16px; transform: none; }
  .preview-line { grid-template-columns: 54px 1fr auto; gap: 10px; }
  .food-emoji { width: 52px; height: 52px; font-size: 29px; }
  .calm-grid { grid-template-columns: 1fr; }
  .calm-grid > div { min-height: 200px; }
  .calm-grid b { margin-top: 30px; }
  .pricing-section { grid-template-columns: 1fr; gap: 25px; padding: 28px 20px; border-radius: 30px; }
  .price-card { padding: 23px; }
  .footer { flex-direction: column; gap: 12px; }

  .app-header { padding: 12px 0; }
  .app-header .wrap { flex-wrap: wrap; gap: 10px; }
  .app-header .logo { font-size: 21px; }
  .app-nav { order: 3; width: 100%; justify-content: space-between; margin: 0; gap: 8px; overflow-x: auto; }
  .app-nav button { padding: 9px 0; white-space: nowrap; font-size: 12px; }
  .header-right { margin-left: auto; gap: 7px; }
  .header-right .tag { padding: 4px 8px; font-size: 9px; }
  .header-right .btn { padding: 7px 10px; font-size: 11px; }
  .app-content { padding: 24px 0 45px; }
  .onboarding { display: block; width: 100%; }
  .onboarding-intro { min-height: 330px; margin-bottom: -35px; padding: 25px 22px 65px; border-radius: 27px 27px 0 0; background-position: center 30%; }
  .onboarding-intro h1 { font-size: 34px; }
  .onboarding > .form-card { position: relative; min-height: 0; padding: 24px 20px; }
  .form-card { padding: 24px 20px; }
  .form-card h2 { font-size: 21px; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-grid-three { grid-template-columns: repeat(3, 1fr); }
  .plan-days-control { padding: 17px 15px 14px; }
  .plan-days-summary { display: block; }
  .plan-days-summary output { display: block; font-size: 25px; }
  .plan-days-summary span { display: block; margin-top: 4px; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-head { align-items: flex-start; flex-wrap: wrap; margin-bottom: 20px; }
  .dash-head h1 { font-size: 29px; }
  .dash-head .btn { padding: 10px 14px; font-size: 12px; }
  .meal-card { padding: 18px; }
  .meal-top { gap: 12px; }
  .meal-card h3 { font-size: 17px; }
  .food-photo { width: 56px; height: 56px; flex-basis: 56px; }
  .meal-actions .btn { padding: 9px 12px; font-size: 11px; }
  .meal-actions { flex-wrap: wrap; }
  .pantry-form { grid-template-columns: 1fr 1fr; }
  .pantry-form .field:first-child { grid-column: 1 / -1; }
  .price-comparison { padding: 18px; }
  .price-heading { display: block; }
  .price-heading > p { margin-top: 8px; text-align: left; }
  .price-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .chat-box { padding: 18px; }
  .chat-recipes { grid-template-columns: 1fr; }
  .chat-recipe span { display: inline; margin-right: 10px; }
  .bubble { max-width: 100%; font-size: 13px; }
  .chat-input-row { align-items: stretch; }
  .chat-input-row .btn { padding: 12px; }
}

/* Unified application and service pages */
.app-page { min-height: 100vh; background: #fbfcfa; color: var(--ink); font-weight: 500; }
.app-page .pilot-strip { display: none; }
.app-page .app-header { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 240px; min-height: 100vh; padding: 0; border: 0; border-right: 1px solid var(--line); background: #f5f7f4; backdrop-filter: none; }
.app-page .app-header .wrap { width: 100%; min-height: 100%; height: 100vh; margin: 0; padding: 28px 17px 18px; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; }
.app-page .logo { align-self: flex-start; gap: 0; margin: 0 7px; color: #17231c; font-size: 28px; line-height: 1; font-weight: 850; letter-spacing: -1.5px; }
.app-page .brand-dot { color: #86a18d; }
.app-page .logo-icon { display: none; }
.sidebar-caption { margin: 34px 10px 8px; color: #8b958d; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.app-page .app-nav { width: 100%; margin: 0; display: flex; flex-direction: column; gap: 3px; }
.app-page .app-nav button { width: 100%; padding: 12px 13px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 8px; background: transparent; color: #38473d; font-size: 14px; font-weight: 700; text-align: left; box-shadow: none; }
.app-page .app-nav button span { width: 20px; color: #87948a; font-size: 17px; text-align: center; }
.app-page .app-nav button:hover { background: #edf1ec; }
.app-page .app-nav button.active { background: #e7eee6; color: #304e39; box-shadow: none; }
.app-page .app-nav button.active span { color: #4d7156; }
.app-page .header-right { width: 100%; margin: auto 0 0; padding: 16px 7px 0; display: grid; grid-template-columns: 1fr; gap: 9px; border-top: 1px solid var(--line); }
.app-page .header-right .tag { width: 100%; justify-content: flex-start; padding: 9px 11px; border: 0; background: #e9eee7; color: #4c6252; }
.app-page .header-right .btn { width: 100%; }
.app-page .app-content.wrap { width: auto; max-width: none; min-height: 100vh; margin: 0 0 0 240px; padding: 48px clamp(28px,4vw,68px) 70px; }
.app-page #dashboard { width: min(1280px,100%); margin: 0 auto; }
.app-page .onboarding { width: min(1120px,100%); margin: 0 auto; grid-template-columns: .72fr 1.25fr; gap: 18px; }
.app-page .onboarding-direct { display: block; width: min(960px,100%); }
.app-page .onboarding-direct > .form-card { min-height: 0; }
.app-page .onboarding-intro { min-height: 610px; justify-content: center; padding: 44px; border: 1px solid #dce6da; border-radius: 20px; background: #edf3ea; color: var(--ink); box-shadow: none; }
.app-page .onboarding-intro .eyebrow { color: #58715d; }
.app-page .onboarding-intro h1 { max-width: 420px; margin: 10px 0 18px; color: #16231c; font-size: clamp(34px,4vw,52px); line-height: 1.04; letter-spacing: -2px; }
.app-page .onboarding-intro p { max-width: 410px; color: #5d6b61; font-size: 15px; line-height: 1.6; }
.app-page .form-card,
.app-page .shopping-list,
.app-page .chat-box,
.app-page .price-comparison,
.app-page .side-card { border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: none; }
.app-page .form-card { padding: 30px; }
.app-page .onboarding > .form-card { min-height: 610px; }
.app-page .steps i { background: #edf0ec; }
.app-page .steps i.active { background: #759277; }
.app-page .form-card h2 { color: #16231c; font-size: 26px; }
.app-page .form-card p { color: #657269; }
.app-page .text-input,
.app-page select,
.app-page textarea { border-color: #dbe3d8; border-radius: 9px; background: #fff; color: var(--ink); }
.app-page .check input,
.app-page .choice input,
.app-page .chip input,
.app-page .shopping-item input,
.app-page .retailer-location-match input { accent-color: #4d7156; }
.app-page .choice { border-color: #dfe5dc; border-radius: 11px; background: #fff; font-weight: 650; }
.app-page .choice:has(input:checked) { border-color: #769175; background: #edf3ea; }
.app-page .chip { border-radius: 8px; background: #fff; font-weight: 650; }
.app-page .chip:has(input:checked) { border-color: #799477; background: #edf3ea; }
.app-page .notice { border-color: #dce5da; border-radius: 11px; background: #f2f6f0; color: #5c6a60; }
.app-page .notice.warning { border-color: #e9d9a4; background: #fff9df; color: #655633; }
.app-page .dash-head { margin-bottom: 30px; }
.app-page .dash-head h1 { margin: 4px 0 5px; color: #13231a; font-size: clamp(34px,4vw,48px); line-height: 1.08; letter-spacing: -1.8px; }
.app-page .dash-head p { color: #68756c; font-size: 15px; }
.app-page .eyebrow { color: #667c69; }
.app-page .dash-grid { grid-template-columns: minmax(0,1fr) 300px; gap: 22px; }
.app-page #tab-today { padding-bottom: 92px; }
.app-page .plan-day { margin-bottom: 34px; scroll-margin-top: 24px; }
.app-page .plan-bottom-block { position: fixed; z-index: 18; left: calc(50% + 120px); bottom: 18px; width: min(720px,calc(100vw - 288px)); margin: 0; padding: 10px; transform: translateX(-50%); border: 1px solid rgba(205,216,203,.92); border-radius: 17px; background: rgba(251,252,250,.94); box-shadow: 0 16px 44px rgba(27,48,34,.17); backdrop-filter: blur(14px); }
.app-page .plan-shopping-action { display: flex; justify-content: center; gap: 10px; margin: 0; }
.app-page .plan-shopping-action .btn { min-width: 0; flex: 1 1 0; }
.app-page .share-panel { max-height: calc(100vh - 110px); margin: 0 0 10px; padding: 19px; overflow-y: auto; border: 1px solid #dfe5dc; border-radius: 13px; background: #fff; }
.app-page .share-panel-head { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 14px; }
.app-page .share-panel-head .eyebrow { margin-bottom: 2px; }
.app-page .share-panel-head h3 { margin: 0; font-size: 20px; }
.app-page .share-panel-head p { max-width: 390px; margin: 0; color: #657269; font-size: 12px; line-height: 1.45; text-align: right; }
.app-page .share-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.app-page .share-grid a { display: flex; align-items: center; gap: 10px; min-height: 47px; padding: 9px 12px; border: 1px solid #dfe5dc; border-radius: 10px; background: #fff; font-size: 14px; font-weight: 750; }
.app-page .share-grid a:hover { border-color: #91aa95; background: #f3f7f1; }
.app-page .share-grid a[aria-disabled="true"] { color: #869088; pointer-events: none; }
.app-page .share-mark { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 26px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 900; }
.app-page .share-mark.telegram { background: #279ed5; font-size: 16px; }
.app-page .share-mark.whatsapp { background: #22bd66; font-size: 13px; }
.app-page .share-mark.vk { background: #2787f5; }
.app-page .share-mark.max { background: #267ee8; }
.app-page .share-status { min-height: 18px; margin: 10px 1px 0; color: #657269; font-size: 12px; }
.app-page .plan-day + .plan-day { padding-top: 4px; }
.app-page .plan-day-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 2px 14px; padding-bottom: 12px; border-bottom: 1px solid #dfe5dc; }
.app-page .day-kicker { display: block; margin-bottom: 3px; color: #4d7156; font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.app-page .plan-day-heading h2 { margin: 0; color: #17231c; font-size: 24px; line-height: 1.2; text-transform: capitalize; }
.app-page .day-meal-count { flex: 0 0 auto; color: #657269; font-size: 13px; font-weight: 700; }
.app-page .missing-day { margin-bottom: 0; }
.app-page .meal-card { margin-bottom: 12px; padding: 22px; border-color: #dfe5dc; border-radius: 17px; box-shadow: none; }
.app-page .meal-card.meal-cooked { border-color: #c9d9c5; background: #f5f8f3; }
.app-page .meal-label { color: #5c765f; }
.app-page .meal-card h3 { color: #17231c; font-size: 20px; }
.app-page .ingredient { background: #edf3ea; color: #435548; }
.app-page .meal-actions .btn { border-radius: 8px; }
.app-page .side-card { margin-bottom: 13px; padding: 21px; }
.app-page .side-card.green { border-color: #4d7156; background: #4d7156; color: #fff; }
.app-page .side-card.green p { color: #e4ece4; }
.app-page .side-card.green .btn { background: #e7efe2; color: #213328; }
.app-page .side-card p { color: #657269; }
.app-page .day-number { color: #203128; font-size: 27px; }
.app-page .side-label { color: #66756a; font-weight: 750; }
.app-page .side-card.green .side-label { color: #e6eee5; }
.app-page .shopping-list,
.app-page .chat-box,
.app-page .price-comparison { padding: 25px; }
.app-page .shopping-item { border-color: #e3e8e1; }
.app-page .shopping-mark,
.app-page .price-card summary { color: #43634b; }
.app-page .price-heading { align-items: start; }
.app-page .price-card { border-color: #dfe5dc; border-radius: 13px; background: #fff; }
.app-page .price-card.best { border-color: #779177; box-shadow: 0 0 0 2px rgba(77,113,86,.08); }
.app-page .best-badge,
.app-page .status-pill,
.app-page .chat-examples button,
.app-page .chat-recipe,
.app-page .bubble { background: #edf3ea; color: #365140; }
.app-page .bubble.user { background: #4d7156; color: #fff; }
.app-page .pantry-item { border-color: #e2e7e0; }
.app-page .feedback-scale input:checked + span,
.app-page .feedback-scale input:focus-visible + span { border-color: #6d8a70; background: #edf3ea; color: #365640; box-shadow: 0 0 0 2px rgba(77,113,86,.09); }
.app-page .feedback-status { color: #365640; }
.app-page .toast { background: #293d31; }
@media (max-width: 720px) {
  .app-page #tab-today { padding-bottom: 96px; }
  .app-page .plan-bottom-block { right: 12px; bottom: 10px; left: 12px; width: auto; padding: 8px; transform: none; border-radius: 14px; }
  .app-page .plan-shopping-action { gap: 7px; }
  .app-page .plan-shopping-action .btn { width: 50%; min-height: 48px; padding: 9px 7px; font-size: 12px; line-height: 1.2; }
  .app-page .share-panel { padding: 14px; }
  .app-page .share-panel-head { display: block; }
  .app-page .share-panel-head p { margin-top: 5px; text-align: left; }
}

.utility-page { min-height: 100vh; background: #fbfcfa; color: var(--ink); font-weight: 500; }
.utility-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; width: 240px; padding: 29px 17px; border-right: 1px solid var(--line); background: #f5f7f4; }
.utility-brand { display: inline-block; margin: 0 7px 35px; color: #17231c; font-size: 28px; line-height: 1; font-weight: 850; letter-spacing: -1.5px; }
.utility-brand span { color: #86a18d; }
.utility-sidebar nav { display: grid; gap: 4px; }
.utility-sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 12px 13px; border-radius: 8px; color: #3d4d42; font-size: 13px; font-weight: 700; }
.utility-sidebar nav a span { width: 19px; color: #87948a; font-size: 16px; text-align: center; }
.utility-sidebar nav a:hover { background: #edf1ec; }
.utility-sidebar nav a.active { background: #e7eee6; color: #304e39; }
.utility-sidebar > p { margin: 36px 11px 0; color: #7b877e; font-size: 12px; line-height: 1.6; }
.utility-workspace { min-height: 100vh; margin-left: 240px; }
.utility-topbar { height: 58px; padding: 0 31px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ecefeb; color: #647168; font-size: 12px; font-weight: 700; }
.utility-topbar a { padding: 6px 9px; border: 1px solid #dfe5dc; border-radius: 7px; background: #fff; }
.utility-page .narrow { max-width: 940px; margin: 0 auto; padding: 62px 42px 80px; }
.utility-page .narrow:before { display: none; }
.utility-page .narrow > .eyebrow { margin-bottom: 10px; color: #647b67; }
.utility-page .narrow h1 { max-width: 680px; margin: 0 0 28px; color: #14231a; font-size: clamp(38px,5vw,58px); line-height: 1.05; letter-spacing: -2.2px; }
.utility-page .policy-section { margin-top: 13px; padding: 24px 25px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.utility-page .policy-section h2 { margin: 0 0 8px; color: #223129; font-size: 19px; }
.utility-page .policy-section p { margin: 0; color: #647168; font-size: 14px; line-height: 1.75; }
.utility-page .policy-section p + p { margin-top: 10px; }
.utility-page .policy-section ul { margin: 10px 0 0; padding-left: 21px; color: #647168; font-size: 14px; line-height: 1.75; }
.utility-page .policy-section a { color: #365a40; text-decoration: underline; text-underline-offset: 2px; }
.utility-page .document-meta { margin: -15px 0 25px; color: #7b877e; font-size: 13px; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
.legal-links a { white-space: nowrap; }
.utility-page .notice { margin-bottom: 25px; border-radius: 12px; }
.utility-page .admin-panel { margin-top: 28px; }
.utility-page .admin-panel label { font-size: 13px; font-weight: 750; }

@media (max-width: 1050px) {
  .app-page .app-header,
  .utility-sidebar { width: 210px; }
  .guest-save-banner { margin-left: 210px; padding-right: 28px; padding-left: 28px; grid-template-columns: auto minmax(0,1fr) auto; }
  .guest-save-actions { grid-column: 2; }
  .guest-save-close { grid-column: 3; grid-row: 1; }
  .app-page .app-content.wrap,
  .utility-workspace { margin-left: 210px; }
  .app-page .app-content.wrap { padding-right: 28px; padding-left: 28px; }
  .app-page .dash-grid { grid-template-columns: minmax(0,1fr) 270px; }
  .app-page .plan-bottom-block { left: calc(50% + 105px); width: min(720px,calc(100vw - 258px)); }
}

@media (max-width: 760px) {
  .auth-modal { align-items: end; padding: 12px; }
  .auth-dialog { width: 100%; max-height: calc(100vh - 24px); border-radius: 22px; }
  .auth-header { padding: 20px 19px 16px; }
  .auth-header h2 { font-size: 23px; }
  .auth-tabs { margin: 16px 18px 0; }
  .auth-panel { padding: 17px 18px 21px; }
  .auth-intro { font-size: 12px; }
  .app-page .app-header { position: sticky; inset: 0 auto auto 0; width: 100%; min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .app-page .plan-bottom-block { right: 12px; bottom: 10px; left: 12px; width: auto; transform: none; }
  .app-page .app-header .wrap { width: 100%; height: auto; min-height: 62px; padding: 12px 16px; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
  .app-page .logo { align-self: center; margin: 0; font-size: 24px; }
  .sidebar-caption { display: none; }
  .app-page .header-right { width: auto; margin: 0; padding: 0; display: flex; align-items: center; border: 0; }
  .app-page .header-right .tag { display: none; }
  .app-page .header-right .btn { width: auto; }
  .app-page .account-menu { width: auto; }
  .app-page .account-menu summary { width: auto; padding: 5px; }
  .app-page .account-summary-copy, .app-page .account-menu summary > span:last-child { display: none; }
  .app-page .account-popover { position: fixed; top: 68px; right: 12px; bottom: auto; left: auto; width: min(285px,calc(100vw - 24px)); }
  .guest-save-banner { margin-left: 0; padding: 13px 16px; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; }
  .guest-save-icon { width: 32px; height: 32px; }
  .guest-save-actions { grid-column: 1 / -1; }
  .guest-save-actions .btn { flex: 1; }
  .guest-save-close { grid-column: 3; grid-row: 1; }
  .app-page .app-nav { grid-column: 1 / -1; order: initial; width: 100%; padding-top: 7px; flex-direction: row; justify-content: flex-start; gap: 6px; overflow-x: auto; border-top: 1px solid var(--line); }
  .app-page .app-nav button { width: auto; flex: 0 0 auto; padding: 9px 11px; white-space: nowrap; font-size: 12px; }
  .app-page .app-nav button span { display: none; }
  .app-page .app-content.wrap { width: 100%; margin: 0; padding: 25px 16px 45px; }
  .app-page .onboarding { display: block; }
  .app-page .onboarding-intro { min-height: auto; margin: 0 0 12px; padding: 27px 23px; border-radius: 16px; }
  .app-page .onboarding-intro h1 { font-size: 34px; }
  .app-page .onboarding > .form-card { min-height: 0; padding: 23px 19px; }
  .app-page .dash-head h1 { font-size: 32px; }
  .app-page .plan-day { margin-bottom: 28px; }
  .app-page .plan-day-heading { align-items: flex-start; margin-bottom: 11px; }
  .app-page .plan-day-heading h2 { font-size: 20px; }
  .app-page .day-meal-count { padding-top: 20px; font-size: 12px; }
  .app-page .dash-grid { grid-template-columns: 1fr; }
  .app-page .side-cards { display: grid; grid-template-columns: 1fr; }
  .cabinet-stats { grid-template-columns: 1fr; }
  .cabinet-session-bar { align-items: flex-start; flex-direction: column; }
  .cabinet-session-bar .btn { width: 100%; }
  .cabinet-section { padding: 16px; }
  .cabinet-section-head { align-items: flex-start; }
  .cabinet-menu-item { display: block; }
  .cabinet-menu-item small { display: block; margin-top: 7px; }
  .app-page .price-heading > p { text-align: left; }
  .utility-sidebar { position: static; width: 100%; padding: 18px 16px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .utility-brand { margin: 0 0 17px; font-size: 24px; }
  .utility-sidebar nav { display: flex; gap: 6px; overflow-x: auto; }
  .utility-sidebar nav a { flex: 0 0 auto; padding: 9px 10px; font-size: 11px; white-space: nowrap; }
  .utility-sidebar nav a span { display: none; }
  .utility-sidebar > p { display: none; }
  .utility-workspace { margin-left: 0; }
  .utility-topbar { height: 50px; padding: 0 16px; }
  .utility-page .narrow { padding: 35px 17px 55px; }
  .utility-page .narrow h1 { font-size: 36px; }
  .utility-page .policy-section { padding: 20px 18px; }
}

/* Tariffs */
.premium-cta { width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 11px; border: 1px solid #b44ee8; border-radius: 7px; background: linear-gradient(100deg,#64228f,#9b35d3 55%,#5a1e82); color: #ffeaff; font-size: 12px; font-weight: 800; box-shadow: 0 0 18px rgba(166,54,220,.34), inset 0 0 14px rgba(255,255,255,.12); }
.premium-cta:hover { filter: brightness(1.12); }
.premium-cta.subscribed { border-color: #8ba68f; background: #e7eee6; color: #304e39; box-shadow: none; }
.pricing-modal { position: fixed; z-index: 320; inset: 0; display: grid; place-items: center; padding: 24px; }
.pricing-backdrop { position: absolute; inset: 0; background: rgba(13,23,17,.72); backdrop-filter: blur(6px); }
.pricing-dialog { position: relative; width: min(1040px,100%); max-height: calc(100vh - 48px); overflow: auto; padding: 30px; border: 1px solid #d7dfd4; border-radius: 24px; background: #fbfcfa; box-shadow: 0 28px 90px rgba(16,30,20,.3); }
.pricing-dialog:focus { outline: none; }
.pricing-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.pricing-dialog h2 { margin: 4px 0 7px; font-size: 31px; line-height: 1.1; letter-spacing: -1px; }
.pricing-dialog header p { max-width: 680px; margin: 0; color: var(--muted); font-size: 13px; }
.tier-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 25px; }
.tier-card { position: relative; display: flex; min-height: 430px; flex-direction: column; padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.tier-card.featured { border: 2px solid #7750c8; background: linear-gradient(180deg,#fbf8ff,#fff 42%); box-shadow: 0 18px 40px rgba(91,48,166,.14); }
.tier-card.family { background: linear-gradient(180deg,#f3f7f1,#fff 42%); }
.tier-card.current { box-shadow: inset 0 0 0 2px #4d7156; }
.tier-name { color: #53655a; font-size: 13px; font-weight: 850; letter-spacing: .7px; text-transform: uppercase; }
.tier-price { margin: 10px 0 2px; font-size: 34px; font-weight: 900; letter-spacing: -1.5px; }
.tier-price small { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.tier-card p { min-height: 48px; margin: 7px 0 13px; color: var(--muted); font-size: 13px; }
.tier-card ul { margin: 0 0 22px; padding: 0; list-style: none; }
.tier-card li { position: relative; margin: 10px 0; padding-left: 24px; font-size: 13px; }
.tier-card li:before { content: '✓'; position: absolute; left: 0; color: #4d7156; font-weight: 900; }
.tier-card .btn { margin-top: auto; }
.tier-badge { position: absolute; top: -13px; right: 18px; padding: 5px 9px; border-radius: 999px; background: #7750c8; color: #fff; font-size: 10px; font-weight: 850; }
.pricing-status { min-height: 24px; margin: 16px 0 0; color: #7750c8; font-size: 13px; font-weight: 750; text-align: center; }
.pricing-note { margin: 4px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
body.pricing-open { overflow: hidden; }
.saved-profile-form { display: grid; grid-template-columns: minmax(180px,1fr) auto; gap: 10px; margin: 15px 0; }
.saved-profiles-list { display: grid; gap: 8px; }
.saved-profile-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfa; }
.saved-profile-row > span { display: flex; align-items: center; gap: 7px; }
.profile-delete { width: 34px; height: 34px; border: 0; border-radius: 8px; background: #f5ecec; color: var(--danger); font-size: 20px; }
@media(max-width:760px){.premium-cta{width:auto;padding:7px 9px;font-size:10px}.premium-cta span:first-child{display:none}.pricing-modal{align-items:end;padding:10px}.pricing-dialog{max-height:calc(100vh - 20px);padding:21px 15px;border-radius:20px}.pricing-dialog h2{font-size:24px}.tier-grid{grid-template-columns:1fr}.tier-card{min-height:0}.tier-card p{min-height:0}}
@media(max-width:520px){.saved-profile-form{grid-template-columns:1fr}.saved-profile-form .btn{width:100%}.saved-profile-row{align-items:flex-start;flex-direction:column}.saved-profile-row>span{width:100%}.saved-profile-row .btn{flex:1}}

@media print {
  .app-header, .pilot-strip, .guest-save-banner, .side-cards, .meal-actions, .dash-head .btn, .footer, .app-nav, .notice, .toast, .auth-modal, .pricing-modal { display: none !important; }
  .wrap { width: 100%; }
  .dash-grid { display: block; }
  .meal-detail { display: block !important; }
  .meal-card { break-inside: avoid; }
  .shopping-list { border: 0; }
  .btn { display: none; }
}

/* Pantry editing directly in the shopping list. */
.app-page .shopping-item { display:grid; grid-template-columns:minmax(145px,1fr) minmax(120px,.7fr) auto auto; gap:14px; cursor:default; padding:18px 0; }
.app-page .shopping-title { display:flex; align-items:center; gap:10px; min-width:0; cursor:pointer; }
.app-page .shopping-title strong { overflow-wrap:anywhere; font-weight:650; }
.app-page .shopping-amount { display:grid; gap:5px; font-size:13px; }
.app-page .shopping-stock,.app-page .shopping-stock>label { display:flex; align-items:center; gap:8px; font-size:12px; font-weight:600; white-space:nowrap; }
.app-page .stock-stepper { display:flex; border:1px solid #ced9cc; border-radius:8px; overflow:hidden; height:38px; }
.app-page .stock-stepper button { width:32px; border:0; background:#edf3ea; color:#294d34; font-size:20px; cursor:pointer; }
.app-page .stock-stepper .stock-value { width:62px; height:36px; border:0; border-radius:0; text-align:center; font:inherit; color:var(--ink); background:#fff; }
.app-page .stock-stepper input:focus-visible,.app-page .stock-stepper button:focus-visible { outline:2px solid #4d7156; outline-offset:-2px; }
.app-page .shopping-all { display:flex; align-items:center; gap:7px; white-space:nowrap; font-size:12px; cursor:pointer; }
.app-page .shopping-item span { flex:initial; }
.app-page .shopping-item:has(input:checked) span { text-decoration:none; color:inherit; }
.app-page .shopping-item.covered .shopping-title strong,.app-page .shopping-item.purchased .shopping-title strong { text-decoration:line-through; color:var(--muted); }
.app-page .stock-error { grid-column:1/-1; color:#ac324b; }
.app-page .stock-error:empty { display:none; }
@media(max-width:1250px){.app-page .shopping-item{grid-template-columns:minmax(150px,1fr) auto}.app-page .shopping-stock{grid-column:1}.app-page .shopping-all{justify-self:end}.app-page .shopping-amount{text-align:right}}
@media(max-width:480px){.app-page .shopping-item{gap:12px 8px}.app-page .shopping-title{font-size:13px}.app-page .shopping-stock>label{gap:5px}.app-page .stock-stepper .stock-value{width:54px}.app-page .shopping-stock{gap:4px}}
@media print{.app-page .shopping-stock,.app-page .shopping-all,.app-page .stock-error{display:none}.app-page .shopping-item.covered{display:none}}

.generation-progress{position:fixed;inset:0;z-index:2000;background:rgba(249,251,247,.98);display:flex;align-items:center;justify-content:center;padding:32px;text-align:center;font-size:clamp(20px,3vw,28px);font-weight:600;color:#294b36}.generation-progress[hidden]{display:none}

.retail-alternative { display:grid; gap:7px; margin:7px 0 12px; }
.retail-alternative small { display:block; line-height:1.45; }
.retail-alternative-link { text-decoration:underline; font-weight:600; }
.regional-missing:has(.retail-alternative) ul { grid-template-columns:1fr; }
.shopping-source-panel,.shopping-preparations{padding:16px;border:1px solid #d4dfd3;border-radius:12px;margin:12px 0;width:100%;box-sizing:border-box}
.shopping-source-panel summary{cursor:pointer;font-weight:700}.shopping-source{border-top:1px solid #d4dfd3;padding:16px 0}.shopping-source label{display:block;margin:12px 0}.shopping-source input,.shopping-source select{display:block;width:100%;max-width:420px;padding:10px;box-sizing:border-box}.shopping-source p{overflow-wrap:anywhere}

/* Shopper actions and optional diagnostic details. */
body:not(.developer-mode) .developer-only { display:none !important; }
.shopping-actions { position:sticky; bottom:12px; z-index:20; display:flex; gap:10px; padding:10px; background:#fff; border:1px solid #dfe5dc; border-radius:18px; box-shadow:0 6px 25px #172e2420; margin-top:24px; }
.shopping-actions .btn { flex:1; }
.developer-toggle { display:flex; gap:10px; align-items:center; padding:20px; }
.basket-incomplete { padding:12px; border-radius:10px; background:#fff7dd; }
@media(max-width:600px){.shopping-actions {flex-wrap:wrap;bottom:4px}.shopping-actions .btn {flex:1 1 42%;padding:12px 8px;font-size:12px}.shopping-actions #shopping-share {flex-basis:100%}}

.app-page .plan-day { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start; }
.app-page .plan-day-heading,.app-page .missing-day {grid-column:1/-1;}
.app-page .meal-card {min-width:0;padding:14px;overflow:hidden;}
.app-page .meal-top {display:flex;flex-direction:column;align-items:stretch;gap:14px;}
.app-page .meal-top .food-photo {width:100%;height:185px;flex-basis:auto;border-radius:12px;}
.app-page .meal-main h3 {font-size:18px;line-height:1.35;letter-spacing:0;}
.app-page .meal-actions {display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start;}
.app-page .meal-actions .btn {white-space:normal;font-size:12px;padding:9px;}
.meal-ingredients-preview {background:#f5f7f3;border:1px solid #e2e8df;border-radius:10px;padding:12px;margin:16px 0;font-size:13px;}
.meal-ingredients-preview ul {padding-left:18px;margin:8px 0 0;max-height:180px;overflow-y:auto;}
.meal-ingredients-preview li {margin:5px 0;}
@media(max-width:1000px){.app-page .plan-day {grid-template-columns:1fr;}.app-page .meal-top .food-photo {height:230px;}}
.app-page .dash-grid:has(#tab-today:not(.hidden)) {grid-template-columns:minmax(0,1fr);}
.app-page .dash-grid:has(#tab-today:not(.hidden)) > .side-cards {display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;}
.app-page #tab-shopping {padding-bottom:110px;}
.app-page .shopping-actions {position:fixed;left:calc(50% + 120px);transform:translateX(-50%);bottom:18px;width:min(900px,calc(100vw - 288px));box-sizing:border-box;margin:0;}
@media(max-width:760px){.app-page .shopping-actions {left:50%;width:calc(100vw - 24px);bottom:8px;}.app-page #tab-shopping {padding-bottom:145px;}}
@media print {.shopping-actions,.developer-toggle {display:none !important;}}

.order-city-dialog { max-width: min(480px, 90vw); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.order-city-dialog select { display: block; width:100%; margin: 20px 0; }
.order-city-dialog::backdrop { background: #0006; }
