#rubiqs-atlas-widget-root {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  font-family: "proxima-nova", "Inter", "Segoe UI", Arial, sans-serif;
}

.rubiqs-atlas-launcher {
  width: 68px;
  height: 68px;
  border: none;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(16, 24, 40, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rubiqs-atlas-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(16, 24, 40, 0.24);
}

.rubiqs-atlas-launcher-icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.rubiqs-atlas-panel {
  position: absolute;
  right: 0;
  bottom: 86px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  background: #ffffff;
  border: 1px solid #dbe5ef;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rubiqs-atlas-hidden {
  display: none;
}

.rubiqs-atlas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  border-bottom: 1px solid #e6edf5;
}

.rubiqs-atlas-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rubiqs-atlas-header-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.rubiqs-atlas-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f3a54;
  line-height: 1.2;
}

.rubiqs-atlas-subtitle {
  font-size: 12px;
  color: #5f7287;
  margin-top: 2px;
}

.rubiqs-atlas-close {
  border: none;
  background: transparent;
  color: #5f7287;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.rubiqs-atlas-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f8fbfe;
}

.rubiqs-atlas-message {
  display: flex;
  margin-bottom: 12px;
}

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

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

.rubiqs-atlas-message-body {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.rubiqs-atlas-message-user .rubiqs-atlas-message-body {
  background: #1f3a54;
  color: #ffffff;
  border-bottom-right-radius: 6px;
}

.rubiqs-atlas-message-assistant .rubiqs-atlas-message-body {
  background: #ffffff;
  color: #24384d;
  border: 1px solid #e4ebf3;
  border-bottom-left-radius: 6px;
}

.rubiqs-atlas-footer {
  border-top: 1px solid #e6edf5;
  background: #ffffff;
  padding: 14px;
}

.rubiqs-atlas-hint {
  font-size: 12px;
  color: #5f7287;
  margin-bottom: 10px;
  font-weight: 600;
}

.rubiqs-atlas-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rubiqs-atlas-input {
  width: 100%;
  min-height: 88px;
  resize: none;
  border: 1px solid #d5e0ea;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  color: #24384d;
  background: #ffffff;
  outline: none;
}

.rubiqs-atlas-input:focus {
  border-color: #5bb6ff;
  box-shadow: 0 0 0 3px rgba(91, 182, 255, 0.15);
}

.rubiqs-atlas-actions {
  display: flex;
  justify-content: flex-end;
}

.rubiqs-atlas-send {
  border: none;
  border-radius: 12px;
  background: #1f3a54;
  color: #ffffff;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.18s ease;
}

.rubiqs-atlas-send:hover {
  opacity: 0.92;
}

.rubiqs-atlas-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  #rubiqs-atlas-widget-root {
    right: 16px;
    bottom: 16px;
  }

  .rubiqs-atlas-launcher {
    width: 60px;
    height: 60px;
  }

  .rubiqs-atlas-launcher-icon {
    width: 40px;
    height: 40px;
  }

  .rubiqs-atlas-panel {
    width: min(100vw - 24px, 380px);
    height: min(70vh, 560px);
    bottom: 76px;
  }
}