:root {
  color-scheme: light;
  --ink: #192a40;
  --sub: #53667c;
  --line: #d6dfe9;
  --blue: #345bd3;
  --wash: #f3f6fa;
  --muted: #63758a;
  font:
    15px/1.55 Inter,
    'PingFang SC',
    'Microsoft YaHei',
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--wash);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 68px;
  background: #14243b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1340px) / 2));
  gap: 20px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 19px;
}
.logo {
  font-size: 29px;
  color: #abc1ff;
}
#identity {
  color: #dce5f7;
}
.layout {
  max-width: 1380px;
  margin: auto;
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 28px;
  padding: 32px 24px 60px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-self: start;
  position: sticky;
  top: 20px;
}
button,
.btn {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 13px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
}
button:hover,
.btn:hover {
  border-color: #8d9fc7;
  background: #f1f5ff;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  font-weight: 600;
}
.primary:hover {
  background: #2548af;
}
.danger {
  color: #a43345;
}
.quiet {
  border: none;
  background: transparent;
}
nav button {
  text-align: left;
  border: none;
  background: transparent;
  padding: 12px 15px;
}
nav button[aria-current='page'] {
  background: #e1e9fc;
  color: #173da9;
  font-weight: 650;
}
.heading,
.row,
.actions,
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
h1 {
  font-size: clamp(25px, 3vw, 35px);
  letter-spacing: -0.035em;
  margin: 0;
}
h2 {
  font-size: 19px;
  margin: 0;
}
h3 {
  font-size: 16px;
  margin: 0;
}
p {
  margin: 8px 0;
  color: var(--sub);
}
a {
  color: #284fc2;
}
.section,
.card,
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.section,
.card {
  padding: 20px;
  margin: 15px 0;
}
.section h2 {
  margin-bottom: 12px;
}
.actions {
  justify-content: flex-start;
  margin-top: 12px;
}
.pill {
  display: inline-flex;
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 13px;
  background: #e8eef6;
  color: #334866;
}
.pill.on {
  background: #d8efe8;
  color: #166957;
}
.pill.issue {
  color: #7c4014;
  background: #fceacf;
}
.link-action {
  margin-inline-start: 8px;
  padding: 4px 8px;
}
.welcome-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.details {
  font-size: 14px;
  color: var(--sub);
  overflow-wrap: anywhere;
}
.stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.stats strong {
  margin-left: 5px;
}
.tablebox {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: #415773;
  white-space: nowrap;
}
.empty {
  padding: 24px 0;
  color: var(--sub);
}
dialog {
  padding: 0;
  width: min(530px, calc(100vw - 24px));
  max-height: 89dvh;
  overflow: auto;
  box-shadow: 0 16px 70px #12233d38;
}
dialog::backdrop {
  background: #192a4073;
}
.dialog-head {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.dialog-head button {
  font-size: 22px;
  line-height: 1;
}
#inside {
  padding: 18px 20px;
}
form {
  display: grid;
  gap: 13px;
}
label {
  display: grid;
  gap: 5px;
  font-weight: 620;
}
input,
select,
textarea {
  font: inherit;
  width: 100%;
  min-height: 40px;
  border: 1px solid #bfcadd;
  border-radius: 7px;
  padding: 7px 10px;
  color: var(--ink);
  background: white;
}
input[type='checkbox'] {
  width: 18px;
  min-height: 18px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 450;
}
.tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 16px;
}
.tabs button[aria-pressed='true'] {
  background: #e6edff;
  color: #284ab4;
}
.foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 7px;
}
.error {
  color: #9c3042;
  font-weight: 550;
}
.error:empty {
  display: none;
}
.mono,
code {
  font:
    13px/1.5 'IBM Plex Mono',
    monospace;
  overflow-wrap: anywhere;
}
.subhead {
  margin-top: 20px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #8eabff;
  outline-offset: 2px;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: min(440px, 92vw);
  background: #1d3047;
  color: white;
  padding: 12px 16px;
  border-radius: 9px;
  z-index: 3;
}
#inside .tip {
  padding: 10px;
  background: #eef3fc;
  border-radius: 6px;
}
details {
  margin: 12px 0;
}
summary {
  cursor: pointer;
  color: #294ba9;
}
[hidden] {
  display: none !important;
}
@media (max-width: 780px) {
  header {
    height: 56px;
    padding: 0 15px;
  }
  .layout {
    display: block;
    padding: 12px;
  }
  .layout nav {
    position: static;
    flex-direction: row;
    overflow: auto;
    margin-bottom: 18px;
  }
  .layout nav button {
    white-space: nowrap;
    padding: 8px 10px;
  }
  .card,
  .section {
    padding: 14px;
  }
  .stats {
    gap: 12px;
  }
  .heading {
    align-items: flex-start;
  }
  #identity {
    max-width: 45vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
