:root {
  color-scheme:dark;
  --bg:#0b1014;
  --panel:#121a20;
  --line:#29363e;
  --text:#e8f0f4;
  --muted:#a0b1bc;
  --accent:#68d8d0;
  --ok:#7be0a6;
  --warning:#f1c16d;
  --error:#ff9292;
  font-family:Inter,system-ui,sans-serif;
  font-size:15px
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--bg);
  color:var(--text)
}
button,input {
  font:inherit
}
button {
  color:var(--text);
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:8px;
  min-height:44px;
  padding:10px 14px;
  cursor:pointer
}
button:hover {
  border-color:var(--accent)
}
button:focus-visible,input:focus-visible,a:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:3px
}
header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 24px;
  border-bottom:1px solid var(--line);
  gap:12px
}
header>div {
  display:flex;
  flex-direction:column;
  gap:6px
}
.brand {
  font-size:13px;
  font-weight:750;
  letter-spacing:.15em
}
.subtitle {
  font-size:12px;
  color:var(--muted)
}
main {
  max-width:1120px;
  margin:auto;
  padding:28px 24px 108px
}
.heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
  gap:16px
}
h1 {
  font-size:32px;
  letter-spacing:-.04em;
  margin:8px 0
}
h2 {
  font-size:18px;
  margin:0 0 16px
}
p {
  line-height:1.55
}
.eyebrow {
  color:var(--accent);
  font-size:11px;
  letter-spacing:.15em;
  margin:0;
  font-weight:700
}
.clock {
  text-align:right;
  display:flex;
  flex-direction:column;
  font-variant-numeric:tabular-nums;
  gap:4px
}
.clock>span:first-child {
  font-size:26px
}
.clock>span:last-child {
  font-size:12px;
  color:var(--muted)
}
#connection {
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px 16px;
  color:var(--muted);
  margin-bottom:24px;
  font-size:13px
}
#connection.offline {
  color:var(--error);
  border-color:var(--error)
}
.summary {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-bottom:28px
}
.summary button {
  text-align:left;
  padding:20px;
  min-height:128px
}
.summary strong {
  display:block;
  font-size:30px;
  margin:12px 0 6px;
  letter-spacing:-.04em
}
.summary small {
  display:block;
  color:var(--muted);
  line-height:1.5
}
.panel {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:10px;
  padding:20px;
  margin-bottom:20px
}
.section-head {
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center
}
.section-head span {
  font-size:12px;
  color:var(--muted)
}
.row {
  padding:16px 0;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px
}
.row:first-child {
  border-top:0
}
.row-title {
  font-weight:650;
  line-height:1.5
}
.detail {
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
  margin-top:4px;
  overflow-wrap:anywhere
}
.right {
  text-align:right;
  flex-shrink:0;
  max-width:48%
}
.badge {
  display:inline-block;
  font-size:12px;
  border:1px solid currentColor;
  border-radius:5px;
  padding:4px 8px;
  line-height:1.4
}
.ok {
  color:var(--ok)
}
.error {
  color:var(--error)
}
.warning {
  color:var(--warning)
}
.unknown {
  color:var(--muted)
}
.empty {
  color:var(--muted);
  line-height:1.7;
  font-size:14px
}
.note {
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
  margin-bottom:20px
}
a {
  color:var(--accent);
  text-decoration:none
}
a:hover {
  text-decoration:underline
}
.event-time {
  color:var(--muted);
  font-size:12px;
  white-space:nowrap
}
nav {
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  background:var(--bg);
  border-top:1px solid var(--line);
  display:flex;
  padding:8px 12px calc(8px + env(safe-area-inset-bottom));
  gap:8px;
  z-index:2
}
nav button {
  flex:1;
  border-color:transparent;
  background:transparent;
  padding:12px 4px;
  font-size:13px
}
nav button[aria-current=page] {
  color:var(--accent);
  background:#182b30;
  border-color:#335359
}
footer {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  color:var(--muted);
  font-size:12px
}
footer>span {
  margin-right:auto
}
footer button {
  font-size:12px
}
#login {
  max-width:420px;
  margin:64px auto;
  padding:24px
}
#login label {
  display:block;
  margin:24px 0 8px
}
input {
  display:block;
  width:100%;
  padding:12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel);
  color:var(--text);
  min-height:48px
}
#login button {
  width:100%;
  margin-top:16px;
  background:var(--accent);
  color:var(--bg);
  font-weight:700
}
#login-error {
  color:var(--error)
}
[hidden] {
  display:none!important
}
@media(min-width:800px) {
  nav {
    left:50%;
    transform:translateX(-50%);
    max-width:700px;
    border:1px solid var(--line);
    border-bottom:0;
    border-radius:12px 12px 0 0
  }
  .node-list {
    display:grid;
    grid-template-columns:1fr 1fr;
    column-gap:24px
  }
  .node-list .row:nth-child(2) {
    border-top:0
  }
}
@media(max-width:520px) {
  header {
    padding:16px
  }
  header button {
    font-size:12px;
    padding:8px
  }
  main {
    padding:24px 16px 108px
  }
  .summary {
    gap:8px
  }
  .summary button {
    padding:12px;
    min-height:120px;
    font-size:13px
  }
  .summary strong {
    font-size:25px
  }
  .summary small {
    font-size:11px
  }
  .panel {
    padding:16px
  }
  .clock>span:first-child {
    font-size:22px
  }
  h1 {
    font-size:29px
  }
  .right {
    max-width:46%
  }
  .badge {
    font-size:11px
  }
  .row {
    gap:8px
  }
}
