:root {
  font:
    14px/1.7 system-ui,
    sans-serif;
  color: #263b5c;
  background: #f6f8fb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #1f3562;
  color: white;
  padding: 22px 5%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
header span {
  color: #eb5f2e;
  margin: 0 15px;
}
header small {
  color: #b7c5dc;
}
main {
  max-width: 1100px;
  margin: 45px auto;
  padding: 0 25px;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin-bottom: 5px;
}
p {
  color: #7c8a9f;
}
form {
  display: flex;
  gap: 14px;
  align-items: end;
  margin: 30px 0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
input {
  width: 340px;
  border: 1px solid #dce3ed;
  padding: 12px;
  background: white;
  border-radius: 7px;
}
button {
  cursor: pointer;
  border: 1px solid #dce3ed;
  background: white;
  color: #1f3562;
  padding: 11px 16px;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
}
button:hover {
  background: #edf1f7;
}
form button {
  background: #1f3562;
  color: white;
}
.actions {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}
.device {
  border: 1px solid #e0e6ef;
  padding: 24px;
  background: white;
  border-radius: 12px;
  margin: 18px 0;
}
.device p {
  font-size: 12px;
}
.device small {
  color: #94a0b2;
}
.online,
.offline {
  float: right;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
}
.online {
  background: #eaf5ee;
  color: #3d7f59;
}
.offline {
  background: #f7f0e6;
  color: #ae8549;
}
#status {
  font-size: 13px;
  color: #a26839;
  margin: 20px 0;
}
#history p {
  font: 11px/1.8 monospace;
}
h2 {
  font-size: 18px;
  margin-top: 32px;
}
[hidden] {
  display: none !important;
}
