:root {
  --bg: #f3f1ea;
  --card: #ffffff;
  --ink: #17171a;
  --soft: rgba(23, 23, 26, 0.56);
  --line: rgba(23, 23, 26, 0.1);
  --accent: #e8552d;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 12px;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; outline: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; }

.mp { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: min(344px, 100%); padding: 16px 14px 16px; border-radius: 26px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 34px 50px -34px rgba(23, 23, 26, 0.4), 0 30px 60px -44px color-mix(in srgb, var(--accent) 80%, transparent); }
.mp__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 4px; }
.mp__head strong { font-size: 16px; line-height: 20px; font-weight: 740; letter-spacing: -0.01em; white-space: nowrap; }
.mp__day { display: block; height: 16px; overflow: hidden; font-size: 12.500px; line-height: 16px; font-weight: 640; color: var(--accent); white-space: nowrap; }
.mp__day span { display: block; }

.mp__days { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); height: 46px; padding: 3px; border-radius: 16px; background: rgba(23, 23, 26, 0.05); }
.mp__days button { position: relative; z-index: 1; display: grid; place-items: center; align-content: center; gap: 4px; height: 40px; border-radius: 13px; color: var(--soft); transition: color 0.25s; }
.mp__days button b { font-size: 12px; line-height: 14px; font-weight: 700; }
.mp__days button i { display: block; width: 14px; height: 3px; border-radius: 2px; background: rgba(23, 23, 26, 0.16); transition: background-color 0.25s; }
.mp__days button[aria-selected="true"] { color: var(--ink); }
.mp__days button[aria-selected="true"] i { background: var(--accent); }
.mp__days button:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.mp__pill { position: absolute; left: 0; top: 3px; width: 44px; height: 40px; border-radius: 13px; background: #ffffff; box-shadow: 0 0 0 1px rgba(23, 23, 26, 0.06), 0 6px 10px -6px rgba(23, 23, 26, 0.4); }

.mp__meals { display: grid; }
.mp__meals li { display: grid; gap: 1px; height: 46px; align-content: center; padding: 0 4px; overflow: hidden; }
.mp__meals li + li { box-shadow: inset 0 1px 0 var(--line); }
.mp__slot { font-size: 11px; line-height: 14px; font-weight: 640; color: var(--soft); }
.mp__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mp__row b { font-size: 14.500px; line-height: 19px; font-weight: 700; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp__row em { font-style: normal; font-size: 13px; font-weight: 680; font-variant-numeric: tabular-nums; color: var(--soft); white-space: nowrap; }
.mp__row em::after { content: " kcal"; font-size: 11px; font-weight: 620; }

.mp__foot { display: grid; gap: 7px; padding: 0 4px; }
.mp__nums { display: flex; align-items: baseline; gap: 6px; font-size: 12px; font-weight: 640; color: var(--soft); white-space: nowrap; }
.mp__nums strong { font-size: 22px; line-height: 26px; font-weight: 760; font-stretch: 92%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.mp__left { display: block; height: 16px; margin-left: auto; overflow: hidden; line-height: 16px; color: var(--accent); font-variant-numeric: tabular-nums; }
.mp__left span { display: block; }
.mp__track { position: relative; height: 8px; border-radius: 4px; background: rgba(23, 23, 26, 0.08); overflow: hidden; }
.mp__fill { position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 60%, #ffc24a), var(--accent)); transform-origin: 0 50%; transform: scaleX(0.95); }

.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; pointer-events: none; opacity: 0; fill: #17171a; stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); z-index: 6; }

@media (max-height: 370px) { .mp { gap: 8px; padding-top: 12px; padding-bottom: 12px; } .mp__meals li { height: 42px; } }
@media (prefers-reduced-motion: reduce) { .mp__days button, .mp__days button i { transition: none; } }
