
main {
  max-width: 1040px;
  margin: auto;
  padding: 32px 24px 52px;
}

h1 {
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.65px;
}

h2 {
  font-size: 23px;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}

p {
  margin: 0 0 12px;
  color: #596474;
}

header p {
  margin: 0;
}

.demo {
  font-size: 12px;
  color: #465466;
  background: #f4f6f8;
  border: 1px solid #e0e5eb;
  border-radius: 8px;
  padding: 9px 12px;
}

.tracking {
  border: 1px solid #dce2ea;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 36px;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0 14px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 14px;
}

input {
  width: 100%;
  border: 1px solid #cdd5df;
  border-radius: 7px;
  padding: 12px;
  font: inherit;
  margin-top: 6px;
  background: white;
}

button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #168447;
  color: white;
  padding: 12px;
  font: 600 16px system-ui;
  cursor: pointer;
}

button:hover {
  background: #106f39;
}

button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid #7295d9;
  outline-offset: 3px;
}

.legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 20px 0 22px;
}

.legend p {
  font-size: 14px;
  margin: 7px 0 0;
}

.legend .state {
  font-size: 16px;
  font-weight: 650;
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  white-space: nowrap;
  color: #374151;
}

.state i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
  flex: none;
}

.normal {
  --c: #16a34a;
}

.limited {
  --c: #e5b000;
}

.paused {
  --c: #dc2626;
}

.group {
  border: 1px solid #dce2ea;
  border-radius: 12px;
  overflow: hidden;
}

details + details {
  border-top: 1px solid #e5e9ee;
}

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
}

summary::-webkit-details-marker {
  display: none;
}

summary .state {
  margin-left: auto;
}

summary:after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #657386;
  border-bottom: 2px solid #657386;
  transform: rotate(45deg);
  margin: 0 4px 4px 6px;
}

details[open] > summary:after {
  transform: rotate(225deg);
  margin-bottom: -4px;
}

.services {
  background: #f8fafc;
  padding: 0 18px;
}

.service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
}

.service + .service {
  border-top: 1px solid #e3e8ef;
}

.systems {
  margin-top: 32px;
}

.systems .group {
  padding: 0 18px;
}

.updated {
  text-align: center;
  font-size: 13px;
  margin: 20px 0;
}

.help {
  text-align: center;
  border-top: 1px solid #e3e8ef;
  padding-top: 24px;
}

.help a {
  color: #233b61;
  text-decoration: none;
  border: 1px solid #cdd5df;
  padding: 9px 18px;
  border-radius: 7px;
  display: inline-block;
}

.result {
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  background: #f3f6fb;
}

.result dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  margin: 12px 0;
}

.result dd {
  margin: 0;
  text-align: right;
}

progress {
  width: 100%;
  height: 12px;
  accent-color: #16a34a;
}

.small {
  font-size: 12px;
  margin: 12px 0 0;
}

@media (max-width: 580px) {
  main {
    padding: 16px;
  }

  .tracking {
    padding: 16px;
  }

  .fields,
  .legend {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .legend {
    gap: 15px;
  }

  summary {
    padding: 13px 12px;
  }

  .services {
    padding: 0 12px;
  }

  .state {
    font-size: 12px;
  }

  .service {
    font-size: 13px;
  }

  header {
    padding: 24px 12px;
  }
}
