/* Zajeco klientský portál — varianta C (samostatná verze), bílý styl. Bez inline stylů (CSP). */

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

:root {
  --ink: #0a0a0a; --ink-2: #3f3f46; --tx-3: #6b6b73;
  --acc: #1846ff; --acc-strong: #0f33d6; --acc-bg: #eef1ff;
  --g-bg: #f4f5f7; --g-bg-2: #eceef2; --line: #e4e6eb; --paper: #fff;
  --ok: #12805c; --ok-bg: #e5f5ee; --wait: #b25e00; --wait-strong: #a35600; --wait-bg: #fff3e0;
  --bad: #c4321c; --bad-bg: #fdecea;
  --head: "Bricolage Grotesque", "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 16px; --r-l: 24px; --r-in: 10px;
  --sh-2: 0 1px 2px rgb(15 18 40 / .04), 0 10px 28px rgb(15 18 40 / .07);
  --sh-3: 0 2px 6px rgb(15 18 40 / .05), 0 24px 60px rgb(15 18 40 / .12);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body.zp-telo { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
button { font: inherit; cursor: pointer; color: inherit; }
a { color: var(--acc-strong); }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ---------- buttons, pills, bars ---------- */
.zp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 0; border-radius: 999px; padding: 12px 22px; background: var(--acc); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 12px 40px -8px rgb(24 70 255 / .32); transition: transform .15s var(--ease), background .15s; }
.zp-btn:hover { background: var(--acc-strong); }
.zp-btn:active { transform: scale(.97); }
.zp-btn:disabled { opacity: .55; cursor: default; transform: none; }
.zp-btn.maly { min-height: 38px; padding: 9px 16px; font-size: 14px; }
.zp-odkaz { border: 0; background: none; padding: 8px 0; color: var(--acc-strong); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.zp-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tx-3); margin-bottom: 8px; }
.zp-tlumene { color: var(--tx-3); }
.zp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.zp-pill.good { background: var(--ok-bg); color: var(--ok); }
.zp-pill.warn { background: var(--wait-bg); color: var(--wait); }
.zp-pill.bad { background: var(--bad-bg); color: var(--bad); }
.zp-pill.muted { background: var(--g-bg-2); color: var(--ink-2); }
.zp-pill.good::before, .zp-pill.warn::before, .zp-pill.bad::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.zp-bar { height: 8px; border-radius: 999px; background: var(--g-bg-2); overflow: hidden; }
.zp-bar span { display: block; height: 100%; width: 0; background: var(--acc); border-radius: inherit; }
.zp-ico { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--g-bg); display: grid; place-items: center; color: var(--ink-2); flex: none; font-size: 22px; line-height: 1; }

/* ---------- sign-in / admin column ---------- */
.zp-sloupec { max-width: 440px; margin: 0 auto; padding: clamp(32px, 10vh, 96px) 20px 48px; display: grid; gap: 18px; }
.zp-sloupec h1 { font-size: clamp(28px, 6vw, 36px); }
.zp-sloupec section { display: grid; gap: 14px; }
.zp-sloupec form { display: grid; gap: 14px; }
.zp-logo { font-family: var(--head); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.zp-logo i { width: 22px; height: 22px; border-radius: 7px; background: var(--acc); display: inline-block; }
.zp-pole { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.zp-pole input { font: inherit; font-size: 16px; font-weight: 500; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-height: 48px; background: var(--paper); color: var(--ink); }
.zp-pole input:focus { outline: 2px solid var(--acc); outline-offset: 0; border-color: transparent; }
.zp-chyba { margin: 0; color: var(--bad); font-weight: 700; font-size: 14px; }
.zp-ochrana:empty { display: none; }
.zp-udaje { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.zp-udaje dt { color: var(--tx-3); font-weight: 600; }
.zp-udaje dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.zp-vysledek { background: var(--g-bg); border-radius: var(--r-in); padding: 12px 14px; font-weight: 700; margin: 0; }

/* ---------- embedded screen (frame in the client's app / mobile WebView) ---------- */
body.vlozeno { background: var(--paper); }
.zp-vlozeni { padding: 0; }
.zp-stav { padding: 32px 22px; display: grid; gap: 10px; max-width: 560px; }
.zp-stav h1 { font-size: 24px; }
.vlozeno .vc-frame { box-shadow: none; border-radius: 0; }
.vlozeno [data-obsah] > h1 { font-size: 24px; padding: 18px 22px 0; }
.vlozeno .zp-seznam { padding: 0 22px 22px; }
.vlozeno [data-obsah] > .zp-tlumene { padding: 0 22px; }
.zp-zpet { display: inline-block; margin: 10px 22px 0; min-height: 44px; }
.zp-detail-in { padding: 4px 22px 28px; max-width: 720px; }
.zp-detail-in .zp-zpet { margin: 0 0 8px; }
.zp-detail-in h2 { font-size: 26px; margin-bottom: 4px; }
.zp-detail-in h3 { font-size: 15px; margin: 22px 0 4px; }
.mobil .vc-tabs { position: sticky; top: 0; background: var(--paper); z-index: 5; }

/* ---------- public demo (/ukazka): the frame on a light page with a strip that says it is made up ---------- */
body.ukazka { background: var(--g-bg); }
.zp-ukazka { max-width: 1120px; margin: 0 auto; padding: 18px clamp(10px, 3vw, 28px) 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.zp-ukazka-pruh { margin: 0; padding: 12px 16px; border-radius: var(--r); background: var(--acc-bg); color: var(--ink-2); font-size: 14px; }
.zp-ukazka-pruh b { color: var(--acc-strong); }
.ukazka .zp-vlozeni { background: var(--paper); border-radius: var(--r-l); }

/* ---------- app header (unused in the embedded screen) ---------- */
.zp-top { background: var(--paper); border-bottom: 1px solid var(--line); }
.zp-top-in { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 12px clamp(16px, 4vw, 40px); }
.zp-firm { color: var(--tx-3); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zp-user { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.zp-ava { width: 32px; height: 32px; border-radius: 50%; background: var(--g-bg-2); display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--ink); flex: none; }
.zp-menu { position: relative; }
.zp-menu summary { list-style: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 20px; color: var(--ink-2); }
.zp-menu summary::-webkit-details-marker { display: none; }
.zp-menu summary:hover { background: var(--g-bg); }
.zp-menu-in { position: absolute; right: 0; top: 48px; z-index: 60; background: var(--paper); border-radius: var(--r); box-shadow: var(--sh-3); padding: 6px; display: grid; min-width: 250px; }
.zp-menu-in button { border: 0; background: none; text-align: left; padding: 11px 12px; border-radius: var(--r-in); font-weight: 600; min-height: 44px; }
.zp-menu-in button:hover { background: var(--g-bg); }

.zp-wrap { max-width: 1240px; margin: 0 auto; padding: 22px clamp(12px, 3vw, 32px) 48px; }

/* ---------- project list ---------- */
.zp-seznam { display: grid; gap: 12px; margin-top: 16px; }
.zp-seznam button { width: 100%; text-align: left; background: var(--paper); font: inherit; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; transition: box-shadow .15s, border-color .15s, transform .15s var(--ease); }
.zp-seznam button:hover { border-color: transparent; box-shadow: var(--sh-2); transform: translateY(-1px); }
.zp-seznam b { font-family: var(--head); font-size: 19px; }
.zp-seznam small { color: var(--tx-3); font-weight: 600; }

/* ---------- variant C frame (solo) ---------- */
.vc-frame { background: var(--paper); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.vc-fh { padding: 18px 22px 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vc-fh h1 { font-size: 24px; }
.vc-fh .by { margin-left: auto; font-size: 12.5px; color: var(--tx-3); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.vc-fh .by i { width: 14px; height: 14px; border-radius: 4px; background: var(--acc); }
.vc-tabs { display: flex; gap: 4px; padding: 14px 22px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.vc-tabs button { border: 0; background: none; padding: 10px 14px; min-height: 44px; font-weight: 700; color: var(--tx-3); border-bottom: 2px solid transparent; white-space: nowrap; }
.vc-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--acc); }
.vc-pane { padding: 22px; flex: 1; min-width: 0; }

/* messages (varianta C): thread + composer; reminders list */
.zp-pill.run { background: var(--acc-bg); color: var(--acc-strong); }
.zp-pill.ok { background: var(--ok-bg); color: var(--ok); }
.zp-pill.plan { background: var(--g-bg-2); color: var(--ink-2); }
.zp-pill.run::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); animation: zp-pulse 1.6s infinite; }
@keyframes zp-pulse { 50% { opacity: .35; } }
.zp-chat { display: flex; flex-direction: column; min-height: 0; }
.zp-msgs { display: flex; flex-direction: column; gap: 12px; padding: 4px 2px 12px; }
.zp-msg { display: flex; gap: 10px; align-items: flex-end; max-width: 92%; }
.zp-msg.nova { animation: zp-in .25s var(--ease); }
.zp-msg.me { align-self: flex-end; flex-direction: row-reverse; }
.zp-msg > div { min-width: 0; }
.zp-msg .bub { background: var(--g-bg); border-radius: 18px 18px 18px 6px; padding: 10px 14px; font-size: 14px; overflow-wrap: anywhere; }
.zp-msg .bub .tx { white-space: pre-wrap; }
.zp-msg.me .bub { background: var(--acc); color: #fff; border-radius: 18px 18px 6px 18px; }
.zp-msg .meta { font-size: 11.5px; color: var(--tx-3); margin-top: 3px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.zp-msg.me .meta { justify-content: flex-end; }
.zp-msg .meta .zp-pill { font-size: 11px; padding: 1px 8px; }
.zp-msg .tag { display: inline-block; font-size: 11.5px; font-weight: 800; background: rgb(255 255 255 / .2); border-radius: 6px; padding: 1px 7px; margin-bottom: 4px; }
.zp-msg:not(.me) .tag { background: var(--paper); color: var(--acc-strong); }
.zp-ava.z { background: var(--acc); color: #fff; }
@keyframes zp-in { from { opacity: 0; transform: translateY(6px); } }
.zp-files { display: grid; gap: 6px; margin-top: 8px; }
.zp-file { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: center; text-align: left; border: 0; border-radius: var(--r-in); background: rgb(255 255 255 / .9); color: var(--ink); padding: 8px 10px; font: inherit; font-size: 13px; min-height: 44px; max-width: 320px; }
.zp-msg:not(.me) .zp-file, .vc-fb .zp-file { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.zp-file img { grid-row: span 1; width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.zp-file .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.zp-file small { color: var(--tx-3); white-space: nowrap; }
.zp-file:disabled { opacity: .6; }
.zp-compose { display: flex; gap: 8px; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 12px; flex-wrap: wrap; }
.zp-compose .ctx { flex-basis: 100%; font-size: 12.5px; font-weight: 700; color: var(--acc-strong); display: none; align-items: center; gap: 6px; flex-wrap: wrap; }
.zp-compose .ctx.on { display: flex; }
.zp-compose .ctx select { font: inherit; font-size: 16px; font-weight: 700; color: var(--acc-strong); border: 1px solid var(--line); border-radius: 10px; padding: 4px 8px; background: var(--paper); max-width: 100%; }
.zp-compose .ctx button { border: 0; background: none; color: var(--tx-3); padding: 0 8px; font-size: 18px; min-height: 32px; }
.zp-compose textarea { flex: 1; min-width: 0; resize: none; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font: inherit; font-size: 16px; min-height: 44px; max-height: 160px; color: var(--ink); background: var(--paper); }
.zp-compose textarea:focus { outline: 2px solid var(--acc); outline-offset: 0; border-color: transparent; }
.zp-compose .zp-chyba { flex-basis: 100%; }
.zp-chips { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.zp-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--g-bg); border-radius: 999px; padding: 4px 4px 4px 12px; font-size: 13px; max-width: 100%; }
.zp-chip .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.zp-chip small { color: var(--tx-3); }
.zp-chip.nahravam { padding-right: 12px; }
.zp-chip button { border: 0; background: none; color: var(--tx-3); font-size: 18px; min-width: 32px; min-height: 32px; border-radius: 50%; }
.zp-ico { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--g-bg); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.zp-ico svg { width: 20px; height: 20px; }
.zp-ico.send { background: var(--acc); color: #fff; }
.zp-ico:disabled { opacity: .5; }
.zp-info { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--r-in); background: var(--wait-bg); color: var(--wait); font-size: 14px; font-weight: 700; }
.zp-jen-cteni { border-top: 1px solid var(--line); padding-top: 12px; margin: 0; font-size: 14px; }
.vc-fb { display: grid; gap: 10px; }
.vc-fb > div { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; }
.vc-fb > div > b { white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.vc-fb small { color: var(--tx-3); grid-column: 1 / -1; }
.vc-fb .zp-files { grid-column: 1 / -1; margin-top: 4px; }
.vc-fb-akce, .zp-detail-akce { margin: 16px 0 0; }
.zp-detail-akce { margin-top: 22px; }
@media (prefers-reduced-motion: reduce) { .zp-msg { animation: none; } .zp-pill.run::before { animation: none; } }

/* overview */
.c2-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-bottom: 18px; }
.c2-hero.jen { grid-template-columns: 1fr; }
.c2-box { background: var(--g-bg); border-radius: var(--r); padding: 18px 20px; min-width: 0; }
.c2-box small, .c2-lbl { color: var(--tx-3); font-weight: 700; font-size: 12px; display: block; }
.c2-date { font-family: var(--head); font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; line-height: 1.1; margin: 4px 0 10px; }
.c2-hero-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.c2-hero-row.mezera { margin-top: 14px; }
.c2-hero-row .zp-bar { flex: 1; min-width: 120px; }
.c2-hero-row b.num { font-family: var(--head); font-size: 20px; }
.c2-hero-row small { display: inline; }
.c2-pozn { font-size: 13px; color: var(--ink-2); }
.c2-sum { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.c2-wait { background: var(--wait-bg); }
.c2-wait b { display: block; font-size: 16px; margin: 4px 0 2px; }
.c2-wait p { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.c2-wait p strong { font-weight: 800; }
.c2-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 22px 0 10px; flex-wrap: wrap; }
.c2-h h2 { font-size: 20px; }
.c2-h span { color: var(--tx-3); font-size: 13px; font-weight: 600; }

/* task rows */
.c2-tasks { display: grid; gap: 10px; }
.c2-task { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(240px, 1.6fr) 190px; gap: 8px 22px; align-items: center; text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r); padding: 14px 18px; transition: border-color .15s, box-shadow .15s, transform .15s var(--ease); width: 100%; }
.c2-task:hover { border-color: transparent; box-shadow: var(--sh-2); transform: translateY(-1px); }
.c2-task .t b { font-size: 15.5px; display: block; line-height: 1.3; }
.c2-task .t small { color: var(--tx-3); font-weight: 600; font-size: 12.5px; display: block; }
.c2-task .t .flag { margin-top: 6px; }
.c2-task .w { text-align: right; }
.c2-task .w b { display: block; font-size: 14.5px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.c2-task .w s { color: var(--tx-3); font-size: 12.5px; font-weight: 600; display: block; }
.c2-task .w .zp-pill { white-space: normal; text-align: left; }

/* phase stepper */
.c2-ph-name { font-size: 13.5px; font-weight: 800; margin-bottom: 7px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.c2-ph-name small { color: var(--tx-3); font-weight: 600; font-size: 12px; }
.c2-steps { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; }
.c2-steps i { height: 6px; border-radius: 999px; background: var(--g-bg-2); position: relative; }
.c2-steps i.done { background: var(--ok); }
.c2-steps i.now { background: var(--acc); }
.c2-steps i.now::after { content: ""; position: absolute; inset: -4px; border-radius: 999px; box-shadow: 0 0 0 2px rgb(24 70 255 / .18); }
.c2-steps i.skip { background: repeating-linear-gradient(45deg, var(--g-bg-2) 0 3px, #cfd2d8 3px 6px); }
.c2-ph-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--tx-3); font-weight: 600; margin: 10px 0 0; }

/* feed */
.vc-feed { list-style: none; padding: 0; margin: 0; }
.vc-feed li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.vc-feed time { color: var(--tx-3); font-weight: 700; font-size: 13px; }
.vc-feed .k { font-size: 12px; font-weight: 800; color: var(--tx-3); display: block; }
.zp-prazdne { color: var(--tx-3); padding: 12px 0; margin: 0; }

/* plan tab: timeline */
.c2-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--tx-3); font-weight: 600; margin-bottom: 14px; align-items: center; }
.c2-legend i { display: inline-block; width: 22px; height: 10px; border-radius: 999px; vertical-align: -1px; margin-right: 6px; }
.c2-legend i.ok { background: var(--ok-bg); }
.c2-legend i.run { background: var(--acc); }
.c2-legend i.plan { background: var(--g-bg-2); }
.c2-legend i.ghost { border: 2px dashed var(--bad); opacity: .5; }
.zp-tl-scroll { overflow-x: auto; max-width: 100%; }
.zp-tl { position: relative; padding-top: 24px; min-width: 640px; --tl-label: 220px; }
.zp-tl-head, .zp-tl-row { display: grid; grid-template-columns: var(--tl-label) 1fr; align-items: center; }
.zp-tl-months { display: grid; grid-template-columns: repeat(var(--m, 4), 1fr); }
.zp-tl-months span { font-size: 12.5px; font-weight: 700; color: var(--tx-3); padding: 0 0 8px 8px; border-left: 1px solid var(--line); }
.zp-tl-row { min-height: 46px; border-top: 1px solid var(--line); }
.zp-tl-row .lbl { font-weight: 700; font-size: 14px; padding-right: 12px; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.zp-tl-row .lbl small { font-weight: 600; color: var(--tx-3); font-size: 12px; }
.zp-tl-track { position: relative; height: 46px; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc(100% / var(--m, 4)) 100%; }
.zp-tl-bar { position: absolute; z-index: 2; top: 11px; height: 24px; min-width: 10px; border-radius: 999px; border: 0; padding: 0 10px; font-size: 12px; font-weight: 700; display: flex; align-items: center; overflow: hidden; white-space: nowrap; transition: transform .15s var(--ease), box-shadow .15s; }
.zp-tl-bar:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.zp-tl-bar.ok { background: var(--ok-bg); color: var(--ok); }
.zp-tl-bar.run { background: var(--acc); color: #fff; }
.zp-tl-bar.plan { background: var(--g-bg-2); color: var(--ink-2); }
.zp-tl-bar.slip { box-shadow: inset 0 0 0 2px var(--bad); }
.zp-tl-bar .txt { overflow: hidden; text-overflow: ellipsis; }
.zp-tl-bar .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; margin-right: 6px; }
.dot.good { background: var(--ok); } .dot.warn { background: #e08a00; } .dot.bad { background: var(--bad); } .dot.muted { background: var(--tx-3); }
.zp-tl-bar.run .dot.good { background: #7ef0c0; }
.zp-tl-ghost { position: absolute; top: 11px; height: 24px; border-radius: 999px; border: 2px dashed var(--bad); opacity: .45; pointer-events: none; }
.zp-tl-ms { position: absolute; top: 14px; width: 18px; height: 18px; transform: translateX(-9px) rotate(45deg); background: var(--ink); border-radius: 4px; }
.zp-tl-ms-l { position: absolute; top: 12px; font-size: 12px; font-weight: 800; white-space: nowrap; padding-left: 16px; }
.zp-tl-ms-l.end { transform: translateX(-100%); padding: 0 16px 0 0; }
.zp-tl-ov { position: absolute; z-index: 1; top: 0; bottom: 0; left: var(--tl-label); right: 0; pointer-events: none; }
.zp-tl-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--acc); }
.zp-tl-today b { position: absolute; top: 0; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 800; color: #fff; background: var(--acc); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }

/* tempo anchor (varianta B): months as columns on Přehled, a Tempo row in the plan; numbers come from src/tempo.ts */
.zp-tp { background: var(--g-bg); border-radius: var(--r); padding: 18px 20px; margin-bottom: 18px; min-width: 0; }
.zp-tp.pres { background: var(--wait-bg); }
.zp-tp-head { display: flex; gap: 4px 14px; align-items: baseline; flex-wrap: wrap; margin-top: 2px; }
.zp-tp-head h2 { font-size: 22px; }
.zp-tp-head span { color: var(--tx-3); font-weight: 700; font-size: 13px; }
.zp-tp-cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; margin-top: 14px; }
.zp-tp-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; text-align: center; min-width: 0; }
.zp-tp-col .stack { position: relative; display: block; height: 96px; border-radius: 10px; background: var(--paper); overflow: hidden; }
.zp-tp-col .fill { position: absolute; left: 0; right: 0; bottom: 0; background: var(--acc); border-radius: 8px 8px 0 0; }
.zp-tp-col.plny .fill { background: var(--ink); }
.zp-tp-col.pres .fill { background: #e08a00; }
.zp-tp-col.minuly .fill { background: #c8cdd6; }
.zp-tp-col .cap { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed var(--ink-2); }
.zp-tp-col .v { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zp-tp-col .v b { font-weight: 800; }
.zp-tp-col .v .z { color: var(--tx-3); font-weight: 700; }
.zp-tp-col.pres .v, .zp-tp-col.pres .v .z { color: var(--wait-strong); }
.zp-tp-col .m { font-size: 12px; color: var(--tx-3); font-weight: 700; overflow-wrap: anywhere; line-height: 1.2; }
.zp-tp-col .m .kr { display: none; }
.zp-tp-col.ted .m { color: var(--acc-strong); }
.zp-tp-col.ted .stack { box-shadow: 0 0 0 2px var(--acc); }
.zp-tp-col .ted-l { height: 14px; line-height: 14px; margin-top: -4px; font-size: 11px; font-weight: 800; color: var(--acc-strong); }
.zp-tp-msg { margin: 12px 0 0; font-size: 14.5px; color: var(--ink-2); }
.zp-tp-over { margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--wait-strong); }
.zp-tp-vysv { color: var(--tx-3); font-size: 12.5px; font-weight: 600; margin: 10px 0 0; }
.zp-tp-akce { display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; margin: 14px 0 0; }
.zp-tp-vice { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.zp-tp-vice > p:first-child { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
.zp-tp-t { border-radius: var(--r-in); padding: 10px 14px; background: var(--paper); margin-bottom: 8px; }
.zp-tp-t.vase { background: var(--acc-bg); box-shadow: inset 0 0 0 2px var(--acc); }
.zp-tp-t .r { display: flex; justify-content: space-between; gap: 4px 10px; font-weight: 800; flex-wrap: wrap; }
.zp-tp-t .r span { font-variant-numeric: tabular-nums; }
.zp-tp-t small { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.c2-legend i.tp { width: 10px; height: 14px; border-radius: 3px 3px 0 0; background: var(--acc); }
.zp-tl-tprow .zp-tl-track { height: 58px; }
.zp-tl-tp { position: absolute; bottom: 6px; height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; }
.zp-tl-tp span { display: block; width: 60%; max-width: 48px; border-radius: 6px 6px 0 0; background: var(--acc); }
.zp-tl-tp.plny span { background: var(--ink); }
.zp-tl-tp.pres span { background: #e08a00; }
.zp-tl-tp.minuly span { background: #c8cdd6; }
.zp-tl-tp b { font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zp-tl-tp.pres b { color: var(--wait-strong); }

/* detail drawer */
.zp-detail { position: fixed; inset: 0; z-index: 80; }
.zp-detail .bg { position: absolute; inset: 0; background: rgb(10 10 10 / .28); animation: zp-fade .2s; }
.zp-detail .pan { position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); box-shadow: var(--sh-3); padding: 28px; overflow-y: auto; animation: zp-slide .28s var(--ease); }
.zp-detail .pan h2 { font-size: 26px; padding-right: 48px; }
.zp-detail .x { position: absolute; top: 16px; right: 16px; }
.zp-detail h3 { font-size: 15px; margin: 22px 0 4px; }
@keyframes zp-fade { from { opacity: 0; } }
@keyframes zp-slide { from { transform: translateX(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .zp-detail .bg, .zp-detail .pan { animation: none; } .c2-task, .zp-tl-bar, .zp-btn { transition: none; } }
.zp-pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.zp-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; margin: 16px 0 20px; }
.zp-kv dt { color: var(--tx-3); font-weight: 600; }
.zp-kv dd { margin: 0; font-weight: 700; }
.zp-kv dd s { color: var(--tx-3); font-weight: 600; margin-left: 6px; }
.c2-dphases { list-style: none; margin: 8px 0 0; padding: 0; position: relative; }
.c2-dphases li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; padding: 7px 0; align-items: start; font-size: 14px; color: var(--tx-3); position: relative; }
.c2-dphases li::before { content: ""; position: absolute; left: 10px; top: 26px; bottom: -8px; width: 2px; background: var(--line); }
.c2-dphases li:last-child::before { display: none; }
.c2-dphases li.done { color: var(--ink-2); }
.c2-dphases li.done::before { background: var(--ok); }
.c2-dphases li.skip .nm { text-decoration: line-through; text-decoration-color: var(--line); }
.c2-dphases li.now { color: var(--ink); }
.c2-dphases li.now .nm { font-weight: 800; }
.c2-dphases li .ds { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 500; margin-top: 2px; }
.c2-dphases li time { font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.zp-chk { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); margin-top: 1px; display: grid; place-items: center; background: var(--paper); }
.zp-chk.ok { background: var(--ok); border-color: var(--ok); }
.zp-chk.ok::after { content: ""; width: 8px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.zp-chk.run { border-color: var(--acc); background: var(--paper) radial-gradient(circle, var(--acc) 0 4px, transparent 5px); }
.c2-dphases .zp-chk { width: 22px; height: 22px; position: relative; z-index: 1; }
.zp-steps { list-style: none; margin: 0; padding: 0; }
.zp-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.zp-steps li:first-child { border-top: 0; }
.zp-steps .when { margin-left: auto; color: var(--tx-3); font-size: 12.5px; white-space: nowrap; }
.c2-hist { list-style: none; padding: 0; margin: 6px 0 0; font-size: 13.5px; }
.c2-hist li { padding: 8px 12px; background: var(--g-bg); border-radius: var(--r-in); margin-top: 6px; }
.c2-hist li b { font-variant-numeric: tabular-nums; }
.c2-note { background: var(--g-bg); border-radius: var(--r-in); padding: 10px 14px; font-size: 14px; margin-top: 8px; }
.c2-note.wait { background: var(--wait-bg); }
.c2-note b { font-weight: 800; }

@media (max-width: 960px) {
  .c2-hero { grid-template-columns: 1fr; }
  .c2-task { grid-template-columns: 1fr; gap: 10px; }
  .c2-task .w { text-align: left; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  .c2-task .w b { margin: 0; }
  .vc-pane { padding: 16px; }
  .zp-tl { --tl-label: 150px; }
}
@media (max-width: 560px) {
  .zp-tp { padding: 14px; }
  .zp-tp-head h2 { font-size: 20px; }
  .zp-tp-cols { gap: 4px; }
  .zp-tp-col .stack { height: 72px; }
  .zp-tp-col .v { font-size: 12px; }
  .zp-tp-col .v .z { display: none; }
  .zp-tp-col .m .dl { display: none; }
  .zp-tp-col .m .kr { display: inline; }
  .zp-user-jm, .zp-firm { display: none; }
  .vc-fh { padding: 16px 16px 0; }
  .vc-tabs { padding: 10px 10px 0; }
  .vc-feed li { grid-template-columns: 70px 1fr; }
  .zp-detail-in { padding: 4px 16px 24px; }
  .zp-zpet { margin: 8px 16px 0; }
}
