:root {
  color: #19212b;
  background: #f4f6f8;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  --ink: #19212b;
  --muted: #687482;
  --line: #d9e0e7;
  --paper: #ffffff;
  --accent: #0d6b68;
  --accent-soft: #e3f1ef;
  --warning: #8b5e00;
  --warning-soft: #fff5d9;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, select { font: inherit; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner, .page-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.header-inner { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 28px 0 24px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: 2.25rem; letter-spacing: 0; }
h2 { margin-bottom: 0; font-size: 1rem; letter-spacing: 0; }
.eyebrow { margin-bottom: 8px; color: var(--accent); font-size: .76rem; font-weight: 700; }
.header-detail, .section-heading span, .card-heading small, .section-empty { color: var(--muted); }
.header-detail { margin-bottom: 0; }
.selectors { display: flex; gap: 12px; min-width: min(100%, 420px); }
.field { display: grid; gap: 5px; flex: 1; }
label { color: var(--muted); font-size: .78rem; font-weight: 700; }
select { min-height: 42px; padding: 0 34px 0 12px; color: var(--ink); background: var(--paper); border: 1px solid #aebbc7; border-radius: 5px; }
select:focus-visible { outline: 3px solid #9dd8d1; outline-offset: 2px; }

.page-shell { padding: 24px 0 64px; }
.state-panel { display: grid; gap: 4px; margin-bottom: 16px; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--paper); }
.state-panel span { color: var(--muted); }
.state-panel[hidden] { display: none; }
.stale-state { border-left-color: var(--warning); background: var(--warning-soft); }
.status-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-bottom: 20px; border: 1px solid var(--line); background: var(--line); }
.status-item { display: grid; gap: 4px; min-height: 82px; padding: 14px; background: var(--paper); }
.status-item span { color: var(--muted); font-size: .78rem; }
.status-item strong { overflow-wrap: anywhere; }
.forecast-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.forecast-card { min-height: 156px; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.forecast-card.primary { border-top: 4px solid var(--accent); }
.card-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 26px; font-weight: 700; }
.card-heading small { font-weight: 500; }
.card-value { display: block; min-height: 32px; font-size: 1.45rem; }
.card-detail { margin: 5px 0 0; color: var(--muted); font-size: .9rem; }
.content-section { margin-top: 14px; padding: 18px; border-top: 1px solid var(--line); background: var(--paper); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.chart-placeholder, .section-empty { min-height: 68px; padding: 20px; border: 1px dashed #bbc6cf; color: var(--muted); background: #fafbfc; }
.details-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.details-list div { padding-top: 10px; border-top: 1px solid var(--line); }
dt { color: var(--muted); font-size: .8rem; }
dd { margin: 4px 0 0; font-weight: 600; }

@media (max-width: 760px) {
  .header-inner { display: grid; align-items: start; padding-top: 22px; }
  .selectors { width: 100%; min-width: 0; }
  .status-strip, .forecast-grid { grid-template-columns: 1fr; }
  .status-item { min-height: 0; }
  .forecast-card { min-height: 132px; }
  .details-list { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 420px) {
  .header-inner, .page-shell { width: min(100% - 24px, 1180px); }
  .selectors { display: grid; grid-template-columns: 1fr; }
  .content-section, .forecast-card { padding: 15px; }
}
