:root {
  color-scheme: dark;
  --bg: #0a1014;
  --surface: #111b21;
  --surface-alt: #132027;
  --line: #293b42;
  --text: #f3f7f6;
  --muted: #a1b2b5;
  --dim: #75898e;
  --mint: #77dfb2;
  --mint-deep: #17372d;
  --red: #f08077;
  --amber: #eac181;
  --unknown: #586b70;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { min-width: 280px; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse 36% 34% at 78% 5%, rgba(27, 100, 77, .12), transparent 76%), var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.shell {
  width: min(1296px, calc(100% - 48px));
  margin-inline: auto;
}

.topbar {
  height: 67px;
  border-bottom: 1px solid var(--line);
}

.topbar-inner, .topbar-right, .brand {
  display: flex;
  align-items: center;
}

.topbar-inner {
  height: 100%;
  justify-content: space-between;
}

.brand { gap: 17px; }
.brand-name { color: var(--mint); font-size: 24px; font-weight: 720; letter-spacing: -.04em; }
.brand-divider { width: 1px; height: 23px; background: var(--line); }
.brand-service { font-size: 14px; font-weight: 670; }
.topbar-right { gap: 0; }
.header-updated { color: var(--dim); font-size: 12px; }

.overview { margin-top: 32px; }
.heading-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(29px, 3vw, 34px); line-height: 1.3; font-weight: 720; letter-spacing: -.035em; }
.mobile-updated { display: none; }

.freshness-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 100px;
  background: var(--mint-deep);
  color: var(--mint);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 680;
  letter-spacing: .01em;
}
.freshness-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.freshness-badge[data-state="loading"] { background: #223135; color: var(--muted); }
.freshness-badge[data-state="stale"] { background: #3c2928; color: var(--red); }
.freshness-badge[data-state="partial"] { background: #3b3326; color: var(--amber); }
.freshness-badge[data-state="empty"] { background: #273238; color: var(--muted); }

.summary {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  align-items: center;
  min-height: 81px;
  margin-top: 31px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.summary-primary, .summary-breakdown { min-height: 48px; padding-inline: 23px; }
.summary-primary { display: flex; align-items: center; gap: 13px; border-right: 1px solid var(--line); }
.summary-primary strong { color: var(--mint); font-size: 27px; font-weight: 720; line-height: 1; }
.online-denominator { color: var(--mint); font-size: 27px; font-weight: 710; }
.summary-primary-label { font-size: 15px; font-weight: 650; white-space: nowrap; }
.summary-breakdown { display: flex; align-items: center; justify-content: space-around; gap: 14px; }
.summary-item { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-size: 14px; white-space: nowrap; }
.summary-item strong { color: currentColor; font-size: 25px; font-weight: 720; margin-right: 3px; }
.summary-dot { display: none; width: 7px; height: 7px; flex: none; border-radius: 50%; background: currentColor; }
.status-offline { color: var(--red); }
.status-unknown { color: var(--dim); }
.status-unknown .summary-dot { background: var(--unknown); }
.status-disabled { color: var(--dim); }

.machines { margin-top: 33px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
h2 { font-size: 22px; font-weight: 720; letter-spacing: -.02em; }
.section-heading-copy p { display: none; }
.period-controls { display: flex; align-items: center; width: 58.4%; justify-content: space-between; }
.desktop-period-caption { color: var(--muted); font-size: 12px; }
.period-picker, .period-buttons { display: flex; align-items: center; }
.period-picker { gap: 27px; }
.period-label { color: var(--dim); font-size: 12px; }
.period-buttons { gap: 5px; }
.period-buttons button {
  min-width: 55px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}
.period-buttons button[aria-pressed="true"] { border-color: var(--mint); background: var(--mint-deep); color: var(--mint); font-weight: 700; }
.period-buttons button:hover:not([aria-pressed="true"]) { border-color: var(--muted); color: var(--text); }

.notice {
  padding: 19px 22px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}
.notice[hidden] { display: none; }
.desktop-table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.machine-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.col-host { width: 19%; }
.col-duration { width: 21%; }
.col-history { width: 42%; }
.col-sla { width: 9%; }
.col-status { width: 9%; }
.machine-table th {
  height: 48px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: .015em;
  text-align: left;
}
.machine-table th:last-child { text-align: right; }
.machine-table td {
  height: 79px;
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.machine-table tbody tr:first-child td { border-top: 0; }
.machine-table tbody tr:nth-child(even) { background: var(--surface-alt); }
.machine-table td:last-child { text-align: right; }
.host-name-line { display: flex; align-items: center; gap: 16px; min-width: 0; }
.status-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--unknown); }
.status-dot.online { background: var(--mint); }
.status-dot.offline { background: var(--red); }
.status-dot.disabled { background: var(--dim); }
.host-name { display: block; overflow: hidden; color: var(--text); font-size: 17px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.host-role { display: block; margin: 4px 0 0 25px; color: var(--dim); font-size: 12px; }
.duration-value { display: block; color: var(--text); font-size: 15px; font-weight: 680; }
.duration-value.offline { color: var(--red); }
.duration-value.unknown, .duration-value.disabled { color: var(--dim); }
.duration-caption { display: block; margin-top: 5px; color: var(--dim); font-size: 11px; }
.sla-value { display: block; color: var(--text); font-size: 17px; font-weight: 710; white-space: nowrap; }
.sla-value.empty { color: var(--dim); }
.coverage { display: block; margin-top: 4px; color: var(--dim); font-size: 10px; white-space: nowrap; }
.status-label { display: inline-block; color: var(--dim); font-size: 12px; font-weight: 680; white-space: nowrap; }
.status-label.online { color: var(--mint); }
.status-label.offline { color: var(--red); }
.status-label.disabled { color: var(--dim); }

.chart-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.bar-chart { display: flex; gap: 4px; width: 100%; min-width: 100%; height: 31px; }
.bar-chart[data-days="90"] { min-width: 810px; }
.bar { flex: 1 0 5px; min-width: 5px; border-radius: 2px; background: var(--unknown); }
.bar.online { background: var(--mint); }
.bar.partial { background: var(--amber); }
.bar.offline { background: var(--red); }
.bar.disabled { background: var(--dim); }
.chart-details { margin-top: 3px; color: var(--dim); font-size: 10px; }
.chart-details summary { display: inline-block; cursor: pointer; list-style: none; }
.chart-details summary::-webkit-details-marker { display: none; }
.chart-details summary:hover { color: var(--mint); }
.chart-details[open] .history-table-wrap { width: 100%; max-height: 260px; margin-top: 6px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #0e171c; }
.history-edge-note { padding: 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.4; }
.history-table { width: 100%; border-collapse: collapse; color: var(--muted); font-size: 11px; white-space: nowrap; }
.history-table th, .history-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.history-table th { color: var(--text); font-size: 10px; }
.history-table td:last-child, .history-table th:last-child { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mobile-cards { display: none; }

.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 29px; color: var(--muted); font-size: 11px; }
.legend > span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.legend-online { background: var(--mint); }
.legend-partial { background: var(--amber); }
.legend-offline { background: var(--red); }
.legend-unknown { background: var(--unknown); }
.method-note { margin-top: 15px; color: var(--dim); font-size: 11px; line-height: 1.5; }
.footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 29px; padding-block: 17px 25px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.noscript { padding: 16px; text-align: center; color: var(--red); }

@media (max-width: 1100px) {
  .summary { grid-template-columns: 1.1fr 2fr; }
  .col-history { width: 38%; }
  .col-host { width: 19%; }
  .col-duration { width: 21%; }
  .col-sla { width: 11%; }
  .col-status { width: 11%; }
  .machine-table th, .machine-table td { padding-inline: 13px; }
}

@media (max-width: 800px) {
  .shell { width: min(100% - 32px, 560px); }
  .topbar { height: 63px; }
  .brand { gap: 13px; }
  .brand-name { font-size: 22px; }
  .brand-divider { display: none; }
  .brand-service::before { content: "/ "; color: var(--muted); }
  .brand-service { font-size: 13px; }
  .header-updated { display: none; }
  .topbar-right { gap: 0; }
  .overview { margin-top: 26px; }
  .heading-line { display: block; position: relative; }
  h1 { font-size: 26px; line-height: 1.2; }
  .mobile-updated { display: block; margin-top: 9px; color: var(--dim); font-size: 11px; }
  .freshness-badge { position: absolute; right: 0; bottom: -2px; min-height: 22px; padding-inline: 9px; font-size: 9px; }
  .freshness-badge::before { width: 6px; height: 6px; }
  .summary { display: block; min-height: 89px; margin-top: 24px; padding: 11px 15px; }
  .summary-primary { min-height: 38px; padding: 0; border-right: 0; gap: 5px; }
  .summary-primary strong { font-size: 27px; }
  .online-denominator { display: inline; color: var(--mint); font-size: 27px; font-weight: 710; }
  .summary-primary-label { margin-left: auto; font-size: 14px; }
  .summary-breakdown { min-height: 26px; padding: 5px 0 0; border-top: 1px solid var(--line); justify-content: space-between; gap: 6px; }
  .summary-item { gap: 5px; font-size: 11px; }
  .summary-item strong { margin-right: 0; font-size: 11px; font-weight: 500; }
  .summary-dot { display: inline-block; }
  .machines { margin-top: 22px; }
  .section-heading { align-items: center; margin-bottom: 16px; }
  h2 { font-size: 21px; }
  .section-heading-copy p { display: block; position: absolute; margin-top: 12px; color: var(--dim); font-size: 11px; white-space: nowrap; }
  .period-controls { display: block; width: auto; }
  .desktop-period-caption, .period-label { display: none; }
  .period-buttons button { min-width: 45px; height: 32px; }
  .notice { margin-top: 28px; }
  .desktop-table-wrap { display: none; }
  .mobile-cards { display: grid; gap: 10px; margin-top: 36px; }
  .mobile-card { position: relative; min-width: 0; padding: 12px 15px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .mobile-card-head { display: flex; align-items: center; min-height: 33px; gap: 11px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .mobile-card .host-name { font-size: 17px; }
  .mobile-card .host-role { margin: 0 0 0 auto; text-align: right; }
  .mobile-metrics { display: grid; grid-template-columns: 1fr 1.15fr; gap: 8px; padding-top: 9px; }
  .metric-heading { display: block; color: var(--dim); font-size: 10px; font-weight: 680; letter-spacing: .01em; }
  .mobile-card .sla-value { margin-top: 4px; font-size: 17px; }
  .mobile-card .duration-value { margin-top: 4px; font-size: 13px; }
  .mobile-card .coverage { margin-top: 2px; font-size: 10px; }
  .mobile-card .chart-scroll { margin-top: 13px; }
  .mobile-card .bar-chart { height: 13px; gap: 3px; }
  .mobile-card .bar-chart[data-days="90"] { min-width: 720px; }
  .mobile-card .bar { min-width: 5px; }
  .mobile-card .chart-details { height: 0; margin-top: 0; }
  .mobile-card .chart-details[open] { height: auto; margin-top: 8px; }
  .mobile-card .chart-details summary { position: absolute; top: 53px; right: 15px; font-size: 10px; }
  .mobile-card .chart-details[open] .history-table-wrap { width: 100%; }
  .legend { display: none; }
  .method-note { margin-top: 17px; font-size: 11px; line-height: 1.7; }
  .footer { margin-top: 21px; padding-block: 13px 18px; font-size: 11px; }
  .footer span:first-child { display: none; }
}

@media (max-width: 370px) {
  .shell { width: min(100% - 24px, 560px); }
  h1 { font-size: 23px; }
  .heading-line { padding-bottom: 29px; }
  .freshness-badge { right: auto; left: 0; max-width: none; padding-inline: 7px; font-size: 8px; white-space: nowrap; }
  .summary { margin-top: 15px; }
  .period-buttons button { min-width: 40px; }
  .summary-primary-label { font-size: 12px; }
  .summary-item { font-size: 10px; }
  .mobile-card { padding-inline: 12px; }
  .mobile-card .host-name { font-size: 15px; }
}
