/* Notifications : cloche de la barre du haut (pastille rouge), centre de notifications (panneau à droite sur iPad / PC,
   plein écran sur iPhone), lignes « comme iOS » (icône de la sorte, société, heure, titre, une ligne), piles, geste « Lu »,
   bannière des nouvelles. Seulement les variables de base.css : clair et sombre automatiques. */

/* ---------- cloche ---------- */
.ntf-bell { position: relative; padding: 0; width: 40px; min-height: 40px; border-radius: 50%; color: var(--accent-text); }
.ntf-bell svg.i { width: 22px; height: 22px; }
.ntf-count { position: absolute; top: 3px; left: 21px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff;
  font-size: 12px; font-weight: 600; line-height: 18px; text-align: center; letter-spacing: 0; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--bg); pointer-events: none; }
.ntf-count[hidden] { display: none; }
.top.scrolled .ntf-count { box-shadow: 0 0 0 2px var(--surface); }
@media (max-width: 640px) { .top .ntf-bell { width: 36px; } }

/* ---------- panneau ---------- */
.ntf-drawer { width: min(460px, 100%); }
.ntf-drawer .dhead h2 { text-align: center; }
.ntf-drawer .dhead .btn.icon { width: 44px; color: var(--accent-text); }
.ntf-body { gap: 14px; }
.ntf-body .section-title { margin: 8px 16px 6px; }
.ntf-head { display: flex; flex-direction: column; gap: 10px; }
.ntf-bar { padding: 0 4px; min-height: 22px; }

/* ---------- lignes ---------- */
.ntf-list > .ntf-row { display: block; padding: 0; min-height: 0; overflow: hidden; --sep-left: 58px; }
.ntf-row .ntf-act { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding-right: 22px;
  background: var(--blue); color: #fff; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.ntf-row.ntf-armed .ntf-act { background: var(--indigo); }
.ntf-row .ntf-in { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; padding: 11px 14px 11px 16px;
  background: var(--surface); transition: transform .28s var(--spring), background .15s; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.ntf-row .ntf-in:active { background: var(--pressed); }
@media (hover: hover) { .ntf-row .ntf-in:hover { background: color-mix(in srgb, var(--surface) 96%, var(--text)); } }
.ntf-row .ntf-in > .itile { margin-top: 2px; }
.ntf-row .ntf-in > .grow { display: flex; flex-direction: column; gap: 1px; }
.ntf-row .ntf-in > .chev, .ntf-row .ntf-in > .badge { align-self: center; }
.ntf-dot { position: absolute; left: 5px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--blue); opacity: 0; transition: opacity .2s; }
.ntf-row.unread .ntf-dot { opacity: 1; }
.ntf-top { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--muted); letter-spacing: 0; }
.ntf-top .bizchip { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ntf-time { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ntf-ok { display: inline-flex; align-items: center; gap: 3px; color: var(--green); font-weight: 500; white-space: nowrap; }
.ntf-ok svg.i { width: 13px; height: 13px; stroke-width: 2.4; }
.ntf-title { font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ntf-row.unread .ntf-title { font-weight: 600; }
.ntf-row.resolved .ntf-title { color: var(--muted); }
.ntf-row.resolved .itile { opacity: .55; }
.ntf-sub { font-size: 14px; line-height: 1.3; color: var(--muted); letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ntf-mark { position: absolute; z-index: 2; right: 38px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; display: none; place-items: center;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--accent-text); }
@media (hover: hover) { .ntf-row:hover:not(.swiping) .ntf-mark { display: grid; } }

/* Piles : même sorte, même société, même jour. */
.ntf-stack .ntf-fold { transition: transform .25s var(--spring); }
.ntf-stack.open .ntf-fold { transform: rotate(180deg); }
.ntf-stack .badge.count { margin-left: 4px; }
.ntf-more { margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--accent-text); letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ntf-stack.open .ntf-more { color: var(--muted); }
.ntf-list > .ntf-child { --sep-left: 72px; }
.ntf-child .ntf-in { padding-left: 30px; background: color-mix(in srgb, var(--surface) 97%, var(--text)); }
.ntf-child .ntf-dot { left: 18px; }
.ntf-child .itile { width: 26px; height: 26px; border-radius: 7px; }
.ntf-child .itile svg.i { width: 15px; height: 15px; }

/* ---------- bannière (toast de core.js, niveau « ntf ») ---------- */
.toast.ntf { align-items: flex-start; padding: 12px 14px; }
.toast.ntf > .ic { display: none; }
.toast.ntf > span:last-child { flex: 1; min-width: 0; }
.ntf-banner { display: flex; gap: 12px; align-items: flex-start; width: 100%; }
.ntf-banner > .grow { display: flex; flex-direction: column; min-width: 0; }
.ntf-btop { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.ntf-btitle { font-size: 15px; font-weight: 600; line-height: 1.3; }
.ntf-bbody { font-size: 15px; font-weight: 400; line-height: 1.3; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- réglages ---------- */
.ntf-prefs label.item { gap: 12px; }
.ntf-prefs label.item .small { margin-top: 1px; }
