#notification-entry{position:relative;flex:none}
#notification-entry[hidden],.notification-popover[hidden],.notification-dot[hidden]{display:none}
.notification-bell{position:relative;display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--text-secondary)}
.notification-bell:hover,.notification-bell[aria-expanded=true]{background:var(--surface-hover);color:var(--text)}
.notification-bell svg,.notification-empty svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.notification-dot{position:absolute;top:7px;right:8px;width:7px;height:7px;border-radius:50%;background:var(--danger)}
.notification-popover{position:absolute;right:0;top:calc(100% + 12px);z-index:45;width:420px;max-width:calc(100vw - 32px);max-height:min(720px,calc(100dvh - 110px));overflow:auto;overscroll-behavior:contain;background:var(--surface-raised);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow-popover)}
.notifications-page{max-width:760px;margin-inline:auto}
.notifications-page>.back{display:inline-flex;margin-bottom:20px}
.notification-panel-heading{display:flex;align-items:center;gap:10px;padding:18px 20px 10px}
.notification-panel-heading h1,.notification-panel-heading h2{margin:0;flex:1;font-size:18px;font-weight:600;color:var(--text)}
.notifications-page .notification-panel-heading{padding-inline:0}
.notifications-page .notification-panel-heading h1{font-size:28px}
.notification-mark,.notification-close,.notification-filters button,.notification-members-toggle,.notification-refresh{border:0;background:transparent;padding:8px;border-radius:7px;color:var(--text-secondary);font-size:14px}
.notification-mark:hover,.notification-close:hover,.notification-filters button:hover,.notification-members-toggle:hover{background:var(--surface-hover);color:var(--text)}
.notification-close{font-size:24px;line-height:1;width:34px;height:36px}
.notification-filters{display:flex;gap:18px;padding:0 20px;align-items:center}
/* Type filters are text tabs with an ink underline, like the Feed categories. */
.notification-filters button{position:relative;padding:10px 0;border-radius:0}
.notification-filters button:hover{background:transparent}
.notification-filters button[aria-pressed=true]{background:transparent;color:var(--text);font-weight:600}
.notification-filters button[aria-pressed=true]::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;border-radius:2px;background:var(--text)}
.notification-filters .notification-refresh{margin-left:auto}
.notifications-page .notification-filters{padding-inline:0}
.notification-row{display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px;padding:18px 20px;border-top:1px solid var(--line)}
.notification-person{display:block;width:36px;height:36px;align-self:start}
.notification-avatar{width:36px;height:36px}
.notification-main{min-width:0}
.notification-open{display:block;position:relative;text-align:left;padding:0 16px 0 0;width:100%;border:0;background:transparent;color:var(--text)}
.notification-title{display:block;font-size:14px;font-weight:500;overflow-wrap:anywhere}
.notification-open:hover .notification-title{text-decoration:underline;text-underline-offset:3px}
.notification-unread{position:absolute;right:0;top:7px;width:6px;height:6px;border-radius:50%;background:var(--danger)}
.notification-body{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere;font-size:16px;line-height:1.6;color:var(--text-secondary);margin-top:6px}
.notification-context{display:block;font-size:12px;color:var(--text-secondary);margin-top:6px;overflow-wrap:anywhere}
.notification-open time{display:block;font-size:12px;color:var(--text-tertiary);margin-top:5px}
.notification-members-toggle{padding:6px 0;margin-top:4px;text-decoration:underline;text-underline-offset:3px}
.notification-members{display:flex;flex-direction:column;gap:8px;padding-top:12px}
.notification-members>a,.notification-members>span{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--text-secondary);overflow-wrap:anywhere}
.notification-member-avatar{width:26px;height:26px;flex:none}
.notification-members button,.notification-error button,.notification-more{border:1px solid var(--border);border-radius:8px;background:var(--surface);padding:9px 12px;color:var(--text);font-size:14px}
.notification-more{display:block;margin:12px auto 18px}
.notification-members button{align-self:flex-start}
.notification-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:40px 24px;text-align:center;min-height:220px;color:var(--text-secondary);font-size:16px}
.notification-empty svg{width:26px;height:26px}
.notification-empty h3{font-size:16px;font-weight:500;margin:0;color:var(--text)}
.notification-empty p{font-size:14px;line-height:1.6;margin:0;max-width:280px}
.notification-error{padding:16px 20px;color:var(--danger);font-size:14px}
.notification-error p{margin:0 0 10px;overflow-wrap:anywhere}
.notification-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;border-top:1px solid var(--line);font-size:12px;color:var(--text-secondary)}
.notification-footer>a{font-size:14px;text-decoration:underline;text-underline-offset:3px}
.notification-history{font-size:14px}
.notification-history summary{cursor:pointer;padding:6px 0}
.notification-history a{display:block;padding:8px 0;text-decoration:underline;text-underline-offset:3px}
.notification-scope{font-size:14px;color:var(--text-secondary);padding:0 20px 16px}
.notification-scope a{display:block;text-decoration:underline;text-underline-offset:3px;margin-top:8px}
.notification-panel-heading button:disabled,.notification-filters button:disabled,.notification-more:disabled{opacity:.5;cursor:default}
@media(max-width:600px){.notification-bell{width:36px;height:40px}.notifications-page{padding-inline:14px}.notifications-page .notification-panel-heading h1{font-size:24px}.notification-row{padding:18px 0}.notification-footer{padding-inline:0}.notification-filters{flex-wrap:wrap}.notification-scope{padding-inline:0}.notification-error{padding-inline:0}}
@media(pointer:coarse){.notification-bell{min-width:44px;min-height:44px}.notification-filters button,.notification-mark,.notification-more,.notification-members-toggle,.notification-history a,.notification-close{min-height:44px}.notification-row{grid-template-columns:44px minmax(0,1fr)}.notification-person{min-width:44px;min-height:44px}.notification-open{min-height:44px}.notification-members>a{min-height:44px}}
