:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #19323c;
  background: #f6f8fa;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: #12695e;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
}
button:hover {
  filter: brightness(0.95);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #dce3e6;
  border-radius: 7px;
  background: white;
  color: #19323c;
  margin-top: 8px;
}
textarea {
  min-height: 100px;
}
label {
  display: block;
  margin: 18px 0;
  color: #4b616b;
  font-size: 13px;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 7px 0 10px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  font-weight: 600;
}
p {
  color: #74848c;
  font-size: 14px;
  line-height: 1.7;
}
small,
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 650;
  color: #7b9098;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 800;
  color: #13695d;
}
.brand span {
  font-size: 17px;
  letter-spacing: -0.4px;
  color: #213b43;
}
aside {
  width: 238px;
  background: #fff;
  border-right: 1px solid #e4e9ec;
  padding: 34px 24px;
  position: fixed;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
aside small {
  margin: 55px 12px 14px;
}
nav button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  color: #6d8089;
  text-align: left;
  font-size: 13px;
  font-weight: 550;
  margin: 5px 0;
  padding: 13px;
}
nav button.active {
  background: #e9f4f0;
  color: #176b5f;
}
.aside-bottom {
  margin-top: auto;
  font-size: 11px;
  color: #7a8b93;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #53a18a;
  border-radius: 50%;
  margin-right: 6px;
}
.subtle {
  background: transparent;
  color: #7a8b93;
  padding: 8px;
}
#logout {
  display: block;
  margin-top: 16px;
}
main {
  margin-left: 238px;
}
header {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid #e4e9ec;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #829199;
}
.content {
  max-width: 1500px;
  margin: auto;
  padding: 38px 42px;
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.page-title p {
  margin: 0;
}
.eyebrow {
  color: #43897d;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}
.stat {
  background: white;
  border: 1px solid #e1e7ea;
  border-radius: 10px;
  padding: 21px 23px;
}
.stat .value {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 13px 0 8px;
}
.stat .caption {
  font-size: 11px;
  color: #89979d;
}
.stat .label {
  color: #71858e;
  font-size: 12px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 20px;
}
.toolbar input {
  max-width: 260px;
  margin: 0;
  font-size: 12px;
}
.toolbar h2 span {
  font-size: 11px;
  color: #71858e;
  background: #e7edef;
  border-radius: 6px;
  padding: 4px 8px;
  margin-left: 7px;
}
.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  background: white;
  border: 1px solid #dfe7e9;
  border-radius: 11px;
  padding: 23px;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.device-icon {
  background: #edf5f3;
  color: #327567;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.badge {
  display: inline-flex;
  padding: 5px 9px;
  background: #edf5f1;
  color: #338267;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.2px;
}
.badge.offline {
  background: #f1f3f5;
  color: #87939b;
}
.card h2 {
  margin: 20px 0 3px;
}
.card .location {
  margin: 0 0 22px;
  font-size: 12px;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border-top: 1px solid #edf0f2;
  padding-top: 17px;
}
.metrics dt {
  font-size: 10px;
  color: #8999a0;
  margin-bottom: 5px;
}
.metrics dd {
  font-size: 13px;
  margin: 0;
}
.card-bottom {
  border-top: 1px solid #edf0f2;
  padding-top: 15px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #87969e;
}
.card-bottom button {
  padding: 7px 10px;
  background: #f1f6f5;
  color: #297362;
  font-size: 11px;
}
.empty {
  padding: 75px 25px;
  text-align: center;
  border: 1px dashed #d4e0e2;
  border-radius: 12px;
  grid-column: 1/-1;
}
.empty h2 {
  font-size: 20px;
}
.empty p {
  max-width: 420px;
  margin: 10px auto 24px;
}
footer {
  display: flex;
  justify-content: space-between;
  margin-top: 45px;
  font-size: 10px;
  color: #8a989f;
  gap: 15px;
}
.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid #e0e7e9;
  border-radius: 10px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th,
td {
  padding: 17px 20px;
  border-bottom: 1px solid #ecf0f2;
  white-space: nowrap;
}
th {
  color: #82929a;
  font-weight: 500;
  font-size: 11px;
}
td button {
  font-size: 11px;
  padding: 6px 10px;
  background: #eff5f3;
  color: #2d7161;
}
dialog {
  width: 600px;
  max-width: calc(100vw - 30px);
  border: 1px solid #dce5e7;
  border-radius: 14px;
  padding: 28px;
  color: #19323c;
}
dialog::backdrop {
  background: #102b3d66;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-header h2 {
  font-size: 21px;
}
#modalButtons {
  text-align: right;
  margin-top: 22px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f0f4f5;
  border: 1px solid #e0e7ea;
  padding: 16px;
  border-radius: 8px;
  font-size: 12px;
  max-height: 350px;
  overflow: auto;
}
#modalError,
#loginError {
  color: #b74545;
  font-size: 12px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.actions button {
  padding: 9px 12px;
  font-size: 12px;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 20% 10%, #e2f1eb, transparent 60%);
}
.login form {
  width: 400px;
  max-width: 90vw;
  padding: 32px;
}
.login h1 {
  margin-top: 45px;
  font-size: 43px;
  line-height: 1.15;
}
.login button {
  width: 100%;
  margin-top: 14px;
}
#toast {
  position: fixed;
  bottom: 28px;
  right: 30px;
  background: #193f37;
  color: white;
  padding: 15px 22px;
  border-radius: 10px;
  font-size: 13px;
  z-index: 10;
}
[hidden] {
  display: none !important;
}
code {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.release {
  margin-bottom: 15px;
}
.muted {
  color: #8a999f;
  font-size: 12px;
}
@media (max-width: 1000px) {
  aside {
    width: 190px;
    padding: 28px 15px;
  }
  main {
    margin-left: 190px;
  }
  .content {
    padding: 28px 24px;
  }
  header {
    padding: 0 24px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 650px) {
  aside {
    position: relative;
    width: 100%;
    height: auto;
    padding: 18px;
  }
  .brand {
    margin-bottom: 12px;
  }
  aside small,
  .aside-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
  }
  nav button {
    white-space: nowrap;
    width: auto;
    margin-right: 5px;
  }
  main {
    margin-left: 0;
  }
  header {
    height: 48px;
  }
  .content {
    padding: 24px 16px;
  }
  .page-title {
    align-items: flex-start;
    gap: 15px;
  }
  .page-title button {
    font-size: 11px;
    white-space: nowrap;
    padding: 11px;
  }
  h1 {
    font-size: 27px;
  }
  .page-title p {
    font-size: 12px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .toolbar input {
    max-width: 180px;
  }
  footer {
    flex-direction: column;
  }
  .device-grid {
    grid-template-columns: 1fr;
  }
}
