/* AIKC 上课工作台（注入「工作台」页）与学生评价左栏增强的样式。
   只做覆盖与新增，不改编译产物里的任何规则。 */

.aikc-wb {
  margin: 18px 0 22px;
}

.aikc-wb-context {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  padding: 14px 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #fff;
}

.aikc-wb-context > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  min-width: 168px;
}

.aikc-wb-context select,
.aikc-wb-context input {
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
}

.aikc-wb-meta {
  font-size: 12px;
  color: #64748b;
  padding-bottom: 9px;
}

.aikc-wb-meta.warn {
  color: #a16207;
}

/* 第一段：三个联动下拉（课程类型 / 课件 / 本次课）+ 上课日期 */
.aikc-wb-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px 14px;
  align-items: end;
}

.aikc-wb-fields > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  min-width: 0;
}

.aikc-wb-fields > label.aikc-wb-wide {
  grid-column: 1 / -1;
}

.aikc-wb-fields select,
.aikc-wb-fields input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  color: #0f172a;
}

.aikc-wb-fields select:disabled,
.aikc-wb-fields input[readonly] {
  background: #f8fafc;
  color: #94a3b8;
}

.aikc-wb-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #475569;
  padding-bottom: 10px;
}

.aikc-wb-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  background: #eef2ff;
  color: #3730a3;
}

.aikc-wb-pill.live {
  background: #eaf7f1;
  color: #0f6e56;
}

.aikc-wb-status .ok {
  color: #0f6e56;
}

.aikc-wb-stages {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.aikc-wb-stage {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.aikc-wb-stage.active {
  border-color: rgba(38, 33, 92, 0.45);
  box-shadow: 0 0 0 3px rgba(38, 33, 92, 0.06);
}

.aikc-wb-stage > header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.aikc-wb-step {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.aikc-wb-stage-title {
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
}

.aikc-wb-stage-hint {
  font-size: 12px;
  color: #94a3b8;
}

.aikc-wb-body {
  padding: 16px 18px 18px;
}

.aikc-wb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.aikc-wb-row > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
}

.aikc-wb-row select,
.aikc-wb-row input[type="text"],
.aikc-wb-row input[type="date"] {
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
}

.aikc-wb-primary {
  border: 0;
  border-radius: 10px;
  background: #26215c;
  color: #fff;
  font-weight: 500;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 13px;
}

.aikc-wb-primary:disabled {
  opacity: 0.5;
  cursor: default;
}

.aikc-wb-ghost {
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #fff;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13px;
  cursor: pointer;
  color: #334155;
}

.aikc-wb-danger {
  border: 1px solid #f09595;
  background: #fff;
  color: #a32d2d;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.aikc-wb-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.aikc-wb-note {
  font-size: 12px;
  color: #94a3b8;
  margin: 10px 0 0;
  line-height: 1.7;
}

.aikc-wb-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 13px;
  color: #334155;
}

.aikc-wb-progress {
  font-size: 12px;
  color: #475569;
}

/* ===== 课后评价：头像格（一行 5 个）+ 展开的课评卡 ===== */
.aikc-wb-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .aikc-wb-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .aikc-wb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.aikc-wb-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 14px 8px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.aikc-wb-cell:hover {
  border-color: rgba(38, 33, 92, 0.35);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.aikc-wb-cell.active {
  border-color: #26215c;
  box-shadow: 0 0 0 3px rgba(38, 33, 92, 0.1);
  background: #f7f6fc;
}

.aikc-wb-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.aikc-wb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aikc-wb-avatar i {
  font-style: normal;
  font-size: 20px;
  font-weight: 500;
  color: #4f46b8;
}

.aikc-wb-cell strong {
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aikc-wb-cell em {
  font-style: normal;
  font-size: 10px;
  color: #b07a1f;
  background: #fdf3df;
  border-radius: 999px;
  padding: 1px 8px;
}

.aikc-wb-cell em.done {
  color: #0f6e56;
  background: #eaf7f1;
}

.aikc-wb-fold {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 8px;
}

/* 展开后的单人课评卡 */
.aikc-wb-student {
  border: 1px solid rgba(38, 33, 92, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  margin-top: 12px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.aikc-wb-student header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.aikc-wb-student strong {
  font-size: 14px;
  font-weight: 500;
}

.aikc-wb-scores {
  font-size: 11px;
  color: #94a3b8;
  flex: 1;
  text-align: center;
}

.aikc-wb-student textarea {
  width: 100%;
  min-height: 110px;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.7;
  font-family: inherit;
  resize: vertical;
}

/* ===== 学生端展示：选学生预览 ===== */
.aikc-wb-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed rgba(38, 33, 92, 0.3);
  border-radius: 12px;
  background: #f7f6fc;
}

.aikc-wb-preview select {
  min-width: 220px;
  padding: 9px 12px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
}

.aikc-wb-ghost.active {
  border-color: #26215c;
  color: #26215c;
  background: #f7f6fc;
}

/* 上课工作台页：隐藏旧版统计卡片与「接下来可以做什么 / 评价原则」板块 */
body.aikc-wb-page .stat-grid,
body.aikc-wb-page .overview-columns {
  display: none !important;
}

/* ===== 学生评价弹窗左栏 ===== */
.evaluation-layout {
  align-items: start;
}

.evaluation-layout > aside {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  position: sticky;
  top: 0;
  padding-right: 6px;
}

.aikc-eval-tools {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  padding: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 6px;
}

.aikc-eval-tools input {
  padding: 7px 10px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 9px;
  font-size: 12px;
  font-family: inherit;
}

.aikc-eval-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.aikc-eval-filters button {
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  color: #475569;
}

.aikc-eval-filters button.active {
  background: #26215c;
  border-color: #26215c;
  color: #fff;
}

.aikc-eval-progress {
  font-size: 11px;
  color: #64748b;
}

.evaluation-layout > aside > button[data-aikc-eval-state="done"] strong::after {
  content: "已评";
  margin-left: 6px;
  font-size: 10px;
  font-weight: 400;
  color: #0f6e56;
  background: #eaf7f1;
  border-radius: 4px;
  padding: 1px 5px;
}

/* ===== r19：第 1 段里的两块折叠名单（签到名单 / 学生座位顺序） =====
   默认折叠，展开后内部带侧边滚动条，名单再长也不会把工作台页面撑很高。 */
.aikc-wb-seatbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.aikc-wb-seatbar .aikc-wb-ghost {
  padding: 8px 14px;
  font-size: 12px;
}

.aikc-wb-warn {
  margin: 10px 0 0;
  padding: 9px 12px;
  border: 1px solid #f0c36d;
  background: #fdf6e3;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: #854f0b;
}

.aikc-wb-box {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: #fff;
  margin-top: 12px;
}

.aikc-wb-box > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
  list-style: none;
}

.aikc-wb-box > summary::-webkit-details-marker {
  display: none;
}

.aikc-wb-box > summary::before {
  content: "▸";
  color: #94a3b8;
  font-size: 12px;
}

.aikc-wb-box[open] > summary::before {
  content: "▾";
}

.aikc-wb-count {
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
}

.aikc-wb-box-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 0 14px 10px;
}

.aikc-wb-box-tools .aikc-wb-primary,
.aikc-wb-box-tools .aikc-wb-ghost {
  padding: 8px 14px;
  font-size: 12px;
}

.aikc-wb-scroll {
  max-height: 280px;
  overflow-y: auto;
  padding: 0 14px 12px;
  scrollbar-width: thin;
}

.aikc-wb-scroll::-webkit-scrollbar {
  width: 8px;
}

.aikc-wb-scroll::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.18);
  border-radius: 8px;
}

.aikc-wb-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.aikc-wb-att {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aikc-wb-att > li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.aikc-wb-att > li:last-child {
  border-bottom: 0;
}

.aikc-wb-att > li > strong {
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aikc-wb-seatno {
  flex: 0 0 auto;
  font-size: 11px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 2px 9px;
}

.aikc-wb-att-btns {
  display: inline-flex;
  gap: 4px;
  flex: 0 0 auto;
}

.aikc-wb-att-btns button {
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  color: #475569;
  cursor: pointer;
}

.aikc-wb-att-btns button.active {
  background: #26215c;
  border-color: #26215c;
  color: #fff;
}

.aikc-wb-att-btns button:disabled {
  opacity: 0.5;
  cursor: default;
}

.aikc-wb-att-btns button[data-aikc-wb-att="leave"].active {
  background: #b45309;
  border-color: #b45309;
}

.aikc-wb-att-btns button[data-aikc-wb-att="unmarked"].active {
  background: #94a3b8;
  border-color: #94a3b8;
}

ul.aikc-wb-seatlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.aikc-wb-seatlist > li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

ul.aikc-wb-seatlist > li:last-child {
  border-bottom: 0;
}

ul.aikc-wb-seatlist > li > input {
  width: 72px;
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 9px;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
}

ul.aikc-wb-seatlist > li > strong {
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
