(function() { 'use strict'; if (window.__notifBellLoaded) return; window.__notifBellLoaded = true; const style = document.createElement('style'); style.textContent = ` .notif-bell { position: fixed; top: 12px; right: 32px; z-index: 1000; } .notif-bell-btn { position: relative; background: #21262d; border: 1px solid #30363d; border-radius: 6px; width: 32px; height: 32px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #c9d1d9; padding: 0; } .notif-bell-btn:hover { background: #30363d; } .notif-bell-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; background: #f85149; color: #fff; border-radius: 10px; font-size: 11px; font-weight: 600; display: none; align-items: center; justify-content: center; } .notif-bell-badge.visible { display: inline-flex; } .notif-dropdown { position: absolute; top: 40px; right: 0; width: 360px; max-height: 500px; overflow-y: auto; background: #161b22; border: 1px solid #30363d; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); display: none; } .notif-dropdown.open { display: block; } .notif-header { padding: 12px 16px; border-bottom: 1px solid #30363d; display: flex; justify-content: space-between; align-items: center; } .notif-header h4 { margin: 0; font-size: 14px; font-weight: 600; color: #e6edf3; } .notif-mark-all { color: #58a6ff; background: none; border: none; cursor: pointer; font-size: 12px; padding: 0; } .notif-mark-all:hover { text-decoration: underline; } .notif-list { padding: 0; } .notif-item { display: block; padding: 12px 16px 12px 22px; border-bottom: 1px solid #21262d; color: inherit; cursor: pointer; text-decoration: none; transition: background 0.15s; position: relative; } .notif-item:hover { background: #1c2128; text-decoration: none; } .notif-item.unread { background: rgba(88,166,255,0.05); } .notif-item.unread::before { content: ''; position: absolute; left: 8px; top: 18px; width: 6px; height: 6px; background: #58a6ff; border-radius: 50%; } .notif-item-title { color: #e6edf3; font-weight: 500; font-size: 13px; margin-bottom: 2px; } .notif-item-body { color: #8b949e; font-size: 12px; line-height: 1.4; margin-bottom: 4px; } .notif-item-time { color: #6e7681; font-size: 11px; } .notif-item.kind-success .notif-item-title { color: #3fb950; } .notif-item.kind-warning .notif-item-title { color: #d29922; } .notif-item.kind-error .notif-item-title { color: #f85149; } .notif-empty { padding: 32px 16px; text-align: center; color: #8b949e; font-size: 13px; } .notif-footer { padding: 8px 16px; border-top: 1px solid #30363d; text-align: center; } .notif-footer a { color: #58a6ff; font-size: 12px; } @media (max-width: 768px) { .notif-bell { top: 8px; right: 16px; } .notif-dropdown { width: calc(100vw - 32px); right: -8px; } }`; document.head.appendChild(style); const container = document.createElement('div'); container.className = 'notif-bell'; container.innerHTML = `