#notifications-root { position: relative; flex: 0 0 auto; }
.notifications-bell { position: relative; display: grid; place-items: center; width: 38px; height: 38px; padding: 8px; color: var(--muted); background: var(--deep); border: 1px solid var(--line); border-radius: 9px; }
.notifications-bell:hover, .notifications-bell[aria-expanded=true] { background: var(--accent-soft); border-color: #455981; color: var(--accent); }
.notifications-bell svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notifications-badge { position: absolute; top: -6px; right: -7px; min-width: 19px; height: 18px; padding: 0 4px; display: grid; place-items: center; background: var(--accent-strong); color: #15203c; border-radius: 6px; border: 2px solid var(--bg); font-size: 9px; font-weight: 750; font-variant-numeric: tabular-nums; }
.notifications-panel { position: absolute; z-index: 70; top: calc(100% + 12px); right: 0; width: min(420px, calc(100vw - 32px)); max-height: min(720px, calc(100dvh - 92px)); display: flex; flex-direction: column; background: var(--panel); border: 1px solid #465163; border-radius: 15px; box-shadow: 0 20px 70px #070a1299; overflow: hidden; animation: notifications-enter .14s ease-out; }
.notifications-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 21px 22px 15px; }
.notifications-heading h2 { font-size: 21px; font-weight: 750; }
.notifications-eyebrow { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.notifications-close { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--muted); font-size: 22px; }
.notifications-close:hover { background: var(--panel-raised); color: var(--ink); }
.notifications-tools { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 0 22px 12px; }
.notifications-settings, .notifications-read-all { border: 0; background: transparent; font-size: 11px; padding: 8px 0; }
.notifications-settings { color: var(--accent); text-decoration: none; line-height: 1.5; }
.notifications-settings:hover { text-decoration: underline; text-underline-offset: 3px; }
.notifications-sound { flex: 0 0 auto; }
.notifications-sound::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.notifications-sound[aria-pressed=true]::before { background: var(--success); }
.notifications-read-all { color: var(--muted); }
.notifications-read-all:hover:not(:disabled) { color: var(--ink); }
.notification-preferences-card { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.notification-preferences-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.notification-preferences-row h3 { margin: 0 0 7px; color: var(--ink); font-size: 17px; }
.notification-preferences-row p { max-width: 520px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.notifications-sound-note { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink); line-height: 1.7; }
.notification-preferences-help { margin: 7px 0 0; max-width: 680px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.notifications-filters { display: flex; align-items: center; gap: 7px; padding: 12px 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--deep); }
.notifications-filters button { border: 1px solid transparent; border-radius: 6px; color: var(--muted); background: transparent; padding: 5px 9px; font-size: 11px; }
.notifications-filters button[aria-pressed=true] { background: var(--panel-raised); border-color: var(--line); color: var(--ink); }
.notifications-filters > span { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.notifications-status { flex: 0 0 auto; padding: 11px 22px; font-size: 11px; color: var(--warning); background: var(--warning-soft); border-bottom: 1px solid #574832; }
.notifications-list { list-style: none; padding: 0; margin: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; min-height: 100px; }
.notification-item { display: grid; grid-template-columns: 7px minmax(0, 1fr) 25px; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover { background: #1e242e; }
.notification-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 5px; }
.notification-success .notification-dot { background: var(--success); }
.notification-warning .notification-dot { background: var(--warning); }
.notification-danger .notification-dot { background: var(--danger); }
.notification-item.is-read .notification-dot { background: transparent; border: 1px solid #6c788d; }
.notification-content { display: flex; flex-direction: column; min-width: 0; gap: 5px; text-align: left; border: 0; padding: 0; color: var(--ink); background: transparent; }
.notification-meta { display: flex; align-items: center; gap: 9px; font-size: 10px; color: var(--muted); }
.notification-environment { font-size: 10px; padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; }
.notification-environment-sandbox, .notification-environment-demo { color: var(--warning); border-color: #574832; }
.notification-title { font-size: 14px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.notification-description { color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.notification-time { color: #8895aa; font-size: 10px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.notification-mark { width: 25px; height: 27px; padding: 0; color: var(--accent); border: 1px solid var(--line); border-radius: 6px; background: transparent; font-size: 12px; }
.notification-mark:hover { background: var(--accent-soft); }
.notifications-empty { padding: 35px 25px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.8; }
.notifications-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--line); padding: 12px 20px; color: #8895aa; font-size: 10px; background: var(--deep); }
@keyframes notifications-enter { from { opacity: .4; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .notifications-panel { position: fixed; top: 66px; right: 10px; left: 10px; width: auto; max-height: calc(100dvh - 82px); border-radius: 12px; }
  .notifications-heading { padding: 18px 18px 12px; }
  .notifications-tools, .notifications-filters { padding-left: 18px; padding-right: 18px; }
  .notification-preferences-card { padding: 18px; }
  .notification-preferences-row { align-items: flex-start; flex-direction: column; gap: 16px; }
  .notification-item { padding: 16px; gap: 10px; }
  .notification-item { grid-template-columns: 7px minmax(0, 1fr) 32px; }
  .notifications-close, .notification-mark { min-width: 32px; min-height: 36px; }
  .notifications-settings, .notifications-read-all, .notifications-filters button { min-height: 36px; }
  .notifications-read-all { max-width: 140px; text-align: right; }
}
@media (prefers-reduced-motion: reduce) { .notifications-panel { animation: none; } }
