.rc-notification-center { position: relative; flex: 0 0 auto; }
.rc-notification-toggle { position: relative; display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: transparent; color: hsl(var(--muted-foreground)); cursor: pointer; }
.rc-notification-toggle:hover, .rc-notification-toggle[aria-expanded="true"] { background: hsl(var(--accent)); color: hsl(var(--foreground)); }
.rc-notification-toggle svg { width: 1.25rem; height: 1.25rem; }
.rc-notification-badge { position: absolute; top: 2px; right: 1px; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid hsl(var(--background)); border-radius: 999px; background: hsl(var(--destructive)); color: hsl(var(--destructive-foreground)); font-size: 10px; font-weight: 750; line-height: 14px; text-align: center; }
.rc-notification-panel { position: absolute; top: calc(100% + .5rem); right: 0; z-index: 90; width: min(24rem, calc(100vw - 2rem)); overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: .875rem; background: hsl(var(--popover)); color: hsl(var(--popover-foreground)); box-shadow: 0 20px 55px rgb(15 23 42 / .2); opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; }
.rc-notification-center.is-open .rc-notification-panel { opacity: 1; transform: translateY(0) scale(1); animation: rc-notification-in 160ms ease-out; }
.rc-notification-panel__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1rem; border-bottom: 1px solid hsl(var(--border)); }
.rc-notification-panel__head h2 { margin: 0; font-size: .875rem; font-weight: 700; }
.rc-notification-read-all { border: 0; background: transparent; color: hsl(var(--primary)); font-size: .75rem; font-weight: 650; cursor: pointer; }
.rc-notification-read-all:disabled { color: hsl(var(--muted-foreground)); cursor: default; opacity: .55; }
.rc-notification-close { display: none; min-width: 40px; min-height: 40px; border: 0; border-radius: 999px; background: transparent; color: hsl(var(--muted-foreground)); font-size: 1.5rem; cursor: pointer; }
.rc-notification-list { max-height: min(28rem, calc(100vh - 10rem)); overflow-y: auto; }
.rc-notification-item { display: grid; width: 100%; grid-template-columns: auto minmax(0, 1fr) auto; gap: .7rem; align-items: start; padding: .8rem 1rem; border: 0; border-bottom: 1px solid hsl(var(--border)); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.rc-notification-item:hover { background: hsl(var(--accent)); }
.rc-notification-item.is-unread { background: color-mix(in srgb, hsl(var(--primary)) 7%, hsl(var(--popover))); }
.rc-notification-item.is-unread:hover { background: color-mix(in srgb, hsl(var(--primary)) 12%, hsl(var(--popover))); }
.rc-notification-item__dot { width: .55rem; height: .55rem; margin-top: .35rem; border-radius: 999px; background: hsl(var(--muted-foreground)); }
.rc-notification-item__dot.is-success { background: #16a34a; }
.rc-notification-item__dot.is-error { background: hsl(var(--destructive)); }
.rc-notification-item__dot.is-warning { background: #d97706; }
.rc-notification-item__dot.is-revision { background: hsl(var(--primary)); }
.rc-notification-item__body { display: flex; min-width: 0; flex-direction: column; }
.rc-notification-item strong { overflow: hidden; font-size: .8125rem; line-height: 1.2rem; text-overflow: ellipsis; white-space: nowrap; }
.rc-notification-item__text { display: -webkit-box; overflow: hidden; color: hsl(var(--muted-foreground)); font-size: .75rem; line-height: 1.1rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.rc-notification-item time { margin-top: .25rem; color: hsl(var(--muted-foreground)); font-size: .6875rem; }
.rc-notification-item > svg { width: 1rem; height: 1rem; margin-top: .2rem; color: hsl(var(--muted-foreground)); }
.rc-notification-empty { padding: 2rem 1rem; color: hsl(var(--muted-foreground)); font-size: .8125rem; text-align: center; }
.rc-notification-discovery { display: flex; align-items: center; gap: .65rem; padding: .75rem 1rem; border-bottom: 1px solid hsl(var(--border)); color: hsl(var(--popover-foreground)); font-size: .8125rem; text-decoration: none; }
.rc-notification-discovery:hover { background: hsl(var(--accent)); }
.rc-notification-discovery__count { display: inline-flex; min-width: 1.75rem; height: 1.75rem; align-items: center; justify-content: center; border-radius: 999px; background: color-mix(in srgb, hsl(var(--primary)) 12%, transparent); color: hsl(var(--primary)); font-size: .7rem; font-weight: 750; }

@keyframes rc-notification-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 640px) {
  .rc-notification-panel { position: fixed; top: 4rem; right: .5rem; left: .5rem; width: auto; max-height: calc(100vh - 4.5rem); border-radius: 0 0 .875rem .875rem; transform-origin: top center; }
  .rc-notification-panel__head { min-height: 3.5rem; }
  .rc-notification-close { display: inline-flex; align-items: center; justify-content: center; }
  .rc-notification-list { max-height: calc(100vh - 11rem); }
}

@media (prefers-reduced-motion: reduce) {
  .rc-notification-panel, .rc-notification-center.is-open .rc-notification-panel { transform: none; animation: rc-notification-fade 120ms linear; }
  @keyframes rc-notification-fade { from { opacity: 0; } to { opacity: 1; } }
}
