:root {
  --navy: #001f3f;
  --green: #00804c;
  --green-dark: #006b40;
  --lime: #dbe64c;
  --leaf: #74c365;
  --cream: #f6f7ed;
  --paper: #ffffff;
  --ink: #17324a;
  --muted: #71808c;
  --line: #e3e8df;
  --danger: #c64646;
  --warning: #c97818;
  --shadow: 0 24px 70px rgba(0, 31, 63, 0.1);
  --shadow-soft: 0 10px 30px rgba(0, 31, 63, 0.07);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--cream);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% -5%, rgba(219, 230, 76, 0.2), transparent 28%),
    var(--cream);
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.client-shell {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  min-height: 100vh;
}

.desktop-sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  width: 246px;
  flex-direction: column;
  overflow-y: auto;
  padding: 27px 18px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 0, rgba(219, 230, 76, 0.12), transparent 27%),
    var(--navy);
}

.brand,
.mobile-brand,
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand {
  padding: 0 10px 30px;
}

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  border-radius: 15px 15px 15px 5px;
  color: var(--navy);
  background: var(--lime);
  font-size: 24px;
  font-weight: 950;
}

.brand-mark.small {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border-radius: 12px 12px 12px 4px;
  font-size: 19px;
}

.brand-mark.large {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
  font-size: 28px;
}

.brand strong,
.login-brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0.12em;
}

.brand small,
.login-brand small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.desktop-nav {
  display: grid;
  gap: 5px;
}

.nav-button {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  min-height: 47px;
  align-items: center;
  border: 0;
  border-radius: 14px;
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.nav-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-button.active {
  color: var(--navy);
  background: var(--lime);
}

.nav-button:active {
  transform: translateY(1px);
}

.nav-button > span {
  font-size: 20px;
  line-height: 1;
}

.nav-button > b {
  font-size: 13px;
}

.nav-count {
  position: absolute;
  top: 8px;
  right: 11px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 99px;
  padding: 0 5px;
  color: #fff;
  background: var(--green);
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}

.sidebar-promo {
  display: grid;
  gap: 9px;
  margin-top: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 19px;
  padding: 17px;
  background:
    radial-gradient(circle at 100% 100%, rgba(219, 230, 76, 0.22), transparent 55%),
    rgba(255, 255, 255, 0.05);
}

.sidebar-promo span {
  width: max-content;
  border-radius: 99px;
  padding: 5px 8px;
  color: var(--navy);
  background: var(--lime);
  font-size: 9px;
  font-weight: 850;
}

.sidebar-promo strong {
  font-size: 13px;
  line-height: 1.35;
}

.sidebar-promo button {
  width: max-content;
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.67);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}

.client-main {
  grid-column: 2;
  min-width: 0;
}

.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(22px, 4vw, 54px);
  border-bottom: 1px solid rgba(0, 31, 63, 0.05);
  background: rgba(246, 247, 237, 0.87);
  backdrop-filter: blur(20px);
}

.mobile-brand {
  display: none;
}

.header-copy p {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-copy h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(22px, 3vw, 29px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.recipient-switch select {
  max-width: 190px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 31px 0 12px;
  outline: none;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 12px;
}

.round-button,
.avatar-button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
}

.round-button {
  font-size: 18px;
}

.avatar-button {
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 13px;
  font-weight: 850;
}

.cart-shortcut {
  position: relative;
}

.cart-bubble {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid var(--cream);
  border-radius: 99px;
  padding: 0 4px;
  color: #fff;
  background: var(--green);
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
}

.app-content {
  max-width: 1480px;
  margin: 0 auto;
  padding: 30px clamp(22px, 4vw, 54px) 72px;
}

.section-stack {
  display: grid;
  gap: 20px;
  animation: content-in 220ms ease both;
}

@keyframes content-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(23px, 4vw, 34px);
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.heading-actions,
.button-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.hero-card {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(25px, 4vw, 40px);
  color: #fff;
  background:
    radial-gradient(circle at 87% 25%, rgba(219, 230, 76, 0.35), transparent 27%),
    linear-gradient(135deg, var(--green), #005749 62%, var(--navy));
  box-shadow: var(--shadow);
}

.hero-card::after {
  position: absolute;
  right: -58px;
  bottom: -90px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.hero-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.hero-kicker {
  display: inline-flex;
  border-radius: 99px;
  padding: 6px 10px;
  color: var(--navy);
  background: var(--lime);
  font-size: 10px;
  font-weight: 850;
}

.hero-card h2 {
  max-width: 590px;
  margin: 18px 0 10px;
  font-size: clamp(30px, 5vw, 49px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-card p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.55;
}

.hero-kcal {
  display: grid;
  width: 106px;
  height: 106px;
  flex: 0 0 106px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
  backdrop-filter: blur(12px);
}

.hero-kcal strong {
  display: block;
  font-size: 27px;
  line-height: 1;
}

.hero-kcal span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  text-transform: uppercase;
}

.hero-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.lime-button {
  min-height: 42px;
  border-radius: 12px;
  padding: 0 17px;
  cursor: pointer;
  font-weight: 780;
  transition:
    background 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.primary-button {
  border: 1px solid var(--green);
  color: #fff;
  background: var(--green);
  box-shadow: 0 8px 22px rgba(0, 128, 76, 0.18);
}

.primary-button:hover {
  background: var(--green-dark);
}

.secondary-button {
  border: 1px solid rgba(0, 128, 76, 0.22);
  color: var(--green);
  background: rgba(0, 128, 76, 0.07);
}

.ghost-button {
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}

.danger-button {
  border: 1px solid rgba(198, 70, 70, 0.2);
  color: var(--danger);
  background: rgba(198, 70, 70, 0.06);
}

.danger-button.compact {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 11px;
  font-size: 9px;
}

.session-list-item .status-pill {
  flex: 0 0 auto;
  font-style: normal;
}

.lime-button {
  border: 1px solid var(--lime);
  color: var(--navy);
  background: var(--lime);
}

.hero-actions .secondary-button {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.danger-button:active,
.lime-button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.full {
  width: 100%;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 15px;
}

.panel,
.meal-card,
.plan-card,
.product-card,
.subscription-card,
.reminder-card,
.profile-card,
.cart-item,
.delivery-card {
  border: 1px solid rgba(0, 31, 63, 0.06);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.panel {
  min-width: 0;
  border-radius: var(--radius-lg);
  padding: 21px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}

.panel-header h3 {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
}

.panel-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.panel-link {
  border: 0;
  padding: 3px;
  color: var(--green);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

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

.meal-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 17px;
  padding: 17px;
}

.meal-card::after {
  position: absolute;
  top: -30px;
  right: -24px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  content: "";
  background: rgba(219, 230, 76, 0.18);
}

.meal-number {
  position: relative;
  z-index: 1;
  color: var(--green);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.meal-card h4 {
  position: relative;
  z-index: 1;
  margin: 8px 0 5px;
  color: var(--navy);
  font-size: 15px;
}

.meal-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.nutrition-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.nutrition-row span {
  border-radius: 8px;
  padding: 5px 7px;
  color: #59706a;
  background: #f2f5ef;
  font-size: 9px;
  font-weight: 750;
}

.water-panel {
  color: #fff;
  background:
    radial-gradient(circle at 100% 0, rgba(219, 230, 76, 0.2), transparent 38%),
    var(--navy);
}

.water-panel .panel-header h3 {
  color: #fff;
}

.water-panel .panel-header p {
  color: rgba(255, 255, 255, 0.55);
}

.water-layout {
  display: grid;
  grid-template-columns: 124px 1fr;
  align-items: center;
  gap: 18px;
}

.water-ring {
  --progress: 0deg;
  position: relative;
  display: grid;
  width: 124px;
  height: 124px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--lime) var(--progress), rgba(255, 255, 255, 0.1) 0);
}

.water-ring::before {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  content: "";
  background: var(--navy);
}

.water-ring span {
  position: relative;
  z-index: 1;
  display: grid;
  text-align: center;
}

.water-ring strong {
  font-size: 22px;
}

.water-ring small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
}

.water-copy strong {
  display: block;
  font-size: 24px;
}

.water-copy > span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.57);
  font-size: 10px;
}

.water-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.water-actions button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  padding: 0 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}

.delivery-summary {
  display: grid;
  gap: 12px;
}

.delivery-address {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.delivery-address i {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 11px;
  color: var(--green);
  background: rgba(219, 230, 76, 0.28);
  font-style: normal;
}

.delivery-address strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
}

.delivery-address small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.status-pill,
.chip {
  display: inline-flex;
  width: max-content;
  min-height: 25px;
  align-items: center;
  border-radius: 99px;
  padding: 4px 9px;
  color: #5e6c75;
  background: #edf1ed;
  font-size: 9px;
  font-weight: 850;
}

.status-pill.active,
.status-pill.delivered,
.status-pill.paid,
.status-pill.completed,
.status-pill.succeeded {
  color: #067346;
  background: #e2f4e9;
}

.status-pill.planned,
.status-pill.awaiting_payment,
.status-pill.paused,
.status-pill.pending {
  color: #a45d0d;
  background: #fff0d7;
}

.status-pill.in_production,
.status-pill.packed,
.status-pill.out_for_delivery,
.status-pill.confirmed,
.status-pill.fulfilling {
  color: #24648e;
  background: #e4f1f9;
}

.status-pill.cancelled,
.status-pill.failed,
.status-pill.refunded,
.status-pill.blocked {
  color: #b13b3b;
  background: #fde7e7;
}

.plans-grid,
.products-grid,
.subscriptions-grid,
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.plan-card,
.product-card,
.subscription-card,
.reminder-card,
.profile-card,
.delivery-card {
  min-width: 0;
  border-radius: 20px;
  padding: 20px;
}

.plan-card {
  position: relative;
  overflow: hidden;
}

.plan-card.featured {
  color: #fff;
  background: var(--green);
}

.plan-card.featured::after {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  content: "";
  background: rgba(219, 230, 76, 0.22);
}

.plan-card.premium {
  color: #fff;
  border-color: rgba(219, 230, 76, 0.42);
  background:
    radial-gradient(circle at 100% 0, rgba(219, 230, 76, 0.22), transparent 36%),
    linear-gradient(145deg, #001f3f, #123d55);
}

.plan-card.premium .plan-kcal,
.plan-card.premium .eyebrow {
  color: var(--lime);
}

.plan-card.premium h3 {
  color: #fff;
}

.plan-card.premium p {
  color: rgba(255, 255, 255, 0.68);
}

.plan-card.premium .plan-meta span {
  color: #eef4d2;
  background: rgba(255, 255, 255, 0.1);
}

.plan-card.premium .plan-price span {
  color: rgba(255, 255, 255, 0.72);
}

.premium-ribbon {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  border-radius: 99px;
  padding: 5px 9px;
  color: var(--navy);
  background: var(--lime);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.plan-kcal {
  position: relative;
  z-index: 1;
  color: var(--green);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.featured .plan-kcal {
  color: var(--lime);
}

.plan-card h3,
.product-card h3,
.subscription-card h3,
.profile-card h3 {
  position: relative;
  z-index: 1;
  margin: 8px 0 6px;
  color: var(--navy);
  font-size: 16px;
}

.featured h3 {
  color: #fff;
}

.plan-card p,
.product-card p,
.subscription-card p,
.profile-card p {
  position: relative;
  z-index: 1;
  min-height: 34px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.featured p {
  color: rgba(255, 255, 255, 0.65);
}

.plan-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
}

.plan-meta span {
  border-radius: 8px;
  padding: 5px 7px;
  color: #516a62;
  background: #f1f4ee;
  font-size: 9px;
  font-weight: 750;
}

.featured .plan-meta span {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
}

.plan-price {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.plan-price strong {
  color: var(--navy);
  font-size: 17px;
}

.featured .plan-price strong {
  color: #fff;
}

.plan-price small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.featured .plan-price small {
  color: rgba(255, 255, 255, 0.58);
}

.ration-subscriptions-strip {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.76);
}

.ration-strip-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.ration-strip-heading > div {
  display: grid;
  gap: 2px;
}

.ration-strip-heading strong {
  color: var(--navy);
  font-size: 12px;
}

.ration-strip-heading > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 99px;
  color: var(--navy);
  background: var(--lime);
  font-size: 10px;
  font-weight: 900;
}

.ration-subscription-scroll {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.ration-subscription-mini {
  display: grid;
  min-width: min(430px, 82vw);
  grid-template-columns: minmax(160px, 1fr) auto;
  align-items: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px;
  background: #fff;
}

.ration-subscription-mini > div:first-child {
  display: grid;
  gap: 3px;
}

.ration-subscription-mini > div > span,
.ration-subscription-mini small {
  color: var(--muted);
  font-size: 9px;
}

.ration-subscription-mini strong {
  color: var(--navy);
  font-size: 12px;
}

.ration-subscription-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 6px;
}

.ration-subscription-actions button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 9px;
}

.ration-main-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: clip;
  border: 1px solid rgba(0, 31, 63, 0.08);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  container-name: ration-builder;
  container-type: inline-size;
  scroll-margin-top: 105px;
}

.ration-full-configurator {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: stretch;
}

.ration-config-left {
  display: grid;
  align-content: start;
  gap: 19px;
  min-width: 0;
  padding: clamp(25px, 3vw, 42px);
  background:
    radial-gradient(circle at 95% 5%, rgba(219, 230, 76, 0.12), transparent 28%),
    #fbfcf8;
}

.ration-config-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.ration-config-title h2 {
  margin: 5px 0 0;
  color: var(--navy);
  font-size: clamp(27px, 3vw, 41px);
  letter-spacing: -0.05em;
}

.ration-config-title p {
  max-width: 570px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.ration-line-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ration-line-tabs button {
  min-height: 45px;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.ration-line-tabs button.active {
  border-color: var(--lime);
  color: var(--navy);
  background: var(--lime);
  box-shadow: 0 8px 24px rgba(161, 177, 33, 0.18);
}

.ration-step-block {
  display: grid;
  gap: 10px;
}

.ration-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ration-fields-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.config-readonly {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 8px 13px;
  background: #f1f4ee;
}

.config-readonly span {
  color: var(--muted);
  font-size: 8px;
}

.config-readonly strong {
  color: var(--navy);
  font-size: 11px;
}

.ration-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ration-choice {
  position: relative;
  min-width: 104px;
  flex: 0 1 auto;
  cursor: pointer;
}

.ration-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ration-choice > span,
.ration-kcal-button {
  display: grid;
  min-height: 58px;
  align-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px 17px;
  color: var(--ink);
  background: #fff;
  text-align: center;
}

.ration-choice input:checked + span,
.ration-kcal-button.active {
  border-color: var(--lime);
  color: var(--navy);
  background: var(--lime);
  box-shadow: inset 0 0 0 1px rgba(0, 128, 76, 0.08);
}

.ration-choice strong,
.ration-kcal-button strong {
  font-size: 13px;
}

.ration-choice small,
.ration-kcal-button small {
  color: var(--muted);
  font-size: 8px;
}

.ration-choice input:checked + span small,
.ration-kcal-button.active small {
  color: #4c6519;
}

.ration-choice-row.kcal {
  display: grid;
  grid-template-columns: repeat(5, minmax(82px, 1fr));
}

.ration-kcal-button {
  cursor: pointer;
}

.ration-kcal-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.ration-plan-description {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.family-recipient-warning {
  color: var(--warning);
  font-size: 9px;
}

.ration-exclusions-toggle {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(0, 128, 76, 0.17);
  border-radius: 15px;
  padding: 12px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  text-align: left;
}

.ration-exclusions-toggle.active {
  background: rgba(219, 230, 76, 0.14);
}

.ration-exclusions-toggle > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--navy);
  background: var(--lime);
  font-size: 21px;
}

.ration-exclusions-toggle > div {
  display: grid;
  gap: 2px;
}

.ration-exclusions-toggle strong {
  color: var(--green);
  font-size: 11px;
}

.ration-exclusions-toggle small {
  color: var(--muted);
  font-size: 9px;
}

.ration-exclusions-toggle b {
  font-size: 9px;
}

.ration-inline-exclusions {
  display: grid;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}

.inline-exclusions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inline-exclusions-head > div {
  display: grid;
  gap: 5px;
}

.inline-exclusions-head strong {
  color: var(--navy);
  font-size: 13px;
}

.inline-exclusion-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 9px;
}

.inline-exclusion-form .primary-button {
  min-height: 46px;
}

.inline-exclusion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inline-exclusion-list > span {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 99px;
  padding: 6px 7px 6px 9px;
  color: var(--ink);
  background: #eef3eb;
  font-size: 9px;
}

.inline-exclusion-list b {
  color: var(--green);
}

.inline-exclusion-list button {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--danger);
  background: #fff;
  cursor: pointer;
}

.ration-live-menu,
.individual-explainer {
  min-width: 0;
  padding: clamp(25px, 3vw, 42px);
  color: #fff;
  background:
    radial-gradient(circle at 92% 5%, rgba(219, 230, 76, 0.13), transparent 28%),
    linear-gradient(145deg, #001b37, #062c53);
}

.ration-live-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}

.ration-live-head > div {
  display: grid;
  gap: 4px;
}

.ration-live-head span,
.individual-explainer .eyebrow {
  color: var(--lime);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ration-live-head h3,
.individual-explainer h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 2.5vw, 31px);
  letter-spacing: -0.035em;
}

.ration-live-head small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 9px;
}

.ration-live-badge {
  flex: 0 0 auto;
  border: 1px solid var(--lime);
  border-radius: 99px;
  padding: 8px 10px;
  color: var(--lime) !important;
  font-size: 8px !important;
}

.ration-preview-days {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 14px;
  padding-bottom: 2px;
}

.ration-preview-days button {
  display: grid;
  min-width: 48px;
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  padding: 7px 9px;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.ration-preview-days button.active {
  border-color: var(--lime);
  color: var(--navy);
  background: var(--lime);
}

.ration-preview-days strong {
  font-size: 9px;
  text-transform: capitalize;
}

.ration-preview-days small {
  font-size: 8px;
}

.ration-live-meals {
  display: grid;
  gap: 10px;
}

.ration-live-meals.day-changing {
  animation: ration-day-change 240ms ease-out both;
}

@keyframes ration-day-change {
  from {
    opacity: 0.35;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ration-live-meal {
  display: grid;
  min-height: 142px;
  grid-template-columns: minmax(145px, 45%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .ration-live-meals.day-changing {
    animation: none;
  }
}

.ration-live-meal > img,
.ration-live-photo-empty {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 142px;
  place-items: center;
  object-fit: cover;
  color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.06);
  font-size: 9px;
}

.ration-live-meal > div:last-child {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px;
}

.ration-live-meal span {
  color: var(--lime);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.ration-live-meal strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
}

.ration-live-meal p,
.ration-live-meal small,
.ration-change-note,
.ration-live-empty small {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 8px;
  line-height: 1.45;
}

.ration-live-empty {
  display: grid;
  min-height: 430px;
  place-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.17);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
}

.ration-live-empty > span {
  color: var(--lime);
  font-size: 38px;
}

.ration-change-note {
  margin-top: 13px;
  border-left: 2px solid var(--lime);
  padding-left: 10px;
}

.ration-sticky-summary {
  position: sticky;
  z-index: 10;
  bottom: 0;
  display: flex;
  min-height: 98px;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 15px clamp(20px, 3vw, 38px);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -16px 42px rgba(0, 31, 63, 0.1);
  backdrop-filter: blur(16px);
}

.ration-sticky-summary > div {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 3px 18px;
}

.ration-sticky-summary span {
  grid-column: 1 / -1;
  color: var(--navy);
  font-size: 12px;
}

.ration-sticky-summary strong {
  color: var(--navy);
  font-size: 25px;
}

.ration-sticky-summary small {
  color: var(--muted);
  font-size: 9px;
}

.ration-sticky-summary .lime-button {
  min-width: 230px;
  min-height: 51px;
  font-size: 12px;
}

.individual-configurator {
  min-height: 720px;
}

.individual-explainer {
  display: grid;
  align-content: center;
  gap: 13px;
}

.individual-symbol {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 22px;
  color: var(--navy);
  background: var(--lime);
  font-size: 32px;
  font-weight: 900;
}

.individual-explainer ol {
  display: grid;
  gap: 11px;
  margin: 8px 0;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.45;
}

.individual-last-request {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.06);
}

.individual-last-request span,
.individual-last-request small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
}

.individual-last-request strong {
  color: var(--lime);
  font-size: 14px;
}

@container ration-builder (max-width: 1240px) {
  .ration-full-configurator {
    grid-template-columns: minmax(0, 1fr);
  }

  .ration-live-menu,
  .individual-explainer {
    min-height: 580px;
  }

  .ration-choice-row.kcal {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@container ration-builder (max-width: 660px) {
  .ration-config-title,
  .ration-live-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ration-line-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .ration-line-tabs button {
    min-width: 118px;
  }

  .ration-fields-grid,
  .ration-fields-grid.three,
  .inline-exclusion-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .ration-choice-row.kcal {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .ration-kcal-button {
    min-width: 92px;
  }
}

.subscription-card .balance {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 18px;
}

.subscription-card .balance strong {
  color: var(--green);
  font-size: 34px;
  letter-spacing: -0.05em;
}

.subscription-card .balance span {
  color: var(--muted);
  font-size: 10px;
}

.balance-track {
  height: 7px;
  margin: 13px 0 17px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf1ed;
}

.balance-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--lime));
}

.category-tabs {
  display: flex;
  max-width: 100%;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid var(--line);
  padding: 0 13px;
  background: #fff;
  cursor: pointer;
}

.chip.active {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-visual {
  position: relative;
  display: grid;
  height: 150px;
  place-items: center;
  overflow: hidden;
  border-radius: 15px;
  color: var(--green);
  background:
    radial-gradient(circle at 68% 32%, rgba(219, 230, 76, 0.62), transparent 28%),
    linear-gradient(145deg, #edf5d8, #e4efdf);
  font-size: 52px;
}

.product-visual.breakfast {
  background:
    radial-gradient(circle at 70% 30%, rgba(219, 230, 76, 0.7), transparent 30%),
    #eef2dd;
}

.product-visual.drink {
  color: #1e8793;
  background: linear-gradient(145deg, #dff1ee, #e9f6f4);
}

.product-visual.protein_bar {
  color: #8c5a34;
  background: linear-gradient(145deg, #f1e5d7, #f7efe7);
}

.product-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 17px;
}

.product-price strong {
  color: var(--navy);
  font-size: 17px;
}

.calendar-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(80px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.calendar-day {
  display: grid;
  min-height: 92px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 10px;
  background: #fff;
  text-align: center;
}

.calendar-day strong {
  color: var(--navy);
  font-size: 21px;
}

.calendar-day span {
  color: var(--muted);
  font-size: 9px;
}

.calendar-day i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d6ddd6;
}

.calendar-day.has-delivery {
  border-color: rgba(0, 128, 76, 0.25);
  background: rgba(219, 230, 76, 0.13);
}

.calendar-day.has-delivery i {
  background: var(--green);
}

.deliveries-list,
.reminders-list,
.cart-list,
.profile-list {
  display: grid;
  gap: 11px;
}

.delivery-card,
.reminder-card,
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
}

.cart-item {
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  padding: 18px;
}

.cart-main h3,
.cart-main p {
  margin-block: 5px;
}

.cart-main .quantity {
  width: max-content;
  max-width: 100%;
  margin-top: 12px;
}

.cart-main,
.cart-actions {
  align-self: center;
}

.cart-actions {
  flex: 0 0 auto;
}

.delivery-date {
  display: grid;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  place-items: center;
  border-radius: 16px;
  color: var(--navy);
  background: rgba(219, 230, 76, 0.28);
  text-align: center;
}

.delivery-date strong {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.delivery-date span {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.delivery-main,
.reminder-main,
.cart-main {
  min-width: 0;
  flex: 1;
}

.reminder-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.reminder-time {
  min-width: 68px;
  color: var(--navy);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.reminder-card.muted {
  opacity: 0.62;
}

.delivery-main strong,
.reminder-main strong,
.cart-main strong {
  display: block;
  overflow: hidden;
  color: var(--navy);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-main small,
.reminder-main small,
.cart-main small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.delivery-actions,
.reminder-actions,
.cart-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
}

.quantity {
  display: grid;
  grid-template-columns: 30px 34px 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.quantity button {
  height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.quantity strong {
  text-align: center;
  font-size: 11px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 16px;
}

.cart-total {
  position: sticky;
  top: 106px;
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 11px 0;
  color: var(--muted);
  font-size: 11px;
}

.total-row strong {
  color: var(--navy);
}

.total-row.grand {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.total-row.grand strong {
  font-size: 22px;
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  color: #566a79;
  font-size: 10px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d9e1db;
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: #fff;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

input,
select {
  height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 92px;
  resize: vertical;
  padding: 11px 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0, 128, 76, 0.58);
  box-shadow: 0 0 0 3px rgba(0, 128, 76, 0.08);
}

.form-grid {
  display: grid;
  gap: 13px;
}

.inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-message {
  min-height: 17px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.form-message.error {
  color: var(--danger);
}

.form-message.success {
  color: var(--green);
}

.switch {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 25px;
}

.switch input {
  width: 0;
  height: 0;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: #d6ded7;
  cursor: pointer;
  transition: background 160ms ease;
}

.switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  content: "";
  background: #fff;
  box-shadow: 0 2px 7px rgba(0, 31, 63, 0.16);
  transition: transform 160ms ease;
}

.switch input:checked + span {
  background: var(--green);
}

.switch input:checked + span::after {
  transform: translateX(19px);
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.weekday input {
  position: absolute;
  opacity: 0;
}

.weekday span {
  display: grid;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.weekday input:checked + span {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.profile-card.accent {
  color: #fff;
  background: var(--green);
}

.profile-card.accent h3 {
  color: #fff;
}

.profile-card.accent p {
  color: rgba(255, 255, 255, 0.65);
}

.profile-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: var(--green);
  background: rgba(219, 230, 76, 0.28);
  font-size: 19px;
}

.profile-icon.small,
.product-visual.small {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  font-size: 15px;
}

.profile-list-item > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--green);
  background: rgba(219, 230, 76, 0.23);
}

.profile-list-item > div {
  min-width: 0;
  flex: 1;
}

.accent .profile-icon {
  color: var(--navy);
  background: var(--lime);
}

.profile-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  border-radius: 13px;
  padding: 12px 13px;
  background: #f5f7f3;
}

.profile-list-item strong {
  display: block;
  color: var(--navy);
  font-size: 12px;
}

.profile-list-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.result-card {
  border-radius: 16px;
  padding: 18px;
  color: #fff;
  background: var(--green);
}

.result-card strong {
  display: block;
  font-size: 31px;
  letter-spacing: -0.04em;
}

.result-card span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 10px;
}

.empty-state {
  display: grid;
  min-height: 260px;
  place-items: center;
  border: 1px dashed #d8dfd6;
  border-radius: var(--radius-lg);
  padding: 35px 20px;
  background: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.empty-state-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 18px;
  color: var(--green);
  background: rgba(219, 230, 76, 0.3);
  font-size: 25px;
}

.empty-state h3 {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
}

.empty-state p {
  max-width: 430px;
  margin: 7px auto 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #e8ede7;
}

.skeleton::after {
  position: absolute;
  inset: 0;
  width: 42%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: shimmer 1.2s infinite;
}

.skeleton.hero {
  height: 245px;
}

.skeleton.card {
  height: 220px;
}

@keyframes shimmer {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(260%);
  }
}

.error-panel {
  border: 1px solid rgba(198, 70, 70, 0.18);
  border-radius: var(--radius-md);
  padding: 19px;
  color: #a13535;
  background: #fff0f0;
}

.error-panel strong {
  display: block;
  margin-bottom: 5px;
}

.mobile-navigation {
  display: none;
}

.login-screen {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(430px, 0.85fr) minmax(520px, 1.15fr);
  min-height: 100vh;
  overflow-y: auto;
  background: var(--cream);
}

.login-panel {
  display: flex;
  width: min(570px, 100%);
  min-height: 100vh;
  flex-direction: column;
  justify-content: center;
  padding: 46px clamp(30px, 6vw, 82px);
}

.login-brand {
  margin-bottom: 72px;
  color: var(--navy);
}

.login-brand small {
  color: var(--muted);
}

.eyebrow {
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-copy h1 {
  margin: 12px 0 14px;
  color: var(--navy);
  font-size: clamp(37px, 5vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.login-copy p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

#loginForm {
  display: grid;
  gap: 13px;
  margin-top: 31px;
}

.login-code {
  display: grid;
  gap: 13px;
}

.login-note {
  margin: 19px 0 0;
  color: #7d897f;
  font-size: 9px;
}

.login-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 15%, rgba(219, 230, 76, 0.36), transparent 25%),
    linear-gradient(145deg, #007149, #004e45 52%, var(--navy));
}

.visual-copy {
  position: absolute;
  z-index: 2;
  top: 8%;
  left: 9%;
  color: #fff;
}

.visual-copy span {
  display: block;
  margin-bottom: 8px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.visual-copy strong {
  font-size: clamp(25px, 4vw, 45px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.food-orbit {
  position: absolute;
  top: 22%;
  left: 50%;
  width: min(520px, 72%);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transform: translateX(-50%);
}

.plate {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 22px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: #d8e2ca;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%) rotate(-12deg);
}

.plate-green,
.plate-protein,
.plate-grain {
  position: absolute;
  border-radius: 50%;
}

.plate-green {
  top: 8%;
  left: 5%;
  width: 52%;
  height: 50%;
  background:
    radial-gradient(circle at 25% 25%, #a4d471 0 9%, transparent 10%),
    radial-gradient(circle at 70% 55%, #4f9b54 0 12%, transparent 13%),
    #77b868;
}

.plate-protein {
  right: 4%;
  bottom: 8%;
  width: 49%;
  height: 46%;
  background:
    repeating-linear-gradient(25deg, transparent 0 15px, rgba(116, 64, 26, 0.18) 16px 19px),
    #d69555;
}

.plate-grain {
  bottom: -6%;
  left: -5%;
  width: 56%;
  height: 54%;
  background:
    radial-gradient(circle, #f6dc8a 0 23%, transparent 25%) 0 0 / 18px 18px,
    #e7c969;
}

.food-shape {
  position: absolute;
  display: block;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.leaf-one {
  top: 2%;
  right: 8%;
  width: 60px;
  height: 92px;
  border-radius: 80% 0 80% 0;
  background: var(--lime);
  transform: rotate(30deg);
}

.leaf-two {
  bottom: 6%;
  left: 0;
  width: 74px;
  height: 104px;
  border-radius: 80% 0 80% 0;
  background: var(--leaf);
  transform: rotate(-25deg);
}

.tomato {
  top: 26%;
  left: -5%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e76748;
}

.grain {
  right: -4%;
  bottom: 26%;
  width: 46px;
  height: 62px;
  border-radius: 50%;
  background: #e6c76c;
  transform: rotate(30deg);
}

.visual-stats {
  position: absolute;
  right: 8%;
  bottom: 7%;
  left: 8%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
}

.visual-stats span {
  padding: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  text-align: center;
}

.visual-stats span:last-child {
  border-right: 0;
}

.visual-stats b {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 18px;
}

.sheet-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgba(0, 25, 45, 0.34);
  backdrop-filter: blur(3px);
  animation: fade-in 160ms ease;
}

.sheet {
  position: fixed;
  z-index: 81;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(580px, 95vw);
  overflow: hidden;
  border-left: 1px solid rgba(0, 31, 63, 0.08);
  background: #fbfcf8;
  box-shadow: -25px 0 80px rgba(0, 31, 63, 0.16);
  animation: sheet-in 210ms ease both;
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateX(22px);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.sheet-header {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 23px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.sheet-header p {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sheet-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
}

.sheet-body {
  height: calc(100% - 82px);
  overflow-y: auto;
  padding: 21px 23px 48px;
}

.sheet-section {
  margin-bottom: 17px;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 17px;
  background: #fff;
}

.sheet-section h3 {
  margin: 0 0 13px;
  color: var(--navy);
  font-size: 14px;
}

.sheet.configurator-sheet {
  width: min(1080px, 97vw);
  background: #f4f5ec;
}

.configurator-sheet .sheet-body {
  padding: 0;
}

.configurator-loading {
  padding: 24px;
}

.ration-configurator {
  display: grid;
  min-height: calc(100vh - 82px);
  grid-template-columns: minmax(430px, 0.92fr) minmax(390px, 1.08fr);
  grid-template-rows: 1fr auto;
}

.configurator-controls {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px 25px 118px;
  background: #f9faf5;
}

.configurator-step {
  display: grid;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}

.configurator-step-label {
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.program-choice {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(0, 128, 76, 0.25);
  border-radius: 16px;
  padding: 14px 15px;
  background: rgba(219, 230, 76, 0.13);
}

.program-choice strong {
  color: var(--navy);
  font-size: 16px;
}

.program-choice small,
.config-field span,
.option-tile small,
.kcal-choice small,
.configurator-exclusions small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.config-field {
  display: grid;
  gap: 6px;
}

.config-field > span {
  font-weight: 800;
}

.config-field select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
}

.delivery-choice-grid,
.schedule-choice-grid,
.kcal-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.option-tile {
  position: relative;
  cursor: pointer;
}

.option-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-tile > span,
.kcal-choice {
  display: grid;
  min-height: 65px;
  align-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.option-tile input:checked + span,
.kcal-choice.active {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
  background: rgba(219, 230, 76, 0.14);
}

.option-tile strong,
.kcal-choice strong {
  color: var(--navy);
  font-size: 13px;
}

.option-tile.compact > span {
  min-height: 58px;
}

.kcal-choice {
  cursor: pointer;
}

.kcal-choice.static {
  cursor: default;
}

.configurator-exclusions {
  display: grid;
  grid-template-columns: 35px 1fr auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.configurator-exclusions > span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 11px;
  color: var(--navy);
  background: var(--lime);
  font-size: 20px;
}

.configurator-exclusions div {
  display: grid;
  gap: 2px;
}

.configurator-exclusions strong {
  color: var(--navy);
  font-size: 11px;
}

.configurator-exclusions b {
  color: var(--green);
}

.configurator-menu-preview {
  position: relative;
  overflow: hidden;
  padding: 27px 27px 120px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(219, 230, 76, 0.15), transparent 33%),
    #031c36;
}

.live-preview-head {
  display: grid;
  gap: 5px;
  margin-bottom: 20px;
}

.live-preview-head > span {
  color: var(--lime);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-preview-head strong {
  font-size: 25px;
}

.live-preview-head small,
.live-meal-card small,
.live-preview-empty small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  line-height: 1.45;
}

.live-preview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.live-meal-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.06);
}

.live-meal-card:first-child {
  grid-column: 1 / -1;
}

.live-meal-card img,
.live-meal-placeholder {
  display: grid;
  width: 100%;
  height: 170px;
  place-items: center;
  object-fit: cover;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
  font-size: 10px;
}

.live-meal-card:not(:first-child) img,
.live-meal-card:not(:first-child) .live-meal-placeholder {
  height: 110px;
}

.live-meal-card > div:last-child {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.live-meal-card span {
  color: var(--lime);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-meal-card strong {
  font-size: 11px;
  line-height: 1.35;
}

.live-preview-empty {
  display: grid;
  min-height: 310px;
  grid-column: 1 / -1;
  place-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.17);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
}

.live-preview-empty > span {
  color: var(--lime);
  font-size: 32px;
}

.live-preview-empty small {
  max-width: 290px;
}

.live-preview-note {
  width: max-content;
  margin-top: 14px;
  border-radius: 99px;
  padding: 7px 10px;
  color: var(--navy);
  background: var(--lime);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.configurator-summary {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: 93px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 15px 25px;
  color: #fff;
  background: rgba(1, 24, 46, 0.97);
  box-shadow: 0 -15px 35px rgba(0, 0, 0, 0.14);
}

.configurator-summary > div {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 3px 17px;
}

.configurator-summary span {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
}

.configurator-summary strong {
  font-size: 24px;
}

.configurator-summary small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
}

.configurator-summary .lime-button {
  min-width: 190px;
  min-height: 48px;
}

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

.detail-item.wide {
  grid-column: 1 / -1;
}

.detail-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.detail-item strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.toast-region {
  position: fixed;
  z-index: 150;
  right: 19px;
  bottom: 19px;
  display: grid;
  width: min(360px, calc(100vw - 38px));
  gap: 7px;
}

.toast {
  border-radius: 13px;
  padding: 13px 15px;
  color: #fff;
  background: var(--navy);
  box-shadow: var(--shadow);
  font-size: 11px;
  line-height: 1.45;
  animation: toast-in 180ms ease both;
}

.toast.success {
  background: var(--green);
}

.toast.error {
  background: #a63636;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.calendar-month {
  grid-template-columns: repeat(7, minmax(92px, 1fr));
  overflow: visible;
}

.calendar-day small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.calendar-day.has-food {
  border-color: rgba(0, 128, 76, 0.28);
  background: #edf6ed;
}

.calendar-day.is-frozen {
  border-color: rgba(72, 126, 174, 0.24);
  color: #386d96;
  background: #eaf3fa;
}

.calendar-legend,
.week-switcher {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 17px 0;
}

.calendar-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.calendar-legend i {
  width: 11px;
  height: 11px;
  border-radius: 4px;
}

.legend-food { background: #d7ead7; }
.legend-frozen { background: #d4e8f6; }
.legend-delivery { background: var(--green); }

.calendar-subscriptions,
.freeze-history,
.weekly-menu-grid {
  display: grid;
  gap: 13px;
}

.calendar-subscriptions {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.balance-card,
.freeze-card,
.week-day-card,
.checkout-choice {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
  padding: 20px;
}

.balance-card h3,
.balance-card p {
  margin: 5px 0 0;
}

.freeze-card {
  display: grid;
  grid-template-columns: 45px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 15px 18px;
}

.freeze-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.freeze-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #386d96;
  background: #eaf3fa;
}

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

.week-day-card {
  padding: 20px;
}

.week-day-card.is-today {
  border-color: var(--green);
  box-shadow: 0 10px 28px rgba(0, 128, 76, 0.09);
}

.week-day-card.is-personal-day {
  border-color: rgba(0, 128, 76, 0.28);
}

.week-total {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
}

.week-day-card header,
.week-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.week-day-card h3 {
  margin: 4px 0 0;
}

.week-meals {
  display: grid;
  gap: 0;
  margin-top: 15px;
}

.week-meal-row {
  display: grid;
  gap: 3px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.week-meal-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 7px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--soft);
}

.week-meal-photo.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
}

.product-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  object-fit: cover;
  background: #eef2f4;
}

.week-change-button {
  justify-self: start;
  margin-top: 7px;
}

.chip.off-day {
  color: var(--muted);
  background: var(--soft);
  cursor: default;
}

.week-meal-row span,
.week-meal-row small,
.muted-copy {
  color: var(--muted);
  font-size: 10px;
}

.week-replacement-field {
  display: grid;
  gap: 5px;
  margin-top: 7px;
}

.week-replacement-field span {
  color: var(--green);
  font-weight: 800;
}

.weekly-menu-hero,
.weekly-menu-board {
  min-width: 0;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  background: radial-gradient(circle at 92% 4%, rgba(34, 92, 130, 0.72), transparent 38%), #001f3d;
  box-shadow: 0 24px 58px rgba(0, 31, 61, 0.16);
}

.weekly-menu-hero { padding: 24px 28px; }
.weekly-menu-hero h3,
.weekly-menu-board h2,
.weekly-menu-board h3,
.weekly-menu-board strong { color: #fff; }
.weekly-menu-hero .eyebrow,
.weekly-menu-board .eyebrow { color: var(--lime); }
.weekly-menu-hero .chip,
.weekly-rotation-chip { border: 1px solid var(--lime); color: var(--lime); background: transparent; }
.weekly-menu-hero .week-switcher strong { color: #fff; }
.weekly-menu-hero .secondary-button { border-color: rgba(255,255,255,.28); color: #fff; background: rgba(255,255,255,.08); }
.weekly-menu-board { container-type: inline-size; padding: 28px; }
.weekly-board-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.weekly-board-heading h2 { margin: 5px 0 0; font-size: clamp(26px, 4vw, 42px); }
.weekly-rotation-chip { flex: none; padding: 10px 15px; border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.weekly-day-tabs { display: grid; grid-template-columns: repeat(7, minmax(58px, 1fr)); gap: 9px; margin-bottom: 22px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.weekly-day-tab { display: grid; min-width: 58px; min-height: 62px; place-items: center; gap: 2px; padding: 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; color: rgba(255,255,255,.72); background: rgba(255,255,255,.05); }
.weekly-day-tab strong { color: inherit; text-transform: capitalize; }
.weekly-day-tab.active { border-color: var(--lime); color: var(--navy); background: var(--lime); }
.weekly-day-panel { padding: 0; border: 0; color: #fff; background: transparent; }
.weekly-day-panel > header { margin-bottom: 8px; }
.weekly-day-panel .chip.off-day,
.weekly-day-panel .chip { border-color: rgba(255,255,255,.2); color: #d8e3ec; background: rgba(255,255,255,.07); }
.weekly-day-panel .week-total,
.weekly-day-panel .week-meal-copy span,
.weekly-day-panel .week-meal-copy small,
.weekly-day-panel .muted-copy { color: #aebfce; }
.weekly-menu-stage,
.weekly-day-panel,
.weekly-day-panel .week-meals { width: 100%; max-width: 100%; min-width: 0; }
.weekly-day-panel .week-meals { gap: 14px; }
.weekly-day-panel .week-meal-row { display: grid; grid-template-columns: minmax(220px, 42%) minmax(0, 1fr); min-width: 0; max-width: 100%; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 22px; background: rgba(28,70,108,.56); }
.weekly-day-panel .week-meal-media { position: relative; min-width: 0; min-height: 210px; overflow: hidden; background: linear-gradient(145deg, rgba(34,92,130,.85), rgba(12,52,89,.72)); }
.weekly-day-panel .week-meal-photo,
.weekly-day-panel .week-meal-photo-fallback { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; border-radius: 0; }
.weekly-day-panel .week-meal-photo { z-index: 1; aspect-ratio: auto; object-fit: cover; background: transparent; }
.weekly-day-panel .week-meal-photo-fallback { display: grid; place-items: center; padding: 20px; color: #aebfce; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.weekly-day-panel .week-meal-copy { display: grid; align-content: center; gap: 7px; min-width: 0; max-width: 100%; padding: 22px 24px; overflow: hidden; }
.weekly-day-panel .week-meal-copy > * { min-width: 0; max-width: 100%; }
.weekly-day-panel .week-meal-type { color: var(--lime); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.weekly-day-panel .week-meal-title { display: block; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; white-space: normal; font-size: clamp(18px, 2.4vw, 25px); line-height: 1.18; }
.weekly-day-panel .week-meal-nutrition { overflow-wrap: anywhere; white-space: normal; }
.weekly-day-panel .week-change-button { width: fit-content; max-width: 100%; margin-bottom: 0; border-color: var(--lime); color: var(--lime); background: transparent; }
.weekly-day-panel .week-replacement-field { margin-bottom: 0; }
.weekly-day-panel .week-replacement-field span { color: var(--lime); }

@media (max-width: 760px) {
  .weekly-menu-hero,
  .weekly-menu-board { padding: 20px; border-radius: 20px; }
  .weekly-board-heading { flex-direction: column; }
  .weekly-day-tabs { grid-template-columns: repeat(7, 62px); }
  .weekly-day-panel .week-meal-row { grid-template-columns: 1fr; }
  .weekly-day-panel .week-meal-media { min-height: 0; aspect-ratio: 16 / 9; }
  .weekly-day-panel .week-meal-copy { padding: 18px; }
}

@container (max-width: 760px) {
  .weekly-day-panel .week-meal-row { grid-template-columns: 1fr; }
  .weekly-day-panel .week-meal-media { min-height: 0; aspect-ratio: 16 / 9; }
  .weekly-day-panel .week-meal-copy { padding: 18px; }
}

.week-replacement-field select {
  width: 100%;
  min-width: 0;
  height: 38px;
  font-size: 10px;
}

.week-save-bar {
  position: sticky;
  z-index: 15;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(720px, calc(100% - 24px));
  margin: 20px auto 0;
  border: 1px solid rgba(219, 230, 76, 0.4);
  border-radius: 18px;
  padding: 13px 15px 13px 19px;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 18px 46px rgba(0, 31, 63, 0.24);
}

.week-save-bar strong {
  color: var(--lime);
  font-size: 20px;
}

.week-save-bar span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
}

.checkout-choice {
  display: grid;
  gap: 4px;
  margin: 13px 0;
  padding: 14px;
}

.checkout-choice span,
.checkout-choice small {
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 1180px) {
  .ration-full-configurator {
    grid-template-columns: 1fr;
  }

  .ration-live-menu,
  .individual-explainer {
    min-height: 580px;
  }

  .ration-choice-row.kcal {
    grid-template-columns: repeat(4, minmax(82px, 1fr));
  }

  .plans-grid,
  .products-grid,
  .subscriptions-grid,
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 920px) {
  .ration-sticky-summary {
    bottom: 65px;
  }

  .sheet.configurator-sheet {
    width: min(720px, 100vw);
  }

  .ration-configurator {
    display: block;
  }

  .configurator-controls {
    padding: 21px 20px;
  }

  .configurator-menu-preview {
    min-height: 620px;
    padding: 25px 20px 125px;
  }

  .configurator-summary {
    position: fixed;
    left: auto;
    width: min(720px, 100vw);
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: max(15px, env(safe-area-inset-bottom));
    padding-left: max(20px, env(safe-area-inset-left));
  }

  .client-shell {
    display: block;
  }

  .desktop-sidebar {
    display: none;
  }

  .client-main {
    width: 100%;
  }

  .mobile-navigation {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: stretch;
    gap: 2px;
    overflow-x: auto;
    padding: 8px max(7px, env(safe-area-inset-right))
      calc(8px + env(safe-area-inset-bottom))
      max(7px, env(safe-area-inset-left));
    border-top: 1px solid rgba(0, 31, 63, 0.08);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 -12px 35px rgba(0, 31, 63, 0.08);
    backdrop-filter: blur(18px);
    scrollbar-width: none;
  }

  .mobile-navigation::-webkit-scrollbar {
    display: none;
  }

  .mobile-nav {
    position: relative;
    display: grid;
    min-width: 68px;
    min-height: 49px;
    flex: 1 0 68px;
    place-items: center;
    border: 0;
    border-radius: 12px;
    color: #7a8790;
    background: transparent;
    cursor: pointer;
  }

  .mobile-nav span {
    font-size: 18px;
    line-height: 1;
  }

  .mobile-nav b {
    margin-top: 4px;
    font-size: 8px;
  }

  .mobile-nav.active {
    color: var(--green);
    background: rgba(219, 230, 76, 0.2);
  }

  .mobile-nav .nav-count {
    top: 2px;
    right: 8px;
  }

  .app-content {
    padding-bottom: 105px;
  }

  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-panel {
    width: min(570px, 100%);
    margin: auto;
  }

  .login-visual {
    display: none;
  }
}

@media (max-width: 720px) {
  .ration-main-card {
    margin-right: -15px;
    margin-left: -15px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .ration-config-left,
  .ration-live-menu,
  .individual-explainer {
    padding: 22px 15px;
  }

  .ration-config-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .ration-line-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .ration-line-tabs button {
    min-width: 118px;
  }

  .ration-fields-grid,
  .ration-fields-grid.three,
  .inline-exclusion-form {
    grid-template-columns: 1fr;
  }

  .ration-choice-row.kcal {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .ration-kcal-button {
    min-width: 92px;
  }

  .ration-live-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ration-live-meal {
    grid-template-columns: minmax(125px, 42%) minmax(0, 1fr);
  }

  .ration-sticky-summary {
    min-height: 88px;
    padding: 11px 15px;
  }

  .ration-sticky-summary .lime-button {
    min-width: 180px;
  }

  .app-header {
    min-height: 72px;
    padding: 10px 15px;
  }

  .mobile-brand {
    display: flex;
    color: var(--navy);
  }

  .mobile-brand strong {
    font-size: 13px;
    letter-spacing: 0.11em;
  }

  .header-copy {
    display: none;
  }

  .recipient-switch select {
    max-width: 125px;
    height: 36px;
    padding-left: 9px;
    font-size: 10px;
  }

  .header-actions {
    margin-left: auto;
    gap: 7px;
  }

  .round-button,
  .avatar-button {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .app-content {
    padding: 23px 15px 105px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-card {
    min-height: 285px;
    padding: 25px 22px;
  }

  .hero-top {
    display: block;
  }

  .hero-kcal {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 92px;
    height: 92px;
    flex-basis: 92px;
  }

  .hero-card h2 {
    max-width: 310px;
    font-size: 34px;
  }

  .hero-card p {
    max-width: 280px;
  }

  .dashboard-grid,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-total {
    position: static;
  }

  .plans-grid,
  .products-grid,
  .subscriptions-grid,
  .weekly-menu-grid,
  .profile-grid,
  .skeleton-grid {
    grid-template-columns: 1fr;
  }

  .meals-grid {
    grid-template-columns: 1fr;
  }

  .water-layout {
    grid-template-columns: 105px 1fr;
  }

  .water-ring {
    width: 105px;
    height: 105px;
  }

  .water-ring::before {
    width: 80px;
    height: 80px;
  }

  .delivery-card,
  .reminder-card,
  .cart-item {
    align-items: flex-start;
  }

  .delivery-actions,
  .reminder-actions,
  .cart-actions {
    max-width: 130px;
  }

  .login-panel {
    justify-content: flex-start;
    padding: 29px 22px 45px;
  }

  .login-brand {
    margin-bottom: 58px;
  }

  .inline-fields,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-item.wide {
    grid-column: auto;
  }

  .calendar-month {
    grid-template-columns: repeat(7, 76px);
    overflow-x: auto;
  }

  .balance-card,
  .week-switcher {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .ration-subscription-mini {
    min-width: 86vw;
  }

  .ration-choice {
    min-width: 88px;
  }

  .ration-choice > span,
  .ration-kcal-button {
    min-height: 54px;
    padding: 8px 11px;
  }

  .ration-live-menu,
  .individual-explainer {
    min-height: 520px;
  }

  .ration-live-meal {
    grid-template-columns: 1fr;
  }

  .ration-live-meal > img,
  .ration-live-photo-empty {
    height: 180px;
  }

  .ration-sticky-summary {
    gap: 8px;
  }

  .ration-sticky-summary > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .ration-sticky-summary span {
    font-size: 9px;
  }

  .ration-sticky-summary strong {
    font-size: 17px;
  }

  .ration-sticky-summary small {
    display: none;
  }

  .ration-sticky-summary .lime-button {
    min-width: 142px;
    min-height: 45px;
    padding: 0 12px;
    font-size: 9px;
  }

  .configurator-sheet .sheet-header {
    min-height: 72px;
    padding: 13px 16px;
  }

  .configurator-sheet .sheet-body {
    height: calc(100% - 72px);
  }

  .configurator-controls {
    padding: 17px 14px;
  }

  .delivery-choice-grid,
  .schedule-choice-grid,
  .kcal-choice-grid {
    gap: 6px;
  }

  .option-tile > span,
  .kcal-choice {
    min-height: 60px;
    padding: 8px;
  }

  .option-tile strong,
  .kcal-choice strong {
    font-size: 11px;
  }

  .configurator-menu-preview {
    min-height: 550px;
    padding: 22px 14px 124px;
  }

  .live-preview-list {
    gap: 8px;
  }

  .live-meal-card img,
  .live-meal-placeholder {
    height: 145px;
  }

  .live-meal-card:not(:first-child) img,
  .live-meal-card:not(:first-child) .live-meal-placeholder {
    height: 90px;
  }

  .configurator-summary {
    min-height: 82px;
    gap: 10px;
    padding-top: 10px;
  }

  .configurator-summary > div {
    gap: 2px 8px;
  }

  .configurator-summary strong {
    font-size: 18px;
  }

  .configurator-summary .lime-button {
    min-width: 142px;
    min-height: 44px;
    padding: 0 12px;
    font-size: 10px;
  }

  .cart-shortcut {
    display: none;
  }

  .delivery-card,
  .reminder-card,
  .cart-item {
    flex-wrap: wrap;
  }

  .delivery-actions,
  .reminder-actions,
  .cart-actions {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
  }

  .cart-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 16px;
  }

  .cart-actions {
    grid-column: 2;
  }
}

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