/* Sino da plataforma (2026-10-21). Cores só por variável do tema. */
.notif-bell { position: relative; }
.notif-bell.hide { display: none; }
.notif-bell-btn { position: relative; }
.notif-bell-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notif-bell-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--ui-danger); color: var(--ui-on-accent); font-size: 0.7rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
}
.notif-bell-count.hide { display: none; }
.notif-bell-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 200;
  width: min(380px, calc(100vw - 32px)); max-height: min(70vh, 520px); overflow: auto;
  border: 1px solid var(--ui-border-strong); border-radius: 14px; background: var(--ui-surface);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.notif-bell-head {
  position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--ui-border); background: var(--ui-surface);
}
.notif-bell-readall { border: 0; background: none; color: var(--ui-accent-strong); font: inherit; font-size: 0.8rem; cursor: pointer; }
.notif-bell-readall:disabled { color: var(--ui-text-dim); cursor: default; }
.notif-bell-list { display: grid; }
.notif-bell-item {
  display: flex; gap: 0.6rem; align-items: flex-start; width: 100%; padding: 0.75rem 0.9rem;
  border: 0; border-bottom: 1px solid var(--ui-border); background: none; color: var(--ui-text);
  font: inherit; text-align: left; cursor: pointer;
}
.notif-bell-item:hover { background: var(--ui-surface-raised); }
.notif-bell-item:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: -2px; }
.notif-bell-dot { flex: none; width: 8px; height: 8px; margin-top: 0.4rem; border-radius: 50%; background: var(--ui-border-strong); }
.notif-bell-item.is-unread .notif-bell-dot { background: var(--ui-accent); }
.notif-bell-item.is-unread strong { color: var(--ui-text); }
.notif-bell-text { display: grid; gap: 0.15rem; min-width: 0; }
.notif-bell-text strong { font-size: 0.88rem; color: var(--ui-text-soft); }
.notif-bell-text span { font-size: 0.82rem; color: var(--ui-text-soft); overflow-wrap: anywhere; }
.notif-bell-text small { font-size: 0.74rem; color: var(--ui-text-dim); }
.notif-bell-empty { margin: 0; padding: 1.2rem 0.9rem; color: var(--ui-text-dim); font-size: 0.86rem; }
/* Rodapé: notificações neste aparelho (2026-10-23). */
.notif-bell-push {
  position: sticky; bottom: 0; display: grid; gap: 0.55rem; padding: 0.8rem 0.9rem;
  border-top: 1px solid var(--ui-border); background: var(--ui-surface-raised);
}
.notif-bell-push.hide, .notif-bell-push-btn.hide { display: none; }
.notif-bell-push-text { font-size: 0.82rem; color: var(--ui-text-soft); line-height: 1.4; }
.notif-bell-push-btn {
  min-height: 40px; padding: 0 0.9rem; border: 1px solid var(--ui-accent); border-radius: 10px;
  background: var(--ui-accent-soft); color: var(--ui-text); font: inherit; font-weight: 700; cursor: pointer;
}
.notif-bell-push-btn:disabled { opacity: 0.6; cursor: wait; }
@media (max-width: 980px) {
  .notif-bell-label { display: none; }
  .notif-bell-panel { position: fixed; top: auto; right: 16px; left: 16px; width: auto; margin-top: 8px; }
}
@media (max-width: 980px) {
  /* A barra do topo do celular é uma grade de 2 colunas (marca e Menu): o sino entra no meio. */
  .admin-active .topbar:has(> .notif-bell.is-topbar) { grid-template-columns: minmax(0, 1fr) auto auto; }
  .admin-active .topbar > .notif-bell.is-topbar { grid-column: 2; grid-row: 1; align-self: center; }
  .admin-active .topbar:has(> .notif-bell.is-topbar) > .mobile-menu-toggle { grid-column: 3; }
}
.notif-bell.is-topbar .notif-bell-btn { min-width: 44px; min-height: 44px; justify-content: center; }
.notif-bell.is-topbar .notif-bell-count { position: absolute; top: 2px; right: 2px; }
