.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@property --kgai-edge-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

body.kgai-popup-open {
  overflow: hidden;
}

.kgai-assistant {
  --kgai-bg: linear-gradient(180deg, #fff2db 0%, #fffaf1 48%, #fffdf8 100%);
  --kgai-card: rgba(255, 255, 255, 0.86);
  --kgai-strong: #fffdf8;
  --kgai-line: rgba(84, 62, 46, 0.12);
  --kgai-ink: #30261f;
  --kgai-muted: #6b5d52;
  --kgai-accent: #e07800;
  --kgai-accent-dark: #bf5f00;
  background:
    radial-gradient(circle at top left, rgba(244, 176, 52, 0.15), transparent 28%),
    radial-gradient(circle at bottom right, rgba(224, 120, 0, 0.12), transparent 36%),
    var(--kgai-bg);
  border: 1px solid var(--kgai-line);
  border-radius: 28px;
  color: var(--kgai-ink);
  padding: 18px;
}

.kgai-assistant__shell {
  display: grid;
  gap: 16px;
}

.kgai-assistant__reset-overlay[hidden] {
  display: none;
}

.kgai-assistant__reset-overlay {
  display: none;
}

.kgai-assistant__reset-content {
  display: grid;
  justify-items: center;
  gap: 24px;
}

.kgai-assistant__reset-label {
  color: var(--kgai-accent);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.kgai-assistant__reset-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 3px;
  vertical-align: baseline;
}

.kgai-assistant__reset-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--kgai-accent);
  animation: kgaiBounceSequence 1.7s ease-in-out infinite;
}

.kgai-assistant__reset-dot:nth-child(1) {
  animation-delay: 0s;
}

.kgai-assistant__reset-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.kgai-assistant__reset-dot:nth-child(3) {
  animation-delay: 0.4s;
}

.kgai-assistant__reset-pulse {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #f0a028 0%, #e07800 100%);
  box-shadow: 0 0 0 0 rgba(224, 120, 0, 0.25);
  animation: kgaiThinkingPulse 1.7s infinite;
  will-change: transform, box-shadow;
}

.kgai-assistant__conversation {
  display: grid;
  gap: 12px;
}

.kgai-assistant__onboarding[hidden] {
  display: none;
}

.kgai-assistant__onboarding-card {
  display: grid;
  gap: 18px;
  max-width: 640px;
  padding: 24px;
  border: 1px solid rgba(224, 120, 0, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.kgai-assistant__onboarding-card--actions-only {
  max-width: 520px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.kgai-assistant__onboarding-title {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.15;
}

.kgai-assistant__onboarding-text {
  margin: 0;
  color: var(--kgai-muted);
  line-height: 1.7;
}

.kgai-assistant__onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.kgai-button--onboarding-primary,
.kgai-button--onboarding-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
}

.kgai-button--onboarding-primary {
  background: #f5b536;
  border-color: #f5b536;
  box-shadow: 0 18px 34px rgba(245, 181, 54, 0.26);
  color: #fff;
}

.kgai-button--onboarding-primary,
.kgai-button--onboarding-primary:visited,
.kgai-button--onboarding-primary:hover,
.kgai-button--onboarding-primary:focus {
  color: #fff !important;
}

.kgai-button--onboarding-secondary {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(245, 181, 54, 0.5);
  color: #f5b536;
}

.kgai-assistant__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(240, 160, 40, 0.95) 0%, rgba(224, 120, 0, 0.98) 100%);
  border-radius: 22px;
  padding: 20px;
  color: #fff;
}

.kgai-assistant__header-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.kgai-assistant__header-copy {
  min-width: 0;
}

.kgai-assistant__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.kgai-assistant__brand-logo {
  display: block;
  width: auto;
  max-width: min(220px, 100%);
  height: 36px;
  object-fit: contain;
}

.kgai-assistant__avatar {
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 0;
  background: transparent;
  flex: 0 0 auto;
}

.kgai-assistant__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kgai-assistant__header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kgai-assistant__header h2 {
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.05;
}

.kgai-assistant__eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.kgai-assistant__subtitle {
  display: none;
  margin: 4px 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: inherit;
  opacity: 0.84;
}

.kgai-assistant__notice {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(224, 120, 0, 0.18);
  background: rgba(255, 248, 238, 0.96);
  color: var(--kgai-accent-dark);
}

.kgai-assistant__notice--error {
  border-color: rgba(180, 76, 0, 0.2);
  color: #b44c00;
}

.kgai-assistant__messages {
  display: grid;
  gap: 12px;
  align-content: start;
  overflow-anchor: none;
}

.kgai-message {
  display: flex;
}

.kgai-message--assistant {
  justify-content: flex-start;
}

.kgai-message--user {
  justify-content: flex-end;
}

.kgai-message__bubble {
  max-width: min(82%, 680px);
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--kgai-line);
  background: var(--kgai-strong);
  line-height: 1.55;
  white-space: pre-wrap;
}

.kgai-message--user .kgai-message__bubble {
  background: #f5b536;
  border-color: #f5b536;
  color: #fff;
}

.kgai-message--transient .kgai-message__bubble {
  opacity: 0.8;
}

.kgai-message--typing .kgai-message__bubble::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 0.4em;
  vertical-align: -0.08em;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #f0a028 0%, #e07800 100%);
  box-shadow: 0 0 0 0 rgba(224, 120, 0, 0.22);
  animation: kgaiThinkingPulse 1.7s infinite;
  will-change: transform, box-shadow;
}

.kgai-message--typing .kgai-message__bubble:empty {
  display: grid;
  place-items: center;
  width: 64px;
  min-width: 64px;
  min-height: 64px;
  padding: 0;
  border-radius: 999px;
}

.kgai-message--typing .kgai-message__bubble:empty::after {
  margin-left: 0;
  width: 34px;
  height: 34px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(224, 120, 0, 0.26);
  will-change: transform, box-shadow;
}

.kgai-chat-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  max-width: min(82%, 680px);
}

.kgai-chat-cta__button,
.kgai-chat-cta__button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid rgba(224, 120, 0, 0.22);
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.kgai-chat-cta__button--reservation,
.kgai-chat-cta__button--reservation:visited {
  background: linear-gradient(180deg, #f0a028 0%, #e07800 100%);
  color: #fff !important;
  box-shadow: 0 16px 30px rgba(224, 120, 0, 0.22);
}

.kgai-chat-cta__button--program,
.kgai-chat-cta__button--program:visited {
  background: rgba(255, 255, 255, 0.78);
  color: var(--kgai-accent-dark) !important;
}

.kgai-assistant__starters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kgai-starter,
.kgai-button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.kgai-starter {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(224, 120, 0, 0.18);
  color: var(--kgai-accent-dark);
}

.kgai-assistant__composer {
  display: grid;
  gap: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--kgai-line);
  border-radius: 22px;
  padding: 16px;
}

.kgai-assistant__composer textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid var(--kgai-line);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--kgai-ink);
  background: #fffdf8;
}

.kgai-assistant__composer.is-loading {
  opacity: 0.82;
}

.kgai-button {
  padding: 12px 18px;
}

.kgai-button--primary {
  background: linear-gradient(180deg, #f0a028 0%, #e07800 100%);
  color: #fff;
  box-shadow: 0 18px 34px rgba(224, 120, 0, 0.24);
}

.kgai-button--ghost {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.kgai-popup-close {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.kgai-button:disabled,
.kgai-starter:disabled {
  cursor: wait;
  opacity: 0.7;
}

.kgai-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.kgai-popup[hidden] {
  display: none;
}

.kgai-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 18, 8, 0.32);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.kgai-popup__dialog {
  --kgai-popup-radius: 30px;
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(50vw, 760px);
  height: min(88vh, 1080px);
  min-width: 560px;
  min-height: 760px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 32px);
  opacity: 0;
  transform: translate(-50%, calc(-50% + 18px)) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--kgai-popup-radius);
}

.kgai-page-shell {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 16px 0;
}

.kgai-popup__dialog--embedded {
  position: relative;
  top: auto;
  left: auto;
  opacity: 1;
  transform: none;
  width: min(50vw, 760px);
  height: min(88vh, 1080px);
  min-width: 560px;
  min-height: 760px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 32px);
  margin: 0 auto;
}

.kgai-popup__dialog::before,
.kgai-popup__dialog::after {
  display: none;
}

.kgai-popup.is-open .kgai-popup__backdrop {
  opacity: 1;
}

.kgai-popup.is-open .kgai-popup__dialog {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.kgai-assistant--popup {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: none;
  border-radius: var(--kgai-popup-radius, 30px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 247, 234, 0.72) 0%, rgba(255, 250, 243, 0.66) 48%, rgba(255, 253, 249, 0.72) 100%);
  box-shadow: none;
  backdrop-filter: blur(26px) saturate(1.08);
  overflow: hidden;
  isolation: isolate;
}

.kgai-assistant--popup::before,
.kgai-assistant--popup::after {
  content: "";
  position: absolute;
  inset: -14%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.54;
}

.kgai-assistant--popup::before {
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.18) 16%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 74% 28%, rgba(255, 252, 245, 0.32) 0%, rgba(255, 252, 245, 0.12) 20%, rgba(255, 252, 245, 0) 44%),
    radial-gradient(circle at 48% 76%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 18%, rgba(255, 255, 255, 0) 38%);
  filter: blur(20px);
  animation: kgaiPopupGlowDrift 18s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.kgai-assistant--popup::after {
  background:
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.12) 18%, rgba(255, 255, 255, 0) 40%),
    radial-gradient(circle at 36% 52%, rgba(255, 250, 242, 0.24) 0%, rgba(255, 250, 242, 0.1) 20%, rgba(255, 250, 242, 0) 42%);
  filter: blur(28px);
  opacity: 0.42;
  animation: kgaiPopupGlowBreathe 8.5s ease-in-out infinite;
  will-change: transform, opacity;
}

.kgai-assistant--popup .kgai-assistant__shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  gap: 0;
}

.kgai-assistant--popup .kgai-assistant__reset-overlay {
  display: none;
}

.kgai-assistant--popup .kgai-assistant__reset-overlay:not([hidden]) {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: transparent;
  backdrop-filter: none;
}

.kgai-assistant--popup .kgai-assistant__reset-content {
  display: grid;
  justify-items: center;
  gap: 48px;
  transform: translateY(-80px);
}

.kgai-assistant--popup .kgai-assistant__header {
  position: absolute;
  top: 18px;
  left: 24px;
  right: 24px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--kgai-ink);
  pointer-events: none;
}

.kgai-assistant--popup .kgai-assistant__header-main {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: min(56%, 360px);
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.kgai-assistant--popup .kgai-assistant__avatar,
.kgai-assistant--popup .kgai-assistant__eyebrow,
.kgai-assistant--popup .kgai-assistant__subtitle {
  display: none;
}

.kgai-assistant--popup .kgai-assistant__header-copy {
  min-width: 0;
}

.kgai-assistant--popup .kgai-assistant__header-copy {
  display: flex;
  align-items: center;
  justify-content: center;
}

.kgai-assistant--popup .kgai-assistant__header h2 {
  margin: 0;
  color: var(--kgai-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kgai-assistant--popup .kgai-assistant__brand-logo {
  max-width: min(250px, 100%);
  height: 52px;
}

.kgai-assistant--popup .kgai-assistant__header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-left: 0;
  pointer-events: auto;
}

.kgai-assistant--popup .kgai-assistant__header [data-kgai-restart] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--kgai-accent-dark);
  border: 1px solid rgba(224, 120, 0, 0.16);
  box-shadow: none;
  backdrop-filter: blur(16px);
  font-size: 0;
}

.kgai-assistant--popup .kgai-assistant__header [data-kgai-restart]::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: currentColor;
  opacity: 0.9;
  -webkit-mask-image: url("../images/refresh.svg");
  mask-image: url("../images/refresh.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.kgai-assistant--popup .kgai-popup-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--kgai-accent-dark);
  border: 1px solid rgba(224, 120, 0, 0.16);
  box-shadow: none;
  backdrop-filter: blur(16px);
  font-size: 1.3rem;
  line-height: 1;
}

.kgai-assistant--popup .kgai-assistant__conversation {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 72px 24px 18px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #f5b536 transparent;
}

.kgai-assistant--popup .kgai-assistant__onboarding {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 8px 0 8px;
}

.kgai-assistant--popup .kgai-assistant__onboarding-card {
  width: min(100%, 700px);
}

.kgai-assistant--popup .kgai-assistant__notice {
  margin-bottom: 2px;
}

.kgai-assistant--popup .kgai-assistant__messages {
  flex: 0 0 auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  overflow-anchor: auto;
  padding: 8px 22px 18px 8px;
  scrollbar-width: thin;
  scrollbar-color: #f5b536 transparent;
}

.kgai-assistant--popup.kgai-assistant--onboarding .kgai-assistant__conversation {
  justify-content: flex-start;
}

.kgai-assistant--popup.kgai-assistant--onboarding .kgai-assistant__messages {
  flex: 0 0 auto;
  overflow: visible;
  padding-bottom: 10px;
}

.kgai-assistant--popup.kgai-assistant--onboarding .kgai-message--assistant .kgai-message__bubble {
  max-width: min(68%, 500px);
}

.kgai-assistant--popup .kgai-assistant__starters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  padding: 8px 18px 10px 8px;
  gap: 8px;
  justify-content: stretch;
}

.kgai-assistant--popup .kgai-starter {
  display: block;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(224, 120, 0, 0.15);
  color: var(--kgai-accent-dark);
  box-shadow: none;
  backdrop-filter: blur(14px);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  text-align: center;
}

.kgai-assistant--popup .kgai-message__bubble {
  max-width: min(76%, 540px);
  padding: 16px 18px;
  border-radius: 24px;
  border-color: rgba(84, 62, 46, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  font-size: 0.84rem;
  line-height: 1.52;
}

.kgai-assistant--popup .kgai-message--assistant .kgai-message__bubble {
  border-top-left-radius: 24px;
}

.kgai-assistant--popup .kgai-message--user .kgai-message__bubble {
  border-top-right-radius: 24px;
  background: #f5b536;
  box-shadow: none;
}

.kgai-assistant--popup .kgai-assistant__composer {
  --kgai-composer-pad: 12px;
  --kgai-send-lane: 86px;
  position: relative;
  margin: 5px 24px 24px;
  width: auto;
  min-height: 110px;
  padding: var(--kgai-composer-pad) var(--kgai-send-lane) var(--kgai-composer-pad) var(--kgai-composer-pad);
  border: 1px solid rgba(224, 120, 0, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  backdrop-filter: none;
  overflow: hidden;
}

.kgai-assistant--popup .kgai-assistant__composer textarea {
  display: block;
  width: 100%;
  min-height: calc(110px - (var(--kgai-composer-pad) * 2));
  margin: 0;
  border-radius: 0;
  border: 0 !important;
  outline: 0 !important;
  appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-sizing: border-box;
  padding: 12px 0;
  box-shadow: none !important;
  font-size: 1.02rem;
  line-height: 1.6;
  resize: none;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #f5b536 transparent;
  scrollbar-gutter: stable;
}

.kgai-assistant--popup .kgai-assistant__composer textarea:focus {
  outline: none;
  border: 0 !important;
  box-shadow: none !important;
}

.kgai-assistant--popup .kgai-assistant__composer textarea::-webkit-scrollbar {
  width: 9px;
}

.kgai-assistant--popup .kgai-assistant__composer textarea::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

.kgai-assistant--popup .kgai-assistant__composer textarea::-webkit-scrollbar-thumb {
  background: #f5b536;
  border-radius: 999px;
  border: 0;
}

.kgai-assistant--popup .kgai-button--primary {
  position: absolute;
  right: calc((var(--kgai-send-lane) - 42px) / 2);
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: auto 0;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  font-size: 0;
  transform: none;
  color: #e07b00;
  transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
}

.kgai-assistant--popup .kgai-button--primary .kgai-button__icon--send {
  display: block;
  width: 28px;
  height: 28px;
  background-color: currentColor;
  opacity: 1;
  filter: none;
  -webkit-mask-image: url("../images/send.svg");
  mask-image: url("../images/send.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.kgai-assistant--popup .kgai-button--primary.kgai-button--pulse-once {
  animation: none;
}

.kgai-assistant--popup .kgai-button--primary:active {
  transform: scale(0.96);
}

.kgai-assistant--popup .kgai-assistant__conversation::-webkit-scrollbar {
  width: 9px;
}

.kgai-assistant--popup .kgai-assistant__conversation::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

.kgai-assistant--popup .kgai-assistant__conversation::-webkit-scrollbar-thumb {
  background: #f5b536;
  border-radius: 999px;
  border: 0;
}

.kgai-assistant--popup .kgai-assistant__messages::-webkit-scrollbar {
  width: 9px;
}

.kgai-assistant--popup .kgai-assistant__messages::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

.kgai-assistant--popup .kgai-assistant__messages::-webkit-scrollbar-thumb {
  background: #f5b536;
  border-radius: 999px;
  border: 0;
}

.kgai-popup-launcher {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 99998;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  appearance: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: url('../images/icon.png') center / contain no-repeat;
  box-shadow: none;
  cursor: pointer;
  animation: kgaiLauncherPulse 1.7s infinite;
  will-change: transform, filter;
}

.kgai-popup-launcher--bottom_right {
  left: auto;
  right: 22px;
}

.kgai-popup-launcher--bottom_left {
  left: 22px;
  right: auto;
}

.kgai-popup-launcher::before {
  display: none;
}

.kgai-popup-launcher::after {
  display: none;
}

@keyframes kgaiThinkingPulse {
  0% {
    transform: scale(0.94);
    box-shadow: 0 0 0 0 rgba(224, 120, 0, 0.26);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 16px rgba(224, 120, 0, 0);
  }

  100% {
    transform: scale(0.94);
    box-shadow: 0 0 0 0 rgba(224, 120, 0, 0);
  }
}

@keyframes kgaiBounceSequence {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  30% {
    transform: translateY(-8px);
    opacity: 0.7;
  }
}

@keyframes kgaiLauncherPulse {
  0% {
    transform: scale(0.94);
    filter: drop-shadow(0 0 0 rgba(224, 120, 0, 0.4));
  }

  70% {
    transform: scale(1);
    filter: drop-shadow(0 0 12px rgba(224, 120, 0, 0.6));
  }

  100% {
    transform: scale(0.94);
    filter: drop-shadow(0 0 0 rgba(224, 120, 0, 0.4));
  }
}

@keyframes kgaiLauncherTextPulse {
  0% {
    opacity: 0.72;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.96;
    transform: scale(1);
  }

  100% {
    opacity: 0.72;
    transform: scale(0.96);
  }
}

@keyframes kgaiSendPulse {
  0% {
    box-shadow: 0 10px 24px rgba(224, 120, 0, 0.22);
    filter: brightness(1);
  }

  45% {
    box-shadow: 0 0 0 8px rgba(255, 214, 144, 0.22), 0 16px 34px rgba(224, 120, 0, 0.34);
    filter: brightness(1.08);
  }

  100% {
    box-shadow: 0 10px 24px rgba(224, 120, 0, 0.22);
    filter: brightness(1);
  }
}

@keyframes kgaiPopupGlowDrift {
  0% {
    transform: translate3d(-1.5%, -2%, 0) scale(1);
    opacity: 0.42;
  }

  50% {
    transform: translate3d(2%, 1%, 0) scale(1.05);
    opacity: 0.62;
  }

  100% {
    transform: translate3d(1%, 3%, 0) scale(1.08);
    opacity: 0.48;
  }
}

@keyframes kgaiPopupGlowBreathe {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.98);
    opacity: 0.28;
  }

  50% {
    transform: translate3d(-1%, -1.5%, 0) scale(1.04);
    opacity: 0.52;
  }
}

@keyframes kgaiEdgeOrbitColors {
  from {
    --kgai-edge-angle: 0deg;
  }

  to {
    --kgai-edge-angle: 360deg;
  }
}

@keyframes kgaiEdgeBreathe {
  0%,
  100% {
    opacity: 0.56;
    filter: blur(14px) saturate(1.08);
  }

  50% {
    opacity: 0.9;
    filter: blur(22px) saturate(1.2);
  }
}

@media (max-width: 640px) {
  .kgai-assistant {
    padding: 14px;
    border-radius: 22px;
  }

  .kgai-assistant__header {
    grid-template-columns: 1fr;
    display: grid;
    gap: 12px;
    padding: 16px;
  }

  .kgai-message__bubble {
    max-width: 100%;
  }

  .kgai-assistant__starters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .kgai-button,
  .kgai-starter {
    width: 100%;
  }

  .kgai-assistant__header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .kgai-popup__dialog {
    --kgai-popup-radius: 28px;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: calc(100vw - 24px);
    height: calc(100dvh - 24px);
    min-width: 0;
    min-height: 0;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    transform: translate(-50%, calc(-50% + 18px)) scale(0.98);
  }

  .kgai-page-shell {
    padding: 12px 0;
  }

  .kgai-popup__dialog--embedded {
    width: calc(100vw - 24px);
    height: calc(100dvh - 24px);
    min-width: 0;
    min-height: 0;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }

  .kgai-popup.is-open .kgai-popup__dialog {
    transform: translate(-50%, -50%) scale(1);
  }

  .kgai-assistant--popup {
    max-height: none;
    height: 100%;
    border-radius: var(--kgai-popup-radius, 28px);
  }

  .kgai-assistant--popup .kgai-assistant__header {
    top: 14px;
    left: 14px;
    right: 14px;
  }

  .kgai-assistant--popup .kgai-assistant__header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .kgai-assistant--popup .kgai-starter {
    width: 100%;
    min-height: 44px;
    padding: 9px 10px;
    font-size: 0.76rem;
  }

  .kgai-assistant--popup .kgai-popup-close {
    width: 35px;
    height: 35px;
    border: 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
    backdrop-filter: none;
    font-size: 1rem;
  }

  .kgai-assistant--popup .kgai-assistant__header [data-kgai-restart] {
    width: 35px;
    height: 35px;
    min-width: 35px;
    border: 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
    backdrop-filter: none;
  }

  .kgai-assistant--popup .kgai-assistant__header [data-kgai-restart]::before {
    width: 15px;
    height: 15px;
  }

  .kgai-assistant--popup .kgai-assistant__header h2 {
    font-size: 0.92rem;
  }

  .kgai-assistant--popup .kgai-assistant__brand-logo {
    max-width: min(200px, 100%);
    height: 44px;
  }

  .kgai-assistant--popup .kgai-assistant__conversation {
    padding: 56px 14px 12px;
  }

  .kgai-assistant--popup .kgai-assistant__messages {
    padding: 6px 14px 24px 4px;
  }

  .kgai-assistant--popup .kgai-message__bubble {
    max-width: calc(100% - 24px);
    padding: 13px 14px;
    border-radius: 20px;
    font-size: 0.89rem;
    line-height: 1.5;
  }

  .kgai-assistant--popup.kgai-assistant--onboarding .kgai-message--assistant .kgai-message__bubble {
    max-width: calc(100% - 24px);
  }

  .kgai-assistant--popup .kgai-message--assistant .kgai-message__bubble {
    border-top-left-radius: 20px;
  }

  .kgai-assistant--popup .kgai-message--user .kgai-message__bubble {
    border-top-right-radius: 20px;
  }

  .kgai-assistant--popup .kgai-assistant__composer {
    --kgai-composer-pad: 10px;
    --kgai-send-lane: 68px;
    margin: 5px 14px 14px;
    min-height: 92px;
    padding: var(--kgai-composer-pad) var(--kgai-send-lane) var(--kgai-composer-pad) var(--kgai-composer-pad);
  }

  .kgai-assistant--popup .kgai-assistant__composer textarea {
    min-height: calc(92px - (var(--kgai-composer-pad) * 2));
    padding: 10px 0;
    border-radius: 24px;
  }

  .kgai-assistant--popup .kgai-button--primary {
    right: calc((var(--kgai-send-lane) - 35px) / 2);
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    margin: auto 0;
    transform: none;
    color: #e07b00;
  }

  .kgai-assistant--popup .kgai-button--primary .kgai-button__icon--send {
    width: 23px;
    height: 23px;
  }

  .kgai-popup-launcher {
    left: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .kgai-popup-launcher--bottom_right {
    left: auto;
    right: 16px;
  }

  .kgai-popup-launcher--bottom_left {
    left: 16px;
    right: auto;
  }

  .kgai-popup-launcher::after {
    font-size: 0.82rem;
  }

  .kgai-assistant__reset-dots {
    gap: 2px;
    margin-left: 2px;
  }

  .kgai-assistant__reset-dot {
    width: 3px;
    height: 3px;
  }

  @keyframes kgaiBounceSequence {
    0%, 60%, 100% {
      transform: translateY(0);
      opacity: 1;
    }
    30% {
      transform: translateY(-6px);
      opacity: 0.7;
    }
  }
}
