/* Pilot — Davidův den na jednom místě.
   Barvy: Práce = zelená (brand), Osobní = modrá. Téma: světlé / tmavé / podle systému. */

:root {
  --ground: #F2F5F1;
  --card: #FFFFFF;
  --card-2: #F7F9F6;
  --ink: #16211A;
  --muted: #5B685F;
  --line: #DCE4DC;
  --warn: #9A5B0B;
  --warn-soft: #FBEFD9;
  --bad: #A93226; --on-bad: #fff;
  --bad-soft: #F8E3E0;
  --ok: #2E7D32;
  --work: #1F6B3A;
  --work-soft: #E1EFE3;
  --personal: #2F5AA8;
  --personal-soft: #E3EAF7;
  --on-acc: #FFFFFF;
  --shadow: 0 8px 28px rgba(22, 33, 26, .14);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0E1411; --card: #161F1A; --card-2: #1B251F; --ink: #E4ECE5; --muted: #98A69C; --line: #26332B;
    --warn: #E7B25E; --warn-soft: #35291A; --bad: #EE8B80; --on-bad: #2A1210; --bad-soft: #3A1F1C; --ok: #74C979;
    --work: #6CCB8A; --work-soft: #1A3222; --personal: #8FB0EE; --personal-soft: #1C2740;
    --on-acc: #0E1411; --shadow: 0 8px 28px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  --ground: #0E1411; --card: #161F1A; --card-2: #1B251F; --ink: #E4ECE5; --muted: #98A69C; --line: #26332B;
  --warn: #E7B25E; --warn-soft: #35291A; --bad: #EE8B80; --on-bad: #2A1210; --bad-soft: #3A1F1C; --ok: #74C979;
  --work: #6CCB8A; --work-soft: #1A3222; --personal: #8FB0EE; --personal-soft: #1C2740;
  --on-acc: #0E1411; --shadow: 0 8px 28px rgba(0, 0, 0, .5);
}
:root { --acc: var(--work); --acc-soft: var(--work-soft); }
:root[data-mode="personal"] { --acc: var(--personal); --acc-soft: var(--personal-soft); }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* hidden musí vyhrát nad display:flex níž (jinak se schované okno ukáže) */
[hidden] { display: none !important; }
html { background: var(--ground); }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 15px/1.45 "Instrument Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3 { font-family: Archivo, "Arial Narrow", system-ui, sans-serif; font-stretch: 112%; margin: 0; line-height: 1.15; text-wrap: balance; }

.brand-mark {
  width: 56px; height: 56px; border-radius: 16px; background: var(--acc); color: var(--on-acc);
  display: grid; place-items: center; font: 800 28px/1 Archivo, system-ui, sans-serif; font-stretch: 112%;
}
.brand-mark.sm { width: 32px; height: 32px; border-radius: 9px; font-size: 16px; }

/* ── Přihlášení ── */
.gate { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: env(safe-area-inset-top, 0px) 20px env(safe-area-inset-bottom, 0px); }
.gate-card { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.gate-card h1 { font-size: 34px; }
.gate-card p { margin: 0; color: var(--muted); }
.gate-err { color: var(--bad) !important; min-height: 1em; }

.btn-primary { background: var(--acc); color: var(--on-acc); border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 700; }
.btn-ghost { background: transparent; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font-weight: 600; color: var(--ink); }
.btn-ghost.wide { width: 100%; }
.btn-danger { background: transparent; border: 1px solid var(--bad); color: var(--bad); border-radius: 12px; padding: 11px 14px; font-weight: 600; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; font-size: 16px; flex: none; padding: 0; }

/* ── Hlavička ── */
/* místo pod obsahem = skutečná výška zápisu dole (--cap-h měří pilot.js) + spodní lišta */
.shell { padding-bottom: calc(var(--cap-h, 92px) + 58px + 16px + env(safe-area-inset-bottom, 0px)); }
.top {
  position: sticky; top: 0; z-index: 20; background: var(--ground);
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 8px; }
.top-title { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-title b { display: block; font: 800 18px/1.1 Archivo, system-ui, sans-serif; font-stretch: 112%; }
.mode-switch { display: flex; background: var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.mode-switch button { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 7px 0; font-weight: 700; font-size: 14px; color: var(--muted); transition: background .2s, color .2s; }
.mode-switch button[aria-selected="true"] { background: var(--card); color: var(--acc); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

.main { max-width: 640px; margin: 0 auto; padding: 14px 16px 0; }
.view { display: flex; flex-direction: column; gap: 22px; }
.sec { display: flex; flex-direction: column; gap: 8px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 2px; }
.hint { margin: 0; font-size: 12px; color: var(--muted); }
.pill-demo { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; background: var(--warn-soft); color: var(--warn); border-radius: 6px; padding: 2px 6px; }

/* Kapacita dne */
.cap-line { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px; color: var(--muted); }
.cap-line b { color: var(--ink); font-variant-numeric: tabular-nums; }
.cap-meter { flex-basis: 100%; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.cap-meter i { display: block; height: 100%; background: var(--acc); border-radius: 3px; }
.cap-line.over .cap-meter i { background: var(--warn); }
.cap-line.over .cap-note { color: var(--warn); font-weight: 600; }

/* Hlavní věc */
.main-card { background: var(--acc); color: var(--on-acc); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.main-card .mono { color: inherit; opacity: .8; }
.main-card h3 { font-size: 21px; line-height: 1.2; overflow-wrap: anywhere; }
.main-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; opacity: .9; }
.main-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.main-actions button { border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 13px; }
.main-actions button.solid { background: var(--on-acc); color: var(--acc); border-color: var(--on-acc); }
.why { background: rgba(255, 255, 255, .14); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
:root[data-theme="dark"] .why { background: rgba(0, 0, 0, .14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .why { background: rgba(0, 0, 0, .14); } }
.why summary { font-weight: 700; cursor: pointer; list-style: none; }
.why summary::-webkit-details-marker { display: none; }
.why summary::after { content: " ▾"; }
.why[open] summary::after { content: " ▴"; }
.why p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.why .why-empty { opacity: .85; font-style: italic; }
.main-empty { border: 2px dashed var(--acc); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.main-empty p { margin: 0; color: var(--muted); }

/* Řádky úkolů */
.list { display: flex; flex-direction: column; gap: 6px; }
.task { background: var(--card); border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: stretch; min-height: 50px; }
.task.focus-top { border-left: 3px solid var(--acc); }
.task-check { width: 46px; flex: none; border: 0; background: transparent; display: grid; place-items: center; padding: 0; }
.task-check span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; font-size: 13px; color: transparent; }
.task.done .task-check span { background: var(--ok); border-color: var(--ok); color: var(--on-acc); }
.task.done .task-title { text-decoration: line-through; color: var(--muted); }
.task-body { flex: 1; min-width: 0; border: 0; background: transparent; text-align: left; padding: 9px 12px 9px 0; display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.task-title { font-weight: 600; overflow-wrap: anywhere; }
.task-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; color: var(--muted); }
.task-meta .late { color: var(--bad); font-weight: 600; }
.empty { font-size: 14px; color: var(--muted); padding: 10px 2px; }

/* Kalendář */
.cal { display: flex; flex-direction: column; border-left: 2px solid var(--line); margin-left: 6px; }
/* 🧭 Navigace vedle řádku v agendě (Teď / Potom) — jedno klepnutí a jede se */
.cal-evrow { display: flex; align-items: center; gap: 6px; }
.cal-evrow > .cal-ev { flex: 1 1 auto; min-width: 0; }
.cal-navbtn { flex: 0 0 auto; text-decoration: none; font-size: 17px; line-height: 1; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.cal-ev { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 6px 0 6px 12px; position: relative; font-size: 14px; }
.cal-ev::before { content: ""; position: absolute; left: -6px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--muted); }
.cal-ev.now::before { background: var(--acc); border-color: var(--acc); }
.cal-ev.past { opacity: .5; }
.cal-ev time { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }

/* Úkoly — skupiny */
.chips-scroll { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip.on { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
#tasks-groups { display: flex; flex-direction: column; gap: 20px; }
.done-box summary { cursor: pointer; font-weight: 700; color: var(--muted); padding: 6px 2px; }
.done-box .list { margin-top: 8px; }

/* ── Rychlý zápis ── */
.cap {
  position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom, 0px) + var(--kb, 0px)); z-index: 30;
  background: var(--ground); border-top: 1px solid var(--line); padding: 8px 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.cap-bar { display: flex; gap: 8px; align-items: center; max-width: 640px; width: 100%; margin: 0 auto; }
.cap-bar input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 10px 14px; font-size: 16px; }
.cap-bar input:focus { outline: none; border-color: var(--acc); }
.send-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--acc); color: var(--on-acc); font-size: 20px; font-weight: 800; flex: none; }
#cap-mic.rec { background: var(--bad); color: var(--on-bad); border-color: var(--bad); }
.cap-summary { max-width: 640px; width: 100%; margin: 0 auto; padding: 0 4px; min-height: 0; }
.cap-summary:empty { display: none; }
.cap-opts { max-width: 640px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; }
.opt-row { display: flex; flex-direction: column; gap: 4px; }
.opt-l { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.seg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg.wrap { flex-wrap: wrap; }
.seg button { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 11px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }

/* Spodní lišta */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; background: var(--card); border-top: 1px solid var(--line);
  display: flex; padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabs button { flex: 1; border: 0; background: transparent; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 18px; color: var(--muted); }
.tabs button span { font-size: 11px; font-weight: 700; }
.tabs button.on { color: var(--acc); }

/* ── Spodní okno ── */
/* --kb = kolik dole zabrala klávesnice (nastavuje pilot.js přes visualViewport) */
.sheet { position: fixed; inset: 0; bottom: var(--kb, 0px); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.sheet-card {
  position: relative; width: 100%; max-width: 640px; max-height: 88vh; max-height: calc(88dvh - var(--kb, 0px)); background: var(--card);
  border-radius: 20px 20px 0 0; display: flex; flex-direction: column; box-shadow: var(--shadow);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { flex: 1; font-size: 18px; min-width: 0; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > label, .field > .opt-l { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); background: var(--card-2); border-radius: 10px; padding: 10px 12px; font-size: 16px; }
.field textarea { min-height: 84px; resize: vertical; }
.field .help { font-size: 12px; color: var(--muted); }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.row-btns > * { flex: 1 1 140px; }
.imp-group { display: flex; flex-direction: column; gap: 6px; }
.imp-item { display: flex; gap: 10px; align-items: center; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.imp-item div { flex: 1; min-width: 0; }
.imp-item b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.imp-item small { color: var(--muted); }
.imp-item button { flex: none; }
.imp-item.taken { opacity: .55; }
.proj-row { display: flex; gap: 6px; align-items: center; }
.proj-row input.emoji { width: 56px; flex: none; text-align: center; }
.proj-row input.name { flex: 1; min-width: 0; }
.proj-row select { width: auto; flex: none; }
.proj-row .icon-btn { width: 36px; height: 36px; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(150px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  background: var(--ink); color: var(--ground); border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 14px;
  display: flex; gap: 12px; align-items: center; max-width: calc(100% - 32px); box-shadow: var(--shadow);
}
.toast button { border: 0; background: transparent; color: var(--ground); font-weight: 800; text-decoration: underline; padding: 0; }

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

/* Na počítači: hlavička, přepínač i spodní lišta ve stejném sloupci jako obsah */
.top-row, .mode-switch { width: 100%; max-width: 608px; margin-inline: auto; }
.tabs { justify-content: center; }
.tabs button { flex: 0 1 152px; position: relative; }

/* Kalendář z Googlu */
.cal-head { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; }
.icon-btn.sm { width: 30px; height: 30px; font-size: 14px; }
.icon-btn:disabled { opacity: .5; }
.cal-allday { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px -6px; padding-left: 12px; }
.cal-allday .chip { background: var(--acc-soft); border-color: transparent; color: var(--ink); white-space: normal; }
.cal-ev span { min-width: 0; overflow-wrap: anywhere; }
.cal-ev small { display: block; font-size: 12px; color: var(--muted); }
.cal-ev.free::before { border-style: dashed; }
.cal .empty { padding-left: 12px; }

/* ── Záložka Kalendář ── */
.main:has(#view-cal:not([hidden])) { max-width: 1100px; }
.cal-bar { display: flex; flex-direction: column; gap: 8px; position: sticky; top: calc(108px + env(safe-area-inset-top, 0px)); z-index: 5; background: var(--ground); padding-bottom: 6px; }
.cal-views { overflow-x: auto; }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-title { flex: 1; min-width: 0; text-align: center; font: 700 15px/1.2 Archivo, system-ui, sans-serif; font-stretch: 112%; text-transform: capitalize; }
.cal-today { padding: 7px 12px; }
.cal-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-meta .mono { flex: 1; }
.cal-legend { font-size: 11px; color: var(--muted); }
.cal-legend summary { cursor: pointer; font-weight: 600; }
.cal-legend[open] { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.cal-legend span { white-space: nowrap; }
@media (min-width: 760px) { .cal-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; } .cal-legend summary { display: none; } }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 3px; vertical-align: -1px; }

/* barvy zdrojů */
:root { --src-google: #5B6B8C; --src-training: #1F6B3A; --src-request: #B4542D; --src-offer: #8A6D1F; --src-task: #2F5AA8; --src-avail: rgba(46, 125, 50, .12); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --src-google: #8E9CBB; --src-training: #6CCB8A; --src-request: #F09A73; --src-offer: #E0BE63; --src-task: #8FB0EE; --src-avail: rgba(108, 203, 138, .14); } }
:root[data-theme="dark"] { --src-google: #8E9CBB; --src-training: #6CCB8A; --src-request: #F09A73; --src-offer: #E0BE63; --src-task: #8FB0EE; --src-avail: rgba(108, 203, 138, .14); }
.lg-google, .src-google { --c: var(--src-google); }
.lg-training, .src-training { --c: var(--src-training); }
.lg-request, .src-request { --c: var(--src-request); }
.lg-offer, .src-offer { --c: var(--src-offer); }
.lg-task, .src-task { --c: var(--src-task); }
.cal-legend i { background: var(--c); }
.cal-legend .lg-avail { background: var(--src-avail); border: 1px dashed var(--ok); }

/* Dnes — řádky kalendáře jsou klikací */
button.cal-ev { width: 100%; border: 0; background: transparent; text-align: left; color: var(--ink); cursor: pointer; }
.cal-ev::before { border-color: var(--c, var(--muted)) !important; }
.cal-ev.now::before { background: var(--c, var(--acc)); }
.cal-allday .chip { cursor: pointer; }
.cal-avail-line { font-size: 12px; color: var(--muted); padding: 4px 0 0 12px; }

/* mřížka dne / týdne */
.cg { display: flex; flex-direction: column; gap: 6px; }
.cg-head, .cg-allday, .cg-body { display: grid; grid-template-columns: 46px repeat(var(--days), minmax(0, 1fr)); }
.cg-dayname { border: 0; background: transparent; padding: 4px 2px; font-size: 12px; color: var(--muted); text-transform: capitalize; }
.cg-dayname b { color: var(--ink); }
.cg-dayname.today b { background: var(--acc); color: var(--on-acc); border-radius: 999px; padding: 1px 6px; }
.cg-allday { border-top: 1px solid var(--line); padding: 4px 0; align-items: start; }
.cg-allday .mono { font-size: 9px; align-self: center; }
.cg-allday > div { display: flex; flex-direction: column; gap: 2px; padding: 0 2px; min-width: 0; }
.cg-chip { border: 0; border-radius: 6px; padding: 2px 6px; font-size: 11px; font-weight: 600; text-align: left; background: color-mix(in srgb, var(--c) 18%, var(--card)); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-scroll { max-height: calc(100dvh - 330px - env(safe-area-inset-bottom, 0px)); min-height: 280px; overflow-y: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overscroll-behavior: contain; }
.cg-hours span { display: block; font-family: "IBM Plex Mono", monospace; font-size: 10px; color: var(--muted); padding: 0 4px; transform: translateY(-6px); text-align: right; }
.cg-hours span:first-child { transform: none; }
.cg-col { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 52px); cursor: copy; }
.cg-col.today { background-color: color-mix(in srgb, var(--acc) 4%, transparent); }
.cg-avail { position: absolute; left: 0; right: 0; border: 0; border-left: 3px solid var(--ok); background: var(--src-avail); padding: 2px 4px; text-align: right; cursor: copy; }
.cg-avail span { font-size: 10px; color: var(--ok); font-weight: 600; }
.cg-ev {
  position: absolute; border: 0; border-left: 3px solid var(--c); border-radius: 6px; padding: 2px 5px; text-align: left; overflow: hidden;
  background: color-mix(in srgb, var(--c) 24%, var(--card)); color: var(--ink); display: flex; flex-direction: column; gap: 1px; cursor: pointer; z-index: 2;
}
.cg-ev b { font-size: 12px; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.cg-ev small { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-ev.free { background: transparent; border: 1px dashed var(--c); border-left-width: 3px; }
.cg-ev.past, .cg-ev.done { opacity: .55; }
.cg-ev.src-request { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, var(--card)) 0 6px, var(--card) 6px 12px); }
.cg-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--bad); z-index: 3; pointer-events: none; }
.cg-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }

/* seznam */
.cl { display: flex; flex-direction: column; gap: 14px; }
.cl-day { display: flex; flex-direction: column; gap: 5px; }
.cl-date { border: 0; background: transparent; text-align: left; padding: 0 2px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cl-day.today .cl-date { color: var(--acc); }
.cl-item { display: grid; grid-template-columns: 92px 1fr; gap: 10px; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 10px; background: var(--card); padding: 8px 10px; text-align: left; color: var(--ink); }
.cl-item time { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted); padding-top: 2px; }
.cl-item span { min-width: 0; }
.cl-item b { font-weight: 600; overflow-wrap: anywhere; }
.cl-item small { display: block; font-size: 12px; color: var(--muted); }
.cl-item.free { border-style: dashed; border-left-style: solid; }
.cl-free { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.cl-free .chip { padding: 4px 10px; font-size: 12px; }

/* měsíc */
.cm-head, .cm-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cm-head span { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cm-grid { border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.cm-cell { position: relative; min-height: 64px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; padding: 3px; text-align: left; display: flex; flex-direction: column; gap: 2px; color: var(--ink); min-width: 0; }
.cm-cell.other { opacity: .45; }
.cm-num { font-size: 12px; font-weight: 700; }
.cm-cell.today .cm-num { background: var(--acc); color: var(--on-acc); border-radius: 999px; padding: 0 6px; align-self: flex-start; }
.cm-items { display: none; flex-direction: column; gap: 1px; min-width: 0; }
.cm-items i { font-style: normal; font-size: 10px; border-left: 2px solid var(--c); padding-left: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-dots { display: flex; flex-wrap: wrap; gap: 2px; }
.cm-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.cm-more { font-size: 10px; color: var(--muted); }
.cm-avail { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 2px; background: var(--ok); opacity: .6; }
@media (min-width: 760px) {
  .cm-cell { min-height: 96px; }
  .cm-items { display: flex; }
  .cm-dots { display: none; }
  .cm-more { display: block; }
}
@media (max-width: 759px) { .cm-more { display: none; } }

/* detail položky */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.kv dt { font-size: 12px; color: var(--muted); font-weight: 700; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
a.btn-ghost, a.btn-primary { display: block; text-align: center; text-decoration: none; }
.btn-primary.wide { width: 100%; }
.sched-row { display: flex; gap: 8px; }
.sched-row input { flex: 1; min-width: 0; }

.cg-head.single { display: none; }
.cg-ev.short { flex-direction: row; align-items: center; gap: 6px; padding-block: 0; }
.cg-ev.short b { -webkit-line-clamp: 1; flex: 0 1 auto; }
.cg-ev.short small { flex: none; }
.cg-avail { text-align: left; }
.cg-avail span { display: block; }
/* v kalendáři zápis úkolu schovat — úkol se vkládá klepnutím do mřížky */
body:has(#view-cal:not([hidden])) .cap { display: none; }
body:has(#view-cal:not([hidden])) .shell { padding-bottom: calc(58px + 16px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) { body:has(#view-cal:not([hidden])) .shell { padding-bottom: 24px; } }
body:has(#view-cal:not([hidden])) .cg-scroll { max-height: calc(100dvh - 250px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
.cg-avail { display: flex; align-items: flex-start; }

/* Dnes: Teď a potom */
.tn-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 0 2px 12px; }
.tn-free { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 4px 0 4px 12px; font-size: 14px; }
.tn-free .btn-ghost { padding: 7px 12px; font-size: 13px; }
/* Přetahování úkolu */
.cg-ev[data-drag] { cursor: grab; touch-action: pan-x pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.cg-ev.dragging { cursor: grabbing; z-index: 10; box-shadow: var(--shadow); outline: 2px solid var(--c); opacity: .95; }
/* Poskládat plán */
.plan-row { cursor: pointer; }
.plan-row input { width: 20px; height: 20px; flex: none; accent-color: var(--acc); }

/* 📥 Inbox a 🛒 Nákup */
.tab-badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--bad); color: var(--on-bad); font: 700 10px/17px "Instrument Sans", system-ui, sans-serif; font-style: normal; }
.ib-subs { overflow-x: auto; }
.ib-text { white-space: pre-wrap; }
.ib-tag { border-radius: 6px; padding: 0 6px; font-weight: 600; background: var(--line); color: var(--ink); }
.ib-tags button[style] { border-color: transparent; }
.ib-tags button[aria-pressed="true"][style] { outline: 2px solid var(--ink); }
.ib-shop .task-body { padding-right: 4px; }
.ib-x { flex: none; width: 44px; border: 0; background: transparent; color: var(--muted); font-size: 15px; }
.ib-shopbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ib-shopbar .btn-ghost { padding: 7px 12px; font-size: 13px; }
.ib-toggle { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.ib-toggle input { width: 18px; height: 18px; accent-color: var(--acc); }
.ib-freq { align-items: center; }
.ib-freq .mono { flex: none; }
.task-meta a { color: inherit; }

.ib-handle { flex: none; width: 30px; display: grid; place-items: center; color: var(--muted); cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; font-size: 15px; }
.ib-shop.dragging { box-shadow: var(--shadow); border-color: var(--acc); position: relative; z-index: 5; }
.ib-shop .task-check { width: 40px; }

/* 🔔 Notifikace */
.push-banner { display: flex; align-items: center; gap: 8px; background: var(--acc-soft); border-radius: 14px; padding: 10px 10px 10px 14px; font-size: 14px; }
.push-banner span { flex: 1; min-width: 0; }
.push-banner .btn-primary { padding: 8px 12px; font-size: 13px; }
.push-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }

/* ⏰ rychlé připomínky */
.cap-rem { max-width: 640px; width: 100%; margin: 0 auto; }
.rem-row { display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px; }
.rem-row::-webkit-scrollbar { display: none; }
.note-rem .rem-row { flex-wrap: wrap; overflow: visible; }
.rem-row .chip { padding: 5px 10px; font-size: 13px; }
.rem-ico { flex: none; font-size: 15px; }
.rem-pill { flex: none; background: var(--acc); color: var(--on-acc); border-radius: 999px; padding: 5px 11px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.rem-pill.late { background: var(--bad); color: var(--on-bad); }
.rem-x { color: var(--muted); }
.rem-custom { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.rem-custom input { flex: 1 1 180px; min-width: 0; border: 1px solid var(--line); background: var(--card-2); border-radius: 10px; padding: 9px 10px; font-size: 16px; }
.ib-late .sec-h { color: var(--bad); }
.ib-rest { margin-top: 12px; }


/* 🔔 Co přišlo */
.icon-btn.bell { position: relative; }
.icon-btn.bell .tab-badge { top: -4px; left: auto; right: -4px; }
.push-banner.bad { background: var(--bad-soft); color: var(--bad); }
.hist-list { display: flex; flex-direction: column; gap: 6px; }
.hist-item { display: flex; flex-direction: column; gap: 3px; text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 12px; color: var(--ink); }
.hist-item.unread { border-left: 4px solid var(--acc); background: var(--acc-soft); }
.hist-top { display: flex; gap: 8px; justify-content: space-between; align-items: baseline; }
.hist-top b { font-weight: 700; overflow-wrap: anywhere; }
.hist-top time { flex: none; font-size: 12px; color: var(--muted); }
.hist-body { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.hist-state { font-size: 12px; color: var(--muted); }
.hist-state.bad { color: var(--bad); font-weight: 600; }

/* ✨ Návrh dne */
.btn-ghost.sm, .btn-primary.sm { padding: 6px 11px; font-size: 13px; border-radius: 10px; }
a.btn-ghost.sm { display: inline-block; }
.plan-empty { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px dashed var(--acc); border-radius: 14px; padding: 10px 12px; font-size: 14px; }
.plan-empty span { flex: 1 1 200px; color: var(--muted); }
.plan-card { border: 1px solid var(--acc); background: var(--card); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.plan-card.accepted { border-color: var(--line); }
.plan-head { display: flex; align-items: center; gap: 6px; }
.plan-head .mono { flex: 1; color: var(--acc); font-weight: 600; }
.plan-summary { margin: 0; font-size: 15px; }
.plan-main { background: var(--acc-soft); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.plan-main b { font: 800 18px/1.25 Archivo, system-ui, sans-serif; font-stretch: 112%; overflow-wrap: anywhere; }
.plan-why { display: block; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.plan-top { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.plan-top b { font-weight: 600; overflow-wrap: anywhere; }
.plan-sec { display: flex; flex-direction: column; gap: 6px; }
.plan-sec > .mono { font-weight: 600; }
.plan-miss { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 8px; }
.plan-miss b { font-weight: 600; overflow-wrap: anywhere; }
.plan-miss-act { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.plan-gmail { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 8px 10px; font-size: 13px; }
.plan-gmail span { flex: 1 1 200px; }
.plan-gmail.bad { background: var(--bad-soft); color: var(--bad); }
.hint.bad { color: var(--bad); }
/* ⚠️ Kolize u rezervace — pozor, ale ne chyba (barvy jsou tokeny → sedí i v tmavém režimu) */
.hint.warn { color: var(--warn); background: var(--warn-soft); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; }

/* ══════ 🕰 DNESKA SE OZVI TŘEM (reachout.js) ══════
   Jen proměnné → tmavý režim vychází sám (CLAUDE.md). */
.ro-dots { display: inline-flex; gap: 4px; align-items: center; }
.ro-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.ro-dots i.on { background: var(--ok, var(--accent)); }
.ro-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); overflow: hidden; margin-bottom: 8px; }
.ro-rest { margin-top: 6px; }
.ro-row { display: flex; border-top: 1px solid var(--line); }
.ro-row:first-child { border-top: 0; }
.ro-row.done .ro-text b { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.ro-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border: 0; background: transparent; text-align: left; color: var(--ink); font: inherit; cursor: pointer; }
.ro-main:hover { background: var(--card-2); }
.ro-ico { flex: none; width: 22px; text-align: center; font-size: 16px; }
.ro-text { min-width: 0; display: flex; flex-direction: column; }
.ro-text b { font-weight: 600; font-size: 14px; line-height: 1.3; }
.ro-text small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ro-ok { margin: 0; font-size: 13px; color: var(--muted); text-align: center; padding: 6px 0 2px; }

@media (min-width: 1024px) {
  .ro-text small { white-space: normal; }
}

/* ══════════════ 📥 VYŘÍDIT — jedna schránka (stream.js) ══════════════
   Barvy jen přes proměnné → tmavý režim vychází sám (CLAUDE.md). */
.view-stream { display: flex; flex-direction: column; gap: 12px; }
.st-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 2px 0; }
.st-head b { font-size: 17px; }
.st-head .mono { color: var(--muted); }
.st-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.st-row { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--line); min-height: 56px; }
.st-row:first-child { border-top: 0; }
.st-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 9px 4px 9px 12px;
  border: 0; background: transparent; text-align: left; color: var(--ink); font: inherit; cursor: pointer; }
.st-main:hover { background: var(--card-2); }
.st-ico { flex: none; width: 24px; text-align: center; font-size: 17px; }
.st-text { min-width: 0; display: flex; flex-direction: column; }
.st-text b { font-weight: 600; font-size: 14px; line-height: 1.35; }
.st-text small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-acts { flex: none; display: flex; gap: 2px; padding-right: 8px; }
.st-zero { text-align: center; padding: 34px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; }
.st-zero small { display: block; margin-top: 6px; font-size: 12px; }
.st-hint { padding: 0 2px; }

/* 🖥 Na počítači se vejde delší popisek — na mobilu se ořízne, ať řádek nepřeteče */
@media (min-width: 1024px) {
  .view-stream { max-width: 900px; }
  .st-text b { font-size: 15px; }
  .st-text small { white-space: normal; }
  .st-row { min-height: 60px; }
}

/* ══════════════ 🖥 DESKTOP — rozšířené rozvržení (CLAUDE.md: Pilot mobil I desktop) ══════════════ */
.today-left, .today-right { display: contents; }
.sec-rest { order: 2; }
.today-right .sec-cal { order: 1; }
@media (min-width: 1024px) {
  /* navigace vlevo místo spodní lišty */
  .shell { padding-left: 232px; padding-bottom: calc(var(--cap-h, 72px) + 20px); }
  .tabs { top: 0; bottom: 0; left: 0; right: auto; width: 232px; flex-direction: column; justify-content: flex-start; gap: 4px;
    padding: calc(24px + env(safe-area-inset-top, 0px)) 14px 20px; border-top: 0; border-right: 1px solid var(--line); background: var(--card); }
  .tabs::before { content: "Pilot"; font: 800 22px/1 Archivo, system-ui, sans-serif; font-stretch: 112%; color: var(--acc); padding: 0 12px 18px; }
  .tabs button { flex: none; height: 44px; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 12px; border-radius: 12px; font-size: 18px; }
  .tabs button span { font-size: 15px; }
  .tabs button.on { background: var(--acc-soft); }
  .tabs .tab-badge { position: static; margin-left: auto; }
  .top { flex-direction: row; align-items: center; gap: 20px; padding-inline: 28px; }
  .top-row { max-width: none; flex: 1; margin: 0; }
  .top .brand-mark { display: none; }
  .top-title b { display: none; } /* „Pilot" je v postranním panelu */
  .top-title .mono { font-size: 13px; text-transform: capitalize; }
  .mode-switch { width: 340px; flex: none; max-width: none; margin: 0; order: -1; }
  .top-title { flex: 1; }
  .main { max-width: 1320px; padding: 22px 28px 0; margin: 0; }
  /* zápis dole: na počítači až u spodního okraje (není pod ním lišta) a s plným pozadím */
  .cap { left: 232px; bottom: 0; padding: 10px 28px calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 16px rgba(0, 0, 0, .04); }
  .cap-bar, .cap-opts, .cap-rem, .cap-summary { max-width: 900px; margin: 0; }
  .toast { left: calc(50% + 116px); bottom: 110px; }

  /* Dnes: vlevo plán a úkoly, vpravo kalendář (lepí se) */
  #view-today:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 28px; align-items: start; }
  .today-left, .today-right { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
  .today-right { position: sticky; top: 96px; max-height: calc(100vh - 210px); overflow-y: auto; padding-right: 4px; }
  .sec-rest, .today-right .sec-cal { order: 0; }

  /* Úkoly: skupiny vedle sebe */
  #tasks-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; align-items: start; }

  /* Okna (detail úkolu, poznámky…) jako panel vpravo, ne spodní sheet */
  .sheet { justify-content: flex-end; align-items: stretch; }
  .sheet-bg { background: rgba(0, 0, 0, .25); }
  .sheet-card { max-width: 480px; max-height: none; height: 100%; border-radius: 0; border-left: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }

  /* Kalendář: mřížka + panel úkolů k přetažení */
  .main:has(#view-cal:not([hidden])) { max-width: none; }
  .cal-bar { top: 84px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
  .cal-bar > .cal-views { flex: 0 0 360px; }
  .cal-nav { flex: 1; }
  .cal-nav .cal-title { flex: 0 1 auto; min-width: 160px; padding: 0 6px; }
  .cal-nav .cal-more-btn { margin-left: auto; }
  .cal-more { flex-basis: 100%; }
  .cal-desk { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
  .cal-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 104px); overflow-y: auto; padding-bottom: 8px; }
  .cal-side-task { border: 1px solid var(--line); border-left: 4px solid var(--src-task); background: var(--card); border-radius: 10px; padding: 8px 10px; cursor: grab; display: flex; flex-direction: column; gap: 2px; }
  .cal-side-task:active { cursor: grabbing; }
  .cal-side-task b { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
  .cal-side-task small { font-size: 12px; color: var(--muted); }
  .cg-col.drop-hover { background-color: color-mix(in srgb, var(--src-task) 12%, transparent); }
  .cg-scroll { max-height: calc(100vh - 250px); }
  body:has(#view-cal:not([hidden])) .cg-scroll { max-height: calc(100vh - 220px); }

  /* Inbox: poznámky ve dvou sloupcích */
  #view-inbox .list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

}
@media (min-width: 1440px) {
  #tasks-groups { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #view-inbox .list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .main { max-width: 1480px; }
}

/* ⚠️ Co ti utíká — kompaktní řádky */
.missed-slot { display: flex; flex-direction: column; gap: 18px; }
.missed-slot:empty { display: none; }
.pr-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.pr-row { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--line); min-height: 52px; }
.pr-row:first-child { border-top: 0; }
.pr-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 4px 8px 12px; border: 0; background: transparent; text-align: left; color: var(--ink); text-decoration: none; font: inherit; }
a.pr-main:hover, button.pr-main:hover { background: var(--card-2); }
.pr-ico { flex: none; width: 22px; text-align: center; font-size: 16px; }
.pr-text { min-width: 0; display: flex; flex-direction: column; }
.pr-text b { font-weight: 600; font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-text small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-act { flex: none; display: flex; gap: 2px; padding-right: 8px; }
.pr-btn { width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font-size: 15px; font-weight: 700; display: grid; place-items: center; }
.pr-btn:hover { background: var(--line); color: var(--ink); }
.pr-btn.ok { color: var(--ok); }
.pr-btn.ok:hover { background: var(--work-soft); }
.pr-btn.add { width: auto; padding: 0 10px; color: var(--acc); font-size: 13px; }
.pr-more { border: 0; background: transparent; color: var(--acc); font-weight: 600; font-size: 13px; padding: 4px 2px; align-self: flex-start; }
/* mobil: blok hned pod „Další důležité", před kalendář */
@media (min-width: 1024px) {
  .pr-text b, .pr-text small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
  .today-right .pr-text b { -webkit-line-clamp: 2; }
}

/* 🔄 nové od rána · 🌙 uzavření dne */
.pr-new { font-style: normal; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--acc); color: var(--on-acc); border-radius: 5px; padding: 1px 5px; margin-right: 6px; vertical-align: 1px; }
#close-slot:empty { display: none; }
.close-card { border: 1px solid var(--personal); background: var(--card); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.close-card .plan-head .mono { color: var(--personal); }
.close-done { display: flex; flex-direction: column; gap: 3px; background: var(--work-soft); border-radius: 12px; padding: 10px 12px; }
.close-done span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.close-card .sec-h .btn-ghost { text-transform: none; letter-spacing: 0; }

/* ⚖️ Rozhodni */
.decide-slot:empty { display: none; }
.dec-h-act { display: flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; }
.dec-new-link { border: 1px dashed var(--line); background: transparent; color: var(--muted); border-radius: 12px; padding: 10px 12px; text-align: left; font-size: 13px; width: 100%; }
.dec-new-link:hover { border-color: var(--warn); color: var(--ink); }
.dec-card { border: 1px solid var(--warn); background: var(--card); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.dec-card + .dec-card { margin-top: 8px; }
.dec-wait { border-style: dashed; color: var(--muted); font-size: 14px; }
.dec-q { display: flex; gap: 6px; align-items: flex-start; }
.dec-q b { flex: 1; font: 700 15px/1.3 "Instrument Sans", system-ui, sans-serif; overflow-wrap: anywhere; }
.dec-ctx { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.dec-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px; }
.dec-opt { border: 1px solid var(--line); background: var(--card-2); border-radius: 10px; padding: 8px 10px; text-align: left; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.dec-opt b { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.dec-opt small { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.dec-opt.rec { border-color: var(--warn); background: var(--warn-soft); }
.dec-opt.own { border-style: dashed; }
.dec-opt:hover { border-color: var(--acc); }
.dec-chosen { margin: 0; font-size: 15px; }

/* 💬 Chat (fáze 4) — mobil: jedna konverzace, seznam po klepnutí; počítač: seznam vlevo, konverzace vpravo */
.view-chat { gap: 12px; }
.ch-side { display: none; flex-direction: column; gap: 8px; }
.ch-side.open { display: flex; }
.ch-threads { display: flex; flex-direction: column; gap: 6px; }
.ch-thread { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 9px 12px; text-align: left; display: flex; flex-direction: column; gap: 2px; color: var(--ink); min-width: 0; }
.ch-thread b { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.ch-thread small { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ch-thread.on { border-color: var(--acc); background: var(--acc-soft); }
.ch-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ch-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ch-head .btn-ghost { padding: 7px 11px; font-size: 13px; }
.ch-head { flex-wrap: nowrap; }
@media (max-width: 480px) { .ch-lbl { display: none; } }
.ch-title { flex: 1 1 0; min-width: 0; font-size: 17px; overflow-wrap: anywhere; }
.ch-empty { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.ch-hello { display: flex; gap: 12px; align-items: flex-start; }
.ch-hello b { display: block; font: 700 17px/1.25 Archivo, system-ui, sans-serif; font-stretch: 112%; }
.ch-hello small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.ch-starters { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.ch-starter { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 11px 12px; text-align: left; display: flex; gap: 10px; align-items: center; color: var(--ink); font-weight: 600; font-size: 14px; }
.ch-starter span { font-size: 18px; }
.ch-starter:hover { border-color: var(--acc); }
.ch-msgs { display: flex; flex-direction: column; gap: 10px; }
.ch-msg { display: flex; }
.ch-msg.me { justify-content: flex-end; }
.ch-bub { max-width: 88%; border-radius: 16px; padding: 10px 13px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; min-width: 0; }
.ch-msg.me .ch-bub { background: var(--acc); color: var(--on-acc); border-bottom-right-radius: 4px; }
.ch-msg.ai .ch-bub { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; max-width: 100%; }
.ch-bub p { margin: 0 0 8px; }
.ch-bub ul, .ch-bub ol { margin: 0 0 8px; padding-left: 20px; }
.ch-bub li + li { margin-top: 3px; }
.ch-bub > :last-child { margin-bottom: 0; }
.ath-thread { margin-bottom: 14px; }
.ath-msgs { max-height: 42vh; overflow-y: auto; }
.ch-bub .ath-at { display: block; margin-top: 3px; font-size: 11px; opacity: .7; }
/* 💬 Vlákno se svěřencem (athletes.js): dny, reakce, citace, ✓✓, menu zprávy — vše v barvách Pilota */
.ath-msgs { padding: 18px 2px 2px; scroll-behavior: auto; }
@media (min-width: 1024px) { .ath-msgs { max-height: 52vh; } }
.ath-day { align-self: center; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .03em; }
.ath-bw { display: flex; flex-direction: column; max-width: 88%; min-width: 0; }
.ch-msg.me .ath-bw { align-items: flex-end; } .ch-msg.ai .ath-bw { align-items: flex-start; }
.ath-bw .ch-bub, .ch-msg.me .ath-bw .ch-bub, .ch-msg.ai .ath-bw .ch-bub { max-width: 100%; }
.ath-bub { position: relative; white-space: pre-wrap; }
.ath-bub.info { background: transparent !important; border: 1px dashed var(--line) !important; color: var(--muted); font-size: 13px; }
.ath-bub.flash { box-shadow: 0 0 0 3px var(--acc); transition: box-shadow .2s; }
.ath-tick { letter-spacing: -2px; } .ath-tick.read { color: #7dd3fc; font-weight: 800; opacity: 1; }
.ath-quote { display: block; width: 100%; text-align: left; font: inherit; font-size: 12.5px; line-height: 1.35; color: inherit; background: rgba(127, 127, 127, .16); border: 0; border-left: 3px solid currentColor; border-radius: 6px; padding: 4px 8px; margin-bottom: 5px; cursor: pointer; white-space: normal; }
.ath-quote b { display: block; font-size: 11.5px; }
.ath-img img { display: block; max-width: min(240px, 100%); max-height: 240px; border-radius: 10px; margin-bottom: 4px; }
.ath-audio { display: block; width: min(260px, 100%); height: 36px; margin-bottom: 4px; }
.ath-reacts { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.ath-react { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 1px 8px; font-size: 13px; line-height: 1.5; cursor: pointer; }
.ath-react.on { border-color: var(--acc); background: var(--acc-soft); }
.ath-rbar { display: none; position: absolute; top: -17px; right: 6px; z-index: 3; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 2px 5px; gap: 1px; box-shadow: var(--shadow); white-space: nowrap; }
.ch-msg.ai .ath-rbar { right: auto; left: 6px; }
.ath-rbar button { border: 0; background: transparent; font-size: 15px; line-height: 1; padding: 3px 4px; border-radius: 6px; cursor: pointer; color: var(--ink); }
.ath-rbar button:hover { background: var(--card-2); transform: scale(1.15); }
@media (hover: hover) { .ath-bub:hover .ath-rbar { display: inline-flex; } }
.ath-replyto { display: flex; align-items: center; gap: 8px; border-left: 3px solid var(--acc); background: var(--card-2); border-radius: 10px; padding: 6px 10px; margin-bottom: -6px; font-size: 13px; }
.ath-replyto[hidden] { display: none !important; }
.ath-rt-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); } .ath-rt-t b { color: var(--acc); margin-right: 6px; }
.ath-kind { display: block; font-size: 11px; font-weight: 800; letter-spacing: .02em; margin-bottom: 3px; opacity: .85; white-space: normal; }
.ch-msg.ai .ath-kind { color: var(--acc); opacity: 1; }
.ath-bub.focus { outline: 2px solid var(--acc); outline-offset: 2px; }
.ath-pres { font-size: 12.5px; margin: -6px 0 -4px; min-height: 17px; color: var(--muted); }
.ath-pres-on { color: var(--ok); font-weight: 800; }
.ath-typing { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: -8px 0 0; }
.ath-typing[hidden] { display: none !important; }
.ath-dots { display: inline-flex; gap: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 7px 9px; }
.ath-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: ath-dot 1.2s infinite ease-in-out; }
.ath-dots i:nth-child(2) { animation-delay: .15s; } .ath-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ath-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ath-dots i { animation: none; } }
.ath-bub.pocit { background: #f5f3ff !important; border: 1.5px solid #c4b5fd !important; color: #312e81; }   /* vlastní světlé pozadí → pevná tmavá barva textu je čitelná i v tmavém režimu */
.ath-bub.pocit .ath-kind { color: #6d28d9; }
.ath-head { display: flex; flex-direction: column; gap: 2px; margin: -6px 0 -4px; }
.ath-head .ath-pres { margin: 0; }
.ath-ctx { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.ath-ctx:empty { display: none; }
.ath-targets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.ath-targets .chip { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 4px 11px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.ath-targets .chip.on { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.ath-tools { display: flex; gap: 8px; align-items: center; margin-bottom: -6px; }
.ath-tools [hidden] { display: none !important; }
.ath-find { flex: 1 1 auto; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-size: 13.5px; padding: 6px 10px; }
.ath-compose { display: flex; flex-wrap: wrap; gap: 6px; }
.ath-attach { display: flex; align-items: center; gap: 8px; justify-content: space-between; border: 1px dashed var(--line); border-radius: 10px; padding: 6px 10px; font-size: 13px; margin-bottom: -6px; }
.ath-attach[hidden] { display: none !important; }
.ath-kbd { opacity: .75; white-space: nowrap; }
@media (pointer: coarse) { .ath-kbd { display: none; } }
.ath-next[hidden] { display: none !important; }
.ath-qr { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.ath-qr-h { flex: 0 0 100%; text-align: left; background: none; border: 0; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 800; padding: 2px 0; cursor: pointer; }
.ath-qr-h:hover { color: var(--ink); } .ath-qr-h small { font-weight: 600; opacity: .8; margin-left: 2px; }
.ath-qr-chip { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 12.5px; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ath-qr-chip:hover { border-color: var(--acc); } .ath-qr-chip.ghost { border-style: dashed; color: var(--muted); }
.ath-qr-edit { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.ath-qr-row { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 5px 6px 5px 10px; font-size: 13.5px; }
.ath-qr-row span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ath-morning { display: inline-flex; align-items: stretch; gap: 4px; min-width: 0; }
.row-btns > .ath-morning { flex: 1 1 230px; }   /* tlačítko + čas vedle sebe potřebují víc místa než běžné tlačítko */
.ath-morning .btn-ghost { flex: 1 1 auto; }
.ath-when { border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; padding: 0 8px; min-width: 96px; flex: 0 0 auto; }
.ath-bub.sched { background: transparent !important; color: var(--ink) !important; border: 1.5px dashed var(--acc) !important; }
.ath-bub.sched .ath-kind { color: var(--acc); opacity: 1; }
.ath-sched-act { display: block; margin-top: 6px; }
.ath-tx { margin-top: 4px; }
.st-quick { font-size: 15px; }
/* ✕ „mám vyřízeno / zruš to" — tlumené, ať nekřičí vedle ＋ a ⏰; červené až pod prstem */
.st-drop { opacity: .55; }
.st-drop:hover, .st-drop:focus-visible { opacity: 1; color: #b91c1c; }
.ath-menu { position: fixed; z-index: 95; min-width: 220px; max-width: 280px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 4px 0; overflow: hidden; }
.ath-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.ath-mr { display: flex; justify-content: space-between; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.ath-mr button { border: 0; background: transparent; font-size: 21px; line-height: 1; padding: 6px; border-radius: 9px; cursor: pointer; }
.ath-mr button:hover, .ath-mr button.on { background: var(--acc-soft); }
.ath-mi { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 600; text-align: left; padding: 10px 14px; cursor: pointer; }
.ath-mi span { width: 20px; text-align: center; } .ath-mi:hover { background: var(--card-2); } .ath-mi.bad { color: var(--bad); }
.btn-ghost.ok { border-color: var(--ok); color: var(--ok); }
.ch-tasks { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 2px; padding-top: 10px; border-top: 1px dashed var(--line); }
.ch-task { display: flex; gap: 8px; align-items: center; background: var(--card-2); border-radius: 10px; padding: 7px 10px; }
.ch-task div { flex: 1; min-width: 0; }
.ch-task b { display: block; font-weight: 600; font-size: 14px; }
.ch-task small { font-size: 12px; color: var(--muted); }
.ch-task.added { opacity: .65; }
.ch-ok { font-size: 12px; color: var(--ok); font-weight: 700; white-space: nowrap; }
.ch-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; }
.ch-acts .mono { margin-left: auto; }
.ch-act { border: 0; background: transparent; padding: 2px 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.ch-act:hover { color: var(--acc); }
.ch-typing { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; }
.ch-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); animation: chDot 1.2s infinite ease-in-out; }
.ch-typing i:nth-child(2) { animation-delay: .15s; }
.ch-typing i:nth-child(3) { animation-delay: .3s; }
.ch-typing span { margin-left: 6px; }
@keyframes chDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ch-err { background: var(--bad-soft) !important; border-color: transparent !important; color: var(--bad); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (min-width: 1024px) {
  #view-chat:not([hidden]) { display: grid; grid-template-columns: 280px minmax(0, 820px); gap: 28px; align-items: start; }
  .ch-side, .ch-side.open { display: flex; position: sticky; top: 96px; max-height: calc(100vh - 210px); overflow-y: auto; padding-right: 4px; }
  .ch-list-btn { display: none; }
  .ch-bub { font-size: 15.5px; }
  .ch-msg.me .ch-bub { max-width: 72%; }
}

/* 🧭 Projekty a cesta (fáze 5) — mobil: jeden sloupec; počítač: karty v mřížce, detail ve 2 sloupcích */
.view-projects { gap: 14px; }
.pj-top { display: flex; align-items: center; gap: 8px; }
.pj-top h2 { flex: 1; min-width: 0; font-size: 20px; overflow-wrap: anywhere; }
.pj-top .btn-ghost { padding: 7px 11px; font-size: 13px; flex: none; }
.pj-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.done-box .pj-grid { margin-top: 8px; }
.pj-card { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px 14px; text-align: left; display: flex; flex-direction: column; gap: 6px; color: var(--ink); min-width: 0; }
.pj-card:hover { border-color: var(--acc); }
.pj-card.dim { opacity: .72; }
.pj-card-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pj-card-h b { flex: 1; min-width: 0; font: 700 16px/1.25 Archivo, system-ui, sans-serif; font-stretch: 112%; overflow-wrap: anywhere; }
.pj-emoji { font-size: 20px; }
.pj-st { font-size: 11px; font-weight: 700; background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.pj-goal { font-size: 14px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pj-goal.empty { color: var(--acc); font-weight: 600; }
.pj-bar { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.pj-bar i { display: block; height: 100%; background: var(--acc); border-radius: 3px; }
.pj-next { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.pj-next b { color: var(--ink); font-weight: 600; }
.pj-meta { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.pj-meta a { color: var(--acc); font-weight: 600; }
.pj-goalcard { background: var(--acc-soft); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.pj-goalcard.empty { background: transparent; padding: 0; }
.pj-goal-t { margin: 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.pj-why { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.pj-detail, .pj-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pj-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; gap: 10px; }
.pj-path { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pj-ms { display: flex; gap: 10px; align-items: stretch; position: relative; }
.pj-ms::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: -2px; width: 2px; background: var(--line); }
.pj-ms:last-child::before { display: none; }
.pj-ms.done::before { background: var(--acc); }
.pj-ms-dot { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); color: var(--on-acc); font-weight: 800; font-size: 14px; display: grid; place-items: center; padding: 0; margin-top: 2px; position: relative; z-index: 1; }
.pj-ms.done .pj-ms-dot { background: var(--acc); border-color: var(--acc); }
.pj-ms.next .pj-ms-dot { border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.pj-ms-body { flex: 1; min-width: 0; border: 0; background: transparent; text-align: left; padding: 3px 0 14px; display: flex; flex-direction: column; gap: 1px; color: var(--ink); }
.pj-ms-body b { font-weight: 600; overflow-wrap: anywhere; }
.pj-ms.done .pj-ms-body b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.pj-ms.next .pj-ms-body b { font-weight: 800; }
.pj-ms-body small { font-size: 12px; color: var(--muted); }
.pj-ms-form, .pj-j-form { display: flex; flex-wrap: wrap; gap: 6px; }
.pj-ms-form input, .pj-j-form textarea { border: 1px solid var(--line); background: var(--card-2); border-radius: 10px; padding: 9px 10px; font-size: 16px; min-width: 0; }
.pj-ms-form input#pj-ms-title { flex: 1 1 160px; }
.pj-ms-form input[type="date"] { flex: 1 1 130px; }
.pj-ms-form .btn-ghost, .pj-j-form .btn-ghost { padding: 8px 12px; }
.pj-j-form textarea { flex-basis: 100%; resize: vertical; }
.pj-ai { display: flex; flex-direction: column; gap: 8px; }
.pj-ai p { margin: 0; overflow-wrap: anywhere; }
.pj-ai .mono { align-self: flex-end; }
.pj-risks { margin: 0; padding-left: 18px; font-size: 14px; }
.pj-wait { margin: 0; color: var(--muted); font-size: 14px; }
.pj-journal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.pj-month { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 2px 4px; }
.pj-month:first-child { padding-top: 2px; }
.pj-j { display: flex; gap: 8px; align-items: flex-start; padding: 5px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pj-j:last-child { border-bottom: 0; }
.pj-j-i { flex: none; width: 20px; text-align: center; }
.pj-j-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pj-j-t.link { border: 0; background: transparent; padding: 0; text-align: left; color: var(--ink); }
.pj-j-task .pj-j-t, .pj-j-ai .pj-j-t { color: var(--muted); }
.pj-j-win .pj-j-t, .pj-j-milestone .pj-j-t { font-weight: 600; }
.pj-j .mono { flex: none; padding-top: 2px; }
.pj-j .pr-btn { width: 28px; height: 24px; font-size: 12px; }
@media (min-width: 640px) { .pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .pj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pj-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .pj-top h2 { font-size: 24px; }
}

/* 🧠 Osobní kouč (fáze 6) — na mobilu bez záložky (Dnes karta + menu), na počítači v postranním menu */
.tab-desk { display: none !important; }
@media (min-width: 1024px) { .tabs .tab-desk { display: flex !important; } }
.coach-slot:empty { display: none; }
.coach-slot { display: flex; flex-direction: column; gap: 8px; }
.kc-card { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.kc-card.kc-wait { color: var(--muted); font-size: 14px; border-style: dashed; }
.kc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kc-area { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--acc); }
.kc-title { font-size: 17px; overflow-wrap: anywhere; }
.kc-insight { margin: 0; font-size: 14.5px; overflow-wrap: anywhere; }
.kc-action { background: var(--acc-soft); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; }
.kc-action p { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.kc-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.kc-card.done .kc-action { opacity: .7; }
.kc-q { display: flex; gap: 8px; font-size: 14px; }
.kc-q > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.kc-q p { margin: 0; font-style: italic; overflow-wrap: anywhere; }
.kc-reply { font-style: normal !important; color: var(--muted); }
.kc-reply-form, .kc-reflect { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.kc-reply-form textarea, .kc-reflect textarea { width: 100%; border: 1px solid var(--line); background: var(--card-2); border-radius: 10px; padding: 9px 10px; font-size: 16px; resize: vertical; }
.kc-reply-form .btn-ghost, .kc-reflect .btn-ghost { align-self: flex-start; padding: 7px 12px; }
.kc-reflect label { font-weight: 600; font-size: 14px; }
.kc-rate { display: flex; align-items: center; gap: 2px; }
.kc-rate .hint { margin-right: auto; }
.pr-btn.on { background: var(--acc-soft); }
.kc-week-banner { border: 1px solid var(--acc); background: var(--acc-soft); border-radius: 14px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; text-align: left; color: var(--ink); width: 100%; }
.kc-week-banner > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kc-week-banner small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.kc-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.kc-stats span { font-size: 12px; font-weight: 600; background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.kc-cols { display: grid; grid-template-columns: 1fr; gap: 8px; }
.kc-cols ul, .kc-week ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; }
.kc-cols li + li { margin-top: 3px; }
.kc-pattern { margin: 0; font-size: 14px; background: var(--card-2); border-radius: 10px; padding: 8px 10px; overflow-wrap: anywhere; }
.kc-areas { display: flex; flex-direction: column; gap: 8px; }
.kc-area-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; }
.kc-area-l { font-weight: 600; font-size: 14px; }
.kc-area-row small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.kc-dots { display: flex; gap: 3px; }
.kc-dots i { width: 14px; height: 6px; border-radius: 3px; background: var(--line); }
.kc-dots i.on { background: var(--acc); }
.kc-weeks { margin: 0 -2px; }
.kc-old { border-top: 1px solid var(--line); padding-top: 6px; }
.kc-old summary { cursor: pointer; display: flex; gap: 8px; align-items: baseline; font-size: 14px; padding: 4px 0; list-style: none; }
.kc-old summary::-webkit-details-marker { display: none; }
.kc-old summary b { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.kc-old[open] .kc-card { margin-top: 6px; }
.kc-check { display: flex; gap: 8px; align-items: center; font-size: 15px; padding: 4px 0; }
.kc-check input { width: 18px; height: 18px; accent-color: var(--acc); }
@media (min-width: 640px) { .kc-cols { grid-template-columns: 1fr 1fr; } }

/* ══ Dnes ve 3 zónách (16. 9. 2026): ☀️ Teď · 📥 Na tebe čeká · 🗂 Zbytek dne ══ */
.zone { display: flex; flex-direction: column; gap: 12px; }
.zone-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 800 17px/1.2 Archivo, system-ui, sans-serif; font-stretch: 112%; padding: 0 2px; }
.zone-h .mono { font-size: 12px; }
.zone-wait { background: var(--card-2); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
#wait-count:not(:empty) { background: var(--warn); color: var(--on-acc); border-radius: 999px; padding: 1px 8px; font-weight: 700; letter-spacing: 0; }
.zone-rest.closing { background: color-mix(in srgb, var(--personal-soft) 60%, transparent); border-radius: 18px; padding: 14px; }
.zone-now:has(#plan-slot:empty):has(#main-slot:empty) .zone-h { display: none; }
.late-slot:empty { display: none; }
.missed-slot .sec + .sugg-box, .sugg-box { margin-top: 2px; }
.sugg-box summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--muted); padding: 6px 2px; }
.sugg-box[open] summary { margin-bottom: 6px; }
/* mobil: Teď → kalendář → Na tebe čeká → Zbytek dne */
.zone-now { order: 1; }
.today-right .sec-cal { order: 2; }
.zone-wait { order: 3; }
.zone-rest { order: 4; }
.sec-rest { order: 0; }
@media (min-width: 1024px) { .zone-now, .zone-rest, .zone-wait, .today-right .sec-cal { order: 0; } }
/* posun úkolu přímo v řádku */
.task-move { display: flex; align-items: center; gap: 2px; padding-right: 6px; flex: none; }
.task-move button { border: 0; background: transparent; color: var(--acc); font-size: 12px; font-weight: 700; padding: 6px 5px; border-radius: 8px; }
.task-move button:hover { background: var(--acc-soft); }
@media (max-width: 360px) { .task-move button + button { display: none; } }
/* přijatý návrh = jeden řádek */
.plan-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding: 2px; }
.plan-line span { flex: 1 1 auto; }
.close-bar { display: flex; flex-direction: column; gap: 8px; }
.close-bar .close-done { margin: 0; font-size: 14px; }
.close-bar .close-done span { color: var(--muted); }
/* nápověda „tohle je v druhém režimu" */
.mode-hint { border: 1px dashed var(--line); background: transparent; color: var(--muted); border-radius: 12px; padding: 9px 12px; text-align: left; font-size: 13px; width: 100%; }
.mode-hint:hover { border-color: var(--acc); color: var(--ink); }
/* kouč na Dnes: jeden řádek, rozbalí se */
.kc-mini { border: 1px solid var(--line); background: var(--card); border-radius: 14px; }
.kc-mini > summary { list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; }
.kc-mini > summary::-webkit-details-marker { display: none; }
.kc-mini > summary b { display: block; font-size: 14px; }
.kc-mini > summary small { display: block; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.kc-mini-ic { font-size: 18px; }
.kc-mini[open] > summary { border-bottom: 1px solid var(--line); }
.kc-mini .kc-card { border: 0; border-radius: 0 0 14px 14px; }
/* menu + nastavení */
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu-tile { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-weight: 700; font-size: 14px; color: var(--ink); text-align: left; }
.menu-tile span { font-size: 22px; }
.menu-tile:hover { border-color: var(--acc); }
.set-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.set-item { display: flex; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid var(--line); background: var(--card); padding: 11px 12px; text-align: left; color: var(--ink); }
.set-item:last-child { border-bottom: 0; }
.set-item > span:nth-child(2) { flex: 1; min-width: 0; }
.set-item b { display: block; font-size: 15px; }
.set-item small { display: block; font-size: 12.5px; color: var(--muted); }
.set-ic { font-size: 20px; width: 26px; text-align: center; }
.set-item:hover { background: var(--card-2); }
#sheet-back { flex: none; }
.pick-new { display: flex; gap: 6px; flex-wrap: wrap; }
.pick-new input { flex: 1 1 200px; min-width: 0; border: 1px solid var(--line); background: var(--card-2); border-radius: 10px; padding: 9px 10px; font-size: 16px; }
.only-mobile { display: inline-flex; }
@media (min-width: 1024px) { .only-mobile { display: none !important; } }

/* ⚡ Chytrý zápis — náhled pod polem */
.cap-parse { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; max-width: 900px; width: 100%; margin: 0 auto; font-size: 12.5px; }
.cap-parse .cp-t { font-weight: 700; color: var(--ink); margin-right: 2px; overflow-wrap: anywhere; }
.cap-parse .cp-c { background: var(--acc-soft); color: var(--acc); border-radius: 999px; padding: 2px 8px; font-weight: 600; white-space: nowrap; }
@media (min-width: 1024px) { .cap-parse { margin: 0; } }

/* 🔍 Hledání */
.srch-res { display: flex; flex-direction: column; gap: 4px; }
.srch-item { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 9px 11px; text-align: left; color: var(--ink); }
.srch-item:hover, .srch-item:focus-visible { border-color: var(--acc); }
.srch-item > span:last-child { min-width: 0; }
.srch-item b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.srch-item small { display: block; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.srch-ic { font-size: 18px; width: 22px; text-align: center; flex: none; }
@media (max-width: 360px) { #btn-theme { display: none; } }
.athlete-slot:empty { display: none; }

/* ✨ Chat odkudkoli — na mobilu místo záložky (5 záložek dole) */
.fab-chat { position: fixed; right: 16px; bottom: calc(var(--cap-h, 72px) + 58px + 14px + env(safe-area-inset-bottom, 0px)); z-index: 29; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--acc); color: var(--on-acc); font-size: 22px; box-shadow: var(--shadow); display: grid; place-items: center; }
.fab-chat:active { transform: scale(.96); }
.fab-chat { font-size: 30px; font-weight: 500; line-height: 1; }
/* ＋ Rychlé akce — dlaždice 2 vedle sebe (na širším okně víc) */
.fab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.fab-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 12px; min-height: 84px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.fab-tile > span { font-size: 22px; line-height: 1.1; }
.fab-tile b { font-size: 15px; }
.fab-tile small { font-size: 12px; color: var(--muted); }
.fab-tile:active { transform: scale(.98); background: var(--acc-soft); }
.fab-edit { align-self: center; }
#btn-quick { display: none; font-size: 22px; font-weight: 600; }
@media (min-width: 1024px) { #btn-quick { display: grid; place-items: center; background: var(--acc); border-color: var(--acc); color: var(--on-acc); } }
.fab-edit-list { list-style: none; margin: 0; padding: 0; }
.fab-edit-list li { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid var(--line); }
.fab-edit-list li:first-child { border-top: 0; }
.fab-edit-list label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.fab-edit-list small { color: var(--muted); }
body:has(#view-cal:not([hidden])) .fab-chat { bottom: calc(58px + 14px + env(safe-area-inset-bottom, 0px)); }
#sheet:not([hidden]) ~ .fab-chat, body:has(#sheet:not([hidden])) .fab-chat { display: none; }
/* ⌨️ Když je vysunutá klávesnice, spodní lišta jen překáží — a zápis se posadí těsně nad klávesnici */
.kb-open .tabs { display: none; }
.kb-open .cap { bottom: var(--kb, 0px); }   /* domovská lišta je pod klávesnicí — bez safe-area mezery */
.kb-open .fab-chat { display: none; }
.fab-chat { transition: transform .2s ease, opacity .2s ease; }
body.fab-away .fab-chat { transform: translateY(24px) scale(.6); opacity: 0; pointer-events: none; }
#cap-more { font-size: 18px; }
.btn-danger.armed { background: var(--bad); color: var(--on-bad); border-color: var(--bad); }
.kb-open .sheet-card { border-radius: 16px 16px 0 0; }
/* 💼/🏡 přepínač nad seznamem poznámek v Inboxu */
.ib-modes { margin-bottom: 10px; }
.ib-modes i { font-style: normal; opacity: .65; font-size: 12px; }
/* ❓ Nápověda se dá ztlumit (⚙️ Nastavení → Nápověda a tipy). Varování (.warn/.bad) zůstávají vždy. */
.help-off-info .info-i { display: none; }
.help-off-hints .hint:not(.warn):not(.bad) { display: none; }
.help-off-pushday #pushday-slot { display: none; }
/* ✅ Hromadný přesun poznámek mezi 💼 a 🏡 */
.ib-pickbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.ib-pickbar > span:first-child { margin-right: auto; }
.ib-pickbar .hint { margin: 0; }
.ib-pickbar.ghost { opacity: .85; }
.task.ib-pick.on { background: var(--acc-soft); border-radius: 12px; }
.task.ib-pick.on .task-check span { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
@media (min-width: 1024px) { .fab-chat { display: none !important; } }
.task-meta .wait-meta { color: var(--personal); font-weight: 600; }
@media (max-width: 1023px) { .shell { padding-bottom: calc(var(--cap-h, 92px) + 58px + 80px + env(safe-area-inset-bottom, 0px)); } }

/* 📅 Plán týdne */
.wk-sum { margin: 0; font-weight: 600; }
.wk-day { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.wk-day.today { border-color: var(--acc); }
.wk-day-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.wk-day-h b { font: 800 15px/1.2 Archivo, system-ui, sans-serif; font-stretch: 112%; }
.wk-day-h span { flex: 1 1 120px; color: var(--muted); font-size: 13px; min-width: 0; }
.wk-day-h small { font-size: 12px; color: var(--muted); }
.wk-day-h small.bad { color: var(--warn); font-weight: 700; }
.wk-item { display: flex; gap: 8px; align-items: center; background: var(--card-2); border-radius: 10px; padding: 7px 9px; }
.wk-item > div { flex: 1; min-width: 0; }
.wk-item b { display: block; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.wk-item small { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.wk-item select { flex: none; max-width: 42%; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 5px 6px; font-size: 13px; color: var(--ink); }
.wk-item.moved { outline: 2px dashed var(--acc); outline-offset: -2px; }
.wk-item.gone { opacity: .5; }
.wk-later summary { cursor: pointer; font-weight: 700; color: var(--muted); padding: 6px 2px; }
.wk-later .wk-item + .wk-item, .wk-later .wk-item { margin-top: 6px; }
.wk-toggle { font-size: 13px; color: var(--muted); }
/* 💸 Náklady za AI */
.cost-big { display: flex; flex-direction: column; gap: 2px; }
.cost-big b { font: 800 34px/1 Archivo, system-ui, sans-serif; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.cost-big small { color: var(--muted); }
/* 🗄 Databáze pod dohledem — sloupce čtení za den, čárkovaný strop */
.db-big { margin-bottom: 10px; }
.db-big .bad-t { color: var(--bad); }
.db-big .pill { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.db-big .pill.ok { background: var(--ok-soft, rgba(46,125,50,.12)); color: var(--ok); }
.db-big .pill.warn { background: var(--warn-soft); color: var(--warn); }
.db-big .pill.bad { background: var(--bad-soft); color: var(--bad); }
.db-bars { position: relative; display: flex; gap: 3px; align-items: flex-end; height: 56px; padding: 0 2px 2px; margin: 4px 0 10px; border-bottom: 1px solid var(--line); }
.db-bars i { flex: 1 1 0; min-width: 4px; min-height: 2px; background: var(--ok); border-radius: 3px 3px 0 0; opacity: .9; }
.db-bars i.warn { background: var(--warn); }
.db-bars i.bad { background: var(--bad); }
.db-bars i.part { opacity: .45; }
.db-bars s { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--bad); opacity: .6; pointer-events: none; }
.pick-new .db-lim { flex: 1 1 130px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pick-new .db-lim span { font-size: 12px; color: var(--muted); }
.pick-new .db-lim input { flex: 0 0 auto; width: 100%; box-sizing: border-box; }
.cost-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.cost-bar i { display: block; height: 100%; background: var(--acc); }
.cost-bar.warn i { background: var(--warn); }
.cost-feats { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cost-feats > div { display: grid; grid-template-columns: minmax(0, 1fr) auto 72px; gap: 8px; align-items: baseline; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 14px; background: var(--card); }
.cost-feats > div:last-child { border-bottom: 0; }
.cost-sec { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 10px 12px; }
.cost-sec > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; font-weight: 700; list-style: none; }
.cost-sec > summary::-webkit-details-marker { display: none; }
.cost-sec > summary b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost-sec[open] > summary { margin-bottom: 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.cost-sub > summary { cursor: pointer; color: var(--muted); font-size: 13px; margin: 8px 0; }
.cost-switch { margin-bottom: 4px; }
.cost-sec > summary small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.cost-sub-box { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.cost-feats > div.tap { cursor: pointer; }
.cost-feats > div.tap:hover { background: var(--card-2); }
.cost-feats > div.tap span:first-child::after { content: " ›"; color: var(--muted); }
.cost-feats i { font-style: normal; color: var(--muted); font-size: 12px; white-space: nowrap; }
.cost-feats b { text-align: right; font-variant-numeric: tabular-nums; }
.cost-feats span:first-child { overflow-wrap: anywhere; }
/* obsah okna se nesmí smáčknout (okno samo roluje) */
.sheet-body > * { flex-shrink: 0; }
.ath-ai { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.ath-ai > .btn-ghost { align-self: flex-start; }
.ath-ai-list { display: flex; flex-direction: column; gap: 8px; }
.ath-draft { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--ink); font: inherit; font-size: 14px; line-height: 1.45; white-space: pre-wrap; cursor: pointer; }
.ath-draft:hover { border-color: var(--acc); }
.ath-draft small { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--acc); margin-bottom: 3px; }
.ath-ai-list .help { margin: 0; font-size: 12px; color: var(--muted); }

/* 📅 Kalendář — přiblížení, přidávání, dostupnost (16. 9. 2026) */
:root { --src-note: #7A5AA8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --src-note: #C3A6EE; } }
:root[data-theme="dark"] { --src-note: #C3A6EE; }
.lg-note, .src-note { --c: var(--src-note); }
.cg-ev.src-note { border-style: dashed; }
.cal-zoom { display: flex; gap: 6px; align-items: center; }
.cal-zoom .icon-btn { width: 34px; height: 34px; font-size: 18px; }
.cal-zoom .icon-btn:disabled { opacity: .4; }
/* 🧭 Lišta kalendáře 2 řady + rollup ⋯ (David 28. 9. 2026) — na mobilu pohledy přes celou šířku stejně široké */
.cal-views { display: grid; grid-template-columns: repeat(4, 1fr); }
.cal-views button { min-width: 0; padding-inline: 4px; }
.cal-title small.cal-loading { display: block; font: 600 11px/1.2 system-ui, sans-serif; color: var(--muted); text-transform: none; }
.cal-more-btn { position: relative; }
.cal-more-btn[aria-expanded="true"] { background: var(--acc-soft); border-color: var(--acc); }
.cal-more-btn.dot::after { content: ''; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }
.cal-more { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.cal-more[hidden] { display: none; }
.cal-more-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.cal-more-row .btn-ghost small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.cal-more-l { flex: 0 0 64px; font-size: 12px; font-weight: 700; color: var(--muted); }
.cal-more-hint { font-size: 11.5px; color: var(--muted); }
.cal-more-legend .cal-legend { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.cal-add { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cal-add button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border: 1px solid var(--line); background: var(--card); border-radius: 14px; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; min-width: 0; }
.cal-add button span { font-size: 22px; }
.cal-add button small { font-size: 11px; font-weight: 500; color: var(--muted); text-align: center; }
.cal-add button:hover { border-color: var(--acc); }
.cal-quick { display: flex; gap: 8px; }
.cal-quick input { flex: 1; min-width: 0; }
.cal-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cal-actions { display: flex; flex-direction: column; gap: 8px; }
.av-now { border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.45; border: 1px solid var(--line); }
.av-now.ok { background: var(--src-avail); border-color: var(--ok); }
.av-regular { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.av-regular summary { cursor: pointer; font-weight: 700; }
.av-regular[open] > * + * { margin-top: 10px; }
.seg.wrap { flex-wrap: wrap; }

/* ↕️ tažení a prodloužení, 🚗 cesta, ⚠️ kolize, 🗣 naplánuj den */
.cg-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 9px; cursor: ns-resize; touch-action: none; }
.cg-resize::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 22px; height: 3px; margin-left: -11px; border-radius: 2px; background: currentColor; opacity: 0; transition: opacity .15s; }
.cg-ev:hover .cg-resize::after, .cg-ev.dragging .cg-resize::after { opacity: .45; }
@media (hover: none) { .cg-resize { height: 14px; } .cg-resize::after { opacity: .35; } }
.cg-ev.clash { box-shadow: 0 0 0 2px var(--bad); }
.cg-travel { position: absolute; left: 0; right: 0; border: 1px dashed var(--muted); border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 11px; font-weight: 600; text-align: left; padding: 1px 6px; cursor: pointer; overflow: hidden; z-index: 1; }
.cg-travel:hover { border-color: var(--acc); color: var(--ink); }
.cal-clash, .cal-trip { display: block; width: 100%; text-align: left; border: 1px solid var(--bad); background: color-mix(in srgb, var(--bad) 10%, var(--card)); color: var(--ink); border-radius: 12px; padding: 9px 12px; font: inherit; font-size: 14px; margin: 8px 0; cursor: pointer; }
.cal-trip { border-color: var(--line); background: var(--card); }
.clash-pair { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.clash-pair p { margin: 0 0 8px; line-height: 1.5; }
.clash-pair .row-btns { flex-wrap: wrap; }
.linkbtn { border: 0; background: none; padding: 4px 0; color: var(--acc); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; }
.dp-date { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 10px; font-size: 13px; color: var(--ink); }
.dp-plan { display: flex; flex-direction: column; gap: 10px; }
.dp-sum { margin: 0; font-weight: 600; line-height: 1.5; }
.dp-warn { border: 1px solid var(--bad); background: color-mix(in srgb, var(--bad) 8%, var(--card)); border-radius: 12px; padding: 8px 12px; }
.dp-warn p { margin: 4px 0; font-size: 14px; line-height: 1.45; }
.dp-list { display: flex; flex-direction: column; gap: 6px; }
.dp-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 8px; align-items: start; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: var(--card); }
.dp-row.k-travel { border-style: dashed; }
.dp-row.off { opacity: .45; }
.dp-row input[type="checkbox"] { width: 20px; height: 20px; margin-top: 4px; }
.dp-times { display: flex; align-items: center; gap: 2px; }
.dp-times input { width: 7em; min-width: 0; border: 1px solid var(--line); background: var(--card-2); border-radius: 8px; padding: 4px 4px; font-size: 14px; color: var(--ink); }
.dp-txt b { display: block; font-size: 14px; line-height: 1.35; }
.dp-txt small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; margin-top: 2px; overflow-wrap: anywhere; }
@media (max-width: 420px) { .dp-row { grid-template-columns: auto minmax(0, 1fr); } .dp-times { grid-column: 2; } .dp-txt { grid-column: 1 / -1; } }

/* ❓ Nápověda: ⓘ, průvodce, co ti dnes Pilot pošle, menu ve skupinách (17. 9. 2026) */
.info-i { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 2px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; line-height: 1; vertical-align: middle; cursor: pointer; padding: 0; text-transform: none; letter-spacing: 0; }
.info-i:hover { color: var(--acc); border-color: var(--acc); }
.help-text { margin: 0; font-size: 15px; line-height: 1.55; }
.help-ex { border-left: 3px solid var(--acc); background: var(--card); border-radius: 0 10px 10px 0; padding: 8px 12px; font-size: 14px; line-height: 1.45; }
.help-ex span { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--acc); margin-bottom: 2px; }
.tour-dots { display: flex; gap: 6px; }
.tour-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.tour-dots i.on { background: var(--acc); width: 22px; border-radius: 4px; }
.pushday { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 8px 12px; margin-bottom: 12px; }
.pushday summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: 14px; list-style: none; }
.pushday summary::-webkit-details-marker { display: none; }
.pushday summary .mono { font-weight: 500; color: var(--muted); font-size: 12px; white-space: nowrap; }
.pushday-list { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.pd-row { display: grid; grid-template-columns: 3.2em minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 5px 2px; font-size: 14px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.pd-row time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.pd-row span { overflow-wrap: anywhere; }
.pd-row.done { color: var(--muted); }
.pd-row.done i { color: var(--ok); font-style: normal; font-weight: 700; }
.pd-row i { font-style: normal; }
a.pd-row:hover { background: var(--card-2); }
.pd-now { font-size: 11px; font-weight: 700; color: var(--acc); border-top: 1px dashed var(--acc); padding-top: 3px; margin: 4px 0; text-transform: uppercase; letter-spacing: .05em; }
.menu-h { margin: 6px 0 -2px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.menu-tile small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1.3; }
.ib-subs { align-items: center; }
@media (max-width: 759px) { .cal-meta .mono { flex-basis: 100%; } }
.pushday summary > span:first-child { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.health-bad { border: 1px solid var(--bad); background: color-mix(in srgb, var(--bad) 10%, var(--card)); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; }
.health-bad a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--bad); }
.chip.on .mono, .seg button[aria-pressed="true"] .mono { color: inherit; opacity: .85; }

.ord-items { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.ord-items .mono { margin-left: 6px; }

/* 📍 našeptávač míst */
.place-field { position: relative; }
.place-box { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--card); border-radius: 10px; margin-top: 4px; overflow: hidden; }
.place-opt { text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 14px; padding: 9px 12px; cursor: pointer; overflow-wrap: anywhere; }
.place-opt:last-child { border-bottom: 0; }
.place-opt:hover, .place-opt:focus { background: var(--card-2); }
.place-maps { margin-top: 4px; font-size: 13px; }

/* ═══ 💰 Peníze (money.js) — jen přehled z Financí ═══ */
.view-money { gap: 14px; }
.mn-grid { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
.mn-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.mn-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 700; margin-bottom: 8px; flex-wrap: wrap; }
.mn-h a { font-size: 13px; font-weight: 600; color: var(--acc); text-decoration: none; white-space: nowrap; }
.mn-big { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mn-big small, .mn-row small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.mn-big b { font-size: 17px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mn-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin-top: 10px; }
.mn-side > div { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; background: var(--ground); font-size: 13px; font-variant-numeric: tabular-nums; }
.mn-line, .mn-sub { margin: 4px 0; font-size: 14px; overflow-wrap: anywhere; }
.mn-sub { color: var(--muted); font-size: 13px; }
.mn-list { display: flex; flex-direction: column; margin-top: 6px; }
.mn-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 6px; margin: 0 -6px; border-radius: 8px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); }
.mn-row:first-child { border-top: 0; }
.mn-row:hover { background: var(--ground); }
.mn-row > span { min-width: 0; overflow-wrap: anywhere; }
.mn-row > b { flex: none; font-variant-numeric: tabular-nums; }
.view-money .pos { color: var(--ok, #1F7A3A); }
.view-money .neg { color: var(--bad, #B3261E); }
@media (max-width: 360px) { .mn-big { grid-template-columns: 1fr 1fr; } .mn-big b { font-size: 15px; } }
@media (min-width: 1024px) { .mn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mn-month { grid-column: 1 / -1; } }
@media (min-width: 1400px) { .mn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mn-row-act { padding: 0; align-items: stretch; gap: 6px; }
.mn-row-act:hover { background: none; }
.mn-row-main { flex: 1; min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.mn-row-main:hover { background: var(--ground); }
.mn-row-main > span { min-width: 0; overflow-wrap: anywhere; }
.mn-row-main > b { flex: none; font-variant-numeric: tabular-nums; }
.mn-remind { flex: none; align-self: center; padding: 6px 10px; font-size: 13px; white-space: nowrap; }
.mn-done { flex: none; align-self: center; color: var(--ok); font-weight: 700; padding: 0 8px; }
@media (max-width: 480px) { .mn-remind span { display: none; } }
.mn-hint { display: block; margin-top: 2px; font-size: 12px; color: var(--warn, #9A6B1F); }
.mn-hint.sure { color: var(--ok); font-weight: 600; }
.mn-bud { padding: 8px 0; border-top: 1px solid var(--line); }
.mn-bud:first-child { border-top: 0; }
.mn-bud-h { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.mn-bud-h b { font-variant-numeric: tabular-nums; font-weight: 600; }
.mn-bud small { color: var(--muted); font-size: 12px; }
.mn-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 5px 0 3px; }
.mn-bar i { display: block; height: 100%; background: var(--ok); }
.mn-bud.warn .mn-bar i { background: var(--warn, #C98A1E); }
.mn-bud.over .mn-bar i { background: var(--bad); }
.mn-bud.over small { color: var(--bad); font-weight: 600; }
.mn-choices { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 12px; }
.mn-choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.mn-choice:has(input:checked) { border-color: var(--acc); background: var(--ground); }
.mn-choice input { margin-top: 3px; flex: none; }
.mn-choice span { min-width: 0; overflow-wrap: anywhere; }
.mn-choice small { display: block; color: var(--muted); font-size: 12px; }
.mn-row-act { flex-wrap: wrap; }
.mn-row-act .mn-row-main { flex: 1 1 220px; }
.mn-acts { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex: 0 0 auto; margin-left: auto; padding-bottom: 6px; }
.mn-copy { display: flex; flex-direction: column; margin: 6px 0 12px; }
.mn-copy-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.mn-copy-row:first-child { border-top: 0; }
.mn-copy-row > span, .mn-copy-row > label { min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; }
.mn-copy-row small { color: var(--muted); font-size: 12px; }
.mn-bud-in { width: 110px; flex: none; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; text-align: right; font-variant-numeric: tabular-nums; }
.mn-todo { margin-bottom: 12px; }
.mn-todo .mn-act-confirm b:first-child, .mn-todo .mn-act-vat b:first-child { color: var(--ink); }
.mn-act .mn-row-main { cursor: default; }
.mn-act .mn-row-main:hover { background: none; }
.mn-ok { margin: 4px 0; font-size: 15px; font-weight: 600; color: var(--ok); }
.mn-more { margin-top: 4px; }
.mn-more > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-weight: 700; }
.mn-more > summary::-webkit-details-marker { display: none; }
.mn-more > summary::after { content: '▾'; margin-left: auto; color: var(--muted); }
.mn-more[open] > summary::after { content: '▴'; }
.mn-more > summary small { color: var(--muted); font-weight: 400; font-size: 12px; }
.mn-more[open] > summary { margin-bottom: 12px; }

/* ── 🌅☀️🌙 Denní rytmus (rhythm.js): ranní brief · zítřek při uzavření dne · zavřený den ── */
.rt-brief { border: 1px solid var(--acc); background: var(--card); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.rt-head { display: flex; flex-direction: column; gap: 2px; }
.rt-head h3 { font-size: 22px; }
.rt-sum { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.rt-main { background: var(--acc-soft); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.rt-main.set { background: var(--acc); color: var(--on-acc); }
.rt-main.set .mono, .rt-main.set small { color: inherit; opacity: .85; }
.rt-main.set .btn-ghost { border-color: color-mix(in srgb, var(--on-acc) 45%, transparent); color: var(--on-acc); }
.rt-main > b { font: 800 18px/1.25 Archivo, system-ui, sans-serif; font-stretch: 112%; overflow-wrap: anywhere; }
.rt-main small { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.rt-main .rt-alt { margin-top: 4px; }
.rt-main .row-btns { margin-top: 6px; }
.rt-tops ol { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.rt-tops li b { font-weight: 600; overflow-wrap: anywhere; }
.rt-tops li small { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.rt-dayline, .rt-free, .rt-calm { margin: 0; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.rt-dayline b, .rt-free b { color: var(--ink); }
.rt-wait { display: flex; flex-direction: column; gap: 6px; }
.rt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rt-chip { background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; font-size: 13px; color: var(--muted); }
.rt-chip b { color: var(--ink); }
.btn-primary.wide { width: 100%; }

.rt-tomorrow { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.rt-tl { display: flex; flex-direction: column; }
.rt-tl > div { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; padding: 4px 0; font-size: 13.5px; border-top: 1px dashed var(--line); }
.rt-tl > div:first-child { border-top: 0; }
.rt-tl time { font: 500 12px/1.7 "IBM Plex Mono", ui-monospace, monospace; color: var(--muted); }
.rt-tl span { overflow-wrap: anywhere; }
.rt-more { color: var(--muted); }

.rt-closed { background: color-mix(in srgb, var(--personal-soft) 60%, transparent); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.rt-closed > b { font: 800 18px/1.2 Archivo, system-ui, sans-serif; font-stretch: 112%; }
.rt-closed span { color: var(--muted); overflow-wrap: anywhere; }
.rt-closed span b { color: var(--ink); }
.close-end { margin-top: 12px; }
.rt-main .row-btns > * { flex: 1 1 110px; }

/* ── 🏃 Svěřenci za měsíc (income.js): mělo přijít / přišlo ── */
.inc-card { background: var(--card); border: 1px solid var(--acc); border-radius: 16px; padding: 14px; margin-bottom: 14px; min-width: 0; }
.inc-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; }
.inc-nav { display: flex; gap: 6px; flex: none; }
.inc-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; width: 100%; background: transparent; border: 0; padding: 8px 0 0; text-align: left; }
.inc-total { font: 800 clamp(30px, 8vw, 44px)/1.05 Archivo, system-ui, sans-serif; font-stretch: 112%; font-variant-numeric: tabular-nums; color: var(--ink); }
.inc-paid { font-size: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.inc-paid b { color: var(--ok); font-weight: 700; }
.inc-meter { flex: 1 1 100%; height: 8px; border-radius: 4px; background: var(--card-2); border: 1px solid var(--line); overflow: hidden; margin-top: 6px; }
.inc-meter i { display: block; height: 100%; background: var(--ok); border-radius: 4px; }
.inc-sub { flex: 1 1 100%; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.inc-sub b { color: var(--ink); }
.inc-go { flex: 1 1 100%; font-size: 13px; font-weight: 700; color: var(--acc); margin-top: 2px; }
.inc-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; }
.inc-list { display: flex; flex-direction: column; margin-bottom: 12px; }
.inc-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.inc-row:first-child { border-top: 0; }
.inc-ico { flex: none; width: 22px; text-align: center; }
.inc-who { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.inc-who small { display: block; color: var(--muted); font-size: 12.5px; }
.inc-who .late { color: var(--bad); font-weight: 600; }
.inc-amt { flex: none; font-variant-numeric: tabular-nums; }
.inc-row.paid .inc-amt { color: var(--ok); }
.inc-row.planned { opacity: .8; }
.inc-tools { margin: 4px 0 8px; }
.inc-warn { color: var(--warn); }
.inc-row.gone { flex-wrap: wrap; }
.inc-acts { display: flex; gap: 6px; flex: none; flex-wrap: wrap; }
/* proužek: světle vyfakturováno, zeleně zaplaceno, ryska = cíl */
.inc-meter { position: relative; }
.inc-meter u, .inc-meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; text-decoration: none; }
.inc-meter u { background: color-mix(in srgb, var(--ok) 28%, transparent); }
.inc-meter em { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); border-radius: 1px; }
.inc-meter { overflow: visible; }
.inc-goal { flex: 1 1 100%; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.inc-goal b { color: var(--ink); }
.inc-goal .inc-hit { color: var(--ok); }
.inc-setgoal { margin-top: 4px; }
.inc-moves { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.inc-moves b { color: var(--ink); }
/* 📈 12 měsíců */
.inc-chart-wrap { margin-bottom: 14px; }
.inc-legend { display: flex; gap: 4px 14px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; margin: 0 0 8px; }
.inc-legend span { display: inline-flex; align-items: center; gap: 5px; }
.inc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.inc-legend i.p { background: var(--ok); }
.inc-legend i.w { background: color-mix(in srgb, var(--ok) 28%, transparent); }
.inc-legend i.g { height: 0; width: 12px; border-top: 2px dashed var(--muted); border-radius: 0; }
.inc-chart { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; height: 140px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.inc-goalline { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed var(--muted); opacity: .7; pointer-events: none; }
.inc-bar { position: relative; background: transparent; border: 0; padding: 0; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; border-radius: 6px; }
.inc-bar:hover, .inc-bar.on { background: var(--card-2); }
.inc-col { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; width: 62%; max-width: 26px; margin: 0 auto; min-height: 0; }
.inc-col u, .inc-col i { display: block; width: 100%; min-height: 2px; text-decoration: none; }
.inc-col u { background: color-mix(in srgb, var(--ok) 28%, transparent); border-radius: 4px 4px 0 0; }
.inc-col i { background: var(--ok); }
.inc-col i:first-child { border-radius: 4px 4px 0 0; }
.inc-bar small { position: absolute; left: 0; right: 0; bottom: -17px; text-align: center; font: 500 11px/1 "IBM Plex Mono", ui-monospace, monospace; color: var(--muted); }
.inc-bar.on small { color: var(--ink); font-weight: 700; }
.inc-chart-note { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.inc-chart-note b { color: var(--ink); }

/* ── Krok B: jednoduchá úvodka — souhrn „Čeká na tebe" a jedno červené číslo ── */
.ws-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ws-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ws-hot { font: 800 18px/1.2 Archivo, system-ui, sans-serif; font-stretch: 112%; color: var(--bad); }
.ws-calm { font: 800 18px/1.2 Archivo, system-ui, sans-serif; font-stretch: 112%; color: var(--ok); }
.ws-rest { font-size: 13px; color: var(--muted); }
.ws-zero { margin: 0; color: var(--muted); }
.ws-list { display: flex; flex-direction: column; }
.ws-row { display: flex; align-items: flex-start; gap: 10px; width: 100%; background: transparent; border: 0; border-top: 1px solid var(--line); padding: 9px 0; text-align: left; min-width: 0; }
.ws-row:first-child { border-top: 0; }
.ws-row .st-text { min-width: 0; overflow-wrap: anywhere; }
.ws-row .st-text small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ws-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-chip { background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; color: var(--muted); }
.ws-chip b { color: var(--ink); }
.tab-badge.calm { background: var(--card-2); color: var(--muted); border: 1px solid var(--line); }
@media (min-width: 1024px) { .tabs .tab-second { margin-top: 14px; } }
.ws-row .st-text small { white-space: normal; }
.zone-wait .ws-card { border: 0; padding: 0; background: transparent; }

/* ── Krok C: 📝 komu psát plán · 🗓 téma dne ── */
.pw-card { background: var(--card); border: 1px solid var(--acc); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.pw-meter { display: block; height: 8px; border-radius: 4px; background: var(--card-2); border: 1px solid var(--line); overflow: hidden; }
.pw-meter i { display: block; height: 100%; background: var(--ok); border-radius: 4px; }
.pw-sub { margin: 8px 0 4px; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.pw-sub b { color: var(--ink); }
.pw-list { display: flex; flex-direction: column; }
.pw-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; }
.pw-row:first-child { border-top: 0; }
.pw-ico { flex: none; width: 22px; text-align: center; }
.pw-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.pw-text small { display: block; color: var(--muted); font-size: 12.5px; }
.pw-row.late .pw-text small { color: var(--bad); font-weight: 600; }
.pw-go { flex: none; font-size: 13px; font-weight: 700; color: var(--acc); }
.rt-theme { margin: 0; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.rt-plans { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; text-align: left; font-size: 13.5px; color: var(--muted); width: 100%; overflow-wrap: anywhere; }
.rt-plans b { color: var(--ink); }

/* ── 📧 Mail ve Vyřídit: čtení a odpověď ── */
.ml-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.ml-head b { font-size: 16px; overflow-wrap: anywhere; }
.ml-head small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.ml-body { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.5; max-height: 42vh; overflow-y: auto; margin-bottom: 12px; }
.ml-tools { margin-top: 10px; }
.st-head-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
/* ✨ tři návrhy odpovědi */
.ml-ai { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ml-sum { margin: 0; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.ml-opts { display: flex; flex-direction: column; gap: 6px; }
.ml-opt { display: flex; flex-direction: column; gap: 2px; text-align: left; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.ml-opt:hover { border-color: var(--acc); }
.ml-opt.on { border-color: var(--acc); background: var(--acc-soft); }
.ml-opt b { font-size: 14px; }
.ml-opt small { color: var(--muted); font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; white-space: normal; }
.ml-hint { margin-top: 2px; }
/* ✍️ podpis v mailech — náhled je vždy na bílé (tak ho uvidí příjemce) */
.sg-prev { background: #fff; color: #1a1a1a; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 6px 0 12px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.sg-logos { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.sg-logos img { width: auto; max-width: 100%; }
.sg-check { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14.5px; }
.field .sg-check { display: flex; justify-content: flex-start; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font: 500 14.5px/1.4 "Instrument Sans", system-ui, sans-serif; color: var(--ink); }
.field .sg-check input { width: 18px; height: 18px; flex: none; margin: 0; }

/* ── 📥 Vyřídit po skupinách (19. 9. 2026): filtr, nadpisy, barva skupiny, 🔥 ── */
.st-chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 2px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.st-chips::-webkit-scrollbar { display: none; }
.st-chip { flex: none; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.st-chip b { color: var(--ink); font-variant-numeric: tabular-nums; }
.st-chip.on { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.st-chip.on b { color: var(--on-acc); }
.st-chip.hot { border-color: var(--bad); color: var(--bad); }
.st-chip.hot b { color: var(--bad); }
.st-chip.hot.on { background: var(--bad); color: var(--on-bad); }
.st-chip.hot.on b { color: var(--on-bad); }
.st-group { margin-bottom: 18px; --g: var(--muted); }
.st-gh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 0 4px 6px; border-bottom: 2px solid var(--g); margin-bottom: 8px; }
.st-gt { font: 800 16px/1.2 Archivo, system-ui, sans-serif; font-stretch: 112%; display: inline-flex; align-items: center; gap: 8px; }
.st-gi { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--g) 18%, var(--card)); font-size: 15px; }
.st-gh small { color: var(--muted); font-size: 12.5px; }
.st-ico[class*="g-"] { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; background: color-mix(in srgb, var(--g, var(--muted)) 16%, var(--card)); }
.st-row.hot { box-shadow: inset 3px 0 0 var(--bad); }
.st-fire { font-style: normal; margin-right: 4px; }
/* barvy skupin — jedna sytá barva na skupinu, v obou tématech čitelná jako linka a jemný podklad ikony */
.g-sv { --g: #1F8A4C; } .g-ml { --g: #2F6FD0; } .g-rz { --g: #C2410C; } .g-ob { --g: #7C3AED; } .g-pn { --g: #B7791F; }
.g-sc { --g: #B42318; } .g-ku { --g: #0E8F9C; } .g-ro { --g: #BE185D; } .g-ut { --g: #A93226; } .g-in { --g: #64748B; } .g-ce { --g: #8B5E34; }
/* na širokém monitoru skupiny ve dvou sloupcích (míň rolování); jedna vyfiltrovaná skupina zůstává v jednom */
@media (min-width: 1200px) { .st-groups:not(.one) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; align-items: start; } }
.st-row .st-text small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }

/* ── 🚦 Semafor úkolů (19. 9. 2026): 🔴 nezačato · 🟠 v řešení · 🟢 hotovo ── */
.task.st-todo .task-check span { border-color: var(--bad); }
.task.st-doing .task-check span { border-color: var(--warn); background: linear-gradient(90deg, var(--warn) 50%, transparent 50%); }
.task.done .task-check span { border-color: var(--ok); background: var(--ok); color: var(--on-acc); }
.task-prog { flex: none; align-self: center; display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-2); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.task-prog i { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); flex: none; }
.task.st-doing .task-prog { border-color: var(--warn); color: var(--warn); background: var(--warn-soft); }
.task.st-doing .task-prog i { background: var(--warn); }
@media (max-width: 480px) { .task-prog span { display: none; } .task-prog { padding: 9px; margin-right: 4px; } }
.tasks-mode { margin: 0 0 14px; max-width: 360px; }
.st-col.todo > .sec-h { border-bottom: 2px solid var(--bad); padding-bottom: 6px; }
.st-col.doing > .sec-h { border-bottom: 2px solid var(--warn); padding-bottom: 6px; }
.st-col.done > .sec-h { border-bottom: 2px solid var(--ok); padding-bottom: 6px; }
@media (min-width: 1024px) { #tasks-groups.by-status { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ml-copy { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 14px; flex-wrap: wrap; }
.ml-copy input { width: 18px; height: 18px; flex: none; margin: 0; }
.ml-copy small { color: var(--muted); font-size: 12.5px; }

/* ── ☑ Kroky (pod-úkoly) a 📋 šablony úkolů ── */
.sb-chip { font-variant-numeric: tabular-nums; font-weight: 600; }
.sb-chip.all { color: var(--ok); }
.sb-box { gap: 8px; }
.sb-meter { display: block; height: 6px; border-radius: 3px; background: var(--card-2); border: 1px solid var(--line); overflow: hidden; }
.sb-meter i { display: block; height: 100%; background: var(--ok); }
.sb-list { display: flex; flex-direction: column; gap: 4px; }
.sb-row { display: flex; align-items: center; gap: 6px; }
.sb-check { width: 34px; height: 34px; flex: none; border: 0; background: transparent; display: grid; place-items: center; padding: 0; }
.sb-check span { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--muted); display: grid; place-items: center; font-size: 12px; color: transparent; }
.sb-row.done .sb-check span { background: var(--ok); border-color: var(--ok); color: var(--on-acc); }
.sb-text { flex: 1 1 auto; min-width: 0; border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 7px 8px; font-size: 14.5px; }
.sb-text:focus { border-color: var(--line); background: var(--card); }
.sb-row.done .sb-text { text-decoration: line-through; color: var(--muted); }
.sb-add { display: flex; gap: 6px; }
.sb-add input { flex: 1 1 auto; min-width: 0; }
.tasks-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.tasks-bar .tasks-mode { margin: 0; }
.tp-pick { flex: 1 1 auto; min-width: 0; text-align: left; background: transparent; border: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.tp-pick small { color: var(--muted); font-size: 12.5px; }
.tp-preview { display: flex; flex-direction: column; margin: 6px 0 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.tp-row { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 14px; }
.tp-row:first-child { border-top: 0; }
.tp-row time { font: 500 12px/1.6 "IBM Plex Mono", ui-monospace, monospace; color: var(--muted); }
.tp-row span { overflow-wrap: anywhere; }
.tp-row small { display: block; color: var(--muted); font-size: 12.5px; }
.tp-head { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; }
.tp-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 8px; background: var(--card); }
.tp-item-top { display: flex; gap: 6px; align-items: center; }
.tp-item-top input { flex: 1 1 auto; min-width: 0; }
.tp-item-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.tp-item-row label { display: flex; align-items: center; gap: 6px; }
.tp-item-row input { width: 72px; }
.tp-item textarea { width: 100%; }

/* ── 🔗 Propojení úkolu (svěřenec · mail · faktura · poznámka) ── */
.lk-chip { display: inline-flex; align-items: center; gap: 3px; background: var(--acc-soft); color: var(--acc); border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 600; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-box { gap: 8px; }
.lk-list { display: flex; flex-wrap: wrap; gap: 6px; }
.lk-item { display: inline-flex; align-items: center; gap: 2px; background: var(--acc-soft); border-radius: 999px; padding-right: 2px; max-width: 100%; }
.lk-open { border: 0; background: transparent; color: var(--acc); font-weight: 600; font-size: 13.5px; padding: 7px 6px 7px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.lk-item .icon-btn { border: 0; background: transparent; width: 28px; height: 28px; font-size: 12px; }
.lk-back { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.lk-task { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 14px; min-width: 0; }
.lk-task span:nth-child(2) { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.lk-task small { color: var(--muted); font-size: 12px; flex: none; }
.lk-task.done span:nth-child(2) { text-decoration: line-through; color: var(--muted); }

/* ── 🅰️🅱️🅲 Priority a týdenní rozpočet času (budget.js) ── */
.bg-prio { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; font: 800 11px/1 Archivo, system-ui, sans-serif; color: #fff; flex: none; }
.bg-prio.pA { background: #1F8A4C; } .bg-prio.pB { background: #B7791F; } .bg-prio.pC { background: #64748B; }
.bg-card { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 10px; min-width: 0; }
.bg-line { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.bg-meter { position: relative; height: 8px; border-radius: 4px; background: var(--card-2); border: 1px solid var(--line); overflow: hidden; }
.bg-meter u, .bg-meter i { position: absolute; left: 0; top: 0; bottom: 0; text-decoration: none; }
.bg-line.pA { --c: #1F8A4C; } .bg-line.pB { --c: #B7791F; } .bg-line.pC { --c: #64748B; }
.bg-meter u { background: color-mix(in srgb, var(--c) 30%, transparent); }
.bg-meter i { background: var(--c); }
.bg-num { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bg-num small { font-weight: 400; color: var(--muted); }
.bg-hint { font-size: 12.5px; color: var(--warn); overflow-wrap: anywhere; }
.bg-bars { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
.bg-hints p { margin: 0 0 6px; font-size: 14px; overflow-wrap: anywhere; }
.bg-area { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.bg-area-n { min-width: 0; overflow-wrap: anywhere; }
.bg-area-n small { color: var(--warn); font-size: 12px; margin-left: 4px; }
.bg-running { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--acc-soft); border-radius: 12px; padding: 8px 10px 8px 12px; margin-top: 10px; font-size: 14px; }
.bg-running span { min-width: 0; overflow-wrap: anywhere; }
.bg-timer { white-space: nowrap; }
.main-card .bg-timer.btn-ghost { border-color: color-mix(in srgb, var(--on-acc) 45%, transparent); color: var(--on-acc); }
.bg-form-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 8px; }
.bg-edit-area { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin: 8px 0; display: flex; flex-direction: column; gap: 8px; background: var(--card); }
.bg-edit-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.bg-edit-row label { display: flex; align-items: center; gap: 6px; }
.bg-edit-row select, .bg-edit-row input { width: 84px; border: 1px solid var(--line); background: var(--card-2); border-radius: 8px; padding: 6px 8px; }
.bg-edit-area > input { border: 1px solid var(--line); background: var(--card-2); border-radius: 8px; padding: 8px 10px; width: 100%; font-size: 13.5px; }
@media (max-width: 420px) { .bg-form-top { grid-template-columns: 1fr 1fr; } }
/* plovoucí ukazatel časovače z adminu: v Pilotovi nad spodním zápisem a lištou, vlevo (vpravo je ✨) */
#tb-chip { right: auto !important; left: 16px; bottom: calc(var(--cap-h, 92px) + 58px + 14px + env(safe-area-inset-bottom, 0px)) !important; }
@media (min-width: 1024px) { #tb-chip { left: 248px; bottom: calc(var(--cap-h, 92px) + 14px) !important; } }
/* ⭐ uložené pohledy + ✨ úkoly z poznámky */
.tv-bar { margin-bottom: 10px; }
.tv-bar .tv-add, .tv-bar .tv-edit { border-style: dashed; color: var(--muted); }
.ex-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); margin-bottom: 12px; }
.ex-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-top: 1px solid var(--line); }
.ex-row:first-child { border-top: 0; }
.ex-row input { width: 18px; height: 18px; flex: none; margin: 3px 0 0; }
.ex-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.ex-text small { color: var(--muted); font-size: 12.5px; }
.ex-steps { font-style: italic; }

/* 🏃 Kdy běhám (runtime.js) — čas vlastních tréninků */
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.rt-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0; }
.rt-form input[type="time"] { width: 100%; box-sizing: border-box; }
.rt-list { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 14px; }
.rt-row { display: grid; grid-template-columns: 74px 96px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.rt-row time { font-size: 12px; color: var(--muted); }
.rt-row input[type="time"] { width: 100%; box-sizing: border-box; min-width: 0; font-variant-numeric: tabular-nums; padding: 7px 6px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); border-radius: 10px; font-size: 16px; color-scheme: light dark; }
.rt-row span { min-width: 0; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.rt-row small { display: block; font-size: 12px; color: var(--muted); }
@media (max-width: 360px) { .rt-row { grid-template-columns: 96px minmax(0, 1fr) auto; } .rt-row time { grid-column: 1 / -1; } }

/* 🗓 Ideální týden (idealweek.js) */
.iw-sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.iw-pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); font-variant-numeric: tabular-nums; }
.iw-day { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.iw-day-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink); }
.iw-block { display: grid; grid-template-columns: 22px 92px minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; text-align: left; padding: 9px 10px; border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.iw-block time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.iw-block span { min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.iw-block i { font-style: normal; font-weight: 800; font-size: 12px; color: var(--muted); }
.iw-block.p-A, .iw-pill.p-A { border-left-color: #1F9D6B; } .iw-block.p-B, .iw-pill.p-B { border-left-color: #D9912B; } .iw-block.p-C, .iw-pill.p-C { border-left-color: #4C7FD0; }
.iw-pill.p-A, .iw-pill.p-B, .iw-pill.p-C { border-left-width: 4px; }
.iw-times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 1024px) { .iw-block { grid-template-columns: 22px 104px minmax(0, 1fr) auto; } }
.iw-block .iw-grip { touch-action: none; cursor: grab; color: var(--muted); font-size: 16px; line-height: 1; padding: 8px 2px; margin: -8px 0; text-align: center; user-select: none; -webkit-user-select: none; }
.iw-block.dragging { opacity: .35; }
.iw-ghost { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); opacity: .95; will-change: transform; }
.iw-day.drop { background: color-mix(in srgb, var(--accent, #1F9D6B) 12%, transparent); border-radius: 12px; outline: 2px dashed var(--accent, #1F9D6B); outline-offset: 2px; }
html.iw-dragging, html.iw-dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.iw-gcal { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card-2); display: flex; flex-direction: column; gap: 6px; }
.iw-gcal .hint { margin: 0; }

/* ═══ 📅 KALENDÁŘ 2.0 — čitelnost (19. 9. 2026, David: „vůbec se v tom nevyznám") ═══════════════════════════════
   Tři vrstvy místo jedné: ① pozadí = pásy ideálního týdne (jemný tón + popisek, šířku událostem NEBEROU),
   ② události = plná karta s barevnou lištou, čitelný název 13px, ③ „teď" = červená linka. Barva nese VÝZNAM
   (běh růžová, cesta jantarová, trénink s klientem zelená, úkol modrá), volno je jen obrys. */
:root { --k-run: #C2416B; --k-travel: #B7791F; --cg-grid: color-mix(in srgb, var(--line) 55%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --k-run: #F28BAE; --k-travel: #E8B75A; } }
:root[data-theme="dark"] { --k-run: #F28BAE; --k-travel: #E8B75A; }
.cg-ev.k-run, .lg-run { --c: var(--k-run) !important; } .cg-ev.k-travel, .lg-travel { --c: var(--k-travel) !important; }
.cal-legend .lg-band { background: color-mix(in srgb, var(--acc) 22%, transparent); border: 0; }

/* hlavička dne: malý den v týdnu, velké číslo (Google / Apple) */
.cg-dayname { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px 8px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cg-dayname b { font-size: 18px; font-weight: 700; letter-spacing: 0; line-height: 1; color: var(--ink); min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-variant-numeric: tabular-nums; }
.cg-dayname.today { color: var(--acc); } .cg-dayname.today b { background: var(--acc); color: var(--on-acc); padding: 0; }
.cg-dayname.weekend b { color: var(--muted); } .cg-dayname.today.weekend b { color: var(--on-acc); }
.cg-warn { font-style: normal; font-size: 10px; }

/* mřížka: tichá. Hodinová linka sotva vidět, víkend a minulé dny lehce ztlumené */
.cg-col { border-left: 1px solid var(--cg-grid); background-image: repeating-linear-gradient(to bottom, var(--cg-grid) 0 1px, transparent 1px var(--hour, 52px)); }
.cg-col.weekend { background-color: color-mix(in srgb, var(--muted) 5%, transparent); }
.cg-col.today { background-color: color-mix(in srgb, var(--acc) 6%, transparent); }
.cg-col.pastday .cg-ev, .cg-col.pastday .cg-band { opacity: .5; }
.cg-hours span { font-family: inherit; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.cg-hours span i { font-style: normal; font-weight: 400; font-size: 10px; opacity: .6; }

/* ① pásy ideálního týdne — pozadí přes celou šířku dne */
.cg-band { position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; --c: var(--muted); background: color-mix(in srgb, var(--c) 9%, transparent); border-top: 2px solid color-mix(in srgb, var(--c) 55%, transparent); overflow: hidden; }
.cg-band span { position: absolute; right: 6px; bottom: 3px; max-width: calc(100% - 12px); font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 70%, var(--ink)); opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-bands { flex: 0 0 auto !important; width: auto !important; padding: 4px 10px; font-size: 12px; } .cal-bands:not(.on) { opacity: .55; }

/* ② události */
.cg-ev { border-left-width: 4px; border-radius: 8px; padding: 4px 7px; gap: 2px; background: color-mix(in srgb, var(--c) 20%, var(--card)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 28%, transparent) inset, 0 0 0 1.5px var(--card); }
.cg-ev b { font-size: 12.5px; font-weight: 650; line-height: 1.22; color: color-mix(in srgb, var(--c) 35%, var(--ink)); }
.cg-ev small { font-size: 11px; font-weight: 500; color: color-mix(in srgb, var(--c) 30%, var(--muted)); font-variant-numeric: tabular-nums; }
.cg-ev.mid b { -webkit-line-clamp: 1; }
.cg-ev.short { padding: 0 7px; } .cg-ev.short b { font-size: 12px; }
.cg-ev.free { background: color-mix(in srgb, var(--card) 80%, transparent); border: 1px dashed color-mix(in srgb, var(--c) 60%, transparent); border-left: 4px solid color-mix(in srgb, var(--c) 60%, transparent); box-shadow: none; }
.cg-ev.free b { font-weight: 550; }
.cg-ev.src-task { background: var(--card); box-shadow: 0 0 0 1.5px var(--c) inset; border-left-width: 4px; }
.cg-ev.past, .cg-ev.done { opacity: .5; } .cg-ev.done b { text-decoration: line-through; }
.cg-ev.clash { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 28%, transparent) inset, 0 0 0 2px var(--bad); }
.cg-ev:hover { z-index: 6; filter: brightness(1.04); box-shadow: var(--shadow), 0 0 0 1px var(--c) inset; }
.cg-travel { z-index: 2; }
/* kolize: místo červeného pruhu přes celou šířku jen malý štítek */
.cg .cal-clash { display: inline-flex; width: auto; align-self: flex-start; padding: 4px 12px; font-size: 12.5px; border-radius: 999px; }
@media (min-width: 1024px) {
  .cg-ev b { font-size: 13px; } .cg-ev small { font-size: 11.5px; }
  .cg-head, .cg-allday, .cg-body { grid-template-columns: 52px repeat(var(--days), minmax(0, 1fr)); }
}
@media (max-width: 640px) { .cg-dayname b { font-size: 15px; min-width: 26px; height: 26px; } .cg-band span { font-size: 9.5px; } .cg-ev { padding: 3px 5px; } }
.rt-row { grid-template-columns: 74px 96px minmax(0, 1fr) auto; }
.rt-move { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.rt-move input[type="date"] { flex: 1 1 auto; min-width: 0; max-width: 190px; box-sizing: border-box; padding: 6px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); border-radius: 10px; font-size: 16px; color-scheme: light dark; }
.cg-band.lunch { --c: var(--muted); background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--muted) 10%, transparent) 0 6px, transparent 6px 12px); border-top: 1px dashed color-mix(in srgb, var(--muted) 50%, transparent); z-index: 1; }
.cg-band.lunch span { left: 6px; right: auto; bottom: auto; top: 3px; text-transform: none; letter-spacing: 0; }

/* ☀️ Teď a pak · 🧩 padlé bloky (idealweek.js) */
.nn-card { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--line); border-left: 5px solid var(--muted); border-radius: 14px; background: var(--card); }
.nn-card.p-A { border-left-color: #1F9D6B; } .nn-card.p-B { border-left-color: #D9912B; } .nn-card.p-C { border-left-color: #4C7FD0; }
.nn-now { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nn-now b { font-size: 17px; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; } .nn-now small { font-size: 13px; color: var(--muted); }
.nn-next { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink); }
.nn-next span { min-width: 0; overflow-wrap: anywhere; } .nn-next b { font-variant-numeric: tabular-nums; }
.lost-card { margin-top: 10px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 14px; background: var(--card-2); display: flex; flex-direction: column; gap: 4px; }
.lost-card p { margin: 0; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.lost-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 6px; background: var(--card); }
.lost-row.off { opacity: .55; } .lost-row b { display: block; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; } .lost-row small { font-size: 12.5px; color: var(--muted); } .lost-row em { font-style: normal; font-weight: 700; color: var(--ink); } .lost-row i { font-style: normal; font-weight: 800; color: var(--muted); }

/* 📆 Rezervace (booking.js) */
.bk-svc { display: flex; align-items: stretch; gap: 8px; margin-bottom: 8px; }
.bk-svc-main { flex: 1 1 auto; min-width: 0; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.bk-svc-main b { font-size: 14.5px; overflow-wrap: anywhere; } .bk-svc-main small { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; } .bk-svc-main .bk-next { color: var(--ok, #1F9D6B); font-weight: 600; }
.bk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; color: var(--ink); font-size: 14px; }
.bk-row input[type="time"], .bk-row input[type="date"] { flex: 1 1 110px; min-width: 0; max-width: 170px; box-sizing: border-box; padding: 8px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); border-radius: 10px; font-size: 16px; color-scheme: light dark; }
.bk-abs { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 8px 0; }
.bk-grid input, .bk-grid select { width: 100%; box-sizing: border-box; }
.bk-days { display: flex; flex-wrap: wrap; gap: 4px 12px; }

/* 📞 Měsíční cally (calls.js) */
.calls-card { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; margin-bottom: 10px; padding: 12px 14px; border: 1px solid var(--line); border-left: 5px solid #1F9D6B; border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.calls-card b { font-size: 15px; } .calls-card small { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.cl-prev { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); color: var(--ink); font: inherit; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bk-win { flex: 1 1 auto; min-width: 0; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 1px; }
.bk-win b { font-size: 14px; font-variant-numeric: tabular-nums; } .bk-win small { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }

/* ☰ Menu 2.0 — skupiny podle toho, co chceš udělat; kompaktní řádky; hledání (pilot.js MENU) */
.mn-search { margin-bottom: 4px; } .mn-search input { width: 100%; box-sizing: border-box; }
.menu-h { margin: 14px 0 6px; }
.mn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.mn-row { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 52px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.mn-row:hover, .mn-row:focus-visible { border-color: var(--acc); }
.mn-i { flex: none; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; border-radius: 9px; background: var(--card-2); }
.mn-t { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mn-t b { font-size: 14px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.mn-t { flex: 1 1 auto; }
.mn-t small { font-size: 12px; color: var(--muted); line-height: 1.25; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1024px) { .mn-t small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } }
@media (max-width: 359px) { .mn-grid { grid-template-columns: 1fr; } .mn-row { min-height: 46px; } }

/* 🖥 Okno na počítači: z boku · uprostřed · celá obrazovka (pilot.js applySheetMode). Na mobilu se přepínač neukazuje. */
.sheet-modes { display: none; }
@media (min-width: 1024px) {
  .sheet-modes { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); }
  .sheet-mode { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 26px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
  .sheet-mode:hover { color: var(--ink); } .sheet-mode.on { background: var(--acc); color: var(--on-acc); }
  .sheet.mode-center { justify-content: center; align-items: center; padding: 24px; }
  .sheet.mode-center .sheet-card { max-width: 760px; width: 100%; height: auto; max-height: calc(100dvh - 48px); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding-top: 0; padding-bottom: 0; }
  .sheet.mode-full { justify-content: center; align-items: stretch; }
  .sheet.mode-full .sheet-card { max-width: none; width: 100%; height: 100%; border: 0; border-radius: 0; }
  .sheet.mode-full .sheet-head, .sheet.mode-full .sheet-body { width: 100%; max-width: 1080px; margin-inline: auto; box-sizing: border-box; }
  .sheet.mode-center .sheet-bg, .sheet.mode-full .sheet-bg { background: rgba(0, 0, 0, .4); }
  /* víc místa = víc sloupců, ne roztažené řádky */
  .sheet.mode-center .mn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sheet.mode-full .mn-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sheet.mode-center .bk-svc-list, .sheet.mode-full .bk-svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .sheet.mode-full .iw-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 10px; } .sheet.mode-full .iw-week .iw-block { grid-template-columns: 1fr; gap: 2px; } .sheet.mode-full .iw-week .iw-grip { display: none; }
}

/* ✍️ Workouty z koučinku v okně Pilota (athletes.js openWrite) — potřebují šířku, proto „wide": bok i střed = skoro celá obrazovka */
.wr-frame { position: relative; height: 100%; min-height: 60dvh; display: flex; flex-direction: column; }
.wr-frame iframe { flex: 1 1 auto; width: 100%; min-height: 0; border: 0; border-radius: 12px; background: var(--card-2); }
.wr-load { position: absolute; inset: 40% 0 auto 0; text-align: center; pointer-events: none; }
@media (min-width: 1024px) {
  .sheet.wide.mode-side, .sheet.wide.mode-center { justify-content: center; align-items: center; padding: 16px; }
  .sheet.wide.mode-side .sheet-card, .sheet.wide.mode-center .sheet-card { max-width: min(1680px, 100%); width: 100%; height: calc(100dvh - 32px); max-height: none; border: 1px solid var(--line); border-radius: 18px; }
  .sheet.wide .sheet-head, .sheet.wide .sheet-body { max-width: none; }
  .sheet.wide .sheet-body { flex: 1 1 auto; min-height: 0; padding: 8px; display: flex; flex-direction: column; overflow: hidden; }
  .sheet.wide .sheet-card { display: flex; flex-direction: column; }
}

/* ⓘ vysvětlivky přímo v okně Rezervací (rozbalí se pod nadpisem, okno se nezavírá) */
.bk-info { margin: 4px 0 8px; padding: 10px 12px; border-left: 3px solid var(--acc); border-radius: 0 10px 10px 0; background: var(--card-2); font-size: 13.5px; line-height: 1.45; color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 400; }
.bk-info p { margin: 0; } .bk-info p + p { margin-top: 6px; } .bk-info-ex { color: var(--muted); }
.field > label .info-i, .mono .info-i { vertical-align: -2px; }
/* ☰ menu: v okně uprostřed / přes celou obrazovku 4 sloupce → každá skupina je jedna srovnaná řada (dřív 3 + osamocený čtvrtý) */
@media (min-width: 1024px) {
  .sheet.mode-center .mn-grid, .sheet.mode-full .mn-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .sheet.mode-center .mn-row, .sheet.mode-full .mn-row { align-items: flex-start; min-height: 64px; padding: 10px; }
  .sheet.mode-center .mn-t small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .sheet.mode-side .mn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.mn-grid { align-items: stretch; } .mn-row { height: 100%; box-sizing: border-box; }

/* 🔔 Notifikace přehledně (notifs.js): historie po dnech a druzích + přehled „co a kdy Pilot posílá" s vypínači */
.help-off-info .bk-info:not(.bk-keep) { display: none; }
.nf-chips { margin-bottom: 4px; }
.nf-day { position: sticky; top: -14px; z-index: 2; margin: 10px -2px 2px; padding: 6px 2px 4px; background: var(--card); border-bottom: 1px solid var(--line); }
.nf-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: start; width: 100%; text-align: left; padding: 9px 10px; margin-top: 6px; border: 1px solid var(--line); border-left: 4px solid var(--kc, var(--line)); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.nf-row.unread { background: var(--acc-soft); } .nf-row.unread .nf-main b::after { content: " •"; color: var(--acc); }
.nf-row:hover { border-color: var(--kc, var(--acc)); }
.nf-ico { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; border-radius: 9px; background: color-mix(in srgb, var(--kc, var(--muted)) 14%, var(--card)); }
.nf-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nf-main b { font-size: 14px; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.nf-main small { font-size: 13px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.nf-row time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.nf-state { -webkit-line-clamp: 1 !important; } .nf-state.bad { color: var(--bad) !important; font-weight: 600; }
.k-people { --kc: #1F9D6B; } .k-booking { --kc: #4C7FD0; } .k-money { --kc: #D9912B; } .k-remind { --kc: #8A93A6; } .k-digest { --kc: #9B7FD1; } .k-system { --kc: #C2416B; }
.nf-fold { display: block; width: 100%; margin-top: 6px; padding: 7px 10px; border: 1px dashed var(--line); border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.nf-fold:hover { color: var(--ink); border-color: var(--muted); }
.nf-cat { border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.nf-cat + .nf-cat { margin-top: 10px; }
.nf-cat-h { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; background: var(--card-2); border-bottom: 1px solid var(--line); } .nf-cat-h b { font-size: 14.5px; } .nf-cat-h small { font-size: 12.5px; color: var(--muted); }
.nf-cat-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; } .nf-cat-row + .nf-cat-row { border-top: 1px solid var(--line); }
.nf-cat-row.off .nf-main { opacity: .55; }
.nf-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); cursor: pointer; white-space: nowrap; } .nf-switch input { width: 18px; height: 18px; }
.nf-always { font-size: 12px; font-weight: 700; color: var(--muted); padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; }
@media (min-width: 1024px) { .sheet.mode-full .nf-cats, .sheet.mode-center .nf-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; } .sheet.mode-full .nf-cats .nf-cat + .nf-cat, .sheet.mode-center .nf-cats .nf-cat + .nf-cat { margin-top: 0; } }
.bk-loc { display: inline-block; margin-left: 4px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--muted); vertical-align: 1px; white-space: nowrap; }
.bk-btns { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
#wn-offers { margin-top: 10px; }

/* 🧪 Zkušební režim (demo.js) */
.demo-bar { position: fixed; right: 10px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 90; max-width: min(340px, calc(100vw - 20px)); padding: 7px 12px; border-radius: 12px; background: #7A4DD8; color: #fff; font-size: 12.5px; line-height: 1.35; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
@media (min-width: 1024px) { .demo-bar { bottom: 12px; } }
.demo-bar a { color: #fff; font-weight: 700; margin-left: 8px; }
.calls-card.done { cursor: default; border-left-color: #D9912B; } .calls-card.done .row-btns { margin-top: 6px; }

/* 🖥 zkratky na nástroje v postranním menu */
@media (min-width: 1024px) { .tabs .tab-tool { opacity: .85; } .tabs .tab-tool:hover { opacity: 1; } }

/* 🌡 měsíc jako mapa vytížení (cal.js): tmavší políčko = nabitější den */
.cm-cell.load-1 { background: color-mix(in srgb, var(--acc) 6%, transparent); } .cm-cell.load-2 { background: color-mix(in srgb, var(--acc) 13%, transparent); }
.cm-cell.load-3 { background: color-mix(in srgb, #D9912B 20%, transparent); } .cm-cell.load-4 { background: color-mix(in srgb, #C2416B 22%, transparent); }
.cm-load { position: absolute; top: 3px; right: 4px; font-size: 10.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 🚗 Odkud vyrážím — místa na jedno klepnutí + správa mých míst */
.tf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.tf-chips .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.tf-chips .chip[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.tf-chips .tf-edit { border-style: dashed; font-weight: 500; opacity: .8; }
.tf-head { display: flex; align-items: center; gap: 6px; }
.tf-head label { margin: 0; }
.tf-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
.tf-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto auto; gap: 6px; margin-bottom: 8px; align-items: center; }
.tf-row input { min-width: 0; width: 100%; box-sizing: border-box; }
.tf-row .btn-ghost { padding: 8px 10px; }
@media (max-width: 480px) { .tf-row { grid-template-columns: minmax(0, 1fr) auto auto; } .tf-row [data-pl-a] { grid-column: 1 / -1; grid-row: 2; } }

.tf-h { margin: 18px 0 4px; font-size: 14px; }
.tf-row.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; }
.tf-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 13px; }
.tf-park { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; }
.tf-park label { margin: 0; }
.tf-park select { width: auto; min-width: 96px; }
.tf-sum { margin: 2px 0 10px; }
@media (max-width: 480px) { .tf-row.two { grid-template-columns: minmax(0, 1fr) auto; } .tf-row.two .tf-name { grid-column: 1 / -1; } }

/* ✍️ Zápis úkolu: vlastní den + sbalené volby (Projekt · Opakovat · Důležitost) */
.cap-date { position: relative; flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 11px; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; overflow: hidden; }
.cap-date.on { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.cap-date input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.cap-date:focus-within { outline: 2px solid var(--acc); outline-offset: 2px; }
.cap-roll { display: flex; flex-wrap: wrap; gap: 6px; }
.cap-roll .roll { border: 1px dashed var(--line); background: transparent; border-radius: 999px; padding: 6px 11px; font-size: 13px; font-weight: 600; white-space: nowrap; color: inherit; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cap-roll .roll i { font-style: normal; opacity: .6; font-size: 11px; }
.cap-roll .roll.set { border-style: solid; border-color: var(--acc); background: var(--acc-soft); }
.cap-roll .roll[aria-expanded="true"] { border-style: solid; border-color: var(--acc); }
.cap-roll .roll[aria-expanded="true"] i { display: inline-block; transform: rotate(180deg); }
.due-quick { margin-top: 6px; }
.due-quick button { padding: 4px 10px; font-size: 12px; }

/* ⠿ vlastní pořadí dnešních úkolů + ⏰ hromadný přesun po termínu */
.task-grip { flex: none; width: 22px; border: 0; background: transparent; color: var(--muted, #8a9490); font-size: 14px; line-height: 1; padding: 0 0 0 4px; cursor: grab; touch-action: none; opacity: .55; }
.task-grip:hover, .task-grip:focus-visible { opacity: 1; }
.task.can-drag .task-check { width: 40px; }
.task.dragging { opacity: .85; box-shadow: var(--shadow); border-color: var(--acc); position: relative; z-index: 2; }
.task.dragging .task-grip { cursor: grabbing; opacity: 1; }
.order-reset { align-self: flex-start; margin: 2px 0 0 4px; font-size: 12px; }
.overdue-bar { width: 100%; text-align: left; border: 1px solid var(--line); border-left: 3px solid #c0392b; background: var(--card); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: inherit; margin-bottom: 8px; cursor: pointer; }
.overdue-bar:hover { background: var(--acc-soft); }
.od-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; max-height: 46vh; overflow-y: auto; }
.od-btns { margin-top: 6px; }

/* 🔁 stíny příštích opakování + ⏭ nestihnuté bloky */
.cg-ghost { position: absolute; left: 34%; right: 2px; z-index: 1; border: 1px dashed color-mix(in srgb, var(--acc) 55%, transparent); background: color-mix(in srgb, var(--acc) 7%, transparent); border-radius: 8px; padding: 2px 6px; text-align: left; font-size: 11px; font-weight: 600; color: color-mix(in srgb, var(--acc) 60%, var(--ink)); overflow: hidden; cursor: pointer; opacity: .85; }
.cg-ghost span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-ghost:hover { opacity: 1; background: color-mix(in srgb, var(--acc) 14%, transparent); }
.cg-ev.missed { border-style: dashed; border-color: #c0392b; }
.missed-card { border: 1px solid var(--line); border-left: 3px solid #d68910; background: var(--card); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 6px; }
.mc-h { font-size: 13px; font-weight: 700; }
.mc-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mc-t { flex: 1 1 140px; min-width: 0; border: 0; background: transparent; text-align: left; padding: 0; color: inherit; display: flex; flex-direction: column; gap: 1px; }
.mc-t b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-t small { font-size: 11.5px; color: var(--muted); }
.mc-b { display: flex; gap: 4px; flex: none; }
.mc-b button { border: 1px solid var(--line); background: transparent; color: var(--acc); font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 999px; }
.mc-b button:hover { background: var(--acc-soft); }
.cal-toggles { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-self: start; }

/* ☑ kroky: součet částek, skrýt hotové, přeházení */
.sb-money { font-size: 13px; margin: 4px 0 2px; }
.sb-hide { font-size: 12px; margin: 2px 0 4px; align-self: flex-start; }
.sb-grip { flex: none; width: 20px; border: 0; background: transparent; color: var(--muted); font-size: 13px; padding: 0; cursor: grab; touch-action: none; opacity: .5; }
.sb-grip:hover, .sb-grip:focus-visible { opacity: 1; }
.sb-row.dragging { background: var(--acc-soft); border-radius: 8px; }
.sb-row.dragging .sb-grip { cursor: grabbing; opacity: 1; }

/* 🤫 TICHÉ DNES — řádek „Další" se sbalenými kartami */
.today-more { order: 9; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.tm-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tm-toggle { border: 0; background: transparent; color: var(--muted); font: 700 12px/1 inherit; letter-spacing: .06em; text-transform: uppercase; padding: 6px 2px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.tm-toggle i { font-style: normal; font-size: 11px; transition: transform .15s; }
.today-more.open .tm-toggle i { transform: rotate(180deg); }
.tm-pills { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.tm-pill { border: 0; background: var(--card-2, var(--card)); color: var(--muted); border-radius: 999px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tm-pill:hover { color: var(--ink); }
.tm-pill.warn { color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, #d68910 55%, transparent); }
.tm-body { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.tm-body > :empty { display: none; }
.tm-flash { animation: tmFlash 1.2s ease-out 1; border-radius: 14px; }
@keyframes tmFlash { 0% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 45%, transparent); } 100% { box-shadow: 0 0 0 3px transparent; } }
.tm-addtop { align-self: flex-start; font-size: 12px; margin: 0 0 2px 4px; }
html.today-quiet .zone-now { gap: 10px; }
@media (min-width: 1024px) {
  .today-more { grid-column: 1 / -1; order: 0; }
  .tm-body { display: block; columns: 2; column-gap: 24px; }
  .tm-body > * { break-inside: avoid; margin-bottom: 14px; }
}
@media (min-width: 1500px) { .tm-body { columns: 3; } }
@media (prefers-reduced-motion: reduce) { .tm-flash { animation: none; } .tm-toggle i { transition: none; } }

/* 📝 Inbox: hledání, stáří poznámky, probírání starých */
.ib-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.ib-tools input { flex: 1 1 180px; min-width: 0; box-sizing: border-box; border: 1px solid var(--line); background: var(--card); color: inherit; border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.ib-reviewbtn { flex: none; }
.ib-age { color: #b9770e; font-weight: 600; }
.ib-review { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.ib-review b { font-size: 16px; line-height: 1.3; display: block; }
.ib-review p { margin: 8px 0 0; white-space: pre-wrap; color: var(--muted); font-size: 14px; }
.st-gh .st-bulk { margin-left: auto; flex: none; padding: 3px 10px; font-size: 12px; }

/* 📱 ZAFIXOVANÝ MOBIL (20. 9. 2026). iPhone při klepnutí do políčka s písmem pod 16 px přiblíží celou stránku a ta pak „ujíždí" do stran.
   Políčka dědí velikost od rodiče (font: inherit), takže se to vracelo s každým novým oknem → na dotykových zařízeních a úzkých šířkách
   má KAŽDÉ políčko 16 px, natvrdo. Hlídá scripts/tests/test-pilot-mobile.js. */
@media (pointer: coarse), (max-width: 759px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select { font-size: 16px !important; }
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }   /* clip nedělá ze stránky scroll kontejner (na rozdíl od hidden) */
button, a, label, summary, [role="button"], .chip, .task-check { touch-action: manipulation; }   /* dvojklep nepřibližuje */
.task-grip, .sb-grip { touch-action: none; }   /* úchyty na tažení si dotyk řídí samy */
.cp-learn { border-style: dashed !important; }
.cp-learn small { opacity: .65; font-size: 10.5px; }
.cp-learn button { border: 0; background: transparent; color: inherit; padding: 0 0 0 4px; font-size: 12px; cursor: pointer; }
.td-row { display: flex; align-items: stretch; gap: 6px; margin-bottom: 6px; }
.td-row .imp-item { flex: 1; min-width: 0; margin: 0; }
.td-row .btn-ghost { flex: none; }

/* ✏️ výběr času tažením v kalendáři (jako Google / Notion kalendář) */
.cg-select { position: absolute; left: 2px; right: 2px; z-index: 6; border-radius: 8px; background: color-mix(in srgb, var(--acc) 22%, transparent); border: 1.5px solid var(--acc); box-shadow: var(--shadow); padding: 3px 7px; pointer-events: none; overflow: hidden; display: flex; gap: 6px; align-items: baseline; color: var(--ink); }
.cg-select b { font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.cg-select small { font-size: 11px; opacity: .75; white-space: nowrap; }
.cg-col { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }   /* při tažení se neoznačuje text ani nevyskakuje lupa */

/* 🔔 rezervace: kolize nalezená serverem při potvrzení + vypínač vyskakování */
.bk-conflict { display: block; margin-bottom: 10px; }
.bk-conflict ul { margin: 6px 0 8px 18px; padding: 0; }
.bk-pop { margin-top: 8px; }

/* 🕐 rezervace: potvrdit s jiným termínem */
.bk-resch { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 2px 0 8px; background: var(--card-2, var(--card)); }
.bk-mail a { color: var(--acc); font-weight: 600; }

/* 🗒 Zápis z hovoru (callnote.js): malá tlačítka u řádku se nesmí roztáhnout jako v .row-btns */
.cn-ctx { font-size: 12.5px; color: var(--muted); background: var(--card-2); border-radius: 10px; padding: 7px 10px; margin-bottom: 8px; overflow-wrap: anywhere; }
.cn-card { margin-bottom: 10px; }
.cn-in { position: relative; display: flex; }
.cn-in textarea { flex: 1; min-width: 0; padding-right: 44px; }
.cn-mic { position: absolute; right: 6px; bottom: 6px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 15px; line-height: 1; cursor: pointer; }
.cn-mic.rec { background: var(--bad); border-color: var(--bad); color: var(--on-bad); }
.cn-race { border: 1px solid var(--acc); border-radius: 10px; padding: 8px 10px; background: var(--card-2); }
/* 📞 minule: kdy byl poslední hovor a co jste řešili */
.cn-last { border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: var(--card-2); margin-bottom: 8px; }
.cn-lasth { display: flex; align-items: baseline; gap: 6px; width: 100%; background: none; border: 0; color: inherit; font: inherit; padding: 0; cursor: pointer; text-align: left; }
.cn-lasth b { font-weight: 600; font-size: 13px; }
.cn-lasts { font-size: 12.5px; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.cn-lastb { font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 6px; padding-left: 9px; border-left: 2px solid var(--line); }
/* 🧾 shrnutí + stav průběžného ukládání */
.cn-sum textarea { border-color: var(--acc); }
.cn-state { font-size: 12px; color: var(--muted); min-height: 16px; margin: 2px 0 6px; }
.cn-state.bad { color: var(--bad); font-weight: 600; }
.cn-state.warn { color: var(--warn); font-weight: 600; }
/* nadpis políčka nese vpravo tiše to, co se s odpovědí stane (dřív to byla věta pod každým polem — sedmkrát totéž) */
#sheet-body .field > label > i { float: right; font-style: normal; font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; opacity: .8; }
.cn-acts { display: flex; gap: 4px; flex: none; }
.cn-acts > button { flex: none; }
#cn-rows .lost-row > span:nth-child(2) { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
#cn-rows input, #cn-rows select { width: 100%; border: 1px solid var(--line); background: var(--card-2); border-radius: 9px; padding: 7px 9px; font-size: 16px; }

/* 📤 SDÍLENÝ SEZNAM (share.js) — štítek u úkolu a náhled toho, co uvidí druhá strana */
.sh-chip { background: var(--acc-soft); color: var(--acc); border-radius: 99px; padding: 1px 8px; }
.sh-prev { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 6px; }
.sh-prev ul { list-style: none; margin: 6px 0 0; padding: 0; }
.sh-prev li { padding: 3px 0; overflow-wrap: anywhere; }
.sh-prev li i { color: var(--muted); font-style: normal; }

/* 🔄 Nová verze Pilota — plovoucí proužek dole (nad lištou záložek na mobilu). Nic nepřenačítá sám. */
/* Centruje se přes left/right + margin auto, NE přes left:50% — to by proužku nechalo jen půl
   obrazovky a text by se na telefonu zalomil na tři řádky (chyceno v demu 24. 9. 2026). */
.ver-bar { position: fixed; left: 12px; right: 12px; margin: 0 auto; width: max-content; max-width: calc(100% - 24px); z-index: 900;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; white-space: nowrap;
  border-radius: 999px; border: 1px solid var(--acc); background: var(--card); color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18); font-size: 13.5px; font-weight: 700; }
.ver-bar button { font: inherit; font-size: 13px; border-radius: 999px; cursor: pointer; padding: 5px 12px;
  border: 0; background: var(--acc); color: #fff; }
.ver-bar button[data-ver="x"] { background: none; color: var(--muted); padding: 5px 8px; font-weight: 700; }
@media (min-width: 1024px) { .ver-bar { bottom: 18px; } }

/* 🎥 Pojistka v otevřené appce: termín s klientem za pár minut (cal.js apptTick) — proužek nahoře, nikdy se neschovává */
.appt-bar { position: fixed; left: 50%; transform: translateX(-50%); top: calc(8px + env(safe-area-inset-top, 0px)); z-index: 95; background: var(--ink); color: var(--ground); border-radius: 14px; padding: 10px 10px 10px 14px; font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; max-width: calc(100% - 32px); width: max-content; box-shadow: var(--shadow); }
.appt-bar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appt-bar .btn-primary { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
.appt-bar .icon-btn { color: var(--ground); flex: none; }

/* ⭐ Štítky u schvalování recenze (approvals.js). Na rozdíl od .chips-scroll se
   zalomí do řádků — v okně jich je devět a vodorovné rolování by je schovalo. */
.ap-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ap-chip { border: 1px solid var(--line); background: var(--card); color: inherit; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.ap-chip.on { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }

/* ⭐ Přehled recenzí v Pilotovi (reviews.js) — dvě čísla vedle sebe. */
.rv-stat { display: flex; gap: 10px; margin: 10px 0 4px; }
.rv-stat > div { flex: 1; text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; background: var(--card); }
.rv-stat b { display: block; font-size: 24px; line-height: 1.1; }
.rv-stat small { color: var(--dim); font-size: 12px; }

/* ⭐ Okno „Recenze a zpětná vazba" (reviews.js) — tři oddělené bloky, ať je vidět,
   co je recenze na web, co dotazník pro Davida a co prosba členům. */
.rv-box { border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; margin: 12px 0; background: var(--card); }
.rv-box h3 { margin: 0 0 4px; font-size: 16px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rv-box h3 small { font-weight: 500; font-size: 12px; color: var(--dim); }
.rv-lide { max-height: 44vh; overflow-y: auto; overscroll-behavior: contain; margin: 4px 0 2px; }
.rv-clovek { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.rv-clovek:last-child { border-bottom: none; }
.rv-clovek small { color: var(--dim); font-size: 11.5px; margin-left: 6px; }
.rv-clovek__b { display: flex; gap: 6px; flex: none; }
.ch-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.rv-chk { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; cursor: pointer; }
/* Zaškrtávátko je hlavní ovládání — na dotyku musí být dost velké na palec. */
.rv-chk input { width: 22px; height: 22px; flex: none; accent-color: #16a34a; cursor: pointer; }
.rv-clovek.je-poslano .rv-chk > span { color: var(--dim); }
.rv-kdy { font-style: normal; color: #16a34a; font-size: 11.5px; font-weight: 700; margin-left: 6px; white-space: nowrap; }
.rv-clovek__b .btn-ghost { padding: 5px 9px; font-size: 15px; line-height: 1; }
.rv-link { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all;
           background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin: 6px 0; }

/* 📊 Žebříček odpovědí z dotazníku (reviews.js) — proužek podle četnosti. */
.rv-bar { position: relative; display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; }
.rv-bar span { flex: 1; min-width: 0; z-index: 1; }
.rv-bar b { z-index: 1; font-variant-numeric: tabular-nums; color: var(--dim); }
.rv-bar i { position: absolute; left: 0; top: 3px; bottom: 3px; background: var(--acc); opacity: .14; border-radius: 6px; }
