.ireca-ai-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f5fff, #00b8d9);
  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 18px 38px rgba(15,95,255,.26);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.ireca-ai-float:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 22px 46px rgba(0,184,217,.28);
}

.ireca-ai-float-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}

.ireca-ai-shell {
  min-height: calc(100vh - 170px);
}

.ireca-ai-chat {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 185px);
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.45);
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 0%, rgba(0,184,217,.10), transparent 28%),
    linear-gradient(180deg, #ffffff, #f8fbff);
}

.ireca-ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
}

.ireca-ai-empty {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.ireca-ai-mascot {
  width: min(260px, 48vw);
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 18px 32px rgba(15,95,255,.20)) saturate(1.05);
}

.ireca-ai-empty-title {
  font-size: 22px;
  font-weight: 800;
  color: #101828;
}

.ireca-ai-empty-subtitle {
  color: #64748b;
  font-size: 14px;
}

.ireca-ai-prompts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 720px;
  margin-top: 8px;
}

.ireca-ai-prompts button {
  border: 1px solid rgba(15,95,255,.18);
  background: #ffffff;
  color: #0f5fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ireca-ai-prompts button:hover {
  border-color: rgba(15,95,255,.38);
  background: #f3f8ff;
}

.ireca-ai-message {
  display: flex;
  margin-bottom: 14px;
}

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

.ireca-ai-bubble {
  max-width: min(760px, 86%);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.ireca-ai-message.user .ireca-ai-bubble {
  color: #ffffff;
  background: #0f5fff;
}

.ireca-ai-message.assistant .ireca-ai-bubble {
  color: #111827;
  background: #ffffff;
  border: 1px solid rgba(148,163,184,.38);
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
}

.ireca-ai-message.loading .ireca-ai-bubble {
  color: #64748b;
}

.ireca-ai-compose {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(148,163,184,.35);
  background: rgba(255,255,255,.92);
}

.ireca-ai-compose textarea {
  flex: 1;
  resize: none;
  min-height: 44px;
  max-height: 130px;
  padding: 12px 14px;
  border: 1px solid rgba(148,163,184,.55);
  border-radius: 8px;
  outline: none;
  font-size: 14px;
  background: #ffffff;
}

.ireca-ai-compose textarea:focus {
  border-color: #0f5fff;
  box-shadow: 0 0 0 3px rgba(15,95,255,.12);
}

.ireca-ai-settings {
  max-width: 920px;
}

.ireca-ai-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148,163,184,.25);
  font-size: 14px;
  font-weight: 600;
}

.ireca-ai-field {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.ireca-ai-field textarea {
  min-height: 180px;
}

.ireca-ai-key-state {
  padding: 12px 14px;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
}

@media (max-width: 640px) {
  .ireca-ai-float {
    left: 14px;
    right: 14px;
    bottom: 14px;
    justify-content: center;
  }

  .ireca-ai-compose {
    flex-direction: column;
  }

  .ireca-ai-compose .kt-btn {
    width: 100%;
  }
}

