:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  background: #101218;
  color: #f5f6fa;
  --muted: #a6adbf;
  --line: #303442;
  --accent: #c6fa6b;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
.top, main { max-width: 1200px; margin: auto; padding-inline: clamp(16px, 5vw, 56px); }
.top { min-height: 80px; display: flex; gap: 16px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { font-size: 1.2rem; font-weight: 750; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #15210b; background: var(--accent); margin-right: 5px; }
.endpoint { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.endpoint > :first-child { flex: 0 0 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.intro { padding: clamp(30px, 6vw, 68px) 0 28px; }
h1 { margin: 0; font-size: clamp(1.9rem, 5vw, 3.65rem); line-height: 1.08; letter-spacing: -.05em; }
.intro p, footer { color: var(--muted); }
.dashboard { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: 22px; background: #191c25; padding: clamp(16px, 3vw, 28px); }
h2 { font-size: 1.08rem; margin: 0 0 22px; }
.gauge { --arc: 0deg; width: min(236px, 100%); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(from 225deg, var(--accent) 0deg var(--arc), #373d4e var(--arc) 270deg, transparent 270deg); }
.gauge-face { width: calc(100% - 16px); aspect-ratio: 1; background: #191c25; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.gauge-value { font-variant-numeric: tabular-nums; font-size: clamp(2rem, 7vw, 3.5rem); font-weight: 740; letter-spacing: -.055em; }
.unit, dt, .ip-box span, .ip-box small { color: var(--muted); font-size: .85rem; }
.actions { position: relative; text-align: center; margin-top: -18px; }
button { font: inherit; min-height: 46px; padding: 0 24px; border: 1px solid transparent; border-radius: 10px; background: var(--accent); color: #142009; font-weight: 700; cursor: pointer; }
button:hover { filter: brightness(1.1); }
button:focus-visible { outline: 2px solid white; outline-offset: 3px; }
#stop { background: #303442; color: #fff; }
#status { color: var(--muted); font-size: .88rem; min-height: 2.5em; margin-bottom: 10px; }
dl { margin: 0; }
dd { margin: 0; overflow-wrap: anywhere; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; border-top: 1px solid var(--line); padding-top: 17px; }
.metrics dd { margin-top: 5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.metrics span { color: var(--accent); }
.ip-box { display: grid; gap: 5px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #14171f; }
.ip-box strong { color: var(--accent); font-size: 1.18rem; overflow-wrap: anywhere; }
.facts > div { display: grid; grid-template-columns: 1fr 1.2fr; align-items: baseline; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dd { text-align: right; font-size: .87rem; }
footer { padding-block: 22px 32px; font-size: .82rem; }
@media (max-width: 740px) { .dashboard { grid-template-columns: 1fr; } }
@media (max-width: 380px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lookup { width: 100%; margin-top: 12px; padding: 8px 12px; background: #303442; color: #fff; font-size: .87rem; }
#lookup-status { color: var(--muted); font-size: .85rem; }
#lookup-status:empty { display: none; }
