.staff-body {
  background: #eff6ff;
  color: #183358;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
.staff-shell {
  height: 100dvh;
  display: grid;
  grid-template-rows: 75px minmax(0, 1fr);
  background: #f4f8fd;
}
.staff-header {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 10px 30px;
  background: linear-gradient(105deg, #fff, #e7f3ff);
  border-bottom: 1px solid #d8e5f3;
}
.staff-header img {
  width: 150px;
  height: 53px;
}
.staff-header > span {
  font-size: 18px;
  font-weight: 600;
  border-left: 1px solid #bfcfe1;
  padding-left: 25px;
}
.staff-header > div {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}
.staff-header button {
  color: #6984a4;
  font-size: 12px;
  border: 1px solid #c7d7e7;
  border-radius: 8px;
  padding: 7px 13px;
}
.staff-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 0;
}
.staff-layout > aside {
  background: linear-gradient(#eaf4ff, #e0efff);
  border-right: 1px solid #d7e5f5;
  padding: 30px 17px;
  display: flex;
  flex-direction: column;
}
.staff-layout nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.staff-layout nav > button {
  font-size: 15px;
  text-align: left;
  padding: 15px 17px;
  border-radius: 10px;
  color: #486486;
}
.staff-layout nav > button.active {
  background: #cde6fd;
  color: #155995;
  font-weight: 700;
}
.staff-layout > aside > a {
  margin-top: auto;
  font-size: 12px;
  padding: 20px;
  color: #7794b1;
}
.staff-content {
  min-height: 0;
  overflow-y: auto;
  padding: 30px;
  overscroll-behavior: contain;
}
.staff-content-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.staff-content-heading h1 {
  font-size: 29px;
  font-weight: 800;
}
.staff-content-heading > span {
  font-size: 13px;
  color: #758faa;
}
.staff-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
  margin-bottom: 25px;
}
.staff-stats article {
  background: linear-gradient(125deg, #e8f5ff, #d9edff);
  border: 1px solid #d6e8fa;
  border-radius: 16px;
  padding: 25px 28px;
}
.staff-stats article > span {
  display: block;
  font-size: 14px;
  color: #537492;
}
.staff-stats b {
  display: block;
  font-size: 37px;
  margin-top: 12px;
}
.staff-stats small {
  font-size: 14px;
  margin-left: 12px;
  font-weight: 400;
}
.staff-card {
  background: #fff;
  border: 1px solid #d8e5f3;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px #22446703;
}
.staff-card h2 {
  font-size: 19px;
  margin: 0 0 18px;
}
.staff-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 20px;
}
.staff-card-heading h2 {
  margin: 0;
}
.staff-card-heading > span {
  font-size: 12px;
  color: #8b9caf;
}
.staff-card select,
.staff-settings-row select {
  border: 1px solid #bfcfe1;
  background: #fff;
  color: #335477;
  font-size: 13px;
  padding: 9px 13px;
  border-radius: 7px;
}
.staff-table-wrap {
  overflow-x: auto;
}
.staff-card table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  text-align: left;
  font-size: 13px;
}
.staff-card th {
  background: #e4f1ff;
  color: #355473;
  font-weight: 600;
}
.staff-card td,
.staff-card th {
  padding: 16px 17px;
  border-bottom: 1px solid #e5edf6;
}
.staff-role {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  background: #edf4fb;
  color: #4a7196;
}
.role-student {
  background: #e7f5e7;
  color: #448e5d;
}
.role-admin {
  background: #fff0dc;
  color: #bf7a2f;
}
.staff-small {
  font-size: 12px;
  color: #93a0ac;
  margin-top: 22px;
  line-height: 1.8;
}
.staff-export {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}
.staff-export > span {
  margin-right: auto;
  color: #728da6;
  font-size: 13px;
}
.staff-export > button {
  font-size: 12px;
  border: 1px solid #b6d0ea;
  background: #fbfdff;
  padding: 10px 14px;
  border-radius: 7px;
}
.staff-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.staff-bars {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.staff-bars > div {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
}
.staff-bars > div > span {
  width: 75px;
}
.staff-bars i {
  height: 17px;
  flex: 1;
  background: #f1f6fc;
  border-radius: 4px;
  overflow: hidden;
}
.staff-bars i > b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #7abdf9, #469df0);
  border-radius: 4px;
}
.staff-bars em {
  font-style: normal;
  width: 20px;
  text-align: right;
  color: #7593af;
}
.staff-recent {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 310px;
  overflow-y: auto;
}
.staff-recent li {
  display: flex;
  gap: 15px;
  font-size: 12px;
  line-height: 1.8;
  border-bottom: 1px solid #e5edf6;
  padding: 12px 0;
}
.staff-recent li > b {
  font-weight: 500;
  color: #4e8ec0;
  flex-shrink: 0;
}
.staff-recent li > span {
  overflow-wrap: anywhere;
}
.staff-empty {
  color: #96a7b8;
  font-size: 13px;
  line-height: 1.9;
  text-align: center;
  display: block !important;
}
.staff-settings-row {
  display: flex;
  align-items: center;
  gap: 25px;
  justify-content: space-between;
}
.staff-settings-row h2 {
  margin-bottom: 12px;
}
.staff-settings-row p {
  font-size: 12px;
  color: #8297ac;
  line-height: 1.9;
}
.staff-settings-row form {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.staff-settings-row label {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.staff-check input {
  width: 19px;
  height: 19px;
  accent-color: #4897e0;
}
.staff-primary {
  color: #fff;
  background: #ef943e;
  border: 1px solid #e28837;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
}
.staff-api-status {
  background: #f3f8fd;
  border-radius: 12px;
  padding: 22px;
}
.staff-api-status > span {
  font-size: 18px;
  font-weight: 700;
  color: #af8750;
}
.staff-api-status > span.configured {
  color: #53a178;
}
.staff-api-status p {
  font-size: 13px;
  color: #7991a7;
  margin-top: 12px;
  line-height: 1.8;
}
.staff-resource-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.staff-resource-grid article {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  border: 1px solid #e4edf7;
  border-radius: 14px;
  background: #f6faff;
  padding: 15px 10px;
}
.staff-resource-grid img {
  height: 140px;
  max-width: 100%;
}
.staff-resource-grid b {
  font-size: 14px;
}
.staff-resource-grid span {
  font-size: 11px;
  color: #7d95ac;
}
.staff-medals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.staff-medals article {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 12px;
  border: 1px solid #e2eaf3;
  border-radius: 10px;
  background: #fbfdff;
}
.staff-medals img {
  width: 75px;
  height: 75px;
  flex-shrink: 0;
}
.staff-medals b {
  font-size: 14px;
  display: block;
}
.staff-medals span {
  font-size: 11px;
  color: #8197ac;
  display: block;
  line-height: 1.8;
  margin-top: 6px;
}
.staff-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 25px;
  font-size: 13px;
}
.staff-pagination button {
  border: 1px solid #c3d6e9;
  border-radius: 7px;
  padding: 8px 15px;
  color: #5684ad;
}
.staff-login {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 10%, #deefff, transparent 80%), #f3f8fd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
}
.staff-login > img {
  width: 210px;
  height: 90px;
}
.staff-login h1 {
  font-size: 24px;
  margin: 15px 0;
}
.staff-login > p {
  font-size: 13px;
  color: #8a9db1;
  margin-bottom: 25px;
}
.staff-login form {
  width: 360px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  border: 1px solid #d6e3f1;
  border-radius: 18px;
  padding: 30px;
}
.staff-login label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  gap: 9px;
  color: #5f7b98;
}
.staff-login input {
  font-size: 15px;
  padding: 12px;
  border: 1px solid #bdcfe1;
  border-radius: 8px;
  color: #24476b;
  min-width: 0;
}
.staff-login .staff-primary {
  font-size: 16px;
  padding: 12px;
}
.staff-error {
  font-size: 12px;
  color: #bd6352;
  min-height: 17px;
}
.staff-login > a {
  font-size: 12px;
  color: #8aa1b5;
  margin-top: 25px;
}
.staff-body #toast {
  bottom: 35px;
}
@media (max-width: 1100px) {
  .staff-layout {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .staff-content {
    padding: 22px;
  }
  .staff-layout nav > button {
    font-size: 13px;
    padding: 13px;
  }
  .staff-settings-row {
    flex-direction: column;
    align-items: start;
  }
  .staff-settings-row form {
    width: 100%;
  }
  .staff-stats {
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .staff-stats article {
    padding: 22px;
  }
  .staff-chart-grid {
    gap: 17px;
  }
  .staff-card {
    padding: 20px;
  }
  .staff-resource-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .staff-medals {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 750px) {
  .staff-header {
    padding: 8px 15px;
    gap: 13px;
  }
  .staff-header img {
    width: 110px;
    height: 43px;
  }
  .staff-header > span {
    font-size: 12px;
    padding-left: 12px;
  }
  .staff-header > div {
    font-size: 11px;
    gap: 9px;
  }
  .staff-header button {
    font-size: 10px;
    padding: 5px 8px;
  }
  .staff-layout {
    grid-template-columns: 125px minmax(0, 1fr);
  }
  .staff-layout > aside {
    padding: 20px 9px;
  }
  .staff-layout nav {
    gap: 8px;
  }
  .staff-layout nav > button {
    font-size: 11px;
    padding: 11px 9px;
  }
  .staff-layout > aside > a {
    padding: 10px;
    font-size: 10px;
  }
  .staff-content {
    padding: 18px 13px;
  }
  .staff-content-heading {
    gap: 10px;
  }
  .staff-content-heading h1 {
    font-size: 22px;
  }
  .staff-content-heading > span {
    font-size: 10px;
  }
  .staff-chart-grid {
    grid-template-columns: 1fr;
  }
  .staff-stats {
    gap: 10px;
    grid-template-columns: 1fr;
  }
  .staff-stats article {
    padding: 18px;
  }
  .staff-stats b {
    font-size: 29px;
    margin-top: 7px;
  }
  .staff-export {
    flex-wrap: wrap;
    gap: 9px;
  }
  .staff-export > span {
    width: 100%;
    font-size: 10px;
  }
  .staff-export > button {
    font-size: 10px;
    padding: 7px 10px;
  }
  .staff-card {
    padding: 17px;
  }
  .staff-card h2 {
    font-size: 16px;
  }
  .staff-resource-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
  }
  .staff-resource-grid img {
    height: 105px;
  }
  .staff-resource-grid b {
    font-size: 12px;
  }
  .staff-resource-grid span {
    font-size: 9px;
  }
  .staff-medals {
    grid-template-columns: 1fr;
  }
  .staff-settings-row form {
    gap: 13px;
  }
  .staff-settings-row label {
    font-size: 11px;
  }
  .staff-card select {
    font-size: 11px;
    padding: 7px;
  }
  .staff-primary {
    font-size: 11px;
    padding: 8px 12px;
  }
  .staff-card-heading {
    align-items: start;
    gap: 10px;
  }
  .staff-card-heading > span {
    font-size: 10px;
  }
  .staff-card td,
  .staff-card th {
    font-size: 11px;
    padding: 13px;
  }
  .staff-header {
    min-width: 410px;
  }
}
