/* Cloche et panneau de notifications */

.brand { position: relative; }
.brand > div { flex: 1; min-width: 0; }
.bell { position: relative; }
.bell-count {
  position: absolute; top: 2px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px;
  background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center;
}
.bell-count[hidden] { display: none; }
.notif-panel {
  position: fixed; top: 16px; left: 252px; z-index: 50; width: min(390px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgb(15 23 42 / .18); animation: pop .15s ease-out;
}
.notif-panel header { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--border); }
.notif-panel header strong { flex: 1; font-size: 15px; }
.notif-panel ul { list-style: none; margin: 0; padding: 6px; overflow: auto; }
.notif-panel li { display: flex; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.notif-panel li:hover { background: var(--surface-2); }
.notif-panel li.unread { background: color-mix(in srgb, var(--primary-soft) 60%, transparent); }
.notif-panel li.unread strong::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--primary); vertical-align: middle; }
.notif-panel li div { min-width: 0; }
.notif-panel li strong { display: block; font-size: 13.5px; }
.notif-panel li p { margin: 1px 0 0; color: var(--muted); font-size: 12.5px; }
.notif-panel li small { font-size: 11.5px; }
.n-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); color: var(--muted); }
.n-ic .ic { width: 16px; height: 16px; }
.n-ic.success { background: var(--success-soft); color: var(--success); }
.n-ic.danger { background: var(--danger-soft); color: var(--danger); }
.n-ic.warn { background: var(--warn-soft); color: var(--warn); }
.notif-desktop {
  display: flex; align-items: center; gap: 8px; margin: 8px 12px 0; padding: 9px 12px; border: 1px dashed var(--primary);
  border-radius: 10px; background: var(--primary-soft); color: var(--primary); font: inherit; font-weight: 600; cursor: pointer;
}
.notif-desktop .ic { width: 16px; height: 16px; }
