/* KI-Assistent im Discord Manager. Nutzt die vorhandenen Panel-Variablen, Fallbacks gelten für die übrigen Fälle. */
.editor-assistant-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.editor-assistant-log {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px;
}

.editor-assistant-hint {
  margin: 0;
  opacity: 0.75;
}

.editor-assistant-message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.editor-assistant-message.is-user {
  justify-self: end;
  background: var(--accent, #5b7cfa);
  color: #fff;
}

.editor-assistant-message.is-assistant {
  justify-self: start;
  background: var(--panel-soft, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
}

.editor-assistant-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.editor-assistant-form textarea {
  resize: vertical;
  min-height: 64px;
}

.editor-assistant-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.9em;
  opacity: 0.8;
}

@media (max-width: 720px) {
  .editor-assistant-form {
    grid-template-columns: 1fr;
  }

  .editor-assistant-message {
    max-width: 100%;
  }
}
