/* Ported from 修炼模板828 task-route-map (do not edit casually) */
.app.app--dungeon-map .task-route-map {
  flex: 1 1 0%;
  min-height: 0;
  height: 100%;
}
.task-route-map {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  color: #1c2754;
  background:
    radial-gradient(820px 420px at 76% -8%, rgba(175, 155, 247, 0.2), transparent 66%),
    linear-gradient(135deg, rgba(251, 253, 255, 0.94), rgba(241, 244, 255, 0.9));
  box-shadow: 0 12px 34px rgba(61, 70, 130, 0.11);
}
.task-route-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 18px 22px 16px;
  border-bottom: 1px solid rgba(112, 121, 187, 0.16);
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(12px);
}
.task-route-back,
.task-route-forum,
.task-route-go,
.task-route-next,
.task-route-task,
.task-route-node {
  font: inherit;
}
.task-route-back,
.task-route-forum {
  border: 0;
  background: transparent;
  color: #5b6798;
  font-size: 13px;
  cursor: pointer;
}
.task-route-back { font-weight: 700; }
.task-route-back:hover,
.task-route-forum:hover { color: #634bd2; }
.task-route-heading { min-width: 0; }
.task-route-heading p {
  margin: 0 0 5px;
  color: #7b84ad;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.task-route-heading h1 {
  margin: 0;
  overflow: hidden;
  font-family: var(--font, "Microsoft YaHei", sans-serif);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-route-progress {
  min-width: 118px;
  padding: 8px 12px;
  border: 1px solid rgba(126, 115, 210, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
}
.task-route-progress span,
.task-route-progress strong { display: block; }
.task-route-progress span { color: #7d86ab; font-size: 11px; }
.task-route-progress strong { margin-top: 3px; color: #5e48cf; font-size: 13px; }
.task-route-body {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 290px;
  flex: 1 1 0%;
  min-height: 0;
}
.task-route-outline,
.task-route-focus {
  min-width: 0;
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
}
.task-route-outline {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px 14px;
  border-right: 1px solid rgba(112, 121, 187, 0.15);
}
.task-route-outline > header,
.task-route-stage > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.task-route-outline > header { padding: 0 5px 12px; }
.task-route-outline > header b,
.task-route-stage > header p {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: #29366b;
}
.task-route-outline > header small,
.task-route-stage > header span { color: #7b84ad; font-size: 11px; }
.task-route-outline ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
  margin: 0;
  padding: 0 2px;
  overflow-y: auto;
  list-style: none;
}
.task-route-task {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 14px;
  align-items: start;
  gap: 8px;
  width: 100%;
  padding: 10px 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #2f3c70;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.task-route-task:hover:not(:disabled) {
  border-color: rgba(120, 100, 220, 0.2);
  background: rgba(255, 255, 255, 0.62);
  transform: translateX(2px);
}
.task-route-task.is-active {
  border-color: rgba(115, 91, 213, 0.3);
  background: linear-gradient(120deg, rgba(236, 232, 255, 0.88), rgba(255, 255, 255, 0.76));
  box-shadow: 0 5px 14px rgba(84, 71, 160, 0.09);
}
.task-route-task.is-complete .task-route-task-no,
.task-route-task.is-complete > i { color: #4a9f9a; }
.task-route-task.is-locked { opacity: .48; cursor: pointer; }
.task-route-task-no { padding-top: 2px; color: #7e70c8; font-size: 12px; font-weight: 800; }
.task-route-task-copy { min-width: 0; }
.task-route-task-copy b,
.task-route-task-copy small { display: block; }
.task-route-task-copy b {
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-route-task-copy small { margin-top: 4px; color: #7c86aa; font-size: 11px; }
.task-route-task > i { font-style: normal; color: #8b82ba; font-size: 13px; }
.task-route-stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 18px 28px 0;
}
.task-route-stage > header { flex: 0 0 auto; padding: 0 3px 14px; }
.task-route-scroll {
  flex: 1 1 0%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px 5px 28px;
  scrollbar-color: rgba(111, 91, 203, .35) transparent;
  scrollbar-width: thin;
}
.task-route-path {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: min(100%, 630px);
  min-height: 100%;
  margin: 0 auto;
  padding: 3px 0 12px;
}
.task-route-node {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: center;
  min-height: 106px;
  padding: 0;
  border: 0;
  color: #25325f;
  text-align: left;
  background: transparent;
  cursor: pointer;
}
.task-route-node:disabled { cursor: not-allowed; }
.task-route-node-line {
  position: absolute;
  z-index: 0;
  top: 50%;
  bottom: -53px;
  left: calc(50% - 1px);
  width: 2px;
  background: linear-gradient(#b7aafb, #d7d9f1);
}
.task-route-node:last-child .task-route-node-line { display: none; }
.task-route-node-dot {
  z-index: 1;
  grid-column: 2;
  display: grid;
  width: 38px;
  height: 38px;
  margin: auto;
  border: 2px solid rgba(108, 89, 199, 0.42);
  border-radius: 50%;
  color: #604ac4;
  font-size: 12px;
  font-weight: 800;
  place-items: center;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 12px rgba(80, 71, 150, .1);
}
.task-route-node-card {
  z-index: 1;
  grid-column: 3;
  width: min(100%, 250px);
  padding: 12px 14px;
  border: 1px solid rgba(122, 132, 187, .22);
  border-radius: 14px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 7px 18px rgba(65, 75, 136, .08);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.task-route-node:nth-child(even) .task-route-node-card { grid-column: 1; grid-row: 1; justify-self: end; text-align: right; }
.task-route-node-card em,
.task-route-node-card strong,
.task-route-node-card small { display: block; }
.task-route-node-card em { color: #7561cb; font-size: 11px; font-style: normal; }
.task-route-node-card strong {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.task-route-node-card small { margin-top: 5px; color: #7d86ac; font-size: 11px; }
.task-route-node:hover:not(:disabled) .task-route-node-card { border-color: rgba(110, 88, 203, .42); box-shadow: 0 10px 22px rgba(71, 60, 150, .14); transform: translateY(-2px); }
.task-route-node.cleared .task-route-node-dot { border-color: #78b9bf; color: #fff; background: linear-gradient(145deg, #6caec0, #6174d1); }
.task-route-node.cleared .task-route-node-card em { color: #4a999f; }
.task-route-node.is-current .task-route-node-dot {
  border-color: #7256d7;
  color: #fff;
  background: linear-gradient(145deg, #9b7af2, #6549ce);
  box-shadow: 0 0 0 6px rgba(132, 104, 228, .14), 0 8px 20px rgba(99, 71, 196, .26);
}
.task-route-node.is-current .task-route-node-card { border-color: rgba(111, 83, 213, .46); background: rgba(251, 250, 255, .9); }
.task-route-node.is-current .task-route-node-card small { color: #684ccb; font-weight: 700; }
.task-route-node.locked { opacity: .54; }
.task-route-node.locked .task-route-node-dot { border-color: #b7bfd6; color: #8790ad; background: #edf0f7; }
.task-route-empty { margin: auto; color: #7a84aa; font-size: 13px; text-align: center; }
.task-route-focus {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 23px 20px;
  border-left: 1px solid rgba(112, 121, 187, 0.15);
}
.task-route-focus-kicker { margin: 0 0 16px; color: #2e3a6c; font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.task-route-focus em {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  color: #6e54cf;
  font-size: 11px;
  font-style: normal;
  background: rgba(124, 99, 219, .1);
}
.task-route-focus strong { margin-top: 12px; color: #202c5b; font-size: 19px; line-height: 1.4; }
.task-route-focus-task { margin: 9px 0 0; color: #7781a8; font-size: 12px; line-height: 1.5; }
.task-route-focus #kp-focus-desc { margin: 13px 0 0; color: #5f6a91; font-size: 13px; line-height: 1.65; }
.task-route-go,
.task-route-next {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  font-weight: 700;
  cursor: pointer;
}
.task-route-go { margin-top: auto; border: 0; color: #fff; background: linear-gradient(135deg, #8666e7, #5b4dca); box-shadow: 0 8px 18px rgba(83, 64, 182, .2); }
.task-route-go:hover { filter: brightness(1.05); }
.task-route-next { margin-top: 9px; border: 1px solid rgba(103, 82, 195, .25); color: #604cc3; background: rgba(255, 255, 255, .62); }
.task-route-next:hover { background: #fff; }

@media (max-width: 1420px) {
  .task-route-body { grid-template-columns: 210px minmax(0, 1fr) 250px; }
  .task-route-stage { padding-left: 20px; padding-right: 20px; }
  .task-route-focus { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 920px) {
  .task-route-top { grid-template-columns: auto minmax(0, 1fr) auto; }
  .task-route-progress { grid-column: 2; }
  .task-route-body { grid-template-columns: 210px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .task-route-focus { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; border-top: 1px solid rgba(112, 121, 187, .15); border-left: 0; }
  .task-route-focus-kicker, .task-route-focus em, .task-route-focus-task, .task-route-focus strong, .task-route-focus #kp-focus-desc { margin: 0; }
  .task-route-focus-kicker, .task-route-focus em { grid-column: 1; }
  .task-route-focus strong, .task-route-focus-task, .task-route-focus #kp-focus-desc { grid-column: 1; }
  .task-route-go, .task-route-next { grid-column: 2; align-self: end; min-width: 180px; margin: 0; }
}
@media (max-width: 640px) {
  .task-route-top { grid-template-columns: 1fr auto; padding: 14px; }
  .task-route-heading { grid-column: 1 / -1; grid-row: 2; }
  .task-route-progress { grid-column: 1; grid-row: 3; }
  .task-route-body { grid-template-columns: 1fr; overflow-y: auto; }
  .task-route-outline { max-height: 180px; border-right: 0; border-bottom: 1px solid rgba(112, 121, 187, .15); }
  .task-route-stage { min-height: 440px; padding: 16px 12px 0; }
  .task-route-focus { grid-column: auto; }
  .task-route-node { grid-template-columns: minmax(0, 1fr) 42px; }
  .task-route-node-card, .task-route-node:nth-child(even) .task-route-node-card { grid-column: 1; grid-row: 1; justify-self: stretch; text-align: left; }
  .task-route-node-dot { grid-column: 2; }
  .task-route-node-line { left: calc(100% - 22px); }
}

/* 教师 · 管理学生 */
#view-teacher-students.active {
  display: block !important;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 16px 32px;
}
.teacher-students-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.teacher-students-hero h1 {
  margin: 6px 0 8px;
  font-size: clamp(24px, 3.6vw, 32px);
}
.teacher-students-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}
.teacher-students-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.teacher-students-table th,
.teacher-students-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  vertical-align: top;
}
.teacher-students-table th {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted, #64748b);
  background: rgba(15, 23, 42, 0.03);
}
.teacher-students-table tr:last-child td {
  border-bottom: 0;
}
.teacher-students-table tr:hover td {
  background: rgba(99, 102, 241, 0.04);
}
.teacher-students-name {
  font-weight: 700;
}
.teacher-students-role {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
}
.teacher-students-progress {
  max-width: 260px;
  line-height: 1.45;
  color: var(--muted, #64748b);
}
.teacher-students-pending {
  display: inline-flex;
  min-width: 22px;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
}
.teacher-student-detail {
  margin: 0;
  padding: 20px 22px;
}
.teacher-student-detail-page .teacher-student-detail {
  margin-top: 4px;
}
.teacher-student-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.teacher-student-detail-head h2 {
  margin: 0 0 4px;
  font-size: 20px;
}
.teacher-student-detail-dl {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
}
.teacher-student-detail-dl div {
  display: grid;
  gap: 4px;
}
.teacher-student-detail-dl dt {
  font-size: 12px;
  color: var(--muted, #64748b);
}
.teacher-student-detail-dl dd {
  margin: 0;
  line-height: 1.55;
}
.teacher-students-empty,
.teacher-students-loading {
  margin: 0 0 12px;
}

/* 教师二级页：沿用教师修炼工作台的仙山背景、轻玻璃与紫色操作体系。 */
body.is-teacher-zone:has(#view-teacher-students.active),
body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) {
  min-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #e8eaff;
}
body.is-teacher-zone:has(#view-teacher-students.active) .app.app--teacher-zone,
body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) .app.app--teacher-zone {
  --teacher-ink: #1e3477;
  --teacher-copy: #5e719a;
  --teacher-purple: #6246df;
  --teacher-purple-dark: #4e36d3;
  --teacher-line: rgba(255, 255, 255, .68);
  --teacher-glass-a: rgba(255, 255, 255, .62);
  --teacher-glass-b: rgba(245, 243, 255, .36);
  width: 100%;
  min-height: 100dvh;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(238, 240, 255, .28), rgba(231, 234, 252, .84) 84%, #e1e4fa);
}
body.is-teacher-zone:has(#view-teacher-students.active) .app.app--teacher-zone .bg,
body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) .app.app--teacher-zone .bg {
  position: fixed;
  inset: 0;
  opacity: 1;
  background: url('./assets/teacher-workbench-mountains.png') center top / cover no-repeat;
  filter: saturate(.88) brightness(1.035);
}
body.is-teacher-zone:has(#view-teacher-students.active) .app.app--teacher-zone .bg::before,
body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) .app.app--teacher-zone .bg::before {
  display: none;
}
body.is-teacher-zone:has(#view-teacher-students.active) .app.app--teacher-zone .bg::after,
body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) .app.app--teacher-zone .bg::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 44% at 50% 34%, rgba(255, 255, 255, .54), transparent 74%),
    linear-gradient(180deg, rgba(249, 249, 255, .13), rgba(235, 237, 255, .22));
  content: '';
}

body.is-teacher-zone:has(#view-teacher-students.active) .teacher-topbar,
body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) .teacher-topbar {
  height: 82px;
  min-height: 82px;
  margin: 0;
  padding: 12px clamp(30px, 2.7vw, 44px);
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  border-radius: 0;
  background: rgba(249, 249, 255, .35);
  box-shadow: 0 8px 24px rgba(83, 71, 153, .045), inset 0 -1px rgba(255, 255, 255, .35);
  backdrop-filter: blur(17px) saturate(1.05);
  -webkit-backdrop-filter: blur(17px) saturate(1.05);
}
body.is-teacher-zone:has(#view-teacher-students.active) .teacher-topbar-start,
body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) .teacher-topbar-start { gap: 24px; }
body.is-teacher-zone:has(#view-teacher-students.active) .teacher-topbar-brand,
body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) .teacher-topbar-brand {
  padding-right: 23px;
  border-right: 1px solid rgba(84, 75, 151, .12);
  color: #1f3174;
}
body.is-teacher-zone:has(#view-teacher-students.active) .teacher-topbar-seal,
body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) .teacher-topbar-seal {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(140deg, #8968ff, #513be2);
  box-shadow: 0 8px 18px rgba(92, 64, 221, .22), inset 0 1px rgba(255, 255, 255, .36);
}
body.is-teacher-zone:has(#view-teacher-students.active) .teacher-topbar-copy strong,
body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) .teacher-topbar-copy strong { font-size: 19px; }
body.is-teacher-zone:has(#view-teacher-students.active) .teacher-topbar-copy small,
body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) .teacher-topbar-copy small { color: #61709c; letter-spacing: .08em; }
body.is-teacher-zone:has(#view-teacher-students.active) .teacher-topbar-back,
body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) .teacher-topbar-back {
  min-height: 0;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  color: #5c45e2;
  background: transparent;
  box-shadow: none;
  font-size: 15px;
}
body.is-teacher-zone:has(#view-teacher-students.active) .teacher-topbar-user,
body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) .teacher-topbar-user {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.7), 0 6px 14px rgba(80, 60, 180, 0.06);
}
body.is-teacher-zone:has(#view-teacher-students.active) .teacher-topbar-user-meta,
body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) .teacher-topbar-user-meta,
body.is-teacher-zone:has(#view-teacher-students.active) .teacher-topbar-meta,
body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) .teacher-topbar-meta { color: #7180aa; font-weight: 650; }
body.is-teacher-zone:has(#view-teacher-students.active) .teacher-topbar-avatar,
body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) .teacher-topbar-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 50%;
  color: #7659ed;
  background: rgba(255, 255, 255, .42);
  box-shadow: inset 0 1px rgba(255, 255, 255, .7), 0 6px 14px rgba(80, 60, 180, .07);
}
body.is-teacher-zone:has(#view-teacher-students.active) .teacher-topbar-logout,
body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) .teacher-topbar-logout,
body.is-teacher-zone:has(#view-teacher-students.active) #btn-teacher-logout,
body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) #btn-teacher-logout {
  min-height: 36px;
  padding: 0 12px;
  border-color: rgba(255, 255, 255, .72);
  color: #374878;
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 6px 16px rgba(75, 66, 143, .045), inset 0 1px rgba(255, 255, 255, .55);
}

.teacher-subpage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 22px;
  text-align: left;
}
.teacher-subpage-copy { min-width: 0; }
.teacher-subpage-back {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #5c45e2;
  background: transparent;
  box-shadow: none;
  font-size: 15px;
  font-weight: 650;
}
.teacher-subpage-back:hover {
  color: #432cce;
  background: transparent;
  transform: none;
  box-shadow: none;
}
.teacher-subpage-kicker {
  margin: 0 0 5px !important;
  color: #65769c !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: .12em !important;
  text-transform: none !important;
}
.teacher-subpage-head h1 {
  margin: 0 0 6px !important;
  color: var(--teacher-ink, #1e3477) !important;
  font-family: var(--font-display, 'Noto Serif SC', 'Songti SC', serif);
  font-size: clamp(29px, 3vw, 37px) !important;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1.22;
}
.teacher-subpage-head .teacher-workbench-sub,
.teacher-subpage-head .admin-create-sub {
  max-width: 58ch;
  margin: 0 !important;
  color: var(--teacher-copy, #5e719a) !important;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.65;
}
.teacher-subpage-head .form-actions { margin: 1px 0 0; }
.teacher-subpage-refresh {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  gap: 6px;
  padding: 7px 12px !important;
  border: 1px solid rgba(255, 255, 255, .66) !important;
  border-radius: 12px !important;
  color: #654bda !important;
  background: rgba(255, 255, 255, .38) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .72), 0 6px 15px rgba(76, 62, 160, .055) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
}
.teacher-subpage-refresh:hover {
  border-color: rgba(113, 84, 226, .3) !important;
  color: #4e35c9 !important;
  background: rgba(255, 255, 255, .58) !important;
}
.teacher-subpage-refresh span { font-size: 17px; line-height: 1; }
.teacher-glass-panel {
  border: 1px solid var(--teacher-line, rgba(255, 255, 255, .68));
  border-radius: 22px;
  background:
    radial-gradient(620px circle at 100% 0%, rgba(207, 196, 255, .16), transparent 48%),
    linear-gradient(145deg, var(--teacher-glass-a, rgba(255, 255, 255, .62)), var(--teacher-glass-b, rgba(245, 243, 255, .36)));
  box-shadow: inset 0 1px rgba(255, 255, 255, .76), 0 15px 34px rgba(70, 59, 146, .09);
  backdrop-filter: blur(17px) saturate(1.05);
  -webkit-backdrop-filter: blur(17px) saturate(1.05);
}
.teacher-page-status,
.teacher-page-empty {
  margin: 0;
  color: #7180a3 !important;
  font-size: 13px;
}

/* 管理学生 */
#view-teacher-students.active {
  display: block !important;
  width: min(1230px, calc(100% - 60px));
  max-width: none;
  margin: 0 auto;
  padding: 31px 0 60px;
}
.teacher-students-head { margin-bottom: 23px; }
.teacher-students-table-wrap {
  overflow: hidden;
  border-radius: 22px;
}
.teacher-students-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  min-height: 76px;
  padding: 18px 24px 17px;
  border-bottom: 1px solid rgba(107, 91, 184, .11);
}
.teacher-students-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}
.teacher-students-filter {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #67789e;
}
.teacher-students-filter select,
.teacher-students-filter input {
  min-width: 160px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(99, 112, 148, 0.22);
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 13px;
}
.teacher-students-filter--search input {
  min-width: 180px;
}
.teacher-student-detail-list {
  margin: 0;
  padding-left: 1.1em;
  line-height: 1.55;
}
.teacher-students-panel-head h2 {
  margin: 0 0 3px;
  color: #334778;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
}
.teacher-students-panel-head p {
  margin: 0;
  color: #7885a5;
  font-size: 12px;
  font-weight: 600;
}
.teacher-students-table-scroll { overflow-x: auto; }
.teacher-students-table {
  width: 100%;
  min-width: 930px;
  border-collapse: separate;
  border-spacing: 0;
  color: #384b79;
  font-size: 14px;
}
.teacher-students-table th,
.teacher-students-table td {
  padding: 17px 18px;
  border-bottom: 1px solid rgba(106, 91, 181, .10);
  text-align: left;
  vertical-align: middle;
}
.teacher-students-table th {
  color: #7180a2;
  background: rgba(232, 229, 251, .36);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .05em;
  white-space: nowrap;
}
.teacher-students-table td { color: #40537f; font-weight: 550; }
.teacher-students-table tr:last-child td { border-bottom: 0; }
.teacher-students-table tbody tr { transition: background 160ms ease; }
.teacher-students-table tbody tr:hover { background: rgba(255, 255, 255, .30); }
.teacher-students-table code {
  color: #223d7d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .015em;
}
.teacher-students-name { color: #1f3977; font-size: 15px; font-weight: 800; }
.teacher-students-role {
  padding: 4px 9px;
  border: 1px solid rgba(130, 111, 220, .08);
  color: #6555be;
  background: rgba(227, 222, 255, .59);
  font-size: 12px;
  font-weight: 700;
}
.teacher-students-points { color: #2e477f; font-weight: 800; font-variant-numeric: tabular-nums; }
.teacher-students-points b { color: #8064db; font-size: .95em; font-weight: 800; }
.teacher-students-progress { max-width: 285px; color: #66789e; }
.teacher-students-progress__state { display: inline-flex; align-items: center; gap: 7px; line-height: 1.45; }
.teacher-students-progress__state::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border: 1px solid rgba(106, 95, 180, .34);
  border-radius: 50%;
  background: rgba(255, 255, 255, .54);
  content: '';
}
.teacher-students-progress__state.is-active::before { border-color: rgba(101, 83, 199, .25); background: #8c70ed; box-shadow: 0 0 0 3px rgba(139, 110, 237, .10); }
.teacher-students-pending { min-width: 25px; padding: 3px 8px; color: #98672e; background: rgba(253, 231, 197, .60); font-size: 12px; }
.teacher-students-view {
  min-height: 34px;
  padding: 5px 10px !important;
  border-color: rgba(128, 106, 219, .22) !important;
  border-radius: 10px !important;
  color: #6046ce !important;
  background: rgba(255, 255, 255, .31) !important;
  font-size: 12px !important;
  font-weight: 750 !important;
}
.teacher-students-view:hover { border-color: rgba(102, 76, 205, .42) !important; background: rgba(246, 243, 255, .72) !important; }
.teacher-student-detail .btn-soft { border-radius: 11px; }

/* 学生作品评分 */
body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])),
body.is-admin-only.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) {
  min-height: calc(100dvh - 82px);
  height: auto;
  background: transparent;
}
body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) #view-admin.active,
body.is-admin-only.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) #view-admin.active,
body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) #view-admin.active .admin-shell,
body.is-admin-only.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) #view-admin.active .admin-shell {
  min-height: calc(100dvh - 82px);
  height: auto;
  background: transparent;
}
body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) #view-admin.active .admin-main,
body.is-admin-only.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) #view-admin.active .admin-main {
  min-height: calc(100dvh - 82px);
  height: auto;
  overflow: visible;
  padding: 0;
  background: transparent;
}
body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) #view-admin.active .teacher-grade-page,
body.is-admin-only.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) #view-admin.active .teacher-grade-page {
  display: block;
  flex: none;
  width: 100%;
  min-height: 0;
}
body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) #view-admin.active .teacher-grade-workspace,
body.is-admin-only.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) #view-admin.active .teacher-grade-workspace {
  width: min(1280px, calc(100% - 32px));
  min-height: 0;
  margin: 0 auto;
  padding: 24px 0 48px;
}
body.is-admin-only.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) #view-admin.active .teacher-grade-workspace {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px clamp(12px, 1.8vw, 24px) 40px;
  box-sizing: border-box;
}
.teacher-grade-content {
  display: grid;
  gap: 16px;
}
.teacher-grade-head {
  margin-bottom: 16px;
}
.teacher-grade-head-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.teacher-grade-head-actions .work-grade-summary {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  color: #5a46c8;
  background: rgba(255, 255, 255, .42);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}
.teacher-grade-head--compact {
  margin-bottom: 12px;
}
.teacher-grade-head--compact .admin-create-sub,
.teacher-grade-head--compact .admin-create-kicker {
  display: none;
}
.teacher-grade-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.teacher-grade-headline h1 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
}
.teacher-grade-headline .work-grade-ai-status {
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .34);
  font-size: 11px;
}
.teacher-grade-toolbar {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
}
.work-grade-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(122, 101, 210, .12);
}
.work-grade-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  margin-left: auto;
}
.work-grade-action-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.work-grade-action-sep {
  display: inline-block;
  width: 1px;
  height: 22px;
  margin: 0 2px;
  background: rgba(98, 84, 168, .22);
  flex: 0 0 auto;
}
.teacher-grade-toolbar .work-grade-toolbar-actions .btn {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 11px;
  white-space: nowrap;
  font-weight: 750;
}
.teacher-grade-toolbar .work-grade-toolbar-actions .btn-primary {
  min-width: 92px;
  border: 0;
  box-shadow: 0 8px 18px rgba(82, 59, 211, .2);
}
.teacher-grade-toolbar .work-grade-toolbar-actions .btn-soft {
  border: 1px solid rgba(99, 73, 211, .24);
  color: #5a45c8;
  background: rgba(255, 255, 255, .52);
}
.teacher-grade-toolbar .work-grade-toolbar-actions .btn-soft:hover {
  background: rgba(239, 235, 255, .78);
  border-color: rgba(99, 73, 211, .4);
}
.teacher-grade-toolbar .work-grade-toolbar-actions .btn-ghost {
  border: 1px solid rgba(122, 101, 210, .18);
  color: #3d4f7c;
  background: rgba(255, 255, 255, .34);
}
.teacher-grade-toolbar .work-grade-toolbar-actions .btn-ghost:hover {
  color: #2f3f6e;
  background: rgba(255, 255, 255, .55);
  border-color: rgba(122, 101, 210, .32);
}
.work-grade-toolbar-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}
.work-grade-select-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  min-width: 0;
}
.work-grade-select-bar .btn-ghost {
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 9px;
  border: 1px solid rgba(122, 101, 210, .14);
  background: rgba(255, 255, 255, .28);
  color: #5a6b94;
}
.work-grade-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: #3d4f7c;
  cursor: pointer;
  user-select: none;
}
.work-grade-select-count {
  font-size: 12px;
}
.work-grade-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 14px;
  padding-top: 4px;
}
.work-grade-pager[hidden] {
  display: none !important;
}
.work-grade-check {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
  margin: 0;
  cursor: pointer;
}
.work-grade-check input {
  width: 16px;
  height: 16px;
  accent-color: #5b45d6;
  cursor: pointer;
}
.work-grade-check--empty {
  width: 16px;
  height: 16px;
}
.work-grade-item.is-ai-selectable {
  cursor: default;
}
.work-grade-ai-progress {
  margin: 10px 0 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(53, 73, 121, 0.06);
  border: 1px solid rgba(53, 73, 121, 0.12);
}
.work-grade-ai-dock {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 10050;
  width: min(420px, calc(100vw - 32px));
  transform: translateX(-50%);
  padding: 0;
  margin: 0;
  pointer-events: none;
}
.work-grade-ai-dock__inner {
  pointer-events: auto;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(40, 36, 90, 0.18);
  backdrop-filter: blur(12px) saturate(1.05);
}
.work-grade-ai-progress[hidden],
.work-grade-ai-dock[hidden] {
  display: none !important;
}
.work-grade-manual-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: grid;
  place-items: center;
  padding: 20px;
}
.work-grade-manual-modal[hidden] {
  display: none !important;
}
.work-grade-manual-modal__overlay {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(28, 24, 58, 0.42);
  cursor: pointer;
}
.work-grade-manual-modal__panel {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 32px));
  max-height: min(88vh, 720px);
  overflow: auto;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(40, 36, 90, 0.22);
  backdrop-filter: blur(14px) saturate(1.05);
}
.work-grade-manual-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.work-grade-manual-modal__head h2 {
  margin: 0 0 4px;
  color: #253b78;
  font-size: 20px;
  font-weight: 800;
}
.work-grade-manual-modal__head .muted {
  margin: 0;
  font-size: 12px;
}
.work-grade-manual-modal__body h3 {
  margin: 0 0 6px;
  color: #253b78;
  font-size: 17px;
  font-weight: 800;
}
.work-grade-manual-note,
.work-grade-manual-ai {
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}
.work-grade-manual-note {
  color: #40527f;
  background: rgba(98, 120, 180, 0.08);
}
.work-grade-manual-ai {
  color: #5a45c8;
  background: rgba(124, 99, 220, 0.1);
}
.work-grade-manual-file-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 12px 0 14px;
}
.work-grade-manual-field {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  color: #5a6b94;
  font-size: 12px;
  font-weight: 750;
}
.work-grade-manual-field input,
.work-grade-manual-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid rgba(122, 101, 210, 0.22);
  border-radius: 12px;
  color: #354979;
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 600;
  outline: none;
}
.work-grade-manual-field textarea {
  resize: vertical;
  min-height: 76px;
  font-weight: 550;
}
.work-grade-manual-modal__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(122, 101, 210, 0.12);
}
.work-grade-ai-progress__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #2b3f74;
}
.work-grade-ai-progress__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(53, 73, 121, 0.12);
  overflow: hidden;
}
.work-grade-ai-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f6ef7, #3d8bfd);
  transition: width 0.25s ease;
}
.work-grade-ai-progress__meta {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
}
[data-admin-module-pane="work-grade"].is-ai-busy #btn-work-grade-batch-ai {
  opacity: 0.65;
}
.work-grade-import-panel {
  padding: 0;
  overflow: hidden;
}
.work-grade-import-panel[open] {
  padding-bottom: 14px;
}
.work-grade-import-summary {
  padding: 12px 16px;
  color: #354979;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.work-grade-import-summary::-webkit-details-marker {
  display: none;
}
.work-grade-import-panel .work-import-form {
  padding: 0 16px;
}
.work-grade-import-panel .work-import-actions {
  margin-top: 10px;
}
.work-grade-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 4px;
}
.work-grade-import-panel .work-import-lead {
  margin: 0 16px 10px;
  font-size: 12px;
  line-height: 1.5;
}
.work-grade-import-panel .work-import-format-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 10px;
}
.work-import-lead {
  margin: 0;
  padding: 0 16px 10px;
  font-size: 12px;
  line-height: 1.5;
}
.work-grade-test-context {
  margin: 0;
  padding: 0 16px 8px;
  font-size: 12px;
}
.work-grade-test-context.is-warn {
  color: #b45309;
}
.work-grade-test-prompt-block {
  margin: 8px 16px 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.work-grade-test-prompt-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.work-grade-test-prompt-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}
.work-grade-test-prompt-hint {
  font-size: 12px;
}
.work-grade-test-pass-preview {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.45;
}
.work-grade-test-prompt-input {
  width: 100%;
  min-height: 140px;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.28);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  background: #fff;
}
.work-grade-test-prompt-input:disabled {
  background: #f8fafc;
  color: #94a3b8;
}
#btn-work-grade-test-prompt-reset {
  margin-top: 8px;
}
.work-grade-test-result {
  margin: 8px 16px 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(67, 56, 202, 0.06);
  border: 1px solid rgba(67, 56, 202, 0.18);
}
.work-grade-test-result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 8px;
}
.work-grade-test-summary {
  margin: 0 0 8px;
  line-height: 1.5;
}
.work-grade-test-checks {
  margin: 0 0 8px;
  padding-left: 1.2em;
  font-size: 13px;
}
.work-grade-test-checks .is-ok {
  color: #047857;
}
.work-grade-test-checks .is-bad {
  color: #b91c1c;
}
.work-grade-test-suggest,
.work-grade-test-foot {
  margin: 6px 0 0;
  font-size: 12px;
}
.work-import-form--minimal {
  padding: 0 16px 14px;
}
.work-import-file-field {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}
.work-import-file-label {
  font-size: 12px;
  font-weight: 750;
  color: #67789e;
}
.work-import-file-field input[type='file'] {
  font-size: 13px;
}
.work-grade-item.is-format-test {
  border-color: rgba(99, 102, 241, 0.22);
}
.work-grade-item.is-highlight {
  animation: work-grade-highlight 2.8s ease;
}
@keyframes work-grade-highlight {
  0%,
  15% {
    background: rgba(237, 233, 255, 0.95);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.35);
  }
  100% {
    background: transparent;
    box-shadow: none;
  }
}
.work-grade-tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  color: #5a46c8;
  background: rgba(237, 233, 255, 0.72);
  vertical-align: middle;
}
.work-grade-actions--test {
  min-width: 120px;
}
.work-grade-no {
  color: #7381a1;
  font-size: 13px;
  font-weight: 650;
}
.work-grade-ai-line {
  margin: 6px 0 0;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
  background: rgba(148, 163, 184, 0.12);
  color: #52658f;
}
.work-grade-ai-line.is-pass {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}
.work-grade-ai-line.is-fail,
.work-grade-ai-line.is-pending {
  background: rgba(245, 158, 11, 0.1);
  color: #92400e;
}
.work-grade-ai-line.is-pending {
  background: rgba(148, 163, 184, 0.14);
  color: #64748b;
}
.work-grade-ai-line.is-teacher-only {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
  font-weight: 650;
}
.work-grade-ai-line.is-image-issue {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  font-weight: 750;
}
.work-grade-item.is-image-issue {
  border-color: rgba(239, 68, 68, 0.35);
}
.work-grade-tag.is-warn {
  color: #b91c1c;
  background: rgba(254, 226, 226, 0.9);
}
.work-grade-actions--done {
  align-items: center;
}
.teacher-grade-results {
  padding: 12px 14px 16px;
}
.teacher-grade-empty {
  min-height: 180px;
  padding: 24px;
}
.work-grade-guide {
  margin-bottom: 16px;
  padding: 18px 22px;
}
.work-grade-guide__title {
  margin: 0 0 12px;
  color: #253b78;
  font-family: var(--font-display, 'Noto Serif SC', 'Songti SC', serif);
  font-size: 17px;
  font-weight: 800;
}
.work-grade-guide__steps {
  margin: 0;
  padding: 0 0 0 1.2em;
  display: grid;
  gap: 8px;
  color: #52658f;
  font-size: 13px;
  line-height: 1.55;
}
.work-grade-guide__steps strong {
  color: #354979;
  font-weight: 800;
}
.work-grade-guide__note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
}
.work-grade-section-head {
  margin-bottom: 14px;
}
.work-grade-section-title {
  margin: 0 0 4px;
  color: #253b78;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
}
.work-grade-section-lead {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}
.work-grade-filter-panel,
.work-grade-batch-panel,
.teacher-grade-results {
  padding: 18px 20px;
}
.work-grade-filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px 16px;
  margin: 0;
}
.work-grade-filter-field {
  display: grid;
  gap: 6px;
  margin: 0;
  color: #67789e;
  font-size: 12px;
  font-weight: 750;
}
.work-grade-filter-field[hidden],
#work-grade-result-wrap[hidden] {
  display: none !important;
}
.work-grade-filter-field select,
.teacher-grade-toolbar .work-grade-filters select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 36px 8px 12px;
  border: 1px solid rgba(122, 101, 210, .22);
  border-radius: 12px;
  color: #354979;
  background: rgba(255, 255, 255, .38);
  box-shadow: inset 0 1px rgba(255, 255, 255, .68);
  font-size: 13px;
  font-weight: 650;
  outline: none;
}
.work-grade-filter-field select:focus,
.teacher-grade-toolbar .work-grade-filters select:focus {
  border-color: rgba(99, 73, 211, .52);
  background: rgba(255, 255, 255, .56);
}
.work-grade-batch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.work-grade-batch-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 16px;
  background: rgba(255, 255, 255, .28);
  box-shadow: inset 0 1px rgba(255, 255, 255, .65);
}
.work-grade-batch-card__title {
  margin: 0;
  color: #354979;
  font-size: 14px;
  font-weight: 800;
}
.work-grade-batch-card__desc {
  flex: 1 1 auto;
  margin: 0;
  color: #7381a1;
  font-size: 12px;
  line-height: 1.55;
}
.work-grade-batch-card__desc code {
  padding: 1px 5px;
  border-radius: 6px;
  color: #5a46c8;
  background: rgba(237, 233, 255, .72);
  font-size: 11px;
}
.work-grade-batch-card .btn {
  align-self: flex-start;
  margin-top: 4px;
}
.work-grade-results-head {
  margin-bottom: 14px;
}
.teacher-grade-results:has(.teacher-grade-empty:not([hidden])) {
  display: block;
  min-height: 0;
}
.teacher-grade-results .work-grade-list {
  margin-top: 4px;
}
.teacher-grade-empty {
  display: grid;
  min-height: 254px;
  place-items: center;
  align-content: center;
  gap: 10px;
  margin: 0;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 21px;
  color: #68789c !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, .48), rgba(245, 243, 255, .28));
  box-shadow: inset 0 1px rgba(255, 255, 255, .73), 0 12px 27px rgba(70, 59, 146, .065);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  backdrop-filter: blur(14px) saturate(1.04);
  -webkit-backdrop-filter: blur(14px) saturate(1.04);
}
.teacher-grade-empty[hidden] {
  display: none !important;
}
.teacher-grade-empty::before {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  color: #7659df;
  background: rgba(227, 220, 255, .55);
  box-shadow: inset 0 1px rgba(255, 255, 255, .66);
  /* ASCII-safe escape: avoids mojibake when CSS is decoded as Latin-1 */
  content: '\2301';
  font-size: 28px;
  line-height: 1;
}
.work-grade-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.work-grade-item {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 98px;
  padding: 17px 20px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 18px;
  color: #40527f;
  background: linear-gradient(145deg, rgba(255, 255, 255, .56), rgba(246, 244, 255, .34));
  box-shadow: inset 0 1px rgba(255, 255, 255, .72), 0 9px 22px rgba(70, 59, 146, .055);
  backdrop-filter: blur(13px) saturate(1.04);
  -webkit-backdrop-filter: blur(13px) saturate(1.04);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.work-grade-item:hover { transform: translateY(-1px); background: linear-gradient(145deg, rgba(255, 255, 255, .68), rgba(246, 243, 255, .44)); box-shadow: inset 0 1px rgba(255, 255, 255, .8), 0 13px 26px rgba(70, 59, 146, .08); }
.work-grade-main { flex: 1; min-width: 0; }
.work-grade-main__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.work-grade-main h3 { margin: 0; color: #253b78; font-size: 16px; font-weight: 800; line-height: 1.4; }
.work-grade-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; color: #9d6d31; background: rgba(255, 230, 196, .66); font-size: 11px; font-weight: 800; white-space: nowrap; }
.work-grade-status::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ''; opacity: .75; }
.work-grade-status.is-teacher_passed { color: #2d8a71; background: rgba(204, 242, 228, .70); }
.work-grade-status.is-teacher_failed,
.work-grade-status.is-defense_failed,
.work-grade-status.is-machine_failed { color: #a35d75; background: rgba(248, 221, 233, .68); }
.work-grade-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 0 !important; color: #7381a1 !important; font-size: 12px !important; font-weight: 600; line-height: 1.45; }
.work-grade-note { display: -webkit-box; overflow: hidden; margin: 6px 0 0 !important; color: #52658f; font-size: 13px !important; font-weight: 550; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.work-grade-file { margin-top: 7px; }
.work-grade-file .btn { min-height: 0; padding: 2px 0; border: 0; color: #654bc9; background: transparent; box-shadow: none; font-size: 12px; font-weight: 750; }
.work-grade-actions { display: flex; flex: 0 0 auto; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 7px; max-width: 350px; }
.work-grade-actions .btn-sm { min-height: 34px; padding: 6px 10px; border-radius: 10px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.work-grade-actions .btn-soft { border-color: rgba(125, 102, 215, .20); color: #654bc9; background: rgba(239, 235, 255, .58); }
.work-grade-actions .btn-primary { border: 0; background: linear-gradient(135deg, #795bf0, #523bd9); box-shadow: 0 7px 15px rgba(82, 59, 211, .18); }
.work-grade-actions .btn-ghost { border-color: rgba(134, 109, 178, .20); color: #715f91; background: rgba(255, 255, 255, .28); }

@media (max-width: 900px) {
  #view-teacher-students.active,
  body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) #view-admin.active .teacher-grade-workspace,
  body.is-admin-only.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) #view-admin.active .teacher-grade-workspace {
    width: min(100% - 32px, 760px);
    padding-top: 20px;
  }
  .teacher-subpage-head { gap: 14px; }
  .work-grade-batch-grid { grid-template-columns: 1fr; }
  .teacher-grade-head-actions { align-items: flex-start; }
  .work-grade-item { align-items: flex-start; flex-direction: column; gap: 13px; }
  .work-grade-actions { justify-content: flex-start; max-width: none; }
}
@media (max-width: 760px) {
  body.is-teacher-zone:has(#view-teacher-students.active) .teacher-topbar,
  body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) .teacher-topbar { height: 64px; min-height: 64px; padding: 7px 13px; }
  body.is-teacher-zone:has(#view-teacher-students.active) .teacher-topbar-seal,
  body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) .teacher-topbar-seal { width: 42px; height: 42px; border-radius: 13px; }
  body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) #view-admin.active,
  body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) #view-admin.active .admin-shell,
  body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) #view-admin.active .admin-main { min-height: calc(100dvh - 64px); }
  #view-teacher-students.active,
  body.is-teacher-zone:has(#view-admin.active .teacher-grade-page:not([hidden])) #view-admin.active .teacher-grade-workspace { width: min(100% - 24px, 620px); padding-top: 22px; padding-bottom: 38px; }
  .teacher-subpage-head { align-items: flex-start; gap: 12px; margin-bottom: 18px; }
  .teacher-subpage-head h1 { font-size: 28px !important; }
  .teacher-subpage-head .teacher-workbench-sub,
  .teacher-subpage-head .admin-create-sub { font-size: 13px; }
  .teacher-subpage-refresh { min-height: 34px; padding: 6px 9px !important; }
  .teacher-students-panel-head { min-height: 68px; padding: 15px 17px; }
  .teacher-students-table th,
  .teacher-students-table td { padding: 14px 15px; }
  .teacher-grade-toolbar { padding: 15px; }
  .work-grade-filters { grid-template-columns: 1fr; }
  .work-grade-toolbar-row {
    flex-direction: column;
    align-items: stretch;
  }
  .work-grade-toolbar-actions {
    margin-left: 0;
    width: 100%;
  }
  .work-grade-action-sep {
    display: none;
  }
  .work-grade-batch-grid { grid-template-columns: 1fr; }
  .work-grade-item { padding: 15px; border-radius: 15px; }
  .work-grade-actions { width: 100%; }
  .work-grade-actions .btn-sm { flex: 1 1 auto; }
}

/* 任务地图：淡紫仙山长卷。仅作用于 #view-dungeon-map。 */
#view-dungeon-map .task-route-map {
  --route-ink: #243567;
  --route-muted: #6f7fab;
  --route-violet: #7854dc;
  --route-panel: rgba(248, 249, 255, .56);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-width: 0;
  border-radius: 0;
  color: var(--route-ink);
  background:
    linear-gradient(180deg, rgba(234, 237, 255, .16), rgba(231, 234, 252, .23)),
    url('./assets/cultivation-path-panorama.png') center / cover no-repeat;
  box-shadow: 0 18px 46px rgba(75, 73, 142, .18);
}
#view-dungeon-map .task-route-map::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(70% 66% at 50% 48%, rgba(255,255,255,.10), transparent 72%);
}
#view-dungeon-map .task-route-top {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px 18px;
  padding: 12px 22px 10px;
  border-color: rgba(255,255,255,.54);
  background: rgba(242, 244, 255, .42);
  backdrop-filter: blur(15px);
}
#view-dungeon-map .task-route-back,
#view-dungeon-map .task-route-forum {
  padding: 5px 0;
  color: #5268ad;
  font-size: 13px;
}
#view-dungeon-map .task-route-back { font-weight: 750; }
#view-dungeon-map .task-route-heading p { color: #6376b2; font-weight: 700; }
#view-dungeon-map .task-route-heading h1 { color: #26386c; font-size: clamp(20px, 1.7vw, 27px); }
#view-dungeon-map .task-route-progress {
  min-width: 122px;
  padding: 8px 13px;
  border-color: rgba(255,255,255,.72);
  border-radius: 15px;
  background: rgba(255,255,255,.34);
  box-shadow: inset 0 1px rgba(255,255,255,.5);
}
#view-dungeon-map .task-route-progress span { color: #6175af; }
#view-dungeon-map .task-route-progress strong { color: #5c49bb; }

#view-dungeon-map .task-route-body {
  grid-template-columns: 270px minmax(0, 1fr);
  position: relative;
  z-index: 1;
}
#view-dungeon-map .task-route-outline {
  padding: 14px 12px;
  border-right-color: rgba(255,255,255,.62);
  background: rgba(238, 241, 255, .35);
  backdrop-filter: blur(13px);
  transition: width .26s ease, padding .26s ease;
}
#view-dungeon-map .task-route-outline > header {
  align-items: center;
  padding: 0 5px 11px;
}
#view-dungeon-map .task-route-outline > header > div { min-width: 0; }
#view-dungeon-map .task-route-outline > header b { color: #354781; }
#view-dungeon-map .task-route-outline > header small { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-route-outline-toggle {
  display: grid;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 9px;
  color: #6274b3;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  place-items: center;
  background: rgba(255,255,255,.42);
}
.task-route-outline-toggle:hover { color: #fff; background: #8060db; }
.task-route-rail-marker { display: none; }
#view-dungeon-map .task-route-outline ul { gap: 8px; padding: 0 2px 4px; }
#view-dungeon-map .task-route-task {
  padding: 11px 9px;
  border-color: rgba(255,255,255,.34);
  background: rgba(255,255,255,.22);
}
#view-dungeon-map .task-route-task:hover:not(:disabled) { background: rgba(255,255,255,.54); }
#view-dungeon-map .task-route-task.is-active {
  border-color: rgba(144,116,241,.44);
  background: linear-gradient(135deg, rgba(242,238,255,.78), rgba(255,255,255,.55));
  box-shadow: 0 8px 18px rgba(84,70,166,.12);
}
#view-dungeon-map .task-route-task-no { color: #775cd1; }
#view-dungeon-map .task-route-task-copy b { color: #34457d; }

#view-dungeon-map .task-route-stage {
  position: relative;
  padding: 10px 18px 7px;
  background: linear-gradient(90deg, rgba(244,246,255,.035), rgba(255,255,255,.02));
}
#view-dungeon-map .task-route-stage-head {
  display: flex;
  flex: 0 0 auto;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 6px 6px;
}
#view-dungeon-map .task-route-stage-head p { margin: 0; color: #3b4e8a; font-size: 14px; font-weight: 800; letter-spacing: .1em; }
#view-dungeon-map .task-route-stage-head span { color: #7182b1; font-size: 11px; }
#view-dungeon-map .task-route-viewport {
  position: relative;
  display: flex;
  flex: 1 1 0%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 18px;
  background: rgba(234,238,255,.075);
  box-shadow: inset 0 1px rgba(255,255,255,.42);
}
#view-dungeon-map .task-route-scroll {
  width: 100%;
  min-height: 0;
  padding: 0 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(119,88,213,.38) transparent;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  touch-action: pan-y;
}
#view-dungeon-map .task-route-scroll.is-dragging { cursor: grabbing; user-select: none; }
#view-dungeon-map .task-route-path {
  --node-count: 3;
  --path-unit: 160px;
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-evenly;
  width: max(min(100%, 1440px), calc(var(--node-count) * var(--path-unit) + 52px));
  min-width: 0;
  min-height: 340px;
  height: 100%;
  margin: 0;
  padding: 0 26px;
}
.task-route-chapter-marker {
  position: relative;
  z-index: 1;
  flex: 0 0 34px;
  width: 34px;
  min-height: 340px;
  pointer-events: none;
}
.task-route-chapter-marker b,
.task-route-chapter-marker i {
  position: absolute;
  left: 4px;
  display: block;
  width: 152px;
  overflow: hidden;
  color: rgba(76, 89, 151, .66);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-route-chapter-marker b { top: 12px; color: rgba(105, 76, 190, .72); letter-spacing: .06em; }
.task-route-chapter-marker i { top: 27px; font-weight: 600; }
.task-route-spine-svg { position: absolute; z-index: 0; inset: 0; overflow: visible; pointer-events: none; }
.task-route-spine-svg .spine-glow { fill: none; stroke: rgba(135,96,240,.22); stroke-width: 13; stroke-linecap: round; }
.task-route-spine-svg .spine-line { fill: none; stroke: #9472ec; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 2px 3px rgba(102,75,205,.23)); }
#view-dungeon-map .task-route-node {
  --dot-y: 52%;
  position: relative;
  z-index: 1;
  display: block;
  flex: 0 0 var(--path-unit);
  width: var(--path-unit);
  min-height: 340px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}
#view-dungeon-map .task-route-node:nth-of-type(4n + 2) { --dot-y: 32%; }
#view-dungeon-map .task-route-node:nth-of-type(4n + 3) { --dot-y: 65%; }
#view-dungeon-map .task-route-node:nth-of-type(4n + 4) { --dot-y: 43%; }
#view-dungeon-map .task-route-node-dot {
  position: absolute;
  z-index: 2;
  top: var(--dot-y);
  left: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  margin: -23px;
  border: 2px solid rgba(133,109,219,.36);
  border-radius: 50%;
  color: #6551c8;
  font-size: 13px;
  background: rgba(250,251,255,.86);
  box-shadow: 0 4px 14px rgba(80,71,151,.15), inset 0 0 0 5px rgba(255,255,255,.46);
  place-items: center;
}
#view-dungeon-map .task-route-node-line { display: none; }
#view-dungeon-map .task-route-node-card {
  position: absolute;
  z-index: 1;
  top: calc(var(--dot-y) - 122px);
  left: 50%;
  width: 160px;
  min-height: 64px;
  box-sizing: border-box;
  padding: 8px 10px;
  transform: translateX(-50%);
  border-color: rgba(255,255,255,.58);
  border-radius: 13px;
  text-align: center;
  background: rgba(251,252,255,.38);
  box-shadow: 0 5px 14px rgba(67,72,142,.075), inset 0 1px rgba(255,255,255,.45);
  backdrop-filter: blur(9px);
}
#view-dungeon-map .task-route-node:nth-of-type(4n + 3) .task-route-node-card,
#view-dungeon-map .task-route-node:nth-of-type(4n + 4) .task-route-node-card { top: calc(var(--dot-y) + 44px); }
#view-dungeon-map .task-route-node:nth-child(even) .task-route-node-card { grid-column: auto; grid-row: auto; justify-self: auto; text-align: center; }
#view-dungeon-map .task-route-node-card em { color: #7861ce; font-size: 10px; }
#view-dungeon-map .task-route-node-card strong { color: #354579; font-size: 13px; }
#view-dungeon-map .task-route-node-card small { color: #7484af; }
#view-dungeon-map .task-route-node:hover:not(:disabled) .task-route-node-card { border-color: rgba(133,102,231,.54); background: rgba(255,255,255,.72); }
#view-dungeon-map .task-route-node.cleared .task-route-node-dot { border-color: #83b5d3; background: linear-gradient(145deg, #9bd5e0, #7889dd); }
#view-dungeon-map .task-route-node.is-current .task-route-node-dot {
  border-color: #9e7df8;
  background: linear-gradient(145deg, #ae8bff, #693ed7);
  box-shadow: 0 0 0 6px rgba(177,145,255,.16), 0 0 0 13px rgba(177,145,255,.08), 0 9px 22px rgba(99,71,196,.27);
}
#view-dungeon-map .task-route-node.locked .task-route-node-dot { background: rgba(233,237,249,.74); }
#view-dungeon-map .task-route-node.is-map-focused .task-route-node-dot {
  outline: 2px solid rgba(111, 78, 215, .5);
  outline-offset: 4px;
}
#view-dungeon-map .task-route-node.is-map-focused .task-route-node-card {
  border-color: rgba(111, 78, 215, .52);
  background: rgba(255,255,255,.74);
  box-shadow: 0 0 0 2px rgba(128, 95, 226, .1), 0 9px 20px rgba(68, 61, 146, .12);
}
#view-dungeon-map .task-route-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
  margin: 8px 6px 0;
  padding: 0;
  color: #7080aa;
  font-size: 10px;
  list-style: none;
}
#view-dungeon-map .task-route-legend li { display: flex; align-items: center; gap: 4px; }
#view-dungeon-map .task-route-legend i { display: inline-block; width: 8px; height: 8px; border: 1px solid transparent; border-radius: 50%; }
#view-dungeon-map .task-route-legend .done { background: #78b9c5; }
#view-dungeon-map .task-route-legend .now { background: #855ee4; box-shadow: 0 0 0 3px rgba(133,94,228,.14); }
#view-dungeon-map .task-route-legend .todo { border-color: #ac9ae9; background: rgba(255,255,255,.7); }
#view-dungeon-map .task-route-legend .lock { background: #d7dcea; }
.task-route-nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 31px;
  height: 31px;
  margin-top: -15px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  color: #5e4dba;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  place-items: center;
  background: rgba(249,250,255,.72);
  box-shadow: 0 5px 14px rgba(74,72,142,.16);
}
.task-route-nav-prev { left: 8px; }
.task-route-nav-next { right: 8px; }
.task-route-nav:disabled { visibility: hidden; }

#view-dungeon-map .task-route-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px 18px;
  min-height: 0;
  padding: 9px 20px;
  border-top: 1px solid rgba(255,255,255,.66);
  border-left: 0;
  background: rgba(242,244,255,.40);
  box-shadow: 0 -8px 28px rgba(91,91,161,.07);
  backdrop-filter: blur(15px);
}
.task-route-focus-summary { min-width: 0; display: flex; align-items: center; gap: 10px; }
#view-dungeon-map .task-route-focus em { flex: 0 0 auto; margin: 0; color: #7054cc; background: rgba(130,98,218,.12); }
#view-dungeon-map .task-route-focus strong { overflow: hidden; margin: 0; color: #2d3c70; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.task-route-focus-state { overflow: hidden; color: #7483ab; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.task-route-focus-toggle { border: 0; padding: 7px 4px; color: #6173ac; font: inherit; font-size: 12px; cursor: pointer; background: transparent; }
.task-route-focus-toggle:hover { color: #694bc8; }
#view-dungeon-map .task-route-focus-details { display: none; grid-column: 1 / -1; }
#view-dungeon-map .task-route-focus-details p { max-width: 76ch; margin: 0; color: #66769f; font-size: 12px; line-height: 1.6; }
#view-dungeon-map .task-route-map.is-focus-expanded .task-route-focus-details { display: block; }
#view-dungeon-map .task-route-go { width: auto; min-width: 156px; margin: 0; padding: 9px 18px; border-radius: 13px; background: linear-gradient(135deg, #8a65e9, #6443cb); }
#view-dungeon-map .task-route-next,
#view-dungeon-map #kp-finale-go { display: none !important; }

#view-dungeon-map .task-route-map.is-outline-collapsed .task-route-body { grid-template-columns: 54px minmax(0, 1fr); }
#view-dungeon-map .task-route-map.is-outline-collapsed .task-route-outline { padding-right: 7px; padding-left: 7px; }
#view-dungeon-map .task-route-map.is-outline-collapsed .task-route-outline > header { justify-content: center; padding-right: 0; padding-left: 0; }
#view-dungeon-map .task-route-map.is-outline-collapsed .task-route-outline > header > div { display: flex; flex-direction: column; align-items: center; }
#view-dungeon-map .task-route-map.is-outline-collapsed .task-route-outline b,
#view-dungeon-map .task-route-map.is-outline-collapsed .task-route-outline small,
#view-dungeon-map .task-route-map.is-outline-collapsed .task-route-outline ul { display: none; }
#view-dungeon-map .task-route-map.is-outline-collapsed .task-route-rail-marker { display: block; margin-bottom: 8px; color: #765bd1; font-size: 11px; font-weight: 800; }

@media (max-width: 920px) {
  #view-dungeon-map .task-route-top { grid-template-columns: auto minmax(0, 1fr) auto; }
  #view-dungeon-map .task-route-progress { grid-column: 3; }
  #view-dungeon-map .task-route-body { grid-template-columns: 210px minmax(0, 1fr); }
  #view-dungeon-map .task-route-map.is-outline-collapsed .task-route-body { grid-template-columns: 54px minmax(0, 1fr); }
  #view-dungeon-map .task-route-focus-state { display: none; }
}
