.header-actions{display:flex;align-items:center;gap:10px}.notification-bell{position:relative;width:42px;height:42px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;color:#424852;display:grid;place-items:center;cursor:pointer}.notification-bell:hover{border-color:#d60000;color:#d60000}.notification-bell .ui-icon{width:20px;height:20px}.notification-badge{position:absolute;top:-5px;left:-5px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#d60000;color:#fff;display:none;place-items:center;font-size:10px;font-weight:900;border:2px solid #fff}.notification-badge.show{display:grid}.notification-popover{position:fixed;top:68px;left:24px;width:min(430px,calc(100vw - 32px));max-height:min(560px,72vh);z-index:1200;background:#fff;border:1px solid #dde1e6;border-radius:18px;box-shadow:0 22px 55px rgba(15,23,42,.18);overflow:hidden;display:none}.notification-popover.open{display:block}.notification-popover-head{display:flex;align-items:center;justify-content:space-between;padding:15px 17px;border-bottom:1px solid #eceff2}.notification-popover-head strong{font-size:15px}.notification-popover-head button{border:0;background:none;color:#d60000;font:inherit;font-size:12px;font-weight:900;cursor:pointer}.notification-list{max-height:470px;overflow:auto;padding:9px}.notification-item{padding:12px;border-radius:13px;border:1px solid #edf0f3;display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:start;background:#fff}.notification-item+.notification-item{margin-top:7px}.notification-item:hover{background:#fafbfc;border-color:#e3e7eb}.notification-item-icon{width:34px;height:34px;border-radius:10px;background:#eef2f7;color:#475569;display:grid;place-items:center;font-size:16px;font-weight:900}.notification-item.severity-critical .notification-item-icon{background:#fff0f0;color:#c90000}.notification-item.severity-warning .notification-item-icon{background:#fff7e8;color:#b45309}.notification-item.severity-success .notification-item-icon{background:#edf9f1;color:#147a3f}.notification-item-copy{min-width:0}.notification-item-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.notification-item-top strong{font-size:13.5px;color:#171b22}.notification-item-top span{flex:0 0 auto;background:#f3f5f7;color:#667085;border-radius:999px;padding:3px 7px;font-size:9.5px;font-weight:800}.notification-item p{margin:5px 0 0;color:#596273;font-size:12.5px;line-height:1.8}.notification-item small{display:block;margin-top:6px;color:#98a2b3;font-size:10.5px;direction:ltr;text-align:right}.notification-empty{padding:30px 18px;text-align:center;color:#8a929d;font-size:12.5px}.notification-toasts{position:fixed;left:24px;bottom:24px;z-index:1500;display:grid;gap:10px;width:min(470px,calc(100vw - 30px));pointer-events:none}.notification-toast{pointer-events:auto;background:#fff;border:1px solid #dfe3e8;border-right:5px solid #64748b;border-radius:16px;padding:14px 14px 14px 12px;box-shadow:0 20px 55px rgba(15,23,42,.24);animation:notification-in .22s ease;display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:12px;align-items:start}.notification-toast.critical{border-right-color:#d60000;box-shadow:0 20px 60px rgba(214,0,0,.18),0 18px 45px rgba(15,23,42,.2)}.notification-toast.warning{border-right-color:#d97706}.notification-toast.success{border-right-color:#15803d}.notification-toast-icon{width:46px;height:46px;border-radius:14px;background:#eef2f7;color:#475569;display:grid;place-items:center;font-size:21px;font-weight:900}.notification-toast.critical .notification-toast-icon{background:#fff0f0;color:#c90000}.notification-toast.warning .notification-toast-icon{background:#fff7e8;color:#b45309}.notification-toast.success .notification-toast-icon{background:#edf9f1;color:#147a3f}.notification-toast-copy{min-width:0}.notification-toast-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}.notification-toast-label{display:inline-flex;align-items:center;min-height:22px;padding:3px 8px;border-radius:999px;background:#f2f4f7;color:#596273;font-size:10.5px;font-weight:900}.notification-toast time{color:#8b95a3;font-size:10.5px;direction:ltr}.notification-toast strong{display:block;font-size:15.5px;line-height:1.55;color:#171b22;margin:2px 0 4px}.notification-toast p{margin:0;color:#4f5968;font-size:13.5px;line-height:1.85}.notification-toast button{border:0;background:#f4f6f8;color:#687386;width:30px;height:30px;border-radius:9px;font-size:18px;line-height:1;cursor:pointer}.notification-toast button:hover{background:#eceff2;color:#d60000}.notification-toast.is-leaving{opacity:0;transform:translateY(9px);transition:.24s}@keyframes notification-in{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}
@media(max-width:680px){.notification-popover{top:62px;left:8px;width:calc(100vw - 16px)}.notification-toasts{left:9px;right:9px;width:auto;bottom:12px}.notification-toast{grid-template-columns:40px minmax(0,1fr) auto;padding:12px;gap:9px}.notification-toast-icon{width:40px;height:40px;border-radius:12px;font-size:18px}.notification-toast strong{font-size:14px}.notification-toast p{font-size:12.5px}.header-actions{gap:6px}.notification-bell{width:38px;height:38px}}

/* Keep notification controls isolated from legacy header descendant rules. */
.workspace>header .header-actions{display:flex;align-items:center;gap:10px;min-width:0}
.workspace>header .header-actions .notification-bell{position:relative;flex:0 0 42px;width:42px;height:42px;padding:0;border:1px solid #e5e7eb;border-radius:12px;background:#fff;color:#424852;display:grid;place-items:center}
.workspace>header .header-actions .notification-badge{position:absolute;top:-5px;left:-5px;right:auto;bottom:auto;min-width:19px;width:auto;height:19px;margin:0;padding:0 5px;border-radius:999px;background:#d60000;color:#fff;font-size:10px;font-weight:900;line-height:15px;border:2px solid #fff}
.workspace>header .header-actions .notification-badge:not(.show){display:none}
.workspace>header .header-actions .notification-badge.show{display:grid;place-items:center}
.workspace>header .header-actions .header-user{display:grid;gap:2px;background:transparent;border-radius:0;padding:0;color:#242a32;font-size:12px;line-height:1.45}
.workspace>header .header-actions .header-user small{display:block;color:#929aa5;font-size:10px;font-weight:600}
@media(max-width:680px){.workspace>header .header-actions{gap:6px}.workspace>header .header-actions .notification-bell{flex-basis:38px;width:38px;height:38px}}
.workspace>header .header-actions .notification-bell{text-decoration:none}
.workspace>header .header-actions .notification-bell.active{border-color:#efc6c8;background:#fff5f5;color:#d60000}
