:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);
  --hover: rgba(11, 11, 11, 0.04);
  --s1: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
  --s4: #eda100;
  --s1-soft: #cde2fb;
  --up: #006300;
  --down: #d03b3b;
  --live: #d03b3b;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --ink: #ffffff;
    --ink-2: #c3c2b7;
    --grid: #2c2c2a;
    --axis: #383835;
    --border: rgba(255, 255, 255, 0.10);
    --hover: rgba(255, 255, 255, 0.05);
    --s1: #3987e5;
    --s2: #d95926;
    --s3: #199e70;
    --s4: #c98500;
    --s1-soft: #184f95;
    --up: #0ca30c;
    --down: #e66767;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #1a1a19;
  --ink: #ffffff;
  --ink-2: #c3c2b7;
  --grid: #2c2c2a;
  --axis: #383835;
  --border: rgba(255, 255, 255, 0.10);
  --hover: rgba(255, 255, 255, 0.05);
  --s1: #3987e5;
  --s2: #d95926;
  --s3: #199e70;
  --s4: #c98500;
  --s1-soft: #184f95;
  --up: #0ca30c;
  --down: #e66767;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--page);
  color: var(--ink);
  font: 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
h2 { font-size: 13px; font-weight: 600; margin: 0; letter-spacing: .01em; }
.sub { color: var(--muted); font-size: 12px; margin: 2px 0 12px; }
.muted { color: var(--muted); }
button, .link {
  font: inherit; font-size: 13px; color: var(--ink-2); background: none;
  border: 1px solid var(--border); border-radius: 6px; padding: 5px 10px; cursor: pointer; text-decoration: none;
}
button:hover, .link:hover { background: var(--hover); color: var(--ink); }

/* Hlavička */
.top {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 24px; border-bottom: 1px solid var(--border); background: var(--surface);
}
.brand { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.status { color: var(--muted); font-size: 12px; margin-right: auto; font-variant-numeric: tabular-nums; }
.actions { display: flex; gap: 8px; }
.banner {
  margin: 12px 24px 0; padding: 8px 12px; border-radius: 8px; font-size: 13px;
  border: 1px solid var(--down); color: var(--ink);
}

/* Mřížka */
.grid {
  display: grid; gap: 16px; padding: 16px 24px 32px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1.3fr);
  grid-template-areas:
    "now minutes kpis"
    "rising rising rising"
    "articles articles sources"
    "fresh fresh fresh"
    "hourly hourly hourly"
    "topday yearago discover"
    "consent consent consent"
    "gatrend gatrend gatrend"
    "social social social"
    "nmtrend nmtrend nmtrend"
    "socdemo socdemo socdemo"
    "discperf discperf discperf"
    "compet compet compet"
    "seznam seznam seznam"
    "homepage homepage index"
    "nmask nmask nmask";
}
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; min-width: 0;
}
.now { grid-area: now; }
.minutes { grid-area: minutes; }
.kpis { grid-area: kpis; }
.articles { grid-area: articles; }
.sources { grid-area: sources; }
.hourly { grid-area: hourly; }
.topday { grid-area: topday; }
.index { grid-area: index; }
.yearago { grid-area: yearago; }
.discover { grid-area: discover; }
.consent { grid-area: consent; }
.homepage { grid-area: homepage; }
.rising { grid-area: rising; }
.socdemo { grid-area: socdemo; }
.nmtrend { grid-area: nmtrend; }
.gatrend { grid-area: gatrend; }
.nmask { grid-area: nmask; }
.discperf { grid-area: discperf; }
.compet { grid-area: compet; }
/* Zeptej se GA – samostatný blok nad mřížkou */
.ask { margin: 16px 24px 0; }
.ask[hidden] { display: none; }
@media (max-width: 720px) { .ask { margin: 12px 16px 0; } }
.fresh { grid-area: fresh; }

/* Teď na webu */
.hero { font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -.02em; margin-top: 10px; }
.devices { margin-top: 8px; }
.stackbar { display: flex; gap: 2px; height: 10px; margin: 6px 0 8px; }
.stackbar span { display: block; height: 100%; }
.stackbar span:first-child { border-radius: 4px 0 0 4px; }
.stackbar span:last-child { border-radius: 0 4px 4px 0; }
.stackbar span:only-child { border-radius: 4px; }
.dev-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink-2); }
.dev-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.dev-legend b { color: var(--ink); font-weight: 600; }

/* KPI */
.kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kpi .label { font-size: 12px; color: var(--ink-2); }
.kpi .value { font-size: 26px; font-weight: 700; line-height: 1.15; margin: 2px 0; }
.delta { font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }
.delta.flat { color: var(--muted); font-weight: 500; }

/* Grafy */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { fill: var(--muted); font: 11px var(--font); font-variant-numeric: tabular-nums; }
.gridline { stroke: var(--grid); stroke-width: 1; }
.baseline { stroke: var(--axis); stroke-width: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.legend i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 6px; border-radius: 1px; }
.legend i.dash { background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px) !important; }

/* Články */
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.card-head .sub { margin-bottom: 8px; }
.table-wrap { overflow-x: auto; }
.art-table { width: 100%; border-collapse: collapse; }
.art-table th {
  text-align: left; font-size: 11px; font-weight: 500; color: var(--muted);
  padding: 6px 8px; border-bottom: 1px solid var(--grid); white-space: nowrap;
}
.art-table td { padding: 7px 8px; border-bottom: 1px solid var(--grid); vertical-align: middle; }
.art-table tr:last-child td { border-bottom: 0; }
.art-table tbody tr:hover td { background: var(--hover); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.art-table td.num:first-child { color: var(--muted); width: 28px; }
.art-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.users-now { font-weight: 700; font-size: 15px; }
.spark-col { width: 130px; }
.spark { display: block; width: 120px; height: 28px; }
.trend { display: inline-block; font-size: 12px; font-weight: 600; white-space: nowrap; }
.trend.up { color: var(--up); }
.trend.down { color: var(--down); }
.trend.flat { color: var(--muted); font-weight: 500; }

/* Zdroje */
.src-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 6px 0; }
.src-row + .src-row { border-top: 1px solid var(--grid); }
.src-name { font-size: 13px; }
.src-val { text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.src-val .delta { margin-left: 8px; }
.src-track { grid-column: 1 / -1; position: relative; height: 8px; }
.src-bar { position: absolute; left: 0; top: 0; height: 8px; background: var(--s1); border-radius: 0 4px 4px 0; }
.src-lw { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--ink-2); border-radius: 1px; }
.src-legend { display: flex; gap: 14px; font-size: 11px; color: var(--muted); margin: -6px 0 6px; }
.src-legend i { display: inline-block; vertical-align: middle; margin-right: 5px; }

/* Nejčtenější dnes */
.top-list { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.top-list li {
  counter-increment: t; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px;
  padding: 7px 0; border-bottom: 1px solid var(--grid); align-items: baseline;
}
.top-list li:last-child { border-bottom: 0; }
.top-list li::before { content: counter(t); color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; font-size: 12px; }
.top-list .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-list .v { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Tooltip */
.tip {
  position: fixed; z-index: 10; pointer-events: none; max-width: 280px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12); border-radius: 8px; padding: 8px 10px; font-size: 12px;
}
.tip .tt { color: var(--ink-2); margin-bottom: 4px; }
.tip .tr { display: flex; justify-content: space-between; gap: 14px; font-variant-numeric: tabular-nums; }
.tip .tr i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }

.empty { color: var(--muted); font-size: 13px; padding: 12px 0; }

/* Užší obrazovky */
@media (max-width: 1100px) {
  .grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "now kpis" "minutes minutes" "rising rising" "articles articles" "fresh fresh" "hourly hourly" "sources topday" "yearago discover" "consent consent" "gatrend gatrend" "social social" "nmtrend nmtrend" "socdemo socdemo" "discperf discperf" "compet compet" "seznam seznam" "homepage homepage" "index index" "nmask nmask";
  }
}
@media (max-width: 720px) {
  .top { padding: 10px 16px; }
  .grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "now" "kpis" "minutes" "rising" "articles" "fresh" "hourly" "sources" "topday" "yearago" "discover" "consent" "gatrend" "social" "nmtrend" "socdemo" "discperf" "compet" "seznam" "homepage" "index" "nmask"; padding: 12px 16px 24px; gap: 12px; }
  .banner { margin: 12px 16px 0; }
  .hero { font-size: 52px; }
  .spark-col, .art-table td.spark-cell, .art-table .col-hp, .art-table .col-direct { display: none; }
}

/* TV režim: větší písmo, bez ovládání, kurzor se schová */
body.tv { font-size: 17px; cursor: none; }
body.tv .actions { display: none; }
body.tv h2 { font-size: 16px; }
body.tv .sub { font-size: 13px; }
body.tv .hero { font-size: 96px; }
body.tv .kpi .value { font-size: 34px; }
body.tv .art-title { font-size: 18px; }
body.tv .users-now { font-size: 20px; }
body.tv .grid { padding: 16px; gap: 14px; grid-template-areas: "now minutes kpis" "rising rising rising" "articles articles sources"; }
/* Na obrazovce v redakci se musí vše vejít na jednu Full HD plochu – denní přehledy jen na počítači. */
body.tv .hourly, body.tv .topday, body.tv .yearago, body.tv .discover, body.tv .index, body.tv .tabs, body.tv .consent, body.tv .homepage, body.tv .fresh, body.tv .ask, body.tv .seznam { display: none; }

/* Záložky subdomén */
.tabs { display: flex; gap: 4px; padding: 10px 24px 0; overflow-x: auto; scrollbar-width: thin; }
.tabs:empty { display: none; }
.tabs a {
  flex: none; font-size: 13px; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; border: 1px solid transparent;
}
.tabs a:hover { background: var(--hover); color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--surface); border-color: var(--border); color: var(--ink); font-weight: 600; }
.note { font-size: 12px; color: var(--ink-2); margin: 10px 0 0; padding: 6px 8px; border-radius: 6px; background: var(--hover); }

/* KPI s dvojím srovnáním */
.kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
.kpi .value.sm { font-size: 22px; }
.kpi .deltas { display: flex; flex-direction: column; gap: 1px; }
.kpi .deltas .vs { color: var(--muted); font-weight: 400; }

/* Čtení a dočtení v tabulce */
.read { color: var(--ink); font-variant-numeric: tabular-nums; }
.complete { display: flex; align-items: center; gap: 6px; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meter { display: inline-block; width: 44px; height: 6px; border-radius: 3px; background: var(--grid); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--s1); border-radius: 0 3px 3px 0; }
.dim { color: var(--muted); }

/* Index návštěvnosti */
.idx-head { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 4px; }
.idx-val { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.idx-state { font-size: 13px; font-weight: 600; }
.idx-state.up { color: var(--up); }
.idx-state.down { color: var(--down); }
.idx-state.flat { color: var(--ink-2); }
.idx-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }

/* Před rokem / Discover */
.top-list .r { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.disc-head { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 2px; flex-wrap: wrap; }
.disc-val { font-size: 32px; font-weight: 700; line-height: 1.1; }
.disc-list { list-style: none; margin: 8px 0 0; padding: 0; }
.disc-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 6px 0; border-top: 1px solid var(--grid); font-size: 13px; }
.disc-list a { color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disc-list a:hover { text-decoration: underline; }
.disc-list b { font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .tabs { padding: 10px 16px 0; }
  .art-table th.col-complete, .art-table td.complete-cell { display: none; }
}

/* Souhlasy a adblock */
.cons-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: start; }
.cons-grid h3 { font-size: 12px; font-weight: 500; color: var(--ink-2); margin: 0 0 6px; }
.cons-big { font-size: 30px; font-weight: 700; line-height: 1.1; }
.cons-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.cons-meta .delta { font-size: 12px; }
.stackbar.tall { height: 14px; margin: 8px 0 8px; }
@media (max-width: 1100px) { .cons-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 720px) { .cons-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* Hlavička: uživatelé, zobrazení a zobrazení na uživatele za 30 min */
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 2px 0 12px; padding: 8px 0; border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid); }
.mini-stats .label { display: block; font-size: 11px; color: var(--muted); }
.mini-stats b { font-size: 17px; font-variant-numeric: tabular-nums; }
body.tv .mini-stats b { font-size: 22px; }

/* Homepage: pořadí a výkon */
.hp-pos { font-weight: 600; color: var(--ink-2); }
.hp-link { color: var(--ink); text-decoration: none; }
.hp-link:hover { text-decoration: underline; }
.hp-bar-col { width: 190px; }
.hp-bar-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hp-bar { display: inline-block; vertical-align: middle; width: 120px; height: 8px; margin-right: 8px; background: var(--grid); border-radius: 0 4px 4px 0; }
.hp-bar > span { display: block; height: 100%; background: var(--s1); border-radius: 0 4px 4px 0; }
@media (max-width: 720px) { .hp-bar { width: 60px; } .hp-bar-col { width: auto; } }

/* Štítek nejsilnějšího zdroje čtenářů u článku */
.origin-tag {
  display: inline-block; margin-top: 3px; padding: 1px 7px; border-radius: 999px;
  font-size: 11px; font-weight: 500; color: var(--ink-2); background: var(--hover); border: 1px solid var(--border);
  white-space: nowrap; cursor: default;
}
body.tv .origin-tag { font-size: 13px; }

/* =====================================================================
   Vizuální úprava v2 – světlejší plochy, karty se stínem, štítky místo holého textu.
   Barvy řad zůstávají z ověřené palety (dataviz), jen přibyly sloty 5–7 pro štítky zdrojů.
   ===================================================================== */
:root {
  --page: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #f8f9fa;
  --brand: #d42027;
  --s5: #e87ba4;
  --s6: #008300;
  --s7: #4a3aa7;
  --up-bg: rgba(0, 131, 0, .09);
  --down-bg: rgba(208, 59, 59, .09);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .05);
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0b0c0e;
    --surface: #16181c;
    --surface-2: #1d2025;
    --s5: #d55181;
    --s7: #9085e9;
    --up-bg: rgba(12, 163, 12, .16);
    --down-bg: rgba(230, 103, 103, .16);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"] {
  --page: #0b0c0e;
  --surface: #16181c;
  --surface-2: #1d2025;
  --s5: #d55181;
  --s7: #9085e9;
  --up-bg: rgba(12, 163, 12, .16);
  --down-bg: rgba(230, 103, 103, .16);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
}

body { font-size: 14px; letter-spacing: -.003em; }
h2 { font-size: 14px; font-weight: 650; letter-spacing: -.005em; }
.sub { font-size: 12px; line-height: 1.45; }

/* Hlavička */
.top {
  position: sticky; top: 0; z-index: 5; padding: 12px 28px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px);
}
.brand { font-size: 17px; gap: 10px; }
.brand strong { font-weight: 750; letter-spacing: -.02em; }
.live-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.live-dot { width: 7px; height: 7px; background: var(--brand); box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 50%, transparent); animation: live 1.8s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }
button, .link { border-radius: 8px; padding: 6px 12px; background: var(--surface); }

/* Karty a mřížka */
.grid { gap: 18px; padding: 20px 28px 40px; }
.card { border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--ink) 7%, transparent); }

/* Teď na webu */
.hero { font-size: 72px; font-weight: 750; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.mini-stats { border: 0; padding: 0; gap: 8px; margin: 4px 0 14px; }
.mini-stats > div { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.mini-stats b { font-size: 18px; font-weight: 700; }
.stackbar { height: 8px; }
.stackbar span:first-child { border-radius: 999px 0 0 999px; }
.stackbar span:last-child { border-radius: 0 999px 999px 0; }
.stackbar span:only-child { border-radius: 999px; }

/* Změny a trendy jako štítky */
.delta.up, .delta.down, .trend.up, .trend.down { padding: 1px 7px; border-radius: 999px; }
.delta.up, .trend.up { background: var(--up-bg); }
.delta.down, .trend.down { background: var(--down-bg); }
.kpi .deltas { gap: 4px; align-items: flex-start; margin-top: 4px; }
.kpi .value { font-size: 28px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-row { gap: 14px 12px; }

/* Tabulky */
.art-table th { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; }
.art-table td { padding: 10px 10px; border-bottom-color: color-mix(in srgb, var(--grid) 70%, transparent); }
.art-table tbody tr { transition: background .15s; }
.art-table tbody tr:hover td { background: var(--surface-2); }
.art-table td.num:first-child { font-weight: 600; }
.art-table tbody tr:nth-child(-n+3) td.num:first-child { color: var(--brand); }
.art-title { font-weight: 600; line-height: 1.35; }
.users-now { font-size: 16px; font-weight: 750; }
.hp-pos { color: var(--ink); }

/* Štítky zdrojů u článku */
.origins { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.origin-tag {
  display: inline-flex; align-items: center; gap: 5px; margin: 0; padding: 1px 8px 1px 6px;
  border: 0; background: var(--surface-2); color: var(--ink-2); font-weight: 500;
}
.origin-tag i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.origin-tag b { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.origin-tag.first { background: color-mix(in srgb, var(--ink) 7%, transparent); }

/* Pruhy */
.src-bar, .hp-bar > span, .meter > span { border-radius: 999px; }
.hp-bar, .meter { border-radius: 999px; background: color-mix(in srgb, var(--grid) 70%, transparent); }
.src-row { padding: 8px 0; }
.src-track { height: 8px; }
.src-bar { height: 8px; }

/* Velká čísla v dalších kartách */
.idx-val, .disc-val, .cons-big { letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* Tooltip */
.tip { border-radius: 10px; box-shadow: 0 8px 24px rgba(16, 24, 40, .14); padding: 9px 12px; }

@media (max-width: 720px) {
  .top { padding: 10px 16px; }
  .grid { padding: 14px 16px 28px; }
  .hero { font-size: 56px; }
}
body.tv .hero { font-size: 104px; }
body.tv .origin-tag { font-size: 13px; }
@media (max-width: 720px) {
  .top { position: static; }
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi .value { font-size: 24px; }
}

/* Rozbalení zdroje na top články */
.src-row { cursor: pointer; }
.src-row:hover .src-name, .src-row:focus-visible .src-name { color: var(--s1); }
.src-row:focus-visible { outline: 2px solid var(--s1); outline-offset: 2px; border-radius: 6px; }
.src-caret { display: inline-block; width: 14px; color: var(--muted); font-size: 10px; transition: transform .15s; }
.src-row.open .src-caret { transform: rotate(90deg); }
.src-detail { margin: 2px 0 8px 14px; padding: 8px 10px; background: var(--hover); border-radius: 8px; }
.src-detail-h { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.src-detail .top-list li { font-size: 12px; }
.src-detail + .src-row { border-top: 0; }

/* Přepínač období (Před měsícem / rokem / 2 lety) */
.seg { display: inline-flex; margin-left: auto; padding: 2px; gap: 2px; border: 1px solid var(--border); border-radius: 8px; background: var(--hover); }
.seg button { font: inherit; font-size: 11px; padding: 3px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* Titulky jako odkazy na článek */
a.art-title, .top-list a.t { color: inherit; text-decoration: none; }
a.art-title:hover, .top-list a.t:hover, a.art-title:focus-visible, .top-list a.t:focus-visible { color: var(--s1); text-decoration: underline; text-underline-offset: 2px; }

/* Discover – dnešní seznam podle refereru */
.disc-list-h { font-size: 12px; font-weight: 600; margin: 14px 0 4px; }
.disc-list-h .muted { font-weight: 400; }

/* Záložky Co se čte teď */
#art-seg { margin-left: 12px; }
#art-seg .cnt { font-weight: 400; color: var(--muted); font-size: 10px; margin-left: 2px; }
body.tv #art-seg { display: none; }

/* Rozjíždí se */
.rising { padding-top: 12px; padding-bottom: 12px; }
.rising h2 { margin-bottom: 6px; }
.rise-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 16px; }
.rise-list .empty { grid-column: 1 / -1; margin: 0; }
.rise-item { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 8px; background: var(--up-bg); min-width: 0; }
.rise-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: inherit; text-decoration: none; }
a.rise-title:hover { color: var(--s1); text-decoration: underline; }
.rise-meta { font-size: 12px; color: var(--ink-2); }
.rise-meta .trend { font-size: 11px; }
body.tv .rise-title { font-size: 18px; }

/* Poradce HP */
.score { font-variant-numeric: tabular-nums; }
.score.up { color: var(--up); font-weight: 600; }
.score.down { color: var(--down); font-weight: 600; }
.advice { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.advice.up { background: var(--up-bg); color: var(--up); }
.advice.down { background: var(--down-bg); color: var(--down); }

/* Dnes vydané */
.fresh-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.fresh-table .hp-bar-cell .trend, .fresh-table .hp-bar-cell .muted { font-size: 11px; margin-left: 8px; white-space: nowrap; }
.recur { color: var(--s3); }
.fresh-table td.num:first-child { color: var(--ink-2); font-weight: 600; }
.fresh-table th.hp-bar-col, .fresh-table td.hp-bar-cell { width: 30%; }

/* Vysvětlení a přepínač v kartě Rozjíždí se / Highlighty */
.help-btn { font: inherit; font-size: 11px; color: var(--s1); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.explain { font-size: 12px; color: var(--ink-2); background: var(--hover); border-radius: 8px; padding: 8px 12px; margin: 0 0 10px; line-height: 1.5; }
.explain p { margin: 4px 0; }
.explain ol, .explain ul { margin: 4px 0; padding-left: 20px; }
.hl-item { background: var(--hover); }
.hl-cycle { color: var(--s3); font-weight: 600; }
.hl-prev { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tv .help-btn, body.tv .explain, body.tv #rise-seg { display: none; }

/* Heatmapa časů vydání */
.hm { display: grid; gap: 2px; margin-bottom: 14px; min-width: 640px; }
.hm-row { display: grid; grid-template-columns: 34px repeat(var(--cols), minmax(0, 1fr)); gap: 2px; }
.hm-label { font-size: 11px; color: var(--muted); align-self: center; text-align: right; padding-right: 6px; font-variant-numeric: tabular-nums; }
.hm-col { font-size: 10px; color: var(--muted); text-align: center; }
.hm-cell { height: 24px; border-radius: 3px; font-size: 10px; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--s1) var(--a), var(--hover)); color: var(--ink); }
.hm-title { font-size: 12px; font-weight: 600; margin: 6px 0 6px; }
.hm-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); margin-bottom: 8px; }
.hm-chip { padding: 2px 8px; border-radius: 999px; background: var(--hover); }
#pub-heatmap { overflow-x: auto; }
.hm-cell.hot { color: #fff; font-weight: 600; }

/* Poznámka v bublině (např. odhad uživatelů) */
.tnote { margin-top: 6px; max-width: 260px; font-size: 11px; color: var(--muted); white-space: normal; }

/* Výrazný přepínač vlevo (Rozjíždí se / Highlighty) */
.rise-head { align-items: center; gap: 8px 14px; }
.seg.seg-lg { margin-left: 0; padding: 3px; border-radius: 10px; }
.seg.seg-lg button { font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 8px; color: var(--ink-2); }
.seg.seg-lg button[aria-pressed="true"] { background: var(--s1); color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); }

/* Analýza čas vydání × návštěvnost */
.pa { margin-bottom: 18px; }
.pa-title { font-size: 13px; font-weight: 600; margin: 4px 0 6px; }
.pa-title .muted { font-weight: 400; font-size: 12px; }
.pa-list { margin: 0 0 12px; padding-left: 20px; font-size: 13px; line-height: 1.5; }
.pa-list li { margin: 3px 0; }
.pa-head { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.pa-sub { font-size: 12px; font-weight: 600; }
.pa-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.pa-table th { font-size: 11px; color: var(--muted); font-weight: 600; text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--grid); }
.pa-table td { padding: 4px 6px; border-bottom: 1px solid var(--grid); font-variant-numeric: tabular-nums; }
.pa-table .num { text-align: right; }
.pa-cell.hi { background: var(--up-bg); color: var(--up); font-weight: 600; }
.pa-cell.lo { background: var(--down-bg); color: var(--down); }
.pa-cell.few { color: var(--muted); }
.pa-note { font-size: 11px; color: var(--muted); margin: 6px 0 0; }
.disc-top .r { margin-left: 8px; }
.pa-table .pa-total, .pa-table td:nth-child(3) { font-weight: 700; }

/* Zeptej se Google Analytics */
.ask { background: linear-gradient(135deg, var(--surface), var(--hover)); }
.ask h2 { margin-bottom: 8px; }
.ask-form { display: flex; gap: 8px; }
.ask-form input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--ink); }
.ask-form input:focus { outline: 2px solid var(--s1); outline-offset: 1px; }
.ask-form button { font: inherit; font-weight: 600; padding: 10px 18px; border: 0; border-radius: 10px; background: var(--s1); color: #fff; cursor: pointer; }
.ask-form button:disabled { opacity: .5; cursor: default; }
.ask-examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ask-examples button { font: inherit; font-size: 12px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--ink-2); cursor: pointer; }
.ask-examples button:hover { color: var(--s1); border-color: var(--s1); }
.ask-out { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; line-height: 1.55; }
.ask-q { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.ask-a p { margin: 6px 0; }
.ask-a ul, .ask-a ol { margin: 6px 0; padding-left: 22px; }
.ask-a .ask-h { font-weight: 700; margin-top: 10px; }
.ask-a a { color: var(--s1); }
.ask-table { border-collapse: collapse; font-size: 13px; margin: 8px 0; }
.ask-table th, .ask-table td { border-bottom: 1px solid var(--grid); padding: 4px 10px; text-align: left; }
.ask-src { margin-top: 10px; font-size: 12px; color: var(--muted); }
.ask-qry { margin: 6px 0; }
.ask-qry code { display: block; margin-top: 2px; font-size: 11px; white-space: pre-wrap; word-break: break-all; color: var(--ink-2); }
.ask-wait { color: var(--muted); }

/* Nejčtenější dnes / Před rokem: seznam sahá až ke spodku karty (karty v řadě jsou stejně vysoké jako Discover) */
.topday, .yearago { display: flex; flex-direction: column; }
#top, #yearago { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }

/* ---------- Mobil (audit 20. 10. 2026) ---------- */
.m-only { display: none; }
@media (max-width: 720px) {
  /* Hlavička: logo + tlačítka na jednom řádku, stav pod nimi na jeden řádek; TV režim na telefonu nedává smysl. */
  .top { flex-wrap: wrap; gap: 6px 10px; padding: 8px 16px; }
  .top .status { order: 3; flex-basis: 100%; margin: 0; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .actions { margin-left: auto; gap: 6px; }
  .actions .link, .actions button { padding: 7px 10px; font-size: 13px; }
  .actions .long, #btn-tv { display: none; }
  .card { padding: 14px 14px; }
  .card-head { gap: 6px 10px; }
  /* Tabulky: jen sloupce, které se na telefon vejdou – titulek článku musí být čitelný. */
  .articles .art-table th:nth-child(n+6), .articles .art-table td:nth-child(n+6) { display: none; }          /* čtení, dočteno, trend */
  .homepage .art-table th:nth-child(5), .homepage .art-table td:nth-child(5),
  .homepage .art-table th:nth-child(n+6), .homepage .art-table td:nth-child(n+6) { display: none; }        /* proti pozici, doporučení (je pod titulkem), čtení */
  .fresh .art-table th:nth-child(n+4), .fresh .art-table td:nth-child(n+4) { display: none; }               /* teď, HP, čtení, dočteno */
  .advice.m-only { display: inline-block; margin-top: 4px; }
  .fresh .art-table .art-title, .articles .art-table .art-title { -webkit-line-clamp: 3 !important; }
  .fresh .art-table th:nth-child(3), .fresh .art-table td:nth-child(3) { width: 34% !important; white-space: normal !important; }
  .fresh .art-table th:nth-child(1), .fresh .art-table td:nth-child(1) { width: 52px; }
  .fresh-table .hp-bar-cell .trend, .fresh-table .hp-bar-cell .muted { white-space: normal !important; }
  .fresh-table th.hp-bar-col, .fresh-table td.hp-bar-cell { width: auto; }
  .fresh-table .hp-bar-cell { white-space: normal; }
  .fresh-table .hp-bar-cell .trend, .fresh-table .hp-bar-cell .muted { display: block; margin: 2px 0 0; }
  .hp-table .hp-bar-cell .hp-bar, .fresh-table .hp-bar-cell .hp-bar { display: none; }
  /* Dlouhé vysvětlivky pod nadpisem: 2 řádky, klepnutím se rozbalí (app.js). */
  .card .sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
  .card .sub.open { display: block; -webkit-line-clamp: unset; }
  .advice { white-space: normal; }
  /* Přepínače se zalomí místo přetékání. */
  .seg { flex-wrap: wrap; }
  .seg.seg-lg button { padding: 7px 12px; }
  .src-detail { margin-left: 0; }
}
/* iPhone při klepnutí do pole s písmem pod 16 px stránku přiblíží – na mobilu proto 16 px. */
@media (max-width: 720px) { input, select, textarea { font-size: 16px !important; } }
/* Dotykové displeje: větší cíle pro prst (přepínače, odkazy „Jak to funguje?“). */
@media (pointer: coarse) {
  .seg button { padding: 8px 12px; font-size: 13px; }
  .help-btn { padding: 8px 0; }
  .ask-examples button { padding: 8px 12px; }
}

/* Kdy vydávat – přehledná tabulka */
.pa-main td { vertical-align: middle; }
.pa-main .pa-group { font-weight: 600; white-space: nowrap; }
.pa-main tr.few td { color: var(--muted); }
.pa-main tr.few .pa-bar span { background: var(--axis); }
.pa-bar { display: inline-block; vertical-align: middle; width: 120px; height: 8px; margin-right: 8px; background: var(--grid); border-radius: 999px; overflow: hidden; }
.pa-bar span { display: block; height: 100%; background: var(--s1); border-radius: 999px; }
.pa-tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pa-tag.up { background: var(--up-bg); color: var(--up); }
.pa-tag.down { background: var(--down-bg); color: var(--down); }
.pa-table tr.pa-base td { border-top: 2px solid var(--grid); color: var(--ink-2); font-weight: 600; }
.pa-more { margin-top: 10px; }
.pa-more summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--s1); }
.pa-matrix tr.few td { color: var(--muted); }
@media (max-width: 720px) {
  .pa-head { flex-wrap: wrap; }
  .pa-head .seg { flex-wrap: nowrap; }
  .pa-head .seg button { white-space: nowrap; }
  .pa-main .pa-bar, .pa-main th:nth-child(5), .pa-main td:nth-child(5) { display: none; }
  .pa-main td[colspan="2"] { display: table-cell; }
  .pa-main .delta { display: block; margin-top: 2px; }
  .pa-main .pa-group { white-space: normal; }
  .pa-main th, .pa-main td { padding-left: 6px; padding-right: 6px; }
}

/* Dnes: top 3 autoři podle bengrů */
.bangers { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; counter-reset: b; }
.bangers li { display: flex; align-items: baseline; gap: 6px; font-size: 13px; counter-increment: b; }
.bangers li::before { content: counter(b) "."; color: var(--muted); font-size: 12px; width: 14px; }
.bangers a { color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; }
.bangers a:hover { text-decoration: underline; }
.bangers b { font-variant-numeric: tabular-nums; margin-left: auto; padding-left: 6px; }

.bangers .cup { width: 14px; height: 14px; flex: none; color: #c9a227; align-self: center; }

/* Teď na webu: přepínač okna živých čísel (30 / 5 min) */
.now-head { justify-content: space-between; align-items: center; }
.now-head h2 { margin: 0; }

/* Web bez události dočtení: dočtení se neukazuje (náhradní scroll by klamal) */
.no-complete .col-complete, .no-complete .complete-cell, .no-complete .fresh-complete, .no-complete .kpi-complete { display: none; }

/* Štítek čerstvosti dat u nadpisu karty: živě (zelený) / zpožděná data GA (jantarový, výrazný). */
h2 .stamp { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 650;
  letter-spacing: 0; vertical-align: 2px; white-space: nowrap; cursor: help; }
h2 .stamp.is-live { background: color-mix(in srgb, var(--up) 12%, transparent); color: var(--up); }
h2 .stamp.is-late { background: #fff3cd; color: #7a4b00; border: 1px solid #e8b100; }
:root[data-theme="dark"] h2 .stamp.is-late { background: #3a2c00; color: #ffd36b; border-color: #8a6a00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) h2 .stamp.is-late { background: #3a2c00; color: #ffd36b; border-color: #8a6a00; } }

/* Kdo nás čte: přepínač GA / NetMonitor, tři sloupce (na mobilu pod sebou). */
/* první sloupec jen na šířku prstenců (jinak zbytečná mezera), zbytek dostane pyramida a mapa */
.soc-grid { display: grid; grid-template-columns: auto minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 40px; margin-top: 4px; }
.soc-blk { display: grid; gap: 8px; align-content: start; min-width: 0; }
.soc-blk h4 { margin: 4px 0 0; font-size: 12px; font-weight: 650; color: var(--ink-2); }
.soc-blk h4 span { font-weight: 400; color: var(--muted); }
.soc-foot { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
/* prstenec */
.soc-donut { display: flex; align-items: center; gap: 14px; }
.soc-donut svg { width: 124px; height: 124px; flex: none; }
.soc-donut text.big { font-size: 17px; font-weight: 750; fill: var(--ink); font-variant-numeric: tabular-nums; }
.soc-donut text.small { font-size: 9px; fill: var(--muted); }
.soc-donut ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; min-width: 150px; }
.soc-donut li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 7px; align-items: center; color: var(--ink-2); }
.soc-donut li i { width: 10px; height: 10px; border-radius: 3px; }
.soc-donut li b { color: var(--ink); font-variant-numeric: tabular-nums; }
/* věková pyramida */
.soc-pyr { display: grid; gap: 5px; }
.soc-pyr-h, .soc-pyr-r { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); gap: 8px; align-items: center; }
.soc-pyr-h { font-size: 11px; font-weight: 650; }
.soc-pyr-h span:first-child { text-align: right; }
.soc-pyr-r .age { text-align: center; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.soc-pyr-r .side { display: flex; align-items: center; gap: 6px; height: 22px; }
.soc-pyr-r .side.f { justify-content: flex-end; }
.soc-pyr-r .bar { height: 100%; min-width: 2px; }
.soc-pyr-r .f .bar { background: var(--s5); border-radius: 6px 0 0 6px; }
.soc-pyr-r .m .bar { background: var(--s1); border-radius: 0 6px 6px 0; }
.soc-pyr-r b { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* sloupce věku s populací */
.soc-cols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; }
.soc-col-i { display: grid; gap: 4px; justify-items: center; font-size: 12px; }
.soc-col-i b { font-variant-numeric: tabular-nums; }
.soc-col-i .well { position: relative; width: 100%; max-width: 44px; height: 150px; background: var(--hover); border-radius: 6px; }
.soc-col-i .bar { position: absolute; left: 0; right: 0; bottom: 0; background: var(--s2); border-radius: 6px; }
.soc-col-i .ref { position: absolute; left: -3px; right: -3px; height: 2px; margin-bottom: -1px; background: var(--ink); border-radius: 1px; }
.soc-col-i .l { color: var(--ink-2); font-size: 11px; white-space: nowrap; }
.soc-big b { display: block; font-size: 26px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.soc-big span { font-size: 12px; color: var(--muted); }
/* dělený pruh */
.soc-stack { display: flex; height: 24px; gap: 2px; border-radius: 7px; overflow: hidden; }
.soc-stack span { display: flex; align-items: center; justify-content: center; min-width: 3px; font-size: 11px; font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; }
.soc-stack-l { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 12px; color: var(--ink-2); margin-bottom: 4px; }
.soc-stack-l span { display: inline-flex; align-items: center; gap: 5px; }
.soc-stack-l i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.soc-stack-l b { color: var(--ink); font-variant-numeric: tabular-nums; }
/* dlaždicová mapa krajů */
.soc-map { display: grid; gap: 4px; }
.soc-map .tile { position: relative; min-height: 58px; padding: 6px 3px; border-radius: 8px; display: grid; place-content: center; gap: 2px; text-align: center; overflow: hidden; min-width: 0;
  background: color-mix(in srgb, var(--s3) calc(var(--a) * 100%), var(--hover)); }
.soc-map .tile span { font-size: 9.5px; line-height: 1.15; font-weight: 600; color: var(--ink); opacity: .8; hyphens: manual; }
.soc-map .tile b { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink); }
#soc-seg button:disabled { opacity: .4; cursor: not-allowed; }
@media (max-width: 1100px) { .soc-grid { grid-template-columns: auto minmax(0, 1fr); } .soc-grid > .soc-blk:nth-child(3) { grid-column: 1 / -1; } }
@media (max-width: 720px) { .soc-grid { grid-template-columns: minmax(0, 1fr); } .soc-map { gap: 3px; } .soc-map .tile { padding: 5px 1px; } .soc-map .tile span { font-size: 8.5px; } .soc-map .tile b { font-size: 12px; } }

/* NetMonitor: index afinity jako štítek, druhá řada bloků (vzdělání, třída, profese, příjem, obec). */
.aff { display: inline-block; min-width: 26px; padding: 0 5px; border-radius: 999px; font-size: 10.5px; font-weight: 650; line-height: 17px; text-align: center;
  background: var(--hover); color: var(--ink-2); font-variant-numeric: tabular-nums; cursor: help; }
.aff.hi { background: var(--up-bg); color: var(--up); }
.aff.lo { color: var(--muted); }
.soc-donut li { grid-template-columns: 10px minmax(0, 1fr) auto auto; }
.soc-col-i .aff { margin-top: 2px; }
.soc-map .tile small { font-size: 9.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.soc-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px 32px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--grid); }
.soc-rows { display: grid; gap: 5px; }
/* popisek · % · index na řádku, pruh pod nimi přes celou šířku bloku */
.soc-rows { gap: 9px; }
.soc-r { display: grid; grid-template-columns: minmax(0, 1fr) auto 32px; gap: 3px 8px; align-items: center; font-size: 12px; }
.soc-r .l { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-r .t { grid-row: 2; grid-column: 1 / -1; position: relative; height: 7px; background: var(--hover); border-radius: 4px; }
.soc-r .b { position: absolute; inset: 0 auto 0 0; border-radius: 5px; }
.soc-r b { text-align: right; font-variant-numeric: tabular-nums; }
/* Reální uživatelé – vývoj */
.nm-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 8px 0 12px; }
.nm-sum > div { border-left: 3px solid var(--s1); padding: 2px 0 2px 10px; min-width: 0; }
.nm-sum > div:not(:first-child) { border-left-color: var(--grid); }
.nm-sum .label { display: block; font-size: 12px; color: var(--ink-2); }
.nm-sum b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.nm-sum .d { display: block; font-size: 11px; color: var(--muted); }
#nmtrend svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
#nmtrend .axis-t { fill: var(--muted); font: 11px var(--font); font-variant-numeric: tabular-nums; }
.nm-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.nm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.nm-legend i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
@media (max-width: 720px) { .nm-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nm-sum b { font-size: 18px; }  }

/* Srovnání s konkurencí: pořadí podle RU vlevo, vývoj vpravo, profil publika jako tabulka pod nimi. */
.compet h4 { margin: 4px 0 8px; font-size: 12px; font-weight: 650; color: var(--ink-2); }
.cmp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px 40px; margin-top: 8px; }
.cmp-rank { display: grid; gap: 6px; }
.cmp-r { display: grid; grid-template-columns: 20px minmax(0, 150px) minmax(0, 1fr) 80px 62px 62px; gap: 8px; align-items: center; font-size: 13px; }
.cmp-r .n { color: var(--muted); font-size: 12px; text-align: right; }
.cmp-r .name { display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cmp-r .name i, .cmp-table th i, #compet-legend i { width: 9px; height: 9px; border-radius: 2px; flex: none; display: inline-block; }
.cmp-r .t { height: 10px; background: var(--hover); border-radius: 5px; position: relative; }
.cmp-r .b { position: absolute; inset: 0 auto 0 0; border-radius: 5px; }
.cmp-r b { text-align: right; font-variant-numeric: tabular-nums; }
.cmp-r .delta { text-align: right; }
.cmp-r.own { font-weight: 700; }
.cmp-r.own .name { color: var(--s1); }
.cmp-h { order: -1; font-size: 11px; color: var(--muted); }
.cmp-h span { text-align: right; }
#compet-chart svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
#compet-chart .axis-t { fill: var(--muted); font: 11px var(--font); font-variant-numeric: tabular-nums; }
#compet-legend .own { font-weight: 700; color: var(--ink); }
.cmp-profile { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--grid); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.cmp-table th, .cmp-table td { padding: 7px 10px; border-bottom: 1px solid var(--grid); text-align: right; white-space: nowrap; }
.cmp-table thead th { font-size: 12px; font-weight: 650; color: var(--ink-2); }
.cmp-table thead th i { margin-right: 5px; vertical-align: 0; }
.cmp-table tbody th { text-align: left; font-weight: 400; color: var(--ink-2); }
.cmp-table td .aff { margin-left: 6px; }
.cmp-table .own { background: color-mix(in srgb, var(--s1) 7%, transparent); }
.cmp-table td.best { font-weight: 750; }
@media (max-width: 1100px) { .cmp-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .cmp-r { grid-template-columns: 18px minmax(0, 1fr) 72px 52px 52px; } .cmp-r .t, .cmp-h span:nth-child(3) { display: none; } }
/* na úzké obrazovce se tabulka posouvá – názvy řádků zůstávají vidět */
.cmp-table tbody th, .cmp-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
/* Zeptej se NetMonitoru je karta v mřížce – bez okrajů horní karty Zeptej se GA */
.card.nmask { margin: 0; }
.nmask .sub { margin-bottom: 8px; }
.ask-examples[hidden], .ask-out[hidden] { display: none; }

/* Sestavovač dotazů NetMonitoru */
.card.nmq { margin: 0; }
.nmq-form { display: grid; gap: 12px; margin-top: 10px; }
.nmq-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 14px; align-items: start; }
.nmq-l { font-size: 12px; font-weight: 650; color: var(--ink-2); padding-top: 7px; }
.nmq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nmq-chip { font: inherit; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.nmq-chip[aria-pressed="true"] { background: var(--s1); border-color: var(--s1); color: #fff; font-weight: 600; }
.nmq-chip.own { font-weight: 750; }
.nmq-chip:disabled { opacity: .35; cursor: not-allowed; }
.nmq-chip:focus-visible, .nmq-go:focus-visible, .nmq-dd summary:focus-visible { outline: 2px solid var(--s1); outline-offset: 2px; }
.nmq-sitebox { display: grid; gap: 8px; }
.nmq-add { position: relative; max-width: 420px; }
.nmq-add input, .nmq-sel select, .nmq-age select { font: inherit; font-size: 13px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--ink); }
.nmq-add input { width: 100%; }
.nmq-found { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); display: grid; background: var(--surface); border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.14); overflow: hidden; }
.nmq-found:empty { display: none; }
.nmq-found button { font: inherit; font-size: 13px; text-align: left; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--grid); background: none; color: var(--ink); cursor: pointer; }
.nmq-found button:hover { background: var(--hover); }
.nmq-found button span { color: var(--muted); font-size: 11.5px; }
.nmq-found .empty { margin: 0; padding: 8px 12px; }
.nmq-dem { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nmq-dd { position: relative; }
.nmq-dd summary { list-style: none; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.nmq-dd summary::-webkit-details-marker { display: none; }
.nmq-dd.on summary { border-color: var(--s1); color: var(--s1); font-weight: 650; }
.nmq-opts { position: absolute; z-index: 6; top: calc(100% + 4px); left: 0; min-width: 210px; max-height: 300px; overflow: auto; display: grid; gap: 2px; padding: 8px 10px;
  background: var(--surface); border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.14); font-size: 13px; }
.nmq-opts label { display: flex; gap: 7px; align-items: center; padding: 3px 0; cursor: pointer; white-space: nowrap; }
.nmq-age { font-size: 12.5px; color: var(--ink-2); display: inline-flex; gap: 4px; align-items: center; }
.nmq-reset { font: inherit; font-size: 12px; color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: underline; }
.nmq-sel { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.nmq-sel label { display: inline-flex; gap: 6px; align-items: center; }
.nmq-go { font: inherit; font-size: 13px; font-weight: 700; padding: 7px 18px; border-radius: 8px; border: 0; background: var(--s1); color: #fff; cursor: pointer; }
.nmq-go:disabled { opacity: .6; cursor: wait; }
.nmq-out { margin-top: 14px; }
.nmq-title { margin: 0 0 4px; font-size: 13px; color: var(--ink-2); }
.nmq-title b { color: var(--ink); }
.nmq-sub { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.nmq-table td small { display: block; font-size: 10.5px; color: var(--muted); }
.nmq-table tr.own th, .nmq-table tr.own td { color: var(--s1); font-weight: 700; }
.nmq-table tbody th { min-width: 150px; }
.nmq-bar { display: block; height: 4px; margin-top: 4px; background: var(--hover); border-radius: 2px; }
.nmq-bar span { display: block; height: 100%; background: var(--s1); border-radius: 2px; }
.nmq-chart svg { width: 100%; height: auto; display: block; }
.nmq-chart .axis-t { fill: var(--muted); font: 11px var(--font); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .nmq-row { grid-template-columns: minmax(0, 1fr); } .nmq-l { padding-top: 0; } }
.nmq-sel .sl-copy { font: inherit; font-size: 12px; font-weight: 600; color: var(--s1); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.nmq-sel .sl-copy[hidden] { display: none; }
.soc-gaseg { margin: 4px 0 10px; }
.soc-why { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); background: var(--hover); border-radius: 10px; padding: 10px 12px; }
.soc-blk .soc-big + .soc-big { margin-top: 6px; }

/* Přepínač Celý web / Jen články / Ostatní obsah (Finmag) */
.split-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 28px 0; }
.split-bar[hidden] { display: none; }
.split-l { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.split-bar .seg { margin-left: 0; }
.split-note { font-size: 12px; color: var(--muted); }
body.tv .split-bar { display: none; }
@media (max-width: 720px) { .split-bar { padding: 10px 16px 0; } }

/* Výkon v Discoveru – dlaždice metrik jako v Search Console */
.dp-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin: 10px 0 6px; }
.dp-tiles { display: flex; flex-wrap: wrap; gap: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.dp-tile { font: inherit; text-align: left; min-width: 170px; padding: 10px 14px; border: 0; border-right: 1px solid var(--border); background: var(--surface); color: var(--ink-2); cursor: pointer; display: grid; gap: 6px; }
.dp-tile:last-child { border-right: 0; }
.dp-tile .lbl { font-size: 12px; display: flex; align-items: center; gap: 6px; }
.dp-tile .lbl i { width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 3px; font-style: normal; font-size: 10px; display: grid; place-items: center; }
.dp-tile b { font-size: 26px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); }
.dp-tile.on { background: var(--c); color: #fff; }
.dp-tile.on b { color: #fff; }
.dp-tile:focus-visible { outline: 2px solid var(--s1); outline-offset: -2px; }
.dp-gran { font-size: 12.5px; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.dp-gran select { font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--ink); }
#dp-chart svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
#dp-chart .axis-t { fill: var(--muted); font: 11px var(--font); font-variant-numeric: tabular-nums; }
#dp-chart .axis-h { fill: var(--ink-2); font: 600 11px var(--font); }
#dp-range [hidden] { display: none; }
@media (max-width: 720px) { .dp-tile { min-width: 0; flex: 1 1 33%; padding: 8px 10px; } .dp-tile b { font-size: 18px; } #dp-range { flex-wrap: wrap; } }
.dp-gran[hidden] { display: none; }

/* Seznam feed – úspěšnost článků */
.seznam { grid-area: seznam; }
.seznam h4 { margin: 18px 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.szn-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 10px 0 4px; }
.szn-kpi { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.szn-kpi .label { font-size: 12px; color: var(--ink-2); }
.szn-kpi b { display: block; font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; margin: 2px 0; }
.szn-kpi small { font-size: 12px; color: var(--ink-2); }
.szn-kpi .up { color: var(--up); } .szn-kpi .down { color: var(--down); }
.szn-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 28px; }
.szn-trends { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.5; }
.szn-trends li { margin: 4px 0; }
.szn-issue { border-left: 3px solid var(--muted); padding: 4px 0 4px 10px; margin: 6px 0; font-size: 13px; }
.szn-issue.error { border-color: var(--down); } .szn-issue.warn { border-color: #e0a100; } .szn-issue.ok { border-color: var(--up); }
.szn-issue b { display: block; font-size: 13.5px; }
.szn-issue p { margin: 2px 0; color: var(--ink-2); }
.szn-issue ul { margin: 2px 0 0; padding-left: 16px; color: var(--ink-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.szn-table { font-size: 13px; }
.szn-table th, .szn-table td { white-space: nowrap; }
.szn-table td.t { white-space: normal; min-width: 220px; }
.szn-table .bad { color: var(--down); font-weight: 600; }
.szn-table .good { color: var(--up); }
.szn-table .dim { color: var(--muted); }
@media (max-width: 900px) { .szn-two { grid-template-columns: minmax(0, 1fr); } }
.szn-head { font-size: 17px; font-weight: 600; margin: 4px 0 10px; display: flex; align-items: center; gap: 8px; }
.szn-head::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.szn-head.good::before { background: var(--up); } .szn-head.bad::before { background: var(--down); } .szn-head.ok::before { background: #e0a100; }
.szn-ed { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 28px; }
.szn-act { border-left: 3px solid #e0a100; padding: 4px 0 6px 10px; margin: 8px 0; font-size: 13.5px; }
.szn-act.error { border-color: var(--down); }
.szn-act.ok { border-color: var(--up); }
.szn-act b { display: block; }
.szn-act details { margin-top: 2px; color: var(--ink-2); font-size: 12.5px; }
.szn-act summary { cursor: pointer; color: var(--ink-2); }
.szn-act ul { margin: 4px 0 0; padding-left: 16px; }
.szn-works { font-size: 13px; color: var(--ink-2); margin: 14px 0 0; line-height: 1.5; }
.szn-list td.t { min-width: 200px; }
.szn-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--border); color: var(--ink-2); }
.szn-badge.hit { background: var(--up-bg, #e3f4e3); color: var(--up); }
.szn-badge.good { background: color-mix(in srgb, var(--up) 12%, transparent); color: var(--up); }
.szn-badge.weak { background: color-mix(in srgb, #e0a100 16%, transparent); color: #9a6b00; }
.szn-badge.bad { background: color-mix(in srgb, var(--down) 12%, transparent); color: var(--down); }
.szn-bar { display: inline-block; width: 56px; height: 6px; border-radius: 3px; background: var(--border); position: relative; vertical-align: middle; margin-left: 6px; overflow: hidden; }
.szn-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--s1); border-radius: 3px; }
.szn-more { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 10px; }
.szn-more > summary { cursor: pointer; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.szn-more-head { margin-top: 10px; }
@media (max-width: 900px) { .szn-ed { grid-template-columns: minmax(0, 1fr); } }
.szn-list tr.szn-rest[hidden] { display: none; }
.szn-rest-toggle button { font: inherit; font-size: 13px; background: none; border: 0; padding: 0; color: var(--s1); cursor: pointer; }
.szn-m { display: none; font-size: 12px; color: var(--ink-2); margin-top: 3px; }
@media (max-width: 720px) {
  .szn-list th:nth-child(1), .szn-list td:nth-child(1), .szn-list th:nth-child(3), .szn-list td:nth-child(3),
  .szn-list th:nth-child(4), .szn-list td:nth-child(4) { display: none; }
  .szn-list td.t { min-width: 0; }
  .szn-m { display: block; }
  .szn-list, .szn-list tbody { display: block; width: 100%; }
  .szn-list thead { display: none; }
  .szn-list tr { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--border); padding: 8px 0; }
  .szn-list tr[hidden] { display: none; }
  .szn-list td { border: 0; padding: 0; }
  .szn-list td.t { flex: 1; white-space: normal; }
  .szn-rest-toggle td { display: block !important; }
}
.szn-rest-toggle td, .szn-rest-toggle button { white-space: normal; text-align: left; }
.szc-head { margin-top: 18px; }
.szc-head h4 { margin: 0; }
#szn-list-h { margin-top: 22px; }
@media (max-width: 720px) { #szc-range { flex-wrap: wrap; } }
.dp-opts { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.dp-tile .dp-cmp { font-size: 12px; font-weight: 400; color: var(--ink-2); }
.dp-tile.on .dp-cmp, .dp-tile.on .dp-cmp span { color: rgba(255, 255, 255, .9); }
.dp-tile .dp-cmp .up { color: var(--up); } .dp-tile .dp-cmp .down { color: var(--down); }
.dp-gran select option:disabled { color: var(--muted); }

/* Návštěvnost webu (GA) – dlaždice metrik = přepínač grafu, ovládání období pod grafem */
.gat-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin: 8px 0 12px; }
.gat-tile { font: inherit; text-align: left; padding: 10px 12px; border: 0; border-right: 1px solid var(--border); background: var(--surface); color: var(--ink-2); cursor: pointer; display: grid; gap: 3px; align-content: start; min-width: 0; }
.gat-tile:last-child { border-right: 0; }
.gat-tile .lbl { font-size: 12px; }
.gat-tile b { font-size: 22px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.gat-tile .delta { font-size: 11px; }
.gat-tile .delta small { color: var(--muted); font-size: 11px; }
.gat-tile.on { box-shadow: inset 0 3px 0 var(--c); background: var(--hover); }
.gat-tile:focus-visible { outline: 2px solid var(--s1); outline-offset: -2px; }
#gatrend svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
#gatrend .axis-t { fill: var(--muted); font: 11px var(--font); font-variant-numeric: tabular-nums; }
.gat-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.gat-custom { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.gat-custom input { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--ink); }
@media (max-width: 720px) { .gat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gat-tile { border-bottom: 1px solid var(--border); } .gat-tile b { font-size: 18px; } }

/* Posledních 7 dní (karta místo Čtenářů po minutách) */
.wk-sum { display: grid; gap: 8px; margin: 6px 0 4px; }
.wk-main .label { display: block; font-size: 12px; color: var(--ink-2); }
.wk-main b { font-size: 30px; font-weight: 700; color: var(--s1); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.wk-cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; font-size: 12px; color: var(--ink-2); }
.wk-cmp > div { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto auto; gap: 6px; align-items: center; min-width: 0; }
.wk-cmp > div.off { opacity: .35; }
.wk-cmp span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-cmp b { font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wk-cmp i { opacity: .6; }
.wk-cmp i, .wk-legend i { width: 14px; height: 0; border-top: 2px solid var(--c); display: inline-block; }
.wk-cmp i.dash, .wk-legend i.dash { border-top-style: dashed; }
.wk-legend i.main { border-top-width: 3px; }
.wk-cmp .delta { font-size: 11.5px; padding: 0 6px; }
.wk-legend { display: flex; flex-wrap: nowrap; gap: 4px; margin-top: 6px; font-size: 11px; overflow: hidden; }
.wk-legend button { white-space: nowrap; flex: 0 1 auto; min-width: 0; }
.wk-legend button { display: inline-flex; align-items: center; gap: 5px; font: inherit; color: var(--ink-2); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; cursor: pointer; }
.wk-legend button[disabled] { cursor: default; }
.wk-legend button[aria-pressed="false"] { opacity: .5; text-decoration: line-through; }
@media (max-width: 720px) { .wk-cmp { grid-template-columns: minmax(0, 1fr); } }

/* Karta „Dnes“ je vedle „Posledních 7 dní“ – větší čísla a obsah roztažený na výšku řádku. */
.kpis { display: flex; flex-direction: column; }
.kpis #kpis { flex: 1; align-content: space-evenly; }
@media (min-width: 1101px) {
  .kpis .kpi .label { font-size: 13.5px; }
  .kpis .kpi .value { font-size: 36px; }
  .kpis .kpi .value.sm { font-size: 28px; }
  .kpis .kpi .deltas .delta { font-size: 12.5px; }
}
@media (max-width: 720px) { .wk-legend { flex-wrap: wrap; } }


/* Karta „Výnosy z programatiku“ pod „Teď na webu“ – první sloupec má dvě karty, ostatní dvě karty řady se roztáhnou přes obě. */
.nrev { grid-area: nrev; display: flex; flex-direction: column; }
.grid.has-nrev { grid-template-areas:
    "now minutes kpis"
    "nrev minutes kpis"
    "rising rising rising"
    "articles articles sources"
    "fresh fresh fresh"
    "hourly hourly hourly"
    "topday yearago discover"
    "consent consent consent"
    "gatrend gatrend gatrend"
    "social social social"
    "nmtrend nmtrend nmtrend"
    "socdemo socdemo socdemo"
    "discperf discperf discperf"
    "compet compet compet"
    "seznam seznam seznam"
    "homepage homepage index"
    "nmask nmask nmask"; }
.nrev .card-head { justify-content: space-between; align-items: center; }
.nrev .nrev-more { font-size: 12.5px; }
.nrev .nr-total { font-size: 34px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.nrev .nr-split { display: grid; gap: 2px; font-size: 12.5px; color: var(--ink-2); margin: 6px 0 4px; }
.nrev .nr-split i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.nrev .nr-split b { color: var(--ink); font-weight: 600; }
.nrev .nr-rows { display: grid; margin-top: auto; }
.nrev .nr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 72px; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--border); font-size: 13px; }
.nrev .nr-row b { font-variant-numeric: tabular-nums; font-weight: 600; }
.nrev .nr-row .delta { justify-self: end; }
.minutes { display: flex; flex-direction: column; }
.minutes #wk-chart { flex: 1; min-height: 200px; }
@media (max-width: 1100px) {
  .grid.has-nrev { grid-template-areas: "now kpis" "nrev kpis" "minutes minutes" "rising rising" "articles articles" "fresh fresh" "hourly hourly" "sources topday" "yearago discover" "consent consent" "gatrend gatrend" "social social" "nmtrend nmtrend" "socdemo socdemo" "discperf discperf" "compet compet" "seznam seznam" "homepage homepage" "index index" "nmask nmask"; }
}
@media (max-width: 720px) {
  .grid.has-nrev { grid-template-areas: "now" "nrev" "kpis" "minutes" "rising" "articles" "fresh" "hourly" "sources" "topday" "yearago" "discover" "consent" "gatrend" "social" "nmtrend" "socdemo" "discperf" "compet" "seznam" "homepage" "index" "nmask"; }
}
body.tv .nrev { display: none; }
body.tv .grid.has-nrev { grid-template-areas: "now minutes kpis" "rising rising rising" "articles articles sources"; }
/* Řada je s kartou výnosů vyšší – „Dnes“ a souhrn „Posledních 7 dní“ dostanou větší čísla, ať karty nejsou prázdné. */
@media (min-width: 1101px) {
  .grid.has-nrev .kpis .kpi .label { font-size: 15px; }
  .grid.has-nrev .kpis .kpi .value { font-size: 42px; margin: 4px 0 6px; }
  .grid.has-nrev .kpis .kpi .value.sm { font-size: 36px; }
  .grid.has-nrev .kpis .kpi .deltas .delta { font-size: 13.5px; }
  .grid.has-nrev .wk-main b { font-size: 38px; }
  .grid.has-nrev .wk-cmp { font-size: 13px; }
}

/* ---------- Mobil (audit 13. 11. 2026) ---------- */
/* Skrytý prvek musí zůstat skrytý i u karet s vlastním display (karta výnosů rozbíjela mřížku webů bez výnosů). */
[hidden] { display: none !important; }
/* Chybová hláška: krátká věta, technické detaily po rozkliknutí; dlouhé názvy chyb se zalomí. */
.banner { overflow-wrap: anywhere; }
.banner-det summary { cursor: pointer; list-style-position: inside; }
.banner-tech { margin-top: 6px; font-size: 12px; color: var(--muted); }
@media (max-width: 720px) {
  .banner { font-size: 12.5px; padding: 8px 10px; }
  /* Tlačítka v hlavičce: vlastní řádek pod logem, posun do strany (jako záložky webů) místo přetékání stránky. */
  .top .actions { order: 4; flex-basis: 100%; margin: 0 -16px; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .top .actions::-webkit-scrollbar { display: none; }
  .top .actions > * { flex: 0 0 auto; white-space: nowrap; }
}

/* Výraznější odkazy v hlavičce (Výnosy, Autoři) – modře zvýrazněné proti šedým tlačítkům. */
.actions .link-hl { background: var(--s1-soft); border-color: var(--s1); color: var(--s1); font-weight: 600; }
.actions .link-hl:hover { background: var(--s1); border-color: var(--s1); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .actions .link-hl { color: #e6f0fd; } }
:root[data-theme="dark"] .actions .link-hl { color: #e6f0fd; }

/* ---------- Odkud návštěvy přicházejí (pod grafem Návštěvnost webu) ---------- */
.smx { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.smx-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.smx-head h3 { margin: 0; font-size: 14px; }
.smx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 12px 0 6px; }
.smx-col { display: grid; justify-items: center; align-content: start; gap: 2px; text-align: center; min-width: 0; }
.smx-t { font-size: 13px; }
.smx-d { font-size: 11.5px; color: var(--muted); }
.smx-donut { width: 100%; max-width: 170px; height: auto; margin-top: 4px; }
.smx-donut path { cursor: default; transition: opacity .15s; }
.smx-donut:hover path { opacity: .55; }
.smx-donut path:hover { opacity: 1; }
.smx-total { font-size: 17px; font-weight: 700; fill: var(--ink); font-variant-numeric: tabular-nums; }
.smx-unit { font-size: 10.5px; fill: var(--muted); }
.smx-range { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; font-size: 12px; margin-top: 4px; }
.smx-range input { font: inherit; font-size: 12px; padding: 3px 4px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--ink); max-width: 128px; }
.smx-reset { font-size: 12px; padding: 3px 8px; }
.smx-tab { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.smx-tab th { text-align: right; font-weight: 600; color: var(--muted); font-size: 11.5px; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.smx-tab th:first-child, .smx-tab td:first-child { text-align: left; }
.smx-tab td { text-align: right; padding: 5px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; position: relative; }
.smx-tab td:first-child i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 7px; vertical-align: 0; }
.smx-tab .smx-bar { display: inline-block; width: 46px; height: 6px; margin-right: 8px; border-radius: 3px; vertical-align: 1px;
  background: linear-gradient(to right, var(--c) var(--w), color-mix(in srgb, var(--c) 15%, transparent) var(--w)); }
@media (max-width: 900px) { .smx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .smx-tab .smx-bar { display: none; } }
@media (max-width: 720px) { .smx-tab { font-size: 12px; } .smx-tab th, .smx-tab td { padding: 5px 4px; } }
.smx-table { overflow-x: auto; }
@media (max-width: 720px) {
  .smx-tab td:first-child { white-space: normal; }
  .smx-tab td { white-space: nowrap; }
  .smx-range { flex-direction: column; }
  .smx-range input { width: 100%; max-width: 150px; }
  .smx-dash { display: none; }
}

/* ---------- Sociální sítě (Meta) ---------- */
.social { grid-area: social; }
.social .card-head { flex-wrap: wrap; gap: 6px 12px; }
.social .card-head .sub a { color: inherit; }
.social-ctrl { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.social-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.social-tiles .lbl small { color: var(--muted); }
.social-h3 { font-size: 13px; margin: 14px 0 6px; }
.social-posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.social-post { display: grid; gap: 6px; text-decoration: none; color: inherit; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; height: 100%; }
.social-post:hover { border-color: var(--s1); }
.social-post img, .social-noimg { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--hover); display: block; }
.social-txt { display: grid; gap: 4px; padding: 0 10px 10px; }
.social-meta { font-size: 11px; color: var(--muted); }
.social-cap { font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.social-stats { font-size: 11.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .social-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .social-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .social-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .social-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .social-ctrl { margin-left: 0; } }
body.tv .social { display: none; }

/* SOCIAL v navigaci – červeně se štítkem „new“ (místo YouTube, ten je dostupný ze SOCIAL). */
.actions .link-social { color: #c8102e; border-color: #c8102e; background: rgba(200, 16, 46, .07); font-weight: 700; letter-spacing: .02em; position: relative; }
.actions .link-social:hover { background: #c8102e; color: #fff; }
.new-badge { display: inline-block; margin-left: 6px; padding: 1px 5px; border-radius: 999px; background: #c8102e; color: #fff; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; line-height: 1.4; }
.actions .link-social:hover .new-badge { background: #fff; color: #c8102e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .actions .link-social { color: #ff6b81; border-color: #ff6b81; background: rgba(255, 107, 129, .1); } }
:root[data-theme="dark"] .actions .link-social { color: #ff6b81; border-color: #ff6b81; background: rgba(255, 107, 129, .1); }

/* Odkud návštěvy přicházejí – větší prstence s popisky výsečí, výraznější pruhy v tabulce (20. 11. 2026). */
.smx-donut { max-width: 500px; }
.smx-lab { font-size: 15px; fill: var(--ink-2); }
.smx-labp { font-weight: 700; fill: var(--ink); }
.smx-total { font-size: 24px; }
.smx-unit { font-size: 12px; }
.smx-tab td { padding: 7px 8px; }
.smx-tab .smx-bar { width: 150px; height: 10px; border-radius: 5px; vertical-align: -1px; margin-right: 10px; }
.smx-tab .smx-v { display: inline-block; min-width: 48px; }
@media (max-width: 1100px) { .smx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .smx-tab .smx-bar { width: 90px; } }
@media (max-width: 900px) { .smx-tab .smx-bar { display: inline-block; width: 60px; } }
@media (max-width: 720px) { .smx-grid { grid-template-columns: minmax(0, 1fr); } .smx-tab .smx-bar { display: none; } }

/* Karta období (7 dní / od začátku měsíce / 30 dní): dva přepínače vedle sebe, na úzké kartě pod sebou */
.wk-ctrl { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
