:root {
  color-scheme: light;
  font:
    15px/1.55 Inter,
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  color: #17242b;
  background: #f3f6f7;
  --ink: #143b40;
  --line: #d5e0e1;
  --sea: #116866;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: var(--ink);
  color: white;
}
.bar,
main {
  max-width: 1240px;
  margin: auto;
  padding: 18px 30px;
}
.bar,
.title,
.filters,
.pager,
nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bar,
.title {
  justify-content: space-between;
}
.brand {
  font-size: 23px;
  letter-spacing: 0.025em;
}
.brand span {
  font-size: 16px;
  border-left: 1px solid #96b3b2;
  margin-left: 10px;
  padding-left: 14px;
}
main {
  padding-top: 32px;
}
h1,
h2,
p {
  margin: 0 0 14px;
}
h1 {
  font-size: 27px;
}
h2 {
  font-size: 20px;
}
.card,
dialog {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.card {
  overflow: hidden;
}
.login {
  max-width: 440px;
  margin: 9vh auto;
  padding: 30px;
}
.login label {
  margin-bottom: 16px;
}
.login button {
  width: 100%;
}
label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  color: #334b4e;
}
input,
select,
textarea,
button {
  font: inherit;
  border-radius: 6px;
  border: 1px solid #b9cccd;
  padding: 8px 12px;
  background: white;
  color: var(--ink);
}
input,
select,
textarea {
  min-width: 0;
}
button {
  cursor: pointer;
  font-weight: 600;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button:hover:not(:disabled),
button:focus-visible {
  border-color: var(--sea);
}
button.primary,
nav button[aria-current="true"] {
  background: var(--sea);
  color: white;
  border-color: var(--sea);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 10px;
  margin: 12px 0 24px;
}
.metric {
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.metric span,
.metric strong {
  display: block;
}
.metric span {
  font-size: 12px;
  color: #4a6668;
}
.metric strong {
  font-size: 25px;
  font-variant-numeric: tabular-nums;
}
nav,
.filters,
.pager {
  padding: 15px 20px;
}
.filters {
  background: #f7fafa;
  flex-wrap: wrap;
  align-items: end;
}
.filters input {
  max-width: 200px;
}
nav {
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
nav button {
  border-color: transparent;
}
.scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid #e5ebec;
  white-space: nowrap;
  font-size: 14px;
}
th {
  color: #50676a;
  font-size: 12px;
}
td button {
  font-size: 12px;
  padding: 5px 8px;
  margin: 2px;
}
.pager {
  justify-content: flex-end;
  color: #4a6668;
}
.empty {
  text-align: center;
  padding: 36px;
  color: #566d70;
}
#notice,
#dialog-error {
  margin: 12px 0;
  color: #8b3319;
}
dialog {
  width: min(95vw, 510px);
  padding: 24px;
  color: var(--ink);
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #112c3680;
}
#fields {
  display: grid;
  gap: 11px;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
.detail {
  font-family: ui-monospace, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f2f7f7;
  padding: 14px;
  border-radius: 6px;
}
.sensitive {
  width: 100%;
  min-height: 85px;
}
small {
  color: #527173;
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .bar,
  main {
    padding: 14px;
  }
  .filters,
  nav,
  .pager {
    padding: 10px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 14px;
  }
  h1 {
    font-size: 23px;
  }
  .login {
    margin: 6vh 0;
  }
  .filters label {
    flex: 1 1 105px;
  }
  .filters input {
    width: 100%;
  }
  .title {
    align-items: baseline;
  }
}
