/* Shared site navigation (all pages). Namespaced "sn-" so legacy navbar rules can't leak in. */

:root {
  --sn-h: 72px;
  --sn-amber: #e8a861;
  --sn-amber-soft: #f3c58f;
  --sn-copper: #d9793f;
  --sn-text: rgba(250, 247, 243, 0.96);
  --sn-muted: rgba(240, 232, 224, 0.64);
  --sn-faint: rgba(240, 232, 224, 0.42);
  --sn-line: rgba(255, 255, 255, 0.075);
  --sn-line-warm: rgba(232, 168, 97, 0.16);
  --sn-surface: rgba(255, 255, 255, 0.035);
  --sn-surface-hover: rgba(255, 255, 255, 0.065);
  --sn-panel: #121010;
  --sn-green: #4ade80;
  --sn-red: #f87171;
  --sn-ease: cubic-bezier(.2, .8, .2, 1);
}

.site-nav,
.sn-drawer {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-nav *,
.sn-drawer * {
  box-sizing: border-box;
}

.site-nav svg,
.sn-drawer svg {
  flex-shrink: 0;
}

/* ---------- Bar ---------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  height: var(--sn-h);
  background: linear-gradient(180deg, rgba(9, 8, 8, 0.86) 0%, rgba(9, 8, 8, 0.66) 100%);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid var(--sn-line);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.site-nav::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(232, 168, 97, 0.35) 50%, transparent 100%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.site-nav.is-scrolled {
  background: rgba(10, 9, 9, 0.94);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
}

.site-nav.is-scrolled::after {
  opacity: 1;
}

.sn-inner {
  height: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* ---------- Brand ---------- */

.sn-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--sn-text);
  text-decoration: none;
  border-radius: 10px;
}

.sn-brand img {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  filter: drop-shadow(0 4px 14px rgba(232, 168, 97, 0.22));
  transition: transform .3s var(--sn-ease), filter .3s ease;
}

.sn-brand:hover img {
  transform: translateY(-1px) scale(1.03);
  filter: drop-shadow(0 6px 18px rgba(232, 168, 97, 0.36));
}

.sn-brand-text {
  font-family: 'Space Grotesk', 'Poppins', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.sn-brand-text span {
  background: linear-gradient(120deg, var(--sn-amber-soft), var(--sn-amber) 50%, var(--sn-copper));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Primary links ---------- */

.sn-links {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.sn-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 9px;
  color: var(--sn-muted);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}

.sn-link:hover {
  color: var(--sn-text);
  background: var(--sn-surface);
}

.sn-link[aria-current="page"],
.sn-link.is-active {
  color: var(--sn-text);
}

.sn-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sn-amber-soft), var(--sn-amber) 50%, var(--sn-copper));
  transform: scaleX(0);
  transition: transform .3s var(--sn-ease);
}

.sn-link[aria-current="page"]::after,
.sn-link.is-active::after {
  transform: scaleX(1);
}

/* ---------- Right-side actions ---------- */

.sn-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sn-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--sn-line);
  border-radius: 999px;
  background: var(--sn-surface);
  color: var(--sn-muted);
  font-size: .8rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  cursor: default;
}

.sn-status strong {
  color: var(--sn-text);
  font-weight: 600;
}

.sn-status-max {
  color: var(--sn-faint);
}

.sn-status-label {
  color: var(--sn-faint);
  font-size: .75rem;
}

.sn-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6d6660;
  flex-shrink: 0;
}

.sn-dot.is-online {
  background: var(--sn-green);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.16);
}

.sn-dot.is-online::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(74, 222, 128, 0.55);
  animation: sn-ping 2.4s ease-out infinite;
}

.sn-dot.is-offline {
  background: var(--sn-red);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.16);
}

@keyframes sn-ping {
  0% { transform: scale(.6); opacity: .9; }
  80%, 100% { transform: scale(2); opacity: 0; }
}

.sn-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--sn-line);
  background: var(--sn-surface);
  color: var(--sn-muted);
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.sn-icon-btn:hover {
  color: var(--sn-text);
  background: rgba(88, 101, 242, 0.14);
  border-color: rgba(88, 101, 242, 0.45);
  transform: translateY(-1px);
}

.sn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(135deg, var(--sn-amber-soft) 0%, var(--sn-amber) 45%, var(--sn-copper) 100%);
  color: #1b1009;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(232, 168, 97, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.sn-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 26px rgba(232, 168, 97, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.sn-cta svg {
  transition: transform .2s ease;
}

.sn-cta:hover svg {
  transform: translateX(2px);
}

/* Hide the auth slot until we know who is logged in; auto-reveal if JS never answers. */
.site-nav[data-auth="pending"] .sn-auth {
  opacity: 0;
  animation: sn-reveal 0s linear 2.5s forwards;
}

@keyframes sn-reveal {
  to { opacity: 1; }
}

/* ---------- Account menu ---------- */

.sn-account {
  position: relative;
}

.sn-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px 0 4px;
  border-radius: 999px;
  border: 1px solid var(--sn-line);
  background: var(--sn-surface);
  color: var(--sn-text);
  font: inherit;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}

.sn-account-btn:hover,
.sn-account-btn[aria-expanded="true"] {
  background: var(--sn-surface-hover);
  border-color: var(--sn-line-warm);
}

.sn-avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #3a2a1f, #1f1712);
  color: var(--sn-amber-soft);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(232, 168, 97, 0.25);
}

.sn-avatar--lg {
  width: 42px;
  height: 42px;
  font-size: 1rem;
}

.sn-account-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sn-chevron {
  color: var(--sn-faint);
  transition: transform .25s var(--sn-ease);
}

.sn-account-btn[aria-expanded="true"] .sn-chevron {
  transform: rotate(180deg);
}

.sn-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 272px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--sn-line);
  background: rgba(19, 17, 16, 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.98);
  transform-origin: top right;
  transition: opacity .18s ease, transform .22s var(--sn-ease), visibility .18s;
}

.sn-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.sn-menu-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--sn-line);
}

.sn-menu-head strong {
  display: block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--sn-text);
  font-size: .92rem;
  font-weight: 600;
}

.sn-menu-head small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: var(--sn-faint);
  font-size: .74rem;
}

.sn-group-label {
  padding: 10px 10px 6px;
  color: var(--sn-faint);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sn-menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 9px;
  color: rgba(245, 238, 231, 0.82);
  font-size: .86rem;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}

.sn-menu-item svg {
  color: var(--sn-faint);
  transition: color .15s ease;
}

.sn-menu-item:hover,
.sn-menu-item:focus-visible {
  background: var(--sn-surface-hover);
  color: var(--sn-text);
}

.sn-menu-item:hover svg {
  color: var(--sn-amber);
}

.sn-menu-item.is-danger:hover {
  background: rgba(248, 113, 113, 0.09);
  color: #fca5a5;
}

.sn-menu-item.is-danger:hover svg {
  color: #fca5a5;
}

.sn-sep {
  height: 1px;
  margin: 6px 4px;
  background: var(--sn-line);
}

/* ---------- Burger ---------- */

.sn-burger {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 11px;
  border: 1px solid var(--sn-line);
  background: var(--sn-surface);
  color: var(--sn-text);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}

.sn-burger:hover {
  background: var(--sn-surface-hover);
  border-color: var(--sn-line-warm);
}

.sn-burger-lines {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.sn-burger-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--sn-ease), opacity .2s ease, width .3s var(--sn-ease);
}

.sn-burger-lines span:nth-child(1) { top: 0; }
.sn-burger-lines span:nth-child(2) { top: 5px; width: 70%; }
.sn-burger-lines span:nth-child(3) { top: 10px; }

.sn-burger:hover .sn-burger-lines span:nth-child(2) { width: 100%; }

/* ---------- Drawer ---------- */

.sn-backdrop {
  position: fixed;
  inset: 0;
  z-index: 810;
  background: rgba(5, 4, 4, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
}

.sn-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 820;
  display: flex;
  flex-direction: column;
  width: min(380px, 100vw);
  height: 100dvh;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(232, 168, 97, 0.09), transparent 70%),
    var(--sn-panel);
  border-left: 1px solid var(--sn-line);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
  color: var(--sn-text);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .38s var(--sn-ease), visibility .38s;
}

html.sn-open .sn-backdrop {
  opacity: 1;
  visibility: visible;
}

html.sn-open .sn-drawer {
  transform: none;
  visibility: visible;
}

html.sn-open,
html.sn-open body {
  overflow: hidden !important;
}

.sn-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--sn-h);
  padding: 0 20px 0 24px;
  border-bottom: 1px solid var(--sn-line);
  flex-shrink: 0;
}

.sn-close {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 11px;
  border: 1px solid var(--sn-line);
  background: var(--sn-surface);
  color: var(--sn-muted);
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, transform .3s var(--sn-ease);
}

.sn-close:hover {
  color: var(--sn-text);
  background: var(--sn-surface-hover);
  transform: rotate(90deg);
}

.sn-drawer-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 16px 24px;
}

.sn-drawer-body::-webkit-scrollbar {
  width: 4px;
}

.sn-drawer-foot {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--sn-line);
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.sn-drawer-foot .sn-cta,
.sn-drawer-foot .sn-discord-btn {
  flex: 1;
  height: 46px;
}

.sn-discord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 11px;
  background: #5865f2;
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(88, 101, 242, 0.28);
  transition: filter .2s ease, transform .2s ease;
}

.sn-discord-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.sn-drawer-foot .sn-icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 11px;
}

.sn-drawer-foot .sn-icon-btn:hover {
  background: var(--sn-surface-hover);
  border-color: var(--sn-line-warm);
}

.sn-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 14px;
  border: 1px solid var(--sn-line);
  background: var(--sn-surface);
}

.sn-user-card strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .95rem;
  font-weight: 600;
}

.sn-user-card small {
  color: var(--sn-faint);
  font-size: .76rem;
}

.sn-user-card > div {
  min-width: 0;
}

.sn-welcome {
  padding: 18px;
  margin-bottom: 18px;
  border-radius: 14px;
  border: 1px solid var(--sn-line-warm);
  background: linear-gradient(135deg, rgba(232, 168, 97, 0.1), rgba(232, 168, 97, 0.02));
}

.sn-welcome strong {
  display: block;
  font-size: .98rem;
  font-weight: 600;
}

.sn-welcome p {
  margin: 4px 0 14px;
  color: var(--sn-muted);
  font-size: .82rem;
  line-height: 1.5;
}

.sn-welcome .sn-cta {
  width: 100%;
  height: 42px;
}

.sn-drawer .sn-group-label {
  padding: 6px 12px 8px;
}

.sn-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.sn-drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 11px;
  color: rgba(245, 238, 231, 0.84);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}

.sn-drawer-link .sn-ico {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--sn-line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--sn-muted);
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}

.sn-drawer-link .sn-go {
  margin-left: auto;
  color: var(--sn-faint);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s ease, transform .2s ease;
}

.sn-drawer-link:hover {
  background: var(--sn-surface);
  color: var(--sn-text);
}

.sn-drawer-link:hover .sn-go {
  opacity: 1;
  transform: none;
}

.sn-drawer-link[aria-current="page"],
.sn-drawer-link.is-active {
  background: rgba(232, 168, 97, 0.08);
  color: var(--sn-text);
}

.sn-drawer-link[aria-current="page"] .sn-ico,
.sn-drawer-link.is-active .sn-ico,
.sn-drawer-link:hover .sn-ico {
  color: var(--sn-amber);
  border-color: rgba(232, 168, 97, 0.3);
  background: rgba(232, 168, 97, 0.08);
}

.sn-drawer-link.is-danger:hover {
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
}

.sn-drawer-link.is-danger:hover .sn-ico {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.08);
}

.sn-server {
  margin-top: 6px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--sn-line);
  background: var(--sn-surface);
}

.sn-server-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .86rem;
  font-weight: 600;
}

.sn-server-top .sn-server-count {
  margin-left: auto;
  color: var(--sn-muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.sn-server-top .sn-server-count strong {
  color: var(--sn-text);
}

.sn-server-name {
  margin: 4px 0 12px 18px;
  color: var(--sn-faint);
  font-size: .76rem;
}

.sn-meter {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.sn-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sn-copper), var(--sn-amber) 60%, var(--sn-amber-soft));
  transition: width .6s var(--sn-ease);
}

/* ---------- Focus ---------- */

.site-nav a:focus-visible,
.site-nav button:focus-visible,
.sn-drawer a:focus-visible,
.sn-drawer button:focus-visible {
  outline: 2px solid var(--sn-amber);
  outline-offset: 2px;
}

/* ---------- Notifications ---------- */

.sn-notif {
  position: relative;
}

.sn-bell {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--sn-line);
  background: var(--sn-surface);
  color: var(--sn-muted);
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.sn-bell:hover,
.sn-bell[aria-expanded="true"] {
  color: var(--sn-text);
  border-color: var(--sn-line-warm);
  background: rgba(232, 168, 97, 0.08);
}

.sn-bell-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  border: 2px solid #0d0b0a;
  background: linear-gradient(135deg, var(--sn-amber-soft), var(--sn-copper));
  color: #1b1009;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.sn-bell-badge[hidden] {
  display: none;
}

.sn-notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: -60px;
  z-index: 5;
  width: 360px;
  border-radius: 14px;
  border: 1px solid var(--sn-line);
  background: rgba(19, 17, 16, 0.985);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.98);
  transform-origin: top right;
  transition: opacity .18s ease, transform .22s var(--sn-ease), visibility .18s;
}

.sn-notif-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.sn-notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--sn-line);
}

.sn-notif-head strong {
  font-size: .9rem;
  color: var(--sn-text);
}

.sn-notif-readall {
  border: 0;
  background: none;
  color: var(--sn-amber-soft);
  font: inherit;
  font-size: .76rem;
  font-weight: 600;
  cursor: pointer;
}

.sn-notif-readall:hover {
  text-decoration: underline;
}

.sn-notif-readall[hidden] {
  display: none;
}

.sn-notif-list {
  max-height: min(420px, 60vh);
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
}

.sn-notif-item {
  position: relative;
  display: flex;
  gap: 11px;
  padding: 10px 10px 10px 12px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: background-color .15s ease;
}

a.sn-notif-item:hover,
a.sn-notif-item:focus-visible {
  background: rgba(255, 255, 255, 0.05);
}

.sn-notif-item.is-unread::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sn-amber);
}

.sn-notif-ico {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(232, 168, 97, 0.1);
  color: var(--sn-amber-soft);
}

.sn-notif-item:not(.is-unread) .sn-notif-ico {
  background: rgba(255, 255, 255, 0.05);
  color: var(--sn-faint);
}

.sn-notif-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-right: 14px;
}

.sn-notif-main strong {
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--sn-text);
}

.sn-notif-item:not(.is-unread) .sn-notif-main strong {
  font-weight: 500;
  color: var(--sn-muted);
}

.sn-notif-count {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(232, 168, 97, 0.18);
  color: var(--sn-amber-soft);
  font-size: .7rem;
  font-weight: 700;
  vertical-align: 1px;
}

.sn-notif-body {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: .78rem;
  line-height: 1.45;
  color: var(--sn-faint);
  overflow-wrap: anywhere;
}

.sn-notif-main time {
  font-size: .72rem;
  color: var(--sn-faint);
}

.sn-notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 20px;
  text-align: center;
  color: var(--sn-faint);
  font-size: .8rem;
  line-height: 1.5;
}

.sn-notif-empty strong {
  color: var(--sn-text);
  font-size: .88rem;
}

.sn-notif-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 11px;
  border-top: 1px solid var(--sn-line);
  color: var(--sn-muted);
  font-size: .8rem;
  font-weight: 500;
  text-decoration: none;
}

.sn-notif-foot:hover {
  color: var(--sn-text);
}

/* Restart countdown inside the drawer server card */
.sn-restart {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 0;
  font-size: .78rem;
  color: var(--sn-muted);
}

.sn-restart svg {
  flex-shrink: 0;
  color: var(--sn-amber);
}

.sn-restart.is-immunity {
  color: #ffd58a;
}

.sn-restart[hidden] {
  display: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1240px) {
  .sn-inner {
    gap: 24px;
  }

  .sn-link {
    padding: 0 11px;
  }

  .sn-link::after {
    left: 11px;
    right: 11px;
  }

  .sn-status-label {
    display: none;
  }
}

@media (max-width: 1120px) {
  .sn-links {
    display: none;
  }

  .sn-burger {
    display: inline-grid;
  }
}

@media (max-width: 760px) {
  :root {
    --sn-h: 64px;
  }

  .sn-inner {
    padding: 0 16px;
    gap: 12px;
  }

  .sn-brand img {
    width: 34px;
    height: 34px;
  }

  .sn-actions {
    gap: 8px;
  }

  .sn-actions .sn-icon-btn,
  .sn-actions .sn-auth {
    display: none;
  }

  .sn-bell {
    width: 36px;
    height: 34px;
  }

  .sn-notif-panel {
    position: fixed;
    top: calc(var(--sn-h) + 6px);
    left: 12px;
    right: 12px;
    width: auto;
  }

  .sn-status {
    height: 34px;
    padding: 0 12px 0 10px;
  }
}

@media (max-width: 360px) {
  .sn-brand-text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav *,
  .sn-drawer,
  .sn-backdrop,
  .sn-menu {
    transition: none !important;
    animation: none !important;
  }
}
