:root {
  --paper: #F6F3EA;
  --surface: #FFFFFF;
  --ink: #232A22;
  --ink-soft: #5B6357;
  --line: #DAD4C2;
  --accent: #2F5F53;
  --accent-ink: #FFFFFF;
  --error: #8C3A1E;
  --error-bg: #F5E5DA;
  --info-bg: #E6F0EC;
  --c1: #3F7A6B; --c1-bg: #E6F0EC;
  --c2: #B9862A; --c2-bg: #F6EEDA;
  --c3: #A5552E; --c3-bg: #F5E5DA;
  --c4: #3F5E7A; --c4-bg: #E4EBF0;
  --c5: #748C5F; --c5-bg: #EDF1E6;
  --c6: #7C5C8C; --c6-bg: #EFE6F1;
  --c7: #8A7A6C; --c7-bg: #EEE9E2;
  --part-rano_nalacno: #B9862A;
  --part-rano: #748C5F;
  --part-dopoledne: #3F7A6B;
  --part-trening: #A5552E;
  --part-kdykoli: #8A7A6C;
  --part-vecer: #3F5E7A;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171B17;
    --surface: #222722;
    --ink: #ECE9DF;
    --ink-soft: #A7AD9F;
    --line: #3A413A;
    --accent: #7FBFAD;
    --accent-ink: #12211C;
    --error: #F0B59A;
    --error-bg: #3D2519;
    --info-bg: #1F322C;
    --c1: #7FBFAD; --c1-bg: #1F322C;
    --c2: #D9AE5B; --c2-bg: #352B18;
    --c3: #D98E66; --c3-bg: #3A2519;
    --c4: #8FB0CF; --c4-bg: #1F2C38;
    --c5: #A3BC8D; --c5-bg: #27301F;
    --c6: #BB9CCB; --c6-bg: #2F2436;
    --c7: #B5A79A; --c7-bg: #2C2823;
    --part-rano_nalacno: #D9AE5B;
    --part-rano: #A3BC8D;
    --part-dopoledne: #7FBFAD;
    --part-trening: #D98E66;
    --part-kdykoli: #B5A79A;
    --part-vecer: #8FB0CF;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.5 "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, .brand, .cat-title, .section-title { font-family: "Fraunces", ui-serif, "New York", Georgia, serif; font-weight: 600; }
h1 { font-size: 32px; margin: 0 0 18px; letter-spacing: -0.01em; }
h2 { font-size: 20px; margin: 0; }
p { margin: 0; }
a { color: var(--accent); }

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 21px; color: var(--ink); text-decoration: none; }
.topbar nav { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.topbar nav a { color: var(--ink-soft); text-decoration: none; padding: 6px 0; }
.topbar nav a:hover { color: var(--ink); }

.page, .narrow {
  margin: 0 auto;
  padding: 24px 16px calc(40px + env(safe-area-inset-bottom));
}
.page { max-width: 760px; }
.narrow { max-width: 420px; padding-top: calc(48px + env(safe-area-inset-top)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
}
.stack { display: flex; flex-direction: column; gap: 14px; }

label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button, .button {
  display: inline-block;
  min-height: 46px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
button:disabled { opacity: .55; cursor: default; }
button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
button.link {
  min-height: 0;
  padding: 6px 0;
  background: none;
  color: var(--ink-soft);
  font-weight: 400;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions:empty { display: none; }

.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; }
.flash.error { background: var(--error-bg); color: var(--error); }
.flash.info { background: var(--info-bg); }

.center { text-align: center; margin-top: 16px; font-size: 15px; }
.qr { width: 100%; max-width: 240px; margin: 0 auto; background: #fff; border-radius: 10px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.secret { display: block; margin-top: 8px; overflow-wrap: anywhere; }
summary { cursor: pointer; color: var(--accent); }
details p { margin-top: 8px; }

.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 12px; margin: 0; padding: 0; list-style: none; }
.steps { margin: 0; padding-left: 22px; }
.facts { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.log { margin: 0; padding: 0; list-style: none; }
.log li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.log li:last-child { border-bottom: 0; }
.log small { color: var(--ink-soft); }

.tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.tabs a {
  flex: 0 1 auto;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 15px;
  text-align: center;
  text-decoration: none;
}
.tabs a[aria-current] { background: var(--info-bg); color: var(--ink); font-weight: 600; }

@media (max-width: 620px) {
  .tabs {
    position: fixed;
    z-index: 10;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    border-bottom: 0;
  }
  .tabs a { flex: 1 1 0; min-width: 0; padding: 10px 2px; font-size: 13.5px; }
  .page { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

.section { margin-bottom: 16px; }
.heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.heading h1 { margin: 0; }
.back { margin-bottom: 10px; font-size: 15px; }
.back a { text-decoration: none; }

.items { margin: 0 0 16px; padding: 0; list-style: none; }
.items li + li { border-top: 1px solid var(--line); }
.items a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 60px;
  padding: 10px 16px;
  color: inherit;
  text-decoration: none;
}
.items a:hover { background: var(--paper); }
.items li:first-child a { border-radius: 14px 14px 0 0; }
.items li:last-child a { border-radius: 0 0 14px 14px; }
.items strong { font-weight: 600; }
.items small { display: block; color: var(--ink-soft); font-size: 14px; }
.item-main { min-width: 0; overflow-wrap: anywhere; }
.item-when { flex: none; text-align: right; font-variant-numeric: tabular-nums; }
.item-when strong { font-size: 15px; }
.item-when.late strong, .item-when.late small, .item-when.missing small { color: var(--error); font-weight: 600; }

.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 20px; }
.totals small { display: block; color: var(--ink-soft); font-size: 14px; }
.totals strong { font-size: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.totals .note { grid-column: 1 / -1; color: var(--ink-soft); font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chips a {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
}
.chips a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { flex-direction: row; align-items: center; gap: 10px; }
.check input { width: 22px; min-height: 22px; }
.optional, .hint { color: var(--ink-soft); font-size: 14px; font-weight: 400; }
.danger summary { color: var(--error); }
.danger form { margin-top: 12px; }
.danger-button { background: var(--error); color: var(--surface); }

[hidden] { display: none !important; }

.chat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.chat .card { margin-bottom: 0; }
.chat-divider { color: var(--ink-soft); font-size: 14px; text-align: center; padding: 6px 0; }
.bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  overflow-wrap: anywhere;
}
.bubble p { white-space: pre-wrap; }
.bubble.user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); }
.bubble.user a { color: inherit; }
.bubble.assistant { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); }
.bubble.note { align-self: center; max-width: 100%; color: var(--ink-soft); font-size: 14px; text-align: center; padding: 2px 8px; }
.bubble-image { display: block; max-width: 100%; max-height: 260px; margin-top: 8px; border-radius: 8px; }
.bubble-file { display: block; margin-top: 6px; font-size: 15px; }
.proposal { border-color: var(--accent); }
.proposal-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 6px 14px; margin: 0; overflow-wrap: anywhere; }
.proposal-fields dt { color: var(--ink-soft); }
.proposal-fields dd { margin: 0; }
.proposal-fields s { color: var(--ink-soft); }
.file-pick input { min-height: 0; padding: 8px; }
.attachments { margin: 0; padding: 0; list-style: none; }
.attachments li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; overflow-wrap: anywhere; }

@media (max-width: 620px) {
  .tabs a { padding: 10px 0; font-size: 12.5px; }
}

.tab-narrow { display: none; }
@media (max-width: 620px) {
  .tabs a.tab-wide { display: none; }
  .tabs a.tab-narrow { display: block; }
  .tabs a { padding: 10px 2px; font-size: 13.5px; }
}

.status { font-size: 14px; }
.status.off { color: var(--error); font-weight: 600; }
.warning { background: var(--error-bg); color: var(--error); padding: 12px 14px; border-radius: 10px; }
.hub-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hub-row:last-child { border-bottom: 0; }
.hub-row small { display: block; color: var(--ink-soft); font-size: 14px; }
.hub-row > div { min-width: 0; overflow-wrap: anywhere; }
.hub-row button { flex: none; min-height: 40px; padding: 6px 12px; }
.marker-group h3 { margin: 12px 0 2px; font-size: 15px; color: var(--ink-soft); font-weight: 600; }
.chart { display: block; width: 100%; max-width: 520px; height: auto; }
.chart .band { fill: var(--info-bg); }
.chart .gridline { stroke: var(--line); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart .hit { fill: transparent; }
.chart text { fill: var(--ink-soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px 20px; }
.goals small { display: block; color: var(--ink-soft); font-size: 14px; }
.goals strong { font-size: 20px; font-variant-numeric: tabular-nums; }

.bubble, .proposal { animation: appear .18s ease-out; }
.proposal.deciding { opacity: .5; transition: opacity .15s; }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .bubble, .proposal { animation: none; }
}

.day-part { padding: 0; overflow: hidden; border-left: 5px solid var(--part); }
.part-rano_nalacno { --part: var(--part-rano_nalacno); }
.part-rano { --part: var(--part-rano); }
.part-dopoledne { --part: var(--part-dopoledne); }
.part-trening { --part: var(--part-trening); }
.part-kdykoli { --part: var(--part-kdykoli); }
.part-vecer { --part: var(--part-vecer); }
.day-part-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.day-part-head h3 { margin: 0; font: 600 18px "Fraunces", ui-serif, "New York", Georgia, serif; }
.day-part-icon { flex: none; font-size: 20px; line-height: 1; }
.day-part-count { margin-left: auto; color: var(--ink-soft); font-size: 14px; }
.supplement { border-top: 1px solid var(--line); }
.supplement > summary { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 16px; list-style: none; color: var(--ink); }
.supplement > summary::-webkit-details-marker { display: none; }
.supplement-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.supplement-main strong { display: block; font-weight: 600; }
.supplement-main small { display: block; color: var(--ink-soft); font-size: 14px; }
.supplement-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.chip { padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13px; }
.chip.food { border-color: var(--part); }
.chip.caution { border-color: var(--error); color: var(--error); }
.supplement-chevron { flex: none; color: var(--ink-soft); font-size: 20px; line-height: 1; transition: transform .15s; }
.supplement[open] .supplement-chevron { transform: rotate(90deg); }
.supplement-body { display: flex; flex-direction: column; gap: 10px; padding: 2px 16px 16px; font-size: 15.5px; }
.supplement-body h4 { margin: 0 0 2px; color: var(--ink-soft); font-size: 13.5px; font-weight: 600; }
.supplement-body a { font-size: 15px; }
.supplement-more { margin-bottom: 16px; }
.supplement-more > summary { padding: 4px 0 10px; }
@media (prefers-reduced-motion: reduce) { .supplement-chevron { transition: none; } }

.month-chips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 14px; }
.month-chips a { padding: 7px 0; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 14px; text-align: center; text-decoration: none; }
.month-chips a.now { border-color: var(--accent); }
.month-chips a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.year-grid { width: 100%; border-collapse: collapse; font-size: 14px; }
.year-grid th, .year-grid td { padding: 6px 0; border-bottom: 1px solid var(--line); font-weight: 400; text-align: center; }
.year-grid th:first-child { padding-right: 8px; overflow-wrap: break-word; text-align: left; }
.year-grid thead th { color: var(--ink-soft); font-size: 12px; }
.year-grid td, .year-grid thead th:not(:first-child) { width: 15px; }
.year-grid .on { display: block; width: 11px; height: 11px; margin: auto; border-radius: 4px; background: var(--accent); }
.year-grid .on.draft { background: transparent; border: 2px solid var(--ink-soft); }
.year-grid td.now, .year-grid thead th.now { background: var(--info-bg); }
.year-grid small { display: block; color: var(--ink-soft); font-size: 12px; }
.cure-body { display: flex; flex-direction: column; gap: 10px; }
.cure-body h4 { margin: 0 0 2px; color: var(--ink-soft); font-size: 13.5px; font-weight: 600; }
.cure-body p { white-space: pre-wrap; }
.cure { border-left: 5px solid var(--accent); }
.cure.draft { border-left-color: var(--line); }

.tone-c1 { --tone: var(--c1); --tone-bg: var(--c1-bg); }
.tone-c2 { --tone: var(--c2); --tone-bg: var(--c2-bg); }
.tone-c3 { --tone: var(--c3); --tone-bg: var(--c3-bg); }
.tone-c4 { --tone: var(--c4); --tone-bg: var(--c4-bg); }
.tone-c5 { --tone: var(--c5); --tone-bg: var(--c5-bg); }
.tone-c6 { --tone: var(--c6); --tone-bg: var(--c6-bg); }
.tone-c7 { --tone: var(--c7); --tone-bg: var(--c7-bg); }

.page-head { padding: 6px 12px 2px; text-align: center; }
.page-head h1 { margin: 0 0 4px; font-size: clamp(30px, 7vw, 42px); }
.eyebrow { margin-bottom: 8px; color: var(--ink-soft); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; }
.page-head .sub { color: var(--ink-soft); font-size: 16px; }
.vine { display: block; width: 220px; height: 14px; margin: 10px auto 14px; opacity: .55; }
.page-actions { display: flex; justify-content: center; margin-bottom: 18px; }
.health-menu, .chips { justify-content: center; }

.callout { margin-bottom: 26px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.callout b { color: var(--ink); }
.section-title { margin: 28px 0 2px; font-size: 24px; text-align: center; }
.section-sub { margin-bottom: 16px; color: var(--ink-soft); font-size: 15px; text-align: center; }

.cat-card { margin-bottom: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.cat-card > summary { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px 16px 20px; color: var(--ink); list-style: none; cursor: pointer; }
.cat-card > summary::-webkit-details-marker { display: none; }
.cat-card > summary::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 5px; background: var(--tone); }
.cat-ic, .item-ic { display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tone-bg); font-size: 19px; line-height: 1; }
.cat-text { flex: 1; min-width: 0; }
.cat-title { display: block; font-size: 19px; }
.cat-sub, .cat-count { display: block; color: var(--ink-soft); font-size: 14px; line-height: 1.35; }
.cat-count { margin-top: 3px; color: var(--tone); font-weight: 600; }
.chev { flex: none; color: var(--ink-soft); font-size: 18px; line-height: 1; transition: transform .2s ease; }
details[open] > summary .chev { transform: rotate(90deg); }
.cat-body { padding: 2px 18px 18px; border-top: 1px solid var(--line); }
.test { margin-top: 12px; padding: 12px 14px; background: var(--paper); border-radius: 12px; }
.test-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin-bottom: 5px; }
.test-name { font-size: 15.5px; font-weight: 700; }
.test-tag { padding: 2px 9px; border-radius: 20px; background: var(--tone-bg); color: var(--tone); font-size: 12px; font-weight: 600; white-space: nowrap; }
.test-what { margin-bottom: 6px; font-size: 15px; line-height: 1.45; }
.test-range { color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.test-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 9px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.test-result b { display: block; font-weight: 600; font-variant-numeric: tabular-nums; }
.test-result small { color: var(--ink-soft); font-size: 13.5px; }
.test-result .status { flex: none; color: var(--ink-soft); text-align: right; }
.test-result .status.off { color: var(--error); }

.term { position: relative; display: flex; gap: 14px; margin-bottom: 12px; padding: 16px 18px 16px 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.term::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 5px; background: var(--tone); }
.term-badge { display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tone-bg); color: var(--tone); font-size: 13px; font-weight: 700; }
.term-h { margin-bottom: 5px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.term-h span { display: block; color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.term-list { margin-bottom: 7px; font-size: 14.5px; line-height: 1.5; }
.term-prep { color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.term-prep b { color: var(--ink); }

.items.card { position: relative; overflow: hidden; }
.items.card[class*="tone-"]::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 5px; background: var(--tone); }
.items.card[class*="tone-"] a { padding-left: 20px; }
.items .item-ic { margin-right: -2px; }
.items a { justify-content: flex-start; }
.items a .item-when { margin-left: auto; }
.proposal { border-left: 5px solid var(--accent); }
.cure { border-left-width: 5px; }
.topbar, .tabs { background: var(--surface); }
.brand { font-size: 22px; }
.card h2, .day-part h3 { letter-spacing: -0.005em; }
@media (prefers-reduced-motion: reduce) { .chev { transition: none; } }

.day-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.day-nav a { font-size: 15px; text-decoration: none; }
.goal-list { display: flex; flex-direction: column; gap: 10px; }
.goal span { display: block; font-variant-numeric: tabular-nums; }
.goal b { font-weight: 600; }
progress { display: block; width: 100%; height: 8px; margin-top: 3px; overflow: hidden; border: 0; border-radius: 6px; background: var(--line); accent-color: var(--accent); }
progress::-webkit-progress-bar { background: var(--line); border-radius: 6px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 6px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 6px; }
.day-note { margin-bottom: 0; }
.simple-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.simple-table th, .simple-table td { padding: 7px 0; border-bottom: 1px solid var(--line); font-weight: 400; text-align: right; }
.simple-table th:first-child { text-align: left; }
.simple-table thead th { color: var(--ink-soft); font-size: 13.5px; }
.training { padding: 6px 18px 12px 22px; position: relative; overflow: hidden; }
.training::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 5px; background: var(--tone); }
.training-count { padding: 10px 0 4px; color: var(--ink-soft); font-size: 14.5px; }
.exercise { padding: 12px 0; border-top: 1px solid var(--line); }
.exercise-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.exercise-head > div { min-width: 0; overflow-wrap: anywhere; }
.exercise-name { color: var(--ink); font-weight: 700; text-decoration: none; }
.exercise small { display: block; color: var(--ink-soft); font-size: 14px; line-height: 1.35; }
.exercise-check { flex: none; width: 44px; min-height: 44px; padding: 0; background: transparent; border: 2px solid var(--line); border-radius: 50%; color: var(--ink-soft); font-size: 20px; line-height: 1; }
.exercise-check[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.exercise.done .exercise-name { color: var(--ink-soft); }
.exercise-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.exercise-inputs label { font-size: 13.5px; font-weight: 500; gap: 3px; }
.exercise-inputs input { min-height: 44px; }
.change-day summary { padding: 2px 0; }
.change-day form { margin-top: 12px; }
.term.current { border-color: var(--tone); }
.today-training { color: var(--ink); text-decoration: none; }
.today-training > span:last-child { min-width: 0; }

.assistant { margin-bottom: 16px; padding: 0; overflow: hidden; }
.assistant > summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--ink); font-weight: 700; list-style: none; }
.assistant > summary::-webkit-details-marker { display: none; }
.assistant-body { padding: 0 14px 14px; }
.assistant .chat { max-height: 320px; margin-bottom: 10px; overflow-y: auto; }
.assistant .chat:empty { display: none; }
.assistant .bubble { font-size: 15.5px; }
.assistant .proposal { margin-bottom: 10px; }
.assistant-form { display: flex; align-items: flex-end; gap: 8px; }
.assistant-form textarea { flex: 1; min-height: 46px; resize: none; }
.assistant-form button { flex: none; }
.coach { margin-top: 8px; font-size: 14.5px; }
.coach summary { color: var(--accent); }
.coach dl { display: grid; grid-template-columns: 1fr; gap: 2px; margin: 6px 0 0; padding: 10px 12px; background: var(--paper); border-radius: 10px; }
.coach dt { margin-top: 6px; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.coach dt:first-child { margin-top: 0; }
.coach dd { margin: 0; line-height: 1.4; }
.meal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.meal:first-of-type { border-top: 0; }
.meal-main { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.meal-part { display: block; color: var(--ink-soft); font-size: 13.5px; font-weight: 600; }
.meal small { display: block; color: var(--ink-soft); font-size: 14px; }
.meal.eaten .meal-main > strong { color: var(--ink-soft); text-decoration: line-through; }
.meal form button { min-height: 40px; padding: 6px 12px; }
.assistant .bubble { flex: none; }

/* Safari na iPhonu dává polím s datem a časem vlastní šířku, kterou by jinak přetekla z karty. */
label, .stack > * { min-width: 0; }
input, select, textarea { max-width: 100%; min-width: 0; }
input[type="date"], input[type="time"] { display: block; -webkit-appearance: none; appearance: none; text-align: left; }
input::-webkit-date-and-time-value { min-height: 1.5em; text-align: left; }
.tabs { flex-wrap: wrap; }
@media (max-width: 620px) { .tabs { flex-wrap: nowrap; } }

.page-wide { max-width: 1080px; }
.board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.widget { min-width: 0; }
.widget > .card, .widget > .items, .widget .assistant, .widget .term { margin-bottom: 0; }
.widget.is-hidden { display: none; }
.widget-tools { display: none; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; padding: 8px 10px; background: var(--info-bg); border-radius: 10px; }
.widget-tools b { min-width: 0; font-size: 14.5px; overflow-wrap: anywhere; }
.widget-tools div { display: flex; flex: none; gap: 4px; }
.widget-tools button { min-width: 40px; min-height: 40px; padding: 0 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 14px; font-weight: 600; }
.board.editing .widget-tools { display: flex; }
.board.editing .widget.is-hidden { display: block; opacity: .55; }
.board.editing .widget.is-hidden > :not(.widget-tools) { display: none; }
.board.editing .widget { cursor: grab; }
.widget.dragging { opacity: .4; }
.board-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.tiles a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 12px; color: var(--ink); font-size: 14px; line-height: 1.2; text-align: center; text-decoration: none; }
.tiles a:hover { background: var(--paper); }
.mini-list { margin: 0; padding: 0; list-style: none; }
.mini-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list span:last-child { flex: none; color: var(--ink-soft); font-size: 14px; }
.widget-link { font-size: 15px; }
@media (min-width: 820px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .widget.wide { grid-column: 1 / -1; }
}


/* ===== Vše v klidu: navigace, chat a jemnější vzhled ===== */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { overflow-wrap: break-word; }
.icon { display: block; flex: none; width: 22px; height: 22px; }

.card, .cat-card, .term, .callout {
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(35, 42, 34, .05), 0 6px 20px rgba(35, 42, 34, .05);
}
@media (prefers-color-scheme: dark) {
  .card, .cat-card, .term, .callout { border-color: var(--line); box-shadow: none; }
}
button, .button, .tabs a, .chips a, .items a, .tiles a, .test-result, .month-chips a {
  transition: transform .12s ease, background-color .15s ease, color .15s ease, opacity .15s ease;
}
button:active:not(:disabled), .button:active, .chips a:active, .tiles a:active, .tabs a:active { transform: scale(.97); }
.items.card a:active { background: var(--paper); }
input, select, textarea { transition: border-color .15s ease, box-shadow .15s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--info-bg); outline: none; }

/* Dlouhé řady voleb se posouvají do strany, místo aby zabíraly půlku obrazovky. */
.chips { flex-wrap: nowrap; justify-content: flex-start; margin-inline: -16px; padding: 2px 16px 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; }
.page-head { padding-top: 0; }
.page-head h1 { font-size: clamp(27px, 6vw, 40px); }
.page-head .sub { font-size: 15px; }
.vine { display: none; }
.page-actions { margin-bottom: 14px; }

/* Navigace: dole na telefonu a tabletu, vlevo na počítači */
.side-brand { display: none; }
.side-foot { display: none; }
.tabs {
  position: fixed;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  justify-content: space-around;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 0;
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.tabs a {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 6px 2px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 500;
}
.tabs a[aria-current] { background: var(--info-bg); color: var(--accent); font-weight: 600; }
.tabs a.tab-wide { display: none; }
.tabs a.tab-narrow { display: flex; }
.page, .narrow { padding-top: calc(18px + env(safe-area-inset-top)); }
.with-nav .page { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }

@media (min-width: 980px) {
  .side-brand { position: fixed; z-index: 11; top: 0; left: 0; display: block; width: 232px; padding: 22px 22px 8px; }
  .side-brand .brand { font-size: 23px; }
  .tabs {
    top: 0;
    right: auto;
    bottom: 0;
    flex-direction: column;
    justify-content: flex-start;
    width: 232px;
    gap: 2px;
    padding: 70px 12px 16px;
    overflow-y: auto;
    background: var(--surface);
    border-top: 0;
    border-right: 1px solid var(--line);
  }
  .tabs a, .tabs a.tab-wide { display: flex; flex: none; flex-direction: row; gap: 12px; padding: 9px 12px; border-radius: 10px; font-size: 15px; }
  .tabs a:hover { background: var(--paper); color: var(--ink); }
  .tabs a.tab-narrow { display: none; }
  .side-foot { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
  .side-foot .link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 0; padding: 9px 12px; color: var(--ink-soft); font-size: 15px; }
  .with-nav main { margin-left: 232px; }
  .with-nav .page { padding: 28px 28px 48px; margin-right: auto; margin-left: calc(232px + max(0px, (100vw - 232px - var(--page-width, 760px)) / 2)); }
  .with-nav .page-wide { --page-width: 1080px; }
}

/* Chat */
.chat-page { display: flex; flex-direction: column; min-height: 100dvh; }
.chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.chat-head h1 { margin: 0; font-size: 27px; }
.chat-head .hint { font-size: 13px; line-height: 1.35; }
.icon-button { display: flex; flex: none; align-items: center; justify-content: center; width: 42px; min-height: 42px; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 50%; color: var(--ink); }
.chat { flex: 1; gap: 8px; }
.chat-empty { margin: auto; padding: 28px 12px; text-align: center; }
.chat-empty h2 { margin: 10px 0 6px; font-size: 22px; }
.chat-empty p { max-width: 420px; color: var(--ink-soft); font-size: 15.5px; }
.chat-avatar.large { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--info-bg); font-size: 26px; }
.bubble { max-width: min(82%, 640px); padding: 9px 14px; border: 0; border-radius: 18px; font-size: 16px; line-height: 1.42; animation: appear .2s ease-out; }
.bubble.user { border-bottom-right-radius: 5px; }
.bubble.assistant { border: 0; border-bottom-left-radius: 5px; background: var(--surface); box-shadow: 0 1px 2px rgba(35, 42, 34, .08); }
.bubble.note { padding: 2px 10px; background: none; box-shadow: none; }
.chat-divider { font-size: 13px; }
.typing { display: inline-flex; align-self: flex-start; gap: 4px; padding: 13px 15px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); animation: typing 1.1s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.quick-chips { display: flex; gap: 8px; margin: 10px -16px 0; padding: 2px 16px; overflow-x: auto; scrollbar-width: none; }
.quick-chips::-webkit-scrollbar { display: none; }
.quick-chips button { flex: none; min-height: 36px; padding: 6px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 500; }
.composer {
  position: sticky;
  z-index: 5;
  bottom: calc(68px + env(safe-area-inset-bottom));
  margin: 10px -16px 0;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.composer .flash { margin-bottom: 8px; }
.composer-row { display: flex; align-items: flex-end; gap: 6px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 2px 10px rgba(35, 42, 34, .07); }
.composer-row:focus-within { border-color: var(--accent); }
.composer-row textarea, .assistant-form textarea { flex: 1; min-height: 38px; max-height: 180px; padding: 8px 6px; background: transparent; border: 0; box-shadow: none; resize: none; line-height: 1.35; }
.composer-row textarea:focus { box-shadow: none; }
.attach { display: flex; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; color: var(--ink-soft); cursor: pointer; }
.attach input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.send { display: flex; flex: none; align-items: center; justify-content: center; width: 38px; min-height: 38px; height: 38px; padding: 0; border-radius: 50%; }
.send .icon { width: 20px; height: 20px; }
.assistant { box-shadow: 0 1px 2px rgba(35, 42, 34, .05), 0 6px 20px rgba(35, 42, 34, .05); }
.assistant-form { align-items: flex-end; gap: 6px; padding: 5px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; }
.assistant-form textarea:focus { box-shadow: none; }
.proposal { animation: appear .2s ease-out; }
@media (min-width: 980px) {
  .composer { bottom: 0; margin-inline: 0; padding-inline: 0; }
  .quick-chips { margin-inline: 0; padding-inline: 0; }
}

/* Přepínače, peníze */
.switch { position: relative; flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 0; cursor: pointer; }
.switch small { display: block; color: var(--ink-soft); font-size: 14px; font-weight: 400; }
.switch b { font-weight: 600; }
.switch input { position: absolute; width: 1px; min-height: 0; height: 1px; opacity: 0; }
.switch-track { position: relative; flex: none; width: 48px; height: 28px; border-radius: 999px; background: var(--line); transition: background-color .18s ease; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .18s ease; }
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.money-total small { display: block; color: var(--ink-soft); font-size: 14px; }
.money-total strong { font: 600 34px/1.15 "Fraunces", ui-serif, Georgia, serif; font-variant-numeric: tabular-nums; }
.goal em { font-style: normal; }
progress.over::-webkit-progress-value { background: var(--error); }
progress.over::-moz-progress-bar { background: var(--error); }
.row-form { padding: 10px 16px; }
.row-form .link { font-size: 16px; color: var(--error); }
@media (prefers-reduced-motion: reduce) {
  *, ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.chat { flex: none; }
.chat:has(.chat-empty) { flex: 1; display: flex; }
#proposals { margin-bottom: 4px; }
.composer { margin-top: auto; }
.quick-chips { margin-top: auto; }
.quick-chips + .composer { margin-top: 10px; }
.page-head { margin-bottom: 14px; }

.wizard { display: flex; flex-direction: column; gap: 14px; max-width: 560px; margin-inline: auto; }
.wizard progress { height: 6px; }
.wizard-step { margin: 0; border: 0; min-width: 0; }
.wizard-step[hidden] { display: none; }
.wizard-step legend { float: left; width: 100%; margin-bottom: 12px; padding: 0; font: 600 23px/1.2 "Fraunces", ui-serif, Georgia, serif; }
.wizard-step > :not(legend) { clear: both; }
.choice-list { display: flex; flex-direction: column; gap: 8px; }
.choice { display: block; cursor: pointer; }
.choice input { position: absolute; width: 1px; min-height: 0; height: 1px; opacity: 0; }
.choice span { display: block; padding: 13px 16px; background: var(--paper); border: 2px solid transparent; border-radius: 12px; font-weight: 500; transition: border-color .15s ease, background-color .15s ease; }
.choice input:checked + span { background: var(--info-bg); border-color: var(--accent); font-weight: 600; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.wizard-actions { display: flex; justify-content: space-between; gap: 10px; }
.wizard-actions button:last-child, .wizard-actions #wizard-next { margin-left: auto; }
.add-row { display: flex; gap: 8px; }
.add-row input { flex: 1; }
.shop-item button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 6px 0; background: none; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); font-weight: 400; text-align: left; }
.shop-item button:active:not(:disabled) { transform: none; }
.shop-item small { color: var(--ink-soft); font-size: 14px; }
.shop-box { display: flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; border: 2px solid var(--line); border-radius: 7px; font-size: 14px; }
.shop-item.done button { color: var(--ink-soft); text-decoration: line-through; }
.shop-item.done .shop-box { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }
.bought summary { padding: 6px 0; font-size: 15px; }
.assistant .chat-empty { display: none; }
.assistant .chat:has(.chat-empty) { display: none; }


/* ===== Nadčasová vrstva: klidné barvy, velkorysé tvary, jasná hierarchie ===== */
:root {
  --paper: #F4F4EE;
  --surface: #FFFFFF;
  --ink: #16211C;
  --ink-soft: #5F6B64;
  --line: #E4E4DB;
  --accent: #1F5C4D;
  --accent-ink: #FFFFFF;
  --info-bg: #E5F0EB;
  --hero-from: #0F332B;
  --hero-to: #2C7461;
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0D1210;
    --surface: #161C19;
    --ink: #EEF2EC;
    --ink-soft: #A2ACA5;
    --line: #2A322E;
    --accent: #7FCBB5;
    --accent-ink: #0B1E18;
    --info-bg: #1B2C26;
    --hero-from: #123A31;
    --hero-to: #1F5C4D;
  }
}
body { background: var(--paper); font-size: 16.5px; letter-spacing: -.003em; }
.page { max-width: 780px; }
.page-wide { max-width: 1200px; }
.with-nav .page-wide { --page-width: 1200px; }
.card, .cat-card, .term, .callout { border-radius: var(--radius); }
.card { padding: 20px; }
button, .button { border-radius: 14px; }
input, select, textarea { border-radius: 13px; background: var(--paper); border-color: transparent; }
h2 { font-size: 19px; letter-spacing: -.01em; }

/* Úvodní část */
.hero { position: relative; margin-bottom: 14px; padding: 24px 22px 20px; overflow: hidden; border-radius: 28px; background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: #fff; box-shadow: 0 14px 34px rgba(15, 51, 43, .22); }
.hero::after { content: ""; position: absolute; top: -70px; right: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%); }
.hero h1 { position: relative; z-index: 1; margin: 2px 0 6px; color: #fff; font-size: clamp(32px, 7vw, 46px); }
.hero-date { position: relative; z-index: 1; color: rgba(255, 255, 255, .78); font-size: 14.5px; }
.hero-sub { position: relative; z-index: 1; color: rgba(255, 255, 255, .9); font-size: 15.5px; }
.hero-pills { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero-pills a { padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .15); color: #fff; font-size: 14px; text-decoration: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.board-actions { justify-content: flex-end; margin-bottom: 12px; }
.board-actions button { min-height: 36px; padding: 5px 13px; font-size: 14px; font-weight: 500; }
.ring-row { display: flex; align-items: center; gap: 14px; }
.ring { flex: none; width: 84px; height: 84px; }
.ring-track, .ring-value { fill: none; stroke-width: 8; }
.ring-track { stroke: var(--line); }
.ring-value { stroke: var(--accent); stroke-linecap: round; }
.ring text { fill: var(--ink); font-size: 15px; font-weight: 700; }
.ring-row b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.ring-row small { color: var(--ink-soft); font-size: 14px; }
@media (min-width: 1180px) {
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .widget.wide { grid-column: span 2; }
}

/* Spodní lišta s tlačítkem přidat */
.tabs { align-items: center; padding-inline: 8px; }
.tab-add { display: flex; flex: 0 0 56px; align-items: center; justify-content: center; width: 56px; height: 56px; min-height: 56px; margin-top: -24px; padding: 0; border-radius: 50%; background: linear-gradient(135deg, var(--hero-to), var(--hero-from)); color: #fff; box-shadow: 0 8px 20px rgba(15, 51, 43, .35); }
.tab-add span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tab-add .icon { width: 26px; height: 26px; }
@media (min-width: 980px) {
  .tabs { align-items: stretch; }
  .tab-add { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; width: 100%; height: auto; min-height: 42px; margin: 0 0 10px; padding: 9px 12px; border-radius: 12px; box-shadow: none; font-size: 15px; font-weight: 600; }
  .tab-add span { position: static; width: auto; height: auto; clip-path: none; }
  .tab-add .icon { width: 22px; height: 22px; }
}

/* Rychlé přidání */
.quick-sheet { position: fixed; inset: auto 0 0; width: 100%; max-width: 560px; margin: auto auto 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); border: 0; border-radius: 26px 26px 0 0; background: var(--surface); color: var(--ink); }
.quick-sheet::backdrop { background: rgba(8, 18, 14, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.quick-sheet[open] { animation: sheet .22s ease-out; }
@keyframes sheet { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.sheet-grab { width: 42px; height: 5px; margin: 0 auto 12px; border-radius: 999px; background: var(--line); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.quick-tiles { grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
.quick-sheet .composer-row textarea { padding-inline: 12px; }
@media (min-width: 980px) { .quick-sheet { margin: auto; border-radius: 26px; } }

/* Více */
.month-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.month-head h1 { margin: 0; font-size: clamp(26px, 6vw, 34px); }
.month-nav { display: flex; align-items: center; gap: 6px; }
.month-nav a.icon-button { font-size: 24px; line-height: 1; text-decoration: none; }
.secondary-link { min-height: 42px; padding: 8px 14px; background: var(--surface); color: var(--ink); font-size: 14.5px; }
.eco-banner { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 16px 18px; border-radius: var(--radius); background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: #fff; text-decoration: none; }
.eco-banner b { display: block; font-size: 17px; }
.eco-banner small { display: block; color: rgba(255, 255, 255, .82); font-size: 14px; }
.eco-banner > span:last-child { margin-left: auto; font-size: 26px; }
.eco-banner-icon { font-size: 26px; }
.apps { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }

/* Kalendář */
.filter { display: inline-flex; flex: none; align-items: center; gap: 7px; min-height: 36px; padding: 5px 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; }
.filter[aria-pressed="false"] { color: var(--ink-soft); opacity: .55; }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tone, var(--accent)); }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 10px; }
.calendar { padding: 12px; margin-bottom: 0; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.calendar-names span { padding: 4px 0 8px; color: var(--ink-soft); font-size: 13px; text-align: center; }
.day { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; min-height: 52px; padding: 7px 0 5px; background: transparent; border-radius: 14px; color: var(--ink); font-weight: 400; }
.day b { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 500; font-variant-numeric: tabular-nums; }
.day.weekend b { color: var(--ink-soft); }
.day.holiday b { color: var(--error); font-weight: 700; }
.day.today b { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.day.selected { background: var(--info-bg); }
.day-dots { display: flex; justify-content: center; gap: 2px; min-height: 6px; }
.day-dots .dot { width: 5px; height: 5px; }
.day-dots .dot[hidden] { display: none; }
.day-panel { margin-bottom: 0; scroll-margin-bottom: 96px; }
.day-panel h2 { font-size: 21px; }
.agenda-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.agenda-row:last-child { border-bottom: 0; }
.agenda-row[hidden] { display: none; }
.agenda-row small { display: block; color: var(--ink-soft); font-size: 14px; }
@media (min-width: 980px) {
  .calendar-layout { grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); align-items: start; }
  .day { min-height: 74px; }
  .day-panels { position: sticky; top: 20px; }
}

/* Ekosystém */
.eco-hero { margin-bottom: 14px; }
.eco-hero h1 { margin-bottom: 6px; font-size: clamp(28px, 6vw, 40px); }
.eco-hero p:last-child { max-width: 640px; color: var(--ink-soft); }
.eco-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.eco-map { margin: 0; padding: 8px; background: radial-gradient(circle at 50% 50%, #17433A, #0B211C 75%); }
#eco { display: block; width: 100%; height: auto; touch-action: manipulation; }
.edge { fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: 1; transition: stroke .2s ease, opacity .2s ease; }
.edge.spoke { stroke: rgba(255, 255, 255, .2); }
.edge.active { stroke: rgba(127, 224, 196, .55); stroke-width: 1.4; }
.edge.quiet { opacity: 0; }
.packet { fill: #A8F0DA; opacity: .95; transition: opacity .2s ease; }
#eco.focused .edge:not(.lit) { opacity: .25; }
#eco.focused .edge.quiet:not(.lit) { opacity: 0; }
#eco.focused .edge.lit { opacity: 1; stroke: #A8F0DA; stroke-width: 1.8; }
#eco.focused .packet:not(.lit) { opacity: .12; }
.node { cursor: pointer; outline: none; }
.node-hit { fill: transparent; }
.node-ring { fill: #1C4A40; stroke: rgba(255, 255, 255, .22); stroke-width: 1.2; transition: fill .2s ease, stroke .2s ease; }
.node.active .node-ring { fill: #25695A; stroke: #7FE0C4; }
.node.center .node-ring { fill: #2C7461; stroke: #A8F0DA; stroke-width: 2; }
.node.selected .node-ring { fill: #F4F4EE; stroke: #fff; stroke-width: 2.5; }
.node.linked .node-ring { stroke: #A8F0DA; stroke-width: 2; }
.node:focus-visible .node-ring { stroke: #fff; stroke-width: 3; }
.node-icon { font-size: 17px; }
.node.center .node-icon { font-size: 26px; }
.node-label { fill: rgba(255, 255, 255, .86); font-size: 10.5px; font-weight: 600; }
.node.center .node-label { font-size: 13px; }
.eco-side { display: flex; flex-direction: column; gap: 14px; }
.eco-side .card { margin: 0; }
.eco-panel-head { display: flex; align-items: center; gap: 12px; }
.eco-panel-head small { display: block; color: var(--ink-soft); font-size: 13.5px; }
.status.live { color: var(--accent); font-weight: 600; }
.eco-links li { display: block; }
.eco-links b { display: block; font-weight: 600; }
.eco-links small { display: block; color: var(--ink-soft); font-size: 14px; }
@media (min-width: 980px) {
  .eco-layout { grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr); align-items: start; }
  .eco-map { position: sticky; top: 20px; }
}
.node-label { font-size: 13px; }
.node.center .node-label { font-size: 15px; }
.quick-sheet textarea { font-size: 16px; }
#quick-wait { margin-top: 8px; }
.secondary-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }


/* ===== Značka ===== */
.logo { display: block; flex: none; width: 34px; height: 34px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font-family: "Fraunces", ui-serif, Georgia, serif; font-size: 23px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.wordmark em { color: var(--accent); font-style: normal; font-weight: 400; }
.side-brand .brand { display: inline-flex; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 24px 0; }
.login-brand .logo { width: 52px; height: 52px; }
.login-brand .wordmark { font-size: 34px; }
.hero-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.hero-brand .logo { width: 28px; height: 28px; }
.hero-brand .wordmark { color: #fff; font-size: 18px; }
.hero-brand .wordmark em { color: #F4E7BE; }
@media (min-width: 980px) { .hero-brand { display: none; } }

/* ===== Ikony ===== */
.icon .f { fill: currentColor; fill-opacity: .16; stroke: none; }
.item-ic, .cat-ic, .term-badge { color: var(--tone, var(--accent)); }
.item-ic .icon, .cat-ic .icon, .term-badge .icon { width: 23px; height: 23px; }
.day-part-icon { color: var(--accent); }
.day-part-icon .icon { width: 24px; height: 24px; }
.mini-list .icon { display: inline-block; width: 18px; height: 18px; vertical-align: -4px; color: var(--accent); }
.eco-banner-icon .icon { width: 30px; height: 30px; }
.node-svg { color: #E9F7F1; }
.node-svg .f { fill: currentColor; fill-opacity: .18; stroke: none; }
.node.selected .node-svg { color: #123A31; }

/* ===== Přehled: těsné skládání oken ===== */
.widget > * { width: 100%; }
.widget .term { display: flex; }
.widget .term::before { display: none; }
.widget > .stack > h2 { margin-bottom: 8px; }
@media (min-width: 760px) {
  .board { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-auto-flow: dense; }
  .board.masonry { grid-auto-rows: 1px; row-gap: 0; column-gap: 16px; }
  .widget.wide { grid-column: span 2; }
}
.hero-alert { background: linear-gradient(135deg, #3C3A22, #6E5F2B); box-shadow: 0 14px 34px rgba(60, 58, 34, .22); }

/* ===== Stav klidu ===== */
.klid { margin-bottom: 16px; }
.forecast { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.forecast-day { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 0; border-radius: 14px; color: var(--ink); text-decoration: none; }
.forecast-day:hover { background: var(--paper); }
.forecast-day small { color: var(--ink-soft); font-size: 12.5px; white-space: nowrap; overflow: hidden; max-width: 100%; text-overflow: ellipsis; }
.forecast-day b { font-size: 18px; font-variant-numeric: tabular-nums; }
.forecast-day .forecast-count { min-width: 20px; padding: 0 5px; border-radius: 999px; font-weight: 600; text-align: center; }
.forecast-day.now { background: var(--info-bg); }
.forecast-day.holiday b { color: var(--error); }
.forecast-day.busy .forecast-count { background: var(--accent); color: var(--accent-ink); }
.signals { margin: 14px 0 0; padding: 0; list-style: none; }
.signal { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.signal-ic { display: flex; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--info-bg); color: var(--accent); }
.signal.level-hned .signal-ic { background: var(--error); color: #fff; }
.signal.level-pozor .signal-ic { background: #F2E6C4; color: #6E5310; }
.signal-text { min-width: 0; flex: 1; }
.signal-text strong { display: block; font-weight: 600; line-height: 1.3; }
.signal-text small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.4; }
.signal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 6px; font-size: 14px; }
.signal-actions a { font-weight: 600; }
.signal-actions button.link { min-height: 28px; padding: 0; color: var(--ink-soft); font-size: 14px; font-weight: 400; }
.klid-empty { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--ink-soft); }
.klid-empty .icon { color: var(--accent); }

/* ===== Video ke cviku ===== */
.video-box { margin: 8px 0; }
.video-play { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 13px; background: var(--info-bg); color: var(--accent); font-size: 14.5px; font-weight: 600; }
.video-play .icon { width: 20px; height: 20px; }
.video-box iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; background: #000; }
.video-box a { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 13.5px; }

/* ===== Historie změn ===== */
.timeline { padding: 6px 20px; list-style: none; }
.timeline li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .item-main { min-width: 0; flex: 1; }
.timeline strong { display: block; font-weight: 600; overflow-wrap: anywhere; }
.timeline small { display: block; color: var(--ink-soft); font-size: 14px; }
.timeline .undone { opacity: .55; }
.small-button { min-height: 36px; padding: 5px 12px; font-size: 14px; }
@media (prefers-color-scheme: dark) {
  .signal.level-pozor .signal-ic { background: #3D3519; color: #F2E6C4; }
}

.video-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: 8px; }
.video-box .video-tools a { display: inline; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.video-hide { min-height: 40px; padding: 7px 14px; background: var(--info-bg); color: var(--accent); font-size: 14.5px; font-weight: 600; }

/* ===== Záliby ===== */
.level-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 8px; font-size: 15px; }
.streak { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
.streak .icon { width: 20px; height: 20px; color: #D9772B; }
.level-name { color: var(--accent); font-weight: 600; text-decoration: none; }
.hobby-today progress, #zaliby-pokrok progress { width: 100%; }
.focus-line { display: flex; gap: 12px; margin: 12px 0; color: var(--ink); text-decoration: none; }
.focus-line b { display: block; }
.focus-line small { display: block; color: var(--ink-soft); font-size: 14.5px; line-height: 1.4; }
.reward-form button { width: 100%; }
.done-line { display: flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-top: 14px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink-soft); opacity: .4; text-align: center; }
.badge.earned { color: var(--accent); opacity: 1; }
.badge .icon { width: 30px; height: 30px; }
.badge small { font-size: 12.5px; line-height: 1.2; }
.hobby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.hobby-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .15s ease; }
.hobby-card:hover { transform: translateY(-2px); }
.hobby-card small { color: var(--ink-soft); font-size: 14px; line-height: 1.35; }
.hobby-card.locked { opacity: .7; }
.section-title { margin: 8px 0 10px; }
.hobby-hero { padding-bottom: 22px; }
.hobby-title { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.hobby-title h1 { margin: 0; }
.hero-ic { display: flex; flex: none; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 18px; background: rgba(255, 255, 255, .16); color: #fff; }
.hero-ic .icon { width: 32px; height: 32px; }
.plan-steps { margin: 0; padding-left: 22px; line-height: 1.5; }
.plan-steps li + li { margin-top: 8px; }
.gear, .tip-list { margin: 0; padding: 0; list-style: none; }
.gear li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.gear li:last-child { border-bottom: 0; }
.gear small { display: block; color: var(--ink-soft); font-size: 14.5px; }
.tip-list li { padding: 7px 0; line-height: 1.45; }
.lock-line { display: flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; text-decoration: none; }
.lock-card .signal-ic { margin-bottom: 2px; }
.custom-plan { padding: 12px 14px; border-radius: 14px; background: var(--info-bg); white-space: pre-line; }
.safety { margin-bottom: 14px; }
.widget-link .icon { display: inline-block; width: 18px; height: 18px; margin-right: 4px; vertical-align: -4px; }

/* Průvodce */
.wizard-bar { position: sticky; z-index: 2; top: 0; height: 6px; margin-bottom: 18px; border-radius: 999px; background: var(--line); overflow: hidden; }
.wizard-bar i { display: block; width: 100%; height: 100%; background: var(--accent); transition: width .25s ease; }
.wizard-step { margin: 0; padding: 0; border: 0; }
.wizard-step legend { padding: 0; font-family: "Fraunces", ui-serif, Georgia, serif; font-size: clamp(27px, 7vw, 36px); font-weight: 600; line-height: 1.15; }
.wizard-step h2 { margin: 18px 0 8px; font-size: 17px; }
.wizard-step .hint { margin: 6px 0 0; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.picks-wide { grid-template-columns: minmax(0, 1fr); margin-top: 18px; }
.pick { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); font-size: 15.5px; font-weight: 500; cursor: pointer; transition: border-color .12s ease, background .12s ease, transform .12s ease; }
.pick:active { transform: scale(.98); }
.pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pick:has(input:checked) { border-color: var(--accent); background: var(--info-bg); color: var(--accent); font-weight: 600; }
.pick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pick .icon { color: var(--accent); }
.wizard-actions { position: sticky; z-index: 2; bottom: calc(88px + env(safe-area-inset-bottom)); display: flex; gap: 8px; margin-top: 20px; }
.wizard-actions button { flex: 1; min-height: 52px; }
.wizard-actions .secondary { flex: 0 0 auto; }
.wizard-actions button:disabled { opacity: .45; }
@media (min-width: 980px) { .wizard-actions { bottom: 16px; } }

/* Oslava */
.reward { position: fixed; z-index: 100; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 18, 14, .55); overflow: hidden; animation: reward-in .2s ease-out; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.reward-card { position: relative; z-index: 1; width: min(100%, 360px); padding: 26px 22px; border-radius: 28px; background: var(--surface); color: var(--ink); text-align: center; animation: reward-pop .4s cubic-bezier(.2, 1.4, .4, 1); }
.reward-card h2 { margin: 4px 0; font-size: 24px; }
.reward-card button { width: 100%; margin-top: 12px; }
.reward-points { color: var(--accent); font-family: "Fraunces", ui-serif, Georgia, serif; font-size: 56px; font-weight: 700; line-height: 1; }
.reward-sub { color: var(--ink-soft); font-size: 15px; }
.reward-badge { margin-top: 10px; padding: 9px 12px; border-radius: 14px; background: #F2E6C4; color: #5C4510; font-size: 15px; font-weight: 600; }
.reward-tip { margin-top: 10px; font-size: 15px; line-height: 1.4; }
.confetti { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: confetti linear forwards; }
@keyframes reward-in { from { opacity: 0; } }
@keyframes reward-pop { from { opacity: 0; transform: scale(.8); } }
@keyframes confetti { to { opacity: .6; transform: translateY(105vh) rotate(540deg); } }

/* ===== Web a ceník ===== */
.landing { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px 40px; }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 0; }
.site-head nav { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.site-head nav a { color: var(--ink); text-decoration: none; }
.site-head nav a.site-cta { padding: 8px 13px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; white-space: nowrap; }
.site-foot { display: flex; justify-content: center; gap: 18px; padding: 30px 0 10px; font-size: 14.5px; }
.land-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; padding: 24px 0 36px; }
.land-hero h1 { margin: 6px 0 14px; font-size: clamp(42px, 10vw, 76px); line-height: 1.02; letter-spacing: -.025em; }
.land-lead { max-width: 560px; color: var(--ink-soft); font-size: clamp(18px, 2.4vw, 21px); line-height: 1.45; }
.land-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 10px; }
.land-primary, .land-ghost { display: inline-flex; align-items: center; min-height: 52px; padding: 12px 22px; border-radius: 16px; font-weight: 600; text-decoration: none; }
.land-primary { background: var(--accent); color: var(--accent-ink); }
.land-ghost { background: var(--surface); color: var(--ink); }
.phone { justify-self: center; width: min(100%, 320px); padding: 10px; border-radius: 42px; background: #0E1A16; box-shadow: 0 30px 70px rgba(15, 51, 43, .35); }
.phone-screen { display: flex; flex-direction: column; gap: 9px; padding: 12px; border-radius: 33px; background: var(--paper); }
.mock-hero { margin: 0; padding: 18px 16px; border-radius: 22px; }
.mock-hero h2 { position: relative; z-index: 1; margin: 2px 0 4px; color: #fff; font-size: 27px; }
.mock-card { padding: 13px; border-radius: 18px; background: var(--surface); }
.mock-line { display: flex; align-items: center; gap: 10px; }
.mock-line b { display: block; font-size: 14.5px; }
.mock-line small { display: block; color: var(--ink-soft); font-size: 12.5px; }
.mock-done { display: flex; justify-content: center; margin-top: 9px; padding: 7px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 600; }
.meter { height: 7px; margin-top: 9px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); }
.meter .m70 { width: 70%; }
.land-section { padding: 28px 0; }
.land-section > h2, .land-cta h2 { margin-bottom: 16px; font-size: clamp(27px, 5vw, 40px); letter-spacing: -.015em; }
.land-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: krok; }
.land-steps li { padding: 18px; border-radius: var(--radius); background: var(--surface); counter-increment: krok; }
.land-steps li::before { content: counter(krok); display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.land-steps b { display: block; font-size: 18px; }
.land-steps span { color: var(--ink-soft); }
.land-hobbies { display: flex; flex-wrap: wrap; gap: 8px; }
.hobby-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; background: var(--surface); font-size: 15px; font-weight: 500; }
.hobby-chip .icon { width: 19px; height: 19px; color: var(--accent); }
.land-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.land-grid article { padding: 20px; border-radius: var(--radius); background: var(--surface); }
.land-grid h3 { margin: 10px 0 4px; font-family: "Fraunces", ui-serif, Georgia, serif; font-size: 21px; }
.land-grid p { color: var(--ink-soft); }
.land-cta { max-width: 520px; margin: 20px auto 0; padding: 24px; border-radius: 28px; background: var(--surface); }
.check-line { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.35; }
.check-line input { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.login-note { text-align: center; }
.price-table { border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px 92px; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.3; }
.price-row:last-child { border-bottom: 0; }
.price-row > span:not(:first-child) { text-align: center; font-size: 13.5px; }
.price-head { font-weight: 700; }
.plus-col { color: var(--accent); font-weight: 600; }
.yes { color: var(--accent); font-size: 17px; }
.no { color: var(--ink-soft); }
.trial-form { margin-top: 14px; text-align: center; }
.trial-form button { width: 100%; }
.delete-account { margin-top: 12px; }
.legal h2 { margin-top: 8px; font-size: 19px; }
@media (min-width: 860px) {
  .land-hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); padding-top: 48px; }
  .land-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .land-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-row { grid-template-columns: minmax(0, 1fr) 170px 170px; padding: 14px 20px; }
  .price-row > span:not(:first-child) { font-size: 15px; }
}
@media (max-width: 420px) { .site-head nav a:first-child { display: none; } }
@media (max-width: 420px) {
  .site-head .logo { width: 28px; height: 28px; }
  .site-head .brand { gap: 7px; }
  .site-head .wordmark { font-size: 19px; }
  .site-head nav { gap: 9px; font-size: 14px; }
  .site-head nav a.site-cta { padding: 7px 10px; }
}
.more-chip { background: var(--accent); color: var(--accent-ink); }

/* ===== Scény u zálib ===== */
.hobby-scene { position: relative; min-height: 230px; margin-bottom: 14px; overflow: hidden; border-radius: 28px; background: #1F5C4D; }
.scene-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: bottom; }
.hobby-scene-text { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; padding: 20px; background: linear-gradient(to top, rgba(8, 22, 18, .78), rgba(8, 22, 18, .1) 70%); color: #fff; }
.hobby-scene-text h1 { margin: 0; color: #fff; }
.hobby-scene-text .hero-sub, .hobby-scene-text .hero-date { color: rgba(255, 255, 255, .92); }
.hobby-card { position: relative; padding-top: 88px; overflow: hidden; }
.card-scene { position: absolute; top: 0; left: 0; width: 100%; height: 70px; object-fit: cover; object-position: bottom; }
.hobby-card .signal-ic { position: absolute; top: 48px; left: 14px; box-shadow: 0 0 0 3px var(--surface); }
.video-item + .video-item { margin-top: 10px; }
.video-item > small { display: block; color: var(--ink-soft); font-size: 14px; }
.video-box .hint { margin: 6px 0; }

/* Suplementy dnes */
.supp-groups { display: flex; flex-direction: column; }
.supp-group { border-bottom: 1px solid var(--line); }
.supp-group:last-child { border-bottom: 0; }
.supp-group summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; }
.supp-group summary::-webkit-details-marker { display: none; }
.supp-group summary > span:first-child { display: flex; align-items: center; gap: 8px; }
.supp-ic .icon { width: 19px; height: 19px; color: var(--accent); }
.supp-count { min-width: 26px; padding: 1px 8px; border-radius: 999px; background: var(--info-bg); color: var(--accent); font-size: 14px; font-weight: 600; text-align: center; }
.supp-group[open] .supp-count { background: var(--accent); color: var(--accent-ink); }
.supp-group ul { margin: 0 0 10px; padding: 0 0 0 27px; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

/* Správa a týden */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.admin-stats > div { padding: 14px; border-radius: 18px; background: var(--surface); }
.admin-stats b { display: block; font-family: "Fraunces", ui-serif, Georgia, serif; font-size: 25px; }
.admin-stats small { color: var(--ink-soft); font-size: 13.5px; }
.admin-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; align-items: start; margin-bottom: 14px; }
.admin-form .card { margin: 0; }
.admin-save { grid-column: 1 / -1; }
.admin-list { padding: 0; box-shadow: none; }
.status-line b { font-weight: 600; }

/* Motivy */
.theme-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.theme-pick { min-height: 54px; color: #fff; }
.theme-pick.current { outline: 3px solid var(--ink); outline-offset: 2px; }
.swatch-klid { background: linear-gradient(135deg, #0F332B, #2C7461); }
.swatch-more { background: linear-gradient(135deg, #0F2F4A, #2A7A9B); }
.swatch-zapad { background: linear-gradient(135deg, #5A2A1E, #C76F3F); }
.swatch-noc { background: linear-gradient(135deg, #1F1B3F, #5C4A9A); }
body[data-motiv="more"] { --hero-from: #0F2F4A; --hero-to: #2A7A9B; --accent: #1F6282; --info-bg: #E2EFF5; }
body[data-motiv="zapad"] { --hero-from: #5A2A1E; --hero-to: #C76F3F; --accent: #A5532C; --info-bg: #F7EADF; }
body[data-motiv="noc"] { --hero-from: #1F1B3F; --hero-to: #5C4A9A; --accent: #54458F; --info-bg: #ECE9F6; }
@media (prefers-color-scheme: dark) {
  body[data-motiv="more"] { --accent: #84C6E3; --accent-ink: #0A1E2A; --info-bg: #182C38; }
  body[data-motiv="zapad"] { --accent: #EDA67C; --accent-ink: #2A130A; --info-bg: #35241B; }
  body[data-motiv="noc"] { --accent: #B6A9EC; --accent-ink: #15112D; --info-bg: #262242; }
}


/* ===== Život dohromady a prevence ===== */
.life-widget { display: block; margin-bottom: 14px; color: var(--ink); text-decoration: none; }
.life-widget progress { width: 100%; }
.life-widget small { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 14.5px; }
.life-meter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; font-size: 15px; }
.life-meter span { display: flex; align-items: center; gap: 8px; }
.life-meter .icon { width: 20px; height: 20px; color: var(--accent); }
.life-meter b { font-size: 14px; font-variant-numeric: tabular-nums; }
.life-meter progress { grid-column: 1 / -1; width: 100%; }
.life-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; align-items: start; }
.life-grid .card { margin: 0; }
.life-items { margin: 0; padding: 0; list-style: none; }
.life-items li { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.life-items li:last-child { border-bottom: 0; }
.life-items b { display: block; font-weight: 600; line-height: 1.3; }
.life-items small { display: block; color: var(--ink-soft); font-size: 14px; line-height: 1.35; }
.life-items a { display: inline-block; margin-top: 3px; font-size: 14px; font-weight: 600; }
.life-items li.done b { color: var(--ink-soft); text-decoration: line-through; }
.life-check { display: flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; min-height: 28px; padding: 0; border: 2px solid var(--line); border-radius: 50%; background: transparent; color: transparent; font-size: 15px; }
.life-items li.done .life-check { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.exam-list { display: flex; flex-direction: column; }
.exam.overdue { box-shadow: inset 4px 0 0 var(--error); }
.exam-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.exam-form label { flex: 1 1 180px; }
.source-link { font-size: 14px; }
.lock-card-link { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.lock-card-link small { display: block; color: var(--ink-soft); font-size: 14.5px; }
.day-picks { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.day-picks .pick { justify-content: center; min-height: 44px; padding: 4px; }
.gear li { position: relative; }
.gear-add { margin-top: 2px; }
.gear-add button { min-height: 28px; padding: 0; font-size: 14px; color: var(--accent); }
.limit-note { margin: 0 0 12px; }


/* ===== Veřejný web ===== */
.landing-home { max-width: none; padding: 0 0 40px; }
.landing-home > .land-section, .landing-home > .eco-band, .landing-home > .land-cta, .landing-home > .site-foot { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.mega-hero { position: relative; overflow: hidden; color: #fff; }
.mega-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: bottom; }
.mega-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10, 30, 26, .72), rgba(10, 30, 26, .48) 60%, rgba(10, 30, 26, .78)); }
.mega-inner { position: relative; z-index: 1; width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 40px; }
.mega-hero .site-head a, .mega-hero .wordmark { color: #fff; }
.mega-hero .wordmark em { color: #F4E7BE; }
.mega-hero .site-head nav a.site-cta { background: #fff; color: #123A31; }
.mega-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: center; padding-top: 22px; }
.mega-kicker { color: #F4E7BE; font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.mega-copy h1 { margin: 8px 0 14px; color: #fff; font-size: clamp(46px, 11vw, 88px); line-height: 1; letter-spacing: -.03em; }
.mega-lead { max-width: 580px; color: rgba(255, 255, 255, .93); font-size: clamp(18px, 2.5vw, 22px); line-height: 1.42; }
.mega-note { color: rgba(255, 255, 255, .84); font-size: 14.5px; }
.mega-note a { color: #F4E7BE; }
.mega-hero .land-primary { background: #F4E7BE; color: #123A31; }
.mega-hero .land-ghost { background: rgba(255, 255, 255, .16); color: #fff; }
.land-sub { max-width: 680px; margin-bottom: 18px; color: var(--ink-soft); font-size: 18px; line-height: 1.45; }
.feature-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.feature-card { position: relative; display: block; padding: 124px 20px 20px; overflow: hidden; border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 51, 43, .14); }
.feature-card img { position: absolute; top: 0; left: 0; width: 100%; height: 104px; object-fit: cover; object-position: bottom; }
.feature-card .signal-ic { position: absolute; top: 82px; left: 18px; box-shadow: 0 0 0 3px var(--surface); }
.feature-card h2, .feature-card h3 { margin: 0 0 5px; font-family: "Fraunces", ui-serif, Georgia, serif; font-size: 21px; line-height: 1.2; }
.feature-card p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.42; }
.eco-band { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: center; margin-block: 16px; padding: 26px; border-radius: 28px; background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: #fff; }
.eco-band h2 { color: #fff; font-size: clamp(27px, 5vw, 40px); }
.eco-band .eyebrow { color: #F4E7BE; }
.eco-band img { width: 100%; height: 100%; max-height: 260px; object-fit: cover; border-radius: 20px; }
.check-list { margin: 12px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 6px 0 6px 28px; line-height: 1.4; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #F4E7BE; font-weight: 700; }
.hobby-grid-big { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.land-more { display: inline-block; margin-top: 10px; font-weight: 600; }
.topic-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.topic-list a { display: block; padding: 15px 16px; border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none; }
.topic-list small { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.38; }
.faq details { padding: 14px 16px; margin-bottom: 8px; border-radius: 16px; background: var(--surface); }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin-top: 7px; color: var(--ink-soft); }
.page-hero { padding: 22px 0 18px; }
.page-hero h1 { font-size: clamp(34px, 7vw, 54px); letter-spacing: -.02em; }
.page-hero p { max-width: 720px; color: var(--ink-soft); font-size: 18px; line-height: 1.45; }
.crumbs { margin: 4px 0 10px; color: var(--ink-soft); font-size: 14px; }
.article { max-width: 760px; margin: 0 auto; }
.article h2 { margin: 24px 0 6px; font-size: 25px; }
.article h3 { margin: 14px 0 4px; font-size: 17px; }
.article p { line-height: 1.6; }
.article-hero { position: relative; display: flex; align-items: flex-end; min-height: 240px; margin-bottom: 16px; padding: 22px; overflow: hidden; border-radius: 26px; }
.article-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: bottom; }
.article-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 22, 18, .78), rgba(8, 22, 18, .08) 70%); }
.article-hero h1 { position: relative; z-index: 1; margin: 0; color: #fff; font-size: clamp(30px, 6vw, 46px); line-height: 1.08; }
.article-hero h1 a { color: #F4E7BE; }
.article-lead { color: var(--ink-soft); font-size: 19px; }
.article-cta { max-width: 760px; margin: 26px auto; padding: 24px; border-radius: 24px; background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: #fff; }
.article-cta h2 { color: #fff; margin-bottom: 4px; }
.article-cta p { margin-bottom: 12px; color: rgba(255, 255, 255, .9); }
.article-cta .land-primary { background: #F4E7BE; color: #123A31; }
.article-cta .land-more { margin-left: 12px; color: #F4E7BE; }
.day-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 16px; }
.month-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.month-grid .card { margin: 0; }
.name-list { margin: 8px 0 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.55; }
.holiday-row { display: grid; grid-template-columns: 120px 90px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.holiday-row:last-child { border-bottom: 0; }
.site-foot { display: block; margin-top: 34px; padding: 26px 0 8px; border-top: 1px solid var(--line); }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.foot-cols > div { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.foot-cols a { color: var(--ink-soft); text-decoration: none; }
.site-nav .wide-only { display: none; }
@media (min-width: 860px) {
  .site-nav .wide-only { display: inline; }
  .mega-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); padding-block: 40px 56px; }
  .eco-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 38px; }
}
@media (max-width: 540px) { .holiday-row { grid-template-columns: 1fr; gap: 0; } }
.phone-screen { color: var(--ink); }
.phone-screen .hero, .phone-screen .hero h2 { color: #fff; }

/* ===== Veřejná edice: čistší písmo. Fraunces zůstává jen logu. ===== */
.edice-verejna { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 16.5px; line-height: 1.55; letter-spacing: -.005em; }
.edice-verejna h1, .edice-verejna h2, .edice-verejna h3, .edice-verejna .section-title, .edice-verejna .cat-title, .edice-verejna .wizard-step legend, .edice-verejna .feature-card h2, .edice-verejna .feature-card h3, .edice-verejna .land-grid h3, .edice-verejna .admin-stats b, .edice-verejna .reward-points { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-weight: 700; letter-spacing: -.022em; }
.edice-verejna h1 { line-height: 1.1; }
.edice-verejna h2 { line-height: 1.22; }
.edice-verejna small, .edice-verejna .hint { color: var(--ink-soft); }
.edice-verejna .hobby-scene { min-height: 230px; }
.edice-verejna .scene-image, .edice-verejna .mega-scene, .edice-verejna .card-scene { object-fit: cover; }

/* ===== Úvod po registraci ===== */
.page-start { max-width: 760px; margin-inline: auto; }
.start-wizard { display: flex; flex-direction: column; }
.start-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.start-step[hidden] { display: none; }
.start-step legend, .start-hero h1, .start-done h1 { padding: 0; font-size: clamp(30px, 6.4vw, 44px); font-weight: 750; line-height: 1.08; letter-spacing: -.028em; }
.start-sub { margin: 10px 0 20px; color: var(--ink-soft); font-size: 17.5px; line-height: 1.45; }
.start-hero, .start-done { position: relative; }
.start-figure { position: relative; overflow: hidden; border-radius: 26px; }
.start-figure > img { display: block; width: 100%; height: clamp(360px, 62vw, 460px); object-fit: cover; }
.start-hero-text { position: absolute; inset: auto 0 0; padding: 120px 24px 24px; color: #fff; background: linear-gradient(to top, rgba(6, 18, 14, .86) 35%, rgba(6, 18, 14, 0)); }
.start-hero-text .eyebrow { color: #F4E7BE; margin-bottom: 6px; }
.start-hero-text h1 { margin: 0; color: #fff; }
.start-lead { margin: 10px 0 0; font-size: clamp(17px, 2.6vw, 20px); line-height: 1.42; }
.start-promise, .ready-list { display: grid; gap: 10px; margin: 20px 0; padding: 0; list-style: none; }
.start-promise li, .ready-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: 0 1px 3px rgba(20, 40, 30, .07); }
.start-promise .icon, .ready-list .icon { flex: 0 0 auto; width: 26px; height: 26px; color: var(--accent); }
.start-promise b, .ready-list b { display: block; font-size: 16.5px; }
.start-promise span, .ready-list span { color: var(--ink-soft); font-size: 15px; line-height: 1.4; }
.start-promise span b, .ready-list span b { color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 16px; border: 2px solid transparent; border-radius: 20px; background: var(--surface); box-shadow: 0 1px 3px rgba(20, 40, 30, .08); cursor: pointer; transition: transform .12s ease, border-color .12s ease; }
.tile:active { transform: scale(.98); }
.tile input, .segment input, .photo-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tile-ic { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 8px; border-radius: 13px; background: var(--info-bg); color: var(--accent); }
.tile-ic .icon { width: 24px; height: 24px; }
.tile b { font-size: 16.5px; }
.tile small { font-size: 14.5px; line-height: 1.35; }
.tile:has(input:checked) { border-color: var(--accent); background: var(--info-bg); }
.tile:has(input:checked)::after, .photo-pick:has(input:checked)::after { content: "✓"; position: absolute; top: 10px; right: 12px; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 700; }
.tile:has(input:focus-visible), .segment:has(input:focus-visible), .photo-pick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.question { margin-bottom: 18px; }
.question h2 { margin: 0 0 8px; font-size: 17px; font-weight: 650; }
.segments { display: flex; flex-wrap: wrap; gap: 8px; }
.segment { position: relative; cursor: pointer; }
.segment span { display: block; padding: 10px 16px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 15.5px; font-weight: 550; }
.segment input:checked + span { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.photo-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo-pick { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; color: #fff; cursor: pointer; outline-offset: 2px; }
.photo-pick img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.photo-pick::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(4, 14, 11, .72), rgba(4, 14, 11, .05) 60%); }
.photo-pick:has(input:checked) { box-shadow: 0 0 0 3px var(--accent); }
.photo-pick:has(input:checked) img { transform: scale(1.06); }
.photo-pick::after { z-index: 2; }
.photo-pick b { position: absolute; z-index: 2; left: 12px; bottom: 10px; font-size: 15.5px; }
.photo-pick-ic { position: absolute; z-index: 2; left: 10px; top: 10px; }
.photo-pick-ic .icon { width: 22px; height: 22px; }
/* Při prvním nastavení nic neodvádí pozornost. */
body:has(.page-start) .tabs { display: none; }
body.with-nav:has(.page-start) { padding-left: 0; padding-bottom: 0; }
.page-start { padding-bottom: 24px; }
.start-actions { position: sticky; z-index: 3; bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; gap: 8px; margin-top: 22px; }
.start-actions button, .start-actions .button { flex: 1; min-height: 54px; font-size: 17px; font-weight: 650; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.start-actions .secondary { flex: 0 0 auto; }
.start-actions-static { position: static; margin-block: 16px; flex-wrap: wrap; }
.first-steps { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.first-steps a { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 18px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: 0 1px 3px rgba(20, 40, 30, .08); }
.start-list ul { margin: 12px 0 8px; padding: 0; list-style: none; display: grid; gap: 2px; }
.start-list a { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: var(--ink); text-decoration: none; font-weight: 550; }
.start-list li.done a { color: var(--ink-soft); font-weight: 400; text-decoration: line-through; }
.start-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 14.5px; }

/* Prohlídka */
.tour-target { position: relative; z-index: 90 !important; box-shadow: 0 0 0 4px var(--accent), 0 0 0 100vmax rgba(6, 18, 14, .58) !important; border-radius: 14px; }
.tour-bubble { position: fixed; z-index: 95; padding: 18px; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 50px rgba(0, 0, 0, .34); }
.tour-bubble h2 { margin: 0 0 4px; font-size: 19px; }
.tour-bubble p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.42; }
.tour-foot { display: flex; align-items: center; gap: 12px; }
.tour-foot small { margin-right: auto; }

/* Návod na stránce a nápověda */
.page-tip { margin-bottom: 14px; padding: 10px 14px; border-radius: 14px; background: var(--info-bg); font-size: 15px; }
.page-tip summary { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.page-tip summary .icon { width: 18px; height: 18px; }
.page-tip ul { margin: 6px 0; padding-left: 20px; }
.page-tip p { margin: 8px 0 0; }
.page-tip-agent .icon { display: inline-block; width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; }
.page-tip-agent a { margin-right: 8px; }
.help-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; }
.help-grid .card { margin: 0; }
.help-head { display: flex; align-items: center; gap: 10px; }
.help-head h2 { margin: 0; }
.chip-links { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-links a { padding: 6px 12px; border-radius: 999px; background: var(--info-bg); color: var(--accent); font-size: 14.5px; font-weight: 550; text-decoration: none; }
.agent-can { margin: 14px auto 0; padding: 0; max-width: 480px; list-style: none; text-align: left; font-size: 15px; }
.agent-can li { padding: 6px 0; border-top: 1px solid var(--line); }

/* Fitko */
.program-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 14px; }
.program-card { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; padding: 16px; border-radius: 18px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: 0 1px 3px rgba(20, 40, 30, .08); }
.program-card b { width: 100%; margin-top: 6px; font-size: 17px; line-height: 1.25; }
.program-card small { width: 100%; font-size: 14.5px; line-height: 1.4; }
.program-card.current { box-shadow: 0 0 0 2px var(--accent); }
.program-card button { width: 100%; margin-top: 6px; }
.program-new { border: 1.5px dashed var(--line); background: transparent; box-shadow: none; }
.chip-plus { display: inline-flex; gap: 3px; align-items: center; background: #F2E6C4; border-color: #E2D09C; color: #5C4510; }
.chip-plus .icon { width: 12px; height: 12px; }
.chip-now { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.session-list { margin: 0; padding: 0; list-style: none; }
.session-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.session-list li:first-child { border-top: 0; }
.session-list a { display: flex; flex: 1; justify-content: space-between; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.session-list small { display: block; }
.session-dose { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.stat-row-inner { margin-bottom: 4px; }
.stat { padding: 12px; border-radius: 16px; background: var(--surface); box-shadow: 0 1px 3px rgba(20, 40, 30, .08); }
.stat-row-inner .stat { background: var(--paper); box-shadow: none; }
.stat b { display: block; font-size: clamp(20px, 5vw, 27px); font-weight: 750; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat b small { font-size: 13px; font-weight: 500; letter-spacing: 0; }
.stat span { font-size: 13px; color: var(--ink-soft); line-height: 1.2; display: block; margin-top: 3px; }
.record-list { margin: 0; padding: 0; list-style: none; }
.record-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.record-list li:first-child a { border-top: 0; }
.record-list small { display: block; }
.line-chart { margin: 0; }
.line-chart svg { display: block; width: 100%; height: auto; }
.line-chart figcaption { font-size: 13px; color: var(--ink-soft); }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart-hit { fill: transparent; }
.chart-point:hover .chart-dot { r: 6; }
.chart-axis { fill: var(--ink-soft); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.chart-value { fill: var(--ink); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.advice { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--info-bg); font-size: 15px; line-height: 1.38; }
.advice small { display: block; margin-top: 3px; }
.exercise-head h2 { margin: 0; font-size: 19px; }
.exercise-head h2 a { color: inherit; text-decoration: none; }
.set-row { display: grid; grid-template-columns: 34px 1fr 1fr 44px; gap: 8px; align-items: center; margin: 0 0 6px; }
.set-head { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 2px; }
.set-row input[type=text] { width: 100%; min-height: 44px; padding: 6px; text-align: center; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.set-no { text-align: center; font-weight: 600; color: var(--ink-soft); }
.set-save { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 12px; background: var(--line); color: var(--ink); }
.set-save .icon { width: 20px; height: 20px; }
.set-row.saved .set-save { background: var(--accent); color: var(--accent-ink); }
.set-row.failed input[type=text] { border-color: var(--error); }
.record-line { margin: 2px 0 8px; padding: 8px 12px; border-radius: 12px; background: #F2E6C4; color: #5C4510; font-size: 15px; font-weight: 650; }
.exercise-help summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 15px; }
.rest-timer { position: sticky; z-index: 4; bottom: calc(150px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-top: 10px; border-radius: 16px; background: var(--ink); color: var(--paper); }
.rest-timer[hidden] { display: none; }
.rest-timer b { flex: 1; font-size: 24px; font-weight: 750; font-variant-numeric: tabular-nums; }
.rest-timer .secondary { min-height: 38px; }
.sticky-action { position: sticky; z-index: 3; bottom: calc(88px + env(safe-area-inset-bottom)); margin-top: 16px; }
.sticky-action button, a.sticky-action { width: 100%; min-height: 54px; font-size: 17px; font-weight: 650; display: flex; align-items: center; justify-content: center; gap: 6px; }
@media (min-width: 980px) { .sticky-action { bottom: 16px; } .rest-timer { bottom: 84px; } }
.custom-row { display: grid; grid-template-columns: minmax(0, 1fr) 58px 58px 58px; gap: 6px; }
.custom-row input { text-align: center; padding-inline: 2px; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; }
.inline-form label { flex: 1; }
.empty-state { text-align: center; align-items: center; }

/* Deník a program záliby */
.journal-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; align-items: end; }
.journal-note, .journal-form button { grid-column: 1 / -1; }
.week-card { border-top: 1px solid var(--line); padding: 8px 0; }
.week-card summary { cursor: pointer; font-weight: 650; }
.step-checks { margin: 8px 0 0; padding: 0; list-style: none; }
.step-checks li { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.step-checks li.done span { color: var(--ink-soft); text-decoration: line-through; }
.tick { flex: 0 0 auto; width: 28px; height: 28px; min-height: 0; padding: 0; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.tick[aria-pressed=true] { background: var(--accent); box-shadow: none; }
.tick[aria-pressed=true]::after { content: "✓"; color: var(--accent-ink); font-weight: 700; }
.start-step { width: 100%; }
.start-figure > img { max-width: 100%; }
.start-actions .secondary { background: var(--surface); color: var(--ink); box-shadow: 0 2px 10px rgba(20, 40, 30, .16); }
.page-start { width: 100%; min-width: 0; }
.start-figure { height: clamp(380px, 62vw, 470px); }
.start-figure > img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Skutečné fotky: střed záběru a větší náhledy, ať je na nich co vidět. */
.edice-verejna .scene-image, .edice-verejna .mega-scene, .edice-verejna .card-scene, .edice-verejna .feature-card img, .edice-verejna .article-hero img, .edice-verejna .photo-pick img { object-position: center; }
.edice-verejna .hobby-scene-text { min-height: 280px; }
.edice-verejna .card-scene { height: 120px; }
.edice-verejna .hobby-card { padding-top: 128px; }
.edice-verejna .feature-card img { height: 150px; }
.edice-verejna .feature-card { padding-top: 160px; }
.edice-verejna .hobby-card .signal-ic { top: 98px; }
.edice-verejna .feature-card .signal-ic { top: 128px; }
.edice-verejna .mega-hero::after { background: linear-gradient(to bottom, rgba(10, 30, 26, .55), rgba(10, 30, 26, .22) 55%, rgba(10, 30, 26, .6)); }
.edice-verejna .mega-copy h1, .edice-verejna .mega-copy p { text-shadow: 0 1px 14px rgba(0, 0, 0, .45); }
