:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #252b35; background: #f6f7f9; font-synthesis: none;
  --accent: #e8682c; --border: #e8ebef; --muted: #7a818d;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { border: 1px solid var(--border); border-radius: 8px; background: white; padding: 9px 15px; color: #49515e; }
button:hover { border-color: var(--accent); color: var(--accent); }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 3px solid #f7bb9b; outline-offset: 3px; }
.shell { max-width: 1320px; margin: auto; padding: 0 36px; }
.header { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: white; background: var(--accent); border-radius: 11px; font-size: 20px; }
.identity { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.identity a { color: var(--accent); white-space: nowrap; }
.report-nav { display: flex; gap: 28px; border-bottom: 1px solid var(--border); }
.report-nav a { padding: 23px 0 18px; color: var(--muted); border-bottom: 2px solid transparent; font-size: 14px; }
.report-nav a[aria-current] { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 35px 0 25px; }
.eyebrow { color: var(--accent); font-size: 10px; letter-spacing: 2px; font-weight: 700; margin: 0 0 10px; }
h1 { margin: 0 0 10px; font-size: 29px; letter-spacing: -.5px; }
h2 { font-size: 16px; margin: 0; font-weight: 650; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; }
.badge { color: var(--accent); background: #fff0e7; border: 1px solid #f9ddcc; border-radius: 6px; padding: 7px 11px; font-size: 12px; white-space: nowrap; }
.message { margin: 0 0 20px; padding: 13px 16px; background: #fff2ed; color: #b94a26; border: 1px solid #f6d5c5; border-radius: 9px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.primary-button { background: var(--accent); color: white; border-color: var(--accent); font-weight: 600; height: 39px; }
.primary-button:hover { background: #d95d23; color: white; }
.filters { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; padding: 22px; background: white; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 26px; }
.filters input { width: 170px; }
.filters select { width: 200px; }
label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: #65707c; }
input, select { min-width: 0; height: 39px; border: 1px solid #dde2e8; border-radius: 7px; padding: 8px 11px; background: white; color: #343d4a; }
.presets { display: flex; gap: 4px; align-items: center; padding: 0 0 3px 4px; }
.presets button { font-size: 12px; border: none; background: #f5f6f8; padding: 8px 10px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.section-heading .muted { margin-top: 5px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
.metric-card { background: white; border: 1px solid var(--border); border-radius: 11px; padding: 23px 21px; min-height: 118px; }
.metric-card .metric-label { margin: 0 0 15px; color: #7d8590; font-size: 12px; }
.metric-value { font-size: 27px; letter-spacing: -.6px; font-weight: 650; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.metric-card.money .metric-value { color: var(--accent); font-size: 24px; }
.footnote { font-size: 11px; color: #8c939e; margin: 18px 1px 0; line-height: 1.9; }
.footer { display: flex; justify-content: space-between; padding: 40px 0 28px; color: #a3a9b2; font-size: 11px; }
#report-section[aria-busy="true"] .summary-grid { opacity: .55; }
@media (max-width: 1000px) {
  .shell { padding: 0 22px; }
  .summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .presets { padding-left: 0; }
}
@media (max-width: 640px) {
  .shell { padding: 0 16px; }
  .header { height: 76px; gap: 10px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand-mark { width: 31px; height: 31px; font-size: 17px; }
  .identity { font-size: 11px; gap: 9px; max-width: 45%; }
  .intro { padding-top: 28px; }
  h1 { font-size: 25px; }
  .intro .muted { font-size: 11px; }
  .badge { font-size: 10px; }
  .filters { padding: 17px; gap: 13px; }
  .filters label { width: calc(50% - 7px); }
  .filters #sid-filter { width: 100%; }
  .filters input, .filters select { width: 100%; }
  .filters .primary-button { flex: 1; }
  .presets { flex-wrap: wrap; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric-card { padding: 18px 15px; min-height: 108px; }
  .metric-value { font-size: 23px; }
  .metric-card.money .metric-value { font-size: 21px; }
  .section-heading { flex-wrap: wrap; align-items: start; gap: 6px; }
}
