/* app.css */
/* Portfolio Tracker: značka ze starého webu (Manrope, modrá #4285f4 / #1642b9 / #001c68, oranžová #ee7b11),
   aplikace ve stylu Parseq (tmavé kartičky), úvodní stránka světlá jako starý web.
   Barvy grafů jsou ověřené validátorem na povrchu #0d1733. */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-latin-ext-wght-normal.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-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.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 {
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;          /* karty: zaoblení 12 a vrstvený měkký stín (styl 2018, plan/vzhled-2018.md) */
  /* jednotné míry (blok M1, MD/17): zaoblení, písmo, výšky ovládacích prvků, mezery */
  --r-xs: 6px; --r-sm: 8px; --r: 10px; --r-md: 12px; --r-lg: 14px; --r-pill: 999px; --r-btn: 999px;          /* tlačítka jako pilulky (styl 2018, plan/vzhled-2018.md) */
  --fs-xs: 12px; --fs-sm: 13px; --fs: 14px; --fs-md: 15px; --fs-lg: 17px; --fs-xl: 22px; --fs-2xl: 26px;
  --h-sm: 34px; --h: 40px; --h-lg: 48px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px;
  --orange: #ee7b11;
  --blue: #4285f4;
  --blue-mid: #1642b9;
  --blue-dark: #001c68;
  --c-blue: #2f6fe4;
  --c-amber: #c8790f;
  --c-magenta: #c23fb5;
  --c-teal: #0e9f8e;
  --c-olive: #9a9412;
  --c-violet: #7a68e0;
  --c-coral: #dd5350;
  --c-orange: var(--orange);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Motiv: světlý je výchozí, tmavý se zapíná přepínačem (html[data-color="dark"]). Nastavuje ho skript v hlavičce
   dřív, než se stránka vykreslí. Všechny komponenty berou barvy jen z těchto proměnných.
   23. 10. 2026 (audit, oddíl 3): JEDNA sada tokenů pro web i aplikaci. Hodnoty jsou z palety veřejné části schválené 17. až 19. 10. 2026
   (dřív měl public.css vlastní blok a přihlášený viděl tatáž data s jinou modrou a jiným pozadím). Patří sem i modrá scéna (--stage, --pas)
   a barvy textu na ní (--stage-ink…), protože bannery se kreslí ve webu i v aplikaci. public.css už nastavuje jen míry lišty. */
html, html[data-color="light"] {
  color-scheme: light;
  --bg: #f6f9fc;
  --bg-2: #eef3f9;
  --surface: #ffffff;
  --surface-2: #f0f4fa;
  --line: #e3e9f2;
  --line-soft: #ecf0f7;
  --grid: #e6ebf5;
  --ink: #0b1b4b;
  --ink-2: #3e4f7f;
  --ink-3: #6b7a9d;
  --accent: #ee7b11; --accent-text: #b4530a;          /* 20. 10.: oranžový TEXT na světlém podkladu, kontrast 5:1 (ne --accent-ink, to je text na oranžovém tlačítku) */
  --accent-ink: #1a0d00;          /* tmavý text na oranžovém tlačítku (kontrast 7:1); aplikace mívala bílý, od 23. 10. všude stejně */
  --link: #1f55d6;
  --brand: #1f55d6;
  --brand-ink: #ffffff;
  --brand-2: #4285f4;          /* světlejší modrá značky: konec přechodů, informační ikony */
  --brand-mid: #1642b9;
  --brand-deep: #001c68;
  --sel: #e4ecff;
  --up: #067a49;
  --down: #b72f2f;
  --warn: #b56a00;
  --heart: #e0245e;          /* srdce v komunitě (reakce „líbí se“), stejné v obou motivech */
  --tip-bg: #ffffff;
  --stage: linear-gradient(135deg, #001c68 0%, #1642b9 52%, #2f6fe4 100%);          /* modrá scéna: úvod, bannery, hlavičky webu, panel přihlášení */
  --pas: linear-gradient(90deg, #0b1b4b 0%, #14308a 55%, #1d4fd0 100%);          /* pás podlišty dat */
  --stage-ink: #ffffff;
  --stage-ink-2: #c9d8ff;
  --stage-accent: #ffc99a;          /* zesvětlená oranžová pro ikony a drobné texty na scéně */
  --stage-up: #8ff0b8; --stage-down: #ffb4b4;          /* růst a pokles na scéně (bannery s ukazateli) */
  --stage-line: rgba(255, 255, 255, .18);
  --stage-glass: rgba(255, 255, 255, .10);
  --shadow: 0 13px 27px -5px rgba(50, 50, 93, .18), 0 8px 16px -8px rgba(0, 0, 0, .14);
  --shadow-sm: 0 1px 2px rgba(50, 50, 93, .06), 0 8px 24px -14px rgba(50, 50, 93, .22);
  --shadow-banner: 0 24px 48px -28px rgba(0, 28, 104, .75);
  --overlay: rgba(11, 27, 75, .45);
  --page-bg: var(--bg);
  --side-bg: linear-gradient(180deg, #0b1b4b 0%, #10266a 60%, #15327f 100%);          /* levý panel jako banner (19. 10. večer) */
  --top-bg: rgba(255, 255, 255, .92);
}
html[data-color="dark"] {
  color-scheme: dark;
  --c-blue: #4285f4;
  --c-magenta: #cf4fc4;
  --c-teal: #16a596;
  --c-olive: #968f14;
  --c-violet: #8b7be8;
  --c-coral: #e0625f;
  --bg: #070d22;
  --bg-2: #0b1430;
  --surface: #101a38;
  --surface-2: #16224a;
  --line: #243359;
  --line-soft: #1b2748;
  --grid: #1c2749;
  --ink: #eaf0ff;
  --ink-2: #aebad9;
  --ink-3: #8392b8;
  --accent: #f39237; --accent-text: #ffb070;
  --accent-ink: #1a0d00;
  --link: #8db3ff;
  --brand: #6a9eff;
  --brand-ink: #061231;
  --sel: #1b3474;
  --up: #34d399;
  --down: #f87171;
  --warn: #f3a04a;
  --tip-bg: #060c1f;
  --stage: linear-gradient(135deg, #050b24 0%, #0b2a7a 55%, #1b4fd0 100%);
  --pas: linear-gradient(90deg, #060b1f 0%, #0b1f5a 55%, #123a9c 100%);
  --stage-ink-2: #b9c9f5;
  --stage-line: rgba(255, 255, 255, .14);
  --stage-glass: rgba(255, 255, 255, .07);
  --shadow: 0 16px 40px rgba(0, 0, 0, .5);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);
  --shadow-banner: 0 24px 48px -24px rgba(0, 0, 0, .8);
  --overlay: rgba(2, 6, 18, .72);
  --page-bg: var(--bg);          /* 23. 10.: bez záře nahoře, stejně jako veřejná část */
  --side-bg: linear-gradient(180deg, #060b1f 0%, #0a1740 60%, #0d1f55 100%);
  --top-bg: rgba(7, 13, 34, .88);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page-bg); background-attachment: fixed; color: var(--ink);
  font: 15px/1.5 var(--font); min-height: 100vh; transition: background-color .3s, color .3s;
}
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.accent { color: var(--orange); }
code { background: var(--bg-2); padding: 2px 6px; border-radius: 6px; font-size: .92em; }

/* ---------- ukazatel načítání při přechodu stránek ---------- */
#pt-progress { position: fixed; z-index: 100; left: 0; top: 0; height: 3px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; pointer-events: none; }
#pt-progress.on { opacity: 1; transition: transform 6s cubic-bezier(.1, .6, .2, 1); transform: scaleX(.85); }
#pt-progress.done { opacity: 0; transform: scaleX(1); transition: transform .2s, opacity .4s .15s; }

/* ---------- horní lišta ---------- */
/* .brand (značka v levém panelu) je jen v ui.css; druhá definice odsud smazána 23. 10. 2026 */
.clocks { display: flex; gap: 10px; }
.clock { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; background: var(--bg-2); }
.clock b { color: var(--ink); font-weight: 700; }
.clock .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.clock.open .dot { background: var(--up); }
.clocks .clock { display: none; }          /* jedna burza v liště (Vojta 17. 10.): otevřená, jinak ta, která otevře dřív; vybírá live.js, bez skriptu Praha */
.clocks .clock.show { display: inline-flex; }
.indices { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.ix { display: inline-flex; gap: 8px; align-items: baseline; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; white-space: nowrap; background: var(--bg-2); }
.ix-name { color: var(--ink-2); }
.ix-chg { font-variant-numeric: tabular-nums; font-weight: 700; }
.ix.up .ix-chg { color: var(--up); }
.ix.down .ix-chg { color: var(--down); }

/* tlačítka, karty, výběry, zaškrtávátka a dlaždice jsou jen v ui.css (blok M1) */

/* ---------- vyhledávání ---------- */
.search { position: relative; }
.search > svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input {
  width: 100%; height: 48px; padding: 0 16px 0 44px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 15px;
}
.search input::placeholder { color: var(--ink-3); }
.search input[type="search"]::-webkit-search-cancel-button, .search input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }          /* křížek prohlížeče se k poli nehodí; mazání dělá Escape nebo smazání textu */
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.search-top { max-width: 640px; margin: 22px auto 18px; }
.search-big { max-width: 560px; margin: 26px 0 0; }
.search-big input { height: 54px; font-size: 16px; border-radius: 14px; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: 380px; overflow-y: auto; }
.search-results li { display: grid; grid-template-columns: 32px minmax(60px, auto) minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 46px; padding: 7px 10px; border-radius: 10px; cursor: pointer; }
.search-results .sr-logo { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); color: var(--ink-3); font-size: 11px; font-weight: 800; overflow: hidden; }
.search-results .sr-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 3px; }
.search-results .sr-logo-page { font-size: 18px; color: var(--brand); }
.search-results li[aria-selected="true"], .search-results li:hover { background: var(--sel); }
.search-results li[aria-selected="true"] .sr-logo, .search-results li:hover .sr-logo, .search-results li[aria-selected="true"] .sr-ex, .search-results li:hover .sr-ex { background: var(--surface); }
.search-results .sr-sym { font-weight: 800; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.search-results .sr-name { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results .sr-ex { justify-self: end; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-3); font-size: 11px; font-weight: 700; white-space: nowrap; }
.search-results .sr-empty { display: block; color: var(--ink-3); cursor: default; }
.search-results .sr-group { display: block; min-height: 0; padding: 10px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); cursor: default; background: none !important; }          /* nadpis skupiny v našeptávači (20. 10. večer) */
.search-results .sr-group:first-child { padding-top: 4px; }

/* ---------- úvodní stránka (světlá, jako starý web) ---------- */
.eyebrow { color: var(--orange); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.lead { color: var(--ink-2); font-size: 18px; max-width: 540px; }
.home-hero { text-align: center; padding: 64px 0 34px; }
.home-hero h1 { font-size: clamp(30px, 5vw, 48px); letter-spacing: -.025em; margin-bottom: 12px; }
.home-hero .search-big { margin: 26px auto 0; }
.logo-tile { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--sel); color: var(--brand); font-weight: 800; flex: none; }
.tag { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--sel); color: var(--link); font-size: 12px; font-weight: 600; }

/* ---------- stránka titulu ---------- */
.company { padding-bottom: 40px; }
.hero { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px 22px; align-items: center; }
.hero-id { display: flex; gap: 16px; align-items: center; min-width: 0; }
.logo-tile { width: 60px; height: 60px; border-radius: 14px; font-size: 26px; }
.hero h1 { font-size: 26px; letter-spacing: -.02em; line-height: 1.15; font-weight: 800; }
.meta { color: var(--ink-2); margin-top: 6px; font-size: 14px; }
.meta b { color: var(--ink); }
.crumb-sep { color: var(--ink-3); }
.hero-price { text-align: right; }
.price { font-size: 44px; line-height: 1.05; font-weight: 800; letter-spacing: -.025em; }
.price .cur { font-size: 20px; color: var(--ink-2); font-weight: 600; }
.change { font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.change.up { color: var(--up); }
.change.down { color: var(--down); }
.hero-price .sub { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }

.range { display: block; height: 4px; background: var(--sel); border-radius: 2px; position: relative; margin-top: 6px; }
.range em { position: absolute; top: -3px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px var(--surface); }

.card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px 0; }          /* stejné odsazení a písmo jako .card-h (M1) */
.card-head h2 { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-right: auto; }
.swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--c-blue)); display: inline-block; flex: none; }
.chart-card { margin-top: 12px; padding-bottom: 8px; }
.readout { padding: 8px 16px 0; color: var(--ink-3); font-size: 13px; min-height: 28px; }
.readout b { color: var(--ink); font-variant-numeric: tabular-nums; }
.readout .up { color: var(--up); }
.readout .down { color: var(--down); }
.chart { width: 100%; }
.chart-price { height: 430px; }
.chart-big { height: 400px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 12px; flex-wrap: wrap; }
.toolbar h2 { font-size: 20px; letter-spacing: -.01em; font-weight: 800; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; transition: opacity .2s; }
.grid.loading { opacity: .6; }
.metric { padding-bottom: 8px; min-width: 0; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.metric:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow); }
.metric .chart { height: 230px; }
.nodata { display: grid; place-items: center; height: 230px; color: var(--ink-3); font-size: 14px; text-align: center; padding: 0 20px; }

.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--c); display: inline-block; }
.legend i.box { height: 10px; width: 10px; border-radius: 3px; }
.metric .legend { padding: 4px 16px 0; }

/* přepínače */
.metric .card-head { display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 8px; }
.metric .card-head h2 { margin-right: 0; min-width: 0; }
.metric .card-head .seg { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
#dlg-table-btn { width: auto; padding: 0 10px; font-size: 12.5px; }

/* ---------- kostra při načítání ---------- */
.skeleton { min-height: 290px; padding: 18px 16px; display: grid; gap: 16px; align-content: start; }
.sk-line, .sk-chart, .map-skeleton i { background: linear-gradient(100deg, var(--surface-2) 30%, var(--line) 50%, var(--surface-2) 70%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; border-radius: 8px; }
.sk-line { height: 16px; width: 42%; }
.sk-chart { height: 200px; }
@keyframes shimmer { from { background-position: 110% 0; } to { background-position: -110% 0; } }

/* ---------- okno s detailem grafu ---------- */
dialog { width: min(1040px, calc(100vw - 20px)); max-height: calc(100vh - 20px); overflow: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); padding: 16px 18px 18px; }
dialog[open] { animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
dialog::backdrop { background: var(--overlay); backdrop-filter: blur(3px); }
.dlg-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.dlg-head h2 { font-size: 18px; margin-right: auto; display: flex; align-items: center; gap: 8px; }
.dlg-legend { margin: 6px 0 2px; min-height: 20px; }
.dlg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.dlg-table { max-height: 400px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.dlg-table table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.dlg-table th, .dlg-table td { padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.dlg-table th:first-child, .dlg-table td:first-child { text-align: left; }
.dlg-table thead th { position: sticky; top: 0; background: var(--bg-2); color: var(--ink-2); font-weight: 700; }

.about { margin-top: 24px; padding: 20px 22px; }
.about h2 { font-size: 18px; margin-bottom: 10px; }
.about p { color: var(--ink-2); max-width: 90ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0 0; }
.facts dt { color: var(--ink-3); font-size: 12.5px; }
.facts dd { margin: 0; font-weight: 600; }
.facts a { color: var(--link); text-decoration: none; }
.facts a:hover { text-decoration: underline; }

.sitefoot { border-top: 1px solid var(--line-soft); color: var(--ink-3); font-size: 12.5px; padding: 20px 0 40px; margin-top: 20px; }
.sitefoot p + p { margin-top: 4px; }

/* tooltip grafů (ECharts ho vkládá do body) */
.tt { font: 12.5px/1.4 var(--font); min-width: 150px; }
.tt-h { color: var(--ink-2); margin-bottom: 4px; }
.tt-r { display: flex; align-items: center; gap: 8px; padding: 1px 0; }
.tt-r i { width: 12px; height: 3px; border-radius: 2px; flex: none; }
.tt-r b { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.tt-r span { color: var(--ink-2); margin-left: auto; padding-left: 10px; }
.tt-sub { margin: 0 0 3px 20px; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }          /* změna proti minulému období pod hodnotou (20. 10. večer) */
.tt-sub .up { color: var(--up); font-weight: 800; }
.tt-sub .down { color: var(--down); font-weight: 800; }

/* ---------- plynulé přechody stránek ---------- */
.page-enter > * { animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadein .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes fadein { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
#app.leaving { opacity: 0; transform: translateY(6px); transition: opacity .16s, transform .16s; }

/* ---------- mapa trhu ---------- */
.map-page { max-width: none; padding: 12px 14px 0; }
.map-shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 12px; height: calc(100vh - 60px - 24px); min-height: 560px; }
.map-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 12px; overflow-y: auto; display: grid; gap: 18px; align-content: start; }
.map-side h2 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin: 0 4px 8px; }
.side-list { display: grid; gap: 3px; }
.side-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14px; transition: background-color .15s, color .15s; }
.side-btn em { font-style: normal; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.side-btn:hover { background: var(--surface-2); color: var(--ink); }
.side-btn.on { background: var(--brand); color: var(--brand-ink); }
.side-btn.on em { color: rgba(255, 255, 255, .75); }
.side-note { color: var(--ink-3); font-size: 12.5px; line-height: 1.5; }

.map-main { display: flex; flex-direction: column; min-width: 0; gap: 10px; }
.map-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: relative; z-index: 12; }
.metric-pick { position: relative; }
.metric-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; transition: border-color .15s; }
.metric-btn:hover, .metric-btn[aria-expanded="true"] { border-color: var(--brand); }
.metric-menu, .popover { position: absolute; z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); animation: pop .16s var(--ease); }
.metric-menu { top: calc(100% + 6px); left: 0; width: 340px; max-height: min(520px, 70vh); display: flex; flex-direction: column; }
.metric-search { margin: 8px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); padding: 0 10px; color: var(--ink); }
.metric-list { overflow-y: auto; padding: 0 6px 8px; }
.metric-group h3 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 10px 8px 4px; }
.metric-group button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 7px 10px; border-radius: 7px; color: var(--ink-2); font-size: 13.5px; }
.metric-group button:hover { background: var(--surface-2); color: var(--ink); }
.metric-group button.on { background: var(--sel); color: var(--ink); font-weight: 700; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: 12.5px; font-weight: 700; transition: background-color .15s, color .15s, border-color .15s, transform .15s var(--ease); }
.chip:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-1px); }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.map-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.tool-search { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); color: var(--ink-3); }
.tool-search input { border: 0; background: transparent; outline: none; width: 110px; color: var(--ink); text-transform: uppercase; }
.tool-search input::placeholder { text-transform: none; color: var(--ink-3); }
.zoom-btns { display: inline-flex; gap: 4px; }
.pop-wrap { position: relative; }
.popover { top: calc(100% + 6px); right: 0; width: 260px; padding: 8px; }

.map-stage { position: relative; flex: 1; min-height: 420px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-canvas { position: absolute; inset: 0; overflow: auto; scrollbar-width: thin; }
.map-inner { position: relative; }
.map-crumb { position: absolute; z-index: 6; left: 12px; top: 10px; display: flex; align-items: center; gap: 10px; padding: 5px 8px 5px 5px; border-radius: 10px; background: rgba(6, 12, 31, .82); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.map-crumb button { border: 0; border-radius: 7px; padding: 5px 10px; background: var(--sel); font-weight: 700; font-size: 13px; }
.map-crumb button:hover { background: #274b9d; }

.mg { position: absolute; border: 1px solid var(--bg); overflow: hidden; transition: left .55s var(--ease), top .55s var(--ease), width .55s var(--ease), height .55s var(--ease), opacity .4s; }
.mg > .mh { position: absolute; left: 0; right: 0; top: 0; padding: 0 5px; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #cfd9f5; background: rgba(10, 19, 48, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; }
.mg.sector > .mh { cursor: zoom-in; }
.mg.sector > .mh:hover { background: #1c3273; color: #fff; }
.mg.industry > .mh { font-size: 9.5px; font-weight: 700; color: #9db0de; background: rgba(10, 19, 48, .7); }
.mt { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; color: #fff; cursor: pointer; border: 1px solid rgba(6, 12, 31, .9);
  transition: left .55s var(--ease), top .55s var(--ease), width .55s var(--ease), height .55s var(--ease), background-color .45s, opacity .35s, filter .12s, box-shadow .12s; }
.mt:hover { z-index: 4; filter: brightness(1.18); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .92); }
.mt.dim { opacity: .18; }
.mt.hit { z-index: 5; box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px var(--orange); animation: pulse 1s ease 2; }
@keyframes pulse { 50% { filter: brightness(1.5); } }
.mt .t { font-weight: 800; line-height: 1.05; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); letter-spacing: -.01em; pointer-events: none; }
.mt .n { font-weight: 600; font-size: 10px; opacity: .85; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.mt .v { font-weight: 600; opacity: .95; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); font-variant-numeric: tabular-nums; pointer-events: none; }
.mt.enter { animation: tilein .5s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes tilein { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

.map-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; }
.map-empty b { font-size: 18px; color: var(--ink); }
.map-empty p { margin: 0; max-width: 440px; color: var(--ink-3); line-height: 1.5; }
.map-skeleton { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; gap: 3px; padding: 3px; }
.map-skeleton i { border-radius: 2px; animation-delay: calc(var(--i) * 60ms); }
.map-skeleton i:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.map-skeleton i:nth-child(7) { grid-column: span 2; }

.map-tip { position: fixed; z-index: 60; width: 270px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); pointer-events: none; animation: fadein .12s ease both; }
.tip-head { display: flex; align-items: baseline; gap: 8px; }
.tip-head b { font-size: 17px; font-weight: 800; }
.tip-name { color: var(--ink-2); font-size: 13px; margin-top: 1px; }
.tip-sec { color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.tip-price { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 2px; }
.tip-price b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tip-price span { font-weight: 700; font-variant-numeric: tabular-nums; }
.tip-price .up { color: var(--up); } .tip-price .down { color: var(--down); }
.tip-spark { display: block; width: 100%; height: 44px; margin: 4px 0 6px; }
.tip-grid { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; font-size: 12.5px; }
.tip-grid span { color: var(--ink-3); }
.tip-grid b { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.tip-grid .cur { color: var(--ink); background: var(--sel); margin: 0 -6px; padding: 0 6px; border-radius: 5px; }
.tip-grid .cur + b { background: var(--sel); margin: 0 -6px 0 0; padding: 0 6px; border-radius: 5px; }

.map-table { position: absolute; inset: 0; overflow: auto; }
.map-table table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.map-table th, .map-table td { padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.map-table th:nth-child(-n+3), .map-table td:nth-child(-n+3) { text-align: left; }
.map-table thead th { position: sticky; top: 0; z-index: 2; background: var(--bg-2); color: var(--ink-2); font-weight: 700; cursor: pointer; user-select: none; }
.map-table thead th:hover { color: var(--ink); }
.map-table tbody tr { cursor: pointer; transition: background-color .12s; }
.map-table tbody tr:hover { background: var(--surface-2); }
.map-table td.metric-cell { font-weight: 800; }

.map-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 0 2px 10px; }
.map-status { color: var(--ink-3); font-size: 12.5px; display: flex; align-items: center; gap: 10px; }
.map-status .bar { width: 120px; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.map-status .bar i { display: block; height: 100%; background: var(--orange); transition: width .6s var(--ease); }
.legend-scale { display: flex; gap: 2px; align-items: center; }
.legend-scale span { min-width: 46px; text-align: center; padding: 5px 6px; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); font-variant-numeric: tabular-nums; }
.legend-scale span:first-child { border-radius: 6px 0 0 6px; } .legend-scale span:last-child { border-radius: 0 6px 6px 0; }
body.map-full .topbar, body.map-full .sitefoot { display: none; }
body.map-full .map-shell { height: 100vh; }

/* ---------- mobil ---------- */
@media (max-width: 1000px) {
  .clocks { display: none; }
  .landing-hero { grid-template-columns: 1fr; padding-top: 32px; }
  .landing-art { display: none; }
  .map-shell { grid-template-columns: 1fr; height: auto; }
  .map-side { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 12px; overflow: visible; }
  .map-side section { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .map-side h2 { margin: 0; white-space: nowrap; }
  .side-list { display: flex; flex-wrap: wrap; gap: 4px; }
  .side-btn { width: auto; padding: 6px 12px; }
  .map-side section:last-child { display: none; }
  .map-side .select { width: auto; min-width: 170px; }
  .map-stage { height: 68vh; min-height: 420px; flex: none; }
}
@media (max-width: 720px) {
  .topbar-in { gap: 8px 14px; }
  .topbar-market { order: 3; width: 100%; margin-left: 0; }
  .hero { padding: 16px; }
  .hero-price { text-align: left; }
  .price { font-size: 38px; }
  .chart-price { height: 340px; }
  .grid { grid-template-columns: 1fr; }
  .seg button { min-height: 36px; padding: 6px 12px; }
  .icon-btn { width: 38px; height: 38px; }
  .chip { height: 36px; }
  .home-hero { padding-top: 40px; }
  dialog { padding: 12px; }
  .chart-big { height: 320px; }
  .map-tools { margin-left: 0; width: 100%; }
  .metric-menu { width: min(340px, calc(100vw - 28px)); }
  .legend-scale span { min-width: 38px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* přístupové heslo (soukromá verze) */
.gate-form { display: grid; gap: 12px; max-width: 340px; margin: 26px auto 0; text-align: left; }
.gate-form input[type="password"] { height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 16px; }
.gate-form input[type="password"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.gate-err { color: var(--down); font-weight: 600; text-align: center; }

/* ---------- stav systému ---------- */
.stat-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 5px; vertical-align: 1px; background: var(--ink-3); }
.stat-dot.stat-ok { background: var(--up); box-shadow: 0 0 0 3px color-mix(in srgb, var(--up) 18%, transparent); }
.stat-dot.stat-warn { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 20%, transparent); }
.stat-dot.stat-err { background: var(--down); box-shadow: 0 0 0 3px color-mix(in srgb, var(--down) 20%, transparent); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .45; } }
.status-page { padding-bottom: 40px; }
.st-live { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 22px; }
.st-live > * { min-width: 0; }
.st-badge { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.st-badge h1 { font-size: 24px; letter-spacing: -.02em; }
.st-badge p { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.st-dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 800; color: #fff; flex: none; }
.st-badge.st-ok { border-color: color-mix(in srgb, var(--up) 45%, transparent); } .st-badge.st-ok .st-dot { background: var(--up); }
.st-badge.st-warn { border-color: color-mix(in srgb, var(--warn) 50%, transparent); } .st-badge.st-warn .st-dot { background: var(--warn); }
.st-badge.st-err { border-color: color-mix(in srgb, var(--down) 55%, transparent); } .st-badge.st-err .st-dot { background: var(--down); }
.st-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.st-checks li { display: grid; grid-template-columns: 26px 170px 1fr; gap: 10px; align-items: baseline; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.st-checks .st-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; align-self: center; }
.st-checks .st-ok .st-ic { background: var(--up); } .st-checks .st-info .st-ic { background: var(--brand-2); }
.st-checks .st-warn .st-ic { background: var(--warn); } .st-checks .st-err .st-ic { background: var(--down); }
.st-checks b { font-weight: 700; }
.st-checks li > span:last-child { color: var(--ink-2); }
.st-checks .st-err { border-color: rgba(248, 113, 113, .5); } .st-checks .st-warn { border-color: rgba(245, 165, 36, .45); }
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.st-grid > * { min-width: 0; }
.st-box { padding: 16px 18px; }
.st-box h2 { font-size: 15px; font-weight: 800; margin-bottom: 12px; display: flex; gap: 10px; align-items: baseline; }
.st-box h2 em { font-style: normal; font-weight: 500; color: var(--ink-3); font-size: 12.5px; }
.st-box h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 16px 0 8px; }
.st-prog { margin-bottom: 12px; }
.st-prog-h { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 5px; }
.st-prog-h b { font-variant-numeric: tabular-nums; }
.st-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.st-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--orange)); border-radius: 4px; transition: width .6s var(--ease); }
.st-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px 16px; margin: 14px 0 0; }
.st-facts dt { color: var(--ink-3); font-size: 12px; }
.st-facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.st-empty { color: var(--ink-3); font-size: 13.5px; }
.st-usage { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.st-usage li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
.st-usage em { grid-column: 1 / -1; font-style: normal; color: var(--ink-3); font-size: 12px; }
.st-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 420px; overflow-y: auto; font-size: 13px; }
.st-events li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 4px 8px; border-radius: 6px; }
.st-events span { overflow-wrap: anywhere; }
.st-events li:nth-child(odd) { background: var(--bg-2); }
.st-events time { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.st-ev-warning span { color: var(--warn); } .st-ev-error span { color: var(--down); }
.st-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.st-table th, .st-table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line-soft); overflow-wrap: anywhere; }
.st-table th { color: var(--ink-3); font-weight: 600; }
.nav-stav { white-space: nowrap; }
@media (max-width: 720px) {
  .st-checks li { grid-template-columns: 26px 1fr; }
  .st-checks li > span:last-child { grid-column: 2; }
  .st-events li { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* ---------- živé ceny ---------- */
.pill { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .01em; background: var(--sel); color: var(--ink-2); white-space: nowrap; }
.pill.st-regular { background: rgba(10, 143, 91, .14); color: var(--up); }
.pill.st-pre, .pill.st-post { background: rgba(238, 123, 17, .16); color: var(--warn); }
.pill.st-closed, .pill.st-prepre, .pill.st-postpost { background: var(--sel); color: var(--ink-3); }
.lv-state-row { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 6px; min-height: 22px; }
.lv-delay { color: var(--ink-3); font-size: 12px; }
.lv-ext { margin-top: 4px; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lv-ext.up { color: var(--up); }
.lv-ext.down { color: var(--down); }
.hero-price .sub b { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
td [data-ts] { color: var(--ink-3); }          /* 20. 10.: stáří ceny v tabulkách šedě, oranžově jen u titulu, který se obchoduje a přesto dlouho nedostal cenu (live.js) */
[data-ts].stale { color: var(--warn); font-weight: 700; }
@keyframes flash-up { 0% { background-color: rgba(48, 204, 90, .38); } 100% { background-color: transparent; } }
@keyframes flash-down { 0% { background-color: rgba(246, 53, 56, .38); } 100% { background-color: transparent; } }
.flash-up { animation: flash-up .9s ease-out; border-radius: 6px; }
.flash-down { animation: flash-down .9s ease-out; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .flash-up, .flash-down { animation: none; } }
.live-row .stat { cursor: default; }
.chart-day { height: 260px; }
.logo-tile { position: relative; overflow: hidden; }
.logo-tile .logo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 6px; border-radius: inherit; opacity: 0; transition: opacity .25s; }
.logo-tile.has-img .logo-img { opacity: 1; }
.logo-tile.logo-pair { display: flex; align-items: center; justify-content: center; gap: 0; background: var(--sel); }
.logo-tile.logo-pair img { position: static; opacity: 1; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; padding: 0; background: none; border: 2px solid var(--surface); }
.logo-tile.logo-pair img + img { margin-left: -8px; }
.map-live { color: var(--ink-3); font-size: 12.5px; }
.map-live b { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- čerstvost dat ---------- */
.fresh { padding: 16px 18px; margin-top: 14px; }
.fresh h2 { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.fresh-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.fresh-table th, .fresh-table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line-soft, var(--line)); overflow-wrap: anywhere; }
.fresh-table th { color: var(--ink-3); font-weight: 600; font-size: 12px; }
.fresh-table td:nth-child(2), .fresh-table td:nth-child(3) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fresh-note { color: var(--ink-3); font-size: 12.5px; margin-top: 10px; }

/* ---------- stránka Trhy ---------- */
.markets { padding-bottom: 40px; }
.mk-card { padding: 16px 18px; margin-bottom: 14px; }
.mk-card h2 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.mk-sub { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 14px 0 4px; }
.mk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mk-table th { color: var(--ink-3); font-size: 12px; font-weight: 700; text-align: left; padding: 4px 10px 7px; border-bottom: 1px solid var(--line); }
.mk-table td { padding: 7px 10px; border-bottom: 1px solid var(--line-soft, var(--line)); }
.mk-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-table th.num { text-align: right; }
.mk-table tbody tr { cursor: pointer; transition: background-color .12s; }
.mk-table tbody tr:hover { background: var(--surface-2); }
.mk-name a { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; min-width: 0; }
.mk-name a span:not(.pair) { color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-name .pair { display: inline-flex; flex: none; }
.mk-name .pair img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); }
.mk-name .pair img + img { margin-left: -7px; }
.mk-chg.up { color: var(--up); }
.mk-chg.down { color: var(--down); }
@media (max-width: 720px) {
  .mk-table th:nth-child(5), .mk-table td:nth-child(5), .mk-name a span:not(.pair) { display: none; }
  .lv-state-row { justify-content: flex-start; }
}

.st-checks-mini li { grid-template-columns: 26px 150px minmax(0, 1fr); padding: 7px 12px; font-size: 13px; }
.st-ex { font-style: normal; color: var(--ink-3); }
@media (max-width: 720px) { .st-checks-mini li { grid-template-columns: 26px minmax(0, 1fr); } .st-checks-mini li > span:last-child { grid-column: 2; } }
@media (max-width: 480px) {
  .mk-table th:nth-child(4), .mk-table td:nth-child(4) { display: none; }
  .mk-card { padding: 14px 12px; }
  .mk-name a b { white-space: nowrap; }
}

/* Stránka Stav: karta Správa (import databáze, nastavení workeru) */
.st-admin { margin-bottom: 14px; }
.st-admin > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; font-size: 15px; }
.st-admin > summary::-webkit-details-marker { display: none; }
.st-admin > summary::before { content: "▸"; color: var(--ink-3); margin-right: 2px; transition: transform .15s; display: inline-block; }
.st-admin[open] > summary::before { transform: rotate(90deg); }
.st-admin .st-sub.ok { color: var(--up); }
.st-admin .st-sub.bad { color: var(--down); }
.st-admin-body { margin-top: 14px; display: grid; gap: 12px; min-width: 0; }
.st-mig { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 4px 14px; font-size: 13px; }
.st-mig li { display: flex; gap: 8px; align-items: baseline; min-width: 0; overflow-wrap: anywhere; }
.st-mig li b { width: 14px; flex: none; text-align: center; }
.st-mig li.ok b { color: var(--up); } .st-mig li.bad b { color: var(--down); }
.st-mig .st-sub { margin-left: auto; color: var(--ink-3); font-size: 12px; text-align: right; }
.st-warnline { color: var(--down); font-size: 13px; overflow-wrap: anywhere; }
.st-admin-actions { display: grid; gap: 10px; }
.st-field { display: grid; gap: 4px; font-size: 13px; min-width: 0; }
.st-field > span { font-weight: 700; }
.st-field .st-sub { color: var(--ink-3); font-size: 12px; }
.st-field input.select { max-width: 360px; }
.st-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.st-log { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font: 12.5px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 280px; overflow: auto; }
.st-log-ok { border-color: rgba(52, 211, 153, .5); } .st-log-bad { border-color: rgba(248, 113, 113, .55); }
.st-worker-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px 16px; align-items: start; }
.st-worker-form .btn { grid-column: 1 / -1; justify-self: start; }
.st-zv { margin-top: 22px; }
.st-zv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.st-zv-item { display: grid; gap: 6px; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.st-zv-done { opacity: .72; }
.st-zv-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 12.5px; color: var(--ink-3); }
.st-zv-head time { font-variant-numeric: tabular-nums; }
.st-zv-meta { font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.st-zv-body { margin: 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.st-zv-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* stránka hledání /hledat (lib/hledani.php) */
.hl-form { max-width: 640px; margin: 4px 0 18px; position: relative; }
.hl-group, .hl-empty, .hl-tips { margin-bottom: 14px; }
.hl-n { font-weight: 600; font-size: 13px; margin-left: 4px; }
.hl-list { list-style: none; margin: 0; padding: 4px 6px 8px; }
.hl-list a { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.hl-list a:hover, .hl-list a:focus-visible { background: var(--surface-2); }
.hl-sym { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-name { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-sub { color: var(--ink-3); font-size: 12.5px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.hl-tips .hl-list a { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 560px) {
  .hl-list a { grid-template-columns: 72px minmax(0, 1fr); row-gap: 2px; }
  .hl-sub { grid-column: 2; text-align: left; max-width: none; }
}
.search-results li.sr-more { display: block; color: var(--link); font-weight: 600; border-top: 1px solid var(--line-soft); border-radius: 0 0 8px 8px; margin-top: 4px; }

/* celkový kalendář (L4): kategorie a osobní termíny */
.cal-cats { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; }
.cal-cats-k { font-size: 13px; margin-right: 2px; }
.cal-cats .cal-ics { margin-left: auto; }
.cal-chip.cal-p { border-left: 3px solid var(--brand); background: var(--surface-2); }
.cal-chip.cal-p { min-width: 0; max-width: 100%; }
.cal-chip.cal-p b { font-weight: 600; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cal-chip.cal-p.done { opacity: .55; text-decoration: line-through; }
.cal-chip.cat-dluhy, .cal-cat.cat-dluhy { border-left-color: var(--c-coral); }
.cal-chip.cat-nemovitosti, .cal-cat.cat-nemovitosti { border-left-color: var(--c-teal); }
.cal-chip.cat-smlouvy, .cal-cat.cat-smlouvy { border-left-color: var(--c-violet); }
.cal-chip.cat-ukoly, .cal-cat.cat-ukoly { border-left-color: var(--c-amber); }
.cal-chip.cat-dane, .cal-cat.cat-dane { border-left-color: var(--c-magenta); }
.cal-chip.cat-sporeni, .cal-cat.cat-sporeni { border-left-color: var(--c-olive); }
.cal-mix tr.done td { opacity: .6; }
.cal-mix .cal-mix-a { font-weight: 600; color: var(--ink); text-decoration: none; }
.cal-mix .cal-mix-a:hover { color: var(--link); text-decoration: underline; }
.cal-cat { border-left: 3px solid var(--brand); white-space: nowrap; }
.cal-ics-box .row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cal-ics-box input { flex: 1 1 260px; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 13px; }
.cal-ics-box p { font-size: 13px; margin: 10px 0 0; }
.cal-tbl.cal-mix th, .cal-tbl.cal-mix td { white-space: normal; vertical-align: top; }
.cal-mix td:first-child { min-width: 180px; }
.cal-mix td:nth-child(2) { font-size: 13px; }
.cal-tbl.cal-mix td:last-child { width: 1%; white-space: nowrap; }
@media (max-width: 560px) { .cal-mix th:nth-child(3), .cal-mix td:nth-child(3) { display: none; } .cal-mix td:first-child { min-width: 0; } }

/* týdenní přehled (L3) */
.g4.ty-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }          /* ui.css se načítá až po app.css a na telefonu dává .g4 jeden sloupec */
.ty-goal { margin: 0 0 12px; }
.ty-goal-h { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin: 0 0 6px; }
.ty-goal-h span { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ty-bar { height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.ty-bar i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.ty-list { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; font-size: 14px; }

/* cíle a plány (L6) */
.cl-list { display: grid; gap: 12px; margin-top: 12px; }
.cl-bar { margin: 10px 0 4px; }
.cl-fc { margin: 10px 0 0; font-size: 14.5px; line-height: 1.55; }
.cl-note { font-size: 13px; margin: 6px 0 0; }
.cl-chart { height: 220px; margin-top: 12px; }
.cl-why { margin-top: 10px; font-size: 13px; }
.cl-reserve .statrow { margin: 0; }
.cl-items-list { display: grid; gap: 4px; max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.cl-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.cl-item:hover { background: var(--surface-2); }
.cl-item b { font-variant-numeric: tabular-nums; font-weight: 600; }

/* podklady k přiznání (L5) */
.pd-years { margin: 0 0 12px; }
.pd-gap { margin: 0 0 12px; }
.pd-todo { margin-bottom: 12px; }
main[data-page="podklady"] > .card { margin-bottom: 12px; }
.pd-list { list-style: none; margin: 0; padding: 0; display: grid; }
.pd-item { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.pd-item:last-child { border-bottom: 0; }
.pd-item > div { min-width: 0; }
.pd-item .pd-t { display: block; margin-top: 6px; font-size: 14.5px; }
.pd-item p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; }
.pd-item .btn { flex: none; }
.pd-area { font-size: 12.5px; }
.pd-note { margin: 10px 0 0; font-size: 13.5px; }
.pd-more { margin-top: 12px; }
.pd-more summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--link); }
.pd-more .tbl-wrap { margin-top: 10px; }
.pd-notes { margin: 6px 0 18px; display: grid; gap: 4px; font-size: 12.5px; }
@media (max-width: 560px) { .pd-item { flex-direction: column; gap: 8px; } }
@media print {
  .side, .top, .tabbar, .sitefoot, .page-actions, .pd-years, .toasts, .pd-item .btn { display: none !important; }
  .shell, .main-col, .wrap { display: block !important; margin: 0 !important; padding: 0 !important; max-width: none !important; }
  .card, .stat, .callout { box-shadow: none !important; break-inside: avoid; }
  body { background: #fff !important; }
}

/* předplatné přes GoPay (20. 10. 2026): pokladna, výsledek platby, blok v Nastavení */
.sub-wrap .page-h p { max-width: 60ch; }
.sub-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.sub-obdobi { display: grid; gap: 10px; margin: 0 0 16px; }
.sub-opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s; }
.sub-opt:hover { border-color: var(--brand-2); }
.sub-opt.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.sub-opt input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.sub-opt-t { display: grid; gap: 2px; min-width: 0; }
.sub-opt-t b { font-size: 15px; }
.sub-opt-t em { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.sub-h3 { margin: 6px 0 8px; font-size: 13px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.sub-benefits { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.sub-benefits li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.sub-benefits li .ic { flex: none; margin-top: 2px; color: var(--up); }
.sub-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.sub-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }
.sub-check a { color: var(--link); font-weight: 600; }
.sub-pay { width: 100%; justify-content: center; margin-top: 6px; }
.sub-note { font-size: 12.5px; margin: 10px 0 0; line-height: 1.5; }
.sub-off { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, transparent); font-size: 13.5px; }
.sub-sandbox { margin: 0 0 12px; padding: 8px 14px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-text); font-size: 13px; font-weight: 600; }
.sub-result { max-width: 640px; margin: 24px auto; padding: 36px 28px; text-align: center; }
.sub-result h1 { margin: 12px 0 8px; font-size: 26px; }
.sub-result p { margin: 0 auto 18px; max-width: 48ch; color: var(--ink-2); }
.sub-result-ic { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.sub-result.ok .sub-result-ic { background: color-mix(in srgb, var(--up) 14%, transparent); color: var(--up); }
.sub-result.ne .sub-result-ic { background: color-mix(in srgb, var(--down) 14%, transparent); color: var(--down); }
.sub-stav { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 14px; padding: 16px 18px; border-radius: 14px; background: var(--stage); color: var(--stage-ink); }
.sub-stav.cancelled { background: linear-gradient(118deg, #3b4a6b 0%, #5a6b90 100%); }
.sub-stav.past_due { background: linear-gradient(118deg, #7a2e12 0%, #c2571c 100%); }
.sub-stav-k { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 12px; font-weight: 700; }
.sub-stav b { display: block; margin: 8px 0 4px; font-size: 17px; }
.sub-stav p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .85); line-height: 1.5; }
.sub-stav .btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; background: rgba(255, 255, 255, .08); }
.sub-stav .btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.sub-dlg { max-width: 480px; }
.sub-nabidka .row { margin-top: 10px; gap: 8px; flex-wrap: wrap; }
.sub-platby td.num, .sub-platby th.num { text-align: right; font-variant-numeric: tabular-nums; }
.sub-platby tr.paid td:first-child { font-weight: 600; }
@media (max-width: 900px) { .sub-grid { grid-template-columns: 1fr; } .sub-stav { grid-template-columns: 1fr; } }

/* Našeptávač hledání, nový vzhled (21. 10. 2026): karta se stínem, dva řádky, ikony stránek, vyznačená shoda, nápověda kláves; na úvodní stránce pluje nad stránkou (.sr-float) */
.search-results { padding: 8px; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 24px 60px -18px rgba(10, 30, 80, .34), 0 2px 8px rgba(10, 30, 80, .06); max-height: min(70vh, 540px); scrollbar-width: thin; scrollbar-color: var(--line) transparent; overscroll-behavior: contain; }
.search-results li.sr-sec, .search-results li.sr-page { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; min-height: 54px; padding: 8px 10px; border-radius: 12px; transition: background-color .12s ease, box-shadow .12s ease; }
.search-results .sr-logo { width: 38px; height: 38px; border-radius: 11px; }
.search-results .sr-logo-page { background: color-mix(in srgb, var(--brand) 11%, var(--surface)); color: var(--brand); }
.search-results .sr-main { display: grid; gap: 1px; min-width: 0; }
.search-results .sr-title { font-size: 14.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-results li.sr-sec .sr-title { font-weight: 800; letter-spacing: -.01em; }
.search-results .sr-sub { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-results mark { background: none; color: var(--brand); font-weight: 800; padding: 0; }
.search-results li.sr-page .sr-ex { background: none; padding: 0; color: var(--ink-3); font-weight: 600; }
.search-results li.sr-sec[aria-selected="true"], .search-results li.sr-page[aria-selected="true"] { background: color-mix(in srgb, var(--brand) 8%, var(--surface)); box-shadow: inset 3px 0 0 var(--brand); }
.search-results li.sr-sec:hover, .search-results li.sr-page:hover { background: var(--surface-2); }
.search-results .sr-group { display: flex; align-items: center; gap: 10px; padding: 12px 10px 6px; font-size: 11px; }
.search-results .sr-group::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.search-results .sr-hint { display: flex; justify-content: flex-end; gap: 14px; min-height: 0; margin-top: 6px; padding: 8px 10px 2px; border-top: 1px solid var(--line-soft); border-radius: 0; font-size: 11.5px; color: var(--ink-3); cursor: default; background: none !important; }
.search-results .sr-hint kbd { display: inline-block; min-width: 20px; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); color: var(--ink-2); font: 700 11px/1.5 var(--font); text-align: center; }
.search-results.sr-float { position: fixed; right: auto; z-index: 1200; text-align: left; color: var(--ink); background: var(--surface); }
@media (max-width: 560px) { .search-results .sr-hint { display: none; } .search-results li.sr-sec, .search-results li.sr-page { min-height: 50px; } }

/* ---------- ukázka pro hosta (plán X-04): proužek nad stránkou a rozcestník; sem z nemovitosti.css 23. 10. 2026, protože ukázka je i na portfoliu a app.css je všude ---------- */
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 16px; padding: 10px 14px; border: 1px dashed var(--c-amber); border-radius: 12px; background: color-mix(in srgb, var(--c-amber) 9%, var(--surface)); color: var(--ink-2); font-size: 14px; }
.demo-bar b { text-transform: uppercase; letter-spacing: .06em; font-size: 12px; background: var(--c-amber); color: var(--accent-ink); border-radius: 6px; padding: 2px 8px; }
.demo-bar span { flex: 1 1 260px; min-width: 0; }
.demo-h { font-size: 18px; letter-spacing: -.01em; margin: 22px 0 10px; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.demo-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) 18px; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.demo-card:hover, .demo-card:focus-visible { border-color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.demo-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand); }
.demo-tx { display: grid; gap: 2px; min-width: 0; }
.demo-tx b { font-size: 15px; }
.demo-tx small { color: var(--ink-3); font-size: 13px; line-height: 1.4; }
.demo-go { color: var(--ink-3); display: grid; place-items: center; }
.demo-go svg { transform: rotate(-90deg); }
.demo-cta { max-width: 760px; margin: 26px 0 8px; }
.demo-cta .row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 720px) {
  .demo-grid { grid-template-columns: 1fr; }
}

/* ui.css */
/* Design systém Portfolio Tracker: rozvržení (levý panel, horní lišta), komponenty pro všechny stránky.
   Barvy jen z proměnných v app.css (světlý a tmavý motiv). Žádná stránka nemá vlastní styl, jen tyto komponenty. */

/* ---------- pomocné ---------- */
.only-dark { display: none; }
html[data-color="dark"] .only-dark { display: inline-flex; }
html[data-color="dark"] .only-light { display: none; }
.only-light, .only-dark { align-items: center; }
.ic { display: block; flex: none; }
.only-narrow, .icon-btn.only-narrow { display: none; }          /* .icon-btn níž by jinak display vrátil (stejná váha, pozdější pravidlo): hamburger byl vidět i na PC */
.muted { color: var(--ink-3); }
.right { text-align: right; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.g2, .g3, .g4 { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Karty vedle sebe bez děr: místo mřížky sloupce, takže každá karta jde hned pod tu předchozí ve svém sloupci a výška vedlejší karty nic nenatahuje */
.g2.masonry, .g2.pf-g2 { display: block; column-count: 2; column-gap: 12px; }
.g2.masonry > *, .g2.pf-g2 > * { break-inside: avoid; margin: 0 0 12px; }
.g2.masonry-js { display: grid; column-count: auto; grid-template-columns: repeat(var(--mcols, 2), minmax(0, 1fr)); gap: 12px; align-items: start; }
.g2.masonry-js > .mcol { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; min-width: 0; }          /* minmax: karta se širokou tabulkou nerozšíří sloupec */
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- utility (audit 23. 10. 2026, oddíl 3: náhrada inline stylů v šablonách a knihovnách) ----------
   Pevné názvy, používají je šablony i knihovny, neměnit. Hodnoty z tokenů app.css (--sp-*, --fs-*). !important: utilita nahrazuje inline style,
   který měl přednost před každým pravidlem stránkových CSS (ty se načítají až po ui.css), takže musí vyhrát i ona. */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--sp-1) !important; }
.mt-2 { margin-top: var(--sp-2) !important; }
.mt-3 { margin-top: var(--sp-3) !important; }
.mt-4 { margin-top: var(--sp-4) !important; }
.mt-6 { margin-top: var(--sp-6) !important; }
.mt-8 { margin-top: 32px !important; }
.mt-10 { margin-top: 40px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--sp-1) !important; }
.mb-2 { margin-bottom: var(--sp-2) !important; }
.mb-3 { margin-bottom: var(--sp-3) !important; }
.mb-4 { margin-bottom: var(--sp-4) !important; }
.mb-6 { margin-bottom: var(--sp-6) !important; }
.mb-8 { margin-bottom: 32px !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.ml-auto { margin-left: auto !important; }
.ml-1 { margin-left: var(--sp-1) !important; }
.ml-2 { margin-left: var(--sp-2) !important; }
.ml-3 { margin-left: var(--sp-3) !important; }
.fs-xs { font-size: var(--fs-xs) !important; }
.fs-sm { font-size: var(--fs-sm) !important; }
.fs-base { font-size: var(--fs) !important; }
.fs-md { font-size: var(--fs-md) !important; }
.fs-lg { font-size: var(--fs-lg) !important; }
.row-center { justify-content: center !important; }          /* k .row: tlačítka prázdných stavů uprostřed */
.row-end { justify-content: flex-end !important; }
.txt-center { text-align: center !important; }
.txt-right { text-align: right !important; }
.txt-left { text-align: left !important; }
.w-100 { width: 100% !important; }
.gap-1 { gap: var(--sp-1) !important; }
.gap-2 { gap: var(--sp-2) !important; }
.gap-3 { gap: var(--sp-3) !important; }
.d-block { display: block !important; }
.pl-0 { padding-left: 0 !important; }
.rot-90 { transform: rotate(90deg); display: inline-flex; }          /* otočený chevron (kalendář, detail firmy) */
.rot-m90 { transform: rotate(-90deg); display: inline-flex; }
.break-all { word-break: break-all; }

/* ---------- rozvržení ---------- */
.shell { display: flex; min-height: 100vh; background: var(--page-bg); background-attachment: fixed; }
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.main-col > main { flex: 1; width: 100%; }
main.wrap { max-width: 1320px; margin: 0 auto; padding: 8px 20px 40px; }

.side { position: sticky; top: 0; align-self: flex-start; height: 100vh; width: 236px; flex: none; z-index: 40; display: flex; flex-direction: column; gap: 10px; padding: 16px 12px 12px; background: var(--side-bg); border-right: 0; color: #fff; scrollbar-color: rgba(255, 255, 255, .28) transparent; transition: width .2s var(--ease); overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 10px; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.01em; color: var(--ink); }
.side .brand { color: #fff; }
.side .brand svg > rect:first-child { fill: #2f6fe4; }
.side-nav { display: grid; gap: 2px; }
.side-nav a, .side-link { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: rgba(255, 255, 255, .78); font-size: 14px; font-weight: 600; transition: background-color .15s, color .15s; white-space: nowrap; position: relative; }
.side-nav a:hover, .side-link:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.side-nav a.active, .side-link.active { background: rgba(255, 255, 255, .15); color: #fff; }
.side-nav a.active::before, .side-link.active::before { content: ""; position: absolute; left: 0; top: 22%; height: 56%; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }          /* oranžová značka u otevřené stránky */
html[data-color="dark"] .side-nav a.active, html[data-color="dark"] .side-link.active { color: #fff; }
.side-foot { margin-top: auto; display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .12); position: relative; }
.lang { display: flex; gap: 4px; padding: 4px 8px 8px; }
.lang a { flex: 1; text-align: center; padding: 5px 0; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .8); text-decoration: none; font-size: 12px; font-weight: 700; }
.lang a.on { background: #fff; border-color: #fff; color: #0b1b4b; }
.side-collapse { width: 100%; border: 0; background: transparent; cursor: pointer; text-align: left; }
.side-collapse .ic { transform: rotate(90deg); transition: transform .2s var(--ease); }
html[data-side="mini"] .side { width: 68px; }
html[data-side="mini"] .side .brand-text, html[data-side="mini"] .side-nav a span, html[data-side="mini"] .side-link span, html[data-side="mini"] .lang { display: none; }
html[data-side="mini"] .side-nav a, html[data-side="mini"] .side-link { justify-content: center; padding: 10px; }
html[data-side="mini"] .side-collapse .ic { transform: rotate(-90deg); }
.side-scrim { position: fixed; inset: 0; background: var(--overlay); z-index: 39; }

.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 20px; background: var(--top-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); min-height: 64px; }          /* stejná výška a sklo jako lišta veřejné části (public.css), ať aplikace a web působí jako jedna služba (19. 10. 2026) */
.top-search { flex: 0 1 380px; min-width: 180px; }
.top-search input { border-radius: 999px; }          /* pilulky v liště aplikace jako ve veřejné (19. 10. večer) */
.top-data { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; white-space: nowrap; transition: border-color .15s, color .15s; }          /* vstup do veřejných dat (akcie, trhy…) z aplikace, protějšek tlačítka Můj přehled ve veřejné liště */
.top-data:hover { border-color: var(--brand); color: var(--brand); }
.top-data .ic { color: var(--brand); }
@media (max-width: 900px) { .top-data span { display: none; } .top-data { padding: 0; width: 38px; justify-content: center; } }
@media (max-width: 420px) { .top-search { min-width: 0; } }          /* telefon 360 px: hledání se zúží, tlačítka hosta (Přihlásit, Registrace) se vejdou (M7) */
.top-search input { height: 40px; border-radius: 12px; }
.top-market { display: flex; align-items: center; gap: 12px; min-width: 0; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.top-market::-webkit-scrollbar { display: none; }
.top-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 800; text-decoration: none; }
button.avatar { position: relative; overflow: hidden; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 800; transition: box-shadow .15s; }
button.avatar img, .user-pop-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.user-pop-head { display: flex; align-items: center; gap: 12px; padding: 8px 10px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line-soft); }
.user-pop-av { position: relative; overflow: hidden; flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 800; }
button.avatar:hover, button.avatar[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--sel); }
.user-pop { min-width: 240px; padding: 6px; }
.user-pop[hidden] { display: none; }
.user-pop-who { display: grid; gap: 2px; min-width: 0; }
.user-pop-who b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-pop-who span { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-pop .menu-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; font-weight: 600; text-decoration: none; }
.user-pop .menu-item .ic { color: var(--ink-3); flex: none; }
.bell { position: relative; }
.bell-dot { position: absolute; right: 7px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: var(--fs-md); font-weight: 700; text-decoration: none; transition: color .15s, background-color .15s, border-color .15s; }
.icon-btn:hover { color: var(--ink); background: var(--surface-2); border-color: var(--brand); }
.icon-btn.on { color: var(--ink); background: var(--sel); }

/* ---------- karty a hlavičky ---------- */
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow-sm); }          /* jemná linka a vrstvený stín (styl 2018); ve tmavém režimu drží tvar linka */
html[data-color="dark"] .card { border-color: var(--line); box-shadow: none; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 0; flex-wrap: wrap; }
.card-h h2, .card-h h3 { font-size: 15px; font-weight: 800; letter-spacing: -.005em; }
.card-b { padding: 12px 18px 16px; }
.card-note { color: var(--ink-3); font-size: 12.5px; padding: 0 18px 14px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 22px 0 16px; flex-wrap: wrap; }
.page-h h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.page-h p { color: var(--ink-2); margin-top: 6px; max-width: 72ch; }
/* aplikace: dlaždice s ikonou položky panelu před nadpisem (vkládá pt_hlavicka_ozdobit v lib/front.php, 19. 10. 2026) */
.page-h-tx { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
.page-h-tx > .page-ic { grid-row: 1 / span 6; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, #001c68 0%, var(--brand) 100%); color: #fff; box-shadow: 0 12px 24px -14px rgba(31, 85, 214, .8); }
.page-h-tx > .page-ic .ic { color: #fff; }
.page-h-tx > p { margin-top: 2px; }
@media (max-width: 720px) { .page-h-tx > .page-ic { width: 40px; height: 40px; border-radius: 12px; } .page-h-tx { column-gap: 12px; } }
/* štíhlý banner hlavičky stránky v datech a v aplikaci (Vojta 19. 10.: bannery na všech stránkách); velký banner webu je v public.css, přehled má vlastní .hc-banner */
#app > .page-h:not(.hc-banner), #pf-root .pf-head { position: relative; isolation: isolate; overflow: hidden; margin: 16px 0 14px; padding: 18px 22px; border-radius: 18px; color: #fff; background: linear-gradient(115deg, transparent 56%, rgba(255, 255, 255, .07) 56%, rgba(255, 255, 255, .07) 71%, transparent 71%), radial-gradient(110% 130% at 100% 0%, rgba(255, 255, 255, .16) 0%, transparent 55%), linear-gradient(135deg, #001c68 0%, #1642b9 58%, #2f6fe4 100%); box-shadow: 0 18px 36px -24px rgba(0, 28, 104, .7); }
#app > .page-h:not(.hc-banner)::after, #pf-root .pf-head::after { content: ""; position: absolute; z-index: -1; top: -90px; right: -50px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 62%); pointer-events: none; }
:is(#app > .page-h:not(.hc-banner), #pf-root .pf-head) :is(h1, h2, b, strong) { color: #fff; }
:is(#app > .page-h:not(.hc-banner), #pf-root .pf-head) :is(p, .muted, small, .pf-demo, .home-date, .crumb-sep) { color: #c9d8ff; }
:is(#app > .page-h:not(.hc-banner), #pf-root .pf-head) a:not(.btn) { color: #fff; }
:is(#app > .page-h:not(.hc-banner), #pf-root .pf-head) .btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: #fff; box-shadow: none; }
:is(#app > .page-h:not(.hc-banner), #pf-root .pf-head) .btn:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .55); }
:is(#app > .page-h:not(.hc-banner), #pf-root .pf-head) .btn-primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
:is(#app > .page-h:not(.hc-banner), #pf-root .pf-head) :is(.select, .input, input, select) { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: #fff; }
:is(#app > .page-h:not(.hc-banner), #pf-root .pf-head) :is(.select, select) option { color: var(--ink); background: var(--surface); }
:is(#app > .page-h:not(.hc-banner), #pf-root .pf-head) :is(.badge, .tag, .pill) { background: rgba(255, 255, 255, .16); color: #fff; }
:is(#app > .page-h:not(.hc-banner), #pf-root .pf-head) .watch-meter { color: #fff; }
#app > .page-h:not(.hc-banner) .page-ic { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); box-shadow: none; }
@media (max-width: 720px) { #app > .page-h:not(.hc-banner), #pf-root .pf-head { padding: 16px; border-radius: 16px; margin-top: 12px; } }
/* Akce v hlavičce stránky (blok M4): vždy malá tlačítka a výběry stejné výšky (34 px), ať je to stránka, portfolio, nebo drobečková navigace u titulu. */
.page-actions, .page-h > .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
:is(.page-h, .pf-head, .crumbs-end, .page-actions) .btn { min-height: var(--h-sm); padding: 0 14px; gap: 6px; font-size: var(--fs-sm); border-radius: var(--r-btn, 999px); }
:is(.page-h, .pf-head, .page-actions) .select { width: auto; height: var(--h-sm); font-size: var(--fs-sm); }
.pf-head { margin: 22px 0 16px; }
@media (max-width: 560px) {
  .page-h, .pf-head { align-items: flex-start; gap: 10px; }
  .page-h > .row, .page-actions, .pf-tools { width: 100%; }
}
.crumbs { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

/* ---------- tlačítka (jediná definice; výšky z tokenů: .btn 40, .btn-sm 34, .btn-lg 48 px) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--h); padding: 0 20px; border-radius: var(--r-btn, 999px); border: 1px solid transparent; text-decoration: none; font-weight: 700; font-size: var(--fs); line-height: 1.2; white-space: nowrap; cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s, background-color .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn .ic { flex: none; }
.btn-sm { min-height: var(--h-sm); padding: 0 14px; gap: 6px; font-size: var(--fs-sm); border-radius: var(--r-btn, 999px); }
.btn-lg { min-height: var(--h-lg); padding: 0 28px; font-size: var(--fs-md); border-radius: var(--r-btn, 999px); }
.btn-primary { background: linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 72%, #4285f4) 100%); color: var(--brand-ink); box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 30%, transparent); }          /* přechod značky a stín (styl 2018) */
.btn-primary:hover { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 88%, #000) 0%, var(--brand) 100%); box-shadow: 0 10px 22px color-mix(in srgb, var(--brand) 38%, transparent); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--brand); }
.btn-danger { background: var(--down); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.btn-pro { background: linear-gradient(135deg, var(--accent), #f7a541); color: #2b1600; }
.link-btn { background: none; border: 0; padding: 0; color: var(--link); font-weight: 700; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ---------- formuláře ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label, .field > .lbl { font-size: 13px; font-weight: 700; color: var(--ink-2); }
/* pole a výběry: jedna výška (--h 40 px), jedno zaoblení; víceřádkové pole a datum stejně */
.input, .select, .field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="number"], .field input[type="date"], .field input[type="search"], .field input[type="tel"], .field select, .field textarea, textarea.input {
  width: 100%; height: var(--h); padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-md); }
.field textarea, textarea.input { height: auto; min-height: 88px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.input:focus, .select:focus, .field input:focus, .field select:focus, .field textarea:focus, textarea.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--down); }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
/* 20. 10.: výběry bez systémového rámečku, s jemnou šipkou; .select-sm do tabulek */
[class~="select"], .field select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7a9d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
[class~="select"]:hover, .field select:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.sel-sm { height: 34px; padding: 0 30px 0 10px; border-radius: 10px; font-size: 13px; background-position: right 10px center; }
.tbl td .sel-sm { width: auto; min-width: 170px; max-width: 100%; }
.field .hint.good { color: var(--up, #16a34a); }        /* průběžná kontrola zadání (přezdívka): volné */
.field .hint.bad { color: var(--down, #dc2626); }       /* průběžná kontrola zadání: nejde */
.field .err, .form-err { font-size: 13px; color: var(--down); font-weight: 600; }
.form-err { margin: 8px 0; }
.form-ok { color: var(--up); font-weight: 600; font-size: 13.5px; }
.check { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: var(--r-sm); font-size: var(--fs); cursor: pointer; }
.check:hover { background: var(--surface-2); }
.check input { width: 17px; height: 17px; flex: none; accent-color: var(--brand); }
.slider { display: grid; gap: 4px; margin-bottom: 14px; }
.slider .sl-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; }
.slider .sl-h span { color: var(--ink-3); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 11.5px; }
.slider .sl-h b { font-size: 15px; font-variant-numeric: tabular-nums; }
.slider input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--brand) var(--fill, 50%), var(--line) var(--fill, 50%)); outline: none; }
.slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); box-shadow: var(--shadow-sm); cursor: grab; }
.slider input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); cursor: grab; }
.slider .sl-f { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 11.5px; }

/* Telefon: písmo v polích aspoň 16 px, jinak iPhone při psaní stránku přiblíží. Výjimka přebíjí i úzká pole filtrů (proto !important). */
@media (max-width: 900px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea { font-size: 16px !important; }
}

/* ---------- okna ---------- */
dialog.modal { width: min(560px, calc(100vw - 24px)); padding: 0; border-radius: 20px; }          /* 20. 10.: okna větší a přehlednější, dvojice polí vedle sebe */
dialog.modal.wide { width: min(780px, calc(100vw - 24px)); }
dialog.modal .field-row.solo { grid-template-columns: minmax(0, 1fr); }          /* dvojice s jedním viditelným polem (20. 10.) */
dialog.modal .ns-actions { justify-content: flex-end; }
dialog.modal .modal-b { max-height: min(78vh, 760px); overflow-y: auto; }
/* Nový alert (21. 10. 2026): při výběru firmy okno neořezává, našeptávač vyjede přes okno i pod něj; při vyplňování formuláře zůstává posuvník */
dialog.modal.modal-alert:has(#ad-pick:not([hidden])), dialog.modal.modal-alert:has(#ad-pick:not([hidden])) .modal-b { overflow: visible; max-height: none; }
dialog.modal.modal-alert #ad-pick .search { position: relative; }
dialog.modal.modal-alert #ad-pick .search-results { z-index: 60; max-height: min(60vh, 480px); box-shadow: 0 18px 48px rgba(10, 25, 60, .28); }
dialog.modal.modal-alert .modal-b { padding-bottom: 24px; }
dialog.modal.modal-alert #ad-pick input { font-size: 16px; min-height: 52px; }
dialog.modal .field { margin-bottom: 12px; }
dialog.modal .field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
dialog.modal .ns-sec { margin: 6px 0 10px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
dialog.modal .ns-sec:first-child { padding-top: 0; border-top: 0; }
dialog.modal .ns-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
@media (max-width: 560px) { dialog.modal .field-row { grid-template-columns: 1fr; } }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.modal-h h2 { font-size: 19px; font-weight: 800; }
.modal-b { padding: 14px 22px 22px; }
.modal-x { border: 0; background: transparent; color: var(--ink-3); width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; }
.modal-x:hover { background: var(--surface-2); color: var(--ink); }
/* Záložky (blok M5): jedny pro celou aplikaci, dvě velikosti. Velké přepínají části stránky (.tabs, .ns-tabs, .val-switch, .scr-tabs), malé období
   a pohled v grafu (.seg, .hc-tabs). Vždy jeden řádek: co se nevejde, posune se do strany (na telefonu se nic nezalamuje). */
:is(.tabs, .ns-tabs, .val-switch, .scr-tabs) { display: inline-flex; max-width: 100%; gap: 4px; padding: 3px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line);
  flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; vertical-align: middle; }
:is(.seg, .hc-tabs) { display: inline-flex; max-width: 100%; gap: 2px; padding: 2px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
:is(.tabs, .ns-tabs, .val-switch, .scr-tabs, .seg, .hc-tabs)::-webkit-scrollbar { display: none; }
:is(.tabs, .ns-tabs, .val-switch, .scr-tabs) :is(a, button) { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent;
  color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s; }
:is(.seg, .hc-tabs) button { flex: none; min-height: 30px; padding: 0 11px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink-2); font: inherit; font-size: 12.5px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s; }
:is(.tabs, .ns-tabs, .val-switch, .scr-tabs, .seg, .hc-tabs) :is(a, button):hover:not(:disabled) { color: var(--ink); background: var(--surface-2); }
:is(.tabs, .ns-tabs, .val-switch, .scr-tabs) :is(a, button):is(.on, [aria-selected="true"]), :is(.seg, .hc-tabs) button:is(.on, [aria-selected="true"]) { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
html[data-color="dark"] :is(.seg, .hc-tabs) button:is(.on, [aria-selected="true"]) { color: var(--ink); }
:is(.seg, .hc-tabs) button:disabled { opacity: .35; cursor: default; }
:is(.tabs, .ns-tabs, .val-switch, .scr-tabs, .seg, .hc-tabs).is-scroll:not(.at-end) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; gap: 8px; }
.toast { padding: 11px 16px; border-radius: 12px; background: var(--ink); color: var(--surface); font-weight: 600; font-size: 14px; box-shadow: var(--shadow); animation: pop .2s var(--ease); max-width: 360px; }
.toast.err { background: var(--down); color: #fff; }

/* ---------- tabulky ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { position: sticky; top: 0; background: var(--surface); text-align: left; padding: 10px 12px; font-size: 12px; font-weight: 700; color: var(--ink-3); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th.sort { cursor: pointer; user-select: none; }
.tbl th.sort:hover { color: var(--ink); }
.tbl th.sort::after { content: "↕"; margin-left: 6px; opacity: .35; font-size: 11px; }
.tbl th.sort.asc::after { content: "↑"; opacity: 1; color: var(--brand); }
.tbl th.sort.desc::after { content: "↓"; opacity: 1; color: var(--brand); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl td .cell-link { color: inherit; text-decoration: none; border-bottom: 1px dotted color-mix(in srgb, var(--ink-3) 55%, transparent); }          /* hodnota v buňce, která někam vede (sektor na mapu trhu, 19. 10. 2026) */
.tbl td .cell-link:hover { color: var(--brand); border-color: var(--brand); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl td.pin, .tbl th.pin { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.tbl tbody tr:hover td.pin { background: var(--surface-2); }
.co { display: flex; align-items: center; gap: 10px; min-width: 170px; text-decoration: none; }
.co-logo { width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line-soft); display: grid; place-items: center; overflow: hidden; flex: none; font-weight: 800; color: var(--brand); font-size: 13px; position: relative; }
.co-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 4px; }
.co b { display: block; font-size: 14px; }
.co span.sub { color: var(--ink-3); font-size: 12px; display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chg { display: inline-flex; padding: 2px 8px; border-radius: 7px; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.chg.up { background: color-mix(in srgb, var(--up) 11%, transparent); }
.chg.down { background: color-mix(in srgb, var(--down) 11%, transparent); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: var(--sel); color: var(--brand); letter-spacing: .02em; }
.badge.pro { background: linear-gradient(135deg, var(--accent), #f7a541); color: #2b1600; }
.badge.ok { background: color-mix(in srgb, var(--up) 15%, transparent); color: var(--up); }
.badge.warn { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text, #b4530a); }          /* 20. 10. večer: dřív světle oranžové písmo na světle oranžové, nešlo přečíst */
.badge.off { background: var(--surface-2); color: var(--ink-3); }
.badge.premium { background: linear-gradient(135deg, #7a68e0, #c23fb5); color: #fff; }
.badge.reg { background: var(--surface-2); color: var(--ink-2); }          /* „zdarma po registraci“ v zámku (ne .lock, to je celý zámek) */
.badge .ic { width: 12px; height: 12px; }
.fav { border: 0; background: transparent; color: var(--ink-3); width: 32px; height: 32px; border-radius: 8px; display: inline-grid; place-items: center; padding: 0; }
.fav:hover { color: var(--down); background: var(--surface-2); }
.fav.on { color: var(--down); }
.fav.on svg { fill: currentColor; }
.empty-state { text-align: center; padding: 42px 20px; }
.empty-state h2 { font-size: 18px; margin-bottom: 8px; }
.empty-state p { color: var(--ink-2); max-width: 52ch; margin: 0 auto 16px; }

/* ---------- zámek s náhledem (blok M3): kostra stránky rozmazaná, přes ni karta s odemčením ---------- */
.lock { position: relative; display: grid; min-height: 460px; margin: 4px 0 12px; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; }
.lock-sm { min-height: 380px; }
.lock-preview { display: grid; gap: 12px; align-content: start; padding: 2px; filter: blur(5px); opacity: .6; pointer-events: none; user-select: none; }
.lock-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.lock-tile { display: grid; gap: 10px; align-content: start; height: 78px; padding: 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.lock-tile i, .lock-row i { display: block; height: 9px; width: 55%; border-radius: 5px; background: var(--line); }
.lock-tile b { display: block; height: 16px; width: 78%; border-radius: 6px; background: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.lock-chart { height: 160px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.lock-chart svg { display: block; width: 100%; height: 100%; }
.lock-chart path { fill: none; stroke: var(--brand); stroke-width: 3; vector-effect: non-scaling-stroke; }
.lock-rows { display: grid; padding: 4px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.lock-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.lock-row:last-child { border-bottom: 0; }
.lock-row i:nth-child(2), .lock-row i:nth-child(3) { width: 70%; justify-self: end; }
.lock-card { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto;
  display: grid; gap: 10px; justify-items: center; padding: 22px 24px; text-align: center; box-shadow: var(--shadow); }
.lock-card h2 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.lock-card p { color: var(--ink-2); font-size: var(--fs); line-height: 1.55; max-width: 52ch; }
.lock-list { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 6px; text-align: left; font-size: var(--fs-sm); color: var(--ink-2); }
.lock-list li { display: flex; gap: 8px; align-items: flex-start; }
.lock-list li::before { content: "✓"; flex: none; color: var(--up); font-weight: 800; }
.lock-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px; }
@media (max-width: 560px) {
  .lock { min-height: 560px; }
  .lock-sm { min-height: 480px; }
  .lock-card { padding: 18px 16px; }
  .lock-actions .btn { flex: 1 1 100%; }
}

.lock-dlg { display: grid; gap: 10px; justify-items: start; }
.lock-dlg p { color: var(--ink-2); }

/* ---------- upozornění (blok M6): jedno odsazení a zaoblení pro všechna; .warn varování, .info vysvětlení, bez třídy tlumené ----------
   Starší stránkové třídy (.pf-warn, .mj-warn, .hc-note, .st-hint, .appl-banner, .pf-note) mají stejné míry. */
.callout { padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.callout.warn { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); color: var(--ink); }
.callout.info { border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); color: var(--ink); }
.callout b { font-weight: 800; }
.callout a { color: var(--link); font-weight: 700; }
.callout + .callout { margin-top: 8px; }

/* ---------- filtry a nástrojová lišta ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.filters .select { width: auto; min-width: 150px; height: var(--h-sm); font-size: var(--fs-sm); }
.filters .input { width: auto; height: var(--h-sm); font-size: var(--fs-sm); }
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 220px; max-height: 360px; overflow-y: auto; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.menu-pop label { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; font-size: 13.5px; cursor: pointer; }
.menu-pop label:hover { background: var(--surface-2); }
.menu-pop h4 { margin: 8px 8px 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.menu-pop .menu-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 7px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }          /* 20. 10.: položky nabídky u příspěvku jako řádky s ikonou vlevo, bez podtržení */
.menu-pop .menu-item .ic { flex: none; color: var(--ink-3); }
.menu-pop .menu-item:hover, .menu-pop .menu-item:focus-visible { background: var(--surface-2); color: var(--brand); outline: none; }
.menu-pop .menu-item:hover .ic { color: var(--brand); }
.menu-pop .menu-item + .menu-item { margin-top: 2px; }

/* ---------- přehledové dlaždice a ukazatele ---------- */
/* Dlaždice s číslem: JEDNY míry pro všechny (blok M1). Popisek .k, hodnota b (u přehledu .v), pod ní pomocný řádek (em, small, .s).
   Na stránce mají povrch a okraj, uvnitř karty, okna nebo boxu tlumené pozadí. Velká varianta (hlavní čísla stránky) má hodnotu 22 px. */
.statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 12px 0; }          /* stejné mezery jako mřížka karet (12 px) */
.stat, .kpi, .rb-tile, .ia-kpi, .tx-kpis > div, .hc-kpi, .ai-m, .flow-chip, .dlg-stats > div {
  display: grid; gap: 2px; align-content: start; min-width: 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
:is(.card, .ia-box, dialog, .pf-feat, .mj-hero) :is(.stat, .kpi, .rb-tile, .ia-kpi, .tx-kpis > div, .hc-kpi, .ai-m, .flow-chip, .dlg-stats > div) { background: var(--surface-2); border-color: var(--line-soft); }
:is(.stat, .kpi, .rb-tile, .ia-kpi, .hc-kpi, .ai-m, .flow-chip) > .k, .tx-kpis > div > small, .dlg-stats > div > span { font-size: 12.5px; font-weight: 600; color: var(--ink-3); line-height: 1.35; }
:is(.stat, .kpi, .rb-tile, .ia-kpi, .tx-kpis > div, .ai-m, .flow-chip, .dlg-stats > div) > b, .hc-kpi > .v { font-size: var(--fs-lg); font-weight: 800; line-height: 1.25; letter-spacing: -.005em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
:is(.stat, .kpi, .rb-tile, .ia-kpi, .tx-kpis > div, .hc-kpi, .ai-m) > :is(em, small, .s, .pf-sub) { font-style: normal; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.35; }
:is(.stat-lg, .pf-stat, .hc-kpi) > :is(b, .v) { font-size: var(--fs-xl); }
.stat[title], .rb-tile[title] { cursor: help; }
a.stat { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s var(--ease); }
a.stat:hover { border-color: var(--brand); transform: translateY(-1px); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.bar-h { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar-h i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.donut-legend { display: grid; gap: 6px; font-size: 13.5px; align-content: start; max-height: 220px; overflow-y: auto; }
.donut-legend div { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; }
.donut-legend i { width: 10px; height: 10px; border-radius: 3px; }
.donut-legend b { font-variant-numeric: tabular-nums; }
.heat { display: grid; grid-template-columns: 52px repeat(12, 1fr) 62px; gap: 3px; font-size: 12px; font-variant-numeric: tabular-nums; }
.heat > span { padding: 6px 2px; text-align: center; border-radius: 6px; }
.heat .hd { color: var(--ink-3); font-weight: 700; }
.heat .yr { text-align: left; color: var(--ink-2); font-weight: 700; }
.heat .cell { color: #fff; font-weight: 700; }
.heat .empty { background: var(--surface-2); color: transparent; }

/* ---------- panel PRO a přihlášení ---------- */
.pro-box { display: grid; gap: 10px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.pro-box h3 { font-size: 16px; }
.pro-box ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.auth-card { max-width: 440px; margin: 34px auto; padding: 26px 26px 22px; }
.auth-card h1 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.auth-card .sub { color: var(--ink-2); margin-bottom: 18px; }
.auth-sep { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12.5px; margin: 14px 0; }
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- úzké displeje ---------- */
@media (max-width: 1100px) {
  .top-market .indices { display: none; }
}
@media (max-width: 900px) {
  .only-narrow, .icon-btn.only-narrow { display: inline-grid; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; transform: translateX(-102%); transition: transform .22s var(--ease); box-shadow: var(--shadow); }
  .side.open { transform: none; }
  html[data-side="mini"] .side { width: 264px; }
  html[data-side="mini"] .side .brand-text, html[data-side="mini"] .side-nav a span, html[data-side="mini"] .side-link span, html[data-side="mini"] .lang { display: revert; }
  .side-collapse { display: none; }
  .top { padding: 8px 12px; gap: 8px; }
  .top-search { flex: 1 1 auto; }
  .top-market { display: none; }
  .top-tools .btn-ghost { display: none; }
  main.wrap { padding: 6px 12px 34px; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }          /* minmax: široká tabulka v kartě se posouvá uvnitř, nerozšíří sloupec ani stránku */
  .g2.masonry, .g2.pf-g2 { column-count: 1; }
  .page-h h1 { font-size: 22px; }
  .heat { grid-template-columns: 42px repeat(12, 1fr) 48px; font-size: 10px; }
}

/* ---------- přehled: seznamy titulů a odkazové dlaždice ---------- */
.section-h { font-size: 16px; font-weight: 800; margin: 0 0 10px; letter-spacing: -.005em; }
.mv-list { list-style: none; margin: 0; padding: 6px 10px 10px; display: grid; gap: 2px; }
.card-b > .mv-list { padding: 0; }
.mv { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 8px; border-radius: 10px; text-decoration: none; }
.mv:hover { background: var(--surface-2); }
.mv-id { display: grid; min-width: 0; line-height: 1.25; }
.mv-id b { font-size: 14px; }
.mv-id small { color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-date { font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mv-date small { color: var(--ink-3); font-weight: 500; }
.link-card { display: grid; gap: 4px; align-content: start; padding: 14px 16px; text-decoration: none; transition: border-color .15s, transform .15s var(--ease), box-shadow .15s; }
.link-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.link-card b { font-size: 15px; }
.link-card small { color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-card .badge { justify-self: start; margin-top: 4px; }
.lc-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--sel); color: var(--brand); display: grid; place-items: center; margin-bottom: 4px; }

/* ---------- detail titulu: drobečky, záložky, srdíčko ---------- */
.crumbs { justify-content: flex-start; }
.crumbs-end { margin-left: auto; display: inline-flex; gap: 8px; flex-wrap: wrap; }
.sec-tabs { margin: 12px 0 14px; }
.fav-btn svg { transition: transform .15s var(--ease); }
.fav-btn.on { border-color: var(--down); color: var(--down); }
.fav-btn.on svg { fill: currentColor; }
.fav-btn:active svg { transform: scale(1.25); }

/* ---------- tabulka titulů ---------- */
.tbl-search { flex: 1 1 260px; max-width: 360px; }
.tbl-search input { height: 36px; border-radius: 10px; font-size: 13.5px; }
.tbl.loading { opacity: .55; transition: opacity .15s; }
.tbl .fav-col { width: 42px; text-align: center; padding-left: 4px; padding-right: 8px; }
.tbl th.pin { z-index: 3; }
.pager { margin: 14px 2px; }
.watch-meter { display: grid; gap: 6px; justify-items: end; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); min-width: 110px; }
.watch-meter b { font-size: 22px; font-weight: 800; }
.watch-meter span { color: var(--ink-3); font-weight: 700; }
.watch-meter .bar-h { width: 100%; }

/* ---------- kalendář výsledků ---------- */
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; margin-bottom: 4px; }
.cal-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-title { font-size: 20px; font-weight: 800; margin-left: 8px; letter-spacing: -.01em; }
.cal-modes { display: flex; gap: 10px; flex-wrap: wrap; min-width: 0; max-width: 100%; }          /* záložky v jednom řádku se posouvají uvnitř, nerozšíří stránku (M5) */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.cal-dow { background: var(--surface-2); padding: 8px 10px; font-size: 12px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.cal-cell { background: var(--surface); min-height: 118px; padding: 6px 6px 8px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-cell.out { background: var(--bg-2); }
.cal-cell.out .cal-day { color: var(--ink-3); opacity: .7; }
.cal-cell.weekend { background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--brand); }
.cal-day { align-self: flex-start; font-weight: 800; font-size: 13px; text-decoration: none; padding: 1px 6px; border-radius: 6px; color: var(--ink-2); }
.cal-day:hover { background: var(--surface-2); color: var(--brand); }
.cal-cell.today .cal-day { background: var(--brand); color: var(--brand-ink); }
.cal-chip { display: flex; align-items: center; gap: 6px; padding: 2px 6px; border-radius: 7px; text-decoration: none; background: var(--sel); font-size: 12px; min-width: 0; border: 1px solid transparent; }
.cal-chip b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-chip .co-logo { width: 16px; height: 16px; border-radius: 4px; font-size: 9px; }
.cal-chip .co-logo img { padding: 1px; }
.cal-chip:hover { border-color: var(--brand); }
.cal-chip.est { background: transparent; border: 1px dashed var(--line); }
.cal-chip.beat { background: color-mix(in srgb, var(--up) 15%, transparent); }
.cal-chip.miss { background: color-mix(in srgb, var(--down) 15%, transparent); }
.cal-hint { margin-left: auto; font-style: normal; color: var(--ink-3); font-size: 11px; }
.cal-more { font-size: 12px; font-weight: 700; color: var(--link); text-decoration: none; padding: 1px 6px; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: start; }
.cal-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; display: flex; flex-direction: column; gap: 4px; min-height: 180px; min-width: 0; }
.cal-col.today { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.cal-colh { font-size: 13px; text-decoration: none; color: var(--ink-2); padding: 2px 4px 6px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
.cal-colh b { text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }
.cal-none { padding: 6px; }
.cal-sk { display: block; height: 22px; border-radius: 7px; background: linear-gradient(100deg, var(--surface-2) 30%, var(--line) 50%, var(--surface-2) 70%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
.cal-sk:nth-of-type(2) { width: 72%; }
.cal-sk:nth-of-type(3) { width: 54%; }
@media (prefers-reduced-motion: reduce) { .cal-sk { animation: none; } }
.cal-dayh { font-size: 15px; font-weight: 800; margin: 14px 2px 8px; text-transform: capitalize; }
.cal-tbl td, .cal-tbl th { white-space: nowrap; }
@media (max-width: 900px) {
  .cal-grid { grid-template-columns: repeat(7, minmax(44px, 1fr)); overflow-x: auto; }
  .cal-cell { min-height: 84px; padding: 4px; }
  .cal-chip b { display: none; }
  .cal-chip { padding: 3px; justify-content: center; }
  .cal-hint { display: none; }
  .cal-week { grid-template-columns: 1fr; }
}

/* ---------- valuace ---------- */
.val-disc { font-size: 13px; margin: 0 0 12px; max-width: 90ch; }
.val-methods { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.val-grid { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 14px; align-items: start; }
.val-controls { display: grid; gap: 10px; position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; padding-right: 2px; scrollbar-width: thin; }
.val-group { padding: 0; overflow: hidden; }
.val-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; font-weight: 800; font-size: 14px; cursor: pointer; list-style: none; }
.val-group > summary::-webkit-details-marker { display: none; }
.val-group > summary input { width: 17px; height: 17px; accent-color: var(--brand); }
.val-gbody { padding: 2px 16px 12px; }
.val-hint { font-size: 12.5px; margin-bottom: 12px; }
.val-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 4px 2px 10px; }
.val-src { font-size: 12px; flex-basis: 100%; }
.val-hero { padding: 18px 20px; }
.val-hero-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.val-hero .k { font-size: 12px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.val-fair { font-size: 34px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.val-price { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.val-up { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.val-verdict { margin-top: 8px; font-weight: 700; color: var(--ink-2); }
.val-meta { display: flex; gap: 6px 20px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.val-reverse { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--ink-2); }
.chart-val { height: 300px; }
.val-kv { margin-top: 14px; max-width: 560px; }
.ff-wrap { position: relative; padding: 4px 18px 0; --ffl: 258px; --ffr: 108px; }
.ff { padding: 8px 0 4px; display: grid; gap: 4px; }
.ff-row { display: grid; grid-template-columns: 240px minmax(0, 1fr) 90px; gap: 0 18px; align-items: center; padding: 5px 0; }
.ff-row.off { opacity: .45; }
.ff-l { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.ff-track { position: relative; height: 12px; border-radius: 6px; background: var(--surface-2); }
.ff-bar { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: color-mix(in srgb, var(--brand) 45%, transparent); }
.ff-mark { position: absolute; top: -3px; bottom: -3px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--brand); }
.ff-v { text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; }
.ff-plot { position: absolute; left: var(--ffl); right: var(--ffr); top: 4px; bottom: 0; pointer-events: none; }
.ff-price { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed var(--accent); }
.ff-price-l { position: absolute; top: -2px; transform: translate(-50%, -100%); font-size: 11px; font-weight: 800; color: var(--accent); }
.ff-axis { display: flex; justify-content: space-between; margin: 2px 108px 0 258px; font-size: 11.5px; color: var(--ink-3); padding-bottom: 6px; }
.sens th, .sens td { text-align: right; }
.sens th:first-child { text-align: left; }
.sens-up { background: color-mix(in srgb, var(--up) 16%, transparent); }
.sens-down { background: color-mix(in srgb, var(--down) 16%, transparent); }
.sens-now { outline: 2px solid var(--brand); outline-offset: -2px; font-weight: 800; }
@media (max-width: 1100px) {
  .val-grid { grid-template-columns: 1fr; }
  .val-controls { position: static; max-height: none; }
}
@media (max-width: 700px) {
  .val-hero-top { grid-template-columns: 1fr 1fr; }
  .val-fair { font-size: 28px; }
  .ff-wrap { --ffl: 18px; --ffr: 18px; padding: 4px 14px 0; }
  .ff-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .ff-track { grid-column: 1 / -1; grid-row: 2; }
  .ff-plot, .ff-axis { display: none; }
}

/* ---------- porovnání ---------- */
.cmp-chips { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cmp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 6px 6px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.cmp-chip .co { min-width: 0; }
.cmp-add { flex: 1 1 260px; max-width: 360px; }
.cmp-add input { height: 44px; }
.cmp-tbl td.best { background: color-mix(in srgb, var(--up) 15%, transparent); font-weight: 800; }
.cmp-group td { background: var(--surface-2); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); padding: 7px 12px; }
.cmp-score td { font-weight: 800; border-bottom: 2px solid var(--line); }
.cmp-tbl td.pin { min-width: 170px; font-weight: 600; color: var(--ink-2); }
.cmp-tbl th.num { min-width: 110px; }

/* ---------- alerty ---------- */
.al-grid { align-items: start; }
.al-rules, .al-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.al-rule { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.al-rule.off { opacity: .55; }
.al-sym { font-weight: 800; text-decoration: none; padding: 3px 9px; border-radius: 8px; background: var(--sel); color: var(--brand); font-size: 13px; }
.al-text { display: grid; gap: 2px; min-width: 0; }
.al-text small { font-size: 12px; }
.al-firm { font-weight: 800; margin-bottom: 12px; }
.al-notes li a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.al-notes li a:hover { background: var(--surface-2); }
.al-notes li.unread a { background: color-mix(in srgb, var(--accent) 9%, transparent); border-left: 3px solid var(--accent); }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 11px; background: var(--line); transition: background-color .15s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s var(--ease); box-shadow: var(--shadow-sm); }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- ETF ---------- */
.etf-donut { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px; align-items: center; }
.etf-two { align-items: start; }
.etf-ret .kpi b { font-size: 20px; }
.heat .hv { color: var(--ink); font-weight: 700; }
.heat .yv { font-weight: 800; background: var(--surface-2); }
.heat .yv.up { color: var(--up); }
.heat .yv.down { color: var(--down); }
@media (max-width: 560px) {
  .etf-donut { grid-template-columns: 1fr; }
}

/* ---------- AI shrnutí a audit ---------- */
.ai-order { border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; background: color-mix(in srgb, var(--brand) 4%, var(--surface)); }
.ai-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ai-cta > div { display: grid; gap: 2px; max-width: 62ch; }
.ai-wait { display: flex; align-items: center; gap: 14px; }
.ai-wait > div { display: grid; gap: 2px; }
.ai-spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: ai-rot 0.9s linear infinite; flex: none; }
@keyframes ai-rot { to { transform: rotate(360deg); } }
.ai-body { display: grid; gap: 14px; }
.ai-headline { font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.ai-summary { color: var(--ink-2); margin-top: 6px; max-width: 80ch; }
.ai-tiles .kpi .badge { justify-self: start; margin-top: 4px; }
.ai-block h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin-bottom: 8px; }
.ai-block p + p { margin-top: 8px; }
.ai-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ai-list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 14.5px; }
.ai-list li svg { margin-top: 3px; }
.ai-list.good svg { color: var(--up); }
.ai-list.bad svg { color: var(--down); }
.ai-list.plain svg { color: var(--accent); }
.ai-cols { align-items: start; }
.ai-foot { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink-3); padding-top: 10px; border-top: 1px solid var(--line-soft); }
.ai-foot svg { margin-top: 2px; flex: none; }
/* jak AI vzniká a co nedělá (views/ai_jak.php): sbalené vysvětlení pod souhrnem firmy a pod auditem */
.ai-how { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.ai-how > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--link); }
.ai-how > summary::-webkit-details-marker { display: none; }
.ai-how > summary::after { content: "▸"; color: var(--ink-3); transition: transform .15s; }
.ai-how[open] > summary::after { transform: rotate(90deg); }
.ai-how ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; max-width: 80ch; line-height: 1.5; }
.ai-rating { display: flex; gap: 18px; align-items: center; }
.ai-score { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; align-content: center; flex: none; border: 4px solid var(--line); }
.ai-score b { font-size: 28px; font-weight: 800; line-height: 1; }
.ai-score span { font-size: 11px; color: var(--ink-3); }
.ai-score.ok { border-color: var(--up); }
.ai-score.warn { border-color: var(--accent); }
.ai-score.down { border-color: var(--down); }
/* český AI audit firmy (hromadný, bez objednávky): shrnutí, dlaždice klíčových metrik s meziročním trendem, seznamy */
.ai-cs-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ai-lead { font-size: 16px; line-height: 1.55; max-width: 80ch; }
/* audit přes celou šířku (21. 10. 2026): shrnutí vedle souhrnného hodnocení, tři sloupce povedlo se, plánuje a rizika */
.ai-cs-top { display: grid; gap: 16px; align-items: start; }
.ai-cs-top .ai-lead { max-width: none; margin: 0; }
.ai-verdict-box { padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--brand) 7%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line)); }
.ai-verdict-box h3 { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ai-verdict-box .ai-verdict { margin: 0; }
.ai-cols3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .ai-cs-top.has-verdict { grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); } .ai-cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ai-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; }
.ai-m .tr { display: flex; flex-wrap: wrap; gap: 5px; align-items: baseline; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ai-m .tr em { font-style: normal; font-weight: 600; color: var(--ink-3); }
.ai-m .tr.good { color: var(--up); }
.ai-m .tr.bad { color: var(--down); }
.ai-m .tr.neutral { color: var(--ink-3); }
.ai-verdict { border-left: 3px solid var(--brand); padding: 2px 0 2px 14px; color: var(--ink-2); max-width: 80ch; }
/* souhrn firmy „Co se právě děje“ (views/ai_overview.php): věta nahoře, pás čísel z databáze, body s barevným štítkem podle tónu */
.ov-headline { font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; max-width: 80ch; }
.ov-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; }
.ov-fact { display: grid; gap: 2px; padding: 9px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.ov-fact dt { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.ov-fact dd { margin: 0; font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ov-fact dd.up { color: var(--up); }
.ov-fact dd.down { color: var(--down); }
.ov-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ov-pt { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; font-size: 14.5px; line-height: 1.5; padding: 9px 12px; border: 1px solid var(--line); border-left-width: 4px; border-radius: 10px; background: var(--surface); }
.ov-pt .ov-lab { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding-top: 2px; }
.ov-pt.pos { border-left-color: var(--up); }
.ov-pt.neg { border-left-color: var(--down); }
.ov-pt.mixed { border-left-color: var(--accent); }
.ov-pt.neutral { border-left-color: var(--line); }
@media (max-width: 560px) { .ov-pt { grid-template-columns: 1fr; gap: 2px; } }
.release summary { cursor: pointer; font-weight: 700; color: var(--link); }
.release-text { margin-top: 12px; max-height: 480px; overflow: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: 13.5px; line-height: 1.55; }
.tr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tr-list a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 8px; border-radius: 10px; text-decoration: none; }
.tr-list a:hover { background: var(--surface-2); }
.tr-t { display: grid; min-width: 0; }
.tr-t span { color: var(--ink-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 700px) {
  .tr-list a { grid-template-columns: 34px minmax(0, 1fr); }
  .tr-badges { grid-column: 1 / -1; justify-content: flex-start; }
  .ai-rating { align-items: flex-start; }
}

/* ---------- úzké displeje: tabulky a stupnice se posouvají uvnitř karty, ne celou stránkou ---------- */
.heat-wrap { overflow-x: auto; }
@media (max-width: 700px) {
  .heat { min-width: 560px; font-size: 11px; grid-template-columns: 42px repeat(12, 1fr) 52px; }
}
.legend-scale { max-width: 100%; overflow-x: auto; scrollbar-width: none; }

/* ---------- hledání: přidání neznámého tickeru ---------- */
.search-results .sr-add { display: block; font-weight: 700; color: var(--link); cursor: pointer; padding: 9px 14px; border-top: 1px solid var(--line-soft); }
.search-results .sr-add:hover { background: var(--surface-2); }

/* ---------- filtry sloupců (filters.js, table.js, grid.js) ---------- */
.th-f { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 4px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ink-3); vertical-align: middle; cursor: pointer; opacity: .55; transition: opacity .15s, background-color .15s, color .15s; }
.th-f:hover, .tbl th:hover .th-f, .th-f:focus-visible { opacity: 1; background: var(--surface-2); color: var(--ink); }
.th-f.on { opacity: 1; color: #fff; background: var(--brand); }
@media (pointer: coarse) { .th-f { width: 30px; height: 30px; } }          /* filtr v hlavičce tabulky: na dotyk větší cíl (M7) */
.f-pop { position: absolute; z-index: 300; width: min(300px, calc(100vw - 16px)); padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.f-pop h4 { font-size: 13px; font-weight: 800; }
.f-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.f-num { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px; padding: 0 10px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.f-num:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.f-num span { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.f-num input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14.5px; font-variant-numeric: tabular-nums; text-align: right; }
.f-num em { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.f-hint { font-size: 12px; color: var(--ink-3); margin: 0; }
.f-list { max-height: 210px; overflow-y: auto; display: grid; gap: 1px; margin: 0 -4px; }
.f-list label { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; cursor: pointer; }
.f-list label:hover { background: var(--surface-2); }
.f-list label em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--ink-3); }
.f-actions { display: flex; justify-content: flex-end; gap: 8px; }
.f-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.f-chip { display: inline-flex; align-items: stretch; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line)); background: color-mix(in srgb, var(--brand) 9%, var(--surface)); overflow: hidden; }
.f-chip-t { border: 0; background: transparent; color: var(--ink); padding: 5px 4px 5px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.f-chip-x { border: 0; background: transparent; color: var(--ink-3); padding: 0 11px 0 6px; font-size: 17px; line-height: 1; cursor: pointer; }
.f-chip-x:hover { color: var(--down); }
.f-add-pop { right: auto; left: 0; min-width: 260px; max-height: 420px; }
.menu-item { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 7px 8px; border-radius: 8px; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.menu-item:hover { background: var(--surface-2); }
.menu-item.on { color: var(--brand); font-weight: 800; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.presets .chip { display: inline-flex; align-items: center; text-decoration: none; }
.presets-about { margin: 0 0 12px; font-size: 13.5px; max-width: 80ch; }
.grid-bar { display: flex; align-items: center; gap: 12px; margin: 8px 0; flex-wrap: wrap; }
.grid-bar .input { width: min(320px, 100%); height: 36px; font-size: 13.5px; }
.grid-count { font-size: 12.5px; }
.grid-none { padding: 14px 4px; }

/* stav: plán práce a čerstvost dat */
.st-plan h2 em { font-style: normal; font-weight: 500; color: var(--ink-3); font-size: 13px; margin-left: 8px; }
.st-lane { font-size: 13.5px; color: var(--ink-2); margin: 0 0 12px; line-height: 1.5; }
.st-plan-table td { vertical-align: top; }
.st-plan-table .st-sub { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; max-width: 70ch; line-height: 1.4; }
.st-plan-table tr.st-busy td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
/* průběh načítání dat nahoře na /stav */
.st-lead { font-size: 15px; line-height: 1.55; margin: 0 0 12px; color: var(--ink-2); }
.st-lead b { color: var(--ink); font-variant-numeric: tabular-nums; }
.st-bar-big { height: 14px; border-radius: 7px; }
.st-bar-big i { border-radius: 7px; }
.st-lanes td { vertical-align: top; font-size: 13.5px; }
.st-lanes .st-sub { color: var(--ink-3); font-size: 12.5px; }
.st-lanes tr.st-busy td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.st-progress .st-note { margin-top: 10px; }
.st-hint { margin: 14px 0 0; padding: 10px 14px; border-radius: var(--r-md); border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--line)); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); color: var(--ink); font-size: 13.5px; line-height: 1.55; }
.st-hint b { font-weight: 800; }
.st-worker-form .st-quick { margin: 4px 0 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.st-worker-form select.st-attn { box-shadow: 0 0 0 2px rgba(238, 123, 17, .6); }
.st-note { font-size: 12.5px; color: var(--ink-3); margin: 10px 0 0; }
.st-fresh { margin: 0 0 16px; }
.st-fresh-h { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 6px; }
.st-fresh-h span { color: var(--ink-3); }
.st-stack { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.st-seg { display: block; min-width: 3px; }
.st-seg-0 { background: var(--up); } .st-seg-1 { background: color-mix(in srgb, var(--up) 55%, var(--surface-2)); } .st-seg-2 { background: var(--warn); } .st-seg-3 { background: var(--down); } .st-seg-4 { background: var(--ink-3); }
.st-legend { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--ink-2); }
.st-legend li { display: inline-flex; align-items: center; gap: 6px; }
.st-legend i { width: 9px; height: 9px; border-radius: 3px; }

/* Co všechno se sbírá: tabulky, do kterých zatím nic nepřibylo, jsou tlumené */
.st-collected td code { font-size: .85em; color: var(--ink-3); }
.st-collected tr.st-muted td { opacity: .5; }

/* ---------- přístupnost a barvy změn ---------- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 9px 16px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 700; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 10px; }
/* VIX měří očekávané kolísání: jeho růst není ztráta ani zisk, proto se v liště nebarví */
.ix[data-live-sym="^VIX"].up .ix-chg, .ix[data-live-sym="^VIX"].down .ix-chg { color: var(--ink-2); }
.top-market .indices, .top-market .clocks { flex: none; }

/* levý panel: rozbalovací skupiny (definice v lib/ui.php pt_nav_groups) */
.nav-group { display: grid; }
.nav-group-h { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: transparent; color: rgba(255, 255, 255, .78); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-align: left; white-space: nowrap; transition: background-color .15s, color .15s; }
.nav-group-h:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.nav-group-h > span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.nav-group-h .ic:last-child { margin-left: auto; opacity: .6; transition: transform .2s var(--ease); }
.nav-group-h[aria-expanded="true"] .ic:last-child { transform: rotate(180deg); }
.nav-group.has-active > .nav-group-h { color: #fff; }
.ng-soon { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--warn); }
.nav-sub { display: grid; gap: 1px; margin: 1px 0 6px 12px; padding-left: 5px; border-left: 1px solid rgba(255, 255, 255, .16); animation: ng-in .18s var(--ease); }          /* 21. 10.: podseznam blíž k levému okraji, ať se vejde i štítek PRO */
.nav-sub[hidden] { display: none; }
.side-nav .nav-sub a { padding: 7px 8px; gap: 9px; font-size: 13.5px; font-weight: 600; }
.side-nav a > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }          /* dlouhý název se zkrátí, štítek PRO a zámek zůstanou celé */
.side-nav a > .ic, .side-nav a .nav-tier, .side-nav a .nav-need { flex: none; }
.nav-sub-h { display: block; padding: 9px 10px 2px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.nav-sub-h:first-child { padding-top: 3px; }
.side-nav a .nav-need { margin-left: auto; display: inline-flex; color: rgba(255, 255, 255, .6); opacity: .9; }
.side-nav a .nav-tier { margin-left: auto; font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .03em; padding: 1px 5px; border-radius: var(--r-pill); background: linear-gradient(135deg, var(--accent), #f7a541); color: #2b1600; }
.side-nav a .nav-tier.premium { background: linear-gradient(135deg, #7a68e0, #c23fb5); color: #fff; }
.side-nav a .nav-tier.nav-stitek { background: var(--surface-2); color: var(--ink-3); font-weight: 700; letter-spacing: 0; }          /* štítek „ručně“ u bankovních položek (23. 10. 2026) */
html[data-side="mini"] .nav-sub-h, html[data-side="mini"] .side-nav a .nav-need, html[data-side="mini"] .side-nav a .nav-tier { display: none; }
.nav-soon-t { margin: 2px 4px 4px; padding: 0 4px; font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, .6); white-space: normal; }
.side-nav .nav-sub a.nav-soon-a { font-size: 12.5px; color: #ffc99a; font-weight: 700; padding: 3px 8px 6px; }
@keyframes ng-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nav-sub { animation: none; } .nav-group-h .ic:last-child { transition: none; } }
/* sbalený panel (22. 10. 2026, Vojta: „na malém se všechno zavře, je tam méně nabídek, klik nejdřív rozjede“): jen ikony skupin, podseznamy schované;
   klik na ikonu skupiny panel rozbalí a skupinu otevře (assets/js/ui.js), skupina s otevřenou stránkou svítí */
html[data-side="mini"] .nav-group-h > span, html[data-side="mini"] .nav-group-h .ic:last-child, html[data-side="mini"] .ng-soon { display: none; }
html[data-side="mini"] .nav-group-h { justify-content: center; padding: 10px; position: relative; }
html[data-side="mini"] .nav-sub, html[data-side="mini"] .nav-sub[hidden] { display: none; }
html[data-side="mini"] .nav-group.has-active > .nav-group-h { background: rgba(255, 255, 255, .15); color: #fff; }
html[data-side="mini"] .nav-group.has-active > .nav-group-h::before { content: ""; position: absolute; left: 0; top: 22%; height: 56%; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
@media (max-width: 900px) {
  html[data-side="mini"] .nav-group-h > span, html[data-side="mini"] .ng-soon { display: revert; }
  html[data-side="mini"] .nav-group-h .ic:last-child { display: revert; }
  html[data-side="mini"] .nav-group:not(.is-soon) > .nav-group-h { display: flex; }
  html[data-side="mini"] .nav-group { border-top: 0; margin-top: 0; padding-top: 0; }
  html[data-side="mini"] .nav-group-h { justify-content: flex-start; padding: 9px 12px; }
  html[data-side="mini"] .nav-sub[hidden] { display: none; }
  html[data-side="mini"] .nav-sub:not([hidden]) { display: grid; }
  html[data-side="mini"] .nav-sub { margin: 1px 0 6px 21px; padding-left: 8px; border-left: 1px solid var(--line-soft); }
  html[data-side="mini"] .nav-group.is-soon > .nav-sub { display: grid; }
  html[data-side="mini"] .nav-group.is-soon > .nav-sub[hidden] { display: none; }
}

/* ---------- přehled stavu dat (/stav): pásma, termíny, rozptyl ---------- */
.st-back { margin: 0 0 6px; }
.st-band-table { table-layout: auto; }
.st-band-table th.num, .st-band-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-band-table .st-band-h th { padding: 16px 10px 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.st-band-table .st-band-h th span { margin-left: 8px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.st-band-table td .st-sub { display: block; color: var(--ink-3); font-size: 12px; font-weight: 400; margin-top: 2px; }
.st-band-table td { vertical-align: top; }
.st-band-table tr.st-lvl-warn td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.st-band-table tr.st-lvl-err td:first-child { box-shadow: inset 3px 0 0 var(--down); }
.st-cov { min-width: 200px; }
.st-meter { display: block; height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; margin-bottom: 4px; }
.st-meter i { display: block; height: 100%; background: var(--up); border-radius: 4px; }
.st-lvl-warn .st-meter i { background: var(--warn); }
.st-lvl-err .st-meter i { background: var(--down); }
.st-cov-n { font-variant-numeric: tabular-nums; margin-right: 6px; }
.pill.st-pill-err { background: rgba(246, 53, 56, .14); color: var(--down); }
.st-problems .st-checks li { grid-template-columns: 26px 70px 1fr; }
@media (max-width: 720px) {
  .st-cov { min-width: 150px; }
  .st-problems .st-checks li { grid-template-columns: 26px 1fr; }
}
.st-band-table td:nth-child(2) { white-space: nowrap; }
@media (max-width: 720px) {
  .st-band-table, .st-band-table tbody { display: block; }
  .st-band-table thead { display: none; }
  .st-band-table .st-band-h { display: block; }
  .st-band-table .st-band-h th { display: block; }
  .st-band-table tr:not(.st-band-h) { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
  .st-band-table tr:not(.st-band-h) td { display: block; border: 0; padding: 2px 0; white-space: normal; }
  .st-band-table td:nth-child(1), .st-band-table td:nth-child(4) { grid-column: 1 / -1; }
  .st-band-table td[data-l]::before { content: attr(data-l) ": "; color: var(--ink-3); font-size: 12px; }
  .st-band-table td.num { text-align: left; }
  .st-band-table tr.st-lvl-warn td:first-child, .st-band-table tr.st-lvl-err td:first-child { box-shadow: none; }
  .st-band-table tr.st-lvl-warn { box-shadow: inset 3px 0 0 var(--warn); padding-left: 10px; }
  .st-band-table tr.st-lvl-err { box-shadow: inset 3px 0 0 var(--down); padding-left: 10px; }
}
.st-cat-table td .st-sub { display: block; color: var(--ink-3); font-size: 12px; font-weight: 400; margin-top: 2px; overflow-wrap: anywhere; }
.st-cat-table td { vertical-align: top; }
.st-cat-table th.num, .st-cat-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 720px) {
  .st-cat-table, .st-cat-table tbody { display: block; }
  .st-cat-table thead { display: none; }
  .st-cat-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
  .st-cat-table td { display: block; border: 0; padding: 2px 0; }
  .st-cat-table td:first-child, .st-cat-table td:last-child { grid-column: 1 / -1; }
  .st-cat-table td[data-l]::before { content: attr(data-l) ": "; color: var(--ink-3); font-size: 12px; }
  .st-cat-table td.num { text-align: left; }
}
.st-cat-table td:nth-child(2), .st-cat-table td:nth-child(3) { white-space: nowrap; }
.st-cat-table td:first-child { min-width: 240px; }
.st-cat-table td:last-child { min-width: 170px; }

/* ---------- spodní lišta na telefonu (blok I1, views/foot.php a pt_tabbar_items v lib/pwa.php) ---------- */
.tabbar { display: none; }
@media (max-width: 900px) {
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 38; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 4px max(6px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(16, 36, 94, .06); transition: transform .2s var(--ease); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; min-width: 0; padding: 4px 2px;
    border: 0; border-radius: 12px; background: transparent; color: var(--ink-3); font: inherit; font-size: 11px; font-weight: 700; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tabbar a, .tabbar button { position: relative; }
  .tabbar a.active { color: var(--brand); }
  .tabbar a.active::before { content: ""; position: absolute; top: -4px; left: 50%; width: 22px; height: 3px; transform: translateX(-50%); border-radius: 0 0 3px 3px; background: var(--accent); }          /* oranžová značka jako v levém panelu */
  .tabbar a.active .ic { stroke-width: 2.3; }
  .tabbar a:active, .tabbar button:active { background: var(--surface-2); }
  .tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.kb-open .tabbar { transform: translateY(115%); }
  .main-col { padding-bottom: calc(64px + env(safe-area-inset-bottom)); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .toasts { bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.pub, body.lp { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }          /* veřejná část a úvod mají lištu taky (20. 10. 2026) */
  .cc-lista { bottom: calc(72px + env(safe-area-inset-bottom)) !important; }          /* lišta cookies nad spodní lištou */
}
/* větší plocha pro dotyk u drobných odkazů na telefonu (20. 10. 2026): neviditelný okraj kolem, vzhled se nemění */
@media (max-width: 900px) {
  :is(.link-btn, .kom-author, .kom-tag, .kom-stat, .kom-time, .kom-bublina-n, .kom-mention, .kom-quote-name, .kom-bub-name, .kom-idx-chip, .kom-tema) { position: relative; }
  :is(.link-btn, .kom-author, .kom-tag, .kom-stat, .kom-time, .kom-bublina-n, .kom-mention, .kom-quote-name, .kom-bub-name, .kom-idx-chip, .kom-tema)::after { content: ""; position: absolute; inset: -9px -4px; }
}
@media (max-width: 560px) {
  .top .top-data { display: none; }          /* Trhy a data jsou ve spodní liště jako Akcie, hledání tak dostane místo */
}
html[data-color="dark"] .tabbar { box-shadow: 0 -4px 18px rgba(0, 0, 0, .35); }
@media (prefers-reduced-motion: reduce) { .tabbar { transition: none; } }
@media print { .tabbar { display: none !important; } }

/* bezpečná oblast (viewport-fit=cover): boční panel na telefonu nevjede pod výřez displeje */
@media (max-width: 900px) { .side { padding-left: max(12px, env(safe-area-inset-left)); padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: max(12px, env(safe-area-inset-bottom)); } }

/* ---------- Skrýt částky (plán W1-19, lib/soukromi.php, assets/js/soukromi.js): na osobních stránkách se částky rozmažou, grafy celé ---------- */
.priv-toggle .priv-on { display: none; }
html[data-private="1"] .priv-toggle .priv-on { display: inline-flex; }
html[data-private="1"] .priv-toggle .priv-off { display: none; }
html[data-private="1"] .priv-toggle { background: var(--sel); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
html.pt-priv-wait #app { visibility: hidden; }
html[data-private="1"].pt-priv-page .pt-amt { display: inline-block; filter: blur(7px); user-select: none; -webkit-user-select: none; }
html[data-private="1"].pt-priv-page #app canvas, html[data-private="1"].pt-priv-page #app .chart svg { filter: blur(10px); }
html[data-private="1"].pt-priv-page #app[data-priv-skip] canvas, html[data-private="1"].pt-priv-page #app [data-priv-skip] canvas, html[data-private="1"].pt-priv-page #app[data-priv-skip] .chart svg, html[data-private="1"].pt-priv-page #app [data-priv-skip] .chart svg { filter: none; }          /* veřejné průměry (mapa cen) se nerozmazávají, 21. 10. 2026 */
@media print { html[data-private="1"].pt-priv-page .pt-amt { filter: none; visibility: hidden; } }

/* ---------- Pohyby (W1-18, views/pohyby.php) ---------- */
.ph-filters { display: grid; gap: 8px; margin: 4px 0 16px; }
.ph-filters .tabs { justify-self: start; }
.ph-n { font-style: normal; font-size: 11px; font-weight: 800; color: var(--ink-3); background: var(--bg-2); border-radius: var(--r-pill); padding: 1px 7px; }
.ph-note { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--r-md); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--ink-2); font-size: 14px; }
.ph-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 0 0 14px; }
.ph-sum-c { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ph-sum-c small { color: var(--ink-3); font-size: 12.5px; }
.ph-sum-c b { text-align: right; font-variant-numeric: tabular-nums; font-size: 16px; }
.ph-sum-note { grid-column: 1 / -1; margin: 0; font-size: 12.5px; }
.ph-tbl .ph-d { white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ph-tbl .ph-popis { min-width: 220px; }
.ph-tbl .ph-ucet a { color: var(--link); text-decoration: none; }
.ph-tbl .ph-ucet a:hover { text-decoration: underline; }
.ph-tbl .ph-mimo .num, .ph-tbl .ph-hodnota { color: var(--ink-2); }
.ph-tbl .num.up { color: var(--up); }
.ph-tbl .num.down { color: var(--down); }
.ph-b-banka { background: color-mix(in srgb, var(--c-teal) 16%, transparent); color: var(--c-teal); }
.ph-b-splatky { background: color-mix(in srgb, var(--c-coral) 16%, transparent); color: var(--c-coral); }
.ph-b-oceneni { background: var(--surface-2); color: var(--ink-2); }
.ph-b-dividendy { background: color-mix(in srgb, var(--up) 15%, transparent); color: var(--up); }
.ph-b-poplatky { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--warn); }

/* vlastní profilová fotka (20. 10. 2026, lib/avatar.php): v komunitě obrázek místo iniciál, v Nastavení náhled */
img.kom-av { display: inline-block; flex: none; border-radius: 50%; object-fit: cover; background: var(--surface-2); vertical-align: middle; }
.fotka-row { display: flex; gap: 16px; align-items: flex-start; }
.fotka-nahled { position: relative; flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--brand); color: #fff; font-size: 32px; font-weight: 800; }
.fotka-nahled img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fotka-row.busy { opacity: .6; pointer-events: none; }
.fotka-row.drop { outline: 2px dashed var(--brand); outline-offset: 8px; border-radius: 14px; }          /* fotka přetažená na kartu (20. 10. večer) */
.fotka-dlg { width: min(380px, calc(100vw - 24px)); }
.fotka-ramec { display: grid; place-items: center; }
.fotka-ramec canvas { width: 260px; height: 260px; border-radius: 50%; cursor: grab; touch-action: none; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line); }
.fotka-ramec canvas:active { cursor: grabbing; }
.fotka-zoom { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.fotka-zoom input { flex: 1; accent-color: var(--brand); }
@media (max-width: 520px) { .fotka-row { flex-direction: column; align-items: center; text-align: center; } .fotka-row .row { justify-content: center; } }


/* jedno tlačítko účtu ve stylu zvonku (22. 10. 2026, Vojta: „fotka a Můj přehled je to samé, sjednotit“): ikona nabídky a fotka v kulatém rámečku, Můj přehled je první položka nabídky */
.avatar-pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 2px 2px 2px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: border-color .15s, background-color .15s; }
.avatar-pill:hover { border-color: var(--brand); background: var(--surface-2); color: var(--ink); }
.avatar-pill:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.avatar-pill .avatar { position: relative; overflow: hidden; width: 34px; height: 34px; font-size: 14px; }
.avatar-pill .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu-item-main { font-weight: 800; color: var(--ink); }
body.lp .pub-top:not(.scrolled):not(:has(.open)) .avatar-pill { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); color: #fff; }

/* centrum oznámení (22. 10. 2026, lib/oznameni.php, assets/js/oznameni.js) */
.ozn-menu { position: relative; }
.ozn-pop { width: min(400px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 90px)); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.ozn-pop[hidden] { display: none; }
.ozn-pop-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 6px; }
.ozn-pop-h b { font-size: 16px; }
.ozn-pop-read { border: 0; background: none; color: var(--link); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.ozn-pop-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 4px 12px 8px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.ozn-pop-tabs button, .ozn-tabs button { border: 0; background: none; padding: 6px 10px; border-radius: 99px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.ozn-pop-tabs button.on, .ozn-tabs button.on { background: var(--sel); color: var(--brand); }
.ozn-pop-tabs em, .ozn-tabs em { font-style: normal; margin-left: 4px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); font-size: 11px; }
.ozn-pop-list { list-style: none; margin: 0; padding: 4px 6px; overflow-y: auto; flex: 1; }
.ozn-pop-empty { padding: 14px 10px; font-size: 13.5px; }
.ozn-pop-f { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--surface-2); }
.ozn-pop-f a { font-size: 12.5px; font-weight: 700; color: var(--link); text-decoration: none; }
.ozn-it { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 9px 8px; border-radius: 10px; }
.ozn-it.is-new { background: color-mix(in srgb, var(--brand) 7%, var(--surface)); }
.ozn-it-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); }
.ozn-it-ic:empty::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.ozn-it-ic.ozn-alerty { background: color-mix(in srgb, var(--warn) 16%, var(--surface)); color: var(--warn); }
.ozn-it-ic.ozn-komunita { background: var(--sel); color: var(--brand); }
.ozn-it-ic.ozn-zpravy { background: color-mix(in srgb, var(--up) 14%, var(--surface)); color: var(--up); }
.ozn-it-ic.ozn-prehledy { background: color-mix(in srgb, #7a68e0 16%, var(--surface)); color: #7a68e0; }
.ozn-it-b { min-width: 0; }
.ozn-it-t { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.35; }
a.ozn-it-t:hover { color: var(--link); }
.ozn-it-b p { margin: 2px 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.ozn-it-b small { font-size: 11.5px; }
.ozn-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ozn-tile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ic n v" "bar bar bar" "new new new"; gap: 8px 10px; align-items: center; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); text-align: left; font: inherit; cursor: pointer; }
.ozn-tile:hover { border-color: var(--brand); }
.ozn-tile .ozn-tile-ic { grid-area: ic; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--sel); color: var(--brand); }
.ozn-tile-n { grid-area: n; font-weight: 700; font-size: 14px; }
.ozn-tile b { grid-area: v; font-size: 20px; font-weight: 800; }
.ozn-tile-bar { grid-area: bar; display: block; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.ozn-tile-bar u { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.ozn-tile-new { grid-area: new; font-size: 12px; font-weight: 700; color: var(--brand); }
.ozn-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.ozn-layout > .card { margin: 0; }
.ozn-side { display: grid; gap: 10px; }
.ozn-cesta { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin: 0; color: var(--ink); text-decoration: none; }
.ozn-cesta:hover { border-color: var(--brand); }
.ozn-cesta span:last-child { display: grid; gap: 2px; }
.ozn-cesta small { color: var(--ink-3); font-size: 12.5px; }
.ozn-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.ozn-empty { padding: 12px 0; }
@media (max-width: 900px) { .ozn-layout { grid-template-columns: minmax(0, 1fr); } }

/* Malé vizualizace osobních financí (assets/js/fin_viz.js, 22. 10. 2026): prstenec s legendou, měřák s hranicí, průběh, kolečko, měsíce rezervy */
.fv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 28px; align-items: start; }
.fv-col { display: grid; gap: 12px; min-width: 0; }
.fv-col-mid { justify-items: center; }
.fv-h { margin: 0; font-size: 14px; font-weight: 800; }
.fv-donut { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: center; }
.fv-donut-svg { width: 150px; height: 150px; }
.fv-donut-t { font-size: 15px; font-weight: 800; fill: var(--ink); }
.fv-donut-s { font-size: 10px; fill: var(--ink-3); }
.fv-leg { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; }
.fv-leg li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 3.2em; gap: 8px; align-items: center; font-size: 13px; }
.fv-leg i { width: 10px; height: 10px; border-radius: 3px; }
.fv-leg span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.fv-leg b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fv-leg small { color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.fv-meter, .fv-prog { display: grid; gap: 5px; color: inherit; text-decoration: none; }
.fv-meter-h, .fv-prog-h { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.fv-meter-h span, .fv-prog-h span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-meter-h b, .fv-prog-h b { font-variant-numeric: tabular-nums; }
.fv-meter-bar, .fv-prog-bar { position: relative; height: 10px; border-radius: 99px; background: var(--surface-2); }
.fv-meter-bar i, .fv-prog-bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.fv-meter.is-over .fv-meter-bar i { background: var(--down); }
.fv-meter.is-over .fv-meter-h b { color: var(--down); }
.fv-lim { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--ink); }
.fv-meter small, .fv-prog small { font-size: 12px; }
.fv-prog-bar i { background: var(--up); }
a.fv-prog:hover .fv-prog-h span { color: var(--link); }
.fv-rings { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.fv-ring { display: grid; justify-items: center; gap: 2px; width: 128px; text-align: center; color: inherit; text-decoration: none; }
.fv-ring b { font-size: 13px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fv-ring small { font-size: 11.5px; line-height: 1.3; }
.fv-ring-svg { width: 84px; height: 84px; }
.fv-ring-t { font-size: 14px; font-weight: 800; fill: var(--ink); }
.fv-ring .fv-ring-v { stroke: var(--up); }
.fv-ring.is-warn .fv-ring-v { stroke: var(--warn); }
.fv-ring.is-off .fv-ring-v { stroke: var(--down); }
a.fv-ring:hover b { color: var(--link); }
.fv-months { display: grid; gap: 6px; width: 100%; max-width: 420px; }
.fv-months-h { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.fv-months-h span { color: var(--ink-2); }
.fv-months-g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.fv-mo { display: block; height: 18px; border-radius: 4px; background: linear-gradient(to right, var(--brand) var(--f), var(--surface-2) var(--f)); }
.fv-mo.is-target { box-shadow: 0 0 0 2px var(--ink); }
.fv-months small { font-size: 12px; }
@media (max-width: 520px) { .fv-donut { grid-template-columns: minmax(0, 1fr); justify-items: center; } .fv-leg { width: 100%; } }

/* Domácnost (/domacnost, lib/domacnost.php, 22. 10. 2026) */
.dom-pozvanka .card-b { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dom-pozvanka p { margin: 2px 0 0; }
.dom-pozvanka.is-target { box-shadow: 0 0 0 2px var(--brand); }
.dom-akce { display: flex; gap: 6px; flex-wrap: wrap; }
.dom-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; margin-bottom: 16px; }
.dom-top > .card { margin: 0; }
.dom-hero .card-b { display: grid; gap: 4px; }
.dom-big { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dom-sub { font-size: 13px; }
.dom-osoby-graf { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 12px; }
.dom-donut { position: relative; width: 132px; height: 132px; border-radius: 50%; }
.dom-donut span { position: absolute; inset: 22px; display: grid; place-content: center; text-align: center; border-radius: 50%; background: var(--surface); font-size: 24px; font-weight: 800; line-height: 1; }
.dom-donut small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-3); margin-top: 3px; }
.dom-leg, .dom-tr-key { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.dom-leg li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13.5px; }
.dom-leg i, .dom-tr-key i, .dom-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.dom-leg span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dom-leg b { font-variant-numeric: tabular-nums; }
.dom-tr-row { display: grid; grid-template-columns: 7em minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 13.5px; }
.dom-tr-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.dom-tr-bar { display: flex; height: 16px; border-radius: 6px; overflow: hidden; background: var(--surface-2); min-width: 4px; }
.dom-tr-bar i { display: block; height: 100%; }
.dom-tr-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dom-tr-key { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
.dom-tr-key li { display: flex; align-items: center; gap: 6px; }
.dom-tr-key b { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; }
.dom-vyvoj { margin-bottom: 16px; }
.dom-vyvoj .card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dom-line { display: block; width: 100%; height: 160px; }
.dom-line-l { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dom-line-l .up { color: var(--up); font-weight: 700; }
.dom-line-l .down { color: var(--down); font-weight: 700; }
.dom-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 16px; align-items: start; }
.dom-cards > .card { margin: 0; }
.dom-osoba .card-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dom-osoba .card-h h2 { display: inline-flex; align-items: center; gap: 8px; }
.dom-badge { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.dom-badge.is-ok { background: color-mix(in srgb, var(--up) 12%, var(--surface)); color: var(--up); }
.dom-jm { margin: 0 0 10px; }
.dom-jm b { font-size: 20px; font-variant-numeric: tabular-nums; }
.dom-blok { border-top: 1px solid var(--line-soft, var(--line)); padding: 8px 0 4px; }
.dom-blok h3 { margin: 0 0 6px; font-size: 13.5px; font-weight: 800; }
.dom-blok ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dom-blok li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.dom-blok li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.dom-blok li b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dom-blok li b.down { color: var(--down); }
.dom-blok p, .dom-co { margin: 4px 0 0; font-size: 12.5px; }
.dom-sprava .card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.dom-list { list-style: none; margin: 0; padding: 0; }
.dom-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft, var(--line)); }
.dom-list li:first-child { border-top: 0; }
.dom-list li > div:first-child { display: grid; min-width: 0; }
.dom-list small { font-size: 12px; }
.dom-h3 { margin: 16px 0 4px; font-size: 14px; font-weight: 800; }
.dom-pozn { margin: 12px 0 0; font-size: 12.5px; }
@media (max-width: 900px) { .dom-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .dom-osoby-graf { grid-template-columns: minmax(0, 1fr); justify-items: center; } .dom-leg { width: 100%; } .dom-list li { grid-template-columns: minmax(0, 1fr); } }

/* Dvoufázové přihlášení (lib/dvoufazove.php, 22. 10. 2026) */
.f2a-page { display: grid; place-items: start center; padding-top: 32px; }
.f2a-card { width: min(100%, 420px); text-align: center; }
.f2a-card .card-b { display: grid; gap: 12px; justify-items: center; padding: 28px 24px; }
.f2a-card h1 { margin: 0; font-size: 24px; font-weight: 800; }
.f2a-card p { margin: 0; }
.f2a-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--sel); color: var(--brand); }
#f2a-form { display: grid; gap: 10px; width: 100%; }
.f2a-kod { text-align: center; font-size: 26px; font-weight: 800; letter-spacing: .18em; height: 56px; font-variant-numeric: tabular-nums; }
.f2a-btn { width: 100%; justify-content: center; }
.f2a-pozn { font-size: 12.5px; line-height: 1.5; }
.f2a-stav { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); }
.f2a-stav.is-on { background: color-mix(in srgb, var(--up) 14%, var(--surface)); color: var(--up); }
.f2a-setup { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: start; }
.f2a-setup p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.45; }
.f2a-qr { width: 170px; height: 170px; padding: 8px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.f2a-qr svg { display: block; width: 100%; height: 100%; }
.f2a-klic { display: inline-block; margin: 0 0 10px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); font-size: 13px; letter-spacing: .06em; word-break: break-all; }
.f2a-kody-box { display: grid; gap: 10px; }
.f2a-kody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; margin: 0; padding-left: 22px; }
.f2a-kody code { font-size: 15px; font-weight: 700; letter-spacing: .08em; }
@media (max-width: 560px) { .f2a-setup { grid-template-columns: minmax(0, 1fr); justify-items: center; } }

/* Hledací pomocník a šipka nahoru (assets/js/pomocnik.js, 22. 10. 2026) */
.pm-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; justify-items: end; gap: 10px; }
.pm-fab { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 18px 0 15px; border: 0; border-radius: 99px; background: var(--brand); color: #fff; font: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 22px rgba(15, 40, 120, .32); transition: transform .15s var(--ease), box-shadow .15s; }
.pm-fab:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(15, 40, 120, .38); }
.pm-fab:focus-visible, .pm-nahoru:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, #fff); outline-offset: 2px; }
.pm-wrap.is-open .pm-fab span { display: none; }
.pm-wrap.is-open .pm-fab { padding: 0 14px; }
.pm-nahoru { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: 0 6px 16px rgba(15, 30, 70, .16);
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
.pm-nahoru.is-on { opacity: 1; transform: none; pointer-events: auto; }
.pm-nahoru:hover { color: var(--brand); border-color: var(--brand); }
.pm-panel { position: fixed; right: 18px; bottom: 80px; z-index: 61; width: min(400px, calc(100vw - 24px)); height: min(580px, calc(100vh - 120px)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: 18px; background: var(--surface); box-shadow: 0 18px 48px rgba(10, 25, 70, .28), 0 0 0 1px var(--line); overflow: hidden; }
.pm-panel[hidden] { display: none; }
.pm-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: linear-gradient(135deg, var(--blue-dark, #001c68), var(--brand)); color: #fff; }
.pm-head div { display: grid; flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.pm-head small { opacity: .8; font-size: 12px; }
.pm-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.pm-av svg { width: 19px; height: 19px; }
.pm-x { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.pm-x:hover { background: rgba(255, 255, 255, .16); }
.pm-msgs { overflow-y: auto; padding: 14px; display: grid; align-content: start; gap: 10px; overscroll-behavior: contain; background: var(--bg, var(--surface-2)); }
.pm-msg { max-width: 92%; font-size: 14px; line-height: 1.45; }
.pm-ja { justify-self: end; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--brand); color: #fff; }
.pm-bot { justify-self: start; width: 100%; max-width: 100%; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: var(--surface); box-shadow: 0 0 0 1px var(--line-soft, var(--line)); }
.pm-text { margin: 0; }
.pm-skupina { display: grid; gap: 4px; margin-top: 10px; }
.pm-sk-h { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.pm-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.pm-item:hover, .pm-item:focus-visible { background: var(--sel, var(--surface-2)); }
.pm-ic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); color: var(--brand); font-size: 11px; font-weight: 800; overflow: hidden; }
.pm-ic img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pm-tx { display: grid; min-width: 0; line-height: 1.25; }
.pm-tx b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-tx small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-vse { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--link); }
.pm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pm-chip { padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.pm-chip:hover { border-color: var(--brand); color: var(--brand); }
.pm-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.pm-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: pm-dot 1s infinite ease-in-out; }
.pm-dots i:nth-child(2) { animation-delay: .15s; }
.pm-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes pm-dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.pm-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line-soft, var(--line)); background: var(--surface); }
.pm-in { flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 14px; }
.pm-in:focus { outline: 2px solid var(--brand); outline-offset: 0; background: var(--surface); }
.pm-send { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--brand); color: #fff; cursor: pointer; }
@media (max-width: 900px) { body:has(.tabbar) .pm-wrap { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } body:has(.tabbar) .pm-panel { bottom: calc(138px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 560px) { .pm-fab span { display: none; } .pm-fab { width: 50px; padding: 0; justify-content: center; } .pm-panel { right: 12px; left: 12px; width: auto; height: min(560px, calc(100vh - 170px)); } }
@media (prefers-reduced-motion: reduce) { .pm-nahoru, .pm-fab { transition: none; } .pm-dots i { animation: none; } }
@media print { .pm-wrap, .pm-panel { display: none !important; } }

/* Upozornění na telefon v Nastavení (assets/js/push.js, 22. 10. 2026) */
.push-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.push-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line-soft, var(--line)); }

/* Rozpočty (/rozpocty, lib/rozpocty.php, 22. 10. 2026) */
.rz-mesice { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.rz-mesice b { font-size: 17px; min-width: 9em; text-align: center; }
.rz-pred .ic { transform: rotate(90deg); }          /* ikona chevron míří dolů: doleva */
.rz-dalsi .ic { transform: rotate(-90deg); }
.rz-novy { margin-left: auto; }
.rz-top { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.6fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.rz-top > .card { margin: 0; }
.rz-hero .card-b { display: grid; justify-items: center; gap: 14px; text-align: center; }
.rz-ring { position: relative; width: 168px; height: 168px; border-radius: 50%; }
.rz-ring span { position: absolute; inset: 20px; display: grid; place-content: center; border-radius: 50%; background: var(--surface); line-height: 1.1; }
.rz-ring b { font-size: 30px; font-weight: 800; }
.rz-ring small { font-size: 12px; color: var(--ink-3); }
.rz-hero-tx { display: grid; gap: 4px; justify-items: center; width: 100%; }
.rz-big { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rz-big.down, .rz-row-f .down { color: var(--down); }
.rz-den { display: block; width: 100%; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.rz-den i { display: block; height: 100%; background: var(--ink-3); border-radius: 99px; }
.rz-row { padding: 10px 0; border-top: 1px solid var(--line-soft, var(--line)); display: grid; gap: 6px; }
.rz-row:first-child { border-top: 0; padding-top: 2px; }
.rz-row-h { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.rz-row-h span { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rz-bar { position: relative; height: 12px; border-radius: 99px; background: var(--surface-2); }
.rz-bar i { display: block; height: 100%; border-radius: 99px; background: var(--up); }
.rz-row.is-warn .rz-bar i { background: var(--warn); }
.rz-row.is-over .rz-bar i { background: var(--down); }
.rz-bar u { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 2px; opacity: .55; }
.rz-row-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
.rz-akce { display: inline-flex; gap: 12px; }
.rz-bez-list { list-style: none; margin: 0; padding: 0; }
.rz-bez-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-soft, var(--line)); }
.rz-bez-list li:first-child { border-top: 0; }
.rz-bez-list li > span:first-child { display: grid; min-width: 0; }
.rz-bez-list small { font-size: 12px; }
.rz-bez .card-h, .rz-vlastni .card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.rz-bez, .rz-vlastni, .rz-uvod { margin-bottom: 16px; }
@media (max-width: 900px) { .rz-top { grid-template-columns: minmax(0, 1fr); } }

/* ---------- přesunuté z inline stylů (audit 23. 10. 2026, oddíl 3): pojmenované výjimky jednotlivých stránek ---------- */
.card-pad { padding: 16px 18px; }          /* karta s vlastním obsahem bez .card-h a .card-b (porovnání, přehled DCF) */
.cmp-chart { height: 340px; }          /* graf porovnání výkonnosti */
.dcf-search { max-width: 520px; }          /* hledání firmy na přehledu DCF */
.data-form { align-items: flex-end; }          /* /data: pole a tlačítko zarovnané dole (k .row) */
.mod-input { flex: 1; min-width: 180px; }          /* moderace: pole tokenu a přezdívky vyplní řádek */
.prop-kroky { margin: 0 0 14px; padding-left: 20px; line-height: 1.6; }          /* propojení Czech Day: kroky */
.prop-kod { font-size: 2.2rem; font-weight: 800; letter-spacing: .18em; font-variant-numeric: tabular-nums; }          /* párovací kód */
.prop-radek { padding: 8px 0; border-top: 1px solid var(--line); }          /* řádek propojené aplikace (k .row.between) */
.nick-form { max-width: 380px; }          /* první přezdívka po registraci (s .mx-auto a .txt-left) */
.pf-warn.cen-warn { max-width: 1080px; margin: 0 auto 18px; }          /* důvod zámku nad ceníkem */
.set-summary { cursor: pointer; font-weight: 700; padding: 6px 0; }          /* nastavení: rozbalení plánování do budoucna */
.st-aut-chyby { margin: 0; padding-left: 18px; font-size: var(--fs-sm); }          /* stav automatizace: seznam posledních chyb */
.st-aut-log { margin: 0; font-size: var(--fs-xs); line-height: 1.45; max-height: 280px; overflow: auto; white-space: pre-wrap; }          /* výpis logu cronu */
.st-aut-souhrn { max-width: 340px; }          /* sloupec souhrnu úlohy */
.ty-den { width: 56px; }          /* týden: sloupec dne v kalendáři */

/* auth.css */
/* Přihlášení a registrace: dělená karta s přepínačem a posunem mezi stranami (views/auth_card.php, assets/js/authcard.js, 19. 10. 2026 večer).
   Karta je v okně nad stránkou i na stránkách /prihlaseni a /registrace, vypadá všude stejně; v okně se modrý panel nekreslí. */

/* ---------- okno a stránka: dělená karta (modrý panel + formulář), v okně jen formulář (19. 10. večer) ---------- */
dialog.auth-modal { width: min(560px, calc(100vw - 20px)); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; box-shadow: none; overflow: visible; }
dialog.auth-modal::backdrop { background: var(--overlay); backdrop-filter: blur(6px); }
.auth-page { display: grid; place-items: start center; padding-top: 26px; padding-bottom: 40px; position: relative; }
.auth-page .flip { width: min(1040px, 100%); }
dialog.auth-modal[open] .flip { animation: auth-pop .34s cubic-bezier(.2, .8, .2, 1); }
@keyframes auth-pop { from { opacity: 0; transform: translateY(14px) scale(.965); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog.auth-modal[open] .flip { animation: none; } }
@media (max-height: 780px) { dialog.auth-modal { max-height: calc(100dvh - 12px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; } }

.flip { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); border-radius: 26px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.auth-modal .flip { grid-template-columns: 1fr; border-radius: 24px; }

/* modrý panel vlevo: značka, věta, tři přínosy účtu (jako dělené karty zpětné vazby a kontaktu) */
.auth-aside { position: relative; isolation: isolate; overflow: hidden; display: grid; padding: 40px 36px 32px; color: #fff;
  background: linear-gradient(115deg, transparent 56%, rgba(255, 255, 255, .07) 56%, rgba(255, 255, 255, .07) 71%, transparent 71%), radial-gradient(110% 130% at 100% 0%, rgba(255, 255, 255, .16) 0%, transparent 55%), var(--stage); }
.auth-aside::after { content: ""; position: absolute; z-index: -1; top: -90px; right: -50px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 62%); pointer-events: none; }
.auth-aside-in { display: grid; align-content: start; gap: 0; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.auth-aside h2 { margin: 30px 0 22px; font-size: clamp(26px, 2.5vw, 34px); line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
.auth-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.auth-perks li { display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.auth-perk-ic { grid-row: 1 / span 2; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 26%, transparent); color: var(--stage-accent); }
.auth-perks b { font-size: 14.5px; line-height: 1.25; }
.auth-perks li > span:last-child { font-size: 13px; color: var(--stage-ink-2); line-height: 1.45; }
.auth-aside-foot { margin: 26px 0 0; font-size: 12.5px; color: var(--stage-ink-2); }

/* pravá část: přepínač, tlačítka a formulář */
.auth-main { position: relative; min-width: 0; padding: 26px 34px 26px; }
.auth-modal .auth-main { padding: 22px 24px 22px; }
.auth-main .modal-x { position: absolute; top: 12px; right: 12px; z-index: 2; }
.auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin: 0 0 18px; border-radius: 999px; background: var(--surface-2); }
.auth-modal .auth-tabs { margin-right: 44px; }
.auth-tabs::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), opacity .2s; }
.flip[data-face="register"] .auth-tabs::before { transform: translateX(100%); }
.flip[data-face="verify"] .auth-tabs::before { opacity: 0; }
.auth-tabs a { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; border-radius: 999px; color: var(--ink-2); font-size: 14.5px; font-weight: 700; text-decoration: none; transition: color .2s; }
.auth-tabs a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0; transform: scale(.4); transition: opacity .25s, transform .25s var(--ease); }
.auth-tabs a[aria-selected="true"] { color: var(--brand); }
.auth-tabs a[aria-selected="true"]::before { opacity: 1; transform: none; }          /* oranžová tečka u otevřené strany, jako v liště */
.auth-title { margin: 0 0 4px; font-size: 26px; font-weight: 800; letter-spacing: -.025em; line-height: 1.12; }
.auth-sub { margin: 0 0 16px; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.auth-sub b { color: var(--ink); }

/* posun mezi stranami: stará odjede do strany a zprůhlední, nová přijede z druhé strany; výšku ladí authcard.js */
.flip-lift { min-width: 0; }
.flip-inner { position: relative; display: grid; overflow: hidden; }
.flip.ready .flip-inner { transition: height .45s cubic-bezier(.3, .7, .2, 1); }
.flip-face { grid-area: 1 / 1; align-self: start; position: relative; min-width: 0; }
.flip-face[hidden] { display: none; }
.flip.ready .flip-face { transition: transform .45s var(--ease), opacity .3s; }
.flip[data-face="login"] .flip-face:not([data-side="login"]) { transform: translateX(44px); opacity: 0; pointer-events: none; }
.flip[data-face="register"] .flip-face[data-side="login"] { transform: translateX(-44px); opacity: 0; pointer-events: none; }
.flip[data-face="register"] .flip-face[data-side="verify"] { transform: translateX(44px); opacity: 0; pointer-events: none; }
.flip[data-face="verify"] .flip-face:not([data-side="verify"]) { transform: translateX(-44px); opacity: 0; pointer-events: none; }
.flip[data-face="login"].flipping .flip-face[data-side="login"] > *, .flip[data-face="register"].flipping .flip-face[data-side="register"] > *, .flip[data-face="verify"].flipping .flip-face[data-side="verify"] > * { animation: auth-rise .5s .08s both cubic-bezier(.2, .7, .2, 1); }
@keyframes auth-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .flip.ready .flip-inner, .flip.ready .flip-face, .auth-tabs::before, .auth-tabs a::before { transition: none; }
  .flip.flipping .flip-face > * { animation: none; }
}

/* potvrzení e-mailu po registraci */
.auth-verify { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 8px 0 4px; }
.auth-verify-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent); }
.auth-verify .auth-sub { max-width: 40ch; margin-bottom: 8px; }
.auth-verify-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 10px 0 6px; }
.auth-verify-msg { margin: 4px 0 0; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--up) 12%, transparent); color: var(--up); font-size: 13.5px; font-weight: 600; }
.auth-verify-msg.err { background: color-mix(in srgb, var(--down) 12%, transparent); color: var(--down); }
.auth-verify-note { margin: 6px 0 0; color: var(--ink-3); font-size: 12.5px; max-width: 44ch; }
.auth-dev { margin: 0; font-size: 13px; }

/* ---------- obsah karty ---------- */
.auth-why { font-size: 13.5px; color: var(--ink-2); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 14%, var(--line)); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; }
.auth-flash { padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--down) 10%, var(--surface)); margin: 0 0 14px; }
.auth-social { display: grid; gap: 12px; }
.auth-social--2 { grid-template-columns: repeat(auto-fit, minmax(252px, 1fr)); }
.auth-social.has-hint { grid-template-columns: 1fr; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: var(--h-lg); padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 700; font-size: 14.5px; text-decoration: none; text-align: left;
  transition: border-color .15s, background-color .15s, transform .15s var(--ease), box-shadow .15s; }
.btn-social:hover { border-color: var(--brand); background: var(--surface-2); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-social .mark { flex: none; display: grid; place-items: center; width: 24px; height: 24px; }
.btn-social .label { display: grid; gap: 1px; min-width: 0; }
.btn-social .label-main { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-social .label-sub { font-size: 12.5px; font-weight: 600; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-social .label-sub[hidden] { display: none; }
/* tlačítko s jménem z authu: „Pokračovat jako Vojtěch Prokop“ */
.btn-social.has-hint { justify-content: flex-start; min-height: 60px; padding: 0 18px; border-color: color-mix(in srgb, var(--brand) 38%, var(--line)); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.btn-social.has-hint .mark { width: 36px; height: 36px; }
.mark-w { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-style: normal; font-weight: 800; font-size: 14px; line-height: 1; color: #fff;
  background: var(--stage); }
.btn-social.has-hint .mark-w { width: 36px; height: 36px; border-radius: 11px; font-size: 17px; }
.mark-img { display: block; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 8px rgba(16, 36, 94, .22); }
.mark-ini { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; font-style: normal; font-weight: 800; font-size: 13.5px; letter-spacing: .02em; color: #fff;
  background: var(--stage); box-shadow: 0 4px 10px color-mix(in srgb, var(--brand) 30%, transparent); }          /* 23. 10. 2026: značka Wopro v barvách scény, ne cizí fialová */
.auth-sep { margin: 18px 0 12px; }          /* 20. 10.: Wopro a Google jsou až pod heslem jako náhradní cesta */
/* .btn-lg je jen v ui.css (48 px, pilulka); místní přepis zaoblení smazán 23. 10. 2026, auth.css je v balíku každé stránky a přepisoval ho všude */
.btn.busy { position: relative; color: transparent; }
.btn.busy::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: auth-spin .7s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-links { margin-top: 14px; font-size: 14px; text-align: center; }
.auth-switch { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; color: var(--ink-2); font-size: 14px; }
.auth-switch a { font-weight: 800; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
/* pole v kartě jsou vyšší a kulatější než jinde v aplikaci */
.flip-face .field { margin-bottom: 12px; }
.flip-face .field input[type="text"], .flip-face .field input[type="email"], .flip-face .field input[type="password"], .flip-face .field input[type="tel"] { height: 48px; border-radius: 14px; font-size: 15.5px; }
.flip-face .field label { font-size: 13.5px; font-weight: 700; }
.field .err { display: block; margin-top: 2px; }
.field input.invalid, .field input.invalid:focus { border-color: var(--down); box-shadow: 0 0 0 3px color-mix(in srgb, var(--down) 18%, transparent); }
.field input[type="tel"] { width: 100%; height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 15px; }
.field input[type="tel"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="tel"] { transition: border-color .15s, box-shadow .15s; }

/* ---------- heslo: oko, měřič a pravidla ---------- */
.pw { position: relative; }
.pw input { padding-right: 46px; }
.pw-eye { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.pw-eye:hover { color: var(--ink); background: var(--surface-2); }
.pw-eye .ic:last-child { display: none; }
.pw-eye[aria-pressed="true"] .ic:first-child { display: none; }
.pw-eye[aria-pressed="true"] .ic:last-child { display: inline; }
.pw-help { margin: -2px 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); }
.pw-help .pw-meter { margin-top: 0; }
.pw-meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 8px; }
.pw-meter i { height: 5px; border-radius: 3px; background: var(--line); transition: background-color .25s; }
.pw-meter[data-score="1"] i:nth-child(-n+1), .pw-meter[data-score="2"] i:nth-child(-n+2) { background: var(--down); }
.pw-meter[data-score="3"] i:nth-child(-n+3) { background: var(--warn); }
.pw-meter[data-score="4"] i:nth-child(-n+4) { background: color-mix(in srgb, var(--up) 65%, var(--warn)); }
.pw-meter[data-score="5"] i { background: var(--up); }
.pw-rules { list-style: none; margin: 8px 0 2px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pw-rules li { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-3); transition: color .2s; }
.pw-rules li .ic { opacity: .25; transition: opacity .2s, transform .25s var(--ease); }
.pw-rules li.ok { color: var(--up); font-weight: 600; }
.pw-rules li.ok .ic { opacity: 1; transform: scale(1.15); }

/* nízký displej: kompaktnější karta, ať se registrace vejde nebo se rolovalo co nejméně */
@media (max-height: 860px) {
  .auth-main { padding-top: 20px; padding-bottom: 18px; }
  .auth-tabs { margin-bottom: 12px; }
  .flip-face .field { margin-bottom: 9px; }
  .flip-face .field input[type="text"], .flip-face .field input[type="email"], .flip-face .field input[type="password"], .flip-face .field input[type="tel"] { height: 44px; }
  .auth-sep { margin: 12px 0 10px; }
  .btn-social { min-height: 48px; }
  .btn-social.has-hint { min-height: 54px; }
  .auth-social { gap: 9px; }
  .pw-help { padding: 8px 12px; margin-bottom: 8px; }
  .auth-switch { margin-top: 12px; padding-top: 10px; }
  .btn-lg { min-height: 48px; }
}

@media (max-width: 900px) {
  .flip { grid-template-columns: 1fr; border-radius: 22px; }
  .auth-aside { padding: 22px 20px 20px; }
  .auth-aside h2 { margin: 12px 0 0; font-size: 22px; }
  .auth-perks, .auth-aside-foot { display: none; }          /* na telefonu jen značka a věta, formulář hned pod tím */
  .auth-main { padding: 20px 18px 20px; }
}
@media (max-width: 620px) {
  .auth-social--2 { grid-template-columns: 1fr; }
  .auth-title { font-size: 23px; }
  .auth-verify-act { flex-direction: column; align-items: stretch; width: 100%; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* public.css */
/* Veřejná kostra a úvodní stránka (lib/verejna.php, views/pub_top.php, views/pub_foot.php): společný vzhled všeho, co se vidí bez levého panelu aplikace.
   Přestavba 19. 10. 2026 (zadání Vojty): tři části se společným vzhledem jako Finviz a Seeking Alpha.
     - web (úvod a texty: ceník, kontakt, nástroje, brokeři, slovník, právní, ukázka): bannerová hlavička stránky jako karta s přechodem a září (jako přehled /acc ve Wopru),
     - data (akcie, fondy, screener, mapa, trhy, kalendář, komunita, inzeráty…): plochá podlišta s oddíly pod lištou, hustá hlavička, obsah hned pod navigací,
     - aplikace (stránky k účtu): levý panel, ui.css; lišta má stejnou výšku, hledání a nabídku účtu jako tady.
   Barvy značky: modrá #4285f4 / #1642b9 / #001c68, oranžová #ee7b11 jen jako akcent. Světlý i tmavý režim přes tokeny; komponenty (.btn, .card, .badge, .seg, .field)
   zůstávají z ui.css. Sdílené veřejné díly (ceník, katalog, formuláře) jsou ve verejne.css, úvod sám v landing.css. */

/* ---------- tokeny veřejné části: 23. 10. 2026 (audit, oddíl 3) barvy jsou JEN v app.css (:root a html[data-color="dark"]); paleta veřejné části ze 17. až 19. 10. tam přešla,
   takže host i přihlášený vidí tutéž modrou, tatáž pozadí a stejnou scénu (--stage, --pas, --stage-ink…). Tady zůstávají jen míry lišty a podlišty. ---------- */
body.pub, body.lp {
  --top-h: 64px;
  --sub-h: 46px;
  background: var(--page-bg); color: var(--ink);
}
body.pub { background-attachment: fixed; }
.pub-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 max(clamp(20px, 3vw, 44px), env(safe-area-inset-left)) 0 max(clamp(20px, 3vw, 44px), env(safe-area-inset-right)); }          /* stejná šířka a odsazení jako obsah (body.pub .wrap): lišta, podlišta, rada, banner a stránka lícují */
.pub-top .pub-wrap { max-width: 1560px; }          /* lišta smí být širší než obsah: nabídka, hledání, jazyk a dvě tlačítka */
.flag { display: inline-block; flex: none; border-radius: 2.5px; box-shadow: 0 0 0 1px rgba(11, 27, 75, .12); vertical-align: -2px; }

/* ---------- obsah veřejné kostry: celá šířka okna, žádný levý panel; obsah začíná hned pod navigací, patička jde za obsahem (žádné velké mezery) ---------- */
.pub-shell { display: flex; flex-direction: column; }
.pub-shell > main { width: 100%; }
body.pub { overflow-x: hidden; }
body.pub .wrap, body.pub main.wrap { max-width: 1320px; padding: 0 clamp(20px, 3vw, 44px) 32px; }
body.pub[data-zona="data"] .wrap, body.pub[data-zona="data"] main.wrap { max-width: 1400px; }          /* data mají o něco víc místa: tabulky a grafy */
body.pub .map-shell { height: calc(100vh - var(--top-h) - var(--sub-h) - 24px); }          /* pod lištou je podlišta dat */
body.pub.map-full .pub-top, body.pub.map-full .pub-foot, body.pub.map-full .pub-rada, body.pub.map-full .pub-banner-wrap { display: none; }

/* ---------- horní lišta (společná pro web i data; aplikace má stejnou výšku a prvky v ui.css) ---------- */
.pub-top { position: sticky; top: 0; z-index: 50; background: var(--top-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); transition: box-shadow .2s; }
.pub-top.scrolled { box-shadow: var(--shadow-sm); }
.pub-top-in { display: flex; align-items: center; gap: 10px; height: var(--top-h); }
.lp-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.lp-nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; flex: none; }
.lp-nav-a, .lp-m-btn { display: inline-flex; align-items: center; gap: 5px; padding: 9px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-weight: 700; font-size: 14.5px; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s; }
.lp-nav-a:hover, .lp-m-btn:hover, .lp-m.open .lp-m-btn { background: var(--surface-2); color: var(--ink); }
.lp-nav-a.on, .lp-m-btn.on { color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, transparent); }
.lp-nav-a.on::before, .lp-m-btn.on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }          /* oranžová tečka u otevřené části */
.lp-m-btn .ic { color: var(--ink-3); transition: transform .2s var(--ease); }
.lp-m.open .lp-m-btn .ic { transform: rotate(180deg); color: var(--brand); }
.lp-top-act { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 1 1 auto; min-width: 0; }          /* 20. 10.: blok pruží, hledání se zúží dřív, než by se uřízlo tlačítko (při 1 440 px přetékal o 75 px) */
.lp-top-act .btn { white-space: nowrap; }
.lp-top-act .avatar { width: 34px; height: 34px; font-size: 14px; }          /* přihlášený ve veřejné části: zvonek a nabídka účtu (views/user_menu.php) */
.lp-top-act .user-menu { position: relative; }
.lp-burger { display: none; }
.pub-search { position: relative; display: flex; align-items: center; gap: 8px; flex: 0 1 240px; width: auto; min-width: 120px; max-width: 240px; height: 40px; padding: 0 10px 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--ink-3); transition: border-color .15s, box-shadow .15s, width .2s var(--ease); }
.pub-search:focus-within { flex-basis: 330px; max-width: 330px; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.pub-search input { flex: 1; min-width: 0; height: 38px; border: 0; background: transparent; outline: none; font: inherit; font-size: 14px; color: var(--ink); }
.pub-search input::placeholder { color: var(--ink-3); }
.pub-search .search-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 70; min-width: 380px; padding: 8px; border-radius: 16px; box-shadow: 0 18px 44px -12px rgba(0, 28, 104, .28), 0 0 0 1px var(--line); }

/* ---------- úvod: lišta průhledná nad modrou scénou (scéna podjíždí pod ni), po odrolování nebo s otevřenou nabídkou bílé sklo (19. 10. večer) ---------- */
body.lp .pub-top { transition: background-color .25s, border-color .25s, box-shadow .25s; }
body.lp .lp-stage { margin-top: calc(-1 * var(--top-h) - 1px); padding-top: calc(var(--top-h) + 1px); }          /* 22. 10. 2026: i přes 1px spodní okraj hlavičky, jinak nahoře svítil proužek pozadí */
body.lp .pub-top:not(.scrolled):not(:has(.open)) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.lp .pub-top:not(.scrolled):not(:has(.open)) .lp-brand { color: #fff; }
body.lp .pub-top:not(.scrolled):not(:has(.open)) .lp-brand svg > rect:first-child { fill: rgba(255, 255, 255, .18); stroke: rgba(255, 255, 255, .45); }
body.lp .pub-top:not(.scrolled):not(:has(.open)) :is(.lp-nav-a, .lp-m-btn) { color: rgba(255, 255, 255, .86); }
body.lp .pub-top:not(.scrolled):not(:has(.open)) :is(.lp-nav-a, .lp-m-btn):hover { background: rgba(255, 255, 255, .12); color: #fff; }
body.lp .pub-top:not(.scrolled):not(:has(.open)) .lp-m-btn .ic { color: rgba(255, 255, 255, .7); }
body.lp .pub-top:not(.scrolled):not(:has(.open)) :is(.icon-btn, .lp-lang-btn, .btn-ghost) { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .32); color: #fff; box-shadow: none; }
body.lp .pub-top:not(.scrolled):not(:has(.open)) :is(.icon-btn, .lp-lang-btn, .btn-ghost):hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .5); color: #fff; }
body.lp .pub-top:not(.scrolled):not(:has(.open)) :is(.icon-btn, .lp-lang-btn) .ic { color: #fff; }
body.lp .pub-top:not(.scrolled):not(:has(.open)) .lp-cta { background: #fff; color: var(--brand-deep); box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .55); }
body.lp .pub-top:not(.scrolled):not(:has(.open)) .lp-cta:hover { background: #eef3ff; color: var(--brand-deep); }

/* ---------- přepínač jazyka: vlaječka a kód, po kliknutí ostatní jazyky pod sebou (lišta i patička) ---------- */
.lp-lang { position: relative; }
.lp-lang-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 9px 0 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 800; letter-spacing: .02em; cursor: pointer; transition: border-color .15s, background-color .15s; }
.lp-lang-btn:hover, .lp-lang.open .lp-lang-btn { border-color: var(--brand); background: var(--surface-2); }
.lp-lang-btn .ic { color: var(--ink-3); transition: transform .2s var(--ease); }
.lp-lang.open .lp-lang-btn .ic { transform: rotate(180deg); color: var(--brand); }
.lp-lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; min-width: 190px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); animation: lp-m-in .16s var(--ease); }
.lp-lang-up .lp-lang-list { top: auto; bottom: calc(100% + 8px); }
.lp-lang-list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.lp-lang-list a:hover, .lp-lang-list a:focus-visible { background: var(--surface-2); }
.lp-lang-list a.on { color: var(--brand); }
.lp-lang-list a small { margin-left: auto; color: var(--ink-3); font-size: 12px; font-weight: 800; letter-spacing: .04em; }

/* ---------- dvě velké nabídky: panel vystředěný pod lištou, vlevo karta oblasti s přechodem a září, vpravo sloupce s nadpisy ---------- */
.lp-m-panel { position: absolute; left: 50%; top: calc(var(--top-h) + 6px); z-index: 60; display: none; width: min(92vw, 1180px); padding: 14px; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; border-top: 0; box-shadow: var(--shadow); }
.lp-m-panel:has(.lp-m-cols[data-n="4"]) { width: min(96vw, 1360px); }
.lp-m.open .lp-m-panel { display: block; animation: lp-m-in .18s var(--ease); }
.lp-m-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }          /* můstek: myš cestou z tlačítka do panelu nabídku nezavře */
@keyframes lp-m-in { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.lp-m-in { display: grid; gap: 14px; }
.lp-m-has-feat { grid-template-columns: 290px minmax(0, 1fr); }
.lp-m-feat { position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: start; gap: 10px; padding: 24px 22px 22px; border-radius: 20px; color: #fff; background: linear-gradient(115deg, transparent 56%, rgba(255, 255, 255, .07) 56%, rgba(255, 255, 255, .07) 71%, transparent 71%), radial-gradient(110% 130% at 100% 0%, rgba(255, 255, 255, .16) 0%, transparent 55%), linear-gradient(160deg, #001c68 0%, #1642b9 58%, #2f6fe4 100%); }          /* panel oblasti jako banner (19. 10. večer) */
.lp-m-feat-k { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--stage-accent); }
.lp-m-feat-k .ic { color: var(--accent); }
.lp-m-stats { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lp-m-stats li { display: grid; gap: 2px; min-width: 0; padding: 10px 10px 9px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); }
.lp-m-stats b { font-size: 17px; letter-spacing: -.02em; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-m-stats span { font-size: 11px; color: var(--stage-ink-2); line-height: 1.3; }
.lp-m-feat::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(110% 130% at 100% 0%, rgba(255, 255, 255, .16) 0%, transparent 55%), radial-gradient(80% 90% at 0% 100%, color-mix(in srgb, var(--accent) 28%, transparent) 0%, transparent 60%); pointer-events: none; }
.lp-m-feat::after { content: ""; position: absolute; z-index: -1; top: -70px; right: -50px; width: 190px; height: 190px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); pointer-events: none; }
.lp-m-feat h3 { margin: 0; font-size: 24px; letter-spacing: -.02em; line-height: 1.1; }
.lp-m-feat-list { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 7px; }
.lp-m-feat-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.4; color: #e3ebff; }
.lp-m-feat-list .ic { flex: none; margin-top: 2px; width: 14px; height: 14px; color: var(--accent); }
.lp-m-feat p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--stage-ink-2); }
.lp-m-feat .btn { justify-self: start; margin-top: 10px; background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.lp-m-feat .btn:hover { background: color-mix(in srgb, var(--accent) 90%, #000); }
.lp-m-feat .btn .ic { transform: rotate(-90deg); }
.lp-m-cols { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 6px 10px; align-content: start; }
.lp-m-cols[data-n="2"] { --n: 2; }
.lp-m-cols[data-n="3"] { --n: 3; }
.lp-m-cols[data-n="4"] { --n: 4; }
.lp-m-cols[data-n="2"] .lp-m-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; align-content: start; }          /* Trhy a data: dva sloupce po dvou, ať je panel nízký */
.lp-m-cols[data-n="2"] .lp-m-col h4 { grid-column: 1 / -1; }
.lp-m-col h4 { margin: 4px 10px 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.lp-m-col h4::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }          /* oranžová tečka u nadpisu sloupce */
.lp-m-cols[data-n="4"] .lp-m-col + .lp-m-col { border-left: 1px solid var(--line-soft); padding-left: 10px; }
.lp-m-it { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; min-width: 0; padding: 7px 10px; border-radius: 12px; text-decoration: none; color: var(--ink); transition: background-color .15s, transform .15s var(--ease); }
.lp-m-it:hover { transform: translateX(2px); }
.lp-m-it:hover .lp-m-ic { background: var(--brand); color: #fff; }
.lp-m-it:hover, .lp-m-it:focus-visible { background: var(--surface-2); }
.lp-m-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 10%, var(--surface)); color: var(--brand); flex: none; transition: background-color .15s, color .15s; }
.lp-m-tx { display: grid; gap: 1px; min-width: 0; }
.lp-m-tx b { font-size: 14.5px; letter-spacing: -.01em; line-height: 1.25; display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.lp-m-tx small { font-size: 12.5px; color: var(--ink-3); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-m-cols[data-n="4"] .lp-m-tx small { display: none; }          /* čtyři sloupce nástrojů: jen názvy, popisek by sloupce roztáhl */
.lp-m-cols[data-n="3"] .lp-m-tx small { white-space: normal; }          /* 20. 10.: tři sloupce po třech, popisek se může zalomit, ať sloupce nejsou široké */
.lp-m-panel:has(.lp-m-cols[data-n="3"]) { width: min(94vw, 1180px); }
.lp-m-cols[data-n="4"] .lp-m-ic { width: 30px; height: 30px; }
.lp-m-cols[data-n="4"] .lp-m-it { padding: 6px 10px; }
.lp-m-lock { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); font-size: 10.5px; font-weight: 800; font-style: normal; letter-spacing: .02em; }
.lp-m-foot { margin: 12px 6px 0; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--ink-3); }

/* ---------- podlišta dat (jen data): plochá řada oddílů jako na Finvizu, vpravo hodiny burzy a indexy jako odkazy ---------- */
.pub-sub { background: var(--pas); color: var(--stage-ink); }          /* bannerový pás dat (19. 10. večer); barvy pásu pro oba motivy jsou v app.css (--pas) */
.pub-sub-in { display: flex; align-items: stretch; gap: 16px; min-height: var(--sub-h); }
/* přepínač Akcie / Nemovitosti vlevo v podliště: pilulky ve skle, otevřená část bílá (19. 10. večer) */
.pub-kat { display: inline-flex; flex: none; align-self: center; gap: 2px; padding: 3px; margin-right: 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.pub-kat a { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; color: rgba(255, 255, 255, .82); font-size: 12.5px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.pub-kat a .ic { width: 14px; height: 14px; color: currentColor; }
.pub-kat a:not(.on):hover { background: rgba(255, 255, 255, .12); color: #fff; }
.pub-kat a.on { background: #fff; color: #0b1b4b; }
.pub-sub-in:has(.pub-kat[data-kat="nemovitosti"]) .pub-strip .clocks { display: none; }          /* u nemovitostí hodiny burzy nedávají smysl */
.pub-sub-nav { display: flex; align-items: stretch; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.pub-sub-nav::-webkit-scrollbar { display: none; }
.pub-sub-nav a { position: relative; display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 0 11px; color: rgba(255, 255, 255, .8); font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: color .15s; }
.pub-sub-nav a .ic { display: none; color: rgba(255, 255, 255, .6); transition: color .15s; }          /* ikony jen na široké obrazovce, jinak by se třináct oddílů nevešlo vedle hodin burzy */
.pub-sub-nav a:hover, .pub-sub-nav a:hover .ic { color: #fff; }
.pub-sub-nav a.on { color: #fff; }
.pub-sub-nav a.on .ic { color: var(--stage-accent); }
.pub-sub-nav a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: transparent; transition: background-color .15s; }
@media (min-width: 1700px) { .pub-sub-nav a .ic { display: block; } .pub-sub-nav a { padding: 0 11px; } }
@media (max-width: 1500px) { .pub-strip-note { display: none; } }
@media (max-width: 1700px) { .pub-strip .indices { display: none; } }          /* indexy v podliště až od 1 700 px, jinak by vytlačily poslední oddíly (Skóre, Komunita, Inzeráty, Ceny měst); do té šířky zůstává jedna burza */
@media (max-width: 1300px) { .pub-strip .indices { display: none; } }
.pub-sub-nav a.on::after { background: var(--accent); }
.pub-strip { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.pub-strip::-webkit-scrollbar { display: none; }
.pub-strip .clocks, .pub-strip .indices { flex: none; }
.pub-strip .clock { font-size: 12px; padding: 3px 9px; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: var(--stage-ink-2); }
/* 23. 10. 2026 (Vojta: „burzy menší, ať šetří místem“): v podliště obě burzy vedle sebe a krátce („Praha do 16:25“), celá věta je v bublině.
   Když se oddíly nevejdou, public.js (fitSub) postupně schová poznámku, indexy, druhou burzu a nakonec hodiny (třídy fit-1 až fit-4). */
.pub-strip .clocks { gap: 6px; }
.pub-strip .clocks .clock { display: inline-flex; gap: 5px; padding: 2px 8px; font-size: 11.5px; }
.pub-strip .clock .clock-text { display: none; }
.pub-strip .clock .clock-kratce:empty { display: none; }
.pub-sub-in.fit-1 .pub-strip-note, .pub-sub-in.fit-2 .pub-strip .indices, .pub-sub-in.fit-3 .pub-strip .clocks .clock:not(.show), .pub-sub-in.fit-4 .pub-strip .clocks { display: none; }
.pub-strip .clock b { color: #fff; }
.pub-strip .clock .dot { background: rgba(255, 255, 255, .45); }
.pub-strip .clock.open .dot { background: var(--stage-up); }
.pub-strip .ix { padding: 3px 9px; font-size: 12px; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }
.pub-strip .ix-name { color: var(--stage-ink-2); }
.pub-strip .ix.up .ix-chg { color: var(--stage-up); }
.pub-strip .ix.down .ix-chg { color: var(--stage-down); }
.pub-strip .ix a { display: inline-flex; gap: 8px; align-items: baseline; color: inherit; text-decoration: none; }
.pub-strip .ix a:hover .ix-name { color: var(--brand); }
.pub-strip-note { flex: none; font-size: 12.5px; color: var(--stage-ink-2); white-space: nowrap; }
.pub-strip-note a { color: #fff; font-weight: 700; text-decoration: none; }
.pub-strip-note a:hover { text-decoration: underline; }

/* ---------- datová část ve světlém režimu: bílá plocha, karty jen s linkou, hustě jako Finviz; web zůstává na měkké šedé s bannery ---------- */
html:not([data-color="dark"]) body.pub[data-zona="data"] { --page-bg: var(--surface); --top-bg: rgba(255, 255, 255, .9); --surface-2: #f3f6fb; }
body.pub[data-zona="data"] .card { box-shadow: none; }
body.pub[data-zona="data"] .pub-sub { border-bottom: 0; }
body.pub[data-zona="data"] .pub-rada-card { box-shadow: none; }
body.pub[data-zona="data"] .tbl th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }          /* záhlaví tabulek dat kapitálkami jako na Finvizu */
/* informační stránky: text užší, ať se dobře čte; katalogy, ceník a ukázka zůstávají široké */
body.pub[data-zona="web"]:is([data-page="pravni"], [data-page="pojmy"], [data-page="kontakt"], [data-page="broker"], [data-page="brokeri"], [data-page="needlogin"], [data-page="status"]) .wrap { max-width: 1120px; }

/* ---------- hlavička stránky: data hustě (obsah hned pod navigací), web jako banner s přechodem a září (jako přehled /acc ve Wopru a úvod) ---------- */
body.pub .page-h { margin-top: 20px; }
body.pub .page-h h1 { font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.025em; }
body.pub .page-h p { font-size: 14.5px; line-height: 1.5; max-width: 80ch; }
body.pub[data-zona="data"] #app > .page-h:first-child { margin: 18px 0 14px; }
body.pub[data-zona="data"] #app > .crumbs:first-child { margin-top: 16px; }
body.pub[data-zona="data"] #app > .vr-head:first-child { margin: 22px auto 24px; }
body.pub[data-zona="data"] #app > .vr-head:first-child h1 { font-size: clamp(26px, 2.6vw, 34px); }
body.pub[data-zona="web"] #app > .page-h:first-child, body.pub[data-zona="web"] #app > .vr-head:first-child {
  position: relative; isolation: isolate; overflow: hidden; margin: 22px 0 26px; padding: clamp(28px, 3.4vw, 44px) clamp(22px, 3.2vw, 48px);
  border-radius: 28px; background: var(--stage); color: var(--stage-ink); box-shadow: var(--shadow-banner);
}
body.pub[data-zona="web"] #app > .vr-head:first-child { max-width: none; text-align: center; }
body.pub[data-zona="web"] #app > :is(.page-h, .vr-head):first-child::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(115deg, transparent 56%, rgba(255, 255, 255, .07) 56%, rgba(255, 255, 255, .07) 71%, transparent 71%), radial-gradient(110% 130% at 100% 0%, rgba(255, 255, 255, .16) 0%, transparent 55%), radial-gradient(70% 90% at 0% 100%, color-mix(in srgb, var(--accent) 30%, transparent) 0%, transparent 60%); pointer-events: none; }          /* šikmý světlý pás jako na bannerech roku 2018 */
body.pub[data-zona="web"] #app > :is(.page-h, .vr-head):first-child::after { content: ""; position: absolute; z-index: -1; top: -110px; right: -70px; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 62%); box-shadow: -160px 150px 0 -60px rgba(255, 255, 255, .06); pointer-events: none; }
body.pub[data-zona="web"] #app > .page-h:first-child h1, body.pub[data-zona="web"] #app > .vr-head:first-child h1, body.pub[data-zona="web"] #app > .vr-head:first-child h2 { color: #fff; }
body.pub[data-zona="web"] #app > .page-h:first-child h1 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; }
body.pub[data-zona="web"] #app > .vr-head:first-child h1 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 10px; }
body.pub[data-zona="web"] #app > .page-h:first-child p, body.pub[data-zona="web"] #app > .vr-head:first-child p { color: var(--stage-ink-2); font-size: 15.5px; }
body.pub[data-zona="web"] #app > .vr-head:first-child p { margin: 0 auto; max-width: 70ch; }
body.pub[data-zona="web"] #app > .page-h:first-child a:not(.btn) { color: #fff; }
body.pub[data-zona="web"] #app > .page-h:first-child .btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: #fff; box-shadow: none; }
body.pub[data-zona="web"] #app > .page-h:first-child .btn:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .55); }
body.pub[data-zona="web"] #app > .page-h:first-child .btn-primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
body.pub[data-zona="web"] #app > .page-h:first-child .btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }
body.pub[data-zona="web"] #app > .page-h:first-child .watch-meter { color: #fff; }

body.pub .auth-page { padding-top: 40px; }          /* přihlašovací karta nesedí přímo pod lištou */
.page-crumb { margin: 0 0 10px; font-size: 13px; font-weight: 700; }
.page-crumb a { display: inline-flex; align-items: center; gap: 4px; color: inherit; opacity: .85; text-decoration: none; }
.page-crumb a:hover { opacity: 1; text-decoration: underline; }
.page-crumb .ic { transform: rotate(90deg); }

/* ---------- hledání v hlavičce tabulky akcií a ETF: lupa ve skle, našeptávač jako v liště (19. 10. večer) ---------- */
body.pub .page-h .page-search { position: relative; display: flex; align-items: center; gap: 8px; flex: none; width: min(100%, 360px); height: 42px; padding: 0 12px 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .32); color: #fff; transition: background-color .15s, border-color .15s; }
body.pub .page-h .page-search:focus-within { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .6); }
body.pub .page-h .page-search .ic { color: var(--stage-accent); flex: none; }
body.pub .page-h .page-search input { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; outline: none; font: inherit; font-size: 14px; color: #fff; }
body.pub .page-h .page-search input::placeholder { color: rgba(255, 255, 255, .72); }
body.pub .page-h .page-search .search-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 70; min-width: 320px; color: var(--ink); }
@media (max-width: 720px) { body.pub .page-h .page-search { width: 100%; } }

/* ---------- detail titulu: karta s názvem a cenou jako banner (19. 10.) ---------- */
body.pub .company > .hero { position: relative; isolation: isolate; overflow: hidden; border: 0; color: #fff; background: linear-gradient(115deg, transparent 56%, rgba(255, 255, 255, .07) 56%, rgba(255, 255, 255, .07) 71%, transparent 71%), radial-gradient(110% 130% at 100% 0%, rgba(255, 255, 255, .16) 0%, transparent 55%), linear-gradient(135deg, #001c68 0%, #1642b9 58%, #2f6fe4 100%); box-shadow: var(--shadow-banner); }
body.pub .company > .hero::after { content: ""; position: absolute; z-index: -1; top: -90px; right: -50px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 62%); pointer-events: none; }
body.pub .company > .hero h1, body.pub .company > .hero .meta b, body.pub .company > .hero .sub b { color: #fff; }
body.pub .company > .hero :is(.meta, .crumb-sep, .sub, .lv-delay, .lv-ext, .price .cur) { color: var(--stage-ink-2); }
body.pub .company > .hero :is(.tag, .pill) { background: rgba(255, 255, 255, .16); color: #fff; }
body.pub .company > .hero .pill.st-regular { background: rgba(111, 227, 161, .25); color: #e3ffee; }
body.pub .company > .hero :is(.change.up, .up) { color: var(--stage-up); }
body.pub .company > .hero :is(.change.down, .down) { color: var(--stage-down); }
body.pub .company > .hero .logo-tile { background: #fff; color: var(--brand-deep); }
body.pub .company > .hero .score-badge { background: #fff; color: #0b1f4d; box-shadow: 0 1px 3px rgba(4, 20, 70, .18); }
/* skóre v hlavičce akcie: číslo tmavé na bílém štítku, barva podle známky (20. 10. 2026, dřív bílé na bílém kvůli pravidlu .hero .meta b) */
body.pub .company > .hero .meta .score-badge b { color: #0b1f4d; }
body.pub .company > .hero .meta .score-badge span { color: #4a5675; }
body.pub .company > .hero .meta .score-badge.grade-a b, body.pub .company > .hero .meta .score-badge.grade-b b { color: #0b7a3e; }
body.pub .company > .hero .meta .score-badge.grade-c b { color: #a35400; }
body.pub .company > .hero .meta .score-badge.grade-d b, body.pub .company > .hero .meta .score-badge.grade-e b { color: #b42318; }

/* ---------- rada dne a banner nad patičkou (lib/bannery.php, views/pub_rada.php, views/pub_banner.php) ---------- */
.pub-rada { margin-top: 36px; }
.pub-rada-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px 14px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.pub-rada-card:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-1px); }
.pub-rada-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 11%, var(--surface)); color: var(--brand); }          /* pastelový kruh pod ikonou (styl 2018) */
.pub-rada-tx { display: grid; gap: 2px; min-width: 0; }
.pub-rada-tx b { font-size: 15px; letter-spacing: -.01em; }
.pub-rada-tx span { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.pub-rada-go { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 10%, var(--surface)); color: var(--brand); font-size: 13.5px; font-weight: 800; white-space: nowrap; transition: background-color .2s, color .2s; }
.pub-rada-go .ic { transform: rotate(-90deg); }
.pub-rada-card:hover .pub-rada-go { background: var(--brand); color: var(--brand-ink); }
.pub-banner-wrap { margin-top: 36px; }
.pub-rada + .pub-banner-wrap { margin-top: 14px; }
.pub-banner { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding: 30px 34px; border-radius: 28px; background: var(--stage); color: #fff; box-shadow: var(--shadow-banner); }
.pub-banner::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(115deg, transparent 56%, rgba(255, 255, 255, .07) 56%, rgba(255, 255, 255, .07) 71%, transparent 71%), radial-gradient(110% 130% at 100% 0%, rgba(255, 255, 255, .16) 0%, transparent 55%), radial-gradient(70% 90% at 0% 100%, color-mix(in srgb, var(--accent) 28%, transparent) 0%, transparent 60%); pointer-events: none; }
.pub-banner::after { content: ""; position: absolute; z-index: -1; top: -100px; right: -60px; width: 280px; height: 280px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 62%); pointer-events: none; }
.pub-banner h2 { margin: 0 0 8px; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.025em; line-height: 1.15; text-wrap: balance; }
.pub-banner p { margin: 0; color: var(--stage-ink-2); font-size: 15.5px; line-height: 1.55; max-width: 60ch; }
.pub-banner-act { display: flex; flex-wrap: wrap; gap: 10px; }
.pub-banner .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
/* tlačítka na modrém podkladu (banner nad patičkou, úvod): jedna definice pro .pub-btn-* i .lp-btn-* (23. 10. 2026; dřív dvě sady, tady s !important).
   Pořadí stylů stačí: public.css je v balíku až za ui.css, takže .btn z ui.css přepíše bez !important. Oranžové tlačítko má tmavý text (--accent-ink). */
.lp-btn-lg { min-height: var(--h-lg); padding: 0 26px; font-size: var(--fs-md); }          /* jako .btn-lg v ui.css, pilulka */
.lp-btn-lg .ic { transform: rotate(-90deg); }
.pub-btn-accent, .lp-btn-accent { background: var(--accent); border-color: transparent; color: var(--accent-ink); box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
.pub-btn-accent:hover, .lp-btn-accent:hover { background: color-mix(in srgb, var(--accent) 90%, #000); }
.pub-btn-light, .lp-btn-light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .36); color: var(--stage-ink); box-shadow: none; }
.pub-btn-light:hover, .lp-btn-light:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .7); }

/* ---------- patička: tmavě modrá (korporátní, styl 2018), značka, sloupce z katalogu nástrojů, právní a provozní odkazy, jazyk ---------- */
.pub-foot { margin-top: 40px; border-top: 0; background: #0b1b4b; color: #93a3cc; }
html[data-color="dark"] .pub-foot { background: #060b1f; border-top: 1px solid var(--line); }
.pub-foot .lp-brand { color: #fff; }
.pub-foot .lp-lang-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.pub-foot .lp-lang-btn .ic { color: var(--stage-ink-2); }
.pub-foot .lp-lang-btn:hover, .pub-foot .lp-lang.open .lp-lang-btn { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); }
.pub-foot-in { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 28px; padding-top: 42px; padding-bottom: 30px; }
.pub-foot-brand p { margin: 14px 0 16px; max-width: 34ch; font-size: 14px; line-height: 1.55; color: var(--stage-ink-2); }
.pub-foot-col h3 { margin: 6px 0 12px; font-size: 13.5px; font-weight: 800; color: #fff; }
.pub-foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pub-foot-col a { display: inline-flex; align-items: center; gap: 6px; color: var(--stage-ink-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.pub-foot-col a:hover { color: #fff; }
.pub-foot-col a .ic { color: #93a3cc; }
.pub-foot-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding-top: 18px; padding-bottom: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.pub-foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-left: auto; }
.pub-foot-links a { display: inline-flex; align-items: center; gap: 5px; color: var(--stage-ink-2); font-weight: 600; text-decoration: none; white-space: nowrap; }
.pub-foot-links a:hover { color: #fff; }
.pub-foot-links .stat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); }
.pub-foot-links .stat-dot.stat-warn { background: var(--warn); }
.pub-foot-links .stat-dot.stat-err { background: var(--down); }
.pub-foot-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 4px; padding-bottom: 30px; font-size: 12.5px; line-height: 1.55; color: #93a3cc; }
.pub-foot-note p { margin: 0; max-width: 90ch; }
.pub-foot-note a { color: var(--stage-ink-2); }

/* ---------- menší obrazovky ---------- */
@media (max-width: 1600px) { .lp-nav-a, .lp-m-btn { padding: 8px 10px; font-size: 14px; } .pub-search { flex-basis: 200px; max-width: 200px; } }
@media (max-width: 1400px) { .lp-nav-a, .lp-m-btn { padding: 8px 8px; } .lp-top-act { gap: 6px; } .lp-lang-btn span { display: none; } .lp-lang-btn { padding: 0 8px 0 10px; } .lp-m-has-feat { grid-template-columns: 240px minmax(0, 1fr); } }
@media (max-width: 1300px) { .lp-nav-a, .lp-m-btn { padding: 8px 6px; } .lp-cta { padding-left: 12px; padding-right: 12px; } .pub-search { min-width: 110px; } }
@media (max-width: 1240px) {
  .lp-nav { display: none; position: absolute; top: var(--top-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 20px 16px; background: var(--surface); border-radius: 0 0 22px 22px; box-shadow: var(--shadow); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - var(--top-h)); max-height: calc(100dvh - var(--top-h)); overflow-y: auto; }
  .lp-nav.open { display: flex; }
  .pub-top-strip .lp-nav { top: calc(var(--top-h) + var(--sub-h)); max-height: calc(100vh - var(--top-h) - var(--sub-h)); max-height: calc(100dvh - var(--top-h) - var(--sub-h)); }          /* v datové části je pod lištou ještě podlišta: nabídka telefonu se otevře až pod ní */
  .lp-nav-a { padding: 12px 6px; font-size: 16px; }
  .lp-burger { display: inline-grid; }
  .pub-search { flex-basis: 190px; max-width: 190px; min-width: 120px; }
  /* nabídka na telefonu: skupiny jako rozbalovací řádky pod sebou, panel není plovoucí, karta oblasti se nekreslí, sloupce pod sebou s nadpisy */
  .lp-m { border-bottom: 1px solid var(--line-soft); }
  .lp-m-btn { width: 100%; justify-content: space-between; padding: 12px 6px; font-size: 16px; border-radius: 0; }
  .lp-m-btn:hover, .lp-m.open .lp-m-btn { background: transparent; }
  .lp-m-panel, .lp-m-panel:has(.lp-m-cols[data-n="4"]) { position: static; width: auto; max-width: none; padding: 0 0 10px; border: 0; box-shadow: none; border-radius: 0; background: transparent; transform: none; }
  .lp-m.open .lp-m-panel { animation: none; }
  .lp-m-has-feat { grid-template-columns: 1fr; }
  .lp-m-feat { display: none; }
  .lp-m-cols, .lp-m-cols[data-n="2"] .lp-m-col { grid-template-columns: 1fr; }
  .lp-m-cols[data-n="4"] .lp-m-tx small { display: block; }
  .lp-m-tx small { white-space: normal; }
  .lp-m-col h4 { margin-top: 10px; }
  .lp-m-foot { margin: 6px 6px 0; }
}
@media (max-width: 1000px) {
  .pub-foot-in { grid-template-columns: 1fr 1fr; }
  .pub-foot-brand { grid-column: 1 / -1; }
  .pub-foot-links { margin-left: 0; }
}
@media (max-width: 900px) {
  .pub-strip .indices, .pub-strip-note { display: none; }          /* na užší obrazovce zůstanou v podliště oddíly a jedna burza */
}
@media (max-width: 760px) {
  .pub-rada-card { grid-template-columns: 40px minmax(0, 1fr); gap: 10px 12px; }
  .pub-rada-ic { width: 40px; height: 40px; border-radius: 12px; }
  .pub-rada-go { grid-column: 2; justify-self: start; }
  .pub-banner { padding: 24px 22px; border-radius: 22px; }
  .pub-banner .btn { flex: 1 1 auto; }
  body.pub[data-zona="web"] #app > .page-h:first-child, body.pub[data-zona="web"] #app > .vr-head:first-child { border-radius: 22px; margin-top: 16px; }
}
@media (max-width: 640px) {
  .pub-search { display: none; }
  .lp-top-act .pub-search-btn { display: inline-grid; }
  /* hledání na telefonu: po klepnutí na lupu se pole rozbalí pod lištou přes celou šířku (assets/js/public.js) */
  html.pub-search-open .pub-search { display: flex; position: absolute; left: 12px; right: 12px; top: calc(var(--top-h) + 8px); width: auto; z-index: 65; box-shadow: var(--shadow); }
  html.pub-search-open .pub-search:focus-within { width: auto; }
  .lp-hide-s { display: none; }
  .pub-wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  body.pub, body.lp { --top-h: 60px; --sub-h: 44px; }
  .pub-top { position: relative; }          /* na telefonu lišta odjede s obsahem: podlišta a lišta by jinak braly 104 px z malé obrazovky */
  .pub-strip { display: none; }
  .pub-kat { margin-right: 8px; }
  .pub-kat a { padding: 0 9px; }
  .pub-sub-nav { margin-right: -16px; padding-right: 16px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .pub-foot-in { grid-template-columns: 1fr; gap: 22px; padding-top: 32px; }
  body.pub .wrap, body.pub[data-zona="data"] .wrap { padding: 0 16px 28px; }
  .lp-lang-btn span { display: none; }
  .lp-lang-btn { padding: 0 8px; }
  .lp-cta { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 480px) {
  .lp-brand span { display: none; }
  .lp-top-act { gap: 6px; }
  .lp-lang { display: none; }          /* jazyk zůstává v nabídce patičky; v liště telefonu je místo na hledání, motiv a vstup do aplikace */
}
@media (prefers-reduced-motion: reduce) {
  .lp-m.open .lp-m-panel, .lp-lang-list { animation: none; }
  .pub-search, .pub-rada-card { transition: none; }
}

/* verejne.css */
/* Sdílené díly veřejné části (17. 10. 2026): hlavička oddílu, katalog nástrojů s filtrem, ceník s přepínačem měsíčně a ročně, QR platba na podporu,
   formuláře zpětné vazby a kontaktu. Používá je úvod (views/landing.php) i samostatné stránky /nastroje, /cenik a /kontakt, které může mít otevřené
   i přihlášený v kostře aplikace, proto berou jen tokeny z app.css (s náhradou tam, kde veřejná kostra přidává vlastní). Předpona .vr-. */

.vr-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)) 0 max(20px, env(safe-area-inset-right)); }
.vr-sec { padding: 72px 0; }
.vr-sec-alt { background: var(--surface); border-block: 1px solid var(--line-soft); }
.vr-head { max-width: 780px; margin: 0 auto 36px; text-align: center; }
.vr-head h2, .vr-head h1 { margin: 0 0 12px; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; }
.vr-head p { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.vr-head-left { text-align: left; margin-left: 0; }

/* ---------- katalog nástrojů: filtr podle oblasti (čipy), podle účtu (přepínač) a hledání, dlaždice jsou odkazy ---------- */
.vr-filtr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 22px; }
.vr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vr-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.vr-chip:hover { border-color: var(--brand); color: var(--ink); }
.vr-chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.vr-chip small { font-weight: 700; opacity: .7; }
.vr-filtr .seg { margin-left: auto; }
.vr-hledat { position: relative; display: flex; align-items: center; gap: 8px; min-width: 220px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink-3); }
.vr-hledat input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font: inherit; font-size: 14px; color: var(--ink); }
.vr-hledat:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.vr-tools-grp + .vr-tools-grp { margin-top: 30px; }
.vr-tools-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 12px; }
.vr-tools-h h3 { margin: 0; font-size: 19px; letter-spacing: -.015em; }
.vr-tools-h span { color: var(--ink-3); font-size: 13.5px; }
.vr-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.vr-tool { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 12px; row-gap: 4px; align-items: start; min-width: 0; padding: 14px 16px 12px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s var(--ease), box-shadow .15s; }
.vr-tool:hover, .vr-tool:focus-visible { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.vr-tool-ic { grid-row: 1 / 4; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 11%, var(--surface)); color: var(--brand); }
.vr-tool b { font-size: 15px; letter-spacing: -.01em; line-height: 1.2; }
.vr-tool small { color: var(--ink-2); font-size: 12.5px; line-height: 1.45; }
.vr-tool-tag { display: inline-flex; align-items: center; gap: 4px; justify-self: start; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--up) 12%, transparent); color: var(--up); font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.vr-tool-tag.ucet { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); }          /* ne .lock: ta třída je v ui.css celý zámek s náhledem */
.vr-tool-tag .ic { width: 11px; height: 11px; }
.vr-prazdno { padding: 28px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; color: var(--ink-3); }
.vr-chystame { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 30px 0 0; padding: 14px 18px; border: 1px dashed var(--line); border-radius: 16px; font-size: 13.5px; color: var(--ink-2); }
.vr-chystame b { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.vr-chystame b .ic { color: var(--accent); }
.vr-chystame ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.vr-chystame li { padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-soft); font-weight: 600; }
.vr-chystame small { margin-left: auto; color: var(--ink-3); }
.vr-more { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; text-decoration: none; }
.vr-more:hover { text-decoration: underline; }
.vr-more .ic { transform: rotate(-90deg); }
.vr-center { display: flex; justify-content: center; margin-top: 26px; }

/* ---------- ceník: přepínač období, tři plány, PRO plný modrý ---------- */
.vr-period { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 0 0 30px; }
.vr-period-sw { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.vr-period-sw button { min-height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color .15s, color .15s; }
.vr-period-sw button.on { background: var(--brand); color: var(--brand-ink); }
.vr-period-save { padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); font-size: 12.5px; font-weight: 800; }
.vr-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1180px; margin: 0 auto; align-items: stretch; }          /* stejná šířka jako ostatní oddíly úvodu (1 180 px) */
.vr-plan { position: relative; display: grid; gap: 12px; align-content: start; padding: 28px 26px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.vr-plan-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; }
.vr-plan h3 { margin: 0; font-size: 22px; letter-spacing: -.015em; }
.vr-plan-h .badge { font-size: 11px; }
.vr-plan-pro { background: var(--stage); border-color: transparent; color: var(--stage-ink); box-shadow: 0 24px 50px color-mix(in srgb, var(--brand-mid) 28%, transparent); }
.vr-plan-pro h3, .vr-plan-pro .vr-price b, .vr-plan-pro .vr-plan-l li { color: #fff; }
.vr-plan-pro .vr-plan-t, .vr-plan-pro .vr-price span, .vr-plan-pro .vr-price small { color: var(--stage-ink-2); }
.vr-plan-pro .vr-plan-l li { border-color: rgba(255, 255, 255, .2); color: var(--stage-ink-2); }
.vr-plan-pro .vr-plan-l li b { color: #fff; }
.vr-plan-pro .btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.vr-plan-pro .btn-primary:hover { background: color-mix(in srgb, var(--accent) 90%, #000); }
.vr-plan-pro .btn-ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: #fff; }
.vr-plan-pro .btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.vr-plan-pro .vr-plan-pozn { color: var(--stage-ink-2); }
.vr-plan-t { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.vr-price { margin: 4px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.vr-price b { font-size: 38px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.vr-price span { color: var(--ink-3); font-size: 14px; }
.vr-price small { flex-basis: 100%; color: var(--ink-3); font-size: 12.5px; }
.vr-plan .vr-price { min-height: 70px; align-content: start; }          /* roční cena má pod sebou malý řádek, měsíční ne: karty drží stejnou výšku řádků */
.vr-plan-l { margin: 2px 0 8px; padding: 0; list-style: none; display: grid; font-size: 14.5px; }          /* šest stejných řádků ve všech plánech: popis vlevo, hodnota vpravo, čte se jako tabulka */
.vr-plan-l li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); color: var(--ink-2); line-height: 1.4; }
.vr-plan-l li:last-child { border-bottom: 1px solid var(--line-soft); }
.vr-plan-l li b { color: var(--ink); font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vr-plan .btn { justify-self: stretch; margin-top: auto; text-align: center; }
.vr-plan-moje { opacity: .72; pointer-events: none; }
.vr-plan-pozn { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.vr-cenik:not([data-period="rok"]) .vr-p-rok, .vr-cenik[data-period="rok"] .vr-p-mesic { display: none; }
.vr-cenik-tbl { max-width: 1180px; margin: 36px auto 0; }
.vr-cenik-tbl h3 { margin: 0 0 12px; font-size: 20px; letter-spacing: -.015em; }
.vr-cenik-faq-h { max-width: 1180px; margin: 44px auto 14px; font-size: 22px; letter-spacing: -.02em; }          /* otázky k ceníku na stejnou šířku jako tabulka a plány (Vojta 19. 10. večer) */
.vr-cenik-faq { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; align-items: start; }
.vr-cenik-faq details, .vr-faq details { border: 1px solid var(--line-soft); border-radius: 16px; padding: 4px 20px; background: var(--surface); transition: border-color .15s; }
.vr-cenik-faq details[open], .vr-faq details[open] { border-color: var(--brand); }
.vr-cenik-faq summary, .vr-faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 15.5px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vr-cenik-faq summary::-webkit-details-marker, .vr-faq summary::-webkit-details-marker { display: none; }
.vr-cenik-faq summary::after, .vr-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); transition: transform .2s; flex: none; }
.vr-cenik-faq details[open] summary::after, .vr-faq details[open] summary::after { transform: rotate(45deg); }
.vr-cenik-faq p, .vr-faq p { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }

/* ---------- podpora: text, částky, QR platba ---------- */
.vr-dar { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 32px; border-radius: 28px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, var(--surface)), var(--surface) 70%); border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line)); }
.vr-dar h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.025em; text-wrap: balance; }
.vr-dar p { margin: 0 0 18px; color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 56ch; }
.vr-dar-castky { display: flex; flex-wrap: wrap; gap: 8px; }
.vr-dar-castky button { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.vr-dar-castky button:hover { border-color: var(--brand); }
.vr-dar-castky button.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.vr-dar-qr { display: grid; justify-items: center; gap: 10px; padding: 18px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.vr-dar-qr [data-qr] { display: flex; justify-content: center; width: 100%; }          /* SVG bez šířky má výchozích 300 px, obal by QR posunul doleva */
.vr-dar-qr svg { display: block; width: min(100%, 220px); height: auto; }
.vr-dar-qr code { background: transparent; color: #0b1b4b; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.vr-dar-qr small { color: #6b7a9d; font-size: 12px; text-align: center; }
.vr-dar-chybi { padding: 22px; border-radius: 18px; border: 1px dashed var(--line); color: var(--ink-3); text-align: center; font-size: 14px; }

/* ---------- zpětná vazba a kontakt: dvě karty vedle sebe ---------- */
/* dělená karta zpětné vazby a kontaktu (19. 10. večer): nadpis oddílu je nad kartou (.vr-head), vlevo modrý panel s třemi body jako banner, vpravo formulář; u kontaktu zrcadlově */
.vr-dvojice { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); max-width: 1180px; margin: 0 auto; border: 1px solid var(--line-soft); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; scroll-margin-top: 150px; }
.vr-dvojice + .vr-head { margin-top: 72px; }          /* stránka /kontakt: druhý blok pod prvním */
.vr-dvojice-tx { position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: start; gap: 12px; padding: 34px 32px; color: #fff; background: linear-gradient(115deg, transparent 56%, rgba(255, 255, 255, .07) 56%, rgba(255, 255, 255, .07) 71%, transparent 71%), radial-gradient(110% 130% at 100% 0%, rgba(255, 255, 255, .16) 0%, transparent 55%), linear-gradient(135deg, #001c68 0%, #1642b9 58%, #2f6fe4 100%); }
.vr-dvojice-tx::after { content: ""; position: absolute; z-index: -1; top: -90px; right: -50px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 62%); pointer-events: none; }
.vr-dvojice-tx h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--stage-accent); }
.vr-dvojice-tx h3 .ic { color: var(--accent); }
.vr-karty { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vr-karty li { display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.vr-karty li > .ic { grid-row: 1 / span 2; box-sizing: border-box; width: 36px; height: 36px; padding: 9px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 26%, transparent); color: var(--stage-accent); }
.vr-karty li b { font-size: 15px; display: flex; align-items: center; gap: 8px; color: #fff; }
.vr-karty li span { font-size: 13.5px; color: var(--stage-ink-2); line-height: 1.5; }
.vr-karty li a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 3px; }
.vr-karty li a:hover { text-decoration-color: #fff; }
.vr-form { display: grid; align-content: start; gap: 4px; padding: 32px; background: var(--surface); }
.vr-form h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.vr-form h2 .ic { color: var(--brand); }
.vr-form > p { margin: 0 0 16px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.vr-form .field { margin-bottom: 12px; }
.vr-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vr-form .btn { justify-self: start; margin-top: 4px; }
.vr-form-msg { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--up) 12%, transparent); color: var(--up); font-size: 14px; font-weight: 600; }
.vr-form-msg.err { background: color-mix(in srgb, var(--down) 12%, transparent); color: var(--down); }
.vr-hotovo { display: grid; justify-items: start; gap: 8px; padding: 18px 0 6px; }
.vr-hotovo b { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; }
.vr-hotovo b .ic { color: var(--up); }
.vr-hotovo p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.vr-past { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- menší obrazovky ---------- */
@media (max-width: 1100px) { .vr-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .vr-plans { grid-template-columns: 1fr; max-width: 560px; }
  .vr-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vr-dar { grid-template-columns: 1fr; padding: 24px; }
  .vr-dar-qr { justify-self: center; width: 100%; max-width: 320px; }
  .vr-dvojice { grid-template-columns: 1fr; }
  .vr-cenik-faq { grid-template-columns: 1fr; }
  .vr-dvojice-obr .vr-dvojice-tx { order: -1; }
  .vr-dvojice-tx { padding: 26px 22px; }
  .vr-form { padding: 24px 22px; }          /* na telefonu nejdřív nadpis a karty, pak formulář (na šířku je u kontaktu formulář vlevo) */
  .vr-filtr .seg { margin-left: 0; }
}
@media (max-width: 640px) {
  .vr-wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .vr-sec { padding: 56px 0; }
  .vr-tools { grid-template-columns: 1fr; }
  .vr-plan { padding: 22px 20px; }
  .vr-dvojice { border-radius: 20px; }
  .vr-dvojice-tx, .vr-form { padding: 20px 18px; }
  .vr-form-row { grid-template-columns: 1fr; }
  .vr-hledat { min-width: 0; width: 100%; }
  .vr-chystame small { margin-left: 0; }
}

/* ---------- pohyb (17. 10. večer): vyjetí oddílů při rolování, dlaždice s odstupem, plány; animace místo přechodů, ať po dojetí nic nepřebíjí hover ---------- */
@keyframes vr-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes vr-left { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes vr-right { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.js [data-reveal]:not([data-reveal="hero"]):not(.in) { opacity: 0; }
.js [data-reveal]:not([data-reveal="hero"]).in { animation: vr-up .7s var(--ease) var(--d, 0s) backwards; }
.js .vr-tools-grp[data-reveal]:not(.in) .vr-tool { opacity: 0; }
.js .vr-tools-grp[data-reveal].in .vr-tool { animation: vr-up .55s var(--ease) var(--d, 0s) backwards; }
.js.lp-force [data-reveal]:not([data-reveal="hero"]), .js.lp-force .vr-tools-grp .vr-tool { opacity: 1; animation: none; }          /* pojistka: bez skriptu se obsah po chvíli ukáže */
.vr-tool:hover .vr-tool-ic, .vr-tool:focus-visible .vr-tool-ic { background: var(--brand); color: var(--brand-ink); transform: scale(1.06); }
.vr-tool-ic { transition: background-color .2s, color .2s, transform .25s var(--ease); }
@keyframes vr-glow { from { box-shadow: 0 24px 50px rgba(22, 66, 185, .26); } to { box-shadow: 0 28px 64px rgba(66, 133, 244, .44); } }
.js .vr-plan-pro.in { animation: vr-up .7s var(--ease) var(--d, 0s) backwards, vr-glow 3.2s ease-in-out .9s infinite alternate; }

/* ---------- naposledy otevřené nástroje (jen z paměti prohlížeče návštěvníka) ---------- */
.vr-nedavne { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 18px; padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--brand) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line)); }
.vr-nedavne > span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.vr-nedavne > span .ic { color: var(--brand); }
.vr-nedavne [data-nedavne-seznam] { display: flex; flex-wrap: wrap; gap: 6px; }
.vr-nedavne [data-nedavne-seznam] a { padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; transition: border-color .15s, color .15s; }
.vr-nedavne [data-nedavne-seznam] a:hover { border-color: var(--brand); color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal]:not(.in), .js .vr-tools-grp[data-reveal]:not(.in) .vr-tool { opacity: 1; }
  .js [data-reveal].in, .js .vr-tools-grp[data-reveal].in .vr-tool, .js .vr-plan-pro.in { animation: none; }
  .vr-tool-ic { transition: none; }
}

/* ---------- veřejné nástroje (17. 10. 2026): ceny nemovitostí po městech (/nemovitosti/ceny) a měny a kurzy (/meny); tabulky jsou .tbl z ui.css, tady jen rozestupy,
   druhý řádek s počtem inzerátů pod číslem a přepočet částky ---------- */
.vr-nastroj section + section { margin-top: 28px; }
.vr-nastroj section > h2 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.015em; }
.vr-tbl-lead { margin: 0 0 12px; font-size: 13.5px; max-width: 90ch; }
.vr-tbl td { vertical-align: top; }
.vr-tbl .vr-tbl-link { color: var(--ink); text-decoration: none; }
.vr-tbl .vr-tbl-link:hover { color: var(--brand); text-decoration: underline; }
.vr-tbl .num small { color: var(--ink-3); font-size: 12px; }
.vr-tbl-n { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.vr-ref-src a { color: var(--link); }
.vr-prevod { margin: 0 0 28px; }
.vr-prevod .card-b { display: grid; gap: 10px; padding-top: 16px; }
.vr-prevod h2 { margin: 0; font-size: 19px; letter-spacing: -.015em; }
.vr-prevod-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: end; }
.vr-prevod-row .field { margin: 0; }
.vr-prevod-swap { margin-bottom: 1px; }
.vr-prevod-out { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.vr-prevod-out b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vr-prevod-out small { color: var(--ink-3); font-size: 13px; }
.vr-meny-tbl .mn-cas, .vr-meny-tbl .mn-stav { white-space: nowrap; font-size: 13px; }
.vr-meny-tbl .mn-cas small { margin-left: 4px; }
.vr-note { margin: 22px 0 0; font-size: 12.5px; line-height: 1.5; max-width: 90ch; }
@media (max-width: 720px) {
  .vr-prevod-row { grid-template-columns: 1fr 1fr; }
  .vr-prevod-row .vr-prevod-swap { grid-column: 1 / -1; justify-self: start; }
  .vr-meny-tbl th:nth-child(5), .vr-meny-tbl td:nth-child(5) { display: none; }
  .vr-tbl-n { white-space: normal; }
}

/* ---------- lišta cookies a panel Vaše volby (17. 10. večer, views/cc_lista.php, views/pub_volby.php): jedna karta dole, volby jako přepínače ---------- */
.cc-lista { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 90; width: min(780px, calc(100% - 32px)); transform: translateX(-50%); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); animation: vr-up .5s var(--ease) backwards; }
.cc-in { display: grid; gap: 12px; padding: 16px 18px; }
.cc-tx b { display: block; font-size: 15.5px; letter-spacing: -.01em; margin-bottom: 4px; }
.cc-tx p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.cc-tx a { color: var(--brand); font-weight: 700; text-decoration: none; }
.cc-tx a:hover { text-decoration: underline; }
.cc-detail { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-soft); }
.cc-vol { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; padding: 6px 4px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.cc-vol input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; }
.cc-vol input:disabled { cursor: default; }
.cc-vol b { color: var(--ink); margin-right: 4px; }
.cc-mk { margin: 2px 4px 0; font-size: 13px; color: var(--ink-3); }
.cc-mk b { color: var(--ink-2); margin-right: 4px; }
.cc-akce { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.vr-volby { display: grid; gap: 14px; margin-top: 6px; }
.vr-volby-sk { display: grid; gap: 4px; padding: 10px 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-soft); }
.vr-volby-akce { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vr-volby-stav { font-size: 13px; color: var(--up); font-weight: 700; }
.vr-volby-ucet { padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line); font-size: 14px; color: var(--ink-2); }
.vr-volby-ucet b { display: block; color: var(--ink); margin-bottom: 4px; }
.vr-volby-ucet p { margin: 0; line-height: 1.55; }
.vr-volby-ucet a { color: var(--brand); font-weight: 700; text-decoration: none; }
@media (max-width: 640px) {
  .cc-lista { left: 0; right: 0; bottom: 0; width: auto; transform: none; border-radius: 20px 20px 0 0; max-height: calc(100vh - 80px); overflow-y: auto; }
  .cc-in { padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .cc-akce .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .cc-lista { animation: none; } }


/* ---------- vzdělávání (19. 10. v noci): přehled článků a článek ---------- */
.vz-kat { margin: 18px 0 14px; }          /* 20. 10.: šedomodrý přepínač jako u filtru inzerátů (ui.css .tabs) */
.vz-kat.tabs a { min-height: 38px; padding: 0 16px; font-size: 14px; }
.vz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.vz-card { display: grid; gap: 8px; align-content: start; padding: 18px 20px 16px; border-radius: 16px; color: inherit; text-decoration: none; transition: transform .15s var(--ease), box-shadow .15s; }
.vz-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.vz-card-k { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }          /* 20. 10.: tmavší oranžová, kontrast 5:1 */
.vz-card-t { font-size: 18px; line-height: 1.25; letter-spacing: -.015em; }
.vz-card-p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.vz-card-m { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.vz-card-go { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; color: var(--brand); font-weight: 700; }
.vz-card-go .ic { transform: rotate(-90deg); }
.vz-cta { margin-top: 26px; border-radius: 16px; }
.vz-cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.vz-cta-in p { margin: 4px 0 0; font-size: 13.5px; }
.vz-note { margin: 18px 0 0; font-size: 12.5px; max-width: 90ch; }
.vz-crumbs { margin: 0 0 6px !important; font-size: 13px !important; }
.vz-crumbs a { color: inherit; opacity: .85; text-decoration: none; }
.vz-meta { display: flex; align-items: center; gap: 6px; margin: 10px 0 0 !important; font-size: 13px !important; opacity: .9; }
.vz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; margin-top: 18px; }
.vz-body { border-radius: 16px; }
.vz-body .card-b { padding: 10px 28px 22px; max-width: 78ch; }
.vz-body h2 { margin: 22px 0 8px; font-size: 20px; letter-spacing: -.015em; scroll-margin-top: 130px; }
.vz-body p { margin: 0 0 12px; font-size: 16px; line-height: 1.65; color: var(--ink); }
.vz-disclaimer { margin: 18px 0 0 !important; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 12.5px !important; color: var(--ink-3) !important; }
.vz-side { display: grid; gap: 12px; position: sticky; top: calc(var(--top-h, 64px) + 16px); }
.vz-toc { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.4; }
.vz-toc a { color: var(--ink-2); text-decoration: none; }
.vz-toc a:hover { color: var(--brand); text-decoration: underline; }
.vz-tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vz-tools a { display: inline-flex; align-items: center; gap: 6px; color: var(--link); font-weight: 700; text-decoration: none; font-size: 14px; }
.vz-tools .ic { transform: rotate(-90deg); }
.vz-dalsi { margin-top: 28px; }
.vz-dalsi h2 { font-size: 20px; margin: 0 0 12px; }
@media (max-width: 900px) { .vz-layout { grid-template-columns: 1fr; } .vz-side { position: static; } .vz-body .card-b { padding: 6px 18px 18px; } }

/* Kalkulačky (/kalkulacky a /kalkulacky/{slug}, views/kalkulacky.php a kalkulacka.php, 19. 10. 2026 v noci): karty po kategoriích, na stránce kalkulačky vlevo zadání
   se dvěma sloupci polí a jednotkou v poli, vpravo věta, dlaždice výsledků (první zvýrazněná) a u splátkového kalendáře tabulka; pod tím tři karty odkazů. */
.kl-skupina { margin-top: 22px; }
.kl-skupina h2 { font-size: 20px; margin: 0 0 12px; letter-spacing: -.015em; }
.kl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.kl-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 12px; row-gap: 4px; align-items: start; padding: 16px 18px 14px; border-radius: 16px; color: inherit; text-decoration: none; transition: transform .15s var(--ease), box-shadow .15s, border-color .15s; }
.kl-card:hover, .kl-card:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand); }
.kl-card-ic { grid-row: 1 / 4; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 11%, var(--surface)); color: var(--brand); }
.kl-card-t { font-size: 16px; line-height: 1.25; letter-spacing: -.01em; }
.kl-card-p { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.kl-card-go { display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--brand); }
.kl-card-go .ic { transform: rotate(-90deg); }
.kl-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; margin-top: 18px; }
.kl-form, .kl-out { border-radius: 16px; min-width: 0; }          /* min-width 0: jinak si karta s tabulkou po letech vynutí šířku tabulky a telefon roluje do strany */
.kl-pole { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; }
.kl-field { margin-bottom: 10px; }
.kl-field .lbl { line-height: 1.3; }
.kl-in { position: relative; display: block; }
.kl-in input { width: 100%; padding-right: 54px; font-variant-numeric: tabular-nums; }
.kl-unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12.5px; font-weight: 700; color: var(--ink-3); pointer-events: none; }
.kl-local { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--up); }
.kl-veta { margin: 4px 0 14px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); font-size: 15.5px; line-height: 1.5; font-weight: 600; color: var(--ink); }
.kl-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.kl-stat { display: grid; gap: 2px; align-content: start; }
.kl-stat-hl { grid-column: 1 / -1; background: var(--brand) !important; border-color: transparent !important; color: var(--brand-ink); }
.kl-stat-hl > .k { color: color-mix(in srgb, var(--brand-ink) 80%, transparent); }
.kl-stat-hl > b { font-size: 26px; color: var(--brand-ink); }
.kl-tbl-wrap { margin-top: 14px; }
.kl-tbl td { padding: 7px 12px; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.kl-tbl tr:last-child td { border-bottom: 0; }
.kl-tbl .num { text-align: right; }
.kl-pozn { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.kl-souvis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.kl-link { display: grid; gap: 6px; align-content: start; padding: 16px 18px; border-radius: 16px; color: inherit; text-decoration: none; transition: transform .15s var(--ease), box-shadow .15s, border-color .15s; }
.kl-link:hover, .kl-link:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand); }
.kl-link-k { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.kl-link b { font-size: 16px; line-height: 1.25; letter-spacing: -.01em; }
.kl-link > span:last-child { font-size: 13px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 980px) { .kl-layout { grid-template-columns: 1fr; } .kl-souvis { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .kl-pole { grid-template-columns: 1fr; } .kl-stat-hl > b { font-size: 22px; } }

/* skutečné prodeje podle okresů z ČSÚ (20. 10.) */
.vr-okresy h2 small { font-size: 13px; font-weight: 600; margin-left: 8px; }
.vr-okresy-kraje { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.vr-kraj { display: inline-flex; flex-direction: column; gap: 2px; min-width: 128px; padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.vr-kraj:hover { border-color: var(--brand); transform: translateY(-1px); }
.vr-kraj b { font-size: 12.5px; }
.vr-kraj span { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--brand); }
.vr-tbl-okresy td.up { color: var(--up); font-weight: 700; }
.vr-tbl-okresy td.down { color: var(--down); font-weight: 700; }

/* Mapa cen nemovitostí na /nemovitosti/ceny (21. 10. 2026, assets/js/nemovitosti_mapa.js): karta s přepínači, mapa, panel vpravo, karta při najetí */
.nm { padding: 22px 24px 16px; margin: 0 0 28px; border-radius: 20px; }
.nm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nm-title { min-width: 0; flex: 1 1 420px; }
.nm-kicker { margin: 0 0 2px; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); }
.nm h2 { margin: 0; font-size: 24px; line-height: 1.2; }
.nm-lead { margin: 6px 0 0; max-width: 64ch; font-size: 14px; min-height: 2.8em; }
.nm-ovl { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 14px 0 6px; }
.nm .seg { flex-wrap: wrap; }
.nm .seg button:disabled { opacity: .38; cursor: not-allowed; }
.nm-body { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; align-items: start; }
.nm-map-wrap { min-width: 0; }
.nm-map { width: 100%; height: clamp(300px, 44vw, 520px); }
.nm:not(.nm-ready) .nm-map { background: var(--surface-2); border-radius: 14px; }
.nm-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.nm-leg-i { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.nm-leg-i i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); display: inline-block; }
.nm-side { display: grid; gap: 14px; }
.nm-cr { padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: var(--stage-ink); display: grid; gap: 2px; }
.nm-cr span { font-size: 12px; font-weight: 700; opacity: .85; }
.nm-cr b { font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.nm-cr small { font-size: 12px; opacity: .8; }
.nm-top h3 { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.nm-top ol { list-style: none; margin: 0; padding: 0; counter-reset: nm; display: grid; gap: 2px; }
.nm-top li { counter-increment: nm; }
.nm-top button { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 8px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background-color .15s ease; }
.nm-top button::before { content: counter(nm); flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); font-size: 11px; font-weight: 800; }
.nm-top button:hover, .nm-top button:focus-visible { background: var(--surface-2); outline: none; }
.nm-top button:focus-visible { box-shadow: 0 0 0 2px var(--brand) inset; }
.nm-top-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; }
.nm-top b { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nm-zdroj { margin: 10px 0 0; font-size: 12px; }
.nm-tip { min-width: 240px; max-width: 310px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 14px 36px rgba(10, 25, 60, .2); font-family: var(--font); white-space: normal; }
.nm-tip-h b { display: block; font-size: 15px; line-height: 1.25; }
.nm-tip-h small { font-size: 12px; color: var(--ink-3); }
.nm-tip-v { margin: 8px 0; font-size: 21px; font-weight: 800; line-height: 1.2; color: var(--brand); font-variant-numeric: tabular-nums; }
.nm-tip-v small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.nm-tip-v.bez { font-size: 14px; color: var(--ink-3); }
.nm-tip-v.malo { color: var(--ink-2); }
.nm-tip-rows { display: grid; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.nm-tip-r { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.nm-tip-r span { color: var(--ink-2); }
.nm-tip-r b { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nm-tip-r b small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); }
.vr-tbl tr.nm-flash td { animation: nm-flash 1.6s ease; }
@keyframes nm-flash { 0%, 35% { background: rgba(238, 123, 17, .16); } 100% { background: transparent; } }
@media (max-width: 960px) { .nm-body { grid-template-columns: minmax(0, 1fr); } .nm-side { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nm-cr { grid-column: 1 / -1; } }
@media (max-width: 560px) { .nm { padding: 16px 14px 12px; border-radius: 16px; } .nm h2 { font-size: 20px; } .nm-side { grid-template-columns: minmax(0, 1fr); } .nm-map { height: 260px; } }
@media (prefers-reduced-motion: reduce) { .vr-tbl tr.nm-flash td { animation: none; } }

/* landing.css */
/* Úvodní stránka (views/landing.php, assets/js/landing.js). Tokeny, horní lišta, nabídky a patička jsou v public.css, sdílené díly (katalog, ceník, podpora, formuláře)
   ve verejne.css. Nový styl 17. 10. 2026: jedna sytě modrá plocha v úvodu (věta, pilíře, hledání, okno s majetkem a čtyři čísla), oranžová jen jako hlavní tlačítko
   a značka v grafu, pak světlé oddíly. Jedno vyjetí úvodu, kreslené náhledy se nakreslí, až jsou vidět; pohyb respektuje prefers-reduced-motion. */

body.lp { overflow-x: hidden; }
html { scroll-padding-top: 86px; }
html.lp-smooth { scroll-behavior: smooth; }          /* plynulé rolování až po načtení (landing.js): skok na kotvu z jiné stránky (/#cenik) je okamžitý, ne čtyři vteřiny jízdy */
.lp-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)) 0 max(20px, env(safe-area-inset-right)); }
.up { color: var(--up); }
.down { color: var(--down); }

/* ---------- modrá plocha: úvod a čísla ---------- */
.lp-stage { position: relative; overflow: hidden; color: var(--stage-ink); background: var(--stage); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 72px), 0 100%); padding-bottom: 60px; }          /* šikmo seříznutá spodní hrana jako úvodní plochy roku 2018 (plan/vzhled-2018.md) */
.lp-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(720px 420px at 86% 8%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%), radial-gradient(560px 360px at 8% 100%, rgba(255, 255, 255, .10), transparent 70%); pointer-events: none; }
.lp-stage::after { content: ""; position: absolute; top: -160px; right: -140px; width: 560px; height: 560px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 62%); box-shadow: -300px 280px 0 -110px rgba(255, 255, 255, .05); pointer-events: none; }          /* stejná ozdoba jako bannery v celé aplikaci (kruh a záře), ne mřížka (19. 10.) */
.lp-stage > * { position: relative; z-index: 1; }
.lp-stage > .lp-hero { z-index: 2; }          /* našeptávač hledání (.search-results) musí ležet nad pásem čísel, který je v DOM až za úvodem */
.lp-hero { padding: 72px 0 40px; }
.lp-hero-in { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 48px; align-items: center; }
.lp-hero h1 { margin: 0 0 22px; font-size: clamp(36px, 5.1vw, 62px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.lp-pilire { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.lp-pilire a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--stage-glass); border: 1px solid var(--stage-line); color: var(--stage-ink); text-decoration: none; font-size: 14px; font-weight: 700; transition: background-color .15s, border-color .15s; }
.lp-pilire a:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .4); }
.lp-pilire .ic { color: var(--accent); }
.lp-search { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 4px 8px 4px 16px; max-width: 580px; width: 100%; background: var(--surface); border: 1.5px solid transparent; border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 12, 60, .28); color: var(--ink-3); transition: border-color .15s, box-shadow .15s; }
.lp-search:focus-within { border-color: var(--accent); }
.lp-search input { flex: 1; min-width: 0; height: 50px; border: 0; background: transparent; outline: none; font: inherit; font-size: 16px; color: var(--ink); }
.lp-search input::placeholder { color: var(--ink-3); }
.lp-search .search-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; text-align: left; color: var(--ink); }
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; }
/* tlačítka úvodu (.lp-btn-lg, .lp-btn-accent, .lp-btn-light) jsou od 23. 10. 2026 v public.css spolu s .pub-btn-*: jedna definice tlačítek na modrém podkladu */
.lp-note { margin: 16px 0 0; font-size: 13.5px; color: var(--stage-ink-2); }

/* okno s majetkem (jedna výrazná věc na stránce; čísla jsou vymyšlená a okno to říká) */
.lp-mock { position: relative; padding: 22px 10px 30px; color: var(--ink); }
.lp-win { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 34px 70px rgba(0, 8, 40, .38); transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); transition: transform .5s var(--ease); overflow: hidden; }
.lp-mock:hover .lp-win { transform: perspective(1400px) rotateY(0) rotateX(0); }
.lp-win-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-size: 13px; font-weight: 700; }
.lp-win-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.lp-win-bar span { margin-left: 8px; }
.lp-win-bar em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.lp-kpis { display: grid; grid-template-columns: 1.5fr 1.2fr 1fr; gap: 10px; padding: 16px 16px 6px; }
.lp-kpis small { display: block; font-size: 11.5px; color: var(--ink-3); margin-bottom: 2px; }
.lp-kpis b { font-size: clamp(14px, 1.6vw, 19px); font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.lp-chart { display: block; width: calc(100% - 32px); height: 130px; margin: 6px 16px 0; overflow: visible; }
.lp-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.lp-area { opacity: 0; }
.lp-dot { opacity: 0; transform-origin: 360px 12px; }
.in .lp-line { animation: lp-draw 1.7s var(--ease) .3s forwards; }
.in .lp-line2 { animation-delay: .1s; }
.in .lp-area { opacity: 1; transition: opacity 1s .9s; }
.in .lp-dot { animation: lp-pop .5s 1.9s forwards; }
@keyframes lp-draw { to { stroke-dashoffset: 0; } }
@keyframes lp-pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
.lp-alloc { display: grid; gap: 8px; padding: 14px 16px 18px; }
.lp-alloc span { display: grid; grid-template-columns: 84px 1fr 38px; align-items: center; gap: 10px; font-size: 12.5px; }
.lp-alloc b { font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.lp-alloc em { font-style: normal; text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lp-alloc i { display: block; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.lp-alloc i::after { content: ""; display: block; height: 100%; width: 0; border-radius: inherit; background: var(--c); transition: width 1.1s var(--ease) .6s; }
.in .lp-alloc i::after { width: var(--w); }
.lp-chip { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0, 8, 40, .3); font-size: 12.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.lp-chip .ic { color: var(--accent); }
.lp-chip b { color: var(--ink); }
.lp-c1 { top: 2px; right: 6%; }
.lp-c2 { bottom: 8px; left: -2%; }
.lp-c3 { top: 46%; right: -3%; }

/* čtyři skutečná čísla v modré ploše */
.lp-cisla { padding-top: 18px; padding-bottom: 46px; }
.lp-cisla-pas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--stage-line); border-radius: 20px; background: var(--stage-glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }          /* jeden pás se čtyřmi poli: oko čte jednu řadu čísel, ne čtyři karty; čísla jsou na stejné účaří */
.lp-cislo { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 20px 22px 18px; border-left: 1px solid var(--stage-line); text-decoration: none; color: inherit; transition: background-color .2s; }
.lp-cislo:first-child { border-left: 0; }
.lp-cislo-n { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; min-height: 40px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lp-cislo-n small { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--stage-ink-2); }          /* „přes“ u odhadu řádků: malé slovo před číslem, ne druhý řádek */
.lp-cislo-n em { font-style: normal; white-space: nowrap; }
.lp-cislo span { font-size: 13px; color: var(--stage-ink-2); line-height: 1.35; }

/* ---------- k čemu je PortfolioTracker: tři karty vedle sebe s oranžovou linkou nahoře (19. 10. 2026) ---------- */
.lp-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-fc { position: relative; display: grid; align-content: start; gap: 12px; padding: 28px 26px 24px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 20px; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.lp-fc::before { content: ""; position: absolute; left: 26px; top: 0; width: 44px; height: 4px; border-radius: 0 0 4px 4px; background: var(--accent); }
.lp-fc:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.lp-fc-n { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand); }
.lp-fc h3 { margin: 4px 0 0; font-size: 22px; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
.lp-fc h3 .flag { vertical-align: -2px; margin-left: 2px; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); }          /* česká vlajka u karty komunity */
.lp-fc p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.lp-fc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.lp-fc-tags a { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); color: var(--brand); font-size: 13px; font-weight: 700; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
.lp-fc-tags a .ic { transform: rotate(-90deg); color: var(--accent); transition: transform .2s var(--ease); }
.lp-fc-tags a:hover { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.lp-fc-tags a:hover .ic { color: var(--brand-ink); transform: rotate(-90deg) translateY(-2px); }

/* ---------- nástroje po oblastech: pět karet (tři a dvě širší), v každé pět nástrojů a odkaz na celý katalog ---------- */
.lp-oblasti { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.lp-ob { grid-column: span 2; display: grid; align-content: start; gap: 12px; padding: 24px; background: var(--bg); border: 1px solid var(--line-soft); border-radius: 20px; transition: transform .25s var(--ease), box-shadow .25s, border-color .2s; }
.lp-ob:nth-child(n+4) { grid-column: span 3; }
.lp-ob:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: color-mix(in srgb, var(--brand) 25%, var(--line)); }
.lp-ob-h { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.lp-ob-ic { grid-row: 1 / 3; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--stage); color: var(--stage-ink); }
.lp-ob-ic .ic { color: var(--stage-ink); }
.lp-ob-h h3 { margin: 0; font-size: 19px; letter-spacing: -.015em; line-height: 1.2; }
.lp-ob-h small { color: var(--ink-3); font-size: 12.5px; }
.lp-ob > p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; min-height: 44px; }
.lp-ob-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lp-ob-l a { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 10px; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .15s, color .15s; }
.lp-ob-l a .ic { flex: none; color: var(--brand); }
.lp-ob-l a:hover { background: var(--surface); color: var(--brand); }
.lp-ob-l span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-ob-lock { margin-left: auto; flex: none; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.lp-ob-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; color: var(--brand); font-size: 14px; font-weight: 700; text-decoration: none; }
.lp-ob-more .ic { transform: rotate(-90deg); color: var(--accent); transition: transform .2s var(--ease); }
.lp-ob-more:hover { text-decoration: underline; }
.lp-ob-more:hover .ic { transform: rotate(-90deg) translateY(-3px); }
.lp-sec-alt .lp-ob { background: var(--bg); }

/* ---------- jak začít: tři kroky s oranžovým číslem a čárkovanou spojnicí, pod nimi pás log brokerů (19. 10. večer) ---------- */
.lp-kroky { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: krok; }
.lp-krok { position: relative; display: grid; align-content: start; gap: 10px; padding: 28px 26px 24px; background: var(--bg); border: 1px solid var(--line-soft); border-radius: 20px; transition: transform .25s var(--ease), box-shadow .25s, border-color .2s; }
.lp-krok:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: color-mix(in srgb, var(--brand) 25%, var(--line)); }
.lp-krok:not(:last-child)::after { content: ""; position: absolute; top: 50px; right: -17px; width: 18px; border-top: 2px dashed color-mix(in srgb, var(--accent) 60%, transparent); }
.lp-krok-n { position: absolute; top: 22px; right: 22px; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 18px; font-weight: 800; letter-spacing: -.02em; box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.lp-krok-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--stage); color: var(--stage-ink); }
.lp-krok-ic .ic { color: var(--stage-ink); }
.lp-krok h3 { margin: 6px 0 0; font-size: 20px; letter-spacing: -.02em; line-height: 1.15; padding-right: 48px; text-wrap: balance; }
.lp-krok p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.lp-krok-a { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; color: var(--brand); font-size: 14px; font-weight: 700; text-decoration: none; }
.lp-krok-a .ic { transform: rotate(-90deg); color: var(--accent); transition: transform .2s var(--ease); }
.lp-krok-a:hover { text-decoration: underline; }
.lp-krok-a:hover .ic { transform: rotate(-90deg) translateY(-3px); }
.lp-brokeri { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 20px 0 0; padding: 14px 18px; border: 1px dashed var(--line); border-radius: 16px; font-size: 13.5px; color: var(--ink-2); }
.lp-brokeri > b { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); white-space: nowrap; }
.lp-brokeri > b .ic { color: var(--accent); }
.lp-brokeri ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lp-broker { display: inline-flex; align-items: center; min-height: 36px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.lp-broker:hover { border-color: var(--brand); transform: translateY(-1px); }
.lp-broker .pt-blogo { display: inline-flex; align-items: center; gap: 7px; line-height: 1; }
.lp-broker .pt-blogo b { font-size: 13px; font-weight: 750; white-space: nowrap; }
.lp-broker .pt-bz { display: block; width: 20px; height: 20px; border-radius: 25%; }
.lp-broker .pt-blogo-file svg { display: block; height: 14px; width: auto; max-width: 120px; }
.lp-broker .pt-blogo-file { color: #0b1b4b; }          /* oficiální loga mají pevné barvy, čip zůstává světlý i ve tmavém režimu */
html[data-color="dark"] .lp-broker:has(.pt-blogo-file) { background: #fff; }
.lp-brokeri .vr-more { margin-left: auto; font-size: 13.5px; }

/* ---------- časté otázky: dva sloupce rozbalovacích otázek (vzhled otázek sdílí s ceníkem ve verejne.css), pod nimi odkaz na kontakt ---------- */
.lp-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; align-items: start; }
.lp-sec-alt .lp-faq details { background: var(--bg); }
.lp-faq summary { font-size: 15.5px; }
.lp-faq-pata { margin: 26px 0 0; text-align: center; color: var(--ink-2); font-size: 15px; }
.lp-faq-pata a { color: var(--brand); font-weight: 700; text-decoration: none; }
.lp-faq-pata a:hover { text-decoration: underline; }

/* ---------- oranžová v detailech: linka pod nadpisem oddílu (vyjede s oddílem), „přes“ u čísel, ikony u formulářů ---------- */
body.lp .vr-head h2::after { content: ""; display: block; width: 44px; height: 4px; margin: 16px auto 0; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .6s var(--ease) .25s; }
body.lp .vr-head.in h2::after, .lp-force .vr-head h2::after { transform: scaleX(1); }
.lp-cislo-n small { color: var(--stage-accent); }
body.lp .vr-dvojice-tx h2 .ic, body.lp .vr-form h2 .ic { color: var(--accent); }
body.lp .vr-karty li > .ic { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
body.lp .vr-dar-castky button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- hledání v úvodu: jen jeden rámeček (oranžový), bez nativního křížku prohlížeče (Vojta 19. 10.) ---------- */
.lp-search input:focus { box-shadow: none; }
.lp-search input[type="search"]::-webkit-search-cancel-button, .lp-search input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.lp-search:focus-within { box-shadow: 0 18px 40px rgba(0, 12, 60, .28), 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent); }

/* ---------- oddíly úvodu ---------- */
.lp-sec { padding: 72px 0; }          /* stejný rytmus oddílů jako verejne.css */
.lp-sec-alt { background: var(--surface); border-block: 1px solid var(--line-soft); }
.lp-sec-tight { padding-top: 0; }

/* ---------- jedno vyjetí úvodu (jen v modré ploše; ostatní části stojí, kreslené náhledy se jen nakreslí) ---------- */
.js .lp-hero [data-reveal="hero"] { opacity: 0; transform: translateY(18px); transition: opacity .65s var(--ease) var(--d, 0s), transform .65s var(--ease) var(--d, 0s); }
.js .lp-hero [data-reveal="hero"].in, .js.lp-force .lp-hero [data-reveal="hero"] { opacity: 1; transform: none; }
.js .lp-mock[data-reveal="hero"] { transform: translateY(24px) scale(.98); }
.js .lp-mock[data-reveal="hero"].in, .js.lp-force .lp-mock[data-reveal="hero"] { transform: none; }

/* ---------- menší obrazovky ---------- */
@media (max-width: 1020px) {
  .lp-hero-in { grid-template-columns: 1fr; gap: 30px; }
  .lp-mock { max-width: 560px; margin: 0 auto; width: 100%; }
  .lp-win { transform: none; }
  .lp-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }          /* tablet: dva sloupce, poslední karta přes celou šířku */
  .lp-fc:last-child { grid-column: 1 / -1; }
  .lp-oblasti { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-ob, .lp-ob:nth-child(n+4) { grid-column: span 1; }
  .lp-ob:last-child { grid-column: 1 / -1; }
  .lp-ob:last-child .lp-ob-l { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .lp-kroky { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .lp-krok:not(:last-child)::after { display: none; }
  .lp-faq { grid-template-columns: 1fr; }
  .lp-brokeri .vr-more { margin-left: 0; }
  .lp-cisla-pas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-cislo:nth-child(3) { border-left: 0; }
  .lp-cislo:nth-child(n+3) { border-top: 1px solid var(--stage-line); }
}
@media (max-width: 760px) {
  .lp-cislo { padding: 16px 16px 14px; }
}
@media (max-width: 640px) {
  .lp-wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .lp-sec { padding: 56px 0; }
  .lp-stage { border-radius: 0 0 24px 24px; }
  .lp-hero { padding-top: 36px; }
  .lp-btn-lg { flex: 1 1 100%; }
  .lp-c3 { right: 0; }
  .lp-c2 { left: 0; }
  .lp-kpis { grid-template-columns: 1fr 1fr; }
  .lp-kpis > div:first-child { grid-column: 1 / -1; }
  .lp-cisla { padding-bottom: 36px; }
  .lp-cislo-n { font-size: 24px; min-height: 0; }
  .lp-feat, .lp-oblasti, .lp-ob:last-child .lp-ob-l { grid-template-columns: 1fr; }          /* telefon: jeden sloupec */
  .lp-fc { padding: 22px 20px 20px; }
  .lp-fc::before { left: 20px; }
  .lp-ob { padding: 20px; }
  .lp-ob > p { min-height: 0; }
  .lp-ob-l a { padding: 10px 10px; }          /* 44 px na dotyk */
  .lp-krok { padding: 22px 20px 20px; }
  .lp-krok-n { top: 18px; right: 18px; width: 36px; height: 36px; font-size: 16px; }
  .lp-brokeri { padding: 12px 14px; }
}

/* ---------- omezený pohyb ---------- */
@media (prefers-reduced-motion: reduce) {
  html.lp-smooth { scroll-behavior: auto; }
  .js .lp-hero [data-reveal="hero"], .js .lp-mock[data-reveal="hero"] { opacity: 1; transform: none; transition: none; }
  .lp-line { stroke-dashoffset: 0; animation: none !important; }
  .lp-area, .lp-dot { opacity: 1; animation: none !important; }
  .lp-alloc i::after { width: var(--w); transition: none; }
  .lp-win { transform: none; transition: none; }
  body.lp .vr-head h2::after { transform: scaleX(1); transition: none; }
  .lp-fc, .lp-ob, .lp-krok, .lp-broker { transition: none; }
}

/* ---------- pohyb v úvodu (17. 10. večer): plynoucí záře v modré ploše, plovoucí okno a štítky, čísla s odstupem, bloky „K čemu“ ze stran ---------- */
@keyframes lp-aurora { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-3%, 2.5%, 0) scale(1.08); } }
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes lp-chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.lp-stage::before { animation: lp-aurora 16s ease-in-out infinite alternate; }
.js .lp-mock[data-reveal="hero"].in { animation: lp-float 7s ease-in-out 1.2s infinite; }
.lp-chip { animation: lp-chip-float 6s ease-in-out infinite; }
.lp-c2 { animation-delay: 1.4s; }
.lp-c3 { animation-delay: 2.8s; }
.js .lp-cisla[data-reveal]:not(.in) .lp-cislo { opacity: 0; }
.js .lp-cisla[data-reveal].in .lp-cislo { animation: vr-up .6s var(--ease) var(--d, 0s) backwards; }
.lp-cislo:hover, .lp-cislo:focus-visible { background: rgba(255, 255, 255, .12); outline: none; }
.lp-cislo:hover span, .lp-cislo:focus-visible span { color: var(--stage-ink); }
.lp-cislo:focus-visible { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8); }
.js.lp-force .lp-cisla .lp-cislo { opacity: 1; animation: none; }          /* pojistka i pro čísla: bez pozorovatele by zůstala průhledná */
@media (prefers-reduced-motion: reduce) {
  .lp-stage::before, .js .lp-mock[data-reveal="hero"].in, .lp-chip { animation: none; }
  .js .lp-cisla[data-reveal]:not(.in) .lp-cislo { opacity: 1; }
  .js .lp-cisla[data-reveal].in .lp-cislo { animation: none; }
  .lp-cislo { transition: none; }
}

