/* ============================================
   AI ASSISTANT — Floating Chat
   Gloop button + glassmorphism chat window
   ============================================ */

/* ---- Gloop Button ---- */

.ai-gloop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  width: 56px;
  height: 56px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ai-gloop:hover {
  transform: scale(1.08);
}

.ai-gloop:active {
  transform: scale(0.95);
}

.ai-gloop svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
}

/* Breathing animation */
.ai-gloop-blob {
  animation: gloopBreathe 4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes gloopBreathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.03) rotate(1deg); }
  50% { transform: scale(0.97) rotate(-1deg); }
  75% { transform: scale(1.02) rotate(0.5deg); }
}

/* Hover: stretch apart */
.ai-gloop:hover .ai-gloop-blob {
  animation: gloopStretch 1.2s ease-in-out infinite;
}

@keyframes gloopStretch {
  0%, 100% { transform: scaleX(1) scaleY(1); }
  50% { transform: scaleX(1.12) scaleY(0.92); }
}

/* Hidden when chat is open */
.ai-gloop.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
  transition: all 0.3s ease;
}

/* ---- Chat Window ---- */

.ai-chat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 501;
  width: 380px;
  height: 560px;
  max-height: calc(100vh - 48px);
  max-width: calc(100vw - 48px);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;

  background: rgba(20, 20, 22, 0.92);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset;

  /* Entry animation */
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ai-chat.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Expanded workspace mode */
.ai-chat.is-expanded {
  width: 460px;
  height: calc(100vh - 48px);
  max-height: none;
}

/* Preview area */
.ai-chat-preview {
  display: none;
  flex-shrink: 0;
}

.ai-chat-preview.is-active {
  display: block;
  height: 50%;
  min-height: 300px;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border-radius: 0;
}

.ai-preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Header */
.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.ai-chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #f472b6, #fbbf24);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gloopBreathe 4s ease-in-out infinite;
}

.ai-chat-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.ai-chat-header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ai-chat-expand {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.15s;
  line-height: 1;
}

.ai-chat-expand:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.ai-chat-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: all 0.15s;
  line-height: 1;
}

.ai-chat-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Messages */
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: none;
}

.ai-chat-messages::-webkit-scrollbar {
  display: none;
}

.ai-chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.ai-chat-msg--user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.ai-chat-msg--ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  border-bottom-left-radius: 6px;
}

.ai-chat-msg--ai p {
  margin: 0 0 8px;
}

.ai-chat-msg--ai p:last-child {
  margin-bottom: 0;
}

.ai-chat-msg--ai strong {
  font-weight: 600;
  color: #fff;
}

/* Tab bar */
.ai-chat-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.ai-chat-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.3);
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.15s;
}

.ai-chat-tab:hover { color: rgba(255, 255, 255, 0.6); }

.ai-chat-tab.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .ai-chat-tabs { border-top-color: rgba(0, 0, 0, 0.06); }
[data-theme="light"] .ai-chat-tab { color: rgba(0, 0, 0, 0.3); }
[data-theme="light"] .ai-chat-tab:hover { color: rgba(0, 0, 0, 0.6); }
[data-theme="light"] .ai-chat-tab.is-active { color: #111; background: rgba(0, 0, 0, 0.06); }

/* Tab content */
.ai-chat-tab-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  min-height: 0;
}

.ai-tab-pane {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  scrollbar-width: none;
}

.ai-tab-pane::-webkit-scrollbar { display: none; }

.ai-tab-pane.is-active {
  display: block;
}

.ai-tab-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
  text-align: center;
}

[data-theme="light"] .ai-tab-empty { color: rgba(0, 0, 0, 0.3); }

/* Component grid */
.ai-component-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.ai-component-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.ai-component-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.ai-component-item i {
  font-size: 14px;
  opacity: 0.5;
}

[data-theme="light"] .ai-component-item {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
  color: #555;
}
[data-theme="light"] .ai-component-item:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #111;
}

/* Properties inside chat (unified panel) */
.ai-chat-properties {
  padding: 0;
}

.ai-chat-properties label {
  color: rgba(255,255,255,0.5);
}

.ai-chat-properties input,
.ai-chat-properties textarea,
.ai-chat-properties select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
}

.ai-chat-properties input:focus,
.ai-chat-properties textarea:focus,
.ai-chat-properties select:focus {
  border-color: rgba(255,255,255,0.2);
  outline: none;
}

[data-theme="light"] .ai-chat-properties input,
[data-theme="light"] .ai-chat-properties textarea,
[data-theme="light"] .ai-chat-properties select {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
  color: #111;
}

[data-theme="light"] .ai-chat-properties label {
  color: rgba(0,0,0,0.5);
}

/* Word-by-word cascade */
.ai-word {
  display: inline;
  opacity: 0;
  animation: wordFadeIn 0.25s ease forwards;
}

@keyframes wordFadeIn {
  from { opacity: 0; filter: blur(2px); transform: translateY(4px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

.ai-chat-msg--system {
  align-self: center;
  background: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  text-align: center;
  padding: 4px 0;
}

/* Plan confirmation */
.ai-chat-plan {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.ai-chat-plan-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.ai-chat-plan-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.ai-chat-plan-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: none;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.ai-chat-plan-btn--confirm {
  background: #fff;
  color: #000;
}

.ai-chat-plan-btn--confirm:hover {
  background: #e5e5e5;
}

.ai-chat-plan-btn--cancel {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.ai-chat-plan-btn--cancel:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Thinking indicator */
.ai-chat-thinking {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  align-self: flex-start;
}

.ai-chat-thinking-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  animation: thinkPulse 1.4s ease-in-out infinite;
}

.ai-chat-thinking-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-chat-thinking-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes thinkPulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(1); }
  40% { opacity: 1; transform: scale(1.2); }
}

/* Input */
.ai-chat-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.ai-chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 10px 16px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.ai-chat-input:focus {
  border-color: rgba(255, 255, 255, 0.16);
}

.ai-chat-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.ai-chat-send {
  background: var(--text-color);
  color: var(--bg-color);
  border: none;
  font-size: 14px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.ai-chat-send:hover {
  opacity: 0.8;
}

/* Welcome state */
.ai-chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 32px 24px;
  text-align: center;
  gap: 16px;
}

.ai-chat-welcome-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #f472b6, #fbbf24);
  animation: gloopBreathe 4s ease-in-out infinite;
}

.ai-chat-welcome h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.ai-chat-welcome p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  line-height: 1.5;
}

.ai-chat-suggestions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
}

.ai-chat-suggestion {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.ai-chat-suggestion:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ---- Cursor sparkle + hold ring ---- */

.ai-cursor-sparkle {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  width: 40px;
  height: 40px;
  will-change: transform;
  display: none;
}

.ai-cursor-sparkle.is-visible {
  display: block;
}

.ai-cursor-sparkle-icon {
  display: none;
}

/* Liquid magnification lens — sits behind the ring */
.ai-liquid-svg {
  position: absolute;
  width: 0;
  height: 0;
}

.ai-liquid-lens {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120,160,255,0.15) 0%, rgba(168,85,247,0.08) 40%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: width 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
              height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
              opacity 0.3s ease,
              box-shadow 0.4s ease;
}

.ai-cursor-sparkle.is-holding .ai-liquid-lens {
  opacity: 1;
}

.ai-cursor-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    #60a5fa 0deg,
    #a855f7 calc(var(--progress, 0) * 180deg),
    #f472b6 calc(var(--progress, 0) * 360deg),
    rgba(255,255,255,0.06) calc(var(--progress, 0) * 360deg)
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 1.5px));
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 1;
}

.ai-cursor-sparkle.is-holding .ai-cursor-ring,
.ai-cursor-sparkle.is-rewinding .ai-cursor-ring {
  opacity: 1;
}

/* ---- Context Popup (long-press) ---- */

.ai-context-popup {
  position: fixed;
  z-index: 600;
  opacity: 0;
  transform: scale(0.9) translateY(8px);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.ai-context-popup.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.ai-context-bubble {
  background: rgba(20, 20, 22, 0.95);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px 16px;
  max-width: 320px;
  min-width: 220px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.ai-context-bubble strong {
  font-weight: 600;
  color: #fff;
}

.ai-context-text {
  margin-bottom: 10px;
}

.ai-context-thinking {
  display: flex;
  gap: 6px;
  padding: 4px 0;
}

.ai-context-expand {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.15s;
}

.ai-context-expand:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.ai-context-expand i {
  font-size: 12px;
}

/* Inline fields in context popup */
.ai-context-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.ai-context-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ai-context-field-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ai-context-field-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 7px 10px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.ai-context-field-input:focus {
  border-color: rgba(255,255,255,0.2);
}

.ai-context-field-textarea {
  min-height: 48px;
  resize: vertical;
}

/* Component type label */
.ai-context-component-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

[data-theme="light"] .ai-context-component-label { color: rgba(0,0,0,0.35); }

/* AI input in popup */
.ai-context-input-wrap {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.ai-context-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 8px 14px;
  color: #fff;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.ai-context-input::placeholder {
  color: rgba(255,255,255,0.25);
}

.ai-context-input:focus {
  border-color: rgba(255,255,255,0.16);
}

/* Light theme */
[data-theme="light"] .ai-context-field-label { color: rgba(0,0,0,0.4); }
[data-theme="light"] .ai-context-field-input {
  background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); color: #111;
}
[data-theme="light"] .ai-context-field-input:focus { border-color: rgba(0,0,0,0.2); }
[data-theme="light"] .ai-context-fields { border-top-color: rgba(0,0,0,0.06); }
[data-theme="light"] .ai-context-input {
  background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); color: #111;
}
[data-theme="light"] .ai-context-input::placeholder { color: rgba(0,0,0,0.3); }
[data-theme="light"] .ai-context-input-wrap { border-top-color: rgba(0,0,0,0.06); }

/* Light theme */
[data-theme="light"] .ai-context-bubble {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.1);
  color: #444;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .ai-context-bubble strong { color: #111; }
[data-theme="light"] .ai-context-expand { background: rgba(0, 0, 0, 0.05); color: #666; }
[data-theme="light"] .ai-context-expand:hover { background: rgba(0, 0, 0, 0.1); color: #111; }

/* ---- Editor mode: hide tray, position chat inside canvas ---- */

/* Hide the floating properties panel — properties show in tray instead */
.ve-properties-panel {
  display: none !important;
}

/* Hide gloop + chat on visual editor — tray handles everything */
body.visual-editor-open .ai-gloop {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0.5) !important;
  transition: all 0.2s ease !important;
}
body.visual-editor-open .ai-chat {
  display: none !important;
}

/* Always show gloop on insights/fans page */
body.page-fans .ai-gloop,
body.page-analytics .ai-gloop {
  display: block !important;
}

/* Push gloop inside main content when sidebar is open */
body.right-sidebar-open .ai-gloop {
  right: calc(var(--right-sidebar-width, 390px) + var(--panel-inset, 10px) + 24px);
}

body.right-sidebar-open .ai-chat {
  right: calc(var(--right-sidebar-width, 390px) + var(--panel-inset, 10px) + 24px);
}

/* ---- Mobile ---- */

/* Mobile AI button in bottom nav — monochrome */
.mobile-bottom-ai i {
  color: var(--text-muted);
}

/* Mobile: hide gloop, AI is in bottom nav */
@media (max-width: 899.98px) {
  .ai-gloop {
    display: none;
  }

  .ai-chat {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
  }
}

/* Light theme */
[data-theme="light"] .ai-chat {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .ai-chat-header {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .ai-chat-title { color: #111; }
[data-theme="light"] .ai-chat-close { color: rgba(0, 0, 0, 0.4); }
[data-theme="light"] .ai-chat-close:hover { color: #111; background: rgba(0, 0, 0, 0.05); }

[data-theme="light"] .ai-chat-msg--user { background: #111; color: #fff; }
[data-theme="light"] .ai-chat-msg--ai { background: rgba(0, 0, 0, 0.04); color: #333; }
[data-theme="light"] .ai-chat-msg--ai strong { color: #111; }

[data-theme="light"] .ai-chat-input {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #111;
}
[data-theme="light"] .ai-chat-input::placeholder { color: rgba(0, 0, 0, 0.35); }
[data-theme="light"] .ai-chat-input-wrap { border-top-color: rgba(0, 0, 0, 0.06); }
[data-theme="light"] .ai-chat-send { color: rgba(0, 0, 0, 0.4); }
[data-theme="light"] .ai-chat-send:hover { color: #111; }

[data-theme="light"] .ai-chat-welcome h3 { color: #111; }
[data-theme="light"] .ai-chat-welcome p { color: rgba(0, 0, 0, 0.5); }
[data-theme="light"] .ai-chat-suggestion { background: rgba(0, 0, 0, 0.03); border-color: rgba(0, 0, 0, 0.06); color: #555; }
[data-theme="light"] .ai-chat-suggestion:hover { background: rgba(0, 0, 0, 0.06); color: #111; }
