.ade-ai-workspace,
.ade-ai-settings,
.ade-ai-public-panel {
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, calc(var(--ade-glass-opacity, 0.58) * 0.13)),
      rgba(255, 255, 255, 0.01) 42%,
      rgba(0, 0, 0, 0.05)
    ),
    rgba(var(--ade-glass-rgb, 11, 13, 15), var(--ade-glass-opacity, 0.58));
  backdrop-filter: blur(var(--ade-glass-blur, 24px))
    saturate(var(--ade-glass-saturation, 1.42));
  -webkit-backdrop-filter: blur(var(--ade-glass-blur, 24px))
    saturate(var(--ade-glass-saturation, 1.42));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--ade-glass-radius, 6px);
  box-shadow:
    inset 0 1px 0 #ffffff24,
    0 12px 40px #0004;
  color: #f3f3f0;
}
.ade-ai-workspace *,
.ade-ai-settings *,
.ade-ai-widget * {
  box-sizing: border-box;
  letter-spacing: 0;
}
.ade-ai-workspace [hidden],
.ade-ai-settings [hidden],
.ade-ai-widget [hidden] {
  display: none !important;
}
.ade-ai-settings {
  padding: 28px;
  margin-bottom: 24px;
}
.ade-ai-settings h3 {
  margin-top: 0;
}
.ade-ai-settings p {
  color: #b8bec1;
  line-height: 1.6;
}
.ade-ai-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.ade-ai-fields label,
.ade-ai-settings [data-ai-key-result] label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: #d8dcdd;
}
.ade-ai-settings input:not([type="checkbox"]),
.ade-ai-settings select,
.ade-ai-settings textarea,
.ade-ai-toolbar select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  background: #101214aa;
  border: 1px solid #ffffff30;
  border-radius: 4px;
  color: #f3f3f0;
  padding: 12px;
  font: inherit;
}
.ade-ai-settings select option,
.ade-ai-toolbar select option {
  background: #17191b;
  color: #fff;
}
.ade-ai-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.ade-ai-actions [role="status"] {
  color: #b9c4c9;
  font-size: 13px;
}
.ade-ai-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid #ffffff1c;
}
.ade-ai-toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--ade-accent, #d8b45d);
}
.ade-ai-key-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.ade-ai-key-list li {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #ffffff20;
}
.ade-ai-key-list span {
  overflow-wrap: anywhere;
}
.ade-ai-settings code {
  overflow-wrap: anywhere;
  color: var(--ade-accent, #d8b45d);
}
.ade-ai-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 24px;
  border-bottom: 1px solid #ffffff25;
}
.ade-ai-toolbar > div {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.ade-ai-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aeb5b9;
  font-size: 13px;
}
.ade-ai-toolbar select {
  width: auto;
  font-size: 13px;
}
.ade-ai-toolbar a {
  color: var(--ade-accent, #d8b45d);
}
.ade-ai-readonly {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--ade-accent, #d8b45d);
}
.ade-ai-toolbar button,
.ade-ai-public-panel header button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #eee;
  background: transparent;
  border: 1px solid #ffffff30;
  border-radius: 50%;
  cursor: pointer;
}
.ade-ai-chat {
  padding: 24px;
  min-width: 0;
}
.ade-ai-transcript {
  height: 460px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 8px 8px 20px;
}
.ade-ai-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  text-align: center;
  gap: 22px;
}
.ade-ai-welcome > .dashicons {
  color: var(--ade-accent, #d8b45d);
  font-size: 36px;
  width: 36px;
  height: 36px;
}
.ade-ai-welcome h2 {
  font-size: 26px !important;
  line-height: 1.25 !important;
  font-weight: 500;
  margin: 0 !important;
  color: inherit;
}
.ade-ai-suggestions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 700px;
}
.ade-ai-suggestions button {
  background: #ffffff06;
  border: 1px solid #ffffff25;
  color: #c7cdcf;
  font: inherit;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 4px;
  cursor: pointer;
}
.ade-ai-suggestions button:hover {
  border-color: var(--ade-accent, #d8b45d);
  color: #fff;
}
.ade-ai-message {
  padding: 16px 0;
  border-bottom: 1px solid #ffffff14;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.ade-ai-message > strong {
  font-size: 12px;
  color: var(--ade-accent, #d8b45d);
  text-transform: uppercase;
}
.ade-ai-message.is-user > strong {
  color: #a8bdc9;
}
.ade-ai-message p {
  color: #eee;
  font-size: 16px;
  line-height: 1.65;
  white-space: pre-wrap;
  margin: 8px 0;
}
.ade-ai-message.is-pending p::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ade-ai-thinking 0.9s linear infinite;
}
.ade-ai-message.is-error p {
  color: var(--ade-accent, #d8b45d);
}
@keyframes ade-ai-thinking {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ade-ai-message.is-pending p::before {
    animation: none;
  }
}
.ade-ai-sources {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ade-ai-sources a {
  font-size: 12px;
  text-decoration: underline;
  color: var(--ade-accent, #d8b45d);
}
.ade-ai-composer {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #ffffff35;
  border-radius: 6px;
  background: #090b0d88;
  padding: 12px 14px;
}
.ade-ai-composer:focus-within {
  border-color: var(--ade-accent, #d8b45d);
}
.ade-ai-composer textarea {
  flex: 1;
  resize: none;
  min-width: 0;
  max-height: 140px;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  outline: none !important;
  font: inherit;
  font-size: 16px !important;
  padding: 4px !important;
  line-height: 1.5;
}
.ade-ai-composer button {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ade-accent, #d8b45d);
  color: #101214;
  border: 0;
  cursor: pointer;
}
.ade-ai-composer button:disabled {
  opacity: 0.45;
  cursor: wait;
}
.ade-ai-status {
  color: var(--ade-accent, #d8b45d) !important;
  font-size: 13px !important;
  min-height: 20px;
  margin: 8px 0 !important;
}
.ade-ai-disclosure {
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: #aeb5b9 !important;
  margin: 8px 0 0 !important;
}
.ade-ai-setup {
  padding: 18px 24px;
  border-bottom: 1px solid #ffffff20;
  margin: 0;
  color: #dce1e3;
}
.ade-ai-setup a {
  color: var(--ade-accent, #d8b45d);
}
.ade-ai-widget {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: var(--ai-bottom, 20px);
  z-index: 10040;
  font-family: inherit;
  color: #fff;
}
.ade-ai-launcher {
  display: grid;
  place-items: center;
  margin-left: auto;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--ade-accent, #d8b45d);
  border-radius: 50%;
  background: rgba(var(--ade-glass-rgb, 11, 13, 15), 0.92);
  color: var(--ade-accent, #d8b45d);
  box-shadow: 0 8px 28px #0006;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.ade-ai-launcher:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px #0009,
    0 0 18px color-mix(in srgb, var(--ade-accent, #d8b45d) 20%, transparent);
}
.ade-ai-launcher .dashicons {
  width: 24px;
  height: 24px;
  font-size: 24px;
}
.ade-ai-public-panel {
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 480px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - var(--ai-bottom, 20px) - 84px);
  display: flex;
  flex-direction: column;
  background-color: rgba(var(--ade-glass-rgb, 11, 13, 15), 0.94);
  overflow: hidden;
}
.ade-ai-public-panel > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px 0;
  flex-shrink: 0;
}
.ade-ai-window-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.ade-ai-public-panel .ade-ai-chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px 20px 20px;
  gap: 14px;
}
.ade-ai-public-panel .ade-ai-transcript {
  height: min(340px, calc(100dvh - 285px));
  min-height: 70px;
  flex: 1 1 auto;
  padding: 0 4px;
  scrollbar-width: thin;
  scrollbar-color: #ffffff30 transparent;
}
.ade-ai-public-panel .ade-ai-welcome {
  min-height: 100%;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  padding: 24px 12px;
}
.ade-ai-public-panel .ade-ai-welcome h2 {
  font-size: 26px !important;
  font-weight: 500;
  max-width: 340px;
  text-transform: none;
}
.ade-ai-public-panel .ade-ai-welcome p {
  margin: 0;
  color: #bdc0ba;
  font-size: 16px;
  line-height: 1.6;
  max-width: 340px;
}
.ade-ai-public-panel .ade-ai-composer {
  flex-shrink: 0;
  min-height: 54px;
  padding: 10px 14px;
  gap: 8px;
  border-color: color-mix(in srgb, var(--ade-accent, #d8b45d) 60%, transparent);
  background: #ffffff04;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.ade-ai-public-panel .ade-ai-composer:focus-within {
  box-shadow: 0 0 0 1px var(--ade-accent, #d8b45d);
}
.ade-ai-public-panel .ade-ai-composer textarea {
  min-height: 26px;
  height: 26px;
  margin: 0;
  padding: 0 !important;
  font-family: inherit;
}
.ade-ai-public-panel .ade-ai-composer button {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  background: transparent;
  color: var(--ade-accent, #d8b45d);
}
.ade-ai-public-panel .ade-ai-composer button:hover {
  background: #ffffff10;
}
.ade-ai-public-panel .ade-ai-disclosure {
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: #a7aaa5 !important;
  margin: 0 4px !important;
  flex-shrink: 0;
}
.ade-ai-public-panel .ade-ai-disclosure a {
  color: inherit;
  text-decoration: underline;
}
.ade-ai-public-panel .ade-ai-status:empty {
  display: none;
}
.ade-ai-public-panel .ade-ai-suggestions {
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #ffffff20 transparent;
  gap: 8px;
  padding-bottom: 4px;
  flex-shrink: 0;
}
.ade-ai-public-panel .ade-ai-suggestions button {
  flex-shrink: 0;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.4;
  font-family: inherit;
  text-transform: none;
  background: transparent;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.ade-ai-public-panel .ade-ai-message {
  border: 0;
  padding: 12px 0;
}
.ade-ai-public-panel .ade-ai-message > strong {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.ade-ai-public-panel .ade-ai-message p {
  font-family: inherit;
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  color: #e5e6e0;
}
.ade-ai-public-panel .ade-ai-message.is-user {
  margin: 10px 0 10px auto;
  max-width: 88%;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 6px;
  background: #ffffff0b;
  border: 1px solid #ffffff12;
}
.ade-ai-public-panel .ade-ai-message.is-error p {
  color: var(--ade-accent, #d8b45d);
}
.ade-ai-public-panel .ade-ai-sources {
  margin-top: 12px;
}
.ade-ai-products {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.ade-ai-product {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  background: #ffffff05;
  border: 1px solid #ffffff20;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.ade-ai-product:hover {
  background: #ffffff0a;
  border-color: var(--ade-accent, #d8b45d);
}
.ade-ai-product img {
  width: 76px;
  height: 76px;
  aspect-ratio: 1;
  flex: 0 0 76px;
  object-fit: contain;
  border-radius: 4px;
  background: #ffffff08;
}
.ade-ai-product > span {
  display: grid;
  min-width: 0;
  gap: 6px;
}
.ade-ai-product strong {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  color: #eeeee8;
  overflow-wrap: anywhere;
}
.ade-ai-product > .ade-ai-cover-placeholder {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border-radius: 4px;
  background: #ffffff08;
  color: var(--ade-accent, #d8b45d);
}
.ade-ai-product small {
  color: var(--ade-accent, #d8b45d);
  font-size: 13px;
}
.ade-ai-public-panel.is-expanded {
  width: 680px;
}
.ade-ai-public-panel.is-expanded .ade-ai-transcript {
  height: min(540px, calc(100dvh - 285px));
}
.ade-ai-widget button:focus-visible,
.ade-ai-workspace button:focus-visible {
  outline: 2px solid var(--ade-accent, #d8b45d);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .ade-ai-fields {
    grid-template-columns: 1fr;
  }
  .ade-ai-settings {
    padding: 20px;
  }
  .ade-ai-toolbar {
    padding: 16px;
  }
  .ade-ai-toolbar > div {
    gap: 12px;
  }
  .ade-ai-chat {
    padding: 16px;
  }
  .ade-ai-transcript {
    height: 380px;
  }
  .ade-ai-welcome h2 {
    font-size: 23px !important;
  }
  .ade-ai-widget {
    right: 16px;
  }
  .ade-ai-public-panel .ade-ai-transcript {
    height: 240px;
  }
  .ade-ai-public-panel .ade-ai-welcome {
    min-height: 130px;
  }
  .ade-ai-key-list li {
    align-items: flex-start;
  }
  .ade-ai-toolbar label {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ade-ai-launcher {
    transition: none;
  }
}
.ade-ai-brand {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 40px;
}
.ade-ai-fields label {
  align-content: start;
}
.ade-ai-workspace .ade-ai-transcript {
  height: clamp(240px, calc(100dvh - 530px), 460px);
}
.ade-ai-workspace .ade-ai-welcome {
  min-height: 220px;
}
.ade-ai-widget {
  --ai-bottom: max(20px, env(safe-area-inset-bottom));
  bottom: var(--ai-bottom);
  z-index: 2147483647;
}
.ade-ai-settings a {
  color: var(--ade-accent, #d8b45d);
}
.ade-ai-settings [data-ai-client-output] {
  font-family: monospace;
  font-size: 13px;
  margin-top: 10px;
}
.ade-ai-public-panel {
  bottom: 0;
  max-height: calc(100dvh - var(--ai-bottom, 20px) - 20px);
  animation: ade-ai-open 0.2s ease-out;
}
.ade-ai-public-panel header > div {
  flex: 1;
  min-width: 0;
}
@keyframes ade-ai-open {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 767px) {
  .ade-ai-widget {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ade-ai-public-panel {
    animation: none;
  }
}
