:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #050b12;
  color: #f4f8ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: #050b12;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.card {
  width: min(100%, 460px);
  border: 1px solid #26384f;
  border-radius: 12px;
  background: #09121d;
  padding: 24px;
}

.brand {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(#ffd91a, #ff6b00);
  color: #071335;
  font-weight: 900;
  margin-bottom: 14px;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
}

.sub {
  color: #1e9bff;
  margin: 8px 0 22px;
  font-weight: 700;
}

.state {
  border: 1px solid #26384f;
  border-radius: 8px;
  padding: 14px;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 18px;
}

.pin-panel {
  margin-bottom: 16px;
}

.pin-panel label {
  display: block;
  color: #cbd6e5;
  font-weight: 800;
  margin-bottom: 8px;
}

.pin-panel input {
  width: 100%;
  min-height: 58px;
  border: 1px solid #31455f;
  border-radius: 8px;
  background: #121b28;
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  padding: 0 14px;
}

.pin-panel input:focus {
  border-color: #1e9bff;
  outline: none;
}

.idle { color: #ccd6e5; }
.online { color: #31df5b; }
.error { color: #ff3747; }

.wake {
  border: 1px solid #26384f;
  border-radius: 8px;
  padding: 10px 12px;
  margin: -8px 0 18px;
  font-size: 14px;
  font-weight: 800;
}

.meter {
  height: 42px;
  border: 2px solid #7f8da1;
  background: #111b27;
  overflow: hidden;
}

.bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #31df5b 0 55%, #ffd422 55% 75%, #ff2d3d 75% 100%);
}

.labels {
  display: flex;
  justify-content: space-between;
  color: #1e9bff;
  font-weight: 800;
  margin: 8px 0 18px;
}

button {
  width: 100%;
  border: 1px solid #315b8c;
  border-radius: 8px;
  background: #1767c7;
  color: white;
  min-height: 58px;
  font-size: 22px;
  font-weight: 800;
  margin-top: 10px;
}

button:disabled {
  opacity: .45;
}

.danger {
  background: #d41221;
  border-color: #e33340;
}

.secondary {
  background: #263443;
  border-color: #3d5168;
}

.secondary.active {
  background: #d41221;
  border-color: #e33340;
}

.hint {
  color: #aeb9c8;
  font-size: 14px;
  line-height: 1.4;
}
