/* Notification and toast feedback. Integrate after appearance.css in the candidate. */
.notif-panel > header { gap: 10px; flex-wrap: wrap; }
.notif-panel:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.notif-heading { display: grid; gap: 3px; min-width: 0; }
.notif-summary { color: var(--muted); font-size: .75rem; font-weight: 500; }
.notif-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.notif-markall { min-height: 44px; padding-inline: 10px; white-space: nowrap; }
.notif-icon-action { display: grid; place-items: center; flex: 0 0 44px; width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); }
.notif-icon-action:hover:not(:disabled) { background: var(--surface-2); }
.notif-actions button:focus-visible, .notif-retry:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.notif-actions button:disabled, .notif-retry:disabled { opacity: .55; cursor: wait; }
.notif-status { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
.notif-feedback { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #fff5e5; border-bottom: 1px solid #dfcba7; color: #66451d; }
.notif-feedback p { flex: 1; margin: 0; font-size: .8125rem; line-height: 1.5; }
.notif-retry { flex: 0 0 auto; min-height: 44px; padding: 8px 12px; border: 1px solid #aa8a55; border-radius: 9px; color: #66451d; background: #fffcf7; font-weight: 650; font-size: .8125rem; }
.notif-item-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-width: 0; }
.notif-item-heading strong, .notif-body > span { overflow-wrap: anywhere; }
.notif-item.unread { background: #edf3f5; box-shadow: inset 4px 0 #174f64; }
.notif-item.unread .notif-item-heading strong { font-weight: 750; }
.notif-body .notif-unread-label { flex: 0 0 auto; display: inline-flex; align-items: center; padding: 2px 6px; color: #294c64; background: #dce8ee; border: 1px solid #9cb3c1; border-radius: 5px; font-size: .6875rem; font-weight: 750; line-height: 1.4; white-space: nowrap; }
:root[data-theme="dark"] .notif-item.unread { background: #263c40; box-shadow: inset 4px 0 #83c5d4; }
:root[data-theme="dark"] .notif-body .notif-unread-label { color: #e4f6fa; background: #36545e; border-color: #759ca8; }
:root[data-theme="dark"] .notif-feedback { color: #f0dcba; background: #403728; border-color: #88704d; }
:root[data-theme="dark"] .notif-retry { color: #f0dcba; background: #51442f; border-color: #a58b5e; }
.toast-stack { max-height: min(50dvh, 400px); overflow-y: auto; padding: 2px; }
.toast-error { color: #fff6f3; background: #783944; border: 1px solid #ba7882; }
.toast-error svg, .toast-error button { color: #ffe4e6; }
.toast button { flex: 0 0 36px; min-width: 36px; min-height: 36px; border-radius: 7px; }
.toast button:focus-visible { outline: 3px solid currentColor; outline-offset: 1px; }
:root[data-theme="dark"] .toast-error { color: #fff2f2; background: #552f37; border-color: #ba6d7d; }
:root[data-theme="dark"] .toast-error svg, :root[data-theme="dark"] .toast-error button { color: #ffe0e5; }
@media (max-width: 440px) {
  .notif-actions { width: 100%; margin-left: 0; }
  .notif-markall { margin-right: auto; }
  .notif-item-heading { flex-wrap: wrap; gap: 5px; }
  .notif-feedback { align-items: flex-start; flex-wrap: wrap; }
}

/* Keep long staff and company names within the navigation rail. */
.sidebar-foot, .profile-chip { min-width: 0; }
.profile-chip { max-width: 100%; }
.profile-chip .avatar { flex: 0 0 34px; }
.profile-chip > div:nth-child(2) { overflow: hidden; }
.profile-chip > div:nth-child(2) > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
