.llx-ai-lighting-assistant {
  align-items: center;
  appearance: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(228, 242, 248, 0.28) 45%, rgba(126, 158, 175, 0.2) 100%),
    rgba(220, 238, 245, 0.28);
  -webkit-backdrop-filter: blur(26px) saturate(1.36) brightness(1.08);
  backdrop-filter: blur(26px) saturate(1.36) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  bottom: max(1.35rem, env(safe-area-inset-bottom));
  box-shadow:
    0 24px 52px rgba(1, 8, 15, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -1px 0 rgba(53, 91, 116, 0.2),
    inset 0 0 0 0.34rem rgba(238, 248, 252, 0.16),
    inset 0 0 0 0.42rem rgba(44, 86, 113, 0.12);
  color: rgba(6, 26, 41, 0.96);
  cursor: pointer;
  display: inline-flex;
  gap: 0.72rem;
  isolation: isolate;
  min-height: 4rem;
  overflow: hidden;
  padding: 0.5rem 1rem 0.5rem 0.54rem;
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  text-align: left;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    opacity 220ms ease,
    transform 220ms ease;
  width: min(20rem, calc(100vw - 1.5rem));
  z-index: 2147483001;
}

.llx-ai-lighting-assistant::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0.16) 24%, rgba(255, 255, 255, 0.12) 70%, rgba(255, 255, 255, 0.58) 100%);
  border-radius: inherit;
  content: "";
  inset: 0;
  opacity: 0.72;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.llx-ai-lighting-assistant::after {
  background:
    radial-gradient(88% 140% at 20% -10%, rgba(238, 252, 255, 0.56), transparent),
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.36), transparent 18%),
    radial-gradient(circle at 82% 72%, rgba(196, 225, 236, 0.26), transparent 26%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
  border-radius: inherit;
  content: "";
  inset: 0;
  mix-blend-mode: soft-light;
  opacity: 0.48;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.llx-ai-lighting-assistant:hover,
.llx-ai-lighting-assistant:focus-visible {
  border-color: rgba(255, 255, 255, 0.68);
  box-shadow:
    0 28px 58px rgba(1, 8, 15, 0.38),
    0 0 0 4px rgba(221, 242, 249, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    inset 0 -1px 0 rgba(53, 91, 116, 0.2),
    inset 0 0 0 0.34rem rgba(238, 248, 252, 0.2),
    inset 0 0 0 0.42rem rgba(44, 86, 113, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.llx-ai-lighting-assistant:disabled {
  cursor: wait;
}

.llx-ai-lighting-assistant__groove {
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  box-shadow:
    inset 1.8px 3px 0 -2px rgba(255, 255, 255, 0.72),
    inset -2px -2px 0 -2px rgba(255, 255, 255, 0.72),
    inset -0.3px -1px 4px 0 rgba(0, 0, 0, 0.11);
  inset: 0.25rem;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.llx-ai-lighting-assistant__badge {
  align-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.86), transparent 0 38%),
    linear-gradient(135deg, rgba(247, 248, 252, 0.98), rgba(188, 199, 212, 0.9));
  border-radius: 50%;
  box-shadow:
    inset 1.8px 3px 0 -2px rgba(255, 255, 255, 0.92),
    inset -0.3px -1px 4px 0 rgba(0, 0, 0, 0.12),
    0 8px 18px rgba(1, 8, 15, 0.14);
  color: #091521;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.9rem;
  justify-content: center;
  position: relative;
  width: 2.9rem;
  z-index: 3;
}

.llx-ai-lighting-assistant__badge svg {
  display: block;
  height: 1.25rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 1.25rem;
}

.llx-ai-lighting-assistant__copy {
  display: grid;
  gap: 0;
  min-width: 0;
  position: relative;
  z-index: 3;
}

.llx-ai-lighting-assistant__title {
  color: rgba(6, 26, 41, 0.96);
  font: 700 0.98rem/1.12 var(--font-sans, "Segoe UI", sans-serif);
  letter-spacing: -0.01em;
  text-transform: none;
}

.llx-ai-lighting-assistant__status {
  display: none;
}

.llx-ai-lighting-assistant__overlay {
  background: rgba(4, 10, 18, 0.34);
  border: 0;
  inset: 0;
  opacity: 1;
  padding: 0;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 2147482998;
}

.llx-ai-lighting-assistant__overlay[hidden] {
  display: none;
}

.llx-ai-lighting-assistant__panel {
  background: rgba(7, 18, 30, 0.96);
  border: 1px solid rgba(201, 215, 231, 0.18);
  border-radius: 1.4rem;
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 5rem);
  box-shadow: 0 30px 80px rgba(2, 9, 17, 0.42);
  height: min(46rem, calc(100vh - 7rem));
  overflow: hidden;
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  width: min(27rem, calc(100vw - 1.5rem));
  z-index: 2147483000;
}

.llx-ai-lighting-assistant__panel[hidden] {
  display: none;
}

.llx-ai-lighting-assistant__body {
  background: #07121e;
  height: 100%;
  position: relative;
}

.llx-ai-lighting-assistant__frame {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.llx-ai-lighting-assistant__close {
  align-items: center;
  appearance: none;
  background: rgba(7, 18, 30, 0.84);
  border: 1px solid rgba(228, 233, 240, 0.18);
  border-radius: 999px;
  color: #f3f6fa;
  cursor: pointer;
  display: inline-flex;
  font: 400 1.7rem/1 "Segoe UI", sans-serif;
  height: 2.8rem;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 0.85rem;
  top: 0.85rem;
  width: 2.8rem;
  z-index: 3;
}

.llx-ai-lighting-assistant__close:hover,
.llx-ai-lighting-assistant__close:focus-visible {
  border-color: rgba(228, 233, 240, 0.34);
  outline: none;
}

.llx-ai-lighting-assistant__panel.is-loading::before {
  color: rgba(232, 238, 246, 0.86);
  content: "Loading assistant";
  font: 600 0.9rem/1.2 var(--font-sans, "Segoe UI", sans-serif);
  left: 1.2rem;
  letter-spacing: 0.03em;
  position: absolute;
  top: 1.4rem;
  z-index: 2;
}

@media (max-width: 720px) {
  .llx-ai-lighting-assistant {
    bottom: max(1rem, env(safe-area-inset-bottom));
    min-height: 3.6rem;
    padding: 0.45rem;
    right: max(0.85rem, env(safe-area-inset-right));
    width: auto;
  }

  .llx-ai-lighting-assistant__badge {
    height: 2.7rem;
    width: 2.7rem;
  }

  .llx-ai-lighting-assistant__badge svg {
    height: 1.18rem;
    width: 1.18rem;
  }

  .llx-ai-lighting-assistant__copy {
    display: none;
  }

  .llx-ai-lighting-assistant__panel {
    border-radius: 1rem;
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    height: min(80vh, calc(100vh - 1.7rem));
    right: max(0.85rem, env(safe-area-inset-right));
    width: calc(100vw - 1.7rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .llx-ai-lighting-assistant,
  .llx-ai-lighting-assistant *,
  .llx-ai-lighting-assistant__panel,
  .llx-ai-lighting-assistant__overlay {
    transition-duration: 1ms !important;
  }
}
