/* The signed-in kitchen. Colours and type come from site.css. */
.kitchen h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0; }
.kitchen h2 { font-size: 1.5rem; margin: 0; }
.kitchen h3 { font-size: 1.15rem; margin: 0 0 10px; }
.kitchen .card { max-width: none; border: 1px solid var(--line); box-shadow: 0 24px 40px -34px rgb(6 80 36 / .35); }
.kitchen:has(#workspace:not([hidden])) { padding-bottom: 40px; }
.dock { position: sticky; top: 10px; z-index: 5; display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto 28px; padding: 6px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); border: 1px solid var(--line); box-shadow: 0 18px 34px -22px rgb(6 80 36 / .45); overflow-x: auto; }
.dock button { border: 0; background: transparent; color: var(--ink); border-radius: 999px; padding: 8px 18px; min-height: 42px; font: 600 1rem var(--sans); cursor: pointer; white-space: nowrap; }
.dock button[aria-selected="true"] { background: var(--green); color: var(--on-green); }
.count { display: inline-block; min-width: 1.5em; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--leaf); color: var(--green); font-size: .78rem; }
.page-head, .section-head, .sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.page-head { margin-bottom: 22px; }
.section-head { margin: 26px 0 14px; }
.sheet-head { flex-wrap: nowrap; margin-bottom: 14px; }
.range { color: var(--muted); margin: 4px 0 0; }
.switcher, .stepper { display: inline-flex; align-items: center; gap: 8px; }
.round { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--green); font: 600 1.4rem/1 var(--sans); cursor: pointer; }
.round:disabled { opacity: .4; cursor: default; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.narrow { max-width: 640px; margin-inline: auto; }

.cover { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--leaf); color: var(--green); }
.cover.tone-1 { background: var(--bread); color: var(--apple); }
.cover.tone-2 { background: color-mix(in srgb, var(--leaf) 45%, var(--surface)); color: var(--ink); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover .plate { display: grid; place-items: center; width: min(58%, 150px); aspect-ratio: 1; border-radius: 50%; background: var(--surface); box-shadow: 0 10px 24px -8px rgb(0 0 0 / .22); }
.cover .plate svg { width: 52%; height: 52%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.tonight { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding: 0; overflow: hidden; margin: 0; }
.tonight .cover { min-height: 250px; }
.tonight-words { padding: 26px; align-self: center; }
.tonight-words h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 6px 0; }
.tag { color: var(--apple); font-weight: 700; margin: 0; }

.week-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.day { position: relative; display: flex; flex-direction: column; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.day:hover { transform: translateY(-3px); box-shadow: 0 20px 30px -22px rgb(6 80 36 / .55); }
.day.today { border: 2px solid var(--green); }
.day button.open, .recipe button.open { all: unset; box-sizing: border-box; display: flex; flex-direction: column; flex: 1; cursor: pointer; }
.day button.open:focus-visible, .recipe button.open:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.day .cover { aspect-ratio: 4 / 3; }
.day .words, .recipe .words { padding: 12px 14px 14px; display: grid; gap: 2px; }
.day small, .recipe small, .row small { color: var(--muted); font-size: .85rem; display: block; font-weight: 400; }
.day strong, .recipe strong { line-height: 1.25; }
.day.empty { border-style: dashed; background: transparent; }
.day.empty button.open { align-items: center; justify-content: center; gap: 8px; min-height: 200px; color: var(--green); font-weight: 600; text-align: center; }
.day.empty .plus { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--leaf); font-size: 1.7rem; }
.day .remove { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; font-size: 1.1rem; }

.big { font-size: 1.6rem; font-family: var(--serif); font-weight: 700; margin: 0 0 10px; }
.bar { height: 8px; border-radius: 99px; background: var(--leaf); overflow: hidden; margin-bottom: 12px; }
.bar i { display: block; height: 100%; width: 0; background: var(--green); transition: width .35s; }
.ask { display: grid; gap: 8px; justify-items: start; }
.ask img { width: 48px; height: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 14px; min-height: 40px; font: 600 .95rem var(--sans); cursor: pointer; text-align: left; }
.chip[aria-pressed="true"] { background: var(--green); color: var(--on-green); border-color: var(--green); }

.grocery-items li { display: flex; align-items: center; gap: 8px; }
.grocery-items label { flex: 1; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin: 0; padding: 4px 0; font-weight: 600; }
.grocery-items label small { grid-column: 2; color: var(--muted); font-weight: 400; font-size: .85rem; }
.grocery-items input { width: 26px; height: 26px; min-height: 0; border-radius: 50%; }
.grocery-items .amount { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.grocery-items li.done .name { text-decoration: line-through; color: var(--muted); }
.empty-note { text-align: center; padding: 34px 10px; color: var(--muted); }
.zip { display: flex; gap: 8px; margin: 10px 0; }
.zip input { flex: 1; min-width: 0; }
.grocery-items .price { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--green); font-weight: 700; white-space: nowrap; }
.grocery-items .price img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: #fff; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair select, .pair input { width: 100%; }

.search { width: 100%; border-radius: 999px; padding-inline: 18px; margin-bottom: 14px; background: var(--surface); }
.recipe-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.recipe-grid.small { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.recipe { display: flex; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.recipe:hover { transform: translateY(-3px); box-shadow: 0 20px 30px -22px rgb(6 80 36 / .55); }
.recipe .cover { aspect-ratio: 4 / 3; }

.sheet { width: min(860px, 100% - 24px); max-width: none; max-height: min(88vh, 900px); overflow: auto; border: 1px solid var(--line); }
.sheet.narrow { width: min(560px, 100% - 24px); }
.recipe-grid.small .cover .plate { width: 62%; }
.day-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
legend { font-weight: 600; margin-bottom: 6px; }
.ingredient { display: grid; grid-template-columns: 1fr 80px 90px 44px; gap: 8px; margin-bottom: 8px; }
.ingredient input, .ingredient select { width: 100%; min-width: 0; }

.chat { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; min-height: calc(100dvh - 330px); padding-bottom: 130px; }
.chat .thread { flex: 1; min-height: 0; }
.chat-empty { text-align: center; margin: auto 0; }
.chat-empty img { width: 96px; height: auto; margin-bottom: 8px; }
.chat-empty .chips { justify-content: center; margin-top: 20px; }
/* The message box stays at the bottom of the window. */
.composer-dock { position: fixed; left: 50%; translate: -50% 0; bottom: 14px; width: min(760px, 100% - 28px); z-index: 4; }
.chat .composer { padding: 8px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 34px -20px rgb(6 80 36 / .5); }
.chat .composer input { border: 0; background: transparent; }
.center { text-align: center; margin: 8px auto 0; }
.thread li { scroll-margin-bottom: 150px; }

/* Signed in, the page is the app: no site footer. */
body:has(#workspace:not([hidden])) footer { display: none; }

.settings h1 { margin-bottom: 24px; }
.settings h2 { font-size: 1.1rem; margin: 28px 0 10px; }
.settings .group { display: grid; gap: 8px; padding: 14px 0; margin: 0; border-bottom: 1px solid var(--line); }
.settings .group:last-child { border-bottom: 0; padding-bottom: 0; }
.settings .group .chips, .settings .card > .chips { margin: 0; }
.settings .group textarea, .settings .group input { width: 100%; }
.settings .profile p { flex: 1; }
.settings .actions { margin: 0; }
.legal { display: flex; gap: 16px; margin-top: 14px; }

.recipe-page { max-width: 980px; margin-inline: auto; }
.back { border: 0; background: none; color: var(--green); font: 600 1rem var(--sans); min-height: 44px; padding: 0; cursor: pointer; margin-bottom: 10px; }
.recipe-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: center; margin-bottom: 30px; }
.recipe-top .cover { aspect-ratio: 4 / 3; border-radius: 28px; box-shadow: 0 30px 50px -34px rgb(6 80 36 / .55); }
.recipe-top h1 { margin-bottom: 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.facts li { background: var(--leaf); color: var(--green); border-radius: 999px; padding: 6px 14px; font-weight: 600; }
.warning { background: var(--bread); border-radius: 14px; padding: 10px 14px; font-weight: 600; }
.recipe-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; align-items: start; }
.recipe-body h2 { margin-bottom: 16px; }
.recipe-body ul, .recipe-body ol { list-style: none; margin: 0; padding: 0; }
.recipe-body ul li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.recipe-body ul li:last-child { border: 0; }
.recipe-body ul span { color: var(--muted); white-space: nowrap; }
.recipe-body ol { counter-reset: step; display: grid; gap: 18px; }
.recipe-body ol li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 14px; line-height: 1.6; }
.recipe-body ol li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: var(--on-green); font-weight: 700; }
.credit { margin-top: 18px; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; margin: 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.stepper output { min-width: 2ch; text-align: center; font-weight: 700; }
.switch-box { width: 26px; height: 26px; min-height: 0; flex: none; accent-color: var(--green); }
.profile { display: flex; align-items: center; gap: 14px; }
.profile p { margin: 0; overflow-wrap: anywhere; }
.avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: var(--on-green); font: 700 1.4rem var(--serif); flex: none; }

.toast { position: fixed; left: 50%; bottom: 22px; translate: -50% 0; z-index: 20; max-width: min(520px, 100% - 32px); background: var(--ink); color: var(--canvas); padding: 12px 18px; border-radius: 14px; font-weight: 600; }
.toast:empty { display: none; }

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .tonight, .recipe-top, .recipe-body { grid-template-columns: minmax(0, 1fr); }
  .tonight .cover { min-height: 180px; }
}
@media (max-width: 640px) {
  /* Like the app: tabs along the bottom. */
  .dock { position: fixed; top: auto; bottom: 10px; left: 10px; right: 10px; width: auto; justify-content: space-between; margin: 0; }
  .dock button { padding: 8px 8px; font-size: .82rem; flex: 1; }
  .dock .count { display: none; }
  .kitchen:has(#workspace:not([hidden])) { padding-bottom: 96px; }
  .composer-dock { bottom: 78px; }
  .composer-dock .fine { display: none; }
  .chat { padding-bottom: 150px; }
  .toast { bottom: 86px; }
  .week-grid, .recipe-grid, .recipe-grid.small { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .day.empty button.open { min-height: 160px; }
  .ingredient { grid-template-columns: 1fr 64px 76px 40px; }
}
