:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #10171f;
  color: #f4f8fb;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background-color: #10171f;
  background-image: radial-gradient(circle, rgba(132, 159, 179, .18) 1px, transparent 1.2px);
  background-size: 22px 22px;
}

button {
  font: inherit;
}

.shell {
  width: min(100% - 24px, 720px);
  margin: 14px auto;
  padding: 0 16px 18px;
  border: 1px solid rgba(95, 133, 160, .2);
  border-radius: 20px;
  background: #16222d;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .34);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 76px;
  border-bottom: 1px solid #314654;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #59ace4;
  color: #fff;
  font-size: 13px;
  letter-spacing: .02em;
}

.brand-title {
  font-size: 16px;
  font-weight: 760;
}

.brand-subtitle {
  margin-top: 3px;
  color: #a7c0d3;
  font-size: 14px;
}

.dashboard {
  margin-top: 18px;
  padding: 18px 16px 14px;
  border-radius: 17px;
  background: #192b3a;
  box-shadow: inset 0 1px rgba(255, 255, 255, .02);
}

.dashboard-heading {
  padding-bottom: 17px;
  border-bottom: 1px solid #304657;
}

.eyebrow {
  color: #f8fbfd;
  font-size: 15px;
  font-weight: 800;
}

.summary {
  margin-top: 9px;
  color: #9dc8e6;
  font-size: 14px;
  line-height: 1.45;
}

.notice {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 180, 55, .32);
  border-radius: 10px;
  background: rgba(255, 160, 28, .08);
  color: #ffc76b;
  font-size: 13px;
  line-height: 1.4;
}

.devices {
  display: grid;
}

.device {
  width: 100%;
  padding: 16px 2px 15px;
  border: 0;
  border-bottom: 1px solid #304657;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.device:active {
  transform: translateY(1px);
}

.device-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.device-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.status-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 7px;
  border-radius: 50%;
  vertical-align: -2px;
  background: #8fa1ad;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .03);
}

.device-status {
  flex: 0 0 auto;
  color: #aebec8;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.device-meta,
.device-detail {
  margin-top: 10px;
  color: #9dc8e6;
  font-size: 13px;
  line-height: 1.35;
}

.device-detail {
  margin-top: 9px;
}

.device[data-status="healthy"] .status-dot {
  background: #29de33;
}

.device[data-status="healthy"] .device-status {
  color: #32df91;
}

.device[data-status="warning"] .status-dot {
  background: #ff8121;
}

.device[data-status="warning"] .device-status {
  color: #ffbd42;
}

.device[data-status="offline"] .status-dot {
  background: #ff273c;
}

.device[data-status="offline"] .device-status {
  color: #ff5363;
}

.actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.quick-actions {
  display: contents;
}

.button {
  min-height: 42px;
  padding: 8px 6px;
  border: 0;
  border-radius: 9px;
  color: #5eb8ff;
  font-size: 13px;
  font-weight: 740;
  cursor: pointer;
}

.button-secondary {
  background: #243f54;
}

.button-primary {
  background: #57abe5;
  color: #fff;
}

.button-warning {
  color: #ffca4d;
}

.button-offline {
  color: #ff5363;
}

.dashboard-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  color: #9dc8e6;
  font-size: 12px;
  line-height: 1.4;
}

#hint {
  text-align: right;
}

.loading .device {
  opacity: .55;
}

@media (max-width: 520px) {
  .shell {
    width: calc(100% - 12px);
    margin: 6px auto;
    padding-inline: 11px;
    border-radius: 16px;
  }

  .dashboard {
    margin-top: 12px;
    padding-inline: 13px;
  }

  .device-status {
    max-width: 42%;
    font-size: 12px;
  }

  .dashboard-footer {
    display: grid;
  }

  #hint {
    text-align: left;
  }
}
