#notifications { position: fixed; right: max(1.5rem,env(safe-area-inset-right)); bottom: 1.5rem; z-index: 50; width: min(calc(100% - 2rem),380px); display: flex; flex-direction: column; gap: .65rem; pointer-events: none; max-height: min(65vh,36rem); overflow-y: auto; padding: .25rem; }
.notification { --notification-accent: var(--mm-blue); position: relative; overflow: hidden; pointer-events: auto; display: flex; gap: .75rem; align-items: center; padding: .8rem .65rem .8rem 1rem; border: 1px solid var(--mm-outline-strong); border-radius: 16px; background: var(--mm-surface); color: var(--mm-text); box-shadow: 0 8px 30px #0005; overflow-wrap: anywhere; animation: notification-arrive 220ms var(--mm-ease); transition: opacity 180ms ease, transform 180ms ease; }
.notification.error { --notification-accent: var(--mm-berry); }
.notification.success { --notification-accent: var(--mm-green); }
.notification.warning { --notification-accent: var(--mm-gold); }
.notification::before { content: '!'; flex: 0 0 30px; height: 30px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: .9rem; font-weight: 700; color: var(--notification-accent); }
.notification.success::before { content: '\2713'; }
.notification.error::before { content: '\00d7'; }
.notification::after { content: ''; position: absolute; inset: auto 0 0; height: 2px; background: var(--notification-accent); opacity: .65; transform-origin: left; animation: notification-countdown var(--notification-duration,3s) linear forwards; }
.notification[data-paused="true"]::after { animation-play-state: paused; }
.notification-content { flex: 1; min-width: 0; }
.notification-title { display: block; color: var(--notification-accent); font-size: .7rem; font-weight: 700; margin-bottom: .2rem; }
.notification-message { display: block; font-size: .85rem; line-height: 1.55; }
.notification-close { flex-shrink: 0; min-width: 44px; min-height: 44px; padding: .4rem; border: 0; border-radius: 10px; background: transparent; color: var(--mm-text-muted); cursor: pointer; font-size: 1.5rem; }
.notification-close:hover { background: var(--mm-surface-elevated); color: var(--mm-text); }
.notification--leaving { opacity: 0; transform: translateY(8px); pointer-events: none; }
@keyframes notification-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes notification-countdown { to { transform: scaleX(0); } }
@media (max-width: 767px) { #notifications { right: 1rem; bottom: calc(var(--nav-height) + 1rem + env(safe-area-inset-bottom)); max-height: 45vh; } }
@media (prefers-reduced-motion: reduce) { .notification, .notification::after { animation: none; transition: none; } .notification::after { display: none; } }
