/* Kitchen planner: task surfaces, a single weekly board and a quiet navigation rail. */
body { line-height: 1.6; }
button, input, select, textarea { line-height: 1.4; }
input:not([type='checkbox']):not([type='hidden']), select, textarea { min-height: 48px; padding: 11px 12px; font-size: 1rem; border: 1px solid #89a292; border-radius: 6px; }
:root[data-theme='dark'] input, :root[data-theme='dark'] select, :root[data-theme='dark'] textarea { border-color: #789581; }
.field { gap: 8px; margin-bottom: 20px; font-size: .875rem; }
.field label { font-weight: 650; }
.btn, .btn.small { min-height: 48px; padding: 10px 14px; font-size: .875rem; border-radius: 7px; font-weight: 700; white-space: normal; }
.btn.primary { background: var(--green); border-color: var(--green); color: var(--paper); }
:root[data-theme='dark'] .btn.primary { color: #18382a; }
.btn.quiet { background: transparent; border-color: transparent; }
.btn:hover, .icon-btn:hover { border-color: var(--green); }
.btn svg, .icon-btn svg { width: 21px; height: 21px; flex-shrink: 0; }
.icon-btn { min-width: 44px; min-height: 44px; border-radius: 7px; }
.password-control { display: flex; position: relative; align-items: stretch; }
.password-control input { padding-right: 80px !important; }
.password-control button { position: absolute; right: 2px; top: 2px; bottom: 2px; padding: 0 12px; background: transparent; color: var(--green); border: 0; font-size: .8125rem; font-weight: 700; }
.shell { grid-template-columns: 224px minmax(0, 1fr); }
.sidebar { padding: 28px 16px; gap: 36px; background: var(--bg); border-right: 0; }
.sidebar .brand { padding: 0 10px; font-size: 1rem; }
.brand-logo { width: 36px; height: 36px; display: inline-flex; flex-shrink: 0; }
.brand-logo > svg { width: 100%; height: 100%; border-radius: 9px; }
.sidebar nav { gap: 4px; }
.sidebar .nav-link { min-height: 48px; padding: 12px; border-radius: 7px; font-size: .875rem; line-height: 1.4; }
.sidebar .nav-link.active { color: var(--green); background: var(--paper); box-shadow: inset 3px 0 var(--green); }
.sidebar .nav-link svg { width: 22px; height: 22px; }
.sidebar-note { margin-top: auto; background: transparent; padding: 16px 12px; border-top: 1px solid var(--line); border-radius: 0; font-size: .75rem; }
.topbar { min-height: 80px; height: auto; padding: 16px 32px; background: var(--paper); border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 12px; }
.topbar-title, .status { font-size: .8125rem; }
.topbar .account-tools { margin-left: auto; order: 2; display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar .status { order: 1; }
.topbar > .btn { order: 3; }
.signed-in-email { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; color: var(--muted); }
.language-picker { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .75rem; }
.language-picker select { width: 160px; max-width: 180px; min-height: 48px; padding: 8px 26px 8px 10px; border-color: var(--line); font-size: .8125rem; }
.content { max-width: 1440px; padding: 36px 32px 56px; }
.page-heading { align-items: start; gap: 24px; margin-bottom: 28px; }
.page-heading p { font-size: .9375rem; line-height: 1.65; margin-top: 10px; }
.page-heading > .actions { align-items: stretch; gap: 8px; padding-top: 0; }
.actions { gap: 8px; }
.panel { border: 1px solid var(--line); border-radius: 10px; box-shadow: none; padding: 24px; margin-bottom: 24px; }
.panel h2 { margin-bottom: 20px; }
.columns { gap: 24px; }
.grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; padding: 0; background: transparent; border: 0; }
.card { display: flex; flex-direction: column; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dish-title { display: flex; align-items: flex-start; gap: 12px; }
.dish-title-icon { display: inline-flex; flex-shrink: 0; color: var(--green); padding-top: 2px; }
.dish-title-icon .app-icon { width: 24px; height: 24px; }
.dish-title h2 { min-width: 0; overflow-wrap: anywhere; }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 20px; }
.card h2 { font-size: 1.125rem; line-height: 1.4; }
.card p { font-size: .875rem; line-height: 1.65; }
.card-bottom { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; align-items: center; flex-wrap: wrap; }
.card-bottom > small { font-size: .75rem; }
.chip { background: var(--bg); color: var(--muted); border-radius: 4px; padding: 4px 7px; font-size: .75rem; }
.dish-meta { display: flex; align-items: start; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.dish-meta .dish-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.catalog-card-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.catalog-added { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: .8125rem; }
.catalog-added .app-icon { width: 18px; height: 18px; }
.empty-state { padding: 48px 24px; border: 0; border-radius: 0; background: var(--paper); }
.empty-state p { max-width: 52ch; margin-inline: auto; font-size: 1rem; }
.empty-state h2 { font-size: 1.25rem; }
.list-controls { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 0 24px; margin-bottom: 24px; background: transparent; box-shadow: none; }
.control-field { display: grid; gap: 7px; min-width: 140px; font-size: .8125rem; font-weight: 600; }
.control-search { flex: 1; min-width: 200px; }
.list-controls .toolbar { align-items: end; margin-bottom: 16px; }
.list-controls .toolbar input { max-width: none; width: 100%; }
.tag-filters { margin: 16px 0 0; padding: 12px 0; border: 0; border-top: 1px solid var(--line); background: transparent; border-radius: 0; }
.tag-filters summary { display: flex; align-items: center; gap: 8px; cursor: pointer; min-height: 40px; font-size: .875rem; font-weight: 650; color: var(--green); }
.tag-filters summary svg { width: 21px; height: 21px; }
.tag-filter-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 16px; max-height: 300px; overflow: auto; padding-top: 12px; }
.tag-filter-options label { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 4px; font-size: .875rem; }
.tag-filter-options label:has(input:checked) { background: var(--pale); }
.filter-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.filter-bottom label { display: flex; align-items: center; gap: 8px; font-size: .875rem; }
.active-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.active-filter-chips button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; background: var(--paper); color: var(--green); font-size: .8125rem; }
.active-filter-chips svg { width: 16px; height: 16px; }
.browse-count { font-size: .875rem; }
.checks { gap: 12px 18px; }
.checks label { min-height: 36px; font-size: .875rem; }
.list-row { gap: 14px; padding: 18px 0; }
.list-main { flex: 1; min-width: 0; }
.list-main strong { font-size: 1rem; }
.list-main small { font-size: .8125rem; line-height: 1.5; }
.shopping-heading { color: var(--muted); text-transform: none; letter-spacing: normal; font-size: .875rem; margin-top: 24px; }
.amount { font-size: .875rem; }
.form-note { max-width: 66ch; font-size: .875rem; line-height: 1.7; }
.error { font-size: .875rem; line-height: 1.6; }
.pre { font-family: inherit; font-size: .9375rem; line-height: 1.8; white-space: pre-wrap; }
.ingredient-row { display: grid; grid-template-columns: minmax(0, 1fr) 100px 44px; gap: 10px; align-items: end; }
.ingredient-row button { min-width: 44px; min-height: 46px; }
.ingredient-editor-row { padding: 14px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.product-icon-grid button { min-width: 44px; min-height: 44px; }
.banner { border-radius: 6px; box-shadow: none; font-size: .9375rem; line-height: 1.7; }
.week-summary { background: transparent; border: 0; border-radius: 0; padding: 0 0 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.week-navigate { display: grid; grid-template-columns: minmax(112px, 1fr) minmax(0, 2fr) minmax(112px, 1fr); gap: 12px; width: 100%; margin-bottom: 16px; }
.week-range { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; min-width: 0; }
.week-range .eyebrow { margin: 0; font-size: .75rem; letter-spacing: normal; text-transform: none; }
.week-title { font-size: 1.25rem; font-weight: 750; color: var(--ink); }
.week-tools { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.plan-meal-toggles { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; flex: 1; }
.plan-meal-toggles [aria-pressed='true'] { background: var(--pale); border-color: var(--green); color: var(--green); }
.progress { display: flex; align-items: center; gap: 16px; width: 100%; min-width: 0; max-width: none; padding-top: 0; }
.progress span { font-size: .8125rem; white-space: nowrap; }
.progress progress { flex: 1; width: auto; margin: 0; }
.week-summary progress { height: 5px; }
.planner { gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.plan-labels { column-gap: 0; text-transform: none; letter-spacing: normal; background: var(--paper); border-bottom: 2px solid var(--line); padding: 0; font-size: .8125rem; }
.plan-labels > span { padding: 16px 14px; font-size: .8125rem; color: var(--muted); font-weight: 650; }
.plan-day { border: 0; border-radius: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 0; gap: 0; scroll-margin-block: 100px; }
.plan-day:last-child { border-bottom: 0; }
.day-label { padding: 22px 14px; gap: 6px; }
.day-label strong { font-size: .875rem; }
.day-label small { font-size: .75rem; }
.today-label { text-transform: none; letter-spacing: normal; border-radius: 4px; padding: 3px 6px; font-size: .6875rem; }
.plan-day.today { background: var(--paper); box-shadow: inset 4px 0 var(--green); }
.meal-slot { min-width: 0; position: relative; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.meal-slot .meal-cell { width: 100%; flex: 1; border: 0; border-radius: 0; background: transparent; padding: 18px 14px 12px; min-height: 68px; gap: 8px; text-align: left; }
.meal-slot .meal-cell.empty { border: 0; color: var(--muted); }
.meal-cell:hover { background: var(--bg); }
.meal-cell strong { font-size: .9375rem; line-height: 1.5; }
.meal-cell small { font-size: .75rem; }
.meal-pick-hint { display: flex; align-items: center; gap: 5px; font-size: .75rem; margin-top: 6px; color: var(--green); }
.meal-pick-hint .app-icon { width: 17px; height: 17px; }
.meal-label-mobile { display: none; text-transform: none; letter-spacing: normal; }
.meal-slot-actions { display: flex; justify-content: end; gap: 2px; padding: 0 4px 6px; }
.meal-slot-actions button { position: static; min-width: 40px; height: 40px; padding: 8px; display: grid; place-items: center; border: 0; border-radius: 4px; background: transparent; color: var(--green); }
.meal-slot-actions button:hover { background: var(--pale); }
.meal-slot-actions button .app-icon { width: 21px; height: 21px; }
.meal-slot-actions .meal-roll { background: var(--pale); }
.meal-slot-actions button:disabled { opacity: .4; cursor: default; }
.week-footer { padding: 20px 0; font-size: .8125rem; }
.slot-menu { display: grid; gap: 10px; padding: 12px 0 20px; }
.meal-picker { display: grid; gap: 18px; padding: 4px 0 20px; }
.meal-advanced { margin: 0; }
.meal-advanced > summary { min-height: 44px; padding: 10px 0; font-size: .875rem; cursor: pointer; color: var(--green); }
.meal-advanced .list-controls { margin: 12px 0 0; }
.meal-current { padding: 14px; background: var(--pale); border-radius: 6px; }
.meal-results-header { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.meal-results-header p { margin-top: 8px; font-size: .875rem; color: var(--muted); }
.meal-results { display: grid; gap: 12px; }
.meal-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.meal-option.is-planned { background: var(--pale); border-color: var(--green); }
.meal-option-copy { min-width: 0; }
.meal-option h3 { font-size: 1rem; }
.meal-option small { display: block; margin-top: 6px; }
.meal-option-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 6px; }
.meal-no-results { text-align: center; padding: 24px; }
.dialog-header { gap: 20px; align-items: start; }
.dialog-header h2 { line-height: 1.4; font-size: 1.25rem; }
.dialog-header > .icon-btn { flex-shrink: 0; }
.dialog-footer { gap: 10px; flex-wrap: wrap; }
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 28px; max-height: 90dvh; box-shadow: 0 16px 70px #132c2433; }
.mobile-bottom-nav { display: none; }
.mobile-sections { display: grid; gap: 8px; }
.mobile-sections .btn { justify-content: start; }
.mobile-sections .selected { background: var(--pale); }
.login-page { min-height: 100dvh; display: flow-root; background: var(--bg); }
.welcome-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-rows: auto auto; align-items: start; gap: 24px 48px; width: calc(100% - 64px); max-width: 1160px; margin: 32px auto 56px; padding: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.onboarding-story { grid-column: 1; grid-row: 1 / span 2; display: grid; grid-template-rows: subgrid; gap: 24px; background: transparent; padding: 0; min-width: 0; }
.welcome-brand-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; max-width: 1160px; width: calc(100% - 64px); min-height: 88px; margin: 0 auto; padding: 20px 0; border-bottom: 1px solid var(--line); }
.welcome-brand-row .brand { font-size: 1.125rem; letter-spacing: -.025em; }
.welcome-brand-row .language-picker { margin-left: auto; order: 2; }
.welcome-login-shortcut { display: none; }
#welcome-tour { max-width: none; width: 100%; margin: 0; }
#welcome-tour, .tour-slide { display: contents; }
.tour-body { grid-row: 2; min-width: 0; }
.tour-copy { grid-row: 1; min-width: 0; min-height: 0; margin: 0; }
.onboarding-story .tour-copy h1 { font-family: inherit; font-weight: 750; font-size: 2rem; line-height: 1.2; letter-spacing: -.045em; margin: 0 0 16px; color: var(--ink); }
.onboarding-story .tour-description { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.7; max-width: 52ch; }
.tour-art { max-width: none; margin: 0; position: relative; touch-action: pan-y; background: #176b5b; padding: 16px; border-radius: 14px; color: #203c33; }
.tour-preview { background: white; border-radius: 6px; min-height: 220px; overflow: hidden; }
.demo-heading { display: flex; align-items: center; gap: 10px; padding: 16px; border-bottom: 1px solid #cfdcd4; font-size: .875rem; color: #176b5b; }
.demo-heading svg { width: 24px; height: 24px; }
.demo-week { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .75rem; line-height: 1.4; }
.demo-week th, .demo-week td { padding: 16px 10px; text-align: center; border-right: 1px solid #d9e3dc; border-bottom: 1px solid #d9e3dc; overflow-wrap: anywhere; }
.demo-week th:last-child, .demo-week td:last-child { border-right: 0; }
.demo-week tr:last-child td { border-bottom: 0; }
.demo-week th { font-size: .75rem; font-weight: 700; color: #53685f; }
.demo-week td svg { display: block; width: 32px; height: 32px; margin: 0 auto 10px; }
.demo-recipe, .demo-shopping label { display: flex; align-items: center; gap: 16px; padding: 16px; border-bottom: 1px solid #d9e3dc; font-size: .875rem; color: #203c33; }
.demo-recipe:last-child, .demo-shopping label:last-child { border-bottom: 0; }
.demo-recipe > svg, .demo-shopping svg { width: 36px; height: 36px; flex-shrink: 0; }
.demo-recipe strong { display: block; font-weight: 700; }
.demo-recipe small { display: block; color: #53685f; margin-top: 4px; }
.demo-shopping label { cursor: pointer; }
.demo-shopping input { accent-color: #176b5b; width: 20px; height: 20px; }
.demo-shopping label:has(input:checked) > span { text-decoration: line-through; color: #53685f; }
.demo-share { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.demo-share > div { padding: 28px 16px; text-align: center; }
.demo-share > div + div { border-left: 1px solid #d9e3dc; }
.demo-share svg { width: 40px; height: 40px; display: block; margin: 0 auto 14px; }
.demo-share span { font-size: .8125rem; color: #53685f; }
.tour-navigation { display: flex; gap: 12px; align-items: start; margin-top: 24px; }
.tour-dots { display: flex; flex-wrap: wrap; gap: 8px 16px; flex: 1; }
.tour-dots button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font: inherit; font-size: .8125rem; font-weight: 600; min-height: 44px; padding: 8px 0; }
.tour-dots button[aria-current] { border-color: var(--green); color: var(--green); }
.tour-control, .tour-next { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--green); text-decoration: none; }
.tour-control:disabled { cursor: default; opacity: .35; }
.tour-control svg { transform: none; width: 20px; height: 20px; }
.tour-next svg { transform: rotate(180deg); width: 20px; height: 20px; }
.onboarding-story footer { display: none; }
.login-form-area { grid-column: 2; grid-row: 1 / span 2; grid-template-rows: subgrid; display: grid; gap: 24px; padding: 0 0 0 32px; min-width: 0; background: transparent; border-left: 1px solid var(--line); }
.login-form { display: contents; }
.login-intro { grid-row: 1; min-width: 0; }
.login-fields { grid-row: 2; min-width: 0; }
.login-intro h2 { font-size: 2rem; line-height: 1.2; margin: 0 0 16px; }
.login-intro p { font-size: .9375rem; line-height: 1.7; color: var(--muted); margin: 0; }
.login-form .btn.primary { width: 100%; min-height: 50px; }
.login-form .forgot { font-size: .8125rem; display: inline-flex; min-height: 40px; align-items: center; margin-top: 8px; }
.login-switch { font-size: .875rem; margin-top: 24px; text-align: left; }
.login-switch button { min-height: 40px; }
.login-footer { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; line-height: 1.8; }
.apk-download-link { display: flex; width: fit-content; max-width: 100%; min-height: 48px; margin: 0 auto 18px; align-items: center; justify-content: center; gap: 10px; text-align: center; white-space: normal; }
.android-download-icon { width: 24px; height: 24px; flex-shrink: 0; vertical-align: middle; }
@media (min-width: 1600px) { .content { padding: 44px 48px 64px; } }
@media (max-width: 1120px) and (min-width: 701px) {
  .shell { grid-template-columns: 190px minmax(0, 1fr); }
  .sidebar { padding: 24px 12px; }
  .content, .topbar { padding-inline: 24px; }
  .signed-in-email { max-width: 120px; }
  .page-heading { flex-wrap: wrap; }
  .login-page { grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr); }
  .onboarding-story { padding: 0; }
  .welcome-brand-row { gap: 12px; margin-bottom: 0; }
  .welcome-brand-row .language-picker { order: 2; margin-left: auto; }
  .demo-week th, .demo-week td { padding: 12px 6px; }
}
@media (max-width: 700px) {
  .shell { display: block; }
  .shell > .sidebar { position: static; height: auto; padding: 16px 20px; border: 0; border-bottom: 1px solid var(--line); background: var(--paper); gap: 0; }
  .shell > .sidebar nav, .shell > .sidebar .sidebar-note, .shell > .sidebar .sidebar-bottom { display: none; }
  .shell > .sidebar .brand { padding: 0; font-size: 1rem; }
  .mobile-bottom-nav { position: fixed; z-index: 8; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--paper); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bottom-nav a, .mobile-bottom-nav button { min-height: 58px; min-width: 0; padding: 6px 2px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; border: 0; border-radius: 0; background: transparent; color: var(--muted); text-decoration: none; font-size: .6875rem; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
  .mobile-bottom-nav .app-icon { width: 23px; height: 23px; }
  .mobile-bottom-nav [aria-current='page'], .mobile-bottom-nav .active { color: var(--green); box-shadow: inset 0 3px var(--green); }
  .topbar { padding: 12px 20px; min-height: 72px; gap: 8px; }
  .topbar-title { flex: 1; }
  .topbar .account-tools { order: 3; width: 100%; gap: 10px; flex-wrap: wrap; }
  .topbar .signed-in-email { max-width: min(140px, 45vw); }
  .account-tools .language-picker { margin-left: auto; }
  .language-picker > span { display: none; }
  .language-picker select { max-width: 158px; font-size: .75rem; }
  .topbar > .btn { order: 2; }
  .content { padding: 28px 20px calc(100px + env(safe-area-inset-bottom, 0px)); }
  .page-heading { flex-direction: column; gap: 20px; margin-bottom: 24px; }
  .page-heading h1 { font-size: 1.875rem; }
  .page-heading > .actions { width: 100%; flex-wrap: wrap; }
  .page-heading > .actions .btn { flex: 1; min-width: 120px; }
  .grid { grid-template-columns: 1fr; padding: 0; gap: 16px; }
  .card-body { padding-bottom: 22px; }
  .panel { padding: 20px; }
  .columns { grid-template-columns: 1fr; }
  .week-summary { gap: 16px; }
  .week-navigate { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; }
  .week-prev, .week-next { min-width: 44px; padding: 10px; }
  .week-prev > span, .week-next > span { display: none; }
  .week-title { font-size: 1rem; }
  .week-tools { gap: 6px; }
  .week-tools .btn { font-size: .75rem; padding: 8px 10px; }
  .plan-meal-toggles { width: 100%; flex: auto; }
  .progress { width: 100%; max-width: none; }
  .plan-labels { display: none; }
  .plan-day { display: block; padding: 0 16px 16px; margin: 0; border-radius: 0; }
  .day-label { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; padding: 20px 0 12px; }
  .day-label strong { font-size: 1rem; }
  .meal-slot { border: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) 44px; }
  .meal-slot .meal-cell { padding: 16px 8px 16px 0; min-height: 104px; }
  .meal-cell strong { font-size: 1rem; }
  .meal-label-mobile { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--muted); }
  .meal-label-mobile svg { width: 18px; height: 18px; }
  .meal-slot-actions { flex-direction: column; align-self: center; gap: 0; padding: 0; }
  .meal-slot-actions button { width: 44px; height: 44px; }
  .week-footer { flex-wrap: wrap; gap: 12px; }
  .control-search { width: 100%; min-width: 100%; }
  .control-field { min-width: 120px; }
  .tag-filter-options { grid-template-columns: 1fr; }
  .list-row { flex-wrap: wrap; gap: 12px; }
  .list-main { min-width: min(180px, 100%); }
  .list-row > .btn { margin-left: auto; }
  .ingredient-row { grid-template-columns: minmax(0, 1fr) 80px 44px; gap: 8px; }
  .ingredient-editor-row { padding: 12px 0; }
  .meal-option { flex-wrap: wrap; }
  .meal-option-actions { width: 100%; }
  dialog { padding: 20px; max-width: calc(100vw - 24px); }
  .login-page { display: block; }
  .onboarding-story { padding: 0; }
  .welcome-brand-row { gap: 12px; margin-bottom: 0; }
  .welcome-brand-row .language-picker { order: 2; margin-left: auto; }
  .welcome-brand-row .brand { font-size: 1rem; }
  .welcome-brand-row .brand-logo { width: 30px; height: 30px; }
  .onboarding-story .tour-copy h1 { font-family: inherit; font-weight: 750; font-size: 2rem; }
  .tour-copy { min-height: 0; margin-bottom: 22px; }
  .onboarding-story .tour-description { margin: 0; font-size: .9375rem; }
  .tour-art { padding: 10px; border-radius: 10px; }
  .demo-week th, .demo-week td { padding: 12px 6px; font-size: .6875rem; }
  .demo-week td svg { width: 27px; height: 27px; }
  .demo-heading { padding: 12px; }
  .tour-navigation { gap: 10px; margin-top: 16px; }
  .tour-dots { gap: 4px 14px; }
  .tour-dots button { font-size: .75rem; }
  .login-form-area { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .login-form { max-width: 440px; }
}
@media (max-width: 360px) {
  .content { padding-inline: 14px; }
  .onboarding-story { padding-inline: 0; }
  .welcome-brand-row { align-items: start; }
  .welcome-brand-row .brand { font-size: .9375rem; }
  .welcome-brand-row .language-picker { margin-left: 0; }
  .topbar .account-tools { gap: 8px; }
}

.demo-meal { border: 0; background: transparent; width: 100%; min-height: 44px; cursor: pointer; padding: 4px; color: #176b5b; }
.demo-meal:hover { background: #e3eee8; }
.demo-meal svg { margin: auto !important; }
.demo-recipe > .app-icon:last-child { width: 20px; height: 20px; margin-left: auto; }

@media (max-width: 700px) { .welcome-login-shortcut { display: inline-flex; align-items: center; min-height: 44px; font-size: .8125rem; order: 3; } }

.meal-cell.empty small { display: none; }
@media (max-width: 700px) {
  .topbar-title, .topbar .signed-in-email { display: none; }
  .topbar .account-tools { justify-content: space-between; }
  .account-tools .language-picker { margin-left: 0; }
  .topbar .status { flex: 1; }
  .meal-cell.empty .meal-label-mobile { display: flex; }
}

/* Shared alignment axes. Header cells and data cells use exactly the same tracks. */
.plan-labels, .plan-day { grid-template-columns: 118px repeat(var(--meal-count, 3), minmax(0, 1fr)); column-gap: 0; }
.week-prev { justify-self: start; }
.week-next { justify-self: end; }
.card:has(.dish-meta) h2 { min-height: 2.8em; }
.card-body > progress { width: 100%; }
.catalog-card-actions { padding-top: 12px; }
.catalog-card-actions > .btn { width: 100%; }
@supports not (grid-template-rows: subgrid) {
  .onboarding-story, .login-form-area { display: block; }
  #welcome-tour, .tour-slide, .login-form { display: block; }
  .tour-copy, .login-intro { min-height: 160px; margin-bottom: 24px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .welcome-layout { gap: 24px 32px; padding: 28px; }
  .login-form-area { padding-left: 24px; }
}
@media (max-width: 900px) {
  .welcome-layout { display: block; max-width: 640px; margin-top: 24px; padding: 28px; }
  .onboarding-story, .login-form-area, #welcome-tour, .tour-slide, .login-form { display: block; }
  .tour-copy, .login-intro { min-height: 0; margin-bottom: 24px; }
  .login-form-area { margin-top: 28px; padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .login-form { max-width: none; }
}
@media (max-width: 700px) {
  .welcome-brand-row { width: calc(100% - 40px); padding: 16px 0; }
  .welcome-layout { width: calc(100% - 32px); padding: 20px; margin: 16px auto 32px; }
  .welcome-brand-row .language-picker select { width: 140px; max-width: 140px; }
  .welcome-login-shortcut { margin-left: auto; }
  .tour-copy, .login-intro { margin-bottom: 20px; }
  .login-intro h2 { font-size: 2rem; }
  .week-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .week-tools .btn { width: 100%; }
  .plan-day { display: block; }
  .progress { display: block; }
  .progress progress { display: block; width: 100%; margin-top: 8px; }
}

/* Keep planning controls together, with the week navigation next to the board. */
.plan-workspace .page-heading { margin-bottom: 16px; align-items: center; gap: 12px; }
.plan-workspace .page-heading p:empty { display: none; }
.plan-workspace .page-heading h1 { font-size: 1.75rem; }
.plan-workspace .btn { min-height: 40px; padding: 8px 12px; }
.plan-workspace .week-summary { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; padding-bottom: 12px; }
.plan-workspace .week-tools { grid-column: auto; display: flex; justify-content: flex-start; gap: 6px; width: auto; }
.plan-workspace .week-tools .btn { width: auto; font-size: .8125rem; }
.plan-workspace .plan-meal-toggles { justify-content: flex-end; gap: 4px; }
.plan-workspace .plan-meal-toggles .btn { font-size: .8125rem; padding: 8px 10px; }
.plan-workspace .progress { grid-column: 1 / -1; display: flex; gap: 12px; }
.plan-workspace .progress progress { display: block; flex: 1; width: auto; margin: 0; }
.plan-workspace .week-navigate { padding: 10px 0; margin-bottom: 8px; border-top: 1px solid var(--line); align-items: center; }
.plan-workspace .week-title { font-size: 1rem; }
.plan-workspace .week-range { gap: 0; }
@media (max-width: 1100px) {
  .plan-workspace .week-summary { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .plan-workspace .plan-meal-toggles { justify-content: flex-start; }
}
@media (max-width: 700px) {
  .plan-workspace .page-heading { gap: 10px; margin-bottom: 12px; }
  .plan-workspace .page-heading > .actions { gap: 6px; }
  .plan-workspace .page-heading > .actions .btn { min-width: 0; font-size: .8125rem; }
  .plan-workspace .week-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .plan-workspace .week-tools .btn { justify-content: flex-start; }
  .plan-workspace .plan-meal-toggles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-workspace .plan-meal-toggles .btn { padding: 8px 4px; font-size: .75rem; gap: 4px; }
  .plan-workspace .plan-meal-toggles .app-icon { width: 18px; height: 18px; }
  .plan-workspace .week-prev, .plan-workspace .week-next { min-height: 44px; padding: 10px; }
}

/* Android installation is visible before the tour and browser sign-in form. */
.android-promo { width: calc(100% - 64px); max-width: 1160px; margin: 24px auto 0; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-radius: 16px; background: #123f34; color: #fff; box-shadow: 0 10px 28px #123f3418; }
.android-promo-copy { display: flex; align-items: center; gap: 20px; min-width: 0; }
.android-promo-icon { flex: 0 0 64px; width: 64px; height: 64px; padding: 12px; border-radius: 16px; background: #d4f2df; }
.android-promo h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.035em; color: #fff; }
.android-promo p { margin: 0; max-width: 55ch; font-size: .9375rem; line-height: 1.6; color: #e0eee7; }
.android-promo-button { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 56px; padding: 16px 24px; border: 2px solid transparent; border-radius: 10px; background: #e8f7a3; color: #123f34; font-size: 1rem; font-weight: 750; line-height: 1.3; text-decoration: none; text-align: center; }
.android-promo-button:hover { background: #f3ffcb; color: #123f34; text-decoration: none; }
.android-promo-button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@media (max-width: 900px) { .android-promo { align-items: flex-start; flex-direction: column; gap: 20px; } }
@media (max-width: 700px) {
  .android-promo { width: calc(100% - 32px); margin-top: 16px; padding: 20px; gap: 18px; }
  .android-promo-copy { align-items: flex-start; gap: 14px; }
  .android-promo-icon { flex-basis: 44px; width: 44px; height: 44px; padding: 8px; border-radius: 12px; }
  .android-promo h2 { font-size: 1.375rem; }
  .android-promo p { font-size: .875rem; }
  .android-promo-button { width: 100%; min-height: 54px; }
}

.sidebar-android-link { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; gap: 8px; text-align: center; padding: 14px 12px; border: 1px solid #bad3aa; border-radius: 10px; background: #e8f7a3; color: #123f34; text-decoration: none; line-height: 1.4; }
.sidebar-android-link img { flex-shrink: 0; }
.sidebar-android-link > span { min-width: 0; max-width: 100%; }
.sidebar-android-link small, .sidebar-android-link strong { display: block; }
.sidebar-android-link small { font-size: .6875rem; }
.sidebar-android-link strong { font-size: .8125rem; margin-top: 3px; }
.sidebar-android-link:hover { background: #f3ffcb; color: #123f34; text-decoration: none; }
.sidebar-android-link:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
@media (max-width: 700px) {
  .sidebar-android-link { flex-direction: row; gap: 12px; margin-top: 14px; padding: 12px 14px; }
}
