.wpsxep-lecture-wrap {
  font-size: 15px;
  line-height: 1.6;
  color: var(--wpsxep-text-main, #1e293b);
  -webkit-font-smoothing: antialiased;
}

section.wpsxep-front-wrap.wpsxep-lecture-wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-bottom: 2.75rem;
}

section.wpsxep-front-wrap.wpsxep-lecture-wrap > .wpsxep-inner-wrap > .wpsxep-inner-main {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-top: 0.35rem;
}

.wpsxep-lecture-title {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--wpsxep-border-soft, #eef0f3);
  color: var(--wpsxep-text-main, #0f172a);
  line-height: 1.3;
}

.wpsxep-lecture-lead.description {
  max-width: 68ch;
  margin: 0 0 1.15rem;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--wpsxep-text-subtle, #475569);
  background: var(--wpsxep-surface-soft, #f8fafc);
  border: 1px solid var(--wpsxep-border-soft, #e8eaed);
  border-radius: 10px;
  border-left: 3px solid var(--wpsxep-accent-soft-border, #c7d2fe);
}

.wpsxep-lecture-micro-hint {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--wpsxep-text-muted, #64748b);
}

.wpsxep-lecture-micro-hint--spaced {
  margin-top: 0.65rem;
}

.wpsxep-lecture-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 900px) {
  .wpsxep-lecture-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.wpsxep-lecture-panel {
  border: 1px solid var(--wpsxep-border-soft, #e8eaed);
  border-radius: 12px;
  padding: 1.15rem 1.25rem 1.25rem;
  background: var(--wpsxep-surface-card, #fff);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 28px rgba(15, 23, 42, 0.06);
}

.wpsxep-lecture-panel h2 {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--wpsxep-border-soft, #eef0f3);
  color: var(--wpsxep-text-main, #0f172a);
  letter-spacing: -0.01em;
}

.wpsxep-lecture-subh {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 1.35rem 0 0.55rem;
  padding-top: 1rem;
  border-top: 1px solid var(--wpsxep-border-soft, #eef0f3);
  color: var(--wpsxep-text-main, #334155);
}
.wpsxep-lecture-import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.5rem 0 0.25rem;
}
.wpsxep-lecture-panel label {
  display: block;
  margin-bottom: 0.38rem;
  margin-top: 0.15rem;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--wpsxep-text-subtle, #334155);
  letter-spacing: 0.01em;
}
.wpsxep-lecture-inline-label {
  font-weight: 500;
  font-size: 0.82rem;
  margin-top: 0.25rem;
}
.wpsxep-lecture-inline-label input {
  margin-right: 0.35rem;
  vertical-align: middle;
}

.wpsxep-lecture-opt-block {
  display: block;
  margin-top: 0.35rem;
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--wpsxep-text-subtle, #334155);
}

.wpsxep-lecture-opt-block--spaced {
  margin-top: 0.75rem;
}

.wpsxep-lecture-async-wrap {
  display: none;
}
.wpsxep-lecture-search-help {
  margin: 0.35rem 0 0.25rem;
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.45;
}
.wpsxep-lecture-panel input[type='text'],
.wpsxep-lecture-panel textarea,
.wpsxep-lecture-panel select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--wpsxep-input-text, #1e293b);
  background: var(--wpsxep-input-bg, #fff);
  border: 1px solid var(--wpsxep-input-border, #e2e8f0);
  border-radius: 8px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.wpsxep-lecture-panel input[type='text']:hover,
.wpsxep-lecture-panel textarea:hover,
.wpsxep-lecture-panel select:hover {
  border-color: var(--wpsxep-border-soft-hover, #cbd5e1);
}

.wpsxep-lecture-panel input[type='text']:focus,
.wpsxep-lecture-panel textarea:focus,
.wpsxep-lecture-panel select:focus {
  outline: none;
  border-color: var(--wpsxep-accent-soft-border, #818cf8);
  box-shadow: 0 0 0 3px var(--wpsxep-accent-ring, rgba(99, 102, 241, 0.22));
}

.wpsxep-lecture-panel textarea {
  min-height: 88px;
  font-family: inherit;
  resize: vertical;
}

.wpsxep-lecture-panel .button,
.wpsxep-lecture-panel button.button {
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.wpsxep-lecture-actions {
  margin-top: 1.35rem;
  padding: 1rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  background: var(--wpsxep-surface-soft, #f8fafc);
  border: 1px solid var(--wpsxep-border-soft, #e8eaed);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.wpsxep-lecture-actions .button,
.wpsxep-lecture-actions button {
  cursor: pointer;
  border-radius: 8px;
}

.wpsxep-lecture-actions .button-primary {
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.22);
}

.wpsxep-lecture-actions .button-primary:hover {
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.28);
}
.wpsxep-lecture-msg {
  margin-top: 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  font-size: 0.92rem;
}
.wpsxep-lecture-msg.is-error {
  background: #fde8e8;
  color: #7f1d1d;
}
.wpsxep-lecture-msg.is-ok {
  background: #e8f5e9;
  color: #1b5e20;
}
.wpsxep-lecture-msg.is-pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
  max-height: 50vh;
  overflow: auto;
}
.wpsxep-lecture-search-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #374151;
}
.wpsxep-lecture-search-results {
  max-height: min(52vh, 520px);
  overflow: auto;
  border: 1px solid var(--wpsxep-border-soft, #e8eaed);
  border-radius: 10px;
  margin-top: 0.4rem;
  background: var(--wpsxep-surface-soft, #f8fafc);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.wpsxep-lecture-search-results[hidden] {
  display: none !important;
}
.wpsxep-lecture-qcard {
  border-bottom: 1px solid var(--wpsxep-border-soft, #eef0f3);
  padding: 0.65rem 0.75rem 0.75rem;
  background: var(--wpsxep-surface-card, #fff);
}
.wpsxep-lecture-qcard:last-child {
  border-bottom: 0;
}
.wpsxep-lecture-qcard-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}
.wpsxep-lecture-qcard-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1f2937;
}
.wpsxep-lecture-qcard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.wpsxep-lecture-qcard-actions .button-small {
  font-size: 0.75rem;
  min-height: 0;
  line-height: 1.2;
  padding: 0.15rem 0.45rem;
}
.wpsxep-lecture-qcard-body {
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-x: auto;
}
.wpsxep-lecture-search-pager {
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.45rem;
}
.wpsxep-lecture-id-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
  min-height: 1.5rem;
}
.wpsxep-lecture-id-chips span,
.wpsxep-lecture-id-chips .wpsxep-lecture-id-chip {
  background: #eef2ff;
  color: #312e81;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.82rem;
  cursor: pointer;
}
.wpsxep-lecture-id-chips span:hover,
.wpsxep-lecture-id-chips .wpsxep-lecture-id-chip:hover {
  background: #e0e7ff;
}
.wpsxep-lecture-draft-history {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid var(--wpsxep-border-soft, #e8eaed);
  border-radius: 12px;
  background: var(--wpsxep-surface-soft, #f8fafc);
  max-width: 1100px;
  box-sizing: border-box;
}
.wpsxep-lecture-draft-history-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.35rem;
}
.wpsxep-lecture-draft-history-row select {
  min-width: 220px;
  flex: 1;
}
.wpsxep-lecture-sort-label {
  display: block;
  margin-top: 0.65rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.wpsxep-lecture-section-sort {
  list-style: none;
  margin: 0.4rem 0 0.75rem;
  padding: 0;
  border: 1px solid var(--wpsxep-border-soft, #e8eaed);
  border-radius: 10px;
  background: var(--wpsxep-surface-soft, #f8fafc);
  max-width: 100%;
}
.wpsxep-lecture-section-sort.is-readonly {
  opacity: 0.72;
}
.wpsxep-lecture-section-sort-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  border-bottom: 1px solid #e5e7eb;
  cursor: grab;
  font-size: 0.88rem;
}
.wpsxep-lecture-section-sort.is-readonly .wpsxep-lecture-section-sort-item {
  cursor: default;
}
.wpsxep-lecture-section-sort-item:last-child {
  border-bottom: 0;
}
.wpsxep-lecture-section-sort-item.is-dragging {
  opacity: 0.55;
  background: #eef2ff;
}
.wpsxep-lecture-section-sort-grip {
  color: #64748b;
  font-size: 1rem;
  user-select: none;
  width: 1.25rem;
  text-align: center;
}
.wpsxep-lecture-section-sort-label {
  flex: 1;
}
.wpsxep-lecture-tex-modal-inner {
  max-width: 960px;
  display: flex;
  flex-direction: column;
  max-height: min(90vh, 880px);
}
.wpsxep-lecture-tex-pre {
  margin: 0;
  padding: 0.75rem 1rem;
  flex: 1;
  overflow: auto;
  max-height: min(72vh, 640px);
  font-size: 0.78rem;
  line-height: 1.45;
  background: #0f172a;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}
.wpsxep-lecture-upgrade {
  padding: 1.5rem;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  max-width: 560px;
}
.wpsxep-lecture-trial-note {
  margin: 0.5rem 0 0;
  padding: 0.5rem 0.65rem;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 6px;
  font-size: 0.9rem;
}
.wpsxep-lecture-vip-compile-notice {
  margin: 0.65rem 0 0;
  padding: 0.65rem 0.85rem;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  font-size: 0.9rem;
  max-width: 1100px;
}
.wpsxep-lecture-vip-compile-notice p {
  margin: 0 0 0.5rem;
}
.wpsxep-lecture-vip-compile-notice p:last-child {
  margin-bottom: 0;
}
.wpsxep-lecture-vip-compile-notice__actions {
  margin-top: 0.5rem !important;
}
.wpsxep-lecture-msg__link {
  margin-left: 0.35rem;
  font-weight: 600;
}
.wpsxep-lecture-last-error-wrap {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 8px;
  max-width: 1100px;
}
.wpsxep-lecture-last-error-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}
.wpsxep-lecture-last-error-wrap #wpsxep-lecture-last-error-msg {
  margin: 0 0 0.5rem;
  color: #9a3412;
}
.wpsxep-lecture-last-error-log {
  margin: 0 0 0.65rem;
  padding: 0.5rem 0.65rem;
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 6px;
  font-size: 0.78rem;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.wpsxep-lecture-last-error-actions {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.wpsxep-lecture-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}
.wpsxep-lecture-modal-inner {
  background: var(--wpsxep-surface-card, #fff);
  border-radius: 14px;
  max-width: 920px;
  width: 100%;
  max-height: min(90vh, 880px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
  border: 1px solid var(--wpsxep-border-soft, #e8eaed);
}
.wpsxep-lecture-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.95rem;
  font-weight: 600;
}
.wpsxep-lecture-modal-body {
  padding: 0.85rem 1rem;
  overflow: auto;
  flex: 1;
  min-height: 120px;
}
.wpsxep-lecture-progress {
  margin: 0.45rem 0 0.65rem;
  max-width: 520px;
}
.wpsxep-lecture-progress-track {
  height: 6px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}
.wpsxep-lecture-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--wpsxep-accent, #6366f1), var(--wpsxep-accent-hover, #4f46e5));
  transition: width 0.35s ease;
}
.wpsxep-lecture-progress-bar.is-indeterminate {
  width: 42% !important;
  animation: wpsxep-lecture-progress-slide 1.15s ease-in-out infinite;
}
@keyframes wpsxep-lecture-progress-slide {
  0% {
    margin-left: 0;
  }
  50% {
    margin-left: 58%;
  }
  100% {
    margin-left: 0;
  }
}
.wpsxep-lecture-progress-label {
  display: block;
  font-size: 12px;
  color: #57606a;
  margin-top: 0.3rem;
}
.wpsxep-lecture-preview-doc h2 {
  margin-top: 0;
  font-size: 1.15rem;
}
.wpsxep-lecture-preview-doc h3 {
  font-size: 1rem;
  margin: 1rem 0 0.35rem;
}
.wpsxep-lecture-preview-brandmark {
  margin: 0.35rem 0 0.75rem;
}
.wpsxep-lecture-preview-brandmark img {
  display: block;
  max-height: 72px;
  max-width: 280px;
  object-fit: contain;
}
.wpsxep-lecture-brand-wrap {
  margin: 0.35rem 0 0.5rem;
}
.wpsxep-lecture-brand-wrap label {
  display: block;
  margin-bottom: 0.25rem;
}
.wpsxep-lecture-brand-select {
  max-width: 100%;
}

.wpsxep-lecture-ev-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.5rem 0 0.4rem;
}
.wpsxep-lecture-ev-groups {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.4rem;
}
.wpsxep-lecture-ev-group {
  border: 1px solid var(--wpsxep-border-soft, #e8eaed);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: var(--wpsxep-surface-soft, #f8fafc);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}
.wpsxep-lecture-ev-group:hover {
  border-color: var(--wpsxep-border-soft-hover, #cbd5e1);
  background: var(--wpsxep-surface-soft-hover, #fff);
}
.wpsxep-lecture-ev-group.is-active {
  border-color: var(--wpsxep-accent-soft-border, #a5b4fc);
  background: var(--wpsxep-accent-soft, #eef2ff);
  box-shadow: 0 0 0 2px var(--wpsxep-accent-ring, rgba(99, 102, 241, 0.18));
}
.wpsxep-lecture-ev-group-head {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--wpsxep-text-subtle, #334155);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.wpsxep-lecture-ev-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.35rem 0.5rem;
  margin-top: 0.25rem;
  font-size: 0.82rem;
}
.wpsxep-lecture-ev-label {
  flex: 0 0 auto;
  min-width: 2.25rem;
  color: #64748b;
  font-weight: 600;
}
.wpsxep-lecture-ev-chips {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  min-height: 1.45rem;
}
.wpsxep-lecture-ev-chips .wpsxep-lecture-id-chip {
  background: #eef2ff;
  color: #312e81;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
}
.wpsxep-lecture-ev-chips .wpsxep-lecture-id-chip:hover {
  background: #e0e7ff;
}
.wpsxep-lecture-ev-placeholder {
  color: var(--wpsxep-text-muted, #94a3b8);
  font-size: 0.78rem;
}
