/* 作用：教师使用端的整体布局、表单、报告和响应式样式。 */
:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --surface-soft: #f1f6f6;
  --surface-strong: #e7f1f0;
  --text: #162525;
  --muted: #637576;
  --subtle: #8da0a1;
  --line: #d9e3e3;
  --line-soft: #edf2f2;
  --teal: #11635f;
  --teal-strong: #0a4b48;
  --teal-soft: #dcefed;
  --amber: #c47b1d;
  --amber-soft: #fff4df;
  --green: #21805b;
  --green-soft: #e4f5ed;
  --red: #b94a48;
  --red-soft: #fff0ef;
  --blue: #2f6b9a;
  --blue-soft: #e8f2fb;
  --shadow: 0 18px 50px rgba(28, 60, 58, 0.09);
  --shadow-soft: 0 10px 28px rgba(28, 60, 58, 0.07);
  --radius: 8px;
  --radius-sm: 6px;
  --sidebar: 268px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

html,
body,
#app {
  /* 用 clip 而非 hidden：clip 不会创建滚动容器，因此不会破坏内部 position: sticky（侧栏/报告大纲） */
  overflow-x: clip;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

button,
.clickable {
  cursor: pointer;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #fbfdfd;
  padding: 22px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-bottom: 22px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: var(--radius);
  background: linear-gradient(140deg, #0b5753, #1e8179);
  box-shadow: 0 12px 30px rgba(17, 99, 95, 0.24);
}

.brand-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 760;
}

.brand-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #456162;
  border-radius: var(--radius-sm);
  background: transparent;
  padding: 0 12px;
  font-size: 14px;
  text-align: left;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}

.nav-button svg {
  flex: 0 0 auto;
}

.nav-button:hover {
  background: var(--surface-soft);
  color: var(--teal);
}

.nav-button.active {
  color: var(--teal-strong);
  background: var(--teal-soft);
  font-weight: 680;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.quota-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
}

.quota-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.quota-value {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.quota-value strong {
  font-size: 24px;
  line-height: 1;
}

.progress-bar {
  overflow: hidden;
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--line-soft);
}

.progress-fill {
  height: 100%;
  width: var(--value, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #35a392);
  transition: width 0.25s ease;
}

.mini-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 249, 251, 0.92);
  backdrop-filter: blur(12px);
  padding: 0 28px;
}

.topbar-left {
  min-width: 0;
}

.page-kicker {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.page-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
  font-weight: 760;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.teacher-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 12px;
  font-size: 13px;
}

.avatar {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: #2d6f6b;
  font-size: 12px;
  font-weight: 720;
}

.content {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px 28px 40px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(330px, 0.8fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.dashboard-grid > *,
.split-layout > *,
.report-layout > * {
  min-width: 0;
}

.section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.section.flat {
  box-shadow: none;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-soft);
  padding: 18px 18px 15px;
}

.section-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 760;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.section-desc {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.section-body {
  padding: 18px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  border: 1px solid #cfe0df;
  border-radius: var(--radius);
  background:
    linear-gradient(110deg, rgba(17, 99, 95, 0.98), rgba(22, 103, 91, 0.92)),
    radial-gradient(circle at 86% 28%, rgba(255, 255, 255, 0.22), transparent 34%);
  box-shadow: var(--shadow);
  padding: 28px;
  color: white;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: 30px;
  bottom: -42px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  min-width: 0;
}

.hero-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.18;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-copy {
  max-width: 650px;
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.workbench-hero {
  min-height: 178px;
  display: flex;
  align-items: center;
}

.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0 14px;
  color: var(--text);
  background: var(--surface);
  font-size: 13px;
  font-weight: 680;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(19, 47, 45, 0.11);
}

.button.primary {
  color: white;
  background: var(--teal);
}

.button.primary:hover {
  background: var(--teal-strong);
}

.button.secondary {
  color: var(--teal);
  border-color: #cbdcdb;
  background: var(--surface);
}

.button.ghost {
  color: var(--muted);
  border-color: var(--line);
  background: transparent;
}

.button.white {
  color: var(--teal-strong);
  background: #ffffff;
}

.button.outline-white {
  color: white;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.button.icon-only {
  width: 38px;
  padding: 0;
}

.full-button {
  width: 100%;
}

.quick-run {
  display: grid;
  gap: 14px;
}

.selection-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 230px);
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfd;
  padding: 14px;
}

.compact-select {
  min-width: 0;
}

.button-line,
.report-mini-meta,
.quota-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.button-line {
  margin-top: -4px;
}

.quota-line {
  justify-content: space-between;
  color: var(--muted);
  border-radius: var(--radius-sm);
  background: #f5f8f8;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
}

.current-class-card,
.lesson-action-box,
.inline-progress {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 18px;
}

.current-class-card {
  display: grid;
  gap: 16px;
}

.lesson-action-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.paste-textarea {
  min-height: 160px;
}

.inline-progress {
  display: grid;
  gap: 10px;
  background: #f7fbfa;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.button.danger {
  color: var(--red);
  background: var(--red-soft);
}

.button.danger:hover {
  color: #8f2f2d;
}

.muted-line {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.report-mini-meta {
  margin-top: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 15px;
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.stat-value {
  margin-top: 10px;
  font-size: 26px;
  line-height: 1;
  font-weight: 780;
}

.stat-trend {
  margin-top: 8px;
  color: var(--subtle);
  font-size: 12px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.class-card {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
  min-height: 192px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 15px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.class-card:hover,
.class-card.selected {
  border-color: #9fc8c5;
  box-shadow: 0 14px 34px rgba(17, 99, 95, 0.12);
  transform: translateY(-1px);
}

.class-card.selected {
  background: linear-gradient(180deg, #ffffff, #f3fbfa);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.card-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 760;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  color: var(--teal);
  background: var(--teal-soft);
  font-size: 12px;
  font-weight: 680;
  white-space: nowrap;
}

.tag.amber {
  color: var(--amber);
  background: var(--amber-soft);
}

.tag.green {
  color: var(--green);
  background: var(--green-soft);
}

.tag.red {
  color: var(--red);
  background: var(--red-soft);
}

.tag.blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.metric-list {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.metric-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
}

.mini-track {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: var(--line-soft);
}

.mini-track span {
  display: block;
  height: 100%;
  width: var(--value);
  border-radius: inherit;
  background: var(--teal);
}

.mini-track.amber span {
  background: var(--amber);
}

.mini-track.green span {
  background: var(--green);
}

.summary-panel {
  display: grid;
  gap: 16px;
}

.class-summary-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.summary-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: var(--radius);
  background: var(--teal);
}

.summary-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 780;
}

.summary-meta {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.distribution {
  display: grid;
  grid-template-columns: var(--advanced) var(--middle) var(--struggling);
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: var(--line-soft);
}

.distribution span:nth-child(1) {
  background: #2c8c72;
}

.distribution span:nth-child(2) {
  background: #83b9b0;
}

.distribution span:nth-child(3) {
  background: #e0a04c;
}

.summary-list {
  display: grid;
  gap: 10px;
}

.summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 10px;
}

.summary-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.summary-label {
  color: var(--muted);
  font-size: 12px;
}

.summary-value {
  max-width: 62%;
  text-align: right;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
}

.timeline-dot {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--teal);
  border: 1px solid #b9d6d3;
  border-radius: 50%;
  background: var(--teal-soft);
}

.timeline-title {
  margin: 0;
  font-size: 13px;
  font-weight: 720;
}

.timeline-copy {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.table-wrap {
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.data-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.data-table td {
  color: var(--text);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0 12px;
  color: var(--text);
  outline: none;
  font-size: 14px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.textarea {
  min-height: 180px;
  padding: 12px;
  resize: vertical;
  line-height: 1.65;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: #80b9b5;
  box-shadow: 0 0 0 3px rgba(17, 99, 95, 0.12);
}

.slider-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.range {
  width: 100%;
  accent-color: var(--teal);
}

.distribution-note {
  border-radius: var(--radius-sm);
  background: #f2fbfa;
  padding: 10px 12px;
  color: #476464;
  font-size: 12px;
  line-height: 1.55;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edit-segments {
  margin-bottom: 16px;
}

.segment {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.segment.active {
  color: var(--teal);
  border-color: #a7cecb;
  background: var(--teal-soft);
  font-weight: 680;
}

/* 虚拟班级页：左侧实时画像预览 + 右侧编辑表单的平衡布局 */
.classes-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
}

.classes-preview {
  position: sticky;
  top: 16px;
}

.preview-body {
  display: grid;
  gap: 18px;
}

.preview-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-block {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}

.preview-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.preview-mini {
  color: var(--subtle);
  font-size: 12px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 2px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.legend-item i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.trait-list {
  gap: 11px;
}

.trait-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.trait-row strong {
  text-align: right;
  color: var(--text);
  font-weight: 680;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-foot {
  gap: 14px;
}

.preview-summary {
  margin: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 11px 13px;
  color: #44605f;
  font-size: 13px;
  line-height: 1.6;
}

/* 工作台 / 我的：主区 + 侧栏布局，侧栏桌面端 sticky */
.dash-side {
  position: sticky;
  top: 16px;
}

.account-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.avatar.lg {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  font-size: 18px;
}

.account-name {
  font-size: 15px;
  font-weight: 740;
}

.account-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.short-textarea {
  min-height: 92px;
}

.upload-box {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed #a9c7c5;
  border-radius: var(--radius);
  background: #f9fcfc;
  padding: 20px;
  text-align: center;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

.upload-box.dragging {
  border-color: var(--teal);
  background: #effbfa;
}

.upload-box svg {
  color: var(--teal);
}

.upload-title {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 760;
}

.upload-copy {
  max-width: 460px;
  margin: 7px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.hidden-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.file-preview {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid #b9d6d3;
  border-radius: var(--radius);
  background: #f4fbfa;
  padding: 12px;
  text-align: left;
}

.file-preview-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--teal);
  border-radius: var(--radius-sm);
  background: var(--teal-soft);
}

.file-preview strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-preview p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.wizard {
  display: grid;
  gap: 14px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.choice {
  width: 100%;
  min-width: 0;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
  text-align: left;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.choice.active {
  border-color: #92c4c0;
  background: #f2fbfa;
  box-shadow: 0 14px 32px rgba(17, 99, 95, 0.1);
}

.choice-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 760;
}

.choice-copy {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.run-progress {
  display: grid;
  gap: 20px;
  text-align: center;
  padding: 38px 20px;
}

.pulse-ring {
  position: relative;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  color: white;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 14px rgba(17, 99, 95, 0.08);
}

.pulse-ring::before,
.pulse-ring::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(17, 99, 95, 0.22);
  border-radius: 50%;
  animation: pulse 1.9s infinite;
}

.pulse-ring::after {
  animation-delay: 0.7s;
}

@keyframes pulse {
  0% {
    transform: scale(0.86);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

.progress-title {
  margin: 0;
  font-size: 22px;
  font-weight: 780;
}

.progress-copy {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.step-list {
  display: grid;
  gap: 10px;
  max-width: 620px;
  margin: 0 auto;
}

.step-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
  text-align: left;
}

.step-state {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.step-row.done .step-state {
  color: var(--green);
}

.step-row.active {
  border-color: #97c8c4;
  background: #f4fbfa;
}

.report-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.report-nav {
  position: sticky;
  top: 92px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 20px 18px;
}

.report-nav-items {
  display: grid;
  gap: 6px;
}

.report-nav-items button {
  position: relative;
  min-height: 40px;
  display: flex;
  align-items: center;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  padding: 6px 12px 6px 26px;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.5;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease;
}

.report-nav-items button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 每个目录项前的小圆点（无竖线） */
.report-nav-items button::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.report-nav-items button:hover {
  color: var(--teal);
  background: var(--surface-soft);
}

.report-nav-items button.active {
  color: var(--teal-strong);
  background: var(--teal-soft);
  font-weight: 700;
}

.report-nav-items button.active::before {
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(17, 99, 95, 0.16);
}

.report-doc {
  display: grid;
  gap: 16px;
}

.report-block {
  scroll-margin-top: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.report-heading {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 780;
}

.report-p {
  margin: 10px 0 0;
  color: #3d5051;
  font-size: 14px;
  line-height: 1.8;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.score-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfd;
  padding: 12px;
}

.score-card strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.score-card span {
  color: var(--muted);
  font-size: 12px;
}

.risk-list,
.suggestion-list,
.fragment-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.risk-item,
.suggestion-item,
.fragment-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfd;
  padding: 14px;
}

.risk-item.high {
  border-color: #f0c4b8;
  background: #fff8f6;
}

.risk-title,
.suggestion-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 760;
}

.risk-copy,
.suggestion-copy {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.stage-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.stage-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfd;
  padding: 14px;
}

.stage-name {
  font-size: 14px;
  font-weight: 760;
}

.stage-time {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.stage-copy {
  margin: 0;
  color: #3e5657;
  font-size: 13px;
  line-height: 1.7;
}

.student-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.student-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfd;
  padding: 14px;
}

.group-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.group-title {
  margin: 0;
  font-size: 14px;
  font-weight: 760;
}

.group-copy {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.modern-report {
  grid-template-columns: 236px minmax(0, 1fr) 320px;
}

.report-hero-block {
  overflow: hidden;
  border: 1px solid #b7d8d4;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(12, 75, 72, 0.98), rgba(23, 108, 96, 0.92)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
  box-shadow: var(--shadow);
  padding: 28px;
  color: white;
}

.report-hero-block .hero-title {
  font-size: clamp(24px, 2.6vw, 34px);
}

.report-hero-block .hero-copy {
  max-width: 780px;
}

.module-card-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.module-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfd;
  padding: 15px;
}

.module-card.emphasized {
  border-color: #d8b679;
  background: #fffaf0;
}

.field-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(116px, 0.36fr) minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  padding-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.field-row strong {
  color: #344e4e;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.module-bullets {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: #3d5555;
  font-size: 13px;
  line-height: 1.6;
}

.timeline-report {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.timeline-report::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 13px;
  width: 2px;
  background: #c5dedd;
}

.timeline-node {
  position: relative;
  margin-left: 28px;
}

.timeline-node::before {
  content: "";
  position: absolute;
  top: 17px;
  left: -23px;
  width: 11px;
  height: 11px;
  border: 3px solid #e9f5f4;
  border-radius: 50%;
  background: var(--teal);
}

.locked-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.locked-card {
  min-width: 0;
  border: 1px dashed #c5d6d5;
  border-radius: var(--radius);
  background: #f8fbfb;
  padding: 15px;
}

.fragment-item pre {
  overflow: auto;
  margin: 10px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f6faf9;
  padding: 12px;
  color: #294344;
  white-space: pre-wrap;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.7;
}

.right-rail {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.rail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.rail-title {
  margin: 0;
  font-size: 14px;
  font-weight: 760;
}

.rail-actions {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 360px;
  border: 1px solid #b7d8d4;
  border-radius: var(--radius);
  background: #f5fffd;
  box-shadow: var(--shadow);
  padding: 13px 14px;
  color: var(--teal-strong);
  font-size: 13px;
  line-height: 1.5;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: rgba(13, 28, 29, 0.38);
  padding: 20px;
}

.modal {
  width: min(720px, 100%);
  max-height: min(780px, 92vh);
  overflow: auto;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line-soft);
  padding: 18px;
}

.modal-body {
  padding: 18px;
}

.modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 780;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
  padding: 16px 18px;
}

.membership-entry {
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.membership-entry:hover {
  border-color: #a9cfcc;
  box-shadow: 0 14px 34px rgba(17, 99, 95, 0.1);
  transform: translateY(-1px);
}

.membership-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.membership-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.membership-name {
  color: var(--text);
  font-size: 16px;
  font-weight: 760;
}

.chevron {
  color: var(--subtle);
  font-size: 34px;
  line-height: 1;
}

.membership-sheet {
  width: min(760px, 100%);
  max-height: min(820px, 92vh);
  overflow: auto;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.current-member {
  margin: 18px;
  border: 1px solid #b8d9d5;
  border-radius: var(--radius);
  background: #f2fbfa;
  padding: 16px;
}

.benefit-list {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.benefit-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfd;
  padding: 15px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 230px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fbfdfd;
  text-align: center;
  padding: 24px;
}

.empty-state svg {
  color: var(--teal);
}

.empty-state h3 {
  margin: 12px 0 0;
  font-size: 16px;
}

.empty-state p {
  max-width: 420px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.mobile-menu {
  display: none;
}

.mobile-floating-actions {
  display: none;
}

.mobile-floating-actions.is-visible {
  position: fixed;
  top: 17px;
  right: 16px;
  z-index: 100;
  display: flex;
  gap: 8px;
}

.mobile-floating-actions.is-visible .button {
  width: 40px;
  min-width: 40px;
  padding: 0;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(23, 56, 55, 0.12);
}

.mobile-floating-actions.is-visible .button[data-view="simulate"] {
  font-size: 0;
}

.mobile-floating-actions.is-visible .button svg {
  margin: 0;
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .dashboard-grid,
  .split-layout,
  .report-layout {
    grid-template-columns: 1fr;
  }

  .report-nav,
  .right-rail,
  .classes-preview,
  .dash-side {
    position: static;
  }

  .report-nav {
    max-height: none;
  }

  .report-nav-items {
    display: flex;
    overflow: auto;
    padding-bottom: 3px;
  }

  /* 横向排列时隐藏节点圆点 */
  .report-nav-items button::before {
    display: none;
  }

  .report-nav-items button {
    white-space: nowrap;
    flex: 0 0 auto;
    padding-left: 12px;
  }

  .stats-grid,
  .score-grid,
  .locked-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: min(86vw, 310px);
    transform: translateX(-102%);
    transition: transform 0.22s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-menu {
    display: inline-flex;
    position: fixed;
    top: 17px;
    right: 16px;
    z-index: 90;
    background: var(--surface);
  }

  .topbar {
    padding: 0 16px;
  }

  .main,
  .topbar,
  .content {
    width: 100vw;
    max-width: 100vw;
  }

  .main {
    overflow-x: hidden;
  }

  .content {
    padding: 18px 16px 34px;
  }

  .topbar-actions .teacher-chip {
    display: none;
  }

  .topbar-actions {
    display: flex;
  }

  .topbar-actions > .button.secondary[data-view="dashboard"] {
    display: none;
  }

  .mobile-floating-actions {
    position: fixed;
    top: 17px;
    right: 16px;
    z-index: 100;
    display: flex;
    gap: 8px;
  }

  .mobile-floating-actions .button {
    width: 40px;
    min-width: 40px;
    padding: 0;
    background: var(--surface);
    box-shadow: 0 8px 22px rgba(23, 56, 55, 0.12);
  }

  .mobile-floating-actions .button[data-view="simulate"] {
    font-size: 0;
  }

  .mobile-floating-actions .button svg {
    margin: 0;
  }

  .card-grid,
  .choice-grid,
  .student-groups,
  .locked-grid {
    grid-template-columns: 1fr;
  }

  .class-card,
  .choice,
  .risk-item,
  .suggestion-item,
  .student-group,
  .fragment-item {
    max-width: calc(100vw - 32px);
  }

  .metric-row {
    grid-template-columns: 58px minmax(0, 1fr) 38px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .selection-row {
    grid-template-columns: 1fr;
  }

  .lesson-action-box {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .topbar-left {
    min-width: 0;
  }

  .page-title,
  .page-kicker {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-actions {
    justify-self: end;
    flex: 0 0 auto;
  }

  .topbar .button.secondary[data-view="simulate"] {
    position: fixed;
    top: 17px;
    right: 62px;
    z-index: 90;
    width: 40px;
    min-width: 40px;
    padding: 0;
    font-size: 0;
  }

  .topbar .button.secondary[data-view="simulate"] svg {
    margin: 0;
  }

  .stats-grid,
  .score-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 22px;
    max-width: calc(100vw - 32px);
  }

  .hero-title {
    word-break: break-all;
  }

  .section-header {
    flex-direction: column;
  }

  .stage-item {
    grid-template-columns: 1fr;
  }

  .step-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .step-state {
    grid-column: 2;
    text-align: left;
  }
}

/* ===== 登录 / 注册弹窗 ===== */
.auth-sheet {
  position: relative;
  width: min(420px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 16px;
  background: var(--surface);
  padding: 30px 28px 26px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.26);
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.auth-close:hover {
  background: var(--surface-strong);
  color: var(--text);
}

.auth-head {
  text-align: center;
  margin-bottom: 20px;
}

.auth-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-strong));
  box-shadow: 0 12px 26px rgba(17, 99, 95, 0.28);
}

.auth-title {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
}

.auth-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 4px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: var(--surface-soft);
}

.auth-tabs .segment {
  min-height: 38px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
}

.auth-tabs .segment.active {
  background: var(--surface);
  color: var(--teal-strong);
  box-shadow: 0 2px 8px rgba(17, 99, 95, 0.12);
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field .input {
  min-height: 44px;
}

.auth-submit {
  min-height: 46px;
  font-size: 14px;
}

.auth-switch {
  margin: 16px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.auth-link {
  border: none;
  background: none;
  padding: 0 0 0 4px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.auth-link:hover {
  text-decoration: underline;
}

/* ===== 我的虚拟班级 卡片 ===== */
.class-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.class-card {
  position: relative;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.class-card:hover {
  border-color: #a9cfcc;
  box-shadow: 0 14px 30px rgba(17, 99, 95, 0.1);
  transform: translateY(-1px);
}

.class-card.active {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(17, 99, 95, 0.14);
  background: var(--teal-soft);
}

.class-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.class-card-name {
  margin: 0;
  font-size: 15px;
  font-weight: 740;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.class-card-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.distribution.mini {
  height: 8px;
}

.class-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.class-card-tip {
  color: var(--subtle);
  font-size: 11.5px;
}

.class-card-del {
  width: 28px;
  height: 28px;
  min-height: 28px;
  flex: none;
}

/* ===== 个人中心 数据统计 ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 14px 16px;
}

.stat-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  color: var(--teal);
  background: var(--teal-soft);
}

.stat-num {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}

.stat-label {
  color: var(--muted);
  font-size: 12.5px;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.chart-box {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
}

.chart-title {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
  height: 132px;
}

.bar-col {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 6px;
  height: 100%;
  text-align: center;
}

.bar-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
}

.bar {
  position: relative;
  width: 72%;
  min-height: 4px;
  height: max(4px, var(--h));
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--teal), #3f9c8f);
  transition: height 0.25s ease;
}

.bar-val {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-strong);
}

.bar-x {
  color: var(--subtle);
  font-size: 11px;
}

.hbar-list {
  display: grid;
  gap: 12px;
}

.hbar-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.hbar-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hbar-track {
  height: 9px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}

.hbar-track span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), #3f9c8f);
}

.hbar-row strong {
  color: var(--text);
  text-align: right;
}

/* ===== 更易拖拽的滑块 ===== */
.range {
  height: 22px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-strong);
}

.range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-strong);
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(17, 99, 95, 0.35);
  cursor: grab;
}

.range::-webkit-slider-thumb:active {
  cursor: grabbing;
}

.range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(17, 99, 95, 0.35);
  cursor: grab;
}

@media (max-width: 720px) {
  .auth-sheet {
    padding: 26px 20px 22px;
  }

  .class-gallery {
    grid-template-columns: 1fr;
  }

  .bar-chart {
    height: 110px;
  }
}

/* ===== 侧边栏：固定底部 + 可折叠 ===== */
.sidebar {
  align-self: start;
  overflow-y: auto;
}

.nav-collapse {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.nav-collapse:hover {
  background: var(--surface-soft);
  color: var(--teal);
}

@media (min-width: 861px) {
  .app-shell.nav-collapsed {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .nav-collapsed .brand-text,
  .nav-collapsed .nav-button span,
  .nav-collapsed .nav-collapse span,
  .nav-collapsed .sidebar-footer {
    display: none;
  }

  .nav-collapsed .brand {
    justify-content: center;
  }

  .nav-collapsed .nav-button,
  .nav-collapsed .nav-collapse {
    justify-content: center;
    padding: 0;
  }
}

/* ===== 删除就地确认 ===== */
.confirm-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.confirm-q {
  color: var(--red);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.button.sm {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.class-card-foot {
  flex-wrap: wrap;
}

/* ===== 报告大纲目录 ===== */
.report-nav-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0 6px 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--subtle);
  font-size: 12px;
  font-weight: 700;
}

/* ===== 工作台 · 班级快速切换卡片 ===== */
.class-switch {
  margin-bottom: 14px;
}

.class-switch .label {
  margin-bottom: 8px;
}

.class-switch-list {
  display: grid;
  gap: 8px;
}

.class-switch-card {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.class-switch-card:hover {
  border-color: #a9cfcc;
  box-shadow: 0 8px 20px rgba(17, 99, 95, 0.08);
}

.class-switch-card.active {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.class-switch-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.class-switch-meta {
  color: var(--muted);
  font-size: 11.5px;
}

/* ===== 表格里的小图标操作（使用/查看/下载/删除，悬浮显示名称） ===== */
.icon-actions {
  gap: 6px;
}

.icon-actions .button.icon-only {
  width: 32px;
  height: 32px;
  min-height: 32px;
}

.icon-actions .button.ghost {
  color: var(--muted);
}

.icon-actions .button.ghost:hover {
  color: var(--teal);
  border-color: #cbdcdb;
}
