/**
 * "Arzt"-Chat -- Design an lukinski.de/ai/ angelehnt (Google-clean): keine
 * schweren Rahmen/Outlines, kein grosser farbiger Text-Button. Eigene, lokal
 * scoped Variablen statt der globalen Theme-Farben, damit Enfold-Buttons
 * (das "button"-Klasse-Grün) hier keinen Einfluss mehr haben.
 */
.zac-wrap {
	--zac-bg: #fff; --zac-fg: #202124; --zac-muted: #70757a; --zac-muted-2: #9aa0a6;
	--zac-border: #ecedee; --zac-border-2: #dfe1e5; --zac-hover: #f1f3f4; --zac-bubble-ai: #f1f3f4;
	display: flex; flex-direction: column; gap: 18px; margin-top: 10px;
}
.zac-empty { color: var(--zac-muted); font-size: 14px; }

.zac-thread { background: var(--zac-bg); border: 1px solid var(--zac-border); border-radius: 14px; overflow: hidden; }
.zac-thread-head { padding: 12px 16px; font-size: 12.5px; font-weight: 600; color: var(--zac-fg); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--zac-border); }
.zac-thread-date { font-weight: 400; color: var(--zac-muted); font-size: 12px; }

.zac-msgs { padding: 16px; display: flex; flex-direction: column; gap: 10px; max-height: 340px; overflow-y: auto; }

.zac-msg { max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.45; }
.zac-msg-arzt { align-self: flex-start; background: var(--zac-bubble-ai); color: var(--zac-fg); border-bottom-left-radius: 4px; }
.zac-msg-self { align-self: flex-end; background: var(--zac-fg); color: #fff; border-bottom-right-radius: 4px; }
.zac-msg-meta { display: flex; gap: 8px; font-size: 10.5px; opacity: .6; margin-bottom: 3px; text-transform: uppercase; letter-spacing: .03em; }
.zac-msg-text { white-space: pre-wrap; word-break: break-word; }

/* Antwort-Zeile: Pill statt Rahmen-Textarea + Textbutton (siehe lukinski.de/ai/
   .search-wrap/#send) -- min-width:0 bleibt noetig, siehe frueherer Kommentar:
   eine globale Theme-Button-Regel hat frueher schon mal flex-grow ausgehebelt. */
.zac-reply-row {
	display: flex; align-items: flex-end; gap: 8px; margin: 0 16px 16px;
	border: 1px solid var(--zac-border-2); border-radius: 20px; padding: 8px 8px 8px 14px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.zac-reply-row:focus-within { border-color: var(--zac-fg); box-shadow: 0 1px 8px rgba(0,0,0,.06); }
.zac-reply-text {
	flex: 1 1 auto !important; width: auto !important; min-width: 0 !important;
	border: none !important; outline: none !important; background: transparent !important;
	padding: 6px 0 !important; font-size: 13.5px; font-family: inherit; resize: none;
	min-height: 20px; max-height: 120px; box-sizing: border-box; color: var(--zac-fg);
}
.zac-reply-btn {
	flex: 0 0 auto !important; width: 32px !important; height: 32px; align-self: flex-end;
	border: none !important; border-radius: 50% !important; background: none !important;
	padding: 0 !important; display: flex; align-items: center; justify-content: center;
	color: var(--zac-fg); cursor: pointer;
}
.zac-reply-btn:hover:not(:disabled) { background: var(--zac-hover) !important; }
.zac-reply-btn:disabled { opacity: .4; cursor: default; }
.zac-reply-btn svg { width: 17px; height: 17px; }

@media (max-width: 480px) {
	.zac-msg { max-width: 90%; }
}
