:root{--notification-switch-off:#b8b1a8;--notification-switch-knob:#fff}:root[data-theme="dark"]{--notification-switch-off:#3a3531;--notification-switch-knob:#f5f2ef}
.notification-bell-wrap{position:relative}
.notification-count{position:absolute;right:6px;top:6px;width:8px;height:8px;border-radius:50%;background:var(--brand-red);box-shadow:0 0 0 2px var(--card)}
.notification-count[hidden]{display:none}
.notification-popover{position:absolute;right:0;top:calc(100% + 8px);z-index:80;display:flex;flex-direction:column;width:360px;max-height:min(560px,calc(100vh - 96px));overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--card);box-shadow:var(--shadow-lg)}
.notification-popover[hidden]{display:none}
.notification-popover-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 16px 12px}
.notification-popover-head h2{color:var(--ink);font-size:16px;font-weight:700;line-height:24px}
.notification-popover-head button{color:var(--brand-red);font-size:14px;line-height:1.5;transition:color .15s}
.notification-popover-head button:hover:not(:disabled){color:var(--brand-red-hover)}
.notification-popover-head button:disabled{color:var(--ink-muted);cursor:default}
.notification-read-all,.notification-back{color:var(--brand-red);font-size:10.5px;font-weight:600}
.notification-popover-filters{display:flex;gap:8px;padding:0 16px 12px;border-bottom:1px solid var(--line-soft)}
.notification-popover-filters button{padding:6px 14px;border:1px solid transparent;border-radius:6px;color:var(--ink-2);font-size:14px;line-height:1.5;transition:background-color .15s,color .15s}
.notification-popover-filters button:hover{background:var(--card-subtle);color:var(--ink)}
.notification-popover-filters button.active{border-color:color-mix(in srgb,var(--brand-red) 40%,transparent);background:color-mix(in srgb,var(--brand-red) 10%,transparent);color:var(--brand-red)}
.notification-popover-list{flex:1;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.notification-row{display:grid;width:100%;grid-template-columns:8px minmax(0,1fr) 62px;align-items:start;gap:11px;min-height:64px;padding:13px 16px;border-bottom:1px solid var(--line);transition:background .12s}.notification-row:hover{background:var(--plane)}.notification-row.read{opacity:.62}.notification-dot{width:7px;height:7px;margin-top:6px;border-radius:50%;background:var(--st-warning)}.notification-row.severity-critical .notification-dot{background:var(--st-critical)}.notification-row.severity-success .notification-dot{background:var(--st-good)}.notification-row.severity-info .notification-dot{background:var(--ink-muted)}.notification-row b,.notification-row small{display:block}.notification-row b{font-size:11.5px}.notification-row small{margin-top:2px;color:var(--ink-muted);font-size:10.5px}.notification-row time{color:var(--ink-muted);font-size:9.5px;text-align:right;white-space:nowrap}.notification-empty{padding:28px 18px;color:var(--ink-muted);font-size:11.5px;text-align:center}
.notification-popover .notification-row{display:flex;gap:12px;min-height:0;padding:14px 16px;border-bottom:1px solid var(--line-soft);opacity:1;text-align:left;transition:background-color .15s}
.notification-popover .notification-row[hidden]{display:none}
.notification-popover .notification-row:not(.read){background:color-mix(in srgb,var(--card-subtle) 60%,transparent)}
.notification-popover .notification-row:hover{background:var(--card-subtle)}
.notification-popover .notification-dot{flex-shrink:0;width:8px;height:8px;margin-top:6px}
.notification-popover .notification-row.severity-info .notification-dot{background:var(--st-info)}
.notification-popover .notification-row.read .notification-dot{background:var(--line)}
.notification-text{display:block;flex:1;min-width:0}
.notification-title-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
/* Where a notice comes from, above its title (#117). */
.notification-origin{display:block;margin-bottom:1px;color:var(--ink-muted);font-size:10px;font-weight:700;letter-spacing:.06em;line-height:1.4;text-transform:uppercase}
.notification-origin.origin-dte{color:var(--st-info)}
.notification-origin.origin-malhas{color:var(--st-violet)}
.notification-origin.origin-certificate{color:var(--st-good)}
/* The center's pages and, on "Todas", each notice's origin (#117). */
.notification-tab-count{margin-left:6px;padding:0 6px;border-radius:999px;background:var(--card-subtle);color:var(--ink-muted);font-size:11px;line-height:18px}
.notification-tag{--origin:var(--ink-muted);display:inline-block;margin-right:6px;padding:1px 6px;border-radius:4px;background:color-mix(in srgb,var(--origin) 12%,transparent);color:var(--origin);font-size:9.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;vertical-align:1px}
.notification-tag.origin-dte{--origin:var(--st-info)}
.notification-tag.origin-malhas{--origin:var(--st-violet)}
.notification-tag.origin-certificate{--origin:var(--st-good)}
.notification-popover .notification-row b{color:var(--ink);font-size:13px;font-weight:700;line-height:1.5}
.notification-popover .notification-row.read b{color:var(--ink-2);font-weight:600}
.notification-popover .notification-row time{flex-shrink:0;color:var(--ink-muted);font-size:11px;white-space:nowrap}
.notification-popover .notification-row small{display:-webkit-box;margin-top:2px;overflow:hidden;color:var(--ink-muted);font-size:12px;line-height:1.625;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.notification-open{display:inline-block;margin-top:4px;color:var(--brand-red);font-size:11px;font-weight:600}
.notification-popover .notification-empty{padding:48px 16px;color:var(--ink-muted);font-size:13px;text-align:center}
.notification-popover-foot{display:block;padding:12px;border-top:1px solid var(--line-soft);color:var(--brand-red);font-size:14px;line-height:1.5;text-align:center;transition:background-color .15s,color .15s}
.notification-popover-foot:hover{background:var(--card-subtle);color:var(--brand-red-hover)}
.notification-page-head{align-items:center;min-height:62px}.notification-center-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:14px}.notification-center-card,.notification-settings{overflow:hidden}.notification-center-tools{display:flex;min-height:64px;align-items:center;gap:8px;padding:14px 17px;border-bottom:1px solid var(--line)}.notification-filter{display:inline-flex;width:72px;height:34px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:8px;color:var(--ink-2);font-size:11px}.notification-filter.active{border-color:var(--brand-red);color:var(--brand-red)}.notification-read-all{margin-left:auto}.notification-center-list{max-height:520px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.notification-center-list .notification-row{grid-template-columns:9px minmax(0,1fr) 80px}
.notification-settings-head{display:flex;min-height:64px;padding:13px 18px;flex-direction:column;justify-content:center;border-bottom:1px solid var(--line)}.notification-settings-head h2{font-size:15px}.notification-settings-head p{margin-top:3px;color:var(--ink-muted);font-size:11px}.notification-setting{display:flex;min-height:80px;margin:0 18px;padding:13px 0;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}.notification-setting b,.notification-setting small{display:block}.notification-setting b{font-size:11.5px}.notification-setting small{margin-top:4px;color:var(--ink-muted);font-size:10px}.notification-setting input{position:absolute;opacity:0;pointer-events:none}
.notification-switch{position:relative;display:block;width:36px;height:20px;flex:0 0 auto;border-radius:999px;background:var(--notification-switch-off);transition:background .15s}.notification-switch>i{position:absolute;left:3px;top:50%;width:14px;height:14px;border-radius:50%;background:var(--notification-switch-knob);box-shadow:0 1px 3px rgba(0,0,0,.28);transform:translateY(-50%);transition:transform .15s}.notification-setting input:checked+.notification-switch,.notification-switch.fixed{background:var(--st-good)}.notification-setting input:checked+.notification-switch>i,.notification-switch.fixed>i{transform:translate(16px,-50%)}
.notification-email-note{margin:16px 18px 18px;padding:12px;border-left:3px solid var(--brand-orange);background:var(--plane);font-size:10.5px}.notification-email-note b,.notification-email-note span{display:block}.notification-email-note span{margin-top:3px;color:var(--ink-2)}
@media(max-width:850px){.notification-popover{position:fixed;left:16px;right:16px;top:80px;width:auto}.notification-center-layout{grid-template-columns:1fr}}
@media(max-width:520px){.notification-center-tools{flex-wrap:wrap}.notification-read-all{width:100%;text-align:right}.notification-center-list .notification-row{grid-template-columns:8px minmax(0,1fr) 55px}.notification-popover-head{align-items:flex-start;gap:8px}.notification-popover-head button{max-width:130px;text-align:right}}
