/* ==========================================================================
   Skilled — Minimalist Dark Design System matching reference UI
   ========================================================================== */

:root {
  --bg: #090909;
  --surface: #151515;
  --surface-hover: #1C1C1E;
  --card-bg: #151515;
  --search-bg: #151515;
  --pill-bg: #151515;
  --border: #2A2A2D;
  --border-hover: #3E3E42;
  --border-search: #2A2A2D;
  --badge-bg: #1A1A1D;
  --text-white: #F5F5F5;
  --text-gray: #A1A1AA;
  --text-muted: #71717A;
  --text-pill-inactive: #A1A1AA;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.16s ease;
}

body.light-theme,
body[data-theme="light"] {
  --bg: #F8F8FA;
  --surface: #FFFFFF;
  --surface-hover: #F2F2F5;
  --card-bg: #FFFFFF;
  --search-bg: #FFFFFF;
  --pill-bg: #FFFFFF;
  --border: #E5E5EA;
  --border-hover: #D1D1D6;
  --border-search: #E5E5EA;
  --badge-bg: #F2F2F7;
  --text-white: #000000;
  --text-gray: #636366;
  --text-muted: #8E8E93;
  --text-pill-inactive: #48484A;
}

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

button, input, select, textarea {
  font-family: inherit;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  color: var(--text-white);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  text-wrap: pretty;
}

/* Accessible focus outlines for interactive elements */
:focus-visible {
  outline: 2px solid #52525B;
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
  outline: none;
}

/* Headings typographic balance */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/* Tabular figures for alignment and no layout shifts */
.tabular-nums,
.stat-value,
.collection-count-num,
.topic-pill-count,
.step-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

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

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

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

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  padding: 24px 0 16px;
  background-color: transparent;
  position: relative;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text-white);
  text-decoration: none;
  border-radius: 6px;
  padding: 4px 6px;
  margin: -4px -6px;
  transition: opacity 0.16s ease;
}

.brand:hover {
  opacity: 0.85;
}

.brand-name {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.025em;
  line-height: 1;
}

/* Header Search Capsule (shown on dedicated skill page & browse view) */
.header-search-wrapper {
  flex: 1;
  max-width: 480px;
  margin: 0 32px;
  display: none;
}

.header-search-capsule {
  display: flex;
  align-items: center;
  background-color: #121214;
  border: 1px solid #27272A;
  border-radius: 9999px;
  padding: 8px 18px;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  transition: var(--transition);
}

.header-search-capsule:focus-within {
  border-color: #3F3F46;
  background-color: #161618;
}

.header-search-capsule .search-icon {
  color: #71717A;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-search-input {
  background: transparent;
  border: none;
  color: var(--text-white);
  font-family: inherit;
  font-size: 0.88rem;
  width: 100%;
  outline: none;
}

.header-search-input::placeholder {
  color: #71717A;
}

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

.nav-item-active {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.nav-link {
  background: none;
  border: none;
  color: var(--text-gray);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.04);
}

.nav-link:active {
  transform: scale(0.96);
}

.nav-underline {
  position: absolute;
  bottom: -8px;
  width: 34px;
  height: 2px;
  background-color: var(--text-white);
  border-radius: 2px;
  display: none;
}

.nav-link.active ~ .nav-underline {
  display: block;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.theme-toggle:hover {
  color: var(--text-white);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 48px 0 24px;
  text-align: center;
}

.hero-section.is-browse {
  padding: 8px 0 12px;
}

.hero-section.is-browse .hero-headline,
.hero-section.is-browse .search-capsule-wrapper {
  display: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-headline {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: var(--text-white);
  margin-bottom: 32px;
  max-width: 780px;
}

/* Capsule Search Bar */
.search-capsule-wrapper {
  width: 100%;
  max-width: 620px;
  margin-bottom: 22px;
}

.search-capsule {
  display: flex;
  align-items: center;
  background-color: var(--search-bg);
  border: 1px solid var(--border-search);
  border-radius: 9999px;
  padding: 6px 8px 6px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.search-capsule:focus-within {
  border-color: #3E3E42;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.search-icon {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-white);
  font-family: inherit;
  font-size: 0.95rem;
}

.search-input::placeholder {
  color: #52525B;
}

.clear-search-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.clear-search-btn:hover {
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.06);
}

.clear-search-btn:active {
  transform: scale(0.96);
}

.search-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.search-arrow-btn:hover {
  color: var(--text-white);
  background-color: #222225;
}

.search-arrow-btn:active {
  transform: scale(0.96);
}

/* Category Filter Pills */
.category-pills-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 720px;
}

.pill-btn {
  background-color: var(--pill-bg);
  border: 1px solid var(--border);
  color: var(--text-pill-inactive);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.pill-btn:hover {
  color: var(--text-white);
  border-color: var(--border-hover);
}

.pill-btn:active {
  transform: scale(0.96);
}

.pill-btn.active {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: #09090B;
  font-weight: 600;
}

.pill-btn.active:hover {
  background-color: #F0F0F0;
  color: #09090B;
}

/* Benchmark evidence: a long statement inside the key-value list.
   Stacked under its label, flush left, same type scale and colors as the
   sibling rows so it reads as part of the list, not a separate widget.
   High-specificity selectors so no later/other rule can center or right-align it. */
.detail-key-value .detail-evidence-benchmark {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  text-align: left;
}

.detail-key-value .detail-evidence-benchmark dt {
  max-width: 100%;
  color: #71717A;
  font-size: 0.84rem;
  line-height: 1.4;
}

.detail-key-value .detail-evidence-benchmark dd,
.detail-key-value .detail-evidence-benchmark dd.evidence-text {
  margin: 0;
  width: 100%;
  max-width: 100%;
  text-align: left;
  font-size: 0.84rem;
  font-weight: 500;
  color: #E4E4E7;
  line-height: 1.5;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* Skill Subcategories & Topics Filter */
.skill-topics-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 860px;
  margin-top: 14px;
}

.catalog-topics-row {
  justify-content: flex-start;
  margin-top: 0;
  margin-bottom: 24px;
}

.topic-pill {
  background-color: #151515;
  border: 1px solid #2A2A2D;
  color: #A1A1AA;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.topic-pill:hover {
  color: #F5F5F5;
  border-color: #3F3F46;
  background-color: #1C1C1E;
}

.topic-pill:active {
  transform: scale(0.96);
}

.topic-pill.active {
  background-color: #27272A;
  border-color: #71717A;
  color: #FFFFFF;
  font-weight: 600;
}

/* ==========================================================================
   Sections & Grids
   ========================================================================== */
.section {
  padding: 24px 0 44px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.section-title {
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

.view-all-btn {
  background: none;
  border: none;
  color: var(--text-gray);
  font-family: inherit;
  font-size: 0.90rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: var(--transition);
  flex-shrink: 0;
}

.view-all-btn:hover {
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.04);
}

.view-all-btn:hover span {
  transform: translateX(2px);
}

.view-all-btn span {
  display: inline-block;
  transition: transform 0.16s ease;
}

.view-all-btn:active {
  transform: scale(0.96);
}

/* Fluid Responsive Grids (Senior Dev tuned proportions) */
.popular-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

@media (max-width: 1200px) {
  .popular-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 540px) {
  .popular-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Universal Card Design */
.popular-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 154px;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  text-align: left;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.popular-card:hover {
  background-color: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.popular-card:active {
  transform: scale(0.99) translateY(0);
}

.popular-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.card-brand-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.card-brand-icon svg {
  width: 34px;
  height: 34px;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.popular-card-meta {
  flex: 1;
  min-width: 0;
}

.popular-card-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.25;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popular-card-desc {
  font-size: 0.82rem;
  color: var(--text-gray);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Modern Interactive Badges & Card Footer
   ========================================================================== */
.popular-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  width: 100%;
}

.card-badges-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

/* Category Badge: pill with subtle border and elevation */
.category-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #D4D4D8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #27272A;
  padding: 3px 8px;
  border-radius: 9999px;
  text-transform: capitalize;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.category-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #3F3F46;
  color: #FFFFFF;
}

.category-badge.skill {
  color: #E4E4E7;
  border-color: #3F3F46;
  background: #18181B;
}

/* Compatibility Badge: minimalist, subtle, neat status pill */
.compatibility-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 3px 8px;
  border-radius: 9999px;
  border: 1px solid #27272A;
  background: rgba(255, 255, 255, 0.03);
  color: #A1A1AA;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
  user-select: none;
}

.compat-indicator-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 5px;
  flex-shrink: 0;
  box-shadow: none !important;
}

/* Agent Certified / Verified: quiet sage/emerald dot, neutral pill */
.compatibility-verified {
  background: rgba(255, 255, 255, 0.03);
  border-color: #27272A;
  color: #D4D4D8;
}

.compatibility-verified .compat-indicator-dot {
  background: #10B981;
}

.compatibility-verified:hover {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.3);
  color: #F4F4F5;
}

/* Claimed: subdued zinc neutral dot and pill — no bleak yellow alarm */
.compatibility-source_claimed {
  background: rgba(255, 255, 255, 0.03);
  border-color: #27272A;
  color: #A1A1AA;
}

.compatibility-source_claimed .compat-indicator-dot {
  background: #71717A;
}

.compatibility-source_claimed:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #3F3F46;
  color: #E4E4E7;
}

/* Unknown: muted zinc accent */
.compatibility-unknown {
  background: rgba(255, 255, 255, 0.02);
  border-color: #222225;
  color: #71717A;
}

.compatibility-unknown .compat-indicator-dot {
  background: #52525B;
}

.compatibility-unknown:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: #2E2E32;
  color: #A1A1AA;
}

/* Platform Badges: pill tags with brand monochrome SVG icons */
.platform-badges {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  background: #18181A;
  border: 1px solid #27272A;
  color: #A1A1AA;
  text-transform: capitalize;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.platform-tag:hover {
  background: #202024;
  border-color: #3F3F46;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.platform-tag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  flex-shrink: 0;
}

/* Brand-specific micro accents on hover */
.platform-tag.platform-antigravity:hover,
.platform-tag.platform-gemini:hover {
  border-color: #3186FF;
  color: #FFFFFF;
}

.platform-tag.platform-claude:hover {
  border-color: #D97757;
  color: #E07A5F;
}

.platform-tag.platform-cursor:hover {
  border-color: #71717A;
  color: #FFFFFF;
}

.platform-tag.platform-universal:hover {
  border-color: #3B82F6;
  color: #93C5FD;
}

/* ==========================================================================
   Categories Bar (Exact match to uiux.png)
   ========================================================================== */
.categories-section {
  padding-top: 36px;
  padding-bottom: 48px;
  border-top: 1px solid #1C1C1E;
  margin-top: 16px;
}

.categories-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 12px;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 960px) {
  .categories-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .categories-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

.category-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  color: #D4D4D8;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  min-height: 40px;
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.category-item:hover {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.category-item:active {
  transform: scale(0.97);
}

.category-icon {
  color: currentColor;
  flex-shrink: 0;
  display: block;
}

.category-label {
  color: inherit;
}

/* ==========================================================================
   Catalog Results Header
   ========================================================================== */
.results-subtitle {
  font-size: 0.82rem;
  color: #71717A;
  margin-top: 3px;
}



/* Empty State */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 520px;
  margin: 30px auto;
}

.empty-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--surface-hover);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--text-gray);
}

.empty-state h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 6px;
}

.empty-state p {
  color: var(--text-gray);
  margin-bottom: 18px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.reset-btn {
  background-color: #FFFFFF;
  color: #09090B;
  border: none;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition);
}

.reset-btn:hover {
  background-color: #E4E4E7;
}

.reset-btn:active {
  transform: scale(0.96);
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background-color: #151515;
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.08);
}

.modal-close-btn:active {
  transform: scale(0.94);
}

.modal-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 8px;
  line-height: 1.25;
}

.modal-description {
  font-size: 0.90rem;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 20px;
}

.modal-section-title {
  font-size: 0.80rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.setup-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.setup-tab-btn {
  background-color: #18181A;
  border: 1px solid #2A2A2D;
  color: var(--text-gray);
  border-radius: 9999px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.setup-tab-btn:hover {
  color: var(--text-white);
  border-color: #38383C;
}

.setup-tab-btn:active {
  transform: scale(0.96);
}

.setup-tab-btn.active {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: #09090B;
  font-weight: 600;
}

.setup-tab-btn.active:hover {
  background-color: #F0F0F0;
  color: #09090B;
}

.install-no-command-note {
  margin-top: 10px;
  padding: 12px 14px;
  background-color: #121214;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--text-gray);
  font-size: 0.82rem;
  line-height: 1.5;
}

.code-block-wrapper {
  background-color: #09090B;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  position: relative;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  color: #E4E4E7;
  overflow-x: auto;
  margin-bottom: 16px;
}

.code-block-wrapper pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding-right: 58px;
}

.code-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #18181A;
  border: 1px solid #2A2A2D;
  color: var(--text-gray);
  font-family: var(--font-family);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.code-copy-btn:hover {
  background-color: #222225;
  color: var(--text-white);
  border-color: #38383C;
}

.code-copy-btn:active {
  transform: scale(0.95);
}

.modal-links-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.external-link {
  background-color: #18181A;
  border: 1px solid #2A2A2D;
  color: #F5F5F5;
  text-decoration: none;
  font-size: 0.80rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.external-link:hover {
  background-color: #222225;
  border-color: #38383C;
  color: var(--text-white);
}

/* About Modal */
.about-header {
  margin-bottom: 16px;
}

.about-header h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-white);
}

.about-text {
  font-size: 0.90rem;
  color: var(--text-gray);
  margin-bottom: 18px;
  line-height: 1.55;
}

.about-feature {
  margin-bottom: 12px;
  background-color: #18181A;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.about-feature h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 0.84rem;
  color: var(--text-gray);
  line-height: 1.45;
}


/* ==========================================================================
   Full Detail View (Exact alignment with media_1793618707297_3d7e2516.jpg)
   ========================================================================== */
.detail-page-container {
  padding-top: 16px;
  padding-bottom: 64px;
}

/* Breadcrumb */
.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-gray);
  margin-bottom: 24px;
}

.breadcrumb-item {
  color: var(--text-gray);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.breadcrumb-item:hover {
  color: var(--text-white);
}

.breadcrumb-home {
  color: var(--text-gray);
}

.breadcrumb-separator {
  color: #52525B;
  font-size: 0.95rem;
}

.breadcrumb-current {
  color: var(--text-white);
  font-weight: 500;
}

/* Detail Hero Card */
.detail-hero-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 24px;
  box-sizing: border-box;
  position: relative;
}

.detail-hero-left {
  flex-shrink: 0;
}

.detail-large-icon-box {
  width: 170px;
  height: 170px;
  background-color: #111112;
  border: 1px solid #222225;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-hero-body {
  flex: 1;
  min-width: 0;
}

.detail-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.2;
}

.detail-tagline {
  font-size: 0.96rem;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 18px;
  max-width: 680px;
}

.detail-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.detail-tag-pill {
  background-color: #18181A;
  border: 1px solid #28282B;
  color: #D4D4D8;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: capitalize;
}

/* Meta stats row */
.detail-meta-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #1E1E22;
}

.detail-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #71717A;
}

.detail-stat-item svg {
  color: #71717A;
  flex-shrink: 0;
}

.stat-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #71717A;
  line-height: 1.2;
}

.stat-value {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #E4E4E7;
  line-height: 1.2;
}

/* Actions Right */
.detail-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.btn-save-resource {
  background-color: #FFFFFF;
  border: 1px solid #FFFFFF;
  color: #09090B;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  white-space: nowrap;
  user-select: none;
}

.btn-save-resource:hover {
  background-color: #E4E4E7;
}

.btn-save-resource:active {
  transform: scale(0.96);
}

.btn-save-resource.saved {
  background-color: #27272A;
  border-color: #3F3F46;
  color: #FFFFFF;
}

.btn-save-resource.saved:hover {
  background-color: #323238;
}

.btn-view-github {
  background-color: #18181A;
  border: 1px solid #2A2A2D;
  color: #F5F5F5;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-view-github:hover {
  background-color: #222225;
  border-color: #38383C;
  color: #FFFFFF;
}

.btn-view-github:active {
  transform: scale(0.96);
}

/* 3-Column Middle Grid */
.detail-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.detail-info-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-sizing: border-box;
}

.detail-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 14px;
  line-height: 1.25;
}

.detail-card-text {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 12px;
}

.detail-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-bullet-list li {
  font-size: 0.84rem;
  color: #A1A1AA;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-bullet-list li::before {
  content: "•";
  color: #71717A;
  font-size: 1rem;
}

/* Supported Agents */
.detail-agents-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-agent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background-color: #18181A;
  border: 1px solid #222225;
  border-radius: 8px;
}

.detail-agent-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.detail-agent-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: #F5F5F5;
}

/* Key Value details */
.detail-key-value {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-kv-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.84rem;
  padding-bottom: 10px;
  border-bottom: 1px solid #1E1E22;
}

.detail-kv-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-kv-row dt {
  color: #71717A;
  flex-shrink: 0;
  max-width: 40%;
  line-height: 1.4;
}

.detail-kv-row dd {
  color: #E4E4E7;
  font-weight: 500;
  margin: 0;
  text-align: right;
  word-break: break-word;
  line-height: 1.4;
  max-width: 60%;
}

.detail-kv-row dd a {
  color: var(--text-gray);
  text-decoration-color: #52525B;
  text-underline-offset: 3px;
}

.detail-kv-row dd a:hover {
  color: var(--text-white);
  text-decoration-color: currentColor;
}

.text-verified {
  color: #A1A1AA !important;
}

/* 2-Column Bottom Grid */
.detail-grid-2col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.detail-installation-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.install-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #1F1F23;
  border: 1px solid #2A2A2D;
  color: #A1A1AA;
  font-size: 0.74rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-text {
  font-size: 0.86rem;
  color: #D4D4D8;
  line-height: 1.4;
}

.detail-install-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.install-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #A1A1AA;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  margin-top: 14px;
  transition: var(--transition);
}

.install-guide-link:hover {
  color: #FFFFFF;
}

/* Related Resources */
.detail-card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.related-view-all {
  background: none;
  border: none;
  color: var(--text-gray);
  font-size: 0.80rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.related-view-all:hover {
  color: #FFFFFF;
}

.related-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-mini-card {
  background-color: #111112;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.related-mini-card:hover {
  background-color: #18181A;
  border-color: #38383C;
  transform: translateY(-1px);
}

.related-mini-card:active {
  transform: scale(0.99) translateY(0);
}

.mini-card-icon {
  width: 36px;
  height: 36px;
  background-color: #18181A;
  border: 1px solid #222225;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mini-card-meta {
  flex: 1;
  min-width: 0;
}

.mini-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.25;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-card-desc {
  font-size: 0.76rem;
  color: var(--text-gray);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.mini-card-arrow {
  color: #52525B;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.related-mini-card:hover .mini-card-arrow {
  color: #FFFFFF;
  transform: translateX(2px);
}

/* ==========================================================================
   Full Skill System Prompt Section
   User requirement: "AND ALSO THAT THE PROMPT OF THE SKILL SO I DONT HAVE TO DOWNLOAD AND STUFF"
   ========================================================================== */
.detail-prompt-section {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-sizing: border-box;
}

.detail-prompt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.prompt-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prompt-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-white);
}

.prompt-title-badge svg {
  color: #A1A1AA;
}

.prompt-subtitle {
  font-size: 0.82rem;
  color: #71717A;
}

.btn-copy-prompt {
  background-color: #FFFFFF;
  border: 1px solid #FFFFFF;
  color: #09090B;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  user-select: none;
}

.btn-copy-prompt:hover {
  background-color: #E4E4E7;
}

.btn-copy-prompt:active {
  transform: scale(0.96);
}

.btn-copy-prompt.copied {
  background-color: #27272A;
  border-color: #3F3F46;
  color: #FFFFFF;
}

.prompt-code-container {
  background-color: #09090B;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  max-height: 480px;
  overflow-y: auto;
}

.prompt-code-container pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #E4E4E7;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Responsive adjustments for Detail Page */
@media (max-width: 1024px) {
  .detail-hero-card {
    flex-direction: column;
  }
  .detail-grid-3col {
    grid-template-columns: 1fr;
  }
  .detail-grid-2col {
    grid-template-columns: 1fr;
  }
  .detail-hero-actions {
    flex-direction: row;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .detail-hero-card {
    padding: 20px;
  }
  .detail-large-icon-box {
    width: 120px;
    height: 120px;
  }
  .detail-meta-stat-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .detail-hero-actions {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .header-search-wrapper {
    display: none !important;
  }
}

/* ==========================================================================
   Skills Collection Page & Dense List Layout
   ========================================================================== */
.collection-hero {
  margin-bottom: 20px;
}

.collection-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #F5F5F5;
  margin-bottom: 6px;
}

.collection-lede {
  font-size: 0.92rem;
  color: #A1A1AA;
  line-height: 1.45;
  margin-bottom: 6px;
}

.collection-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #71717A;
  margin-bottom: 12px;
}

.collection-count-num {
  color: #F5F5F5;
  font-feature-settings: 'tnum';
}

/* Topic chips with real badge counts */
.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #151515;
  border: 1px solid #2A2A2D;
  color: #A1A1AA;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  user-select: none;
}

.topic-pill:hover {
  color: #F5F5F5;
  border-color: #3F3F46;
  background-color: #1C1C1E;
}

.topic-pill:active {
  transform: scale(0.96);
}

.topic-pill.active {
  background-color: #27272A;
  border-color: #71717A;
  color: #FFFFFF;
  font-weight: 600;
}

.topic-pill-count {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 9999px;
  background-color: #222225;
  color: #71717A;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.topic-pill:hover .topic-pill-count {
  background-color: #2A2A2E;
  color: #A1A1AA;
}

.topic-pill.active .topic-pill-count {
  background-color: #3F3F46;
  color: #FFFFFF;
}

/* Dense Skills List / Card Grid */
.skills-dense-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.skill-dense-row {
  display: grid;
  grid-template-columns: 36px 240px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background-color: #151515;
  border: 1px solid #222225;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.skill-dense-row:hover {
  background-color: #1A1A1D;
  border-color: #333338;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.skill-dense-row:active {
  transform: scale(0.99) translateY(0);
}

.skill-dense-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #F5F5F5;
}

.skill-dense-main {
  min-width: 0;
}

.skill-dense-name {
  font-size: 0.94rem;
  font-weight: 600;
  color: #F5F5F5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.skill-dense-usecase {
  font-size: 0.82rem;
  color: #A1A1AA;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.skill-dense-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.hero-description {
  color: var(--text-gray);
  font-size: 0.94rem;
  margin: -20px 0 22px;
  text-align: center;
}

.search-examples,
.empty-search-examples {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.search-examples {
  max-width: 760px;
  margin: -6px auto 24px;
}

.search-examples-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.search-example-chip {
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--pill-bg);
  color: var(--text-gray);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  padding: 6px 12px;
  transition: var(--transition);
  user-select: none;
}

.search-example-chip:hover,
.search-example-chip:focus-visible {
  border-color: var(--border-hover);
  color: var(--text-white);
  background: var(--surface-hover);
}

.search-example-chip:active {
  transform: scale(0.96);
}

.match-reason {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 400;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-search-examples {
  margin: 0 auto 18px;
}

@media (max-width: 900px) {
  .skill-dense-row {
    grid-template-columns: 32px 1fr auto;
    gap: 12px;
    padding: 12px 14px;
  }
  .skill-dense-usecase {
    display: none;
  }

  .skill-dense-meta .compatibility-badge {
    max-width: 138px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 600px) {
  .skill-dense-row {
    grid-template-columns: 32px 1fr;
    gap: 10px;
  }
  .skill-dense-meta {
    grid-column: 2;
    margin-top: 4px;
    justify-content: flex-start;
  }

  .hero-description {
    max-width: 32ch;
    line-height: 1.5;
  }

  .search-examples {
    margin-top: 0;
  }
}

.load-more-wrap {
  justify-content: center;
  margin: 20px 0 8px;
}

.load-more-btn {
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--surface);
  color: var(--text-gray);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  padding: 9px 20px;
  transition: var(--transition);
  user-select: none;
}

.load-more-btn:hover,
.load-more-btn:focus-visible {
  border-color: var(--border-hover);
  color: var(--text-white);
  background: var(--surface-hover);
}

.load-more-btn:active {
  transform: scale(0.96);
}

/* ==========================================================================
   Refined Collection Controls (Verified Toggle & Custom Select)
   ========================================================================== */
.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Custom Sleek Switch Toggle: tactile, high-contrast, premium dark switch */
.verified-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  width: max-content;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 9999px;
  background-color: #141416;
  border: 1px solid #27272A;
  transition: all 0.15s ease;
  user-select: none;
}

.verified-toggle:hover {
  background-color: #1A1A1E;
  border-color: #3F3F46;
}

.verified-toggle:active {
  transform: scale(0.97);
}

.verified-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.verified-toggle-track {
  width: 32px;
  height: 18px;
  background-color: #1F1F24;
  border: 1px solid #2E2E36;
  border-radius: 9999px;
  position: relative;
  transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  flex-shrink: 0;
}

.verified-toggle-thumb {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 14px;
  height: 14px;
  background-color: #71717A;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.verified-toggle:hover .verified-toggle-thumb {
  background-color: #A1A1AA;
}

/* Checked state: dignified emerald tint for verified certainty */
.verified-toggle-input:checked + .verified-toggle-track {
  background-color: #064E3B;
  border-color: #059669;
}

.verified-toggle-input:checked + .verified-toggle-track .verified-toggle-thumb {
  transform: translateX(14px);
  background-color: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.verified-toggle-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #71717A;
  transition: color 0.15s ease;
  letter-spacing: 0.01em;
}

.verified-toggle:hover .verified-toggle-label {
  color: #D4D4D8;
}

.verified-toggle-input:checked ~ .verified-toggle-label {
  color: #F4F4F5;
  font-weight: 600;
}

/* Custom Styled Select Wrap */
.custom-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sort-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #141416;
  border: 1px solid #242428;
  color: #E4E4E7;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 32px 6px 12px;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sort-select:hover {
  background-color: #1A1A1E;
  border-color: #38383F;
  color: #FFFFFF;
}

.sort-select:focus {
  background-color: #1A1A1E;
  border-color: #52525B;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.select-chevron {
  position: absolute;
  right: 10px;
  pointer-events: none;
  color: #71717A;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.sort-select:hover ~ .select-chevron {
  color: #E4E4E7;
}

.sort-select option {
  background-color: #151515;
  color: #F5F5F5;
  padding: 8px;
}

/* View Toggle Segmented Control (Grid / List switcher) */
.view-toggle-wrap {
  display: inline-flex;
  align-items: center;
  background-color: #121214;
  border: 1px solid #2A2A2E;
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 30px;
  padding: 0;
  border: none;
  background: transparent;
  color: #71717A;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.view-toggle-btn:hover {
  color: #F5F5F5;
  background-color: #1C1C1F;
}

.view-toggle-btn.active {
  color: #FFFFFF;
  background-color: #27272A;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.view-toggle-btn svg {
  display: block;
}

/* Featured Skills Box Cards (Grid View Option, matching User Reference Image 1) */
.featured-card-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #151515;
  border: 1px solid #242427;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  min-height: 220px;
}

.featured-card-box:hover {
  background-color: #1A1A1D;
  border-color: #38383E;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.featured-card-box:active {
  transform: translateY(0) scale(0.995);
}

.featured-card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 10px;
}

.featured-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

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

.featured-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #F5F5F5;
  margin: 0 0 4px 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  text-wrap: balance;
}

.featured-card-author {
  font-size: 0.78rem;
  color: #A1A1AA;
  margin: 0;
}

.featured-pill-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  background-color: #000000;
  color: #F5F5F5;
  border: 1px solid #333338;
  flex-shrink: 0;
}

.featured-card-desc {
  font-size: 0.84rem;
  color: #A1A1AA;
  line-height: 1.5;
  margin: 6px 0 14px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
  text-wrap: pretty;
}

.featured-card-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.featured-plat-chip {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  background-color: #1A1A1E;
  color: #A1A1AA;
  border: 1px solid #2E2E34;
  border-radius: 4px;
}

.featured-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #222226;
  padding-top: 12px;
  margin-top: auto;
}

.featured-card-stars {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #A1A1AA;
  font-weight: 500;
}

.featured-card-stars svg {
  color: #A1A1AA;
}

.featured-rank-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background-color: #000000;
  color: #FFFFFF;
  border: 1px solid #333338;
}



/* 3-Column Box Grid for Skills (Exact Match to User Reference Image 1) */
.skills-box-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

@media (max-width: 1100px) {
  .skills-box-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .skills-box-grid {
    grid-template-columns: 1fr;
  }
}



/* Task Kit Banner (Project Starter Kit tailored to user's exact task) */
.task-kit-banner {
  background: #111113;
  border: 1px solid #28282D;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.task-kit-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #3B82F6;
}

.task-kit-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.task-kit-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #60A5FA;
  margin-bottom: 4px;
}

.task-kit-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #F5F5F5;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-kit-subtitle {
  font-size: 0.85rem;
  color: #A1A1AA;
  margin: 0;
  line-height: 1.4;
}

.task-kit-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1F2937;
  color: #F9FAFB;
  border: 1px solid #374151;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.task-kit-copy-btn:hover {
  background: #2563EB;
  border-color: #3B82F6;
  color: #FFFFFF;
}

.task-kit-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.task-kit-skill-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #18181B;
  border: 1px solid #27272A;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.task-kit-skill-item:hover {
  border-color: #3B82F6;
  background: #202024;
  transform: translateY(-1px);
}

.task-kit-skill-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #27272A;
  color: #A1A1AA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.task-kit-skill-content {
  min-width: 0;
  flex-grow: 1;
}

.task-kit-skill-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: #F4F4F5;
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-kit-skill-reason {
  font-size: 0.74rem;
  color: #A1A1AA;
  margin: 0;
  line-height: 1.35;
}

.task-kit-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0A0A0C;
  border: 1px solid #202024;
  border-radius: 6px;
  padding: 8px 12px;
  gap: 12px;
}

.task-kit-cmd-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  color: #38BDF8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-kit-close {
  background: transparent;
  border: none;
  color: #71717A;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.task-kit-close:hover {
  color: #F5F5F5;
  background: #27272A;
}



/* Stack Card Component (Adheres strictly to Minimalist Dark Design System, no emojis) */
/* Redesigned Stacks UI conforming strictly to docs/DESIGN_SYSTEM.md and baseline-ui */

.stacks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

@media (max-width: 900px) {
  .stacks-grid {
    grid-template-columns: 1fr;
  }
}

.stack-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #151515;
  border: 1px solid #2A2A2D;
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}

.stack-card:hover {
  background-color: #1C1C1E;
  border-color: #38383E;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.stack-card:active {
  transform: translateY(0) scale(0.995);
}

.stack-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stack-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background-color: #1F1F23;
  color: #A1A1AA;
  border: 1px solid #2E2E34;
}

.stack-card-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: #F5F5F5;
  margin: 0 0 8px 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.stack-card-desc {
  font-size: 0.88rem;
  color: #A1A1AA;
  line-height: 1.5;
  margin: 0 0 20px 0;
}

/* Explicit Included Tools Container with Clickable Sub-Items */
.stack-contents-wrap {
  margin-bottom: 20px;
}

.stack-contents-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #71717A;
  margin-bottom: 8px;
}

.stack-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #0E0E10;
  border: 1px solid #202024;
  border-radius: 8px;
  padding: 8px;
}

.stack-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #151515;
  border: 1px solid #222226;
  transition: all 0.15s ease;
  cursor: pointer;
}

.stack-item-row:hover {
  background: #1F1F23;
  border-color: #38383E;
  transform: translateX(2px);
}

.stack-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.stack-item-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
  flex-shrink: 0;
}

.stack-item-name {
  color: #EDEDED;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.14s ease;
}

.stack-item-row:hover .stack-item-name {
  color: #FFFFFF;
}

.stack-item-role {
  color: #8E8E93;
  font-size: 0.74rem;
  font-weight: 400;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.14s ease;
}

.stack-item-row:hover .stack-item-role {
  color: #D4D4D8;
}

.stack-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #222226;
  padding-top: 16px;
  margin-top: auto;
  gap: 12px;
}

.stack-footer-meta {
  font-size: 0.78rem;
  color: #8E8E93;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.stack-copy-cmd-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #18181B;
  color: #EDEDED;
  font-family: var(--font-family);
  border: 1px solid #2E2E34;
  border-radius: 6px;
  padding: 7px 13px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.08s ease, box-shadow 0.14s ease;
  user-select: none;
  position: relative;
  outline: none;
}

.stack-copy-cmd-btn:hover {
  background: #242428;
  border-color: #3E3E44;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.stack-copy-cmd-btn:active {
  transform: translateY(0) scale(0.97);
  background: #141416;
  border-color: #28282D;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition-duration: 0.04s;
}

.stack-copy-cmd-btn:focus-visible {
  outline: 2px solid #52525B;
  outline-offset: 2px;
}

.stack-copy-cmd-btn.copied {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  color: #34D399 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.stack-copy-cmd-btn.copied svg {
  stroke: #34D399;
  transform: scale(1.05);
}

.stack-copy-cmd-btn svg {
  display: block;
  flex-shrink: 0;
  stroke: #A1A1AA;
  transition: transform 0.15s ease, stroke 0.15s ease;
}

.stack-copy-cmd-btn:hover svg {
  stroke: #FFFFFF;
}



/* Catalog Load Error Card */
.catalog-error-state {
  text-align: center;
  padding: 48px 24px;
  background-color: #151515;
  border: 1px solid #3F2020;
  border-radius: 8px;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.catalog-error-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #EF4444;
}

.catalog-error-state h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #F5F5F5;
  margin: 0;
}

.catalog-error-state p {
  font-size: 0.88rem;
  color: #A1A1AA;
  max-width: 460px;
  margin: 0 0 8px 0;
  line-height: 1.5;
}

.btn-retry-catalog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #27272A;
  color: #FFFFFF;
  border: 1px solid #3F3F46;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-retry-catalog:hover {
  background-color: #3F3F46;
  border-color: #52525B;
  transform: translateY(-1px);
}

.btn-retry-catalog:active {
  transform: translateY(0) scale(0.98);
}

/* Needs Review Tag */
.tag-needs-review {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #FACC15;
}
