:root {
  font-family: system-ui, sans-serif;
  color: #18302d;
  background: #f2f5f3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  padding: 22px 6%;
  background: #163d35;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header span {
  display: block;
  font-size: 13px;
  margin-top: 5px;
  color: #c8dfd1;
}
main {
  max-width: 1120px;
  padding: 32px 24px;
  margin: auto;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
}
p {
  line-height: 1.5;
  color: #50665d;
}
button {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  background: #1a694c;
  color: white;
  font-weight: 650;
  cursor: pointer;
  min-height: 44px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
nav {
  display: flex;
  gap: 10px;
  margin: 26px 0;
}
nav button {
  background: #dce8df;
  color: #184536;
}
.heading,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0;
}
#stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat,
.row {
  padding: 22px;
  background: white;
  border: 1px solid #dce5df;
  border-radius: 14px;
  margin-bottom: 12px;
}
.stat b {
  font-size: 30px;
  display: block;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.row small {
  display: block;
  color: #617369;
  margin-top: 8px;
}
.status {
  background: #e6f0e8;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}
form {
  max-width: 480px;
}
label {
  display: block;
  margin: 16px 0;
}
input,
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px;
  border: 1px solid #b9cabe;
  border-radius: 8px;
  font: inherit;
}
dialog {
  border: 0;
  border-radius: 18px;
  max-width: 600px;
  width: calc(100% - 32px);
  padding: 28px;
}
dialog::backdrop {
  background: #17312abb;
}
.danger {
  background: #9e3e36;
}
#message:not(:empty) {
  background: #fff2d5;
  padding: 15px;
  border-radius: 8px;
}
#permissions label {
  display: flex;
  align-items: center;
  gap: 12px;
}
#permissions input {
  width: 22px;
  height: 22px;
  margin: 0;
}
#token {
  font-family: monospace;
  word-break: break-all;
}
#login {
  max-width: 560px;
  padding-top: 24px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  main {
    padding: 20px 16px;
  }
  h1 {
    font-size: 27px;
  }
  #stats {
    gap: 8px;
  }
  .stat {
    padding: 13px;
    font-size: 12px;
  }
  .stat b {
    font-size: 24px;
  }
  .heading,
  .row,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }
  .row button {
    align-self: flex-start;
  }
  dialog {
    padding: 20px;
  }
}
