.uha-chat-container {
  max-width: 760px;
  margin: 20px auto;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fafafa;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Варианты размеров */
.uha-chat-container.uha-size-compact {
  max-width: 480px;
}

.uha-chat-container.uha-size-normal {
  max-width: 760px;
}

.uha-chat-container.uha-size-wide {
  max-width: 100%;
}

/* Темы (минимально, базовая мягкая / светлая) */
.uha-chat-container.uha-theme-soft {
  background: #faf7f2;
}

.uha-chat-container.uha-theme-light {
  background: #ffffff;
}

.uha-chat-header {
  margin-bottom: 12px;
}

.uha-chat-title {
  font-size: 18px;
  font-weight: 600;
}

.uha-chat-subtitle {
  font-size: 13px;
  color: #666;
}

.uha-chat-output {
  max-height: 220px;
  overflow-y: auto;
  padding: 8px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #eee;
}

.uha-chat-bubble {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
  max-width: 90%;
  font-size: 14px;
  line-height: 1.4;
}

.uha-chat-bubble-user {
  background: #e3f3ff;
  margin-left: auto;
  display: block;
  text-align: right;
}

.uha-chat-bubble-assistant {
  background: #f3f3f3;
  margin-right: auto;
  display: block;
  text-align: left;
}

.uha-chat-bubble-error {
  background: #ffe3e3;
  color: #a00;
  margin-right: auto;
  display: block;
}

.uha-chat-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  margin-top: 4px;
}

.uha-chat-input {
  flex: 1;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: vertical;
  font-size: 14px;
}

.uha-chat-send {
  min-width: 110px;
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  background: #0073aa;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.uha-chat-send:disabled {
  opacity: 0.7;
  cursor: default;
}

.uha-history-block {
  border-top: 1px solid #e0e0e0;
  padding-top: 10px;
  margin-top: 6px;
}

.uha-history-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}

.uha-history-iframe-wrap {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
}

.uha-history-placeholder {
  font-size: 13px;
  color: #777;
}


/* Вложения */
.uha-chat-input-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.uha-chat-attach-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px 4px;
}

.uha-chat-attachments-list {
  margin-top: 4px;
  font-size: 12px;
  color: #555;
}
