/* ============================================================
   PK Khmer Type — Custom Lessons Styling (Dark Luxury Obsidian)
   Matches official design system with inline SVG icons.
   Zero-emoji compliant.
   ============================================================ */

/* Lesson Strip Custom Button */
.lsh-custom-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.3);
  color: #ffd166;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.3px;
}

.lsh-custom-btn:hover {
  background: rgba(255, 209, 102, 0.22);
  border-color: #ffd166;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 209, 102, 0.25);
}

.lsh-custom-btn:active {
  transform: translateY(0);
}

/* Modals sizing and container */
.cl-modal-card {
  max-width: 860px;
  width: 92%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #0d111e;
  border: 1px solid rgba(255, 209, 102, 0.2);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 209, 102, 0.08);
  overflow: hidden;
}

.cl-editor-card {
  max-width: 740px;
}

.cl-confirm-card {
  max-width: 460px;
  padding: 24px 28px;
  text-align: center;
}

/* Modal Header */
.cl-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(17, 22, 38, 0.95);
  backdrop-filter: blur(12px);
}

.cl-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cl-head-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffd166;
}

.cl-head-title-wrap h2 {
  font-size: 17px;
  font-weight: 700;
  color: #f2e8cf;
  margin: 0;
  letter-spacing: 0.2px;
}

.cl-count-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-weight: 600;
}

.cl-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cl-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ffd166, #f39c12);
  color: #0b0e17;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 4px 14px rgba(243, 156, 18, 0.3);
}

.cl-primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(243, 156, 18, 0.45);
  filter: brightness(1.08);
}

.cl-primary-btn:active {
  transform: translateY(0);
}

.cl-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cl-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Modal Body */
.cl-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Hub Toolbar */
.cl-hub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cl-search-box {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.cl-search-box svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.cl-search-input {
  width: 100%;
  background: #121728;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f2e8cf;
  font-size: 13px;
  padding: 7px 12px 7px 34px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.cl-search-input:focus {
  outline: none;
  border-color: #ffd166;
  box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.2);
}

.cl-filters {
  display: flex;
  gap: 6px;
}

.cl-filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cl-filter-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.cl-filter-pill.active {
  background: rgba(255, 209, 102, 0.15);
  border-color: rgba(255, 209, 102, 0.4);
  color: #ffd166;
}

/* Empty State Card */
.cl-empty-state {
  text-align: center;
  padding: 38px 24px;
  border: 1px dashed rgba(255, 209, 102, 0.22);
  border-radius: 14px;
  background: rgba(17, 22, 38, 0.5);
  margin: 10px 0;
}

.cl-empty-icon-halo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 209, 102, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffd166;
  margin-bottom: 14px;
}

.cl-empty-title {
  font-size: 16px;
  font-weight: 700;
  color: #f2e8cf;
  margin-bottom: 6px;
}

.cl-empty-desc {
  font-size: 13px;
  color: #94a3b8;
  max-width: 440px;
  margin: 0 auto 20px auto;
  line-height: 1.5;
}

.cl-empty-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.cl-empty-starters-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  text-align: left;
  margin-top: 14px;
}

.cl-empty-starter-card {
  background: rgba(13, 17, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.18s ease;
}

.cl-empty-starter-card:hover {
  border-color: rgba(255, 209, 102, 0.35);
  background: rgba(18, 24, 42, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.cl-esc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.cl-esc-title {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.cl-esc-preview {
  font-family: 'Kantumruy Pro', 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #ffd166;
  background: #090c15;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 6px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cl-esc-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.cl-esc-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.cl-esc-btn.primary {
  background: rgba(255, 209, 102, 0.15);
  border-color: rgba(255, 209, 102, 0.35);
  color: #ffd166;
}

.cl-esc-btn.primary:hover {
  background: #ffd166;
  color: #0b0f19;
}

.cl-esc-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.cl-esc-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Lesson Cards List */
.cl-lesson-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cl-card {
  background: #111628;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.18s ease;
}

.cl-card:hover {
  border-color: rgba(255, 209, 102, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.cl-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cl-card-num {
  font-size: 12px;
  font-weight: 800;
  color: #ffd166;
  background: rgba(255, 209, 102, 0.1);
  border: 1px solid rgba(255, 209, 102, 0.2);
  border-radius: 6px;
  padding: 2px 7px;
  line-height: 1.4;
  margin-top: 1px;
}

.cl-card-main-meta {
  flex: 1;
}

.cl-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 2px 0;
  line-height: 1.3;
}

.cl-card-desc {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

.cl-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cl-diff-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 4px;
}

.cl-diff-badge.beginner {
  background: rgba(46, 196, 182, 0.15);
  border: 1px solid rgba(46, 196, 182, 0.35);
  color: #2ec4b6;
}

.cl-diff-badge.intermediate {
  background: rgba(255, 209, 102, 0.15);
  border: 1px solid rgba(255, 209, 102, 0.35);
  color: #ffd166;
}

.cl-diff-badge.advanced {
  background: rgba(239, 71, 111, 0.15);
  border: 1px solid rgba(239, 71, 111, 0.35);
  color: #ef476f;
}

.cl-layout-badge {
  font-size: 10px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 2px 7px;
  border-radius: 4px;
}

.cl-card-preview {
  background: #090c15;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 8px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cl-card-preview code {
  font-family: 'Kantumruy Pro', 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #f1f5f9;
  letter-spacing: 0.4px;
}

.cl-card-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #94a3b8;
}

.cl-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cl-meta-item.gold {
  color: #ffd166;
  font-weight: 600;
}

.cl-meta-item.green {
  color: #2ec4b6;
  font-weight: 600;
}

.cl-meta-item.muted {
  color: #64748b;
  font-style: italic;
}

.cl-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cl-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cl-play-btn {
  background: rgba(255, 209, 102, 0.15);
  border: 1px solid rgba(255, 209, 102, 0.35);
  color: #ffd166;
  margin-right: auto;
}

.cl-play-btn:hover {
  background: #ffd166;
  color: #0c0e17;
  transform: translateY(-1px);
}

.cl-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cl-icon-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.cl-icon-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.cl-icon-btn.danger:hover:not(:disabled) {
  background: rgba(239, 71, 111, 0.18);
  border-color: rgba(239, 71, 111, 0.4);
  color: #ef476f;
}

.cl-no-match {
  text-align: center;
  padding: 30px;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   Lesson Creator / Editor Styling
   ============================================================ */

.cl-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cl-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cl-form-group.full-width {
  grid-column: 1 / -1;
}

.cl-form-label {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cl-optional-txt {
  font-size: 11px;
  color: #64748b;
  font-weight: 400;
}

.cl-form-input,
.cl-form-select,
.cl-form-textarea {
  background: #121728;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f2e8cf;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.15s ease;
  font-family: inherit;
}

.cl-form-textarea {
  font-family: 'Kantumruy Pro', 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  min-height: 110px;
}

.cl-form-input:focus,
.cl-form-select:focus,
.cl-form-textarea:focus {
  outline: none;
  border-color: #ffd166;
  box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.2);
}

/* Starter Templates Bar */
.cl-starter-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(17, 22, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
}

.cl-starter-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.cl-starter-label {
  font-size: 11px;
  font-weight: 700;
  color: #ffd166;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.cl-starter-cats {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cl-starter-cat-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cl-starter-cat-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

.cl-starter-cat-btn.active {
  background: rgba(255, 209, 102, 0.15);
  border-color: rgba(255, 209, 102, 0.4);
  color: #ffd166;
}

.cl-starter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cl-starter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cl-starter-chip:hover {
  background: rgba(255, 209, 102, 0.15);
  border-color: rgba(255, 209, 102, 0.35);
  color: #ffd166;
  transform: translateY(-1px);
}

/* Quick Tools Bar */
.cl-tools-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cl-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cl-tool-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.16);
}

.cl-tool-btn.danger:hover {
  background: rgba(239, 71, 111, 0.18);
  border-color: rgba(239, 71, 111, 0.4);
  color: #ef476f;
}

/* Live Telemetry Footer */
.cl-telemetry-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  color: #94a3b8;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.cl-telemetry-item b {
  color: #f1f5f9;
  font-weight: 700;
  margin-left: 3px;
}

.cl-error-box {
  background: rgba(239, 71, 111, 0.15);
  border: 1px solid rgba(239, 71, 111, 0.35);
  color: #ff859e;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1.4;
}

/* Modal Footer */
.cl-modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(17, 22, 38, 0.95);
}

.cl-shortcut-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #64748b;
  margin-right: auto;
}

.cl-shortcut-hint kbd {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  color: #cbd5e1;
}

.cl-sec-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cl-sec-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Confirmation Dialog */
.cl-confirm-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(239, 71, 111, 0.12);
  border: 1px solid rgba(239, 71, 111, 0.3);
  color: #ef476f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.cl-confirm-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 8px 0;
}

.cl-confirm-card p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.cl-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* Completion CTA Banner for Official Curriculum completion */
.custom-lesson-complete-cta {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.12), rgba(243, 156, 18, 0.08));
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 6px 0;
}

.cl-cta-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 209, 102, 0.2);
  color: #ffd166;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cl-cta-text {
  flex: 1;
}

.cl-cta-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffd166;
  margin-bottom: 2px;
}

.cl-cta-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}

.cl-cta-btn {
  background: #ffd166;
  color: #0c0e17;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.cl-cta-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .cl-form-grid {
    grid-template-columns: 1fr;
  }
  .cl-modal-head {
    padding: 14px 16px;
  }
  .cl-modal-body {
    padding: 14px 16px;
  }
  .cl-card-badges {
    flex-direction: column;
    align-items: flex-end;
  }
}


/* Top Action Nav Button */
.top-action-btn.custom-lessons-nav-btn {
  border-color: rgba(255, 209, 102, 0.4) !important;
  background: rgba(255, 209, 102, 0.1) !important;
  color: #ffd166 !important;
  font-weight: 700 !important;
}

.top-action-btn.custom-lessons-nav-btn:hover {
  border-color: #ffd166 !important;
  box-shadow: 0 0 16px rgba(255, 209, 102, 0.35) !important;
  background: rgba(255, 209, 102, 0.24) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Custom Sidebar Card in Lesson Strip */
.custom-sidebar-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.12) 0%, rgba(18, 24, 46, 0.88) 100%) !important;
  border: 1px solid rgba(255, 209, 102, 0.38) !important;
  border-radius: 11px !important;
  padding: 8px 12px !important;
  margin: 4px 4px 8px !important;
  box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.custom-sidebar-card:hover {
  transform: translateY(-2px) scale(1.01) !important;
  border-color: #ffd166 !important;
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 209, 102, 0.25) !important;
}

.csc-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.csc-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #ffd166;
  letter-spacing: 0.3px;
}

.csc-sub {
  font-size: 10px;
  color: #94a3b8;
}

.csc-btn {
  background: linear-gradient(135deg, #ffd166 0%, #f39c12 100%) !important;
  color: #0b0f19 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
  border: none !important;
  box-shadow: 0 3px 10px rgba(243, 156, 18, 0.35) !important;
  cursor: pointer !important;
  flex-shrink: 0;
  transition: all 0.18s ease !important;
}

.csc-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.05);
}

.lm-custom-tab-btn {
  border-color: rgba(255, 209, 102, 0.35) !important;
  color: #ffd166 !important;
}

/* Sidebar Dual Banners Row */
.lesson-strip-banners-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 6px 10px 8px;
  flex: 0 0 auto;
}

.lesson-strip-banners-row .lsh-hub-banner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 6px 8px;
  background: linear-gradient(135deg, rgba(20, 26, 44, 0.95) 0%, rgba(13, 18, 32, 0.98) 100%);
  border: 1px solid rgba(255, 209, 102, 0.32);
  border-radius: 9px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 209, 102, 0.12);
  cursor: pointer;
  color: var(--ink);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.lesson-strip-banners-row .lsh-hub-banner:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 209, 102, 0.65);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.45), 0 0 14px rgba(255, 209, 102, 0.22);
  background: linear-gradient(135deg, rgba(28, 36, 60, 0.98) 0%, rgba(16, 22, 40, 1) 100%);
}

.lesson-strip-banners-row .lsh-hub-banner:active {
  transform: translateY(0);
}

.lesson-strip-banners-row .lsh-hub-banner.custom {
  background: linear-gradient(135deg, rgba(26, 22, 42, 0.95) 0%, rgba(16, 14, 28, 0.98) 100%);
  border-color: rgba(255, 209, 102, 0.38);
}

.lesson-strip-banners-row .lsh-hub-banner.custom:hover {
  background: linear-gradient(135deg, rgba(38, 30, 58, 0.98) 0%, rgba(22, 18, 38, 1) 100%);
  border-color: #ffd166;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 209, 102, 0.28);
}

.lesson-strip-banners-row .lsh-hb-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  width: 100%;
}

.lesson-strip-banners-row .lsh-hb-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2.5px 5.5px;
  border-radius: 5px;
  background: rgba(255, 209, 102, 0.14);
  border: 1px solid rgba(255, 209, 102, 0.38);
  color: #ffd166;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(255, 209, 102, 0.18);
}

.lesson-strip-banners-row .lsh-hb-badge.custom-badge {
  background: rgba(255, 209, 102, 0.18);
  border-color: rgba(255, 209, 102, 0.48);
  color: #ffd166;
}

.lesson-strip-banners-row .lsh-hb-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.lesson-strip-banners-row .lsh-hb-title {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 0.69rem;
  font-weight: 700;
  color: #ffd166;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.lesson-strip-banners-row .lsh-hb-sub {
  font-size: 0.58rem;
  color: var(--ink-dim, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

@media (max-width: 280px) {
  .lesson-strip-banners-row {
    grid-template-columns: 1fr;
  }
}

/* Light Theme */
html.theme-light .lesson-strip-banners-row .lsh-hub-banner {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html.theme-light .lesson-strip-banners-row .lsh-hub-banner:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}
html.theme-light .lesson-strip-banners-row .lsh-hb-title {
  color: #b45309 !important;
}
html.theme-light .lesson-strip-banners-row .lsh-hb-sub {
  color: #64748b !important;
}

/* Sepia Theme */
html.theme-sepia .lesson-strip-banners-row .lsh-hub-banner {
  background: #f5ece0 !important;
  border-color: #d8c8b0 !important;
  color: #2c1b0c !important;
}
html.theme-sepia .lesson-strip-banners-row .lsh-hb-title {
  color: #92400e !important;
}
html.theme-sepia .lesson-strip-banners-row .lsh-hb-sub {
  color: #78716c !important;
}
