/* ============================================================
   The Pantry — "Sunday Kitchen"
   cream/linen · pine ink · terracotta · Fraunces + Inter
   ============================================================ */
:root {
  --cream: #FAF6EF;
  --linen: #F3ECDF;
  --linen-deep: #EAE0CC;
  --card: #FFFDF8;
  --pine: #1F3A2E;
  --pine-deep: #16291F;
  --pine-soft: #3D5C4D;
  --terra: #C4673B;
  --terra-deep: #A6532E;
  --gold: #B8935A;
  --ink: #26312B;
  --ink-soft: #5C665F;
  --danger: #A63A2E;
  --ok: #4A7C59;
  --shadow-s: 0 1px 2px rgba(31, 58, 46, .06), 0 2px 8px rgba(31, 58, 46, .05);
  --shadow-m: 0 2px 6px rgba(31, 58, 46, .07), 0 10px 28px rgba(31, 58, 46, .09);
  --shadow-l: 0 6px 16px rgba(31, 58, 46, .10), 0 24px 56px rgba(31, 58, 46, .14);
  --r: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(.33, 1, .48, 1);
  --ease-pop: cubic-bezier(.34, 1.45, .5, 1);
  --nav-h: 64px;
  --font-d: "Fraunces", Georgia, serif;
  --font-u: "Inter", -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-u);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(184, 147, 90, .10), transparent 60%),
    radial-gradient(900px 420px at -10% 0%, rgba(196, 103, 59, .07), transparent 55%),
    var(--cream);
  color: var(--ink);
  min-height: 100dvh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-d); font-weight: 600; line-height: 1.12; text-wrap: balance; color: var(--pine); letter-spacing: -.015em; }
::selection { background: rgba(196, 103, 59, .25); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout: sidebar (desktop) / tab bar (phone) ---------- */
.main { max-width: 1180px; margin: 0 auto; padding: clamp(16px, 3vw, 40px); padding-bottom: calc(var(--nav-h) + 28px); }

.nav {
  position: fixed; z-index: 40; inset: auto 0 0 0; height: var(--nav-h);
  display: flex; align-items: stretch; justify-content: space-around;
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--linen-deep);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav__brand, .nav__out { display: none; }
.nav__links { display: flex; flex: 1; justify-content: space-around; }
.nav__link {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; text-decoration: none; color: var(--ink-soft);
  font-size: .68rem; font-weight: 600; letter-spacing: .02em;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.nav__icon { font-size: 1.35rem; line-height: 1; transition: transform .25s var(--ease-pop); }
.nav__link.is-active { color: var(--terra-deep); }
.nav__link.is-active .nav__icon { transform: translateY(-2px) scale(1.12); }
.nav__link:active .nav__icon { transform: scale(.92); }

@media (min-width: 980px) {
  body { padding-left: 232px; }
  .main { padding-bottom: 48px; }
  .nav {
    inset: 0 auto 0 0; width: 232px; height: auto; flex-direction: column;
    justify-content: flex-start; border-top: 0; border-right: 1px solid var(--linen-deep);
    padding: 28px 16px;
  }
  .nav__brand { display: flex; align-items: center; gap: 10px; padding: 4px 12px 26px; }
  .nav__logo { font-size: 1.7rem; }
  .nav__name { font-family: var(--font-d); font-size: 1.28rem; font-weight: 700; color: var(--pine); }
  .nav__links { flex-direction: column; flex: initial; gap: 4px; }
  .nav__link {
    flex-direction: row; justify-content: flex-start; gap: 12px;
    font-size: .95rem; font-weight: 500; padding: 11px 14px; border-radius: 11px;
  }
  .nav__icon { font-size: 1.2rem; }
  .nav__link:hover { background: var(--linen); color: var(--pine); }
  .nav__link.is-active { background: var(--pine); color: var(--cream); box-shadow: var(--shadow-s); }
  .nav__out {
    display: block; margin-top: auto; padding: 10px 14px; font-size: .84rem;
    color: var(--ink-soft); text-decoration: none; border-radius: 10px;
  }
  .nav__out:hover { background: var(--linen); color: var(--pine); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: transform .18s var(--ease-pop), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  cursor: pointer;
}
.btn--primary { background: var(--terra); color: #FFF8F2; box-shadow: 0 2px 10px rgba(196, 103, 59, .34); }
.btn--primary:hover { background: var(--terra-deep); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(196, 103, 59, .4); }
.btn--primary:active { transform: translateY(0) scale(.98); }
.btn--pine { background: var(--pine); color: var(--cream); box-shadow: var(--shadow-s); }
.btn--pine:hover { background: var(--pine-deep); transform: translateY(-1px); box-shadow: var(--shadow-m); }
.btn--ghost { background: transparent; color: var(--pine); border: 1.5px solid var(--linen-deep); }
.btn--ghost:hover { border-color: var(--pine-soft); background: var(--card); }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: .84rem; }

/* ---------- login ---------- */
.login { min-height: calc(100dvh - var(--nav-h) - 60px); display: grid; place-items: center; }
@media (min-width: 980px) { .login { min-height: calc(100dvh - 120px); } }
.login__card {
  width: min(420px, 92vw); background: var(--card); border: 1px solid var(--linen-deep);
  border-radius: var(--r-lg); box-shadow: var(--shadow-l); padding: clamp(30px, 6vw, 48px);
  text-align: center; animation: rise .7s var(--ease) both;
}
.login__mark { font-size: 3rem; margin-bottom: 8px; animation: sway 5s ease-in-out infinite; }
.login__title { font-size: clamp(2rem, 6vw, 2.6rem); }
.login__sub { color: var(--ink-soft); margin: 6px 0 22px; font-size: .95rem; }
.login__error { background: #FBEBE8; color: var(--danger); border-radius: 10px; padding: 10px 14px; font-size: .88rem; margin-bottom: 14px; }
.login__form { display: grid; gap: 12px; }
.login__input {
  min-height: 48px; border: 1.5px solid var(--linen-deep); border-radius: 12px;
  padding: 10px 16px; background: var(--cream); text-align: center; font-size: 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.login__input:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px rgba(196, 103, 59, .14); }
.login__btn { width: 100%; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* ---------- shared bits ---------- */
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: clamp(16px, 3vw, 26px); flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.page-head .sub { color: var(--ink-soft); font-size: .93rem; margin-top: 4px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px); transform: translateX(-50%) translateY(20px);
  background: var(--pine-deep); color: var(--cream); padding: 11px 20px; border-radius: 999px;
  font-size: .9rem; font-weight: 500; box-shadow: var(--shadow-l); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease); z-index: 90; max-width: 92vw; text-align: center;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 980px) { .toast { bottom: 26px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- inventory board ---------- */
.zone-switch { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.zone-switch::-webkit-scrollbar { display: none; }
.zone-switch__btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; min-height: 44px;
  padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--linen-deep);
  font-weight: 600; font-size: .9rem; color: var(--ink-soft); white-space: nowrap;
  transition: all .2s var(--ease);
}
.zone-switch__btn.is-on { background: var(--pine); border-color: var(--pine); color: var(--cream); box-shadow: var(--shadow-s); }
.zone-switch__n { background: rgba(255,255,255,.22); border-radius: 999px; padding: 1px 8px; font-size: .74rem; }
.zone-switch__btn:not(.is-on) .zone-switch__n { background: var(--linen); }

.board { display: block; }
.zone { display: none; }
.zone.is-on { display: block; }
.zone__title { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; margin-bottom: 12px; }
.zone__count { font-family: var(--font-u); font-size: .74rem; font-weight: 600; color: var(--ink-soft); background: var(--linen); border-radius: 999px; padding: 2px 9px; }

@media (min-width: 980px) {
  .zone-switch { display: none; }
  .board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .zone { display: block; background: rgba(243, 236, 223, .55); border: 1px solid var(--linen-deep); border-radius: var(--r-lg); padding: 14px 10px; min-height: 300px; }
}

.zone__list { display: grid; gap: 10px; min-height: 40px; }
.card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--linen-deep); border-radius: var(--r);
  padding: 9px 36px 9px 9px; box-shadow: var(--shadow-s);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .25s var(--ease);
  touch-action: pan-y;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.card--held { transform: scale(1.03) rotate(1.2deg); box-shadow: var(--shadow-l); }
.card--ghost { opacity: .35; background: var(--linen); border-style: dashed; }
.card--drag { opacity: .95; }
.card--new { animation: rise .5s var(--ease-pop) both; }
.card.is-out { opacity: .62; }
.card.is-out .card__name { text-decoration: line-through; text-decoration-color: rgba(38,49,43,.4); }
.card__emoji {
  font-size: 1.5rem; width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--linen); border-radius: 12px; transition: transform .2s var(--ease-pop), background .2s var(--ease);
}
.card__emoji:hover { transform: scale(1.1); background: var(--linen-deep); }
.card__body { display: flex; flex-direction: column; min-width: 0; }
.card__name { font-weight: 600; font-size: .95rem; color: var(--pine); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__unit { font-size: .72rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.card__qty { display: flex; align-items: center; gap: 2px; }
.qbtn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.35rem; font-weight: 600; color: var(--pine); background: var(--linen);
  transition: background .15s var(--ease), transform .12s var(--ease-pop);
  user-select: none; -webkit-user-select: none;
}
.qbtn:hover { background: var(--linen-deep); }
.qbtn:active { transform: scale(.88); }
.qbtn--plus { background: rgba(196, 103, 59, .14); color: var(--terra-deep); }
.qbtn--plus:hover { background: rgba(196, 103, 59, .24); }
.card__num {
  font-family: var(--font-d); font-size: 1.5rem; font-weight: 600; color: var(--pine);
  min-width: 34px; text-align: center; font-variant-numeric: tabular-nums;
  background: none; border: 0; padding: 2px 4px; border-radius: 8px; cursor: pointer;
  transition: background .15s var(--ease);
}
.card__num:hover { background: var(--linen); }
.card__numedit {
  width: 62px; font-family: var(--font-d); font-size: 1.3rem; font-weight: 600; text-align: center;
  color: var(--pine); border: 2px solid var(--terra); border-radius: 9px; padding: 2px 4px;
  font-variant-numeric: tabular-nums; background: var(--card);
}
.card__num.pulse { animation: pulse .3s var(--ease-pop); }
@keyframes pulse { 0% { transform: scale(1); } 45% { transform: scale(1.28); color: var(--terra); } 100% { transform: scale(1); } }
.card__zero {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #FBF1E9; border-radius: 10px; padding: 8px 12px; font-size: .82rem; color: var(--terra-deep);
}
.card__zero-btn { font-weight: 700; color: var(--terra-deep); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.card__zero-btn:disabled { opacity: .6; text-decoration: none; }

.add { margin-top: 12px; position: relative; }
.add__wrap { display: flex; gap: 8px; }
.add__input {
  flex: 1; min-width: 0; min-height: 44px; border: 1.5px dashed var(--linen-deep); border-radius: 12px;
  padding: 8px 14px; background: transparent; font-size: .92rem;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.add__input:focus { outline: none; border-style: solid; border-color: var(--terra); background: var(--card); }
.add__suggest {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--card); border: 1px solid var(--linen-deep); border-radius: 12px;
  box-shadow: var(--shadow-l); overflow: hidden; display: grid;
}
.add__opt { display: flex; align-items: center; gap: 10px; padding: 11px 14px; font-size: .92rem; text-align: left; transition: background .12s; }
.add__opt:hover { background: var(--linen); }

/* ---------- bottom sheet / modal ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 80; background: rgba(22, 41, 31, .4);
  display: grid; place-items: end center; opacity: 0; transition: opacity .2s var(--ease);
  padding: 0 0 0 0;
}
@media (min-width: 700px) { .sheet { place-items: center; } }
.sheet.is-on { opacity: 1; }
.sheet__card {
  width: min(560px, 100vw); background: var(--card); border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 24px 22px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(24px); transition: transform .25s var(--ease); box-shadow: var(--shadow-l);
}
@media (min-width: 700px) { .sheet__card { border-radius: var(--r-lg); } }
.sheet.is-on .sheet__card { transform: none; }
.sheet__title { font-size: 1.3rem; margin-bottom: 14px; }
.field { display: grid; gap: 5px; margin-bottom: 12px; }
.field span { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  min-height: 44px; border: 1.5px solid var(--linen-deep); border-radius: 10px; padding: 8px 12px;
  background: var(--cream); width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px rgba(196,103,59,.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sheet__actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.sheet__spacer { flex: 1; }

/* desktop zone columns are narrow: cards go two-row so names breathe */
@media (min-width: 980px) {
  .card { grid-template-columns: auto minmax(0, 1fr); row-gap: 8px; padding: 11px 11px; }
  .card__qty { grid-column: 1 / -1; justify-content: space-between; background: rgba(243, 236, 223, .6); border-radius: 999px; padding: 3px; }
  .card__zero { grid-column: 1 / -1; }
  .card__body { padding-right: 26px; } /* clear the delete badge */
  .card__name { white-space: normal; line-height: 1.25; }
}

/* ---------- kitchen shelves / recipe cards ---------- */
.btn__count { background: var(--terra); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .74rem; margin-left: 4px; }
.shelf { margin-bottom: clamp(26px, 4vw, 40px); }
.shelf__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.shelf__head h2 { font-size: clamp(1.25rem, 3.4vw, 1.6rem); }
.shelf__note { font-family: var(--font-u); font-size: .8rem; font-weight: 500; color: var(--ink-soft); margin-left: 6px; }
.shelf__more { font-size: .85rem; font-weight: 600; color: var(--terra-deep); text-decoration: none; white-space: nowrap; }
.shelf__more:hover { text-decoration: underline; text-underline-offset: 3px; }
.shelf__row {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(240px, 68vw);
  gap: 14px; overflow-x: auto; padding: 4px 4px 14px; margin: 0 -4px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.shelf__row::-webkit-scrollbar { height: 8px; }
.shelf__row::-webkit-scrollbar-thumb { background: var(--linen-deep); border-radius: 999px; }
.rcard { scroll-snap-align: start; position: relative; }
.rcard__link { text-decoration: none; display: block; }
.rcard__imgwrap {
  position: relative; aspect-ratio: 8 / 5; border-radius: var(--r); overflow: hidden;
  background: var(--linen); box-shadow: var(--shadow-s);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.rcard:hover .rcard__imgwrap { box-shadow: var(--shadow-m); transform: translateY(-3px); }
.rcard__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.rcard:hover .rcard__img { transform: scale(1.05); }
.rcard__imgwrap--empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--linen), var(--linen-deep)); }
.rcard__ph { font-family: var(--font-d); font-size: 3rem; color: var(--pine-soft); opacity: .5; }
.rcard__badge {
  position: absolute; left: 10px; bottom: 10px; border-radius: 999px; padding: 4px 12px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; backdrop-filter: blur(6px);
}
.rcard__badge--go { background: rgba(74, 124, 89, .92); color: #F2F8F4; }
.rcard__badge--almost { background: rgba(196, 103, 59, .92); color: #FFF4EC; }
.rcard__title { font-size: 1rem; margin-top: 10px; line-height: 1.25; color: var(--pine);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rcard__ribbon { display: inline-block; margin-top: 4px; font-size: .68rem; font-weight: 700;
  color: var(--gold); text-transform: uppercase; letter-spacing: .1em; }
.rcard__missing { display: grid; gap: 5px; margin-top: 8px; }
.rcard__miss {
  display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--ink-soft);
  background: var(--card); border: 1px dashed var(--linen-deep); border-radius: 999px;
  padding: 6px 12px; min-height: 34px; transition: all .2s var(--ease); text-align: left;
}
.rcard__miss b { margin-left: auto; color: var(--terra-deep); font-weight: 700; white-space: nowrap; }
.rcard__miss:hover { border-color: var(--terra); background: #FDF3EC; }
.rcard__miss.is-done { opacity: .55; border-style: solid; }
.rcard__miss.is-done b::after { content: " ✓"; }

[data-reveal] { opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .55s var(--ease), transform .55s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

.empty {
  display: flex; align-items: center; gap: 14px; background: var(--card);
  border: 1px dashed var(--linen-deep); border-radius: var(--r-lg); padding: 22px;
  color: var(--ink-soft); font-size: .93rem;
}
.empty__icon { font-size: 2rem; }

.lowstock { background: var(--card); border: 1px solid var(--linen-deep); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-s); }
.lowstock__title { font-size: 1.1rem; margin-bottom: 10px; }
.lowstock__row { display: flex; flex-wrap: wrap; gap: 8px; }
.lowstock__chip {
  display: inline-flex; align-items: center; gap: 7px; background: var(--linen);
  border-radius: 999px; padding: 6px 6px 6px 14px; font-size: .85rem; font-weight: 500;
}
.lowstock__chip.is-out { background: #FBEBE8; color: var(--danger); }
.lowstock__add {
  width: 30px; height: 30px; border-radius: 50%; background: var(--card); color: var(--terra-deep);
  font-weight: 700; display: grid; place-items: center; box-shadow: var(--shadow-s);
  transition: transform .15s var(--ease-pop);
}
.lowstock__add:hover { transform: scale(1.12); }
.lowstock__add.is-done { opacity: .5; }

/* ---------- recipe browse ---------- */
.rsearch { margin-bottom: 12px; }
.rsearch__input {
  width: 100%; min-height: 50px; border: 1.5px solid var(--linen-deep); border-radius: 999px;
  padding: 10px 22px; background: var(--card); font-size: 1rem; box-shadow: var(--shadow-s);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.rsearch__input:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px rgba(196,103,59,.12); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; min-height: 40px; display: inline-flex; align-items: center; padding: 7px 16px;
  border-radius: 999px; background: var(--card); border: 1.5px solid var(--linen-deep);
  font-size: .87rem; font-weight: 600; color: var(--ink-soft); text-decoration: none;
  transition: all .2s var(--ease); white-space: nowrap;
}
.chip:hover { border-color: var(--pine-soft); color: var(--pine); }
.chip.is-on { background: var(--pine); border-color: var(--pine); color: var(--cream); }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px 14px; }
@media (min-width: 700px) { .rgrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px 18px; } }
.rgrid .rcard { text-decoration: none; }
.rgrid__empty { grid-column: 1 / -1; }
.rcard__heart { position: absolute; top: 8px; right: 8px; font-size: 1rem; filter: drop-shadow(0 1px 3px rgba(0,0,0,.3)); }
.loadmore { display: grid; place-items: center; padding: 26px 0 8px; }

/* ---------- recipe detail ---------- */
.rd { max-width: 880px; margin: 0 auto; }
.rd__hero {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9;
  background: var(--linen); box-shadow: var(--shadow-m); margin-bottom: 18px;
}
.rd__hero--empty {
  aspect-ratio: auto; height: 130px; display: grid; place-items: center; font-size: 2.6rem;
  background:
    radial-gradient(340px 90px at 12% 110%, rgba(196, 103, 59, .16), transparent 70%),
    radial-gradient(300px 100px at 88% -10%, rgba(184, 147, 90, .2), transparent 70%),
    linear-gradient(135deg, var(--linen), var(--linen-deep));
}
.rd__blur { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px);
  object-fit: cover; filter: blur(36px) saturate(1.3); opacity: .8; }
.rd__img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.rd__head { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.rd__title { font-size: clamp(1.6rem, 5vw, 2.3rem); }
.rd__heart { font-size: 1.7rem; min-width: 52px; min-height: 52px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--linen-deep); box-shadow: var(--shadow-s);
  transition: transform .18s var(--ease-pop); }
.rd__heart:hover { transform: scale(1.1); }
.rd__heart.is-on { animation: heartbeat .45s var(--ease-pop); }
@keyframes heartbeat { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
.rd__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 22px; }
.rd__chip { background: var(--linen); border-radius: 999px; padding: 5px 13px; font-size: .8rem; font-weight: 600; color: var(--pine-soft); }
.rd__chip--family { background: rgba(184, 147, 90, .18); color: #7A5F37; }
.rd__cols { display: grid; gap: 26px; }
@media (min-width: 820px) { .rd__cols { grid-template-columns: 340px 1fr; align-items: start; } }
.rd__ings { background: var(--card); border: 1px solid var(--linen-deep); border-radius: var(--r-lg);
  padding: 20px; box-shadow: var(--shadow-s); position: sticky; top: 14px; }
.rd__ings h2, .rd__steps h2 { font-size: 1.25rem; margin-bottom: 12px; }
.ilist { list-style: none; display: grid; gap: 2px; }
.ilist__row { display: flex; align-items: baseline; gap: 10px; padding: 7px 4px; border-radius: 8px; font-size: .92rem; }
.ilist__mark { font-weight: 800; width: 18px; flex: 0 0 18px; text-align: center; }
.ilist__row.is-have .ilist__mark { color: var(--ok); }
.ilist__row.is-missing { background: #FDF4EE; }
.ilist__row.is-missing .ilist__mark { color: var(--terra-deep); }
.ilist__text { flex: 1; }
.ilist__add { flex: 0 0 auto; font-size: .78rem; font-weight: 700; color: var(--terra-deep);
  border: 1px dashed var(--terra); border-radius: 999px; padding: 3px 10px; min-height: 30px;
  transition: background .15s var(--ease); white-space: nowrap; }
.ilist__add:hover { background: #FBE9DE; }
.ilist__note { font-size: .76rem; color: var(--ink-soft); margin-top: 12px; }
.slist { list-style: none; display: grid; gap: 16px; }
.slist__step { display: flex; gap: 14px; align-items: start; }
.slist__no { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--pine); color: var(--cream); border-radius: 50%; font-family: var(--font-d);
  font-weight: 600; font-size: .95rem; }
.slist__step p { flex: 1; padding-top: 4px; }
.rd__notes { margin-top: 26px; position: relative; }
.rd__notebox { width: 100%; border: 1.5px solid var(--linen-deep); border-radius: var(--r);
  padding: 12px 14px; background: var(--card); resize: vertical; min-height: 80px; }
.rd__notebox:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px rgba(196,103,59,.1); }
.rd__notesaved { position: absolute; right: 4px; bottom: -22px; font-size: .78rem; color: var(--ok); font-weight: 600; }

.cookbar { position: sticky; bottom: calc(var(--nav-h) + 12px); display: grid; place-items: center; padding: 40px 0 8px; margin-top: -28px; z-index: 30; pointer-events: none;
  background: linear-gradient(to top, var(--cream) 42%, transparent); }
@media (min-width: 980px) { .cookbar { bottom: 18px; justify-items: end; padding: 40px 8px 8px 0; background: none; } }
.cookbar__btn { pointer-events: auto; font-size: 1.05rem; padding: 14px 34px; box-shadow: 0 8px 26px rgba(196,103,59,.45); }

/* ---------- cook mode ---------- */
.cook { position: fixed; inset: 0; z-index: 100; background: var(--pine-deep); color: var(--cream); display: flex; flex-direction: column; }
.cook__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px clamp(16px, 4vw, 30px); }
.cook__title { font-family: var(--font-d); font-size: 1rem; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cook__x { font-size: 1.2rem; min-width: 46px; min-height: 46px; border-radius: 50%; background: rgba(255,255,255,.1); transition: background .2s; }
.cook__x:hover { background: rgba(255,255,255,.2); }
.cook__stage { flex: 1; display: grid; place-items: center; padding: 0 clamp(20px, 6vw, 60px); cursor: pointer; user-select: none; -webkit-user-select: none; }
.cook__stepwrap { max-width: 720px; text-align: center; }
.cook__stepwrap--in { animation: stepin .4s var(--ease) both; }
@keyframes stepin { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cook__no { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.cook__body { font-family: var(--font-d); font-size: clamp(1.35rem, 3.6vw, 2.1rem); line-height: 1.4; text-wrap: balance; }
.cook__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px clamp(16px, 4vw, 30px) calc(20px + env(safe-area-inset-bottom)); }
.cook__navbtn { min-width: 62px; min-height: 62px; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 1.4rem; font-weight: 600; transition: background .2s, transform .15s var(--ease-pop); }
.cook__navbtn:hover { background: rgba(255,255,255,.2); transform: scale(1.06); }
.cook__navbtn:disabled { opacity: .3; }
.cook__navbtn--next { background: var(--terra); }
.cook__navbtn--next:hover { background: var(--terra-deep); }
.cook__dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 60vw; }
.cook__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.22); cursor: pointer; transition: background .2s, transform .2s; }
.cook__dot.is-on { background: var(--gold); transform: scale(1.15); }
.cook__done { position: absolute; inset: 0; background: rgba(22,41,31,.88); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 18px; }
.cook__donecard { width: min(560px, 94vw); max-height: 88dvh; overflow: auto; background: var(--card); color: var(--ink); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-l); animation: rise .45s var(--ease-pop) both; }
.cook__donecard h2 { font-size: 1.6rem; }
.cook__donesub { color: var(--ink-soft); margin: 6px 0 14px; }
.deduct { list-style: none; display: grid; gap: 8px; margin-bottom: 16px; }
.deduct__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--linen); border-radius: 12px; padding: 9px 12px; }
.deduct__check { display: flex; align-items: center; gap: 9px; font-size: .92rem; font-weight: 500; cursor: pointer; }
.deduct__check input { width: 19px; height: 19px; accent-color: var(--terra); }
.deduct__check em { font-style: normal; color: var(--ink-soft); font-size: .8rem; }
.deduct__ctrl { display: flex; align-items: center; gap: 6px; }
.deduct__ctrl b { min-width: 26px; text-align: center; font-family: var(--font-d); font-size: 1.1rem; }
.deduct__b { width: 38px; height: 38px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow-s); font-size: 1.1rem; font-weight: 700; color: var(--pine); }
.cook__doneactions { display: flex; gap: 10px; flex-wrap: wrap; }
.cook__doneactions .btn { flex: 1; }
.cook__zeroed { margin-top: 16px; border-top: 1px dashed var(--linen-deep); padding-top: 14px; }
.cook__zeroed p { font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.cook__zeroed div { display: grid; gap: 6px; margin-bottom: 12px; }

/* ---------- grocery list ---------- */
.gl-add { position: relative; margin-bottom: 20px; max-width: 560px; }
.gl { margin-bottom: 20px; }
.gl__head { font-size: 1.05rem; margin-bottom: 8px; }
.gl__list { list-style: none; display: grid; gap: 8px; }
.gl__row {
  display: flex; align-items: center; gap: 10px; background: var(--card);
  border: 1px solid var(--linen-deep); border-radius: var(--r); padding: 8px 10px;
  box-shadow: var(--shadow-s); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.gl__row--moving { opacity: 0; transform: translateY(8px); }
.gl__tick { min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.gl__box {
  width: 26px; height: 26px; border-radius: 9px; border: 2px solid var(--linen-deep);
  display: grid; place-items: center; font-weight: 800; color: #fff; font-size: .9rem;
  transition: all .2s var(--ease-pop); background: var(--cream);
}
.gl__tick:hover .gl__box { border-color: var(--terra); }
.gl__row.is-checked .gl__box { background: var(--ok); border-color: var(--ok); transform: scale(1.05); }
.gl__emoji { font-size: 1.25rem; }
.gl__name { flex: 1; font-weight: 500; font-size: .95rem; min-width: 0; }
.gl__row.is-checked .gl__name { text-decoration: line-through; color: var(--ink-soft); }
.gl__src { font-style: normal; font-size: .72rem; color: var(--terra-deep); background: #FBEFE7; border-radius: 999px; padding: 2px 8px; margin-left: 6px; white-space: nowrap; }
.gl__qtyctrl { display: flex; align-items: center; gap: 4px; }
.gl__qtyctrl b { min-width: 24px; text-align: center; font-family: var(--font-d); font-size: 1.05rem; }
.gl__qbtn { width: 38px; height: 38px; border-radius: 50%; background: var(--linen); font-weight: 700; font-size: 1rem; color: var(--pine); transition: background .15s; }
.gl__qbtn:hover { background: var(--linen-deep); }
.gl__del { min-width: 40px; min-height: 40px; color: var(--ink-soft); font-size: .85rem; border-radius: 50%; transition: all .15s; }
.gl__del:hover { background: #FBEBE8; color: var(--danger); }
.gl--done { border-top: 2px dashed var(--linen-deep); padding-top: 18px; margin-top: 26px; }
.gl--done .gl__row { opacity: .72; }
.gl__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- family recipe form ---------- */
.fr { max-width: 980px; }
.fr__cols { display: grid; gap: 24px; }
@media (min-width: 900px) { .fr__cols { grid-template-columns: 1fr 1fr; align-items: start; } }
.fr__drop {
  display: grid; place-items: center; min-height: 170px; border: 2px dashed var(--linen-deep);
  border-radius: var(--r-lg); background: var(--card); cursor: pointer; overflow: hidden;
  position: relative; transition: border-color .2s var(--ease);
}
.fr__drop:hover { border-color: var(--terra); }
.fr__drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fr__dropinner { position: relative; z-index: 2; background: rgba(255,253,248,.9); border-radius: 999px; padding: 8px 18px; font-size: .9rem; font-weight: 600; color: var(--pine-soft); }
.fr__rows { display: grid; gap: 8px; margin-bottom: 8px; }
.fr__row { position: relative; display: flex; gap: 8px; align-items: start; }
.fr__row .fr__input {
  flex: 1; min-width: 0; min-height: 44px; border: 1.5px solid var(--linen-deep);
  border-radius: 10px; padding: 9px 12px; background: var(--card); resize: vertical;
}
.fr__row .fr__input:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px rgba(196,103,59,.1); }
.fr__grip { align-self: center; cursor: grab; color: var(--ink-soft); font-size: 1.1rem; padding: 4px 2px; touch-action: none; }
.fr__x { min-width: 40px; min-height: 44px; color: var(--ink-soft); border-radius: 10px; transition: all .15s; }
.fr__x:hover { background: #FBEBE8; color: var(--danger); }
.fr__row .add__suggest { top: calc(100% + 4px); left: 0; right: 48px; z-index: 40; }
.fr__submit { margin-top: 22px; display: flex; justify-content: center; }
.fr__submit .btn { min-width: 260px; font-size: 1.02rem; }

/* ---------- recipe importer (add-recipe page) ---------- */
.importer { background: linear-gradient(135deg, rgba(184,147,90,.12), rgba(196,103,59,.08)), var(--card);
  border: 1px solid var(--linen-deep); border-radius: var(--r-lg); padding: 20px; margin-bottom: 22px; box-shadow: var(--shadow-s); }
.importer__head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.importer__icon { font-size: 1.6rem; }
.importer__title { font-size: 1.2rem; }
.importer__sub { color: var(--ink-soft); font-size: .88rem; margin-top: 3px; }
.importer__row { display: flex; gap: 10px; align-items: flex-end; }
.importer__input { flex: 1; min-width: 0; min-height: 48px; border: 1.5px solid var(--linen-deep); border-radius: 12px;
  padding: 12px 14px; background: var(--card); resize: none; font-size: .95rem; line-height: 1.5; }
.importer__input:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px rgba(196,103,59,.1); }
.importer__btn { flex: 0 0 auto; white-space: nowrap; }
.importer__btn:disabled { opacity: .6; cursor: wait; }
.importer__status { margin-top: 12px; font-size: .88rem; border-radius: 10px; padding: 10px 14px; }
.importer__status.is-load { background: var(--linen); color: var(--pine-soft); }
.importer__status.is-load::before { content: "⏳ "; }
.importer__status.is-ok { background: #EDF5EE; color: var(--ok); }
.importer__status.is-warn { background: #FBEFE7; color: var(--terra-deep); }

/* ---------- inventory search ---------- */
.invsearch { position: relative; margin-bottom: 14px; }
.invsearch__input::-webkit-search-cancel-button, .rsearch__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.invsearch__input { width: 100%; min-height: 46px; border: 1.5px solid var(--linen-deep); border-radius: 999px;
  padding: 10px 44px 10px 18px; background: var(--card); font-size: .95rem; box-shadow: var(--shadow-s); }
.invsearch__input:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px rgba(196,103,59,.1); }
.invsearch__clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px;
  border-radius: 50%; color: var(--ink-soft); font-size: .85rem; }
.invsearch__clear:hover { background: var(--linen); color: var(--pine); }
.invsearch__none { color: var(--ink-soft); font-size: .9rem; padding: 4px 4px 12px; }
/* while searching, show every zone stacked (mobile) so all matches are visible at once */
.board.is-searching .zone { display: block !important; margin-bottom: 14px; }
@media (max-width: 979px) { .board.is-searching { display: block; } }

/* ---------- card delete X ---------- */
.card { position: relative; }
/* always-visible quick-delete badge in the top-right corner */
.card__del {
  position: absolute; top: 4px; right: 4px; z-index: 3;
  width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center;
  font-size: .74rem; line-height: 1; color: var(--ink-soft);
  background: var(--card); border: 1px solid var(--linen-deep); box-shadow: var(--shadow-s);
  transition: transform .12s var(--ease-pop), background .15s var(--ease), color .15s, border-color .15s;
}
.card__del:hover, .card__del:focus-visible { background: #FBEBE8; border-color: var(--danger); color: var(--danger); }
.card__del:active { transform: scale(.85); }
.card--removing { opacity: 0 !important; transform: scale(.92); pointer-events: none;
  transition: opacity .16s var(--ease), transform .16s var(--ease); }

/* undo bar after a quick delete */
.undobar {
  position: fixed; left: 50%; z-index: 80;
  bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(20px);
  display: flex; align-items: center; gap: 14px;
  background: var(--pine); color: var(--cream); padding: 9px 10px 9px 18px;
  border-radius: 14px; box-shadow: var(--shadow-l); font-size: .9rem;
  opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease), transform .22s var(--ease-pop);
}
.undobar.is-on { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.undobar__btn { background: rgba(255,255,255,.18); color: var(--cream); font-weight: 700;
  padding: 7px 15px; border-radius: 10px; }
.undobar__btn:hover { background: rgba(255,255,255,.3); }
@media (min-width: 980px) { .undobar { left: calc(50% + 116px); bottom: 24px; } }

/* ---------- recipe remove ---------- */
.rd__actions { display: flex; gap: 8px; align-items: center; }
.rd__remove { width: 46px; height: 46px; border-radius: 50%; font-size: 1.1rem; background: var(--card);
  border: 1px solid var(--linen-deep); box-shadow: var(--shadow-s); transition: all .18s var(--ease); }
.rd__remove:hover { background: #FBEBE8; border-color: #E9C9C0; transform: scale(1.06); }
.rd__remove:disabled { opacity: .5; }

/* flash an existing card when "add" bumps it instead of duplicating */
.card--flash { animation: cardflash 1.2s var(--ease); }
@keyframes cardflash {
  0%, 100% { box-shadow: var(--shadow-s); }
  30% { box-shadow: 0 0 0 3px var(--terra), var(--shadow-m); }
}

/* ---------- item container-size box (edit sheet) ---------- */
.sizebox { background: var(--linen); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.sizebox__label { display: block; font-size: .82rem; font-weight: 600; color: var(--pine-soft); margin-bottom: 8px; }
.sizebox__label em { font-style: normal; font-weight: 400; color: var(--ink-soft); font-size: .78rem; }
.sizebox__row { display: flex; gap: 8px; }
.sizebox__num { flex: 1; min-width: 0; min-height: 44px; border: 1.5px solid var(--linen-deep); border-radius: 10px; padding: 8px 12px; background: var(--card); }
.sizebox__unit { flex: 0 0 auto; min-height: 44px; border: 1.5px solid var(--linen-deep); border-radius: 10px; padding: 8px 10px; background: var(--card); }
.sizebox__num:focus, .sizebox__unit:focus { outline: none; border-color: var(--terra); }

/* ---------- cook-finish receipt ---------- */
.receipt { list-style: none; display: grid; gap: 8px; margin: 6px 0 16px; }
.receipt__row { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 8px;
  background: var(--linen); border-radius: 10px; padding: 9px 12px; font-size: .9rem; }
.receipt__emoji { font-size: 1.05rem; }
.receipt__name { font-weight: 600; color: var(--pine); }
.receipt__detail { text-align: right; color: var(--ink-soft); font-size: .84rem; }
.receipt__row--measured .receipt__detail { color: var(--terra-deep); }
.receipt__row--skip { opacity: .75; }

/* ---------- meal calendar ---------- */
.wk { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.wk__nav { width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--linen-deep);
  font-size: 1.15rem; color: var(--pine); box-shadow: var(--shadow-s); transition: all .18s var(--ease); }
.wk__nav:hover { background: var(--linen); transform: scale(1.05); }
.wk__label { font-family: var(--font-d); font-size: 1.15rem; font-weight: 600; color: var(--pine); min-width: 150px; }
.wk__today { margin-left: auto; min-height: 40px; padding: 6px 16px; border-radius: 999px; background: var(--linen);
  font-size: .85rem; font-weight: 600; color: var(--pine-soft); }
.wk__today:hover { background: var(--linen-deep); }

.cal { display: grid; gap: 12px; }
@media (min-width: 900px) { .cal { grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: start; } }
.cday { background: rgba(243, 236, 223, .5); border: 1px solid var(--linen-deep); border-radius: var(--r); padding: 12px 10px; }
.cday.is-today { border-color: var(--terra); box-shadow: 0 0 0 2px rgba(196,103,59,.15); }
.cday__head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
@media (min-width: 900px) { .cday__head { flex-direction: column; gap: 0; } }
.cday__dow { font-weight: 700; font-size: .92rem; color: var(--pine); }
.cday.is-today .cday__dow { color: var(--terra-deep); }
.cday__date { font-size: .78rem; color: var(--ink-soft); }
.cday__meals { display: grid; gap: 8px; margin-bottom: 8px; }
.cday__add { width: 100%; min-height: 40px; border: 1.5px dashed var(--linen-deep); border-radius: 10px;
  color: var(--ink-soft); font-size: .84rem; font-weight: 600; transition: all .15s var(--ease); }
.cday__add:hover { border-color: var(--terra); color: var(--terra-deep); background: var(--card); }

.cmeal { background: var(--card); border: 1px solid var(--linen-deep); border-radius: 12px; padding: 8px; box-shadow: var(--shadow-s); }
.cmeal.is-cooked { opacity: .6; }
.cmeal__main { display: flex; gap: 9px; align-items: center; text-decoration: none; }
.cmeal__thumb { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 9px; overflow: hidden; background: var(--linen); display: grid; place-items: center; }
.cmeal__img { width: 100%; height: 100%; object-fit: cover; }
.cmeal__ph { font-size: 1.3rem; }
.cmeal__body { min-width: 0; display: flex; flex-direction: column; }
.cmeal__slot { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.cmeal__title { font-size: .88rem; font-weight: 600; color: var(--pine); line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cmeal__short { width: 100%; margin-top: 7px; font-size: .74rem; font-weight: 600; color: var(--terra-deep);
  background: #FBEFE7; border-radius: 8px; padding: 5px 9px; text-align: left; }
.cmeal__short:hover { background: #F7E4D6; }
.cmeal__actions { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.cmeal__cook { flex: 1; min-height: 36px; border-radius: 999px; background: var(--terra); color: #FFF8F2;
  font-size: .8rem; font-weight: 700; white-space: nowrap; padding: 4px 6px; box-shadow: 0 2px 8px rgba(196,103,59,.3); transition: all .18s var(--ease); }
.cmeal__cook:hover { background: var(--terra-deep); }
.cmeal__done { flex: 1; font-size: .8rem; font-weight: 700; color: var(--ok); }
.cmeal__x { width: 32px; height: 32px; border-radius: 50%; color: var(--ink-soft); font-size: .75rem; }
.cmeal__x:hover { background: #FBEBE8; color: var(--danger); }

/* add-meal sheet extras */
.planslots { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.planslot { flex: 1; min-width: 0; min-height: 40px; border-radius: 10px; background: var(--linen); border: 1.5px solid transparent;
  font-size: .8rem; font-weight: 600; color: var(--pine-soft); padding: 6px 8px; white-space: nowrap; }
.planslot.is-on { background: var(--pine); color: var(--cream); }
.planquick__label { display: block; color: var(--ink-soft); font-size: .84rem; padding: 8px 2px; }
.planresults { display: grid; gap: 6px; margin-top: 10px; max-height: 46vh; overflow-y: auto; }
.planresult { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; text-align: left; transition: background .12s; }
.planresult:hover { background: var(--linen); }
.planresult__thumb { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--linen); display: grid; place-items: center; }
.planresult__thumb img { width: 100%; height: 100%; object-fit: cover; }
.planresult__ph { font-size: 1.1rem; }

/* ===================== multi-user: nav side, bell, profile, share ===================== */
.nav__side {
  position: fixed; top: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: 8px;
  padding: calc(env(safe-area-inset-top) + 10px) 14px 10px;
}
.nav__bell, .nav__me {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.2rem; text-decoration: none;
  background: rgba(255, 253, 248, .92); border: 1px solid var(--linen-deep);
  box-shadow: var(--shadow-s); cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .18s var(--ease-pop), box-shadow .18s var(--ease);
}
.nav__bell:hover, .nav__me:hover { transform: translateY(-1px); box-shadow: var(--shadow-m); }
.nav__me.is-active { border-color: var(--terra); }
.nav__badge {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--terra); color: #fff; font-size: .66rem; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--cream);
}
.bellmenu {
  position: fixed; top: 60px; right: 12px; z-index: 61; width: min(360px, 92vw);
  background: var(--card); border: 1px solid var(--linen-deep); border-radius: 16px;
  box-shadow: var(--shadow-m); overflow: hidden; animation: bellIn .18s var(--ease);
}
@keyframes bellIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
.bellmenu__head { padding: 13px 16px; font-family: var(--font-d); font-weight: 700; color: var(--pine); border-bottom: 1px solid var(--linen); }
.bellmenu__list { max-height: min(70vh, 460px); overflow-y: auto; }
.bellmenu__empty { padding: 22px 16px; color: var(--ink-soft); font-size: .9rem; text-align: center; }
.bellmenu__item {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
  padding: 12px 16px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--linen); transition: background .12s;
}
.bellmenu__item:hover { background: var(--linen); }
.bellmenu__item.is-unread { background: rgba(196, 103, 59, .06); }
.bellmenu__icon { font-size: 1.2rem; }
.bellmenu__text { font-size: .9rem; line-height: 1.35; }
.bellmenu__actions { grid-column: 2; display: flex; gap: 8px; margin-top: 8px; }
.btn--xs { min-height: 30px; padding: 4px 12px; font-size: .78rem; border-radius: 9px; }

/* share toggle on recipe detail */
.rd__share {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border-radius: 22px; border: 1.5px solid var(--linen-deep); background: var(--card);
  color: var(--pine); font-weight: 600; font-size: .9rem; cursor: pointer;
  transition: all .18s var(--ease);
}
.rd__share:hover { border-color: var(--pine-soft); transform: translateY(-1px); }
.rd__share.is-on { background: var(--pine); color: var(--cream); border-color: var(--pine); }
.rcard__ribbon--shared { background: var(--linen-deep); color: var(--pine-soft); }

/* profile page */
.prof { display: grid; gap: 18px; max-width: 640px; }
.pcard { background: var(--card); border: 1px solid var(--linen-deep); border-radius: 16px; padding: clamp(16px, 3vw, 24px); box-shadow: var(--shadow-s); }
.pcard__h { font-size: 1.15rem; margin-bottom: 14px; }
.pform, .pinline { display: grid; gap: 4px; }
.pinline { grid-template-columns: 1fr auto; gap: 10px; align-items: end; margin-top: 12px; }
.pinline .field { margin-bottom: 0; }
.pform__saved { color: var(--pine-soft); font-size: .85rem; font-weight: 600; margin-top: 6px; }
.pdetails { margin: 6px 0 12px; }
.pdetails summary { cursor: pointer; color: var(--terra-deep); font-size: .88rem; font-weight: 600; padding: 4px 0; }
.pdetails[open] summary { margin-bottom: 8px; }
.pnote { color: var(--ink-soft); font-size: .9rem; line-height: 1.5; margin: 6px 0; }
.pstat { font-size: .95rem; margin-bottom: 6px; }
.pstat b { color: var(--terra-deep); }
.field__hint { font-size: .76rem; color: var(--ink-soft); line-height: 1.4; }
.pmembers { margin-top: 16px; }
.pmembers__h { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin-bottom: 8px; }
.pmembers__list { list-style: none; display: grid; gap: 8px; }
.pmembers__list li { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.pmembers__av { font-size: 1.3rem; }
.pmembers__list em { color: var(--ink-soft); font-style: normal; font-size: .82rem; }
.pmembers__tag { margin-left: auto; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--pine-soft); background: var(--linen); padding: 2px 8px; border-radius: 8px; }
.prof__out { justify-self: start; }
.login__card--wide { width: min(460px, 94vw); }
.login__foot { margin-top: 14px; font-size: .9rem; color: var(--ink-soft); }
.login__foot a { color: var(--terra-deep); font-weight: 600; }

/* desktop: cluster stays a fixed top-right float; give content top clearance so it never overlaps a page header */
@media (min-width: 980px) {
  .main { padding-top: 64px; }
  .nav__bell, .nav__me { background: var(--card); }
}

/* mobile: clear the floating bell/avatar cluster so it never covers a page header */
@media (max-width: 979px) {
  .main { padding-top: calc(env(safe-area-inset-top) + 62px); }
}

/* ===================== inventory: qty entry, grocery btn, low state, item sheet ===================== */
/* add-form quantity + low */
.add__qty { width: 58px; text-align: center; border: 1.5px solid var(--linen-deep); border-radius: 10px;
  padding: 8px 6px; font-size: .95rem; font-variant-numeric: tabular-nums; background: var(--card); }
.add__qty:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px rgba(196,103,59,.12); }
.add__low { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font-size: .84rem; color: var(--ink-soft); cursor: pointer; }
.add__low input { width: 17px; height: 17px; accent-color: var(--terra); }

/* grocery basket button (bottom-right corner, mirrors the ✕ top-right) */
.card__groc {
  position: absolute; bottom: 4px; right: 4px; z-index: 3;
  width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center;
  font-size: .8rem; line-height: 1; background: var(--card);
  border: 1px solid var(--linen-deep); box-shadow: var(--shadow-s); cursor: pointer;
  transition: transform .12s var(--ease-pop), background .15s var(--ease), border-color .15s;
}
.card__groc:hover { background: var(--linen); border-color: var(--pine-soft); }
.card__groc.is-done { background: var(--pine); border-color: var(--pine); }

/* running-low visual */
.card.is-low { border-color: #E6B266; box-shadow: 0 0 0 1px #E6B266 inset, var(--shadow-s); }
.card.is-low .card__num { color: #B87415; }
.card.is-low .card__unit::after { content: " · running low"; color: #B87415; font-weight: 700; }

/* ---- item options sheet ---- */
.isheet { display: grid; gap: 16px; margin: 6px 0 4px; }
.isheet__label { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin-bottom: 8px; }
.isheet__qtyrow { display: flex; align-items: center; gap: 10px; }
.isheet__num { flex: 1; min-width: 0; text-align: center; font-family: var(--font-d); font-size: 1.5rem; font-weight: 600;
  color: var(--pine); border: 1.5px solid var(--linen-deep); border-radius: 12px; padding: 8px; font-variant-numeric: tabular-nums; background: var(--card); }
.isheet__num:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px rgba(196,103,59,.12); }
.isheet__pills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ipill {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 8px 10px;
  border-radius: 12px; border: 1.5px solid var(--linen-deep); background: var(--card);
  color: var(--pine); font-weight: 600; font-size: .92rem; cursor: pointer; transition: all .15s var(--ease);
}
.ipill:hover { border-color: var(--pine-soft); }
.ipill.is-on { background: var(--pine); color: var(--cream); border-color: var(--pine); }
.isheet__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.isheet__low { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--pine); font-weight: 600; cursor: pointer; }
.isheet__low input { width: 19px; height: 19px; accent-color: #B87415; }
.isheet__more { margin-top: 4px; border-top: 1px solid var(--linen); padding-top: 8px; }
.isheet__more summary { cursor: pointer; color: var(--terra-deep); font-size: .88rem; font-weight: 600; padding: 4px 0; list-style: none; }
.isheet__more summary::-webkit-details-marker { display: none; }
.isheet__more summary::before { content: "⚙️ "; }
.isheet__done { margin-top: 14px; }
.isheet__done .btn { width: 100%; }

/* ===================== recipe filter/sort controls ===================== */
.rcontrols { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.rtoggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  border: 1.5px solid var(--linen-deep); background: var(--card); color: var(--pine);
  font-size: .86rem; font-weight: 600; text-decoration: none; transition: all .15s var(--ease);
}
.rtoggle:hover { border-color: var(--pine-soft); }
.rtoggle.is-on { background: var(--pine); color: var(--cream); border-color: var(--pine); }
.rtoggle__note { font-size: .74rem; opacity: .7; font-weight: 500; }
.rcontrols__spacer { flex: 1 1 auto; }
.rsort { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--ink-soft); font-weight: 600; }
.rsort__sel {
  border: 1.5px solid var(--linen-deep); border-radius: 10px; padding: 6px 10px; background: var(--card);
  color: var(--pine); font-size: .86rem; font-weight: 600; cursor: pointer;
}
.rsort__sel:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px rgba(196,103,59,.12); }

/* meal-plan: shop-for-the-week */
.wkshop { display: flex; justify-content: center; margin: -4px 0 16px; }
.wkshop .btn[hidden] { display: none; }

/* ===================== barcode scanner ===================== */
.scanbtn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 0 0 16px;
  padding: 12px; border-radius: 14px; border: 1.5px dashed var(--pine-soft); background: var(--card);
  color: var(--pine); font-weight: 700; font-size: .95rem; cursor: pointer; transition: all .15s var(--ease);
}
.scanbtn:hover { background: var(--linen); border-color: var(--pine); }
.scanner { position: fixed; inset: 0; z-index: 90; background: #0d1512; color: #fff; display: flex; flex-direction: column; }
.scanner__top { display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top) + 12px) 16px 12px; }
.scanner__title { font-family: var(--font-d); font-weight: 700; font-size: 1.1rem; }
.scanner__x { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 1rem; display: grid; place-items: center; cursor: pointer; }
.scanner__view { flex: 0 0 auto; width: 100%; max-height: 52vh; overflow: hidden; background: #000; }
.scanner__view video { width: 100% !important; height: auto !important; display: block; object-fit: cover; }
.scanner__hint { text-align: center; padding: 14px 16px; font-size: .95rem; color: #dfe8e3; min-height: 24px; }
.scanner__added { flex: 1 1 auto; overflow-y: auto; padding: 0 16px 8px; display: flex; flex-direction: column; gap: 6px; }
.scanadd { background: rgba(255,255,255,.08); border-radius: 10px; padding: 9px 12px; font-size: .9rem; animation: rise .3s var(--ease-pop) both; }
.scanadd.is-miss { background: rgba(196,103,59,.22); }
.scanner__foot { padding: 12px 16px calc(env(safe-area-inset-bottom) + 14px); }
.scanner__foot .btn { width: 100%; }
@media (min-width: 980px) { .scanner__view { max-height: 58vh; } }

/* ===================== organic ===================== */
.card.is-organic .card__name::before { content: "🌱 "; }
.card.is-organic { border-color: #Bccca8; }
.scanadd { } /* (leaf shown inline in scan list text) */
.porganic { margin-top: 16px; border-top: 1px solid var(--linen); padding-top: 14px; }
.pcheck { display: flex; align-items: flex-start; gap: 9px; font-size: .95rem; color: var(--pine); font-weight: 600; cursor: pointer; margin-bottom: 12px; }
.pcheck input { width: 19px; height: 19px; margin-top: 2px; accent-color: #5b8a3c; flex: 0 0 auto; }
.pcheck small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .82rem; margin-top: 2px; }

/* ===================== health tier ===================== */
/* Nutri-Score grade colors */
.g-a { background: #038141; color: #fff; }
.g-b { background: #85bb2f; color: #fff; }
.g-c { background: #fecb02; color: #3a2f00; }
.g-d { background: #ee8100; color: #fff; }
.g-e { background: #e63e11; color: #fff; }

/* pantry health card (home) */
.phealth { background: var(--card); border: 1px solid var(--linen-deep); border-radius: 16px; padding: 14px 16px; margin: 0 0 18px; box-shadow: var(--shadow-s); }
.phealth__row { display: flex; align-items: center; gap: 14px; }
.phealth__grade { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-d); font-weight: 800; font-size: 1.7rem; flex: 0 0 auto; }
.phealth__title { display: block; font-family: var(--font-d); font-weight: 700; font-size: 1.05rem; color: var(--pine); }
.phealth__sub { display: block; font-size: .85rem; color: var(--ink-soft); }
.phealth__least { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.phealth__leastlbl { font-size: .74rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.phealth__chip { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.phealth__chip b { font-weight: 800; margin-left: 2px; }
.phealth__empty { font-size: .92rem; color: var(--ink-soft); }
.phealth__empty b { color: var(--pine); }
.phealth__steth { font-size: 1.1rem; }

/* item health section (sheet) */
.ihealth { margin-top: 14px; border-top: 1px solid var(--linen); padding-top: 12px; }
.ihealth__hd { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin-bottom: 10px; }
.ihealth__grid { display: flex; gap: 10px; flex-wrap: wrap; }
.ihealth__cell { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 66px; background: var(--linen); border-radius: 12px; padding: 8px 12px; }
.ihealth__cell b { font-family: var(--font-d); font-size: 1.1rem; color: var(--pine); }
.ihealth__cell small { font-size: .7rem; color: var(--ink-soft); }
.ihgrade { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-d); font-weight: 800; font-size: 1.1rem; }
.ihealth__levels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ihlevel { font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--linen); color: var(--pine); }
.ihlevel--high { background: #fbe3d8; color: #b3410f; }
.ihlevel--moderate { background: #fdf2d6; color: #946a00; }
.ihlevel--low { background: #dff0d8; color: #2f6b2f; }
.ihealth__allerg { margin-top: 10px; font-size: .82rem; color: var(--terra-deep); }

/* ===================== reduce-waste ===================== */
/* cooked-from-pantry savings line */
.savings { display: flex; align-items: center; gap: 10px; background: #eef6ea; border: 1px solid #d3e7cb; border-radius: 14px; padding: 10px 14px; margin: 0 0 16px; }
.savings__icon { font-size: 1.2rem; }
.savings__txt { font-size: .92rem; color: #2f5d32; line-height: 1.4; }
.savings__txt b { font-weight: 800; color: #1f5122; }
.savings__est { color: #6f8a6a; font-size: .82rem; }

/* use-it-soon section */
.soon { background: var(--card); border: 1px solid var(--linen-deep); border-radius: 16px; padding: 16px; margin: 0 0 18px; box-shadow: var(--shadow-s); }
.soon__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.soon__head h2 { font-family: var(--font-d); font-size: 1.15rem; color: var(--pine); margin: 0; }
.soon__note { font-size: .82rem; color: var(--ink-soft); }
.soon__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.soon__chip { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--linen); color: var(--pine); border: 1px solid var(--linen-deep); }
.soon__chip em { font-style: normal; font-weight: 700; font-size: .76rem; padding: 1px 7px; border-radius: 999px; }
.soon__chip.is-warn em { background: #fdf0d4; color: #946a00; }
.soon__chip.is-exp { border-color: #f0cabb; }
.soon__chip.is-exp em { background: #fbe0d6; color: #b3410f; }
.soon__lead { margin: 14px 0 8px; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }

/* best-by chip on inventory cards */
.card__soon { display: inline-block; margin-top: 3px; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #fdf0d4; color: #946a00; width: max-content; }
.card__soon.is-exp { background: #fbe0d6; color: #b3410f; }

/* best-by editor in the item sheet */
.isheet__expiry { margin-top: 14px; }
.isheet__hint { font-style: normal; font-weight: 400; font-size: .76rem; color: var(--ink-soft); }
.isheet__expiryrow { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.isheet__date { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--linen-deep); border-radius: 10px; font: inherit; background: var(--card); color: var(--pine); }
.ipill--clear { flex: 0 0 auto; }

/* ===================== add-a-list (multi-add + voice) ===================== */
.addtools { display: flex; gap: 10px; }
.addtools .scanbtn { flex: 1; }
.scanbtn--alt { border-style: solid; border-color: var(--linen-deep); }

.bulk__hint { font-size: .88rem; color: var(--ink-soft); line-height: 1.5; margin: 0 0 12px; }
.bulk__hint b { color: var(--pine); font-weight: 700; }
.bulk__inputwrap { position: relative; }
.bulk__area { width: 100%; box-sizing: border-box; padding: 12px 46px 12px 14px; border: 1px solid var(--linen-deep); border-radius: 12px; font: inherit; line-height: 1.6; resize: vertical; background: var(--card); color: var(--pine); }
.bulk__area:focus { outline: none; border-color: var(--pine); }
.bulk__mic { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--linen-deep); background: var(--linen); font-size: 1.05rem; cursor: pointer; display: grid; place-items: center; transition: all .15s var(--ease); }
.bulk__mic:hover { border-color: var(--pine); }
.bulk__mic.is-live { background: #fbe0d6; border-color: #e6785a; animation: bulkpulse 1.1s ease-in-out infinite; }
@keyframes bulkpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(230,120,90,.45); } 50% { box-shadow: 0 0 0 6px rgba(230,120,90,0); } }
@media (prefers-reduced-motion: reduce) { .bulk__mic.is-live { animation: none; } }
.bulk__micnote { font-size: .82rem; color: #b3410f; margin: 8px 0 0; }
.bulk__results { margin-top: 12px; max-height: 34vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.bulkrow { font-size: .9rem; color: #2f5d32; padding: 5px 10px; background: #eef6ea; border-radius: 9px; }
.bulkrow.is-skip { color: #8a3b1c; background: #fbe9e2; }

/* ===================== scan a receipt ===================== */
.addtools { flex-wrap: wrap; margin-bottom: 16px; }
.addtools .scanbtn { flex: 1 1 30%; min-width: 150px; margin: 0; }

.receipt__start { display: flex; justify-content: center; padding: 8px 0 4px; }
.receipt__busy { display: flex; align-items: center; gap: 12px; padding: 18px 4px; color: var(--ink-soft); font-size: .95rem; }
.receipt__spin { width: 22px; height: 22px; flex: 0 0 auto; border: 3px solid var(--linen-deep); border-top-color: var(--pine); border-radius: 50%; animation: rspin .8s linear infinite; }
@keyframes rspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .receipt__spin { animation-duration: 2s; } }
.receipt__err { margin: 10px 0 0; padding: 10px 12px; background: #fbe9e2; color: #8a3b1c; border-radius: 10px; font-size: .9rem; }
.receipt__lead { font-size: .9rem; font-weight: 600; color: var(--ink-soft); margin: 0 0 10px; }
.receipt__rows { max-height: 46vh; overflow-y: auto; margin-top: 6px; }
.rrow { display: grid; grid-template-columns: auto 1fr 56px minmax(96px, 1.1fr); gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--linen); }
.rrow__on { width: 20px; height: 20px; accent-color: var(--pine); }
.rrow__name, .rrow__qty, .rrow__zone { padding: 8px 9px; border: 1px solid var(--linen-deep); border-radius: 9px; font: inherit; background: var(--card); color: var(--pine); min-width: 0; }
.rrow__name:focus, .rrow__qty:focus, .rrow__zone:focus { outline: none; border-color: var(--pine); }
.rrow input.rrow__on:not(:checked) ~ .rrow__name { opacity: .5; text-decoration: line-through; }

/* ===================== plan tiers ===================== */
.phealth--locked { opacity: .92; border-style: dashed; }
.phealth__lock { display: inline-block; margin-left: 6px; font-size: .78rem; font-weight: 700; color: var(--gold); background: #f6efe2; border: 1px solid #e8dcc2; border-radius: 999px; padding: 2px 10px; }

/* ===================== recipe categories + household zone ===================== */
.chips--cats { margin-top: 2px; }
.chips--cats .chip { font-size: .84rem; padding: 6px 12px; background: var(--linen); }
.chips--cats .chip.is-on { background: var(--pine); color: var(--cream); }
.zone-switch { flex-wrap: wrap; }
