:root {
  font-family: Inter, "Microsoft YaHei", system-ui, sans-serif;
  color: #22324b;
  background: #f4f6fa;
  font-size: 14px;
  font-synthesis: none;
  --primary: #2869e8;
  --line: #e6eaf0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  padding: 9px 14px;
  color: #31435d;
  font-weight: 550;
}
button:hover {
  border-color: #7da7ef;
  background: #f5f9ff;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.primary:hover {
  background: #1c57cb;
  color: white;
}
.danger {
  color: #c73838;
}
.small {
  padding: 5px 9px;
  font-size: 12px;
}
a {
  color: #2663cc;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
input,
select,
textarea {
  border: 1px solid #dbe1ea;
  background: white;
  border-radius: 6px;
  padding: 10px 11px;
  color: #24344d;
  min-width: 0;
  width: 100%;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}
input[type="file"] {
  padding: 16px;
  background: #f7f9fc;
}
textarea {
  resize: vertical;
  min-height: 95px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: #56677e;
}
label.check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.shell {
  display: grid;
  grid-template-columns: 224px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #142339;
  color: #a9b8cc;
  padding: 26px 16px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  font-size: 22px;
  font-weight: 750;
  padding: 0 12px 27px;
}
.brand-icon {
  width: 35px;
  height: 35px;
  background: #3478f5;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  color: #93a7c2;
  margin-top: 4px;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #71859e;
  padding: 17px 14px 8px;
}
.nav a {
  color: #aebbd0;
  display: flex;
  gap: 12px;
  padding: 13px 15px;
  margin: 3px 0;
  border-radius: 7px;
}
.nav a:hover {
  background: #1d314d;
  text-decoration: none;
}
.nav a.active {
  background: #2869e8;
  color: white;
  box-shadow: 0 5px 15px #091b3740;
}
.sidebar-foot {
  margin-top: auto;
  font-size: 11px;
  border-top: 1px solid #2a3a50;
  padding: 18px 12px 0;
  line-height: 1.9;
}
.main {
  min-width: 0;
}
.topbar {
  height: 72px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}
.topbar span {
  font-size: 12px;
  color: #74849a;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}
.avatar {
  background: #e9f0ff;
  color: #2869e8;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.content {
  padding: 28px 32px 48px;
  max-width: 1650px;
  margin: auto;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #8491a6;
  font-weight: 650;
  margin-bottom: 8px;
}
h1 {
  font-size: 26px;
  margin: 0 0 9px;
  letter-spacing: -0.6px;
}
h2 {
  font-size: 16px;
  margin: 0 0 18px;
}
h3 {
  font-size: 14px;
  margin: 0 0 12px;
}
p {
  line-height: 1.75;
}
.muted {
  color: #7e8ca0;
}
.subtle {
  font-size: 12px;
  color: #7e8ca0;
  margin: 0;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px #12234102;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.metric {
  padding: 21px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.metric-label {
  color: #728198;
  font-size: 12px;
}
.metric-value {
  font-size: 30px;
  font-weight: 650;
  color: #1e3454;
  margin: 13px 0 7px;
  letter-spacing: -1px;
}
.metric-note {
  font-size: 11px;
  color: #8b98a9;
}
.toolbar,
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.toolbar {
  justify-content: space-between;
  margin-bottom: 18px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.full {
  grid-column: 1/-1;
}
.filters {
  margin-bottom: 17px;
}
.notice {
  padding: 12px 15px;
  border: 1px solid #d9e6ff;
  background: #f2f7ff;
  border-radius: 7px;
  color: #42679b;
  font-size: 12px;
  line-height: 1.7;
  margin: 14px 0;
}
.notice.warn {
  background: #fff9eb;
  border-color: #f3e4bd;
  color: #946b1f;
}
.notice.error {
  background: #fff3f3;
  border-color: #f0cccc;
  color: #a63838;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
}
th {
  background: #f8f9fc;
  color: #7a889b;
  font-weight: 550;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 15px 12px;
  border-bottom: 1px solid #edf0f5;
  color: #4a5a70;
}
tbody tr:hover {
  background: #fafcff;
}
td.name {
  color: #213c63;
  font-weight: 550;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  background: #edf2fa;
  color: #627796;
  font-size: 11px;
  margin-right: 4px;
}
.badge.green {
  background: #e9f7ef;
  color: #258158;
}
.badge.blue {
  background: #eaf1ff;
  color: #3466b7;
}
.badge.orange {
  background: #fff3dc;
  color: #ab7a22;
}
.badge.red {
  background: #ffeded;
  color: #bd4949;
}
.empty {
  text-align: center;
  padding: 50px 20px;
  color: #8b98aa;
}
.empty strong {
  display: block;
  font-size: 17px;
  color: #516782;
  margin-bottom: 10px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 19px;
  color: #7f8da2;
  font-size: 12px;
}
.split {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 20px;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.step b {
  border-radius: 50%;
  width: 27px;
  height: 27px;
  background: #eaf1ff;
  color: #2869e8;
  display: grid;
  place-items: center;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 10% 20%, #e1ebff, transparent 55%), #f4f7fc;
}
.login-box {
  width: min(420px, 92vw);
  padding: 36px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 70px #14366612;
}
.login-box .brand {
  color: #253e61;
  padding: 0 0 25px;
}
.login-box form {
  display: grid;
  gap: 19px;
}
.login-box h1 {
  font-size: 23px;
}
.login-box p {
  color: #8290a4;
  font-size: 12px;
  margin-bottom: 25px;
}
dialog {
  width: min(840px, 94vw);
  max-height: 90vh;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 20px 80px #0e223640;
  color: #24344d;
}
dialog::backdrop {
  background: #0c1e365c;
  backdrop-filter: blur(2px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-head h2 {
  margin: 0;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 22px;
}
#toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #183250;
  color: white;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 5px 30px #12294030;
  max-width: 500px;
  display: none;
  z-index: 99;
}
#toast.show {
  display: block;
}
details {
  margin-top: 12px;
}
summary {
  cursor: pointer;
  color: #426ba5;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.7;
  background: #f6f8fb;
  padding: 14px;
  border-radius: 6px;
}
.progress {
  height: 7px;
  background: #edf1f7;
  border-radius: 8px;
  overflow: hidden;
}
.progress span {
  display: block;
  background: #4581ee;
  height: 100%;
}
.stack {
  display: grid;
  gap: 15px;
}
.tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 22px;
}
.link-button {
  background: none;
  border: 0;
  color: #2869e8;
  padding: 3px;
}
.form-note {
  font-size: 11px;
  color: #8a96a7;
}
.loading {
  padding: 60px;
  text-align: center;
  color: #789;
}
.nowrap {
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 14px;
  }
  .brand {
    padding-bottom: 12px;
  }
  .sidebar .nav {
    display: flex;
    overflow: auto;
  }
  .nav a {
    white-space: nowrap;
    padding: 10px;
  }
  .nav-caption,
  .sidebar-foot {
    display: none;
  }
  .topbar {
    padding: 0 18px;
    height: 57px;
  }
  .content {
    padding: 22px 16px;
  }
  .grid,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }
  .page-head {
    flex-direction: column;
  }
  .metric-value {
    font-size: 25px;
  }
  .card {
    padding: 17px;
  }
  .topbar-right span {
    display: none;
  }
}

.sidebar {
  min-width: 0;
}
.nav {
  max-width: 100%;
}
@media (max-width: 720px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .topbar-right {
    gap: 8px;
  }
  .card,
  .content {
    min-width: 0;
  }
  #toast {
    max-width: calc(100vw - 32px);
    right: 16px;
  }
}
