/* Makro – App-Look fürs iPhone: Vollbild, große Titel, Karten, Tab-Leiste unten. */
:root {
  --bg: #EDF1EC;
  --card: #FFFFFF;
  --card-2: #F4F7F3;
  --ink: #14201A;
  --muted: #5A685F;
  --line: #DCE3DD;
  --accent: #16825A;
  --accent-ink: #FFFFFF;
  --accent-soft: #DBEFE4;
  --prot: #2E68D4;
  --carb: #C98A0C;
  --fat: #CB4A62;
  --rest: #8A9A90;
  --over: #E07A1F;
  --warn-bg: #FFF3DC;
  --warn-ink: #6E4500;
  --stop-bg: #FCE6E9;
  --stop-ink: #831D2C;
  --bar-bg: rgba(237, 241, 236, 0.82);
  --shadow: 0 1px 2px rgba(20, 32, 26, 0.06), 0 4px 16px rgba(20, 32, 26, 0.05);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-num: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  --r-lg: 22px;
  --r-md: 16px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 62px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1310; --card: #17211B; --card-2: #1D2922; --ink: #E5EDE8; --muted: #96A59C; --line: #27342C;
    --accent: #3DBE84; --accent-ink: #04140C; --accent-soft: #15322A;
    --prot: #77A2F2; --carb: #EDB648; --fat: #EE8295; --rest: #7C8C82; --over: #F59B4C;
    --warn-bg: #32260E; --warn-ink: #F2CE84; --stop-bg: #3A191E; --stop-ink: #F5ADB7;
    --bar-bg: rgba(13, 19, 16, 0.82);
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
  -webkit-user-select: none; user-select: none;
  overscroll-behavior: none;
}
input, textarea, select, .selectable { -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Grundgerüst ---------- */
#app { height: 100%; display: flex; flex-direction: column; }
.page {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain;
  padding: calc(var(--safe-t) + 12px) max(16px, env(safe-area-inset-right, 0px)) calc(var(--tabbar-h) + var(--safe-b) + 28px) max(16px, env(safe-area-inset-left, 0px));
}
.page.no-tabs { padding-bottom: calc(var(--safe-b) + 24px); }
.wrap { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

.titlebar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 6px; }
.titlebar .sub { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.large-title { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
h2 { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
h3 { font-size: 16px; font-weight: 700; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted); margin: 0; }
.tiny { font-size: 12px; color: var(--muted); }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

.card { background: var(--card); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.hint { background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--r-md); padding: 12px 14px; font-size: 14px; margin: 0; }
.stopbox { background: var(--stop-bg); color: var(--stop-ink); border-radius: var(--r-md); padding: 14px; font-size: 15px; }
.okbox { background: var(--accent-soft); color: var(--ink); border-radius: var(--r-md); padding: 12px 14px; font-size: 14px; }

/* Halal-Check beim Scannen */
.halal { border-radius: var(--r-md); padding: 14px; display: grid; gap: 8px; background: var(--card-2); color: var(--ink); }
.halal-haram { background: var(--stop-bg); color: var(--stop-ink); }
.halal-doubt { background: var(--warn-bg); color: var(--warn-ink); }
.halal-ok { background: var(--accent-soft); }
.halal-head { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.halal-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 16px; font-weight: 800; }
.halal-haram .halal-ico { background: var(--stop-ink); color: var(--stop-bg); }
.halal-doubt .halal-ico { background: var(--warn-ink); color: var(--warn-bg); }
.halal-ok .halal-ico, .halal-clean .halal-ico { background: var(--accent); color: var(--accent-ink); }
.halal-unknown .halal-ico { background: var(--muted); color: var(--card); }
.halal-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.35; }
.halal-list li.soft { opacity: 0.8; }
.halal-note { margin: 0; font-size: 13px; opacity: 0.85; }
.hpill { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-right: 6px; vertical-align: 1px; }
.hpill-haram { background: var(--stop-bg); color: var(--stop-ink); }
.hpill-doubt { background: var(--warn-bg); color: var(--warn-ink); }
.hpill-ok { background: var(--accent-soft); color: var(--accent); }

/* ---------- Buttons & Eingaben ---------- */
.btn {
  border: 0; border-radius: var(--r-md); padding: 15px 18px; cursor: pointer; width: 100%;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 17px;
  transition: transform .08s ease, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .4; }
.btn.ghost { background: var(--card-2); color: var(--ink); }
.btn.danger { background: var(--stop-bg); color: var(--stop-ink); }
label.btn { display: block; text-align: center; }
.btn.small { width: auto; padding: 10px 14px; font-size: 15px; border-radius: 12px; }
.link { border: 0; background: none; color: var(--accent); font-weight: 600; padding: 6px 0; cursor: pointer; }
.iconbtn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--shadow);
  display: grid; place-items: center; cursor: pointer; flex: none;
}
.iconbtn svg { width: 20px; height: 20px; }

.field { background: var(--card-2); border-radius: 14px; padding: 4px 14px; display: flex; align-items: center; gap: 8px; border: 2px solid transparent; }
.field:focus-within { border-color: var(--accent); }
.field input, .field select, .field textarea {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); outline: none;
  font-size: 17px; padding: 11px 0; font-family: inherit;
}
.field textarea { resize: none; min-height: 90px; }
.field .unit { color: var(--muted); font-weight: 600; }
.field.big input { font-family: var(--font-num); font-weight: 700; font-size: 32px; padding: 8px 0; }
label.lbl { font-size: 13px; font-weight: 600; color: var(--muted); display: block; margin: 0 0 6px 4px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; background: var(--card-2); padding: 3px; border-radius: 12px; }
.seg button { border: 0; background: transparent; border-radius: 9px; padding: 8px 4px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--card); border-radius: 99px; padding: 7px 13px; font-size: 15px; font-weight: 500; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }

/* Listen im iOS-Stil */
.list { background: var(--card); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.list > .item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 0; background: none; width: 100%; text-align: left; cursor: pointer; }
.list > .item + .item { border-top: 1px solid var(--line); }
.list > .item:active { background: var(--card-2); }
.item .t { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .s { font-size: 13px; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .v { font-family: var(--font-num); font-weight: 700; flex: none; text-align: right; }
.item .v small { display: block; font-family: var(--font); font-weight: 500; font-size: 12px; color: var(--muted); }
.chev { color: var(--muted); flex: none; }

/* ---------- Tab-Leiste ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(var(--safe-b) + 6px) max(8px, env(safe-area-inset-left, 0px));
  background: var(--bar-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
}
.tab { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--muted); padding: 4px 0; cursor: pointer; }
.tab svg { width: 26px; height: 26px; }
.tab[aria-current="page"] { color: var(--accent); }
.tab.plus { align-self: center; }
.tab.plus span.fab { width: 50px; height: 50px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(22,130,90,.35); margin-top: -18px; }
.tab.plus svg { width: 26px; height: 26px; }

/* ---------- Heute ---------- */
.daynav { display: flex; align-items: center; gap: 8px; }
.daynav .label { font-weight: 600; font-size: 15px; min-width: 0; text-align: center; flex: 1; }
.ringcard { display: flex; flex-direction: column; gap: 16px; }
.bigring { position: relative; width: 210px; height: 210px; margin: 0 auto; }
.bigring svg, .minring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ringcenter { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ringcenter .n { font-family: var(--font-num); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -.02em; }
.ringcenter .l { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.ringstats { display: grid; grid-template-columns: repeat(2, 1fr); text-align: center; }
.ringstats .n { font-family: var(--font-num); font-weight: 700; font-size: 20px; }
.ringstats .l { font-size: 12px; color: var(--muted); }
.minirings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.minring { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.minring .rw { position: relative; width: 76px; height: 76px; }
.minring .rw .c { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-num); font-weight: 700; font-size: 17px; }
.minring .nm { font-size: 13px; font-weight: 600; }
.minring .of { font-size: 12px; color: var(--muted); font-family: var(--font-num); }
.ring-track { stroke: var(--line); }

.meal { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.meal-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.meal-head .t { font-weight: 700; font-size: 17px; flex: 1; }
.meal-head .k { font-family: var(--font-num); font-weight: 700; color: var(--muted); }
.addbtn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; cursor: pointer; flex: none; }
.addbtn svg { width: 18px; height: 18px; }
.entry { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border: 0; border-top: 1px solid var(--line); background: none; width: 100%; text-align: left; cursor: pointer; }
.entry:active { background: var(--card-2); }
.entry .t { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry .s { font-size: 13px; color: var(--muted); }
.entry .v { font-family: var(--font-num); font-weight: 600; flex: none; }
.empty-meal { padding: 0 16px 14px; font-size: 14px; color: var(--muted); margin-top: -4px; }

.stat3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--card-2); border-radius: 14px; padding: 10px 12px; }
.stat .n { font-family: var(--font-num); font-weight: 700; font-size: 20px; }
.stat .l { font-size: 12px; color: var(--muted); }
.banner { display: flex; align-items: center; gap: 10px; background: var(--accent-soft); border-radius: var(--r-md); padding: 10px 14px; font-size: 14px; font-weight: 600; }

/* ---------- Sheets (von unten) ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.38); z-index: 40; animation: fade .2s ease both; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: calc(100% - var(--safe-t) - 18px);
  background: var(--bg); border-radius: 22px 22px 0 0; display: flex; flex-direction: column;
  animation: up .28s cubic-bezier(.2,.8,.2,1) both;
}
.sheet.full { top: calc(var(--safe-t) + 10px); max-height: none; }
.sheet-grab { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px 6px; flex: none; }
.sheet-head h2 { font-size: 19px; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 16px calc(var(--safe-b) + 20px); display: flex; flex-direction: column; gap: 14px; flex: 1; }
.sheet-body > * { width: 100%; max-width: 480px; margin-left: auto; margin-right: auto; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Scanner */
.scanbox { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #000; min-height: 260px; }
.scanbox video { width: 100% !important; height: auto !important; display: block; object-fit: cover; }
.scanbox #qr-shaded-region { border-color: rgba(0,0,0,.45) !important; }
.scanmsg { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; color: #fff; font-size: 14px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.6); pointer-events: none; }

.food-img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--card-2); flex: none; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Verlauf ---------- */
.chart svg { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }

/* ---------- Training ---------- */
.ex { display: flex; flex-direction: column; gap: 10px; }
.ex-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ex-head .nm { font-weight: 700; }
.ex-head .ds { font-family: var(--font-num); font-weight: 600; color: var(--muted); flex: none; font-size: 14px; }
.ex-note { font-size: 13px; color: var(--warn-ink); background: var(--warn-bg); border-radius: 8px; padding: 4px 8px; align-self: flex-start; }
.sets { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 8px; align-items: center; }
.sets .h { font-size: 12px; color: var(--muted); font-weight: 600; }
.sets .i { font-family: var(--font-num); font-weight: 700; color: var(--muted); text-align: center; }
.sets input { width: 100%; border: 0; border-radius: 10px; background: var(--card-2); padding: 10px; font-size: 17px; font-family: var(--font-num); font-weight: 600; color: var(--ink); text-align: center; outline: none; }
.sets input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.check { width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--line); background: transparent; display: grid; place-items: center; cursor: pointer; }
.check[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.check svg { width: 20px; height: 20px; }
.last { font-size: 12px; color: var(--muted); }
.letter { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 800; flex: none; }
.week7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.wd { border: 0; border-radius: 12px; padding: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--card-2); font-size: 12px; cursor: pointer; }
.wd b { font-size: 14px; }
.wd span { font-size: 10.5px; color: var(--muted); }
/* Wochenplan bearbeiten: nur Schrift hervorgehoben, keine Füllung */
.wd.plan-gym span { color: var(--accent); font-weight: 700; }
.wd.plan-sport span { color: var(--ink); font-weight: 700; }
/* Wirklich erledigt: farbig gefüllt */
.wd.did-gym { background: var(--accent); color: var(--accent-ink); }
.wd.did-gym span { color: var(--accent-ink); font-weight: 700; }
.wd.did-sport { background: var(--carb); color: var(--card); }
.wd.did-sport span { color: var(--card); font-weight: 700; }
.wd.today { outline: 2px solid var(--accent); outline-offset: 1px; }
.letter.sport { background: var(--carb); color: var(--card); }
.donebtn {
  width: 100%; border: 2px dashed var(--line); background: transparent; border-radius: var(--r-md);
  padding: 12px 14px; font-weight: 600; font-size: 15px; color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.donebtn.on { border: 2px solid var(--accent); background: var(--accent-soft); color: var(--ink); }
.donebtn svg { width: 18px; height: 18px; color: var(--accent); }
ul.bul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
details.card > summary { cursor: pointer; list-style: none; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: "+"; color: var(--muted); font-size: 22px; font-weight: 400; }
details.card[open] > summary::after { content: "–"; }
details.card[open] > summary { margin-bottom: 10px; }
input[type=range] { width: 100%; accent-color: var(--accent); }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 18px); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 99px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100% - 32px); text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Einrichtung ---------- */
.setup { display: flex; flex-direction: column; height: 100%; }
.setup-top {
  flex: none; display: grid; grid-template-columns: 40px 1fr 44px; align-items: center; gap: 10px;
  padding: calc(var(--safe-t) + 10px) max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px));
}
.setup-top .iconbtn[disabled] { visibility: hidden; }
.progress { height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .35s ease; }
.stepcount { font-size: 13px; color: var(--muted); text-align: right; font-family: var(--font-num); }
.setup .page { padding-top: 10px; padding-bottom: calc(var(--safe-b) + 20px); }
.setup .wrap { min-height: 100%; }
.screen-anim { animation: in .25s ease both; }
@keyframes in { from { opacity: .01; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.q { font-size: 30px; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.lead { color: var(--muted); margin: 0; font-size: 16px; }
.opt {
  width: 100%; text-align: left; cursor: pointer; background: var(--card); border: 2px solid transparent; border-radius: var(--r-md);
  padding: 14px 16px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow);
}
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.opt[disabled] { opacity: .45; }
.opt .t { font-weight: 600; display: block; }
.opt .s { font-size: 14px; color: var(--muted); display: block; }
.opt .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.opt[aria-pressed="true"] .dot { border-color: var(--accent); background: var(--accent); }
.opt[aria-pressed="true"] .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); }
.spacer { flex: 1; }
.stepper { display: flex; align-items: center; gap: 4px; background: var(--card-2); border-radius: 99px; padding: 4px; flex: none; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--card); font-size: 20px; font-weight: 600; cursor: pointer; }
.stepper button[disabled] { opacity: .35; }
.stepper output { min-width: 30px; text-align: center; font-family: var(--font-num); font-weight: 700; font-size: 20px; }
.summary { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.hero { background: var(--accent); color: var(--accent-ink); }
.hero .big { font-family: var(--font-num); font-weight: 800; font-size: 46px; line-height: 1; }
.hero .big small { font-size: 17px; font-weight: 600; opacity: .85; }
.pill { display: inline-block; font-size: 13px; font-weight: 600; border-radius: 99px; padding: 4px 10px; background: color-mix(in srgb, var(--accent-ink) 16%, transparent); }
.daytype-card .kcal { font-family: var(--font-num); font-weight: 800; font-size: 30px; line-height: 1; }
.macro3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.macro3 div { background: var(--card-2); border-radius: 12px; padding: 8px 10px; }
.macro3 b { font-family: var(--font-num); font-size: 19px; display: block; }
.macro3 span { font-size: 12px; color: var(--muted); }
.dotc { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }

@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet-backdrop, .screen-anim { animation: none; }
  .progress > i, #toast { transition: none; }
}
