:root {
  --bg: #07070f;
  --bg-2: #0b0b18;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0ff;
  --muted: #a0a3bd;
  --muted-2: #747795;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --accent-3: #f472b6;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #fb7185;
  --radius: 18px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(124, 58, 237, 0.18), transparent 60%),
    radial-gradient(900px 600px at 100% 20%, rgba(34, 211, 238, 0.08), transparent 55%),
    radial-gradient(900px 700px at 0% 80%, rgba(244, 114, 182, 0.06), transparent 60%),
    linear-gradient(180deg, #07070f 0%, #080812 50%, #06060d 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

::selection {
  background: rgba(139, 92, 246, 0.35);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #080810;
}

::-webkit-scrollbar-thumb {
  background: #262640;
  border-radius: 999px;
  border: 2px solid #080810;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a5c;
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------------ background */

.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.32;
  will-change: transform;
  animation: drift 22s ease-in-out infinite alternate;
}

.orb-1 {
  top: -260px;
  left: -160px;
  background: #7c3aed;
}

.orb-2 {
  top: 8%;
  right: -260px;
  background: #0891b2;
  opacity: 0.22;
  animation-delay: -7s;
}

.orb-3 {
  bottom: -320px;
  left: 32%;
  background: #db2777;
  opacity: 0.16;
  animation-delay: -13s;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 78%);
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, 30px, 0) scale(1.06); }
  100% { transform: translate3d(-30px, 60px, 0) scale(0.96); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@keyframes pulse-danger {
  0% { box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(251, 113, 133, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 113, 133, 0); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 15, 0.72);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #6366f1 55%, var(--accent-2));
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.32);
}

.brand-text {
  font-size: 17px;
  white-space: nowrap;
}

.brand-sub {
  color: var(--muted);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link:hover {
  color: var(--text);
  background: var(--panel);
}

.nav-link.active {
  color: var(--text);
  background: var(--panel-strong);
}

.ext {
  color: var(--muted-2);
  font-size: 0.85em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.16s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6366f1 55%, var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.26);
}

.btn-primary:hover {
  box-shadow: 0 16px 38px rgba(99, 102, 241, 0.36);
}

.btn-ghost {
  background: var(--panel);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--panel-strong);
  border-color: var(--border-strong);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel);
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 3px auto;
  border-radius: 2px;
  background: var(--text);
}

/* ------------------------------------------------------------------ hero */

.status-hero {
  position: relative;
  padding: 82px 0 54px;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.grad {
  background: linear-gradient(120deg, #c4b5fd, #8b5cf6 40%, #22d3ee 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.overall {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.overall-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted-2);
}

.overall-ok {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.09);
  color: #a7f3d0;
}

.overall-ok .overall-pulse {
  background: var(--ok);
  animation: pulse 2s ease-out infinite;
}

.overall-warn {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.09);
  color: #fde68a;
}

.overall-warn .overall-pulse {
  background: var(--warn);
}

.overall-fail {
  border-color: rgba(251, 113, 133, 0.34);
  background: rgba(251, 113, 133, 0.1);
  color: #fecdd3;
}

.overall-fail .overall-pulse {
  background: var(--danger);
  animation: pulse-danger 1.6s ease-out infinite;
}

.overall-na .overall-pulse {
  background: var(--muted-2);
}

.hero-sub {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
  margin-top: 28px;
}

.hub-hero {
  padding-bottom: 26px;
}

/* ------------------------------------------------------------------ dots */

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted-2);
  flex: none;
}

.dot.ok {
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
}

.dot.fail {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12);
}

.dot.warn {
  background: var(--warn);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.12);
}

.dot.na {
  background: var(--muted-2);
}

/* ------------------------------------------------------------------ sections */

.section {
  padding: 34px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0 0 5px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend .dot {
  width: 7px;
  height: 7px;
  box-shadow: none;
}

/* ------------------------------------------------------------------ service cards */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.svc-card {
  position: relative;
  padding: 19px 19px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  animation: fade-up 0.5s ease both;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.svc-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.svc-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.svc-top h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.svc-state {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.svc-state.ok { color: var(--ok); }
.svc-state.fail { color: var(--danger); }
.svc-state.na { color: var(--muted-2); }

.svc-desc {
  min-height: 38px;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.svc-stats {
  display: flex;
  gap: 18px;
  margin-bottom: 13px;
}

.svc-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.svc-stats span {
  color: var(--muted-2);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.svc-stats strong {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.svc-bars {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 26px;
}

.bar {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
}

.bar.ok { background: rgba(52, 211, 153, 0.55); }
.bar.fail { background: rgba(251, 113, 133, 0.8); }
.bar.na { background: rgba(255, 255, 255, 0.07); }

/* ------------------------------------------------------------------ incidents */

.incident-list {
  display: grid;
  gap: 12px;
}

.incident {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  border-radius: 14px;
  background: var(--panel);
}

.incident.resolved { border-left-color: rgba(52, 211, 153, 0.65); }
.incident.monitoring { border-left-color: rgba(251, 191, 36, 0.7); }
.incident.investigating,
.incident.identified { border-left-color: rgba(251, 113, 133, 0.75); }

.inc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.inc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge.resolved {
  border-color: rgba(52, 211, 153, 0.26);
  background: rgba(52, 211, 153, 0.08);
  color: #a7f3d0;
}

.badge.monitoring {
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
}

.badge.investigating,
.badge.identified {
  border-color: rgba(251, 113, 133, 0.28);
  background: rgba(251, 113, 133, 0.08);
  color: #fecdd3;
}

.badge.sev-info { color: var(--muted); }
.badge.sev-minor { color: #bae6fd; }
.badge.sev-major { color: #fde68a; }
.badge.sev-critical { color: #fecdd3; }

.inc-head time {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11.5px;
  white-space: nowrap;
}

.incident h3 {
  margin: 0 0 7px;
  font-size: 17px;
  letter-spacing: -0.015em;
}

.inc-summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.inc-body {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.inc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.empty-state {
  padding: 46px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.1);
  color: var(--ok);
  font-size: 22px;
  font-weight: 700;
}

.empty-state h1,
.empty-state h3 {
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--muted);
}

/* ------------------------------------------------------------------ api panel */

.api-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(600px 260px at 0% 0%, rgba(139, 92, 246, 0.14), transparent 65%),
    var(--panel);
}

.api-panel h2 {
  margin: 0 0 9px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.api-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.api-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.code {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.35);
  color: #c4b5fd;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
}

/* ------------------------------------------------------------------ hub index */

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hub-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.hub-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.hub-card.soon {
  opacity: 0.62;
}

.hub-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: rgba(139, 92, 246, 0.14);
  color: #c4b5fd;
  font-size: 21px;
}

.hub-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.hub-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.hub-link {
  margin-top: auto;
  padding-top: 20px;
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 700;
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  margin-top: 56px;
  padding: 46px 0 26px;
  border-top: 1px solid var(--border);
  background: rgba(5, 5, 12, 0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.7fr));
  gap: 34px;
}

.footer-brand p {
  max-width: 320px;
  margin: 14px 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.footer-col h4 {
  margin: 2px 0 13px;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 13px;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 12px;
}

.footer-bottom a {
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--text);
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 980px) {
  .svc-grid,
  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .api-panel {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 62px;
    gap: 12px;
  }

  .nav {
    position: absolute;
    top: 62px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(9, 9, 20, 0.98);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav-link {
    padding: 11px 13px;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .status-hero {
    padding: 56px 0 34px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .svc-grid,
  .hub-grid {
    grid-template-columns: 1fr;
  }

  .inc-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .api-panel {
    padding: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  .brand-text {
    font-size: 15px;
  }

  .brand-sub {
    display: none;
  }

  .header-actions .btn-primary {
    padding: 0 12px;
    font-size: 13px;
  }

  .overall {
    font-size: 15px;
    padding: 0 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ------------------------------------------------------------------ stickers */

.btn-sm {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 9px;
  font-size: 12.5px;
}

.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.stk-hero .hero-sub {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.stk-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 26px 0 8px;
}

.stk-stats > div {
  min-width: 130px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}

.stk-stats strong {
  display: block;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.stk-stats span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}

.stk-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 230px;
  min-width: 200px;
  padding: 0 12px;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}

.stk-search span {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stk-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.stk-search input::placeholder {
  color: var(--muted-2);
}

.stk-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stk-filter {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.stk-filter:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.stk-filter.active {
  border-color: rgba(139, 92, 246, 0.55);
  background: rgba(139, 92, 246, 0.16);
  color: #ede9fe;
}

.stk-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}

.stk-count strong {
  color: var(--text);
}

.stk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 18px;
}

.stk-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.stk-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.stk-cover-link {
  display: block;
}

.stk-cover-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: var(--panel);
  background:
    radial-gradient(120% 120% at 30% 0%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 62%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.01));
}

.stk-cover,
.stk-cover-wrap > lottie-player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12%;
}

.stk-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 64px;
  line-height: 1;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.stk-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(7, 7, 15, 0.72);
  color: #e5e7ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.stk-badge-anim {
  left: auto;
  right: 10px;
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

.stk-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding: 14px 16px 16px;
}

.stk-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stk-body h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.stk-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.stk-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.stk-note {
  margin: 22px 0 0;
  color: var(--muted-2);
  font-size: 12.5px;
  text-align: center;
}

.stk-note code {
  color: #c4b5fd;
  font-family: var(--mono);
  font-size: 12px;
}

.stk-pack-hero {
  padding-top: 54px;
}

.stk-pack-layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  align-items: center;
  gap: 34px;
}

.stk-pack-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 10%;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  background:
    radial-gradient(120% 120% at 30% 0%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 62%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.01));
  box-shadow: var(--shadow);
}

.stk-pack-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stk-pack-info h1 {
  margin: 10px 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.stk-back {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.stk-back:hover {
  color: var(--text);
}

.stk-pack-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}

.stk-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
}

.stk-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 12%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
}

.stk-tile-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stk-tile-empty {
  color: var(--muted-2);
  font-size: 12px;
  text-align: center;
}

/* ------------------------------------------------------------------ releases */

.rel-hero .hero-sub {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.rel-hero-latest {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 10px;
}

.rel-hero-latest > div {
  min-width: 148px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}

.rel-hero-latest span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rel-hero-latest strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.rel-plat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rel-plat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  background:
    radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--rel-accent) 18%, transparent), transparent 60%),
    var(--panel);
}

.rel-plat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.rel-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--rel-accent) 45%, transparent);
  border-radius: 11px;
  background: color-mix(in srgb, var(--rel-accent) 16%, transparent);
  color: var(--rel-accent);
  font-size: 15px;
  font-weight: 800;
}

.rel-plat-state {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rel-plat-state.is-ready {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.12);
  color: #a7f3d0;
}

.rel-plat h3 {
  margin: 4px 0 0;
  font-size: 19px;
}

.rel-plat p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.rel-plat-note {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 12px;
}

.rel-plat-link {
  margin-top: 14px;
  color: var(--rel-accent);
  font-size: 13px;
  font-weight: 600;
}

.rel-plat-link.is-muted {
  color: var(--muted-2);
  font-weight: 500;
}

.rel-updated {
  color: var(--muted-2);
  font-size: 12.5px;
}

.rel-list {
  display: grid;
  gap: 18px;
}

.rel-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.rel-card:hover {
  border-color: var(--border-strong);
  background: var(--panel-strong);
}

.rel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.rel-platform {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rel-platform strong {
  display: block;
  font-size: 16px;
}

.rel-platform span:not(.rel-mark) {
  display: block;
  color: var(--muted-2);
  font-size: 12px;
}

.rel-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rel-version {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
}

.rel-channel-stable {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.1);
  color: #a7f3d0;
}

.rel-channel-beta {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.1);
  color: #fde68a;
}

.rel-channel-nightly {
  border-color: rgba(244, 114, 182, 0.4);
  background: rgba(244, 114, 182, 0.1);
  color: #fbcfe8;
}

.rel-notes {
  padding: 14px 0 4px;
  color: var(--muted);
  font-size: 14px;
}

.rel-notes p {
  margin: 0 0 10px;
}

.rel-notes p:last-child {
  margin-bottom: 0;
}

.rel-notes ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

.rel-notes li {
  margin-bottom: 4px;
}

.rel-notes a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rel-notes code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--mono);
  font-size: 12.5px;
}

.rel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 12px 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.rel-meta b {
  display: block;
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rel-sha {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
}

.rel-sha span {
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rel-sha code {
  font-family: var(--mono);
  font-size: 12.5px;
}

button.rel-sha:hover code {
  color: var(--accent-2);
}

.rel-sha-empty {
  color: var(--muted-2);
  font-size: 12.5px;
}

.rel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rel-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rel-step {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
}

.rel-step > span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.rel-step h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.rel-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .stk-pack-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .stk-pack-cover {
    max-width: 320px;
  }

  .rel-plat-grid,
  .rel-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .stk-count {
    margin-left: 0;
  }

  .stk-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .stk-body {
    padding: 12px;
  }

  .stk-body h3 {
    font-size: 15px;
  }

  .rel-head {
    flex-direction: column;
  }

  .rel-hero-latest > div {
    min-width: 0;
    flex: 1 1 140px;
  }

  .rel-card {
    padding: 16px;
  }
}

