.notifications-anchor {
  position: relative;
  z-index: 80;
  margin-left: 2px;
}
.notifications-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}
.notifications-bell.has-notifications {
  color: color-mix(in srgb, var(--ink) 88%, #ff3b30);
}
.notifications-bell.has-urgent {
  border-color: color-mix(in srgb, #ff3b30 40%, transparent);
  background: color-mix(in srgb, #ff3b30 8%, var(--surface));
}
.notifications-bell.is-ringing .notifications-bell-icon {
  animation: notifications-bell-ring 0.85s cubic-bezier(0.36, 0.07, 0.19, 0.97);
  transform-origin: 50% 8%;
}
@keyframes notifications-bell-ring {
  0%,
  100% {
    transform: rotate(0);
  }
  12% {
    transform: rotate(14deg);
  }
  24% {
    transform: rotate(-12deg);
  }
  36% {
    transform: rotate(10deg);
  }
  48% {
    transform: rotate(-8deg);
  }
  60% {
    transform: rotate(5deg);
  }
  72% {
    transform: rotate(-3deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .notifications-bell.is-ringing .notifications-bell-icon {
    animation: none;
  }
  .notifications-panel.is-open {
    animation: none;
    transform: translateX(-50%) translateY(0) scale(1);
    transition: opacity 0.15s ease;
  }
}
.notifications-bell:hover,
.notifications-bell:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  outline: none;
}
.notifications-bell-signals {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.notifications-bell-signal {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff3b30;
  border: 2px solid var(--surface);
  box-shadow: 0 1px 4px rgba(255, 59, 48, 0.45);
}
.notifications-bell-signal.is-cancellation {
  top: 2px;
  left: 4px;
}
.notifications-bell-signal.is-booking {
  top: 0;
  left: 14px;
}
.notifications-bell-signal.is-change {
  top: 6px;
  left: 0;
}
.notifications-bell-signal.hidden {
  display: none;
}
.notifications-bell-icon {
  width: 20px;
  height: 20px;
}
.notifications-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(255, 59, 48, 0.35);
  z-index: 2;
}
.notifications-badge.hidden {
  display: none;
}
.notifications-live-banner {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  z-index: 12120;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: start;
  width: min(420px, calc(100vw - 24px));
  min-height: 74px;
  padding: 10px 14px 12px 10px;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-left: 4px solid #22c55e;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
  color: var(--ink);
  box-shadow:
    0 22px 48px rgba(15, 23, 42, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(28px) saturate(1.3);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, -18px) scale(0.97);
  transition:
    opacity 0.22s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.notifications-live-banner.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}
.notifications-live-banner.hidden {
  display: none;
}
.notifications-live-banner.tone-cancelled {
  border-left-color: #ef4444;
}
.notifications-live-banner.tone-pending {
  border-left-color: #f59e0b;
}
.notifications-live-banner.is-time-sensitive {
  box-shadow:
    0 24px 56px rgba(245, 158, 11, 0.22),
    0 12px 32px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.notifications-live-banner-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 15px;
  line-height: 1;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.notifications-live-banner-icon.tone-pending {
  background: color-mix(in srgb, #f59e0b 22%, var(--surface-solid));
}
.notifications-live-banner-icon.tone-cancelled {
  background: color-mix(in srgb, #ef4444 20%, var(--surface-solid));
}
.notifications-live-banner-icon.tone-confirmed,
.notifications-live-banner-icon.tone-upcoming,
.notifications-live-banner-icon.tone-change,
.notifications-live-banner-icon.tone-alert,
.notifications-live-banner-icon.tone-deal,
.notifications-live-banner-icon.tone-product {
  background: color-mix(in srgb, #22c55e 18%, var(--surface-solid));
}
.notifications-live-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.notifications-live-banner-meta {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: color-mix(in srgb, var(--ink) 48%, transparent);
}
.notifications-live-banner-copy strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.22;
}
.notifications-live-banner .notifications-item-detail,
.notifications-live-banner .notifications-item-route,
.notifications-live-banner .notifications-item-route-row {
  font-size: 12px;
}
@media (max-width: 720px) {
  .notifications-live-banner {
    top: max(72px, calc(env(safe-area-inset-top, 0px) + 64px));
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    width: auto;
    min-height: 0;
    padding: 12px 14px 14px 12px;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    border-radius: 20px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.99),
        rgba(248, 250, 253, 0.97)
      ),
      var(--surface-solid);
    border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
    border-left-width: 4px;
    box-shadow:
      0 20px 44px rgba(15, 23, 42, 0.2),
      0 8px 18px rgba(15, 23, 42, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.86);
    transform: translateY(-14px) scale(0.97);
  }

  .notifications-live-banner.is-visible {
    transform: translateY(0) scale(1);
  }

  [data-theme='dark'] .notifications-live-banner {
    background: linear-gradient(
        180deg,
        rgba(18, 26, 42, 0.99),
        rgba(12, 18, 32, 0.98)
      ),
      rgba(10, 16, 28, 0.98);
    border-color: rgba(112, 142, 204, 0.2);
    box-shadow:
      0 20px 44px rgba(0, 0, 0, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .notifications-live-banner-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .notifications-live-banner-meta {
    font-size: 11px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .notifications-live-banner-copy strong {
    font-size: 15px;
    line-height: 1.28;
  }

  .notifications-live-banner .notifications-item-detail,
  .notifications-live-banner .notifications-item-route,
  .notifications-live-banner .notifications-item-route-row {
    font-size: 13px;
    line-height: 1.35;
  }

  .notifications-live-banner .notifications-item-route,
  .notifications-live-banner .notifications-item-route-value {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    overflow-wrap: anywhere;
  }

  .notifications-live-banner .notifications-item-routes {
    gap: 4px;
  }
}

@media (max-width: 560px) {
  .notifications-live-banner {
    top: max(64px, calc(env(safe-area-inset-top, 0px) + 58px));
    left: max(10px, env(safe-area-inset-left, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    border-radius: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .notifications-live-banner {
    transition: opacity 0.15s ease;
    transform: translateY(0) scale(1);
  }

  .notifications-live-banner.is-visible {
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 721px) {
  .notifications-live-banner {
    transform: translate(-50%, 0) scale(1);
  }
}
.notifications-backdrop {
  position: fixed;
  z-index: 199;
  width: min(360px, calc(100vw - 24px));
  height: var(--notifications-panel-height, 320px);
  max-height: min(72vh, 520px);
  border-radius: 18px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(80px) saturate(1.85) brightness(1.06);
  -webkit-backdrop-filter: blur(80px) saturate(1.85) brightness(1.06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 22px 56px rgba(15, 23, 42, 0.2);
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}
.notifications-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}
.notifications-backdrop.hidden:not(.is-open) {
  display: none;
}
[data-theme='dark'] .notifications-backdrop {
  background: rgba(8, 12, 22, 0.5);
  backdrop-filter: blur(80px) saturate(1.55) brightness(0.9);
  -webkit-backdrop-filter: blur(80px) saturate(1.55) brightness(0.9);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 22px 56px rgba(0, 0, 0, 0.45);
}
@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .notifications-backdrop {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  [data-theme='dark'] .notifications-backdrop {
    background: rgba(12, 16, 28, 0.94);
  }
}
.notifications-panel {
  position: fixed;
  z-index: 200;
  width: min(360px, calc(100vw - 24px));
  height: var(--notifications-panel-height, 320px);
  max-height: min(72vh, 520px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scrollbar-color: transparent transparent;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  background: transparent;
  box-shadow: none;
  opacity: 0;
  transform: translateX(-50%) translateY(-12px) scale(0.97);
  transform-origin: top center;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
}
.notifications-panel.is-open {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
  animation: notifications-panel-enter 0.34s cubic-bezier(0.22, 1, 0.36, 1)
    forwards;
}
.notifications-panel.is-open.is-search-aligned {
  transform: translateY(0) scale(1);
  transform-origin: top left;
  animation: notifications-panel-enter-left 0.34s cubic-bezier(0.22, 1, 0.36, 1)
    forwards;
}
.notifications-backdrop.is-open.is-search-aligned {
  transform: none;
}
@keyframes notifications-panel-enter-left {
  0% {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes notifications-panel-enter {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}
.notifications-panel.hidden:not(.is-open) {
  display: none;
  animation: none;
}
.notifications-card.is-dismissing {
  animation: notifications-card-dismiss 0.28s cubic-bezier(0.4, 0, 0.2, 1)
    forwards;
  pointer-events: none;
  overflow: hidden;
}
@keyframes notifications-card-dismiss {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
    max-height: 120px;
    margin-bottom: 6px;
  }
  100% {
    opacity: 0;
    transform: translateX(16px) scale(0.94);
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .notifications-card.is-dismissing {
    animation: notifications-card-dismiss-reduced 0.15s ease forwards;
  }
  @keyframes notifications-card-dismiss-reduced {
    to {
      opacity: 0;
      max-height: 0;
      margin-bottom: 0;
    }
  }
}
.notifications-panel-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  background: transparent;
}
.notifications-panel-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.notifications-clear {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
}
.notifications-clear:disabled {
  opacity: 0.45;
  cursor: default;
}
.notifications-clear:not(:disabled):hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.notifications-panel::-webkit-scrollbar,
.notifications-panel-body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.notifications-panel::-webkit-scrollbar-thumb,
.notifications-panel-body::-webkit-scrollbar-thumb,
.notifications-panel::-webkit-scrollbar-track,
.notifications-panel-body::-webkit-scrollbar-track {
  display: none;
  background: transparent;
}
.notifications-panel-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px 10px 10px;
  background: transparent;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scrollbar-color: transparent transparent;
  -webkit-overflow-scrolling: touch;
}
.notifications-group h3 {
  margin: 6px 2px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 50%, transparent);
}
.notifications-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 6px;
  padding: 0;
  border-radius: 12px;
  background: var(--surface-solid);
  border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
  border-left-width: 3px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 3px 10px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.notifications-card.tone-cancelled {
  border-left-color: #ef4444;
}
.notifications-card.tone-pending {
  border-left-color: #f59e0b;
}
.notifications-card.tone-confirmed,
.notifications-card.tone-upcoming,
.notifications-card.tone-change,
.notifications-card.tone-alert,
.notifications-card.tone-deal,
.notifications-card.tone-product {
  border-left-color: #22c55e;
}
.notifications-card-dismiss {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-soft);
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    background 0.16s ease,
    color 0.16s ease;
}
.notifications-card-dismiss:hover,
.notifications-card-dismiss:focus-visible {
  background: color-mix(in srgb, #ff3b30 14%, transparent);
  color: #ff3b30;
  outline: none;
}
.notifications-card-body {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: start;
  width: 100%;
  padding: 8px 34px 20px 10px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.notifications-card-body:hover,
.notifications-card-body:focus-visible {
  background: var(--surface-soft);
  outline: none;
}
.notifications-card-time {
  position: absolute;
  right: 10px;
  bottom: 7px;
  font-size: 10px;
  color: color-mix(in srgb, var(--ink) 45%, transparent);
  white-space: nowrap;
}
.notifications-item-icon {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.notifications-type-svg {
  width: 18px;
  height: 18px;
  display: block;
}
.notifications-item-icon.has-accent-badge .notifications-item-badge {
  display: block;
}
.notifications-item-badge {
  display: none;
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 2px solid var(--surface-solid);
}
.notifications-item-icon.tone-pending {
  background: color-mix(in srgb, #f59e0b 20%, var(--surface-solid));
}
.notifications-item-icon.tone-pending .notifications-item-badge {
  background: #f59e0b;
}
.notifications-item-icon.tone-confirmed {
  background: color-mix(in srgb, #22c55e 18%, var(--surface-solid));
}
.notifications-item-icon.tone-confirmed .notifications-item-badge {
  background: #22c55e;
}
.notifications-item-icon.tone-upcoming {
  background: color-mix(in srgb, #22c55e 18%, var(--surface-solid));
}
.notifications-item-icon.tone-upcoming .notifications-item-badge {
  background: #22c55e;
}
.notifications-item-icon.tone-cancelled {
  background: color-mix(in srgb, #ef4444 18%, var(--surface-solid));
}
.notifications-item-icon.tone-cancelled .notifications-item-badge {
  background: #ef4444;
}
.notifications-item-icon.tone-change {
  background: color-mix(in srgb, #22c55e 18%, var(--surface-solid));
}
.notifications-item-icon.tone-change .notifications-item-badge {
  background: #22c55e;
}
.notifications-item-icon.tone-alert {
  background: color-mix(in srgb, #22c55e 16%, var(--surface-solid));
}
.notifications-item-icon.tone-alert .notifications-item-badge {
  background: #22c55e;
}
.notifications-item-icon.tone-deal {
  background: color-mix(in srgb, #22c55e 16%, var(--surface-solid));
}
.notifications-item-icon.tone-deal .notifications-item-badge {
  background: #22c55e;
}
.notifications-item-icon.tone-product {
  background: color-mix(in srgb, #22c55e 14%, var(--surface-solid));
}
.notifications-item-icon.tone-product .notifications-item-badge {
  background: #22c55e;
}
.notifications-item-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.notifications-item-copy strong {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}
.notifications-item-detail {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  color: color-mix(in srgb, var(--ink) 62%, transparent);
}
.notifications-item-route {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 550;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notifications-item-routes {
  display: grid;
  gap: 2px;
  margin-top: 2px;
}
.notifications-item-route-row {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
}
.notifications-item-route-label {
  font-weight: 650;
  color: color-mix(in srgb, var(--ink) 58%, transparent);
}
.notifications-item-route-value {
  font-weight: 550;
  white-space: nowrap;
}
.notifications-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 148px;
  padding: 24px 16px;
  text-align: center;
  color: color-mix(in srgb, var(--ink) 62%, transparent);
}
.notifications-empty-icon {
  font-size: 28px;
  opacity: 0.7;
}
.notifications-empty p {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  color: var(--ink);
}

/* Cascade companions kept with the notification component after extraction. */
.notifications-clear:not(:disabled):not(.no-motion):hover,
.notifications-bell:not(:disabled):not(.no-motion):hover {
  transform: var(--btn-lift);
  filter: brightness(1.04);
}
.notifications-clear:not(:disabled):not(.no-motion):active,
.notifications-clear:not(:disabled):not(.no-motion).is-pressed,
.notifications-bell:not(:disabled):not(.no-motion):active,
.notifications-bell:not(:disabled):not(.no-motion).is-pressed {
  transform: var(--btn-press);
  transition-duration: 0.08s;
}
@media (max-width: 900px) {
  .notifications-panel {
    width: min(380px, calc(100vw - 28px));
    transform-origin: top left;
  }
}

/* Mobile panel — positioning from notifications_center.js (is-compact-panel). */
@media (max-width: 720px) {
  .notifications-backdrop.is-compact-panel.is-open {
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(10px) saturate(1.15);
    -webkit-backdrop-filter: blur(10px) saturate(1.15);
    transform: none !important;
    box-shadow: none;
  }

  [data-theme='dark'] .notifications-backdrop.is-compact-panel.is-open {
    background: rgba(0, 0, 0, 0.58);
  }

  .notifications-panel.is-compact-panel {
    width: auto !important;
    max-height: min(78dvh, calc(100dvh - 64px)) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.99),
        rgba(248, 250, 253, 0.97)
      ),
      var(--surface-solid);
    box-shadow:
      0 28px 64px rgba(15, 23, 42, 0.24),
      0 8px 20px rgba(15, 23, 42, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.88);
    transform: translateY(0) scale(1) !important;
    transform-origin: top center !important;
  }

  [data-theme='dark'] .notifications-panel.is-compact-panel {
    background: linear-gradient(
        180deg,
        rgba(18, 26, 42, 0.99),
        rgba(12, 18, 32, 0.98)
      ),
      rgba(10, 16, 28, 0.98);
    border-color: rgba(112, 142, 204, 0.18);
    box-shadow:
      0 28px 64px rgba(0, 0, 0, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .notifications-panel.is-compact-panel.is-open {
    animation: notifications-panel-enter-left 0.34s
      cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .notifications-panel.is-compact-panel .notifications-panel-header {
    flex: 0 0 auto;
    padding: 14px 16px 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.99),
      rgba(255, 255, 255, 0.94)
    );
  }

  [data-theme='dark']
    .notifications-panel.is-compact-panel
    .notifications-panel-header {
    background: linear-gradient(
      180deg,
      rgba(18, 26, 42, 0.99),
      rgba(14, 20, 34, 0.96)
    );
  }

  .notifications-panel.is-compact-panel .notifications-panel-header h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
  }

  .notifications-panel.is-compact-panel .notifications-clear {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 15px;
    border-radius: 10px;
  }

  .notifications-panel.is-compact-panel .notifications-panel-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 6px 14px max(16px, env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
  }

  .notifications-panel.is-compact-panel .notifications-group h3 {
    margin: 12px 2px 8px;
    font-size: 11px;
  }

  .notifications-panel.is-compact-panel .notifications-card {
    margin-bottom: 10px;
    border-radius: 14px;
    box-shadow:
      0 1px 2px rgba(15, 23, 42, 0.05),
      0 6px 16px rgba(15, 23, 42, 0.07);
  }

  .notifications-panel.is-compact-panel .notifications-card-dismiss {
    width: 36px;
    height: 36px;
    top: 6px;
    right: 6px;
    font-size: 18px;
  }

  .notifications-panel.is-compact-panel .notifications-card-body {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 12px 44px 28px 14px;
    min-height: 44px;
  }

  .notifications-panel.is-compact-panel .notifications-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .notifications-panel.is-compact-panel .notifications-type-svg {
    width: 20px;
    height: 20px;
  }

  .notifications-panel.is-compact-panel .notifications-item-copy {
    gap: 3px;
  }

  .notifications-panel.is-compact-panel .notifications-item-copy strong {
    font-size: 14px;
    line-height: 1.28;
  }

  .notifications-panel.is-compact-panel .notifications-item-detail,
  .notifications-panel.is-compact-panel .notifications-item-route,
  .notifications-panel.is-compact-panel .notifications-item-route-row {
    font-size: 13px;
    line-height: 1.38;
  }

  .notifications-panel.is-compact-panel .notifications-item-route,
  .notifications-panel.is-compact-panel .notifications-item-route-value {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    overflow-wrap: anywhere;
  }

  .notifications-panel.is-compact-panel .notifications-item-routes {
    gap: 4px;
  }

  .notifications-panel.is-compact-panel .notifications-card-time {
    font-size: 11px;
    right: 14px;
    bottom: 12px;
  }

  .notifications-panel.is-compact-panel .notifications-empty {
    min-height: 140px;
    padding: 24px 16px;
  }

  .notifications-panel.is-compact-panel .notifications-empty p {
    font-size: 17px;
  }
}
