:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --ink: #161a1d;
  --muted: #66706b;
  --line: #dce2dc;
  --panel: #ffffff;
  --panel-soft: #eef6f1;
  --accent: #127c5d;
  --accent-ink: #ffffff;
  --warn: #a15c07;
  --bad: #b42318;
  --shadow: 0 18px 55px rgba(26, 35, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(18, 124, 93, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(195, 122, 39, 0.09), transparent 30%),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(960px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 38px 0 56px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0 26px;
}

.eyebrow,
.label,
dt {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 20px;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.service-state {
  min-width: 86px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 8px 14px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(26, 35, 31, 0.06);
}

.summary {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary > div,
.notice,
.login,
.node {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.summary > div {
  min-width: 0;
  padding: 18px;
}

.value {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  font-size: 24px;
  font-weight: 800;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.notice {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  padding: 18px;
}

.notice strong {
  font-size: 18px;
}

.notice span {
  color: var(--muted);
}

.login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(18, 124, 93, 0.14);
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0 18px;
  cursor: pointer;
  font-weight: 700;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.ghost-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 12px;
}

.node-list {
  display: grid;
  gap: 12px;
}

.node {
  padding: 18px;
}

.node-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.node-main p {
  margin-bottom: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
}

.status.on {
  background: var(--panel-soft);
  color: var(--accent);
}

.status.off {
  background: #fff1f0;
  color: var(--bad);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
}

.metrics div {
  min-width: 0;
}

dd {
  margin: 5px 0 0;
  font-size: 18px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .shell {
    width: min(100vw - 22px, 960px);
    padding-top: 24px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .service-state {
    width: fit-content;
  }

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

  h1 {
    font-size: 34px;
  }
}
