/* /assets/css/livechat.css
   AdvancingBud Livechat Widget (2025)
   Uses app.css theme tokens
   -------------------------------------------------------- */

.ab-chat-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999; /* ensure above any overlays */
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
}

/* Floating button */
.ab-chat-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--border));
  background:
    radial-gradient(circle at 0 0, rgba(255,255,255,.12) 0%, transparent 50%),
    var(--brand);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 18px 38px -16px rgba(0,0,0,.65), 0 0 0 1px rgba(0,0,0,.45);
  transition: transform .18s ease, box-shadow .18s ease, background .2s;
}

.ab-chat-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.8);
  background:
    radial-gradient(circle at 0 0, rgba(255,255,255,.18) 0%, transparent 60%),
    color-mix(in srgb, var(--brand) 90%, #f97373);
}

.ab-chat-bubble span {
  white-space: nowrap;
}

/* Bubble status pill */
.ab-chat-badge-pill {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  color: rgba(248, 250, 252, 0.95);
  font-size: 0.72rem;
  font-weight: 500;
}

/* Status pill colors */
.ab-chat-badge-pill.ab-chat-badge--online {
  background: #22c55e !important;    /* bright green */
  color: #0b2c16 !important;
}

.ab-chat-badge-pill.ab-chat-badge--away {
  background: #eab308 !important;    /* yellow/gold */
  color: #3b3000 !important;
}

.ab-chat-badge-pill.ab-chat-badge--offline {
  background: #ef4444 !important;    /* red */
  color: #3f0a0a !important;
}

/* Panel wrapper */
.ab-chat-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 380px;          /* desktop width */
  height: 430px;         /* fixed height */
  max-height: 70vh;      /* don’t explode on short screens */
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 80%, transparent) 0%, var(--surface-strong) 80%),
    var(--surface-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.ab-chat-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Header */
.ab-chat-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface-strong);
}

.ab-chat-header-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ab-chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.ab-chat-title {
  font-family: var(--font-heading, 'Space Grotesk', system-ui);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
}

.ab-chat-subtitle {
  font-size: 0.75rem;
  color: rgba(249,250,251,.8);
}

/* Status dot + row in header */
.ab-chat-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34,197,94,.20);
  flex-shrink: 0;
}

.ab-chat-status-dot.offline {
  background: #9ca3af;
  box-shadow: 0 0 0 6px rgba(156,163,175,.24);
}

.ab-chat-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.ab-chat-status-row .ab-chat-sound-toggle {
  margin-left: 2px;
}

/* Sound toggle buttons (visitor + operator) */
.ab-chat-sound-toggle,
.ab-chat-op-sound-toggle {
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: 999px;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--surface-glass, var(--surface-2)) 90%, transparent) 0%,
      color-mix(in srgb, var(--surface-2) 80%, transparent) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  min-width: 26px;
  height: 24px;
  font-size: 0.78rem; /* keeps the emoji compact */
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.9;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease,
    transform 0.08s ease;
}

.ab-chat-sound-toggle:hover,
.ab-chat-op-sound-toggle:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--surface-glass, var(--surface-2)) 95%, transparent) 0%,
      color-mix(in srgb, var(--surface-2) 88%, transparent) 100%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 18%, transparent);
  opacity: 1;
  transform: translateY(-0.5px);
}

/* Muted state – a bit dimmer */
.ab-chat-sound-toggle.is-muted,
.ab-chat-op-sound-toggle.is-muted {
  opacity: 0.55;
  border-color: color-mix(in srgb, var(--border) 85%, transparent);
  box-shadow: none;
}

/* Close btn */
.ab-chat-close {
  border: none;
  background: transparent;
  color: rgba(249,250,251,.9);
  cursor: pointer;
  padding: 4px;
}
.ab-chat-close svg {
  width: 18px;
  height: 18px;
}

/* Body: layout container */
.ab-chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 12px 8px;
  gap: 8px;
  height: 100%;
  overflow: hidden; /* messages scroll inside */
}

/* Identity step (visitor) */
.ab-chat-identity-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.ab-chat-identity-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-strong);
}

.ab-chat-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-accent);
  padding: 8px 10px;
  font-size: 0.8rem;
  color: var(--text-strong);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.ab-chat-input::placeholder {
  color: var(--muted);
}

.ab-chat-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-glow);
}

/* Messages list */
.ab-chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scroll-behavior: smooth;
}
.ab-chat-messages::-webkit-scrollbar {
  width: 6px;
}
.ab-chat-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

/* Message bubble */
.ab-chat-msg-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.ab-chat-msg-row.me {
  justify-content: flex-end;
}

.ab-chat-msg-bubble {
  max-width: 84%;
  padding: 8px 11px;
  border-radius: 14px;
  font-size: 0.8rem;
  line-height: 1.4;
  position: relative;
  word-wrap: break-word;
  box-shadow: 0 8px 16px -10px rgba(0,0,0,.75);
}

.ab-chat-msg-bubble.me {
  border-bottom-right-radius: 4px;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--brand) 88%, #f97373) 0%,
      color-mix(in srgb, var(--brand) 70%, #f97373) 60%);
  color: #fff;
}

.ab-chat-msg-bubble.them {
  border-bottom-left-radius: 4px;
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
  color: var(--text-strong);
}

.ab-chat-msg-meta {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 2px;
}

.ab-chat-msg-row.me .ab-chat-msg-meta {
  text-align: right;
}

/* Input row – always visible at bottom */
.ab-chat-input-row {
  flex: 0 0 auto;
  border-top: 1px solid var(--divider);
  padding: 6px 10px 8px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  background: color-mix(in srgb, var(--bg-accent) 80%, transparent);
  position: relative;
  z-index: 2;
}

.ab-chat-textarea {
  flex: 1;
  min-height: 34px;
  max-height: 76px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-accent);
  padding: 8px 12px;
  resize: none;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--text-strong);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.ab-chat-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-glow);
}

.ab-chat-identity-summary {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 4px 0 4px;
}

/* Modern buttons: Start chat + Send (visitor + operator) */
.ab-chat-identity-btn,
.ab-chat-send,
.ab-chat-op-send {
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--brand) 90%, #f97373) 0%,
      color-mix(in srgb, var(--brand) 70%, #f97373) 100%);
  box-shadow:
    0 6px 14px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(255,255,255,.12);
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    filter .15s ease,
    background .15s ease;
}

/* Hover */
.ab-chat-identity-btn:hover:not(:disabled),
.ab-chat-send:hover:not(:disabled),
.ab-chat-op-send:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    0 10px 22px rgba(0,0,0,.45),
    inset 0 0 0 1px rgba(255,255,255,.18);
}

/* Active (pressed) */
.ab-chat-identity-btn:active:not(:disabled),
.ab-chat-send:active:not(:disabled),
.ab-chat-op-send:active:not(:disabled) {
  transform: translateY(0);
  filter: brightness(0.95);
  box-shadow:
    0 4px 10px rgba(0,0,0,.4),
    inset 0 0 0 1px rgba(255,255,255,.15);
}

/* Disabled state */
.ab-chat-identity-btn:disabled,
.ab-chat-send:disabled {
  opacity: .45;
  cursor: default;
  transform: none;
  box-shadow: none;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--surface-3) 70%, transparent) 0%,
      color-mix(in srgb, var(--surface-glass) 80%, transparent) 100%);
  color: var(--muted);
}

/* Fix alignment inside input row */
.ab-chat-send {
  height: 36px;
  padding: 0 16px;
}

/* Spacing around Start chat button */
.ab-chat-identity-btn {
  margin-top: 6px;
  margin-bottom: 10px;
}

/* Small "offline" note */
.ab-chat-offline-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 4px;
}

/* ==========================================
   MOBILE / NARROW SCREENS
   ========================================== */
@media (max-width: 768px) {

  /* Center the bubble horizontally */
  .ab-chat-root {
    left: 0;
    right: 0;
    bottom: 16px;
    display: flex;
    justify-content: center;
    pointer-events: none;          /* only bubble + panel clickable */
  }

  .ab-chat-bubble {
    pointer-events: auto;
  }

  /* Panel uses almost full width, capped in height */
  .ab-chat-panel {
    position: absolute;
    right: auto;
    left: 50%;
    bottom: 72px;
    transform: translateX(-50%) translateY(16px);
    width: calc(100vw - 24px);
    max-width: 420px;
    height: auto;
    max-height: 80vh;
  }

  .ab-chat-panel.is-open {
    transform: translateX(-50%) translateY(0);
  }
}

/* ---------------------------------------------------------
   Operator console layout (inside livechat pop-out)
   --------------------------------------------------------- */

.ab-chat-root--operator .ab-chat-panel {
  /* base pop-out behaviour from visitor widget is kept */
}

/* Main operator shell */
.ab-chat-panel--operator {
  width: 1120px;
  max-width: min(1120px, 100vw - 32px);
  height: 680px;
  max-height: calc(100vh - 80px);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--brand) 9%, transparent) 0%, transparent 55%),
    var(--surface-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Header -------------------------------------------------- */

.ab-chat-header--operator {
  padding: 12px 18px;
  border-bottom: 1px solid var(--divider);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-glass) 85%, transparent) 0%, transparent 80%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.ab-chat-header--operator .ab-chat-header-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ab-chat-header--operator .ab-chat-avatar {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
  background: color-mix(in srgb, var(--brand) 70%, #000);
}

.ab-chat-header--operator .ab-chat-title {
  font-size: 0.95rem;
  letter-spacing: .03em;
}

.ab-chat-header--operator .ab-chat-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
}

/* right side controls in header */
.ab-chat-op-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding-left: 12px;
  border-left: 1px solid var(--divider);
}

.ab-chat-op-status-label {
  font-size: 0.78rem;
  color: var(--muted);
}

.ab-chat-op-status-select {
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: var(--bg-accent);
  color: var(--text-strong);
  appearance: auto;
  background-image: none;
}

/* Close button */
.ab-chat-header--operator .ab-chat-close {
  margin-left: 4px;
  border-radius: 999px;
}
.ab-chat-header--operator .ab-chat-close:hover {
  background: var(--surface-2);
}

/* Layout grid --------------------------------------------- */

.ab-chat-op-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 0;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--surface) 70%, transparent) 0%, transparent 70%),
    var(--surface-strong);
}

/* Left side: conversations list --------------------------- */

.ab-chat-op-left {
  border-right: 1px solid var(--border-subtle, var(--divider));
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

/* segmented control for filters */
.ab-chat-op-filters {
  display: flex;
  gap: 6px;
  padding: 10px 10px 8px;
}

.ab-chat-op-filter {
  flex: 1;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  padding: 5px 6px;
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--text-muted, var(--muted));
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.ab-chat-op-filter.is-active {
  border-color: color-mix(in srgb, var(--brand) 30%, var(--border));
  background: color-mix(in srgb, var(--brand) 10%, var(--surface-2));
  color: var(--text-strong);
}

/* Sessions list */
.ab-chat-op-session-list {
  flex: 1;
  overflow: auto;
  padding: 4px 8px 10px;
}

.ab-chat-op-session-list::-webkit-scrollbar {
  width: 6px;
}
.ab-chat-op-session-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

/* individual session tiles */
.ab-chat-op-session {
  width: 100%;
  text-align: left;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  padding: 7px 9px;
  margin-bottom: 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background .12s ease, border-color .12s ease, transform .08s ease;
}

.ab-chat-op-session:hover {
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
}

.ab-chat-op-session.is-mine {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
}

/* currently open session highlight */
.ab-chat-op-session.is-current {
  border-color: var(--brand);
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--brand) 12%, transparent) 0%,
      color-mix(in srgb, var(--surface-2) 90%, transparent) 50%);
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
  transform: translateY(-1px);
}

/* live chat indicator */
.ab-chat-op-session.is-active-chat::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(34,197,94,.18);
  margin-right: 6px;
  align-self: center;
}

/* text hierarchy inside session tile */
.ab-chat-op-session-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ab-chat-op-session-subject {
  font-size: 0.76rem;
  color: var(--text-muted, var(--muted));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ab-chat-op-session-meta {
  font-size: 0.7rem;
  color: var(--text-soft, var(--muted));
}

/* Right side: active conversation ------------------------- */

.ab-chat-op-right {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* sticky mini-header with contact + ticket key */
.ab-chat-op-ticket-header {
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle, var(--divider));
  display: flex;
  align-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--surface-glass) 90%, transparent);
  position: sticky;
  top: 0;
  z-index: 2;
}

/* ticket key pill */
.ab-chat-op-ticket-header::after {
  content: attr(data-ticket-key);
  margin-left: auto;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* history strip */
.ab-chat-op-history {
  padding: 6px 12px 4px;
  border-bottom: 1px solid var(--border-subtle, var(--divider));
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}

.ab-chat-op-history-title {
  font-size: 0.74rem;
  font-weight: 500;
  margin-bottom: 2px;
  color: var(--muted);
}

.ab-chat-op-history-list {
  max-height: 70px;
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ab-chat-op-history-row {
  font-size: 0.7rem;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--bg-accent);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  color: var(--text-soft, var(--text));
  white-space: nowrap;
}

/* main messages area */
.ab-chat-op-messages {
  flex: 1;
  padding: 10px 14px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand) 9%, transparent) 0%, transparent 55%),
    var(--surface-strong);
}

.ab-chat-op-messages::-webkit-scrollbar {
  width: 6px;
}
.ab-chat-op-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

/* message bubbles */
.ab-chat-op-msg-row {
  max-width: 80%;
}

.ab-chat-op-msg-row.from-user {
  align-self: flex-start;
}

.ab-chat-op-msg-row.from-op {
  align-self: flex-end;
}

.ab-chat-op-msg-row.from-system {
  align-self: center;
}

.ab-chat-op-msg-bubble {
  border-radius: 14px;
  padding: 7px 10px;
  font-size: 0.8rem;
  background: var(--surface-2);
  color: var(--text-strong);
  box-shadow: var(--shadow-sm);
}

/* user bubble */
.ab-chat-op-msg-row.from-user .ab-chat-op-msg-bubble {
  background: color-mix(in srgb, var(--accent) 80%, var(--surface-2));
}

/* operator bubble */
.ab-chat-op-msg-row.from-op .ab-chat-op-msg-bubble {
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--brand) 88%, #f97373) 0%,
      color-mix(in srgb, var(--brand) 70%, #f97373) 60%);
  color: #fff;
}

/* subtle inline system text */
.ab-chat-op-msg-row.from-system .ab-chat-op-msg-bubble {
  background: transparent;
  font-style: italic;
  color: var(--muted);
  box-shadow: none;
}

.ab-chat-op-msg-meta {
  font-size: 0.7rem;
  margin-top: 2px;
  color: var(--text-soft, var(--muted));
}

.ab-chat-op-msg-row.from-op .ab-chat-op-msg-meta {
  text-align: right;
}

/* Composer ------------------------------------------------- */

.ab-chat-op-composer {
  border-top: 1px solid var(--border-subtle, var(--divider));
  padding: 8px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 85%, transparent) 0%, transparent 80%);
}

.ab-chat-op-textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-accent);
  padding: 7px 10px;
  font-size: 0.8rem;
  resize: none;
  min-height: 42px;
  max-height: 96px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.ab-chat-op-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-glow);
  background: var(--surface-strong);
}

.ab-chat-op-composer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

/* Convert button */
.ab-chat-op-convert {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 5px 12px;
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  color: var(--text-muted, var(--muted));
}
.ab-chat-op-convert:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--text-strong);
}
.ab-chat-op-convert:disabled {
  opacity: .55;
  cursor: default;
}

/* Small helper */
.ab-chat-op-empty {
  padding: 10px 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Responsive: narrow view just stacks the two columns */
@media (max-width: 900px) {
  .ab-chat-panel--operator {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
  .ab-chat-op-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .ab-chat-op-left {
    display: none;
  }
}
