/* SlimlyMe — clean wellness UI. Mobile-first; sidebar appears on wide screens. */
:root {
  --bg: #f4efe4;            /* warm cream */
  --surface: #fffdf7;       /* warm white */
  --surface-soft: #f0e9db;  /* soft cream inset */
  --ink: #2e2a24;           /* warm charcoal */
  --muted: #8a8172;         /* warm taupe */
  --line: #e7ddcb;          /* warm hairline */
  --green: #3f8a5c;         /* botanical green — primary accent */
  --green-dark: #2e6a45;    /* deep forest — text/active */
  --green-soft: #e3efe6;    /* pale green — soft fills */
  --accent: #3f8a5c;
  --coral: #c07d56;         /* terracotta */
  --terracotta: #c07d56;
  --yellow: #cf9f43;        /* warm ochre */
  --info: #4e879c;          /* soft teal — 4th accent for tiles */
  --danger: #c15a4f;
  --danger-soft: #f6e7e1;
  --radius: 18px;
  --radius-sm: 12px;
  /* Bento: flat & crisp — cards define themselves with borders, not blurry shadows */
  --shadow: 0 1px 2px rgba(46, 42, 36, 0.07);
  --shadow-soft: 0 1px 2px rgba(46, 42, 36, 0.04);
  --glass: rgba(255,253,247,.82);
  --toast-bg: #2e2a24;
  --nav-h: 66px;
  --sans: 'Manrope', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}

/* ---- Dark theme (auto by OS, overridable by the toggle) ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1712; --surface: #241f18; --surface-soft: #2f2820;
    --ink: #f2ece0; --muted: #d0c6b4; --line: #453d31;
    --green: #5aa877; --green-dark: #86c99d; --accent: #5aa877;
    --green-soft: #27392d; --coral: #d0906a; --terracotta: #d0906a;
    --yellow: #d9b25f; --info: #7fb3c4; --danger: #d97b6f; --danger-soft: #3a2521;
    --shadow: 0 1px 2px rgba(0,0,0,.5); --shadow-soft: 0 1px 2px rgba(0,0,0,.35);
    --glass: rgba(30,26,20,.85); --toast-bg: #0f0d0a;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1712; --surface: #241f18; --surface-soft: #2f2820;
  --ink: #f2ece0; --muted: #d0c6b4; --line: #453d31;
  --green: #5aa877; --green-dark: #86c99d; --accent: #5aa877;
  --green-soft: #27392d; --coral: #d0906a; --terracotta: #d0906a;
  --yellow: #d9b25f; --info: #7fb3c4; --danger: #d97b6f; --danger-soft: #3a2521;
  --shadow: 0 1px 2px rgba(0,0,0,.5); --shadow-soft: 0 1px 2px rgba(0,0,0,.35);
  --glass: rgba(30,26,20,.85); --toast-bg: #0f0d0a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-family: var(--sans); font-weight: 800; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
[hidden] { display: none !important; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px;
  font-weight: 700; color: var(--terracotta);
}

/* Buttons */
.btn {
  border: 0; border-radius: 12px; padding: 12px 20px; font-size: 15px; font-weight: 700;
  transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, #2f9e63, #23b58a); color: #fff; letter-spacing: .01em; box-shadow: 0 10px 22px rgba(35,150,110,.32); }
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 12px 26px rgba(35,150,110,.42); }
.btn-ghost { background: var(--surface-soft); color: var(--ink); border: 1px solid var(--line); }
.link { border: 0; background: none; color: var(--green-dark); font-weight: 600; font-size: 14px; padding: 0; }

/* ------------------ Onboarding ------------------ */
.onboarding {
  position: relative; z-index: 50; min-height: 100vh; min-height: 100dvh;
  background:
    radial-gradient(1100px 480px at 50% -12%, #e5e9db 0, transparent 62%),
    radial-gradient(900px 420px at 100% 8%, #f0ddcc 0, transparent 60%),
    var(--bg);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
}
.onboarding-card {
  background: var(--surface); width: 100%; max-width: 520px; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow); padding: 28px; display: grid; gap: 20px; margin: 0 auto;
}
.onboarding-head { display: grid; gap: 8px; justify-items: center; text-align: center; }
.onboarding-logo { height: auto; max-height: 104px; width: auto; max-width: 100%; margin-bottom: 6px; }
.onboarding-head h1 { font-size: 26px; }
.gender-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gender-toggle label {
  position: relative; text-align: center; padding: 12px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--surface-soft); font-weight: 600; color: var(--muted);
}
.gender-toggle input { position: absolute; opacity: 0; }
.gender-toggle label:has(input:checked) {
  border-color: var(--green); background: var(--green-soft); color: var(--green-dark);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cycle-setup { grid-template-columns: 1fr; }
label { font-size: 13px; font-weight: 600; color: var(--muted); display: grid; gap: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=tel], input[type=search], select {
  font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface-soft); color: var(--ink); font-weight: 600; width: 100%;
  font-family: var(--sans); -webkit-appearance: none; appearance: none;
}
input::placeholder { color: var(--muted); font-weight: 500; }
input:focus, select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
legend { font-weight: 700; font-size: 15px; color: var(--ink); padding: 0; margin-bottom: 4px; }
.check-grid { display: grid; gap: 8px; }
.check {
  flex-direction: row; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--surface-soft); color: var(--ink);
  font-weight: 500; font-size: 14px; display: flex;
}
.check input { width: 18px; height: 18px; accent-color: var(--green); }
.check:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.onboarding-actions { display: grid; gap: 10px; }
.onboarding-actions .btn { width: 100%; }

.auth-card { max-width: 440px; }
.auth-error { background: var(--danger-soft); color: #8a3b31; border-radius: 12px; padding: 11px 14px; font-size: 13px; font-weight: 600; }
/* Social login */
.social-auth { display: grid; gap: 12px; margin-top: 4px; }
.social-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 600; }
.social-divider::before, .social-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social-buttons { display: grid; gap: 10px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 14px; border-radius: 12px; cursor: pointer;
  font-weight: 700; font-size: 15px; font-family: inherit; transition: filter .15s, box-shadow .15s;
}
.social-btn:hover { filter: brightness(.96); box-shadow: var(--shadow-soft); }
.social-btn svg { flex: none; }
.social-glyph { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; font-weight: 800; font-size: 15px; }

.account-info { display: block; }
.account-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.account-legal a { color: var(--muted); text-decoration: none; font-weight: 600; }
.account-legal a:hover { text-decoration: underline; }
.link-danger { color: var(--danger); font-weight: 700; margin-left: auto; font-size: 13px; }
.account-id { display: grid; gap: 2px; min-width: 0; }
.account-id strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-card { background: linear-gradient(135deg, var(--green-soft), #fff 80%); }

/* ------------------ App shell ------------------ */
.app-shell { min-height: 100vh; }
.sidebar { display: none; }
.main-wrap { min-height: 100vh; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--glass); backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-logo { height: 46px; width: auto; }
.topbar-btn {
  border: 1px solid var(--line); background: var(--surface-soft); color: var(--ink);
  width: 38px; height: 38px; border-radius: 12px; flex: none; font-size: 17px;
  display: grid; place-items: center; line-height: 1;
}
.topbar-btn:hover { border-color: var(--green); }
.topbar-plan { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.topbar-plan-name { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.offline-badge { border: 0; background: var(--yellow); color: #5a4300; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; border: 0; flex: none;
  background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff;
  font-weight: 700; font-size: 16px; display: grid; place-items: center;
}

main { --main-px: 16px; padding: 18px var(--main-px) 8px; max-width: 780px; margin: 0 auto; }
.view { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.view-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.view-head h2 { font-size: 24px; }
.view-head p { margin: 2px 0 0; }

/* Hero band (overview) — adds warmth/colour */
.hero-band {
  border-radius: var(--radius); padding: 26px 24px 26px; color: #fff; position: relative; overflow: hidden;
  min-height: 140px; display: flex; align-items: flex-end;
  background: linear-gradient(135deg, #2f9e63 0%, #23b58a 55%, #7fd66a 100%);
  box-shadow: 0 12px 30px rgba(35,150,110,.30);
}
.hero-copy { position: relative; display: grid; gap: 5px; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; opacity: .92; color: #f3e6d6; }
.hero-band h2 { font-size: 27px; }
.hero-band p { margin: 2px 0 0; font-size: 14px; opacity: .92; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 20px; display: grid; gap: 14px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
@media (hover: hover) { .card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.10); } }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h3 { font-size: 18px; }

/* Summary + calorie ring */
.summary-card { grid-template-columns: auto 1fr; align-items: center; gap: 20px; }
.ring { position: relative; width: 134px; height: 134px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.ring-track { stroke: var(--surface-soft); }
.ring-progress { stroke: url(#ringGrad); stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset .85s cubic-bezier(.2,.7,.2,1); }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; }
.ring-label strong { font-size: 36px; letter-spacing: -0.02em; font-family: var(--sans); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--green-dark); }
.ring-label span { font-size: 11px; color: var(--muted); }
.summary-macros { display: grid; gap: 12px; }
.macro { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: baseline; font-size: 13px; color: var(--muted); font-weight: 600; }
.macro strong { color: var(--ink); font-size: 15px; }
.macro .bar { grid-column: 1 / -1; height: 7px; border-radius: 999px; background: var(--surface-soft); overflow: hidden; }
.macro .bar b { display: block; height: 100%; border-radius: 999px; }
.macro .bar b[data-macro=p] { background: #3f8a5c; }
.macro .bar b[data-macro=f] { background: #c07d56; }
.macro .bar b[data-macro=c] { background: #cf9f43; }

/* Stat grid */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { padding: 15px 16px; gap: 3px; background: var(--surface-soft); border-color: transparent; box-shadow: none; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat strong { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-size: 12px; }

/* Meal mini list (overview) */
.meal-mini-list { display: grid; gap: 4px; }
.meal-mini { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; }
.meal-mini:nth-child(odd) { background: var(--surface-soft); }
.meal-mini .time { font-weight: 800; font-size: 12px; color: #fff; background: var(--green); padding: 5px 9px; border-radius: 9px; font-variant-numeric: tabular-nums; }
.meal-mini .mm-body { min-width: 0; }
.meal-mini .mm-type { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.meal-mini .mm-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meal-mini .mm-kcal { font-weight: 700; font-size: 13px; color: var(--muted); white-space: nowrap; }

/* Toolbar / fields */
.toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); padding: 12px 14px; }

/* Plan cards */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* Overview teaser: horizontal scroll of diet cards. */
.plan-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin: 2px -4px -4px; padding: 2px 4px 6px; }
.plan-strip::-webkit-scrollbar { height: 0; }
.plan-strip .plan-card { flex: 0 0 150px; scroll-snap-align: start; }
/* Overview "Диеты" — animated slide carousel inside a normal card (same width as other cards). */
/* overflow:hidden makes the card's grid min-width resolve to 0, so it keeps the
   full column width (same as other cards) instead of stretching to the strip. */
.diets-card { overflow: hidden; }
/* min-width:0 stops the grid item from expanding to its content width — lets the
   strip clip & scroll inside the card instead of overflowing the page. */
.dc { position: relative; min-width: 0; max-width: 100%; }
.dc .plan-strip { min-width: 0; overflow-x: auto; scroll-behavior: smooth; margin: 0; padding: 2px 2px 6px; }
.dc-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--glass); backdrop-filter: blur(6px); color: var(--ink);
  font-size: 20px; line-height: 1; font-weight: 700; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow); z-index: 2;
  transition: transform .2s ease, opacity .2s ease;
}
.dc-arrow.prev { left: -8px; }
.dc-arrow.next { right: -8px; }
.dc-arrow:hover { transform: translateY(-50%) scale(1.08); }
.dc-arrow:disabled { opacity: .35; cursor: default; }
@media (hover: none) { .dc-arrow { display: none; } }   /* touch → свайп пальцем */

/* Diet detail: stats grid + tips. */
.plan-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0 2px; padding: 0; }
@media (min-width: 480px) { .plan-stats { grid-template-columns: repeat(3, 1fr); } }
.plan-stats > div { background: var(--green-soft); border: 1px solid color-mix(in srgb, var(--green) 22%, transparent); border-radius: var(--radius-sm); padding: 8px 10px; }
.plan-stats dt { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.plan-stats dd { margin: 2px 0 0; font-size: 14px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan-section { margin-top: 16px; }
.plan-section h4 { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.plan-tips { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.plan-tips li { position: relative; padding-left: 24px; font-size: 13px; line-height: 1.45; color: var(--ink); }
.plan-tips li::before { content: "✓"; position: absolute; left: 2px; top: 0; color: var(--green); font-weight: 800; }
.plan-card {
  position: relative; text-align: left; border: 1.5px solid var(--line); overflow: hidden;
  background: var(--surface);
  border-radius: 16px; padding: 15px 15px 14px; display: grid; gap: 5px; box-shadow: none;
  transition: transform .12s ease, border-color .15s ease;
}
.plan-card:active { transform: scale(.98); }
@media (hover: hover) { .plan-card:hover { transform: translateY(-2px); border-color: var(--pc, var(--green)); } }
.plan-card .pc-focus { font-size: 11px; color: color-mix(in srgb, var(--pc, var(--green)) 55%, var(--ink)); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.plan-card .pc-name { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.plan-card .pc-meta { font-size: 12px; color: var(--muted); }
.plan-card .pc-rec { justify-self: start; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--green-dark); background: var(--green-soft); border-radius: 999px; padding: 2px 8px; }
.plan-card.active { border-color: var(--pc, var(--green)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc, var(--green)) 20%, transparent); }
.plan-card.active .pc-name::after { content: " ✓"; color: var(--pc, var(--green)); }

.active-plan .chips { margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--green-soft); color: var(--green-dark); font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 999px; }

/* Day tabs */
.day-tabs-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
.day-tabs-wrap::-webkit-scrollbar { display: none; }
.day-tabs { display: inline-flex; gap: 8px; }
.day-tab { border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.day-tab.active { border-color: var(--green); background: var(--green); color: #fff; }

/* Meal-time editor + scale note */
.time-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.time-slot { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.time-slot.custom span { color: var(--green-dark); }
.time-slot.custom input { border-color: var(--green); background: var(--green-soft); }
.scale-note { background: var(--green-soft); color: var(--green-dark); border-radius: 12px; padding: 10px 14px; font-size: 13px; font-weight: 600; margin: 0; }

/* Meal list (full schedule) */
.meal-list { display: grid; gap: 10px; }
.meal-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); padding: 15px 16px; display: grid; gap: 8px; transition: box-shadow .18s ease; }
@media (hover: hover) { .meal-item:hover { box-shadow: var(--shadow); } }
.meal-item .mi-top { display: flex; align-items: center; gap: 10px; }
.meal-item .mi-time { font-weight: 800; font-size: 12px; color: #fff; background: var(--green); padding: 5px 10px; border-radius: 9px; font-variant-numeric: tabular-nums; }
.meal-item .mi-type { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--muted); }
.meal-item .mi-kcal { margin-left: auto; font-weight: 700; }
.meal-item .mi-name { font-weight: 600; font-size: 15px; }
.meal-item .mi-macros { display: flex; gap: 8px; flex-wrap: wrap; }
.meal-item .tag { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-soft); padding: 4px 9px; border-radius: 8px; }
.meal-item .mi-portion { font-size: 13px; color: var(--muted); }

/* Recipes */
.recipe-grid { display: grid; gap: 14px; }
.recipe-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 20px; display: grid; gap: 12px; }
.recipe-card .rc-head { display: grid; gap: 4px; }
.recipe-card .rc-type { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--terracotta); }
.recipe-card h3 { font-size: 19px; }
.recipe-card .rc-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.recipe-card h4 { margin: 4px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.recipe-card ul, .recipe-card ol { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 14px; }
.recipe-card .subs { background: var(--surface-soft); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.recipe-card .subs li { list-style: none; padding-left: 20px; position: relative; }
.recipe-card .subs { padding-left: 14px; }
.recipe-card .subs ul { padding-left: 0; }
.recipe-card .subs li::before { content: "⇄"; position: absolute; left: 0; color: var(--green-dark); font-weight: 700; }

/* Goal planner */
.goal-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.goal-form label:first-child { grid-column: 1 / -1; }
/* Weight section motivational hero banner (stock fitness photo + brand gradient) */
.weight-hero {
  position: relative; overflow: hidden; border-radius: var(--radius);
  color: #fff; box-shadow: var(--shadow-soft); background: var(--green-dark); min-height: 120px;
}
.weight-hero .wh-img { display: block; width: 100%; height: auto; }  /* full uncropped frame */
.wh-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(16, 36, 24, .86) 0%, rgba(16, 36, 24, .58) 28%, rgba(16, 36, 24, .2) 48%, rgba(16, 36, 24, 0) 64%);
}
.wh-copy {
  position: absolute; z-index: 2; left: clamp(18px, 4%, 32px); top: 50%; transform: translateY(-50%);
  max-width: 50%; display: grid; gap: 5px;
}
.wh-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: clamp(10px, 1.4vw, 12px); font-weight: 800; opacity: .92; text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.wh-title { font-size: clamp(22px, 4.4vw, 42px); font-weight: 800; letter-spacing: -.02em; line-height: 1.06; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.wh-sub { font-size: clamp(12px, 1.7vw, 15px); font-weight: 600; opacity: .96; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
/* Wider screens: split layout — full uncropped photo on the left, copy on a solid
   green panel to the right. Keeps head + counter (16:9 crops either), while the
   photo at ~55% width is shorter than a full-width 16:9 (~360px vs ~550px). */
@media (min-width: 640px) {
  .weight-hero { display: flex; align-items: stretch; }
  .weight-hero .wh-img { width: 55%; height: auto; align-self: flex-start; }  /* natural height, no crop */
  .wh-scrim { display: none; }                                                /* text sits on the panel, not the photo */
  .wh-copy {
    position: static; transform: none; max-width: none; flex: 1;
    display: flex; flex-direction: column; justify-content: center;
    gap: 8px; padding: clamp(20px, 3vw, 40px); background: var(--green-dark);
  }
  .wh-eyebrow, .wh-title, .wh-sub { text-shadow: none; }                      /* no photo underneath now */
}

.goal-result { display: grid; gap: 12px; }
.goal-summary { border-radius: var(--radius-sm); padding: 14px 16px; display: grid; gap: 3px; }
.goal-summary strong { font-size: 16px; }
.goal-summary span { font-size: 14px; }
.goal-summary b { font-weight: 800; }
.tone-ok { background: var(--green-soft); color: var(--green-dark); }
.tone-warn { background: #f7ecd6; color: #8a5b00; }
.tone-danger { background: var(--danger-soft); color: #8a3b31; }
.goal-notes { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; color: var(--ink); }
.goal-notes li { color: var(--muted); }
.goal-opts-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.goal-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.goal-opt {
  position: relative; text-align: left; border: 1.5px solid var(--line); background: var(--surface);
  border-radius: var(--radius-sm); padding: 14px 12px 12px; display: grid; gap: 3px; box-shadow: var(--shadow-soft);
}
.goal-opt.rec { border-color: var(--green); }
.goal-opt.chosen { box-shadow: 0 0 0 3px var(--green-soft); border-color: var(--green); }
.goal-opt:active { transform: scale(.98); }
.rec-tag { position: absolute; top: -9px; left: 12px; background: var(--green); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.go-label { font-weight: 700; font-size: 14px; }
.go-pace { font-size: 12px; color: var(--muted); }
.go-kcal { font-weight: 800; font-size: 16px; color: var(--green-dark); }
.go-time { font-size: 11px; color: var(--muted); }
.go-note { font-size: 11px; color: var(--coral); margin-top: 2px; }
@media (max-width: 560px) { .goal-opts { grid-template-columns: 1fr; } }

/* Weight */
.inline-form { display: flex; gap: 10px; }
.inline-form input { flex: 1; }
#weightChart { width: 100%; height: auto; border-radius: var(--radius-sm); background: var(--surface-soft); }
.log { display: grid; gap: 6px; }
.log > div { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.log > div:first-child { border-top: 0; }
.log strong { font-weight: 700; }

/* Profile */
.profile-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-pill { background: var(--surface-soft); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.profile-pill span { font-size: 12px; color: var(--muted); font-weight: 600; }
.profile-pill strong { font-size: 15px; }
.warning-list { display: grid; gap: 8px; }
.warning { background: var(--danger-soft); border: 1px solid #f6cfcc; color: #8a3b31; border-radius: 12px; padding: 12px 14px; font-size: 13px; }
/* Allergen filter */
#allergenBar { margin: 0; }
.allergen-warning { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.allergen-warning > span { flex: 1 1 220px; }
.allergen-toggle { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; cursor: pointer; white-space: nowrap; margin-left: auto; }
.allergen-toggle input { accent-color: #8a3b31; }
.meal-item.unsafe { border: 1px solid #f6cfcc; }
.mi-allergen { font-size: 12px; font-weight: 600; color: #8a3b31; background: var(--danger-soft); border-radius: 8px; padding: 6px 9px; }
.recipe-card.unsafe { box-shadow: 0 0 0 1px #f6cfcc, var(--shadow-soft); }
.rc-allergen { font-size: 13px; }
.meal-mini.unsafe .mm-name { color: #8a3b31; }
.mm-warn { font-size: 12px; }
/* Allergen substitution — a meal swapped for an allergen-safe one (green = good) */
.mm-swap { font-size: 12px; color: var(--green); font-weight: 800; }
.meal-item.swapped { border: 1px solid var(--green-soft); }
.mi-swap { font-size: 12px; font-weight: 600; color: var(--green-dark); background: var(--green-soft); border-radius: 8px; padding: 6px 9px; }
.recipe-card.swapped { box-shadow: 0 0 0 1px var(--green-soft), var(--shadow-soft); }
.rc-swap { font-size: 13px; color: var(--green-dark); background: var(--green-soft); border-radius: 10px; padding: 8px 11px; }
.rc-swap-badge { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 800; color: #fff; background: var(--green); border-radius: 999px; padding: 3px 9px; }
.notification-list { display: grid; gap: 6px; }
.notification-row { display: flex; gap: 10px; align-items: center; font-size: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.notification-row:first-child { border-top: 0; }
.notification-row strong { color: var(--green-dark); }

/* Schedule setup (onboarding) */
.schedule-setup { margin-top: 2px; }
.schedule-hint { margin: -6px 0 0; }

/* Meds / supplements */
.med-form { display: grid; gap: 8px; }
.med-form-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; }
.med-list { display: grid; gap: 8px; }
.med-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: var(--surface-soft); border-radius: 12px; padding: 10px 12px; }
.med-time { font-weight: 700; font-size: 13px; color: #7657c9; background: #efeaff; padding: 5px 9px; border-radius: 8px; }
.med-body { display: grid; gap: 1px; min-width: 0; }
.med-body strong { font-size: 14px; }
.med-body span { font-size: 12px; color: var(--muted); }
.med-del { border: 0; background: none; color: var(--muted); font-size: 16px; width: 30px; height: 30px; border-radius: 8px; }
.med-del:hover { background: var(--danger-soft); color: var(--danger); }
@media (max-width: 520px) {
  .med-form-row { grid-template-columns: 1fr 1fr; }
  .med-form-row .btn { grid-column: 1 / -1; }
}

/* Cycle */
.cycle-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cycle-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cycle-day { aspect-ratio: 1; border-radius: 10px; display: grid; place-content: center; font-size: 12px; font-weight: 600; background: var(--surface-soft); color: var(--muted); }
.cycle-day.period { background: #fde2e4; color: #a83246; }
.cycle-day.fertile { background: #e3f0ff; color: #2a6fb0; }
.cycle-day.ovulation { background: #d9ecff; color: #1f5f9e; outline: 2px solid #3c9ad1; }
.cycle-day.today { outline: 2px solid var(--green); color: var(--green-dark); }

.disclaimer { font-size: 12px; color: var(--muted); background: var(--surface-soft); border-radius: 12px; padding: 12px 14px; margin: 4px 0 0; }

/* Bottom nav (mobile) */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: space-around; align-items: stretch;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--glass); backdrop-filter: saturate(1.3) blur(14px);
  border-top: 1px solid var(--line);
}
.nav-btn { border: 0; background: none; flex: 1; display: grid; justify-items: center; align-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; }
.nav-btn svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-btn.active { color: var(--green-dark); }
.nav-btn.active svg { stroke: var(--green); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px);
  background: var(--toast-bg); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 60; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ------------------ Desktop ------------------ */
@media (min-width: 900px) {
  .app-shell { display: grid; grid-template-columns: 264px 1fr; }
  .bottom-nav { display: none; }
  .topbar-logo { display: none; }
  .main-wrap { padding-bottom: 0; }
  .sidebar {
    display: flex; flex-direction: column; gap: 20px; padding: 26px 20px;
    background: var(--surface); border-right: 1px solid var(--line);
    position: sticky; top: 0; height: 100vh;
  }
  .brand img { height: 70px; width: auto; max-width: 100%; }
  .side-nav { display: grid; gap: 4px; margin-top: 4px; }
  .side-link {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
    color: var(--muted); font-weight: 600; font-size: 15px; border: 0; background: none; text-align: left; width: 100%;
  }
  .side-link svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .side-link:hover { background: var(--surface-soft); color: var(--ink); }
  .side-link.active { background: var(--green-soft); color: var(--green-dark); }
  .disclaimer { margin-top: auto; }
  main { --main-px: 32px; padding: 28px var(--main-px); max-width: 860px; }
  .view-head h2 { font-size: 28px; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .plan-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .recipe-grid { grid-template-columns: 1fr 1fr; }
  .summary-card { grid-template-columns: auto 1fr; }
  .onboarding-card { padding: 34px; }
}
@media (min-width: 900px) {
  .avatar { display: none; }
}

/* Notification preferences */
.notif-prefs { border: 0; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.notif-prefs label { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink, #2e2a24); }
.notif-prefs input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--green, #3f8a5c); flex: none; }
.notif-prefs .notif-time { flex-wrap: wrap; }
.notif-prefs .notif-time input[type="time"] { margin-left: auto; padding: 4px 8px; border: 1px solid var(--line, #e4ddce); border-radius: 8px; }
.email-pref { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.email-pref-row { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); font-weight: 600; }
.email-pref-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--green); flex: none; }

/* Dark-mode fixes for the few hard-coded light fills */
:root[data-theme="dark"] .onboarding,
:root:not([data-theme="light"]) .onboarding {}
:root[data-theme="dark"] .onboarding {
  background: radial-gradient(1100px 480px at 50% -12%, #22301f 0, transparent 62%),
    radial-gradient(900px 420px at 100% 8%, #2e241a 0, transparent 60%), var(--bg);
}
:root[data-theme="dark"] .account-card { background: linear-gradient(135deg, var(--green-soft), var(--surface) 80%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .onboarding {
    background: radial-gradient(1100px 480px at 50% -12%, #22301f 0, transparent 62%),
      radial-gradient(900px 420px at 100% 8%, #2e241a 0, transparent 60%), var(--bg);
  }
  :root:not([data-theme="light"]) .account-card { background: linear-gradient(135deg, var(--green-soft), var(--surface) 80%); }
}

/* ---------- Bento layout for the Overview dashboard (wide screens) ---------- */
@media (min-width: 900px) {
  main { max-width: 980px; }
  #view-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }
  #view-overview > .hero-band,
  #view-overview > .summary-card,
  #view-overview > .stat-grid,
  #view-overview > .diets-card,
  #view-overview > #overviewWarnings { grid-column: 1 / -1; }
  /* Bento hierarchy: wide hero (calorie ring) → strip of stat tiles → content pair */
  #view-overview .stat-grid { grid-template-columns: repeat(4, 1fr); }
  #view-overview .summary-card { gap: 32px; padding: 22px 26px; }
  #view-overview .summary-card .ring { width: 144px; height: 144px; }
  #view-overview .summary-card .ring-label strong { font-size: 38px; }
  #view-overview .summary-card .summary-macros { max-width: 460px; }
}
@media (min-width: 1180px) {
  main { max-width: 1040px; }
}

/* Keep chart / calendar from ballooning at the wider dashboard width */
.cycle-calendar { max-width: 440px; }
#weightChart { max-width: 640px; }

/* ---- Dark-mode legibility for semantic colour islands ---- */
:root[data-theme="dark"] .warning,
:root[data-theme="dark"] .auth-error,
:root[data-theme="dark"] .mi-allergen,
:root[data-theme="dark"] .rc-allergen,
:root[data-theme="dark"] .tone-danger { color: #f0a89c; }
:root[data-theme="dark"] .warning { border-color: #5a3a34; }
:root[data-theme="dark"] .tone-warn { background: #3a3020; color: #e8c583; }
:root[data-theme="dark"] .cycle-day.period { background: linear-gradient(135deg,#f2607f,#f78fa4); color: #fff; }
:root[data-theme="dark"] .cycle-day.fertile { background: color-mix(in srgb, var(--info) 30%, var(--surface)); color: var(--info); }
:root[data-theme="dark"] .cycle-day.ovulation { background: linear-gradient(135deg,#3aa0c9,#5fc0dd); color: #fff; }
:root[data-theme="dark"] .med-time { background: #2e2a44; color: #b9a6ff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .warning,
  :root:not([data-theme="light"]) .auth-error,
  :root:not([data-theme="light"]) .mi-allergen,
  :root:not([data-theme="light"]) .rc-allergen,
  :root:not([data-theme="light"]) .tone-danger { color: #f0a89c; }
  :root:not([data-theme="light"]) .warning { border-color: #5a3a34; }
  :root:not([data-theme="light"]) .tone-warn { background: #3a3020; color: #e8c583; }
  :root:not([data-theme="light"]) .cycle-day.period { background: linear-gradient(135deg,#f2607f,#f78fa4); color: #fff; }
  :root:not([data-theme="light"]) .cycle-day.fertile { background: color-mix(in srgb, var(--info) 30%, var(--surface)); color: var(--info); }
  :root:not([data-theme="light"]) .cycle-day.ovulation { background: linear-gradient(135deg,#3aa0c9,#5fc0dd); color: #fff; }
  :root:not([data-theme="light"]) .med-time { background: #2e2a44; color: #b9a6ff; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}

/* ---- Direction A: vibrant gradient stat tiles (white text, theme-agnostic) ---- */
.stat-grid .stat { color: #fff; border: 0; box-shadow: 0 6px 16px rgba(40,30,20,.10); }
.stat-grid .stat span, .stat-grid .stat small { color: rgba(255,255,255,.86); }
.stat-grid .stat strong { color: #fff; }
.stat-grid .stat:nth-child(1) { background: linear-gradient(135deg, #2f9e63, #47b877); }
.stat-grid .stat:nth-child(2) { background: linear-gradient(135deg, #e8823c, #f2a45f); }
.stat-grid .stat:nth-child(3) { background: linear-gradient(135deg, #6a6fd6, #8f7ee8); }
.stat-grid .stat:nth-child(4) { background: linear-gradient(135deg, #2aa7b0, #43c4c0); }
/* Ring card stays a clean surface; the vibrant colour lives in the hero + tiles */
.summary-card { background: var(--surface); }

/* ============ Photo-rich cards (modern food-app look) ============ */
/* Hero: original branded banner — warm green→terracotta gradient over the photo */
.hero-band {
  background:
    linear-gradient(120deg, rgba(30,74,49,.94) 0%, rgba(63,138,92,.82) 48%, rgba(192,125,86,.62) 100%),
    url("/slimlyme/assets/hero.jpg") center/cover no-repeat;
  box-shadow: 0 12px 30px rgba(30,25,18,.22);
}

/* Overview meal rows: photo thumbnail + time·type + name + kcal */
.mm-photo { width: 50px; height: 50px; border-radius: 12px; object-fit: cover; flex: none; box-shadow: 0 2px 6px rgba(30,25,18,.14); }
.meal-mini { padding: 8px 8px; }
.meal-mini:nth-child(odd) { background: transparent; }
.meal-mini + .meal-mini { border-top: 1px solid var(--line); border-radius: 0; }
.meal-mini .mm-kcal { display: grid; justify-items: end; line-height: 1.05; font-size: 15px; font-weight: 800; }
.meal-mini .mm-kcal small { font-size: 10px; color: var(--muted); font-weight: 600; }
.meal-mini .mm-type { font-variant-numeric: tabular-nums; }

/* Menu schedule: horizontal card with a photo on the left */
.meal-item { grid-template-columns: 104px 1fr; padding: 0; gap: 0; overflow: hidden; align-items: stretch; }
.mi-photo { width: 104px; height: 100%; min-height: 108px; object-fit: cover; }
.mi-content { padding: 13px 15px; display: grid; gap: 8px; align-content: start; min-width: 0; }

/* Recipe cards: full-bleed photo on top */
.recipe-card { overflow: hidden; }
.rc-photo { position: relative; margin: -20px -20px 6px; aspect-ratio: 16 / 10; overflow: hidden; }
.rc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-time-badge { position: absolute; bottom: 10px; right: 10px; background: rgba(12,18,12,.66); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }

/* Plan cards: photo posters */
.plan-card { padding: 0; border: 0; overflow: hidden; position: relative; aspect-ratio: 4 / 5; border-radius: 18px; display: block; box-shadow: 0 6px 18px rgba(30,25,18,.14); }
.plan-card .pc-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.72); transition: transform .3s ease; }
@media (hover: hover) { .plan-card:hover .pc-photo { transform: scale(1.05); } .plan-card:hover { transform: none; } }
.plan-card .pc-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,14,9,.32) 0%, rgba(6,11,7,.55) 45%, rgba(4,9,6,.93) 100%); }
.plan-card .pc-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 13px; display: grid; gap: 1px; text-align: left; }
.plan-card .pc-focus { color: rgba(255,255,255,.92); }
.plan-card .pc-name { color: #fff; font-size: 15px; }
.plan-card .pc-name::after { color: #fff !important; }
.plan-card .pc-meta { color: rgba(255,255,255,.82); font-size: 11px; }
.plan-card .pc-rec { position: absolute; top: 9px; left: 9px; background: var(--green); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
/* Selected diet: photo goes bright + a green highlight ring */
.plan-card.active { box-shadow: 0 0 0 3px var(--green), 0 10px 26px rgba(47,158,99,.42); }
/* Selected diet shows the photo in full original colour; only a small gradient
   at the very bottom keeps the name readable. */
.plan-card.active .pc-photo { filter: none; }
.plan-card.active .pc-veil { background: linear-gradient(180deg, transparent 48%, rgba(4,9,6,.55) 78%, rgba(3,7,4,.9) 100%); }

/* ============ Modern cycle calendar ============ */
.cycle-calendar { gap: 7px; max-width: 470px; }
.cycle-day { aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; font-size: 12.5px; font-weight: 700; background: var(--surface-soft); color: var(--muted); transition: transform .12s ease; }
.cycle-day.period { background: linear-gradient(135deg,#f2607f,#f78fa4); color: #fff; }
.cycle-day.fertile { background: color-mix(in srgb, var(--info) 22%, var(--surface)); color: var(--info); }
.cycle-day.ovulation { background: linear-gradient(135deg,#3aa0c9,#5fc0dd); color: #fff; }
.cycle-day.today { outline: 2.5px solid var(--green); outline-offset: 2px; font-weight: 800; }
.cycle-day.today:not(.period):not(.ovulation) { color: var(--green-dark); }
.cycle-legend { display: flex; flex-wrap: wrap; gap: 9px 16px; margin-top: 6px; }
.cycle-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--muted); }
.cycle-legend i { width: 13px; height: 13px; border-radius: 50%; flex: none; }
.cycle-legend .l-period { background: linear-gradient(135deg,#f2607f,#f78fa4); }
.cycle-legend .l-fertile { background: color-mix(in srgb, var(--info) 45%, var(--surface)); }
.cycle-legend .l-ov { background: linear-gradient(135deg,#3aa0c9,#5fc0dd); }
.cycle-legend .l-today { background: transparent; box-shadow: inset 0 0 0 2.5px var(--green); }

/* Overview meal names wrap fully (no truncation) + wider card on desktop */
.meal-mini { align-items: center; }
.meal-mini .mm-name { white-space: normal; overflow: visible; text-overflow: clip; }
@media (min-width: 900px) {
  #view-overview > .card:has(.meal-mini-list) { grid-column: 1 / -1; }
}
