/* Inherits the app's palette, typography and native top-layer motion. */
.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.notifications-trigger { position: relative; }
.notifications-trigger .t-badge { top: 1px; right: -1px; }
.notifications-trigger .t-badge-dot { min-width: 17px; height: 17px; padding: 0 4px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-size: 10px; font-weight: 600; line-height: 17px; text-align: center; font-variant-numeric: tabular-nums; }
.notifications-trigger[aria-expanded='true'] { color: var(--text); background: var(--surface-hover); }
.sidebar-top .notifications-trigger { margin-left: auto; }
.sidebar-collapsed .sidebar-top { flex-direction: column; }
.sidebar-collapsed .sidebar-top #collapse-sidebar { order: -1; }
.sidebar-collapsed .sidebar-top .notifications-trigger { margin-left: 0; }
.notifications-panel { --notifications-width: 420px; position: fixed; inset: auto; margin: 0; width: min(var(--notifications-width), calc(100vw - 24px)); max-height: min(540px, var(--notifications-available, calc(100dvh - 24px))); padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: 0 8px 28px rgb(0 0 0 / 12%); }
.notifications-panel:popover-open { display: flex; flex-direction: column; }
.notifications-heading { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; flex-shrink: 0; }
.notifications-heading h2 { margin: 0; font-size: 14px; font-weight: 500; }
.notifications-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; flex-shrink: 0; border-bottom: 1px solid var(--border); }
.notifications-filters { display: flex; gap: 4px; }
.notifications-filters button { border: 0; border-radius: 6px; padding: 4px 8px; background: transparent; color: var(--text-secondary); font: inherit; font-size: 12px; line-height: 24px; }
.notifications-filters button:is(:hover, [aria-pressed='true']) { background: var(--surface-hover); color: var(--text); }
.notifications-toolbar > .text-button { font-size: 12px; min-height: 32px; }
.notifications-list { list-style: none; padding: 8px; margin: 0; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.notifications-list:empty { display: none; }
.notification-item { width: 100%; display: flex; gap: 12px; padding: 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text); text-align: left; font: inherit; }
.notification-item:hover { background: var(--surface-hover); }
.notification-mark { flex-shrink: 0; position: relative; width: 24px; padding-top: 2px; color: var(--text-secondary); }
.notification-mark .icon { width: 18px; height: 18px; }
.notification-item[data-read='false'] .notification-mark { color: var(--accent); }
.notification-item[data-read='false'] .notification-mark::after { content: ''; position: absolute; width: 5px; height: 5px; right: 0; top: 0; border-radius: 50%; background: var(--accent); }
.notification-text { display: flex; flex-direction: column; min-width: 0; gap: 4px; }
.notification-title { font-size: 13px; line-height: 1.4; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-preview { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.notification-item[data-read='true'] .notification-preview { color: var(--text-secondary); }
.notification-time { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.notifications-status { min-height: 220px; padding: 24px 32px; display: flex; flex-direction: column; gap: 8px; justify-content: center; align-items: center; text-align: center; font-size: 13px; color: var(--text-secondary); }
.notifications-status > .icon { width: 24px; height: 24px; margin-bottom: 4px; color: var(--text); }
.notifications-status strong { color: var(--text); font-weight: 500; font-size: 14px; }
.notifications-error { padding: 12px 16px 0; margin: 0; font-size: 13px; color: var(--error); }
.notifications-retry, .notifications-refresh, .notifications-more { margin: 8px 16px 12px; font-size: 12px; flex-shrink: 0; }
@media (max-width: 760px) {
  .notifications-filters button { min-width: 44px; }
  .notifications-filters button, .notifications-toolbar > .text-button, .notifications-more, .notifications-retry, .notifications-refresh { min-height: 44px; }
  .notifications-trigger .t-badge { top: 2px; right: 0; }
}
