/* Sötét alap (A5), egykezes használat 360 px szélességen. Minden érinthető elem legalább 48 px magas. */
:root {
  --bg: #0e1014; --surface: #181b22; --raised: #222631; --line: #2e3442;
  --text: #f1f3f7; --muted: #a3acbb; --accent: #b7f34d; --on-accent: #10140a; --on-accent-muted: #3c4a1d;
  --accent-ink: #b7f34d; --mark: #b7f34d; --danger: #ff8a80; --warn: #ffcf66; --food: #6cb6ff;
  --field: #0b0d11; --placeholder: #6d7686; --tabs: #12151b; --err-bg: #3a1d1d; --ok-bg: #1d2a12; --sel-bg: #26331a;
  --dim: #7f8aa0; --raw: #8fd3ff; --done: #ffb86b; --shadow: rgba(0, 0, 0, 0.5); --veil: rgba(0, 0, 0, 0.72);
  color-scheme: dark;
}
/* Világos téma. A lime (--accent) csak gombkitöltés sötét felirattal; szövegre, vonalra, jelre a sötétebb --accent-ink megy, mert a lime fehéren olvashatatlan. */
:root[data-theme=light] {
  --bg: #f3f4f6; --surface: #ffffff; --raised: #eceff3; --line: #d0d6de;
  --text: #12151a; --muted: #515b6a; --accent: #b7f34d; --on-accent: #10140a; --on-accent-muted: #3c4a1d;
  --accent-ink: #3d6b00; --mark: #569400; --danger: #b3261e; --warn: #7a5200; --food: #1f6fb5;
  --field: #ffffff; --placeholder: #8a93a1; --tabs: #ffffff; --err-bg: #fde8e6; --ok-bg: #e9f5cf; --sel-bg: #e4f3c2;
  --dim: #7b8594; --raw: #1f6fb5; --done: #a85a00; --shadow: rgba(30, 40, 60, 0.18); --veil: rgba(20, 26, 36, 0.5);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
  -webkit-tap-highlight-color: transparent;
}
#app { display: flex; flex-direction: column; gap: 12px; max-width: 560px; margin: 0 auto;
  padding: 14px 12px calc(84px + env(safe-area-inset-bottom)); }
[hidden] { display: none !important; }
h1 { font-size: 24px; line-height: 1.2; margin: 4px 0 0; letter-spacing: -0.01em; }
h1 small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 2px; letter-spacing: 0; }
h2 { font-size: 15px; margin: 0; color: var(--muted); font-weight: 600; }
p { margin: 0; }
small { color: var(--muted); font-size: 13px; font-weight: 400; }
.muted { color: var(--muted); font-size: 14px; }
.big { font-size: 28px; font-weight: 700; line-height: 1.1; }
.warn { color: var(--warn); font-size: 14px; }
#err:empty { display: none; }
.err { color: var(--danger); background: var(--err-bg); border-radius: 10px; padding: 10px 12px; font-size: 15px; }
.ok { color: var(--accent-ink); background: var(--ok-bg); border-radius: 10px; padding: 10px 12px; font-size: 15px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px;
  display: flex; flex-direction: column; gap: 10px; }
[data-t] { display: flex; flex-direction: column; gap: 10px; }
.list { display: flex; flex-direction: column; gap: 8px; }

button, .btn, input, select {
  font: inherit; color: var(--text); min-height: 48px; min-width: 48px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--raised); margin: 0;
}
button, .btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%;
  padding: 8px 14px; font-weight: 600; text-decoration: none; text-align: center; cursor: pointer;
  touch-action: manipulation; user-select: none;
}
button:active, .btn:active { filter: brightness(1.25); }
button:disabled { opacity: 0.35; }
.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.primary small { color: var(--on-accent-muted); }
.tall { min-height: 58px; font-size: 18px; }
.danger { color: var(--danger); }
.quiet { background: transparent; border-color: transparent; color: var(--muted); font-weight: 500; }
.quiet.danger { color: var(--danger); }
.on { border-color: var(--accent-ink); color: var(--accent-ink); }
input, select { width: 100%; padding: 8px 12px; font-size: 18px; background: var(--field); }
input:focus-visible, select:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
input::placeholder { color: var(--placeholder); font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.field > span { font-size: 13px; color: var(--muted); }
.row { display: flex; gap: 8px; }
.row > * { flex: 1 1 0; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rowlink { flex-direction: row; justify-content: space-between; gap: 10px; text-align: left; }

/* edzés */
.ex-head { display: flex; align-items: center; gap: 10px; }
.ex-head h2 { flex: 1; font-size: 19px; color: var(--text); }
.ex-head .btn { width: auto; flex: none; font-size: 14px; }
.ex-toggle { align-items: flex-start; text-align: left; gap: 2px; }
.last { font-size: 15px; background: var(--raised); border-radius: 10px; padding: 8px 10px; display: flex; align-items: center; gap: 10px; }
.last > div { flex: 1; min-width: 0; }
.last span { color: var(--muted); display: block; font-size: 13px; }
.last .note { color: var(--text); font-size: 14px; margin-top: 2px; }
.last .note::before { content: "✎ "; color: var(--muted); }
.last button { width: auto; flex: none; padding: 4px 12px; color: var(--accent-ink); border-color: var(--accent-ink); background: transparent; white-space: nowrap; }
.pr { font-style: normal; font-size: 13px; color: var(--accent-ink); }
#ex-note { font-size: 15px; }
#cardio-now { text-align: center; }
.sets { display: flex; flex-wrap: wrap; gap: 8px; }
.sets:empty { display: none; }
.set { width: auto; flex-direction: row; gap: 6px; min-height: 46px; font-weight: 500; }
.set span { color: var(--muted); }
.stepper { display: grid; grid-template-columns: 68px 1fr 68px; gap: 8px; align-items: end; }
.stepper input { text-align: center; font-size: 24px; font-weight: 700; min-height: 56px; }
.stepper button { min-height: 56px; font-size: 17px; }
.wo-row { text-decoration: none; color: var(--text); gap: 2px; min-height: 48px; }
.line { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; text-align: left;
  min-height: 52px; font-weight: 400; }
.line > span { flex: 1; min-width: 0; }
.line > span small { display: block; }
.line strong { white-space: nowrap; }
div.line { padding: 4px 0; }
div.line button { width: 48px; flex: none; padding: 0; }

/* napló */
.daynav { display: grid; grid-template-columns: 56px 1fr 56px; gap: 8px; }
.daynav button { font-size: 24px; padding: 0; }
.kcal { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
#sum-kcal { color: var(--muted); font-size: 15px; line-height: 1.05; min-width: 0; }
#sum-kcal strong { color: var(--text); font-size: 46px; font-weight: 800; letter-spacing: -0.02em; }
#week-avg { flex: none; text-align: right; font-size: 17px; font-weight: 600; line-height: 1.2; }
#week-avg small { display: block; font-size: 11px; }
.bar { height: 10px; border-radius: 5px; background: var(--raised); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent-ink); border-radius: 5px; }
.macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.macros div { display: flex; flex-direction: column; min-width: 0; }
.macros span, .macros small { color: var(--muted); font-size: 12px; }
.macros strong { font-size: 13px; font-weight: 500; }
.acts button { font-size: 14px; font-weight: 500; padding: 6px 4px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tag { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; padding: 1px 6px; border: 1px solid; border-radius: 6px; }
.tag.raw { color: var(--raw); }
.tag.done { color: var(--done); }
button[aria-pressed=false] { opacity: 0.45; }
.seg .on { background: var(--sel-bg); }
.seg button, .seg .btn { padding: 8px 4px; }

/* a "+ Étel" gomb a napló alján rögzítve, a fülsor fölött (a fülsor 61 px magas) */
#app:has(> .addbar) { padding-bottom: calc(158px + env(safe-area-inset-bottom)); }
.addbar { position: fixed; left: 0; right: 0; bottom: calc(61px + env(safe-area-inset-bottom)); z-index: 4;
  padding: 16px 12px 8px; background: linear-gradient(transparent, var(--bg) 14px); pointer-events: none; }
.addbar button { max-width: 536px; margin: 0 auto; pointer-events: auto; box-shadow: 0 4px 14px var(--shadow); }
/* napló: vonalkód és szavas bevitel a "+ Étel" mellett, mindig a hüvelykujj alatt */
.addbar.trio { display: flex; justify-content: center; gap: 8px; }
.addbar.trio button { margin: 0; min-height: 58px; min-width: 0; flex: 1 1 0; max-width: 150px; padding: 6px 4px; font-size: 15px; }
.addbar.trio .primary { flex: 1.5 1 0; max-width: 220px; font-size: 18px; }
/* becslés jel a naplóban; megoldatlan szöveges tétel */
.est { font-style: normal; color: var(--muted); font-weight: 500; }
.unres { border-style: dashed; }
.unres strong { font-size: 13px; }
/* 10. kör: Claude segéd. Bizonytalan becslés: erősebb jel; várakozó tétel: a sor mellett "Újra"; fotó előnézet */
.est.low { color: var(--warn); font-weight: 800; }
.line.low { border-color: var(--warn); }
.line.low strong { color: var(--warn); }
.waitrow { display: flex; gap: 6px; align-items: stretch; }
.waitrow > .line { flex: 1; min-width: 0; border-color: var(--warn); }
.waitrow > .retry { width: auto; flex: none; min-width: 64px; padding: 8px 10px; color: var(--accent-ink); }
#ph-preview { display: flex; align-items: center; gap: 10px; }
#ph-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; background: var(--field); }
#ph-preview span { flex: 1; min-width: 0; font-weight: 600; }
#ph-preview small { display: block; }
#ph-preview button { width: auto; flex: none; }
#cl-q { font-size: 17px; font-weight: 600; }
.cl-on { color: var(--accent-ink); font-size: 14px; font-weight: 600; }
#cl-ping-out:empty { display: none; }
.ping-ok { color: var(--accent-ink); background: var(--ok-bg); border-radius: 10px; padding: 10px 12px; font-size: 15px; }
.ping-bad { color: var(--danger); background: var(--err-bg); border-radius: 10px; padding: 10px 12px; font-size: 15px; }
#net-msg { border: 1px solid var(--warn); border-radius: 10px; padding: 10px 12px; font-size: 15px; }
/* vonalkód és szavas bevitel */
#bc-video { width: 100%; aspect-ratio: 4 / 3; max-height: 34vh; object-fit: cover; border-radius: 12px; background: #000; display: block; }
textarea { font: inherit; color: var(--text); width: 100%; min-height: 120px; padding: 10px 12px; font-size: 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); resize: none; margin: 0; }
textarea:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
textarea::placeholder { color: var(--placeholder); font-size: 15px; }
#tx-quote, #fix-text { font-size: 19px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
#tx-cands { display: flex; flex-direction: column; gap: 6px; }
#tx-ask h2 { color: var(--text); }
#tx-ask .pick > button { min-height: 50px; padding: 5px 12px; }
#tx-ask .grid2 button { padding: 6px 6px; font-size: 15px; }
#tx-ask > button[data-a=tx-menu] { align-items: flex-start; text-align: left; }

/* aktív edzés alsó sávja: pihenőóra és tárcsaszámoló, a hüvelykujj alatt (ugyanott, ahol a naplóban a "+ Étel") */
#app:has(> .addbar > [data-a=finish-workout]) { padding-bottom: calc(214px + env(safe-area-inset-bottom)); }
.addbar > [data-a=finish-workout] { margin-bottom: 8px; }
.wbar { display: flex; gap: 8px; max-width: 536px; margin: 0 auto; pointer-events: auto; }
.addbar .wbar button { margin: 0; min-height: 58px; flex: 1 1 0; min-width: 0; box-shadow: 0 4px 14px var(--shadow); }
.addbar .wbar [data-a=rest] { flex: 1.7 1 0; flex-direction: row; justify-content: space-between; gap: 8px; padding: 6px 14px; }
.addbar .wbar [data-a=rest] strong { font-size: 24px; font-weight: 800; white-space: nowrap; flex: none; }
.addbar .wbar [data-a=rest] small { text-align: left; line-height: 1.15; white-space: pre-line; min-width: 0; }
.addbar .wbar [data-a=rest-restart] { flex: none; width: 56px; padding: 0; font-size: 24px; }
[data-state=run] { border-color: var(--accent-ink); }
[data-state=run] strong { color: var(--accent-ink); }
[data-state=over] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
[data-state=over] small { color: var(--on-accent-muted); }

/* tárcsaszámoló */
.pl-sum { display: flex; align-items: baseline; gap: 8px; }
.pl-sum strong { font-size: 28px; font-weight: 800; flex: 1; }
.plates { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 10px 0; border-left: 6px solid var(--muted); padding-left: 6px; }
.plate { display: flex; align-items: center; justify-content: center; width: 42px; height: 46px; border-radius: 8px; background: var(--raised);
  border: 2px solid var(--accent-ink); font-weight: 700; font-size: 14px; }
.plate.p25 { height: 96px; } .plate.p20 { height: 88px; } .plate.p15 { height: 78px; } .plate.p10 { height: 68px; }
.plate.p5 { height: 56px; } .plate.p2_5 { height: 46px; border-color: var(--muted); } .plate.p1_25 { height: 38px; border-color: var(--muted); }
#pl-out { display: flex; flex-direction: column; gap: 10px; min-height: 150px; }

/* múltbeli nap jelzése a naplóban; törlés utáni "Visszavonás" sáv a fülsor (és a "+ Étel" gomb) fölött */
.pastday { border-color: var(--warn); }
.pastday p { font-size: 15px; }
.pastday strong { color: var(--warn); }
.toast { position: fixed; left: 12px; right: 12px; bottom: calc(69px + env(safe-area-inset-bottom)); z-index: 6; max-width: 536px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; background: var(--raised); border: 1px solid var(--accent-ink);
  border-radius: 14px; box-shadow: 0 6px 18px var(--shadow); font-size: 15px; }
.toast span { flex: 1; min-width: 0; }
.toast button { width: auto; flex: none; color: var(--accent-ink); }
#app:has(> .addbar) .toast { bottom: calc(151px + env(safe-area-inset-bottom)); }

/* választók */
.overlay { display: flex; flex-direction: column; gap: 10px; min-height: calc(100vh - 100px); }
.ohead { display: flex; align-items: center; gap: 10px; }
.ohead h1 { flex: 1; margin: 0; font-size: 20px; }
.ohead button { width: auto; flex: none; }
#pick-list { display: flex; flex-direction: column; gap: 6px; }
#pick-list h2 { margin-top: 8px; }
.pick { display: flex; gap: 6px; }
.pick > button:first-child { flex: 1; min-width: 0; align-items: flex-start; text-align: left; font-weight: 500; min-height: 54px; }
.pick .quick { width: auto; flex: none; min-width: 84px; color: var(--accent-ink); white-space: nowrap; padding: 8px 10px; }

/* grafikon: a rajz 1 egysége 1 képpont; a doboz aránya rögzített, így se betöltéskor, se váltáskor nem ugrik semmi */
.chartcard { gap: 10px; }
.stat { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; height: 68px; }
.stat p { color: var(--muted); font-size: 15px; line-height: 1.1; min-width: 0; }
.stat small { display: block; font-size: 12px; margin-top: 4px; }
#stat-now strong { color: var(--text); font-size: 44px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: normal; }
#stat-change { text-align: right; flex: none; }
#stat-change strong { color: var(--text); font-size: 20px; font-weight: 700; white-space: nowrap; }
.chartbox { position: relative; width: 100%; }
.chart { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.chart text { fill: var(--muted); font-size: 11px; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--mark); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: url(#wash); stroke: none; }
.chart .w0 { stop-color: var(--mark); stop-opacity: 0.3; }
.chart .w1 { stop-color: var(--mark); stop-opacity: 0; }
.chart .raw { fill: var(--dim); }
.chart .dot { fill: var(--mark); stroke: var(--surface); stroke-width: 2; }
.chart .goal { stroke: var(--text); stroke-width: 1.5; stroke-dasharray: 5 4; }
.chart .goal-b { fill: var(--text); }
.chart .goal-l { fill: var(--surface); font-weight: 700; }
.chart .cross { stroke: var(--muted); stroke-width: 1; }
.chart .pick { fill: none; stroke: var(--text); stroke-width: 2; }
.tip { position: absolute; top: 0; left: 0; visibility: hidden; white-space: nowrap; pointer-events: none; padding: 4px 9px; border-radius: 9px;
  background: var(--raised); border: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.3; }
.tip.show { visibility: visible; }
.tip strong { color: var(--text); font-size: 14px; }
.chart-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 24px;
  color: var(--muted); font-size: 14px; border: 1px dashed var(--line); border-radius: 12px; }
.ranges button, .views button, .hub .btn { min-height: 44px; font-size: 14px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.facts div { display: flex; flex-direction: column; min-width: 0; }
.facts small { font-size: 12px; }
.facts strong { font-size: 15px; font-weight: 600; }
.legend { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.legend i { display: inline-block; width: 16px; height: 2px; border-radius: 2px; }
.legend i.main { background: var(--mark); }
.legend i.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); margin-left: 10px; }
.pagehead { display: flex; align-items: center; gap: 10px; }
.pagehead h1 { flex: 1; min-width: 0; margin: 0; }
.pagehead .btn { width: auto; flex: none; font-size: 14px; }
.grid2:has(#w-date) { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
#w-date { font-size: 16px; padding: 8px 6px 8px 10px; }

/* naptár: 7 oszlop, minden nap legalább 44 x 44; edzés = kerek jel a kiemelő színnel, étel = kék szögletes jel */
.navtitle { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.2; }
.navtitle strong { font-size: 18px; }
.cal { display: flex; flex-direction: column; gap: 4px; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-head span { text-align: center; font-size: 12px; color: var(--muted); }
.cal-grid button { min-width: 0; min-height: 50px; padding: 4px 0 6px; gap: 3px; font-weight: 500; font-size: 15px; background: var(--surface); border-radius: 10px; }
.cal-grid button:disabled { background: transparent; }
.cal-grid .today { border-color: var(--accent-ink); color: var(--accent-ink); font-weight: 800; }
.marks { display: flex; gap: 4px; height: 8px; align-items: center; }
.m-w, .m-f { display: inline-block; width: 8px; height: 8px; }
.m-w { border-radius: 50%; background: var(--accent-ink); }
.m-f { border-radius: 2px; background: var(--food); }
.cal-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal-legend { font-size: 13px; }
.legend i.m-w, .legend i.m-f { width: 8px; height: 8px; }
.legend i.m-w { border-radius: 50%; }
.cal-legend .m-f { margin-left: 10px; }

/* heti összesítő: főleg számok */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile.wide { grid-column: 1 / -1; }
.tile p { color: var(--muted); font-size: 15px; line-height: 1.1; }
.tile strong { color: var(--text); font-size: 34px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: normal; }
.tile.wide strong { font-size: 46px; }
.tile span { color: var(--muted); font-size: 13px; }
.tile .bar { margin-top: 4px; }

/* 9. kör: egy sorozat, helyszín, összefoglaló, izomcsoportok, közös grafikon */
.ex-head button { width: 48px; flex: none; padding: 0; font-size: 20px; }
.ex-toggle.done small { color: var(--text); }
.ex-toggle.done strong { color: var(--muted); font-weight: 500; }
.wo-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; color: var(--muted); font-size: 14px; }
.wo-meta select { width: auto; max-width: 62%; font-size: 15px; }
#wo-time { color: var(--text); font-size: 22px; font-weight: 800; margin-left: auto; }
.last small { font-size: 12px; white-space: nowrap; }
.shaky { font-style: normal; font-weight: 700; color: var(--warn); }
.field > span small { font-size: 12px; }
.locs { flex-wrap: wrap; }
.locs button { flex: 1 1 30%; min-height: 44px; font-size: 14px; overflow-wrap: anywhere; }
.sumcard { border-color: var(--accent-ink); }
.sumcard h2 { color: var(--accent-ink); }
.sumcard .facts strong { font-size: 22px; font-weight: 800; }
.sumcard .facts { row-gap: 12px; }
.mg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.mg div { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.mg span { flex: 1; min-width: 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow-wrap: normal; }
.mg strong { font-size: 20px; font-weight: 800; min-width: 20px; text-align: right; }
.mg small { width: 47px; text-align: right; white-space: nowrap; font-size: 12px; }
#ex-rows .line { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; row-gap: 0; }
#ex-rows .line > span { grid-row: span 2; white-space: nowrap; }
#ex-rows .line strong, #ex-rows .line small { grid-column: 2; text-align: right; }
#muscles h2 small { font-weight: 400; margin-left: 6px; }
#advice .facts strong { font-size: 20px; font-weight: 800; }
#adv-kcal strong { color: var(--accent-ink); }
.card > button.line { padding: 4px 12px; }
.chart .yt2 { fill: var(--food); }
.chart .line2 { fill: none; stroke: var(--food); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot2 { fill: var(--food); stroke: var(--surface); stroke-width: 1.5; }
.chart .pick2 { stroke: var(--food); }
.legend i.k2 { background: var(--food); margin-left: 10px; }

/* alsó navigáció, megerősítés */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--tabs); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 5; }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px;
  color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; }
.tabs a.on { color: var(--accent-ink); }
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.modal { position: fixed; inset: 0; background: var(--veil); display: flex; align-items: flex-end; padding: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 10; }
.modal .card { width: 100%; max-width: 536px; margin: 0 auto; background: var(--raised); }
/* a grafikon finoman jelenik meg; aki a telefonján kevesebb mozgást kért, annál azonnal */
@keyframes chart-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: no-preference) {
  button, .btn { transition: filter 0.1s; }
  .chart .marks { animation: chart-in 0.4s ease-out both; }
}
