:root {
  font-family: "Microsoft YaHei", system-ui, sans-serif;
  color: #30364c;
  background: #fff9f3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  min-height: 42px;
  border: 1px solid #e8dff0;
  border-radius: 12px;
  background: #fff;
  padding: 10px 16px;
  color: #3c4067;
  cursor: pointer;
}
button:hover {
  background: #f4effb;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary {
  background: #3c4067;
  color: #fff;
}
input,
select,
textarea {
  border: 1px solid #ddd7e5;
  padding: 12px;
  border-radius: 10px;
  width: 100%;
  background: #fff;
  color: #30364c;
}
textarea {
  min-height: 120px;
}
label {
  display: grid;
  gap: 8px;
  margin: 15px 0;
  font-size: 14px;
}
h1 {
  font-size: 27px;
  color: #3c4067;
}
p,
small {
  color: #6c6d83;
  line-height: 1.7;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.card {
  padding: 32px;
  border: 1px solid #e8dff0;
  border-radius: 24px;
  background: white;
  max-width: 480px;
  width: 100%;
}
.logo {
  font-size: 24px;
  font-weight: 800;
  color: #3c4067;
}
.logo span {
  font-size: 12px;
  display: block;
  font-weight: 400;
  color: #6c6d83;
  margin-top: 4px;
}
main {
  display: flex;
  min-height: 100vh;
}
main[hidden],
section[hidden] {
  display: none;
}
aside {
  width: 230px;
  padding: 32px 22px;
  border-right: 1px solid #e8dff0;
  background: #fff;
  position: sticky;
  top: 0;
  height: 100vh;
}
nav {
  display: grid;
  gap: 8px;
  margin: 32px 0;
}
nav button {
  text-align: left;
  border-color: transparent;
}
nav button.active {
  background: #cfe8ff;
  font-weight: 700;
}
.content {
  flex: 1;
  min-width: 0;
  padding: 35px;
  max-width: 1500px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header h1 {
  margin: 6px 0;
}
.note {
  font-size: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 25px 0;
}
.stat {
  background: #fff;
  border: 1px solid #e8dff0;
  border-radius: 16px;
  padding: 18px;
}
.stat strong {
  display: block;
  font-size: 28px;
  color: #3c4067;
}
.stat small {
  font-size: 12px;
}
.toolbar {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}
.toolbar input {
  max-width: 330px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid #e8dff0;
  border-radius: 16px;
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  text-align: left;
  background: #f4effb;
  white-space: nowrap;
  padding: 15px;
}
td {
  padding: 14px;
  border-top: 1px solid #f0ebf4;
  max-width: 320px;
  overflow-wrap: anywhere;
}
td button {
  min-height: 34px;
  font-size: 12px;
  padding: 5px 10px;
  margin: 3px;
}
td span {
  display: block;
  max-height: 80px;
  overflow: hidden;
  white-space: pre-wrap;
}
.empty {
  padding: 60px;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  color: #6c6d83;
}
#status {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 14px 24px;
  border-radius: 14px;
  background: #3c4067;
  color: white;
  z-index: 10;
  max-width: 90%;
  box-shadow: 0 4px 20px #0002;
}
dialog {
  border: 1px solid #e8dff0;
  border-radius: 20px;
  padding: 26px;
  width: min(700px, 95vw);
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #3c406755;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
}
#more {
  margin: 20px auto;
  display: block;
}
#more[hidden] {
  display: none;
}
:focus-visible {
  outline: 3px solid #b94376;
  outline-offset: 2px;
}
@media (max-width: 800px) {
  main {
    display: block;
  }
  aside {
    position: static;
    width: 100%;
    height: auto;
    padding: 20px;
  }
  nav {
    display: flex;
    overflow: auto;
    margin: 15px 0;
    gap: 6px;
  }
  nav button {
    white-space: nowrap;
  }
  .content {
    padding: 20px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  header {
    gap: 10px;
  }
  h1 {
    font-size: 23px;
  }
}
