:root {
  --bg: #060a13;
  --text: #eef2fa;
  --muted: #8e9bb0;
  --line: rgba(255, 255, 255, 0.085);
  --glass: rgba(17, 25, 42, 0.58);
  --glass-hi: rgba(30, 42, 68, 0.65);
  --accent: #34d399;
  --accent-2: #22d3ee;
  --grad: linear-gradient(135deg, #34d399, #22d3ee);
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(920px 540px at 8% -8%, rgba(52, 211, 153, 0.19), transparent 60%),
    radial-gradient(840px 540px at 100% 0%, rgba(99, 102, 241, 0.2), transparent 55%),
    radial-gradient(720px 520px at 60% 110%, rgba(34, 211, 238, 0.11), transparent 60%);
}

.hidden { display: none !important; }
.mt-14 { margin-top: 14px; }
.muted-sub { font-size: 12px; color: var(--muted); display: block; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Vidrio ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ---------- Estructura ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; gap: 18px; padding: 18px; min-height: 100vh; }

.sidebar { padding: 20px 14px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 18px; height: calc(100vh - 36px); }

/* ---------- Logo Nexus ---------- */
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 6px; }
.brand-logo {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center;
  filter: drop-shadow(0 0 16px rgba(52, 211, 153, 0.35));
}
.brand-logo svg { width: 100%; height: 100%; display: block; }
.brand-logo.big { width: 62px; height: 62px; filter: drop-shadow(0 0 24px rgba(52, 211, 153, 0.45)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; background: linear-gradient(135deg, #ffffff 30%, #a5f3fc 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 2px; }
.login-title-group { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.brand-badge { font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--accent); background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.28); padding: 2px 10px; border-radius: 999px; }

.ws-switch label { display: block; font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 0 8px 6px; }

.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 11px; position: relative;
  background: none; border: 1px solid transparent; color: var(--muted);
  padding: 10px 12px; border-radius: 12px; font: inherit; font-weight: 500;
  cursor: pointer; text-align: left; transition: all .18s;
}
.nav-item span { flex: 1; }
.nav-item svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-item.active { color: var(--text); background: var(--glass-hi); border-color: rgba(52, 211, 153, 0.25); box-shadow: inset 3px 0 0 var(--accent); }
.badge { font-style: normal; font-size: 11px; font-weight: 700; background: var(--warn); color: #1a1405; border-radius: 999px; padding: 1px 7px; }
.dot-warn { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 10px var(--warn); }

.side-actions { display: flex; flex-direction: column; gap: 6px; }

.content { min-width: 0; max-width: 1380px; width: 100%; margin: 0 auto; padding: 0 4px 30px; display: flex; flex-direction: column; gap: 16px; }

/* ---------- Barra Superior de Estado ---------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 18px; flex-wrap: wrap;
}
.topbar-biz { display: flex; align-items: center; gap: 12px; }
.topbar-avatar {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad); color: #04201a; font-weight: 800; font-size: 16px;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(52, 211, 153, 0.3);
}
.topbar-title-row { display: flex; align-items: center; gap: 8px; }
.topbar-title-row strong { font-size: 15px; font-weight: 700; }
.topbar-biz small { color: var(--muted); font-size: 12.5px; display: block; margin-top: 1px; }
.topbar-pills { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0, 0, 0, 0.32); border: 1px solid var(--line);
  color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600;
  padding: 7px 13px; border-radius: 999px; cursor: pointer; transition: all .16s;
}
.status-pill:hover { background: var(--glass-hi); border-color: rgba(255, 255, 255, 0.18); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.status-dot.on { background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.view { display: none; }
.view.active { display: block; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.page-head p { color: var(--muted); margin-top: 2px; }
.head-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.card, .panel-card { padding: 20px; }
.card h3 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.card-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }
.card-title h3 { margin: 0; }
.panel-card { padding: 16px 18px; }
.panel-card h4 { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.hint { color: var(--muted); font-size: 12.5px; margin: -6px 0 12px; }
.muted-inline { color: var(--muted); font-weight: 400; font-size: 12px; }
code { background: rgba(255, 255, 255, 0.08); padding: 1px 6px; border-radius: 6px; font-size: 12px; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.grid-2-1 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.align-start { align-items: start; }

/* ---------- Formularios ---------- */
.field label { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.field small, .form-error, .form-ok { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.form-error { color: var(--danger); font-weight: 500; }
.form-ok { color: var(--accent); font-weight: 500; }
.form-error:empty, .form-ok:empty { display: none; }

input[type="text"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; font: inherit; color: var(--text);
  background: rgba(5, 9, 18, 0.55);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
select option { background: #0f1626; color: var(--text); }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: rgba(142, 155, 176, 0.65); }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(52, 211, 153, 0.6); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.13); background: rgba(5, 9, 18, 0.75); }
input[readonly] { color: var(--muted); }
.mono { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 12.5px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.copy-row { display: flex; gap: 8px; }

/* ---------- Banner de Clave Guardada ---------- */
.saved-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 13px;
  background: rgba(52, 211, 153, 0.11);
  border: 1px solid rgba(52, 211, 153, 0.32);
}
.saved-icon {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #04201a;
  display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.saved-banner strong { display: block; font-size: 13px; color: var(--accent); }
.saved-banner small { display: block; font-size: 12px; color: var(--text); opacity: 0.85; }

/* ---------- Etapas y Objeciones en Agente ---------- */
.sub-card {
  background: rgba(5, 9, 18, 0.42);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sub-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ---------- Botones ---------- */
.btn { border: 1px solid transparent; border-radius: 12px; padding: 10px 17px; font: inherit; font-weight: 600; cursor: pointer; transition: all .16s; }
.btn-primary { background: var(--grad); color: #04201a; box-shadow: 0 6px 20px rgba(52, 211, 153, 0.25); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--glass-hi); }
.btn-link { background: none; color: var(--muted); }
.btn-link:hover { color: var(--text); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.chip { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.chip-on { background: rgba(52, 211, 153, 0.16); color: var(--accent); border: 1px solid rgba(52, 211, 153, 0.3); }
.chip-off { background: rgba(251, 191, 36, 0.14); color: var(--warn); border: 1px solid rgba(251, 191, 36, 0.28); }
.chip-gray { background: rgba(255, 255, 255, 0.07); color: var(--muted); }

.note { background: rgba(251, 191, 36, 0.1); color: var(--warn); border-radius: 12px; padding: 10px 13px; font-size: 12.5px; margin-bottom: 12px; }

/* ---------- Archivos ---------- */
.file-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.file-row small { display: block; color: var(--muted); font-size: 12.5px; }
.file-actions { display: flex; gap: 6px; }

/* ---------- Conversaciones ---------- */
.chat-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr) 290px; gap: 16px; height: calc(100vh - 118px); min-height: 540px; }

.inbox { display: flex; flex-direction: column; overflow: hidden; }
.inbox-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.inbox-head h2 { font-size: 15px; font-weight: 600; }
.conv-list { flex: 1; overflow-y: auto; padding: 8px; }
.conv-item { display: flex; gap: 11px; align-items: center; padding: 10px; border-radius: 14px; cursor: pointer; border: 1px solid transparent; transition: background .15s; }
.conv-item:hover { background: rgba(255, 255, 255, 0.04); }
.conv-item.active { background: var(--glass-hi); border-color: rgba(52, 211, 153, 0.28); }
.conv-body { flex: 1; min-width: 0; }
.conv-top { display: flex; justify-content: space-between; gap: 8px; }
.conv-name { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-time { font-size: 11px; color: var(--muted); white-space: nowrap; }
.conv-last { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-flags { display: flex; gap: 6px; margin-top: 4px; }
.empty-block { padding: 32px 20px; text-align: center; color: var(--muted); font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-icon { font-size: 28px; margin-bottom: 2px; }
.empty-block strong { display: block; color: var(--text); font-size: 14px; }

.avatar { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #04201a; background: var(--grad); }

.chat { display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.chat-placeholder { flex: 1; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); padding: 28px; text-align: center; max-width: 440px; margin: 0 auto; }
.chat-placeholder strong { color: var(--text); font-size: 16px; }
.chat-pane { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-head-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat-head-info span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.banner { padding: 10px 18px; background: rgba(251, 191, 36, 0.1); color: var(--warn); font-size: 13px; font-weight: 500; border-bottom: 1px solid rgba(251, 191, 36, 0.15); }

.messages { flex: 1; overflow-y: auto; padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.msg-group { display: flex; flex-direction: column; gap: 5px; max-width: 76%; }
.msg-group.user { align-self: flex-start; }
.msg-group.agent, .msg-group.human_owner { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 10px 14px; border-radius: 18px; white-space: pre-wrap; word-break: break-word; line-height: 1.45; }
.msg-group.user .bubble { background: rgba(255, 255, 255, 0.075); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg-group.agent .bubble { background: linear-gradient(135deg, rgba(52, 211, 153, 0.24), rgba(34, 211, 238, 0.16)); border: 1px solid rgba(52, 211, 153, 0.28); border-bottom-right-radius: 5px; }
.msg-group.human_owner .bubble { background: rgba(99, 102, 241, 0.22); border: 1px solid rgba(129, 140, 248, 0.34); border-bottom-right-radius: 5px; }
.bubble-label { font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.media-pill { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--glass-hi); border: 1px solid var(--line); font-size: 12.5px; }
.media-pill b { color: var(--accent); font-weight: 600; }
.sys-note { align-self: center; max-width: 82%; text-align: center; font-size: 12.5px; color: var(--warn); background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.25); border-radius: 12px; padding: 9px 14px; }

.typing { display: flex; align-items: center; gap: 5px; padding: 6px 20px 10px; font-size: 12px; color: var(--muted); }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite; }
.dot:nth-child(2) { animation-delay: .2s; } .dot:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.composer { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); }
.composer input { flex: 1; }

.details { display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.rows > div { display: flex; justify-content: space-between; gap: 12px; }
.rows dt { color: var(--muted); font-size: 13px; }
.rows dd { font-weight: 500; font-size: 13px; text-align: right; overflow-wrap: anywhere; }

.learning { background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.learning .q { font-weight: 600; }
.learning .a { color: var(--muted); }
.learning-actions { display: flex; gap: 6px; }

/* ---------- Rendimiento ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi { padding: 18px 20px; }
.kpi-label { font-size: 12.5px; color: var(--muted); }
.kpi-value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 0 10px 10px; }
.table td { padding: 12px 10px; border-top: 1px solid var(--line); }
.table td:first-child { max-width: 260px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { color: var(--muted); font-size: 13px; padding: 8px 2px; }

.proposal { border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); border-radius: 14px; padding: 14px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
.proposal p { color: var(--muted); font-size: 13px; }

.switch { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.switch input { display: none; }
.track { width: 36px; height: 21px; background: rgba(255, 255, 255, 0.14); border-radius: 999px; position: relative; transition: background .2s; }
.track::after { content: ''; position: absolute; width: 17px; height: 17px; background: #fff; border-radius: 50%; top: 2px; left: 2px; transition: transform .2s; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(15px); }

.segmented { display: inline-flex; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.segmented button { border: none; background: none; padding: 6px 14px; border-radius: 9px; font: inherit; font-weight: 500; color: var(--muted); cursor: pointer; }
.segmented button.active { background: var(--glass-hi); color: var(--text); font-weight: 600; }

/* ---------- Acceso, modal, toast ---------- */
.login { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; z-index: 100; }
.login-card { width: 100%; max-width: 380px; padding: 36px 30px; display: flex; flex-direction: column; align-items: center; gap: 15px; text-align: center; }
.login-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.login-card p { color: var(--muted); margin-top: -6px; margin-bottom: 4px; font-size: 13.5px; }

.modal { position: fixed; inset: 0; background: rgba(3, 6, 12, 0.72); backdrop-filter: blur(8px); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal-card { width: 100%; max-width: 480px; padding: 24px; background: rgba(15, 22, 38, 0.95); }
.modal-card h3 { font-size: 17px; }

.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: rgba(15, 22, 38, 0.96); border: 1px solid rgba(52, 211, 153, 0.35); color: var(--text); padding: 12px 20px; border-radius: 14px; font-weight: 600; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55); z-index: 200; max-width: 90vw; }

/* ---------- Responsive ---------- */
@media (max-width: 1220px) {
  .chat-layout { grid-template-columns: 270px minmax(0, 1fr); }
  .details { display: none; }
}
@media (max-width: 1000px) {
  .grid-2-1, .grid-2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; padding: 10px; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; }
  .nav { flex-direction: row; flex: none; overflow-x: auto; }
  .ws-switch { flex: 1; min-width: 150px; }
  .ws-switch label { display: none; }
  .side-actions { flex-direction: row; }
  .chat-layout { grid-template-columns: 1fr; height: auto; }
  .inbox { max-height: 260px; }
  .chat { height: 70vh; }
  .grid-3 { grid-template-columns: 1fr; }
}
/* Nexus workspace: calm surfaces, clear hierarchy, fewer nested containers. */
:root { --bg:#101416; --text:#e9eeeb; --muted:#9aa8a1; --line:#2b3430; --glass:#171d1a; --glass-hi:#25322c; --accent:#a6ddbd; --accent-2:#a6ddbd; --grad:linear-gradient(135deg,#a6ddbd,#a6ddbd); --radius:6px; }
.bg-glow { display:none; }
.glass { background:var(--glass); border:0; border-radius:6px; box-shadow:none; backdrop-filter:none; }
.app { padding:0; gap:0; grid-template-columns:224px minmax(0,1fr); }
.sidebar { height:100vh; top:0; padding:30px 18px; border-radius:0; border-right:1px solid var(--line); background:#131916; }
.content { max-width:1500px; padding:0 36px 40px; gap:32px; }
.topbar { background:transparent; border-bottom:1px solid var(--line); border-radius:0; padding:23px 0; }
.topbar-avatar { background:#293c31; color:var(--accent); box-shadow:none; border-radius:6px; overflow:hidden; width:44px; height:44px; }
.topbar-avatar img { width:100%;height:100%;object-fit:contain;background:#fff; }
.brand-logo,.brand-logo.big,.status-dot,.status-dot.on {filter:none;box-shadow:none;}
.brand-name {background:none;color:var(--text);}
.brand-sub {color:var(--muted);font-size:10px;}
.status-pill {background:transparent;border:0;padding:5px 0;font-size:11px;font-weight:400;}
.topbar-pills {gap:20px;}
.nav-item {border-radius:4px;font-size:13px;}
.nav-item.active {border-color:transparent;box-shadow:inset 2px 0 var(--accent);}
.page-head {margin:6px 0 30px;align-items:center;}
.page-head h1 {font-size:29px;letter-spacing:-1px;font-weight:600;}
.page-head p {max-width:730px;}
.eyebrow {font-size:10px!important;letter-spacing:2px;margin-bottom:8px!important;color:var(--accent)!important;}
.card {padding:25px 0;background:transparent;border-top:1px solid var(--line);border-radius:0;}
#view-connect>.grid-2 {column-gap:54px;row-gap:22px;}
.card h3 {font-size:17px;}
.saved-banner {border:0;border-left:2px solid var(--accent);border-radius:0;background:#1c2a22;padding:12px;}
.saved-icon {display:none;}
.btn {border-radius:5px;box-shadow:none;font-size:13px;padding:10px 16px;}
.btn-primary:hover {transform:none;}
input[type="text"],input[type="password"],input[type="number"],select,textarea {border-radius:4px;background:#111713;padding:11px 12px;}
select option {background:#172019;}
input:focus,select:focus,textarea:focus {background:#141d17;box-shadow:0 0 0 2px #a6ddbd20;border-color:#a6ddbd;}
.hint {margin:8px 0 12px;line-height:1.7;}
.agent-layout {display:grid;grid-template-columns:220px minmax(0,1fr);gap:40px;}
.agent-list {display:flex;flex-direction:column;gap:4px;}
.agent-choice {font:inherit;text-align:left;border:0;border-left:2px solid transparent;background:transparent;color:var(--text);padding:14px 16px;cursor:pointer;overflow-wrap:anywhere;}
.agent-choice.selected {background:#202e25;border-left-color:var(--accent);}
.agent-choice strong {display:block;font-size:13px;}
.agent-choice small {display:block;color:var(--muted);font-size:11px;margin-top:6px;}
.section-heading {padding-bottom:18px;}
.section-heading h2 {font-weight:500;font-size:23px;}
.setup-step {display:grid;grid-template-columns:32px minmax(0,1fr);gap:14px;border-top:1px solid var(--line);padding:26px 0;}
.setup-step h3 {font-size:17px;font-weight:500;margin-bottom:8px;}
.setup-step p {color:var(--muted);line-height:1.8;margin-bottom:16px;max-width:760px;}
.setup-step textarea {margin-top:10px;line-height:1.6;}
.step-number {font-size:12px;color:var(--accent);padding-top:4px;}
.setup-step details {margin-top:20px;}
summary {cursor:pointer;color:var(--muted);font-size:12px;margin-bottom:12px;}
.brand-settings {display:flex;align-items:center;gap:22px;padding:0 0 24px;flex-wrap:wrap;}
.brand-settings h3 {font-weight:500;}
a {color:var(--accent);}
.chat-layout {gap:1px;background:var(--line);border:1px solid var(--line);border-radius:5px;height:calc(100vh - 160px);}
.chat-layout>.glass,.chat-layout>.details {background:var(--bg);border-radius:0;}
.panel-card {background:transparent;border-bottom:1px solid var(--line);border-radius:0;padding:20px 16px;}
#conversationAgent {margin:10px 0;}
#btnAssignAgent {margin-bottom:22px;}
.bubble {border-radius:8px;}
.msg-group.agent .bubble {background:#253b2e;border:0;}
.conv-item {border-radius:4px;}
.kpi {border-radius:0;border-bottom:1px solid var(--line);}
.kpi-value {background:none;color:var(--text);}
.login-card {border:1px solid var(--line);}
@media(max-width:1100px){.content{padding:0 22px 24px;}.agent-layout{grid-template-columns:180px minmax(0,1fr);gap:22px;}}
@media(max-width:820px){.app{grid-template-columns:1fr;}.sidebar{height:auto;padding:16px;border-bottom:1px solid var(--line);}.content{padding:0 16px 24px;}.agent-layout{grid-template-columns:1fr;}.agent-list{flex-direction:row;overflow:auto;}.agent-choice{min-width:180px;}.topbar-pills{gap:8px;}.chat-layout{height:auto;}.page-head h1{font-size:25px;}.setup-step{grid-template-columns:24px minmax(0,1fr);gap:8px;}}

.report-filter {max-width:420px;margin-bottom:24px;}
