:root {
  font:
    15px / 1.5 system-ui,
    "Microsoft YaHei",
    sans-serif;
  color: #182b40;
  background: #f5f7fa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 5%;
  border-bottom: 1px solid #d9e2ea;
  background: white;
}
header strong {
  font-size: 21px;
}
#identity {
  margin-left: auto;
}
main {
  max-width: 1180px;
  margin: 36px auto;
  padding: 0 24px;
}
h1 {
  font-size: 24px;
  margin: 0 0 24px;
}
#login,
#mfa-login {
  max-width: 390px;
  margin: 12vh auto;
  padding: 32px;
  background: white;
  border: 1px solid #d9e2ea;
  border-radius: 16px;
}
label {
  display: block;
  margin: 16px 0;
}
input,
select {
  display: block;
  width: 100%;
  padding: 11px;
  margin-top: 7px;
  border: 1px solid #c7d3df;
  border-radius: 7px;
  font: inherit;
}
button {
  font: inherit;
  border: 1px solid #d9e2ea;
  border-radius: 8px;
  background: white;
  color: #182b40;
  padding: 9px 16px;
  cursor: pointer;
}
button:hover {
  background: #eef3f7;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #087f73;
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: #087f73;
  color: white;
  border-color: #087f73;
}
.primary:hover {
  background: #096e64;
}
nav,
footer {
  display: flex;
  gap: 10px;
  align-items: center;
}
nav span {
  flex: 1;
}
nav {
  margin-bottom: 20px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}
th,
td {
  text-align: left;
  padding: 17px 15px;
  border-bottom: 1px solid #e2e8ee;
}
th {
  font-weight: 600;
  color: #526477;
}
td:last-child {
  text-align: right;
}
td:last-child button {
  margin: 3px 0 3px 8px;
}
.table-wrap {
  border: 1px solid #d9e2ea;
  border-radius: 12px;
  overflow: auto;
}
#message,
#edit-message {
  color: #a0382a;
  white-space: pre-wrap;
}
dialog {
  width: min(480px, 95vw);
  border: 1px solid #d9e2ea;
  border-radius: 15px;
  padding: 28px;
}
dialog::backdrop {
  background: #182b4055;
}
footer {
  justify-content: flex-end;
  margin-top: 24px;
}
h2 {
  font-size: 21px;
  margin-top: 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  nav {
    flex-wrap: wrap;
  }
  main {
    padding: 0 12px;
  }
  th,
  td {
    padding: 12px 8px;
  }
}
