:root {
  color-scheme: dark;
  font-family: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --bg: #080b09;
  --panel: #101511;
  --line: #304033;
  --muted: #a1b2a3;
  --lime: #a8fa75;
  color: #ecf4ea;
  background: var(--bg);
  line-height: 1.5;
}
* { box-sizing: border-box; }
body {
  min-height: 100vh; margin: 0;
  background:
    radial-gradient(ellipse at 50% 35%, #19261c80 0%, transparent 60%),
    radial-gradient(#374b3940 .75px, transparent .95px) 0 0 / 6px 6px,
    var(--bg);
}
a { color: inherit; text-decoration: none; }
p, dl, dd { margin: 0; }
button, input { font: inherit; }
button {
  min-height: 44px; padding: 9px 17px; border: 1px solid transparent; border-radius: 3px;
  cursor: pointer; font-size: .875rem; font-weight: 650;
}
button:disabled { opacity: .48; cursor: default; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.entry { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; }
.login {
  width: min(100%, 364px); background: var(--panel); border: 1px solid #425846;
  box-shadow: 0 24px 72px #0008; border-radius: 5px; overflow: hidden;
}
.display {
  height: 222px; position: relative; display: grid; place-items: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at center, #395a382e 5%, transparent 70%),
    linear-gradient(#95e0790a 1px, transparent 1px) center / 24px 24px,
    linear-gradient(90deg, #95e0790a 1px, transparent 1px) center / 24px 24px, #0a100c;
}
.scope {
  position: relative; width: 160px; height: 160px; padding: 9px;
  background:
    linear-gradient(#688368, #688368) left top / 9px 1px,
    linear-gradient(#688368, #688368) left top / 1px 9px,
    linear-gradient(#688368, #688368) right top / 9px 1px,
    linear-gradient(#688368, #688368) right top / 1px 9px,
    linear-gradient(#688368, #688368) left bottom / 9px 1px,
    linear-gradient(#688368, #688368) left bottom / 1px 9px,
    linear-gradient(#688368, #688368) right bottom / 9px 1px,
    linear-gradient(#688368, #688368) right bottom / 1px 9px;
  background-repeat: no-repeat;
}
.scope img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 9px #81ef463e); }
.login-form { padding: 24px 28px 28px; }
.login-form label { display: block; color: var(--muted); font-size: .8125rem; margin-bottom: 8px; }
.login-form input {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #536655;
  border-radius: 3px; background: #080d09; color: var(--lime); caret-color: var(--lime);
}
.primary { background: var(--lime); color: #13220f; width: 100%; margin-top: 14px; }
.login-form .primary { display: flex; align-items: center; justify-content: space-between; }
.primary span, .arrow { font-size: 1.25rem; line-height: 1; }
.primary:hover { background: #c3ff9a; }
.error { color: #ff9898; font-size: .8125rem; margin-top: 10px; }
.bar, .dashboard { width: min(100% - 32px, 608px); margin-inline: auto; }
.bar {
  display: flex; align-items: center; justify-content: space-between; min-height: 77px;
  border-bottom: 1px solid var(--line);
}
.home-mark { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; }
.home-mark img { display: block; width: 35px; height: 35px; }
.text-button, .back { color: var(--muted); font-size: .8125rem; }
.text-button { padding-inline: 4px; background: transparent; }
.back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 12px; }
.text-button:hover, .back:hover { color: var(--lime); }
.dashboard { padding-block: clamp(28px, 7vh, 72px) 48px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.device-row {
  display: grid; grid-template-columns: 24px 1fr auto 18px; align-items: center;
  gap: 18px; padding: 20px 22px; min-height: 77px;
}
.device-row + .device-row, .action-row + .action-row, dl div + div { border-top: 1px solid var(--line); }
.device-row:hover, .device-row:focus-visible { background: #1a261b; }
.device-row:focus-visible { outline-offset: -3px; }
.device-icon {
  width: 19px; height: 25px; border: 1.5px solid #83a885; border-radius: 3px; position: relative;
  background: linear-gradient(140deg, #243c26, #101811);
}
.device-icon::after {
  content: ""; position: absolute; width: 5px; height: 1px; left: 5.5px; bottom: 2px; background: #83a885;
}
.level, .battery { color: var(--lime); font-variant-numeric: tabular-nums; }
.level { font-size: .875rem; }
.arrow { color: #8cac88; }
.demo-note { margin: 16px 0 0; color: var(--muted); font-size: .75rem; }
dl div, .action-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 20px; }
dt, small { color: var(--muted); font-size: .8125rem; }
dd { text-align: right; font-weight: 600; }
.battery { display: inline-flex; align-items: center; gap: 10px; }
meter { width: 38px; height: 8px; background: #344538; border: 0; border-radius: 1px; }
meter::-webkit-meter-bar { background: #344538; border: 0; border-radius: 1px; height: 8px; }
meter::-webkit-meter-optimum-value { background: var(--lime); }
meter::-moz-meter-bar { background: var(--lime); }
.actions { margin-top: 16px; }
small { display: block; margin-top: 2px; }
.danger { background: #bb3540; border-color: #db555b; color: #fff; }
.danger:hover:not(:disabled) { background: #a92d37; }
.secondary { background: #313633; border-color: #525953; color: #edf0ed; }
.secondary:hover:not(:disabled) { background: #404642; }
.notice { margin-bottom: 14px; padding: 10px 14px; border-left: 2px solid var(--lime); background: #172519; color: #ccedbd; }
dialog {
  width: min(392px, calc(100% - 32px)); padding: 25px; color: inherit;
  background: #111813; border: 1px solid #586d58; border-radius: 5px; box-shadow: 0 18px 64px #0009;
}
dialog .question { font-weight: 700; color: #f1f9ee; margin-bottom: 9px; }
dialog p { color: var(--muted); }
dialog form { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
dialog::backdrop { background: #030704c9; }
@media (max-width: 420px) {
  .login-form { padding: 22px; }
  .device-row { gap: 12px; padding-inline: 15px; }
  dl div, .action-row { padding: 15px; }
}
