.reg-notification-shell { position: relative; }
.reg-notification-button {
    position: relative; width: 44px; height: 44px; border-radius: 14px;
    border: 1px solid var(--reg-border, rgba(148,163,184,.28));
    background: var(--reg-surface, #fff); color: var(--reg-text, #161616);
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(15,23,42,.06); cursor: pointer;
}
.reg-notification-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reg-notification-count {
    position: absolute; top: -6px; right: -6px; min-width: 21px; height: 21px;
    padding: 0 5px; border-radius: 999px; background: #dc2626; color: #fff;
    border: 2px solid var(--reg-surface, #fff); font-size: 11px; font-weight: 900;
    line-height: 17px; text-align: center;
}
.reg-notification-panel {
    position: absolute; z-index: 1100; top: calc(100% + 10px); right: 0;
    width: min(390px, calc(100vw - 24px)); max-height: min(620px, calc(100vh - 100px));
    overflow: auto; border: 1px solid var(--reg-border, rgba(148,163,184,.28));
    border-radius: 18px; background: var(--reg-surface, #fff); color: var(--reg-text, #161616);
    box-shadow: 0 24px 70px rgba(15,23,42,.22); padding: 10px;
}
.reg-notification-panel-head, .reg-notification-panel-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 8px 10px; }
.reg-notification-panel-head strong { font-size: 15px; }
.reg-notification-panel-head button, .reg-notification-panel-foot button, .reg-notification-permission button {
    border: 0; border-radius: 10px; padding: 7px 9px; font-size: 12px; font-weight: 800; cursor: pointer;
    background: rgba(202,148,18,.12); color: inherit;
}
.reg-notification-permission { margin: 0 4px 8px; padding: 10px; border-radius: 13px; background: rgba(202,148,18,.08); font-size: 12px; line-height: 1.4; }
.reg-notification-permission span { display:block; margin-bottom:8px; opacity:.78; }
.reg-notification-item { display:block; text-decoration:none; color:inherit; padding:11px 10px; border-radius:13px; border:1px solid transparent; }
.reg-notification-item + .reg-notification-item { margin-top: 4px; }
.reg-notification-item:hover { background: rgba(148,163,184,.08); }
.reg-notification-item.unread { background: rgba(202,148,18,.09); border-color: rgba(202,148,18,.18); }
.reg-notification-item-title { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:900; }
.reg-notification-dot { width:8px; height:8px; flex:0 0 8px; border-radius:999px; background:#c79212; }
.reg-notification-item.read .reg-notification-dot { background:#94a3b8; }
.reg-notification-item-message { margin-top:4px; font-size:12px; line-height:1.4; opacity:.76; }
.reg-notification-item-date { margin-top:6px; font-size:10px; opacity:.56; }
.reg-notification-empty { padding:20px 10px; text-align:center; font-size:12px; opacity:.62; }
@media (max-width: 900px) {
  .reg-notification-panel { position: fixed; right: 12px; top: 76px; }
}

/* Notification management additions: same popup, no layout changes elsewhere. */
.reg-notification-panel-head { flex-wrap:wrap; }
.reg-notification-panel-head-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; }
.reg-notification-panel-head .reg-notification-delete-all { color:#9c2929; border:1px solid rgba(173,65,65,.30); background:rgba(173,65,65,.07); }
.reg-notification-panel-navigation { flex-wrap:wrap; justify-content:stretch; border-top:1px solid var(--reg-border,#e4cb99); padding-top:12px; }
.reg-notification-panel-navigation a { flex:1 1 100%; text-align:center; text-decoration:none; padding:10px; border-radius:10px; font-weight:800; font-size:14px; color:var(--reg-text,#221c10); border:1px solid var(--reg-border,#e4cb99); }
.reg-notification-panel-navigation a:hover { background:rgba(204,159,47,.14); }
.reg-notification-panel-navigation button { flex:1 1 100%; }
/* Keep navigation visible even when the latest eight notifications fill the popup. */
.reg-notification-panel:not([hidden]) { display:flex; flex-direction:column; overflow:hidden; }
.reg-notification-panel-head, .reg-notification-panel-foot, .reg-notification-permission { flex-shrink:0; }
.reg-notification-list { flex:1 1 auto; min-height:0; overflow-y:auto; }
