/* ════════════════════════════════════════════════════════════
   MyMenu · "La mesa de casa"
   Estética: mercado mediterráneo + cuaderno de cocina.
   Papel crema, tinta verde oscura, tomate, azafrán y oliva.
   ════════════════════════════════════════════════════════════ */

:root {
  color-scheme: light dark;

  --paper: #fbf7f0;
  --paper-2: #f1ebe0;
  --card: #ffffff;
  --card-2: #f7f3ec;
  --ink: #1b1b1b;
  --ink-2: #555555;
  --ink-3: #8a8a8a;
  --line: rgb(27 27 27 / 0.1);
  --line-2: rgb(27 27 27 / 0.2);
  --shadow: 0 1px 0 rgb(29 42 34 / 0.06), 0 10px 30px -12px rgb(60 40 10 / 0.25);
  --shadow-lift: 0 2px 0 rgb(29 42 34 / 0.06), 0 22px 40px -18px rgb(60 40 10 / 0.4);

  --tomato: #f0401f;
  --tomato-ink: #ffffff;
  --saffron: #ffb300;
  --olive: #12a150;
  --plum: #8e3fd8;
  --sea: #1677ff;
  --notebook: #eaf3ff;
  --notebook-line: #9fc4f5;

  /* Colores por fuente de proteína */
  --p-legumbre: #f28c00;
  --p-pescado: #1677ff;
  --p-huevo: #ffc107;
  --p-ave: #e93d82;
  --p-carne: #e0242b;
  --p-vegetal: #12a150;

  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --nav-h: 68px;

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-ui: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;

  accent-color: var(--tomato);
  scrollbar-color: var(--line-2) transparent;

  @media (prefers-color-scheme: dark) {
    --paper: #121212;
    --paper-2: #1b1b1b;
    --card: #1e1e1e;
    --card-2: #282828;
    --ink: #f5f5f5;
    --ink-2: #bdbdbd;
    --ink-3: #8a8a8a;
    --line: rgb(255 255 255 / 0.1);
    --line-2: rgb(255 255 255 / 0.2);
    --shadow: 0 1px 0 rgb(0 0 0 / 0.3), 0 12px 30px -14px rgb(0 0 0 / 0.7);
    --shadow-lift: 0 2px 0 rgb(0 0 0 / 0.3), 0 22px 40px -18px rgb(0 0 0 / 0.8);
    --tomato: #ff5a3c;
    --tomato-ink: #ffffff;
    --saffron: #ffc233;
    --olive: #2bc46c;
    --sea: #4d94ff;
    --notebook: #16233a;
    --notebook-line: #2c4a78;
    --p-legumbre: #ff9f1c;
    --p-pescado: #4d94ff;
    --p-huevo: #ffcd38;
    --p-ave: #ff5c9d;
    --p-carne: #ff4747;
    --p-vegetal: #2bc46c;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.45 var(--f-ui);
  font-optical-sizing: auto;
  min-height: 100dvh;
  /* Grano de papel */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.22 0 0 0 0 0.1 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -0.01em; font-variation-settings: "SOFT" 100; }
h1 em, h2 em { font-style: italic; color: var(--tomato); font-weight: 500; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Estructura ─────────────────────────────────────────── */
.shell { min-height: 100dvh; }

main {
  padding: 18px 16px calc(var(--nav-h) + 32px + env(safe-area-inset-bottom));
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  outline: none;
}

.nav {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 20;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.brand, .nav-foot { display: none; }
.tabs { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0 4px; list-style: none; height: var(--nav-h); }
.tabs a {
  display: grid; place-items: center; gap: 0; align-content: center;
  height: 100%; color: var(--ink-2); text-decoration: none; font-size: 12px; font-weight: 600;
  position: relative;
}
.tabs .ti { font-size: 22px; line-height: 1.1; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"] .ti { transform: translateY(-3px) scale(1.12); }
.tabs a[aria-current="page"]::before {
  content: ""; position: absolute; top: 6px; width: 44px; height: 34px; border-radius: 14px;
  background: color-mix(in srgb, var(--saffron) 35%, transparent); z-index: -1;
}

@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: 248px 1fr; }
  .nav {
    position: sticky; top: 0; inset: auto; height: 100dvh; padding: 26px 18px;
    border-top: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 28px;
    background: color-mix(in srgb, var(--card) 60%, transparent);
  }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); padding-inline: 8px; }
  .brand-mark svg { width: 42px; height: 42px; display: block; transition: transform .5s; }
  .brand:hover .brand-mark svg { transform: rotate(-20deg); }
  .brand-text { font: 700 26px/1 var(--f-display); letter-spacing: -0.02em; }
  .brand-text em { color: var(--tomato); font-weight: 500; }
  .tabs { display: flex; flex-direction: column; height: auto; gap: 4px; padding: 0; }
  .tabs a { display: flex; justify-content: flex-start; gap: 12px; padding: 12px 14px; font-size: 16px; border-radius: 14px; height: auto; }
  .tabs a:hover { background: var(--card-2); color: var(--ink); }
  .tabs a[aria-current="page"] { background: var(--ink); color: var(--paper); }
  .tabs a[aria-current="page"]::before { display: none; }
  .tabs a[aria-current="page"] .ti { transform: none; }
  .nav-foot { display: block; margin-top: auto; font-size: 13px; color: var(--ink-3); padding-inline: 8px; }
  main { padding: 34px 40px 60px; }
}

/* ── Cabeceras de vista ─────────────────────────────────── */
.view-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 20px; margin-bottom: 22px; }
.view-head h1 { font-size: clamp(38px, 9vw, 64px); }
.view-head .kicker { font: 600 12px/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; display: block; }
.view-head .actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Botones ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line-2);
  background: var(--card); color: var(--ink); font-weight: 650; font-size: 15px; text-decoration: none;
  transition: transform .15s, background .2s, box-shadow .2s; white-space: nowrap;
}
.btn:hover { background: var(--card-2); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--tomato); color: var(--tomato-ink); border-color: transparent; box-shadow: 0 8px 20px -10px var(--tomato); }
.btn.primary:hover { background: color-mix(in srgb, var(--tomato) 88%, black); }
.btn.ink { background: var(--ink); color: var(--paper); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn.icon { width: 44px; padding: 0; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .spinner { width: 16px; height: 16px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: var(--card-2); color: var(--ink-2); border: 1px solid var(--line);
  white-space: nowrap;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.p-legumbre { --pc: var(--p-legumbre); }
.p-pescado { --pc: var(--p-pescado); }
.p-huevo { --pc: var(--p-huevo); }
.p-ave { --pc: var(--p-ave); }
.p-carne { --pc: var(--p-carne); }
.p-vegetal { --pc: var(--p-vegetal); }
.chip.prot { color: #fff; background: var(--pc); border-color: transparent; }
.chip.prot.p-huevo { color: #2a1d00; }
.chip.prot .dot { background: currentColor; }

.spinner {
  width: 22px; height: 22px; border-radius: 50%; display: inline-block;
  border: 3px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; gap: 12px; align-items: center; justify-content: center; min-height: 60vh; color: var(--ink-2); font-family: var(--f-display); font-size: 22px; }

/* Filtros en fila desplazable */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -16px 8px; padding-inline: 16px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line-2);
  background: transparent; font-weight: 600; font-size: 14px; color: var(--ink-2);
}
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (min-width: 960px) { .filters { margin-inline: 0; padding-inline: 2px; flex-wrap: wrap; } }

/* ── SEMANA ─────────────────────────────────────────────── */
.weekbar { display: flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; box-shadow: var(--shadow); }
.weekbar .range { font: 600 16px/1 var(--f-display); padding: 0 10px; min-width: 128px; text-align: center; }

.balance {
  position: relative; overflow: hidden;
  display: grid; gap: 18px; grid-template-columns: auto 1fr; align-items: center;
  background: var(--ink); color: var(--paper); border-radius: var(--r-l); padding: 22px; margin-bottom: 26px;
  box-shadow: var(--shadow-lift);
}
.balance::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--saffron) 45%, transparent), transparent 70%);
  pointer-events: none;
}
.score { position: relative; width: 104px; height: 104px; display: grid; place-items: center; }
.score svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.score .num { font: 700 34px/1 var(--f-display); }
.score .num small { font-size: 15px; font-weight: 500; opacity: .7; }
.score .lbl { position: absolute; bottom: -18px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.balance h2 { font-size: 24px; margin-bottom: 4px; }
.balance h2 em { color: var(--saffron); }
.balance .sub { font-size: 14px; opacity: .75; }
.bars { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px 18px; position: relative; z-index: 1; }
.bar { display: grid; gap: 6px; }
.bar .top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.bar .top span:last-child { opacity: .7; font-variant-numeric: tabular-nums; }
.dots { display: flex; gap: 4px; flex-wrap: wrap; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--pc); }
.dots i.on { background: var(--pc); }
.dots i.over { background: repeating-linear-gradient(45deg, var(--pc) 0 2px, transparent 2px 4px); }
.dots i.school { border-style: dashed; opacity: .75; }
.balance .actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.balance .btn:not(.primary) { background: transparent; color: var(--paper); border-color: rgb(255 255 255 / 0.25); }
.balance .btn:not(.primary):hover { background: rgb(255 255 255 / 0.08); }
@media (prefers-color-scheme: dark) {
  .balance { background: #262626; color: var(--ink); }
  .balance .btn:not(.primary) { color: var(--ink); }
}
@media (min-width: 720px) {
  .balance { padding: 26px 30px; column-gap: 26px; }
  .bars { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
}

.days { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

.day {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 16px; box-shadow: var(--shadow); display: grid; gap: 10px; align-content: start;
  animation: rise .5s both cubic-bezier(.2,.8,.2,1); animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.day.weekend { background: linear-gradient(170deg, color-mix(in srgb, var(--saffron) 38%, var(--card)), var(--card) 60%); }
.day.today { border: 2px solid var(--tomato); }
.day.past .day-head::after { content: "✓ hecho"; margin-left: auto; font: 700 11px/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.day-head { display: flex; align-items: baseline; gap: 10px; }
.day-head .n { font: 700 40px/0.9 var(--f-display); letter-spacing: -0.03em; }
.day-head .w { font: italic 500 20px/1 var(--f-display); color: var(--ink-2); text-transform: capitalize; }
.day-head .tag { margin-left: auto; }
.sticker {
  position: absolute; top: -10px; right: 16px; background: var(--tomato); color: var(--tomato-ink);
  font: 700 13px/1 var(--f-ui); padding: 6px 10px; border-radius: 8px; transform: rotate(4deg);
  box-shadow: 0 6px 14px -6px var(--tomato); letter-spacing: .04em; text-transform: uppercase;
}

.meal {
  width: 100%; text-align: left; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 12px;
  background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px 12px 10px 10px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.meal:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.meal .plate {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 28px;
  background: radial-gradient(circle at 50% 50%, var(--card) 0 56%, var(--pc, var(--ink-3)) 57% 100%);
  border: 0;
  overflow: hidden;
}
.meal .plate img { width: 100%; height: 100%; object-fit: cover; }
.meal .when { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.meal .name { font: 600 17px/1.2 var(--f-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meal.empty { background: transparent; border: 2px dashed var(--line-2); }
.meal.empty .plate { background: transparent; border-style: dashed; color: var(--ink-3); font-size: 24px; }
.meal.empty .name { color: var(--ink-3); font-family: var(--f-ui); font-weight: 600; font-size: 15px; }
.meal.out .plate { background: var(--paper-2); }
.lock { font-size: 12px; }

.avatars { display: flex; flex-direction: row-reverse; justify-content: flex-end; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 15px;
  background: color-mix(in srgb, var(--mc, var(--ink-3)) 45%, var(--card)); border: 2px solid var(--card);
  margin-left: -8px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--mc) 50%, transparent);
}
.avatars .avatar:last-child { margin-left: 0; }

.school-ticket {
  position: relative; border-radius: 12px; padding: 8px 12px 8px 38px; font-size: 13.5px; line-height: 1.35; color: var(--ink-2);
  background: repeating-linear-gradient(var(--notebook) 0 19px, var(--notebook-line) 19px 20px);
  border-left: 3px solid #e26d6d;
}
.school-ticket::before { content: "🎒"; position: absolute; left: 10px; top: 7px; font-size: 16px; }
.school-ticket b { color: var(--ink); font-weight: 650; }

/* ── RECETARIO ──────────────────────────────────────────── */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.search {
  flex: 1 1 260px; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1.5px solid var(--line-2);
  border-radius: 999px; padding: 0 16px; min-height: 48px;
}
.search input { border: 0; background: transparent; outline: none; flex: 1; font-size: 16px; min-width: 0; }
.seg { display: inline-flex; background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); min-height: 38px; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

.stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 18px; color: var(--ink-2); font-size: 14px; }
.stats b { font: 700 20px/1 var(--f-display); color: var(--ink); margin-right: 4px; }

.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
@media (min-width: 720px) { .cards { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.rcard {
  position: relative; text-align: left; padding: 0; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card);
  overflow: hidden; box-shadow: var(--shadow); display: grid; grid-template-rows: auto 1fr; transition: transform .25s, box-shadow .25s;
  animation: rise .45s both; animation-delay: calc(min(var(--i, 0), 12) * 30ms);
}
.rcard:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow-lift); }
.rcard .art {
  aspect-ratio: 16 / 10; display: grid; place-items: center; font-size: 64px; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 50% 55%, rgb(255 255 255 / .28) 0 34%, transparent 35%),
    radial-gradient(circle at 85% 90%, rgb(255 255 255 / .18) 0 22%, transparent 23%),
    var(--pc);
}
.rcard .art span { filter: drop-shadow(0 10px 12px rgb(0 0 0 / 0.2)); transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.rcard:hover .art span { transform: scale(1.12) rotate(-6deg); }
.rcard .art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.rcard .body { padding: 12px 14px 14px; display: grid; gap: 8px; align-content: start; }
.rcard h3 { font-size: 19px; }
.rcard .meta { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 8px; background: var(--card); color: var(--ink);
}
.badge.own { background: var(--olive); color: #fff; }
.badge.ia { background: var(--plum); color: #fff; }
.fav { position: absolute; top: 8px; right: 10px; z-index: 1; font-size: 20px; filter: drop-shadow(0 2px 4px rgb(0 0 0 / .25)); }

/* Glosario A-Z */
.az { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.az a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; text-decoration: none; color: var(--ink); font: 600 16px/1 var(--f-display); background: var(--card); border: 1px solid var(--line); }
.az a:hover { background: var(--ink); color: var(--paper); }
.glossary section { margin-bottom: 8px; scroll-margin-top: 16px; }
.glossary h2 { position: sticky; top: 0; z-index: 2; font-size: 34px; color: var(--tomato); background: var(--paper); padding: 6px 0; font-style: italic; }
.glossary ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.glossary li button {
  width: 100%; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; text-align: left;
  border: 0; border-bottom: 1px dashed var(--line-2); background: transparent; padding: 12px 4px; min-height: 52px;
}
.glossary li button:hover { background: var(--card); }
.glossary .em { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; background: radial-gradient(circle, var(--card) 0 58%, var(--pc, var(--ink-3)) 59% 100%); }
.glossary .nm { font: 600 17px/1.2 var(--f-display); }
.glossary .nm small { display: block; font: 500 13px/1.3 var(--f-ui); color: var(--ink-3); margin-top: 2px; }

/* ── COLE ───────────────────────────────────────────────── */
.drop {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; margin-bottom: 22px;
  border: 2px dashed var(--line-2); border-radius: var(--r-l); background: var(--card);
  transition: border-color .2s, background .2s;
}
.drop.drag { border-color: var(--tomato); background: color-mix(in srgb, var(--tomato) 8%, var(--card)); }
.drop .big { font-size: 40px; }
.drop h2 { font-size: 22px; }
.drop p { color: var(--ink-2); font-size: 14px; }
@media (max-width: 560px) { .drop { grid-template-columns: auto 1fr; } .drop .btn { grid-column: 1 / -1; } }

.month { display: grid; gap: 10px; grid-template-columns: repeat(5, 1fr); }
.month .dow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-left: 4px; }
.sday {
  min-height: 132px; text-align: left; border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px; display: grid; gap: 6px; align-content: start;
  background: var(--card); border-left: 4px solid color-mix(in srgb, #e26d6d 55%, transparent);
  font-size: 13px; line-height: 1.4; color: var(--ink-2);
}
.sday .d { font: 700 20px/1 var(--f-display); color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.sday.off { opacity: .4; background: transparent; }
.sday.today { border: 2px solid var(--tomato); }
.sday .cena { font-style: italic; color: var(--ink-3); }
.pdots { display: flex; gap: 3px; }
.pdots i { width: 9px; height: 9px; border-radius: 50%; background: var(--pc); }
@media (max-width: 720px) {
  .month { grid-template-columns: 1fr; }
  .month .dow { display: none; }
  .sday { min-height: 0; }
  .sday.off { display: none; }
}

/* ── COMPRA ─────────────────────────────────────────────── */
.shop { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: start; }
.aisle { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px 18px; box-shadow: var(--shadow); }
.aisle h2 { font-size: 22px; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.aisle ul { list-style: none; margin: 0; padding: 0; }
.aisle li label { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); cursor: pointer; min-height: 44px; }
.aisle li:last-child label { border-bottom: 0; }
.aisle input[type="checkbox"] { width: 20px; height: 20px; }
.aisle .q { color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.aisle .for { display: block; font-size: 12px; color: var(--ink-3); }
.aisle label:has(input:checked) span { text-decoration: line-through; color: var(--ink-3); }

/* ── CASA ───────────────────────────────────────────────── */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.panel > h2 { font-size: 26px; margin-bottom: 4px; }
.panel > .hint { color: var(--ink-2); font-size: 14px; margin-bottom: 14px; }
.grid2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }

.members { display: grid; gap: 10px; }
.member { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; }
.member .face { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: color-mix(in srgb, var(--mc) 25%, var(--card)); border: 2px solid var(--mc); }
.member input { width: 100%; }
.member-age { grid-column: 2; display: flex; flex-wrap: wrap; align-items: end; gap: 6px 12px; }
.member-age .field { flex: 0 1 180px; }
.member-age .field span { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.member-age .stage { font-size: 13px; font-weight: 600; color: var(--ink-2); padding-bottom: 10px; }
.who small.age { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.note-age { border-left: 4px solid var(--saffron); }

.matrix { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.matrix th { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 700; text-align: center; padding: 4px; }
.matrix th:first-child { text-align: left; }
.matrix td { text-align: center; padding: 2px; }
.matrix td:first-child { text-align: left; font-weight: 600; white-space: nowrap; }

.toggle-face {
  width: 44px; height: 44px; border-radius: 50%; border: 2px dashed var(--line-2); background: transparent; font-size: 22px; display: inline-grid; place-items: center;
  filter: grayscale(1); opacity: .45; transition: all .2s;
}
.toggle-face[aria-pressed="true"], [aria-pressed="true"] > .toggle-face { filter: none; opacity: 1; border: 2px solid var(--mc); background: color-mix(in srgb, var(--mc) 22%, var(--card)); transform: scale(1.05); }

.dislikes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.dislike { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--tomato); color: #fff; border: 0; font-weight: 600; }
.dislike button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgb(0 0 0 / .22); color: #fff; font-size: 14px; line-height: 1; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.suggest button { border: 1px dashed var(--line-2); background: transparent; border-radius: 999px; padding: 4px 10px; font-size: 13px; color: var(--ink-2); min-height: 32px; }

.field { display: grid; gap: 6px; }
.field > span, .label { font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: .02em; }
.input, .field input:not([type="checkbox"]):not([type="file"]), .field textarea, .field select {
  width: 100%; border: 1.5px solid var(--line-2); background: var(--paper); border-radius: 12px; padding: 10px 12px; min-height: 44px; font-size: 16px;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--tomato); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tomato) 20%, transparent); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > .field { flex: 1 1 140px; }

.share-steps { display: grid; gap: 12px; counter-reset: s; }
.share-opt { border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; background: var(--card-2); }
.share-opt h3 { font-size: 19px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.share-opt p { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.pill { font: 700 11px/1 var(--f-ui); text-transform: uppercase; letter-spacing: .08em; padding: 5px 8px; border-radius: 6px; background: var(--olive); color: #fff; }
.pill.alt { background: var(--sea); }
.pill.warn { background: var(--saffron); color: #2a1d00; }
code { font-family: ui-monospace, "Cascadia Code", Menlo, monospace; font-size: .9em; background: var(--paper-2); padding: 2px 6px; border-radius: 6px; }

/* ── Hoja (dialog) ──────────────────────────────────────── */
.sheet {
  border: 0; padding: 0; color: var(--ink); background: var(--card);
  width: min(680px, 100%); max-width: 100%; max-height: min(92dvh, 900px);
  border-radius: var(--r-l); box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.5);
}
.sheet:modal { overscroll-behavior: contain; }
.sheet::backdrop { background: rgb(20 16 8 / 0.5); backdrop-filter: blur(3px); overflow: hidden; overscroll-behavior: contain; }
.sheet[open] { animation: sheet-in .35s cubic-bezier(.2,.9,.25,1); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(40px) scale(.98); } }
@media (max-width: 680px) {
  .sheet { margin: auto 0 0; width: 100%; border-radius: var(--r-l) var(--r-l) 0 0; max-height: 94dvh; }
  .sheet[open] { animation-name: sheet-up; }
  @keyframes sheet-up { from { transform: translateY(100%); } }
}
.sheet-inner { display: grid; grid-template-rows: auto 1fr auto; max-height: inherit; }
.sheet-head { display: flex; gap: 12px; align-items: center; padding: 18px 20px 10px; position: relative; }
.sheet-head::before { content: ""; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-2); }
.sheet-head h2 { font-size: 26px; flex: 1; }
.sheet-head .kick { display: block; font: 700 11px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.sheet-body { overflow-y: auto; padding: 6px 20px 20px; display: grid; gap: 18px; align-content: start; overscroll-behavior: contain; }
.sheet-foot { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card-2); border-radius: 0 0 var(--r-l) var(--r-l); }
.sheet-foot .spacer { flex: 1; }

.who { display: flex; gap: 10px; flex-wrap: wrap; }
.who button { display: grid; justify-items: center; gap: 4px; border: 0; background: transparent; font-size: 12px; font-weight: 600; color: var(--ink-2); min-width: 60px; }
.who .toggle-face { width: 52px; height: 52px; font-size: 26px; }

.pick { display: grid; gap: 8px; }
.pick-item {
  width: 100%; display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; text-align: left;
  padding: 8px 12px 8px 8px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card-2);
}
.pick-item:hover { border-color: var(--line-2); }
.pick-item[aria-pressed="true"] { border-color: var(--tomato); background: color-mix(in srgb, var(--tomato) 8%, var(--card)); }
.pick-item .plate { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: radial-gradient(circle, var(--card) 0 58%, var(--pc, var(--ink-3)) 59% 100%); overflow: hidden; }
.pick-item .plate img { width: 100%; height: 100%; object-fit: cover; }
.pick-item .nm { font: 600 16px/1.2 var(--f-display); }
.pick-item .why { font-size: 12.5px; color: var(--ink-3); display: block; margin-top: 2px; }
.pick-item .sc { font: 700 12px/1 var(--f-ui); color: var(--olive); }

.recipe-hero { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; }
.recipe-hero .art { width: 96px; height: 96px; border-radius: 24px; display: grid; place-items: center; font-size: 52px; background: var(--pc); overflow: hidden; transform: rotate(-3deg); }
.recipe-hero .art img { width: 100%; height: 100%; object-fit: cover; }
.photo-full { border-radius: var(--r-m); max-height: 280px; width: 100%; object-fit: cover; }
.ing { list-style: none; padding: 0; margin: 0; columns: 2 220px; column-gap: 24px; }
.ing li { break-inside: avoid; padding: 6px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 8px; }
.ing li b { font-variant-numeric: tabular-nums; min-width: 64px; color: var(--tomato); font-weight: 650; }
.ing li.bad { color: var(--tomato); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 10px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.steps li::before { content: counter(st); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 700 15px/1 var(--f-display); }
.note { background: color-mix(in srgb, var(--olive) 12%, var(--card)); border-left: 4px solid var(--olive); padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.warn-note { background: color-mix(in srgb, var(--tomato) 10%, var(--card)); border-left-color: var(--tomato); }
.servings { display: inline-flex; align-items: center; gap: 6px; background: var(--card-2); border-radius: 999px; padding: 4px; border: 1px solid var(--line); }
.servings button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--card); font-weight: 700; }
.servings span { min-width: 92px; text-align: center; font-weight: 600; font-size: 14px; }

.options3 { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.option {
  position: relative; display: grid; gap: 6px; text-align: left; padding: 18px; border-radius: var(--r-m); border: 1.5px solid var(--line-2); background: var(--card-2);
  transition: transform .2s, border-color .2s;
}
.option:hover { transform: translateY(-3px); border-color: var(--tomato); }
.option .big { font-size: 36px; }
.option b { font: 600 19px/1.1 var(--f-display); }
.option span { color: var(--ink-2); font-size: 13.5px; }
.option input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 14px; border: 2px solid var(--card); box-shadow: var(--shadow); }

.thinking { display: grid; justify-items: center; gap: 14px; padding: 30px 10px; text-align: center; color: var(--ink-2); }
.thinking .pot { font-size: 54px; animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(6deg); } }

.empty-state { text-align: center; padding: 40px 16px; color: var(--ink-2); display: grid; gap: 10px; justify-items: center; }
.empty-state .big { font-size: 56px; }
.empty-state h2 { font-size: 26px; color: var(--ink); }

/* Toasts */
.toasts { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lift); font-weight: 600; font-size: 14.5px; animation: toast 3.4s both; }
.toast.err { background: var(--tomato); color: var(--tomato-ink); }
@keyframes toast { 0% { opacity: 0; transform: translateY(12px); } 8%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@media (min-width: 960px) { .toasts { bottom: 24px; left: calc(50% + 124px); } }

/* Login */
.login { min-height: 80dvh; display: grid; place-items: center; }
.login form { background: var(--card); padding: 32px 26px; border-radius: var(--r-l); box-shadow: var(--shadow-lift); display: grid; gap: 14px; width: min(380px, 100%); text-align: center; }
.login h1 { font-size: 40px; }
.login input { text-align: center; font-size: 28px; letter-spacing: .4em; }

/* ════ Mejoras: avisos, reto, temporada, valoraciones, despensa, reglas ═══ */
.week-extras { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin: -8px 0 24px; }
.xcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px 18px; box-shadow: var(--shadow); display: grid; gap: 8px; align-content: start; }
.xcard h3 { font-size: 20px; }
.xcard p, .xcard li { font-size: 14.5px; color: var(--ink-2); }
.xcard ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.xcard b { color: var(--ink); }
.xcard-alert { border: 2px solid var(--tomato); }
.xcard-challenge { background: linear-gradient(160deg, color-mix(in srgb, var(--saffron) 30%, var(--card)), var(--card) 70%); }
.xcard .btn { justify-self: start; }
.season-list { display: flex; flex-wrap: wrap; gap: 6px; }
.season-list .chip { background: color-mix(in srgb, var(--olive) 16%, var(--card)); color: var(--ink); border-color: color-mix(in srgb, var(--olive) 35%, transparent); }
.kcal { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.day-head .tag + .kcal { margin-left: 0; }
.rated { letter-spacing: -2px; font-size: 13px; }

.rate-box { display: grid; gap: 8px; background: var(--card-2); border-radius: var(--r-m); padding: 12px 14px; }
.rate-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rate-who { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.rate-who .avatar { margin: 0; }
.rate-btns { display: flex; gap: 6px; }
.rate { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--card); font-size: 22px; filter: grayscale(.7); opacity: .65; transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
.rate:hover { opacity: 1; filter: none; }
.rate[aria-pressed="true"] { filter: none; opacity: 1; border-color: var(--tomato); background: color-mix(in srgb, var(--tomato) 14%, var(--card)); transform: scale(1.12); }

.nutri { display: grid; gap: 8px; }
.nutri-empty { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--card-2); border-radius: var(--r-m); padding: 10px 14px; font-size: 14px; color: var(--ink-2); }
.nutri-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.nutri-grid span { display: grid; gap: 2px; background: var(--card-2); border-radius: 14px; padding: 10px 12px; text-align: center; }
.nutri-grid b { font: 700 20px/1 var(--f-display); color: var(--ink); }
.nutri-grid small { font-size: 12px; color: var(--ink-3); font-weight: 600; }

.tasks { display: grid; gap: 10px; }
.task { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: start; background: var(--card-2); border-radius: var(--r-m); padding: 12px 14px; }
.task-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: var(--card); }
.task h3 { font-size: 18px; margin-bottom: 4px; }
.task p { font-size: 14px; color: var(--ink-2); }
.tpl-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; }

.rules { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rule { background: var(--sea); }
.rule-form { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); align-items: end; }
.rule-form .rule-what { grid-column: 1 / -1; }
.rule-form .btn { grid-column: 1 / -1; justify-self: start; }
.pantry-item { background: var(--olive); }
.aisle .have-btn { min-height: 34px; width: 34px; padding: 0; opacity: .55; }
.aisle .have-btn:hover { opacity: 1; }
.aisle li label:has(.have-btn) { grid-template-columns: 24px 1fr auto auto; }
.aisle-home { background: color-mix(in srgb, var(--olive) 10%, var(--card)); }
.aisle-home li label { grid-template-columns: 24px 1fr auto; color: var(--ink-2); }

/* Arrastrar platos (ratón) */
.meal.lifted { position: relative; z-index: 30; scale: 1.03; box-shadow: var(--shadow-lift); pointer-events: none; cursor: grabbing; }
.meal.drop-target { outline: 3px dashed var(--tomato); outline-offset: 3px; }
.dragging-meal, .dragging-meal * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }
@media (hover: hover) and (pointer: fine) { .meal[data-drag] { cursor: grab; } }

/* ════ Modo cocina ═════════════════════════════════════════ */
.cook {
  inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: #141414; color: #f5f5f5;
}
.cook[open] { display: grid; grid-template-rows: auto auto 1fr auto auto; grid-template-columns: minmax(0, 1fr); }
.cook:modal { overscroll-behavior: contain; }
.cook::backdrop { background: #141414; overflow: hidden; overscroll-behavior: contain; }
.cook-top { display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 16px 10px; }
.cook-x { width: 46px; height: 46px; border-radius: 50%; border: 0; background: #2a2a2a; color: #fff; font-size: 18px; flex: none; }
.cook-title { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.cook-title span { font-size: 30px; }
.cook-title h1 { font: 600 clamp(18px, 4vw, 26px)/1.1 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cook-lock { font: 600 12.5px var(--f-ui); color: #e0e0e0; white-space: nowrap; flex: none; background: #2a2a2a; border: 0; border-radius: 999px; padding: 8px 12px; min-height: 40px; }
.cook-lock:disabled { background: transparent; color: #bdbdbd; }
@media (max-width: 520px) { .cook-lock { max-width: 24px; overflow: hidden; } }
.cook-progress { height: 6px; background: #2a2a2a; margin: 0 16px; border-radius: 6px; overflow: hidden; }
.cook-progress span { display: block; height: 100%; width: 0; background: var(--saffron); transition: width .4s; }
.cook-body { overflow-y: auto; padding: 26px clamp(16px, 6vw, 80px); max-width: 980px; width: 100%; margin-inline: auto; overscroll-behavior: contain; }
.cook-kicker { font: 700 13px/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--saffron); margin-bottom: 14px; }
.cook-big { font-size: clamp(30px, 6vw, 46px); margin-bottom: 18px; }
.cook-step { font: 500 clamp(26px, 5.4vw, 44px)/1.3 var(--f-display); letter-spacing: -0.01em; }
.cook-ing, .cook-prep { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cook-ing label { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid #2c2c2c; font-size: clamp(18px, 3.4vw, 24px); cursor: pointer; }
.cook-ing input { width: 26px; height: 26px; accent-color: var(--saffron); flex: none; }
.cook-ing label:has(input:checked) span { text-decoration: line-through; color: #8a8a8a; }
.cook-prep li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; font-size: 17px; color: #d6d6d6; padding: 6px 0; }
.cook-prep button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #2a2a2a; color: #fff; font-weight: 700; }
.cook-timers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cook-tbtn { min-height: 56px; padding: 10px 20px; border-radius: 999px; border: 0; background: var(--saffron); color: #1b1b1b; font: 700 18px var(--f-ui); }
.cook-used { margin-top: 22px; color: #a8a8a8; font-size: 16px; }
.cook-end { text-align: center; display: grid; gap: 12px; justify-items: center; padding-top: 6vh; color: #d6d6d6; font-size: 18px; }
.cook-end span { font-size: 72px; }
.cook-timerbox { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px; }
.cook-timerbox:empty { display: none; }
.ctimer { flex: none; display: grid; grid-template-columns: auto auto auto; grid-template-areas: "t p s" "l l l"; align-items: center; gap: 2px 8px; background: #262626; border-radius: 16px; padding: 10px 12px; margin-bottom: 10px; }
.ctimer.done { background: var(--tomato); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.04); } }
.ct-time { grid-area: t; font: 700 26px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.ct-label { grid-area: l; font-size: 12px; color: #d0d0d0; }
.ct-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .12); color: #fff; font-weight: 700; font-size: 13px; }
.cook-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); }
.cook-prev, .cook-next { min-height: 64px; border-radius: 20px; border: 0; font: 700 20px var(--f-ui); }
.cook-prev { background: #2a2a2a; color: #fff; }
.cook-prev:disabled { opacity: .35; }
.cook-next { background: var(--tomato); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

@media print {
  .nav, .toolbar, .actions, .btn { display: none !important; }
  body { background: #fff; }
}

@media (max-width: 520px) {
  .pick-item .chip .t { display: none; }
  .pick-item .chip { padding: 6px; }
  .meal { grid-template-columns: 48px 1fr; }
  .meal .plate { width: 48px; height: 48px; font-size: 24px; }
  .meal .avatars { grid-column: 2; justify-self: start; }
  .balance .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .balance .actions .btn { min-height: 42px; padding: 8px 10px; font-size: 13.5px; white-space: normal; text-align: center; line-height: 1.15; }
  .balance .actions .btn.primary { grid-column: 1 / -1; min-height: 48px; font-size: 15px; }
}
@media (max-width: 719px) {
  .rcard .art { font-size: 46px; aspect-ratio: 4 / 3; }
  .rcard h3 { font-size: 16px; }
  .rcard .body { padding: 10px 11px 12px; }
  .rcard .meta .chip { padding: 3px 7px; font-size: 12px; }
  .rcard .meta .chip.prot .t { display: none; }
  .badge { font-size: 9.5px; padding: 4px 7px; }
  .stats { font-size: 13px; }
}
.aisle li label > span:nth-child(2) { min-width: 0; display: block; }
.aisle li label > span:nth-child(2)::first-letter { text-transform: uppercase; }
.aisle .for { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
