/* Meldungen oben rechts (Ui\Messages, ui-msg.js): Anrufhinweise zuerst, darunter Meldungen und Live-Hinweise */
.ze-msg-on .ze-flash { display: none; }
.ze-corner { position: fixed; top: calc(10px + var(--ui-top-h, 0px) + var(--opn-top, 0px)); right: 16px; z-index: 1100; display: flex; flex-direction: column; gap: 6px;
    width: min(400px, calc(100vw - 32px)); max-height: calc(100vh - 24px - var(--ui-top-h, 0px) - var(--opn-top, 0px)); pointer-events: none; margin: 0; padding: 0; text-align: left; }
/* mobile Seite: unter der Kopfzeile; Fenster „Fehler melden“: ältere Meldungen verdecken die Angaben nicht */
.m-top ~ .ze-corner { top: calc(62px + env(safe-area-inset-top, 0px)); right: 8px; width: calc(100vw - 16px); max-height: calc(100vh - 150px); }
.ze-msg.ze-msg-back { display: none; }
.ze-corner > * { pointer-events: auto; }
.ze-corner .ze-call-box { position: static; width: auto; }
.ze-msgs { display: flex; flex-direction: column; gap: 6px; overflow-x: hidden; overflow-y: auto; min-height: 0; }
.ze-msgs:empty, .ze-corner .ze-call-box:empty { display: none; }
.ze-msg { flex: none; display: flex; align-items: flex-start; gap: 10px; background: var(--card, #fff); color: var(--text, #1d2433); border: 1px solid var(--border, #dfe3ea);
    border-left: 4px solid var(--info, #1f4e8c); border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); padding: 9px 8px 9px 12px; font-size: 14px; line-height: 1.4;
    animation: ze-msg-in .18s ease-out; }
.ze-msg-success { border-left-color: var(--green, #127a3c); }
.ze-msg-warn { border-left-color: #e08a00; }
.ze-msg-error { border-left-color: var(--red, #b42318); }
.ze-msg-ic { flex: none; width: 18px; text-align: center; font-weight: 700; color: var(--info, #1f4e8c); }
.ze-msg-success .ze-msg-ic { color: var(--green, #127a3c); }
.ze-msg-warn .ze-msg-ic { color: var(--amber, #a15c07); }
.ze-msg-error .ze-msg-ic { color: var(--red, #b42318); }
.ze-msg-body { flex: 1 1 auto; min-width: 0; max-height: 40vh; overflow-y: auto; overflow-wrap: anywhere; white-space: pre-line; }
.ze-msg-body a { color: inherit; text-decoration: underline; }
.ze-msg-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; white-space: normal; }
.ze-msg-acts > * { font: inherit; font-size: 13px; border: 1px solid var(--border, #dfe3ea); border-radius: 4px; padding: 3px 9px; background: none; color: inherit; cursor: pointer; text-decoration: none; }
.ze-msg-acts > *:hover { background: var(--bg, #f4f6f9); }
.ze-msg-x { flex: none; border: 0; background: none; color: var(--muted, #667085); cursor: pointer; font-size: 14px; line-height: 1; padding: 4px 6px; border-radius: 4px; }
.ze-msg-x:hover { color: var(--text, #1d2433); background: var(--bg, #f4f6f9); }
.ze-msg-more { align-self: flex-end; font: inherit; font-size: 13px; border: 1px solid var(--border, #dfe3ea); border-radius: 12px; padding: 2px 10px; background: var(--card, #fff); color: inherit; cursor: pointer; }
.err-rows { margin: 8px 0 12px; border: 1px solid var(--border, #dfe3ea); border-radius: 6px; font-size: 14px; }
.err-rows > div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; padding: 4px 10px; }
.err-rows > div + div { border-top: 1px solid var(--border, #dfe3ea); }
.err-rows dt { color: var(--muted, #667085); }
.err-rows dd { margin: 0; overflow-wrap: anywhere; }
.err-support { margin: 10px 0; border: 1px solid var(--border, #dfe3ea); border-radius: 6px; padding: 8px 12px; }
.err-support legend { font-weight: 600; padding: 0 4px; }
.alert-error a[href*="error_report"] { text-decoration: underline; white-space: nowrap; }
@keyframes ze-msg-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .ze-corner { left: 8px; right: 8px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .ze-msg { animation: none; } }
@media print { .ze-corner { display: none; } }
