.notification-button { position:relative; display:inline-flex; align-items:center; gap:6px; border:0; border-radius:10px; padding:9px; background:transparent; color:inherit; cursor:pointer; -webkit-app-region:no-drag; }
.notification-button svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6; }
.notification-button:hover { background:var(--surface-hover, #eeece7); }
.notification-count { display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 4px; border-radius:10px; background:#d34341; color:white; font-size:11px; font-weight:700; line-height:1; }
.notification-count[hidden] { display:none; }
.notification-panel { position:fixed; z-index:1200; top:72px; right:24px; width:min(390px, calc(100vw - 32px)); max-height:calc(100vh - 96px); overflow:auto; padding:18px; background:var(--surface, #fff); color:var(--text, #262626); border:1px solid #dfded8; border-radius:14px; box-shadow:0 14px 45px #0002; }
.notification-panel header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.notification-panel h2 { margin:0; font-size:17px; }
.notification-panel h2 span { margin-left:6px; font-size:12px; font-weight:400; color:#676767; }
.notification-panel button { cursor:pointer; border:1px solid #deddd7; border-radius:7px; background:transparent; color:inherit; padding:6px 9px; }
.notification-panel button:disabled { cursor:wait; opacity:.6; }
.notification-panel ol { padding:0; list-style:none; }
.notification-panel li { border-top:1px solid #eeede8; padding:14px 0; }
.notification-panel p { font-size:13px; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; }

/* Notifications page (Profile sub-page) */
.profile-page.notifications-page { max-width: 1040px; }
.notifications-page section { margin-top: 28px; }
.notifications-page h2 { margin: 0 0 6px; font-size: 16px; }
.notifications-page section > p { margin: 0 0 14px; color: var(--muted, #676767); font-size: 13px; }
.notifications-settings { border: 1px solid var(--line, #dfded8); border-radius: 12px; padding: 18px 20px; background: var(--surface, #fff); }
.notif-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line, #eeede8); }
.notif-setting-row.is-sub { padding-left: 24px; font-size: 13px; }
.notif-setting-name { display: flex; align-items: center; gap: 12px; text-transform: capitalize; }
.notif-setting-row.is-sub .notif-setting-name strong { font-weight: 500; text-transform: none; }
.notif-setting-toggles { display: flex; gap: 8px; }
.notif-switch, .notif-expand { cursor: pointer; border: 1px solid var(--line, #deddd7); border-radius: 999px; background: transparent; color: inherit; padding: 5px 12px 5px 28px; font-size: 12px; position: relative; text-transform: capitalize; }
.notif-switch::before { content: ""; position: absolute; left: 10px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; border: 1.5px solid #9a9a94; }
.notif-switch[aria-checked="true"] { border-color: var(--primary, #0b57d0); background: var(--primary-soft, #e8f0fe); }
.notif-switch[aria-checked="true"]::before { background: var(--primary, #0b57d0); border-color: var(--primary, #0b57d0); }
.notif-switch:disabled { cursor: wait; opacity: .6; }
.notif-expand { padding: 4px 10px; font-size: 11px; color: var(--muted, #676767); text-transform: none; }
.notifications-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-bottom: 12px; font-size: 12px; }
.notifications-filters label { display: grid; gap: 4px; color: var(--muted, #676767); }
.notifications-filters select { min-width: 140px; padding: 7px 8px; border: 1px solid var(--line, #deddd7); border-radius: 8px; background: var(--surface, #fff); color: inherit; }
.notifications-filters .notif-check { display: flex; align-items: center; gap: 6px; padding-bottom: 8px; }
.notifications-table-wrap { overflow-x: auto; border: 1px solid var(--line, #dfded8); border-radius: 10px; margin-bottom: 14px; }
.notifications-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.notifications-table th { padding: 10px 14px; color: var(--muted, #676767); background: #f5f7f4; font-weight: 500; font-size: 12px; }
.notifications-table td { padding: 11px 14px; border-top: 1px solid var(--line, #eeede8); vertical-align: top; }
.notifications-table td small { display: block; margin-top: 2px; color: var(--muted, #676767); font-size: 12px; }
.notifications-table td .notif-source-link { display:block; margin:7px 0 0; border:0; padding:0; background:transparent; color:#315f9e; text-align:left; text-decoration:underline; text-underline-offset:3px; }
.notifications-table td details { margin-top:6px; color:var(--muted, #676767); font-size:11px; overflow-wrap:anywhere; }
.notifications-table td summary { cursor:pointer; }
.notifications-table tr.is-unread td { font-weight: 500; background: #fbfaf6; }
.notif-unread { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #d34341; color: #fff; font-size: 11px; font-weight: 600; }
.notifications-table td button { padding: 3px 9px; font-size: 12px; margin-left: 6px; }
.notif-empty { text-align: center; color: var(--muted, #676767); padding: 28px 14px !important; }
.chat-receipt { margin: 8px 0 0; padding: 7px 10px; border-left: 3px solid var(--primary, #0b57d0); background: var(--primary-soft, #e8f0fe); border-radius: 6px; font-size: 13px; }
.notif-loading { font-size: 12px; color: var(--muted, #676767); }
