/* « À table, en famille » — outil cuisine v2. Préfixe cz-. Couleurs du site (public/styles.css) avec repli. */
/* Lot 5 (go de Tony « go bouton cuisine », 2026-10-17): the cook mode (.cz-cook) and the dialogs (.cz-dialog: « Ma
   table », « Mes soirs », « Changer ») are added to <body>, outside .cz-app. They carry the same tokens: without them
   every rule written with var(--cz-…) and no fallback is dropped there, and « Suivante → » / « Enregistrer » were white
   on the paper or white background (1.05:1 and 1:1), the other buttons and the fields had no border. */
.cz-app, .cz-cook, .cz-dialog {
  --cz-ink: var(--ink, #142b3b);
  --cz-paper: var(--paper, #fff9f2);
  --cz-card: #ffffff;
  --cz-teal: var(--teal, #1a948f);
  --cz-teal-dark: var(--teal-dark, #0d6f6b);
  --cz-teal-soft: var(--teal-soft, #dff4f0);
  --cz-coral: var(--coral, #ef705f);
  --cz-coral-soft: var(--coral-soft, #fde9e4);
  /* Petits défauts, lot 5 (go de Tony, 2026-10-17): the coral (2.94:1 on white) stays for fills and borders; coral
     text and the focus ring use the site's dark coral (public/styles.css --danger), 6.19:1 on white. The focus ring
     also repeats it as a fallback. Redesign wave 1 (2026-10-24): --danger is now the alert ink #a3352a, 6.77:1. */
  --cz-coral-dark: var(--danger, #a3352a);
  --cz-yellow-soft: var(--yellow-soft, #fff3cb);
  --cz-sage: var(--sage, #dce9df);
  --cz-sky: var(--sky, #dceaf2);
  --cz-line: var(--line, #d8e0e1);
  --cz-muted: var(--muted, #60727c);
  --cz-serif: var(--serif, Georgia, "Times New Roman", serif);
  --cz-sans: var(--sans, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif);
  --cz-radius: 18px;
  --cz-shadow: 0 8px 24px rgba(20, 43, 59, .08);
}
.cz-app {
  color: var(--cz-ink);
  font-family: var(--cz-sans);
  line-height: 1.55;
}
.cz-app *, .cz-app *::before, .cz-app *::after { box-sizing: border-box; }
.cz-app h1, .cz-app h2, .cz-app h3 { font-family: var(--cz-serif); font-weight: 500; line-height: 1.2; margin: 0 0 .5rem; }
.cz-app h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.cz-app h2 { font-size: clamp(1.3rem, 3vw, 1.65rem); }
.cz-app h3 { font-size: 1.12rem; }
.cz-app p { margin: 0 0 .6rem; }
.cz-app a { color: var(--cz-teal-dark); }
.cz-muted { color: var(--cz-muted); }
.cz-note { color: var(--cz-muted); font-size: .88rem; }
/* A choice box in a note stays in the line of the note (« · » and the words that follow it): the label of a box is a
   block in styles.css (redesign « aquarelle », wave 3, plate 13). */
.cz-note > label { display: inline-flex; align-items: center; vertical-align: middle; }

/* Buttons and chips */
.cz-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .55rem 1rem; border: 1.5px solid var(--cz-line); border-radius: 999px; background: var(--cz-card); color: var(--cz-ink); font: 600 .95rem/1.2 var(--cz-sans); cursor: pointer; text-decoration: none; }
.cz-btn:hover { border-color: var(--cz-teal); }
.cz-btn:focus-visible, .cz-chip:focus-visible, .cz-time-btn:focus-visible { outline: 3px solid var(--cz-coral-dark, var(--danger, #a3352a)); outline-offset: 2px; }
.cz-btn-primary { background: var(--cz-teal-dark); border-color: var(--cz-teal-dark); color: #fff; }
.cz-btn-primary:hover { background: var(--cz-ink); border-color: var(--cz-ink); }
.cz-btn-small { min-height: 36px; padding: .35rem .8rem; font-size: .85rem; }
.cz-btn[disabled] { opacity: .45; cursor: default; }
.cz-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .4rem 0 .8rem; }
.cz-chip { min-height: 40px; padding: .4rem .85rem; border: 1.5px solid var(--cz-line); border-radius: 999px; background: var(--cz-card); color: var(--cz-ink); font: 500 .9rem var(--cz-sans); cursor: pointer; }
.cz-chip[aria-pressed="true"] { background: var(--cz-teal-soft); border-color: var(--cz-teal-dark); color: var(--cz-teal-dark); font-weight: 700; }
.cz-field { display: grid; gap: .25rem; font-weight: 600; font-size: .9rem; }
.cz-field input, .cz-field select, .cz-kids input, .cz-kids select, .cz-days-config select { min-height: 44px; padding: .5rem .7rem; border: 1.5px solid var(--cz-line); border-radius: 12px; font: 400 1rem var(--cz-sans); background: var(--cz-card); color: var(--cz-ink); }
.cz-field-label { font-weight: 700; margin: .6rem 0 .2rem; }

/* Household */
.cz-household { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; padding: .7rem 1rem; margin-bottom: 1rem; border-radius: 14px; background: var(--cz-sage); }
.cz-household p { margin: 0; }

/* « Ce soir, j'ai… » */
.cz-tonight { padding: clamp(1rem, 3vw, 1.6rem); border-radius: var(--cz-radius); background: var(--cz-card); box-shadow: var(--cz-shadow); margin-bottom: 1.5rem; }
.cz-time { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; margin: .6rem 0 .3rem; }
.cz-time-btn { display: grid; place-items: center; gap: 0; min-height: 78px; padding: .5rem .3rem; border: 2px solid var(--cz-line); border-radius: 16px; background: var(--cz-paper); color: var(--cz-ink); cursor: pointer; font-family: var(--cz-sans); }
.cz-time-btn span { font: 600 1.7rem/1 var(--cz-serif); }
.cz-time-btn small { font-size: .78rem; color: var(--cz-muted); }
.cz-time-btn[aria-pressed="true"] { background: var(--cz-teal-dark); border-color: var(--cz-teal-dark); color: #fff; }
.cz-time-btn[aria-pressed="true"] small { color: #e6f6f4; }
.cz-time-help { font-size: .85rem; }
.cz-more { margin: .3rem 0 .8rem; }
.cz-more summary { cursor: pointer; font-weight: 700; color: var(--cz-teal-dark); min-height: 40px; display: flex; align-items: center; }
.cz-search { display: grid; grid-template-columns: 2fr 1fr; gap: .8rem; }
/* Phones only (readability audit B8, 2026-10-17): the filters under the time buttons wait behind « Filtres ». On wider
   screens the button is not drawn and the wrapper draws no box of its own: the page stays as it was. */
.cz-filters-toggle { display: none; }
.cz-filters { display: contents; }

/* Results */
.cz-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; margin: .4rem 0 .8rem; }
.cz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.cz-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--cz-radius); background: var(--cz-card); box-shadow: var(--cz-shadow); transition: transform .15s ease; }
.cz-card:hover { transform: translateY(-2px); }
.cz-card-media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #efe3cf; }
.cz-card-body { padding: .8rem 1rem 1rem; display: flex; flex-direction: column; gap: .2rem; }
.cz-card-cat { margin: 0; color: var(--cz-teal-dark); font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.cz-card h3 { margin: 0; font-size: 1.08rem; }
.cz-card h3 a { color: var(--cz-ink); text-decoration: none; }
.cz-card h3 a::after { content: ""; position: absolute; inset: 0; }
.cz-card { position: relative; }
.cz-card-sub { margin: 0; color: var(--cz-muted); font-size: .9rem; }
.cz-card-meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: .4rem 0 0; padding: 0; list-style: none; font-size: .86rem; }
.cz-card-fridge { margin: .3rem 0 0; font-size: .82rem; color: var(--cz-teal-dark); }
.cz-empty { padding: 1.5rem; border-radius: var(--cz-radius); background: var(--cz-yellow-soft); }
.cz-more-btn { display: flex; margin: 1.2rem auto 0; }

/* Week call to action */
.cz-week-cta { margin: 2rem 0 1rem; padding: clamp(1rem, 3vw, 1.6rem); border-radius: var(--cz-radius); background: var(--cz-teal-soft); }
.cz-presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .7rem; margin-top: .8rem; }
.cz-preset { display: grid; gap: .2rem; padding: .9rem 1rem; border-radius: 14px; background: #fff; color: var(--cz-ink) !important; text-decoration: none; box-shadow: var(--cz-shadow); }
.cz-preset small { color: var(--cz-muted); }

/* Recipe page */
.cz-back { margin: 0 0 .8rem; }
.cz-recipe-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); align-items: start; margin-bottom: 1.5rem; }
.cz-recipe-media { position: relative; overflow: hidden; border-radius: var(--cz-radius); box-shadow: var(--cz-shadow); }
.cz-recipe-media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #efe3cf; }
.cz-ai { position: absolute; left: .6rem; bottom: .6rem; padding: .15rem .5rem; border-radius: 999px; background: rgba(20, 43, 59, .7); color: #fff; font-size: .72rem; }
.cz-recipe-sub { font-size: 1.08rem; color: var(--cz-muted); }
.cz-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: 1rem 0; padding: 0; list-style: none; }
.cz-facts li { padding: .6rem .5rem; border-radius: 12px; background: var(--cz-paper); text-align: center; }
.cz-facts span { display: block; font-size: .74rem; color: var(--cz-muted); }
.cz-facts strong { font-size: .98rem; }
.cz-allergens { font-size: .9rem; }
.cz-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.cz-recipe-grid { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); align-items: start; }
.cz-recipe-side { position: sticky; top: 1rem; }
.cz-ingredients { padding: 1.1rem; border-radius: var(--cz-radius); background: var(--cz-card); box-shadow: var(--cz-shadow); }
.cz-ing-list { margin: 0; padding: 0; list-style: none; }
.cz-ing { display: grid; grid-template-columns: 6.2rem 1fr; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--cz-line); }
.cz-ing-q { font-weight: 700; text-align: right; }
.cz-ing-name small { display: block; color: var(--cz-muted); font-size: .8rem; }
.cz-adult-only { color: var(--cz-coral-dark) !important; }
.cz-optional { opacity: .8; }
.cz-optional .cz-adult-only { color: #8f342f !important; }
.cz-pantry, .cz-equipment { margin-top: .8rem; font-size: .9rem; }
.cz-kid-portions { margin-top: 1rem; padding: .8rem; border-radius: 14px; background: var(--cz-yellow-soft); }
.cz-kid-portions summary { cursor: pointer; font-weight: 700; }
.cz-kid-portion { margin-top: .5rem; }
.cz-kid-portion ul { margin: .2rem 0; padding-left: 1.1rem; font-size: .9rem; }
.cz-src { text-decoration: none; }
.cz-key-rule { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; margin-bottom: 1.2rem; border-radius: 14px; background: var(--cz-coral-soft); border-left: 5px solid var(--cz-coral); }
.cz-key-rule span { font-size: 1.5rem; }
.cz-key-rule p { margin: 0; }
.cz-steps { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.cz-step { padding: 1.1rem; margin-bottom: 1rem; border-radius: var(--cz-radius); background: var(--cz-card); box-shadow: var(--cz-shadow); }
.cz-step-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.cz-step-head h3 { margin: 0; flex: 1; }
.cz-step-n { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--cz-teal-dark); color: #fff; font: 600 1.1rem var(--cz-serif); }
.cz-step-part-enfants { border: 2px solid var(--cz-coral); }
.cz-timer { min-height: 38px; padding: .3rem .8rem; border: 1.5px solid var(--cz-teal); border-radius: 999px; background: var(--cz-teal-soft); color: var(--cz-teal-dark); font-weight: 700; cursor: pointer; }
.cz-aud { margin-top: .6rem; padding: .6rem .8rem; border-radius: 12px; }
.cz-aud p { margin: 0; }
.cz-aud .cz-aud-who { font-weight: 700; font-size: .88rem; margin-bottom: .15rem; }
.cz-aud-kid { background: var(--cz-yellow-soft); }
.cz-aud-adult { background: var(--cz-sky); }
.cz-aud-check { background: var(--cz-sage); }
.cz-tips, .cz-leftovers, .cz-sources { padding: 1.1rem; margin-bottom: 1rem; border-radius: var(--cz-radius); background: var(--cz-card); box-shadow: var(--cz-shadow); }
.cz-leftovers { border-left: 5px solid var(--cz-teal); }
.cz-leftovers ul, .cz-tips ul, .cz-sources ul { margin: 0; padding-left: 1.1rem; }
.cz-leftovers li, .cz-tips li { margin-bottom: .35rem; }
.cz-sources { font-size: .9rem; }
.cz-status { padding: .6rem .8rem; border-radius: 12px; background: var(--cz-yellow-soft); }

/* Cook mode */
.cz-cook { position: fixed; inset: 0; z-index: 1000; overflow: auto; padding: clamp(1rem, 4vw, 2.5rem); background: var(--cz-paper, #fff9f2); color: var(--cz-ink, #142b3b); font-family: var(--cz-sans, system-ui, sans-serif); font-size: clamp(1.05rem, 2.4vw, 1.3rem); }
.cz-cook-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cz-cook-top p { margin: 0; font-weight: 700; }
.cz-cook-progress { height: 6px; margin: .8rem 0; border-radius: 3px; background: var(--cz-line, #d8e0e1); }
.cz-cook-progress span { display: block; height: 100%; border-radius: 3px; background: var(--cz-teal-dark, #0d6f6b); }
.cz-cook-count { color: var(--cz-muted, #60727c); }
.cz-cook-step { max-width: 52rem; }
.cz-cook-step h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
.cz-cook .cz-step-n { display: none; }
.cz-cook-nav { display: flex; justify-content: space-between; gap: 1rem; max-width: 52rem; margin-top: 1.5rem; }
.cz-cook-nav .cz-btn { min-height: 56px; padding: .7rem 1.4rem; font-size: 1.05rem; }
/* While a timer runs, the fixed timer tray (bottom right, above the cook mode) must never hide « Suivante »: leave room
   at the bottom so the step navigation can always scroll above it (up to four timers). */
body:has(.cz-timer-item) .cz-cook { padding-bottom: calc(clamp(1rem, 4vw, 2.5rem) + 15rem); }

/* Timers */
.cz-timers { position: fixed; right: 1rem; bottom: 1rem; z-index: 1100; display: grid; gap: .4rem; }
.cz-timer-item { display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem; border-radius: 14px; background: #142b3b; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); font-family: system-ui, sans-serif; }
.cz-timer-item strong { font-variant-numeric: tabular-nums; }
.cz-timer-item button { border: 0; background: transparent; color: #fff; cursor: pointer; min-width: 32px; min-height: 32px; }
.cz-done { background: #a63f39; }

/* Week */
.cz-week { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; margin: 1rem 0 1.5rem; padding: 0; list-style: none; }
.cz-day { display: flex; flex-direction: column; gap: .5rem; padding: .8rem; border-radius: var(--cz-radius); background: var(--cz-card); box-shadow: var(--cz-shadow); }
.cz-locked { outline: 2px solid var(--cz-teal); }
.cz-day-name { margin: 0; font-weight: 700; }
.cz-day-recipe { display: grid; gap: .4rem; color: var(--cz-ink) !important; text-decoration: none; }
.cz-day-recipe img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; background: #efe3cf; }
.cz-day-recipe small { display: block; color: var(--cz-muted); }
.cz-day-actions { display: flex; gap: .4rem; margin-top: auto; }
.cz-balance { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .6rem; margin: .5rem 0 1.5rem; padding: 0; list-style: none; }
.cz-balance li { display: grid; gap: .1rem; padding: .7rem .8rem; border-radius: 14px; }
.cz-balance small { color: var(--cz-muted); font-size: .78rem; }
.cz-ok { background: var(--cz-sage); }
.cz-warn { background: var(--cz-coral-soft); }
.cz-shopping { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.cz-shopping section { padding: .9rem 1rem; border-radius: var(--cz-radius); background: var(--cz-card); box-shadow: var(--cz-shadow); }
.cz-shopping ul { margin: 0; padding: 0; list-style: none; }
/* The box is the 26 px drawn box of styles.css (redesign « aquarelle », wave 3, plate 13): aligned with the first line, in a 44 px target. */
.cz-shopping li label { display: flex; gap: .5rem; align-items: flex-start; min-height: 44px; padding: .2rem 0; cursor: pointer; }
.cz-shopping input:checked + .cz-shop-q, .cz-shopping input:checked ~ * { text-decoration: line-through; color: var(--cz-muted); }
.cz-shop-q { font-weight: 700; white-space: nowrap; }
.cz-shopping .cz-note { grid-column: 1 / -1; }

/* Dialogs */
.cz-dialog { width: min(560px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 28px 70px rgba(20, 43, 59, .25); color: #142b3b; font-family: Inter, system-ui, sans-serif; }
.cz-dialog-wide { width: min(980px, calc(100vw - 2rem)); }
.cz-dialog::backdrop { background: rgba(20, 43, 59, .45); }
.cz-dialog-body { padding: 1.3rem; }
.cz-dialog h2 { font-family: Georgia, serif; font-weight: 500; margin: 0 0 .8rem; }
.cz-dialog-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1rem; }
.cz-kids, .cz-days-config { display: grid; gap: .5rem; margin: .3rem 0 .8rem; padding: 0; list-style: none; }
.cz-kids li { display: grid; grid-template-columns: 1fr auto; gap: .4rem; }
.cz-days-config li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.cz-swap { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .7rem; }
.cz-swap-item { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; }
.cz-swap-item .cz-card h3 a::after { display: none; }

@media (max-width: 860px) {
  .cz-recipe-hero, .cz-recipe-grid { grid-template-columns: 1fr; }
  .cz-recipe-side { position: static; }
  .cz-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .cz-time { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cz-search { grid-template-columns: 1fr; }
  .cz-kids li { grid-template-columns: 1fr auto; }
  .cz-step, .cz-ingredients, .cz-tonight { border-radius: 14px; }
  /* B8: « Filtres » button, compact recipe cards (small photo, title, time, age), « Ma semaine » under « Ce soir ». */
  .cz-filters-toggle { display: inline-flex; }
  .cz-filters-toggle::after { content: "▾" / ""; }
  .cz-filters-toggle[aria-expanded="true"]::after { content: "▴" / ""; }
  .cz-filters { display: none; }
  .cz-filters.cz-open { display: block; margin-top: .8rem; }
  .cz-grid { grid-template-columns: 1fr; gap: .7rem; }
  .cz-grid .cz-card { flex-direction: row; border-radius: 14px; }
  .cz-grid .cz-card-media { flex: none; width: 6.5rem; }
  .cz-grid .cz-card-media img { height: 100%; min-height: 6.5rem; aspect-ratio: auto; }
  .cz-grid .cz-card-body { flex: 1; min-width: 0; justify-content: center; padding: .6rem .8rem; }
  .cz-grid .cz-card-sub { display: none; }
  .cz-week-cta { margin: 0 0 1.5rem; }
  .cz-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cz-preset:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Print: A4 recipe sheet and week sheet (« Télécharger la fiche » opens the print dialog: choose « Enregistrer au
   format PDF »). Only #cz-print is printed. The sheet is hidden on screen only: a plain « #cz-print { display: none } »
   after the print block won over it (same specificity) and every PDF came out blank. */
@media not print { #cz-print { display: none; } }
@media print {
  @page { size: A4; margin: 11mm 12mm; }
  html.cz-printing body > *:not(#cz-print) { display: none !important; }
  #cz-print { display: block; color: #142b3b; background: #fff; font: 9.6pt/1.38 Inter, system-ui, sans-serif; }
  #cz-print .cz-actions, #cz-print .cz-timer, #cz-print .cz-back, #cz-print .cz-household, #cz-print .cz-sources details, #cz-print .cz-src, #cz-print input { display: none !important; }
  #cz-print h1 { font: 500 17pt/1.15 Georgia, serif; margin: 0 0 1mm; }
  #cz-print h2 { font: 500 12pt/1.2 Georgia, serif; margin: 3mm 0 1.5mm; break-after: avoid; }
  #cz-print h3 { font: 600 10pt/1.25 Inter, system-ui, sans-serif; margin: 0; }
  #cz-print p { margin: 0 0 1.2mm; }
  /* Recipe: photo and facts side by side, then one column. */
  #cz-print .cz-recipe-hero { display: grid; grid-template-columns: 58mm 1fr; gap: 5mm; align-items: start; margin-bottom: 3mm; }
  #cz-print .cz-recipe-media { box-shadow: none; border-radius: 3mm; }
  #cz-print .cz-recipe-media img { width: 100%; height: auto; border-radius: 3mm; }
  #cz-print .cz-ai { font-size: 6.5pt; left: 1.5mm; bottom: 1.5mm; }
  #cz-print .cz-recipe-sub { font-size: 10pt; }
  #cz-print .cz-facts { display: flex; flex-wrap: wrap; gap: 2mm; margin: 2mm 0; }
  #cz-print .cz-facts li { padding: 1mm 2.5mm; border: .3mm solid #d8e0e1; background: none; text-align: left; }
  #cz-print .cz-facts span { display: inline; font-size: 8pt; margin-right: 1mm; }
  #cz-print .cz-facts strong { font-size: 9pt; }
  #cz-print .cz-allergens { font-size: 8.6pt; margin: 0; }
  #cz-print .cz-recipe-grid { display: block; }
  #cz-print .cz-recipe-side { position: static; }
  #cz-print .cz-ingredients { padding: 2.5mm 3mm; margin-bottom: 3mm; box-shadow: none; border: .3mm solid #d8e0e1; }
  #cz-print .cz-ingredients .cz-section-head { margin: 0 0 1.5mm; }
  #cz-print .cz-ingredients h2 { margin: 0; }
  #cz-print .cz-ing-list { columns: 3; column-gap: 5mm; }
  #cz-print .cz-ing { display: block; padding: .6mm 0; border-bottom: .2mm solid #e3e9ea; break-inside: avoid; font-size: 8.8pt; }
  #cz-print .cz-ing-q { display: inline; text-align: left; margin-right: 1.2mm; }
  #cz-print .cz-ing-name small { display: inline; font-size: 7.8pt; margin-left: 1mm; }
  #cz-print .cz-pantry, #cz-print .cz-equipment { margin: 1.5mm 0 0; font-size: 8.4pt; }
  #cz-print .cz-kid-portions { margin-top: 2mm; padding: 1.5mm 2.5mm; font-size: 8.4pt; }
  #cz-print .cz-kid-portion { display: inline-block; vertical-align: top; width: 48%; margin: 1mm 1% 0 0; }
  #cz-print .cz-key-rule { padding: 2mm 3mm; margin-bottom: 2.5mm; border-left-width: 1.2mm; }
  #cz-print .cz-key-rule span { font-size: 12pt; }
  #cz-print .cz-step { box-shadow: none; border: .3mm solid #d8e0e1; border-radius: 2.5mm; padding: 2mm 3mm; margin-bottom: 2mm; break-inside: avoid; }
  #cz-print .cz-step-part-enfants { border: .5mm solid #ef705f; }
  #cz-print .cz-step-head { gap: 2mm; margin-bottom: 1mm; }
  #cz-print .cz-step-n { width: 6mm; height: 6mm; font-size: 9pt; background: #0d6f6b !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #cz-print .cz-aud { margin-top: 1.2mm; padding: 1.2mm 2.2mm; border-radius: 2mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #cz-print .cz-aud .cz-aud-who { font-size: 8.4pt; margin-bottom: .3mm; }
  #cz-print .cz-key-rule { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #cz-print .cz-tips, #cz-print .cz-leftovers, #cz-print .cz-sources { box-shadow: none; border: .3mm solid #d8e0e1; border-radius: 2.5mm; padding: 2mm 3mm; margin-bottom: 2mm; break-inside: avoid; }
  #cz-print .cz-leftovers li, #cz-print .cz-tips li { margin-bottom: .6mm; }
  #cz-print .cz-sources { font-size: 8pt; }
  #cz-print .cz-sources h2 { font-size: 9.5pt; margin: 0 0 1mm; }
  #cz-print .cz-status { padding: 1mm 2mm; }
  #cz-print .cz-page-break { break-before: page; }
  #cz-print .cz-sheet-foot { margin-top: 2mm; font-size: 7.5pt; color: #60727c; }
  #cz-print .cz-sheet-day { margin: 0 0 1.5mm; font: 600 10pt/1.2 Inter, system-ui, sans-serif; color: #0d6f6b; text-transform: uppercase; letter-spacing: .06em; }
  /* Week: menu table, then the shopping list in three columns that may break between items. */
  #cz-print .cz-week-table { width: 100%; border-collapse: collapse; margin: 2mm 0 4mm; }
  #cz-print .cz-week-table th, #cz-print .cz-week-table td { padding: 1.4mm 2mm; border-bottom: .3mm solid #d8e0e1; text-align: left; }
  #cz-print .cz-shopping { display: block; columns: 3; column-gap: 6mm; font-size: 8.8pt; }
  #cz-print .cz-shopping section { break-inside: auto; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 2.5mm; }
  #cz-print .cz-shopping h3 { margin: 0 0 1mm; break-after: avoid; color: #0d6f6b; }
  #cz-print .cz-shopping li { break-inside: avoid; }
  #cz-print .cz-shopping li label { min-height: 0; padding: .3mm 0; }
  #cz-print .cz-shopping li label::before { content: '☐'; margin-right: 1mm; }
  #cz-print .cz-shopping .cz-note { column-span: all; font-size: 7.5pt; }
  #cz-print a { color: inherit; text-decoration: none; }
}
