:root {
  color-scheme: light;
  font:
    15px/1.55 'Inter',
    'Microsoft YaHei',
    system-ui,
    sans-serif;
  color: #193344;
  background: #f5f8fa;
  --teal: #096b66;
  --line: #d6e0e5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 1.45rem;
}
h2 {
  font-size: 1.15rem;
}
h3 {
  font-size: 1rem;
  margin: 1.3rem 0 0.55rem;
}
header,
nav,
main {
  padding-inline: clamp(16px, 3vw, 42px);
}
header {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #183645;
  color: white;
}
header span {
  margin-left: auto;
}
header button {
  background: transparent;
  color: white;
  border-color: #77929f;
}
nav {
  display: flex;
  gap: 1.2rem;
  background: white;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
nav button {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 14px 2px;
  white-space: nowrap;
}
nav button[aria-current='page'] {
  border-color: var(--teal);
  color: var(--teal);
  font-weight: 700;
}
.actions button[aria-pressed='true'] {
  background: var(--teal);
  color: white;
}
[data-preview] details {
  margin: 0.8rem 0;
}
main {
  max-width: 1600px;
  margin: auto;
  padding-block: 24px;
}
.toolbar,
.actions,
.dialog-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.toolbar {
  margin-bottom: 16px;
}
.toolbar h2 {
  margin-right: auto;
}
.toolbar input {
  width: min(280px, 100%);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  padding: 0.42rem 0.8rem;
  border-radius: 5px;
  border: 1px solid #afc0c9;
  background: white;
  color: #193344;
}
button:hover {
  border-color: var(--teal);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
.link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--teal);
  text-align: left;
  font-weight: 650;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #357fc6;
  outline-offset: 2px;
}
input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  background: white;
  border: 1px solid #b9c8cf;
  border-radius: 4px;
  padding: 0.5rem 0.65rem;
  color: inherit;
}
textarea {
  resize: vertical;
}
label {
  display: grid;
  gap: 5px;
  font-size: 0.92rem;
}
.sheet {
  overflow-x: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th,
td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
th {
  background: #eaf1f4;
  font-weight: 600;
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.state {
  font-weight: 600;
  color: #496273;
}
.good {
  color: #076752;
}
.bad {
  color: #ac352e;
}
.empty {
  padding: 2.2rem 1rem;
  text-align: center;
  color: #516875;
  background: white;
  border: 1px dashed #bacad2;
}
.muted,
small {
  color: #526975;
}
small {
  display: block;
}
.mono,
pre {
  font:
    13px/1.6 'IBM Plex Mono',
    Consolas,
    monospace;
}
dialog {
  border: 1px solid #afc0c9;
  border-radius: 9px;
  color: inherit;
  width: min(760px, 95vw);
  max-height: 90dvh;
  padding: 0;
  box-shadow: 0 18px 80px #182d4140;
}
dialog::backdrop {
  background: #20333e69;
}
.dialog-head {
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  margin-right: auto;
}
#dialog-body {
  padding: 18px 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.wide {
  grid-column: 1/-1;
}
.actions {
  margin: 0.8rem 0;
}
.fields {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.3rem 1rem;
}
.fields dt {
  color: #536b79;
}
.fields dd {
  margin: 0;
  overflow-wrap: anywhere;
}
pre {
  background: #edf3f5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 12px;
  border-radius: 4px;
}
.login-form {
  display: grid;
  gap: 16px;
  background: white;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  padding: 32px;
  max-width: 400px;
  margin: 12vh auto;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.checks label {
  display: flex;
  align-items: center;
}
.checks input {
  width: auto;
}
#notice {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: #203b49;
  color: white;
  padding: 12px 18px;
  border-radius: 5px;
  max-width: min(500px, 90vw);
  z-index: 3;
}
.error-text {
  color: #a02f24;
  white-space: pre-wrap;
}
[hidden] {
  display: none !important;
}
@media (max-width: 650px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .toolbar input {
    order: 4;
    width: 100%;
  }
  th,
  td {
    padding: 0.55rem;
  }
  .dialog-head,
  #dialog-body {
    padding: 13px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .fields dd {
    margin-bottom: 6px;
  }
}
