#app .project-notifications { position: relative; }
#app .project-notifications-trigger { position: relative; width: 36px; height: 36px; padding: 7px; overflow: visible; color: var(--color-primary); }
#app .project-notifications-trigger svg { width: 21px; height: 21px; }
#app .project-notifications-badge { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 4px; border: 2px solid var(--color-surface); border-radius: 12px; background: #cb444a; color: #fff; font-size: 10px; line-height: 1; font-weight: 700; }
#app .project-notifications-pending-dot { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border: 2px solid var(--color-surface); border-radius: 50%; background: var(--color-primary); }
#app .project-notifications-panel { position: absolute; top: calc(100% + 12px); right: 0; z-index: 60; width: 460px; max-width: calc(100vw - 28px); border: 1px solid var(--atlas-line-strong); border-radius: 8px; background: var(--color-surface); color: var(--color-text); box-shadow: 0 16px 42px #0006; overflow: hidden; }
#app .project-notifications-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 20px; padding: 20px 0 16px; border-bottom: 1px solid var(--color-border); }
#app .project-notifications-heading h2 { margin: 0; font: 600 20px/1.4 "Segoe UI", "Microsoft YaHei UI", sans-serif; color: var(--color-text); }
#app .project-notifications-text-button { padding: 2px 0; border: 0; background: transparent; color: var(--color-primary); font: inherit; cursor: pointer; }
#app .project-notifications-text-button:hover { text-decoration: underline; }
#app .project-notifications-text-button:disabled { cursor: default; opacity: .55; text-decoration: none; }
#app .project-notifications-summary { display: flex; align-items: center; gap: 8px; padding: 12px 20px; color: var(--color-primary); }
#app .project-notifications-summary strong { font-weight: 500; }
#app .project-notifications-summary > span { margin-left: auto; color: var(--color-muted); font-size: 11px; }
#app .project-notifications-list { max-height: min(520px, calc(100dvh - 240px)); overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
#app .project-notification-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 0 20px; padding: 18px 0; border-top: 1px solid var(--color-border); }
#app .project-notification-person { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--color-primary); border-radius: 50%; color: var(--color-primary); }
#app .project-notification-person svg { width: 27px; height: 27px; }
#app .project-notification-person i { position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border: 2px solid var(--color-surface); border-radius: 50%; background: #cb444a; }
#app .project-notification-copy { display: grid; gap: 5px; min-width: 0; line-height: 1.5; overflow-wrap: anywhere; }
#app .project-notification-copy strong { font-size: 13px; font-weight: 600; }
#app .project-notification-copy > span, #app .project-notification-copy > time { color: var(--color-muted); font-size: 12px; }
#app .project-notification-copy small { font-size: 11px; }
#app .project-notification-copy .project-notification-status { color: var(--color-primary); }
#app .project-notification-copy .status-approved { color: var(--color-success); }
#app .project-notification-copy .status-rejected { color: var(--color-danger); }
#app .project-notification-reason { margin: 0; font-size: 12px; color: var(--color-muted); }
#app .project-notification-process { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 34px; padding: 7px 12px; background: var(--color-primary); border-color: var(--color-primary); color: var(--color-bg); white-space: nowrap; }
#app .project-notification-process:hover { background: color-mix(in srgb, var(--color-primary) 85%, #fff); }
#app .project-notification-process > span { font-size: 19px; line-height: 1; }
#app .project-notifications-footer { padding: 15px 20px; border-top: 1px solid var(--color-border); text-align: center; }
#app .project-notifications-empty { padding: 34px 20px; text-align: center; color: var(--color-muted); }
#app .project-notifications-error { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 10px 20px; color: var(--color-danger); font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  #app .project-notifications-panel { position: fixed; top: 72px; right: 14px; width: calc(100vw - 28px); }
  #app .project-notifications-heading { margin-inline: 16px; }
  #app .project-notifications-list { max-height: calc(100dvh - 230px); }
  #app .project-notification-item { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; margin-inline: 16px; padding-block: 14px; }
  #app .project-notification-person { width: 34px; height: 34px; align-self: start; }
  #app .project-notification-process { grid-column: 2; justify-self: start; }
}
