@layer reset, base, layout, components, pages, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, h4, p, ul, ol { margin: 0; }
  button, input, textarea, select { font: inherit; }
  button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
  button { cursor: pointer; }
  img { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  button { color: inherit; }
  button:disabled { cursor: default; opacity: .5; }
  input, select, textarea { min-width: 0; }
  [hidden] { display: none !important; }
}
@layer base {
  :root {
    --cream: #f7f7ee; --surface: #fffef8; --teal: #17706e; --teal-deep: #105856;
    --lime: #b6eb7a; --orange: #fb7813; --ink: #173d3b; --muted: #5c6d63; --on-lime: #40573a; --field-line: #7d8c7b;
    --line: #dfe5d9; --teal-wash: #e9f0e8; --orange-wash: #fff0dd;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color-scheme: light;
  }
  html { scroll-behavior: smooth; }
  body { background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
  body::before { content: ''; position: fixed; inset: 0; background: url('/assets/paper.svg'); opacity: .15; pointer-events: none; z-index: -1; }
  :focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
  ::selection { background: var(--lime); color: var(--ink); }
  button { touch-action: manipulation; }
  .icon { width: 20px; height: 20px; stroke-width: 1.65; flex-shrink: 0; }
  h1 { font: 500 clamp(42px, 4.25vw, 65px)/1.05 var(--serif); letter-spacing: -2px; }
  h1 em { font-style: normal; }
  h2, h3, h4 { font-weight: 550; }
  .eyebrow { font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: 1.6px; color: var(--muted); }
  .muted { color: var(--muted) !important; }
  .small { font-size: 12px; }
  .boot-screen { min-height: 100dvh; display: flex; flex-direction: column; gap: 24px; align-items: center; justify-content: center; text-align: center; padding: 30px; }
  .boot-screen p { color: var(--muted); font-size: 13px; max-width: 400px; }
  .spin { animation: spin 1.2s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .flex-spacer { flex: 1; }
  .section-footnote { color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 20px; }
}
@layer layout {
  .app-shell { min-height: 100dvh; }
  .sidebar { width: 234px; position: fixed; top: 0; bottom: 0; left: 0; background: #f2f3e9; border-right: 1px solid var(--line); padding: 38px 22px 22px; display: flex; flex-direction: column; z-index: 20; }
  .sidebar::before { content: ''; position: absolute; inset: 0; background: url('/assets/paper.svg'); opacity: .18; pointer-events: none; }
  .sidebar > * { position: relative; }
  .workspace { margin-left: 234px; }
  .content { max-width: 1190px; margin: 0 auto; padding: 38px 48px 55px; }
  .topbar { height: 88px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 48px; border-bottom: 1px solid #dfe5d980; }
  .topbar-right { display: flex; gap: 18px; align-items: center; }
  .breadcrumb { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
  .breadcrumb > .icon { color: var(--teal); width: 18px; }
  .breadcrumb span:last-child { color: var(--ink); }
  .skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--teal); color: var(--surface); font-weight: 600; transform: translateY(-200%); }
  .skip-link:focus { transform: none; }
  .content:focus { outline: none; }
  .breadcrumb-dot { color: #a6b1a3; }
  .mobile-brand, .bottom-nav { display: none; }
  .sidebar-bottom { margin-top: auto; }
  .page-footer { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: var(--muted); padding: 0 48px 26px; max-width: 1190px; margin: auto; }
  .page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
  .page-heading .eyebrow { margin-bottom: 15px; }
  .page-heading p { color: var(--muted); font-size: 13px; margin-top: 18px; max-width: 460px; }
  .today-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr); gap: 28px; align-items: start; }
  .today-primary, .today-rail { min-width: 0; }
  .today-rail { padding-top: 0; }
}
@layer components {
  .wordmark { font-family: var(--serif); font-size: 43px; font-weight: 600; line-height: 1; letter-spacing: -0.5px; color: var(--teal-deep); }
  .wordmark span { color: var(--orange); }
  .brand-caption { font-size: 11px; letter-spacing: .25px; color: var(--muted); margin: 10px 0 42px 2px; }
  .desktop-nav { display: grid; gap: 8px; }
  .nav-item { display: flex; align-items: center; width: 100%; gap: 13px; border: 0; background: transparent; padding: 14px 16px; border-radius: 12px; font-weight: 500; text-align: left; color: var(--muted); transition: background .2s, color .2s; }
  .nav-item:hover { background: #e7ecdf; color: var(--ink); }
  .nav-item.active { color: var(--teal-deep); background: var(--lime); box-shadow: 0 3px 10px #75864c0b, inset 0 1px #ffffff70; }
  .nav-count { margin-left: auto; display: grid; place-items: center; min-width: 23px; height: 23px; border-radius: 7px; background: #ffffff68; font-size: 10px; }
  .side-note { padding: 22px 16px; margin-bottom: 14px; border-radius: 16px; border: 1px solid #d9e1d0; background: linear-gradient(130deg, #e9eddf, #f5f5eb); }
  .side-note .icon { width: 27px; height: 27px; color: var(--teal); margin-bottom: 10px; }
  .side-note p { font-family: var(--serif); font-size: 20px; line-height: 1.25; }
  .profile-link { border: 0; background: none; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 0; font-size: 12px; }
  .profile-link > span:nth-child(2) { flex: 1; }
  .profile-link small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
  .profile-link > .icon { width: 15px; }
  .local-note { color: var(--muted); font-size: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
  .avatar { border: 1px solid #d0dfc9; border-radius: 50%; width: 42px; height: 42px; min-height: 42px; background: #dfebd3; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); font-size: 12px; letter-spacing: -.5px; flex-shrink: 0; font-weight: 550; }
  .avatar.small { width: 35px; height: 35px; min-height: 35px; font-size: 11px; }
  .guest-chip, .local-chip { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
  .guest-chip .icon, .local-chip .icon { width: 14px; height: 14px; }
  .btn { border: 1px solid var(--line); padding: 13px 18px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 10px; font-size: 12px; font-weight: 550; white-space: normal; transition: transform .15s, box-shadow .15s, background .15s; }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0); }
  .btn-primary { color: var(--cream); background: var(--teal); border-color: var(--teal); box-shadow: 0 4px 10px #10585612, inset 0 1px #ffffff18; }
  .btn-primary:hover { background: var(--teal-deep); box-shadow: 0 6px 16px #10585622; }
  .btn-secondary { background: var(--surface); }
  .btn-full { width: 100%; }
  .btn-full > .icon:last-child { margin-left: auto; }
  .btn .icon { width: 18px; height: 18px; }
  .icon-button { padding: 8px; min-width: 38px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: none; }
  .icon-button:hover { background: #17706e0c; }
  .text-link { background: transparent; border: 0; padding: 6px 0; font-size: 12px; color: var(--teal); font-weight: 550; display: inline-flex; align-items: center; justify-content: flex-start; gap: 7px; }
  .text-link .icon { width: 16px; height: 16px; }
  .text-link:hover { color: var(--teal-deep); }
  .row-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
  .tag { display: inline-flex; gap: 5px; align-items: center; font-size: 10px; padding: 5px 9px; border-radius: 20px; background: #f0f1e6; color: var(--muted); font-weight: 550; white-space: nowrap; }
  .tag .icon { width: 12px; height: 12px; }
  .tag-orange { background: var(--orange-wash); color: #a14b0a; }
  .tag-green { background: #e2f0d3; color: #396147; }
  .section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
  .section-title h2 { font-size: 15px; letter-spacing: -.2px; }
  .section-title > span { font-size: 10px; color: var(--muted); }
  .day-strip { display: flex; gap: 5px; justify-content: space-between; }
  .day-strip button { background: transparent; border: 0; border-radius: 13px; min-width: 41px; padding: 9px 6px; position: relative; display: flex; align-items: center; flex-direction: column; gap: 5px; color: var(--muted); }
  .day-strip button > span { font-size: 11px; }
  .day-strip button strong { font-size: 15px; font-weight: 550; }
  .day-strip button:hover { background: #e9ede1; }
  .day-strip button.active { background: var(--teal); color: var(--cream); box-shadow: 0 4px 9px #10585610; }
  .day-strip button > i { position: absolute; width: 3px; height: 3px; border-radius: 50%; bottom: 4px; background: var(--orange); }
  .heading-calendar { width: 323px; padding-top: 10px; }
  .heading-calendar > .eyebrow { display: block; text-align: right; margin: 0 2px 16px; }
  .empty-state { padding: 50px 28px; text-align: center; border: 1px dashed #c9d7c8; border-radius: 20px; }
  .empty-state > .icon { width: 34px; height: 34px; color: var(--teal); margin: auto auto 16px; }
  .empty-state h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 12px; }
  .empty-state p { color: var(--muted); font-size: 13px; max-width: 350px; margin: auto auto 16px; }
  .search-field { display: flex; gap: 10px; align-items: center; min-width: 210px; padding: 11px 14px; border: 1px solid var(--field-line); background: #fffef8a1; border-radius: 10px; }
  .search-field .icon { width: 17px; color: var(--muted); }
  .search-field input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 12px; color: var(--ink); }
  .search-field:focus-within { border-color: var(--teal); box-shadow: 0 0 0 2px #17706e14; }
  .filter-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 20px; }
  .filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
  .filter-pill { border: 1px solid transparent; background: transparent; font-size: 11px; border-radius: 30px; padding: 10px 14px; color: var(--muted); }
  .filter-pill.active { background: var(--teal); color: var(--cream); }
  .filter-pill:not(.active):hover { background: #e5ebdf; }
}
@layer pages {
  .dinner-card { border-radius: 24px; overflow: hidden; border: 1px solid #abd970; box-shadow: 0 13px 27px #5c723519, 0 2px 4px #3e502409; }
  .dinner-photo { height: 290px; position: relative; background: #d8ddc9; }
  .dinner-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 57%; }
  .dinner-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 58%, #14291d65); pointer-events: none; }
  .photo-labels { display: flex; justify-content: space-between; gap: 12px; position: absolute; top: 18px; left: 20px; right: 20px; z-index: 1; }
  .photo-labels > span { font-size: 10px; font-weight: 550; display: flex; gap: 6px; align-items: center; background: #fffef3e8; padding: 7px 10px; border-radius: 30px; box-shadow: 0 2px 6px #0000000d; backdrop-filter: blur(8px); }
  .photo-labels .icon { width: 13px; height: 13px; }
  .photo-caption { position: absolute; bottom: 16px; left: 23px; color: #fffef3; font-size: 11px; letter-spacing: .2px; z-index: 1; }
  .dinner-body { padding: 25px 27px 24px; background: linear-gradient(130deg, #c6ef91, var(--lime) 64%, #aee071); position: relative; }
  .dinner-body::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: url('/assets/paper.svg'); opacity: .3; }
  .dinner-body > * { position: relative; }
  .dinner-body > .eyebrow { color: var(--on-lime); font-size: 9px; }
  .dinner-body h2 { font-family: var(--serif); font-weight: 550; font-size: clamp(30px, 2.9vw, 43px); line-height: 1.05; letter-spacing: -1.2px; margin: 10px 0 17px; }
  .portion-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
  .portion-chips > span { display: inline-flex; align-items: center; gap: 5px; background: #f8ffe5a9; border: 1px solid #ffffff4d; border-radius: 30px; padding: 6px 10px; font-size: 10px; }
  .portion-chips .icon { width: 13px; height: 13px; }
  .portion-chips strong { font-weight: 550; }
  .portion-chips > span > span { color: var(--on-lime); }
  .dinner-body .btn { border-radius: 12px; font-size: 13px; padding: 14px 17px; }
  .small-discovery { display: flex; align-items: center; gap: 13px; margin-top: 22px; padding: 14px 5px; }
  .discovery-icon { width: 40px; height: 40px; border-radius: 50%; background: #f9e8cb; color: #8a5410; display: grid; place-items: center; }
  .discovery-icon .icon { width: 18px; height: 18px; }
  .small-discovery h3 { font-size: 12px; margin-bottom: 3px; }
  .small-discovery p { font-size: 11px; color: var(--muted); }
  .small-discovery .icon-button { margin-left: auto; }
  .other-meals { display: grid; gap: 12px; }
  .mini-meal { display: flex; align-items: center; gap: 13px; border: 1px solid #e1e5d9; background: #fffef7a6; border-radius: 16px; padding: 12px; text-align: left; width: 100%; box-shadow: 0 2px 8px #173d3b03; transition: box-shadow .2s, border-color .2s; }
  .mini-meal:hover { border-color: #c3d2bd; box-shadow: 0 5px 14px #173d3b09; }
  .mini-meal-photo { width: 75px; height: 83px; object-fit: cover; border-radius: 11px; flex-shrink: 0; }
  .mini-meal > div { flex: 1; min-width: 0; }
  .mini-meal .eyebrow { font-size: 9px; letter-spacing: 1px; color: var(--muted); }
  .mini-meal h3 { font-size: 13px; line-height: 1.4; margin: 4px 0; letter-spacing: -.2px; }
  .mini-meal p { font-size: 10px; color: var(--muted); }
  .mini-meal .tag { font-size: 9px; margin-top: 7px; padding: 3px 7px; }
  .meal-chevron { width: 16px; }
  .prep-card { display: flex; gap: 15px; align-items: flex-start; margin-top: 24px; padding: 22px 20px; background: linear-gradient(125deg, #e2ece2, #eaf2e9); border: 1px solid #d3e2d2; box-shadow: inset 0 1px #ffffffa3; border-radius: 18px; width: 100%; text-align: left; position: relative; }
  .prep-icon { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid #a2b7a0; border-radius: 50%; flex-shrink: 0; }
  .prep-icon > .icon { width: 20px; color: var(--teal); }
  .prep-card .eyebrow { color: var(--muted); font-size: 8px; letter-spacing: 1.3px; }
  .prep-card h3 { font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.13; letter-spacing: -.6px; margin: 8px 0 12px; }
  .prep-card p { font-size: 10px; color: var(--muted); }
  .prep-card > .icon { margin-left: auto; width: 17px; }
  .prep-card:hover { background: #e0ecde; }
  .pantry-peek { margin-top: 26px; padding: 0 3px; }
  .pantry-peek .section-title h2 { font-size: 13px; }
  .pantry-peek .section-title > .icon { width: 15px; color: var(--muted); }
  .pantry-mini-items { margin-bottom: 9px; }
  .pantry-mini-items > div { display: flex; justify-content: space-between; padding: 10px 0; font-size: 11px; border-bottom: 1px solid var(--line); }
  .pantry-mini-items strong { color: var(--muted); font-weight: 450; }
  .pantry-peek .text-link { font-size: 10px; }
  .plan-toolbar { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fffef6a6; margin-bottom: 32px; }
  .plan-toolbar .day-strip { flex: 1; max-width: 480px; }
  .plan-day-title { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 18px; }
  .plan-day-title h2 { font-family: var(--serif); font-size: 27px; font-weight: 500; letter-spacing: -.6px; }
  .plan-meals { display: grid; gap: 20px; }
  .plan-meal { padding: 22px; border: 1px solid var(--line); background: var(--surface); border-radius: 18px; }
  .plan-meal-head { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .plan-meal-head h3 { font-size: 14px; }
  .meal-type-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--teal-wash); }
  .meal-type-icon .icon { width: 15px; }
  .plan-dishes { margin: 4px 0 13px; }
  .plan-dish { display: flex; gap: 13px; align-items: center; padding: 13px 0; }
  .plan-dish:not(:last-child) { border-bottom: 1px solid #e9ecdf; }
  .plan-dish-photo { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; }
  .plan-dish > div { flex: 1; }
  .plan-dish h4 { font-size: 13px; display: flex; gap: 8px; align-items: center; }
  .plan-dish h4 .icon { width: 16px; color: var(--teal); }
  .plan-dish p { font-size: 11px; color: var(--muted); margin-top: 4px; }
  .plan-dish .icon-button { color: #789079; }
  .skipped { opacity: .6; }
  .recipe-list-title { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; margin: 14px 0 16px; }
  .favorite-on { color: #a85531; }
  .favorite-on svg { fill: #fbbf9266; }
  .recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .recipe-card { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: 0 5px 15px #173d3b05; }
  .recipe-image { height: 175px; position: relative; background: #e6e9d5; overflow: hidden; }
  .recipe-image > img { height: 100%; width: 100%; object-fit: cover; transition: transform .4s; }
  .recipe-card:hover .recipe-image > img { transform: scale(1.025); }
  .recipe-image > .tag { position: absolute; left: 12px; bottom: 12px; background: #fffef1e8; color: var(--ink); }
  .favorite-button { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; display: grid; place-items: center; background: #fffef1e8; border: 0; border-radius: 50%; color: var(--muted); }
  .favorite-button .icon { width: 15px; height: 15px; }
  .favorite-button.active { color: #b76831; }
  .favorite-button.active .icon { fill: #f9b075; }
  .recipe-card-body { padding: 20px; }
  .recipe-card-body h2 { font-family: var(--serif); font-size: 24px; line-height: 1.15; font-weight: 500; letter-spacing: -.5px; }
  .recipe-card-body > p { font-size: 11px; color: var(--muted); margin: 10px 0 17px; min-height: 50px; }
  .recipe-meta { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); border-top: 1px solid var(--line); padding: 12px 0; }
  .recipe-meta > span:first-child { display: flex; gap: 5px; align-items: center; }
  .recipe-meta .icon { width: 13px; }
  .pantry-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 28px; }
  .pantry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
  .inventory-group { border-radius: 18px; border: 1px solid var(--line); background: var(--surface); padding: 22px; }
  .inventory-group h2 { display: flex; gap: 10px; align-items: center; font-size: 14px; margin-bottom: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .inventory-group h2 .icon { color: var(--teal); width: 18px; }
  .inventory-row { display: flex; gap: 10px; align-items: center; padding: 13px 0; }
  .inventory-row:not(:last-child) { border-bottom: 1px solid #e8ece3; }
  .inventory-row > div { flex: 1; }
  .inventory-row strong { font-size: 12px; font-weight: 550; }
  .inventory-row > div > span { font-size: 10px; color: var(--muted); display: block; margin-top: 3px; }
  .inventory-amount { font-size: 12px; white-space: nowrap; }
  .inventory-row .icon-button { color: #61755f; }
  .inventory-row .icon-button .icon { width: 15px; }
  .out-of-stock .inventory-amount { color: #a96128; }
  .leftovers-section { margin: 20px 0 30px; }
  .leftovers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .leftover-card { display: flex; gap: 15px; align-items: center; background: #eaf1e1; border: 1px solid #d3e1c3; border-radius: 16px; padding: 16px; }
  .leftover-photo { width: 65px; height: 70px; object-fit: cover; border-radius: 10px; }
  .leftover-card h3 { font-size: 14px; }
  .leftover-card p { font-size: 11px; color: var(--muted); margin: 4px 0; }
  .leftover-card .text-link { font-size: 10px; }
  .shopping-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 28px; align-items: start; }
  .shopping-group { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 18px; }
  .shopping-group h2 { font-size: 13px; padding-bottom: 14px; margin-bottom: 5px; border-bottom: 1px solid var(--line); }
  .shopping-item { position: relative; display: flex; gap: 12px; align-items: center; padding: 15px 0; cursor: pointer; }
  .shopping-item:not(:last-child) { border-bottom: 1px solid #e9eddf; }
  .shopping-item > input { position: absolute; width: 22px; height: 22px; opacity: 0; margin: 0; }
  .custom-check { border: 1px solid var(--field-line); width: 20px; height: 20px; border-radius: 5px; flex-shrink: 0; display: grid; place-items: center; pointer-events: none; }
  .custom-check .icon { opacity: 0; width: 13px; height: 13px; }
  .shopping-item input:checked + .custom-check { background: var(--teal); border-color: var(--teal); color: var(--cream); }
  .shopping-item input:checked + .custom-check .icon { opacity: 1; }
  .shopping-item input:focus-visible + .custom-check { outline: 3px solid var(--teal); outline-offset: 3px; }
  .shopping-name { flex: 1; }
  .shopping-name > strong { font-size: 12px; font-weight: 550; }
  .shopping-name > small { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
  .shopping-quantity { font-size: 12px; font-weight: 550; white-space: nowrap; }
  .shopping-summary { position: sticky; top: 24px; padding: 26px; border-radius: 20px; background: linear-gradient(130deg, #c3ee8e, #b6eb7a 80%); border: 1px solid #aad979; box-shadow: 0 8px 20px #5c72350e; }
  .shopping-summary .eyebrow { color: var(--on-lime); font-size: 9px; }
  .shopping-summary h2 { font-family: var(--serif); font-weight: 500; font-size: 31px; line-height: 1.12; letter-spacing: -.8px; margin: 14px 0 22px; }
  .shopping-summary p { font-size: 12px; color: var(--on-lime); line-height: 1.7; }
  .summary-rule { height: 1px; background: #98be68; margin: 20px 0; opacity: .6; }
  .shopping-summary .btn { font-size: 11px; margin: 20px 0 10px; }
  .shopping-summary .text-link, .dinner-body .text-link { color: var(--teal-deep); }
  .shopping-summary .text-link { display: flex; justify-content: center; width: 100%; font-size: 11px; }
  .summary-bottom { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--on-lime); margin-top: 26px; }
  .summary-bottom .icon { width: 14px; }
  /* Dialogs intentionally share the same surfaces, type and controls as the app. */
  .modal-open { overflow: hidden; }
  .sheet { color: var(--ink); border: 1px solid #dfe5d9; background: var(--cream); border-radius: 24px; padding: 34px; width: min(510px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain; box-shadow: 0 28px 90px #15373330; margin: auto; }
  .sheet::backdrop { background: #13353266; backdrop-filter: blur(5px); }
  .modal-close { position: absolute; right: 15px; top: 15px; z-index: 3; background: #fffef4d9; }
  .sheet h2 { font-family: var(--serif); font-size: 39px; line-height: 1.06; letter-spacing: -1.2px; font-weight: 500; margin: 12px 20px 16px 0; }
  .modal-intro { color: var(--muted); font-size: 12px; margin-bottom: 24px; line-height: 1.7; }
  .field { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 550; margin-bottom: 20px; }
  .field > span:first-child { display: flex; align-items: center; justify-content: space-between; }
  .field input, .field select, .field textarea { font-size: 16px; font-weight: 400; color: var(--ink); border: 1px solid var(--field-line); background: var(--surface); padding: 12px 14px; border-radius: 10px; width: 100%; }
  .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); }
  .field textarea { resize: vertical; }
  .input-with-unit { display: flex; align-items: center; gap: 9px; }
  .input-with-unit > input { flex: 1; min-width: 0; }
  .input-with-unit > span { font-size: 12px; color: var(--muted); min-width: 33px; }
  .demo-notice { display: flex; align-items: flex-start; gap: 8px; background: #ecefe3; border-radius: 10px; padding: 12px 14px; margin: 18px 0; font-size: 10px; color: var(--muted); line-height: 1.6; }
  .demo-notice .icon { width: 15px; height: 15px; margin-top: 1px; }
  .modal-bottom-link { display: flex; justify-content: center; width: 100%; margin-top: 10px; }
  .otp-input { letter-spacing: 10px; font-size: 26px !important; text-align: center; padding: 18px 10px !important; }
  .demo-code { text-align: center; border: 1px dashed #c1d0b7; border-radius: 12px; padding: 16px; margin: 22px 0 16px; }
  .demo-code > span { display: block; font-size: 9px; letter-spacing: 1.5px; color: var(--muted); }
  .demo-code strong { display: block; font-size: 23px; letter-spacing: 6px; margin: 7px 0 3px; }
  .demo-code p { font-size: 10px; color: var(--muted); }
  .form-error { padding: 11px 13px; background: #fff0e7; border: 1px solid #f1c7ac; color: #9b441c; font-size: 12px; margin: 12px 0 18px; border-radius: 8px; }
  .onboarding-progress { display: flex; gap: 8px; margin: 14px 0 28px; }
  .onboarding-progress span { flex: 1; height: 4px; background: #dfe5d7; border-radius: 4px; }
  .onboarding-progress span.complete { background: var(--teal); }
  .inline-icon { border: 0; background: none; padding: 4px; color: var(--muted); display: flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; }
  .inline-icon .icon { width: 14px; }
  .onboard-buttons { display: flex; justify-content: flex-end; gap: 12px; margin-top: 25px; }
  fieldset { border: 0; margin: 0; padding: 0; }
  .preference-people fieldset { border: 1px solid var(--line); padding: 16px; border-radius: 12px; margin: 15px 0 20px; }
  .preference-people legend { font-size: 14px; padding: 0 7px; font-weight: 550; }
  .preference-people .field:last-child { margin-bottom: 2px; }
  .meal-checkboxes { margin: 18px 0 24px; }
  .meal-checkboxes legend { font-size: 12px; font-weight: 550; margin-bottom: 7px; }
  .meal-checkboxes.compact { display: flex; flex-wrap: wrap; column-gap: 16px; }
  .meal-checkboxes.compact legend { width: 100%; }
  .meal-checkboxes.compact .check-label { padding: 6px 0; font-size: 12px; gap: 7px; }
  .check-label { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 10px 0; cursor: pointer; }
  .check-label input, .radio-card input, .prep-task input { accent-color: var(--teal); width: 18px; height: 18px; margin: 0; flex-shrink: 0; }
  .radio-card { display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); padding: 18px; border-radius: 12px; background: var(--surface); cursor: pointer; margin: 12px 0; }
  .radio-card:has(input:checked) { border-color: var(--teal); background: #eaf0e2; }
  .radio-card strong { display: block; font-size: 13px; font-weight: 550; }
  .radio-card small { display: block; font-size: 11px; color: var(--muted); margin-top: 6px; }
  .recipe-sheet { padding: 0; }
  .recipe-modal-photo { position: relative; height: 225px; background: #d6dfc2; }
  .recipe-modal-photo > img { width: 100%; height: 100%; object-fit: cover; }
  .recipe-modal-photo .tag { position: absolute; bottom: 18px; left: 25px; background: #fffef5ed; }
  .recipe-modal-content { padding: 28px; }
  .recipe-modal-content h2 { font-size: 35px; }
  .recipe-modal-content h3 { font-size: 15px; margin: 26px 0 13px; }
  .recipe-modal-info { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; padding: 14px 0; border-block: 1px solid var(--line); }
  .recipe-modal-info > span { display: flex; gap: 7px; align-items: center; }
  .recipe-modal-info .icon { width: 15px; }
  .favorite-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 14px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; }
  .favorite-toggle .icon { width: 16px; height: 16px; color: var(--muted); }
  .favorite-toggle.active { border-color: #f3c49c; background: #fff3e8; color: #a85531; }
  .favorite-toggle.active .icon { color: #b76831; fill: #f9b075; }
  .ingredients-list { list-style: none; padding: 0; }
  .ingredients-list li { padding: 10px 0; border-bottom: 1px solid #e3e7db; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
  .ingredients-list strong { font-weight: 500; }
  .steps-list { counter-reset: steps; list-style: none; padding: 0; }
  .steps-list li { counter-increment: steps; display: flex; gap: 12px; margin: 17px 0; font-size: 12px; line-height: 1.7; }
  .steps-list li::before { content: counter(steps, decimal-leading-zero); color: var(--on-lime); background: #e4edda; width: 27px; height: 27px; font-size: 10px; display: grid; place-items: center; border-radius: 50%; flex-shrink: 0; }
  .recipe-modal-actions { margin: 25px 0 12px; }
  .recipe-modal-actions .text-link { margin-top: 14px; }
  .completion-label { display: flex; gap: 8px; align-items: center; color: var(--teal); font-size: 13px; margin-bottom: 16px; }
  .meal-modal-dishes article { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface); margin: 12px 0; }
  .meal-dish-top { display: flex; align-items: center; gap: 13px; }
  .meal-dish-top > div { flex: 1; }
  .meal-dish-photo { width: 57px; height: 66px; border-radius: 10px; object-fit: cover; }
  .meal-dish-top .eyebrow { font-size: 8px; }
  .meal-dish-top h3 { font-size: 14px; margin: 4px 0; }
  .meal-dish-top p { font-size: 11px; color: var(--muted); }
  .meal-modal-dishes .row-actions { margin-top: 14px; justify-content: space-between; }
  .done-icon { color: var(--teal); }
  .used-ingredients { margin-bottom: 22px; }
  .ingredient-field { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .ingredient-field strong { font-size: 12px; font-weight: 550; }
  .ingredient-field small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
  .ingredient-field > .input-with-unit { width: 150px; }
  .ingredient-field input { padding: 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; font-size: 16px; }
  .alternative-list > button { border: 1px solid var(--line); background: var(--surface); border-radius: 13px; padding: 12px; width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; margin: 12px 0; }
  .alternative-list > button > span { flex: 1; }
  .alternative-list > button strong { display: block; font-size: 13px; font-weight: 550; }
  .alternative-list > button small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
  .prep-task { display: flex; align-items: flex-start; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
  .prep-task input { margin-top: 3px; }
  .prep-task strong { font-size: 12px; font-weight: 550; }
  .prep-task small { display: block; font-size: 10px; color: var(--muted); line-height: 1.7; margin-top: 6px; }
  .prep-task:has(input:checked) strong { text-decoration: line-through; color: var(--muted); }
  .plan-preview { display: grid; gap: 15px; margin: 20px 0 28px; }
  .plan-preview > div { border-bottom: 1px solid var(--line); padding-bottom: 13px; }
  .plan-preview strong { display: block; font-size: 13px; margin-bottom: 7px; }
  .plan-preview span { display: block; font-size: 11px; color: var(--muted); line-height: 1.8; }
  .profile-people { display: grid; gap: 15px; margin: 22px 0 26px; }
  .profile-people > div { display: flex; gap: 12px; align-items: center; }
  .profile-people strong { display: block; font-size: 13px; font-weight: 550; }
  .profile-people small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
  .profile-actions { display: grid; gap: 16px; }
  .account-data { display: grid; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
  .account-data h3 { font-size: 13px; font-weight: 600; margin: 0; }
  .account-data .section-footnote { margin: 0 0 6px; }
  .text-link.danger, .text-link.danger:hover { color: #9b441c; }
  .btn-danger { color: var(--cream); background: #9b441c; border-color: #9b441c; }
  .btn-danger:hover { background: #7f3716; }
  .btn-danger:disabled { opacity: .45; cursor: not-allowed; }
  .delete-list { margin: 14px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 12px; line-height: 1.5; }
  .demo-notice .text-link { padding: 0; font-size: inherit; }
  #toast { position: fixed; top: auto; right: auto; left: 50%; bottom: 26px; margin: 0; border: 0; transform: translate(-50%, 15px); background: #173d3b; color: var(--cream); padding: 13px 19px; border-radius: 12px; display: flex; gap: 10px; align-items: center; z-index: 100; box-shadow: 0 8px 30px #0a2d2b25; max-width: min(520px, calc(100% - 32px)); font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  #toast.show { opacity: 1; transform: translate(-50%, 0); }
  #toast.error { background: #854729; }
  #toast .icon { width: 17px; }
}
@layer responsive {
  @media (min-width: 1550px) { .content { padding-top: 54px; } .dinner-photo { height: 335px; } .today-layout { gap: 34px; } }
  @media (max-width: 1200px) { .sidebar { width: 205px; padding: 32px 17px 20px; } .workspace { margin-left: 205px; } .content { padding: 32px 30px 40px; } .topbar { padding: 0 30px; } .page-footer { padding-inline: 30px; } .today-layout { grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 22px; } .heading-calendar { width: 288px; } .day-strip button { min-width: 35px; } .dinner-photo { height: 250px; } .dinner-body { padding: 23px; } .mini-meal { gap: 10px; padding: 10px; } .mini-meal-photo { width: 62px; height: 75px; } .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .filter-toolbar { flex-direction: column; align-items: stretch; } .shopping-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; } }
  @media (max-width: 980px) { .today-layout { grid-template-columns: minmax(0, 1fr); } .today-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } .today-rail > .section-title { grid-column: 1 / -1; margin: 0; } .other-meals { grid-row: span 2; } .prep-card { margin-top: 0; } .pantry-peek { margin-top: 0; } .today-heading { flex-direction: column; align-items: flex-start; } .heading-calendar { width: 100%; display: flex; align-items: center; gap: 25px; padding-top: 0; } .heading-calendar > .eyebrow { margin: 0; text-align: left; } .heading-calendar .day-strip { flex: 1; } .dinner-photo { height: 340px; } .dinner-body h2 br { display: none; } .pantry-grid, .shopping-layout { grid-template-columns: 1fr; } .shopping-summary { position: static; } .page-heading > .btn { align-self: flex-end; } .leftovers-grid { grid-template-columns: 1fr; } }
  @media (max-width: 760px) {
    .sidebar { display: none; } .workspace { margin-left: 0; } .content { padding: 25px 24px 36px; max-width: 650px; } .topbar { height: 83px; border: 0; padding: 25px 24px 12px; max-width: 650px; margin: auto; } .breadcrumb { display: none; } .mobile-brand { display: block; font-size: 34px; } .guest-chip { font-size: 9px; gap: 4px; } .guest-chip .icon { width: 12px; } .topbar-right { gap: 12px; } .avatar { width: 36px; height: 36px; min-height: 36px; font-size: 11px; } .local-chip { font-size: 9px; }
    .app-shell { padding-bottom: 90px; } .page-footer { display: none; }
    .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; justify-content: center; padding: 9px 10px calc(13px + env(safe-area-inset-bottom)); background: #fdfdf5ee; backdrop-filter: blur(16px); border-top: 1px solid #dbe2d3; box-shadow: 0 -5px 25px #173d3b04; }
    .bottom-nav button { flex: 1; max-width: 120px; border: 0; background: transparent; display: flex; flex-direction: column; gap: 4px; align-items: center; color: var(--muted); font-size: 10px; padding: 1px 2px; min-height: 50px; }
    .bottom-nav button > span { display: grid; place-items: center; width: 37px; height: 31px; border-radius: 18px; }
    .bottom-nav button.active { color: var(--teal-deep); font-weight: 600; } .bottom-nav button.active > span { background: var(--lime); } .bottom-nav .icon { width: 21px; height: 21px; }
    .today-heading { gap: 22px; margin-bottom: 23px; } h1 { font-size: 45px; letter-spacing: -1.5px; } .page-heading .eyebrow { font-size: 9px; margin-bottom: 12px; } .page-heading p { font-size: 12px; margin-top: 12px; } .heading-calendar > .eyebrow { display: none; } .day-strip { gap: 5px; } .day-strip button { min-width: 36px; flex: 1; padding: 8px 4px; gap: 3px; } .day-strip button > span { font-size: 11px; } .day-strip button strong { font-size: 14px; }
    .dinner-photo { height: 275px; } .dinner-body h2 { font-size: 36px; } .photo-labels { left: 16px; right: 16px; top: 15px; } .photo-labels > span { font-size: 9px; padding: 6px 9px; } .photo-caption { font-size: 10px; left: 20px; }
    .dinner-body { padding: 23px; } .portion-chips > span { padding: 6px 9px; font-size: 10px; } .dinner-body .btn { font-size: 12px; } .small-discovery { display: none; }
    .today-layout { gap: 29px; } .today-rail { display: block; } .today-rail > .section-title { margin-bottom: 14px; } .section-title h2 { font-size: 15px; } .mini-meal { padding: 10px; gap: 14px; border-radius: 17px; } .mini-meal-photo { width: 82px; height: 85px; } .mini-meal h3 { font-size: 14px; } .mini-meal p { font-size: 11px; } .mini-meal .eyebrow { font-size: 9px; } .prep-card { margin-top: 22px; padding: 17px; align-items: center; } .prep-card h3 { font-family: var(--sans); font-size: 15px; letter-spacing: -.3px; line-height: 1.4; margin: 4px 0 5px; } .prep-card h3 br { display: none; } .prep-card .eyebrow { display: none; } .prep-card p { font-size: 11px; } .pantry-peek { display: none; }
    .page-heading { gap: 18px; flex-wrap: wrap; margin-bottom: 26px; } .page-heading > .btn { font-size: 11px; padding: 11px 14px; } .plan-toolbar { padding: 11px; flex-direction: column; align-items: stretch; gap: 12px; } .plan-toolbar .day-strip { max-width: none; } .plan-toolbar > .btn { align-self: flex-end; font-size: 10px; } .plan-day-title h2 { font-size: 24px; } .plan-meal { padding: 16px; } .plan-dish { gap: 9px; } .plan-dish-photo { width: 47px; height: 50px; } .plan-dish h4 { font-size: 12px; } .plan-dish p { font-size: 10px; } .plan-dish .icon-button { min-width: 34px; padding: 6px; } .plan-dish .icon-button .icon { width: 16px; } .plan-meal-head .tag { font-size: 9px; } .plan-meal-head .text-link { font-size: 10px; }
    .filter-pills { gap: 2px; } .filter-pill { padding: 9px 10px; font-size: 10px; } .recipe-grid { gap: 14px; } .recipe-image { height: 150px; } .recipe-card-body { padding: 15px; } .recipe-card-body h2 { font-size: 22px; } .recipe-card-body p { font-size: 10px; } .recipe-meta { font-size: 9px; } .recipe-card-body .text-link { font-size: 11px; } .pantry-top { flex-direction: column; align-items: stretch; } .pantry-top > span { align-self: flex-end; } .inventory-group { padding: 19px; } .shopping-item { gap: 10px; } .shopping-group { padding: 18px; } .shopping-quantity { font-size: 11px; } .shopping-name small { font-size: 9px; } .shopping-summary { padding: 23px; }
    #toast { bottom: 95px; }
    .sheet { width: calc(100% - 20px); padding: 28px 23px; border-radius: 20px; max-height: calc(100dvh - 30px); } .sheet h2 { font-size: 35px; } .recipe-sheet { padding: 0; } .recipe-modal-content { padding: 24px; } .recipe-modal-photo { height: 200px; } .sheet .modal-close { top: 10px; right: 10px; } .ingredient-field { gap: 10px; } .ingredient-field > .input-with-unit { width: 130px; } .recipe-modal-content h2 { font-size: 32px; }
  }
  @media (max-width: 380px) { .content { padding-inline: 18px; } .topbar { padding-inline: 18px; } .guest-chip > .icon { display: none; } .guest-chip { font-size: 8px; } .topbar-right { gap: 8px; } .dinner-photo { height: 210px; } .dinner-body { padding: 20px; } .dinner-body h2 { font-size: 32px; } h1 { font-size: 42px; } .portion-chips > span { font-size: 9px; } .mini-meal-photo { width: 65px; height: 79px; } .mini-meal { gap: 10px; } .mini-meal h3 { font-size: 12px; } .recipe-grid { grid-template-columns: 1fr; } .recipe-image { height: 210px; } .recipe-card-body p { min-height: auto; } .plan-day-title { gap: 8px; } .plan-day-title h2 { font-size: 20px; } .plan-dish .icon-button { min-width: 30px; } .plan-dish h4 { font-size: 11px; } .plan-dish-photo { width: 40px; height: 47px; } .plan-meal-head { gap: 6px; } .plan-meal-head .tag { padding: 4px 6px; } }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
}
