:root {
  color: #17282a;
  background: #f2f5f3;
  font: 16px/1.5 system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 66rem; margin: 0 auto; padding: 4.5rem 2rem 3rem; }
h1, h2, p { margin: 0; }

.region {
  margin-bottom: .7rem;
  color: #396861;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
}

h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); line-height: 1.18; }
.spec { margin-top: 1rem; color: #4c6260; }
.spec span { font-weight: 700; color: #21433e; margin: 0 .55rem; white-space: nowrap; }

.status-card {
  display: grid;
  grid-template-columns: 1.65fr .75fr 1fr;
  margin: 2.1rem 0 2.35rem;
  border-radius: 1rem;
  color: #f2faf6;
  background: #173736;
}

.current, .metric { padding: 1.5rem 1.65rem; min-width: 0; }
.metric { border-left: 1px solid #ffffff26; }
.label, .detail { color: #b7d1c9; font-size: .84rem; }
.label { display: flex; align-items: center; gap: .5rem; margin-bottom: .45rem; }
.current h2, .metric-value { font-size: 1.65rem; font-weight: 700; line-height: 1.2; }
.metric-value { font-variant-numeric: tabular-nums; }
.detail:not(:empty) { margin-top: .55rem; }
.signal { width: .55rem; height: .55rem; border-radius: 50%; background: #b7d1c9; }
.signal[data-status="waiting"], .signal[data-status="retrying"] { background: #ffe09c; }
.signal[data-status="ready"] { background: #8aebba; }
.signal[data-status="failed"] { background: #ffb5a7; }

.history header { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; margin-bottom: .8rem; }
.history h2 { font-size: 1.16rem; }
.history header p, .history footer { color: #4c6260; font-size: .83rem; }
.history footer { margin-top: .85rem; }

table {
  width: 100%;
  border: 1px solid #d9e3df;
  border-spacing: 0;
  border-radius: .8rem;
  overflow: hidden;
  background: #fff;
  text-align: left;
  font-size: .94rem;
  font-variant-numeric: tabular-nums;
}

th, td { padding: .8rem 1.15rem; }
th { background: #e7eeea; color: #334945; font-size: .83rem; }
tr + tr td { border-top: 1px solid #e3ebe7; }
.outcome { font-weight: 600; }
.outcome[data-outcome="capacity"] { color: #825315; }
.outcome[data-outcome="ready"] { color: #226444; }
.outcome[data-outcome="failed"] { color: #943b2d; }

@media (max-width: 40rem) {
  main { padding: 2.25rem 1rem 2rem; }
  .spec { font-size: .89rem; }
  .spec span { margin: 0 .25rem; }
  .status-card { grid-template-columns: 1fr 1fr; margin: 1.6rem 0 1.8rem; }
  .current { grid-column: 1/-1; border-bottom: 1px solid #ffffff26; }
  .current, .metric { padding: 1.15rem; }
  .current + .metric { border-left: 0; }
  th, td { padding: .7rem .65rem; }
}
