/* A personal event inbox, using the same light/dark tokens as the workspace. */
#notifications-button { color: var(--muted); }
#notifications-button:hover, #notifications-button[aria-expanded="true"] { color: var(--accent); background: var(--accent-soft); }
.notifications-count { position: absolute; top: 0; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border: 2px solid var(--surface); border-radius: 12px; background: var(--accent); color: var(--surface); font-size: 9px; font-weight: 800; }
.notifications-count[hidden], .notifications-panel[hidden], .notifications-panel [hidden] { display: none !important; }
.notifications-panel { position: fixed; z-index: 160; width: min(440px, calc(100vw - 24px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); text-align: left; }
.notifications-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 16px 8px; }
.notifications-head h2 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
.notifications-head p { margin: 4px 0 0; font-size: 11px; color: var(--muted); }
.notifications-panel .icon-button { flex-shrink: 0; color: var(--muted); }
.notifications-panel .icon-button:hover { background: var(--surface-soft); color: var(--ink); }
.notifications-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px 12px; border-bottom: 1px solid var(--line); }
.notifications-filters { display: flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--surface-soft); }
.notifications-filters button, .notifications-read-all { min-height: 32px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 700; }
.notifications-filters button[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }
.notifications-read-all { padding-inline: 4px; color: var(--accent); }
.notifications-panel button:disabled { opacity: .5; cursor: default; }
.notifications-panel button:focus-visible, .notifications-panel a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.notifications-list { min-height: 0; overflow: auto; overscroll-behavior: contain; overflow-anchor: none; scrollbar-gutter: stable; padding: 6px; }
.notification-row { display: grid; grid-template-columns: minmax(0, 1fr) 32px; align-items: start; border-radius: 10px; margin: 2px 0; position: relative; }
.notification-row.is-unread { background: var(--accent-soft); }
.notification-row.is-unread::before { content: ''; position: absolute; top: 14px; bottom: 14px; left: 0; width: 3px; border-radius: 3px; background: var(--accent); }
.notification-open { min-width: 0; width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 12px 4px 12px 12px; text-align: left; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }
.notification-open:hover { background: var(--surface-soft); }
.notification-symbol { width: 30px; height: 30px; display: grid; place-items: center; color: var(--accent); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.notification-symbol svg { width: 16px; height: 16px; }
.notification-copy { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.notification-copy strong { font-size: 12px; line-height: 1.4; font-weight: 750; }
.notification-name { font-size: 12px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notification-body { color: var(--muted); font-size: 11px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notification-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 7px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.notification-mark { width: 28px; height: 30px; display: grid; place-items: center; padding: 0; margin-top: 9px; border: 0; border-radius: 7px; color: var(--accent); background: transparent; cursor: pointer; }
.notification-mark svg { width: 15px; height: 15px; }
.notification-mark:hover { background: var(--surface); }
.notifications-empty { padding: 35px 22px; text-align: center; }
.notifications-empty > svg { width: 27px; height: 27px; color: var(--accent); margin-bottom: 12px; }
.notifications-empty strong { display: block; font-size: 13px; }
.notifications-empty p { margin: 7px auto 0; max-width: 290px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.notifications-error { margin: 8px 12px; color: var(--danger); font-size: 12px; line-height: 1.5; }
.notifications-error button { border: 0; padding: 4px; background: none; color: var(--accent); cursor: pointer; text-decoration: underline; }
.notifications-new, .notifications-more { flex-shrink: 0; margin: 6px 12px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--accent); background: var(--surface-soft); font-size: 12px; font-weight: 700; cursor: pointer; }
.notifications-foot { flex-shrink: 0; padding: 9px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.4; }
.notification-target-highlight { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
body.compact-ui .notifications-head { padding-top: 10px; }
body.compact-ui .notification-open { padding-block: 9px; }
@media (max-width: 760px) {
  .top-actions #notifications-button { display: inline-grid; }
  .notifications-panel { width: calc(100vw - 16px); border-radius: 14px; }
  .notifications-head { padding-inline: 12px; }
  .notifications-toolbar { padding-inline: 12px; }
  .notifications-filters button, .notifications-read-all { min-height: 38px; }
  .notification-mark { width: 32px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) { .notifications-panel * { scroll-behavior: auto !important; } }
