/**
 * Nur noch GitHub-spezifische Styles (rechtes Panel, Werkzeug-Aufruf-
 * Bubbles). Alles Gemeinsame mit chat.css lebt jetzt in shared.css,
 * das vor dieser Datei geladen wird (siehe class-personal-ai-github-
 * public.php) – analog zu shared-chat-core.js für JS.
 *
 * Changelog:
 * 0.3.35 - Unverändert.
 * 0.3.34 - Unverändert.
 * 0.3.33 - Unverändert.
 * 0.3.32 - Unverändert.
 * 0.3.31 - Unverändert.
 * 0.3.30 - Unverändert.
 * 0.3.29 - Unverändert.
 * 0.3.28 - Unverändert.
 * 0.3.27 - Punkt 1: optische Sperr-Darstellung für das Repository-Feld
 *          ergänzt (.pai-locked).
 * 0.3.26 - Unverändert.
 * 0.3.25 - Unverändert.
 * 0.3.24 - Unverändert.
 * 0.3.23 - Unverändert.
 * 0.3.22 - Unverändert.
 * 0.3.21 - Unverändert.
 * 0.3.20 - Unverändert.
 * 0.3.19 - Unverändert.
 * 0.3.18 - Unverändert.
 * 0.3.17 - Unverändert.
 * 0.3.16 - Unverändert.
 * 0.3.15 - Unverändert.
 * 0.3.14 - Bugfix: "Repository"-Bereich scrollte fälschlich mit der
 *          Aktivitätsliste mit (beide waren ein gemeinsamer scrollbarer
 *          Block); "Repository" bleibt jetzt fest stehen, nur die
 *          Aktivitätsliste bekommt ihre eigene Bildlaufleiste. Zusätzlich
 *          Styles für hervorgehobene wichtige Ereignisse und den
 *          "Ältere anzeigen"-Link ergänzt.
 * 0.3.13 - Unverändert.
 * 0.3.12 - Unverändert.
 * 0.3.11 - Unverändert.
 * 0.3.10 - Unverändert.
 * 0.3.9 - Unverändert.
 * 0.3.8 - Unverändert.
 * 0.3.7 - Auf die wirklich GitHub-spezifischen Regeln reduziert; alles
 *         Gemeinsame mit chat.css nach shared.css ausgelagert (CSS-
 *         Konsolidierung, analog zum JS-Kern aus 0.3.0).
 * 0.3.6 - Unverändert.
 * 0.3.5 - Unverändert.
 * 0.3.4 - Unverändert.
 * 0.3.3 - Unverändert.
 * 0.3.2 - Unverändert.
 * 0.3.1 - Unverändert.
 * 0.3.0 - Unverändert.
 * 0.2.7 - Unverändert.
 * 0.2.6 - Unverändert.
 * 0.2.5 - Unverändert.
 * 0.2.4 - Unverändert.
 * 0.2.3 - Angleichung an chat.css: Sidebar-Breite (250→260px), Mindesthöhe
 *         (560→520px), Bubble-Maximalbreite (75%→70%), max-width-Kappung
 *         bei Provider-/Modell-Auswahl entfernt. Fehlende Styles ergänzt:
 *         Bild-Anhänge in der Bubble, Sprung-Button, Anhang-Vorschau mit
 *         Miniaturansicht, Icon-Buttons (Datei-Anhang jetzt auch im
 *         GitHub-Bereich möglich).
 * 0.2.2 - Styles für die Denkprozess-Bubble (Extended Thinking) ergänzt.
 * 0.2.1 - Unverändert.
 * 0.2.0 - Von einer eigenständigen Job-Oberfläche auf ein 3-Spalten-
 *         Chat-Layout umgestellt (Sidebar/Chat/Rechtes Panel), analog zu
 *         chat.css, plus Styles für Werkzeug-Aufruf-Bubbles und das
 *         rechte Repository-/Aktivitäts-Panel.
 * 0.1.3 - Neu erstellt (als Job-Oberfläche, inzwischen ersetzt).
 */

/* Werkzeug-Aufruf-Bubble: schmaler, gedämpfter Systemton statt normaler Chat-Bubble. */
.paig-tool-bubble {
	align-self: center;
	max-width: 90%;
	padding: 6px 14px;
	border-radius: 14px;
	background: #f0f0f1;
	color: #555;
	font-size: 12px;
	font-family: monospace;
}

.paig-tool-bubble.is-error { background: #fbdcdc; color: #8a2c2c; }
.paig-tool-bubble a { color: #1e64c8; }

/* Rechtes Panel: Repository-Info + Aktivitätsprotokoll, bewusst schmal. */
.paig-right-panel {
	width: 220px;
	flex-shrink: 0;
	border-left: 1px solid #e2e2e2;
	background: #fafafa;
	padding: 14px;
	display: flex;
	flex-direction: column;
	/* Bugfix: kein overflow/scroll auf dem GESAMTEN Panel mehr – sonst
	   scrollt "Repository" fälschlich mit der Aktivitätsliste mit. */
}

.paig-right-panel h4 {
	margin: 0 0 8px;
	font-size: 12px;
	text-transform: uppercase;
	color: #777;
}

.paig-repo-info { margin-bottom: 20px; font-size: 13px; flex-shrink: 0; }

/* UX-Verbesserung (Punkt 1): sieht wie ein deaktiviertes Feld aus, bleibt
   technisch aber aktiv, damit ein Klickversuch eine Meldung zeigen kann
   (echtes disabled unterdrückt auch Klick-Ereignisse). */
#pai-repo-select.pai-locked {
	background: #f0f0f1;
	color: #888;
	cursor: not-allowed;
}

.paig-activity {
	flex: 1;
	min-height: 0; /* nötig, damit der untenstehende overflow in Flexbox greift */
	display: flex;
	flex-direction: column;
}

.paig-activity-list {
	font-size: 12px;
	overflow-y: auto;
	flex: 1;
	min-height: 0;
}

.paig-activity-item {
	padding: 6px 0;
	border-bottom: 1px solid #eee;
	color: #555;
}

.paig-activity-item.is-error { color: #b32d2e; font-weight: 600; }
.paig-activity-item.is-important { color: #1e1e1e; font-weight: 600; }
.paig-activity-item a { display: block; color: #1e64c8; font-size: 11px; }

.paig-activity-show-more {
	margin-top: 8px;
	font-size: 11px;
	color: #1e64c8;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	text-align: left;
}

@media (max-width: 900px) {
	.paig-right-panel { display: none; }
}
