/* Stovetab. Tokens come from the Stovetab design system (Claude Design); see docs/design/README.md. */
:root {
  --paper: #FAF6EE; --card: #FFFFFF; --ink: #23201B; --ink-muted: #6B6358; --rule: #E6DFD2;
  --tomato: #B83A22; --tomato-hover: #8E2A16; --on-tomato: #FFFFFF; --tomato-soft: #F7E0D6;
  --basil: #3B6B35; --saffron: #E2A824; --saffron-soft: #FCF0CF;
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Instrument Sans", system-ui, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-4: 16px; --space-6: 24px; --space-12: 48px;
  --radius-sm: 6px; --radius-md: 14px; --radius-pill: 999px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #191714; --card: #23201C; --ink: #F2EDE3; --ink-muted: #ADA595; --rule: #37322B;
    --tomato: #F07A5E; --tomato-hover: #F59A84; --on-tomato: #1A1310; --tomato-soft: #3D221A;
    --basil: #8CC27F; --saffron: #E8B640; --saffron-soft: #3A3018;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/24px var(--font-sans); }
img { max-width: 100%; }
a { color: var(--tomato); }
a:hover { color: var(--tomato-hover); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--tomato); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; } /* component display rules must never un-hide an element */

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-muted); }
.ink { color: var(--ink); }
.small { font-size: 13px; line-height: 18px; }
.strong { font-weight: 600; }
.tomato { color: var(--tomato); }
.display { font: 600 44px/48px var(--font-display); letter-spacing: -.01em; }
.title { font: 600 26px/32px var(--font-display); }
.lede { font-size: 17px; line-height: 26px; color: var(--ink-muted); }
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 var(--space-2); }
.eyebrow--basil { color: var(--basil); }
.eyebrow--tomato { color: var(--tomato); }
.stack { display: flex; flex-direction: column; gap: var(--space-2); }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); }
@media (max-width: 600px) { .display { font-size: 34px; line-height: 40px; } }

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.logo, .logo img { display: block; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4);
  border: 0; border-radius: var(--radius-sm); background: var(--tomato); color: var(--on-tomato); font-weight: 600; font-size: 15px; text-decoration: none; }
.button:hover { background: var(--tomato-hover); color: var(--on-tomato); }
.button--big { min-height: 56px; font-size: 17px; width: 100%; }
.button--grow { flex: 1 1 auto; }
.button--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius-pill); }
.button--ghost:hover { background: var(--card); color: var(--ink); }
.link-button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-1); color: var(--tomato); font-size: 13px; font-weight: 600; min-height: 32px; }
.link-button:focus-visible { outline: 2px solid var(--tomato); outline-offset: 2px; }

/* Website */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--space-6); }
@media (max-width: 600px) { .wrap { padding: 0 var(--space-4); } }
.site-header { border-bottom: 1px solid var(--rule); }
.site-header__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); padding-top: var(--space-4); padding-bottom: var(--space-4); }
.search { flex: 1 1 260px; }
.search input { width: 100%; height: 44px; border: 1px solid var(--rule); border-radius: var(--radius-pill); padding: 0 20px; background: var(--card); color: var(--ink); font: inherit; font-size: 15px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); font-size: 15px; font-weight: 600; }
.site-nav__link { color: var(--ink); text-decoration: none; }
.page { padding-top: var(--space-12); padding-bottom: var(--space-12); display: flex; flex-direction: column; gap: var(--space-6); }
.site-footer { border-top: 1px solid var(--rule); }
.site-footer__row { padding-top: var(--space-2); padding-bottom: var(--space-6); }
/* Legal row (Footer.dc.html): copyright left, links right, wrapping at phone width; 44px rows are the tap targets. */
.legal-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: var(--space-6); }
.legal-row > span, .legal-row__links a { display: inline-flex; align-items: center; min-height: 44px; }
.legal-row__links { display: flex; flex-wrap: wrap; column-gap: var(--space-4); }
.legal-row__links a { color: var(--ink); font-weight: 600; text-decoration: none; }
.legal-row__links a:hover { color: var(--tomato-hover); }
.legal { max-width: 720px; }
.legal h2 { font: 600 22px/28px var(--font-display); margin: var(--space-6) 0 var(--space-2); }
.legal li + li { margin-top: var(--space-2); }
.intro { display: flex; flex-direction: column; gap: var(--space-2); max-width: 720px; }
.back { font-size: 15px; font-weight: 600; text-decoration: none; align-self: flex-start; }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--space-4); border-radius: var(--radius-pill); border: 1px solid var(--rule);
  background: var(--card); color: var(--ink); font-size: 14px; text-decoration: none; }
.chip:hover { color: var(--ink); border-color: var(--ink-muted); }
.chip[aria-current="page"] { border-color: var(--tomato); background: var(--tomato-soft); color: var(--tomato); font-weight: 600; }

.wall { columns: 4 260px; column-gap: var(--space-6); }
.wall .card { break-inside: avoid; margin-bottom: var(--space-6); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-6); }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-md); overflow: hidden; }
.card__link { display: block; color: var(--ink); text-decoration: none; }
.card__link:hover { color: var(--ink); }
.card__link:hover .card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card__photo { display: block; width: 100%; height: auto; min-height: 160px; background: var(--rule); object-fit: cover; }
.grid .card__photo { height: 180px; }
.card__body { padding: 12px var(--space-4) var(--space-4); display: flex; flex-direction: column; gap: var(--space-1); }
.card__title { font: 600 19px/24px var(--font-display); }
.photo--empty { background: var(--tomato-soft); aspect-ratio: 4 / 3; }
.empty { padding: var(--space-12) 0; display: flex; flex-direction: column; gap: var(--space-2); }

.recipe { display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: flex-start; }
.recipe__photo { flex: 1 1 420px; min-width: 0; max-width: 640px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-md); background: var(--rule); }
.recipe__info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.credit { display: flex; align-items: center; gap: var(--space-2); font-size: 14px; color: var(--ink-muted); }
.credit strong { color: var(--ink); }
.credit__initial { flex-shrink: 0; width: 32px; height: 32px; border-radius: var(--radius-pill); background: var(--tomato-soft); color: var(--tomato); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: var(--space-4); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: var(--space-4) 0; }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.facts dd { margin: var(--space-1) 0 0; font-size: 17px; font-weight: 600; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--card); border: 1px solid var(--rule); font-size: 14px; }
.more { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-6); }

.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-6); }
.how__step { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.how__step h2 { font-size: 18px; line-height: 24px; }
.how__n { width: 36px; height: 36px; border-radius: var(--radius-pill); background: var(--tomato); color: var(--on-tomato); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.authors { background: #23201B; color: #F2EDE3; border-radius: var(--radius-md); padding: var(--space-12); display: flex; flex-wrap: wrap; gap: var(--space-12); }
.authors > div { flex: 1 1 300px; }
.authors .eyebrow--tomato { color: #F07A5E; }
.authors__title { font: 600 32px/38px var(--font-display); }
.authors ul { flex: 1 1 340px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-4); }
@media (max-width: 600px) { .authors { padding: var(--space-6); } }

/* Accounts */
.auth { max-width: 460px; display: flex; flex-direction: column; gap: var(--space-4); }
.panel .auth { max-width: none; height: 100%; overflow-y: auto; padding: var(--space-6) var(--space-4); }
.auth__title { font: 600 32px/38px var(--font-display); }
.auth__form { display: flex; flex-direction: column; gap: var(--space-2); font-weight: 600; font-size: 14px; }
.input { height: 48px; border: 1px solid var(--ink-muted); border-radius: var(--radius-sm); padding: 0 14px; background: var(--card); color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; }
.input--code { height: 56px; font-size: 28px; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
textarea.input { height: auto; padding: 12px 14px; line-height: 22px; }
.auth__form .button { margin-top: var(--space-2); }
.alert { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--tomato-soft); color: var(--tomato); font-weight: 600; font-size: 14px; }
.flash { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--rule); font-weight: 600; font-size: 14px; align-self: flex-start; }
.avatar { width: 36px; height: 36px; border-radius: var(--radius-pill); background: var(--tomato-soft); color: var(--tomato); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu__list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; min-width: 220px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: var(--space-4); display: flex; flex-direction: column; gap: 12px; font-weight: 600; box-shadow: 0 8px 24px rgb(0 0 0 / .08); }
.account-menu__list a { color: var(--ink); text-decoration: none; }
.account-menu__list form { margin: 0; }

.favorite form { margin: 0; }
.favorite__button { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--rule);
  background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.favorite__button:hover { color: var(--ink); border-color: var(--ink-muted); }
.favorite__button.is-saved { border-color: var(--tomato); background: var(--tomato-soft); color: var(--tomato); }
.card { position: relative; }
.favorite--card { position: absolute; top: 10px; right: 10px; }
.favorite--panel .favorite__button { min-height: 32px; padding: 0 10px; font-size: 13px; }
.recipe__actions, .recipe__owner, .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.recipe__owner form { margin: 0; }
.yours { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-4); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-md); }
.stars-form { display: flex; flex-direction: column; gap: 4px; }
.stars { display: flex; }
.star { width: 40px; height: 40px; border: 0; background: none; padding: 0; font-size: 28px; line-height: 1; color: var(--rule); cursor: pointer; }
.star.is-on { color: var(--saffron); }
.stars:hover .star { color: var(--saffron); }
.stars .star:hover ~ .star { color: var(--rule); }
.note-form { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.note-form .button { align-self: flex-start; }
.share { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.share__button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--rule);
  background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.share__button:hover { color: var(--ink); border-color: var(--ink-muted); }
.tabs { display: flex; gap: var(--space-6); border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; } /* one row; scrolls sideways on a phone */
.tab { flex: none; white-space: nowrap; padding: 10px 2px; color: var(--ink-muted); text-decoration: none; border-bottom: 3px solid transparent; }
.tab[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--tomato); }
.cooked { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); max-width: 760px; }
.cooked__item { display: flex; gap: var(--space-4); padding: var(--space-4); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-md); }
.cooked__photo { width: 96px; height: 96px; flex-shrink: 0; object-fit: cover; border-radius: 10px; background: var(--rule); }
.cooked__item .photo--empty { aspect-ratio: auto; }
.cooked__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cooked__title { font: 600 19px/24px var(--font-display); color: var(--ink); text-decoration: none; }
.upload-form { display: flex; flex-direction: column; gap: var(--space-2); max-width: 820px; font-weight: 600; font-size: 14px; }
.upload-form__top { display: flex; flex-wrap: wrap; gap: var(--space-6); margin-bottom: var(--space-4); }
.upload-form__photo { flex: 0 0 200px; height: 200px; border: 2px dashed var(--rule); border-radius: var(--radius-md); background: var(--card); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; text-align: center; color: var(--ink-muted); font-weight: 400; cursor: pointer; overflow: hidden; position: relative; }
.upload-form__photo:focus-within { outline: 2px solid var(--tomato); outline-offset: 2px; }
.upload-form__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.upload-form__photo span { position: relative; }
.upload-form__fields { flex: 1 1 300px; display: flex; flex-direction: column; gap: var(--space-2); }
.upload-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.upload-form__row div { display: flex; flex-direction: column; gap: var(--space-2); }
.upload-form textarea.input { margin-bottom: var(--space-4); }
.upload-form__visibility { border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--card); padding: var(--space-4); margin: 0 0 var(--space-4); display: flex; flex-direction: column; gap: 12px; }
.upload-form__visibility label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; }
.full-recipe { display: flex; flex-wrap: wrap; gap: var(--space-12); margin-top: var(--space-6); }
.full-recipe__col { flex: 1 1 300px; min-width: 0; }
.full-recipe__col:last-child { flex-basis: 480px; }
.full-recipe__ingredients { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.full-recipe__steps { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 26px; }
.shared { display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: flex-start; }
.shared__photo { flex: 1 1 380px; min-width: 0; max-width: 520px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-md); background: var(--rule); }
.shared__info { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.shared__stars { font-size: 24px; color: var(--saffron); }

/* Extension panel (cook mode and idle). The panel fills the side panel's height; columns scroll inside it. */
.panel { height: 100vh; height: 100dvh; overflow: hidden; }
.cook { height: 100vh; height: 100dvh; display: flex; flex-direction: column; container-type: inline-size; }
.cook__titlebar { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); }
.my-note { margin-bottom: var(--space-2); padding: 10px 12px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--rule); font-size: 13px; line-height: 18px; }
.finish-form { display: flex; flex-direction: column; gap: var(--space-2); font-weight: 600; font-size: 13px; }
.star-input { border: 0; margin: 0; padding: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 30px; line-height: 44px; width: 40px; text-align: center; color: var(--rule); cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--saffron); }
.star-input input:focus-visible + label { outline: 2px solid var(--tomato); outline-offset: -4px; border-radius: var(--radius-sm); }
.input--file { height: auto; padding: 8px; font-size: 13px; }
.finish-form .button, .finished .button { width: 100%; height: auto; min-height: 48px; padding: 10px 12px; white-space: normal; line-height: 20px; }
.cook__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: var(--space-4) var(--space-6) var(--space-6); display: flex; flex-direction: column; gap: var(--space-6); } /* idle panel */
.panel-footer { margin-top: auto; border-top: 1px solid var(--rule); padding-top: var(--space-2); }

/* Ingredients beside the steps. Below 340px the columns stack, ingredients first in a shorter pane. */
.cook__cols { flex: 1 1 auto; min-height: 0; display: grid; grid-template-rows: minmax(0, 34%) minmax(0, 1fr); }
.cook__col { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px var(--space-4) var(--space-4); }
.cook__col--ingredients { border-bottom: 1px solid var(--rule); }
@container (min-width: 340px) {
  .cook__cols { grid-template-rows: none; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .cook__col--ingredients { border-bottom: 0; border-right: 1px solid var(--rule); padding-right: 10px; }
  .cook__col--steps { padding-left: 10px; }
}
.cook__credit { margin-top: var(--space-4); font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.cook__foot { flex: none; padding: 10px var(--space-4) 14px; border-top: 1px solid var(--rule); background: var(--paper); display: flex; flex-direction: column; gap: 10px; }
.cook__nav { display: flex; gap: var(--space-2); }
.cook__nav .button { min-height: 48px; }
.cook__nav .button--ghost:disabled { color: var(--ink-muted); border-color: var(--rule); cursor: default; background: transparent; }
.progress { height: 4px; border-radius: var(--radius-pill); background: var(--rule); overflow: hidden; }
.progress__bar { height: 100%; width: 0; background: var(--basil); transition: width .2s ease; }
.button--small { min-height: 36px; padding: 0 12px; font-size: 13px; }

.stepper { display: inline-flex; align-items: stretch; height: 32px; }
.stepper__btn { width: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--rule); background: var(--card); color: var(--ink); font-size: 16px; text-decoration: none; }
.stepper__btn:first-child { border-radius: var(--radius-pill) 0 0 var(--radius-pill); }
.stepper__btn:last-child { border-radius: 0 var(--radius-pill) var(--radius-pill) 0; }
.stepper__btn:hover { color: var(--ink); background: var(--paper); }
.stepper__btn[aria-disabled="true"] { pointer-events: none; color: var(--ink-muted); }
.stepper__value { min-width: 76px; padding: 0 var(--space-2); display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--card); font-weight: 600; }

.timers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.timers:empty { display: none; }
.timer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-2) 0 var(--space-4);
  border-radius: var(--radius-pill); background: var(--card); border: 1px solid var(--rule); font-weight: 600; font-variant-numeric: tabular-nums; }
.timer.is-ringing { background: var(--tomato); border-color: var(--tomato); color: var(--on-tomato); animation: ring 1s ease-in-out infinite; }
.timer__close { min-height: 32px; padding: 0 12px; border: 0; border-radius: var(--radius-pill); background: transparent; color: inherit; font-weight: 600; text-decoration: underline; }
@keyframes ring { 50% { opacity: .75; } }

.steps, .ingredients { list-style: none; margin: 0; padding: 0; }
.steps { display: flex; flex-direction: column; gap: 2px; }
.steps__section { padding: 10px 6px 2px; font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.step { display: flex; gap: 10px; align-items: flex-start; padding: 8px 6px; border-bottom: 1px solid var(--rule); border-radius: var(--radius-sm); scroll-margin: 8px; }
.step__body { min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.step__now, .step__timer { display: none; }
.step__text { all: unset; cursor: pointer; font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.step__text:focus-visible { outline: 2px solid var(--tomato); outline-offset: 2px; }
.step__n { font-weight: 600; }
.step.is-done .step__text { color: var(--ink-muted); text-decoration: line-through; }
/* The current step opens up in place: bigger type, its timer, a NOW label (saffron never stands alone). */
.step.is-now { background: var(--saffron-soft); border-bottom-color: transparent; border-radius: var(--radius-md); padding: 12px; }
.step.is-now .step__now { display: block; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.step.is-now .step__n { display: none; }
.step.is-now .step__text { font-size: 17px; line-height: 25px; color: var(--ink); text-decoration: none; }
.step.is-now .step__timer { display: inline-flex; align-self: flex-start; }
.step.is-now .check { margin-top: 20px; }
.check { flex-shrink: 0; width: 22px; height: 22px; padding: 0; border-radius: var(--radius-sm); border: 1.5px solid var(--ink-muted); background: var(--card); color: transparent;
  display: flex; align-items: center; justify-content: center; position: relative; }
.check::after { content: ""; position: absolute; inset: -11px; } /* 44px touch target */
.step.is-done .check { background: var(--basil); border-color: var(--basil); color: var(--paper); }

.ingredients__group { margin: 12px 0 2px; padding: 0 8px; font: 600 15px/20px var(--font-display); }
.ingredients__group:first-child { margin-top: 0; }
.methods { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.methods .eyebrow { margin: 0; }
.methods__choices { display: flex; flex-wrap: wrap; gap: 6px; }
.methods__choice { min-height: 36px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--rule); background: var(--card); color: var(--ink); font-size: 13px; cursor: pointer; }
.methods__choice[aria-pressed="true"] { border-color: var(--tomato); background: var(--tomato-soft); color: var(--tomato); font-weight: 600; }
.ingredient { display: flex; flex-direction: column; padding: 6px 8px; border-radius: var(--radius-sm); scroll-margin: 8px; }
.ingredient__amount { font-weight: 600; font-size: 14px; line-height: 18px; }
.ingredient__name { font-size: 13px; line-height: 17px; overflow-wrap: anywhere; }
.ingredient.is-now { background: var(--saffron-soft); }
.ingredient.is-now .ingredient__name { font-weight: 600; }
.ingredient.is-used { color: var(--ink-muted); text-decoration: line-through; }

.finished { margin-top: var(--space-4); padding: var(--space-4); border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: var(--space-4); scroll-margin: 8px; }
.finished__text { font: 600 18px/24px var(--font-display); }
.finished .mini-card__photo, .finished .mini-card .photo--empty { width: 64px; height: 64px; }
.finished .mini-card__title { font-size: 15px; line-height: 19px; }

.mini-card { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: var(--space-2); color: var(--ink); text-decoration: none; }
.mini-card:hover { color: var(--ink); border-color: var(--ink-muted); }
.mini-card__photo { width: 96px; height: 96px; flex-shrink: 0; object-fit: cover; border-radius: 10px; background: var(--rule); }
.mini-card .photo--empty { width: 96px; height: 96px; flex-shrink: 0; border-radius: 10px; aspect-ratio: auto; }
.mini-card__body { display: flex; flex-direction: column; justify-content: center; gap: var(--space-1); }
.mini-card__title { font: 600 18px/22px var(--font-display); }
.note { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: var(--space-4); }

@media (prefers-reduced-motion: reduce) { .timer.is-ringing { animation: none; } }

/* Admin: review queue */
.review-site { display: flex; flex-direction: column; gap: var(--space-4); padding-top: var(--space-6); border-top: 1px solid var(--rule); }
.review-site__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
.review-site__host { font: 600 22px/28px var(--font-display); margin: 0; }
.review-site__actions, .review-item__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.review-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.review-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); padding: var(--space-2); background: var(--card); border: 1px solid var(--rule); border-radius: 12px; }
.review-item__img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--rule); }
.review-item__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.review-item__name { font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.review-item__name:hover { color: var(--tomato); }
.review-item__note { font-size: 13px; color: var(--tomato); }
@media (max-width: 560px) { .review-item { grid-template-columns: 48px minmax(0, 1fr); } .review-item__img { width: 48px; height: 48px; } .review-item__actions { grid-column: 1 / -1; } }

/* Focus: one step, large type */
.chip-toggle { min-height: 32px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--rule); background: var(--card); color: var(--ink); font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1; cursor: pointer; }
.chip-toggle[aria-pressed="true"] { border-color: var(--tomato); background: var(--tomato-soft); color: var(--tomato); }
.focus { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 18px; }
.cook.is-focus:not(.is-finished) .cook__cols { display: none; }
.focus .eyebrow { margin: 0; }
.focus__section { margin: 0; font: 600 17px/22px var(--font-display); }
.focus__text { margin: 0; font-size: 27px; line-height: 38px; }
.focus .step__timer { display: inline-flex; min-height: 48px; font-size: 16px; padding: 0 18px; }
.focus__uses { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--rule); }
.focus__ingredients { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.focus__ingredients li { padding: 10px 12px; border-radius: 10px; background: var(--saffron-soft); font-size: 19px; line-height: 26px; }

.cook.is-focus:not(.is-finished) .cook__nav .button { min-height: 56px; font-size: 17px; }

/* About this recipe: notes, nutrition, tools in a bottom sheet */
.sheet { margin: auto 0 0; width: 100%; max-width: none; max-height: 82dvh; box-sizing: border-box; border: 0; border-radius: 16px 16px 0 0;
  padding: 18px 18px 24px; background: var(--paper); color: var(--ink); box-shadow: 0 -8px 24px rgba(35, 32, 27, .18); overflow-y: auto; }
.sheet[open] { display: flex; flex-direction: column; gap: 20px; }
.sheet::backdrop { background: rgba(35, 32, 27, .32); }
.sheet__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.sheet__title { margin: 0; font: 600 20px/26px var(--font-display); }
.sheet__close { width: 40px; height: 40px; flex: none; border-radius: var(--radius-pill); border: 1px solid var(--rule); background: var(--card); color: var(--ink); font-size: 16px; cursor: pointer; }
.sheet__section { display: flex; flex-direction: column; gap: 8px; }
.sheet__section .eyebrow { margin: 0; }
.sheet__notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 22px; }
.sheet__note-heading { margin-top: 6px; font-weight: 600; }
.nutrition { margin: 0; display: flex; flex-direction: column; }
.nutrition div { display: flex; justify-content: space-between; gap: var(--space-2); padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.nutrition dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.tools { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tools li { padding: 6px 12px; border-radius: var(--radius-pill); background: var(--card); border: 1px solid var(--rule); font-size: 14px; }

/* Units: As written · Metric · US */
.segmented { display: inline-flex; height: 32px; border: 1px solid var(--rule); border-radius: var(--radius-pill); overflow: hidden; background: var(--card); }
.segmented__option { display: flex; align-items: center; padding: 0 10px; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; }
.segmented__option + .segmented__option { border-left: 1px solid var(--rule); }
.segmented__option[aria-current="true"] { background: var(--tomato-soft); color: var(--tomato); }
.segmented__option:focus-visible { outline: 2px solid var(--tomato); outline-offset: -2px; }
.scale-note { margin: 0 0 8px; padding: 8px 10px; border-radius: 8px; background: var(--card); border: 1px solid var(--rule); font-size: 12px; line-height: 17px; color: var(--ink-muted); }

/* Get ready: prep checklist */
.prep-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 21px; cursor: pointer; }
.prep-item input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--basil); }
.prep-item:has(input:checked) span { color: var(--ink-muted); text-decoration: line-through; }
.sheet .progress { flex: none; }

/* Shopping list */
a.chip-toggle { display: inline-flex; align-items: center; text-decoration: none; }
.list-added { margin: 0 0 var(--space-2); }
.list-layout { display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: flex-start; }
.list-aisles { flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 40px; }
.list-aisle .eyebrow { margin: 0 0 4px; }
.list-items { list-style: none; margin: 0; padding: 0; }
.list-item__form { margin: 0; }
.list-item__toggle { width: 100%; display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border: 0; border-bottom: 1px solid var(--rule); background: none; color: var(--ink); font: inherit; font-size: 16px; line-height: 22px; text-align: left; cursor: pointer; }
.list-item__box { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 5px; border: 1.5px solid var(--ink-muted); background: var(--card); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--on-tomato); }
.list-item.is-checked .list-item__box { border-color: var(--basil); background: var(--basil); }
.list-item.is-checked .list-item__text { color: var(--ink-muted); text-decoration: line-through; }
.list-item__from { display: block; font-size: 13px; color: var(--ink-muted); }
.list-recipes { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.list-recipe { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-2); padding: 10px 0; border-bottom: 1px solid var(--rule); }

/* Hands-free */
.handsfree { flex: none; margin: 0; padding: 8px var(--space-4); background: var(--card); border-bottom: 1px solid var(--rule); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.handsfree [data-handsfree-target="listening"] { color: var(--basil); display: inline-flex; align-items: center; gap: 8px; }
.handsfree__dot { width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--basil); animation: handsfree-pulse 1.6s ease-in-out infinite; }
@keyframes handsfree-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .handsfree__dot { animation: none; } }

/* Ask about this recipe */
.ask__thread { display: flex; flex-direction: column; gap: 12px; }
.ask__thread:empty { display: none; }
.ask__exchange { display: flex; flex-direction: column; gap: 6px; }
.ask__question { margin: 0; align-self: flex-end; max-width: 85%; padding: 10px 12px; border-radius: 14px 14px 4px 14px; background: var(--tomato-soft); font-size: 15px; line-height: 21px; overflow-wrap: anywhere; }
.ask__answer { align-self: flex-start; max-width: 92%; padding: 12px; border-radius: 14px 14px 14px 4px; background: var(--card); border: 1px solid var(--rule); font-size: 15px; line-height: 22px; }
.ask__answer p { margin: 0 0 8px; }
.ask__answer p:last-child { margin: 0; }
.ask__answer--note { color: var(--ink-muted); }
.ask__body { display: flex; flex-direction: column; gap: 16px; }
.ask__suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
.ask__suggestions .chip-toggle { min-height: 34px; font-weight: 400; font-size: 14px; text-align: left; line-height: 1.3; padding: 6px 12px; }
.ask__row { display: flex; gap: 8px; }
.ask__input { flex: 1; min-width: 0; border-radius: var(--radius-pill); }
.ask__submit { border-radius: var(--radius-pill); }

/* Overview first, then cooking (one at a time) */
.cook.is-overview .cooking, .cook:not(.is-overview) .overview { display: none; }
.cooking, .overview { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.overview__head { flex: none; padding: 16px var(--space-4) 8px; display: flex; flex-direction: column; gap: 6px; }
.overview__head > .muted { overflow-wrap: anywhere; }
.overview__title { margin: 0; font: 600 22px/28px var(--font-display); text-wrap: balance; }
.overview__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px var(--space-4) var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.overview__settings { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.overview__rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.overview__rows li { border-bottom: 1px solid var(--rule); }
.overview__form { margin: 0; }
.overview__row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 14px 2px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.overview__row:hover strong { color: var(--tomato); }
.overview__row:focus-visible { outline: 2px solid var(--tomato); outline-offset: 2px; border-radius: 6px; }
.overview__row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.overview__row-text strong { font-size: 15px; }
.overview__chevron { flex: none; color: var(--ink-muted); font-size: 18px; }
.basil { color: var(--basil); }
.overview__foot { flex: none; padding: 12px var(--space-4) 16px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; text-align: center; }
.overview__foot p { margin: 0; }
.cooking__head { flex: none; display: flex; align-items: center; gap: var(--space-2); padding: 8px var(--space-4); border-bottom: 1px solid var(--rule); }
.cooking__title { flex: 1; min-width: 0; margin: 0; font-weight: 400; font-family: inherit; font-size: 13px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-toggle { flex: none; width: 36px; height: 36px; border-radius: var(--radius-pill); border: 1px solid var(--rule); background: var(--card); color: var(--ink); font: 600 14px/1 var(--font-display, inherit); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-toggle[aria-pressed="true"] { border-color: var(--tomato); background: var(--tomato-soft); color: var(--tomato); }
.icon-toggle:focus-visible { outline: 2px solid var(--tomato); outline-offset: 2px; }
.cook > .timers { flex: none; padding: 10px var(--space-4); border-bottom: 1px solid var(--rule); background: var(--paper); }
.cook > .timers:empty { display: none; }
.cooking__title:focus { outline: none; }
.auth__back { align-self: flex-start; text-decoration: none; font-size: 14px; }
.overview__restart { align-self: center; padding: 6px 0; font-size: 14px; }

/* Account: your name beside agents and tokens */
.account { display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: flex-start; }
.account > .auth { flex: 1 1 320px; min-width: 0; overflow-wrap: anywhere; }
.agents { flex: 2 1 520px; min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: var(--space-4); }
.token-new { padding: 20px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 12px; }
.token-new p { margin: 0; }
.tokens { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.tokens li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.tokens__revoke { margin-left: auto; }
.tokens__new { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: flex-end; }
.tokens__new .auth__form { flex: 1 1 260px; min-width: 0; }

/* Code snippets with a Copy button (always dark, like the authors block) */
.snippet { background: #23201B; border: 1px solid #23201B; color: #F2EDE3; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.snippet__head { display: flex; justify-content: space-between; align-items: center; }
.snippet__label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #ADA595; }
.snippet__copy { all: unset; cursor: pointer; font-size: 13px; font-weight: 600; color: #F07A5E; min-height: 32px; }
.snippet__copy:focus-visible { outline: 2px solid #F07A5E; outline-offset: 2px; }
@media (prefers-color-scheme: dark) { .snippet { background: #12100E; border-color: var(--rule); } } /* dark cards are #23201C */
.snippet__code { font: 13px/20px ui-monospace, "SF Mono", Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

/* /developers */
.how--wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.abilities { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-6); }
.abilities h3 { margin: 0 0 var(--space-1); font-size: 16px; }
.abilities p { margin: 0; }
.developers__foot { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; border-top: 1px solid var(--rule); padding-top: var(--space-6); }
