/* ═══════════════════════════════════════════════════════════
   AP FLOATING BUBBLE — Persistent Widget Styles
   ═══════════════════════════════════════════════════════════ */

/* Bubble Button */
#ap-bubble-root {
  position: fixed;
  inset: 0;
  width: 0;
  height: 0;
  z-index: 10050;
  pointer-events: none;
}

#ap-bubble-btn {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: 20px;
  width: 66px;
  height: 66px;
  border-radius: 24px;
  background: #09090b;
  border: 1px solid rgba(var(--metal-rgb), 0.72);
  cursor: pointer;
  z-index: 10052;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(var(--metal-rgb), 0.3), 0 0 0 1px rgba(var(--metal-rgb), 0.2);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  outline: none;
  isolation: isolate;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.ap-bubble-logo-shell {
  position: absolute;
  inset: 3px;
  overflow: hidden;
  border-radius: 21px;
  z-index: 2;
  pointer-events: none;
}

.ap-bubble-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
  transform-origin: center;
}

.ap-bubble-thinking-glint {
  position: absolute;
  left: 50%;
  top: 49%;
  width: 7px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 38%, #fff7cf 62%, rgba(255,231,159,0));
  box-shadow: 0 0 7px rgba(255,255,255,.98), 0 0 14px rgba(255,225,139,.86);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translate(-50%, 19px) scaleY(.7);
  z-index: 3;
  pointer-events: none;
}

#ap-bubble-btn.ap-thinking .ap-bubble-thinking-glint {
  animation: apButtonGlint 1.05s cubic-bezier(.35,.03,.2,1) infinite;
}

#ap-bubble-btn.ap-thinking {
  box-shadow: 0 5px 30px rgba(227, 192, 105, .46), 0 0 0 1px rgba(255, 236, 180, .42), 0 0 36px rgba(151, 118, 255, .2);
}

:root[data-theme="light"] .ap-bubble-thinking-glint {
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 38%, #e4eaf1 62%, rgba(187,198,210,0));
  box-shadow: 0 0 7px rgba(255,255,255,.98), 0 0 14px rgba(164,176,190,.88);
}

:root[data-theme="light"] #ap-bubble-btn.ap-thinking {
  box-shadow: 0 5px 30px rgba(var(--metal-rgb), .32), 0 0 0 1px rgba(var(--metal-rgb), .4), 0 0 36px rgba(102,84,215,.14);
}

.ap-bubble-presence {
  position: absolute;
  right: 2px;
  bottom: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #7ee4ad;
  border: 2px solid #0b0a11;
  box-shadow: 0 0 10px rgba(126,228,173,0.7);
  z-index: 3;
}

#ap-bubble-btn::before,
#ap-bubble-btn::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
}

#ap-bubble-btn::before {
  background: conic-gradient(from 0deg, rgba(var(--metal-rgb), 0), rgba(var(--metal-rgb), 0.55), rgba(123,104,238,0.35), rgba(var(--metal-rgb), 0));
  opacity: 0.35;
  filter: blur(8px);
  animation: apAuraDrift 8s linear infinite;
}

#ap-bubble-btn::after {
  border: 1px solid rgba(var(--metal-rgb), 0.28);
  animation: apBreath 4.8s ease-in-out infinite;
}

#ap-bubble-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 32px rgba(var(--metal-rgb), 0.4), 0 0 0 1px rgba(var(--metal-rgb), 0.3);
}

#ap-bubble-btn:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 5px;
}

#ap-bubble-btn:active {
  transform: scale(0.96);
}

#ap-bubble-btn.panel-open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(0.94);
}

#ap-bubble-btn.pulse {
  animation: apPulse 2s ease-in-out infinite;
}

.ap-mobile-widget {
  display: none;
}

.ap-mobile-action {
  border: 1px solid rgba(var(--metal-rgb), 0.22);
  background: rgba(13, 13, 20, 0.86);
  color: var(--text-primary);
  border-radius: 999px;
  min-height: 40px;
  min-width: 0;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28), inset 0 0 0 1px rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform 0.15s var(--ease-spring), border-color 0.15s, background 0.15s;
}

.ap-mobile-action:active {
  transform: scale(0.96);
}

.ap-mobile-action-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--metal-rgb), 0.14);
  color: var(--gold);
  font-size: 10px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ap-mobile-action.active {
  border-color: rgba(255, 113, 113, 0.48);
  background: rgba(78, 22, 28, 0.92);
}

.ap-mobile-action.active .ap-mobile-action-icon {
  background: rgba(255, 113, 113, 0.18);
  color: #ff8d8d;
  animation: apMobileListenPulse 1.4s ease-in-out infinite;
}

.ap-msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ap-result-cards {
  display: grid;
  gap: 8px;
  width: min(100%, 430px);
  margin-top: 7px;
}

.ap-result-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(var(--metal-rgb), .3);
  border-radius: 13px;
  background: color-mix(in srgb, var(--card-surface, #17151d) 92%, transparent);
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
}

.ap-result-card:not(:has(.ap-result-card-image)) { grid-template-columns: 1fr; }
.ap-result-card-image { width:72px;height:100%;min-height:92px;object-fit:cover;background:var(--bg-secondary); }
.ap-result-card-body { min-width:0;padding:9px 10px; }
.ap-result-card-meta { display:block;color:var(--metal, #d9ba70);font-size:10px;text-transform:uppercase;letter-spacing:.08em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.ap-result-card-title { display:block;margin-top:3px;color:var(--text-primary);font-size:13px;line-height:1.25; }
.ap-result-card-description { margin:4px 0 0;color:var(--text-secondary);font-size:11px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.ap-result-card-actions { display:flex;flex-wrap:wrap;gap:6px;margin-top:8px; }
.ap-result-card-action { border:0;border-radius:999px;background:var(--metal, #d9ba70);color:#0c0b0e;padding:5px 9px;font:inherit;font-size:10px;font-weight:700;text-decoration:none;cursor:pointer; }
.ap-result-card-action.secondary { background:transparent;color:var(--text-primary);box-shadow:inset 0 0 0 1px var(--border); }

@media (max-width: 520px) {
  .ap-result-card { grid-template-columns:60px minmax(0, 1fr); }
  .ap-result-card-image { width:60px;min-height:86px; }
}

.ap-msg-action {
  border: 1px solid rgba(var(--metal-rgb), 0.26);
  background: rgba(var(--metal-rgb), 0.1);
  color: var(--text-primary);
  border-radius: 999px;
  min-height: 30px;
  padding: 5px 9px;
  font: 700 11px/1.2 'DM Sans', sans-serif;
  letter-spacing: 0;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.ap-msg-action:hover {
  border-color: rgba(var(--metal-rgb), 0.5);
  background: rgba(var(--metal-rgb), 0.16);
}

.ap-msg-action:active {
  transform: scale(0.97);
}

.ap-msg-action.needs-review {
  border-color: rgba(255, 196, 87, 0.38);
  background: rgba(255, 196, 87, 0.1);
}

@keyframes apMobileListenPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 113, 113, 0.28); }
  50% { box-shadow: 0 0 0 8px rgba(255, 113, 113, 0); }
}

#ap-bubble-btn.ap-context-pulse::after {
  animation: apContextRipple 1.6s ease-out 1;
}

@keyframes apAuraDrift {
  to { transform: rotate(360deg); }
}

@keyframes apBreath {
  0%, 100% { transform: scale(0.98); opacity: 0.45; }
  50% { transform: scale(1.12); opacity: 0.12; }
}

@keyframes apButtonGlint {
  0%, 8% { opacity: 0; transform: translate(-50%, 19px) scaleY(.7); }
  18% { opacity: 1; }
  74% { opacity: 1; }
  88%, 100% { opacity: 0; transform: translate(-50%, -24px) scaleY(.9); }
}

@media (prefers-reduced-motion: reduce) {
  #ap-bubble-btn.ap-thinking .ap-bubble-thinking-glint {
    animation: none;
    opacity: .85;
    transform: translate(-50%, -5px) scaleY(.82);
  }
}

@keyframes apContextRipple {
  0% { transform: scale(0.9); opacity: 0.65; box-shadow: 0 0 0 0 rgba(var(--metal-rgb), 0.35); }
  100% { transform: scale(1.45); opacity: 0; box-shadow: 0 0 0 18px rgba(var(--metal-rgb), 0); }
}

@keyframes apPulse {
  0%, 100% {
    box-shadow: 0 4px 24px rgba(var(--metal-rgb), 0.3), 0 0 0 1px rgba(var(--metal-rgb), 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 4px 32px rgba(var(--metal-rgb), 0.5), 0 0 0 2px rgba(var(--metal-rgb), 0.4), 0 0 48px rgba(var(--metal-rgb), 0.2);
    transform: scale(1.08);
  }
}

/* Notification Badge */
#ap-bubble-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--bg-void);
  display: none;
}

#ap-bubble-badge.visible {
  display: block;
}

#ap-bubble-badge.has-count {
  width: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  color: white;
  border-radius: 9px;
}

/* Chat Panel */
#ap-bubble-panel {
  position: fixed;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  right: 20px;
  width: 360px;
  height: min(520px, calc(100dvh - 124px));
  background: linear-gradient(180deg, rgba(18,18,26,0.98), rgba(9,9,14,0.98));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  z-index: 10051;
  pointer-events: auto;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.68), 0 0 0 1px rgba(255,255,255,0.04), 0 0 42px rgba(var(--metal-rgb), 0.08);
  animation: apPanelEnter var(--dur-normal) var(--ease-out-expo) forwards;
}

#ap-bubble-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(137,113,245,0.8), rgba(var(--metal-rgb), 0.88), transparent);
  z-index: 2;
  pointer-events: none;
}

#ap-bubble-panel.open {
  display: flex;
}

#ap-bubble-panel.expanded {
  right: 24px;
  bottom: 24px;
  width: min(720px, calc(100vw - 48px));
  height: min(82dvh, 760px);
  border-radius: 26px;
  z-index: 10053;
}

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

/* Mobile: full-width bottom sheet */
@media (max-width: 480px) {
  .ap-mobile-widget {
    display: none !important;
  }

  #ap-bubble-btn {
    display: flex;
    right: 14px;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    width: 62px;
    height: 62px;
  }

  #ap-bubble-panel {
    right: 8px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 16px);
    height: min(68dvh, calc(100dvh - 7rem));
    border-radius: 24px;
  }

  #ap-bubble-panel.expanded {
    inset: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    width: auto;
    height: auto;
    max-height: none;
    border-radius: 24px;
  }

}

@media (min-width: 481px) {
  .ap-mobile-widget {
    display: none !important;
  }
}

/* Header */
.ap-bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 13px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(128, 101, 233, 0.18), transparent 46%),
    linear-gradient(90deg, rgba(255,255,255,0.025), rgba(var(--metal-rgb), 0.035));
}

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

.ap-bubble-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #f7e5ad 0 5%, #7867dc 23%, #21182f 68%, #09090e 100%);
  border: 1px solid rgba(var(--metal-rgb), 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(123,104,238,0.24);
}

.ap-bubble-identity { min-width: 0; }

.ap-bubble-eyebrow {
  margin-bottom: 2px;
  color: rgba(var(--metal-rgb), 0.78);
  font: 700 8px/1.1 'DM Sans', sans-serif;
  letter-spacing: 0.16em;
}

.ap-bubble-identity-line,
.ap-bubble-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ap-bubble-name {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.ap-bubble-status {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
}

.ap-bubble-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #7ee4ad;
  box-shadow: 0 0 7px rgba(126,228,173,0.58);
}

.ap-bubble-status.degraded {
  color: var(--gold);
}

.ap-bubble-status.reconnecting {
  color: var(--text-secondary);
}

.ap-bubble-close,
.ap-bubble-header-control {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 16px;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.ap-bubble-close:hover,
.ap-bubble-header-control:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
}

.ap-bubble-header-control[aria-pressed="true"] {
  color: var(--gold);
  background: rgba(var(--metal-rgb), 0.12);
}

.ap-context-chip {
  margin: 10px 12px 0;
  padding: 8px 10px;
  border: 1px solid rgba(var(--metal-rgb), 0.16);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(123,104,238,0.11), rgba(var(--metal-rgb), 0.07));
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  cursor: pointer;
  text-align: left;
}

.ap-context-chip::before {
  content: 'LIVE';
  flex: 0 0 auto;
  color: #8ee7b5;
  font: 800 8px/1 'DM Sans', sans-serif;
  letter-spacing: 0.12em;
}

.ap-context-domain {
  color: var(--gold);
  font: 700 10px/1.2 'DM Sans', sans-serif;
}

.ap-context-space {
  overflow: hidden;
  color: var(--text-secondary);
  font: 500 11px/1.2 'DM Sans', sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Message Thread */
.ap-bubble-thread {
  flex: 1;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-glass) transparent;
}

.ap-bubble-thread::-webkit-scrollbar {
  width: 4px;
}

.ap-bubble-thread::-webkit-scrollbar-track {
  background: transparent;
}

.ap-bubble-thread::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: 2px;
}

.ap-bubble-thread::-webkit-scrollbar-thumb:hover {
  background: var(--border-active);
}

/* Message Bubbles */
.ap-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  animation: apMsgEnter 0.2s var(--ease-out-expo) forwards;
  opacity: 0;
}

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

.ap-msg-ap {
  align-self: flex-start;
}

.ap-msg-user {
  align-self: flex-end;
}

.ap-msg-system {
  align-self: center;
  max-width: 90%;
}

.ap-msg-content {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}

.ap-msg-ap .ap-msg-content {
  background: linear-gradient(135deg, rgba(123,104,238,0.12), rgba(24,23,33,0.96) 48%);
  border: 1px solid rgba(147,126,235,0.14);
  box-shadow: inset 2px 0 0 rgba(var(--metal-rgb), 0.42);
  border-bottom-left-radius: 4px;
}

.ap-msg-user .ap-msg-content {
  background: var(--gold-gradient);
  color: var(--bg-void);
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

.ap-msg-system .ap-msg-content {
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
  text-align: center;
  padding: 4px 8px;
}

.ap-msg-time {
  font-size: 10px;
  color: var(--text-ghost);
  margin-top: 3px;
  padding: 0 4px;
  font-family: 'DM Sans', sans-serif;
}

.ap-msg-ap .ap-msg-time {
  align-self: flex-start;
}

.ap-msg-user .ap-msg-time {
  align-self: flex-end;
}

.ap-msg-system .ap-msg-time {
  display: none;
}

/* Proactive indicator */
.ap-msg-ap.proactive .ap-msg-content::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--ai-primary);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  animation: apPulse 2s ease-in-out infinite;
}

/* Typing Indicator */
.ap-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  max-width: 60px;
}

.ap-typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: apTypingBounce 1.2s ease-in-out infinite;
}

.ap-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ap-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes apTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Input Row */
.ap-bubble-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(12,12,18,0.72), rgba(7,7,11,0.98));
  flex-shrink: 0;
}

.ap-bubble-input {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-width: 0;
}

.ap-bubble-input::placeholder {
  color: var(--text-muted);
}

.ap-bubble-input:focus {
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.ap-bubble-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-gradient);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-void);
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.15s var(--ease-spring), box-shadow 0.15s;
  outline: none;
}

.ap-bubble-send:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(var(--metal-rgb), 0.3);
}

.ap-bubble-send:active {
  transform: scale(0.94);
}

.ap-bubble-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.ap-attachment {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  max-width: 260px;
}

.ap-attachment img,
.ap-attachment video {
  max-width: 100%;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}

.ap-attachment-audio {
  width: 100%;
}

.ap-attachment-document {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
}

.ap-attachment-simulation {
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed var(--border-glass);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-muted);
}

.ap-bubble-attach {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
  flex-shrink: 0;
  outline: none;
}

.ap-bubble-attach:hover {
  color: var(--gold);
  border-color: var(--gold-border);
}

/* Empty state */
.ap-bubble-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  text-align: center;
  padding: 24px;
}

.ap-bubble-empty-icon {
  font-size: 28px;
  opacity: 0.4;
}
