:root {
  --bg: #0b1020;
  --bg-deep: #080c18;
  --surface: #121a33;
  --card: #161f3d;
  --card-hover: #1b2547;
  --text: #e8ecf6;
  --text-strong: #f8f9ff;
  --muted: #94a0c0;
  --muted-strong: #b7c0d8;
  --line: #26315c;
  --line-soft: rgba(103, 121, 181, 0.2);
  --brand: #7c9cff;
  --brand-bright: #9bb2ff;
  --brand-2: #b07cff;
  --green: #34d399;
  --amber: #f6b35a;
  --cyan: #56c8f5;
  --pink: #ed80b8;
  --danger: #fb7185;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
  --max-width: 1120px;
  --radius-card: 16px;
  --radius-control: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: #39466f var(--bg);
}

body {
  min-width: 300px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 82% -12%, rgba(55, 73, 157, 0.48) 0%, transparent 62%),
    radial-gradient(850px 480px at -10% 0%, rgba(74, 43, 122, 0.5) 0%, transparent 58%),
    var(--bg);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  border: 0;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--bg);
  background: var(--text-strong);
  border-radius: 8px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(124, 156, 255, 0.8);
  outline-offset: 3px;
}

.hero {
  position: relative;
  min-height: 440px;
  padding: 0 20px 44px;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  content: "";
}

.top-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--max-width));
  min-height: 64px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 720;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--brand-bright);
  background: rgba(124, 156, 255, 0.11);
  border: 1px solid rgba(124, 156, 255, 0.32);
  border-radius: 9px;
}

.brand-mark svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms ease;
}

.nav-links a:hover {
  color: var(--text-strong);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 850px);
  margin: 28px auto 0;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  margin-bottom: 16px;
  color: var(--brand-bright);
  background: rgba(124, 156, 255, 0.11);
  border: 1px solid rgba(124, 156, 255, 0.3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(40px, 6.3vw, 64px);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h1 span {
  color: transparent;
  background: linear-gradient(120deg, #f7f8ff 8%, var(--brand) 55%, var(--brand-2) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  max-width: 790px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.65;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 32px;
  justify-content: center;
  padding: 0;
  margin: 24px 0 0;
}

.stat {
  display: flex;
  flex-direction: column;
  min-width: 82px;
  text-align: center;
}

.stat dd {
  order: -1;
  margin: 0;
  color: var(--text-strong);
  font-size: 27px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.stat dt {
  color: var(--muted);
  font-size: 12px;
}

.catalog-pulse {
  display: grid;
  grid-template-columns: max-content minmax(180px, 1fr) max-content;
  gap: 12px;
  align-items: center;
  max-width: 620px;
  margin: 22px auto 0;
}

.pulse-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.pulse-track {
  display: flex;
  gap: 3px;
  height: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.pulse-segment {
  min-width: 4px;
  flex-basis: var(--share, 10%);
  background: var(--segment, var(--brand));
  border-radius: 999px;
  box-shadow: 0 0 15px color-mix(in srgb, var(--segment, var(--brand)) 55%, transparent);
}

main {
  min-height: 60vh;
}

.controls {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 20px;
  background: rgba(11, 16, 32, 0.88);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.controls-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.search-wrap {
  position: relative;
}

.search-wrap > svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 19px;
  height: 19px;
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 68px 0 43px;
  color: var(--text);
  caret-color: var(--brand-bright);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  outline: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.search-wrap input::placeholder {
  color: #7885a8;
  opacity: 1;
}

.search-wrap input:hover {
  background: var(--card-hover);
}

.search-wrap input:focus {
  background: var(--card-hover);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(124, 156, 255, 0.16);
}

.search-shortcut {
  position: absolute;
  top: 50%;
  right: 12px;
  padding: 2px 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.5;
  transform: translateY(-50%);
  pointer-events: none;
}

.filter-toggle {
  display: none;
  gap: 7px;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 14px;
  color: var(--muted-strong);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.filter-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.filter-count {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  color: var(--bg);
  background: var(--brand);
  border-radius: 999px;
  font-size: 10px;
}

.kind-chips {
  display: flex;
  grid-column: 1 / -1;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.kind-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  padding: 7px 11px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.35;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.chip span {
  margin-left: 4px;
  color: inherit;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  opacity: 0.72;
}

.chip:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-soft);
}

.chip.is-active {
  color: #0a1020;
  background: var(--brand);
  border-color: var(--brand);
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  grid-column: 1 / -1;
  gap: 10px;
  align-items: end;
  max-height: 0;
  margin-top: -12px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    max-height 220ms ease,
    margin-top 220ms ease,
    opacity 160ms ease;
}

.filter-panel.is-open {
  max-height: 180px;
  margin-top: 2px;
  overflow: visible;
  opacity: 1;
  pointer-events: auto;
}

.field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.field > span {
  display: flex;
  gap: 6px;
  align-items: baseline;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.field small {
  color: var(--green);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.field select {
  width: 100%;
  height: 39px;
  padding: 0 31px 0 10px;
  overflow: hidden;
  color: var(--muted-strong);
  text-overflow: ellipsis;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  font-size: 12px;
  outline: none;
}

.field select:hover:not(:disabled),
.field select:focus {
  color: var(--text);
  border-color: var(--brand);
}

.field select:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.check-field {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 39px;
  padding: 6px 9px;
  color: var(--muted-strong);
  background: rgba(18, 26, 51, 0.72);
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  font-size: 11px;
  line-height: 1.25;
}

.check-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.check-control {
  position: relative;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  border: 1px solid #4a5884;
  border-radius: 5px;
  transition:
    background 150ms ease,
    border-color 150ms ease;
}

.check-control::after {
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  content: "";
  opacity: 0;
  transform: rotate(45deg) scale(0.8);
}

.check-field input:checked + .check-control {
  background: var(--brand);
  border-color: var(--brand);
}

.check-field input:checked + .check-control::after {
  opacity: 1;
}

.check-field input:focus-visible + .check-control {
  outline: 3px solid rgba(124, 156, 255, 0.45);
  outline-offset: 2px;
}

.check-field small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.clear-filters {
  height: 39px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.clear-filters:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line);
}

.catalog-wrap {
  width: min(100%, calc(var(--max-width) + 40px));
  padding: 0 20px 86px;
  margin: 0 auto;
}

.results-heading {
  display: flex;
  gap: 28px;
  align-items: end;
  justify-content: space-between;
  padding: 40px 0 17px;
}

.section-kicker {
  margin: 0 0 5px;
  color: var(--brand-bright);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.results-heading h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 23px;
  letter-spacing: -0.025em;
}

.results-copy {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.results-copy strong {
  color: var(--text);
  font-weight: 700;
}

.metadata-note {
  display: flex;
  gap: 7px;
  align-items: center;
  padding-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.1);
}

.status-dot.is-loading {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(246, 179, 90, 0.1);
  animation: status-pulse 1.4s ease-in-out infinite;
}

.status-dot.is-muted {
  background: var(--muted);
  box-shadow: 0 0 0 4px rgba(148, 160, 192, 0.08);
}

@keyframes status-pulse {
  50% {
    opacity: 0.45;
  }
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 0;
  margin: -3px 0 15px;
}

.active-filters:empty {
  display: none;
}

.active-filter {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px 4px 10px;
  color: var(--muted-strong);
  background: rgba(124, 156, 255, 0.08);
  border: 1px solid rgba(124, 156, 255, 0.22);
  border-radius: 999px;
  font-size: 10px;
}

.active-filter button {
  display: grid;
  width: 17px;
  height: 17px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}

.active-filter button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

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

.extension-card {
  position: relative;
  display: flex;
  min-height: 278px;
  flex-direction: column;
  padding: 17px;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(27, 37, 71, 0.72), rgba(22, 31, 61, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.extension-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--kind-color, var(--brand)), transparent 75%);
  content: "";
  opacity: 0.72;
}

.card-link {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
}

.card-link:focus-visible {
  outline-offset: -4px;
}

.extension-card > :not(.card-link) {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.extension-card a:not(.card-link),
.extension-card button {
  pointer-events: auto;
}

.extension-card:hover {
  background: linear-gradient(150deg, rgba(32, 44, 83, 0.9), rgba(25, 35, 68, 1));
  border-color: color-mix(in srgb, var(--kind-color, var(--brand)) 65%, var(--line));
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.extension-card[data-kind="plugin"] {
  --kind-color: var(--brand-2);
}

.extension-card[data-kind="mcp-server"],
.extension-card[data-kind="mcp-tooling"] {
  --kind-color: var(--cyan);
}

.extension-card[data-kind="skill"],
.extension-card[data-kind="command"],
.extension-card[data-kind="hook"] {
  --kind-color: var(--green);
}

.extension-card[data-kind="agent"],
.extension-card[data-kind="workflow"] {
  --kind-color: var(--amber);
}

.extension-card[data-kind="tool"],
.extension-card[data-kind="interface"],
.extension-card[data-kind="monitoring"] {
  --kind-color: var(--pink);
}

.card-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 28px;
  gap: 11px;
  align-items: center;
}

.repo-avatar {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  overflow: hidden;
  place-items: center;
  color: hsl(var(--avatar-hue, 220) 90% 88%);
  background:
    linear-gradient(
      145deg,
      hsl(var(--avatar-hue, 220) 55% 35%),
      hsl(calc(var(--avatar-hue, 220) + 38) 42% 20%)
    );
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.repo-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface);
  opacity: 0;
  transition: opacity 180ms ease;
}

.repo-avatar img.is-loaded {
  opacity: 1;
}

.card-title-wrap {
  min-width: 0;
}

.card-title {
  display: block;
  overflow: hidden;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-title:hover {
  color: var(--brand-bright);
}

.repo-name {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.external-link {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--muted);
  border-radius: 8px;
  text-decoration: none;
  transition:
    color 150ms ease,
    background 150ms ease;
}

.extension-card:hover .external-link {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.external-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.card-description {
  display: -webkit-box;
  min-height: 61px;
  margin: 15px 0 13px;
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.badge-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.entry-badge {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 3px 7px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.03em;
}

.entry-badge.kind {
  color: var(--kind-color, var(--brand-bright));
  background: color-mix(in srgb, var(--kind-color, var(--brand)) 10%, transparent);
  border-color: color-mix(in srgb, var(--kind-color, var(--brand)) 19%, transparent);
}

.entry-badge.tier-official {
  color: var(--brand-bright);
  background: rgba(124, 156, 255, 0.1);
  border-color: rgba(124, 156, 255, 0.17);
}

.entry-badge.tier-popular {
  color: var(--amber);
  background: rgba(246, 179, 90, 0.09);
  border-color: rgba(246, 179, 90, 0.16);
}

.entry-badge.tier-curated {
  color: #c4a6ff;
  background: rgba(176, 124, 255, 0.09);
  border-color: rgba(176, 124, 255, 0.17);
}

.entry-badge.tier-community {
  color: #9eabc9;
}

.entry-badge.verified {
  color: var(--green);
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.14);
}

.entry-badge.compatibility {
  color: var(--muted-strong);
  background: rgba(148, 160, 192, 0.07);
  border-color: rgba(148, 160, 192, 0.16);
}

.entry-badge.compatibility-codex {
  color: #74e5b8;
  background: rgba(52, 211, 153, 0.075);
  border-color: rgba(52, 211, 153, 0.17);
}

.entry-badge.compatibility-claude-code {
  color: #f2b58d;
  background: rgba(237, 128, 184, 0.07);
  border-color: rgba(242, 181, 141, 0.17);
}

.entry-badge.archived {
  color: var(--danger);
  background: rgba(251, 113, 133, 0.08);
  border-color: rgba(251, 113, 133, 0.14);
}

.tag-row {
  min-height: 21px;
  margin-top: 9px;
}

.topic-tag {
  max-width: 125px;
  padding: 2px 0;
  overflow: hidden;
  color: #7f8cad;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-tag + .topic-tag::before {
  margin-right: 6px;
  color: #465274;
  content: "·";
}

.card-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 31px;
  padding-top: 13px;
  margin-top: auto;
  border-top: 1px solid rgba(103, 121, 181, 0.16);
}

.repo-signal {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.repo-signal svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.repo-signal.has-data {
  color: var(--amber);
}

.license-signal {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-install {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  margin-left: auto;
  color: var(--brand-bright);
  background: rgba(124, 156, 255, 0.08);
  border: 1px solid rgba(124, 156, 255, 0.19);
  border-radius: 7px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 720;
  white-space: nowrap;
}

.copy-install:hover {
  color: var(--text-strong);
  background: rgba(124, 156, 255, 0.14);
  border-color: rgba(124, 156, 255, 0.34);
}

.copy-install svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.skeleton-card {
  min-height: 278px;
  background:
    linear-gradient(
      100deg,
      rgba(22, 31, 61, 0.7) 30%,
      rgba(37, 49, 91, 0.8) 45%,
      rgba(22, 31, 61, 0.7) 60%
    );
  background-size: 240% 100%;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  animation: skeleton-shift 1.6s ease-in-out infinite;
}

@keyframes skeleton-shift {
  to {
    background-position-x: -240%;
  }
}

.empty-state {
  padding: 70px 20px;
  text-align: center;
}

.empty-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  place-items: center;
  color: var(--brand-bright);
  background: rgba(124, 156, 255, 0.08);
  border: 1px solid rgba(124, 156, 255, 0.18);
  border-radius: 15px;
  font-size: 26px;
}

.empty-state h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 20px;
}

.empty-state p {
  max-width: 470px;
  margin: 8px auto 20px;
  color: var(--muted);
  font-size: 13px;
}

.empty-state button,
.load-more {
  min-height: 40px;
  padding: 0 15px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.empty-state button:hover,
.load-more:hover {
  color: var(--text-strong);
  background: var(--card-hover);
  border-color: var(--brand);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 28px;
}

.load-more {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.site-footer {
  padding: 38px 20px 28px;
  color: var(--muted);
  background: rgba(8, 12, 24, 0.62);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  gap: 60px;
  align-items: start;
  justify-content: space-between;
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.footer-inner > div {
  max-width: 590px;
}

.footer-title {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 730;
}

.footer-inner p:not(.footer-title) {
  margin: 0;
  font-size: 11px;
  line-height: 1.65;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px 20px;
}

.footer-links a {
  color: var(--muted-strong);
  font-size: 11px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-meta {
  width: min(100%, var(--max-width));
  padding-top: 20px;
  margin: 25px auto 0;
  border-top: 1px solid rgba(103, 121, 181, 0.15);
  font-size: 10px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 36px));
  padding: 11px 14px;
  color: var(--text-strong);
  background: #202b50;
  border: 1px solid #415184;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.noscript {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 100;
  padding: 14px 18px;
  color: #2b1900;
  background: #fde7b0;
  border: 1px solid #f6b35a;
  border-radius: 10px;
  font-size: 13px;
}

.noscript a {
  font-weight: 700;
}

@media (min-width: 881px) {
  .filter-panel {
    max-height: 0;
  }

  .filter-panel.is-open {
    max-height: 160px;
  }
}

@media (max-width: 1100px) {
  .filter-panel {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
  }

  .clear-filters {
    grid-column: auto;
  }
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
  }

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

  .filter-panel {
    grid-template-columns: repeat(4, minmax(125px, 1fr));
  }

  .check-field {
    grid-column: span 2;
  }

  .clear-filters {
    grid-column: auto;
  }

  .filter-panel.is-open {
    max-height: 165px;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 0 16px 35px;
  }

  .top-nav {
    min-height: 58px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 11px;
  }

  .hero-inner {
    margin-top: 25px;
  }

  .eyebrow {
    min-height: 31px;
    margin-bottom: 17px;
    font-size: 10px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .lede {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.58;
  }

  .lede-detail {
    display: none;
  }

  .stats {
    gap: 15px 8px;
    justify-content: space-around;
    margin-top: 20px;
  }

  .stat {
    min-width: 29%;
  }

  .stat:nth-child(2),
  .stat:nth-child(5) {
    display: none;
  }

  .stat dd {
    font-size: 23px;
  }

  .catalog-pulse {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 18px;
  }

  .pulse-label:first-child {
    display: none;
  }

  .controls {
    padding: 10px 12px;
  }

  .controls-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
  }

  .filter-toggle {
    display: inline-flex;
  }

  .search-wrap input {
    height: 44px;
    padding-right: 14px;
    font-size: 13px;
  }

  .search-shortcut {
    display: none;
  }

  .filter-toggle {
    height: 44px;
  }

  .kind-chips {
    margin-right: -12px;
    margin-left: -12px;
    padding: 0 12px;
  }

  .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 0;
    margin-top: -9px;
  }

  .filter-panel.is-open {
    max-height: 360px;
    padding-top: 4px;
    margin-top: 0;
  }

  .check-field {
    grid-column: span 1;
  }

  .clear-filters {
    grid-column: 1 / -1;
  }

  .catalog-wrap {
    padding: 0 14px 65px;
  }

  .results-heading {
    align-items: start;
    padding-top: 30px;
  }

  .metadata-note {
    max-width: 150px;
    padding-top: 20px;
  }

  .footer-inner {
    gap: 30px;
    flex-direction: column;
  }
}

@media (max-width: 580px) {
  .nav-links a:nth-child(n + 2) {
    display: none;
  }

  .stat {
    min-width: 30%;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .extension-card,
  .skeleton-card {
    min-height: 262px;
  }

  .results-heading {
    gap: 15px;
    flex-direction: column;
  }

  .metadata-note {
    max-width: none;
    padding-top: 0;
    text-align: left;
  }

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

  .check-field,
  .clear-filters {
    grid-column: auto;
  }

  .filter-panel.is-open {
    max-height: 570px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 400px) {
  .filter-toggle {
    padding: 0 11px;
  }

  .filter-toggle svg {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@supports not (backdrop-filter: blur(1px)) {
  .controls {
    background: rgba(11, 16, 32, 0.98);
  }
}
