.player-tools { display:flex; align-items:center; gap:8px; min-width:0; }
.site-header .player-tools { margin-left:auto; }
.site-header .player-tools .me span { max-width:14rem; }
.notifications-toggle { position:relative; flex:none; width:36px; height:36px; display:grid; place-items:center; padding:0; border:0; border-radius:8px; color:inherit; background:transparent; cursor:pointer; }
.notifications-toggle:hover { background:rgba(110,125,150,.12); }
.notifications-toggle[hidden], .notifications-badge[hidden], .notifications-panel[hidden], .notifications-more[hidden] { display:none; }
.notifications-badge { position:absolute; top:-2px; right:-5px; min-width:17px; padding:0 3px; border-radius:10px; background:#dc2626; color:#fff; font:600 10px/17px system-ui,sans-serif; text-align:center; }
.notifications-panel { position:fixed; right:max(12px, calc((100vw - 928px)/2)); z-index:3000; width:min(390px, calc(100vw - 24px)); display:flex; flex-direction:column; box-sizing:border-box; border:1px solid #dde1e7; border-radius:12px; box-shadow:0 8px 32px #17243b25; background:#fff; color:#1c1f24; font:14px/1.5 system-ui,sans-serif; }
.notifications-panel * { box-sizing:border-box; }
.notifications-heading { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; }
.notifications-heading h2 { margin:0; font:600 18px/1.4 system-ui,sans-serif; }
.notifications-heading button { border:0; background:none; color:inherit; font:24px/1 system-ui,sans-serif; cursor:pointer; padding:4px 8px; }
.notifications-status { margin:0; padding:0 16px; color:#5b6370; }
.notifications-status:not(:empty) { padding-bottom:12px; }
.notifications-list { list-style:none; padding:0; margin:0; overflow-y:auto; overscroll-behavior:contain; min-height:0; }
.notifications-list li { margin:0; border-top:1px solid #dde1e7; }
.notifications-list li.unread { background:#eff5ff; }
.notifications-list a { display:block; padding:14px 16px; text-decoration:none; color:inherit; }
.notifications-list a:hover { background:#7890b012; }
.notifications-list strong, .notifications-list span, .notifications-list time { display:block; }
.notifications-list span { margin-top:4px; }
.notifications-list time { margin-top:6px; color:#5b6370; font-size:12px; }
.notifications-list .notification-action { color:#2563eb; }
.notifications-more { margin:10px 16px; padding:8px; border:1px solid #dde1e7; border-radius:6px; background:none; color:inherit; font:inherit; cursor:pointer; flex:none; }
@media(max-width:600px) { .site-header .player-tools .me span { display:none; } }
@media(prefers-color-scheme:dark) {
 .notifications-panel { background:#1e2127; color:#e6e8eb; border-color:#2e333b; }
 .notifications-list li, .notifications-more { border-color:#2e333b; }
 .notifications-list li.unread { background:#233451; }
 .notifications-status, .notifications-list time { color:#9aa2ae; }
 .notifications-list .notification-action { color:#6b9bff; }
}
