/* StoveTab. Tokens come from the StoveTab redesign handoff (Claude Design); see docs/design/README.md. */
/* Newsreader and Hanken Grotesk (SIL Open Font License 1.1), self-hosted from app/assets/fonts: Google Fonts'
   variable files, Latin and Latin Extended only. No third-party stylesheet blocking the first paint. */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/hanken-grotesk-latin-ext-c2a3301f.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/hanken-grotesk-latin-62d0893d.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400 500; font-display: swap; src: url("/assets/newsreader-italic-latin-ext-e778c051.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400 500; font-display: swap; src: url("/assets/newsreader-italic-latin-fd8d4ba4.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/assets/newsreader-latin-ext-c601fd27.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/assets/newsreader-latin-fe979712.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --paper: #F7F2EA; --card: #FFFCF7; --linen: #EFE7DA; --rule: #E3D8C8; --rule-strong: #D9CDBB; --dash: #C9BBA7;
  --ink: #2A211C; --on-ink: #F7F2EA; --ink-soft: #4A3E35; --muted: #6E6157;
  --persimmon: #A9482A; --persimmon-hover: #8C3A20; --on-persimmon: #FFFCF7; --persimmon-soft: #F6E3D8;
  --warn-bg: #F6DED3; --warn-ink: #8C3A20; /* foods to avoid: allergy, diet and "may contain" chips (design Revision 8) */
  --honey: #E8B04A; --honey-bg: #F6E7C1; --honey-ink: #7A4E0E; /* now, always with a second cue */
  --sage: #4F6B4A; --sage-bg: #E4EADF; --sage-ink: #3E5639; /* done, always with a second cue */
  /* Cast iron stays dark in both themes (a little darker on a dark page, design Revision 6). */
  --iron: #231C17; --iron-edge: #231C17; --on-iron: #F3EADD; --on-iron-2: #D8CBBB; --on-iron-3: #BFB1A2;
  --iron-rule: #3A2F27; --iron-rule-2: #5A4B3F; --iron-honey: #E8C27A; --iron-link: #F0A98F;
  --placeholder: repeating-linear-gradient(135deg, #E9DFD0 0 10px, #E1D5C3 10px 20px);
  --font-display: "Newsreader", Georgia, serif;
  --font-sans: "Hanken Grotesk", system-ui, sans-serif;
  /* Named lists' swatches (design Revision 12): GroceryList::COLORS. Groceries is persimmon. */
  --list-persimmon: #A9482A; --list-slate: #3F5D78; --list-honey: #B07A1F; --list-sage: #4F6B4A; --list-stone: #8C7B6B; --list-olive: #6B7A34;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-12: 48px;
  --radius-sm: 6px; --radius-input: 12px; --radius-md: 14px; --radius-lg: 18px; --radius-xl: 22px; --radius-pill: 999px;
  color-scheme: light dark;
}
/* The handoff's dark tokens (design Revision 6). The accent stays the light text on dark (#F0A98F) because it's
   also every link's color; the handoff's #A9482A fill would need its own link token. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1C1713; --card: #26201B; --linen: #2E2721; --rule: #3A3029; --rule-strong: #4A3E35; --dash: #5A4B3F;
    --ink: #F3EADD; --on-ink: #231C17; --ink-soft: #D8CBBB; --muted: #A99A8A;
    --persimmon: #F0A98F; --persimmon-hover: #F6C2AE; --on-persimmon: #1C1612; --persimmon-soft: #3E2419;
    --warn-bg: #3E2419; --warn-ink: #F0A98F;
    --honey-bg: #3D3018; --honey-ink: #E8C27A;
    --sage: #7FA077; --sage-bg: #24301F; --sage-ink: #A9C7A0;
    --list-persimmon: #F0A98F; --list-slate: #8FA9C2; --list-honey: #E8C27A; --list-sage: #7FA077; --list-stone: #BFB1A2; --list-olive: #A9B86A;
    --iron: #120E0B; --iron-edge: #3A2F27; /* so a cast-iron block doesn't melt into a dark page */
    --placeholder: repeating-linear-gradient(135deg, #2E2721 0 10px, #26201B 10px 20px);
  }
}

*, *::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%; height: auto; } /* width and height attributes only reserve the shape */
a { color: var(--persimmon); }
a:hover { color: var(--persimmon-hover); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--persimmon); 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(--muted); }
.ink { color: var(--ink); }
.small { font-size: 13px; line-height: 18px; }
.strong { font-weight: 600; }
.persimmon { color: var(--persimmon); }
.display { font: 400 48px/52px var(--font-display); letter-spacing: -.01em; text-wrap: balance; }
.title { font: 500 26px/32px var(--font-display); }
.lede { font-size: 17px; line-height: 26px; color: var(--muted); }
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--space-2); }
.eyebrow--sage { color: var(--sage); }
.eyebrow--persimmon { color: var(--persimmon); }
.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; }
/* The watercolour pot and the traced SVG wordmark, in the artwork's proportions (the word is .647 of the pot's
   height and sits .109 above its base). Sized from --logo; the word follows the text colour. */
.logo { --logo: 22px; --logo-pot: calc(var(--logo) * 2); display: inline-flex; align-items: flex-end; gap: calc(var(--logo-pot) * .027); color: #5E361A; }
.logo__pot { display: block; height: var(--logo-pot); width: auto; }
.logo__word { display: block; height: calc(var(--logo-pot) * .647); width: calc(var(--logo-pot) * 2.971); margin-bottom: calc(var(--logo-pot) * .109); }
.logo--on-iron { color: var(--on-iron); }
@media (prefers-color-scheme: dark) { .logo { color: var(--ink); } }
.icon { flex: none; vertical-align: -.15em; }

.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-pill); background: var(--persimmon); color: var(--on-persimmon); font-family: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--persimmon-hover); color: var(--on-persimmon); }
.button--big { min-height: 60px; 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(--persimmon); font-size: 13px; font-weight: 600; min-height: 32px; }
.link-button:focus-visible { outline: 2px solid var(--persimmon); outline-offset: 2px; }
.link-button--muted { color: var(--muted); font-size: 14px; min-height: 44px; }
.button--pill { min-height: 54px; padding: 0 26px; font-size: 16px; }
/* An input and its button on one line, wrapping on a phone. */
.inline-form { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.inline-form .input { flex: 1 1 240px; min-width: 0; }

/* Website */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
@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-3) 28px; padding-top: 14px; padding-bottom: 14px; }
.site-nav { display: flex; gap: 22px; font-size: 15px; font-weight: 600; overflow-x: auto; scrollbar-width: none; }
.site-nav__link { flex: none; display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav__link[aria-current="page"] { border-bottom-color: var(--persimmon); }
.search { flex: 1 1 240px; position: relative; }
.search .icon { position: absolute; left: 18px; top: 13px; color: var(--muted); }
.search input { width: 100%; height: 44px; border: 1px solid var(--rule-strong); border-radius: var(--radius-pill); padding: 0 20px 0 44px; background: var(--card); color: var(--ink); font: inherit; font-size: 15px; }
.search input::placeholder { color: var(--muted); }
.site-actions { display: flex; align-items: center; gap: var(--space-3); font-size: 15px; font-weight: 600; }
.site-actions__link { color: var(--ink); text-decoration: none; }
.page { padding-top: var(--space-12); padding-bottom: 72px; display: flex; flex-direction: column; gap: var(--space-6); }
.site-footer { background: var(--iron); border-top: 1px solid var(--iron-edge); color: var(--on-iron-2); }
.site-footer__row { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: var(--space-6) 32px; justify-content: space-between; align-items: flex-start; }
.site-footer__about { max-width: 420px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 21px; }
.site-footer__links { display: flex; flex-wrap: wrap; column-gap: 22px; font-size: 14px; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-iron); text-decoration: none; }
.site-footer__links a:hover { color: var(--iron-link); }
/* The picker's current language (a strong) and, signed in, its buttons sit on the links' 44px line. */
.locale-picker > strong { display: inline-flex; align-items: center; min-height: 44px; }
.locale-picker .link-button { min-height: 44px; color: var(--on-iron); font-size: 14px; font-weight: inherit; }
.locale-picker .link-button:hover { color: var(--iron-link); }
.site-footer__legal { flex-basis: 100%; font-size: 13px; color: var(--on-iron-3); }
.site-footer__legal a { color: var(--on-iron-2); }
.legal { max-width: 720px; }
.legal h2 { font: 500 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: 38px; padding: 0 var(--space-4); border-radius: var(--radius-pill); border: 1px solid var(--rule-strong);
  background: var(--card); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.chip:hover { color: var(--ink); border-color: var(--muted); }
.chip[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }

.section { display: flex; flex-direction: column; gap: 22px; margin-top: 32px; }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-1) var(--space-6); }
.section__title { font: 400 32px/36px var(--font-display); }

.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); background: var(--iron); border: 1px solid var(--iron-edge); color: var(--on-iron); border-radius: var(--radius-xl); overflow: hidden; }
.hero__media { min-height: 420px; position: relative; background: var(--placeholder); }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.hero__body { padding: 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--space-4); }
.hero__eyebrow { margin: 0; color: var(--iron-honey); letter-spacing: .1em; }
.hero__title { font: 400 56px/58px var(--font-display); text-wrap: balance; }
.hero__lede { font-size: 19px; line-height: 30px; color: var(--on-iron-2); }
.hero__credit { font-size: 13px; color: var(--on-iron-3); }
@media (max-width: 600px) { .hero__body { padding: var(--space-6); } .hero__title { font-size: 40px; line-height: 44px; } .hero__media { min-height: 280px; } }
/* The same split card on paper: the empty Boards and My recipes tabs. */
.hero--paper { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); background: var(--card); border-color: var(--rule); color: var(--ink); }
.hero--paper .hero__media { min-height: 440px; }
.hero--paper .hero__media .mosaic { position: absolute; inset: 0; height: auto; border-radius: 0; }
.hero--paper .hero__body { padding: 48px 52px; gap: 18px; }
.hero--paper .hero__eyebrow { color: var(--persimmon); letter-spacing: .12em; }
.hero--paper .hero__title { font-size: 44px; line-height: 48px; }
.hero--paper .hero__lede { max-width: 480px; font-size: 17px; line-height: 27px; color: var(--ink-soft); }
.hero--paper .inline-form, .hero--paper .starters { align-self: stretch; }
.hero--paper .input { background: var(--paper); }
@media (max-width: 600px) { .hero--paper .hero__media { min-height: 260px; } .hero--paper .hero__body { padding: var(--space-6); } .hero--paper .hero__title { font-size: 34px; line-height: 40px; } }
.starters { display: flex; flex-direction: column; gap: 10px; padding-top: var(--space-2); font-size: 14px; }
.starters__form { margin: 0; }
.starters .chip { min-height: 40px; background: var(--paper); border-color: var(--rule); font-family: inherit; font-size: 14px; cursor: pointer; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 22px; }
.checks li { display: flex; gap: 10px; }
.checks li::before { content: "✓"; color: var(--sage); }
.button--paper { background: var(--on-iron); color: var(--iron); }
.button--paper:hover { background: #fff; color: var(--iron); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-6); }
.tiles--boards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 36px 28px; }
.tiles--boards .mosaic { height: 340px; border-radius: 20px; }
.tiles--boards .tile__title { margin-top: 10px; font: 400 28px/32px var(--font-display); }
.tiles--boards .tile .muted { font-size: 15px; }
@media (max-width: 600px) { .tiles--boards .mosaic { height: 260px; } }
.tile { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; }
.tile:hover { color: var(--ink); }
.tile__title { margin-top: 8px; font: 500 21px/25px var(--font-display); }
.mosaic { height: 190px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 4px; border-radius: var(--radius-lg); overflow: hidden; }
.mosaic__photo { width: 100%; height: 100%; min-height: 0; object-fit: cover; aspect-ratio: auto; background: var(--placeholder); }
.mosaic > :first-child { grid-row: 1 / 3; }
/* The last row of a 2-column grid: make another. */
.tile-new { grid-column: 1 / -1; padding: 32px 36px; border: 1.5px dashed var(--dash); border-radius: var(--radius-xl); display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; color: var(--ink); }
.tile-new__text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.tile-new__title { font: 400 30px/34px var(--font-display); }
.tile-new__action { flex: 1 1 420px; }
@media (max-width: 600px) { .tile-new { padding: var(--space-6); } }

.wall { columns: 4 260px; column-gap: 22px; }
.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 { position: relative; display: flex; flex-direction: column; gap: 10px; }
.card__media { position: relative; }
.card__link { display: block; color: var(--ink); text-decoration: none; }
.card__link:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card__photo { display: block; width: 100%; height: auto; min-height: 160px; border-radius: var(--radius-lg); background: var(--placeholder); object-fit: cover; }
.grid .card__photo { height: 200px; }
.grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 28px; }
.grid--wide .card__photo { height: 300px; }
.grid--wide .upload-card { align-items: stretch; }
.card__body { display: flex; flex-direction: column; gap: var(--space-1); }
.card__body strong { color: var(--ink); font-weight: 600; }
.card__title { font: 500 21px/25px var(--font-display); }
.photo--empty { background: var(--placeholder); aspect-ratio: 4 / 3; }
.empty { padding: var(--space-12) 0; display: flex; flex-direction: column; gap: var(--space-2); }
.board-card, .upload-card { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.board-edit { display: flex; flex-direction: column; gap: var(--space-3); }
.board-edit[open] summary { margin-bottom: var(--space-2); }
.board-edit .input { flex: 1 1 200px; max-width: 360px; }

.spotlight { margin-top: 32px; padding: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; border-radius: var(--radius-xl); background: var(--linen); }
.spotlight__portrait { width: 180px; height: 180px; flex: none; border-radius: var(--radius-pill); object-fit: cover; aspect-ratio: auto; }
.spotlight__body { flex: 1 1 320px; display: flex; flex-direction: column; gap: var(--space-2); }
.spotlight__body .eyebrow { margin: 0; }
.spotlight__note { font: italic 400 17px/27px var(--font-display); color: var(--ink-soft); }
.spotlight .row { margin-top: var(--space-2); }

/* The recipe page (design Revision 20): a header (photo beside the title at 4:3, or a tinted band with the site's initial),
   then one reading column grouped by job, then a linen band of other cooks at two columns. */
.rp { display: flex; flex-direction: column; gap: clamp(28px, 3.4vw, 44px); }
.rp-head { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 3.4vw, 48px); }
.rp-head__back { flex: 1 1 100%; }
.rp-head__media { flex: 1 1 480px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.rp-head__main { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.rp-head--band { align-items: flex-start; gap: clamp(18px, 3vw, 40px); padding: clamp(22px, 3.4vw, 48px); border-radius: 24px; background: var(--persimmon-soft); }
.rp-head--band .rp-head__main { flex-basis: 520px; }
.rp-head__mono { flex: none; width: clamp(88px, 11vw, 156px); aspect-ratio: 1; border-radius: var(--radius-pill); background: var(--paper); border: 1px solid var(--rule-strong);
  display: flex; align-items: center; justify-content: center; font: italic 400 clamp(48px, 6.5vw, 92px)/1 var(--font-display); color: var(--persimmon); }
.recipe__photo { display: block; width: 100%; height: auto; max-height: 520px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); background: var(--placeholder); }
.recipe__title { font: 400 clamp(36px, 4.2vw, 58px)/1.04 var(--font-display); text-wrap: balance; overflow-wrap: anywhere; }
.rp-head--band .recipe__title { font-size: clamp(40px, 5.2vw, 72px); line-height: 1.02; }
.recipe__description { font: italic 400 clamp(17px, 1.5vw, 20px)/1.45 var(--font-display); color: var(--ink-soft); max-width: 680px; }
.rp-head .rp-credit { padding: 0; background: none; border: 0; border-radius: 0; gap: 10px 12px; }
.rp-head .rp-credit .credit__initial { width: 36px; height: 36px; font-size: 18px; }
.rp-head .rp-credit .credit__who { display: block; }
.rp-head .rp-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 12px 0; }
.rp-head--band .rp-facts.rp-facts { border-color: var(--rule-strong); }
.rp-head .rp-facts dt { font-size: 11px; font-weight: 700; }
.rp-head .rp-facts dd { margin: 2px 0 0; font: 600 16px/22px var(--font-sans); }
.rp-cook { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rp-cook__button { font-size: 17px; }
.rp-cook__line { line-height: 19px; }
.rp-body { width: 100%; max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(28px, 3.4vw, 44px); }
.rp-group { display: flex; flex-direction: column; gap: 12px; }
.rp-group__title { font: 400 26px/32px var(--font-display); }
.button--dashed { border-style: dashed; border-color: var(--rule-strong); color: var(--muted); }
.favorite--keep .favorite__button { min-height: 44px; padding: 0 16px; font-size: 15px; border-color: var(--ink); background: transparent; }
.favorite--keep .favorite__button.is-saved { border-color: var(--persimmon); background: var(--persimmon); }
.favorite--out .favorite__button { border-style: dashed; border-color: var(--rule-strong); color: var(--muted); }
.rp-signin { padding: 12px 14px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--rule); font-size: 14px; line-height: 20px; color: var(--ink-soft); }
/* Fit it to you: native disclosures, a title and one muted line, + / − on the right. */
.rp-fit { gap: 0; }
.rp-fit .rp-group__title { margin-bottom: 6px; }
.fit { border-top: 1px solid var(--rule); }
.fit:last-child { border-bottom: 1px solid var(--rule); }
.fit__summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 14px 0; cursor: pointer; }
.fit__summary::-webkit-details-marker { display: none; }
.fit__summary::after { content: "+"; flex: none; width: 20px; text-align: center; font-size: 18px; color: var(--muted); }
.fit[open] > .fit__summary::after { content: "\2212"; }
.fit--row { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.fit__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fit__title { font-size: 16px; font-weight: 600; }
.fit__sum { font-size: 13px; line-height: 19px; color: var(--muted); }
.fit__body { padding: 0 0 18px; display: flex; flex-direction: column; gap: 10px; }
.fit .nutri { margin-top: 0; }
.fit .nutri__title--plain { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* the summary says Nutrition */
.fit .mv { margin: 0; }
/* Cook it with StoveTab (design canvas A on desktop, C on phones): a preview of the panel beside the author's page and
   the one next step for this device. The preview's lines are blank on purpose: we never show the author's steps. */
.rp-pitch { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(18px, 3vw, 32px); align-items: center;
  padding: clamp(18px, 2.4vw, 26px); border-radius: 20px; background: var(--card); border: 1px solid var(--rule); }
.rp-pitch__main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rp-pitch__eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--persimmon); }
.rp-pitch__title { margin: 0; font: 400 clamp(22px, 2vw, 26px)/1.2 var(--font-display); text-wrap: pretty; }
.rp-pitch__reasons { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.rp-pitch__reasons li { display: flex; gap: 8px; align-items: baseline; }
.rp-pitch__reasons svg { flex: none; color: var(--sage); align-self: center; }
.rp-pitch__cta { align-self: flex-start; }
.rp-pitch__small { margin: 0; font-size: 14px; color: var(--muted); }
.rp-pitch__why { align-self: flex-start; font-size: 14px; font-weight: 600; }
.rp-pitch__preview { display: flex; height: 200px; border: 1px solid var(--rule); border-radius: var(--radius-md); overflow: hidden; background: var(--paper); }
.rp-pitch__page { flex: 1 1 0; display: flex; flex-direction: column; gap: 8px; padding: 12px; min-width: 0; }
.rp-pitch__url { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-pitch__photo { height: 56px; border-radius: var(--radius-sm); background: var(--placeholder); }
.rp-pitch__bar { display: block; height: 7px; width: 85%; border-radius: 4px; background: var(--rule); }
.rp-pitch__bar--short { width: 55%; }
.rp-pitch__panel { width: 55%; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-left: 1px solid var(--rule); background: var(--card); box-sizing: border-box; }
.rp-pitch__chip { align-self: flex-end; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; padding: 0 8px; border: 1px solid var(--rule-strong); border-radius: var(--radius-pill); color: var(--muted); }
.rp-pitch__done { display: flex; align-items: center; gap: 6px; color: var(--sage); }
.rp-pitch__done .rp-pitch__bar { background: var(--sage-bg); }
.rp-pitch__now { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-left: 4px solid var(--honey); border-radius: var(--radius-sm); background: var(--honey-bg); }
.rp-pitch__now strong { font-size: 10px; letter-spacing: .08em; color: var(--honey-ink); }
.rp-pitch__now .rp-pitch__bar { background: var(--honey); opacity: .45; }
.rp-pitch__timer { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 0 8px; border-radius: var(--radius-pill); background: var(--card); color: var(--ink); }
.rp-pitch__progress { margin-top: auto; height: 4px; border-radius: 2px; background: var(--rule); }
.rp-pitch__progress span { display: block; width: 33%; height: 4px; border-radius: 2px; background: var(--honey); }
.rp-pitch--phone { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.rp-pitch__line { margin: 0; font-size: 15px; }
.rp-pitch__more-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 12px; }
.rp-pitch__more > summary { cursor: pointer; font-size: 15px; font-weight: 600; color: var(--persimmon); min-height: 24px; }
.rp-pitch__more-body > p { margin: 0; font-size: 15px; }
.rp-pitch__more-body > .rp-pitch__preview { align-self: stretch; }
.rp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--rule); }
.rp-share__label { padding-right: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
/* If you liked this: full width linen, two columns (one on a phone), each card a row. */
.rp-more { margin-top: 0; padding: clamp(28px, 3.4vw, 48px) 0; background: var(--linen); box-shadow: 0 0 0 100vmax var(--linen); clip-path: inset(0 -100vmax); gap: 18px; }
.rp-more .section__title { font-size: clamp(26px, 2.4vw, 32px); }
.rp-more .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 700px) { .rp-more .grid { grid-template-columns: minmax(0, 1fr); } }
.rp-more .card { flex-direction: row; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; background: var(--card); }
.rp-more .card__media { flex: none; width: 112px; }
.rp-more .card__photo { height: 112px; min-height: 0; border-radius: 12px; }
.rp-more .card__body { flex: 1; min-width: 0; }
.rp-more .favorite--card { top: 4px; right: 4px; }
.rp-more .favorite__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rp-more .favorite__button { padding: 0 10px; }
.credit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-md); font-size: 14px; color: var(--muted); }
.credit strong { color: var(--ink); }
.credit__who { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.credit__initial { flex-shrink: 0; width: 48px; height: 48px; border-radius: var(--radius-pill); background: var(--linen); color: var(--persimmon); display: flex; align-items: center; justify-content: center; font: italic 400 24px/1 var(--font-display); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 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: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: var(--space-1) 0 0; font: 400 24px/30px var(--font-display); }
.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(--linen); font-size: 14px; }
.more { display: flex; flex-direction: column; gap: 22px; margin-top: 40px; }
.callout { position: relative; padding: 18px 18px 18px 52px; border-radius: var(--radius-lg); background: var(--linen); font-size: 15px; line-height: 22px; }
.callout__mark { position: absolute; left: 16px; top: 8px; font: 400 56px/1 var(--font-display); color: var(--persimmon); }
.board-picker { position: relative; }
.board-picker summary { list-style: none; cursor: pointer; }
.board-picker summary::-webkit-details-marker { display: none; }
.board-picker__pop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 10; width: min(340px, calc(100vw - 32px)); min-height: 80px; padding: var(--space-3); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: 0 16px 32px -20px rgba(42, 33, 28, .4); }
.picker { list-style: none; margin: 0 0 var(--space-2); padding: 0; display: flex; flex-direction: column; gap: 2px; }
.picker form { margin: 0; }
.picker__row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.picker__row:hover { background: var(--paper); }
.picker__thumb { width: 40px; height: 40px; flex: none; border-radius: 8px; object-fit: cover; aspect-ratio: auto; }
.picker__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.picker__check { width: 24px; height: 24px; flex: none; border-radius: var(--radius-pill); border: 1.5px solid var(--rule-strong); color: transparent; display: flex; align-items: center; justify-content: center; }
.picker__check.is-on { background: var(--sage); border-color: var(--sage); color: var(--paper); }
.picker__new { display: flex; gap: var(--space-2); margin-bottom: var(--space-2); }
.picker__new .input { flex: 1; min-width: 0; height: 40px; }
.recipe__action { margin: 0; }

.how { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.how__step { display: flex; gap: var(--space-4); align-items: flex-start; }
.how__step h2 { font: italic 400 21px/26px var(--font-display); }
.how__n { width: 36px; height: 36px; flex: none; border-radius: var(--radius-pill); background: var(--linen); color: var(--persimmon); display: flex; align-items: center; justify-content: center; font: 500 18px/1 var(--font-display); }
.badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--sage-bg); color: var(--sage-ink); font-size: 13px; font-weight: 600; }
.welcome { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--space-12); align-items: center; }
.welcome__text { display: flex; flex-direction: column; gap: 22px; }
.welcome__art { position: relative; margin: 0; }
.welcome__photo { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-xl); }
.welcome__panel { position: absolute; right: 18px; bottom: 18px; width: min(260px, calc(100% - 36px)); }
.now__mini { font: 400 18px/25px var(--font-display); }

/* Our promise to cooks (/authors) */
.sections { display: flex; flex-direction: column; gap: 72px; }
.promise-hero__text { max-width: 860px; display: flex; flex-direction: column; gap: 22px; }
.promise-hero .eyebrow { margin: 0; }
.promise-hero__title { font: 400 68px/70px var(--font-display); text-wrap: balance; }
@media (max-width: 700px) { .promise-hero__title { font-size: 44px; line-height: 48px; } }
.authors { background: var(--iron); border: 1px solid var(--iron-edge); color: var(--on-iron); border-radius: var(--radius-xl); padding: 56px; display: flex; flex-direction: column; gap: 32px; }
@media (max-width: 600px) { .authors { padding: var(--space-6); } }
.authors__title { font: 400 44px/48px var(--font-display); }
.promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 40px; }
.promises li { display: flex; gap: var(--space-4); }
.promises__n { flex: none; width: 36px; font: italic 400 40px/44px var(--font-display); color: var(--iron-honey); }
.promises h3 { font: 500 21px/26px var(--font-display); margin-bottom: 6px; }
.promises p { color: var(--on-iron-2); }
.lives, .contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: var(--space-6); }
.lives__card, .contact { padding: 32px; border-radius: var(--radius-xl); background: var(--card); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: var(--space-3); }
.lives__card--ink, .contact--ink { background: var(--iron); border-color: var(--iron-edge); color: var(--on-iron); }
.contact--ink a { color: var(--iron-link); }
.ticks { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.roads { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.roads li { display: flex; flex-wrap: wrap; gap: 8px 48px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.roads h3 { flex: 0 1 300px; font: italic 400 30px/34px var(--font-display); color: var(--persimmon); }
.roads p { flex: 1 1 420px; font-size: 18px; line-height: 28px; color: var(--ink-soft); }
.beside { margin: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.beside__window { border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--card); overflow: hidden; }
.beside__bar { padding: 10px var(--space-4); border-bottom: 1px solid var(--rule); background: var(--paper); }
.beside__url { display: flex; align-items: center; height: 28px; padding: 0 14px; border: 1px solid var(--rule); border-radius: var(--radius-pill); background: var(--card); font-size: 13px; color: var(--muted); }
.beside__body { display: flex; flex-wrap: wrap; }
.beside__page { flex: 1 1 380px; padding: var(--space-6); display: flex; flex-direction: column; gap: 14px; }
.beside__panel { flex: 1 1 260px; max-width: 320px; border-left: 1px solid var(--rule); background: var(--paper); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.beside__block { height: 120px; border-radius: 10px; background: var(--persimmon-soft); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }
.beside__block--ad { height: 64px; background: none; border: 1px dashed var(--muted); }
.beside__lines { display: flex; flex-direction: column; gap: 6px; }
.beside__lines span { height: 10px; border-radius: 4px; background: var(--rule); }
.beside__lines span:nth-child(2) { width: 88%; }
.beside__lines span:nth-child(3) { width: 66%; }
/* saffron = now, always with the NOW label */
.beside__now { outline: 3px solid var(--honey); outline-offset: 4px; border-radius: 4px; background: var(--honey-bg); }
.beside__card { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.beside__caption { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6); font-size: 15px; line-height: 22px; }
@media (max-width: 700px) { .beside__panel { max-width: none; border-left: 0; border-top: 1px solid var(--rule); } }

/* 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: 400 44px/48px var(--font-display); }
.auth--card { align-self: center; width: 100%; padding: 32px; border-radius: var(--radius-xl); background: var(--linen); }
.auth--card .input { background: var(--card); }
.panel .auth--card { border-radius: 0; background: none; }
.auth__form { display: flex; flex-direction: column; gap: var(--space-2); font-weight: 600; font-size: 14px; }
.input { height: 52px; border: 1px solid var(--rule-strong); border-radius: var(--radius-input); padding: 0 14px; background: var(--card); color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; }
.input--code { height: 64px; border: 2px solid var(--persimmon); font: 500 32px/1 var(--font-display); letter-spacing: .4em; text-align: center; 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(--persimmon-soft); color: var(--persimmon); 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(--persimmon-soft); color: var(--persimmon); 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(--muted); }
.favorite__button.is-saved { border-color: var(--persimmon); background: var(--persimmon); color: var(--on-persimmon); }
.favorite__button.is-saved .icon { fill: currentColor; }
.favorite__button { gap: 6px; }
.cook-head .favorite__button.is-saved { background: var(--card); border-color: var(--rule); color: var(--persimmon); }
.card { position: relative; }
.favorite--card { position: absolute; top: 10px; right: 10px; }
.favorite--card .favorite__button { border-color: transparent; }
.favorite--card .favorite__button.is-saved { border-color: var(--persimmon); }
.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: 18px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.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(--persimmon); }
.stars:hover .star { color: var(--persimmon); }
.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(--muted); }
.tabs { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; } /* one row; scrolls sideways on a phone */
.tab { flex: none; display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: var(--radius-pill); color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { background: var(--ink); color: var(--on-ink); }
.cooked { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-width: 860px; }
.cooked__item { display: flex; flex-wrap: wrap; gap: var(--space-6); padding: var(--space-6) 0; border-bottom: 1px solid var(--rule); }
.cooked__date { width: 96px; flex: none; display: flex; flex-direction: column; }
.cooked__day { font: 400 34px/38px var(--font-display); }
.cooked__photo { width: 140px; height: 140px; flex-shrink: 0; object-fit: cover; aspect-ratio: auto; border-radius: var(--radius-md); background: var(--placeholder); }
.cooked__body { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cooked__title { font: 500 21px/25px var(--font-display); color: var(--ink); text-decoration: none; }
.cooked__note { font: italic 400 17px/25px var(--font-display); color: var(--ink-soft); }
.cooked__note-by { font: 400 13px/17px var(--font-sans); color: var(--muted); white-space: nowrap; }
.upload { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: var(--space-12); align-items: start; }
.upload > .upload-form { grid-column: span 1; }
@media (min-width: 900px) { .upload { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } .upload__intro { position: sticky; top: 28px; } }
.upload-form { display: flex; flex-direction: column; gap: var(--space-2); padding: 28px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); font-weight: 600; font-size: 14px; min-width: 0; }
.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: 1.5px dashed var(--dash); 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(--muted); font-weight: 400; cursor: pointer; overflow: hidden; position: relative; }
.upload-form__photo:focus-within { outline: 2px solid var(--persimmon); 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: 0; padding: 0; 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; padding: 12px; border: 1px solid var(--rule); border-radius: var(--radius-md); font-weight: 400; font-size: 15px; cursor: pointer; }
.upload-form__visibility label:has(input:checked) { border: 2px solid var(--ink); padding: 11px; }
.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: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: var(--space-12); align-items: center; padding: var(--space-12); background: var(--iron); border: 1px solid var(--iron-edge); color: var(--on-iron); border-radius: var(--radius-xl); }
@media (max-width: 600px) { .shared { padding: var(--space-6); } }
.shared__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); background: var(--iron-rule); }
.shared__info { min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.shared .eyebrow { margin: 0; color: var(--iron-honey); }
.shared .muted { color: var(--on-iron-3); }
.shared a:not(.button):not(.share__button) { color: var(--iron-link); }
.shared .credit { background: transparent; border-color: var(--iron-rule-2); color: var(--on-iron-2); }
.shared .credit strong { color: var(--on-iron); }
.shared .credit__initial { background: var(--iron-rule); color: var(--iron-link); }
.shared__stars { font-size: 24px; color: var(--honey); }

/* Extension panel (cook mode and idle), 360 to 480 wide. The header and footer stay; one tab scrolls between them. */
.panel { height: 100vh; height: 100dvh; overflow: hidden; }
.cook { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.cook__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: var(--space-6) 22px; 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); }
.cook__flash { flex: none; margin: 10px 18px 0; align-self: stretch; }

.cook-head { flex: none; padding: 14px 18px 12px; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--rule); }
.cook-head__who { display: flex; align-items: center; gap: 10px; }
.cook-head__initial { width: 28px; height: 28px; flex: none; border-radius: var(--radius-pill); background: var(--linen); color: var(--persimmon); display: flex; align-items: center; justify-content: center; font: italic 400 15px/1 var(--font-display); }
.cook-head__byline { flex: 1 1 auto; min-width: 0; font-size: 13px; line-height: 17px; color: var(--muted); overflow-wrap: anywhere; }
.cook-head__byline strong { color: var(--ink); }
.cook-head__recipe { display: flex; align-items: center; gap: 12px; }
.cook-head__photo { width: 56px; height: 56px; flex: none; border-radius: 10px; object-fit: cover; aspect-ratio: auto; background: var(--rule); }
.cook-head__title { font: 500 22px/26px var(--font-display); text-wrap: pretty; }
.cook-head .favorite__button { width: 36px; min-height: 36px; padding: 0; justify-content: center; color: var(--persimmon); }
.cook-head .favorite__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cook-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cook-tab { flex: none; height: 30px; padding: 0 12px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; }
.cook-tab[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.icon-toggle { flex: none; width: 36px; height: 36px; padding: 0; border-radius: var(--radius-pill); border: 1px solid var(--rule); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-toggle[aria-pressed="true"] { border-color: var(--persimmon); background: var(--persimmon-soft); color: var(--persimmon); }
/* Tooltips on the panel's icon buttons: CSS, so they show at once, on keyboard focus too, inside the side panel. */
.cook-head [data-tip] { position: relative; }
.cook-head [data-tip]:is(:hover, :focus-visible)::after { content: attr(data-tip); position: absolute; top: calc(100% + 6px); right: 0; z-index: 10; width: max-content; max-width: 220px; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--on-ink); font: 500 13px/1.35 system-ui, sans-serif; text-align: left; white-space: normal; pointer-events: none; }

.cook-panel { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 18px; }
.cook-panel__title { font: 500 28px/32px var(--font-display); }
.cook-panel a.strong, .cook__body a.strong { text-decoration: none; }
.cook-panel__foot { position: sticky; bottom: -18px; z-index: 1; margin: auto -22px -18px; padding: 12px 18px 16px; border-top: 1px solid var(--rule); background: var(--paper); display: flex; flex-direction: column; gap: 8px; }
.cook-panel__foot > .button { min-height: 52px; font-size: 16px; }
.cook.is-finished[data-tab="cook"] .cook-head { display: none; } /* the finish hero takes over */
.cook-section { display: flex; flex-direction: column; gap: var(--space-2); }
.cook-section .eyebrow { margin: 0; }
.cook__credit { margin-top: auto; font-size: 12px; line-height: 16px; color: var(--muted); }
.cook-settings { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }

/* The Cook tab: the current step, large enough to read from the stove */
.now { flex: 1 0 auto; display: flex; flex-direction: column; gap: 18px; }
.now__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.now__count { margin: 0; display: flex; align-items: center; gap: var(--space-2); color: var(--honey-ink); letter-spacing: .08em; }
.now__label { padding: 3px 8px; border-radius: 4px; background: var(--honey-bg); } /* honey never stands alone: it says NOW */
.now__all { border: 0; background: none; padding: 0; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.now__sep { color: var(--muted); font-size: 13px; }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .now__sep { color: var(--on-iron-3); }
.now__section { font: italic 400 17px/22px var(--font-display); color: var(--ink-soft); }
.now__text { font: 400 27px/37px var(--font-display); text-wrap: pretty; overflow-wrap: anywhere; }
.now__uses { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.now__uses .eyebrow, .now__next .eyebrow { margin: 0; letter-spacing: .08em; }
.now__uses ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.now__uses li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; line-height: 22px; }
.now__uses strong { flex: none; min-width: 92px; font-weight: 600; }
.now__next { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px dashed var(--rule-strong); }
.now__next p { font-size: 15px; line-height: 22px; color: var(--muted); }
.timer-button { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: var(--radius-pill); background: transparent; color: var(--ink); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.timer-button.is-running { background: var(--honey-bg); border-color: #E8C27A; color: var(--honey-ink); }
.choice { display: flex; align-self: flex-start; padding: 3px; border-radius: var(--radius-pill); background: var(--linen); }
.choice__option { min-height: 30px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; }
.choice__option[aria-pressed="true"] { background: var(--card); }

.cook__foot { flex: none; padding: 12px 18px 16px; border-top: 1px solid var(--rule); background: var(--paper); display: flex; flex-direction: column; gap: 12px; }
.cook[data-tab="prep"] .cook__foot, .cook[data-tab="notes"] .cook__foot, .cook[data-tab="ask"] .cook__foot { display: none; }
.cook__nav { display: flex; gap: var(--space-2); }
.cook__nav .button { min-height: 52px; font-size: 16px; }
.cook__nav .button--ghost:disabled { color: #B5A898; border-color: var(--rule); cursor: default; background: transparent; }
.dots { display: flex; gap: 3px; }
.dot { flex: 1; height: 5px; border-radius: var(--radius-pill); background: var(--rule); }
.dot.is-done { background: var(--sage); }
.dot.is-now { background: var(--honey); }
.progress { height: 5px; border-radius: var(--radius-pill); background: var(--rule); overflow: hidden; }
.progress__bar { height: 100%; width: 0; background: var(--sage); transition: width .15s ease; }
.button--small { min-height: 36px; padding: 0 14px; font-size: 13px; }

.stepper { display: inline-flex; align-items: center; height: 36px; border: 1px solid var(--rule); border-radius: var(--radius-pill); background: var(--card); }
.stepper__btn { width: 36px; display: flex; align-items: center; justify-content: center; color: var(--ink); font-size: 17px; text-decoration: none; }
.stepper__btn:hover { color: var(--persimmon); }
.stepper__btn[aria-disabled="true"] { pointer-events: none; color: var(--muted); }
.stepper__value { min-width: 74px; text-align: center; font-size: 14px; font-weight: 600; }

.timers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.timers:empty { display: none; }
.cook > .timers { flex: none; padding: 10px 18px; border-bottom: 1px solid var(--rule); }
.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(--honey-bg); color: var(--honey-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.timer.is-ringing { background: var(--persimmon); color: var(--on-persimmon); 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; }
.ingredients__group { margin: 12px 0 2px; font: italic 400 17px/22px var(--font-display); color: var(--ink-soft); }
.ingredients__group:first-child { margin-top: 0; }
.ingredient { display: flex; gap: 12px; align-items: baseline; padding: 9px 10px; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 21px; }
.ingredient__amount { flex: none; min-width: 96px; font-weight: 600; }
.ingredient__name { min-width: 0; overflow-wrap: anywhere; }
.ingredient.is-now { background: var(--honey-bg); border-color: transparent; border-radius: 10px; }
.ingredient.is-now + .ingredient.is-now { margin-top: 6px; }
.ingredient.is-now .ingredient__name { font-weight: 600; }
.ingredient.is-used { color: var(--muted); text-decoration: line-through; }
.all-steps { align-items: center; margin-top: var(--space-2); }
.all-steps .eyebrow { margin: 0; }
.steps { display: flex; flex-direction: column; }
.steps__section { padding: 10px 0 2px; font: italic 400 17px/22px var(--font-display); color: var(--ink-soft); }
.step { display: flex; gap: 10px; align-items: flex-start; padding: 10px 6px; border-bottom: 1px solid var(--rule); }
.step__body { min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.step .step__timer { display: none; } /* the Cook tab shows a copy */
.step__text { all: unset; cursor: pointer; font-size: 15px; line-height: 22px; overflow-wrap: anywhere; }
.step__text:focus-visible { outline: 2px solid var(--persimmon); outline-offset: 2px; }
.step__n { font-weight: 600; }
.step.is-done .step__text { color: var(--muted); text-decoration: line-through; }
.step.is-now { background: var(--honey-bg); border-color: transparent; border-radius: 10px; }
.check { flex-shrink: 0; width: 22px; height: 22px; padding: 0; border-radius: 7px; border: 1.5px solid var(--rule-strong); 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(--sage); border-color: var(--sage); color: var(--paper); }

/* Finished */
.finished { flex: 1 0 auto; margin: -22px -22px 0; display: flex; flex-direction: column; gap: 18px; }
.finished > :not(.finished__hero) { margin-left: 22px; margin-right: 22px; }
.finished__hero { position: relative; height: 220px; display: flex; align-items: flex-end; background: var(--iron); overflow: hidden; }
.finished__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.finished__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(35, 28, 23, .82)); }
.finished__words { position: relative; z-index: 1; padding: 18px 22px; display: flex; flex-direction: column; gap: 4px; color: var(--on-iron); }
.finished__byline { font-size: 13px; font-weight: 600; }
.finished__text { font: 400 30px/34px var(--font-display); }
.finished .stack { padding-top: 14px; border-top: 1px solid var(--rule); }
.finished .eyebrow { margin: 0; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.finished .share { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }
.finished .share__button { padding: 0 8px; }
.finish-form { display: flex; flex-direction: column; gap: 10px; 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: 36px; line-height: 44px; width: 34px; text-align: center; color: var(--rule-strong); cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--persimmon); }
.star-input input:focus-visible + label { outline: 2px solid var(--persimmon); outline-offset: -4px; border-radius: var(--radius-sm); }
.finish-form .input { height: auto; min-height: 52px; font-size: 16px; }
.finish-form__hint { font-weight: 400; margin-top: -4px; }
.photo-tile { position: relative; display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 13px; line-height: 18px; font-weight: 400; cursor: pointer; }
.photo-tile__box { width: 66px; height: 66px; flex: none; border: 1.5px dashed var(--dash); border-radius: var(--radius-md); color: var(--muted); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.photo-tile__box img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile:focus-within .photo-tile__box { outline: 2px solid var(--persimmon); outline-offset: 2px; }
.board-chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.board-chips legend { padding: 0 0 8px; font-size: 13px; font-weight: 600; }
.board-chip { display: inline-flex; cursor: pointer; }
.board-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.board-chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--rule-strong); background: var(--card); font-size: 14px; font-weight: 600; }
.board-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.board-chip input:checked + span::before { content: "✓ "; white-space: pre; }
.board-chip input:focus-visible + span { outline: 2px solid var(--persimmon); outline-offset: 2px; }
.board-new { display: contents; }
.board-new summary { list-style: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--rule-strong); background: var(--card); font-size: 14px; font-weight: 600; cursor: pointer; }
.board-new summary::-webkit-details-marker { display: none; }
.board-new[open] summary { display: none; }
.board-new .input { flex: 1 1 100%; min-height: 44px; height: 44px; }
.my-note { padding: 10px 12px; border-radius: 10px; background: var(--linen); font-size: 13px; line-height: 18px; }

.mini-card { display: flex; gap: 14px; padding: 6px 0; color: var(--ink); text-decoration: none; }
.mini-card:hover { color: var(--ink); }
.idle__title { font: italic 400 20px/26px var(--font-display); }
.cook__body > .logo { --logo: 20px; }
.note h2 { font: 500 19px/24px var(--font-display); }
.cook__body > .note { margin-top: auto; }
.cook__body > .note + .panel-footer { margin-top: 0; }
.mini-card__photo, .mini-card .photo--empty { width: 84px; height: 84px; flex-shrink: 0; object-fit: cover; border-radius: 10px; background: var(--rule); aspect-ratio: auto; }
.mini-card__body { display: flex; flex-direction: column; justify-content: center; gap: var(--space-1); }
.mini-card__title { font: 500 18px/22px var(--font-display); }
.note { background: var(--linen); border-radius: var(--radius-md); padding: var(--space-4); }

@media (prefers-reduced-motion: reduce) { .timer.is-ringing { animation: none; } .progress__bar { transition: 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: 500 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(--persimmon); }
.review-item__note { font-size: 13px; color: var(--persimmon); }
@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; } }

/* Notes tab */
.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; }
.author-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font: italic 400 19px/27px var(--font-display); color: var(--ink-soft); }
.author-notes__heading { margin-top: 6px; font: 600 14px/20px var(--font-sans); color: var(--ink); }
.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(--linen); font-size: 14px; }

/* Units: As written · Metric · US */
.segmented { display: inline-flex; height: 36px; padding: 3px; border-radius: var(--radius-pill); background: var(--linen); }
.segmented__option { display: flex; align-items: center; padding: 0 10px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; }
.segmented__option[aria-current="true"] { background: var(--card); }
.segmented__option:focus-visible { outline: 2px solid var(--persimmon); outline-offset: -2px; }
.scale-note { padding: 10px 12px; border-radius: 10px; background: var(--honey-bg); color: var(--honey-ink); font-size: 13px; line-height: 18px; }
.list-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 10px 14px; border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--card); color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.list-row:hover strong { color: var(--persimmon); }
.list-row__form { margin: 0; }
.list-row__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.list-row__text strong { font-size: 15px; }
.list-row__icon { flex: none; color: var(--muted); font-size: 18px; }

/* Get ready: prep checklist */
.prep { padding-bottom: 18px; }
.prep__progress { display: flex; align-items: center; gap: 12px; }
.prep__progress .progress { flex: 1; }
.prep__count { flex: none; font-size: 13px; font-weight: 600; color: var(--sage); }
.prep-item { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 16px; line-height: 21px; cursor: pointer; }
.prep-item input { appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid var(--rule-strong); border-radius: 7px; background: var(--card) center / 14px no-repeat; cursor: pointer; }
.prep-item input:checked { border-color: var(--sage); background-color: var(--sage); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.prep-item input:focus-visible { outline: 2px solid var(--persimmon); outline-offset: 2px; }
.prep-item:has(input:checked) span { color: var(--muted); text-decoration: line-through; }

/* Shopping list */
.list-added { margin: 0 0 var(--space-2); }
/* Hands-free: the whole panel is cast iron while you're on a step */
.handsfree { flex: none; display: none; }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .handsfree:not([hidden]) { display: flex; flex-direction: column; gap: var(--space-3); padding: 22px 22px 0; }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] { background: var(--iron); color: var(--on-iron); }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .cook-head { border-color: var(--iron-rule); }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .cook-head__byline, .cook.is-handsfree:not(.is-finished)[data-tab="cook"] .cook-head__byline strong { color: var(--on-iron-2); }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .cook-tab:not([aria-selected="true"]) { color: var(--on-iron-3); }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .cook-tab[aria-selected="true"] { background: var(--on-iron); color: var(--iron); }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .now__count { color: var(--iron-honey); }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .now__label { background: none; padding: 0; }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .now__text { font-size: 34px; line-height: 44px; }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .now__all, .cook.is-handsfree:not(.is-finished)[data-tab="cook"] .now__next p, .cook.is-handsfree:not(.is-finished)[data-tab="cook"] .cook__credit, .cook.is-handsfree:not(.is-finished)[data-tab="cook"] .eyebrow:not(.now__count) { color: var(--on-iron-3); }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .dot:not(.is-done, .is-now) { background: var(--iron-rule-2); }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .now__uses { background: transparent; border-color: var(--iron-rule-2); }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .timer-button:not(.is-running) { border-color: var(--on-iron-3); color: var(--on-iron); }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .cook__foot { background: var(--iron); border-color: var(--iron-rule); }
.cook.is-handsfree:not(.is-finished)[data-tab="cook"] .cook__nav .button--ghost:not(:disabled) { color: var(--on-iron); border-color: var(--iron-rule-2); }
.handsfree a { color: var(--iron-link); }
.handsfree p { font-size: 15px; line-height: 22px; }
.handsfree__mic { width: 52px; height: 52px; border-radius: var(--radius-pill); background: #A9482A; color: #FFFCF7; display: flex; align-items: center; justify-content: center; margin: 18px; box-shadow: 0 0 0 8px rgba(169, 72, 42, .25), 0 0 0 18px rgba(169, 72, 42, .1); }
.handsfree__commands { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.handsfree__commands li { padding: 5px 12px; border: 1px solid var(--iron-rule-2); border-radius: var(--radius-pill); font-size: 13px; }

/* 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 14px; border-radius: 18px 18px 4px 18px; background: var(--ink); color: var(--on-ink); font-size: 15px; line-height: 21px; overflow-wrap: anywhere; }
.ask__answer { align-self: flex-start; max-width: 92%; padding: 12px 14px; border-radius: 18px 18px 18px 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(--muted); }
.ask__body { flex: 1 0 auto; display: flex; flex-direction: column; gap: 16px; }
.ask__body > .cook-panel__foot { margin-top: 0; }
.ask__thread { flex: 1 0 auto; }
.ask__try { margin-top: auto; }
.ask__try-title { font-size: 13px; font-weight: 400; color: var(--muted); }
.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; height: 48px; border-radius: var(--radius-pill); }
.ask__row .button { min-height: 48px; }

.sage { color: var(--sage); }
.auth__back { align-self: flex-start; text-decoration: none; font-size: 14px; }

/* Close your account */
.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; }
/* Your account: one 880px column of cards */
.settings { width: 100%; max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.settings__head { display: flex; flex-direction: column; gap: var(--space-2); overflow-wrap: anywhere; }
.settings__card { min-width: 0; overflow-wrap: anywhere; padding: 36px 40px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-xl); display: flex; flex-direction: column; gap: 18px; }
.settings__card--row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.settings__card--row .settings__text { flex: 1 1 360px; }
.settings__card--row form { margin: 0; }
.settings__text { display: flex; flex-direction: column; gap: 6px; }
.settings__title { font: 400 30px/36px var(--font-display); }
.settings__card .input { background: var(--paper); }
.settings__card .auth__form .button { margin-top: 0; }
.settings__close { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: var(--space-2) var(--space-1) 0; font-size: 15px; }
@media (max-width: 600px) { .settings__card { padding: var(--space-6) 20px; } }
.input--big { height: 54px; padding: 0 18px; border-radius: var(--radius-md); font-size: 17px; }
.input--pill { height: 54px; padding: 0 22px; border-radius: var(--radius-pill); }
.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 16px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.tokens__name { flex: 1 1 240px; display: flex; flex-direction: column; gap: 2px; }
.tokens__revoke { margin: 0; }

/* Code snippets with a Copy button (always dark, like the authors block) */
.snippet { background: var(--iron); border: 1px solid var(--iron-edge); color: var(--on-iron); 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: var(--on-iron-3); }
.snippet__copy { all: unset; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--iron-link); min-height: 32px; }
.snippet__copy:focus-visible { outline: 2px solid var(--iron-link); outline-offset: 2px; }
.snippet__code { font: 13px/20px ui-monospace, "SF Mono", Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

/* /developers */
.how--wide { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: var(--space-6); }
.how--wide > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.how--wide .how__step { flex-direction: column; min-width: 0; padding: var(--space-6); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.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); }

/* Pricing */
.plan { max-width: 440px; display: grid; gap: var(--space-3); padding: var(--space-6); background: var(--card); border-radius: var(--radius-md); }
.plan__name { margin: 0; line-height: 1.3; }
.plan__price { margin: 0; font-size: 40px; font-weight: 600; line-height: 1.2; }
.plan__price .muted { font-size: 17px; font-weight: 400; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--space-4); max-width: 920px; align-items: start; }
.plans .plan { max-width: none; }
.plan--pro { outline: 2px solid var(--ink); outline-offset: -2px; }
.plan__list { margin: 0; padding-left: 1.2em; display: grid; gap: var(--space-2); }

/* The app's sheet: at its smaller heights, just the step, the ingredients for it and Back / Next. Pull up for the tabs. */
@media (max-height: 520px) { .is-native .cook-head__who, .is-native .cook-head__recipe, .is-native .cook-tabs { display: none; } .is-native .cook-head { padding: 0; border: 0; } .is-native .now__text { font-size: 24px; line-height: 32px; } }
.app-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; gap: var(--space-2); padding: 10px var(--space-4) max(10px, env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--rule); }
.is-native .page:has(.app-bar) { padding-bottom: 96px; }
.today { display: flex; flex-direction: column; gap: 28px; }
.today > :has(> .resume[hidden]) { display: none; }
.today .section { margin-top: 0; }
.resume { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--iron-edge); border-radius: var(--radius-lg); background: var(--iron); color: var(--on-iron); text-decoration: none; }
.resume:hover { color: var(--on-iron); }
.resume .eyebrow { margin: 0; color: var(--iron-honey); }
.resume__title { font: 500 21px/25px var(--font-display); }
.idea { position: relative; display: block; height: 330px; border-radius: var(--radius-xl); overflow: hidden; background: var(--iron); color: var(--on-iron); text-decoration: none; }
.idea__photo { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.idea::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(35, 28, 23, .82)); }
.idea__text { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.idea__title { font: 500 24px/29px var(--font-display); }

/* Inside the iPhone app: its tab bar replaces the site's menu. */
.is-native .site-nav, .is-native .site-actions { display: none; }

/* Households (design Revision 4). Member colors only tell people apart: never done (sage) or now (honey). */
.who { --who-size: 28px; width: var(--who-size); height: var(--who-size); flex: none; border-radius: var(--radius-pill); background: var(--who, #3F5D78); color: #FFFCF7;
  display: inline-flex; align-items: center; justify-content: center; font-size: calc(var(--who-size) * .42); font-weight: 700; line-height: 1; }
.who-stack { display: inline-flex; flex: none; }
.who-stack .who + .who { margin-left: -8px; box-shadow: 0 0 0 2px var(--paper); }
.pill { padding: 4px 10px; border-radius: var(--radius-pill); background: var(--linen); font-size: 13px; font-weight: 600; white-space: nowrap; }
.kitchen-household { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
.kitchen-household .who-stack .who + .who { box-shadow: 0 0 0 2px var(--paper); }

.household { display: flex; flex-direction: column; gap: 28px; overflow-wrap: anywhere; }
.household__head { display: flex; flex-direction: column; gap: 6px; max-width: 760px; }
.household__crumbs { font-size: 14px; }
.household__crumbs a { color: inherit; }
.household__rename .inline-form { margin-top: var(--space-2); max-width: 520px; }
.household__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.household__side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.household__explain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .household__grid, .household__explain { grid-template-columns: minmax(0, 1fr); } }
.household-card { min-width: 0; padding: 28px; background: var(--card); border: 1px solid var(--rule); border-radius: 20px; display: flex; flex-direction: column; gap: 16px; }
.household-card__title { font: 400 26px/32px var(--font-display); }
.household-card .input { background: var(--paper); }
@media (max-width: 600px) { .household-card { padding: 20px; } }
.seats { list-style: none; margin: 0; padding: 0; }
.seat { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--rule); }
.seat__who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.seat__who .small { overflow-wrap: anywhere; }
.seat__name { font-size: 16px; font-weight: 600; }
.seat__name--waiting { color: var(--muted); font-weight: 500; }
.seat__open { width: 44px; height: 44px; flex: none; border-radius: var(--radius-pill); border: 1.5px dashed var(--dash); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.seat__actions { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: flex-end; }
.seat > form, .seat > .pill { flex: none; } /* the name wraps, never "Remove" */
.seat :is(a, button, input) { white-space: nowrap; overflow-wrap: normal; }
.seat form { margin: 0; }
.invite-ways { display: flex; gap: 16px; align-items: center; padding-top: 4px; }
.invite-ways .row form { margin: 0; }
.invite-qr { flex: none; width: 168px; padding: 8px; border-radius: 12px; background: #FFFCF7; border: 1px solid var(--rule); }
.invite-qr svg { display: block; width: 100%; height: auto; }
.invite-qr--empty { width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; background: var(--placeholder); color: var(--muted); font: 600 12px/1 ui-monospace, Menlo, monospace; }
.invite-fresh { display: flex; flex-direction: column; gap: 10px; }
.iron-card { padding: 24px; border-radius: 20px; background: var(--iron); border: 1px solid var(--iron-edge); color: var(--on-iron); display: flex; flex-direction: column; gap: 8px; }
.iron-card__eyebrow { margin: 0; color: var(--iron-honey); }
.iron-card__title { font: 400 22px/28px var(--font-display); }
.iron-card__body { font-size: 14px; line-height: 21px; color: var(--on-iron-2); }
.iron-card__link, .iron-card .link-button { color: var(--iron-link); }
.iron-card form { margin: 0; }
.explain-card { padding: 24px; border-radius: 20px; background: var(--linen); display: flex; flex-direction: column; gap: 10px; color: var(--ink-soft); }
.explain-card__title { font: 400 22px/28px var(--font-display); color: var(--ink); }
.household__lapsed { align-self: stretch; }
.switches { display: flex; flex-direction: column; gap: 4px; }
.switches .button { align-self: flex-start; margin-top: var(--space-2); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; cursor: pointer; }
.switch-row__text { display: flex; flex-direction: column; gap: 2px; }
.switch { appearance: none; flex: none; position: relative; width: 51px; height: 31px; margin: 0; border-radius: var(--radius-pill); background: var(--rule-strong); cursor: pointer; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: var(--radius-pill); background: #FFFCF7; box-shadow: 0 1px 3px rgba(42, 33, 28, .3); transition: transform .15s; }
.switch:checked { background: var(--persimmon); }
.switch:checked::after { transform: translateX(20px); }
.switch:focus-visible { outline: 2px solid var(--persimmon); outline-offset: 2px; }

.join { max-width: 560px; margin: 0 auto; padding: var(--space-6) 0; display: flex; flex-direction: column; gap: 18px; }
.join__seats { display: flex; }
.join__seat { width: 64px; height: 64px; margin-left: -14px; border-radius: var(--radius-pill); border: 2px dashed var(--dash); background: var(--paper); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.join__title { font: 400 38px/44px var(--font-display); text-wrap: balance; }
.join__title em { color: var(--persimmon); }
.join__form { display: flex; flex-direction: column; gap: 16px; }
.join__mine { padding: 16px 18px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 6px; }
.join__pro { font-size: 14px; font-weight: 600; color: var(--sage-ink); }
.join__later { align-self: center; }
@media (max-width: 600px) { .join__title { font-size: 30px; line-height: 36px; } }

.card__who { position: absolute; left: 8px; bottom: 8px; box-shadow: 0 0 0 2px var(--card); }
.cooked__who { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.kitchen-ratings__list, .kitchen-notes__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.kitchen-ratings__list li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.kitchen-notes { display: flex; flex-direction: column; gap: 8px; }
.kitchen-note { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 20px; }
.kitchen-note__body { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.kitchen-note form { margin: 0; }
.at-store { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--linen); font-size: 14px; line-height: 19px; max-width: 560px; }

/* The panel cooking together (1f) */
.presence { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--linen); font-size: 13px; line-height: 18px; }
.presence .who-stack .who + .who { box-shadow: 0 0 0 2px var(--linen); }
.presence { flex-wrap: wrap; }
.presence__text { flex: 1 1 160px; min-width: 0; }
.presence__actions { display: flex; gap: 12px; margin-left: auto; }
.toast { flex: none; margin: 10px 18px 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--iron); color: var(--on-iron); font-size: 13px; }
.toast__text { flex: 1 1 auto; min-width: 0; }
.toast__undo { flex: none; min-height: 32px; padding: 0 6px; border: 0; background: none; color: var(--iron-link); font-weight: 600; }
.asked { flex: none; margin: 10px 18px 0; display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--rule-strong); }
.asked__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.asked__note { font: italic 400 16px/22px var(--font-display); color: var(--ink-soft); }
.timers--together .timer-card { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 14px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--rule); }
.timers--together .timer-card.is-running { background: var(--honey-bg); border-color: #E8C27A; color: var(--honey-ink); }
.timers--together .timer-card.is-ringing { background: var(--persimmon); border-color: var(--persimmon); color: var(--on-persimmon); animation: ring 1s ease-in-out infinite; }
.timer-card__what { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; }
.timer-card__what strong { font-size: 15px; color: var(--ink); }
.timer-card.is-ringing .timer-card__what strong { color: inherit; }
.timer-card__by { font-size: 12px; }
.timer-card__left { font: 400 26px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.timer-card .link-button { color: inherit; }
.timer-card.is-ringing .button { background: var(--card); color: var(--persimmon); }
.kitchen-notes--panel { padding-top: 4px; }
.sheet { width: min(100% - 24px, 460px); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--paper); color: var(--ink); }
.sheet::backdrop { background: rgba(35, 28, 23, .45); }
.sheet__form { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.sheet__title { font: 400 24px/30px var(--font-display); }
.ask-people { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 4px; }
.ask-person { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--rule); background: var(--card); cursor: pointer; }
.ask-person:has(input:checked) { border-color: var(--ink); }
.ask-person__who { display: flex; flex-direction: column; }
.activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-height: 50dvh; overflow-y: auto; }
.activity-row { display: flex; gap: 10px; align-items: flex-start; }
.activity-row.is-undone .activity-row__what { text-decoration: line-through; color: var(--muted); }
.activity-row__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.activity-row__detail { font-size: 13px; color: var(--muted); }
.activity-row__note { font: italic 400 15px/21px var(--font-display); color: var(--ink-soft); }
.activity-row__time { flex: none; }
.activity__note { display: flex; gap: 8px; }
.activity__note .input { flex: 1 1 auto; min-width: 0; height: 44px; }

.sheet .chip { font-family: inherit; font-size: 14px; background: var(--card); cursor: pointer; }
.sheet .chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
/* Toasts and notices float above Back / Next, so nothing you're about to tap moves under your finger. */
.cook:has(> .toast) { position: relative; }
.cook > .toast, .cook > [data-together="notice"] { position: absolute; left: 18px; right: 18px; bottom: 100px; z-index: 6; margin: 0; box-shadow: 0 8px 24px -12px rgba(35, 28, 23, .5); }
.cook > [data-together="notice"] { bottom: 156px; }

/* /try: the cook page in a panel-sized box on an ordinary page (TryController). */
.try { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: var(--space-12); align-items: start; }
.try__text { display: flex; flex-direction: column; gap: 22px; max-width: 560px; }
.try__panel { justify-self: center; width: min(100%, 440px); height: min(760px, calc(100dvh - 120px)); min-height: 560px; border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); }
.try__panel .cook { height: 100%; }

/* The weekly plan (design Revision 5): This week, Regulars, Planning, the keeper prompt. Regular is ink, New to us
   persimmon, Forgotten favorite honey; each is a word, never color alone. Done (cooked) is sage with a check. */
.plan-tag { display: inline-block; padding: 2px 8px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; line-height: 18px; background: var(--linen); color: var(--ink); }
.plan-tag--new { background: var(--persimmon-soft); color: var(--persimmon); }
.plan-tag--forgotten { background: var(--honey-bg); color: var(--honey-ink); }
.week { display: flex; flex-direction: column; gap: 20px; padding-block: 8px 48px; }
.week--narrow { max-width: 760px; }
.week__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.week__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.week__aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.week__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.week__title { font-size: 40px; line-height: 44px; }
.week__approve { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 8px; }
.week__foot { margin-top: 12px; }
.week-first { padding: 12px 16px; border-radius: var(--radius-md); background: var(--linen); }
.week-card { padding: 20px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 10px; }
.week-card--link { color: var(--ink); text-decoration: none; }
.week-card--link:hover { border-color: var(--rule-strong); color: var(--ink); }
.week-aisles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.week-aisles li { display: flex; justify-content: space-between; font-size: 14px; }
.week-empty { padding: 32px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.week-empty__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.week-set { padding: 24px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 12px; }
.week-set__check, .plan-set .week-set__check { display: inline-flex; align-items: center; gap: 6px; color: var(--sage-ink); font-weight: 600; font-size: 14px; }
.week-set__aisles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.week-set__aisles li { padding: 6px 12px; border-radius: var(--radius-pill); background: var(--linen); font-size: 13px; }
.week-progress { display: flex; gap: 4px; width: 200px; max-width: 100%; }
.week-progress__seg { flex: 1; height: 6px; border-radius: var(--radius-pill); background: var(--rule); }
.week-progress__seg--done { background: var(--sage); }
.week-search { display: flex; gap: 8px; }
.week-search .input { flex: 1; min-width: 0; }
.dinners { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dinner { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.dinner--pinned { border-color: var(--ink); }
.dinner__photo { display: block; width: 96px; height: 96px; border-radius: var(--radius-md); overflow: hidden; }
.dinner__photo img, .dinner__photo .photo { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.dinner__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dinner__why { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dinner__title { font: 500 21px/26px var(--font-display); }
.dinner__title a { color: var(--ink); text-decoration: none; }
.dinner__title a:hover { color: var(--persimmon); }
.dinner__change { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); }
.dinner__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.dinner__actions form { margin: 0; }
.dinner-tonight { margin: -6px 0 0 126px; }
.day-chip { height: 32px; padding: 0 28px 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--rule-strong); background: var(--card); color: var(--ink); font: 600 13px/1 var(--font-sans); }
.day-chip--any { border-style: dashed; color: var(--muted); }
.pin { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-pill); border: 1px solid var(--rule-strong); background: var(--card); color: var(--muted); }
.pin--on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.link-button--muted-sm { color: var(--muted); }
.dinner-add { display: flex; align-items: center; gap: 10px; padding: 18px; border: 1.5px dashed var(--dash); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; }
.dinner-add:hover { color: var(--ink); border-color: var(--muted); }
.plan-sheet { padding: 20px; flex-direction: column; gap: 12px; }
.plan-sheet:popover-open { display: flex; }
.plan-sheet__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan-choices { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plan-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--rule); }
.plan-choice form { margin: 0; flex: none; }
.plan-choices--page .plan-choice { justify-content: flex-start; }
.plan-choice__photo { flex: none; width: 56px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; }
.plan-choice__photo img, .plan-choice__photo .photo { width: 100%; height: 100%; object-fit: cover; }
.plan-choice__text { flex: 1; min-width: 0; }
.plan-radio { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.plan-radio input { margin-top: 4px; accent-color: var(--persimmon); }
.plan-skip { display: flex; flex-direction: column; gap: 6px; }
.plan-skip .button { align-self: flex-start; margin-top: 6px; }
.tonight { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 20px; padding: 22px; border-radius: var(--radius-lg); background: var(--iron); border: 1px solid var(--iron-edge); color: var(--on-iron); }
.tonight__text { display: flex; flex-direction: column; gap: 6px; }
.tonight__eyebrow { color: var(--iron-honey); }
.tonight__title { font: 500 28px/32px var(--font-display); }
.tonight__by { color: var(--on-iron-2); font-size: 14px; }
.tonight__actions { margin-top: 8px; }
.tonight__photo { border-radius: var(--radius-md); overflow: hidden; }
.tonight__photo img, .tonight__photo .photo { width: 100%; height: 100%; object-fit: cover; }
.cooked-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cooked-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-md); }
.cooked-row__check { flex: none; width: 24px; height: 24px; border-radius: var(--radius-pill); background: var(--sage-bg); color: var(--sage-ink); display: inline-flex; align-items: center; justify-content: center; }
.cooked-row__text { flex: 1; min-width: 0; }
.cooked-row s { text-decoration-color: var(--sage); }
.changes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.changes li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 14px; }
.recap { display: flex; flex-direction: column; gap: 14px; }
.recap--inline { padding: 24px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.keeper { padding: 18px; border-radius: var(--radius-lg); background: var(--linen); display: flex; flex-direction: column; gap: 8px; }
.keeper__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.keeper__actions form { margin: 0; }
.keeper--iron { background: var(--iron); color: var(--on-iron); border: 1px solid var(--iron-edge); }
.keeper__title { font: 500 22px/28px var(--font-display); }
.keeper__text, .keeper--iron .keeper__later { color: var(--on-iron-2); font-size: 14px; }
.snack { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--radius-md); background: var(--ink); color: var(--on-ink); font-size: 14px; }
.snack .link-button { color: var(--iron-link); }
.snack__undo { margin: 0; }
.regulars { display: flex; flex-direction: column; gap: 20px; padding-block: 8px 48px; }
.suggest-regular { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px; border-radius: var(--radius-lg); background: var(--linen); }
.suggest-regular__photo { width: 64px; height: 64px; border-radius: var(--radius-md); overflow: hidden; }
.suggest-regular__photo img, .suggest-regular__photo .photo { width: 100%; height: 100%; object-fit: cover; }
.suggest-regular__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.suggest-regular__text .eyebrow { margin: 0; }
.suggest-regular__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.suggest-regular__actions form { margin: 0; }
.regulars-table { width: 100%; border-collapse: collapse; }
.regulars-table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 12px 8px 0; }
.regulars-table td { padding: 12px 12px 12px 0; border-top: 1px solid var(--rule); vertical-align: middle; }
.regular-recipe { display: flex; align-items: center; gap: 12px; }
.regular-recipe__photo { flex: none; width: 52px; height: 52px; border-radius: var(--radius-sm); overflow: hidden; }
.regular-recipe__photo img, .regular-recipe__photo .photo { width: 100%; height: 100%; object-fit: cover; }
.regular-status { font-size: 13px; font-weight: 600; color: var(--muted); }
.regular-status--due { color: var(--persimmon); }
.regular-status--just_added { color: var(--sage-ink); }
.resting { padding: 18px; border: 1.5px dashed var(--dash); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 10px; }
.resting__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.resting__row form { margin: 0; }
.switch-button { all: unset; cursor: pointer; display: inline-flex; }
.switch-button:focus-visible { outline: 2px solid var(--persimmon); outline-offset: 2px; border-radius: var(--radius-pill); }
span.switch { display: inline-block; }
.switch--on { background: var(--persimmon); }
.switch--on::after { transform: translateX(20px); }
.regular-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--card); }
.regular-row__icon { flex: none; width: 32px; height: 32px; border-radius: var(--radius-pill); background: var(--linen); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-soft); }
.regular-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.regular-row form { margin: 0; }
.pick-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.pick { display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.pick__box { position: absolute; opacity: 0; }
.pick__photo { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; border: 2px solid transparent; }
.pick__photo img, .pick__photo .photo { width: 100%; height: 100%; object-fit: cover; }
.pick__tick { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: var(--radius-pill); background: var(--card); border: 1px solid var(--rule-strong); display: inline-flex; align-items: center; justify-content: center; color: transparent; }
.pick__box:checked + .pick__photo { border-color: var(--persimmon); }
.pick__box:checked + .pick__photo .pick__tick { background: var(--persimmon); border-color: var(--persimmon); color: var(--on-persimmon); }
.pick__box:focus-visible + .pick__photo { outline: 2px solid var(--persimmon); outline-offset: 2px; }
.pick__name { font-weight: 600; font-size: 14px; }
.pick__save { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; position: sticky; bottom: 12px; }
.planning-form { display: flex; flex-direction: column; gap: 18px; }
.planning-field { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.planning-field legend { padding: 0; margin-bottom: 8px; }
.planning-inline { display: inline-flex; align-items: center; gap: 8px; }
.input--small { height: 40px; width: auto; min-width: 72px; }
.day-picker { display: flex; gap: 6px; flex-wrap: wrap; }
.day-picker__day input { position: absolute; opacity: 0; }
.day-picker__day span { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 38px; padding: 0 10px; border-radius: var(--radius-pill); border: 1px solid var(--rule-strong); font-size: 14px; font-weight: 600; cursor: pointer; }
.day-picker__day input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.day-picker__day input:focus-visible + span { outline: 2px solid var(--persimmon); outline-offset: 2px; }
.plan-set__thumbs { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.plan-set__thumbs li { width: 56px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; }
.plan-set__thumbs img, .plan-set__thumbs .photo { width: 100%; height: 100%; object-fit: cover; }
/* Planning on any date (design Revision 13): the month, a day's panel, entries with a second cue besides colour, notes
   on the week, the ⋯ menu, Coming up and Today's card. */
.cal__head { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.cal__title { flex: 1; min-width: 0; }
.cal__nav { display: flex; gap: 6px; }
.cal__arrow, .cal__today { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--rule); background: var(--card); color: var(--ink); font-weight: 600; text-decoration: none; }
.cal__arrow { padding: 0; font-size: 18px; }
.cal__layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.cal__grid { border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); }
.cal__wk, .cal-week__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__wk { border-bottom: 1px solid var(--rule); }
.cal__wk span { padding: 8px 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cal__empty { padding: 14px 16px; border-top: 1px solid var(--rule); font-size: 14px; line-height: 21px; color: var(--ink-soft); }
.cal-week { display: flex; flex-direction: column; border-bottom: 1px solid var(--rule); }
.cal-week:last-of-type { border-bottom: 0; }
.cal-week--this { background: var(--linen); }
.cal-week__tag { padding: 6px 10px 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cal-week__tag--this { color: var(--persimmon); }
.cal-week__band { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px 10px; border-top: 1px dashed var(--dash); }
.cal-week__band-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink-soft); }
.cal-day { min-height: 104px; min-width: 0; padding: 6px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.cal-day:last-child { border-right: 0; }
.cal-day:hover { background: var(--paper); color: var(--ink); }
.cal-day[aria-current="date"] { box-shadow: inset 0 0 0 2px var(--ink); }
.cal-day--out { opacity: .45; }
.cal-day__n { font-size: 13px; font-weight: 600; padding: 2px 4px; align-self: flex-start; border-radius: var(--radius-pill); }
.cal-day--today .cal-day__n { background: var(--honey-bg); color: var(--honey-ink); font-weight: 700; padding-inline: 8px; }
.cal-day__more { font-size: 11px; font-weight: 600; color: var(--muted); padding-left: 4px; }
.cal-chip { display: block; font-size: 12px; line-height: 16px; padding: 2px 6px; border-radius: var(--radius-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; color: var(--ink); text-decoration: none; }
.cal-chip--plan { background: var(--paper); border: 1px solid var(--rule-strong); font-weight: 600; }
.cal-chip--cooked { background: var(--sage-bg); color: var(--sage-ink); }
.cal-chip--skipped { color: var(--muted); text-decoration: line-through; }
.cal-chip--left { background: var(--linen); color: var(--ink-soft); }
.cal-chip--note { border: 1px dashed var(--dash); font-style: italic; color: var(--ink-soft); }
.cal-chip--tonight { background: var(--honey-bg); color: var(--honey-ink); font-weight: 700; }
.cal-chip--band { display: inline-block; max-width: 100%; font-size: 13px; padding: 4px 10px; border-radius: var(--radius-pill); }
.cal-key__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cal-key__chips .cal-chip { display: inline-block; }
.cal__aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }
.cal-panel { padding: 18px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 12px; }
.cal-panel__title { font: 400 24px/28px var(--font-display); }
.cal-panel .eyebrow { margin: 4px 0 0; }
.cal-panel__quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cal-panel__quick form { margin: 0; }
.cal-panel__pick { min-height: 34px; font: inherit; font-size: 13px; background: var(--card); cursor: pointer; }
.cal-panel__search { padding: 0 8px; }
.cal-panel__note { display: flex; gap: 6px; }
.cal-panel__note .input { flex: 1; min-width: 0; height: 40px; font-size: 14px; }
.cal-entry { padding: 12px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.cal-entry__kind { align-self: flex-start; padding: 2px 8px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--linen); color: var(--ink-soft); }
.cal-entry__kind--cooked { background: var(--sage-bg); color: var(--sage-ink); }
.cal-entry__kind--tonight { background: var(--honey-bg); color: var(--honey-ink); }
.cal-entry__kind--skipped { color: var(--muted); }
.cal-entry__title { font-size: 16px; font-weight: 600; min-width: 0; }
.cal-entry__title--note { font: italic 400 19px/24px var(--font-display); }
.cal-entry__title--skipped { text-decoration: line-through; color: var(--muted); }
.cal-entry__site { font-size: 13px; font-weight: 600; }
.cal-entry form { margin: 0; }
.cal-pro { padding: 14px; border-radius: var(--radius-md); background: var(--linen); display: flex; flex-direction: column; gap: 6px; }
.cal-key { padding: 16px 18px; border-radius: var(--radius-lg); background: var(--linen); display: flex; flex-direction: column; gap: 8px; }
.entry-more { flex: none; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-pill); border: 1px solid var(--rule-strong); background: var(--card); color: var(--ink); }
.entry-menu { gap: 4px; }
.entry-menu form { margin: 0; }
.entry-menu__row, .entry-menu__item { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--rule); }
.entry-menu__row > summary { cursor: pointer; font-weight: 600; }
.entry-menu__item { all: unset; box-sizing: border-box; width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--rule); font-weight: 600; cursor: pointer; }
.entry-menu__item:focus-visible { outline: 2px solid var(--persimmon); outline-offset: 2px; }
.entry-menu__item .muted { font-weight: 400; }
.entry-menu__item--remove { color: var(--persimmon); }
.entry-menu__form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.entry-menu__form .input { flex: 1; min-width: 0; height: 40px; font-size: 15px; }
.entry-menu__form--stack { flex-direction: column; align-items: stretch; gap: 2px; }
.entry-menu__form--stack .button { align-self: flex-start; margin-top: 8px; }
.week-day { font: italic 400 21px/26px var(--font-display); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 4px; }
.week-day span { font: 400 13px/18px var(--font-sans); color: var(--muted); }
.dinner--note { grid-template-columns: 56px minmax(0, 1fr) auto; }
.dinner--note .dinner__photo { width: 56px; height: 56px; border: 1px dashed var(--dash); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 18px; }
.dinner--note .dinner__title { font-style: italic; }
.coming-up { list-style: none; margin: 0; padding: 0; }
.coming-up li { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--rule); }
.coming-up__date { width: 44px; flex: none; display: flex; flex-direction: column; align-items: center; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.coming-up__date strong { font: 400 22px/26px var(--font-display); color: var(--ink); }
.plan-it__form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.plan-it__form label { flex-basis: 100%; }
.plan-it__form .input { flex: 1; min-width: 0; height: 40px; font-size: 15px; }
.plan-it .pop__panel { display: flex; flex-direction: column; gap: 10px; }
.plan-it .pop__panel form { margin: 0; }
.cooked-tag { background: var(--sage-bg); color: var(--sage-ink); }
.tonight-note { padding: 22px 18px; border-radius: var(--radius-lg); border: 1px dashed var(--dash); display: flex; flex-direction: column; gap: 8px; }
.tonight-note__title { font: italic 400 26px/32px var(--font-display); }
@media (max-width: 860px) {
  .week__layout, .cal__layout { grid-template-columns: minmax(0, 1fr); }
  .week__aside, .cal__aside { position: static; }
  .tonight { grid-template-columns: minmax(0, 1fr); }
  .tonight__photo { order: -1; max-height: 180px; }
}
@media (max-width: 600px) {
  .dinner { grid-template-columns: 72px minmax(0, 1fr); }
  /* The month on a phone (1b): marks under each date, the selected day's entries below. */
  .cal__head .cal__title { flex-basis: 100%; }
  .cal__wk span { padding: 6px 0; text-align: center; letter-spacing: 0; }
  .cal-day { min-height: 52px; padding: 4px 2px; align-items: center; flex-flow: row wrap; justify-content: center; align-content: flex-start; gap: 2px; border-right: 0; }
  .cal-day__n { flex-basis: 100%; text-align: center; align-self: center; padding: 2px 0; }
  .cal-day--today .cal-day__n { padding: 2px 0; }
  /* Each mark keeps its second cue as a glyph (1b): ✓ cooked, ● planned or tonight, ◐ leftovers, ○ a note, × skipped.
     A plain dot vanished on the shaded week (leftovers are linen) and skipped had none. */
  .cal-day .cal-chip { width: auto; height: auto; padding: 0; border: 0; border-radius: 0; background: none; font-size: 0; line-height: 0; overflow: visible; }
  .cal-day .cal-chip::before { content: "●"; display: inline-block; font: 400 10px/10px var(--font-sans); color: var(--ink-soft); font-style: normal; }
  .cal-day .cal-chip--cooked::before { content: "✓"; color: var(--sage-ink); font-weight: 700; }
  .cal-day .cal-chip--tonight::before { color: var(--honey-ink); }
  .cal-day .cal-chip--left::before { content: "◐"; }
  .cal-day .cal-chip--note::before { content: "○"; }
  .cal-day .cal-chip--skipped::before { content: "×"; color: var(--muted); }
  .cal-day__more { display: none; }
  .cal-week__band .muted { display: none; }
  .dinner__photo { width: 72px; height: 72px; }
  .dinner__actions { grid-column: 1 / -1; justify-content: flex-start; }
  .dinner-tonight { margin-left: 0; }
  .suggest-regular { grid-template-columns: 56px minmax(0, 1fr); }
  .suggest-regular__actions { grid-column: 1 / -1; }
  .regulars-table thead { display: none; }
  .regulars-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
  .regulars-table td { border: 0; padding: 0; }
  .regulars-table td:nth-child(4) { grid-row: 1; grid-column: 2; }
  .week__title { font-size: 32px; line-height: 38px; }
}
.planning-field input.input--small { align-self: flex-start; width: 96px; }
.planning-inline select.input--small { width: auto; max-width: 100%; }

/* Switch (design Revision 6): import, search your kitchen, Your data, and the /switch pages. Each import outcome
   has a legend color and always its words beside it: linked sage, private ink, already-in muted, couldn't read
   persimmon, waiting honey. */
.legend { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 4px; background: var(--muted); vertical-align: -1px; }
.legend--linked { background: var(--sage); }
.legend--private { background: var(--ink); }
.legend--duplicate { background: var(--muted); }
.legend--failed { background: var(--persimmon); }
.legend--waiting, .legend--checking, .legend--pending { background: var(--honey); }
.import-tag { display: inline-block; align-self: flex-start; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--linen); border: 1px solid var(--rule-strong); color: var(--ink); font-size: 12px; font-weight: 600; line-height: 18px; }
.import-tag--linked { background: var(--sage-bg); border-color: transparent; color: var(--sage-ink); }
.import-tag--failed { background: var(--persimmon-soft); border-color: transparent; color: var(--persimmon); }
.kitchen-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.kitchen-search { flex: 1 1 280px; max-width: 520px; }
.import-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px; padding: 36px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-xl); }
.import-card__text { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.import-card__text .eyebrow { margin: 0; }
.import-card__title { font: 400 40px/44px var(--font-display); text-wrap: balance; }
.import-card__example { padding: 22px; border-radius: var(--radius-lg); background: var(--linen); display: flex; flex-direction: column; gap: 12px; }
.import-card__example .eyebrow { margin: 0; }
.import-example { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius-md); background: var(--card); }
.import-example__photo { width: 56px; height: 56px; flex: none; border-radius: 10px; aspect-ratio: auto; }
.import-example__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
@media (max-width: 600px) { .import-card { padding: var(--space-6); } .import-card__title { font-size: 32px; line-height: 38px; } }
.import-choose { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.sources { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.source { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--card); cursor: pointer; }
.source:has(input:checked) { border: 2px solid var(--ink); padding: 13px 15px; }
.source input { margin-top: 4px; accent-color: var(--persimmon); }
.source__text { display: flex; flex-direction: column; }
.import-steps-area { display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--rule); }
.import-steps { display: flex; flex-direction: column; gap: 12px; }
.import-steps-area > div:not([hidden]) { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.dropzone { position: relative; align-self: stretch; min-height: 150px; padding: 24px; border: 1.5px dashed var(--dash); border-radius: var(--radius-lg); background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; cursor: pointer; overflow-wrap: anywhere; }
.dropzone:focus-within, .dropzone:hover { border-color: var(--persimmon); }
.dropzone__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; } /* a drop lands on the input itself */
.import-links { align-items: stretch !important; }
.import-links .button { align-self: flex-start; }
.import-progress { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.import-progress__bar { align-self: stretch; height: 8px; }
.import-counts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-self: stretch; }
.import-counts li { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-md); }
.import-counts__n { font: 400 32px/36px var(--font-display); font-variant-numeric: tabular-nums; }
.import-feed { list-style: none; margin: 0; padding: 0; align-self: stretch; }
.import-feed__row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--rule); }
.import-summary { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.import-summary__card { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.import-summary__n { font: 400 36px/40px var(--font-display); font-variant-numeric: tabular-nums; }
.ready-card { padding: 24px; border-radius: var(--radius-lg); background: var(--linen); display: flex; flex-direction: column; gap: 10px; }
.ready-card .eyebrow { margin: 0; color: var(--honey-ink); }
.import-failed { list-style: none; margin: 0; padding: 0; }
.import-failed__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--rule); }
.import-failed__text { min-width: 0; flex: 1 1 280px; overflow-wrap: anywhere; }
.import-failed__row form { margin: 0; }
.import-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.import-dialog { max-width: min(480px, calc(100vw - 32px)); padding: 28px; border: 1px solid var(--rule); border-radius: var(--radius-xl); background: var(--card); color: var(--ink); }
.import-dialog[open] { display: flex; flex-direction: column; gap: 14px; }
.import-dialog::backdrop { background: rgb(28 23 19 / .5); }
.import-dialog form { margin: 0; }
.search-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.search-result { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.search-result__photo { display: block; width: 72px; height: 72px; border-radius: var(--radius-md); overflow: hidden; }
.search-result__photo img, .search-result__photo .photo { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.search-result__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.search-result__kind { font-size: 13px; text-decoration: none; white-space: nowrap; }
.reason { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--honey-bg); color: var(--honey-ink); font-size: 13px; font-weight: 600; max-width: 100%; }
.reason__snippet { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) { .search-result { grid-template-columns: 56px minmax(0, 1fr); } .search-result__photo { width: 56px; height: 56px; } .search-result__kind { grid-column: 2; } }
.data-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 18px; border-top: 1px solid var(--rule); }
.data-row .settings__text { flex: 1 1 360px; }
.data-row form { margin: 0; }
.zip-list { margin: 4px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.switch-hero .promise-hero__title em { color: var(--persimmon); }
.switch-box { display: flex; flex-direction: column; gap: 18px; max-width: 860px; padding: 32px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-xl); }
.switch-box .stack { gap: 12px; }
.switch-box .stack > .button { align-self: flex-start; }
@media (max-width: 600px) { .switch-box { padding: var(--space-6) 20px; } }
.switch-pick { display: flex; flex-direction: column; gap: 6px; }
.switch-pick__choices { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-check input { position: absolute; opacity: 0; }
.chip-check span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--rule-strong); font-size: 13px; font-weight: 600; cursor: pointer; }
.chip-check input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.chip-check input:checked + span::before { content: "✓ "; white-space: pre; }
.chip-check input:focus-visible + span { outline: 2px solid var(--persimmon); outline-offset: 2px; }
/* A chip with a line under its name (the nutrition filters): one wrapping pill, the line as plain text inside it. */
.chip-check--sub > span { display: inline-block; padding: 6px 14px; line-height: 1.35; border-radius: 18px; }
.chip-check--sub span span { display: inline; min-height: 0; padding: 0; border: 0; border-radius: 0; font-weight: 400; }
.chip-check--sub input:checked + span .muted { color: inherit; opacity: 0.8; }
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.compare__card { padding: 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; }
.compare__card--linen { background: var(--linen); border-color: transparent; }
.compare__card--dashed { background: transparent; border: 1.5px dashed var(--dash); }


/* One list for the household (design Revision 7): the list, staples, your store's order, sending it, shopping mode
   and the free list's swap. The mock's tokens map onto Revision 6's: bg → paper, rule2 → rule-strong, soft → ink-soft,
   accent and link → persimmon, hbg/hink → honey-bg/honey-ink, sbg/sink → sage-bg/sage-ink. Phones are ≤ 600px. */
/* Which width a piece is for: these win over any component's display (a flex line, a block). */
@media not all and (max-width: 600px) { .narrow-only { display: none !important; } }
@media (max-width: 600px) { .wide-only { display: none !important; } }
.list-page { display: flex; flex-direction: column; gap: 22px; }
#list-live { display: flex; flex-direction: column; gap: 22px; }

/* Popovers: a <details class="pop">. Desktop: a card under its button; the summary's backdrop closes it on a click
   outside. Phones: a bottom sheet over a dimmed page. */
.pop { position: relative; }
.pop > summary { list-style: none; cursor: pointer; }
.pop > summary::-webkit-details-marker { display: none; }
.pop[open] > summary::before { content: ""; position: fixed; inset: 0; z-index: 30; cursor: default; }
.pop__panel { position: absolute; z-index: 31; top: calc(100% + 8px); right: 0; width: 340px; max-width: calc(100vw - 32px); padding: 16px;
  border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--card); color: var(--ink);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .45); display: flex; flex-direction: column; gap: 10px; text-align: left; cursor: auto; }
.pop__panel--narrow { width: 260px; }
.pop__grab { display: none; }
.pop__title { font: 400 24px/30px var(--font-display); }
@media (max-width: 600px) {
  .pop[open] > summary::before { background: rgba(14, 11, 9, .4); }
  .pop > .pop__panel { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-width: none; max-height: 85dvh; overflow-y: auto;
    padding: 10px 20px 20px; border: 0; border-radius: 26px 26px 0 0; background: var(--paper); box-shadow: none; }
  .pop__grab { display: block; align-self: center; width: 40px; height: 5px; border-radius: var(--radius-pill); background: var(--rule-strong); }
}

/* Header (1a) */
.list-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.list-head__title { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.list-head__h1 { font: 400 44px/48px var(--font-display); }
.list-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15px; line-height: 22px; color: var(--muted); }
.list-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.list-head__store { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: var(--radius-pill); background: var(--card);
  border: 1px solid var(--rule); color: var(--ink); font-size: 15px; text-decoration: none; }
.list-head__store:hover { border-color: var(--muted); color: var(--ink); }
.list-head__send { gap: 8px; }
.list-head__send.button { min-height: 44px; }
@media (max-width: 600px) {
  .list-head { align-items: center; }
  .list-head__title { flex-basis: 0; }
  .list-head__h1 { font-size: 32px; line-height: 36px; }
  .list-head__meta { font-size: 13px; line-height: 18px; }
  .list-head__store { height: 36px; padding: 0 12px; font-size: 14px; }
  .list-head__send.button { min-height: 36px; padding: 0 14px; font-size: 14px; }
  .list-head__actions { order: -1; flex-basis: 100%; justify-content: flex-end; }
  .list-head__title { order: -2; }
}
.store-switch { display: inline-flex; align-items: center; padding: 4px; border-radius: var(--radius-pill); background: var(--linen); }
.store-switch__form { margin: 0; }
.store-switch__store { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; }
.store-switch__store[aria-pressed="true"], .store-switch__store[aria-current] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.store-switch__store:focus-visible { outline: 2px solid var(--persimmon); outline-offset: 2px; }

/* Send the list (4a/4b) */
.list-send__panel { width: 460px; gap: 14px; }
.list-send__row { display: none; }
.can-share .list-send__row { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; min-height: 56px; cursor: pointer; }
.list-send__row:focus-visible { outline: 2px solid var(--persimmon); outline-offset: 2px; }
.list-send__what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.list-send__line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.list-send__line form { margin: 0; }
.list-send__copy { display: flex; flex-direction: column; gap: 8px; }
.list-send__text { margin: 0; max-height: 260px; overflow: auto; padding: 12px 14px; border-radius: 12px; background: var(--linen); color: var(--ink-soft);
  font: 12px/18px ui-monospace, Menlo, monospace; white-space: pre-wrap; }
.list-send__email, .list-send__note { padding-top: 12px; border-top: 1px solid var(--rule); }
@media (max-width: 600px) {
  .list-send__panel { gap: 4px; }
  .list-send__copy, .list-send__email { padding: 8px 0; border-top: 1px solid var(--rule); }
  .list-send__row { border-top: 1px solid var(--rule); }
  .list-send__text { display: none; }
}

/* Built from these recipes (1a; a sideways strip on phones, 1b) */
.list-strip { display: flex; flex-direction: column; gap: 10px; }
.list-strip__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.list-strip__title { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.list-strip__limit { font-size: 13px; font-weight: 500; color: var(--muted); }
.list-strip__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.list-recipe-card { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--rule); min-width: 0; }
.list-recipe-card__thumb { flex: none; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--placeholder); }
.list-recipe-card__img, .list-recipe-card__thumb .photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.list-recipe-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.list-recipe-card__title { font: 400 17px/21px var(--font-display); color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.list-recipe-card__title:hover { color: var(--persimmon); }
.list-recipe-card__author { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--persimmon); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-recipe-card__author--plain { color: var(--muted); }
.list-recipe-card__serves { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.list-recipe-card__plan { white-space: nowrap; }
.list-step__form, .list-recipe-card__remove-form { margin: 0; }
.list-step { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--rule-strong); border-radius: var(--radius-pill);
  background: none; color: var(--ink); font-size: 15px; line-height: 1; }
.list-step:disabled { color: var(--muted); opacity: .5; cursor: default; }
.list-recipe-card__remove { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; padding: 0; border: 0; border-radius: var(--radius-pill);
  background: none; color: var(--muted); }
.list-recipe-card__remove:hover { color: var(--ink); background: var(--linen); }
.list-recipe-card--add { padding: 0; border: 1.5px dashed var(--dash); background: none; }
.list-recipe-card__add { flex: 1; align-self: stretch; display: flex; align-items: center; justify-content: center; min-height: 76px; color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; }
.list-recipe-card__add:hover { color: var(--ink); }
@media (max-width: 600px) {
  .list-strip__cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; gap: 8px; }
  .list-recipe-card { flex: none; width: 236px; padding: 8px; gap: 8px; border-radius: 16px; scroll-snap-align: start; }
  .list-recipe-card__thumb { width: 40px; height: 40px; border-radius: 8px; }
  .list-recipe-card__title { font: 600 14px/18px var(--font-sans); display: block; white-space: nowrap; }
  .list-recipe-card__plan { display: none; }
  .list-step { width: 28px; height: 28px; }
  .list-recipe-card__serves { font-size: 12px; }
  .list-recipe-card__add { min-height: 58px; width: 130px; }
}

/* The list and its aside */
.list-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.list-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.list-aside { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) { .list-grid { grid-template-columns: minmax(0, 1fr); } }

/* Add an item, with its type-ahead */
.list-add { position: relative; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; border-radius: var(--radius-md); background: var(--card);
  border: 1px solid var(--rule-strong); }
.list-add:focus-within { border: 2px solid var(--ink); padding: 0 15px; }
.list-add__plus { font-size: 20px; color: var(--muted); }
.list-add__input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; outline: none; }
.list-add__input::placeholder { color: var(--muted); }
.list-add__pop { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; padding: 6px; border: 1px solid var(--rule); border-radius: var(--radius-md);
  background: var(--card); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .4); display: flex; flex-direction: column; }
.list-add__pop-title { padding: 8px 12px 4px; font-size: 12px; color: var(--muted); }
.list-add__options { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.list-add__option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 15px; cursor: pointer; }
.list-add__option.is-active, .list-add__option:hover { background: var(--linen); }
.list-add__name { flex: 1; min-width: 0; }
.list-add__meta { font-size: 13px; color: var(--muted); text-align: right; }
.list-add__option--typed { margin-top: 4px; border-top: 1px solid var(--rule); border-radius: 0 0 10px 10px; color: var(--persimmon); font-weight: 600; }

/* Aisles and rows */
.list-aisle__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 4px; }
.list-aisle__title { font: italic 400 22px/28px var(--font-display); }
.list-aisle__count { font-size: 13px; color: var(--muted); }
.list-items { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--rule); transition: opacity .18s, transform .18s; }
.list-item.is-leaving { opacity: 0; transform: translateX(24px); }
.list-item.is-pointed { background: var(--honey-bg); border-radius: 12px; }
.list-item__check { margin: 0; flex: none; padding-top: 1px; }
.list-box { all: unset; position: relative; box-sizing: border-box; flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--muted);
  display: flex; align-items: center; justify-content: center; color: #FFFCF7; cursor: pointer; }
.list-box::after { content: ""; position: absolute; inset: -11px; } /* a 44px target */
.list-box:hover { border-color: var(--sage); }
.list-box:focus-visible { outline: 2px solid var(--persimmon); outline-offset: 2px; }
.list-box.is-on { border-color: var(--sage); background: var(--sage); }
.list-item__for, .list-item__name { flex: 1; min-width: 0; }
.list-item__for > summary { list-style: none; }
.list-item__for > summary::-webkit-details-marker { display: none; }
.list-item__name { display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
div.list-item__name { cursor: auto; }
.list-item__for > .list-item__name:focus-visible { outline: 2px solid var(--persimmon); outline-offset: 2px; border-radius: 4px; }
.list-item__text { font-size: 16px; line-height: 22px; overflow-wrap: anywhere; }
.list-item__sub { font-size: 13px; line-height: 18px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item__who { margin-top: 2px; }
.list-item__more { width: 32px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--muted); font-size: 20px; line-height: 1; }
.list-item__more:hover { background: var(--linen); color: var(--ink); }
.list-item__more:focus-visible { outline: 2px solid var(--persimmon); outline-offset: 2px; }
.list-for { margin: 8px 0 2px; padding: 10px 14px; border-radius: 12px; background: var(--linen); display: flex; flex-direction: column; gap: 6px; }
.list-for__label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.list-for__line { display: flex; gap: 10px; font-size: 14px; line-height: 20px; }
.list-for__what { flex: 1; min-width: 0; }
.list-for__site { font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (max-width: 600px) {
  .list-item { padding: 9px 4px; -webkit-touch-callout: none; user-select: none; }
  .list-for { padding: 8px 12px; gap: 4px; }
  .list-for__line { display: block; font-size: 13px; }
}

/* Where's tahini at Kroger? (3c, a sheet on phones: 3d) */
.list-move__panel { width: 320px; }
.list-move__question { font-weight: 600; font-size: 16px; }
.list-move__form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.list-move__aisles { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; max-height: 320px; overflow-y: auto; }
.list-move__aisle { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; font-size: 15px; cursor: pointer; }
.list-move__aisle input { position: absolute; opacity: 0; pointer-events: none; }
.list-move__aisle span:first-of-type { flex: 1; }
.list-move__mark { visibility: hidden; }
.list-move__aisle:has(input:checked) { background: var(--linen); font-weight: 600; }
.list-move__aisle:has(input:checked) .list-move__mark { visibility: visible; }
.list-move__aisle:has(input:focus-visible) { outline: 2px solid var(--persimmon); outline-offset: -2px; }
.list-move__aisle:hover { background: var(--linen); }
.list-move__aisle--new { color: var(--persimmon); font-weight: 600; }
.list-move__name { display: none; margin: 6px 12px 0; }
.list-move__aisles:has(input[value=new]:checked) .list-move__name { display: block; }
.list-move__remember { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 14px; cursor: pointer; }
.list-move__remember input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }
.list-move__remove { align-self: flex-start; }
.list-move__remove + form, .list-move__panel form.button_to { margin: 0; }
.has-js .list-move__submit { display: none; }
.has-js .list-move__form:has(input[value=new]:checked) .list-move__submit, .has-js .list-move__form:has(input[name=aisle]:checked:not([data-current])) .list-move__submit { display: inline-flex; }
@media (max-width: 600px) {
  .list-move__aisles { max-height: none; overflow: visible; } /* the sheet scrolls, not a box inside it */
  .list-move__aisle { min-height: 46px; padding: 0 14px; border-radius: 12px; font-size: 16px; }
  .has-js .list-move__submit { min-height: 50px; } /* shown, as on desktop, only once it would move it somewhere */
}

/* Got it · N (1a) */
.list-got { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--linen); }
.list-got__summary { display: flex; align-items: center; gap: 10px; font-size: 15px; list-style: none; cursor: pointer; min-height: 32px; }
.list-got__summary::-webkit-details-marker { display: none; }
.list-got__summary:focus-visible { outline: 2px solid var(--persimmon); outline-offset: 2px; border-radius: 6px; }
.list-got__names { flex: 1; min-width: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-got__toggle { color: var(--muted); }
.list-got__hide, .list-got__details[open] .list-got__show { display: none; }
.list-got__details[open] .list-got__hide { display: inline; }
.list-got__items { list-style: none; margin: 6px 0 0; padding: 0; }
.list-got__items form { margin: 0; }
.list-got__item { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 6px 0 6px 32px; font-size: 15px; color: var(--muted); text-decoration: line-through; cursor: pointer; }
.list-got__item:hover { color: var(--ink); }
.list-got__item:focus-visible { outline: 2px solid var(--persimmon); outline-offset: 2px; }
.list-got > form { margin: 0; align-self: flex-start; }
.list-got__clear { font-size: 14px; }

/* The aside: staples, your store, and room for "Shop online" later */
.list-card-box { padding: 18px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; }
.list-card-box__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.list-card-box__title { font: 400 22px/28px var(--font-display); }
.list-card-box__text { font-size: 14px; line-height: 21px; color: var(--ink-soft); }
.list-card-box form { margin: 0; }
.list-card-box__button { width: 100%; }
.list-card-box__link { align-self: flex-start; text-decoration: none; font-size: 14px; }
.list-reserved { height: 64px; }
.list-staples-banner { display: none; }
@media (max-width: 600px) {
  .list-aside .list-staples:not(:only-child) { display: none; }
  .list-staples-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--linen); }
  .list-staples-banner__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
  .list-staples-banner form { margin: 0; }
  .list-main { gap: 16px; }
  .list-page { padding-bottom: 72px; }
}
.list-shop-pill { display: none; }
@media (max-width: 600px) {
  .list-shop-pill { position: fixed; z-index: 25; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px;
    height: 52px; padding: 0 24px; border-radius: var(--radius-pill); background: var(--iron); border: 1px solid var(--iron-edge); color: var(--on-iron); font-weight: 600; font-size: 16px;
    text-decoration: none; white-space: nowrap; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .5); }
  .list-shop-pill:hover { color: var(--on-iron); }
}

/* What's new (7a/7b) */
.whats-new { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--iron); border: 1px solid var(--iron-edge); color: var(--on-iron); }
.whats-new__label { flex: none; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--iron-honey); }
.whats-new__text { flex: 1; font-size: 15px; line-height: 22px; color: var(--on-iron-2); }
.whats-new__text strong { color: var(--on-iron); }
.whats-new__form { margin: 0; }
.whats-new__close { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: var(--radius-pill); background: none; color: var(--on-iron-2); }
.whats-new__close:hover { color: var(--on-iron); background: var(--iron-rule); }
.whats-new__close:focus-visible { outline: 2px solid var(--iron-link); }
@media (max-width: 600px) {
  .whats-new { flex-wrap: wrap; align-items: flex-start; gap: 6px; padding: 14px 16px; border-radius: 14px; }
  .whats-new__label { flex: 1; }
  .whats-new__form { order: 2; margin: -8px -8px 0 0; }
  .whats-new__text { order: 3; flex-basis: 100%; font-size: 14px; line-height: 21px; }
}

/* Empty (7a/7b) */
.list-empty { display: flex; flex-direction: column; gap: 22px; }
.list-empty__head { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 0 8px; text-align: center; }
.list-empty__title { font: 400 36px/42px var(--font-display); }
.list-empty__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.list-start { padding: 20px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.list-start__thumbs { display: flex; gap: 4px; }
.list-start__thumb, .list-start__thumbs .photo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--placeholder); }
.list-start__names { display: flex; align-items: center; height: 44px; font: italic 400 22px/28px var(--font-display); }
.list-start__title { font-size: 17px; font-weight: 600; }
.list-start__text { font-size: 14px; color: var(--muted); }
.list-start form { margin: 0; }
.list-start__button { align-self: flex-start; }
.list-start--type .list-add { height: 44px; border-radius: 12px; background: var(--paper); }
@media (max-width: 600px) {
  .list-empty__head { align-items: flex-start; padding: 18px 4px 0; text-align: left; }
  .list-empty__title { font-size: 26px; line-height: 32px; }
  .list-empty__cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .list-start { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 14px; border-radius: 16px; }
  .list-start__thumbs { gap: 3px; }
  .list-start__thumb, .list-start__thumbs .photo { width: 28px; height: 28px; border-radius: 6px; }
  .list-start__title { flex: 1; font-size: 15px; }
  .list-start__text { order: 3; flex-basis: 100%; font-size: 12px; }
  .list-start__button { order: 2; }
  .list-start--type { padding: 0; border: 0; background: none; }
  .list-start--type .list-add { flex: 1; height: 50px; border: 1px dashed var(--dash); border-radius: 16px; }
}

/* The free list's swap (6a, a sheet on phones: 6b) */
.swap { display: flex; flex-direction: column; gap: 16px; color: var(--ink); }
.swap--dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); margin: 70px auto auto; padding: 28px; border: 0; border-radius: var(--radius-xl);
  background: var(--paper); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.swap--dialog:not([open]) { display: none; }
.swap--dialog::backdrop { background: rgba(14, 11, 9, .45); }
.swap--page { max-width: 560px; }
.swap__title { font: 400 32px/36px var(--font-display); }
.swap__text { font-size: 15px; line-height: 23px; color: var(--ink-soft); }
.swap__recipes { list-style: none; margin: 0; padding: 0; border-radius: 16px; background: var(--card); border: 1px solid var(--rule); }
.swap__recipe { display: flex; align-items: center; gap: 14px; padding: 12px 14px; }
.swap__recipe + .swap__recipe { border-top: 1px solid var(--rule); }
.swap__recipe form { margin: 0; }
.swap__thumb, .swap__recipe .photo { flex: none; width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--placeholder); }
.swap__what { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.swap__plan { padding: 12px 14px; border-radius: 12px; background: var(--sage-bg); color: var(--sage-ink); font-size: 14px; line-height: 20px; }
.swap__later { align-self: flex-end; }
@media (max-width: 600px) {
  .swap--dialog { width: 100%; max-width: none; margin: auto 0 0; padding: 10px 18px 18px; border-radius: 26px 26px 0 0; gap: 12px; }
  .swap--dialog .pop__grab { display: block; align-self: center; width: 40px; height: 5px; border-radius: var(--radius-pill); background: var(--rule-strong); }
  .swap__title { font-size: 26px; line-height: 30px; }
  .swap__recipe { gap: 10px; padding: 10px 12px; }
  .swap__thumb, .swap__recipe .photo { width: 40px; height: 40px; border-radius: 8px; }
  .swap__later { align-self: center; }
}
.snackbar { position: fixed; z-index: 40; left: 50%; bottom: 24px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: var(--radius-md); background: var(--iron); border: 1px solid var(--iron-edge); color: var(--on-iron); font-size: 14px; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .5); }
.snackbar form { margin: 0; }
.snackbar__undo { min-height: 32px; padding: 0 6px; border: 0; background: none; color: var(--iron-link); font-weight: 600; }
@media (max-width: 600px) { .snackbar { bottom: 84px; } }
@media (prefers-reduced-motion: reduce) { .list-item { transition: none; } }

/* Staples (2a/2b) */
.staples-page, .arrange { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.staples-main, .arrange__main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.staples-aside, .arrange__aside { display: flex; flex-direction: column; gap: 16px; padding-top: 40px; }
@media (max-width: 900px) { .staples-page, .arrange { grid-template-columns: minmax(0, 1fr); gap: 24px; } .staples-aside, .arrange__aside { padding-top: 0; } }
.staples-head { display: flex; flex-direction: column; gap: 6px; }
.staples-card { border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--rule); display: flex; flex-direction: column; }
.staples-card__empty { padding: 18px; }
.staples-table { width: 100%; border-collapse: collapse; }
.staples-row + .staples-row { border-top: 1px solid var(--rule); }
.staples-row th, .staples-row td { padding: 12px 8px; text-align: left; vertical-align: middle; font-weight: 400; }
.staples-row th { padding-left: 18px; font-size: 17px; }
.staples-row td:last-child { padding-right: 12px; width: 44px; }
.staples-row form { margin: 0; }
.staples-row__input { width: 130px; height: 36px; border-radius: 10px; background: var(--paper); font-size: 15px; }
.staples-row__aisle { width: 140px; font-size: 14px; color: var(--muted); }
.staples-row__who { width: 40px; }
.staples-add { padding: 12px 18px; border-top: 1px solid var(--rule); }
.staples-card > .staples-add:first-child { border-top: 0; }
.staples-add__summary { list-style: none; display: flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px dashed var(--dash); color: var(--muted); font-size: 15px; cursor: pointer; }
.staples-add__summary::-webkit-details-marker { display: none; }
.staples-add[open] .staples-add__summary { display: none; }
.staples-add__form { display: flex; flex-wrap: wrap; gap: 10px; }
.staples-add__form .input { flex: 1 1 180px; height: 44px; }
.staples-add__form .staples-add__amount { flex: 0 1 140px; }
.staples-all { align-self: flex-start; }
form:has(> .staples-all) { margin: 0; }
.staples-suggest { padding: 20px; border-radius: var(--radius-lg); background: var(--linen); display: flex; flex-direction: column; gap: 12px; }
.staples-suggest__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.staples-suggest__row { display: flex; align-items: center; gap: 8px; }
.staples-suggest__row form { margin: 0; }
.staples-suggest__what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.list-card-box--linen { background: var(--linen); border: 0; }
@media (max-width: 600px) {
  .staples-row th { display: flex; flex-direction: column; gap: 1px; padding-left: 14px; font-size: 16px; }
  .staples-row__aisle.narrow-only { width: auto; font-size: 12px; }
  .staples-row__input { width: 100px; background: var(--linen); border: 0; }
  .staples-all { width: 100%; }
  form:has(> .staples-all) { width: 100%; }
}

/* Arrange for my store (3a/3b) */
.arrange__name { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.arrange__name-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.arrange__name .input { width: min(360px, 100%); height: 48px; }
.arrange__aisles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.arrange-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-height: 52px; padding: 4px 12px 4px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--rule); }
.arrange-row[draggable="true"] { cursor: grab; }
.arrange-row.is-dragging { border-color: var(--ink); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .4); opacity: .9; }
.arrange-row.is-pinned { opacity: .7; }
.arrange-row form { margin: 0; }
.arrange-row__handle { flex: none; width: 16px; color: var(--muted); display: inline-flex; }
.arrange-row__name-box { flex: 1 1 180px; min-width: 0; }
.arrange-row__name { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: 16px; }
.arrange-row__name::-webkit-details-marker { display: none; }
.arrange-row__name:focus-visible { outline: 2px solid var(--persimmon); outline-offset: 2px; border-radius: 6px; }
.arrange-row__label { flex: 1; min-width: 0; }
.arrange-row__rename-link { font-size: 13px; font-weight: 600; color: var(--persimmon); }
.arrange-row__name-box[open] .arrange-row__rename-link { display: none; }
.arrange-row__rename { display: flex; gap: 8px; padding: 0 0 8px; }
.arrange-row__rename .input { flex: 1; min-width: 0; }
.arrange-row__count { font-size: 13px; white-space: nowrap; }
.arrange-row__moves { display: inline-flex; gap: 2px; }
.arrange-row__move { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); }
.arrange-row__move .icon { transform: rotate(90deg); }
.arrange-row__move--down .icon { transform: rotate(-90deg); }
.arrange-row__move:hover:not(:disabled) { background: var(--linen); color: var(--ink); }
.arrange-row__move:disabled { opacity: .35; cursor: default; }
.arrange-row__action { font-size: 13px; min-height: 32px; }
.arrange-row__spacer { width: 34px; }
.arrange__hidden { display: flex; flex-direction: column; gap: 6px; }
.arrange-row--hidden { background: none; border: 1px dashed var(--dash); color: var(--muted); }
.arrange-row--hidden .arrange-row__name { flex: 1; cursor: auto; }
.arrange__add-summary { list-style: none; color: var(--persimmon); cursor: pointer; display: inline-flex; min-height: 44px; align-items: center; }
.arrange__add-summary::-webkit-details-marker { display: none; }
.arrange-moved { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.arrange-moved__row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 15px; border-bottom: 1px solid var(--rule); }
.arrange-moved__name { flex: 1; min-width: 0; }
.arrange-moved__row form { margin: 0; }
.arrange__pro { align-self: flex-start; }
.arrange__aside > form { margin: 0; }
@media (max-width: 600px) {
  .arrange-row { gap: 2px 10px; padding: 4px 8px 4px 12px; min-height: 46px; }
  .arrange-row__count { order: 0; }
}

/* Shopping mode (5a) */
.shop-body { min-height: 100dvh; }
.shop { max-width: 640px; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; }
.shop__top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--paper); }
.shop__done { font-size: 16px; font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.shop__where { flex: 1; min-width: 0; text-align: center; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop__left { font-size: 14px; color: var(--muted); white-space: nowrap; }
.shop__progress { display: flex; gap: 4px; padding: 0 18px; }
.shop__segment { flex: 1; height: 6px; border-radius: var(--radius-pill); background: var(--rule); }
.shop__segment.is-done { background: var(--sage); }
.shop__segment.is-now { background: var(--honey); }
.shop__aisle { flex: 1; padding: 22px 18px 0; display: flex; flex-direction: column; gap: 6px; }
.shop__now { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--honey-ink); }
.shop__now-tag { padding: 3px 8px; border-radius: 4px; background: var(--honey-bg); }
.shop:not(.is-live) .shop__now-tag { display: none; }
.shop__aisle-name { font: 400 40px/44px var(--font-display); padding-bottom: 8px; outline: none; }
.shop__items { list-style: none; margin: 0; padding: 0; }
.shop__item { border-bottom: 1px solid var(--rule); overflow: hidden; }
.shop__form { margin: 0; }
.shop__row { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 6px 4px; cursor: pointer; touch-action: pan-y; transition: opacity .2s, transform .2s; }
.shop__row:focus-visible { outline: 2px solid var(--persimmon); outline-offset: -2px; border-radius: 8px; }
.shop__circle { flex: none; width: 34px; height: 34px; border-radius: var(--radius-pill); border: 2px solid var(--muted); display: flex; align-items: center; justify-content: center; color: transparent; }
.shop__what { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.shop__text { font-size: 19px; line-height: 25px; }
.shop__sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop__item.is-checked .shop__row { opacity: .55; }
.shop__item.is-checked .shop__text { text-decoration: line-through; }
.shop__item.is-checked .shop__circle { border-color: var(--sage); background: var(--sage); color: #FFFCF7; }
.shop__toasts { position: fixed; left: 18px; right: 18px; bottom: 100px; z-index: 5; max-width: 604px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.shop__toast { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--iron); border: 1px solid var(--iron-edge); color: var(--on-iron); font-size: 14px;
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .5); }
.shop__toast-text { flex: 1; min-width: 0; }
.shop__toast-where { color: var(--on-iron-2); font-size: 13px; }
.shop__foot { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 12px 18px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); background: var(--paper); }
.shop__back { min-height: 60px; padding: 0 20px; }
.shop__next { flex: 1; min-height: 60px; font-size: 17px; }
.shop__empty { flex: 1; padding: 40px 18px; display: flex; flex-direction: column; gap: 12px; }
@media (prefers-reduced-motion: reduce) { .shop__row { transition: none; } }
.list-card-box > h2.strong, .staples-suggest > h2 { font-size: 16px; line-height: 22px; }
.shop__unsaved { color: var(--muted); }
/* Arrange: one grid for every row, so counts, arrows and Hide line up even on rows without them. */
@media not all and (max-width: 600px) {
  .arrange__aisles .arrange-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) 80px 68px 64px; column-gap: 14px; }
  .arrange__aisles .arrange-row__handle { grid-column: 1; }
  .arrange__aisles .arrange-row__name-box { grid-column: 2; }
  .arrange__aisles .arrange-row__count { grid-column: 3; text-align: right; }
  .arrange__aisles .arrange-row__moves { grid-column: 4; }
  .arrange__aisles .arrange-row__action, .arrange__aisles .arrange-row__spacer, .arrange__aisles .arrange-row > form:last-child { grid-column: 5; justify-self: end; }
}
/* Share… is the phone's share sheet: on a wide screen Send is Copy and Email. */
@media not all and (max-width: 600px) { .can-share .list-send__row { display: none; } }
/* Recipes are named in full everywhere; where room is tight the title is cut with an ellipsis. */
.list-for__what { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-for__recipe { display: inline-block; max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.snackbar > span { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* "Serves 4" stays together; on a plan dinner the "· this week's plan" tag goes to its own line instead. */
.list-recipe-card__serves { flex-wrap: wrap; row-gap: 2px; }
.list-recipe-card__serves > span { white-space: nowrap; }
/* Arrange at phone width: one grid for every row. Name over its count; arrows and Hide in fixed columns. */
@media (max-width: 600px) {
  .arrange__aisles .arrange-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) 60px 52px; column-gap: 8px; row-gap: 0; align-items: center; }
  .arrange__aisles .arrange-row__handle { grid-column: 1; grid-row: 1 / span 2; }
  .arrange__aisles .arrange-row__name-box { grid-column: 2; grid-row: 1; }
  .arrange__aisles .arrange-row__count { grid-column: 2; grid-row: 2; font-size: 12px; }
  .arrange__aisles .arrange-row__moves { grid-column: 3; grid-row: 1 / span 2; }
  .arrange__aisles .arrange-row__action, .arrange__aisles .arrange-row__spacer, .arrange__aisles .arrange-row > form:last-child { grid-column: 4; grid-row: 1 / span 2; justify-self: end; }
}

/* Planning parity (design Revision 8): foods to avoid, warning chips, leftovers, the calendar and saved weeks. */
.who--all { background: var(--linen); border: 1.5px dashed var(--dash); }

/* Warning chips (1e/1f): allergies, diets and "may contain" in the persimmon tint, dislikes muted text, unknown
   neutral. Each is a details.pop: what we found, the honest line, "Something we missed?" and "Edit {name}'s list". */
.avoid-chips { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.avoid-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--warn-bg); color: var(--warn-ink); font-size: 13px; font-weight: 600; line-height: 18px; text-align: left; }
.avoid-chip--dislike { background: none; padding-inline: 0; color: var(--muted); font-weight: 400; text-decoration: underline dotted; text-underline-offset: 3px; }
.avoid-chip--unknown { background: var(--linen); color: var(--ink-soft); }
.avoid-chips--small .avoid-chip { min-height: 24px; padding: 2px 8px; font-size: 12px; }
.avoid-chips--small .avoid-chip .icon { display: none; }
.avoid-chips--small .avoid-chip--dislike { padding-inline: 0; }
.avoid-chip:focus-visible { outline: 2px solid var(--persimmon); outline-offset: 2px; }
.avoid-pop__actions { display: flex; flex-wrap: wrap; gap: 6px 16px; }
/* The chip's panel hangs from the card, row or sheet it's in (not the chip), so it never runs off a narrow card or
   the screen's edge. */
.avoid-chips, .avoid-pop { position: static; }
.card, .dinner, .plan-choice, .search-result, .recipe__avoid { position: relative; }
@media (min-width: 601px) { .avoid-pop > .pop__panel { top: auto; margin-top: 6px; left: 0; right: auto; width: min(340px, 100%); } }

/* The honest line and reserved slots. */
.avoid-honest { color: var(--muted); font-size: 13px; line-height: 18px; }
.recipe__avoid { display: flex; flex-direction: column; gap: 8px; }

/* Kitchen › Household › {person} (1a): people | the editor | their list and how we check. */
.avoid { display: grid; grid-template-columns: 260px minmax(0, 1fr) 340px; gap: 36px; padding-block: 16px 48px; align-items: start; }
.avoid__nav { display: flex; flex-direction: column; gap: 6px; }
.avoid__back { padding-bottom: 10px; font-size: 14px; font-weight: 600; text-decoration: none; }
.avoid__add { margin-top: 10px; text-decoration: none; }
.avoid-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.avoid-person { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-md); border: 1px solid transparent; color: var(--ink); text-decoration: none; }
.avoid-person:hover { color: var(--ink); background: var(--card); }
.avoid-person[aria-current="page"] { background: var(--card); border-color: var(--rule); }
.avoid-person__who { display: flex; flex-direction: column; min-width: 0; }
.avoid-everyone { margin-top: 10px; padding: 14px; border-radius: var(--radius-md); border: 1px dashed var(--dash); display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; }
.avoid-everyone[aria-current="page"] { border-style: solid; border-color: var(--ink); background: var(--card); }
.avoid-everyone:hover { color: var(--ink); }
.avoid__main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.avoid__head { display: flex; align-items: center; gap: 16px; }
.avoid__title { font: 400 36px/40px var(--font-display); }
.avoid-search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--rule-strong); color: var(--muted); }
.avoid-search:focus-within { border: 2px solid var(--ink); padding: 0 15px; }
.avoid-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; outline: none; }
.avoid-found { list-style: none; margin: -8px 0 0; padding: 6px; display: flex; flex-direction: column; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--rule); }
.avoid-found__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 10px; }
.avoid-found__row + .avoid-found__row { border-top: 1px solid var(--rule); }
.avoid-found__row form { margin: 0; }
.avoid-found__as { display: flex; gap: 6px; flex: none; }
.avoid-group { display: flex; flex-direction: column; gap: 10px; }
.avoid-group .eyebrow { margin: 0; letter-spacing: .08em; }
.avoid-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.preset__form { margin: 0; display: contents; }
.preset { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--rule); background: var(--card); color: var(--ink); font-size: 14px; font-weight: 400; cursor: pointer; }
.preset:hover { border-color: var(--muted); }
.preset.is-on { font-weight: 600; }
.preset--allergy.is-on, .preset--diet.is-on { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-ink); }
.preset--dislike.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.preset--watch.is-on { background: var(--linen); color: var(--ink); border-color: var(--ink); } /* Watching… (design Revision 18): linen, never a warning */
.preset--more { border-style: dashed; border-color: var(--dash); color: var(--muted); }
.avoid-tag { display: inline-block; padding: 2px 8px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 16px; background: var(--linen); color: var(--ink-soft); }
.avoid-tag--allergy, .avoid-tag--diet { background: var(--warn-bg); color: var(--warn-ink); }
.avoid__aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.avoid-list { padding: 20px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 12px; }
.avoid-list__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.avoid-list__row { display: flex; align-items: center; gap: 10px; }
.avoid-list__label { flex: 1; min-width: 0; font-size: 15px; }
.avoid-list__row form { margin: 0; }
.avoid-list__remove { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--radius-pill); background: none; color: var(--muted); }
.avoid-list__remove:hover { background: var(--linen); color: var(--ink); }
.avoid-how { padding: 20px; border-radius: var(--radius-lg); background: var(--linen); display: flex; flex-direction: column; gap: 8px; color: var(--ink-soft); }
.avoid-guest { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--rule); }
.avoid-guest__edit > summary { list-style: none; }
.avoid-guest__edit > summary::-webkit-details-marker { display: none; }
.avoid-guest__edit[open] { display: flex; flex-direction: column; gap: 10px; }
.guest-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.guest-form .input { width: 180px; }
@media (max-width: 1080px) { .avoid { grid-template-columns: 220px minmax(0, 1fr); } .avoid__aside { grid-column: 2; position: static; } }
@media (max-width: 760px) {
  .avoid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .avoid__aside { grid-column: auto; }
  .avoid-people { flex-direction: row; overflow-x: auto; }
  .avoid-person { flex: none; }
  .avoid-person__who .small { display: none; }
  .avoid__title { font-size: 28px; line-height: 32px; }
  .avoid__head .who { --who-size: 48px !important; }
  .avoid-search { height: 44px; border-radius: var(--radius-pill); }
  .preset { min-height: 34px; padding: 0 12px; font-size: 13px; }
}

/* Household › Foods to avoid: a row for each person and "Avoid for everyone", and adding a guest. */
.household-people { margin-top: 24px; }
.people-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.people-rows li + li { border-top: 1px solid var(--rule); }
.people-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; color: var(--ink); text-decoration: none; }
.people-row:hover { color: var(--ink); background: var(--linen); }
.people-row__who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.people-row__go { color: var(--muted); font-size: 20px; }
.people-row--everyone { padding-left: 52px; }
.add-guest { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--rule); }
.avoid-report { max-width: 620px; }
.avoid-report__form { display: flex; flex-direction: column; gap: 16px; }

/* Discover's "Fits our kitchen" (1e): a toggle among the filter chips, and the note under them. */
.chip-form { display: contents; }
.chip--fits { gap: 8px; font-family: inherit; font-size: 14px; font-weight: 600; background: var(--card); cursor: pointer; }
.chip--fits[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.chip--fits__box { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; border: 1.5px solid var(--muted); font-size: 12px; line-height: 1; }
.chip--fits[aria-pressed="true"] .chip--fits__box { border-color: var(--on-ink); background: var(--on-ink); color: var(--ink); }
.fits-note { margin: 4px 0 16px; font-size: 14px; }
.fits-note .avoid-honest { display: block; }

/* This week (design Revision 8): leftovers nights, the nights stepper, what was left out, who's eating, first run. */
.ink-soft { color: var(--ink-soft); }
.button--outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.button--outline:hover { background: var(--linen); color: var(--ink); }
.button--ink { background: var(--ink); color: var(--paper); }
.button--ink:hover { background: var(--ink-soft); color: var(--paper); }
.plan-tag--leftover { background: var(--linen); color: var(--ink-soft); }
.dinner--leftover { background: var(--linen); border: 1px dashed var(--dash); }
.leftover-bowl { display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--dash); color: var(--muted); }
.leftover-bowl--big { width: 100%; height: 100%; min-height: 140px; border-radius: var(--radius-md); border-color: var(--iron-rule-2); color: var(--on-iron-2); }
.day-chip--leftover { background: transparent; }
.nights { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }
.nights__pill { display: inline-flex; align-items: center; height: 32px; border: 1px solid var(--rule-strong); border-radius: var(--radius-pill); }
.nights__pill form { margin: 0; display: contents; }
.nights__step { width: 32px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--ink); border-radius: var(--radius-pill); }
.nights__step:hover:not(:disabled) { background: var(--linen); }
.nights__step:disabled { color: var(--dash); cursor: default; }
.nights__n { min-width: 64px; text-align: center; font-size: 13px; font-weight: 600; }
.week-why__title { font: 400 22px/28px var(--font-display); }
.week-card--why { background: var(--linen); border-color: var(--linen); }
.left-out { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--rule-strong); }
.left-out__lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.left-out__lines li, .left-out__line { display: flex; align-items: flex-start; gap: 8px; }
.left-out-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--linen); font-size: 13px; line-height: 18px; }
.left-out-row > span:not(.who) { flex: 1; }
.eating-form { display: flex; flex-direction: column; gap: 6px; }
.eating-form input[type=checkbox] { accent-color: var(--persimmon); width: 18px; height: 18px; }
.next-week { border-color: var(--ink); }
.avoid-card { padding: 24px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--rule); max-width: 760px; }
.avoid-card__form { display: flex; flex-direction: column; gap: 14px; }
.avoid-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.avoid-card__title { font: 400 30px/34px var(--font-display); }
.avoid-card__close { width: 36px; height: 36px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--radius-pill); background: none; color: var(--muted); }
.avoid-card__close:hover { background: var(--linen); color: var(--ink); }
.avoid-card__chips { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; }
.chip-check--allergy input:checked + span, .chip-check--diet input:checked + span { background: var(--warn-bg); border-color: var(--warn-ink); color: var(--warn-ink); }

/* Save this week (3b) and Use this week (3a). */
.save-sheet__form, .use-sheet__form { display: flex; flex-direction: column; gap: 12px; }
.save-sheet__name { font: 400 19px/1 var(--font-display); border: 2px solid var(--ink); }
.save-sheet__notice { padding: 12px 14px; border-radius: var(--radius-md); background: var(--linen); display: flex; flex-direction: column; gap: 4px; }
.saved-weeks__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.saved-weeks__title { font-size: 40px; line-height: 44px; }
.saved-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.saved-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 16px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--rule); }
.saved-card__thumbs { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.saved-card__thumbs li { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--placeholder); }
.saved-card__thumbs img, .plan-set__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.saved-card__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.saved-card__name { font: 400 22px/28px var(--font-display); }
.saved-card__more { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; }
.saved-card__edit > summary { list-style: none; }
.saved-card__edit > summary::-webkit-details-marker { display: none; }
.saved-card__edit[open] { flex-basis: 100%; display: flex; flex-direction: column; gap: 8px; }
.saved-card__use { min-height: 40px; }
.use-sheet { width: min(100% - 24px, 580px); }
.use-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--card); }
.use-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.use-row + .use-row { border-top: 1px solid var(--rule); }
.use-row__thumb { flex: none; width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--placeholder); }
.use-row__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.use-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.use-row--gone { opacity: .55; }
.use-options { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.use-option { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--rule-strong); cursor: pointer; }
.use-option:has(input:checked) { border: 2px solid var(--ink); padding: 11px 13px; }
.use-option input { margin-top: 4px; accent-color: var(--ink); }
.use-sheet__actions { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 600px) {
  .saved-card { grid-template-columns: minmax(0, 1fr); }
  .saved-card__thumbs li { width: 48px; height: 48px; }
  .saved-weeks__title { font-size: 32px; line-height: 38px; }
}

/* Kitchen › Planning: the calendar feed (2a). */
.calendar-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 28px; margin-bottom: 24px; }
.calendar-card__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.calendar-card__title { font: 400 30px/34px var(--font-display); }
.calendar-link { display: flex; gap: 8px; align-items: center; }
.calendar-link__url { flex: 1; min-width: 0; height: 46px; padding: 0 14px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border: 1px solid var(--rule-strong); border-radius: var(--radius-input); font: 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); user-select: all; }
.calendar-link .button { min-height: 46px; flex: none; }
.calendar-open { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.calendar-privacy { padding: 14px 16px; border-radius: var(--radius-md); background: var(--linen); display: flex; flex-direction: column; gap: 6px; }
.calendar-reset > summary { list-style: none; }
.calendar-reset > summary::-webkit-details-marker { display: none; }
.calendar-reset__confirm { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 8px; }
.calendar-settings { border: 1px solid var(--rule); border-radius: 16px; align-self: start; }
.calendar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin: 0; flex-wrap: wrap; }
.calendar-row + .calendar-row { border-top: 1px solid var(--rule); }
.calendar-row__text { display: flex; flex-direction: column; flex: 1 1 180px; min-width: 0; }
.calendar-row__times { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.saved-weeks-link { margin-bottom: 24px; }
@media (max-width: 860px) { .calendar-card { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .calendar-link { flex-direction: column; align-items: stretch; }
  .calendar-link__url { flex: none; } /* in a column, flex: 1 would take the height to nothing */
  .calendar-card__title { font-size: 26px; line-height: 32px; }
}
@media (prefers-reduced-motion: reduce) { .sheet, .pop__panel { transition: none; animation: none; } }
.avoid-list h2, .avoid-how h2, .avoid-guest h2 { font-size: 16px; line-height: 22px; }

/* "Plan it anyway" in a full week: "Instead of which dinner?" (a swap), a <details> so it works without JavaScript. */
.plan-choice:has(.plan-anyway[open]) { flex-wrap: wrap; }
.plan-anyway > summary { list-style: none; }
.plan-anyway > summary::-webkit-details-marker { display: none; }
.plan-anyway[open] { flex-basis: 100%; }
.plan-anyway__pick { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.plan-anyway__dinners { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.plan-anyway__dinners form { margin: 0; }
.plan-anyway__dinner { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--rule-strong); border-radius: var(--radius-md); background: var(--paper); color: var(--ink); text-align: left; }
.plan-anyway__dinner:hover { border-color: var(--ink); }

/* Bring a friend (design Revision 10). sage only means done, always with a ✓; waiting is a dashed circle. */
.invite { max-width: 680px; margin: 48px auto; display: flex; flex-direction: column; gap: 20px; }
.invite__from { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.invite__reward { padding-left: 18px; }
.invite__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.invite-note { padding: 14px 16px; border-radius: var(--radius-md); background: var(--linen); color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.friends__url code { font-size: 17px; overflow-wrap: anywhere; }
.friends__how { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.friends__how li { display: flex; align-items: center; gap: 12px; }
.friends__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.friends__list li { display: flex; align-items: center; gap: 12px; }
.friends__list li strong { margin-left: auto; }
.friends__friend .credit__initial { width: 32px; height: 32px; font-size: 16px; }
.friends__dot { width: 24px; height: 24px; flex: none; border-radius: var(--radius-pill); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.friends__dot--waiting { border: 2px dashed var(--dash); }
.friends__dot--cooked { background: var(--sage); color: var(--card); }
.friends__earned { font: 500 22px/28px var(--font-display); }
.friends__capped { background: var(--sage-bg); } /* done: with the ✓ and its words */
.friends__bar { height: 8px; border-radius: var(--radius-pill); background: var(--linen); overflow: hidden; }
.friends__bar span { display: block; height: 100%; background: var(--persimmon); }

/* Cook any page (design Revision 11): the panel's states, Mark, Paste, and marked/pasted credits. */
.any__body { display: flex; flex-direction: column; gap: var(--space-4); }
.any__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.any__foot, .any__quiet { margin: 0; color: var(--muted); }
.any__note, .any__banner { margin: 0; padding: 10px 12px; border-radius: var(--radius-md); background: var(--linen); font-size: 14px; }
.any__banner { font-size: 13px; }
.any__private { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: var(--radius-md);
  background: var(--iron); border: 1px solid var(--iron-edge); color: var(--on-iron); font-size: 13px; }
.any__private .icon { flex: none; margin-top: 3px; }
.any__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.any__rows li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.any__k { flex: none; min-width: 3.5em; font-weight: 600; color: var(--persimmon); }
.any__n { flex: none; width: 1.5em; font-weight: 600; }
.any__words { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.any__rows li.is-out .any__words { color: var(--muted); text-decoration: line-through; }
.any__rows li.is-unsure .any__k { color: var(--honey-ink); }
.any__field { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.any__field input, .any__paste { font: inherit; font-weight: 400; padding: 8px 12px; border: 1px solid var(--rule-strong); border-radius: var(--radius-md); background: var(--card); color: var(--ink); }
.private-badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--iron); border: 1px solid var(--iron-edge); color: var(--on-iron); font-size: 12px; font-weight: 600; }
.marked-credit { margin: 0; font-size: 13px; color: var(--muted); }

/* More than one list (design Revision 12): the chips above the list (1a), Your lists (1a), Add to… (1c) and Move to…. */
.list-dot { display: inline-block; flex: none; width: var(--dot-size, 12px); height: var(--dot-size, 12px); border-radius: var(--radius-pill); background: var(--dot); }
.list-chips { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } /* holds its chips' visually-hidden words: else they widen a phone's page */
.list-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--rule);
  background: var(--card); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.list-chip:hover { color: var(--ink); border-color: var(--rule-strong); }
.list-chip[aria-current] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.list-chip__count { font-weight: 400; color: var(--muted); }
.list-chip[aria-current] .list-chip__count { color: inherit; opacity: .75; }
.list-chip--new { border-style: dashed; border-color: var(--dash); background: transparent; color: var(--muted); font-weight: 400; }
.list-chips__manage { margin-left: auto; font-size: 14px; }
.list-head__h1 .list-dot { vertical-align: middle; margin-right: 12px; }
.list-move__lists { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--rule); }
.list-move__list-actions { display: flex; gap: 8px; }
.add-to { position: relative; }
.add-to__panel { display: flex; flex-direction: column; gap: 4px; min-width: 240px; }
.add-to__title { font-size: 12px; color: var(--muted); }
.add-to__form { display: block; }
.add-to__row { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border-radius: var(--radius-sm); cursor: pointer; font-size: 15px; }
.add-to__row:hover, .add-to__row:focus-visible { background: var(--linen); }
.add-to__row:focus-visible { outline: 2px solid var(--persimmon); }
.add-to__meta { margin-left: auto; color: var(--muted); font-size: 13px; }
.lists-page { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
.lists-main, .lists-aside { display: flex; flex-direction: column; gap: 14px; }
.lists-aside { padding-top: 40px; }
.lists-title { font: 400 40px/44px var(--font-display); }
.lists-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lists-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--rule); }
.lists-row--archived { background: transparent; border-style: dashed; border-color: var(--dash); color: var(--muted); }
.lists-row__what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lists-row__name { font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; }
.lists-row--archived .lists-row__name { font-weight: 400; color: inherit; }
.lists-row__meta { font-size: 13px; color: var(--muted); }
.lists-row__actions { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.lists-order { display: flex; flex-direction: column; }
.lists-order__form { display: block; }
.lists-order__button { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 28px; height: 22px; border-radius: var(--radius-sm); color: var(--muted); cursor: pointer; }
.lists-order__button:hover:not(:disabled) { background: var(--linen); color: var(--ink); }
.lists-order__button:disabled { opacity: .35; cursor: default; }
.lists-order__button:focus-visible { outline: 2px solid var(--persimmon); }
.lists-colors { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }
.lists-color { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-pill); cursor: pointer; }
.lists-color input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.lists-color:has(input:checked) { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.lists-color:has(input:focus-visible) { outline: 2px solid var(--persimmon); outline-offset: 4px; }
.lists-new { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; border: 1px dashed var(--dash); }
.lists-new__row { display: flex; gap: 8px; }
.lists-new__row .input { flex: 1; }
.lists-section { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 8px; }
.lists-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--rule); font-size: 14px; line-height: 21px; }
.lists-card--free { background: var(--linen); border: 0; }
.lists-card__title { font-size: 16px; font-weight: 600; }
.lists-delete__panel { display: flex; flex-direction: column; gap: 10px; overflow-wrap: anywhere; }
/* An archived list opened by its link: a note with Restore, and the list below it read-only. */
.list-archived { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; padding: 12px 16px; border-radius: var(--radius-md);
  background: var(--linen); font-size: 14px; }
.list-archived__restore { margin: 0; }
.list-frozen { min-width: 0; margin: 0; padding: 0; border: 0; opacity: .7; }
@media (max-width: 760px) {
  .lists-page { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .lists-aside { padding-top: 0; }
  .lists-title { font-size: 32px; line-height: 36px; }
  .lists-row { flex-wrap: wrap; }
  .list-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .list-chip { flex: none; }
}

/* The pantry (design Revision 12): Kitchen › Pantry (2a/2b), the list's cover (2c), Put away, take out (2d), "We have
   these", the expiring card (4i). The Revision 7 list rows, with the Revision 8 persimmon tint for "expires soon". */
.input--small { height: 40px; padding: 0 10px; font-size: 15px; border-radius: 10px; }
.pantry-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.pantry-main, .pantry-aside { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (max-width: 900px) { .pantry-page { grid-template-columns: minmax(0, 1fr); } }
.pantry-head { display: flex; flex-direction: column; gap: 4px; }
.pantry-add { display: flex; flex-direction: column; gap: 10px; }
.pantry-add__name { position: relative; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; border-radius: var(--radius-md);
  background: var(--card); border: 1px solid var(--rule-strong); }
.pantry-add__name:focus-within { border: 2px solid var(--ink); padding: 0 15px; }
.pantry-add__more { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.pantry-field { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pantry-add__more .pantry-field { flex: 1 1 140px; }
.pantry-place { display: flex; flex-direction: column; gap: 4px; scroll-margin-top: 80px; }
.pantry-place .list-aisle__head { align-items: center; }
.pantry-place__none { margin: 0; padding: 6px 0; }
.pantry-place__edit, .pantry-item__edit { position: relative; margin-left: auto; flex: none; }
.pantry-place__edit > summary, .pantry-item__edit > summary { list-style: none; min-height: 32px; }
.pantry-place__edit > summary::-webkit-details-marker, .pantry-item__edit > summary::-webkit-details-marker { display: none; }
.pantry-pop { position: absolute; z-index: 15; right: 0; top: calc(100% + 4px); width: min(320px, calc(100vw - 32px)); padding: 14px; display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--card); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.pantry-pop__form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.pantry-pop__row { display: flex; flex-wrap: wrap; gap: 12px; }
.pantry-pop form { margin: 0; }
.pantry-item .list-item__name { cursor: default; }
.pantry-soon { color: var(--warn-ink); font-weight: 600; }
.pantry-chip { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: var(--radius-pill); border: 1px solid currentColor; color: var(--warn-ink); font-size: 12px; font-weight: 600; vertical-align: 1px; }
.pantry-empty { padding: 20px; border: 1px dashed var(--dash); border-radius: var(--radius-lg); background: var(--card); }
.pantry-empty__title { margin: 0 0 4px; font: 400 24px/30px var(--font-display); }
.pantry-empty p { margin: 0 0 8px; }
.pantry-empty__ways { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.pantry-new-place { display: flex; flex-wrap: wrap; gap: 10px; }
.pantry-new-place .input { flex: 1 1 220px; min-width: 0; }
.pantry-card { padding: 18px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; }
.pantry-card--soon { background: var(--warn-bg); border-color: transparent; color: var(--ink); }
.pantry-card__title { margin: 0; font: 400 22px/28px var(--font-display); }
.pantry-card--soon .pantry-card__title { color: var(--warn-ink); }
.pantry-card__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.pantry-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pantry-card__row form { margin: 0; }
.today .pantry-card { margin-top: var(--space-6); }

/* On the list: "In pantry · ½ jar left" under the line, and Skip on a line the pantry covers */
.list-item__pantry { font-size: 13px; font-weight: 600; color: var(--sage-ink); }
.list-item__pantry--partial { color: var(--warn-ink); }
.list-item__skip-form { margin: 0; flex: none; }
.list-item__skip { min-height: 32px; }

/* Put away from Got it */
.put-away > summary { list-style: none; align-self: flex-start; }
.put-away > summary::-webkit-details-marker { display: none; }
.put-away[open] > summary { display: none; }
.put-away__sheet { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 16px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--rule); }
.put-away__title { margin: 0; font: 400 22px/28px var(--font-display); }
.put-away__sheet > p { margin: 0; }
.put-away__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.put-away__row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 150px; gap: 8px; align-items: center; }
.put-away__what { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15px; }
@media (max-width: 600px) { .put-away__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .put-away__what { grid-column: 1 / -1; } }
.put-away__actions { display: flex; gap: 10px; }

/* Take out on the finish screen, and "We have these" on a recipe */
.take-out, .have__form { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 16px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--rule); }
.take-out__title { margin: 0; font: 400 20px/26px var(--font-display); }
.take-out p, .have__form p { margin: 0; }
.take-out__rows, .have__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.take-out__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.take-out__what, .have__row { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.take-out__left { flex: none; }
.take-out .button, .have__form .button { align-self: flex-start; }
.have__line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.have__line .have__row { flex: 1 1 220px; }
.have__line--full .have__text, .have__line--have .have__text { flex: 1 1 220px; color: var(--sage-ink); }
.have__line--buy .have__text { color: var(--ink); } /* in the pantry, but the list still buys it: no ✓, no green */
.have__note { font-size: 13px; line-height: 18px; color: var(--muted); }
.have__list { margin: 0; }

/* What's in it (design Revision 18): the nutrition panel, solid for the author's numbers, dashed for StoveTab's estimate,
   the source always in words too. Profile lines in linen, never red. */
.nutri { display: flex; flex-direction: column; gap: 10px; margin-top: var(--space-4); padding: 20px; border-radius: var(--radius-lg); background: var(--card); border: 2px solid var(--ink); }
.nutri--est { border: 2px dashed var(--muted); }
.nutri__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.nutri__title { margin: 0; font: 400 24px/30px var(--font-display); }
.nutri__source { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.nutri__serving { margin: 0; }
.nutri__per { align-self: flex-start; }
.nutri-tag { padding: 3px 9px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; background: var(--linen); color: var(--ink-soft); }
.nutri-tag--est { background: transparent; border: 1px dashed var(--muted); }
.nutri-tag--mine { background: var(--sage-bg); color: var(--sage-ink); }
.nutri__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nutri__table th { text-align: left; font-weight: 700; padding: 7px 0; }
.nutri__scroll { overflow-x: auto; }
.nutri__table td { padding: 7px 0 7px 10px; text-align: right; overflow-wrap: anywhere; }
.nutri__table td.nutri__dv { white-space: nowrap; }
@media (max-width: 480px) { .nutri__row--first th, .nutri__row--first td { font-size: 20px; line-height: 26px; } }
.nutri__row { border-bottom: 1px solid var(--rule); }
.nutri__row--first { border-bottom: 4px solid var(--ink); }
.nutri__row--first th, .nutri__row--first td { font: 400 24px/30px var(--font-display); padding: 8px 0 10px; }
.nutri__row--first td { padding-left: 10px; }
.nutri__row--sub th { font-weight: 400; padding-left: 16px; }
.nutri__dv { width: 3.5em; color: var(--ink-soft); }
.nutri__value--changed { color: var(--sage-ink); font-weight: 700; }
/* "21,090 kJ / 5,040 kcal → 22,730 kJ / 5,430 kcal" breaks at the arrow, never inside a number; no %RI column, no gap. */
.nutri__value--changed .nutri__was, .nutri__value--changed .nutri__now { white-space: nowrap; }
.nutri__table td.nutri__dv:empty { width: 0; padding: 0; }
.nutri__row--first .nutri__value--changed { font-size: 18px; line-height: 24px; }
.nutri-est { display: inline-block; margin-left: 4px; padding: 0 6px; border: 1px dashed var(--muted); border-radius: var(--radius-pill); font-size: 10px; font-weight: 700; color: var(--muted); vertical-align: 1px; }
.nutri__pro { margin: 0; }
.nutri-conf { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--rule-strong); }
.nutri-conf p { margin: 0; }
.nutri-conf__title { display: flex; align-items: center; gap: 8px; }
.nutri-bars { display: inline-flex; align-items: flex-end; gap: 3px; }
.nutri-bars span { width: 8px; border-radius: 2px; background: var(--rule-strong); }
.nutri-bars span:nth-child(1) { height: 10px; } .nutri-bars span:nth-child(2) { height: 14px; } .nutri-bars span:nth-child(3) { height: 18px; }
.nutri-bars span.on { background: var(--ink); }
.nutri-review { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nutri-review__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.nutri-review__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.nutri-review__row form { margin: 0; }
.nutri-review__row > .button, .nutri-review__row form { flex-shrink: 0; white-space: nowrap; } /* "Fix match" never wraps beside a long note */
.nutri-fix { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--paper); }
.nutri-fix__search { display: flex; gap: 8px; }
.nutri-fix__search .input { flex: 1; min-width: 0; }
.nutri-fix__form { display: flex; flex-direction: column; gap: 10px; }
.nutri-fix__foods { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nutri-fix__food { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--rule); font-weight: 400; cursor: pointer; }
.nutri-fix__food > span { display: flex; flex-direction: column; gap: 2px; }
.nutri-fix__grams { display: flex; flex-direction: column; gap: 4px; }
.nutri-watch { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--linen); font-size: 13px; line-height: 18px; color: var(--ink); }
.recipe__watch { display: flex; flex-direction: column; gap: 6px; }
.nutri-line { margin: 0; font-weight: 600; }
.dinner__nutrition { margin: 2px 0 0; }
.upload-form__nutrition { margin: 0 0 var(--space-4); padding: 12px; border: 1px solid var(--rule); border-radius: var(--radius-md); }
.upload-form__nutrition summary { cursor: pointer; }
.upload-form__nutrients { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 8px; }
.upload-form__nutrients label { display: flex; flex-direction: column; gap: 4px; font-weight: 400; }
.nutri-settings__why { padding: 12px 14px; border-radius: var(--radius-md); background: var(--linen); font-size: 13px; line-height: 19px; color: var(--ink-soft); }
/* The front page (design Revision 19): one fluid layout, two columns at most, one on phones. */
.front { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 80px); container-type: inline-size; }
.front em { font-style: italic; }
.front-eyebrow { font-weight: 700; letter-spacing: .06em; margin: 0; }
.front-h2 { font: 400 clamp(30px, 4cqi, 48px)/1.1 var(--font-display); text-wrap: balance; }
.front-h3 { font: 400 clamp(24px, 2.2cqi, 30px)/1.2 var(--font-display); }
.front-section { display: flex; flex-direction: column; gap: 24px; }
.front-hero { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(28px, 4cqi, 56px); padding-top: clamp(12px, 3cqi, 40px); }
.front-hero__copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.front-hero__title { font: 400 clamp(42px, 5.6cqi, 80px)/1.04 var(--font-display); text-wrap: balance; }
.front-hero__lede { font-size: clamp(17px, 1.4cqi, 20px); line-height: 1.5; color: var(--ink-soft); max-width: 560px; text-wrap: pretty; }
.front-doors .button { min-height: 56px; font-size: 17px; }
.front-doors__ring { width: 20px; height: 20px; border-radius: 999px; border: 2px solid currentColor; }
.front-doors .button--ghost { border-width: 1.5px; }

/* The product shot, drawn in HTML from our own Practice Blog recipe. */
.front-shot { flex: 1 1 520px; min-width: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--rule-strong); background: var(--card);
  box-shadow: 0 30px 60px -30px rgba(42, 33, 28, .45); }
.front-shot__bar { height: 34px; background: var(--linen); display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--rule); }
.front-shot__dots { display: flex; gap: 5px; }
.front-shot__dots i { width: 9px; height: 9px; border-radius: 999px; background: var(--rule-strong); }
.front-shot__url { flex: 1; min-width: 0; height: 20px; border-radius: 999px; background: var(--card); font-size: 11px; color: var(--muted); display: flex; align-items: center; padding: 0 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.front-shot__body { display: flex; min-height: clamp(300px, 30cqi, 420px); }
.front-shot__page { flex: 1; min-width: 0; padding: 16px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.front-shot__kicker { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.front-shot__title { font: 400 20px/23px var(--font-display); }
.front-shot__photo { height: 90px; flex-shrink: 0; border-radius: 10px; background: var(--placeholder); }
.front-shot__line { font-size: 12px; line-height: 17px; color: var(--muted); }
.front-shot__line--now { padding: 6px 8px; border-radius: 8px; background: var(--honey-bg); color: var(--honey-ink); outline: 2px solid var(--honey-ink); }
.front-shot__panel { width: 44%; max-width: 230px; flex-shrink: 0; border-left: 1px solid var(--rule); background: var(--paper); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.front-shot__brand { display: flex; align-items: center; gap: 6px; font: italic 400 16px/1 var(--font-display); }
.front-shot__mark { width: 14px; height: 14px; border-radius: 999px; background: #A9482A; box-shadow: inset 0 0 0 4.5px #A9482A, inset 0 0 0 7px #E8B04A; }
.front-shot__count { font-size: 11px; font-weight: 700; color: var(--muted); }
.front-shot__step { font-size: 13px; line-height: 18px; }
.front-shot__ings { font-size: 12px; line-height: 18px; }
.front-shot__timer { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--honey-bg); color: var(--honey-ink); }
.front-shot__next { margin-top: auto; height: 32px; border-radius: 999px; background: var(--persimmon); color: var(--on-persimmon); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }

/* Where you can use it. "Coming soon" is dashed and muted, never a button. */
.front-card { border-radius: var(--radius-xl); background: var(--card); border: 1px solid var(--rule); padding: clamp(18px, 2.4cqi, 28px); display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 16px; }
.front-platforms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 12px; }
.front-platform { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--rule); }
.front-platform--soon { background: none; border: 1px dashed var(--rule-strong); }
.front-platform__icon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; background: var(--persimmon); color: var(--on-persimmon); }
.front-platform--soon .front-platform__icon { background: none; border: 1.5px dashed var(--rule-strong); color: var(--muted); }
.front-platform__text { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.front-tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; background: var(--sage-bg); color: var(--sage-ink); }
.front-tag--soon { background: none; border: 1px dashed var(--muted); color: var(--muted); }
.front-platform__get { white-space: nowrap; }
@media (max-width: 520px) { .front-platform { flex-wrap: wrap; } .front-tag, .front-platform__get { margin-left: 58px; } }
.front-notify { border-top: 1px dashed var(--rule-strong); padding-top: 16px; }
.front-notify__form { display: flex; flex-direction: column; gap: 8px; }
.front-notify__row { display: flex; flex-wrap: wrap; gap: 10px; }
.front-notify__row .input { flex: 1 1 240px; min-width: 0; max-width: 420px; border-radius: var(--radius-pill); }
.front-notify__row .button { min-height: 52px; }
.front-notify__error { color: var(--warn-ink); font-weight: 600; }
.front-notify__done { padding: 12px 16px; border-radius: var(--radius-md); background: var(--sage-bg); color: var(--sage-ink); }

/* How it works and Beyond cooking. */
.front-split { display: flex; flex-wrap: wrap; gap: 32px clamp(32px, 5cqi, 72px); }
.front-split__lead { flex: 1 1 340px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.front-steps { flex: 1.4 1 420px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.front-step { display: flex; gap: 16px; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--rule); }
.front-step > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.front-step__n { width: 40px; height: 40px; flex-shrink: 0; border-radius: 999px; background: var(--linen); display: flex; align-items: center; justify-content: center; font: 400 22px/1 var(--font-display); }
.front-step__title { font: 400 21px/25px var(--font-display); }
.front-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.front-feature { padding: 22px 24px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.front-feature__title { font: 400 22px/26px var(--font-display); }

/* The author promise, on cast iron in both themes. */
.front-promise { display: flex; flex-wrap: wrap; align-items: center; gap: 32px clamp(32px, 5cqi, 72px); padding: clamp(28px, 4.4cqi, 56px); border-radius: var(--radius-xl);
  background: var(--iron); border: 1px solid var(--iron-edge); color: var(--on-iron); }
.front-promise__copy { flex: 1.4 1 420px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.front-promise__eyebrow { margin: 0; color: var(--iron-honey); letter-spacing: .1em; font-weight: 700; }
.front-promise__lede { font-size: 17px; line-height: 27px; color: var(--on-iron-2); max-width: 620px; }
.front-promise__link { color: var(--iron-link); font-weight: 600; }
.front-promise__link:hover { color: var(--on-iron); }
.front-promise__stat { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; padding-left: clamp(0px, 3cqi, 40px); border-left: 1px solid var(--iron-rule-2); color: var(--on-iron-2); }
.front-promise__number { font: 400 clamp(48px, 5.4cqi, 72px)/1 var(--font-display); color: var(--on-iron); font-variant-numeric: tabular-nums; }
.front-promise__note { font-size: 13px; color: var(--on-iron-3); }
@media (max-width: 700px) { .front-promise__stat { border-left: 0; border-top: 1px solid var(--iron-rule-2); padding: 20px 0 0; } }

/* Recipes to try, Free and Pro, and the last call. */
.front-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 22px; }
.front-pick { display: flex; flex-direction: column; gap: 6px; }
.front-pick__photo { aspect-ratio: 4 / 3; height: auto; margin-bottom: 6px; }
.front-pick__go { margin-top: 4px; }
.front-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.front-plan { padding: clamp(22px, 2.6cqi, 32px); border-radius: var(--radius-xl); background: var(--card); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; }
.front-plan--pro { border-color: var(--persimmon); }
.front-plan__price { font: 400 36px/1.1 var(--font-display); }
.front-final { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding: clamp(24px, 4cqi, 48px) 0; }
.front-final .front-doors { justify-content: center; }

/* Free tools: /recipe-scaler and /recipe-nutrition-calculator (design: free tools handoff). Built on .upload-form, .chip,
   .ingredient and .roads; the source tabs and the units are radios in a .track, so they work without JavaScript. */
.tool-top { display: flex; flex-direction: column; gap: 22px; }
.tools-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.tools-row__label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.tool { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 28px; align-items: start; }
.tool__form, .tool__result { min-width: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.tool-form label, .tool-form .label { font-weight: 600; font-size: 14px; }
.tool-form textarea.input { min-height: 0; }
.tool-form .input:focus-visible, .track__option:has(input:focus-visible) { outline: 2px solid var(--persimmon); outline-offset: 2px; }
.input--url { height: 52px; border-radius: 12px; }
.input--servings { width: 112px; height: 52px; font-variant-numeric: tabular-nums; }
.input--error { border: 2px solid var(--persimmon); }
.field-error { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--persimmon); margin: 0; }
.tabular { font-variant-numeric: tabular-nums; }

.track { display: flex; gap: 4px; padding: 4px; border-radius: var(--radius-pill); background: var(--linen); }
.track__option { flex: 1 1 0; position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 14px;
  border-radius: var(--radius-pill); font-size: 14px; line-height: 18px; font-weight: 600; color: var(--ink); text-align: center; text-wrap: balance; cursor: pointer; }
.track__option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.track__option:has(input:checked) { background: var(--ink); color: var(--on-ink); }
.source-tabs { margin-bottom: 12px; }
.tool-form:has(#source-link:checked) .source__paste, .tool-form:has(#source-paste:checked) .source__link { display: none; }
.source__paste, .source__link { display: flex; flex-direction: column; gap: var(--space-2); }

.tool-example { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tool-example__pill { padding: 3px 10px; border-radius: var(--radius-pill); background: var(--linen); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.tool-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-top: var(--space-2); }
.tool-controls__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tool-controls__go { height: 52px; padding: 0 28px; font-size: 16px; font-weight: 600; }
.select { position: relative; display: inline-flex; }
.select .input { appearance: none; height: 52px; padding-right: 40px; }
.select .icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }

.tool-summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-md); }
.tool-summary__text { flex: 1; min-width: 0; }
.tool-summary__title { margin: 0; font-size: 15px; line-height: 20px; font-weight: 600; }
.tool-summary__detail { margin: 0; font-size: 13px; line-height: 18px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-summary__edit { min-height: 44px; padding: 0 18px; }

.tool-card { display: flex; flex-direction: column; gap: 22px; padding: 28px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); min-width: 0; }
.result-placeholder { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 320px; padding: 28px; border: 1.5px dashed var(--dash); border-radius: var(--radius-lg); }
.result-placeholder__title, .tool-loading__title { margin: 0; font: 400 26px/30px var(--font-display); }
.result-placeholder p:last-child { font-size: 15px; line-height: 22px; }
.tool-eyebrow { margin: 0; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
#result-title:focus { outline: none; }

.nutrition-result__from { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.nutrition-result__from p { margin: 0; }
.nutrition-result__thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.nutrition-result__name { font: 500 22px/26px var(--font-display); }
.confidence { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.confidence__meter { display: inline-flex; gap: 3px; }
.confidence__meter span { width: 22px; height: 8px; border-radius: var(--radius-pill); background: var(--rule-strong); }
.confidence__meter span.is-filled { background: var(--ink); }
.confidence__word { font: 500 26px/30px var(--font-display); }
.confidence__note { margin: -10px 0 0; font-size: 15px; line-height: 22px; color: var(--ink-soft); }
.nutrients { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: 1px; margin: 0; background: var(--rule);
  border: 1px solid var(--rule); border-radius: var(--radius-md); overflow: hidden; }
.nutrients div { padding: 14px 16px; background: var(--paper); }
.nutrients dt { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--muted); }
.nutrition-result { container-type: inline-size; }
.nutrients dd { margin: 0; font: 500 clamp(30px, 6.4cqi, 44px)/1.1 var(--font-display); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.nutrients__unit { margin-left: 4px; font: 600 15px/1 var(--font-sans); color: var(--muted); }
.unmatched { display: flex; flex-direction: column; gap: 10px; }
.unmatched h3 { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; }
.unmatched ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.unmatched li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 14px; border-radius: 12px; background: var(--linen);
  font-size: 15px; line-height: 21px; font-weight: 600; }
.unmatched p { margin: 0; }
.breakdown { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.breakdown summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.breakdown summary::-webkit-details-marker { display: none; }
.breakdown summary:focus-visible { outline: 2px solid var(--persimmon); outline-offset: 2px; }
.breakdown__hide, .breakdown[open] .breakdown__see { display: none; }
.breakdown[open] .breakdown__hide { display: inline; }
.breakdown[open] summary .icon { transform: rotate(180deg); }
.breakdown__table { padding-bottom: 12px; }
.breakdown__head { display: flex; justify-content: space-between; padding: 8px 0; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); }
.breakdown__row { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding: 8px 0; border-top: 1px solid var(--rule); }
.breakdown__line { font-size: 15px; line-height: 21px; font-weight: 600; }
.breakdown__food { font-size: 13px; line-height: 18px; color: var(--muted); }
.breakdown__kcal { grid-row: span 2; align-self: center; text-align: right; }
.breakdown__total .breakdown__line { font-weight: 600; }
.fixes { list-style: none; margin: 0; padding: 0; counter-reset: fix; }
.fixes li { display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; row-gap: 4px; padding: 12px 0; border-top: 1px solid var(--rule); counter-increment: fix; }
.fixes li::before { content: counter(fix); grid-row: span 3; font: italic 400 22px/24px var(--font-display); color: var(--persimmon); }
.fixes strong, .fixes .muted { grid-column: 2; }
.fixes__lines { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.fixes__lines span { padding: 4px 10px; border-radius: var(--radius-pill); background: var(--linen); font-size: 14px; line-height: 20px; font-weight: 600; }

.link-result__photo { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.link-result__photo img { width: 100%; height: clamp(200px, 30vw, 280px); object-fit: cover; border-radius: var(--radius-md); }
.link-result__photo figcaption { font-size: 12px; }
.link-result__credit { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 17px; }
.link-result__avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--linen); display: inline-flex; align-items: center; justify-content: center;
  font: italic 400 16px/1 var(--font-display); color: var(--persimmon); }
.link-result__title { margin: 0; font: 500 32px/36px var(--font-display); }
.link-result__subtitle { margin: 0; font: italic 400 20px/26px var(--font-display); color: var(--ink-soft); }
.link-result__actions { display: flex; flex-direction: column; gap: 10px; }
.link-result__actions .button--ghost { min-height: 52px; }
.center { text-align: center; }
.link-state__title { margin: 0; font: 400 28px/32px var(--font-display); }
.link-state__body { margin: 0; font-size: 16px; line-height: 24px; color: var(--ink-soft); }
.tool-loading__photo { height: 200px; border-radius: var(--radius-md); background: var(--placeholder); }
.tool-loading__bar { height: 14px; border-radius: var(--radius-pill); background: var(--linen); }
.tool-loading__bar--short { width: 60%; }
.tool-loading > * { margin: 0; }

@media (max-width: 600px) {
  .tool-form { padding: 20px; }
  .tool-card { padding: 20px; }
  .result-placeholder { display: none; }
  .nutrients { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================================================
   Recipes you host (docs/design/canvas/hosted_recipes): the StoveTab recipe page for an upload (.rp-upload),
   the hosted page (.hosted-*), its cook page (.hcook), the share dialog (.share-*) and the gate pages
   (.gate). Tokens are the redesign's; --scrim is new, behind the dialog and the phone sheet.
   ========================================================================================================== */
:root { --scrim: rgba(35, 28, 23, .45); }
@media (prefers-color-scheme: dark) { :root { --scrim: rgba(0, 0, 0, .6); } }

.round-button { width: 46px; height: 46px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: var(--radius-pill);
  border: 1px solid var(--rule-strong); background: var(--card); color: var(--ink); text-decoration: none; cursor: pointer; list-style: none; }
.round-button::-webkit-details-marker { display: none; }
.round-button:hover { color: var(--persimmon); }
.pill-button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--rule-strong);
  background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pill-button:hover { color: var(--persimmon); }
.access-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border-radius: var(--radius-pill); border: 1px solid var(--rule-strong);
  background: var(--card); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.access-chip--small { height: 30px; border-color: var(--rule); align-self: flex-start; }
/* A segmented control of links (scale, units, method): linen track, the choice in ink. */
.seg { display: inline-flex; flex-wrap: wrap; padding: 3px; border-radius: var(--radius-pill); background: var(--linen); }
.seg__option { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.seg__option[aria-current="true"] { background: var(--ink); color: var(--on-ink); }
.seg__option:focus-visible { outline: 2px solid var(--persimmon); outline-offset: -2px; }
.hosted-avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-pill); background: var(--linen); color: var(--persimmon);
  font: italic 400 18px/1 var(--font-display); }
.hosted-avatar--36 { width: 36px; height: 36px; }
.hosted-avatar--40 { width: 40px; height: 40px; font-size: 20px; }
.hosted-avatar--48 { width: 48px; height: 48px; font-size: 22px; }
.hosted-dek { font: italic 400 20px/29px var(--font-display); color: var(--ink-soft); text-wrap: pretty; }
.hosted-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.hosted-stats dt { font-size: 12px; color: var(--muted); }
.hosted-stats dd { margin: 4px 0 0; font: 400 24px/30px var(--font-display); }
.hosted-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hosted-chips li { padding: 6px 12px; border-radius: var(--radius-pill); background: var(--linen); font-size: 14px; }
.hosted-eyebrow { letter-spacing: .08em; margin: 0; }

/* 1. The StoveTab recipe page for an upload. */
.rp-upload { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: start; padding-top: 24px; }
.rp-upload--no-photo { grid-template-columns: 1fr; width: 100%; max-width: 860px; margin-inline: auto; } /* the .rp-body column below: one left edge */
.rp-upload__media { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rp-upload__frame { position: relative; }
.rp-upload__photo { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-xl); }
.rp-upload__chip { position: absolute; top: 14px; left: 14px; }
.rp-upload__main { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; min-width: 0; }
.rp-upload__credit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 16px; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; color: var(--ink); text-decoration: none; }
.rp-upload__who { flex: 1 1 140px; display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.rp-upload__visit, .hosted-source__out { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--persimmon); white-space: nowrap; }
.rp-upload__title { font: 400 52px/56px var(--font-display); letter-spacing: -.01em; text-wrap: balance; }
.rp-upload__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.rp-upload__actions { display: flex; flex-direction: column; gap: 10px; }
.rp-upload__cook { min-height: 60px; font-size: 18px; }
.rp-upload__more { display: flex; flex-wrap: wrap; gap: 10px; }
.rp-upload__more > *, .rp-upload__form { flex: 1 1 140px; }
.rp-upload__more .button, .rp-upload__form .button { width: 100%; min-height: 50px; }
.rp-upload__callout { display: flex; gap: 14px; padding: 16px 18px; background: var(--linen); border-radius: 16px; font-size: 14px; line-height: 21px; color: var(--ink-soft); }
.rp-upload__quote { font: italic 400 30px/30px var(--font-display); color: var(--persimmon); }
@media (max-width: 600px) {
  .rp-upload { gap: 28px; padding-top: 8px; }
  .rp-upload__photo { aspect-ratio: 1; border-radius: var(--radius-lg); }
  .rp-upload__title { font-size: 38px; line-height: 42px; }
  .hosted-stats { grid-template-columns: repeat(2, 1fr); }
}

/* 2. The hosted page. */
.hosted-body { min-height: 100vh; }
.hosted-bar { position: sticky; top: 0; z-index: 5; background: var(--linen); border-bottom: 1px solid var(--rule); }
.hosted-bar__row { max-width: 1180px; margin: 0 auto; height: 56px; padding: 0 28px; display: flex; align-items: center; gap: 12px; }
.hosted-bar .button { min-height: 36px; height: 36px; font-size: 14px; }
.hosted-bar .round-button { width: 36px; height: 36px; }
.hosted-bar__spacer { flex: 1 1 auto; }
.hosted-bar__narrow { display: none !important; }
.hosted-bar__yours { background: var(--ink); color: var(--on-ink); }
.hosted-bar__more { position: relative; }
.hosted-bar__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; min-width: 220px; padding: 6px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-md);
  box-shadow: 0 16px 32px -20px rgba(42, 33, 28, .4); }
.hosted-bar__menu-item { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--persimmon); font-weight: 600; cursor: pointer; }
.hosted-bar__menu-item:hover { background: var(--linen); }
.hosted-mast { border-bottom: 1px solid var(--rule); }
.hosted-mast__row { max-width: 1180px; margin: 0 auto; padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hosted-mast__kitchen { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hosted-mast__name { font: italic 400 28px/32px var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hosted-mast__on { display: flex; align-items: flex-end; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.hosted-mast__label { margin-bottom: 4px; }
.hosted-mast__logo .logo { --logo: 13px; }
.hosted-flashes { max-width: 1180px; margin: 0 auto; padding: 20px 28px 0; display: flex; flex-direction: column; gap: 8px; }
.hosted-main { max-width: 1180px; margin: 0 auto; padding: 56px 28px 88px; display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.hosted-article { flex: 1 1 640px; min-width: 0; max-width: 780px; display: flex; flex-direction: column; gap: 28px; }
.hosted-intro { display: flex; flex-direction: column; gap: 16px; }
.hosted-tags { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--persimmon); }
.hosted-source { align-self: flex-start; max-width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; color: var(--ink); text-decoration: none; }
.hosted-source__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 15px; }
.hosted-title { font: 400 60px/64px var(--font-display); letter-spacing: -.01em; text-wrap: pretty; }
.hosted-byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hosted-byline__text { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.hosted-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hosted-actions__main { flex: 1 1 auto; min-height: 46px; }
.hosted-actions__icons { display: flex; gap: 10px; }
.hosted-hero { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.hosted-hero__img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-xl); }
.hosted-add-photo { min-height: 64px; display: flex; align-items: center; gap: 14px; padding: 12px 18px; border: 1.5px dashed var(--dash); border-radius: 16px; color: var(--ink); text-decoration: none; }
.hosted-add-photo__icon { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-pill); background: var(--linen); color: var(--persimmon); }
.hosted-add-photo__text { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.hosted-notes { display: flex; flex-direction: column; gap: 14px; }
.hosted-notes__title { font: italic 400 28px/32px var(--font-display); }
.hosted-notes__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.hosted-notes__list li { display: flex; gap: 14px; font-size: 17px; line-height: 27px; text-wrap: pretty; }
.hosted-notes__list li::before { content: ""; width: 6px; height: 6px; flex: none; margin-top: 11px; border-radius: var(--radius-pill); background: var(--persimmon); }
.hosted-card { scroll-margin-top: 80px; display: flex; flex-direction: column; gap: 26px; padding: 40px 44px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-xl); }
.hosted-card__head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.hosted-card__thumb { width: 104px; height: 104px; flex: none; object-fit: cover; border-radius: 14px; }
.hosted-card__words { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hosted-card__title { font: 400 36px/40px var(--font-display); text-wrap: pretty; }
.hosted-card__tools { display: flex; gap: 8px; }
.hosted-card__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.hosted-card__scale { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hosted-card__part { display: flex; flex-direction: column; gap: 6px; }
.hosted-card__method-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.hosted-ingredients, .hosted-steps { margin: 0; padding: 0; list-style: none; }
.hosted-ingredients__group, .hosted-steps__section { margin: 14px 0 4px; font: italic 400 21px/26px var(--font-display); }
.hosted-steps__section { font-size: 22px; }
.hosted-ingredient label { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 24px; cursor: pointer; }
.hosted-ingredient__amount { min-width: 84px; font-weight: 600; }
.hosted-check { appearance: none; width: 18px; height: 18px; flex: none; margin: 3px 0 0; border: 1.5px solid var(--dash); border-radius: 6px; background: var(--card); display: grid; place-content: center; cursor: pointer; }
.hosted-check:checked { background: var(--sage); border-color: var(--sage); }
.hosted-check:checked::after { content: ""; width: 9px; height: 5px; margin-top: -2px; border-left: 2px solid var(--on-ink); border-bottom: 2px solid var(--on-ink); transform: rotate(-45deg); }
.hosted-ingredient:has(.hosted-check:checked) label > span { color: var(--muted); text-decoration: line-through; transition: color .15s; }
.hosted-step { display: grid; grid-template-columns: 36px 1fr; gap: 6px; padding: 12px 0; font-size: 17px; line-height: 28px; scroll-margin-top: 80px; }
.hosted-step__n { font: 400 26px/28px var(--font-display); color: var(--persimmon); }
.hosted-step:target { background: var(--honey-bg); border-radius: 8px; }
.hosted-nutrition { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); margin: 0; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.hosted-nutrition div { display: flex; flex-direction: column-reverse; gap: 2px; padding: 12px 14px; border-right: 1px solid var(--rule); }
.hosted-nutrition div:last-child { border-right: 0; }
.hosted-nutrition dd { margin: 0; font: 400 22px/26px var(--font-display); }
.hosted-nutrition dt { font-size: 12px; color: var(--muted); }
.hosted-card__foot { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--rule); }
.hosted-card__cook { min-height: 52px; font-size: 16px; }
.hosted-rail { flex: 0 1 300px; min-width: 0; position: sticky; top: 76px; display: flex; flex-direction: column; gap: 20px; padding: 20px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.hosted-rail .yours { padding: 0; border: 0; background: none; }
.hosted-rail .star { width: 30px; height: 30px; font-size: 26px; }
.hosted-rail .note-form .input { min-height: 84px; height: auto; padding: 10px 12px; background: var(--paper); }
.hosted-rail__group { display: flex; flex-direction: column; gap: 8px; }
.hosted-rail__form .button, .hosted-rail .board-picker summary { width: 100%; min-height: 44px; }
.hosted-rail__who { display: flex; align-items: center; gap: 10px; }
.hosted-rail__log { padding-top: 12px; border-top: 1px solid var(--rule); }
.hosted-rail--keep { background: var(--linen); border: 0; padding: 22px; }
.hosted-rail__keep-title { font: 400 24px/28px var(--font-display); }
.hosted-sheet__head, .hosted-sheet__pills, .hosted-sheet__delete { display: none !important; }
.hosted-scrim { position: fixed; inset: 0; z-index: 20; background: var(--scrim); }
.hosted-foot { border-top: 1px solid var(--rule); }
.hosted-foot__row { max-width: 1180px; margin: 0 auto; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: 14px; }
@media (max-width: 760px) {
  .hosted-bar__row { height: 52px; padding: 0 16px; gap: 8px; }
  .hosted-bar__wide { display: none !important; }
  .hosted-bar__narrow { display: inline-flex !important; }
  .hosted-mast__row { padding: 14px 16px; }
  .hosted-mast__name { font-size: 22px; line-height: 26px; }
  .hosted-mast__label { display: none; }
  .hosted-flashes { padding: 16px 16px 0; }
  .hosted-main { padding: 28px 16px 56px; gap: 40px; }
  .hosted-title { font-size: 38px; line-height: 42px; }
  .hosted-hero__img { aspect-ratio: 4 / 5; border-radius: 16px; }
  .hosted-stats { grid-template-columns: repeat(2, 1fr); }
  .hosted-card { padding: 22px 18px; border-radius: var(--radius-lg); }
  .hosted-card__title { font-size: 28px; line-height: 32px; }
  .hosted-rail { position: static; flex-basis: 100%; }
  /* The owner's rail is the Yours sheet on a phone, opened from the owner bar. */
  .hosted-rail--own { display: none; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 21; max-height: 88vh; overflow-y: auto; gap: 18px; padding: 10px 18px 24px;
    background: var(--paper); border: 0; border-radius: 26px 26px 0 0; box-shadow: 0 -12px 32px rgba(35, 28, 23, .18); }
  .hosted-rail--own.is-open { display: flex; }
  .hosted-rail--own .hosted-sheet__head { display: grid !important; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; }
  .hosted-sheet__grab { grid-column: 1 / -1; justify-self: center; width: 40px; height: 5px; border-radius: var(--radius-pill); background: var(--rule-strong); }
  .hosted-sheet__title { font: 400 24px/28px var(--font-display); }
  .hosted-sheet__close { width: 36px; height: 36px; }
  .hosted-rail--own .hosted-sheet__pills { display: flex !important; gap: 10px; }
  .hosted-sheet__pills .button { flex: 1; min-height: 48px; }
  .hosted-rail--own .hosted-sheet__delete { display: inline-flex !important; min-height: 48px; font-size: 15px; }
  .hosted-rail--own .star { width: 44px; height: 44px; }
}

/* 3. The cook page (CookPage.dc.html): its own layout (.hcook) on cook mode's own classes and behaviour. The panel
   (cook/show) never gets .hcook, so none of this reaches it. Desktop: header 76px, a 420px ingredients rail beside
   the step, the footer's dots with Back and "Done, next step". Phone: two header rows; the rail is the Ingredients tab. */
.hosted-body--cook { overflow: hidden; }
.hcook { height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--paper); }
.hcook-head { flex: none; height: 76px; padding: 0 28px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--rule); }
.hcook-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.hcook-head__rule { flex: none; width: 1px; height: 32px; background: var(--rule); }
.hcook-head__thumb { width: 44px; height: 44px; flex: none; object-fit: cover; border-radius: 10px; }
.hcook-head__words { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hcook-head__title { font: 500 21px/25px var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hcook-head__by { font-size: 13px; color: var(--muted); }
.hcook-head__by strong { color: var(--ink); }
.hcook-tabs { flex: none; display: flex; gap: 4px; padding: 4px; border-radius: var(--radius-pill); background: var(--linen); }
.hcook-tab { height: 36px; padding: 0 16px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.hcook-tab[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.hcook-tab--phone { display: none; }
.hcook-mic { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: var(--radius-pill); border: 1px solid var(--rule-strong); background: var(--card); color: var(--ink); }
.hcook-mic[aria-pressed="true"] { background: #A9482A; border-color: #A9482A; color: #FFFCF7; }
.hcook-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 420px 1fr; }
.hcook-rail { min-height: 0; overflow-y: auto; padding: 24px 28px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 16px; }
.hcook-rail .ingredients { margin: 0; padding: 0; list-style: none; }
.hcook-rail > * { order: 3; }
.hcook-rail > .cook-settings { order: 0; }
.hcook-rail > .hcook-rail__eyebrow { order: 1; margin: 8px 0 0; letter-spacing: .08em; }
.hcook-rail > .ingredients { order: 2; }
.hcook-rail > .hcook-all { order: 4; }
.hcook-all { display: none; }
.hcook-main { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.hcook-main > .timers, .hcook-main > .cook__flash { margin: 16px 72px 0; }
.hcook .cook-panel { flex: 1 0 auto; overflow: visible; padding: 56px 72px 32px; }
.hcook .cook-panel > * { max-width: 860px; }
.hcook-now { gap: 24px; }
.hcook-now__count { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--honey-ink); }
.hcook-now__chip { padding: 3px 8px; border-radius: 4px; background: var(--honey-bg); }
.hcook-now__text { font: 400 44px/58px var(--font-display); text-wrap: pretty; overflow-wrap: anywhere; }
.hcook-now__timer:empty { display: none; }
.hcook-now__timer .step__timer { display: inline-flex; min-height: 48px; font-size: 15px; font-weight: 600; }
.hcook-uses { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.hcook-uses .eyebrow { margin: 0; letter-spacing: .08em; }
.hcook-uses ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hcook-uses li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; line-height: 22px; }
.hcook-uses strong { flex: none; min-width: 92px; font-weight: 600; }
.hcook-coming { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px dashed var(--rule-strong); }
.hcook-coming .eyebrow { margin: 0; letter-spacing: .08em; }
.hcook-coming p { font-size: 15px; line-height: 22px; color: var(--muted); }
.hcook-see-all { display: none; }
.hcook .seg__option[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.hcook .seg__option { border: 0; background: transparent; font-family: inherit; }
.hcook-foot { flex-direction: row; align-items: center; gap: 18px; padding: 16px 28px; }
.hcook-dots { flex: 1 1 auto; }
.hcook-nav .button { min-height: 56px; }
.hcook-nav__back { min-width: 140px; }
.hcook-nav__next { min-width: 320px; }
/* Get ready and Notes, in the page's measure. */
.hcook .cook-panel__title { font: 400 40px/44px var(--font-display); }
.hcook .prep__progress .progress { height: 6px; }
.hcook .prep-item { min-height: 48px; align-items: center; padding: 0; border-bottom: 1px solid var(--rule); }
.hcook .cook-panel__foot { position: static; margin: 0; padding: 16px 0 0; background: none; }
.hcook .cook-section .eyebrow { letter-spacing: .08em; }
/* Hands-free: cast iron (the panel's .cook.is-handsfree rules), the rail out of the way and the step larger. */
.hcook.is-handsfree:not(.is-finished)[data-tab="cook"] .hcook-rail { display: none; }
.hcook.is-handsfree:not(.is-finished)[data-tab="cook"] .hcook-body { grid-template-columns: 1fr; }
.hcook.is-handsfree:not(.is-finished)[data-tab="cook"] .hcook-head { border-color: var(--iron-rule); }
.hcook.is-handsfree:not(.is-finished)[data-tab="cook"] .hcook-head__by, .hcook.is-handsfree:not(.is-finished)[data-tab="cook"] .hcook-head__by strong { color: var(--on-iron-2); }
.hcook.is-handsfree:not(.is-finished)[data-tab="cook"] .hcook-back { color: var(--on-iron); }
.hcook.is-handsfree:not(.is-finished)[data-tab="cook"] .hcook-tabs { background: var(--iron-rule); }
.hcook.is-handsfree:not(.is-finished)[data-tab="cook"] .hcook-tab { color: var(--on-iron-3); }
.hcook.is-handsfree:not(.is-finished)[data-tab="cook"] .hcook-tab[aria-selected="true"] { background: var(--on-iron); color: var(--iron); }
.hcook.is-handsfree:not(.is-finished)[data-tab="cook"] .hcook-listening:not([hidden]) { padding: 32px 72px 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
.hcook.is-handsfree:not(.is-finished)[data-tab="cook"] .hcook-now__count { color: var(--iron-honey); }
.hcook.is-handsfree:not(.is-finished)[data-tab="cook"] .hcook-now__chip { background: none; padding: 0; }
.hcook.is-handsfree:not(.is-finished)[data-tab="cook"] .hcook-now__text { font-size: 56px; line-height: 70px; }
.hcook.is-handsfree:not(.is-finished)[data-tab="cook"] .hcook-uses { background: transparent; border-color: var(--iron-rule-2); }
.hcook.is-handsfree:not(.is-finished)[data-tab="cook"] .hcook-coming p { color: var(--on-iron-3); }
.hcook.is-handsfree:not(.is-finished)[data-tab="cook"] .handsfree__commands li { min-height: 36px; display: inline-flex; align-items: center; }
/* Finish: two columns on a desktop, the hero photo on the left. */
.hcook .finished { margin: -56px -72px -32px; display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 18px 48px; max-width: none; }
.hcook .finished > :not(.finished__hero) { grid-column: 2; margin: 0 72px 0 0; }
.hcook .finished > :nth-child(2) { margin-top: 56px; }
.hcook .finished__hero { grid-column: 1; grid-row: 1 / span 20; position: sticky; top: 0; height: calc(100dvh - 250px); min-height: 360px; }
.hcook .finished__words { padding: 40px 48px; gap: 10px; }
.hcook.is-finished[data-tab="cook"] .hcook-rail { display: none; }
.hcook.is-finished[data-tab="cook"] .hcook-body { grid-template-columns: 1fr; }
.hcook.is-finished[data-tab="cook"] .hcook-main > .timers { margin-left: 28px; margin-right: 28px; }
.hcook .finished__text { font-size: 56px; line-height: 60px; color: #F3EADD; }
.hcook .star-input label { width: 44px; font-size: 30px; }
@media (max-width: 760px) {
  .hcook-head { height: auto; padding: 10px 16px 8px; display: grid; grid-template-columns: 40px 1fr 40px; gap: 8px 10px; }
  .hcook-back { width: 40px; height: 40px; justify-content: center; border-radius: var(--radius-pill); border: 1px solid var(--rule-strong); background: var(--card); }
  .hcook-back__label, .hcook-head__rule, .hcook-head__thumb { display: none; }
  .hcook-head__words { flex-direction: column-reverse; gap: 1px; }
  .hcook-head__title { font-size: 18px; line-height: 22px; }
  .hcook-head__by { font-size: 12px; }
  .hcook-mic { grid-column: 3; grid-row: 1; }
  .hcook-tabs { grid-column: 1 / -1; padding: 0; background: none; overflow-x: auto; scrollbar-width: none; }
  .hcook-tab { height: 30px; padding: 0 11px; font-size: 13px; }
  .hcook-tab--phone { display: inline-block; }
  .hcook-body { display: flex; flex-direction: column; }
  .hcook-rail { display: none; flex: 1 1 auto; border-right: 0; padding: 18px 16px; }
  .hcook[data-tab="ingredients"] .hcook-rail { display: flex; }
  .hcook[data-tab="ingredients"] .hcook-main { display: none; }
  .hcook[data-tab="ingredients"] .hcook-all { display: block; }
  .hcook-main { flex: 1 1 auto; }
  .hcook-main > .timers, .hcook-main > .cook__flash { margin: 12px 16px 0; }
  .hcook .cook-panel { padding: 22px 16px 18px; }
  .hcook-now__text { font-size: 27px; line-height: 37px; }
  .hcook-see-all { display: inline-flex; align-self: flex-start; }
  .hcook.is-handsfree:not(.is-finished)[data-tab="cook"] .hcook-now__text { font-size: 34px; line-height: 44px; }
  .hcook.is-handsfree:not(.is-finished)[data-tab="cook"] .hcook-listening:not([hidden]) { padding: 18px 16px 0; flex-direction: column; align-items: flex-start; }
  .hcook-foot { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 16px 16px; }
  .hcook-nav .button { min-height: 52px; }
  .hcook-nav__back { min-width: 96px; flex: none; }
  .hcook-nav__next { min-width: 0; flex: 1; }
  .hcook .cook-panel__title { font-size: 30px; line-height: 34px; }
  .hcook .finished { margin: -22px -16px -18px; display: flex; }
  .hcook .finished > :not(.finished__hero) { margin: 0 16px; }
  .hcook .finished > :nth-child(2) { margin-top: 0; }
  .hcook .finished__hero { position: relative; height: 220px; min-height: 0; }
  .hcook .finished__words { padding: 18px 22px; }
  .hcook .finished__text { font-size: 30px; line-height: 34px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hcook .ingredient, .hcook .step__text, .hcook .check { transition: color .15s, background-color .15s; }
}

/* 4. Who can see it: a dialog on desktop, a bottom sheet on a phone. */
.share-dialog { width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 96px); margin: 72px auto auto; padding: 0; border: 1px solid var(--rule); border-radius: var(--radius-xl);
  background: var(--paper); color: var(--ink); box-shadow: 0 16px 32px -20px rgba(42, 33, 28, .4); }
.share-dialog { font-size: 16px; line-height: 24px; font-weight: 400; text-align: left; } /* inside a library card's .row.small too */
.share-dialog::backdrop { background: var(--scrim); }
.share-dialog__inner { display: flex; flex-direction: column; gap: 20px; padding: 28px 30px; }
.share-dialog__grab { display: none; }
.share-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.share-dialog__head .round-button { width: 40px; height: 40px; }
.share-dialog__title { font: 400 30px/34px var(--font-display); }
.share-dialog__recipe { display: flex; align-items: center; gap: 12px; min-width: 0; }
.share-dialog__thumb { width: 36px; height: 36px; flex: none; object-fit: cover; border-radius: 10px; }
.share-dialog__thumb--empty { display: flex; align-items: center; justify-content: center; background: var(--linen); color: var(--persimmon); font: italic 400 18px/1 var(--font-display); }
.share-dialog__why { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: var(--linen); border-radius: 16px; font-size: 14px; line-height: 21px; }
.share-dialog__why-title { font: 400 20px/25px var(--font-display); }
.share-options { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
.share-option { display: flex; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--rule-strong); border-radius: 14px; cursor: pointer; }
.share-option:has(:checked) { border: 2px solid var(--ink); padding: 13px 15px; }
.share-option__radio { appearance: none; width: 20px; height: 20px; flex: none; margin: 2px 0 0; border: 1.5px solid var(--dash); border-radius: var(--radius-pill); background: var(--card); cursor: pointer; }
.share-option__radio:checked { border: 6px solid var(--ink); }
.share-option__body { display: flex; flex-direction: column; gap: 4px; }
.share-option__name { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.share-option__say { font-size: 14px; line-height: 21px; color: var(--muted); }
.share-option--off { opacity: .72; border-style: dashed; cursor: not-allowed; }
.share-link { display: flex; flex-direction: column; gap: 10px; margin-left: 32px; }
.share-link__row { display: flex; gap: 8px; }
.share-link__url { flex: 1 1 auto; min-width: 0; height: 44px; background: var(--paper); text-overflow: ellipsis; font-size: 14px; }
.share-link__copy { flex: none; }
.share-link__reset { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.share-link__confirm { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: var(--card); border: 1px solid var(--rule-strong); border-radius: 14px; }
.share-link__done { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 600; }
.share-dialog__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--rule); }
.share-dialog__done { min-height: 46px; background: var(--ink); color: var(--on-ink); }
.share-dialog__done:hover { background: var(--ink-soft); color: var(--on-ink); }
@media (max-width: 600px) {
  .share-dialog { width: 100%; max-width: 100%; max-height: min(740px, 92dvh); margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .share-dialog__inner { padding: 18px 16px 22px; }
  .share-dialog__grab { display: block; align-self: center; width: 40px; height: 5px; border-radius: var(--radius-pill); background: var(--rule-strong); }
  .share-dialog__title { font-size: 26px; line-height: 30px; }
  .share-link { margin-left: 0; }
  .share-link__row { flex-direction: column; }
}

/* 5. "This recipe is private" and "This recipe was deleted". */
.gate { max-width: 560px; margin: 0 auto; padding: 96px 0 120px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.gate__mark { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-pill); background: var(--linen); color: var(--persimmon); }
.gate__title { font: 400 48px/52px var(--font-display); text-wrap: balance; }
.gate__body { color: var(--ink-soft); font-size: 17px; line-height: 26px; }
.gate__card { width: 100%; display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); text-align: left; }
@media (max-width: 600px) { .gate { padding: 48px 0 72px; } .gate__title { font-size: 34px; line-height: 38px; } }
