/* Notifications: the bell and its panel. Colours from the app's theme tokens. */
.nf-bell { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink-2); cursor: pointer; }
.nf-bell:hover { color: var(--primary); border-color: var(--primary); }
.nf-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #D9482B; color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; border: 2px solid var(--surface); box-sizing: content-box; }
.nf-count[hidden] { display: none; }
.qb-menubar .nf-bell { width: 36px; height: 36px; }

.nf-panel { position: fixed; z-index: 9100; top: 64px; right: 16px; width: min(400px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 90px)); display: flex; flex-direction: column; overflow: hidden; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(10, 24, 48, .45); }
.nf-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 16px; }
.nf-foot { display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--surface-2); }
.nf-link { border: 0; background: none; color: var(--primary); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 2px 0; }
.nf-link:hover { text-decoration: underline; }
.nf-list { overflow-y: auto; }
.nf-item { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.nf-item:hover { background: var(--surface-2); }
.nf-dot { flex: 0 0 auto; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--sev-blue, #065FEB); }
.nf-dot.warn { background: var(--sev-amber, #FD8B0A); } .nf-dot.bad { background: var(--sev-red, #FC506A); }
.nf-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.nf-title { font-weight: 700; font-size: 14.5px; }
.nf-body { font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.nf-time { font-size: 12px; color: var(--ink-2); opacity: .85; }
.nf-new { flex: 0 0 auto; align-self: center; padding: 2px 8px; border-radius: 999px; background: var(--t-blue-soft); color: var(--primary); font-size: 11px; font-weight: 700; }
.nf-empty { padding: 28px 20px; text-align: center; color: var(--ink-2); font-size: 14px; }
@media (max-width: 700px) { .nf-panel { top: 56px; right: 8px; } }
