:root {
  --bg: #f4f6f3;
  --surface: #ffffff;
  --ink: #17201c;
  --muted: #66736c;
  --line: #dce3de;
  --green: #0b6b4f;
  --green-soft: #e7f3ed;
  --blue: #235a89;
  --amber: #9a6400;
  --amber-soft: #fff4d9;
  --red: #a33a32;
  --shadow: 0 1px 2px rgba(18, 40, 28, .05), 0 8px 24px rgba(18, 40, 28, .04);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); }
button, a { font: inherit; }
button { color: inherit; }
.app-header { height: 68px; padding: 0 28px; display: grid; grid-template-columns: 220px 1fr 180px; align-items: center; gap: 20px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--ink); border-radius: 7px; font-weight: 800; font-size: 21px; }
.brand strong, .brand small { display: block; line-height: 1.15; letter-spacing: 0; }
.brand strong { font-size: 17px; }
.brand small { font-size: 11px; color: var(--muted); margin-top: 3px; }
.module-tabs { display: flex; height: 100%; justify-content: center; gap: 6px; }
.module-tab { border: 0; background: transparent; min-width: 132px; padding: 0 16px; display: flex; gap: 8px; align-items: center; justify-content: center; border-bottom: 3px solid transparent; cursor: pointer; color: var(--muted); }
.module-tab svg { width: 18px; height: 18px; }
.module-tab:hover { color: var(--ink); background: #f8faf8; }
.module-tab.active { color: var(--green); border-color: var(--green); font-weight: 700; }
.header-status { justify-self: end; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #d19a28; box-shadow: 0 0 0 3px #f8ebce; }
main { width: min(1440px, 100%); margin: 0 auto; padding: 30px 32px 64px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.eyebrow { margin: 0 0 6px; color: var(--green); font-size: 12px; font-weight: 800; text-transform: uppercase; }
h1 { margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: 0; }
h2 { margin: 0; font-size: 16px; line-height: 1.3; letter-spacing: 0; }
.state-badge { padding: 6px 10px; border-radius: 6px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.state-badge.shadow { color: var(--amber); background: var(--amber-soft); border: 1px solid #eed69f; }
.state-badge.frozen { color: var(--blue); background: #e9f1f8; border: 1px solid #bfd2e5; }
.metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 8px; margin-bottom: 20px; }
.metric-strip article { min-width: 0; padding: 18px 20px; border-right: 1px solid var(--line); }
.metric-strip article:last-child { border-right: 0; }
.metric-strip span, .metric-strip small { display: block; color: var(--muted); font-size: 12px; }
.metric-strip strong { display: block; margin: 7px 0 4px; font-size: 23px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-strip strong.compact { font-size: 14px; height: 28px; display: flex; align-items: center; }
.view-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.view-tab { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 12px 18px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.view-tab.active { color: var(--green); border-color: var(--green); font-weight: 700; }
.content-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 16px; }
.data-section { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.section-title { min-height: 68px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.section-title p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.section-title > svg { color: var(--muted); width: 20px; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.icon-button:hover { border-color: var(--green); color: var(--green); }
.icon-button svg { width: 16px; height: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 11px 16px; color: var(--muted); background: #f8faf8; text-align: left; font-weight: 700; white-space: nowrap; }
td { padding: 13px 16px; border-top: 1px solid #edf1ee; white-space: nowrap; }
td.empty { text-align: center; color: var(--muted); padding: 38px 16px; }
.evidence-list { margin: 0; padding: 8px 18px 16px; }
.evidence-list div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid #edf1ee; }
.evidence-list div:last-child { border-bottom: 0; }
.evidence-list dt { color: var(--muted); }
.evidence-list dd { margin: 0; font-weight: 700; text-align: right; }
.evidence-list.horizontal { display: grid; grid-template-columns: repeat(5, 1fr); padding: 18px; }
.evidence-list.horizontal div { display: block; border: 0; border-right: 1px solid var(--line); padding: 0 18px; }
.evidence-list.horizontal div:first-child { padding-left: 0; }
.evidence-list.horizontal div:last-child { border: 0; }
.evidence-list.horizontal dd { text-align: left; margin-top: 7px; }
.check-list { list-style: none; margin: 0; padding: 12px 18px 18px; }
.check-list li { display: flex; gap: 9px; align-items: center; padding: 9px 0; }
.check-list svg { width: 16px; color: var(--green); }
.empty-block { padding: 42px 18px; text-align: center; color: var(--muted); }
.research-item { border-top: 1px solid var(--line); padding: 16px 18px; overflow-wrap: anywhere; }
.research-item summary { cursor: pointer; line-height: 1.8; }
.research-item p, .data-section > p { font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.data-section > p { margin: 12px 18px; color: var(--muted); }
.research-verdict { margin: 12px 18px; padding: 12px 0; color: #9b2739; font-size: 14px; line-height: 1.7; border-bottom: 1px solid var(--line); }
[hidden] { display: none !important; }
.gap-list { padding: 12px 18px; }
.gap-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.gap-item:last-child { border: 0; }
.gap-item strong { display: block; font-size: 13px; }
.gap-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.budget-row { display: grid; grid-template-columns: repeat(4, 1fr); padding: 22px 18px; gap: 16px; }
.budget-row div { border-left: 3px solid var(--green); padding: 4px 12px; }
.budget-row span, .budget-row strong { display: block; }
.budget-row span { color: var(--muted); font-size: 12px; }
.budget-row strong { margin-top: 7px; font-size: 18px; }
.legacy-callout { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.legacy-callout > svg { color: var(--blue); }
.legacy-callout p { margin: 5px 0 0; color: var(--muted); }
.primary-action { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: #fff; background: var(--green); border-radius: 6px; text-decoration: none; font-weight: 700; }
.primary-action svg { width: 16px; }
.notice { position: fixed; right: 24px; bottom: 24px; max-width: 420px; display: flex; gap: 10px; padding: 12px 14px; color: #623c00; background: var(--amber-soft); border: 1px solid #e5c77f; border-radius: 7px; box-shadow: var(--shadow); font-size: 13px; }
.notice svg { width: 18px; flex: 0 0 auto; }
@media (max-width: 900px) {
  .app-header { height: auto; min-height: 64px; padding: 10px 16px; grid-template-columns: 1fr auto; }
  .module-tabs { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; }
  .module-tab { height: 44px; min-width: 128px; }
  .header-status { grid-column: 2; grid-row: 1; }
  main { padding: 22px 16px 50px; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .metric-strip article:nth-child(2) { border-right: 0; }
  .metric-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .content-grid { grid-template-columns: 1fr; }
  .evidence-list.horizontal, .budget-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .brand small, .header-status span:last-child, .module-tab svg { display: none; }
  .module-tabs { width: calc(100vw - 32px); }
  .module-tab { min-width: 110px; padding: 0 10px; }
  h1 { font-size: 23px; }
  .metric-strip article { padding: 14px; }
  .metric-strip strong { font-size: 19px; }
  .section-heading { align-items: flex-start; }
  .evidence-list.horizontal, .budget-row { grid-template-columns: 1fr; }
  .evidence-list.horizontal div { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .legacy-callout { grid-template-columns: 32px 1fr; }
  .legacy-callout .primary-action { grid-column: 1 / -1; justify-content: center; }
}
