:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #182c43;
  background: #f3f7fb;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.page { max-width: 1100px; margin: auto; padding: 52px 28px 30px; }
.top, .heading, .matrix-title { display: flex; align-items: center; gap: 18px; }
.top, .matrix-title { justify-content: space-between; }
.top { margin-bottom: 28px; }
.mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex: 0 0 44px;
  background: #e0edff;
  border-radius: 12px;
}
.mark i { background: #1c66c4; border-radius: 1px; }
.mark i:last-child { background: #56a3fb; }
h1 { margin: 0 0 6px; font-size: clamp(1.35rem, 3.1vw, 2.05rem); letter-spacing: -.025em; }
h2 { margin: 0; font-size: 1.06rem; }
p { margin: 0; }
.heading p, footer, .dim, small, time { color: #52677f; }
.heading p, button, .message, time { font-size: .86rem; }
button, input { font: inherit; }
button {
  padding: 10px 15px;
  border: 1px solid #145ab6;
  border-radius: 8px;
  color: white;
  background: #155fbe;
  white-space: nowrap;
  cursor: pointer;
}
button:hover { background: #104c9a; }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 3px solid #5597e9; outline-offset: 3px; }
.panel { border: 1px solid #dce6f1; border-radius: 14px; background: #fff; }
.access { max-width: 470px; padding: 23px; }
.access label { display: block; margin: 17px 0 7px; font-size: .88rem; }
.access-controls { display: flex; gap: 10px; }
input {
  min-width: 0;
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #b7c9df;
  border-radius: 8px;
  color: inherit;
}
.message { margin: 0 0 16px; line-height: 1.6; }
.access:not([hidden]) + .message { margin-top: 12px; }
.message.error { color: #a32e30; }
.health, .billing { margin-bottom: 18px; }
.panel-message { margin: 0 22px 14px; }
.vm-facts, .billing-facts {
  display: grid;
  margin: 0;
  padding: 0 22px 16px;
  gap: 12px 17px;
}
.vm-facts { grid-template-columns: .8fr 1.2fr 1.55fr 1.4fr 1fr; }
.vm-facts dt, .billing-facts dt, .load-values dt { color: #52677f; font-size: .76rem; }
.vm-facts dd, .billing-facts dd, .load-values dd {
  margin: 4px 0 0;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.vm-facts dd { overflow-wrap: anywhere; font-size: .86rem; }
.health-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 22px 19px;
}
.health-metric { padding: 11px 13px; border-radius: 9px; background: #f3f7fc; }
.health-metric h3 { margin: 0; color: #385470; font-size: .81rem; font-weight: 600; }
.health-metric > strong { display: block; margin: 6px 0 4px; font-size: 1.28rem; font-variant-numeric: tabular-nums; }
.health-metric meter { display: block; width: 100%; height: 10px; accent-color: #1c66c4; }
.health-metric meter::-webkit-meter-bar { border: 0; border-radius: 8px; background: #d8e7f8; }
.health-metric meter::-webkit-meter-optimum-value { border-radius: 8px; background: #1c66c4; }
.load-values { display: flex; flex-wrap: wrap; gap: 7px 13px; margin: 8px 0 0; }
.load-values dd { font-size: .93rem; }
.billing-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.billing-facts dd { color: #0b5cb8; font-size: 1.35rem; }
.billing-facts dd.dim { color: #52677f; font-size: .76rem; font-weight: 400; }
.billing-note { padding: 10px 22px 14px; color: #52677f; font-size: .76rem; line-height: 1.6; }
.billing-table td { width: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.billing-table td:last-child { font-weight: 650; }
.summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric { padding: 18px 22px; }
.metric h2 { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
small { font-size: .75rem; font-weight: 500; }
.metric-value { margin-top: 8px; color: #52677f; font-size: .84rem; }
.metric strong { margin-right: 2px; color: #0b5cb8; font-size: 1.9rem; font-variant-numeric: tabular-nums; }
.matrix { overflow: hidden; }
.matrix-title { padding: 17px 22px; }
.matrix-content { overflow-x: auto; }
table { width: 100%; min-width: 620px; border-collapse: collapse; line-height: 1.42; }
th, td { padding: 14px 18px; text-align: left; vertical-align: top; }
thead th { background: #ebf3fd; color: #324e6d; font-size: .83rem; white-space: nowrap; }
tbody th, td { border-top: 1px solid #e6edf6; font-size: .87rem; }
tbody th { width: 23%; }
#report td:nth-child(2), #report td:nth-child(3) { width: 28%; }
td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.dim { display: block; margin-top: 4px; font-size: .76rem; font-weight: 400; }
.pill { display: inline-block; border-radius: 999px; padding: 3px 9px; font-weight: 650; font-size: .76rem; }
.eligible { background: #e4f6ed; color: #176341; }
.blocked { background: #fbecec; color: #96373c; }
.unknown { background: #fff4df; color: #805407; }
footer { margin-top: 17px; font-size: .8rem; line-height: 1.7; }
footer p + p { margin-top: 4px; }
a { color: #115eb8; }

@media (max-width: 650px) {
  .page { padding: 24px 15px; }
  .top, .heading { gap: 11px; }
  .top { flex-wrap: wrap; margin-bottom: 18px; }
  .top button { margin-left: 55px; }
  .summary { gap: 9px; }
  .vm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vm-facts, .billing-facts, .health-metrics { padding: 0 12px 12px; }
  .health-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .panel-message, .billing-note { margin-left: 0; padding-left: 12px; padding-right: 12px; }
  .metric, .matrix-title { padding: 12px; }
  .matrix-title { align-items: flex-start; flex-wrap: wrap; gap: 6px; }
  .matrix-content { overflow-x: visible; }
  table, tbody { display: block; min-width: 0; }
  thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  tbody tr { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #e6edf6; padding: 4px 6px; }
  tbody th, td, #report td:nth-child(2), #report td:nth-child(3) { width: auto; border: 0; padding: 8px; }
  tbody th { grid-column: span 2; }
  td:last-child { grid-column: span 2; }
  td::before { content: attr(data-label); display: block; color: #52677f; font-size: .75rem; margin-bottom: 3px; }
  .billing-table td:last-child { grid-column: auto; }
}
