.notification-widget{position:relative;display:flex;flex:0 0 auto}
.notification-trigger{position:relative;display:grid;width:42px;height:42px;place-items:center;border:1px solid var(--line);border-radius:50%;background:#f4f6f8;color:#425067;cursor:pointer;transition:background 120ms ease,border-color 120ms ease,color 120ms ease,transform 120ms ease}
.notification-trigger:hover,.notification-trigger[aria-expanded=true]{border-color:#cbd2dc;background:#e9edf2;color:#172033}
.notification-trigger:active{transform:scale(.96)}
.notification-trigger:focus-visible{outline:3px solid rgba(46,115,218,.22);outline-offset:2px}
.notification-trigger>svg{width:21px;height:21px}
.notification-trigger.has-unread{color:#175cd3}
.notification-badge{position:absolute;top:-5px;right:-6px;display:grid;min-width:19px;height:19px;place-items:center;padding:0 5px;border:2px solid #fff;border-radius:999px;background:#e73546;color:#fff;font-size:9px;font-weight:850;line-height:1}
.notification-badge[hidden]{display:none}
.notification-popover{width:min(420px,calc(100vw - 24px));max-height:min(680px,calc(100vh - 84px));overflow:hidden;padding:0;border-radius:17px}
.notification-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 18px 9px}
.notification-panel-head h2{margin:0;color:#172033;font-size:23px;letter-spacing:-.025em}
.notification-panel-head p{margin:3px 0 0;color:#778397;font-size:10px;font-weight:680}
.notification-panel-see-all{color:#175cd3;font-size:11px;font-weight:780;text-decoration:none;white-space:nowrap}
.notification-panel-see-all:hover{text-decoration:underline}
.notification-panel-controls{display:flex;min-height:44px;align-items:center;justify-content:space-between;gap:10px;padding:0 13px 8px}
.notification-panel-tabs{display:flex;align-items:center;gap:5px}
.notification-panel-tabs button,.notification-panel-mark-all{min-height:32px;padding:6px 11px;border:0;border-radius:999px;background:transparent;color:#536071;cursor:pointer;font:inherit;font-size:11px;font-weight:780}
.notification-panel-tabs button:hover,.notification-panel-mark-all:hover:not(:disabled){background:#f2f4f7;color:#172033}
.notification-panel-tabs button.active{background:#e7f0ff;color:#175cd3}
.notification-panel-mark-all{color:#175cd3}
.notification-panel-mark-all:disabled{cursor:wait;opacity:.55}
.notification-panel-error{margin:0 13px 8px;padding:9px 11px;border:1px solid #f0c3c3;border-radius:9px;background:#fff1f2;color:#a53a43;font-size:10px;font-weight:700}
.notification-panel-loading{display:flex;align-items:center;gap:9px;padding:15px 18px;color:#667085;font-size:11px;font-weight:700}
.notification-panel-loading:before{width:14px;height:14px;border:2px solid #d0d5dd;border-top-color:#175cd3;border-radius:50%;content:"";animation:notification-panel-spin .75s linear infinite}
@keyframes notification-panel-spin{to{transform:rotate(360deg)}}
.notification-panel-list{max-height:min(518px,calc(100vh - 235px));overflow-y:auto;padding:3px 8px 8px;overscroll-behavior:contain}
.notification-panel-item{position:relative;border-radius:12px;transition:background 120ms ease}
.notification-panel-item:hover{background:#f5f7fa}
.notification-panel-item.unread{background:#f0f6ff}
.notification-panel-item.unread:hover{background:#e8f2ff}
.notification-panel-link{display:grid;grid-template-columns:50px minmax(0,1fr);gap:11px;min-height:88px;align-items:start;padding:12px 38px 12px 10px;color:inherit;text-decoration:none}
.notification-panel-identity{position:relative;display:block;width:46px;height:46px}
.notification-panel-avatar{display:grid;width:46px;height:46px;overflow:hidden;place-items:center;border:1px solid #dce2ea;border-radius:50%;background:#eef2f6;color:#526681;font-size:11px;font-weight:850}
.notification-panel-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.notification-panel-avatar.system svg{width:22px;height:22px}
.notification-panel-source{position:absolute;right:-3px;bottom:-4px;display:grid;width:21px;height:21px;place-items:center;border:2px solid #fff;border-radius:50%;background:#e7f0ff;color:#175cd3}
.notification-panel-source svg{width:11px;height:11px}
.notification-panel-source.requests{background:#fff1d7;color:#aa6600}
.notification-panel-source.tasks{background:#e5f6ee;color:#27845d}
.notification-panel-source.system{background:#eef1f5;color:#667085}
.notification-panel-copy{display:grid;min-width:0;align-content:start}
.notification-panel-title{color:#172033;font-size:12px;font-weight:790;line-height:1.38}
.notification-panel-body{display:-webkit-box;margin-top:2px;overflow:hidden;color:#536071;font-size:11px;line-height:1.38;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.notification-panel-meta{display:flex;align-items:center;gap:6px;margin-top:5px;color:#175cd3;font-size:9px;font-weight:760}
.notification-panel-meta strong{font-size:inherit}
.notification-panel-meta time:before{margin-right:6px;content:"·"}
.notification-panel-read-toggle{position:absolute;top:50%;right:12px;display:grid;width:25px;height:25px;place-items:center;transform:translateY(-50%);border:0;border-radius:50%;background:transparent;cursor:pointer}
.notification-panel-read-toggle span{display:block;width:10px;height:10px;border:2px solid #8e99a9;border-radius:50%;background:#fff}
.notification-panel-item.unread .notification-panel-read-toggle span{border-color:#2e73da;background:#2e73da}
.notification-panel-read-toggle:hover{background:rgba(23,32,51,.07)}
.notification-panel-read-toggle:focus-visible{outline:3px solid rgba(46,115,218,.2)}
.notification-panel-read-toggle:disabled{cursor:wait;opacity:.45}
.notification-panel-empty{display:grid;min-height:230px;place-items:center;align-content:center;padding:35px;text-align:center}
.notification-panel-empty>span:first-child{display:grid;width:48px;height:48px;place-items:center;margin-bottom:12px;border-radius:50%;background:#eaf7f0;color:#27845d;font-size:20px;font-weight:900}
.notification-panel-empty strong{font-size:14px}
.notification-panel-empty>span:last-child{max-width:270px;margin-top:4px;color:#7a8494;font-size:10px;line-height:1.45}
.notification-panel-footer{display:flex;align-items:center;justify-content:center;padding:9px 12px 12px;border-top:1px solid #edf0f3;background:#fff}
.notification-panel-footer a{display:flex;width:100%;min-height:36px;align-items:center;justify-content:center;border-radius:9px;background:#eef1f4;color:#344054;font-size:11px;font-weight:800;text-decoration:none}
.notification-panel-footer a:hover{background:#e2e7ec}
@media(max-width:850px){
  .notification-popover{top:72px}
}
@media(max-width:520px){
  .notification-trigger{width:38px;height:38px}
  .notification-trigger>svg{width:19px;height:19px}
  .notification-popover{right:8px;left:8px;width:auto;max-height:calc(100vh - 80px)}
  .notification-panel-list{max-height:calc(100vh - 244px)}
  .notification-panel-head{padding:16px 15px 8px}
  .notification-panel-controls{padding-right:10px;padding-left:10px}
}
