:root {
  --green: #53b96c;
  --green-deep: #43ab60;
  --green-soft: #eefaf0;
  --mint: #ecfaee;
  --modal: #effff2;
  --yellow: #f4d878;
  --ink: #252425;
  --muted: #6d7275;
  --line: #d5d5d7;
  --nav: #5bb16f;
  --shell: 430px;
  --nav-h: 52px;
}

* { box-sizing: border-box; }
html, body, #root {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #eef6ef;
}
body {
  color: var(--ink);
  font-family: "Playpen Sans", cursive;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
}
button:focus-visible { outline: 3px solid rgba(83,185,108,.32); outline-offset: 2px; }
img { -webkit-user-drag: none; display: block; max-width: 100%; }

.mobile-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--shell);
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 38px rgba(35, 79, 46, .08);
}

.page-scroll {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  scrollbar-width: none;
}
.page-scroll::-webkit-scrollbar { width: 0; height: 0; display: none; }
.page-scroll.is-locked { overflow: hidden; }
.page {
  position: relative;
  min-height: 100%;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 20px);
  background: #fff;
}
.page-no-nav {
  min-height: 100%;
  padding-bottom: 10px;
  background: #fff;
}
.screen-enter {
  animation: reveal .4s cubic-bezier(.22, 1, .36, 1) both;
}

.tap { transition: transform .16s ease; }
.tap:active { transform: scale(.97); }

.scrollbar-none { scrollbar-width: none; }
.scrollbar-none::-webkit-scrollbar { display: none; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes headerIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}
@keyframes unfold {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@keyframes weekFromRight {
  from { opacity: .2; transform: translateX(52px); }
  to { opacity: 1; transform: none; }
}
@keyframes weekFromLeft {
  from { opacity: .2; transform: translateX(-52px); }
  to { opacity: 1; transform: none; }
}
@keyframes monthSwipeRight {
  from { opacity: 0; transform: translateX(36px); }
  to { opacity: 1; transform: none; }
}
@keyframes monthSwipeLeft {
  from { opacity: 0; transform: translateX(-36px); }
  to { opacity: 1; transform: none; }
}
@keyframes datePop { from { transform: scale(.72); } to { transform: scale(1); } }
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.07); }
  28% { transform: scale(1); }
  42% { transform: scale(1.04); }
  56% { transform: scale(1); }
}
@keyframes heartLike {
  0% { transform: scale(.88); }
  45% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
@keyframes sheetRise {
  from { transform: translateY(28px); opacity: .6; }
  to { transform: none; opacity: 1; }
}
@keyframes heroReveal {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes overlayOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes bottomSheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetOut {
  0% { transform: translateY(0); }
  18% { transform: translateY(-14px); }
  100% { transform: translateY(110%); }
}
@keyframes modalSpring {
  0% { transform: translateY(36px) scale(.94); opacity: .35; }
  72% { transform: translateY(-8px) scale(1.015); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes modalOut {
  0% { transform: none; opacity: 1; }
  16% { transform: translateY(-16px) scale(1.03); opacity: 1; }
  100% { transform: translateY(42px) scale(.9); opacity: 0; }
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes storyProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes storyOpen {
  0% { transform: scale(.84); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes panelFromLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: none; }
}
@keyframes panelFromRight {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}

.reveal { animation: reveal .48s cubic-bezier(.22, 1, .36, 1) both; }
.reveal-d1 { animation-delay: .05s; }
.reveal-d2 { animation-delay: .11s; }
.reveal-d3 { animation-delay: .17s; }

/* Header */
.brand-card {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 64px;
  margin: 8px 10px 0;
  padding: 4px 8px 4px 4px;
  border: 2.5px solid var(--green);
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 5px 7px rgba(35, 35, 35, .18);
  animation: headerIn .5s cubic-bezier(.22, 1, .36, 1) both;
  overflow: hidden;
}
.brand-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.brand-copy {
  min-width: 0;
  flex: 1 1 auto;
  text-align: center;
  font-size: clamp(17px, 4.9vw, 22px);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: .02px;
}
.brand-copy .love { color: var(--green); }
.header-heart {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
}
.header-heart svg {
  width: 40px;
  height: 40px;
  transform-origin: 50% 50%;
  animation: heartBeat 2.8s ease-in-out infinite;
}

.glyph {
  display: block;
  flex: 0 0 auto;
  overflow: visible;
  pointer-events: none;
}

/* Butterflies — cropped PNG, box matches wing span */
.bf {
  position: absolute;
  z-index: 1;
  display: block;
  width: var(--bf, 50px);
  height: calc(var(--bf, 50px) * 0.74);
  pointer-events: none;
  user-select: none;
  perspective: 120px;
}
.bf-float {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% 55%;
  animation: bfFloat 5.8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.bf.alt .bf-float { animation-name: bfDrift; animation-duration: 6.7s; }
.bf.slow .bf-float { animation-duration: 7.5s; }
.bf.fast .bf-float { animation-duration: 4.7s; }
.bf-wing {
  position: absolute;
  inset: 0;
}
.bf-wing img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
}
.bf-wing-l {
  clip-path: inset(0 50% 0 0);
  transform-origin: 50% 55%;
  animation: wingL .52s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}
.bf-wing-r {
  clip-path: inset(0 0 0 50%);
  transform-origin: 50% 55%;
  animation: wingR .52s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}
.bf.alt .bf-wing-l, .bf.alt .bf-wing-r { animation-duration: .64s; }

@keyframes bfFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-5deg); }
  35% { transform: translate3d(6px, -8px, 0) rotate(6deg); }
  70% { transform: translate3d(-4px, -3px, 0) rotate(-2deg); }
}
@keyframes bfDrift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(6deg); }
  33% { transform: translate3d(-7px, -7px, 0) rotate(-6deg); }
  70% { transform: translate3d(5px, -11px, 0) rotate(4deg); }
}
@keyframes wingL {
  from { transform: rotateY(0) scaleX(1); }
  to { transform: rotateY(22deg) scaleX(.82); }
}
@keyframes wingR {
  from { transform: rotateY(0) scaleX(1); }
  to { transform: rotateY(-22deg) scaleX(.82); }
}

.bf.bf-slot {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  flex: 0 0 auto;
  z-index: 1;
}

.stories {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 8px;
  height: 100px;
  margin-top: 10px;
  padding: 0 10px 0 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-left: 16px;
  animation: reveal .48s .06s cubic-bezier(.22, 1, .36, 1) both;
}
.stories::before {
  content: "";
  flex: 0 0 12px;
  width: 12px;
}
.story {
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--green);
  border-radius: 7px;
  background: #eee;
  box-shadow: 0 2px 5px rgba(44, 129, 68, .15);
  scroll-snap-align: start;
}
.story img { width: 100%; height: 100%; object-fit: cover; }

.controls {
  position: relative;
  z-index: 2;
  overflow: visible;
  margin-top: 20px;
  padding: 0 10px;
  animation: reveal .48s .12s cubic-bezier(.22, 1, .36, 1) both;
}
.primary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.green-button {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--green);
  overflow: visible;
}
.green-button .glyph { color: #fff; }
.green-button img {
  width: auto;
  max-width: 32px;
  height: 28px;
  object-fit: contain;
}
.control-label {
  margin-top: 4px;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 2px 0;
}
.quick-label {
  min-height: 36px;
  margin-top: 5px;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
}
.fast-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 8px auto 0;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  animation: reveal .28s cubic-bezier(.22, 1, .36, 1) both;
}

.categories {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  animation: reveal .5s .18s cubic-bezier(.22, 1, .36, 1) both;
}
.bf-gutter {
  position: relative;
  height: 28px;
  margin: 4px 16px 0;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.category-block { position: relative; z-index: 2; margin-top: 18px; }
.category-block:first-child { margin-top: 6px; }
.category-title-button {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  padding: 0 11px 0 12px;
  border: 0;
  background: transparent;
  text-align: left;
}
.category-title {
  margin: 0;
  min-width: 0;
  font-size: clamp(24px, 6.6vw, 27px);
  line-height: 35px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chevron {
  width: 22px;
  height: 16px;
  flex: 0 0 auto;
  margin-left: auto;
  transition: transform .32s cubic-bezier(.2, .8, .3, 1);
}
.chevron.is-open { transform: rotate(180deg); }

.food-rail {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 6px;
  padding: 0 10px 6px 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-left: 12px;
  animation: unfold .34s cubic-bezier(.22, 1, .36, 1) both;
}
.food-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 142px;
  flex: 0 0 142px;
  min-width: 142px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  scroll-snap-align: start;
}
.food-thumb-wrap,
.picker-thumb-wrap {
  position: relative;
  display: block;
  width: 142px;
  overflow: hidden;
  border-radius: 12px;
}
.food-grid .food-thumb-wrap,
.picker-thumb-wrap,
.favorite-card .food-thumb-wrap { width: 100%; }
.food-thumb-wrap.is-fav,
.picker-thumb-wrap.is-fav {
  padding: 2px;
  background: linear-gradient(115deg, #ff5a5a, #ff2d55, #ff8a6a, #ff3b3b, #ff6b88, #ff5a5a);
  background-size: 240% 240%;
  animation: favShift 5.6s ease-in-out infinite;
}
@keyframes favShift {
  0% { background-position: 0% 40%; }
  50% { background-position: 100% 60%; }
  100% { background-position: 0% 40%; }
}
.food-thumb-wrap.is-fav .food-thumb,
.picker-thumb-wrap.is-fav img {
  border: 0 !important;
  border-radius: 10px;
  width: 100%;
  display: block;
}
.food-thumb {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border: 2px solid var(--yellow);
  border-radius: 10px;
  background: #f7f5ee;
}
.food-card-title,
.favorite-card .food-card-title {
  padding-top: 6px;
  font-size: 14px;
  line-height: 1.12;
  font-weight: 500;
}

.food-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px 13px;
  margin: 7px 12px 0;
  animation: unfold .36s cubic-bezier(.22, 1, .36, 1) both;
}
.food-grid .food-card {
  width: auto;
  min-width: 0;
  flex: none;
  animation: reveal .34s cubic-bezier(.22, 1, .36, 1) both;
}
.food-grid .food-card:nth-child(1) { animation-delay: .02s; }
.food-grid .food-card:nth-child(2) { animation-delay: .06s; }
.food-grid .food-card:nth-child(3) { animation-delay: .1s; }
.food-grid .food-card:nth-child(4) { animation-delay: .14s; }
.food-grid .food-card:nth-child(5) { animation-delay: .18s; }
.food-grid .food-card:nth-child(6) { animation-delay: .22s; }
.food-grid .food-thumb {
  width: 100%;
  height: auto;
  flex: none;
  aspect-ratio: 1;
  border-radius: 11px;
}
.food-grid .food-card-title { font-size: 14px; font-weight: 500; min-height: 34px; }
.category-empty {
  margin: 8px 12px 0;
  padding: 16px 14px;
  border-radius: 14px;
  background: var(--mint);
  text-align: center;
  font-size: 13px;
  color: #69706b;
}

/* Sticky bottom nav: pinned to the phone shell, never in the scroller */
.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  width: 100%;
  margin: 0;
  background: transparent;
  overflow: visible;
  pointer-events: none;
}
.nav-bar {
  position: relative;
  display: flex;
  height: var(--nav-h);
  width: 100%;
  background: var(--nav);
  overflow: visible;
  pointer-events: auto;
}
.nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 20%;
  height: 100%;
  pointer-events: none;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.nav-indicator-outer {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--nav);
  transform: translateX(-50%);
}
.nav-indicator-inner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
}
.nav-item {
  position: relative;
  z-index: 2;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  pointer-events: auto;
}
.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #fff;
  transform: translateY(0);
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), color .45s ease, width .5s cubic-bezier(.34, 1.56, .64, 1), height .5s cubic-bezier(.34, 1.56, .64, 1);
}
.nav-icon svg {
  display: block;
  width: 28px;
  height: 28px;
  overflow: visible;
  transition: width .5s cubic-bezier(.34, 1.56, .64, 1), height .5s cubic-bezier(.34, 1.56, .64, 1);
}
.nav-icon .nav-stroke path {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2px !important;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.nav-icon .nav-fill path {
  fill: currentColor !important;
  stroke: none !important;
}
.nav-icon.is-active {
  width: 35px;
  height: 35px;
  color: var(--nav);
  transform: translateY(-14px);
}
.nav-icon.is-active svg {
  width: 35px;
  height: 35px;
}
.nav-safe {
  height: env(safe-area-inset-bottom);
  background: var(--nav);
  pointer-events: none;
}

/* Favorites */
.favorites-hero {
  position: relative;
  min-height: 84px;
  padding: 8px 12px 4px;
  overflow: visible;
}
.favorites-heading {
  position: relative;
  z-index: 2;
  padding: 0 12px;
  text-align: center;
  font-size: clamp(24px, 6.6vw, 30px);
  line-height: 1.12;
  font-weight: 700;
}
.favorites-heading .line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.favorites-heading .sub {
  white-space: nowrap;
}
.favorites-heading .green { color: var(--green); }
.favorites-heading .muted { color: #8d8d90; }
.favorites-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 12px;
  padding: 8px 10px 0;
}
.favorite-card {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  animation: reveal .42s cubic-bezier(.22, 1, .36, 1) both;
}
.favorite-card .food-thumb {
  width: 100%;
  height: auto;
  flex: none;
  aspect-ratio: 1;
}
.empty-note {
  margin: 24px 20px 0;
  padding: 24px 20px;
  border-radius: 22px;
  background: var(--mint);
  text-align: center;
  font-size: 15px;
}

/* Planner */
.profile-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 0;
  padding: 10px 12px 2px 10px;
  overflow: visible;
  gap: 4px;
}
.profile-avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  border: 1px solid #e4d695;
  object-fit: cover;
  background: #fff;
}
.profile-copy {
  position: relative;
  margin-left: 6px;
  margin-right: 8px;
  min-width: 0;
  font-size: 22px;
  line-height: 1.05;
  white-space: nowrap;
}
.profile-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
.profile-name-row .bf-name {
  position: relative;
  top: 1px;
  flex: 0 0 auto;
  z-index: 3;
}
.profile-brand {
  margin-top: 1px;
  line-height: 1.05;
}
.profile-copy .tag { color: var(--green); }
.who-switch {
  display: block;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: none;
  color: #8d8d90;
  font-size: 12px;
  font-weight: 500;
}

.calendar-card {
  position: relative;
  z-index: 2;
  margin: 4px 11px 0;
  padding: 6px 8px 10px;
  border: 2px solid #eeeeee;
  border-radius: 29px;
  background: #fff;
}
.calendar-top {
  display: flex;
  height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.calendar-top .month {
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
}
.month-clip {
  overflow: hidden;
  min-width: 0;
  flex: 1;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.month-clip .month.is-right { animation: monthSwipeRight .42s cubic-bezier(.22, 1, .36, 1) both; }
.month-clip .month.is-left { animation: monthSwipeLeft .42s cubic-bezier(.22, 1, .36, 1) both; }
.month-arrow {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: var(--green);
  background: transparent;
}
.weekdays,
.dates {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
}
.weekdays {
  margin-top: 0;
  color: #89898b;
  font-size: 16px;
  line-height: 25px;
}
.weekdays .weekend { color: #ff2f2f; }
.dates-clip { overflow: hidden; }
.dates { margin-top: 4px; }
.dates.is-left { animation: weekFromLeft .42s cubic-bezier(.22, 1, .36, 1) both; }
.dates.is-right { animation: weekFromRight .42s cubic-bezier(.22, 1, .36, 1) both; }
.date-circle {
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #666a70;
  font-size: 18px;
}
.date-circle.active {
  color: #fff;
  background: var(--green);
  animation: datePop .28s cubic-bezier(.18, .9, .32, 1.2);
}

.date-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 24px 11px 0;
  min-height: 36px;
}
.date-summary .cal-ico { color: var(--green); flex: 0 0 auto; }
.date-summary .label {
  min-width: 0;
  flex: 1 1 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 700;
  animation: monthSwap .28s cubic-bezier(.22, 1, .36, 1) both;
}
.today-button {
  flex: 0 0 106px;
  width: 106px;
  height: 31px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  line-height: 31px;
  text-align: center;
}
.summary-rule {
  margin: 8px 10px 0;
  height: 1px;
  background: #ececec;
}

.meal-section {
  position: relative;
  z-index: 2;
  margin-top: 26px;
  padding: 0 10px;
}
.meal-heading {
  display: flex;
  align-items: center;
  min-height: 34px;
  height: auto;
  gap: 0;
  overflow: visible;
}
.meal-heading .bf-slot {
  margin-left: auto;
  margin-right: 2px;
}
.meal-title {
  margin: 0;
  font-size: clamp(24px, 6.6vw, 27px);
  font-weight: 700;
  line-height: 34px;
}
.meal-icon { display: inline-flex; color: #f6d66f; }
.meal-icon.is-moon { color: #868a8f; }
.meal-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  font-size: 20px;
  font-weight: 400;
  color: #6f747a;
  line-height: 1;
}

.meal-card {
  position: relative;
  display: flex;
  width: 100%;
  height: 132px;
  margin-top: 9px;
  overflow: visible;
  border-radius: 11px;
  background: transparent;
  animation: reveal .38s cubic-bezier(.22, 1, .36, 1) both;
}
.meal-card-main {
  display: flex;
  width: 100%;
  height: 132px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 11px;
  background: var(--mint);
  text-align: left;
}
.meal-card-photo {
  width: 114px;
  height: 116px;
  flex: 0 0 114px;
  margin: 8px 4px 8px 8px;
  object-fit: cover;
  border: 0;
  border-radius: 8px;
  background: #f8f5e9;
  align-self: center;
}
.meal-card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  height: 132px;
  padding: 10px 34px 10px 8px;
  border-radius: 0 11px 11px 0;
  background: var(--mint);
}
.meal-card-name {
  display: block;
  max-width: 100%;
  padding-right: 2px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.05;
}
.meal-card-meta {
  display: block;
  margin-top: 7px;
  color: #6f7479;
  font-size: 16px;
  line-height: 1;
}
.meal-by {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  color: #6b7075;
  font-size: 13px;
}
.mini-avatar {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border-radius: 50%;
  object-fit: cover;
}
.meal-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #8d9398;
  box-shadow: none;
  opacity: 1;
}
.meal-comment {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 64px;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 11px;
  background: var(--mint);
  animation: reveal .36s cubic-bezier(.22, 1, .36, 1) both;
  color: #656b70;
  font-size: 13px;
  line-height: 1.22;
}
.meal-comment svg { flex: 0 0 auto; color: var(--green); margin-top: 1px; }
.add-meal {
  display: flex;
  width: 100%;
  height: 70px;
  margin-top: 9px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px dashed var(--green);
  border-radius: 9px;
  background: #fff;
  color: var(--green);
  font-size: 23px;
  animation: reveal .34s cubic-bezier(.22, 1, .36, 1) both;
}

/* Recipe */
.hero {
  position: relative;
  height: 324px;
  overflow: hidden;
  background: #d8d4cb;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  animation: heroReveal .8s cubic-bezier(.2, .8, .3, 1) both;
}
.round-control {
  position: absolute;
  top: 11px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 53px;
  height: 53px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(20, 43, 27, .12);
}
.refresh-button {
  left: 16px;
  width: 52px;
  height: 50px;
  color: #fff;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.refresh-button img {
  width: 52px;
  height: 50px;
  max-width: none;
}
.heart-button {
  right: 16px;
  width: 56px;
  height: 56px;
  color: var(--green);
  background: #fff;
  overflow: visible;
}
.heart-button.tap:active { transform: scale(1.06); }
.heart-button .nav-stroke path {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2px !important;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.heart-button.liked {
  color: #ef3338;
  background: #fff;
  animation: heartBurst .55s cubic-bezier(.18, 1.4, .32, 1);
}
.heart-button.liked svg {
  width: 48px;
  height: 48px;
  animation: heartPop .62s cubic-bezier(.18, 1.45, .32, 1);
}
.heart-button.liked::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 59, 72, .55);
  opacity: 0;
  animation: heartRing .6s ease-out forwards;
  pointer-events: none;
}
@keyframes heartBurst {
  0% { transform: scale(.86); }
  40% { transform: scale(1.12); }
  70% { transform: scale(.96); }
  100% { transform: scale(1); }
}
@keyframes heartPop {
  0% { transform: scale(.28) rotate(-18deg); }
  38% { transform: scale(1.42) rotate(10deg); }
  62% { transform: scale(.88) rotate(-5deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes heartRing {
  0% { transform: scale(.45); opacity: .9; }
  70% { opacity: .35; }
  100% { transform: scale(1.55); opacity: 0; }
}

.sheet {
  position: relative;
  z-index: 2;
  margin-top: -20px;
  padding-bottom: 14px;
  border-radius: 42px 42px 0 0;
  background: #fff;
  animation: sheetRise .62s cubic-bezier(.16, .92, .28, 1) both;
}
.title-zone {
  position: relative;
  padding: 22px 18px 12px;
}
.dish-title {
  position: relative;
  z-index: 2;
  width: min(300px, 78%);
  margin: 8px auto 12px;
  text-align: center;
  font-size: clamp(21px, 5.8vw, 24px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.3px;
  text-wrap: balance;
}
.meta-card {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  width: min(300px, calc(100% - 40px));
  height: 58px;
  margin: 6px auto 0;
  border: 1.25px solid #b9bcba;
  border-radius: 31px;
  color: #5d5d61;
}
.meta-divider { width: 1px; height: 48px; background: #c8c8ca; }
.meta-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
}
.meta-item img {
  flex: 0 0 auto;
  width: auto;
  max-width: 30px;
  height: 32px;
  object-fit: contain;
}

.tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: calc(100% - 22px);
  height: 51px;
  margin: 13px 11px 0;
  overflow: hidden;
  border-radius: 28px;
  background: var(--green-soft);
  isolation: isolate;
}
.tab-slider {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 50%;
  border-radius: inherit;
  background: var(--green);
  transition: transform .48s cubic-bezier(.2, .85, .28, 1.08);
}
.tabs.is-recipe .tab-slider { transform: translateX(100%); }
.tab-button {
  border: 0;
  background: transparent;
  color: #56565a;
  font-size: 18px;
  font-weight: 600;
  transition: color .35s ease;
}
.tab-button.active { color: #fff; }

.detail-area {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding-bottom: 4px;
}
.detail-panel {
  width: 100%;
}
.detail-panel.from-left { animation: panelFromLeft .42s cubic-bezier(.22, 1, .36, 1) both; }
.detail-panel.from-right { animation: panelFromRight .42s cubic-bezier(.22, 1, .36, 1) both; }
.ingredients-list {
  display: flex;
  flex-direction: column;
  margin: 22px 16px 0;
  padding: 0;
  list-style: none;
  font-size: 19px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -.2px;
}
.ingredient-row {
  display: flex;
  align-items: baseline;
  width: 100%;
  min-width: 0;
  height: 28px;
}
.ingredient-name,
.ingredient-value {
  flex: 0 1 auto;
  min-width: 0;
  overflow: visible;
  white-space: nowrap;
}
.ingredient-value {
  flex: 0 0 auto;
  text-align: right;
}
.ingredient-dots {
  flex: 1 1 auto;
  min-width: 10px;
  height: 1px;
  margin: 0 6px 5px;
  background: var(--line);
}
.recipe-list {
  margin: 17px 16px 0 32px;
  padding: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.57;
}
.recipe-list li { padding-left: 1px; }
.recipe-list li::marker { font-variant-numeric: tabular-nums; }
.order-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: calc(100% - 22px);
  min-height: 52px;
  margin: 18px 11px 8px;
  padding: 8px 14px;
  border: 0;
  border-radius: 29px;
  color: #fff;
  background: var(--green);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
}
.order-button .glyph { color: #fff; }
.date-order {
  height: 44px;
  min-height: 44px;
  margin: 8px 11px 0;
  padding: 0 10px;
  gap: 8px;
  font-size: 15px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.date-order span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Overlays */
.app-overlay {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  background: rgba(18, 25, 20, .4);
  animation: overlayIn .22s ease both;
}
.app-overlay.is-leaving {
  pointer-events: none;
  animation: overlayOut .4s ease both;
}
.bottom-sheet {
  width: 100%;
  max-height: 78%;
  overflow-y: auto;
  border-radius: 28px 28px 0 0;
  background: #fff;
  padding: 11px 16px 22px;
  animation: bottomSheet .36s cubic-bezier(.2, .85, .3, 1) both;
}
.app-overlay.is-leaving .bottom-sheet,
.app-overlay.is-leaving .picker-sheet {
  animation: sheetOut .42s cubic-bezier(.4, .02, .22, 1) both;
}
.sheet-handle {
  width: 48px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 9px;
  background: #d9ded9;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sheet-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6c736d;
}
.sheet-text {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #707671;
}

.picker-sheet {
  height: auto;
  max-height: 88%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 11px 12px calc(16px + env(safe-area-inset-bottom));
  animation: bottomSheet .4s cubic-bezier(.2, .85, .3, 1) both;
}
.picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
  margin-top: 8px;
  padding: 4px 2px 4px;
  overflow-y: auto;
  flex: 0 1 auto;
}
.picker-card {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  animation: reveal .32s cubic-bezier(.22, 1, .36, 1) both;
}
.picker-card:nth-child(1) { animation-delay: .02s; }
.picker-card:nth-child(2) { animation-delay: .06s; }
.picker-card:nth-child(3) { animation-delay: .1s; }
.picker-card:nth-child(4) { animation-delay: .14s; }
.picker-card:nth-child(5) { animation-delay: .18s; }
.picker-card:nth-child(6) { animation-delay: .22s; }
.picker-empty {
  grid-column: 1 / -1;
  margin-top: 24px;
  text-align: center;
  color: #6d7470;
  font-size: 15px;
}
.picker-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1.5px solid #f0cf68;
  border-radius: 11px;
  background: #f5f4ee;
}
.picker-card span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
}

.date-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  max-height: 88%;
  margin: 0;
  overflow: hidden;
  padding: 4px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  border-radius: 26px 26px 0 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: var(--modal);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .15);
  animation: bottomSheet .4s cubic-bezier(.2, .85, .3, 1) both;
}
.app-overlay.is-leaving .date-sheet {
  animation: sheetOut .42s cubic-bezier(.4, .02, .22, 1) both;
}
.close-button {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #8b918c;
  background: rgba(255,255,255,.72);
  box-shadow: none;
}
.close-button svg { width: 11px; height: 11px; }
.modal-title {
  position: relative;
  z-index: 2;
  margin: 6px 0 0;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  flex: 0 0 auto;
}
.month-switcher {
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  align-items: center;
  width: calc(100% - 36px);
  height: 40px;
  margin: 8px 18px 0;
  border: 1.2px solid #bfc0c1;
  border-radius: 28px;
  background: #fff;
  flex: 0 0 auto;
}
.month-label { text-align: center; font-size: 17px; }
.month-arrow-btn {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: #898b8d;
  background: transparent;
}
.cal-full { margin-top: 6px; padding: 0 10px; flex: 0 0 auto; }
.cal-full .weekdays { font-size: 14px; font-weight: 500; }
.days-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: 2px;
}
.day-cell { display: grid; place-items: center; height: 34px; }
.day-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #5d6368;
  background: transparent;
  font-size: 17px;
  font-weight: 500;
}
.day-button.other { color: #979a99; font-weight: 400; }
.day-button.selected {
  color: #fff;
  background: var(--green);
  animation: datePop .32s cubic-bezier(.2, .9, .3, 1.3);
}
.comment-box {
  display: block;
  width: calc(100% - 20px);
  height: 52px;
  margin: 8px 10px 10px;
  padding: 7px 12px;
  resize: none;
  border: 1.2px solid #c2c2c4;
  border-radius: 14px;
  outline: none;
  background: #fff;
  font-size: 15px;
  line-height: 1.3;
  flex: 0 0 auto;
}
.comment-box:focus { border-color: var(--green); }
.comment-box::placeholder { color: #6d6d70; }

.story-layer {
  align-items: stretch;
  background: rgba(0,0,0,0);
  z-index: 110;
  user-select: none;
  touch-action: none;
  -webkit-touch-callout: none;
  transition: background .32s ease;
}
.story-layer.is-in { background: #111; }
.story-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #111;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.story-layer.is-in .story-card { animation: storyOpen .46s cubic-bezier(.22, 1, .32, 1) both; }
.story-layer.is-in .story-card.is-ready { animation: none; }
.story-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1a1a1a;
  pointer-events: none;
}
.story-head {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(12px + env(safe-area-inset-top)) 12px 26px;
  background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.12) 62%, transparent 100%);
  pointer-events: none;
}
.story-bars {
  display: flex;
  gap: 5px;
  height: 5px;
}
.story-bar {
  flex: 1;
  height: 5px;
  overflow: hidden;
  border-radius: 100px;
  background: rgba(255,255,255,.38);
}
.story-bar i {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: inherit;
  background: #fff;
}
.story-bar i.is-done { transform: scaleX(1); }
.story-bar i.is-run {
  animation: storyProgress 5s linear forwards;
}
.story-bar i.is-paused { animation-play-state: paused; }

.toast {
  position: absolute;
  z-index: 120;
  left: 50%;
  bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));
  width: max-content;
  max-width: calc(100% - 34px);
  transform: translateX(-50%);
  padding: 11px 17px;
  border-radius: 20px;
  color: #fff;
  background: rgba(35, 45, 38, .94);
  font-size: 13px;
  text-align: center;
  animation: toastIn .28s cubic-bezier(.22, 1, .36, 1) both;
}

.fridge-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fridge-chip {
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--mint);
  color: #3e9153;
  font-size: 13px;
}

/* Admin */
.admin {
  padding-top: 12px;
  padding-left: 14px;
  padding-right: 14px;
}
.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.admin-head h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 700;
}
.admin-count {
  color: var(--muted);
  font-size: 13px;
  padding-bottom: 4px;
}
.admin-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 46px;
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--green-soft);
  isolation: isolate;
}
.admin-tabs .tab-button { font-size: 16px; }
.admin-tabs.is-stories .tab-slider { transform: translateX(100%); }
.admin-search {
  width: 100%;
  height: 42px;
  margin-bottom: 10px;
  padding: 0 14px;
  border: 1px solid #e4e4e6;
  border-radius: 12px;
  background: #fff;
  outline: none;
}
.admin-search:focus { border-color: var(--green); }
.admin-chips {
  display: flex;
  gap: 6px;
  margin: 0 -14px 12px;
  padding: 0 14px 2px;
  overflow-x: auto;
}
.admin-chip {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f3;
  color: #5d6360;
  font-size: 13px;
}
.admin-chip.is-on { background: var(--green); color: #fff; }
.admin-hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.admin-add {
  display: flex;
  width: 100%;
  height: 46px;
  margin-bottom: 12px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.admin-add .glyph { color: #fff; }
.admin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 8px;
  padding: 8px;
  border: 0;
  border-radius: 14px;
  background: var(--mint);
  text-align: left;
}
.admin-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.admin-row img {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
}
.admin-row-body { min-width: 0; flex: 1; }
.admin-row-name {
  display: block;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-row-meta {
  display: block;
  margin-top: 3px;
  color: #6a706c;
  font-size: 12px;
}
.admin-row-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.admin-mini {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #5f6662;
}
.admin-mini:disabled { opacity: .28; pointer-events: none; }
.admin-mini.danger { color: #c45b5b; }
.admin-mini.danger.is-wait,
.story-group-del.is-wait { background: #c45b5b; color: #fff; }
.admin-empty {
  padding: 28px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.editor { padding: 4px 0 8px; }
.editor-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.editor-top h1 {
  margin: 0;
  flex: 1;
  font-size: 22px;
  font-weight: 700;
}
.editor-back {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--mint);
  color: var(--green);
}
.editor-photo {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: var(--mint);
  aspect-ratio: 1;
}
.editor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.editor-photo span {
  position: absolute;
  inset: auto 10px 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 28, 22, .72);
  color: #fff;
  font-size: 12px;
}
.editor-photo.is-empty {
  display: grid;
  place-items: center;
  color: #6d756f;
  font-size: 13px;
  text-align: center;
  padding: 12px;
}
.editor-photos {
  display: block;
}
.editor-save:disabled { opacity: .4; }
.field { margin-top: 12px; }
.field label {
  display: block;
  margin-bottom: 5px;
  color: #6a706c;
  font-size: 12px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e1e3e2;
  border-radius: 12px;
  background: #fff;
  outline: none;
}
.field textarea { min-height: 72px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--green); }
.nice-select { position: relative; }
.nice-select-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid #d7eadb;
  border-radius: 14px;
  background: var(--mint);
  text-align: left;
}
.nice-select-btn .chevron {
  width: 14px;
  height: 10px;
  flex: 0 0 auto;
  transition: transform .2s ease;
}
.nice-select-btn .chevron.is-open { transform: rotate(180deg); }
.nice-select-menu {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  padding: 6px;
  border: 1px solid #d7eadb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(35, 79, 46, .12);
}
.nice-select-option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
}
.nice-select-option.is-on {
  background: var(--green);
  color: #fff;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ing-row, .step-row {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.ing-row { grid-template-columns: 1fr 88px 34px; }
.step-row { grid-template-columns: 1fr 34px; }
.linkish {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}
.editor-save {
  display: flex;
  width: 100%;
  height: 50px;
  margin-top: 18px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}

.story-upload {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 120px;
  margin-bottom: 14px;
  padding: 16px;
  border: 2px dashed var(--green);
  border-radius: 16px;
  background: var(--mint);
  color: #3e7a4e;
  text-align: center;
  font-size: 14px;
  line-height: 1.35;
}
.story-upload b { display: block; margin-bottom: 2px; font-size: 16px; }
.story-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.story-group {
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(30, 50, 36, .06);
}
.story-group-cover {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #eee;
}
.story-group img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #eee;
}
.story-group figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 6px 6px 8px;
  font-size: 12px;
  color: #5d6360;
}
.story-group figcaption .admin-row-actions { gap: 3px; }
.story-group figcaption .admin-mini,
.story-group figcaption .story-group-del {
  width: 28px;
  height: 28px;
}
.editor-top .linkish { flex: 0 0 auto; }
.story-group-del {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fff3f3;
  color: #c45b5b;
}
.slide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.slide-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #eee;
  aspect-ratio: 9 / 16;
}
.slide-card img { width: 100%; height: 100%; object-fit: cover; }
.slide-card .admin-mini {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,.92);
}
.slide-add {
  display: grid;
  place-items: center;
  aspect-ratio: 9 / 16;
  border: 2px dashed var(--green);
  border-radius: 10px;
  background: var(--mint);
  color: var(--green);
  font-size: 28px;
  line-height: 1;
}
.hidden-file { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }

.gate-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 32px 28px;
  text-align: center;
  background: #fff;
}
.gate-title {
  margin-top: 14px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
}
.gate-sub {
  margin-top: 8px;
  max-width: 280px;
  color: #6d7275;
  font-size: 15px;
  line-height: 1.4;
}
.who-sheet .who-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.who-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #d7eadb;
  border-radius: 16px;
  background: var(--mint);
  text-align: left;
  font-size: 18px;
  font-weight: 600;
}
.who-row img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e4d695;
}
.who-row.is-on {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

@media (max-width: 360px) {
  .brand-copy { font-size: 16px; }
  .quick-label, .control-label { font-size: 13px; }
  .food-card { width: 128px; flex-basis: 128px; min-width: 128px; }
  .food-thumb-wrap { width: 128px; }
  .food-grid .food-thumb-wrap { width: 100%; }
  .food-thumb { height: 117px; }
  .meal-card-photo { width: 96px; flex-basis: 96px; height: 100px; }
  .meal-card-name { font-size: 15px; }
  .date-summary .label { font-size: 14px; }
  .today-button { font-size: 15px; padding: 0 12px; }
  .profile-copy { font-size: 18px; }
  .favorites-heading { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
