/* ==========================================================================
   ALGEX SDX — Sovereign AI Oracle Cyber Widget (Dark/Light Responsive)
   ========================================================================== */

.ai-widget-wrapper {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1000;
  font-family: var(--font-sans);
}

/* Floating Launcher Button */
.ai-launcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 58, 138, 0.9));
  border: 1px solid var(--quantum-blue);
  border-radius: var(--radius-full);
  padding: 0.55rem 1.15rem 0.55rem 0.75rem;
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--quantum-glow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .ai-launcher-btn {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border: 1.5px solid #2563EB;
  color: #1E3A8A;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25);
}

.ai-launcher-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 30px var(--quantum-glow);
}

.ai-launcher-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.25);
  border: 1px solid var(--quantum-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--quantum-blue-light);
  position: relative;
}

[data-theme="light"] .ai-launcher-icon-wrap {
  background: #BFDBFE;
  color: #1D4ED8;
  border-color: #3B82F6;
}

.ai-pulse-ring {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 2px solid var(--quantum-blue);
  animation: pulseAiRing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}

@keyframes pulseAiRing {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

.ai-launcher-label {
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
}

.ai-online-badge {
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--instant-green);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

[data-theme="light"] .ai-online-badge {
  background: #ECFDF5;
  color: #047857;
  border-color: #A7F3D0;
}

/* Modal Window */
.ai-modal-container {
  position: absolute;
  left: 0;
  bottom: 64px;
  width: 460px;
  max-width: calc(100vw - 32px);
  height: 640px;
  max-height: calc(100vh - 120px);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(11, 15, 25, 0.99) 100%);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px var(--quantum-glow);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s;
  z-index: 1001;
}

[data-theme="light"] .ai-modal-container {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-color: #CBD5E1;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18), 0 0 30px rgba(37, 99, 235, 0.15);
}

.ai-modal-container.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Modal Header */
.ai-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(15, 23, 42, 0.85);
  flex-shrink: 0;
  gap: 0.75rem;
}

[data-theme="light"] .ai-modal-header {
  background: #F1F5F9;
  border-bottom-color: #E2E8F0;
}

.ai-header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.ai-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid var(--quantum-blue);
  color: var(--quantum-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

[data-theme="light"] .ai-header-icon {
  background: #DBEAFE;
  color: #1D4ED8;
  border-color: #93C5FD;
}

.ai-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.ai-header-title-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.ai-header-title-text {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
}

.ai-chip-tag {
  font-size: 0.65rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--parity-gold);
  font-weight: 800;
  white-space: nowrap;
}

[data-theme="light"] .ai-chip-tag {
  background: #FEF3C7;
  color: #D97706;
  border-color: #FCD34D;
}

.ai-header-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-status-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--instant-green);
  box-shadow: 0 0 8px var(--instant-green);
  animation: pulseGreen 2s infinite;
  flex-shrink: 0;
}

.ai-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.ai-action-btn {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.82rem;
}

[data-theme="light"] .ai-action-btn {
  border-color: #CBD5E1;
}

.ai-action-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  border-color: var(--quantum-blue);
}

.ai-close-btn:hover {
  color: #EF4444;
  border-color: #EF4444;
}

/* Quick Suggestion Chips */
.ai-chips-scroll {
  display: flex;
  gap: 0.45rem;
  padding: 0.6rem 0.9rem;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(11, 15, 25, 0.6);
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
}

[data-theme="light"] .ai-chips-scroll {
  background: #F8FAFC;
  border-bottom-color: #E2E8F0;
}

.ai-chips-scroll::-webkit-scrollbar {
  display: none;
}

.ai-chip-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.75rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

[data-theme="light"] .ai-chip-btn {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #475569;
}

.ai-chip-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--quantum-blue);
  color: var(--quantum-blue-light);
  transform: translateY(-1px);
}

[data-theme="light"] .ai-chip-btn:hover {
  background: #EFF6FF;
  border-color: #3B82F6;
  color: #1D4ED8;
}

/* Messages Area */
.ai-messages-area {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--quantum-blue) transparent;
}

.ai-messages-area::-webkit-scrollbar {
  width: 5px;
}

.ai-messages-area::-webkit-scrollbar-thumb {
  background: var(--quantum-blue);
  border-radius: 4px;
}

/* Message Bubble */
.ai-message {
  display: flex;
  gap: 0.75rem;
  max-width: 95%;
  animation: fadeInMsg 0.25s ease-out;
}

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

.ai-user-message {
  align-self: flex-start;
  flex-direction: row;
  max-width: 88%;
}

.ai-bot-message {
  align-self: flex-end;
  flex-direction: row-reverse;
  max-width: 92%;
}

.ai-msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.ai-bot-message .ai-msg-avatar {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid var(--quantum-blue);
  color: var(--quantum-blue-light);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .ai-bot-message .ai-msg-avatar {
  background: #DBEAFE;
  color: #1D4ED8;
  border-color: #93C5FD;
}

.ai-user-message .ai-msg-avatar {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--instant-green);
  color: var(--instant-green);
}

[data-theme="light"] .ai-user-message .ai-msg-avatar {
  background: #D1FAE5;
  color: #059669;
  border-color: #6EE7B7;
}

.ai-msg-content {
  flex: 1;
  min-width: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .ai-msg-content {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.ai-user-message .ai-msg-content {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.85), rgba(37, 99, 235, 0.85));
  border-color: var(--quantum-blue);
  color: #FFFFFF;
}

[data-theme="light"] .ai-user-message .ai-msg-content {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #FFFFFF;
}

.ai-msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ai-msg-author {
  font-weight: 800;
  color: var(--quantum-blue-light);
}

[data-theme="light"] .ai-msg-author {
  color: #1D4ED8;
}

.ai-user-message .ai-msg-author {
  color: #A7F3D0;
}

.ai-msg-text {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text-primary);
}

.ai-user-message .ai-msg-text {
  color: #FFFFFF;
}

.ai-msg-text p {
  margin: 0.45rem 0;
}

.ai-msg-text p:first-child {
  margin-top: 0;
}

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

.ai-msg-text strong {
  color: var(--parity-gold-light);
  font-weight: 700;
}

[data-theme="light"] .ai-msg-text strong {
  color: #B45309;
}

.ai-user-message .ai-msg-text strong {
  color: #FEF08A;
}

/* Headings in AI bot response */
.ai-heading-3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--quantum-blue-light);
  margin: 0.75rem 0 0.35rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.3);
  padding-bottom: 0.2rem;
}

[data-theme="light"] .ai-heading-3 {
  color: #1E40AF;
  border-bottom-color: #BFDBFE;
}

.ai-heading-4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--parity-gold);
  margin: 0.65rem 0 0.3rem;
}

[data-theme="light"] .ai-heading-4 {
  color: #D97706;
}

/* Formatted Mathematical Block */
.ai-formula-block {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-right: 3px solid var(--quantum-blue);
  border-radius: 6px;
  padding: 0.55rem 0.85rem;
  margin: 0.6rem 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #67E8F9;
  direction: ltr;
  text-align: center;
}

[data-theme="light"] .ai-formula-block {
  background: #F0F9FF;
  border-color: #BAE6FD;
  border-right-color: #0284C7;
  color: #0369A1;
}

.ai-inline-formula {
  font-family: var(--font-mono);
  color: #38BDF8;
  font-weight: 700;
  padding: 0 0.2rem;
}

[data-theme="light"] .ai-inline-formula {
  color: #0284C7;
}

.ai-inline-tag {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid #334155;
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #F8FAFC;
}

[data-theme="light"] .ai-inline-tag {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0F172A;
}

/* Lists (Unordered & Numbered) */
.ai-msg-list,
.ai-msg-text ul {
  margin: 0.5rem 1.35rem 0.5rem 0;
  padding: 0;
  padding-right: 0.5rem;
  list-style-type: disc;
  list-style-position: outside;
  font-size: 0.86rem;
  line-height: 1.7;
  direction: rtl;
  text-align: right;
}

.ai-msg-num-list,
.ai-msg-text ol {
  margin: 0.5rem 1.35rem 0.5rem 0;
  padding: 0;
  padding-right: 0.5rem;
  list-style-type: decimal;
  list-style-position: outside;
  font-size: 0.86rem;
  line-height: 1.7;
  direction: rtl;
  text-align: right;
}

.ai-msg-list li,
.ai-msg-text ul li,
.ai-msg-num-list li,
.ai-msg-text ol li {
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.ai-msg-list li::marker,
.ai-msg-text ul li::marker {
  color: var(--quantum-blue-light, #38BDF8);
  font-size: 1.1em;
}

[data-theme="light"] .ai-msg-list li::marker,
[data-theme="light"] .ai-msg-text ul li::marker {
  color: #2563EB;
}

.ai-divider {
  border: none;
  border-top: 1px dashed var(--border-glass);
  margin: 0.65rem 0;
}

/* Responsive Table */
.ai-table-wrap {
  overflow-x: auto;
  margin: 0.6rem 0;
}

.ai-resp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.ai-resp-table th {
  background: rgba(30, 41, 59, 0.9);
  color: var(--quantum-blue-light);
  padding: 0.35rem 0.6rem;
  text-align: right;
  border: 1px solid #334155;
}

.ai-resp-table td {
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(51, 65, 85, 0.6);
  color: var(--text-secondary);
}

[data-theme="light"] .ai-resp-table th {
  background: #F1F5F9;
  color: #1E40AF;
  border-color: #CBD5E1;
}

[data-theme="light"] .ai-resp-table td {
  border-color: #E2E8F0;
  color: #334155;
}

.ai-msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.ai-copy-msg-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.ai-copy-msg-btn:hover {
  color: var(--quantum-blue-light);
  background: rgba(59, 130, 246, 0.1);
}

/* Advanced Thinking & Skeleton Loading Card */
.ai-skeleton-card {
  display: flex;
  gap: 0.75rem;
  align-self: flex-end;
  flex-direction: row-reverse;
  width: 100%;
  max-width: 90%;
  animation: fadeInMsg 0.2s ease-out;
}

.ai-avatar-pulse {
  animation: avatarGlow 1.5s infinite alternate;
}

@keyframes avatarGlow {
  0% { box-shadow: 0 0 5px var(--quantum-blue); }
  100% { box-shadow: 0 0 15px var(--quantum-blue-light), 0 0 25px var(--quantum-glow); }
}

.ai-skeleton-body {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 250px;
}

[data-theme="light"] .ai-skeleton-body {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.ai-thinking-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--quantum-blue-light);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

[data-theme="light"] .ai-thinking-header {
  color: #1D4ED8;
}

.ai-thinking-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-top-color: var(--quantum-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.ai-thinking-dots span {
  animation: waveDots 1.4s infinite;
  display: inline-block;
  font-weight: 900;
}

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

@keyframes waveDots {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

.ai-skeleton-line {
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(59, 130, 246, 0.25) 50%, rgba(255, 255, 255, 0.05) 100%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
}

[data-theme="light"] .ai-skeleton-line {
  background: linear-gradient(90deg, #E2E8F0 0%, #BFDBFE 50%, #E2E8F0 100%);
  background-size: 200% 100%;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.ai-skeleton-line.short { width: 50%; }
.ai-skeleton-line.medium { width: 75%; }
.ai-skeleton-line.long { width: 95%; }

/* Input Container */
.ai-input-container {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border-glass);
  background: rgba(15, 23, 42, 0.9);
  flex-shrink: 0;
}

[data-theme="light"] .ai-input-container {
  background: #F1F5F9;
  border-top-color: #E2E8F0;
}

.ai-form-wrap {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
}

.ai-textarea-wrap {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.75rem;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

[data-theme="light"] .ai-textarea-wrap {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.ai-textarea-wrap:focus-within {
  border-color: var(--quantum-blue);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
}

.ai-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.4;
  resize: none;
  min-height: 36px;
  max-height: 100px;
  overflow-x: hidden !important;
  overflow-y: auto;
  word-break: break-word;
  white-space: pre-wrap;
  direction: rtl;
  box-sizing: border-box;
  scrollbar-width: thin;
}

.ai-textarea::-webkit-scrollbar {
  width: 4px;
  height: 0px !important;
}

.ai-textarea::-webkit-scrollbar:horizontal {
  display: none !important;
  height: 0px !important;
  width: 0px !important;
}

.ai-textarea::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 4px;
}

.ai-textarea::placeholder {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.ai-input-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.2rem;
}

.ai-char-counter {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.ai-send-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--quantum-blue), #2563EB);
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-bounce);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.ai-send-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.ai-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobile Responsiveness — Compact Floating Brain Icon Button Only */
@media (max-width: 768px) {
  .ai-widget-wrapper {
    left: 16px;
    bottom: calc(var(--dock-height, 60px) + 24px + env(safe-area-inset-bottom, 0px));
    z-index: 1060;
  }

  .ai-launcher-btn {
    width: 50px;
    height: 50px;
    min-width: 50px;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55), 0 0 16px var(--quantum-glow);
  }

  .ai-launcher-icon-wrap {
    width: 42px;
    height: 42px;
    margin: 0;
    background: transparent;
    border: none;
    font-size: 1.25rem;
  }

  .ai-pulse-ring {
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
  }

  .ai-launcher-label,
  .ai-online-badge {
    display: none !important;
  }

  .ai-modal-container {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(var(--dock-height, 60px) + 24px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: 100%;
    height: 76vh;
    border-radius: var(--radius-md);
  }
}

@media print {
  .ai-widget-wrapper,
  .ai-launcher-btn,
  .ai-modal-container,
  #ai-widget-wrapper,
  #ai-assistant-modal {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}
