/* Notifications centre (task 040): the title of an inbox row and the per category preference fieldsets. */
.notifications-page .notification-title { font-weight: 600; overflow-wrap: anywhere; }
.notifications-page tr.is-muted .notification-title { font-weight: 400; }
.notification-preferences { display: grid; gap: var(--space-3); max-width: 40rem; }
.notification-preference { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-2) var(--space-3); display: grid; gap: var(--space-1); }
.notification-preference legend { font-weight: 600; padding: 0 var(--space-1); }
/* Design «Segnale»: the whole row of the inbox opens the notice. The «Apri» button of the row covers it (the row is its
   containing block); «Archivia» stays above it, quiet until the row is pointed at. */
.notifications-table tbody tr { position: relative; cursor: pointer; }
.notifications-table .row-actions form { display: inline; margin: 0; }
.notification-open { position: absolute; inset: 0; z-index: 1; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; cursor: pointer; }
.notification-open:is(:hover, :active, :focus) { background: transparent; box-shadow: none; }
.notification-open:focus-visible { outline-offset: -2px; }
.notification-archive { position: relative; z-index: 2; color: var(--ink-2); }
.notifications-table tbody tr:is(:hover, :focus-within) .notification-archive { color: var(--accent-text); }
/* Design «Segnale»: an area per fieldset, its three ways side by side in three equal columns, so the areas read as the
   rows of one table; the save button kept in sight. Task 371 (#7 of task 370): below 480px the ways stack, each with its
   label in sight, where the matrix of task 349 put the third past the panel's edge. */
.notification-preference > legend { overflow-wrap: break-word; }
.notification-preference > .field-help, .notification-preference > .field-error { margin: 0; }
.notification-preference-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-1) var(--space-2); }
.notification-preference-choices > label { display: flex; align-items: center; gap: var(--space-1); min-width: 0; min-height: var(--ph-control-h); font-weight: 400; cursor: pointer; overflow-wrap: break-word; }
.notification-preference-choices input[type="radio"] { flex: none; width: auto; margin: 0; }
.preference-actions { position: sticky; bottom: 0; z-index: 3; padding-block: var(--space-2); background: var(--bg); }
@media (max-width: 479.98px) {
  .notification-preference { padding: var(--space-2); }
  .notification-preference-choices { grid-template-columns: minmax(0, 1fr); }
}
/* A consultant's notices (decision of 2026-10-14): a heading per client, its short name with the count of its rows. */
.notifications-client + .notifications-client { margin-top: var(--space-4); }
.notifications-client-name { display: flex; align-items: center; gap: var(--space-1); margin: 0 0 var(--space-2); font-size: var(--text-1); }

