.notification-widget { position: relative; flex: 0 0 auto; text-transform: none; letter-spacing: normal; font-weight: 400; }
.notification-bell { position: relative; }
.notification-dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border: 2px solid #101012; border-radius: 50%; background: #ff7373; }
.notification-panel { position: absolute; z-index: 60; top: calc(100% + 12px); right: 0; width: min(370px, calc(100vw - 32px)); border: 1px solid #38383e; border-radius: 16px; background: #17171a; box-shadow: 0 24px 80px #000a; overflow: hidden; text-align: left; line-height: 1.45; }
.notification-panel-head, .notification-panel-foot { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.notification-panel { max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain; }
.notification-panel-head { border-bottom: 1px solid #303035; }
.notification-panel-head button, .notification-panel-foot button { padding: 0; border: 0; background: none; color: #be9cf3; font-size: 12px; line-height: 1.4; text-align: right; cursor: pointer; }
.notification-panel-head button:hover, .notification-panel-foot button:hover { text-decoration: underline; }
.notification-panel-foot { display: grid; justify-content: stretch; border-top: 1px solid #303035; }
.notification-panel-foot button { text-align: left; }
.notification-panel-foot button:disabled { opacity: .55; cursor: default; }
.notification-panel-foot small { color: #a2a2aa; font-size: 11px; line-height: 1.45; }
.notification-items { max-height: min(420px, 60vh); overflow-y: auto; }
.notification-empty, .notification-items > p { padding: 14px 16px; color: #a2a2aa; }
.notification-items > button { min-height: 44px; margin: 0 16px 16px; padding: 0 16px; border: 1px solid #4a4a50; border-radius: 999px; background: transparent; color: #fff; cursor: pointer; }
.notification-item { min-width: 0; padding: 13px 16px; display: grid; gap: 5px; border-bottom: 1px solid #303035; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.notification-item:hover { background: #25252a; }
.notification-item.is-unread { background: #272238; }
.notification-item strong { font-size: 13px; }
.notification-item span { color: #dedee2; font-size: 12px; overflow-wrap: anywhere; }
.notification-item time { color: #9f9fa7; font-size: 11px; }
.notification-settings { display: grid; gap: 18px; }
.notification-settings h2 { margin-bottom: 0; }
.notification-settings p { margin: 0; line-height: 1.55; }
.notification-settings-copy { color: var(--muted); }
.notification-settings-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.notification-settings-controls .section-actions { margin: 0; justify-content: flex-start; }
.notification-settings-controls .page-primary { max-width: 100%; min-height: 44px; white-space: normal; }
.notification-settings-controls [data-push-status] { flex: 1 1 220px; min-width: 0; color: var(--muted); }
@media (max-width: 700px) {
    .notification-widget > .notification-bell { width: 38px; min-height: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: rgba(255,255,255,.09); color: var(--text); font-size: 18px; cursor: pointer; }
    .notification-widget > .notification-bell:active { background: rgba(255,255,255,.16); transform: scale(.96); }
    .notification-widget .notification-dot { display: block; top: 4px; right: 4px; }
    .notification-panel .notification-item span { display: block; }
    .notification-panel { position: fixed; top: calc(var(--mobile-header-h) + var(--mobile-context-h) + 10px); left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); width: auto; max-height: calc(100vh - var(--mobile-header-h) - var(--mobile-context-h) - 16px); max-height: calc(100dvh - var(--mobile-header-h) - var(--mobile-context-h) - max(16px, env(safe-area-inset-bottom))); display: flex; flex-direction: column; }
    .notification-panel-head, .notification-panel-foot { flex: 0 0 auto; }
    .notification-items { min-height: 0; max-height: none; overflow-y: auto; }
    .notification-settings-controls { display: grid; }
    .notification-settings-controls [data-push-status] { flex: auto; }
}
@media (max-width: 900px), (pointer: coarse) {
    .notification-panel-head button, .notification-panel-foot button { min-height: 44px; }
}
@media (max-width: 700px) and (hover: hover) {
    .notification-widget > .notification-bell:hover { background: rgba(255,255,255,.16); }
}
