.mx-launcher { position: fixed; z-index: 30; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px; height: 52px; min-width: 44px; padding: 0 18px 0 14px; border: 0; border-radius: 26px; background: #2563eb; color: #fff; font-family: inherit; font-weight: 750; font-size: 15px; line-height: 1; cursor: pointer; box-shadow: 0 14px 30px -10px rgba(37, 99, 235, .65); }
.mx-launcher[hidden], .mx-launcher.mx-away, .mx-teaser[hidden], .mx-scrim[hidden], .mx-dialog[hidden] { display: none; }
.mx-launcher:hover { background: #1d4ed8; }
.mx-launcher:focus-visible, .mx-dialog button:focus-visible, .mx-dialog a:focus-visible, .mx-input:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.mx-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(15, 23, 42, .45); animation: mx-fade .2s ease-out; }
.mx-dialog { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; height: min(88dvh, 744px); box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; background: #fff; color: #0f172a; font-family: inherit; border-radius: 22px 22px 0 0; animation: mx-rise .24s ease-out; }
.mx-grabber { flex: none; display: flex; justify-content: center; padding-top: 8px; }
.mx-grabber span { width: 36px; height: 4px; border-radius: 2px; background: #dfe5ee; }
.mx-header { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-bottom: 1px solid #dfe5ee; }
.mx-avatar { width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #2563eb; color: #fff; font-size: 16px; font-weight: 800; }
.mx-titles { flex: 1; min-width: 0; }
.mx-name { font-size: 16px; font-weight: 750; line-height: 1.2; }
.mx-subtitle { font-size: 12px; line-height: 1.3; color: #526077; }
.mx-close { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: #526077; cursor: pointer; }
.mx-list-view { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; padding: 16px; font-size: 15px; line-height: 1.45; }
.mx-bubble { align-self: flex-start; max-width: 92%; box-sizing: border-box; padding: 12px 14px; border-radius: 16px 16px 16px 6px; background: #f1f5fb; overflow-wrap: anywhere; }
.mx-user { align-self: flex-end; max-width: 82%; box-sizing: border-box; padding: 10px 14px; border-radius: 16px 16px 6px 16px; background: #2563eb; color: #fff; line-height: 1.4; overflow-wrap: anywhere; }
.mx-p { margin: 0; color: inherit; }
.mx-p + .mx-p, .mx-p + .mx-list, .mx-list + .mx-p, .mx-list + .mx-list { margin-top: 10px; }
.mx-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.mx-draft { color: #526077; }
.mx-refusal { color: #526077; border: 1px dashed #c8d1df; background: #f8fafd; }
.mx-answer { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.mx-wait { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px 16px 16px 6px; background: #f1f5fb; font-size: 14px; color: #526077; }
.mx-dots { display: flex; gap: 4px; }
.mx-dots span { width: 6px; height: 6px; border-radius: 3px; background: #2563eb; animation: mx-dot 1.2s infinite ease-in-out; }
.mx-dots span:nth-child(2) { animation-delay: .2s; }
.mx-dots span:nth-child(3) { animation-delay: .4s; }
.mx-sources { align-self: stretch; display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid #dfe5ee; }
.mx-sources-label { font-size: 12px; font-weight: 700; color: #526077; }
.mx-source { font-size: 13px; font-weight: 600; line-height: 1.35; color: #1d4ed8; overflow-wrap: anywhere; }
.mx-sources-cards { border-top: 0; padding-top: 0; }
.mx-sources-cards .mx-source { display: block; padding: 11px 14px; border: 1px solid #dfe5ee; border-radius: 14px; font-size: 14px; text-decoration: none; }
.mx-disclaimer { margin: 0; font-size: 12px; line-height: 1.35; color: #526077; }
.mx-cta { align-self: stretch; display: flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box; padding: 0 14px; border-radius: 12px; background: #eff6ff; color: #1d4ed8; font-size: 14px; font-weight: 700; text-align: center; text-decoration: none; }
.mx-suggestions { display: flex; flex-direction: column; gap: 8px; }
.mx-chip { display: block; width: 100%; min-height: 44px; box-sizing: border-box; padding: 11px 14px; border: 1px solid #dfe5ee; border-radius: 14px; background: #fff; color: #1d4ed8; font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1.3; text-align: left; cursor: pointer; }
.mx-chip:hover { background: #eff6ff; }
.mx-notice { align-self: flex-start; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: #fff7ed; color: #9a3412; font-size: 14px; }
.mx-retry { min-height: 44px; padding: 0 14px; border: 1px solid #fdba74; border-radius: 12px; background: #fff; color: #9a3412; font-family: inherit; font-weight: 700; font-size: 14px; line-height: 1; cursor: pointer; }
.mx-footer { flex: none; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #dfe5ee; background: #fff; }
.mx-privacy { margin: 0 4px 8px; font-size: 12px; line-height: 1.35; color: #526077; }
.mx-privacy-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.mx-row { display: flex; align-items: center; gap: 8px; margin: 0; }
.mx-input { flex: 1; min-width: 0; height: 44px; box-sizing: border-box; padding: 0 14px; border: 1px solid #dfe5ee; border-radius: 22px; background: #f1f5fb; color: #0f172a; font-family: inherit; font-size: 16px; }
.mx-send { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 22px; background: #2563eb; color: #fff; cursor: pointer; }
.mx-send:disabled { background: #c8d1df; cursor: default; }
.mx-launcher:focus-visible { outline-color: #0f172a; }
.mx-teaser { position: fixed; z-index: 30; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); display: flex; align-items: flex-start; width: min(280px, calc(100vw - 32px)); box-sizing: border-box; border: 1px solid #dfe5ee; border-radius: 18px 18px 6px 18px; background: #fff; color: #0f172a; font-family: inherit; box-shadow: 0 16px 36px -14px rgba(15, 23, 42, .45); animation: mx-rise .24s ease-out; }
.mx-teaser-ask { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 12px 4px 12px 14px; border: 0; border-radius: 18px 0 0 6px; background: transparent; color: inherit; font-family: inherit; text-align: left; cursor: pointer; }
.mx-teaser-name { font-size: 12px; font-weight: 750; color: #1d4ed8; }
.mx-teaser-text { font-size: 15px; font-weight: 650; line-height: 1.35; }
.mx-teaser-close { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: transparent; color: #526077; cursor: pointer; }
.mx-teaser button:focus-visible { outline: 3px solid #2563eb; outline-offset: -3px; }
@keyframes mx-fade { from { opacity: 0; } }
@keyframes mx-rise { from { transform: translateY(24px); opacity: 0; } }
@keyframes mx-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@media (min-width: 768px) {
  .mx-scrim { display: none; }
  .mx-grabber { display: none; }
  .mx-dialog { left: auto; right: 20px; bottom: 20px; width: 400px; height: min(620px, calc(100dvh - 40px)); border: 1px solid #dfe5ee; border-radius: 20px; box-shadow: 0 24px 60px -16px rgba(15, 23, 42, .38), 0 2px 8px rgba(15, 23, 42, .08); }
  .mx-footer { padding-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .mx-scrim, .mx-dialog, .mx-teaser, .mx-dots span { animation: none; }
}
