/* ============================================================
   app.css — 奈斯兔AI学院教学管理系统 · 应用样式
   Claude design 暖纸风 · 8pt 网格 · 发丝线 · 无卡片堆叠
   ============================================================ */
:root { color-scheme: light; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font: var(--fs-md)/var(--lh-base) var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--c-coral-soft); }
.num, .kpi-value, .c-value, .c-donut-total { font-variant-numeric: tabular-nums; }

/* ---------------- 登录 ---------------- */
body.theme-login { display: flex; align-items: center; justify-content: center; }
.login-wrap { width: 100%; display: flex; justify-content: center; padding: 24px; }
.login-card {
  width: 380px; max-width: 100%;
  background: var(--c-surface-raised);
  border: var(--bw) solid var(--c-hairline);
  border-radius: var(--r-4);
  padding: 38px 32px 30px;
  box-shadow: var(--sh-pop);
}
.login-brand { font-family: var(--font-serif); font-size: var(--fs-2xl); font-weight: 600; letter-spacing: var(--tr-tight); }
.login-sub { color: var(--c-ink-3); font-size: var(--fs-xs); margin: 6px 0 24px; }
.login-btn { width: 100%; margin-top: 8px; }
.demo-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.demo-chip {
  font: var(--fs-2xs)/1 var(--font-sans); color: var(--c-ink-2);
  background: var(--c-paper-sunk); border: var(--bw) solid var(--c-hairline);
  border-radius: var(--r-pill); padding: 6px 10px; cursor: pointer;
}
.demo-chip:hover { background: var(--c-coral-soft); color: var(--c-coral-ink); }

/* ---------------- 布局骨架 ---------------- */
.app-shell { display: grid; grid-template-columns: var(--w-rail) 1fr; height: 100vh; }
.sidebar {
  background: var(--c-paper-sunk);
  border-right: var(--bw) solid var(--c-hairline);
  display: flex; flex-direction: column; padding: 18px 12px; overflow-y: auto;
}
.side-brand { font-family: var(--font-serif); font-size: var(--fs-xl); font-weight: 600; line-height: 1.25; padding: 6px 10px 18px; letter-spacing: var(--tr-tight); }
.side-brand span { font-size: var(--fs-xs); color: var(--c-ink-3); font-family: var(--font-sans); font-weight: 400; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-3);
  color: var(--c-ink-2); text-decoration: none; font-size: var(--fs-sm);
  transition: background var(--d-1), color var(--d-1);
}
.side-item:hover { background: var(--c-surface); color: var(--c-ink); }
.side-item.active { background: var(--c-coral); color: #fff; }
.side-item.active .side-icon path { fill: #fff; }
.side-icon { width: 18px; height: 18px; flex: none; }
.side-icon path { fill: var(--c-ink-3); }
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: var(--h-topbar); display: flex; align-items: center;
  padding: 0 24px; border-bottom: var(--bw) solid var(--c-hairline);
  background: var(--c-surface-raised);
}
.top-left { display: flex; align-items: center; min-width: 0; }
/* 机构切换：置于顶部中间偏右（左 1 : 中 1.15 : 右 1） */
.top-center { flex: 1.15; display: flex; justify-content: center; margin-left: 8px; }
.top-center select { max-width: 220px; }
.top-title { font-family: var(--font-serif); font-size: var(--fs-lg); font-weight: 600; }
.top-user { flex: 1; display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.top-user-name { font-size: var(--fs-sm); color: var(--c-ink-2); }
.content { flex: 1; overflow-y: auto; padding: 24px 28px 56px; }

/* ---------------- 页面骨架 ---------------- */
.view { max-width: var(--w-content-max); margin: 0 auto; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.view-title { font-family: var(--font-serif); font-size: var(--fs-2xl); font-weight: 600; margin: 0; letter-spacing: var(--tr-tight); }
.view-desc { color: var(--c-ink-3); font-size: var(--fs-sm); margin: 4px 0 0; }
.view-actions { display: flex; gap: 8px; }

/* ---------------- 面板 ---------------- */
.panel {
  background: var(--c-surface); border: var(--bw) solid var(--c-hairline);
  border-radius: var(--r-4); padding: 18px 20px; margin-bottom: 16px;
}
.panel.span2 { grid-column: 1 / -1; }
.panel-title { font-weight: 600; font-size: var(--fs-md); margin-bottom: 12px; display: block; }

/* ---------------- 工具栏 ---------------- */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }

/* ---------------- 按钮 ---------------- */
.btn {
  font: var(--fs-sm)/1 var(--font-sans); padding: 9px 16px; border-radius: var(--r-3);
  border: var(--bw) solid var(--c-hairline-strong); background: var(--c-surface-raised);
  color: var(--c-ink); cursor: pointer; transition: all var(--d-1);
}
.btn:hover { border-color: var(--c-ink-3); }
.btn-primary { background: var(--c-coral); border-color: var(--c-coral); color: #fff; }
.btn-primary:hover { background: var(--c-coral-ink); border-color: var(--c-coral-ink); }
.btn-ghost { background: transparent; }
.btn-danger { background: var(--c-clay); border-color: var(--c-clay); color: #fff; }
.btn-danger:hover { background: var(--c-clay-ink); }
.btn-sm { padding: 6px 12px; font-size: var(--fs-xs); }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; border: var(--bw) solid var(--c-hairline); border-radius: var(--r-4); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.data-table th {
  text-align: left; padding: 11px 14px; background: var(--c-paper-sunk);
  color: var(--c-ink-2); font-weight: 600; border-bottom: var(--bw) solid var(--c-hairline);
  white-space: nowrap;
}
.data-table td { padding: 11px 14px; border-bottom: var(--bw) solid var(--c-hairline); color: var(--c-ink); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--c-surface); }
.data-table .row-alt { background: var(--c-paper); }
.empty { padding: 40px; text-align: center; color: var(--c-ink-4); font-size: var(--fs-sm); }

/* ---------------- 徽标 ---------------- */
.badge {
  display: inline-block; font-size: var(--fs-2xs); padding: 2px 8px;
  border: var(--bw) solid; border-radius: var(--r-pill); white-space: nowrap;
}

/* ---------------- 链接类操作 ---------------- */
.link { color: var(--c-coral-ink); cursor: pointer; font-size: var(--fs-sm); margin-right: 8px; text-decoration: none; }
.link:hover { text-decoration: underline; }
.link.danger { color: var(--c-clay-ink); }

/* ---------------- KPI ---------------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi {
  background: var(--c-surface); border: var(--bw) solid var(--c-hairline);
  border-top: 3px solid var(--c-coral); border-radius: var(--r-4); padding: 16px 18px;
}
.kpi-label { font-size: var(--fs-xs); color: var(--c-ink-3); letter-spacing: var(--tr-label); text-transform: uppercase; }
.kpi-value { font-family: var(--font-serif); font-size: var(--fs-num); font-weight: 600; margin: 6px 0 2px; }
.kpi-sub { font-size: var(--fs-2xs); color: var(--c-ink-3); }

/* ---------------- 图表 ---------------- */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 16px; }
.chart-svg { width: 100%; height: auto; display: block; }
.c-grid { stroke: var(--c-hairline); stroke-width: 1; }
.c-axis { fill: var(--c-ink-3); font-size: 10px; text-anchor: middle; }
.c-value { fill: var(--c-ink-2); font-size: 10px; text-anchor: middle; font-weight: 600; }
.c-line { fill: none; stroke: var(--c-coral); stroke-width: 2.5; }
.c-area { fill: var(--c-coral); opacity: .08; }
.c-dot { fill: var(--c-coral); }
.donut-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.donut { width: 160px; flex: none; }
.c-donut-total { fill: var(--c-ink); font-size: 22px; font-weight: 700; text-anchor: middle; font-family: var(--font-serif); }
.c-donut-sub { fill: var(--c-ink-3); font-size: 11px; text-anchor: middle; }
.donut-legend { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-xs); }
.legend-item { display: flex; align-items: center; gap: 6px; color: var(--c-ink-2); }
.legend-item i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.funnel { width: 100%; }
.chart-svg.funnel { max-width: 440px; margin: 0 auto; display: block; }
.c-funnel-label { fill: #fff; font-size: 13px; text-anchor: middle; font-weight: 500; }
.spark { width: 90px; height: 28px; }

/* ---------------- Tabs ---------------- */
.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: var(--bw) solid var(--c-hairline); }
.tab { background: none; border: 0; padding: 9px 14px; font: var(--fs-sm) var(--font-sans); color: var(--c-ink-3); cursor: pointer; border-bottom: 2px solid transparent; }
.tab:hover { color: var(--c-ink); }
.tab.active { color: var(--c-coral-ink); border-bottom-color: var(--c-coral); font-weight: 600; }

/* ---------------- Modal / Drawer ---------------- */
.modal-overlay, .drawer-overlay {
  position: fixed; inset: 0; background: rgba(33, 29, 23, .38);
  opacity: 0; transition: opacity var(--d-2); z-index: 70;
  display: flex; align-items: center; justify-content: center;
}
.modal-overlay.show, .drawer-overlay.show { opacity: 1; }
.modal-card {
  background: var(--c-surface-raised); border-radius: var(--r-4);
  width: min(620px, 94vw); max-height: 90vh; display: flex; flex-direction: column;
  box-shadow: var(--sh-pop); transform: translateY(8px); transition: transform var(--d-2);
}
.modal-overlay.show .modal-card { transform: translateY(0); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: var(--bw) solid var(--c-hairline); }
.modal-title { font-weight: 600; font-size: var(--fs-lg); font-family: var(--font-serif); }
.modal-close, .drawer-close { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--c-ink-3); }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: var(--bw) solid var(--c-hairline); flex-wrap: wrap; }
.drawer-overlay { justify-content: flex-end; align-items: stretch; }
.drawer-panel { background: var(--c-surface-raised); width: min(520px, 96vw); height: 100%; box-shadow: var(--sh-drawer); display: flex; flex-direction: column; transform: translateX(20px); transition: transform var(--d-2); }
.drawer-overlay.show .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: var(--bw) solid var(--c-hairline); }
.drawer-title { font-weight: 600; font-size: var(--fs-lg); font-family: var(--font-serif); }
.drawer-body { padding: 20px; overflow-y: auto; }

/* ---------------- Toast ---------------- */
.toast {
  background: var(--c-ink); color: #fff; padding: 10px 18px; border-radius: var(--r-pill);
  font-size: var(--fs-sm); opacity: 0; transform: translateY(-8px); transition: all var(--d-2);
  box-shadow: var(--sh-pop);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: var(--c-sage-ink); }
.toast-error { background: var(--c-clay-ink); }
.toast-info { background: var(--c-stone-ink); }
.confirm-msg { margin: 0 0 4px; }

/* ---------------- 表单 ---------------- */
.ui-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field-label { font-size: var(--fs-xs); color: var(--c-ink-2); font-weight: 500; }
.req { color: var(--c-clay); }
.field-input {
  font: var(--fs-sm) var(--font-sans); color: var(--c-ink);
  background: var(--c-surface); border: var(--bw) solid var(--c-hairline-strong);
  border-radius: var(--r-3); padding: 9px 11px; width: 100%;
}
.field-input:focus { outline: none; border-color: var(--c-coral); box-shadow: 0 0 0 3px var(--c-coral-soft); }
textarea.field-input { resize: vertical; }
.field-hint { font-size: var(--fs-2xs); color: var(--c-ink-4); }
.search { width: 220px; }

/* ---------------- 周视图 ---------------- */
.week-grid { display: grid; grid-template-columns: 56px repeat(7, 1fr); gap: 4px; margin-bottom: 20px; }
.week-cell { border: var(--bw) solid var(--c-hairline); border-radius: var(--r-2); padding: 4px; min-height: 30px; font-size: var(--fs-2xs); background: var(--c-surface); }
.week-head { background: var(--c-paper-sunk); font-weight: 600; text-align: center; display: flex; align-items: center; justify-content: center; }
.week-time { display: flex; align-items: center; justify-content: center; color: var(--c-ink-3); }
.week-slot { min-height: 64px; display: flex; flex-direction: column; gap: 3px; }
.sched-chip { font-size: 10px; line-height: 1.25; padding: 4px 5px; border-radius: var(--r-2); cursor: pointer; background: var(--c-coral-soft); color: var(--c-coral-ink); border-left: 3px solid var(--c-coral); }
.sched-chip.status-confirmed { background: var(--c-sage-soft); color: var(--c-sage-ink); border-left-color: var(--c-sage); }
.sched-chip.status-done { background: var(--c-stone-soft); color: var(--c-stone-ink); border-left-color: var(--c-stone); }
.sched-chip.status-cancelled { background: var(--c-paper); color: var(--c-ink-4); border-left-color: var(--c-hairline-strong); text-decoration: line-through; }
.sched-chip.status-pending { background: var(--c-amber-soft); color: var(--c-amber-ink); border-left-color: var(--c-amber); }

/* ---------------- 详情 / 矩阵 ---------------- */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-bottom: 16px; }
.detail-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: var(--bw) solid var(--c-hairline); padding: 6px 0; }
.detail-k { color: var(--c-ink-3); font-size: var(--fs-sm); }
.detail-v { color: var(--c-ink); font-size: var(--fs-sm); font-weight: 500; text-align: right; }
.detail-section-title { font-weight: 600; font-size: var(--fs-sm); margin: 14px 0 8px; color: var(--c-ink-2); }
.matrix { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); margin-top: 6px; }
.matrix th, .matrix td { border: var(--bw) solid var(--c-hairline); padding: 7px 9px; text-align: center; }
.matrix th { background: var(--c-paper-sunk); font-weight: 600; }
.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: var(--bw) solid var(--c-hairline); font-size: var(--fs-sm); }
.todo-list b { color: var(--c-coral-ink); }
.conflict-warn { font-size: var(--fs-xs); margin: 6px 0 10px; line-height: 1.6; }
.fee-est { font-size: var(--fs-sm); margin-bottom: 6px; }
.flow-wrap { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* ---------------- 考勤 / 结算 ---------------- */
.attend-list { display: flex; flex-direction: column; gap: 8px; }
.attend-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: var(--bw) solid var(--c-hairline); }
.attend-name { font-size: var(--fs-sm); font-weight: 500; }
.seg { display: inline-flex; border: var(--bw) solid var(--c-hairline-strong); border-radius: var(--r-pill); overflow: hidden; }
.seg-btn { border: 0; background: var(--c-surface); padding: 5px 12px; font-size: var(--fs-2xs); color: var(--c-ink-2); cursor: pointer; }
.seg-btn.active { background: var(--c-coral); color: #fff; }
.settle-list { display: flex; flex-direction: column; gap: 14px; }

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

/* ---------------- 日历看板（月历 × 三时段） ---------------- */
.cal-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.cal-title { font-family: var(--font-serif); font-size: var(--fs-lg); font-weight: 600; min-width: 120px; text-align: center; }
/* 分块卡片式日历：每一天独立块（边框+圆角+留白），块内时段用虚线分隔 */
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px;
}
.cal-head {
  background: var(--c-paper-sunk); border: var(--bw) solid var(--c-hairline); border-radius: var(--r-pill);
  text-align: center; font-size: var(--fs-xs); color: var(--c-ink-2); font-weight: 600; padding: 4px 0;
}
.cal-cell {
  min-height: 132px; padding: 6px; display: flex; flex-direction: column; gap: 4px;
  background: var(--c-surface);
  border: 1px solid var(--c-hairline-strong); border-radius: var(--r-2);
  box-shadow: 0 1px 3px rgba(60, 52, 40, 0.08);
}
.cal-cell.cal-today { border-color: var(--c-coral); box-shadow: 0 0 0 2px var(--c-coral-soft); background: var(--c-coral-soft); }
.cal-blank { background: transparent; border-color: transparent; box-shadow: none; }
.cal-daynum { font-size: var(--fs-sm); color: var(--c-ink-2); font-weight: 600; margin-bottom: 2px; }
.cal-today .cal-daynum { color: var(--c-coral-ink); }
.cal-period { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.cal-slot + .cal-slot { border-top: 1px dashed var(--c-hairline-strong); padding-top: 3px; }
.cal-period-label { font-size: 10px; color: var(--c-ink-2); font-weight: 600; letter-spacing: .04em; }
.cal-empty { font-size: 10px; color: var(--c-ink-4); }
.cal-cell .sched-chip { font-size: 10.5px; line-height: 1.3; }
.cal-cell .sched-chip em { font-style: normal; color: var(--c-coral-ink); font-weight: 700; }
.cal-cell .sched-chip span { opacity: .82; }

/* ---------------- 排课表单 · 老师推荐卡 ---------------- */
.teacher-pick { margin-top: 4px; display: flex; flex-direction: column; gap: 6px; }
.pick-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border: var(--bw) solid var(--c-hairline); border-radius: var(--r-3); cursor: pointer;
  background: var(--c-surface); transition: all var(--d-1);
}
.pick-item:hover:not(.busy) { border-color: var(--c-coral); }
.pick-item.picked { border-color: var(--c-coral); background: var(--c-coral-soft); }
.pick-item.busy { opacity: .55; cursor: not-allowed; }
.pick-name { flex: 1; font-size: var(--fs-sm); font-weight: 500; }
.pick-score { font-size: var(--fs-xs); color: var(--c-ink-2); font-weight: 600; }
.pick-tag { font-size: var(--fs-2xs); padding: 2px 8px; border-radius: var(--r-pill); }
.pick-tag.free { color: var(--c-sage-ink); background: var(--c-sage-soft); }
.pick-tag.busy { color: var(--c-clay-ink); background: var(--c-clay-soft); }

/* ---------------- 排课表单 · 周几多选 / 课节预览 ---------------- */
.wd-chips { display: flex; gap: 6px; }
.wd-chip {
  width: 34px; height: 34px; border-radius: var(--r-pill);
  border: var(--bw) solid var(--c-hairline-strong); background: var(--c-surface);
  color: var(--c-ink-2); font-size: var(--fs-sm); cursor: pointer; transition: all var(--d-1);
}
.wd-chip:hover { border-color: var(--c-coral); }
.wd-chip.on { background: var(--c-coral); border-color: var(--c-coral); color: #fff; }
.series-preview { background: var(--c-sage-soft); border-radius: var(--r-3); padding: 9px 12px; }
.preview-note { font-size: var(--fs-xs); color: var(--c-sage-ink); line-height: 1.7; }
.preview-note b { font-weight: 700; }
.cal-seq {
  font-style: normal; font-size: 9px; color: var(--c-ink-2);
  background: var(--c-surface-raised); border-radius: var(--r-pill); padding: 0 5px; margin-left: 3px;
  vertical-align: 1px;
}

/* ---------------- 单课程日历看板 · 点击式排课 ---------------- */
.course-cal-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.course-cal-title { font-family: var(--font-serif); font-size: var(--fs-xl); font-weight: 600; }
.course-cal-title span { font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--c-ink-3); font-weight: 400; margin-left: 8px; }
.course-cal-remain { font-size: var(--fs-sm); color: var(--c-amber-ink); margin-top: 6px; }
.course-cal-remain b { font-weight: 700; }
.course-cal-done { font-size: var(--fs-sm); color: var(--c-sage-ink); margin-top: 6px; font-weight: 600; }
.cal-cell .hol { font-style: normal; font-size: 9px; background: var(--c-clay); color: #fff; border-radius: 4px; padding: 0 4px; margin-left: 3px; vertical-align: 1px; }
.cal-cell .no-t { color: var(--c-clay-ink); font-weight: 600; }
.slot-add {
  flex: 1; border: 1px dashed var(--c-hairline-strong); border-radius: var(--r-2);
  background: transparent; color: var(--c-ink-4); font-size: 10px; padding: 5px 0;
  cursor: pointer; transition: all var(--d-1);
}
.slot-add:hover { border-color: var(--c-coral); color: var(--c-coral-ink); background: var(--c-coral-soft); }
.progress-wrap { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.progress { flex: 1; max-width: 320px; height: 6px; background: var(--c-hairline); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--c-coral); border-radius: 3px; transition: width var(--d-2); }
.progress-fill.full { background: var(--c-sage); }
.progress-text { font-size: var(--fs-xs); color: var(--c-ink-2); white-space: nowrap; }

/* ---------------- 日历 · 已排课时间点（按状态整格着色） ---------------- */
.cal-slot.booked { border-radius: var(--r-2); padding: 3px 5px; border: 1px solid transparent; }
.cal-slot.booked-pending { background: var(--c-amber-soft); border-color: var(--c-amber); }
.cal-slot.booked-confirmed { background: var(--c-sage-soft); border-color: var(--c-sage); }
.cal-slot.booked-ongoing { background: var(--c-coral-soft); border-color: var(--c-coral); }
.cal-slot.booked-done { background: var(--c-stone-soft); border-color: var(--c-stone); }
.cal-slot.booked-cancelled { background: var(--c-paper-sunk); border-color: var(--c-hairline); opacity: .6; }
.cal-slot.booked .sched-chip { background: transparent; border-left: 0; box-shadow: none; }
.cal-slot.booked .sched-chip.status-cancelled { text-decoration: line-through; }
/* 排课信息强调：老师加粗 / 未分配老师红色醒目 / 节次序号 / 取消按钮 */
.sched-chip .t { font-weight: 700; color: var(--c-ink); }
.sched-chip .no-t { color: var(--c-clay-ink); font-weight: 700; }
.sched-chip .seq { font-weight: 700; color: var(--c-ink-2); font-size: 10px; }
.sched-chip { position: relative; }
.chip-x {
  position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; line-height: 15px;
  border: none; border-radius: 50%; background: var(--c-clay-soft); color: var(--c-clay-ink);
  font-size: 10px; cursor: pointer; text-align: center; padding: 0;
}
.chip-x:hover { background: var(--c-clay); color: #fff; }

/* ---------------- 新建课程排班 · 课程产品信息卡 ---------------- */
.course-spec { margin-top: 2px; }
.spec-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5px 18px;
  background: var(--c-sage-soft); border-radius: var(--r-3); padding: 10px 14px;
}
.spec-grid .detail-k { color: var(--c-ink-3); font-size: var(--fs-2xs); }
.spec-grid .detail-v { font-weight: 500; }

/* ---------------- 机构校区/教室管理 ---------------- */
.campus-box { border: 1px solid var(--c-hairline); border-radius: var(--r-2); padding: 8px 10px; margin-bottom: 8px; background: var(--c-surface); }
.campus-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.campus-head b { font-size: var(--fs-sm); }
.campus-head span { color: var(--c-ink-3); font-size: var(--fs-xs); }
.campus-head .btn { margin-left: auto; }
.room-wrap { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.room-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--c-sage-soft); border: 1px solid var(--c-sage); border-radius: var(--r-pill);
  padding: 2px 8px; font-size: var(--fs-xs); color: var(--c-ink);
}
.room-chip .link { font-size: 10px; }

/* ---------------- 线索行内编辑 ---------------- */
.inline-sel {
  padding: 2px 4px; font-size: var(--fs-xs); border: 1px solid var(--c-hairline);
  border-radius: var(--r-2); background: var(--c-surface); color: var(--c-ink);
  max-width: 140px; cursor: pointer;
}
.inline-sel:hover { border-color: var(--c-coral); }

/* ---------------- 学员报读项目 ---------------- */
.course-chips {
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
  max-width: 300px; min-width: 120px;
}
.course-chips .room-chip {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.inline-check {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  border: 1px solid var(--c-hairline); border-radius: var(--r-2); margin-bottom: 6px;
  cursor: pointer; font-size: var(--fs-sm); background: var(--c-surface);
}
.inline-check:hover { border-color: var(--c-coral); }
