/* Notification history page: readable rows, present swipe affordance and
   touch targets that stay at least 44px on phones. */
.notifications-panel{margin:0}
.notif-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px}
.notif-count{color:var(--muted);font-size:13px}
.notif-actions{display:flex;flex-wrap:wrap;gap:8px}
.notif-actions .btn{min-height:44px}
.notif-slot{margin:0 0 14px}
.notif-bulk{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border:1px solid color-mix(in srgb,var(--accent) 35%,var(--line));border-radius:12px;background:color-mix(in srgb,var(--accent) 8%,var(--panel2));color:var(--txt)}
.notif-bulk .btn{min-height:44px}
.notif-list{display:flex;flex-direction:column;padding:0}
.notif-row{position:relative;display:flex;align-items:flex-start;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line);background:transparent;touch-action:pan-y;transition:transform .18s ease,background .18s ease}
.notif-row:last-child{border-bottom:0}
.notif-row.is-unread{background:color-mix(in srgb,var(--accent) 6%,transparent)}
.notif-row.is-unread .notif-title{font-weight:600}
.notif-row.is-selected{background:color-mix(in srgb,var(--accent) 12%,transparent)}
.notif-row.is-swiping{background:color-mix(in srgb,var(--red) 14%,transparent)}
.notif-row:hover{background:var(--panel2)}
.notif-check{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin:-8px 0 -8px -10px}
.notif-check input{width:20px;height:20px}
.notif-kind{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:50%;background:var(--panel2);color:var(--accent)}
.notif-kind .icon{width:20px;height:20px}
.notif-body{flex:1;min-width:0}
.notif-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px}
.notif-title{color:var(--txt);font-size:14px;overflow-wrap:anywhere}
.notif-link{color:inherit;text-decoration:none}
.notif-link:hover .notif-title,.notif-link:focus-visible .notif-title{color:var(--accent);text-decoration:underline}
.notif-kind-label{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.notif-text{margin:8px 0 0;color:var(--muted);font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.notif-time{display:block;margin-top:8px;color:var(--muted);font-size:11px}
.notif-trash{flex:0 0 auto;min-width:44px;min-height:44px;color:var(--muted);border:0;background:transparent}
.notif-trash:hover,.notif-trash:focus-visible,.notif-trash:focus{color:var(--red)}
.notif-state{display:grid;justify-items:center;gap:10px;padding:40px 20px;text-align:center;color:var(--muted)}
.notif-state .icon{width:26px;height:26px}
.notif-state h3{margin:0;color:var(--txt)}
.notif-state p{margin:0;max-width:44ch;line-height:1.7}
.notif-badge{position:absolute;top:-3px;right:-3px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--red);color:#3a0f13;font-size:11px;font-weight:700;line-height:18px;text-align:center}
@media(max-width:520px){
 .notif-toolbar{flex-direction:column;align-items:stretch}
 .notif-actions .btn{flex:1}
 .notif-row{gap:10px;padding:14px 12px}
 .notif-kind{display:none}
 .notif-check{margin-left:-4px}
}
@media(min-width:1200px){
 .notif-row{padding:18px 22px}
 .notif-title{font-size:15px}
}

/* Pastille de la cloche : visible seulement s'il reste une annonce non lue
   (data-unread posé par notifRefreshBadge), jamais comme témoin de connexion. */
.icon-btn[data-action="notifications"] .notif-dot{display:none}
.icon-btn[data-action="notifications"][data-unread="true"] .notif-dot{display:block}
.notif-count{display:flex;flex-direction:column;gap:2px}
.notif-bell-count{color:var(--muted);font-size:12px;font-weight:500}
