:root {
  --notice-safe-top: env(safe-area-inset-top, 0px);
}
.notification-center {
  position: fixed;
  z-index: 2147483000;
  top: calc(var(--visual-viewport-top, 0px) + var(--notice-safe-top) + 8px);
  left: 50%;
  width: min(388px, calc(100vw - 24px));
  display: grid;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
  isolation: isolate;
}
.shelby-notification {
  --notice-accent: #74cfff;
  --notice-duration: 5800ms;
  position: relative;
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) 29px;
  align-items: start;
  gap: 9px;
  width: 100%;
  min-height: 69px;
  padding: 10px 9px 11px 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  color: #fff;
  background: radial-gradient(circle at 8% 8%, color-mix(in srgb,var(--notice-accent) 11%,transparent), transparent 38%), linear-gradient(145deg,rgba(23,15,18,.988),rgba(7,7,8,.984));
  box-shadow: 0 20px 48px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.09);
  -webkit-backdrop-filter: blur(17px) saturate(1.14);
  backdrop-filter: blur(17px) saturate(1.14);
  opacity: 0;
  transform: translateY(-16px) scale(.985);
  transform-origin: 50% 0;
  pointer-events: auto;
  transition: transform .32s cubic-bezier(.22,1,.36,1), opacity .18s ease;
  touch-action: manipulation;
  contain: layout paint;
}
.shelby-notification::before {
  content: '';
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: 0;
  width: 3px;
  border-radius: 0 99px 99px 0;
  background: linear-gradient(180deg,color-mix(in srgb,var(--notice-accent) 68%,white),var(--notice-accent));
  box-shadow: 0 0 14px color-mix(in srgb,var(--notice-accent) 34%,transparent);
}
.shelby-notification.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.shelby-notification.is-leaving { opacity: 0; transform: translateY(-10px) scale(.992); transition-duration: .18s; }
.shelby-notification--success { --notice-accent: #59e7ae; }
.shelby-notification--error { --notice-accent: #ff7187; }
.shelby-notification--warning { --notice-accent: #ffd06b; }
.shelby-notification--info { --notice-accent: #70c9ff; }
.shelby-notification__icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 12px;
  color: #09080a;
  background: linear-gradient(145deg,color-mix(in srgb,var(--notice-accent) 70%,white),var(--notice-accent));
  box-shadow: 0 9px 20px color-mix(in srgb,var(--notice-accent) 19%,transparent), inset 0 1px 0 rgba(255,255,255,.6);
  font-size: 14px;
}
.shelby-notification__content { min-width: 0; display: grid; gap: 4px; }
.shelby-notification__meta { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: rgba(255,255,255,.5); font-size: 8.5px; line-height: 1.2; }
.shelby-notification__identity { min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; }
.shelby-notification__identity b { overflow: hidden; color: rgba(255,255,255,.76); font-size: 8.5px; font-weight: 900; letter-spacing: .07em; text-overflow: ellipsis; white-space: nowrap; }
.shelby-notification__identity em { flex: none; min-height: 17px; padding: 0 6px; display: inline-flex; align-items: center; border: 1px solid color-mix(in srgb,var(--notice-accent) 26%,transparent); border-radius: 999px; color: color-mix(in srgb,var(--notice-accent) 73%,white); background: color-mix(in srgb,var(--notice-accent) 9%,transparent); font-size: 7px; font-style: normal; font-weight: 900; letter-spacing: .055em; }
.shelby-notification__meta small { flex: none; color: rgba(255,255,255,.48); font-size: 8.5px; }
.shelby-notification__content > strong { display: -webkit-box; overflow: hidden; color: #fff; font-size: 13px; font-weight: 850; line-height: 1.26; letter-spacing: -.014em; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.shelby-notification__message { display: -webkit-box; overflow: hidden; color: rgba(255,255,255,.73); font-size: 10.8px; line-height: 1.42; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.shelby-notification__close {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 50%;
  color: rgba(255,255,255,.64);
  background: rgba(255,255,255,.055);
  font-size: 11px;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.shelby-notification__close:hover { color: #fff; background: rgba(255,255,255,.13); transform: scale(1.04); }
.shelby-notification__action { grid-column: 2/-1; min-height: 36px; margin-top: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid color-mix(in srgb,var(--notice-accent) 32%,transparent); border-radius: 11px; color: #fff; background: color-mix(in srgb,var(--notice-accent) 12%,rgba(255,255,255,.025)); font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
.shelby-notification__progress { position: absolute; right: 16px; bottom: 0; left: 16px; height: 2px; border-radius: 99px; background: linear-gradient(90deg,transparent,var(--notice-accent) 18%,var(--notice-accent) 82%,transparent); opacity: .52; transform-origin: left; animation: shelby-notification-progress var(--notice-duration) linear forwards; }
.shelby-notification.is-paused .shelby-notification__progress { animation-play-state: paused; }
.shelby-notification button:focus-visible { outline: 3px solid color-mix(in srgb,var(--notice-accent) 58%,white); outline-offset: 2px; }
@keyframes shelby-notification-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 560px) {
  .notification-center { width: min(372px, calc(100vw - 20px)); }
  .shelby-notification { min-height: 67px; padding: 9px 8px 10px 9px; border-radius: 17px; }
}
@media (max-width: 360px) {
  .notification-center { width: calc(100vw - 16px); }
  .shelby-notification { grid-template-columns: 36px minmax(0,1fr) 27px; gap: 7px; min-height: 63px; padding: 8px 7px 9px 8px; border-radius: 16px; }
  .shelby-notification__icon { width: 36px; height: 36px; border-radius: 11px; font-size: 13px; }
  .shelby-notification__close { width: 28px; height: 28px; }
  .shelby-notification__identity em { display: none; }
  .shelby-notification__content > strong { font-size: 13.2px; }
  .shelby-notification__message { font-size: 10.9px; -webkit-line-clamp: 2; }
}
@media (prefers-reduced-transparency: reduce) { .shelby-notification { background: #151014; -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-reduced-motion: reduce) { .shelby-notification { transition: opacity .12s linear; transform: none!important; } .shelby-notification__progress { animation: none; } .shelby-notification__close,.shelby-notification__action { transition: none; } }
