/* 源文件。改完后执行: npm run sync:css --prefix VideoCourse
   模板通过 <link> 同步加载 public 副本，避免等 JS bundle 注入造成 FOUC。 */
html.page--course_detail,
html.page--video_course_detail {
  --vc-topbar: 55px;
  height: 100%;
  overflow: hidden;
}

html.page--course_detail body,
html.page--video_course_detail body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

html.page--course_detail #panel,
html.page--video_course_detail #panel {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

html.page--course_detail .main,
html.page--video_course_detail .main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: var(--vc-topbar) 0 0 !important;
  height: auto !important;
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
}

html.page--course_detail .footer,
html.page--video_course_detail .footer {
  display: none !important;
}

.course-shell {
  --course-nav-width: 72px;
  --course-gutter-width: 8px;
  --course-middle-width: var(--vc-middle-boot, 320px);
  --vc-primary: #3370ff;
  --vc-primary-soft: #e8f0ff;
  --vc-primary-bg: #f0f4ff;
  --vc-text: #262626;
  --vc-text-2: #595959;
  --vc-text-3: #8c8c8c;
  --vc-border: #f0f0f0;
  --vc-bg-soft: #f5f5f5;
  --vc-bg-elevated: #fff;
  --vc-radius: 12px;
  --vc-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  display: grid;
  grid-template-columns:
    var(--course-nav-width)
    var(--course-gutter-width)
    var(--course-middle-width)
    var(--course-gutter-width)
    minmax(0, 1fr);
  width: 100%;
  max-width: none;
  height: calc(100dvh - var(--vc-topbar));
  min-height: 480px;
  overflow: hidden;
  background: var(--vc-bg-soft);
  color: var(--vc-text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 收起中栏 → 右栏铺满；收起右栏 → 中栏铺满。对应分隔条留在原位。 */
#video-course-app.course-shell.is-middle-collapsed {
  grid-template-columns:
    var(--course-nav-width)
    var(--course-gutter-width)
    0
    0
    minmax(0, 1fr);
}

#video-course-app.course-shell.is-video-collapsed {
  grid-template-columns:
    var(--course-nav-width)
    var(--course-gutter-width)
    minmax(0, 1fr)
    var(--course-gutter-width)
    0;
}

#video-course-app.course-shell.is-middle-collapsed [data-gutter="video"],
#video-course-app.course-shell.is-middle-collapsed [data-gutter="editor"] {
  visibility: hidden;
  pointer-events: none;
}

.course-editor,
[data-gutter="editor"] {
  display: none;
}

.course-shell.is-manage .course-editor {
  display: flex;
}

.course-shell.is-manage [data-gutter="editor"] {
  display: flex;
}

.course-shell.is-manage {
  grid-template-columns:
    var(--course-nav-width)
    var(--course-gutter-width)
    var(--course-middle-width)
    var(--course-gutter-width)
    minmax(0, 1fr);
}

.course-shell.is-manage .course-video,
.course-shell.is-manage [data-gutter="video"] {
  display: none !important;
}

#video-course-app.course-shell.is-manage.is-middle-collapsed {
  grid-template-columns:
    var(--course-nav-width)
    var(--course-gutter-width)
    0
    0
    minmax(0, 1fr);
}

#video-course-app.course-shell.is-manage.is-video-collapsed {
  grid-template-columns:
    var(--course-nav-width)
    var(--course-gutter-width)
    minmax(0, 1fr)
    var(--course-gutter-width)
    0;
}

#video-course-app.course-shell.is-manage.is-video-collapsed .course-editor {
  visibility: hidden;
  pointer-events: none;
}

#video-course-app.course-shell.is-manage.is-video-collapsed .course-middle {
  width: auto;
}

.course-shell.is-resizing {
  user-select: none;
  cursor: col-resize;
}

.course-shell.is-resizing .course-middle,
.course-shell.is-resizing .course-video,
.course-shell.is-resizing .course-editor {
  transition: none;
}

.course-shell.is-resizing iframe,
.course-shell.is-resizing video,
.course-shell.is-resizing .video-js {
  pointer-events: none;
}

.vc-rail {
  width: var(--course-nav-width);
  max-width: var(--course-nav-width);
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--vc-bg-elevated);
  border-right: 1px solid var(--vc-border);
  display: flex;
  flex-direction: column;
  padding: 12px 0 16px;
}

.vc-rail-item,
.vc-rail-item:link,
.vc-rail-item:visited,
.vc-rail-item:hover,
.vc-rail-item:active,
.vc-rail-item:focus {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 12px 0;
  box-sizing: border-box;
  color: var(--vc-text-2);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  box-shadow: none;
  border: 0;
  background: transparent;
}

.vc-rail-item:hover,
.vc-rail-item:focus {
  color: var(--vc-primary);
  background: var(--vc-primary-bg);
  outline: none;
}

.vc-rail-item.is-active {
  color: var(--vc-primary);
  background: var(--vc-primary-soft);
}

.vc-rail-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--vc-primary);
}

/* 管理面板：本课设置 + 统计 */
.vc-admin-overview {
  margin: 12px 14px 20px;
  padding: 14px;
  border-radius: 10px;
  background: var(--vc-bg-elevated);
  border: 1px solid var(--vc-border);
}

.vc-admin-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.vc-admin-overview-head .course-panel-heading {
  padding: 0;
}

.vc-admin-stats {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--vc-text-3);
}

.vc-admin-stats .vc-stat b {
  font-size: 14px;
  color: var(--vc-text);
  margin-right: 2px;
}

.vc-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.vc-admin-field--wide {
  grid-column: 1 / -1;
}

.vc-admin-form .vc-admin-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0;
  font-size: 12px;
  color: var(--vc-text-3);
}

.vc-admin-form .vc-admin-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--vc-text);
  cursor: pointer;
  user-select: none;
}

.vc-admin-form .vc-admin-check input {
  margin: 0;
  width: 16px;
  height: 16px;
  flex: none;
}

.vc-admin-form .textbox {
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

/* 管理面板输入框 / 下拉框：统一高度、左对齐 */
.vc-admin-form input.textbox,
.vc-admin-form textarea.textbox,
.vc-admin-form select.textbox {
  height: 32px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--vc-border);
  border-radius: 6px;
  background: var(--vc-bg-elevated);
  font-size: 13px;
  line-height: 32px;
  color: var(--vc-text);
  text-align: left;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vc-admin-form textarea.textbox {
  height: auto;
  min-height: 64px;
  padding: 8px 10px;
  line-height: 1.5;
  resize: vertical;
}

.vc-admin-form select.textbox {
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  cursor: pointer;
}

.vc-admin-form input.textbox:focus,
.vc-admin-form textarea.textbox:focus,
.vc-admin-form select.textbox:focus {
  outline: none;
  border-color: var(--vc-primary);
  box-shadow: 0 0 0 2px var(--vc-primary-soft);
}

.vc-admin-form input.textbox::placeholder,
.vc-admin-form textarea.textbox::placeholder {
  color: var(--vc-text-3);
}

.vc-admin-msg {
  margin-left: 8px;
  font-size: 12px;
  color: var(--vc-text-3);
}

.vc-admin-msg.is-ok {
  color: #34a853;
}

.vc-admin-msg.is-err {
  color: #d93025;
}

.vc-admin-tree {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vc-admin-toolbar {
  padding: 0 0 8px;
}

/* 扁平化：章/节/课时不要灰线、不要灰底框 */
.vc-tree-chapter,
.vc-tree-section,
.vc-tree-lesson {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

.vc-tree-chapter {
  padding-left: 0;
}

.vc-tree-section {
  padding-left: 12px;
  margin: 4px 0 0;
}

.vc-tree-lesson {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0 10px 12px;
  margin: 0;
  border-radius: 0;
  background: transparent;
}

.vc-row-main {
  display: flex;
  gap: 8px;
  align-items: center;
}

.vc-row-main .vc-tree-title {
  flex: 1 1 auto;
  min-width: 0;
}

.vc-row-main .vc-tree-dur {
  flex: none;
  width: 72px;
}

.vc-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.vc-row-meta .textbox {
  flex: 1 1 120px;
  min-width: 0;
}

.vc-tree-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.vc-tree-row .vc-tree-title {
  flex: 1 1 140px;
  min-width: 0;
}

.vc-tree-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.vc-tree-actions button {
  font-size: 11px;
  padding: 2px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  color: var(--vc-text-3);
}

.vc-tree-actions button:hover {
  color: var(--vc-primary);
  background: var(--vc-primary-bg);
}

.vc-tree-dur {
  max-width: 72px;
}

.vc-res-item.is-selected {
  box-shadow: inset 2px 0 0 var(--vc-primary);
}

/* 资料 / 作业条目：与课时一致的扁平灰底块 */
.vc-res-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  margin: 6px 0;
  border-radius: 8px;
  background: var(--vc-bg-soft);
  border: 1px solid transparent;
}

.vc-admin-form .vc-upload {
  font-size: 0;
  color: transparent;
}

/* 管理面板：折叠分组，组内滚动时表头粘住 */
.vc-admin-group {
  margin: 12px 14px 20px;
  border-radius: 10px;
  background: var(--vc-bg-elevated);
  border: 1px solid var(--vc-border);
  overflow: clip;
}

.vc-admin-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--vc-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.vc-admin-group > summary::-webkit-details-marker {
  display: none;
}

.vc-admin-group > summary svg {
  width: 16px;
  height: 16px;
  color: var(--vc-text-3);
  transition: transform 120ms ease;
  flex: none;
}

.vc-admin-group[open] > summary svg {
  transform: rotate(180deg);
}

.vc-admin-group-body {
  padding: 0;
  overflow: visible;
}

.vc-admin-group-body > .help-text {
  padding: 8px 12px 0;
}

.vc-admin-group-body .vc-admin-tree {
  padding: 0 12px 12px;
}

/* 行：无底框 */
.vc-admin-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 0;
  margin: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.vc-admin-row--section,
.vc-admin-row--chapter {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
}

.vc-admin-row--section .vc-tree-title,
.vc-admin-row--chapter .vc-tree-title {
  flex: 1 1 auto;
  min-width: 0;
}

.vc-admin-actions {
  padding: 12px 14px 16px;
  margin: 0;
  border-top: 1px solid var(--vc-border);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background: transparent;
}

#vc-admin-save,
.vc-upload-btn {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: var(--vc-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
  user-select: none;
}

.vc-upload-btn .vc-upload-label {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  line-height: 1;
}

#vc-admin-save:hover,
.vc-upload-btn:hover {
  background: #2b62e6;
}

#vc-admin-save:active,
.vc-upload-btn:active {
  background: #2456cc;
}

.vc-upload-btn input.vc-upload {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  border: 0;
  cursor: pointer;
  font-size: 0;
  appearance: none;
  -webkit-appearance: none;
}

.vc-upload-btn input.vc-upload::-webkit-file-upload-button {
  display: none;
}

.vc-upload-btn input.vc-upload::file-selector-button {
  display: none;
}

.vc-media-source {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.vc-media-source .textbox,
.vc-media-source .vc-tree-url {
  flex: 1 1 auto;
  min-width: 0;
}

.vc-upload-status {
  flex: none;
  align-self: center;
  font-size: 11px;
  line-height: 32px;
  color: var(--vc-text-3);
  white-space: nowrap;
}

.vc-admin-form .vc-upload::file-selector-button {
  display: none;
}

.vc-admin-form .vc-upload::-webkit-file-upload-button {
  display: none;
}

.vc-timeline-marks {
  position: absolute;
  inset: -8px 0;
  pointer-events: none;
  z-index: 5;
}

.vc-timeline-span {
  position: absolute;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  background: rgba(59, 130, 246, 0.35);
  pointer-events: none;
}

.vc-timeline-mark {
  position: absolute;
  top: 0;
  width: 8px;
  height: 100%;
  margin-left: -4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: #3b82f6;
  pointer-events: auto;
  cursor: pointer;
}

.vc-timeline-mark:hover {
  background: #f59e0b;
}

.vc-rail-icon {
  width: 22px;
  height: 22px;
  display: block;
  flex: none;
}

.vc-rail-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
}

.course-gutter {
  position: relative;
  z-index: 30;
  cursor: col-resize;
  background: transparent;
}

.course-gutter::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  margin-left: -0.5px;
  background: var(--vc-border);
  z-index: 1;
  pointer-events: none;
}

.course-gutter:hover:not(:has(.course-gutter-icon:hover))::after,
.course-gutter.is-sash-active::after {
  width: 4px;
  margin-left: -2px;
  background: #0078d4;
  box-shadow: 0 0 0 1px rgba(0, 120, 212, 0.18);
}

.course-gutter-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 44px;
  margin-left: -12px;
  margin-top: -22px;
  padding: 0;
  appearance: none;
  font: inherit;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--vc-bg-elevated);
  border: 1px solid var(--vc-border);
  color: var(--vc-text-3);
  cursor: pointer;
  z-index: 40;
  box-shadow: var(--vc-shadow-card);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.course-gutter-icon:hover {
  color: var(--vc-primary);
  border-color: var(--vc-primary-soft);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.course-gutter-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  transform-origin: center;
}

[data-gutter="video"] .course-gutter-icon svg,
[data-gutter="editor"] .course-gutter-icon svg {
  transform: scaleX(-1);
}

.course-shell.is-middle-collapsed [data-gutter="middle"] .course-gutter-icon svg {
  transform: scaleX(-1);
}

.course-shell.is-video-collapsed [data-gutter="video"] .course-gutter-icon svg,
.course-shell.is-video-collapsed [data-gutter="editor"] .course-gutter-icon svg {
  transform: none;
}

.course-shell.is-video-collapsed [data-gutter="video"],
.course-shell.is-video-collapsed [data-gutter="editor"] {
  cursor: default;
}

.course-shell.is-video-collapsed [data-gutter="video"] .course-gutter-icon,
.course-shell.is-video-collapsed [data-gutter="editor"] .course-gutter-icon {
  cursor: pointer;
}

.course-middle,
.course-video {
  min-width: 0;
  overflow: hidden;
}

.course-shell:not(.is-resizing):not(.is-middle-collapsed):not(.is-video-collapsed) .course-middle {
  width: var(--course-middle-width);
}

.course-shell:not(.video-course-layout-ready) .course-middle,
.course-shell:not(.video-course-layout-ready) .course-video {
  transition: none;
}

#video-course-app.course-shell.is-middle-collapsed .course-middle {
  visibility: hidden;
  pointer-events: none;
}

#video-course-app.course-shell.is-manage.is-middle-collapsed [data-gutter="editor"] {
  visibility: hidden;
  pointer-events: none;
}

#video-course-app.course-shell.is-video-collapsed .course-video,
#video-course-app.course-shell.is-manage.is-video-collapsed .course-editor {
  visibility: hidden;
  pointer-events: none;
}

#video-course-app.course-shell.is-video-collapsed .course-middle {
  width: auto;
}

.course-middle {
  border: none;
  display: flex;
  flex-direction: column;
  background: var(--vc-bg-elevated);
}

.course-middle-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 18px;
  height: 52px;
  flex: none;
  border-bottom: 1px solid var(--vc-border);
  font-weight: 600;
  font-size: 14px;
  color: var(--vc-text);
  letter-spacing: 0.02em;
  gap: 8px;
}

#middle-title.is-hidden,
#vc-manage-tabs.is-hidden,
#vc-editor-save-wrap.is-hidden,
.course-editor-content.is-hidden {
  display: none !important;
}

.vc-manage-tabs {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  height: auto;
  min-height: 100%;
  border-bottom: 2px solid var(--vc-border);
}

.vc-manage-tab {
  height: auto;
  padding: 12px 16px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 0;
  background: transparent;
  color: var(--vc-text-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.vc-manage-tab:hover {
  color: var(--vc-primary);
  background: transparent;
}

.vc-manage-tab.is-on {
  color: var(--vc-primary);
  font-weight: 600;
  background: transparent;
  border-bottom-color: var(--vc-primary);
}

.course-middle-content {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0 20px;
  display: flex;
  flex-direction: column;
}

.course-panel.is-hidden {
  display: none;
}

.course-panel[data-middle-panel="resources"] {
  position: relative;
  flex: 1;
  min-height: 100%;
}

.course-resources-lock {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.88);
}

.course-panel[data-middle-panel="resources"].is-forbidden {
  overflow: hidden;
}

.course-panel[data-middle-panel="resources"].is-forbidden .course-panel-block {
  visibility: hidden;
}

.course-panel[data-middle-panel="resources"].is-forbidden .course-resources-lock,
.course-panel[data-middle-panel="resources"].is-forbidden .course-resources-lock[hidden] {
  display: flex !important;
}

.course-resources-lock p {
  margin: 0;
  max-width: 18em;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--vc-text-2);
}

.course-panel-block {
  margin: 12px 14px 20px;
}

.course-panel-heading {
  padding: 4px 2px 10px;
  font-weight: 600;
  font-size: 12px;
  color: var(--vc-text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.course-middle-content::-webkit-scrollbar {
  width: 6px;
}
.course-middle-content::-webkit-scrollbar-thumb {
  background: rgba(31, 35, 41, 0.14);
  border-radius: 3px;
}

.course-resource-item,
.course-exam-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  margin: 4px 0;
  border-radius: var(--vc-radius);
  font-size: 13px;
  color: var(--vc-text);
  background: var(--vc-bg-soft);
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.course-resource-kind {
  flex: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: #595959;
  background: #f0f0f0;
  border-radius: 4px;
  padding: 2px 8px;
  line-height: 1.5;
}

.course-resource-item:hover,
.course-exam-item:hover {
  background: #fafafa;
  border-color: transparent;
}

a.course-exam-item {
  text-decoration: none;
  color: inherit;
}

.course-resource-item.is-active {
  background: var(--vc-primary-soft);
  border-color: var(--vc-primary-soft);
  color: var(--vc-primary);
}

.course-resource-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.course-resource-item,
.course-resource-item.is-ext {
  text-decoration: none;
  color: inherit;
}

.course-resource-item.is-ext .course-resource-title {
  color: #1677ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.course-resource-item.is-ext .course-resource-title::after {
  content: "↗";
  margin-left: 4px;
  font-size: 11px;
  text-decoration: none;
}

.course-resource-item.is-ext:hover .course-resource-title {
  color: #0958d9;
}

.course-resource-time {
  flex: none;
  font-size: 12px;
  color: var(--vc-text-3);
  font-variant-numeric: tabular-nums;
}

.course-resource-empty {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--vc-text-3);
}

.course-exercise-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin: 4px 0;
  border-radius: var(--vc-radius);
  font-size: 13px;
  color: var(--vc-text);
  background: var(--vc-bg-soft);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.course-exercise-item:hover {
  background: #fafafa;
  border-color: transparent;
  color: var(--vc-text);
}

.course-exercise-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-exercise-badge {
  flex: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: #595959;
  background: #f0f0f0;
  border-radius: 4px;
  padding: 2px 8px;
  line-height: 1.5;
}

.vc-exercise-pass {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  color: #1e8e3e;
  background: #e8f8ef;
  border-radius: 99px;
  padding: 1px 6px;
}

.vc-exercise-miss {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--vc-text-3);
}

.course-middle-content:has([data-middle-panel="resource-preview"]:not(.is-hidden)) {
  overflow: hidden;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}

.course-panel[data-middle-panel="resource-preview"]:not(.is-hidden) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
}

.resource-preview-toolbar {
  padding: 8px 16px 0;
  flex: none;
}

.resource-preview-back {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--vc-primary);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  box-shadow: none;
}

.resource-preview-heading {
  padding: 8px 16px 4px;
  font-size: 14px;
  font-weight: 600;
  flex: none;
}

.resource-preview-body {
  padding: 8px 16px 20px;
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.resource-preview-body.is-embed {
  padding: 0;
  overflow: hidden;
}

.resource-preview-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  background: #fff;
}

.resource-preview-img {
  display: block;
  max-width: 100%;
  height: auto;
}

.resource-preview-pre {
  margin: 0;
  padding: 14px;
  border-radius: 10px;
  background: var(--vc-bg-soft);
  border: 1px solid var(--vc-border);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--vc-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.resource-preview-pre.is-code {
  white-space: pre;
  overflow: auto;
}

.course-exam-status {
  font-size: 12px;
  color: var(--vc-text-3);
  flex: none;
}

.course-catalog {
  padding-top: 6px;
}

.catalog-chapter {
  margin: 4px 8px 10px;
}

.catalog-chapter-title {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13px;
  color: var(--vc-text);
  background: #fafafa;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
}

[data-middle-panel="study"] .catalog-chapter-chevron {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid #98a2b3;
  flex: none;
  transition: transform 0.15s ease;
  transform: rotate(90deg);
}

[data-middle-panel="study"] .catalog-chapter.is-collapsed .catalog-chapter-chevron {
  transform: rotate(0deg);
}

[data-middle-panel="study"] .catalog-chapter.is-collapsed .catalog-lesson {
  display: none;
}

[data-middle-panel="study"] .catalog-chapter-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-section-title {
  padding: 4px 10px 6px;
  font-size: 12px;
  color: var(--vc-text-3);
  font-weight: 500;
}

.catalog-lesson {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px 9px 16px;
  color: var(--vc-text-2);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.catalog-lesson:hover {
  background: #fafafa;
  color: var(--vc-text);
}

.catalog-lesson.is-current {
  background: var(--vc-primary-soft);
  color: var(--vc-primary);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--vc-primary);
}

.catalog-lesson-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d0d5dd;
  flex: none;
}

.catalog-lesson-lock {
  width: 16px;
  height: 16px;
  flex: none;
  color: #98a2b3;
}

.catalog-lesson.is-locked {
  color: var(--vc-text-3);
}

.catalog-lesson.is-current .catalog-lesson-lock {
  color: var(--vc-primary);
}

/* 学生目录三色光点：当前课只改行背景，不改光点色 */
[data-middle-panel="study"] .catalog-lesson.is-idle .catalog-lesson-dot {
  background: #d0d5dd;
}

[data-middle-panel="study"] .catalog-lesson.is-learning .catalog-lesson-dot {
  background: #e6a817;
}

[data-middle-panel="study"] .catalog-lesson.is-done .catalog-lesson-dot {
  background: #1e8e3e;
}

[data-middle-panel="study"] .catalog-lesson.is-done:not(.is-current) .catalog-lesson-title {
  color: var(--vc-text-3);
}

.catalog-lesson.is-current .catalog-lesson-title {
  color: var(--vc-primary);
}

.catalog-lesson-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
}

.catalog-lesson-duration {
  font-size: 12px;
  color: #595959;
  background: #f0f0f0;
  border-radius: 4px;
  padding: 2px 8px;
  line-height: 1.5;
  flex: none;
  font-variant-numeric: tabular-nums;
}

.vc-manage-catalog .catalog-chapter-title,
.vc-manage-catalog .catalog-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.vc-manage-catalog .vc-catalog-title {
  flex: 1 1 auto;
  min-width: 0;
  height: 28px !important;
  padding: 0 8px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font: inherit;
  font-weight: inherit;
  color: inherit;
}

.vc-manage-catalog .catalog-chapter-title .vc-catalog-title {
  font-weight: 600;
  font-size: 13px;
}

.vc-manage-catalog .catalog-section-title .vc-catalog-title {
  font-weight: 500;
  font-size: 12px;
  color: var(--vc-text-3);
}

.vc-manage-catalog .vc-struct-ops {
  display: flex;
}

.vc-manage-catalog .vc-struct-ops button:not(.vc-ops-keep) {
  display: none;
}

.vc-manage-catalog .catalog-chapter-title:hover .vc-struct-ops button,
.vc-manage-catalog .catalog-chapter-title:focus-within .vc-struct-ops button,
.vc-manage-catalog .catalog-section-title:hover .vc-struct-ops button,
.vc-manage-catalog .catalog-section-title:focus-within .vc-struct-ops button {
  display: inline-flex;
}

.vc-manage-catalog .catalog-lesson {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vc-manage-catalog .catalog-lesson-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.vc-manage-catalog .catalog-lesson:hover .vc-struct-ops button {
  display: inline-flex;
}

.vc-catalog-meta {
  display: block;
  margin: 4px 12px 8px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--vc-text-3);
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}

.vc-catalog-meta.is-active,
.vc-catalog-meta:hover {
  color: var(--vc-primary);
  background: var(--vc-primary-bg);
}

.vc-manage-catalog .vc-struct-add {
  margin: 4px 12px 12px;
}

.course-video {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #0d1117;
}

.course-video-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: 52px;
  flex: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(#0d1117, #0d1117);
  backdrop-filter: blur(6px);
}

.course-video-header h1 {
  flex: 1;
  font-size: 14px;
  margin: 0;
  padding: 0 12px;
  text-align: center;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-video-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background: radial-gradient(ellipse at 30% 20%, #111826 0%, #000 60%);
  min-height: 0;
  width: 100%;
  min-width: 0;
}

.course-video-frame {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
}

.course-video-stage.is-embed .course-video-frame,
.course-video-stage.is-empty .course-video-frame,
.course-video-stage.is-forbidden .course-video-frame {
  display: none;
}

.course-video-stage .course-native-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.course-video-stage .course-native-video.is-hidden,
.course-video-stage.is-embed .course-native-video,
.course-video-stage.is-empty .course-native-video,
.course-video-stage.is-forbidden .course-native-video {
  display: none !important;
}

.course-video-lock {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.course-video-stage.is-forbidden .course-video-lock,
.course-video-stage.is-forbidden .course-video-lock[hidden] {
  display: flex !important;
}

.course-video-lock p {
  margin: 0;
  max-width: 28em;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.course-video-promo {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: rgba(0, 0, 0, 0.62);
  pointer-events: auto;
}

.course-video-stage.is-promo .course-video-promo,
.course-video-stage.is-promo .course-video-promo[hidden] {
  display: flex !important;
}

.course-video-promo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 36em;
  text-align: center;
}

.course-video-promo-title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: #fff;
}

.course-video-promo-tags {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.course-video-promo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.course-video-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

#course-video-promo-start[hidden] {
  display: none !important;
}

.course-video-promo-btn--primary {
  color: #fff;
  background: var(--vc-primary, #3370ff);
  border-color: var(--vc-primary, #3370ff);
}

.course-video-promo-btn--primary:hover {
  filter: brightness(1.08);
}

.course-video-promo-btn--ghost {
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
}

.course-video-promo-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .course-video-promo-title {
    font-size: 24px;
  }
}

.vc-watermark {
  position: absolute;
  inset: 0 0 48px 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.vc-watermark-mark {
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  transform: rotate(-24deg);
  transform-origin: left center;
}

.course-native-video::cue,
.course-native-video::-webkit-media-text-track-display {
  display: none !important;
}

.vc-quality {
  position: absolute;
  right: calc(40px + 36px + 92px + 52px);
  bottom: 38px;
  z-index: 9;
  pointer-events: none;
}

.vc-quality-btn,
.vc-quality-item {
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.vc-quality-btn {
  min-width: 44px;
  height: 28px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 28px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.35);
}

.vc-quality-btn:hover,
.vc-quality.is-open .vc-quality-btn {
  background: rgba(255, 255, 255, 0.12);
}

.vc-quality-menu {
  display: none;
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  top: auto;
  min-width: 84px;
  padding: 6px 0;
  border-radius: 6px;
  background: rgba(20, 20, 20, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

.vc-quality.is-open .vc-quality-menu {
  display: block;
}

.vc-quality-item {
  display: block;
  width: 100%;
  padding: 7px 12px;
  text-align: center;
  font-size: 13px;
  background: transparent;
}

.vc-quality-item:hover,
.vc-quality-item.is-on {
  background: rgba(255, 255, 255, 0.14);
}

.course-video-stage:fullscreen .vc-quality,
.course-video-stage:-webkit-full-screen .vc-quality {
  right: calc(48px + 36px + 92px + 52px);
  bottom: 46px;
}

@media (max-width: 768px), (max-height: 500px) and (orientation: landscape) {
  .vc-quality {
    right: 10px;
    bottom: calc(54px + env(safe-area-inset-bottom, 0px));
  }

  .vc-quality-btn {
    min-width: 48px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    line-height: 36px;
    background: rgba(0, 0, 0, 0.5);
  }

  .vc-quality-menu {
    min-width: 108px;
    bottom: calc(100% + 8px);
  }

  .vc-quality-item {
    padding: 11px 16px;
    font-size: 14px;
  }

  .course-video-stage:fullscreen .vc-quality,
  .course-video-stage:-webkit-full-screen .vc-quality {
    right: 12px;
    bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }
}

.course-video-stage:fullscreen,
.course-video-stage:-webkit-full-screen {
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
}

.course-video-stage:fullscreen .course-video-frame,
.course-video-stage:-webkit-full-screen .course-video-frame,
.course-video-stage:fullscreen .vc-watermark,
.course-video-stage:-webkit-full-screen .vc-watermark {
  width: 100%;
  height: 100%;
}

.course-video-stage:fullscreen .vc-watermark,
.course-video-stage:-webkit-full-screen .vc-watermark {
  inset: 0 0 48px 0;
  height: auto;
}

.course-video-stage:fullscreen,
.course-video-stage:-webkit-full-screen {
  width: 100%;
  height: 100%;
  background: #000;
}

.vc-native-mark-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 44px;
  height: 14px;
  pointer-events: none;
  z-index: 2;
}

.vc-native-mark-bar .vc-timeline-mark {
  pointer-events: auto;
}

.course-video-embed {
  display: block;
  flex: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.course-video-link-hint {
  margin: auto;
  max-width: 420px;
  padding: 24px;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  line-height: 1.6;
}

.course-video-link-hint a {
  display: inline-block;
  margin-top: 12px;
}

.course-video-placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  padding: 24px 32px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

.course-ai-assistant.collapsed {
  display: none;
}

/* Rail */
.vc-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  background: #fff;
  border-right: 1px solid var(--vc-border);
  overflow-y: auto;
  overflow-x: hidden;
  flex: none;
}

.vc-rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  color: var(--vc-text-2);
  cursor: pointer;
  flex: none;
  box-sizing: border-box;
  padding: 0;
  user-select: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.vc-rail-item .vc-rail-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.vc-rail-item .vc-rail-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

.vc-rail-item:hover {
  background: var(--vc-bg-soft);
  color: var(--vc-text);
}

.vc-rail-item.is-active {
  background: var(--vc-primary-bg);
  color: var(--vc-primary);
}

.vc-rail-back,
.vc-rail-back:link,
.vc-rail-back:visited,
.vc-rail-back:hover,
.vc-rail-back:active,
.vc-rail-back:focus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 40px;
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: var(--vc-text-2);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  flex: none;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.vc-rail-back .vc-rail-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.vc-rail-back:hover,
.vc-rail-back:focus {
  color: var(--vc-primary);
  background: var(--vc-bg-soft);
  outline: none;
}

.vc-rail-admin {
  margin-top: auto;
}

.vc-upload {
  font-size: 0;
}

.page-video-course-list.vc-list,
.page-video-course-list.vc-home {
  max-width: 1080px;
  margin: 24px auto;
  padding: 0 16px 40px;
}

.vc-home-head {
  margin-bottom: 20px;
}

.vc-home-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--vc-primary, #2d6cdf);
}

.vc-home-head h1 {
  margin: 0;
  font-size: 22px;
}

.vc-home-hero {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  border: 1px solid var(--vc-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--vc-bg-elevated);
}

.vc-home-cover {
  height: 100%;
  min-height: 240px;
}

.vc-home-cover .vc-list-cover {
  height: 100%;
  min-height: 240px;
}

.vc-home-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 28px 28px 0;
  min-width: 0;
}

.vc-home-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}

.vc-home-meta,
.vc-home-desc {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--vc-text-2);
  line-height: 1.7;
}

.vc-home-desc {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vc-home-enter {
  align-self: flex-start;
  margin-top: 10px;
}

.vc-home-enter.is-disabled {
  pointer-events: none;
  opacity: 0.7;
  cursor: default;
}

@media (max-width: 768px) {
  .vc-home-hero {
    grid-template-columns: 1fr;
  }
  .vc-home-cover,
  .vc-home-cover .vc-list-cover {
    min-height: 180px;
    height: 180px;
  }
  .vc-home-info {
    padding: 8px 20px 24px;
  }
  .vc-home-title {
    font-size: 22px;
  }
}

.vc-list-head h1 {
  margin: 0 0 8px;
  font-size: 22px;
}

.vc-list-create {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
  align-items: center;
}

.vc-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.vc-list-card {
  display: block;
  border: 1px solid var(--vc-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--vc-bg-elevated);
  text-decoration: none;
  color: inherit;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.vc-list-card:hover {
  border-color: var(--vc-primary-soft);
  box-shadow: 0 6px 24px rgba(31, 35, 41, 0.08);
  transform: translateY(-2px);
}

.vc-list-cover-wrap {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: #eef2f7;
}

.vc-list-cover {
  height: 140px;
  width: 100%;
  object-fit: cover;
  background: #eef2f7;
}

.vc-list-cover-wrap .vc-list-cover {
  height: 100%;
}

.vc-list-cover.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #3370ff, #7aa7ff);
}

.vc-list-ended-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.55);
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.vc-list-card.is-static {
  cursor: default;
}

.vc-list-card.is-static:hover {
  border-color: var(--vc-border);
  box-shadow: none;
  transform: none;
}

.vc-schedule-status {
  margin: 0;
  font-size: 13px;
  color: #4e5969;
}

.vc-schedule-status.is-open {
  color: #1f7a4d;
}

.vc-schedule-status.is-closed {
  color: #c45613;
}

.vc-list-body {
  padding: 14px 16px 16px;
}

.vc-list-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-list-lock {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: #c45613;
  background: #fff3e8;
  vertical-align: middle;
}

.vc-list-card.is-locked {
  opacity: 0.92;
}

.vc-users-panel {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f7f8fa;
}

.vc-users-card {
  border: 1px solid var(--vc-border);
  border-radius: 12px;
  background: var(--vc-bg-elevated);
  box-shadow: var(--vc-shadow-card);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vc-users-card-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--vc-text);
}

.vc-users-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.vc-users-card-hint {
  margin: 0;
  font-size: 12px;
}

.vc-users-count {
  flex: none;
  min-width: 22px;
  padding: 4px 12px;
  border-radius: 12px;
  background: var(--vc-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.vc-access-mode.textbox {
  max-width: 240px;
}

.vc-access-mode-hint {
  margin: 0;
}

.vc-access-uids.textbox,
#vc-access-uids {
  min-height: 72px !important;
  height: auto !important;
  line-height: 1.5 !important;
  padding: 8px 10px !important;
}

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

.vc-access-days {
  width: 140px !important;
  flex: none;
}

.vc-access-msg {
  margin: 0;
  min-height: 18px;
  font-size: 12px;
  color: var(--vc-text-3);
}

.vc-access-msg.is-ok {
  color: #1e8e3e;
}

.vc-access-msg.is-err {
  color: #d93025;
}

.vc-access-msg.is-busy {
  color: var(--vc-primary);
}

.vc-access-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vc-stat {
  font-size: 12px;
  color: var(--vc-text-3);
  background: #f3f4f6;
  border-radius: 99px;
  padding: 3px 10px;
}

.vc-stat b {
  color: var(--vc-text);
  font-weight: 600;
  margin-left: 2px;
}

.vc-stat.is-expired b {
  color: #d93025;
}

.vc-stat.is-active b {
  color: #1e8e3e;
}

.vc-access-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

#vc-access-search {
  flex: 1 1 180px;
  min-width: 0;
  height: 32px;
}

#vc-access-filter {
  flex: none;
  width: 132px;
  height: 32px;
}

.vc-access-select-all {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--vc-text-3);
  cursor: pointer;
  white-space: nowrap;
}

.vc-access-bulk {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vc-access-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.vc-access-empty {
  padding: 12px 4px;
}

.vc-access-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.vc-access-table th,
.vc-access-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--vc-border);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.vc-access-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--vc-text-3);
}

.vc-access-table tbody tr:hover {
  background: rgba(45, 108, 223, 0.04);
}

.vc-access-table tr.is-expired td {
  opacity: 0.72;
}

.vc-access-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.vc-access-avatar {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--vc-primary-bg);
  color: var(--vc-primary);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vc-access-name {
  font-weight: 500;
  color: var(--vc-text);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.vc-access-uid {
  color: var(--vc-text-3);
  font-size: 12px;
}

.vc-access-source {
  color: var(--vc-text-3);
  font-size: 12px;
}

.vc-access-expire {
  color: var(--vc-text-2);
}

.vc-access-status {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 500;
}

.vc-access-status.is-active {
  color: #1e8e3e;
  background: #e6f4ea;
}

.vc-access-status.is-permanent {
  color: var(--vc-primary);
  background: var(--vc-primary-bg);
}

.vc-access-status.is-expiring {
  color: #b06000;
  background: #feefc3;
}

.vc-access-status.is-expired {
  color: #d93025;
  background: #fce8e6;
}

.vc-access-status.is-pending {
  color: #c45613;
  background: #fff3e8;
}

#vc-schedule-open,
#vc-schedule-close {
  width: 196px !important;
  flex: none;
}

.vc-access-op {
  text-align: right;
}

.vc-access-remove {
  border: none;
  background: transparent;
  color: #d93025;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}

.vc-access-remove:hover {
  background: #fce8e6;
}

#vc-users-panel button[disabled] {
  opacity: 0.55;
  cursor: default;
}

.vc-access-role.textbox,
.vc-access-role-select.textbox {
  width: 140px !important;
  flex: none;
  height: 32px;
}

.vc-access-role-cell .vc-access-role-select {
  min-width: 112px;
  max-width: 160px;
}

.vc-roles-layout {
  display: flex;
  gap: 14px;
  align-items: stretch;
  min-height: 360px;
}

.vc-roles-nav {
  flex: 0 0 220px;
  min-width: 180px;
}

.vc-roles-detail {
  flex: 1;
  min-width: 0;
}

.vc-roles-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vc-roles-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--vc-text);
  font-size: 13px;
  padding: 8px 10px;
  cursor: pointer;
}

.vc-roles-item:hover {
  background: rgba(45, 108, 223, 0.06);
}

.vc-roles-item.is-on {
  background: var(--vc-primary-bg);
  color: var(--vc-primary);
  font-weight: 600;
}

.vc-roles-create {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vc-roles-chapters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vc-roles-chapter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--vc-text);
  cursor: pointer;
}

@media (max-width: 900px) {
  .vc-roles-layout {
    flex-direction: column;
  }

  .vc-roles-nav {
    flex-basis: auto;
  }
}

.vc-list-meta,
.vc-list-desc {
  font-size: 12px;
  color: var(--vc-text-2);
  line-height: 1.6;
}

.vc-list-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vc-unavailable {
  max-width: 560px;
  margin: 48px auto;
  padding: 0 16px;
}

@media (max-width: 1100px) {
  .course-shell {
    --course-middle-width: 280px;
  }
}

.course-editor {
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--vc-bg-elevated);
  border: none;
}

.course-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 52px;
  flex: none;
  border-bottom: 1px solid var(--vc-border);
  font-weight: 600;
  font-size: 14px;
}

.vc-editor-save {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vc-confirm {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.45);
}

.vc-confirm[hidden] {
  display: none;
}

.vc-confirm-card {
  width: min(420px, 100%);
  padding: 20px 20px 16px;
  border-radius: 12px;
  background: var(--vc-bg-elevated, #fff);
  box-shadow: var(--vc-shadow-card, 0 2px 8px rgba(0, 0, 0, 0.08));
}

.vc-confirm-text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--vc-text, #262626);
}

.vc-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

#vc-admin-save:disabled {
  opacity: 0.65;
  cursor: wait;
}

.course-editor-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.vc-editor-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vc-editor-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.vc-editor-title {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-editor-sub {
  flex: none;
  font-size: 12px;
  color: var(--vc-text-3);
}

.vc-editor-card {
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius);
  background: var(--vc-bg-elevated);
  box-shadow: var(--vc-shadow-card);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vc-editor-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--vc-text);
}

.vc-editor-chip {
  flex: none;
  min-width: 20px;
  padding: 1px 7px;
  border-radius: 99px;
  background: var(--vc-primary-bg);
  color: var(--vc-primary);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  margin-left: 6px;
  vertical-align: middle;
}

.vc-res-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.vc-res-kind {
  flex: none;
  font-size: 12px;
  font-weight: 500;
  color: #595959;
  background: #f0f0f0;
  border-radius: 4px;
  padding: 2px 8px;
  line-height: 1.5;
  white-space: nowrap;
}

.vc-res-split {
  margin: 8px 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--vc-text-3);
}

.vc-editor-item-head {
  display: flex;
  gap: 8px;
  align-items: center;
}

.vc-editor-item-head .textbox {
  flex: 1 1 auto;
  min-width: 0;
}

.vc-editor-type {
  flex: none;
  width: 84px;
}

.vc-editor-pid {
  flex: none;
  width: 110px;
}

.vc-ex-required {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--vc-text-2);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.vc-ex-required input {
  margin: 0;
}

.vc-ex-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--vc-text-3, #888);
}

.vc-ex-hint.is-err {
  color: #c0392b;
}

.vc-editor-row--compact {
  gap: 6px;
}

.vc-editor-row--compact .textbox {
  flex: 1 1 auto;
  min-width: 0;
}

.vc-editor-row--compact .vc-tree-dur {
  flex: none;
  width: 72px;
}

.vc-mini {
  flex: none;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--vc-border);
  border-radius: 6px;
  background: #fff;
  color: var(--vc-text-2);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.vc-mini:hover {
  border-color: var(--vc-primary);
  color: var(--vc-primary);
}

.vc-mini--danger {
  color: #d93025;
}

.vc-mini--danger:hover {
  border-color: #d93025;
  color: #d93025;
}

.vc-add {
  align-self: flex-start;
  height: 30px;
  padding: 0 12px;
  border: 1px dashed var(--vc-border);
  border-radius: 6px;
  background: transparent;
  color: var(--vc-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.vc-add:hover {
  border-color: var(--vc-primary);
  background: var(--vc-primary-bg);
}

.vc-editor-kicker {
  margin: 0;
  font-size: 13px;
  color: var(--vc-text-2);
}

.vc-editor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.vc-editor-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vc-editor-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid var(--vc-border);
}

.vc-editor-item.is-selected {
  box-shadow: inset 2px 0 0 var(--vc-primary);
  padding-left: 8px;
}

.vc-video-card {
  border: 1px dashed var(--vc-border);
  border-radius: 10px;
  padding: 16px;
  background: var(--vc-bg-soft);
}

.vc-video-card--empty {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--vc-text-2);
}

.vc-video-choose,
.vc-video-card--ready {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vc-choice {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--vc-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.vc-choice:hover {
  border-color: var(--vc-primary);
  color: var(--vc-primary);
}

.vc-linkish {
  border: 0;
  background: none;
  color: var(--vc-text-3);
  cursor: pointer;
  align-self: flex-start;
}

.vc-progress {
  height: 8px;
  border-radius: 99px;
  background: #e8eaed;
  overflow: hidden;
}

.vc-progress-bar {
  display: block;
  height: 100%;
  background: var(--vc-primary);
  border-radius: 99px;
  transition: width 0.16s linear;
}

.vc-progress.is-indeterminate .vc-progress-bar {
  width: 40% !important;
  animation: vc-progress-slide 1.1s ease-in-out infinite;
}

@keyframes vc-progress-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

.vc-video-ok,
.vc-video-filename {
  margin: 0;
  font-weight: 600;
}

.vc-video-meta {
  margin: 0;
  font-size: 12px;
  color: var(--vc-text-2);
}

.vc-admin-form {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.vc-admin-tree {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px 10px 16px;
}

.vc-struct {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vc-struct-course,
.vc-struct-add {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--vc-text-2);
  font-size: 13px;
}

.vc-struct-course.is-active,
.vc-struct-row.is-active,
.vc-struct-lesson.is-active {
  background: var(--vc-primary-bg);
  color: var(--vc-primary);
}

.vc-struct-add {
  color: var(--vc-primary);
  font-weight: 600;
}

.vc-struct-children {
  padding-left: 16px;
}

.vc-struct-row,
.vc-struct-lesson {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 6px;
  border-radius: 8px;
}

.vc-struct-ico {
  flex: none;
  width: 18px;
  text-align: center;
  font-size: 13px;
}

.vc-struct-title {
  flex: 1 1 auto;
  min-width: 0;
  height: 28px !important;
  padding: 0 8px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.vc-struct-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-struct-ops {
  display: none;
  flex: none;
  gap: 2px;
}

.vc-struct-ops button {
  border: 0;
  background: transparent;
  color: var(--vc-text-3);
  font-size: 11px;
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 4px;
}

.vc-struct-ops button:hover {
  color: var(--vc-primary);
  background: #fff;
}

.vc-manage-catalog .vc-ops-keep {
  color: var(--vc-primary);
  font-weight: 600;
}

[data-middle-panel="manage"] {
  height: 100%;
}

.omnibar-toggle,
.omnibar {
  display: none !important;
}

@media (max-width: 768px) {
  #video-course-app.course-shell,
  #video-course-app.course-shell.is-middle-collapsed,
  #video-course-app.course-shell.is-video-collapsed,
  #video-course-app.course-shell.is-manage,
  #video-course-app.course-shell.is-manage.is-middle-collapsed,
  #video-course-app.course-shell.is-manage.is-video-collapsed {
    --vc-mobile-rail: calc(56px + env(safe-area-inset-bottom, 0px));
    grid-template-columns: 1fr !important;
    grid-template-rows: minmax(0, auto) minmax(0, 1fr) var(--vc-mobile-rail);
    grid-template-areas:
      "video"
      "middle"
      "rail";
    min-height: 0;
    height: calc(100dvh - var(--vc-topbar));
    max-height: calc(100dvh - var(--vc-topbar));
  }

  #video-course-app.course-shell > .vc-rail { grid-area: rail; }
  #video-course-app.course-shell > .course-video { grid-area: video; }
  #video-course-app.course-shell > .course-middle { grid-area: middle; }
  #video-course-app.course-shell > .course-editor { grid-area: editor; }
  #video-course-app.course-shell > .course-gutter { display: none !important; }

  #video-course-app.course-shell.is-middle-collapsed .course-middle,
  #video-course-app.course-shell.is-video-collapsed .course-video,
  #video-course-app.course-shell.is-manage.is-middle-collapsed .course-middle,
  #video-course-app.course-shell.is-manage.is-video-collapsed .course-editor {
    visibility: visible;
    pointer-events: auto;
  }

  #video-course-app .vc-rail {
    position: relative;
    z-index: 40;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: var(--vc-mobile-rail);
    flex-direction: row;
    align-items: stretch;
    justify-content: space-around;
    gap: 0;
    padding: 0 4px env(safe-area-inset-bottom, 0px);
    border-right: 0;
    border-top: 1px solid var(--vc-border);
    overflow: hidden;
    box-sizing: border-box;
    background: #fff;
  }

  #video-course-app .vc-rail-item,
  #video-course-app .vc-rail-item:link,
  #video-course-app .vc-rail-item:visited,
  #video-course-app .vc-rail-item:hover,
  #video-course-app .vc-rail-item:active,
  #video-course-app .vc-rail-item:focus {
    width: auto;
    height: auto;
    flex: 1;
    min-width: 0;
    padding: 4px 0;
    gap: 2px;
    border-radius: 0;
  }

  #video-course-app .vc-rail-item.is-active::before {
    left: 22%;
    right: 22%;
    top: auto;
    bottom: 0;
    width: auto;
    height: 3px;
    border-radius: 2px 2px 0 0;
  }

  #video-course-app .vc-rail-admin {
    margin-top: 0;
  }

  #video-course-app .vc-rail-back,
  #video-course-app .vc-rail-back:link,
  #video-course-app .vc-rail-back:visited,
  #video-course-app .vc-rail-back:hover,
  #video-course-app .vc-rail-back:active,
  #video-course-app .vc-rail-back:focus {
    width: auto;
    height: auto;
    flex: 0 0 48px;
    margin: 0;
    border-radius: 0;
  }

  #video-course-app .vc-rail-text {
    flex-direction: row;
    gap: 0;
    font-size: 11px;
    line-height: 1.2;
  }

  #video-course-app .vc-rail-text span:first-child {
    display: none;
  }

  #video-course-app .course-video {
    min-height: 0;
  }

  #video-course-app .course-video-header {
    height: 40px;
    padding: 0 12px;
  }

  #video-course-app .course-video-header h1 {
    font-size: 13px;
    padding: 0;
  }

  #video-course-app .course-video-stage {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: min(36vh, calc(100dvh - var(--vc-topbar) - var(--vc-mobile-rail) - 160px));
    min-height: 140px;
  }

  #video-course-app .course-ai-assistant {
    display: none !important;
  }

  #video-course-app .vc-related-resources {
    display: none;
  }

  #video-course-app .course-middle {
    min-height: 0;
    border-top: 1px solid var(--vc-border);
  }

  #video-course-app .course-middle-header {
    height: 44px;
    padding: 0 14px;
  }

  #video-course-app.course-shell.is-manage {
    grid-template-areas:
      "middle"
      "editor"
      "rail";
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) var(--vc-mobile-rail);
  }

  #video-course-app.course-shell.is-manage .course-editor {
    display: flex;
    min-height: 0;
    border-top: 1px solid var(--vc-border);
  }

  #video-course-app.course-shell.is-manage .course-video,
  #video-course-app.course-shell.is-manage [data-gutter="video"] {
    display: none !important;
  }

  /* 学情统计：移动端/窄屏独占编辑栏，隐藏中栏 */
  #video-course-app.course-shell.is-manage.is-stats-pane {
    grid-template-areas: "editor" "rail";
    grid-template-rows: minmax(0, 1fr) var(--vc-mobile-rail);
  }

  #video-course-app.course-shell.is-manage.is-stats-pane .course-middle,
  #video-course-app.course-shell.is-manage.is-stats-pane [data-gutter="middle"],
  #video-course-app.course-shell.is-manage.is-stats-pane [data-gutter="editor"] {
    display: none !important;
  }

  #video-course-app.course-shell.is-manage.is-stats-pane .course-editor {
    display: flex !important;
    min-height: 0;
    border-top: 0;
  }

  #video-course-app.course-shell.is-manage.is-stats-pane .course-editor-header {
    flex: none;
  }

  #video-course-app.course-shell.is-manage.is-stats-pane .vc-stats-panel {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  html.page--course_detail .main,
  html.page--video_course_detail .main {
    padding-top: 0 !important;
  }

  html.page--course_detail #menu,
  html.page--video_course_detail #menu {
    display: none !important;
  }

  /* 宽屏横屏：管理模式保持桌面布局，仅确保不退回纯视频 */
  #video-course-app.course-shell.is-manage .course-video,
  #video-course-app.course-shell.is-manage [data-gutter="video"] {
    display: none !important;
  }

  #video-course-app.course-shell.is-manage .course-editor {
    display: flex !important;
    visibility: visible;
    pointer-events: auto;
  }

  /* 窄屏横屏：学情统计独占编辑栏 */
  @media (max-width: 768px) {
    #video-course-app.course-shell.is-manage.is-stats-pane {
      --vc-mobile-rail: calc(56px + env(safe-area-inset-bottom, 0px));
      grid-template-columns: 1fr !important;
      grid-template-rows: minmax(0, 1fr) var(--vc-mobile-rail);
      grid-template-areas: "editor" "rail";
      height: 100dvh;
      min-height: 0;
    }

    #video-course-app.course-shell.is-manage.is-stats-pane > .course-editor {
      display: flex !important;
      grid-area: editor;
      min-height: 0;
    }

    #video-course-app.course-shell.is-manage.is-stats-pane > .course-middle,
    #video-course-app.course-shell.is-manage.is-stats-pane > .course-gutter {
      display: none !important;
    }

    #video-course-app.course-shell.is-manage.is-stats-pane > .vc-rail {
      display: flex !important;
      grid-area: rail;
    }
  }

  /* 非管理模式：低高度横屏仍全屏视频 */
  #video-course-app.course-shell:not(.is-manage) {
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr;
    grid-template-areas: "video";
    height: 100dvh;
    min-height: 0;
  }

  #video-course-app.course-shell:not(.is-manage) > .course-video {
    display: flex !important;
    grid-area: video;
    height: 100%;
  }

  #video-course-app.course-shell:not(.is-manage) > .vc-rail,
  #video-course-app.course-shell:not(.is-manage) > .course-middle,
  #video-course-app.course-shell:not(.is-manage) > .course-editor,
  #video-course-app.course-shell:not(.is-manage) > .course-gutter,
  #video-course-app.course-shell:not(.is-manage) .course-video-header,
  #video-course-app.course-shell:not(.is-manage) .course-ai-assistant {
    display: none !important;
  }

  #video-course-app.course-shell:not(.is-manage) .course-video-stage {
    flex: 1;
    aspect-ratio: auto;
    max-height: none;
    min-height: 0;
    height: 100%;
  }
}

/* —— 学情统计：指挥舱 —— */
.course-editor-content.vc-stats-panel {
  overflow: hidden;
}

.vc-stats-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  height: 100%;
}

.vc-stats-panel.vc-users-panel {
  overflow: hidden;
  padding: 12px 16px;
  gap: 12px;
  background: #f7f8fa;
}

.vc-stats-toolbar-card {
  height: 40px;
  min-height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  grid-row: 1;
  overflow-x: auto;
}

.vc-stats-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 720px;
  height: 32px;
}

.vc-stats-toolbar-main,
.vc-stats-toolbar-aside {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  min-width: 0;
}

.vc-stats-toolbar-aside {
  flex: none;
  margin-left: auto;
}

.vc-stats-toolbar .textbox {
  display: block !important;
  box-sizing: border-box !important;
  width: auto !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border: 1px solid var(--vc-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  font-size: 13px !important;
  line-height: 30px !important;
  color: var(--vc-text) !important;
  box-shadow: none !important;
}

.vc-stats-toolbar .textbox:focus,
.vc-stats-toolbar .textbox:focus-visible {
  outline: none;
  border-color: var(--vc-primary) !important;
  box-shadow: 0 0 0 2px var(--vc-primary-soft) !important;
}

.vc-stats-presets {
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 32px;
  padding: 2px;
  box-sizing: border-box;
  border-radius: 8px;
  background: #eef0f3;
  flex: none;
}

.vc-stats-preset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--vc-text-2);
  font-size: 12px;
  font-weight: 600;
  padding: 0 10px;
  border-radius: 6px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.vc-stats-preset:hover,
.vc-stats-preset:focus-visible {
  color: var(--vc-primary);
  outline: none;
}

.vc-stats-preset.is-on {
  background: #fff;
  color: var(--vc-primary);
  box-shadow: 0 1px 2px rgba(31, 35, 41, 0.08);
}

.vc-stats-dates {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 32px;
  padding: 0 6px;
  box-sizing: border-box;
  border: 1px solid var(--vc-border);
  border-radius: 8px;
  background: #fff;
  flex: none;
}

.vc-stats-dates:focus-within {
  border-color: var(--vc-primary);
  box-shadow: 0 0 0 2px var(--vc-primary-soft);
}

.vc-stats-dates .textbox {
  width: 132px !important;
  border: 0 !important;
  border-radius: 6px !important;
  padding: 0 4px !important;
  background: transparent !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
}

.vc-stats-dates .textbox:focus,
.vc-stats-dates .textbox:focus-visible {
  border: 0 !important;
  box-shadow: none !important;
}

.vc-stats-dates input[type="date"].textbox::-webkit-calendar-picker-indicator {
  width: 14px;
  height: 14px;
  margin: 0;
  cursor: pointer;
  opacity: 0.5;
}

.vc-stats-date-sep {
  flex: none;
  width: 12px;
  color: var(--vc-text-3);
  font-size: 12px;
  line-height: 32px;
  text-align: center;
}

select.vc-stats-role {
  width: 128px !important;
  flex: none;
  padding-right: 28px !important;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 12px !important;
  background-color: #fff !important;
  cursor: pointer;
}

.vc-stats-search.textbox {
  width: 196px !important;
}

.vc-stats-export {
  position: relative;
  flex: none;
  height: 32px;
}

.vc-stats-export-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 32px;
  min-width: 64px;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--vc-border);
  background: #fff;
  color: var(--vc-text-2);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
}

.vc-stats-export-btn::-webkit-details-marker,
.vc-stats-export-btn::marker {
  display: none;
  content: "";
}

.vc-stats-export-btn:hover,
.vc-stats-export-btn:focus-visible {
  color: var(--vc-primary);
  border-color: var(--vc-primary);
  outline: none;
}

.vc-stats-export-btn::after {
  content: " ▾";
  font-weight: 500;
}

.vc-stats-export[open] .vc-stats-export-btn {
  border-color: var(--vc-primary);
  color: var(--vc-primary);
}

.vc-stats-export-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 6;
  min-width: 132px;
  padding: 4px;
  border: 1px solid var(--vc-border);
  border-radius: 8px;
  background: var(--vc-bg-elevated);
  display: flex;
  flex-direction: column;
}

.vc-stats-export-menu button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--vc-text);
  cursor: pointer;
}

.vc-stats-export-menu button:hover,
.vc-stats-export-menu button:focus-visible {
  background: var(--vc-primary-bg);
  color: var(--vc-primary);
  outline: none;
}

.vc-stats-command {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  height: 56px;
  padding: 0 4px;
  grid-row: 2;
}

.vc-stats-brief-headline {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--vc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vc-stats-brief-headline.is-skeleton {
  height: 24px;
  width: 48%;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 25%, #f5f5f5 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: vc-stats-shimmer 1.2s ease infinite;
  color: transparent;
}

.vc-stats-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.vc-stats-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--vc-border);
  border-radius: 999px;
  background: var(--vc-bg-elevated);
  color: var(--vc-text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.vc-stats-chip:hover,
.vc-stats-chip:focus-visible {
  border-color: var(--vc-primary);
  outline: none;
}

.vc-stats-chip.is-on {
  border-color: var(--vc-primary);
  background: var(--vc-primary-bg);
  color: var(--vc-primary);
}

.vc-stats-chip-title {
  font-weight: 600;
}

.vc-stats-chip-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--vc-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 20px;
  text-align: center;
}

.vc-stats-split {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  overflow: hidden;
  grid-row: 3;
}

.vc-stats-diagnose-toggle,
.vc-stats-diagnose-mask,
.vc-stats-toast {
  grid-row: 3;
  grid-column: 1;
}

.vc-stats-diagnose {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.vc-stats-diagnose-more {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vc-stats-diagnose-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 2px;
  padding-bottom: 8px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.vc-stats-diagnose-more-head {
  display: none;
}

.vc-stats-diagnose-block {
  min-width: 0;
}

.vc-stats-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.vc-stats-block-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--vc-text-2);
}

.vc-stats-more-btn {
  border: 0;
  background: transparent;
  color: var(--vc-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.vc-stats-more-btn:hover,
.vc-stats-more-btn:focus-visible {
  text-decoration: underline;
  outline: none;
}

.vc-stats-table-card {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 0;
  gap: 0;
  box-shadow: none;
}

.vc-stats-roster {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.vc-stats-kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: none;
}

.vc-stats-kpi {
  border: 1px solid var(--vc-border);
  border-radius: 10px;
  background: var(--vc-bg-elevated);
  box-shadow: none;
  padding: 10px 12px 10px 14px;
  min-height: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.vc-stats-kpi:hover,
.vc-stats-kpi:focus-visible {
  border-color: var(--vc-primary);
  outline: none;
}

.vc-stats-kpi.is-on {
  box-shadow: inset 3px 0 0 var(--vc-primary);
  background: var(--vc-bg-elevated);
  border-color: var(--vc-border);
}

.vc-stats-kpi.is-static {
  cursor: default;
}

.vc-stats-kpi.is-static:hover,
.vc-stats-kpi.is-static:focus-visible {
  border-color: var(--vc-border);
}

.vc-stats-kpi-label {
  font-size: 12px;
  color: var(--vc-text-2);
  margin-bottom: 0;
}

.vc-stats-kpi-value {
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--vc-text);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.vc-stats-kpi-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--vc-text-2);
}

.vc-stats-kpi-delta {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #1e8e3e;
  padding: 0 6px;
  border-radius: 999px;
  background: #e8f8ef;
}

.vc-stats-kpi-delta.is-down {
  color: #c4560f;
  background: #feefc3;
}

.vc-stats-spark {
  margin-top: 2px;
  color: var(--vc-primary);
  align-self: flex-start;
}

.vc-stats-kpi.is-skeleton .vc-stats-kpi-label,
.vc-stats-kpi.is-skeleton .vc-stats-kpi-value,
.vc-stats-skeleton-row {
  background: linear-gradient(90deg, #f0f0f0 25%, #f5f5f5 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: vc-stats-shimmer 1.2s ease infinite;
  border-radius: 6px;
  color: transparent;
}

.vc-stats-kpi.is-skeleton .vc-stats-kpi-label {
  height: 12px;
  width: 60%;
}

.vc-stats-kpi.is-skeleton .vc-stats-kpi-value {
  height: 22px;
  width: 40%;
}

.vc-stats-skeleton-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vc-stats-skeleton-row {
  height: 36px;
}

@keyframes vc-stats-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.vc-stats-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.vc-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.vc-stats-table th,
.vc-stats-table td {
  padding: 0 8px;
  height: 40px;
  border-bottom: 1px solid var(--vc-border);
  text-align: left;
  vertical-align: middle;
}

.vc-stats-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--vc-text-2);
  font-weight: 600;
  white-space: nowrap;
  user-select: none;
  background: #fafafa;
}

.vc-stats-table th[data-stats-sort] {
  cursor: pointer;
}

.vc-stats-table th[data-stats-sort]:hover,
.vc-stats-table th[data-stats-sort]:focus-visible {
  color: var(--vc-primary);
  outline: none;
}

.vc-stats-table .is-num,
.vc-stats-lesson-table .is-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.vc-stats-row {
  cursor: pointer;
}

.vc-stats-row:hover {
  background: #f7f9fc;
}

.vc-stats-empty {
  margin: 12px 0;
  text-align: center;
  font-size: 13px;
}

.vc-stats-never {
  color: var(--vc-text-3);
}

.vc-stats-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 8px 12px;
  margin-top: 0;
}

.vc-stats-page-label {
  font-size: 12px;
  color: var(--vc-text-2);
}

.vc-stats-drawer {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: none;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: rgba(15, 23, 42, 0.28);
}

.vc-stats-drawer.is-open {
  display: flex;
}

.vc-stats-drawer-card {
  width: 100%;
  max-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 0;
  background: var(--vc-bg-elevated, #fff);
  box-shadow: none;
  overflow: hidden;
}

.vc-stats-drawer-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--vc-border);
}

.vc-stats-drawer-head strong {
  font-size: 15px;
  margin-right: 8px;
}

.vc-stats-drawer-close {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--vc-text-3);
  cursor: pointer;
  padding: 0 4px;
}

.vc-stats-drawer-body {
  flex: 1;
  min-height: 0;
  padding: 14px 16px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  -webkit-overflow-scrolling: touch;
}

.vc-stats-drawer-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--vc-text-2);
  margin-bottom: 8px;
}

.vc-stats-chart-wrap {
  position: relative;
  width: 100%;
}

.vc-stats-chart-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  touch-action: pan-x;
}

.vc-stats-chart-scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.vc-stats-chart {
  display: block;
  height: 120px;
  width: auto;
  min-width: 100%;
  pointer-events: auto;
}

.vc-stats-bar-hit {
  fill: transparent;
  cursor: pointer;
}

.vc-stats-bar {
  fill: var(--vc-primary);
  opacity: 0.85;
  pointer-events: none;
}

.vc-stats-bar.is-on {
  opacity: 1;
}

.vc-stats-bar.is-empty {
  fill: var(--vc-border);
  opacity: 0.85;
}

.vc-stats-chart-tip {
  position: absolute;
  transform: translate(-50%, calc(-100% - 8px));
  background: #1f2329;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(31, 35, 41, 0.18);
}

.vc-stats-chart-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: #1f2329;
  border-bottom-width: 0;
}

.vc-stats-chart-tip-date {
  font-weight: 600;
}

.vc-stats-chart-tip-val {
  color: rgba(255, 255, 255, 0.78);
}

.vc-stats-chart-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--vc-text-3);
}

.vc-stats-mini-daily .vc-stats-chart {
  height: 56px;
}

.vc-stats-mini-daily-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.vc-stats-mini-daily-note {
  font-size: 12px;
  color: var(--vc-text-3);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-stats-course-chart {
  margin-top: 0;
}

.vc-stats-metric,
.vc-stats-scope {
  display: inline-flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}

.vc-stats-metric-btn,
.vc-stats-scope-btn {
  border: 1px solid var(--vc-border);
  background: var(--vc-bg-elevated);
  color: var(--vc-text-2);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  cursor: pointer;
  line-height: 1.6;
}

.vc-stats-metric-btn:hover,
.vc-stats-scope-btn:hover,
.vc-stats-metric-btn:focus-visible,
.vc-stats-scope-btn:focus-visible {
  border-color: var(--vc-primary);
  outline: none;
}

.vc-stats-metric-btn.is-on,
.vc-stats-scope-btn.is-on {
  border-color: var(--vc-primary);
  color: var(--vc-primary);
  background: color-mix(in srgb, var(--vc-primary) 8%, white);
}

.vc-stats-heat {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 48px;
  width: 100%;
  padding-top: 14px;
  box-sizing: border-box;
}

.vc-stats-heat-cell {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 3px;
  background: #f3f5f8;
  cursor: pointer;
}

.vc-stats-heat-cell:hover,
.vc-stats-heat-cell:focus-visible,
.vc-stats-heat-cell.is-on {
  border-color: var(--vc-primary);
  outline: none;
  background: #eef2f8;
}

.vc-stats-heat-cell.is-drop {
  border-color: #e6b422;
  background: #fff8e8;
  z-index: 1;
}

.vc-stats-heat-start,
.vc-stats-heat-finish {
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 2px;
  border-radius: 2px 2px 0 0;
  pointer-events: none;
}

.vc-stats-heat-start {
  background: #c9d4ea;
}

.vc-stats-heat-finish {
  background: var(--vc-primary);
}

.vc-stats-heat-tag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  color: #b06000;
  white-space: nowrap;
  pointer-events: none;
}

.vc-stats-heat-caption {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--vc-text-2);
  line-height: 1.4;
}

.vc-stats-spine {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vc-stats-spine-row {
  width: 100%;
  border: 1px solid transparent;
  background: #fafafa;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
}

.vc-stats-spine-row:hover,
.vc-stats-spine-row.is-on,
.vc-stats-spine-row:focus-visible {
  border-color: var(--vc-primary);
  background: var(--vc-primary-bg);
  outline: none;
}

.vc-stats-spine-row.is-drop {
  border-color: #e6b422;
  background: #fff8e8;
}

.vc-stats-spine-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}

.vc-stats-spine-title strong {
  font-size: 13px;
}

.vc-stats-spine-title span {
  font-size: 12px;
  color: var(--vc-text-2);
}

.vc-stats-spine-bar {
  position: relative;
  height: 8px;
  border-radius: 99px;
  background: #eceff3;
  overflow: hidden;
}

.vc-stats-spine-track {
  position: absolute;
  inset: 0 auto 0 0;
  background: #c9d4ea;
  border-radius: 99px;
}

.vc-stats-spine-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--vc-primary);
  border-radius: 99px;
}

.vc-stats-ex-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vc-stats-ex-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fafafa;
  padding: 8px 10px;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.vc-stats-ex-item:hover,
.vc-stats-ex-item.is-on,
.vc-stats-ex-item:focus-visible {
  border-color: var(--vc-primary);
  background: var(--vc-primary-bg);
  outline: none;
}

.vc-stats-ex-name {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.vc-stats-ex-track {
  height: 6px;
  border-radius: 99px;
  background: #e2e6ee;
  overflow: hidden;
}

.vc-stats-ex-track span {
  display: block;
  height: 100%;
  background: var(--vc-primary);
}

.vc-stats-ex-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--vc-text-2);
  font-variant-numeric: tabular-nums;
}

.vc-stats-preview-sum {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--vc-text-2);
  font-variant-numeric: tabular-nums;
}

.vc-stats-preview-sum span {
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3f5f8;
}

.vc-stats-preview-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.vc-stats-preview-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.vc-stats-preview-name {
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-stats-preview-meta {
  flex: none;
  font-size: 12px;
  color: var(--vc-text-2);
  font-variant-numeric: tabular-nums;
}

.vc-stats-muted {
  color: var(--vc-text-3);
  font-weight: 400;
}

.vc-stats-roster-actions {
  display: none;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--vc-border);
  border-radius: 10px;
  background: var(--vc-bg-elevated);
}

.vc-stats-roster-actions.is-open {
  display: flex;
}

.vc-stats-action-count {
  font-size: 13px;
  font-weight: 600;
  margin-right: 4px;
}

.vc-stats-table .is-check {
  width: 36px;
  text-align: center;
}

.vc-stats-risk {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  padding: 4px 0;
}

.vc-stats-risk-heat {
  position: absolute;
  inset: 6px 0;
  border-radius: 4px;
  background: #eceff3;
  overflow: hidden;
  z-index: 0;
}

.vc-stats-risk-heat i {
  display: block;
  height: 100%;
  background: #e6b422;
  opacity: 0.45;
}

.vc-stats-risk b {
  position: relative;
  z-index: 1;
  display: inline-block;
  min-width: 1.5em;
  font-variant-numeric: tabular-nums;
}

.vc-stats-risk-why {
  position: relative;
  z-index: 1;
  color: var(--vc-text-2);
  font-size: 12px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-stats-prog {
  display: inline-block;
  vertical-align: middle;
  width: 72px;
  height: 8px;
  border-radius: 99px;
  background: #e2e6ee;
  overflow: hidden;
  margin-right: 6px;
}

.vc-stats-prog span {
  display: block;
  height: 100%;
  background: var(--vc-primary);
}

.vc-stats-prog-n {
  font-size: 12px;
  color: var(--vc-text-2);
  font-variant-numeric: tabular-nums;
}

.vc-stats-dots {
  display: inline-flex;
  gap: 3px;
  vertical-align: middle;
}

.vc-stats-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9dee7;
}

.vc-stats-dot.is-on {
  background: #1e8e3e;
}

.vc-stats-jump {
  font-size: 12px;
  white-space: nowrap;
}

.vc-stats-diagnose-toggle {
  display: none;
}

.vc-stats-diagnose-mask {
  display: none;
}

.vc-stats-lesson-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.vc-stats-lesson-table th,
.vc-stats-lesson-table td {
  padding: 8px 4px;
  border-bottom: 1px solid var(--vc-border);
  text-align: left;
}

.vc-stats-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 99px;
  background: #e8f8ef;
  color: #1e8e3e;
  font-size: 12px;
  font-weight: 600;
}

.vc-stats-badge.is-learning {
  background: #e8f1fc;
  color: #1a73e8;
}

.vc-stats-expire {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #f3f4f6;
  color: var(--vc-text-2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.vc-stats-expire.is-warn {
  background: #feefc3;
  color: #b06000;
}

.vc-stats-row.is-expiring td:first-child .vc-access-name {
  color: #b06000;
}

.vc-stats-toast {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  background: #1f2329;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(31, 35, 41, 0.18);
}

.vc-stats-toast.is-err {
  background: #8b1e1e;
}

.vc-stats-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.vc-stats-tl {
  position: relative;
  padding: 10px 0 10px 18px;
  border-left: 2px solid var(--vc-border);
}

.vc-stats-tl::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c0c4cc;
}

.vc-stats-tl-finished::before {
  background: #1e8e3e;
}

.vc-stats-tl-learning::before {
  background: var(--vc-primary);
}

.vc-stats-tl-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vc-stats-tl-meta {
  font-size: 12px;
  color: var(--vc-text-3);
  margin-top: 2px;
}

.vc-stats-tl-ex {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.vc-stats-ex-chip {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 99px;
  text-decoration: none;
}

.vc-stats-ex-chip.is-pass {
  background: #e8f8ef;
  color: #1e8e3e;
}

.vc-stats-ex-chip.is-miss {
  background: #feefc3;
  color: #b06000;
}

.vc-stats-badge.is-unseen {
  background: #f3f4f6;
  color: var(--vc-text-2);
}

.vc-stats-table-card .vc-users-card-head {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 8px 12px 6px;
  border-bottom: 1px solid var(--vc-border);
}

.vc-stats-roster-head-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.vc-stats-scope-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--vc-text-3);
}

.vc-stats-hover-tip {
  position: fixed;
  z-index: 80;
  max-width: 320px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #1f2329;
  color: #fff;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  box-shadow: 0 8px 24px rgba(31, 35, 41, 0.22);
  pointer-events: none;
}

.vc-stats-panel [data-tip] {
  cursor: help;
}

.vc-stats-kpi[data-tip],
.vc-stats-scope-btn[data-tip],
.vc-stats-chip[data-tip],
.vc-stats-preset[data-tip],
.vc-stats-heat-cell[data-tip],
.vc-stats-spine-row[data-tip],
.vc-stats-ex-item[data-tip],
.vc-stats-export-btn[data-tip],
.vc-stats-metric-btn[data-tip] {
  cursor: pointer;
}

.vc-stats-block-label[data-tip],
.vc-stats-brief-headline[data-tip],
.vc-users-card-label[data-tip],
.vc-stats-heat-caption[data-tip] {
  border-bottom: 1px dashed rgba(31, 35, 41, 0.28);
}

.vc-exercise-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--vc-primary-soft);
  color: var(--vc-primary);
  font-size: 12px;
  font-weight: 600;
}

.vc-stats-table-card:has(#vc-stats-pager:not([hidden])) .vc-stats-roster-actions {
  bottom: 48px;
}

@media (max-width: 1279px) {
  .vc-stats-split {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .vc-stats-brief-headline {
    font-size: 20px;
  }

  .vc-stats-kpi-value {
    font-size: 24px;
  }
}

@media (max-width: 1023px) {
  .vc-stats-split {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .vc-stats-diagnose {
    flex: none;
    overflow: visible;
  }

  .vc-stats-kpi-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .vc-stats-kpi {
    flex: 1 0 132px;
    min-width: 132px;
  }

  .vc-stats-kpi-value {
    font-size: 22px;
  }

  .vc-stats-spark {
    display: none;
  }

  .vc-stats-diagnose-more {
    display: none;
  }

  .vc-stats-roster {
    flex: 1;
    min-height: 0;
  }

  .vc-stats-diagnose-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 6;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--vc-primary);
    border-radius: 999px;
    background: var(--vc-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }

  .vc-stats-diagnose-mask {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 7;
    background: rgba(15, 23, 42, 0.28);
  }

  .vc-stats-panel.is-diagnose-open .vc-stats-diagnose-mask {
    display: block;
  }

  .vc-stats-panel.is-diagnose-open .vc-stats-diagnose-more {
    display: flex;
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    top: auto;
    max-height: min(72vh, 640px);
    z-index: 8;
    padding: 12px;
    border: 1px solid var(--vc-border);
    border-radius: 12px;
    background: var(--vc-bg-elevated);
    box-shadow: 0 12px 32px rgba(31, 35, 41, 0.16);
    overflow: hidden;
  }

  .vc-stats-diagnose-more-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
  }

  .vc-stats-diagnose-close {
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: var(--vc-text-3);
    cursor: pointer;
  }

  .vc-stats-command {
    height: auto;
    min-height: 48px;
    flex-wrap: wrap;
  }

  .vc-stats-chips {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .vc-stats-toolbar-card {
    height: auto;
    min-height: 40px;
    overflow: visible;
  }

  .vc-stats-toolbar {
    flex-wrap: wrap;
    height: auto;
    min-width: 0;
    row-gap: 8px;
  }

  .vc-stats-toolbar-main,
  .vc-stats-toolbar-aside {
    flex-wrap: wrap;
    height: auto;
    row-gap: 8px;
  }

  .vc-stats-toolbar-aside {
    width: 100%;
    margin-left: 0;
  }

  select.vc-stats-role {
    width: 120px !important;
  }

  .vc-stats-search.textbox {
    flex: 1 1 160px !important;
    width: auto !important;
    min-width: 140px !important;
  }

  .vc-stats-metric,
  .vc-stats-scope {
    margin-left: 0;
  }

  .vc-stats-presets {
    flex: 1;
    min-width: 220px;
  }

  .vc-stats-preset {
    flex: 1;
    text-align: center;
  }

  .vc-stats-dates .textbox {
    width: 118px !important;
  }

  .vc-stats-table {
    min-width: 640px;
  }

  .vc-stats-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .vc-stats-brief-headline {
    font-size: 18px;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .vc-stats-kpi-value {
    font-size: 18px;
  }
}
