/* Mentorio — aplikace. Mobile first; desktop využívá prostor, ale nepřidává informace (DOC-005 §17–18).
   Jediný tmavý prvek na obrazovce Dnes je hlavní doporučení — oko ví, kam se dívat. */

body { overscroll-behavior-y: none; }

.i { width: 22px; height: 22px; flex: none; }
.i.lg { width: 40px; height: 40px; }
.small { font-size: 14px; }
.center { text-align: center; justify-content: center; }
.row-gap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.btn-lg { min-height: 56px; font-size: 17px; }
.btn-danger { background: #8a3b32; border-color: #8a3b32; color: #fff; }
.btn-danger:hover { background: #75312a; border-color: #75312a; }
.danger-text { color: #8a3b32; }
.lead-app { font-size: 17.5px; color: var(--ink-2); }
.eyebrow-app { color: var(--gold); font-weight: 650; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }

.icon-btn { width: 44px; height: 44px; flex: none; border-radius: 12px; border: 0; background: transparent; color: var(--ink-2); display: inline-grid; place-items: center; }
.icon-btn:hover { background: rgba(22, 33, 58, 0.06); color: var(--ink); }
.icon-btn .i { width: 20px; height: 20px; }
.icon-btn.sm { width: 34px; height: 34px; }

.ico-tile { width: 44px; height: 44px; border-radius: 13px; flex: none; display: grid; place-items: center; background: var(--sky-soft); color: var(--ink); }
.ico-tile .i { width: 21px; height: 21px; }
.ico-tile.green { background: var(--sage-soft); color: var(--sage); }
.ico-tile.gold { background: var(--gold-soft); color: var(--gold); }
.ico-tile.sm { width: 40px; height: 40px; border-radius: 12px; }
.ico-tile.sm .i { width: 19px; height: 19px; }
.ico-tile.lg { width: 56px; height: 56px; border-radius: 16px; }
.ico-tile.lg .i { width: 28px; height: 28px; }

/* ---------- Kostra ---------- */
.shell { min-height: 100vh; }
.sidebar { display: none; }
.main { padding: calc(22px + env(safe-area-inset-top)) 18px calc(112px + env(safe-area-inset-bottom)); outline: none; max-width: 1120px; margin: 0 auto; }
.boot { min-height: 70vh; display: grid; place-items: center; }
.boot img { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.5; } }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: rgba(245, 240, 230, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.nav-item { display: grid; justify-items: center; gap: 3px; padding: 8px 2px; min-height: 58px; color: var(--muted); text-decoration: none; font-size: 11.5px; font-weight: 600; border-radius: 14px; position: relative; -webkit-tap-highlight-color: transparent; }
.nav-item .i { width: 23px; height: 23px; }
.nav-item.active { color: var(--ink); }
.nav-item.active::after { content: ""; position: absolute; top: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

.focus-mode .tabbar, .focus-mode .appbar { display: none !important; }
.focus-mode .main { padding-bottom: 24px; max-width: 600px; }


/* ---------- Stránky ---------- */
.page { display: grid; gap: 18px; animation: fadein 220ms var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(3px); } }
.page-head { display: grid; gap: 6px; margin-bottom: 2px; }
.page-head h1 { font-size: clamp(34px, 5vw, 46px); }
.block { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 12px; align-content: start; }
.block h3 { font-size: 17px; display: flex; align-items: center; gap: 9px; }
.block h3 .i { width: 19px; height: 19px; color: var(--gold); }
.block-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.soft-block { background: var(--card-2); }
.state-card { max-width: 480px; margin: 12vh auto; text-align: center; display: grid; gap: 14px; justify-items: center; padding: 36px 24px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--card); }
.state-card h2 { font-size: 26px; }
.state-card .i { color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); text-decoration: none; font-weight: 600; min-height: 44px; }
.back .i { width: 20px; height: 20px; }

/* ---------- Formuláře ---------- */
.field { display: grid; gap: 7px; }
.field label, .field > label { font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.input { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-2); color: var(--ink); font-size: 16px; transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(61, 106, 81, 0.18); }
.input[aria-invalid="true"] { border-color: var(--gold); }
textarea.input { resize: vertical; min-height: 96px; line-height: 1.5; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6960' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.input-lg { min-height: 62px; font-size: 22px; font-family: var(--serif); }
.input-num { max-width: 180px; }
.input-time { width: auto; min-width: 128px; }
.field-err { color: #8a5a12; font-size: 14px; }
.check { display: flex; gap: 11px; align-items: flex-start; font-weight: 550; cursor: pointer; line-height: 1.4; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--sage); }
.form-grid { display: grid; gap: 14px; }

.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 15px; border-radius: 999px; background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 550; font-size: 14.5px; }
.chip .i { width: 17px; height: 17px; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Onboarding ---------- */
.onb { min-height: calc(100vh - 44px); display: grid; grid-template-rows: auto 1fr auto; gap: 22px; }
.onb-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; min-height: 44px; }
.onb-progress { display: grid; justify-items: center; gap: 8px; }
.onb-step { font-size: 13px; color: var(--muted); font-weight: 600; }
.onb-dots { display: flex; gap: 6px; }
.onb-dots i { width: 24px; height: 3px; border-radius: 99px; background: var(--line-2); }
.onb-dots i.done { background: var(--sage-2); }
.onb-dots i.on { background: var(--ink); }
.onb-body { display: grid; gap: 16px; align-content: start; outline: none; animation: fadein 260ms var(--ease); }
.onb-body .q { font-size: clamp(30px, 7vw, 40px); line-height: 1.1; }
.onb-actions { display: grid; gap: 8px; justify-items: center; position: sticky; bottom: 0; padding: 14px 0 calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(245, 240, 230, 0), var(--paper) 30%); }

.welcome { display: grid; gap: 18px; text-align: center; justify-items: center; padding-top: 8vh; }
.welcome h1 { font-size: clamp(40px, 10vw, 54px); }
.welcome-art { width: min(300px, 88%); margin: 6px 0; }

.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 14px 18px; text-align: left; border-radius: 16px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-size: 17.5px; font-weight: 550; transition: border-color var(--t) var(--ease), background var(--t) var(--ease); }
.choice:hover { border-color: var(--ink); }
.choice.active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.choice-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--card-2); color: var(--gold); flex: none; }
.choice.active .choice-ico { background: rgba(245, 240, 230, 0.12); color: #d8b66a; }
.choice-ico .i { width: 19px; height: 19px; }
.choice-check { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; flex: none; }
.choice-check .i { width: 14px; height: 14px; }
.choice.active .choice-check { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.care-note { display: flex; gap: 11px; padding: 14px 16px; border-radius: 14px; background: var(--sage-soft); color: #33503f; font-size: 14.5px; line-height: 1.5; }
.care-note .i { color: var(--sage); width: 19px; height: 19px; margin-top: 2px; }
.care-form { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.mini-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mini-list li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.mini-list li > .i { color: var(--gold); width: 18px; height: 18px; }
.mini-list li span { flex: 1; }

.summary { margin: 0; display: grid; border-top: 1px solid var(--ink); }
.sum-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.sum-row dt { color: var(--muted); font-size: 13.5px; font-weight: 600; grid-column: 1; }
.sum-row dd { margin: 0; font-weight: 550; grid-column: 1; }
.sum-row .link-btn { grid-column: 2; grid-row: 1 / 3; font-size: 14px; }

.creating { display: grid; justify-items: center; gap: 30px; padding-top: 14vh; text-align: center; }
.creating-mark img { animation: pulse 1.8s ease-in-out infinite; }
.creating-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-family: var(--serif); font-size: 22px; }
.creating-steps li { color: var(--faint); transition: color 400ms var(--ease), opacity 400ms; opacity: 0.5; }
.creating-steps li.on { color: var(--ink); opacity: 1; }
.creating-steps li.done { color: var(--sage); opacity: 0.9; }
.creating-steps li.final { display: none; }
.creating-steps li.final.on { display: block; color: var(--sage); font-style: italic; font-size: 28px; }

/* ---------- Dnes ---------- */
.greet { display: grid; gap: 6px; }
.greet-date { color: var(--gold); font-weight: 650; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.greet h1 { font-size: clamp(36px, 6vw, 50px); }
.greet-line { color: var(--ink-2); font-size: 17.5px; }
.checkin { display: grid; gap: 8px; margin-top: 12px; }
.checkin-q { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.checkin .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 2px 18px; }
.checkin .chips::-webkit-scrollbar { display: none; }
.checkin .chip { white-space: nowrap; }

.today-grid { display: grid; gap: 18px; }
.col-main, .col-side { display: grid; gap: 18px; align-content: start; }

.priority { border-radius: var(--r-xl); padding: 24px 22px 22px; display: grid; gap: 18px; background: var(--ink); color: var(--paper); box-shadow: 0 30px 60px -36px rgba(22, 33, 58, 0.7); }
.prio-label { color: #d8b66a; font-size: 12px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; }
.prio-main { display: flex; gap: 16px; align-items: flex-start; }
.prio-main h2 { font-size: clamp(27px, 5vw, 34px); line-height: 1.1; margin-top: 8px; }
.prio-ico { width: 54px; height: 54px; border-radius: 16px; flex: none; display: grid; place-items: center; background: rgba(245, 240, 230, 0.1); color: #d8b66a; }
.prio-ico .i { width: 27px; height: 27px; }
.prio-ico.lg { width: 66px; height: 66px; border-radius: 20px; background: var(--ink); }
.prio-ico.lg .i { width: 32px; height: 32px; }
.prio-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: #c4c9d4; font-size: 14.5px; margin-top: 8px; }
.prio-meta span { display: inline-flex; align-items: center; gap: 6px; }
.prio-meta .i { width: 16px; height: 16px; }
.priority .btn-primary { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.priority .btn-primary:hover { background: #fff; border-color: #fff; }
.priority-done { grid-template-columns: auto 1fr; align-items: center; background: var(--sage); }
.priority-done .ico-tile { background: rgba(255, 255, 255, 0.16); color: #fff; }
.priority-done h2 { font-size: 28px; margin-bottom: 4px; }
.priority-done .soft { color: #e2ece5; }

.why { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.why summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 18px; font-weight: 600; }
.why summary::-webkit-details-marker { display: none; }
.why summary .i { width: 19px; height: 19px; color: var(--gold); }
.why .why-chev { margin-left: auto; color: var(--muted); transition: transform var(--t) var(--ease); }
.why[open] .why-chev { transform: rotate(180deg); }
.why-body { padding: 0 18px 18px; display: grid; gap: 8px; }
.why-body > p:first-child { font-family: var(--serif); font-size: 19px; line-height: 1.4; }
.certainty { display: flex; gap: 8px; align-items: baseline; font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.certainty .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); flex: none; transform: translateY(-1px); }
.certainty.c-mid .dot { background: #6d86a8; }
.certainty.c-low .dot { background: var(--gold); }

.tasks { list-style: none; margin: 0; padding: 0; display: grid; }
.task { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid var(--line); }
.task:first-child { border-top: 0; }
.task-check { width: 44px; height: 44px; flex: none; border-radius: 12px; border: 0; background: transparent; display: grid; place-items: center; }
.task-check::before { content: ""; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); transition: border-color var(--t) var(--ease); }
.task-check:hover::before { border-color: var(--sage); }
.task-check.checked::before { display: none; }
.task-check.checked { color: #fff; }
.task-check.checked .i { width: 22px; height: 22px; padding: 4px; border-radius: 7px; background: var(--sage); }
.task-body { flex: 1; display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-height: 48px; min-width: 0; }
.task-body b { display: block; font-weight: 550; line-height: 1.3; }
.task-body small { color: var(--muted); font-size: 13px; }
.task-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--card-2); color: var(--gold); flex: none; }
.task-ico .i { width: 18px; height: 18px; }
.task.is-done b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.task.is-done .task-ico { opacity: 0.6; }

.care-block { background: var(--card); }
.dose { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--gold-soft); }
.dose-time { font-family: var(--serif); font-size: 24px; color: #7a5a22; min-width: 52px; }
.dose-body b { display: block; }
.dose-body small { color: #6f5a2c; font-size: 13.5px; }
.dose-act { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.care-line { display: flex; gap: 9px; align-items: center; color: var(--ink-2); font-size: 15px; }
.care-line .i { width: 18px; height: 18px; color: var(--gold); }

.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.stat { padding: 14px 0 4px; }
.stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 10px; }
.stat span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.stat strong { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.goal-quote { background: transparent; border: 0; border-left: 2px solid var(--gold); border-radius: 0; padding: 4px 0 4px 18px; }
.goal-quote p:last-child { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink); line-height: 1.4; }

/* ---------- Krok ---------- */
.step-head { display: flex; gap: 18px; align-items: center; }
.step-head .prio-ico { color: #d8b66a; }
.step-head .prio-label { color: var(--gold); }
.step-head h1 { font-size: clamp(30px, 6vw, 42px); margin-top: 4px; }
.step-head .prio-meta { color: var(--muted); }
.step-grid { display: grid; gap: 18px; }
.step-grid > div { display: grid; gap: 18px; align-content: start; }
.timer-card { display: grid; gap: 18px; justify-items: center; padding: 28px 18px; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); }
.ring { position: relative; width: min(230px, 64vw); aspect-ratio: 1; --p: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring-bg { stroke: var(--paper-2); }
.ring-fg { stroke: var(--sage); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p) * 100); transition: stroke-dashoffset 900ms linear; }
.ring-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-text strong { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 12vw, 58px); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ring-text small { color: var(--muted); font-weight: 600; }
.steps-list { margin: 0; padding-left: 22px; display: grid; gap: 10px; color: var(--ink-2); }
.steps-list li::marker { color: var(--gold); font-family: var(--serif); }
.step-actions { display: grid; gap: 6px; justify-items: center; position: sticky; bottom: calc(80px + env(safe-area-inset-bottom)); padding-top: 12px; background: linear-gradient(180deg, rgba(245, 240, 230, 0), var(--paper) 40%); }
.done-note { display: flex; gap: 8px; align-items: center; color: var(--sage); font-weight: 650; }

/* ---------- Plán ---------- */
.subnav { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: 0 -18px; padding: 0 18px; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; min-height: 48px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a .i { width: 17px; height: 17px; }
.subnav a:hover { color: var(--ink); }
.subnav a.active { color: var(--ink); border-bottom-color: var(--ink); }
.subnav a.active .i { color: var(--gold); }
.plan-body { display: grid; gap: 18px; }
.today-mini { grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.today-mini .prio-ico { background: var(--card-2); color: var(--gold); width: 46px; height: 46px; border-radius: 13px; }
.today-mini .prio-ico .i { width: 22px; height: 22px; }
.today-mini .prio-label { color: var(--gold); }
.today-mini b { display: block; font-weight: 600; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wd { display: grid; justify-items: center; gap: 8px; padding: 10px 0; border-radius: 12px; }
.wd.today { background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.wd.past { opacity: 0.55; }
.wd-name { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.wd-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.wd-dot.on { border: 1.5px solid var(--ink); }
.wd-dot.off { border: 1.5px dashed var(--line-2); }
.wd-dot.done { background: var(--sage); color: #fff; }
.wd-dot .i { width: 15px; height: 15px; }
.wd-label { font-size: 11px; color: var(--muted); }
.kv { margin: 0; display: grid; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.variants { list-style: none; margin: 0; padding: 0; display: grid; }
.variants li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.variants li:first-child { border-top: 0; }
.variants li > span:nth-child(2) { flex: 1; }
.variants li b { display: block; font-weight: 600; }
.variants li small { color: var(--muted); font-size: 13.5px; }
.variants li.na { opacity: 0.5; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span:first-of-type { position: absolute; inset: 0; border-radius: 99px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background var(--t); }
.switch span:first-of-type::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(22, 33, 58, 0.25); transition: transform var(--t) var(--ease); }
.switch input:checked + span { background: var(--sage); box-shadow: none; }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { box-shadow: var(--ring); }

.principles { margin: 0; padding: 0; list-style: none; counter-reset: pr; display: grid; }
.principles li { counter-increment: pr; position: relative; padding: 14px 0 14px 44px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.principles li::before { content: counter(pr, decimal-leading-zero); position: absolute; left: 0; top: 13px; font-family: var(--serif); color: var(--gold); font-size: 18px; }
.principles b { font-weight: 600; }
.meals { margin: 0; display: grid; }
.meals div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.meals dt { font-family: var(--serif); font-size: 18px; }
.meals dd { margin: 0; color: var(--ink-2); }

.supp-grid { display: grid; gap: 14px; }
.supp { padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); display: grid; gap: 10px; align-content: start; }
.supp header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.supp h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; }
.supp .fit { color: var(--sage); font-size: 14px; font-weight: 600; }
.supp dl { margin: 0; display: grid; }
.supp dl div { padding: 9px 0; border-top: 1px solid var(--line); }
.supp dt { font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.supp dd { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
.supp .btn { justify-self: start; }
.supp .muted .i { display: inline; width: 15px; height: 15px; vertical-align: -2px; }

/* ---------- Zdravotní péče ---------- */
.ack { background: var(--sage-soft); border-color: transparent; }
.ack h3 .i { color: var(--sage); }
.ack .btn { justify-self: start; }
.care-cols { display: grid; gap: 18px; }
.care-list { list-style: none; margin: 0; padding: 0; display: grid; }
.care-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.care-list li:first-child { border-top: 0; }
.care-list li.inactive { opacity: 0.55; }
.care-item { flex: 1; min-width: 0; }
.care-item b { display: block; font-weight: 600; }
.care-item small { color: var(--muted); font-size: 13.5px; }
.empty { text-align: center; display: grid; gap: 6px; justify-items: center; padding: 22px 14px; border: 1px dashed var(--line-2); border-radius: 16px; }
.empty .btn { margin-top: 8px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.tl { display: grid; grid-template-columns: 54px 26px 1fr; gap: 4px 12px; align-items: start; padding: 10px 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 78px; top: 38px; bottom: -10px; width: 1px; background: var(--line-2); }
.tl:last-child::before { display: none; }
.tl-time { font-family: var(--serif); font-size: 19px; color: var(--ink-2); padding-top: 1px; font-variant-numeric: tabular-nums; }
.tl-dot { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; background: var(--card); z-index: 1; }
.tl-dot .i { width: 14px; height: 14px; }
.tl-body b { display: block; font-weight: 600; }
.tl-body small { color: var(--muted); font-size: 13.5px; }
.tl-act { grid-column: 3; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.st-taken .tl-dot { background: var(--sage); border-color: var(--sage); color: #fff; }
.st-due .tl-dot { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.st-due .tl-time { color: var(--gold); }
.st-snoozed .tl-dot { border-color: var(--ink); }
.times { display: flex; flex-wrap: wrap; gap: 8px; }
.time-chip { display: inline-flex; align-items: center; gap: 4px; }
.history { list-style: none; margin: 0; padding: 0; display: grid; }
.history li { display: flex; gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.h-day { width: 56px; font-weight: 600; color: var(--ink-2); flex: none; }
.h-doses { display: flex; flex-wrap: wrap; gap: 6px; }
.h-dose { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; background: var(--card-2); color: var(--muted); font-size: 13px; font-weight: 600; }
.h-dose.ok { color: #2d5540; background: var(--sage-soft); }
.h-dose .i { width: 13px; height: 13px; }

/* ---------- Konzultace ---------- */
.consult { align-content: start; }
.thread { display: grid; gap: 18px; align-content: start; }
.exchange { display: grid; gap: 12px; }
.exchange + .exchange { border-top: 1px solid var(--line); padding-top: 18px; }
.exchange:not(.newest) .msg-bubble { opacity: 0.9; }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 100%; }
.msg-avatar { flex: none; }
.msg-avatar img { width: 28px; height: 28px; }
.msg-bubble { padding: 14px 16px; border-radius: 18px; max-width: min(620px, 88%); display: grid; gap: 10px; line-height: 1.55; }
.msg.ai .msg-bubble { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.me { justify-content: flex-end; }
.msg.me .msg-bubble { background: var(--ink); color: var(--paper); border-bottom-right-radius: 6px; }
.msg.safety .msg-bubble { background: var(--sage-soft); border-color: transparent; color: #28402f; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.composer-wrap { display: grid; gap: 10px; }
.quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px; }
.quick::-webkit-scrollbar { display: none; }
.quick .chip { white-space: nowrap; background: var(--card); }
.composer { display: flex; gap: 8px; }
.mentor-mode { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.mentor-mode .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.mentor-mode.on .dot { background: var(--sage); box-shadow: 0 0 0 3px var(--sage-soft); }
.mentor-mode .link-btn { font-size: 13.5px; padding: 0; }
.typing { display: flex; gap: 5px; padding: 4px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
.choice-text { display: grid; gap: 2px; }
.choice-text small { font-size: 14px; font-weight: 400; color: var(--muted); line-height: 1.4; }
.choice.active .choice-text small { color: #c4c9d4; }
.composer .input { border-radius: 999px; padding-inline: 20px; }
.composer .btn { width: 50px; padding: 0; flex: none; }

/* ---------- Příběh ---------- */
.review { background: var(--gold-soft); border-color: transparent; }
.review .prio-label { color: #7a5a22; }
.review-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.review-lines li { display: flex; gap: 11px; align-items: center; color: var(--ink-2); }
.review-lines .i { color: var(--gold); width: 19px; height: 19px; }
.review-close { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.35; }
.story-line { list-style: none; margin: 0; padding: 0; display: grid; }
.story-line li { display: grid; grid-template-columns: 38px 1fr auto; gap: 14px; padding: 10px 0; position: relative; align-items: start; }
.story-line li::before { content: ""; position: absolute; left: 18px; top: 48px; bottom: -8px; width: 1px; background: var(--line-2); }
.story-line li:last-child::before { display: none; }
.sl-dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.story-line li.note .sl-dot { background: var(--sky-soft); color: var(--ink); }
.sl-dot .i { width: 18px; height: 18px; }
.sl-body { display: grid; gap: 4px; justify-items: start; }
.sl-body p { font-family: var(--serif); font-size: 18px; line-height: 1.4; }
.sl-body small { color: var(--muted); font-weight: 600; }

/* ---------- Profil ---------- */
.profile-head { grid-template-columns: auto 1fr; align-items: center; gap: 18px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 30px; background: var(--ink); color: var(--paper); }
.modes { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.modes[disabled] { opacity: 0.5; }
.mode { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line-2); cursor: pointer; }
.mode input { grid-row: 1 / 3; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.mode b { font-weight: 600; }
.mode small { color: var(--muted); font-size: 13.5px; }
.mode:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.perm { display: grid; gap: 8px; }
.perm .btn { justify-self: start; }
.link-block { grid-template-columns: auto 1fr auto; align-items: center; text-decoration: none; color: inherit; }
.link-block b, .link-block small { display: block; }
.link-block b { font-weight: 600; }
.link-block:hover { border-color: var(--line-2); }
.ticks-app { margin: 0; padding-left: 20px; display: grid; gap: 7px; color: var(--ink-2); }
.ticks-app li::marker { color: var(--gold); }
.profile form .btn[type=submit] { justify-self: start; }

/* ---------- Dialog ---------- */
.modal { padding: 0; border: 0; background: transparent; color: inherit; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; margin: 0; }
.modal::backdrop { background: rgba(22, 33, 58, 0.45); }
.modal[open] { display: grid; place-items: end center; }
.modal-card { width: min(540px, 100%); max-height: 92vh; overflow: auto; display: grid; gap: 16px; background: var(--paper); border-radius: 24px 24px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); animation: sheet 240ms var(--ease); }
@keyframes sheet { from { transform: translateY(20px); opacity: 0; } }
@media (min-width: 640px) { .modal[open] { place-items: center; } .modal-card { border-radius: 24px; padding: 26px; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-head h2 { font-size: 26px; }
.modal-body { display: grid; gap: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* ---------- Toast a připomínky ---------- */
.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 999px; max-width: calc(100vw - 32px); background: var(--ink); color: var(--paper); font-weight: 550; font-size: 15px; box-shadow: 0 16px 32px -16px rgba(22, 33, 58, 0.6); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.toast .i { width: 17px; height: 17px; color: #9fd0b3; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reminder-dock { position: fixed; z-index: 50; left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top)); display: grid; gap: 10px; pointer-events: none; }
.reminder-pop { pointer-events: auto; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(22, 33, 58, 0.5); display: grid; gap: 12px; animation: sheet 260ms var(--ease); }
.rp-head { display: flex; gap: 12px; align-items: center; }
.rp-head strong { display: block; font-weight: 600; }
.rp-head small { color: var(--muted); font-size: 13.5px; }
.rp-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Appka: horní lišta ---------- */
.appbar {
  position: sticky; top: 0; z-index: 25;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 18px 10px;
  background: rgba(245, 240, 230, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.appbar-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--serif); font-weight: 500; font-size: 19px; color: var(--ink); }
.appbar-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--serif); font-size: 17px; text-decoration: none; }
.appbar-avatar.active { box-shadow: 0 0 0 3px var(--gold-soft), 0 0 0 4px var(--gold); }
.main { padding-top: 18px; }

/* ---------- Tmavé obrazovky: úvod a vytváření plánu ---------- */
.shell:has(.onb-dark), body.app-body:has(.onb-dark) { background: var(--ink); }
.onb-dark { color: var(--paper); }
.onb-dark h1 { color: var(--paper); }
.onb-dark .lead-app, .onb-dark .muted { color: #c4c9d4; }
.onb-dark .welcome-logo { filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45)); border-radius: 20px; box-shadow: 0 0 0 1px rgba(245, 240, 230, 0.18); }
.onb-dark .welcome-art svg path { stroke: #f5f0e6; stroke-opacity: 0.35; }
.onb-dark .welcome-art svg circle:first-of-type { fill: #f5f0e6; }
.onb-dark .onb-actions { background: linear-gradient(180deg, rgba(22, 33, 58, 0), var(--ink) 30%); }
.onb-dark .btn-primary { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.onb-dark .btn-ghost { color: var(--paper); }
.onb-dark .btn-ghost:hover { background: rgba(245, 240, 230, 0.08); }
.onb-dark .creating-steps li { color: #8d95a6; }
.onb-dark .creating-steps li.on { color: var(--paper); }
.onb-dark .creating-steps li.done, .onb-dark .creating-steps li.final.on { color: #9fd0b3; }

/* ---------- Na počítači: volba / přes celou obrazovku / náhled v rámu telefonu ---------- */
.stage-info, .chooser, .appbar-switch { display: none; }
.device { min-height: 100vh; }
.btn-light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; border-color: #fff; }
.stage-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); font-family: var(--serif); font-size: 26px; font-weight: 500; }
.stage-meta { font-size: 13px; color: #8d95a6; }
.stage-meta a { color: inherit; }

/* Volba */
body.choose-mode { background: radial-gradient(900px 600px at 70% 10%, #22304f 0%, transparent 60%), #111a2e; color: var(--paper); }
body.choose-mode .device { display: none; }
body.choose-mode .chooser { display: grid; gap: 22px; justify-items: center; text-align: center; max-width: 920px; margin: 0 auto; padding: clamp(36px, 7vh, 80px) 24px 48px; }
.chooser h1 { color: var(--paper); font-size: clamp(34px, 4vw, 48px); }
.chooser-lead { color: #c4c9d4; font-size: 17px; }
.chooser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; width: 100%; margin-top: 8px; }
.chooser-card { display: grid; gap: 10px; align-content: start; justify-items: start; text-align: left; padding: 26px; border-radius: 24px; background: #182440; border: 1px solid rgba(245, 240, 230, 0.12); color: #c4c9d4; font-size: 15.5px; line-height: 1.5; }
button.chooser-card { cursor: pointer; transition: border-color var(--t) var(--ease), transform var(--t) var(--ease); }
button.chooser-card:hover { border-color: #d8b66a; transform: translateY(-2px); }
.chooser-card strong { font-family: var(--serif); font-weight: 500; font-size: 28px; color: var(--paper); letter-spacing: -0.01em; }
.chooser-kicker { font-size: 12px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: #d8b66a; }
.chooser-cta { margin-top: 8px; color: var(--paper); font-weight: 650; }
.chooser-card.phone { justify-items: center; text-align: center; }
.chooser-qr { width: 176px; height: 176px; padding: 10px; background: #fff; border-radius: 16px; margin-top: 6px; }
.chooser-qr svg { width: 100%; height: 100%; display: block; }
.chooser-url { font-size: 13.5px; color: #8d95a6; word-break: break-all; }
.chooser .link-btn { color: var(--paper); text-decoration-color: rgba(245, 240, 230, 0.35); }

/* Přes celou obrazovku v prohlížeči */
body.web-mode .main { max-width: 780px; padding-left: 24px; padding-right: 24px; }
body.web-mode .appbar { padding-left: max(24px, calc(50% - 390px)); padding-right: max(24px, calc(50% - 390px)); }
body.web-mode .appbar-switch { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); border-radius: 999px; padding: 7px 13px; font-size: 13.5px; font-weight: 600; }
body.web-mode .appbar-switch:hover { border-color: var(--ink); color: var(--ink); }
body.web-mode .appbar-switch .i { width: 16px; height: 16px; }
body.web-mode .tabbar { left: 50%; right: auto; transform: translateX(-50%); width: min(620px, 100%); border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; }
body.web-mode .reminder-dock { left: auto; right: 22px; top: 76px; width: 380px; }
body.web-mode .checkin .chips, body.web-mode .quick { flex-wrap: wrap; margin: 0; padding: 0; }
body.web-mode .subnav { margin: 0; padding: 0; }

/* Náhled v rámu telefonu */
body.phone-mode {
  min-height: 100vh; margin: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  background: radial-gradient(900px 600px at 70% 20%, #22304f 0%, transparent 60%), #111a2e;
  color: var(--paper); overflow: hidden;
}
body.phone-mode .stage-info { display: grid; gap: 18px; align-content: center; justify-items: start; justify-self: end; max-width: 330px; margin-right: clamp(32px, 5vw, 80px); color: #c4c9d4; }
.stage-lead { font-family: var(--serif); font-size: 30px; line-height: 1.15; color: var(--paper); letter-spacing: -0.02em; }
.stage-lead em { color: #d8b66a; }
.stage-note { font-size: 15px; line-height: 1.55; }
.stage-info .stage-back { color: var(--paper); padding: 0; }
body.phone-mode .device {
  grid-column: 2; min-height: 0;
  width: 400px; height: min(860px, calc(100vh - 48px));
  padding: 12px; border-radius: 52px; background: #0b1222;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 60px 120px -40px rgba(0, 0, 0, 0.8), inset 0 0 0 2px #1e2a44;
}
body.phone-mode .shell {
  position: relative; height: 100%; min-height: 0; border-radius: 42px; overflow: hidden;
  background: var(--paper); color: var(--ink);
  transform: translateZ(0);          /* fixní prvky (lišta, toast) se drží rámu telefonu */
  display: flex; flex-direction: column;
}
body.phone-mode .shell .main { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding-bottom: 110px; max-width: none; }
body.phone-mode .shell .main::-webkit-scrollbar { display: none; }
body.phone-mode .focus-mode .main { max-width: none; }
body.phone-mode .appbar { position: relative; padding-top: 16px; }
body.phone-mode .tabbar, body.phone-mode .toast, body.phone-mode .reminder-dock { position: absolute; }
@media (max-width: 1060px) { body.phone-mode .stage-info { display: none; } }
@media (max-width: 900px) { .chooser-grid { grid-template-columns: 1fr; } }

/* ---------- Hlas v Konzultaci ---------- */
.voice-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.composer .mic { width: 50px; padding: 0; flex: none; }
.composer .mic.on { background: var(--sage); border-color: var(--sage); color: #fff; animation: micpulse 1.4s ease-in-out infinite; }
@keyframes micpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(61, 106, 81, 0.45); } 50% { box-shadow: 0 0 0 8px rgba(61, 106, 81, 0); } }
.voice-hint { min-height: 1em; text-align: center; font-size: 13.5px; color: var(--sage); font-weight: 600; }
.voice-hint:empty { display: none; }

/* ---------- Účet ---------- */
.account-line { display: flex; align-items: center; gap: 8px; }
.account-line .i { width: 18px; height: 18px; color: var(--sage); }
.consent { font-weight: 450; font-size: 14.5px; color: var(--ink-2); }
.code-input { letter-spacing: 0.4em; text-align: center; max-width: 240px; font-variant-numeric: tabular-nums; }
.modal .link-btn { justify-self: start; }
.where { display: grid; gap: 8px; }
.where-opt { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); }
.where-opt b { display: block; font-weight: 600; }
.where-opt small { color: var(--muted); font-size: 13.5px; }
.where-opt .btn { grid-column: 2; justify-self: start; margin-top: 6px; }
.where-opt.off { border-style: dashed; }
.where-mark { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: #fff; }
.where-opt:not(.off) .where-mark { background: var(--sage); border-color: var(--sage); }
.where-mark .i { width: 14px; height: 14px; }
.reassure { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.reassure .i { width: 17px; height: 17px; color: var(--sage); margin-top: 2px; }

.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg-btn { border: 0; background: transparent; border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 550; color: var(--ink-2); min-height: 36px; }
.seg-btn.active { background: var(--ink); color: var(--paper); }
.field-label { font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.rating { display: flex; gap: 8px; }
.rating-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); font-weight: 600; font-size: 16px; }
.rating-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Víc lidí v jednom prohlížeči ---------- */
.who { min-height: calc(100dvh - 48px); display: grid; align-content: center; justify-items: center; text-align: center; gap: 10px; padding: 40px 20px 56px; animation: fadein 220ms var(--ease); }
.who-logo { margin-bottom: 6px; }
.who h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 6vw, 40px); margin: 0; letter-spacing: -0.01em; }
.who > p { margin: 0 0 18px; max-width: 34ch; }
.who-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 620px; }
.who-card { width: 150px; display: grid; justify-items: center; gap: 12px; padding: 22px 10px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); cursor: pointer; color: inherit; font: inherit; transition: border-color var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.who-card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(22, 33, 58, 0.35); }
.who-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.who-card.add { background: transparent; border: 1.5px dashed var(--line-2); color: var(--ink-2); }
.who-name { font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.who-lock { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.who-lock .i { width: 13px; height: 13px; }
.who-av { --av: var(--ink); width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--av); color: #fff; font-family: var(--serif); font-size: 19px; }
.who-av.lg { width: 84px; height: 84px; font-size: 36px; }
.who-av.add { background: transparent; color: var(--ink-2); border: 1.5px dashed var(--line-2); }
.who-av.add .i { width: 26px; height: 26px; }
.pin-input { max-width: 180px; letter-spacing: 0.5em; font-size: 22px; text-align: center; }

.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.person { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.person:first-child { border-top: 0; }
.person-name { display: grid; line-height: 1.3; min-width: 0; }
.person-name small { font-size: 13px; }
.person-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.profile-head:has(.profile-switch) { grid-template-columns: auto 1fr auto; }
.profile-switch { align-self: center; }
.form-grid .span-2 { grid-column: 1 / -1; }

/* Na počítači: údaje ve dvou sloupcích místo polí přes celou šířku. */
@media (min-width: 720px) {
  body.web-mode .form-grid { grid-template-columns: 1fr 1fr; gap: 16px 18px; }
  body.web-mode .form-grid .span-2 { grid-column: auto; }
  body.web-mode .profile .input-num { max-width: none; }
  body.web-mode .profile .block { padding: 24px 26px; }
}
@media (max-width: 420px) {
  .who-card { width: calc(50% - 7px); }
  .person { grid-template-columns: auto 1fr; }
  .person-act { grid-column: 1 / -1; justify-content: flex-start; padding-left: 52px; }
}
@media (min-width: 720px) {
  body.web-mode .modes { grid-template-columns: repeat(3, 1fr); }
  body.web-mode .mode { grid-template-rows: auto 1fr; }
}
body.phone-mode .who { min-height: 100%; }

/* Úvodní rozhovor na počítači: vycentrovaná karta, tlačítka hned pod otázkou (ne na konci obrazovky). */
body.web-mode .focus-mode .main { max-width: 680px; min-height: 100dvh; display: grid; align-content: center; padding-top: 32px; padding-bottom: 32px; }
body.web-mode .onb { min-height: 0; grid-template-rows: auto auto auto; gap: 26px; }
body.web-mode .onb:not(.onb-dark) { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 26px 44px 34px; box-shadow: 0 30px 60px -40px rgba(22, 33, 58, 0.35); }
body.web-mode .onb-actions { position: static; background: none; padding: 4px 0 0; }
body.web-mode .onb-actions .btn-block { max-width: 420px; }
body.web-mode .who { min-height: 0; }

/* Menu pod kolečkem vpravo nahoře */
.appbar-avatar { border: 0; cursor: pointer; padding: 0; }
.appbar-avatar:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.me-menu { position: fixed; z-index: 60; width: min(300px, calc(100vw - 24px)); background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 8px; box-shadow: 0 24px 50px -20px rgba(22, 33, 58, 0.4); display: grid; gap: 2px; animation: fadein 160ms var(--ease); }
.me-head { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.me-id { display: grid; line-height: 1.3; min-width: 0; }
.me-id small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-menu [role=menuitem] { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: 12px; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 550; text-decoration: none; text-align: left; cursor: pointer; }
.me-menu [role=menuitem]:hover, .me-menu [role=menuitem]:focus-visible { background: var(--paper); outline: none; }
.me-menu [role=menuitem] .i { width: 18px; height: 18px; color: var(--ink-2); }
.me-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

/* Nabídka „Mentorio na plochu“ */
.install-offer { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 36px 12px 12px; margin-bottom: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 14px 30px -22px rgba(22, 33, 58, 0.4); animation: fadein 220ms var(--ease); }
.install-offer img { border-radius: 10px; }
.install-offer span { display: grid; line-height: 1.3; min-width: 0; }
.install-offer small { color: var(--muted); font-size: 13px; }
.steps-list { margin: 0; padding-left: 22px; display: grid; gap: 10px; line-height: 1.45; }
.install-offer .icon-btn { position: absolute; top: 2px; right: 2px; width: 32px; height: 32px; min-height: 0; }
.install-offer .icon-btn .i { width: 16px; height: 16px; }
.install-offer b { font-size: 15px; }

/* Mentorio Plus */
.plus-block { border-color: var(--gold); background: linear-gradient(180deg, #fffaf0, var(--card)); }
.plus-block h3 .i { color: var(--gold); }
.plus-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plus-plan { display: grid; gap: 2px; justify-items: start; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.plus-plan b { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.plus-plan small { color: var(--muted); font-size: 13px; }
.plus-plan:hover:not([disabled]) { border-color: var(--ink); }
.plus-plan.best { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.plus-plan[disabled] { cursor: default; opacity: 0.75; }

.voice-pick { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip-sm { min-height: 34px; padding: 5px 12px; font-size: 13.5px; }

/* ---------- Konzultace: zjednodušená hlavička a stav verze ---------- */
.consult-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.consult-head h1 { font-size: clamp(30px, 5vw, 42px); margin: 0; }
.consult-head p { margin: 4px 0 0; }
.voice-settings-btn { display: inline-flex; align-items: center; gap: 7px; flex: none; margin-top: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.voice-settings-btn .i { width: 17px; height: 17px; }
.voice-settings-btn:hover { border-color: var(--ink); color: var(--ink); }
.plan-pill { justify-self: start; margin: -4px 0 0; padding: 5px 12px; border-radius: 999px; background: var(--gold-soft); color: #6b5220; font-size: 13px; font-weight: 600; }
.plan-pill.free { background: var(--paper-2); color: var(--ink-2); }
.talk-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; border-radius: 999px; border: 1.5px solid var(--gold); background: transparent; color: #6b5220; font: inherit; font-weight: 650; cursor: pointer; }
.talk-btn .i { width: 19px; height: 19px; }
.talk-btn:hover { background: var(--gold-soft); }
.quick-light { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.quick-light .link-btn { font-size: 14px; }
.plus-hint { display: flex; gap: 8px; align-items: flex-start; background: var(--gold-soft); border-radius: 12px; padding: 10px 12px; margin: 0; font-size: 14px; }
.plus-hint .i { color: var(--gold); flex: none; }
.vs { display: grid; gap: 16px; }

/* ---------- Hlasový rozhovor (celá obrazovka) ---------- */
.talk { position: fixed; inset: 0; z-index: 70; background: var(--ink); color: var(--paper); display: grid; grid-template-rows: auto auto 1fr auto 1fr; gap: 14px; padding: calc(18px + env(safe-area-inset-top)) 22px calc(26px + env(safe-area-inset-bottom)); overflow-y: auto; animation: fadein 200ms var(--ease); }
.talk-top { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: #c4c9d4; }
.talk-voice { display: inline-flex; align-items: center; gap: 6px; }
.talk-voice .i { width: 16px; height: 16px; }
.talk-close { border: 1px solid rgba(245, 240, 230, 0.3); background: transparent; color: var(--paper); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.talk-label { margin: 0 0 4px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #8d95a6; font-weight: 600; }
.talk-q { margin: 0; font-family: var(--serif); font-size: clamp(22px, 5.5vw, 30px); line-height: 1.3; min-height: 1.3em; }
.talk-orb { align-self: end; justify-self: center; width: 150px; height: 150px; border-radius: 50%; border: 0; background: rgba(245, 240, 230, 0.07); display: grid; place-items: center; cursor: pointer; transition: background 300ms var(--ease); }
.talk-orb-in { width: 100px; height: 100px; border-radius: 50%; display: grid; place-items: center; background: #2c3957; color: var(--paper); transition: background 300ms var(--ease), transform 300ms var(--ease); }
.talk-orb-in .i { width: 34px; height: 34px; }
.talk[data-state="listening"] .talk-orb { background: rgba(61, 106, 81, 0.28); }
.talk[data-state="listening"] .talk-orb-in { background: var(--sage); animation: orbpulse 1.4s ease-in-out infinite; }
.talk[data-state="thinking"] .talk-orb-in { background: #3a4868; animation: orbpulse 2.2s ease-in-out infinite; }
.talk[data-state="speaking"] .talk-orb { background: rgba(164, 124, 53, 0.25); }
.talk[data-state="speaking"] .talk-orb-in { background: var(--gold); animation: orbpulse 0.9s ease-in-out infinite; }
@keyframes orbpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .talk-orb-in { animation: none !important; } }
.talk-status { margin: 0; text-align: center; color: #e9dcc2; font-weight: 600; }
.talk-a-wrap { align-self: start; margin-top: 8px; max-height: 32vh; overflow-y: auto; }
.talk-a { margin: 0; color: #dfe3ea; line-height: 1.55; }
body.phone-mode .talk { position: absolute; border-radius: inherit; }

/* Tarify Light / Plus v Profilu */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.tier { border: 1px solid var(--line-2); border-radius: 16px; padding: 14px 16px; display: grid; gap: 10px; align-content: start; background: var(--card); }
.tier.best { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.tier-name { margin: 0; font-family: var(--serif); font-size: 22px; display: flex; align-items: center; gap: 8px; }
.tier-tag { font-family: inherit; font-size: 11.5px; font-weight: 650; background: var(--gold-soft); color: #6b5220; padding: 2px 8px; border-radius: 999px; }
.tier .ticks-app { font-size: 14px; }
.plus-plans.one { grid-template-columns: 1fr; }
.plan-status { margin: 0; }

/* ---------- Recepty a přehled jídla ---------- */
.recipe-ask { display: flex; gap: 8px; flex-wrap: wrap; }
.recipe-ask .input { flex: 1 1 220px; }
.recipe { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 10px; background: var(--card); }
.recipe + .recipe { margin-top: 10px; }
.recipe.fresh { border-color: var(--sage); }
.recipe-head h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 21px; }
.recipe-head p { margin: 4px 0 0; display: flex; align-items: center; gap: 6px; }
.recipe-head .i { width: 15px; height: 15px; }
.recipe-why { margin: 0; color: var(--ink-2); }
.recipe summary { cursor: pointer; font-weight: 600; }
.recipe-ing { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 4px; }
.recipe-ing li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding: 3px 0; }
.recipe-ing b { font-weight: 600; white-space: nowrap; }
.recipe-steps { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 6px; }
.cooking { display: flex; align-items: center; gap: 8px; animation: fadein 300ms var(--ease); }
.nut-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.nut-sum div { background: var(--paper); border-radius: 12px; padding: 10px; display: grid; text-align: center; }
.nut-sum b { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.nut-sum small { color: var(--muted); font-size: 12px; }
.food-add { display: flex; flex-wrap: wrap; gap: 8px; }
.food-log { list-style: none; margin: 0; padding: 0; display: grid; }
.food-log li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.food-log li:first-child { border-top: 0; }
.food-log span { display: grid; }
@media (max-width: 420px) { .nut-sum { grid-template-columns: repeat(2, 1fr); } }

/* Verze v horní liště aplikace (pevný štítek jen tam, kde lišta není — úvodní rozhovor, výběr profilu) */
.appbar-ver { margin-left: 10px; margin-right: 0; font: 600 12px/1 system-ui, sans-serif; color: #2f3a54; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 9px; letter-spacing: 0.02em; }

body:has(.shell:not(.focus-mode)) > .ver-tag { display: none; }

/* Předplatné na očích: štítek v liště, stránka #/predplatne, loga plateb */
.appbar-plan { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; margin-right: 8px; padding: 5px 10px 5px 8px; border-radius: 999px; font: 650 12px/1 system-ui, sans-serif; text-decoration: none; color: #6b5220; background: var(--gold-soft); border: 1px solid #e6d5ae; white-space: nowrap; }
.appbar-plan .i { width: 14px; height: 14px; color: var(--gold); }
.appbar-plan.is-plus { background: var(--ink); color: #f5f0e6; border-color: var(--ink); }
.appbar-plan.is-plus .i { color: #c9a45a; }
.appbar-plan.is-free { background: transparent; }
.appbar-plan[hidden] + .appbar-avatar { margin-left: auto; }
@media (max-width: 420px) { .appbar-ver { font-size: 10.5px; padding: 4px 6px; margin-left: 6px; } .appbar-plan { padding: 5px 8px 5px 6px; margin-right: 6px; } .appbar-brand span { display: none; } }
.me-plus { color: #6b5220 !important; font-weight: 650; }
.me-plus .i { color: var(--gold); }
.plus-page { display: grid; gap: 18px; }
.plus-hero { text-align: center; padding: 26px 18px 22px; border-radius: 24px; background: radial-gradient(120% 90% at 50% 0%, #fff6df 0%, #fffaf0 45%, transparent 100%), var(--card); border: 1px solid #ecdcb6; }
.plus-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: #8a6a2a; }
.plus-kicker .i { color: var(--gold); }
.plus-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 6vw, 38px); line-height: 1.12; margin: 10px 0 10px; }
.plus-hero .lead { margin: 0 auto; max-width: 34em; color: var(--ink-2); }
.plus-page .plus-block h3, .plus-page .plan-status { display: none; }
.plus-why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.plus-why li { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }
.plus-why li .i { color: var(--sage); flex: none; margin-top: 2px; }
.plus-why b { display: block; color: var(--ink); margin-bottom: 2px; }
.pay-trust { display: grid; gap: 8px; justify-items: center; text-align: center; margin-top: 4px; }
.pay-trust p { margin: 0; }
.pay-logos { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pay-logo { display: inline-flex; align-items: center; justify-content: center; height: 28px; min-width: 54px; padding: 0 8px; border-radius: 7px; background: #fff; border: 1px solid #e3ded3; }

.terms-ok { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); margin-top: 12px; padding: 10px 12px; border-radius: 12px; }
.terms-ok input { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--ink); }
.terms-ok a { color: var(--ink); }
.terms-ok.need { background: var(--gold-soft); box-shadow: inset 0 0 0 1px #e6d5ae; }

/* Výběr jazyka na úvodní obrazovce */
.lang-flags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 auto 18px; max-width: 360px; }
.lang-flag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font: 600 12px/1 system-ui, sans-serif; color: var(--ink-2); cursor: pointer; }
.lang-flag img { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.lang-flag.on { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* Úvodní obrazovka na počítači: tlačítka stojí pevně, ať je text v jakémkoli jazyce dlouhý. */
body.web-mode .onb:has(.welcome) .onb-body { min-height: 540px; }
body.web-mode .welcome { padding-top: 1vh; gap: 14px; }
body.web-mode .welcome-art { margin: 0; }
.welcome h1 { min-height: 2.1em; display: grid; align-items: end; }
.welcome .lead-app { min-height: 4.6em; }
.onb:has(.welcome) .onb-actions .btn-ghost { min-height: 4.1em; }

.goal-main { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: #8a6a2a; background: var(--gold-soft); padding: 2px 7px; border-radius: 999px; vertical-align: middle; }
.choice.active .goal-main { background: rgba(245, 240, 230, .16); color: #e9cf95; }
.choice .choice-check { font: 700 13px/1 system-ui, sans-serif; }
.goal-own { margin-top: 6px; }

.own-minutes { margin-top: 8px; }
.min-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.min-row .input { width: 90px; text-align: center; }
.min-row .own-text { width: auto; flex: 1 1 240px; min-width: 0; text-align: left; }
