/* Dialogschutz (modal-guard.js): Rückfrage „Eingaben verwerfen?“ über dem Dialog und Hinweisleiste „Entwurf wiederherstellen?“. */
@media screen {
  .modal-guard-ask { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 24px; background: rgba(18, 29, 32, .32); animation: modal-guard-in .14s ease-out; }
  .modal-guard-card { width: min(440px, calc(100vw - 48px)); padding: 20px 22px 18px; border: 1px solid var(--compact-line, #e3dce8); border-radius: 12px; background: var(--compact-surface, #fff); color: var(--compact-text, #28212e); box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
  .modal-guard-card h3 { margin: 0 0 6px; font: 400 21px/1.25 'Cardo', Georgia, "Times New Roman", serif; color: var(--compact-text, #28212e); }
  .modal-guard-card p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.5; color: var(--compact-muted, #6e6576); }
  .modal-guard-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  .modal-guard-actions .button.primary { background: #643182; border-color: #643182; }
  .modal-draft-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--compact-line, #e3dce8); border-radius: 10px; background: var(--compact-tint, #f2ecf6); color: var(--compact-text, #28212e); }
  .modal-draft-icon { display: inline-flex; width: 30px; height: 30px; flex: none; align-items: center; justify-content: center; border-radius: 50%; background: var(--compact-surface, #fff); color: var(--compact-accent, #643182); }
  .modal-draft-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .modal-draft-text { display: grid; gap: 2px; flex: 1 1 200px; min-width: 0; }
  .modal-draft-text strong { font-size: 13.5px; }
  .modal-draft-text small { font-size: 12px; color: var(--compact-muted, #6e6576); }
  .modal-draft-actions { display: flex; flex-wrap: wrap; gap: 6px; }
  html[data-workspace-theme="dark"] .modal-guard-ask { background: rgba(0, 0, 0, .45); }
  @keyframes modal-guard-in { from { opacity: 0; } to { opacity: 1; } }
  @media (max-width: 480px) {
    .modal-draft-bar { flex-direction: column; align-items: stretch; }
    .modal-draft-actions { justify-content: flex-end; }
    .modal-guard-card { padding: 16px 16px 14px; }
  }
}
