/* Notifications · page styles (tokens + logical properties only) */
.nt-card { border: 1px solid var(--border-soft); border-radius: var(--radius-lg); background: var(--bg-surface); overflow: hidden; margin-block-end: var(--space-6); max-width: 960px; }
.nt-head { display: flex; align-items: center; gap: var(--space-2); padding: 16px 20px 8px; }
.nt-live { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: var(--text-sm); }
.nt-card .notif-tabs { padding-inline: 12px; border-block-end: 1px solid var(--border-soft); overflow-x: auto; scrollbar-width: none; }
.nt-card .notif-tabs .tab { white-space: nowrap; }
.nt-day { margin: 0; padding: 14px 20px 6px; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-muted); }
.nt-list { max-height: none; overflow: visible; margin: 0; padding: 0; }
.nt-list .notif-item { flex-wrap: wrap; padding-inline: 22px 16px; cursor: default; }
.nt-list .notif-main { text-decoration: none; color: inherit; }
.nt-list .notif-main:hover .notif-body-title { color: var(--accent-text); }
.nt-type { font-weight: var(--weight-semibold); }
.nt-side { display: flex; align-items: center; gap: 4px; flex-shrink: 0; opacity: .75; }
.nt-list .notif-item:hover .nt-side, .nt-side:focus-within { opacity: 1; }
.nt-expand svg { width: 15px; height: 15px; transition: transform var(--transition-fast); }
.nt-expand[aria-expanded="true"] svg { transform: rotate(180deg); }
.nt-actions { flex-basis: 100%; padding-inline-start: 48px; margin-block-start: 0; }
.nt-children { flex-basis: 100%; list-style: none; margin: 4px 0 0; padding: 0 0 0 0; padding-inline-start: 48px; display: grid; gap: 2px; }
.nt-children a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-md); color: var(--text-secondary); text-decoration: none; font-size: var(--text-sm); }
.nt-children a:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.nt-child-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nt-prefs { padding-block-end: var(--space-5); }
.nt-prefs-head { padding: 18px 20px 12px; }
.nt-prefs-head .page-sub { margin-block-start: 4px; }
.nt-prefs .table-scroll { border-block: 1px solid var(--border-subtle); }
.np-matrix th[scope="row"] { font-weight: var(--weight-regular); text-align: start; }
.np-matrix td, .np-matrix .np-ch { text-align: center; width: 130px; }
.np-matrix td .switch { margin-inline: auto; }
.np-chi { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.np-chi svg { width: 15px; height: 15px; }
.np-ev { display: flex; align-items: center; gap: 12px; }
.np-ev-ico { width: 32px; height: 32px; border-radius: var(--radius-md); background: var(--bg-card-hover); color: var(--text-secondary); display: grid; place-items: center; flex-shrink: 0; }
.np-ev-ico svg { width: 16px; height: 16px; }
.np-ev b { display: block; font-size: var(--text-base-sm); font-weight: var(--weight-semibold); color: var(--text-primary); }
.np-ev small { display: block; font-size: var(--text-sm); color: var(--text-muted); }
.np-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); padding: var(--space-5) 20px; }
.np-block { display: grid; gap: var(--space-2); align-content: start; }
.np-block .input-label { margin: 0; }
.np-times { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-block-start: var(--space-2); }
.nt-prefs .form-actions { padding-inline: 20px; justify-content: flex-end; }

@container page (max-width: 900px) {
  .np-grid { grid-template-columns: 1fr; }
}
@container page (max-width: 560px) {
  .nt-list .notif-item { padding-inline: 18px 10px; }
  .nt-children, .nt-actions { padding-inline-start: 0; }
  .nt-live { display: none; }
  .nt-children a { flex-wrap: wrap; }
  .nt-child-text { white-space: normal; flex-basis: calc(100% - 40px); }
}
@container page (max-width: 560px) {
  .np-matrix td, .np-matrix .np-ch { width: 64px; padding-inline: 6px; }
  .np-chi svg, .np-ev-ico { display: none; }
}
.np-matrix th[scope="row"], .np-matrix thead th:first-child { padding-inline-start: 20px; }
