/* ============================================================
   Harness Index · DeepSeek Harness 内测报名档案
   设计系统：深色优先的「观测站 / 档案索引」视觉
   深蓝夜空 × 暖纸墨 × 信号金；编辑级排版，数据用等宽字体
   ============================================================ */

/* ---------- 令牌 ---------- */
:root {
  color-scheme: dark light;

  --bg: #0a0e17;
  --bg-raise: #0d1320;
  --surface: #101827;
  --surface-2: #141e2f;
  --surface-3: #182437;

  --line: rgba(158, 178, 205, 0.10);
  --line-strong: rgba(158, 178, 205, 0.22);

  --ink: #ece5d6;
  --ink-strong: #f7f2e6;
  --muted: #9aa7ba;
  --faint: #67758c;

  --gold: #e3b341;
  --gold-deep: #c99a2e;
  --gold-soft: rgba(227, 179, 65, 0.12);
  --blue: #82a8cf;
  --blue-soft: rgba(130, 168, 207, 0.12);
  --red: #d0614e;
  --green: #82bd92;

  --nav-bg: rgba(10, 14, 23, 0.72);
  --shadow-lg: 0 24px 64px -28px rgba(0, 0, 0, 0.65);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.5);

  --display: "Space Grotesk", "Avenir Next", "Futura", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --body: "Avenir Next", "Inter", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Space Mono", ui-monospace, Menlo, Consolas, monospace;

  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --max: 1200px;
  --nav-h: 68px;

  --rank-1: #e3b341;
  --rank-2: #b9c6d6;
  --rank-3: #c08a5a;

  --grain-opacity: 0.045;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f3eee3;
    --bg-raise: #ece6d7;
    --surface: #fbf8f0;
    --surface-2: #f4efe3;
    --surface-3: #ede7d8;
    --line: rgba(26, 35, 51, 0.10);
    --line-strong: rgba(26, 35, 51, 0.22);
    --ink: #232d3f;
    --ink-strong: #141c2b;
    --muted: #5c6a7e;
    --faint: #8593a6;
    --gold: #a97f14;
    --gold-deep: #8f6a0e;
    --gold-soft: rgba(169, 127, 20, 0.10);
    --blue: #3d648c;
    --blue-soft: rgba(61, 100, 140, 0.10);
    --red: #a64534;
    --green: #35784a;
    --nav-bg: rgba(243, 238, 227, 0.78);
    --shadow-lg: 0 24px 64px -30px rgba(26, 35, 51, 0.28);
    --shadow-sm: 0 8px 24px -14px rgba(26, 35, 51, 0.18);
    --rank-1: #a97f14;
    --rank-2: #7d8ea3;
    --rank-3: #a06a3c;
    --grain-opacity: 0.03;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3eee3;
  --bg-raise: #ece6d7;
  --surface: #fbf8f0;
  --surface-2: #f4efe3;
  --surface-3: #ede7d8;
  --line: rgba(26, 35, 51, 0.10);
  --line-strong: rgba(26, 35, 51, 0.22);
  --ink: #232d3f;
  --ink-strong: #141c2b;
  --muted: #5c6a7e;
  --faint: #8593a6;
  --gold: #a97f14;
  --gold-deep: #8f6a0e;
  --gold-soft: rgba(169, 127, 20, 0.10);
  --blue: #3d648c;
  --blue-soft: rgba(61, 100, 140, 0.10);
  --red: #a64534;
  --green: #35784a;
  --nav-bg: rgba(243, 238, 227, 0.78);
  --shadow-lg: 0 24px 64px -30px rgba(26, 35, 51, 0.28);
  --shadow-sm: 0 8px 24px -14px rgba(26, 35, 51, 0.18);
  --rank-1: #a97f14;
  --rank-2: #7d8ea3;
  --rank-3: #a06a3c;
  --grain-opacity: 0.03;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: #14100a; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink-strong);
  line-height: 1.18;
  margin: 0;
  letter-spacing: -0.01em;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--gold); }

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

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.hidden { display: none !important; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}
.wrap-narrow { max-width: 780px; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ---------- 背景层 ---------- */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-aurora {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 90vh;
  background:
    radial-gradient(42% 55% at 18% 22%, rgba(130, 168, 207, 0.13), transparent 70%),
    radial-gradient(38% 48% at 82% 12%, rgba(227, 179, 65, 0.08), transparent 70%),
    radial-gradient(55% 60% at 55% 45%, rgba(70, 96, 135, 0.10), transparent 75%);
  filter: blur(10px);
}
:root[data-theme="light"] .bg-aurora { opacity: 0.55; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .bg-aurora { opacity: 0.55; }
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 65%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 65%);
  opacity: 0.35;
}

.bg-grain {
  position: absolute;
  inset: 0;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- 导航 ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-strong);
  flex-shrink: 0;
}
.brand:hover { color: var(--ink-strong); }

.brand-mark {
  width: 30px; height: 30px;
  color: var(--gold);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.brand:hover .brand-mark { transform: rotate(90deg); }

.brand-word { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 0.68rem;
  color: var(--faint);
  letter-spacing: 0.14em;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 0.92rem;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--ink-strong); background: var(--blue-soft); }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 1px;
  background: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-size: 0.85rem;
  transition: border-color 0.2s, color 0.2s;
}
.nav-search:hover { border-color: var(--line-strong); color: var(--muted); }
.nav-search svg { width: 14px; height: 14px; }
.nav-search kbd {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--faint);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s, transform 0.3s;
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--ink-strong); transform: translateY(-1px); }
.icon-btn svg { width: 16px; height: 16px; }

#themeBtn .icon-sun, #themeBtn .icon-moon { display: none; }
:root:not([data-theme="light"]) #themeBtn .icon-sun { display: block; }
:root[data-theme="light"] #themeBtn .icon-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) #themeBtn .icon-sun { display: none; }
  :root:not([data-theme="dark"]) #themeBtn .icon-moon { display: block; }
}
:root[data-theme="dark"] #themeBtn .icon-sun { display: block; }
:root[data-theme="dark"] #themeBtn .icon-moon { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  align-items: center;
}
.hamburger span {
  display: block;
  width: 14px; height: 1.5px;
  background: var(--muted);
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(3.2px) rotate(45deg); }
.hamburger.open span:nth-child(2) { transform: translateY(-3.2px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  z-index: 55;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 12px 28px 20px;
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 13px 4px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ---------- 启动加载 ---------- */
.boot { padding: 180px 28px 120px; }
.boot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: var(--faint);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
}
.boot-spinner {
  width: 34px; height: 34px;
  border: 1px solid var(--line-strong);
  border-top-color: var(--gold);
  transform: rotate(45deg);
  animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(405deg); } }

/* ---------- 主区 ---------- */
main { padding-top: var(--nav-h); min-height: 70vh; }
.view { display: none; }
.view.active { display: block; animation: viewIn 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 0;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.22em;
  margin-bottom: 30px;
}
.hero-sep {
  width: 44px; height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 4.9rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.06;
}
.hero-title em {
  font-style: normal;
  font-family: var(--serif);
  font-weight: 600;
  background: linear-gradient(100deg, var(--gold) 10%, var(--ink-strong) 55%, var(--blue) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lede {
  max-width: 620px;
  margin: 28px 0 0;
  font-size: 1.05rem;
  color: var(--muted);
}
.hero-lede strong { color: var(--ink); font-weight: 600; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 560px;
  margin-top: 30px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: var(--r-sm);
  background: var(--gold-soft);
  font-size: 0.85rem;
  color: var(--muted);
}
.hero-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--gold); }

.hero-stats {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, transparent, rgba(130, 168, 207, 0.03));
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.kpi {
  padding: 26px 24px 24px;
  border-left: 1px solid var(--line);
  transition: background 0.25s ease;
}
.kpi:first-child { border-left: none; }
.kpi:hover { background: var(--blue-soft); }

.kpi-num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  color: var(--ink-strong);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.kpi-num small { font-size: 0.55em; color: var(--gold); margin-left: 2px; }
.kpi-label {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--faint);
  letter-spacing: 0.08em;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.94rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gold);
  color: #171207;
  box-shadow: 0 10px 32px -12px rgba(227, 179, 65, 0.5);
}
.btn-primary:hover {
  color: #171207;
  background: var(--ink-strong);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ---------- 章节 ---------- */
.sec { padding: 84px 0 0; }
.sec:last-child { padding-bottom: 96px; }

.sec-kicker {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.24em;
  margin-bottom: 14px;
}

.sec-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.sec-head h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 620; }
.sec-desc { color: var(--muted); font-size: 0.94rem; margin: 12px 0 30px; max-width: 640px; }

.sec-more {
  font-size: 0.88rem;
  color: var(--faint);
  white-space: nowrap;
  transition: color 0.2s;
}
.sec-more:hover { color: var(--gold); }

/* ---------- 页面头（子页） ---------- */
.page-head { padding: 72px 0 34px; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 640; letter-spacing: -0.02em; }
.page-lede { color: var(--muted); max-width: 620px; margin: 16px 0 0; font-size: 0.98rem; }

/* ---------- 工具条 ---------- */
.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.toolbar-meta {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--faint);
}
.result-meta {
  padding: 18px 0 14px;
  font-size: 0.78rem;
  color: var(--faint);
  letter-spacing: 0.04em;
}

.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.seg button {
  border: none;
  background: transparent;
  color: var(--faint);
  font-size: 0.84rem;
  padding: 6px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.seg button:hover { color: var(--ink); }
.seg button.on {
  background: var(--surface-3);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239aa7ba' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.88rem;
  padding: 9px 36px 9px 14px;
  border-radius: 999px;
  transition: border-color 0.2s;
}
.select:hover, .select:focus { border-color: var(--line-strong); }

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 280px;
  max-width: 420px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.search-box svg { width: 15px; height: 15px; color: var(--faint); flex-shrink: 0; }
.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 0.92rem;
  padding: 10px 0;
  outline: none;
}
.search-box input::placeholder { color: var(--faint); }

/* 开关 */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track {
  position: relative;
  width: 34px; height: 19px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition: background 0.25s, border-color 0.25s;
  flex-shrink: 0;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--faint);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.25s;
}
.switch input:checked + .switch-track { background: var(--gold-soft); border-color: var(--gold); }
.switch input:checked + .switch-track::after { transform: translateX(15px); background: var(--gold); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--gold); outline-offset: 2px; }

/* 筛选 chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 0 18px;
}
.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--faint);
  font-size: 0.8rem;
  padding: 5px 13px;
  border-radius: 999px;
  transition: all 0.2s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip.on {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
}
.chip .chip-n { font-family: var(--mono); font-size: 0.72rem; opacity: 0.75; margin-left: 5px; }

/* ---------- 数据表 ---------- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden auto;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table thead th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--faint);
  text-transform: uppercase;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}
.data-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table tbody tr {
  transition: background 0.15s ease;
  cursor: pointer;
}
.data-table tbody tr:hover { background: var(--blue-soft); }
.data-table tbody tr:last-child td { border-bottom: none; }

.col-num { text-align: right !important; }
.col-rank { width: 52px; }
.col-date { white-space: nowrap; }

.rank {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.rank.r1 { color: var(--rank-1); font-weight: 700; }
.rank.r2 { color: var(--rank-2); font-weight: 700; }
.rank.r3 { color: var(--rank-3); font-weight: 700; }

.t-proj { min-width: 220px; }
.t-proj .t-name {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--ink-strong);
  display: flex;
  align-items: center;
  gap: 8px;
}
.t-proj .t-desc {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  color: var(--faint);
  max-width: 380px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.t-stars {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}
.t-date { font-family: var(--mono); font-size: 0.78rem; color: var(--faint); white-space: nowrap; }
.t-applicant { font-size: 0.84rem; color: var(--muted); white-space: nowrap; }
.t-applicant a { color: var(--muted); }
.t-applicant a:hover { color: var(--gold); }

/* 语言点 */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}
.lang-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--faint);
  flex-shrink: 0;
}

/* 徽章 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  padding: 2.5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--faint);
  white-space: nowrap;
}
.badge.gold { color: var(--gold); border-color: rgba(227, 179, 65, 0.4); background: var(--gold-soft); }
.badge.blue { color: var(--blue); border-color: rgba(130, 168, 207, 0.35); background: var(--blue-soft); }
.badge.green { color: var(--green); border-color: rgba(130, 189, 146, 0.35); }
.badge.red { color: var(--red); border-color: rgba(208, 97, 78, 0.35); }

.cat-tag {
  font-size: 0.74rem;
  font-family: var(--mono);
  color: var(--blue);
  white-space: nowrap;
}

/* ---------- 卡片网格（项目） ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
}

.p-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s, box-shadow 0.3s;
}
.p-card::before {
  content: "";
  position: absolute;
  top: 0; left: 22px; right: 22px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.p-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}
.p-card:hover::before { opacity: 1; }

.p-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.p-card-name {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-strong);
  word-break: break-all;
  line-height: 1.4;
}
.p-card-stars {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.86rem;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}
.p-card-stars svg { width: 13px; height: 13px; }

.p-card-desc {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.75em;
}

.p-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--faint);
}
.p-card-meta .spacer { flex: 1; }

/* ---------- 赛道卡片 ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.cat-card {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.3s;
}
.cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}
.cat-card-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-strong);
}
.cat-card-en {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
  letter-spacing: 0.08em;
  margin-top: 3px;
}
.cat-card-nums {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 16px;
}
.cat-card-count {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
}
.cat-card-stars { font-family: var(--mono); font-size: 0.76rem; color: var(--gold); }
.cat-card-bar {
  margin-top: 12px;
  height: 3px;
  border-radius: 3px;
  background: var(--surface-3);
  overflow: hidden;
}
.cat-card-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(to right, var(--blue), var(--gold));
}

/* 赛道索引页（大列表） */
.cat-index {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 96px;
}
.cat-row {
  display: grid;
  grid-template-columns: 44px 1.4fr 2.6fr 110px 130px;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s;
}
.cat-row:last-child { border-bottom: none; }
.cat-row:hover { background: var(--blue-soft); }
.cat-row-idx {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--faint);
}
.cat-row-main .cat-card-name { font-size: 1.02rem; }
.cat-row-desc {
  font-size: 0.84rem;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cat-row-count {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--ink-strong);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.cat-row-count small { display: block; font-size: 0.68rem; color: var(--faint); }
.cat-row-stars {
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--gold);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.cat-row-stars small { display: block; font-size: 0.68rem; color: var(--faint); }

/* ---------- 面板与条形图 ---------- */
.eco-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 26px 26px 22px;
}
.panel-wide { grid-column: 1 / -1; }
.panel-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.panel-hint {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--faint);
  letter-spacing: 0.1em;
}

.bars { display: flex; flex-direction: column; gap: 11px; }
.bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 64px;
  align-items: center;
  gap: 14px;
}
.bar-label {
  font-size: 0.82rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
}
.bar-track {
  height: 6px;
  border-radius: 6px;
  background: var(--surface-3);
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: linear-gradient(to right, var(--blue), var(--gold));
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bar-val {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--faint);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.bars-cat .bar-row { grid-template-columns: 170px 1fr 130px; }

/* Stars 分层条 */
.tier-strip {
  display: flex;
  height: 14px;
  border-radius: 8px;
  overflow: hidden;
  gap: 2px;
}
.tier-strip .tier-seg {
  display: block;
  min-width: 3px;
  transition: flex-grow 0.8s ease, filter 0.2s;
}
.tier-strip .tier-seg:hover { filter: brightness(1.3); }
.tier-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.tier-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--muted);
}
.tier-item .lang-dot { width: 8px; height: 8px; }
.tier-item .mono { margin-left: auto; color: var(--ink); font-size: 0.82rem; }
.tier-item small { color: var(--faint); }

/* ---------- 缺口 ---------- */
.gap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.gap-card {
  border: 1px solid var(--line);
  border-left: 2px solid var(--red);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 18px 20px;
}
.gap-num {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
}
.gap-label { font-size: 0.8rem; color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* ---------- 开发者 ---------- */
.dev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}
.dev-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.3s;
}
.dev-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}
.dev-avatar {
  width: 52px; height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.25rem;
  color: var(--gold);
  border: 1px solid var(--line);
}
.dev-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dev-body { flex: 1; min-width: 0; }
.dev-names {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.dev-name {
  font-family: var(--display);
  font-weight: 620;
  font-size: 1rem;
  color: var(--ink-strong);
}
.dev-x {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--faint);
}
.dev-gh {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--blue);
  margin-top: 2px;
}
.dev-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.dev-excerpt {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dev-foot {
  margin-top: 10px;
  font-size: 0.76rem;
  color: var(--faint);
  font-family: var(--mono);
}

/* ---------- 分页 ---------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 34px 0 96px;
  flex-wrap: wrap;
}
.pager button {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.84rem;
  transition: all 0.2s;
}
.pager button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.pager button.on {
  background: var(--gold);
  border-color: var(--gold);
  color: #171207;
  font-weight: 700;
}
.pager button:disabled { opacity: 0.35; cursor: default; }
.pager .pager-info {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--faint);
  margin: 0 10px;
}

/* ---------- 详情页 ---------- */
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 48px 0 26px;
  font-size: 0.86rem;
  color: var(--faint);
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s;
}
.detail-back:hover { color: var(--gold); }
.detail-back svg { width: 15px; height: 15px; }

.detail-head { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.detail-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.detail-title {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  word-break: break-all;
}
.detail-title .owner { color: var(--faint); font-weight: 400; }
.detail-desc {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 720px;
}
.detail-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 34px 0;
}
.stat-cell {
  background: var(--surface);
  padding: 20px 22px;
}
.stat-cell .kpi-num { font-size: 1.35rem; white-space: nowrap; }
.stat-cell .kpi-label { margin-top: 6px; }
@media (max-width: 860px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

.detail-sec { margin: 40px 0; }
.detail-sec h3 {
  font-size: 1.05rem;
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.langbar {
  display: flex;
  height: 10px;
  border-radius: 6px;
  overflow: hidden;
  gap: 1.5px;
}
.langbar i { display: block; min-width: 2px; }
.langbar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
}
.langbar-legend .lang { font-size: 0.8rem; }
.langbar-legend .pct { font-family: var(--mono); color: var(--faint); font-size: 0.76rem; }

.topic-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.topic {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid rgba(130, 168, 207, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
}

.readme-box {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-raise);
  max-height: 340px;
  overflow: auto;
  padding: 20px 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.readme-box::-webkit-scrollbar {
  display: none;
}
.readme-box pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Markdown 渲染正文（README 摘录等） */
.md-body {
  font-size: 0.86rem;
  color: var(--ink);
  line-height: 1.75;
  word-break: break-word;
}
.md-body h1, .md-body h2, .md-body h3, .md-body h4 {
  font-family: var(--display);
  color: var(--ink-strong);
  margin: 18px 0 8px;
}
.md-body h1 { font-size: 1.25rem; }
.md-body h2 { font-size: 1.12rem; }
.md-body h3 { font-size: 1rem; }
.md-body h4 { font-size: 0.92rem; }
.md-body p { margin: 8px 0; }
.md-body ul, .md-body ol { margin: 8px 0; padding-left: 22px; }
.md-body li { margin: 3px 0; }
.md-body blockquote {
  margin: 10px 0;
  padding: 8px 14px;
  border-left: 2px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--muted);
}
.md-body code {
  font-family: var(--mono);
  font-size: 0.8em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--gold);
}
.md-body pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  overflow: auto;
  margin: 10px 0;
}
.md-body pre code { background: none; border: 0; padding: 0; color: var(--muted); display: block; }
.md-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.md-body a:hover { color: var(--gold); }
.md-body table { border-collapse: collapse; margin: 10px 0; font-size: 0.82rem; width: 100%; }
.md-body th, .md-body td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.md-body th { background: var(--surface); color: var(--ink-strong); }
.md-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.applicant-card {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 22px 24px;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.3s;
}
.applicant-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.applicant-card .dev-avatar { width: 60px; height: 60px; }
.applicant-meta { flex: 1; min-width: 0; }
.applicant-hint { font-size: 0.78rem; color: var(--faint); margin-top: 4px; }

/* 开发者详情 */
.dev-profile {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.dev-profile .dev-avatar { width: 84px; height: 84px; border-radius: 20px; font-size: 2rem; }
.dev-profile-name { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 640; }
.dev-profile-handles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.86rem;
}
.dev-profile-handles a { color: var(--blue); }
.dev-profile-handles a:hover { color: var(--gold); }
.dev-quote {
  margin: 26px 0 0;
  padding: 18px 22px;
  border-left: 2px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 0.94rem;
  color: var(--ink);
  line-height: 1.75;
  font-family: var(--serif);
}
.identity-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--faint);
}

/* ---------- 关于 ---------- */
.prose { padding-bottom: 96px; color: var(--muted); font-size: 0.98rem; }
.prose p { margin: 0 0 18px; max-width: 68ch; }
.prose strong, .prose b { color: var(--ink-strong); }
.prose h3 {
  font-size: 1.1rem;
  margin: 34px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 10px; max-width: 64ch; }
.prose code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--surface-3);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--gold);
}

/* ---------- 页脚 ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  background: var(--bg-raise);
  padding: 56px 0 44px;
  margin-top: 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand .brand-mark { width: 26px; height: 26px; margin-top: 2px; }
.foot-brand strong { font-family: var(--display); color: var(--ink-strong); }
.foot-brand p { margin: 8px 0 0; font-size: 0.8rem; color: var(--faint); line-height: 1.7; }
.foot-credit { margin-top: 10px; font-size: 0.78rem; color: var(--muted); }
.foot-credit a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.foot-head {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--faint);
  margin-bottom: 14px;
}
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col a { font-size: 0.86rem; color: var(--muted); }
.foot-col a:hover { color: var(--gold); }
.foot-snapshot { font-size: 0.8rem; color: var(--muted); }

/* ---------- 回到顶部 ---------- */
#toTop {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s, color 0.2s, border-color 0.2s;
  z-index: 50;
}
#toTop.show { opacity: 1; pointer-events: auto; transform: none; }
#toTop:hover { color: var(--gold); border-color: var(--gold); }
#toTop svg { width: 17px; height: 17px; }

/* ---------- 滚动出现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 空状态 ---------- */
.empty-state {
  padding: 70px 30px;
  text-align: center;
  color: var(--faint);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  font-size: 0.92rem;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .kpi-row { grid-template-columns: repeat(3, 1fr); }
  .kpi:nth-child(4) { border-left: none; }
  .kpi { border-top: 1px solid var(--line); }
  .kpi:nth-child(-n+3) { border-top: none; }
  .eco-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cat-row { grid-template-columns: 36px 1.4fr 2fr 90px 110px; gap: 12px; }
}

@media (max-width: 860px) {
  .nav-links, .nav-search span, .nav-search kbd { display: none; }
  .nav-search { padding: 7px 10px; }
  .hamburger { display: flex; }
  .cat-row { grid-template-columns: 30px 1fr 90px; }
  .cat-row-desc, .cat-row-stars { display: none; }
  .lb-table .col-date, .lb-table td.t-date { display: none; }
  .t-proj .t-desc { max-width: 200px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero { padding-top: 64px; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .kpi { border-top: 1px solid var(--line); }
  .kpi:nth-child(-n+2) { border-top: none; }
  .kpi:nth-child(3) { border-left: none; }
  .kpi:nth-child(odd) { border-left: none; }
  .card-grid, .dev-grid, .cat-grid { grid-template-columns: 1fr; }
  .bars-cat .bar-row { grid-template-columns: 110px 1fr 90px; }
  .bar-row { grid-template-columns: 84px 1fr 52px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .lb-table th:nth-child(4), .lb-table td:nth-child(4),
  .lb-table th:nth-child(6), .lb-table td:nth-child(6) { display: none; }
  .dev-profile { flex-direction: column; }
  .toolbar-meta { margin-left: 0; width: 100%; }
}
