.konadu-root {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  width: min(24rem, calc(100vw - 1rem));
  min-height: 4.6rem;
  pointer-events: none;
  isolation: isolate;
}

.konadu-root * {
  box-sizing: border-box;
}

.konadu-root button,
.konadu-root a,
.konadu-root input {
  pointer-events: auto;
  font: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.konadu-teaser {
  position: absolute;
  right: 0;
  bottom: calc(4.6rem + 0.6rem);
  z-index: 4;
  width: min(20rem, calc(100vw - 2rem));
  padding: 1rem 1rem 1rem 1.1rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(78, 155, 255, 0.22);
  background:
    linear-gradient(160deg, rgba(15, 31, 56, 0.98), rgba(10, 20, 36, 0.96)),
    linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(6, 182, 212, 0.12));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  color: #e8f3ff;
  backdrop-filter: blur(18px);
  transform: translateY(12px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 280ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.konadu-teaser::after {
  content: "";
  position: absolute;
  right: 1.8rem;
  bottom: -0.55rem;
  width: 1rem;
  height: 1rem;
  transform: rotate(45deg);
  border-right: 1px solid rgba(78, 155, 255, 0.22);
  border-bottom: 1px solid rgba(78, 155, 255, 0.22);
  background: #0d1d35;
}

.konadu-teaser.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.konadu-teaser__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.konadu-teaser__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  color: #92cbff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.konadu-teaser__copy {
  margin: 0;
  color: #d7e7fb;
  font-size: 0.96rem;
  line-height: 1.55;
}

.konadu-close {
  width: 2.6rem;
  height: 2.6rem;
  min-width: 2.6rem;
  min-height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #bcd6f7;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.konadu-close:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.12);
}

.konadu-launcher-wrap {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 4.6rem;
  height: 4.6rem;
  pointer-events: auto;
}

.konadu-launcher-ring,
.konadu-launcher-ring::before,
.konadu-launcher-ring::after {
  position: absolute;
  inset: -0.35rem;
  border-radius: 999px;
}

.konadu-launcher-ring {
  pointer-events: none;
}

.konadu-launcher-ring::before,
.konadu-launcher-ring::after {
  content: "";
  border: 1px solid rgba(90, 169, 255, 0.22);
  animation: konaduPulse 3.6s ease-out infinite;
}

.konadu-launcher-ring::after {
  animation-delay: 1.8s;
}

.konadu-launcher {
  position: relative;
  width: 4.6rem;
  height: 4.6rem;
  padding: 0.28rem;
  border-radius: 999px;
  border: 1px solid rgba(93, 171, 255, 0.28);
  background: linear-gradient(145deg, rgba(13, 37, 72, 0.98), rgba(7, 19, 34, 0.98));
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.36),
    0 0 26px rgba(59, 130, 246, 0.18);
  cursor: pointer;
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms ease,
    border-color 260ms ease;
  pointer-events: auto;
}

.konadu-launcher:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(104, 185, 255, 0.42);
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.38),
    0 0 34px rgba(59, 130, 246, 0.24);
}

.konadu-launcher img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
}

.konadu-launcher__badge {
  position: absolute;
  right: 0.05rem;
  top: 0.12rem;
  width: 0.88rem;
  height: 0.88rem;
  border-radius: 999px;
  border: 2px solid #08111f;
  background: linear-gradient(135deg, #37dba2, #73ffd0);
  box-shadow: 0 0 12px rgba(55, 219, 162, 0.45);
}

.konadu-panel {
  position: absolute;
  right: 0;
  bottom: calc(4.6rem + 0.72rem);
  z-index: 3;
  width: min(24rem, calc(100vw - 1rem));
  height: min(40rem, calc(100vh - 6rem));
  max-height: 40rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-radius: 1.6rem;
  border: 1px solid rgba(92, 168, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(10, 22, 40, 0.98), rgba(5, 12, 24, 0.98)),
    linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(6, 182, 212, 0.08));
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.46);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  pointer-events: none;
  transition:
    opacity 280ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.konadu-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.konadu-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.95rem;
  border-bottom: 1px solid rgba(92, 168, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.konadu-panel__identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.konadu-panel__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(102, 179, 255, 0.24);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.18);
}

.konadu-panel__name {
  margin: 0;
  color: #eef6ff;
  font-size: 1rem;
  font-weight: 700;
}

.konadu-panel__meta {
  margin: 0.1rem 0 0;
  color: #8ca2bf;
  font-size: 0.84rem;
}

.konadu-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #90c8ff;
  font-size: 0.8rem;
  font-weight: 600;
}

.konadu-status__dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.konadu-status__dot.is-pulsing {
  animation: konaduBlink 1.15s ease-in-out infinite;
}

.konadu-panel__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.konadu-icon-btn {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(92, 168, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #d4e8ff;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.konadu-icon-btn:hover {
  transform: translateY(-1px);
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(92, 168, 255, 0.22);
}

.konadu-panel__body {
  overflow: auto;
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
  align-content: start;
  scroll-behavior: smooth;
}

.konadu-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.konadu-chip {
  border: 1px solid rgba(92, 168, 255, 0.18);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.08);
  color: #d4e8ff;
  padding: 0.55rem 0.9rem;
  font-size: 0.83rem;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.konadu-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(111, 190, 255, 0.28);
  background: rgba(59, 130, 246, 0.14);
}

.konadu-message {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
}

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

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

.konadu-message__avatar {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  flex: 0 0 auto;
  border: 1px solid rgba(92, 168, 255, 0.16);
}

.konadu-message__stack {
  display: grid;
  gap: 0.35rem;
  max-width: min(82%, 18.8rem);
}

.konadu-message--user .konadu-message__stack {
  justify-items: end;
}

.konadu-bubble {
  position: relative;
  padding: 0.9rem 1rem;
  border-radius: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  user-select: text;
  -webkit-user-select: text;
}

.konadu-message--assistant .konadu-bubble {
  border: 1px solid rgba(92, 168, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #ebf3ff;
  border-bottom-left-radius: 0.45rem;
}

.konadu-message--user .konadu-bubble {
  border: 1px solid rgba(115, 183, 255, 0.16);
  background: linear-gradient(135deg, rgba(35, 110, 255, 0.92), rgba(34, 178, 233, 0.88));
  color: white;
  border-bottom-right-radius: 0.45rem;
}

.konadu-message__time {
  color: #7990af;
  font-size: 0.72rem;
}

.konadu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.konadu-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(105, 179, 255, 0.22);
  color: #eef6ff;
  background: rgba(59, 130, 246, 0.12);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.konadu-action:hover {
  transform: translateY(-1px);
  background: rgba(59, 130, 246, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.konadu-panel__footer {
  padding: 0.9rem 1rem 1rem;
  border-top: 1px solid rgba(92, 168, 255, 0.12);
  background: rgba(5, 12, 24, 0.88);
}

.konadu-hint {
  margin: 0 0 0.65rem;
  color: #8aa6c9;
  font-size: 0.8rem;
}

.konadu-composer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem;
  align-items: center;
}

.konadu-composer__field {
  width: 100%;
  min-height: 2.95rem;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(92, 168, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #eff7ff;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.konadu-composer__field::placeholder {
  color: #6f87a7;
}

.konadu-composer__field:focus {
  border-color: rgba(105, 179, 255, 0.32);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.konadu-composer__btn {
  min-width: 3rem;
  height: 3rem;
  min-height: 3rem;
  padding: 0 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(92, 168, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #ebf4ff;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.konadu-composer__btn:hover {
  transform: translateY(-1px);
  border-color: rgba(105, 179, 255, 0.32);
}

.konadu-composer__btn--voice {
  color: #8bd1ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.konadu-composer__btn--voice.is-active {
  background: rgba(6, 182, 212, 0.14);
  border-color: rgba(76, 214, 255, 0.34);
  box-shadow: 0 0 0 5px rgba(6, 182, 212, 0.08);
}

.konadu-composer__btn--send {
  width: 3rem;
  min-width: 3rem;
  padding: 0;
  background: linear-gradient(135deg, #2f84ff, #1ec9e6);
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(47, 132, 255, 0.28);
  font-size: 1.15rem;
  font-weight: 700;
}

.konadu-composer__btn--send:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 32px rgba(47, 132, 255, 0.34);
}

.konadu-composer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: translateX(0);
  transition: transform 180ms ease;
}

.konadu-composer__btn--send:hover .konadu-composer__icon {
  transform: translateX(2px);
}

.konadu-composer__btn:disabled {
  opacity: 0.48;
  cursor: default;
  transform: none !important;
  box-shadow: none !important;
}

.konadu-typing {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.konadu-typing span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #9ec9ff;
  animation: konaduTyping 1.1s ease-in-out infinite;
}

.konadu-typing span:nth-child(2) {
  animation-delay: 0.14s;
}

.konadu-typing span:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes konaduPulse {
  0% {
    opacity: 0;
    transform: scale(0.94);
  }
  20% {
    opacity: 0.34;
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes konaduBlink {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.72);
    opacity: 0.6;
  }
}

@keyframes konaduTyping {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-0.22rem);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .konadu-root {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100vw - 1.1rem);
  }

  .konadu-panel {
    width: calc(100vw - 1.1rem);
    height: min(77vh, 38rem);
  }

  .konadu-teaser {
    width: min(18rem, calc(100vw - 1.25rem));
    bottom: calc(4.6rem + 0.52rem);
  }

  .konadu-close,
  .konadu-icon-btn,
  .konadu-composer__btn {
    min-width: 3rem;
    min-height: 3rem;
  }

  .konadu-message__stack {
    max-width: 88%;
  }
}
