/* mobile-first.css */
input:not([type=checkbox]):not([type=radio]):not([type=hidden]) { min-height: 48px; }
/* Text enlargement must reflow words and controls instead of widening the page. */
h1, h2, h3 { overflow-wrap: anywhere; }
.customer-workspace .customer-chat .meal-tabs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 5.5rem), 1fr)); }
.customer-workspace .customer-chat .meal-tabs a { min-width: 0; overflow-wrap: anywhere; }
.completed-chef-card { flex-wrap: wrap; }
.completed-chef-card > div { flex: 1 1 10rem; min-width: 0; }
.desktop-chef-access { display: none !important; }
.client-copy time { color: #536158; font-size: .75rem; }
.client-unread, .client-preview, .client-threads a span, .inbox-footnote { font-size: .8rem; }
.client-thread-group > summary { min-height: 44px; display: flex; align-items: center; gap: 8px; }
.client-thread-group > summary::before { content: '▸'; }
.client-thread-group[open] > summary::before { content: '▾'; }
.client-threads a { min-height: 48px; justify-content: center; }
.working-day { min-height: 44px; }
.working-day-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.calendar-grid a { min-height: 44px; }
.working-times { gap: 12px; }
.field input[type=checkbox], .field input[type=radio] { flex-shrink: 0; }
.mobile-error-summary { border: 2px solid var(--red); border-radius: 12px; padding: 16px; margin-block: 0 24px; background: var(--paper); }
.mobile-error-summary h2 { font: 700 1.1rem/1.4 Arial, sans-serif; letter-spacing: normal; margin: 0 0 8px; }
.mobile-error-summary ul { margin: 0; padding-left: 22px; }
.mobile-error-summary a { display: inline-block; padding-block: 8px; color: var(--green-dark); }
.mobile-chat-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.mobile-chat-toolbar a, .mobile-chat-toolbar button { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--green); font: 600 .9rem/1.4 Arial, sans-serif; }
.inbox-mobile-ready.has-conversation { display: flex; flex-direction: column; gap: 0; }
.inbox-mobile-ready.has-conversation > .chef-inbox-sidebar { display: none; position: static; width: 100%; margin-bottom: 20px; }
.inbox-mobile-ready.has-conversation.show-conversations > .chef-inbox-sidebar { display: block; }
.inbox-mobile-ready.has-conversation > .chef-conversation-pane, .inbox-mobile-ready.has-conversation > .customer-chat { width: 100%; min-width: 0; }
.inbox-mobile-ready.has-conversation .inbox-back { display: none; }
.inbox-mobile-ready .client-list { max-height: none; }
.inbox-mobile-ready.show-conversations .client-list { max-height: 55vh; overflow-y: auto; }
body.keyboard-open .booking-action-bar { display: none !important; }
body.keyboard-open { padding-bottom: 16px !important; }
body.keyboard-open .message-composer { margin-bottom: 16px; }
@media (min-width: 640px) {
.working-day-options { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
.desktop-chef-access { display: flex !important; }
.mobile-chat-toolbar { display: none; }
.inbox-mobile-ready.has-conversation { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; }
.inbox-mobile-ready.has-conversation > .chef-inbox-sidebar { display: block; position: sticky; top: 16px; margin-bottom: 0; }
.inbox-mobile-ready.has-conversation .inbox-back { display: inline-flex; }
.inbox-mobile-ready .client-list, .inbox-mobile-ready.show-conversations .client-list { max-height: 58vh; overflow-y: auto; }
}
@media (min-width: 1280px) {
.inbox-mobile-ready.has-conversation { grid-template-columns: 300px minmax(0, 1fr); }
}
@media (max-width: 1023px) {
.dashboard-grid, .calendar-editors, .customer-details-grid { grid-template-columns: minmax(0, 1fr); }
.chef-inbox-layout, .customer-inbox-layout { grid-template-columns: minmax(0, 1fr); }
.chef-inbox-sidebar { position: static; }
.inbox-welcome { min-height: 180px; }
.conversation-layout { grid-template-columns: minmax(0, 1fr); }
.conversation-overview { position: static; }
.conversation-summary { gap: 12px; }
}
@media (max-width: 639px) {
.day-strip { grid-template-columns: repeat(auto-fit, minmax(min(100%, 3rem), 1fr)); }
.day-strip a { min-width: 0; }
.benefit-row > div { min-width: 0; overflow-wrap: anywhere; }
.everyday-section { grid-template-columns: minmax(0, 1fr); }
.everyday-intro { min-width: 0; overflow-wrap: anywhere; }
.everyday-benefits { min-width: 0; }
.request-layout .form-panel { padding: 20px; }
.request-steps { gap: 4px; margin-bottom: 24px; }
.request-steps li { padding-block: 8px 12px; font-size: .75rem; line-height: 1.4; }
.request-steps a { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 64px; }
.request-steps li span { width: 28px; height: 28px; margin: 0 0 6px; }
.request-layout { gap: 24px; }
.request-aside { padding: 24px; }
.working-day-options { gap: 8px; }
.working-day > span[aria-hidden] { min-height: 44px; }
.working-times { grid-template-columns: minmax(0, 1fr); }
.message { max-width: 100%; padding: 14px; }
.message-meta { flex-wrap: wrap; gap: 4px 12px; font-size: .875rem; }
.meal-tabs { gap: 0; flex-wrap: wrap; }
.meal-tabs a { padding: 12px 10px; min-height: 44px; font-size: .875rem; }
.client-thread-group > summary { margin-left: 16px; }
.client-threads { padding-left: 24px; }
.conversation-heading h1, .conversation-heading h2 { font-size: 1.6rem; }
.conversation-summary { padding: 18px; }
.conversation-state { padding-inline: 0; }
.customer-workspace { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.customer-workspace:has(.booking-action-bar) .booking-action-bar { bottom: calc(88px + env(safe-area-inset-bottom)); }
.customer-workspace:has(.booking-action-bar) { padding-bottom: calc(230px + env(safe-area-inset-bottom)); }
.booking-action-bar { padding: 12px 16px; gap: 8px; }
.booking-action-note { font-size: .8rem; }
.booking-action-button { min-width: 0; white-space: normal; }
.calendar-grid { gap: 4px; }
.calendar-grid > * { min-width: 0; }
.calendar-grid a { padding-inline: 2px; }
}

/* Consent choices stay readable and tappable at narrow mobile widths. */
.request-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
[data-allergy-form] [hidden] { display: none !important; }
[data-allergy-form] :is(#id_has_allergies, #id_allergens) {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem .75rem;
}
[data-allergy-form] :is(#id_has_allergies, #id_allergens) label {
  display: flex; align-items: center; gap: .5rem; min-height: 44px;
  font-size: .9375rem; font-weight: 400; overflow-wrap: anywhere;
}
[data-allergy-form] :is(#id_has_allergies, #id_allergens) input {
  width: 20px; height: 20px; flex: 0 0 20px; margin: 0;
}
[data-allergy-form] textarea { width: 100%; min-width: 0; }
label.consent-choice {
  display: flex; align-items: flex-start; gap: .5rem; min-height: 44px;
  margin-block: .5rem .25rem; padding: .25rem 0; border: 0;
  font-size: .9375rem; font-weight: 400; line-height: 1.5; cursor: pointer;
}
label.consent-choice input[type="checkbox"] {
  flex: 0 0 20px; width: 20px; height: 20px; margin: .125rem 0 0;
}
label.consent-choice span { min-width: 0; overflow-wrap: anywhere; }
.allergy-sharing { margin-block: .75rem; }
.account-form label.consent-choice { font-weight: 400; padding-block: .25rem; }
.account-form label.consent-choice > input[type="checkbox"] {
  flex: 0 0 20px; min-width: 20px; width: 20px; height: 20px; margin: .125rem 0 0;
}
:is(.customer-preferences-form, .customer-browse-form) .field > .helptext[id] {
  display: block;
}
.consent-choice ~ :is(.helptext, .fine) { margin-block: .25rem .5rem; font-size: .8125rem; }
.consent-choice ~ :is(.helptext, .fine) a { display: inline-flex; align-items: center; min-height: 24px; }

/* navigation.css */
/* Shared navigation: usable without JavaScript; enhanced collapse on small screens. */
/* Reserve space and focus clearance for the homepage's persistent booking action. */
.home-page { --home-cta-clearance: calc(6.5rem + env(safe-area-inset-bottom, 0px)); padding-bottom: var(--home-cta-clearance); }
html:has(.home-page) { scroll-padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px)); }
.home-page :is(main, header, footer) :is(a, button, input, select, textarea, summary, [tabindex]) { scroll-margin-block: 1rem var(--home-cta-clearance); }
.home-cta { position: fixed; inset: auto 0 0; z-index: 40; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--cream); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgb(23 61 46 / 8%); }
.home-cta .shell { display: flex; justify-content: center; }
.home-cta .button { width: 100%; min-height: 48px; justify-content: center; text-align: center; font-size: 1rem; }
@media (min-width: 768px) {
  .home-cta .shell { justify-content: flex-end; }
  .home-cta .button { width: auto; min-width: 220px; }
}
@media print {
  .home-cta { display: none; }
  .home-page { padding-bottom: 0; }
}
.utility-bar { background: var(--green); color: var(--cream); }
.utility-inner { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding-block: 6px; font-size: .75rem; text-align: center; flex-wrap: wrap; }
.utility-inner nav { display: flex; align-items: center; gap: 18px; }
.utility-inner a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cream); text-decoration: none; }
.utility-inner a:hover { text-decoration: underline; }
.utility-inner .desktop-chef-access { display: none; }
.utility-divider { width: 1px; height: 13px; background: #789684; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; vertical-align: middle; margin-right: 7px; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 80px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.brand { width: 86px; flex-shrink: 0; }
.brand img { mix-blend-mode: darken; }
.site-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; font-size: .875rem; min-width: 0; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; overflow-wrap: anywhere; }
.site-header nav a:hover { text-decoration: underline; }
.site-header nav form { margin: 0; }
.site-header .account-nav { justify-content: flex-end; max-width: 100%; flex: 1; }
.site-header .account-nav .button { padding: 10px 14px; }
.workspace-brand-label, .customer-brand-label, .admin-brand-label { display: none; }
.public-navigation { display: flex; flex-direction: column; gap: 12px; width: 100%; padding-block: 8px; }
/* Match the enhanced mobile menu before DOMContentLoaded, avoiding a content jump. */
@media (max-width: 1023px) {
  .navigation-js .public-navigation:not([data-nav-ready]) { display: none; }
  .navigation-js .public-menu-toggle[hidden] { display: inline-flex !important; }
}
.public-navigation .explore-nav, .public-navigation .account-nav, .public-navigation .mobile-chef-access { width: 100%; justify-content: flex-start; gap: 8px 16px; }
.public-navigation .mobile-chef-access { padding-top: 12px; border-top: 1px solid var(--line); }
/* Keep customer actions first in both reading order and the mobile menu. */
.public-navigation .customer-access { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.public-navigation .customer-access .button { width: 100%; min-width: 0; min-height: 48px; justify-content: center; gap: 12px; text-align: center; font-size: 1rem; white-space: normal; }
.public-navigation .customer-access .button > span { min-width: 0; }
.public-navigation .customer-sign-in { background: transparent; color: var(--green); border: 1px solid var(--green); }
.public-navigation .customer-sign-in:hover { background: var(--soft); }
.public-navigation .explore-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 4px; }
.public-navigation .mobile-chef-access { gap: 4px 20px; font-size: .875rem; }
.chef-access-label { flex-basis: 100%; color: var(--muted); font-size: .75rem; font-weight: 600; }
/* Compact homepage menu for signed-in customers and chefs, with full-size touch targets. */
:is(.chef-public-navigation, .customer-public-navigation) .account-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 10px; }
:is(.chef-public-navigation, .customer-public-navigation) .account-nav > * { min-width: 0; }
:is(.chef-public-navigation, .customer-public-navigation) .account-nav :is(a, button) { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--green); border-radius: 8px; font-size: .9rem; font-weight: 600; line-height: 1.4; text-align: center; text-decoration: none; white-space: normal; overflow-wrap: anywhere; }
:is(.chef-public-navigation, .customer-public-navigation) .account-nav a { background: var(--green); color: white; }
:is(.chef-public-navigation, .customer-public-navigation) .account-nav a:hover { background: var(--green-dark); color: white; text-decoration: none; }
:is(.chef-public-navigation, .customer-public-navigation) .account-nav button:hover { background: var(--soft); }
:is(.chef-public-navigation, .customer-public-navigation) .explore-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 8px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
:is(.chef-public-navigation, .customer-public-navigation) .explore-nav a { justify-content: center; min-width: 0; min-height: 48px; padding: 8px 4px; border-radius: 8px; background: var(--soft); line-height: 1.4; text-align: center; }
.public-menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 80px; padding: 10px 16px; border: 1px solid var(--green); border-radius: 8px; color: var(--green); background: transparent; font: 600 1rem/1.4 var(--font-body); }
.workspace-menu-toggle { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-block: 12px; padding: 12px 16px; background: var(--green); color: white; border: 0; border-radius: 10px; font: 600 1rem/1.4 var(--font-body); text-align: left; overflow-wrap: anywhere; }
.workspace-menu-toggle span:last-child { font-weight: 400; white-space: nowrap; }
.chef-main-nav, .admin-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding-block: 8px 16px; border-bottom: 1px solid var(--line); }
.chef-tabs.chef-main-nav { margin: 0 auto; padding-block: 8px 16px; }
.chef-main-nav a, .admin-nav a { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 16px; border: 0; border-radius: 9px; font-size: .9rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.chef-main-nav a:hover, .admin-nav a:hover { background: var(--soft); }
.chef-main-nav a[aria-current="page"], .admin-nav a[aria-current="page"] { background: var(--green); color: var(--paper); }
.chef-main-nav a[aria-current="page"] .unread-count { background: #bd3525; color: white; }
body.customer-workspace { --mobile-nav-clearance: calc(var(--customer-nav-height, 7.5rem) + var(--customer-action-height, 0px) + 1rem); padding-bottom: var(--mobile-nav-clearance); }
/* Native Tab/anchor scrolling must leave focused controls above the fixed bar. */
.customer-workspace :is(main, .customer-footer) :is(a, button, input, select, textarea, summary, [tabindex]) { scroll-margin-block: 1rem var(--mobile-nav-clearance); }
.customer-main-nav.shell { position: fixed; inset: auto 0 0; width: 100%; max-width: none; margin: 0; padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0px)); z-index: 100; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr) minmax(0, .9fr) minmax(0, 1.4fr) minmax(44px, .75fr); gap: 2px; background: var(--paper); border-top: 1px solid #bdcbbd; box-shadow: 0 -4px 18px #173d2e12; }
.customer-main-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 62px; padding: 6px 1px; border-radius: 8px; text-decoration: none; font-size: .75rem; font-weight: 600; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
.customer-main-nav .customer-nav-menu-label { display: none; }
.customer-main-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; flex-shrink: 0; }
.customer-main-nav a:hover { background: var(--soft); }
.customer-main-nav a[aria-current="page"] { background: var(--green); color: var(--paper); text-decoration: underline; text-underline-offset: 5px; }
.customer-main-nav .unread-count { min-width: 17px; padding: 1px 4px; font-size: 11px; }
body.keyboard-open .customer-main-nav { display: none; }
@media (max-width: 767px) {
  body.customer-workspace:has(.booking-action-bar) { padding-bottom: var(--mobile-nav-clearance); }
  .customer-workspace:has(.booking-action-bar) .booking-action-bar { bottom: var(--customer-nav-height, calc(7.5rem + env(safe-area-inset-bottom, 0px))); }
}
.customer-footer, .chef-footer, .admin-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-block: 24px; border-top: 1px solid var(--line); font-size: .875rem; }
.customer-footer a, .chef-footer a, .admin-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer { background: #eeeede; border-top: 1px solid var(--line); padding: 35px 0 22px; color: var(--muted); font-size: .85rem; }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; padding-bottom: 25px; }
.footer-about, .footer-grid > :last-child { grid-column: 1 / -1; }
.footer-wordmark { font: 2rem/1.2 var(--font-display); letter-spacing: -.05em; text-decoration: none; }
.footer-wordmark em { color: var(--red); font-style: normal; }
.footer-about p { margin-top: 15px; }
.footer-grid h2 { font: 600 .85rem/1.4 var(--font-body); letter-spacing: 0; margin: 8px 0 12px; color: var(--green); }
.footer-links a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid #d2d7c9; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; font-size: .75rem; }
@media (min-width: 640px) {
  .public-navigation .customer-access { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-navigation .explore-nav { display: flex; gap: 8px 20px; }
  .brand { width: 102px; }
  .site-header { min-height: 94px; gap: 20px; }
  .site-footer { padding-top: 50px; }
}
@media (min-width: 768px) {
  body.customer-workspace { --mobile-nav-clearance: 1rem; padding-bottom: 18px; }
  .customer-main-nav.shell { position: static; width: min(var(--content-width), calc(100% - var(--page-gutter) * 2)); margin-inline: auto; padding: 16px 0; display: flex; flex-wrap: wrap; gap: 12px; background: transparent; border-top: 0; border-bottom: 1px solid var(--line); box-shadow: none; }
  .customer-main-nav a { flex-direction: row; min-height: 52px; padding: 12px 20px; gap: 10px; border-radius: 12px; font-size: 1rem; }
  .customer-main-nav .unread-count { font-size: .75rem; }
  .customer-main-nav .customer-nav-menu-label { display: inline; }
  body.keyboard-open .customer-main-nav { display: flex; }
  .workspace-brand-label, .customer-brand-label, .admin-brand-label { display: block; margin-right: auto; color: var(--muted); font-size: .85rem; }
}
@media (min-width: 1024px) {
  .utility-inner { justify-content: space-between; padding-block: 0; font-size: .75rem; }
  .utility-inner .desktop-chef-access { display: flex; }
  .site-header { flex-wrap: nowrap; min-height: 108px; padding-block: 18px; gap: 24px; }
  .brand { width: 116px; }
  .site-header nav { gap: 20px; font-size: .82rem; }
  .site-header .account-nav { flex: initial; }
  .public-navigation { display: contents; }
  .public-navigation .customer-access { display: flex; gap: 12px; }
  .public-navigation .customer-access .button { width: auto; }
  .public-navigation .explore-nav { margin-left: auto; }
  .public-navigation .explore-nav, .public-navigation .account-nav { width: auto; justify-content: flex-end; gap: 20px; }
  :is(.chef-public-navigation, .customer-public-navigation) .account-nav { display: flex; gap: 10px; }
  :is(.chef-public-navigation, .customer-public-navigation) .account-nav :is(a, button) { width: auto; }
  :is(.chef-public-navigation, .customer-public-navigation) .explore-nav { display: flex; gap: 16px; padding: 0; border: 0; }
  :is(.chef-public-navigation, .customer-public-navigation) .explore-nav a { padding: 8px 0; background: transparent; }
  .public-menu-toggle, .workspace-menu-toggle, .public-navigation .mobile-chef-access { display: none; }
  .chef-main-nav, .admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 14px; }
  .chef-tabs.chef-main-nav { padding-block: 14px; }
  .chef-main-nav a, .admin-nav a { min-height: 44px; padding: 12px 16px; font-size: .88rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
  .footer-about, .footer-grid > :last-child { grid-column: auto; }
  .footer-wordmark { font-size: 2.25rem; }
}
@media (min-width: 1280px) {
  .brand { width: 132px; }
  .chef-workspace .brand, .customer-workspace .brand { width: 102px; }
  .admin-workspace .brand { width: 98px; }
  .footer-grid { gap: 50px; }
}

/* components.css */
.saved-request-detail { max-width: 48rem; margin-block-end: 72px; }
/* Stage 2: narrow-screen defaults; larger layouts are progressive enhancements. */
.request-layout, .profile-layout, .calendar-editors { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.request-layout > *, .profile-layout > *, .calendar-editors > *, .recipe-editor, .ingredient-main > * { min-width: 0; }
.discovery-heading { margin-bottom: 24px; }
.request-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0 0 12px; padding: 0; }
.request-steps li { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 48px; padding: 0 0 8px; }
.request-steps li a { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 48px; gap: 8px; text-align: center; }
.request-steps .step-number { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; margin: 0; line-height: 1; }
.request-steps .step-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.request-step-caption { margin: 0 0 24px; font-weight: 700; color: var(--green, #204f3c); }
.request-aside { display: block; }
.form-panel, .chef-form { padding: 24px 16px; }
.form-panel input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.form-panel select, .form-panel textarea,
.chef-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .chef-form select, .chef-form textarea,
.calendar-editors input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .calendar-editors select,
.meal-workspace input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .meal-workspace select, .meal-workspace textarea,
.profile-meal-preferences select, .profile-meal-preferences textarea,
.message-composer textarea { min-width: 0; max-width: 100%; font-size: 16px; }
.form-panel textarea, .chef-form textarea, .message-composer textarea { width: 100%; }
.form-panel .field > label, .chef-form .field > label { line-height: 1.5; }
.choice-grid, .cuisine-grid, .allergens { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.choice-tile, .cuisine-grid > label, .allergens > label { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px; overflow-wrap: anywhere; }
.choice-tile input, .cuisine-grid input, .allergens input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; }
.form-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.form-actions > .button, .form-actions > button, .form-actions > a { flex: 1 1 100px; justify-content: center; min-height: 48px; }
.quantity-grid { grid-template-columns: 48px minmax(0, 110px) 48px; max-width: 100%; }
.calculation, .request-summary { padding: 18px; }
.chef-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; padding: 0; }
.chef-steps li { min-width: 0; padding: 0; }
.chef-steps a { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 8px 4px; font-size: .875rem; overflow-wrap: anywhere; }
.chef-steps a span { flex: 0 0 auto; }
.chef-result { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; padding: 20px 16px; align-items: start; }
.chef-result > * { min-width: 0; }
.chef-result .chef-photo-card { width: 100%; }
.chef-result .chef-portrait { width: 80px; height: 100px; object-fit: cover; }
.chef-result h2, .chef-result h3 { overflow-wrap: anywhere; }
.chef-result .button { min-height: 48px; padding: 12px 14px; white-space: normal; text-align: center; }
.chef-result .certificate-badges { gap: 6px; }
.profile-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.profile-intro .profile-photo-card { width: 100%; max-width: 420px; margin-inline: auto; }
.profile-intro .profile-portrait { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.profile-price { position: static; min-width: 0; }
.profile-price-link { display: inline-flex; align-items: center; min-height: 48px; margin-top: 8px; }
#price-and-availability { scroll-margin-top: 24px; }
.food-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.food-gallery img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.profile-meal-preferences label { min-height: 48px; }
.conversation-summary { position: static; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px; }
.conversation-summary > * { min-width: 0; overflow-wrap: anywhere; }
.meal-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.meal-tabs a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 6px; text-align: center; font-size: .875rem; line-height: 1.4; }
.message { max-width: 100%; overflow-wrap: anywhere; }
.message-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.message-composer label { display: block; margin-bottom: 8px; }
.message-composer button { min-height: 48px; }
.recipe-editor { padding: 18px 14px; }
.recipe-title-fields { display: grid; grid-template-columns: minmax(0, 1fr) 68px; gap: 12px; }
.ingredient-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 10px; align-items: end; }
.ingredient-main > .editor-field:first-child { grid-column: 1 / -1; }
.ingredient-main .remove-ingredient { width: 44px; min-height: 48px; align-self: end; margin: 0; }
.ingredient-detail-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.ingredient-details > summary, .recipe-notes > summary, .more-cuisines > summary { min-height: 44px; padding-block: 10px; cursor: pointer; }
.recipe-library-actions, .library-picker { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.library-picker-fields { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; width: 100%; }
.library-picker-fields select { flex: 1 1 180px; min-width: 0; max-width: 100%; }
.recipe-library-actions button, .library-picker button, .add-ingredient, .undo-ingredient { min-height: 44px; }
.editor-final-checks label { display: flex; align-items: flex-start; gap: 10px; min-height: 48px; padding-block: 10px; line-height: 1.5; }
.editor-final-checks input[type=checkbox] { flex: 0 0 auto; margin-top: 3px; width: 20px; height: 20px; }
.editor-heading { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.shopping-items, .shopping-list { overflow-wrap: anywhere; }
.day-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.day-strip a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 62px; padding: 8px 2px; font-size: .8125rem; line-height: 1.5; }
.day-strip strong { font-size: 1rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calendar-grid > span { min-width: 0; font-size: .8125rem; text-align: center; }
.calendar-grid > a { min-height: 44px; min-width: 0; padding: 8px 2px; overflow-wrap: anywhere; }
.calendar-grid > a small { font-size: .625rem; line-height: 1.3; }
.calendar-month-navigation { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.calendar-month-navigation h3 { order: -1; flex-basis: 100%; text-align: center; margin: 0; }
.calendar-month-navigation a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
.working-day-options { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.working-day { min-width: 0; min-height: 48px; padding: 6px 1px; font-size: .75rem; text-align: center; }
.working-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.working-presets button { min-height: 44px; margin: 0; padding: 8px; }
.working-times { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.calendar-editors > .panel { margin-bottom: 0; }
.selected-day { margin-top: 24px; }
.selected-day > summary { min-height: 48px; cursor: pointer; }
.day-timeline p { display: flex; flex-wrap: wrap; column-gap: 8px; }
.selected-day .record-list li { min-width: 0; flex-wrap: wrap; gap: 12px; }
@media (min-width: 390px) {
  .choice-grid, .cuisine-grid, .allergens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chef-result { grid-template-columns: 100px minmax(0, 1fr); }
  .chef-result .chef-portrait { width: 100px; height: 125px; }
}
@media (min-width: 640px) {
  .form-panel, .chef-form { padding: 32px; }
  .request-steps { gap: 12px; margin-bottom: 32px; }
  .request-steps li { flex-direction: column; justify-content: flex-start; gap: 8px; text-align: center; }
  .request-steps .step-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; white-space: normal; font-size: .875rem; }
  .request-step-caption { display: none; }
  .form-actions > .button, .form-actions > button, .form-actions > a { flex: 0 1 auto; }
  .choice-grid, .cuisine-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chef-result { grid-template-columns: 150px minmax(0, 1fr); padding: 28px; gap: 26px; }
  .chef-result .chef-portrait { width: 150px; height: 180px; }
  .profile-intro { grid-template-columns: minmax(180px, .8fr) minmax(0, 1fr); gap: 24px; }
  .food-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .conversation-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 22px 28px; }
  .meal-tabs { display: flex; }
  .meal-tabs a { padding: 12px 20px; font-size: 1rem; }
  .recipe-editor { padding: 24px; }
  .ingredient-main { grid-template-columns: minmax(0, 1fr) 90px 100px 44px; gap: 12px; }
  .ingredient-main > .editor-field:first-child { grid-column: auto; }
  .ingredient-detail-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .working-times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calendar-month-navigation { flex-wrap: nowrap; }
  .calendar-month-navigation h3 { order: 0; flex-basis: auto; }
  .day-strip a { font-size: .9375rem; }
  .calendar-grid > a small { font-size: .75rem; }
}
@media (min-width: 1024px) {
  .request-layout { grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 40px; }
  .request-aside { display: block; }
  .profile-layout { grid-template-columns: minmax(0, 1.9fr) minmax(290px, 1fr); gap: 40px; }
  .profile-price { position: sticky; top: 20px; align-self: start; }
  .profile-price-link { display: none; }
  .calendar-editors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .request-steps *, .recipe-editor *, .day-strip * { scroll-behavior: auto; transition: none; }
}
