/* FB & IG odpovede — Ficek & Partners */
:root {
  --accent: #1F3864;
  --accent-hover: #2a4a82;
  --bg: #f6f7fb;
  --card: #ffffff;
  --border: #e4e8f0;
  --text: #17202e;
  --muted: #6b7486;
  --fb: #1877F2;
  --ig: #A855F7;
  --ok: #1a7f37;
  --err: #b42318;
  --warn: #92600a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 30, 54, .05), 0 6px 20px rgba(16, 30, 54, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); }
h1 { font-size: 1.5rem; margin: .2rem 0 .6rem; }
h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
code { background: #eef1f6; padding: .1em .35em; border-radius: 4px; font-size: .9em; }

/* ---------- topbar ---------- */
.topbar { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.topbar-in {
  max-width: 1280px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { color: #fff; text-decoration: none; font-weight: 600; padding: 12px 0; font-size: 1rem; }
.brand span { margin-left: 4px; }
.topbar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.topbar nav a {
  color: #dbe4f3; text-decoration: none; padding: 12px 12px; display: inline-block;
  border-bottom: 3px solid transparent; transition: color .15s, border-color .15s;
}
.topbar nav a:hover { color: #fff; }
.topbar nav a.active { color: #fff; border-bottom-color: #fff; font-weight: 600; }
.topbar nav a.logout { color: #f6c9c2; }
.topbar nav a.logout:hover { color: #fff; }

/* ---------- layout ---------- */
.wrap { max-width: 1280px; width: 100%; margin: 0 auto; padding: 20px 16px; flex: 1; }
.wrap-center { display: flex; align-items: center; justify-content: center; }
.foot {
  text-align: center; color: var(--muted); font-size: .8rem; padding: 14px;
  border-top: 1px solid var(--border);
}
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 18px;
}
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.nowrap { white-space: nowrap; }
.wrap-anywhere { overflow-wrap: anywhere; }
.backlink { text-decoration: none; font-weight: 500; }

/* ---------- forms ---------- */
label { display: block; margin: 0 0 12px; font-weight: 500; font-size: .9rem; }
.inline-label { display: inline-block; }
input[type=text], input[type=email], input[type=password], input[type=search],
input[type=file], textarea, select {
  display: block; width: 100%; margin-top: 4px; padding: 9px 11px;
  border: 1px solid var(--border); border-radius: 8px; font: inherit; background: #fff;
  color: var(--text);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(31, 56, 100, .25); border-color: var(--accent);
}
input[readonly] { background: #f1f4f8; color: var(--muted); }
textarea { resize: vertical; }
details summary { cursor: pointer; color: var(--accent); margin-bottom: 8px; }

/* ---------- ikony ---------- */
.ico { width: 16px; height: 16px; vertical-align: -3px; flex: none; }
.btn .ico { margin-right: 2px; }
.btn-link .ico, .tag-stav .ico, .tag-koncept .ico { width: 13px; height: 13px; vertical-align: -2px; }
.tabs .ico { width: 15px; height: 15px; vertical-align: -2.5px; }
.list-section .ico { width: 13px; height: 13px; vertical-align: -2px; }
.empty-ico { margin: 6px auto 10px; }
.empty-ico .ico { width: 44px; height: 44px; color: #c3cbd9; stroke-width: 1.6; }
.empty-ico.empty-ok .ico { color: #2f9e57; }
.ph-icon .ico { width: 46px; height: 46px; color: #c3cbd9; stroke-width: 1.5; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; color: var(--text); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
  text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s, transform .08s;
  box-shadow: 0 1px 2px rgba(16, 30, 54, .05);
}
.btn:hover { background: #f4f6fa; border-color: #c9d2e0; box-shadow: 0 2px 8px rgba(16, 30, 54, .08); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:focus-visible { outline: 3px solid rgba(31, 56, 100, .25); outline-offset: 1px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-warn { background: #fff8e6; border-color: #ecd9a0; color: var(--warn); }
.btn-warn:hover { background: #fdefc8; }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.inline-form { display: inline-block; margin: 0; }

/* ---------- flash ---------- */
.flash {
  padding: 11px 14px; border-radius: 8px; margin: 0 0 14px; border: 1px solid;
  font-size: .92rem;
}
.flash-ok { background: #eaf7ee; border-color: #bfe3cb; color: var(--ok); }
.flash-err { background: #fdeceb; border-color: #f2c1bc; color: var(--err); }
.flash-info { background: #edf3fd; border-color: #c8d9f2; color: #1e4e8c; }

/* ---------- badges ---------- */
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .72rem;
  font-weight: 600; letter-spacing: .02em; border: 1px solid transparent; vertical-align: middle;
}
.b-fb { background: var(--fb); color: #fff; }
.b-ig { background: var(--ig); color: #fff; }
.b-fb.b-out { background: #fff; color: var(--fb); border-color: var(--fb); }
.b-ig.b-out { background: #fff; color: var(--ig); border-color: var(--ig); }
.b-ine { background: #e8ecf3; color: #44506a; }
.s-nove { background: #fdeceb; color: var(--err); }
.s-precitane { background: #eef0f4; color: var(--muted); }
.s-navrh { background: #fff4d6; color: var(--warn); }
.s-odoslane { background: #eaf7ee; color: var(--ok); }
.s-caka_klient { background: #edf3fd; color: #1e4e8c; }
.s-uzavrete { background: #eef0f4; color: var(--muted); }
.s-eskalovane { background: #f6e8fd; color: #7b2ea3; }

/* ---------- auth ---------- */
.auth-card { max-width: 460px; width: 100%; margin: 40px auto; }
/* Facebook Login — dokumentácia Mety odporúča veľké obdĺžnikové tlačidlo pred ostatnými možnosťami */
.btn-fb { display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #1877F2; border-color: #1877F2; color: #fff; }
.btn-fb:hover { background: #166FE5; border-color: #166FE5; color: #fff; }
.btn-fb svg { flex: 0 0 auto; }
.auth-card h1 { text-align: center; }

/* ---------- inbox ---------- */
.inbox-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.inbox-head h1 { margin: 0; margin-right: auto; }
.ai-counter { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted, #64748b);
              background: #fff; border: 1px solid var(--border, #e5e9f0); border-radius: 999px; padding: 6px 14px; }
.ai-counter b { color: #7c3aed; }
.ai-counter svg { width: 15px; height: 15px; }
.inbox { display: flex; gap: 16px; align-items: flex-start; min-height: 60vh; }
.pane { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.pane-list { width: 380px; flex: 0 0 380px; display: flex; flex-direction: column; overflow: hidden; position: sticky; top: 16px; max-height: calc(100vh - 140px); }
.pane-thread { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.tabs { display: flex; border-bottom: 1px solid var(--border); background: #fafbfd; border-radius: var(--radius) var(--radius) 0 0; }
.tab {
  flex: 1; text-align: center; padding: 12px 6px; text-decoration: none; color: var(--muted);
  font-weight: 600; font-size: .88rem; border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--accent); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); background: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 12px 4px; }
.chip {
  font-size: .76rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1px solid transparent;
  color: var(--muted); text-decoration: none; background: #eef1f7;
  transition: background .15s, color .15s;
}
.chip b { font-weight: 800; }
.chip:hover { background: #e2e8f2; color: var(--accent); }
.chip.active { background: var(--accent); color: #fff; }

.searchbox { padding: 8px 12px; }
.searchbox input { margin-top: 0; }

.conv-list { overflow-y: auto; flex: 1; }

/* priebeh „Načítať nové" */
.sync-priebeh {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 10px 14px; margin: 0 0 12px; font-size: .86rem;
}
.sync-priebeh.ok { border-color: #bfe3c9; background: #f3fbf5; }
.sync-priebeh.err { border-color: #f2c4c4; background: #fdf3f3; color: #8a1f1f; }
.sp-hlava { display: flex; gap: 8px; align-items: center; }
.sp-pocet { margin-left: auto; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.sp-bar { height: 6px; background: #e6ebf3; border-radius: 999px; overflow: hidden; margin: 8px 0 6px; }
.sp-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s ease; }
.sp-bar.neurcity .sp-fill { animation: sp-beh 1.2s ease-in-out infinite; }
@keyframes sp-beh { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.sp-nove { color: var(--muted); font-size: .8rem; margin-top: 2px; }

/* počet v zozname a plávajúca pozícia pri posúvaní („37 / 2 115") */
.tab-count-muted { background: #dfe5ef; color: var(--muted); }
.tab.active .tab-count-muted { background: var(--accent); color: #fff; }
.list-count { padding: 2px 14px 8px; font-size: .76rem; color: var(--muted); font-weight: 600; }
.list-pos {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 6;
  background: rgba(15, 23, 42, .82); color: #fff; font-size: .8rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; pointer-events: none; font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.conv-item {
  display: block; padding: 10px 14px; border-top: 1px solid var(--border);
  text-decoration: none; color: inherit; transition: background .12s;
}
.conv-item:hover { background: #f4f7fb; }
.conv-item.active { background: #eaf0fa; box-shadow: inset 3px 0 0 var(--accent); }
.conv-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.conv-meno { font-weight: 600; }
.conv-time { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.conv-snippet { color: var(--muted); font-size: .84rem; margin: 2px 0 6px; }
/* príspevok, pod ktorým komentár visí — pri FB komentároch nahrádza chýbajúce meno */
.conv-post { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: .76rem;
  margin: 1px 0 2px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-post svg { width: 12px; height: 12px; flex: 0 0 auto; }
/* kontrola citácií zákonov pod konceptom */
.kontrola { margin: 6px 0 10px; padding: 8px 12px; border-radius: 6px; font-size: .86rem; border: 1px solid; }
.kontrola summary { cursor: pointer; font-weight: 600; }
.kontrola summary svg { width: 14px; height: 14px; vertical-align: -2px; }
.kontrola ul { margin: 6px 0 0; padding-left: 18px; }
.kontrola li { margin: 4px 0; }
.kc-ok    { background: #eef8ef; border-color: #b9dfbf; color: #1f5a2a; }
.kc-neist { background: #fff7e6; border-color: #f2d59a; color: #6b4a00; }
.kc-zle   { background: #fdeeee; border-color: #f0b4b4; color: #7a1f1f; }
.kc-znenie { margin-top: 4px; font-weight: 400; }
.kc-znenie summary { font-weight: 400; text-decoration: underline; font-size: .8rem; }
.kc-znenie div { margin: 4px 0; padding: 6px 8px; background: rgba(255,255,255,.6); border-radius: 4px; color: #222; }
.kc-znenie a { font-size: .8rem; }
.thread-post { display: inline-flex; align-items: center; gap: 5px; }
.thread-post svg { width: 13px; height: 13px; }
.conv-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.empty { padding: 24px 16px; color: var(--muted); text-align: center; font-size: .9rem; }

/* ---------- thread ---------- */
.thread { display: flex; flex-direction: column; }
.thread-solo { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.thread-head { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.thread-head h2 { margin: 0 0 4px; }
.thread-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.src-link { font-size: .8rem; text-decoration: none; }
.thread-placeholder { text-align: center; padding: 80px 20px; color: var(--muted); }
.ph-icon { font-size: 2.6rem; margin-bottom: 8px; }

.bubbles { padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #fafbfd; }
.m-row { display: flex; }
.m-row.right { justify-content: flex-end; }
.m-bubble { max-width: 76%; padding: 10px 14px; border-radius: 14px; box-shadow: var(--shadow); }
.m-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.m-in { background: #eceff4; border-bottom-left-radius: 4px; }
.m-out { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.m-out .m-time { color: #c8d4e8; }
.m-draft {
  background: #fffbe8; border: 2px dashed #e3c85e; color: #4c4426; border-bottom-right-radius: 4px;
}
.draft-label {
  display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .08em;
  background: #e3c85e; color: #3f3510; border-radius: 4px; padding: 1px 7px; margin-bottom: 6px;
}
.m-time {
  font-size: .72rem; color: var(--muted); margin-top: 5px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 3px 6px;
}
.m-time .tag-stav { padding: 0 8px; line-height: 1.7; }
.m-time .eye-ico { width: 14px; height: 14px; vertical-align: 0; }
.m-time .btn-link { font-size: .72rem; }
.m-meta { text-align: center; color: var(--muted); font-size: .8rem; padding: 2px 0; }

.action-panel { border-top: 1px solid var(--border); padding: 14px 18px; }
.action-panel textarea { width: 100%; margin: 0 0 10px; overflow: hidden; min-height: 110px; resize: none; }
.action-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.done-btn-lg { width: 38px; height: 38px; flex: 0 0 auto; }
.done-btn-lg svg { width: 18px; height: 18px; }
.thread-msg { margin-bottom: 10px; padding: 10px 13px; border-radius: 8px; font-size: .9rem; border: 1px solid; }
.thread-msg.ok { background: #eaf7ee; border-color: #bfe3cb; color: var(--ok); }
.thread-msg.err { background: #fdeceb; border-color: #f2c1bc; color: var(--err); }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.table th, .table td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #f7f9fc; }

.filter-form { margin-bottom: 12px; }
.test-result { font-size: .88rem; }
.test-result.ok { color: var(--ok); }
.test-result.err { color: var(--err); }

/* späť na zoznam — len mobil */
.back-mobile { display: none; }

/* ---------- mobil: zoznam a detail ako Gmail ---------- */
@media (max-width: 900px) {
  /* V stĺpcovom layoute nesmie dlhé ID alebo kontext určovať šírku detailu. */
  .inbox { flex-direction: column; align-items: stretch; }
  .pane-thread { width: 100%; max-width: 100%; }
  .thread, .thread-head, .bubbles { min-width: 0; }
  .thread-meta > .muted.small:not(.thread-post),
  .thread-post { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .thread-post svg { flex: 0 0 auto; }
  .m-meta { overflow-wrap: anywhere; }

  /* zoznam: celá obrazovka, roluje sa celá stránka */
  .pane-list { width: 100%; flex: none; position: static; max-height: none; overflow: visible; }
  .conv-list { overflow: visible; flex: none; }
  .list-pos { position: fixed; bottom: 18px; }

  /* bez otvorenej konverzácie sa detail vôbec nezobrazuje */
  .inbox:not(.conv-open) .pane-thread { display: none; }

  /* otvorená konverzácia = detail na celú obrazovku, zoznam skrytý */
  .inbox.conv-open .pane-list { display: none; }
  .inbox.conv-open .back-mobile {
    display: block; padding: 13px 16px; font-weight: 700; text-decoration: none;
    color: var(--accent); border-bottom: 1px solid var(--border); background: #f8fafc;
    position: sticky; top: 0; z-index: 5;
  }

  .conv-item { padding: 13px 14px; }
  .m-bubble { max-width: 92%; }
  .action-btns .btn { flex: 1 1 auto; }
  /* mobil: modré Odoslať + zelená fajka vedľa seba v jednom riadku */
  .action-btns #btn-send { flex: 1 1 calc(100% - 50px); }
  .action-btns .done-btn-lg { width: 42px; height: 42px; }

  /* mobil: tabuľky (Audit a pod.) — riadky pod sebou, nič nepretečie */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table td { padding: 2px 0; border-bottom: none; overflow-wrap: anywhere; }
  .table tr { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .table tr:last-child { border-bottom: none; }
  .table td.nowrap { white-space: normal; }
  .table .badge { white-space: normal; overflow-wrap: anywhere; display: inline-block; }
  .topbar-in { padding: 0 10px; }
  .topbar nav a { padding: 10px 8px; font-size: .9rem; }
}

/* composer odpovede (štýl Gmail) */
.reply-collapsed { display: flex; gap: 8px; flex-wrap: wrap; }
.reply-collapsed[hidden], #composer[hidden] { display: none; }
.composer-hint {
  font-size: .82rem; color: #7a6a1f; background: #fffbe8; border: 1px solid #e3c85e;
  border-radius: 6px; padding: 6px 10px; margin-bottom: 8px; display: inline-block;
}

/* ---------- pracovná fronta: sekcie, neprečítané, schválenie, swipe ---------- */
.tab-count { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .72rem; margin-left: 4px; }
.chip-sep { flex-basis: 100%; height: 0; }

.list-section {
  padding: 9px 14px 5px; font-size: .7rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); background: #f6f8fb; border-top: 1px solid var(--border);
}
.list-section b { color: var(--accent); }

.conv-item { background: #fff; }
.conv-item.unread .conv-meno { font-weight: 800; color: #16233a; }
.conv-item.unread .conv-snippet { color: #33415e; font-weight: 500; }
.dot-unread { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 1px; }

.tag-koncept {
  font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px;
  background: #fffbe8; color: #7a6a1f; border: 1px solid #e3c85e;
}

.btn-approve {
  border: none; background: #2f9e57; color: #fff; border-radius: 999px;
  font-size: .74rem; font-weight: 700; padding: 4px 12px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  box-shadow: 0 1px 3px rgba(47, 158, 87, .35); transition: background .15s, box-shadow .15s;
}
.btn-approve .ico { width: 12px; height: 12px; }
.btn-approve:hover { background: #278a4b; box-shadow: 0 2px 8px rgba(47, 158, 87, .4); }
.btn-approve:disabled { opacity: .6; cursor: default; }

.conv-wrap { position: relative; overflow: hidden; }
.conv-wrap.collapsing { transition: height .25s ease; }
/* farebný podklad počas ťahania (ako Gmail) */
.conv-wrap.dragging { background: #e8f0fe; }
.conv-wrap.dragging::before {
  content: '☰ Možnosti'; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: space-between; padding: 0 16px; color: var(--accent); font-weight: 700; font-size: .85rem;
}
.conv-wrap.dragging .conv-item { position: relative; z-index: 1; }

/* bottom sheet s akciami (ako Gmail „Presunúť do…“) */
#sheet-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 60;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 20px 20px 22vh; /* dialóg sedí v dolnej tretine obrazovky (~30 % od spodku) */
}
#sheet-backdrop[hidden] { display: none; }
#action-sheet {
  width: 100%; max-width: 340px; background: #fff; border-radius: 16px; padding: 10px 12px 12px;
  transform: scale(.9); opacity: 0; transition: transform .16s ease, opacity .16s ease;
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
#action-sheet.open { transform: none; opacity: 1; }
.sheet-grip { display: none; }
.sheet-title { font-weight: 800; padding: 2px 10px 10px; font-size: 1rem; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.sheet-item {
  display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 14px 10px; font: inherit; font-size: .98rem; cursor: pointer; border-radius: 10px;
}
.sheet-item:active { background: #eef2f8; }
.sheet-item:disabled { opacity: .55; }
.si-approve { font-weight: 800; color: #1d7a3d; }
.sheet-cancel { color: var(--muted); border-top: 1px solid var(--border); border-radius: 0; margin-top: 6px; text-align: center; }

/* štítky stavu komentára (skrytý / viditeľný / vymazaný) */
.tag-stav { font-size: .74rem; padding: 1px 8px; border-radius: 999px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.tag-hid { background: #fdeceb; color: #b3261e; border: 1px solid #f2c1bc; }
.tag-vis { background: #eaf7ee; color: #1d7a3d; border: 1px solid #bfe3cb; }
.tag-del { background: #fdeceb; color: #b3261e; border: 1px solid #f2c1bc; }

/* oko viditeľnosti komentára */
.eye-ico { width: 17px; height: 17px; vertical-align: -3px; }
.eye-red { color: #d3302f; }
.eye-green { color: #1d9a4b; }
.conv-badges .eye-ico { width: 19px; height: 19px; }
.eye-btn { background: none; border: none; padding: 0 2px; cursor: pointer; line-height: 1; }
.eye-btn:hover .eye-ico { transform: scale(1.15); }
.eye-btn:disabled { opacity: .5; cursor: default; }
/* inline úprava vlastného komentára vo vlákne */
.m-edit-box { margin-top: 6px; }
.m-edit-ta { width: 100%; min-height: 70px; border: 1px solid var(--border, #d6dce6); border-radius: 10px;
             padding: 8px 10px; font: inherit; resize: vertical; box-sizing: border-box; background: #fff; color: #1e293b; }
.m-edit-row { display: flex; gap: 8px; margin-top: 6px; }
.btn-sm { padding: 5px 12px; font-size: .82rem; }

/* prepínač jazyka v hornej lište (SK / EN) */
.topbar nav a.lang-switch { font-size: .78rem; font-weight: 700; letter-spacing: .04em; opacity: .75; }
.topbar nav a.lang-switch:hover { opacity: 1; }

/* príloha od klienta vo vlákne */
.m-priloha { display: block; margin-top: 8px; }
.m-priloha img { max-width: 260px; max-height: 320px; border-radius: 10px; display: block; border: 1px solid var(--border, #e5e9f0); }
.m-priloha-subor { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--border, #e5e9f0);
                   border-radius: 10px; background: #fff; font-size: .85rem; }
.m-priloha-popis { margin-top: 6px; font-size: .82rem; color: #475569; }
.m-priloha-popis summary { cursor: pointer; color: #2563eb; }
.m-priloha-popis div { margin-top: 4px; white-space: pre-wrap; }

.done-btn { background: none; border: 1.5px solid #16a34a; color: #16a34a; border-radius: 50%;
            width: 22px; height: 22px; padding: 0; cursor: pointer; line-height: 1;
            display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.done-btn svg { width: 13px; height: 13px; }
.done-btn:hover { background: #16a34a; color: #fff; }
.done-btn:disabled { opacity: .5; cursor: default; }
.tag-btn { cursor: pointer; font: inherit; font-size: .74rem; }
.tag-btn:hover { filter: brightness(.95); }
.tag-btn:disabled { opacity: .6; cursor: default; }

/* banner s novými aktivitami */
#news-banner {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; border: none; cursor: pointer;
  padding: 11px; font: inherit; font-weight: 700; font-size: .86rem;
  background: #e8f0fe; color: var(--accent); border-bottom: 1px solid var(--border);
  transition: background .15s;
}
#news-banner:hover { background: #dbe7fb; }

/* donačítavanie zoznamu */
#list-sentinel { display: flex; justify-content: center; padding: 14px; color: var(--muted); }

/* točiaci sa indikátor práce (generovanie AI, odosielanie…) */
.spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(120, 130, 150, .35); border-top-color: currentColor;
  border-radius: 50%; vertical-align: -2px;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* tlačidlo-odkaz (👍 na komentár) */
.btn-link { background: none; border: none; padding: 0; color: #1a56db; cursor: pointer; font: inherit; }
.btn-link:hover { text-decoration: underline; }
.btn-link:disabled { color: #94a3b8; cursor: default; text-decoration: none; }
.btn-ban { color: #b3261e; }
.btn-link-light { color: #cfe0f5; }
.btn-link-light:hover { color: #fff; }
