@font-face {
  font-family: Manrope;
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0300-0303, U+0305-0307, U+030A-036F, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
:root {
  --paper: #f7f9f2;
  --leaf: #274832;
  --ink: #203326;
  --lime: #dcef78;
  --muted: #677361;
  --line: #dce3d4;
  --white: #fff;
  --radius: 24px;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #698510;
  outline-offset: 4px;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.045em;
  line-height: 1.08;
}
p {
  line-height: 1.65;
}
h1 {
  font-size: clamp(2.5rem, 5.6vw, 5.5rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
}
h3 {
  font-size: 1.3rem;
  line-height: 1.25;
}
img {
  display: block;
  width: 100%;
  object-fit: cover;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 0.8rem;
  line-height: 1.5;
}
.wrap {
  max-width: 1240px;
  margin: auto;
  padding: 0 36px;
}
.topbar {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: 1.8rem;
  letter-spacing: -0.08em;
  font-weight: 800;
}
.brand img {
  width: 37px;
  height: 37px;
}
.top-actions,
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row.spread {
  justify-content: space-between;
}
.btn {
  border-radius: 100px;
  padding: 15px 24px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 750;
  line-height: 1.3;
  min-height: 48px;
  background: var(--leaf);
  color: white;
}
.btn.lime {
  background: var(--lime);
  color: var(--ink);
}
.btn.soft {
  background: #e9eedd;
  color: var(--ink);
}
.btn.outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn.danger {
  background: #97352d;
}
.text-btn {
  background: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 650;
  padding: 12px 4px;
}
.icon-btn {
  border-radius: 50%;
  background: white;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
  padding-top: 35px;
  padding-bottom: 80px;
}
.hero-copy p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 470px;
  margin: 28px 0;
}
.hero-copy small {
  display: block;
  margin-top: 14px;
}
.hero-art {
  position: relative;
  padding: 18px 0 25px 24px;
}
.hero-art > img {
  height: 580px;
  border-radius: 150px 150px 32px 32px;
  object-position: 50% 60%;
}
.hero-note {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--lime);
  padding: 23px 28px;
  border-radius: 22px;
  max-width: 275px;
  transform: rotate(-4deg);
}
.hero-note strong {
  display: block;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.hero-stamp {
  position: absolute;
  right: -12px;
  top: 5px;
  border-radius: 50%;
  width: 115px;
  height: 115px;
  background: #f2dc79;
  display: grid;
  place-content: center;
  text-align: center;
  font-weight: 750;
  transform: rotate(12deg);
  font-size: 0.9rem;
  line-height: 1.4;
}
.how {
  padding: 64px 0 72px;
  border-top: 1px solid var(--line);
}
.how-heading {
  max-width: 580px;
  margin-bottom: 42px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}
.how-step .number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--lime);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 25px;
}
.how-step p {
  color: var(--muted);
  margin-top: 14px;
  max-width: 340px;
}
.closing {
  margin-bottom: 65px;
  padding: 52px;
  border-radius: 32px;
  background: var(--leaf);
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
}
.closing h2 {
  max-width: 620px;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 35px;
  font-size: 0.85rem;
  color: var(--muted);
}
.nav {
  display: flex;
  gap: 8px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 17px;
  background: none;
  border-radius: 100px;
  font-weight: 650;
}
.nav button.active {
  background: var(--lime);
}
.nav svg {
  display: none;
}
.page {
  padding: 40px 0 100px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}
.page-heading p {
  color: var(--muted);
  margin-top: 12px;
}
.summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 30px;
}
.chip {
  padding: 8px 13px;
  border-radius: 50px;
  background: #e9eedd;
  font-size: 0.83rem;
}
.chip button {
  background: none;
}
.meal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 22px;
}
.meal-card {
  position: relative;
  min-width: 0;
}
.meal-image {
  height: 250px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: #e2eacb;
  cursor: pointer;
}
.meal-image img {
  height: 100%;
  transition: transform 0.3s;
}
.meal-image:hover img {
  transform: scale(1.03);
}
.meal-image .placeholder {
  height: 100%;
  padding: 35px;
  display: flex;
  align-items: center;
  font-size: 2.5rem;
  line-height: 1.03;
  letter-spacing: -0.06em;
  font-weight: 800;
  background: #e3eaca;
  color: #405837;
  overflow: hidden;
}
.meal-card:nth-child(3n + 2) .placeholder {
  background: #eee3c5;
  color: #665a2d;
}
.meal-card:nth-child(3n) .placeholder {
  background: #e2eae0;
  color: #4c6755;
}
.meal-image .favorite {
  position: absolute;
  right: 14px;
  top: 14px;
}
.meal-image .tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: white;
  padding: 7px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
}
.favorite.on {
  color: #9a4034;
  background: #fff4ec;
}
.meal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 17px 0 9px;
}
.meal-card h3 button {
  background: none;
  padding: 0;
  text-align: left;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.035em;
}
.meal-card .description {
  font-size: 0.87rem;
  color: var(--muted);
  margin-top: 8px;
}
.meal-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
}
.meal-bottom button {
  font-size: 0.8rem;
}
.meal-bottom .text-btn {
  padding: 8px 0;
}
.empty {
  padding: 55px 25px;
  border: 1px dashed #aebd9e;
  border-radius: 24px;
  text-align: center;
  max-width: 680px;
  margin: 32px auto;
}
.empty p {
  margin: 15px 0 25px;
  color: var(--muted);
}
.notice {
  background: #edf1e2;
  padding: 18px 22px;
  border-radius: 16px;
  font-size: 0.86rem;
  line-height: 1.6;
  margin: 20px 0;
}
.notice.error {
  background: #ffebe5;
  color: #913c2c;
}
.section-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 35px 0 22px;
}
.section-line h2 {
  font-size: 1.6rem;
}
.search-row {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}
.search-row input {
  flex: 1;
  min-width: 0;
}
.field {
  display: block;
  margin-bottom: 20px;
}
.field > span {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}
input,
select,
textarea {
  padding: 14px 16px;
  border: 1px solid #cdd7c3;
  background: white;
  border-radius: 12px;
  color: var(--ink);
  max-width: 100%;
}
input[type="number"] {
  width: 100px;
}
input[type="checkbox"] {
  accent-color: var(--leaf);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
input[type="range"] {
  padding: 0;
  width: 100%;
  accent-color: var(--leaf);
}
.field input:not([type="checkbox"]):not([type="range"]),
.field select {
  width: 100%;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  text-align: left;
  background: #f5f7f0;
  border: 1.5px solid transparent;
  border-radius: 16px;
  min-height: 70px;
}
.choice.selected {
  border-color: var(--leaf);
  background: #edf4cf;
}
.choice .choice-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.choice strong {
  font-size: 0.94rem;
  display: block;
}
.choice small {
  display: block;
  margin-top: 3px;
}
.choice.wide {
  grid-column: 1/-1;
}
.progress-track {
  height: 5px;
  background: #e8eddf;
  border-radius: 10px;
  margin: 24px 0 30px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  background: var(--leaf);
  transition: width 0.2s;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.dialog-head .brand {
  font-size: 1.5rem;
}
.dialog-subtitle {
  margin: 15px 0 28px;
  color: var(--muted);
}
dialog {
  border: 0;
  padding: 0;
  background: white;
  color: var(--ink);
  border-radius: 30px;
  max-width: min(740px, calc(100vw - 32px));
  width: 740px;
  max-height: 90dvh;
  box-shadow: 0 25px 100px #20332630;
}
dialog::backdrop {
  background: #20332670;
  backdrop-filter: blur(5px);
}
dialog[open] {
  animation: appear 0.2s ease-out;
}
.dialog-inner {
  padding: 32px;
}
.dialog-inner.narrow {
  max-width: 500px;
  margin: auto;
}
.dialog-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  align-items: center;
}
.dialog-actions .btn:last-child {
  margin-left: auto;
}
.dialog-title {
  font-size: 2.2rem;
}
.account-form .btn {
  width: 100%;
}
.account-form p {
  margin-bottom: 22px;
}
.account-form .field {
  text-align: left;
}
.modal-error {
  color: #913c2c;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 15px;
}
.recipe-hero {
  position: relative;
  height: 255px;
  background: var(--lime);
}
.recipe-hero > img {
  height: 100%;
}
.recipe-hero .icon-btn {
  position: absolute;
  right: 18px;
  top: 18px;
}
.recipe-hero .no-photo {
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2.8rem;
  padding: 32px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.1;
}
.recipe-info {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 25px;
}
.ingredient-list {
  padding: 0;
  list-style: none;
  margin: 16px 0 25px;
}
.ingredient-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.recipe-steps {
  padding-left: 24px;
}
.recipe-steps li {
  padding: 0 0 22px 8px;
}
.recipe-steps strong {
  display: block;
  margin-bottom: 7px;
}
.recipe-steps p {
  font-size: 0.94rem;
}
.cook {
  padding: 32px;
  min-height: 470px;
  display: flex;
  flex-direction: column;
}
.cook .step-body {
  padding: 36px 0;
  flex: 1;
}
.cook .step-body p {
  font-size: 1.18rem;
  line-height: 1.8;
  margin-top: 22px;
}
.cook .timer-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px;
  background: #f1f5e4;
  border-radius: 18px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.cook .timer-action label {
  font-size: 0.85rem;
}
.cook .timer-action input {
  width: 76px;
  padding: 10px;
}
.source-note {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 26px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted);
}
.source-note a {
  overflow-wrap: anywhere;
}
.shopping-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 55px;
}
.shopping-group {
  margin-bottom: 28px;
}
.shopping-group h3 {
  margin-bottom: 12px;
}
.shopping-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.shopping-item label {
  display: flex;
  gap: 14px;
  align-items: center;
  flex: 1;
  cursor: pointer;
}
.shopping-item label span {
  display: block;
}
.shopping-item.done label {
  text-decoration: line-through;
  opacity: 0.45;
}
.shopping-item small {
  display: block;
  margin-top: 5px;
}
.shopping-item .amount {
  text-align: right;
  white-space: nowrap;
}
.shopping-aside {
  height: max-content;
  background: white;
  border-radius: 24px;
  padding: 28px;
  position: sticky;
  top: 25px;
}
.shopping-aside .total {
  font-size: 2.4rem;
  letter-spacing: -0.06em;
  font-weight: 800;
  margin: 16px 0;
}
.shopping-aside p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.shopping-aside .btn {
  width: 100%;
  margin-top: 10px;
}
.pantry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.pantry-row label {
  font-size: 0.9rem;
}
.pantry-row input {
  width: 100px;
}
.install-box {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  margin-top: 28px;
}
.install-box p {
  margin: 10px 0;
  font-size: 0.85rem;
  color: var(--muted);
}
#timer:not(:empty) {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  max-width: calc(100vw - 32px);
}
.timer-bubble {
  background: var(--leaf);
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 25px;
  padding: 14px 16px;
  box-shadow: 0 10px 35px #20332635;
}
.timer-bubble strong {
  display: block;
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
}
.timer-bubble small {
  color: #e0e9d4;
  display: block;
  max-width: 180px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.timer-bubble button {
  background: none;
  color: white;
  padding: 8px;
  min-width: 35px;
}
.timer-bubble.finished {
  background: #845723;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 14px 23px;
  border-radius: 16px;
  max-width: 90vw;
  display: none;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px #20332630;
}
.skip {
  position: fixed;
  top: -100px;
  padding: 12px;
  background: white;
  z-index: 500;
}
.skip:focus {
  top: 0;
}
.load-more {
  margin: 36px auto;
  display: flex;
}
.library-info {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 15px 0;
}
.inline-link {
  padding: 0;
  background: none;
  text-decoration: underline;
}
.account-detail {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.account-detail p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 8px;
}
.step-check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}
.busy {
  opacity: 0.6;
  pointer-events: none;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 1000px) {
  .wrap {
    padding: 0 24px;
  }
  .nav button {
    padding: 12px;
  }
  .topbar {
    gap: 15px;
  }
  .hero {
    gap: 25px;
  }
  .hero-art > img {
    height: 500px;
  }
  .hero-stamp {
    right: 0;
  }
  .meal-grid {
    gap: 24px 18px;
  }
  .meal-image {
    height: 215px;
  }
  .shopping-layout {
    gap: 28px;
    grid-template-columns: 1fr 280px;
  }
}
@media (max-width: 760px) {
  .wrap {
    padding: 0 20px;
  }
  .topbar {
    height: 78px;
  }
  .brand {
    font-size: 1.65rem;
  }
  .brand img {
    width: 33px;
    height: 33px;
  }
  .top-actions {
    gap: 10px;
  }
  .top-actions .btn {
    padding: 11px 16px;
    min-height: 43px;
    font-size: 0.85rem;
  }
  .top-actions .text-btn {
    font-size: 0.8rem;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 24px 0 54px;
    gap: 24px;
  }
  .hero h1 {
    font-size: clamp(2.7rem, 9vw, 4rem);
    max-width: 590px;
    line-height: 1.05;
  }
  .hero-copy p {
    font-size: 1rem;
    margin: 20px 0;
  }
  .hero-art {
    padding: 10px 0 20px 10px;
  }
  .hero-art > img {
    height: 380px;
    border-radius: 100px 100px 24px 24px;
  }
  .hero-note {
    padding: 17px 21px;
    max-width: 235px;
    bottom: 0;
  }
  .hero-note strong {
    font-size: 1rem;
  }
  .hero-stamp {
    width: 95px;
    height: 95px;
    top: 0;
    font-size: 0.78rem;
  }
  .how {
    padding: 42px 0;
  }
  .how-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .how-step {
    display: grid;
    grid-template-columns: 42px 1fr;
    column-gap: 20px;
  }
  .how-step .number {
    grid-row: 1/3;
    margin: 0;
  }
  .how-step p {
    grid-column: 2;
    margin-top: 8px;
    max-width: none;
    font-size: 0.92rem;
  }
  .how-heading {
    margin-bottom: 32px;
  }
  .closing {
    padding: 30px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 40px;
  }
  .closing h2 {
    font-size: 2rem;
  }
  .footer {
    font-size: 0.78rem;
  }
  .nav {
    position: fixed;
    z-index: 30;
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: space-around;
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
    background: #fffffff5;
    border-top: 1px solid var(--line);
    backdrop-filter: blur(12px);
    gap: 0;
  }
  .nav button {
    font-size: 0.68rem;
    gap: 5px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    min-width: 67px;
  }
  .nav svg {
    display: block;
    width: 21px;
    height: 21px;
  }
  .page {
    padding: 24px 0 115px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
    margin-bottom: 18px;
  }
  .page-heading h1 {
    font-size: 2.5rem;
  }
  .page-heading p {
    font-size: 0.9rem;
    margin-top: 10px;
  }
  .page-heading .btn {
    padding: 13px 19px;
  }
  .summary {
    margin: 15px 0 25px;
    gap: 7px;
  }
  .chip {
    font-size: 0.75rem;
    padding: 7px 10px;
  }
  .meal-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 14px;
  }
  .meal-image {
    height: 215px;
    border-radius: 19px;
  }
  .meal-image .placeholder {
    font-size: 2rem;
    padding: 22px;
  }
  .meal-meta {
    font-size: 0.74rem;
    margin-top: 12px;
    gap: 4px;
  }
  .meal-card h3 {
    font-size: 1.07rem;
  }
  .meal-card .description {
    display: none;
  }
  .meal-bottom {
    margin-top: 8px;
    flex-wrap: wrap;
  }
  .meal-image .favorite {
    right: 10px;
    top: 10px;
    width: 36px;
    height: 36px;
  }
  .meal-image .tag {
    font-size: 0.68rem;
    left: 10px;
    bottom: 10px;
    padding: 6px 9px;
  }
  .shopping-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .shopping-aside {
    position: static;
    grid-row: 1;
    padding: 22px;
  }
  .shopping-aside .total {
    font-size: 1.8rem;
    margin: 10px 0;
  }
  .shopping-aside .btn {
    width: auto;
    margin-right: 8px;
  }
  .shopping-aside p {
    margin-bottom: 10px;
  }
  .search-row {
    gap: 8px;
  }
  .search-row input {
    width: 100px;
  }
  .search-row select {
    max-width: 115px;
    padding: 12px;
  }
  .dialog-inner,
  .cook {
    padding: 24px;
  }
  dialog {
    border-radius: 25px;
    max-height: 94dvh;
    max-width: calc(100vw - 20px);
  }
  dialog.onboarding {
    max-width: 100vw;
    width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    margin: 0;
  }
  .onboarding .dialog-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding-top: max(24px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  .onboarding .wizard-content {
    flex: 1;
  }
  .dialog-title {
    font-size: 1.9rem;
  }
  .dialog-subtitle {
    font-size: 0.92rem;
    margin: 14px 0 25px;
  }
  .select-grid {
    gap: 10px;
  }
  .choice {
    padding: 14px;
    gap: 9px;
    min-height: 72px;
  }
  .choice strong {
    font-size: 0.83rem;
  }
  .choice small {
    font-size: 0.7rem;
  }
  .choice .choice-icon {
    font-size: 1.35rem;
  }
  .recipe-hero {
    height: 210px;
  }
  .cook {
    min-height: 78dvh;
  }
  .cook .step-body {
    padding: 24px 0;
  }
  .cook .step-body p {
    font-size: 1.06rem;
  }
  .cook .timer-action {
    gap: 9px;
    padding: 15px;
  }
  .cook .timer-action .btn {
    padding: 12px 17px;
  }
  .dialog-actions .btn {
    padding: 14px 20px;
  }
  .field-grid {
    gap: 12px;
  }
  #timer:not(:empty) {
    bottom: 96px;
    right: 14px;
  }
  .timer-bubble {
    padding: 10px 12px;
    border-radius: 20px;
    gap: 8px;
  }
  .timer-bubble small {
    max-width: 150px;
  }
  .timer-bubble strong {
    font-size: 1.25rem;
  }
  #toast {
    bottom: 95px;
    width: max-content;
    max-width: 90vw;
  }
  .recipe-info {
    gap: 7px;
  }
  .source-note {
    font-size: 0.73rem;
  }
}
@media (max-width: 420px) {
  .meal-grid {
    grid-template-columns: 1fr;
  }
  .meal-image {
    height: 265px;
  }
  .meal-card h3 {
    font-size: 1.25rem;
  }
  .meal-meta {
    font-size: 0.8rem;
  }
  .meal-bottom {
    flex-wrap: nowrap;
  }
  .meal-image .placeholder {
    font-size: 2.8rem;
  }
  .topbar > .top-actions .text-btn {
    max-width: 125px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hero-art > img {
    height: 330px;
  }
  .choice {
    padding: 12px;
  }
  .search-row input {
    padding: 12px;
  }
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media print {
  .topbar,
  .nav,
  .shopping-aside button,
  .page-heading button,
  #timer,
  #toast,
  .footer,
  .summary button {
    display: none !important;
  }
  .page {
    padding: 0;
  }
  .wrap {
    max-width: none;
    padding: 0;
  }
  .shopping-layout {
    display: block;
  }
  .shopping-aside {
    padding: 0;
  }
  .shopping-item {
    break-inside: avoid;
  }
  .shopping-item.done {
    display: none;
  }
  body {
    background: white;
  }
}
.hero h1 {
  font-size: clamp(3rem, 4.9vw, 4.2rem);
}
@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(2.7rem, 9vw, 4rem);
  }
}
.meal-card.no-photo .meal-image {
  height: 180px;
}
.meal-card.no-photo h3 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.meal-card.no-photo .description {
  margin-top: 12px;
}
.meal-card.no-photo .placeholder {
  font-size: 1.85rem;
  padding: 25px 24px 40px;
  align-items: center;
}
.meal-card.no-photo .meal-meta {
  margin-bottom: 0;
}
#cook-timer-status .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
#cook-timer-status svg {
  width: 15px;
  height: 15px;
}
@media (max-width: 760px) {
  .search-row .search-label {
    display: none;
  }
  .search-row .btn {
    padding: 12px;
  }
  .search-row select {
    max-width: 108px;
  }
  .search-row input {
    flex: 1;
    width: auto;
  }
  .meal-card.no-photo .meal-image {
    height: 190px;
  }
  .meal-card.no-photo .placeholder {
    font-size: 2rem;
  }
  .page-heading h1 {
    font-size: 2.5rem;
  }
  .meal-card.no-photo .meal-bottom {
    margin-top: 0;
  }
}

.photo-caption {
  position: absolute;
  top: 16px;
  left: 14px;
  color: white;
  background: #203326b0;
  font-size: 0.65rem;
  padding: 5px 9px;
  border-radius: 50px;
}

/* ---- v3 : catalogue étendu ---- */
.how-grid {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1000px) {
  .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.meal-image .placeholder {
  justify-content: center;
  font-size: 4.5rem;
  background: radial-gradient(circle at 30% 20%, #eef6c4, #dfe8c6 60%, #d3dfbb);
}
.meal-image .placeholder span,
.recipe-hero .placeholder span {
  filter: saturate(0.9);
  transform: rotate(-8deg);
}
.meal-image.broken::before,
.swap-img.broken::before,
.recipe-hero.broken::before {
  content: "🍽️";
  font-size: 4rem;
  display: grid;
  place-items: center;
  height: 100%;
}
.meal-card h3 button {
  background: none;
  padding: 0;
  text-align: left;
  font-weight: 750;
}
.recipe-hero .placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 5rem;
  background: radial-gradient(circle at 30% 20%, #eef6c4, #dfe8c6 60%, #d3dfbb);
}
.recipe-hero > img {
  width: 100%;
  object-fit: cover;
}
.recipe-hero {
  height: min(42vh, 360px);
}
.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 6px;
}
.nav .badge {
  background: var(--leaf);
  color: white;
  border-radius: 50px;
  font-size: 0.7rem;
  min-width: 20px;
  padding: 2px 6px;
  text-align: center;
}
.nav .badge:empty {
  display: none;
}
.chip {
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.chip svg {
  width: 15px;
  height: 15px;
}
button.chip:hover {
  border-color: var(--line);
}
.chip.on {
  background: var(--leaf);
  color: white;
}
.scroller {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: -4px;
  padding: 4px;
}
.scroller::-webkit-scrollbar {
  display: none;
}
.icon-btn.small {
  width: 36px;
  height: 36px;
}
.icon-btn.small svg {
  width: 17px;
  height: 17px;
}
.btn.small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.85rem;
}
.row.center {
  justify-content: center;
  margin: 28px 0 8px;
}
.meal-bottom .row {
  gap: 6px;
  align-items: center;
}
.muted {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
}
.muted svg {
  width: 16px;
  height: 16px;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.stepper strong {
  min-width: 2.5ch;
  text-align: center;
  font-size: 1.15rem;
}
.stepper.small {
  gap: 8px;
  margin: 0;
}
.stepper.small .icon-btn {
  width: 34px;
  height: 34px;
}
.stepper.small strong {
  font-size: 0.95rem;
  min-width: 6ch;
}
.stepper input {
  width: 64px;
  text-align: center;
  font-weight: 750;
  font-size: 1.1rem;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.section-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.fit-count {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 10px 0 0;
}
.field-label {
  font-weight: 700;
  margin: 22px 0 10px;
}
.swap-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.swap-option {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px;
}
.swap-option:hover {
  border-color: var(--leaf);
}
.swap-option strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.25;
}
.swap-option small {
  color: var(--muted);
}
.swap-img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e3eaca;
}
.swap-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swap-img .placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 1.8rem;
}
.swap-img.broken::before {
  font-size: 1.8rem;
}
.compare {
  margin: 14px 0;
  font-size: 0.9rem;
}
.compare summary {
  cursor: pointer;
  font-weight: 700;
}
.compare ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}
.compare li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.compare li.current {
  font-weight: 750;
}
.compare li small {
  width: 100%;
  color: #5f7a12;
}
.install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 10px 10px 10px 12px;
  box-shadow: 0 12px 30px rgb(32 51 38 / 14%);
  animation: rise 0.35s ease-out;
}
.install-banner img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.install-banner div {
  flex: 1;
  min-width: 0;
}
.install-banner strong,
.install-banner small {
  display: block;
  font-size: 0.85rem;
}
.install-banner small {
  color: var(--muted);
  font-size: 0.75rem;
}
@keyframes rise {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
}
.install-box ol {
  padding-left: 20px;
  margin: 8px 0 0;
  line-height: 1.6;
}
.install-box.current {
  border-color: var(--leaf);
  background: #f3f8df;
}
.danger-text {
  color: #97352d;
}
.pantry-row.used label {
  font-weight: 700;
}
#pantry-search {
  width: 100%;
  margin-bottom: 8px;
}
.cook .step-body p {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.55;
}
.cook-ingredients {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.cook-ingredients summary {
  cursor: pointer;
  font-weight: 700;
}
.timer-action {
  flex-wrap: wrap;
}
.recipe-steps small.muted {
  margin-top: 6px;
}
.flip {
  display: inline-flex;
  transform: scaleX(-1);
  vertical-align: middle;
}

/* ---- v4 : parcours menu → liste → semaine, carnets ---- */
.steps-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
.steps-bar span {
  padding: 6px 12px;
  border-radius: 50px;
  background: #eef2e4;
}
.steps-bar .on {
  background: var(--leaf);
  color: white;
}
.steps-bar .past {
  background: var(--lime);
  color: var(--ink);
}
.add-card {
  min-height: 250px;
  border: 2px dashed var(--line);
  border-radius: 24px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink);
}
.add-card:hover:not(:disabled) {
  border-color: var(--leaf);
  background: #f3f8df;
}
.add-card svg {
  width: 28px;
  height: 28px;
}
.add-card small {
  color: var(--muted);
}
.sticky-cta {
  position: sticky;
  bottom: 16px;
  display: flex;
  justify-content: center;
  margin-top: 30px;
  z-index: 5;
}
.btn.big {
  min-height: 56px;
  padding: 16px 30px;
  font-size: 1.05rem;
  box-shadow: 0 10px 30px rgb(32 51 38 / 18%);
}
.shopping-aside .btn.big {
  width: 100%;
  box-shadow: none;
}
.section-title {
  font-size: 1.3rem;
  margin: 34px 0 16px;
}
.muted-title {
  color: var(--muted);
}
.meal-card.is-done {
  opacity: 0.6;
}
.meal-card.is-done h3 {
  text-decoration: line-through;
}
.meal-image .tag.warn {
  left: auto;
  right: 14px;
  bottom: 14px;
  background: #fff4d6;
}
.meal-bottom .btn.small {
  gap: 6px;
}
.progress-track.big {
  height: 10px;
  margin-bottom: 20px;
}
.link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 0;
  margin-bottom: 8px;
}
.link-card span {
  flex: 1;
}
.link-card strong,
.link-card small {
  display: block;
}
.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px;
}
.list-card {
  background: none;
  text-align: left;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.list-cover {
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  background: #e3eaca;
  margin-bottom: 8px;
  display: block;
}
.list-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.list-cover .placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 3rem;
}
.list-card small {
  color: var(--muted);
}
.shopping-item.skipped span {
  color: var(--muted);
  text-decoration: line-through;
}
.shopping-group.basket {
  opacity: 0.65;
}
.shopping-item.done span {
  text-decoration: line-through;
}
.pick-list {
  display: grid;
  gap: 4px;
  margin: 16px 0;
}
.select-grid.three {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 760px) {
  .select-grid.three {
    grid-template-columns: 1fr;
  }
  .sticky-cta {
    bottom: calc(92px + env(safe-area-inset-bottom));
  }
  .btn.big {
    width: 100%;
  }
  .list-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .add-card {
    min-height: 120px;
  }
}
.install-banner {
  position: static;
  margin-top: 32px;
  box-shadow: none;
  animation: none;
}
.mobile-only {
  display: none;
}
@media (max-width: 760px) {
  .mobile-only {
    display: flex;
  }
  .shopping-layout > section {
    order: 1;
  }
  .shopping-layout > .shopping-aside {
    order: 2;
    grid-row: auto;
  }
}

/* ---- v5 : 5 onglets, plusieurs menus, envies, préférences ---- */
.moods {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -14px 0 26px;
}
.moods > span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-right: 4px;
}
.week-picker {
  margin: 0 0 18px;
}
.prefs {
  margin: 18px 0;
}
.prefs h3 {
  margin-bottom: 8px;
}
.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.pref-row small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}
.pref-row strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 650;
}
.pref-row svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .nav button {
    padding: 8px 2px;
    font-size: 0.66rem;
    min-width: 0;
  }
  .nav button span:not(.badge) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .moods {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-top: -10px;
  }
  .moods .chip {
    flex-shrink: 0;
  }
}
@media (max-width: 760px) {
  .nav button {
    flex: 1;
    position: relative;
  }
}
.moods > span {
  white-space: nowrap;
}
