@layer reset, tokens, base, legacy, layout, components, utilities;
/* notifications.css from the pre-redesign frontend, in the legacy layer: above reset and base,
   below the new core and theme. Generated; edit the source and rebuild. */
@layer legacy {
.modern-nav-notifications { position: relative; display: inline-flex; }
.notification-badge {
  position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--acc); color: var(--acc-ink); font: 700 .625rem/16px var(--f-ui); text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.notification-modal-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: none; background: transparent;
}
.notification-modal-overlay.active { display: block; }
.notification-modal {
  
  position: fixed; top: var(--nt-top, calc(var(--nav-h) + 8px)); left: var(--nt-left, auto);
  right: var(--nt-right, var(--gut));
  width: min(392px, calc(100vw - 24px));
  max-height: var(--nt-max, min(520px, calc(100vh - var(--nav-h) - 32px)));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop); transform-origin: top right; animation: popIn .16s var(--ease);
}
.notification-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.notification-header h2, .notification-header h3, .notification-header > span:first-child {
  font: 700 1rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .03em; color: var(--ink);
}
#close-notifications-btn {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-sm);
  color: var(--ink-3); transition: color .12s, background .12s;
}
#close-notifications-btn:hover { color: var(--ink); background: var(--s3); }
.notification-tabs { display: flex; gap: 2px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.notification-tab {
  position: relative; height: 38px; display: inline-flex; align-items: center; padding: 0 12px; cursor: pointer;
  color: var(--ink-3); font-weight: 600; font-size: .8125rem; transition: color .15s;
}
.notification-tab:hover { color: var(--ink-2); }
.notification-tab.active { color: var(--ink); }
.notification-tab.active::after {
  content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px;
  border-radius: 2px 2px 0 0; background: var(--acc); animation: tabIn .25s var(--ease);
}
.notification-content { flex: 1; overflow-y: auto; padding: 6px; scrollbar-width: thin; }
.notification-item {
  position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px;
  padding: 11px; border-radius: var(--r); transition: background .12s;
}
.notification-item + .notification-item { margin-top: 2px; }
.notification-item:hover { background: var(--s2); }
.notification-item.unread { background: var(--acc-a08); }
.notification-content.is-archive .notification-item.unread { background: none; }
.notification-content.is-archive .notification-item.unread:hover { background: var(--s2); }
.notification-item.unread::before {
  content: ''; position: absolute; left: 3px; top: 11px;
  width: 3px; height: 34px; border-radius: 3px; background: var(--acc);
}
.notification-icon {
  display: grid; place-items: center; flex: none; align-self: start; width: 34px; height: 34px;
  border-radius: var(--r-sm); background: var(--s3); color: var(--ink-3);
}
.notification-item.unread .notification-icon { background: var(--acc-a16); color: var(--acc-hi); }
.notification-icon .material-icons { font-size: 18px; }
.notification-info { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 34px; }
.notification-title { font-weight: 600; font-size: .875rem; color: var(--ink); overflow-wrap: anywhere; }
.notification-message, .notification-text { color: var(--ink-2); font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; }
.notification-time { color: var(--ink-4); font-size: .72rem; font-variant-numeric: tabular-nums; }
.notification-content .empty-state, .notification-empty {
  padding: 40px 20px; text-align: center; color: var(--ink-3); font-size: .8125rem;
}
.notification-footer { padding: 10px 16px; border-top: 1px solid var(--line); display: flex; justify-content: center; }
.archive-all-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: var(--r-sm);
  background: var(--s3); border: 1px solid var(--line-2); color: var(--ink-2);
  font-weight: 600; font-size: .78rem; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.archive-all-btn:hover { background: var(--s4); border-color: var(--line-3); color: var(--ink); }
@media (max-width: 620px) {
.notification-modal {
    left: 12px; right: 12px; width: auto;
    max-height: min(70vh, calc(100vh - var(--nav-h) - 24px));
  }
}
}
