/* Konzervativní paleta (2026-07-03): tmavá „bankovní" modř místo jasně modré, tlumené
 * signální barvy, menší rádiusy a jemnější stíny. Vše teče přes proměnné — ladí se tady. */
:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --panel2: #eef0f3;
  --line: #dfe3e9;
  --line-strong: #c9d0d9;
  --txt: #1c2430;
  --muted: #5f6a79;
  --accent: #1f4e79;
  --accent-soft: #e9eef4;
  --green: #1a7f4b;
  --green-soft: #eaf3ee;
  --red: #b3372f;
  --red-soft: #f7ecea;
  --gold: #8a6d1f;
  --gold-soft: #f5f0e1;
  --violet: #5b4a8a;
  --violet-soft: #edeaf5;
  --orange: #a8641e;
  --orange-soft: #f6eee1;
  --shadow-sm: 0 1px 2px rgba(20, 30, 45, .05);
  --shadow: 0 1px 4px rgba(20, 30, 45, .06), 0 1px 2px rgba(20, 30, 45, .04);
  --shadow-lg: 0 10px 32px rgba(20, 30, 45, .16);
  --radius: 8px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--txt);
  font-family: "Segoe UI", -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* ---- hlavička ---- */
header {
  padding: 16px 26px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); z-index: 10;
}
h1 { margin: 0 0 12px; font-size: 21px; font-weight: 800; letter-spacing: -.3px; color: var(--txt); }
h1 .sub { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-left: 9px; letter-spacing: 0; }
.controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.chk { color: var(--muted); cursor: pointer; user-select: none; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.chk:hover { color: var(--txt); }
.chk input { vertical-align: middle; accent-color: var(--accent); width: 15px; height: 15px; }
button {
  background: var(--accent); color: #fff; border: 0; padding: 8px 18px;
  border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 13px;
  box-shadow: var(--shadow-sm); transition: filter .12s, transform .04s;
}
button:hover { filter: brightness(1.06); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: default; box-shadow: none; }
.search-wrap { position: relative; flex: 1 1 300px; min-width: 240px; max-width: 460px; }
.search { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 9px; padding: 8px 12px;
  font-size: 13px; color: var(--txt); width: 100%; }
.search:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

/* ---- našeptávač ---- */
.search-dd { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 40; background: var(--panel);
  border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow-lg); overflow: hidden; max-height: 420px; overflow-y: auto; }
.dd-sec { padding: 7px 12px 4px; font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; background: var(--panel2); }
.dd-row { display: flex; align-items: center; gap: 8px; padding: 7px 12px; cursor: pointer; font-size: 13px; }
.dd-row:hover { background: var(--accent-soft); }
.dd-row b { flex: 0 0 auto; }
.dd-name { flex: 1; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-price { flex: 0 0 auto; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; }
.dd-empty { padding: 12px; font-size: 13px; }
.dd-loading { opacity: .5; pointer-events: none; position: relative; }
.dd-loading::after { content: '⏳'; margin-left: 6px; }
.dd-err { color: var(--red); }

/* ---- chipy trhů v hlavičce ---- */
.mchips { display: flex; gap: 6px; flex-wrap: wrap; }
.mchip { display: inline-flex; align-items: center; padding: 7px 13px; border: 1px solid var(--line-strong);
  border-radius: 20px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none;
  background: var(--panel); transition: all .12s; }
.mchip input { display: none; }
.mchip:has(input:checked) { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.mchip.mchip-watch:has(input:checked) { background: var(--gold-soft); color: var(--gold); border-color: #ecdcae; }
.mchip:hover { border-color: var(--accent); }
.btn-ghost-sm { background: var(--panel); color: var(--muted); border: 1px solid var(--line-strong);
  padding: 7px 11px; border-radius: 9px; font-size: 13px; font-weight: 600; box-shadow: none; }
.btn-ghost-sm:hover { color: var(--accent); border-color: var(--accent); filter: none; }

/* ---- menu aktualizace dat (↻) ---- */
.refresh-wrap { position: relative; }
.refresh-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 45; background: var(--panel);
  border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow-lg); min-width: 320px; overflow: hidden; }
.refresh-menu button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%;
  background: var(--panel); color: var(--txt); border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 14px; text-align: left; border-radius: 0; box-shadow: none; font-size: 13px; font-weight: 600; }
.refresh-menu button:last-child { border-bottom: 0; }
.refresh-menu button:hover { background: var(--accent-soft); filter: none; }
.refresh-menu button .muted { font-size: 11.5px; font-weight: 400; }
.status { color: var(--muted); font-size: 13px; }
.alert-bar { color: var(--gold); font-size: 13px; font-weight: 600; }
.alert-bar.on { padding: 4px 10px; background: var(--gold-soft); border: 1px solid #ecdcae; border-radius: 8px; }

/* ---- záložky ---- */
.tabs { display: flex; gap: 8px; margin-top: 14px; }
.tab { background: transparent; color: var(--muted); border: 1px solid var(--line-strong); padding: 7px 16px;
  border-radius: 9px; font-weight: 600; box-shadow: none; }
.tab:hover { color: var(--txt); background: var(--panel2); }
.tab.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: var(--shadow-sm); }
.view { display: none; }
.view.active { display: block; }
.help-btn { margin-left: auto; background: transparent; color: var(--muted); border: 1px solid var(--line-strong);
  padding: 7px 14px; border-radius: 9px; font-weight: 600; box-shadow: none; }
.help-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); filter: none; }
.aikey-btn.set { color: #128a3e; border-color: #c7ecd2; background: var(--green-soft); }
.aikey-btn.unset { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.aikey-btn.bad { color: var(--red); border-color: var(--red); background: #fdeceb; } /* klíč uložen, ale API ho odmítá */
.aikey-modal { max-width: 520px; }
.aikey-status { font-size: 14px; margin: 4px 0 10px; }
.aikey-ok { color: #128a3e; font-weight: 700; }
.aikey-bad { color: var(--red); font-weight: 700; }
.aikey-msg { margin-top: 10px; font-size: 13px; min-height: 18px; }

/* ---- glosář vysvětlivek ---- */
.help-title { margin: 0 0 4px; font-size: 19px; font-weight: 800; }
.help-intro { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.help-body { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.help-sec { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.help-sec h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .3px; }
.help-sec dl { margin: 0; }
.help-sec dt { font-weight: 700; font-size: 13px; margin-top: 8px; }
.help-sec dt:first-child { margin-top: 0; }
.help-sec dd { margin: 1px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
@media (max-width: 720px) { .help-body { grid-template-columns: 1fr; } }

/* ---- modul Tipy ---- */
.tips-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px 26px 0; }
.tips-top:empty { padding: 0; }
.tips-top-l { font-size: 12.5px; font-weight: 600; }
.tips-top-card { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); color: var(--txt);
  border: 1px solid var(--line-strong); border-radius: 9px; padding: 7px 12px; font-size: 12.5px; box-shadow: var(--shadow-sm); }
.tips-top-card:hover { border-color: var(--accent); background: var(--accent-soft); filter: none; }
.tips-top-card .ttc-cat { color: var(--muted); font-weight: 500; }
.tips-top-card b { font-weight: 700; }
.tips-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 8px 26px 0; font-size: 13px; }
.tips-sort-l { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.tips-tools select { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 7px; padding: 6px 8px; font-size: 12.5px; color: var(--txt); }
.tips-tools .help-btn { margin-left: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 26px 6px; }
.chip { background: var(--panel); color: var(--muted); border: 1px solid var(--line-strong); padding: 6px 14px;
  border-radius: 20px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm); }
.chip:hover { color: var(--txt); border-color: var(--accent); }
.chip.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.tips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; padding: 16px 26px 32px; }
.tips-grid .empty { padding: 28px; grid-column: 1 / -1; text-align: center; }
.tips-grid .tips-note { grid-column: 1 / -1; margin: 0 0 2px; font-size: 12.5px; }
.tip2 { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  cursor: pointer; box-shadow: var(--shadow); transition: box-shadow .14s, transform .08s, border-color .14s; }
.tip2:hover { box-shadow: var(--shadow-lg); border-color: var(--line-strong); transform: translateY(-2px); }
.tip2-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tip2-id strong { font-size: 16px; font-weight: 700; }
.tip2-name { color: var(--muted); font-size: 12px; margin-top: 3px; }
.tip2-price { text-align: right; white-space: nowrap; }
.tip2-price .p { font-weight: 700; font-size: 15px; }
.tip2-price .cur { color: var(--muted); font-weight: 500; font-size: 11px; }
.tip2-up { color: var(--green); font-size: 12px; font-weight: 700; margin-top: 2px; }
.tip2-badges { display: flex; flex-direction: column; gap: 7px; margin: 14px 0 12px; }
.badge { font-size: 12.5px; padding: 7px 11px; border-radius: 8px; border: 1px solid transparent; line-height: 1.35; font-weight: 500; }
.b-earnings { background: var(--accent-soft); color: #1d4ed8; border-color: #cfe0ff; }
.b-analyst { background: var(--violet-soft); color: var(--violet); border-color: #e2d6fb; }
.b-undervalued { background: var(--green-soft); color: #128a3e; border-color: #c7ecd2; }
.b-growth { background: var(--orange-soft); color: var(--orange); border-color: #f8ddc0; }
.b-dividend { background: var(--gold-soft); color: var(--gold); border-color: #ecdcae; }
.tip2-cta { display: flex; gap: 8px; margin: 0 0 12px; }
.tip2-btn { flex: 1; background: var(--panel2); color: var(--accent); border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 7px 0; font-size: 12.5px; font-weight: 600; box-shadow: none; }
.tip2-btn:hover { background: var(--accent-soft); border-color: var(--accent); filter: none; }
.tip2-foot { display: flex; gap: 16px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); padding-top: 10px; font-weight: 500; }

/* ---- Portfolio ---- */
.pf-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; padding: 20px 26px 6px; }
.pf-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.pf-card-l { color: var(--muted); font-size: 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.pf-card-v { font-size: 20px; font-weight: 800; margin-top: 4px; }
.pf-card-v.pos { color: var(--green); }
.pf-card-v.neg { color: var(--red); }
/* podtitulek karty — říká, CO to číslo je (držené vs. uzavřené), aby se nepletlo dohromady */
.pf-card-sub { color: var(--muted); font-size: 11px; margin-top: 3px; }
.pf-warn { color: #a15c00; cursor: help; border-bottom: 1px dotted currentColor; }
.pf-card-click { cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.pf-card-click:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.pf-card-more { color: var(--accent); font-size: 11px; font-weight: 700; opacity: 0; transition: opacity .12s; white-space: nowrap; }
.pf-card-click:hover .pf-card-more { opacity: 1; }
.pf-when { font-weight: 400; font-size: 11px; }

/* filtr období nad kartami */
.pf-filters { display: flex; align-items: center; gap: 9px; padding: 16px 26px 0; flex-wrap: wrap; }
.pf-per-l { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pf-period { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 8px; padding: 5px 9px;
  font-size: 12.5px; font-weight: 600; color: var(--txt); font-family: inherit; cursor: pointer; }
.pf-period:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.pf-per-note { font-size: 11.5px; }

/* ---- přesný rozpis zisku (modal po kliknutí na kartu) ---- */
.bd-h { font-size: 17px; margin: 0 0 4px; }
.bd-sub { font-size: 12.5px; line-height: 1.5; margin: 0 0 12px; }
.bd-tot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.bd-tot > div { background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; }
.bd-tot span { display: block; font-size: 11px; }
.bd-tot b { font-size: 15px; font-variant-numeric: tabular-nums; }
.bd-note { background: #fff8e6; border: 1px solid #f0dca8; color: #7a5b00; border-radius: 8px;
  padding: 8px 11px; font-size: 12px; line-height: 1.5; margin: 0 0 12px; }
.bd-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.bd-tbl th { text-align: left; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .4px;
  padding: 6px 8px; border-bottom: 1px solid var(--line-strong); position: sticky; top: 0; background: var(--panel); }
.bd-tbl td { padding: 6px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.bd-tbl tr.bd-click { cursor: pointer; }
.bd-tbl tr.bd-click:hover { background: var(--accent-soft); }
.bd-foot { font-size: 11.5px; margin: 10px 0 0; }

/* ---- pozice jako karty (jen mobil; na desktopu je tabulka) ---- */
.pf-cards { display: none; }
.pfc { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  box-shadow: var(--shadow); cursor: pointer; }
.pfc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pfc-id { min-width: 0; }
.pfc-id strong { font-size: 14px; }
.pfc-name { display: block; color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 42vw; }
.pfc-val { text-align: right; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pfc-w { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
.pfc-bot { display: flex; align-items: center; gap: 10px; margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line); }
.pfc-p { font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.pfc-pct { font-weight: 600; font-size: 12px; opacity: .85; }
.pfc-sh { margin-left: auto; font-size: 11.5px; }
/* tečka novinek + AI na kartě: na dotyku není hover ani title → žárovka musí mít viditelný popisek */
.pfc-news { display: inline-flex; align-items: center; }
.pfc-news .ndot { font-size: 15px; padding: 2px 4px; }
.pfc-ai { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); border-radius: 14px;
  padding: 3px 9px; font-size: 11.5px; font-weight: 700; font-family: inherit; cursor: pointer; white-space: nowrap; }
.pfc-ai:hover { filter: none; background: var(--accent); color: #fff; }

/* ticker-pilulka v souhrnném panelu novinek (klik = zprávy jen k titulu) */
.news-sym { display: inline-block; background: var(--accent-soft); color: var(--accent); border-radius: 5px;
  padding: 1px 6px; margin-right: 7px; font-size: 11px; font-weight: 800; cursor: pointer; vertical-align: 1px; }
.news-sym:hover { background: var(--accent); color: #fff; }
.pf-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 26px 0; gap: 12px; flex-wrap: wrap; }
.pf-h { margin: 0; font-size: 16px; font-weight: 700; }
.pf-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#pf-grid tbody tr.pf-clickable { cursor: pointer; }
#pf-grid .pf-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.pf-wcell { white-space: nowrap; }
.wbar { display: inline-block; width: 56px; height: 7px; background: var(--panel2); border: 1px solid var(--line);
  border-radius: 4px; overflow: hidden; margin-right: 7px; vertical-align: middle; }
.wbar > span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.pf-closed { margin: 6px 26px; }
.pf-closed > summary { cursor: pointer; font-weight: 600; color: var(--muted); padding: 8px 0; list-style: revert; }
.pf-closed > summary:hover { color: var(--txt); }
/* dividendy a zdanění */
.div-sum { padding: 6px 0 2px; grid-template-columns: repeat(3, 1fr); }
#pf-div .table-wrap { padding: 4px 0 8px; }
.div-note { margin: 2px 0 8px; font-size: 12px; }
.div-events > summary { cursor: pointer; color: var(--muted); font-weight: 600; padding: 6px 0; list-style: revert; }
.div-events > summary:hover { color: var(--txt); }
.pf-note { padding: 2px 26px 28px; font-size: 12px; }

/* ---- Dashboard / Přehled ---- */
.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 10px 26px 28px; }
.dash-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.dash-panel h3 { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.dash-wide { grid-column: 1 / -1; }
.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut { width: 150px; height: 150px; flex: 0 0 auto; }
.donut-leg { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; flex: 1; min-width: 0; }
.leg-row { display: flex; align-items: center; gap: 7px; }
.leg-row .leg-l { flex: 1; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leg-row b { font-weight: 700; }
.leg-dot { width: 11px; height: 11px; border-radius: 3px; flex: 0 0 auto; }
.mkbar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; margin-bottom: 10px; }
.mkbar > div { height: 100%; }
.wl-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.wl-row:last-child { border-bottom: 0; }
.wl-row:hover { color: var(--accent); }
.wl-sep { height: 8px; border-top: 1px dashed var(--line-strong); margin: 4px 0; }
.pf-tag { font-size: 10px; background: var(--accent-soft); color: var(--accent); padding: 1px 6px; border-radius: 10px; font-weight: 600; }
.dash-tip { font-size: 12px; }
.tbl-pager { display: flex; align-items: center; gap: 8px; padding: 12px 2px; flex-wrap: wrap; }
.tbl-pager .chip[disabled] { opacity: .4; cursor: default; }
@media (max-width: 820px) { .dash-grid { grid-template-columns: 1fr; } }

/* ---- přehledové mini-karty ---- */
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 20px 26px; }
.tip-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.tip-card h2 { margin: 0; font-size: 15px; font-weight: 700; }
#tip-value h2 { color: var(--green); }
#tip-momentum h2 { color: var(--accent); }
#tip-dividend h2 { color: var(--gold); }
.tip-card .hint { margin: 3px 0 12px; color: var(--muted); font-size: 12px; }
.tip-list { margin: 0; padding-left: 22px; }
.tip-list li { padding: 5px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.tip-list li:last-child { border: 0; }
.tip-list li:hover { color: var(--accent); }
.tip-list .nm { color: var(--muted); font-size: 12px; }
.tip-list .sc { float: right; font-weight: 700; }

/* ---- tabulka ---- */
.table-wrap { padding: 4px 26px 28px; overflow-x: auto; }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-variant-numeric: tabular-nums;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { padding: 9px 11px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 600; cursor: pointer; user-select: none; position: sticky; top: 0;
  background: var(--panel2); font-size: 12px; text-transform: uppercase; letter-spacing: .3px; }
th:hover { color: var(--txt); }
th.num, td.num { text-align: right; }
tbody tr { cursor: pointer; }
tbody tr:nth-child(even) { background: #fafbfd; }
tbody tr:hover { background: var(--accent-soft); }
.market-tag { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: var(--panel2); color: var(--muted);
  border: 1px solid var(--line-strong); font-weight: 600; }
.pos { color: var(--green); font-weight: 600; }
.neg { color: var(--red); font-weight: 600; }
.score { display: inline-block; min-width: 32px; text-align: center; padding: 2px 7px; border-radius: 6px; font-weight: 700; font-size: 12.5px; }
.s-hi { background: var(--green-soft); color: #128a3e; }
.s-mid { background: var(--gold-soft); color: var(--gold); }
.s-lo { background: var(--red-soft); color: var(--red); }
.muted { color: var(--muted); }

/* ---- watchlist hvězda ---- */
.star-col { width: 26px; text-align: center; padding-left: 8px; padding-right: 2px; }
.star { cursor: pointer; color: #c2c9d4; user-select: none; font-size: 15px; }
.star.on, .star:hover { color: var(--gold); }

footer { padding: 18px 26px 32px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
footer code { background: var(--panel2); padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line); }

/* ---- detail modal ---- */
.overlay { position: fixed; inset: 0; background: rgba(16, 32, 60, .42); display: flex; align-items: flex-start;
  justify-content: center; padding: 48px 16px; z-index: 50; overflow-y: auto; backdrop-filter: blur(2px); }
.overlay[hidden] { display: none; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px;
  width: 100%; max-width: 820px; position: relative; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 14px; right: 14px; background: var(--panel2); color: var(--muted);
  width: 32px; height: 32px; border-radius: 9px; padding: 0; font-size: 15px; box-shadow: none; }
.modal-close:hover { background: var(--red-soft); color: var(--red); filter: none; }
.d-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; padding-right: 30px; }
.d-head h2 { margin: 0; font-size: 21px; font-weight: 800; }
.d-name { color: var(--muted); margin-top: 3px; }
.d-price { text-align: right; }
.d-price .big { font-size: 23px; font-weight: 800; }
.d-price .cur { font-size: 13px; color: var(--muted); font-weight: 500; }

.d-chart { margin: 8px 0 18px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
svg.chart { width: 100%; height: 240px; display: block; }
svg.chart .axis { stroke: var(--line-strong); stroke-width: 1; }
svg.chart .price { fill: none; stroke-width: 2; }
svg.chart .price.up { stroke: var(--green); }
svg.chart .price.down { stroke: var(--red); }
svg.chart .sma { fill: none; stroke-width: 1.2; opacity: .85; }
svg.chart .sma50 { stroke: var(--accent); }
svg.chart .sma200 { stroke: var(--gold); }
svg.chart .lbl { fill: var(--muted); font-size: 11px; }
svg.chart .lbl.end { text-anchor: end; }
.chart-leg { font-size: 11px; color: var(--muted); display: flex; gap: 16px; margin-top: 6px; font-weight: 600; }
.chart-leg .lg-price { color: var(--green); }
.chart-leg .lg-50 { color: var(--accent); }
.chart-leg .lg-200 { color: var(--gold); }

.d-scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 18px; }
.sbar-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.sbar-top b { color: var(--txt); }
.sbar-track { height: 8px; background: var(--panel2); border-radius: 5px; overflow: hidden; border: 1px solid var(--line); }
.sbar-fill { height: 100%; border-radius: 5px; }
.sbar-fill.s-hi { background: var(--green); }
.sbar-fill.s-mid { background: var(--gold); }
.sbar-fill.s-lo { background: var(--red); }

.d-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px 20px; margin-bottom: 18px; }
.d-stats .stat { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 5px 0; font-size: 13px; }
.d-stats .stat span { color: var(--muted); }
.d-stats .stat b { font-weight: 700; }

.d-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line); padding-top: 16px; }
button.ghost { background: var(--panel); color: var(--txt); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); }
button.ghost:hover { background: var(--panel2); filter: none; }
button.ghost.on { background: var(--gold-soft); color: var(--gold); border-color: #ecdcae; }
.d-alert { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.d-alert input { width: 80px; background: var(--panel); border: 1px solid var(--line-strong); color: var(--txt);
  border-radius: 7px; padding: 6px 8px; font-size: 13px; }
.d-alert input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.d-alert label { display: flex; align-items: center; gap: 4px; }

/* ---- žebříček kategorie (celé pořadí) + AI filtr ---- */
#rank-overlay { z-index: 15; } /* pod detailem (20) — detail se otevře nad žebříčkem a po zavření se člověk vrátí */
.rank-modal { max-width: 980px; display: flex; flex-direction: column; height: min(88vh, 900px); }
.tip-card .rank-open { margin-top: 10px; width: 100%; background: var(--panel2); color: var(--accent);
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 0; font-weight: 600; box-shadow: none; }
.tip-card .rank-open:hover { background: var(--accent-soft); border-color: var(--accent); filter: none; }
.rank-aibar { display: flex; gap: 8px; margin: 10px 0 8px; }
.rank-aibar input { flex: 1; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 9px;
  padding: 9px 12px; font-size: 13px; color: var(--txt); }
.rank-aibar input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.rank-ai-state { background: var(--accent-soft); border: 1px solid #cfe0ff; border-radius: 9px; padding: 8px 12px;
  font-size: 13px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rank-cond { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 7px;
  font-size: 11.5px; font-family: Consolas, monospace; color: var(--muted); }
.rank-tools { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; font-size: 13px; }
.rank-body { flex: 1; overflow-y: auto; padding: 0; border: 1px solid var(--line); border-radius: 10px; }
.rank-body table { border: 0; box-shadow: none; border-radius: 0; }
#rank-grid tbody tr { cursor: pointer; }

/* ---- žárovka AI ---- */
.ai-bulb { cursor: pointer; margin-left: 4px; opacity: .55; font-size: 13px; user-select: none; transition: opacity .12s, transform .08s; }
.ai-bulb:hover { opacity: 1; transform: scale(1.2); }
tbody tr:hover .ai-bulb { opacity: .85; }

/* ---- AI chat modal ---- */
#ai-overlay { z-index: 60; }
.ai-modal { max-width: 760px; display: flex; flex-direction: column; height: min(82vh, 760px); padding: 20px 22px; }
.ai-head { padding-right: 34px; }
.ai-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.ai-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.ai-agents { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.ai-agent { background: var(--panel); color: var(--muted); border: 1px solid var(--line-strong); padding: 6px 11px;
  border-radius: 8px; font-weight: 600; font-size: 12.5px; box-shadow: none; }
.ai-agent:hover { color: var(--txt); background: var(--panel2); filter: none; }
.ai-agent.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.ai-history { flex: 1; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2);
  padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.ai-bubble { max-width: 92%; }
.ai-bubble.ai-user { align-self: flex-end; }
.ai-bubble.ai-assistant { align-self: flex-start; }
.ai-role { font-size: 11px; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.ai-body { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 13.5px; line-height: 1.5; }
.ai-user .ai-body { background: var(--accent-soft); border-color: #cfe0ff; }
.ai-body strong { font-weight: 700; }
.ai-body a { color: var(--accent); }
.ai-body pre { background: var(--panel2); padding: 8px 10px; border-radius: 7px; overflow-x: auto; font-size: 12px; }
.ai-body code { background: var(--panel2); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.ai-body .ai-h { font-weight: 700; margin: 8px 0 3px; }
.ai-body .ai-li { margin: 1px 0 1px 4px; }
.ai-body .ai-sp { height: 6px; }
.ai-body hr { border: 0; border-top: 1px solid var(--line); margin: 9px 0; }
.ai-body .ai-quote { border-left: 3px solid var(--line-strong); padding: 2px 0 2px 9px; margin: 4px 0; color: var(--muted); }
.ai-tbl { border-collapse: collapse; width: 100%; margin: 8px 0; font-size: 12.5px; }
.ai-tbl th, .ai-tbl td { border: 1px solid var(--line); padding: 4px 8px; text-align: left; vertical-align: top; }
.ai-tbl th { background: var(--panel2); font-weight: 700; }
.ai-typing { color: var(--muted); }

/* ---------- rozpad skóre Hodnota (rozklik v detailu titulu) ---------- */
.sbar-x { cursor: pointer; border-radius: 8px; transition: background .12s; }
.sbar-x:hover { background: var(--accent-soft); }
.sbar-x.open .vb-hint { color: var(--txt); }
.vb-hint { font-size: 10.5px; color: var(--accent); font-weight: 600; margin-left: 4px; }
.vb { margin: 2px 0 16px; padding: 12px 14px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.vb-grp { color: var(--muted); margin-bottom: 6px; font-size: 12.5px; }
.vb-note { background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; border-radius: 8px; padding: 8px 10px; margin: 8px 0; }
.vb-sec { font-weight: 700; margin: 10px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); }
.vb-row { display: grid; grid-template-columns: minmax(130px, 1.2fr) 90px minmax(60px, 1fr) minmax(160px, 1.1fr); gap: 10px; align-items: center; padding: 3px 0; cursor: help; }
.vb-row .vb-v { text-align: right; font-variant-numeric: tabular-nums; }
.vb-bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; display: block; }
.vb-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.vb-p { color: var(--muted); font-size: 12px; }
.vb-flags { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.vb-flag { display: flex; gap: 6px; align-items: baseline; cursor: help; }
.vb-flag b { font-variant-numeric: tabular-nums; }
.vb-ok { color: #16a34a; font-weight: 700; }
.vb-bad { color: #d97706; font-weight: 700; }
.vb-na { color: var(--muted); }
.vb-sum { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line-strong); }
.vb-foot { margin-top: 8px; font-size: 11.5px; line-height: 1.45; }
@media (max-width: 640px) { .vb-row { grid-template-columns: 1fr 90px; } .vb-bar, .vb-p { display: none; } }

/* ---------- pohledy trhu (lišta nad tabulkou) ---------- */
.views-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 2px 0 14px; }
.views-lbl { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.views-bar .chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip-ai { border-style: dashed; }

/* ---------- indikátor novinek (tečka v portfoliu) + panel titulků ---------- */
.ndot { font-size: 15px; cursor: pointer; line-height: 1; display: inline-block; padding: 0 4px; }
.ndot:hover { transform: scale(1.25); }
.nd-off { color: var(--line-strong); }
.nd-neu { color: #98a2af; }
.nd-pos { color: var(--green); }
.nd-neg { color: var(--red); }
.nd-cell { text-align: center !important; }
.nd-pos-t { color: var(--green); }
.nd-neg-t { color: var(--red); }
.news-modal { max-width: 720px; }
.news-sum { margin: 4px 0; font-size: 13.5px; }
.news-item { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.4; }
.news-item a { color: var(--txt); text-decoration: none; }
.news-item a:hover { color: var(--accent); text-decoration: underline; }
.news-date { margin-left: 8px; font-size: 12px; white-space: nowrap; }
.news-src { margin-top: 12px; font-size: 11.5px; }

/* ---------- AI poradce ---------- */
.broker-wrap { max-width: 1100px; margin: 0 auto; }
.broker-h { margin: 4px 0; font-size: 19px; }
.broker-sub { margin: 0 0 12px; max-width: 880px; }
.broker-input { display: flex; gap: 10px; align-items: stretch; margin-bottom: 6px; }
.broker-input textarea { flex: 1; resize: vertical; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; background: var(--panel); }
.broker-input textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.broker-btns { display: flex; flex-direction: column; gap: 6px; justify-content: flex-start; }
.broker-web-l { display: inline-flex; margin: 0 0 10px; font-size: 12.5px; }
.broker-state { margin: 6px 0 10px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.broker-stepline { animation: broker-in .18s ease-out; }
@keyframes broker-in { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: none; } }
.broker-answer { margin: 6px 0 12px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 10px; font-size: 13.5px; line-height: 1.5; }
.broker-answer .ai-h { font-weight: 700; margin: 8px 0 3px; }
.broker-answer .ai-li { margin: 1px 0 1px 4px; }
.broker-answer .ai-sp { height: 6px; }
.broker-answer a { color: var(--accent); }
.broker-note { font-size: 12.5px; }
#broker-grid tbody tr { cursor: pointer; }
#broker-grid tbody tr:hover { background: var(--accent-soft); }

/* ---------- Investiční rámec (detail titulu) ---------- */
.fw { margin: 2px 0 16px; padding: 12px 14px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.fw-head { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.fw-title { font-weight: 700; }
.fw-hz { display: flex; gap: 5px; }
.fw-hz .chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.fw-main { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 10px; }
.fw-action { font-weight: 800; letter-spacing: .4px; padding: 3px 12px; border-radius: 7px; font-size: 13px; }
.fw-buy { background: var(--green-soft); color: var(--green); border: 1px solid #bfd9c9; }
.fw-hold { background: var(--accent-soft); color: var(--accent); border: 1px solid #c6d4e2; }
.fw-watch { background: var(--panel); color: var(--muted); border: 1px solid var(--line-strong); }
.fw-trim { background: var(--orange-soft); color: var(--orange); border: 1px solid #e4cba6; }
.fw-avoid { background: var(--red-soft); color: var(--red); border: 1px solid #e0b6b2; }
.fw-na { background: var(--panel); color: var(--muted); border: 1px dashed var(--line-strong); }
.fw-comp, .fw-conv, .fw-size { color: var(--muted); font-size: 12.5px; }
.fw-size { font-weight: 600; color: var(--txt); }
.fwbar { position: relative; display: inline-block; width: 90px; height: 6px; background: linear-gradient(90deg, var(--red-soft), var(--line) 50%, var(--green-soft)); border-radius: 3px; vertical-align: middle; }
.fwbar i { position: absolute; top: -3px; margin-left: -2px; width: 4px; height: 12px; background: var(--accent); border-radius: 2px; }
.fwbar-na { color: var(--muted); width: auto; background: none; }
.fw-row { display: grid; grid-template-columns: minmax(110px, .8fr) 100px 52px minmax(200px, 2fr); gap: 10px; align-items: center; padding: 2px 0; }
.fw-row .fw-v { text-align: right; font-variant-numeric: tabular-nums; }
.fw-note-s { font-size: 12px; }
.fw-risk { margin-top: 8px; padding: 7px 10px; background: var(--orange-soft); border: 1px solid #e4cba6; border-radius: 7px; font-size: 12.5px; }
.fw-risk-ok { background: var(--panel); border-color: var(--line); color: var(--muted); }
.fw-foot { margin-top: 8px; font-size: 11.5px; line-height: 1.45; }
@media (max-width: 640px) { .fw-row { grid-template-columns: 1fr 90px 52px; } .fw-row .fw-note-s { display: none; } }
.ai-err { color: var(--red); }
.ai-retry { display: inline-block; margin-top: 7px; background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent); border-radius: 15px; padding: 5px 13px; font-size: 12.5px; font-weight: 700;
  font-family: inherit; cursor: pointer; }
.ai-retry:hover { filter: none; background: var(--accent); color: #fff; }
.ai-input { display: flex; gap: 8px; margin-top: 12px; }
.ai-input textarea { flex: 1; resize: vertical; min-height: 42px; max-height: 160px; background: var(--panel);
  border: 1px solid var(--line-strong); border-radius: 9px; padding: 9px 11px; font: inherit; font-size: 13.5px; color: var(--txt); }
.ai-input textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.ai-input button { align-self: flex-end; height: 42px; }
.ai-foot { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.ai-foot select { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 7px; padding: 5px 8px; font-size: 12.5px; color: var(--txt); }
.ai-foot select:disabled { opacity: .5; }
.ai-foot-l { display: inline-flex; align-items: center; gap: 5px; }
.ai-foot-note { font-size: 11.5px; }
.ai-keybar { padding: 14px; background: var(--accent-soft); border: 1px solid #cfe0ff; border-radius: 10px; font-size: 13px; }
.ai-keyrow { display: flex; gap: 8px; margin-top: 10px; }
.ai-keyrow input { flex: 1; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 7px; padding: 8px 10px; font-size: 13px; }

/* ---- úvodní karta agenta (AI se spouští jen na kliknutí) ---- */
.ai-intro { background: var(--panel); border: 1px dashed var(--line-strong); border-radius: 10px; padding: 14px 16px; }
.ai-intro-t { font-weight: 700; margin-bottom: 4px; }
.ai-intro-d { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.ai-kick { margin-top: 10px; }
.ai-intro-n { font-size: 11.5px; margin-top: 6px; }

@media (max-width: 820px) {
  .tips { grid-template-columns: 1fr; }
  .pf-summary { grid-template-columns: repeat(2, 1fr); }
  .d-scores { grid-template-columns: repeat(2, 1fr); }
  .d-stats { grid-template-columns: repeat(2, 1fr); }
  .ai-modal { height: 88vh; max-width: 100%; }
  .bd-tot { grid-template-columns: repeat(2, 1fr); }
}

/* ================= MOBIL (telefon na výšku) =================
 * Cíl: plnohodnotné ovládání z mobilu — hlavička se sbalí a odscrolluje,
 * záložky jedou vodorovným posuvem, tabulky scrollují do stran,
 * modaly (detail / AI chat / žebříčky) jedou přes celou obrazovku. */
@media (max-width: 640px) {
  /* hlavička: neukrajovat z výšky displeje — není sticky a je hustší */
  header { position: static; padding: 10px 12px; }
  h1 { font-size: 18px; margin-bottom: 8px; }
  h1 .sub { display: block; margin: 2px 0 0; }
  .controls { gap: 8px; }
  .search-wrap { flex: 1 1 100%; max-width: none; min-width: 0; }
  .refresh-menu { max-width: calc(100vw - 24px); min-width: 0; }
  .status { font-size: 12px; }

  /* záložky: jeden vodorovně posuvný pruh */
  .tabs { overflow-x: auto; flex-wrap: nowrap; margin-top: 10px; padding-bottom: 4px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs > * { flex: 0 0 auto; white-space: nowrap; }
  .help-btn { margin-left: 0; }

  /* obsahové sekce: menší okraje */
  .tips-top { padding: 12px 12px 0; }
  .tips-tools { padding: 8px 12px 0; }
  .tips-tools .help-btn { margin-left: 0; }
  .chips { padding: 12px 12px 4px; }
  .tips-grid { padding: 12px 12px 24px; grid-template-columns: 1fr; }
  .pf-summary { padding: 12px 12px 4px; gap: 10px; }
  .pf-card-v { font-size: 17px; }
  .pf-card-more { opacity: 1; } /* na dotyku není hover → ukaž „rozpis ›" rovnou */
  .pf-filters { padding: 12px 12px 0; }
  .pf-per-note { display: none; } /* na mobilu zbytečný šum, chipy jsou hned nad tím */
  .pf-head { padding: 10px 12px 0; }
  .pf-closed { margin: 6px 12px; }
  /* pozice: 11sloupcová tabulka se na telefon nevejde → karty */
  #view-portfolio .table-wrap:has(#pf-grid) { display: none; }
  .pf-cards { display: grid; gap: 8px; padding: 8px 12px 16px; }
  .pf-note { padding: 2px 12px 20px; }
  .dash-grid { padding: 8px 12px 20px; }
  .tips { padding: 12px 12px; gap: 12px; }
  .table-wrap { padding: 4px 12px 20px; }
  footer { padding: 14px 12px 24px; }
  th, td { padding: 7px 8px; font-size: 12.5px; }

  /* dotyková plocha žárovky AI */
  .ai-bulb { font-size: 16px; padding: 4px; }

  /* modaly přes celou obrazovku (dvh = skutečná výška i s lištou prohlížeče) */
  .overlay { padding: 8px 6px; }
  .modal { padding: 16px 12px; border-radius: 12px; }
  .modal-close { width: 38px; height: 38px; font-size: 17px; }
  .ai-modal, .rank-modal { height: calc(100vh - 16px); height: calc(100dvh - 16px); max-height: none; padding: 14px 10px; }
  .ai-bubble { max-width: 100%; }
  .ai-agents { gap: 5px; margin: 10px 0; }
  .ai-agent { padding: 6px 9px; font-size: 12px; }
  .ai-foot { gap: 8px; }
  .d-head { flex-wrap: wrap; }
  .d-stats { grid-template-columns: 1fr; }
  .donut-wrap { flex-direction: column; align-items: flex-start; }
  svg.chart { height: 190px; }
  .rank-aibar { flex-wrap: wrap; }
  .rank-aibar input { flex: 1 1 100%; }
  .broker-input { flex-direction: column; }
  .broker-btns { flex-direction: row; }

  /* iOS: vstupy pod 16 px způsobují automatický zoom stránky při psaní
   * (vyjmenované kvůli specificitě — samotné `input` nepřebije `.search` apod.) */
  input, textarea, select,
  .search, .ai-input textarea, .broker-input textarea, .rank-aibar input,
  .d-alert input, .ai-keyrow input, .ai-foot select { font-size: 16px; }
  .mchip input { font-size: inherit; } /* skrytý checkbox — netýká se */
}
