/* ── Utilities & kleine Komponentenklassen ─────────────────────────────────
   Ersetzt statische Inline-Styles aus den JS-Markup-Templates (public/js).
   Diese Datei muss NACH allen anderen Stylesheets geladen werden, damit die
   Utilities (Spezifität 0,1,0) gleichrangige Komponentenregeln wie
   .admin-label / .proj-settings-hint / .settings-cred-row überschreiben —
   genau wie es die Inline-Styles vorher taten.
   Abstände folgen der --space-* Skala aus theme.css (1=4px … 12=48px).
──────────────────────────────────────────────────────────────────────────── */

/* Abstände */
.m-0  { margin: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mb-3 { margin-bottom: var(--space-3); }

/* Flex */
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.self-start { align-self: flex-start; }
.gap-2 { gap: var(--space-2); }
/* Zeile: links Label, rechts Aktion */
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

/* Größen */
.w-full { width: 100%; }
/* Schmales Formular (Telegram-Einstellungen im Projekt) */
.form-narrow { max-width: 520px; }

/* Textarea-Standard: vertikal ziehbar, Systemschrift des Umfelds */
.ta-resize {
  resize: vertical;
  font-family: inherit;
}

/* Farben */
.text-success { color: var(--success, #4caf50); }
.text-warning { color: var(--warning, #e0a030); }

/* ── Leerzustände / Loader ─────────────────────────────────────────────── */
/* Ganzseitiger Leerzustand (404, kein Zugriff) – überschreibt auch das
   Desktop-Padding der .empty-state-Media-Query */
.empty-state.empty-state-page { padding: var(--space-8) var(--space-6); }
/* Kompakter Leerzustand innerhalb eines Panels (Chat, Dashboard) */
.empty-state.empty-state-compact { padding: var(--space-6); }
/* Loader mit weniger Höhe (Dashboard-Nachladen) */
.agent-loader.agent-loader-compact { padding: var(--space-10) var(--space-5); }

/* ── Admin-Formulare ───────────────────────────────────────────────────── */
/* Einleitungstext eines Admin-Blocks (10px – nicht auf der Skala) */
.admin-block-intro { margin: 0 0 10px; }
/* Hinweistext zwischen Label und Eingabefeld */
.admin-field-hint { margin: 2px 0 6px; }
/* Hinweistext unter einer Checkbox-Zeile */
.admin-toggle-hint { margin: 2px 0 10px; }
/* „Gespeichert“-Vermerk unter einem Key-Feld */
.admin-saved-note {
  color: var(--success, #4caf50);
  margin-top: 2px;
}
/* Checkbox-Zeile mit Label (Projekt → Telegram „Bot aktiv“) */
.admin-switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 4px;
}
/* Nachgelagertes Feld (Git: Origin anlegen) */
.admin-field-follow { margin-top: 6px; }

/* ── Projekt: Status-Punkt & Git-Drift ─────────────────────────────────── */
/* Farbe kommt dynamisch per style="background:…" */
.proj-status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 7px;
}
.git-drift-wrap { margin-bottom: 10px; }
/* Badge; Hintergrund dynamisch per style="background:…" */
.git-drift-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-right: 6px;
}
.git-drift-list {
  margin-top: 8px;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--border, #333);
  border-radius: 8px;
  padding: 8px;
}
.git-drift-file {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.git-drift-code {
  display: inline-block;
  width: 26px;
  color: var(--accent, #f59e0b);
  font-weight: 600;
}
