#rtsa-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999999;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

#rtsa-toggle {
  background: #0b2a5b;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

#rtsa-panel {
  width: 340px;
  height: 460px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  margin-bottom: 10px;
}

#rtsa-header {
  background: #0b2a5b;
  color: #fff;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#rtsa-close {
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

#rtsa-log {
  padding: 10px;
  overflow: auto;
  flex: 1;
  background: #fafafa;
}

.rtsa-line {
  margin: 10px 0;
}

.rtsa-who {
  font-size: 12px;
  opacity: 0.65;
  margin-bottom: 3px;
}

.rtsa-text {
  background: #fff;
  border: 1px solid #eee;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.35;
}

.rtsa-user .rtsa-text {
  background: #e9f2ff;
  border-color: #d7e7ff;
}

#rtsa-input-row {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #eee;
  background: #fff;
}

#rtsa-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  font-size: 14px;
}

#rtsa-send {
  background: #0b2a5b;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}