:root {
  --bg: #fcfcfa;
  --surface: #fff;
  --text: #28372f;
  --muted: #6b746e;
  --sage-dark: #2b5b46;
  --sage: #77947f;
  --sage-soft: #eaf1e8;
  --line: #e5e9e2;
  --peach: #faf0e6;
  --warning: #a23c30;
  --shadow: 0 8px 24px #203e2910;
}
/* Atlas culinaire : le globe reste une scène ouverte, sans cadre décoratif. */
.world-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.world-toolbar .search-field {
  flex: 1 1 220px;
}
.world-check {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  cursor: pointer;
}
.world-check input {
  accent-color: var(--sage-dark);
  width: 17px;
  height: 17px;
}
.world-explorer {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1fr);
  gap: 36px;
  padding: 22px 0 30px;
  border-block: 1px solid var(--line);
  align-items: center;
}
.world-map-area {
  min-width: 0;
  position: relative;
}
.world-map-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}
.world-map-topline > :first-child {
  color: var(--sage-dark);
  font-weight: 650;
}
.globe-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1.12;
  max-height: 520px;
  min-height: 280px;
}
#culinaryGlobe {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
  border-radius: 4px;
}
#culinaryGlobe:active {
  cursor: grabbing;
}
#culinaryGlobe:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: -3px;
}
.globe-fallback {
  position: absolute;
  inset: 15%;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.globe-tooltip {
  position: absolute;
  left: 50%;
  bottom: 9%;
  transform: translateX(-50%);
  padding: 5px 10px;
  background: var(--text);
  color: white;
  border-radius: 4px;
  font-size: 12px;
  pointer-events: none;
  white-space: nowrap;
}
.globe-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.globe-controls .icon-button {
  background: white;
  border: 1px solid var(--line);
  width: 40px;
  height: 40px;
}
.control-divider {
  width: 1px;
  height: 20px;
  background: var(--line);
  margin: 0 4px;
}
.globe-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  justify-content: center;
  font-size: 10px;
  color: var(--muted);
  margin-top: 13px;
}
.globe-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.globe-legend i {
  width: 7px;
  height: 7px;
  background: #96b6a0;
  border-radius: 50%;
}
.globe-legend span:nth-child(2) i {
  background: #ce8767;
}
.globe-legend span:nth-child(3) i {
  background: #245b47;
}
.country-profile {
  min-width: 0;
  padding: 8px 0;
}
.country-profile h2 {
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 500;
  margin: 7px 0 13px;
}
.country-profile-description {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.country-cover {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0 0 16px;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  text-align: left;
  background: #f0f2ec;
}
.country-cover .meal-image {
  width: 100%;
  height: 155px;
  object-fit: cover;
  transition: transform 0.2s;
}
.country-cover:hover .meal-image {
  transform: scale(1.025);
}
.country-cover > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  font-size: 11px;
  background: #f0f2ec;
}
.country-cover .icon {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
}
.country-profile h3 {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 22px 0 8px;
  color: var(--sage-dark);
}
.country-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.country-ingredients span {
  font-size: 11px;
  padding: 4px 8px;
  background: #eaf1ef;
  border-radius: 4px;
}
.country-specialties {
  font-size: 13px;
  line-height: 1.7;
}
.country-favorite {
  margin-top: 22px;
  width: 100%;
  justify-content: center;
}
.country-favorite[aria-pressed="true"] {
  background: #f7e9e1;
  border-color: #d6a38d;
  color: #804631;
}
.country-favorite[aria-pressed="true"] .icon {
  fill: currentColor;
}
.country-profile-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.country-profile-actions .text-button {
  font-size: 12px;
}
.world-country-browser {
  padding: 30px 0;
}
.world-country-browser.searching {
  padding: 0 0 18px;
}
.world-country-browser.searching .country-list {
  max-height: 180px;
}
.world-country-browser h2 {
  font-size: 18px;
}
.country-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  max-height: 230px;
  overflow-y: auto;
  padding: 4px;
  scrollbar-width: thin;
  scrollbar-color: #bcccbf transparent;
}
.country-option {
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
  min-height: 45px;
  padding: 8px 10px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.country-option > span:first-child {
  flex: 1;
  overflow-wrap: anywhere;
}
.country-option .icon {
  width: 13px;
  height: 13px;
  flex-basis: 13px;
  color: #ad684b;
  fill: currentColor;
}
.country-option:hover {
  border-color: var(--sage);
  background: #f1f6ef;
}
.country-option[aria-pressed="true"] {
  background: var(--sage-dark);
  color: white;
  border-color: var(--sage-dark);
}
.country-option[aria-pressed="true"] .icon {
  color: #f3c6a9;
}
.world-recipes-section {
  padding-block: 26px;
  border-top: 1px solid var(--line);
}
.world-recipe-note {
  margin: -6px 0 20px;
}
.world-recipes-section .recipe-grid:empty {
  display: none;
}
.world-footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
.world-footer p {
  max-width: 620px;
}
.world-footer a {
  color: inherit;
  flex-shrink: 0;
}
.library-heading-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.world-home-link {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 24px 0;
  margin-top: 12px;
  border-bottom: 1px solid var(--line);
}
.world-home-link > [data-icon] {
  color: var(--sage-dark);
}
.world-home-link h3 {
  font-size: 16px;
  margin-bottom: 5px;
}
.world-home-link p {
  color: var(--muted);
  font-size: 12px;
}
.world-home-link button {
  margin-left: auto;
}
@media (max-width: 1050px) {
  .world-explorer {
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.9fr);
  }
  .country-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .world-explorer {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .globe-stage {
    max-height: 440px;
    aspect-ratio: 1.2;
  }
  .country-profile {
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }
  .country-profile h2 {
    font-size: 30px;
  }
  .country-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .world-footer {
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 600px) {
  .main-nav .nav-item[data-view="home"],
  .main-nav .nav-item[data-view="favorites"] {
    display: none;
  }
  body .main-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .world-toolbar {
    gap: 10px;
  }
  .world-toolbar .search-field {
    flex-basis: 100%;
  }
  .world-toolbar .filter-select {
    flex: 1;
  }
  .world-check {
    font-size: 11px;
  }
  .country-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 220px;
  }
  .world-recipes-section .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .world-explorer {
    padding-top: 16px;
  }
  .world-map-topline {
    font-size: 10px;
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}
button,
input,
select {
  font: inherit;
  max-width: 100%;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #8eaa70;
  outline-offset: 4px;
}
button,
a {
  touch-action: manipulation;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  line-height: 1.22;
  overflow-wrap: break-word;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 500;
}
h2 {
  font-size: 23px;
  font-weight: 650;
}
h3 {
  font-size: 18px;
}
p {
  text-wrap: pretty;
}
svg.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.taste-invitation { display: flex; align-items: center; gap: 20px; margin-top: 24px; padding: 22px 0; border-block: 1px solid var(--line); }
.taste-invitation-icon { width: 48px; height: 48px; flex: 0 0 48px; background: #f6e8e5; color: #ae665d; border-radius: 50%; }
.taste-invitation h2 { margin: 4px 0 7px; font-size: 20px; }
.taste-invitation p:last-child { color: var(--muted); font-size: 12px; }
.taste-invitation > button { margin-left: auto; flex-shrink: 0; }
.taste-workspace { display: grid; grid-template-columns: minmax(0, 500px) minmax(220px, 1fr); gap: 55px; align-items: start; max-width: 970px; margin: 0 auto; }
.swipe-tool { min-width: 0; }
.swipe-topline { display: flex; justify-content: space-between; align-items: center; min-height: 40px; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.swipe-topline .icon { width: 16px; height: 16px; }
.swipe-stage { position: relative; isolation: isolate; touch-action: pan-y; }
.swipe-card { overflow: hidden; border: 1px solid #e1e7db; border-radius: 8px; background: white; box-shadow: 0 9px 30px #31463112; transform: translateX(var(--swipe-x, 0px)) rotate(var(--swipe-rotation, 0deg)); user-select: none; will-change: transform; cursor: grab; }
.swipe-card:active { cursor: grabbing; }
.swipe-photo { position: relative; overflow: hidden; }
.swipe-photo .meal-image { height: 300px; width: 100%; object-fit: cover; pointer-events: none; }
.swipe-cuisine { position: absolute; left: 18px; bottom: 15px; color: #34523c; background: #fffffff0; padding: 5px 10px; border-radius: 4px; font-size: 11px; }
.swipe-stamp { position: absolute; top: 30px; border: 3px solid; border-radius: 5px; padding: 9px 13px; font-size: 20px; font-weight: 750; background: #ffffffdf; opacity: 0; pointer-events: none; }
.stamp-like { left: 20px; color: #276040; transform: rotate(-12deg); }
.stamp-dislike { right: 20px; color: #a04b42; transform: rotate(12deg); }
.drag-like .stamp-like, .drag-dislike .stamp-dislike { opacity: 1; }
.swipe-card-content { padding: 22px 25px 14px; }
.swipe-card-content h2 { font-family: Georgia, serif; font-weight: 500; font-size: 28px; margin: 12px 0 10px; }
.swipe-card-content > p { color: var(--muted); font-size: 13px; min-height: 40px; }
.swipe-card-content > button { margin-top: 8px; }
.swipe-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; font-size: 11px; color: var(--muted); }
.swipe-meta > span { display: inline-flex; gap: 5px; align-items: center; }
.swipe-meta .icon { width: 15px; height: 15px; }
.new-recipe-label { margin-left: auto; color: #80669b; background: #f3eef7; padding: 3px 7px; border-radius: 4px; }
.swipe-actions { display: flex; justify-content: center; align-items: flex-start; gap: 37px; margin-top: 24px; }
.swipe-action { display: flex; flex-direction: column; align-items: center; gap: 9px; border: 0; background: none; padding: 0; min-width: 68px; font-size: 11px; color: var(--muted); }
.swipe-action > span:first-child { width: 62px; height: 62px; border: 1px solid; border-radius: 50%; transition: transform .15s, background .15s; }
.swipe-action:hover > span:first-child { transform: translateY(-3px); }
.swipe-action .icon { width: 25px; height: 25px; }
.like-action > span:first-child { background: #dfeddb; color: #35653f; border-color: #c5d9bf; }
.dislike-action > span:first-child { background: #faeeeb; color: #a9655c; border-color: #ead8d3; }
.skip-action > span:first-child { width: 49px; height: 49px; margin-top: 7px; margin-bottom: 6px; background: #f2f4ef; color: #85907a; border-color: #e2e7db; }
.skip-action .icon { width: 19px; height: 19px; }
.swipe-feedback { min-height: 40px; padding: 18px 0 0; font-size: 11px; color: var(--muted); text-align: center; }
.taste-profile { border-left: 1px solid var(--line); padding-left: 32px; margin-top: 57px; }
.taste-profile h2 { margin: 9px 0 24px; font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.taste-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.taste-totals strong { display: block; font-size: 34px; color: var(--sage-dark); font-weight: 500; font-variant-numeric: tabular-nums; }
.taste-totals span { font-size: 11px; color: var(--muted); }
.taste-progress-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); gap: 10px; }
.taste-profile progress { display: block; width: 100%; height: 6px; margin: 10px 0 13px; accent-color: #739459; border: 0; border-radius: 5px; overflow: hidden; background: #e6ecde; }
.taste-profile progress::-webkit-progress-bar { background: #e6ecde; }
.taste-profile progress::-webkit-progress-value { background: #739459; }
.taste-profile h3 { font-size: 13px; margin: 25px 0 10px; }
.taste-affinities { display: flex; gap: 6px; flex-wrap: wrap; }
.taste-affinities .meal-pill { text-transform: capitalize; }
.taste-promise { margin: 24px 0; color: var(--muted); font-size: 12px; }
.taste-profile > .note:last-child { margin-top: 14px; }
.taste-profile .primary-button { width: 100%; }
.swipe-empty { min-height: 445px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 20px; border: 1px dashed #c4d0b9; border-radius: 8px; padding: 35px; background: #f2f6ec; }
.swipe-empty > .icon { width: 40px; height: 40px; color: var(--sage-dark); }
.swipe-empty p { color: var(--muted); font-size: 13px; }
.swipe-out-right { animation: swipeRight .23s ease-in forwards; }
.swipe-out-left { animation: swipeLeft .23s ease-in forwards; }
.swipe-out-skip { animation: swipeSkip .23s ease-in forwards; }
@keyframes swipeRight { to { transform: translateX(130px) rotate(12deg); opacity: 0; } }
@keyframes swipeLeft { to { transform: translateX(-130px) rotate(-12deg); opacity: 0; } }
@keyframes swipeSkip { to { transform: translateY(15px); opacity: 0; } }
.taste-review { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.taste-review-row { display: flex; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); padding: 14px 0; }
.taste-review-row > img { width: 80px; height: 65px; flex: 0 0 80px; border-radius: 5px; }
.taste-review-row h3 { font-size: 14px; }
.taste-review-row p { margin-top: 5px; font-size: 11px; color: var(--muted); }
.taste-review-actions { display: flex; gap: 6px; margin-left: auto; }
.taste-review-actions [aria-pressed="true"] { background: #e7efdf; border-color: #83a071; color: var(--sage-dark); }
.photo-credit { font-size: 10px; padding: 7px 15px 0; color: var(--muted); }
.photo-credit:empty { display: none; }
.photo-credit a { color: inherit; }
.hidden {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -70px;
  left: 12px;
  z-index: 100;
  padding: 12px;
  color: white;
  background: var(--sage-dark);
}
.skip-link:focus {
  top: 12px;
}
/* Navigation permanente, puis barre compacte sur mobile. */
.app-shell {
  min-height: 100vh;
}
.sidebar {
  width: 228px;
  height: 100dvh;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 36px 18px 22px;
  background: #f3f5f0;
  border-right: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 0;
  background: none;
  font-family: Georgia, serif;
  font-size: 33px;
  font-weight: 700;
  white-space: nowrap;
}
.brand-symbol {
  width: 34px;
  margin-right: 8px;
  color: var(--sage-dark);
}
.brand-symbol svg {
  width: 29px;
  height: 29px;
}
.brand-dot,
.accent-dot {
  color: #7c9c65;
}
.brand-caption {
  max-width: 170px;
  margin: 14px 12px 40px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.main-nav {
  display: grid;
  gap: 6px;
}
.nav-item {
  display: flex;
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 13px 12px;
  min-height: 46px;
  text-align: left;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #637068;
  font-size: 13px;
  font-weight: 550;
  transition:
    background 0.18s,
    color 0.18s;
}
.nav-item:hover {
  background: #e9eee5;
  color: var(--sage-dark);
}
.nav-item.active {
  background: #e1ebdb;
  color: #2d513c;
  font-weight: 650;
}
.nav-count {
  padding: 1px 7px;
  margin-left: auto;
  border-radius: 5px;
  background: #e9ede5;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.nav-item.active .nav-count {
  background: #d3e1ca;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 26px;
}
.local-status {
  margin: 25px 12px 8px;
  color: var(--muted);
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.local-status > span,
.status-dot {
  width: 6px;
  height: 6px;
  background: #739b68;
  border-radius: 50%;
  display: inline-block;
}
.prototype-label {
  display: block;
  margin-left: 12px;
  font-size: 9px;
  color: #818b80;
}
.workspace {
  margin-left: 228px;
}
.topbar {
  height: 74px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.mobile-brand {
  display: none;
}
.breadcrumb {
  color: #929990;
  font-size: 12px;
}
.breadcrumb span {
  margin: 0 12px;
  color: #c2c9bc;
}
.breadcrumb strong {
  color: #586459;
  font-weight: 500;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.topbar-message {
  font-size: 11px;
  color: #80897e;
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #e6eedf;
  color: #517143;
}
.page-shell {
  max-width: 1340px;
  margin: 0 auto;
  padding: 38px 42px 0;
  min-height: calc(100dvh - 74px);
  display: flex;
  flex-direction: column;
}
.screen {
  animation: appear 0.28s ease-out;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.eyebrow,
.section-eyebrow {
  font-size: 10px;
  font-weight: 650;
  color: #748365;
}
.page-heading .eyebrow {
  margin-bottom: 10px;
}
.page-heading h1 + p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 14px;
}
.small-label {
  color: var(--muted);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
/* L'accueil est un espace de travail, avec un accès direct aux recettes. */
.week-starter {
  padding: 24px 30px 0;
  border: 1px solid #dce7d3;
  border-radius: 8px;
  background: #eef3e8;
}
.starter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: #53704c;
}
.section-eyebrow .icon {
  width: 16px;
  height: 16px;
}
.badge {
  display: inline-flex;
  border-radius: 20px;
  padding: 4px 10px;
  background: #fff9;
  color: #557047;
  font-size: 10px;
  font-weight: 550;
}
.starter-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 22px 0 24px;
}
.starter-content h2 {
  font-size: 25px;
  font-weight: 600;
  margin-bottom: 10px;
}
.starter-content p {
  color: #718068;
  font-size: 13px;
}
.starter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #dbe5d3;
  padding: 13px 0;
  font-size: 11px;
  color: #718068;
}
.starter-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.starter-footer .icon {
  width: 15px;
  height: 15px;
}
.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 12px 19px;
  min-height: 45px;
  font-size: 12px;
  font-weight: 600;
  transition:
    background 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}
.primary-button {
  color: white;
  background: var(--sage-dark);
  box-shadow: 0 3px 8px #244c3d12;
}
.primary-button:hover {
  background: #1e4634;
  box-shadow: 0 5px 12px #244c3d20;
}
.secondary-button {
  background: white;
  border-color: var(--line);
  color: var(--text);
}
.secondary-button:hover {
  border-color: #bdcbb7;
  background: #f7f9f4;
}
.ghost-button {
  background: transparent;
  color: var(--muted);
}
.ghost-button:hover {
  background: #eaf0e5;
  color: var(--sage-dark);
}
.text-button {
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 0;
  min-height: 40px;
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 550;
  text-align: left;
}
.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.icon-button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}
.icon-button:hover {
  background: #edf3e9;
  border-color: #b8cab2;
}
.button-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-heading,
.panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-bottom: 22px;
}
.section-heading .eyebrow {
  margin-bottom: 7px;
}
.inspiration-section {
  margin-top: 34px;
}
.recipe-grid,
.meal-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.recipe-tile {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
  box-shadow: 0 2px 5px #203e2903;
  transition:
    box-shadow 0.2s,
    transform 0.2s,
    border-color 0.2s;
}
.recipe-tile:hover {
  transform: translateY(-3px);
  border-color: #c3cfbc;
  box-shadow: var(--shadow);
}
.recipe-open {
  background: none;
  padding: 0;
  border: none;
  text-align: left;
  color: var(--text);
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.recipe-open:focus-visible {
  outline-offset: -3px;
}
.meal-image-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.meal-image {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.35s;
  background: #e9ece5;
}
.recipe-tile:hover .meal-image {
  transform: scale(1.035);
}
.image-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  border-radius: 4px;
  background: #fffffff0;
  padding: 4px 8px;
  font-size: 10px;
  color: #45603e;
  font-weight: 600;
}
.favorite-button {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 1;
  background: #fffffff2;
  border-radius: 50%;
  border: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #4c5a4c;
  box-shadow: 0 1px 4px #0001;
}
.favorite-button:hover {
  background: white;
  color: #b35b56;
}
.favorite-button[aria-pressed="true"] {
  color: #b35b56;
}
.favorite-button[aria-pressed="true"] svg {
  fill: #f1d9d4;
}
.meal-card-body {
  width: 100%;
  padding: 17px 18px 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.meal-card-body h3,
.meal-card-body h4 {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  min-height: 44px;
}
.meal-card-body p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 8px;
}
.meal-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f2ed;
  color: #7d8579;
  font-size: 11px;
}
.meal-card-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.meal-card-meta svg {
  width: 14px;
  height: 14px;
}
.card-arrow {
  margin-left: auto;
  color: #567f49;
  font-size: 17px;
}
.day-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  background: #f6f8f3;
  font-size: 13px;
  font-weight: 600;
}
.day-heading > span:last-child {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}
.plan-meal .favorite-button {
  top: 60px;
}
.meal-swap {
  display: flex;
  justify-content: center;
  gap: 7px;
  align-items: center;
  border: 0;
  border-top: 1px solid var(--line);
  background: white;
  padding: 11px;
  font-size: 11px;
  color: var(--sage-dark);
}
.meal-swap:hover {
  background: #f3f7ee;
}
.meal-swap svg {
  width: 14px;
  height: 14px;
}
.daily-tip {
  margin-top: 30px;
  padding: 23px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 20px;
}
.tip-symbol {
  width: 48px;
  height: 48px;
  background: #f8ebdc;
  border-radius: 50%;
  color: #8d7446;
  flex: 0 0 48px;
}
.daily-tip h3 {
  margin: 5px 0 7px;
  font-size: 16px;
}
.daily-tip p:last-child {
  max-width: 600px;
  font-size: 12px;
  color: var(--muted);
}
.daily-tip > .text-button {
  margin-left: auto;
  white-space: nowrap;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding: 35px 0 20px;
  color: #90998b;
  font-size: 10px;
}
.page-footer > span:first-child {
  color: #4e6544;
  font-weight: 650;
}
.footer-motto {
  margin-left: 12px;
  font-weight: 400;
  color: #90998b;
}
.library-toolbar {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}
.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 0 15px;
  color: var(--muted);
}
.search-field input {
  width: 100%;
  min-width: 0;
  border: none;
  outline: 0;
  background: none;
  padding: 14px 0;
}
.search-field:focus-within {
  outline: 2px solid #8eaa70;
  outline-offset: 2px;
}
.filter-select select {
  width: 100%;
  min-height: 48px;
  padding: 0 32px 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--text);
}
.empty-state {
  padding: 55px 20px;
  text-align: center;
  color: var(--muted);
  background: #f0f4eb;
  border-radius: 8px;
  grid-column: 1/-1;
}
.learning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.learning-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  background: #f2f5ee;
}
.learning-item:nth-child(2) {
  background: #faf1e9;
}
.learning-item:nth-child(3) {
  background: #f0f2f7;
}
.learning-item:nth-child(4) {
  background: #f7f4e6;
}
.lesson-number {
  font-family: Georgia, serif;
  display: block;
  font-size: 38px;
  color: #87977b;
  margin-bottom: 20px;
}
.learning-item h2 {
  margin: 8px 0 15px;
}
.learning-item > p:not(.eyebrow) {
  color: var(--muted);
}
.lesson-example {
  border-top: 1px solid #24352720;
  margin-top: 20px;
  padding-top: 16px;
  font-size: 12px;
}
.learning-item .note {
  margin-top: 12px;
}
/* Questionnaire : une seule question et des actions stables. */
.quiz {
  max-width: 740px;
  width: 100%;
  margin: 0 auto;
}
.quiz-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.progress-meta span:first-child {
  font-weight: 600;
  color: var(--sage-dark);
}
.progress-track {
  height: 5px;
  background: #e6ecdf;
  border-radius: 10px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 14.28%;
  background: #63874e;
  transition: width 0.25s ease;
  border-radius: inherit;
}
.quiz-surface {
  margin-top: 24px;
  padding: 35px 38px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 6px 25px #203e2907;
}
.step-card {
  display: none;
}
.step-card.active {
  display: block;
  animation: appear 0.25s ease;
}
.step-kicker {
  color: #738761;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 9px;
}
.step-card h2 {
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.18;
  margin-bottom: 14px;
}
.step-description {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 26px;
}
.budget-control {
  text-align: center;
  padding: 20px 6px 24px;
}
.budget-value {
  display: block;
  color: var(--sage-dark);
  font-family: Georgia, serif;
  font-size: 76px;
  font-weight: 500;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.budget-control p {
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0 28px;
}
.budget-control input[type="range"] {
  width: 100%;
  height: 8px;
  margin: 20px 0;
  appearance: none;
  border-radius: 10px;
  background: linear-gradient(
    to right,
    #668353 var(--budget-progress, 16.66%),
    #e6eddc var(--budget-progress, 16.66%)
  );
  cursor: pointer;
}
.budget-control input[type="range"]::-webkit-slider-thumb {
  width: 27px;
  height: 27px;
  appearance: none;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--sage-dark);
  box-shadow:
    0 0 0 1px #c2d0b8,
    0 3px 8px #244c3d20;
}
.budget-control input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--sage-dark);
}
.budget-marks {
  display: flex;
  justify-content: space-between;
  color: #849079;
  font-size: 12px;
}
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 25px;
}
.choice-card {
  min-height: 60px;
  padding: 15px 38px 15px 18px;
  position: relative;
  text-align: left;
  border: 1px solid #dfe5d9;
  border-radius: 7px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  transition:
    border-color 0.18s,
    background 0.18s;
}
.choice-card::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  border: 1px solid #ced7c8;
  border-radius: 50%;
}
[data-type="multiple"] .choice-card::after,
[data-type="restriction"] .choice-card::after {
  border-radius: 4px;
}
.choice-card:hover {
  border-color: #91ab7f;
  background: #fbfcf8;
}
.choice-card.selected {
  background: #edf4e8;
  border-color: #537543;
  color: #31522e;
  box-shadow: inset 0 0 0 1px #537543;
}
.choice-card.selected::after {
  content: "✓";
  display: grid;
  place-items: center;
  color: white;
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  font-size: 11px;
}
[data-group="pantry"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
[data-group="pantry"] .choice-card {
  min-height: 48px;
  font-size: 11px;
  padding-left: 12px;
}
[data-group="pantry"] .choice-card::after {
  right: 12px;
}
.field-block {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  font-size: 12px;
  font-weight: 550;
}
.field-block input {
  width: 100%;
  padding: 13px;
  background: #fff;
  color: var(--text);
  border: 1px solid #dfe5d9;
  border-radius: 6px;
}
.step-insight {
  display: flex;
  gap: 11px;
  padding: 16px 0 0;
  margin-top: 26px;
  border-top: 1px solid var(--line);
  color: #7b846e;
  font-size: 12px;
}
.step-insight > span {
  align-self: flex-start;
  color: #978454;
}
.step-insight .icon {
  width: 17px;
  height: 17px;
}
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.validation-message {
  color: var(--warning);
  font-size: 12px;
  min-height: 24px;
  margin: 6px 0 8px;
}
.quiz-reassurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #909887;
  margin-top: 17px;
  font-size: 11px;
}
.quiz-reassurance .icon {
  width: 15px;
  height: 15px;
}
/* Planning et liste de courses partagent les mêmes données. */
.result-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  margin-bottom: 20px;
}
.stat {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.stat:first-child {
  padding-left: 0;
  border-left: none;
}
.stat-label {
  color: var(--muted);
  font-size: 11px;
  display: block;
}
.stat-value {
  font-size: 24px;
  display: block;
  margin-top: 6px;
  font-weight: 550;
  color: var(--sage-dark);
}
.stat-footnote {
  color: #909889;
  font-size: 10px;
}
.result-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 24px;
  margin-bottom: 30px;
}
.result-tabs button {
  position: relative;
  display: flex;
  gap: 9px;
  align-items: center;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 13px 1px;
  color: var(--muted);
  font-size: 13px;
}
.result-tabs button[aria-selected="true"] {
  border-bottom-color: var(--sage-dark);
  color: var(--sage-dark);
  font-weight: 650;
}
.panel-title-row p,
.panel-subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}
.tips-panel {
  margin-top: 34px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
}
.tips-panel h2 {
  margin-top: 8px;
  font-size: 23px;
  max-width: 230px;
}
.tips-panel ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.tips-panel li::marker {
  color: #819b63;
}
.summary-panel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin-top: 25px;
}
.summary-panel summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 550;
}
.summary-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 25px;
  list-style: none;
  padding: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.summary-list strong {
  color: var(--text);
  display: block;
  font-weight: 550;
}
.result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
}
.note {
  font-size: 11px;
  color: #7e8777;
  line-height: 1.6;
}
.shopping-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 10px 15px;
  background: #eff4e9;
  border-radius: 7px;
  color: #5c754a;
  font-size: 12px;
}
.grocery-block h3,
.grocery-block h4 {
  font-size: 16px;
  margin-bottom: 16px;
}
.grocery-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 35px;
  align-items: start;
}
.grocery-category {
  break-inside: avoid;
  margin-bottom: 24px;
}
.grocery-category h4 {
  font-size: 10px;
  color: #81926f;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.grocery-list {
  padding: 0;
  list-style: none;
  margin: 0;
}
.grocery-list li {
  border-bottom: 1px solid var(--line);
}
.grocery-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  font-size: 13px;
  cursor: pointer;
}
.grocery-row input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  accent-color: var(--sage-dark);
  cursor: pointer;
}
.grocery-row:has(input:checked) {
  opacity: 0.5;
}
.grocery-row input:checked + span {
  text-decoration: line-through;
}
.grocery-quantity {
  margin-left: auto;
  color: var(--muted);
  text-align: right;
  font-size: 12px;
}
.available-list {
  list-style: none;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 0;
}
.meal-pill {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 5px;
  background: #eff3e9;
  font-size: 10px;
  color: #687e57;
}
.grocery-block + .grocery-block {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
#groceryResult > .note {
  margin-top: 20px;
}
.budget-note {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 25px;
  display: flex;
  gap: 45px;
  align-items: center;
}
.budget-note > div:first-child {
  flex: 0 0 180px;
}
.budget-note h3 {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}
.total {
  font-size: 26px;
  color: var(--sage-dark);
  margin-top: 8px;
}
/* Détails accessibles au clavier, avec quantités ajustables. */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 25px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: #152b23a6;
  backdrop-filter: blur(4px);
}
.meal-modal-card {
  position: relative;
  width: min(780px, 100%);
  max-height: calc(100dvh - 50px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  border-radius: 8px;
  box-shadow: 0 25px 70px #0003;
  animation: appear 0.2s ease;
}
.modal-close {
  position: sticky;
  top: 14px;
  float: right;
  width: 38px;
  height: 38px;
  margin: 14px 14px -52px 0;
  border: 0;
  border-radius: 50%;
  background: #fffffff2;
  font-size: 25px;
  z-index: 2;
  box-shadow: 0 2px 8px #0002;
}
.meal-detail-image {
  display: block;
  width: 100%;
  height: 285px;
  object-fit: cover;
  background: #e9ede4;
}
.modal-content {
  padding: 30px;
}
.modal-content h2 {
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 500;
}
.modal-description {
  color: var(--muted);
  font-size: 13px;
  margin-top: 13px;
}
.modal-meta,
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.modal-meta .meal-pill {
  background: transparent;
  padding-left: 0;
  padding-right: 14px;
  font-size: 12px;
}
.modal-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-block: 1px solid var(--line);
  padding: 17px 0;
  margin-top: 24px;
}
.serving-control {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.serving-control output {
  width: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.serving-control .icon-button {
  width: 33px;
  height: 33px;
  flex-basis: 33px;
  font-size: 18px;
}
.modal-detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 30px;
  padding: 25px 0;
}
.modal-detail-grid h3 {
  font-size: 16px;
  margin-bottom: 18px;
}
.modal-detail-grid ul,
.modal-detail-grid ol {
  padding: 0;
  list-style: none;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.modal-detail-grid ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.modal-detail-grid ol {
  counter-reset: steps;
  display: grid;
  gap: 15px;
}
.modal-detail-grid ol li {
  counter-increment: steps;
  position: relative;
  padding-left: 30px;
}
.modal-detail-grid ol li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  background: #e8efdf;
  color: #5e7950;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
}
.modal-reason {
  background: #f0f4e9;
  padding: 18px;
  border-radius: 7px;
  font-size: 12px;
  color: #6a7d5a;
  margin-bottom: 18px;
}
.modal-reason h3 {
  font-size: 13px;
  margin-bottom: 7px;
  color: var(--sage-dark);
}
.modal-content > .primary-button {
  margin-top: 22px;
}
.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  max-width: calc(100% - 32px);
  width: max-content;
  padding: 13px 20px;
  border-radius: 7px;
  background: #244c3d;
  color: white;
  box-shadow: var(--shadow);
  font-size: 12px;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1600px) {
  .home-recipes .meal-image {
    height: 235px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding-inline: 12px;
  }
  .workspace {
    margin-left: 205px;
  }
  .page-shell {
    padding: 30px 28px 0;
  }
  .topbar {
    padding-inline: 28px;
  }
  h1 {
    font-size: 34px;
  }
  .recipe-grid,
  .meal-plan-grid {
    gap: 15px;
  }
  .meal-image {
    height: 170px;
  }
  .meal-card-body {
    padding: 14px;
  }
  .meal-card-body h3,
  .meal-card-body h4 {
    font-size: 14px;
    min-height: 40px;
  }
  .starter-content h2 {
    font-size: 22px;
  }
  .starter-content {
    gap: 20px;
  }
  .daily-tip {
    flex-wrap: wrap;
  }
  .daily-tip > div {
    flex: 1;
  }
  .daily-tip > .text-button {
    margin-left: 68px;
  }
  .topbar-message {
    display: none;
  }
}
@media (max-width: 900px) {
  .taste-workspace { gap: 26px; grid-template-columns: minmax(0, 1.25fr) minmax(190px, .8fr); }
  .taste-profile { padding-left: 20px; }
  .swipe-photo .meal-image { height: 260px; }
  .swipe-card-content { padding: 18px; }
  .taste-invitation { flex-wrap: wrap; }
  .taste-invitation > div { flex: 1; }
  .taste-invitation > button { margin-left: 68px; }
  .sidebar {
    width: 76px;
    padding: 26px 11px;
    align-items: center;
  }
  .brand {
    font-size: 0;
    padding: 0;
  }
  .brand-symbol {
    margin: 0;
  }
  .brand-caption,
  .brand-dot,
  .nav-item > span:not([data-icon]),
  .sidebar-bottom .local-status,
  .prototype-label {
    display: none;
  }
  .main-nav {
    margin-top: 35px;
    width: 100%;
  }
  .nav-item {
    justify-content: center;
    padding: 13px;
  }
  .workspace {
    margin-left: 76px;
  }
  .sidebar-bottom {
    width: 100%;
  }
  .page-heading > .small-label {
    display: none;
  }
  .recipe-grid,
  .meal-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-recipes .recipe-tile:last-child {
    display: none;
  }
  .meal-image {
    height: 200px;
  }
  .result-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 600px) {
  .taste-workspace { grid-template-columns: 1fr; gap: 24px; }
  .swipe-stage { overflow: clip; padding: 3px; border-radius: 8px; }
  .swipe-photo .meal-image { height: 225px; }
  .swipe-card-content { padding: 15px 18px 8px; }
  .swipe-card-content h2 { font-size: 25px; margin: 8px 0 4px; }
  .swipe-card-content > p { display: none; }
  .swipe-card-content > button { margin-top: 0; }
  .swipe-actions { margin-top: 18px; gap: 35px; }
  .taste-profile { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; margin: 0; }
  #tasteScreen .page-heading { align-items: flex-start; flex-direction: column; gap: 5px; margin-bottom: 10px; }
  #tasteScreen .page-heading h1 { font-size: 29px; }
  .taste-invitation { gap: 13px; }
  .taste-invitation-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .taste-invitation h2 { font-size: 18px; }
  .taste-invitation > button { margin-left: 47px; }
  .taste-review-row { flex-wrap: wrap; gap: 12px; }
  .taste-review-row > div:not(.taste-review-actions) { flex: 1; min-width: 150px; }
  .taste-review-actions { margin-left: 92px; }
  .taste-review .section-heading { flex-direction: column; align-items: flex-start; }
  .mobile-brand {
    display: block;
    font:
      700 25px Georgia,
      serif;
    background: none;
    border: 0;
    padding: 0;
  }
  .breadcrumb {
    display: none;
  }
  body {
    font-size: 13px;
  }
  h1 {
    font-size: 31px;
  }
  h2 {
    font-size: 21px;
  }
  .sidebar {
    inset: auto 0 0;
    width: 100%;
    height: auto;
    display: block;
    padding: 6px 4px max(6px, env(safe-area-inset-bottom));
    background: #fffffff5;
    backdrop-filter: blur(12px);
    border: 0;
    border-top: 1px solid var(--line);
  }
  .sidebar .brand,
  .sidebar-bottom {
    display: none;
  }
  .main-nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2px;
    margin: 0;
  }
  .nav-item {
    min-height: 52px;
    flex-direction: column;
    gap: 3px;
    padding: 5px 1px;
    border-radius: 6px;
    font-size: 9px;
    line-height: 1.2;
  }
  .nav-item > span:nth-child(2) {
    display: block;
  }
  .nav-item .icon {
    width: 19px;
    height: 19px;
  }
  .nav-item.active {
    background: #eff4e9;
  }
  .workspace {
    margin-left: 0;
    padding-bottom: 76px;
  }
  .topbar {
    height: 56px;
    padding: 0 20px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .breadcrumb span {
    margin: 0 8px;
  }
  .avatar {
    width: 28px;
    height: 28px;
  }
  .avatar svg {
    width: 17px;
    height: 17px;
  }
  .page-shell {
    padding: 25px 20px 0;
    min-height: calc(100dvh - 132px);
  }
  .page-heading {
    margin-bottom: 24px;
  }
  .page-heading .eyebrow {
    font-size: 9px;
  }
  .page-heading h1 + p {
    font-size: 12px;
  }
  .week-starter {
    padding: 20px 19px 0;
  }
  .starter-top .badge {
    font-size: 9px;
    padding-inline: 7px;
  }
  .section-eyebrow {
    font-size: 9px;
  }
  .starter-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
    padding: 20px 0;
  }
  .starter-content h2 {
    font-size: 21px;
  }
  .starter-content p {
    font-size: 12px;
  }
  .starter-content .primary-button {
    width: 100%;
  }
  .starter-footer {
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
    text-align: center;
  }
  .starter-footer > span {
    display: none;
  }
  .starter-footer .text-button {
    font-size: 10px;
    min-height: 35px;
  }
  .section-heading {
    gap: 10px;
    margin-bottom: 18px;
  }
  .section-heading .eyebrow {
    font-size: 8px;
  }
  .section-heading h2 {
    font-size: 20px;
  }
  .section-heading > .text-button {
    font-size: 10px;
    white-space: nowrap;
    gap: 4px;
  }
  .recipe-grid,
  .meal-plan-grid {
    gap: 12px;
  }
  .home-recipes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .meal-image {
    height: 140px;
  }
  .meal-card-body {
    padding: 12px;
  }
  .meal-card-body h3,
  .meal-card-body h4 {
    font-size: 13px;
    min-height: 54px;
  }
  .meal-card-meta {
    flex-wrap: wrap;
    gap: 5px 9px;
    font-size: 10px;
    margin-top: 10px;
    padding-top: 9px;
  }
  .meal-card-meta svg {
    width: 13px;
    height: 13px;
  }
  .card-arrow {
    display: none;
  }
  .image-tag {
    left: 8px;
    bottom: 8px;
    font-size: 9px;
    padding: 3px 6px;
  }
  .favorite-button {
    width: 34px;
    height: 34px;
    right: 8px;
    top: 8px;
  }
  .favorite-button svg {
    width: 17px;
    height: 17px;
  }
  .daily-tip {
    margin-top: 24px;
    gap: 14px;
    align-items: flex-start;
  }
  .tip-symbol {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .tip-symbol svg {
    width: 17px;
    height: 17px;
  }
  .daily-tip .eyebrow {
    font-size: 8px;
  }
  .daily-tip h3 {
    font-size: 15px;
  }
  .daily-tip p:last-child {
    font-size: 11px;
  }
  .daily-tip > .text-button {
    margin: 0 0 0 48px;
    font-size: 11px;
  }
  .page-footer {
    font-size: 9px;
    padding-top: 25px;
  }
  .page-footer > span:last-child {
    display: none;
  }
  .footer-motto {
    margin-left: 8px;
  }
  .library-toolbar {
    flex-direction: column;
    gap: 10px;
  }
  .learning-grid {
    grid-template-columns: 1fr;
  }
  .learning-item {
    padding: 24px;
  }
  .quiz-heading {
    margin-bottom: 15px;
  }
  .quiz-heading .small-label {
    font-size: 10px;
  }
  .quiz-surface {
    padding: 24px 18px 18px;
    margin-top: 18px;
  }
  .step-card h2 {
    font-size: 27px;
  }
  .step-description {
    font-size: 12px;
    margin-bottom: 18px;
  }
  .choice-grid {
    gap: 9px;
    margin-top: 20px;
  }
  .choice-card {
    min-height: 61px;
    padding: 12px 30px 12px 11px;
    font-size: 12px;
  }
  .choice-card::after {
    right: 10px;
    width: 13px;
    height: 13px;
  }
  [data-group="pantry"] {
    grid-template-columns: 1fr 1fr;
  }
  .budget-value {
    font-size: 65px;
  }
  .budget-control {
    padding: 16px 0;
  }
  .step-insight {
    font-size: 11px;
  }
  .step-actions .primary-button {
    padding-inline: 15px;
  }
  .quiz-reassurance {
    font-size: 10px;
  }
  .result-stats {
    grid-template-columns: 1fr 1fr;
    gap: 20px 0;
    padding: 20px 0;
  }
  .stat:nth-child(3) {
    border: 0;
    padding: 0;
  }
  .stat-value {
    font-size: 23px;
  }
  .result-tabs {
    gap: 22px;
  }
  .result-tabs button {
    font-size: 12px;
    gap: 6px;
  }
  .panel-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .meal-plan-grid {
    grid-template-columns: 1fr;
  }
  .meal-plan-grid .meal-image {
    height: 220px;
  }
  .meal-plan-grid .meal-card-body h4 {
    font-size: 18px;
    min-height: auto;
  }
  .meal-plan-grid .meal-card-body {
    padding: 18px;
  }
  .meal-plan-grid .meal-card-meta {
    font-size: 12px;
  }
  .tips-panel {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .tips-panel h2 {
    max-width: none;
  }
  .summary-list {
    grid-template-columns: 1fr;
  }
  .grocery-panel .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .grocery-columns {
    grid-template-columns: 1fr;
  }
  .budget-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .budget-note > div:first-child {
    flex-basis: auto;
  }
  .result-actions {
    align-items: flex-start;
  }
  .modal {
    padding: 12px;
  }
  .meal-modal-card {
    max-height: calc(100dvh - 24px);
  }
  .meal-detail-image {
    height: 225px;
  }
  .modal-content {
    padding: 22px 18px;
  }
  .modal-content h2 {
    font-size: 27px;
  }
  .modal-detail-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .modal-tools {
    flex-wrap: wrap;
  }
  .toast {
    bottom: 85px;
  }
}
@media (max-width: 360px) {
  .page-shell {
    padding-inline: 14px;
  }
  .home-recipes,
  .recipe-grid {
    grid-template-columns: 1fr;
  }
  .meal-image {
    height: 200px;
  }
  .meal-card-body h3 {
    min-height: auto;
  }
  .choice-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .page-footer,
  .result-header button,
  .result-tabs,
  .result-actions,
  .summary-panel,
  .tips-panel,
  .shopping-progress button,
  .button-row,
  .toast,
  .modal,
  .skip-link {
    display: none !important;
  }
  body {
    background: white;
    color: black;
    font-size: 11px;
  }
  .workspace {
    margin: 0;
    padding: 0;
  }
  .page-shell {
    padding: 0;
  }
  .page-heading {
    margin-bottom: 16px;
  }
  h1 {
    font-size: 25px;
  }
  .grocery-columns {
    grid-template-columns: 1fr 1fr;
  }
  .grocery-category,
  .grocery-row {
    break-inside: avoid;
  }
  .grocery-row {
    padding: 7px 0;
  }
  .grocery-row input {
    appearance: none;
    width: 12px;
    height: 12px;
    border: 1px solid #777;
  }
  .grocery-row input:checked {
    background: #777;
  }
}
