/* Spoonelo design tokens. Names describe roles, so the same values can drive
   the web, a Capacitor shell or a Flutter ThemeExtension. See design/DESIGN-NOTES.md. */

@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("./fonts/bricolage-grotesque-latin.woff2") format("woff2-variations"), url("./fonts/bricolage-grotesque-latin.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: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("./fonts/bricolage-grotesque-latin-ext.woff2") format("woff2-variations"), url("./fonts/bricolage-grotesque-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url("./fonts/dm-sans-latin.woff2") format("woff2-variations"), url("./fonts/dm-sans-latin.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: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url("./fonts/dm-sans-latin-ext.woff2") format("woff2-variations"), url("./fonts/dm-sans-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  /* Surfaces: sage-tinted neutrals */
  --c-canvas: #f3f5ef;
  --c-surface: #fffffd;
  --c-surface-sunken: #e9eee6;
  --c-surface-raised: #ffffff;
  --c-surface-tint: #f8faf5;
  --c-ink: #17271d;
  --c-ink-muted: #4a5b50;
  --c-ink-subtle: #627168;
  --c-line: #dbe3d8;
  --c-line-strong: #7a8f7e;
  --c-edge: rgb(255 255 255 / 0);
  /* Brand: basil for actions and "done" */
  --c-brand: #2b5a40;
  --c-brand-hover: #234c35;
  --c-brand-pressed: #1c3f2b;
  --c-on-brand: #ffffff;
  --c-brand-soft: #dfecdf;
  --c-on-brand-soft: #1f4a32;
  --c-brand-glow: rgb(43 90 64 / .22);
  /* Accent: apricot for important things, the diary and timers */
  --c-accent: #f29e6b;
  --c-accent-strong: #c4612c;
  --c-on-accent: #3b1806;
  --c-accent-soft: #fde8da;
  --c-on-accent-soft: #8a3d14;
  /* Semantics */
  --c-success: #2f7a4f;
  --c-danger: #b4382c;
  --c-danger-soft: #fbe3df;
  --c-warning: #9a6512;
  --c-warning-soft: #fbefd5;
  --c-info: #2a6f93;
  --c-info-soft: #def0f8;
  --c-focus: #1f6fd1;
  --c-scrim: rgb(10 22 15 / .42);
  --c-person-1: #2b5a40; --c-person-1-soft: #d6e9da;
  --c-person-2: #b4532a; --c-person-2-soft: #fbe0cf;
  /* Nutrition, always paired with a text label */
  --c-kcal: #e07a3f;
  --c-protein: #c0457a;
  --c-carbs: #c99512;
  --c-fat: #6a58cc;
  --c-fiber: #3a8d5a;
  --c-water: #2f86b5;
  --c-ring-track: #e4ebe2;

  /* Typography */
  --font-display: "Bricolage Grotesque", "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ui: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(2rem, 1.55rem + 2.2vw, 3.25rem);
  --fs-headline: clamp(1.5rem, 1.3rem + 1.1vw, 2.25rem);
  --fs-title-l: clamp(1.25rem, 1.16rem + .5vw, 1.5rem);
  --fs-title-m: 1.125rem;
  --fs-body-l: 1.0625rem;
  --fs-body: 1rem;
  --fs-label: .875rem;
  --fs-caption: .8125rem;
  --fs-micro: .6875rem;
  --tracking-display: -.025em;
  --tracking-title: -.012em;
  --tracking-micro: .07em;

  /* Size, radius, elevation */
  --tap: 44px;
  --topbar-h: 56px;
  --tabbar-h: 64px;
  --rail-w: 88px;
  --sidebar-w: 248px;
  --content-max: 720px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;
  --shadow-1: 0 1px 2px rgb(23 45 31 / .06), 0 1px 1px rgb(23 45 31 / .03);
  --shadow-2: 0 1px 3px rgb(23 45 31 / .06), 0 8px 24px -8px rgb(23 45 31 / .14);
  --shadow-3: 0 4px 10px rgb(23 45 31 / .06), 0 18px 40px -12px rgb(23 45 31 / .22);
  --shadow-4: 0 8px 20px rgb(23 45 31 / .08), 0 32px 72px -16px rgb(23 45 31 / .32);

  /* Motion */
  --dur-1: 90ms; --dur-2: 160ms; --dur-3: 240ms; --dur-4: 360ms; --dur-5: 560ms;
  --ease-standard: cubic-bezier(.2, 0, 0, 1);
  --ease-enter: cubic-bezier(.05, .7, .1, 1);
  --ease-exit: cubic-bezier(.3, 0, .8, .15);
  --spring-snappy: linear(0, .025 2.8%, .087 5.6%, .171 8.3%, .453 16.7%, .54 19.4%, .618 22.2%, .687 25%, .747 27.8%, .799 30.6%, .842 33.3%, .877 36.1%, .907 38.9%, .93 41.7%, .949 44.4%, .975 50%, 1);
  --spring-bouncy: linear(0, .056 2.8%, .198 5.6%, .386 8.3%, .587 11.1%, .776 13.9%, .935 16.7%, 1.057 19.4%, 1.139 22.2%, 1.183 25%, 1.195 27.8%, 1.183 30.6%, 1.154 33.3%, 1.042 41.7%, 1.011 44.4%, .988 47.2%, .972 50%, .964 52.8%, .962 55.6%, 1);
  --spring-sheet: linear(0, .016 2.8%, .058 5.6%, .116 8.3%, .184 11.1%, .403 19.4%, .537 25%, .597 27.8%, .651 30.6%, .7 33.3%, .743 36.1%, .782 38.9%, .816 41.7%, .845 44.4%, .911 52.8%, 1);
  --spring-gentle: linear(0, .026 2.8%, .09 5.6%, .172 8.3%, .354 13.9%, .441 16.7%, .521 19.4%, .592 22.2%, .656 25%, .712 27.8%, .759 30.6%, .8 33.3%, .835 36.1%, .864 38.9%, .888 41.7%, 1);
  --dur-spring-snappy: 380ms; --dur-spring-bouncy: 660ms; --dur-spring-sheet: 400ms; --dur-spring-gentle: 690ms;
  --motion: 1;

  /* Legacy names used across the existing stylesheets */
  --page: var(--c-canvas);
  --paper: var(--c-surface);
  --ink: var(--c-ink);
  --muted: var(--c-ink-muted);
  --plum: var(--c-brand);
  --line: var(--c-line);
  --wash: var(--c-brand-soft);
  --fill: var(--c-brand);
  --fill-hover: var(--c-brand-hover);
  --fill-text: var(--c-on-brand);
  --avatar: var(--c-person-1-soft);
  --field: var(--c-surface);
  --field-line: var(--c-line-strong);
  --track: var(--c-ring-track);
  --alarm-ink: var(--c-danger);
  --alarm-fill: var(--c-danger);
  --success-ink: var(--c-success);
  --switch-off: #dce3dd;
  --switch-edge: #7c8981;
  --switch-off-thumb: #fff;
  --switch-thumb-edge: #758279;
  --switch-on: var(--c-brand);
  --switch-on-thumb: #fff;
  --water-ink: var(--c-info);
  --water-wash: var(--c-info-soft);
  --water-hover: #cde6f1;
  --water-track: #d3e4eb;
  --serif: var(--font-display);
  --sans: var(--font-ui);
}

@supports not (transition-timing-function: linear(0, 1)) {
  :root {
    --spring-snappy: cubic-bezier(.2, .9, .3, 1);
    --spring-bouncy: cubic-bezier(.34, 1.56, .64, 1);
    --spring-sheet: cubic-bezier(.22, .9, .32, 1);
    --spring-gentle: cubic-bezier(.25, .8, .3, 1);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --c-canvas: #0c1410;
  --c-surface: #131d17;
  --c-surface-sunken: #0f1813;
  --c-surface-raised: #1b2820;
  --c-surface-tint: #16221b;
  --c-ink: #e6eee7;
  --c-ink-muted: #a9b9ae;
  --c-ink-subtle: #839488;
  --c-line: #243329;
  --c-line-strong: #5b7362;
  --c-edge: rgb(255 255 255 / .06);
  --c-brand: #84d4a3;
  --c-brand-hover: #9be0b5;
  --c-brand-pressed: #6fc290;
  --c-on-brand: #072215;
  --c-brand-soft: #193726;
  --c-on-brand-soft: #b4e6c6;
  --c-brand-glow: rgb(132 212 163 / .22);
  --c-accent: #f5ac80;
  --c-accent-strong: #f5ac80;
  --c-on-accent: #2e1305;
  --c-accent-soft: #3a2317;
  --c-on-accent-soft: #f8c6a6;
  --c-success: #7fd09d;
  --c-danger: #f08a7c;
  --c-danger-soft: #3b1d19;
  --c-warning: #e7b75e;
  --c-warning-soft: #33280f;
  --c-info: #7cc3e6;
  --c-info-soft: #13303d;
  --c-focus: #7db4ff;
  --c-scrim: rgb(0 0 0 / .6);
  --c-person-1: #84d4a3; --c-person-1-soft: #1d3a29;
  --c-person-2: #f5ac80; --c-person-2-soft: #3d2618;
  --c-kcal: #f39a62;
  --c-protein: #ea7aa8;
  --c-carbs: #e6bd4d;
  --c-fat: #a296f0;
  --c-fiber: #73c792;
  --c-water: #6cbbe3;
  --c-ring-track: #213027;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .4);
  --shadow-2: 0 2px 6px rgb(0 0 0 / .35), 0 10px 28px -10px rgb(0 0 0 / .6);
  --shadow-3: 0 6px 14px rgb(0 0 0 / .4), 0 22px 48px -12px rgb(0 0 0 / .7);
  --shadow-4: 0 10px 24px rgb(0 0 0 / .45), 0 36px 80px -16px rgb(0 0 0 / .8);
  --field: var(--c-surface-sunken);
  --switch-off: #293630;
  --switch-edge: #74887c;
  --switch-off-thumb: #aabbb0;
  --switch-thumb-edge: transparent;
  --switch-on-thumb: #072215;
  --water-hover: #1b3d4c;
  --water-track: #2a4a57;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-1: 1ms; --dur-2: 120ms; --dur-3: 120ms; --dur-4: 120ms; --dur-5: 1ms;
    --dur-spring-snappy: 120ms; --dur-spring-bouncy: 120ms; --dur-spring-sheet: 160ms; --dur-spring-gentle: 120ms;
    --spring-snappy: linear(0, 1); --spring-bouncy: linear(0, 1); --spring-sheet: linear(0, 1); --spring-gentle: linear(0, 1);
    --motion: 0;
  }
}

@media (forced-colors: active) {
  :root { --c-brand: Highlight; --c-on-brand: HighlightText; --c-focus: Highlight; --c-line: CanvasText; --c-line-strong: CanvasText; }
}

:root[data-theme="dark"] select:not([multiple]) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23bce7cf' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@supports (appearance: base-select) and selector(select::picker(select)) {
  :root[data-theme="dark"] select:not([multiple]) { background-image: none; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; color: var(--ink); background: var(--page); font: 1rem/1.6 var(--sans); }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
select:not([multiple]) {
  appearance: none;
  max-inline-size: 100%;
  min-block-size: 44px;
  padding: .48rem 2.35rem .48rem .75rem;
  border: 1px solid var(--field-line);
  border-radius: .55rem;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23355740' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .8rem center;
  color: var(--ink);
  font: 1rem/1.3 var(--sans);
  cursor: pointer;
}
select:not([multiple]):hover, select:not([multiple]):focus { border-color: var(--plum); }
select:focus:not(:focus-visible) { outline: none; }
select:focus-visible { outline-offset: 2px; }
@supports (appearance: base-select) and selector(select::picker(select)) {
  select:not([multiple]), select:not([multiple])::picker(select) { appearance: base-select; }
  select:not([multiple]) { align-items: center; justify-content: space-between; padding-inline-end: .85rem; background-image: none; }
  select::picker-icon {
    flex: none;
    width: .52rem;
    height: .52rem;
    margin-inline-start: .55rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    color: var(--plum);
    content: "";
    transform: translateY(-.1rem) rotate(45deg);
  }
  select:open::picker-icon { transform: translateY(.1rem) rotate(225deg); }
  select::picker(select) {
    max-block-size: min(22rem, 55dvh);
    padding: .26rem;
    margin-block: .3rem;
    border: 1px solid var(--line);
    border-radius: .68rem;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 .45rem 1.6rem #17271d20;
  }
  select:not([multiple]) option {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-block-size: 44px;
    padding: .45rem .65rem;
    border-radius: .4rem;
    white-space: normal;
  }
  select:not([multiple]) option:checked { background: var(--wash); color: var(--plum); font-weight: 700; }
  select:not([multiple]) option:is(:hover, :focus-visible) { background: var(--wash); }
  select option::checkmark { order: 1; margin-inline-start: auto; color: var(--plum); }
}
@media (forced-colors: active) {
  select:not([multiple]) { appearance: auto; background-image: none; }
  select:not([multiple])::picker(select) { appearance: auto; }
}
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
.wrap { width: min(1110px, calc(100% - 3rem)); margin-inline: auto; }

.bar { border-bottom: 1px solid var(--line); }
.navigation { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 72px; }
.brand { font: 700 1.2rem/1.3 var(--serif); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.8rem, 3vw, 2rem); font-size: .875rem; font-weight: 700; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
nav button { border: 1px solid var(--field-line); border-radius: 999px; background: transparent; padding: .45rem .9rem; }
nav button:hover { background: var(--wash); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 46%);
  align-items: center;
  gap: 1.5rem;
  padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.4rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.hero h1 { font: 600 clamp(3.1rem, 6.5vw, 5.55rem)/.99 var(--serif); letter-spacing: -.055em; }
.hero h1 em { color: var(--plum); font-weight: 600; }
.intro { max-width: 29rem; margin-top: 1.55rem; color: var(--muted); font-size: 1.05rem; }
.facts { display: flex; flex-wrap: wrap; gap: .65rem clamp(.65rem, 2vw, 1.5rem); margin-top: 1.65rem; }
.facts div { border-left: 1px solid var(--line); padding-left: .8rem; }
.facts dt { color: var(--muted); font-size: .75rem; }
.facts dd { font-weight: 700; font-size: .95rem; white-space: nowrap; }
.hero-photo { min-width: 0; max-width: 100%; }
.hero-photo img { display: block; width: 100%; height: auto; border-radius: 1.1rem; }
.hero-photo figcaption { margin-top: .32rem; color: var(--muted); font-size: .78rem; line-height: 1.4; overflow-wrap: anywhere; }

.recipe {
  display: grid;
  grid-template-columns: minmax(290px, 385px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2.2rem, 7vw, 6rem);
  padding: clamp(2rem, 4.5vw, 3.4rem) 0;
}
h2 { font: 600 clamp(2rem, 4vw, 2.8rem)/1.1 var(--serif); letter-spacing: -.035em; }
.ingredients { border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); padding: clamp(1.05rem, 3vw, 1.85rem); }
.batch { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin-top: .65rem; color: var(--muted); font-size: .9rem; }
.batch-stepper { display: inline-grid; grid-template-columns: 44px 3.9rem 44px; align-items: stretch; overflow: hidden; border: 1px solid var(--field-line); border-radius: .5rem; background: var(--page); color: var(--ink); }
.batch-stepper:focus-within { border-color: var(--plum); }
.batch-stepper button, .batch-stepper input { min-height: 44px; min-width: 0; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: center; }
.batch-stepper input { border-inline: 1px solid var(--line); font: 700 1rem var(--sans); font-variant-numeric: tabular-nums; }
.batch-stepper button { font-size: 1.2rem; }
.batch-stepper button:not(:disabled):hover { background: var(--wash); }
.batch-stepper button:disabled { color: var(--muted); opacity: .5; cursor: default; }
.batch-stepper :focus-visible { outline-offset: -3px; }
#batch-print { display: none; }
.ingredients h3 { margin-top: 1.2rem; font-size: 1rem; }
.ingredient-list { list-style: none; padding: 0; margin: .3rem 0 0; }
.ingredient-list li + li { border-top: 1px solid var(--line); }
.ingredient-list label { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .65rem; min-height: 44px; padding-block: .35rem; cursor: pointer; }
.ingredient-list input { accent-color: var(--plum); width: 1.12rem; height: 1.12rem; margin: 0; }
.ingredient-list label:hover span { color: var(--plum); }
.ingredient-list input:checked ~ span { color: var(--muted); text-decoration: line-through; }
.ingredient-list b { font-size: .9rem; white-space: nowrap; }

.method h2 { margin-bottom: 1.3rem; }
.phase { display: table; color: var(--plum); background: var(--wash); border-radius: .35rem; padding: .3rem .7rem; font-weight: 700; font-size: .85rem; }
.steps { margin: .95rem 0 1.25rem; padding-left: 1.6rem; }
.steps:last-child { margin-bottom: 0; }
.steps li { padding-left: .35rem; padding-bottom: 1rem; }
.steps li:not(:last-child) { margin-bottom: .9rem; border-bottom: 1px solid var(--line); }
.steps li::marker { color: var(--plum); font-weight: 700; }
.steps h4 { font-weight: 700; font-size: 1.06rem; margin-bottom: .15rem; }
.steps p { color: var(--muted); }
.steps strong { color: var(--ink); }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding-block: 1rem 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

@media (max-width: 740px) {
  .wrap { width: min(100% - 2rem, 555px); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .hero h1 { font-size: clamp(2.7rem, 10.2vw, 4.6rem); }
  .hero h1 br:first-child { display: none; }
  .hero-photo { width: 92%; justify-self: center; }
  .hero-photo img { aspect-ratio: 3 / 2; object-fit: cover; }
  .recipe { grid-template-columns: 1fr; }
}

@media (max-width: 450px) {
  .navigation { align-items: flex-start; padding-block: .6rem; flex-direction: column; gap: .25rem; }
  nav { width: 100%; justify-content: space-between; }
}

@media print {
  :root, :root[data-theme="dark"] { color-scheme: light; --ink: #000; --muted: #222; --page: #fff; --paper: #fff; --plum: #633c55; --line: #ddd2d9; --wash: #eee7ee; }
  body { font-size: 10pt; }
  .wrap { width: 100%; }
  .bar, .hero-photo, .ingredient-list input, .footer a:last-child { display: none; }
  .hero { display: block; padding: 0 0 1rem; }
  .hero h1 { font-size: 24pt; }
  .hero h1 br { display: none; }
  .intro, .facts { margin-top: .5rem; }
  .recipe { grid-template-columns: 37% 1fr; gap: 1.2rem; padding-block: 1rem; }
  .ingredients { padding: .7rem; }
  .batch-stepper, .batch > label { display: none; }
  #batch-print { display: inline; }
  h2 { font-size: 17pt; }
  .ingredient-list label { grid-template-columns: 1fr auto; min-height: auto; padding-block: .12rem; }
  .ingredient-list input:checked ~ span { text-decoration: none; }
  .phase { background: transparent; padding: 0; }
  .steps li { break-inside: avoid; padding-bottom: .4rem; }
  .steps li:not(:last-child) { margin-bottom: .4rem; }
  .footer { padding-block: .35rem; }
}

.hero-simple { display: block; }

.imported-hero h1 { font-size: clamp(2.7rem, 6vw, 4.9rem); }
.recipe-basis { color: var(--muted); font-size: .86rem; margin-block: .75rem .6rem; }
.recipe-sources > div { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }

@media print {
  .imported-hero h1 { font-size: 24pt; }
  .recipe-sources > div { display: block; }
  .recipe-sources > div a { display: inline; }
}

.screen-setting {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: .75rem;
  color: var(--muted);
  font-size: .88rem;
}
.screen-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.screen-switch input { position: absolute; inline-size: 1px; block-size: 1px; margin: 0; clip-path: inset(50%); }
.screen-switch-track {
  position: relative;
  flex: none;
  inline-size: 2.6rem;
  block-size: 1.5rem;
  border-radius: 999px;
  background: var(--switch-off);
  box-shadow: inset 0 0 0 1px var(--switch-edge);
}
.screen-switch-track::before {
  position: absolute;
  inset: .25rem auto auto .25rem;
  inline-size: 1rem;
  block-size: 1rem;
  border-radius: 50%;
  background: var(--switch-off-thumb);
  border: 1px solid var(--switch-thumb-edge);
  content: "";
}
.screen-switch input:checked[data-state="active"] + .screen-switch-track { background: var(--switch-on); box-shadow: none; }
.screen-switch input:checked[data-state="active"] + .screen-switch-track::before { background: var(--switch-on-thumb); border-color: transparent; }
.screen-switch input:checked + .screen-switch-track::before { transform: translateX(1.1rem); }
.screen-switch input:focus-visible + .screen-switch-track { outline: 2px solid var(--plum); outline-offset: 3px; }
.screen-setting small { order: 1; flex-basis: 100%; font-size: .85rem; }
.screen-setting small[data-state="active"] { order: 0; flex-basis: auto; color: var(--success-ink); }
.screen-setting small:empty { display: none; }
.screen-setting + .recipe { padding-block-start: clamp(.7rem, 2vw, 1.35rem); }
@media (forced-colors: active) {
  .screen-switch-track { outline: 1px solid CanvasText; }
  .screen-switch-track::before { background: CanvasText; border-color: CanvasText; }
}
@media print { .screen-setting { display: none; } }

.recipe-timer { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .7rem; }
.recipe-timer label { font-size: .89rem; }
.recipe-timer input, .recipe-timer button { min-height: 44px; border: 1px solid var(--field-line); border-radius: .5rem; padding: .4rem .6rem; background: var(--paper); font: inherit; color: var(--plum); }
.recipe-timer input { width: 4.1rem; }
.recipe-timer output { font-weight: 700; font-variant-numeric: tabular-nums; }
.recipe-timer button.recipe-timer-test { text-decoration: underline; text-underline-offset: .15em; border-color: transparent; background: transparent; }
.recipe-timer small, .recipe-timer [role="status"] { color: var(--muted); font-size: .85rem; }
.recipe-timer small { flex-basis: 100%; }
.recipe-timer [role="status"]:empty { display: none; }
.recipe-timer-finished output, .recipe-timer-finished [data-timer-status] { color: var(--alarm-ink); font-weight: 700; }
@media print { .recipe-timer { display: none; } }

.recipe-placeholder { position: relative; width: 100%; height: clamp(7.5rem, 24vw, 10rem); flex: none; overflow: hidden; background: var(--wash); }
.recipe-placeholder > img { width: 100%; height: 100%; display: block; object-fit: cover; filter: grayscale(.9) contrast(.89); }
.recipe-placeholder::after { content: ""; position: absolute; inset: 0; background: var(--wash); opacity: .2; pointer-events: none; }
.recipe-placeholder.recipe-placeholder-split > img { position: absolute; width: 60%; height: 100%; top: 0; left: 0; }
.recipe-placeholder.recipe-placeholder-split > img + img {
  left: auto;
  right: 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 33.33%);
  mask-image: linear-gradient(to right, transparent, #000 33.33%);
}
[data-theme="dark"] .recipe-placeholder::after { opacity: .52; }
