/* Personal account feed. Logical anchoring follows the header's actual locale. */
.notification-trigger{position:relative}
.notification-unread{position:absolute;top:-3px;inset-inline-end:-7px;display:grid;place-items:center;min-width:14px;height:14px;padding:0 2px;border-radius:9999px;background:#ef4444;color:#fff;font-size:9px;line-height:14px;font-weight:600}
.notifications-panel{--notification-bg:#202226;--notification-text:#f1f5f9;--notification-muted:#aeb6c2;--notification-line:#ffffff12;--notification-hover:#ffffff06;box-sizing:border-box;position:absolute;inset-block-start:calc(100% + 8px);inset-inline-end:8px;z-index:230;display:flex;flex-direction:column;width:min(400px,calc(100% - 16px));max-height:min(560px,calc(100dvh - 136px));padding:0;overflow:hidden;isolation:isolate;cursor:default;text-align:start;white-space:normal;font:14px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;background:var(--notification-bg);color:var(--notification-text);border:1px solid #ffffff1a;border-radius:16px;box-shadow:0 20px 60px #0005,0 4px 12px #0003;animation:notifications-enter .16s ease-out}
.notifications-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 16px 16px 22px;padding-inline:22px 16px;border-block-end:1px solid var(--notification-line);flex-shrink:0}
.notifications-title{margin:0;color:inherit;font-size:16px;font-weight:650;letter-spacing:-.2px;line-height:24px}
.notifications-heading-actions{display:flex;align-items:center;gap:4px}
.header-utilities .notifications-icon-button{display:grid;place-items:center;width:32px;min-height:32px;padding:7px;border:0;border-radius:8px;background:transparent;box-shadow:none;color:var(--notification-muted);font:inherit;cursor:pointer}
.header-utilities .notifications-icon-button:hover{background:var(--notification-hover);color:var(--notification-text)}
.notifications-icon-button svg{display:block;width:18px;height:18px}
.notifications-refresh[data-loading=true] svg{animation:notifications-refresh 1s linear infinite}
.notifications-state{padding:32px 24px;text-align:center;flex-shrink:0}
.notifications-status{margin:0;color:var(--notification-text);font-size:14px;font-weight:550;line-height:1.6}
.notifications-hint{margin:8px 0 0;color:var(--notification-muted);font-size:13px;line-height:1.6}
.notifications-panel[data-populated=true] .notifications-state{padding:12px 22px;text-align:start;border-block-end:1px solid var(--notification-line)}
.notifications-panel[data-populated=true] .notifications-status,.notifications-panel[data-populated=true] .notifications-hint{font-size:12px}
.header-utilities .notifications-retry{margin:16px 0 0;padding:7px 12px;min-height:32px;border:1px solid var(--notification-line);border-radius:7px;background:transparent;box-shadow:none;color:var(--notification-text);font:inherit;font-size:12px;cursor:pointer}
.header-utilities .notifications-retry:hover{background:var(--notification-hover)}
.notifications-list{min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#94a3b84d transparent;overflow-anchor:none}
.notification-item{display:block;min-width:0;margin:0;padding:18px 22px;background:transparent;color:inherit;border:0;border-block-end:1px solid var(--notification-line)}
.notification-item:last-child{border-block-end:0}
.notification-item:hover{background:var(--notification-hover)}
.notification-item-heading{display:flex;align-items:flex-start;gap:12px}
.notification-item-title{flex:1;min-width:0;margin:0;color:inherit;font-size:14px;font-weight:600;line-height:1.5;overflow-wrap:anywhere;text-align:start}
.notification-dot{flex:0 0 6px;width:6px;height:6px;margin-block-start:7px;border-radius:50%;background:#cbd5e1}
.notification-body{margin:7px 0 0;color:var(--notification-muted);font-size:13px;line-height:1.6;overflow-wrap:anywhere;text-align:start}
.notification-footer{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-block-start:12px;flex-wrap:wrap}
.notification-time{font-size:11px;line-height:1.5;color:var(--notification-muted)}
.notification-action{color:var(--notification-text);font-size:12px;font-weight:500;line-height:1.5;text-decoration:none;overflow-wrap:anywhere}
.notification-action:hover{text-decoration:underline;text-underline-offset:3px}
.notification-action:focus-visible,.header-utilities .notifications-icon-button:focus-visible,.header-utilities .notifications-retry:focus-visible{outline:2px solid var(--chrome-focus,#e2e8f0);outline-offset:3px}
[data-theme=light] .notifications-panel{--notification-bg:#fff;--notification-text:#1f2937;--notification-muted:#64748b;--notification-line:#0f172a14;--notification-hover:#0f172a04;border-color:#0f172a1a;box-shadow:0 20px 60px #0f172a1f,0 4px 12px #0f172a0d}
[data-theme=light] .notification-dot{background:#64748b}
.notifications-panel[hidden],.notification-unread[hidden],.notification-dot[hidden],.notifications-state[hidden],.notifications-hint[hidden],.notifications-retry[hidden],.notification-body[hidden]{display:none}
@keyframes notifications-enter{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@keyframes notifications-refresh{to{transform:rotate(360deg)}}
@media(max-width:600px){.notifications-panel{max-height:min(520px,calc(100dvh - 164px))}.notifications-heading{padding-inline:18px 12px}.notification-item{padding:16px 18px}}
@media(prefers-reduced-motion:reduce){.notifications-panel,.notifications-refresh[data-loading=true] svg{animation:none}}
