.rt-mensaje {
    width: min(460px, calc(100% - 32px));
    max-height: calc(100dvh - 40px);
    padding: 0;
    overflow: auto;
    border: 1px solid #dce4d6;
    border-radius: 16px;
    background: #fff;
    color: #24352b;
    box-shadow: 0 24px 80px #10281f40;
    font: 16px/1.5 "Segoe UI", Arial, sans-serif;
}
.rt-mensaje::backdrop { background: #14251dcc; }
.rt-mensaje header { margin: 0; padding: 20px 24px 12px; border-bottom: 1px solid #e1e7db; text-align: left; }
.rt-mensaje h2 { margin: 0; color: #005333; font-size: 1.2rem; }
.rt-mensaje[data-tipo="error"] h2 { color: #a63832; }
.rt-mensaje p { margin: 0; padding: 20px 24px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; }
.rt-mensaje footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 0 24px 20px; }
.rt-mensaje button { width: auto; min-height: 44px; margin: 0; padding: 10px 18px; border: 1px solid #cedbc6; border-radius: 9px; background: #fff; color: #005333; font: inherit; font-weight: 700; cursor: pointer; }
.rt-mensaje button[data-aceptar] { border-color: #005333; background: #005333; color: #fff; }
.rt-mensaje button:focus-visible { outline: 3px solid #668b27; outline-offset: 3px; }
.rt-mensaje button[hidden] { display: none; }
[data-mensaje-modal]:not(:empty) { padding: 12px 16px; border: 1px solid #dce4d6; border-radius: 10px; background: #edf3e5; color: #24352b; }
[data-mensaje-modal="error"]:not(:empty) { border-color: #efc8c3; background: #fff4f2; color: #a63832; }
