/* BAVORA OS · Platzhalter-Chips in Text- und Betreff-Feldern (wie Datenfelder im Vertragseditor). */
.token-field { display: block; width: 100%; min-height: 40px; cursor: text; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; outline: none; }
.token-field--single { white-space: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.token-field--single::-webkit-scrollbar { display: none; }
.token-field--multi { resize: vertical; overflow: auto; max-height: 60vh; }
.token-field:focus-visible, .token-field:focus { border-color: var(--bv-crm-accent, #1f5c45); box-shadow: 0 0 0 3px var(--bv-crm-focus-ring, rgba(46, 134, 92, .18)); }
.token-field.is-empty::before { content: attr(data-placeholder); color: var(--ink-muted, #8a847a); pointer-events: none; }
.token-field[contenteditable="false"] { background: var(--bg-alt, #f7f4ef); cursor: default; }
.token-chip { display: inline-flex; align-items: center; gap: 4px; margin: 0 2px; padding: 1px 8px; border-radius: 999px; font-size: .86em; line-height: 1.5; font-weight: 600;
  background: var(--accent-bg, #e8f1ec); color: var(--bv-crm-accent, #1f5c45); border: 1px solid color-mix(in srgb, var(--bv-crm-accent, #1f5c45) 28%, transparent);
  white-space: nowrap; vertical-align: baseline; user-select: all; }
.token-chip--unknown { background: var(--warn-bg, #fdf1e0); color: var(--warn, #9a5b00); border-color: currentColor; }
.token-chip--add { cursor: pointer; font-weight: 500; user-select: none; }
.token-chip--add:hover { border-color: var(--bv-crm-accent, #1f5c45); }
.token-chip--add:focus-visible { outline: 2px solid var(--bv-crm-focus, #2e865c); outline-offset: 2px; }
.token-palette { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
@media (forced-colors: active) { .token-chip { border: 1px solid CanvasText; } }
