/**
 * Andy Dashboard — HUD-style admin surface.
 *
 * Visual language matches /dashboard/andy.html: deep space backdrop,
 * neon cyan/violet accents, mono typography for technical chrome,
 * Inter for body. The dashboard is the "bridge" of the same ship the
 * Andy console runs on, not a separate product.
 */

:root {
  /* Surface */
  --bg-0: #050810;
  --bg-1: #0a1020;
  --surface: rgba(15, 26, 48, 0.55);
  --surface-strong: rgba(15, 26, 48, 0.85);
  --surface-elev: rgba(20, 34, 60, 0.85);
  --border: rgba(159, 191, 255, 0.10);
  --border-strong: rgba(159, 191, 255, 0.20);

  /* Text */
  --fg: #d7e3f4;
  --fg-mid: #9eb1cf;
  --fg-dim: #6f86a8;

  /* Accents (same as andy.css) */
  --andy-cyan: #5cc8ff;
  --andy-violet: #a48cff;
  --andy-green: #9fffbe;
  --andy-glow: rgba(92, 200, 255, 0.55);
  --andy-glow-soft: rgba(92, 200, 255, 0.18);

  /* States */
  --success: #66f7a6;
  --warning: #ffd45c;
  --danger: #ff7a7a;

  /* Type */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Geometry */
  --radius: 14px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100vh;
  font-family: var(--font-display);
  color: var(--fg);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient backdrop — soft radial gradients + scanlines, same vibe as
   andy.html. Pseudo-elements so it never interferes with clicks. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 50% at 15% 0%,
      rgba(92, 200, 255, 0.10),
      transparent 60%
    ),
    radial-gradient(
      ellipse 80% 60% at 85% 100%,
      rgba(164, 140, 255, 0.10),
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 40% at 50% 50%,
      rgba(92, 200, 255, 0.03),
      transparent 70%
    );
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.015) 0px,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 1;
}

.hidden {
  display: none !important;
}

/* ─────────────────────────────────────────────────────────────────── */
/* LOGIN                                                              */
/* ─────────────────────────────────────────────────────────────────── */
.login-screen {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: 44px 36px 36px;
  background: var(--surface-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(92, 200, 255, 0.04),
    0 0 80px rgba(92, 200, 255, 0.05);
}

.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.login-logo {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--andy-cyan);
  filter: drop-shadow(0 0 14px var(--andy-glow));
}
.login-logo svg {
  width: 100%;
  height: 100%;
}

.login-header h1 {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: lowercase;
  color: var(--fg);
}
.login-header h1::after {
  content: '·';
  display: inline-block;
  margin-left: 0.4em;
  color: var(--andy-cyan);
  animation: blink 1.4s steps(2, end) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-error,
.register-error {
  padding: 10px 14px;
  background: rgba(255, 122, 122, 0.10);
  border: 1px solid rgba(255, 122, 122, 0.35);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 13px;
}

.register-notice {
  color: var(--fg-dim);
  font-size: 13px;
  text-align: center;
  margin-bottom: 4px;
}

/* ─────────────────────────────────────────────────────────────────── */
/* FORMS                                                              */
/* ─────────────────────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(5, 8, 16, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(92, 200, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(92, 200, 255, 0.10);
  background: rgba(5, 8, 16, 0.85);
}

.form-group small {
  font-size: 12px;
  color: var(--fg-dim);
}

/* ─────────────────────────────────────────────────────────────────── */
/* BUTTONS                                                            */
/* ─────────────────────────────────────────────────────────────────── */
.btn-primary,
.btn-secondary,
.btn-back,
.logout-btn,
button[type='submit'] {
  font-family: var(--font-display);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s,
    box-shadow 0.2s, transform 0.05s;
}

.btn-primary,
.login-form button[type='submit'] {
  padding: 12px 22px;
  border: 1px solid rgba(92, 200, 255, 0.5);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(92, 200, 255, 0.16),
    rgba(92, 200, 255, 0.04)
  );
  color: var(--andy-cyan);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.btn-primary:hover,
.login-form button[type='submit']:hover {
  background: linear-gradient(
    180deg,
    rgba(92, 200, 255, 0.28),
    rgba(92, 200, 255, 0.08)
  );
  box-shadow:
    0 0 0 3px rgba(92, 200, 255, 0.08),
    0 6px 26px rgba(92, 200, 255, 0.15);
}
.btn-primary:active,
.login-form button[type='submit']:active {
  transform: translateY(1px);
}
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-secondary {
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.btn-secondary:hover {
  border-color: rgba(92, 200, 255, 0.4);
  color: var(--andy-cyan);
}

.btn-back {
  background: none;
  border: none;
  color: var(--fg-dim);
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.btn-back:hover {
  color: var(--andy-cyan);
}

/* ─────────────────────────────────────────────────────────────────── */
/* APP LAYOUT                                                         */
/* ─────────────────────────────────────────────────────────────────── */
.app {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100vh;
}

/* ─────────────────────────────────────────────────────────────────── */
/* SIDEBAR                                                            */
/* ─────────────────────────────────────────────────────────────────── */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    180deg,
    rgba(15, 26, 48, 0.6) 0%,
    rgba(10, 16, 32, 0.4) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid var(--border);
  position: relative;
}

.sidebar::after {
  /* hairline on the right edge, glowing */
  content: '';
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(92, 200, 255, 0.35) 30%,
    rgba(164, 140, 255, 0.35) 70%,
    transparent
  );
  pointer-events: none;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 22px 20px;
  border-bottom: 1px solid var(--border);
}

.logo {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--andy-cyan);
  filter: drop-shadow(0 0 8px var(--andy-glow));
}
.logo svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: lowercase;
  color: var(--fg);
}

/* Andy CTA — primary call-to-action sitting between header and the
   admin nav. Anchors the sidebar to its hero feature, with a small
   pulsing orb on the left and an arrow on the right. */
.andy-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 14px 6px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--fg);
  background: linear-gradient(
    135deg,
    rgba(92, 200, 255, 0.18),
    rgba(164, 140, 255, 0.14)
  );
  border: 1px solid rgba(92, 200, 255, 0.40);
  box-shadow:
    0 0 0 1px rgba(92, 200, 255, 0.05),
    0 12px 30px rgba(92, 200, 255, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.2s, border-color 0.2s;
}
.andy-cta::after {
  /* glow ribbon that wipes across on hover */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(92, 200, 255, 0.18) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.andy-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(92, 200, 255, 0.7);
  box-shadow:
    0 0 0 1px rgba(92, 200, 255, 0.10),
    0 16px 40px rgba(92, 200, 255, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.andy-cta:hover::after {
  transform: translateX(100%);
}
.andy-cta:active {
  transform: translateY(0);
}

.andy-cta-orb {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.andy-cta-orb-core {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    var(--andy-green),
    var(--andy-cyan) 50%,
    rgba(92, 200, 255, 0.4) 100%
  );
  box-shadow:
    0 0 14px rgba(92, 200, 255, 0.7),
    0 0 28px rgba(92, 200, 255, 0.35);
  animation: andyCtaBreathe 2.4s ease-in-out infinite;
}
.andy-cta-orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(92, 200, 255, 0.45);
  animation: andyCtaPulse 2.4s ease-in-out infinite;
}
@keyframes andyCtaBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(0.9); }
}
@keyframes andyCtaPulse {
  0%   { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

.andy-cta-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.andy-cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 2px;
}
.andy-cta-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--andy-cyan);
  letter-spacing: 0.02em;
}
.andy-cta-arrow {
  width: 14px;
  height: 14px;
  color: var(--andy-cyan);
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s;
  flex-shrink: 0;
}
.andy-cta:hover .andy-cta-arrow {
  transform: translateX(3px);
  opacity: 1;
}

/* Nav */
.nav {
  flex: 1;
  padding: 8px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav::before {
  /* faint section label so the eye reads CTA → admin tools */
  content: 'admin';
  display: block;
  margin: 14px 6px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  opacity: 0.65;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  background: none;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--fg-dim);
  font-family: var(--font-display);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.nav-item::before {
  /* leading bullet — replaces the emoji icon */
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  flex-shrink: 0;
  transition: opacity 0.2s, box-shadow 0.2s;
}
.nav-item:hover {
  color: var(--fg);
  background: rgba(92, 200, 255, 0.04);
}
.nav-item.active {
  color: var(--andy-cyan);
  background: rgba(92, 200, 255, 0.08);
  border-color: rgba(92, 200, 255, 0.20);
}
.nav-item.active::before {
  opacity: 1;
  box-shadow: 0 0 10px var(--andy-glow);
}
.nav-icon {
  display: none;
}

.sidebar-footer {
  padding: 16px 18px 24px;
  border-top: 1px solid var(--border);
}

.logout-btn {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.logout-btn:hover {
  border-color: rgba(255, 122, 122, 0.5);
  color: var(--danger);
}

/* ─────────────────────────────────────────────────────────────────── */
/* MAIN                                                               */
/* ─────────────────────────────────────────────────────────────────── */
.main {
  flex: 1;
  padding: 32px 40px 48px;
  overflow-y: auto;
}

.tab {
  display: none;
  animation: fadeUp 0.4s ease-out;
}
.tab.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.page-header h1::before {
  /* subtle accent bar before the title */
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, var(--andy-cyan), var(--andy-violet));
  border-radius: 2px;
  margin-right: 14px;
  vertical-align: -4px;
  box-shadow: 0 0 12px var(--andy-glow);
}

/* ─────────────────────────────────────────────────────────────────── */
/* CARDS                                                              */
/* ─────────────────────────────────────────────────────────────────── */
.card,
.settings-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 18px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.card:hover,
.settings-section:hover {
  border-color: var(--border-strong);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}

.card-header h2 {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--fg-mid);
}

.card-icon {
  display: none; /* drop emoji icons in favor of mono headers */
}

.card-body {
  padding: 22px;
}

/* WhatsApp Card */
.whatsapp-card .card-header {
  border-bottom: none;
}

.wa-connected,
.wa-disconnected,
.wa-zombie {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.wa-connected {
  color: var(--success);
}
.wa-disconnected {
  color: var(--danger);
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.wa-zombie {
  color: var(--warning);
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.wa-zombie-hint {
  color: var(--text-muted, rgba(255, 255, 255, 0.6));
  font-size: 12px;
  line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────────── */
/* STATUS BADGE                                                       */
/* ─────────────────────────────────────────────────────────────────── */
.status-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}
.status-badge.connected {
  color: var(--success);
  background: rgba(102, 247, 166, 0.08);
}
.status-badge.disconnected {
  color: var(--danger);
  background: rgba(255, 122, 122, 0.08);
}
.status-badge.pending,
.status-badge.warning {
  color: var(--warning);
  background: rgba(255, 212, 92, 0.08);
}

/* ─────────────────────────────────────────────────────────────────── */
/* STATS GRID                                                         */
/* ─────────────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  position: relative;
  padding: 24px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(92, 200, 255, 0.45),
    transparent
  );
}
.stat-card:hover {
  border-color: rgba(92, 200, 255, 0.30);
  transform: translateY(-2px);
}

.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--fg);
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(92, 200, 255, 0.18);
}

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 8px;
}

/* ─────────────────────────────────────────────────────────────────── */
/* CHATS LIST                                                         */
/* ─────────────────────────────────────────────────────────────────── */
.search-box input {
  background: rgba(5, 8, 16, 0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 13px;
  width: 320px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box input:focus {
  outline: none;
  border-color: rgba(92, 200, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(92, 200, 255, 0.10);
}

.chats-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.chat-item:hover {
  border-color: rgba(92, 200, 255, 0.30);
  background: rgba(15, 26, 48, 0.75);
}

.chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(92, 200, 255, 0.18),
    rgba(164, 140, 255, 0.18)
  );
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--andy-cyan);
  flex-shrink: 0;
}

.chat-info {
  flex: 1;
  min-width: 0;
}

.chat-name {
  font-weight: 500;
  font-size: 14px;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-preview {
  font-size: 13px;
  color: var(--fg-dim);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-meta {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.chat-time {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  color: var(--fg-dim);
}

.chat-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}
.chat-badge.enabled {
  color: var(--success);
  background: rgba(102, 247, 166, 0.08);
}
.chat-badge.disabled {
  color: var(--fg-dim);
  background: transparent;
}

.tts-select {
  display: block;
  margin-top: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(5, 8, 16, 0.6);
  color: var(--fg);
  cursor: pointer;
}

/* ─────────────────────────────────────────────────────────────────── */
/* TOGGLE                                                             */
/* ─────────────────────────────────────────────────────────────────── */
.toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.toggle input {
  display: none;
}

.toggle-slider {
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}
.toggle-slider::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--fg-dim);
  top: 3px;
  left: 3px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s;
}
.toggle input:checked + .toggle-slider {
  background: rgba(92, 200, 255, 0.20);
  border-color: rgba(92, 200, 255, 0.55);
}
.toggle input:checked + .toggle-slider::after {
  transform: translateX(20px);
  background: var(--andy-cyan);
  box-shadow: 0 0 12px var(--andy-glow);
}

.toggle-group {
  display: flex;
  align-items: center;
  gap: 14px;
}
.toggle-group span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.10em;
  color: var(--fg-dim);
}

/* ─────────────────────────────────────────────────────────────────── */
/* MESSAGES                                                           */
/* ─────────────────────────────────────────────────────────────────── */
.messages-actions {
  margin-bottom: 18px;
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.55;
  border: 1px solid var(--border);
}

.message.incoming {
  background: var(--surface);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.message.outgoing {
  background: linear-gradient(
    180deg,
    rgba(92, 200, 255, 0.18),
    rgba(92, 200, 255, 0.08)
  );
  border-color: rgba(92, 200, 255, 0.35);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.message-sender {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--andy-cyan);
  margin-bottom: 4px;
}
.message.outgoing .message-sender {
  color: rgba(215, 227, 244, 0.7);
}

.message-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-dim);
  margin-top: 6px;
  text-align: right;
}
.message.outgoing .message-time {
  color: rgba(215, 227, 244, 0.5);
}

.pagination {
  text-align: center;
  padding: 20px;
}

/* ─────────────────────────────────────────────────────────────────── */
/* SETTINGS                                                           */
/* ─────────────────────────────────────────────────────────────────── */
.settings-section {
  padding: 22px;
  margin-bottom: 16px;
}

.settings-section h2 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mid);
  margin-bottom: 6px;
}

.settings-desc {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* ─────────────────────────────────────────────────────────────────── */
/* TASKS                                                              */
/* ─────────────────────────────────────────────────────────────────── */
.tasks-list,
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-card,
.skill-card {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.task-card:hover,
.skill-card:hover {
  border-color: rgba(92, 200, 255, 0.30);
}

/* Generic stat-row used in AI usage panel */
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.stat-row:last-child {
  border-bottom: none;
}
.stat-row strong {
  font-family: var(--font-mono);
  color: var(--andy-cyan);
}

/* ─────────────────────────────────────────────────────────────────── */
/* MODAL                                                              */
/* ─────────────────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeUp 0.2s ease-out;
}

.modal-content {
  width: 90%;
  max-width: 440px;
  max-height: 90vh;
  overflow: auto;
  background: var(--surface-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mid);
}

.modal-close {
  background: none;
  border: none;
  color: var(--fg-dim);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}
.modal-close:hover {
  color: var(--danger);
  background: rgba(255, 122, 122, 0.10);
}

.modal-body {
  padding: 22px;
}

.modal-body form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ─────────────────────────────────────────────────────────────────── */
/* AI USAGE PANEL                                                     */
/* ─────────────────────────────────────────────────────────────────── */
.ai-usage-section {
  padding: 24px;
}

.ai-muted {
  color: var(--fg-dim);
  font-family: var(--font-mono);
}

.ai-usage-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.ai-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.ai-filter-group label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.ai-filter-group select {
  background: rgba(5, 8, 16, 0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 13px;
  min-width: 160px;
  max-width: 280px;
}
.ai-filter-group select:focus {
  outline: none;
  border-color: rgba(92, 200, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(92, 200, 255, 0.10);
}

.ai-period-tabs {
  display: inline-flex;
  background: rgba(5, 8, 16, 0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.ai-period-tab {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.ai-period-tab:hover {
  color: var(--fg);
}
.ai-period-tab.active {
  background: rgba(92, 200, 255, 0.18);
  color: var(--andy-cyan);
}

.ai-usage-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.ai-usage-cards .stat-card {
  margin-bottom: 0;
}

.ai-usage-chart-wrap {
  margin-bottom: 26px;
  padding: 18px 20px 14px;
  background: rgba(5, 8, 16, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.ai-usage-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mid);
  margin-bottom: 14px;
}
.ai-usage-chart {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px;
  align-items: end;
  height: 140px;
}
.ai-bar-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
}
.ai-bar-vertical {
  background: linear-gradient(180deg, rgba(92, 200, 255, 0.10), rgba(92, 200, 255, 0.04));
  border: 1px solid rgba(92, 200, 255, 0.15);
  border-radius: 4px 4px 2px 2px;
  min-height: 2px;
  transition: filter 0.2s;
}
.ai-bar-vertical.has-data {
  background: linear-gradient(180deg, var(--andy-cyan), rgba(92, 200, 255, 0.25));
  border-color: rgba(92, 200, 255, 0.55);
  box-shadow: 0 0 12px rgba(92, 200, 255, 0.20);
}
.ai-bar-col:hover .ai-bar-vertical {
  filter: brightness(1.3);
}
.ai-bar-day {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-usage-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.ai-usage-panel {
  padding: 16px 18px;
  background: rgba(5, 8, 16, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.ai-usage-panel h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mid);
  margin-bottom: 12px;
  font-weight: 500;
}
.ai-bar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-bar-row {
  display: grid;
  grid-template-columns: minmax(70px, 1.2fr) 2fr auto;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.ai-bar-label {
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  overflow: hidden;
}
.ai-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--andy-cyan), var(--andy-violet));
  border-radius: 999px;
}
.ai-bar-value {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg);
  white-space: nowrap;
}

.ai-usage-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}
.ai-recent-row {
  display: grid;
  grid-template-columns: 80px 1.2fr 1.4fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
}
.ai-recent-row:hover {
  background: rgba(92, 200, 255, 0.05);
}
.ai-recent-row.fail {
  color: var(--danger);
}
.ai-recent-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-dim);
}
.ai-recent-task {
  color: var(--fg);
}
.ai-recent-model {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mid);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-recent-cost {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--andy-cyan);
  text-align: right;
}
.ai-recent-row.fail .ai-recent-cost {
  color: var(--danger);
}

/* ─────────────────────────────────────────────────────────────────── */
/* ACTIVITY FEED                                                      */
/* ─────────────────────────────────────────────────────────────────── */
.activity-list {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 3px 0;
  position: relative;
}
.activity-item.has-header {
  padding-top: 14px;
  margin-top: 6px;
}
.activity-item.has-header:not(:first-child)::before {
  /* hairline separator only above grouped blocks */
  content: '';
  position: absolute;
  top: 0;
  left: 46px; /* aligns with body, not avatar */
  right: 0;
  height: 1px;
  background: var(--border);
}

.activity-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--andy-cyan);
  background: linear-gradient(
    135deg,
    rgba(92, 200, 255, 0.16),
    rgba(164, 140, 255, 0.16)
  );
  border: 1px solid var(--border-strong);
}
.activity-item.bot .activity-avatar {
  color: var(--andy-violet);
  background: linear-gradient(
    135deg,
    rgba(164, 140, 255, 0.20),
    rgba(92, 200, 255, 0.10)
  );
}
.activity-item.continuation .activity-avatar {
  background: transparent;
  border: none;
}

.activity-body {
  min-width: 0;
  padding-top: 2px;
}

.activity-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.activity-sender {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
}
.activity-chat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}
.activity-chat::before {
  content: '·';
  margin-right: 6px;
  color: var(--fg-dim);
  opacity: 0.6;
}
.activity-time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  color: var(--fg-dim);
}

.activity-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  white-space: pre-wrap;
}
.activity-muted {
  color: var(--fg-dim);
}

.activity-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(92, 200, 255, 0.06);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-mid);
}
.activity-chip-icon {
  font-size: 14px;
  line-height: 1;
}

/* ─────────────────────────────────────────────────────────────────── */
/* MISC                                                               */
/* ─────────────────────────────────────────────────────────────────── */
.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--fg-dim);
  font-size: 13px;
  font-style: italic;
}

::selection {
  background: rgba(92, 200, 255, 0.30);
  color: var(--fg);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(159, 191, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(159, 191, 255, 0.30);
}

/* ─────────────────────────────────────────────────────────────────── */
/* RESPONSIVE                                                         */
/* ─────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar {
    width: 64px;
  }
  .sidebar-header {
    padding: 18px 14px;
    justify-content: center;
  }
  .logo-text {
    display: none;
  }
  .andy-cta {
    margin: 12px 8px 4px;
    padding: 10px;
    justify-content: center;
  }
  .andy-cta-text,
  .andy-cta-arrow {
    display: none;
  }
  .nav::before {
    display: none;
  }
  .nav-item {
    justify-content: center;
    padding: 12px 0;
  }
  .nav-item span:not(.nav-icon) {
    display: none;
  }
  .nav-item::before {
    margin: 0;
  }
  .main {
    padding: 24px 20px 36px;
  }
  .search-box input {
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-value {
    font-size: 30px;
  }
}

/* ===== WhatsApp label chips ===== */
.chat-labels {
  display: inline-flex;
  gap: 0.3rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.chat-label-chip {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  border: 1px solid;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
  white-space: nowrap;
}
.search-box {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.search-box select {
  padding: 0.35rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: inherit;
  font-size: 0.8rem;
}

/* ===== Leads tab ===== */
.leads-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin: 1rem 0;
}
.leads-summary {
  display: flex;
  gap: 1.5rem;
  padding: 0.85rem 1rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  margin-bottom: 1rem;
}
.leads-stat {
  font-size: 0.9rem;
  color: var(--text-secondary, #aaa);
}
.leads-stat strong {
  color: #fff;
  font-size: 1.15rem;
  margin-right: 0.3rem;
}
.leads-filter {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.leads-filter input {
  flex: 1;
  padding: 0.45rem 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: inherit;
  font-size: 0.85rem;
}
.leads-table-wrap {
  background: var(--bg-card, #1a1a1a);
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 8px;
  overflow: hidden;
}
.leads-table {
  width: 100%;
  border-collapse: collapse;
}
.leads-table th,
.leads-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}
.leads-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary, #888);
}
.leads-table tr.silent td {
  color: var(--text-secondary, #888);
}
.leads-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.leads-table a {
  color: #38bdf8;
  text-decoration: none;
}
.leads-table a:hover {
  text-decoration: underline;
}
.leads-table .muted {
  color: var(--text-secondary, #666);
}
.badge-admin {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Mensagens split view ===== */
.messages-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1rem;
  height: calc(100vh - 4rem);
  min-height: 480px;
}
.messages-picker {
  display: flex;
  flex-direction: column;
  background: var(--bg-card, #1a1a1a);
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 8px;
  overflow: hidden;
}
.messages-picker-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border, #2a2a2a);
}
.messages-picker-header h2 {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary, #888);
}
.messages-picker-search {
  margin: 0.5rem 0.75rem;
  padding: 0.45rem 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: inherit;
  font-size: 0.85rem;
}
.messages-picker-search:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.5);
}
.messages-picker-list {
  flex: 1;
  overflow-y: auto;
}
.picker-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  border-left: 3px solid transparent;
}
.picker-row:hover {
  background: rgba(255, 255, 255, 0.03);
}
.picker-row.active {
  background: rgba(56, 189, 248, 0.08);
  border-left-color: #38bdf8;
}
.picker-icon {
  font-size: 1rem;
}
.picker-name {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.picker-meta {
  font-size: 0.72rem;
  color: var(--text-secondary, #888);
}
.picker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.picker-dot.on { background: #4ade80; }
.picker-dot.off { background: #94a3b8; }

.messages-pane {
  display: flex;
  flex-direction: column;
  background: var(--bg-card, #1a1a1a);
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 8px;
  overflow: hidden;
}
.messages-pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border, #2a2a2a);
}
.messages-pane-header h1 {
  margin: 0;
  font-size: 1.05rem;
}
.messages-pane .messages-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}
.messages-empty {
  margin-top: 20vh;
  text-align: center;
}

@media (max-width: 800px) {
  .messages-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
  }
  .messages-picker {
    max-height: 40vh;
  }
}

/* ===== Compact chat rows + Settings modal ===== */
.chat-item.compact {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.9rem;
}
.chat-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chat-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}
.chat-status-pill.on {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.45);
  color: #4ade80;
}
.chat-status-pill.off {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}
.chat-status-pill.cta {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  font-weight: 600;
}
.chat-status-pill:hover {
  filter: brightness(1.15);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.chat-gear {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  color: var(--text-secondary, #aaa);
  transition: border-color 120ms ease, color 120ms ease;
}
.chat-gear:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.conv-settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.conv-settings-row:last-of-type {
  border-bottom: none;
}
.conv-settings-row.column {
  flex-direction: column;
  align-items: stretch;
}
.conv-settings-label strong {
  display: block;
  font-size: 0.9rem;
}
.conv-settings-label small {
  color: var(--text-secondary, #888);
  font-size: 0.75rem;
  display: block;
  margin-top: 0.15rem;
}
.seg-control {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.seg-control label {
  cursor: pointer;
  flex: 1 1 auto;
  min-width: 120px;
}
.seg-control input {
  display: none;
}
.seg-control span {
  display: block;
  text-align: center;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 0.8rem;
  transition: border-color 120ms ease, background 120ms ease;
}
.seg-control input:checked + span {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-weight: 600;
}

/* ===== Status overview grid ===== */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.overview-card .card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.card-eyebrow {
  font-size: 0.75rem;
  color: var(--text-secondary, #888);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cost-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cost-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: baseline;
  gap: 0.5rem;
}
.cost-label {
  color: var(--text-secondary, #888);
  font-size: 0.85rem;
}
.cost-amount {
  font-size: 1.4rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cost-meta {
  font-size: 0.75rem;
  color: var(--text-secondary, #888);
}
.cost-breakdown {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.cost-bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 70px;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.75rem;
}
.cost-bar-label {
  color: var(--text-secondary, #888);
  text-transform: lowercase;
}
.cost-bar {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
}
.cost-bar-fill {
  background: #5cf;
  height: 100%;
}
.cost-bar-val {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.activity-body,
.deflection-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.activity-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 0.5rem;
  align-items: baseline;
}
.activity-num {
  font-size: 1.4rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.activity-label {
  color: var(--text-secondary, #888);
  font-size: 0.85rem;
}
.card-foot {
  font-size: 0.75rem;
  color: var(--text-secondary, #888);
  margin-top: 0.5rem;
}
.task-row {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.task-row:last-child {
  border-bottom: none;
}
.task-prompt {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}
.task-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.7rem;
  color: var(--text-secondary, #888);
}
.topchat-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4rem 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.topchat-row:last-child {
  border-bottom: none;
}
.topchat-row:hover {
  background: rgba(255, 255, 255, 0.03);
}
.topchat-icon {
  font-size: 0.9rem;
}
.topchat-name {
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topchat-count {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-secondary, #888);
}
.health-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.health-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}
.health-row > span:first-child {
  color: var(--text-secondary, #888);
}
.recent-activity-compact .card-body {
  padding: 0.5rem 1rem;
}
.activity-compact-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.35rem 0;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.activity-compact-row:last-child { border-bottom: none; }
.activity-compact-row.bot .ac-sender { color: #5cf; }
.ac-sender { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-chat { display: none; }
.ac-body { color: var(--text-secondary, #aaa); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-time { color: var(--text-secondary, #888); font-size: 0.7rem; font-variant-numeric: tabular-nums; }

/* ===== Allowlist modal ===== */
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  cursor: pointer;
  user-select: none;
}
.allowlist-senders {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 6px;
  padding: 0.25rem 0;
  background: var(--bg-card, #1a1a1a);
}
.allowlist-sender-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  user-select: none;
}
.allowlist-sender-row:hover {
  background: var(--bg-hover, rgba(255, 255, 255, 0.04));
}
.allowlist-sender-name {
  font-size: 0.9rem;
}
.allowlist-sender-meta {
  font-size: 0.75rem;
  color: var(--text-secondary, #888);
}

/* ===== Andy ao vivo — Constelação ===== */
.page-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.live-swarm-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(120, 200, 255, 0.08);
  color: #8ed4ff;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(120, 200, 255, 0.22);
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor, 0 0 24px currentColor;
  animation: livePulse 1.3s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.constellation {
  position: relative;
  min-height: 320px;
  padding: 2.5rem 1.25rem;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(120, 200, 255, 0.07), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(180, 120, 255, 0.07), transparent 50%),
    linear-gradient(180deg, #07091a 0%, #0a0c20 100%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem 3rem;
  overflow: hidden;
  border: 1px solid rgba(120, 200, 255, 0.12);
}
.constellation::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,0.4) 0.5px, transparent 1px),
    radial-gradient(circle at 38% 65%, rgba(255,255,255,0.3) 0.5px, transparent 1px),
    radial-gradient(circle at 73% 25%, rgba(255,255,255,0.35) 0.5px, transparent 1px),
    radial-gradient(circle at 90% 80%, rgba(255,255,255,0.3) 0.5px, transparent 1px),
    radial-gradient(circle at 55% 12%, rgba(255,255,255,0.25) 0.5px, transparent 1px),
    radial-gradient(circle at 22% 88%, rgba(255,255,255,0.3) 0.5px, transparent 1px),
    radial-gradient(circle at 67% 50%, rgba(255,255,255,0.2) 0.5px, transparent 1px);
  pointer-events: none;
}
.constellation-empty {
  color: rgba(180, 200, 230, 0.5);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-style: italic;
  z-index: 1;
}

.orb-agent {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 180px;
  animation: orbFadeIn 0.6s ease;
  z-index: 1;
}
@keyframes orbFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.85); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.orb-agent.orb-dying { animation: orbFadeOut 0.6s ease forwards; }
@keyframes orbFadeOut {
  to { opacity: 0; transform: scale(0.6); }
}

.orb {
  position: relative;
  width: 110px;
  height: 110px;
}
.orb-core {
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #b8e1ff, #4d9eff 55%, #1a4fad 100%);
  box-shadow:
    0 0 20px rgba(120, 200, 255, 0.6),
    0 0 50px rgba(120, 200, 255, 0.4),
    inset 0 0 18px rgba(255, 255, 255, 0.25);
  animation: orbBreathe 2.4s ease-in-out infinite;
}
@keyframes orbBreathe {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.08); filter: brightness(1.2); }
}
.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(120, 200, 255, 0.35);
  pointer-events: none;
}
.orb-ring-1 { inset: 8px; border-style: dashed; animation: orbSpin 8s linear infinite; }
.orb-ring-2 { inset: 16px; border-color: rgba(180,220,255,0.25); animation: orbSpin 14s linear infinite reverse; }
.orb-ring-3 { inset: 0; border-color: rgba(120,200,255,0.15); animation: orbSpin 22s linear infinite; }
@keyframes orbSpin { to { transform: rotate(360deg); } }

.orb-state-tool_use .orb-core {
  background: radial-gradient(circle at 35% 35%, #c5d8ff, #8aa9ff 55%, #3a5bd8 100%);
  box-shadow: 0 0 22px rgba(140,170,255,0.7), 0 0 55px rgba(140,170,255,0.4);
}
.orb-state-agent_text .orb-core {
  background: radial-gradient(circle at 35% 35%, #fff0b8, #e6c14a 55%, #a8801f 100%);
  box-shadow: 0 0 22px rgba(230,193,74,0.7), 0 0 55px rgba(230,193,74,0.4);
}
.orb-state-message_sent .orb-core {
  background: radial-gradient(circle at 35% 35%, #e1c2ff, #c47de0 55%, #7a3aa8 100%);
  box-shadow: 0 0 22px rgba(196,125,224,0.7), 0 0 55px rgba(196,125,224,0.4);
}
.orb-state-container_exit .orb-core {
  background: radial-gradient(circle at 35% 35%, #c8c8c8, #888 55%, #444 100%);
  box-shadow: 0 0 12px rgba(180,180,180,0.3);
  animation: none;
  opacity: 0.55;
}
.orb-idle .orb-core { animation-duration: 4.8s; filter: brightness(0.7); }
.orb-idle .orb-ring-1 { animation-duration: 16s; }
.orb-idle .orb-ring-2 { animation-duration: 28s; }

.orb-flash .orb-core {
  animation: orbBreathe 2.4s ease-in-out infinite, orbShock 0.5s ease;
}
@keyframes orbShock {
  0% { transform: scale(1.2); filter: brightness(1.8); }
  100% { transform: scale(1); }
}

.orb-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8ed4ff;
  box-shadow: 0 0 8px currentColor;
  pointer-events: none;
  animation: orbBurst 0.9s ease-out forwards;
}
.orb-burst-tool_use { color: #8aa9ff; background: #8aa9ff; }
.orb-burst-agent_text { color: #e6c14a; background: #e6c14a; }
.orb-burst-message_sent { color: #c47de0; background: #c47de0; }
.orb-burst-container_spawn { color: #5cdf80; background: #5cdf80; }
.orb-burst-container_exit { color: #888; background: #888; }
@keyframes orbBurst {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.2); opacity: 0; }
}

.orb-label {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
}
.orb-name {
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: #e8f1ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.orb-state {
  color: #8ed4ff;
  font-style: italic;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.orb-idle .orb-state { color: rgba(150, 170, 200, 0.55); }
.orb-detail {
  color: rgba(200, 215, 235, 0.6);
  font-size: 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.orb-meta {
  color: rgba(150, 170, 200, 0.5);
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.live-stream-card { margin-top: 1.5rem; }

/* ===== Composer (Mensagens) ===== */
.composer {
  border-top: 1px solid rgba(120, 200, 255, 0.12);
  padding: 0.75rem 0.5rem 0.5rem;
  background: rgba(7, 9, 26, 0.6);
}
.composer-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}
.composer-input {
  flex: 1;
  resize: none;
  min-height: 38px;
  max-height: 140px;
  padding: 0.55rem 0.75rem;
  background: rgba(20, 25, 50, 0.65);
  border: 1px solid rgba(120, 200, 255, 0.2);
  border-radius: 10px;
  color: #e8f1ff;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.35;
  outline: none;
  transition: border-color 0.15s ease;
}
.composer-input:focus {
  border-color: rgba(120, 200, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(120, 200, 255, 0.08);
}
.composer-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(120, 200, 255, 0.22);
  background: rgba(20, 25, 50, 0.65);
  color: #8ed4ff;
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  position: relative;
}
.composer-btn:hover { background: rgba(120, 200, 255, 0.12); }
.composer-send {
  background: linear-gradient(135deg, #4d9eff, #7a3aa8);
  color: white;
  border-color: transparent;
  font-size: 0.95rem;
}
.composer-send:hover { filter: brightness(1.15); }
.composer-send:disabled { opacity: 0.4; cursor: not-allowed; filter: none; }

.composer-mic { position: relative; }
.composer-mic-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
}
.composer-mic.recording {
  background: rgba(255, 76, 76, 0.16);
  border-color: rgba(255, 76, 76, 0.4);
  color: #ff7676;
}
.composer-mic.recording .composer-mic-dot {
  background: #ff4c4c;
  box-shadow: 0 0 10px #ff4c4c, 0 0 18px #ff4c4c;
  animation: micPulse 0.9s ease-in-out infinite;
}
@keyframes micPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.composer-andy-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.composer-andy-toggle input { display: none; }
.composer-andy-pill {
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  background: rgba(20, 25, 50, 0.65);
  border: 1px solid rgba(120, 200, 255, 0.2);
  color: rgba(180, 200, 230, 0.55);
  transition: all 0.15s ease;
  white-space: nowrap;
}
.composer-andy-toggle input:checked ~ .composer-andy-pill {
  background: linear-gradient(135deg, #e6c14a, #c47de0);
  color: #1a1024;
  border-color: transparent;
  box-shadow: 0 0 14px rgba(230, 193, 74, 0.4);
}

.composer-wake-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.composer-wake-toggle input { display: none; }
.composer-wake-pill {
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  background: rgba(20, 25, 50, 0.65);
  border: 1px solid rgba(120, 200, 255, 0.2);
  color: rgba(180, 200, 230, 0.55);
  transition: all 0.15s ease;
  white-space: nowrap;
}
.composer-wake-toggle input:checked ~ .composer-wake-pill {
  background: linear-gradient(135deg, #5cdf80, #4d9eff);
  color: #07091a;
  border-color: transparent;
  box-shadow: 0 0 14px rgba(92, 223, 128, 0.4);
}
.composer-mic.wake-listening {
  background: rgba(92, 223, 128, 0.16);
  border-color: rgba(92, 223, 128, 0.4);
  color: #5cdf80;
}
.composer-mic.wake-listening .composer-mic-dot {
  background: #5cdf80;
  box-shadow: 0 0 10px #5cdf80, 0 0 18px #5cdf80;
  animation: micPulse 1.4s ease-in-out infinite;
}
.composer-mic.wake-listening.is-speaking {
  background: rgba(230, 193, 74, 0.2);
  border-color: rgba(230, 193, 74, 0.45);
  color: #e6c14a;
}
.composer-mic.wake-listening.is-speaking .composer-mic-dot {
  background: #e6c14a;
  box-shadow: 0 0 10px #e6c14a, 0 0 18px #e6c14a;
  animation: micPulse 0.7s ease-in-out infinite;
}

.composer-status {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: rgba(180, 200, 230, 0.55);
  letter-spacing: 0.03em;
  min-height: 1em;
}
.composer-status.error { color: #ff7676; }

.composer-preview {
  margin-bottom: 0.65rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(230, 193, 74, 0.35);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(230, 193, 74, 0.07), rgba(196, 125, 224, 0.04));
  animation: previewSlide 0.25s ease;
}
@keyframes previewSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.composer-preview-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e6c14a;
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.composer-preview-text {
  color: #e8f1ff;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  overflow-y: auto;
}
.composer-preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
.composer-preview.preview-dispatch {
  border-color: rgba(92, 223, 128, 0.5);
  background: linear-gradient(180deg, rgba(92, 223, 128, 0.08), rgba(77, 158, 255, 0.05));
}
.composer-preview.preview-dispatch .composer-preview-label {
  color: #5cdf80;
}
.composer-preview.preview-dispatch .composer-preview-label strong {
  color: #b8e1ff;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.composer-preview.preview-picker .composer-preview-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 280px;
}
.candidate-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  background: rgba(20, 25, 50, 0.55);
  border: 1px solid rgba(120, 200, 255, 0.18);
  border-radius: 8px;
  color: #e8f1ff;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.12s ease;
  font-family: inherit;
}
.candidate-row:hover {
  background: rgba(120, 200, 255, 0.12);
  border-color: rgba(120, 200, 255, 0.45);
}
.candidate-index {
  color: rgba(180, 200, 230, 0.55);
  font-variant-numeric: tabular-nums;
  min-width: 1.2em;
}
.candidate-name { font-weight: 500; }

.live-event-row {
  display: grid;
  grid-template-columns: 60px auto 1fr 2fr;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.3rem 0;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.live-event-row:last-child { border-bottom: none; }
.live-event-when {
  color: var(--text-secondary, #888);
  font-variant-numeric: tabular-nums;
}
.live-event-group {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-event-detail {
  color: var(--text-secondary, #aaa);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-tag {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  color: #ddd;
}
.live-tag-container_spawn { background: rgba(80, 220, 120, 0.15); color: #5cdf80; }
.live-tag-container_exit { background: rgba(255, 255, 255, 0.06); color: #888; }
.live-tag-tool_use { background: rgba(120, 160, 255, 0.15); color: #8aa9ff; }
.live-tag-agent_text { background: rgba(220, 180, 80, 0.15); color: #e6c14a; }
.live-tag-message_sent { background: rgba(180, 100, 220, 0.15); color: #c47de0; }
