
/* Kitchen flow: one owner for layout, one action per phase. */
.planned-kitchen-drafts { grid-column: 1 / -1; padding: 16px; border: 1px solid #dce3f5; border-radius: 18px; background: #f7f9ff; }
.planned-kitchen-heading { display: flex; align-items: center; gap: 10px; color: #385bd6; }
.planned-kitchen-heading div { flex: 1; min-width: 0; }
.planned-kitchen-heading small,.planned-kitchen-heading strong { display: block; }
.planned-kitchen-heading em { font-size: .75rem; font-style: normal; }
.planned-kitchen-drafts article { display: flex; align-items: center; gap: 12px; padding-block: 12px; border-bottom: 1px solid #e3e7ef; }
.planned-kitchen-open { display: grid; gap: 4px; flex: 1; min-width: 0; padding: 0; color: #202331; background: none; border: 0; text-align: left; }
.planned-kitchen-open span,.planned-kitchen-open small,.planned-kitchen-drafts > p { color: #667085; font-size: .8rem; }
.planned-kitchen-remove { width: 44px; height: 44px; flex: 0 0 44px; border: 0; background: transparent; color: #667085; }
.kitchen-chef-dialog { width: min(1100px, calc(100vw - 48px)); max-width: none; max-height: 94dvh; padding: 0; border: 0; border-radius: 24px; overflow: hidden; background: #f7f8fc; }
#kitchenChefContent { width: 100%; max-height: inherit; overflow: hidden; }
.kitchen-chef-shell { box-sizing: border-box; width: 100%; max-height: 94dvh; padding: 0 28px 32px; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.kitchen-chef-header { position: sticky; top: 0; z-index: 4; display: block; margin: 0 -28px 28px; padding: 12px 28px 20px; background: #f7f8fc; border-bottom: 1px solid #e4e7ef; }
.kitchen-header-actions { display: flex; justify-content: space-between; align-items: center; min-height: 44px; margin-bottom: 8px; }
.kitchen-brand-note { color: #385bd6; font-size: .8rem; font-weight: 650; }
.kitchen-chef-header h2 { margin: 0; color: #202331; font-size: clamp(1.4rem,5vw,2rem); line-height: 1.15; letter-spacing: -.035em; }
.kitchen-chef-header p { margin: 8px 0 0; color: #667085; font-size: .9rem; line-height: 1.45; }
.kitchen-chef-header .close-button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin: 0; padding: 0; color: #536079; background: transparent; border: 0; font-size: 32px; line-height: 1; }
.kitchen-chef-header .quiet-button { min-height: 44px; margin: 0; padding: 0 12px 0 0; color: #385bd6; }
#kitchenChefForm { display: grid; gap: 20px; max-width: 560px; margin: 0 auto; padding: 0; border: 0; }
#kitchenChefForm > label { display: grid; gap: 10px; margin: 0; color: #34405a; font-size: .9rem; font-weight: 650; }
#kitchenChefForm textarea { box-sizing: border-box; width: 100%; min-height: 100px; max-height: 240px; padding: 16px; border: 1px solid #dce1ec; border-radius: 14px; background: #fff; color: #202331; font: inherit; font-size: 1rem; line-height: 1.5; resize: vertical; box-shadow: none; }
#kitchenChefForm textarea::placeholder { color: #7d8697; font-weight: 400; }
.kitchen-chef-shell .primary-button { min-height: 48px; border-radius: 12px; padding: 12px 18px; background: #385bd6; box-shadow: none; font-size: .95rem; line-height: 1.35; font-weight: 650; }
.kitchen-chef-shell .quiet-button { min-height: 44px; border-radius: 10px; font-size: .85rem; }
.kitchen-ask-button, .kitchen-cook-button { width: 100%; }
.kitchen-privacy-note { margin: -8px 0 0; color: #667085; text-align: center; font-size: .75rem; line-height: 1.5; }
.kitchen-confirm-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 12px; }
.food-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -8px; }
.food-chips button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; max-width: 100%; padding: 8px 12px; border: 1px solid #dce3f5; border-radius: 10px; color: #34405a; background: #edf1fc; font: inherit; font-size: .85rem; text-align: left; }
.food-chips span { font-size: 1.2rem; }
.kitchen-photo-actions { color: #55745c; font-size: .8rem; text-align: center; }
.kitchen-chef-error, .kitchen-chef-warning { max-width: 560px; margin: 20px auto 0; padding: 16px; border: 1px solid #efd4d8; border-radius: 12px; background: #fff4f5; color: #963b4c; font-size: .9rem; line-height: 1.5; }
.kitchen-chef-warning p { margin: 8px 0 0; }
.kitchen-recipe-studio { display: grid; gap: 16px; margin: 0; }
.kitchen-edit-foods { justify-self: start; padding-left: 0; color: #385bd6; }
.kitchen-option-rail { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; align-items: start; margin: 0; padding: 0; overflow: visible; }
.kitchen-option-card { min-width: 0; overflow: hidden; border: 1px solid #e3e7ef; border-radius: 18px; background: #fff; box-shadow: none; }
.kitchen-option-media { position: relative; display: grid; width: 100%; aspect-ratio: 16/10; margin: 0; overflow: hidden; place-items: center; background: #edf0f7; }
.kitchen-option-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kitchen-option-media > span { position: absolute; right: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 4px 8px; border-radius: 6px; color: white; background: #202331c9; font-size: .65rem; }
.kitchen-option-image-loading, .kitchen-option-image-error { display: grid; gap: 8px; justify-items: center; padding: 16px; color: #667085; text-align: center; font-size: .8rem; }
.kitchen-option-image-loading > span { width: 28px; height: 28px; border: 2px solid #d3daf0; border-top-color: #385bd6; border-radius: 50%; animation: kitchen-spin 1s linear infinite; }
.kitchen-option-body { display: grid; gap: 12px; padding: 18px; align-content: start; }
.kitchen-option-kicker { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: #667085; font-size: .75rem; text-transform: none; letter-spacing: 0; }
.kitchen-option-kicker span:last-child { color: #385bd6; }
.kitchen-option-body > h4 { margin: 0; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.025em; color: #202331; }
.kitchen-option-body > p { margin: 0; font-size: .85rem; line-height: 1.5; color: #667085; }
.kitchen-option-facts { display: flex; flex-wrap: wrap; gap: 8px 16px; color: #536079; font-size: .8rem; }
.kitchen-option-photo-food, .kitchen-option-label-note { font-size: .75rem !important; }
.kitchen-option-details { border-top: 1px solid #e3e7ef; }
.kitchen-option-details summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: 8px; font-size: .85rem; color: #34405a; cursor: pointer; }
.kitchen-option-details h5 { margin: 16px 0 8px; font-size: .9rem; text-transform: none; letter-spacing: 0; }
.kitchen-option-details ul, .kitchen-option-details ol { display: grid; gap: 12px; padding-left: 20px; margin: 0 0 12px; font-size: .85rem; line-height: 1.5; color: #536079; }
.kitchen-option-details em { display: inline; color: #42674d; font-style: normal; font-size: .75rem; }
.kitchen-option-choose { width: 100%; }
.kitchen-studio-note { margin: 0; color: #667085; font-size: .75rem; line-height: 1.5; }
.kitchen-chef-draft { max-width: 680px; margin: 0 auto; padding: 0; background: none; border: 0; box-shadow: none; }
.kitchen-chef-draft h3 { margin: 8px 0 12px; font-size: 1.75rem; line-height: 1.2; letter-spacing: -.035em; }
.kitchen-chef-draft h4 { margin: 28px 0 12px; font-size: 1.1rem; }
.kitchen-chef-draft > p, .kitchen-chef-draft > ul, .kitchen-chef-draft > ol { color: #536079; font-size: .95rem; line-height: 1.6; }
.kitchen-chef-draft > ul, .kitchen-chef-draft > ol { display: grid; gap: 14px; padding-left: 24px; }
.kitchen-chef-draft em { color: #42674d; font-size: .8rem; font-style: normal; }
.kitchen-cook-button { margin: 20px 0; }
.kitchen-draft-hero { position: relative; aspect-ratio: 16/10; margin: 0 0 20px; overflow: hidden; border-radius: 16px; background: #edf0f7; }
.kitchen-draft-hero img { width: 100%; height: 100%; object-fit: cover; }
.kitchen-draft-hero figcaption { position: absolute; right: 8px; bottom: 8px; padding: 4px 8px; color: white; background: #202331c9; font-size: .65rem; border-radius: 6px; }
.ai-draft-label { color: #667085; font-size: .75rem; text-transform: none; letter-spacing: 0; }
.kitchen-chef-nutrition { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; padding: 16px 0; border-block: 1px solid #e3e7ef; background: none; }
.kitchen-chef-nutrition > div { display: grid; gap: 4px; }
.kitchen-chef-nutrition strong { font-size: 1rem; color: #34405a; }
.kitchen-chef-nutrition small { color: #667085; font-size: .75rem; }
.kitchen-chef-save-row, .kitchen-chef-draft-actions, .kitchen-draft-plan { display: grid; gap: 12px; padding: 16px 0; margin: 16px 0; border-block: 1px solid #e3e7ef; background: none; }
.kitchen-chef-save-row span, .kitchen-chef-draft-actions small, .kitchen-draft-plan small { color: #667085; font-size: .8rem; line-height: 1.4; }
.kitchen-draft-plan > div, .kitchen-draft-plan-heading > div { display: grid; gap: 4px; }
.kitchen-draft-plan-heading > span { display: none; }
.kitchen-draft-plan form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.kitchen-draft-plan label { display: grid; gap: 8px; font-size: .85rem; }
.kitchen-draft-plan select, .kitchen-draft-plan input { width: 100%; min-width: 0; min-height: 44px; padding: 8px; border: 1px solid #dce1ec; border-radius: 8px; background: #fff; font: inherit; font-size: 1rem; }
.kitchen-draft-plan form > p, .kitchen-draft-plan form > div { grid-column: 1/-1; font-size: .8rem; line-height: 1.5; }
.kitchen-draft-plan form > div { display: flex; flex-wrap: wrap; gap: 12px; }
.kitchen-chef-question { margin: 20px 0; padding: 16px; border-radius: 12px; background: #edf1fc; font-size: .9rem; }
.kitchen-chef-question div { display: flex; flex-wrap: wrap; gap: 12px; }
.kitchen-chef-disclaimer, .kitchen-chef-draft .source-note { font-size: .75rem !important; color: #667085; line-height: 1.5; }
@keyframes kitchen-spin { to { transform: rotate(360deg); } }
@media (max-width: 820px) {
  .kitchen-chef-dialog { position: fixed; inset: 0; width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .kitchen-chef-shell { height: 100dvh; max-height: 100dvh; padding: 0 20px calc(24px + env(safe-area-inset-bottom)); }
  .kitchen-chef-header { margin: 0 -20px 24px; padding: max(8px,env(safe-area-inset-top)) 20px 16px; }
  .kitchen-option-rail { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .kitchen-option-media { aspect-ratio: 2/1; }
}
@media (max-width: 360px) { .kitchen-chef-shell { padding-inline: 16px; } .kitchen-chef-header { margin-inline: -16px; padding-inline: 16px; } .kitchen-chef-nutrition { grid-template-columns: repeat(2,minmax(0,1fr)); } .kitchen-draft-plan form { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .kitchen-option-image-loading > span { animation: none; } }
