/* Anketa (core/poll.js + core/poll-ui.js): karta v liště nad polem, karta výsledku v chatu, tooltip rozdělení hlasů,
   ztlumená zpráva hlasu a záložka admin panelu. Vlastní modrá (Gamba fialová, Točka oranžová). Jen tmavé téma. */
:root { --uc-poll: #3aa0ff; --uc-poll-2: #59b8ff; --uc-poll-ok: #6be38a; --uc-poll-tx: #9fd2ff; }

/* ---- karta v liště ---- */
/* Ikona „Otevřít anketu“ v řádku nad polem (skončená anketa zavřená ×); rozměr a mezery giveaway.css .uc-bar-reopen. */
.uc-pl-reopen { color: #3aa0ff; }
.uc-poll {
  display: flex; flex-direction: column; gap: 8px; padding: 9px 10px 10px; border-radius: 12px;
  border: 1px solid rgba(58, 160, 255, .35); background: linear-gradient(180deg, rgba(58, 160, 255, .10), rgba(58, 160, 255, .03));
  color: var(--text-primary, #efeff1); font-size: 13px; user-select: none; -webkit-user-select: none;
}
.uc-poll--ended { border-color: rgba(107, 227, 138, .45); background: linear-gradient(180deg, rgba(107, 227, 138, .10), rgba(107, 227, 138, .03)); }
.uc-poll--ro { background: rgba(10, 10, 14, .82); }
.uc-poll-head { display: flex; align-items: baseline; gap: 8px; }
.uc-poll-x { margin-left: auto; background: none; border: 0; color: #adadb8; font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; align-self: flex-start; flex: none; }
.uc-poll-x:hover { color: #efeff1; }
.uc-poll-x:focus-visible { outline: 2px solid var(--uc-poll); outline-offset: 2px; border-radius: 4px; }
.uc-poll-q { flex: 1; min-width: 0; font-weight: 800; font-size: 14px; overflow-wrap: anywhere; }
/* Mod u běžící ankety: klik na název = přepsat otázku přímo v liště (tužka při najetí, pole místo textu). */
.uc-poll-q--edit { cursor: text; border-radius: 5px; margin: -2px -6px; padding: 2px 6px; transition: background .15s; }
.uc-poll-q--edit:not(.editing):hover, .uc-poll-q--edit:not(.editing):focus-visible { background: rgba(255, 255, 255, .07); outline: none; }
.uc-poll-q--edit:not(.editing):hover::after, .uc-poll-q--edit:not(.editing):focus-visible::after { content: "✎"; margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--uc-poll-tx); }
.uc-poll-q.editing { padding: 0; margin: -2px -6px; }
.uc-poll-qe { box-sizing: border-box; width: 100%; font: inherit; font-weight: 800; color: var(--text-primary, #efeff1); background: rgba(0, 0, 0, .35); border: 1px solid var(--uc-poll); border-radius: 5px; padding: 1px 5px; outline: none; }
.uc-poll-qe:focus { box-shadow: 0 0 0 2px rgba(58, 160, 255, .25); }
.uc-poll-time { flex: none; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; color: var(--uc-poll-tx); font-variant-numeric: tabular-nums; }
.uc-poll--ended .uc-poll-time { color: var(--uc-poll-ok); }
.uc-poll--cancelled .uc-poll-time { color: var(--text-secondary, #a2a2ad); }
.uc-poll-opts { display: flex; flex-direction: column; gap: 6px; }
.uc-poll-opt {
  position: relative; display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box; padding: 6px 9px;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, .1); overflow: hidden; background: none; color: inherit;
  font: inherit; font-size: 13px; text-align: left; transition: border-color .25s ease, opacity .25s ease, box-shadow .2s ease;
}
button.uc-poll-opt { cursor: pointer; }
button.uc-poll-opt:hover { border-color: rgba(58, 160, 255, .5); }
button.uc-poll-opt:focus-visible { outline: 2px solid var(--uc-poll); outline-offset: 2px; }
.uc-poll-fill { position: absolute; inset: 0 auto 0 0; z-index: 0; background: rgba(58, 160, 255, .22); transition: width .4s ease, background .25s ease; }
.uc-poll-opt > *:not(.uc-poll-fill) { position: relative; z-index: 1; }
/* Víc než 5 možností: kompaktnější řádky. */
.uc-poll-opts--dense { gap: 3px; }
.uc-poll-opts--dense .uc-poll-opt { padding-block: 3px; font-size: 12px; border-radius: 6px; }
.uc-poll-n {
  flex: none; box-sizing: border-box; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); font-size: 11px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
  text-box: trim-both cap alphabetic; transition: border-radius .22s ease, background-color .22s ease, color .22s ease;
}
/* Víc možností = čtverec (číslo zůstává — hlas zprávou v chatu je číslo). */
.uc-poll--multi .uc-poll-n { border-radius: 4px; border: 1.5px solid rgba(255, 255, 255, .4); background: transparent; }
.uc-poll-t { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.uc-poll-c { font-size: 11px; color: var(--text-secondary, #a2a2ad); font-variant-numeric: tabular-nums; }
.uc-poll-p { font-weight: 800; font-variant-numeric: tabular-nums; }
.uc-poll-opt.mine { border-color: rgba(58, 160, 255, .8); box-shadow: 0 0 0 1px rgba(58, 160, 255, .35) inset; }
.uc-poll-opt.mine .uc-poll-n { background: var(--uc-poll); border-color: var(--uc-poll); color: #001; }
.uc-poll-opt.win { border-color: rgba(107, 227, 138, .7); }
.uc-poll-opt.win .uc-poll-fill { background: rgba(107, 227, 138, .22); }
.uc-poll--cancelled .uc-poll-opt { opacity: .5; }
.uc-poll-err { color: #ff8a8a; font-size: 12px; font-weight: 700; }
.uc-poll-err[hidden] { display: none; }
.uc-poll-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--text-secondary, #a2a2ad); }
.uc-poll-fl:empty, .uc-poll-fr:empty { display: none; }
.uc-poll-fr { margin-left: auto; }
.uc-poll-mod { display: inline-flex; gap: 6px; }

/* Tlačítka moda: Vyhodnotit = modrá ankety, Zrušit = červený obrys; natažené (druhý klik) = plná barva. */
.uc-poll-mb, .uc-poll-save, .uc-pl-mini {
  padding: 3px 10px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04);
  color: var(--text-primary, #efeff1); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: border-color .15s ease, color .15s ease, background .15s ease, box-shadow .15s ease, filter .15s ease;
}
.uc-pl-mini:hover { background: rgba(255, 255, 255, .1); }
.uc-poll-mb[data-poll-act="end"], .uc-poll-mb[data-pla="end"], .uc-poll-save { border-color: transparent; background: linear-gradient(135deg, var(--uc-poll-2), var(--uc-poll)); color: #001; }
.uc-poll-mb[data-poll-act="end"]:hover, .uc-poll-mb[data-pla="end"]:hover, .uc-poll-save:hover { filter: brightness(1.1); }
.uc-poll-mb[data-poll-act="cancel"], .uc-poll-mb[data-pla="cancel"] { border-color: rgba(255, 100, 100, .55); background: rgba(255, 70, 70, .08); color: #ff9a9a; }
.uc-poll-mb[data-poll-act="cancel"]:hover, .uc-poll-mb[data-pla="cancel"]:hover { background: rgba(255, 70, 70, .16); }
.uc-poll-mb[data-poll-act="end"].uc-armed, .uc-poll-mb[data-pla="end"].uc-armed { background: linear-gradient(135deg, #ffcf3f, #ff8c00); color: #1a0d00; box-shadow: 0 0 10px rgba(255, 140, 0, .45); }
.uc-poll-mb[data-poll-act="cancel"].uc-armed, .uc-poll-mb[data-pla="cancel"].uc-armed { border-color: transparent; background: linear-gradient(135deg, #ff6b6b, #e03131); color: #fff; box-shadow: 0 0 10px rgba(255, 60, 60, .4); }
.uc-poll-mb:disabled, .uc-poll-save:disabled { opacity: .5; cursor: default; }
.uc-poll-mb:focus-visible, .uc-poll-save:focus-visible, .uc-pl-mini:focus-visible { outline: 2px solid var(--uc-poll); outline-offset: 2px; }

/* ---- karta „Výsledek ankety“ v chatu ---- */
.uc-poll-result {
  display: flex; flex-direction: column; gap: 7px; margin: 4px 0; padding: 10px; border-radius: 12px;
  border: 1px solid rgba(58, 160, 255, .4); background: linear-gradient(180deg, rgba(58, 160, 255, .12), rgba(58, 160, 255, .04));
  color: var(--text-primary, #efeff1); font-size: 13px;
}
.uc-poll-rh { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--uc-poll-tx); user-select: none; }
.uc-poll-rh svg { width: 14px; height: 14px; flex: none; }
.uc-poll-rf { font-size: 11.5px; color: var(--text-secondary, #a2a2ad); }
/* přepínatelná karta: hlavička je tlačítko, sbalená = jeden řádek „Výsledek ankety · otázka · vítěz N %“ */
.uc-pr-toggle { cursor: pointer; border-radius: 6px; outline: none; }
.uc-pr-toggle:focus-visible { box-shadow: 0 0 0 2px var(--uc-poll); }
.uc-pr-sum { display: none; flex: 1 1 auto; min-width: 0; gap: 6px; align-items: baseline; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-secondary, #a2a2ad); }
.uc-pr-sq { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-pr-win { flex: none; color: var(--text-primary, #efeff1); white-space: nowrap; }
.uc-pr-sq::before { content: "· "; }
.uc-pr-win::before { content: "· "; color: var(--text-secondary, #a2a2ad); }
.uc-pr-arrow { margin-left: auto; transition: transform .15s ease; transform: rotate(90deg); }
.uc-pr-collapsed .uc-pr-arrow { transform: none; }
.uc-pr-collapsed { min-height: 22px; padding-top: 4px; padding-bottom: 4px; gap: 0; }
.uc-pr-collapsed .uc-pr-sum { display: flex; }
.uc-pr-collapsed > :not(.uc-poll-rh) { display: none; }

/* ---- rozdělení hlasů podle platforem (hover / focus na počtu) ---- */
.uc-vsplit { cursor: default; border-radius: 4px; transition: color .12s ease; outline: none; }
.uc-vsplit:hover, .uc-vsplit:focus-visible { color: var(--text-primary, #efeff1); }
.uc-vsplit:focus-visible { box-shadow: 0 0 0 2px var(--uc-poll); }
#uc-vtip {
  position: fixed; left: 0; top: 0; z-index: 10050; pointer-events: none; min-width: 150px; box-sizing: border-box; padding: 7px 9px; border-radius: 8px;
  background: #26262c; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 8px 20px rgba(0, 0, 0, .5);
  font-size: 12px; color: var(--text-secondary, #a2a2ad); opacity: 0; transform: translateY(3px); transition: opacity .12s ease, transform .12s ease;
}
#uc-vtip.on { opacity: 1; transform: none; }
.uc-vtip-row { display: flex; align-items: center; gap: 7px; padding: 2px 0; }
.uc-vtip-row b { margin-left: auto; color: var(--text-primary, #efeff1); font-variant-numeric: tabular-nums; }
.uc-vtip-row.zero { opacity: .45; }
.uc-vtip-logo { width: 14px; height: 14px; object-fit: contain; flex: none; }

/* ---- zpráva, která se započítala jako hlas ---- */
.msg.uc-poll-vote, .uc-pl-pv.uc-poll-vote { opacity: .62; }
.uc-poll-vote-tag--invalid { background: rgba(140, 140, 150, .22); color: var(--text-muted, #848494); cursor: help; }
.uc-poll-vote-tag {
  display: inline-block; margin-left: 4px; padding: 1px 5px; border-radius: 4px; vertical-align: 1px; background: rgba(58, 160, 255, .2);
  color: var(--uc-poll-tx); font-size: 10px; font-weight: 800; letter-spacing: .05em; line-height: 1.3; text-transform: uppercase; user-select: none;
}

/* ---- štítek commandu (core/cmd-labels.js, ZL Ostatní): barva ze ZL, `dim` ztlumí zprávu jako hlas ---- */
.uc-cmd-tag {
  display: inline-block; margin-left: 4px; padding: 1px 5px; border-radius: 4px; vertical-align: 1px;
  background: color-mix(in srgb, var(--uc-cmd-c) 22%, transparent); color: color-mix(in srgb, var(--uc-cmd-c) 70%, #fff);
  font-size: 10px; font-weight: 800; letter-spacing: .05em; line-height: 1.3; text-transform: uppercase; user-select: none;
}
.msg:has(.uc-cmd-tag.dim) { opacity: .62; }

@media (prefers-reduced-motion: reduce) {
  .uc-poll-fill, .uc-poll-opt, .uc-poll-n, #uc-vtip, .uc-poll-mb { transition: none; }
}

/* ---- Anketa v2: typy Na diváka / Otevřené (sdílené prvky answers.css s modrým akcentem) ----
   Karta má úchyt výšky seznamu na horní hraně (absolutně v kartě), řádky bez čísla s barevným proužkem (jméno z chatu /
   paleta ankety), pod seznamem „Tvůj hlas“, hledání s našeptávačem, vlastní odpověď a koncept „Hlasuješ pro …“. */
.uc-poll, .uc-pl-adm, .uc-pl-hi, .uc-pl-cfm, .uc-an-pop.uc-pl-hi, .uc-poll-result { --an-accent: #3aa0ff; --an-accent-2: #9fd2ff; }
.uc-poll { position: relative; }
.uc-poll-opt--an { padding-left: 12px; }
.uc-poll-opt--an::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; z-index: 1; background: var(--an-c, var(--uc-poll)); pointer-events: none; }
.uc-poll-opt--an .uc-poll-fill { background: color-mix(in srgb, var(--an-c, var(--uc-poll)) 22%, transparent); }
button.uc-poll-opt--an:hover { border-color: color-mix(in srgb, var(--an-c, var(--uc-poll)) 55%, transparent); }
.uc-poll-opt--an.mine { border-color: var(--an-c, var(--uc-poll)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--an-c, var(--uc-poll)) 45%, transparent) inset; }
.uc-poll-opt--an .uc-poll-t { display: flex; align-items: center; gap: 4px; min-width: 0; }
.uc-poll-opt--an .uc-poll-t .uc-an-who { max-width: 100%; }
.uc-poll-opt--an .uc-an-rby { font-weight: 500; font-size: 11px; color: var(--text-secondary, #a2a2ad); white-space: nowrap; }
.uc-poll-empty { font-size: 12px; color: var(--text-secondary, #a2a2ad); padding: 2px 2px 4px; }
.uc-poll-mine { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; font-size: 12px; color: var(--text-secondary, #a2a2ad); }
.uc-poll-mine b { color: var(--text-primary, #efeff1); }
.uc-poll-mine .uc-an-who { margin: 0 2px; }
.uc-poll-mine[hidden] { display: none; }
.uc-poll-note { color: var(--uc-poll-tx); font-size: 12px; font-weight: 700; }
.uc-poll-note[hidden] { display: none; }
.uc-poll .uc-an-findwrap { gap: 6px; }
.uc-poll .uc-an-find, .uc-poll .uc-an-warn, .uc-poll .uc-an-own, .uc-poll .uc-an-pickline { margin-top: 0; }
.uc-poll .uc-an-find input { font-size: 12.5px; }
.uc-poll--ro .uc-poll-opts.uc-an-list.scroll { max-height: none; overflow: visible; }

/* ---- admin panel → Anketa ---- */
.uc-pl-adm { display: flex; flex-direction: column; gap: 10px; user-select: none; -webkit-user-select: none; }
.uc-pl-adm input { user-select: text; -webkit-user-select: text; }
.uc-pl-view { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); }
.uc-pl-view[hidden] { display: none; }
.uc-pl-view.uc-pl-enter { animation: uc-pl-in .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes uc-pl-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.uc-pl-lbl { font-size: 12px; font-weight: 700; color: var(--text-secondary, #a2a2ad); }
.uc-pl-row { display: flex; align-items: center; gap: 8px; }
.uc-pl-push { margin-left: auto; }
.uc-pl-in {
  min-width: 0; box-sizing: border-box; padding: 6px 9px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .16);
  background: #0e0e10; color: #efeff1; font: inherit; font-size: 13px; outline: none;
}
.uc-pl-in:focus { border-color: var(--uc-poll); }
.uc-pl-in::placeholder { color: #6e6e78; }
.uc-pl-len { width: 58px; }
.uc-pl-opts { display: flex; flex-direction: column; gap: 10px; }
.uc-pl-orow { display: flex; align-items: center; gap: 6px; }
.uc-pl-orow .uc-pl-in { flex: 1; }
/* Číslo možnosti: jedna volba = plné kolečko, víc možností = průhledný čtverec s bílým číslem. */
.uc-pl-n {
  flex: none; box-sizing: border-box; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background-color: var(--uc-poll); border: 2px solid var(--uc-poll); color: #001; font-size: 11px; font-weight: 800;
  line-height: 1; font-variant-numeric: tabular-nums; text-box: trim-both cap alphabetic; box-shadow: 0 0 0 rgba(58, 160, 255, 0);
  transition: border-radius .22s ease, background-color .22s ease, color .22s ease, box-shadow .22s ease;
}
.uc-pl-multi .uc-pl-n { border-radius: 4px; background-color: transparent; color: #fff; box-shadow: 0 0 6px rgba(58, 160, 255, .35); }
.uc-pl-x { background: none; border: 0; color: var(--text-secondary, #a2a2ad); font: inherit; font-size: 16px; line-height: 1; text-box: trim-both cap alphabetic; display: inline-grid; place-items: center; padding: 0 4px; border-radius: 4px; cursor: pointer; }
.uc-pl-x:hover:not(:disabled) { color: var(--text-primary, #efeff1); background: rgba(255, 255, 255, .07); }
.uc-pl-x:disabled { opacity: .25; cursor: default; }
.uc-pl-add {
  flex: none; position: relative; box-sizing: border-box; width: 38px; height: 26px; padding: 0; border-radius: 6px; border: 1px dashed rgba(255, 255, 255, .25); background: none;
  color: var(--text-secondary, #a2a2ad); font-size: 0; cursor: pointer;
}
/* Plus kreslený dvěma proužky přesně doprostřed (glyf „+“ sedí ve fontu níž než střed boxu). */
.uc-pl-add::before, .uc-pl-add::after { content: ''; position: absolute; inset: 0; margin: auto; background: currentColor; border-radius: 1px; width: 10px; height: 2px; }
.uc-pl-add::after { width: 2px; height: 10px; }
.uc-pl-add:hover:not(:disabled) { color: var(--text-primary, #efeff1); border-color: rgba(255, 255, 255, .45); }
.uc-pl-add:disabled { opacity: .3; cursor: default; }

/* Přepínače (Nová | Historie, Kde, Hlasování, Váha) s posuvným zvýrazněním (core/slide-indicator.js). */
.uc-pl-seg { display: inline-flex; border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; font-size: 12px; font-weight: 700; }
.uc-pl-seg button { position: relative; z-index: 1; padding: 4px 10px; border: 0; background: none; color: var(--text-secondary, #a2a2ad); font: inherit; cursor: pointer; transition: color .2s ease; }
.uc-pl-seg button.on { color: var(--uc-poll-tx); }
.uc-pl-seg button:disabled { opacity: .45; cursor: default; pointer-events: none; }
.uc-pl-seg button:focus-visible, .uc-pl-weight button:focus-visible, .uc-pl-chk:focus-visible { outline: 2px solid var(--uc-poll); outline-offset: 2px; }
.uc-pl-viewseg { display: flex; width: 100%; margin-bottom: -2px; }
.uc-pl-viewseg > button { flex: 1; text-align: center; }
.uc-slide-ind.uc-slide-ind--pl { border: 0; border-radius: 7px; background: rgba(58, 160, 255, .18); }
.uc-pl-weight { display: flex; gap: 4px; }
.uc-pl-weight button {
  position: relative; z-index: 1; width: 34px; padding: 3px 0; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .16); background: none;
  color: var(--text-secondary, #a2a2ad); font: inherit; font-size: 12px; font-weight: 700; text-align: center; cursor: pointer; transition: color .2s ease;
}
.uc-pl-weight button.on { color: var(--accent-light, #ffd93d); }
.uc-slide-ind.uc-slide-ind--plw { border: 1px solid rgba(255, 170, 40, .7); border-radius: 6px; background: transparent; box-shadow: 0 0 8px rgba(255, 140, 0, .18); }

/* Řádek ikon „Kde“ s vlastními tooltipy. */
.uc-pl-where { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.uc-pl-where:empty { display: none; }
.uc-pl-wp {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); font-size: 12px; cursor: help; outline: none;
}
.uc-pl-wp.cheat { border-color: rgba(255, 179, 71, .5); background: rgba(255, 179, 71, .08); color: #ffb347; }
.uc-pl-wp.off .uc-pl-pi { opacity: .45; }
.uc-pl-wcheat { font-weight: 800; }
.uc-pl-wst { display: inline-flex; margin-left: -9px; margin-top: 9px; }
.uc-pl-wst svg { width: 11px; height: 11px; filter: drop-shadow(0 0 1px #000); }
.uc-pl-wtip {
  position: absolute; left: 0; top: calc(100% + 7px); z-index: 5; width: max-content; max-width: 240px; padding: 8px 10px; border-radius: 8px;
  background: #26262c; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 10px 24px rgba(0, 0, 0, .55); color: var(--text-primary, #efeff1);
  font-size: 12px; font-weight: 400; line-height: 1.4; white-space: normal; text-align: left; opacity: 0; transform: translateY(-3px); pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
}
.uc-pl-wtip::before {
  content: ''; position: absolute; left: 14px; top: -5px; width: 8px; height: 8px; background: #26262c;
  border-left: 1px solid rgba(255, 255, 255, .14); border-top: 1px solid rgba(255, 255, 255, .14); transform: rotate(45deg);
}
.uc-pl-wp:hover, .uc-pl-wp:focus-visible { z-index: 20; }
.uc-pl-wp:hover .uc-pl-wtip, .uc-pl-wp:focus-visible .uc-pl-wtip { opacity: 1; transform: none; }
/* Poloha tooltipu v panelu dopočítá poll-ui.js (clampWtip: --wtip-x posun, --wtip-arrow šipka); tady jen výchozí. */
.uc-pl-where .uc-pl-wtip { left: var(--wtip-x, 0px); }
.uc-pl-where .uc-pl-wtip::before { left: var(--wtip-arrow, 14px); }

/* Stav nativních anket u běžící ankety v Historii. */
.uc-pl-native { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.uc-pl-native-st { display: flex; align-items: center; gap: 6px; font-size: 11px; opacity: .8; }
.uc-pl-native-st .uc-pl-pi { width: 13px; height: 13px; }
.uc-pl-native-st.failed { color: #ff6b6b; opacity: 1; }

/* Logo platformy (Kde, ukázka hlasu v chatu). */
.uc-pl-pi { flex: none; display: inline-block; width: 16px; height: 16px; background: center / contain no-repeat; }
.uc-pl-pi--twitch { background-image: url('icons/platform/twitch.svg'); }
.uc-pl-pi--youtube { background-image: url('icons/platform/youtube.svg'); }
.uc-pl-pi--kick { background-image: url('icons/platform/kick.svg'); }

/* Zaškrtávátko Chat + jednořádková ukázka hlasu zprávou. */
.uc-pl-chk { display: flex; align-items: flex-start; gap: 7px; padding: 0; border: 0; background: none; color: var(--text-primary, #efeff1); font: inherit; font-size: 12.5px; font-weight: 600; text-align: left; cursor: pointer; }
.uc-pl-box { flex: none; width: 15px; height: 15px; margin-top: 1px; box-sizing: border-box; border-radius: 4px; border: 1.5px solid rgba(255, 255, 255, .35); display: grid; place-items: center; font-size: 11px; line-height: 1; text-box: trim-both cap alphabetic; color: #000; }
.uc-pl-chk[aria-pressed="true"] .uc-pl-box { background: var(--accent, #ff8c00); border-color: var(--accent, #ff8c00); }
.uc-pl-hint { font-weight: 400; color: var(--text-secondary, #a2a2ad); font-size: 12px; }
.uc-pl-pvw[hidden] { display: none; }
.uc-pl-pv {
  display: flex; align-items: baseline; gap: 6px; padding: 8px 9px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .09);
  background: #0e0e10; font-size: 13px; white-space: nowrap; overflow: hidden;
}
.uc-pl-pv .uc-pl-pi { width: 14px; height: 14px; transform: translateY(2px); }
.uc-pl-ts { color: #6e6e78; font-size: 11px; }
.uc-pl-un { font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.uc-pl-pv .tx { margin-left: -6px; }

.uc-pl-err { color: #ff8a8a; font-size: 12px; font-weight: 700; }
.uc-pl-err[hidden], .uc-pl-full[hidden] { display: none; }
.uc-pl-go { align-self: flex-start; }

/* Anketa v2 — formulář: řádek Typ (tři volby na jeden řádek), vysvětlení typu, „Hlasovat pro sebe“, prvky jen pro
   Možnosti (Kde, Chat, váha) se schovávají atributem hidden i přes display:flex. */
.uc-pl-form [hidden], .uc-pl-opts[hidden] { display: none !important; }
.uc-pl-seg[data-seg="kind"] button { padding: 4px 8px; }
.uc-pl-addlbl { margin-left: -2px; cursor: default; }
.uc-pl-vhint { font-size: 12px; color: var(--text-secondary, #a2a2ad); border: 1px solid rgba(58, 160, 255, .35); background: rgba(58, 160, 255, .08); border-radius: 8px; padding: 7px 9px; display: flex; gap: 8px; align-items: flex-start; }
.uc-pl-vhint svg { flex: none; width: 16px; height: 16px; color: var(--uc-poll-tx); margin-top: 1px; }
.uc-pl-vhint b { color: var(--text-primary, #efeff1); }

/* Historie */
.uc-pl-sech { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary, #a2a2ad); }
.uc-pl-sech::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, .08); }
.uc-pl-sech.gap { margin-top: 8px; }
.uc-pl-hlist { display: flex; flex-direction: column; gap: 6px; }
.uc-pl-hi { display: flex; flex-direction: column; gap: 3px; padding: 7px 9px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .09); background: var(--bg-tertiary, #1f1f23); }
.uc-pl-hi.live { border-color: rgba(58, 160, 255, .45); background: linear-gradient(180deg, rgba(58, 160, 255, .10), rgba(58, 160, 255, .03)); }
.uc-pl-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font-size: 12.5px; font-weight: 700; }
.uc-pl-hq { min-width: 0; overflow-wrap: anywhere; }
.uc-pl-left { flex: none; color: var(--uc-poll-tx); font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.uc-pl-top .uc-pl-mini { flex: none; }
.uc-pl-sub { font-size: 11.5px; color: var(--text-secondary, #a2a2ad); }
.uc-pl-win { font-size: 11.5px; font-weight: 800; color: var(--text-secondary, #a2a2ad); }
.uc-pl-hacts { display: flex; gap: 6px; margin-top: 4px; }
.uc-pl-empty { font-size: 12px; color: var(--text-secondary, #a2a2ad); }
/* Anketa v2 — běžící karta: odpočet + ⤢ vpravo nahoře, řádky odpovědí (.uc-an-rows, answers.css), chyba pod tlačítky;
   ve velkém okně tlačítka přišpendlená dole. */
.uc-pl-rt { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.uc-pl-natw:empty, .uc-pl-win[hidden] { display: none; }
.uc-pl-cerr { color: #ff8a8a; font-size: 12px; font-weight: 700; margin-top: 4px; }
.uc-pl-cerr[hidden] { display: none; }
.uc-an-pop .uc-pl-hacts { margin-top: 0; }
.uc-an-pop .uc-poll-mb { font-size: 12.5px; padding: 5px 11px; }

@media (prefers-reduced-motion: reduce) {
  .uc-pl-view.uc-pl-enter { animation: none; }
  .uc-pl-n, .uc-pl-wtip, .uc-pl-seg button, .uc-pl-weight button { transition: none; }
}
