:root {
  font-family: "Prompt", sans-serif;
  color: #18352f;
  background: #f5f6f2;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
main,
footer {
  max-width: 1160px;
  margin: auto;
  padding: 24px;
}
header {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #dce3db;
}
.mark {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}
.wordmark strong {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #17271d;
}
.wordmark small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  margin-top: 0;
}
#central-login a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 16px;
  margin: 8px 0;
  background: #203b2b;
  border: 1px solid #3c6145;
  border-radius: 9px;
  color: #e5ffc1;
  text-decoration: none;
  font-weight: 500;
}
#central-login a:hover {
  background: #2a4b35;
}
#central-login a:focus-visible {
  outline: 3px solid #a8d567;
  outline-offset: 3px;
}
small {
  display: block;
  color: #718479;
  margin-top: 4px;
}
header button {
  margin-left: auto;
}
h1 {
  font-size: 30px;
  margin: 0 0 8px;
}
h2 {
  margin-top: 0;
  font-size: 21px;
}
p,
footer {
  color: #66786e;
  line-height: 1.7;
}
section {
  padding: 26px;
  background: white;
  border: 1px solid #dce3db;
  border-radius: 18px;
}
#login {
  max-width: 440px;
  margin: 32px auto;
}
nav {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
}
nav button:not(.selected) {
  background: transparent;
  color: #37574a;
  border-color: #dce3db;
}
label {
  display: block;
  color: #4b6256;
  margin: 12px 0;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #ced8ce;
  background: #fff;
  border-radius: 8px;
  padding: 11px;
  font: inherit;
  color: #18352f;
}
textarea {
  min-height: 70px;
}
button {
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 10px 16px;
  background: #204e41;
  color: white;
  font: inherit;
  cursor: pointer;
}
button.secondary {
  background: #f1f4ed;
  border-color: #dce3db;
  color: #37574a;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
input:focus,
select:focus,
button:focus-visible {
  outline: 2px solid #7fa797;
  outline-offset: 2px;
}
.heading,
.actions,
.pager {
  display: flex;
  align-items: center;
  gap: 12px;
}
.heading {
  justify-content: space-between;
}
.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto auto;
  gap: 12px;
  align-items: end;
  margin: 15px 0 26px;
}
.filters label {
  margin: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
article {
  padding: 18px;
  background: #f6f8f3;
  border: 1px solid #dce3db;
  border-radius: 12px;
}
.master-list {
  max-height: 180px;
  overflow: auto;
  font-size: 14px;
}
.master-item {
  padding: 8px 0;
  border-bottom: 1px solid #dce3db;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 16px 12px;
  border-bottom: 1px solid #e5e9e1;
}
th {
  font-weight: 600;
  background: #f6f8f3;
}
td {
  vertical-align: top;
}
.pager {
  margin-top: 20px;
}
.pager span {
  margin-right: auto;
}
.badge {
  display: inline-block;
  border-radius: 6px;
  padding: 4px 7px;
  background: #edf3e9;
}
.badge.warn {
  background: #fff0dd;
  color: #7b4810;
}
.badge.danger {
  background: #fce9e6;
  color: #9a3530;
}
dialog {
  border: 1px solid #dce3db;
  border-radius: 18px;
  padding: 28px;
  max-width: 600px;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow: auto;
  color: #18352f;
}
dialog::backdrop {
  background: #18352f77;
}
fieldset {
  border: 1px solid #dce3db;
  border-radius: 8px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.check input {
  width: auto;
  margin: 0;
}
.device {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #dce3db;
}
.device span {
  flex: 1;
  overflow-wrap: anywhere;
}
#message {
  border-radius: 8px;
  margin: 0 0 16px;
}
#message:not(:empty) {
  padding: 12px;
  background: #fff0dd;
  color: #7b4810;
}
#generated-key {
  font-family: "Prompt", sans-serif;
}
footer {
  font-size: 12px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  header,
  main,
  footer {
    padding: 16px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .filters label:first-child {
    grid-column: 1/-1;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .heading {
    align-items: flex-start;
  }
  section {
    padding: 18px;
  }
  h1 {
    font-size: 24px;
  }
  th,
  td {
    padding: 12px 8px;
  }
}
.master-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.master-item span {
  flex: 1;
}
.master-item button {
  padding: 5px 9px;
  font-size: 12px;
}
.binding {
  flex-wrap: wrap;
}
.binding > span {
  flex-basis: 100%;
}
.binding > input,
.binding > select {
  width: 100%;
  min-width: 0;
}
@media (max-width: 640px) {
  header {
    flex-wrap: wrap;
  }
  header button {
    width: 100%;
    margin-left: 0;
  }
}
