/* Rubik (Google Fonts, free): the closest free match to Polin, which is a paid font. Heavy weights for headings. */
:root {
  --display: 'Rubik', system-ui, sans-serif;
  --bg: #0d0f13;
  --card: #161a21;
  --card2: #1d222b;
  --line: #262c37;
  --text: #eef1f5;
  --muted: #8b93a3;
  --accent: #c8f560;
  /* Macros (his picks, 27.10): protein beige, carbs violet, fat strong orange. */
  --p: #e8d7be;
  --carb: #9d8cff;
  --f: #ff7a1a;
  --c: #ffb547; /* amber: warnings and "not today" */
  --water: #4fa3ff;
  --danger: #ff5d5d;
  --radius: 18px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* A fixed-size app: no double-tap zoom, no sideways page drift, no text resizing on rotate. */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden; overscroll-behavior-x: none; }
main { touch-action: pan-y; }
.carousel { touch-action: pan-x pan-y; }
/* iOS zooms in on any field under 16px when it gets focus; keep every field at 16px or more. */
input, textarea, select { font-size: 16px !important; }
body {
  font-family: 'Rubik', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  min-height: 100dvh;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; transition: transform .08s ease, filter .08s ease; }
button:active { transform: scale(.96); filter: brightness(1.25); }
h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; }
h3 { font-size: 18px; }
.date b { font-size: 22px !important; font-weight: 900 !important; }

/* splash */
#splash {
  position: fixed; inset: 0; z-index: 50; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .4s ease;
}
#splash.out { opacity: 0; pointer-events: none; }
#splash img { width: min(78vw, 320px); height: auto; }
.splash-name { font-family: 'Rubik', sans-serif; font-weight: 900; font-size: 44px; color: var(--accent); opacity: 0; animation: splash-name .5s ease-out 3.3s forwards; }
.splash-line { font-family: 'Rubik', sans-serif; font-weight: 500; font-size: 17px; color: var(--p); text-align: center; padding: 0 24px; opacity: 0; animation: splash-name .6s ease-out 3.55s forwards; }
@keyframes splash-name { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

#app { max-width: 560px; margin: 0 auto; padding: env(safe-area-inset-top) 16px calc(150px + env(safe-area-inset-bottom)); }
main { display: flex; flex-direction: column; gap: 12px; }

.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0 12px;
  position: sticky; top: 0; z-index: 5; background: var(--bg);
}
.date { text-align: center; display: flex; flex-direction: column; }
/* Not on today: amber date, amber edge, and a bar that takes you back. */
.top.other-day { box-shadow: inset 0 -2px 0 var(--c); }
.top.other-day .date b, .top.other-day .date span { color: var(--c); }
.away {
  display: block; width: calc(100% + 32px); margin: 0 -16px; padding: 8px 16px; border-radius: 0 0 14px 14px;
  background: var(--c); color: #1a1205; font-weight: 700; font-size: 14px; text-align: center;
}
.date b { font-size: 20px; font-weight: 800; }
.date span { color: var(--muted); font-size: 13px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--card); font-size: 24px; line-height: 1;
  display: grid; place-items: center;
}
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn.small { width: 30px; height: 30px; font-size: 18px; background: var(--card2); color: var(--muted); }

.card { background: var(--card); border-radius: var(--radius); padding: 16px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.warn { color: var(--c); font-size: 13px; margin: 8px 0 0; }

/* bottom navigation */
.tabs {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 10;
  display: flex; justify-content: center;
  background: rgba(13, 15, 19, .92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.tabs button {
  flex: 1; max-width: 110px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 0; color: var(--muted); font-size: 11px;
}
.tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs .on { color: var(--accent); }

/* today */
.badge { background: var(--card2); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 14px; }
.badge.train { background: var(--accent); color: #111; }
.seg { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.seg span { color: var(--muted); font-size: 14px; margin-inline-end: auto; }
.seg button, .chips button, .btns button {
  background: var(--card2); border-radius: 12px; padding: 8px 12px; font-size: 14px;
}
.seg .on, .chips .on { background: var(--accent); color: #111; font-weight: 700; }
.check { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.mini { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.mini > div { display: flex; flex-direction: column; }
.mini .muted { font-size: 13px; }

.btns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.btns .ghost { background: none; color: var(--muted); }

.bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .4s ease; }
.bar.water i { background: var(--water); }

.supps { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.supps li { display: flex; gap: 12px; align-items: flex-start; }
.supps li > div { display: flex; flex-direction: column; }
.supps b { font-size: 14px; }
.supps span { color: var(--muted); font-size: 13px; }
.supps em { color: var(--c); font-size: 12px; font-style: normal; }
.supps .done b, .supps .done span { opacity: .45; text-decoration: line-through; }
.tick {
  flex: none; width: 28px; height: 28px; border-radius: 9px;
  border: 2px solid var(--line); color: #111; font-weight: 800; margin-top: 2px;
}
.done .tick { background: var(--accent); border-color: var(--accent); }

.sleep { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.sleep input { width: 64px; }

/* food summary */
.summary { display: grid; grid-template-columns: auto 1fr; gap: 16px 18px; align-items: center; }
.ring-wrap { position: relative; width: 150px; height: 150px; }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-label b { font-size: 34px; font-weight: 800; line-height: 1; }
.ring-label span { color: var(--muted); font-size: 13px; margin-top: 4px; }
.ring circle { transition: stroke-dasharray .5s ease; }
.kcal-left { display: flex; flex-direction: column; }
.kcal-left b { font-size: 40px; font-weight: 800; line-height: 1.1; color: var(--accent); }
.kcal-left b.over { color: var(--danger); }
.macros { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; }
.macro .row span { font-size: 13px; color: var(--muted); }
.macro .row span b { color: var(--text); }
.macro .left { font-size: 12px; color: var(--muted); }
.macro .left.over { color: var(--danger); }
.macro.p .bar i { background: var(--p); }
.macro.c .bar i { background: var(--carb); }
.macro.f .bar i { background: var(--f); }

.tip { border: 1px solid rgba(200, 245, 96, .25); }
.tip h3 { color: var(--accent); font-size: 14px; }
.tip .headline { margin: 6px 0 0; font-weight: 500; }
.tip ul { margin: 8px 0 0; padding-inline-start: 18px; color: var(--muted); font-size: 14px; }
.tip li { margin-bottom: 4px; }
.plate { margin-top: 10px; background: var(--card2); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.plate span { display: block; color: var(--muted); font-size: 12px; }

/* add food */
input[type=search], input[type=number], #m-name {
  width: 100%; background: var(--card2); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 12px; margin-top: 10px; outline: none;
}
input:focus { border-color: var(--accent); }
.link { color: var(--accent); font-size: 14px; }
.results { list-style: none; padding: 0; margin: 8px 0 0; }
.results button { width: 100%; text-align: start; padding: 10px 4px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.results span { color: var(--muted); font-size: 12px; }
.picked { margin-top: 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.grams { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.grams input { width: 110px; }
.preview { color: var(--muted); font-size: 13px; margin: 10px 0; }
.primary { width: 100%; background: var(--accent); color: #111; font-weight: 800; border-radius: 14px; padding: 12px; margin-top: 10px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.grid4 label { font-size: 12px; color: var(--muted); }
.grid4 input { margin-top: 4px; padding: 9px 6px; }
.add .check { margin-top: 10px; }

.meal ul { list-style: none; padding: 0; margin: 8px 0 0; }
.meal li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.meal li > div { display: flex; flex-direction: column; }
.meal li span { color: var(--muted); font-size: 12px; }

/* workout */
.chips.tight { margin-top: 0; }
.chips.tight button { min-width: 40px; font-weight: 700; }
.rest-chip {
  margin-top: 6px; display: inline-flex; align-items: center; gap: 4px;
  background: var(--card2); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--accent);
}
.ex .prev { margin: 10px 0 0; display: flex; flex-direction: column; gap: 4px; }
.ex .prev > span { font-size: 12px; color: var(--muted); }
.prev-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: center; }
.prev-table th { font-size: 11px; font-weight: 500; color: var(--muted); padding: 2px 4px 4px; }
.prev-table td { padding: 5px 4px; border-top: 1px solid var(--line); }
.prev-table .tgt { color: var(--accent); font-weight: 700; }

/* workout: one heading per muscle group */
.muscle { font-size: 17px; font-weight: 700; margin: 22px 4px 8px; color: var(--accent); }

/* alternative exercises: side-swipe carousel per program exercise */
.carousel {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 0 16px; scrollbar-width: none; overscroll-behavior-x: contain;
  align-items: flex-start;
}
.carousel::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 calc(100% - 28px); scroll-snap-align: center; display: flex; }
.slide > .card { flex: 1; }
.slide-tag { display: block; font-size: 11px; color: var(--accent); margin-bottom: 4px; }
.add-alt { display: flex; flex-direction: column; gap: 8px; border: 1px dashed var(--line); }
.add-alt input { width: 100%; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; outline: none; }

/* finish-workout celebration */
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 30; }
.celebrate {
  position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; padding: 24px;
  background: rgba(13, 15, 19, .72); animation: fade-in .25s ease-out;
}
.celebrate-card {
  width: 100%; max-width: 380px; text-align: center; background: var(--card);
  border: 1px solid rgba(200, 245, 96, .4); border-radius: 22px; padding: 28px 22px 20px;
  animation: pop-in .35s cubic-bezier(.2, 1.4, .4, 1);
}
.celebrate-card span { color: var(--accent); font-size: 13px; font-weight: 700; }
.celebrate-card p { font-size: 24px; font-weight: 800; line-height: 1.35; margin: 10px 0 18px; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { transform: scale(.85); opacity: 0; } }

/* tab swipe */
.enter { animation: fade-in .18s ease-out; }
.ex .cue { margin: 4px 0 0; font-size: 13px; color: var(--accent); }
.sets { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
/* Option C: every value is its own box, same height, headers on top. */
.set { display: grid; grid-template-columns: 34px 1.3fr 1fr 40px 58px 34px; gap: 5px; align-items: stretch; }
.set.head span { font-size: 11px; color: var(--muted); text-align: center; }
.set > input, .set > button {
  width: 100%; min-width: 0; height: 44px; margin: 0; padding: 0 4px; text-align: center;
  background: var(--card2); border: 1px solid var(--line); border-radius: 10px; outline: none;
}
.set > input { font-size: 17px; font-weight: 700; }
.set > input::placeholder { color: #4d5566; font-weight: 500; }
.set .tick { width: 100%; height: 44px; margin: 0; color: var(--muted); font-size: 14px; font-weight: 700; border-width: 1px; }
.set.done .tick { background: var(--accent); border-color: var(--accent); color: #111; }
.set.done > input { border-color: rgba(200, 245, 96, .4); }
.set .feel { font-size: 12px; }
.set .fail { color: #111; font-weight: 800; }
.set .fail.on { background: var(--danger); border-color: var(--danger); }
.note { margin-top: 10px; font-size: 13px; padding: 9px 12px; width: 100%; background: none; border: 1px dashed var(--line); border-radius: 10px; outline: none; }
.secondary { width: 100%; background: var(--card2); border-radius: 14px; padding: 12px; font-weight: 700; }
.inline-add input { flex: 1; margin-top: 10px; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; outline: none; }
.inline-add .link { margin-top: 10px; }
.primary.big { padding: 15px; font-size: 16px; }
.primary:disabled { opacity: .35; cursor: default; }
.timer {
  position: fixed; z-index: 9; inset-inline: 16px; bottom: calc(74px + env(safe-area-inset-bottom));
  max-width: 528px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--accent); color: #111; border-radius: 16px; padding: 10px 14px; font-weight: 700;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .45); cursor: pointer;
}
.timer span { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timer[hidden] { display: none; }
.timer b { font-size: 22px; font-variant-numeric: tabular-nums; }
.timer button { background: rgba(0, 0, 0, .12); border-radius: 10px; padding: 4px 12px; }
.summary-w p { color: var(--muted); margin: 6px 0 10px; }
.summary-w ul { list-style: none; padding: 0; margin: 0 0 10px; }
.summary-w li { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.summary-w .up { color: var(--accent); }
.summary-w .down { color: var(--danger); }

/* morning check-in, reminders, supplement cycles */
.checkin { border: 1px solid rgba(200, 245, 96, .35); }
.checkin-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.checkin-row label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.checkin-row input { width: 80px; }
.reminders { border: 1px solid rgba(255, 181, 71, .45); }
.reminders ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.reminders li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.reminders .go { flex: none; background: var(--accent); color: #111; font-weight: 700; border-radius: 10px; padding: 7px 12px; }
.cycles { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.cycle { display: flex; flex-direction: column; gap: 3px; }
.cycle.off > span { color: var(--c); }
.cycle input[type=date] { margin-top: 4px; background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; color: var(--text); }

/* coffee */
.coffee-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.opt-row > span { font-size: 13px; color: var(--muted); }
.opt-row .chips { margin-top: 0; gap: 4px; }
.opt-row .chips button { min-width: 0; padding: 6px 9px; font-size: 13px; font-weight: 500; }
.opt-row .grams input { width: 90px; margin-top: 0; padding: 7px 10px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 32px; height: 32px; border-radius: 10px; background: var(--card2); font-size: 18px; }
.stepper b { min-width: 16px; text-align: center; }
.stepper em { font-style: normal; font-size: 13px; color: var(--muted); }

/* quick add */
.quick .chips { margin-top: 8px; }
.fav { display: inline-flex; align-items: stretch; }
.fav button:first-child { border-radius: 0 12px 12px 0; }
.fav .fav-x { border-radius: 12px 0 0 12px; padding: 8px 10px; color: var(--muted); background: var(--card2); border-inline-start: 1px solid var(--line); }
.meal .link.small { font-size: 12px; margin-top: 2px; }

/* free-text AI */
.ai textarea {
  width: 100%; margin-top: 10px; resize: vertical; min-height: 64px;
  background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; outline: none;
}
.ai textarea:focus { border-color: var(--accent); }
.btns .go { background: var(--accent); color: #111; font-weight: 700; }
.ai-res { margin-top: 10px; }
.photo-btn { background: var(--card2); border-radius: 12px; padding: 8px 12px; font-size: 14px; cursor: pointer; }
.ai-photo { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ai-photo img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.ai-res > p:first-child { margin: 0 0 8px; }
.ai-res ul { list-style: none; padding: 0; margin: 0; }
.ai-res li { display: flex; flex-direction: column; padding: 6px 0; border-top: 1px solid var(--line); }
.ai-res li span { color: var(--muted); font-size: 12px; }

/* login */
.login { min-height: 90dvh; justify-content: center; align-items: stretch; text-align: center; gap: 10px; }
.login img { align-self: center; border-radius: 18px; }
.login h2 { font-size: 26px; font-weight: 800; }
.l-label { display: flex; flex-direction: column; gap: 4px; text-align: start; font-size: 13px; color: var(--muted); }
.login input { width: 100%; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; outline: none; text-align: right; }

/* body */
.cue-card { border: 1px solid rgba(200, 245, 96, .35); color: var(--accent); font-weight: 500; }
.cue-card.push { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cue-card.push .go { background: var(--accent); color: #111; font-weight: 800; border-radius: 12px; padding: 9px 14px; flex: none; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stats3 > div { background: var(--card2); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; }
.stats3 span { font-size: 12px; color: var(--muted); }
.stats3 b { font-size: 18px; font-weight: 800; }
.good { color: var(--accent); }
.bad { color: var(--danger); }
.measures { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.measures label { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.measures input { margin-top: 4px; }
.measures em { font-style: normal; font-size: 11px; margin-top: 3px; }
.poses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.pose { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.shot {
  width: 100%; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; cursor: pointer;
  border: 1px dashed var(--line); background: var(--card2);
  display: grid; place-items: center; color: var(--muted); font-size: 13px;
}
.shot img, .compare img { width: 100%; height: 100%; object-fit: cover; display: block; }
.compare { margin-top: 14px; }
.compare h4 { margin: 0 0 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.compare > div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.compare figure { margin: 0; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--card2); }

/* reports */
.chips.range { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { background: var(--card); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; }
.tile span { font-size: 12px; color: var(--muted); }
.tile b { font-size: 22px; font-weight: 800; line-height: 1.3; }
.tile em { font-style: normal; font-size: 11px; color: var(--muted); }
.tile em.good { color: var(--accent); }
.tile em.bad { color: var(--danger); }
.report .stats3 { grid-template-columns: repeat(3, 1fr); }
.weekly-ai { border: 1px solid rgba(200, 245, 96, .35); }
.weekly-ai[hidden] { display: none; }
.weekly-ai p { margin: 10px 0 0; font-size: 14px; line-height: 1.6; }
.insights { margin: 12px 0 0; padding-inline-start: 18px; font-size: 14px; }
.insights li { margin-bottom: 6px; }

.chart { position: relative; margin-top: 8px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 10px; font-family: inherit; }
.chart .ref { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; }
.chart .ref-label { font-size: 10px; }
.chart .hit { fill: transparent; }
.chart .hit.on { fill: rgba(255, 255, 255, .05); }
.chart-empty { padding: 24px 0; text-align: center; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.legend i.line { width: 16px; height: 2px; border-radius: 2px; }
.pop {
  position: absolute; top: -6px; transform: translate(-50%, -100%); z-index: 3; white-space: nowrap;
  background: var(--text); color: var(--bg); font-size: 12px; font-weight: 500;
  padding: 5px 9px; border-radius: 8px; pointer-events: none;
}
.pop[hidden] { display: none; }

.adh { position: relative; display: grid; grid-template-columns: 52px repeat(var(--n), 1fr); gap: 4px; align-items: center; margin-top: 10px; }
.adh-name { font-size: 12px; color: var(--muted); direction: rtl; text-align: start; }
.adh i { aspect-ratio: 1; border-radius: 4px; background: var(--card2); }
.adh i.hit { background: var(--accent); }
.adh i.miss { background: var(--line); }
.adh i.na { background: none; border: 1px dashed var(--line); }
.adh i.on { outline: 2px solid var(--text); }

@media (max-width: 380px) {
  .summary { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .kcal-left { align-items: center; }
  .macros { justify-self: stretch; text-align: start; }
}
