/* ============================================================
   爱教学 v3 — 工作台式设计系统
   - 三套主题色（角色色）：督导紫 / 教务蓝 / 教师绿
   - 双主题（默认浅色，深色可切换）
   - 工作台布局：顶栏 + 左侧导航 + 主区 + 全局浮层
   - 现代组件：按钮 / 卡片 / 表单 / 表格 / 标签 / 抽屉 / 模态
   ============================================================ */

/* ============== 主题变量 ============== */
:root {
  /* 中性色 */
  --bg-app:        #f5f6fa;
  --bg-surface:    #ffffff;
  --bg-elevated:   #ffffff;
  --bg-muted:      #f0f2f8;
  --bg-hover:      #e9ebf4;
  --bg-active:     #e3e6f1;
  --bg-overlay:    rgba(15, 18, 36, 0.5);

  --fg-primary:    #1c1f33;
  --fg-secondary:  #4a5067;
  --fg-muted:      #8b91a7;
  --fg-subtle:     #b1b6c6;
  --fg-onaccent:   #ffffff;

  --border:        #e3e6ee;
  --border-strong: #c8cdda;
  --divider:       #eef0f5;
  --focus-ring:    rgba(108, 92, 231, 0.20);

  --accent:        #6c5ce7;
  --accent-2:      #8b7dff;
  --accent-soft:   #ece8ff;
  --accent-hover:  #5d4dd6;

  --orange:        #ff7a59;
  --orange-soft:   #ffece4;
  --teal:          #1ab3a3;
  --teal-soft:     #e3f7f4;
  --rose:          #e0486a;
  --rose-soft:     #fde5eb;
  --amber:         #f4a72e;
  --amber-soft:    #fff3d6;
  --green:         #15a36b;
  --green-soft:    #e1f5ea;
  --blue:          #3490f0;
  --blue-soft:     #e1eefb;

  --grad-primary:  linear-gradient(135deg, #6c5ce7 0%, #8b7dff 100%);
  --grad-warm:     linear-gradient(135deg, #ff7a59 0%, #ffb37c 100%);
  --grad-cool:     linear-gradient(135deg, #1ab3a3 0%, #2bd0c0 100%);
  --grad-blue:     linear-gradient(135deg, #3490f0 0%, #62b1f8 100%);

  --radius-xs:     4px;
  --radius-sm:     8px;
  --radius:        12px;
  --radius-lg:     16px;
  --radius-xl:     20px;
  --radius-pill:   999px;

  --shadow-xs:     0 1px 2px rgba(20, 24, 50, 0.04);
  --shadow-sm:     0 2px 8px rgba(20, 24, 50, 0.05), 0 1px 2px rgba(20, 24, 50, 0.04);
  --shadow:        0 6px 20px rgba(20, 24, 50, 0.08), 0 2px 4px rgba(20, 24, 50, 0.04);
  --shadow-lg:     0 18px 40px rgba(20, 24, 50, 0.12), 0 6px 12px rgba(20, 24, 50, 0.06);

  --topbar-h:      60px;
  --sidebar-w:     220px;
  --content-max:   1400px;

  --t-fast:        120ms cubic-bezier(.4,.2,.2,1);
  --t-base:        220ms cubic-bezier(.4,.2,.2,1);
  --t-slow:        360ms cubic-bezier(.4,.2,.2,1);

  --role-accent:        var(--accent);
  --role-accent-2:      var(--accent-2);
  --role-accent-soft:   var(--accent-soft);
  --role-grad:          var(--grad-primary);
}

[data-role="supervisor"] {
  --role-accent:        #6c5ce7;
  --role-accent-2:      #8b7dff;
  --role-accent-soft:   #ece8ff;
  --role-grad:          linear-gradient(135deg, #6c5ce7 0%, #8b7dff 100%);
}
[data-role="academic_affairs"] {
  --role-accent:        #3490f0;
  --role-accent-2:      #62b1f8;
  --role-accent-soft:   #e1eefb;
  --role-grad:          linear-gradient(135deg, #3490f0 0%, #62b1f8 100%);
}
[data-role="teacher"] {
  --role-accent:        #15a36b;
  --role-accent-2:      #3cc98c;
  --role-accent-soft:   #e1f5ea;
  --role-grad:          linear-gradient(135deg, #15a36b 0%, #3cc98c 100%);
}

[data-theme="dark"] {
  --bg-app:        #0f1220;
  --bg-surface:    #181c2f;
  --bg-elevated:   #1f243a;
  --bg-muted:      #232838;
  --bg-hover:      #2a3045;
  --bg-active:     #323853;
  --bg-overlay:    rgba(0, 0, 0, 0.6);

  --fg-primary:    #ebecf3;
  --fg-secondary:  #b6bbcd;
  --fg-muted:      #7d8294;
  --fg-subtle:     #595d75;
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --divider:       rgba(255,255,255,0.06);
  --focus-ring:    rgba(139, 125, 255, 0.30);

  --accent:        #8b7dff;
  --accent-2:      #a99cff;
  --accent-soft:   #2a2660;
  --accent-hover:  #9b8eff;

  --orange-soft:   #4a2516;
  --teal-soft:     #103633;
  --rose-soft:     #3d1424;
  --amber-soft:    #42310e;
  --green-soft:    #11301f;
  --blue-soft:     #0f2742;

  --shadow-xs:     0 1px 2px rgba(0,0,0,.25);
  --shadow-sm:     0 2px 6px rgba(0,0,0,.30);
  --shadow:        0 6px 18px rgba(0,0,0,.40), 0 2px 4px rgba(0,0,0,.20);
  --shadow-lg:     0 18px 40px rgba(0,0,0,.50), 0 6px 12px rgba(0,0,0,.30);
}

/* ============== 基础 ============== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-primary);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  transition: background var(--t-base), color var(--t-base);
}
a { color: var(--role-accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--role-accent-2); }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ============== Shell ============== */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.body { flex: 1; display: flex; min-height: 0; }

/* ============== Topbar ============== */
.topbar {
  height: var(--topbar-h);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 22px;
  gap: 18px;
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--role-grad);
  color: white;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.32);
  transition: background var(--t-base);
}
.brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.brand-sub {
  font-size: 11.5px;
  color: var(--fg-muted);
  margin-top: 1px;
}

.topbar-modules { flex: 1; display: flex; gap: 4px; flex-wrap: wrap; margin-left: 8px; }
.topbar-tools { display: flex; align-items: center; gap: 12px; }

.role-switcher {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 4px 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-surface);
}
.role-switcher-label {
  font-size: 11px;
  color: var(--fg-muted);
  white-space: nowrap;
}
.role-select {
  appearance: none;
  border: none;
  background: var(--bg-muted);
  padding: 6px 28px 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-primary);
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--fg-muted) 50%),
    linear-gradient(135deg, var(--fg-muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.role-select:focus { outline: none; box-shadow: 0 0 0 3px var(--focus-ring); }

.icon-btn {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg-secondary);
  transition: all var(--t-fast);
}
.icon-btn:hover {
  background: var(--bg-muted);
  color: var(--fg-primary);
  border-color: var(--border-strong);
}

.status-pill {
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--fg-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.status-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fg-muted);
}
.status-pill.mock { background: var(--amber-soft); color: var(--amber); }
.status-pill.mock::before { background: var(--amber); animation: pulse 1.6s infinite; }
.status-pill.real { background: var(--green-soft); color: var(--green); }
.status-pill.real::before { background: var(--green); }
.status-pill.error { background: var(--rose-soft); color: var(--rose); }
.status-pill.error::before { background: var(--rose); }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============== Sidebar ============== */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  padding: 18px 12px;
  overflow-y: auto;
  flex-shrink: 0;
}
.sidebar-group { margin-bottom: 18px; }
.sidebar-group-title {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--fg-subtle);
  padding: 0 10px;
  margin-bottom: 8px;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--fg-secondary);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t-fast);
  margin-bottom: 2px;
}
.sidebar-item:hover { background: var(--bg-muted); color: var(--fg-primary); }
.sidebar-item.active {
  background: var(--role-accent-soft);
  color: var(--role-accent);
  font-weight: 600;
}
.sidebar-item .item-icon { font-size: 16px; line-height: 1; }
.sidebar-item .item-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--rose-soft);
  color: var(--rose);
}

/* ============== View ============== */
.view {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px 80px;
  background: var(--bg-app);
}
.view-inner { max-width: var(--content-max); margin: 0 auto; }

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.page-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-sub {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 2px;
  max-width: 760px;
  line-height: 1.65;
}

/* ============== 按钮 ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--bg-muted);
  color: var(--fg-primary);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { background: var(--bg-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn.primary {
  background: var(--role-grad);
  color: var(--fg-onaccent);
  border-color: transparent;
}
.btn.primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 14px rgba(108, 92, 231, 0.32);
}
.btn.outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--fg-secondary);
}
.btn.outline:hover {
  background: var(--bg-muted);
  color: var(--fg-primary);
  border-color: var(--fg-muted);
}
.btn.ghost { background: transparent; color: var(--fg-secondary); }
.btn.ghost:hover { background: var(--bg-muted); color: var(--fg-primary); }
.btn.danger { background: var(--rose); color: white; }
.btn.danger:hover { background: #c83a59; }
.btn.success { background: var(--green); color: white; }
.btn.warn { background: var(--amber); color: white; }
.btn.sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn.lg { padding: 12px 22px; font-size: 14px; border-radius: 12px; }
.btn .btn-icon { font-size: 14px; }

.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* ============== 卡片 ============== */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t-base);
}
.card:hover { box-shadow: var(--shadow-sm); }
.card-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-sub {
  font-size: 12.5px;
  color: var(--fg-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}

/* KPI / Stat */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all var(--t-fast);
}
.stat-card:hover {
  border-color: var(--role-accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.stat-label {
  font-size: 11.5px;
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.stat-value { font-size: 26px; font-weight: 700; color: var(--fg-primary); line-height: 1.1; }
.stat-meta { font-size: 11.5px; color: var(--fg-muted); }
.stat-delta { font-size: 11.5px; font-weight: 600; }
.stat-delta.up { color: var(--green); }
.stat-delta.down { color: var(--rose); }
.stat-delta.flat { color: var(--fg-muted); }

/* ============== 标签 ============== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--fg-secondary);
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.tag.gray   { background: var(--bg-muted); color: var(--fg-secondary); }
.tag.blue   { background: var(--blue-soft); color: var(--blue); }
.tag.green  { background: var(--green-soft); color: var(--green); }
.tag.amber  { background: var(--amber-soft); color: var(--amber); }
.tag.rose   { background: var(--rose-soft); color: var(--rose); }
.tag.teal   { background: var(--teal-soft); color: var(--teal); }
.tag.accent { background: var(--role-accent-soft); color: var(--role-accent); }
.tag.purple { background: var(--accent-soft); color: var(--accent); }
.tag.outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--fg-secondary);
}

/* ============== 表单 ============== */
.form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.form-row .form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-secondary);
  min-width: 90px;
}
.input, .select {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--fg-primary);
  transition: all var(--t-fast);
  flex: 1;
  min-width: 0;
}
.input:focus, .select:focus {
  outline: none;
  border-color: var(--role-accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--fg-primary);
  resize: vertical;
  transition: all var(--t-fast);
}
.textarea:focus {
  outline: none;
  border-color: var(--role-accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.form-hint { font-size: 11.5px; color: var(--fg-muted); margin-top: 4px; line-height: 1.5; }

/* ============== 列表 ============== */
.list {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
  cursor: pointer;
  transition: background var(--t-fast);
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--bg-hover); }
.list-item.active { background: var(--role-accent-soft); }
.list-item-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.list-item-body { flex: 1; min-width: 0; }
.list-item-title {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-item-meta {
  font-size: 11.5px;
  color: var(--fg-muted);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.list-item-actions { display: flex; gap: 4px; }

/* ============== 表格 ============== */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--fg-muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-muted);
  white-space: nowrap;
}
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--divider);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg-hover); }

/* ============== Tabs ============== */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tab {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  border-bottom: 2px solid transparent;
  transition: all var(--t-fast);
  margin-bottom: -1px;
}
.tab:hover { color: var(--fg-primary); }
.tab.active {
  color: var(--role-accent);
  border-bottom-color: var(--role-accent);
}

/* ============== Modal ============== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 200ms;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  padding: 22px 26px;
  max-width: 520px;
  width: 92%;
  box-shadow: var(--shadow-lg);
  animation: popIn 240ms cubic-bezier(.4,.2,.2,1);
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.modal-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.modal-sub {
  font-size: 12.5px;
  color: var(--fg-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}
.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ============== Drawer ============== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 900;
  animation: fadeIn 200ms;
}
.drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 480px;
  max-width: 95vw;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 901;
  display: flex;
  flex-direction: column;
  animation: slideIn 280ms cubic-bezier(.4,.2,.2,1);
}
@keyframes slideIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.drawer-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: var(--bg-surface);
}
.drawer-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.drawer-sub {
  font-size: 11.5px;
  color: var(--fg-muted);
  margin-top: 2px;
}
.drawer-close {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
}
.drawer-close:hover { background: var(--bg-muted); color: var(--fg-primary); }
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.drawer-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  flex-shrink: 0;
}

/* Chat */
.chat-stream {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px 4px 12px;
}
.chat-bubble {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.chat-bubble.user {
  align-self: flex-end;
  background: var(--role-grad);
  color: var(--fg-onaccent);
  border-bottom-right-radius: 4px;
}
.chat-bubble.assistant {
  align-self: flex-start;
  background: var(--bg-muted);
  color: var(--fg-primary);
  border-bottom-left-radius: 4px;
}
.chat-bubble.system {
  align-self: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
}
.chat-diff {
  font-size: 12px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  line-height: 1.5;
  white-space: pre-wrap;
}
.chat-input-area { display: flex; gap: 8px; align-items: flex-end; }
.chat-input {
  flex: 1;
  min-height: 56px;
  max-height: 140px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  border-radius: 12px;
  font-family: inherit;
  font-size: 13px;
  resize: none;
}
.chat-input:focus {
  outline: none;
  border-color: var(--role-accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.chat-presets { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 8px; }
.chat-preset {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--fg-secondary);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--t-fast);
}
.chat-preset:hover {
  background: var(--role-accent-soft);
  color: var(--role-accent);
  border-color: var(--role-accent);
}
.chat-loading {
  align-self: flex-start;
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  background: var(--bg-muted);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.chat-loading .dot {
  width: 7px; height: 7px;
  background: var(--fg-muted);
  border-radius: 50%;
  animation: dotPulse 1.4s infinite;
}
.chat-loading .dot:nth-child(2) { animation-delay: 0.2s; }
.chat-loading .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* ============== Toast ============== */
.toast-area {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
  pointer-events: none;
}
.toast {
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  color: var(--fg-primary);
  font-size: 13px;
  font-weight: 500;
  min-width: 240px;
  max-width: 360px;
  pointer-events: auto;
  animation: toastIn 240ms cubic-bezier(.4,.2,.2,1);
  border-left: 3px solid var(--fg-muted);
}
.toast.success { border-left-color: var(--green); }
.toast.error   { border-left-color: var(--rose); }
.toast.warn    { border-left-color: var(--amber); }
.toast.info    { border-left-color: var(--blue); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============== Loading ============== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.loading-overlay.hidden { display: none; }
.loader {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--role-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 13px; color: var(--fg-onaccent); font-weight: 500; }

/* ============== Empty / Hint ============== */
.empty { padding: 60px 20px; text-align: center; color: var(--fg-muted); }
.empty-icon { font-size: 36px; opacity: 0.6; margin-bottom: 10px; }
.empty-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--fg-secondary); }
.empty-sub { font-size: 12px; }
.muted-note { font-size: 11.5px; color: var(--fg-muted); font-style: italic; }
.divider { height: 1px; background: var(--divider); margin: 16px 0; }

/* ============== Hero ============== */
.hero {
  background: var(--role-grad);
  color: white;
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 200px; height: 200px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}
.hero-title { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.hero-sub {
  font-size: 13.5px;
  opacity: 0.92;
  margin-bottom: 16px;
  line-height: 1.65;
  max-width: 720px;
}
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hero .btn {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero .btn:hover { background: rgba(255, 255, 255, 0.25); }
.hero .btn.primary {
  background: white;
  color: var(--role-accent);
}
.hero .btn.primary:hover {
  filter: none;
  background: white;
  color: var(--role-accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ============== Agent card ============== */
.agent-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--t-base);
  position: relative;
}
.agent-card.disabled { opacity: 0.55; }
.agent-card:hover {
  border-color: var(--role-accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.agent-card-head { display: flex; align-items: center; gap: 12px; }
.agent-avatar {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--role-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  flex-shrink: 0;
}
.agent-info { flex: 1; min-width: 0; }
.agent-name { font-size: 14px; font-weight: 700; margin-bottom: 1px; }
.agent-section { font-size: 11px; color: var(--fg-muted); font-weight: 500; }
.agent-desc { font-size: 12px; color: var(--fg-secondary); line-height: 1.6; }
.agent-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--divider);
}
.agent-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.agent-row .agent-row-label {
  width: 60px;
  color: var(--fg-muted);
  font-weight: 500;
}
.agent-row input[type="range"] { flex: 1; }
.agent-row .agent-row-value {
  width: 50px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--fg-secondary);
}
.agent-row input[type="text"], .agent-row input[type="number"], .agent-row textarea {
  flex: 1;
  font-size: 12px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  border-radius: 6px;
}
.agent-row textarea { min-height: 50px; resize: vertical; }
.agent-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.agent-status { font-size: 11px; color: var(--fg-muted); font-weight: 500; }
.agent-status.dirty  { color: var(--amber); }
.agent-status.saving { color: var(--blue); }
.agent-status.ok     { color: var(--green); }
.agent-status.err    { color: var(--rose); }

/* 智能体「测试一次」的输出面板 —— 结果直接摊在卡片里，
   不用再让人跑到页面底部翻「AI 调用日志」找 */
.agent-test-out {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--divider);
}
.agent-test-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.agent-test-json {
  margin: 0;
  padding: 8px 10px;
  max-height: 260px;
  overflow: auto;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--fg-secondary);
}

/* Toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute;
  inset: 0;
  background: var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--t-fast);
}
.switch-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  top: 2px;
  background: white;
  border-radius: 50%;
  transition: all var(--t-fast);
}
.switch input:checked + .switch-slider { background: var(--role-accent); }
.switch input:checked + .switch-slider::before { transform: translateX(16px); }

/* ============== Voice segment ============== */
.segment {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 6px;
  align-items: flex-start;
}
.segment.teacher  { background: var(--accent-soft); }
.segment.student  { background: var(--green-soft); }
.segment.unknown  { background: var(--bg-muted); }
.segment-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.segment-meta {
  font-size: 11px;
  color: var(--fg-muted);
  margin-bottom: 2px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.segment-text {
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.segment-speaker-select {
  font-size: 11px;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-surface);
  cursor: pointer;
}

/* ============== Two-column ============== */
.two-col {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 980px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ============== Progress ============== */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-muted);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--role-grad);
  transition: width var(--t-base);
}
.progress-stage {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-muted);
  margin-bottom: 8px;
  font-size: 13px;
  transition: all var(--t-base);
}
.progress-stage.active { background: var(--role-accent-soft); color: var(--role-accent); }
.progress-stage.done { background: var(--green-soft); color: var(--green); }
.progress-stage-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.progress-stage.active .progress-stage-num,
.progress-stage.done .progress-stage-num { background: white; }

/* ============== Util ============== */
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-muted { color: var(--fg-muted); }
.text-secondary { color: var(--fg-secondary); }
.text-small { font-size: 12px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.hidden { display: none !important; }
.full-width { width: 100%; }
.pointer { cursor: pointer; }
.no-wrap { white-space: nowrap; }

/* Pipeline stage visualization */
.stage-tracker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.stage-tracker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  font-size: 12px;
}
.stage-tracker-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  border: 2px solid var(--border);
  transition: all var(--t-base);
}
.stage-tracker-item.done .stage-tracker-circle {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.stage-tracker-item.active .stage-tracker-circle {
  background: var(--role-accent);
  border-color: var(--role-accent);
  color: white;
  animation: pulseRing 1.5s infinite;
}
.stage-tracker-item.error .stage-tracker-circle {
  background: var(--rose);
  border-color: var(--rose);
  color: white;
}
/* 第 4 格「督导修订（手动）」：流水线跑完它也不该变绿 ——
   报告修订是督导在报告中心用对话抽屉手动做的，标绿等于谎报完成。 */
.stage-tracker-item.pending .stage-tracker-circle {
  background: var(--amber-soft, #fff3d6);
  border-color: var(--amber, #f4a72e);
  color: var(--amber-ink, #9a5b00);
}
.stage-tracker-item.pending span { color: var(--amber-ink, #9a5b00); }
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.4); }
  100% { box-shadow: 0 0 0 10px rgba(108, 92, 231, 0); }
}
.stage-tracker-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 4px;
  margin-bottom: 22px;
}
.stage-tracker-line.done { background: var(--green); }

/* Report metric */
.metric-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.metric-label {
  width: 130px;
  font-size: 13px;
  font-weight: 500;
}
.metric-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-muted);
  border-radius: 999px;
  overflow: hidden;
}
.metric-bar-fill {
  height: 100%;
  background: var(--role-grad);
  border-radius: 999px;
  transition: width var(--t-slow);
}
.metric-value {
  width: 60px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Suggestion / commentary blocks */
.block {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-muted);
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.7;
}
.block.callout { background: var(--blue-soft); color: var(--blue); border-left: 3px solid var(--blue); }
.block.warn { background: var(--amber-soft); color: var(--amber); border-left: 3px solid var(--amber); }
.block.success { background: var(--green-soft); color: var(--green); border-left: 3px solid var(--green); }
.block.danger { background: var(--rose-soft); color: var(--rose); border-left: 3px solid var(--rose); }
.block-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Chip cluster */
.chip-cluster { display: flex; flex-wrap: wrap; gap: 6px; }

/* ============== Provider cards (settings) ============== */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.provider-card {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
  transition: all var(--t-fast);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.provider-card:hover {
  border-color: var(--role-accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.provider-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.provider-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg-primary);
}
.provider-card-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.provider-card-desc {
  font-size: 12px;
  color: var(--fg-secondary);
  line-height: 1.55;
  min-height: 38px;
}
.provider-card-endpoint {
  font-size: 11px;
  color: var(--fg-muted);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  word-break: break-all;
  padding: 4px 6px;
  background: var(--bg-muted);
  border-radius: 6px;
}
.provider-card-model {
  font-size: 11.5px;
  color: var(--fg-secondary);
}

/* ============== Agent section ============== */
.agent-section {
  margin-bottom: 28px;
}
.agent-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg-secondary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.agent-grid-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ============================================================
   角色边界相关的新增组件（v1.3.0）
   - .readonly-hint  只读态统一标记
   - .qbar*          质量看板 8 维画像条
   - .adh-*          上轮建议落实情况
   - .issue-*        全校共性问题（下钻）
   - .teacher-q*     教师质量概览
   - .pending-hint   老师首页「待督导评价」提示行
   ============================================================ */

/* ---- 只读态 ---- */
.readonly-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.segment-speaker-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  color: var(--fg-secondary);
  font-size: 11.5px;
  font-weight: 600;
}

/* ---- ① 教学质量画像：8 维条形图 ---- */
.qbar-list { display: flex; flex-direction: column; gap: 2px; }
.qbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--divider);
}
.qbar-row:last-child { border-bottom: none; }
.qbar-label {
  width: 132px;
  flex: none;
  font-size: 13px;
  color: var(--fg-secondary);
  font-weight: 500;
}
.qbar-hint {
  font-size: 10.5px;
  font-weight: 400;
  color: var(--fg-subtle);
  margin-top: 1px;
}
.qbar-track {
  flex: 1;
  height: 10px;
  background: var(--bg-muted);
  border-radius: 999px;
  overflow: hidden;
}
.qbar-fill {
  height: 100%;
  background: var(--role-grad);
  border-radius: 999px;
  transition: width var(--t-slow);
  min-width: 2px;
}
.qbar-value {
  width: 56px;
  flex: none;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.qbar-delta-cell { width: 84px; flex: none; text-align: right; }
.qbar-delta {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.qbar-delta.good { color: var(--green); }
.qbar-delta.bad  { color: var(--rose); }
.qbar-delta.flat { color: var(--fg-subtle); font-weight: 500; }

/* ---- ② 上轮建议落实情况 ---- */
.adh-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--role-accent-soft);
  margin-bottom: 14px;
}
.adh-rate {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: var(--role-accent);
  font-variant-numeric: tabular-nums;
}
.adh-rate-meta { font-size: 13px; color: var(--fg-secondary); line-height: 1.7; }
.adh-list { display: flex; flex-direction: column; gap: 10px; }
.adh-item {
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: var(--radius);
  padding: 11px 14px;
  background: var(--bg-elevated);
}
/* 数字人课堂：录音播放器 */
.digital-human-audio {
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue, #4a7dff);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--bg-elevated);
  margin-bottom: 16px;
}
.digital-human-audio audio { width: 100%; margin-top: 6px; }
.digital-human-audio .dh-title {
  font-size: 13px; font-weight: 600; color: var(--fg-primary);
  display: flex; align-items: center; gap: 8px;
}
.adh-item.done { border-left-color: var(--green); }
.adh-item.partial { border-left-color: var(--blue); }
.adh-item.miss { border-left-color: var(--amber); }
.adh-item-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-primary);
}
.adh-item-advice { flex: 1; }
.adh-item-evidence {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--fg-secondary);
  line-height: 1.65;
}
.adh-item-meta {
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--fg-subtle);
}

/* ---- ③ 全校共性问题 ---- */
.issue-list { display: flex; flex-direction: column; gap: 8px; }
.issue-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
}
.issue-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  transition: background var(--t-fast);
}
.issue-head:hover { background: var(--bg-hover); }
.issue-rank {
  width: 20px; height: 20px;
  flex: none;
  border-radius: 50%;
  background: var(--role-accent-soft);
  color: var(--role-accent);
  font-size: 11px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.issue-text { flex: 1; font-size: 13px; color: var(--fg-primary); }
.issue-count { font-size: 11.5px; color: var(--fg-muted); white-space: nowrap; }
.issue-caret { color: var(--fg-subtle); font-size: 12px; transition: transform var(--t-fast); }
.issue-head.open .issue-caret { transform: rotate(180deg); }
.issue-detail {
  padding: 4px 14px 14px 44px;
  border-top: 1px solid var(--divider);
}
.issue-related { display: flex; flex-direction: column; gap: 7px; padding-top: 10px; }
.issue-rel-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--fg-secondary);
}

/* ---- ④ 教师质量概览 ---- */
.teacher-qlist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}
.teacher-qcard {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.teacher-qcard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.teacher-qname { font-size: 14px; font-weight: 700; color: var(--fg-primary); }
.teacher-qscore { text-align: right; }
.teacher-qscore-value {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--role-accent);
  font-variant-numeric: tabular-nums;
}
.teacher-qstats {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  color: var(--fg-secondary);
  flex-wrap: wrap;
}
.teacher-qstats b { color: var(--fg-primary); font-variant-numeric: tabular-nums; }
.qchips { display: flex; flex-wrap: wrap; gap: 6px; }
.qchip {
  font-size: 11.5px;
  color: var(--fg-secondary);
  background: var(--bg-muted);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  white-space: nowrap;
}
.qchip b { color: var(--fg-primary); font-variant-numeric: tabular-nums; }

/* ---- 老师首页「待督导评价」提示行 ---- */
.pending-hint {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 18px;
  border-radius: var(--radius-lg);
  background: var(--amber-soft);
  border: 1px solid rgba(244, 167, 46, 0.35);
  margin-bottom: 18px;
}
.pending-hint-icon { font-size: 20px; line-height: 1.2; }
.pending-hint-title { font-size: 13.5px; font-weight: 700; color: var(--fg-primary); margin-bottom: 4px; }
.pending-hint-sub { font-size: 12.5px; color: var(--fg-secondary); line-height: 1.7; }
