:root {
  --bg: #0c0d0a;
  --bg-2: #14160f;
  --card: #1a1c14;
  --card-2: #22251b;
  --line: #31352a;
  --text: #f4f5ef;
  --muted: #a7ab9d;
  --mint: #8fd4ae;
  --mint-2: #d7f5e3;
  --ink: #102117;
  --gold: #f0b429;
  --gold-2: #c98412;
  --gold-dim: #6d5424;
  --danger: #ff8d7a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --safe-b: env(safe-area-inset-bottom);
  font-family: Outfit, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(900px 420px at 50% -80px, rgba(90, 150, 110, 0.18), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100dvh;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--safe-b));
  transform: translateX(-50%) translateY(20px);
  background: #f4f5ef;
  color: #172016;
  padding: 12px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: 0.25s ease;
  max-width: min(90vw, 420px);
  text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.phone, .shell { width: min(460px, 100%); margin: 0 auto; min-height: 100dvh; position: relative; overflow-x: clip; }
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) 18px 8px;
}
.icon-btn, .text-btn {
  border: 0;
  background: #1c1e16;
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 50%;
}
.text-btn { width: auto; border-radius: 999px; padding: 0 14px; background: transparent; color: var(--mint); }
.stepcount { color: var(--muted); font-size: 14px; }
.dashes { display: flex; gap: 4px; padding: 6px 18px 0; }
.dashes i {
  height: 4px;
  flex: 1;
  border-radius: 99px;
  background: #2a2d24;
  display: block;
}
.dashes i.on { background: var(--mint); }
.content {
  padding: 22px 18px 140px;
  animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
h1 { font-size: 32px; line-height: 1.05; letter-spacing: -0.04em; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 18px; line-height: 1.45; }
.fine { color: var(--muted); font-size: 13px; line-height: 1.45; }
.kicker { color: var(--mint); letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; font-weight: 700; margin: 0 0 6px; }
.dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(460px, 100%);
  bottom: 0;
  padding: 28px 18px calc(16px + var(--safe-b));
  background: linear-gradient(transparent, #0c0d0a 28%);
  z-index: 5;
}
.cta {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 16px 18px;
  background: linear-gradient(#ffd15c, var(--gold) 40%, var(--gold-2));
  color: #241804;
  font-weight: 800;
  box-shadow: 0 10px 34px rgba(240, 180, 41, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.cta:active { transform: scale(0.98); }
.cta:disabled { background: var(--gold-dim); color: #d9c398; box-shadow: none; }
.cta.quiet { background: transparent; color: var(--mint); box-shadow: none; margin-top: 8px; }

.splash { min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px 22px calc(28px + var(--safe-b)); gap: 8px; }
.splash .brand { margin-bottom: 18vh; }
.brand { display: flex; align-items: center; gap: 12px; padding-top: 12px; }
.brand strong { font-family: Fraunces, Georgia, serif; font-size: 28px; }
.logo { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; display: block; }
.hero-copy { font-size: 42px; line-height: 0.98; letter-spacing: -0.045em; margin: 0 0 12px; }
.splash .lead { font-size: 17px; }

.choice, .plate, .store, .chip, .day, .equip, .time-card {
  border: 1px solid var(--line);
  background: var(--card);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.choice {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 10px;
}
.choice, .store, .diet-card, .allergy, .equip, .sex, .day, .plate, .chip, .none-card, .snack {
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.choice:active, .store:active, .diet-card:active, .allergy:active, .equip:active, .sex:active, .day:active, .plate:active, .chip:active, .none-card:active {
  transform: scale(0.94);
}
@keyframes pick-pop {
  0% { transform: scale(0.9); }
  55% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.choice.on, .store.on, .diet-card.on, .allergy.on, .equip.on, .sex.on, .day.on, .plate.on, .chip.on, .none-card.on, .snack.on {
  animation: pick-pop .32s cubic-bezier(.2, .9, .3, 1);
}
.choice.on, .day.on, .equip.on, .time-card.on, .plate.on, .store.on, .chip.on {
  background: var(--mint);
  color: var(--ink);
  border-color: transparent;
}
.choice-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #10140e;
  flex: 0 0 auto;
}
.choice.on .choice-ico { background: rgba(16, 33, 23, 0.12); }
.choice strong, .time-card strong, .plate b { display: block; }
.choice small, .time-card small { display: block; color: var(--muted); margin-top: 2px; }
.choice.on small, .time-card.on small { color: #24513a; }
.tick {
  display: inline-block;
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #5c6154;
  flex: 0 0 auto;
  position: relative;
  vertical-align: middle;
}
.on .tick, .choice.on .tick { border-color: transparent; background: #123024; }
.on .tick::after, .choice.on .tick::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid var(--mint);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.search {
  width: 100%;
  background: #12140f;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 16px;
}
.section-label { color: var(--muted); font-size: 12px; letter-spacing: 0.12em; margin: 8px 0 10px; }
.grid-3, .grid-2 { display: grid; gap: 10px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.store {
  border-radius: 18px;
  min-height: 118px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  text-align: left;
}
.store b { font-size: 13px; margin-top: 8px; }
.mark {
  width: 100%;
  height: 58px;
  padding: 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
}
.mark img {
  max-width: 100%;
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.mark .fallback { display: none; color: #102117; font-weight: 800; }
.mark img + .fallback { display: none; }
.mark.letter { color: white; font-weight: 800; }

.name-field {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}
.name-field input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  color: var(--text);
  font-size: 22px;
}
.sex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.sex {
  border-radius: 22px;
  padding: 22px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  text-align: center;
}
.sex.on { background: transparent; border-color: var(--mint); color: var(--mint); }
.sex span { font-size: 34px; display: block; }
.panel {
  background: var(--card);
  border-radius: 24px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
}
.panel-head, .row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.units { display: flex; background: #10140e; border-radius: 999px; padding: 3px; }
.units button { border: 0; background: transparent; border-radius: 999px; padding: 6px 10px; color: var(--muted); }
.units button.on { background: var(--gold); color: #241804; font-weight: 700; }
.wheel-wrap { position: relative; margin-top: 8px; }
.wheel-window {
  position: absolute;
  left: 0; right: 0; top: 72px; height: 48px;
  background: #2c3126;
  border-radius: 14px;
  pointer-events: none;
}
.wheel {
  height: 192px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  position: relative;
  z-index: 1;
  scrollbar-width: none;
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}
.wheel::-webkit-scrollbar { display: none; }
.spacer { height: 72px; }
.witem {
  height: 48px;
  display: grid;
  place-items: center;
  scroll-snap-align: center;
  color: #8d917f;
  font-weight: 650;
}
.witem.hot { color: white; font-size: 20px; }
.big {
  font-family: Fraunces, Georgia, serif;
  font-size: 64px;
  letter-spacing: -0.04em;
  margin: 8px 0;
}
.big small { font-family: Outfit, sans-serif; font-size: 18px; color: var(--mint); margin-left: 4px; }
.ruler { width: 100%; accent-color: var(--mint); }
.ticks {
  height: 18px;
  margin-top: 6px;
  background: repeating-linear-gradient(90deg, #8d917f 0 2px, transparent 2px 14px);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.targets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: center; }
.targets label { display: block; }
.big-input {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: center;
  font-family: Fraunces, Georgia, serif;
  font-size: 52px;
  color: var(--mint);
  letter-spacing: -0.04em;
}
.formula { width: 100%; text-align: left; }
.formula div, .math div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.formula b, .math b { color: var(--text); font-weight: 600; }
.checkline { color: var(--mint); font-size: 14px; }

.plate {
  position: relative;
  display: block;
  width: 100%;
  height: 132px;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 10px;
  text-align: left;
  padding: 0;
  border: 0;
}
.plate-art { position: absolute; inset: 0; }
.plate-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plate b {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 26px;
  color: white;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  z-index: 1;
}
.plate .tick { position: absolute; right: 14px; top: 14px; background: rgba(16, 20, 14, 0.72); z-index: 1; }
.plate.on .tick { background: #123024; }
.plate.off .plate-art { filter: grayscale(1) brightness(0.45); }
.plate.off b { color: #c8cbbf; }
.snack {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 8px;
}
.switch {
  width: 46px;
  height: 28px;
  border-radius: 99px;
  background: #3a3d33;
  position: relative;
}
.switch i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: 0.2s ease;
}
.snack.on .switch { background: var(--mint); }
.snack.on .switch i { left: 21px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #10140e; }

.wide { grid-column: 1 / -1; }
.diet-card, .allergy, .chip, .day, .equip, .time-card { border-radius: 18px; }
.diet-card, .allergy {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 16px 10px;
  text-align: center;
}
.diet-card.on, .allergy.on { background: var(--mint); color: var(--ink); }
.none-card { width: 100%; border-radius: 22px; padding: 18px; margin-bottom: 12px; text-align: center; background: #142117; border: 1px solid #24523a; }
.none-card.on { background: #173224; border-color: var(--mint); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border-radius: 999px; padding: 8px 12px; }
.ban-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}
.ban-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #15170f;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.25;
  min-height: 52px;
}
.ban-chip .ban-emoji {
  width: 28px;
  text-align: center;
  font-size: 18px;
  flex: 0 0 auto;
}
.ban-chip span:last-child {
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ban-chip.on {
  background: #1c2a20;
  border-color: rgba(143, 212, 174, 0.55);
  box-shadow: inset 0 0 0 1px rgba(143, 212, 174, 0.25);
}
.ban-aisle { margin: 0 0 18px; }
.ban-aisle h3 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
@media (min-width: 520px) {
  .ban-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.sun-day { grid-column: 1 / -1; width: calc(50% - 5px); justify-self: center; }
.day, .equip, .time-card { padding: 16px; text-align: left; }
.day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  min-height: 56px;
}
.day .tick { position: static; transform: none; }
.equip { padding: 0 0 10px; overflow: hidden; }
.equip .art { height: 92px; display: block; background: #111; }
.equip .art img { width: 100%; height: 92px; object-fit: cover; display: block; }
.equip-name { display: block; padding: 8px 8px 2px; font-size: 13px; line-height: 1.2; }
.kitchen-note {
  margin-top: 12px;
  background: #173224;
  border-radius: 16px;
  padding: 12px;
  color: var(--mint-2);
}

.swipe-scene { height: 460px; position: relative; margin-top: 8px; }
.swipe-card {
  position: absolute;
  inset: 0 0 70px;
  border-radius: 28px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
  touch-action: none;
  user-select: none;
}
.swipe-card.back { inset: 16px 16px 86px; filter: brightness(0.75); }
.swipe-card .stamp {
  position: absolute;
  top: 24px;
  padding: 6px 10px;
  border: 3px solid;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0;
}
.stamp.yes { left: 20px; color: var(--mint); border-color: var(--mint); }
.stamp.no { right: 20px; color: var(--danger); border-color: var(--danger); }
.swipe-actions { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 18px; }
.swipe-actions button {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #16180f;
  font-size: 22px;
}
.swipe-legend {
  display: grid;
  grid-template-columns: repeat(3, 62px);
  justify-content: center;
  gap: 18px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.swipe-card { background-size: cover; background-position: center; color: white; }
.swipe-actions .heart { color: var(--mint); border-color: #24523a; }
.summary-pill { display: flex; gap: 8px; flex-wrap: wrap; }
.summary-pill span { background: var(--card); border-radius: 999px; padding: 8px 12px; }

.budget-num {
  font-family: Fraunces, Georgia, serif;
  font-size: 76px;
  color: var(--mint);
  letter-spacing: -0.05em;
  margin: 12px 0 0;
  text-align: center;
}
.center { text-align: center; }
.slider { width: 100%; margin: 18px 0 8px; accent-color: var(--mint); }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }

.auth { display: flex; flex-direction: column; gap: 10px; }
.auth input, .stack input, .stack select {
  width: 100%;
  background: #12140f;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  color: var(--text);
}
.stack select { color-scheme: light; background: #f4f5ef; color: #102117; }
.error { color: var(--danger); min-height: 1.2em; }

.gen { padding-top: 12vh; }
.gen ol { list-style: none; padding: 0; }
.gen li {
  padding: 12px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.gen li.done { color: var(--mint); }

.shell { width: min(1120px, 100%); }
.side { display: none; }
.view { min-width: 0; padding: 18px 18px 136px; }
.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, calc(100% - 16px));
  bottom: calc(10px + var(--safe-b));
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  background: rgba(18, 20, 15, 0.94);
  border: 1px solid #3d4332;
  border-radius: 24px;
  padding: 6px;
  z-index: 6;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}
.tabbar button {
  border: 0;
  background: transparent;
  color: #9aa18c;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -0.03em;
  padding: 7px 1px 6px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
}
.tabbar button span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tabbar svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tabbar button.on {
  color: var(--mint);
  background: #1a2a20;
  box-shadow: inset 0 0 0 1px rgba(143, 212, 174, 0.4);
}
.tabbar button.tab-main {
  color: #e7f6ec;
  background: #24382c;
  transform: translateY(-8px);
  padding-top: 10px;
  padding-bottom: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}
.tabbar button.tab-main svg { width: 26px; height: 26px; }
.tabbar button.tab-main span { font-size: 10px; }
.tabbar button.tab-main.on {
  color: #102016;
  background: var(--mint);
}
.tabbar button.tab-dead {
  opacity: 0.42;
  pointer-events: none;
}
.tabbar button.tour-hot,
.side button.tour-hot,
.health-switch button.tour-hot,
.tour-hot {
  box-shadow: inset 0 0 0 2px var(--gold);
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 16px;
  position: relative;
  z-index: 2;
}
.tour {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 20px));
  bottom: calc(84px + var(--safe-b));
  z-index: 12;
  pointer-events: none;
}
.tour-card {
  pointer-events: auto;
  background: #16180f;
  border: 1px solid #d7c27a;
  border-radius: 24px;
  padding: 16px 16px 14px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
}
.tour-card h2 { margin: 2px 0 8px; font-size: 28px; letter-spacing: -0.03em; }
.tour-card p { margin: 0; color: var(--text); line-height: 1.45; }
.tour-progress {
  height: 4px;
  border-radius: 99px;
  background: #2d3326;
  margin-top: 14px;
  overflow: hidden;
}
.tour-progress i {
  display: block;
  height: 100%;
  background: var(--mint);
  border-radius: 99px;
}
.tour-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; justify-content: flex-end; }
.tour-card .text-btn { width: auto; margin: 0; padding: 0 4px; }
.tour-card .cta { width: auto; margin: 0; padding: 12px 16px; white-space: nowrap; }
@media (min-width: 980px) {
  .tour { bottom: 22px; }
}
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.stat { background: var(--card); border-radius: 18px; padding: 14px; }
.stat b { display: block; font-family: Fraunces, Georgia, serif; font-size: 28px; color: var(--mint); }
.day-card, .recipe, .shop-group, .panel { animation: rise 0.4s ease both; }
.day-card { background: var(--card); border-radius: 22px; padding: 14px; margin-bottom: 12px; }
.meal {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.meal b, .meal small { display: block; }
.band { height: 8px; background: #2a2d24; border-radius: 99px; position: relative; overflow: hidden; margin: 8px 0; }
.band i { display: block; height: 100%; background: var(--mint); border-radius: inherit; }
.band.bad i { background: #e0a15a; }
.tag { color: var(--mint); font-size: 12px; }
.warn { color: #e0a15a; font-size: 12px; }
.shop {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 10px 0;
}
.shop b, .shop small { display: block; }
.shop small { margin-top: 2px; }
.shop.done span { text-decoration: line-through; color: var(--muted); }
.box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #5c6154;
}
.shop.done .box { background: var(--mint); border-color: var(--mint); }
.aisle { margin: 16px 0 4px; color: var(--muted); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

.ring { width: 180px; height: 180px; display: block; margin: 8px auto; overflow: visible; }
.ring-bg { fill: none; stroke: #2a2d24; stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--mint); stroke-width: 10; stroke-linecap: butt; transition: stroke-dasharray 0.6s ease, stroke-dashoffset 0.6s ease; }
circle.ring-over-arc {
  fill: none;
  stroke: #e06b5a;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dasharray 0.6s ease, stroke-dashoffset 0.6s ease;
}
.ring text {
  stroke: none !important;
  stroke-width: 0 !important;
  paint-order: normal;
  font-family: Fraunces, Georgia, serif;
}
.ring-num { fill: var(--text); }
.ring-num.over { fill: #f0b4a8; }
.ring-sub { fill: var(--muted); font-family: Outfit, sans-serif; }
.ring.is-over .ring-sub { fill: #e8a090; }
.macros-over div:first-child b { color: #f0b4a8; }
.cal-meals { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.cal-meal-block { display: grid; gap: 4px; }
.portion-link {
  justify-self: start;
  margin: 0 0 2px 68px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.portion-link:hover { color: var(--mint); }
.portion-edit {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #171910;
}
.portion-edit .composer-field { margin: 0; }
.portion-edit .ghost { width: 100%; margin: 0; }
.portion-inline {
  grid-template-columns: 72px auto auto auto;
  align-items: center;
  gap: 8px;
  margin: 0 0 2px 68px;
  padding: 6px 8px;
  border-radius: 12px;
  width: fit-content;
  max-width: 100%;
}
.portion-inline input {
  width: 72px;
  background: #0e100c;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--text);
  font: inherit;
}
.portion-inline span { color: var(--muted); font-size: 13px; }
.portion-inline .ghost {
  width: auto;
  margin: 0;
  padding: 8px 12px;
}
.portion-inline .text-btn { margin: 0; padding: 0; }
.extra-composer {
  margin: 0 0 28px;
  padding: 22px 18px 24px;
  border-radius: 24px;
  background: linear-gradient(160deg, #14160f 0%, #1a1d14 100%);
  border: 1px solid #2f3428;
}
.extra-composer h2 { margin: 0 0 10px; }
.extra-composer > .fine { margin: 0 0 20px; }
.extra-kcal-main input {
  font-family: Fraunces, Georgia, serif;
  font-size: 28px;
  letter-spacing: -0.03em;
  padding: 12px 14px;
}
.extra-macro-details {
  margin: 4px 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 12px 10px;
  background: #0f110d;
}
.extra-macro-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  list-style: none;
}
.extra-macro-details summary::-webkit-details-marker { display: none; }
.extra-macro-details .extra-grid { margin-top: 10px; }
.extra-form { display: flex; flex-direction: column; gap: 16px; }
.extra-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}
.extra-field > span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.extra-field input,
.extra-form .search {
  width: 100%;
  border: 1px solid var(--line);
  background: #10130e;
  color: var(--text);
  border-radius: 14px;
  padding: 14px;
  font: inherit;
}
.extra-field input:focus,
.extra-form .search:focus {
  outline: none;
  border-color: #6f8f6a;
}
.extra-field input[readonly],
.extra-macro.locked input {
  background: #171b13;
  color: #c9d2bc;
  border-style: dashed;
}
.extra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 520px) {
  .extra-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.extra-suggest {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow: auto;
  padding: 4px 2px;
}
.extra-hint { margin: 0; padding: 8px 2px 4px; }
.extra-hit {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #343a2c;
  background: #12150f;
  color: var(--text);
}
.extra-hit:active { transform: scale(0.98); }
.extra-hit-ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #1f2419;
  border: 1px solid #3a4132;
  font-size: 20px;
}
.extra-hit-img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid #3a4132;
  background: #1f2419;
}
.extra-hit-wide { grid-template-columns: auto 1fr; }
.extra-plate {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid #4a5a3a;
}
.extra-picked:has(.extra-plate) {
  grid-template-columns: auto 1fr auto;
}
.extra-hit-copy b,
.extra-picked b { display: block; font-size: 15px; line-height: 1.25; }
.extra-hit-copy small,
.extra-picked small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.extra-picked {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: #1c2418;
  border: 1px solid #4a5a3a;
}
.extra-form .cta { margin-top: 8px; }
.barcode-panel {
  margin: 0 0 26px;
  padding: 22px 18px 24px;
  border-radius: 24px;
  background: linear-gradient(160deg, #14160f 0%, #1a1d14 100%);
  border: 1px solid #2f3428;
}
.barcode-panel h2 { margin: 0 0 10px; }
.barcode-panel > .fine { margin: 0 0 20px; }
.barcode-panel .barcode-row { margin-top: 0; }
.barcode-panel .gram-ask { margin-top: 16px; }
.cal-extras { margin: 6px 0 28px; }
.cal-extras-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cal-extras-head em {
  font-style: normal;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #2a2418;
  color: #d7c27a;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.extra-list { display: flex; flex-direction: column; gap: 14px; }
.extra-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #171912 0%, #1c2016 100%);
  border: 1px solid #3a3528;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.extra-ico {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #252a1e;
  border: 1px solid #4a4535;
  color: #d7c27a;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.extra-copy strong { display: block; font-size: 15px; line-height: 1.35; }
.extra-copy small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.extra-drop {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #4a3530;
  background: rgba(224, 107, 90, 0.08);
  color: #e06b5a;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
}
.extra-drop:active { transform: scale(0.94); }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 11px; font-family: Outfit, sans-serif; }
.h-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.h-scroll button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 12px; white-space: nowrap; }
.h-scroll button.on { background: var(--mint); color: var(--ink); border-color: transparent; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.ghost { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 12px 14px; }
.danger-btn { background: transparent; border: 0; color: var(--danger); }

.inspire { display: grid; gap: 10px; }
.inspire button {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
  padding: 0;
}
.inspire img { width: 112px; height: 112px; object-fit: cover; display: block; background: #111; }
.inspire b, .inspire small { display: block; }
.inspire span { padding-right: 12px; }
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 15;
  display: grid;
  place-items: end center;
}
.sheet {
  width: min(560px, 100%);
  max-height: 86dvh;
  overflow: auto;
  background: #14160f;
  border-radius: 24px 24px 0 0;
  padding: 18px 18px calc(18px + var(--safe-b));
}
.math { font-size: 14px; }

@media (min-width: 980px) {
  .shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100dvh; }
  .side .brand { margin-bottom: 18px; }
  .side {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 14px;
    border-right: 1px solid var(--line);
    position: sticky;
    top: 0;
    height: 100dvh;
  }
  .side button { text-align: left; border: 0; background: transparent; border-radius: 12px; padding: 10px 12px; color: var(--muted); }
  .side button.on { background: #1a2a20; color: var(--mint); }
  .tabbar { display: none; }
  .view { padding-bottom: 40px; }
  .phone { min-height: 100dvh; padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
.meal-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--line);
}
.icon-swap.fav { color: #d7c27a; font-size: 18px; }
.icon-swap.fav.on { background: #2a2614; border-color: #d7c27a; }
.meal-line .meal { border-top: 0; }
.icon-swap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #12140f;
  color: var(--mint);
  display: grid;
  place-items: center;
}
.chart-box { position: relative; }
.weight-dot { cursor: pointer; }
.weight-tip {
  position: absolute;
  transform: translate(-50%, -130%);
  background: #f4f5ef;
  color: #102117;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.nutri { background: var(--card); border-radius: 16px; padding: 12px 14px; margin: 12px 0; }
.nutri h2 { margin: 0 0 4px; font-size: 16px; }
.nutri-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 10px; margin-top: 10px; }
.nutri-grid b { display: block; font-size: 14px; font-weight: 650; line-height: 1.2; white-space: nowrap; }
.nutri-grid span { color: var(--muted); font-size: 11px; }
.fit-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.rhythm {
  background: linear-gradient(180deg, #1b261e, #14160f 70%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px 14px 12px;
  margin: 0 0 12px;
}
.rhythm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rhythm-top .kicker { margin: 0; }
.rhythm-top strong { display: block; font-size: 28px; line-height: 1.1; }
.rhythm-top .fine { margin: 2px 0 0; }
.rhythm-orb {
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid #3a4033;
  color: var(--muted);
  font-size: 22px;
  font-weight: 800;
  background: #10130e;
}
.rhythm-orb.on { border-color: var(--mint); color: var(--mint-2); box-shadow: 0 0 0 6px rgba(143, 212, 174, 0.12); }
.rhythm-orb.wait { border-color: var(--gold); color: #f3e7b2; }
.rhythm-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 14px 0 8px; }
.rhythm-week.weeks { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.rhythm-dot { text-align: center; }
.rhythm-dot i { display: block; height: 8px; border-radius: 99px; background: #2a2d24; margin-bottom: 4px; }
.rhythm-dot.on i { background: var(--mint); }
.rhythm-dot.today i { box-shadow: 0 0 0 1px var(--gold); }
.rhythm-dot small { color: var(--muted); font-size: 10px; letter-spacing: 0.03em; text-transform: uppercase; }
.rhythm-week.weeks small { text-transform: none; letter-spacing: 0; font-size: 11px; }
.rhythm-key { margin: 0 0 6px; }
.ach-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ach-head .kicker { margin: 0; }
.ach-head b { color: var(--muted); font-size: 14px; font-weight: 650; }
.ach-won { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ach-medal {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #17241c;
  border: 1px solid #3d6b4e;
  font-size: 20px;
}
.ach-next {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #12140f;
  border: 1px solid var(--line);
}
.ach-next span { font-size: 22px; line-height: 1; filter: grayscale(1); opacity: 0.7; }
.ach-next b { display: block; font-size: 15px; }
.ach-next small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.ach-more { margin-top: 10px; padding: 0; }
.ach-groups { display: grid; gap: 12px; margin-top: 14px; }
.ach-label { margin: 0 0 6px; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.ach-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ach-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.ach-pill.on { color: var(--text); border-color: #3d6b4e; background: #17241c; }
.fit-hero .stat span { color: var(--muted); font-size: 13px; }
.fit-date { display: block; margin: 4px 0 12px; color: var(--muted); font-size: 13px; }
.ro-date-field {
  display: flex;
  align-items: center;
  gap: 2px;
  width: fit-content;
  margin: 0 0 12px;
  background: #12140f;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 10px;
}
.ro-date-field .part {
  width: 2.1em;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  padding: 6px 0;
}
.ro-date-field .part[data-part="y"] { width: 3.2em; }
.ro-date-field span { color: var(--muted); font-size: 18px; }
.week-switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.meals-week-bar {
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
}
.meals-week-bar .week-switch-row {
  margin: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.meals-week-bar .week-switch-btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
}
.meals-week-bar .week-switch-note {
  text-align: center;
  width: 100%;
}
.meals-week-bar > .fine {
  margin: 10px 0 0;
  text-align: center;
}
.week-switch-note {
  font-size: 12px;
  color: var(--muted);
}
.week-switch-btn {
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.week-switch-btn.on {
  background: var(--mint);
  color: var(--ink);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(143, 212, 174, 0.22);
}
.week-pick-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 16px;
}
.week-pick-row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  font: inherit;
  color: var(--text);
}
.week-pick-row.on {
  border-color: var(--mint);
  box-shadow: 0 0 0 1px var(--mint);
  background: var(--card-2);
}
.week-pick-row.empty {
  opacity: 0.88;
}
.week-pick-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(143, 212, 174, 0.18);
  color: var(--mint);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.week-pick-row.on .week-pick-num {
  background: var(--mint);
  color: var(--ink);
}
.week-pick-copy b { display: block; }
.week-pick-copy small { color: var(--muted); }
.week-empty {
  padding: 20px 0;
  text-align: center;
}
.week-empty h2 { font-size: 1.1rem; margin-bottom: 8px; }
.schedule-panel {
  padding: 14px 0 8px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.schedule-panel .fine { max-width: 36rem; margin: 0; }
.schedule-panel .cta,
.schedule-panel .ghost.schedule-clear-btn {
  width: min(100%, 320px);
  margin: 0;
}
.schedule-clear-confirm {
  width: min(100%, 360px);
  margin-top: 4px;
  text-align: left;
}
.schedule-clear-confirm .plan-confirm-acts { margin-top: 10px; }
.schedule-clear-btn {
  border-color: #5a3030;
  color: #f0b4b4;
}
.schedule-panel-inset {
  padding: 10px 0 0;
  margin-top: 2px;
  border-top: 1px solid var(--line);
}
.settings-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.settings-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 12px 14px;
  display: grid;
  gap: 8px;
  background: #12140f;
}
.settings-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.settings-card-lead {
  margin: -2px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}
.settings-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 520px) {
  .settings-week-body .settings-week-row { grid-template-columns: 1fr; }
  .settings-week-body .settings-pill-row-tight { flex-direction: column; align-items: stretch; }
  .settings-week-body .settings-pill-row-tight .settings-pill { flex: 1 1 auto; width: 100%; }
  .settings-group-body .store-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.settings-shell label { gap: 4px; font-size: 12px; }
.settings-shell input,
.settings-shell select {
  font-size: 15px;
  padding: 9px 10px;
}
.settings-body input {
  font-family: Fraunces, Georgia, serif;
  font-size: 18px;
  letter-spacing: -0.03em;
  padding: 8px 8px;
}
.settings-meals { gap: 6px; }
.settings-meals button {
  padding: 7px 10px;
  font-size: 12px;
}
.settings-save { margin: 2px 0 0; width: 100%; }
.settings-compact { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.settings-compact-below { gap: 8px; margin-top: 8px; }
.settings-group {
  border: 1px solid var(--line); border-radius: 14px; background: #12140f; overflow: hidden;
}
.settings-group > summary {
  list-style: none; cursor: pointer; padding: 11px 12px; font-size: 13px; font-weight: 800;
  letter-spacing: -0.02em; display: flex; align-items: center; justify-content: space-between;
}
.settings-group > summary::-webkit-details-marker { display: none; }
.settings-group > summary::after { content: "▸"; color: var(--muted); font-size: 12px; transition: transform 0.2s; }
.settings-group[open] > summary::after { transform: rotate(90deg); }
.settings-group-body {
  padding: 10px 12px 12px; display: grid; gap: 8px; border-top: 1px solid var(--line);
  min-width: 0;
  box-sizing: border-box;
}
.settings-group-body > label:first-child,
.settings-group-body > .settings-inline:first-child,
.settings-group-body > .settings-row-3:first-child,
.settings-group-body > .meal-picks:first-child,
.settings-group-body > .settings-hint:first-child + fieldset,
.settings-group-body > .hf-form:first-child {
  margin-top: 2px;
}
.settings-group-body .settings-hint { margin: 8px 0 0; font-size: 11px; }
.settings-row-3 {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
@media (max-width: 420px) {
  .settings-row-3 { grid-template-columns: 1fr 1fr; }
  .settings-row-3 label:last-child { grid-column: 1 / -1; }
}
.settings-compact label { gap: 4px; font-size: 11px; font-weight: 600; color: var(--muted); display: grid; }
.settings-compact input, .settings-compact select, .settings-compact .hf-select {
  font-size: 14px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line);
  background: #0c0d0a; color: inherit; width: 100%; box-sizing: border-box;
}
.hf-select {
  appearance: none; -webkit-appearance: none;
  font-family: Outfit, system-ui, sans-serif; font-size: 14px; font-weight: 500;
  padding: 10px 36px 10px 12px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #0a0b08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238b917f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  color: #f2f4ec; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hf-select:focus {
  outline: none; border-color: rgba(143, 212, 174, 0.55);
  box-shadow: 0 0 0 3px rgba(143, 212, 174, 0.12);
}
.hf-select option { background: #12140f; color: #f2f4ec; }
.settings-pass-form.hf-form { gap: 10px; margin-bottom: 4px; }
.settings-pass-form .hf-field span { text-transform: none; letter-spacing: 0; font-size: 12px; }
.settings-actions-inline { margin-top: 2px; }
.settings-delete-pass.hf-field { margin-top: 10px; gap: 8px; }
.settings-delete-pass.hf-field span { font-size: 12px; font-weight: 600; color: var(--muted); }
.settings-compact .settings-body input { font-family: Outfit, system-ui, sans-serif; font-size: 15px; }
.settings-pill-row-tight .settings-pill { min-width: 0; flex: 1 1 45%; padding: 9px 10px; font-size: 12px; }
.store-picks-compact { margin: 0; padding: 0; border: 0; }
.settings-week-body { min-width: 0; }
.schedule-panel-compact {
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.schedule-panel-compact .fine,
.schedule-panel-compact .schedule-status-line {
  margin: 0;
  line-height: 1.45;
  min-width: 0;
  word-break: break-word;
}
.schedule-panel-compact .ghost.schedule-next-btn,
.schedule-panel-compact .text-btn.schedule-clear-btn,
.schedule-panel-compact .schedule-clear-confirm {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}
.schedule-panel-compact .ghost.schedule-next-btn {
  white-space: normal;
  line-height: 1.25;
  padding: 11px 12px;
  border-radius: 12px;
  text-align: center;
  display: block;
}
.schedule-panel-compact .text-btn.schedule-clear-btn {
  text-align: center;
  padding: 8px 10px;
}
.schedule-sheet .cta,
.schedule-sheet .ghost,
.schedule-sheet .text-btn { width: 100%; margin: 0; }
.schedule-sheet { display: grid; gap: 10px; max-width: 100%; }
.settings-pass-inline { display: grid; gap: 8px; grid-template-columns: 1fr 1fr auto; align-items: end; }
@media (max-width: 520px) { .settings-pass-inline { grid-template-columns: 1fr; } }
.settings-actions-inline, .settings-link-inline { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.settings-below {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.settings-card-actions { gap: 10px; }
.settings-actions-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.settings-actions-row .ghost {
  width: 100%;
  margin: 0;
  padding: 10px 8px;
  font-size: 12px;
  line-height: 1.25;
}
.settings-link-stack { display: grid; gap: 6px; }
.settings-link-btn {
  width: 100%;
  margin: 0;
  padding: 9px 10px;
  font-size: 13px;
  text-align: left;
  justify-content: flex-start;
}
.settings-danger-zone {
  margin-top: 20px;
  padding: 16px 4px 24px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.settings-footnote + .settings-danger-zone { margin-top: 14px; }
.settings-delete-ask {
  display: block;
  width: 100%;
  margin: 0;
  padding: 6px 8px;
  font-size: 12px;
  color: #c98888;
  text-align: center;
}
.settings-delete-cancel {
  width: 100%;
  margin: 4px 0 0;
  text-align: center;
  font-size: 13px;
}
.settings-delete {
  gap: 8px;
  max-width: 320px;
  margin: 0 auto;
}
.settings-delete .danger-btn { width: 100%; margin: 0; }
.settings-confirm { margin: 0; }
.settings-footnote {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  padding: 0 4px 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.preview-note { margin: 0 0 12px; }
.week-next.shop-day { border-color: #3d5a80; }

.week-next {
  border: 1px solid #d7c27a;
  background: #221f12;
  color: #f3e7b2;
  border-radius: 18px;
  padding: 12px 14px;
  margin: 0 0 12px;
}
.week-next b { display: block; margin-bottom: 4px; }
.week-next .fine { color: #e6d7a4; }
.week-next .cta { margin-top: 10px; }
.week-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.week-tools h1 { margin: 0; font-size: clamp(17px, 4.2vw, 22px); }
.tool-actions { display: flex; gap: 6px; flex-wrap: nowrap; justify-content: flex-start; align-items: center; width: 100%; }
.tool-actions .slot-pill,
.tool-actions .fav-launch,
.tool-actions .admin-launch { padding: 7px 10px; font-size: 13px; white-space: nowrap; }
.fav-launch, .admin-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 36px;
  border-radius: 999px;
  padding: 0 12px;
  line-height: 1;
  font-weight: 700;
}
.fav-launch {
  border: 1px solid #d7c27a;
  background: #221f12;
  color: #f3e7b2;
}
.home-launch { display: none; }
@media (max-width: 979px) {
  .home-launch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    line-height: 0;
    border-radius: 999px;
    border: 1px solid #d7c27a;
    background: #221f12;
    color: #f3e7b2;
  }
  .home-launch svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}
@media (max-width: 979px) and (display-mode: standalone) {
  .home-launch { display: none; }
}
html.installed .home-launch { display: none; }
.admin-launch {
  border: 1px solid #8fd9c0;
  background: #10241e;
  color: #d7fff2;
}
.fav-modal { place-items: center; padding: 16px; }
.fav-sheet {
  border-radius: 24px;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: min(86dvh, 760px);
}
.fav-search { display: block; margin: 8px 0 0; }
.fav-search input {
  width: 100%;
  background: #0e100c;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.fav-filters { display: flex; gap: 6px; overflow-x: auto; margin: 10px 0 0; }
.fav-filters button {
  border: 1px solid var(--line);
  background: #12140f;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  white-space: nowrap;
}
.fav-filters button.on { background: var(--mint); color: var(--ink); border-color: transparent; }
.fav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  overflow: auto;
  max-height: min(52vh, 420px);
  margin-top: 12px;
  align-content: start;
}
.fav-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 96px;
  text-align: left;
  background: #12140f;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  color: var(--text);
}
.fav-tile span { font-size: 28px; line-height: 1; }
.fav-tile b {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fav-back { border: 0; background: transparent; color: var(--mint); padding: 0; font-weight: 650; }
.fav-hero { text-align: center; padding: 6px 8px 2px; }
.fav-hero span { display: block; font-size: 52px; line-height: 1; }
.fav-hero h3 { margin: 8px 0 0; font-size: 22px; }
.fav-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 4px; }
.fav-slots button {
  border: 1px solid var(--line);
  background: #12140f;
  color: var(--text);
  border-radius: 14px;
  padding: 12px 8px;
  font-weight: 700;
}
.fav-slots button.on { background: var(--mint); color: var(--ink); border-color: transparent; }
.fav-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 14px;
}
.fav-day {
  border: 1px solid var(--line);
  background: #12140f;
  color: var(--text);
  border-radius: 14px;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.fav-day small { color: var(--muted); font-size: 10px; letter-spacing: 0.03em; text-transform: uppercase; }
.fav-day b { font-size: 16px; }
.fav-day.on { background: var(--mint); color: var(--ink); border-color: transparent; }
.fav-day.on small { color: var(--ink); }
.fav-sheet .cta:disabled { opacity: 0.45; }
.fav-sheet .text-btn { margin-top: 8px; }
.store-picks { border: 0; padding: 0; margin: 0; }
.store-picks legend { padding: 0; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.store-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.profile-form label.store-mini-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 6px 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #12140f;
  color: var(--text);
  text-align: center;
  cursor: pointer;
}
.store-mini-card .mark { width: 100%; height: 34px; padding: 4px; border-radius: 8px; }
.store-mini-card .mark img { max-height: 24px; }
.store-mini-card b { font-size: 11px; font-weight: 650; line-height: 1.2; }
.profile-form .store-mini-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.store-mini-card:has(input:checked),
.store-mini-card.on {
  border-color: var(--mint);
  box-shadow: inset 0 0 0 1px var(--mint);
}
.fit-panel { min-width: 0; background: var(--card); border-radius: 22px; padding: 14px; margin: 0 0 12px; }
.fit-panel h2 { margin: 0 0 10px; font-size: 16px; }
.fit-label { margin: 12px 0 8px; color: var(--muted); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.fit-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.fit-cat {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 8px;
  align-items: center;
  text-align: left;
  background: #12140f;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  color: var(--text);
}
.fit-cat span { grid-column: 1 / -1; font-size: 18px; letter-spacing: 0.08em; line-height: 1; }
.fit-cat b { font-size: 15px; font-weight: 700; }
.fit-cat small { color: var(--muted); font-size: 13px; }
.fit-cat.on { border-color: var(--mint); background: #1a2a20; color: var(--mint-2); }
.fit-cat.on small { color: var(--mint); }
.fit-slide { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fit-arrow {
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #1a1d16;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}
.fit-arrow[hidden] { display: none; }
@media (max-width: 979px) {
  .fit-arrow { display: none; }
}
.fit-rail {
  display: flex;
  flex: 1;
  width: auto;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 2px 2px 4px;
  cursor: grab;
}
.fit-rail::-webkit-scrollbar { display: none; }
.fit-rail.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.fit-chip {
  display: flex;
  flex: 0 0 108px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-height: 86px;
  scroll-snap-align: start;
  background: #12140f;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  color: var(--text);
  text-align: left;
}
.fit-chip span { font-size: 22px; line-height: 1; }
.fit-chip b {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fit-chip.on { border-color: var(--mint); background: #1a2a20; color: var(--mint-2); }
.fit-picked {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 8px;
}
.fit-picked span { font-size: 22px; }
.fit-picked b { font-size: 16px; }
.fit-picked small { color: var(--muted); }
.fit-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; align-items: center; }
.fit-add input { width: 100%; background: #12140f; border: 1px solid var(--line); border-radius: 14px; padding: 12px; color: var(--text); }
.fit-add .cta { width: auto; margin: 0; padding: 12px 18px; }
.fit-entry {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
}
.fit-emoji { font-size: 22px; }
.fit-entry small { display: block; color: var(--muted); }
.fit-entry em { font-style: normal; font-weight: 700; color: var(--mint); }
.fit-mins { display: flex; flex-wrap: wrap; gap: 8px; }
.fit-mins button { border: 1px solid var(--line); background: #12140f; color: var(--text); border-radius: 999px; padding: 8px 12px; }
.fit-mins button.on { background: var(--mint); color: var(--ink); border-color: transparent; }
.fit-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; align-items: center; }
.fit-row input { width: 100%; background: #12140f; border: 1px solid var(--line); border-radius: 14px; padding: 12px; color: var(--text); }
.fit-row .cta { width: auto; margin: 0; padding: 12px 16px; white-space: nowrap; }
.fit-log { display: grid; grid-template-columns: 32px 1fr auto auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.fit-log span b, .fit-log small { display: block; }
.fit-log small { color: var(--muted); }
.salt { margin: 10px 0 0; }
.salt .band { height: 6px; }
.macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 18px; }
.macros div { background: var(--card); border-radius: 14px; padding: 10px; text-align: center; }
.macros b { display: block; font-family: Fraunces, Georgia, serif; font-size: 20px; white-space: nowrap; }
.macros span { color: var(--muted); font-size: 12px; }
.pantry, .barcode-hit {
  display: none;
  grid-template-columns: 1fr 72px 40px;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.pantry.show, .barcode-hit { display: grid; }
.equip.on {
  background: var(--card);
  color: var(--text);
  border-color: var(--mint);
  box-shadow: inset 0 0 0 2px var(--mint);
}
.pantry button, .barcode-hit button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--mint);
  color: var(--ink);
  font-weight: 800;
}
.pantry small, .barcode-hit small { display: block; color: var(--muted); }
.mini, .profile-form input, .profile-form select, .barcode-row input {
  width: 100%;
  background: #12140f;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  color: var(--text);
}
.profile-form select {
  color-scheme: light;
  background-color: #f4f5ef;
  color: #102117;
}
.profile-form option {
  background-color: #f4f5ef;
  color: #102117;
}
.barcode-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.profile-head { display: flex; gap: 16px; align-items: center; margin: 8px 0 18px; }
.profile-id { min-width: 0; }
.profile-id h1 { margin: 0; font-size: 32px; letter-spacing: -0.03em; line-height: 1.05; }
.profile-id .lead { margin: 6px 0 0; }
.profile-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.profile-body input {
  font-family: Fraunces, Georgia, serif;
  font-size: 26px;
  letter-spacing: -0.03em;
  padding: 12px 10px;
}
.profile-cup {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 8px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 12px;
  padding: 8px 12px 8px 8px;
  border-radius: 16px;
  background: #221f12;
  border: 1px solid #d7c27a;
}
.profile-cup .cup, .profile-cup .cup-face { font-size: 20px; line-height: 1; }
.profile-cup small { display: block; color: #f3e7b2; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.profile-cup b { display: block; margin-top: 1px; font-size: 15px; }
.profile-actions .redo-btn {
  width: 100%;
  background: #8fd4ae;
  color: #102117;
  border: 0;
  border-radius: 999px;
  padding: 14px 14px;
  font-weight: 800;
}
.avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  background: #1a2a20;
  display: grid;
  place-items: center;
  position: relative;
  cursor: pointer;
  flex: 0 0 auto;
  border: 2px solid var(--mint);
}
.avatar img, .avatar span { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; font-size: 32px; }
.avatar input { display: none; }
.avatar small {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  text-align: center;
  font-size: 11px;
  padding: 3px 0 5px;
}
.profile-form label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.home-shell {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
.home-section { gap: 10px; }
.home-empty { margin: 0; font-size: 12px; }
.home-member-list,
.home-request-list {
  display: grid;
  gap: 8px;
}
.home-person,
.home-request {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0f110d;
}
.home-person .who, .home-request .who, .admin-card .who { display: grid; gap: 2px; min-width: 0; }
.home-person small, .home-request small, .admin-card small { color: var(--muted); font-size: 12px; }
.home-person b, .home-request b { font-size: 14px; }
.home-actions { display: flex; gap: 6px; align-items: center; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.home-actions .ghost, .home-actions .text-btn { width: auto; margin: 0; padding: 7px 10px; font-size: 12px; }
.home-invite { display: grid; gap: 8px; margin: 0; }
.home-invite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.home-invite-at {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.home-at-prefix {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  padding-left: 2px;
}
.home-section .settings-card-lead b {
  color: var(--text);
  font-weight: 700;
}
.home-invite-row input {
  width: 100%;
  box-sizing: border-box;
  background: #12140f;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.home-invite-row .ghost {
  width: auto;
  margin: 0;
  padding: 10px 14px;
  white-space: nowrap;
}
.home-sync-list { display: grid; gap: 10px; }
.home-sync-row {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0f110d;
}
.home-sync-row .who { display: grid; gap: 2px; }
.home-sync-row .who small { color: var(--muted); font-size: 12px; }
.home-sync-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.home-sync-actions .ghost,
.home-sync-actions .text-btn {
  width: 100%;
  margin: 0;
  padding: 9px 8px;
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
}
.home-danger-zone {
  margin-top: 8px;
  padding: 14px 4px 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  text-align: center;
}
.home-leave-ask {
  margin: 0 auto;
  padding: 4px 8px;
  font-size: 12px;
  color: #c98888;
}
.home-shell .home-confirm { margin: 0; }
.home-quiet { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.home-quiet .text-btn { width: auto; margin: 0; padding: 0; }
.danger-link { color: #e7a3a3; }
.meals-hint {
  margin: -6px 0 10px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.meals-board {
  display: grid;
  gap: 10px;
}
.meals-day { gap: 8px; padding-bottom: 10px; }
.meals-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 2px;
}
.meals-day-head b {
  font-size: 15px;
  text-transform: capitalize;
}
.meals-day-head span {
  font-size: 12px;
  color: var(--muted);
}
.meals-day-slots { display: grid; gap: 6px; }
.meal-slot { display: grid; gap: 4px; }
.meal-slot-acts {
  display: flex;
  justify-content: flex-end;
  gap: 4px 10px;
  padding: 0 6px 2px;
}
.meal-slot-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 4px;
  cursor: pointer;
}
.meal-slot-link:active { opacity: 0.75; }
.meal-slot-clear { color: #c98888; }
.swap-meal-compact {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 10px;
  border-radius: 14px;
}
.swap-meal-compact > span:first-child { font-size: 24px; }
.swap-meal-compact b { font-size: 14px; line-height: 1.2; }
.swap-meal-compact small { font-size: 11px; }
.meal-kcal {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--mint);
}
.swap-meal-empty.swap-meal-compact { grid-template-columns: 36px minmax(0, 1fr); }
.swap-meal-empty.swap-meal-compact .swap-plus {
  width: 36px;
  height: 36px;
  font-size: 22px;
}
.admin-card { display: grid; gap: 10px; margin-top: 14px; }
.admin-who { display: flex; gap: 12px; align-items: center; }
.admin-avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none;
  background: #12140f; border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden; color: var(--mint); font-weight: 700;
}
.admin-form { display: grid; gap: 10px; }
.admin-form label { display: grid; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
.admin-form input, .admin-form textarea {
  width: 100%; background: #12140f; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; color: var(--text); font: inherit; font-weight: 500; resize: none;
}
.admin-file input { display: none; }
.admin-row { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); }
.admin-row b { display: block; }
.admin-block { margin-top: 28px; }
.admin-block h2 { margin: 0 0 8px; font-size: 22px; }
.admin-block-top { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.admin-block-top h2 { margin: 0; }
.admin-search-wrap { display: grid; gap: 6px; margin: 18px 0 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
.admin-search-wrap input {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: #171910; color: inherit; font: inherit;
}
.admin-post { display: grid; gap: 10px; margin-top: 14px; }
.admin-post-head b { display: block; font-size: 17px; }
.admin-post-head small { color: var(--muted); font-size: 13px; }
.admin-thread { display: grid; gap: 8px; padding: 10px 0 2px; border-top: 1px solid var(--line); }
.admin-note {
  display: flex; gap: 12px; align-items: flex-start; justify-content: space-between;
  padding: 10px 12px; border-radius: 14px; background: #171910; border: 1px solid var(--line);
}
.admin-note b { display: block; }
.admin-note small { color: var(--muted); font-size: 12px; }
.admin-note p { margin: 4px 0 0; white-space: pre-wrap; }
.admin-fails { display: grid; gap: 8px; margin-top: 10px; }
.admin-fail {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 14px; background: #171910; border: 1px solid var(--line);
}
.admin-fail b { display: block; }
.admin-fail small { color: var(--muted); font-size: 12px; }
.admin-fail span { color: #e8b4a0; font-size: 13px; white-space: nowrap; }
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 4px;
}
.admin-tabs .chip,
.admin-sort .chip {
  border: 1px solid var(--line);
  background: #12140f;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.admin-tabs .chip.on,
.admin-sort .chip.on {
  background: #1a2a20;
  color: var(--mint);
  border-color: transparent;
}
.admin-sort { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 720px) {
  .admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.admin-stat {
  background: #171910;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 14px 12px;
  display: grid;
  gap: 4px;
}
.admin-stat b {
  font-family: Fraunces, Georgia, serif;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.admin-stat span { font-size: 13px; font-weight: 650; }
.admin-stat small { color: var(--muted); font-size: 12px; }
.admin-chart {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 8px;
  background: #12140f;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px 6px 4px;
}
.admin-ranks { display: grid; gap: 8px; }
.admin-rank {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #171910;
}
.admin-rank span { color: var(--muted); font-size: 13px; }
.admin-user-clears {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.admin-clear-grid { display: grid; gap: 10px; margin-top: 12px; }
.admin-clear-card {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #171910;
}
.admin-clear-card .fine { margin: 4px 0 0; }
.admin-clear-card .ghost {
  flex: none;
  width: auto;
  margin: 0;
  padding: 10px 14px;
}
.admin-clear-card .danger-cta {
  background: #5a2a2a;
  color: #ffd4d4;
  border-color: transparent;
}
.water-sips { display: flex; flex-wrap: wrap; gap: 8px; }
.water-sip {
  display: grid; gap: 2px; justify-items: center; min-width: 72px; padding: 10px 12px;
  border-radius: 16px; border: 1px solid rgba(110, 184, 220, 0.28); background: rgba(40, 78, 98, 0.28);
  color: inherit; font: inherit; cursor: pointer;
}
.water-sip span { font-size: 22px; line-height: 1; }
.water-sip b { font-size: 14px; }
.water-sip small { color: #9ec9df; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.water-sip:active { transform: scale(0.97); opacity: 0.85; }
.hello { margin: 0 0 10px; }
.home-actions { display: flex; gap: 8px; }
.home-actions .ghost, .home-actions .danger-btn { width: auto; margin-top: 0; }
.profile-actions { display: grid; gap: 12px; margin-top: 22px; }
.profile-actions .ghost, .profile-actions .danger-btn { width: 100%; }
.profile-actions .danger-btn { padding: 12px 8px; }
.plan-confirm {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #171910;
  display: grid;
  gap: 10px;
}
.plan-confirm b { font-size: 16px; }
.plan-confirm-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan-confirm-acts .ghost,
.plan-confirm-acts .cta { width: 100%; margin: 0; }
.plan-confirm-acts .cta.danger-cta,
.composer-actions .cta.danger-cta,
.drop-acts .cta.danger-cta {
  background: #5a2a2a;
  color: #ffd4d4;
}
.home-confirm { margin-top: 16px; }
.drop-modal {
  place-items: center;
  padding: 20px 16px;
  background: rgba(0, 0, 0, 0.72);
}
.drop-sheet {
  width: min(380px, 100%);
  max-height: none;
  border-radius: 22px;
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  background: #171910;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
.drop-sheet .kicker { margin: 0 0 8px; }
.drop-sheet h2 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.drop-sheet .fine { margin: 0 0 10px; }
.drop-sheet .drop-warn { color: #e2c98a; }
.drop-acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}
.drop-acts .ghost,
.drop-acts .cta {
  width: 100%;
  margin: 0;
}
.page-end { display: block; margin: 18px 0 8px; }
.delete-below { width: 100%; margin: 4px 0 18px; }
.cam-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #12140f;
  color: var(--mint);
  display: grid;
  place-items: center;
}
.scanner .scan-sheet { max-width: min(460px, 100%); }
.scanner .scan-stage {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 3 / 4;
  max-height: min(68vh, 560px);
}
.scanner video {
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: #000;
  min-height: 0;
  max-height: none;
  object-fit: cover;
}
.scan-frame {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 36%;
  height: 28%;
  border: 2px solid var(--mint);
  border-radius: 14px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.scan-frame::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  background: rgba(143, 212, 174, 0.85);
  transform: translateY(-50%);
  animation: scanPulse 1.2s ease-in-out infinite;
}
@keyframes scanPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
.scan-status { margin: 8px 0 0; text-align: center; }
.health-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.health-top h1 { margin: 0; }
.health-switch { display: flex; padding: 4px; border-radius: 999px; background: #171910; border: 1px solid var(--line); }
.health-switch button { border: 0; background: transparent; color: inherit; border-radius: 999px; padding: 9px 15px; font: inherit; }
.health-switch.triple { gap: 2px; }
.health-switch.triple button { padding: 9px 11px; font-size: 13.5px; letter-spacing: -0.02em; }
.health-switch button.on { background: var(--mint); color: #12140f; }
.water-hero {
  margin: 0 0 16px;
  padding: 22px 18px 20px;
  border-radius: 28px;
  background:
    radial-gradient(420px 180px at 50% -40px, rgba(110, 180, 220, 0.22), transparent 60%),
    linear-gradient(165deg, #121820 0%, #14160f 55%, #10140f 100%);
  border: 1px solid #2d3a42;
  text-align: center;
}
.water-hero .kicker { color: #9ec9df; }
.water-ring {
  --water-pct: 0;
  width: min(220px, 70vw);
  aspect-ratio: 1;
  margin: 10px auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, #101820 58%, transparent 59%),
    conic-gradient(#6eb8dc calc(var(--water-pct) * 1%), #243038 0);
  box-shadow: inset 0 0 0 1px rgba(158, 201, 223, 0.18);
}
.water-glass {
  width: 72%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(160deg, #1a2630 0%, #121820 100%);
  color: var(--text);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.water-glass:active { transform: scale(0.97); }
.water-ico { font-size: 42px; line-height: 1; filter: drop-shadow(0 8px 16px rgba(110, 184, 220, 0.35)); }
.water-glass b { font-size: 22px; letter-spacing: -0.03em; }
.water-glass small { color: #9ec9df; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.water-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}
.water-stats div {
  padding: 12px 8px;
  border-radius: 16px;
  background: rgba(16, 24, 32, 0.72);
  border: 1px solid #2c3842;
}
.water-stats b { display: block; font-family: Fraunces, Georgia, serif; font-size: 22px; line-height: 1.1; }
.water-stats span { color: var(--muted); font-size: 12px; }
.water-bar {
  height: 10px;
  border-radius: 999px;
  background: #1c262e;
  overflow: hidden;
  margin: 0 0 10px;
}
.water-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f9fbf, #9ec9df);
}
.water-manual { margin-bottom: 10px; }
.water-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}
.water-quick .ghost { padding: 8px 12px; border-radius: 999px; }
.gram-ask { margin-top: 12px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: #14160f; }
.gram-ask > b { display: block; margin: 4px 0 8px; }
.gram-ask > .fine { margin: 0 0 12px; }
.gram-ask label {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gram-ask input {
  width: 100%;
  box-sizing: border-box;
  background: #10130e;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  color: var(--text);
  color-scheme: dark;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--mint);
  font: inherit;
  font-size: 18px;
}
.gram-ask input::placeholder {
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  opacity: 1;
}
.gram-ask input:focus {
  outline: none;
  border-color: #6f8f6a;
}
.gram-actions { display: flex; gap: 8px; }
.gram-actions .cta { flex: 1; }
.steps li { margin: 10px 0; line-height: 1.45; }
.delta.down { color: var(--mint); }
.delta.up { color: #e0a15a; }
.big.pop { animation: pop 0.55s ease; }
@keyframes pop { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.weight-chart .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawline 1.1s ease forwards;
}
@keyframes drawline { to { stroke-dashoffset: 0; } }

@media print {
  .tabbar, .side, .dock, .top, .tour, .no-print { display: none !important; }
  body { background: white; color: black; }
  .shell, .view { width: auto; padding: 0; }
}

.plan-top, .shop-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 8px;
}
.plan-top h1, .built h1, .shop-head h1 { margin: 0 0 4px; font-size: clamp(26px, 7vw, 34px); line-height: 1.05; }
.hello-line { margin: 0 0 6px; color: var(--mint); font-weight: 650; }
.week-facts, .week-span { margin: 0; }
.week-span { margin-top: 2px; }
.flame { font-size: 14px; }
.pulse { display: flex; flex-direction: column; gap: 6px; min-width: 108px; }
.pulse button, .pulse div {
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 6px;
  align-items: center;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  line-height: 1.05;
}
.shop-head .pulse div { grid-template-columns: 1fr; text-align: right; }
.shop-head .pulse small { grid-column: 1; }
.pulse small { grid-column: 2; color: var(--muted); font-size: 11px; }
.day-pills, .slot-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 12px;
  scrollbar-width: none;
}
.day-pill, .slot-pill {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 16px;
  min-width: 52px;
  padding: 8px 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.slot-pill { border-radius: 999px; flex: 0 0 auto; flex-direction: row; padding: 8px 14px; white-space: nowrap; min-width: max-content; }
.day-pill small { color: var(--muted); font-size: 11px; text-transform: lowercase; }
.day-pill b { font-size: 18px; line-height: 1; }
.day-pill i { color: var(--mint); font-style: normal; font-size: 12px; height: 14px; }
.day-pill.on, .slot-pill.on { background: var(--mint); color: var(--ink); border-color: transparent; }
.day-pill.on small, .day-pill.on i { color: #24513a; }
.meals-head, .day-block h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 4px 0 8px; }
.meals-head h2, .day-block h2 { margin: 0; font-size: 18px; }
.meals-head span { color: var(--muted); font-size: 13px; }
.dish {
  background: var(--card);
  border-radius: 22px;
  padding: 12px;
  margin: 0 0 12px;
}
.dish-top { display: grid; grid-template-columns: 92px 1fr; gap: 12px; }
.dish-pic, .dish-copy {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: inherit;
}
.dish-pic { position: relative; width: 92px; height: 92px; border-radius: 16px; overflow: hidden; }
.dish-pic img, .recipe-hero, .shop-card img, .plate-choice img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dish-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}
.dish-copy { width: 100%; }
.dish-copy b { display: block; margin: 4px 0; font-size: 17px; line-height: 1.2; }
.dish-kcal, .dish-pro { display: block; font-size: 13px; }
.dish-pro { color: var(--mint); }
.dish-foot { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.dish-cta {
  flex: 1;
  border: 0;
  border-radius: 999px;
  background: #245c3a;
  color: #f4fff6;
  padding: 10px 14px;
  font-weight: 650;
}
.dish-cta.done { background: #243028; color: var(--mint); }
.recipe-hero { height: 210px; border-radius: 22px; margin: 8px 0 12px; object-fit: cover; }
.shop-card {
  width: 100%;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  background: var(--card);
  border: 0;
  border-radius: 18px;
  padding: 8px;
  margin-bottom: 8px;
}
.shop-end { display: flex; align-items: center; gap: 8px; }
.shop-card img, .shop-ico { width: 64px; height: 64px; border-radius: 14px; }
.shop-ico {
  display: grid;
  place-items: center;
  background: #12140f;
  font-size: 28px;
}
.shop-card b, .shop-card small { display: block; }
.shop-card small { color: var(--muted); margin-top: 2px; }
.shop-card em { font-style: normal; font-weight: 700; }
.shop-card.done span { color: var(--muted); text-decoration: line-through; }
.round-tick {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #5c6154;
  display: grid;
  place-items: center;
  font-style: normal;
  color: var(--ink);
}
.shop-card.done .round-tick { background: var(--mint); border-color: var(--mint); }
.built { margin-bottom: 18px; }
.built > p { color: var(--muted); }
.built-ask, .built-days {
  background: var(--card);
  border-radius: 18px;
  padding: 14px;
  margin: 12px 0;
}
.built-ask p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.built-ask div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.built-ask b, .built-days b { display: block; font-size: 28px; }
.built-ask small { color: var(--muted); }
.built-days > p { margin: 0 0 8px; }
.built-days div { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 8px; align-items: center; padding: 6px 0; }
.built-days i { color: var(--muted); font-style: normal; }
.built-days .ok i { color: var(--mint); }
.built-days em { color: var(--muted); font-style: normal; }
.plate-choice { display: grid; grid-template-columns: 56px 1fr auto; }
.plate-choice img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.cal-pills { margin-top: 8px; }

.body-calc { margin: 8px 0 16px; max-width: 100%; }
.body-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.body-card {
  background: var(--card);
  border-radius: 22px;
  padding: 14px 14px 12px;
  min-width: 0;
}
.body-num { margin: 4px 0 8px; display: flex; align-items: baseline; gap: 6px; }
.body-num b {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(32px, 8vw, 44px);
  line-height: 0.95;
  color: var(--mint);
}
.body-num small { color: var(--muted); font-size: 13px; }
.body-tag {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  background: #1c1e16;
  color: var(--muted);
  font-size: 13px;
}
.body-tag.ok { background: #1a2a20; color: var(--mint); }
.body-tag.warn { background: #2a2414; color: var(--gold); }
.body-tag.high { background: #2a1614; color: var(--danger); }
.bmi-scale {
  position: relative;
  height: 8px;
  border-radius: 99px;
  margin: 14px 0 6px;
  background: linear-gradient(90deg, #e0a15a 0 14%, #8fd4ae 14% 40%, #f0b429 40% 60%, #ff8d7a 60% 100%);
}
.bmi-scale i {
  position: absolute;
  top: -5px;
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: #f4f5ef;
  box-shadow: 0 0 0 3px rgba(12, 13, 10, 0.45);
}
.bmi-key {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: var(--muted);
  font-size: 11px;
}
.bmi-key span:nth-child(2),
.bmi-key span:nth-child(3) { text-align: center; }
.bmi-key span:last-child { text-align: right; }
.body-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.body-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
}
.body-fields label[hidden] { display: none; }
.body-fields input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--text);
}
@media (max-width: 520px) {
  .body-pair { grid-template-columns: 1fr; }
  .body-card { padding: 14px; }
  .body-tag { font-size: 12px; }
}

.profile-switch { margin: 4px 0 18px; width: 100%; overflow-x: auto; scrollbar-width: none; }
.profile-switch::-webkit-scrollbar { display: none; }
.profile-switch button { flex: 1 0 auto; font-size: 13px; white-space: nowrap; padding: 8px 12px; }
.meal-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.meal-picks button {
  border: 1px solid var(--line);
  background: #171910;
  color: inherit;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
}
.meal-picks button.on { background: var(--mint); color: #12140f; border-color: transparent; }

.feed-top, .lib-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; }
.feed-top h1, .feed-card h2 { margin: 0; }
.feed-new, .lib-head .cta { width: auto; padding: 10px 14px; white-space: nowrap; }
.feed-list { display: grid; gap: 22px; margin-top: 8px; min-width: 0; }
.feed-card {
  animation: feedIn .55s ease both;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  overflow-wrap: anywhere;
}
.feed-who { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.feed-who div { min-width: 0; flex: 1; }
.feed-who b, .feed-who small { display: block; }
.feed-who small { color: var(--muted); font-size: 12px; }
.feed-letter {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: #243028; color: var(--mint); font-weight: 700; flex: none;
}
.feed-follow, .feed-you {
  border: 1px solid var(--line); background: transparent; color: inherit;
  border-radius: 999px; padding: 6px 10px; font: inherit; font-size: 12px;
}
.feed-follow.on { background: #1a2a20; color: var(--mint); }
.feed-photo-wrap {
  position: relative;
  width: calc(100% + 36px);
  margin: 0 -18px;
  touch-action: pan-y;
}
.feed-photo-wrap.multi { cursor: grab; }
.feed-photo-wrap.multi:active { cursor: grabbing; }
.feed-photo {
  position: relative; display: block; width: 100%; margin: 0;
  padding: 0; border: 0; background: #10120c; color: inherit; cursor: inherit;
  overflow: hidden;
}
.feed-photo > img,
.feed-rail img {
  width: 100%; height: min(68vh, 640px); object-fit: cover; display: block;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}
.feed-rail {
  display: flex;
  width: 100%;
  height: min(68vh, 640px);
  transition: transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.feed-rail.is-drag { transition: none; }
.feed-rail img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}
@media (prefers-reduced-motion: reduce) {
  .feed-rail { transition-duration: 0.01ms; }
}
.feed-count {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,.55); color: white; border-radius: 999px;
  padding: 4px 8px; font-size: 12px;
}
.feed-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  font-size: 32px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.2s ease;
}
.feed-nav.prev { left: 4px; }
.feed-nav.next { right: 4px; }
.feed-photo-wrap.multi:hover .feed-nav,
.feed-photo-wrap.multi:focus-within .feed-nav {
  color: #fff;
}
.feed-nav:active {
  color: #fff;
}
.burst {
  position: absolute; left: 50%; top: 46%;
  transform: translate(-50%, -50%) scale(.4);
  font-style: normal; font-size: 84px; color: white;
  text-shadow: 0 8px 24px rgba(0,0,0,.35);
  opacity: 0; pointer-events: none;
}
.burst.on { animation: heartPop .7s ease; }
.feed-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.feed-dots button {
  width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0;
  background: #3d4332;
}
.feed-dots button.on { background: var(--mint); }
.feed-acts { display: flex; flex-wrap: nowrap; gap: 16px; align-items: center; margin: 10px 0 6px; }
.feed-acts-end { margin-left: auto; display: flex; gap: 8px; align-items: center; flex: none; }
.feed-like, .feed-talk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  padding: 2px 0;
}
.feed-ico { font-style: normal; font-size: 26px; line-height: 1; width: 28px; text-align: center; display: inline-grid; place-items: center; }
.feed-ico svg { display: block; }
.feed-like { transition: color .15s ease; color: #f4f5ef; }
.feed-like .feed-ico { color: #f4f5ef; }
.feed-like .heart-fill { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.feed-like.on, .feed-like.on .feed-ico { color: #ff4d67; }
.feed-like.on .heart-fill { fill: currentColor; stroke: currentColor; }
.feed-like span, .feed-talk span { min-width: 1ch; }
.feed-save {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 12px;
}
.feed-save.on { border-color: var(--mint); color: var(--mint); }
.feed-trash {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
  color: #d5d8cc; display: grid; place-items: center; padding: 0; flex: none;
}
.feed-trash svg, .feed-edit svg { display: block; }
.feed-edit {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
  color: var(--mint); display: grid; place-items: center; padding: 0; flex: none;
}
.macro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.macro-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 10px; }
.macro-card {
  background: #171910;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 10px;
  min-width: 0;
}
.macro-card p {
  margin: 0 0 6px;
  color: var(--mint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.macro-card div { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.macro-card span { display: grid; min-width: 36px; }
.macro-card b { font-size: 14px; line-height: 1.1; font-weight: 700; }
.macro-card small, .macro-note { color: var(--muted); font-size: 10px; }
.macro-note { display: block; margin-top: 6px; }
.lib-card .macro-pair { grid-template-columns: 1fr; }
.feed-eat {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}
.feed-card h2 { font-size: 26px; letter-spacing: -0.03em; margin: 6px 0 10px; }
.feed-block { margin: 8px 0 12px; }
.feed-prose { white-space: pre-wrap; line-height: 1.5; margin: 6px 0 0; overflow: visible; word-break: break-word; }
.feed-ing, .feed-steps { margin: 6px 0 0; padding-left: 18px; }
.feed-ing li, .feed-steps li { margin: 3px 0; }
.feed-notes { display: grid; gap: 2px; color: var(--muted); font-size: 14px; margin-top: 12px; min-width: 0; }
.feed-note { margin: 0; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.feed-note b { color: var(--text); font-weight: 700; }
.feed-note .text-btn { display: inline; padding: 0 0 0 8px; border-radius: 0; font-size: 12px; font-weight: 600; }
.feed-older { justify-self: start; margin: 0 0 4px; padding: 0; font-size: 13px; }
.feed-reply { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; width: 100%; min-width: 0; }
.feed-reply input {
  flex: 1 1 9rem;
  min-width: 0;
  width: auto;
  background: #12140f;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.feed-reply .ghost {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  padding: 12px 14px;
  white-space: nowrap;
}
.read-more { margin: 2px 0 0; }
.feed-empty {
  margin-top: 28px; padding: 28px 8px; text-align: center;
}
.feed-empty b { display: block; font-size: 22px; margin-bottom: 8px; }
.lib-card {
  display: grid; grid-template-columns: 92px 1fr; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  animation: feedIn .45s ease both;
}
.lib-card img { width: 92px; height: 92px; object-fit: cover; border-radius: 16px; }
.lib-card b, .lib-card small { display: block; }
.lib-card small { color: var(--muted); margin-top: 2px; }
.lib-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.lib-acts .feed-trash { margin-left: auto; }
.lib-acts .ghost { width: auto; padding: 8px 12px; }
.composer h2 { margin: 0; font-size: 28px; letter-spacing: -0.03em; }
.composer-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.composer-x {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: #12140f; color: var(--text); font-size: 22px; line-height: 1; flex: none;
}
.composer form { display: grid; gap: 14px; margin-top: 16px; }
.composer-field { display: grid; gap: 6px; margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.composer-field input,
.composer-field textarea {
  width: 100%;
  background: #12140f;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  resize: none;
}
.composer-field textarea { min-height: 112px; line-height: 1.45; }
.composer-field input:focus,
.composer-field textarea:focus { border-color: var(--mint); outline: none; }
.photo-row { display: flex; gap: 10px; align-items: stretch; }
.photo-add {
  position: relative;
  width: 108px; height: 108px; flex: none;
  border-radius: 18px;
  border: 1px dashed #4d5644;
  background: #12140f;
  display: grid; place-items: center; align-content: center;
  text-align: center; color: var(--mint); cursor: pointer; gap: 0;
}
.photo-add input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.photo-add b { font-size: 28px; line-height: 1; font-weight: 600; }
.photo-add span { font-size: 12px; font-weight: 700; }
.composer-pic { position: relative; flex: none; }
.composer-pic img { width: 108px; height: 108px; object-fit: cover; border-radius: 18px; display: block; }
.composer-pic button {
  position: absolute; top: 6px; right: 6px; border: 0; border-radius: 50%;
  width: 26px; height: 26px; background: rgba(12, 13, 10, 0.78); color: white; font-size: 16px; line-height: 1;
}
.composer-actions { display: grid; gap: 8px; }
.composer-actions .cta,
.composer-actions .ghost { width: 100%; }
.composer-actions .ghost { color: var(--text); }
.eat-days { display: grid; gap: 14px; margin: 12px 0 4px; }
.eat-day h3 { margin: 0; font-size: 16px; }
.eat-day h3 small { color: var(--muted); font-weight: 500; font-size: 13px; }
.eat-day-top {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.eat-add-day { width: auto; padding: 8px 12px; font-size: 13px; border-radius: 999px; }
.eat-add-day.on { border-color: var(--mint); background: #1a2a20; color: var(--mint); }
.eat-meal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 8px;
}
.eat-meal {
  width: 100%;
  display: grid;
  gap: 2px;
  text-align: left;
  margin-bottom: 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #12140f;
  color: inherit;
  font: inherit;
}
.eat-meal-empty {
  border-style: dashed;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.eat-empty-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.eat-empty-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}
.eat-empty-copy b {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 650;
}
.eat-plus {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 300;
  color: var(--mint);
  background: rgba(120, 200, 160, 0.1);
  border: 1px dashed rgba(120, 200, 160, 0.4);
}
.eat-meal-extra {
  cursor: default;
  opacity: 0.95;
}
.eat-clear, .swap-clear {
  width: 44px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #1a1414;
  color: #c98989;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.eat-meal small { color: var(--muted); font-size: 12px; }
.eat-meal b { font-size: 16px; }
.eat-meal.on { border-color: var(--mint); background: #1a2a20; }
.read-more {
  margin-top: 8px;
  border: 1px solid var(--line);
  background: #171910;
  color: var(--mint);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
.recipe-search { display: grid; gap: 6px; margin: 12px 0 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
.recipe-search input {
  width: 100%;
  background: #12140f;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
}
.swap-day { margin: 0 0 18px; }
.swap-day h2 { margin: 0 0 8px; font-size: 18px; text-transform: capitalize; }
.swap-day h2 small { display: inline; margin-left: 6px; color: var(--muted); font-size: 13px; font-weight: 500; text-transform: none; }
.swap-meal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: stretch;
  margin: 0 0 8px;
}
@media (max-width: 520px) {
  .home-sync-actions { grid-template-columns: 1fr; }
}
.swap-meal, .swap-hit {
  width: 100%;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  color: inherit;
  border-radius: 18px;
  padding: 12px;
  margin: 0;
}
.swap-meal-empty {
  border-style: dashed;
  background: transparent;
}
.swap-plus {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 300;
  color: var(--mint);
  background: rgba(120, 200, 160, 0.1);
  border: 1px dashed rgba(120, 200, 160, 0.4);
}
.swap-hit { grid-template-columns: 40px minmax(0, 1fr); margin: 0 0 8px; }
.swap-meal > span:first-child, .swap-hit > span:first-child { font-size: 28px; line-height: 1; }
.swap-meal small, .swap-hit small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.swap-meal b, .swap-hit b { display: block; font-size: 16px; line-height: 1.25; }
.swap-meal i { font-style: normal; color: var(--mint); font-size: 13px; font-weight: 700; white-space: nowrap; }
.pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 14px 0 6px;
}
.pages button, .pages span {
  min-width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #12140f;
  color: inherit;
  font: inherit;
}
.pages span { display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); }
.pages button.on { background: var(--mint); color: #12140f; border-color: transparent; font-weight: 700; }
@keyframes feedIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes heartPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  35% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.35); }
}

.pantry-wrap { max-width: 640px; }
.pantry-title { margin: 0 0 6px; font-size: 1.35rem; }
.pantry-lead { margin-bottom: 14px; }
.pantry-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
  max-height: 200px;
  overflow-y: auto;
}
.pantry-food {
  border: 1px solid var(--line);
  background: #171910;
  color: inherit;
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
}
.pantry-food.on { background: var(--mint); color: #12140f; border-color: transparent; }
.pantry-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pantry-chip {
  border: 1px solid var(--mint);
  background: rgba(168, 214, 140, 0.12);
  color: inherit;
  border-radius: 999px;
  padding: 6px 11px;
  font: inherit;
  font-size: 12.5px;
}
.pantry-meals, .pantry-diets { margin: 8px 0 4px; flex-wrap: wrap; }
.pantry-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; align-items: center; }
.pantry-actions .cta { flex: 1 1 180px; }
.pantry-results { display: grid; gap: 14px; margin-top: 16px; }
.pantry-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #171910;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  width: 100%;
}
.pantry-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}
.pantry-card h3 { margin: 0 0 4px; font-size: 1rem; line-height: 1.25; }
.pantry-card-body { min-width: 0; }
.pantry-sheet { max-height: 92vh; overflow-y: auto; }
@media (max-width: 420px) {
  .pantry-card { grid-template-columns: 72px 1fr; }
  .pantry-card img { width: 72px; height: 72px; }
}

.settings-mini-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.settings-mini-btns .ghost { flex: 1 1 calc(50% - 8px); min-width: 120px; padding: 10px 12px; font-size: 13px; }
.settings-email-warn { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: rgba(232, 180, 160, 0.12); border: 1px solid rgba(232, 180, 160, 0.35); }
.legal-sheet .sheet-body { max-height: 65vh; overflow-y: auto; font-size: 14px; line-height: 1.5; }
.legal-sheet .sheet-body p { margin: 0 0 12px; }
/* ---- paywall: abonamentul a expirat, nimic altceva nu se vede ---- */
.paywall { display: flex; flex-direction: column; min-height: 100dvh; }
.paywall-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 18px 0;
}
.paywall-top .brand { padding-top: 0; }
.paywall-top .brand strong { font-size: 22px; }
.paywall-top .logo { width: 36px; height: 36px; border-radius: 11px; }
.paywall-body { padding-top: 18px; padding-bottom: calc(40px + var(--safe-b)); }
.paywall-body h1 { font-size: 30px; }
.pw-badge {
  display: inline-block; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  background: rgba(240, 180, 41, 0.14); color: var(--gold);
}
.pw-badge.warn { background: rgba(255, 141, 122, 0.14); color: var(--danger); }
.pw-card {
  position: relative; margin: 6px 0 18px; padding: 22px 20px 18px; border-radius: 24px;
  border: 1px solid rgba(143, 212, 174, 0.4);
  background: radial-gradient(420px 180px at 50% -40px, rgba(143, 212, 174, 0.16), transparent 70%), linear-gradient(165deg, #1b1e15, #12140f);
  box-shadow: var(--shadow);
}
.pw-plan { font-family: Fraunces, Georgia, serif; font-size: 20px; font-weight: 700; color: var(--mint-2); }
.pw-price { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 14px; }
.pw-price b { font-size: 56px; line-height: 1; letter-spacing: -0.04em; }
.pw-price span { font-size: 20px; font-weight: 700; color: var(--mint); }
.pw-price small { color: var(--muted); font-size: 14px; margin-left: 2px; }
.pw-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.pw-list li { position: relative; padding-left: 28px; line-height: 1.35; font-size: 14.5px; }
.pw-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: rgba(143, 212, 174, 0.18); color: var(--mint);
}
.pw-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 4px; }
.pw-opt {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left;
  padding: 12px 12px 11px; border-radius: 16px; border: 1.5px solid var(--line);
  background: #14160f; color: var(--text); font: inherit; cursor: pointer; min-width: 0;
}
.pw-opt .pw-opt-name { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.pw-opt b { font-size: 20px; letter-spacing: -0.02em; line-height: 1.1; }
.pw-opt b small { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.pw-opt em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--mint); line-height: 1.25; }
.pw-opt.on { border-color: var(--mint); background: rgba(143, 212, 174, 0.1); box-shadow: 0 0 0 1px rgba(143, 212, 174, 0.35) inset; }
.pw-opt.on .pw-opt-name { color: var(--mint); }
.settings-group-body .pw-opts { margin-top: 12px; }
.pw-pay { width: 100%; font-size: 17px; padding: 17px 18px; }
.pw-refresh { width: 100%; margin-top: 10px; }
.pw-note { margin: 12px 0 0; text-align: center; }
.pw-notready { margin: 0 0 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 141, 122, 0.1); }
.pw-secure, .pw-safe { text-align: center; margin: 0 0 8px; }
.pw-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin-top: 10px; }
.pw-links .text-btn { height: 34px; font-size: 13px; color: var(--muted); }

/* ---- Setări → Abonament ---- */
.bill-card {
  padding: 14px 14px 12px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(165deg, #1a1c14, #141610);
}
.bill-card b { display: block; font-size: 15px; }
.bill-card p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.bill-card.ok { border-color: rgba(143, 212, 174, 0.45); }
.bill-card.ok p { color: var(--mint); }
.bill-card.warn { border-color: rgba(240, 180, 41, 0.5); }
.bill-card.warn p { color: var(--gold); }
.bill-card.bad { border-color: rgba(255, 141, 122, 0.5); }
.bill-card.bad p { color: var(--danger); }
.settings-group-body > .bill-card:first-child { margin-top: 12px; }

/* ---- Setări → Plăți & email (admin) ---- */
.settings-group-admin > summary { color: var(--gold); }
.pp-panel { display: grid; gap: 4px; padding-top: 12px; }
.pp-h { margin: 18px 0 8px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pp-status { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pp-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: #15170f; }
.pp-row i {
  flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 12px; font-weight: 800;
}
.pp-row.ok i { background: rgba(143, 212, 174, 0.2); color: var(--mint); }
.pp-row.bad i { background: rgba(255, 141, 122, 0.2); color: var(--danger); }
.pp-row b { display: block; font-size: 13.5px; }
.pp-row small { display: block; margin-top: 2px; color: var(--muted); word-break: break-all; font-size: 12px; }
.pp-error { color: var(--danger); margin: 8px 0 0; }
.pp-tests { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pp-tests .ghost { flex: 1 1 140px; padding: 11px 12px; font-size: 13px; }
.pp-msg { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.4; }
.pp-msg.ok { background: rgba(143, 212, 174, 0.12); color: var(--mint); }
.pp-msg.bad { background: rgba(255, 141, 122, 0.12); color: var(--danger); }
.pp-form { margin-top: 16px; }
.pp-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pp-steps { display: grid; gap: 8px; }
.pp-step { border: 1px solid var(--line); border-radius: 14px; background: #15170f; }
.pp-step > summary { cursor: pointer; padding: 12px 14px; font-weight: 700; font-size: 14px; list-style: none; }
.pp-step > summary::-webkit-details-marker { display: none; }
.pp-step[open] > summary { color: var(--mint); }
.pp-panel, .pp-step, .pp-step-body { min-width: 0; max-width: 100%; }
.pp-step-body { padding: 0 14px 14px; font-size: 13.5px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.pp-step-body p { margin: 0 0 10px; }
.pp-lbl { margin: 10px 0 4px !important; font-weight: 700; }
.pp-code {
  display: flex; align-items: flex-start; gap: 8px; padding: 10px 10px 10px 12px; border-radius: 12px;
  background: #0b0c08; border: 1px solid var(--line);
}
.pp-code { min-width: 0; max-width: 100%; }
.pp-code code { flex: 1; min-width: 0; white-space: pre-wrap; word-break: break-all; font-size: 12px; color: var(--mint-2); font-family: ui-monospace, Consolas, monospace; }
.pp-copy {
  flex: 0 0 auto; border: 1px solid rgba(143, 212, 174, 0.45); background: rgba(143, 212, 174, 0.08);
  color: var(--mint); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 700;
}
.pp-events { margin: 0; padding-left: 18px; }
.pp-events code { font-size: 12px; color: var(--mint-2); }
.pp-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pp-log li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: #15170f; font-size: 12px; }
.pp-log small { color: var(--muted); }
.pp-log span { color: var(--muted); word-break: break-word; }
.admin-billing { display: grid; gap: 10px; max-width: 420px; }
.admin-billing label { display: grid; gap: 4px; }
.admin-switch { display: flex; align-items: center; gap: 10px; }

.settings-pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.settings-pill {
  flex: 1 1 calc(50% - 8px); min-width: 130px; padding: 11px 12px; border-radius: 14px;
  border: 1px solid var(--line); background: #171910; color: inherit; font: inherit; font-size: 13px;
  font-weight: 600; text-align: left; cursor: pointer;
}
.settings-pill-accent { border-color: rgba(143, 212, 174, 0.45); background: rgba(143, 212, 174, 0.08); }
.settings-sub-line { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: rgba(158, 201, 223, 0.08); }
.settings-pass-card .settings-pass-form { gap: 10px; }
.settings-pass-submit { width: 100%; margin-top: 4px; margin-bottom: 14px; }
.settings-below .settings-card label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.settings-below .settings-card input,
.settings-below .settings-card select,
.settings-below .settings-card textarea {
  font-size: 15px; padding: 9px 10px; border-radius: 14px; border: 1px solid var(--line);
  background: #0c0d0a; color: inherit; font: inherit; width: 100%;
}

.hf-form { display: grid; gap: 14px; }
.hf-field {
  display: flex; flex-direction: column; gap: 8px; margin: 0;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}
.hf-field > span { line-height: 1.2; }
.hf-field small.fine {
  text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 2px;
}
.hf-input, .hf-textarea {
  width: 100%; box-sizing: border-box; margin: 0;
  font-family: Outfit, system-ui, sans-serif; font-size: 15px; font-weight: 500; line-height: 1.4;
  padding: 12px 14px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0b08; color: #f2f4ec;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none; appearance: none;
}
.hf-input::placeholder, .hf-textarea::placeholder { color: #6b7164; font-weight: 400; opacity: 1; }
.hf-input:focus, .hf-textarea:focus {
  outline: none; border-color: rgba(143, 212, 174, 0.55);
  box-shadow: 0 0 0 3px rgba(143, 212, 174, 0.14);
}
.hf-textarea { min-height: 132px; max-height: 220px; resize: vertical; line-height: 1.5; }
.support-modal .modal { align-items: flex-end; }
.support-sheet {
  max-width: min(440px, 94vw); width: 100%; margin: 0 auto;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #1a1c15 0%, #12140f 100%);
}
.support-head { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.support-head h2 { margin: 0 0 8px; font-size: 1.35rem; }
.support-lead { margin: 0; line-height: 1.45; }
.support-form { margin-top: 4px; }
.admin-billing-page .hf-field { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; }
.admin-billing-fields { margin-bottom: 18px; }
.hf-check {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0;
  border: 1px solid var(--line); border-radius: 14px; background: #12140f;
  font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer;
}
.hf-check input {
  width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--mint);
}
.hf-check span { line-height: 1.35; }
.admin-billing-fields input { width: 100%; }
.admin-billing-fields label small { display: block; margin-top: 4px; }
.admin-support-list { display: grid; gap: 10px; margin-top: 12px; }
.admin-support-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #12140f; }
.admin-support-card.unread { border-color: rgba(143, 212, 174, 0.45); }
.admin-support-head {
  width: 100%; display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 12px 14px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.admin-support-head b { display: block; font-size: 14px; }
.admin-support-head small { color: var(--muted); font-size: 12px; }
.admin-support-body { padding: 0 14px 14px; border-top: 1px solid var(--line); }
.admin-support-text { white-space: pre-wrap; font: inherit; font-size: 13px; margin: 10px 0; }
.admin-support-logs pre { font-size: 11px; max-height: 120px; overflow: auto; }
.support-form-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.support-form-acts .cta { flex: 1 1 140px; }

.hf-switch {
  position: relative; display: inline-flex; align-items: center; cursor: pointer; flex-shrink: 0;
}
.hf-switch input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.hf-switch-ui {
  width: 54px; height: 32px; border-radius: 99px; background: #3a3d33; position: relative;
  transition: background 0.28s ease; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.hf-switch-ui i {
  width: 26px; height: 26px; border-radius: 50%; background: #fff; position: absolute; top: 3px; left: 3px;
  transition: left 0.28s cubic-bezier(0.4, 0, 0.2,  1), box-shadow 0.28s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.hf-switch input:checked + .hf-switch-ui { background: var(--mint); }
.hf-switch input:checked + .hf-switch-ui i { left: 25px; }
.hf-toggle-card {
  border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 16px;
  background: linear-gradient(165deg, #1a1c14, #141610);
}
.hf-toggle-card.off { border-color: rgba(158, 201, 223, 0.25); }
.hf-toggle-card.on { border-color: rgba(143, 212, 174, 0.45); }
.hf-toggle-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.hf-toggle-copy b { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.hf-toggle-status { margin-top: 12px; }
.hf-pill {
  display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(158, 201, 223, 0.12); color: #9ec9df;
}
.hf-pill.live { background: rgba(143, 212, 174, 0.15); color: var(--mint); }
.admin-lead { margin: 0 0 16px; line-height: 1.45; color: var(--muted); max-width: 520px; }
.admin-billing-form { max-width: 520px; }
.admin-field-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 16px; }
.admin-field-grid label small { font-weight: 500; margin-top: 4px; }
.admin-save-settings { width: 100%; max-width: 320px; }
.admin-fieldset {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 14px; margin: 0 0 14px;
}
.admin-fieldset legend { padding: 0 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.admin-user-card { padding: 0; overflow: hidden; }
.admin-user-summary {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 14px 8px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.admin-user-chevron { color: var(--muted); font-size: 18px; padding: 4px 8px; }
.admin-user-meta {
  display: flex; flex-wrap: wrap; gap: 8px 12px; padding: 0 14px 12px; font-size: 12px; color: var(--muted);
}
.admin-user-meta span { padding: 4px 8px; border-radius: 8px; background: rgba(255,255,255,0.04); }
.admin-user-sub { flex: 1 1 100%; background: transparent; padding: 0; margin-top: 2px; }
.admin-user-form { padding: 0 14px 14px; border-top: 1px solid var(--line); }
.admin-check-row { display: flex; align-items: center; gap: 12px; margin: 8px 0; font-weight: 600; }
.admin-user-tools { padding: 12px 14px; border-top: 1px solid var(--line); }
.admin-tool-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.admin-tool-chips .chip { font-size: 12px; padding: 6px 10px; }
.admin-tool-chips .danger-chip { border-color: rgba(232, 180, 160, 0.5); color: #e8b4a0; }
.admin-user-danger { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.admin-avatar-row { margin-top: 8px; }

/* reduceri / preț vechi */
.pw-opt b s, .pw-price .pw-old { color: var(--muted); font-weight: 600; text-decoration: line-through; text-decoration-thickness: 2px; opacity: 0.8; }
.pw-opt b s { font-size: 13px; margin-right: 2px; }
.pw-price .pw-old { font-size: 20px; align-self: center; margin-right: 2px; }
.pw-opt em.pw-disc { display: inline-block; justify-self: start; padding: 2px 8px; border-radius: 99px; background: var(--mint); color: #0c0d0a; font-size: 11px; font-weight: 800; }
.subscribe .pw-badge { background: rgba(143, 212, 174, 0.16); }

/* admin: prețuri și reduceri */
.adm-price-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.adm-price-card { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line, rgba(255, 255, 255, 0.12)); border-radius: 16px; background: rgba(255, 255, 255, 0.03); }
.adm-price-card > b { font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mint); }
.adm-price-final { margin: 0; font-size: 13px; color: var(--muted); }
.adm-price-final b { color: inherit; font-size: 16px; }
.adm-price-final b { color: var(--text, #fff); }
.adm-price-final s { opacity: 0.7; margin-left: 4px; }
.adm-price-badge { display: inline-block; padding: 1px 7px; border-radius: 99px; background: var(--mint); color: #0c0d0a; font-size: 11px; font-weight: 800; }

/* parolă: email trimis */
.mail-sent { display: grid; gap: 14px; justify-items: center; text-align: center; padding-top: 12px; }
.mail-sent-ico { width: 84px; height: 84px; display: grid; place-items: center; font-size: 40px; border-radius: 26px; background: rgba(143, 212, 174, 0.14); border: 1px solid rgba(143, 212, 174, 0.35); }
.mail-sent h1 { margin: 0; }
.mail-sent .lead { margin: 0; }
.mail-sent-spam { margin: 0; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; background: rgba(255, 200, 87, 0.1); border: 1px solid rgba(255, 200, 87, 0.35); text-align: left; }
.mail-sent .cta { width: 100%; margin-top: 6px; }
/* cont + deconectare, sus în Setări */
.settings-account { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin: 0 0 12px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px; background: rgba(255, 255, 255, 0.035); }
.settings-account-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.settings-account-ava { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(143, 212, 174, 0.16); border: 1px solid rgba(143, 212, 174, 0.4); color: var(--mint); font-weight: 800; }
.settings-account-text { display: grid; min-width: 0; line-height: 1.25; }
.settings-account-text b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-account-text small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-logout { flex: none; min-height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid rgba(255, 120, 120, 0.45); background: rgba(255, 120, 120, 0.08); color: #ff9d9d; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.settings-logout:hover, .settings-logout:focus-visible { background: rgba(255, 120, 120, 0.16); }
.admin-support-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.admin-support-del { border-color: rgba(255, 120, 120, 0.45) !important; color: #ff9d9d !important; }

/* ---- Gătim împreună: buton ON/OFF + oala comună ---- */
.cook-toggle-card { transition: border-color .35s ease, box-shadow .45s ease, background .45s ease; }
.cook-toggle-card.on { border-color: rgba(143, 212, 174, .55); box-shadow: 0 0 0 1px rgba(143,212,174,.18), 0 10px 32px -14px rgba(143,212,174,.45); background: linear-gradient(165deg, rgba(143,212,174,.10), transparent 70%), var(--card, #14160f); }
.cook-toggle { display: flex; align-items: center; gap: 16px; cursor: pointer; }
.cook-toggle-copy { flex: 1; min-width: 0; }
.cook-toggle-copy .settings-card-title { margin: 0 0 4px; }
.cook-toggle-copy .settings-card-lead { display: block; margin: 0; }
.cook-switch { position: relative; flex-shrink: 0; }
.cook-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.cook-switch-ui { display: block; position: relative; width: 78px; height: 40px; border-radius: 99px; background: #2f3229; box-shadow: inset 0 2px 6px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.07); transition: background .4s ease, box-shadow .4s ease; overflow: hidden; }
.cook-switch-ui::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, #3fbf84, #8fd4ae 55%, #c9f0a8); opacity: 0; transition: opacity .4s ease; }
.cook-switch-ui i { position: absolute; top: 4px; left: 4px; width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.4); transition: left .42s cubic-bezier(.34, 1.56, .64, 1), transform .2s ease; z-index: 1; }
.cook-switch-ui b { position: absolute; top: 50%; transform: translateY(-50%) scale(.85); font-size: 11px; letter-spacing: .06em; font-weight: 800; transition: opacity .3s ease, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.cook-switch-ui b.on { left: 12px; color: #0f2a1b; opacity: 0; }
.cook-switch-ui b.off { right: 11px; color: #9aa092; opacity: 1; transform: translateY(-50%) scale(1); }
.cook-switch input:checked + .cook-switch-ui { box-shadow: inset 0 2px 6px rgba(0,0,0,.25), 0 0 18px rgba(143,212,174,.55); }
.cook-switch input:checked + .cook-switch-ui::before { opacity: 1; }
.cook-switch input:checked + .cook-switch-ui i { left: 42px; }
.cook-switch input:checked + .cook-switch-ui b.on { opacity: 1; transform: translateY(-50%) scale(1); }
.cook-switch input:checked + .cook-switch-ui b.off { opacity: 0; transform: translateY(-50%) scale(.85); }
.cook-switch input:active + .cook-switch-ui i { transform: scaleX(1.18); }
.cook-switch input:focus-visible + .cook-switch-ui { outline: 2px solid var(--mint, #8fd4ae); outline-offset: 3px; }
.cook-toggle-state { margin: 10px 0 0; transition: color .3s ease; }
.cook-toggle-card.on .cook-toggle-state { color: var(--mint, #8fd4ae); }
@media (prefers-reduced-motion: reduce) { .cook-switch-ui, .cook-switch-ui i, .cook-switch-ui b, .cook-switch-ui::before, .cook-toggle-card { transition: none; } }

.tag.cook-tag { background: rgba(143,212,174,.16); color: var(--mint, #8fd4ae); }
.cook-note { margin: 10px 0; }
.cook-card { margin: 14px 0 18px; padding: 16px; border-radius: 20px; border: 1px solid rgba(143,212,174,.4); background: linear-gradient(165deg, rgba(143,212,174,.12), rgba(143,212,174,.02) 60%), #14160f; animation: cookIn .4s ease both; }
@keyframes cookIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cook-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.cook-head b { display: block; font-size: 16px; }
.cook-head small { color: #aeb5a5; }
.cook-ico { font-size: 30px; line-height: 1; }
.cook-card h3 { margin: 16px 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mint, #8fd4ae); }
.cook-pot { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cook-pot li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); }
.cook-ing { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cook-ing i { font-style: normal; font-size: 18px; }
.cook-amt { text-align: right; white-space: nowrap; }
.cook-amt b { display: block; font-size: 16px; }
.cook-amt small { color: #aeb5a5; font-size: 11px; }
.cook-plates { display: grid; gap: 10px; }
.cook-plate { padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid transparent; }
.cook-plate.you { border-color: rgba(143,212,174,.45); }
.cook-plate.eaten { opacity: .65; }
.cook-plate header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.cook-plate header em { font-style: normal; font-size: 11px; color: var(--mint, #8fd4ae); margin-left: 4px; }
.cook-plate header span { font-size: 13px; color: #cfd6c6; }
.cook-bar { height: 8px; margin: 10px 0 4px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.cook-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #3fbf84, #c9f0a8); transition: width .5s ease; }
.cook-share { color: #aeb5a5; }
.cook-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cook-chip { padding: 5px 9px; border-radius: 99px; background: rgba(0,0,0,.28); font-size: 12px; }
.cook-chip small { color: #aeb5a5; }
.cook-plate header em.cook-size { padding: 1px 7px; border-radius: 99px; background: rgba(143,212,174,.18); font-weight: 800; letter-spacing: .04em; }
.cook-others { margin: 12px 0 0; padding: 0 0 0 18px; color: #aeb5a5; font-size: 13px; }

/* Acord la crearea contului (vârstă + termeni + date de sănătate) */
.consent-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: #cfd6c6; text-align: left; }
.auth .consent-row input[type="checkbox"] { width: 22px; height: 22px; min-width: 22px; padding: 0; margin: 1px 0 0; accent-color: #3fbf84; }
.consent-row .text-btn { display: inline; padding: 0; margin: 0; font: inherit; text-decoration: underline; color: var(--mint, #8fd4ae); }

/* „Săptămâna s-a încheiat": mai aerisit, un singur buton principal sus */
.week-gate { padding: 30px 22px calc(22px + var(--safe-b, 0px)); border-radius: 28px 28px 0 0; }
.week-gate h2 { margin: 0 0 10px; font-size: 24px; line-height: 1.15; }
.week-gate .lead { margin: 0 0 16px; line-height: 1.5; }
.week-gate .wg-next { display: grid; gap: 4px; padding: 14px 16px; border-radius: 18px; background: rgba(143, 212, 174, 0.08); border: 1px solid rgba(143, 212, 174, 0.22); }
.week-gate .wg-next small { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.week-gate .wg-next b { font-size: 17px; color: var(--mint, #8fd4ae); }
.week-gate .wg-note { margin: 16px 0 22px; line-height: 1.55; color: var(--muted); }
.week-gate .wg-actions { display: grid; gap: 12px; }
.week-gate .wg-actions .cta,
.week-gate .wg-actions .ghost { width: 100%; margin: 0; min-height: 52px; padding: 14px 18px; line-height: 1.3; text-align: center; }
.week-gate .wg-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.week-gate .wg-or::before,
.week-gate .wg-or::after { content: ""; flex: 1; height: 1px; background: var(--line, rgba(255, 255, 255, 0.12)); }
.week-gate .wg-later { display: block; width: 100%; margin: 18px 0 0; padding: 12px 14px; text-align: center; }