:root {
  --bg: #f9f8f5;
  --line: #e7e4de;
  --line-soft: #f1efea;
  --text: #0f172a;
  --muted: #64748b;
  --teal: #059669;
  --red: #e34948;
  --neg: #dc2626;
  --pos: #16a34a;
  --track: #f1efea;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(180deg, #fdfdfb 0%, #f9f8f5 55%, #f6f4f0 100%);
  color: var(--text);
  font: 14px/1.45 "PingFang SC", "Microsoft YaHei", "WenQuanYi Micro Hei", "Noto Sans CJK SC", sans-serif;
}
.top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  height: 64px; padding: 0 28px; background: rgba(255,255,255,.72); border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; }
.brand strong { font-size: 18px; }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(160deg, #34d399, #059669); }
nav { display: flex; gap: 8px; }
nav a { color: var(--text); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
nav a[aria-current="page"] { background: #fff; font-weight: 700; }
main { width: min(1180px, calc(100% - 32px)); margin: 16px auto 40px; }
h1 { font-size: 22px; margin: 8px 0 12px; }
.fixture, .notice, .flag, .hint, .real-source { border-radius: 10px; padding: 8px 10px; }
.fixture { background: #fff6d8; border: 1px solid #e6c56a; }
.real-source { background: #fde8e4; border: 1px solid #c4564a; font-weight: 700; }
.notice { background: #fde8e4; }
.flag, .hint { background: #f4fbf7; color: #047857; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 860px; }
.data-table thead { background: #f9f8f5; }
.data-table th { padding: 10px 12px; color: #64748b; font-size: 13px; font-weight: 600; text-align: left; white-space: nowrap; }
.data-table td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; white-space: nowrap; }
.data-table tbody tr:hover { background: rgba(5,150,105,.05); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .center { text-align: center; }
.data-table .neg { color: var(--neg); font-weight: 650; }
.data-table .pos { color: var(--pos); font-weight: 650; }
.data-table .mut, .mut { color: #94a3b8; }
.data-table .cur, .gap { margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 650; }
.data-table tr.row-void td { color: #94a3b8; }
.sum { max-width: 340px; }
.sum-text { display: inline-block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.ev-badge, .issue-flag { margin-left: 6px; color: var(--teal); font-size: 12px; }
.ok-tag { color: #16a34a; font-weight: 700; }
.act-link, .act-danger { border: 0; background: transparent; font: inherit; font-size: 13.5px; cursor: pointer; padding: 0; }
.act-link { color: var(--teal); }
.act-danger { color: var(--red); margin-left: 8px; }
.ops { white-space: nowrap; }
.row-pop { display: inline; }
.row-pop > summary { display: inline; list-style: none; }
.check form { display: inline; }
.check-btn { margin: 0; padding: 0; border: 0; background: transparent; color: var(--teal); font: inherit; font-weight: 700; cursor: pointer; }
.row-pop > summary::-webkit-details-marker { display: none; }
.pop { margin-top: 8px; white-space: normal; }
.fields { display: grid; grid-template-columns: repeat(3, minmax(140px, 1fr)); gap: 8px; }
.field { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
input, select { font: inherit; padding: 6px 8px; border: 1px solid #cfd8d4; border-radius: 8px; }
button[type="submit"] { margin-top: 8px; }
.months { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.months a { color: var(--text); text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: #fff; }
.months a[aria-current="true"] { border-color: var(--teal); color: #047857; font-weight: 700; }
.month-label, .rule { color: var(--muted); margin: 0 0 8px; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 8px 0 18px; }
.hero-num { margin: 0; font-size: 56px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-num.neg { color: var(--neg); }
.cur-label { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.aside { margin-top: 18px; color: var(--muted); }
.month-core h2 { margin: 0 0 4px; font-size: 16px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 12px 0; }
.counts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; list-style: none; margin: 0; padding: 0; }
.counts span { color: var(--muted); font-size: 13px; }
.counts strong { display: block; font-size: 22px; }
.hbars { display: grid; gap: 12px; }
.hbar-row { display: grid; grid-template-columns: 120px 1fr 160px; align-items: center; gap: 12px; }
.bar-track { height: 10px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--teal); border-radius: 999px; }
.hbar-value { text-align: right; }
.source { display: grid; grid-template-columns: 7em 1fr; gap: 4px 8px; }
.source dd { margin: 0; overflow-wrap: anywhere; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
:focus-visible { outline: 3px solid rgba(5,150,105,.35); outline-offset: 2px; }
@media (max-width: 720px) {
  .top { height: auto; padding: 12px; flex-direction: column; align-items: flex-start; }
  main { width: calc(100% - 16px); }
  .data-table { min-width: 0; }
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; white-space: normal; }
  .data-table tr { padding: 8px 0 12px; border-bottom: 1px solid var(--line-soft); }
  .data-table td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 8px; }
  .data-table td::before { content: attr(data-label); color: var(--muted); flex: none; }
  .sum-text { max-width: 58vw; }
  .hbar-row { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
}
