#seai-chat-root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.seai-chat-launch {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 66px;
  height: 66px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  z-index: 99998;
  color: #fff;
  background: linear-gradient(135deg, #0b5cff 0%, #123b8f 100%);
  box-shadow: 0 10px 35px rgba(0, 70, 180, .30);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.seai-chat-launch:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 42px rgba(0, 70, 180, .38);
}

.seai-chat-launch svg {
  width: 31px;
  height: 31px;
}

.seai-chat-panel {
  position: fixed;
  right: 26px;
  bottom: 108px;
  width: 470px;
  max-width: calc(100vw - 32px);
  height: 680px;
  max-height: calc(100vh - 130px);
  background: #fff;
  border: 1px solid rgba(20, 40, 80, .10);
  border-radius: 22px;
  box-shadow: 0 25px 80px rgba(15, 35, 75, .24);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: seai-open .22s ease-out;
}

@keyframes seai-open {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.seai-chat-header {
  padding: 19px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(135deg, #0b5cff 0%, #123b8f 100%);
}

.seai-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.seai-brand-icon {
  width: 43px;
  height: 43px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.20);
}

.seai-brand-icon svg {
  width: 25px;
  height: 25px;
}

.seai-brand-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.seai-online {
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  opacity: .95;
}

.seai-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #32d583;
  box-shadow: 0 0 0 3px rgba(50,213,131,.18);
}

.seai-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.seai-close:hover {
  background: rgba(255,255,255,.18);
}

.seai-messages {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  background: #f7f9fc;
  scroll-behavior: smooth;
}

.seai-msg {
  display: flex;
  max-width: 88%;
  margin: 10px 0;
  line-height: 1.55;
  font-size: 14px;
}

.seai-msg.user {
  margin-left: auto;
  justify-content: flex-end;
}

.seai-msg.assistant {
  margin-right: auto;
}

.seai-bubble {
  padding: 12px 15px;
  border-radius: 17px;
  white-space: pre-wrap;
  word-break: break-word;
}

.seai-msg.assistant .seai-bubble {
  background: #fff;
  border: 1px solid #e5e9f0;
  color: #202938;
  border-bottom-left-radius: 5px;
  box-shadow: 0 2px 8px rgba(20,40,80,.04);
}

.seai-msg.user .seai-bubble {
  color: #fff;
  background: linear-gradient(135deg, #0b5cff 0%, #1649a5 100%);
  border-bottom-right-radius: 5px;
}

.seai-typing .seai-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 13px 16px;
}

.seai-typing span {
  width: 6px;
  height: 6px;
  background: #8491a7;
  border-radius: 50%;
  animation: seai-dot 1.1s infinite ease-in-out;
}

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

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

@keyframes seai-dot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: .45;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.seai-chat-form {
  display: flex;
  padding: 13px 14px;
  gap: 9px;
  border-top: 1px solid #e8ebf0;
  background: #fff;
}

.seai-chat-form input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d9dfe8;
  border-radius: 13px;
  outline: none;
  font-size: 14px;
  background: #f9fafc;
}

.seai-chat-form input:focus {
  border-color: #0b5cff;
  box-shadow: 0 0 0 3px rgba(11,92,255,.10);
  background: #fff;
}

.seai-chat-form button {
  min-width: 72px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: #0b5cff;
  font-weight: 600;
  cursor: pointer;
}

.seai-chat-form button:hover {
  background: #084dcc;
}

.seai-status {
  padding: 0 16px 9px;
  font-size: 12px;
  color: #6d7788;
  min-height: 16px;
  background: #fff;
}

.seai-floating-placeholder {
  display: none;
}

@media (max-width: 600px) {
  .seai-chat-panel {
    right: 8px;
    bottom: 82px;
    width: calc(100vw - 16px);
    height: calc(100vh - 98px);
    max-height: none;
    border-radius: 19px;
  }

  .seai-chat-launch {
    right: 17px;
    bottom: 17px;
    width: 61px;
    height: 61px;
  }

  .seai-messages {
    padding: 15px;
  }

  .seai-msg {
    max-width: 92%;
  }
}
