:root {
  font-family: Inter, "Microsoft YaHei", sans-serif;
  color: #18243b;
  background: #f4f6fa;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #dce2ed;
  border-radius: 8px;
  background: #fff;
  padding: 10px 16px;
  color: #273552;
}
button:hover {
  background: #eef2fb;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: #4c5de4;
  color: white;
  border-color: #4c5de4;
}
.primary:hover {
  background: #3d4dcc;
}
.quiet {
  border: 0;
  background: transparent;
  color: #78849b;
}
input,
select {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #dce2ed;
  border-radius: 8px;
  background: #fff;
  color: #26344d;
  outline: none;
}
input:focus,
select:focus {
  border-color: #7382f5;
  box-shadow: 0 0 0 3px #eef0ff;
}
label {
  display: block;
  color: #526079;
  font-size: 13px;
}
label input,
label select {
  margin: 9px 0 18px;
}
.muted {
  color: #8994a8;
  font-size: 13px;
  line-height: 1.7;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: #8b98b1;
}
h1 {
  font-size: 25px;
  margin: 10px 0;
}
h2 {
  font-size: 17px;
  margin: 4px 0;
}
small {
  display: block;
  color: #92a0bb;
  font-size: 11px;
  margin-top: 5px;
}
.mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: white;
  background: #6270ee;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 700;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 20% 20%, #dfe4ff, transparent 55%), #f3f5fb;
}
.login-card {
  background: white;
  padding: 40px 42px;
  width: min(420px, 92vw);
  border: 1px solid #e4e8f3;
  border-radius: 20px;
  box-shadow: 0 20px 70px #2532710d;
}
.login-card .primary {
  width: 100%;
  margin-top: 8px;
}
.login-card label {
  margin-top: 20px;
}
.login-card h1 {
  margin-top: 16px;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  background: #151d37;
  color: #e7ecff;
  padding: 32px 20px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 50px;
}
nav button {
  display: block;
  text-align: left;
  width: 100%;
  border: 0;
  background: transparent;
  color: #8996b4;
  margin-bottom: 12px;
  padding: 13px 16px;
}
.chosen,
nav button:hover {
  background: #293455;
  color: #e7ecff;
}
.aside-bottom {
  position: absolute;
  bottom: 32px;
  font-size: 13px;
  color: #9aa8c6;
  padding: 0 12px;
}
main {
  margin-left: 224px;
  padding: 34px 42px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}
.stat {
  padding: 24px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e7ebf3;
}
.stat strong {
  display: block;
  font-size: 30px;
  margin: 14px 0 0;
  color: #27376a;
}
.stat span {
  color: #8590a6;
}
section {
  background: white;
  border: 1px solid #e6eaf2;
  border-radius: 12px;
  padding: 24px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin: 22px 0;
}
.toolbar input {
  max-width: 380px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  background: #f7f9fd;
  color: #8b95a8;
  font-weight: 500;
  padding: 14px 12px;
  font-size: 12px;
}
td {
  padding: 20px 12px;
  border-bottom: 1px solid #edf0f6;
  font-size: 13px;
}
td:first-child {
  min-width: 200px;
}
td button {
  border: 0;
  padding: 5px 6px;
  color: #4c5de4;
  font-size: 12px;
  white-space: nowrap;
}
td small {
  max-width: 220px;
  overflow-wrap: anywhere;
}
.pill {
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 5px;
  background: #eff2f8;
  color: #8590a6;
  white-space: nowrap;
}
.pill.active {
  background: #eaf8f1;
  color: #25976a;
}
.pill.error,
.pill.expired {
  background: #fff0ef;
  color: #d76460;
}
.pill.suspended {
  background: #fff6e7;
  color: #c38a33;
}
.pill.provisioning {
  background: #eef0ff;
  color: #6472d6;
}
.plan-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.plan {
  border: 1px solid #e5e9f3;
  border-radius: 12px;
  padding: 24px;
}
.plan h3 {
  color: #4c5de4;
  margin: 0 0 24px;
}
.plan p {
  color: #7e8da6;
}
.plan b {
  font-size: 23px;
  color: #2d3c68;
  margin-right: 8px;
}
.audit {
  padding: 18px 0;
  border-bottom: 1px solid #edf0f6;
}
.audit span {
  float: right;
  color: #97a2b4;
}
dialog {
  width: min(650px, 94vw);
  border: 1px solid #e3e8f0;
  border-radius: 16px;
  padding: 28px;
  color: #263552;
  max-height: 92vh;
  overflow: auto;
  box-shadow: 0 20px 100px #0b163f22;
}
dialog::backdrop {
  background: #151d3755;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.error {
  color: #db5f59;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
#notice {
  position: fixed;
  right: 30px;
  bottom: 30px;
  background: #192743;
  color: white;
  border-radius: 10px;
  padding: 14px 22px;
  max-width: 420px;
  display: none;
}
.empty {
  padding: 50px;
  color: #9aa5ba;
  text-align: center;
}
#detail-content {
  line-height: 2;
  overflow-wrap: anywhere;
}
a {
  color: #4c5de4;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  aside {
    width: 180px;
  }
  main {
    margin-left: 180px;
    padding: 25px 20px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  aside {
    position: static;
    width: auto;
    padding: 16px;
  }
  .brand {
    margin: 0 0 15px;
  }
  .aside-bottom {
    display: none;
  }
  nav {
    display: flex;
    gap: 5px;
  }
  nav button {
    margin: 0;
    padding: 10px;
  }
  main {
    margin: 0;
    padding: 20px 12px;
  }
  header {
    gap: 10px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px;
  }
  section {
    padding: 16px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .section-head {
    gap: 14px;
  }
  .section-head .primary {
    white-space: nowrap;
  }
}

textarea {
  font: inherit;
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #dce2ed;
  border-radius: 8px;
  margin: 9px 0 18px;
  resize: vertical;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}
.checkbox input {
  width: auto;
  margin: 0;
}
