
.divio-ai {
  --divio-ai-accent: #111111;
  --divio-ai-bg: rgba(9, 12, 24, 0.86);
  --divio-ai-bg-strong: rgba(10, 14, 28, 0.96);
  --divio-ai-surface: rgba(255, 255, 255, 0.065);
  --divio-ai-surface-strong: rgba(255, 255, 255, 0.10);
  --divio-ai-border: rgba(255, 255, 255, 0.12);
  --divio-ai-border-soft: rgba(255, 255, 255, 0.08);
  --divio-ai-text: #f7f9ff;
  --divio-ai-muted: rgba(227, 233, 255, 0.72);
  --divio-ai-soft-text: rgba(227, 233, 255, 0.54);
  --divio-ai-radius: 26px;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999999;
  color: var(--divio-ai-text);
  font-family: inherit;
  box-sizing: border-box;
}

.divio-ai *,
.divio-ai *::before,
.divio-ai *::after {
  box-sizing: border-box;
}

.divio-ai button,
.divio-ai textarea,
.divio-ai input,
.divio-ai select {
  font-family: inherit !important;
}

.divio-ai button {
  appearance: none !important;
  -webkit-appearance: none !important;
  border-image: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  box-shadow: none;
}

.divio-ai__launcher,
.divio-ai__panel,
.divio-ai__form,
.divio-ai__lead-form,
.divio-ai__message,
.divio-ai__chip,
.divio-ai__lead-button,
.divio-ai__lead-submit,
.divio-ai__send,
.divio-ai__close,
.divio-ai__field input,
.divio-ai__field select,
.divio-ai__input-shell {
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.divio-ai__launcher {
  position: relative;
  isolation: isolate;
  min-height: 62px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 10px 16px 10px 10px;
  background: linear-gradient(135deg, rgba(16, 21, 40, .88), rgba(7, 10, 24, .98));
  color: var(--divio-ai-text);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 22px 46px rgba(2, 6, 22, .46), 0 0 30px rgba(111, 156, 255, .15);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.divio-ai__launcher:hover {
  transform: translateY(-1px);
  box-shadow: 0 26px 52px rgba(2, 6, 22, .52), 0 0 36px rgba(111, 156, 255, .22);
  border-color: rgba(255,255,255,.2);
}

.divio-ai__launcher:focus-visible,
.divio-ai button:focus-visible,
.divio-ai textarea:focus-visible,
.divio-ai input:focus-visible,
.divio-ai select:focus-visible {
  outline: 3px solid rgba(153, 186, 255, .35);
  outline-offset: 2px;
}

.divio-ai__launcher-aura {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 35%, rgba(79, 172, 255, .44), transparent 40%),
    radial-gradient(circle at 80% 28%, rgba(204, 129, 255, .38), transparent 42%),
    radial-gradient(circle at 52% 85%, rgba(90, 232, 215, .28), transparent 36%);
  filter: blur(16px);
  opacity: .8;
  transition: opacity .28s ease, transform .28s ease;
}

.divio-ai__launcher:hover .divio-ai__launcher-aura,
.divio-ai--open .divio-ai__launcher-aura {
  opacity: 1;
  transform: scale(1.02);
}

.divio-ai__launcher-visual {
  position: relative;
  flex: 0 0 auto;
}

.divio-ai__launcher-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.divio-ai__launcher-eyebrow {
  display: block;
  color: rgba(218, 226, 255, .62);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.divio-ai__launcher-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}

.divio-ai__panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(410px, calc(100vw - 28px));
  height: min(670px, calc(100vh - 118px));
  min-height: min(500px, calc(100vh - 118px));
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--divio-ai-radius);
  border: 1px solid var(--divio-ai-border);
  background: linear-gradient(180deg, rgba(13, 17, 34, .88), rgba(8, 11, 24, .96));
  box-shadow: 0 28px 80px rgba(1, 5, 20, .58), 0 0 42px rgba(84, 133, 255, .14);
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
}

.divio-ai__panel[hidden] {
  display: none;
}

.divio-ai__panel::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--divio-ai-radius) - 1px);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.01));
  pointer-events: none;
}

.divio-ai__panel-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: .55;
  z-index: -1;
  pointer-events: none;
}

.divio-ai__panel-glow--one {
  width: 210px;
  height: 210px;
  top: -52px;
  left: -46px;
  background: rgba(63, 161, 255, .28);
}

.divio-ai__panel-glow--two {
  width: 220px;
  height: 220px;
  top: 4px;
  right: -78px;
  background: rgba(178, 101, 255, .24);
}

.divio-ai__panel-glow--three {
  width: 180px;
  height: 180px;
  bottom: -40px;
  left: 28%;
  background: rgba(80, 231, 214, .18);
}

.divio-ai__header {
  position: relative;
  z-index: 1;
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--divio-ai-border-soft);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
}

.divio-ai__brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.divio-ai__brand-copy {
  min-width: 0;
}

.divio-ai__brand-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .02em;
}

.divio-ai__brand-copy span {
  display: block;
  margin-top: 4px;
  color: var(--divio-ai-muted);
  font-size: 11px;
  line-height: 1.45;
}

.divio-ai__avatar-wrap {
  flex: 0 0 auto;
}

.divio-ai__close {
  flex: 0 0 auto;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.055) !important;
  color: var(--divio-ai-text) !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: background .22s ease, transform .22s ease, border-color .22s ease;
}

.divio-ai__close:hover {
  background: rgba(255,255,255,.09) !important;
  transform: rotate(90deg);
  border-color: rgba(255,255,255,.16) !important;
}

.divio-ai__close-icon {
  display: inline-block;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-1px);
}

.divio-ai__messages {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 18px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.16) transparent;
}

.divio-ai__messages::-webkit-scrollbar {
  width: 8px;
}

.divio-ai__messages::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255,255,255,.14);
}

.divio-ai__message-row {
  display: flex;
  margin: 0 0 12px;
}

.divio-ai__message-row--user {
  justify-content: flex-end;
}

.divio-ai__message-row--assistant {
  justify-content: flex-start;
}

.divio-ai__message {
  max-width: 88%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.58;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: 0 12px 24px rgba(1, 5, 20, .16);
}

.divio-ai__message--assistant {
  background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.035));
  color: var(--divio-ai-text);
  border-bottom-left-radius: 8px;
}

.divio-ai__message--user {
  background: linear-gradient(135deg, rgba(66, 149, 255, .92), rgba(133, 99, 255, .9));
  color: #fff;
  border-color: rgba(255,255,255,.14);
  border-bottom-right-radius: 8px;
}

.divio-ai__message-row--typing .divio-ai__message {
  color: var(--divio-ai-muted);
  font-style: italic;
}

.divio-ai__message-row--error .divio-ai__message {
  background: rgba(151, 37, 57, .16);
  border-color: rgba(255, 129, 152, .24);
  color: #ffd7df;
}

.divio-ai__quick {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 18px 10px;
  scrollbar-width: none;
}

.divio-ai__quick::-webkit-scrollbar {
  display: none;
}

.divio-ai__quick[hidden] {
  display: none;
}

.divio-ai__chip {
  flex: 0 0 auto;
  min-height: 36px !important;
  padding: 8px 14px !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.06) !important;
  color: var(--divio-ai-text) !important;
  font: inherit !important;
  font-size: 12px !important;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.divio-ai__chip:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.16);
  transform: translateY(-1px);
}

.divio-ai__lead-cta {
  position: relative;
  z-index: 1;
  padding: 4px 16px 12px;
}

.divio-ai__lead-cta[hidden],
.divio-ai__lead-form[hidden],
.divio-ai__lead-error[hidden],
.divio-ai__form[hidden] {
  display: none !important;
}

.divio-ai__lead-button,
.divio-ai__lead-submit {
  width: 100% !important;
  min-height: 44px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, rgba(66, 149, 255, .95), rgba(136, 102, 255, .92)) !important;
  color: #fff !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(54, 106, 255, .22) !important;
}

.divio-ai__lead-form {
  position: relative;
  z-index: 1;
  margin: 0 16px 12px;
  padding: 14px;
  max-height: 390px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  scrollbar-width: thin;
}

.divio-ai__lead-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.divio-ai__lead-heading strong {
  display: block;
  font-size: 13px;
}

.divio-ai__lead-heading span {
  display: block;
  margin-top: 3px;
  color: var(--divio-ai-muted);
  font-size: 10.5px;
}

.divio-ai__lead-cancel {
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
  background: rgba(255,255,255,.045);
  color: var(--divio-ai-muted);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.divio-ai__lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.divio-ai__field {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--divio-ai-text);
  font-size: 11px;
  font-weight: 600;
}

.divio-ai__field--full {
  grid-column: 1 / -1;
}

.divio-ai__field input,
.divio-ai__field select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin: 0 !important;
  padding: 9px 11px !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 12px !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: rgba(8, 11, 24, .45) !important;
  color: var(--divio-ai-text) !important;
  font: inherit !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
}

.divio-ai__field input::placeholder {
  color: rgba(227, 233, 255, .42);
}

.divio-ai__field input:focus,
.divio-ai__field select:focus {
  border-color: rgba(145, 179, 255, .38) !important;
  background: rgba(8, 11, 24, .62) !important;
}

.divio-ai__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 1px;
  color: var(--divio-ai-muted);
  font-size: 10px;
  line-height: 1.5;
  cursor: pointer;
}

.divio-ai__consent input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
}

.divio-ai__consent a {
  color: #dfe6ff;
  text-decoration: underline;
}

.divio-ai__lead-error {
  margin: 8px 0 10px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 129, 152, .26);
  border-radius: 12px;
  background: rgba(151, 37, 57, .14);
  color: #ffd7df;
  font-size: 11px;
  line-height: 1.42;
}

.divio-ai__lead-submit:disabled,
.divio-ai__send:disabled {
  opacity: .55;
  cursor: wait;
}

.divio-ai__form {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0 16px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.03));
}

.divio-ai__form.is-busy {
  opacity: .9;
}

.divio-ai__input-shell {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 14px;
  background: rgba(6, 9, 20, .28);
}

.divio-ai__form textarea {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  max-height: 112px;
  resize: none;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--divio-ai-text) !important;
  padding: 10px 12px !important;
  margin: 0 !important;
  font: inherit !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
}

.divio-ai__form textarea::placeholder {
  color: rgba(227, 233, 255, .42);
}

.divio-ai__send {
  flex: 0 0 42px;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(66, 149, 255, .94), rgba(136, 102, 255, .9)) !important;
  color: #fff !important;
  font: inherit !important;
  font-size: 18px !important;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(50, 101, 247, .24) !important;
}

.divio-ai__note {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 9px 18px 14px;
  color: var(--divio-ai-soft-text);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.divio-ai__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.divio-ai__honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.divio-ai__launcher-orb,
.divio-ai__avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
}

.divio-ai__avatar {
  width: 44px;
  height: 44px;
}

.divio-ai__launcher-orb-glow,
.divio-ai__avatar-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: .9;
}

.divio-ai__launcher-orb-glow--one,
.divio-ai__avatar-glow--one {
  width: 32px;
  height: 32px;
  top: 2px;
  left: 3px;
  background: rgba(64, 167, 255, .86);
}

.divio-ai__launcher-orb-glow--two,
.divio-ai__avatar-glow--two {
  width: 30px;
  height: 30px;
  top: 5px;
  right: 2px;
  background: rgba(201, 112, 255, .82);
}

.divio-ai__launcher-orb-glow--three,
.divio-ai__avatar-glow--three {
  width: 28px;
  height: 28px;
  bottom: 2px;
  left: 10px;
  background: rgba(85, 228, 219, .74);
}

.divio-ai__launcher-orb-core,
.divio-ai__avatar-core {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.38), rgba(255,255,255,.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 20px rgba(2, 6, 22, .34);
}

.divio-ai__launcher-orb-inner,
.divio-ai__avatar-inner {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.38), rgba(255,255,255,.08) 38%, rgba(10, 14, 28, .68) 100%), linear-gradient(135deg, rgba(64, 167, 255, .28), rgba(201, 112, 255, .25));
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  text-shadow: 0 0 12px rgba(255,255,255,.2);
}

.divio-ai__launcher-orb-image,
.divio-ai__avatar-image {
  width: 74%;
  height: 74%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(4, 8, 22, .24));
}

@supports (height: 100dvh) {
  .divio-ai__panel {
    height: min(670px, calc(100dvh - 118px));
    min-height: min(500px, calc(100dvh - 118px));
  }
}

@media (max-width: 600px) {
  .divio-ai {
    right: 12px;
    bottom: 12px;
  }

  .divio-ai__launcher {
    min-height: 56px;
    padding: 8px 10px;
  }

  .divio-ai__launcher-label {
    display: none;
  }

  .divio-ai__launcher-eyebrow {
    display: none;
  }

  .divio-ai__panel {
    width: calc(100vw - 24px);
    height: min(700px, calc(100vh - 88px));
    min-height: 0;
    bottom: 70px;
    border-radius: 22px;
  }

  .divio-ai__header {
    padding: 16px;
  }

  .divio-ai__lead-grid {
    grid-template-columns: 1fr;
  }

  .divio-ai__field--full {
    grid-column: auto;
  }
}

@supports (height: 100dvh) {
  @media (max-width: 600px) {
    .divio-ai__panel {
      height: min(700px, calc(100dvh - 88px));
      min-height: 0;
    }
  }
}

@media (prefers-reduced-motion: no-preference) {
  .divio-ai__panel {
    animation: divio-ai-panel-in .22s ease-out;
    transform-origin: 100% 100%;
  }

  .divio-ai__launcher,
  .divio-ai__chip,
  .divio-ai__close,
  .divio-ai__lead-button,
  .divio-ai__lead-submit,
  .divio-ai__send {
    transition: transform .22s ease, opacity .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
  }

  .divio-ai__launcher-orb,
  .divio-ai__avatar {
    animation: divio-ai-float 5.8s ease-in-out infinite;
  }

  .divio-ai__launcher-aura,
  .divio-ai__panel-glow {
    animation: divio-ai-breathe 6.2s ease-in-out infinite;
  }

  .divio-ai__launcher-orb-glow--one,
  .divio-ai__avatar-glow--one {
    animation: divio-ai-shift-one 7s ease-in-out infinite;
  }

  .divio-ai__launcher-orb-glow--two,
  .divio-ai__avatar-glow--two {
    animation: divio-ai-shift-two 8s ease-in-out infinite;
  }

  .divio-ai__launcher-orb-glow--three,
  .divio-ai__avatar-glow--three {
    animation: divio-ai-shift-three 6.4s ease-in-out infinite;
  }

  @keyframes divio-ai-panel-in {
    from {
      opacity: 0;
      transform: translateY(10px) scale(.985);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  @keyframes divio-ai-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
  }

  @keyframes divio-ai-breathe {
    0%, 100% { transform: scale(1); opacity: .6; }
    50% { transform: scale(1.06); opacity: .92; }
  }

  @keyframes divio-ai-shift-one {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-2px, 1px); }
  }

  @keyframes divio-ai-shift-two {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(2px, -1px); }
  }

  @keyframes divio-ai-shift-three {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(0, 2px); }
  }
}

.divio-ai__note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
