:root,
html[data-theme="light"],
html[data-theme="dark"] {
  --primary: #168f83;
  --secondary: #16344b;
  --accent: #dff7f3;
  --primary-fg: #fff;
  --body-fg: #1c3346;
  --body-bg: #f5f7fa;
  --body-quiet-color: #718397;
  --body-medium-color: #516679;
  --body-loud-color: #10283c;
  --header-color: #18334a;
  --header-branding-color: #18334a;
  --header-bg: #fff;
  --header-link-color: #526a7d;
  --breadcrumbs-fg: #6d8192;
  --breadcrumbs-link-fg: #168f83;
  --breadcrumbs-bg: #f8fafb;
  --link-fg: #147f76;
  --link-hover-color: #0f6f67;
  --link-selected-fg: #0d625c;
  --hairline-color: #e5ebf0;
  --border-color: #dfe6ec;
  --error-fg: #b5454f;
  --message-success-bg: #e7f6ef;
  --message-warning-bg: #fff4dc;
  --message-error-bg: #fdebed;
  --darkened-bg: #f5f8fa;
  --selected-bg: #e7f5f2;
  --selected-row: #eff8f6;
  --button-bg: #168f83;
  --button-hover-bg: #0f776e;
  --default-button-bg: #173f59;
  --default-button-hover-bg: #102f45;
  color-scheme: light;
}

* { box-sizing: border-box; }
body { font-family: "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; background: #f5f7fa; }
#container { min-width: 0; }

#header {
  min-height: 76px;
  padding: 0 30px;
  border-bottom: 1px solid #e4ebf0;
  background: rgba(255, 255, 255, .96);
  color: #18334a;
  box-shadow: 0 3px 14px rgba(20, 48, 70, .04);
}
#branding { display: flex; align-items: center; }
.teacher-brand { display: inline-flex; align-items: center; gap: 13px; color: #18334a !important; text-decoration: none; }
.teacher-brand-mark { width: 43px; height: 43px; position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; padding: 9px; border-radius: 13px; background: linear-gradient(145deg, #1a9d90, #147f76); box-shadow: 0 7px 18px rgba(22, 143, 131, .2); }
.teacher-brand-mark i { display: block; border-radius: 3px; background: #fff; }
.teacher-brand-mark i:last-child { grid-column: span 2; }
.teacher-brand > span:last-child { display: grid; gap: 2px; }
.teacher-brand strong { color: #17344b; font-size: 18px; line-height: 1.2; }
.teacher-brand small { color: #8192a1; font-size: 11px; font-weight: 500; }

#user-tools { display: flex; align-items: center; gap: 12px; color: #6b7f90; font-size: 12px; letter-spacing: 0; }
.teacher-user-avatar { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; color: #147d74; background: #dff5f1; font-size: 17px; font-weight: 800; }
.teacher-user-copy { display: grid; gap: 1px; margin-right: 6px; text-align: left; }
.teacher-user-copy strong { color: #203a50; font-size: 13px; }
.teacher-user-copy small { color: #8797a5; font-size: 10px; }
#user-tools a, #logout-form button { margin: 0; padding: 6px 9px; border: 0; border-radius: 6px; color: #5e7385; background: transparent; font-size: 12px; font-weight: 700; text-decoration: none; }
#user-tools a:hover, #logout-form button:hover { color: #147d74; background: #edf7f5; }
#logout-form { display: inline-flex; }
.teacher-mobile-nav { display: none; }

div.breadcrumbs { padding: 11px 30px; border-bottom: 1px solid #e7edf1; background: #fafcfd; color: #728596; }
.main { min-height: calc(100vh - 76px); align-items: stretch; }
.content { padding: 28px 32px 40px; }
#content { padding: 0; }
#content > h1 { margin: 0 0 22px; color: #19364d; font-size: 25px; font-weight: 750; }

#nav-sidebar {
  width: 254px;
  flex: 0 0 254px;
  padding: 20px 15px 30px;
  border-right: 1px solid #dfe7ed;
  background: #eef3f6;
}
.toggle-nav-sidebar { border-right-color: #dce5eb; background-color: #fff; }
#nav-filter { width: 100%; margin: 0 0 17px; padding: 10px 12px 10px 34px; border: 1px solid #d5e0e6; border-radius: 9px; color: #29445a; background: #fff; box-shadow: none; }
#nav-sidebar .module { margin: 0 0 16px; border: 0; background: transparent; }
#nav-sidebar .module table { border-collapse: separate; border-spacing: 0 4px; }
#nav-sidebar .module caption { padding: 8px 12px; background: transparent; }
#nav-sidebar .module caption a { color: #8495a3; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
#nav-sidebar .module th { padding: 0; }
#nav-sidebar .module th a { display: block; padding: 10px 12px; border-radius: 8px; color: #425c70; font-size: 13px; font-weight: 650; text-decoration: none; }
#nav-sidebar .module th a:hover { color: #147d74; background: #e2efed; }
#nav-sidebar .current-model th a { color: #fff !important; background: #168f83 !important; box-shadow: 0 5px 12px rgba(22, 143, 131, .18); }
#nav-sidebar td { display: none; }

/* 学生批量导入：正式的分步业务工作台，保留原导入字段与权限逻辑。 */
.student-import-page .content {
  padding: 24px 32px 48px;
}

.student-import-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  color: #213b50;
}

.student-import-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 190px;
  padding: 32px 36px;
  overflow: hidden;
  border: 1px solid #d8e4ea;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .98), rgba(248, 252, 252, .94)),
    #fff;
  box-shadow: 0 12px 35px rgba(23, 52, 75, .06);
}

.student-import-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #168f83, #173f59);
}

.student-import-hero::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -70px;
  width: 240px;
  height: 240px;
  border: 34px solid rgba(22, 143, 131, .045);
  border-radius: 50%;
  pointer-events: none;
}

.student-import-hero-copy,
.student-import-template-link {
  position: relative;
  z-index: 1;
}

.student-import-eyebrow {
  display: inline-block;
  color: #168f83;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.student-import-hero h1 {
  margin: 8px 0 10px;
  color: #17364e;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .02em;
}

.student-import-hero p {
  max-width: 650px;
  margin: 0;
  color: #62798a;
  font-size: 14px;
  line-height: 1.8;
}

.student-import-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.student-import-badges span {
  padding: 6px 10px;
  border: 1px solid #dce9e7;
  border-radius: 999px;
  color: #58717f;
  background: #f3f8f7;
  font-size: 11px;
  font-weight: 700;
}

.student-import-template-link {
  flex: 0 0 228px;
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  padding: 18px;
  border: 1px solid #cfe2e1;
  border-radius: 13px;
  color: #1d4756 !important;
  background: rgba(238, 248, 246, .9);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.student-import-template-link:hover {
  border-color: #91c6bf;
  background: #e8f6f3;
  transform: translateY(-1px);
}

.student-import-template-link > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: #fff;
  background: #168f83;
  font-size: 17px;
  font-weight: 800;
}

.student-import-template-link strong {
  color: #21465a;
  font-size: 13px;
}

.student-import-template-link small {
  margin-top: 3px;
  color: #7b8f9b;
  font-size: 10px;
}

.student-import-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dee7ec;
  border-radius: 13px;
  background: #fff;
  list-style: none;
}

.student-import-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 16px 24px;
}

.student-import-steps li + li {
  border-left: 1px solid #e5ebef;
}

.student-import-steps b {
  color: #168f83;
  font-size: 17px;
  font-weight: 800;
}

.student-import-steps span {
  display: grid;
  gap: 3px;
}

.student-import-steps strong {
  color: #28465a;
  font-size: 12px;
}

.student-import-steps small {
  color: #80919d;
  font-size: 10px;
  line-height: 1.5;
}

.student-import-alert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 13px 16px;
  border: 1px solid #edd49a;
  border-radius: 10px;
  color: #765723;
  background: #fff9eb;
  font-size: 12px;
}

.student-import-alert a {
  color: #76520e;
  font-weight: 800;
}

.student-import-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr);
  gap: 16px;
  align-items: stretch;
}

.student-import-panel {
  border: 1px solid #dfe7ec;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(25, 54, 76, .045);
}

.student-import-form,
.student-import-rules {
  padding: 25px 27px;
}

.student-import-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 23px;
}

.student-import-panel-index {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #cde3df;
  border-radius: 8px;
  color: #168f83;
  background: #edf8f6;
  font-size: 12px;
  font-weight: 800;
}

.student-import-panel-head h2,
.student-import-example h2 {
  margin: 0;
  color: #1b3a50;
  font-size: 17px;
  font-weight: 800;
}

.student-import-panel-head p,
.student-import-example-head p {
  margin: 5px 0 0;
  color: #81919c;
  font-size: 11px;
  line-height: 1.6;
}

.student-import-field {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 8px 16px;
  padding: 18px 0;
  border-top: 1px solid #e8edf0;
}

.student-import-field > label {
  display: grid;
  align-content: start;
  gap: 4px;
  color: #2d4a5e;
  font-size: 12px;
  font-weight: 800;
}

.student-import-field > label small {
  color: #8b9aa5;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
}

.student-import-control input[type="file"],
.student-import-control select {
  width: 100%;
  min-height: 42px;
  margin: 0;
  border: 1px solid #d5e0e6;
  border-radius: 9px;
  color: #2c495e;
  background: #fbfcfd;
  font-size: 12px;
  box-shadow: none;
}

.student-import-control select {
  padding: 0 38px 0 12px;
}

.student-import-control input[type="file"] {
  padding: 5px;
}

.student-import-control input[type="file"]::file-selector-button {
  height: 30px;
  margin-right: 10px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  color: #245166;
  background: #e9f2f4;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.student-import-control input:focus,
.student-import-control select:focus {
  border-color: #5bb2a9;
  outline: 3px solid rgba(22, 143, 131, .1);
}

.student-import-help,
.student-import-field-errors {
  grid-column: 2;
  margin: 0;
  font-size: 10px;
  line-height: 1.55;
}

.student-import-help {
  color: #738895;
}

.student-import-field-errors,
.student-import-form-errors,
.student-import-field-errors ul,
.student-import-form-errors ul {
  margin: 0;
  padding: 0;
  color: #b5454f;
  list-style: none;
}

.student-import-field.has-error .student-import-control input,
.student-import-field.has-error .student-import-control select {
  border-color: #d88c93;
  background: #fffafb;
}

.student-import-inline-note {
  margin-top: 4px;
  padding: 12px 14px;
  border-left: 3px solid #168f83;
  border-radius: 0 8px 8px 0;
  color: #637b89;
  background: #f4f9f8;
  font-size: 11px;
  line-height: 1.7;
}

.student-import-inline-note a {
  margin-left: 5px;
  font-weight: 800;
}

.student-import-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #e8edf0;
}

.student-import-primary,
.student-import-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  margin: 0;
  padding: 0 18px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
}

.student-import-primary {
  border: 1px solid #173f59;
  color: #fff;
  background: #173f59;
  box-shadow: 0 5px 12px rgba(23, 63, 89, .16);
}

.student-import-primary:hover {
  border-color: #102f45;
  background: #102f45;
}

.student-import-primary:disabled {
  border-color: #aebbc4;
  background: #aebbc4;
  box-shadow: none;
  cursor: not-allowed;
}

.student-import-secondary {
  border: 1px solid #d4e0e5;
  color: #4d6879 !important;
  background: #fff;
}

.student-import-secondary:hover {
  border-color: #9fb7c3;
  background: #f7fafb;
}

.student-import-actions > span {
  flex-basis: 100%;
  color: #8a99a4;
  font-size: 10px;
}

.student-import-progress[hidden] {
  display: none;
}

.student-import-progress {
  margin-top: 18px;
  padding: 16px 17px;
  border: 1px solid #cfe1e1;
  border-radius: 10px;
  background: linear-gradient(135deg, #f5fbfa 0%, #f8fbfd 100%);
}

.student-import-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.student-import-progress-head > div {
  display: grid;
  gap: 4px;
}

.student-import-progress-head strong {
  color: #143d57;
  font-size: 12px;
}

.student-import-progress-head span {
  color: #69808e;
  font-size: 10px;
  line-height: 1.55;
}

.student-import-progress-head > b {
  flex: 0 0 auto;
  color: #168f83;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.student-import-progress-track {
  position: relative;
  height: 8px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce8eb;
}

.student-import-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #168f83, #20a99b);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .24) inset;
  transition: width .2s ease;
}

.student-import-progress.is-processing .student-import-progress-track > span {
  animation: student-import-processing 1.25s ease-in-out infinite;
}

.student-import-progress.is-success {
  border-color: #a9d7c5;
  background: #f2faf6;
}

.student-import-progress.is-error {
  border-color: #e9bbb7;
  background: #fff7f6;
}

.student-import-progress.is-error .student-import-progress-head > b,
.student-import-progress.is-error .student-import-progress-head strong {
  color: #a83d36;
}

.student-import-progress.is-error .student-import-progress-track > span {
  background: #c7544b;
}

.student-import-progress-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.student-import-progress-stages li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #8a9aa4;
  font-size: 10px;
  font-weight: 700;
}

.student-import-progress-stages i {
  display: inline-grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #cfdbdf;
  border-radius: 50%;
  background: #fff;
  font-size: 9px;
  font-style: normal;
}

.student-import-progress-stages li.is-active {
  color: #176f69;
}

.student-import-progress-stages li.is-active i,
.student-import-progress-stages li.is-complete i {
  border-color: #168f83;
  color: #fff;
  background: #168f83;
}

.student-import-form.is-importing .student-import-field :is(input, select),
.student-import-form.is-importing .student-import-secondary {
  pointer-events: none;
  opacity: .62;
}

@keyframes student-import-processing {
  0% { transform: translateX(-115%); }
  50% { transform: translateX(70%); }
  100% { transform: translateX(245%); }
}

.student-import-rules dl {
  margin: 0;
  border-top: 1px solid #e8edf0;
}

.student-import-rules dl > div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid #edf1f3;
}

.student-import-rules dt {
  color: #6d8391;
  font-size: 10px;
  font-weight: 800;
}

.student-import-rules dd {
  margin: 0;
  color: #2b475b;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.6;
}

.student-import-security-note {
  margin-top: 18px;
  padding: 14px 15px;
  border: 1px solid #e2e8ec;
  border-radius: 9px;
  color: #667c8a;
  background: #f8fafb;
}

.student-import-security-note b {
  color: #304e61;
  font-size: 11px;
}

.student-import-security-note p {
  margin: 5px 0 0;
  font-size: 10px;
  line-height: 1.65;
}

.student-import-example {
  margin-top: 16px;
  padding: 25px 27px 27px;
}

.student-import-example-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.student-import-example h2 {
  margin-top: 5px;
}

.student-import-table-wrap {
  overflow-x: auto;
  border: 1px solid #dfe7ec;
  border-radius: 10px;
}

.student-import-example-table {
  width: 100%;
  min-width: 620px;
  margin: 0;
  border-collapse: collapse;
}

.student-import-example-table th,
.student-import-example-table td {
  padding: 13px 15px;
  border: 0;
  border-right: 1px solid #e6ecef;
  text-align: left;
}

.student-import-example-table th:last-child,
.student-import-example-table td:last-child {
  border-right: 0;
}

.student-import-example-table th {
  color: #536b7b;
  background: #f3f7f8;
  font-size: 11px;
}

.student-import-example-table td {
  color: #2f4b5e;
  border-top: 1px solid #e6ecef;
  background: #fff;
  font-size: 12px;
}

.student-import-example-table th span {
  display: inline-block;
  margin-right: 7px;
  padding: 2px 5px;
  border-radius: 4px;
  color: #a64a53;
  background: #fcebed;
  font-size: 9px;
}

.student-import-example-table th span.optional {
  color: #5c7180;
  background: #e8eef1;
}

@media (max-width: 980px) {
  .student-import-page .content { padding: 20px 22px 40px; }
  .student-import-layout { grid-template-columns: 1fr; }
  .student-import-rules dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-import-rules dl > div:nth-child(odd) { padding-right: 18px; border-right: 1px solid #edf1f3; }
  .student-import-rules dl > div:nth-child(even) { padding-left: 18px; }
}

@media (max-width: 700px) {
  .student-import-page .content { padding: 14px 12px 30px; }
  .student-import-hero { align-items: stretch; padding: 25px 22px; }
  .student-import-hero,
  .student-import-example-head { flex-direction: column; }
  .student-import-template-link { width: 100%; flex-basis: auto; }
  .student-import-steps { grid-template-columns: 1fr; }
  .student-import-steps li { min-height: 66px; padding: 13px 18px; }
  .student-import-steps li + li { border-top: 1px solid #e5ebef; border-left: 0; }
  .student-import-alert { grid-template-columns: 1fr; }
  .student-import-form,
  .student-import-rules,
  .student-import-example { padding: 21px 18px; }
  .student-import-field { grid-template-columns: 1fr; }
  .student-import-help,
  .student-import-field-errors { grid-column: 1; }
  .student-import-progress-stages { grid-template-columns: 1fr; }
  .student-import-progress-head { gap: 10px; }
  .student-import-rules dl { grid-template-columns: 1fr; }
  .student-import-rules dl > div:nth-child(odd),
  .student-import-rules dl > div:nth-child(even) { padding: 14px 0; border-right: 0; }
  .student-import-example-head { align-items: flex-start; }
}

/* 学生档案：区分首次空状态与搜索无结果，避免空列表占据整页。 */
.student-archive-page #content > h1 {
  margin-bottom: 20px;
  font-size: 27px;
  font-weight: 800;
}

.student-archive-page #changelist {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.student-archive-page .object-tools a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #cfdde3;
  border-radius: 8px;
  color: #456576 !important;
  background: #fff;
  font-size: 11px;
  font-weight: 750;
}

.student-archive-page .object-tools a.addlink {
  border-color: #168f83;
  color: #fff !important;
  background: #168f83;
}

.student-archive-page .object-tools a.student-archive-primary-action {
  border-color: #173f59;
  background: #173f59;
  box-shadow: 0 5px 13px rgba(23, 63, 89, .16);
}

.student-archive-page .object-tools a:hover {
  border-color: #9fb8c3;
  color: #147d74 !important;
  background: #f6faf9;
}

.student-archive-page .object-tools a.addlink:hover {
  border-color: #0f776e;
  color: #fff !important;
  background: #0f776e;
}

.student-archive-page .object-tools a.student-archive-primary-action:hover {
  border-color: #102f45;
  background: #102f45;
}

.student-archive-empty {
  position: relative;
  width: min(920px, 100%);
  min-height: 410px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 10px auto 0;
  padding: 48px 36px;
  overflow: hidden;
  border: 1px solid #dbe5ea;
  border-radius: 18px;
  text-align: center;
  background:
    radial-gradient(circle at 92% 9%, rgba(22, 143, 131, .055) 0 92px, transparent 93px),
    linear-gradient(145deg, #fff 0%, #fbfdfd 100%);
  box-shadow: 0 12px 34px rgba(27, 55, 75, .06);
}

.student-archive-empty::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #168f83, #173f59);
}

.student-archive-empty-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  border: 1px solid #c8e2de;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, #1b9b8e, #137a72);
  box-shadow: 0 9px 20px rgba(22, 143, 131, .18);
  font-size: 22px;
  font-weight: 800;
}

.student-archive-empty-eyebrow {
  color: #168f83;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.student-archive-page #changelist .student-archive-empty h2 {
  margin: 8px 0 9px;
  padding: 0;
  color: #18384f;
  background: transparent;
  font-size: 23px;
  font-weight: 800;
}

.student-archive-empty > p {
  max-width: 570px;
  margin: 0;
  color: #667d8c;
  font-size: 12px;
  line-height: 1.75;
}

.student-archive-empty-summary {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
}

.student-archive-empty-summary span {
  min-width: 118px;
  padding: 9px 13px;
  border: 1px solid #dce8e8;
  border-radius: 9px;
  color: #6c828e;
  background: #f5f9f8;
  font-size: 10px;
}

.student-archive-empty-summary strong {
  margin-right: 4px;
  color: #168f83;
  font-size: 16px;
}

.student-archive-empty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
}

.student-archive-empty-actions a {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.student-archive-empty-primary {
  border: 1px solid #173f59;
  color: #fff !important;
  background: #173f59;
  box-shadow: 0 5px 13px rgba(23, 63, 89, .16);
}

.student-archive-empty-primary:hover {
  border-color: #102f45;
  background: #102f45;
}

.student-archive-empty-secondary {
  border: 1px solid #cbdbe1;
  color: #436475 !important;
  background: #fff;
}

.student-archive-empty-secondary:hover {
  border-color: #9fb8c3;
  background: #f7fafb;
}

.student-archive-empty > small {
  margin-top: 16px;
  color: #8b9aa4;
  font-size: 10px;
}

.student-archive-no-results {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 36px;
  border: 1px solid #dfe7ec;
  border-radius: 14px;
  text-align: center;
  background: #fff;
  box-shadow: 0 8px 23px rgba(25, 54, 76, .045);
}

.student-archive-no-results > div {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #168f83;
  background: #e9f6f3;
  font-size: 22px;
  font-weight: 800;
}

.student-archive-page #changelist .student-archive-no-results h2 {
  margin: 13px 0 6px;
  padding: 0;
  color: #28475a;
  background: transparent;
  font-size: 17px;
}

.student-archive-no-results p {
  margin: 0;
  color: #7d909d;
  font-size: 11px;
}

.student-archive-no-results a {
  margin-top: 16px;
  padding: 8px 13px;
  border: 1px solid #cfe0df;
  border-radius: 7px;
  color: #147d74;
  background: #f2f8f7;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 700px) {
  .student-archive-page #content > h1 { font-size: 23px; }
  .student-archive-empty { min-height: 380px; padding: 38px 20px; }
  .student-archive-empty h2 { font-size: 20px; }
  .student-archive-empty-summary { width: 100%; }
  .student-archive-empty-summary span { flex: 1 1 0; min-width: 0; }
  .student-archive-empty-actions { width: 100%; }
  .student-archive-empty-actions a { flex: 1 1 100%; }
}

/* 班级管理：把操作入口和班级规模放到首屏，减少默认列表的空白感。 */
.classgroup-page .content { padding-top: 22px; }
.classgroup-page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 18px; }
.classgroup-page-title h1 { margin: 3px 0 5px; color: #19364d; font-size: 26px; font-weight: 800; }
.classgroup-page-title p { margin: 0; color: #7a8e9d; font-size: 12px; }
.classgroup-page-summary { display: flex; align-items: center; gap: 8px; color: #78909e; font-size: 12px; white-space: nowrap; }
.classgroup-page-summary span { padding: 9px 13px; border: 1px solid #dce9ea; border-radius: 10px; background: #f7fbfb; }
.classgroup-page-summary strong { margin-right: 3px; color: #168f83; font-size: 17px; }
.classgroup-page #changelist { overflow: hidden; border: 1px solid #e0e8ed; border-radius: 15px; background: #fff; box-shadow: 0 8px 25px rgba(31, 57, 77, .045); }
.classgroup-page #changelist .changelist-form { overflow-x: auto; }
.classgroup-page-note { margin: 0 0 12px; padding: 10px 13px; border: 1px solid #dcebe8; border-radius: 9px; color: #64808a; background: #f3faf8; font-size: 11px; line-height: 1.5; }
.classgroup-page-note strong { margin-right: 8px; color: #168f83; font-weight: 800; }
.classgroup-page #changelist .results { margin: 0; }
.classgroup-page #changelist .results table { min-width: 920px; border: 0; }
.classgroup-page #changelist .results thead th { height: 47px; padding: 0 12px; color: #6d8492; background: #f1f6f7; font-size: 11px; }
.classgroup-page #changelist .results tbody td { height: 61px; padding: 10px 12px; color: #3f5a6c; border-bottom: 1px solid #edf1f3; font-size: 12px; vertical-align: middle; }
.classgroup-page #changelist .results tbody tr:last-child td { border-bottom: 0; }
.classgroup-page #changelist .results tbody tr:hover td { background: #f8fcfb; }
.classgroup-page #changelist .results tbody td:first-child a { color: #194b62; font-weight: 750; }
.classgroup-page .classgroup-qr-link { display: inline-flex; align-items: center; min-height: 31px; padding: 0 12px; border: 0; border-radius: 8px; color: #fff !important; background: #168f83; font-size: 11px; font-weight: 750; text-decoration: none; }
.classgroup-page .classgroup-qr-link:hover { background: #0f776e; }
.classgroup-page #changelist .paginator { padding: 13px 16px; border-top: 1px solid #edf1f3; color: #8395a1; background: #fbfdfd; }
.classgroup-page #changelist .actions { border-bottom: 1px solid #edf1f3; }
.classgroup-page #changelist .object-tools { margin-top: 0; }
.classgroup-page #changelist .object-tools a { min-height: 34px; display: inline-flex; align-items: center; border-radius: 8px; font-size: 11px; }

.platform-dashboard .teacher-welcome { background: radial-gradient(circle at 92% 8%, rgba(255,255,255,.92) 0 96px, transparent 97px), linear-gradient(110deg, #e8f2fb 0%, #eef5ff 100%); border-color: #d8e4ef; }
.platform-dashboard .teacher-welcome .teacher-eyebrow { color: #3175a8; }
.platform-dashboard .platform-stat-grid .teacher-stat-card { border-color: #dfe8ef; }
.platform-dashboard .platform-todo-strip { grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr)); }
.platform-dashboard .platform-todo-strip a { border-left-color: #dfe8ef; }
.platform-quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.platform-admin-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); gap: 16px; margin-top: 20px; }
.platform-teacher-panel, .platform-risk-panel { min-width: 0; }
.platform-teacher-list, .platform-risk-list { padding: 7px 18px 15px; }
.platform-teacher-list > a, .platform-risk-list > a { min-height: 57px; display: grid; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid #edf1f3; color: #29485d !important; text-decoration: none !important; }
.platform-teacher-list > a { grid-template-columns: minmax(180px, 1fr) auto auto; }
.platform-risk-list > a { grid-template-columns: 1fr auto; }
.platform-teacher-list > a:last-child, .platform-risk-list > a:last-child { border-bottom: 0; }
.platform-teacher-list > a:hover, .platform-risk-list > a:hover { background: #f8fcfb; }
.platform-teacher-list span, .platform-risk-list span { min-width: 0; display: grid; gap: 3px; }
.platform-teacher-list strong, .platform-risk-list strong { overflow: hidden; color: #24485e; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.platform-teacher-list small, .platform-risk-list small { overflow: hidden; color: #8799a5; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.platform-teacher-list b, .platform-teacher-list em { color: #168f83; font-size: 11px; font-style: normal; white-space: nowrap; }
.platform-risk-list b { min-width: 28px; color: #d4871e; font-size: 17px; text-align: right; }
.platform-risk-panel .teacher-panel header > span { color: #c2761c; }

@media (max-width: 900px) {
  .classgroup-page-title { align-items: flex-start; flex-direction: column; gap: 12px; }
  .classgroup-page-summary { width: 100%; }
  .classgroup-page-summary span { flex: 1; }
  .platform-dashboard .platform-todo-strip { grid-template-columns: 1fr; }
  .platform-quick-grid { grid-template-columns: 1fr; }
  .platform-admin-grid { grid-template-columns: 1fr; }
  .platform-teacher-list > a { grid-template-columns: 1fr auto; }
  .platform-teacher-list > a em { grid-column: 2; grid-row: 1; }
}

.teacher-dashboard .content { max-width: none; padding: 24px 36px 42px; }
.teacher-dashboard #content { width: 100%; }
.teacher-dashboard-main { width: 100%; max-width: 1480px; margin: 0 auto; }
.teacher-welcome { position: relative; min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 22px 30px; overflow: hidden; border: 1px solid #dce9e8; border-radius: 18px; background: linear-gradient(110deg, #e8f7f3 0%, #edf5ff 100%); }
.teacher-welcome::before, .teacher-welcome::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.5); }
.teacher-welcome::before { width: 170px; height: 170px; right: 70px; top: -90px; }
.teacher-welcome::after { width: 90px; height: 90px; right: 20px; bottom: -45px; }
.teacher-welcome > * { position: relative; z-index: 1; }
.teacher-eyebrow { display: inline-block; margin-bottom: 6px; color: #168f83; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.teacher-welcome h1 { margin: 0; color: #16344b; font-size: 28px; font-weight: 760; }
.teacher-welcome p { margin: 8px 0 0; color: #667d8e; font-size: 14px; }
.teacher-term-switcher { width: fit-content; display: flex; align-items: center; gap: 9px; margin: 14px 0 0; padding: 6px 7px 6px 11px; border: 1px solid rgba(94, 157, 153, .25); border-radius: 10px; background: rgba(255,255,255,.7); }
.teacher-term-switcher label { color: #547587; font-size: 11px; font-weight: 750; }
.teacher-term-switcher select { min-width: 220px; height: 32px; padding: 0 30px 0 10px; border: 0; color: #164e63; background-color: #fff; font-size: 12px; font-weight: 700; box-shadow: none; }
.teacher-primary-action { display: inline-flex; min-height: 42px; align-items: center; padding: 0 20px; border-radius: 10px; color: #fff !important; background: #168f83; font-weight: 700; text-decoration: none; box-shadow: 0 8px 18px rgba(22, 143, 131, .18); }
.teacher-primary-action:hover { background: #11776e; }
.teacher-welcome-actions { display: flex; align-items: center; gap: 10px; }
.teacher-welcome-actions form { margin: 0; }
.teacher-welcome-actions .teacher-primary-action { border: 0; cursor: pointer; font: inherit; }
.teacher-secondary-action { display: inline-flex; min-height: 42px; align-items: center; padding: 0 18px; border: 1px solid #bdd8d5; border-radius: 10px; color: #147b72 !important; background: rgba(255, 255, 255, .72); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.teacher-secondary-action:hover { border-color: #73bcb4; background: #fff; }

.teacher-onboarding { margin-top: 24px; padding: 34px; border: 1px solid #d9e8e6; border-radius: 18px; background: linear-gradient(135deg, #fff 0%, #f2faf8 100%); box-shadow: 0 10px 30px rgba(31, 57, 77, .06); }
.teacher-onboarding-step { display: inline-flex; padding: 6px 10px; border-radius: 999px; color: #147b72; background: #e3f4f1; font-size: 12px; font-weight: 800; }
.teacher-onboarding h2 { margin: 14px 0 7px; color: #193b51; font-size: 23px; }
.teacher-onboarding > p { max-width: 760px; margin: 0; color: #647d8e; font-size: 14px; line-height: 1.8; }
.teacher-onboarding ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 25px 0 0; padding: 0; list-style: none; }
.teacher-onboarding li { min-width: 0; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 14px; border: 1px solid #e1e9ed; border-radius: 12px; color: #7d8f9d; background: #fff; }
.teacher-onboarding li > i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #6f8594; background: #edf2f4; font-style: normal; font-weight: 800; }
.teacher-onboarding li > span { min-width: 0; display: grid; gap: 3px; }
.teacher-onboarding li strong { color: #365267; font-size: 13px; }
.teacher-onboarding li small { overflow: hidden; color: #8a9ba7; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.teacher-onboarding li.is-current { border-color: #8ac9c2; background: #f4fbf9; }
.teacher-onboarding li.is-current > i, .teacher-onboarding li.is-done > i { color: #fff; background: #168f83; }
.teacher-onboarding li.is-done { border-color: #cfe5e1; }
.teacher-onboarding-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.teacher-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 24px 0 12px; }
.teacher-section-heading.compact { margin-top: 26px; }
.teacher-section-heading h2, .teacher-panel h2 { margin: 0; color: #1a354b; font-size: 18px; font-weight: 760; }
.teacher-section-heading p, .teacher-panel header p { margin: 4px 0 0; color: #8293a1; font-size: 12px; }
.teacher-section-heading > span { color: #91a0ad; font-size: 12px; }

.teacher-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.teacher-stat-card { min-height: 88px; position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto 1fr; gap: 3px 13px; padding: 16px 18px; border: 1px solid #e3e9ee; border-radius: 14px; color: #223d52 !important; background: #fff; text-decoration: none !important; box-shadow: 0 7px 18px rgba(31, 57, 77, .055); transition: transform .18s ease, box-shadow .18s ease; }
.teacher-stat-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31, 57, 77, .1); }
.teacher-stat-card .stat-icon { width: 42px; height: 42px; grid-row: span 2; display: grid; place-items: center; border-radius: 12px; font-style: normal; font-size: 14px; font-weight: 800; }
.teacher-stat-card > span { align-self: end; color: #7c8e9d; font-size: 12px; font-weight: 650; }
.teacher-stat-card strong { align-self: start; color: #1c354b; font-size: 25px; line-height: 1.05; }
.teacher-stat-card small { align-self: center; justify-self: end; color: #8798a6; font-size: 11px; }
.tone-green .stat-icon { color: #147d74; background: #e5f6f2; }.tone-blue .stat-icon { color: #397fc5; background: #eaf3fd; }.tone-amber .stat-icon { color: #c47a28; background: #fff2df; }.tone-violet .stat-icon { color: #7056bd; background: #f0ebff; }

.teacher-todo-strip { display: grid; grid-template-columns: minmax(230px, 1.25fr) repeat(3, minmax(170px, .75fr)); gap: 10px; align-items: stretch; margin-top: 14px; padding: 10px; border: 1px solid #e1e8ed; border-radius: 14px; background: #f8fbfb; }
.teacher-todo-strip > div, .teacher-todo-strip > a { min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 10px 13px; border-radius: 10px; }
.teacher-todo-strip > div { display: grid; gap: 2px; }.teacher-todo-strip > div span { color: #168f83; font-size: 10px; font-weight: 800; letter-spacing: .08em; }.teacher-todo-strip > div strong { color: #2a475b; font-size: 12px; }
.teacher-todo-strip > a { color: #526b7c !important; background: #fff; font-size: 11px; font-weight: 700; text-decoration: none !important; }.teacher-todo-strip > a:hover { color: #137b72 !important; background: #edf8f6; }.teacher-todo-strip > a i { min-width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #168f83; font-style: normal; }

.teacher-quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.teacher-quick-grid > a { min-height: 78px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #e1e8ed; border-radius: 13px; color: #203a50 !important; background: #fff; text-decoration: none !important; }
.teacher-quick-grid > a:hover { border-color: #a9d8d2; background: #f8fcfb; }
.teacher-quick-grid i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: #168f83; background: #e6f5f2; font-style: normal; font-weight: 800; }
.teacher-quick-grid span { display: grid; gap: 4px; }.teacher-quick-grid strong { font-size: 13px; }.teacher-quick-grid small { color: #8595a2; font-size: 11px; }.teacher-quick-grid b { color: #9aabb7; font-size: 18px; }
.teacher-more-actions { margin-top: 12px; }.teacher-more-actions summary { width: fit-content; padding: 7px 11px; border-radius: 8px; color: #627a89; background: #edf3f4; font-size: 11px; font-weight: 750; cursor: pointer; list-style-position: inside; }.teacher-more-actions[open] summary { margin-bottom: 12px; color: #147d74; background: #e4f3f0; }

.teacher-dashboard-grid { display: grid; grid-template-columns: minmax(470px, .95fr) minmax(620px, 1.25fr); gap: 20px; margin-top: 24px; }
.teacher-dashboard-grid > *, .teacher-insight-grid > * { min-width: 0; }
.teacher-panel { border: 1px solid #e1e8ed; border-radius: 16px; background: #fff; box-shadow: 0 8px 22px rgba(31, 57, 77, .05); }
.teacher-panel > header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; border-bottom: 1px solid #edf1f4; }
.teacher-panel > header > span, .teacher-panel > header > a { color: #168f83; font-size: 12px; font-weight: 700; }
.teacher-bars { height: 238px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; align-items: end; padding: 24px 22px 12px; }
.teacher-bar-item { height: 100%; display: grid; grid-template-rows: 1fr auto auto; gap: 5px; text-align: center; }
.teacher-bar-track { min-height: 140px; position: relative; overflow: hidden; border-radius: 7px 7px 3px 3px; background: #eff4f6; }
.teacher-bar-track i { position: absolute; bottom: 0; width: calc(50% - 2px); min-height: 5px; border-radius: 7px 7px 3px 3px; }
.teacher-bar-track i.effective { left: 0; background: linear-gradient(#55c3b6, #168f83); }
.teacher-bar-track i.records { right: 0; background: linear-gradient(#8cb7df, #4b83bb); }
.teacher-bar-item strong { color: #536c7e; font-size: 12px; }.teacher-bar-item small { color: #7f909d; font-size: 10px; }
.teacher-chart-note { display: flex; justify-content: space-between; gap: 15px; padding: 10px 22px 17px; color: #718694; font-size: 11px; }.teacher-chart-note span { display: flex; align-items: center; gap: 6px; }.teacher-chart-note span i { width: 9px; height: 9px; border-radius: 2px; background: #43b7ab; }
.teacher-chart-note span i.effective { background: #168f83; }.teacher-chart-note span i.records { background: #4b83bb; }
.teacher-chart-comparison { flex-wrap: wrap; justify-content: flex-start; }.teacher-chart-comparison small { margin-left: auto; }

.teacher-activity-table { padding: 0 20px 12px; }
.teacher-table-head, .teacher-table-row { display: grid; grid-template-columns: 1.05fr 1.35fr 1fr .7fr; gap: 14px; align-items: center; }
.teacher-table-head { margin-top: 12px; padding: 10px 12px; border-radius: 8px; color: #8293a1; background: #f5f8fa; font-size: 10px; font-weight: 800; }
.teacher-table-row { min-height: 53px; padding: 8px 12px; border-bottom: 1px solid #edf1f4; color: #294359 !important; text-decoration: none !important; }
.teacher-table-row:hover { background: #f8fcfb; }
.teacher-table-row > span { min-width: 0; display: grid; gap: 2px; }.teacher-table-row b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.teacher-table-row small { overflow: hidden; color: #8a9aa7; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.teacher-table-row em { width: fit-content; max-width: 100%; overflow: hidden; padding: 4px 7px; border-radius: 10px; color: #15786f; background: #e8f5f2; font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.teacher-empty { padding: 48px 20px; color: #8a9aa7; text-align: center; }

.teacher-insight-grid { display: grid; grid-template-columns: 1.15fr 1fr .85fr; gap: 20px; margin-top: 20px; }
.teacher-class-table { padding: 12px 18px 18px; }.teacher-class-head, .teacher-class-row { display: grid; grid-template-columns: 1.4fr .8fr 1.2fr .55fr .55fr; gap: 10px; align-items: center; }.teacher-class-head { padding: 9px 10px; border-radius: 8px; color: #8495a1; background: #f4f7f9; font-size: 10px; font-weight: 800; }.teacher-class-row { min-height: 48px; padding: 8px 10px; border-bottom: 1px solid #edf1f4; color: #496477 !important; font-size: 11px; text-decoration: none !important; }.teacher-class-row:hover { background: #f4faf9; }.teacher-class-row > strong { overflow: hidden; color: #27465c; text-overflow: ellipsis; white-space: nowrap; }.teacher-class-row > span:nth-child(3) { display: grid; grid-template-columns: 1fr auto; gap: 5px; align-items: center; }.teacher-class-row > span:nth-child(3)::before { content: ""; height: 6px; grid-area: 1 / 1; border-radius: 999px; background: #e8eff2; }.teacher-class-row > span:nth-child(3) i { width: var(--active-percent); height: 6px; z-index: 1; grid-area: 1 / 1; border-radius: 999px; background: #35ab9e; }.teacher-class-row > span:nth-child(3) b { font-size: 9px; }
.teacher-alert-list, .teacher-hotspot-list { padding: 8px 18px 18px; }.teacher-alert-list > a { min-height: 58px; display: grid; grid-template-columns: minmax(120px, 1fr) auto; gap: 3px 10px; align-items: center; padding: 9px 6px; border-bottom: 1px solid #edf1f4; color: #29475c !important; text-decoration: none !important; }.teacher-alert-list > a > span { display: grid; gap: 2px; }.teacher-alert-list strong { font-size: 11px; }.teacher-alert-list small { color: #8798a4; font-size: 9px; }.teacher-alert-list > a > small { grid-column: 1; }.teacher-alert-list em { grid-row: 1 / 3; grid-column: 2; padding: 5px 7px; border-radius: 8px; font-size: 9px; font-style: normal; }.teacher-alert-list .tone-danger { color: #b04646; background: #fdecec; }.teacher-alert-list .tone-warning { color: #a26820; background: #fff2de; }.teacher-alert-list .tone-muted { color: #637985; background: #eef3f5; }
.teacher-hotspot-list > div:not(.teacher-empty) { min-height: 54px; display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; align-items: center; padding: 8px 6px; border-bottom: 1px solid #edf1f4; }.teacher-hotspot-list span { display: grid; gap: 2px; }.teacher-hotspot-list strong { color: #2a485d; font-size: 11px; }.teacher-hotspot-list small, .teacher-hotspot-list em { color: #8697a3; font-size: 9px; font-style: normal; }.teacher-hotspot-list b { color: #b15443; font-size: 12px; }.teacher-hotspot-list em { grid-column: 1; }

.module, .inline-group, #changelist-filter { border-radius: 12px; overflow: hidden; border-color: #e0e7ec; box-shadow: 0 5px 18px rgba(31, 57, 77, .045); }
.module h2, .module caption, .inline-group h2 { background: #173f59; }
#changelist .actions { padding: 12px; border-radius: 10px; background: #f4f8fa; }
#changelist table { border-radius: 10px; overflow: hidden; }
#changelist table thead th { padding: 11px 10px; color: #536b7d; background: #edf3f6; }
#changelist table tbody tr:hover { background: #f0f8f6; }
.object-tools a:link, .object-tools a:visited { border-radius: 8px; background: #168f83; }
.object-tools a:hover { background: #11776e; }
input[type=text], input[type=password], input[type=email], input[type=url], input[type=number], textarea, select { border-radius: 7px; border-color: #cfdae2; }
input:focus, textarea:focus, select:focus { border-color: #45aca2; box-shadow: 0 0 0 3px rgba(22, 143, 131, .1); }
.submit-row { border-radius: 10px; border-color: #dfe7ec; background: #f4f8fa; }
/* Django's fixed content height is incompatible with the theme's border-box sizing. */
body .submit-row a.closelink,
body .submit-row a.deletelink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 35px;
  line-height: 1.5;
}
.button, input[type=submit], input[type=button], .submit-row input, a.button { border-radius: 7px; }

/* Account add/change pages */
body.app-auth.model-user.change-form .content,
body.app-auth.model-user.add-form .content {
  padding-bottom: 92px;
}
body.app-auth.model-user.change-form #content-main {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
}
body.app-auth.model-user.add-form #content-main {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
}
body.app-auth.model-user.change-form #user_form > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
body.app-auth.model-user.add-form #user_form > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
body.app-auth.model-user.change-form #user_form > div > .account-role-card,
body.app-auth.model-user.change-form #user_form > div > .account-validity-card,
body.app-auth.model-user.change-form #user_form > div > .account-dates-card,
body.app-auth.model-user.change-form #user_form > div > .submit-row,
body.app-auth.model-user.change-form #user_form > div > .errornote,
body.app-auth.model-user.change-form #user_form > div > .errorlist,
body.app-auth.model-user.change-form #user_form > div > .account-form-intro,
body.app-auth.model-user.change-form #user_form > div > .account-error-summary {
  grid-column: 1 / -1;
}
body.app-auth.model-user.add-form #user_form > div > .account-role-card,
body.app-auth.model-user.add-form #user_form > div > .account-validity-card,
body.app-auth.model-user.add-form #user_form > div > .submit-row,
body.app-auth.model-user.add-form #user_form > div > .errornote,
body.app-auth.model-user.add-form #user_form > div > .errorlist,
body.app-auth.model-user.add-form #user_form > div > .account-form-intro,
body.app-auth.model-user.add-form #user_form > div > .account-error-summary {
  grid-column: 1 / -1;
}
body.app-auth.model-user.change-form #content > h1,
body.app-auth.model-user.add-form #content > h1 {
  margin-bottom: 6px;
  font-size: 26px;
}
body.app-auth.model-user.change-form #content > h2,
body.app-auth.model-user.add-form #content > h2 {
  margin: 0 0 22px;
  color: #7a8e9e;
  font-size: 13px;
  font-weight: 600;
}

fieldset.module.account-edit-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid #dfe8ed;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 54, 74, .055);
}
fieldset.module.account-edit-card > h2 {
  margin: 0;
  padding: 14px 20px;
  border-bottom: 1px solid #e7eef2;
  color: #1c3b52;
  background: linear-gradient(90deg, #f1f8f7, #f7fafc);
  font-size: 15px;
  font-weight: 760;
}
fieldset.module.account-role-card > h2 {
  color: #21496a;
  background: linear-gradient(90deg, #edf5fc, #f7fafc);
}
fieldset.module.account-validity-card > h2 {
  color: #126f67;
  background: linear-gradient(90deg, #e8f7f3, #f7fbfa);
}
fieldset.module.account-edit-card > .description {
  margin: 0;
  padding: 11px 20px;
  border-bottom: 1px solid #edf2f5;
  color: #667f91;
  background: #fbfcfd;
  font-size: 12px;
}
fieldset.module.account-edit-card .form-row {
  padding: 14px 20px;
  border-bottom-color: #edf2f5;
}
fieldset.module.account-edit-card .form-row:last-child { border-bottom: 0; }
fieldset.module.account-edit-card .form-row > div {
  display: block;
}
fieldset.module.account-edit-card .form-row > div > .flex-container:not(.checkbox-row) {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
fieldset.module.account-edit-card .form-row > div > .checkbox-row {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 166px;
}
fieldset.module.account-edit-card .form-row label {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: #405a6d;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}
fieldset.module.account-edit-card .form-row .help,
fieldset.module.account-edit-card .form-row ul.errorlist {
  margin: 6px 0 0 166px !important;
  padding: 0 !important;
  color: #8193a1;
  font-size: 11px;
  line-height: 1.55;
}
fieldset.module.account-edit-card .form-row > ul.errorlist {
  margin: 0 0 8px 166px !important;
}
fieldset.module.account-edit-card .checkbox-row + .help {
  margin-left: 166px !important;
}
fieldset.module.account-edit-card input[type="text"],
fieldset.module.account-edit-card input[type="password"],
fieldset.module.account-edit-card input[type="email"],
fieldset.module.account-edit-card input[type="date"],
fieldset.module.account-edit-card select:not([multiple]) {
  width: 100%;
  max-width: 520px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #d2dfe6;
  border-radius: 8px;
  background-color: #fff;
}
fieldset.module.account-edit-card input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #168f83;
}
fieldset.module.account-edit-card .checkbox-row label {
  min-width: 0;
  width: auto;
  padding: 0;
}
fieldset.module.account-core-card .field-password1 .help ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 18px;
  margin: 0;
  padding: 0;
}
fieldset.module.account-core-card .field-password1 .help li {
  position: relative;
  padding-left: 12px;
}
fieldset.module.account-core-card .field-password1 .help li::before {
  content: "·";
  position: absolute;
  left: 2px;
  color: #168f83;
  font-weight: 800;
}
fieldset.module.account-edit-card .readonly {
  min-height: 34px;
  display: flex;
  align-items: center;
  color: #405a6d;
}

fieldset.module.account-validity-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
fieldset.module.account-validity-card > h2,
fieldset.module.account-validity-card > .description,
fieldset.module.account-validity-card > .field-teacher_long_term {
  grid-column: 1 / -1;
}
fieldset.module.account-validity-card > .field-teacher_valid_from {
  border-right: 1px solid #edf2f5;
}
fieldset.module.account-validity-card input[type="date"] { max-width: 220px; }
fieldset.module.account-dates-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
fieldset.module.account-dates-card > h2 { grid-column: 1 / -1; }
fieldset.module.account-dates-card > .form-row:first-of-type { border-right: 1px solid #edf2f5; }

body.app-auth.model-user .selector {
  width: min(100%, 1060px);
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) 46px minmax(260px, 1fr);
  align-items: stretch;
  gap: 12px;
}
body.app-auth.model-user .selector .selector-available,
body.app-auth.model-user .selector .selector-chosen {
  width: auto !important;
  float: none !important;
  /* Django's selector buttons have a fixed 16px height by default.  That
     height is too small once the Chinese labels and our padding are applied,
     so the last line was being clipped by the card. */
  overflow: visible;
  border: 1px solid #d8e3e9;
  border-radius: 11px;
  background: #fbfcfd;
}
body.app-auth.model-user .selector h2 {
  padding: 10px 12px;
  border: 0;
  color: #405a6d;
  background: #eef4f6;
  font-size: 12px;
}
body.app-auth.model-user .selector .selector-available-title,
body.app-auth.model-user .selector .selector-chosen-title {
  padding: 10px 12px;
  border: 0;
  color: #405a6d;
  background: #eef4f6;
  font-size: 12px;
  line-height: 1.4;
}
body.app-auth.model-user .selector .selector-available-title label,
body.app-auth.model-user .selector .selector-chosen-title label {
  color: inherit;
  font-size: 12px;
  font-weight: 750;
}
body.app-auth.model-user .selector .selector-available-title .helptext,
body.app-auth.model-user .selector .selector-chosen-title .helptext {
  margin: 3px 0 0;
  color: #8295a1;
  font-size: 10px;
  font-weight: 500;
}
body.app-auth.model-user .selector .selector-chosen h2 {
  color: #126f67;
  background: #e6f5f2;
}
body.app-auth.model-user .selector .selector-chosen-title {
  color: #126f67;
  background: #e6f5f2;
}
body.app-auth.model-user .selector .selector-filter {
  min-height: 42px;
  padding: 7px 9px;
  border-top: 1px solid #e4ebef;
  border-bottom: 1px solid #e4ebef;
  background: #fff;
}
body.app-auth.model-user .selector select {
  width: 100% !important;
  height: 150px !important;
  min-height: 150px;
  border: 0;
  border-radius: 0;
  background: #fff;
}
body.app-auth.model-user .selector ul.selector-chooser {
  width: 46px;
  position: static !important;
  display: flex;
  flex-direction: column;
  align-self: center;
  gap: 8px;
  margin: 0 !important;
  padding: 0;
  transform: none !important;
}
body.app-auth.model-user .selector-chooser li { margin: 0; }
body.app-auth.model-user .selector-chooser a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: #dce9e7;
}
body.app-auth.model-user .selector .selector-chosen .selector-filter { display: block; }
body.app-auth.model-user .selector .selector-chooseall,
body.app-auth.model-user .selector .selector-clearall {
  display: block;
  width: 100%;
  height: auto;
  min-height: 34px;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 12px 9px;
  border-top: 1px solid #e4ebef;
  background-image: none;
  text-align: left;
  line-height: 1.4;
  white-space: nowrap;
  color: #168f83;
  font-size: 11px;
  font-weight: 700;
  opacity: 1;
}

body.app-auth.model-user .submit-row {
  position: sticky;
  z-index: 20;
  bottom: 12px;
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px solid #d7e3e8;
  border-radius: 13px;
  background: rgba(248, 251, 252, .96);
  box-shadow: 0 12px 32px rgba(29, 55, 75, .14);
  backdrop-filter: blur(10px);
}
.account-form-intro {
  margin: 0;
  padding: 13px 16px;
  border: 1px solid #d8e8e5;
  border-radius: 12px;
  color: #466779;
  background: linear-gradient(90deg, #eef8f6, #f7fafc);
  font-size: 12px;
  line-height: 1.6;
}
body.app-auth.model-user.change-form #user_form .errornote {
  display: none;
}
.account-error-summary {
  margin: 0;
  padding: 15px 17px;
  border: 1px solid #e45b61;
  border-radius: 12px;
  color: #8f262d;
  background: #fff5f5;
  box-shadow: 0 6px 18px rgba(170, 43, 52, .06);
}
.account-error-summary h2 {
  margin: 0 0 9px;
  color: #a72e36;
  font-size: 15px;
  font-weight: 800;
}
.account-error-summary ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.account-error-summary li {
  margin: 0;
}
.account-error-summary a,
.account-error-summary a:visited {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: #8f262d;
  background: rgba(255, 255, 255, .72);
  text-decoration: none;
}
.account-error-summary a:hover,
.account-error-summary a:focus {
  color: #751c23;
  background: #fff;
  outline: 2px solid rgba(196, 50, 60, .18);
}
.account-error-summary p {
  margin: 9px 0 0;
  color: #a2575c;
  font-size: 11px;
}
body.app-auth.model-user .submit-row input,
body.app-auth.model-user .submit-row a.deletelink {
  min-height: 38px;
  padding: 9px 17px;
  border-radius: 8px;
  font-weight: 750;
}

/* 第七轮：课堂教学闭环 */
.teaching-workspace { max-width: 1540px; margin: 0 auto; display: grid; gap: 18px; color: #18384f; }
.teaching-page-hero { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 30px; border: 1px solid #d9e7e8; border-radius: 20px; background: radial-gradient(circle at 92% 8%, rgba(255,255,255,.92) 0 90px, transparent 91px), linear-gradient(135deg, #e9f8f5, #eef6fd); box-shadow: 0 12px 30px rgba(30, 79, 94, .07); }
.teaching-page-hero > div > span { color: #11877c; font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.teaching-page-hero h1 { margin: 5px 0 7px; color: #153a53; font-size: 27px; line-height: 1.2; }
.teaching-page-hero p { margin: 0; color: #698093; font-size: 13px; }
.teaching-page-hero nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.teaching-page-hero nav a { min-height: 38px; display: inline-flex; align-items: center; padding: 0 15px; border: 1px solid #bdd6d6; border-radius: 10px; color: #14786f !important; background: rgba(255,255,255,.78); font-size: 12px; font-weight: 750; text-decoration: none !important; }
.teaching-page-hero nav a.primary, .teaching-page-hero nav a:hover { border-color: #168f83; color: #fff !important; background: #168f83; }
.teaching-class-picker { display: flex; align-items: center; gap: 13px; padding: 15px 18px; border: 1px solid #e0e9ed; border-radius: 14px; background: #fff; box-shadow: 0 5px 18px rgba(31,57,77,.04); }
.teaching-class-picker label { color: #36576d; font-size: 12px; font-weight: 800; }
.teaching-class-picker select { min-width: 310px; min-height: 40px; padding: 0 38px 0 12px; border: 1px solid #cbdde2; border-radius: 9px; color: #29495e; background-color: #fbfdfd; }
.teaching-class-picker > span { margin-left: auto; color: #8195a2; font-size: 11px; }
.teaching-summary-grid, .live-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.teaching-summary-grid article, .live-summary article { min-height: 106px; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 6px 15px; padding: 19px 21px; border: 1px solid #e0e8ec; border-radius: 15px; background: #fff; box-shadow: 0 7px 20px rgba(31,57,77,.045); }
.teaching-summary-grid span, .live-summary span { color: #647d8e; font-size: 12px; font-weight: 700; }.teaching-summary-grid strong, .live-summary strong { grid-row: 1 / 3; grid-column: 2; align-self: center; color: #163b54; font-size: 28px; }.teaching-summary-grid small { color: #91a0aa; font-size: 10px; }
.progress-matrix-card, .teaching-list-card, .report-cover-card { overflow: hidden; border: 1px solid #dfe8ec; border-radius: 16px; background: #fff; box-shadow: 0 8px 25px rgba(31,57,77,.05); }
.matrix-legend { min-height: 58px; display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid #e8eef1; }.matrix-legend > strong { margin-right: auto; font-size: 15px; }.matrix-legend > span { display: inline-flex; align-items: center; gap: 5px; color: #617989; font-size: 10px; }.matrix-legend i { width: 10px; height: 10px; border-radius: 3px; }.matrix-legend small { color: #8b9ca7; }
.status-complete { background: #31a98f; }.status-active { background: #f0a43c; }.status-idle { background: #e5ebef; }
.progress-matrix-scroll { overflow-x: auto; }.progress-matrix { width: 100%; min-width: 1240px; border-collapse: collapse; }.progress-matrix th, .progress-matrix td { height: 55px; padding: 7px 8px; border-bottom: 1px solid #edf1f3; color: #597283; font-size: 10px; text-align: center; }.progress-matrix thead th { position: sticky; top: 0; z-index: 2; height: 42px; color: #657d8c; background: #f3f7f8; font-weight: 800; }.progress-matrix .student-column { position: sticky; left: 0; z-index: 3; width: 150px; min-width: 150px; text-align: left; background: #fff; box-shadow: 6px 0 12px rgba(30,60,75,.04); }.progress-matrix thead .student-column { background: #f3f7f8; }.progress-matrix .student-column a { display: block; color: #204b64 !important; font-size: 12px; text-decoration: none !important; }.progress-matrix .student-column small, .progress-matrix td > small { display: block; margin-top: 3px; color: #91a0aa; font-size: 9px; }.matrix-cell { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 8px; color: #6b7f8c; background: #e8eef1; font-size: 9px; font-weight: 800; }.matrix-cell.status-complete { color: #fff; background: #31a98f; }.matrix-cell.status-active { color: #82530e; background: #ffe5ba; }.matrix-cell.status-idle { color: #9aa8b0; background: #edf1f3; }
.teaching-empty-card { padding: 65px 20px; border: 1px dashed #cbdde2; border-radius: 16px; color: #8095a2; background: #fff; text-align: center; }
.teaching-setup-empty > span { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #147b72; background: #e5f5f2; font-size: 11px; font-weight: 800; }
.teaching-setup-empty h2 { margin: 13px 0 7px; color: #21465d; font-size: 21px; }
.teaching-setup-empty p { max-width: 560px; margin: 0 auto; font-size: 13px; line-height: 1.7; }
.teaching-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.teaching-empty-actions a { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid #bcd8d4; border-radius: 9px; color: #14786f !important; background: #fff; font-size: 12px; font-weight: 750; text-decoration: none !important; }
.teaching-empty-actions a.primary { border-color: #168f83; color: #fff !important; background: #168f83; }
.student-project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }.student-project-card { padding: 16px; border: 1px solid #e0e8ec; border-left: 4px solid #dfe7eb; border-radius: 13px; background: #fff; }.student-project-card.status-complete { border-left-color: #31a98f; }.student-project-card.status-active { border-left-color: #f0a43c; }.student-project-card > header { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; }.student-project-card header i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #17877b; background: #e8f6f3; font-style: normal; font-weight: 850; }.student-project-card header div { display: grid; gap: 3px; }.student-project-card header strong { font-size: 12px; }.student-project-card header small { color: #899aa5; font-size: 9px; }.student-project-card header b { color: #1b715e; font-size: 12px; }.student-project-card > div { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 10px; border-top: 1px solid #edf1f3; color: #8193a0; font-size: 9px; }
.business-report-card > header { align-items: flex-start; }.business-report-kicker { display: block; margin-bottom: 4px; color: #168f83; font-size: 9px; font-weight: 850; letter-spacing: .08em; }.business-report-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px 20px 20px; }.business-report-metrics article { display: grid; gap: 5px; padding: 14px; border: 1px solid #dfe9ed; border-radius: 11px; background: #fbfdfd; }.business-report-metrics span, .business-report-metrics small { color: #788f9e; font-size: 10px; }.business-report-metrics strong { color: #173f58; font-size: 25px; }.business-report-metrics small { font-size: 9px; }.business-stage-grid { padding: 16px 20px 20px; }.business-report-card .business-stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.business-report-card .business-stage-grid article { border-color: #dfe9ed; border-radius: 11px; background: #fbfdfd; }.business-report-card .business-stage-grid article strong { color: #23485f; }.business-report-card .business-stage-grid article small { color: #8094a1; }.business-report-card .business-stage-grid article b { color: #168f83; }.business-report-card .business-stage-progress i { background: #e6eef0; }.business-report-card .business-stage-progress u { background: linear-gradient(90deg, #74cdb7, #168f83); }.business-report-card .business-stage-progress span, .business-report-card .business-stage-grid article > footer { color: #78909d; }.business-report-signals .business-signal-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 18px 20px 22px; }.business-signal-columns > div { padding: 14px 16px; border: 1px solid #e3ecef; border-radius: 11px; background: #fbfdfd; }.business-signal-columns h3 { margin: 0; color: #244961; font-size: 13px; }.business-signal-columns ul, .business-signal-columns ol { display: grid; gap: 7px; margin: 10px 0 0; padding-left: 20px; color: #607988; font-size: 11px; line-height: 1.65; }
.teaching-list-card > header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 20px; border-bottom: 1px solid #e9eef1; }.teaching-list-card > header h2 { margin: 0; font-size: 16px; }.teaching-list-card > header p { margin: 4px 0 0; color: #8597a2; font-size: 10px; }.teaching-list-card > header > span, .teaching-list-card > header > a { color: #168f83; font-size: 10px; font-weight: 750; }
.student-activity-list { padding: 8px 18px 18px; }.student-activity-list > div { min-height: 49px; display: grid; grid-template-columns: 72px minmax(180px, 1fr) minmax(130px, .7fr) minmax(180px, 1.2fr); align-items: center; gap: 12px; padding: 7px 4px; border-bottom: 1px solid #edf1f3; }.student-activity-list time { color: #8699a6; font-size: 10px; }.student-activity-list strong { font-size: 11px; }.student-activity-list span { color: #34705f; font-size: 10px; }.student-activity-list small { color: #8194a0; font-size: 9px; }
.live-summary article { min-height: 88px; }.live-summary article:nth-child(2) strong { color: #138d79; }.live-summary article:nth-child(3) strong { color: #d4871e; }.live-board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }.live-active-list, .live-activity-list { max-height: 520px; overflow-y: auto; padding: 8px 17px 17px; }.live-active-list > a { min-height: 58px; display: grid; grid-template-columns: 10px minmax(120px,.8fr) minmax(160px,1.2fr) auto; align-items: center; gap: 11px; padding: 8px 5px; border-bottom: 1px solid #edf1f3; color: #29485d !important; text-decoration: none !important; }.live-active-list > a > i { width: 8px; height: 8px; border-radius: 50%; background: #2db69b; box-shadow: 0 0 0 5px #e4f7f2; }.live-active-list span, .live-activity-list span { min-width: 0; display: grid; gap: 3px; }.live-active-list strong, .live-activity-list strong, .live-active-list b, .live-activity-list b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.live-active-list small, .live-activity-list small { overflow: hidden; color: #8699a5; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.live-active-list em { color: #168f83; font-size: 10px; font-style: normal; }.live-activity-list > div { min-height: 55px; display: grid; grid-template-columns: 60px minmax(110px,.7fr) minmax(180px,1.3fr); align-items: center; gap: 11px; padding: 7px 4px; border-bottom: 1px solid #edf1f3; }.live-activity-list time { color: #8195a2; font-size: 10px; }
.report-cover-card { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }.report-cover-card > div { display: grid; gap: 7px; padding: 20px; border-right: 1px solid #e8eef1; }.report-cover-card > div:last-child { border-right: 0; }.report-cover-card span { color: #8799a5; font-size: 10px; }.report-cover-card strong { color: #234a62; font-size: 13px; }.project-summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; padding: 16px; }.project-summary-grid > article { padding: 13px; border: 1px solid #e4ebee; border-radius: 11px; background: #fbfdfd; }.project-summary-grid article header { display: flex; align-items: center; gap: 8px; }.project-summary-grid header i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; color: #147d73; background: #e6f5f2; font-style: normal; font-size: 10px; font-weight: 800; }.project-summary-grid header strong { font-size: 11px; }.project-summary-grid article > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 13px; }.project-summary-grid article > div span { display: grid; gap: 2px; color: #24485e; font-size: 15px; font-weight: 800; }.project-summary-grid article > div small { color: #8b9ba6; font-size: 8px; font-weight: 500; }.project-summary-grid span.complete { color: #168f83; }.project-summary-grid span.active { color: #d4871e; }.report-student-table { padding: 12px 18px 18px; }.report-student-head, .report-student-table > a { display: grid; grid-template-columns: 1.2fr .55fr .55fr .6fr 1fr; gap: 12px; align-items: center; }.report-student-head { padding: 9px 10px; border-radius: 8px; color: #8395a1; background: #f3f7f8; font-size: 9px; font-weight: 800; }.report-student-table > a { min-height: 50px; padding: 7px 10px; border-bottom: 1px solid #edf1f3; color: #526e80 !important; font-size: 10px; text-decoration: none !important; }.report-student-table > a:hover { background: #f7fbfa; }.report-student-table > a > span:first-child { display: grid; gap: 2px; }.report-student-table strong { color: #254a61; font-size: 11px; }.report-student-table small { color: #8a9ca7; font-size: 9px; }

@media (max-width: 1500px) {
  .teacher-stat-grid, .teacher-quick-grid { grid-template-columns: repeat(2, 1fr); }
  .teacher-todo-strip { grid-template-columns: repeat(2, 1fr); }
  .teacher-dashboard-grid { grid-template-columns: 1fr; }
  .teacher-insight-grid { grid-template-columns: 1fr 1fr; }.teacher-hotspot-panel { grid-column: 1 / -1; }
  body.app-auth.model-user.change-form #user_form > div,
  body.app-auth.model-user.add-form #user_form > div { grid-template-columns: 1fr; }
  body.app-auth.model-user.change-form #user_form > div > *,
  body.app-auth.model-user.add-form #user_form > div > * { grid-column: 1 !important; }
  .student-project-grid, .project-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  #header { min-height: 68px; position: relative; padding: 10px 16px; }
  .teacher-brand small, .teacher-user-copy, #user-tools a { display: none; }
  #nav-global { margin: 0 0 0 2px; }
  .teacher-mobile-nav { display: block; position: relative; }
  .teacher-mobile-nav summary { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid #d5e3e7; border-radius: 9px; color: #36566a; background: #f6fafb; font-size: 12px; font-weight: 750; cursor: pointer; list-style: none; }
  .teacher-mobile-nav summary::-webkit-details-marker { display: none; }
  .teacher-mobile-nav summary i { color: #168f83; font-style: normal; }
  .teacher-mobile-nav[open] summary { border-color: #8fc9c2; color: #14786f; background: #edf8f6; }
  .teacher-mobile-nav-panel { width: min(330px, calc(100vw - 28px)); max-height: min(70vh, 560px); position: absolute; z-index: 1000; top: 44px; left: 50%; transform: translateX(-50%); overflow-y: auto; padding: 10px; border: 1px solid #dce7eb; border-radius: 13px; background: #fff; box-shadow: 0 16px 45px rgba(24, 52, 73, .2); }
  .teacher-mobile-nav-panel section { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 9px 0; border-top: 1px solid #edf1f3; }
  .teacher-mobile-nav-panel section strong { grid-column: 1 / -1; padding: 4px 8px; color: #7a8f9c; font-size: 11px; }
  .teacher-mobile-nav-panel a { min-height: 38px; display: flex; align-items: center; padding: 7px 9px; border-radius: 7px; color: #34566b !important; font-size: 12px; text-decoration: none !important; }
  .teacher-mobile-nav-panel a:hover { color: #14786f !important; background: #edf8f6; }
  .teacher-mobile-nav-home { color: #fff !important; background: #168f83; font-weight: 800; }
  .content, .teacher-dashboard .content { padding: 18px 14px 30px; }
  .teacher-welcome { align-items: flex-start; flex-direction: column; gap: 18px; padding: 23px; }
  .teacher-welcome-actions { width: 100%; display: flex; flex-wrap: wrap; }
  .teacher-welcome-actions form { flex: 1 1 180px; }
  .teacher-welcome-actions .teacher-primary-action, .teacher-welcome-actions .teacher-secondary-action { min-height: 42px; justify-content: center; }
  .teacher-welcome-actions form .teacher-primary-action { width: 100%; }
  .teacher-welcome h1 { font-size: 23px; }
  .teacher-stat-grid, .teacher-quick-grid { grid-template-columns: 1fr; }
  .teacher-todo-strip { grid-template-columns: 1fr; }
  .teacher-onboarding { padding: 24px 20px; }.teacher-onboarding ol { grid-template-columns: 1fr 1fr; }.teacher-onboarding-actions > * { flex: 1 1 180px; justify-content: center; }
  .teacher-term-switcher { width: 100%; align-items: stretch; flex-direction: column; }.teacher-term-switcher select { width: 100%; min-width: 0; }
  .teacher-bars { gap: 5px; padding-inline: 12px; }
  .teacher-table-head { display: none; }
  .teacher-table-row { grid-template-columns: 1fr 1fr; }
  .teacher-insight-grid { grid-template-columns: 1fr; }.teacher-hotspot-panel { grid-column: auto; }.teacher-class-table { overflow-x: auto; }.teacher-class-head, .teacher-class-row { min-width: 570px; }
  .teacher-table-row > span:nth-child(3), .teacher-table-row > span:nth-child(4) { display: none; }

  fieldset.module.account-edit-card .form-row > div > .flex-container:not(.checkbox-row) { grid-template-columns: 1fr; }
  fieldset.module.account-edit-card .form-row > div > .checkbox-row { padding-left: 0; }
  fieldset.module.account-edit-card .form-row .help,
  fieldset.module.account-edit-card .form-row ul.errorlist,
  fieldset.module.account-edit-card .checkbox-row + .help { margin-left: 0 !important; }
  fieldset.module.account-core-card .field-password1 .help ul { grid-template-columns: 1fr; }
  fieldset.module.account-validity-card,
  fieldset.module.account-dates-card { grid-template-columns: 1fr; }
  fieldset.module.account-validity-card > .field-teacher_valid_from,
  fieldset.module.account-dates-card > .form-row:first-of-type { border-right: 0; }
  body.app-auth.model-user .selector { grid-template-columns: 1fr; }
  body.app-auth.model-user .selector ul.selector-chooser {
    width: auto;
    flex-direction: row;
    justify-content: center;
  }
  body.app-auth.model-user .submit-row { bottom: 6px; }
  .teaching-page-hero { align-items: flex-start; flex-direction: column; padding: 22px; }.teaching-page-hero h1 { font-size: 23px; }.teaching-page-hero nav { justify-content: flex-start; }
  .teaching-class-picker { align-items: stretch; flex-direction: column; }.teaching-class-picker select { width: 100%; min-width: 0; }.teaching-class-picker > span { margin-left: 0; }
  .teaching-summary-grid, .live-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }.business-report-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }.business-report-card .business-stage-grid, .business-signal-columns { grid-template-columns: 1fr; }.student-project-grid, .project-summary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.live-board-grid { grid-template-columns: 1fr; }.report-cover-card { grid-template-columns: repeat(2, minmax(0,1fr)); }.report-cover-card > div:nth-child(2) { border-right: 0; }
  .matrix-legend { align-items: flex-start; flex-wrap: wrap; }.matrix-legend > strong { width: 100%; }.student-activity-list > div { grid-template-columns: 70px 1fr; }.student-activity-list span, .student-activity-list small { grid-column: 2; }.report-student-table { overflow-x: auto; }.report-student-head, .report-student-table > a { min-width: 620px; }
}
@media (max-width: 560px) {
  .teacher-brand-mark { width: 38px; height: 38px; padding: 8px; }.teacher-brand { gap: 8px; }.teacher-brand strong { font-size: 16px; }.teacher-user-avatar { display: none; }.teacher-mobile-nav summary { justify-content: center; padding: 0 11px; }
  .teacher-onboarding ol { grid-template-columns: 1fr; }
  .teacher-chart-comparison small { width: 100%; margin-left: 0; }
  .teaching-summary-grid, .live-summary, .business-report-metrics, .student-project-grid, .project-summary-grid, .report-cover-card { grid-template-columns: 1fr; }.report-cover-card > div { border-right: 0; }.live-active-list > a { grid-template-columns: 10px 1fr auto; }.live-active-list > a > span:nth-of-type(2) { grid-column: 2 / -1; }.live-activity-list > div { grid-template-columns: 54px 1fr; }.live-activity-list > div > span:last-child { grid-column: 2; }
}

/* 第八轮：统一“有效步骤 / 已完成 / 已达标”统计口径。 */
.status-mastered { background: #239b83; }
.status-complete { background: #4b8fe5; }
.matrix-cell.status-mastered { color: #fff; background: #239b83; }
.matrix-cell.status-complete { color: #fff; background: #4b8fe5; }
.student-project-card.status-mastered { border-left-color: #239b83; }
.student-project-card.status-complete { border-left-color: #4b8fe5; }
.project-summary-grid article > div { grid-template-columns: repeat(4, 1fr); }
.project-summary-grid span.mastered { color: #168f83; }
.project-summary-grid span.complete { color: #367fd1; }
.report-student-head,
.report-student-table > a { grid-template-columns: 1.2fr .5fr .5fr .55fr .6fr 1fr; }

@media (max-width: 900px) {
  .report-student-head,
  .report-student-table > a { min-width: 720px; }
}

/* 后台全局按钮反馈：沿用项目三任务一的按下、聚焦与低动态反馈。 */
body :is(
  button,
  input[type="submit"],
  input[type="button"],
  input[type="reset"],
  a.button,
  .object-tools a,
  .submit-row a,
  .paginator a,
  .selector-chooser a,
  .related-widget-wrapper-link,
  a[class*="-action"],
  a[class*="-primary"],
  a[class*="-secondary"],
  .student-import-template-link,
  .student-password-actions a,
  .join-qr-actions a,
  .cleanup-confirm a,
  .assignment-changelist-add,
  .assignment-primary,
  .assignment-secondary,
  .assignment-row-actions a,
  .assignment-pagination a,
  .teaching-page-hero nav a,
  .teacher-more-actions summary,
  .assignment-class-dropdown summary
) {
  transform-origin: center;
  transition: transform .11s ease, box-shadow .11s ease, filter .11s ease, border-color .18s ease, background .18s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body :is(
  button,
  input[type="submit"],
  input[type="button"],
  input[type="reset"],
  a.button,
  .object-tools a,
  .submit-row a,
  .paginator a,
  .selector-chooser a,
  .related-widget-wrapper-link,
  a[class*="-action"],
  a[class*="-primary"],
  a[class*="-secondary"],
  .student-import-template-link,
  .student-password-actions a,
  .join-qr-actions a,
  .cleanup-confirm a,
  .assignment-changelist-add,
  .assignment-primary,
  .assignment-secondary,
  .assignment-row-actions a,
  .assignment-pagination a,
  .teaching-page-hero nav a,
  .teacher-more-actions summary,
  .assignment-class-dropdown summary
):not(:disabled):not([aria-disabled="true"]):not(.disabled):active {
  transform: translateY(2px) scale(.985);
  filter: brightness(.96) saturate(1.08);
  box-shadow: inset 0 3px 7px rgba(15, 42, 71, .20), 0 1px 2px rgba(15, 42, 71, .10) !important;
}

body :is(
  button,
  input[type="submit"],
  input[type="button"],
  input[type="reset"],
  a.button,
  .object-tools a,
  .submit-row a,
  .paginator a,
  .selector-chooser a,
  .related-widget-wrapper-link,
  a[class*="-action"],
  a[class*="-primary"],
  a[class*="-secondary"],
  .student-import-template-link,
  .student-password-actions a,
  .join-qr-actions a,
  .cleanup-confirm a,
  .assignment-changelist-add,
  .assignment-primary,
  .assignment-secondary,
  .assignment-row-actions a,
  .assignment-pagination a,
  .teaching-page-hero nav a,
  .teacher-more-actions summary,
  .assignment-class-dropdown summary
):focus-visible {
  outline: 3px solid rgba(22, 143, 131, .28);
  outline-offset: 2px;
}

body input[type="file"]::file-selector-button {
  transform-origin: center;
  transition: transform .11s ease, box-shadow .11s ease, filter .11s ease;
  -webkit-tap-highlight-color: transparent;
}

body input[type="file"]:not(:disabled)::file-selector-button:active {
  transform: translateY(2px) scale(.985);
  filter: brightness(.96) saturate(1.08);
  box-shadow: inset 0 3px 7px rgba(15, 42, 71, .20), 0 1px 2px rgba(15, 42, 71, .10);
}

body :is(button, input[type="submit"], input[type="button"], input[type="reset"]):disabled,
body :is(button, a, input)[aria-disabled="true"] {
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .student-import-progress-track > span {
    transition: none;
  }

  .student-import-progress.is-processing .student-import-progress-track > span {
    width: 100% !important;
    animation: none;
  }

  body :is(
    button,
    input[type="submit"],
    input[type="button"],
    input[type="reset"],
    a.button,
    .object-tools a,
    .submit-row a,
    .paginator a,
    .selector-chooser a,
    .related-widget-wrapper-link,
    a[class*="-action"],
    a[class*="-primary"],
    a[class*="-secondary"],
    .student-import-template-link,
    .student-password-actions a,
    .join-qr-actions a,
    .cleanup-confirm a,
    .assignment-changelist-add,
    .assignment-primary,
    .assignment-secondary,
    .assignment-row-actions a,
    .assignment-pagination a,
    .teaching-page-hero nav a,
    .teacher-more-actions summary,
    .assignment-class-dropdown summary
  ),
  body input[type="file"]::file-selector-button {
    transition: none;
    transform: none !important;
  }
}
