/* Forma — vizuál inspirovaný studiem Lepshee: čistá černá, široký display font
   se stříbrným přechodem, neonové přechody (růžová → oranžová, azurová, limetková),
   velké zaoblené karty s jemnou září. Stavěno pro telefon. */

@font-face { font-family: 'Archivo'; font-weight: 500 900; font-stretch: 125%; font-display: swap;
  src: url(../fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-weight: 500 900; font-stretch: 125%; font-display: swap;
  src: url(../fonts/archivo-latinext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-weight: 400 800; font-display: swap;
  src: url(../fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 400 800; font-display: swap;
  src: url(../fonts/manrope-latinext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --bg: #000;
  --card: #0f0f11;
  --card-2: #18181b;
  --card-3: #222226;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #fff;
  --muted: #9a9a9a;
  --muted-2: #6c6c6c;

  --pink: #ff3fe0;
  --orange: #ff9a03;
  --yellow: #ffdd3a;
  --cyan: #64ffff;
  --lime: #e7ff64;
  --red: #ff4d5e;

  --grad-cta: linear-gradient(90deg, var(--pink), var(--orange));
  --grad-title: linear-gradient(280deg, rgba(255,255,255,.42) 0%, #fff 50%, rgba(255,255,255,.42) 100%);
  --grad-rainbow: linear-gradient(90deg, #ffdd3a 0%, #ff3fe0 15%, #64ffff 35%, #e7ff64 50%, #ff3fe0 65%, #64ffff 80%, #ffdd3a 100%);
  --grad-card: linear-gradient(160deg, #1b1b1e 0%, #0d0d0f 100%);

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;

  --display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --body: 'Manrope', -apple-system, system-ui, sans-serif;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --nav-h: 64px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); overflow-x: clip; }
body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overscroll-behavior-y: none;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

/* Duhová linka nahoře a fialová záře — podpis Lepshee */
.rainbow {
  position: fixed; inset: 0 0 auto 0; height: calc(var(--safe-t) + 3px); z-index: 50;
  background: var(--grad-rainbow); background-size: 200% 100%;
  animation: flow 8s linear infinite;
}
@keyframes flow { to { background-position: -200% 0; } }

.glow {
  position: fixed; z-index: 0; pointer-events: none;
  width: 520px; height: 520px; border-radius: 50%;
  top: -260px; right: -220px;
  background: radial-gradient(circle, rgba(255,63,224,.28) 0%, rgba(140,40,255,.12) 40%, transparent 70%);
  filter: blur(10px);
}

/* ---------- Rozvržení ---------- */

.app {
  position: relative; z-index: 1;
  max-width: 520px; margin: 0 auto;
  padding: calc(var(--safe-t) + 20px) 16px calc(var(--nav-h) + var(--safe-b) + 28px);
}
.app.bez-nav { padding-bottom: calc(var(--safe-b) + 120px); }

.stack > * + * { margin-top: 12px; }
.gap-l > * + * { margin-top: 28px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Typografie ---------- */

.display {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.02;
  background: var(--grad-title);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin: 0;
}
.display.xl { font-size: clamp(44px, 14vw, 64px); }
.display.l { font-size: clamp(32px, 10vw, 44px); }
.display.m { font-size: 26px; }
.h3 {
  font-family: var(--display); font-stretch: 125%; font-weight: 700;
  font-size: 17px; letter-spacing: -.01em; margin: 0; line-height: 1.2;
}
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow.grad { background: var(--grad-cta); -webkit-background-clip: text; background-clip: text; color: transparent; }

.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 18px; }
.topbar .back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; height: 44px; padding-right: 12px; }

/* ---------- Karty ---------- */

.card {
  background: var(--grad-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  position: relative;
}
.card.xl { border-radius: var(--r-xl); padding: 24px 20px; }
.card.flat { background: var(--card); }
.card.tap { display: block; transition: transform .15s ease, border-color .2s; }
.card.tap:active { transform: scale(.985); border-color: var(--line-2); }

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 28px 22px 22px;
  background: radial-gradient(120% 80% at 100% 0%, rgba(255,63,224,.22) 0%, transparent 55%),
              radial-gradient(90% 70% at 0% 100%, rgba(100,255,255,.08) 0%, transparent 60%),
              #0b0b0d;
  border: 1px solid var(--line);
}
.hero .orb {
  position: absolute; right: -30px; top: -30px; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffb3f4 0%, #ff3fe0 35%, #7a1cff 75%, transparent 76%);
  filter: blur(.5px); opacity: .85;
  box-shadow: 0 0 80px 20px rgba(255,63,224,.35);
  animation: plav 6s ease-in-out infinite;
}
.hero.volno .orb { background: radial-gradient(circle at 35% 35%, #d9ffff 0%, #64ffff 35%, #2b6cff 75%, transparent 76%); box-shadow: 0 0 80px 20px rgba(100,255,255,.25); }
@keyframes plav { 50% { transform: translate(-8px, 10px); } }
.hero > *:not(.orb) { position: relative; }

/* ---------- Tlačítka ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 26px; border-radius: 999px;
  font-weight: 800; font-size: 16px; letter-spacing: .01em;
  transition: transform .15s ease, opacity .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn.block { width: 100%; }
.btn.cta { background: var(--grad-cta); color: #fff; box-shadow: 0 10px 30px -10px rgba(255,63,224,.6); }
.btn.ghost {
  border: 1.5px solid transparent;
  background: linear-gradient(#0b0b0d, #0b0b0d) padding-box, linear-gradient(90deg, rgba(255,63,224,.7), rgba(255,154,3,.7)) border-box;
}
.btn.quiet { background: var(--card-2); border: 1px solid var(--line); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn.danger { color: var(--red); background: rgba(255,77,94,.08); border: 1px solid rgba(255,77,94,.25); }
.btn:disabled { opacity: .4; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--card-2); border: 1px solid var(--line);
}
.icon-btn:active { transform: scale(.94); }

.link { color: var(--muted); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }

/* ---------- Čipy a štítky ---------- */

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 2px 18px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 999px;
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 700; color: var(--muted);
  background: var(--card-2); border: 1px solid var(--line);
}
.chip.on { color: #000; background: #fff; border-color: #fff; }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
.tag.up { color: #000; background: var(--lime); }
.tag.pr { color: #000; background: var(--grad-cta); color: #fff; }
.tag.same { color: var(--muted); background: var(--card-3); }
.tag.down { color: var(--red); background: rgba(255,77,94,.12); }

/* ---------- Cyklus ---------- */

.cyklus { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.cyklus .d {
  aspect-ratio: 1 / 1.25; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 12px;
  background: var(--card-2); color: var(--muted-2); border: 1px solid var(--line);
}
.cyklus .d.hotovo { background: #fff; color: #000; border-color: #fff; }
.cyklus .d.dalsi { color: #fff; border: 1.5px solid transparent;
  background: linear-gradient(#141416, #141416) padding-box, var(--grad-cta) border-box; }

/* ---------- Statistiky ---------- */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 12px; }
.stat b { display: block; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 24px; line-height: 1.1; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- Seznamy ---------- */

.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.list > .li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 60px; }
.list > .li + .li { border-top: 1px solid var(--line); }
.list > a.li:active { background: var(--card-2); }
.li .t { font-weight: 700; }
.li .s { font-size: 13px; color: var(--muted); }
.chev { color: var(--muted-2); flex: none; }

.badge {
  flex: none; width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 13px;
  background: var(--card-3);
}
.badge.u { background: linear-gradient(135deg, rgba(255,63,224,.25), rgba(255,154,3,.18)); color: #ffc2f5; }
.badge.l { background: linear-gradient(135deg, rgba(100,255,255,.2), rgba(231,255,100,.14)); color: #c9ffff; }

.divider-volno { display: flex; align-items: center; gap: 10px; color: var(--muted-2); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 6px; }
.divider-volno::before, .divider-volno::after { content: ''; height: 1px; flex: 1; background: var(--line); }

/* ---------- Spodní navigace ---------- */

.nav {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
  padding: 8px 12px calc(var(--safe-b) + 8px);
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-top: 1px solid var(--line);
}
.nav-in { max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.nav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  height: 48px; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--muted-2);
}
.nav a.on { color: #fff; }
.nav a.on svg { filter: drop-shadow(0 0 8px rgba(255,63,224,.8)); stroke: url(#g-cta); }

/* ---------- Záznam tréninku ---------- */

.session-head {
  position: sticky; top: 0; z-index: 30;
  margin: calc(-1 * (var(--safe-t) + 20px)) -16px 16px;
  padding: calc(var(--safe-t) + 12px) 16px 12px;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.progress { height: 4px; border-radius: 4px; background: var(--card-3); overflow: hidden; margin-top: 10px; }
.progress > i { display: block; height: 100%; background: var(--grad-cta); border-radius: 4px; transition: width .4s ease; }

.ex { padding: 0; overflow: hidden; }
.ex-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px; width: 100%; text-align: left; min-height: 72px; }
.ex-num {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
  background: var(--card-3); color: var(--muted);
}
.ex.done .ex-num { background: var(--lime); color: #000; }
.ex.open { border-color: var(--line-2); }
.ex.open .ex-num { background: var(--grad-cta); color: #fff; }
.ex-body { padding: 0 16px 16px; }
.ex:not(.open) .ex-body { display: none; }
.ex-note { font-size: 13px; color: var(--muted); border-left: 2px solid var(--pink); padding: 2px 0 2px 10px; margin: 12px 0; }

.sets { margin-top: 14px; }
.sets-h, .set { display: grid; grid-template-columns: 30px 1fr 76px 64px 48px; gap: 8px; align-items: center; }
.sets-h { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); padding: 0 0 6px; }
.set { padding: 5px 0; }
.set .lbl { font-weight: 800; font-size: 14px; text-align: center; color: var(--muted); }
.set.r .lbl { font-size: 11px; color: var(--muted-2); }
.set .prev { font-size: 13px; color: var(--muted); line-height: 1.2; }
.set .prev small { display: block; font-size: 11px; color: var(--muted-2); }
.set input {
  width: 100%; height: 48px; border-radius: 14px;
  background: var(--card-2); border: 1px solid var(--line);
  text-align: center; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums;
  outline: none; -webkit-appearance: none; appearance: none;
}
.set input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,63,224,.18); }
.set input::placeholder { color: #4a4a4f; }
.set .ok {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--card-3); color: var(--muted-2); border: 1px solid var(--line);
}
.set.hotovo .ok { background: var(--lime); color: #000; border-color: var(--lime); }
.set.hotovo input { background: transparent; border-color: transparent; }
.set.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.set-target { grid-column: 2 / -1; font-size: 11px; color: var(--muted-2); font-weight: 700; margin-top: -2px; }
.set-meta { display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 0 0 4px; }
.set-meta .tagy { display: flex; gap: 6px; flex-wrap: wrap; }

.set-actions { display: flex; gap: 8px; margin-top: 10px; }
.set-actions .btn { flex: 1; }

/* Časovač pauzy */
.timer {
  position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(var(--safe-b) + 12px);
  max-width: 496px; margin: 0 auto;
  border-radius: 24px; padding: 14px 14px 14px 18px;
  background: rgba(20,20,23,.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.8), 0 0 40px -10px rgba(255,63,224,.35);
  transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.9,.3,1.2);
  overflow: hidden;
}
.timer.on { transform: none; }
.timer .bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--grad-cta); }
.timer .cas { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.timer.konec { border-color: var(--lime); box-shadow: 0 0 40px -6px rgba(231,255,100,.5); }
.timer.konec .cas { color: var(--lime); }

/* ---------- Spodní panel (sheet) ---------- */

.sheet-bg {
  position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6);
  opacity: 0; transition: opacity .25s;
}
.sheet {
  position: fixed; z-index: 61; left: 0; right: 0; bottom: 0;
  max-width: 520px; margin: 0 auto;
  max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain;
  background: #0e0e10; border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: 28px 28px 0 0;
  padding: 10px 18px calc(var(--safe-b) + 20px);
  transform: translateY(100%); transition: transform .32s cubic-bezier(.2,.9,.3,1);
}
.sheet-bg.on { opacity: 1; }
.sheet.on { transform: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--card-3); margin: 0 auto 14px; }

.video { position: relative; border-radius: var(--r-md); overflow: hidden; background: #000; aspect-ratio: 9 / 16; max-height: 62dvh; margin: 0 auto; }
.video.wide { aspect-ratio: 16 / 9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Formuláře ---------- */

.search {
  width: 100%; height: 48px; border-radius: 999px; padding: 0 18px 0 44px;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%239a9a9a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m16 16-3.5-3.5'/%3E%3C/svg%3E") no-repeat 16px center;
  border: 1px solid var(--line); outline: none; font-size: 16px;
}
.search:focus { border-color: var(--line-2); }

details.acc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
details.acc + details.acc { margin-top: 8px; }
details.acc summary { list-style: none; padding: 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; min-height: 52px; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc[open] summary svg { transform: rotate(90deg); }
details.acc p { margin: 0; padding: 0 16px 16px; color: var(--muted); font-size: 14px; }

/* ---------- Graf ---------- */

.spark { width: 100%; height: 90px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed; z-index: 80; left: 50%; top: calc(var(--safe-t) + 14px);
  transform: translate(-50%, -150%); transition: transform .3s ease;
  background: #fff; color: #000; font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.5);
  max-width: calc(100% - 32px); text-align: center;
}
.toast.on { transform: translate(-50%, 0); }

.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .display { margin-bottom: 8px; }

.fade-in { animation: fade .28s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Fáze 2–3: jídlo, pokrok, fotky
   ===================================================================== */

/* Přepínač (segmented control) */
.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px;
  padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
}
.seg > * {
  height: 38px; border-radius: 999px; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; padding: 0 8px;
}
.seg > .on { background: #fff; color: #000; }
.seg-top { margin-bottom: 20px; }

/* Denní souhrn jídla */
.makra { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.makra b { display: block; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 20px; }
.makra span { font-size: 11px; color: var(--muted); font-weight: 600; }

.meal { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 12px; }
.meal-ok {
  flex: none; width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--card-3); color: var(--muted-2); border: 1px solid var(--line);
}
.meal.snedeno .meal-ok { background: var(--lime); color: #000; border-color: var(--lime); }
.meal.snedeno .h3 { color: var(--muted); }

.voda { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.voda button {
  flex: 1; min-width: 26px; height: 40px; border-radius: 10px;
  background: var(--card-3); border: 1px solid var(--line);
}
.voda button.on { background: linear-gradient(180deg, var(--cyan), #2b8cff); border-color: transparent; box-shadow: 0 0 16px -4px rgba(100,255,255,.6); }

.supl summary { padding: 10px 16px 10px 10px; }
.supl-ok {
  width: 36px; height: 36px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--card-3); color: var(--muted-2); border: 1px solid var(--line);
}
.supl.hotovo .supl-ok { background: var(--lime); color: #000; border-color: var(--lime); }
.supl.nepovinne summary > span { opacity: .75; }
.supl p { line-height: 1.7; }

.dlazdice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dlazdice .card { display: flex; flex-direction: column; gap: 4px; padding: 16px; min-height: 118px; }
.dlazdice .card svg { color: var(--pink); margin-bottom: auto; }
.dlazdice b { font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 15px; margin-top: 12px; }
.dlazdice span { font-size: 12px; color: var(--muted); }

.dnes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dnes-grid .card { padding: 16px; display: flex; flex-direction: column; justify-content: flex-start; width: 100%; font: inherit; }

.stats.four { grid-template-columns: repeat(4, 1fr); }
.stats.four .stat { padding: 12px 8px; text-align: center; }
.stats.four .stat b { font-size: 19px; }

/* Kuchařka */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rcard { display: block; border-radius: var(--r-md); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .15s; }
.rcard:active { transform: scale(.98); }
.rimg { aspect-ratio: 4 / 5; background: var(--card-2); overflow: hidden; }
.rimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rtxt { padding: 10px 12px 12px; }
.rt { font-weight: 800; font-size: 14px; line-height: 1.25; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.recept-hero {
  position: relative; margin: calc(-1 * (var(--safe-t) + 20px)) -16px 0;
  aspect-ratio: 4 / 4.2; max-height: 62dvh; overflow: hidden; background: var(--card);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.recept-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recept-hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.recept-hero .icon-btn { position: absolute; left: 16px; top: calc(var(--safe-t) + 16px); z-index: 2; background: rgba(0,0,0,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

.postup { list-style: none; counter-reset: k; margin: 0; padding: 0; }
.postup li { counter-increment: k; position: relative; padding: 0 0 16px 46px; color: #ddd; }
.postup li::before {
  content: counter(k); position: absolute; left: 0; top: -3px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; background: var(--grad-cta); color: #fff;
}

.li.check { cursor: pointer; }
.li.check input { width: 22px; height: 22px; accent-color: var(--lime); flex: none; margin: 0; }
.li.check:has(input:checked) span.grow, .li.check.hotovo span.grow { color: var(--muted-2); text-decoration: line-through; }

.stepper { display: flex; align-items: center; gap: 4px; flex: none; }
.stepper button { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--card-3); border: 1px solid var(--line); }
.stepper button:disabled { opacity: .3; }
.stepper b { width: 28px; text-align: center; font-weight: 800; }

/* Pokrok */
.big-input { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.big-input input {
  width: 180px; background: transparent; border: 0; outline: none; text-align: right;
  font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 56px; font-variant-numeric: tabular-nums;
}
.big-input input::placeholder { color: #3a3a3f; }
.big-input span { font-size: 22px; color: var(--muted); font-weight: 700; }

.fotky { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.foto-slot { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; background: var(--card); border: 1px dashed var(--line-2); cursor: pointer; text-align: left; padding: 0; width: 100%; }
.foto-img { aspect-ratio: 3 / 4; background: var(--card-2) center / cover no-repeat; }
.foto-img[data-foto=""] { background-image: radial-gradient(circle at 50% 40%, rgba(255,63,224,.12), transparent 60%); }
.foto-lbl {
  position: absolute; left: 6px; right: 6px; bottom: 6px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  height: 30px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(0,0,0,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.foto-slot.nahrava { opacity: .5; }
.thumb { flex: none; width: 48px; height: 60px; border-radius: 12px; background: var(--card-3) center / cover no-repeat; }

.form-li input {
  width: 92px; height: 44px; border-radius: 12px; text-align: right; padding: 0 10px;
  background: var(--card-2); border: 1px solid var(--line); font-weight: 800; font-size: 17px; outline: none;
  font-variant-numeric: tabular-nums;
}
.form-li input:focus { border-color: var(--pink); }
.form-li .jed { width: 24px; color: var(--muted); font-size: 13px; }

.skala { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.skala button { height: 44px; border-radius: 12px; background: var(--card-3); border: 1px solid var(--line); font-weight: 800; color: var(--muted); }
.skala button.on { background: var(--grad-cta); color: #fff; border-color: transparent; }

.area {
  width: 100%; margin-top: 12px; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--card); border: 1px solid var(--line); outline: none; resize: vertical; font-size: 16px;
}
.area:focus { border-color: var(--line-2); }

.tecky { display: flex; gap: 5px; }
.tecky i { width: 10px; height: 10px; border-radius: 50%; background: var(--card-3); }
.tecky i.on { background: var(--grad-cta); }

.porovnani { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.foto-img.velka { border-radius: var(--r-md); margin-top: 8px; }
.select {
  width: 100%; height: 42px; border-radius: 12px; padding: 0 12px;
  background: var(--card-2); border: 1px solid var(--line); font-weight: 700; font-size: 14px;
}

.sync-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted-2); flex: none; }
.sync-dot.ok { background: var(--lime); box-shadow: 0 0 10px rgba(231,255,100,.7); }
.sync-dot.chyba { background: var(--red); }
