#chef-page .chef-recipe-bubble { width:100%; max-width:calc(100% - 38px); white-space:normal; padding:16px; overflow-wrap:anywhere; }
.chef-recipe-card { margin-top:16px; padding:18px; border:1px solid var(--ws-line); border-radius:18px; background:var(--ws-card); }
.chef-recipe-name { color:var(--ws-ink); font-family:'Space Grotesk',sans-serif; font-size:20px; font-weight:700; line-height:1.3; letter-spacing:-.025em; }
.chef-recipe-estimate { margin-top:7px; color:var(--ws-muted); font-size:11px; }
.chef-recipe-nutrition { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:18px 0; }
.chef-recipe-nutrition strong { display:block; color:var(--ws-ink); font-size:18px; font-weight:700; }
.chef-recipe-nutrition span { display:block; color:var(--ws-muted); font-size:10px; margin-top:2px; }
.chef-recipe-details { border-block:1px solid var(--ws-line); padding:12px 0; font-size:12px; line-height:1.7; color:var(--ws-muted); }
.chef-recipe-details summary { color:var(--ws-ink); font-weight:600; cursor:pointer; min-height:24px; }
.chef-recipe-details h4 { color:var(--ws-ink); font-weight:600; margin-top:12px; }
.chef-recipe-details ul,.chef-recipe-details ol { margin-top:8px; padding-left:18px; }
.chef-recipe-details ul { list-style:disc; }.chef-recipe-details ol { list-style:decimal; }
.chef-recipe-details li + li { margin-top:6px; }
.chef-recipe-controls { display:flex; align-items:flex-end; gap:12px; margin-top:16px; }
.chef-recipe-controls label { flex:1; min-width:0; font-size:11px; color:var(--ws-muted); font-weight:600; }
.chef-recipe-servings { display:block; width:100%; min-height:44px; padding:9px 12px; margin-top:6px; border:1px solid var(--ws-line); border-radius:12px; background:var(--ws-soft); color:var(--ws-ink); font-size:13px; }
.chef-recipe-log { min-height:44px; padding:10px 16px; border:0; border-radius:12px; background:#047857; color:#fff; font-size:12px; font-weight:600; cursor:pointer; transition:background .15s,transform .15s; }
.chef-recipe-log:hover { background:#065f46; }.chef-recipe-log:active { transform:scale(.97); }
.chef-recipe-log:disabled { opacity:.65; cursor:default; }
.chef-recipe-status { margin-top:10px; color:var(--ws-muted); font-size:11px; line-height:1.7; }
.chef-recipe-status:empty { display:none; }.chef-recipe-view { display:block; margin-top:5px; color:#047857; font-weight:600; }
.chef-recipe-servings:focus-visible,.chef-recipe-log:focus-visible,.chef-recipe-details summary:focus-visible { outline:3px solid #059669; outline-offset:3px; }
html.dark .chef-recipe-log { background:#6ee7b7; color:#0f172a; }html.dark .chef-recipe-view { color:#6ee7b7; }
@media(max-width:1000px) { .chef-recipe-nutrition { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:480px) { #chef-page .chef-recipe-bubble { padding:12px; }.chef-recipe-card { padding:14px; }.chef-recipe-controls { flex-direction:column; align-items:stretch; }.chef-recipe-name { font-size:18px; } }
@media(prefers-reduced-motion:reduce) { .chef-recipe-log { transition:none; }.chef-recipe-log:active { transform:none; } }

.chef-view-tabs { display:flex; gap:6px; width:fit-content; max-width:100%; margin-bottom:24px; padding:5px; border:1px solid var(--ws-line); border-radius:16px; background:var(--ws-card); }
.chef-view-tabs button { min-height:44px; padding:10px 16px; border:0; border-radius:11px; background:transparent; color:var(--ws-muted); font-size:13px; font-weight:600; }
.chef-view-tabs button[aria-selected="true"] { background:#047857; color:white; }
#saved-recipe-count { display:inline-block; margin-left:5px; padding:1px 6px; border-radius:99px; background:#e2e8f0; color:#334155; font-size:11px; }
.chef-recipe-controls { flex-wrap:wrap; }.chef-recipe-controls label { min-width:100px; }
.chef-recipe-save { min-height:44px; padding:10px 12px; border:1px solid var(--ws-line); border-radius:12px; background:transparent; color:var(--ws-ink); font-size:12px; font-weight:600; cursor:pointer; }
.chef-recipe-save[aria-pressed="true"] { color:#047857; border-color:#a7f3d0; background:#ecfdf5; }
.chef-recipe-save:disabled { opacity:.6; cursor:wait; }
.saved-recipes-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; margin:8px 0 24px; }
.saved-recipes-heading h2 { font:700 26px/1.3 'Space Grotesk',sans-serif; letter-spacing:-.035em; color:var(--ws-ink); }
.saved-recipes-heading p { margin-top:6px; color:var(--ws-muted); font-size:13px; }
.saved-recipe-search-label { display:block; margin-bottom:8px; font-size:12px; font-weight:600; color:var(--ws-ink); }
#saved-recipe-search { width:100%; max-width:480px; min-height:46px; border:1px solid var(--ws-line); border-radius:12px; padding:10px 14px; background:var(--ws-card); color:var(--ws-ink); }
#saved-recipes-error { margin-top:16px; padding:14px 16px; border:1px solid #fecaca; border-radius:12px; background:#fef2f2; color:#991b1b; font-size:13px; }
#saved-recipes-loading { padding:48px; text-align:center; }
.saved-recipes-empty { display:flex; flex-direction:column; align-items:center; text-align:center; padding:48px 24px; margin-top:24px; border:1px solid var(--ws-line); border-radius:24px; background:var(--ws-card); gap:14px; color:#047857; }
.saved-recipes-empty h3 { font-size:19px; font-weight:700; color:var(--ws-ink); }.saved-recipes-empty p { max-width:420px; color:var(--ws-muted); font-size:13px; line-height:1.8; }
.saved-recipe-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:24px; align-items:start; }
.saved-recipe-grid .chef-recipe-card { margin:0; }.saved-recipe-grid .chef-recipe-controls { align-items:flex-end; }
#chef-page [hidden] { display:none!important; }
html.dark .chef-recipe-save[aria-pressed="true"] { color:#6ee7b7; background:#12382e; border-color:#245b49; }
html.dark .chef-view-tabs button[aria-selected="true"] { background:#6ee7b7; color:#0f172a; }
html.dark #saved-recipes-error { background:#451a1a; color:#fecaca; border-color:#7f1d1d; }
@media(max-width:767px) { .saved-recipe-grid { grid-template-columns:minmax(0,1fr); }.chef-view-tabs { width:100%; }.chef-view-tabs button { flex:1; padding-inline:10px; font-size:12px; } }

/* Reserve the full reply's height so typing never moves recipe controls. */
.chef-reply-text{display:block}
.chef-reply-revealing{position:relative}
.chef-reply-layout{visibility:hidden;pointer-events:none;user-select:none}
.chef-reply-visual{position:absolute;inset:0;white-space:inherit;overflow-wrap:inherit}
.chef-reply-accessible{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media print{.chef-reply-layout{visibility:visible}.chef-reply-visual{display:none}}

/* Compact recipe actions keep a full touch target and descriptive accessible names. */
#chef-page .chef-action-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;align-self:flex-end;width:44px;height:44px;min-width:44px;min-height:44px;padding:0}
#chef-page .chef-action-icon svg{display:block;flex-shrink:0}
#chef-page .saved-recipes-heading{flex-wrap:nowrap;align-items:flex-start}
.saved-recipes-heading>div{flex:1;min-width:0}
#chef-page #saved-recipes-refresh{align-self:flex-start}
#chef-page .saved-recipe-grid .chef-recipe-controls{flex-direction:row;flex-wrap:nowrap;gap:10px}
