/* 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; }
}

/* valuation.css */
/* Valuace: souhrn a modely (assets/js/valuation_ui.js), komunita (community.js). Barvy jen z tokenů motivu. */

.val-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 14px 18px; margin-bottom: 10px; }
.val-head-l { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.val-head-r { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.val-head-r .k { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.val-head-r b { font-size: 19px; font-variant-numeric: tabular-nums; }
.val-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vchip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.vchip-reit, .vchip-fin { background: color-mix(in srgb, var(--brand) 12%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); color: var(--brand); }
.vchip-loss, .vchip-cyc { background: color-mix(in srgb, var(--down) 10%, var(--surface)); border-color: color-mix(in srgb, var(--down) 30%, var(--line)); color: var(--down); }
.vchip-growth, .vchip-div { background: color-mix(in srgb, var(--up) 11%, var(--surface)); border-color: color-mix(in srgb, var(--up) 32%, var(--line)); color: var(--up); }
.score-badge { display: inline-flex; align-items: baseline; gap: 4px; padding: 4px 12px; border-radius: 12px; text-decoration: none; border: 2px solid var(--line); background: var(--surface); color: var(--ink); }
.score-badge b { font-size: 20px; font-variant-numeric: tabular-nums; }
.score-badge span { font-size: 12px; font-weight: 800; color: var(--ink-3); }
.score-badge.grade-a { border-color: var(--up); } .score-badge.grade-b { border-color: color-mix(in srgb, var(--up) 60%, var(--line)); }
.score-badge.grade-c { border-color: var(--warn); } .score-badge.grade-d, .score-badge.grade-e { border-color: var(--down); }

.val-switch-sep { flex: none; align-self: center; padding: 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); border-left: 1px solid var(--line); margin-left: 4px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot.lvl-good, .appl.lvl-good::before { background: var(--up); }
.dot.lvl-ok, .appl.lvl-ok::before { background: var(--brand); }
.dot.lvl-limited, .appl.lvl-limited::before { background: var(--warn); }
.dot.lvl-no, .appl.lvl-no::before { background: var(--ink-3); }

.appl { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.appl::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.appl-banner { padding: 10px 14px; border-radius: var(--r-md); font-size: 13.5px; border: 1px solid var(--line); background: var(--surface); border-left-width: 4px; }
.appl-banner.lvl-good { border-left-color: var(--up); }
.appl-banner.lvl-ok { border-left-color: var(--brand); }
.appl-banner.lvl-limited { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 7%, var(--surface)); }
.appl-banner.lvl-no { border-left-color: var(--ink-3); background: var(--surface-2); }

.val-group-plain { padding: 14px 16px; }
.val-about p { font-size: 13px; margin: 0; }
.val-metrics { margin: 0; }
.val-metrics .stat { cursor: default; }
.val-list { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; display: grid; gap: 4px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 2px 0 12px; font-size: 13px; }
.mid { color: var(--warn); }

/* tabulka vah */
.wtbl td { vertical-align: middle; }
.wtbl tr.dim td { opacity: .62; }
.wtbl td.wt-lvl { min-width: 260px; }
.wt-lvl-in { margin-top: 5px; }
.wt-name { font-weight: 700; color: var(--ink); text-decoration: none; }
.wt-name:hover { color: var(--brand); text-decoration: underline; }
.wt-why { display: block; font-size: 12px; color: var(--ink-3); margin-top: 3px; max-width: 46ch; white-space: normal; line-height: 1.35; }
.wt-w { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.wt-w b { min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
.wt-w input[type="range"], .val-controls .slider input[type="range"] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--brand) var(--fill, 0%), var(--line) var(--fill, 0%)); outline: none; }
.wt-w input[type="range"] { flex: 1; min-width: 90px; }
.wt-w input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); box-shadow: var(--shadow-sm); cursor: grab; }
.wt-w input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); cursor: grab; }
.wt-w input[type="range"]:disabled { opacity: .4; cursor: not-allowed; }
.ff-row.sum .ff-l, .ff-row.sum .ff-v { font-weight: 800; }
.ff-row.sum .ff-bar { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.ff-row.sum .ff-mark { background: var(--accent); }

/* ukazatel násobku */
.gauge { padding: 8px 4px 0; }
.gauge-track { position: relative; height: 14px; border-radius: 7px; background: var(--surface-2); margin: 14px 0 12px; }
.gauge-band { position: absolute; top: 0; bottom: 0; border-radius: 7px; background: color-mix(in srgb, var(--brand) 32%, transparent); }
.gauge-mark { position: absolute; top: -5px; bottom: -5px; width: 5px; margin-left: -2.5px; border-radius: 3px; }
.gauge-mark.cur, .gauge-dot.cur { background: var(--ink); }
.gauge-mark.own, .gauge-dot.own { background: var(--brand); }
.gauge-mark.sector, .gauge-dot.sector { background: var(--c-teal); }
.gauge-mark.target, .gauge-dot.target { background: var(--accent); }
.gauge-leg { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--ink-2); }
.gauge-leg span { display: inline-flex; align-items: center; gap: 7px; }
.gauge-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* bezpečnostní rezerva */
.mos-bar { position: relative; height: 16px; border-radius: 8px; background: var(--surface-2); margin: 34px 4px 22px; }
.mos-zone { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px 0 0 8px; background: color-mix(in srgb, var(--up) 40%, transparent); }
.mos-mark { position: absolute; top: -6px; bottom: -6px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--ink); }
.mos-mark.buy { background: var(--up); } .mos-mark.fair { background: var(--brand); } .mos-mark.price { background: var(--accent); }
.mos-mark span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 800; color: var(--ink-2); white-space: nowrap; }

/* komunita */
.community .card-h { align-items: center; }
.like-btn { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 800; font-size: 13px; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease); }
.like-btn:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-1px); }
.like-btn.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.vote-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; background: var(--surface-2); margin-bottom: 12px; }
.vote-bar i { display: block; min-width: 4px; }
.vote-bar .up { background: var(--up); } .vote-bar .mid { background: var(--warn); } .vote-bar .down { background: var(--down); }
.vote-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vote-btn { display: grid; gap: 1px; justify-items: center; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s, background-color .15s, transform .15s var(--ease), box-shadow .15s; }
.vote-btn b { font-size: 14px; }
.vote-btn span { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vote-btn em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.vote-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.vote-btn.up:hover, .vote-btn.up.on { border-color: var(--up); } .vote-btn.mid:hover, .vote-btn.mid.on { border-color: var(--warn); } .vote-btn.down:hover, .vote-btn.down.on { border-color: var(--down); }
.vote-btn.up.on { background: color-mix(in srgb, var(--up) 12%, var(--surface)); } .vote-btn.mid.on { background: color-mix(in srgb, var(--warn) 12%, var(--surface)); } .vote-btn.down.on { background: color-mix(in srgb, var(--down) 12%, var(--surface)); }
.community-kv { margin: 14px 0; }
.community-own { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.community-own label { flex: 1; min-width: 180px; display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.community-own .input { height: var(--h); }
.community-hint, .community-note { margin-top: 10px; }
.community-actions { margin-top: 12px; }

@media (max-width: 720px) {
  .val-head-r b { font-size: 16px; }
  .wtbl td.wt-lvl { min-width: 180px; }
  .vote-btn span { font-size: 16px; }
}

.meta .score-badge { padding: 1px 9px; border-width: 1.5px; border-radius: 9px; vertical-align: middle; }
.meta .score-badge b { font-size: 14px; }

.val-switch { margin: 0 0 12px; }          /* vzhled záložek je v ui.css (blok M5) */

/* 20. 10. 2026: verdikt lidsky v hlavičce, rychlé nastavení nahoře, krátký pruh místo odstavce */
.val-head-verdict { flex-basis: 100%; margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--line-soft, var(--line)); font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.val-head-verdict b { color: var(--ink); font-variant-numeric: tabular-nums; }
.val-head-verdict b.up { color: var(--up); }
.val-head-verdict b.down { color: var(--down); }
.val-quick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 28px; align-items: start; padding: 14px 18px; margin-bottom: 12px; }
.val-quick .field { margin: 0; }
.val-quick .val-hint { margin: 6px 0 0; font-size: 12.5px; }
.val-quick .slider { margin: 0; }
.val-quick .link-btn { margin-top: 6px; font-size: 12.5px; }
.val-strip { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.val-strip span { flex: 1 1 auto; }
@media (max-width: 760px) { .val-quick { grid-template-columns: 1fr; } }

/* portfolio.css */
/* Portfolio (assets/js/portfolio.js). Barvy jen z tokenů motivu. */

.pf-intro .pf-hero { padding: 28px 30px; margin: 18px 0; background: radial-gradient(520px 240px at 12% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%), var(--surface); }
.pf-hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 8px; }
.pf-hero .sub { color: var(--ink-2); max-width: 70ch; margin-bottom: 18px; }
.pf-hero .row { display: flex; gap: 10px; flex-wrap: wrap; }
.pf-new { display: grid; gap: 10px; max-width: 420px; margin-top: 18px; }
.pf-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.pf-feat { padding: 18px 20px; }
.pf-feat h3 { font-size: 15.5px; margin: 10px 0 6px; }
.pf-feat p { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.pf-feat-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand); }
.pf-brokers { padding: 18px 22px; }
.pf-brokers h2 { font-size: 16px; margin-bottom: 6px; }
.pf-brokers p { margin: 0 0 12px; max-width: 80ch; }

/* stránka portfolia */
.pf-shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 16px; }
.pf-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.pf-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pf-title h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.pf-title .select { width: auto; min-width: 200px; }
.pf-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pf-tools .select { width: auto; height: 34px; font-size: 13px; }
.pf-demo { font-size: 13px; margin: 6px 0 0; }
.pf-warn { margin-top: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--line)); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); font-size: 13.5px; }
.pf-warn p { margin: 2px 0; }
.pf-note { padding: 10px 14px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; color: var(--ink-2); margin: 0; }

.pf-top { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
.pf-score { display: flex; gap: 18px; align-items: center; padding: 20px 22px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--brand) 4%, var(--surface)); }
.score-ring { position: relative; width: 110px; height: 110px; flex: none; }
.score-ring-n { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score-ring-n b { font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.score-ring-n span { font-size: 11.5px; color: var(--ink-3); font-weight: 700; margin-top: 3px; }
.pf-score-bars { display: grid; gap: 9px; flex: 1; min-width: 0; }
.pf-bar { display: grid; grid-template-columns: 96px 1fr 28px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.pf-bar i { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; display: block; }
.pf-bar u { display: block; height: 100%; border-radius: 3px; background: var(--brand); text-decoration: none; }
.pf-bar b { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.pf-ai { padding: 18px 22px; min-width: 0; }
.pf-ai-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pf-ai-h h2 { font-size: 15px; font-weight: 800; }
.pf-ai-head { font-weight: 800; font-size: 16px; margin: 0 0 6px; }
.pf-ai-b p { margin: 0 0 8px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.pf-ai-b .pf-ai-head { color: var(--ink); }
.pf-ai-list h4 { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 10px 0 4px; }
.pf-ai-list ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: 13.5px; color: var(--ink-2); }
.pf-ai-foot { font-size: 12px; margin-top: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* souhrn na kartě krátce, celý rozbor v okně (22. 10. 2026) */
.pf-ai-headrow { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.pf-ai-headrow .pf-ai-head { margin: 0; }
.pf-ai-verdict { flex: none; font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 99px; margin-top: 1px; white-space: nowrap; }
.pf-ai-verdict.v-dobre { background: color-mix(in srgb, var(--up) 14%, var(--surface)); color: var(--up); }
.pf-ai-verdict.v-smisene { background: color-mix(in srgb, var(--warn) 16%, var(--surface)); color: var(--warn); }
.pf-ai-verdict.v-slabe { background: color-mix(in srgb, var(--down) 14%, var(--surface)); color: var(--down); }
.pf-ai-b .pf-ai-short { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0 0 10px; }
.pf-ai-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-ai-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); background: var(--surface-2); padding: 3px 10px; border-radius: 99px; cursor: default; }
.pf-ai-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.pf-ai-chip.r-dobre i { background: var(--up); } .pf-ai-chip.r-pozor i { background: var(--warn); } .pf-ai-chip.r-spatne i { background: var(--down); }
/* okno s celým rozborem */
.pf-aim { display: grid; gap: 16px; }
.pf-aim .pf-ai-head { font-size: 17px; font-weight: 800; }
.pf-aim-sum { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.pf-aim-areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pf-aim-area { border: 1px solid var(--line-soft); border-left: 4px solid var(--warn); border-radius: var(--r-md, 10px); padding: 10px 12px; background: var(--surface); }
.pf-aim-area.r-dobre { border-left-color: var(--up); } .pf-aim-area.r-spatne { border-left-color: var(--down); }
.pf-aim-area-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.pf-aim-area h3 { font-size: 14px; font-weight: 800; margin: 0; }
.pf-aim-area p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.pf-aim-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pf-aim-list h3 { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px; }
.pf-aim-list.is-good h3 { color: var(--up); } .pf-aim-list.is-bad h3 { color: var(--down); }
.pf-aim-list ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.pf-aim-foot { margin: 0; font-size: 12px; }
@media (max-width: 720px) { .pf-aim-areas, .pf-aim-two { grid-template-columns: minmax(0, 1fr); } }
.pf-stale { color: var(--warn); font-weight: 700; font-size: 13px; }
.pf-quota { font-size: 12px; margin-top: 8px; }
.spin { display: inline-block; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--brand); vertical-align: -2px; animation: auth-spin .8s linear infinite; }

.pf-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.pf-sub { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.pf-sub.up { color: var(--up); } .pf-sub.down { color: var(--down); }
.pf-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }          /* jedna mezera mezi všemi kartami přehledu (22. 10. 2026) */
.pf-chartbox { display: grid; gap: 10px; }
.pf-chart { width: 100%; height: 340px; }
.pf-chart-sm { width: 100%; height: 260px; }
.pf-donut { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: center; }
.pf-donut-chart { width: 200px; height: 200px; }
.pf-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.pf-legend li { display: grid; grid-template-columns: 10px 1fr auto; gap: 9px; align-items: center; font-size: 13.5px; }
.pf-legend i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.pf-legend b { font-variant-numeric: tabular-nums; }
.pf-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.pf-mov { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pf-mov li { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.pf-mov a { text-decoration: none; }
.tbl tr.est td { color: var(--ink-3); }
.score-cell { font-weight: 800; }
.pf-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* transakce a import */
.pf-txn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 12px; margin-bottom: 10px; }
.pf-f { display: grid; gap: 4px; position: relative; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.pf-f[hidden] { display: none; }
.pf-f input, .pf-f select { height: var(--h); padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; width: 100%; }
.pf-f input:focus, .pf-f select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.pf-pick { position: absolute; left: 0; right: 0; top: calc(100% + 2px); z-index: 30; max-height: 260px; overflow-y: auto; }
.pf-assign { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.pf-assign-in { position: relative; }
.pf-drop { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 34px 18px; margin: 4px 0 12px; border: 2px dashed var(--line); border-radius: 16px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.pf-drop:hover, .pf-drop.over { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.pf-broker { max-width: 260px; }
.pf-imp { padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.pf-imp.ok { background: color-mix(in srgb, var(--up) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--up) 30%, var(--line)); }
.pf-imp.err { background: color-mix(in srgb, var(--down) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--down) 30%, var(--line)); }
.pf-imp ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }

@media (max-width: 900px) {
  .pf-top { grid-template-columns: 1fr; }
  .pf-score { border-right: 0; border-bottom: 1px solid var(--line); }
  .pf-features { grid-template-columns: 1fr; }
  .pf-donut { grid-template-columns: 1fr; justify-items: center; }
  .pf-legend { width: 100%; }
  .pf-assign { grid-template-columns: 1fr; }
}

/* dividendy v kalendáři */
.cal-chip.cal-div { background: color-mix(in srgb, var(--up) 12%, var(--surface)); border-color: color-mix(in srgb, var(--up) 30%, transparent); }
.cal-chip.cal-div.pay { background: color-mix(in srgb, var(--brand) 12%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.cal-chip.cal-div.est { opacity: .6; border-style: dashed; }
.cal-chip.cal-div.mine { box-shadow: inset 3px 0 0 var(--accent); }

/* daně, poplatky, výzkum u pozic */
.pf-tax-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.pf-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.pf-check input { width: 16px; height: 16px; accent-color: var(--brand); }
.pf-limit p { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); max-width: 90ch; }
.pf-limit-bar { height: 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-soft); overflow: hidden; }
.pf-limit-bar u { display: block; height: 100%; background: var(--up); border-radius: 999px; text-decoration: none; transition: width .3s; }
.pf-limit-bar u.over { background: var(--down); }
.pf-notes { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.pf-sec-h { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin: 12px 0 0; }
.pf-vote { display: grid; gap: 3px; min-width: 130px; }
.pf-vote-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.pf-vote-bar i { display: block; height: 100%; }
.pf-vote-bar i.b { background: var(--up); }
.pf-vote-bar i.h { background: var(--ink-3); opacity: .5; }
.pf-vote-bar i.s { background: var(--down); }
.pf-vote .pf-sub { font-style: normal; font-size: 11.5px; }
.pf-research td .pf-sub { font-style: normal; font-size: 12px; }
.tbl .co { min-width: 150px; }
.tbl .co .co-logo { font-size: 11px; }

/* ceník */
.pr-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 0 0 16px; }
.pr-plan { padding: 22px 24px; display: grid; gap: 10px; align-content: start; }
.pr-plan-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pr-plan-h h2 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.pr-pro { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 25%, transparent); }
.pr-prices { display: grid; gap: 4px; }
.pr-price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.pr-price b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pr-price span { color: var(--ink-3); font-size: 14px; }
.pr-year b { font-size: 24px; }
.pr-save { font-style: normal; font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--up) 15%, transparent); color: var(--up); }
.pr-list { margin: 4px 0 8px; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.pr-note { font-size: 12.5px; margin: 0; }
.pr-table td:nth-child(n+2), .pr-table th:nth-child(n+2) { white-space: nowrap; }
.pr-faq { display: grid; gap: 8px; }
.pr-faq details { border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 14px; background: var(--surface); }
.pr-faq summary { cursor: pointer; font-weight: 700; }
.pr-faq p { margin: 8px 0 2px; color: var(--ink-2); font-size: 14px; }
.toast .toast-link { color: inherit; font-weight: 800; text-decoration: underline; }

/* české shrnutí firem u pozic */
.pf-briefs { display: grid; gap: 12px; }
.pf-brief { display: grid; grid-template-columns: minmax(170px, 230px) minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.pf-brief:first-child { border-top: 0; padding-top: 0; }
.pf-brief-b p { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); line-height: 1.5; max-width: 90ch; }
.pf-brief-b .pf-brief-m { font-size: 12.5px; color: var(--ink-3); margin: 8px 0 0; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-soft); font-size: 12.5px; }
.pf-chip i { font-style: normal; color: var(--ink-3); }
.pf-chip b { font-variant-numeric: tabular-nums; }
.pf-chip em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.pf-chip.good em { color: var(--up); }
.pf-chip.bad em { color: var(--down); }
@media (max-width: 720px) { .pf-brief { grid-template-columns: 1fr; } }

/* hotovost a marže u brokera (karta na Přehledu portfolia) */
.pf-cash { display: grid; gap: 12px; }
.pf-cash .tbl td .btn { padding: 2px 10px; }
.pf-cash-manual { border: 1px solid var(--line-soft); border-radius: 12px; padding: 4px 14px 12px; background: var(--surface-2); }
.pf-cash-manual summary { cursor: pointer; padding: 8px 0; font-weight: 700; font-size: 14px; }
.pf-cash-manual .muted { margin: 0 0 10px; font-size: 13px; }

/* logo brokera (jednobarevné, barva textu motivu) */
.pf-blogo { display: inline-flex; align-items: center; color: var(--ink); line-height: 0; }
.pf-blogo svg { display: block; height: 16px; width: auto; }
.pf-blogo.sm svg { height: 13px; }
.pf-blogo.md svg { height: 20px; }
.pf-blogo.lg svg { height: 26px; }
/* jméno brokera textem, když nemáme logo (XTB, Trading 212, Revolut) */
.pf-bname { display: inline-flex; align-items: center; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); line-height: 1; font-size: 15px; }
.pf-bname.sm { font-size: 12.5px; font-weight: 700; }
.pf-bname.md { font-size: 17px; }
.pf-bname.lg { font-size: 21px; }
.pf-imp > .pf-bname { display: flex; margin-bottom: 8px; }
.pf-drop-ic { display: flex; justify-content: center; margin-bottom: 6px; }
.pf-drop-ic:empty, .pf-drop-hint:empty { display: none; }
.pf-drop-hint { font-size: 13px; color: var(--ink-2); }
.pf-imp > .pf-blogo { display: flex; margin-bottom: 8px; }
.pf-legal { font-size: 12px; margin-top: 10px; }

/* graf hodnoty: volba pohledu a období vedle sebe */
.pf-chart-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.pf-range button { min-width: 38px; padding-inline: 10px; }
.pf-range-note { margin: 0; }
.pf-chart-z { height: 380px; }

/* transakce po stránkách */
.pf-txbar { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 10px; }
.pf-txbar .input { flex: 1 1 240px; max-width: 380px; min-width: 0; }
.pf-txbar .select { width: auto; flex: 0 0 auto; max-width: 100%; }
.pf-txinfo { font-size: 13px; margin-left: auto; }
.pf-txtable { min-height: 80px; transition: opacity .15s; }
.is-loading .pf-txtable { opacity: .5; }
.pf-th { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; white-space: nowrap; }
.pf-th:hover, .pf-th.on { color: var(--brand); }
.pf-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin-top: 14px; }
.pf-pager .btn.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.pf-pg-gap { color: var(--ink-3); padding: 0 2px; }

/* výkonnost po měsících: tabulka rok × měsíc */
.pf-heat-t th, .pf-heat-t td { white-space: nowrap; padding: 6px 8px; }
.pf-heat { text-align: right; font-variant-numeric: tabular-nums; font-size: 12.5px; border-radius: 4px; }
.pf-heat-y { font-weight: 700; }
.pf-span { width: auto; min-width: 190px; height: 34px; }

/* půjčka proti dividendám */
.pf-debt { display: grid; gap: 12px; }
.pf-debt p { margin: 0; }
.pf-verdict { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2, var(--surface)); }
.pf-verdict.up { border-color: color-mix(in srgb, var(--up) 35%, var(--line)); background: color-mix(in srgb, var(--up) 8%, var(--surface)); }
.pf-verdict.down { border-color: color-mix(in srgb, var(--down) 35%, var(--line)); background: color-mix(in srgb, var(--down) 7%, var(--surface)); }

/* průvodce importem /portfolio/import */
.imp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }          /* minmax: na telefonu se karty brokerů zalomí, nerozšíří stránku (kontrola 14. 10.) */
.imp-card .card-b { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.imp-brokers { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.imp-broker { display: grid; gap: 6px; justify-items: start; text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; min-height: 96px; align-content: start; }
.imp-broker:hover:not(:disabled) { border-color: var(--brand); }
.imp-broker.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); box-shadow: 0 0 0 1px var(--brand) inset; }
.imp-broker.soon { opacity: .62; cursor: default; }
.imp-b-mark { min-height: 22px; display: flex; align-items: center; }
.imp-b-name { font-weight: 700; }
.imp-b-tag { font-size: 12.5px; }
.imp-new { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.imp-h3 { font-size: 14.5px; margin: 6px 0 0; }
.imp-steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.imp-tips { margin: 0; padding-left: 20px; display: grid; gap: 5px; color: var(--ink-2); font-size: 14px; }
.imp-files td, .imp-files th { vertical-align: top; }
.imp-files .imp-file { display: block; font-size: 12px; }
.imp-done { display: grid; gap: 10px; margin-top: 12px; padding: 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--up) 35%, var(--line)); background: color-mix(in srgb, var(--up) 8%, var(--surface)); }
.imp-done p { margin: 0; }
.pf-import-cta-in { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.pf-import-cta-in h2 { margin: 8px 0 4px; font-size: 18px; }
.pf-import-cta-in p { margin: 0; max-width: 62ch; }

/* optimalizace daní */
.pf-plan { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }          /* minmax: široké tabulky dávek se posouvají uvnitř, nerozšíří stránku na telefonu */
.pf-plan p { margin: 0; }
.pf-plan-lead { font-size: 14px; max-width: 110ch; }

/* stav obnovy cen na pozadí (L1) */
.pf-prices { flex-basis: 100%; margin: 0; font-size: 12.5px; min-height: 1em; order: 99; }

.pf-tabs { justify-self: start; }          /* vzhled a posun do strany je v ui.css (blok M5) */
/* pochlubit se nákupem v komunitě (migrace 102): odkaz u nákupu v transakcích */
.pf-txn-acts { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.pf-brag { padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--brand); font-size: 12px; font-weight: 700; text-decoration: none; }
.pf-brag:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }

/* ---------- vizualizace nahoře na Přehledu portfolia (assets/js/portfolio_viz.js) ---------- */
/* řady karet: karty v řadě končí stejně, obsah uprostřed, žádné díry (22. 10. 2026) */
.pv-row { display: grid; gap: 16px; align-items: stretch; }
.pv-row-1 { grid-template-columns: minmax(0, 1fr); }
.pv-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pv-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pv-row-heat { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.pv-row > .card, .pv-stack > .card { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.pv-row > .card > .card-b, .pv-stack > .card > .card-b { flex: 1; display: flex; flex-direction: column; }
.pv-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pv-stack > .card { flex: 1; }
.pv-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.pv-prazdno { align-items: center; text-align: center; padding: 18px 10px; }
.pv-prazdno p { max-width: 260px; margin: 0; }
.pv-pill { font-size: 11.5px; font-weight: 700; color: var(--ink-3); background: var(--surface-2); padding: 3px 9px; border-radius: 99px; white-space: nowrap; cursor: help; }
.pv-heat-card .card-b { min-height: 300px; }
.pv-heat-card .pv-heat { flex: 1; }
.pf-chart-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-info { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-3); font-size: 12px; font-weight: 800; font-style: italic; cursor: help; }
.pf-info:hover, .pf-info:focus-visible { color: var(--brand); border-color: var(--brand); outline: none; }
@media (max-width: 1100px) { .pv-row-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pv-row-3 > :last-child { grid-column: 1 / -1; } .pv-row-heat { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .pv-row-2, .pv-row-3 { grid-template-columns: minmax(0, 1fr); } .pv-row-3 > :last-child { grid-column: auto; } }
.pv-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.pv-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.pv-b-up { background: color-mix(in srgb, var(--up) 14%, var(--surface)); color: var(--up); }
.pv-b-down { background: color-mix(in srgb, var(--down) 14%, var(--surface)); color: var(--down); }
.pv-b-mid { background: color-mix(in srgb, var(--warn) 16%, var(--surface)); color: var(--warn); }

/* radar */
.pv-radar { width: 100%; max-width: 340px; height: auto; display: block; margin: 0 auto; }
.pv-radar-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.pv-radar-area { fill: color-mix(in srgb, var(--brand) 18%, transparent); stroke: var(--brand); stroke-width: 2; }
.pv-radar-dot { fill: var(--brand); }
.pv-radar-l { font-size: 11.5px; font-weight: 600; fill: var(--ink-2); }
.pv-radar-g { fill: var(--surface); stroke-width: 2; }
.pv-radar-gt { font-size: 10px; font-weight: 800; }
.pv-g-a .pv-radar-g, .pv-g-b .pv-radar-g { stroke: var(--up); } .pv-g-a .pv-radar-gt, .pv-g-b .pv-radar-gt { fill: var(--up); }
.pv-g-c .pv-radar-g { stroke: var(--warn); } .pv-g-c .pv-radar-gt { fill: var(--warn); }
.pv-g-d .pv-radar-g, .pv-g-e .pv-radar-g { stroke: var(--down); } .pv-g-d .pv-radar-gt, .pv-g-e .pv-radar-gt { fill: var(--down); }
.pv-g-x .pv-radar-g { stroke: var(--line); } .pv-g-x .pv-radar-gt { fill: var(--ink-3); }

/* prstenec pozic */
.pv-donut-box { position: relative; width: 100%; max-width: 320px; aspect-ratio: 1; margin: 0 auto; }
.pv-donut-box > div:first-child, .pv-donut { position: absolute; inset: 0; width: 100%; height: 100%; }
.pv-donut-logo { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; text-decoration: none; z-index: 1; transition: transform .15s; }
.pv-donut-logo .co-logo { border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.pv-donut-tk { font-size: 10px; font-weight: 800; color: var(--ink-2); background: var(--surface); padding: 0 4px; border-radius: 6px; line-height: 1.4; }
.pv-donut-logo.on { transform: translate(-50%, -50%) scale(1.12); }
.pv-donut-logo.on .pv-donut-tk { color: var(--brand); }
.pv-donut circle { cursor: pointer; transition: stroke-width .15s, opacity .15s; }
.pv-donut-box.is-hover .pv-donut circle:not(.on) { opacity: .35; }
.pv-donut circle.on { stroke-width: 32; }
.pv-donut-mid { position: absolute; inset: 22%; display: grid; place-content: center; gap: 2px; text-align: center; pointer-events: none; }
.pv-donut-mid small { font-size: 11.5px; font-weight: 700; color: var(--ink-2); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-donut-mid small:empty { display: none; }
.pv-donut-mid b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pv-donut-mid span { font-size: 12px; color: var(--ink-3); }
.pv-donut-mid span.ns-up { color: var(--up); } .pv-donut-mid span.ns-down { color: var(--down); }
/* férová cena: ukazatel nahoře, čísla pod ním */
.pv-fer { gap: 14px; align-items: center; }
.pv-fer-g { display: grid; justify-items: center; gap: 6px; width: 100%; }
.pv-fer-g .pv-gauge { max-width: 240px; }
.pv-fer-n { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; text-align: center; font-variant-numeric: tabular-nums; }
.pv-fer-n small { display: block; font-size: 11.5px; color: var(--ink-3); }
.pv-fer-n b { font-size: 14.5px; font-weight: 800; }

/* ukazatele */
.pv-gauge-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; align-items: center; }
.pv-gauge-box-1 { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.pv-gauge { width: 100%; max-width: 220px; height: auto; display: block; }
.pv-gauge-needle { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.pv-gauge-hub { fill: var(--ink); }
.pv-gauge-num { display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.pv-gauge-num small { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.pv-gauge-num b { font-size: 17px; font-weight: 800; }
.pv-gauge-num .pv-badge { justify-self: start; margin-top: 6px; }
.pv-gauge-wrap { position: relative; width: 100%; max-width: 220px; }
.pv-gauge-score { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; }
.pv-gauge-score b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.pv-gauge-score span { display: block; font-size: 12.5px; color: var(--ink-3); }

/* teplotní mapa */
.pv-heat { position: relative; width: 100%; min-height: 260px; border-radius: var(--r-md); overflow: hidden; }
.pv-heat-t { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 8px; color: var(--ink); text-decoration: none; overflow: hidden; text-align: center; padding: 4px; }
.pv-heat-t:hover { outline: 2px solid var(--brand); outline-offset: -2px; z-index: 1; }
.pv-heat-t.is-dark { color: #fff; }
.pv-heat-t b { font-size: 12.5px; font-weight: 800; line-height: 1.1; }
.pv-heat-w { position: absolute; top: 4px; left: 5px; font-size: 10.5px; font-weight: 700; opacity: .8; }
.pv-heat-p { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pv-heat-t .co-logo { box-shadow: 0 0 0 2px color-mix(in srgb, var(--surface) 70%, transparent); }

/* sektory a odvětví */
.pv-bar { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr) 4.2em; gap: 10px; align-items: center; padding: 6px 0; font-size: 13.5px; }
.pv-bar-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.pv-bar i { display: block; height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pv-bar u { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.pv-bar b { text-align: right; font-variant-numeric: tabular-nums; }

/* země */
.pv-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; align-items: end; min-height: 190px; }
.pv-col { display: grid; justify-items: center; gap: 6px; min-width: 0; }
.pv-col-v { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pv-col i { display: flex; align-items: flex-end; width: 26px; height: 110px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.pv-col u { display: block; width: 100%; border-radius: 8px; background: var(--up); }
.pv-flag { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.pv-flag-x { display: grid; place-items: center; font-size: 12px; background: var(--surface-2); color: var(--ink-3); }
.pv-col small { font-size: 11.5px; color: var(--ink-3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* tabulka aktiv s pohledy */
.pv-views { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.pv-views button { border: 0; background: none; padding: 7px 12px; border-radius: 99px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; min-height: 36px; }
.pv-views button:hover { color: var(--ink); background: var(--surface-2); }
.pv-views button.on { color: var(--up); background: color-mix(in srgb, var(--up) 12%, var(--surface)); }
.pv-views button:focus-visible, .pv-sort button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pv-tbl td.num { vertical-align: top; }
.pv-sort button { border: 0; background: none; font: inherit; font-weight: inherit; color: inherit; cursor: pointer; padding: 0; white-space: nowrap; }
.pv-mini { display: block; height: 4px; width: 72px; margin: 5px 0 0 auto; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pv-mini u { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.pv-mini u.is-good { background: var(--up); } .pv-mini u.is-mid { background: var(--warn); } .pv-mini u.is-bad { background: var(--down); }
.pv-nic { font-size: 12px; }
.pv-typ { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--up) 12%, var(--surface)); color: var(--up); }
.pv-typ.is-etf { background: color-mix(in srgb, var(--warn) 14%, var(--surface)); color: var(--warn); }
.pv-more { margin-top: 10px; }

/* Všechna portfolia dohromady: karta Podle portfolií (22. 10. 2026) */
.pf-vse-pruh { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--surface-2); margin: 2px 0 12px; }
.pf-vse-pruh i { display: block; height: 100%; }
.pf-vse-list { display: grid; }
.pf-vse-row { display: grid; grid-template-columns: 10px minmax(0, 12em) minmax(0, 1fr) auto 3.2em; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-soft, var(--line)); color: var(--ink); text-decoration: none; }
.pf-vse-row:first-child { border-top: 0; }
.pf-vse-row:hover b { color: var(--link); }
.pf-vse-dot { width: 10px; height: 10px; border-radius: 3px; }
.pf-vse-n, .pf-vse-v { display: grid; min-width: 0; }
.pf-vse-n b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.pf-vse-n small, .pf-vse-v small { font-size: 12px; color: var(--ink-3); }
.pf-vse-v { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-vse-v small.up { color: var(--up); }
.pf-vse-v small.down { color: var(--down); }
.pf-vse-bar { display: block; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pf-vse-bar u { display: block; height: 100%; border-radius: 99px; }
.pf-vse-p { text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pf-vse-odkazy { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
@media (max-width: 640px) { .pf-vse-row { grid-template-columns: 10px minmax(0, 1fr) auto; } .pf-vse-bar, .pf-vse-p { display: none; } }

/* Rebalancování (záložka portfolia, lib/rebalance.php, 22. 10. 2026) */
.rb-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 8px; }
.rb-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rb .rb-legend i.rb-l-ted { width: 12px; height: 8px; border-radius: 3px; background: var(--brand); display: inline-block; }
.rb .rb-legend i.rb-l-cil { width: 3px; height: 12px; border-radius: 2px; background: var(--ink); display: inline-block; }
.rb-viz { display: grid; gap: 6px; }
.rb-row { display: grid; grid-template-columns: 8em minmax(0, 1fr) 6.5em; gap: 12px; align-items: center; }
.rb-sym { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.rb-sym b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-track { position: relative; height: 14px; border-radius: 99px; background: var(--surface-2); }
.rb-ted { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.rb-cil { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); }
.rb-num { display: grid; text-align: right; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.rb-num small { font-size: 11.5px; font-weight: 700; }
.rb-nad { color: var(--warn); }
.rb-pod { color: var(--brand); }
.rb-in { width: 5.5em; height: 34px; text-align: right; }
.rb-nove { width: 9em; height: 34px; }
.rb-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.rb-tools > span b.ok { color: var(--up); }
.rb-tools > span b.down { color: var(--down); }
.rb-pozn { font-size: 12.5px; margin-top: 10px; }
@media (max-width: 560px) { .rb-row { grid-template-columns: 5.5em minmax(0, 1fr) 5.5em; } .rb-sym .co-logo { display: none; } }

/* brokeri.css */
/* Loga brokerů (lib/brokeri.php): oficiální logo ze souboru, nebo značka v barvě brokera se zkratkou a jménem vedle. */
.pt-blogo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); line-height: 1; vertical-align: middle; }
.pt-blogo b { font-weight: 750; letter-spacing: -0.01em; white-space: nowrap; }
.pt-blogo .pt-bz { flex: none; display: block; border-radius: 25%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent); }          /* tmavá značka (Revolut) nezmizí na tmavém pozadí */
.pt-blogo-sm .pt-bz { width: 20px; height: 20px; }
.pt-blogo-sm b { font-size: 12.5px; }
.pt-blogo-md .pt-bz { width: 28px; height: 28px; }
.pt-blogo-md b { font-size: 15px; }
.pt-blogo-lg .pt-bz { width: 40px; height: 40px; }
.pt-blogo-lg b { font-size: 19px; }
.pt-blogo-file { background: #fff; padding: 4px 9px; border-radius: 8px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent); color: #0b1b4b; }          /* oficiální loga mají pevné barvy: bílý štítek je čitelný i v tmavém režimu */
.pt-blogo-file svg { display: block; width: auto; }
.pt-blogo-file.pt-blogo-sm svg { height: 13px; }
.pt-blogo-file.pt-blogo-md svg { height: 20px; }
.pt-blogo-file.pt-blogo-lg svg { height: 26px; }

/* výběr brokera v průvodci importem */
.imp-bfind { max-width: 360px; margin-bottom: 4px; }
.imp-bgroups { display: grid; gap: 6px; }
.imp-bgroup .imp-h3 { margin: 12px 0 8px; }
.imp-broker.tpl .imp-b-tag::before { content: "šablona CSV · "; }
.imp-broker .imp-b-mark { min-height: 28px; }

/* veřejná stránka /brokeri a pás log na úvodu */
.br-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.br-card { display: grid; gap: 8px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; }
.br-card:hover { border-color: var(--brand); }
.br-card p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.br-stav { justify-self: start; font-size: 12px; }
.br-strip { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.br-detail ol { padding-left: 1.2em; }
.br-detail li { margin: 4px 0; }
@media (max-width: 640px) {
  .br-grid { grid-template-columns: 1fr; }
  .pt-blogo-lg b { font-size: 17px; }
}

/* pás log na úvodní stránce (sekce Jak to funguje) */
.lp-brokers { margin-top: 32px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.lp-brokers-h { margin: 0; font-weight: 700; color: var(--ink-2); }
.lp-brokers .br-strip { justify-content: center; }

/* home.css */
/* Přehled (úvodní stránka): řídicí panel z karet (lib/home_cards.php, assets/js/home.js). Barvy jen z tokenů motivu, čísla v sloupcích tabulková. */

/* ---------- hlavička a mřížka ---------- */
.home-h { margin-bottom: 14px; }
.home-date { color: var(--ink-2); margin-top: 4px; }
/* bannerová hlavička (19. 10. 2026, jako přehled /acc ve Wopru): přechod značky, záře a kruh v rohu, pozdrav, rychlé vstupy jako skleněné štítky */
.hc-banner { position: relative; isolation: isolate; overflow: hidden; align-items: center; margin: 18px 0 16px; padding: 26px 28px 22px; border-radius: 24px; color: var(--stage-ink); 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(80% 90% at 0% 100%, color-mix(in srgb, var(--accent) 28%, transparent) 0%, transparent 60%), var(--stage); box-shadow: var(--shadow-banner); }
.hc-banner::after { content: ""; position: absolute; z-index: -1; top: -90px; 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%); box-shadow: -150px 150px 0 -60px rgba(255, 255, 255, .06); pointer-events: none; }
.hc-banner .home-date { margin: 0 0 4px; color: rgba(255, 255, 255, .78); font-size: 13.5px; font-weight: 600; }
.hc-banner h1 { color: var(--stage-ink); font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.03em; }
.hc-banner-tx { min-width: 0; }
.hc-banner-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hc-banner-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .11); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 13.5px; font-weight: 700; text-decoration: none; transition: background-color .15s, border-color .15s; }
.hc-banner-nav a:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .45); }
.hc-banner-nav a .ic { color: var(--stage-accent); }
.hc-banner-act .btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: #fff; box-shadow: none; }
.hc-banner-act .btn:hover, .hc-banner-act .btn[aria-expanded="true"] { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .6); color: #fff; }
@media (max-width: 720px) { .hc-banner { padding: 20px 18px 18px; border-radius: 20px; } .hc-banner-nav { margin-top: 12px; } .hc-banner-nav a { font-size: 13px; padding: 6px 11px 6px 9px; } }
.home-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; grid-auto-flow: dense; container-type: inline-size; container-name: home; align-items: stretch; }          /* stejné mezery 12 px a husté skládání: menší karta zaplní díru po vyšší (19. 10.) */
.hc { grid-column: span 6; display: flex; flex-direction: column; min-width: 0; container-type: inline-size; container-name: hc; }
.hc-s3 { grid-column: span 3; }
.hc-s4 { grid-column: span 4; }
.hc-s6 { grid-column: span 6; }
.hc-s8 { grid-column: span 8; }
.hc-s12 { grid-column: span 12; }
@container home (max-width: 940px) {
  .hc-s3, .hc-s4 { grid-column: span 6; }
  .hc-s8 { grid-column: 1 / -1; }
}
@container home (max-width: 640px) {
  .hc { grid-column: 1 / -1; }
}
.home-grid:not(.is-editing) .hc.is-auto-hidden { display: none; }

.hc-h { flex-wrap: nowrap; padding: 14px 18px 0; min-height: 42px; }          /* odsazení jako .card-h (blok M5) */
.hc-h h2 { display: flex; align-items: center; gap: 9px; min-width: 0; }
.hc-ic { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--sel); color: var(--brand); flex: none; }
html[data-color="dark"] .hc-ic { color: var(--ink); }
.hc-more { margin-left: auto; font-size: 13px; white-space: nowrap; }
.hc-b { flex: 1; padding: 12px 18px 16px; }          /* jako .card-b */
.hc-b[aria-busy="true"] { min-height: 150px; }

/* kostra při načítání */
.hc-sk { display: grid; gap: 10px; }
.hc-sk i { display: block; height: 40px; border-radius: 10px; 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; }
.hc-sk i:nth-child(odd) { width: 100%; }
.hc-sk i:nth-child(even) { width: 88%; }
.hc-err { color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 14px 0; }

/* ---------- úpravy přehledu ---------- */
.hc-edit { padding: 18px 20px 16px; margin-bottom: 14px; border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.hc-edit[hidden] { display: none; }
.hc-edit-h { display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; align-items: flex-start; }
.hc-edit-h h2 { font-size: 17px; font-weight: 800; }
.hc-edit-h p { color: var(--ink-2); margin-top: 4px; max-width: 70ch; font-size: 14px; }
.hc-edit-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hc-save { font-size: 13px; min-width: 120px; text-align: right; }
.hc-pick { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 8px; }
.hc-pick-i { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; height: 100%; transition: border-color .15s, background-color .15s; }
.hc-pick-i:hover { border-color: var(--brand); }
.hc-pick-i:has(input:checked) { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.hc-pick-i .switch { flex: none; margin-top: 1px; }
.hc-pick-t { display: grid; gap: 2px; min-width: 0; }
.hc-pick-t b { font-size: 14px; }
.hc-pick-t small { color: var(--ink-3); font-size: 12.5px; line-height: 1.4; }
.hc-edit-note { margin-top: 14px; font-size: 13px; }

.hc-tools { display: none; margin-left: auto; gap: 4px; flex: none; }
.home-grid.is-editing .hc-tools { display: flex; }
.home-grid.is-editing .hc-more { display: none; }
.hc-tool { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: inline-grid; place-items: center; padding: 0; transition: color .15s, background-color .15s, border-color .15s; }
.hc-tool:hover { color: var(--ink); background: var(--surface-2); border-color: var(--brand); }
.hc-tool:disabled { opacity: .35; cursor: default; }
.hc-grip { cursor: grab; }
.hc-grip:active { cursor: grabbing; }
.home-grid.is-editing .hc { border-style: dashed; border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.home-grid.is-editing .hc-b { opacity: .72; pointer-events: none; user-select: none; }
.hc.is-dragging { opacity: .4; }
.hc-none { margin-top: 14px; }
.hc-none[hidden] { display: none; }
@media (pointer: coarse) { .hc-grip { display: none; } .hc-tool { width: 40px; height: 40px; } }

/* ---------- společné prvky karet ---------- */
.hc .co-logo { width: 30px; height: 30px; border-radius: 8px; font-size: 12px; }
.hc .co-logo img { padding: 3px; }
.hc .chg { min-width: 72px; justify-content: flex-end; text-align: right; white-space: nowrap; }
.hc .chg.up::before, .hc .dl.up::before { content: "▲"; content: "▲" / ""; font-size: .62em; margin-right: .4em; vertical-align: .12em; }
.hc .chg.down::before, .hc .dl.down::before { content: "▼"; content: "▼" / ""; font-size: .62em; margin-right: .4em; vertical-align: .12em; }
.dl.up { color: var(--up); }
.dl.down { color: var(--down); }
.hc-sub { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; margin: 2px 0 6px; }
.hc-hint { font-size: 12.5px; margin-top: 12px; }
.hc-hint a { color: var(--link); }
.hc-none-txt, .hc .hc-none { font-size: 13.5px; padding: 6px 8px; }
.hc-empty { display: grid; gap: 12px; justify-items: start; padding: 10px 0 4px; color: var(--ink-2); font-size: 14px; }
.hc-tag { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); margin-left: 6px; vertical-align: 1px; letter-spacing: .01em; }
.hc-px { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14.5px; white-space: nowrap; }
.hc-unit { font-weight: 600; color: var(--ink-3); font-size: 12.5px; }
.hc-list { padding: 0; }
.hc-row { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; padding: 6px 6px; }
.hc-row.has-px { grid-template-columns: 30px minmax(0, 1fr) auto auto; }
.hc-row .mv-id b { font-size: 14px; }

/* záložky uvnitř karty */
.hc-panel[hidden] { display: none; }
.hc-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 22px; align-items: start; }
@container hc (max-width: 520px) { .hc-two { grid-template-columns: minmax(0, 1fr); } }

/* kurzy, indexy, sledované: řádek s názvem, trendem a cenou */
.hc-quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hc-q { display: grid; grid-template-columns: minmax(0, 1fr) 64px auto; gap: 12px; align-items: center; padding: 8px 6px; border-radius: 10px; text-decoration: none; }
.hc-q:hover { background: var(--surface-2); }
.hc-q-n { display: grid; min-width: 0; line-height: 1.3; }
.hc-q-n b { font-size: 14.5px; }
.hc-q-n small { color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-q-co { display: grid; min-width: 0; grid-auto-flow: column; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: center; }
.hc-q-co > span:last-child { display: grid; min-width: 0; line-height: 1.3; }
.hc-q-co b { font-size: 14.5px; }
.hc-q-co small { color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-q-v { display: grid; justify-items: end; gap: 3px; }
.hc-q-v .chg { padding: 1px 7px; font-size: 12.5px; }
.sp { display: block; width: 64px; height: 24px; color: var(--ink-3); }
.sp-end { fill: var(--brand); }
.sp-none { display: block; width: 64px; height: 24px; }
.hc-flag { position: relative; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 8.5px; font-weight: 800; color: var(--ink-3); }
.hc-flag img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hc-clocks { margin: 0 0 10px; flex-wrap: wrap; gap: 6px; }
.hc-clocks .clock { background: var(--surface-2); }
.is-vix .mk-chg.up, .is-vix .mk-chg.down { color: var(--ink-2); background: var(--surface-2); }
@container hc (max-width: 270px) { .hc-q { grid-template-columns: minmax(0, 1fr) auto; } .hc-q .sp, .hc-q .sp-none { display: none; } }

/* české akcie: tabulka */
.hc-tbl-wrap { overflow-x: auto; margin: 0 -6px; }
.hc-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.hc-tbl th { text-align: left; font-size: 12px; font-weight: 700; color: var(--ink-3); padding: 4px 10px 7px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.hc-tbl th.num, .hc-tbl td.num { text-align: right; }
.hc-tbl td { padding: 7px 10px; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hc-tbl tbody th { font-weight: 400; color: var(--ink); font-size: 14px; padding: 7px 10px; border-bottom: 1px solid var(--line-soft); }
.hc-tbl tbody tr:last-child td, .hc-tbl tbody tr:last-child th { border-bottom: 0; }
.hc-tbl tbody tr:hover > * { background: var(--surface-2); }
.hc-co { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.hc-co-n { display: grid; min-width: 0; line-height: 1.3; }
.hc-co-n b { font-size: 14px; }
.hc-co-n small { color: var(--ink-3); font-size: 12px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@container hc (max-width: 560px) { .hc-hide-s { display: none; } .hc-co-n small { max-width: 130px; } }

/* dividendy a výsledky: seznam událostí */
.hc-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hc-ev { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 6px; border-radius: 10px; text-decoration: none; }
.hc-ev:hover { background: var(--surface-2); }
.hc-ev-d { font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--ink); }
.hc-ev-n { display: grid; min-width: 0; line-height: 1.3; }
.hc-ev-n b { font-size: 14px; }
.hc-ev-n small, .hc-ev-a small { color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-ev-a { display: grid; justify-items: end; gap: 1px; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hc-ev-a small { font-weight: 500; }
@container hc (max-width: 400px) { .hc-ev { grid-template-columns: 56px minmax(0, 1fr); } .hc-ev-a { grid-column: 2; justify-items: start; } }

/* sledované: počítadlo limitu, AI, komunita */
.hc-meter { display: grid; gap: 6px; margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }
.hc-ai, .hc-score, .hc-comm, .hc-maps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 2px; }
.hc-ai a { display: grid; gap: 2px; padding: 8px 6px; border-radius: 10px; text-decoration: none; font-size: 13.5px; }
.hc-ai a:hover, .hc-comm a:hover, .hc-score a:hover, .hc-maps a:hover { background: var(--surface-2); }
.hc-ai a > span { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc-score a, .hc-comm a, .hc-maps a { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px; border-radius: 10px; text-decoration: none; }
.hc-comm a { grid-template-columns: minmax(0, 1fr) auto; }
.hc-maps a { grid-template-columns: 38px minmax(0, 1fr); }
.hc-score .score-badge { padding: 1px 9px; border-radius: 10px; border-width: 2px; }
.hc-score .score-badge b { font-size: 16px; }
.hc-cnt { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hc-vote { display: grid; gap: 4px; justify-items: end; min-width: 150px; }
.hc-vote small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.hc-vbar { display: flex; gap: 2px; width: 150px; height: 8px; }
.hc-vbar i { display: block; height: 100%; border-radius: 3px; min-width: 0; }
.hc-vbar i.buy { background: var(--up); }
.hc-vbar i.hold { background: var(--ink-3); }
.hc-vbar i.sell { background: var(--down); }

/* ---------- Moje portfolio ---------- */
.hc-pf { display: grid; gap: 4px; }
.hc-pf-pick { justify-self: start; margin-bottom: 10px; }
.hc-pf-pick .select { height: 34px; font-size: 13.5px; width: auto; min-width: 200px; }
.hc-kpis { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 12px; }
.hc-kpi .s.dl { font-weight: 700; }
.hc-kpi-main { background: color-mix(in srgb, var(--brand) 6%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 22%, var(--line)); }
.hc-kpi-main .v { font-size: clamp(28px, 5.4cqi, 44px); line-height: 1.05; letter-spacing: -.02em; }
@container hc (max-width: 760px) { .hc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hc-kpi-main { grid-column: 1 / -1; } }
.hc-pf-main { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 22px; margin-top: 18px; }
@container hc (max-width: 820px) { .hc-pf-main { grid-template-columns: minmax(0, 1fr); } }
.hc-pf-chart { min-width: 0; }
.hc-pf-ctl { display: flex; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; margin-bottom: 8px; }
.hc-pf-ctl .seg button:disabled { display: none; }
.hc-chart { width: 100%; height: 250px; }
.hc-chart-sum { font-size: 13px; margin-top: 4px; min-height: 20px; }
.hc-chart-sum b { color: var(--ink); }
.hc-tablebox { max-height: 250px; overflow: auto; border: 1px solid var(--line-soft); border-radius: 10px; }
.hc-tablebox table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.hc-tablebox th, .hc-tablebox td { padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.hc-tablebox th:first-child, .hc-tablebox td:first-child { text-align: left; }
.hc-tablebox th { position: sticky; top: 0; background: var(--surface); color: var(--ink-3); font-size: 12px; }
.hc-pf-top h3 { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; margin: 2px 0 8px; }
.hc-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hc-top-a { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 10px; text-decoration: none; }
.hc-top-a:hover { background: var(--surface-2); }
.hc-top-n { display: grid; line-height: 1.25; }
.hc-top-n b { font-size: 14px; }
.hc-top-n small { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.hc-top .chg { min-width: 66px; font-size: 12.5px; }
.hc-note { margin-top: 12px; font-size: 13.5px; color: var(--warn); padding: 10px 14px; border-radius: var(--r-md); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); }
.hc-note a { color: var(--link); font-weight: 700; }

/* výzva (bez portfolia, zástupná karta) */
.hc-cta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; padding: 4px 0; }
.hc-cta-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--sel); color: var(--brand); }
html[data-color="dark"] .hc-cta-ic { color: var(--ink); }
.hc-cta h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 6px; }
.hc-cta p { color: var(--ink-2); max-width: 66ch; }
.hc-cta-sm .hc-cta-ic { width: 44px; height: 44px; border-radius: 12px; }
.hc-cta-sm h3 { font-size: 16px; }
.hc-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 16px; padding: 0; color: var(--ink-2); font-size: 14px; }
.hc-steps li { display: inline-flex; align-items: center; gap: 9px; }
.hc-steps li span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 800; }
@container hc (max-width: 520px) { .hc-cta { grid-template-columns: minmax(0, 1fr); } }

/* Moje oblasti: vyplněné části s číslem, nevyplněné jako ukázka (home_cards_oblasti.php) */
.hc-obl-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.hc-obl-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.hc-obl-bar span { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.hc-obl-stav { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.hc-obl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.hc-obl-t { display: grid; gap: 8px; align-content: start; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.hc-obl-t:hover { border-color: var(--brand); transform: translateY(-1px); }
.hc-obl-t:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.hc-obl-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hc-obl-ic { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--sel); color: var(--brand); }
.hc-obl-k { font-weight: 800; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-obl-badge { margin-left: auto; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--ink-3); }
.hc-obl-viz { width: 100%; height: 48px; color: var(--brand); }
.hc-obl-loga { display: flex; gap: 6px; min-height: 48px; align-items: center; }
.hc-obl-n { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.hc-obl-s { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.hc-obl-cta { font-size: 13px; font-weight: 700; color: var(--link); }
.hc-obl-t.is-sample { border-style: dashed; background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
.hc-obl-t.is-sample .hc-obl-viz, .hc-obl-t.is-sample .hc-obl-loga { opacity: .5; filter: grayscale(.4); }
html[data-color="dark"] .hc-obl-ic { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .hc-obl-t { transition: none; } .hc-obl-t:hover { transform: none; } }

/* ---------- úzké displeje a pohyb ---------- */
@media (max-width: 560px) {
  .home-h { align-items: center; }
  .hc-h { padding: 14px 14px 0; }
  .hc-b { padding: 10px 14px 16px; }
  .hc-edit { padding: 16px 14px; }
  .hc-save { text-align: left; min-width: 0; flex-basis: 100%; }
  .hc-chart { height: 220px; }
}
@media (prefers-reduced-motion: reduce) { .hc-sk i { animation: none; } }

/* karty Celý majetek a Daně: časový test (lib/home_cards_majetek.php, home_cards_tax.php) */
.mj-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.mj-k { color: var(--ink-3); font-size: 13px; }
.mj-total { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mj-day { font-size: 13.5px; font-weight: 700; }
.mj-bar { display: flex; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 12px 0; }
.mj-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--c-teal)); border-radius: inherit; }
.mj-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mj-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 4px; border-radius: 10px; }
.mj-list li.is-soon { opacity: .78; }
.mj-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--sel); color: var(--brand); }
.mj-n { display: grid; min-width: 0; line-height: 1.3; }
.mj-n b { font-size: 14px; }
.mj-n small { color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mj-v { display: grid; justify-items: end; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.mj-v small { color: var(--ink-3); font-weight: 500; font-size: 12px; }
.mj-note { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-3); }
.mj-note a { color: var(--link); font-weight: 700; }
.tx-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.tx-h { font-size: 13.5px; margin: 6px 0; color: var(--ink-2); }
.tx-none, .tx-more { margin: 6px 0; font-size: 13.5px; color: var(--ink-2); }
.tx-link { margin: 10px 0 0; }
@media (max-width: 560px) { .tx-kpis { grid-template-columns: 1fr; } }

/* karta Co se změnilo (lib/home_cards_zmena.php) */
.zmc-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.zmc-k { color: var(--ink-3); font-size: 13px; }
.zmc-total { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.zmc-total.up, .zmc-list b.up { color: var(--up); }
.zmc-total.down, .zmc-list b.down { color: var(--down); }
.zmc-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.zmc-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.zmc-list li:last-child { border-bottom: 0; }
.zmc-list b { font-variant-numeric: tabular-nums; flex: none; white-space: nowrap; }
.zmc-list li > span { min-width: 0; }
.zmc-veta { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }

.hc-tabs { margin-bottom: 12px; }          /* vzhled záložek je v ui.css (blok M5) */
.hc-pf-ctl { align-items: center; }          /* přepínač období nenatahuje tlačítko Tabulka */

/* majetek.css */
/* Čisté jmění (views/majetek.php, assets/js/majetek.js). Barvy jen z tokenů motivu, světlý i tmavý režim. */

.mj-page .page-h { margin-bottom: 14px; }
.mj-guest { max-width: 760px; margin: 18px 0; }
.mj-guest h2 { font-size: 22px; letter-spacing: -.01em; margin: 0 0 8px; }
.mj-guest .muted { max-width: 64ch; margin: 0 0 14px; line-height: 1.55; }
.mj-guest-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; color: var(--ink-2); font-size: 14.5px; }
.mj-guest-list li { display: flex; gap: 10px; align-items: flex-start; }
.mj-guest-list .ic { color: var(--up); margin-top: 2px; flex: none; }
.mj-guest .row { display: flex; flex-wrap: wrap; gap: 10px; }

.mj-shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }

/* velké číslo */
.mj-hero { padding: 22px 24px; }
.mj-hero-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.mj-big { font-size: clamp(30px, 6vw, 44px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.mj-big.neg { color: var(--down); }
.mj-chg { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mj-veta { margin: 10px 0 0; max-width: 78ch; color: var(--ink-2); line-height: 1.55; font-size: 15px; }
.mj-hero .statrow { margin-top: 16px; }

/* neúplné */
.mj-warn { margin-top: 12px; 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)); font-size: 14px; }
.mj-warn b { display: block; margin-bottom: 4px; }
.mj-warn ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 4px; color: var(--ink-2); }
.mj-warn a { color: var(--link); font-weight: 700; }

/* graf */
.mj-chart-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.mj-chart { height: 300px; width: 100%; }
.mj-chart-note { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.mj-chart-note a { color: var(--link); font-weight: 700; }
.mj-pts { margin-top: 10px; max-height: 320px; overflow: auto; }

/* rozpad */
.mj-classes { display: grid; gap: 10px; }
.mj-class { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; align-items: center; gap: 6px 14px; padding: 8px 4px; border-bottom: 1px solid var(--line-soft); }
.mj-class:last-child { border-bottom: 0; }
.mj-class b { font-size: 15px; }
.mj-class small { display: block; color: var(--ink-3); font-size: 12.5px; font-weight: 500; }
.mj-class .bar { display: block; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.mj-class .bar i { display: block; height: 100%; border-radius: inherit; background: var(--c-blue); }
.mj-class .v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mj-class .v small { font-weight: 500; }
.mj-class.is-debt .bar i { background: var(--down); }
.mj-class.is-debt .v { color: var(--down); }
.mj-soonnote { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.mj-soonnote a { color: var(--link); font-weight: 700; }

/* položky */
.mj-items .num { text-align: right; font-variant-numeric: tabular-nums; }
.mj-items td a { color: var(--link); font-weight: 700; text-decoration: none; }
.mj-items td a:hover { text-decoration: underline; }
.mj-items .down { color: var(--down); }

@media (max-width: 720px) {
  .mj-hero { padding: 18px 16px; }
  .mj-class { grid-template-columns: minmax(0, 1fr) auto; }
  .mj-class .bar { grid-column: 1 / -1; grid-row: 2; }
  .mj-chart { height: 240px; }
}

/* správa položek (W1-07) */
.mj-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mj-limbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.mj-lim { color: var(--ink-2); font-size: 14px; }
.mj-limbar .btn { margin-left: auto; }
.mj-acts { white-space: nowrap; text-align: right; }
.mj-acts .btn { margin-left: 4px; }
.mj-hist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.mj-hist li { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ink-2); }
.mj-hist b { color: var(--ink); font-variant-numeric: tabular-nums; }
.mj-hist em { font-style: normal; color: var(--ink-3); }
form > .mj-hist { margin: 14px 0 16px; }
.mj-det { margin-top: 4px; font-size: 13px; }
.mj-det summary { cursor: pointer; color: var(--link); font-weight: 600; }
.mj-arch > summary { cursor: pointer; padding: 14px 18px; font-weight: 700; }
.mj-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 16px; text-align: left; }
.mj-kind { display: grid; gap: 4px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: inherit; font: inherit; cursor: pointer; text-align: left; transition: border-color .15s, transform .15s; }
.mj-kind:hover { border-color: var(--brand); transform: translateY(-2px); }
.mj-kind small { color: var(--ink-3); font-size: 12.5px; line-height: 1.4; }
dialog.modal input[aria-invalid="true"], dialog.modal select[aria-invalid="true"] { border-color: var(--down); }
@media (max-width: 720px) {
  .mj-limbar .btn { margin-left: 0; }
  /* tabulka položek se na úzkém displeji mění na karty, aby tlačítka Ocenit, Upravit a Archivovat nezmizela mimo obrazovku */
  .mj-manage, .mj-manage tbody, .mj-manage tr, .mj-manage td { display: block; }
  .mj-manage thead { display: none; }
  .mj-manage tr { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: var(--surface); }
  .mj-manage td { padding: 3px 0; border: 0; text-align: left; }
  .mj-manage td[data-label] { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .mj-manage td[data-label]::before { content: attr(data-label); color: var(--ink-3); font-size: 13px; flex: none; }
  .mj-manage td.num, .mj-manage .mj-v, .mj-manage .ns-cv { text-align: right; }
  .mj-manage .mj-name { font-size: 16px; padding-bottom: 6px; }
  .mj-manage .mj-acts { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; text-align: left; white-space: normal; }
  .mj-manage .mj-acts .btn { margin-left: 0; }
}

/* Co se změnilo (W1-08) */
.mj-herolinks { margin: 14px 0 0; }
.zm-up { color: var(--up); }
.zm-down { color: var(--down); }
.zm-bar { margin-bottom: 14px; }
.zm-bar select { min-height: 36px; }
.zm-limit { flex-basis: 100%; font-size: 13px; }
.zm-range { margin: 6px 0 0; color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.zm-chart { width: 100%; }
.zm-table td { vertical-align: top; }
.zm-table .zm-grp td { padding-top: 14px; border-top: 1px solid var(--line); }
.zm-table .zm-name { padding-left: 18px; }
.zm-table .zm-total td { border-top: 2px solid var(--line); padding-top: 12px; font-size: 15.5px; }

/* Onboarding /zacit (W1-09) */
.zc-wrap { max-width: 720px; margin: 0 auto; }
.zc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.zc-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; flex-wrap: wrap; }
.zc-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--bg-2); color: var(--ink-3); font-size: 13px; font-weight: 600; }
.zc-steps li span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); font-size: 12px; }
.zc-steps li.on { background: var(--sel); color: var(--ink); }
.zc-steps li.on span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.zc-steps li.done { color: var(--ink-2); }
.zc-steps li.done span { background: var(--up); border-color: var(--up); color: #fff; }
.zc-skip { border: 0; background: transparent; color: var(--link); font-weight: 700; font-size: 13.5px; cursor: pointer; padding: 6px 2px; }
.zc-skip:hover { text-decoration: underline; }
.zc-card h2 { margin: 0 0 6px; font-size: 20px; }
.zc-fields { display: grid; gap: 14px; margin: 16px 0 6px; }
.zc-field { margin: 0; }
.zc-money { display: flex; align-items: center; gap: 8px; }
.zc-money input { flex: 1; min-width: 0; text-align: right; font-variant-numeric: tabular-nums; font-size: 17px; min-height: 44px; }
.zc-money span { color: var(--ink-3); font-weight: 600; }
.zc-field .hint { display: block; margin-top: 3px; color: var(--ink-3); font-size: 12.5px; }
.zc-field input[aria-invalid="true"] { border-color: var(--down); }
.zc-sum { margin: 12px 0 4px; min-height: 24px; font-size: 15px; }
.zc-soon { font-size: 13px; margin: 8px 0 0; }
.zc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.zc-actions .btn { min-height: 44px; }
.zc-result { margin-top: 10px; }
.zc-how { margin: 12px 0 0; font-size: 13.5px; }
.zc-how summary { cursor: pointer; color: var(--link); font-weight: 600; }
.zc-facts { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.5; color: var(--ink-2); }
.zc-final { display: grid; gap: 14px; }
@media (max-width: 520px) { .zc-actions .btn { flex: 1 1 100%; } }

/* podíly ve firmách (blok H, podily.js) */
.pd-name { margin: 0 0 10px; font-size: 20px; letter-spacing: -.01em; }
.pd-name small { font-size: 13px; font-weight: 600; }
.pd-methods td:last-child, .pd-methods th:last-child { text-align: left; }
.pd-methods tr.muted td { color: var(--ink-3); }
.pd-methods tr.muted b { font-weight: 600; }
@media (min-width: 721px) { .pd-methods td:last-child .mj-v { display: inline; } }
.pd-methods td:last-child .mj-v { font-weight: 500; font-size: 13px; color: var(--ink-2); }
.pd-fins .pd-acts td { border-top: 0; padding-top: 4px; white-space: nowrap; }
.pd-fins .pd-acts .btn { padding: 4px 8px; font-size: 12px; }
.pd-fins td:first-child { white-space: nowrap; color: var(--ink-2); }

/* nemovitosti.css */
/* Nemovitosti, dluhy, smlouvy, dokumenty, kontakty, úkoly a poznámky (plán W1-10 až W1-14). Jen přes tokeny z app.css, světlý i tmavý režim. */
.ns-up { color: var(--up); }
.ns-down { color: var(--down); }
.ns-actions, .ns-tools, .ns-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.ns-toolbar { margin: 0 0 14px; justify-content: space-between; }
.ns-tools { margin-top: 0; }
.ns-actions .btn, .ns-tools .btn { min-height: 38px; }
.ns-sec { margin: 18px 0 6px; font-size: 14px; font-weight: 800; color: var(--ink-2); letter-spacing: .01em; }
/* formulář po krocích (20. 10. večer): číslovaná lišta kroků, hotové kroky zeleně, aktuální modře; na kterýkoli krok jde kliknout */
.ns-steps { display: flex; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; counter-reset: none; overflow-x: auto; }
.ns-steps li { flex: 1 1 0; min-width: 0; }
.ns-steps button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-align: left; white-space: nowrap; }
.ns-steps button b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); color: var(--ink-3); font-size: 12px; flex: none; }
.ns-steps button span { overflow: hidden; text-overflow: ellipsis; }
.ns-steps li.on button { border-color: var(--brand); color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.ns-steps li.on button b { background: var(--brand); color: var(--brand-ink); }
.ns-steps li.done button b { background: color-mix(in srgb, var(--up) 18%, transparent); color: var(--up); }
.ns-step[hidden] { display: none; }
@media (max-width: 560px) { .ns-steps button span { display: none; } .ns-steps li.on button span { display: inline; } }
.ns-check label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ns-check input { width: auto; }
.ns-empty { padding: 6px 0; color: var(--ink-2); }
.ns-empty p { margin: 0 0 10px; line-height: 1.55; }
.ns-feat { text-align: left; max-width: 560px; margin: 12px auto 16px; padding-left: 20px; display: grid; gap: 4px; color: var(--ink-2); font-size: 14.5px; }

/* karty nemovitostí */
.ns-props { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.ns-prop { display: grid; grid-template-rows: 130px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.ns-prop:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 10px 26px -18px rgba(11, 27, 75, .5); }
.ns-prop.arch { opacity: .75; }
.ns-cover { width: 100%; height: 130px; object-fit: cover; display: block; background: var(--bg-2); }
.ns-cover-ph { display: grid; place-items: center; font-weight: 800; font-size: 18px; color: var(--ink-3); background: linear-gradient(135deg, var(--bg-2), var(--sel)); }
.ns-prop-b { padding: 14px 16px 16px; display: grid; gap: 6px; }
.ns-prop-b b { font-size: 15.5px; }
.ns-prop-v { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ns-prop-v b { font-size: 21px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ns-kvrow { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ns-kvrow b { color: var(--ink); }
.ns-warnline { margin: 0; font-size: 12.5px; color: var(--warn); line-height: 1.4; }
.ns-ltv { display: flex; align-items: center; gap: 8px; }
.ns-ltv-bar { flex: 1; height: 7px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.ns-ltv-bar i { display: block; height: 100%; border-radius: inherit; background: var(--c-teal); }
.ns-ltv-bar i.amber { background: var(--c-amber); }
.ns-ltv-bar i.red { background: var(--down); }
.ns-ltv small { font-size: 12px; color: var(--ink-3); white-space: nowrap; }

/* záložky detailu */
.ns-cnt { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--sel); color: var(--brand); font-size: 11.5px; font-weight: 800; }
.ns-herolinks { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }

/* tabulky a grafy */
.ns-chart { width: 100%; height: 300px; }
.ns-chart-s { height: 260px; }
.ns-chart-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 14px 0; }
.ns-ended { opacity: .6; }
.ns-earn { display: grid; gap: 8px; }
.ns-earn-row { display: grid; grid-template-columns: minmax(130px, 1.2fr) minmax(80px, 2fr) auto; gap: 12px; align-items: center; font-size: 14px; }
.ns-earn-row b { font-variant-numeric: tabular-nums; text-align: right; min-width: 110px; }
.ns-earn-bar { height: 9px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.ns-earn-bar i { display: block; height: 100%; border-radius: inherit; background: var(--c-blue); }
.ns-earn-bar i.up { background: var(--up); }
.ns-earn-bar i.down { background: var(--down); }
.ns-earn-total { padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--line); font-weight: 800; }
.ns-estimate { margin-top: 14px; padding: 12px 14px; background: var(--sel); border-radius: var(--r-md); }
.ns-estimate p { margin: 0 0 8px; }
.ns-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ns-stats li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ns-stats li:last-child { border-bottom: 0; }
.ns-assume { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 14px; margin-bottom: 8px; }
.ns-projres { margin-top: 16px; }
.ns-sim { margin-top: 10px; }
.ns-simrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 8px; }
.ns-simrow label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.ns-simrow input, .ns-simrow select { min-height: var(--h); }

/* dluhy */
.ns-debts { display: grid; gap: 10px; }
.ns-debt { display: grid; gap: 8px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; transition: border-color .15s; }
.ns-debt:hover { border-color: var(--brand); }
.ns-debt-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ns-debt-v { font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* mapa */
.ns-pickmap, .ns-minimap, .ns-bigmap { width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.ns-pickmap { height: 240px; margin-top: 8px; }
.ns-minimap { height: 260px; }
.ns-bigmap { height: min(62vh, 560px); min-height: 340px; }
.ns-pick-tools { display: flex; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.ns-pinwrap { background: none; border: 0; }
.ns-pin { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; background: var(--brand); transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); margin: 3px 0 0 0; }
.ns-pin.up { background: var(--up); }
.ns-pin.down { background: var(--down); }
.ns-pin.flat { background: var(--ink-3); }          /* 23. 10. 2026: piny z tokenů růst/pokles */
.ns-pop { display: grid; gap: 3px; font-size: 13px; min-width: 170px; }
.ns-pop a { font-weight: 700; margin-top: 4px; }
.ns-mapcard .card-b { padding: 12px; }

/* smlouvy, dokumenty, kontakty, úkoly, poznámky */
.ns-contracts { display: grid; gap: 12px; }
.ns-contract { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; display: grid; gap: 6px; }
.ns-contract.ns-red { border-left-color: var(--down); }
.ns-contract.ns-amber { border-left-color: var(--c-amber); }
.ns-contract.ns-grey { opacity: .7; }
.ns-contract-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.ns-line { margin: 0; font-size: 14px; color: var(--ink-2); }
.ns-deadline { margin: 0; font-weight: 700; font-size: 14px; }
.ns-deadline.ns-red { color: var(--down); }
.ns-deadline.ns-amber { color: var(--warn); }
.ns-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ns-row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ns-del { color: var(--down); }
.ns-card-red { border-color: var(--down); }
.ns-docs, .ns-contacts, .ns-tasks, .ns-notes, .ns-activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ns-doc { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ns-doc:last-child { border-bottom: 0; }
.ns-doc-b { display: grid; min-width: 0; }
.ns-doc-b a { overflow-wrap: anywhere; }
.ns-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: var(--bg-2); }
.ns-fileic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; background: var(--sel); color: var(--brand); font-weight: 800; font-size: 12px; }
.ns-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 0 0 14px; }
.ns-photos img { width: 100%; height: 110px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.ns-contacts li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ns-contacts li:last-child { border-bottom: 0; }
.ns-contact-links { display: grid; gap: 2px; font-size: 13.5px; overflow-wrap: anywhere; }
.ns-task { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ns-task:last-child { border-bottom: 0; }
.ns-task input[type=checkbox] { width: 18px; height: 18px; }
.ns-task.done .ns-task-b b { text-decoration: line-through; color: var(--ink-3); }
.ns-task.overdue .ns-task-b b { color: var(--down); }
.ns-task-b { display: grid; min-width: 0; }
.ns-task-hot { grid-template-columns: minmax(0, 1fr) auto; }          /* karta Co hoří nemá zaškrtávátko, text dostane celou šířku (19. 10. v noci) */
.ns-done { margin-top: 12px; }
.ns-done summary { cursor: pointer; font-weight: 700; color: var(--ink-2); }
.ns-newnote { display: grid; gap: 8px; margin-bottom: 14px; }
.ns-newnote textarea { width: 100%; }
.ns-newnote .btn { justify-self: start; }
.ns-note { padding: 12px 14px; background: var(--surface-2); border-radius: 12px; }
.ns-note.pinned { border-left: 4px solid var(--c-amber); }
.ns-note p { margin: 0 0 8px; white-space: pre-wrap; line-height: 1.5; }
.ns-note-f { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.ns-activity li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ns-act-d { color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 86px; font-size: 13px; }
.ns-kv { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ns-kv li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }

@media (max-width: 720px) {
  .ns-chart-pair { grid-template-columns: 1fr; }
  .ns-earn-row { grid-template-columns: 1fr auto; }
  .ns-earn-bar { grid-column: 1 / -1; grid-row: 2; }
  .ns-contacts li { grid-template-columns: 1fr; }
  .ns-task { grid-template-columns: 22px minmax(0, 1fr); }
  .ns-task .ns-badges, .ns-task .ns-row-actions { grid-column: 2; }
  .ns-doc { grid-template-columns: 44px minmax(0, 1fr); }
  .ns-doc .ns-row-actions { grid-column: 1 / -1; }
  .ns-thumb, .ns-fileic { width: 44px; height: 44px; }
  .ns-stats li { grid-template-columns: minmax(0, 1fr) auto; }
  .ns-stats li > :last-child { grid-column: 1 / -1; justify-self: start; }
  .ns-props { grid-template-columns: 1fr; }
  .ns-chart { height: 260px; }
}

/* Ukázka pro hosta (.demo-bar, .demo-grid, .demo-card, .demo-cta) je od 23. 10. 2026 v app.css: proužek je i na portfoliu a app.css se načítá všude. */

/* splátkový kalendář na telefonu: bez pořadí a jistiny, ať se vejde bez posouvání do strany (dluhy.js) */
@media (max-width: 560px) {
  .ns-kal .ns-kal-opt { display: none; }
  .ns-kal th, .ns-kal td { padding-left: 5px; padding-right: 5px; font-size: 13px; }
}

/* audit F3 (MD/15-nemovitosti-audit.md): záložky detailu se na počítači zalomí do řádků, na telefonu se posouvají a u pravého okraje se prolínají */
@media (min-width: 721px) { .ns-tabs { flex-wrap: wrap; overflow-x: visible; } }
@media (max-width: 720px) { .ns-tabs { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); } }
/* projekce v čase: na telefonu zůstává tabulka, rok je přilepený vlevo */
@media (max-width: 720px) {
  .ns-proj th, .ns-proj td { font-size: 12.5px; padding-left: 6px; padding-right: 6px; }
  .ns-proj th:first-child, .ns-proj td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line-soft); }
}
.ns-geo-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0; }
.ns-geo-list p { flex-basis: 100%; }
.ns-geo-alt { text-align: left; white-space: normal; }

/* záložka Daně (blok F6, nemovitost_dane.js) */
.nd-head { margin: 4px 0 12px; }
.nd-years { margin-bottom: 4px; }
.nd-tbl td { padding-top: 7px; padding-bottom: 7px; vertical-align: top; }
.nd-tbl td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.nd-sub { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.nd-tbl tr.nd-in td { font-weight: 700; }
.nd-tbl tr.nd-sum td { font-weight: 700; border-top: 1px solid var(--line); }
.nd-tbl tr.nd-muted td { color: var(--ink-3); }
.nd-tbl tr.nd-on td { background: var(--surface-2); font-weight: 700; }
.nd-tbl tr.nd-gap td { color: var(--ink-3); text-align: center; padding: 2px; }
.nd-note { font-size: 12.5px; margin: 8px 0 0; line-height: 1.5; }
.nd-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.nd-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nd-tips li { display: grid; gap: 2px; line-height: 1.5; font-size: 14px; }
.nd-tips li span { color: var(--ink-2); }
.nd-grid { margin-bottom: 12px; }

.ns-tabs { margin-bottom: 14px; }          /* vzhled záložek je v ui.css (blok M5) */

/* ---------- import z tabulky (blok F4, assets/js/nemovitosti_import.js) ---------- */
.ns-imp-file { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.ns-imp-file .field { flex: 1; min-width: 220px; margin-bottom: 0; }
.ns-imp-map { margin: 10px 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; }
.ns-imp-map summary { cursor: pointer; font-weight: 700; font-size: 13.5px; }
.ns-imp-map .ns-sec { margin: 10px 0 6px; }
.ns-imp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 12px; }
.ns-imp-grid .field { margin-bottom: 4px; }
.ns-imp-grid .field > label { font-size: 12px; }
.ns-imp-sum { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 4px; font-size: 13.5px; }
.ns-imp-lim { margin: 0 0 6px; font-size: 13px; }
.ns-imp-problems { margin: 6px 0 10px; padding-left: 18px; color: var(--down); font-size: 13.5px; line-height: 1.5; }
.ns-imp-ok { margin: 6px 0 10px; color: var(--up); font-weight: 700; font-size: 13.5px; }
.ns-imp-tbl td, .ns-imp-tbl th { vertical-align: top; }
.ns-imp-chk { width: 70px; text-align: center; }
.ns-imp-msgs { margin: 4px 0 0; padding-left: 16px; font-size: 12.5px; line-height: 1.4; white-space: normal; }
.ns-imp-err td { background: color-mix(in srgb, var(--down) 7%, transparent); }
.ns-imp-skip td { opacity: .55; }
.ns-imp-geo { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.ns-imp-last .btn { margin-left: 6px; }
.ns-imp-sum .ns-red, .ns-imp-msgs.ns-red { color: var(--down); }

/* ---------- fotky nemovitosti (blok F7, assets/js/nemovitost_fotky.js) ---------- */
.ns-foto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ns-foto { margin: 0; display: grid; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.ns-foto.is-cover { border-color: var(--brand); }
.ns-foto.is-private img { opacity: .75; }
.ns-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; background: var(--bg-2); }
.ns-foto figcaption { display: grid; gap: 3px; font-size: 12.5px; }
.ns-foto-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.ns-foto-cap { font-weight: 700; overflow-wrap: anywhere; }
.ns-foto-acts { display: flex; flex-wrap: wrap; gap: 4px; }
.ns-foto-acts .btn { min-height: 30px; padding: 0 8px; }

/* ---------- inzeráty (bloky F8 až F10; views/inzeraty.php, inzerat.php, inzerat_import.php, assets/js/nemovitost_inzerat.js, inzeraty.js) ---------- */
.inz-tabs { margin: 0 0 12px; }
.inz-filter-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 14px; align-items: end; }
.inz-filter-row .field { margin-bottom: 0; }
.inz-filter-btns > div { display: flex; gap: 8px; flex-wrap: wrap; }
.inz-count { margin: 12px 0 8px; font-size: 13px; }
.inz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.inz-card { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit; overflow: hidden; transition: transform .15s var(--ease), box-shadow .15s; }
.inz-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.inz-card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--bg-2); }
.inz-card-ph { display: grid; place-items: center; color: var(--ink-3); background: linear-gradient(135deg, var(--bg-2), var(--sel)); }
.inz-card-b { display: grid; gap: 4px; padding: 12px 14px 14px; align-content: start; }
.inz-card-b .badge { justify-self: start; }
.inz-card-t { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.inz-card-p { font-size: 17px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.inz-card-p small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.inz-pager { justify-content: center; margin-top: 16px; }
.inz-note { margin: 22px 0 0; font-size: 12.5px; line-height: 1.5; max-width: 90ch; }
.inz-crumbs { margin: 0 0 4px !important; font-size: 13px; }
.inz-crumbs a { color: var(--ink-3); text-decoration: none; }
.inz-price-box { display: grid; gap: 2px; text-align: right; }
.inz-price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.inz-price small { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.inz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.inz-main, .inz-side { display: grid; gap: 14px; min-width: 0; }
.inz-side { position: sticky; top: 76px; }
.inz-gallery { padding: 0; overflow: hidden; }
.inz-main-photo { display: block; }
.inz-main-photo img { width: 100%; max-height: 520px; object-fit: cover; display: block; background: var(--bg-2); }
.inz-thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; scrollbar-width: thin; }
.inz-thumb { flex: none; width: 84px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--bg-2); cursor: pointer; }
.inz-thumb.on { border-color: var(--brand); }
.inz-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inz-caption { margin: 0; padding: 0 12px 10px; font-size: 12.5px; }
.inz-body { line-height: 1.6; overflow-wrap: anywhere; }
.inz-map { height: 260px; }
.inz-hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.inz-ok { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--up) 12%, var(--surface)); color: var(--ink); font-weight: 600; line-height: 1.5; }
.inz-owner { display: flex; align-items: center; gap: 12px; }
.inz-owner svg { border-radius: 50%; flex: none; }
.inz-preview { margin: 14px 0 0; }
.inz-narrow { max-width: 820px; }
.inz-import-sum { margin-top: 14px; }
.ns-inz-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 15px; }
.ns-inz-url { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; font-size: 13.5px; overflow-wrap: anywhere; }
.ns-inq-list { display: grid; gap: 10px; }
.ns-inq { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); display: grid; gap: 4px; }
.ns-inq.is-new { border-color: var(--brand); }
.ns-inq.is-arch { opacity: .6; }
.ns-inq-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ns-inq-c, .ns-inq-m { margin: 0; font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.ns-inq-m { white-space: pre-wrap; }
.ns-exp { grid-template-columns: auto minmax(0, 1fr) auto; }
.ns-share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 14px; }
.ns-share-preview { white-space: pre-wrap; font: inherit; font-size: 13.5px; line-height: 1.55; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); margin: 0 0 10px; overflow-wrap: anywhere; }
.ns-sab-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ns-sab-other { opacity: .75; }
.ns-sab-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--down); margin-left: 6px; vertical-align: middle; }
.ns-sab-missing { margin: 6px 0 10px; padding-left: 18px; color: var(--down); font-size: 13.5px; line-height: 1.5; }
.ns-sab-missing:empty { display: none; }
.ns-sab-landlord { margin: 8px 0; font-size: 13.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ns-sab-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 14px; }
.ns-sab-preview { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-size: 13.5px; line-height: 1.55; max-height: 420px; overflow: auto; }
.ns-sab-preview h4 { margin: 12px 0 4px; font-size: 13.5px; }
.ns-sab-preview p { margin: 0 0 8px; }
.ns-sab-kv { display: grid; grid-template-columns: minmax(100px, 160px) minmax(0, 1fr); gap: 4px 12px; margin: 0 0 8px; }
.ns-sab-kv dt { font-weight: 700; }
.ns-sab-kv dd { margin: 0; }
@media (max-width: 900px) { .inz-layout { grid-template-columns: 1fr; } .inz-side { position: static; } .inz-price-box { text-align: left; } }
@media (max-width: 720px) { .inz-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } .inz-main-photo img { max-height: 320px; } .inz-map { height: 220px; } }
.ns-imp-geo input { width: auto; flex: none; margin: 3px 0 0; }
.ns-imp-geo { min-width: 0; }
.ns-imp-file .field { min-width: min(220px, 100%); }
.ns-imp-file input[type="file"] { width: 100%; min-width: 0; max-width: 100%; }
.ns-sab-list .btn { white-space: normal; text-align: left; justify-content: flex-start; max-width: 100%; line-height: 1.3; padding-top: 6px; padding-bottom: 6px; }

/* Přehledové pohledy přes všechny nemovitosti (plán W1-13, assets/js/nemovitosti_prehledy.js) */
.ns-pnav { margin-bottom: 14px; }
.ns-ptbl .ns-sum td { border-top: 2px solid var(--line); background: var(--bg-2); }
.ns-ptbl .ns-b, .ns-ptbl .ns-sum .num { font-weight: 650; }
.ns-ptbl td small .badge { margin-top: 3px; }
.ns-plist { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.ns-psum { font-size: 13px; margin: 10px 0 0; }
@media (max-width: 720px) {
  .ns-ptbl.mj-manage tr.ns-sum { background: var(--bg-2); }
  .ns-ptbl.mj-manage tr.ns-sum td { border-top: 0; background: transparent; }
  .ns-ptbl.mj-manage tr.ns-sum td.ns-empty { display: none; }
}

/* Inzeráty podle měst (blok B5, views/inzeraty_mesto.php) */
.inz-stats { margin: 4px 0 14px; }
.inz-types { margin: -2px 0 12px; }
.inz-types .chip { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.inz-types .chip .muted { font-weight: 600; }
.inz-types .chip.on .muted { color: inherit; opacity: .8; }
.inz-mesta { margin: 26px 0 0; }
.inz-mesta h2 { font-size: 17px; margin: 0 0 10px; }
.inz-mesta-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.inz-mesta-list .muted { font-size: 12.5px; }
.inz-city-link { margin: 4px 0 0 !important; font-size: 13.5px; }


/* ---------- nabídky nemovitostí 19. 10. v noci: okamžité filtry, karty se zdrojem, pás souhrnu, formulář vlastního inzerátu ---------- */
.inz-filtr { margin-top: 0; border-radius: 16px; }
.inz-filtr .card-b { padding: 0; }
.inz-filtr { padding: 14px 16px 12px; }
.inz-filtr-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.inz-filtr-top .tabs { margin: 0; }
.inz-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.inz-chips .chip { cursor: pointer; text-decoration: none; font: inherit; font-size: 12.5px; font-weight: 700; }
.inz-filtr-row { display: grid; grid-template-columns: 2fr repeat(4, minmax(88px, 1fr)) 1.3fr; gap: 10px 12px; align-items: end; }
.inz-filtr-row .field { margin: 0; }
.inz-filtr-row .field .lbl { font-size: 12px; }
.inz-filtr-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.inz-filtr-btns { margin-left: auto; display: flex; gap: 8px; }
.inz-zdroj { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.inz-zdroj .chip { border-color: transparent; background: transparent; }
.inz-zdroj .chip.on { background: var(--surface); color: var(--brand); box-shadow: 0 1px 4px rgba(0, 28, 104, .14); }
.inz-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 14px 0 10px; font-size: 13px; color: var(--ink-3); }
.inz-strip > span { display: inline-flex; align-items: center; gap: 5px; }
.inz-strip b { color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.inz-strip > span:first-child b { font-size: 17px; }
.inz-grid { transition: opacity .15s; }
.inz-grid.is-loading { opacity: .5; }
.inz-grid .inz-empty { grid-column: 1 / -1; }
.inz-card { border-radius: 16px; }
.inz-card-media { position: relative; display: block; }
.inz-card-kind { position: absolute; left: 10px; top: 10px; }
.inz-card-src { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; font-weight: 700; backdrop-filter: blur(4px); }
.inz-card-src .ic { width: 11px; height: 11px; }
.inz-card-src-own { background: var(--brand); }
.inz-card-foot { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--brand); }
.inz-card-foot .ic { width: 12px; height: 12px; }
.inz-card:not(.inz-card-ext) .inz-card-foot .ic { transform: rotate(-90deg); }
.inz-card-ext .inz-card-foot { color: var(--ink-3); }
.inz-card:hover .inz-card-foot { color: var(--brand); }
.inz-more-row { text-align: center; margin: 16px 0 0; }
.inz-cta { margin-top: 26px; border-radius: 16px; }
.inz-cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.inz-cta-in p { margin: 4px 0 0; max-width: 70ch; font-size: 13.5px; line-height: 1.5; }
.inzv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; margin-top: 14px; }
.inzv-side { display: grid; gap: 12px; }
.inzv-h { font-size: 18px; margin: 0 0 10px; }
.inzv-sec { padding: 2px 0 16px; }
.inzv-sec + .inzv-sec { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.inzv-sec h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 16px; }
.inzv-n { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 12.5px; font-weight: 800; }
.inzv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.inzv-grid .field { margin: 0; min-width: 0; }
.inzv-grid .span2 { grid-column: span 2; }
.inzv-grid .span3 { grid-column: 1 / -1; }
.inzv-grid .check { grid-column: 1 / -1; display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; }
.inzv-grid textarea { width: 100%; min-height: 150px; resize: vertical; }
.inzv-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.inzv-pills label { position: relative; cursor: pointer; }
.inzv-pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.inzv-pills input:checked + .chip { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.inzv-pills input:disabled + .chip { opacity: .45; cursor: not-allowed; }
.inzv-pills input:focus-visible + .chip { outline: 2px solid var(--brand); outline-offset: 2px; }
.inzv-file-btn { cursor: pointer; }
.inzv-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.inzv-file { width: 88px; height: 66px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); cursor: pointer; }
.inzv-file:first-child { outline: 2px solid var(--accent); outline-offset: 1px; }
.inzv-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 6px; }
.inzv-submit .muted { font-size: 12.5px; line-height: 1.45; max-width: 60ch; }
.inzv-ok { border-radius: 16px; background: color-mix(in srgb, var(--up) 10%, var(--surface)); }
.inzv-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.inzv-steps li { display: flex; gap: 12px; align-items: flex-start; }
.inzv-steps p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; }
@media (max-width: 1100px) { .inz-filtr-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .inz-filtr-row .inz-f-q { grid-column: 1 / -1; } }
@media (max-width: 960px) { .inzv-layout { grid-template-columns: 1fr; } .inzv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .inzv-grid .span2 { grid-column: 1 / -1; } }
@media (max-width: 640px) { .inz-filtr-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .inz-filtr-btns { margin-left: 0; width: 100%; } .inzv-grid { grid-template-columns: 1fr; } .inz-strip > span:first-child { width: 100%; } }

/* podrobné filtry (20. 10.): rozbalovací druhý řádek */
.inz-filtr-vice { margin-top: 10px; }
.inz-filtr-vice summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; color: var(--link); }
.inz-filtr-vice summary::-webkit-details-marker { display: none; }
.inz-filtr-vice summary .ic { transition: transform .15s; }
.inz-filtr-vice[open] summary .ic { transform: rotate(180deg); }
.inz-filtr-row-2 { margin-top: 10px; grid-template-columns: repeat(4, minmax(110px, 1fr)) auto; }
.inz-f-check { align-self: end; margin: 0 0 9px; white-space: nowrap; }
@media (max-width: 900px) { .inz-filtr-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* hlídání nabídek (20. 10.) */
.inz-filtr-akce { gap: 8px 10px; }
.inz-hl-link { margin-left: auto; font-size: 13px; }
.inz-hl-pocet { margin: 0 0 10px; font-size: 13px; }
.inz-hl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.inz-hl-card { padding: 16px 18px; border-radius: 16px; display: grid; gap: 8px; align-content: start; }
.inz-hl-card.is-off { opacity: .6; }
.inz-hl-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.inz-hl-k { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.inz-hl-card h2 { margin: 0; font-size: 16px; line-height: 1.3; }
.inz-hl-card p { margin: 0; font-size: 13px; }
.inz-hl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; }
.inz-hl-del { color: var(--down); }
.inz-hl-empty p { max-width: 60ch; margin: 8px auto 14px; }

/* mapa nabídek s kolečky (20. 10.) */
.inz-mapa-page { max-width: 1400px; }
.inz-mapa-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin: 12px 0 12px; }
.inz-mapa-top h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.inz-mapa-top p { margin: 4px 0 0; font-size: 13.5px; }
.inz-mapa-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.inz-mapa-shell { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; height: calc(100vh - var(--top-h, 64px) - var(--sub-h, 46px) - 200px); min-height: 520px; }
.inz-mapa { position: relative; z-index: 0; min-height: 420px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.inz-mapa-wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; }
.inz-mapa-side { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.inz-mapa-side-h { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.inz-mapa-side-h b { font-size: 18px; }
.inz-mapa-list { overflow-y: auto; padding: 8px; display: grid; gap: 6px; align-content: start; }
.inz-mapa-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 6px; border-radius: 12px; color: inherit; text-decoration: none; transition: background-color .15s; }
.inz-mapa-item:hover { background: var(--surface-2); }
.inz-mapa-item img, .inz-mapa-noimg { display: block; width: 72px; height: 54px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.inz-mapa-tx { display: grid; gap: 1px; min-width: 0; align-content: center; }
.inz-mapa-tx b { font-size: 14px; }
.inz-mapa-tx span { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.inz-mapa-tx small { font-size: 12px; color: var(--ink-3); }
.inz-cl { background: transparent !important; border: 0 !important; }
.inz-cl span { display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--brand-2), var(--brand) 60%, var(--brand-deep)); color: #fff; font-weight: 800; font-size: 14px; border: 2px solid #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 18%, transparent), 0 10px 24px -10px color-mix(in srgb, var(--brand-deep) 70%, transparent); cursor: pointer; transition: transform .15s; }
.inz-cl span:hover { transform: scale(1.08); }
.inz-pin-w { background: transparent !important; border: 0 !important; width: 0 !important; height: 0 !important; }
.inz-pin { position: absolute; display: inline-block; transform: translate(-50%, calc(-100% - 8px)); padding: 4px 9px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 12.5px; white-space: nowrap; border: 2px solid #fff; box-shadow: 0 8px 18px -8px rgba(0, 28, 104, .7); cursor: pointer; }
.inz-pin::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); border-right: 2px solid #fff; border-bottom: 2px solid #fff; }
.inz-pin.rent { background: var(--c-teal); }
.inz-pin.own { background: var(--accent); }
.inz-pop .leaflet-popup-content-wrapper { border-radius: 14px; padding: 0; overflow: hidden; box-shadow: 0 18px 44px -14px rgba(0, 28, 104, .4); }
.inz-pop .leaflet-popup-content { margin: 0; width: 260px !important; }
.inz-pop .leaflet-popup-tip-container { display: none; }
.inz-pop-card { display: grid; color: inherit; text-decoration: none; }
.inz-pop-card img { width: 100%; height: 130px; object-fit: cover; }
.inz-pop-card b { padding: 10px 12px 0; font-size: 16px; }
.inz-pop-card span { padding: 2px 12px 0; font-size: 13px; color: var(--ink-2); }
.inz-pop-card small { padding: 2px 12px 10px; font-size: 12px; color: var(--ink-3); }
@media (max-width: 900px) { .inz-mapa-shell { grid-template-columns: 1fr; height: auto; } .inz-mapa { height: 60vh; } .inz-mapa-side { max-height: 40vh; } }

/* nabídka ze Sreality odkazem ve formuláři /inzerovat (20. 10. 2026, lib/inzeraty_sreality.php) */
.inzv-odkaz { background: color-mix(in srgb, var(--brand) 5%, transparent); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.inzv-odkaz h2 { display: flex; align-items: center; gap: 8px; }
.inzv-odkaz-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inzv-odkaz-row .input { flex: 1 1 320px; min-width: 0; }
.inzv-odkaz .hint.bad { color: var(--down); }
.inzv-odkaz .hint.good { color: var(--ink, inherit); }
.inzv-prohlaseni { margin-top: 10px; align-items: flex-start; }
.inz-okres { font-size: 14px; }

/* import pro realitní kanceláře (20. 10. 2026 v noci, views/inzerovat_kancelar.php, views/stav_kancelare.php) */
.rkk-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; align-items: baseline; }
.rkk-dl dt { font-size: 13px; color: var(--ink-3); }
.rkk-dl dd { margin: 0; min-width: 0; }
.rkk-dl code { word-break: break-all; font-size: 13.5px; }
.rkk-portaly { margin-top: 16px; }          /* portály a adresy importu (20. 10. pozdě večer) */
.rkk-portaly h3 { margin: 0 0 6px; font-size: 14.5px; }
.rkk-tbl td, .rkk-tbl th { font-size: 13px; }
.rkk-tbl code { font-size: 12.5px; }
.rkk-log td { font-size: 13px; vertical-align: top; }
.rkk-log .rkk-chyba td { background: color-mix(in srgb, var(--down) 6%, transparent); }
.rkk-udaje > summary { cursor: pointer; list-style: none; }
.st-rk-akce { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.st-rk-akce .input { min-width: 0; max-width: 180px; padding: 4px 8px; font-size: 13px; }
.st-rk li.bad { color: var(--down); }
.rkk .inzv-main, .rkk .inzv-side { min-width: 0; }
.rkk-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
@media (max-width: 960px) { .rkk .inzv-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .rkk-dl { grid-template-columns: 1fr; gap: 2px 0; } .rkk-dl dd { margin-bottom: 8px; } }

/* Přehled portfolia nemovitostí jako SWORP Rent (/nemovitosti/prehled, 21. 10. 2026, assets/js/nemovitosti_portfolio.js): dlaždice, úkoly, končící smlouvy, kalendář, mapa, činnost */
.np .card { margin: 0; }
.np-ev-najem { --ev: var(--up); } .np-ev-najem_start { --ev: var(--c-teal); } .np-ev-najem_konec { --ev: var(--c-amber); } .np-ev-splatka { --ev: var(--c-violet); } .np-ev-fixace { --ev: var(--c-coral); } .np-ev-smlouva { --ev: var(--c-blue); } .np-ev-ukol { --ev: var(--ink-3); }
.np-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ev, var(--ink-3)); }
.np-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0 0 14px; }
.np-tile { --tone: var(--brand); position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 15px 16px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; overflow: hidden; }
.np-tile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--tone); }
a.np-tile:hover { border-color: color-mix(in srgb, var(--tone) 40%, var(--line)); text-decoration: none; }
@media (prefers-reduced-motion: no-preference) { a.np-tile { transition: transform .15s ease, border-color .15s ease; } a.np-tile:hover { transform: translateY(-1px); } }
.np-t-ok { --tone: var(--up); } .np-t-warn { --tone: var(--warn); } .np-t-down { --tone: var(--down); } .np-t-brand { --tone: var(--brand); } .np-t-violet { --tone: var(--c-violet); }
.np-tile-k { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.np-tile-v { font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.np-t-down .np-tile-v { color: var(--down); }
.np-tile-s { font-style: normal; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.np-bar { display: block; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin: 4px 0 2px; }
.np-bar i { display: block; height: 100%; border-radius: 6px; background: var(--tone); }
.np-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 14px; margin: 0 0 14px; align-items: start; }
@media (min-width: 1200px) { .np-grid-map { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.np-empty { text-align: center; padding: 16px 6px 8px; }
.np-empty b { display: block; font-size: 15px; }
.np-empty p { margin: 4px 0 12px; font-size: 13.5px; color: var(--ink-3); }
.np-note { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.np-note.is-dluh { color: var(--down); }
.np-st { display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 700; line-height: 1.5; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.np-st.is-dluh { color: var(--down); background: color-mix(in srgb, var(--down) 12%, transparent); }
.np-st.is-pozor { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, transparent); }
.np-st.is-zaplaceno { color: var(--up); background: color-mix(in srgb, var(--up) 12%, transparent); }
.np-st.is-nesledovano { color: var(--ink-3); }
.np-ending { list-style: none; margin: 0; padding: 0; }
.np-ending li + li { border-top: 1px solid var(--line); }
.np-ending a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; color: var(--ink); text-decoration: none; }
.np-ending a:hover .np-ending-b b { color: var(--link); }
.np-date { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); line-height: 1.05; }
.np-date b { font-size: 16px; font-weight: 800; }
.np-date small { font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; }
.np-ending-b { min-width: 0; }
.np-ending-b b, .np-ending-b small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-ending-b b { font-size: 14px; }
.np-ending-b small { font-size: 12.5px; }
.np-act { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.np-act li { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 10px; align-items: start; padding: 7px 0; font-size: 13.5px; }
.np-act li + li { border-top: 1px solid var(--line-soft); }
.np-act .np-dot { margin-top: 6px; }
.np-act small { display: block; font-size: 12px; }
.np-act-property { --ev: var(--brand); } .np-act-lease { --ev: var(--up); } .np-act-contract { --ev: var(--c-amber); } .np-act-liability { --ev: var(--c-violet); }
.np-map { height: 340px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.np-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.np-legend span { display: inline-flex; align-items: center; gap: 6px; }
.np-pin-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.ns-pin.np-pin-pronajato, .np-pin-dot.np-pin-pronajato { background: var(--up); }
.ns-pin.np-pin-volne, .np-pin-dot.np-pin-volne { background: var(--c-amber); }
.ns-pin.np-pin-vlastni, .np-pin-dot.np-pin-vlastni { background: var(--c-blue); }
.np-cal { margin: 0 0 14px !important; }
.np-cal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.np-cal-nav { display: flex; align-items: center; gap: 6px; min-width: 0; }
.np-ico { min-width: 34px; font-size: 18px; line-height: 1; padding-left: 8px; padding-right: 8px; }
.np-cal-title { margin: 0 0 0 8px; font-size: 17px; font-weight: 800; }
.np-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.np-seg-b { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; min-height: 32px; }
.np-seg-b.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.np-seg-b:focus-visible, .np-chip:focus-visible, .np-dnum:focus-visible, .np-more:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.np-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.np-filters:empty { display: none; }
.np-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; min-height: 30px; }
.np-chip.off { opacity: .55; }
.np-chip.off .np-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ev); }
.np-cal-body { transition: opacity .15s ease; }
.np-cal-body.loading { opacity: .5; }
.np-month { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.np-wd, .np-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.np-wd { background: var(--surface-2); }
.np-wd span { padding: 7px 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.np-day { min-height: 104px; min-width: 0; padding: 5px 5px 6px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.np-day:first-child { border-left: 0; }
.np-day.other { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.np-day.other .np-dnum { color: var(--ink-3); opacity: .7; }
.np-dnum { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
.np-dnum:hover { background: var(--surface-2); }
.np-day.past .np-dnum { color: var(--ink-3); }
.np-day.today .np-dnum { background: var(--brand); color: var(--brand-ink); }
.np-day-evs { display: grid; gap: 3px; margin-top: 3px; }
.np-dots { display: none; }
.np-ev { display: flex; align-items: center; gap: 5px; min-width: 0; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); background: color-mix(in srgb, var(--ev) 11%, var(--surface)); color: var(--ink); font-size: 12px; line-height: 1.35; text-decoration: none; }
.np-ev:hover { text-decoration: none; background: color-mix(in srgb, var(--ev) 20%, var(--surface)); }
.np-ev-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-ev b { flex: none; font-weight: 700; }
.np-ev.is-zaplaceno { opacity: .62; }
.np-ev.is-dluh { box-shadow: inset 2px 0 0 var(--down); }
.np-ev.is-dluh .np-ev-t { color: var(--down); }
.np-more { border: 0; background: transparent; padding: 0 6px; text-align: left; font: inherit; font-size: 12px; font-weight: 700; color: var(--ink-3); cursor: pointer; }
.np-more:hover { color: var(--link); }
.np-wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.np-wk-col { min-width: 0; min-height: 160px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.np-wk-col.today { border-color: var(--brand); box-shadow: inset 0 3px 0 var(--brand); }
.np-wk-col.past { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.np-wk-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.np-wk-h b { font-size: 13px; color: var(--ink); }
.np-wk-evs { display: grid; gap: 4px; }
.np-wk .np-ev { display: grid; grid-template-columns: 8px minmax(0, 1fr); column-gap: 6px; align-items: start; padding: 4px 6px; }
.np-wk .np-dot { margin-top: 5px; }
.np-wk .np-ev-t { white-space: normal; overflow-wrap: anywhere; }
.np-wk .np-ev b { grid-column: 2; font-size: 12px; }
.np-wk-none { margin: 4px 0 0; font-size: 12px; color: var(--ink-3); }
@media (max-width: 1100px) { .np-wk { grid-template-columns: minmax(0, 1fr); } .np-wk-col { min-height: 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; } .np-wk-h { justify-content: flex-start; gap: 8px; } }
.np-agenda { display: grid; }
.np-ag-day { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
.np-ag-day + .np-ag-day { border-top: 1px solid var(--line); }
.np-ag-day.past { opacity: .7; }
.np-ag-day h4 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.np-ag-day h4 b { font-size: 20px; font-weight: 800; color: var(--ink); min-width: 26px; }
.np-ag-day h4 em { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); }
.np-ag-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.np-ag a { display: grid; grid-template-columns: 4px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; }
.np-ag a:hover { border-color: color-mix(in srgb, var(--ev) 45%, var(--line)); text-decoration: none; }
.np-bar-v { align-self: stretch; min-height: 28px; border-radius: 4px; background: var(--ev); }
.np-ag-b { min-width: 0; }
.np-ag-b b, .np-ag-b small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-ag-b b { font-size: 13.5px; font-weight: 700; }
.np-ag-b small { font-size: 12px; }
.np-ag-c { font-weight: 800; white-space: nowrap; font-size: 13.5px; }
@media (max-width: 700px) {
  .np-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .np-tile { padding: 12px 12px 11px; }
  .np-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .np-tile-v { font-size: 18px; }
  .np-cal-title { margin-left: 2px; font-size: 15px; }
  .np-day { min-height: 54px; padding: 4px 2px; text-align: center; }
  .np-day-evs { display: none; }
  .np-dots { display: flex; justify-content: center; gap: 3px; margin-top: 3px; }
  .np-dots .np-dot { width: 6px; height: 6px; }
  .np-ag-day { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .np-ag a { grid-template-columns: 4px minmax(0, 1fr) auto; }
  .np-ag a .np-st { grid-column: 2 / -1; justify-self: start; }
  .np-map { height: 280px; }
}

/* Evidence nemovitosti jako SWORP Rent (21. 10. 2026 večer, assets/js/nemovitost_evidence.js): podzáložky, jednotky, finance, měřáky, pojištění, klíče, vybavení, komunikace */
.ns-subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 14px; }
.ns-subtabs a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 700; text-decoration: none; min-height: 32px; }
.ns-subtabs a:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); color: var(--ink); text-decoration: none; }
.ns-subtabs a.on { background: color-mix(in srgb, var(--brand) 10%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); color: var(--ink); }
.ev-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 14px; padding: 12px 14px; border: 1px dashed color-mix(in srgb, var(--brand) 40%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.ev-bar .muted { font-size: 13px; }
.ev-tbl td { vertical-align: middle; }
.ev-future td { color: var(--ink-3); }
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ev-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 7px 0; font-size: 13.5px; }
.ev-list li + li { border-top: 1px solid var(--line-soft); }
.ev-list li .num { margin-left: auto; font-weight: 800; }
.ev-meter-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.ev-big { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.ev-meta { margin: 0 0 8px; font-size: 13px; }
.ev-det { margin-top: 8px; }
.ev-det summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--link); }
.ev-ins { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.ev-ins-i { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ev-ins-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.ev-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 0 0 8px; font-size: 13.5px; }
.ev-dl dt { color: var(--ink-3); }
.ev-dl dd { margin: 0; font-weight: 600; }
.ev-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ev-msg { padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 10px; background: var(--surface); }
.ev-msg.ev-in { border-left-color: var(--up); }
.ev-msg-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ev-msg-h b { flex: 1 1 200px; min-width: 0; }
.ev-ch { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.ev-body { white-space: pre-wrap; font: inherit; font-size: 13.5px; margin: 8px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); color: var(--ink); max-height: 360px; overflow: auto; }
.ev-landlord { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-size: 14px; display: grid; gap: 4px; }
.ev-wiz-prop { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
@media (max-width: 700px) { .ev-meter-top { grid-template-columns: minmax(0, 1fr); } .ev-big { font-size: 18px; } }

/* Kontakty jako karty a soubory s přetažením (21. 10. 2026 večer, assets/js/sprava.js) */
.ct-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.ct-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; min-height: 32px; }
.ct-chip span { font-size: 11.5px; color: var(--ink-3); }
.ct-chip.on { background: color-mix(in srgb, var(--brand) 10%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); color: var(--ink); }
.ct-chip:focus-visible, .ns-drop:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 12px; }
.ct-card { --role: var(--ink-3); display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); min-width: 0; }
.ct-r-tenant { --role: var(--up); } .ct-r-owner { --role: var(--c-blue); } .ct-r-manager { --role: var(--c-violet); } .ct-r-hoa { --role: var(--c-teal); } .ct-r-insurer { --role: var(--c-amber); } .ct-r-bank { --role: var(--brand); } .ct-r-contractor { --role: var(--c-coral); } .ct-r-utility { --role: var(--c-olive); }
.ct-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.ct-av { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: color-mix(in srgb, var(--role) 14%, var(--surface)); color: var(--role); font-weight: 800; font-size: 15px; }
.ct-name { display: grid; min-width: 0; }
.ct-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.ct-role { font-size: 12.5px; font-weight: 700; color: var(--role); }
.ct-props { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-props a { font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); text-decoration: none; }
.ct-props a:hover { color: var(--link); }
.ct-lines { display: grid; gap: 2px; font-size: 13.5px; overflow-wrap: anywhere; }
.ct-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.ns-drop { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px; margin: 0 0 12px; padding: 18px 14px; border: 2px dashed var(--line); border-radius: 12px; background: var(--surface-2); text-align: center; cursor: pointer; font-size: 14px; }
.ns-drop.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.ns-drop [role=status] { flex-basis: 100%; font-size: 12.5px; color: var(--ink-2); }
.ns-drop [role=status]:empty { display: none; }
.ns-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }

.np-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }          /* přehled portfolia: Přidat nájemníka, export, nastavení (21. 10. 2026 večer) */

/* Zbytek SWORP Rent (21. 10. 2026 v noci, assets/js/nemovitosti_sworp.js a nemovitost_evidence.js): portfolia, párování plateb, účetnictví, projekty, sdílený přehled */
.sw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 12px; }
.sw-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); min-width: 0; }
.sw-card-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sw-card-h > div { display: grid; min-width: 0; }
.sw-card-h b { font-size: 16px; }
.sw-share { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sw-share input { flex: 1 1 220px; min-width: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 12.5px; }
.sw-tbl select { max-width: 100%; min-width: 140px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.sw-tbl tr.sw-jiste td { background: color-mix(in srgb, var(--up) 6%, transparent); }
.np-pf { padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; min-height: 32px; }
.ev-kat { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.ev-kat span { display: inline-flex; gap: 6px; }
.ev-proj-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; }
.ev-proj-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px 18px; margin-top: 10px; font-size: 12.5px; }
.ev-proj-bars .np-bar { margin-top: 4px; }
.np-sdilene .page-h p { max-width: 70ch; }

/* Spolupracovníci, pokoje, Začínáme a logo (21. 10. 2026 v noci, migrace 114) */
.sp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--line)); font-size: 14px; }
.ns-pnav-wrap { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; }
.ns-pnav-wrap .ns-pnav { flex: 1 1 auto; min-width: 0; }
.np-ucet:empty { display: none; }
.sp-poz { display: grid; gap: 8px; margin-bottom: 10px; }
.sp-poz .mj-warn { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
tr.ev-room td:first-child { padding-left: 28px; position: relative; }
tr.ev-room td:first-child::before { content: ""; position: absolute; left: 12px; top: 50%; width: 9px; border-top: 1px solid var(--line); }
.np-zac { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.np-zac-k { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; }
.np-zac-k + .np-zac-k { border-top: 1px solid var(--line-soft); }
.np-zac-k small { display: block; font-size: 12.5px; }
.np-zac-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); font-weight: 800; font-size: 13px; }
.np-zac-k.done .np-zac-n { background: color-mix(in srgb, var(--up) 15%, var(--surface)); color: var(--up); }
.np-zac-k.done b { color: var(--ink-3); }
.np-zaciname { margin: 0 0 14px !important; }
.ns-sab-logo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; }
.ns-sab-logo img { max-height: 36px; max-width: 120px; object-fit: contain; }

/* hotovost.css */
/* Hotovost a rezerva (/hotovost, plán W1-17) a banka: výpisy a pohyby (/banka, blok E). Barvy jen z tokenů motivu, světlý i tmavý režim. */

/* pruh pokrytí rezervy (karta Přehledu i stránka) */
.ht-bar { display: block; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 12px 0 0; }
.ht-bar i { display: block; height: 100%; border-radius: inherit; background: var(--up); transition: width .3s; }
.ht-bar.is-low i { background: var(--warn); }
.ht-veta { margin: 10px 0 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.ht-why { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; display: grid; gap: 3px; }
.ht-stat-sub a { color: var(--link); font-weight: 700; }
.ht-chart { height: 240px; width: 100%; }
.ht-liq { display: grid; gap: 6px; margin-top: 10px; }
.ht-liq-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; align-items: center; gap: 6px 14px; font-size: 14px; }
.ht-liq-row .bar { display: block; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.ht-liq-row .bar i { display: block; height: 100%; border-radius: inherit; background: var(--c-teal); }
.ht-liq-row.is-locked .bar i { background: var(--ink-3); }
.ht-liq-row .v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ht-tag { display: inline-block; margin-top: 3px; }
@media (max-width: 720px) {
  .ht-liq-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ht-liq-row .bar { grid-column: 1 / -1; grid-row: 2; }
  .ht-chart { height: 200px; }
}

/* banka: účty, výpisy, pohyby, souhrn */
.bk-acc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; color: inherit; }
.bk-acc:hover { border-color: var(--brand); }
.bk-acc b { font-size: 15px; }
.bk-acc small { display: block; color: var(--ink-3); font-size: 12.5px; }
.bk-acc .bk-bal { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.bk-accs { display: grid; gap: 10px; }
.bk-tx td { vertical-align: top; }
.bk-tx .bk-who { font-weight: 700; }
.bk-tx .bk-msg { display: block; color: var(--ink-3); font-size: 12.5px; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-tx select { min-height: 32px; font-size: 13px; padding: 2px 8px; max-width: 190px; }
.bk-in { color: var(--up); }
.bk-out { color: var(--ink); }
.bk-months { display: grid; gap: 6px; }
.bk-month { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; font-size: 14px; }
.bk-month .bars { display: flex; flex-direction: column; gap: 3px; }
.bk-month .bars i { display: block; height: 7px; border-radius: 999px; }
.bk-month .bars i.in { background: var(--up); }
.bk-month .bars i.out { background: var(--down); }
.bk-month .v { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.bk-month .v small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; }
.bk-cats { display: grid; gap: 8px; }
.bk-cat { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) auto; align-items: center; gap: 6px 14px; font-size: 14px; }
.bk-cat .bar { display: block; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bk-cat .bar i { display: block; height: 100%; border-radius: inherit; background: var(--c-blue); }
.bk-cat .v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-cat .v small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; }
.bk-ai { white-space: pre-line; line-height: 1.6; }
.bk-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.bk-filters input, .bk-filters select { min-height: 36px; }
.bk-filters input[type="search"] { flex: 1 1 180px; min-width: 0; }
.bk-pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 10px; font-size: 13.5px; color: var(--ink-3); }
.bk-drop { border: 2px dashed var(--line); border-radius: 14px; padding: 18px; text-align: center; color: var(--ink-2); font-size: 14px; }
.bk-drop.is-over { border-color: var(--brand); background: var(--sel); }
.bk-imports li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.bk-imports li:last-child { border-bottom: 0; }
.bk-imports .muted { font-size: 12.5px; }
@media (max-width: 720px) {
  .bk-month { grid-template-columns: 70px minmax(0, 1fr) auto; }
  .bk-cat { grid-template-columns: minmax(0, 1fr) auto; }
  .bk-cat .bar { grid-column: 1 / -1; grid-row: 2; }
  .bk-tx .bk-msg { white-space: normal; }
}

/* banner „Tento měsíc“ nahoře na /banka (20. 10.): přišlo, odešlo, zbylo, pruh utraceno, kam šly přebytky, rezerva */
.bk-mesic .card-b { display: grid; gap: 12px; }
.bk-mnav { display: inline-flex; align-items: center; gap: 6px; }
.bk-mnav b { min-width: 118px; text-align: center; font-size: 14px; }
.bk-spend { display: grid; gap: 6px; }
.bk-spend-l { font-size: 13.5px; font-weight: 700; color: var(--up); }
.bk-spend .bar { display: block; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bk-spend .bar i { display: block; height: 100%; border-radius: inherit; background: var(--up); transition: width .3s; }
.bk-spend.is-warn .bar i { background: var(--warn); }
.bk-spend.is-bad .bar i { background: var(--down); }
.bk-spend.is-warn .bk-spend-l { color: var(--warn); }
.bk-spend.is-bad .bk-spend-l { color: var(--down); }
.bk-mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.bk-mgrid h3 { margin: 0 0 8px; font-size: 14px; }
.bk-flows { display: grid; gap: 8px; }
.bk-flow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto; align-items: center; gap: 6px 12px; font-size: 13.5px; }
.bk-flow .bar { display: block; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bk-flow .bar i { display: block; height: 100%; border-radius: inherit; background: var(--c-blue); }
.bk-flow.is-save .bar i { background: var(--c-teal); }
.bk-flow.is-inv .bar i { background: var(--c-violet); }
.bk-flow.is-neg .bar i { background: var(--down); }
.bk-flow .v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-rez-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.bk-rez-top b { font-size: 20px; font-variant-numeric: tabular-nums; }
.bk-rez-top span { color: var(--ink-2); font-size: 13.5px; }
.bk-rez-top em { display: block; width: 100%; font-style: normal; color: var(--ink-3); font-size: 12.5px; }
.bk-rez-note { margin: 8px 0 0; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
@media (max-width: 720px) {
  .bk-mgrid { grid-template-columns: 1fr; }
  .bk-flow { grid-template-columns: minmax(0, 1fr) auto; }
  .bk-flow .bar { grid-column: 1 / -1; grid-row: 2; }
}

/* zdravi.css */
/* Osobní finance (W2-05 až W2-10): příjmy a výdaje (/cashflow), finanční zdraví (/zdravi), pozorování (/pozorovani) a měsíční přehled (/briefing) a jejich karty Přehledu.
   Barvy jen z tokenů (app.css), takže světlý i tmavý režim fungují bez dalších pravidel. Mřížky se na telefonu skládají do jednoho sloupce, nic nepřetéká. */

/* ------------------------------------------------------------ příjmy a výdaje */
.cf-chart { height: 260px; }
@media (max-width: 520px) { .cf-chart { height: 220px; } }
.cf-table tr.cf-est td { color: var(--ink-3); }
.cf-table .ns-badges { margin-top: 4px; }
.cf-acts { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }

/* ------------------------------------------------------------ finanční zdraví */
.zd-hero .zd-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.zd-score { font-size: clamp(40px, 9vw, 60px); font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.zd-of { color: var(--ink-3); font-size: var(--fs-md); }
.zd-gauge { display: block; height: 10px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; margin: 12px 0 4px; }
.zd-gauge i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.zd-change { font-size: var(--fs-sm); color: var(--ink-2); margin: 6px 0 0; }
.zd-change ul { margin: 6px 0 0; padding-left: 18px; }
.zd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; align-items: stretch; }
@media (min-width: 1000px) { .zd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }          /* 20. 10.: šest karet ve dvou řadách po třech */
.zd-tipy { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 8%, var(--surface)), var(--surface)); }
.zd-tipy-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: var(--fs-sm); color: var(--ink-2); }
.zd-tipy-list li b { display: block; color: var(--ink); }
.zd-pil { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.zd-pil.is-weak { border-color: var(--warn); box-shadow: 0 0 0 1px var(--warn) inset; }
.zd-pil.is-missing { background: var(--surface-2); }
.zd-pil-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.zd-pil-h h3 { margin: 0; font-size: var(--fs-md); }
.zd-pil-h b { font-size: 22px; color: var(--ink); }
.zd-pil p { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); overflow-wrap: anywhere; }
.zd-pil .zd-w { font-size: var(--fs-xs); color: var(--ink-3); }
.zd-bar { display: block; height: 8px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.zd-bar i { display: block; height: 100%; border-radius: inherit; background: var(--up); }
.zd-bar.is-mid i { background: var(--warn); }
.zd-bar.is-low i { background: var(--down); }
.zd-krok { border-top: 1px dashed var(--line); padding-top: 8px; }
.zd-krok p { color: var(--ink); }
.zd-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.zd-opts .btn { white-space: normal; text-align: left; }
.zd-chart { height: 220px; }
.zd-parts { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.zd-parts li { border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px 10px; font-size: var(--fs-sm); background: var(--surface-2); }
.zd-parts li b { margin-left: 4px; }

/* karta Přehledu */
.zd-card-top { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.zd-card-score { font-size: 34px; line-height: 1; font-weight: 800; color: var(--ink); }
.zd-card-pil { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.zd-card-pil li { display: grid; grid-template-columns: minmax(0, 1fr) 70px 28px; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--ink-2); }
.zd-card-pil li.is-weak span:first-child { color: var(--ink); font-weight: 600; }
.zd-card-pil li b { text-align: right; color: var(--ink); }
.zd-mini { display: block; height: 6px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.zd-mini i { display: block; height: 100%; background: var(--brand); border-radius: inherit; }

/* ------------------------------------------------------------ pozorování */
.ins-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ins-item { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; align-items: start; }
.ins-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--ink-3); }
.ins-item.sev-warn .ins-dot { background: var(--warn); }
.ins-item.sev-notice .ins-dot { background: var(--brand); }
.ins-item.sev-info .ins-dot { background: var(--up); }
.ins-body p { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.ins-body .ins-why { color: var(--ink-3); font-size: var(--fs-sm); margin-top: 2px; }
.ins-body .ins-meta { color: var(--ink-3); font-size: var(--fs-xs); margin-top: 2px; }
.ins-acts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.ins-card .ins-acts .btn { padding-left: 8px; padding-right: 8px; }
.ins-item.is-off .ins-body p:first-child { color: var(--ink-2); }

/* ------------------------------------------------------------ měsíční přehled */
.bf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bf-head h2 { margin: 0; font-size: var(--fs-xl); }
.bf-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.bf-block { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 14px 16px; min-width: 0; }
.bf-block h3 { margin: 0 0 8px; font-size: var(--fs-md); }
.bf-block ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); }
.bf-block li { overflow-wrap: anywhere; }
.bf-block.bf-pozor { border-color: var(--line); }
.bf-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-opts .btn { white-space: normal; }
.bf-ok { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); color: var(--ink); }
.bf-arch { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bf-arch a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.bf-arch a:hover, .bf-arch a.on { background: var(--surface-2); }
.bf-arch small { color: var(--ink-3); }
.bf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 14px; align-items: start; }
@media (max-width: 900px) { .bf-layout { grid-template-columns: minmax(0, 1fr); } }

/* karta Přehledu */
.bf-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.bf-card-sum { margin: 0 0 6px; color: var(--ink-2); font-size: var(--fs-sm); }
.bf-card-list { margin: 0 0 10px; padding-left: 18px; color: var(--ink-2); font-size: var(--fs-sm); display: grid; gap: 4px; }

/* Měsíční přehled: obrazová část nahoře (21. 10. 2026) */
.bf-verdict { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.bf-verdict small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.bf-verdict b { display: block; font-size: 17px; line-height: 1.35; color: var(--ink); }
.bf-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-3); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ink-3) 16%, transparent); }
.bf-verdict.lvl-ok { border-color: color-mix(in srgb, var(--up) 35%, var(--line)); background: color-mix(in srgb, var(--up) 6%, var(--surface)); }
.bf-verdict.lvl-ok .bf-dot { background: var(--up); box-shadow: 0 0 0 5px color-mix(in srgb, var(--up) 18%, transparent); }
.bf-verdict.lvl-warn { border-color: color-mix(in srgb, var(--c-amber) 40%, var(--line)); background: color-mix(in srgb, var(--c-amber) 7%, var(--surface)); }
.bf-verdict.lvl-warn .bf-dot { background: var(--c-amber); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c-amber) 18%, transparent); }
.bf-verdict.lvl-bad { border-color: color-mix(in srgb, var(--down) 40%, var(--line)); background: color-mix(in srgb, var(--down) 6%, var(--surface)); }
.bf-verdict.lvl-bad .bf-dot { background: var(--down); box-shadow: 0 0 0 5px color-mix(in srgb, var(--down) 18%, transparent); }
.bf-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; margin: 0 0 12px; }
.bf-tile { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; position: relative; transition: border-color .15s ease, transform .15s ease; }
.bf-tile:hover { border-color: var(--brand); transform: translateY(-1px); }
.bf-tile span { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.bf-tile b { font-size: 20px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.bf-tile em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.bf-tile.lvl-ok::after, .bf-tile.lvl-warn::after, .bf-tile.lvl-bad::after { content: ""; position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; }
.bf-tile.lvl-ok::after { background: var(--up); }
.bf-tile.lvl-warn::after { background: var(--c-amber); }
.bf-tile.lvl-bad::after { background: var(--down); }
.bf-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; margin: 0 0 12px; }
.bf-charts .card { margin: 0; }
.bf-chart { width: 100%; height: 240px; }
.bf-kde-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin: 0 0 12px; }
.bf-kde-list { list-style: none; padding: 0 !important; }
.bf-kde-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.bf-kde-list li:last-child { border-bottom: 0; }
.bf-kde-list b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bf-chybi { margin: 0 0 12px; padding: 14px 16px; border-radius: var(--r-md); border: 1px dashed var(--line); background: var(--surface-2); }
.bf-chybi h3 { margin: 0 0 8px; font-size: var(--fs-md); }
.bf-chybi ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bf-chybi li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--ink-2); }

/* Měsíční přehled po oblastech a šipky mezi měsíci (22. 10. 2026) */
.bf-nav { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bf-sipka { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); font-size: 20px; line-height: 1; text-decoration: none; }
.bf-sipka:hover { border-color: var(--brand); color: var(--brand); }
.bf-sipka.is-off { opacity: .35; }
.bf-oblasti { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 16px 0; }
.bf-oblasti > .card { margin: 0; }
.bf-ob-top { display: grid; gap: 2px; margin-bottom: 10px; }
.bf-ob-big { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.bf-ob-top span { font-size: 13px; color: var(--ink-2); }
.bf-ob-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.bf-ob-num { display: grid; gap: 2px; }
.bf-ob-num small { font-size: 12.5px; color: var(--ink-3); }
.bf-ob-num b { font-size: 20px; font-weight: 800; }
.bf-ob-num span { font-size: 13px; font-weight: 600; margin-top: 4px; }
.bf-kruh { position: relative; width: 96px; height: 96px; }
.bf-kruh svg { width: 100%; height: 100%; display: block; }
.bf-kruh b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 17px; font-weight: 800; }
.bf-pruhy { display: grid; gap: 7px; }
.bf-pruh { display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; }
.bf-pruh span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.bf-pruh i { display: block; height: 9px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bf-pruh u { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.bf-pruh b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.bf-chip { font-size: 12.5px; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); }
.bf-chip b { color: var(--ink); }
.bf-ev { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.bf-ev li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); column-gap: 8px; }
.bf-ev time { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bf-ev small { grid-column: 2; color: var(--ink-3); font-size: 12px; }

/* screener.css */
/* Screener akcií ve stylu Finvizu: karty hotových hledání, panel filtrů se třemi záložkami, pohledy tabulky a export.
   Barvy jen z tokenů v app.css (světlý i tmavý režim), žádné pevné barvy. Markup: views/table_page.php, chování: js/screener.js. */

/* ---------- hotová hledání (každá s vysvětlením, co hledá) ---------- */
.scr-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 4px 0 10px; }
.scr-preset { display: grid; gap: 3px; align-content: start; min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, background-color .15s, transform .15s var(--ease); }
.scr-preset:hover { border-color: var(--brand); transform: translateY(-1px); }
.scr-preset b { font-size: 13.5px; font-weight: 800; }
.scr-preset span { font-size: 12.5px; line-height: 1.4; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scr-preset.on { border-color: var(--brand); background: var(--sel); }
.scr-preset.on span { color: var(--ink-2); }

/* ---------- panel filtrů ---------- */
.scr-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 0 0 12px; }
.scr-panel [hidden] { display: none !important; }
.scr-head { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; padding: 8px 10px; }
.scr-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 800; cursor: pointer; }
.scr-toggle:hover { background: var(--surface-2); }
.scr-chev { display: inline-flex; }
.scr-chev svg { transition: transform .2s var(--ease); }
.scr-toggle[aria-expanded="false"] .scr-chev svg { transform: rotate(-90deg); }
.scr-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: 11.5px; font-weight: 800; }
.scr-demo { font-size: 13px; font-weight: 700; color: var(--link); text-decoration: none; }
.scr-demo:hover { text-decoration: underline; }
.scr-reset { margin-left: auto; }
.scr-body { padding: 0 12px 14px; border-top: 1px solid var(--line-soft); }
.scr-panel.is-closed .scr-body { display: none; }
.scr-about { margin: 0 0 12px; max-width: 90ch; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.scr-about strong { color: var(--ink); }
.scr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px 12px; }
.scr-field { display: grid; gap: 4px; min-width: 0; }
.scr-field > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; color: var(--ink-3); }
.scr-sel { width: 100%; min-width: 0; height: 34px; padding: 0 8px; font-size: 13px; text-overflow: ellipsis; }
.scr-sel.is-set { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--surface)); font-weight: 700; }

/* ---------- pohledy tabulky a export ---------- */
.scr-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 10px; }
.scr-views { flex: none; }
.scr-note { flex: 1 1 220px; min-width: 0; font-size: 12.5px; }
.scr-export { margin-left: auto; }
.scr-down { display: inline-flex; transform: rotate(180deg); }

@media (max-width: 640px) {
  /* na telefonu je panel ve výchozím stavu sbalený, dokud ho člověk nerozbalí (.is-open) */
  .scr-panel:not(.is-open) .scr-body { display: none; }
  .scr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .scr-sel { height: 38px; }
  .scr-reset { margin-left: 0; }
  /* hotová hledání: vodorovně posuvný pruh uvnitř vlastního rámečku (stránka se nerozšíří) */
  .scr-presets { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; }
  .scr-preset { flex: 0 0 210px; scroll-snap-align: start; }
  .scr-export { margin-left: 0; }
}

.scr-tabs { margin: 10px 0 12px; }          /* vzhled záložek je v ui.css (blok M5) */

/* akcie.css */
/* Akcie ve stylu Finvizu a Simply Wall St: snapshot klíčových čísel (hlavní záložka), rozbor (sněhová vločka, férová hodnota, rizika, minulý výkon, zdraví, dividendy,
   vlastnictví, analytici) a záložka Zprávy a obchody. Barvy jen z proměnných v app.css, světlý i tmavý motiv, na telefonu (375 px) jeden sloupec bez vodorovného přetékání. */

/* ---------------------------------------------------------------- společné */
.rb, .zp { display: grid; gap: 14px; min-width: 0; }
.rb > *, .zp > * { min-width: 0; }
.rb-sec { padding: 0; overflow: hidden; }
.rb-sec > .card-h { padding-bottom: 2px; }
.rb-sec .card-b { padding-top: 8px; }
.rb-what { margin: 0 0 12px; color: var(--ink-2); font-size: 13.5px; line-height: 1.55; max-width: 78ch; }
.rb-what b { color: var(--ink); }
.rb-note { color: var(--ink-3); font-size: 12.5px; line-height: 1.5; margin: 10px 0 0; }
.rb-demo { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 12px; color: var(--ink-2); font-size: 13.5px; }
.rb-demo a { color: var(--link); font-weight: 700; }
.rb-empty { padding: 18px 4px; color: var(--ink-3); font-size: 13.5px; }
.rb-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rb-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rb-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: 10px; margin: 0 0 14px; }
.rb-tile.up b { color: var(--up); }
.rb-tile.down b { color: var(--down); }
.rb-chart { width: 100%; height: 240px; }
.rb-chart.tall { height: 300px; }
.rb-h3 { font-size: 13px; font-weight: 800; color: var(--ink-2); margin: 4px 0 8px; letter-spacing: .01em; }
.rb-h3 em { font-style: normal; font-weight: 600; color: var(--ink-3); }
.rb-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink-2); margin: 0 0 6px; }
.rb-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rb-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--brand)); display: inline-block; }

/* ---------------------------------------------------------------- sněhová vločka */
.rb-snow { display: grid; grid-template-columns: minmax(250px, 370px) minmax(0, 1fr); gap: 18px; align-items: start; }
.rb-radar { width: 100%; height: 330px; }
.rb-snow-note { margin: 0; text-align: center; font-size: 12.5px; color: var(--ink-3); }
.ax-list { display: grid; gap: 8px; min-width: 0; }
.ax { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.ax-h { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border: 0; background: transparent; text-align: left; cursor: pointer; min-height: 48px; }
.ax-h:hover { background: var(--surface-2); }
.ax-name { display: grid; gap: 1px; min-width: 0; }
.ax-name b { font-size: 14.5px; }
.ax-name span { color: var(--ink-3); font-size: 12px; line-height: 1.35; }
.ax-dots { display: inline-flex; gap: 3px; }
.ax-dots i { width: 11px; height: 11px; border-radius: 3px; background: var(--line); display: inline-block; }
.ax-dots i.on { background: var(--c, var(--brand)); }
.ax-score { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 2.6em; text-align: right; }
.ax-score small { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.ax-score.none { color: var(--ink-3); font-size: 12px; font-weight: 700; }
.ax-chev { transition: transform .2s var(--ease); color: var(--ink-3); display: inline-flex; }
.ax-h[aria-expanded="true"] .ax-chev { transform: rotate(180deg); }
.ax-body { padding: 2px 12px 12px; border-top: 1px solid var(--line-soft); }
.ax-note { margin: 10px 0 0; padding: 8px 10px; background: var(--bg-2); border-radius: 8px; color: var(--ink-2); font-size: 12.5px; }
.ck { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px 8px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); align-items: start; }
.ck:last-child { border-bottom: 0; }
.ck-i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; line-height: 1; margin-top: 1px; }
.ck.ok .ck-i { background: color-mix(in srgb, var(--up) 18%, transparent); color: var(--up); }
.ck.ne .ck-i { background: color-mix(in srgb, var(--down) 16%, transparent); color: var(--down); }
.ck.chybi .ck-i, .ck.nehodi .ck-i { background: var(--bg-2); color: var(--ink-3); }
.ck b { font-size: 13.5px; }
.ck p { margin: 2px 0 0; color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.ck small { display: block; margin-top: 3px; color: var(--ink-3); font-size: 11.8px; line-height: 1.4; }
.ck.chybi b, .ck.nehodi b { color: var(--ink-2); }
.ck-line { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.ck-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; background: var(--surface); color: var(--ink-2); cursor: help; }
.ck-chip i { width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; background: var(--bg-2); color: var(--ink-3); }
.ck-chip.ok i { background: color-mix(in srgb, var(--up) 20%, transparent); color: var(--up); }
.ck-chip.ne i { background: color-mix(in srgb, var(--down) 18%, transparent); color: var(--down); }

/* ---------------------------------------------------------------- férová hodnota */
.fv-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 6px; }
.fv-track { position: relative; height: 12px; border-radius: 8px; background: var(--bg-2); margin: 52px 10px 54px; border: 1px solid var(--line); }
.fv-band { position: absolute; top: -1px; bottom: -1px; border-radius: 8px; background: color-mix(in srgb, var(--brand) 32%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 60%, transparent); }
.fv-mark { position: absolute; top: -8px; bottom: -8px; width: 3px; border-radius: 2px; transform: translateX(-50%); background: var(--ink); }
.fv-mark.price { background: var(--accent); }
.fv-mark.fair { background: var(--brand); }
.fv-lab { position: absolute; transform: translateX(-50%); font-size: 12px; line-height: 1.25; text-align: center; white-space: nowrap; color: var(--ink-2); }
.fv-lab b { display: block; font-size: 13.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.fv-lab.above { bottom: 20px; }
.fv-lab.below { top: 20px; }
.fv-verdict { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.fv-verdict.up { color: var(--up); }
.fv-verdict.down { color: var(--down); }
.fv-models { display: grid; gap: 6px; margin-top: 4px; }
.fv-row { display: grid; grid-template-columns: minmax(130px, 200px) minmax(0, 1fr) 76px 40px; gap: 10px; align-items: center; font-size: 13px; }
.fv-row .nm { color: var(--ink-2); overflow-wrap: anywhere; }
.fv-row .bar { position: relative; height: 8px; border-radius: 5px; background: var(--bg-2); }
.fv-row .bar i { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: color-mix(in srgb, var(--brand) 55%, transparent); }
.fv-row .bar u { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--accent); text-decoration: none; }
.fv-row b { text-align: right; font-variant-numeric: tabular-nums; }
.fv-row em { font-style: normal; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- rizika a odměny */
.rk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rk-col { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.rk-col h3 { font-size: 14px; margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
.rk-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rk-col li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.rk-col li::before { content: "✓"; color: var(--up); font-weight: 800; }
.rk-col.watch li::before { content: "!"; color: var(--warn); }
.rk-col.watch h3 { color: var(--warn); }
.rk-col.good h3 { color: var(--up); }
.rk-none { color: var(--ink-3); font-size: 13.5px; }

/* ---------------------------------------------------------------- vodorovné pruhy (rozvaha, vlastnictví, doporučení) */
.hb { display: grid; gap: 7px; }
.hb-row { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) minmax(70px, auto); gap: 10px; align-items: center; font-size: 13px; }
.hb-row .nm { color: var(--ink-2); overflow-wrap: anywhere; }
.hb-row .bar { height: 12px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.hb-row .bar i { display: block; height: 100%; border-radius: 6px; background: var(--c, var(--brand)); min-width: 2px; }
.hb-row b { text-align: right; font-variant-numeric: tabular-nums; }
.seg-bar { display: flex; height: 22px; border-radius: 8px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); margin: 6px 0 8px; }
.seg-bar i { display: block; height: 100%; background: var(--c, var(--brand)); min-width: 1px; }
.seg-bar i + i { border-left: 1px solid var(--surface); }
.seg-key { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--ink-2); }
.seg-key span { display: inline-flex; gap: 6px; align-items: center; }
.seg-key i { width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--brand)); display: inline-block; }

/* ---------------------------------------------------------------- metriky (zdraví, dividendy) */
.rb-mt { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
.rb-mt-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; font-size: 13.5px; cursor: pointer; }
.rb-mt-row:hover, .rb-mt-row[aria-expanded="true"] { border-color: var(--brand); background: var(--sel); }
.rb-mt-row .k { color: var(--ink-2); }
.rb-mt-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rb-mt-tip { grid-column: 1 / -1; margin: 0; padding: 8px 10px; background: var(--bg-2); border-left: 3px solid var(--brand); border-radius: 6px; font-size: 12.5px; color: var(--ink-2); }

/* ---------------------------------------------------------------- snapshot (hlavní záložka) */
.sn-root { padding: 4px 14px 16px; display: grid; gap: 16px; }          /* klíčová čísla jako velká tabulka po částech (19. 10. večer) */
.sn-help { padding: 0 16px; }
.sn-wait { padding: 12px 0; }
.sn-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.sn-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 700; text-decoration: none; transition: border-color .15s, color .15s; }
.sn-nav a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.sn-nav a:hover { border-color: var(--brand); color: var(--brand); }
.sn-part { display: grid; gap: 10px; scroll-margin-top: 120px; }
.sn-part-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; padding: 0 2px; font-size: 18px; letter-spacing: -.015em; }
.sn-part-h small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.sn-sec { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.sn-sec h4 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 14px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); font-weight: 800; background: color-mix(in srgb, var(--brand) 6%, var(--surface)); border-bottom: 1px solid var(--line-soft); }
.sn-sec h4::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.sn-sec h4 small { margin-left: auto; font-size: 11px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink-3); }
.sn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); }
.sn-cell { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; min-height: 46px; padding: 9px 14px; border: 0; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background-color .15s; }
.sn-cell.has-bar { padding-bottom: 14px; }
.sn-cell:hover, .sn-cell[aria-expanded="true"] { background: var(--sel); }
.sn-cell .k { color: var(--ink-2); font-size: 13px; line-height: 1.25; min-width: 0; }
.sn-cell .v { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; font-size: 14px; }
.sn-cell .v.up { color: var(--up); }
.sn-cell .v.down { color: var(--down); }
.sn-cell .v.na { color: var(--ink-3); font-weight: 500; font-size: 12.5px; }
.sn-bar { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.sn-bar em { display: block; height: 100%; border-radius: 2px; background: var(--brand); }
.sn-tip { grid-column: 1 / -1; margin: 0; padding: 10px 14px; background: color-mix(in srgb, var(--brand) 6%, var(--surface)); border-left: 3px solid var(--accent); font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.sn-foot { margin: 0; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.sn-foot a { color: var(--link); font-weight: 700; }
@media (max-width: 1100px) { .sn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .sn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sn-grid { grid-template-columns: 1fr; } .sn-cell { min-height: 42px; } }
/* přepínače událostí nad grafem ceny: D dividendy, E výsledky, tečka insideři, kosočtverec moje */
.ev-seg button i { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 6px; border-radius: 50%; font-style: normal; font-size: 9px; font-weight: 800; line-height: 1; color: #fff; vertical-align: -3px; }
.ev-seg .ev-d { background: var(--accent); }
.ev-seg .ev-e { background: var(--brand); }
.ev-seg .ev-i { width: 10px; height: 10px; background: linear-gradient(90deg, var(--up) 50%, var(--down) 50%); }
.ev-seg .ev-m { width: 10px; height: 10px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
.ev-seg button:not(.on) i { opacity: .35; }

/* ---------------------------------------------------------------- zprávy a obchody */
.zp-sec { padding: 0; overflow: hidden; }
.zp-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; }
.zp-bar .input, .zp-bar .select { width: auto; height: 34px; border-radius: 10px; font-size: 13.5px; max-width: 100%; }
.zp-bar .input { flex: 1 1 200px; max-width: 320px; }
.zp-bar .select { min-width: 190px; }
.zp-count { color: var(--ink-3); font-size: 12.5px; margin-left: auto; }
.zp-news { list-style: none; margin: 0; padding: 0; display: grid; }
.zp-news li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; align-items: baseline; }
.zp-news li:last-child { border-bottom: 0; }
.zp-news time { color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.zp-news a { color: var(--ink); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.zp-news a:hover { color: var(--link); text-decoration: underline; }
.zp-news small { display: block; color: var(--ink-3); font-size: 12px; font-weight: 500; margin-top: 1px; }
.zp-tbl .tbl td, .zp-tbl .tbl th { padding: 8px 10px; font-size: 13px; }
.zp-tbl .tbl td.wrap, .zp-tbl .tbl th.wrap { white-space: normal; min-width: 130px; }
.tag-buy { background: color-mix(in srgb, var(--up) 16%, transparent); color: var(--up); }
.tag-sell { background: color-mix(in srgb, var(--down) 15%, transparent); color: var(--down); }
.tag-mut { background: var(--bg-2); color: var(--ink-2); }

/* ---------------------------------------------------------------- telefon a tablet */
@media (max-width: 860px) {
  .rb-snow { grid-template-columns: minmax(0, 1fr); }
  .rb-radar { height: 300px; }
  .rb-grid2, .rb-grid3, .rk { grid-template-columns: minmax(0, 1fr); }
  .fv-row { grid-template-columns: minmax(0, 1fr) 70px 38px; }
  .fv-row .bar { grid-column: 1 / -1; grid-row: 2; }
  .hb-row { grid-template-columns: minmax(0, 1fr) minmax(64px, auto); }
  .hb-row .bar { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 520px) {
  .rb-chart { height: 220px; }
  .rb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ax-h { grid-template-columns: minmax(0, 1fr) auto; }
  .ax-dots { display: none; }
  .zp-news li { grid-template-columns: minmax(0, 1fr); }
  .sn-root { padding-left: 10px; padding-right: 10px; }
  .fv-track { margin: 54px 44px 58px; }
}

/* insideři, analytici a lidé z platformy (stock_people.js) */
.ia-root { display: block; }
.ia-grid { margin: 0; }
.ia-box, .ia-community { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface); display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; min-width: 0; }
.ia-community { padding: 0; border: 0; background: none; }
.ia-community > .community { margin: 0; box-shadow: none; }
.ia-box h3 { margin: 0; font-size: 15px; }
.ia-box h4 { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); font-weight: 700; }
.ia-box p { margin: 0; }
.ia-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ia-kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ia-kpi-btn { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s; }          /* období insiderů: 3, 6, 12 měsíců */
.ia-kpi-btn:hover { border-color: var(--brand); }
.ia-kpi-btn.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); box-shadow: inset 0 -3px 0 var(--accent); }
.ia-kpi-btn .k { font-size: 12.5px; color: var(--ink-2); }
.ia-kpi-btn b { font-size: 17px; font-variant-numeric: tabular-nums; }
.ia-kpi-btn em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.ia-sub { margin: 12px 0 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.chart-seg { height: 320px; }
@media (max-width: 640px) { .ia-kpis-3 { grid-template-columns: 1fr; } }
.ia-kpi .up, .ia-target .up { color: var(--up); } .ia-kpi .down, .ia-target .down { color: var(--down); }
.ia-say { font-size: 13.5px; color: var(--ink-2); }
.ia-tbl th, .ia-tbl td { padding: 6px 8px; font-size: 13px; }
.ia-tbl .sub { display: block; font-size: 11.5px; color: var(--ink-3); }
.ia-target { display: grid; gap: 2px; }
.ia-target .k { font-size: 12px; color: var(--ink-3); }
.ia-target b { font-size: 22px; font-variant-numeric: tabular-nums; }
.ia-target em { font-style: normal; font-size: 13px; }
.ia-legend { font-size: 12.5px; }
.ia-range { position: relative; height: 12px; border-radius: 999px; background: var(--surface-2, color-mix(in srgb, var(--ink) 6%, var(--surface))); margin: 6px 0 2px; }
.ia-range-span { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: color-mix(in srgb, var(--brand) 35%, transparent); }
.ia-mark { position: absolute; top: -4px; bottom: -4px; width: 3px; border-radius: 2px; transform: translateX(-1px); }
.ia-mark.mean { background: var(--brand); } .ia-mark.now { background: var(--ink); }
.ia-cons { font-weight: 700; }
.ia-dist { display: flex; height: 22px; border-radius: 8px; overflow: hidden; gap: 2px; }
.ia-seg { display: grid; place-items: center; min-width: 22px; font-style: normal; font-size: 11.5px; color: #fff; font-weight: 700; }
.ia-seg.sb { background: var(--up); } .ia-seg.b { background: color-mix(in srgb, var(--up) 55%, var(--ink-3)); } .ia-seg.h { background: var(--ink-3); } .ia-seg.s { background: color-mix(in srgb, var(--down) 55%, var(--ink-3)); } .ia-seg.ss { background: var(--down); }          /* 23. 10. 2026: pět stupňů doporučení z tokenů růst a pokles, mezistupně mícháním s šedou */
.ia-acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 13px; }
.ia-acts .sub { color: var(--ink-3); font-size: 12px; }
.ia-hist { position: relative; padding-top: 22px; }
.ia-hist-bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.ia-hbar { flex: 1; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--brand) 45%, transparent); min-width: 6px; }
.ia-hist-ax { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.ia-vmark { position: absolute; top: 0; bottom: 18px; width: 0; border-left: 2px solid var(--ink-2); }
.ia-vmark span { position: absolute; top: 0; left: 4px; font-size: 10.5px; font-style: normal; white-space: nowrap; color: var(--ink-2); }
.ia-vmark.flip span { left: auto; right: 4px; }          /* značka u pravého okraje má popisek vlevo od čáry, ať nepřeteče kartu */
.ia-vmark.now { border-color: var(--ink); } .ia-vmark.med { border-color: var(--brand); } .ia-vmark.med span { color: var(--brand); }
.ia-vmark.mod { border-color: var(--c-amber); } .ia-vmark.mod span { color: var(--c-amber); }
.ia-vmark.me { border-color: var(--up); } .ia-vmark.me span { color: var(--up); }

/* vlastní přepínač období u každého grafu financí */
.card.metric .seg-period { margin-left: auto; }

/* tok výsledovky (Sankey, assets/js/tok.js) */
.flow-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.flow-time { display: flex; align-items: center; gap: 6px; flex: 1 1 320px; min-width: 0; }          /* období jako přepínač ve stylu Kvartál, Rok, TTM (21. 10. 2026) */
.flow-time[hidden] { display: none; }
.flow-obdobi { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; scroll-snap-type: x proximity; }
.flow-obdobi::-webkit-scrollbar { display: none; }
.flow-obdobi button { flex: none; scroll-snap-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.flow-step { width: 32px; height: 32px; font-size: 20px; line-height: 1; flex: none; }
.flow-step:disabled { opacity: .35; cursor: default; }
.flow-chart { height: 440px; width: 100%; }
.flow-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 10px; }
/* výčet s pruhy místo Sankeye na úzké obrazovce */
.flow-list { display: grid; gap: 8px; }
.flow-h { margin: 8px 0 0; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.flow-row { display: grid; gap: 4px; }
.flow-row.sub { padding-left: 16px; }
.flow-row-h { display: grid; grid-template-columns: 14px 1fr auto 44px; align-items: baseline; gap: 6px; font-size: 14px; }
.flow-row-h .sg { color: var(--ink-3); font-weight: 800; }
.flow-row-h .nm { min-width: 0; overflow-wrap: anywhere; }
.flow-row-h b { font-variant-numeric: tabular-nums; font-weight: 800; }
.flow-row-h em { font-style: normal; text-align: right; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.flow-row.k-profit .nm, .flow-row.k-rev .nm { font-weight: 800; }
.flow-track { height: 8px; border-radius: 4px; background: var(--surface-2, var(--line)); overflow: hidden; }
.flow-track i { display: block; height: 100%; border-radius: 4px; background: var(--c-blue); }
.flow-row.k-cost .flow-track i { background: var(--down); }
.flow-row.k-profit .flow-track i { background: var(--up); }
.flow-row.k-seg .flow-track i { background: var(--c-violet); }
.flow-row.k-src .flow-track i { background: var(--c-teal); }
.flow-row.k-loss .flow-track i { background: var(--c-amber); }

/* překvapení zisku po čtvrtletích (stock_people.js): sloupce nahoru lepší než odhad, dolů horší */
.ia-surp { display: flex; align-items: flex-end; gap: 6px; height: 74px; margin-top: 10px; }
.ia-surp-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 3px; }
.ia-surp-col i { display: block; border-radius: 3px 3px 0 0; background: var(--line); }
.ia-surp-col i.up { background: var(--up); }
.ia-surp-col i.down { background: var(--down); }
.ia-surp-col span { font-size: 10.5px; color: var(--ink-3); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: clip; }

/* věcné shrnutí pod hlavičkou akcie */
.co-lead { max-width: 80ch; margin: 10px 2px 0; font-size: 14px; line-height: 1.55; }

/* souvislosti akcie: trh, sektor na mapě, podobné firmy (vnitřní odkazy, blok B5) */
.souv { margin-top: 14px; padding: 18px 22px; }
.souv h2 { font-size: 18px; margin-bottom: 10px; }
.souv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.souv-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 14px; line-height: 1.5; }
.souv-list .muted { flex: 0 0 120px; font-size: 12.5px; }
.souv-list a { color: var(--link); text-decoration: none; font-weight: 600; }
.souv-list a:hover { text-decoration: underline; }
a.tag { text-decoration: none; }
a.tag:hover { text-decoration: underline; }
@media (max-width: 640px) { .souv { padding: 16px; } .souv-list .muted { flex-basis: 100%; } }

/* firmy českého trhu jako odkazy pod tabulkou (blok B5) */
.trh-odkazy { margin-top: 16px; padding: 16px 20px; }
.trh-odkazy h2 { font-size: 16px; margin: 0 0 10px; }
.trh-odkazy ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.trh-odkazy a { color: var(--link); text-decoration: none; font-size: 14px; }
.trh-odkazy a:hover { text-decoration: underline; }

/* krátké pozice v čase: sloupce počtu akcií, poslední zvýrazněný (blok A7) */
.ia-si { gap: 3px; }
.ia-si .ia-surp-col i { background: color-mix(in srgb, var(--c-violet) 45%, var(--surface)); }
.ia-si .ia-surp-col i.on { background: var(--c-violet); }
.ia-tbl .sub.up { color: var(--up); } .ia-tbl .sub.down { color: var(--down); }
.ia-si .ia-surp-col span { overflow: visible; }

/* pás klíčových ukazatelů (19. 10. v noci, Vojta: ne dvě řady s dírou): boxy vyplní řádek, zbytek je vycentrovaný */
.company .statrow:not(.live-row) { display: flex; flex-wrap: wrap; justify-content: center; }
.company .statrow:not(.live-row) > .stat { flex: 1 1 150px; max-width: 300px; min-width: 0; }

/* ---------- 20. 10. 2026: stránka akcie podle Vojty (16 stejných ukazatelů se skóre, fundamenty jako pásy, insideři bez děr, O společnosti, Prozkoumejte dál, karta grafu) ---------- */
.company .statrow:not(.live-row) { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.company .statrow:not(.live-row) > .stat { max-width: none; min-height: 76px; }
.stat-score { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.stat-score b { color: var(--brand); }
.score-bar { display: block; height: 4px; margin-top: 7px; border-radius: 2px; background: var(--line); overflow: hidden; }
.score-bar em { display: block; height: 100%; border-radius: 2px; background: var(--brand); }
.stat-score.grade-a .score-bar em, .stat-score.grade-b .score-bar em { background: var(--up); }
.stat-score.grade-d .score-bar em, .stat-score.grade-e .score-bar em, .stat-score.grade-f .score-bar em { background: var(--down); }
@media (max-width: 1300px) { .company .statrow:not(.live-row) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .company .statrow:not(.live-row) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sn-part-h { padding: 10px 14px; border-radius: 12px; color: var(--stage-ink); background: var(--stage); }
.sn-part-h small { color: rgba(255, 255, 255, .82); }
.sn-sec h4 { background: color-mix(in srgb, var(--brand) 7%, var(--surface)); }
.ia-grid { --ia-cols: 3; display: grid; grid-template-columns: repeat(var(--ia-cols), minmax(0, 1fr)); grid-auto-rows: 8px; grid-auto-flow: row dense; column-gap: 12px; align-items: start; }          /* 20. 10.: dlaždice skládá skript do nejkratšího sloupce (stock_people.js layoutIa), žádné díry */
.ia-grid > * { min-width: 0; margin: 0; }
@media (min-width: 1101px) { .ia-grid { --ia-cols: 2; } }          /* 21. 10. 2026: dva široké sloupce místo tří úzkých */
@media (max-width: 1100px) { .ia-grid { --ia-cols: 2; } }
/* banner sekce Insideři, analytici a lidé (21. 10. 2026) ve stylu Rozboru: věta vlevo, dlaždice s malým grafem vpravo */
.ia-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: 18px; align-items: center; margin: 0 0 14px; padding: 20px 24px; border-radius: 16px;
  background: var(--stage); color: var(--stage-ink); box-shadow: 0 10px 30px color-mix(in srgb, var(--brand-deep) 18%, transparent); }
.ia-hero-k { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.ia-hero h3 { margin: 10px 0 0; font-size: 19px; line-height: 1.3; color: #fff; }
.ia-hero-t { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.ia-hero-tile { display: grid; gap: 4px; align-content: start; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font: inherit; text-align: left; cursor: pointer; min-width: 0; transition: background-color .15s; }
.ia-hero-tile:hover { background: rgba(255, 255, 255, .2); }
.ia-hero-tile .k { font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ia-hero-tile b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ia-hero-tile b.up { color: var(--stage-up); } .ia-hero-tile b.down { color: var(--stage-down); }
.ia-hero-tile small { font-size: 11.5px; color: rgba(255, 255, 255, .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ia-split { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.ia-split i { display: block; min-width: 3px; }
.ia-split i.up { background: var(--up); } .ia-split i.down { background: var(--down); }
.ia-split i.sb { background: var(--up); } .ia-split i.b { background: color-mix(in srgb, var(--up) 55%, var(--ink-3)); } .ia-split i.h { background: var(--ink-3); } .ia-split i.s { background: color-mix(in srgb, var(--down) 55%, var(--ink-3)); } .ia-split i.ss { background: var(--down); } .ia-split i.o { background: var(--line); }
.ia-hero .ia-split { background: rgba(255, 255, 255, .18); }
.ia-hero .ia-split i.up { background: var(--stage-up); } .ia-hero .ia-split i.down { background: var(--stage-down); }
.ia-split-w { display: grid; gap: 6px; }
.ia-split-leg { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; font-weight: 700; }
.ia-split-leg .up { color: var(--up); } .ia-split-leg .down { color: var(--down); }
.ia-split-leg .me, .ia-split-leg .ix { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.ia-split-leg .me::before, .ia-split-leg .ix::before { content: ''; width: 10px; height: 6px; border-radius: 3px; background: var(--brand); }
.ia-split-leg .ix::before { background: var(--ink-3); }
.ia-split-own { height: 12px; }
.ia-dots { display: flex; gap: 4px; }
.ia-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.ia-dots i.up { background: var(--stage-up); } .ia-dots i.down { background: var(--stage-down); }
.ia-vs { display: grid; gap: 6px; }
.ia-vs-row { display: grid; grid-template-columns: 78px minmax(0, 1fr) 62px minmax(0, 1fr) 56px; gap: 8px; align-items: center; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ia-vs-l { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ia-vs-row b { text-align: right; } .ia-vs-row b.up { color: var(--up); } .ia-vs-row b.down { color: var(--down); }
.ia-vs-ix { text-align: right; color: var(--ink-3); }
.ia-vs-bar { position: relative; height: 8px; border-radius: 4px; background: var(--surface-2); }
.ia-vs-bar::after { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--line); }
.ia-vs-bar i { position: absolute; left: 50%; top: 0; bottom: 0; border-radius: 4px; background: var(--brand); }
.ia-vs-bar i.ix { background: var(--ink-3); }
.ia-vs-bar i.neg { left: auto; right: 50%; }
.ia-vs-bar i.me.neg { background: var(--down); }
@media (max-width: 900px) { .ia-hero { grid-template-columns: 1fr; padding: 16px; } }
@media (max-width: 520px) { .ia-vs-row { grid-template-columns: 60px minmax(0, 1fr) 52px; } .ia-vs-row > :nth-child(4), .ia-vs-row > :nth-child(5) { display: none; } }
@media (max-width: 700px) { .ia-grid { --ia-cols: 1; } }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px 28px; align-items: start; }
.about-text p { font-size: 15px; line-height: 1.6; }
.about .facts { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0; }
.about .facts > div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.xsell { margin-top: 18px; }
.xsell-h { margin: 0 0 10px; font-size: 18px; }
.xsell-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.xsell-tile { display: grid; gap: 4px; align-content: start; padding: 16px 18px; border-radius: 16px; color: var(--stage-ink); text-decoration: none; background: var(--stage); box-shadow: 0 12px 26px -18px color-mix(in srgb, var(--brand-deep) 60%, transparent); transition: transform .15s var(--ease); }
.xsell-tile:hover { transform: translateY(-2px); color: #fff; }
.xsell-tile.x-screener { background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 60%, #00b4d8 100%); }
.xsell-tile.x-cal { background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 55%, var(--accent) 170%); }
.xsell-tile.x-kom { background: linear-gradient(135deg, #1a0d4a 0%, #4c3fd6 65%, #8b5cf6 100%); }
.xsell-k { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; opacity: .9; }
.xsell-tile b { font-size: 17px; line-height: 1.25; letter-spacing: -.01em; }
.xsell-s { font-size: 13px; opacity: .9; }
.xsell-sim { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; }
.xsell-sim .chip { text-decoration: none; }
@media (max-width: 1000px) { .xsell-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .xsell-grid { grid-template-columns: 1fr; } }
.tt-price { min-width: 200px; }
/* karty událostí v bublině grafu ceny (20. 10. večer): výsledky proti odhadu, dividenda s výnosem, insideři sečtení po dnech, vlastní obchody */
.tt-ev { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); max-width: 360px; white-space: normal; }
.tt-ev-h { display: flex; align-items: center; gap: 7px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.tt-ev-h i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.tt-ev-t { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.tt-ev-t td { padding: 2px 0; color: var(--ink-2); vertical-align: top; }
.tt-ev-t td.n { text-align: right; padding-left: 12px; color: var(--ink); font-weight: 700; white-space: nowrap; }
.tt-ev-t tr.tt-ev-hr td { font-size: 11px; font-weight: 700; color: var(--ink-3); padding-bottom: 3px; }
.tt-ev-t td.n.up { color: var(--up); }
.tt-ev-t td.n.down { color: var(--down); }
.tt-ev-f { margin-top: 4px; font-size: 11.5px; color: var(--ink-3); }
.tt-big { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 6px; font-size: 18px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.tt-chg { font-size: 12.5px; font-weight: 800; }
.tt-chg.up { color: var(--up); }
.tt-chg.down { color: var(--down); }
.ev-seg .ev-v { background: var(--ink-3); }
.ev-seg .ev-m50 { background: var(--accent); }
.ev-seg .ev-m200 { background: var(--c-violet); }

/* měření mezi dvěma body grafu (20. 10. 2026): řádek pod přepínači, tlačítko Zrušit, jemná nápověda */
.readout .mark-hint { margin-left: 10px; color: var(--ink-3); font-size: 12px; }
.readout .mark-hint::before { content: '·'; margin-right: 10px; }
.readout.has-mark { color: var(--ink-2); }
.readout .mark-x { margin-left: 8px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 12px; cursor: pointer; }
.readout .mark-x:hover { border-color: var(--accent); color: var(--accent-text); }
@media (max-width: 700px) { .readout .mark-hint { display: none; } }

/* záložka Alerty jako banner (20. 10. 2026): modrý pruh s dnešními ukazateli, pod ním formulář, pravidla a historie */
.al-tab .al-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; }
.al-col { display: grid; gap: 16px; align-content: start; }
.al-banner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: center; margin: 0 0 16px; padding: 22px 26px; border-radius: 16px;
  background: var(--stage); color: var(--stage-ink); box-shadow: 0 10px 30px color-mix(in srgb, var(--brand-deep) 18%, transparent); }
.al-banner-k { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.al-banner h2 { margin: 10px 0 6px; font-size: 22px; line-height: 1.2; color: #fff; }
.al-banner p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 13.5px; line-height: 1.5; max-width: 52ch; }
.al-ind { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.al-ind > div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); min-width: 0; }
.al-ind > div span { display: block; font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-ind > div b { display: block; margin-top: 2px; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }
.al-ind > div b.up { color: var(--stage-up); }
.al-ind > div b.down { color: var(--stage-down); }
.al-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.al-hist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.al-hist li time { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.al-hist li b { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-hist li b small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; white-space: normal; }
.al-hist li .al-val { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.al-hist li .al-mail { margin-left: 6px; font-size: 11px; color: var(--ink-3); }
.al-form optgroup { font-style: normal; font-weight: 700; color: var(--ink-3); }
.al-form .al-now { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); font-size: 12px; color: var(--ink-2); }
.al-form .al-now b { color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .al-banner { grid-template-columns: 1fr; padding: 18px; } .al-tab .al-grid { grid-template-columns: 1fr; } }

/* Rozbor jako bannery (20. 10. 2026): pruh nahoře, vysvětlivky pod ikonou i */
.rb-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: center; margin: 0 0 14px; padding: 22px 26px; border-radius: 16px;
  background: var(--stage); color: var(--stage-ink); box-shadow: 0 10px 30px color-mix(in srgb, var(--brand-deep) 18%, transparent); }
.rb-hero-k { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.rb-hero h2 { margin: 10px 0 6px; font-size: 22px; line-height: 1.2; color: #fff; }
.rb-hero p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 13.5px; line-height: 1.5; max-width: 52ch; }
.rb-hero-t { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.rb-hero-t > div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); min-width: 0; }
.rb-hero-t > div span { display: block; font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-hero-t > div b { display: block; margin-top: 2px; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; white-space: nowrap; }
.rb-hero-t > div b.up { color: var(--stage-up); }
.rb-hero-t > div b.down { color: var(--stage-down); }
.rb-sec > .card-h h2 { display: inline-flex; align-items: center; gap: 8px; }
.rb-info { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-3); font: 700 12px/1 Georgia, serif; cursor: help; padding: 0; flex: none; }
.rb-info:hover, .rb-info[aria-expanded="true"] { border-color: var(--brand); color: var(--brand); }
.rb-what { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
@media (max-width: 900px) { .rb-hero { grid-template-columns: 1fr; padding: 18px; } }

/* Superinvestoři (/superinvestori, lib/superinvestori.php, 22. 10. 2026) */
.si-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; align-items: start; }
.si-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.si-row > .card { margin: 0; }
@media (max-width: 1000px) { .si-row, .si-row-3 { grid-template-columns: minmax(0, 1fr); } }
.si-bar { display: grid; grid-template-columns: auto minmax(0, 9em) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; color: var(--ink); text-decoration: none; }
.si-bar:hover b { color: var(--link); }
.si-bar-n { display: grid; min-width: 0; }
.si-bar-n b { font-size: 13.5px; }
.si-bar-n small, .si-who small, .si-top5 small { color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.si-bar i, .si-sek i, .si-mini { display: block; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.si-bar u, .si-sek u, .si-mini u { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.si-bar u.is-up { background: var(--up); }
.si-bar-v { font-size: 13px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.si-mini { width: 80px; height: 5px; margin: 5px 0 0 auto; }
.si-who { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.si-who span:last-child { display: grid; }
.si-av { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--sel); color: var(--brand); font-weight: 800; font-size: 13px; }
.si-av-lg { width: 72px; height: 72px; font-size: 24px; }
.si-top { display: inline-flex; gap: 4px; }
.si-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.si-badge.is-up { background: color-mix(in srgb, var(--up) 14%, var(--surface)); color: var(--up); }
.si-badge.is-down { background: color-mix(in srgb, var(--down) 14%, var(--surface)); color: var(--down); }
.si-badge.is-mid { background: color-mix(in srgb, var(--warn) 16%, var(--surface)); color: var(--warn); }
.si-head .card-b { display: grid; gap: 18px; }
.si-head-who { display: flex; gap: 16px; align-items: center; }
.si-head-who h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.si-head-who p { margin: 2px 0 0; }
.si-styl { font-size: 14px; color: var(--ink-2); }
.si-stats { display: flex; flex-wrap: wrap; gap: 12px 36px; }
.si-stats div { display: grid; }
.si-stats b { font-size: 20px; font-weight: 800; }
.si-stats small { font-size: 12.5px; color: var(--ink-3); }
.si-top5 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.si-top5 a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.si-top5 a span { display: grid; }
.si-sek { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr) 4em; gap: 10px; align-items: center; padding: 5px 0; font-size: 13.5px; }
.si-sek span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.si-sek b { text-align: right; font-variant-numeric: tabular-nums; }
.si-chov { display: grid; justify-items: center; gap: 8px; }
.si-gauge { width: 100%; max-width: 230px; height: auto; }
.si-chov-t { font-size: 18px; font-weight: 800; }
.si-chov-n { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 12.5px; }
.si-chov-n span { padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); }
.si-chov-n .is-up { color: var(--up); background: color-mix(in srgb, var(--up) 12%, var(--surface)); }
.si-chov-n .is-down { color: var(--down); background: color-mix(in srgb, var(--down) 12%, var(--surface)); }
.si-vyvoj { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; align-items: end; min-height: 200px; }
.si-vcol { display: grid; justify-items: center; gap: 6px; }
.si-vcol span { font-size: 11px; font-weight: 700; white-space: nowrap; }
.si-vcol i { display: flex; align-items: flex-end; width: 34px; height: 130px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.si-vcol u { display: block; width: 100%; border-radius: 8px; background: var(--up); }
.si-vcol small { font-size: 11.5px; color: var(--ink-3); }
.si-mini-note, .si-note { font-size: 12.5px; }

/* Superinvestoři: nákupy a prodeje všech dohromady s přepínačem období (bez JavaScriptu přes skrytá tlačítka) a aktivita po čtvrtletích (22. 10. 2026) */
.si-toky { margin-bottom: 16px; }
.si-toky .card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.si-okno-r { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.si-okno-seg { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 14px; border-radius: 99px; background: var(--surface-2); }
.si-okno-seg label { padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.si-okno-seg label:hover { color: var(--ink); }
.si-okno-p { display: none; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr) minmax(0, 1.2fr); gap: 22px; align-items: start; }
#si-okno-1:checked ~ .si-okno-p-1, #si-okno-2:checked ~ .si-okno-p-2, #si-okno-4:checked ~ .si-okno-p-4, #si-okno-8:checked ~ .si-okno-p-8 { display: grid; }
#si-okno-1:checked ~ .si-okno-seg label[for="si-okno-1"], #si-okno-2:checked ~ .si-okno-seg label[for="si-okno-2"], #si-okno-4:checked ~ .si-okno-seg label[for="si-okno-4"], #si-okno-8:checked ~ .si-okno-seg label[for="si-okno-8"] { background: var(--surface); color: var(--brand); box-shadow: 0 1px 2px rgba(15, 30, 70, .12); }
#si-okno-1:focus-visible ~ .si-okno-seg label[for="si-okno-1"], #si-okno-2:focus-visible ~ .si-okno-seg label[for="si-okno-2"], #si-okno-4:focus-visible ~ .si-okno-seg label[for="si-okno-4"], #si-okno-8:focus-visible ~ .si-okno-seg label[for="si-okno-8"] { outline: 2px solid var(--brand); outline-offset: 1px; }
.si-okno-p h3 { margin: 0 0 8px; font-size: 14.5px; font-weight: 800; }
.si-chov-vsichni { padding: 12px; border-radius: 14px; background: var(--surface-2); }
.si-chov-sum { display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.si-chov-sum span, .si-akt-key span { display: inline-flex; align-items: center; gap: 6px; }
.si-chov-sum i, .si-akt-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.si-chov-sum i.is-up, .si-akt-key i.is-up { background: var(--up); }
.si-chov-sum i.is-down, .si-akt-key i.is-down { background: var(--down); }
.si-bar u.is-down { background: var(--down); }
.si-bar-v.is-up { color: var(--up); }
.si-bar-v.is-down { color: var(--down); }
.si-tok-col { min-width: 0; }
.si-akt { margin-bottom: 16px; }
.si-akt .card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.si-akt-key { display: inline-flex; gap: 14px; font-size: 12.5px; color: var(--ink-2); }
.si-akt-g { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; align-items: end; }
.si-akt-col { display: grid; justify-items: center; gap: 4px; }
.si-akt-col i { display: flex; width: min(64px, 70%); height: 90px; }
.si-akt-up { align-items: flex-end; border-bottom: 1px solid var(--line); }
.si-akt-down { align-items: flex-start; }
.si-akt-col u { display: block; width: 100%; }
.si-akt-up u { background: var(--up); border-radius: 8px 8px 0 0; }
.si-akt-down u { background: var(--down); border-radius: 0 0 8px 8px; opacity: .85; }
.si-akt-v { font-size: 11.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.si-akt-v.is-up { color: var(--up); }
.si-akt-v.is-down { color: var(--down); }
.si-akt-col small { font-size: 12px; color: var(--ink-3); font-weight: 700; }
@media (max-width: 1100px) { .si-okno-p { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .si-chov-vsichni { grid-column: 1 / -1; } }
@media (max-width: 700px) { .si-okno-p { grid-template-columns: minmax(0, 1fr); } .si-akt-col i { height: 64px; } }

/* věcný odstavec pod hlavičkou fondu, měny, indexu, komodity a krypta (lib/seo_lokalni.php pt_seo_titul_odstavec, 23. 10. 2026) */
.co-fakta { margin: 12px 4px 0; color: var(--ink-3); font-size: 14px; line-height: 1.55; max-width: 78ch; }
.co-fakta a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ai.css */
/* „Zeptej se svých peněz“ (views/ai.php, assets/js/ai_zeptej.js). Barvy jen z tokenů motivu. */
.ai-ask { padding: 18px; display: grid; gap: 14px; }
.ai-label { display: block; font-weight: 700; margin-bottom: 6px; }
.ai-row { display: flex; gap: 8px; }
.ai-row input { flex: 1; min-width: 0; height: var(--h-lg); padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.ai-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.ai-row .btn { min-height: var(--h-lg); }
.ai-examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ai-limit { margin: 8px 0 0; font-size: 13px; }
.ai-answer { padding: 16px 18px; border-radius: var(--radius); background: var(--surface-2); display: grid; gap: 10px; }
.ai-q { margin: 0; color: var(--ink-2); font-size: 14px; }
.ai-a { margin: 0; font-size: 16.5px; line-height: 1.6; }
.ai-a b { color: var(--brand); }
.ai-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; }
.ai-link { color: var(--link); font-weight: 700; text-decoration: none; }
.ai-link:hover { text-decoration: underline; }
.ai-more { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-err { margin: 0; color: var(--down); }
.ai-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ai-hist li { padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.ai-hist li:last-child { border-bottom: 0; padding-bottom: 0; }
.ai-hist p { margin: 4px 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.ai-note { font-size: 13px; margin: 14px 2px; }
.bf-ai { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
@media (max-width: 640px) {
  .ai-row { flex-direction: column; }
  .ai-row input { flex: none; }          /* ve sloupci by flex-basis 0 stlačil pole na výšku textu */
  .ai-row .btn { width: 100%; }
}

/* AI souhrn do hloubky (20. 10. 2026): poslední výsledky a ocenění jako dvě pole, pro a proti ve dvou sloupcích */
.ov-deep { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin: 12px 0; }
.ov-deep-b { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.ov-deep-b h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.ov-deep-b p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.ov-bb { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin: 0 0 12px; }
.ov-bb-col { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); }
.ov-bb-col.good { border-color: color-mix(in srgb, var(--up) 35%, var(--line)); background: color-mix(in srgb, var(--up) 6%, var(--surface)); }
.ov-bb-col.bad { border-color: color-mix(in srgb, var(--down) 35%, var(--line)); background: color-mix(in srgb, var(--down) 6%, var(--surface)); }
.ov-bb-col h3 { margin: 0 0 6px; font-size: 13px; font-weight: 800; }
.ov-bb-col.good h3 { color: var(--up); }
.ov-bb-col.bad h3 { color: var(--down); }
.ov-bb-col ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.ov-bb-col li + li { margin-top: 4px; }

/* komunita.css */
/* Komunita jako zeď Facebooku (19. 10. 2026 v noci; views/komunita.php, lib/komunita_html.php, assets/js/komunita.js): šedé plátno, tři sloupce (nabídka, zeď, panel),
   bílé karty se stínem místo rámečku, editor jako na Facebooku, komentáře v bublinách přímo v kartě. Barvy a míry jen z tokenů (app.css, ui.css), světlý i tmavý režim,
   375 px bez vodorovného posunu. Profil, veřejné portfolio, pravidla, moderace a G10 mají vlastní oddíly níže. */

/* 23. 10. 2026: plátno, karty a bubliny z tokenů aplikace (app.css), dřív třetí sada barev; vlastní zůstává jen stín karet */
:root { --kom-canvas: var(--bg-2); --kom-card: var(--surface); --kom-bub: var(--surface-2); --kom-hover: var(--surface-2); --kom-shadow: 0 1px 2px rgba(0, 0, 0, .14), 0 0 0 1px rgba(0, 0, 0, .04); }
html[data-color="dark"] { --kom-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .05); }
body.pub:has(#app.kom-fb) { background: var(--kom-canvas); }
#app.kom-fb { padding-top: 16px; }
.kom-fb .card { background: var(--kom-card); border: 0; box-shadow: var(--kom-shadow); border-radius: 12px; }
.kom-fb .card-h { padding: 14px 16px 0; }
.kom-fb .card-h h2 { font-size: 17px; }
.kom-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 680px) minmax(0, 1fr); gap: 20px 24px; align-items: start; }          /* 20. 10.: zeď přesně uprostřed, boční sloupce stejně široké */
.kom-main { min-width: 0; }
.kom-list { display: grid; gap: 14px; }
.kom-list-comments { gap: 8px; }
.kom-more-row { margin: 16px 0 0; text-align: center; }
.kom-narrow { max-width: 960px; }
.kom-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; margin-top: 14px; }

/* ---------- levý sloupec: nadpis a nabídka zdi ---------- */
.kom-left { justify-self: end; width: min(100%, 300px); position: sticky; top: calc(var(--top-h, 64px) + var(--sub-h, 46px) + 12px); display: grid; gap: 10px; }
.kom-left-head { padding: 6px 12px 2px; }
.kom-left-head h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.kom-left-head p { margin: 4px 0 0; font-size: var(--fs-sm); line-height: 1.45; color: var(--ink-3); }
.kom-nav { display: grid; gap: 2px; }
.kom-nav-a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; transition: background-color .15s; }
.kom-nav-a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.kom-nav-a.on { background: var(--sel); color: var(--brand); }
.kom-nav-a > span:last-child { display: grid; min-width: 0; line-height: 1.2; }
.kom-nav-a b { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kom-nav-a small { font-size: var(--fs-xs); color: var(--ink-3); }
.kom-nav-a.on small { color: color-mix(in srgb, var(--brand) 70%, var(--ink-3)); }
.kom-nav-ic { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--kom-card); box-shadow: var(--kom-shadow); color: var(--brand); }
.kom-nav-a.on .kom-nav-ic { background: var(--brand); color: var(--brand-ink); box-shadow: none; }
.kom-nav-me .kom-av { flex: none; }
.kom-nav-sm { min-height: 40px; }
.kom-nav-sm .kom-nav-ic { width: 30px; height: 30px; box-shadow: none; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink-2); }
.kom-nav-sm b { font-size: var(--fs-sm); font-weight: 600; }
.kom-nav-sep { display: block; height: 1px; margin: 8px 12px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.kom-left-note { margin: 0; padding: 0 12px; font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-3); }

/* ---------- pravý sloupec ---------- */
.kom-side { justify-self: start; width: min(100%, 340px); min-width: 0; display: grid; gap: 14px; position: sticky; top: calc(var(--top-h, 64px) + var(--sub-h, 46px) + 12px); }
.kom-side .card-b { padding-top: 10px; }
.kom-side-note { font-size: var(--fs-sm); line-height: 1.5; }
.kom-side-foot { margin: 0; padding: 0 6px; font-size: var(--fs-xs); line-height: 1.6; color: var(--ink-3); }
.kom-side-foot a { color: var(--ink-3); text-decoration: none; }
.kom-side-foot a:hover { text-decoration: underline; }
.kom-navrhy { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.kom-navrhy li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 4px 0; }
.kom-navrh { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; color: inherit; text-decoration: none; }
.kom-navrh .kom-av { flex: none; }
.kom-navrh .kom-av-sys { width: 36px; height: 36px; }
.kom-navrh-tx { display: grid; min-width: 0; line-height: 1.2; }
.kom-navrh-tx b { font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kom-navrh-tx small { font-size: var(--fs-xs); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kom-navrhy .btn { flex: none; }
.kom-navrhy .btn.is-done { pointer-events: none; opacity: .7; }
.kom-temata { display: flex; flex-wrap: wrap; gap: 6px; }
.kom-temata .chip { text-decoration: none; }
.kom-temata .chip .muted { font-weight: 600; }
.kom-brief .card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kom-brief .card-h h2 { display: inline-flex; align-items: center; gap: 6px; }
.kom-brief .card-h h2 .ic { color: var(--brand); }
.kom-brief-tx { margin: 0; font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-2); }
.kom-brief-meta { margin: 10px 0 0; font-size: var(--fs-xs); }
.kom-brief-meta a { color: var(--link); font-weight: 700; text-decoration: none; }
.kom-brief-meta a:hover { text-decoration: underline; }

/* ---------- příspěvek jako na Facebooku ---------- */
.kom-post { padding: 12px 16px 4px; display: grid; gap: 10px; }
.kom-post.kom-unpublished { box-shadow: 0 0 0 1px var(--warn), var(--kom-shadow); }
.kom-head { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.kom-av-link { flex: none; display: block; line-height: 0; }
.kom-author-tx { display: grid; min-width: 0; flex: 1 1 auto; line-height: 1.25; padding-top: 1px; }
.kom-author { color: inherit; text-decoration: none; min-width: 0; }
.kom-author b { display: inline-block; max-width: 100%; font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.kom-author:hover b { text-decoration: underline; }
.kom-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; color: var(--ink-3); font-size: var(--fs-xs); min-width: 0; }
.kom-dot { color: var(--ink-3); }
.kom-time { color: var(--ink-3); text-decoration: none; white-space: nowrap; }
.kom-time:hover { color: var(--ink); text-decoration: underline; }
.kom-vis { display: inline-flex; align-items: center; gap: 3px; }
.kom-why { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); }
.kom-more { position: relative; flex: none; margin: -4px -6px 0 0; }
.kom-more > summary { list-style: none; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; }
.kom-more > summary:hover { background: var(--kom-hover); }
.kom-more > summary::-webkit-details-marker { display: none; }
.kom-more-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 220px; }
.kom-more-pop .menu-item { width: 100%; border: 0; background: transparent; text-align: left; font: inherit; cursor: pointer; }
.kom-body { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.kom-body a { color: var(--link); font-weight: 600; }
.kom-tag { font-weight: 800; text-decoration: none; }
.kom-cards { display: flex; flex-wrap: wrap; gap: 8px; }
.kom-card { display: flex; align-items: center; gap: 9px; padding: 7px 11px 7px 8px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); text-decoration: none; color: inherit; min-width: 0; max-width: 100%; transition: border-color .15s, background-color .15s; }
.kom-card:hover { border-color: var(--brand); background: var(--surface); }
.kom-card-logo { width: 28px; height: 28px; border-radius: 7px; font-size: 11px; }
.kom-card-logo > span { position: absolute; inset: 0; display: grid; place-items: center; }
.kom-card-logo img { z-index: 1; }
.kom-card-tx { display: grid; line-height: 1.15; min-width: 0; }
.kom-card-tx b { font-size: var(--fs-sm); }
.kom-card-tx small { color: var(--ink-3); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.kom-card-price { margin-left: 4px; font-size: var(--fs-sm); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kom-card-price em { font-style: normal; font-weight: 800; }
.kom-media { display: grid; gap: 3px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 -16px; }          /* koláž od kraje ke kraji jako na Facebooku */
.kom-media a { position: relative; display: block; overflow: hidden; background: var(--kom-bub); }
.kom-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kom-media.n1 { grid-template-columns: minmax(0, 1fr); }
.kom-media.n1 img { height: auto; max-height: 620px; object-fit: cover; }
.kom-media.n2 { height: 360px; }
.kom-media.n3 { height: 420px; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; }
.kom-media.n3 a:first-child { grid-row: span 2; }
.kom-media.n4 { height: 520px; grid-template-rows: 1fr 1fr; }
.kom-media-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; font-size: 30px; font-weight: 800; }
.kom-body.is-big { font-size: 24px; line-height: 1.3; font-weight: 600; padding: 6px 0 4px; letter-spacing: -.01em; }
.kom-video { display: grid; gap: 6px; margin: 0 -16px; }
.kom-video-play { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--ink) center / cover no-repeat; cursor: pointer; overflow: hidden; }
.kom-video-play::before { content: ""; position: absolute; inset: 0; background: var(--overlay); opacity: .55; }
.kom-video-btn { position: relative; padding: 10px 18px; border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-weight: 800; font-size: var(--fs); box-shadow: var(--shadow); }
.kom-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.kom-video small { padding: 0 16px; color: var(--ink-3); font-size: var(--fs-xs); }
.kom-pf { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); text-decoration: none; font-weight: 700; font-size: var(--fs-sm); max-width: 100%; }
.kom-pf:hover { border-color: var(--brand); }
.kom-stats { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); color: var(--ink-3); font-size: 15px; font-variant-numeric: tabular-nums; }
.kom-stat { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.kom-stat-react.is-zero { visibility: hidden; }
a.kom-stat:hover { text-decoration: underline; }
.kom-react-ics { display: inline-flex; }
.kom-react-ic { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; box-shadow: 0 0 0 2px var(--kom-card); }
.kom-react-ic .ic { width: 10px; height: 10px; }
.kom-react-ic-like { background: linear-gradient(135deg, color-mix(in srgb, var(--heart) 82%, #fff), var(--heart)); z-index: 1; }
.kom-react-ic-insight { background: linear-gradient(135deg, var(--brand), var(--brand-2)); margin-left: -5px; }
.kom-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 2px 0; border-bottom: 1px solid var(--line-soft); }
.kom-actions-compact { display: flex; align-items: center; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--line-soft); border-bottom: 0; }
.kom-react { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s; }
.kom-actions-compact .kom-react { min-height: var(--h-sm); justify-content: flex-start; font-size: var(--fs-sm); gap: 6px; }
.kom-react:hover { background: var(--kom-hover); color: var(--ink); }
.kom-react.on { color: var(--brand); }
.kom-react.on[data-react="like"] { color: var(--heart); }
.kom-react.on .ic { fill: currentColor; }
.kom-count { color: var(--ink-3); font-size: var(--fs-sm); font-weight: 700; font-variant-numeric: tabular-nums; margin-right: 6px; }
.kom-av-sys { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--stage); color: var(--stage-ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.kom-comment .kom-av-sys { width: 28px; height: 28px; }
.kom-bub .kom-av-sys { width: 32px; height: 32px; }
.kom-sys-check { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 3px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); vertical-align: -2px; }
.kom-sys-check .ic { width: 9px; height: 9px; }
.kom-av-host { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--kom-bub); color: var(--ink-3); border: 1px dashed var(--line); }
.kom-status { margin: 0 0 8px; padding: 8px 12px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--warn) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line)); font-size: var(--fs-sm); }
.kom-comment { padding: 10px 14px 6px; margin-left: 0; }
.kom-comment .kom-body { font-size: var(--fs); }

/* ---------- karty odkazů s náhledem a přeložený text ---------- */
.kom-links { display: grid; gap: 8px; margin: 0 -16px; }
.kom-link { display: grid; grid-template-columns: 120px minmax(0, 1fr); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--kom-bub); color: inherit; text-decoration: none; min-height: 96px; transition: background-color .15s; }
.kom-link:hover { background: color-mix(in srgb, var(--kom-bub) 70%, var(--ink) 6%); }
.kom-link-img { display: block; background: var(--surface-2) center / cover no-repeat; }
.kom-link-ph { display: grid; place-items: center; color: var(--ink-3); }
.kom-link-tx { display: grid; align-content: center; gap: 2px; min-width: 0; padding: 10px 14px; }
.kom-link-tx small { color: var(--ink-3); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kom-link-tx b { font-size: 15px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.kom-link-tx > span { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.kom-preklad { font-size: var(--fs-xs); color: var(--ink-3); }
.kom-preklad summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.kom-preklad summary::-webkit-details-marker { display: none; }
.kom-preklad summary::before { content: "cs"; display: inline-grid; place-items: center; width: 18px; height: 14px; border-radius: 4px; background: var(--brand); color: var(--brand-ink); font-size: 9px; font-weight: 800; }
.kom-preklad p { margin: 6px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--kom-bub); color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.5; }
/* ověření telefonu v kartě Nový příspěvek (účet zdarma) */
.kom-tel-in { flex: 1 1 auto; min-width: 0; display: grid; gap: 8px; }
.kom-tel-t { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.kom-tel-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kom-tel-row .input { flex: 1 1 180px; height: 40px; border-radius: 20px; background: var(--kom-bub); border-color: transparent; }
.kom-tel-row .input:focus { background: var(--kom-card); border-color: var(--brand); }
.kom-tel-note { margin: 0; font-size: var(--fs-xs); }
.kom-hint-short { margin: 10px 0 0; padding: 8px 0 0 50px; border-top: 1px solid var(--line-soft); font-size: var(--fs-xs); line-height: 1.5; }
.kom-hint-short a { color: var(--link); font-weight: 700; }

/* ---------- komentáře v kartě: bubliny a pole pro nový ---------- */
.kom-coms { display: grid; gap: 8px; padding: 2px 0 8px; }
.kom-coms-more { justify-self: start; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; }
.kom-coms-more:hover { text-decoration: underline; }
.kom-coms-list { display: grid; gap: 6px; }
.kom-coms-list:empty { display: none; }
.kom-bub { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.kom-bub-av { flex: none; line-height: 0; }
.kom-bub-in { display: grid; gap: 2px; min-width: 0; max-width: 100%; }
.kom-bub-box { display: inline-block; padding: 8px 12px; border-radius: 18px; background: var(--kom-bub); min-width: 0; }
.kom-bub-name { display: block; color: var(--ink); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; }
.kom-bub-name:hover { text-decoration: underline; }
.kom-bub-tx { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.kom-bub-tx a { color: var(--link); font-weight: 600; }
.kom-bub-meta { display: flex; align-items: center; gap: 4px; padding-left: 12px; font-size: var(--fs-xs); color: var(--ink-3); }
.kom-bub-meta .ic { width: 11px; height: 11px; }
.kom-cform { display: flex; align-items: flex-start; gap: 8px; }
.kom-cform > .kom-av { flex: none; }
.kom-cform-in { position: relative; flex: 1 1 auto; min-width: 0; display: grid; gap: 6px; }
.kom-cform textarea { width: 100%; min-height: 36px; padding: 8px 14px; border: 1px solid transparent; border-radius: 18px; background: var(--kom-bub); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.4; resize: none; transition: min-height .15s var(--ease), border-radius .15s var(--ease); }
.kom-cform textarea::placeholder { color: var(--ink-3); }
.kom-cform textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); background: var(--kom-card); }
.kom-cform.is-open textarea { min-height: 72px; border-radius: 14px; }
.kom-cform-send { display: none; justify-self: end; }
.kom-cform.is-open .kom-cform-send { display: inline-flex; }
.kom-cform .form-err { margin: 0; }
.kom-cform-fake { display: flex; align-items: center; gap: 8px; color: var(--ink-3); text-decoration: none; font-size: var(--fs-sm); }
.kom-cform-fake > span:last-child { flex: 1 1 auto; min-height: 36px; display: flex; align-items: center; padding: 0 14px; border-radius: 18px; background: var(--kom-bub); }
.kom-cform-fake .kom-av-host { width: 32px; height: 32px; }
.kom-cform-fake:hover > span:last-child { color: var(--ink); }
.kom-comments .card-b { padding-top: 14px; }
.kom-comments-h { margin: 0 0 12px; font-size: 17px; }
.kom-comment-form { margin-top: 14px; }
.kom-comment-form textarea { min-height: 60px; border-radius: 14px; }
.kom-login-note { margin: 12px 0 0; }
.kom-empty { margin-top: 12px; }

/* ---------- filtr zdi: vše, s fotkou, jen text, shrnutí trhů ---------- */
.kom-filtr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.kom-filtr-l { margin-right: 4px; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-3); }
.kom-filtr .chip { background: var(--kom-card); box-shadow: var(--kom-shadow); border-color: transparent; text-decoration: none; }
.kom-filtr .chip.on { background: var(--brand); color: var(--brand-ink); }

/* ---------- editor jako na Facebooku: nahoře nadpis Nový příspěvek, pilulka a tři tlačítka, po kliknutí se rozbalí ---------- */
.kom-compose { margin-bottom: 14px; }
.kom-compose-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -2px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.kom-compose-h b { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; }
.kom-compose-h b .ic { color: var(--brand); }
.kom-compose-h .muted { font-size: var(--fs-xs); }
.kom-nav-new .kom-nav-ic { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.kom-compose .card-b { padding: 12px 16px 10px; }
.kom-compose-top { display: flex; gap: 10px; align-items: flex-start; }
.kom-compose-top .kom-av { flex: none; }
.kom-compose-ta, .kom-settings textarea { flex: 1 1 auto; width: 100%; min-height: 76px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--kom-card); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.5; resize: none; transition: min-height .18s var(--ease), border-radius .18s var(--ease), background-color .15s, border-color .15s; }
.kom-compose-ta::placeholder { color: var(--ink-3); }
.kom-compose-ta:hover { background: color-mix(in srgb, var(--kom-bub) 70%, var(--ink) 6%); }
.kom-compose-ta:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); background: var(--kom-card); }
.kom-compose.is-open .kom-compose-ta { min-height: 130px; border-radius: 14px; resize: vertical; background: var(--kom-card); border-color: var(--line); }
.kom-compose-more { display: none; padding-left: 50px; }
.kom-compose.is-open .kom-compose-more { display: block; }
.kom-compose-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.kom-compose-opts .select { max-width: 100%; height: var(--h-sm); font-size: var(--fs-sm); }
.kom-compose-row .kom-counter { margin-left: auto; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.kom-counter.bad { color: var(--down); font-weight: 700; }
.kom-compose-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.kom-compose-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; flex: 1 1 auto; min-width: 0; }
.kom-compose.is-open .kom-compose-tools { display: flex; flex: 0 1 auto; }
.kom-tool { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color .15s, color .15s; }
.kom-compose.is-open .kom-tool { font-size: var(--fs-sm); min-height: 36px; }
.kom-tool:hover { background: var(--kom-hover); color: var(--ink); }
.kom-tool-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; }
.kom-tool-ic .ic { width: 15px; height: 15px; }
.kom-tool-ic-foto { background: var(--up); }
.kom-tool-ic-titul { background: var(--brand); }
.kom-tool-ic-pf { background: var(--accent); }
.kom-tool.is-off { opacity: .55; cursor: not-allowed; }
.kom-compose-tools-off .kom-tool { cursor: default; opacity: .55; }          /* 20. 10.: tlačítko Zveřejnit je vidět pořád, ať je jasné, že tady se píše příspěvek */
.kom-preview { margin-top: 10px; display: grid; gap: 6px; }
.kom-preview-note { margin: 0; font-size: var(--fs-xs); }
.kom-preview-warn { margin: 0; padding: 6px 10px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--warn) 10%, var(--surface)); color: var(--warn); font-size: var(--fs-xs); font-weight: 700; }
.kom-attach { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.kom-attach-item { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); overflow: hidden; font-size: var(--fs-xs); color: var(--ink-3); }
.kom-attach-item img { width: 100%; height: 100%; object-fit: cover; }
.kom-attach-x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--ink); color: var(--surface); font-weight: 800; cursor: pointer; }
.kom-hint { display: none; margin: 10px 0 0; font-size: var(--fs-xs); line-height: 1.5; }
.kom-compose.is-open .kom-hint { display: block; }
.kom-hint a { color: var(--link); font-weight: 700; }
.kom-compose-fake { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-height: 40px; padding: 0 14px; border: 1px solid transparent; border-radius: 20px; background: var(--kom-bub); color: var(--ink-3); font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
.kom-compose-fake:hover { color: var(--ink); border-color: var(--brand); }
.kom-compose-fake-ta { min-height: 76px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; border: 1px dashed var(--line); background: var(--kom-card); color: var(--ink-3); line-height: 1.45; }
.kom-compose-fake .ic { color: var(--accent); flex: none; }
.kom-lock-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 10px; padding: 10px 0 0 50px; border-top: 1px solid var(--line-soft); }
.kom-lock-row p { margin: 0; flex: 1 1 300px; font-size: var(--fs-sm); line-height: 1.5; max-width: 62ch; }
.kom-lock-row .row { display: flex; gap: 8px; flex-wrap: wrap; }
.kom-titul { margin-bottom: 14px; }
.kom-titul-form { display: flex; gap: 8px; flex-wrap: wrap; }
.kom-titul-form .input { flex: 1 1 200px; text-transform: uppercase; }

/* ---------- lidé a seznamy ---------- */
.kom-people { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.kom-people li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.kom-people a { display: flex; align-items: center; gap: 8px; min-width: 0; text-decoration: none; color: inherit; }
.kom-people a b { font-size: var(--fs-sm); white-space: nowrap; }
.kom-people a small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kom-people .kom-av { flex: none; }
.kom-people .row { display: flex; gap: 6px; flex: none; }
.kom-people-hint { margin: 10px 0 0; font-size: var(--fs-xs); }
.kom-people-form .input { width: 100%; }
.kom-rules-short { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.45; }
.kom-me { display: flex; align-items: center; gap: 12px; font-size: var(--fs-sm); line-height: 1.5; }
.kom-me a { color: var(--link); font-weight: 700; }
.kom-pf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kom-pf-list a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.kom-pf-list small { color: var(--ink-3); margin-left: auto; }

/* ---------- profil ---------- */
.kom-profile .card-b { padding-top: 18px; }
.kom-profile-top { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.kom-profile-top .kom-av { flex: none; }
.kom-profile-who { flex: 1 1 260px; min-width: 0; }
.kom-profile-who h1 { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; overflow-wrap: anywhere; }
.kom-profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 0; font-size: var(--fs-sm); }
.kom-bio { margin: 10px 0 0; max-width: 70ch; line-height: 1.55; overflow-wrap: anywhere; }
.kom-profile-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.kom-profile-stats { margin: 16px 0 0; }
.kom-profile-stats .stat { text-decoration: none; color: inherit; cursor: pointer; }
.kom-profile-stats .stat:hover { border-color: var(--brand); }
.kom-settings .kom-sub { margin: 20px 0 6px; font-size: var(--fs-lg); font-weight: 800; }
.kom-pf-form { margin-top: 10px; }
.kom-pf-form .card-b { padding-top: 12px; }
.kom-pf-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.kom-pf-head a { margin-left: auto; text-decoration: none; font-size: var(--fs-sm); font-weight: 700; }
.kom-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2px 10px; }
.form-ok { color: var(--up); font-weight: 700; font-size: var(--fs-sm); }

/* ---------- veřejné portfolio ---------- */
.kom-bars { display: grid; gap: 8px; }
.kom-bar { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) 60px; align-items: center; gap: 10px; font-size: var(--fs-sm); }
.kom-bar-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kom-bar .bar { display: block; height: 8px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.kom-bar .bar i { display: block; height: 100%; border-radius: inherit; background: var(--c-blue); }
.kom-bar-v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.crumbs { display: flex; gap: 6px; align-items: center; margin: 0 0 4px; font-size: var(--fs-sm); color: var(--ink-3); }
.crumbs a { color: var(--link); text-decoration: none; font-weight: 700; }

/* ---------- pravidla a moderace ---------- */
.kom-rules { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 10px 18px; margin: 4px 0 0; }
.kom-rules dt { font-weight: 800; }
.kom-rules dd { margin: 0; color: var(--ink-2); line-height: 1.5; }
.kom-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); line-height: 1.5; }
.kom-steps b { color: var(--ink); }
.kom-mod-item { padding: 12px 0; border-top: 1px solid var(--line-soft); display: grid; gap: 6px; }
.kom-mod-item:first-child { border-top: 0; padding-top: 4px; }
.kom-mod-head { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.kom-mod-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.kom-mod-trail { font-size: var(--fs-xs); overflow-wrap: anywhere; }
.kom-mod-item .kom-compose-row .input { flex: 1 1 220px; }

/* ---------- G10: podmínky, oznámení, upozornění ---------- */
.kom-disclaimer { margin: 0; color: var(--ink-3); font-size: var(--fs-xs); }
.kom-duvera { display: block; margin-top: 4px; color: var(--warn); cursor: help; }
.kom-side-links { margin: 10px 0 0; font-size: var(--fs-sm); }
.kom-side-links a { color: var(--link); font-weight: 700; }
.kom-koncept { margin: 0 0 14px; 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)); font-size: var(--fs-sm); line-height: 1.5; }
.kom-koncept b { color: var(--warn); }
.kom-toc { margin: 0; padding-left: 20px; columns: 2 220px; column-gap: 24px; font-size: var(--fs-sm); line-height: 1.8; }
.kom-toc a { color: var(--link); }
.kom-oddil { scroll-margin-top: 80px; }
.kom-oddil p { margin: 0 0 10px; line-height: 1.6; color: var(--ink-2); max-width: 78ch; }
.kom-oddil p:last-child { margin-bottom: 0; }
.kom-pravnik { margin-top: 10px !important; padding: 6px 10px; border-left: 3px solid var(--warn); background: var(--surface-2); color: var(--ink-3) !important; font-size: var(--fs-xs); }
.kom-lhuty { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0; }
.kom-lhuty div { padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line-soft); }
.kom-lhuty dt { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 700; }
.kom-lhuty dd { margin: 4px 0 0; font-weight: 800; }
.kom-dsa-form textarea, .kom-dsa-form input[type="text"], .kom-dsa-form input[type="email"], .kom-dsa-form select { width: 100%; }
.kom-dsa-ok { padding: 14px 16px; border-radius: var(--r-md); border: 1px solid color-mix(in srgb, var(--up) 40%, var(--line)); background: color-mix(in srgb, var(--up) 8%, var(--surface)); }
.kom-dsa-ok b { font-size: var(--fs-lg); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.kom-trust-box p { margin: 0 0 8px; line-height: 1.5; }
.kom-mod-item.is-overdue { border-left: 3px solid var(--down); padding-left: 10px; }

@media (max-width: 1180px) {
  .kom-grid { grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); }
  .kom-left { position: static; grid-column: 1 / -1; display: block; }
  .kom-left-head { padding: 0 2px 8px; }
  .kom-nav { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
  .kom-nav::-webkit-scrollbar { display: none; }
  .kom-nav-a { flex: none; min-height: 40px; padding: 4px 12px 4px 6px; border-radius: 999px; background: var(--kom-card); box-shadow: var(--kom-shadow); }
  .kom-nav-a small, .kom-nav-sep, .kom-left-note { display: none; }
  .kom-nav-ic { width: 28px; height: 28px; box-shadow: none; background: var(--sel); }
  .kom-nav-a.on .kom-nav-ic { background: var(--brand-ink); color: var(--brand); }
  .kom-nav-a.on { background: var(--brand); color: var(--brand-ink); }
  .kom-nav-me .kom-av { width: 28px; height: 28px; }
}
@media (max-width: 900px) {
  .kom-grid { grid-template-columns: minmax(0, 1fr); }
  .kom-side { position: static; }
  .kom-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  #app.kom-fb { padding-top: 10px; }
  .kom-post { padding: 10px 12px 2px; }
  .kom-media, .kom-video, .kom-links { margin: 0 -12px; }
  .kom-link { grid-template-columns: 96px minmax(0, 1fr); min-height: 80px; }
  .kom-hint-short { padding-left: 0; }
  .kom-filtr { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .kom-filtr::-webkit-scrollbar { display: none; }
  .kom-filtr .chip { flex: none; }
  .kom-compose-h .muted { display: none; }
  .kom-media.n2 { height: 220px; }
  .kom-media.n3 { height: 300px; }
  .kom-media.n4 { height: 360px; }
  .kom-body.is-big { font-size: 20px; }
  .kom-why { display: none; }
  .kom-compose-more, .kom-lock-row { padding-left: 0; }
  .kom-react span { font-size: var(--fs-sm); }
  .kom-tool { font-size: var(--fs-sm); gap: 6px; }
  .kom-comment { margin-left: 0; }
  .kom-card-tx small { max-width: 110px; }
  .kom-bar { grid-template-columns: minmax(0, 1fr) 56px; }
  .kom-bar .bar { grid-column: 1 / -1; grid-row: 2; }
  .kom-rules { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .kom-rules dd { margin-bottom: 10px; }

  .kom-profile-actions { width: 100%; }
}

/* ---------- pravý sloupec jako bannery, bublinky a kartičky (20. 10. 2026) ---------- */
.kom-banner { display: grid; gap: 8px; padding: 16px 18px; border-radius: 18px; color: var(--stage-ink); background: var(--stage); box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--brand-deep) 60%, transparent); text-decoration: none; }
.kom-banner-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kom-banner-k { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; opacity: .9; }
.kom-banner-badge { padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 11px; font-weight: 700; }
.kom-idx { display: flex; flex-wrap: wrap; gap: 6px; }
.kom-idx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 12.5px; text-decoration: none; transition: background-color .15s; }
.kom-idx-chip:hover { background: rgba(255, 255, 255, .22); }
.kom-idx-chip b { font-weight: 700; }
.kom-idx-chip span { font-variant-numeric: tabular-nums; font-weight: 800; }
.kom-idx-chip.up span { color: var(--stage-up); }
.kom-idx-chip.down span { color: var(--stage-down); }
.kom-banner-tx { margin: 2px 0 0; font-size: 13.5px; line-height: 1.45; opacity: .94; }
.kom-banner-cta { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; color: #fff; }
.kom-banner-cta .ic { transform: rotate(-90deg); }
.kom-banner:hover .kom-banner-cta { text-decoration: underline; }
.kom-banner-promo { background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 55%, var(--accent) 170%); }
.kom-banner-promo b { font-size: 17px; line-height: 1.25; letter-spacing: -.01em; }
.kom-side-card .card-h { padding-bottom: 6px; }
.kom-side-card .card-h h2 { font-size: 15px; }
.kom-bubliny { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 6px; }
.kom-bublina { display: grid; justify-items: center; gap: 6px; min-width: 0; text-align: center; }
.kom-pritel { text-decoration: none; color: inherit; gap: 3px; padding: 4px 2px; border-radius: 12px; }          /* Přátelé (20. 10. večer) */
.kom-pritel:hover { background: var(--surface-2); }
.kom-pritel-kdy { font-size: 11px; }
.kom-bublina-av { display: inline-grid; border-radius: 50%; transition: transform .15s var(--ease); }
.kom-bublina-av:hover { transform: translateY(-2px); }
.kom-av-48 { width: 48px; height: 48px; font-size: 18px; }
.kom-bublina-n { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 800; color: var(--ink); text-decoration: none; }
.kom-bublina-n:hover { color: var(--brand); }
.kom-bublina-btn { min-height: 28px; padding: 0 10px; font-size: 12px; border-radius: 999px; }
.kom-temata { gap: 8px; }
.kom-tema { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border-radius: 999px; background: var(--kom-bub); color: var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; transition: background-color .15s; }
.kom-tema:hover { background: color-mix(in srgb, var(--brand) 12%, var(--kom-bub)); }
.kom-tema-logo { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: #fff; }
.kom-tema-n { min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: 11px; line-height: 18px; text-align: center; }
.kom-lide .card-b { padding-top: 12px; }
.kom-people-form { position: relative; }
.kom-people-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.kom-people-form .input { padding-left: 36px; }
/* výsledky hledání lidí (21. 10. 2026): řádek jako v seznamu kontaktů, fotka, jméno, pod ním přezdívka a sledující */
.kom-people.kom-hledani { gap: 2px; margin-top: 8px; }
.kom-people.kom-hledani li { display: block; }
.kom-people.kom-hledani .kp-hit { display: flex; align-items: center; gap: 12px; padding: 8px 10px; margin: 0 -10px; border-radius: 12px; transition: background-color .15s ease; }
.kom-people.kom-hledani .kp-hit:hover, .kom-people.kom-hledani .kp-hit:focus-visible { background: var(--surface-2); outline: none; }
.kom-people.kom-hledani .kp-hit:focus-visible { box-shadow: 0 0 0 2px var(--brand) inset; }
.kom-people.kom-hledani .kom-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.kom-people.kom-hledani .kp-txt { display: grid; gap: 1px; min-width: 0; }
.kom-people.kom-hledani .kp-name { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kom-people.kom-hledani .kp-sub { font-size: var(--fs-xs); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kom-people.kom-hledani mark { background: none; color: var(--brand); font-weight: 800; padding: 0; }
.kom-people.kom-hledani .kp-ok { color: var(--brand); display: inline-flex; vertical-align: -2px; margin-left: 4px; }
.kom-people.kom-hledani .kp-empty { padding: 10px 0 2px; font-size: var(--fs-sm); }
.kom-people.kom-hledani[aria-busy="true"] { opacity: .6; transition: opacity .15s ease; }
@media (max-width: 900px) { .kom-left, .kom-side { width: 100%; justify-self: stretch; } }

/* ---------- prohlížeč fotek (20. 10.) ---------- */
.kom-lb { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; }
.kom-lb::backdrop { background: rgba(3, 10, 40, .88); backdrop-filter: blur(6px); }
.kom-lb-fig { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 56px 72px 64px; pointer-events: none; }
.kom-lb-fig img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); background: #000; pointer-events: auto; }
.kom-lb-fig figcaption { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 14px; color: rgba(255, 255, 255, .85); font-size: 13px; pointer-events: auto; }
.kom-lb-fig figcaption a { color: #fff; font-weight: 700; }
.kom-lb-x, .kom-lb-nav { position: absolute; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; transition: background-color .15s; }
.kom-lb-x:hover, .kom-lb-nav:hover { background: rgba(255, 255, 255, .28); }
.kom-lb-x { top: 16px; right: 16px; font-size: 16px; }
.kom-lb-nav { top: 50%; transform: translateY(-50%); font-size: 34px; }
.kom-lb-prev { left: 16px; }
.kom-lb-next { right: 16px; }
.kom-media a { cursor: zoom-in; }
@media (max-width: 640px) { .kom-lb-fig { padding: 56px 10px 64px; } .kom-lb-nav { width: 38px; height: 38px; } }

/* ---------- komunita jako Twitter (migrace 102, 20. 10. 2026): zmínky, odznaky, sdílení, citace, karta nákupu, Právě se probírá, našeptávač ---------- */
.kom-mention { color: var(--link); font-weight: 700; text-decoration: none; }
.kom-mention:hover { text-decoration: underline; }
.kom-author-line { display: flex; align-items: center; gap: 5px; min-width: 0; }
.kom-author-line .kom-author { min-width: 0; }
.kom-badges { display: inline-flex; align-items: center; gap: 3px; flex: none; vertical-align: middle; }
.kom-badge { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: #fff; cursor: help; }
.kom-badge .ic { width: 11px; height: 11px; }
.kom-badge-zakladatel { background: linear-gradient(135deg, #f5b301, #e08a00); }
.kom-badge-tvurce { background: linear-gradient(135deg, var(--brand-2), var(--brand-mid)); }
.kom-badge-portfolio { background: linear-gradient(135deg, var(--c-teal), var(--up)); }
.kom-badge-ai { width: auto; padding: 0 5px; border-radius: 999px; background: linear-gradient(135deg, var(--c-violet), color-mix(in srgb, var(--c-violet) 60%, var(--brand))); font-size: 9.5px; font-weight: 800; letter-spacing: .03em; line-height: 17px; }
.kom-badges.is-full .kom-badge-ai { gap: 6px; font-size: 11px; }

.kom-badges.is-full { flex-wrap: wrap; gap: 6px; }
.kom-badges.is-full .kom-badge { width: auto; height: auto; gap: 5px; padding: 3px 9px 3px 6px; border-radius: 999px; display: inline-flex; font-size: var(--fs-xs); font-weight: 800; }
.kom-badges.is-full .kom-badge .ic { width: 13px; height: 13px; }
.kom-profile-badges { margin: 8px 0 0; }
.kom-bub-name { display: inline; }
.kom-bub-box .kom-badges { margin-left: 4px; }
.kom-bub-tx { display: block; }
.kom-bublina .kom-badges { justify-content: center; margin-top: -2px; }
.kom-repost-by { display: flex; align-items: center; gap: 6px; margin: -2px 0 8px 2px; color: var(--ink-3); font-size: var(--fs-xs); font-weight: 700; }
.kom-repost-by a { color: inherit; text-decoration: none; }
.kom-repost-by a:hover { text-decoration: underline; }
.kom-repost-by .ic { width: 14px; height: 14px; color: var(--c-teal); }
.kom-stats-r { display: inline-flex; align-items: center; gap: 12px; }
.kom-stat-share.is-zero { display: none; }
.kom-actions.has-share { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kom-share { margin: 0; display: flex; }
.kom-share > summary.kom-react { width: 100%; height: auto; border-radius: 6px; list-style: none; }
.kom-share > summary.kom-react.on { color: var(--c-teal); }
.kom-share-pop { top: auto; bottom: calc(100% + 4px); right: 0; min-width: 240px; }
.kom-quote { margin: 10px 0 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--kom-card); cursor: pointer; transition: border-color .15s, background-color .15s; }
.kom-quote:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: var(--kom-hover); }
.kom-quote.is-missing { cursor: default; display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: var(--fs-sm); background: var(--kom-bub); }
.kom-quote-head { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--fs-sm); color: var(--ink-3); }
.kom-quote-head .kom-av, .kom-av-20 { width: 20px; height: 20px; flex: none; }
.kom-quote-name { color: var(--ink); font-weight: 800; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kom-quote-name:hover { text-decoration: underline; }
.kom-quote-head .kom-time { color: inherit; text-decoration: none; }
.kom-quote-body { margin-top: 6px; font-size: var(--fs-sm); line-height: 1.5; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.kom-quote-body a { color: var(--link); font-weight: 600; }
.kom-quote-img { display: block; margin-top: 8px; border-radius: 10px; overflow: hidden; max-height: 220px; }
.kom-quote-img img { display: block; width: 100%; height: 220px; object-fit: cover; }
.kom-quote .kom-trade { margin-top: 8px; }
.kom-cite-prev { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0; background: var(--surface-2); font-size: var(--fs-sm); line-height: 1.45; display: grid; gap: 2px; }
.kom-trade { display: flex; align-items: center; gap: 12px; margin: 10px 0 2px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--c-teal) 9%, var(--kom-card)), var(--kom-card) 60%); color: inherit; text-decoration: none; min-width: 0; transition: border-color .15s; }
a.kom-trade:hover { border-color: var(--c-teal); }
.kom-trade-logo { width: 40px; height: 40px; border-radius: 10px; font-size: 12px; flex: none; }
.kom-trade-tx { display: grid; min-width: 0; line-height: 1.2; flex: 1 1 auto; }
.kom-trade-tx small { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: var(--fs-xs); font-weight: 700; }
.kom-trade-tx small .ic { width: 12px; height: 12px; }
.kom-trade-tx b { font-size: 17px; font-weight: 800; }
.kom-trade-tx > span { color: var(--ink-3); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kom-trade-pct { display: grid; justify-items: end; flex: none; line-height: 1.1; }
.kom-trade-pct b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kom-trade-pct small { color: var(--ink-3); font-size: var(--fs-xs); font-weight: 700; }
.kom-trade-pct.up b { color: var(--up); }
.kom-trade-pct.down b { color: var(--down); }
.kom-obchod-navrh { position: relative; margin: 4px 0 10px; }
.kom-obchod-navrh .kom-trade { margin: 0; padding-right: 40px; }
/* prodávám nemovitost: fotka, nadpis, cena a investiční čísla (21. 10. 2026) */
.kom-trade-inz { flex-wrap: wrap; align-items: stretch; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 8%, var(--kom-card)), var(--kom-card) 60%); }
.kom-inz-foto { flex: none; width: 120px; height: 90px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.kom-inz-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kom-trade-inz .kom-trade-tx { flex: 1 1 200px; }
.kom-inz-cena { display: block; margin-top: 4px; font-size: 17px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.kom-inz-cisla { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; margin-top: 2px; }
.kom-inz-cisla > span { display: grid; gap: 1px; padding: 6px 8px; border-radius: 9px; background: var(--surface-2); }
.kom-inz-cisla small { font-size: 11px; color: var(--ink-3); }
.kom-inz-cisla b { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.kom-inz-cisla b.up { color: var(--up); }
.kom-inz-cisla b.down { color: var(--down); }
@media (max-width: 520px) { .kom-inz-foto { width: 100%; height: 160px; } }
.kom-obchod-navrh-x { top: 8px; right: 8px; }
.kom-obchod-navrh-note { margin: 6px 2px 0; font-size: var(--fs-xs); }
.kom-mention-list { list-style: none; margin: 6px 0 0; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--kom-card); box-shadow: var(--kom-shadow); max-width: 360px; }
.kom-mention-list li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: var(--fs-sm); }
.kom-mention-list li small { margin-left: auto; }
.kom-mention-list li.on, .kom-mention-list li:hover { background: var(--kom-hover); }
.kom-mention-list .kom-av { width: 26px; height: 26px; }
.kom-trendy { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.kom-trend { display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 10px; color: var(--ink); text-decoration: none; min-width: 0; transition: background-color .15s; }
.kom-trend:hover { background: var(--kom-hover); }
.kom-trend-i { flex: none; width: 16px; color: var(--ink-3); font-size: var(--fs-xs); font-weight: 800; text-align: center; }
.kom-trend .kom-tema-logo { width: 26px; height: 26px; flex: none; }
.kom-trend-tx { display: grid; min-width: 0; line-height: 1.2; flex: 1 1 auto; }
.kom-trend-tx b { font-size: var(--fs-sm); font-weight: 800; }
.kom-trend-tx small { color: var(--ink-3); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kom-trend-n { flex: none; color: var(--ink-3); font-size: var(--fs-xs); white-space: nowrap; }
.kom-trend-n b { color: var(--brand); font-size: var(--fs-sm); }
.kom-mod-odznaky { margin-top: 12px; }
.kom-mod-odznaky-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-sm); }
@media (max-width: 640px) {
  .kom-actions.has-share { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  .kom-actions.has-share .kom-react { gap: 4px; padding: 0 2px; font-size: 13.5px; }
  .kom-actions.has-share .kom-share > summary.kom-react { padding: 0 10px; }
  .kom-share > summary.kom-react > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }          /* na telefonu jen ikona, název zůstává pro čtečku */
  .kom-trade-pct b { font-size: 18px; }
  .kom-share-pop { right: 0; min-width: 220px; }
}
/* rychlé akce nad editorem a jejich karty (20. 10. 2026): výkon portfolia, moje akcie dnes, výkon titulu, nákup; jen procenta */
.kom-rychle { display: flex; gap: 6px; margin: 0 0 10px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.kom-rychle::-webkit-scrollbar { display: none; }
.kom-rychle-b { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 32px; padding: 0 12px 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--kom-card); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .15s, color .15s, background-color .15s; }
.kom-rychle-b:hover { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--kom-card)); }
.kom-rychle-b .ic { color: var(--brand); }
.kom-rychle-b:disabled { opacity: .6; cursor: progress; }
.kom-trade-ic { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--brand-mid), var(--brand-2)); color: var(--stage-ink); }
.kom-trade-dnes { flex-direction: column; align-items: stretch; gap: 8px; }
.kom-trade-list { display: flex; flex-wrap: wrap; gap: 6px; }
.kom-trade-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--kom-card); color: var(--ink); font-size: var(--fs-sm); font-weight: 800; text-decoration: none; }
a.kom-trade-chip:hover { border-color: var(--brand); }
.kom-trade-chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: #fff; }
.kom-trade-chip b { font-variant-numeric: tabular-nums; }
.kom-trade-chip b.up { color: var(--up); }
.kom-trade-chip b.down { color: var(--down); }

/* přístup do fóra (22. 10. 2026, lib/komunita_pristup.php) */
.kom-pristup-f { display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 460px; margin: 6px auto; }
.kom-pristup-h { font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.kom-pristup-t { margin: 0; font-size: 15px; }
.kom-pristup-av { display: grid; justify-items: center; gap: 8px; }
.kom-pristup-foto { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: var(--surface-2); }
.kom-pristup-foto img, .kom-pristup-foto svg { width: 88px; height: 88px; object-fit: cover; display: block; }
.kom-pristup-up { cursor: pointer; }
.kom-pristup-pole { display: grid; gap: 6px; width: 100%; text-align: left; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.kom-pristup-pole .input { width: 100%; border-radius: 99px; padding: 11px 16px; font-size: 15px; }
.kom-pristup-nick { position: relative; display: block; }
.kom-pristup-nick b { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 700; }
.kom-pristup-nick .input { padding-left: 32px; }
.kom-pristup-btn { width: 100%; border-radius: 99px; min-height: 48px; font-size: 16px; }
.kom-name { font-weight: 800; color: var(--ink); margin-right: 2px; }
.kom-author .kom-name + b { font-weight: 500; color: var(--ink-3); }

/* Zprávy (/zpravy, lib/zpravy.php, 22. 10. 2026) */
.zp-top .card-b { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.zp-mood { flex: 1 1 420px; display: grid; gap: 8px; }
.zp-mood-h { display: flex; gap: 10px; align-items: baseline; }
.zp-mood-h b { font-size: 16px; }
.zp-mood-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--surface-2); }
.zp-mood-bar span { display: block; height: 100%; }
.zp-mood-bar .is-up, .zp-mood-l i.is-up { background: var(--up); }
.zp-mood-bar .is-mid, .zp-mood-l i.is-mid { background: color-mix(in srgb, var(--ink-3) 45%, var(--surface)); }
.zp-mood-bar .is-down, .zp-mood-l i.is-down { background: var(--down); }
.zp-mood-l { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); }
.zp-mood-l i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.zp-zdroje a { text-decoration: none; }
.zp-zdroje { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--surface-2); }
.zp-zdroje a { padding: 6px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.zp-zdroje a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(11, 27, 75, .08); }
.zp-zdroje a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.zp-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; align-items: start; }
.zp-col { margin: 0; display: flex; flex-direction: column; }
.zp-col .card-h { display: flex; align-items: center; justify-content: space-between; }
.zp-n { font-size: 12.5px; }
.zp-list { max-height: 640px; overflow-y: auto; padding: 0 16px 12px; overscroll-behavior: contain; }
.zp-it { padding: 12px 0; border-top: 1px solid var(--line); }
.zp-it:first-child { border-top: 0; }
.zp-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.zp-nal { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 9px; }
.zp-nal.is-up { color: var(--up); background: color-mix(in srgb, var(--up) 14%, var(--surface)); }
.zp-nal.is-down { color: var(--down); background: color-mix(in srgb, var(--down) 14%, var(--surface)); }
.zp-nal.is-mid { color: var(--ink-3); background: var(--surface-2); }
.zp-loga { display: inline-flex; }
.zp-loga a + a { margin-left: -6px; }
.zp-loga .co-logo { box-shadow: 0 0 0 2px var(--surface); }
.zp-dul { margin-left: auto; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.zp-dul-4, .zp-dul-5 { background: color-mix(in srgb, var(--warn) 16%, var(--surface)); color: var(--warn); }
.zp-t { font-size: 15px; font-weight: 700; line-height: 1.35; margin: 6px 0 4px; }
.zp-t a { color: var(--ink); text-decoration: none; }
.zp-t a:hover { color: var(--link); text-decoration: underline; }
.zp-perex { margin: 0 0 4px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.zp-src { margin: 0; font-size: 12px; }
.zp-empty { padding: 12px 0; }
.zp-note { margin-top: 14px; font-size: 12.5px; }

/* Nápady a hlasování (/napady, lib/napady.php, 22. 10. 2026) */
.np-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: stretch; }
.np-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; min-height: 240px; padding: 18px; border-radius: var(--r-lg, 16px); background: var(--surface); border: 1px solid var(--line); }
.np-stupen { position: relative; display: grid; align-content: end; gap: 6px; height: 100%; padding: 12px; text-align: center; }
.np-stupen i { position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; border-radius: 12px 12px 6px 6px; background: color-mix(in srgb, var(--brand) 14%, var(--surface)); }
.np-stupen-1 i { background: color-mix(in srgb, var(--brand) 26%, var(--surface)); }
.np-stupen > :not(i) { position: relative; z-index: 1; }
.np-poradi { justify-self: center; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; }
.np-stupen b { font-size: 14px; line-height: 1.3; }
.np-hlasy { display: inline-flex; gap: 4px; justify-content: center; align-items: center; font-weight: 800; color: var(--down); }
.np-stat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-content: center; padding: 18px; border-radius: var(--r-lg, 16px); background: var(--surface); border: 1px solid var(--line); }
.np-stat div { display: grid; text-align: center; }
.np-stat b { font-size: 26px; font-weight: 800; }
.np-stat small { color: var(--ink-3); }
.np-novy, .np-limit { grid-column: 1 / -1; justify-self: stretch; text-align: center; margin: 6px 0 0; }
.np-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.np-col { background: var(--surface-2); border-radius: var(--r-lg, 16px); padding: 10px; min-width: 0; }
.np-col-h { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; }
.np-col-h h2 { font-size: 15px; font-weight: 800; margin: 0; }
.np-col-b { display: grid; gap: 10px; max-height: 720px; overflow-y: auto; }
.np-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.np-card.is-mine { border-color: var(--brand); }
.np-card-h { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.np-card-h h3 { font-size: 14.5px; font-weight: 700; margin: 0; line-height: 1.35; }
.np-body { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.np-note { margin: 0; font-size: 12.5px; color: var(--up); }
.np-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.np-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--sel); color: var(--brand); }
.np-akce { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.np-like { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; }
.np-like:hover { border-color: var(--down); color: var(--down); }
.np-like.on { background: color-mix(in srgb, var(--down) 12%, var(--surface)); border-color: color-mix(in srgb, var(--down) 40%, var(--line)); color: var(--down); }
.np-like.is-ro { cursor: default; }
.np-like.is-ro:hover { border-color: var(--line); color: var(--ink-2); }
.np-stav { font: inherit; font-size: 12.5px; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.np-prazdno { padding: 8px 6px; font-size: 13px; }
@media (max-width: 1100px) { .np-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } .np-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .np-board { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Fórum čistěji (22. 10. 2026, podle vzoru Stonkee v naší modré): editor na jeden řádek, lehké karty, akce vlevo s malými ikonami,
   pole pro komentář až po kliknutí na Komentovat, zprávy vpravo a mezi příspěvky ---------- */
.kom-fb .kom-list > .card, .kom-fb .kom-compose { border-radius: 16px; box-shadow: 0 0 0 1px var(--line-soft), 0 1px 2px rgba(15, 30, 70, .04); }
.kom-compose:not(.is-open) .kom-compose-h, .kom-compose:not(.is-open) .kom-rychle, .kom-compose:not(.is-open) .kom-hint { display: none; }
.kom-compose:not(.is-open) .card-b { padding: 14px 16px 12px; }
.kom-compose:not(.is-open) .kom-compose-ta { min-height: 46px; padding: 11px 18px; border-radius: 23px; border-color: transparent; background: var(--kom-bub); }
.kom-compose:not(.is-open) .kom-compose-bar { margin-top: 8px; padding-top: 0; border-top: 0; padding-left: 50px; }
.kom-compose:not(.is-open) .kom-compose-tools { display: flex; gap: 4px; flex: 0 1 auto; }
.kom-compose:not(.is-open) .kom-tool { min-height: 32px; padding: 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-3); border-radius: 99px; }
.kom-compose:not(.is-open) .kom-tool-ic { width: 22px; height: 22px; }
.kom-compose:not(.is-open) .kom-tool-ic .ic { width: 13px; height: 13px; }
.kom-compose .kom-compose-bar .btn-primary { border-radius: 99px; padding-left: 20px; padding-right: 20px; }
.kom-compose:not(.is-open) .kom-compose-bar .btn-primary { min-height: 34px; height: 34px; font-size: 13.5px; }
.kom-post { padding: 16px 18px 8px; gap: 10px; }
.kom-post .kom-media, .kom-post .kom-video, .kom-post .kom-links { margin-left: 0; margin-right: 0; border-radius: 12px; overflow: hidden; }
.kom-post .kom-link { border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.kom-stats { padding-bottom: 0; border-bottom: 0; font-size: 13px; }
.kom-stats.is-empty { display: none; }
.kom-actions:not(.kom-actions-compact) { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 0; margin: 0 -8px; border-bottom: 0; }
.kom-actions:not(.kom-actions-compact) .kom-react { justify-content: flex-start; min-height: 34px; padding: 0 10px; gap: 6px; border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.kom-actions:not(.kom-actions-compact) .kom-react .ic { width: 16px; height: 16px; }
.kom-actions:not(.kom-actions-compact) .kom-react:hover { color: var(--brand); background: var(--sel, var(--kom-hover)); }
.kom-actions:not(.kom-actions-compact) .kom-react.on { color: var(--brand); }
.kom-actions:not(.kom-actions-compact) .kom-react.on[data-react="like"] { color: var(--heart); }
.kom-actions .kom-share { margin-left: auto; }
.kom-list .kom-coms:not(.is-commenting) > .kom-cform, .kom-list .kom-coms:not(.is-commenting) > .kom-cform-fake { display: none; }
.kom-list .kom-coms:not(.is-commenting):not(:has(.kom-bub)):not(:has(.kom-coms-more)) { display: none; }
.kom-coms { border-top: 1px solid var(--line-soft); padding-top: 10px; }
.kom-disclaimer { font-size: 11.5px; opacity: .85; }

/* zprávy v Komunitě: karta vpravo a vložené karty Ze zpráv mezi příspěvky */
.kom-zpr-bok .card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kom-zpr-bok .card-h a { font-size: 12.5px; font-weight: 700; text-decoration: none; }
.kom-zpr-list .zp-it { padding: 10px 0; }
.kom-zpr-list .zp-it:first-child { border-top: 0; padding-top: 2px; }
.kom-zpr-list .zp-t { font-size: 13.5px; }
.kom-zpr-vlozene { padding: 14px 18px 8px; background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 6%, var(--kom-card)) 0%, var(--kom-card) 70%); }
.kom-zpr-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.kom-zpr-k { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.kom-zpr-h a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--link); text-decoration: none; }
.kom-zpr-vlozene .kom-zpr-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.kom-zpr-vlozene .zp-it { border-top: 0; padding: 8px 0; }
.kom-zpr-vlozene .zp-t { font-size: 14px; }
@media (max-width: 760px) { .kom-zpr-vlozene .kom-zpr-list { grid-template-columns: minmax(0, 1fr); } .kom-zpr-vlozene .zp-it + .zp-it { border-top: 1px solid var(--line-soft); } }
.zp-kom { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--brand); text-decoration: none; }
.zp-kom:hover { text-decoration: underline; }

/* stránka Zprávy: sloupec Z komunity */
.zp-col-komunita .card-h h2 { display: inline-flex; align-items: center; gap: 6px; }
.zp-col-komunita .card-h h2 .ic { color: var(--brand); }
.zp-col-komunita .card-h a { text-decoration: none; font-weight: 700; color: var(--link); }
.zp-post .zp-meta { gap: 6px; }
.zp-post-av { line-height: 0; }
.zp-post-who { color: var(--ink); text-decoration: none; font-size: 13px; }
.zp-post-who:hover { text-decoration: underline; }
.zp-post-tx { margin: 4px 0 0; font-size: 14px; line-height: 1.45; }
.zp-post-tx a { color: var(--ink); text-decoration: none; }
.zp-post-tx a:hover { color: var(--brand); }
.zp-post .zp-src .ic, .zp-kom .ic { display: inline-block; vertical-align: -2px; }

/* hledání ve fóru v levém sloupci (vede na /hledat, kde jsou i příspěvky) */
.kom-hledat { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 0 12px; height: 38px; border-radius: 99px; background: var(--kom-card); box-shadow: 0 0 0 1px var(--line-soft); color: var(--ink-3); }
.kom-hledat:focus-within { box-shadow: 0 0 0 2px var(--brand); }
.kom-hledat input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13.5px; outline: 0; }

/* příspěvky v komunitě na stránce hledání (22. 10. 2026) */
.hl-kom .card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hl-kom-vse { font-size: 13px; font-weight: 700; color: var(--link); text-decoration: none; }
.hl-kom-list { list-style: none; margin: 0; padding: 0 16px 8px; }
.hl-kom-list li + li { border-top: 1px solid var(--line-soft); }
.hl-kom-list a { display: grid; gap: 3px; padding: 10px 0; color: inherit; text-decoration: none; }
.hl-kom-list a:hover .hl-kom-t { color: var(--brand); }
.hl-kom-t { font-size: 14.5px; }
.hl-kom-s { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.hl-kom-s mark { background: color-mix(in srgb, var(--brand) 16%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.hl-kom-m { font-size: 12px; }

/* Moderace: příspěvek z odkazu v oznámení nebo e-mailu (#mod-{id}) je zvýrazněný (22. 10. 2026) */
.kom-mod-item.is-target { margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 8%, transparent); box-shadow: inset 3px 0 0 var(--brand); }

/* pravni.css */
/* Právní texty (/pravni, X-02): koncept, obsah, oddíly s odstavci, odrážkami a tabulkou, poznámky pro právníka. Barvy jen z tokenů. */
body main.wrap.pr { max-width: 980px; }          /* silnější než body.pub .wrap (public.css, 1 340 px): text se čte líp užší */
.pr-koncept { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--line)); background: color-mix(in srgb, var(--warn) 9%, var(--surface)); font-size: var(--fs-sm); line-height: 1.55; }
.pr-koncept b { color: var(--warn); }
.pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.pr-card { display: grid; gap: 6px; padding: 16px; text-decoration: none; color: var(--ink); align-content: start; }
.pr-card:hover { border-color: var(--brand); }
.pr-card b { font-size: 15.5px; }
.pr-card small { line-height: 1.45; }
.pr-card .badge { justify-self: start; }
.pr-card-ico { color: var(--brand); }
.pr-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: var(--fs-sm); }
.pr-oddil { margin-top: 12px; scroll-margin-top: 80px; }
.pr-oddil .card-b > p { margin: 0 0 10px; line-height: 1.6; }
.pr-oddil .card-b > p:last-child { margin-bottom: 0; }
.pr-body { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; line-height: 1.55; }
.pr-tab { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin: 4px 0 10px; }
.pr-tab th, .pr-tab td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); overflow-wrap: anywhere; }
.pr-tab th { color: var(--ink-3); font-weight: 700; background: var(--surface-2); }
.pr-pravnik { margin: 10px 0 0 !important; padding: 8px 12px; border-left: 3px solid var(--warn); background: var(--surface-2); color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.5; }
.pr-dalsi { margin: 16px 0 0; font-size: var(--fs-sm); }
.foot-pravni a, .pub-foot-pravni a { color: inherit; }
.pub-foot-pravni { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 8px; }
@media (max-width: 720px) {
  .pr-tab thead { display: none; }
  .pr-tab, .pr-tab tbody, .pr-tab tr, .pr-tab td { display: block; width: 100%; }
  .pr-tab tr { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; padding: 6px 0; background: var(--surface); }
  .pr-tab td { border: 0; padding: 4px 12px; }
  .pr-tab td[data-l]:not(:first-child)::before { content: attr(data-l) ": "; color: var(--ink-3); font-weight: 600; }
}

/* planovani.css */
/* Plánování v dnešních penězích (/planovani, W3-01 až W3-03, W3-10) a vysvětlivky u čísel se slovníkem pojmů (/pojmy, W3-04). Barvy jen z tokenů motivu, světlý i tmavý režim. */

/* vysvětlivka: text a malé kulaté tlačítko s otazníkem, okénko nad stránkou */
.pj-w { display: inline-flex; align-items: center; gap: 4px; }
.pj { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); font: inherit; font-size: 11px; font-weight: 800; line-height: 1; cursor: pointer; vertical-align: middle; }
.pj:hover, .pj[aria-expanded="true"] { border-color: var(--brand); color: var(--brand); }
.pj:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pj-pop { position: fixed; z-index: 90; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--tip-bg); color: var(--ink); box-shadow: var(--shadow); font-size: 13.5px; line-height: 1.5; }
.pj-pop p { margin: 6px 0 0; color: var(--ink-2); }
.pj-pop .pj-short { color: var(--ink); font-weight: 600; }
.pj-pop-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pj-pop-h b { font-size: 14.5px; }
.pj-x { width: 28px; height: 28px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); font-size: 18px; cursor: pointer; }
.pj-x:hover { background: var(--surface-2); color: var(--ink); }
.pj-more { display: inline-block; margin-top: 8px; color: var(--link); font-weight: 700; font-size: 13px; }

/* slovník pojmů /pojmy */
.pj-index ul { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.pj-index a { color: var(--link); font-weight: 600; }
.pj-list { margin-top: 14px; }
.pj-list dl { margin: 0; display: grid; gap: 0; }
.pj-item { padding: 14px 0; border-top: 1px solid var(--line-soft); scroll-margin-top: 80px; }
.pj-item:first-child { border-top: 0; padding-top: 0; }
.pj-item dt { font-weight: 800; font-size: 16px; }
.pj-item dd { margin: 4px 0 0; color: var(--ink-2); line-height: 1.55; font-size: 14.5px; }
.pj-item dd p { margin: 4px 0 0; }
.pj-item dd .pj-short { color: var(--ink); font-weight: 600; }
.pj-item:target { background: var(--surface-2); border-radius: var(--r-sm); padding-left: 10px; padding-right: 10px; }
.pj-foot { margin-top: 14px; font-size: 13px; }

/* plánování */
.pl-tabs { margin: 0 0 14px; }
.pl-hero .card-b { display: grid; gap: 10px; }
.pl-hero-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.pl-goal { margin: 0; font-size: 15px; color: var(--ink-2); }
.pl-goal b { color: var(--ink); }
.pl-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.pl-big b { font-size: clamp(26px, 6vw, 36px); font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pl-big span { color: var(--ink-2); font-size: 14px; }
.pl-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pl-band > div { padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.pl-band > div.is-mid { border-color: var(--brand); }
.pl-band small { display: block; color: var(--ink-3); font-size: 12px; font-weight: 700; }
.pl-band b { display: block; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pl-band em { display: block; font-style: normal; color: var(--ink-3); font-size: 12px; }
.pl-chart { height: 280px; width: 100%; margin-top: 4px; }
.pl-veta { margin: 0; font-size: 14.5px; line-height: 1.55; }
.pl-note { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.pl-warn { margin: 0; padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); font-size: 13.5px; line-height: 1.5; }
.pl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; align-items: start; }
.pl-grid > .card { margin: 0; }
.pl-grid.masonry-js > .mcol { gap: 14px; }
.pl-grid.masonry-js .mcol > .card { margin: 0; }
.pl-grid.g2.masonry { column-gap: 14px; }
.pl-grid.g2.masonry > * { margin: 0 0 14px; }
.pl-full { grid-column: 1 / -1; }
.pl-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pl-way { display: grid; gap: 6px; align-content: start; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.pl-way h3 { margin: 0; font-size: 14px; }
.pl-way b { font-size: 18px; font-variant-numeric: tabular-nums; }
.pl-way p { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.pl-way .btn { justify-self: start; }
.pl-num { counter-reset: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 800; margin-right: 6px; }
.pl-pred { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pl-pred .field { margin: 0; }
.pl-pred input { width: 100%; }
.pl-src { display: block; margin-top: 3px; color: var(--ink-3); font-size: 12px; }
.pl-events { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pl-event { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.pl-event time { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.pl-event b { display: block; font-size: 14.5px; }
.pl-event span { display: block; color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.pl-event .ns-tools { margin: 0; flex-wrap: nowrap; }
.pl-switch { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.pl-q { margin: 0 0 14px; padding: 0; border: 0; }
.pl-q legend { font-weight: 800; font-size: 14.5px; margin-bottom: 6px; padding: 0; }
.pl-q label { display: flex; gap: 8px; align-items: flex-start; padding: 6px 8px; border-radius: var(--r-sm); font-size: 14px; cursor: pointer; }
.pl-q label:hover { background: var(--surface-2); }
.pl-q input { margin-top: 3px; }
.pl-rp b { font-size: 20px; }
.pl-why { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 13px; line-height: 1.5; display: grid; gap: 3px; }
.pl-prob { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.pl-prob b { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pl-prob span { color: var(--ink-2); font-size: 14px; }
.pl-mc-chart { height: 240px; width: 100%; margin-top: 8px; }
.pl-pct { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.pl-pct > div { padding: 8px; border-radius: var(--r-sm); background: var(--surface-2); text-align: center; min-width: 0; }
.pl-pct small { display: block; color: var(--ink-3); font-size: 11.5px; font-weight: 700; }
.pl-pct b { display: block; font-size: 13.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .pl-grid { grid-template-columns: minmax(0, 1fr); }
  .pl-ways { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .pl-band { grid-template-columns: minmax(0, 1fr); }
  .pl-band > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .pl-chart { height: 230px; }
  .pl-event { grid-template-columns: minmax(0, 1fr) auto; }
  .pl-event time { grid-column: 1 / -1; }
  .pl-pct { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .pj, .pl-way { transition: none; }
}

/* Složení a výnosy po třídách majetku (21. 10. 2026) */
.pl-tr-card { margin-top: 14px; }
.pl-tr th, .pl-tr td { vertical-align: middle; }
.pl-tr td small.pl-src { display: block; margin-top: 2px; }
.pl-tr-on { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.pl-tr-on input { width: 16px; height: 16px; accent-color: var(--brand); }
.pl-tr tr.is-off td { color: var(--ink-3); }
.pl-tr tr.is-off .pl-tr-on span { font-weight: 600; }
.pl-tr-in { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.pl-tr-in input { width: 64px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; text-align: right; font-variant-numeric: tabular-nums; }
.pl-tr-in input:disabled { opacity: .45; }
.pl-tr-sum td { border-top: 2px solid var(--line); font-weight: 800; }
.pl-tr-add { padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; margin-right: auto; }

/* vykonnost.css */
/* Výkonnost a rozbor majetku (úlohy W2-03, W2-04, W2-11, W2-12, W2-13, W3-08): srovnání s benchmarkem, pokles a kolísání, příspěvky titulů, expozice přes ETF,
   zátěžový test jmění, blok Moje pozice na detailu titulu a roční report. Jen tokeny z app.css (světlý i tmavý motiv), na telefonu bez vodorovného přetékání. */

/* ---------- benchmark ---------- */
.bm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.bm-lbl { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.bm-lbl > span { white-space: nowrap; }
.bm-lbl .select { max-width: 100%; min-width: 0; }
.bm-search { flex: 1 1 200px; max-width: 280px; min-width: 0; }
.bm-search input { height: var(--h-sm); padding: 0 12px; font-size: var(--fs-sm); border-radius: var(--r); }
.bm-gap { margin-top: 10px; }
.bm-veta { margin: 12px 0; }
.bm-card .pf-chart { margin-top: 6px; }

/* ---------- pokles, kolísání, příspěvky ---------- */
.rz-rok { margin: 10px 0 0; font-size: var(--fs-sm); }
.rz-card .pf-verdict { margin-top: 12px; }
.vk-prisp-chart { width: 100%; margin: 10px 0 4px; }
.vk-prisp-naklady td { color: var(--ink-2); font-style: italic; }

/* ---------- expozice přes ETF ---------- */
.ex-vety { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 4px; color: var(--ink); font-size: var(--fs); line-height: 1.5; }
.ex-h { margin: 14px 0 6px; font-size: var(--fs-md); font-weight: 800; color: var(--ink); }

/* ---------- zátěžový test ---------- */
.zt-uvod { margin: 0 0 10px; font-size: var(--fs-sm); }
.zt-ovl { display: grid; gap: 10px; margin-bottom: 12px; }
.zt-pokles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-weight: 700; color: var(--ink); }
.zt-pokles input[type="range"] { flex: 1 1 160px; max-width: 320px; min-width: 0; accent-color: var(--brand); }
.zt-num { width: 72px; height: var(--h-sm); padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); font: inherit; text-align: right; }
.zt-tridy { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.zt-trida { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface-2); font-size: var(--fs-sm); cursor: pointer; max-width: 100%; }
.zt-trida input { accent-color: var(--brand); margin: 0; }
.zt-trida small { white-space: nowrap; }
.zt-veta { margin: 12px 0; }
.zt-predpoklady { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 3px; font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- moje pozice ---------- */
.mp-card { margin-top: 14px; }
.mp-souhrn { margin: 0 0 10px; font-size: var(--fs-sm); }
.mp-pf + .mp-pf { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.mp-pf-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: var(--fs-md); font-weight: 800; }
.mp-det { margin-top: 10px; }
.mp-det summary { cursor: pointer; font-weight: 700; font-size: var(--fs-sm); color: var(--link); }
.mp-det .tbl-wrap { margin-top: 8px; }

/* ---------- roční report ---------- */
.rp-gap { margin: 0 0 12px; }
.rp-years { margin: 0 0 12px; }
.rp-shrnuti { margin: 0 0 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); line-height: 1.55; }
.rp-veta { margin: 12px 0 8px; color: var(--ink-2); font-size: var(--fs-sm); }
.rp-tbl .rp-sum td { font-weight: 800; border-top: 2px solid var(--line); }
.rp-actions .badge { margin-left: 2px; }
@media (max-width: 640px) {
  .rp-actions { flex-wrap: wrap; }
  .rp-pf thead { display: none; }
  .rp-pf tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
  .rp-pf td, .rp-pf td.num { border: 0; padding: 2px 0; text-align: left; }
  .rp-pf td:first-child { grid-column: 1 / -1; font-weight: 800; }
  .rp-pf td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; }
}
@media print {
  .rp-years, .rp-actions { display: none !important; }
}

/* 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; } }

/* 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; }
}

