
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #0a0e1a; color: #e2e8f0;
       font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
       font-size: 15px; line-height: 1.6; overflow-x: hidden; }
a { color: #60a5fa; text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: 'SF Mono', 'Fira Code', monospace; }
.container { max-width: 1160px; margin: 0 auto; padding: 20px 24px; }
.site-header { background: #0d1117; border-bottom: 1px solid #1f2937;
               position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; gap: 24px;
                           padding-top: 12px; padding-bottom: 12px; }
.site-logo { font-size: 18px; font-weight: 800; color: #f9fafb; white-space: nowrap; }
.site-logo span { color: #3b82f6; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.site-nav a { color: #9ca3af; font-size: 13px; padding: 5px 10px; border-radius: 6px; }
.site-nav a:hover { color: #f9fafb; background: #1f2937; text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid #374151;
              color: #9ca3af; padding: 6px 10px; border-radius: 6px; cursor: pointer;
              margin-left: auto; font-size: 18px; }
.hero { background: linear-gradient(135deg, #0d1117 0%, #0f172a 50%, #0d1117 100%);
        border-bottom: 1px solid #1f2937; padding: 48px 24px 40px;
        margin: -20px -24px 28px; }
.hero h1 { font-size: 32px; font-weight: 800; color: #f9fafb; margin-bottom: 10px; }
.hero p { color: #9ca3af; font-size: 16px; max-width: 600px; }
.card { background: #0d1117; border: 1px solid #1f2937; border-radius: 10px; padding: 16px; overflow: hidden; min-width: 0; }
.card:hover { border-color: #374151; }
.construct-card { background: #0d1117; border: 1px solid #1f2937; border-radius: 10px;
                  padding: 14px 18px; margin-bottom: 10px; overflow: hidden; min-width: 0; }
.construct-card:hover { border-color: #374151; }
.construct-name { font-size: 14px; font-weight: 600; color: #f9fafb; word-break: break-word; overflow-wrap: anywhere; }
.construct-name:hover { color: #60a5fa; }
.construct-desc { color: #6b7280; font-size: 12px; margin-top: 3px;
                  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px;
         border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-fw       { background: #1e1b4b; color: #a5b4fc; border: 1px solid #3730a3; }
.badge-cloud    { background: #052e16; color: #4ade80; border: 1px solid #166534; }
.badge-lang     { background: #1f2937; color: #9ca3af; border: 1px solid #374151; }
.badge-verified { background: #052e16; color: #4ade80; border: 1px solid #166534; }
.badge-official { background: #052e16; color: #4ade80; border: 1px solid #166534; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px;
        background: #1f2937; border: 1px solid #374151; border-radius: 20px;
        font-size: 12px; color: #9ca3af; white-space: nowrap; }
.chip:hover { border-color: #4b5563; color: #d1d5db; text-decoration: none; }
.install-box { background: #0d1117; border: 1px solid #1f2937; border-radius: 8px;
               padding: 10px 14px; display: flex; align-items: center;
               gap: 10px; font-family: monospace; font-size: 13px; }
.install-cmd { color: #a5b4fc; flex: 1; overflow: hidden; text-overflow: ellipsis;
               white-space: pre; }
.copy-btn { background: #1f2937; border: 1px solid #374151; color: #9ca3af;
            padding: 4px 10px; border-radius: 6px; cursor: pointer; font-size: 12px;
            white-space: nowrap; flex-shrink: 0; }
.copy-btn:hover { background: #374151; color: #f9fafb; }
.code-block { background: #0d1117; border: 1px solid #1f2937; border-radius: 8px;
              padding: 14px 16px; font-family: monospace; font-size: 12px;
              color: #d1d5db; overflow-x: auto; white-space: pre; margin-bottom: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-item { background: #0d1117; border: 1px solid #1f2937; border-radius: 8px;
             padding: 14px 16px; text-align: center; }
.stat-num  { font-size: 24px; font-weight: 700; color: #f9fafb; }
.stat-label { font-size: 12px; color: #6b7280; margin-top: 2px; }
.stat { font-size: 12px; color: #6b7280; background: #1f2937; border-radius: 20px;
        padding: 2px 8px; white-space: nowrap; }
.section-box { background: #0d1117; border: 1px solid #1f2937; border-radius: 10px;
               padding: 16px; margin-bottom: 16px; }
.section-title { font-size: 11px; font-weight: 600; color: #4b5563;
                 text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.layout-sidebar { display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: start; }
.layout-sidebar-wide { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start; }
.layout-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.layout-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.layout-4col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.layout-2col > *, .layout-3col > *, .layout-4col > *, .layout-sidebar > *, .layout-sidebar-wide > * { min-width: 0; }
.bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.bar-label { font-size: 12px; color: #9ca3af; width: 140px; overflow: hidden;
             text-overflow: ellipsis; white-space: nowrap; flex-shrink: 0; }
.bar-track { flex: 1; background: #1f2937; border-radius: 3px; height: 6px; overflow: hidden; }
.bar-fill  { height: 100%; border-radius: 3px; }
.bar-count { font-size: 11px; color: #4b5563; width: 36px; text-align: right; flex-shrink: 0; }
.breadcrumb { font-size: 12px; color: #4b5563; margin-bottom: 16px;
              display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.breadcrumb a { color: #6b7280; }
.breadcrumb span { color: #374151; }
.search-box { width: 100%; background: #0d1117; border: 1px solid #1f2937;
              border-radius: 8px; padding: 10px 14px; color: #f9fafb; font-size: 14px;
              margin-bottom: 16px; }
.search-box:focus { outline: none; border-color: #3b82f6; }
.page-title    { font-size: 26px; font-weight: 700; color: #f9fafb; margin-bottom: 4px; }
.page-subtitle { color: #6b7280; font-size: 14px; margin-bottom: 20px; }
.filter-pill { display: inline-flex; align-items: center; padding: 4px 12px;
               border-radius: 20px; font-size: 12px; font-weight: 500;
               border: 1px solid #374151; color: #9ca3af; background: #1f2937;
               text-decoration: none; white-space: nowrap; }
.filter-pill:hover { border-color: #3b82f6; color: #60a5fa; background: #1e3a5f;
                     text-decoration: none; }
.active-pill { border-color: #3b82f6 !important; color: #60a5fa !important; background: #1e3a5f !important; }
.site-footer { border-top: 1px solid #1f2937; padding: 32px 24px; text-align: center;
               color: #374151; font-size: 13px; margin-top: 48px; }
.empty { color: #4b5563; font-size: 14px; text-align: center; padding: 32px; }
@media (max-width: 900px) {
  .layout-sidebar, .layout-sidebar-wide { grid-template-columns: 1fr; }
  .layout-3col { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .layout-4col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav { display: none !important; flex-direction: column;
              position: absolute; top: 52px; left: 0; right: 0;
              background: #0d1117; border-bottom: 1px solid #1f2937;
              padding: 12px 16px; z-index: 99; gap: 2px; }
  .site-nav.open { display: flex !important; }
  .site-header .container { position: relative; }
  .hero { padding: 28px 16px 24px; margin: -20px -16px 24px; }
  .hero h1 { font-size: 22px; }
  .hero p { font-size: 14px; }
  .layout-2col { grid-template-columns: 1fr; }
  .layout-3col { grid-template-columns: 1fr; }
  .layout-4col { grid-template-columns: 1fr 1fr; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .install-box { flex-wrap: wrap; }
  .install-cmd { min-width: 0; width: 100%; white-space: pre-wrap; word-break: break-all; }
  .bar-label { width: 100px; }
  #search-results { position: relative; z-index: 50; }
  .stat-item { padding: 12px 8px; }
  .stat-num { font-size: 22px; }
  .page-title { font-size: 20px; }
  .code-block { font-size: 11px; }
}
@media (max-width: 480px) {
  .container { padding: 14px 12px; }
  .hero { padding: 24px 12px 20px; margin: -14px -12px 20px; }
  .hero h1 { font-size: 20px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .layout-3col, .layout-4col { grid-template-columns: 1fr; }
  .bar-label { width: 80px; }
  .bar-count { width: 28px; }
  .filter-pill { font-size: 11px; padding: 3px 8px; }
  .badge { font-size: 11px; padding: 2px 6px; }
}
