:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #162438;
  background: #f4f6f9;
  font-synthesis: none;
  font-optical-sizing: auto;
  --line: #dfe6ee;
  --muted: #52647a;
  --accent: #2c5ee8;
  --green: #146b53;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.top { background: #fdfefe; border-bottom: 1px solid var(--line); }
.top-inner { min-height: 66px; display: flex; align-items: center; gap: 20px; }
.identity, .frequency { display: flex; align-items: center; gap: 10px; }
.identity { font-weight: 740; font-size: 15px; white-space: nowrap; }
.brand { height: 30px; width: 30px; border-radius: 8px; background: #2457e5; display: flex; align-items: center; justify-content: center; gap: 3px; }
.brand i { width: 2px; height: 7px; border-radius: 3px; background: white; }
.brand i:nth-child(2) { height: 16px; }
.brand i:nth-child(3) { height: 11px; }
.frequency { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.page-nav { display: flex; align-self: stretch; gap: 4px; margin-left: 17px; }
.page-nav a { display: grid; align-items: center; border-bottom: 2px solid transparent; padding: 2px 13px 0; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.page-nav a:hover { background: #f4f7ff; color: #2454c9; }
.page-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: #2454c9; }
.page-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.clock { width: 13px; height: 13px; border: 1.5px solid #667b95; border-radius: 50%; position: relative; }
.clock::before { content: ""; position: absolute; left: 4px; top: 2px; width: 3px; height: 4px; border-left: 1px solid #667b95; border-bottom: 1px solid #667b95; }
.intro { padding-block: 46px 29px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 11px var(--mono); letter-spacing: .15em; color: #2454c9; }
.eyebrow span { width: 13px; height: 2px; border-radius: 2px; background: #2c5ee8; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
h1 { font-size: clamp(30px, 6vw, 44px); letter-spacing: -.055em; line-height: 1.2; margin: 10px 0; }
.intro p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.updated { display: grid; gap: 6px; text-align: right; color: var(--muted); font-size: 12px; }
.updated time { font: 600 14px var(--mono); color: #243b56; white-space: nowrap; }
.overview { display: grid; grid-template-columns: minmax(228px, 1fr) 2.15fr; gap: 24px; border: 1px solid #233f5c; padding: 24px; border-radius: 17px; background: linear-gradient(112deg, #112336, #152f49); color: #f1f6fd; }
.overview-intro { padding: 2px 6px; display: grid; align-content: center; justify-items: start; gap: 9px; }
.overview-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 680; color: #dbe7f5; }
.cluster-icon { margin-right: 2px; font-size: 20px; line-height: 15px; color: #9dc0ff; }
.version { color: #b9cce1; font: 12px var(--mono); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.stats > div { min-height: 96px; padding: 15px 14px; border: 1px solid #3a526d; border-radius: 10px; background: #243b54; display: grid; align-content: center; gap: 8px; }
.stats > div > span { color: #d3dfed; font-size: 12px; }
.stats strong { font-size: 24px; white-space: nowrap; line-height: 1; }
.stats [data-state="healthy"] { color: #9df0ca; }
.stats [data-state="down"] { color: #ffb7b4; }
.denominator { color: #a9bdd5; font-size: .65em; font-weight: 500; }
.section { margin-top: 31px; }
.nodes-section { margin-top: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; }
h2 { font-size: 21px; letter-spacing: -.03em; }
.section-heading > span { color: var(--muted); font-size: 12px; }
.namespace { font-family: var(--mono); }
.server-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.server, .table-wrap, .empty { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.server { min-width: 0; padding: 16px; }
.server-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.server-identity { min-width: 0; }
h3 { font: 700 clamp(12px, 1.4vw, 15px) var(--mono); overflow-wrap: anywhere; }
.roles { color: var(--muted); font-size: 11px; margin-top: 4px; }
.server-icon { display: grid; place-content: center; gap: 3px; width: 35px; height: 35px; border-radius: 8px; background: #eaf0ff; }
.server-icon i { position: relative; width: 16px; height: 6px; border: 1px solid #365fca; border-radius: 2px; }
.server-icon i::before { content: ""; position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #365fca; top: 1px; left: 2px; }
.state { width: max-content; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 650; padding: 4px 8px; white-space: nowrap; }
.state::before { content: ""; background: currentColor; width: 6px; height: 6px; border-radius: 50%; }
[data-state="healthy"].state { background: #e5f5ee; color: var(--green); }
[data-state="unknown"].state { background: #edf1f6; color: #495d76; }
[data-state="warning"].state { background: #fff1d8; color: #87520b; }
[data-state="down"].state { background: #fceaea; color: #a52c35; }
.overview [data-state="healthy"].state { background: #204d43; color: #b1f5d6; }
.metrics { margin-top: 21px; display: grid; gap: 14px; }
.metric { display: grid; gap: 6px; }
.metric-heading { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.metric-heading strong { font: 700 13px var(--mono); }
progress { appearance: none; width: 100%; height: 6px; border: none; background: #eaf0f6; border-radius: 20px; overflow: hidden; color: var(--accent); }
progress::-webkit-progress-bar { background: #eaf0f6; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 20px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 20px; }
progress[data-high]::-webkit-progress-value { background: #ba640d; }
progress[data-high]::-moz-progress-bar { background: #ba640d; }
.metric-detail, .server-footer { color: var(--muted); font: 11px var(--mono); }
.network { margin-top: 17px; border-radius: 8px; background: #f4f7fb; padding: 10px 11px; }
.network h4 { margin-bottom: 8px; font-size: 12px; }
.network-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.network-data > div + div { border-left: 1px solid var(--line); padding-left: 10px; }
.network-data dt { color: var(--muted); font-size: 11px; }
.network-data dd { font: 700 12px var(--mono); margin-top: 4px; overflow-wrap: anywhere; }
.section-note { margin-top: 12px; color: var(--muted); font-size: 12px; }
.server-footer { border-top: 1px solid #e7ecf2; margin-top: 15px; padding-top: 11px; display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.pressure { color: #87520b; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th, td { padding: 12px 15px; border-bottom: 1px solid #e7ecf2; }
th { background: #f9fbfd; color: var(--muted); font-size: 12px; white-space: nowrap; }
td:last-child, th:last-child { text-align: right; }
tr:last-child td { border-bottom: 0; }
.pod-name { font: 12px var(--mono); overflow-wrap: anywhere; }
.empty, .notice { grid-column: 1 / -1; padding: 16px; color: var(--muted); font-size: 13px; }
.notice { border: 1px solid #eed5a3; background: #fff5e3; color: #794605; border-radius: 8px; margin-bottom: 14px; }
footer { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); padding: 19px 0 26px; font-size: 11px; }
@media (max-width: 895px) {
  .server-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 32px); }
  .top-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding-top: 12px; }
  .page-nav { grid-row: 2; grid-column: 1 / -1; margin: 5px 0 0; min-height: 39px; }
  .page-nav a { padding-inline: 9px; }
  .frequency { grid-row: 1; grid-column: 2; }
  .intro { padding-block: 30px 21px; align-items: start; flex-direction: column; }
  .updated { display: flex; align-items: center; }
  .overview { grid-template-columns: 1fr; gap: 17px; padding: 15px; }
  .stats > div { min-height: 79px; padding: 10px 8px; }
  .stats strong { font-size: 19px; }
  h3 { font-size: 14px; }
  th, td { padding: 10px; }
}
