:root {
  --bg: #fff8ed;
  --surface: #fffdf8;
  --surface-2: #fff2df;
  --ink: #2a2018;
  --muted: #796b5e;
  --line: #eadfce;
  --orange: #f26b21;
  --orange-dark: #c44c11;
  --green: #8cb263;
  --yellow: #f4b33d;
  --danger: #e76845;
  --shadow: 0 16px 45px rgba(86, 54, 24, 0.11);
  --radius: 26px;
  color-scheme: light;
  font-family: Nunito, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 224, 176, 0.55), transparent 32rem),
    radial-gradient(circle at 88% 16%, rgba(148, 188, 98, 0.16), transparent 28rem),
    var(--bg);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  min-height: 44px;
  border: 0;
  color: inherit;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

button:active { transform: scale(0.98); }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(242, 107, 33, 0.42); outline-offset: 3px; }

.app-shell {
  min-height: 100dvh;
  padding: env(safe-area-inset-top) 24px calc(92px + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin: 0 -24px 24px;
  padding: 14px 24px;
  background: rgba(255, 248, 237, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.profile,
.nav-pill,
.chips button,
.bottom-nav button,
.ghost-link {
  background: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--orange);
}

.brand-mark svg { width: 100%; height: 100%; }

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
}

.nav-pill.is-active,
.bottom-nav button.is-active {
  color: var(--orange);
  background: #fff0de;
}

.profile {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-weight: 800;
}

.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f6c184, #ad6b35);
  color: #fff;
}

main {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.view {
  display: none;
  animation: rise 260ms ease both;
}

.view.is-visible { display: block; }

.hero,
.page-head { margin: 24px 0 20px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-weight: 900;
  letter-spacing: 0.03em;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

h2, h3 { margin: 0; letter-spacing: -0.03em; }

.lead {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
}

.search-card {
  display: grid;
  grid-template-columns: 42px 1fr 58px;
  align-items: center;
  gap: 8px;
  margin: 30px 0 18px;
  padding: 8px 10px 8px 22px;
  border: 2px solid var(--orange);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.search-card input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
}

.search-card input:focus { outline: 0; }

.round-action {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(242, 107, 33, 0.28);
}

.round-action span,
.stack-list button span {
  width: 14px;
  height: 14px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(45deg);
  color: #fff;
}

.chips {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: none;
}

.chips button {
  flex: 0 0 auto;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 6px 18px rgba(86, 54, 24, 0.06);
  font-weight: 800;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
}

.recipe-preview {
  display: grid;
  grid-template-columns: 34% 1fr 220px;
  gap: 24px;
  align-items: center;
  padding: 14px;
}

.food-photo,
.recipe-hero,
.lesson-img {
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 244, 211, 0.72) 0 12%, transparent 13%),
    radial-gradient(circle at 45% 50%, #803615 0 18%, transparent 19%),
    radial-gradient(circle at 58% 48%, #9d4219 0 15%, transparent 16%),
    linear-gradient(135deg, #a85a23, #522917);
}

.food-photo.empty-plate {
  background:
    radial-gradient(circle at 50% 50%, #fffdf8 0 28%, #efe2cf 29% 43%, transparent 44%),
    linear-gradient(135deg, #fff6e5, #f6dfbd);
}

.food-photo {
  min-height: 210px;
  border-radius: 20px;
}

.empty-copy {
  max-width: 720px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.recipe-copy h2 { font-size: clamp(28px, 3.2vw, 42px); }

.steps {
  margin: 12px 0 12px 22px;
  padding: 0;
  font-size: 20px;
  line-height: 1.55;
}

.ghost-link {
  min-height: 44px;
  padding: 0;
  color: var(--orange-dark);
  font-weight: 900;
}

.mascot-note {
  display: grid;
  place-items: center;
  color: var(--orange);
  text-align: center;
  font-weight: 900;
}

.chef-cat {
  width: 96px;
  height: 74px;
  border: 4px solid currentColor;
  border-radius: 45% 45% 38% 38%;
  position: relative;
}

.chef-cat::before,
.chef-cat::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 50%;
}

.chef-cat::before {
  width: 7px;
  height: 7px;
  left: 29px;
  top: 28px;
  box-shadow: 28px 0 0 currentColor;
}

.chef-cat::after {
  width: 38px;
  height: 4px;
  left: 27px;
  top: 48px;
}

.chef-cat.small { width: 66px; height: 54px; flex: 0 0 auto; color: var(--orange); }

.star,
.search-icon,
.icon,
.metric-icon,
.big-check,
.bulb {
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
}

.star {
  width: 26px;
  height: 26px;
  background: var(--orange);
  clip-path: polygon(50% 0,61% 34%,98% 35%,68% 56%,79% 91%,50% 70%,21% 91%,32% 56%,2% 35%,39% 34%);
}

.search-icon {
  width: 26px;
  height: 26px;
  border: 3px solid #7e6f62;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: -5px;
  width: 11px;
  height: 3px;
  background: #7e6f62;
  transform: rotate(45deg);
  border-radius: 999px;
}

.icon { width: 22px; height: 22px; color: currentColor; }
.icon.fork::before, .icon.calendar::before, .icon.book::before, .icon.spark::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 5px;
}
.icon.fork::after { content: ""; position: absolute; left: 10px; top: 2px; width: 2px; height: 18px; background: currentColor; border-radius: 9px; }
.icon.calendar::after { content: ""; position: absolute; left: 5px; right: 5px; top: 8px; height: 2px; background: currentColor; }
.icon.book::before { border-radius: 2px 8px 8px 2px; }
.icon.spark::after { content: ""; position: absolute; inset: 7px; background: currentColor; border-radius: 50%; box-shadow: 0 -8px 0 -2px currentColor, 0 8px 0 -2px currentColor, 8px 0 0 -2px currentColor, -8px 0 0 -2px currentColor; }

.macro-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 14px;
  margin: 14px 0;
}

.metric {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: end;
  gap: 6px 10px;
  padding: 18px;
}

.metric b { font-size: clamp(26px, 3vw, 36px); line-height: 1; }
.metric small { grid-column: 2 / -1; color: var(--muted); }
.metric-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--orange); grid-row: span 2; }
.metric-icon.protein { background: var(--green); clip-path: polygon(20% 70%, 45% 10%, 65% 20%, 58% 44%, 84% 42%, 92% 65%, 77% 83%, 45% 88%); }
.metric-icon.fat { background: var(--yellow); clip-path: ellipse(36% 48% at 50% 56%); }
.metric-icon.carbs { background: var(--orange); border-radius: 16px 4px 16px 4px; }
.metric-icon.leaf { background: var(--green); border-radius: 70% 0 70% 0; }

.two-col {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 14px;
  margin-top: 14px;
}

.stack-list { padding: 18px; }
.stack-list h2, .stack-list h3 { margin-bottom: 10px; }
.stack-list button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
}
.stack-list button span { color: #8e7c6b; }

.verdict {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(139, 178, 99, 0.2), rgba(255, 239, 214, 0.72));
}

.big-check {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--green);
}

.big-check::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 18px;
  width: 24px;
  height: 38px;
  border-right: 6px solid #fff;
  border-bottom: 6px solid #fff;
  transform: rotate(45deg);
}

.back-button {
  margin-bottom: 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.recipe-hero {
  min-height: 250px;
  display: flex;
  align-items: end;
  padding: 34px;
  border-radius: 22px;
  color: #fff;
  box-shadow: var(--shadow);
}

.recipe-hero.goulash {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.58)),
    radial-gradient(circle at 42% 48%, #9e4216 0 8%, transparent 9%),
    radial-gradient(circle at 58% 42%, #703111 0 9%, transparent 10%),
    linear-gradient(135deg, #b56128, #3d1e12);
}

.recipe-layout { grid-template-columns: 1.05fr 0.95fr; }
.recipe-layout .card { padding: 24px; }
.numbered { margin: 14px 0 0 22px; font-size: 18px; line-height: 1.8; }
.soft-line { margin: 24px 0 0; color: var(--muted); font-weight: 800; }

.macro-table { margin-top: 14px; padding: 24px; }
.macro-table h2 { margin-bottom: 10px; }
.macro-table div {
  display: grid;
  grid-template-columns: 180px 120px minmax(120px, 1fr) 140px;
  align-items: center;
  gap: 16px;
  min-height: 42px;
  border-top: 1px solid var(--line);
}
.macro-table div::before { content: attr(data-label); color: var(--muted); }
.macro-table i,
.diary-metrics small i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green) var(--v), #eee7dc var(--v));
}
.macro-table i.warn { background: linear-gradient(90deg, var(--danger) var(--v), #eee7dc var(--v)); }

.diary-metrics { grid-template-columns: repeat(4, minmax(160px, 1fr)); }
.diary-metrics .metric small { display: grid; gap: 8px; }

.meal-list { padding: 10px 24px; }
.meal-list button {
  display: grid;
  grid-template-columns: 1fr 100px 120px;
  gap: 16px;
  width: 100%;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  font-size: 20px;
}
.meal-list button:last-child { border-bottom: 0; }
.meal-list time { color: var(--muted); }
.meal-list b { text-align: right; }

.empty-state {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 46px 24px;
  text-align: center;
}

.empty-state p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.empty-plate-mini {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fffdf8 0 30%, #efe2cf 31% 48%, transparent 49%),
    #fff6e5;
  box-shadow: inset 0 0 0 1px var(--line);
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
}

.lesson-card { overflow: hidden; }
.lesson-img { min-height: 160px; border-radius: 24px 24px 0 0; }
.lesson-img.rice { background: linear-gradient(135deg, #f6eedf 0 48%, #b98d52 49%); }
.lesson-img.fiber { background: radial-gradient(circle at 50% 45%, #8cb263 0 22%, transparent 23%), linear-gradient(135deg, #f7ead4, #d99f5b); }
.lesson-img.mayo { background: radial-gradient(circle at 52% 54%, #fff8de 0 26%, transparent 27%), linear-gradient(135deg, #f7d293, #fffaf0); }
.lesson-img.snack { background: radial-gradient(circle at 30% 42%, #c06b37 0 8%, transparent 9%), linear-gradient(135deg, #ecd1a1, #ac743a); }
.lesson-card h2 { padding: 18px 18px 8px; font-size: 22px; }
.lesson-card small { display: block; padding: 0 18px 18px; color: var(--muted); font-weight: 900; }

.mini-lesson {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(139, 178, 99, 0.2), rgba(255, 244, 212, 0.9));
}

.bulb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green);
}

.primary {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(242, 107, 33, 0.22);
}
.primary.secondary { background: var(--green); box-shadow: 0 12px 24px rgba(99, 144, 58, 0.2); }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

.plan { padding: 24px; position: relative; }
.plan.is-featured { border-color: rgba(242, 107, 33, 0.55); background: #fff6e9; }
.badge {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(242, 107, 33, 0.12);
  color: var(--orange-dark);
  font-weight: 900;
}
.price { font-size: 34px; font-weight: 1000; margin: 12px 0; }
.price small { color: var(--muted); font-size: 16px; }
.plan ul { margin: 0 0 22px; padding-left: 20px; line-height: 1.85; }

.bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 30;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 16px 40px rgba(71, 42, 20, 0.14);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 58px;
  border-radius: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.bottom-nav .icon { width: 20px; height: 20px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 40;
  max-width: min(92vw, 460px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(42, 32, 24, 0.92);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.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;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .app-shell { padding-inline: 14px; }
  .topbar { grid-template-columns: 1fr auto; margin-inline: -14px; padding-inline: 14px; }
  .desktop-nav { display: none; }
  .profile-name { display: none; }
  .bottom-nav { display: grid; }
  .recipe-preview { grid-template-columns: 1fr; }
  .mascot-note { display: none; }
  .macro-grid, .diary-metrics, .lesson-grid, .plans-grid, .two-col { grid-template-columns: 1fr; }
  .macro-table div { grid-template-columns: 1fr; gap: 6px; padding: 10px 0; }
  .meal-list button { grid-template-columns: 1fr auto; font-size: 17px; }
  .meal-list time { grid-column: 1; }
  .meal-list b { grid-row: 1; grid-column: 2; }
  .mini-lesson { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  h1 { font-size: 40px; }
  .food-photo { min-height: 170px; }
  .search-card { grid-template-columns: 30px 1fr 50px; padding-left: 16px; }
  .round-action { width: 50px; height: 50px; }
  .metric { padding: 16px; }
  .verdict { align-items: flex-start; padding: 20px; }
  .big-check { width: 54px; height: 54px; }
  .big-check::after { left: 16px; top: 12px; width: 17px; height: 28px; border-width: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

/* Brand system: calm dark shell, milk surfaces, one soft-lime accent. */
:root {
  --bg: #111613;
  --surface: #1e2328;
  --surface-2: #2a3036;
  --ink: #fdfbf8;
  --muted: #a8adb0;
  --line: rgba(247, 245, 240, 0.1);
  --orange: #cfef8b;
  --orange-dark: #cfef8b;
  --green: #cfef8b;
  --yellow: #cfef8b;
  --danger: #ff8d7e;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius: 24px;
  color-scheme: dark;
  font-family: Inter, Onest, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { max-width: 100%; overflow-x: hidden; background: var(--bg); }
body {
  min-width: 320px;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 5%, rgba(207, 239, 139, 0.12), transparent 19rem),
    radial-gradient(circle at 0% 72%, rgba(221, 235, 195, 0.07), transparent 22rem),
    var(--bg);
  color: var(--ink);
}

button { touch-action: manipulation; }
button:focus-visible, input:focus-visible { outline-color: rgba(207, 239, 139, 0.72); }
button:disabled { cursor: wait; opacity: 0.5; }

.app-shell { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 20px; overflow-x: clip; }
.topbar {
  margin-inline: -20px;
  padding-inline: 20px;
  background: rgba(17, 22, 19, 0.88);
  border-color: var(--line);
}
.brand { font-size: 17px; letter-spacing: -0.02em; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.nav-pill { min-height: 48px; color: var(--muted); font-weight: 650; }
.nav-pill.is-active, .bottom-nav button.is-active {
  color: #171b17;
  background: var(--green);
}
.avatar { color: #151a15; background: var(--green); }

.hero { max-width: 820px; margin-top: clamp(36px, 8vw, 96px); }
.eyebrow { color: var(--green); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
h1 { max-width: 800px; overflow-wrap: anywhere; font-size: clamp(42px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.055em; }
h2, h3 { letter-spacing: -0.025em; }
.lead { max-width: 640px; color: var(--muted); line-height: 1.55; }

.search-card {
  grid-template-columns: 32px 1fr 56px;
  max-width: 780px;
  min-height: 72px;
  margin-top: 32px;
  border: 1px solid rgba(207, 239, 139, 0.34);
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.04);
}
.search-card:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(207,239,139,.09), var(--shadow); }
.search-card input { color: var(--ink); font-size: clamp(17px, 2.4vw, 22px); font-weight: 550; }
.search-card input::placeholder { color: #858c8f; opacity: 1; }
.search-icon { border-color: var(--muted); transform: scale(.72); }
.search-icon::after { background: var(--muted); }
.round-action { width: 52px; height: 52px; background: var(--green); box-shadow: 0 10px 26px rgba(207,239,139,.14); }
.round-action span { color: #151a15; }

.chips { gap: 8px; padding-block: 2px 10px; }
.chips button {
  min-height: 44px;
  padding: 9px 16px;
  color: #d5d8d6;
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
  font-weight: 600;
}
.chips button:hover { color: #151a15; background: var(--green); }

.card { border-color: var(--line); background: var(--surface); box-shadow: var(--shadow); }
.recipe-preview { margin-top: 24px; padding: 18px; }
.food-photo.empty-plate {
  background: url('./ne-parsya-avatar.webp') center / cover no-repeat, var(--surface-2);
}
.recipe-copy h2 { font-size: clamp(27px, 3vw, 38px); }
.empty-copy { color: var(--muted); font-size: 17px; }
.mascot-note { color: var(--green); }
.chef-cat { color: var(--green); }

.macro-grid { grid-template-columns: repeat(5, minmax(118px, 1fr)); gap: 10px; margin-top: 10px; }
.metric { min-height: 112px; padding: 16px; border-radius: 20px; box-shadow: none; }
.metric b { font-size: clamp(25px, 3vw, 34px); font-variant-numeric: tabular-nums; }
.metric small { color: var(--muted); }
.metric-icon { width: 28px; height: 28px; background: var(--green); opacity: .88; }

#view-home .two-col { display: none; }
.page-head { margin-top: clamp(36px, 7vw, 72px); }
.empty-state { margin-top: 16px; }
.empty-plate-mini { background: url('./ne-parsya-avatar.webp') center / cover; box-shadow: none; }
.verdict { background: linear-gradient(135deg, rgba(207,239,139,.13), var(--surface)); }
.primary { color: #151a15; background: var(--green); box-shadow: none; }
.ghost-link { color: var(--green); }

.live-data { color: #e9ebe9; line-height: 1.65; border-color: var(--line) !important; background: var(--surface) !important; }
.live-data .action-chip, .live-data button {
  min-height: 48px;
  margin: 8px 8px 0 0 !important;
  padding: 0 16px;
  border: 1px solid rgba(207,239,139,.28);
  border-radius: 14px;
  color: var(--ink);
  background: var(--surface-2);
}
.live-data button:first-of-type { color: #151a15; background: var(--green); }

.bottom-nav {
  grid-template-columns: repeat(3, 1fr);
  width: calc(100% - 24px);
  max-width: 720px;
  margin-inline: auto;
  border-color: rgba(255,255,255,.1);
  background: rgba(30,35,40,.94);
  box-shadow: 0 18px 50px rgba(0,0,0,.42);
}
.bottom-nav button { min-height: 56px; color: var(--muted); border-radius: 16px; }
.toast { color: #151a15; background: var(--green); box-shadow: 0 14px 36px rgba(0,0,0,.3); }

body.is-busy .search-card { overflow: hidden; position: relative; }
body.is-busy .search-card::after {
  content: "";
  position: absolute;
  inset: auto 14px 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  animation: calm-progress 900ms ease-in-out infinite;
}
@keyframes calm-progress { from { transform: translateX(-85%); } to { transform: translateX(85%); } }

@media (max-width: 980px) {
  .app-shell { padding-inline: 16px; }
  .topbar { margin-inline: -16px; padding-inline: 16px; }
  .hero { margin-top: 32px; }
  .recipe-preview { grid-template-columns: 110px 1fr; }
  .recipe-preview > *, .metric, .search-card > * { min-width: 0; }
  .food-photo { min-height: 110px; }
  .macro-grid, .diary-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .macro-grid .metric:last-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .app-shell { padding-inline: 14px; }
  .topbar { margin-inline: -14px; padding: 10px 14px; }
  h1 { font-size: clamp(38px, 11vw, 48px); }
  .lead { font-size: 17px; }
  .search-card { min-height: 64px; margin-top: 24px; padding-left: 16px; }
  .recipe-preview { grid-template-columns: 76px 1fr; gap: 14px; padding: 14px; }
  .food-photo { min-height: 76px; border-radius: 18px; }
  .recipe-copy h2 { font-size: 22px; }
  .empty-copy { margin-bottom: 0; font-size: 15px; }
  .metric { min-height: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  body.is-busy .search-card::after { animation: none; }
}
