:root {
  font-family: Arial, "Microsoft YaHei", sans-serif;
  background: #f4f6f9;
  color: #172033;
}

body {
  margin: 0;
}

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-panel {
  width: min(380px, 100%);
  padding: 28px;
  background: #ffffff;
  border: 1px solid #e3e8f0;
  border-radius: 8px;
}

h1 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: 0;
}

p {
  margin: 0;
  color: #687386;
}

input {
  width: 100%;
  box-sizing: border-box;
  height: 42px;
  margin-top: 22px;
  border: 1px solid #d8e0eb;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 15px;
}

button {
  height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  background: #1162d6;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.login-panel button {
  width: 100%;
  height: 42px;
  margin-top: 12px;
}

.error {
  min-height: 20px;
  margin-top: 10px;
  color: #d9480f;
  font-size: 14px;
}

.test-account {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 6px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 14px;
  line-height: 1.7;
}

.full {
  width: 100%;
  margin-top: 10px;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.sidebar {
  background: #111827;
  color: #ffffff;
  padding: 18px 12px;
}

.brand {
  padding: 8px 10px 20px;
  font-size: 20px;
  font-weight: 700;
}

.nav {
  width: 100%;
  margin-bottom: 6px;
  text-align: left;
  background: transparent;
  color: #cbd5e1;
}

.nav.active, .nav:hover {
  background: #1f2937;
  color: #ffffff;
}

.content {
  padding: 22px;
}

.content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ghost {
  background: #ffffff;
  color: #172033;
  border: 1px solid #d8e0eb;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.card, .panel {
  background: #ffffff;
  border: 1px solid #e3e8f0;
  border-radius: 8px;
}

.card {
  padding: 16px;
}

.card strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.panel {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

th, td {
  padding: 11px 12px;
  border-bottom: 1px solid #edf1f6;
  text-align: left;
  font-size: 14px;
}

th {
  background: #f8fafc;
  color: #475569;
}

video {
  width: 220px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.hint {
  padding: 18px;
  color: #687386;
}

@media (max-width: 760px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
  }

  .brand {
    display: none;
  }

  .nav {
    width: auto;
    white-space: nowrap;
  }
}
