.aiec-chat-root {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.aiec-chat {
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  max-width: 520px;
}

.aiec-header {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: rgba(250,250,250,0.9);
}

.aiec-title {
  font-weight: 700;
  font-size: 15px;
  color: #111;
}

.aiec-subtitle {
  margin-top: 2px;
  font-size: 12px;
  color: #333;
  opacity: 0.85;
}

.aiec-messages {
  padding: 12px 14px;
  height: 320px;
  overflow: auto;
  background: rgba(255,255,255,0.65);
}

.aiec-msg {
  margin: 10px 0;
  display: flex;
  gap: 10px;
}

.aiec-bubble {
  max-width: 88%;
  padding: 10px 11px;
  border-radius: 12px;
  line-height: 1.35;
  font-size: 14px;
  color: #111;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.aiec-msg.user { justify-content: flex-end; }
.aiec-msg.user .aiec-bubble {
  background: rgba(17,17,17,0.06);
}

.aiec-msg.assistant .aiec-bubble {
  background: rgba(255,255,255,0.98);
}

.aiec-controls {
  padding: 12px 14px;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: rgba(250,250,250,0.9);
}

.aiec-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.aiec-input {
  flex: 1;
  resize: vertical;
  min-height: 44px;
  max-height: 120px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.18);
  background: #fff;
  color: #111;
  outline: none;
}

.aiec-input:focus {
  border-color: rgba(0,0,0,0.35);
}

.aiec-send {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: #111;
}

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

.aiec-tools {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.aiec-tts,
.aiec-stt {
  border: 1px solid rgba(0,0,0,0.18);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
  color: #111;
}

.aiec-tts[aria-busy="true"],
.aiec-stt[aria-busy="true"] {
  opacity: 0.65;
  cursor: progress;
}

.aiec-status {
  font-size: 12px;
  color: rgba(0,0,0,0.7);
}

.aiec-disclaimer {
  padding: 10px 14px;
  border-top: 1px dashed rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.92);
  font-size: 13px; /* <-- größer */
  color: rgba(0,0,0,0.78);
  line-height: 1.35;
}

.aiec-missing-key {
  padding: 12px 14px;
  color: #111;
  background: rgba(255,245,245,0.9);
  border-top: 1px solid rgba(0,0,0,0.08);
}
