:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --ink: #17202a;
  --muted: #607087;
  --line: #d9e0ea;
  --green: #0f766e;
  --blue: #2563eb;
  --amber: #b7791f;
  --red: #b42318;
  --slate: #334155;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
}

h1,
h2,
p {
  margin: 0;
  letter-spacing: 0;
}

.site-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 28px 32px 22px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.18;
  margin-top: 4px;
}

.lead {
  color: var(--muted);
  font-size: 15px;
  margin-top: 8px;
  max-width: 760px;
}

.asof {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 20px 40px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  padding: 14px;
  min-height: 86px;
}

.metric .label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric .value {
  font-size: 22px;
  font-weight: 800;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.metric .sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.positive {
  color: var(--green);
}

.negative {
  color: var(--red);
}

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

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

h2 {
  font-size: 17px;
}

.panel-head p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.chart {
  min-height: 330px;
}

svg {
  width: 100%;
  height: auto;
  display: block;
}

.axis,
.grid-line {
  stroke: var(--line);
  stroke-width: 1;
}

.line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 8px;
}

.legend span {
  color: var(--muted);
  font-size: 12px;
}

.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

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

.bar-row {
  display: grid;
  grid-template-columns: minmax(92px, 150px) 1fr minmax(70px, auto);
  align-items: center;
  gap: 10px;
  min-height: 32px;
}

.bar-label {
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.bar-track {
  height: 12px;
  background: #e9edf3;
  border-radius: 6px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 6px;
  background: var(--blue);
  min-width: 2px;
}

.bar-value {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

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

.list-item {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.list-item:first-child {
  border-top: none;
  padding-top: 0;
}

.item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
}

.item-body {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 4px;
}

.empty {
  color: var(--muted);
  font-size: 13px;
  padding: 16px 0;
}

.notice {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

@media (max-width: 860px) {
  .site-head {
    display: block;
    padding: 22px 18px;
  }

  .asof {
    margin-top: 12px;
    white-space: normal;
  }

  main {
    padding: 16px 12px 32px;
  }

  .metrics,
  .grid {
    grid-template-columns: 1fr;
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .bar-value {
    text-align: left;
  }
}
