:root {
  --bg: #f6efe2;
  --panel: rgba(255, 250, 243, 0.96);
  --panel-strong: #fff9f0;
  --line: rgba(87, 61, 31, 0.18);
  --line-strong: rgba(87, 61, 31, 0.32);
  --text: #2f2418;
  --muted: #65584a;
  --accent: #b94728;
  --accent-2: #2c615b;
  --accent-3: #8c5f1f;
  --accent-4: #405a95;
  --accent-5: #6a4f9b;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 14px;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  line-height: 1.6;
  background:
    linear-gradient(180deg, rgba(185, 71, 40, 0.08), transparent 18%),
    linear-gradient(135deg, rgba(44, 97, 91, 0.06), transparent 34%),
    var(--bg);
}

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

.page-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px;
}

.hero,
.panel {
  border: 1px solid var(--line-strong);
  background: var(--panel);
}

.hero {
  display: grid;
  gap: 18px;
  grid-template-columns: 2.1fr 1fr;
  padding: 24px;
  margin-bottom: 20px;
}

.hero-panel {
  display: grid;
  gap: 10px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 12px;
  letter-spacing: 0.08em;
}

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

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

h2 {
  font-size: 1.28rem;
  line-height: 1.35;
  margin-bottom: 8px;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.45;
  margin-bottom: 6px;
}

strong {
  font-weight: 600;
}

.hero-copy,
.section-head p,
.card-meta,
.small,
.status-note,
.bundle-ids {
  color: var(--muted);
}

.stat-block,
.summary-card,
.kpi-card,
.guardrail-item,
.starter-item,
.timeline-item,
.project-card,
.bundle-card {
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.stat-block {
  padding: 14px;
}

.label,
.tag,
.mini-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.label,
.mini-label {
  color: var(--muted);
  margin-bottom: 6px;
}

.quick-grid,
.split-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}

.quick-grid {
  grid-template-columns: 1.18fr 1fr;
  padding: 20px;
}

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

.panel {
  padding: 20px;
  margin-bottom: 20px;
}

.filters {
  display: grid;
  gap: 10px;
}

input[type="search"] {
  width: 100%;
  border: 1px solid var(--line-strong);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  background: #fffdf9;
  outline: none;
}

input[type="search"]:focus {
  border-color: var(--accent-2);
}

.pill-row,
.channels,
.monetization,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill,
.tag,
.status-button,
.shortlist-button,
.bundle-button {
  border: 1px solid var(--line-strong);
  background: #fffdf9;
  padding: 7px 10px;
  font-size: 12px;
  color: var(--text);
}

.pill,
.status-button,
.shortlist-button,
.bundle-button {
  cursor: pointer;
}

.pill.active,
.status-button,
.shortlist-button.active,
.bundle-button {
  background: var(--text);
  color: #fff8ef;
}

.summary-grid,
.cards-grid {
  display: grid;
  gap: 12px;
}

.summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.summary-card,
.kpi-card,
.guardrail-item,
.starter-item,
.timeline-item,
.project-card,
.bundle-card {
  padding: 14px;
}

.project-card,
.bundle-card {
  display: grid;
  gap: 12px;
}

.project-card.shortlisted {
  border-color: rgba(185, 71, 40, 0.72);
  box-shadow: inset 3px 0 0 var(--accent);
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.card-head h3 {
  margin-bottom: 6px;
}

.track-badge {
  padding: 5px 8px;
  color: #fff9f2;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.5;
}

.track-content {
  background: var(--accent);
}

.track-tools {
  background: var(--accent-2);
}

.track-plugins {
  background: var(--accent-5);
}

.track-assets {
  background: var(--accent-3);
}

.track-intel {
  background: var(--accent-4);
}

.status-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

.timeline,
.kpi-stack,
.guardrail-list,
.starter-list {
  display: grid;
  gap: 10px;
}

.timeline-item strong,
.summary-card strong,
.kpi-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.status-button,
.shortlist-button,
.bundle-button {
  padding: 8px 10px;
}

.bundle-ids,
.code-chip {
  font-family: Menlo, Consolas, monospace;
  font-size: 11px;
}

.status-note {
  font-size: 12px;
}

@media (max-width: 980px) {
  .hero,
  .quick-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .page-shell {
    padding: 16px;
  }
}
