/* Qlareza · Sino de avisos no topo, ao lado da foto. Abre como o menu da pessoa. */
.bell { position: relative; display: inline-flex; }
.bell[hidden] { display: none; }
.bell-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; min-height: 0; padding: 0; border: 1px solid transparent; border-radius: var(--radius-md); background: transparent; color: var(--text); }
.bell-btn:hover, .bell.open .bell-btn { border-color: var(--line-strong); }
.bell-btn .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bell-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid var(--bg); border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: var(--text-xs); font-weight: var(--weight-heavy); line-height: 14px; text-align: center; }
.bell-count[hidden] { display: none; }
.bell-pop {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 20;
  display: none;
  width: min(360px, calc(100vw - 2 * var(--space-4)));
  margin-top: var(--space-1);
  padding: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: 0 12px 32px rgb(0 0 0 / .18);
}
.bell.open .bell-pop { display: grid; gap: var(--space-1); }
.bell-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-1) var(--space-2); }
.bell-head b { color: var(--text); font-size: var(--text-sm); }
.bell-seen { min-height: var(--control-sm); padding: 0 var(--space-2); border-color: transparent; background: none; color: var(--accent-text); font-size: var(--text-xs); font-weight: var(--weight-bold); }
.bell-seen:hover { border-color: var(--line); }
.bell-seen[hidden] { display: none; }
.bell-list { display: grid; gap: 2px; max-height: min(420px, 60vh); overflow-y: auto; }
.bell-list a { display: grid; gap: 2px; padding: var(--space-2) var(--space-3); border-left: 3px solid transparent; border-radius: var(--radius-sm); color: var(--text); font-size: var(--text-sm); text-decoration: none; }
.bell-list a:hover { background: var(--bg); }
.bell-list a.new { border-left-color: var(--accent); }
.bell-list a b { font-weight: var(--weight-semibold); }
.bell-list a.new b { font-weight: var(--weight-bold); }
.bell-list small { color: var(--muted); font-size: var(--text-xs); }
.bell-empty { margin: 0; padding: var(--space-3); }
/* No celular o menu ocupa a largura da tela, preso à direita. */
@media (max-width: 560px) {
  .top .hd { position: relative; }
  .bell { position: static; }
  .bell-pop { right: var(--space-4); left: var(--space-4); width: auto; }
}
.bell-all { padding: var(--space-2) var(--space-3); border-top: 1px solid var(--line); color: var(--accent-text); font-size: var(--text-sm); font-weight: var(--weight-bold); text-decoration: none; }
.bell-all:hover { text-decoration: underline; }

/* ---------- Tela Avisos ---------- */
.notice-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.notice-bar .seg { min-width: min(320px, 100%); }
.notice-list { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.notice-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: var(--radius-md); background: var(--card); }
.notice-row.new { border-left-color: var(--accent); }
.notice-text { display: grid; gap: 2px; min-width: 0; flex: 1 1 260px; color: var(--text); text-decoration: none; }
.notice-text:hover b { text-decoration: underline; }
.notice-row.new .notice-text b { font-weight: var(--weight-bold); }
.notice-text small { color: var(--muted); font-size: var(--text-xs); }
.notice-acts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
