:root {
  font:
    15px/1.6 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #21342c;
  background: #f3f5f2;
  --panel: #fff;
  --line: #dce4dd;
  --muted: #607268;
  --accent: #1b6248;
  --field: #f8faf7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px max(24px, calc((100vw - 1080px) / 2));
  white-space: nowrap;
}
header span {
  color: var(--muted);
  font-size: 13px;
}
header button {
  margin-left: auto;
}
.brand {
  color: inherit;
  text-decoration: none;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.7px;
}
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 32px;
}
h1 {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -1px;
  margin: 8px 0 16px;
}
h2 {
  font-size: 19px;
  line-height: 1.4;
  margin: 0 0 18px;
}
p {
  margin: 8px 0 18px;
}
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0 0 8px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.tag {
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 6px 14px;
  font-size: 12px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.metric {
  padding-right: 12px;
}
.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.metric strong {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.5px;
  display: block;
  margin: 6px 0;
}
.agent {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.columns section {
  min-width: 0;
}
.login {
  max-width: 460px;
  margin: 52px auto;
}
label {
  display: block;
  font-size: 13px;
  margin: 14px 0 6px;
}
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  color: inherit;
  font: inherit;
  padding: 12px;
}
textarea {
  font:
    12px/1.6 ui-monospace,
    monospace;
  resize: vertical;
}
button {
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  min-height: 44px;
  padding: 9px 18px;
  font: 600 13px system-ui;
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--line);
}
form button {
  margin-top: 20px;
  width: 100%;
}
:focus-visible {
  outline: 3px solid #69b9a0;
  outline-offset: 3px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
#qr {
  display: block;
  background: white;
  margin: 24px auto;
  max-width: 100%;
  height: auto;
}
#notice {
  color: #a03b25;
}
footer {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 20px;
}
.device-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.device-list li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: center;
}
.device-list li div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.device-list small {
  display: block;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  header {
    padding: 16px 20px;
  }
  header span {
    display: none;
  }
  main {
    padding: 28px 18px;
  }
  .columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 22px;
  }
  section {
    padding: 22px;
  }
  h1 {
    font-size: 27px;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    color: #e2e9e2;
    background: #101a16;
    --panel: #17231d;
    --line: #304238;
    --muted: #a3b5a8;
    --accent: #7ed1ab;
    --field: #111e17;
  }
  button {
    background: #317957;
  }
  button.secondary {
    background: transparent;
    color: var(--accent);
  }
  #notice {
    color: #ffb8a1;
  }
}
