/* Liro Assistant - Fullscreen Kiosk Shell & Glassmorphism Theme */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #020408;
  color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: none;
}

#app-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Fullscreen Avatar Canvas */
.access-panel {
  position: absolute;
  z-index: 4;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 104px);
  width: min(400px, calc(100% - 32px));
  padding: 20px;
  background: #0b1521;
  border: 1px solid #294255;
  border-radius: 14px;
}
.access-panel h2 { font-size: 20px; margin-bottom: 8px; }
.access-panel.hidden, #mobile-link-details.hidden { display: none; }
.access-panel p, .mobile-link-section p { font-size: 14px; line-height: 1.5; color: #cbdce9; margin: 8px 0; }
.access-panel label { display: block; font-size: 13px; margin: 16px 0 8px; }
.access-fields { display: flex; gap: 10px; }
.access-fields input { min-width: 0; width: 100%; padding: 12px; border: 1px solid #47718a; border-radius: 8px; background: #020408; color: #f8fafc; font: inherit; font-size: 22px; letter-spacing: 0.12em; user-select: text; }
.access-fields button { flex: none; min-height: 48px; }
.access-panel input:focus-visible, .mobile-link-section button:focus-visible { outline: 2px solid #35bef5; outline-offset: 3px; }
.access-panel #access-error { color: #ffb7ac; margin-bottom: 0; }
.mobile-link-section { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid #294255; }
.mobile-link-section h3 { font-size: 18px; }
.mobile-link-section img { display: block; max-width: 100%; margin: 16px auto; border-radius: 8px; }
#mobile-link-code { font-variant-numeric: tabular-nums; font-size: 24px; letter-spacing: .15em; user-select: text; }

#liro-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  touch-action: none;
  cursor: pointer;
}

/* Floating Glassmorphic Status Pill */
.status-pill {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 28px);
  left: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100% - 100px);
  color: #cbdce9;
  font-size: 13px;
  z-index: 3;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.status-pill.sleeping .status-dot {
  background: #64748b;
  box-shadow: 0 0 8px rgba(100, 116, 139, 0.5);
}

.status-pill.connecting .status-dot,
.status-pill.confused .status-dot {
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
}

.status-pill.error .status-dot {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
}

/* Floating Glassmorphic Action Card */
.action-card {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 88px);
  left: 50%;
  transform: translateX(-50%) translateY(0);
  width: min(90vw, 420px);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 20px;
  color: #f8fafc;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 20;
  opacity: 1;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-card.hidden {
  transform: translateX(-50%) translateY(40px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.card-header {
  margin-bottom: 10px;
}

.card-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 9999px;
}

.card-preview {
  white-space: pre-wrap;
  max-height: 35vh;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.5;
  color: #e2e8f0;
  margin-bottom: 18px;
  word-break: break-word;
}

.card-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  outline: none;
  transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
}

.btn:active {
  transform: scale(0.97);
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
}

.btn-confirm {
  background: #38bdf8;
  color: #020408;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.btn-confirm:hover {
  background: #7dd3fc;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.55);
}

/* Floating Bottom Controls (Hidden for clean minimalist voice-first avatar) */
.controls-bottom,
.quick-input-bar {
  display: flex;
}

.controls-bottom {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  left: 50%;
  transform: translateX(-50%);
  gap: 16px;
  z-index: 15;
}

.conversation-caption {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 48px);
  left: 50%;
  transform: translateX(-50%);
  width: min(88vw, 620px);
  max-height: 20vh;
  overflow-y: auto;
  white-space: pre-wrap;
  color: #cbdce9;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  user-select: text;
  -webkit-user-select: text;
  z-index: 3;
  scrollbar-width: thin;
  scrollbar-color: #526b80 transparent;
}

button:focus-visible, input:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 4px; }
::selection { background: #1c5063; color: #fff; }
input { caret-color: #7dd3fc; }

.btn-mic, .btn-keyboard {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  touch-action: manipulation;
}

.btn-mic:active, .btn-keyboard:active {
  transform: scale(0.92);
}

.btn-mic.listening {
  background: rgba(13, 148, 136, 0.85);
  color: #ffffff;
  border-color: #2dd4bf;
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.55);
  animation: none;
}

@keyframes pulseMic {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 0 25px rgba(45, 212, 191, 0.8); }
  100% { transform: scale(1); }
}

.btn-mic.muted {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

/* Quick Text Input Bar */
.quick-input-bar {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 86px);
  left: 50%;
  width: min(calc(100vw - 40px), 460px);
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 4px 6px 4px 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.quick-input-bar.hidden {
  transform: translateX(-50%) translateY(30px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.conversation-caption.keyboard-open,
.action-card.keyboard-open { bottom: calc(env(safe-area-inset-bottom, 0px) + 150px); }

.quick-input-bar input {
  min-width: 0;
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 14px;
}

.quick-input-bar input::placeholder {
  color: #a8bccf;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

@media (max-height: 540px) {
  .conversation-caption { bottom: 80px; max-height: 12vh; font-size: 12px; }
  .controls-bottom { bottom: 16px; }
}

.btn-send {
  background: #38bdf8;
  color: #020408;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-send:active {
  transform: scale(0.95);
}

/* Floating Menu Button (Top Right) */
.btn-floating-menu {
  position: absolute;
  top: calc(env(safe-area-inset-top, 20px) + 16px);
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.btn-floating-menu:hover {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.btn-floating-menu:active {
  transform: scale(0.92);
}

/* Modal Centro de Conexiones */
.modal-connections {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

@media (min-width: 640px) {
  .modal-connections {
    align-items: center;
  }
}

.modal-connections.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 4, 8, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7), 0 0 1px rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .modal-content {
    border-radius: 28px;
    max-height: 82vh;
  }
}

.modal-connections.hidden .modal-content {
  transform: translateY(100%);
}

@media (min-width: 640px) {
  .modal-connections.hidden .modal-content {
    transform: translateY(40px) scale(0.96);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 24px 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.modal-subtitle {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 2px;
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.modal-body {
  padding: 20px 24px 32px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* WhatsApp Personal Active Card */
.integration-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 18px;
  transition: all 0.3s ease;
}

.integration-card.active-card {
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.08);
}

.card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-icon {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.card-info {
  flex: 1;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.card-name {
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-connected {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.badge-waiting {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-disconnected {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.card-mode-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
  margin-bottom: 4px;
}

.card-priority-contact {
  font-size: 12px;
  color: #38bdf8;
  font-weight: 500;
}

/* Connected View */
.wa-connected-view {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.connection-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #38bdf8;
}

.stat-label {
  font-size: 11px;
  color: #94a3b8;
}

.connected-hint {
  font-size: 11px;
  color: #4ade80;
  line-height: 1.4;
}

.btn-danger-outline {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
}

.connection-actions-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Synced Chats Section */
.synced-chats-section {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  margin-top: 8px;
}

.synced-chats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.synced-chats-header h5 {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-text-action {
  background: transparent;
  border: none;
  color: #38bdf8;
  font-size: 11px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-text-action:hover {
  background: rgba(56, 189, 248, 0.15);
}

.synced-chats-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.chat-item-row {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-item-name {
  font-size: 12px;
  font-weight: 600;
  color: #f1f5f9;
}

.chat-item-time {
  font-size: 10px;
  color: #64748b;
}

.chat-item-body {
  font-size: 11px;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 48px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.chat-item-empty {
  font-size: 12px;
  color: #64748b;
  text-align: center;
  padding: 12px;
}

/* Voice Latency Mode Selector */
.voice-mode-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.voice-mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.voice-mode-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.voice-mode-btn:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(56, 189, 248, 0.3);
}

.voice-mode-btn.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: #38bdf8;
}

.voice-mode-btn .mode-icon {
  font-size: 18px;
}

.voice-mode-btn .mode-text {
  display: flex;
  flex-direction: column;
}

.voice-mode-btn .mode-title {
  font-size: 12px;
  font-weight: 600;
  color: #f8fafc;
}

.voice-mode-btn.active .mode-title {
  color: #38bdf8;
}

.voice-mode-btn .mode-desc {
  font-size: 10px;
  color: #94a3b8;
}

/* Link View (Tabs) */
.wa-link-view {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  background: rgba(15, 23, 42, 0.6);
  padding: 4px;
  border-radius: 12px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

.tab-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tab-panel.hidden {
  display: none;
}

/* QR Panel */
.qr-container {
  width: 200px;
  height: 200px;
  background: #ffffff;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
}

.qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.qr-loading {
  font-size: 12px;
  color: #0f172a;
  text-align: center;
  font-weight: 500;
}

.qr-instructions {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
  text-align: left;
  width: 100%;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Phone Pairing Panel */
.phone-desc {
  font-size: 12px;
  color: #cbd5e1;
  text-align: left;
  width: 100%;
}

.phone-input-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.phone-input-row input {
  flex: 1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.phone-input-row input:focus {
  border-color: #38bdf8;
}

.btn-primary {
  background: #38bdf8;
  color: #020408;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary:active {
  transform: scale(0.96);
}

.pairing-code-display {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}

.pairing-title {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.code-digits {
  font-family: monospace;
  font-size: 24px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.15em;
  margin-bottom: 6px;
}

.pairing-instructions {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.4;
}

/* Other Integrations Grid */
.other-integrations-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.integrations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 480px) {
  .integrations-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.integration-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
  opacity: 0.75;
}

.item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-business-icon {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.gmail-icon {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.zoho-icon {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.notion-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.system-icon {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
}

.item-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.item-name {
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
}

.item-badge {
  font-size: 10px;
  font-weight: 500;
  color: #94a3b8;
}

.conversation-caption.has-proposal { opacity: 0; visibility: hidden; pointer-events: none; }

#lr-login-form { display: grid; gap: 10px; margin-top: 14px; }
#lr-login-form.hidden { display: none; }
#lr-login-form label { color: #cbd5e1; font-size: 13px; }
#lr-login-form input { width: 100%; min-height: 44px; box-sizing: border-box; padding: 10px 12px; border: 1px solid #334155; border-radius: 10px; background: #0f172a; color: #e2e8f0; font-size: 16px; }
#lr-login-form input:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
