.teacher {
  --muted: #596d68;
  font-size: 14px;
}
.teacher main {
  max-width: 1600px;
  padding: 34px 45px 40px;
  transition: margin 0.15s;
}
.teacher.signed-in main {
  margin-left: 228px;
}
.workbar {
  margin-bottom: 30px;
  gap: 18px;
}
.workbar-kicker {
  font-size: 11px;
  color: var(--green);
  margin: 0 0 5px;
  font-weight: 650;
}
.teacher h1 {
  font-size: 29px;
  letter-spacing: -0.8px;
  color: var(--ink);
}
.teacher h2 {
  color: var(--ink);
}
.teacher .sub {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 0;
}
.student-home {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  color: var(--green);
  font-weight: 600;
}
.student-home .icon {
  width: 17px;
  height: 17px;
}
.teacher-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 228px;
  background: white;
  border-right: 1px solid var(--line);
  padding: 34px 22px 24px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.teacher-sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--ink);
}
.teacher-sidebar .brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 1px;
}
.teacher-sidebar .sidebar-label {
  margin: 48px 14px 15px;
  font-size: 11px;
  color: #70847a;
}
.teacher .management-nav {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  gap: 8px;
}
.teacher .management-nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  min-height: 48px;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border-radius: 10px;
  box-shadow: none;
}
.teacher .management-nav button[aria-pressed="true"] {
  background: var(--mint);
  color: var(--green);
}
.teacher .management-nav button .icon {
  width: 20px;
  height: 20px;
}
.teacher-sidebar-bottom {
  margin-top: auto;
}
.teacher-sidebar-bottom > p {
  font-size: 13px;
  color: #6c8878;
  line-height: 2;
  margin: 30px 15px;
}
.teacher #logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  text-align: left;
  font-size: 12px;
  color: var(--muted);
  padding: 12px 14px;
}
.teacher #logout .icon {
  width: 18px;
  height: 18px;
}
.teacher button {
  border-radius: 9px;
  color: var(--ink);
  font-size: 13px;
  min-height: 40px;
}
.teacher button:hover {
  background: #eff5f0;
}
.teacher .primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.teacher .primary:hover {
  background: var(--green-dark);
}
.teacher input,
.teacher select,
.teacher textarea {
  font-size: 13px;
  color: var(--ink);
  background: #fbfdfb;
  border-color: #ccd9d0;
  min-height: 42px;
}
.teacher input::placeholder,
.teacher textarea::placeholder {
  color: #788b80;
}
.teacher label {
  color: #536b5d;
  font-size: 12px;
}
.teacher .filters {
  padding: 20px 22px;
  gap: 15px;
  box-shadow: none;
  border-color: var(--line);
  border-radius: 15px;
}
.teacher .filters label {
  flex: 1;
  min-width: 130px;
}
.teacher .filters label:first-child {
  flex: 0.7;
}
.teacher .filters select,
.teacher .filters input {
  width: 100%;
}
.teacher .presets {
  align-self: flex-end;
}
.teacher .presets button {
  padding: 8px 11px;
  font-size: 11px;
}
.teacher .toolbar {
  margin-bottom: 16px;
}
.teacher .toolbar nav {
  background: #eaf0ec;
  border-color: var(--line);
}
.teacher .toolbar button {
  min-height: 36px;
  font-size: 12px;
}
.teacher .toolbar button[aria-pressed="true"] {
  color: var(--green);
}
.teacher .summary {
  gap: 16px;
  margin: 23px 0;
}
.teacher .metric {
  border-radius: 15px;
  border-color: var(--line);
  padding: 21px 23px;
}
.teacher .metric strong {
  font-size: 29px;
  color: var(--green-dark);
  margin: 8px 0;
}
.teacher .metric span {
  color: var(--muted);
  font-size: 12px;
}
.teacher .metric small {
  color: #61786b;
  font-size: 11px;
}
.teacher .metric:first-child {
  background: var(--mint);
  border-color: #d5e7da;
}
.teacher .metric:nth-child(3) {
  background: #fffdf5;
  border-color: #eee6cd;
}
.teacher .panel {
  border-color: var(--line);
  border-radius: 16px;
}
.teacher .panel-heading {
  padding: 23px;
  gap: 20px;
  align-items: flex-start;
}
.teacher .panel-heading h2 {
  font-size: 18px;
}
.teacher .panel-heading p {
  color: var(--muted);
  font-size: 11px;
  max-width: 320px;
}
.teacher .badge {
  background: #edf4ef;
  color: #526f5e;
  font-size: 11px;
}
.teacher .cell-sub {
  font-size: 11px;
  color: #657b6e;
}
.teacher th {
  background: #f3f7f4;
  color: #557161;
  font-size: 11px;
}
.teacher td {
  color: #3e5749;
  font-size: 12px;
}
.teacher th,
.teacher td {
  padding: 15px 18px;
  border-color: #e9eeea;
}
.teacher .name {
  color: var(--green);
  min-height: 30px;
  font-weight: 700;
  padding: 0;
}
.teacher tbody tr:hover {
  background: #f5faf6;
}
.table-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 500px;
}
.student-search {
  position: relative;
  display: block;
  max-width: 210px;
}
.student-search .icon {
  position: absolute;
  left: 10px;
  top: 12px;
  width: 16px;
  height: 16px;
  color: #6a8173;
}
.teacher .student-search input {
  padding: 8px 10px 8px 33px;
  width: 200px;
  font-size: 11px;
  min-height: 40px;
}
.table-tools > button {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  min-height: 40px;
  padding: 8px 12px;
}
.table-tools > button .icon {
  width: 15px;
  height: 15px;
}
.class-chart {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px 23px;
  margin-bottom: 23px;
  display: flex;
  gap: 35px;
  align-items: center;
}
.class-chart > div:first-child {
  flex-shrink: 0;
}
.class-chart h2 {
  font-size: 15px;
}
.class-chart p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 0;
}
.class-chart-bars,
#class-chart-bars {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 15px 25px;
}
.class-bar {
  min-width: 180px;
  flex: 1;
  display: grid;
  grid-template-columns: auto auto;
  gap: 7px 12px;
  font-size: 11px;
  color: var(--muted);
}
.class-bar strong {
  color: var(--ink);
  font-weight: 650;
}
.class-bar > span {
  text-align: right;
}
.class-bar-track {
  height: 6px;
  grid-column: 1/-1;
  border-radius: 4px;
  background: #edf2ee;
  overflow: hidden;
}
.class-bar-track > i {
  display: block;
  height: 100%;
  background: #7fb293;
  border-radius: 4px;
}
.teacher .definitions {
  color: var(--muted);
  font-size: 11px;
  margin-top: 20px;
}
.teacher #message {
  font-size: 12px;
  color: #785a30;
  background: #fff9e8;
  padding: 0 15px;
  border-radius: 10px;
}
.teacher #message:not(:empty) {
  padding: 12px 15px;
}
.teacher #teacher-login {
  margin: 70px auto 30px;
  width: min(100%, 460px);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.teacher #teacher-login h2 {
  font-size: 25px;
  margin-bottom: 12px;
}
.teacher #teacher-login p {
  font-size: 13px;
  color: var(--muted);
}
.teacher #teacher-login .eyebrow {
  font-size: 11px;
  color: var(--green);
  margin: 20px 0 8px;
}
.teacher #teacher-login input {
  font-size: 16px;
}
.teacher #teacher-login label {
  margin-top: 25px;
}
.login-symbol {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--mint);
  color: var(--green);
  display: grid;
  place-items: center;
}
.login-symbol .icon {
  width: 25px;
  height: 25px;
}
.teacher dialog {
  border-color: var(--line);
  border-radius: 20px;
}
.teacher dialog p {
  color: var(--muted);
  font-size: 12px;
}
.teacher .brand {
  color: var(--green);
}
.teacher .management-heading {
  margin-bottom: 22px;
}
.teacher .management-heading h2 {
  font-size: 22px;
}
.teacher .editor-panel {
  border-color: var(--line);
  border-radius: 17px;
  padding: 26px;
}
.teacher .editor-panel h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.editor-intro {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 24px;
}
.teacher .edit-grid {
  gap: 18px 22px;
}
.teacher .form-note {
  font-size: 11px;
  color: var(--muted);
}
.teacher .check-list {
  gap: 12px 22px;
}
.teacher .check-list label {
  color: var(--ink);
}
.teacher .check-list input,
.teacher .review-check input {
  min-height: 18px;
  accent-color: var(--green);
}
.assignment-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 18px;
  gap: 18px;
}
.assignment-list-heading h3 {
  margin: 0;
  font-size: 18px;
}
.assignment-list-heading label {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.teacher .assignment-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.teacher .assignment-card {
  border-radius: 16px;
  margin: 0;
  padding: 22px;
  position: relative;
}
.teacher .assignment-card h3 {
  font-size: 16px;
  margin: 0 0 10px;
  overflow-wrap: anywhere;
  padding-right: 10px;
}
.teacher .assignment-card p {
  font-size: 12px;
  color: var(--muted);
}
.teacher .assignment-card .inline-actions {
  margin-top: 18px;
}
.teacher .assignment-card .inline-actions button {
  font-size: 11px;
  padding: 8px 12px;
}
.assignment-status-label {
  display: inline-block;
  border-radius: 6px;
  padding: 4px 8px;
  background: var(--mint);
  color: var(--green);
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 13px;
}
.assignment-status-label.cancelled,
.assignment-status-label.ended {
  background: #f0f2f1;
  color: #68796e;
}
.assignment-status-label.upcoming {
  background: var(--blue);
  color: #526c9a;
}
.assignment-completion {
  height: 5px;
  background: #edf2ee;
  overflow: hidden;
  border-radius: 4px;
  margin: 14px 0 8px;
}
.assignment-completion i {
  display: block;
  height: 100%;
  background: #78ac8a;
  border-radius: 4px;
}
.teacher #assignment-report {
  margin-top: 24px;
}
.teacher .question-editor-layout {
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 24px;
}
.teacher .question-list button {
  min-height: 42px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.teacher .question-list button[aria-pressed="true"] {
  color: var(--green-dark);
  background: var(--mint);
  border-color: #b6d3be;
}
.teacher .review-check {
  font-size: 12px;
  margin: 18px 0;
}
.teacher .author-savebar {
  position: sticky;
  bottom: 0;
  background: #fffffff2;
  padding: 1px 0;
  border-top: 1px solid var(--line);
  margin-top: 25px;
  z-index: 2;
  backdrop-filter: blur(8px);
}
.teacher .author-savebar .spaced {
  margin: 13px 0;
}
.teacher #question-delete {
  color: #a44e3a;
}
.teacher #quiz-message,
.teacher #assignment-error {
  font-size: 12px;
  color: #785a30;
  overflow-wrap: anywhere;
}
.teacher .detail-table {
  border-color: var(--line);
}
@media (max-width: 1250px) {
  .teacher-sidebar {
    width: 200px;
    padding: 30px 17px;
  }
  .teacher.signed-in main {
    margin-left: 200px;
  }
  .teacher main {
    padding: 30px;
  }
  .teacher-sidebar .brand {
    font-size: 18px;
  }
  .teacher .summary {
    gap: 12px;
  }
  .teacher .metric {
    padding: 18px;
  }
  .teacher .metric strong {
    font-size: 24px;
  }
  .teacher .panel-heading {
    flex-direction: column;
  }
  .table-tools {
    max-width: none;
    width: 100%;
    justify-content: flex-start;
  }
  .class-chart {
    gap: 22px;
  }
}
@media (max-width: 1000px) {
  .teacher .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .teacher .assignment-list {
    grid-template-columns: 1fr;
  }
  .teacher .filters {
    gap: 12px;
  }
  .teacher .filters label {
    min-width: 150px;
  }
  .class-chart {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }
  #class-chart-bars {
    width: 100%;
  }
  .teacher .question-editor-layout {
    grid-template-columns: 1fr;
  }
  .teacher .question-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .teacher .question-list button {
    max-width: 180px;
  }
  .workbar {
    align-items: flex-start;
  }
}
@media (max-width: 760px) {
  .teacher main,
  .teacher.signed-in main {
    margin: 0;
    padding: 22px 18px;
  }
  .teacher-sidebar {
    position: relative;
    width: auto;
    inset: auto;
    padding: 18px;
    margin: -22px -18px 25px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 0;
  }
  .teacher-sidebar .brand {
    font-size: 18px;
  }
  .teacher-sidebar .brand-mark {
    width: 35px;
    height: 35px;
  }
  .teacher-sidebar .brand small {
    font-size: 9px;
  }
  .teacher-sidebar .sidebar-label,
  .teacher-sidebar-bottom > p {
    display: none;
  }
  .teacher .management-nav {
    flex-direction: row;
    margin-top: 18px;
    gap: 4px;
  }
  .teacher .management-nav button {
    flex: 1;
    justify-content: center;
    font-size: 12px;
    gap: 7px;
    padding: 9px;
    min-height: 42px;
  }
  .teacher .management-nav button .icon {
    width: 16px;
    height: 16px;
  }
  .teacher-sidebar-bottom {
    position: absolute;
    right: 17px;
    top: 20px;
  }
  .teacher #logout {
    font-size: 10px;
    padding: 7px 8px;
    width: auto;
  }
  .teacher #logout .icon {
    display: none;
  }
  .teacher.signed-in .workbar {
    margin-bottom: 22px;
  }
  .teacher.signed-in #records {
    display: flex;
    flex-direction: column;
  }
  .teacher.signed-in .teacher-sidebar {
    order: -1;
  }
  .workbar h1 {
    font-size: 24px;
  }
  .workbar-kicker {
    font-size: 10px;
  }
  .student-home {
    font-size: 11px;
    gap: 5px;
    white-space: nowrap;
  }
  .student-home .icon {
    width: 14px;
    height: 14px;
  }
  .teacher .summary {
    gap: 10px;
  }
  .teacher .metric {
    padding: 16px;
  }
  .teacher .metric strong {
    font-size: 23px;
  }
  .teacher .metric small {
    font-size: 10px;
  }
  .teacher .metric span {
    font-size: 11px;
  }
  .teacher .filters {
    padding: 16px;
    gap: 12px;
  }
  .teacher .filters label {
    min-width: 120px;
    flex: 1;
  }
  .teacher .filters label:first-child {
    flex: 1;
  }
  .teacher input,
  .teacher select,
  .teacher textarea {
    font-size: 14px;
  }
  .teacher .panel-heading {
    padding: 18px;
  }
  .table-tools {
    gap: 9px;
  }
  .table-tools .badge {
    font-size: 9px;
  }
  .teacher .student-search {
    max-width: 100%;
    flex: 1;
    min-width: 140px;
  }
  .teacher .student-search input {
    width: 100%;
    font-size: 12px;
  }
  .class-chart {
    padding: 18px;
  }
  .teacher .edit-grid {
    gap: 15px;
  }
  .teacher .editor-panel {
    padding: 20px;
  }
  .teacher .management-heading h2 {
    font-size: 20px;
  }
  .teacher .question-editor-layout {
    gap: 18px;
  }
  .teacher .author-savebar button {
    font-size: 12px;
  }
  .teacher .table {
    max-width: 100%;
  }
  .teacher .management-nav #logout {
    margin: 0;
  }
  .teacher #teacher-login {
    margin-top: 35px;
    padding: 28px;
  }
  .teacher #teacher-login h2 {
    font-size: 23px;
  }
}
@media (max-width: 380px) {
  .teacher main,
  .teacher.signed-in main {
    padding-left: 13px;
    padding-right: 13px;
  }
  .teacher .metric {
    padding: 13px;
  }
  .teacher .metric strong {
    font-size: 21px;
  }
  .student-home {
    font-size: 10px;
  }
  .teacher .management-nav button {
    font-size: 11px;
    padding: 9px 5px;
  }
  .teacher .management-nav button .icon {
    display: none;
  }
  .teacher-sidebar {
    margin-left: -13px;
    margin-right: -13px;
  }
  .teacher .editor-panel {
    padding: 16px;
  }
  .teacher .assignment-card {
    padding: 18px;
  }
}
.table-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 17px 22px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.table-pager > span {
  margin-right: auto;
}
.table-pager label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.teacher .table-pager select {
  font-size: 11px;
  min-height: 35px;
  padding: 6px 9px;
}
.teacher .table-pager button {
  font-size: 11px;
  min-height: 35px;
  padding: 7px 12px;
}
.teacher .table-pager button:disabled {
  cursor: default;
  opacity: 0.4;
}
.teacher td {
  font-size: 13px;
}
.teacher th {
  font-size: 12px;
}
.teacher .management-nav button {
  font-size: 14px;
}
.teacher .cell-sub {
  font-size: 12px;
}
@media (max-width: 760px) {
  .teacher input,
  .teacher select,
  .teacher textarea {
    font-size: 16px;
  }
  .teacher .management-nav button {
    font-size: 12px;
  }
  .teacher .student-search input {
    font-size: 16px;
  }
  .teacher .table-pager select {
    font-size: 16px;
  }
  .teacher td {
    font-size: 13px;
  }
  .teacher th {
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  .teacher .table::before,
  .teacher .detail-table::before {
    content: "左右滑动，查看完整记录";
    display: block;
    position: sticky;
    left: 0;
    font-size: 11px;
    padding: 9px 14px;
    color: var(--muted);
    background: #f8fbf9;
    text-align: left;
  }
}
