:root {
  color-scheme: light;
  --ink: #171918;
  --muted: #6f7672;
  --line: #d9ddda;
  --surface: #ffffff;
  --soft: #f4f6f5;
  --green: #087a46;
  --yellow: #9b6808;
  --red: #b63838;
  --blue: #276d9b;
}

* { box-sizing: border-box; letter-spacing: 0; }
body {
  margin: 0;
  background: #eef1ef;
  color: var(--ink);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
}
.hidden { display: none !important; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}
.brand, .brand > div, .topbar nav, .overall { display: flex; align-items: center; }
.brand { gap: 10px; }
.brand > div { align-items: flex-start; flex-direction: column; line-height: 1.15; }
.brand > div span { color: var(--muted); font-size: 11px; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #27302b;
  color: white;
}
.brand-mark svg, .icon-button svg { width: 18px; height: 18px; }
.topbar nav { gap: 6px; }
.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #333936;
  cursor: pointer;
}
.icon-button:hover { border-color: var(--line); background: var(--soft); }
.shell { width: min(1180px, calc(100% - 32px)); margin: 24px auto 48px; }
.summary-band {
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}
.overall { gap: 12px; }
.overall > div { display: grid; gap: 3px; }
.eyebrow { color: var(--muted); font-size: 11px; }
.overall strong { font-size: 20px; }
.status-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--muted); }
.status-dot.healthy { background: var(--green); }
.status-dot.warning { background: var(--yellow); }
.status-dot.critical { background: var(--red); }
.summary-metrics { display: grid; grid-template-columns: repeat(4, minmax(100px, 1fr)); margin: 0; }
.summary-metrics > div { padding: 0 18px; border-left: 1px solid var(--line); }
dt { color: var(--muted); font-size: 12px; }
dd { margin: 5px 0 0; font-weight: 650; }
.summary-metrics dd { font-size: 20px; }
.updated-at { position: absolute; right: 12px; bottom: 7px; color: #939994; font-size: 10px; }
.section { margin-top: 16px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
h2 { margin: 0; font-size: 15px; }
.section-heading span { color: var(--muted); font-size: 12px; }
.alert-list { display: grid; gap: 8px; }
.alert-item { display: grid; grid-template-columns: 8px 180px 1fr; gap: 10px; align-items: center; min-height: 34px; padding: 6px 10px; background: var(--soft); }
.alert-item > span:first-child { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.alert-item.critical > span:first-child { background: var(--red); }
.alert-item .detail { color: var(--muted); overflow-wrap: anywhere; }
.empty { color: var(--muted); padding: 6px 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { padding: 10px 12px; border-top: 1px solid #e6e9e7; text-align: left; }
th { color: var(--muted); font-size: 11px; font-weight: 500; }
.state-label { font-weight: 600; }
.state-label.healthy { color: var(--green); }
.state-label.warning { color: var(--yellow); }
.state-label.critical { color: var(--red); }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.detail-list { margin: 0; }
.detail-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-top: 1px solid #e6e9e7; }
.detail-list dd { text-align: right; }
.auth-state { min-height: calc(100vh - 64px); display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); }
.auth-state svg { width: 28px; height: 28px; }
.auth-state a { color: var(--blue); }
@media (max-width: 760px) {
  .topbar { padding: 0 14px; }
  .shell { width: calc(100% - 20px); margin-top: 10px; }
  .summary-band { grid-template-columns: 1fr; padding: 18px; }
  .summary-metrics { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .summary-metrics > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .section { padding: 16px; }
  .two-column { grid-template-columns: 1fr; gap: 24px; }
  .alert-item { grid-template-columns: 8px 1fr; }
  .alert-item .detail { grid-column: 2; }
}
