/* =====================================================
   Schuzo.cz — designová vrstva (načítá se PO app.css)
   Refresh 2026-10 (docs/refresh-2026-10): papír, inkoust, karty jen s linkou, bez přechodů a stínů.
   Barva OBCE (--brand*) přichází z Tenant::cssVars() a má v aplikaci přednost.
   Žlutá pečeť (--sz-seal) JEN na jeden prvek na obrazovce („kdo je na řadě“).
   Všechny animace vypíná prefers-reduced-motion.
   ===================================================== */

@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('../fonts/bricolage-grotesque-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-weight: 200 800; font-display: swap;
  src: url('../fonts/bricolage-grotesque-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; }

/* Instrument Sans — text, tlačítka (variabilní 400–700) */
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/instrument-sans-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: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/instrument-sans-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 {
  /* Písmo */
  --font: 'Instrument Sans', system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;

  /* Značka Schuzo */
  --sz-ink: #13304D;          /* inkoust: text, tmavé plochy, aktivní položka menu */
  --sz-blue: #1F5F8B;         /* modrá Schuzo = výchozí --brand, pokud obec nemá vlastní */
  --sz-blue-soft: #9CC2E5;    /* přeložený roh, akcenty na tmavém */
  --sz-blue-light: #E7EFF6;   /* štítky, avatary, ikony souborů */
  --sz-seal: #F4B740;         /* pečeť — JEN jeden prvek na obrazovce („kdo je na řadě“) */
  --sz-seal-bg: #FDF0D6;      /* jemné upozornění (neotevřeno, probíhá) */
  --sz-seal-text: #8A5A00;    /* text na --sz-seal-bg (kontrast 5.6:1) */

  /* Neutrální */
  --bg: #F6F4EE;              /* papír */
  --surface: #FFFFFF;
  --text: #13304D;
  --text-2: #44535F;          /* sekundární text */
  --muted: #5B6B78;           /* popisky (4.9:1 na papíru) */
  --line: #E3E0D7;
  --line-strong: #CFCBBF;
  --line-soft: #EFEDE6;

  /* Stavy */
  --green: #1D6B3F; --green-bg: #E3F3E9;
  --red: #A3322B;   --red-bg: #FBE7E5;

  /* Tvary */
  --radius-sm: 10px;   /* tlačítka v menu, štítky souborů */
  --radius: 14px;      /* tlačítka, pole */
  --radius-card: 24px; /* karty */
  --radius-pill: 999px;
  --tap: 44px;         /* min. výška klikacích prvků */
  --shadow: none;      /* karty jen s linkou, bez stínu */
  --shadow-lift: none;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* Plynulé přechody mezi stránkami (Chrome/Edge — View Transitions mezi dokumenty) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

body { font-family: var(--font); background: var(--bg); color: var(--text); }
h1, h2, .h-display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; color: var(--sz-ink); }
.card-title { font-family: var(--font); font-weight: 700; letter-spacing: -.01em; }
.num { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
::selection { background: var(--brand-soft); color: #fff; }

/* ---------- Záhlaví ---------- */
/* Značka obce: znak + dvouřádkový název („Zastupitelstvo obce“ / „Unín“) — úsporné, vejde se i k 8 položkám menu */
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-kicker { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.brand-name { font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; color: var(--brand-dark); }
.brand-logo { width: 34px; height: 40px; object-fit: contain; }
.brand::after { content: ""; width: 1px; height: 30px; background: var(--line); margin-left: 6px; }
@media (min-width: 900px) {
  .topbar.nav-many .mainnav a { padding: 8px 10px; }
}
@media (max-width: 899px) { .brand::after { display: none; } }
@media (min-width: 900px) and (max-width: 1099px) { .mainnav a span { display: none; } }
.usermenu-pop, .dropdown-pop { animation: pop-in .18s var(--ease); transform-origin: top right; border-radius: 12px; box-shadow: 0 18px 50px rgba(16, 24, 20, .18); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.tabbar a { transition: color .2s, transform .2s var(--spring); }
.tabbar a:active { transform: scale(.9); }
.tabbar a.active svg { animation: tab-bounce .5s var(--spring); }
@keyframes tab-bounce { 30% { transform: translateY(-4px) scale(1.12); } }

/* ---------- Karty a řádky ---------- */
.card { border-color: color-mix(in srgb, var(--line) 80%, transparent); }
.meet-row, .topic-row, .task-row, .res-row { transition: background .2s, transform .25s var(--ease); }
.meet-row:hover, .topic-row:hover { transform: translateX(4px); background: color-mix(in srgb, var(--brand-light) 55%, #fff); }
.meet-row-date { background: linear-gradient(160deg, var(--brand-light), color-mix(in srgb, var(--brand-light) 60%, #fff)); transition: transform .3s var(--spring); }
.meet-row:hover .meet-row-date { transform: scale(1.06) rotate(-2deg); }

/* Postupné vyjíždění obsahu stránky — čisté CSS: obsah je vždy na konci viditelný, i bez JavaScriptu.
   Výplň JEN „backwards“ (ne „both“): animace s výplní po skončení drží transform, z každé karty tak zůstane
   samostatná vrstva a rozbalená nabídka (Stav, ⋯, nápověda) zapadne pod následující kartu. */
.page > * { animation: rise .55s var(--ease) backwards; }
.page > *:nth-child(2) { animation-delay: .06s; } .page > *:nth-child(3) { animation-delay: .12s; }
.page > *:nth-child(4) { animation-delay: .18s; } .page > *:nth-child(5) { animation-delay: .24s; }
.page > *:nth-child(6) { animation-delay: .30s; } .page > *:nth-child(n+7) { animation-delay: .36s; }
.meet-row, .topic-row, .res-row, .tile, .stat, .citem, .list > li, .results li { animation: rise .5s var(--ease) backwards; }
/* Pojistka: blok s otevřenou nabídkou nebo nápovědou je vždy nad sousedy (i během animace) */
:is(.page, .layout-2 > *) > :has(details[open], .fhelp:hover, .fhelp:focus) { position: relative; z-index: 10; }
:is(.meet-row, .topic-row, .res-row, .tile, .stat, .citem, .list > li, .results li):nth-child(2) { animation-delay: .05s; }
:is(.meet-row, .topic-row, .res-row, .tile, .stat, .citem, .list > li, .results li):nth-child(3) { animation-delay: .10s; }
:is(.meet-row, .topic-row, .res-row, .tile, .stat, .citem, .list > li, .results li):nth-child(4) { animation-delay: .15s; }
:is(.meet-row, .topic-row, .res-row, .tile, .stat, .citem, .list > li, .results li):nth-child(5) { animation-delay: .20s; }
:is(.meet-row, .topic-row, .res-row, .tile, .stat, .citem, .list > li, .results li):nth-child(n+6) { animation-delay: .25s; }

/* ---------- Tlačítka ---------- */
.btn { transition: transform .18s var(--spring), box-shadow .2s, background .2s, color .2s, border-color .2s; border-radius: 10px; }
.btn:active { transform: scale(.96); }
.btn-outline:hover, .btn-ghost:hover { transform: translateY(-1px); }

/* ---------- Hlášky jako toasty ---------- */
.toasts { position: fixed; z-index: 60; top: 74px; right: 16px; left: 16px; display: grid; gap: 10px; justify-items: end; pointer-events: none; }
.toasts .flash { pointer-events: auto; max-width: 440px; width: 100%; margin: 0; display: flex; gap: 10px; align-items: flex-start; padding: 14px 14px 14px 16px; border-radius: 12px; box-shadow: 0 14px 40px rgba(16, 24, 20, .16); background: #fff; color: var(--text); border-left: 4px solid var(--green); animation: toast-in .45s var(--spring) both; }
.toasts .flash-error { border-left-color: var(--red); }
.toasts .flash::before { content: "✓"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green-bg); color: var(--green); font-weight: 800; font-size: .8rem; }
.toasts .flash-error::before { content: "!"; background: var(--red-bg); color: var(--red); }
.toasts .flash.is-out { animation: toast-out .35s var(--ease) both; }
.toast-x { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 1.1rem; line-height: 1; padding: 2px 4px; }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); height: 0; padding-top: 0; padding-bottom: 0; } }
@media (max-width: 899px) { .toasts { top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); justify-items: center; } }

/* ---------- Statistiky a dlaždice ---------- */
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 760px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -20px; top: -20px; width: 70px; height: 70px; border-radius: 50%; background: var(--brand-light); }
.stat-num { position: relative; z-index: 1; display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.stat-label { position: relative; z-index: 1; color: var(--muted); font-weight: 600; font-size: .88rem; }
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-bottom: 18px; }
.tile { display: grid; gap: 4px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .3s var(--ease), box-shadow .3s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: var(--text); }
.tile-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--sz-ink); color: #fff; margin-bottom: 6px; transition: transform .4s var(--spring); }
.tile:hover .tile-icon { transform: rotate(-8deg) scale(1.08); }
.tile-icon svg { width: 22px; height: 22px; }
.tile-title { font-weight: 750; font-size: 1.05rem; }
.tile-sub { color: var(--muted); font-size: .88rem; }
.tile-foot { margin-top: 8px; font-size: .82rem; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.empty-card { text-align: center; padding: 34px 18px; }
.more-logout { margin-top: 10px; text-align: center; }

/* ---------- Archiv ---------- */
.hero-search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px 8px 8px 16px; box-shadow: var(--shadow); margin-bottom: 18px; transition: box-shadow .25s, border-color .25s; }
.hero-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-light), var(--shadow-lift); }
.hero-search svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.hero-search input { border: 0; box-shadow: none !important; font-size: 1.05rem; padding: 8px 4px; min-height: 44px; }
.term-tabs { margin-bottom: 14px; }
.results { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.results a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); transition: background .2s, transform .2s var(--ease); }
.results a:hover { background: var(--brand-light); transform: translateX(4px); }
.result-text { color: var(--muted); font-size: .92rem; }
.result-group { margin-top: 16px; }
mark { background: color-mix(in srgb, var(--brand-soft) 45%, #fff3b0); color: inherit; padding: 0; border-radius: 2px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-soft) 45%, #fff3b0); }

/* ---------- Zasedání a výbory ---------- */
.stepper li { transition: background .4s, color .4s, transform .3s var(--spring); }
.stepper li.current { animation: step-pulse 2.4s ease-in-out infinite; }
@keyframes step-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 40%, transparent); } 50% { box-shadow: 0 0 0 7px transparent; } }
.callout-green { background: var(--green-bg); }
.callout-action { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.input-title { font-weight: 650; min-height: 40px; }
.citem-body { margin: 10px 0 0 38px; }
.add-row { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.sticky-save { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 5; display: flex; justify-content: flex-end; padding: 10px 0; }
.sticky-save .btn { box-shadow: var(--shadow-lift); }
@media (min-width: 900px) { .sticky-save { bottom: 12px; } }
.card-warn { border-left: 4px solid var(--amber); }
.pad-title { padding: 18px 18px 0; }
.offline-card { text-align: center; }
.offline-icon svg { width: 56px; height: 56px; color: var(--brand); margin-bottom: 8px; }
@media (max-width: 560px) { .citem-body { margin-left: 0; } }

/* Hlasovací volby a odznaky */
.pc span, .seg span { transition: background .2s, border-color .2s, transform .25s var(--spring); }
.pc input:checked + span, .seg input:checked + span { animation: choose .35s var(--spring); }
@keyframes choose { 40% { transform: scale(1.08); } }
.badge { transition: transform .2s var(--spring); }
.count { transition: background .3s; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Nápověda u pole: měkčí bublina */
.fhelp-pop { border-radius: 10px; animation: pop-in .16s var(--ease); }

/* ---------- Omezení pohybu ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

  @view-transition { navigation: none; }
}

/* ---------- Dokumenty (úložiště s filtry) ---------- */
.doc-filter { padding: 16px 18px 6px; }
.doc-filter .hero-search { box-shadow: none; margin-bottom: 14px; padding-right: 6px; }
.doc-filter .hero-search .btn { flex: none; }
.doc-filter-row .field { margin-bottom: 12px; }
.doc-filter-row select { width: 100%; }
.doc-filter-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 4px 0 12px; }
.doc-filter-foot .check { margin: 0; font-size: .92rem; }
.doc-reset { margin-left: auto; }
.doc-types { margin-bottom: 12px; }
.doc-types .count { margin-left: 2px; }
.doc-types a.active .count { background: var(--brand-light); color: var(--brand-dark); }
.doc-rows { list-style: none; margin: 0; padding: 0; }
.doc-rows > .doc-row { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--line); transition: background .2s, transform .25s var(--ease); }
.doc-rows > .doc-row:first-child { border-top: 0; padding-top: 12px; }
.doc-row:hover { background: color-mix(in srgb, var(--brand-light) 55%, #fff); transform: translateX(4px); }
.doc-row .docicon { transition: transform .35s var(--spring); }
.doc-row:hover .docicon { transform: rotate(-6deg) scale(1.08); }
.doc-name { font-weight: 650; color: var(--text); text-decoration: none; }
.doc-name:hover { color: var(--brand-dark); text-decoration: underline; }
.doc-row .list-sub a { color: inherit; }
.doc-row .list-sub a:hover { color: var(--brand-dark); }
.doc-dl { padding: 6px 8px; min-height: 32px; }
.doc-dl svg { width: 18px; height: 18px; display: block; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 16px 0; }
@media (max-width: 560px) {
  .doc-rows > .doc-row { flex-wrap: wrap; padding: 12px 14px; }
  .doc-row .topic-row-badges { width: 100%; justify-content: flex-start; padding-left: 50px; }
  .doc-reset { margin-left: 0; }
  .doc-filter .hero-search .btn { display: none; }
}
.doc-filter-toggle { display: none; }
@media (max-width: 719px) {
  .doc-filter { padding-bottom: 12px; }
  .doc-filter .hero-search { margin-bottom: 10px; }
  .doc-filter-toggle { display: inline-flex; gap: 6px; align-items: center; }
  .doc-filter-more { display: none; margin-top: 12px; }
  .doc-filter.is-open .doc-filter-more { display: block; animation: rise .3s var(--ease) backwards; }
}

/* ---------- Úkoly: souhrn, skupiny podle naléhavosti, karty ---------- */
.tsum { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
@media (min-width: 760px) { .tsum { grid-template-columns: repeat(4, 1fr); } }
.tsum-item { position: relative; overflow: hidden; display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.tsum-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); color: var(--text); }
.tsum-item.is-on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light), var(--shadow); }
.tsum-item b { font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.tsum-item span { color: var(--muted); font-weight: 600; font-size: .85rem; }
.tsum-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand); }
.tsum-red b { color: var(--red); } .tsum-red::before { background: var(--red); }
.tsum-amber b { color: var(--amber); } .tsum-amber::before { background: #e3a008; }
.tsum-green b { color: var(--green); } .tsum-green::before { background: var(--green); }

.seg-link { display: inline-block; padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--muted); background: var(--surface); }
.seg-link.is-on { background: var(--brand-light); border-color: var(--brand); color: var(--brand-dark); }

.tgroup { margin-bottom: 20px; }
.tgroup-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 750; margin: 0 0 10px 2px; }
.tdot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.tdot-red { background: var(--red); box-shadow: 0 0 0 4px var(--red-bg); animation: tdot-pulse 2s ease-in-out infinite; }
.tdot-amber { background: #e3a008; box-shadow: 0 0 0 4px var(--amber-bg); }
.tdot-blue { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-bg); }
.tdot-mute { background: var(--line-strong); box-shadow: 0 0 0 4px var(--mute-bg); }
@keyframes tdot-pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.tlist { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }

.tcard { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s; animation: rise .45s var(--ease) both; }
.tcard:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.tcard::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--line-strong); }
.tcard-po::before { background: var(--red); }
.tcard-tyden::before { background: #e3a008; }
.tcard-pozdeji::before { background: var(--blue); }
.tcard-done { background: color-mix(in srgb, var(--surface) 70%, var(--bg)); }
.tcard-done::before { background: var(--green); }
.tcard-done .ttitle { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.tcard:target { box-shadow: 0 0 0 3px var(--brand-light), var(--shadow-lift); }

.tcheck-form { margin: 0; }
.tcheck { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; cursor: pointer; padding: 0; color: transparent; transition: border-color .2s, background .2s, color .2s, transform .25s var(--spring); }
.tcheck svg { width: 16px; height: 16px; stroke-width: 3; }
button.tcheck:hover { border-color: var(--green); color: var(--green); background: var(--green-bg); transform: scale(1.08); }
button.tcheck:active { transform: scale(.9); }
.tcheck.is-done { border-color: var(--green); background: var(--green); color: #fff; }
.tcheck.is-off { opacity: .4; }
.tcard-po button.tcheck { border-color: color-mix(in srgb, var(--red) 45%, var(--line-strong)); }

.tbody { flex: 1; min-width: 0; }
.ttitle { font-weight: 650; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tmeta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tchip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 6px; border-radius: 999px; background: var(--mute-bg); color: var(--muted); font-size: .8rem; font-weight: 600; text-decoration: none; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tchip svg { width: 14px; height: 14px; flex: none; }
a.tchip-link:hover { background: var(--brand-light); color: var(--brand-dark); }
.tchip-po { background: var(--red-bg); color: var(--red); }
.tchip-tyden { background: var(--amber-bg); color: var(--amber); }
.tchip-pozdeji { background: var(--blue-bg); color: var(--blue); }
.tchip-done { background: var(--green-bg); color: var(--green); }
.avatar-xs { width: 20px; height: 20px; font-size: .58rem; }
.tnote { margin-top: 8px; font-size: .9rem; background: var(--bg); border-radius: 8px; padding: 7px 10px; }
.tactions { flex: none; display: flex; gap: 6px; align-items: center; }
.tactions .dropdown-pop .btn { margin-top: 6px; }

.tpeople { display: grid; gap: 16px; }
@media (min-width: 1000px) { .tpeople { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.tperson { background: color-mix(in srgb, var(--brand-light) 35%, var(--bg)); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.tperson-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tperson-head > div { flex: 1; min-width: 0; }

.tempty { text-align: center; padding: 38px 18px; }
.tempty-icon svg { width: 54px; height: 54px; color: var(--green); stroke-width: 1.6; animation: tdone 1s var(--spring) both; }
@keyframes tdone { from { transform: scale(.5) rotate(-15deg); opacity: 0; } }
@media (max-width: 560px) { .tcard { padding-left: 14px; } .tmeta { gap: 5px; } }

/* =====================================================
   E-maily a AI (nastavení + tlačítka v aplikaci)
   ===================================================== */
.fw-normal { font-weight: 400; }
.mail-status { display: flex; align-items: center; gap: 14px; }
.mail-status-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; background: #c9ccc9; box-shadow: 0 0 0 5px rgba(0,0,0,.05); }
.mail-status.is-ok .mail-status-dot { background: #2f9e5b; box-shadow: 0 0 0 5px rgba(47,158,91,.16); animation: aiPulse 2.4s ease-in-out infinite; }
.mail-status.is-off .mail-status-dot { background: #d39a2a; box-shadow: 0 0 0 5px rgba(211,154,42,.16); }

.ai-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; position: relative; overflow: hidden; }
.ai-hero.is-on { background: linear-gradient(120deg, var(--brand-light), var(--surface) 60%); }
.ai-hero-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; flex: none; background: var(--mute-bg, #eef0ee); }
.ai-hero.is-on .ai-hero-icon { background: linear-gradient(135deg, var(--brand), var(--accent, #e0b43a)); }
.ai-hero-icon svg { width: 30px; height: 30px; fill: var(--muted); }
.ai-hero.is-on .ai-hero-icon svg { fill: #fff; animation: aiTwinkle 3.2s ease-in-out infinite; }
.ai-hero-body { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ai-meter { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 6px 0 2px; max-width: 420px; }
.ai-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--accent, #e0b43a)); transition: width .8s ease; }

.guide .steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 10px; }
.guide .steps li { counter-increment: st; position: relative; padding-left: 38px; line-height: 1.5; }
.guide .steps li::before { content: counter(st); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-light); color: var(--brand-dark); font-weight: 700; font-size: .85rem; }

.btn-ai { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 600; color: #fff; padding: 5px 12px; border-radius: 99px; margin-left: 8px;
  background: linear-gradient(110deg, var(--brand), var(--brand-dark) 45%, var(--accent, #e0b43a) 100%); background-size: 220% 100%; background-position: 0 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.12); transition: background-position .5s ease, transform .15s ease, box-shadow .2s; }
.btn-ai:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.16); }
.btn-ai:disabled { cursor: progress; opacity: .85; transform: none; }
.btn-ai.is-busy { animation: aiShimmer 1.1s linear infinite; }
.btn-ai.btn-ai-lg { font-size: .875rem; padding: 7px 14px; margin-left: 0; }
.field-label .btn-ai { vertical-align: middle; }
textarea.ai-filled { border-color: var(--accent, #e0b43a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #e0b43a) 25%, transparent); animation: aiGlow 1.6s ease-out 1; }

.ai-out { margin-top: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); animation: aiIn .35s ease-out; }
.ai-out-title { font-size: 1rem; margin: 0 0 8px; }
.ai-findings { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.ai-finding { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 8px 10px; border-radius: 8px; background: var(--surface); border-left: 3px solid #d39a2a; }
.ai-finding.ai-src-ai { border-left-color: var(--brand); }
.ai-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 2px 7px; border-radius: 99px; background: var(--brand-light); color: var(--brand-dark); }
.ai-who { margin-left: auto; font-size: .72rem; color: var(--muted); }
.ai-err { color: #a33a2a; margin: 6px 0 0; }

.ai-summary { margin-bottom: 14px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(120deg, var(--brand-light), var(--surface) 70%); }
.ai-summary-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.ai-summary-head .btn-ai { margin-left: auto; }
.ai-summary-list { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 4px; line-height: 1.5; }
.ai-summary-list li { animation: aiIn .4s ease-out backwards; }
.ai-summary-list li:nth-child(2) { animation-delay: .06s; } .ai-summary-list li:nth-child(3) { animation-delay: .12s; }
.ai-summary-list li:nth-child(4) { animation-delay: .18s; } .ai-summary-list li:nth-child(n+5) { animation-delay: .24s; }

@keyframes aiShimmer { from { background-position: 0 0; } to { background-position: 220% 0; } }
@keyframes aiTwinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.12) rotate(8deg); } }
@keyframes aiPulse { 0%, 100% { box-shadow: 0 0 0 5px rgba(47,158,91,.16); } 50% { box-shadow: 0 0 0 9px rgba(47,158,91,.06); } }
@keyframes aiGlow { from { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent, #e0b43a) 45%, transparent); } }
@keyframes aiIn { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .btn-ai, .btn-ai.is-busy, .ai-hero-icon svg, .mail-status-dot, textarea.ai-filled, .ai-out, .ai-summary-list li { animation: none !important; transition: none !important; }
}

/* =====================================================
   Menu bez znaku (znak je na Přehledu a v patičce), lupa, Usnesení, hledání
   ===================================================== */
.small { font-size: .85rem; }
.center { text-align: center; }
.section-title { font-size: 1.15rem; margin: 26px 0 10px; }
.brand { flex: none; }
.brand-kicker { font-size: .62rem; }
.topbar-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--muted); margin-left: auto; transition: background .2s, color .2s, transform .2s var(--ease); }
.topbar-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.topbar-icon:hover, .topbar-icon.active { background: var(--brand-light); color: var(--brand-dark); transform: scale(1.06); }
.topbar-icon + .usermenu { margin-left: 4px; }

.hero-emblem { position: absolute; top: 18px; right: 20px; width: 64px; height: 72px; object-fit: contain; z-index: 1;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); animation: emblemIn .8s var(--spring, ease-out) backwards .15s; }
.hero:hover .hero-emblem { transform: rotate(-4deg) scale(1.04); transition: transform .5s var(--spring, ease-out); }
@media (min-width: 760px) { .hero-emblem { width: 84px; height: 96px; top: 24px; right: 30px; } }
@keyframes emblemIn { from { opacity: 0; transform: translateY(-10px) scale(.85) rotate(-8deg); } }
.hero h1, .hero-date { padding-right: 76px; }
@media (min-width: 760px) { .hero h1, .hero-date { padding-right: 110px; } }
.footer-obec { display: inline-flex; align-items: center; gap: 8px; }
.footer-logo { width: 20px; height: 22px; object-fit: contain; }

.res-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.res-title { font-weight: 700; color: var(--text); text-decoration: none; }
.res-title:hover { color: var(--brand-dark); text-decoration: underline; }
.res-rejected .res-no { background: var(--mute-bg, #eef0ee); color: var(--muted); }
.res-rejected .res-text { color: var(--muted); }
.res-snippet { margin: 4px 0 6px; font-size: .9rem; padding: 6px 10px; border-radius: 8px; background: var(--bg); }
.result-more { margin-left: auto; font-size: .82rem; font-weight: 600; }
.result-group { display: flex; align-items: center; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .hero-emblem, .topbar-icon { animation: none !important; transition: none !important; } }

/* Výběr data a času (flatpickr, česky, 24 h) — barvy obce */
input.dt-alt { cursor: pointer; }
.inline-form input.dt-alt { width: 130px; min-height: 34px; padding: 4px 8px; }
.flatpickr-calendar { font-family: inherit; border-radius: 14px; box-shadow: 0 18px 50px rgba(16, 24, 20, .18); border: 1px solid var(--line); }
.flatpickr-calendar.arrowTop::before, .flatpickr-calendar.arrowTop::after { display: none; }
.flatpickr-months .flatpickr-month, .flatpickr-current-month .flatpickr-monthDropdown-months { font-weight: 700; }
.flatpickr-day.selected, .flatpickr-day.selected:hover, .flatpickr-day.startRange, .flatpickr-day.endRange { background: var(--brand); border-color: var(--brand); }
.flatpickr-day.today { border-color: var(--brand-soft); }
.flatpickr-day.today:hover, .flatpickr-day:hover { background: var(--brand-light); border-color: var(--brand-light); color: var(--text); }
.flatpickr-time input:hover, .flatpickr-time .flatpickr-am-pm:hover, .flatpickr-time input:focus { background: var(--brand-light); }
.flatpickr-time input { font-weight: 700; }
/* Globální styly polí (app.css) nesmí zasáhnout ovládání uvnitř kalendáře */
.flatpickr-calendar input, .flatpickr-calendar select { min-height: 0; width: auto; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; font: inherit; }
.flatpickr-current-month { padding-top: 6px; height: 34px; font-size: 1rem; }
.flatpickr-current-month .flatpickr-monthDropdown-months { padding: 0 2px; font-weight: 700; }
.flatpickr-current-month input.cur-year { width: 5ch; padding: 0 0 0 4px; font-weight: 700; }
.flatpickr-time { border-top: 1px solid var(--line); }
.flatpickr-time input { height: 40px; font-size: 1.05rem; text-align: center; width: 100%; }

/* Nápověda */
.help-tools { display: grid; gap: 14px; }
.help-toc { display: flex; flex-wrap: wrap; gap: 6px; }
.help-toc a { font-size: .85rem; font-weight: 600; padding: 5px 11px; border-radius: 99px; background: var(--brand-light); color: var(--brand-dark); text-decoration: none; transition: transform .2s var(--ease), background .2s; }
.help-toc a:hover { background: var(--brand); color: #fff; transform: translateY(-1px); }
.help-sec { scroll-margin-top: 84px; }
.help-sec:target { box-shadow: 0 0 0 3px var(--brand-light), var(--shadow); }
.help-sec .prose ul, .help-sec .prose ol { padding-left: 20px; display: grid; gap: 8px; line-height: 1.55; }
.help-sec .prose p { line-height: 1.6; }
.help-sec .fhelp { display: inline-grid; vertical-align: middle; }
.help-faq { border-top: 1px solid var(--line); padding: 10px 0; }
.help-faq:first-of-type { border-top: 0; }
.help-faq summary { cursor: pointer; font-weight: 600; }
.help-faq p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.footer-run a { color: inherit; font-weight: 600; }


/* =====================================================
   REFRESH 2026-10 — vrstva nového vzhledu (docs/refresh-2026-10, mockupy 20–22)
   Papír + inkoust, karty jen s linkou (radius 24), tlačítka 14, menu 10, klikací prvky min. 44 px.
   ===================================================== */
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.page { max-width: 1240px; padding: 32px 24px 96px; }
.footer { max-width: 1240px; padding: 0 24px 90px; font-size: .82rem; }
@media (max-width: 899px) { .page { padding: 20px 16px 96px; } }

/* Záhlaví: bílé, bez skla a čáry */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1240px; padding: 0 24px; height: 68px; gap: 24px; }
.brand::after { display: none; }
.brand-kicker { font-size: .66rem; letter-spacing: .1em; font-weight: 600; }
.brand-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; color: var(--sz-ink); }
.brand-mark { width: 34px; height: 40px; border-radius: 6px 6px 17px 17px; background: var(--brand); box-shadow: none; font-size: .95rem; }
.nav-pill { display: none; }
.mainnav { gap: 2px; }
.mainnav a, .topbar.nav-many .mainnav a { padding: 10px 14px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; font-size: .95rem; min-height: 44px; }
.mainnav a:hover { background: var(--line-soft); color: var(--sz-ink); }
.mainnav a.active, .mainnav.js-pill a.active, .mainnav:not(.js-pill) a.active { background: var(--sz-ink); color: #fff; }
.mainnav a svg { display: none; }
@media (min-width: 900px) and (max-width: 1099px) { .mainnav a span { display: inline; } .mainnav a, .topbar.nav-many .mainnav a { padding: 10px 10px; font-size: .9rem; } }
.topbar-icon { width: var(--tap); height: var(--tap); border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--sz-ink); transform: none !important; }
.topbar-icon:hover, .topbar-icon.active { background: var(--line-soft); color: var(--sz-ink); }
.usermenu-btn { min-height: var(--tap); padding: 0 12px 0 4px; border: 1px solid var(--line); background: var(--surface); }
.usermenu-btn:hover { background: var(--line-soft); }
.usermenu-btn .avatar { background: var(--sz-blue-light) !important; color: var(--sz-ink); }
.usermenu-pop, .dropdown-pop { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(19, 48, 77, .14); }

/* Spodní lišta: aktivní = tmavá pilulka kolem ikony */
.tabbar { background: var(--surface); border-top: 1px solid var(--line); }
.tabbar a { color: var(--text-2); font-size: .74rem; font-weight: 600; gap: 4px; padding: 8px 2px 8px; }
.tabbar a svg { box-sizing: border-box; width: 52px; height: 30px; padding: 4px 15px; border-radius: 15px; }
.tabbar a.active { color: var(--sz-ink); }
.tabbar a.active svg { background: var(--sz-ink); color: #fff; animation: none; }

/* Karty, dlaždice, řádky: bílé, linka, bez stínu a bez „poskakování“ */
.card, .tile, .stat, .tsum-item, .tcard, .tperson, .ai-summary { box-shadow: none; }
.card { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; margin-bottom: 24px; }
.card-flush { padding: 0; overflow: hidden; }
.tile, .stat, .tsum-item { border-radius: 20px; }
.tile:hover, .tsum-item:hover, .tcard:hover, .card:hover, .w-card:hover { transform: none; box-shadow: none; }
.tile:hover { border-color: var(--line-strong); }
.meet-row:hover, .topic-row:hover, .doc-row:hover { transform: none; background: var(--line-soft); }
.meet-row:hover .meet-row-date, .tile:hover .tile-icon, .doc-row:hover .docicon { transform: none; }
.meet-row-date { background: var(--sz-blue-light); color: var(--sz-ink); }
.res-no { background: var(--sz-blue-light); color: var(--sz-ink); }

/* Tlačítka a pole */
.btn { border-radius: var(--radius); min-height: var(--tap); font-weight: 600; }
.btn:active { transform: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: none; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: none; box-shadow: none; }
.btn-outline, .btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--sz-ink); }
.btn-outline:hover, .btn-ghost:hover { background: var(--line-soft); border-color: var(--line-strong); color: var(--sz-ink); transform: none; }
.btn-dark { background: var(--sz-ink); color: #fff; }
.btn-dark:hover { background: #0c2238; color: #fff; }
.btn-sm { min-height: 36px; border-radius: 12px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=search], select, textarea { border-radius: var(--radius); border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--sz-blue-light); }
.tabs a.active { box-shadow: none; border: 1px solid var(--line); color: var(--sz-ink); }
.hero-search { border-radius: var(--radius); box-shadow: none; }
.hero-search:focus-within { box-shadow: 0 0 0 3px var(--sz-blue-light); }
mark { background: var(--sz-seal-bg); box-shadow: 0 0 0 1px var(--sz-seal-bg); color: var(--sz-seal-text); }

/* AI: bez přechodů */
.ai-hero.is-on { background: var(--surface); }
.ai-hero.is-on .ai-hero-icon { background: var(--sz-ink); }
.ai-meter span { background: var(--brand); }
.btn-ai { background: var(--sz-ink); box-shadow: none; }
.btn-ai:hover { background: #0c2238; transform: none; box-shadow: none; }
.ai-summary { background: var(--surface); border-radius: 20px; }

/* Stavy zasedání: 5 dlaždic (hotové = zelené kolečko s fajfkou, aktuální = tmavá se žlutým číslem, budoucí = čárkovaně) */
.stepper { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 8px; margin: 0 0 24px; }
.stepper li { min-height: 52px; padding: 10px 14px; border-radius: var(--radius); background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); font-size: .98rem; font-weight: 600; animation: none !important; box-shadow: none; }
.stepper li span { width: 26px; height: 26px; background: var(--line-soft); color: var(--muted); font-size: .8rem; }
.stepper li.done { background: var(--surface); border: 1px solid var(--line); color: var(--sz-ink); }
.stepper li.done span { font-size: 0; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.stepper li.current { background: var(--sz-ink); border: 1px solid var(--sz-ink); color: #fff; }
.stepper li.current span { background: var(--sz-seal); color: var(--sz-ink); }
@media (max-width: 700px) { .stepper { grid-template-columns: repeat(5, minmax(96px, 1fr)); overflow-x: auto; } .stepper li { font-size: .85rem; padding: 8px 10px; } }

/* Patička: „běží na [symbol] schuzo.cz“ */
.footer-run { display: inline-flex; align-items: center; gap: 6px; }
.footer-run img { width: 16px; height: 16px; }
.footer-run strong { color: var(--sz-ink); }

/* ---------- Přehled (mockup 20) ---------- */
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.dash-date { color: var(--muted); font-weight: 500; font-size: .95rem; }
.dash-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -.04em; margin: 0; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-bottom: 24px; }
.dash-grid > .card { margin-bottom: 0; }
.dash-next { flex: 999 1 560px; min-width: 0; }
.dash-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.dn-head { padding: 28px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; border-bottom: 1px solid var(--line); }
.dn-date { flex: none; width: 92px; height: 104px; border-radius: 18px; background: var(--sz-seal); color: var(--sz-ink); text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .82rem; font-weight: 600; }
.dn-date b { font-family: var(--font-display); font-weight: 800; font-size: 2.75rem; line-height: 1; }
.dn-date:hover { color: var(--sz-ink); }
.dn-main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dn-kicker { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.dn-title { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: -.03em; line-height: 1.1; text-decoration: none; color: var(--sz-ink); }
.dn-title:hover { color: var(--brand); }
.dn-sub { color: var(--text-2); }
.dn-progress { flex: 0 1 220px; min-width: 180px; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.dn-progress-row { display: flex; justify-content: space-between; }
.dn-progress-row span { color: var(--muted); }
.bar { height: 8px; border-radius: 4px; background: var(--sz-blue-light); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 4px; background: var(--brand); }
.dn-left { color: var(--sz-seal-text); font-weight: 600; }
.dn-left .ok { color: var(--green); }
.dn-items { margin: 0; padding: 8px 28px 16px; list-style: none; }
.dn-items li { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.dn-items li:last-child { border-bottom: 0; }
.dn-no { flex: none; width: 30px; color: var(--muted); }
.dn-item { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dn-item a { font-weight: 600; text-decoration: none; color: var(--sz-ink); }
.dn-item a:hover { color: var(--brand); text-decoration: underline; }
.dn-empty, .dn-none { padding: 24px 28px; margin: 0; }
.chip { flex: none; font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-pill); white-space: nowrap; }
.chip-seal { background: var(--sz-seal-bg); color: var(--sz-seal-text); }
.chip-green { background: var(--green-bg); color: var(--green); }
.ds-head { display: flex; justify-content: space-between; align-items: baseline; }
.ds-head .card-title { margin: 0; font-size: 1.25rem; }
.card-link { font-size: .88rem; font-weight: 600; color: var(--brand); }
.ds-sep { height: 1px; background: var(--line); margin: 6px 0; }
.dtask { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--radius); background: var(--bg); }
.dtask-form { margin: 0; }
.dtask-check { width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; border: 2px solid var(--line-strong); background: var(--surface); cursor: pointer; padding: 0; position: relative; }
.dtask-check::after { content: ""; position: absolute; inset: -11px; } /* klikací plocha 44 px */
.dtask-check:hover { border-color: var(--green); background: var(--green-bg); }
.dtask-title { font-weight: 600; color: var(--sz-ink); text-decoration: none; }
.dtask-title:hover { text-decoration: underline; }
.dtask .list-sub { display: block; }
.dtask .late { color: var(--red); }
.ddoc { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--sz-ink); padding: 4px 0; }
.ddoc:hover .ddoc-name { text-decoration: underline; }
.ddoc-name { display: block; font-weight: 600; }
.dk { flex: none; width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; font-size: .7rem; font-weight: 700; }
.dk-blue { background: var(--sz-blue-light); color: var(--sz-blue); }
.dk-violet { background: #EFE9F7; color: #5B3F8A; }
.dk-red { background: var(--red-bg); color: var(--red); }
.dk-green { background: var(--green-bg); color: var(--green); }
.dcomments { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.dcomment { display: flex; gap: 12px; }
.dcomment a { font-weight: 600; color: var(--sz-ink); text-decoration: none; }
.dcomment a:hover { text-decoration: underline; }
.dcomment-text { display: block; color: var(--text-2); font-size: .95rem; }
@media (max-width: 640px) {
  .dash-head h1 { font-size: 2rem; }
  .dn-head { padding: 18px; gap: 16px; }
  .dn-date { width: 64px; height: 72px; border-radius: 14px; font-size: .7rem; }
  .dn-date b { font-size: 1.8rem; }
  .dn-title { font-size: 1.3rem; }
  .dn-items { padding: 4px 18px 10px; }
  .dn-progress { flex-basis: 100%; }
}

/* ---------- Zasedání (mockup 21) ---------- */
.cz-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.04em; }
.cz-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) {
  .cz-layout { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "main side"; }
  .cz-main { grid-area: main; } .cz-side { grid-area: side; position: sticky; top: 88px; }
}
.cz-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cz-side .card { margin: 0; padding: 22px; }
.cz-main { min-width: 0; }
.cz-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.cz-card-head .card-title { margin: 0; }
.cz-att-num { display: flex; align-items: baseline; gap: 8px; color: var(--muted); }
.cz-att-num b { font-family: var(--font-display); font-size: 3rem; font-weight: 800; line-height: 1; color: var(--sz-ink); }
.cz-att-bar { display: flex; gap: 6px; margin: 14px 0 10px; }
.cz-att-bar i { flex: 1; height: 8px; border-radius: 4px; background: var(--line); }
.cz-att-bar i.on { background: var(--brand); }
.cz-away { margin: 0; font-size: .9rem; color: var(--text-2); }
.cz-verifiers { margin: 4px 0 6px; font-size: 1.05rem; }
.cz-edit { margin-top: 12px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.cz-edit > summary { cursor: pointer; font-weight: 600; color: var(--brand); min-height: 32px; display: flex; align-items: center; }
.cz-edit[open] > summary { margin-bottom: 10px; }
.cz-side .attendance .att-row { flex-wrap: wrap; gap: 6px; }
.cz-side .row-links { display: flex; flex-wrap: wrap; gap: 6px; }
.cz-info { background: var(--sz-ink); color: #fff; border-radius: var(--radius-card); padding: 22px; }
.cz-info h2 { color: #fff; font-size: 1.25rem; margin: 0 0 8px; letter-spacing: -.02em; }
.cz-info p { margin: 0; color: var(--sz-blue-soft); font-size: .95rem; }

.cz-prog-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 14px; }
.cz-prog-head h2 { font-size: 1.6rem; margin: 0; }
.council-items { display: flex; flex-direction: column; gap: 14px; }
.citem, .citem:first-child { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 20px 22px; }
.citem:target { background: var(--surface); box-shadow: 0 0 0 3px var(--sz-blue-light); padding: 20px 22px; }
.citem.is-current { border: 2px solid var(--sz-ink); padding: 19px 21px; }
.citem-head { display: flex; gap: 14px; align-items: center; }
.citem-no { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--line-soft); color: var(--text-2); font-size: .95rem; }
.citem.is-done .citem-no { background: var(--green-bg); color: var(--green); }
.citem.is-current .citem-no { background: var(--sz-seal); color: var(--sz-ink); }
.citem-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.citem-title a, .citem-title strong { font-weight: 700; font-size: 1.05rem; color: var(--sz-ink); text-decoration: none; }
.citem.is-current .citem-title a, .citem.is-current .citem-title strong { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.citem-title a:hover { text-decoration: underline; }
.citem-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chip-red { background: var(--red-bg); color: var(--red); }
.citem-docs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0 48px; }
.doc-chip { padding: 8px 12px; border-radius: var(--radius-sm); background: var(--bg); color: var(--sz-ink); font-weight: 600; font-size: .9rem; text-decoration: none; border: 1px solid transparent; }
.doc-chip:hover { border-color: var(--line-strong); }
.citem-edit { margin: 14px 0 0 48px; border: 0; padding: 0; background: none; }
.citem-edit > summary { color: var(--brand); min-height: 32px; display: inline-flex; align-items: center; }
.resbox { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.vote-row { margin: 10px -14px -6px; padding: 12px 14px; border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; background: var(--bg); }
.vote-label { font-weight: 700; margin-right: 4px; }
.vote-row label { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 4px 4px 4px 12px; }
.vote-row input { border: 0; min-height: 36px; width: 60px; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.citem-foot { justify-content: flex-end; }
.citem .prose.small, .citem .res-view { margin-left: 48px; }
@media (max-width: 640px) {
  .citem, .citem:first-child { padding: 16px; }
  .citem-docs, .citem-edit, .citem .prose.small, .citem .res-view { margin-left: 0; }
  .vote-row { margin: 10px -10px -6px; }
}
h1 .badge, h2 .badge { font-family: var(--font); letter-spacing: 0; font-size: .82rem; font-weight: 600; padding: 4px 10px; vertical-align: middle; line-height: 1.4; }
.badge-amber { background: var(--sz-seal-bg); color: var(--sz-seal-text); }

/* ---------- Přihlášení (mockup 11): vlevo plocha v barvě obce, vpravo karta ---------- */
body.auth { background: var(--bg); min-height: 100vh; }
.auth-split { min-height: 100vh; display: grid; }
@media (min-width: 900px) { .auth-split { grid-template-columns: minmax(0, 48%) 1fr; } }
.auth-side { background: var(--brand); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; gap: 40px; justify-content: space-between; }
.auth-brand { display: flex; align-items: center; gap: 16px; }
.auth-brand small { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,.8); }
.auth-brand strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; letter-spacing: -.035em; line-height: 1; }
.auth-emblem { flex: none; width: 76px; height: 88px; border-radius: 12px 12px 38px 38px; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.auth-emblem img { width: 60px; height: 70px; object-fit: contain; }
.auth-emblem-none { border: 2px dashed rgba(255,255,255,.55); background: transparent; font-family: var(--font-display); font-weight: 800; font-size: 2rem; }
.auth-claim-h { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.9rem); letter-spacing: -.035em; line-height: 1.08; margin: 0 0 18px; max-width: 13em; }
.auth-next { margin: 0; font-size: 1.1rem; color: rgba(255,255,255,.9); }
.auth-host { font-size: .9rem; color: rgba(255,255,255,.75); }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 36px; box-shadow: none; margin: 0; }
.auth-h1 { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; letter-spacing: -.035em; margin: 0 0 14px; color: var(--sz-ink); }
.auth-card .muted { color: var(--text-2); }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .88rem; margin: 18px 0 14px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-foot { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; text-decoration: none; }
.auth-foot img { width: 18px; height: 18px; }
.auth-foot strong { color: var(--sz-ink); }
.auth-foot:hover strong { text-decoration: underline; }
@media (max-width: 899px) {
  .auth-side { padding: 28px 22px; gap: 22px; }
  .auth-brand strong { font-size: 1.8rem; }
  .auth-emblem { width: 56px; height: 66px; } .auth-emblem img { width: 44px; height: 52px; }
  .auth-claim-h { font-size: 1.6rem; }
  .auth-host { display: none; }
  .auth-main { justify-content: flex-start; padding: 24px 16px 40px; }
  .auth-card { padding: 26px 22px; }
}
@media (max-width: 640px) {
  .dash-actions { display: none; }
  .dn-head { flex-wrap: wrap; }
  .dn-main { flex: 1 1 0; }
}

/* ---------- Přihlášení: pohyb (plovoucí listy, pečeť „schváleno“, nadpis slovo po slově) ---------- */
.auth-side { position: relative; overflow: hidden; isolation: isolate; }
.auth-side > :not(.auth-anim) { position: relative; z-index: 1; }
.auth-anim { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sheet { position: absolute; width: 120px; aspect-ratio: 3 / 4; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  clip-path: polygon(0 0, 72% 0, 100% 21%, 100% 100%, 0 100%); padding: 40px 16px 0; display: flex; flex-direction: column; gap: 9px; box-sizing: border-box;
  animation: sheetFloat 22s ease-in-out infinite; }
.sheet::after { content: ""; position: absolute; top: 0; right: 0; width: 28%; aspect-ratio: 1; background: rgba(156,194,229,.35); clip-path: polygon(0 0, 0 100%, 100% 100%); border-bottom-left-radius: 6px; }
.sheet i { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); }
.sheet i:nth-child(2) { width: 80%; } .sheet i:nth-child(3) { width: 60%; } .sheet i:nth-child(4) { width: 70%; }
.sheet.s1 { left: 58%; top: 8%; width: 104px; --r: 8deg; animation-duration: 24s; }
.sheet.s2 { left: 78%; top: 34%; width: 82px; --r: -10deg; animation-duration: 19s; animation-delay: -6s; }
.sheet.s3 { left: 40%; top: 62%; width: 92px; --r: 12deg; animation-duration: 27s; animation-delay: -11s; opacity: .8; }
.sheet.s4 { left: 6%; top: 74%; width: 70px; --r: -6deg; animation-duration: 21s; animation-delay: -3s; opacity: .7; }
.sheet.s5 { left: 28%; top: 86%; width: 64px; --r: 4deg; animation-duration: 18s; animation-delay: -9s; opacity: .6; }
.sheet-main { position: absolute; right: 9%; bottom: 14%; width: 170px; --r: -4deg; animation: sheetMain 9s ease-in-out infinite; }
.sheet-main .sheet { position: relative; width: 100%; animation: none; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.24); }
.seal { position: absolute; right: -26px; bottom: -22px; width: 72px; height: 72px; border-radius: 50%; background: var(--sz-seal); border: 4px solid var(--sz-ink);
  display: grid; place-items: center; animation: sealStamp 9s cubic-bezier(.3, 1.6, .5, 1) -3.4s infinite; }
.seal svg { width: 34px; height: 34px; fill: none; stroke: var(--sz-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 24; stroke-dashoffset: 24; animation: sealCheck 9s ease-out -3.4s infinite; }
@keyframes sheetFloat {
  0%, 100% { transform: translate(0, 0) rotate(var(--r, 0deg)); }
  50% { transform: translate(-14px, -26px) rotate(calc(var(--r, 0deg) * -1)); }
}
@keyframes sheetMain { 0%, 100% { transform: rotate(var(--r)) translateY(0); } 50% { transform: rotate(calc(var(--r) + 2deg)) translateY(-10px); } }
@keyframes sealStamp {
  0%, 18% { transform: scale(2.4) rotate(-30deg); opacity: 0; }
  26% { transform: scale(.88) rotate(6deg); opacity: 1; }
  30%, 84% { transform: scale(1) rotate(0); opacity: 1; }
  92%, 100% { transform: scale(1) rotate(0); opacity: 0; }
}
@keyframes sealCheck { 0%, 28% { stroke-dashoffset: 24; } 38%, 100% { stroke-dashoffset: 0; } }

.auth-brand { animation: authIn .7s var(--ease) backwards; }
.auth-claim-h span { display: inline-block; animation: wordIn .6s var(--ease) backwards; animation-delay: calc(.25s + var(--w) * 70ms); }
.auth-next { display: flex; align-items: center; gap: 10px; animation: authIn .6s .95s var(--ease) backwards; }
.auth-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--sz-seal); animation: dotPulse 2.2s ease-in-out infinite; }
.auth-host { animation: authIn .6s 1.1s var(--ease) backwards; }
.auth-card { animation: cardIn .7s .2s var(--ease) backwards; transition: border-color .3s; }
.auth-card:focus-within { border-color: var(--line-strong); }
.auth-card input:focus { animation: fieldGlow .5s ease-out; }
.auth-foot { animation: authIn .6s .6s var(--ease) backwards; }
.auth-foot img { transition: transform .4s var(--spring); }
.auth-foot:hover img { transform: rotate(-10deg) scale(1.15); }
@keyframes authIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes wordIn { from { opacity: 0; transform: translateY(.5em) rotate(2deg); } }
@keyframes cardIn { from { opacity: 0; transform: translateX(24px); } }
@keyframes dotPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(244,183,64,.6); } 60% { box-shadow: 0 0 0 9px rgba(244,183,64,0); } }
@keyframes fieldGlow { from { box-shadow: 0 0 0 8px var(--sz-blue-light); } }
@media (max-width: 899px) { .sheet.s3, .sheet.s4, .sheet.s5 { display: none; } .sheet-main { width: 110px; right: 6%; bottom: 10%; } .seal { width: 52px; height: 52px; right: -18px; bottom: -16px; } .seal svg { width: 24px; height: 24px; } }
@media (prefers-reduced-motion: reduce) { .seal { opacity: 1; } .seal svg { stroke-dashoffset: 0; } }
.pw-gen { display: flex; gap: 8px; align-items: center; }
.pw-gen input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; }

/* ---------- Přihlášení: pohyb i na pravé straně ---------- */
.sheet { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22); }
.auth-main { position: relative; overflow: hidden; isolation: isolate; }
.auth-main > :not(.auth-bg) { position: relative; z-index: 1; }
.auth-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ab-sheet { position: absolute; width: 150px; aspect-ratio: 3 / 4; border: 1.5px solid rgba(19,48,77,.10); border-radius: 12px;
  clip-path: polygon(0 0, 72% 0, 100% 21%, 100% 100%, 0 100%); animation: sheetFloat 26s ease-in-out infinite; }
.ab-sheet::after { content: ""; position: absolute; top: -1px; right: -1px; width: 29%; aspect-ratio: 1; border-left: 1.5px solid rgba(19,48,77,.10); border-bottom: 1.5px solid rgba(19,48,77,.10); border-bottom-left-radius: 6px; }
.ab1 { left: 6%; top: 8%; --r: -8deg; }
.ab2 { right: 5%; top: 58%; width: 120px; --r: 10deg; animation-duration: 21s; animation-delay: -7s; }
.ab3 { left: 14%; bottom: 6%; width: 90px; --r: 4deg; animation-duration: 30s; animation-delay: -13s; }
.ab-ring { position: absolute; right: 9%; top: 9%; width: 120px; height: 120px; border-radius: 50%; border: 2px dashed rgba(19,48,77,.12); animation: ringSpin 40s linear infinite; }
.ab-ring::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; border: 1.5px solid rgba(19,48,77,.08); }
@keyframes ringSpin { to { transform: rotate(360deg); } }

/* Karta: linka nahoře se „nakreslí“, obsah naskočí postupně */
.auth-card { position: relative; overflow: hidden; }
.auth-card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--brand); transform-origin: left; animation: lineDraw .9s .45s var(--ease) backwards; }
@keyframes lineDraw { from { transform: scaleX(0); } }
.auth-card > *, .auth-card .form > * { animation: authIn .55s var(--ease) backwards; }
.auth-card > :nth-child(1) { animation-delay: .35s; } .auth-card > :nth-child(2) { animation-delay: .45s; }
.auth-card > :nth-child(3) { animation-delay: .55s; } .auth-card > :nth-child(4) { animation-delay: .65s; } .auth-card > :nth-child(5) { animation-delay: .75s; }
.auth-card .form > :nth-child(2) { animation-delay: .5s; } .auth-card .form > :nth-child(3) { animation-delay: .58s; }
.auth-card .form > :nth-child(4) { animation-delay: .66s; } .auth-card .form > :nth-child(5) { animation-delay: .74s; }
/* Tlačítko: přelesk při najetí (průsvitný pruh, ne barevný přechod) */
.auth-card .btn-primary { position: relative; overflow: hidden; }
.auth-card .btn-primary::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 26%; background: rgba(255,255,255,.28); transform: skewX(-20deg) translateX(0); transition: transform .7s var(--ease); }
.auth-card .btn-primary:hover::after { transform: skewX(-20deg) translateX(560%); }
.auth-card .btn-primary:active { transform: scale(.98); }
@media (max-width: 899px) { .ab-ring, .ab3 { display: none; } }

/* ---------- Kalendář na přehledu ---------- */
.dash-col { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.dash-col > .card { margin: 0; flex: none; }   /* ve svislém sloupci nesmí flex-basis (340/560 px) určovat výšku karty */
.dash-col-main { flex: 999 1 560px; }
.dash-cal { padding: 22px; scroll-margin-top: 90px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.cal-head .card-title { margin: 0; font-size: 1.2rem; }
.cal-nav { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; text-decoration: none; color: var(--sz-ink); font-size: 1.4rem; line-height: 1; }
.cal-nav:hover { background: var(--line-soft); color: var(--sz-ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dn { font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; padding: 2px 0 6px; }
.cal-day { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font-size: .9rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.cal-day.is-out { visibility: hidden; }
.cal-day.has-ev { background: var(--sz-blue-light); color: var(--sz-ink); font-weight: 700; cursor: default; }
.cal-day.is-today { background: var(--sz-ink); color: #fff; font-weight: 700; }
.cal-dots { position: absolute; bottom: 4px; left: 0; right: 0; display: flex; justify-content: center; gap: 2px; }
.cal-dots b, .cal-when b, .cal-legend b { width: 5px; height: 5px; border-radius: 50%; display: inline-block; background: var(--brand); }
.k-zasedani { background: var(--sz-ink) !important; }
.k-pracovni { background: var(--brand) !important; }
.k-vybor { background: var(--sz-blue-soft) !important; }
.cal-day.is-today .cal-dots b { background: #fff !important; }
.cal-list { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 8px; }
.cal-list li { display: flex; gap: 10px; align-items: baseline; font-size: .92rem; }
.cal-when { flex: none; width: 118px; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; }
.cal-when b { width: 8px; height: 8px; }
.cal-list a { color: var(--sz-ink); font-weight: 600; text-decoration: none; }
.cal-list a:hover { text-decoration: underline; }
.cal-empty { margin: 12px 0 0; font-size: .92rem; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; font-size: .78rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend b { width: 8px; height: 8px; }
.cal-month.is-loading { opacity: .55; transition: opacity .15s; pointer-events: none; }
.cal-sub { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.cal-link { display: inline-flex; align-items: center; min-height: 32px; font-size: .88rem; font-weight: 600; color: var(--brand); text-decoration: none; }
.cal-link:hover { text-decoration: underline; }
.cal-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; margin-right: 6px; flex: none; }
.cal-more { margin-top: 2px; }
.cal-more > summary { cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--brand); min-height: 32px; display: flex; align-items: center; }
.cal-copy { display: flex; gap: 6px; margin: 6px 0; }
.cal-copy input { flex: 1; min-width: 0; font-size: .8rem; min-height: 36px; }
.cal-more form { margin-top: 6px; }

/* ---------- Patička: zarovnání s obsahem, verze → Novinky ---------- */
.footer { align-items: center; row-gap: 8px; }
.footer-obec { flex-wrap: wrap; gap: 6px; }
.footer-ver { color: inherit; }
@media (max-width: 899px) { .footer { padding-left: 16px; padding-right: 16px; } }
.changelog { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.changelog .cl-ver { margin: 0; padding: 0; }
.cl-ver > summary { display: flex; align-items: center; gap: 12px; padding: 18px 22px; cursor: pointer; list-style: none; }
.cl-ver > summary::-webkit-details-marker { display: none; }
.cl-ver > summary::after { content: '›'; margin-left: auto; font-size: 1.3rem; color: var(--muted); transition: transform .2s; }
.cl-ver[open] > summary::after { transform: rotate(90deg); }
.cl-num { font-family: var(--font-display, inherit); font-weight: 800; font-size: 1.1rem; color: var(--sz-ink); }
.cl-date { color: var(--muted); font-size: .9rem; }
.cl-ver ul { margin: 0; padding: 0 22px 20px 42px; display: grid; gap: 6px; line-height: 1.5; }
