.support-widget {
  --support-widget-bottom: max(1.5rem, env(safe-area-inset-bottom));
  --support-widget-right: max(1.5rem, env(safe-area-inset-right));
  --support-widget-panel-bottom: calc(var(--support-widget-bottom) + 4rem);
  position: fixed;
  right: var(--support-widget-right);
  bottom: var(--support-widget-bottom);
  z-index: 80;
  font-size: .875rem;
  color: #252529;
}
.support-widget [hidden] { display: none !important; }
.support-widget button:focus-visible, .support-widget a:focus-visible { outline: 3px solid #a78bfa; outline-offset: 3px; }
.support-widget-launcher {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 3.25rem; height: 3.25rem; padding: 0; border: 1px solid rgb(255 255 255 / 15%); border-radius: 1.1rem;
  background: #6d28d9; color: #fff; font-size: .875rem; font-weight: 600; cursor: pointer;
  box-shadow: 0 4px 16px rgb(76 29 149 / 18%); transition: background .15s, box-shadow .15s;
}
.support-widget-launcher:hover { background: #5b21b6; box-shadow: 0 6px 20px rgb(76 29 149 / 24%); }
.support-widget-launcher svg { width: 1.4rem; height: 1.4rem; }
.support-widget-close-icon { display: none; }
.support-widget-launcher[aria-expanded="true"] { border-color: #eeeef0; background: #fff; color: #71717a; box-shadow: 0 4px 18px rgb(24 24 27 / 14%); }
.support-widget-launcher[aria-expanded="true"]:hover { background: #f7f7f8; }
.support-widget-launcher[aria-expanded="true"] .support-widget-launch-icon,
.support-widget-launcher[aria-expanded="true"] .support-widget-launch-label { display: none; }
.support-widget-launcher[aria-expanded="true"] .support-widget-close-icon { display: block; }
.support-widget-badge { position: absolute; top: -.3rem; right: -.25rem; display: inline-flex; align-items: center; justify-content: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .3rem; border: 2px solid #fff; border-radius: 999px; background: #e11d48; color: #fff; font-size: .65rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.support-widget-panel {
  position: fixed; right: var(--support-widget-right); bottom: var(--support-widget-panel-bottom);
  display: flex; flex-direction: column; width: min(27rem, calc(100vw - 2rem));
  height: min(44rem, calc(100vh - var(--support-widget-panel-bottom) - 1rem));
  height: min(44rem, calc(100dvh - var(--support-widget-panel-bottom) - 1rem));
  overflow: hidden; border: 1px solid #ececef; border-radius: 1.8rem; background: #fff;
  box-shadow: 0 16px 64px rgb(24 24 27 / 16%), 0 3px 12px rgb(24 24 27 / 5%);
}
.support-widget-header { flex-shrink: 0; display: flex; align-items: center; gap: .65rem; padding: 1rem 1.1rem; background: #fff; }
.support-widget-back, .support-widget-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; flex-shrink: 0; border-radius: .6rem; cursor: pointer; }
.support-widget-back { margin-right: .15rem; color: #8b5cf6; }
.support-widget-back:hover { background: #f5f3ff; }
.support-widget-back svg { width: 1.2rem; height: 1.2rem; }
.support-widget-avatar { display: flex; align-items: center; justify-content: center; width: 1.65rem; height: 1.65rem; flex-shrink: 0; border: 1px solid #ede9fe; border-radius: 50%; background: #f5f3ff; color: #8b5cf6; font-size: .85rem; font-weight: 700; }
.support-widget-heading { flex: 1; min-width: 0; }
.support-widget-heading :is(h1, h2) { font-size: .9rem; font-weight: 700; letter-spacing: -.01em; }
.support-widget-header-actions { display: flex; }
.support-widget-icon-button { color: #71717a; }
.support-widget-icon-button:hover { background: #f7f7f8; color: #71717a; }
.support-widget-icon-button svg { width: 1rem; height: 1rem; }
.support-widget-content { display: flex; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.support-widget-static { display: flex; flex-direction: column; width: 100%; min-height: min-content; padding: 1rem 1.2rem .2rem; }
.support-widget-intro { text-align: left; font-size: .875rem; line-height: 1.65; color: #27272a; }
.support-widget-intro h3 { font-size: .9rem; font-weight: 700; line-height: 1.5; }
.support-widget-intro p { margin-top: .8rem; }
.support-widget-intro .support-widget-response-note { font-size: .8rem; color: #71717a; }
.support-widget-shortcuts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; }
.support-widget-shortcuts a { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .7rem; border-radius: .65rem; background: #f5f3ff; color: #7c3aed; font-size: .75rem; font-weight: 500; line-height: 1.5; }
.support-widget-shortcuts a:hover { background: #ede9fe; }
.support-widget-shortcuts .support-widget-shortcut-secondary { background: #eff6ff; color: #2563eb; }
.support-widget-shortcuts .support-widget-shortcut-secondary:hover { background: #dbeafe; }
.support-widget-intro .support-widget-email-option { margin-top: 1.1rem; font-size: .75rem; color: #71717a; }
.support-widget-email-option a:hover, .support-widget-text-link:hover { text-decoration: underline; }
.support-widget-suggestions { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; margin-top: 1.85rem; }
.support-widget-suggestions button { max-width: 100%; padding: .6rem .85rem; border: 1px solid #eaeaee; border-radius: 1.25rem; background: #fff; color: #52525b; font-size: .8rem; line-height: 1.4; text-align: left; cursor: pointer; }
.support-widget-suggestions button:hover { border-color: #ddd6fe; background: #faf9ff; color: #7c3aed; }
.support-widget-footer { flex-shrink: 0; padding: .25rem .75rem .8rem; color: #71717a; font-size: .625rem; line-height: 1.5; text-align: center; }
.support-widget-loading { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: 2rem 1rem; color: #71717a; font-size: .8rem; }
.support-widget-spinner { width: 1rem; height: 1rem; border: 2px solid #ede9fe; border-top-color: #7c3aed; border-radius: 50%; animation: support-widget-spin .8s linear infinite; }
.support-widget-error { padding: 1.5rem; color: #b91c1c; font-size: .8rem; line-height: 1.6; }
.support-widget-primary { display: inline-flex; align-items: center; justify-content: center; width: 100%; margin-top: 1rem; padding: .75rem 1rem; border-radius: .7rem; background: #7c3aed; color: #fff; font-size: .8rem; font-weight: 600; cursor: pointer; }
.support-widget-primary:hover { background: #6d28d9; }
.support-widget-text-link { display: block; margin-top: 1rem; color: #7c3aed; text-align: center; }
.support-chat--compact { width: 100%; min-height: 0; flex: 1; overflow: hidden; border: 0; border-radius: 0; }
.support-chat--compact .support-chat-header { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.support-chat--compact .support-chat-notice { flex-shrink: 0; padding: .5rem 1.2rem; font-size: .7rem; }
.support-chat--compact .support-chat-history { height: auto; min-height: 0; flex: 1; padding: 1rem 1.2rem; background: #fff; }
.support-chat--compact .support-chat-history > .text-center { margin-bottom: 0; }
.support-chat--compact .support-chat-history > .text-center:has(button:not([hidden])) { margin-bottom: 1rem; }
.support-chat--compact .support-chat-empty { padding: 0; text-align: left; }
.support-chat--compact .support-chat-bubble { max-width: 90%; padding: .65rem .8rem; border-color: #eeeef0; }
.support-chat--compact .support-chat-body { font-size: .8rem; }
.support-chat--compact .support-chat-sender { font-size: .65rem; }
.support-chat--compact .support-chat-meta { font-size: .6rem; }
.support-chat--compact .support-chat-error { flex-shrink: 0; padding: .5rem 1.2rem; font-size: .75rem; }
.support-chat--compact .support-chat-composer--compact { flex-shrink: 0; padding: .65rem .85rem .3rem; border: 0; }
.support-chat--compact .support-chat-compose-box { padding: .6rem .75rem; border-radius: 1.25rem; background: #f4f4f5; }
.support-chat--compact .support-chat-compose-box:focus-within { box-shadow: 0 0 0 2px #ddd6fe; }
.support-chat--compact .support-chat-input { display: block; min-height: 3rem; max-height: 7rem; padding: .15rem .2rem; border: 0; border-radius: 0; background: transparent; font-size: .85rem; line-height: 1.5; resize: none; }
.support-chat--compact .support-chat-input:focus { outline: none; box-shadow: none; }
.support-chat--compact .support-chat-input::placeholder { color: #666670; }
.support-chat--compact .support-chat-compose-toolbar { display: flex; align-items: center; gap: .45rem; margin-top: .3rem; }
.support-chat--compact .support-chat-attach-button { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; flex-shrink: 0; border-radius: .5rem; color: #71717a; cursor: pointer; }
.support-chat--compact .support-chat-attach-button:hover { background: #eaeaee; color: #7c3aed; }
.support-chat--compact .support-chat-attach-button svg { width: 1.2rem; height: 1.2rem; }
.support-chat--compact .support-chat-compose-hint { flex: 1; color: #666670; font-size: .6rem; }
.support-chat--compact .support-chat-send--icon { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; flex-shrink: 0; padding: 0; border-radius: .8rem; background: #8b5cf6; }
.support-chat--compact .support-chat-send--icon svg { width: 1.25rem; height: 1.25rem; }
.support-chat--compact .support-chat-send--icon:hover { background: #7c3aed; }
.support-chat--compact .support-chat-send--icon:disabled { opacity: 1; background: #d9cef8; color: #fff; cursor: default; }
.support-chat--compact .support-chat-files { gap: .5rem; overflow-x: auto; overflow-y: hidden; }
.support-chat--compact .support-chat-file-chip { display: inline-flex; align-items: center; gap: .25rem; padding: .25rem .4rem .25rem .6rem; border: 1px solid #e4e4e7; border-radius: .6rem; background: #fff; font-size: .7rem; }
.support-chat--compact .support-chat-file-chip-name { min-width: 0; overflow-wrap: anywhere; }
.support-chat--compact .support-chat-file-remove { display: inline-flex; align-items: center; justify-content: center; width: 1.4rem; height: 1.4rem; flex-shrink: 0; border-radius: 50%; color: #71717a; cursor: pointer; }
.support-chat--compact .support-chat-file-remove:hover { background: #f3f0ff; color: #7c3aed; }
.support-widget-sign-in-composer { display: block; flex-shrink: 0; margin-top: auto; padding: .85rem .85rem .65rem; border-radius: 1.25rem; background: #f4f4f5; }
.support-widget-static > .support-widget-intro { padding-bottom: 2rem; }
.support-widget-sign-in-composer:hover { background: #eeeef1; }
.support-widget-composer-placeholder { display: block; min-height: 2.5rem; color: #666670; font-size: .85rem; }
.support-widget-sign-in-toolbar { display: flex; align-items: center; justify-content: space-between; color: #71717a; }
.support-widget-sign-in-toolbar > svg { width: 1.2rem; height: 1.2rem; }
.support-widget-sign-in-arrow { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: .8rem; background: #d9cef8; color: #fff; }
.support-widget-sign-in-arrow svg { width: 1.25rem; height: 1.25rem; }
@keyframes support-widget-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .support-widget-spinner { animation: none; } .support-widget-launcher { transition: none; } }
@media (max-width: 639px) {
  .support-widget { --support-widget-bottom: calc(5rem + env(safe-area-inset-bottom)); --support-widget-right: max(1rem, env(safe-area-inset-right)); }
  .support-widget-panel { border-radius: 1.5rem; }
  .support-widget-header { padding: .8rem .9rem; }
  .support-chat--compact .support-chat-history { padding: .9rem 1rem; }
}
