/* ==========================================================================
   讲师后台：控制台优先，一屏看清「谁交了、谁没交、AI 评到哪」
   ========================================================================== */

.console {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
}

.side {
  border-right: 1px solid var(--line);
  padding: 22px 20px;
  background: rgba(4, 6, 13, 0.6);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.side__brand {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.14em;
  color: var(--text-hi);
  line-height: 1.2;
}

.side__brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-top: 4px;
}

.main {
  padding: 24px 28px 60px;
  min-width: 0;
}

.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
}

.tabs button.is-active {
  color: var(--text-hi);
  border-bottom-color: var(--unicom-red);
}

/* 关键指标 */
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.kpi {
  padding: 16px 18px;
}

.kpi b {
  display: block;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  color: var(--text-hi);
  font-variant-numeric: tabular-nums;
}

.kpi span {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.kpi--alert b {
  color: var(--data-amber);
}

/* 任务控制行 */
.round {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.022);
}

.round.is-live {
  border-color: rgba(230, 0, 18, 0.55);
  background: rgba(230, 0, 18, 0.08);
}

.round__code {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--data-cyan);
}

.round__title {
  font-weight: 700;
  color: var(--text-hi);
  font-size: 16px;
}

.round__meta {
  font-size: 12px;
  color: var(--text-faint);
}

/* 表格 */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text);
  vertical-align: middle;
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.table__num {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--text-hi);
  font-variant-numeric: tabular-nums;
}

.table-wrap {
  overflow-x: auto;
}

/* 评分审核抽屉 */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(680px, 96vw);
  background: #070b16;
  border-left: 1px solid var(--line-strong);
  z-index: 200;
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease-out);
  display: flex;
  flex-direction: column;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px 40px;
}

.drawer__foot {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur);
}

.backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.answer-box {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.8;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  max-height: 380px;
  overflow-y: auto;
  word-break: break-word;
}

/* 登录 */
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login__card {
  width: min(420px, 100%);
  padding: 32px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-faint);
  margin-right: 6px;
}

.status-dot--on {
  background: var(--data-teal);
  box-shadow: 0 0 8px var(--data-teal);
}

.status-dot--off {
  background: var(--unicom-red-soft);
}

@media (max-width: 900px) {
  .console {
    grid-template-columns: 1fr;
  }
  .side {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
