/* The cook panel, redesigned (docs/design/redesign-2026/mock/CookDesktop and PanelStates). Loads after application.css
   (stylesheets sort by name) so these win at equal specificity. Every JS hook class (.step, .is-now, .timer, .dot, ...)
   keeps its name; this file only re-skins them. Mustard (--honey) means "now" and always comes with a second cue (the
   NOW label, an outline, bold text); basil (--sage) means done; timers are ink pills with a mustard icon. */
:root {
  --timer-bg: #23201B; --timer-fg: #FAF6EE; --timer-edge: #23201B; --timer-icon: #F4B740;
  --timer-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 9v4l2 2M9 2h6'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { :root { --timer-edge: #4A4036; } }

/* --- Header: white card on the cream panel, the tabs underlined ------------------------------------------------ */
.cook-head { background: var(--card); padding: 14px 18px 0; gap: 0; border-bottom: 1px solid var(--rule); }
.cook-head > * + * { margin-top: 10px; }
.cook-head__who { gap: 8px; }
.cook-head__initial { width: 22px; height: 22px; background: var(--sage); color: #FFFFFF; font: 700 11px/1 var(--font-sans); }
.cook-head__recipe { margin-bottom: 2px; }
.cook-head__photo { width: 46px; height: 46px; border-radius: 12px; }
.cook-head__title { font: 800 23px/1.1 var(--font-display); letter-spacing: -.02em; }
.icon-toggle { width: 34px; height: 34px; border-color: var(--rule-strong); background: var(--card); }
.icon-toggle[aria-pressed="true"] { border-color: var(--persimmon); background: var(--persimmon-soft); color: var(--tomato-text); }
.cook-tabs { gap: 2px; margin: 0 -6px; }
.cook-tab { height: auto; padding: 8px 9px 10px; border-radius: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-size: 13.5px; }
.cook-tab:hover { color: var(--ink); }
.cook-tab[aria-selected="true"] { background: transparent; color: var(--ink); border-bottom-color: var(--persimmon); }
.cook-tab:focus-visible { outline-offset: -3px; border-radius: 8px; }
.cook-panel { padding: 18px; }
.cook-panel__title { font: 800 26px/1.1 var(--font-display); letter-spacing: -.02em; }
.cook-panel__foot { margin: auto -18px -18px; background: var(--card); }
.eyebrow { font-weight: 700; letter-spacing: .08em; }

/* --- The current step ------------------------------------------------------------------------------------------ */
.now__count { color: var(--muted); font-weight: 700; }
.now__label { padding: 3px 9px; border-radius: var(--radius-pill); background: var(--honey); color: #23201B; }
.now__all { color: var(--ink); font-weight: 600; text-decoration: none; }
.now__all:hover { color: var(--tomato-text); text-decoration: underline; text-underline-offset: 3px; }
.now__section { font: 600 16px/22px var(--font-display); }
.now__text { font: 600 23px/1.28 var(--font-display); letter-spacing: -.005em; }
.now__uses { border-radius: 16px; padding: 12px 14px; background: var(--card); border-color: var(--rule); }
.now__uses li { font-size: 14.5px; }
.now__uses strong { min-width: 68px; font-weight: 700; }
.now__next { border-top: 0; padding-top: 0; }
.now__next p { color: var(--ink-soft); font-size: 14.5px; }
.cook__credit { font-size: 12px; line-height: 1.45; }
.choice__option[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }

/* --- Timers: ink pills, a mustard icon; tomato when one rings ---------------------------------------------------- */
.timer-button { gap: 10px; min-height: 44px; padding: 0 18px 0 14px; border: 1px solid var(--timer-edge); background: var(--timer-bg); color: var(--timer-fg); }
.timer-button svg { color: var(--timer-icon); }
.timer-button:hover { background: #3A332C; }
.timer-button.is-running { background: var(--persimmon); border-color: var(--persimmon); color: var(--on-persimmon); }
.timer-button.is-running svg { color: #FFFFFF; }
.cook > .timers { padding: 12px 18px 0; border-bottom: 0; }
.timer { min-height: 48px; gap: 10px; padding: 8px 8px 8px 42px; position: relative; border: 1px solid var(--timer-edge); border-radius: 16px;
  background: var(--timer-bg); color: var(--timer-fg); font-size: 14px; font-weight: 600; }
.timer::before { content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: var(--timer-icon);
  -webkit-mask: var(--timer-glyph) center / contain no-repeat; mask: var(--timer-glyph) center / contain no-repeat; }
.timer.is-ringing { background: var(--persimmon); border-color: var(--persimmon); color: var(--on-persimmon); }
.timer.is-ringing::before { background: #FFFFFF; }
.timer__close { min-height: 32px; padding: 0 12px; background: rgba(250, 246, 238, .16); color: inherit; font-size: 12px; font-weight: 700; text-decoration: none; }
.timers--together .timer-card { border-radius: 16px; background: var(--card); border: 1px solid var(--rule); }
.timers--together .timer-card.is-running { background: var(--timer-bg); border-color: var(--timer-edge); color: var(--timer-fg); }
.timers--together .timer-card.is-running .timer-card__what strong, .timers--together .timer-card.is-running .timer-card__by { color: var(--timer-fg); }
.timers--together .timer-card.is-running .timer-card__left { color: var(--timer-icon); }
.timers--together .timer-card.is-ringing { background: var(--persimmon); border-color: var(--persimmon); color: var(--on-persimmon); }
.timers--together .timer-card.is-ringing .timer-card__left { color: #FFFFFF; }
.timer-card__left { font: 800 22px/1 var(--font-sans); font-variant-numeric: tabular-nums; }
/* Fraunces has no tabular figures, so every ticking numeral (timer bar, buttons, together cards, hands-free) is Inter with them. */
.timer, .timer-button, .hcook-now__timer .step__timer { font-family: var(--font-sans); font-variant-numeric: tabular-nums; }
.timer-card.is-ringing .button { background: #FFFFFF; color: #8F2F14; }
.presence { background: var(--linen); border-radius: 14px; }
.toast { border-radius: 14px; }
.asked { border-radius: 16px; }

/* --- Footer: progress dots, Back, and the ink next button --------------------------------------------------------- */
.cook__foot { background: var(--card); border-top: 1px solid var(--rule); gap: 12px; }
.dots { justify-content: center; gap: 7px; }
.dot { flex: 0 1 8px; min-width: 3px; height: 8px; background: var(--rule-strong); transition: flex-basis .15s ease; }
.dot.is-done { background: var(--sage); }
.dot.is-now { flex: 0 0 26px; background: var(--honey); }
.cook__nav { gap: 10px; }
.cook__nav .button { min-height: 50px; font-size: 16px; }
.cook__nav .button--ghost { border: 1px solid var(--rule-strong); color: var(--ink); padding: 0 22px; font-weight: 600; background: var(--card); }
.cook__nav .button--ghost:hover { background: var(--linen); }
.cook__nav .button--grow { background: var(--ink); color: var(--on-ink); }
.cook__nav .button--grow:hover { background: var(--ink-soft); color: var(--on-ink); }
.cook__nav [data-cook-target="save"] { background: var(--persimmon); color: var(--on-persimmon); }
.cook__nav [data-cook-target="save"]:hover { background: var(--persimmon-hover); color: var(--on-persimmon); }
.cook-panel__foot > .button { background: var(--ink); color: var(--on-ink); min-height: 52px; }
@media (prefers-reduced-motion: reduce) { .dot { transition: none; } }

/* --- Ingredients tab and All steps -------------------------------------------------------------------------------- */
.stepper { background: var(--linen); border: 0; padding: 3px; gap: 4px; height: 42px; }
.stepper__btn { width: 36px; height: 36px; border-radius: 50%; background: var(--card); font-size: 20px; font-weight: 600; }
.stepper__value { min-width: 70px; font-weight: 700; }
.segmented__option { padding: 0 14px; color: var(--ink-soft); }
.segmented__option[aria-current="true"] { background: var(--ink); color: var(--on-ink); font-weight: 700; }
.scale-note { border-radius: 14px; padding: 10px 14px; }
.ingredients { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 2px 0; }
.ingredient { padding: 7px 16px; border-bottom: 0; border-top: 1px solid var(--rule); }
.ingredients > .ingredient:first-child, .ingredients__group + .ingredient { border-top: 0; }
.ingredients__group { margin: 0; padding: 12px 16px 2px; font: 800 16px/22px var(--font-display); }
.ingredient__amount { min-width: 92px; font-weight: 700; }
.ingredient.is-now { background: var(--honey-bg); border-radius: 0; box-shadow: inset 3px 0 0 var(--honey); }
.ingredient.is-now + .ingredient.is-now { margin-top: 0; }
.steps { gap: 0; }
.steps__section { font: 800 16px/22px var(--font-display); }
.step { gap: 10px; padding: 8px 8px 8px 6px; border-bottom: 0; align-items: flex-start; border-radius: 14px; }
.step__text { font-size: 14.5px; line-height: 21px; }
.step__n { font-weight: 700; }
.step.is-now { background: var(--honey-bg); box-shadow: inset 0 0 0 2px var(--honey); }
.step.is-now .step__text { font-weight: 600; }
.check { width: 24px; height: 24px; border-radius: 50%; border-width: 2px; background: var(--card); }
.check svg { width: 13px; height: 13px; }
.step.is-done .check { background: var(--sage); border-color: var(--sage); color: #FFFFFF; }
@media (prefers-color-scheme: dark) { .step.is-done .check { color: #1A1614; } }

/* --- Get ready and Notes ------------------------------------------------------------------------------------------ */
.prep__count { color: var(--sage-ink); }
.prep .cook-section { gap: 0; }
.prep .cook-section .eyebrow { margin: 4px 0 8px; }
.prep-item { padding: 8px 14px; align-items: center; background: var(--card); border: 1px solid var(--rule); border-top-width: 0; font-size: 15px; }
.prep .cook-section > .eyebrow + .prep-item { border-top-width: 1px; border-radius: 18px 18px 0 0; }
.prep .cook-section > .prep-item:last-child { border-radius: 0 0 18px 18px; }
.prep .cook-section > .eyebrow + .prep-item:last-child { border-radius: 18px; }
.prep-item input { width: 28px; height: 28px; border-radius: 9px; border-width: 2px; background-size: 15px; }
.tools li { padding: 8px 14px; font-weight: 600; }
.author-notes { font-size: 17px; line-height: 25px; }
.my-note { border-radius: 14px; }
.chip-toggle { border-color: var(--rule-strong); }

/* --- Finish: heading, rating, your photo, note, boards, share ---------------------------------------------------- */
.finished { margin: -18px -18px 0; gap: 14px; }
.finished > :not(.finished__hero) { margin-left: 18px; margin-right: 18px; }
.finished__hero { height: auto; display: flex; flex-direction: column; align-items: stretch; background: none; overflow: visible; padding: 18px 18px 0; gap: 12px; }
.finished__hero::after { display: none; }
.finished__photo { position: static; width: 100%; height: 150px; border-radius: 18px; }
.finished__words { padding: 0; color: var(--ink); gap: 6px; }
.finished__byline { font-size: 14px; font-weight: 400; color: var(--ink-soft); order: 2; }
.finished__text { font: 800 28px/1.08 var(--font-display); letter-spacing: -.02em; order: 1; }
.finished .stack { border-top: 0; padding-top: 4px; }
.finished .eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0; }
/* Unchecked stars are hollow outlines and checked ones solid tomato: shape tells them apart, not colour alone. */
.star-input label { font-size: 38px; line-height: 44px; width: 44px; color: transparent; -webkit-text-stroke: 1.5px var(--muted); }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--tomato-text); -webkit-text-stroke-color: var(--tomato-text); }
.finish-form .input { border-radius: 16px; }
.photo-tile__box { width: 104px; height: 104px; border-radius: 14px; }
.board-chip span, .board-new summary { border-color: transparent; background: var(--linen); }
.board-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.finished .share__button { border-radius: var(--radius-pill); background: var(--linen); border-color: transparent; font-weight: 600; }

/* --- Idle panel and the cook-any-page states ---------------------------------------------------------------------- */
.cook__body { padding: 20px 18px; gap: 18px; }
.cook__body > .logo { --logo: 17px; }
.cook__body > .stack .cook-panel__title { font: 800 28px/1.08 var(--font-display); letter-spacing: -.02em; max-width: 9em; }
.idle__title { font: 800 21px/1.2 var(--font-display); letter-spacing: -.01em; }
.mini-card { gap: 12px; align-items: center; padding: 8px; background: var(--card); border: 1px solid var(--rule); border-radius: 18px; margin-bottom: 8px; }
.mini-card__photo, .mini-card .photo--empty { width: 60px; height: 60px; border-radius: 12px; }
.mini-card__title { font: 600 14.5px/1.25 var(--font-sans); }
.mini-card__body .persimmon { color: var(--tomato-text); font-size: 12.5px; }
.cook__body > .note { background: var(--sage-bg); color: var(--sage-ink); border-radius: 18px; padding: 14px 16px; gap: 4px; }
.cook__body > .note h2 { font: 700 15px/1.3 var(--font-sans); color: var(--sage-ink); }
.cook__body > .note p, .cook__body > .note a { color: var(--sage-ink); }
.panel-footer { border-top: 0; }
.any__note, .any__banner { border-radius: 14px; }
.any__field input, .any__paste { border-radius: 16px; }
.any__rows { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 0 14px; }
.any__rows li:last-child { border-bottom: 0; }
.private-badge, .any__private { border-radius: 14px; }
.sheet { border-radius: 24px; }
.sheet__title { font: 800 24px/30px var(--font-display); letter-spacing: -.02em; }

/* --- Hands-free stays cast iron: a mustard NOW and a mustard listening dot ----------------------------------------- */
.handsfree__mic { background: var(--honey); color: #23201B; margin: 8px; box-shadow: 0 0 0 6px rgba(244, 183, 64, .25), 0 0 0 13px rgba(244, 183, 64, .1); }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .handsfree:not([hidden]) { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; margin: 18px 18px 0; padding: 14px 16px; background: #2F2620; border-radius: 20px; }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .handsfree p { flex: 1 1 140px; margin: 0; }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .handsfree__commands { flex: 1 1 100%; }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .cook-head { background: transparent; }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .cook-head__title, .cook.is-handsfree:not(.is-finished)[data-tab="cook"] .now__text { color: var(--on-iron); }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .cook-tab[aria-selected="true"] { background: transparent; color: var(--on-iron); border-bottom-color: var(--honey); }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .now__label { background: var(--honey); color: #23201B; padding: 3px 9px; }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .now__all { color: var(--on-iron-2); }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .now__text { font: 600 33px/1.2 var(--font-display); }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .timer-button:not(.is-running) { background: #2F2620; border-color: var(--iron-rule-2); color: var(--on-iron); }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .cook__nav .button--grow { background: var(--on-iron); color: var(--iron); }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .cook__nav .button--ghost { background: transparent; }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .cook-head__initial { background: var(--iron-rule); color: var(--on-iron); }
.handsfree__commands li { padding: 8px 14px; font-size: 15px; font-weight: 600; border-color: var(--iron-rule-2); }
.handsfree__commands li::before { content: "\201C"; }
.handsfree__commands li::after { content: "\201D"; }
