:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    sans-serif;
  color: #16243a;
  background: #f5f7fb;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #dce2ed;
  border-radius: 8px;
  background: #fff;
  color: #36455f;
  padding: 9px 14px;
}
button:hover {
  background: #eef2ff;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: #5363e9;
  color: white;
  border-color: #5363e9;
}
.primary:hover {
  background: #4354dc;
}
.danger {
  color: #be3c4e;
}
.muted,
small {
  color: #7a879b;
}
small {
  font-size: 12px;
}
a {
  color: #5363e9;
}
h1 {
  font-size: 28px;
  margin: 0 0 9px;
  letter-spacing: -0.7px;
}
h2 {
  font-size: 17px;
  margin: 0;
}
p {
  line-height: 1.7;
}
aside {
  width: 230px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #101c31;
  color: #d7deec;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 25px;
  font-weight: 750;
  color: white;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #6575ff;
  border-radius: 11px;
  color: white;
  font-size: 23px;
}
.brand-sub {
  font-size: 11px;
  color: #7788a7;
  letter-spacing: 2px;
  margin: 12px 0 36px;
}
nav {
  display: grid;
  gap: 9px;
}
nav button {
  text-align: left;
  border: 0;
  background: none;
  color: #9aabc5;
  padding: 13px 16px;
}
nav button.active,
nav button:hover {
  background: #243354;
  color: #fff;
}
nav span {
  display: inline-block;
  width: 30px;
}
aside footer {
  margin-top: auto;
  font-size: 12px;
  color: #91a2be;
  line-height: 2;
}
main {
  margin-left: 230px;
  padding: 0 42px 50px;
  max-width: 1600px;
}
.topbar {
  height: 82px;
  border-bottom: 1px solid #e4e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 38px;
}
.topbar .status {
  color: #43856c;
  font-size: 12px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 15px;
}
.page-head p {
  margin: 0;
  color: #7a879b;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.stat,
.panel {
  background: white;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
}
.stat {
  padding: 22px;
}
.stat strong {
  font-size: 32px;
  display: block;
  margin: 14px 0 3px;
}
.panel {
  margin-bottom: 24px;
  overflow: hidden;
}
.panel-head {
  padding: 22px 24px;
  border-bottom: 1px solid #edf0f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-body {
  padding: 24px;
}
.grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}
.step {
  display: flex;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid #edf0f6;
}
.step:last-child {
  border: 0;
}
.step b {
  background: #eef0ff;
  color: #5865dc;
  border-radius: 9px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}
.step p {
  margin: 5px 0;
  color: #7a879b;
}
.step button {
  margin-left: auto;
  align-self: center;
  white-space: nowrap;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  background: #fafbfe;
  color: #8490a4;
  font-size: 12px;
  font-weight: 500;
}
td,
th {
  padding: 17px 23px;
  border-bottom: 1px solid #edf0f6;
}
td:last-child {
  white-space: normal;
}
td button {
  padding: 6px 9px;
  font-size: 12px;
  margin: 2px;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 5px;
  background: #edf1ff;
  color: #5763c1;
  font-size: 12px;
  margin: 2px;
}
.green {
  background: #eaf7f1;
  color: #348367;
}
.gray {
  background: #f0f2f5;
  color: #8290a2;
}
.empty {
  text-align: center;
  padding: 55px 20px;
  color: #8490a4;
}
.empty strong {
  display: block;
  color: #465570;
  margin-bottom: 10px;
}
code,
pre {
  font-family: ui-monospace, SFMono-Regular, monospace;
}
pre {
  padding: 20px;
  background: #111e33;
  color: #cbd9ef;
  border-radius: 9px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.8;
}
dialog {
  border: 1px solid #e4e8f0;
  border-radius: 15px;
  box-shadow: 0 24px 100px #0d193844;
  width: min(570px, calc(100% - 28px));
  padding: 28px;
  color: #16243a;
}
dialog::backdrop {
  background: #101c3177;
  backdrop-filter: blur(3px);
}
dialog h2 {
  margin-bottom: 22px;
}
form {
  display: grid;
  gap: 17px;
}
label {
  display: grid;
  gap: 7px;
  color: #5b6981;
  font-size: 13px;
}
input,
select,
textarea {
  border: 1px solid #dce2ed;
  border-radius: 7px;
  padding: 11px;
  width: 100%;
  background: white;
  color: #16243a;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #6575ff;
  box-shadow: 0 0 0 3px #6575ff15;
}
input[type="checkbox"] {
  width: auto;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}
.hint {
  background: #f3f5ff;
  border-radius: 8px;
  padding: 13px;
  color: #69759b;
  font-size: 12px;
  line-height: 1.8;
}
.error {
  color: #c13b50;
  font-size: 13px;
  min-height: 0;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at top left, #dfe5ff, transparent 60%), #f5f7fb;
}
.login-card {
  background: white;
  border: 1px solid #e2e7f2;
  border-radius: 18px;
  padding: 40px;
  width: min(420px, calc(100% - 32px));
  box-shadow: 0 20px 60px #20345b0a;
}
.login .brand {
  color: #16243a;
  margin-bottom: 30px;
}
.login h1 {
  font-size: 23px;
}
.login form {
  margin-top: 25px;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: #18273f;
  color: white;
  padding: 12px 20px;
  border-radius: 9px;
  display: none;
  z-index: 10;
}
.key {
  overflow-wrap: anywhere;
  padding: 18px;
  background: #f0f3ff;
  border-radius: 8px;
  user-select: all;
  line-height: 1.7;
}
.note {
  border-left: 3px solid #6777e9;
  padding-left: 15px;
  color: #7a879b;
  line-height: 1.8;
}
.split {
  display: flex;
  gap: 10px;
  align-items: end;
}
.split label {
  flex: 1;
}
@media (max-width: 1000px) {
  main {
    padding: 0 22px 30px;
    margin-left: 190px;
  }
  aside {
    width: 190px;
    padding: 24px 14px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 650px) {
  aside {
    position: static;
    width: auto;
    padding: 16px;
  }
  .brand-sub,
  aside footer {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 16px;
    gap: 3px;
  }
  nav button {
    white-space: nowrap;
    padding: 10px;
  }
  nav span {
    display: none;
  }
  main {
    margin: 0;
    padding: 0 16px 25px;
  }
  .topbar {
    height: 64px;
    margin-bottom: 25px;
  }
  .page-head {
    align-items: start;
  }
  h1 {
    font-size: 24px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 16px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
