/* PandaChat – administrácia. Dizajnový systém: Inter, jeden akcent (indigo), tmavý bočný panel, svetlý obsah. */
:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f9fafc;
  --border: #e5e7ef;
  --border-strong: #d5d8e3;
  --text: #0f1424;
  --text-2: #3f4457;
  --muted: #6b7185;
  --muted-2: #9aa0b4;
  --brand: #4f46e5;
  --brand-600: #4338ca;
  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --sb-bg: #0f1222;
  --sb-bg-2: #171b31;
  --sb-text: #b6bbd4;
  --sb-muted: #7c81a0;
  --sb-active: #ffffff;
  --sb-hover: rgba(255, 255, 255, .06);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 10px 30px rgba(16, 24, 40, .12);
  --red: #dc2626; --red-50: #fef2f2;
  --orange: #ea580c; --orange-50: #fff7ed;
  --amber: #d97706; --amber-50: #fffbeb;
  --green: #16a34a; --green-50: #f0fdf4;
  --blue: #2563eb; --blue-50: #eff6ff;
  --teal: #0d9488; --teal-50: #f0fdfa;
  --purple: #7c3aed; --purple-50: #f5f3ff;
  --gray: #6b7280; --gray-50: #f3f4f6;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-font-size: .875rem;
  --bs-body-color: var(--text);
  --bs-body-bg: var(--bg);
  --bs-link-color: var(--brand);
  --bs-link-hover-color: var(--brand-600);
  --bs-border-color: var(--border);
  --bs-primary: var(--brand);
  --bs-primary-rgb: 79, 70, 229;
}

html { font-size: 16px; }
body { font-family: var(--bs-body-font-family); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; letter-spacing: -.005em; }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 { font-weight: 650; letter-spacing: -.02em; color: var(--text); }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: .8125em; }
code { color: var(--purple); background: var(--purple-50); padding: .05rem .3rem; border-radius: 4px; }
pre code { color: inherit; background: transparent; padding: 0; }
.text-muted, .text-secondary { color: var(--muted) !important; }
.small-caps { font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--muted); }
.fw-semibold { font-weight: 600 !important; }
.min-w-0 { min-width: 0; }
.form-control, .form-select { border-color: var(--border-strong); border-radius: var(--radius-sm); font-size: .875rem; padding: .5rem .75rem; color: var(--text); }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.form-control-sm, .form-select-sm { padding: .3rem .6rem; font-size: .8125rem; }
.form-control-color { padding: .25rem; width: 3rem; }
.form-label { font-weight: 500; color: var(--text-2); margin-bottom: .35rem; }
.form-text { color: var(--muted); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: 0 0 0 3px var(--brand-100); border-color: var(--brand); }
.form-switch { padding-left: 3.2em; }
.form-switch .form-check-input { width: 2.4em; height: 1.3em; margin-left: -3.2em; margin-top: .1em; }
.form-switch .form-check-label { padding-left: .1rem; }
.form-range::-webkit-slider-thumb { background: var(--brand); }
.form-range::-moz-range-thumb { background: var(--brand); }
.input-group-text { border-color: var(--border-strong); background: var(--surface-2); color: var(--muted); border-radius: var(--radius-sm); }
.btn { border-radius: var(--radius-sm); font-weight: 500; font-size: .875rem; padding: .5rem .9rem; }
.btn-sm { padding: .3rem .65rem; font-size: .8125rem; }
.btn-lg { padding: .65rem 1.25rem; font-size: .95rem; border-radius: 10px; }
.btn-primary { background: var(--brand); border-color: var(--brand); }
.btn-primary:hover, .btn-primary:focus { background: var(--brand-600); border-color: var(--brand-600); }
.btn-outline-primary { color: var(--brand); border-color: var(--brand-100); background: var(--surface); }
.btn-outline-primary:hover, .btn-outline-primary:focus { background: var(--brand-50); color: var(--brand-600); border-color: var(--brand); }
.btn-outline-secondary { border-color: var(--border-strong); color: var(--text-2); background: var(--surface); }
.btn-outline-secondary:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.btn-outline-danger { color: var(--red); border-color: #fecaca; background: var(--surface); }
.btn-outline-danger:hover { background: var(--red-50); color: #b91c1c; border-color: #fca5a5; }
.btn-light { background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.btn-light:hover { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.btn-ghost { background: transparent; border: 1px solid transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--gray-50); color: var(--text); }
.btn-icon { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.btn-danger-soft { background: var(--red-50); color: var(--red); border: 1px solid #fecaca; }
.btn-danger-soft:hover { background: #fee2e2; color: #b91c1c; }
.btn-link { color: var(--brand); font-weight: 500; }
.btn-group > .btn { font-weight: 500; }
.alert { border-radius: var(--radius); font-size: .875rem; }
.alert-success { background: var(--green-50); color: #166534; border-color: #bbf7d0; }
.alert-danger { background: var(--red-50); color: #991b1b; border-color: #fecaca; }
.alert-info { background: var(--blue-50); color: #1e40af; border-color: #bfdbfe; }
.alert-warning { background: var(--amber-50); color: #92400e; border-color: #fde68a; }
.invalid-feedback { font-size: .8rem; }
.badge { font-weight: 600; font-size: .7rem; padding: .28rem .55rem; border-radius: 999px; letter-spacing: 0; }
.badge.text-bg-primary { background: var(--brand-50) !important; color: var(--brand) !important; }
.badge.text-bg-secondary { background: var(--gray-50) !important; color: var(--gray) !important; }
.badge.text-bg-success { background: var(--green-50) !important; color: var(--green) !important; }
.badge.text-bg-info { background: var(--blue-50) !important; color: var(--blue) !important; }
.badge.text-bg-warning { background: var(--amber-50) !important; color: var(--amber) !important; }
.badge.text-bg-danger { background: var(--red-50) !important; color: var(--red) !important; }
.badge.text-bg-light { background: var(--surface) !important; color: var(--text-2) !important; border: 1px solid var(--border) !important; }
.dropdown-menu { border-radius: 10px; border-color: var(--border); box-shadow: var(--shadow-lg); font-size: .85rem; padding: .35rem; }
.dropdown-item { border-radius: 6px; padding: .45rem .7rem; }
.dropdown-item:hover { background: var(--surface-2); }
.modal-content { border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.modal-header, .modal-footer { border-color: var(--border); }
.modal-title { font-size: 1rem; font-weight: 650; }
.list-group-item { border-color: var(--border); padding: .75rem 1.1rem; color: var(--text); }
.list-group-item-action:hover { background: var(--surface-2); color: var(--text); }
.accordion-item { border-color: var(--border); }
.accordion-button { font-size: .875rem; font-weight: 500; padding: .85rem 1.1rem; color: var(--text); }
.accordion-button:not(.collapsed) { background: var(--brand-50); color: var(--brand); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 3px var(--brand-100); }
.accordion-body { padding: 1rem 1.1rem; color: var(--text-2); line-height: 1.6; }
.nav-tabs { border-bottom-color: var(--border); }
.nav-tabs .nav-link { color: var(--muted); font-weight: 500; border: 0; border-bottom: 2px solid transparent; padding: .6rem .9rem; margin-bottom: -1px; }
.nav-tabs .nav-link:hover { color: var(--text); border-bottom-color: var(--border-strong); }
.nav-tabs .nav-link.active { color: var(--brand); border-bottom-color: var(--brand); background: transparent; }
hr { border-color: var(--border); opacity: 1; }
details summary { cursor: pointer; }

/* ---------- Bočný panel + hlavný obsah ---------- */
.app { display: flex; min-height: 100vh; }
.sb { width: 248px; flex: 0 0 248px; background: var(--sb-bg); color: var(--sb-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sb a { color: inherit; text-decoration: none; }
.sb-brand { display: flex; align-items: center; gap: .6rem; padding: 1.1rem 1.15rem .9rem; color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: -.02em; }
.sb-brand .mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #6366f1, #a855f7); display: grid; place-items: center; color: #fff; font-size: .95rem; box-shadow: 0 4px 12px rgba(99, 102, 241, .35); }
.sb-nav { padding: 0 .75rem; flex: 1; overflow-y: auto; }
.sb-nav .lbl { font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sb-muted); padding: .9rem .5rem .35rem; font-weight: 600; display: flex; align-items: center; }
.sb-nav .lbl a { margin-left: auto; color: var(--sb-muted); font-size: .7rem; letter-spacing: 0; text-transform: none; font-weight: 500; }
.sb-nav .lbl a:hover { color: #fff; }
.sb-nav a.item { display: flex; align-items: center; gap: .65rem; padding: .55rem .65rem; border-radius: 8px; font-size: .875rem; font-weight: 500; margin-bottom: 2px; transition: background .12s, color .12s; min-width: 0; }
.sb-nav a.item i { font-size: 1.05rem; width: 20px; text-align: center; opacity: .85; flex: 0 0 auto; }
.sb-nav a.item span.t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-nav a.item:hover { background: var(--sb-hover); color: #fff; }
.sb-nav a.item.active { background: rgba(99, 102, 241, .22); color: #fff; }
.sb-nav a.item.active i { opacity: 1; color: #a5b4fc; }
.sb-nav .cnt { margin-left: auto; font-size: .7rem; font-weight: 600; background: rgba(255, 255, 255, .12); color: #fff; border-radius: 999px; padding: .1rem .45rem; min-width: 1.4rem; text-align: center; flex: 0 0 auto; }
.sb-nav .cnt.live { background: var(--red); }
.sb-nav .cnt.on { background: var(--green); }
.sb-nav .cnt.warn { background: var(--amber); color: #fff; }
.sb-nav .bot-av { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; display: inline-grid; place-items: center; font-size: .6rem; font-weight: 700; color: #fff; background: var(--brand); }
.sb-nav a.item.add { color: var(--sb-muted); font-weight: 500; }
.sb-nav a.item.add:hover { color: #fff; }
.sb-user { padding: .75rem; border-top: 1px solid rgba(255, 255, 255, .07); }
.sb-user .who { display: flex; align-items: center; gap: .6rem; padding: .4rem .5rem; border-radius: 8px; min-width: 0; }
.sb-user .who:hover { background: var(--sb-hover); }
.sb-user .avatar { background: #312e81; color: #c7d2fe; }
.sb-user .n { color: #fff; font-size: .82rem; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user .e { color: var(--sb-muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user .dropdown-menu { font-size: .85rem; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 60px; display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-size: 1.05rem; margin: 0; font-weight: 650; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .crumb { color: var(--muted); font-weight: 500; }
.topbar .crumb a { color: var(--muted); }
.topbar .crumb i { margin: 0 .35rem; font-size: .7rem; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.content { padding: 1.5rem; max-width: 1480px; width: 100%; }
.content.fluid { max-width: none; }
.content.flush { padding: 0; max-width: none; }
.content.narrow { max-width: 960px; }
.sb-toggle { display: none; }
/* dostupnosť operátora v hlavičke */
.avail { display: inline-flex; align-items: center; gap: .55rem; padding: .3rem .4rem .3rem .8rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); font-size: .8rem; font-weight: 500; color: var(--text-2); margin: 0; }
.avail .form-check { margin: 0; min-height: 0; padding-left: 2.6em; display: flex; align-items: center; }
.avail .form-check-input { margin-left: -2.6em; width: 2.2em; height: 1.2em; margin-top: 0; cursor: pointer; }
.avail .form-check-label { cursor: pointer; padding-left: 0; }
.presence-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted-2); margin-right: .1rem; vertical-align: 0; flex: 0 0 auto; }
.presence-dot.online { background: var(--green); box-shadow: 0 0 0 3px rgba(22, 163, 74, .2); }
.presence-dot.away { background: var(--amber); box-shadow: 0 0 0 3px rgba(217, 119, 6, .2); }
@media (max-width: 991.98px) {
  .sb { position: fixed; left: -260px; z-index: 1045; transition: left .2s; box-shadow: none; }
  .sb.open { left: 0; box-shadow: var(--shadow-lg); }
  .sb-backdrop { position: fixed; inset: 0; background: rgba(15, 18, 34, .5); z-index: 1040; display: none; }
  .sb-backdrop.show { display: block; }
  .sb-toggle { display: inline-flex; }
  .topbar { padding: 0 1rem; gap: .6rem; }
  .content { padding: 1rem; }
  .avail .lbl { display: none; }
  .avail { padding-left: .6rem; }
}

/* ---------- Karty, KPI, tabuľky ---------- */
.card { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); }
.card-header { background: transparent; border-bottom: 1px solid var(--border); padding: .85rem 1.1rem; font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: .5rem; }
.card-header .sub { color: var(--muted); font-weight: 400; font-size: .8rem; margin-left: auto; }
.card-body { padding: 1.1rem; }
.card-footer { background: var(--surface-2); border-top: 1px solid var(--border); padding: .85rem 1.1rem; border-radius: 0 0 var(--radius) var(--radius); }
.card > .card-header:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.card .card-title-lg { font-size: 1rem; font-weight: 650; margin-bottom: .25rem; }
.card .lead-sm { color: var(--muted); font-size: .84rem; margin-bottom: 1.1rem; line-height: 1.55; }
.card h2.sec { font-size: .95rem; font-weight: 650; margin: 0 0 .85rem; }
.kpi { padding: 1rem 1.1rem; display: block; color: var(--text); transition: border-color .12s, box-shadow .12s; }
a.kpi:hover { text-decoration: none; border-color: var(--brand-100); box-shadow: 0 0 0 3px var(--brand-50); color: var(--text); }
.kpi .k { font-size: .75rem; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: .4rem; }
.kpi .v { font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin-top: .25rem; }
.kpi .s { font-size: .75rem; color: var(--muted); margin-top: .25rem; }
.kpi .v .u { font-size: .9rem; color: var(--muted); font-weight: 500; margin-left: .15rem; }
.table { --bs-table-color: var(--text); font-size: .85rem; margin: 0; }
.table > :not(caption) > * > * { padding: .65rem 1.1rem; border-bottom-color: var(--border); }
.table thead th { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.table tbody tr:last-child td { border-bottom: 0; }
.table-hover tbody tr:hover { background: var(--surface-2); }
.table-sm > :not(caption) > * > * { padding: .4rem .6rem; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty i { font-size: 2.2rem; color: var(--muted-2); display: block; margin-bottom: .6rem; }
.empty h5 { color: var(--text); margin-bottom: .35rem; }
.empty p { max-width: 460px; margin: 0 auto; }
.empty .btn { margin-top: 1rem; }
.tip-card { background: linear-gradient(135deg, #f5f3ff, #eef2ff); border: 1px solid #ddd6fe; border-radius: var(--radius); padding: 1rem 1.1rem; font-size: .84rem; color: #3b0764; line-height: 1.55; }
.tip-card h3, .tip-card .h6 { font-size: .85rem; font-weight: 650; color: #4c1d95; display: flex; align-items: center; gap: .4rem; margin-bottom: .45rem; }
.tip-card h3 i, .tip-card .h6 i { color: var(--purple); }
.tip-card p:last-child, .tip-card ul:last-child { margin-bottom: 0; }
.tip-card ul { padding-left: 1.1rem; }
.tip-card li { margin-bottom: .3rem; }
.tip-card a { color: #5b21b6; text-decoration: underline; }
.tip-card.neutral { background: var(--surface); border-color: var(--border); color: var(--text-2); }
.tip-card.neutral h3, .tip-card.neutral .h6 { color: var(--text); }
.tip-card.neutral h3 i, .tip-card.neutral .h6 i { color: var(--brand); }
.tip-card.neutral a { color: var(--brand); text-decoration: none; }
.tip-card + .tip-card { margin-top: 1rem; }

/* ---------- Avatar, vlajky, štítky ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .85rem; font-weight: 700; flex: 0 0 auto; letter-spacing: 0; object-fit: cover; color: #fff; overflow: hidden; }
.avatar.lg, .avatar.avatar-lg { width: 80px; height: 80px; font-size: 1.7rem; }
.avatar.sm { width: 28px; height: 28px; font-size: .68rem; }
.avatar-initials { color: #fff; }
.hue-0 { background: #e0e7ff; color: #3730a3; } .hue-1 { background: #fce7f3; color: #9d174d; } .hue-2 { background: #dcfce7; color: #166534; } .hue-3 { background: #ffedd5; color: #9a3412; }
.hue-4 { background: #cffafe; color: #155e75; } .hue-5 { background: #fef3c7; color: #92400e; } .hue-6 { background: #ede9fe; color: #5b21b6; } .hue-7 { background: #f1f5f9; color: #334155; }
.flag { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); margin-right: 5px; flex: 0 0 auto; }
.tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; padding: .18rem .5rem; border-radius: 999px; line-height: 1.2; white-space: nowrap; }
.tag i { font-size: .8rem; }
.tag-red { background: var(--red-50); color: var(--red); } .tag-orange { background: var(--orange-50); color: var(--orange); } .tag-amber { background: var(--amber-50); color: var(--amber); }
.tag-green { background: var(--green-50); color: var(--green); } .tag-blue { background: var(--blue-50); color: var(--blue); } .tag-teal { background: var(--teal-50); color: var(--teal); }
.tag-purple { background: var(--purple-50); color: var(--purple); } .tag-gray { background: var(--gray-50); color: var(--gray); } .tag-brand { background: var(--brand-50); color: var(--brand); }
.tag-star { background: #fef9c3; color: #a16207; }
.tag-outline { background: var(--surface); color: var(--text-2); border: 1px solid var(--border); }
.c-red { color: var(--red) !important; } .c-orange { color: var(--orange) !important; } .c-amber { color: var(--amber) !important; } .c-green { color: var(--green) !important; }
.c-blue { color: var(--blue) !important; } .c-teal { color: var(--teal) !important; } .c-purple { color: var(--purple) !important; } .c-gray { color: var(--gray) !important; } .c-brand { color: var(--brand) !important; }
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); margin-left: 6px; vertical-align: 1px; flex-shrink: 0; }
.online-dot.off { background: var(--border-strong); box-shadow: none; }
.live-pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; color: var(--green); background: var(--green-50); border: 1px solid #bbf7d0; border-radius: 999px; padding: .25rem .65rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .45); } 70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }

/* ---------- Filtre ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: .32rem .75rem; font-size: .8rem; font-weight: 500; cursor: pointer; transition: all .12s; white-space: nowrap; }
.chip i { font-size: .9rem; }
.chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.chip.on { background: var(--brand-50); border-color: var(--brand); color: var(--brand); }
.segment { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.segment a, .segment button { padding: .35rem .7rem; font-size: .8rem; color: var(--text-2); border: 0; background: transparent; border-right: 1px solid var(--border); font-weight: 500; white-space: nowrap; }
.segment a:last-child, .segment button:last-child { border-right: 0; }
.segment a:hover { background: var(--surface-2); text-decoration: none; }
.segment a.on, .segment button.on { background: var(--brand-50); color: var(--brand); }
.segment.w-100 { display: flex; }
.segment.w-100 a { flex: 1; text-align: center; }
.select-inline { width: auto; display: inline-block; }

/* ---------- Prehľad: karty botov, posledné konverzácie ---------- */
.bot-card { display: flex; flex-direction: column; height: 100%; }
.bot-card .head { display: flex; align-items: center; gap: .85rem; padding: 1.1rem 1.1rem .75rem; }
.bot-card .head .t { min-width: 0; }
.bot-card .head .n { font-weight: 650; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bot-card .head .m { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bot-card .stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bot-card .stats > a, .bot-card .stats > div { padding: .65rem .5rem; text-align: center; color: var(--text); border-right: 1px solid var(--border); }
.bot-card .stats > :last-child { border-right: 0; }
.bot-card .stats a:hover { background: var(--surface-2); text-decoration: none; }
.bot-card .stats .v { font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; line-height: 1.2; }
.bot-card .stats .k { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.bot-card .tags { display: flex; flex-wrap: wrap; gap: .35rem; padding: .75rem 1.1rem 0; }
.bot-card .actions { display: flex; gap: .4rem; padding: .85rem 1.1rem 1.1rem; margin-top: auto; flex-wrap: wrap; }
.conv-list { display: flex; flex-direction: column; }
.conv-row { display: flex; align-items: center; gap: .8rem; padding: .75rem 1.1rem; border-bottom: 1px solid var(--border); color: var(--text); transition: background .12s; }
.conv-row:last-child { border-bottom: 0; }
.conv-row:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.conv-row .t { min-width: 0; flex: 1; }
.conv-row .n { font-weight: 600; font-size: .86rem; display: flex; align-items: center; gap: .3rem; min-width: 0; }
.conv-row .n span.who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-row .n .bot { color: var(--muted); font-weight: 400; font-size: .76rem; white-space: nowrap; }
.conv-row .p { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .1rem; }
.conv-row .r { text-align: right; flex: 0 0 auto; font-size: .74rem; color: var(--muted); }
.pill-unread { display: inline-block; min-width: 1.4rem; text-align: center; font-size: .7rem; font-weight: 700; color: #fff; background: var(--red); border-radius: 999px; padding: .12rem .4rem; }

/* ---------- Bot: sekcie nastavení, prehľad bota, skúšobný chat ---------- */
.subnav { display: flex; gap: .25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .35rem; margin-bottom: 1.5rem; overflow-x: auto; box-shadow: var(--shadow); scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .95rem; border-radius: 8px; color: var(--text-2); font-size: .84rem; font-weight: 500; white-space: nowrap; flex: 0 0 auto; transition: background .12s, color .12s; }
.subnav a i { font-size: 1rem; opacity: .8; }
.subnav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.subnav a.on { background: var(--brand-50); color: var(--brand); }
.subnav a.on i { opacity: 1; }
.sb-nav a.item.open { color: #fff; }
.sb-nav a.item .caret { margin-left: auto; font-size: .7rem; width: auto; opacity: .6; }
.sb-nav .sub { margin: -2px 0 .35rem; padding-left: .9rem; position: relative; }
.sb-nav .sub::before { content: ""; position: absolute; left: 1.05rem; top: .2rem; bottom: .35rem; width: 1px; background: rgba(255, 255, 255, .1); }
.sb-nav .sub a.item { padding: .42rem .6rem .42rem .95rem; font-size: .82rem; font-weight: 500; color: var(--sb-text); }
.sb-nav .sub a.item i { font-size: .9rem; width: 16px; }
.sb-nav .sub a.item.active { background: rgba(99, 102, 241, .22); color: #fff; }
.bot-hero .card-body { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; padding: 1.25rem 1.35rem; }
.bot-hero .info { min-width: 0; flex: 1 1 300px; }
.bot-hero h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bot-hero .meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .82rem; color: var(--muted); margin-bottom: .55rem; }
.bot-hero .meta > * { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; }
.bot-hero .meta a { color: var(--text-2); }
.bot-hero .tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.bot-hero .actions { display: flex; gap: .5rem; flex-wrap: wrap; flex: 0 0 auto; }
.checklist .card-header { align-items: flex-start; gap: 1rem; padding: 1rem 1.25rem; }
.checklist .card-header h2 { font-size: .95rem; font-weight: 650; margin: 0 0 .15rem; }
.checklist .card-header .sub-t { font-size: .8rem; color: var(--muted); font-weight: 400; }
.checklist .progress-wrap { margin-left: auto; flex: 0 0 auto; display: flex; align-items: center; gap: .6rem; padding-top: .2rem; }
.checklist .progress-wrap .lbl { font-size: .78rem; font-weight: 650; color: var(--brand); font-variant-numeric: tabular-nums; }
.progress.thin { height: 6px; width: 110px; background: var(--brand-100); border-radius: 999px; }
.progress.thin .progress-bar { background: var(--brand); border-radius: 999px; }
.checklist .item { display: flex; align-items: center; gap: 1rem; padding: .95rem 1.25rem; border-top: 1px solid var(--border); }
.checklist .item .st { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto; display: inline-grid; place-items: center; font-size: 1rem; background: var(--brand-50); color: var(--brand); }
.checklist .item.done .st { background: var(--green-50); color: var(--green); }
.checklist .item.busy .st { background: var(--amber-50); color: var(--amber); }
.checklist .item .t { min-width: 0; flex: 1; }
.checklist .item .n { font-weight: 600; font-size: .9rem; }
.checklist .item.done .n { color: var(--muted); }
.checklist .item .d { font-size: .8rem; color: var(--muted); margin-top: .1rem; line-height: 1.5; }
.checklist .item .btn { flex: 0 0 auto; white-space: nowrap; }
.settings-list { display: flex; flex-direction: column; }
.settings-list > a { display: flex; align-items: center; gap: .85rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--border); color: var(--text); transition: background .12s; min-width: 0; }
.settings-list > a:last-child { border-bottom: 0; }
.settings-list > a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.settings-list .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); color: var(--brand); display: inline-grid; place-items: center; font-size: 1rem; flex: 0 0 auto; }
.settings-list .t { min-width: 0; flex: 1; }
.settings-list .n { font-weight: 600; font-size: .86rem; }
.settings-list .v { font-size: .78rem; color: var(--muted); margin-top: .1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-list .arr { color: var(--muted-2); font-size: .8rem; flex: 0 0 auto; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .35rem; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.bot-card .head .n a { color: inherit; }
.bot-card .head .n a:hover { color: var(--brand); text-decoration: none; }
.offcanvas.bot-test { width: 440px; max-width: 100vw; border-left: 1px solid var(--border); }
.offcanvas.bot-test .offcanvas-header { padding: .8rem 1rem; border-bottom: 1px solid var(--border); gap: .5rem; }
.offcanvas.bot-test .offcanvas-title { font-size: .95rem; font-weight: 650; line-height: 1.2; }
.offcanvas.bot-test .sub { font-size: .76rem; color: var(--muted); }
.offcanvas.bot-test .offcanvas-body { padding: 0; display: flex; flex-direction: column; background: #f3f4f6; }
.offcanvas.bot-test iframe { flex: 1; width: 100%; border: 0; min-height: 0; }
.offcanvas.bot-test .note { background: var(--amber-50); color: #92400e; font-size: .78rem; padding: .55rem 1rem; border-bottom: 1px solid #fde68a; line-height: 1.45; }
.offcanvas.bot-test .foot { font-size: .72rem; color: var(--muted); padding: .55rem 1rem; background: var(--surface); border-top: 1px solid var(--border); line-height: 1.45; }
@media (max-width: 575.98px) {
  .offcanvas.bot-test #botTestFresh span { display: none; }
  .bot-hero .actions { width: 100%; }
  .bot-hero .actions .btn { flex: 1; }
  /* text dostane celú šírku, tlačidlo ide pod neho (zarovnané s textom) */
  .checklist .item { flex-wrap: wrap; row-gap: .55rem; }
  .checklist .item .t { flex: 1 1 calc(100% - 34px - 1rem); }
  .checklist .item .btn { margin-left: calc(34px + 1rem); }
}
.icon-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.icon-option { cursor: pointer; margin: 0; position: relative; }
.icon-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.icon-bubble { width: 48px; height: 48px; border-radius: 50%; background: var(--cp-color, #4f46e5); color: #fff; display: inline-flex; align-items: center; justify-content: center; border: 3px solid transparent; transition: transform .15s, box-shadow .15s; overflow: hidden; box-shadow: var(--shadow); }
.icon-bubble svg { width: 24px; height: 24px; fill: currentColor; }
.icon-bubble img { width: 100%; height: 100%; object-fit: cover; }
.icon-bubble.icon-photo { background: var(--gray-50); color: var(--muted); }
.icon-option:hover .icon-bubble { transform: scale(1.06); }
.icon-option input:checked + .icon-bubble { border-color: var(--text); box-shadow: 0 0 0 2px #fff inset, 0 0 0 3px var(--brand-100); }
.icon-option input:disabled + .icon-bubble { opacity: .4; cursor: not-allowed; }
.icon-option input:focus-visible + .icon-bubble { box-shadow: 0 0 0 3px var(--brand-100); }
.preview-sticky { position: sticky; top: 76px; }
.preview-sticky .hint { font-size: .78rem; color: var(--muted); margin-bottom: .5rem; display: flex; align-items: center; gap: .35rem; }
.preview-frame { width: 100%; height: 620px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); box-shadow: var(--shadow); display: block; }
.preview-frame-tall { height: min(760px, calc(100vh - 200px)); border: 0; border-radius: var(--radius); }
.lang-tabs { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 1rem; }
.lang-tabs a { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .6rem; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font-size: .78rem; font-weight: 600; }
.lang-tabs a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.lang-tabs a.on { background: var(--brand-50); border-color: var(--brand); color: var(--brand); }
.lang-tabs a .n { font-size: .66rem; font-weight: 600; background: var(--gray-50); color: var(--muted); border-radius: 999px; padding: 0 .35rem; }
.lang-tabs a.on .n { background: var(--brand-100); color: var(--brand); }
.lang-tabs a .star { color: #eab308; font-size: .7rem; }
.source-row { padding: .85rem 1.1rem; border-bottom: 1px solid var(--border); }
.source-row:last-child { border-bottom: 0; }
.source-row .ic { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 1rem; flex: 0 0 auto; }
.source-row .n { font-weight: 600; font-size: .86rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.source-row .source-info { font-size: .76rem; color: var(--muted); margin-top: .1rem; overflow-wrap: anywhere; }
.source-row .source-error { font-size: .76rem; }
.source-row pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: .6rem .75rem; font-size: .74rem; }
.form-section { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border); }
.form-section:last-child { border-bottom: 0; }
.form-section h2 { font-size: .95rem; font-weight: 650; margin: 0 0 .25rem; }
.form-section .desc { color: var(--muted); font-size: .8rem; margin-bottom: 1rem; line-height: 1.55; }
.form-section .desc.mb-0 { margin-bottom: 0; }
.switch-row { display: flex; align-items: flex-start; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--border); }
.switch-row:first-of-type { border-top: 0; padding-top: 0; }
.switch-row .form-switch { margin: 0; padding-left: 3.2em; }
.switch-row .form-check-label { font-weight: 500; color: var(--text); }
.switch-row .form-text { margin-top: .15rem; }

/* ---------- Inštalácia, dokumentácia ---------- */
.docs { max-width: 900px; }
.docs h2 { font-size: 1.15rem; margin: 1.75rem 0 .65rem; }
.docs h3 { font-size: 1rem; margin: 1.4rem 0 .5rem; }
.docs p, .docs li { color: var(--text-2); line-height: 1.6; }
.docs table { font-size: .84rem; }
.codebox { position: relative; background: #0f1222; color: #e2e6ff; border-radius: 10px; padding: 1rem 1.1rem; font-family: var(--mono); font-size: .8rem; line-height: 1.55; overflow: auto; white-space: pre; margin: .75rem 0 1rem; }
.codebox .copy { position: absolute; top: .55rem; right: .55rem; font-family: var(--bs-body-font-family); font-size: .72rem; background: rgba(255, 255, 255, .1); color: #fff; border: 0; border-radius: 6px; padding: .25rem .55rem; }
.codebox .copy:hover { background: rgba(255, 255, 255, .2); }
.codebox .c1 { color: #7c81a0; } .codebox .c2 { color: #a5b4fc; } .codebox .c3 { color: #86efac; } .codebox .c4 { color: #fcd34d; }
.codebox.wrap { white-space: pre-wrap; word-break: break-all; padding-right: 6rem; }
.step { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.step .no { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: 0 0 auto; }
.step h4 { font-size: .95rem; margin: .3rem 0 .35rem; }
.status-box { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.status-box .ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; flex: 0 0 auto; }
.status-box.wait .ic { background: var(--amber-50); color: var(--amber); }
.status-box.ok .ic { background: var(--green-50); color: var(--green); }
.status-box.info .ic { background: var(--brand-50); color: var(--brand); }
.kbd { font-family: var(--mono); font-size: .72rem; background: var(--gray-50); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; padding: .05rem .35rem; }
.api-table td { vertical-align: top; }
.api-table code { white-space: nowrap; }

/* ---------- Chaty (inbox) ---------- */
.inbox-page .content, .visitors-page .content { height: calc(100vh - 60px); overflow: hidden; }
.inbox { display: flex; height: 100%; background: var(--surface); }
.inbox-list { width: 340px; flex-shrink: 0; border-right: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }
.inbox-filters { padding: .75rem .85rem; border-bottom: 1px solid var(--border); background: var(--surface-2); display: flex; flex-direction: column; gap: .5rem; }
.inbox-items { overflow-y: auto; flex: 1; }
.inbox-item { display: block; padding: .7rem .9rem; border-bottom: 1px solid var(--border); color: var(--text); cursor: pointer; position: relative; transition: background .12s; }
.inbox-item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.inbox-item.active { background: var(--brand-50); }
.inbox-item.active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }
.inbox-item .name { font-weight: 600; font-size: .86rem; }
.inbox-item .preview { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-item .when { font-size: .72rem; color: var(--muted-2); white-space: nowrap; }
.inbox-item.unread .name { color: var(--brand); }
.inbox-item.unread .preview { color: var(--text); font-weight: 500; }
.inbox-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); display: inline-block; margin-left: 6px; vertical-align: 1px; }
.inbox-item .small { font-size: .74rem; }
.inbox-detail { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); min-height: 0; }
.inbox-empty, .visitors-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; color: var(--muted); }
.inbox-empty i.big, .visitors-empty i.big { font-size: 2.4rem; color: var(--muted-2); margin-bottom: .75rem; }
.inbox-empty h5, .visitors-empty h5 { color: var(--text); font-size: 1rem; }
.inbox-empty p, .visitors-empty p { max-width: 420px; }
.inbox-thread { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.thread-header { display: flex; align-items: center; gap: .85rem; padding: .7rem 1rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.thread-header .th-name { font-weight: 650; font-size: .95rem; display: inline-flex; align-items: center; }
.thread-header .th-info { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .1rem; }
.thread-header .th-info a { color: var(--text-2); }
.thread-header .actions { display: flex; gap: .3rem; flex-shrink: 0; }
.thread-messages { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .45rem; }
.msg { max-width: 72%; padding: .6rem .9rem; border-radius: 16px; font-size: .875rem; white-space: pre-wrap; word-wrap: break-word; position: relative; line-height: 1.5; }
.msg.visitor { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; box-shadow: var(--shadow); }
.msg.agent { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-end; background: var(--brand-50); color: #312e81; border: 1px solid var(--brand-100); border-bottom-right-radius: 4px; }
.msg.system { align-self: center; background: none; color: var(--muted); font-size: .76rem; max-width: 100%; text-align: center; padding: .15rem .6rem; }
.msg .meta { display: block; font-size: .68rem; opacity: .7; margin-top: .3rem; }
.msg .meta .ai { font-weight: 700; letter-spacing: .03em; }
.msg.error-msg { border: 1px dashed var(--amber); }
.msg .sources { font-size: .72rem; margin-top: .3rem; opacity: .8; }
.msg .sources a { color: inherit; }
.msg .translation { display: block; font-size: .78rem; margin-top: .35rem; padding-top: .35rem; border-top: 1px dashed rgba(0, 0, 0, .15); opacity: .85; }
.msg.agent .translation { border-top-color: rgba(255, 255, 255, .35); }
.day-sep { align-self: center; font-size: .7rem; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .15rem .6rem; margin: .5rem 0; }
/* pohyb návštevníka vo vlákne: prezretá podstránka, otvorenie / minimalizovanie chatu */
.ev { align-self: center; max-width: 100%; font-size: .72rem; color: var(--muted); text-align: center; padding: .1rem .6rem; }
.ev .bi { color: var(--muted-2); }
.ev .ev-t { color: var(--muted-2); margin-right: .15rem; font-variant-numeric: tabular-nums; }
.ev a { color: var(--text-2); text-decoration: none; border-bottom: 1px dotted var(--muted-2); }
.ev a:hover { color: var(--text); border-bottom-style: solid; }
.ev .ev-p { color: var(--muted-2); }
.ev.ev-open, .ev.ev-close { color: var(--brand); }
.ev.ev-open .bi, .ev.ev-close .bi { color: var(--brand); }
.ev.ev-close { color: var(--amber); }
.ev.ev-close .bi { color: var(--amber); }
.thread-reply { padding: .75rem 1rem; background: var(--surface); border-top: 1px solid var(--border); }
.thread-reply textarea { resize: none; }
.thread-reply .hint { font-size: .76rem; color: var(--muted); margin-bottom: .4rem; display: flex; align-items: center; gap: .35rem; }
.thread-reply .btn-send { width: 42px; height: 42px; padding: 0; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 10px; }
@media (max-width: 991.98px) {
  .inbox-page .content, .visitors-page .content { height: auto; min-height: calc(100vh - 60px); overflow: visible; }
  .inbox-list { width: 100%; border-right: 0; }
  .inbox.has-selected .inbox-list { display: none; }
  .inbox:not(.has-selected) .inbox-detail { display: none; }
  .inbox-thread { min-height: calc(100vh - 60px); }
  .thread-messages { padding: .85rem; }
  .msg { max-width: 88%; }
  .thread-header .actions .btn span { display: none; }
}

/* ---------- Návštevníci ---------- */
.visitors { display: flex; height: 100%; background: var(--surface); }
.visitors-list { width: 380px; flex-shrink: 0; border-right: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }
.visitors-items { overflow-y: auto; flex: 1; }
.visitors-foot { font-size: .72rem; color: var(--muted); padding: .5rem .85rem; border-top: 1px solid var(--border); background: var(--surface-2); }
.visitors-foot a { color: var(--muted); text-decoration: underline; }
.visitor-item { display: block; padding: .65rem .9rem; border-bottom: 1px solid var(--border); color: var(--text); position: relative; transition: background .12s; }
.visitor-item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.visitor-item.active { background: var(--brand-50); }
.visitor-item.active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }
.visitor-item.has-chat .name { color: var(--brand); }
.visitor-sep { padding: .4rem .9rem; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.visitor-sep.chat { color: var(--brand); background: var(--brand-50); }
.visitor-sep:not(:first-child) { border-top: 1px solid var(--border); }
.visitor-item .name { font-weight: 600; font-size: .86rem; }
.visitor-item .when { font-size: .72rem; color: var(--muted-2); white-space: nowrap; }
.visitor-item.is-online .when { color: var(--green); font-weight: 600; }
.visitor-item .page { color: var(--text-2); }
.visitor-item .small { font-size: .76rem; }
.visitor-item .online-dot { margin-left: 0; }
.visitors-detail { flex: 1; min-width: 0; overflow-y: auto; background: var(--bg); display: flex; flex-direction: column; }
.visitors-detail .vd { padding: 1.25rem 1.5rem; }
.vd-head { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 1.1rem; }
.vd-head h1 { font-size: 1.15rem; margin: 0; display: flex; align-items: center; }
.vd-head .sub { color: var(--muted); font-size: .8rem; margin-top: .1rem; }
.vd-table th { font-weight: 500; color: var(--muted); font-size: .8rem; }
.vd-table td { font-size: .84rem; overflow-wrap: anywhere; }
.page-row { display: grid; grid-template-columns: 60px 1fr; gap: 0 .5rem; padding: .35rem 0; border-bottom: 1px solid var(--border); font-size: .84rem; align-items: baseline; }
.page-row:last-child { border-bottom: 0; }
.page-row .time { color: var(--muted-2); font-variant-numeric: tabular-nums; font-size: .76rem; font-family: var(--mono); }
.page-row .path { grid-column: 2; font-size: .72rem; color: var(--muted-2); font-family: var(--mono); }
.page-row a { color: var(--text); }
.page-row.now a { font-weight: 600; color: var(--brand); }
.page-row.ev-row { color: var(--brand); font-size: .78rem; }
.page-row.ev-row.ev-close { color: var(--amber); }
.page-row.now .time::after { content: '●'; color: var(--green); margin-left: 4px; font-size: .55rem; vertical-align: 2px; }
@media (max-width: 991.98px) {
  .visitors-list { width: 100%; border-right: 0; }
  .visitors.has-selected .visitors-list { display: none; }
  .visitors:not(.has-selected) .visitors-detail { display: none; }
  .visitors-detail .vd { padding: 1rem; }
  .vd-head .btn span { display: none; }
}

/* ---------- Nevyriešené otázky ---------- */
.question-row { padding: .9rem 1.1rem; border-bottom: 1px solid var(--border); }
.question-row:last-child { border-bottom: 0; }
.question-row .q { font-size: .95rem; font-weight: 500; line-height: 1.45; }
.question-row.resolved .q { color: var(--muted); text-decoration: line-through; font-weight: 400; }
.question-row .meta { font-size: .76rem; color: var(--muted); margin-top: .25rem; display: flex; flex-wrap: wrap; gap: .2rem .6rem; align-items: center; }
.question-row .answer-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem 1rem; margin-top: .75rem; }

/* ---------- Stránkovanie, toasty, tooltipy ---------- */
.pagination { margin: 0; --bs-pagination-font-size: .82rem; --bs-pagination-padding-y: .35rem; --bs-pagination-padding-x: .7rem; --bs-pagination-color: var(--text-2); --bs-pagination-border-color: var(--border); --bs-pagination-active-bg: var(--brand); --bs-pagination-active-border-color: var(--brand); --bs-pagination-hover-bg: var(--surface-2); --bs-pagination-hover-color: var(--brand); --bs-pagination-focus-box-shadow: none; }
.toast-container { z-index: 2000; }
.toast { border-radius: 10px; font-size: .85rem; }
.tooltip { font-size: .75rem; }
.tooltip-inner { background: var(--text); border-radius: 6px; }
#vdConversations > .text-secondary, #vdPages > .text-secondary { padding: .75rem 1.1rem; }
#vdPages > .text-secondary { padding-left: 0; }
.vd-table > :not(caption) > * > * { padding: .3rem .5rem .3rem 0; }

/* Odznak ukončených nevidených chatov (menu) a záložka Ukončené */
.sb-nav .cnt.done { background: rgba(255, 255, 255, .28); }
.sb-nav .cnt + .cnt { margin-left: .3rem; }
.segment .tab-cnt { display: inline-block; min-width: 1.3rem; padding: 0 .35rem; margin-left: .25rem; border-radius: 999px; background: var(--red); color: #fff; font-size: .68rem; font-weight: 700; line-height: 1.3rem; text-align: center; vertical-align: 1px; }
/* Odpoveď bota: zdroje a oprava */
.msg .acts { display: block; font-size: .72rem; margin-top: .25rem; opacity: .85; }
.msg .acts a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.msg .acts a:hover { opacity: 1; border-bottom-style: solid; }
.msg .acts .fixed { color: var(--green); font-weight: 600; }
