/* ==========================================================================
   DJ 3rd Derivative Studio — Student Studio vs. Teacher Command Desk (v3)
   Live Production + Test Sites (Zero Yellow / Refined Focal Palette + ChaCha20-256 Vault Gate)
   ========================================================================== */

/* 1. Override legacy test_packs.css neon/yellow root variables on role-split pages */
body[data-role-split-test] {
  --tp-yellow: #6ee7b7;
  --tp-pink: #7aa8e8;
  --tp-cyan: #5bb6c9;
  --tp-lime: #4fd1a5;
}

/* 2. Eliminate leftover loud yellow (#00e5ff) & neon blocks in Matrix themes */
body[data-role-split-test][class*="theme-matrix"] .ch-lesson-pick-card {
  background: rgba(12, 20, 16, 0.90) !important;
  border: 1px solid #264030 !important;
  color: #d8e6dd !important;
  box-shadow: none !important;
}

body[data-role-split-test][class*="theme-matrix"] .ch-lesson-pick-card.active {
  background: linear-gradient(135deg, rgba(22, 68, 52, 0.58) 0%, rgba(14, 38, 31, 0.88) 100%) !important;
  border: 1.5px solid #4fc395 !important;
  color: #f0fdf4 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
}

body[data-role-split-test][class*="theme-matrix"] .ch-lesson-pick-kicker,
body[data-role-split-test][class*="theme-matrix"] .ch-lesson-pick-card.active .ch-lesson-pick-kicker {
  color: #6ee7b7 !important;
}

body[data-role-split-test][class*="theme-matrix"] .ch-topic-btn {
  background: #0d1712 !important;
  border: 1px solid #264030 !important;
  color: #a7bfb0 !important;
  box-shadow: none !important;
}

body[data-role-split-test][class*="theme-matrix"] .ch-topic-btn .ch-topic-code {
  background: rgba(94, 234, 212, 0.14) !important;
  color: #5eead4 !important;
  border: 1px solid rgba(94, 234, 212, 0.35) !important;
}

body[data-role-split-test][class*="theme-matrix"] .ch-topic-btn.active {
  background: rgba(52, 211, 153, 0.22) !important;
  border: 1.5px solid #4ade80 !important;
  color: #ecfdf5 !important;
}

body[data-role-split-test][class*="theme-matrix"] .ch-topic-btn.active .ch-topic-code {
  background: rgba(52, 211, 153, 0.28) !important;
  color: #ecfdf5 !important;
  border: 1px solid rgba(110, 231, 183, 0.55) !important;
}

body[data-role-split-test][class*="theme-matrix"] .ch-combined-song-deck,
body[data-role-split-test][class*="theme-matrix"] .ch-control-shell,
body[data-role-split-test][class*="theme-matrix"] .ch-matched-game-deck {
  background: rgba(10, 18, 14, 0.92) !important;
  border: 1px solid #284230 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55) !important;
}

body[data-role-split-test][class*="theme-matrix"] .ch-strip-label,
body[data-role-split-test][class*="theme-matrix"] .ch-strip-label span {
  color: #7ee2b8 !important;
}

body[data-role-split-test][class*="theme-matrix"] .ch-combined-header {
  border-bottom: 1px dashed #284230 !important;
}

body[data-role-split-test][class*="theme-matrix"] .ch-big-printables-btn {
  background: linear-gradient(135deg, #1b5241 0%, #154034 100%) !important;
  color: #ecfdf5 !important;
  border: 1.5px solid #52d1a0 !important;
  box-shadow: 0 2px 10px rgba(82, 209, 160, 0.15) !important;
}

body[data-role-split-test][class*="theme-matrix"] .ch-take-deck-card {
  background: #0c1611 !important;
  border: 1px solid #264030 !important;
  box-shadow: none !important;
}

body[data-role-split-test][class*="theme-matrix"] .ch-take-deck-card.take-a-card {
  border-top: 3px solid #4fd1a5 !important;
}

body[data-role-split-test][class*="theme-matrix"] .ch-take-deck-card.take-b-card {
  border-top: 3px solid #5bb6c9 !important;
}

body[data-role-split-test][class*="theme-matrix"] .ch-anchor-drawer {
  background: #0b1410 !important;
  border: 1px solid #264030 !important;
  box-shadow: none !important;
}

body[data-role-split-test][class*="theme-matrix"] .ch-anchor-tab {
  background: #122019 !important;
  border: 1px solid #2b4737 !important;
  color: #a7bfb0 !important;
  box-shadow: none !important;
}

body[data-role-split-test][class*="theme-matrix"] .ch-anchor-tab.active {
  background: linear-gradient(135deg, #16404d 0%, #12323d 100%) !important;
  border: 1.5px solid #5bb6c9 !important;
  color: #e0f2fe !important;
}

body[data-role-split-test][class*="theme-matrix"] .ch-recipe-btn {
  background: #0f1b15 !important;
  border: 1px solid #264030 !important;
  color: #cbd5e1 !important;
  box-shadow: none !important;
}

body[data-role-split-test][class*="theme-matrix"] .ch-recipe-btn.active {
  background: linear-gradient(135deg, #1b5241 0%, #154034 100%) !important;
  border: 1.5px solid #52d1a0 !important;
  color: #ecfdf5 !important;
}

body[data-role-split-test][class*="theme-matrix"] .ch-sample-q-banner {
  background: #0e1914 !important;
  border: 1px solid #2f5441 !important;
}

body[data-role-split-test][class*="theme-matrix"] .ch-featured-game-hero {
  background: linear-gradient(135deg, rgba(16, 36, 29, 0.92) 0%, rgba(11, 22, 18, 0.95) 100%) !important;
  border: 1.5px solid #4fd1a5 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
}

body[data-role-split-test][class*="theme-matrix"] .ch-insert-game-btn,
body[data-role-split-test] #dockGameBtn {
  background: linear-gradient(135deg, #1b5241 0%, #154034 100%) !important;
  color: #ecfdf5 !important;
  border: 1.5px solid #52d1a0 !important;
  box-shadow: none !important;
}

body[data-role-split-test][class*="theme-matrix"] .ch-modal-card {
  background: #0b1410 !important;
  border: 1.5px solid #2d4c39 !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.82) !important;
}

body[data-role-split-test][class*="theme-matrix"] .ch-printable-item {
  background: #101c16 !important;
  border: 1px solid #264030 !important;
  box-shadow: none !important;
}

body[data-role-split-test][class*="theme-matrix"] .ch-printable-link {
  background: linear-gradient(135deg, #1b4d3e 0%, #153e35 100%) !important;
  color: #ecfdf5 !important;
  border: 1.5px solid #4fd1a5 !important;
  box-shadow: none !important;
}

body[data-role-split-test][class*="theme-matrix"] .ch-printable-link.bw-link {
  background: #16241d !important;
  color: #cbd5e1 !important;
  border: 1px solid #355242 !important;
}

body[data-role-split-test][class*="theme-matrix"] .ch-printable-link.tent-link {
  background: linear-gradient(135deg, #173f4f 0%, #12313f 100%) !important;
  color: #e0f2fe !important;
  border: 1.5px solid #5bb6c9 !important;
}

/* Override any remaining yellow/neon inside #tpEcosystemDeck (visible in Teacher mode) */
body[data-role-split-test][class*="theme-matrix"] .tp-command-title,
body[data-role-split-test][class*="theme-matrix"] .tp-thermo-label {
  color: #7ee2b8 !important;
  text-shadow: none !important;
}

body[data-role-split-test][class*="theme-matrix"] .tp-action-pill,
body[data-role-split-test][class*="theme-matrix"] .tp-action-pill.yellow,
body[data-role-split-test][class*="theme-matrix"] .tp-action-pill.lime {
  background: linear-gradient(135deg, #1b5241 0%, #154034 100%) !important;
  color: #ecfdf5 !important;
  border: 1px solid #52d1a0 !important;
  box-shadow: none !important;
}

body[data-role-split-test][class*="theme-matrix"] .tp-action-pill.cyan {
  background: linear-gradient(135deg, #16404d 0%, #12323d 100%) !important;
  color: #e0f2fe !important;
  border: 1px solid #5bb6c9 !important;
  box-shadow: none !important;
}

body[data-role-split-test][class*="theme-matrix"] .tp-action-pill.pink {
  background: linear-gradient(135deg, #23385c 0%, #1b2c47 100%) !important;
  color: #eff6ff !important;
  border: 1px solid #7aa8e8 !important;
  box-shadow: none !important;
}

body[data-role-split-test][class*="theme-matrix"] .tp-item-num {
  background: rgba(79, 209, 165, 0.16) !important;
  color: #6ee7b7 !important;
  border: 1px solid rgba(79, 209, 165, 0.42) !important;
}

body[data-role-split-test][class*="theme-matrix"] .tp-item-btn.cat-b .tp-item-num {
  background: rgba(91, 182, 201, 0.16) !important;
  color: #7dd3fc !important;
  border-color: rgba(91, 182, 201, 0.42) !important;
}

body[data-role-split-test][class*="theme-matrix"] .tp-item-btn.cat-c .tp-item-num {
  background: rgba(122, 168, 232, 0.16) !important;
  color: #93c5fd !important;
  border-color: rgba(122, 168, 232, 0.42) !important;
}

body[data-role-split-test][class*="theme-matrix"] .tp-item-btn.cat-d .tp-item-num {
  background: rgba(52, 211, 153, 0.18) !important;
  color: #86efac !important;
  border-color: rgba(74, 222, 128, 0.42) !important;
}

/* 3. Top Utility Bar Role Switcher + DJ4D Curriculum Hub Button */
.dj-role-switch-seg {
  display: inline-flex;
  align-items: center;
  background: #0a120e;
  border: 1px solid #284230;
  border-radius: 9px;
  padding: 3px;
  gap: 4px;
  flex-wrap: wrap;
}

.dj-role-btn {
  font-family: var(--cc-font);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 6px 11px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #8da495;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.dj-role-btn:hover {
  color: #e2ece5;
  background: rgba(255, 255, 255, 0.05);
}

.dj-role-btn.is-student-active {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.24) 0%, rgba(52, 211, 153, 0.18) 100%);
  color: #ecfdf5;
  border-color: #4fd1a5;
  box-shadow: 0 0 12px rgba(79, 209, 165, 0.16);
}

.dj-role-btn.is-teacher-active {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.24) 0%, rgba(129, 140, 248, 0.18) 100%);
  color: #eff6ff;
  border-color: #7dd3fc;
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.16);
}

.dj-role-btn.is-assign-active {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.26) 0%, rgba(16, 185, 129, 0.18) 100%);
  color: #ecfdf5;
  border-color: #6ee7b7;
  box-shadow: 0 0 12px rgba(110, 231, 183, 0.16);
}

.dj-role-btn.is-dj4d-hub-link {
  background: transparent;
  color: #8da495;
  border-color: transparent;
}

.dj-role-btn.is-dj4d-hub-link:hover {
  color: #e2ece5;
  background: rgba(255, 255, 255, 0.05);
  border-color: transparent;
}

.dj-role-btn.is-dj4d-hub-link.is-hub-active,
.dj-role-btn.is-dj4d-hub-link.active-curriculum {
  background: linear-gradient(135deg, rgba(22, 64, 77, 0.72) 0%, rgba(18, 50, 61, 0.78) 100%);
  color: #e0f2fe;
  border-color: #5bb6c9;
  box-shadow: 0 0 12px rgba(91, 182, 201, 0.2);
}

/* 4. Cohesive Dark-Slate Mode Banner with Subtle Focal Border */
.dj-mode-banner {
  margin: 8px 0 12px 0;
  padding: 13px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.52);
}

.dj-mode-banner.student-banner {
  background: linear-gradient(135deg, rgba(12, 24, 19, 0.94) 0%, rgba(10, 20, 22, 0.94) 100%);
  border: 1px solid #2e5944;
}

.dj-mode-banner.teacher-banner {
  background: linear-gradient(135deg, rgba(14, 22, 32, 0.94) 0%, rgba(12, 19, 28, 0.94) 100%);
  border: 1px solid #365573;
}

.dj-mode-banner.assign-banner {
  background: linear-gradient(135deg, rgba(13, 27, 21, 0.95) 0%, rgba(10, 21, 18, 0.95) 100%);
  border: 1.5px solid #3d7a5a;
}

.dj-banner-kicker {
  font-family: var(--cc-font);
  font-size: 10.5px;
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 5px;
  letter-spacing: 0.05em;
}

.dj-banner-kicker.kicker-student {
  background: rgba(79, 209, 165, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(79, 209, 165, 0.42);
}

.dj-banner-kicker.kicker-teacher {
  background: rgba(96, 165, 250, 0.16);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.42);
}

.dj-banner-kicker.kicker-assign {
  background: rgba(52, 211, 153, 0.18);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.48);
}

.dj-banner-title {
  font-family: var(--cc-font);
  font-size: 16px;
  color: #e6f2eb;
  margin: 0 0 3px 0;
}

.dj-banner-desc {
  font-family: var(--cc-body-font);
  font-size: 13px;
  color: #9cb3a4;
  margin: 0;
  line-height: 1.4;
}

/* 5. Slightly Brighter Eye-Guiding Focal Buttons (Zero Yellow / Zero Neon) */
.dj-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dj-qpill {
  font-family: var(--cc-font);
  font-size: 11px;
  padding: 8px 13px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: transform 0.1s ease, filter 0.14s ease, border-color 0.14s ease;
}

.dj-qpill:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.dj-qpill.focal-jade {
  background: linear-gradient(135deg, #1b5241 0%, #154034 100%);
  color: #ecfdf5;
  border: 1.5px solid #52d1a0;
  box-shadow: 0 2px 10px rgba(82, 209, 160, 0.15);
}

.dj-qpill.focal-teal {
  background: linear-gradient(135deg, #16404d 0%, #12323d 100%);
  color: #e0f2fe;
  border: 1.5px solid #5bb6c9;
}

.dj-qpill.focal-indigo {
  background: linear-gradient(135deg, #23385c 0%, #1b2c47 100%);
  color: #eff6ff;
  border: 1.5px solid #7aa8e8;
}

.dj-qpill.subtle-slate {
  background: #121f18;
  color: #b7cec0;
  border: 1px solid #2b4536;
}

.dj-qpill.lock-rose {
  background: rgba(136, 19, 55, 0.28);
  color: #fda4af;
  border: 1px solid #f43f5e;
}

/* 6. 3-Step Student Assignment Row */
.dj-assign-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

@media (max-width: 860px) {
  .dj-assign-steps {
    grid-template-columns: 1fr;
  }
}

.dj-step-card {
  background: rgba(9, 16, 13, 0.88);
  border: 1px solid #294736;
  border-radius: 9px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dj-step-title {
  font-family: var(--cc-font);
  font-size: 11.5px;
  color: #7ee2b8;
  margin-bottom: 2px;
}

.dj-step-sub {
  font-family: var(--cc-body-font);
  font-size: 12.5px;
  color: #9cb3a4;
}

/* 7. Student & Assigned Mode Automatic Visibility Rules */
body.dj-role-student #djDevLogBanner,
body.dj-role-assigned #djDevLogBanner {
  display: none !important;
}

body.dj-role-student #tpEcosystemDeck,
body.dj-role-assigned #tpEcosystemDeck {
  display: none !important;
}

body.dj-role-student [data-eco-card="1"],
body.dj-role-assigned [data-eco-card="1"],
body.dj-role-student [data-opt1-tool="coursesheet"],
body.dj-role-assigned [data-opt1-tool="coursesheet"],
body.dj-role-student [data-opt1-tool="bellringer"],
body.dj-role-assigned [data-opt1-tool="bellringer"],
body.dj-role-student [data-opt1-tool="share"],
body.dj-role-assigned [data-opt1-tool="share"],
body.dj-role-student [data-opt1-tool="timer"],
body.dj-role-assigned [data-opt1-tool="timer"],
body.dj-role-student [data-u1-open-sheet],
body.dj-role-assigned [data-u1-open-sheet],
body.dj-role-student #vgHudToolsPopover a[href*="/pitchdeck"],
body.dj-role-assigned #vgHudToolsPopover a[href*="/pitchdeck"],
body.dj-role-student #dj3dFinalTopBar a[href*="/pitchdeck"],
body.dj-role-assigned #dj3dFinalTopBar a[href*="/pitchdeck"],
body.dj-role-student #opt1UtilityBar a[href*="/pitchdeck"],
body.dj-role-assigned #opt1UtilityBar a[href*="/pitchdeck"],
body.dj-role-student #studioGuideModal [data-guide-tab="all"],
body.dj-role-assigned #studioGuideModal [data-guide-tab="all"],
body.dj-role-student #studioGuideModal [data-guide-tab="teacher"],
body.dj-role-assigned #studioGuideModal [data-guide-tab="teacher"],
body.dj-role-student #studioGuideModal #guideSectionTeachers,
body.dj-role-assigned #studioGuideModal #guideSectionTeachers,
body.dj-role-student #studioGuideModal #guideOpenTopicsSheetBtn,
body.dj-role-assigned #studioGuideModal #guideOpenTopicsSheetBtn,
body.dj-role-student #studioGuideModal #guideOpenShareBtn,
body.dj-role-assigned #studioGuideModal #guideOpenShareBtn,
body.dj-role-student #studioGuideModal #guideOpenReceiptVerifierBtn,
body.dj-role-assigned #studioGuideModal #guideOpenReceiptVerifierBtn,
body.dj-role-student #studioGuideModal #guideOpenBellRingerBtn,
body.dj-role-assigned #studioGuideModal #guideOpenBellRingerBtn,
body.dj-role-student #studioGuideModal #guideOpenTimerBtn,
body.dj-role-assigned #studioGuideModal #guideOpenTimerBtn,
body.dj-role-student #studioGuideModal [data-guide-teacher-pill="1"],
body.dj-role-assigned #studioGuideModal [data-guide-teacher-pill="1"],
body.dj-role-student .tp-teacher-assign-callout,
body.dj-role-assigned .tp-teacher-assign-callout {
  display: none !important;
}

/* 7B. Active Game Play Stage (#gameStageView) — Student vs. Instructor Separation */
#gameStageView .top-nav-bar {
  box-shadow: 0 4px 0 #000000, inset 0 0 0 1.5px rgba(56, 189, 248, 0.38) !important;
  border: 2px solid #000000 !important;
  background: rgba(6, 13, 28, 0.92) !important;
  border-radius: 12px !important;
  padding: 8px 12px !important;
  margin-bottom: 8px !important;
}

/* Student & Assigned Game View: Remove large red/bordered top box and show only slim student strip */
body.dj-role-student #gameStageView .top-nav-bar,
body.dj-role-assigned #gameStageView .top-nav-bar {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 0 6px 0 !important;
  margin: 0 0 4px 0 !important;
  min-height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

/* Hide Instructor & Duplicate Navigation Controls in Student Game Stage */
body.dj-role-student #gameStageView #prevGameBtn,
body.dj-role-assigned #gameStageView #prevGameBtn,
body.dj-role-student #gameStageView #gameSelector,
body.dj-role-assigned #gameStageView #gameSelector,
body.dj-role-student #gameStageView #nextGameBtn,
body.dj-role-assigned #gameStageView #nextGameBtn,
body.dj-role-student #gameStageView #stageCourseSelector,
body.dj-role-assigned #gameStageView #stageCourseSelector,
body.dj-role-student #gameStageView #gameStagePlayBtn,
body.dj-role-assigned #gameStageView #gameStagePlayBtn,
body.dj-role-student #gameStageView #gameTopicsSheetBtn,
body.dj-role-assigned #gameStageView #gameTopicsSheetBtn,
body.dj-role-student #gameStageView #gameGuideBtn,
body.dj-role-assigned #gameStageView #gameGuideBtn,
body.dj-role-student #gameStageView #gameShareBtn,
body.dj-role-assigned #gameStageView #gameShareBtn,
body.dj-role-student #gameStageView #gameTimerBtn,
body.dj-role-assigned #gameStageView #gameTimerBtn,
body.dj-role-student #gameStageView #gameOpenNewTabLink,
body.dj-role-assigned #gameStageView #gameOpenNewTabLink,
body.dj-role-student #gameStageView #tpStageCompanion [data-eco-open="7"],
body.dj-role-assigned #gameStageView #tpStageCompanion [data-eco-open="7"],
body.dj-role-student #gameStageView #tpStageCompanion [data-eco-open="8"],
body.dj-role-assigned #gameStageView #tpStageCompanion [data-eco-open="8"],
body.dj-role-student #gameStageView #tpStageCompanion [data-eco-open="10"],
body.dj-role-assigned #gameStageView #tpStageCompanion [data-eco-open="10"] {
  display: none !important;
}

/* Inline Companion Strip inside Student Top Strip vs. 2nd Row in Instructor View */
body.dj-role-student #gameStageView #tpStageCompanion,
body.dj-role-assigned #gameStageView #tpStageCompanion {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  width: auto !important;
}

body.dj-role-teacher #gameStageView #tpStageCompanion {
  flex: 1 1 100%;
  order: 3;
  margin: 4px 0 0 0 !important;
  padding: 6px 0 0 0 !important;
  background: transparent !important;
  border: none !important;
  border-top: 1px solid rgba(56, 189, 248, 0.24) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Maximize 16:9 Game Canvas Height on 1366x768 Chromebooks & Mobile Screens in Student View */
body.dj-role-student #gameStageView:not(.hidden-view) .arcade-stage-wrapper:not(:fullscreen):not(:-webkit-full-screen),
body.dj-role-assigned #gameStageView:not(.hidden-view) .arcade-stage-wrapper:not(:fullscreen):not(:-webkit-full-screen) {
  height: clamp(500px, calc(100vh - 180px), 840px);
  margin-bottom: 8px;
}

body.game-pseudo-fullscreen #gameStageView:not(.hidden-view) .arcade-stage-wrapper {
  height: 100vh !important;
  height: 100dvh !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  body.dj-role-student #gameStageView #tpStageCompanion,
  body.dj-role-assigned #gameStageView #tpStageCompanion {
    display: none !important;
  }
  body.dj-role-student #gameStageView .top-nav-bar .mode-tabs,
  body.dj-role-assigned #gameStageView .top-nav-bar .mode-tabs {
    width: auto !important;
    display: inline-flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
  }
  body.dj-role-student #gameStageView .top-nav-bar .comic-btn,
  body.dj-role-assigned #gameStageView .top-nav-bar .comic-btn {
    flex: 0 1 auto !important;
    min-height: 34px !important;
    padding: 4px 8px !important;
    font-size: 10px !important;
  }
}

/* 8. Teacher Security Vault Lockscreen (Identical Architecture to DJ4D Teacher Vault Gate) */
body.dj-teacher-vault-locked #djDevLogBanner,
body.dj-teacher-vault-locked #devLogDrawer,
body.dj-teacher-vault-locked #opt1FilterBar,
body.dj-teacher-vault-locked #studioSearchWrap,
body.dj-teacher-vault-locked #djMockupRoleBanner,
body.dj-teacher-vault-locked #crateDeckView,
body.dj-teacher-vault-locked #gamesDeckView,
body.dj-teacher-vault-locked #hybridSection,
body.dj-teacher-vault-locked #tpEcosystemDeck,
body.dj-teacher-vault-locked #musicSurveyShell,
body.dj-teacher-vault-locked #gamesSurveyShell,
body.dj-teacher-vault-locked #curricTurntableDock,
body.dj-teacher-vault-locked .opt1-utility-actions {
  display: none !important;
}

.dj3d-teacher-vault-gate {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.dj3d-teacher-vault-card {
  max-width: 560px;
  width: 100%;
  background: linear-gradient(155deg, rgba(10, 18, 28, 0.98) 0%, rgba(6, 12, 18, 0.99) 100%);
  border: 2px solid #52d1a0;
  border-radius: 14px;
  padding: 1.65rem 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 28px rgba(82, 209, 160, 0.14);
  text-align: center;
}

.dj3d-teacher-vault-input {
  width: 100%;
  background: #04090d;
  color: #f8fafc;
  border: 1.5px solid #5bb6c9;
  border-radius: 8px;
  padding: 0.75rem 0.95rem;
  font-family: var(--cc-font);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-align: center;
  outline: none;
  box-sizing: border-box;
}

.dj3d-teacher-vault-input:focus {
  border-color: #52d1a0;
  box-shadow: 0 0 0 3px rgba(82, 209, 160, 0.22);
}


/* 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;
}
