.notification-history { max-width: 1040px; padding-block: var(--page-inset) var(--page-end); }
.notification-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.notification-history h1 { margin: 0; color: var(--ink); font-size: clamp(28px, 3vw, 36px); font-weight: 650; letter-spacing: -.035em; line-height: 1.2; }
.notification-history-refresh, .notification-history-more, .notification-history-state button { min-height: 36px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); font: 500 12px/1.4 var(--sans); cursor: pointer; }
.notification-history button:hover { background: var(--surface); }
.notification-history button:disabled { opacity: .6; cursor: default; }
.notification-history-tabs { display: flex; gap: 5px 22px; padding-bottom: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.notification-history-tabs a { flex: none; display: block; padding: 11px 1px 12px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.notification-history-tabs a:hover { color: var(--ink); }
.notification-history-tabs a[aria-current="page"] { border-color: var(--ink); color: var(--ink); }
.notification-history-feedback { margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.notification-history-feedback:empty { display: none; }
.notification-history-state { padding: 52px 16px; text-align: center; }
.notification-history-state a, .notification-history-state button { display: inline-block; }
.notification-history-state a { text-underline-offset: 3px; }
.notification-history-list { list-style: none; margin: 0; padding: 0; }
.notification-history-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) 32px; align-items: start; gap: 16px; padding: 24px 16px; border-bottom: 1px solid var(--line); }
.notification-history-item.is-unread { background: color-mix(in srgb, var(--ink) 3%, var(--paper)); }
.notification-history-person { display: block; width: 40px; margin-top: 3px; border-radius: 50%; }
.notification-history-person .notification-avatar { width: 40px; height: 40px; }
.notification-history-copy { min-width: 0; overflow-wrap: anywhere; }
.notification-history-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 12px; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.notification-history-kind { color: var(--ink); font-weight: 550; }
.notification-history-unread { color: var(--accent); font-size: 12px; font-weight: 600; }
.notification-history-destination { color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.5; }
.notification-history-destination strong { font-weight: 600; }
.notification-history-destination:hover { text-decoration: underline; text-underline-offset: 3px; }
.notification-history-outcome { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.notification-history-status { padding: 2px 7px; border-radius: 4px; background: var(--surface); color: var(--ink); font-weight: 500; }
.notification-history-status.is-resolved { color: var(--muted); }
.notification-history-open { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 5px; color: var(--muted); font-size: 18px; text-decoration: none; }
.notification-history-open:hover { color: var(--ink); background: var(--surface); }
.notification-history-more { display: block; margin: 24px auto 0; }
.notification-history :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 600px) {
  .notification-history { width: calc(100% - 32px); padding-block: 20px 40px; }
  .notification-history-heading { gap: 12px; margin-bottom: 17px; }
  .notification-history-refresh { flex: none; }
  .notification-history-tabs { gap: 18px; }
  .notification-history-tabs a { min-height: 44px; font-size: 13px; }
  .notification-history-item { grid-template-columns: 32px minmax(0, 1fr) 28px; gap: 10px; padding: 16px 3px; }
  .notification-history-person, .notification-history-person .notification-avatar { width: 32px; height: 32px; }
  .notification-history-open { width: 28px; }
  .notification-history-meta { gap: 3px 10px; }
  .notification-history-destination { font-size: 14px; }
}
