:root {
  --paper: #fffdf7;
  --paper-2: #f6f4eb;
  --ink: #252a27;
  --muted: #687169;
  --sage: #79b979;
  --sage-dark: #2f7a50;
  --brand-deep: #0d4f35;
  --teal: #2e8c92;
  --teal-soft: #dff2f3;
  --mint: #e8f4e6;
  --lemon: #fff2a8;
  --peach: #ffd9bf;
  --rose: #ffdce4;
  --sky: #dcefff;
  --lavender: #eee7ff;
  --line: rgba(37, 42, 39, 0.13);
  --shadow: 0 24px 60px rgba(36, 82, 65, 0.15);
  --coach-color: #2e8c92;
  --coach-soft: rgba(220, 239, 255, 0.62);
  --coach-glow: rgba(46, 140, 146, 0.18);
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body,
main,
section,
article,
div,
p,
h1,
h2,
h3,
h4,
label,
button,
input,
textarea,
a,
span {
  max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
label,
button,
input,
textarea,
.section-heading,
.next-copy,
.feedback-card,
.feedback-field,
.nav-label,
.brand-text {
  overflow-wrap: anywhere;
  word-break: normal;
}

input,
textarea {
  min-width: 0;
}

body.coach-calm {
  --coach-color: #5f8b72;
  --coach-soft: rgba(232, 244, 230, 0.78);
  --coach-glow: rgba(95, 139, 114, 0.18);
}

body.coach-encouraging {
  --coach-color: #2e8c92;
  --coach-soft: rgba(220, 239, 255, 0.64);
  --coach-glow: rgba(46, 140, 146, 0.2);
}

body.coach-coaching {
  --coach-color: #9a6b2f;
  --coach-soft: rgba(255, 242, 168, 0.46);
  --coach-glow: rgba(154, 107, 47, 0.2);
}

.app-splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 4vw, 2rem);
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 217, 191, 0.48), transparent 34%),
    radial-gradient(circle at 78% 22%, rgba(220, 239, 255, 0.34), transparent 32%),
    linear-gradient(145deg, rgba(255, 253, 247, 0.98), rgba(246, 244, 235, 0.96));
  color: var(--ink);
  transition: opacity 0.42s ease, visibility 0.42s ease;
}

.splash-seen:not(.splash-test-mode) .app-splash,
.splash-disabled .app-splash,
.app-splash.hidden {
  display: none;
}

.splash-inner {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  width: min(26rem, 100%);
  text-align: center;
  animation: splashHello 0.78s cubic-bezier(0.18, 0.9, 0.24, 1) both;
}

.splash-inner > * {
  position: relative;
  z-index: 2;
}

.splash-inner::before {
  content: "";
  position: absolute;
  top: 48%;
  left: 50%;
  z-index: 0;
  width: min(78vw, 25rem);
  height: min(78vw, 25rem);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 252, 218, 0.98) 0 6%, rgba(255, 214, 111, 0.88) 12%, rgba(255, 166, 78, 0.46) 27%, transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(255, 235, 164, 0.48), transparent 70%),
    conic-gradient(from 18deg, transparent 0 10deg, rgba(255, 226, 151, 0.26) 18deg, transparent 36deg, transparent 68deg, rgba(255, 244, 193, 0.22) 83deg, transparent 106deg, transparent 176deg, rgba(255, 198, 112, 0.24) 196deg, transparent 226deg, transparent 302deg, rgba(255, 235, 173, 0.22) 322deg, transparent 350deg);
  opacity: 0.74;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.98);
  filter: blur(0.2px) saturate(1.08);
  mix-blend-mode: multiply;
  animation: splashSunBreath 4.6s ease-in-out infinite;
}

.splash-inner::after {
  content: "";
  position: absolute;
  top: 48%;
  left: 50%;
  z-index: 1;
  width: min(88vw, 28rem);
  height: min(88vw, 28rem);
  border-radius: 999px;
  background:
    linear-gradient(92deg, transparent 0 13%, rgba(255, 243, 187, 0.3) 31%, rgba(255, 255, 244, 0.62) 49%, rgba(255, 212, 129, 0.28) 65%, transparent 87%),
    radial-gradient(ellipse at 64% 47%, rgba(255, 255, 235, 0.56) 0 3%, transparent 12%),
    radial-gradient(ellipse at 34% 52%, rgba(255, 196, 107, 0.32) 0 4%, transparent 16%);
  opacity: 0.5;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-8deg) scale(1);
  filter: blur(0.8px);
  mix-blend-mode: screen;
  animation: splashLensDrift 5.8s ease-in-out infinite;
}

.splash-brand {
  gap: 0.82rem;
  transform-origin: center;
  animation: splashMarkArrive 0.82s cubic-bezier(0.18, 0.9, 0.24, 1) both, markBreath 8s ease-in-out 1.2s infinite;
}

.splash-brand .brand-mark {
  width: 5.9rem;
  height: 5.9rem;
  border-radius: 1.45rem;
}

.splash-brand .brand-text {
  gap: 0.22rem;
  text-align: left;
}

.splash-brand .brand-text b {
  font-size: 1.75rem;
}

.splash-brand .brand-text small {
  font-size: 0.78rem;
}

.splash-inner p {
  margin: 1.35rem 0 0.45rem;
  color: var(--sage-dark);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.splash-inner h1 {
  margin: 0;
  color: #45734f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 16vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: 0;
  animation: splashNameLift 0.88s 0.12s cubic-bezier(0.18, 0.9, 0.24, 1) both;
}

.splash-copy {
  max-width: 18rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.45;
}

.splash-enter {
  min-height: 3.2rem;
  margin-top: 1.5rem;
  padding: 0.82rem 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background:
    linear-gradient(135deg, #31aa6a 0%, #279463 48%, #238f9a 100%),
    var(--sage-dark);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 920;
  box-shadow:
    0 18px 38px rgba(35, 137, 153, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  animation: splashButtonBloom 1.05s 0.28s cubic-bezier(0.18, 0.9, 0.24, 1) both;
}

.splash-footer {
  position: fixed;
  right: 0;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 0;
  z-index: 4;
  display: grid;
  gap: 0.24rem;
  color: rgba(47, 122, 80, 0.66);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1.25;
  pointer-events: none;
  text-align: center;
  text-transform: uppercase;
}

.app-splash.is-entering {
  pointer-events: none;
  background: transparent;
}

.app-splash.is-entering .splash-inner > :not(.splash-brand) {
  opacity: 0;
  visibility: hidden;
  transition: none;
}

.app-splash.is-entering .splash-footer {
  opacity: 0;
  visibility: hidden;
  transition: none;
}

.app-splash.is-entering .splash-brand .brand-text {
  opacity: 0;
  visibility: hidden;
  transition: none;
}

.app-splash.is-entering .splash-brand {
  animation: none;
}

.app-splash.is-entering .splash-inner::before,
.app-splash.is-entering .splash-inner::after {
  display: none;
  opacity: 0;
  transition: none;
}

.app-splash.is-entering .splash-brand .brand-mark {
  animation: none;
  transform-origin: center;
  will-change: transform;
}

.splash-logo-flight .site-header .brand-mark {
  opacity: 0;
}

.app-splash.is-fading {
  opacity: 0;
  visibility: hidden;
}

.splash-leaf-burst {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  overflow: hidden;
}

.splash-leaf-burst span {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--leaf-size, 0.62rem);
  height: calc(var(--leaf-size, 0.62rem) * 1.95);
  border-radius: 88% 12% 82% 18% / 58% 20% 80% 42%;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.26), transparent 34%),
    var(--leaf-color, var(--sage-dark));
  box-shadow: 0 10px 22px rgba(46, 113, 128, 0.12);
  opacity: 0;
  transform: translate3d(50vw, 54vh, 0) rotate(-18deg) scale(0.4);
  will-change: transform, opacity;
}

.splash-leaf-burst span::after {
  content: "";
  position: absolute;
  left: 48%;
  top: 14%;
  width: 1px;
  height: 70%;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.46);
  transform: rotate(16deg);
}

.splash-leaf-burst .wide-leaf {
  width: calc(var(--leaf-size, 0.62rem) * 1.32);
  height: calc(var(--leaf-size, 0.62rem) * 1.5);
  border-radius: 78% 22% 74% 26% / 72% 18% 82% 28%;
}

.splash-leaf-burst .slender-leaf {
  width: calc(var(--leaf-size, 0.62rem) * 0.72);
  height: calc(var(--leaf-size, 0.62rem) * 2.35);
  border-radius: 95% 5% 88% 12% / 62% 16% 84% 38%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 217, 191, 0.45), transparent 24rem),
    radial-gradient(circle at 84% 10%, rgba(220, 239, 255, 0.6), transparent 22rem),
    linear-gradient(115deg, rgba(232, 244, 230, 0.5), transparent 52%);
  z-index: -1;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 253, 247, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  overflow: visible;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  width: 2.82rem;
  height: 2.82rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.92rem;
  color: transparent;
  filter: drop-shadow(0 12px 22px rgba(34, 82, 57, 0.18));
  transform: translateZ(0);
  overflow: visible;
  animation: markBreath 8s ease-in-out 1.2s infinite;
}

.brand-mark::before {
  display: none;
}

.brand-mark::after {
  display: none;
}

.brand-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
}

.brand-letter {
  position: relative;
  z-index: 1;
  display: block;
  color: rgba(255, 255, 255, 0.98);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.15rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(20, 55, 38, 0.18);
  transform: translateY(0.01rem);
}

.brand-letter::after {
  content: "";
  display: block;
  width: 1.35rem;
  height: 0.12rem;
  margin: 0.12rem auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.brand-text {
  display: grid;
  gap: 0.12rem;
  line-height: 1.04;
}

.brand-text b {
  color: #26734d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.18rem;
  font-style: normal;
  font-weight: 920;
  line-height: 1;
  letter-spacing: 0;
}

.brand-text small {
  color: #5f7069;
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

@keyframes markSettle {
  from {
    opacity: 0;
    transform: rotate(-4deg) scale(0.94);
  }

  to {
    opacity: 1;
    transform: rotate(-1deg) scale(1);
  }
}

@keyframes splashMarkArrive {
  from {
    opacity: 0;
    transform: translateY(0.75rem) scale(0.94) rotate(-2deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(-1deg);
  }
}

@keyframes markBreath {
  0%,
  100% {
    transform: rotate(-1deg) scale(1);
  }

  50% {
    transform: rotate(-1deg) scale(1.018);
  }
}

@keyframes markGlimmer {
  0%,
  68%,
  100% {
    opacity: 0;
    transform: translateX(-42%) rotate(10deg);
  }

  78% {
    opacity: 1;
  }

  88% {
    opacity: 0;
    transform: translateX(42%) rotate(10deg);
  }
}

nav {
  position: sticky;
  top: 5rem;
  z-index: 9;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.7rem, 2vw, 1.6rem);
  padding: 0.55rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.82);
  color: var(--muted);
  font-size: 0.93rem;
  backdrop-filter: blur(16px);
}

nav a {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
}

nav a:hover,
nav a:focus {
  background: rgba(232, 244, 230, 0.8);
  color: var(--sage-dark);
  outline: none;
}

.nav-glyph {
  display: none;
}

.daily-message-toast {
  position: fixed;
  top: calc(1rem + env(safe-area-inset-top));
  left: 50%;
  z-index: 80;
  max-width: min(90vw, 24rem);
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.86), rgba(223, 242, 243, 0.72)),
    rgba(255, 255, 255, 0.72);
  color: #2e7180;
  font-size: 0.92rem;
  font-weight: 900;
  text-align: center;
  box-shadow:
    0 18px 40px rgba(46, 113, 128, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -0.7rem) scale(0.98);
  transition: opacity 0.34s ease, transform 0.34s ease;
  backdrop-filter: blur(18px) saturate(1.2);
}

.daily-message-toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  overflow-wrap: anywhere;
}

.primary {
  border-color: rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(135deg, #31aa6a 0%, #279463 48%, #238f9a 100%),
    var(--sage-dark);
  color: white;
  box-shadow:
    0 14px 30px rgba(35, 137, 153, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.secondary {
  background: rgba(255, 255, 255, 0.75);
}

.button.secondary[data-start-custom-plan] {
  border-color: rgba(255, 202, 170, 0.78);
  background:
    linear-gradient(135deg, rgba(255, 231, 214, 0.92), rgba(220, 239, 255, 0.72)),
    rgba(255, 255, 255, 0.82);
  color: #2e7180;
  box-shadow:
    0 12px 28px rgba(46, 113, 128, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.small-button {
  min-height: 2.55rem;
  padding: 0.65rem 0.95rem;
  cursor: pointer;
}

.hero {
  position: relative;
  left: 50%;
  width: 100vw;
  min-height: calc(100vh - 74px);
  margin-left: -50vw;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) max(clamp(1rem, 6vw, 7rem), calc((100vw - 1180px) / 2 + 1rem));
  background: #f7f4ea;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/anja-hero-food.png");
  background-position: right center;
  background-size: cover;
  transform: scale(1.08);
  transform-origin: right center;
  animation: benchDrift 26s ease-in-out infinite alternate;
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(255, 253, 247, 0.98) 0%, rgba(255, 253, 247, 0.94) 31%, rgba(255, 253, 247, 0.58) 57%, rgba(255, 253, 247, 0.12) 100%),
    radial-gradient(circle at 0% 0%, rgba(255, 243, 200, 0.48), transparent 38%),
    linear-gradient(180deg, transparent 82%, var(--paper) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(47rem, 54vw);
  padding: clamp(1rem, 2.4vw, 1.6rem);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 1.4rem;
  background: rgba(255, 253, 247, 0.42);
  box-shadow: 0 24px 70px rgba(52, 72, 54, 0.1);
  backdrop-filter: blur(10px);
}

.hero-copy.app-onboarding {
  display: grid;
  width: min(72rem, calc(100vw - 2rem));
  grid-template-columns: minmax(18rem, 0.9fr) minmax(24rem, 1fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1rem, 2.8vw, 2rem);
  background: rgba(255, 253, 247, 0.58);
}

.app-onboarding h1 {
  max-width: 7ch;
  font-size: clamp(3.35rem, 6.8vw, 5.7rem);
  line-height: 0.98;
}

.onboarding-phone {
  order: 2;
  justify-self: center;
  width: min(24.4rem, 100%);
}

.onboarding-copy {
  order: 1;
  min-width: 0;
}

.onboarding-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.onboarding-skip {
  min-height: 2.25rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(49, 95, 67, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--sage-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 850;
}

.onboarding-title {
  margin: 0.35rem 0 0.35rem;
  color: var(--sage-dark);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.onboarding-body {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.onboarding-dots {
  display: flex;
  gap: 0.55rem;
  margin: 1.1rem 0 0.2rem;
}

.onboarding-dots button {
  width: 0.62rem;
  height: 0.62rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(49, 95, 67, 0.24);
  cursor: pointer;
}

.onboarding-dots button.active {
  width: 1.6rem;
  background: var(--sage-dark);
}

.phone-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.58;
  border: 0.72rem solid #14201a;
  border-radius: 2.35rem;
  background: #fffcf4;
  box-shadow:
    0 30px 80px rgba(22, 39, 29, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.phone-shell::after {
  content: "";
  position: absolute;
  right: 32%;
  bottom: 0.52rem;
  left: 32%;
  z-index: 6;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(20, 32, 26, 0.32);
}

.phone-status,
.phone-topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.phone-status {
  min-height: 2.1rem;
  padding: 0.62rem 1rem 0.36rem;
  color: #17201b;
  font-size: 0.88rem;
  font-weight: 900;
  background: #fffcf4;
}

.phone-topbar {
  min-height: 2.95rem;
  padding: 0.7rem 1rem;
  background: #267a64;
  color: white;
}

.phone-topbar strong {
  font-size: 1.02rem;
}

.phone-topbar span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.74rem;
  font-weight: 800;
}

.phone-screen {
  position: absolute;
  inset: 5.05rem 0 0;
  display: grid;
  align-content: start;
  gap: 0.72rem;
  padding: 1.35rem 1rem 1.7rem;
  background:
    radial-gradient(circle at 82% 12%, rgba(232, 244, 230, 0.7), transparent 32%),
    linear-gradient(180deg, #fffdf7 0%, #f6f2e8 100%);
  opacity: 0;
  transform: translateX(1.2rem);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.phone-screen.active {
  opacity: 1;
  transform: translateX(0);
}

.phone-kicker {
  margin: 0;
  color: var(--sage-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.phone-screen h3 {
  margin: 0;
  color: var(--sage-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  line-height: 1.05;
}

.phone-meal-hero,
.phone-mini-card {
  overflow: hidden;
  border: 1px solid rgba(49, 95, 67, 0.12);
  border-radius: 1.05rem;
  background: white;
  box-shadow: 0 12px 28px rgba(52, 72, 54, 0.1);
}

.phone-meal-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 1.08;
  object-fit: cover;
}

.phone-meal-hero div {
  padding: 0.85rem 0.95rem;
}

.phone-meal-hero span,
.phone-mini-card span {
  display: block;
  color: var(--sage-dark);
  font-size: 0.8rem;
  font-weight: 850;
}

.phone-meal-hero strong,
.phone-mini-card strong {
  display: block;
  margin-top: 0.1rem;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.15;
}

.phone-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.2rem;
}

.phone-chip-row span,
.phone-plan-ready {
  display: inline-flex;
  min-height: 2.15rem;
  align-items: center;
  padding: 0.48rem 0.72rem;
  border-radius: 999px;
  background: var(--mint);
  color: var(--sage-dark);
  font-size: 0.82rem;
  font-weight: 850;
}

.phone-search {
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(49, 95, 67, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.phone-mini-card {
  display: grid;
  grid-template-columns: 6.1rem minmax(0, 1fr);
  align-items: center;
}

.phone-mini-card img {
  width: 100%;
  height: 5.7rem;
  object-fit: cover;
}

.phone-mini-card div {
  padding: 0.65rem;
}

.phone-day-list {
  display: grid;
  gap: 0.45rem;
}

.phone-day-list span {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.72rem 0.78rem;
  border-radius: 0.85rem;
  background: white;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(52, 72, 54, 0.06);
}

.phone-day-list b {
  color: var(--sage-dark);
}

.phone-plan-ready {
  justify-content: center;
  width: 100%;
  background: var(--sage-dark);
  color: white;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -3rem -3.5rem -2.5rem -3.5rem;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(255, 253, 247, 0.55), rgba(255, 253, 247, 0) 68%);
  filter: blur(18px);
}

.hero-light {
  position: absolute;
  pointer-events: none;
}

.hero-light-glow {
  inset: -16% auto auto -12%;
  z-index: -1;
  width: min(64rem, 78vw);
  height: min(64rem, 78vw);
  border-radius: 50%;
  background: radial-gradient(circle at 18% 18%, rgba(255, 245, 204, 1) 0%, rgba(255, 233, 158, 0.54) 28%, rgba(255, 233, 158, 0.12) 56%, transparent 74%);
  filter: blur(24px);
  mix-blend-mode: screen;
  opacity: 0.9;
  animation: sunBreath 11s ease-in-out infinite alternate;
}

.hero-light-rays {
  inset: -8%;
  z-index: -1;
  width: auto;
  height: auto;
  background:
    linear-gradient(118deg, rgba(255, 248, 220, 0.48) 0 11%, transparent 11.5% 17%, rgba(255, 246, 211, 0.3) 17.5% 30%, transparent 30.5% 38%, rgba(255, 250, 232, 0.24) 38.5% 49%, transparent 50% 100%),
    linear-gradient(135deg, rgba(255, 247, 213, 0.38), rgba(255, 253, 247, 0.04) 58%);
  filter: blur(18px);
  mix-blend-mode: screen;
  opacity: 0.74;
  transform: translate3d(-0.6rem, -0.4rem, 0) scale(1.02);
  transform-origin: top left;
  animation: windowLightBreath 15s ease-in-out infinite alternate;
}

.hero-light-shadow {
  top: -18%;
  left: -8%;
  z-index: -1;
  width: 92vw;
  height: 140vh;
  background:
    linear-gradient(118deg, transparent 0 12%, rgba(73, 92, 67, 0.1) 12.5% 15%, transparent 15.5% 31%, rgba(73, 92, 67, 0.08) 31.5% 34%, transparent 34.5% 100%),
    radial-gradient(ellipse at 20% 42%, rgba(77, 97, 68, 0.08), transparent 42%);
  filter: blur(28px);
  mix-blend-mode: multiply;
  opacity: 0.28;
  transform: translate3d(-0.5rem, -0.25rem, 0) scale(1.02);
  transform-origin: top left;
  animation: windowShadowBreath 17s ease-in-out infinite alternate;
}

@keyframes sunBreath {
  from {
    opacity: 0.68;
    transform: scale(0.98);
  }

  to {
    opacity: 0.9;
    transform: scale(1.035);
  }
}

@keyframes benchDrift {
  from {
    transform: scale(1.08) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.1) translate3d(-0.45rem, 0.25rem, 0);
  }
}

@keyframes windowLightBreath {
  from {
    opacity: 0.58;
    transform: translate3d(-0.7rem, -0.45rem, 0) scale(1.01);
  }

  to {
    opacity: 0.78;
    transform: translate3d(-0.55rem, -0.35rem, 0) scale(1.025);
  }
}

@keyframes windowShadowBreath {
  from {
    opacity: 0.2;
    transform: translate3d(-0.55rem, -0.35rem, 0) scale(1.01);
  }

  to {
    opacity: 0.32;
    transform: translate3d(-0.45rem, -0.25rem, 0) scale(1.025);
  }
}

@keyframes titleSunSweep {
  0% {
    opacity: 0.18;
  }

  100% {
    opacity: 0.46;
  }
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.85rem;
  color: var(--sage-dark);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  margin-bottom: 0.95rem;
  padding-bottom: 0.18em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.9rem, 10vw, 8rem);
  line-height: 0.96;
  letter-spacing: 0;
  color: var(--sage-dark);
  text-shadow:
    0.02em 0.025em 0.1em rgba(45, 74, 50, 0.1),
    -0.01em -0.01em 0 rgba(255, 246, 210, 0.22);
}

h1::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: transparent;
  background:
    linear-gradient(
      132deg,
      rgba(255, 246, 211, 0.28) 0%,
      rgba(255, 237, 172, 0.42) 24%,
      rgba(255, 255, 247, 0.2) 41%,
      transparent 62%,
      transparent 100%
    );
  background-size: 240% 240%;
  background-position: 0% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: blur(0.25px);
  mix-blend-mode: screen;
  opacity: 0.78;
  animation: titleSunSweep 12s ease-in-out infinite alternate;
  will-change: opacity;
}

h2 {
  margin-bottom: 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.04rem;
}

.lede {
  max-width: 39rem;
  color: #425049;
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  max-width: 34rem;
  margin-top: 1.35rem;
}

.hero-stats span {
  min-height: 4.6rem;
  padding: 0.75rem;
  border: 1px solid rgba(49, 95, 67, 0.13);
  border-radius: 0.85rem;
  background: rgba(255, 253, 247, 0.72);
  color: #4b564f;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.25;
  box-shadow: 0 12px 30px rgba(52, 72, 54, 0.08);
  backdrop-filter: blur(12px);
}

.hero-stats b {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--sage-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  line-height: 1;
}

.hero-note {
  display: none;
  position: absolute;
  right: max(clamp(1rem, 6vw, 7rem), calc((100vw - 1180px) / 2 + 1rem));
  bottom: clamp(1.25rem, 4vw, 3rem);
  max-width: 18rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.8rem;
  background: rgba(255, 253, 247, 0.88);
  color: #4b564f;
  font-size: 0.9rem;
  line-height: 1.35;
  box-shadow: 0 14px 40px rgba(52, 72, 54, 0.14);
  backdrop-filter: blur(14px);
}

.intro-band,
.app-flow {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.65);
}

.intro-band {
  grid-template-columns: 0.8fr 1.2fr;
}

.app-flow {
  position: relative;
  margin: -1.6rem 0 2rem;
  grid-template-columns: minmax(0, 0.56fr) minmax(0, 1fr);
  align-items: center;
  border-radius: 1.35rem;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.94), rgba(232, 244, 230, 0.72)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 58px rgba(52, 72, 54, 0.08);
}

.app-flow-head p {
  color: var(--muted);
  line-height: 1.65;
}

.app-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.app-step-card {
  display: grid;
  align-content: start;
  min-height: 14rem;
  padding: 1rem;
  border: 1px solid rgba(49, 95, 67, 0.13);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(52, 72, 54, 0.06);
}

.app-step-card > span {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.9rem;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-dark);
  color: white;
  font-family: Georgia, serif;
  font-weight: 850;
}

.app-step-card p {
  color: var(--muted);
  line-height: 1.48;
}

.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.next {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(22rem, 1.16fr);
  gap: clamp(1rem, 4vw, 2.5rem);
  align-items: start;
  margin: 2rem 0 3rem;
  padding: clamp(1rem, 3vw, 2rem) 0;
}

.settings-panel {
  margin: 2rem 0 3rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(46, 140, 146, 0.14);
  border-radius: 1.2rem;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.9), rgba(223, 242, 243, 0.54)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 46px rgba(36, 82, 65, 0.08);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.settings-grid article {
  padding: 1rem;
  border: 1px solid rgba(47, 122, 80, 0.13);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.76);
}

.settings-grid article > span {
  color: var(--sage-dark);
  font-size: 0.7rem;
  font-weight: 920;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-grid p {
  color: var(--muted);
  line-height: 1.5;
}

.settings-source-card {
  grid-column: 1 / -1;
}

.settings-action-card {
  grid-column: 1 / -1;
}

.settings-preference-card {
  grid-column: 1 / -1;
}

.settings-source-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 0.75rem;
  padding: 0.68rem 1rem;
  border: 1px solid rgba(47, 131, 146, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(232, 244, 230, 0.92), rgba(220, 239, 255, 0.7)),
    rgba(255, 255, 255, 0.72);
  color: #2e7180;
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(46, 113, 128, 0.1);
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.settings-toggle-list {
  display: grid;
  gap: 0.58rem;
  margin-top: 0.95rem;
}

.settings-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.72rem;
  border: 1px solid rgba(47, 122, 80, 0.13);
  border-radius: 0.9rem;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.88), rgba(232, 244, 230, 0.48)),
    rgba(255, 255, 255, 0.72);
}

.settings-toggle b,
.settings-toggle small {
  display: block;
}

.settings-toggle b {
  color: var(--ink);
  font-size: 0.92rem;
}

.settings-toggle small {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.35;
}

.settings-toggle input {
  width: 3rem;
  height: 1.65rem;
  margin: 0;
  appearance: none;
  border: 1px solid rgba(47, 122, 80, 0.14);
  border-radius: 999px;
  background: rgba(104, 113, 105, 0.2);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.settings-toggle input::before {
  content: "";
  display: block;
  width: 1.26rem;
  height: 1.26rem;
  margin: 0.14rem;
  border-radius: 999px;
  background: white;
  box-shadow: 0 4px 10px rgba(37, 42, 39, 0.18);
  transition: transform 0.2s ease;
}

.settings-toggle input:checked {
  border-color: rgba(47, 131, 146, 0.28);
  background: linear-gradient(135deg, #31aa6a, #238f9a);
}

.settings-toggle input:checked::before {
  transform: translateX(1.35rem);
}

.coach-mode-card {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--coach-color) 22%, transparent);
  background:
    radial-gradient(circle at 12% 12%, var(--coach-soft), transparent 34%),
    linear-gradient(135deg, rgba(255, 253, 247, 0.92), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.76);
}

.coach-mode-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -42% 42%;
  height: 12rem;
  border-radius: 999px;
  background: var(--coach-glow);
  filter: blur(28px);
  opacity: 0.72;
  pointer-events: none;
  animation: coachGlow 5.8s ease-in-out infinite;
}

.coach-mode-options {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
  margin-top: 0.95rem;
  padding: 0.32rem;
  border: 1px solid rgba(47, 131, 146, 0.13);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(232, 244, 230, 0.32)),
    rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.coach-mode-options button {
  display: grid;
  gap: 0.18rem;
  min-height: 4rem;
  padding: 0.72rem 0.45rem;
  border: 1px solid transparent;
  border-radius: 0.78rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.coach-mode-options [data-coach-mode="calm"] {
  --option-color: #5f8b72;
  --option-soft: rgba(232, 244, 230, 0.72);
}

.coach-mode-options [data-coach-mode="encouraging"] {
  --option-color: #2e8c92;
  --option-soft: rgba(220, 239, 255, 0.62);
}

.coach-mode-options [data-coach-mode="coaching"] {
  --option-color: #9a6b2f;
  --option-soft: rgba(255, 242, 168, 0.52);
}

.coach-mode-options button strong {
  color: var(--option-color);
}

.coach-mode-options button:hover,
.coach-mode-options button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.coach-mode-options button.active {
  border-color: color-mix(in srgb, var(--option-color) 26%, transparent);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), var(--option-soft)),
    rgba(255, 255, 255, 0.78);
  color: var(--option-color);
  box-shadow:
    0 12px 28px var(--coach-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.coach-mode-options strong,
.coach-mode-options small {
  display: block;
}

.coach-mode-options strong {
  font-size: 0.86rem;
  font-weight: 950;
}

.coach-mode-options small {
  font-size: 0.66rem;
  font-weight: 780;
  line-height: 1.24;
}

.coach-mode-description {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.22rem;
  margin-top: 0.78rem;
  padding: 0.78rem 0.86rem;
  border: 1px solid color-mix(in srgb, var(--coach-color) 18%, transparent);
  border-radius: 0.95rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), var(--coach-soft)),
    rgba(255, 255, 255, 0.7);
  color: var(--muted);
  animation: coachBreath 4.8s ease-in-out infinite;
}

.coach-mode-description strong {
  color: var(--coach-color);
  font-size: 0.92rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: none;
}

.coach-mode-description span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.48;
}

.coach-live-copy {
  color: color-mix(in srgb, var(--coach-color) 52%, var(--muted));
}

@keyframes coachBreath {
  0%,
  100% {
    box-shadow: 0 10px 24px rgba(46, 113, 128, 0.04);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 16px 34px var(--coach-glow);
    transform: translateY(-1px);
  }
}

@keyframes coachGlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-6%, -5%, 0) scale(1.08);
  }
}

@keyframes splashHello {
  from {
    opacity: 0;
    transform: translateY(0.55rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes splashNameLift {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes splashButtonBloom {
  from {
    opacity: 0;
    transform: translateY(0.55rem) scale(0.94);
  }
  70% {
    transform: translateY(-0.05rem) scale(1.025);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes splashSunBreath {
  0%,
  100% {
    opacity: 0.58;
    transform: translate(-50%, -50%) scale(0.94);
    filter: blur(0.5px) saturate(1.02) brightness(0.98);
  }
  50% {
    opacity: 0.88;
    transform: translate(-50%, -51.2%) scale(1.09);
    filter: blur(1.1px) saturate(1.2) brightness(1.08);
  }
}

@keyframes splashLensDrift {
  0%,
  100% {
    opacity: 0.34;
    transform: translate(-52%, -50%) rotate(-10deg) scale(0.96);
  }
  45% {
    opacity: 0.66;
    transform: translate(-48%, -50.6%) rotate(-6deg) scale(1.06);
  }
  70% {
    opacity: 0.46;
    transform: translate(-50%, -49.4%) rotate(-8deg) scale(1.015);
  }
}

.settings-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(47, 131, 146, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.94), rgba(220, 239, 255, 0.68)),
    rgba(255, 255, 255, 0.76);
  color: #2e7180;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(46, 113, 128, 0.09);
}

.settings-action-button.danger {
  border-color: rgba(224, 146, 111, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 243, 231, 0.92), rgba(255, 253, 247, 0.8)),
    rgba(255, 255, 255, 0.76);
  color: #9a5130;
}

.pdf-button {
  margin-top: 0.9rem;
  background:
    linear-gradient(135deg, rgba(49, 170, 106, 0.92), rgba(35, 143, 154, 0.9)),
    var(--sage-dark);
  color: white;
}

.settings-status {
  min-height: 1.2rem;
  margin: 0.8rem 0 0;
  color: var(--sage-dark);
  font-size: 0.84rem;
  font-weight: 820;
  line-height: 1.4;
}

body.hide-prices .meal-price-bubbles,
body.hide-prices .shopping-price-bubble,
body.hide-prices .shopping-price-lines,
body.hide-prices .price-estimate-card,
body.hide-prices .oda-reference-card {
  display: none !important;
}

body.hide-micros .recipe-micros-detail {
  display: none !important;
}

.intro-band p,
.next p,
.next li,
.section-heading p {
  color: var(--muted);
  line-height: 1.7;
}

.principles,
.science-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 4rem 0;
}

.principles article,
.science-grid article,
.week-card,
.recipe-card,
.season-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 36px rgba(52, 72, 54, 0.07);
}

.principles article {
  padding: 1.2rem;
}

.science {
  padding: 4rem 0 1rem;
}

.science-grid {
  margin-top: 1.5rem;
}

.science-grid article {
  position: relative;
  min-height: 18rem;
  padding: 1.3rem;
  overflow: hidden;
}

.science-grid article::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: var(--science-fill, var(--mint));
  opacity: 0.85;
}

.science-grid article:nth-child(1) {
  --science-fill: var(--mint);
}

.science-grid article:nth-child(2) {
  --science-fill: var(--lemon);
}

.science-grid article:nth-child(3) {
  --science-fill: var(--peach);
}

.science-grid article:nth-child(4) {
  --science-fill: var(--sky);
}

.science-no {
  display: inline-grid;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1.2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--science-fill, var(--mint));
  color: var(--sage-dark);
  font-family: Georgia, serif;
  font-weight: 800;
}

.principles span {
  display: inline-block;
  margin-bottom: 1.2rem;
  color: var(--sage);
  font-family: Georgia, serif;
  font-size: 2rem;
}

.principles p,
.science-grid p,
.recipe-card p,
.week-card p,
.season-card p,
.disclaimer {
  color: var(--muted);
  line-height: 1.58;
}

section {
  scroll-margin-top: 90px;
}

.ready-week,
.week,
.recipes,
.season,
.sources {
  padding: 4rem 0;
}

.week-overview {
  position: relative;
  left: 50%;
  width: 100vw;
  margin: 3rem 0 2rem -50vw;
  padding: clamp(3rem, 6vw, 5rem) max(clamp(1rem, 5vw, 4rem), calc((100vw - 1180px) / 2 + 1rem));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(232, 244, 230, 0.78), rgba(255, 253, 247, 0.97) 45%, rgba(220, 239, 255, 0.42)),
    rgba(255, 253, 247, 0.94);
}

.week-overview-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1rem, 4vw, 2rem);
  align-items: end;
  margin-bottom: 1.1rem;
}

.week-overview-top h2 {
  max-width: 42rem;
}

.week-overview-top p {
  max-width: 46rem;
  color: var(--muted);
  line-height: 1.65;
}

.week-overview-panel {
  display: grid;
  justify-items: end;
  gap: 0.75rem;
}

#weekModeBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.75rem;
  border: 1px solid rgba(49, 95, 67, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.8), rgba(232, 244, 230, 0.72)),
    rgba(255, 255, 255, 0.7);
  color: var(--sage-dark);
  box-shadow:
    0 10px 24px rgba(49, 95, 67, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.week-overview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.week-overview-actions button {
  border: 0;
  cursor: pointer;
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.3rem;
}

.overview-stats article {
  padding: 0.95rem;
  border: 1px solid rgba(49, 95, 67, 0.13);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 30px rgba(52, 72, 54, 0.06);
}

.overview-stats span {
  display: block;
  color: var(--sage-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 850;
}

.overview-stats p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 780;
  line-height: 1.35;
}

.calendar-strip {
  position: relative;
  display: flex;
  gap: 0.6rem;
  margin: 1rem 0 1rem;
  overflow-x: auto;
  padding: 0.1rem 2.9rem 0.55rem 1.1rem;
  scroll-padding-left: 1.1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.calendar-strip::before,
.calendar-strip::after {
  position: sticky;
  z-index: 2;
  flex: 0 0 auto;
  pointer-events: none;
}

.calendar-strip::before {
  content: "‹";
  left: 0;
  align-self: center;
  width: 2rem;
  height: 2rem;
  margin-right: -2rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 253, 247, 0.86), rgba(220, 239, 255, 0.72));
  color: #2e7180;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(46, 113, 128, 0.11);
  opacity: 0;
  transform: translateX(-0.35rem) scale(0.94);
  backdrop-filter: blur(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.calendar-strip::after {
  content: "›";
  right: 0.15rem;
  align-self: center;
  width: 2rem;
  height: 2rem;
  margin-left: -2.25rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 253, 247, 0.86), rgba(220, 239, 255, 0.72));
  color: #2e7180;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(46, 113, 128, 0.11);
  backdrop-filter: blur(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.calendar-strip.is-scrolling::after {
  opacity: 0;
  transform: translateX(0.35rem) scale(0.94);
}

.calendar-strip:not(.at-start)::before {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.calendar-strip.at-end::after {
  opacity: 0;
  transform: translateX(0.35rem) scale(0.94);
}

.calendar-strip::-webkit-scrollbar {
  display: none;
}

.calendar-day {
  display: grid;
  min-width: 6.6rem;
  min-height: 5.25rem;
  align-content: center;
  gap: 0.12rem;
  padding: 0.65rem 0.72rem;
  border: 1px solid rgba(49, 95, 67, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  text-align: left;
  scroll-snap-align: start;
  box-shadow: 0 12px 28px rgba(52, 72, 54, 0.06);
}

.calendar-day span {
  color: var(--sage-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-day strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.05;
}

.calendar-day small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.calendar-day.complete small {
  color: var(--sage-dark);
}

.calendar-day.active {
  border-color: rgba(49, 95, 67, 0.65);
  background: var(--sage-dark);
  color: white;
  box-shadow: 0 14px 34px rgba(49, 95, 67, 0.2);
}

.calendar-day.active span,
.calendar-day.active strong,
.calendar-day.active small {
  color: white;
}

.week-overview-grid {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: visible;
  padding: 0 2.75rem 0.6rem 1.1rem;
  scroll-padding-left: 1.1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.week-overview-grid::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: 0.35rem;
  z-index: 3;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 253, 247, 0.88), rgba(220, 239, 255, 0.74));
  color: #2e7180;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(46, 113, 128, 0.11);
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.week-overview-grid::before {
  content: "‹";
  position: absolute;
  top: 50%;
  left: 0.35rem;
  z-index: 3;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 253, 247, 0.88), rgba(220, 239, 255, 0.74));
  color: #2e7180;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(46, 113, 128, 0.11);
  pointer-events: none;
  opacity: 0;
  transform: translate(-0.35rem, -50%) scale(0.94);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.week-overview-grid.is-scrolling::after {
  opacity: 0;
  transform: translate(0.35rem, -50%) scale(0.94);
}

.week-overview-grid.is-scrolling::before {
  opacity: 0;
  transform: translate(-0.35rem, -50%) scale(0.94);
}

.week-overview-grid:not(.at-start)::before {
  opacity: 1;
  transform: translate(0, -50%) scale(1);
}

.week-overview-grid.at-end::after {
  opacity: 0;
  transform: translate(0.35rem, -50%) scale(0.94);
}

.week-overview-grid::-webkit-scrollbar {
  display: none;
}

.calendar-strip::before,
.calendar-strip::after,
.week-overview-grid::before,
.week-overview-grid::after,
nav::before,
nav::after {
  content: none !important;
  display: none !important;
}

.selected-day-meal-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 0.4rem 0 0.8rem;
  overflow-x: auto;
  padding: 0.1rem 0.05rem 0.35rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.selected-day-meal-tabs::-webkit-scrollbar {
  display: none;
}

.selected-day-meal-tabs button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-height: 2.25rem;
  padding: 0.54rem 0.82rem;
  border: 1px solid rgba(47, 131, 146, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.94), rgba(220, 239, 255, 0.66)),
    rgba(255, 255, 255, 0.74);
  color: #2e7180;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
  scroll-snap-align: start;
  box-shadow: 0 10px 24px rgba(46, 113, 128, 0.08);
}

.selected-day-meal-tabs button strong {
  color: var(--ink);
  font-weight: 930;
}

.weekly-shopping-list {
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
}

.cost-overview {
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
}

.shopping-week-card {
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid rgba(49, 95, 67, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 38px rgba(52, 72, 54, 0.08);
}

.shopping-week-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.shopping-week-top h3 {
  margin: 0.1rem 0 0.35rem;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
}

.shopping-week-top p {
  max-width: 45rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.cost-overview-card {
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid rgba(46, 140, 146, 0.16);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.9), rgba(223, 242, 243, 0.58)),
    rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 38px rgba(52, 72, 54, 0.08);
}

.cost-overview-head {
  margin-bottom: 1rem;
}

.cost-overview-head h2 {
  margin: 0.1rem 0 0.35rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.cost-overview-head p {
  max-width: 45rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.cost-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
  margin-bottom: 1rem;
}

.cost-summary-grid article {
  min-width: 0;
  padding: 0.88rem;
  border: 1px solid rgba(46, 140, 146, 0.14);
  border-radius: 0.92rem;
  background: rgba(255, 255, 255, 0.74);
}

.cost-summary-grid span,
.cost-day-head span,
.cost-meal-row small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 920;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cost-summary-grid strong {
  display: block;
  margin-top: 0.25rem;
  color: #2e7180;
  font-size: clamp(1.2rem, 4.5vw, 2rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.cost-day-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.cost-day-card {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid rgba(49, 95, 67, 0.13);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.74);
}

.cost-day-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.62rem;
  border-bottom: 1px solid var(--line);
}

.cost-day-head h3 {
  margin: 0.1rem 0 0;
  color: var(--sage-dark);
  font-size: 1.2rem;
}

.cost-day-head > strong {
  flex: 0 0 auto;
  padding: 0.38rem 0.58rem;
  border-radius: 999px;
  background: rgba(232, 244, 230, 0.88);
  color: var(--sage-dark);
  font-size: 0.82rem;
}

.cost-meal-list {
  display: grid;
  gap: 0.48rem;
}

.cost-meal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  padding: 0.62rem;
  border: 1px solid rgba(46, 140, 146, 0.11);
  border-radius: 0.78rem;
  background: rgba(255, 253, 247, 0.8);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.cost-meal-row:hover,
.cost-meal-row:focus-visible {
  border-color: rgba(46, 140, 146, 0.34);
  box-shadow: 0 10px 20px rgba(46, 113, 128, 0.09);
}

.cost-meal-row b {
  display: block;
  margin-top: 0.08rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.cost-meal-prices {
  display: grid;
  justify-items: end;
  gap: 0.08rem;
  min-width: 5.3rem;
  color: #2e7180;
  font-weight: 900;
  text-align: right;
}

.cost-meal-prices small {
  max-width: 7.2rem;
  color: var(--muted);
  line-height: 1.15;
  white-space: normal;
}

.cost-source-note {
  margin: 0.95rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.4;
}

.shopping-week-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.shopping-slot-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
}

.shopping-day-tabs {
  display: flex;
  gap: 0.48rem;
  margin: -0.45rem 0 1rem;
  overflow-x: auto;
  padding: 0.05rem 0 0.2rem;
  scrollbar-width: none;
}

.shopping-day-tabs::-webkit-scrollbar {
  display: none;
}

.shopping-day-tabs button {
  flex: 0 0 auto;
  min-height: 2.18rem;
  padding: 0.44rem 0.74rem;
  border: 1px solid rgba(47, 122, 80, 0.12);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.82);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
}

.shopping-day-tabs button.active {
  border-color: rgba(47, 122, 80, 0.34);
  background:
    linear-gradient(135deg, rgba(232, 244, 230, 0.96), rgba(236, 248, 249, 0.74)),
    rgba(255, 255, 255, 0.86);
  color: var(--sage-dark);
  box-shadow: 0 10px 22px rgba(47, 122, 80, 0.1);
}

.shopping-slot-tabs::-webkit-scrollbar {
  display: none;
}

.shopping-slot-tabs button {
  flex: 0 0 auto;
  min-height: 2.35rem;
  padding: 0.5rem 0.82rem;
  border: 1px solid rgba(49, 95, 67, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 920;
}

.shopping-slot-tabs button.active {
  color: #235d42;
  background: linear-gradient(135deg, rgba(232, 244, 230, 0.96), rgba(255, 255, 255, 0.86));
  border-color: rgba(47, 122, 80, 0.24);
  box-shadow: 0 10px 24px rgba(47, 122, 80, 0.1);
}

.shopping-slot-tabs .slot-frokost.active {
  color: #7a5b00;
  background: linear-gradient(135deg, rgba(255, 242, 168, 0.72), rgba(255, 253, 247, 0.9));
}

.shopping-slot-tabs .slot-lunsj.active {
  color: #287584;
  background: linear-gradient(135deg, rgba(220, 239, 255, 0.78), rgba(255, 253, 247, 0.9));
}

.shopping-slot-tabs .slot-middag.active {
  color: #885037;
  background: linear-gradient(135deg, rgba(255, 217, 191, 0.78), rgba(255, 253, 247, 0.9));
}

.shopping-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.shopping-meal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.shopping-category,
.shopping-meal-group {
  min-width: 0;
}

.shopping-category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.shopping-category-heading h4 {
  margin: 0;
  color: var(--sage-dark);
  font-size: 0.95rem;
}

.shopping-category-heading span {
  display: inline-grid;
  min-width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(49, 95, 67, 0.1);
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.shopping-category ul,
.shopping-meal-group ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shopping-meal-block {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px solid rgba(49, 95, 67, 0.12);
  border-radius: 0.9rem;
  background: rgba(255, 253, 247, 0.78);
}

.shopping-meal-block + .shopping-meal-block {
  margin-top: 0.65rem;
}

.shopping-meal-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(4.2rem, 22vw, 5.5rem);
  align-items: start;
  gap: 0.72rem;
}

.shopping-meal-title-copy {
  display: grid;
  min-width: 0;
  gap: 0.45rem;
}

.shopping-meal-title-copy > div {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.shopping-meal-title span {
  color: var(--sage-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shopping-meal-title strong {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.meal-price-bubbles {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.28rem;
}

.shopping-meal-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(49, 95, 67, 0.12);
  border-radius: 0.72rem;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(52, 72, 54, 0.1);
}

.meal-price-bubble,
.shopping-price-bubble {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(47, 131, 146, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(236, 248, 249, 0.96), rgba(255, 243, 231, 0.84)),
    rgba(255, 255, 255, 0.78);
  color: #287584;
  font-weight: 920;
  white-space: nowrap;
}

.meal-price-bubble {
  padding: 0.34rem 0.54rem;
  font-size: 0.68rem;
  box-shadow: 0 8px 20px rgba(47, 131, 146, 0.08);
}

.meal-price-bubble.total-price {
  border-color: rgba(47, 122, 80, 0.18);
  background:
    linear-gradient(135deg, rgba(232, 244, 230, 0.96), rgba(255, 253, 247, 0.88)),
    rgba(255, 255, 255, 0.82);
  color: var(--sage-dark);
}

.shopping-price-bubble {
  padding: 0.16rem 0.38rem;
  font-size: 0.64rem;
}

.oda-meal-assistant {
  display: grid;
  gap: 0.62rem;
  padding: 0.68rem;
  border: 1px solid rgba(47, 131, 146, 0.16);
  border-radius: 0.86rem;
  background:
    linear-gradient(135deg, rgba(236, 248, 249, 0.96), rgba(255, 243, 231, 0.82)),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(47, 131, 146, 0.08);
}

.oda-meal-assistant.is-added {
  border-color: rgba(49, 95, 67, 0.22);
  background:
    linear-gradient(135deg, rgba(232, 244, 230, 0.98), rgba(236, 248, 249, 0.9)),
    rgba(255, 255, 255, 0.82);
}

.oda-meal-copy {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.oda-meal-copy span {
  color: #287584;
  font-size: 0.63rem;
  font-weight: 940;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oda-meal-copy strong {
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.oda-meal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.44rem;
}

.oda-open-all,
.oda-added-toggle {
  min-width: 0;
  padding: 0.48rem 0.62rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 920;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.oda-open-all {
  border: 1px solid rgba(47, 131, 146, 0.12);
  background: linear-gradient(135deg, #36ad70, #23929c);
  color: white;
  box-shadow: 0 10px 20px rgba(47, 131, 146, 0.16);
}

.oda-added-toggle {
  border: 1px solid rgba(49, 95, 67, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: var(--sage-dark);
}

.oda-added-toggle.active {
  border-color: rgba(49, 95, 67, 0.12);
  background: rgba(49, 95, 67, 0.92);
  color: white;
}

.oda-added-toggle.active::before {
  content: "✓";
  margin-right: 0.28rem;
}

.shopping-category li,
.shopping-meal-group li {
  display: grid;
  gap: 0.55rem;
  padding: 0.72rem;
  border: 1px solid rgba(49, 95, 67, 0.12);
  border-radius: 0.8rem;
  background: rgba(255, 253, 247, 0.82);
}

.shopping-category li.is-checked,
.shopping-meal-group li.is-checked {
  background: rgba(232, 244, 230, 0.82);
}

.shopping-category li.is-home,
.shopping-meal-group li.is-home {
  opacity: 0.62;
}

.shopping-check {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  cursor: pointer;
}

.shopping-check input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.1rem;
  accent-color: var(--sage-dark);
}

.shopping-check strong,
.shopping-check small {
  display: block;
}

.shopping-check strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.25;
}

.shopping-check small {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1.35;
}

.home-toggle {
  justify-self: start;
  padding: 0.42rem 0.58rem;
  border: 1px solid rgba(49, 95, 67, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--sage-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
}

.home-toggle.active {
  background: var(--sage-dark);
  color: white;
}

.home-toggle.active::before {
  content: "✓";
  display: inline-block;
  margin-right: 0.28rem;
}

.shopping-week-note {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.shopping-share-status {
  min-height: 1.2rem;
  margin: 0.65rem 0 0;
  color: var(--sage-dark);
  font-size: 0.82rem;
  font-weight: 850;
}

.overview-day-card {
  flex: 0 0 clamp(15rem, 24vw, 20rem);
  overflow: hidden;
  border: 1px solid rgba(49, 95, 67, 0.13);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(52, 72, 54, 0.07);
  scroll-snap-align: start;
}

.overview-day-card.selected-overview-day {
  border-color: rgba(49, 95, 67, 0.72);
  box-shadow: 0 18px 44px rgba(49, 95, 67, 0.16);
}

.overview-day-card > img,
.overview-empty-visual,
.meal-image-fallback {
  display: grid;
  width: 100%;
  aspect-ratio: 1.12;
  min-height: 8.5rem;
  place-items: center;
  object-fit: cover;
}

.overview-meal-visual {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.28rem;
  padding: 0.34rem;
  background:
    linear-gradient(135deg, rgba(232, 244, 230, 0.72), rgba(220, 239, 255, 0.36)),
    rgba(255, 255, 255, 0.72);
}

.overview-meal-thumb {
  position: relative;
  min-height: 7rem;
  overflow: hidden;
  border-radius: 0.78rem;
  background: rgba(255, 253, 247, 0.8);
}

.overview-meal-thumb img,
.overview-meal-thumb .meal-image-fallback {
  width: 100%;
  height: 100%;
  min-height: 7rem;
  object-fit: cover;
}

.overview-meal-thumb span,
.overview-thumb-empty {
  position: absolute;
  right: 0.34rem;
  bottom: 0.34rem;
  left: 0.34rem;
  padding: 0.24rem 0.32rem;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.84);
  color: var(--sage-dark);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.overview-thumb-empty {
  display: grid;
  inset: 0.34rem;
  place-items: center;
  background: rgba(255, 253, 247, 0.62);
  border: 1px dashed rgba(47, 122, 80, 0.28);
  white-space: normal;
}

.overview-empty-visual,
.meal-image-fallback {
  background:
    linear-gradient(135deg, rgba(232, 244, 230, 0.9), rgba(255, 242, 168, 0.38)),
    rgba(255, 255, 255, 0.8);
  color: var(--sage-dark);
  font-weight: 900;
  text-align: center;
}

.overview-day-body {
  padding: 0.9rem;
}

.overview-day-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.overview-day-heading span {
  color: var(--sage-dark);
  font-weight: 900;
}

.overview-day-heading strong {
  padding: 0.24rem 0.44rem;
  border-radius: 999px;
  background: var(--mint);
  color: var(--sage-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.overview-swap-chip {
  flex: 0 0 auto;
  min-height: 1.72rem;
  padding: 0.24rem 0.48rem;
  border: 1px solid rgba(255, 194, 161, 0.72);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 243, 232, 0.98), rgba(236, 248, 249, 0.94)),
    rgba(255, 255, 255, 0.84);
  color: #287584;
  box-shadow: 0 8px 18px rgba(47, 131, 146, 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 920;
  white-space: nowrap;
}

.overview-swap-chip:focus-visible {
  outline: 3px solid rgba(47, 131, 146, 0.22);
  outline-offset: 2px;
}

.overview-add-chip {
  border-color: rgba(47, 122, 80, 0.18);
  background:
    linear-gradient(135deg, rgba(232, 244, 230, 0.98), rgba(255, 242, 168, 0.28)),
    rgba(255, 255, 255, 0.84);
  color: #2f7a50;
}

.overview-slot-list {
  display: grid;
  gap: 0.45rem;
}

.overview-slot {
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
}

.overview-slot-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.16rem;
}

.overview-slot span {
  display: block;
  color: var(--sage-dark);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-slot p {
  margin: 0.18rem 0 0;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 820;
  line-height: 1.28;
}

.meal-title-link {
  display: inline;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 850;
  line-height: 1.28;
  text-align: left;
  text-decoration: none;
}

.meal-title-link:hover,
.meal-title-link:focus {
  color: var(--sage-dark);
  text-decoration: underline;
  outline: none;
}

.overview-slot.empty p,
.overview-day-card.empty .overview-slot p {
  color: var(--muted);
}

.overview-empty-state {
  max-width: 34rem;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid rgba(49, 95, 67, 0.14);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 40px rgba(52, 72, 54, 0.08);
}

.overview-empty-state > span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--sage-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-empty-state h3 {
  color: var(--sage-dark);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.overview-empty-state p {
  color: var(--muted);
  line-height: 1.58;
}

.overview-empty-state .mini-actions {
  align-items: stretch;
}

.overview-empty-state .mini-actions .button {
  flex: 1 1 13rem;
}

.ready-week {
  position: relative;
  margin-top: 2rem;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(49, 95, 67, 0.14);
  border-radius: 1.2rem;
  background:
    linear-gradient(135deg, rgba(232, 244, 230, 0.88), rgba(255, 253, 247, 0.92) 48%, rgba(255, 242, 168, 0.2)),
    rgba(255, 255, 255, 0.74);
  box-shadow: 0 24px 64px rgba(52, 72, 54, 0.09);
  overflow: hidden;
}

.ready-week::after {
  content: "";
  position: absolute;
  right: -5rem;
  top: -5rem;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: rgba(255, 217, 191, 0.28);
  pointer-events: none;
}

.ready-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ready-summary article,
.ready-anchor-card,
.ready-day-card {
  border: 1px solid rgba(49, 95, 67, 0.13);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 34px rgba(52, 72, 54, 0.06);
}

.ready-summary article {
  padding: 1rem;
}

.ready-summary span,
.ready-anchor-card span,
.ready-day-card span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--sage-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ready-summary strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.ready-summary p,
.ready-anchor-card p,
.ready-day-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.recipe-mini-link,
.recipe-back-link,
.see-recipe-button {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  padding: 0.5rem 0.72rem;
  border: 1px solid rgba(49, 95, 67, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--sage-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
}

.recipe-mini-link:hover,
.recipe-mini-link:focus,
.recipe-back-link:hover,
.recipe-back-link:focus,
.see-recipe-button:hover,
.see-recipe-button:focus {
  border-color: rgba(49, 95, 67, 0.4);
  background: var(--mint);
  outline: none;
}

.ready-anchor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.ready-anchor-card {
  display: grid;
  grid-template-columns: minmax(8rem, 0.72fr) minmax(0, 1fr);
  overflow: hidden;
}

.ready-anchor-card img,
.ready-day-card img {
  width: 100%;
  height: 100%;
  min-height: 10rem;
  object-fit: cover;
}

.ready-anchor-card div,
.ready-day-card div {
  padding: 1rem;
}

.ready-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(9.5rem, 1fr));
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.ready-week-grid::-webkit-scrollbar {
  display: none;
}

.ready-day-card {
  overflow: hidden;
  scroll-snap-align: start;
}

.ready-day-card img {
  aspect-ratio: 1.12;
  min-height: 0;
  display: block;
}

.ready-day-card h3 {
  font-size: 0.96rem;
}

.ready-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.builder-week {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  padding: clamp(3rem, 6vw, 5rem) max(clamp(1rem, 5vw, 4rem), calc((100vw - 1180px) / 2 + 1rem));
  background:
    linear-gradient(180deg, rgba(246, 244, 235, 0.94), rgba(255, 253, 247, 1)),
    rgba(255, 253, 247, 0.96);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 1.6rem;
}

.pick-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: -0.4rem 0 1rem;
}

.pick-steps span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.pick-steps b {
  display: inline-grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-dark);
  color: white;
  font-size: 0.78rem;
}

.planner-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  margin: 1rem 0 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 46px rgba(52, 72, 54, 0.07);
}

.builder-controls {
  max-width: 58rem;
}

.toolbar-label,
.planner-label {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.choice-button {
  min-height: 2.55rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
}

.choice-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-label {
  margin-top: 0.85rem;
}

.search-panel {
  min-width: 0;
}

.search-box {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.search-box input {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(49, 95, 67, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  outline: none;
}

.search-box input:focus {
  border-color: rgba(49, 95, 67, 0.55);
  box-shadow: 0 0 0 4px rgba(124, 166, 111, 0.13);
}

.search-box button {
  min-height: 2.8rem;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.choice-button.active {
  border-color: var(--sage-dark);
  background: var(--sage-dark);
  color: white;
}

.plan-hint {
  min-height: 1.6rem;
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.planner-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(22rem, 1.12fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.planner-layout > * {
  min-width: 0;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.week-card {
  position: relative;
  display: flex;
  min-height: 13.5rem;
  flex-direction: column;
  padding: 0.8rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.week-card:hover,
.week-card:focus {
  border-color: rgba(49, 95, 67, 0.35);
  outline: none;
  transform: translateY(-2px);
}

.meal-slot.drag-over {
  border-color: var(--sage-dark);
  background: var(--mint);
}

.week-card.filled {
  background: rgba(255, 255, 255, 0.88);
}

.week-card.selected-day {
  border-color: rgba(49, 95, 67, 0.62);
  background: rgba(232, 244, 230, 0.72);
  box-shadow: 0 18px 42px rgba(52, 72, 54, 0.12);
}

.week-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 2rem;
}

.selected-day-badge {
  flex: 0 0 auto;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--sage-dark);
  color: white;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.week-day-title {
  display: block;
  color: var(--sage-dark);
  font-size: 1rem;
}

.day-slots {
  display: grid;
  gap: 0.52rem;
  margin-top: 0.55rem;
}

.meal-slot {
  position: relative;
  min-height: 3.65rem;
  padding: 0.68rem;
  border: 1px dashed rgba(49, 95, 67, 0.22);
  border-radius: 0.85rem;
  background: rgba(255, 253, 247, 0.74);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.meal-slot:hover,
.meal-slot:focus {
  border-color: rgba(49, 95, 67, 0.45);
  outline: none;
  transform: translateY(-1px);
}

.meal-slot.filled {
  border-style: solid;
  background: rgba(255, 255, 255, 0.9);
}

.meal-slot.selected-slot {
  border-color: rgba(49, 95, 67, 0.7);
  background: rgba(232, 244, 230, 0.92);
  box-shadow: 0 10px 26px rgba(52, 72, 54, 0.11);
}

.slot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  min-height: 1.25rem;
}

.slot-label,
.slot-target {
  color: var(--sage-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slot-target {
  padding: 0.2rem 0.38rem;
  border-radius: 999px;
  background: var(--sage-dark);
  color: white;
  letter-spacing: 0.04em;
}

.slot-meal {
  display: block;
  margin-top: 0.38rem;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.2;
}

.meal-slot small {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.34;
}

.slot-empty {
  margin: 0.38rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.25;
}

.planned-meal,
.empty-slot {
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-weight: 800;
}

.week-card .type,
.recipe-card .type,
.meal-bank-card span {
  display: inline-flex;
  margin-top: 0.75rem;
  padding: 0.38rem 0.6rem;
  border-radius: 999px;
  background: var(--mint);
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.remove-meal,
.remove-slot {
  align-self: flex-start;
  margin-top: 0.55rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}

.meal-bank {
  position: sticky;
  top: 5.4rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(49, 95, 67, 0.12);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 46px rgba(52, 72, 54, 0.07);
}

.meal-bank-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.meal-bank-heading .planner-label {
  margin-bottom: 0.65rem;
}

#mealResultsMeta {
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.meal-bank-window {
  position: relative;
  margin-inline: -0.15rem;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

.meal-bank-list {
  display: flex;
  width: 100%;
  max-width: 100%;
  gap: 0.8rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-padding-inline: 0.35rem;
  scroll-snap-type: x mandatory;
  padding: 0.15rem 2.35rem 0.85rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.meal-bank-list::-webkit-scrollbar {
  display: none;
}

.meal-bank-card {
  position: relative;
  flex: 0 0 min(88%, 21rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 34px rgba(52, 72, 54, 0.06);
  cursor: grab;
  scroll-snap-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.meal-bank-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.42rem;
  background: var(--meal-fill, var(--mint));
}

.meal-bank-card:hover,
.meal-bank-card:focus,
.meal-bank-card.selected {
  border-color: rgba(49, 95, 67, 0.35);
  outline: none;
  transform: translateY(-2px);
}

.meal-bank-card.selected {
  background: var(--mint);
}

.meal-bank-card:active {
  cursor: grabbing;
}

.meal-card-image {
  margin: 0;
}

.meal-card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
}

.meal-card-body {
  padding: 0 1rem 1rem;
}

.meal-bank-card h4 {
  margin: 0.6rem 0 0.35rem;
  font-size: 0.98rem;
}

.meal-bank-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.add-meal-button {
  width: 100%;
  min-height: 2.45rem;
  margin-top: 0.85rem;
  border: 1px solid rgba(49, 95, 67, 0.2);
  border-radius: 999px;
  background: var(--sage-dark);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 850;
}

.see-recipe-button {
  width: 100%;
  min-height: 2.45rem;
  background: rgba(255, 255, 255, 0.84);
}

.empty-bank {
  flex: 1 0 100%;
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: 1rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.65);
}

.carousel-control {
  position: absolute;
  top: 38%;
  z-index: 2;
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  min-width: 2.65rem;
  min-height: 2.65rem;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(37, 42, 39, 0.15);
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 253, 247, 0.9);
  color: var(--sage-dark);
  cursor: pointer;
  font-size: 0;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(52, 72, 54, 0.14);
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.carousel-control::before {
  content: "";
  width: 0.72rem;
  height: 0.72rem;
  border-top: 0.22rem solid currentColor;
  border-right: 0.22rem solid currentColor;
}

.carousel-control.carousel-prev {
  left: 0.65rem;
}

.carousel-control.carousel-prev::before {
  transform: translateX(0.12rem) rotate(-135deg);
}

.carousel-control.carousel-next {
  right: 0.65rem;
}

.carousel-control.carousel-next::before {
  transform: translateX(-0.12rem) rotate(45deg);
}

.carousel-control:disabled {
  cursor: default;
  opacity: 0.35;
}

.carousel-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.meal-dots {
  display: flex;
  gap: 0.35rem;
}

.meal-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: rgba(49, 95, 67, 0.24);
}

.meal-dot.active {
  width: 1.25rem;
  border-radius: 999px;
  background: var(--sage-dark);
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.recipe-day-tabs {
  display: flex;
  gap: 0.55rem;
  margin: -0.3rem 0 1.1rem;
  overflow-x: auto;
  padding: 0.1rem 0.25rem 0.55rem 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.recipe-day-tabs::-webkit-scrollbar {
  display: none;
}

.recipe-day-tabs button {
  display: grid;
  min-width: 6.1rem;
  min-height: 4.25rem;
  align-content: center;
  gap: 0.08rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(47, 122, 80, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  text-align: left;
  scroll-snap-align: start;
  box-shadow: 0 12px 28px rgba(36, 82, 65, 0.06);
}

.recipe-day-tabs span {
  color: var(--sage-dark);
  font-size: 0.66rem;
  font-weight: 920;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recipe-day-tabs strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.recipe-day-tabs small {
  color: var(--muted);
  font-weight: 850;
}

.recipe-day-tabs button.active {
  border-color: rgba(13, 79, 53, 0.28);
  background:
    linear-gradient(135deg, rgba(232, 244, 230, 0.95), rgba(223, 242, 243, 0.78)),
    rgba(255, 255, 255, 0.86);
  color: var(--brand-deep);
}

.recipe-day-meal-summary {
  margin: -0.3rem 0 0.7rem;
  overflow: hidden;
  border: 1px solid rgba(49, 95, 67, 0.24);
  border-radius: 1.05rem;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 34px rgba(52, 72, 54, 0.07);
}

.recipe-day-meal-summary[hidden],
.recipe-meal-tabs[hidden] {
  display: none;
}

.recipe-day-meal-summary .overview-meal-visual {
  padding: 0.42rem;
}

.recipe-day-meal-summary .overview-meal-thumb {
  cursor: pointer;
}

.recipe-meal-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 0.95rem;
  overflow-x: auto;
  padding: 0.1rem 0.05rem 0.35rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.recipe-meal-tabs::-webkit-scrollbar {
  display: none;
}

.recipe-meal-tabs button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  min-height: 2.35rem;
  padding: 0.58rem 0.86rem;
  border: 1px solid rgba(47, 131, 146, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.94), rgba(220, 239, 255, 0.6)),
    rgba(255, 255, 255, 0.76);
  color: #2e7180;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  scroll-snap-align: start;
  box-shadow: 0 10px 24px rgba(46, 113, 128, 0.08);
}

.recipe-meal-tabs button.slot-frokost {
  background:
    linear-gradient(135deg, rgba(255, 243, 231, 0.86), rgba(255, 253, 247, 0.78)),
    rgba(255, 255, 255, 0.76);
}

.recipe-meal-tabs button.slot-lunsj {
  background:
    linear-gradient(135deg, rgba(232, 244, 230, 0.86), rgba(255, 253, 247, 0.76)),
    rgba(255, 255, 255, 0.76);
}

.recipe-meal-tabs button.slot-middag {
  background:
    linear-gradient(135deg, rgba(220, 239, 255, 0.86), rgba(255, 253, 247, 0.76)),
    rgba(255, 255, 255, 0.76);
}

.recipe-meal-tabs button.active {
  border-color: rgba(47, 131, 146, 0.36);
  color: #237382;
  box-shadow:
    0 12px 28px rgba(46, 113, 128, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.recipe-meal-tabs button strong {
  color: var(--ink);
  font-weight: 930;
}

.recipe-card {
  scroll-margin-top: 6rem;
  overflow: hidden;
}

body.recipe-mode .recipe-grid {
  grid-template-columns: minmax(0, 1fr);
}

body.recipe-mode .recipe-card:not(.active-recipe) {
  display: none;
}

.recipe-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
}

.recipe-image.meal-image-fallback,
.meal-card-image .meal-image-fallback {
  aspect-ratio: 1.25;
}

.recipe-top {
  min-height: 9rem;
  padding: 1.25rem;
  background: var(--card-fill, var(--mint));
}

.recipe-top .recipe-back-link {
  margin: 0 0 0.95rem;
}

.recipe-plan-context {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.55rem;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--sage-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.recipe-body {
  padding: 1.2rem;
}

.recipe-back-link.bottom-link {
  margin-top: 1rem;
  background: var(--sage-dark);
  color: white;
}

.detail-grid {
  display: grid;
  gap: 0.8rem;
}

.detail-grid div {
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.recipe-info-grid {
  margin-top: 1rem;
}

.oda-reference-card {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(46, 140, 146, 0.16);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(223, 242, 243, 0.58), rgba(255, 253, 247, 0.86)),
    rgba(255, 255, 255, 0.76);
}

.oda-reference-card b {
  display: block;
  color: var(--sage-dark);
}

.oda-reference-card p {
  margin: 0.25rem 0 0.75rem;
  color: var(--muted);
  line-height: 1.45;
}

.oda-reference-list {
  display: grid;
  gap: 0.45rem;
}

.oda-reference-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.48rem 0.62rem;
  border: 1px solid rgba(46, 140, 146, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.oda-reference-list a > span {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.oda-reference-list b {
  overflow-wrap: anywhere;
}

.oda-reference-list small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 720;
  line-height: 1.25;
}

.oda-reference-list strong {
  flex: 0 0 auto;
  color: #2e7180;
}

.detail-grid b {
  display: block;
  margin-bottom: 0.25rem;
}

.practical-method-card {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(49, 95, 67, 0.14);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(255, 242, 168, 0.34), rgba(255, 255, 255, 0.82)),
    white;
}

.practical-method-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.practical-method-top b {
  display: block;
  color: var(--sage-dark);
}

.practical-method-top p {
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 720;
}

.practical-method-top span {
  flex: 0 0 auto;
  padding: 0.42rem 0.64rem;
  border-radius: 999px;
  background: var(--sage-dark);
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
}

.practical-method-card ol {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.35rem;
}

.practical-method-card li {
  color: var(--ink);
  font-weight: 720;
  line-height: 1.45;
}

.nutrition-breakdown-card {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(46, 140, 146, 0.18);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(223, 242, 243, 0.62), rgba(255, 246, 229, 0.72)),
    rgba(255, 255, 255, 0.78);
}

.nutrition-breakdown-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.nutrition-breakdown-head b {
  display: block;
  color: var(--sage-dark);
}

.nutrition-breakdown-head p {
  max-width: 38rem;
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 720;
  line-height: 1.4;
}

.nutrition-breakdown-head > span {
  flex: 0 0 auto;
  padding: 0.38rem 0.58rem;
  border: 1px solid rgba(46, 140, 146, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #2e7180;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.nutrition-metric {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid rgba(49, 95, 67, 0.1);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.68);
}

.nutrition-metric.featured {
  background:
    linear-gradient(135deg, rgba(49, 170, 106, 0.12), rgba(46, 140, 146, 0.12)),
    rgba(255, 255, 255, 0.74);
}

.nutrition-metric span,
.nutrition-metric strong {
  display: block;
  overflow-wrap: anywhere;
}

.nutrition-metric span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nutrition-metric strong {
  margin-top: 0.12rem;
  color: #2e7180;
  font-size: clamp(1rem, 4.5vw, 1.45rem);
  line-height: 1;
}

.shopping-list-card {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(49, 95, 67, 0.14);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(232, 244, 230, 0.92), rgba(255, 255, 255, 0.78)),
    white;
}

.shopping-list-card b {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--sage-dark);
}

.shopping-list-card ul {
  display: grid;
  gap: 0.72rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shopping-list-card li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.35;
}

.shopping-list-card li::before {
  content: "";
  position: absolute;
  top: 0.42rem;
  left: 0;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--sage-dark);
}

.shopping-item-name {
  display: block;
  margin-bottom: 0.34rem;
}

.shopping-price-lines {
  display: grid;
  gap: 0.32rem;
}

.shopping-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.18rem 0.5rem;
  align-items: center;
  padding: 0.48rem 0.58rem;
  border: 1px solid rgba(49, 95, 67, 0.12);
  border-radius: 0.78rem;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(39, 48, 43, 0.84);
  font-size: 0.78rem;
  font-weight: 720;
}

.shopping-price-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  min-width: 0;
}

.shopping-price-main strong {
  color: var(--sage-dark);
  font-weight: 900;
}

.shopping-price-row a {
  color: var(--sage-dark);
  font-weight: 900;
  text-decoration: none;
}

.shopping-price-row a:hover {
  text-decoration: underline;
}

.shopping-price-row.missing-price {
  color: #8a4d25;
  background: rgba(255, 242, 168, 0.56);
}

.shopping-list-card small {
  display: block;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.35;
}

.price-estimate-card {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(49, 95, 67, 0.14);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(255, 242, 168, 0.5), rgba(255, 255, 255, 0.78)),
    white;
}

.price-estimate-card b {
  display: block;
  color: var(--sage-dark);
}

.price-estimate-card p {
  margin: 0.2rem 0 0;
  color: var(--ink);
}

.price-estimate-card strong {
  color: var(--sage-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.price-estimate-card small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
  line-height: 1.45;
}

.season-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.season-card {
  padding: 1.3rem;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.season-card:hover,
.season-card.active {
  transform: translateY(-3px);
  background: white;
}

.next ul {
  margin: 0;
  padding-left: 1.2rem;
}

.next li + li {
  margin-top: 0.5rem;
}

.next-copy {
  max-width: 34rem;
}

.feedback-card {
  padding: clamp(1rem, 3vw, 1.4rem);
  border: 1px solid rgba(49, 95, 67, 0.14);
  border-radius: 1rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(232, 244, 230, 0.66)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 46px rgba(52, 72, 54, 0.08);
}

.feedback-card h3 {
  margin-top: 0;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.feedback-options {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 1.1rem;
}

.feedback-options label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.72rem 0.78rem;
  border: 1px solid rgba(49, 95, 67, 0.14);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  cursor: pointer;
  font-weight: 820;
  line-height: 1.3;
}

.feedback-options input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--sage-dark);
}

.feedback-field {
  display: grid;
  gap: 0.48rem;
  margin-top: 0.9rem;
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.custom-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.custom-add-row input,
.feedback-field textarea {
  width: 100%;
  border: 1px solid rgba(49, 95, 67, 0.18);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  outline: none;
}

.custom-add-row input {
  min-height: 2.75rem;
  padding: 0.75rem 0.9rem;
}

.feedback-field textarea {
  min-height: 8rem;
  padding: 0.9rem;
  resize: vertical;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
}

.custom-add-row input:focus,
.feedback-field textarea:focus {
  border-color: rgba(49, 95, 67, 0.55);
  box-shadow: 0 0 0 4px rgba(124, 166, 111, 0.13);
}

.custom-add-row button {
  min-height: 2.75rem;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sage-dark);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.custom-wishes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 0.1rem;
}

.custom-wish {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  max-width: 100%;
  padding: 0.46rem 0.58rem;
  border-radius: 999px;
  background: var(--lemon);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
}

.custom-wish button {
  display: grid;
  width: 1.28rem;
  height: 1.28rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(37, 42, 39, 0.12);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.feedback-submit {
  width: 100%;
  margin-top: 1rem;
  border: 0;
  cursor: pointer;
}

.feedback-status {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.source-list {
  display: grid;
  gap: 0.75rem;
}

.source-list a {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.74);
  color: var(--sage-dark);
  font-weight: 800;
  text-decoration: none;
}

.disclaimer {
  margin: 1.5rem 0 4rem;
  font-size: 0.95rem;
}

.mobile-action-bar {
  display: none;
}

@media (max-width: 940px) {
  .intro-band,
  .app-flow,
  .next,
  .week-overview-top,
  .shopping-week-top,
  .planner-controls,
  .planner-layout {
    grid-template-columns: 1fr;
  }

  .app-steps {
    grid-template-columns: 1fr;
  }

  .week-overview-panel {
    justify-items: start;
  }

  .week-overview-actions {
    justify-content: flex-start;
  }

  .shopping-week-actions {
    justify-content: flex-start;
  }

  .overview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shopping-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ready-summary,
  .ready-anchor-grid {
    grid-template-columns: 1fr;
  }

  .ready-week {
    padding: 1.25rem;
  }

  .ready-anchor-card {
    grid-template-columns: minmax(7.5rem, 0.58fr) minmax(0, 1fr);
  }

  .hero {
    min-height: 740px;
    align-items: flex-start;
    padding-top: 5rem;
  }

  .hero-copy {
    width: min(39rem, 72vw);
  }

  .hero-copy.app-onboarding {
    width: min(42rem, calc(100vw - 2rem));
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .onboarding-phone {
    order: 1;
    width: min(18rem, 72vw);
  }

  .onboarding-copy {
    order: 2;
  }

  .hero::before {
    background-position: 58% center;
  }

  .principles,
  .science-grid,
  .recipe-grid,
  .season-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meal-bank {
    position: static;
  }
}

@media (max-width: 640px) {
  :root {
    --mobile-header-height: calc(4.45rem + env(safe-area-inset-top));
    --mobile-nav-height: calc(5.95rem + env(safe-area-inset-bottom));
  }

  .site-header {
    position: sticky;
    align-items: center;
    flex-direction: row;
    gap: 0.7rem;
    padding: 0.65rem;
  }

  .brand {
    flex: 0 0 auto;
    gap: 0.48rem;
  }

  .brand-mark {
    width: 2.25rem;
    height: 2.25rem;
  }

  .brand-letter {
    font-size: 0.95rem;
  }

  .splash-brand {
    gap: 0.62rem;
  }

  .splash-brand .brand-mark {
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 1.25rem;
  }

  .splash-brand .brand-letter {
    font-size: 2.05rem;
  }

  .splash-brand .brand-letter::after {
    width: 2.35rem;
  }

  .splash-brand .brand-text b {
    font-size: 1.42rem;
  }

  .splash-brand .brand-text small {
    font-size: 0.62rem;
  }

  .brand-text b {
    font-size: 0.96rem;
  }

  .brand-text small {
    font-size: 0.5rem;
  }

  .splash-footer {
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    font-size: 0.56rem;
    letter-spacing: 0.15em;
  }

  .coach-mode-options {
    grid-template-columns: 1fr;
  }

  .coach-mode-options button {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 3.2rem;
    align-items: center;
    text-align: left;
  }

  .coach-mode-options small {
    text-align: right;
  }

  main {
    width: min(100% - 1rem, 1180px);
  }

  .meal-price-bubble {
    padding: 0.28rem 0.48rem;
    font-size: 0.64rem;
  }

  .nutrition-breakdown-head {
    display: grid;
    gap: 0.45rem;
  }

  .nutrition-breakdown-head > span {
    width: fit-content;
  }

  .nutrition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cost-summary-grid,
  .cost-day-list {
    grid-template-columns: 1fr;
  }

  .cost-meal-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .cost-meal-prices {
    justify-items: start;
    min-width: 0;
    text-align: left;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 4.5rem);
    line-height: 1;
    padding-bottom: 0.2em;
  }

  .app-onboarding h1 {
    max-width: none;
    margin-bottom: 0.35rem;
    font-size: clamp(2rem, 9vw, 2.4rem);
    line-height: 1.02;
  }

  .hero {
    min-height: auto;
    align-items: flex-start;
    padding: 1rem 1rem 6rem;
  }

  .hero-copy,
  .hero-copy.app-onboarding {
    width: 100%;
    padding: 0.85rem;
    border-radius: 1.15rem;
  }

  .hero::before {
    background-position: center top;
    background-size: cover;
  }

  .hero::after {
    background:
      linear-gradient(100deg, rgba(255, 253, 247, 0.98) 0%, rgba(255, 253, 247, 0.94) 54%, rgba(255, 253, 247, 0.68) 100%),
      radial-gradient(circle at 0% 0%, rgba(255, 243, 200, 0.42), transparent 45%),
      linear-gradient(180deg, rgba(255, 253, 247, 0.08) 0%, rgba(255, 253, 247, 0.84) 100%);
  }

  .hero-light-glow {
    inset: -10rem auto auto -5rem;
    width: min(30rem, 110vw);
    height: min(30rem, 110vw);
    opacity: 0.72;
  }

  .hero-light-rays {
    inset: -2rem 0 auto 0;
    width: 100vw;
    height: 58rem;
    opacity: 0.62;
  }

  .hero-light-shadow {
    inset: -3rem 0 auto 0;
    width: 100vw;
    height: 58rem;
    opacity: 0.28;
  }

  .onboarding-phone {
    width: min(18rem, 78vw);
  }

  .phone-shell {
    border-width: 0.58rem;
    border-radius: 1.9rem;
  }

  .phone-status {
    min-height: 1.85rem;
    padding: 0.5rem 0.82rem 0.28rem;
    font-size: 0.78rem;
  }

  .phone-topbar {
    min-height: 2.55rem;
    padding: 0.58rem 0.82rem;
  }

  .phone-screen {
    inset: 4.4rem 0 0;
    gap: 0.52rem;
    padding: 0.9rem 0.8rem 1.25rem;
  }

  .phone-screen h3 {
    font-size: 1.38rem;
  }

  .phone-meal-hero img {
    aspect-ratio: 1.18;
  }

  .phone-chip-row span,
  .phone-plan-ready {
    min-height: 1.9rem;
    font-size: 0.74rem;
  }

  .onboarding-topline {
    align-items: flex-start;
  }

  .onboarding-title {
    font-size: 1.45rem;
  }

  .onboarding-body,
  .lede {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .principles,
  .science-grid,
  .recipe-grid,
  .season-layout {
    grid-template-columns: 1fr;
  }

  .week,
  .week-overview,
  .ready-week,
  .recipes,
  .season,
  .sources {
    padding: 3rem 0;
  }

  .week-overview {
    padding: 3rem 1rem;
  }

  .overview-empty-state {
    max-width: none;
  }

  .recipe-image {
    aspect-ratio: 1.18;
  }

  .week-grid {
    display: flex;
    gap: 0.75rem;
    margin-inline: -0.5rem;
    overflow-x: auto;
    scroll-padding-inline: 0.5rem;
    scroll-snap-type: x mandatory;
    padding: 0.15rem 0.5rem 0.85rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .week-grid::-webkit-scrollbar {
    display: none;
  }

  .week-card {
    flex: 0 0 min(82vw, 24rem);
    min-height: 12rem;
    scroll-snap-align: start;
  }

  .ready-anchor-card {
    grid-template-columns: 1fr;
  }

  .ready-anchor-card img {
    aspect-ratio: 1.35;
    min-height: 0;
  }

  .ready-week-grid {
    margin-inline: 0;
    padding-inline: 0;
  }

  .ready-day-card {
    min-width: min(76vw, 20rem);
  }

  .week-overview-grid {
    margin-inline: 0;
    padding-left: 1.05rem;
    padding-right: 2.75rem;
    scroll-padding-left: 1.05rem;
  }

  .overview-day-card {
    flex-basis: min(78vw, 21rem);
    min-width: min(78vw, 21rem);
  }

  .overview-stats {
    grid-template-columns: 1fr 1fr;
  }

  .meal-bank-list {
    padding-inline: 2rem;
  }

  .meal-bank-card {
    flex-basis: min(78vw, 22rem);
  }

  .choice-buttons {
    width: 100%;
  }

  .choice-button {
    flex: 1 1 9.5rem;
  }

  .custom-add-row {
    grid-template-columns: 1fr;
  }

  .custom-add-row button {
    width: 100%;
  }

  .hero-note {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    max-width: none;
  }

  body {
    padding-bottom: var(--mobile-nav-height);
    background: #f8f6ee;
    overflow: hidden;
  }

  .daily-message-toast {
    top: calc(var(--mobile-header-height) + 0.5rem);
    width: min(88vw, 22rem);
    font-size: 0.84rem;
  }

  section {
    scroll-margin-top: 1rem;
  }

  main {
    height: calc(100dvh - var(--mobile-header-height) - var(--mobile-nav-height));
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: 0.9rem;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .site-header {
    min-height: var(--mobile-header-height);
    justify-content: center;
    padding: calc(0.65rem + env(safe-area-inset-top)) 1rem 0.65rem;
    background: rgba(255, 253, 247, 0.72);
    border-bottom: 0;
    box-shadow: none;
    overflow: visible;
  }

  .brand {
    margin-inline: auto;
  }

  nav {
    position: fixed;
    top: auto;
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: max(0.7rem, env(safe-area-inset-bottom));
    left: max(0.85rem, env(safe-area-inset-left));
    z-index: 30;
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.32rem;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 1.72rem;
    background:
      linear-gradient(135deg, rgba(255, 253, 247, 0.86), rgba(236, 248, 249, 0.72)),
      rgba(255, 255, 255, 0.66);
    box-shadow:
      0 22px 48px rgba(67, 89, 86, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.82),
      inset 0 -1px 0 rgba(97, 122, 117, 0.1);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    white-space: nowrap;
    backdrop-filter: blur(22px) saturate(1.25);
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav::after {
    content: "›";
    position: absolute;
    top: 50%;
    right: 0.48rem;
    z-index: 2;
    display: grid;
    width: 2.15rem;
    height: 2.15rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 253, 247, 0.9), rgba(223, 242, 243, 0.74));
    color: #2e7180;
    font-size: 1.35rem;
    font-weight: 950;
    pointer-events: none;
    box-shadow: 0 10px 22px rgba(46, 113, 128, 0.12);
    transform: translateY(-50%);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  nav::before {
    content: "‹";
    position: absolute;
    top: 50%;
    left: 0.48rem;
    z-index: 2;
    display: grid;
    width: 2.15rem;
    height: 2.15rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 253, 247, 0.9), rgba(223, 242, 243, 0.74));
    color: #2e7180;
    font-size: 1.35rem;
    font-weight: 950;
    pointer-events: none;
    box-shadow: 0 10px 22px rgba(46, 113, 128, 0.12);
    opacity: 0;
    transform: translate(-0.35rem, -50%) scale(0.94);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  nav.is-scrolling::after {
    opacity: 0;
    transform: translate(0.35rem, -50%) scale(0.94);
  }

  nav.is-scrolling::before {
    opacity: 0;
    transform: translate(-0.35rem, -50%) scale(0.94);
  }

  nav:not(.at-start)::before {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
  }

  nav.at-end::after {
    opacity: 0;
    transform: translate(0.35rem, -50%) scale(0.94);
  }

  nav a {
    display: grid;
    flex: 0 0 calc((100% - 0.4rem) / 4);
    min-height: 4.25rem;
    justify-items: center;
    align-content: center;
    gap: 0.34rem;
    padding: 0.34rem 0.18rem;
    border-radius: 1.32rem;
    background: transparent;
    color: rgba(45, 58, 55, 0.62);
    font-size: 0.76rem;
    font-weight: 760;
    line-height: 1;
    scroll-snap-align: center;
  }

  nav a:hover,
  nav a:focus,
  nav a.active {
    background:
      linear-gradient(135deg, rgba(220, 239, 255, 0.56), rgba(232, 244, 230, 0.56)),
      rgba(255, 255, 255, 0.62);
    color: #2e7180;
    box-shadow:
      0 10px 24px rgba(46, 113, 128, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.72);
  }

  .nav-glyph {
    position: relative;
    display: grid;
    width: 1.7rem;
    height: 1.7rem;
    place-items: center;
    color: currentColor;
    font-size: 1.55rem;
    line-height: 1;
  }

  .nav-glyph-start::before {
    content: "⌂";
  }

  .nav-glyph-plan::before {
    content: "▦";
  }

  .nav-glyph-swap::before {
    content: "↔";
  }

  .nav-glyph-list::before {
    content: "☑";
  }

  .nav-glyph-cost::before {
    content: "kr";
    font-size: 0.92rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .nav-glyph-info::before {
    content: "◫";
    display: grid;
    width: 1.48rem;
    height: 1.48rem;
    place-items: center;
    font-size: 1.48rem;
    font-weight: 950;
  }

  .nav-glyph-feedback::before {
    content: "✐";
    font-size: 1.45rem;
  }

  .nav-glyph-settings::before {
    content: "⚙︎";
    font-size: 1.42rem;
  }

  .nav-label {
    display: block;
  }

  .mobile-action-bar {
    position: fixed;
    right: 1.1rem;
    bottom: calc(5.8rem + env(safe-area-inset-bottom));
    left: 1.1rem;
    z-index: 29;
    display: flex;
    justify-content: center;
    pointer-events: none;
  }

  .mobile-action-bar.hidden {
    display: none;
  }

  .mobile-action-bar button {
    width: fit-content;
    max-width: min(82vw, 21rem);
    min-height: 2.35rem;
    padding: 0.42rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 253, 247, 0.78), rgba(218, 237, 238, 0.56));
    color: #2e7180;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 900;
    box-shadow:
      0 14px 34px rgba(46, 113, 128, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px) saturate(1.18);
    pointer-events: auto;
  }

  body[data-mobile-route] main > section {
    display: none;
  }

  body[data-mobile-route="top"] main > .hero,
  body[data-mobile-route="ukeplan"] main > .week-overview,
  body[data-mobile-route="handleliste"] main > .weekly-shopping-list,
  body[data-mobile-route="kostnader"] main > .cost-overview,
  body[data-mobile-route="bygg"] main > .builder-week,
  body[data-mobile-route="oppskrifter"] main > .recipes,
  body[data-mobile-route="videre"] main > .next,
  body[data-mobile-route="innstillinger"] main > .settings-panel,
  body[data-mobile-route="science"] main > .science,
  body[data-mobile-route="science"] main > .care-note,
  body[data-mobile-route="science"] main > .principles,
  body[data-mobile-route="science"] main > .sources,
  body.recipe-mode .recipes {
    display: block;
  }

  body[data-mobile-route="top"] main > .hero {
    display: flex;
  }

  body.recipe-mode .recipes .section-heading {
    display: none;
  }

  body.recipe-mode .recipe-grid {
    display: block;
  }

  body.recipe-mode .recipe-card {
    border-radius: 1.25rem;
  }

  .hero {
    min-height: 100%;
    align-items: flex-start;
    padding: 0.45rem 0.75rem 1.15rem;
  }

  .hero-copy.app-onboarding {
    display: block;
    margin-top: 1rem;
    padding: 1.05rem;
    border-radius: 1.35rem;
    background: rgba(255, 253, 247, 0.76);
    box-shadow: 0 22px 62px rgba(22, 39, 29, 0.16);
  }

  .onboarding-phone,
  .onboarding-skip,
  .onboarding-dots,
  .hero-note {
    display: none;
  }

  .onboarding-topline {
    margin-bottom: 0.5rem;
  }

  .app-onboarding h1 {
    font-size: clamp(2.45rem, 11vw, 3.2rem);
    line-height: 1.02;
  }

  .onboarding-title {
    margin-top: 0.65rem;
    font-size: 1.45rem;
  }

  .hero-actions {
    margin-top: 1rem;
  }

  .hero-actions .button {
    min-height: 3.25rem;
  }

  .hero-actions .button.primary {
    border: 1px solid rgba(255, 255, 255, 0.56);
    background:
      linear-gradient(135deg, rgba(52, 166, 103, 0.98), rgba(35, 137, 153, 0.9)),
      var(--sage-dark);
    box-shadow:
      0 16px 34px rgba(35, 137, 153, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }

  .week-overview,
  .builder-week,
  .science,
  .care-note,
  .principles,
  .sources {
    min-height: 100%;
    padding-top: 1.35rem;
    padding-bottom: 1.35rem;
  }

  body[data-mobile-route="science"] .science,
  body[data-mobile-route="science"] .care-note,
  body[data-mobile-route="science"] .principles,
  body[data-mobile-route="science"] .sources {
    min-height: 0;
    padding: 0.75rem 1rem;
  }

  body[data-mobile-route="science"] .science {
    margin-top: 0.45rem;
    padding-top: 0.85rem;
  }

  body[data-mobile-route="science"] .section-heading {
    gap: 0.35rem;
  }

  body[data-mobile-route="science"] .section-heading h2 {
    font-size: 1.9rem;
    line-height: 1.04;
  }

  body[data-mobile-route="science"] .section-heading p {
    line-height: 1.45;
  }

  body[data-mobile-route="science"] .science-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin: 0.85rem 0 0;
    overflow: hidden;
  }

  body[data-mobile-route="science"] .science-grid article {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 0.9rem;
    padding-right: 1.15rem;
    border-radius: 1.05rem;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 253, 247, 0.64)),
      linear-gradient(90deg, var(--science-fill, var(--mint)), transparent 34%);
  }

  body[data-mobile-route="science"] .science-grid article::after {
    right: 0;
    bottom: 0;
    width: 0.34rem;
    height: 100%;
    border-radius: 999px 0 0 999px;
    opacity: 0.95;
  }

  body[data-mobile-route="science"] .science-no {
    display: inline-grid;
    width: 2.2rem;
    height: 2.2rem;
    margin: 0 0 0.55rem;
    font-size: 0.86rem;
  }

  body[data-mobile-route="science"] .science-grid h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.15;
  }

  body[data-mobile-route="science"] .science-grid p {
    margin: 0.32rem 0 0;
    font-size: 0.92rem;
    line-height: 1.42;
  }

  body[data-mobile-route="science"] .care-note {
    display: block;
    margin: 0.2rem 1rem 0.35rem;
    padding: 0.95rem;
    border: 1px solid rgba(255, 215, 187, 0.68);
    border-radius: 1.05rem;
    background:
      linear-gradient(135deg, rgba(255, 232, 214, 0.62), rgba(255, 253, 247, 0.84)),
      rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 34px rgba(105, 85, 58, 0.08);
  }

  body[data-mobile-route="science"] .care-note h2 {
    margin: 0.18rem 0 0.4rem;
    font-size: 1.18rem;
  }

  body[data-mobile-route="science"] .care-note p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  body[data-mobile-route="science"] .principles {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin: 0.35rem 1rem;
  }

  body[data-mobile-route="science"] .principles article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.7rem;
    padding: 0.78rem 0.85rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.78);
  }

  body[data-mobile-route="science"] .principles article:nth-child(1) {
    background: linear-gradient(135deg, rgba(232, 244, 230, 0.74), rgba(255, 255, 255, 0.78));
  }

  body[data-mobile-route="science"] .principles article:nth-child(2) {
    background: linear-gradient(135deg, rgba(255, 243, 174, 0.5), rgba(255, 255, 255, 0.78));
  }

  body[data-mobile-route="science"] .principles article:nth-child(3) {
    background: linear-gradient(135deg, rgba(255, 217, 191, 0.48), rgba(255, 255, 255, 0.78));
  }

  body[data-mobile-route="science"] .principles article:nth-child(4) {
    background: linear-gradient(135deg, rgba(220, 239, 255, 0.56), rgba(255, 255, 255, 0.78));
  }

  body[data-mobile-route="science"] .principles span {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1;
  }

  body[data-mobile-route="science"] .principles h3 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.15;
  }

  body[data-mobile-route="science"] .principles p {
    grid-column: 2;
    margin: 0.18rem 0 0;
    font-size: 0.88rem;
    line-height: 1.38;
  }

  body[data-mobile-route="science"] .sources {
    padding-bottom: 6.7rem;
  }

  body[data-mobile-route="science"] .source-list {
    gap: 0.42rem;
    margin-top: 0.6rem;
  }

  body[data-mobile-route="science"] .source-list a {
    padding: 0.62rem 0.72rem;
    border-radius: 0.8rem;
    background: rgba(255, 253, 247, 0.76);
    font-size: 0.82rem;
    line-height: 1.2;
  }

  body[data-mobile-route="science"] .disclaimer {
    margin-top: 0.7rem;
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .week-overview {
    margin-top: 0.75rem;
    background: #f8f6ee;
  }

  .week-overview-top {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .week-overview-top h2 {
    max-width: 100%;
    font-size: clamp(2.15rem, 12vw, 3.1rem);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .week-overview-top p,
  .overview-empty-state p,
  .overview-empty-state h3 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .week-overview-panel {
    width: 100%;
    justify-items: center;
  }

  #weekModeBadge {
    min-width: 0;
    padding: 0.46rem 0.72rem;
    font-size: 0.68rem;
  }

  .week-overview-actions {
    display: none;
  }

  .calendar-strip {
    position: sticky;
    top: 0;
    z-index: 4;
    margin-inline: -1rem;
    padding: 0.4rem 1rem 0.7rem 1.25rem;
    scroll-padding-left: 1.25rem;
    background: linear-gradient(180deg, rgba(248, 246, 238, 0.98), rgba(248, 246, 238, 0.86));
    backdrop-filter: blur(14px);
  }

  .calendar-day {
    min-width: 5.35rem;
    min-height: 4.85rem;
    border-radius: 0.95rem;
  }

  .overview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0.35rem;
  }

  .week-overview-grid {
    margin-inline: -0.3rem;
    padding: 0 2.75rem 0.6rem 1.05rem;
    scroll-padding-left: 1.05rem;
  }

  .overview-empty-state {
    padding: 1.1rem;
  }

  .overview-empty-state h3 {
    font-size: clamp(1.35rem, 7vw, 2rem);
    line-height: 1.08;
  }

  .overview-empty-state .mini-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .overview-empty-state .mini-actions .button {
    width: 100%;
  }

  .overview-meal-visual {
    gap: 0.22rem;
    padding: 0.28rem;
  }

  .overview-meal-thumb,
  .overview-meal-thumb img,
  .overview-meal-thumb .meal-image-fallback {
    min-height: 6.2rem;
  }

  .shopping-week-actions .button {
    flex: 1 1 10rem;
  }

  .shopping-category-grid,
  .shopping-meal-grid {
    grid-template-columns: 1fr;
  }

  .weekly-shopping-list {
    min-height: 100%;
    padding: 1.05rem 1rem 6.7rem;
  }

  .overview-day-card {
    border-radius: 1.15rem;
  }

  .overview-day-card img,
  .overview-empty-visual {
    aspect-ratio: 1.25;
  }

  .builder-week {
    background: #f8f6ee;
  }

  .builder-week .section-heading p {
    line-height: 1.5;
  }

  .pick-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.38rem;
  }

  .pick-steps span {
    justify-content: center;
    padding: 0.5rem 0.35rem;
    border-radius: 0.9rem;
    font-size: 0.72rem;
    text-align: center;
  }

  .plan-hint {
    padding: 0.75rem;
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
  }

  .planner-controls {
    padding: 0.8rem;
    border-radius: 1rem;
  }

  .meal-bank {
    padding: 0.8rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.86);
  }

  .science,
  .care-note,
  .principles,
  .sources {
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-light {
    animation: none;
  }

  .brand-mark {
    animation: none;
  }

  .splash-inner::before,
  .splash-inner::after {
    animation: none;
  }

  .hero::before {
    animation: none;
  }

  .season-card,
  .meal-bank-card,
  .week-card {
    transition: none;
  }
}
