/* ============================================================
   Welle 2.4 · Kontext-Chats / Rückfragen
   Styles für den Rückfrage-Button am Objekt, den Dialog,
   die Sidebar-Gruppe "Rückfragen" und den Chat-Header mit Bildbezug.
   ============================================================ */

/* --- Ask-Button (Overlay auf Bildern/Mustern) --- */
.bv-ask-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--gold, #b8945a);
  background: #fff;
  color: var(--navy, #0f1d3f);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1;
}
.bv-ask-btn:hover {
  background: var(--gold-bg, #faf6ed);
  border-color: var(--navy, #0f1d3f);
}
.bv-ask-btn::before {
  content: '💬';
  font-size: 13px;
}

/* Schwebender Button auf Bild-Thumbnail */
.bv-ask-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(15, 29, 63, 0.12);
}

/* --- Ask-Dialog --- */
.bv-ask-dlg {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 29, 63, 0.55);
  z-index: 1000;
  padding: 16px;
}
.bv-ask-dlg.is-open {
  display: flex;
}
.bv-ask-dlg__card {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(15, 29, 63, 0.35);
}
.bv-ask-dlg__head {
  padding: 20px 24px 8px;
  border-bottom: 1px solid #efe9d9;
}
.bv-ask-dlg__head h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  color: var(--navy, #0f1d3f);
}
.bv-ask-dlg__head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #5e5a50;
}
.bv-ask-dlg__subject {
  display: flex;
  gap: 12px;
  padding: 12px 24px;
  background: var(--gold-bg, #faf6ed);
  border-bottom: 1px solid #efe9d9;
  align-items: center;
}
.bv-ask-dlg__thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: #efe9d9;
  flex-shrink: 0;
}
.bv-ask-dlg__thumb--doc {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--gold, #b8945a);
  background: #fff;
  border: 1px solid #efe9d9;
}
.bv-ask-dlg__subject-txt strong {
  display: block;
  color: var(--navy, #0f1d3f);
  font-size: 14px;
  margin-bottom: 2px;
}
.bv-ask-dlg__subject-txt span {
  font-size: 12px;
  color: #7a7263;
}
.bv-ask-dlg__body {
  padding: 16px 24px;
}
.bv-ask-dlg__body label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy, #0f1d3f);
  margin-bottom: 6px;
}
.bv-ask-dlg__body textarea {
  width: 100%;
  min-height: 110px;
  padding: 10px 12px;
  border: 1px solid #d8d1be;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
}
.bv-ask-dlg__body textarea:focus {
  outline: none;
  border-color: var(--gold, #b8945a);
  box-shadow: 0 0 0 3px rgba(184, 148, 90, 0.2);
}
.bv-ask-dlg__hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: #7a7263;
  line-height: 1.45;
}
.bv-ask-dlg__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px 20px;
}
.bv-ask-dlg__btn {
  padding: 9px 18px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.bv-ask-dlg__btn--ghost {
  background: transparent;
  color: #7a7263;
  border: 1px solid #d8d1be;
}
.bv-ask-dlg__btn--ghost:hover {
  background: #f6f2e4;
}
.bv-ask-dlg__btn--primary {
  background: var(--navy, #0f1d3f);
  color: #fff;
}
.bv-ask-dlg__btn--primary:hover {
  background: var(--navy2, #1f3d6b);
}
.bv-ask-dlg__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Chat-Sidebar-Eintrag (Rückfragen) --- */
.chat-thread--ask {
  position: relative;
}
.chat-thread--ask .chat-thread__subject {
  display: block;
  font-size: 11px;
  color: var(--gold, #b8945a);
  margin-top: 2px;
  font-style: italic;
}
.chat-thread--ask.is-archived {
  opacity: 0.55;
}
.chat-thread--ask.is-archived strong::after {
  content: ' · geschlossen';
  font-style: italic;
  font-weight: 400;
  color: #7a7263;
  font-size: 11px;
}

/* --- Chat-Raum mit Bildbezug (Banner) --- */
.bv-ask-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--gold-bg, #faf6ed);
  border-bottom: 1px solid #efe9d9;
  border-top: 1px solid #efe9d9;
}
.bv-ask-banner__thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  background: #efe9d9;
  flex-shrink: 0;
}
.bv-ask-banner__thumb--doc {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--gold, #b8945a);
  background: #fff;
  border: 1px solid #efe9d9;
}
.bv-ask-banner__txt {
  flex: 1;
  min-width: 0;
}
.bv-ask-banner__txt strong {
  display: block;
  font-size: 13px;
  color: var(--navy, #0f1d3f);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bv-ask-banner__txt span {
  font-size: 11px;
  color: #7a7263;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bv-ask-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.bv-ask-banner__btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #d8d1be;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
  color: var(--navy, #0f1d3f);
  font-family: inherit;
  font-weight: 600;
}
.bv-ask-banner__btn:hover {
  background: #f6f2e4;
}
.bv-ask-banner__btn--close {
  border-color: #d6b4b4;
  color: #b83a3a;
}
.bv-ask-banner__btn--close:hover {
  background: #fbeaea;
}
.bv-ask-banner__btn--reopen {
  border-color: #b8d4bf;
  color: #2d7a4f;
}
.bv-ask-banner--archived {
  background: #f2efe6;
  color: #7a7263;
}
.bv-ask-banner--archived .bv-ask-banner__txt strong::after {
  content: ' · geschlossen';
  font-weight: 400;
  font-style: italic;
  color: #b83a3a;
  font-size: 12px;
}

/* --- Teilnehmer-Leiste --- */
.bv-ask-members {
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid #efe9d9;
  font-size: 12px;
  color: #5e5a50;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bv-ask-members__label {
  font-weight: 600;
  color: var(--navy, #0f1d3f);
}
.bv-ask-members__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--gold-bg, #faf6ed);
  border: 1px solid #efe9d9;
  border-radius: 999px;
  font-size: 11px;
}
.bv-ask-members__chip-remove {
  background: none;
  border: none;
  color: #b83a3a;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  line-height: 1;
}
.bv-ask-members__add {
  padding: 3px 10px;
  background: #fff;
  border: 1px dashed var(--gold, #b8945a);
  color: var(--gold, #b8945a);
  border-radius: 999px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
}
.bv-ask-members__add:hover {
  background: var(--gold-bg, #faf6ed);
}

/* Toast */
.bv-ask-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy, #0f1d3f);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 4px 16px rgba(15, 29, 63, 0.25);
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.bv-ask-toast.is-visible {
  opacity: 1;
}

/* --- KI-Assistent Bona Vita® --- */
.chat-msg--assistant {
  background: linear-gradient(135deg, #faf6ed 0%, #fff5e1 100%);
  border-left: 3px solid var(--gold, #b8945a);
  padding-left: 12px;
}
.chat-msg--assistant .chat-msg__author {
  color: var(--gold, #b8945a);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chat-msg--assistant .chat-msg__author::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--navy, #0f1d3f);
  background-image: radial-gradient(circle at 30% 30%, #e4c287, var(--gold, #b8945a) 70%);
  display: inline-block;
  flex-shrink: 0;
}
.chat-msg--assistant-typing {
  font-style: italic;
  color: #7a7263;
  padding: 8px 12px;
  font-size: 12px;
}
.chat-msg--assistant-typing::before {
  content: '•••';
  display: inline-block;
  margin-right: 6px;
  animation: bv-assistant-dots 1.4s infinite;
  color: var(--gold, #b8945a);
  letter-spacing: 2px;
}
@keyframes bv-assistant-dots {
  0%, 20% { opacity: 0.3; }
  50% { opacity: 1; }
  80%, 100% { opacity: 0.3; }
}

/* Assistent als Sidebar-Eintrag */
.chat-thread--assistant {
  background: linear-gradient(to right, #faf6ed 0%, transparent 100%);
}
.chat-thread--assistant .avatar {
  background: var(--navy, #0f1d3f) !important;
  background-image: radial-gradient(circle at 30% 30%, #e4c287, var(--gold, #b8945a) 70%) !important;
  color: #fff !important;
  font-weight: 700;
}
.bv-assistant-intro {
  padding: 14px 16px;
  background: var(--gold-bg, #faf6ed);
  border-left: 3px solid var(--gold, #b8945a);
  margin-bottom: 12px;
  font-size: 13px;
  color: #5e5a50;
  line-height: 1.5;
}
.bv-assistant-intro strong {
  color: var(--navy, #0f1d3f);
  display: block;
  margin-bottom: 4px;
}

/* Action-Chips im Assistenten (z. B. "An Andreas weiterleiten") */
.bv-assistant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.bv-assistant-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: #fff;
  border: 1px solid var(--gold, #b8945a);
  border-radius: 999px;
  font-size: 12px;
  color: var(--navy, #0f1d3f);
  cursor: pointer;
  font-family: inherit;
}
.bv-assistant-action:hover {
  background: var(--gold-bg, #faf6ed);
}

@media (max-width: 640px) {
  .bv-ask-dlg__card { max-width: 100%; border-radius: 12px; }
  .bv-ask-dlg__subject { flex-direction: column; align-items: flex-start; }
  .bv-ask-dlg__thumb { width: 100%; height: 140px; }
  .bv-ask-banner { flex-wrap: wrap; }
  .bv-ask-banner__actions { width: 100%; margin-top: 8px; }
}

/* ============================================================
   Welle 2.5 · Vita Voice-Controls (Mic / TTS-Hinweis)
   ============================================================ */
.bv-mic-btn,
.bv-tts-btn {
  appearance: none;
  border: 1px solid #d9d3c1;
  background: #faf6ed;
  color: #0f1d3f;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background .15s ease, border-color .15s ease, transform .08s ease;
  flex: 0 0 auto;
}
.bv-mic-btn:hover:not(.is-disabled),
.bv-tts-btn:hover:not(.is-disabled) {
  background: #f1ead6;
  border-color: #c9bd9a;
}
.bv-mic-btn:active { transform: scale(0.96); }
.bv-mic-btn.is-listening {
  background: #b83a3a;
  border-color: #9a2f2f;
  color: #fff;
  animation: bv-mic-pulse 1.2s ease-in-out infinite;
}
@keyframes bv-mic-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(184,58,58,0.45); }
  50%     { box-shadow: 0 0 0 6px rgba(184,58,58,0.00); }
}
.bv-tts-btn.is-disabled {
  color: #9a927f;
  cursor: help;
  background: #f4efe2;
}
/* Welle 7.1 — Charlotte-Stimme aktiv */
.bv-tts-btn.is-on {
  background: #efe4c4;
  border-color: #b8945a;
  color: #6b4f1f;
}
.bv-tts-btn.is-on:hover {
  background: #e7d8a8;
}
/* Welle 7.1 — Klickbarkeit sicherstellen, falls Dringend-FAB überlappt */
.bv-mic-btn,
.bv-tts-btn {
  position: relative;
  z-index: 850;
}
.bv-tts-btn__badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: #b8945a;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 8px;
  letter-spacing: .3px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.bv-mic-btn.is-disabled {
  color: #9a927f;
  cursor: not-allowed;
  opacity: 0.55;
}

/* Compose-Form Layout anpassen, damit Icons sauber sitzen */
.chat-room__compose {
  display: flex;
  gap: 8px;
  align-items: center;
}
.chat-room__compose > input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
}

/* Höhere Spezifität, damit Compose-Form-Defaults übersteuert werden */
.chat-room__compose .bv-mic-btn,
.chat-room__compose .bv-tts-btn,
#chat-compose .bv-mic-btn,
#chat-compose .bv-tts-btn {
  background: #faf6ed !important;
  color: #0f1d3f !important;
  border: 1px solid #d9d3c1 !important;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  box-shadow: none;
}
.chat-room__compose .bv-mic-btn:hover:not(.is-disabled),
.chat-room__compose .bv-tts-btn:hover:not(.is-disabled),
#chat-compose .bv-mic-btn:hover:not(.is-disabled),
#chat-compose .bv-tts-btn:hover:not(.is-disabled) {
  background: #f1ead6 !important;
  border-color: #c9bd9a !important;
}
.chat-room__compose .bv-mic-btn.is-listening,
#chat-compose .bv-mic-btn.is-listening {
  background: #b83a3a !important;
  color: #fff !important;
  border-color: #9a2f2f !important;
}
.chat-room__compose .bv-tts-btn.is-disabled,
#chat-compose .bv-tts-btn.is-disabled {
  color: #9a927f !important;
  background: #f4efe2 !important;
}

/* ============================================================
   Welle 2.5 · Vita Team-Modus (Suchleiste + Dialog)
   ============================================================ */
.bv-vita-bar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 12px;
  border-radius: 999px;
  border: 1px solid #e4c287;
  background: linear-gradient(180deg, #faf6ed 0%, #f3ead5 100%);
  color: #0f1d3f;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1px;
  cursor: pointer;
  box-shadow: 0 6px 24px -8px rgba(15,29,63,0.18), 0 1px 3px rgba(184,148,90,0.15);
  min-width: 460px;
  max-width: 680px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.bv-vita-bar:hover {
  transform: translateX(-50%) translateY(-1px);
  box-shadow: 0 10px 28px -10px rgba(15,29,63,0.22), 0 2px 4px rgba(184,148,90,0.18);
  border-color: #b8945a;
}
.bv-vita-bar__spark {
  font-size: 16px;
  filter: drop-shadow(0 1px 2px rgba(184,148,90,0.3));
}
.bv-vita-bar__text {
  flex: 1;
  text-align: left;
  color: #5a5344;
  font-weight: 400;
}
.bv-vita-bar__kbd {
  display: inline-flex;
  gap: 3px;
}
.bv-vita-bar__kbd kbd {
  background: #fff;
  border: 1px solid #d9d3c1;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #7a7263;
  box-shadow: 0 1px 0 #d9d3c1;
}

/* Dialog */
.bv-vita-dlg {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15,29,63,0.38);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 40px;
  animation: bv-vita-fade .15s ease;
}
@keyframes bv-vita-fade { from { opacity: 0; } to { opacity: 1; } }
.bv-vita-dlg__card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(15,29,63,0.35), 0 4px 12px rgba(15,29,63,0.15);
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #efe9d9;
}
.bv-vita-dlg__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #f0ead9;
  background: linear-gradient(180deg, #faf6ed 0%, #fff 100%);
}
.bv-vita-dlg__spark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #faf6ed;
  border: 1px solid #e4c287;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.bv-vita-dlg__head > div { flex: 1; }
.bv-vita-dlg__head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #0f1d3f;
}
.bv-vita-dlg__head p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #7a7263;
}
.bv-vita-dlg__close {
  background: transparent;
  border: none;
  color: #7a7263;
  font-size: 22px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.bv-vita-dlg__close:hover { background: #f1ead6; color: #0f1d3f; }
.bv-vita-dlg__search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid #f0ead9;
}
.bv-vita-dlg__icon { font-size: 16px; opacity: .65; }
.bv-vita-dlg__search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: #0f1d3f;
  outline: none;
  font-family: inherit;
  padding: 4px 0;
}
.bv-vita-dlg__search input::placeholder { color: #a39a82; }
.bv-vita-dlg__quickrow {
  display: flex;
  gap: 6px;
  padding: 10px 20px;
  border-bottom: 1px solid #f0ead9;
  flex-wrap: wrap;
  background: #fcfaf3;
}
.bv-vita-chip {
  background: #fff;
  border: 1px solid #e4dcc4;
  color: #5a5344;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all .12s ease;
}
.bv-vita-chip:hover {
  background: #faf6ed;
  border-color: #b8945a;
  color: #0f1d3f;
}
.bv-vita-dlg__results {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px 12px;
  min-height: 100px;
}
.bv-vita-empty {
  padding: 40px 24px;
  text-align: center;
  color: #a39a82;
  font-size: 13px;
  font-style: italic;
}
.bv-vita-group { margin-bottom: 8px; }
.bv-vita-group__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a39a82;
  padding: 10px 10px 4px;
  font-weight: 600;
}
.bv-vita-result {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  background: transparent;
  border: none;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background .1s ease;
}
.bv-vita-result:hover,
.bv-vita-result.is-active {
  background: #faf6ed;
}
.bv-vita-result--static { cursor: default; }
.bv-vita-result--static:hover { background: transparent; }
.bv-vita-result__badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: .3px;
  text-transform: uppercase;
  background: #f0ead9;
  color: #7a7263;
  min-width: 72px;
  text-align: center;
}
.bv-vita-result__badge--buyer    { background: #e8eff9; color: #1f3d6b; }
.bv-vita-result__badge--document { background: #f3eee0; color: #8a6d35; }
.bv-vita-result__badge--decision { background: #ece4f4; color: #5a3a80; }
.bv-vita-result__badge--extra    { background: #eaf3ec; color: #2d7a4f; }
.bv-vita-result__badge--payment  { background: #fbeaea; color: #b83a3a; }
.bv-vita-result__badge--chat     { background: #faf0e4; color: #b8945a; }
.bv-vita-result__badge--plan     { background: #e4eef3; color: #3a6b80; }
.bv-vita-result__badge--diary    { background: #f4ede4; color: #8a6d35; }
.bv-vita-result__badge--action   { background: #0f1d3f; color: #fff; }
.bv-vita-result__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bv-vita-result__title {
  font-size: 13px;
  color: #0f1d3f;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bv-vita-result__title mark {
  background: #faeec8;
  color: #0f1d3f;
  padding: 0 2px;
  border-radius: 2px;
}
.bv-vita-result__sub {
  font-size: 11px;
  color: #7a7263;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bv-vita-result__sub mark {
  background: #faeec8;
  color: #0f1d3f;
}
.bv-vita-result__arrow {
  font-size: 11px;
  color: #b8945a;
  font-family: ui-monospace, monospace;
  opacity: 0;
  transition: opacity .1s ease;
}
.bv-vita-result:hover .bv-vita-result__arrow,
.bv-vita-result.is-active .bv-vita-result__arrow {
  opacity: 1;
}
.bv-vita-dlg__foot {
  padding: 9px 20px;
  border-top: 1px solid #f0ead9;
  font-size: 11px;
  color: #a39a82;
  background: #fcfaf3;
}

@media (max-width: 640px) {
  .bv-vita-bar {
    min-width: 0;
    max-width: calc(100vw - 24px);
    width: calc(100vw - 24px);
  }
  .bv-vita-bar__text { font-size: 12px; }
  .bv-vita-dlg { padding: 40px 12px 20px; }
  .bv-vita-dlg__card { max-height: calc(100vh - 60px); }
}

/* ===================== Vita Begrüssung (Welle 2.5) ===================== */

/* Ton-Wahl-Dialog beim ersten Login */
.bv-tone-dlg {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(15, 29, 63, 0.55);
  display: flex; align-items: center; justify-content: center;
  animation: bvToneFade 220ms ease;
}
@keyframes bvToneFade { from { opacity: 0; } to { opacity: 1; } }
.bv-tone-dlg--closing { animation: bvToneFadeOut 220ms ease forwards; }
@keyframes bvToneFadeOut { to { opacity: 0; } }

.bv-tone-dlg__card {
  background: #fff; border-radius: 18px; width: min(460px, calc(100vw - 32px));
  padding: 32px 30px 26px; text-align: center;
  box-shadow: 0 30px 80px rgba(15, 29, 63, 0.35), 0 0 0 1px rgba(184, 148, 90, 0.25);
  font-family: inherit;
  animation: bvTonePop 260ms cubic-bezier(.2,.9,.3,1.2);
}
@keyframes bvTonePop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.bv-tone-dlg__mark {
  font-size: 36px; margin-bottom: 10px; line-height: 1;
  color: #b8945a;
}
.bv-tone-dlg__title {
  margin: 0 0 10px; font-size: 22px; font-weight: 600; color: #0f1d3f;
  letter-spacing: .2px;
}
.bv-tone-dlg__text {
  margin: 0 0 22px; color: #44506b; font-size: 14.5px; line-height: 1.55;
}
.bv-tone-dlg__text strong { color: #0f1d3f; font-weight: 600; }
.bv-tone-dlg__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.bv-tone-btn {
  background: #faf6ed; border: 1px solid #e6dbc1; border-radius: 12px;
  padding: 16px 12px; cursor: pointer; color: #0f1d3f;
  font-family: inherit; font-size: 15px; text-align: center;
  display: flex; flex-direction: column; gap: 4px;
  transition: background 140ms ease, border-color 140ms ease, transform 100ms ease;
}
.bv-tone-btn:hover { background: #f4ead1; border-color: #b8945a; }
.bv-tone-btn:focus-visible { outline: 2px solid #b8945a; outline-offset: 2px; }
.bv-tone-btn:active { transform: scale(.985); }
.bv-tone-btn strong { font-weight: 600; }
.bv-tone-btn span { font-size: 12.5px; color: #6a7491; font-weight: 400; }
.bv-tone-dlg__hint { margin: 0; color: #8691ad; font-size: 12.5px; }

/* Sanfter Toast oben */
.bv-greet-toast {
  position: fixed; top: 68px; left: 50%;
  transform: translate(-50%, -14px);
  z-index: 99998;
  min-width: 300px; max-width: min(520px, calc(100vw - 24px));
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff; color: #0f1d3f;
  padding: 14px 18px 14px 16px; border-radius: 14px;
  box-shadow: 0 18px 48px rgba(15, 29, 63, 0.22), 0 0 0 1px rgba(184, 148, 90, 0.22);
  font-family: inherit;
  opacity: 0; pointer-events: none;
  transition: opacity 260ms ease, transform 260ms cubic-bezier(.2,.9,.3,1.1);
  cursor: pointer;
}
.bv-greet-toast--in { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.bv-greet-toast--out { opacity: 0; transform: translate(-50%, -10px); }
.bv-greet-toast__mark {
  font-size: 22px; line-height: 1; flex-shrink: 0;
  margin-top: 1px; color: #b8945a;
}
.bv-greet-toast__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bv-greet-toast__title { font-size: 15px; font-weight: 600; color: #0f1d3f; letter-spacing: .1px; }
.bv-greet-toast__sub { font-size: 13px; color: #586282; }
.bv-greet-toast__close {
  background: transparent; border: 0; cursor: pointer;
  font-size: 20px; line-height: 1; color: #9aa3bd;
  padding: 0 4px; margin-left: auto; flex-shrink: 0;
  align-self: flex-start;
}
.bv-greet-toast__close:hover { color: #0f1d3f; }

/* Anlass-Varianten: leicht andere Gold-Akzente */
.bv-greet-toast--birthday { box-shadow: 0 18px 48px rgba(184, 148, 90, 0.28), 0 0 0 1.5px rgba(184, 148, 90, 0.55); }
.bv-greet-toast--newyear,
.bv-greet-toast--christmas,
.bv-greet-toast--easter { box-shadow: 0 18px 48px rgba(184, 148, 90, 0.28), 0 0 0 1.5px rgba(184, 148, 90, 0.45); }

@media (max-width: 640px) {
  .bv-greet-toast { top: 60px; min-width: 0; left: 12px; right: 12px; transform: translateY(-14px); max-width: none; }
  .bv-greet-toast--in { transform: translateY(0); }
  .bv-tone-dlg__actions { grid-template-columns: 1fr; }
}

/* Empfehlungs-Markierung im Ton-Dialog */
.bv-tone-btn.is-recommended {
  border-color: #b8945a;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(184, 148, 90, 0.2), 0 8px 22px rgba(184, 148, 90, 0.15);
  position: relative;
}
.bv-tone-btn.is-recommended:hover { background: #faf6ed; }
.bv-tone-btn__rec {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: #b8945a; color: #fff;
  font-size: 10.5px; font-weight: 600; letter-spacing: .4px;
  padding: 2px 10px; border-radius: 10px;
  text-transform: uppercase;
}

/* ========== Vita Ablage-Vorschlag (Welle 2.5) ========== */

/* Drop-Overlay (Global) */
.bv-ablage-overlay {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 29, 63, 0.72);
  backdrop-filter: blur(6px);
  pointer-events: none;
  animation: bvAblageFade .18s ease-out;
}
.bv-ablage-overlay--active { display: flex; }
.bv-ablage-overlay__card {
  background: linear-gradient(180deg, #ffffff 0%, #faf6ed 100%);
  border: 2px dashed #b8945a;
  border-radius: 18px;
  padding: 40px 56px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  text-align: center;
  max-width: 420px;
}
.bv-ablage-overlay__mark {
  font-size: 44px;
  margin-bottom: 8px;
}
.bv-ablage-overlay__title {
  font-size: 20px;
  font-weight: 600;
  color: #0f1d3f;
  margin-bottom: 4px;
}
.bv-ablage-overlay__sub {
  color: #6b6b6b;
  font-size: 14px;
}

@keyframes bvAblageFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Vorschlags-Dialog */
.bv-ablage-dlg {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 29, 63, 0.45);
  backdrop-filter: blur(4px);
  animation: bvAblageFade .2s ease-out;
}
.bv-ablage-dlg--closing {
  animation: bvAblageFadeOut .18s ease-in forwards;
}
@keyframes bvAblageFadeOut {
  to { opacity: 0; }
}
.bv-ablage-dlg__card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  width: min(92vw, 520px);
  padding: 26px 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 88vh;
  overflow-y: auto;
  animation: bvAblagePop .22s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes bvAblagePop {
  from { transform: translateY(12px) scale(.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.bv-ablage-dlg__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid #eee4c8;
  padding-bottom: 12px;
  position: relative;
}
.bv-ablage-dlg__spark {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.bv-ablage-dlg__head h3 {
  margin: 0 0 2px;
  font-size: 17px;
  color: #0f1d3f;
  font-weight: 600;
}
.bv-ablage-dlg__head p {
  margin: 0;
  font-size: 12.5px;
  color: #7a7a7a;
  word-break: break-all;
}
.bv-ablage-dlg__close {
  position: absolute;
  top: -4px;
  right: -4px;
  background: transparent;
  border: 0;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 8px;
}
.bv-ablage-dlg__close:hover { background: #f5f5f5; color: #0f1d3f; }

.bv-ablage-dlg__warn {
  background: #fdf3e7;
  border: 1px solid #f0c68a;
  color: #8a4b0f;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.bv-ablage-dlg__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bv-ablage-dlg__field > span {
  font-size: 12px;
  font-weight: 600;
  color: #0f1d3f;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.bv-ablage-dlg__field select {
  border: 1px solid #d9d1bc;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: #0f1d3f;
  background: #faf6ed;
  cursor: pointer;
  font-family: inherit;
}
.bv-ablage-dlg__field select:focus {
  outline: none;
  border-color: #b8945a;
  box-shadow: 0 0 0 3px rgba(184,148,90,.22);
}

.bv-ablage-dlg__reason {
  background: #faf6ed;
  border-left: 3px solid #b8945a;
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: #4a4a4a;
  line-height: 1.5;
}
.bv-ablage-dlg__reason strong { color: #0f1d3f; }

.bv-ablage-dlg__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}
.bv-ablage-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, transform .05s;
}
.bv-ablage-btn:active { transform: translateY(1px); }
.bv-ablage-btn--ghost {
  background: transparent;
  color: #0f1d3f;
  border: 1px solid #d9d1bc;
}
.bv-ablage-btn--ghost:hover { background: #faf6ed; }
.bv-ablage-btn--primary {
  background: #0f1d3f;
  color: #fff;
}
.bv-ablage-btn--primary:hover:not(:disabled) { background: #1a2d5a; }
.bv-ablage-btn--primary:disabled {
  background: #c9c9c9;
  cursor: not-allowed;
}

/* Erfolgs-Toast */
.bv-ablage-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2600;
  background: #0f1d3f;
  color: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 18px 46px rgba(0,0,0,.35);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 400px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .26s cubic-bezier(.2,.9,.3,1.2), opacity .2s;
  border-left: 3px solid #b8945a;
}
.bv-ablage-toast--in {
  transform: translateY(0);
  opacity: 1;
}
.bv-ablage-toast__mark {
  background: #b8945a;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}
.bv-ablage-toast__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.bv-ablage-toast__title {
  font-weight: 600;
  font-size: 14px;
  word-break: break-word;
}
.bv-ablage-toast__sub {
  font-size: 12.5px;
  color: rgba(255,255,255,.8);
}
.bv-ablage-toast__hint {
  display: inline-block;
  margin-left: 4px;
  color: #f2e0b8;
  font-style: italic;
  font-weight: 500;
}

/* ========== Vita Eskalationsradar (Welle 2.5) ========== */

.bv-escalation-mount {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  position: relative;
}
.bv-escalation-bell {
  background: transparent;
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background .15s;
}
.bv-escalation-bell:hover { background: rgba(184,148,90,.12); }
.bv-escalation-bell__icon {
  font-size: 20px;
  line-height: 1;
  filter: grayscale(0.3);
  transition: filter .2s;
}
.bv-escalation-bell--active .bv-escalation-bell__icon {
  filter: none;
  animation: bvEscPulse 2.2s ease-in-out infinite;
}
@keyframes bvEscPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}
.bv-escalation-bell__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  background: #c8382f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.bv-escalation-bell--medium .bv-escalation-bell__badge { background: #b8945a; }
.bv-escalation-bell--high .bv-escalation-bell__badge    { background: #d87a1a; }
.bv-escalation-bell--critical .bv-escalation-bell__badge{ background: #c8382f; }

/* Popover */
.bv-escalation-pop {
  position: fixed;
  z-index: 2700;
  width: 420px;
  max-width: 92vw;
  max-height: 78vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15,29,63,.28);
  border: 1px solid rgba(184,148,90,.25);
  animation: bvEscPop .18s ease-out;
}
@media (max-width: 720px) {
  .bv-escalation-pop {
    /* Vollbreite auf iPhone: linker/rechter Rand 12px */
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    max-height: 80vh;
    top: 72px !important;
  }
  .bv-escalation-item__quote { font-size: 13px; line-height: 1.45; }
  .bv-escalation-item__head { flex-wrap: wrap; gap: 6px; }
}
@keyframes bvEscPop {
  from { transform: translateY(-6px) scale(.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.bv-escalation-pop__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #eee4c8;
  position: relative;
}
.bv-escalation-pop__spark { font-size: 22px; line-height: 1; margin-top: 2px; }
.bv-escalation-pop__head h3 {
  margin: 0 0 2px;
  font-size: 15px;
  color: #0f1d3f;
  font-weight: 600;
}
.bv-escalation-pop__head p {
  margin: 0;
  font-size: 12px;
  color: #7a7a7a;
}
.bv-escalation-pop__close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: 0;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 8px;
}
.bv-escalation-pop__close:hover { background: #f5f5f5; color: #0f1d3f; }

.bv-escalation-pop__empty {
  padding: 28px 20px;
  text-align: center;
  color: #555;
}
.bv-escalation-pop__empty-mark {
  width: 42px; height: 42px;
  background: #e8f2e6; color: #3d7a35;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 8px;
}
.bv-escalation-pop__empty strong { display: block; font-size: 15px; color: #0f1d3f; margin-bottom: 2px; }
.bv-escalation-pop__empty p { margin: 0; font-size: 13px; }

.bv-escalation-pop__foot {
  padding: 10px 16px;
  font-size: 11px;
  color: #8a8a8a;
  border-top: 1px solid #f3ecd8;
  background: #faf6ed;
  border-radius: 0 0 14px 14px;
  line-height: 1.45;
}

/* Liste */
.bv-escalation-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}
.bv-escalation-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f3ecd8;
  border-left: 3px solid transparent;
  transition: background .15s;
}
.bv-escalation-item:last-child { border-bottom: 0; }
.bv-escalation-item:hover { background: #faf6ed; }
.bv-escalation-item--critical { border-left-color: #c8382f; }
.bv-escalation-item--high     { border-left-color: #d87a1a; }
.bv-escalation-item--medium   { border-left-color: #b8945a; }

.bv-escalation-item__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 4px;
}
.bv-escalation-item__sev {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.bv-escalation-item--critical .bv-escalation-item__sev { background: #fbe7e4; color: #a2241c; }
.bv-escalation-item--high .bv-escalation-item__sev     { background: #fceed8; color: #8c4c0e; }
.bv-escalation-item--medium .bv-escalation-item__sev   { background: #f3e8d0; color: #7a5c27; }
.bv-escalation-item__who  { font-weight: 600; color: #0f1d3f; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bv-escalation-item__time { color: #999; font-size: 11.5px; }
.bv-escalation-item__topic {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}
.bv-escalation-item__quote {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-left: 2px solid #b8945a;
  background: #fff;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: #333;
  line-height: 1.45;
  font-style: italic;
}
.bv-escalation-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.bv-escalation-tag {
  background: #faf6ed;
  color: #8a6f3a;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 8px;
  border: 1px solid #eadfc0;
}
.bv-escalation-item__actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.bv-escalation-btn {
  border: 0;
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.bv-escalation-btn--primary { background: #0f1d3f; color: #fff; }
.bv-escalation-btn--primary:hover { background: #1a2d5a; }
.bv-escalation-btn--ghost {
  background: transparent;
  color: #555;
  border: 1px solid #d9d1bc;
}
.bv-escalation-btn--ghost:hover { background: #faf6ed; color: #0f1d3f; }

/* ==========================================================================
   Welle 2.5 — Vita Draft-Dialog, Pending-Section, Toast, Vita-Button
   ========================================================================== */

/* Section-Header im Popover (Alarme / Erinnerungen) */
.bv-escalation-section__hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0f1d3f;
  border-top: 1px solid rgba(15, 29, 63, 0.08);
}
.bv-escalation-section__hd:first-child { border-top: 0; }
.bv-escalation-section__hd--pending { color: #b8945a; }
.bv-escalation-section__icon { font-size: 14px; }
.bv-escalation-section__count {
  margin-left: auto;
  background: rgba(15, 29, 63, 0.08);
  color: #0f1d3f;
  border-radius: 10px;
  padding: 2px 9px;
  font-size: 11px;
}
.bv-escalation-section__hd--pending .bv-escalation-section__count {
  background: rgba(184, 148, 90, 0.15);
  color: #8a6a3b;
}

/* Pending-Item (warm/gold statt rot) */
.bv-escalation-item--pending { border-left-color: #b8945a; }
.bv-escalation-item__sev--pending {
  background: rgba(184, 148, 90, 0.15);
  color: #8a6a3b;
}

/* Vita-Button (sanft navy, Funkeln) */
.bv-escalation-btn--vita {
  background: linear-gradient(135deg, #0f1d3f 0%, #1a2d5c 100%);
  color: #faf6ed;
  border: 1px solid rgba(184, 148, 90, 0.5);
  box-shadow: 0 1px 3px rgba(15, 29, 63, 0.15);
}
.bv-escalation-btn--vita:hover {
  background: linear-gradient(135deg, #1a2d5c 0%, #26407f 100%);
  box-shadow: 0 2px 6px rgba(15, 29, 63, 0.25);
}

/* Draft-Dialog Overlay */
.bv-draft-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 33, 0.52);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: bv-fade-in 0.18s ease-out;
}
@keyframes bv-fade-in { from { opacity: 0; } to { opacity: 1; } }

.bv-draft {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(15, 29, 63, 0.35), 0 0 0 1px rgba(184, 148, 90, 0.2);
  width: min(640px, 100%);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: bv-dialog-pop 0.22s cubic-bezier(0.2, 0.8, 0.3, 1.2);
}
@keyframes bv-dialog-pop {
  from { transform: scale(0.94) translateY(8px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.bv-draft__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px 16px;
  background: linear-gradient(135deg, #faf6ed 0%, #fff 100%);
  border-bottom: 1px solid rgba(184, 148, 90, 0.25);
  position: relative;
}
.bv-draft__spark {
  font-size: 22px;
  line-height: 1;
  padding-top: 4px;
}
.bv-draft__head h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  color: #0f1d3f;
}
.bv-draft__head p {
  margin: 0;
  font-size: 13px;
  color: rgba(15, 29, 63, 0.7);
  line-height: 1.5;
}
.bv-draft__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: 0;
  font-size: 22px;
  color: rgba(15, 29, 63, 0.5);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  line-height: 1;
}
.bv-draft__close:hover {
  background: rgba(15, 29, 63, 0.08);
  color: #0f1d3f;
}

.bv-draft__body {
  padding: 18px 22px;
  overflow-y: auto;
  flex: 1;
}
.bv-draft__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(15, 29, 63, 0.6);
  margin: 12px 0 6px;
}
.bv-draft__label:first-child { margin-top: 0; }
.bv-draft__recipients {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bv-draft-chip {
  background: rgba(184, 148, 90, 0.14);
  border: 1px solid rgba(184, 148, 90, 0.4);
  color: #0f1d3f;
  padding: 4px 11px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
}
.bv-draft__topic {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #0f1d3f;
  background: #fff;
  border: 1px solid rgba(15, 29, 63, 0.18);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s;
}
.bv-draft__topic:focus { border-color: #b8945a; }
.bv-draft__text {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.55;
  color: #0f1d3f;
  background: #fff;
  border: 1px solid rgba(15, 29, 63, 0.18);
  border-radius: 8px;
  outline: none;
  resize: vertical;
  min-height: 180px;
}
.bv-draft__text:focus { border-color: #b8945a; }
.bv-draft__escalate {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(200, 56, 47, 0.06);
  border: 1px solid rgba(200, 56, 47, 0.25);
  border-radius: 8px;
  font-size: 13px;
  color: #0f1d3f;
  cursor: pointer;
}
.bv-draft__escalate input {
  accent-color: #c8382f;
  cursor: pointer;
}
.bv-draft__hint {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(15, 29, 63, 0.04);
  border-left: 3px solid #b8945a;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(15, 29, 63, 0.7);
}

.bv-draft__foot {
  padding: 14px 22px;
  background: #faf6ed;
  border-top: 1px solid rgba(184, 148, 90, 0.25);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Toast */
.bv-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 100px);
  padding: 12px 22px;
  background: #0f1d3f;
  color: #faf6ed;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(15, 29, 63, 0.35);
  font-size: 14px;
  font-weight: 500;
  z-index: 10001;
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1.2), opacity 0.28s;
  max-width: 520px;
}
.bv-toast--show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.bv-toast--vita {
  background: linear-gradient(135deg, #0f1d3f 0%, #1a2d5c 100%);
  border: 1px solid rgba(184, 148, 90, 0.5);
}

/* Vita-Message-Zitat */
.bv-quote {
  display: block;
  padding: 8px 12px;
  margin: 6px 0;
  background: rgba(15, 29, 63, 0.06);
  border-left: 3px solid #b8945a;
  border-radius: 4px;
  font-style: italic;
  color: rgba(15, 29, 63, 0.85);
}

/* ============================================================
   Welle 7.5 — Dokumenten-Löschen & Abfallkübel
   ============================================================ */

/* Lösch-Button in Dokumentenlisten */
.doc__del {
  margin-left: 4px;
  padding: 4px 8px;
  font-size: 14px;
  background: transparent;
  border: 1px solid rgba(15, 29, 63, 0.15);
  border-radius: 6px;
  color: rgba(15, 29, 63, 0.65);
  cursor: pointer;
  transition: all 0.15s ease;
}
.doc__del:hover {
  background: #fef2f2;
  border-color: #dc2626;
  color: #dc2626;
}

/* Bestätigungs-Dialog */
.bv-doc-del-dlg {
  position: fixed;
  inset: 0;
  background: rgba(15, 29, 63, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: bvDocDelFadeIn 0.18s ease;
  padding: 20px;
}
@keyframes bvDocDelFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.bv-doc-del-dlg--closing { opacity: 0; transition: opacity 0.18s ease; }

.bv-doc-del-dlg__card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(15, 29, 63, 0.24);
  width: 100%;
  max-width: 460px;
  padding: 24px;
  border: 1px solid rgba(184, 148, 90, 0.3);
}
.bv-doc-del-dlg__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.bv-doc-del-dlg__spark {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}
.bv-doc-del-dlg__head h3 {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 600;
  color: #0f1d3f;
}
.bv-doc-del-dlg__head p {
  margin: 0;
  font-size: 14px;
  color: rgba(15, 29, 63, 0.72);
  line-height: 1.5;
}
.bv-doc-del-dlg__close {
  margin-left: auto;
  background: transparent;
  border: 0;
  font-size: 22px;
  color: rgba(15, 29, 63, 0.55);
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
}
.bv-doc-del-dlg__close:hover { color: #0f1d3f; }

.bv-doc-del-dlg__file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f8f6ef;
  border: 1px solid rgba(184, 148, 90, 0.25);
  border-radius: 8px;
  margin-bottom: 16px;
}
.bv-doc-del-dlg__ico { font-size: 22px; }
.bv-doc-del-dlg__fname {
  font-size: 14px;
  font-weight: 500;
  color: #0f1d3f;
  word-break: break-word;
}

.bv-doc-del-dlg__field {
  display: block;
  margin-bottom: 14px;
}
.bv-doc-del-dlg__field > span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(15, 29, 63, 0.7);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bv-doc-del-dlg__field input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(15, 29, 63, 0.2);
  border-radius: 7px;
  font-size: 14px;
  color: #0f1d3f;
  background: #fff;
}
.bv-doc-del-dlg__field input:focus {
  outline: none;
  border-color: #b8945a;
  box-shadow: 0 0 0 3px rgba(184, 148, 90, 0.15);
}

.bv-doc-del-dlg__hint {
  font-size: 13px;
  color: rgba(15, 29, 63, 0.65);
  line-height: 1.5;
  padding: 10px 12px;
  background: rgba(184, 148, 90, 0.08);
  border-left: 3px solid #b8945a;
  border-radius: 4px;
  margin-bottom: 18px;
}

.bv-doc-del-dlg__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.bv-ablage-btn--danger {
  background: #dc2626;
  color: #fff;
  border: 1px solid #dc2626;
}
.bv-ablage-btn--danger:hover:not(:disabled) {
  background: #b91c1c;
  border-color: #b91c1c;
}
.bv-ablage-btn--danger:disabled {
  background: rgba(220, 38, 38, 0.4);
  border-color: rgba(220, 38, 38, 0.4);
  cursor: not-allowed;
}

/* Abfallkübel-Pane (nur Owner) */
.docs-archive-intro {
  font-size: 14px;
  color: rgba(15, 29, 63, 0.72);
  line-height: 1.55;
  padding: 14px 16px;
  background: #f8f6ef;
  border: 1px solid rgba(184, 148, 90, 0.25);
  border-radius: 8px;
  margin-bottom: 14px;
}
.docs-archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.docs-archive-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(15, 29, 63, 0.1);
  border-radius: 8px;
  margin-bottom: 8px;
}
.docs-archive-item .doc__ico { font-size: 22px; flex-shrink: 0; }
.docs-archive-item > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.docs-archive-item .doc__name {
  font-size: 14px;
  font-weight: 500;
  color: #0f1d3f;
  word-break: break-word;
}
.docs-archive-item .doc__meta {
  font-size: 12px;
  color: rgba(15, 29, 63, 0.6);
  margin-top: 2px;
}
.docs-archive-item .btn {
  flex-shrink: 0;
}
.docs-archive-empty {
  padding: 24px;
  text-align: center;
  color: rgba(15, 29, 63, 0.5);
  font-size: 14px;
}

/* Owner-Filter im Abfallkübel: Mein / Alle */
.docs-archive-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(15, 29, 63, 0.1);
  padding-bottom: 12px;
}
.docs-archive-filter__btn {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  background: #fff;
  border: 1px solid rgba(15, 29, 63, 0.18);
  border-radius: 999px;
  color: rgba(15, 29, 63, 0.7);
  cursor: pointer;
  transition: all 0.15s ease;
}
.docs-archive-filter__btn:hover { background: #f8f6ef; color: #0f1d3f; }
.docs-archive-filter__btn.is-active {
  background: #0f1d3f;
  border-color: #0f1d3f;
  color: #fff;
}
.docs-archive-filter__hint {
  font-style: normal;
  font-size: 11px;
  opacity: 0.7;
  margin-left: 4px;
}
