/* Global notification bell injected on authenticated pages */
.sl-global-notifications{position:relative;display:inline-flex;z-index:80}.sl-global-bell{position:relative;width:42px;height:42px;border-radius:13px;border:1px solid rgba(148,163,184,.22);background:rgba(15,23,42,.06);color:inherit;display:grid;place-items:center;cursor:pointer}.sl-global-bell:hover{background:rgba(6,182,212,.12)}.sl-global-bell svg{width:20px;height:20px}.sl-global-badge{position:absolute;right:-5px;top:-6px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#ef4444;color:white;font-size:10px;font-weight:900;display:grid;place-items:center;border:2px solid var(--surface,#fff)}.sl-global-panel{position:absolute;right:0;top:50px;width:min(370px,calc(100vw - 24px));max-height:520px;overflow:hidden;border-radius:18px;background:#0f2630;color:#eafcff;border:1px solid rgba(148,163,184,.2);box-shadow:0 24px 60px rgba(2,8,23,.34)}.sl-global-panel[hidden]{display:none}.sl-global-panel-head,.sl-global-panel-foot{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid rgba(148,163,184,.14)}.sl-global-panel-foot{border-bottom:0;border-top:1px solid rgba(148,163,184,.14)}.sl-global-panel-head button{border:0;background:none;color:#67e8f9;font-weight:750;cursor:pointer}.sl-global-list{max-height:390px;overflow:auto}.sl-global-item{width:100%;border:0;border-bottom:1px solid rgba(148,163,184,.1);background:transparent;color:inherit;text-align:left;padding:13px 16px;display:grid;grid-template-columns:36px 1fr;gap:10px;cursor:pointer}.sl-global-item:hover{background:rgba(6,182,212,.08)}.sl-global-item.unread{background:rgba(6,182,212,.1)}.sl-global-icon{width:34px;height:34px;border-radius:11px;background:rgba(34,211,238,.13);display:grid;place-items:center}.sl-global-copy{display:grid;gap:3px}.sl-global-copy strong{font-size:.86rem}.sl-global-copy span{font-size:.76rem;color:#b8d2d9;line-height:1.35}.sl-global-copy time{font-size:.69rem;color:#77a5af}.sl-global-empty{padding:30px 18px;text-align:center;color:#a6c0c7}.sl-global-panel-foot a{color:#67e8f9;text-decoration:none;font-weight:800;font-size:.82rem}@media(max-width:720px){.sl-global-panel{position:fixed;right:12px;top:68px;left:12px;width:auto}.sl-global-notifications{z-index:999}}


/* V1.4.6 Step 7 UX polish */
.sl-global-panel.is-open{animation:sl-panel-in .18s cubic-bezier(.2,.8,.2,1)}
.sl-global-bell.has-new{animation:sl-bell-ring .7s ease}
.sl-global-item{transition:background .16s ease,transform .16s ease}
.sl-global-item:hover{transform:translateX(-2px)}
.sl-global-list::-webkit-scrollbar{width:8px}.sl-global-list::-webkit-scrollbar-thumb{background:rgba(103,232,249,.18);border-radius:999px}
@keyframes sl-panel-in{from{opacity:0;transform:translateY(-8px) scale(.985)}to{opacity:1;transform:none}}
@keyframes sl-bell-ring{0%,100%{transform:rotate(0)}20%{transform:rotate(14deg)}40%{transform:rotate(-12deg)}60%{transform:rotate(8deg)}80%{transform:rotate(-5deg)}}
@media(prefers-reduced-motion:reduce){.sl-global-panel.is-open,.sl-global-bell.has-new,.sl-global-item{animation:none!important;transition:none!important}}


/* V1.5 Sprint 6.3.4 — Notification Dropdown Clear */

/*
 * Apply standard modern styling to the container
 */
.notification-panel-actions {
  display: flex;
  align-items: center;
  gap: 12px; /* Increased gap from 7px */
  flex-wrap: wrap;
}

/*
 * Create clean, larger, standard-sized buttons
 */
.notification-clear-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* Increased gap from 5px */
  min-height: 40px; /* Increased height from 32px */
  padding: 0 20px; /* Significantly increased padding from 9px */
  border: 1px solid transparent; /* Start with transparent border */
  border-radius: 9px;
  color: #ffb1bc; /* Lightened color for better contrast */
  background: rgba(255,108,131, 0.12); /* Slightly denser background */
  font-size: 0.8rem; /* Increased size from .63rem */
  font-weight: 600; /* Standardized bold weight from 850 */
  text-transform: none; /* Ensure text isn't auto-capitalized */
  cursor: pointer;
  transition: all 0.16s ease;
  will-change: transform, background-color; /* Opt-out for smooth animations */
}

/* Hover state */
.notification-clear-all:hover {
  transform: translateY(-1px);
  border-color: rgba(255,108,131, 0.25); /* Accent border on hover */
  background: rgba(255,108,131, 0.18); /* Slightly richer background */
}

/* Disabled/loading state */
.notification-clear-all:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

/* Updated spinner for the larger button */
.notification-clear-spinner {
  width: 14px; /* Increased from 11px */
  height: 14px; /* Increased from 11px */
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: notification-clear-spin .7s linear infinite;
}

@keyframes notification-clear-spin {
  to { transform: rotate(360deg); }
}

/* Sprint 6.3.5 Premium manager notification dropdown */
.notification-panel,.sl-global-panel{overflow:hidden;border:1px solid rgba(92,151,207,.22);border-radius:22px;background:radial-gradient(circle at top right,rgba(37,131,255,.14),transparent 43%),linear-gradient(155deg,rgba(9,28,47,.99),rgba(4,17,30,.99));box-shadow:0 28px 70px rgba(0,0,0,.42)}
.notification-panel-header,.sl-global-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px;border-bottom:1px solid rgba(101,153,202,.13);background:rgba(255,255,255,.02)}
.notification-panel-header h3,.sl-global-panel-head strong{margin:0;color:#f3f9ff;font-size:1rem;letter-spacing:-.025em}
.notification-panel-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.notification-panel-actions .notification-mark-all,.notification-panel-actions [data-sl-mark-all],.notification-clear-all{min-height:36px;padding:0 12px;border-radius:11px;font-size:.66rem;font-weight:850}
.notification-panel-actions .notification-mark-all,.notification-panel-actions [data-sl-mark-all]{border:1px solid rgba(54,146,235,.35);color:#c5e6ff;background:rgba(37,131,255,.11)}
.notification-clear-all{border-color:rgba(255,95,120,.34);color:#ffa4b2;background:rgba(255,82,110,.09)}
.notification-panel-list,.sl-global-list{max-height:min(450px,62vh);padding:10px;overflow-y:auto}
.notification-item,.sl-global-item{margin-bottom:8px;padding:13px;border:1px solid rgba(113,156,198,.11);border-radius:15px;background:rgba(255,255,255,.025);transition:.16s ease}
.notification-item:hover,.sl-global-item:hover{transform:translateY(-1px);border-color:rgba(69,151,229,.26);background:rgba(46,125,199,.08)}
.notification-panel-footer,.sl-global-panel-foot{padding:12px;border-top:1px solid rgba(101,153,202,.13)}
.notification-panel-footer a,.sl-global-panel-foot a{display:grid;place-items:center;min-height:42px;border:1px solid rgba(52,143,229,.24);border-radius:12px;color:#d0eaff;background:rgba(37,131,255,.08);font-size:.7rem;font-weight:850;text-decoration:none}
@media(max-width:520px){.notification-panel-header,.sl-global-panel-head{flex-direction:column;align-items:stretch}.notification-panel-actions>*{flex:1 1 120px}}

/* Sprint 6.3.6 Live badge and panel sync */
.notification-badge-pop{animation:notification-badge-pop .34s ease both}
@keyframes notification-badge-pop{0%{transform:scale(.72);opacity:.3}65%{transform:scale(1.18);opacity:1}100%{transform:scale(1)}}
.notification-panel.open,.sl-global-panel.open{animation:notification-panel-in .2s ease both}
@keyframes notification-panel-in{from{opacity:0;transform:translateY(-6px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.notification-badge-pop,.notification-panel.open,.sl-global-panel.open{animation:none!important}}


/* =========================================================
   V1.5 SPRINT 6.3.7.1 — PREMIUM DROPDOWN SHELL
========================================================= */

.notification-panel,
.sl-global-panel {
  width: min(472px, calc(100vw - 28px));
  max-width: 472px;
  overflow: hidden;
  border: 1px solid rgba(96,156,216,.24);
  border-radius: 24px;
  background:
    radial-gradient(
      circle at 92% 4%,
      rgba(37,131,255,.16),
      transparent 42%
    ),
    linear-gradient(
      155deg,
      rgba(9,29,49,.995),
      rgba(4,17,30,.995)
    );
  box-shadow:
    0 30px 75px rgba(0,0,0,.44),
    0 1px 0 rgba(255,255,255,.025) inset;
  backdrop-filter: blur(18px);
}

.notification-panel-header--premium {
  display: grid;
  grid-template-columns:
    minmax(0,1fr)
    auto;
  align-items: start;
  gap: 18px;
  padding: 20px;
  border-bottom:
    1px solid rgba(105,158,208,.13);
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.025),
      rgba(255,255,255,0)
    );
}

.notification-panel-heading {
  min-width: 0;
}

.notification-panel-heading h3,
.notification-panel-heading strong {
  display: block;
  margin: 0;
  color: #f5faff;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: -.025em;
}

.notification-panel-subtitle {
  margin: 5px 0 0;
  color: #8098ad;
  font-size: .68rem;
  line-height: 1.45;
}

.notification-panel-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  margin-top: 10px;
  padding: 0 9px;
  border: 1px solid rgba(43,152,255,.32);
  border-radius: 999px;
  color: #cde9ff;
  background:
    rgba(37,131,255,.14);
  box-shadow:
    0 0 18px rgba(37,131,255,.1);
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.notification-panel-actions {
  display: grid;
  grid-template-columns:
    repeat(2, auto);
  gap: 8px;
  align-items: center;
  justify-content: end;
}

.notification-panel-actions
.notification-mark-all,
.notification-panel-actions
[data-sl-mark-all],
.notification-clear-all {
  min-height: 36px;
  padding: 0 11px;
  border-radius: 11px;
  white-space: nowrap;
}

.notification-panel-list,
.sl-global-list {
  max-height:
    min(460px, 60vh);
  padding: 12px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color:
    rgba(91,151,208,.4)
    transparent;
}

.notification-panel-list::-webkit-scrollbar,
.sl-global-list::-webkit-scrollbar {
  width: 8px;
}

.notification-panel-list::-webkit-scrollbar-track,
.sl-global-list::-webkit-scrollbar-track {
  background: transparent;
}

.notification-panel-list::-webkit-scrollbar-thumb,
.sl-global-list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    rgba(91,151,208,.36);
  background-clip: padding-box;
}

.notification-panel-footer--premium {
  padding: 12px;
  border-top:
    1px solid rgba(105,158,208,.13);
  background:
    rgba(255,255,255,.012);
}

.notification-panel-footer--premium a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(53,145,231,.26);
  border-radius: 13px;
  color: #d6edff;
  background:
    linear-gradient(
      145deg,
      rgba(37,131,255,.1),
      rgba(37,131,255,.055)
    );
  font-size: .7rem;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease;
}

.notification-panel-footer--premium a:hover {
  transform: translateY(-1px);
  border-color:
    rgba(53,145,231,.42);
  background:
    rgba(37,131,255,.14);
}

.notification-panel-empty,
.sl-global-empty {
  min-height: 178px;
  padding: 30px 22px;
}

.notification-panel:has(
  .notification-panel-empty
),
.sl-global-panel:has(
  .sl-global-empty
) {
  min-height: 0;
}

@media (max-width: 560px) {
  .notification-panel,
  .sl-global-panel {
    width:
      calc(100vw - 20px);
    max-width: none;
    border-radius: 20px;
  }

  .notification-panel-header--premium {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 17px;
  }

  .notification-panel-actions {
    grid-template-columns:
      repeat(2, minmax(0,1fr));
    justify-content: stretch;
  }

  .notification-panel-actions > * {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notification-panel-footer--premium a {
    transition: none;
  }
}


/* =========================================================
   V1.5 SPRINT 6.3.7.2 — PREMIUM DROPDOWN CARDS
========================================================= */

.notification-item--premium {
  position: relative;
  display: grid;
  grid-template-columns:
    44px minmax(0,1fr);
  gap: 12px;
  width: 100%;
  margin-bottom: 9px;
  padding: 12px;
  border: 1px solid
    rgba(111,159,205,.11);
  border-radius: 15px;
  color: inherit;
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.028),
      rgba(255,255,255,.012)
    );
  text-align: left;
  cursor: pointer;
  transition:
    transform .17s ease,
    border-color .17s ease,
    background .17s ease,
    box-shadow .17s ease;
}

.notification-item--premium:hover {
  transform:
    translateY(-2px);
  border-color:
    rgba(67,151,232,.3);
  background:
    rgba(53,130,200,.075);
  box-shadow:
    0 12px 26px
    rgba(0,0,0,.14);
}

.notification-item--premium.is-unread {
  border-color:
    rgba(52,145,235,.24);
  background:
    radial-gradient(
      circle at top right,
      rgba(37,131,255,.105),
      transparent 48%
    ),
    rgba(255,255,255,.025);
}

.notification-item--premium.is-unread::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius:
    0 999px 999px 0;
  background:
    #2b92ff;
}

.notification-item__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: #76bcff;
  background:
    rgba(37,131,255,.1);
}

.notification-item__icon svg {
  width: 20px;
  height: 20px;
}

.notification-item--teal
.notification-item__icon {
  color: #5fe2d2;
  background:
    rgba(18,214,181,.1);
}

.notification-item--orange
.notification-item__icon {
  color: #ffc360;
  background:
    rgba(245,185,66,.1);
}

.notification-item--purple
.notification-item__icon {
  color: #b99aff;
  background:
    rgba(138,92,246,.11);
}

.notification-item--cyan
.notification-item__icon {
  color: #5edff0;
  background:
    rgba(40,196,220,.1);
}

.notification-item--green
.notification-item__icon {
  color: #61e2ad;
  background:
    rgba(20,190,130,.1);
}

.notification-item--red
.notification-item__icon {
  color: #ff8999;
  background:
    rgba(255,82,110,.1);
}

.notification-item__content {
  min-width: 0;
}

.notification-item__topline {
  display: flex;
  align-items: center;
  justify-content:
    space-between;
  gap: 10px;
}

.notification-item__category {
  color: #7fb5e3;
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.notification-item__time {
  flex: 0 0 auto;
  color: #6f879c;
  font-size: .58rem;
  font-weight: 750;
}

.notification-item__title {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #eff8ff;
  font-size: .75rem;
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.notification-item__message {
  display: -webkit-box;
  display: -moz-box;
  display: box;
  margin-top: 4px;
  overflow: hidden;
  color: #8299ad;
  font-size: 0.64rem;
  line-height: 1.45;
  
  /* Multi-line truncation / Line clamp */
  line-clamp: 2;
  -webkit-line-clamp: 2;
  
  /* Required for WebKit/Blink line clamping */
  /* css-was-compiled-without-prefixing-comment */
  -webkit-box-orient: vertical;
}

.notification-item__footer {
  display: flex;
  align-items: center;
  justify-content:
    space-between;
  gap: 10px;
  margin-top: 8px;
  color: #6e9fca;
  font-size: .59rem;
  font-weight: 800;
}

.notification-item__unread {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background:
    #2b92ff;
  box-shadow:
    0 0 12px
    rgba(43,146,255,.64);
}

.notification-panel-empty--premium {
  display: grid;
  justify-items: center;
  min-height: 172px;
  padding: 28px 22px;
  text-align: center;
}

.notification-panel-empty__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border: 1px solid
    rgba(70,150,226,.2);
  border-radius: 17px;
  color: #6fb7f6;
  background:
    rgba(37,131,255,.08);
}

.notification-panel-empty__icon svg {
  width: 24px;
  height: 24px;
}

.notification-panel-empty--premium strong {
  color: #edf7ff;
  font-size: .79rem;
}

.notification-panel-empty--premium span {
  max-width: 260px;
  margin-top: 5px;
  color: #748ca2;
  font-size: .63rem;
  line-height: 1.45;
}

@media (max-width: 520px) {
  .notification-item--premium {
    grid-template-columns:
      40px minmax(0,1fr);
    padding: 11px;
  }

  .notification-item__icon {
    width: 40px;
    height: 40px;
  }
}

/* Sprint 6.3.7.3 loading and empty experience */
.notification-skeleton{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;margin-bottom:9px;padding:12px;border:1px solid rgba(111,159,205,.09);border-radius:15px;background:rgba(255,255,255,.018);animation:notification-skeleton-enter .22s ease both;animation-delay:calc(var(--notification-skeleton-index,0)*32ms)}
.notification-skeleton__icon,.notification-skeleton__copy i{display:block;overflow:hidden;background:linear-gradient(90deg,rgba(255,255,255,.035),rgba(255,255,255,.09),rgba(255,255,255,.035));background-size:220% 100%;animation:notification-shimmer 1.25s linear infinite}
.notification-skeleton__icon{width:44px;height:44px;border-radius:13px}
.notification-skeleton__copy{display:grid;align-content:center;gap:7px}
.notification-skeleton__copy i{height:8px;border-radius:999px}
.notification-skeleton__copy i:nth-child(1){width:34%}
.notification-skeleton__copy i:nth-child(2){width:82%}
.notification-skeleton__copy i:nth-child(3){width:56%}
.notification-state-enter{animation:notification-state-enter .24s ease both}
.notification-list-ready{animation:notification-list-ready .25s ease both}
.notification-panel-empty__topics{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin-top:15px}
.notification-panel-empty__topics span{display:inline-flex;align-items:center;gap:5px;min-height:27px;padding:0 8px;border:1px solid rgba(104,155,202,.11);border-radius:999px;color:#789bb9;background:rgba(255,255,255,.022);font-size:.56rem;font-weight:800}
.notification-panel-empty__topics svg{width:12px;height:12px}
@keyframes notification-shimmer{to{background-position:-220% 0}}
@keyframes notification-skeleton-enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@keyframes notification-state-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@keyframes notification-list-ready{from{opacity:.72}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.notification-skeleton,.notification-skeleton__icon,.notification-skeleton__copy i,.notification-state-enter,.notification-list-ready{animation:none!important}}


/* =========================================================
   V1.5 SPRINT 6.3.7.4 — DROPDOWN QUICK ACTIONS
========================================================= */

.notification-item__footer {
  align-items: center;
}

.notification-item__quick-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  opacity: .72;
  transition: opacity .16s ease;
}

.notification-item--premium:hover
.notification-item__quick-actions,
.notification-item--premium:focus-within
.notification-item__quick-actions {
  opacity: 1;
}

.notification-item__quick-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 27px;
  padding: 0 7px;
  border: 1px solid rgba(103,158,210,.12);
  border-radius: 8px;
  color: #7fa7c8;
  background: rgba(255,255,255,.018);
  font-size: .55rem;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color .15s ease,
    border-color .15s ease,
    background .15s ease,
    transform .15s ease;
}

.notification-item__quick-action:hover {
  transform: translateY(-1px);
  color: #d8edff;
  border-color: rgba(65,151,232,.3);
  background: rgba(37,131,255,.09);
}

.notification-item__quick-action[
  data-notification-quick-action="archive"
]:hover {
  color: #ffd09a;
  border-color: rgba(245,185,66,.3);
  background: rgba(245,185,66,.075);
}

.notification-item__quick-action[
  aria-disabled="true"
] {
  opacity: .42;
  cursor: not-allowed;
  transform: none;
}

.notification-item__quick-action svg {
  width: 11px;
  height: 11px;
}

.notification-item__quick-action:focus-visible {
  outline: 2px solid #49a6ff;
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .notification-item__quick-actions {
    flex-wrap: wrap;
  }

  .notification-item__quick-action {
    min-height: 29px;
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notification-item__quick-actions,
  .notification-item__quick-action {
    transition: none !important;
  }
}


/* =========================================================
   V1.5 SPRINT 6.3.7.5 — FINAL DROPDOWN POLISH
========================================================= */

.notification-panel,
.sl-global-panel {
  transform-origin: top right;
}

.notification-item--premium {
  animation-delay:
    calc(
      var(--notification-item-index, 0)
      * 26ms
    );
}

.notification-item--premium:focus-visible {
  outline: 2px solid #4aa8ff;
  outline-offset: 2px;
  border-color: rgba(74,168,255,.45);
}

.notification-item--premium.is-read {
  opacity: .84;
}

.notification-item--premium.is-read:hover,
.notification-item--premium.is-read:focus-visible {
  opacity: 1;
}

.notification-panel-actions button:focus-visible,
.notification-panel-footer--premium a:focus-visible,
.notification-clear-all:focus-visible,
.notification-mark-all:focus-visible {
  outline: 2px solid #4aa8ff;
  outline-offset: 2px;
}

.notification-panel-header--premium {
  position: sticky;
  top: 0;
  z-index: 3;
  backdrop-filter: blur(16px);
}

.notification-panel-footer--premium {
  position: sticky;
  bottom: 0;
  z-index: 3;
  backdrop-filter: blur(16px);
}

.notification-panel-list,
.sl-global-list {
  overscroll-behavior: contain;
}

.notification-panel-unread-badge {
  animation:
    notification-unread-badge-in
    .24s ease both;
}

.notification-panel-empty--premium {
  animation:
    notification-empty-in
    .26s ease both;
}

@keyframes notification-unread-badge-in {
  from {
    opacity: 0;
    transform: scale(.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes notification-empty-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .notification-panel,
  .sl-global-panel {
    right: 10px !important;
    left: 10px !important;
    width: auto;
    max-height: calc(100vh - 92px);
  }

  .notification-panel-list,
  .sl-global-list {
    max-height: calc(100vh - 285px);
  }

  .notification-panel-header--premium {
    gap: 12px;
  }

  .notification-item__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .notification-item__quick-actions {
    width: 100%;
  }

  .notification-item__quick-action {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .notification-panel-actions {
    grid-template-columns: 1fr;
  }

  .notification-panel-empty__topics {
    display: grid;
    grid-template-columns:
      repeat(2, minmax(0,1fr));
    width: 100%;
  }

  .notification-panel-empty__topics span {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notification-panel-unread-badge,
  .notification-panel-empty--premium,
  .notification-item--premium {
    animation: none !important;
  }
}


/* =========================================================
   V1.5 SPRINT 6.3.8 — DROPDOWN CORRECTIVE POLISH
========================================================= */

.notification-panel,
.sl-global-panel {
  width: min(430px, calc(100vw - 24px));
  border-radius: 20px;
}

.notification-panel-header--premium {
  grid-template-columns:
    minmax(0,1fr) auto;
  padding: 17px 18px;
}

.notification-panel-heading h3 {
  font-size: .95rem;
}

.notification-panel-subtitle {
  max-width: 245px;
  font-size: .64rem;
}

.notification-panel-actions {
  align-self: start;
}

.notification-panel-list,
.sl-global-list {
  min-height: 150px;
  max-height: min(420px, 58vh);
}

.notification-panel-empty--premium {
  min-height: 156px;
  padding: 24px 18px 21px;
}

.notification-panel-empty__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 11px;
  border-radius: 15px;
}

.notification-panel-empty__topics {
  margin-top: 12px;
}

.notification-panel-footer--premium a {
  min-height: 40px;
}

@media (max-width: 520px) {
  .notification-panel-header--premium {
    grid-template-columns: 1fr;
  }

  .notification-panel-list,
  .sl-global-list {
    min-height: 138px;
  }
}


/* Sprint 6.3.9 — deterministic dropdown state */
.notification-panel-empty--premium {
  min-height: 150px;
}

.notification-panel-empty--premium strong {
  letter-spacing: -.01em;
}


/* =========================================================
   V1.5 SPRINT 6.3.12 — LIVE DROPDOWN CSS COLLISION REPAIR
========================================================= */

#notificationPanel.notification-panel--premium {
  display: none;
  width: min(430px, calc(100vw - 24px));
  min-width: 380px;
  overflow: hidden;
}

#notificationPanel.notification-panel--premium.open {
  display: block;
}

#notificationPanel.notification-panel--premium
#notificationList.notification-panel-list {
  display: block;
  min-height: 172px;
  max-height: min(420px, 58vh);
  padding: 12px;
  overflow-x: hidden;
  overflow-y: auto;
}

#notificationPanel.notification-panel--premium
.notification-panel-empty--premium {
  display: grid !important;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  gap: 0;
  width: 100%;
  min-height: 166px;
  margin: 0;
  padding: 24px 18px 22px;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
}

#notificationPanel.notification-panel--premium
.notification-panel-empty__icon {
  display: grid !important;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 0 12px;
  border: 1px solid rgba(70,150,226,.22);
  border-radius: 15px;
  color: #72baff;
  background:
    radial-gradient(
      circle at top right,
      rgba(37,131,255,.18),
      transparent 55%
    ),
    rgba(37,131,255,.075);
}

#notificationPanel.notification-panel--premium
.notification-panel-empty__icon svg {
  display: block;
  width: 23px;
  height: 23px;
}

#notificationPanel.notification-panel--premium
.notification-panel-empty--premium > strong {
  display: block;
  margin: 0;
  color: #f1f8ff;
  font-size: .82rem;
  font-weight: 900;
  line-height: 1.25;
}

#notificationPanel.notification-panel--premium
.notification-panel-empty--premium > span {
  display: block;
  max-width: 270px;
  margin: 6px auto 0;
  color: #7d95aa;
  font-size: .64rem;
  line-height: 1.45;
}

#notificationPanel.notification-panel--premium
.notification-panel-empty__topics {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin: 15px 0 0;
}

#notificationPanel.notification-panel--premium
.notification-panel-empty__topics span {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 27px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid rgba(104,155,202,.13);
  border-radius: 999px;
  color: #82a7c6;
  background: rgba(255,255,255,.025);
  font-size: .56rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

#notificationPanel.notification-panel--premium
.notification-panel-empty__topics svg {
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

#notificationPanel.notification-panel--premium
.notification-item--premium {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 520px) {
  #notificationPanel.notification-panel--premium {
    right: 10px !important;
    left: 10px !important;
    width: auto;
    min-width: 0;
  }

  #notificationPanel.notification-panel--premium
  #notificationList.notification-panel-list {
    min-height: 154px;
  }

  #notificationPanel.notification-panel--premium
  .notification-panel-empty__topics {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}


/* =========================================================
   V1.5 SPRINT 6.3.13 — MANAGER REQUEST NAV INDICATORS
========================================================= */

a[href*="time-off"] {
  position: relative;
}

.notification-nav-dot {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: auto;
  padding: 0 5px;
  border: 2px solid #061421;
  border-radius: 999px;
  color: #fff;
  background: #ff4d67;
  box-shadow:
    0 0 0 3px
    rgba(255,77,103,.08),
    0 0 14px
    rgba(255,77,103,.32);
  font-size: .54rem;
  font-weight: 900;
  line-height: 1;
}

#notificationBadge:not([hidden]) {
  display: grid !important;
  place-items: center;
}
