/* ==========================================================================
   DJ 3RD DERIVATIVE STUDIO — 747-LESSON CURRICULUM HUB STYLESHEET
   Supports:
     - Hybrid 1 (/games-test/): Twin-Deck + Unit Crate Shelves (A–F) + Printables + Sticky Turntable
     - Hybrid 2 (/games-test-2/): Combined Topic & Lesson Workspace (2 Songs + Printables + Game on Same Page)
   Honors AGENTS.md Rules 1 (Concept C Theme), 2 (0.0px Button Alignment & 16:9 Thumbs) & 9 (Typography)
   ========================================================================== */

:root {
  /* SVG Visual Anchor Semantic Tokens for crisp light-on-dark Studio Diagram Rendering */
  --svg-ink: #111827;
  --svg-shadow: #111827;
  --svg-panel-bg: #fffef7;
  --svg-header-left-bg: #22d3ee;
  --svg-header-left-ink: #111827;
  --svg-header-right-bg: #00e5ff;
  --svg-header-right-ink: #111827;
  --svg-pill-left-bg: #ecfeff;
  --svg-pill-right-bg: #fef9c3;
  --svg-tile-left: #22d3ee;
  --svg-tile-right: #00e5ff;
  --svg-laser: #ec4899;
  --svg-bolt-fill: #ec4899;
  --svg-sum-pill-bg: #00e5ff;
  --svg-tri-bg: #ecfeff;
  --svg-node-top-bg: #00e5ff;
  --svg-node-left-bg: #ffffff;
  --svg-missing-bg: #fce7f3;
  --svg-op-bg: #ffffff;
  --svg-eq-strip-bg: #f8fafc;
  --svg-zero-ok-bg: #ecfccb;
  --svg-zero-no-bg: #fce7f3;
}

body.has-turntable-dock {
  padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Keep 4-Band Math Row (K-2, 3-5, 6-8, 9-12) clean on Desktop & Mobile */
#twinDeckNav .dc-deck-head {
  flex-wrap: wrap;
}

#twinDeckNav .dc-deck-btns.four-bands {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 520px) {
  #twinDeckNav .dc-deck-btns.four-bands {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Top Staging Switcher & Classroom Utility Bar */
.ch-staging-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #0b1120;
  border: 3px solid #000000;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 5px 5px 0 #000000;
  margin-bottom: 14px;
}

.ch-staging-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ch-staging-pill {
  font-family: var(--cc-font) !important;
  font-size: 11.5px;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 9px;
  border: 2.5px solid #000000;
  background: #1e293b;
  color: #cbd5e1;
  box-shadow: 3px 3px 0 #000000;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.12s ease, background 0.12s ease;
}

.ch-staging-pill:hover {
  transform: translate(-1px, -1px);
  color: #ffffff;
}

.ch-staging-pill.active {
  background: #00e5ff;
  color: #000000;
}

.ch-staging-pill.alt-active {
  background: #22d3ee;
  color: #000000;
}

.ch-utility-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ch-util-btn {
  font-family: var(--cc-font) !important;
  font-size: 11px;
  padding: 7px 11px;
  border-radius: 9px;
  border: 2.5px solid #000000;
  background: #1e1b4b;
  color: #ffffff;
  box-shadow: 3px 3px 0 #000000;
  cursor: pointer;
}

.ch-util-btn.timer-running {
  background: #ec4899;
  color: #ffffff;
}

/* Unified Filter, Search & Topic Control Shell */
.ch-control-shell {
  background: linear-gradient(180deg, #0f172a 0%, #0b1324 100%);
  border: 3.5px solid #000000;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 6px 6px 0 #000000;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ch-search-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}

@media (max-width: 760px) {
  .ch-search-row {
    grid-template-columns: 1fr;
  }
}

.ch-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ch-search-input {
  width: 100%;
  font-family: var(--cc-body-font) !important;
  font-size: 14px;
  font-weight: 600;
  background: #050914;
  color: #ffffff;
  border: 2.5px solid #22d3ee;
  border-radius: 10px;
  padding: 10px 38px 10px 14px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.ch-search-input::placeholder {
  color: #94a3b8;
  font-family: var(--cc-body-font) !important;
}

.ch-search-clear {
  position: absolute;
  right: 8px;
  background: #1e293b;
  color: #ffffff;
  border: 2px solid #000000;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
  cursor: pointer;
}

.ch-surprise-btn {
  font-family: var(--cc-font) !important;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 2.5px solid #000000;
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  color: #ffffff;
  box-shadow: 3px 3px 0 #000000;
  cursor: pointer;
  white-space: nowrap;
}

.ch-share-btn {
  font-family: var(--cc-font) !important;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 2.5px solid #000000;
  background: #22d3ee;
  color: #000000;
  box-shadow: 3px 3px 0 #000000;
  cursor: pointer;
  white-space: nowrap;
}

/* Course Strip & Topic A–F Strip */
.ch-strip-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ch-strip-label {
  font-family: var(--cc-font) !important;
  font-size: 11px;
  color: #00e5ff;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ch-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ch-course-btn {
  font-family: var(--cc-font) !important;
  font-size: 11.5px;
  padding: 7px 12px;
  border-radius: 9px;
  border: 2.5px solid #000000;
  background: #1e293b;
  color: #e2e8f0;
  box-shadow: 3px 3px 0 #000000;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.12s ease;
}

.ch-course-btn:hover {
  background: #334155;
  color: #ffffff;
}

.ch-course-btn.active {
  background: #00e5ff;
  color: #000000;
  transform: translate(-1px, -1px);
}

.ch-topic-btn {
  font-family: var(--cc-font) !important;
  font-size: 11px;
  padding: 7px 11px;
  border-radius: 9px;
  border: 2.5px solid #000000;
  background: #0f172a;
  color: #cbd5e1;
  box-shadow: 3px 3px 0 #000000;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ch-topic-btn .ch-topic-code {
  background: #22d3ee;
  color: #000000;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1.5px solid #000000;
  font-size: 10.5px;
}

.ch-topic-btn.active {
  background: #22d3ee;
  color: #000000;
}

.ch-topic-btn.active .ch-topic-code {
  background: #00e5ff;
  color: #000000;
}

/* ==========================================================================
   HYBRID 1: UNIT-GROUPED CRATE SHELVES & DOUBLE-SIDED LESSON VINYL CARDS
   ========================================================================== */
#recordCrateGrid.ch-crate-747-host {
  display: block !important;
}

.ch-unit-shelf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ch-unit-hybrid-jump-btn {
  font-family: var(--cc-font) !important;
  font-size: 11.5px;
  padding: 9px 13px;
  border-radius: 10px;
  border: 2.5px solid #000000;
  background: #ec4899;
  color: #ffffff;
  box-shadow: 3.5px 3.5px 0 #000000;
  cursor: pointer;
  white-space: nowrap;
}

.ch-unit-shelf {
  background: rgba(15, 23, 42, 0.88);
  border: 3.5px solid #000000;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 7px 7px 0 #000000;
  margin-bottom: 20px;
}

.ch-unit-shelf-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2.5px dashed rgba(34, 211, 238, 0.35);
}

.ch-unit-shelf-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ch-unit-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ch-unit-pill {
  font-family: var(--cc-font) !important;
  font-size: 11px;
  background: #00e5ff;
  color: #000000;
  border: 2px solid #000000;
  border-radius: 7px;
  padding: 3px 9px;
  box-shadow: 2.5px 2.5px 0 #000000;
}

.ch-unit-count-pill {
  font-family: var(--cc-font) !important;
  font-size: 10.5px;
  background: #1e293b;
  color: #22d3ee;
  border: 2px solid #000000;
  border-radius: 7px;
  padding: 3px 9px;
}

.ch-unit-shelf-title {
  font-family: var(--cc-font) !important;
  font-size: clamp(16px, 1.7vw, 20px);
  color: #ffffff;
  margin: 0;
  text-shadow: 2px 2px 0 #000000;
}

.ch-unit-shelf-desc {
  font-family: var(--cc-body-font) !important;
  font-size: 13px;
  color: #cbd5e1;
  margin: 0;
}

.ch-unit-game-jump-btn {
  font-family: var(--cc-font) !important;
  font-size: 11.5px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 2.5px solid #000000;
  background: #2dd4bf;
  color: #000000;
  box-shadow: 3.5px 3.5px 0 #000000;
  cursor: pointer;
  white-space: nowrap;
}

.ch-lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(335px, 1fr));
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 420px) {
  .ch-lessons-grid {
    grid-template-columns: 1fr;
  }
}

/* Lesson Vinyl Card — Strict Bottom-Pinned Action Row (AGENTS.md Rule 2) */
.ch-lesson-card {
  background: linear-gradient(180deg, #131c33 0%, #0b1120 100%);
  border: 3px solid #000000;
  border-radius: 15px;
  padding: 14px;
  box-shadow: 5px 5px 0 #000000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.ch-lesson-card.is-playing {
  border-color: #00e5ff;
  box-shadow: 0 0 0 2px #00e5ff, 6px 6px 0 #000000;
}

.ch-card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.ch-slot-badge {
  font-family: var(--cc-font) !important;
  font-size: 10.5px;
  background: #ec4899;
  color: #ffffff;
  border: 2px solid #000000;
  border-radius: 6px;
  padding: 2px 8px;
  box-shadow: 2px 2px 0 #000000;
}

.ch-std-badge {
  font-family: var(--cc-font) !important;
  font-size: 10px;
  background: #0f172a;
  color: #22d3ee;
  border: 1.8px solid #22d3ee;
  border-radius: 6px;
  padding: 2px 7px;
  max-width: 195px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ch-vinyl-sleeve-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  background: radial-gradient(circle at 15% 50%, rgba(236, 72, 153, 0.24), rgba(15, 23, 42, 0.95));
  border: 2.5px solid #000000;
  border-radius: 11px;
  padding: 9px 11px;
}

.ch-vinyl-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, #00e5ff 0 18%, #ec4899 19% 36%, #090d16 37% 100%);
  border: 2.5px solid #000000;
  box-shadow: 2px 2px 0 #000000;
  flex-shrink: 0;
  position: relative;
}

.ch-lesson-card.is-playing .ch-vinyl-icon,
.ch-turntable-disc.is-playing {
  animation: chSpinVinyl 2.8s linear infinite;
}

@keyframes chSpinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ch-hook-quote {
  font-family: var(--cc-body-font) !important;
  font-size: 12px;
  font-style: italic;
  font-weight: 600;
  color: #fef08a;
  line-height: 1.32;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ch-lesson-title {
  font-family: var(--cc-font) !important;
  font-size: 15.5px;
  line-height: 1.24;
  color: #ffffff;
  margin: 0;
}

.ch-lesson-skill {
  font-family: var(--cc-body-font) !important;
  font-size: 13px;
  line-height: 1.4;
  color: #cbd5e1;
  margin: 0;
}

/* Study & Printables Mid-Action Strip */
.ch-toolkit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}

.ch-tool-btn {
  font-family: var(--cc-font) !important;
  font-size: 10.5px;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  border-radius: 8px;
  border: 2px solid #000000;
  box-shadow: 2.5px 2.5px 0 #000000;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  white-space: nowrap;
}

.ch-tool-btn.lyrics-btn {
  background: #1e293b;
  color: #22d3ee;
}

.ch-tool-btn.lyrics-btn:hover {
  background: #22d3ee;
  color: #000000;
}

.ch-tool-btn.print-btn {
  background: #1e293b;
  color: #00e5ff;
}

.ch-tool-btn.print-btn:hover {
  background: #00e5ff;
  color: #000000;
}

/* Bottom-Pinned Uniform Action Row (0.0px vertical variance invariant!) */
.ch-action-stack {
  margin-top: auto;
  padding-top: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr 44px;
  gap: 7px;
  align-items: center;
}

.ch-spin-btn {
  font-family: var(--cc-font) !important;
  font-size: 11px;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  border-radius: 9px;
  border: 2.5px solid #000000;
  box-shadow: 3px 3px 0 #000000;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  white-space: nowrap;
}

.ch-spin-btn.take-a {
  background: #00e5ff;
  color: #000000;
}

.ch-spin-btn.take-b {
  background: #22d3ee;
  color: #000000;
}

.ch-spin-btn.is-active-take {
  background: #ec4899;
  color: #ffffff;
}

.ch-like-btn {
  font-family: var(--cc-font) !important;
  font-size: 13px;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  width: 44px;
  border-radius: 9px;
  border: 2.5px solid #000000;
  background: #1e293b;
  color: #f472b6;
  box-shadow: 3px 3px 0 #000000;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ch-like-btn.liked {
  background: #ec4899;
  color: #ffffff;
}

/* ==========================================================================
   GAME CARTRIDGE CARDS (Uncropped 16:9 Thumbnails & 0.0px Bottom Row)
   ========================================================================== */
.ch-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.ch-game-card {
  background: linear-gradient(180deg, #131c33 0%, #0b1120 100%);
  border: 3px solid #000000;
  border-radius: 15px;
  padding: 13px;
  box-shadow: 5px 5px 0 #000000;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ch-game-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: 2.5px solid #000000;
  overflow: hidden;
  background: #050811;
  position: relative;
  cursor: pointer;
}

.ch-game-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ch-game-action-row {
  margin-top: auto;
  padding-top: 6px;
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 7px;
  align-items: center;
}

.ch-insert-game-btn {
  font-family: var(--cc-font) !important;
  font-size: 11.5px;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  border-radius: 9px;
  border: 2.5px solid #000000;
  background: #2dd4bf;
  color: #000000;
  box-shadow: 3px 3px 0 #000000;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  white-space: nowrap;
}

/* ==========================================================================
   HYBRID 2 (/games-test-2/): COMBINED TOPIC & LESSON STUDIO (SAME PAGE!)
   ========================================================================== */
.ch-lesson-picker-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.ch-lesson-pick-card {
  text-align: left;
  background: #131c33;
  color: #e2e8f0;
  border: 2.5px solid #000000;
  border-radius: 11px;
  padding: 10px 12px;
  box-shadow: 3.5px 3.5px 0 #000000;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ch-lesson-pick-card.active {
  background: linear-gradient(135deg, #00e5ff 0%, #facc15 100%);
  color: #000000;
}

.ch-lesson-pick-kicker {
  font-family: var(--cc-font) !important;
  font-size: 10.5px;
  color: #22d3ee;
}

.ch-lesson-pick-card.active .ch-lesson-pick-kicker {
  color: #be185d;
}

.ch-lesson-pick-title {
  font-family: var(--cc-font) !important;
  font-size: 13px;
  line-height: 1.22;
}

.ch-lesson-pick-skill {
  font-family: var(--cc-body-font) !important;
  font-size: 12px;
  line-height: 1.3;
  opacity: 0.9;
}

/* Combined Workspace Panels on Test 2 */
.ch-combined-song-deck {
  background: linear-gradient(180deg, #17153b 0%, #0f172a 100%);
  border: 4px solid #000000;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 7px 7px 0 #000000;
  margin-bottom: 20px;
}

.ch-combined-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 2.5px dashed rgba(253, 224, 71, 0.35);
  margin-bottom: 16px;
}

.ch-combined-title {
  font-family: var(--cc-font) !important;
  font-size: clamp(19px, 2.1vw, 25px);
  color: #ffffff;
  text-shadow: 2.5px 2.5px 0 #000000;
  margin: 4px 0;
}

.ch-combined-skill {
  font-family: var(--cc-body-font) !important;
  font-size: 14px;
  color: #e2e8f0;
  margin: 0;
  max-width: 780px;
}

.ch-combined-cta-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ch-big-printables-btn {
  font-family: var(--cc-font) !important;
  font-size: 12px;
  padding: 10px 15px;
  border-radius: 10px;
  border: 2.5px solid #000000;
  background: #00e5ff;
  color: #000000;
  box-shadow: 3.5px 3.5px 0 #000000;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ch-dual-takes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 780px) {
  .ch-dual-takes-grid {
    grid-template-columns: 1fr;
  }
}

.ch-take-deck-card {
  background: #0b1120;
  border: 3px solid #000000;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 4.5px 4.5px 0 #000000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ch-take-deck-card.take-a-card {
  border-top: 5px solid #00e5ff;
}

.ch-take-deck-card.take-b-card {
  border-top: 5px solid #22d3ee;
}

.ch-take-deck-card.is-playing {
  box-shadow: 0 0 0 2.5px #ec4899, 5px 5px 0 #000000;
}

/* Inline Visual Anchor, Lyrics & Vocab Tabs */
.ch-anchor-drawer {
  background: #0b1120;
  border: 3px solid #000000;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 4px 4px 0 #000000;
}

.ch-anchor-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.ch-anchor-tab {
  font-family: var(--cc-font) !important;
  font-size: 11px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 2px solid #000000;
  background: #1e293b;
  color: #cbd5e1;
  box-shadow: 2.5px 2.5px 0 #000000;
  cursor: pointer;
}

.ch-anchor-tab.active {
  background: #22d3ee;
  color: #000000;
}

.ch-svg-stage-box {
  background: #fffef7;
  color: #111827;
  border: 3px solid #000000;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 4px 4px 0 #000000;
}

.ch-svg-stage-box svg {
  width: 100%;
  max-height: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.ch-trap-fix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 720px) {
  .ch-trap-fix-grid {
    grid-template-columns: 1fr;
  }
}

.ch-trap-card,
.ch-fix-card {
  border: 2.5px solid #000000;
  border-radius: 10px;
  padding: 10px 12px;
  background: #131c33;
}

.ch-trap-card {
  border-left: 6px solid #ec4899;
}

.ch-fix-card {
  border-left: 6px solid #2dd4bf;
}

.ch-lyrics-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 780px) {
  .ch-lyrics-two-col {
    grid-template-columns: 1fr;
  }
}

.ch-stanza-box {
  background: #131c33;
  border: 2px solid #000000;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.ch-stanza-box.is-hook {
  background: rgba(253, 224, 71, 0.14);
  border: 2.5px solid #00e5ff;
}

.ch-stanza-tag {
  font-family: var(--cc-font) !important;
  font-size: 10.5px;
  color: #22d3ee;
  margin-bottom: 5px;
  display: inline-block;
}

.ch-stanza-box.is-hook .ch-stanza-tag {
  color: #00e5ff;
}

.ch-stanza-line {
  font-family: var(--cc-body-font) !important;
  font-size: 13.5px;
  line-height: 1.42;
  color: #f8fafc;
  margin: 0 0 3px 0;
}

.ch-vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.ch-vocab-card {
  background: #131c33;
  border: 2.5px solid #000000;
  border-radius: 10px;
  padding: 10px 12px;
}

.ch-vocab-term {
  font-family: var(--cc-font) !important;
  font-size: 12px;
  color: #22d3ee;
  margin-bottom: 3px;
}

.ch-vocab-cog {
  font-family: var(--cc-body-font) !important;
  font-size: 11.5px;
  font-style: italic;
  color: #00e5ff;
  margin-bottom: 5px;
}

.ch-vocab-def {
  font-family: var(--cc-body-font) !important;
  font-size: 12.5px;
  color: #e2e8f0;
  line-height: 1.35;
}

/* Combined Matched Game Panel (Test 2) */
.ch-matched-game-deck {
  background: linear-gradient(180deg, #0f172a 0%, #090f1d 100%);
  border: 4px solid #000000;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 7px 7px 0 #000000;
  margin-bottom: 22px;
}

.ch-tier-recipe-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 12px 0 14px 0;
}

.ch-recipe-btn {
  text-align: left;
  background: #131c33;
  color: #e2e8f0;
  border: 2.5px solid #000000;
  border-radius: 10px;
  padding: 9px 12px;
  box-shadow: 3px 3px 0 #000000;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ch-recipe-btn.active {
  background: #2dd4bf;
  color: #000000;
}

.ch-recipe-code {
  font-family: var(--cc-font) !important;
  font-size: 11.5px;
}

.ch-recipe-sub {
  font-family: var(--cc-body-font) !important;
  font-size: 12px;
  font-weight: 600;
}

.ch-sample-q-banner {
  background: #131c33;
  border: 2.5px solid #22d3ee;
  border-radius: 11px;
  padding: 10px 14px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ch-featured-game-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  align-items: center;
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  border: 3px solid #2dd4bf;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 5px 5px 0 #000000;
  margin-bottom: 16px;
}

@media (max-width: 820px) {
  .ch-featured-game-hero {
    grid-template-columns: 1fr;
  }
}

.ch-inline-arcade-stage {
  background: #050811;
  border: 3.5px solid #22d3ee;
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 18px;
  box-shadow: 6px 6px 0 #000000;
}

.ch-inline-stage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.ch-iframe-host {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 76vh;
  background: #000000;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #000000;
}

.ch-iframe-host iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================================================
   PERSISTENT STICKY BOTTOM DJ TURNTABLE DOCK
   ========================================================================== */
.ch-turntable-dock {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 10px;
  z-index: 950;
  max-width: 1400px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #4a044e 100%);
  border: 3.5px solid #000000;
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 -4px 22px rgba(0, 0, 0, 0.65), 6px 6px 0 #000000;
  display: grid;
  grid-template-columns: minmax(200px, 1.1fr) minmax(240px, 1.5fr) auto;
  gap: 12px;
  align-items: center;
}

@media (max-width: 980px) {
  .ch-turntable-dock {
    grid-template-columns: 1fr;
    gap: 8px;
    left: 8px;
    right: 8px;
    bottom: 6px;
    padding: 9px 11px;
  }
}

.ch-dock-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ch-turntable-disc {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, #00e5ff 0 20%, #ec4899 21% 38%, #090d16 39% 100%);
  border: 2.5px solid #000000;
  flex-shrink: 0;
}

.ch-dock-text {
  min-width: 0;
}

.ch-dock-kicker {
  font-family: var(--cc-font) !important;
  font-size: 10px;
  color: #00e5ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ch-dock-title {
  font-family: var(--cc-font) !important;
  font-size: 13px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ch-dock-transport {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ch-dock-btn {
  font-family: var(--cc-font) !important;
  font-size: 11px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 2px solid #000000;
  background: #1e293b;
  color: #ffffff;
  box-shadow: 2px 2px 0 #000000;
  cursor: pointer;
  white-space: nowrap;
}

.ch-dock-btn.play-toggle {
  background: #00e5ff;
  color: #000000;
  min-width: 82px;
}

.ch-dock-btn.flip-take {
  background: #22d3ee;
  color: #000000;
}

.ch-dock-scrubber {
  flex: 1;
  min-width: 90px;
  accent-color: #00e5ff;
  cursor: pointer;
}

.ch-dock-time {
  font-family: var(--cc-font) !important;
  font-size: 11px;
  color: #e2e8f0;
  white-space: nowrap;
}

.ch-dock-extras {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   MODALS: PRINTABLES KIT MODAL & LYRICS / VISUAL ANCHOR DRAWER MODAL
   ========================================================================== */
.ch-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(5, 8, 17, 0.84);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.ch-modal-card {
  width: 100%;
  max-width: 940px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #17153b 0%, #0b1120 100%);
  border: 4px solid #000000;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 8px 8px 0 #000000;
  color: #ffffff;
}

.ch-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2.5px dashed rgba(34, 211, 238, 0.35);
  margin-bottom: 14px;
}

.ch-printables-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.ch-printable-item {
  background: #131c33;
  border: 2.5px solid #000000;
  border-radius: 12px;
  padding: 13px;
  box-shadow: 4px 4px 0 #000000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ch-printable-link {
  margin-top: auto;
  font-family: var(--cc-font) !important;
  font-size: 11.5px;
  text-decoration: none;
  text-align: center;
  padding: 9px 12px;
  border-radius: 8px;
  border: 2px solid #000000;
  background: #00e5ff;
  color: #000000;
  box-shadow: 2.5px 2.5px 0 #000000;
  display: block;
}

.ch-printable-link.bw-link {
  background: #e2e8f0;
  color: #000000;
}

.ch-printable-link.tent-link {
  background: #22d3ee;
  color: #000000;
}

/* ==========================================================================
   SHARED 6-THEME SYSTEM: MATRIX (JADE / TEAL / AMBER) + DAYLIGHT + BLACKOUT + BLUEPRINT
   ========================================================================== */

body.theme-matrix1 {
  --mx-bg: #040805;
  --mx-card-bg: rgba(9, 15, 11, 0.80);
  --mx-lesson-bg: rgba(12, 19, 14, 0.92);
  --mx-subtle: #0e1711;
  --mx-elevated: rgba(13, 22, 16, 0.88);
  --mx-pill-bg: #111c14;
  --mx-border: #1b2e21;
  --mx-border-strong: #284230;
  --mx-text: #e2ece5;
  --mx-muted: #92a899;
  --mx-primary: #68c987;
  --mx-primary-surf: rgba(104, 201, 135, 0.13);
  --mx-primary-bdr: rgba(104, 201, 135, 0.38);
  --mx-secondary: #6ab8a8;
  --mx-secondary-surf: rgba(106, 184, 168, 0.12);
  --mx-secondary-bdr: rgba(106, 184, 168, 0.35);
  --mx-tertiary: #c4ab6c;
  --mx-tertiary-surf: rgba(196, 171, 108, 0.12);
  --mx-tertiary-bdr: rgba(196, 171, 108, 0.35);
  --mx-quaternary: #7ec99b;
  --mx-quaternary-surf: rgba(126, 201, 155, 0.13);
  --mx-quaternary-bdr: rgba(126, 201, 155, 0.38);
}

body.theme-matrix-teal {
  --mx-bg: #04080b;
  --mx-card-bg: rgba(8, 15, 20, 0.80);
  --mx-lesson-bg: rgba(11, 19, 25, 0.92);
  --mx-subtle: #0d171e;
  --mx-elevated: rgba(12, 21, 28, 0.88);
  --mx-pill-bg: #101d25;
  --mx-border: #1b2e3b;
  --mx-border-strong: #274354;
  --mx-text: #e2edf2;
  --mx-muted: #90a7b2;
  --mx-primary: #5bb6c9;
  --mx-primary-surf: rgba(91, 182, 201, 0.14);
  --mx-primary-bdr: rgba(91, 182, 201, 0.40);
  --mx-secondary: #7fa4c4;
  --mx-secondary-surf: rgba(127, 164, 196, 0.13);
  --mx-secondary-bdr: rgba(127, 164, 196, 0.38);
  --mx-tertiary: #c4ab6c;
  --mx-tertiary-surf: rgba(196, 171, 108, 0.12);
  --mx-tertiary-bdr: rgba(196, 171, 108, 0.35);
  --mx-quaternary: #66bfa6;
  --mx-quaternary-surf: rgba(102, 191, 166, 0.14);
  --mx-quaternary-bdr: rgba(102, 191, 166, 0.40);
}

body.theme-matrix-amber {
  --mx-bg: #080604;
  --mx-card-bg: rgba(16, 13, 9, 0.82);
  --mx-lesson-bg: rgba(20, 16, 11, 0.92);
  --mx-subtle: #17120c;
  --mx-elevated: rgba(22, 17, 12, 0.88);
  --mx-pill-bg: #1c160f;
  --mx-border: #2e2418;
  --mx-border-strong: #453624;
  --mx-text: #efe9de;
  --mx-muted: #afa38f;
  --mx-primary: #d4af63;
  --mx-primary-surf: rgba(212, 175, 99, 0.14);
  --mx-primary-bdr: rgba(212, 175, 99, 0.40);
  --mx-secondary: #c98a63;
  --mx-secondary-surf: rgba(201, 138, 99, 0.13);
  --mx-secondary-bdr: rgba(201, 138, 99, 0.38);
  --mx-tertiary: #b89f72;
  --mx-tertiary-surf: rgba(184, 159, 114, 0.12);
  --mx-tertiary-bdr: rgba(184, 159, 114, 0.36);
  --mx-quaternary: #e0be74;
  --mx-quaternary-surf: rgba(224, 190, 116, 0.14);
  --mx-quaternary-bdr: rgba(224, 190, 116, 0.40);
}

body[class*="theme-matrix"] {
  --cc-bg: var(--mx-bg) !important;
  --cc-card-bg: var(--mx-card-bg) !important;
  --cc-yellow: var(--mx-primary) !important;
  --cc-cyan: var(--mx-secondary) !important;
  --cc-pink: var(--mx-tertiary) !important;
  --cc-green: var(--mx-quaternary) !important;
  --tp-yellow: var(--mx-primary) !important;
  --tp-cyan: var(--mx-secondary) !important;
  --tp-pink: var(--mx-tertiary) !important;
  --tp-lime: var(--mx-quaternary) !important;
  background-color: var(--mx-bg) !important;
  background-image: none !important;
}

.hub-container,
.dc-wrap {
  position: relative;
  z-index: 2;
}

.opt1-utility-bar {
  position: relative;
  z-index: 400 !important;
}

.opt1-filter-bar {
  position: relative;
  z-index: 300 !important;
}

#studioSearchWrap {
  position: relative;
  z-index: 200 !important;
}

.dc-hero,
.dc-devlog-wrap,
#tpEcosystemDeck,
.ch-unit-shelf,
.ch-topic-section {
  position: relative;
  z-index: 1;
}

.opt1-dd-wrap.is-open {
  z-index: 9999 !important;
}

.opt1-dd-menu {
  z-index: 9999 !important;
}

body[class*="theme-matrix"] .hub-container {
  max-width: 1260px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body[class*="theme-matrix"] .opt1-utility-bar,
body[class*="theme-matrix"] .dc-hero,
body[class*="theme-matrix"] .opt1-filter-bar,
body[class*="theme-matrix"] .ch-topic-section,
body[class*="theme-matrix"] .ch-unit-shelf,
body[class*="theme-matrix"] .ch-card,
body[class*="theme-matrix"] .dc-card,
body[class*="theme-matrix"] .dc-sleeve,
body[class*="theme-matrix"] .dc-survey-shell {
  background: var(--mx-card-bg) !important;
  border: 1px solid var(--mx-border-strong) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.58) !important;
}

body[class*="theme-matrix"] .dc-devlog-wrap {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body[class*="theme-matrix"] .dc-devlog-bar,
body[class*="theme-matrix"] .dc-devlog-drawer {
  background: var(--mx-lesson-bg) !important;
  border: 1px solid var(--mx-border-strong) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.58) !important;
}

body[class*="theme-matrix"] .dc-devlog-drawer {
  border-top: 0 !important;
}

body[class*="theme-matrix"] .dc-devlog-card {
  background: var(--mx-subtle) !important;
  border: 1px solid var(--mx-border-strong) !important;
  box-shadow: none !important;
}

body[class*="theme-matrix"] .dc-devlog-guide-cta {
  background: var(--mx-primary-surf) !important;
  color: var(--mx-primary) !important;
  border: 1px solid var(--mx-primary-bdr) !important;
  box-shadow: none !important;
}

body[class*="theme-matrix"] .opt1-utility-brand span:first-child,
body[class*="theme-matrix"] .dc-topbar-brand,
body[class*="theme-matrix"] .opt1-util-title {
  color: var(--mx-primary) !important;
  text-shadow: none !important;
}

body[class*="theme-matrix"] .opt1-utility-pill {
  background: var(--mx-subtle) !important;
  color: var(--mx-muted) !important;
  border: 1px solid var(--mx-border-strong) !important;
}

body[class*="theme-matrix"] .dc-speech {
  background: var(--mx-pill-bg) !important;
  color: var(--mx-primary) !important;
  border: 1px solid var(--mx-primary-bdr) !important;
  box-shadow: none !important;
}

body[class*="theme-matrix"] .dc-title,
body[class*="theme-matrix"] .dc-title span {
  color: var(--mx-text) !important;
  text-shadow: none !important;
}

body[class*="theme-matrix"] .dc-devlog-pill {
  background: var(--mx-primary-surf) !important;
  color: var(--mx-primary) !important;
  border: 1px solid var(--mx-primary-bdr) !important;
}

body[class*="theme-matrix"] .opt1-mode-seg {
  background: var(--mx-subtle) !important;
  border: 1px solid var(--mx-border) !important;
}

body[class*="theme-matrix"] .opt1-mode-btn {
  color: var(--mx-muted) !important;
}

body[class*="theme-matrix"] .opt1-mode-btn.active-crate,
body[class*="theme-matrix"] .opt1-mode-btn.active-games,
body[class*="theme-matrix"] .opt1-mode-btn.active-hybrid,
body[class*="theme-matrix"] .opt1-mode-btn.active {
  background: var(--mx-primary-surf) !important;
  color: var(--mx-primary) !important;
  border: 1px solid var(--mx-primary-bdr) !important;
  box-shadow: none !important;
}

body[class*="theme-matrix"] .opt1-mode-btn.opt1-dj4d-hub-btn {
  background: var(--mx-quaternary-surf) !important;
  color: var(--mx-quaternary) !important;
  border: 1px solid var(--mx-quaternary-bdr) !important;
  box-shadow: none !important;
}

body[class*="theme-matrix"] .opt1-dd-btn,
body[class*="theme-matrix"] .u6-fav-btn {
  background: var(--mx-subtle) !important;
  border: 1px solid var(--mx-border-strong) !important;
  color: var(--mx-muted) !important;
  box-shadow: none !important;
}

body[class*="theme-matrix"] .opt1-dd-menu {
  background: var(--mx-lesson-bg) !important;
  border: 1px solid var(--mx-border-strong) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.78) !important;
}

body[class*="theme-matrix"] .opt1-dd-item {
  color: var(--mx-text) !important;
}

body[class*="theme-matrix"] .opt1-dd-item.is-active,
body[class*="theme-matrix"] .opt1-dd-item:hover {
  background: var(--mx-primary-surf) !important;
  color: var(--mx-primary) !important;
}

body[class*="theme-matrix"] .opt1-dd-val.cy,
body[class*="theme-matrix"] #opt1SubjectBtnVal,
body[class*="theme-matrix"] #opt1CourseBtnVal,
body[class*="theme-matrix"] #opt1ToolsBtn .opt1-dd-val {
  color: var(--mx-secondary) !important;
}

body[class*="theme-matrix"] .opt1-dd-val.yl,
body[class*="theme-matrix"] #opt1GradeBtnVal,
body[class*="theme-matrix"] #opt1ThemeBtnVal,
body[class*="theme-matrix"] #u6RecentBtnVal {
  color: var(--mx-primary) !important;
}

body[class*="theme-matrix"] .dc-search-box {
  background: var(--mx-subtle) !important;
  border: 1px solid var(--mx-border-strong) !important;
  box-shadow: none !important;
}

body[class*="theme-matrix"] .dc-search-input {
  color: var(--mx-text) !important;
}

body[class*="theme-matrix"] #tpEcosystemDeck,
body[class*="theme-matrix"] .tp-command-deck,
body[class*="theme-matrix"] .tp-pack-banner.tp-eco-collapsible {
  background: var(--mx-elevated) !important;
  border: 1px solid var(--mx-border-strong) !important;
  box-shadow: none !important;
}

body[class*="theme-matrix"] .tp-suite-badge,
body[class*="theme-matrix"] .tp-pack-tag {
  background: var(--mx-secondary-surf) !important;
  color: var(--mx-secondary) !important;
  border: 1px solid var(--mx-secondary-bdr) !important;
  box-shadow: none !important;
}

body[class*="theme-matrix"] .tp-suite-title,
body[class*="theme-matrix"] .tp-pack-title,
body[class*="theme-matrix"] .tp-command-accordion-bar {
  color: var(--mx-primary) !important;
  text-shadow: none !important;
}

body[class*="theme-matrix"] .tp-expand-cta-pill,
body[class*="theme-matrix"] .tp-eco-toggle-pill {
  background: var(--mx-primary-surf) !important;
  color: var(--mx-primary) !important;
  border: 1px solid var(--mx-primary-bdr) !important;
  box-shadow: none !important;
}

body[class*="theme-matrix"] .ch-unit-shelf-head {
  border-bottom: 1px dashed var(--mx-border-strong) !important;
}

body[class*="theme-matrix"] .ch-unit-pill,
body[class*="theme-matrix"] .ch-topic-badge {
  background: var(--mx-primary-surf) !important;
  color: var(--mx-primary) !important;
  border: 1px solid var(--mx-primary-bdr) !important;
  box-shadow: none !important;
}

body[class*="theme-matrix"] .ch-unit-count-pill,
body[class*="theme-matrix"] .ch-topic-count {
  background: var(--mx-secondary-surf) !important;
  color: var(--mx-secondary) !important;
  border: 1px solid var(--mx-secondary-bdr) !important;
}

body[class*="theme-matrix"] .ch-unit-hybrid-jump-btn,
body[class*="theme-matrix"] .ch-topic-hybrid-btn {
  background: var(--mx-tertiary-surf) !important;
  color: var(--mx-tertiary) !important;
  border: 1px solid var(--mx-tertiary-bdr) !important;
  box-shadow: none !important;
}

body[class*="theme-matrix"] .ch-unit-game-jump-btn,
body[class*="theme-matrix"] .ch-topic-game-btn {
  background: var(--mx-quaternary-surf) !important;
  color: var(--mx-quaternary) !important;
  border: 1px solid var(--mx-quaternary-bdr) !important;
  box-shadow: none !important;
}

body[class*="theme-matrix"] .ch-lesson-card {
  background: var(--mx-lesson-bg) !important;
  border: 1px solid var(--mx-border-strong) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.52) !important;
}

body[class*="theme-matrix"] .ch-slot-badge,
body[class*="theme-matrix"] .ch-lesson-num {
  background: var(--mx-primary-surf) !important;
  color: var(--mx-primary) !important;
  border: 1px solid var(--mx-primary-bdr) !important;
  box-shadow: none !important;
}

body[class*="theme-matrix"] .ch-std-badge,
body[class*="theme-matrix"] .ch-std-pill {
  background: var(--mx-secondary-surf) !important;
  color: var(--mx-secondary) !important;
  border: 1px solid var(--mx-secondary-bdr) !important;
}

body[class*="theme-matrix"] .ch-vinyl-sleeve-banner,
body[class*="theme-matrix"] .ch-hook-box {
  background: var(--mx-subtle) !important;
  border: 1px solid var(--mx-border) !important;
}

body[class*="theme-matrix"] .ch-vinyl-icon {
  background: radial-gradient(circle, var(--mx-primary) 0 18%, var(--mx-secondary) 19% 36%, #070b08 37% 100%) !important;
  border: 1.5px solid var(--mx-border-strong) !important;
  box-shadow: none !important;
}

body[class*="theme-matrix"] .ch-hook-quote,
body[class*="theme-matrix"] .ch-hook-text {
  color: var(--mx-primary) !important;
}

body[class*="theme-matrix"] .ch-tool-btn.lyrics-btn,
body[class*="theme-matrix"] .dc-btn-anchor,
body[class*="theme-matrix"] .ch-util-btn,
body[class*="theme-matrix"] .ch-card-util-btn {
  background: var(--mx-subtle) !important;
  border: 1px solid var(--mx-secondary-bdr) !important;
  color: var(--mx-secondary) !important;
  box-shadow: none !important;
}

body[class*="theme-matrix"] .ch-tool-btn.print-btn,
body[class*="theme-matrix"] .dc-btn-print {
  background: var(--mx-subtle) !important;
  color: var(--mx-primary) !important;
  border: 1px solid var(--mx-primary-bdr) !important;
  box-shadow: none !important;
}

body[class*="theme-matrix"] .ch-spin-btn.take-a,
body[class*="theme-matrix"] .dc-btn-v1,
body[class*="theme-matrix"] .dc-btn-cart {
  background: var(--mx-primary-surf) !important;
  color: var(--mx-primary) !important;
  border: 1px solid var(--mx-primary-bdr) !important;
  box-shadow: none !important;
}

body[class*="theme-matrix"] .ch-spin-btn.take-b,
body[class*="theme-matrix"] .dc-btn-v2 {
  background: var(--mx-tertiary-surf) !important;
  color: var(--mx-tertiary) !important;
  border: 1px solid var(--mx-tertiary-bdr) !important;
  box-shadow: none !important;
}

body[class*="theme-matrix"] .ch-like-btn,
body[class*="theme-matrix"] .dc-like-btn,
body[class*="theme-matrix"] .dc-play-btn {
  background: var(--mx-subtle) !important;
  color: var(--mx-muted) !important;
  border: 1px solid var(--mx-border-strong) !important;
  box-shadow: none !important;
}

body[class*="theme-matrix"] .tp-mini-btn,
body[class*="theme-matrix"] .tp-mini-btn.yellow,
body[class*="theme-matrix"] .tp-mini-btn.cyan,
body[class*="theme-matrix"] .tp-mini-btn.pink,
body[class*="theme-matrix"] .tp-mini-btn.lime {
  background: var(--mx-subtle) !important;
  color: var(--mx-muted) !important;
  border: 1px solid var(--mx-border-strong) !important;
  box-shadow: none !important;
}

body[class*="theme-matrix"] .tp-mini-btn.yellow { color: var(--mx-primary) !important; border-color: var(--mx-primary-bdr) !important; }
body[class*="theme-matrix"] .tp-mini-btn.cyan   { color: var(--mx-secondary) !important; border-color: var(--mx-secondary-bdr) !important; }
body[class*="theme-matrix"] .tp-mini-btn.lime   { color: var(--mx-quaternary) !important; border-color: var(--mx-quaternary-bdr) !important; }
body[class*="theme-matrix"] .tp-mini-btn.pink   { color: var(--mx-tertiary) !important; border-color: var(--mx-tertiary-bdr) !important; }

/* DAYLIGHT THEME COVERAGE FOR CURRICULUM & ECOSYSTEM DECKS ON DJ3D */
body.theme-daylight #tpEcosystemDeck,
body.theme-daylight .tp-command-deck,
body.theme-daylight .ch-unit-shelf,
body.theme-daylight .ch-control-shell {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
}

body.theme-daylight .tp-suite-title,
body.theme-daylight .tp-command-accordion-bar,
body.theme-daylight .ch-unit-title,
body.theme-daylight .ch-lesson-title {
  color: #0f172a !important;
  text-shadow: none !important;
}

body.theme-daylight .ch-lesson-skill {
  color: #334155 !important;
}

body.theme-daylight .ch-lesson-card {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

body.theme-daylight .ch-vinyl-sleeve-banner {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
}

body.theme-daylight .ch-hook-quote {
  color: #0f172a !important;
}

body.theme-daylight .ch-tool-btn.lyrics-btn {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1px solid #7dd3fc !important;
  box-shadow: none !important;
}

body.theme-daylight .ch-tool-btn.print-btn {
  background: #fef3c7 !important;
  color: #92400e !important;
  border: 1px solid #fcd34d !important;
  box-shadow: none !important;
}

body.theme-daylight .opt1-mode-btn.opt1-dj4d-hub-btn {
  background: #dcfce7 !important;
  color: #166534 !important;
  border: 1.5px solid #86efac !important;
  box-shadow: none !important;
}

/* OLED BLACKOUT & STEM BLUEPRINT COVERAGE FOR CURRICULUM & ECOSYSTEM DECKS ON DJ3D */
body.theme-blackout #tpEcosystemDeck,
body.theme-blackout .tp-command-deck,
body.theme-blackout .ch-unit-shelf,
body.theme-blackout .ch-control-shell {
  background: #08080c !important;
  border: 1.5px solid #27272a !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.75) !important;
}

body.theme-blackout .ch-lesson-card {
  background: #0c0c12 !important;
  border: 1.5px solid #27272a !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.65) !important;
}

body.theme-blackout .ch-vinyl-sleeve-banner,
body.theme-blackout .ch-hook-box {
  background: #111118 !important;
  border: 1px solid #27272a !important;
}

body.theme-blackout .ch-spin-btn.take-a {
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #ffffff !important;
  box-shadow: none !important;
}

body.theme-blackout .ch-spin-btn.take-b {
  background: #18181b !important;
  color: #f4f4f5 !important;
  border: 1px solid #52525b !important;
  box-shadow: none !important;
}

body.theme-blueprint #tpEcosystemDeck,
body.theme-blueprint .tp-command-deck,
body.theme-blueprint .ch-unit-shelf,
body.theme-blueprint .ch-control-shell {
  background: #081e3f !important;
  border: 1.5px solid #38bdf8 !important;
  box-shadow: 0 4px 16px rgba(2, 10, 24, 0.72) !important;
}

body.theme-blueprint .ch-lesson-card {
  background: #0a254d !important;
  border: 1.5px solid #2563eb !important;
  box-shadow: 0 3px 12px rgba(2, 10, 24, 0.62) !important;
}

body.theme-blueprint .ch-vinyl-sleeve-banner,
body.theme-blueprint .ch-hook-box {
  background: #0c2c59 !important;
  border: 1px solid #1d4ed8 !important;
}

/* ==========================================================================
   TEXT-COLOR-ONLY STUDIO SUB-THEMES FOR DJ3D (Preserves Background & Matrix Rain)
   ========================================================================== */
body[data-studio-subtheme="cyberpunk"] {
  --mx-text: #ecfeff !important;
  --mx-muted: #67e8f9 !important;
  --mx-primary: #00f5ff !important;
  --mx-secondary: #38bdf8 !important;
  --mx-tertiary: #f472b6 !important;
  --mx-quaternary: #00e5ff !important;
  --cc-text: #ecfeff !important;
  --cc-muted: #67e8f9 !important;
  --cc-yellow: #00f5ff !important;
  --cc-cyan: #38bdf8 !important;
  --cc-pink: #f472b6 !important;
  --cc-lime: #00e5ff !important;
  --opt1-text: #ecfeff !important;
  --opt1-muted: #67e8f9 !important;
  --opt1-accent-1: #00f5ff !important;
  --opt1-accent-2: #38bdf8 !important;
  --opt1-accent-3: #f472b6 !important;
}

body[data-studio-subtheme="lime"] {
  --mx-text: #ecfdf5 !important;
  --mx-muted: #86efac !important;
  --mx-primary: #4ade80 !important;
  --mx-secondary: #a3e635 !important;
  --mx-tertiary: #2dd4bf !important;
  --mx-quaternary: #bef264 !important;
  --cc-text: #ecfdf5 !important;
  --cc-muted: #86efac !important;
  --cc-yellow: #4ade80 !important;
  --cc-cyan: #a3e635 !important;
  --cc-pink: #2dd4bf !important;
  --cc-lime: #bef264 !important;
  --opt1-text: #ecfdf5 !important;
  --opt1-muted: #86efac !important;
  --opt1-accent-1: #4ade80 !important;
  --opt1-accent-2: #a3e635 !important;
  --opt1-accent-3: #2dd4bf !important;
}

body[data-studio-subtheme="synthwave"] {
  --mx-text: #fdf2f8 !important;
  --mx-muted: #f472b6 !important;
  --mx-primary: #ff2a85 !important;
  --mx-secondary: #facc15 !important;
  --mx-tertiary: #38bdf8 !important;
  --mx-quaternary: #fb923c !important;
  --cc-text: #fdf2f8 !important;
  --cc-muted: #f472b6 !important;
  --cc-yellow: #facc15 !important;
  --cc-cyan: #38bdf8 !important;
  --cc-pink: #ff2a85 !important;
  --cc-lime: #fb923c !important;
  --opt1-text: #fdf2f8 !important;
  --opt1-muted: #f472b6 !important;
  --opt1-accent-1: #ff2a85 !important;
  --opt1-accent-2: #facc15 !important;
  --opt1-accent-3: #38bdf8 !important;
}

body[data-studio-subtheme="amber"] {
  --mx-text: #fffbeb !important;
  --mx-muted: #fcd34d !important;
  --mx-primary: #fbbf24 !important;
  --mx-secondary: #fb923c !important;
  --mx-tertiary: #f87171 !important;
  --mx-quaternary: #00e5ff !important;
  --cc-text: #fffbeb !important;
  --cc-muted: #fcd34d !important;
  --cc-yellow: #fbbf24 !important;
  --cc-cyan: #fb923c !important;
  --cc-pink: #f87171 !important;
  --cc-lime: #00e5ff !important;
  --opt1-text: #fffbeb !important;
  --opt1-muted: #fcd34d !important;
  --opt1-accent-1: #fbbf24 !important;
  --opt1-accent-2: #fb923c !important;
  --opt1-accent-3: #f87171 !important;
}

body[data-studio-subtheme="violet"] {
  --mx-text: #faf5ff !important;
  --mx-muted: #c084fc !important;
  --mx-primary: #c084fc !important;
  --mx-secondary: #f472b6 !important;
  --mx-tertiary: #818cf8 !important;
  --mx-quaternary: #e879f9 !important;
  --cc-text: #faf5ff !important;
  --cc-muted: #c084fc !important;
  --cc-yellow: #c084fc !important;
  --cc-cyan: #818cf8 !important;
  --cc-pink: #f472b6 !important;
  --cc-lime: #e879f9 !important;
  --opt1-text: #faf5ff !important;
  --opt1-muted: #c084fc !important;
  --opt1-accent-1: #c084fc !important;
  --opt1-accent-2: #f472b6 !important;
  --opt1-accent-3: #818cf8 !important;
}

/* High-Contrast Dark-Ink Text Sub-Theme Variants When Daylight Mode Is Active on DJ3D */
body.theme-daylight[data-studio-subtheme="cyberpunk"] {
  --cc-text: #083344 !important;
  --cc-muted: #155e75 !important;
  --opt1-text: #083344 !important;
  --opt1-muted: #155e75 !important;
  --opt1-accent-1: #0284c7 !important;
  --opt1-accent-2: #0369a1 !important;
}

body.theme-daylight[data-studio-subtheme="lime"] {
  --cc-text: #052e16 !important;
  --cc-muted: #166534 !important;
  --opt1-text: #052e16 !important;
  --opt1-muted: #166534 !important;
  --opt1-accent-1: #15803d !important;
  --opt1-accent-2: #047857 !important;
}

body.theme-daylight[data-studio-subtheme="synthwave"] {
  --cc-text: #500724 !important;
  --cc-muted: #831843 !important;
  --opt1-text: #500724 !important;
  --opt1-muted: #831843 !important;
  --opt1-accent-1: #be185d !important;
  --opt1-accent-2: #b45309 !important;
}

body.theme-daylight[data-studio-subtheme="amber"] {
  --cc-text: #451a03 !important;
  --cc-muted: #78350f !important;
  --opt1-text: #451a03 !important;
  --opt1-muted: #78350f !important;
  --opt1-accent-1: #b45309 !important;
  --opt1-accent-2: #c2410c !important;
}

body.theme-daylight[data-studio-subtheme="violet"] {
  --cc-text: #2e1065 !important;
  --cc-muted: #4c1d95 !important;
  --opt1-text: #2e1065 !important;
  --opt1-muted: #4c1d95 !important;
  --opt1-accent-1: #6d28d9 !important;
  --opt1-accent-2: #a21caf !important;
}





/* Universal Dark Dropdown (<select> / <option>) Rule */
:root,
select {
  color-scheme: dark;
}
select {
  background-color: #061024 !important;
  color: #f0f9ff !important;
}
select option,
select optgroup {
  background-color: #061024 !important;
  color: #f0f9ff !important;
  font-family: "Trebuchet MS", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 6px 10px;
}
