#notifications-button { position: relative; flex-shrink: 0; }
#notifications-button svg { display: block; color: #30465f; }
.notification-indicator { display: none; position: absolute; width: 7px; height: 7px; border-radius: 50%; right: 7px; top: 7px; background: #388466; border: 2px solid #fff; box-sizing: content-box; }
#notifications-button[data-enabled="true"] .notification-indicator { display: block; }
#notifications-dialog { color: #3b4050; width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 24px; border: 1px solid #e7e7eb; border-radius: 20px; background: #fff; box-shadow: 0 24px 80px #0b1c3233; box-sizing: border-box; }
#notifications-dialog::backdrop { background: #0b1c3266; }
.notification-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.notification-heading h2 { font-size: 23px; margin: 4px 0 0; }
#notifications-dialog p { font-size: 14px; line-height: 1.55; margin: 18px 0; }
#notifications-status { background: #f4f5f8; border-radius: 12px; padding: 14px; }
#notifications-error { color: #a33235; }
.notification-actions { display: grid; gap: 10px; margin-bottom: 18px; }
#notifications-dialog [hidden] { display: none !important; }
#notifications-dialog small { color: #707585; line-height: 1.5; display: block; }
#notifications-close { font-size: 26px; }
/* NOTIF-history: "Últimos avisos" (AUDIT-fix1: here, not inline - the page CSP allows only 'self' styles). */
#notifications-dialog .notification-history { margin: 18px 0 14px; border-top: 1px solid #e7e7eb; padding-top: 14px; }
#notifications-dialog .notification-history h3 { font-size: 15px; margin: 0 0 8px; color: #30465f; }
#notifications-dialog .notification-history-list { list-style: none; margin: 0; padding: 0; max-height: min(46dvh, 420px); overflow-y: auto; overscroll-behavior: contain; }
#notifications-dialog .notification-history-list li + li { border-top: 1px solid #f0f0f3; }
#notifications-dialog .notification-history-item { display: block; padding: 10px 2px; color: inherit; text-decoration: none; }
#notifications-dialog a.notification-history-item:active { opacity: .6; }
#notifications-dialog .notification-history-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
#notifications-dialog .notification-history-head strong { font-size: 14px; line-height: 1.3; color: #30465f; }
#notifications-dialog .notification-history-head time { flex: none; font-size: 12px; color: #707585; }
#notifications-dialog .notification-history-item p { margin: 3px 0 0; font-size: 13px; line-height: 1.4; color: #565b6b; white-space: pre-line; }
#notifications-dialog p.notification-history-empty { font-size: 13px; color: #707585; margin: 0; }
@media (max-width: 420px) { .topbar-actions { gap: 6px; } .topbar-actions .icon-button { width: 36px; height: 38px; } .topbar-heading h1 { font-size: 19px; } #notifications-dialog { padding: 20px; } }
