/* ============================================================================
   SYLLOVO STUDIO v20.0 — EXECUTIVE TOOLBAR CLEANUP, GOVERNANCE LOCKS,
   RECREATE AUDIO CONFIRMATION MODAL, IMMUTABLE VERSIONS & HISTORY PAGE,
   AND v20.0 QA RULE PROOF CARDS (0px MOBILE HORIZONTAL OVERFLOW)
   ============================================================================ */

/* 0. Top Header Clip Bar Anti-Overlap & Presence Spacing */
#header-studio-clip-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
}

#header-studio-clip-actions > div:first-child {
  flex-shrink: 0;
}

#header-studio-clip-actions .live-clip-viewers-pill {
  flex-shrink: 1;
  min-width: 0;
  max-width: 205px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1380px) {
  #header-studio-clip-actions .live-clip-viewers-pill {
    display: none;
  }
}

/* 1. Unified Audio Volume/Speed + Avg dB PS Guideline Pill */
.ve-unified-audio-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ve-unified-audio-pill:hover,
.ve-unified-audio-pill.active {
  background: rgba(30, 41, 59, 0.98);
  border-color: #10b981;
}

.ve-unified-audio-pill.status-warn {
  border-color: rgba(245, 158, 11, 0.65);
}

.ve-unified-audio-pill.status-loud {
  border-color: rgba(244, 63, 94, 0.7);
}

.ve-unified-audio-pill [data-role="ve-unified-vol-speed"] {
  color: #e0e7ff;
  font-family: var(--font-mono, monospace);
  font-weight: 800;
}

.ve-unified-audio-pill .ve-unified-sep {
  color: rgba(148, 163, 184, 0.55);
  font-weight: 400;
}

.ve-unified-audio-pill [data-role="ve-unified-avg-db"] {
  color: #6ee7b7;
  font-weight: 800;
}

.ve-unified-audio-pill.status-warn [data-role="ve-unified-avg-db"] {
  color: #fcd34d;
}

.ve-unified-audio-pill.status-loud [data-role="ve-unified-avg-db"] {
  color: #fda4af;
}

/* 2. Collapsed Single Rebuild Section & Inline Action Tray */
.ve-rebuild-collapsible-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.ve-rebuild-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 27px;
  padding: 0 10px;
  border-radius: 7px;
  background: rgba(24, 24, 27, 0.92);
  border: 1px solid #3f3f46;
  color: #f4f4f5;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.ve-rebuild-toggle-btn:hover,
.ve-rebuild-toggle-btn.active {
  background: #27272a;
  border-color: #818cf8;
  color: #ffffff;
}

.ve-rebuild-tray {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  padding: 3px 6px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(99, 102, 241, 0.5);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* 3. Icon-Only Track Clear Button (Zero "Delete Track" Words) */
.ve-track-icon-del-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 4px;
  background: transparent;
  border: 1px solid transparent;
  color: #a1a1aa;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.ve-track-icon-del-btn:hover {
  color: #fda4af;
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.42);
}

.ve-track-icon-del-btn.is-locked-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 4. Per-Video Governance Locks (Lock Slides · Lock Audio · Freeze Video) */
.ve-governance-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.ve-gov-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  background: rgba(24, 24, 27, 0.9);
  border: 1px solid rgba(113, 113, 122, 0.48);
  color: #d4d4d8;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.ve-gov-pill:hover:not(:disabled) {
  border-color: #a1a1aa;
  color: #ffffff;
  background: #27272a;
}

.ve-gov-pill.locked-slides,
.ve-gov-pill.locked-audio {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.65);
  color: #fde68a;
}

.ve-gov-pill.frozen-ship {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.26), rgba(6, 182, 212, 0.26));
  border-color: #10b981;
  color: #a7f3d0;
}

.ve-gov-pill:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.sidebar-frozen-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.16);
  border: 1px solid rgba(6, 182, 212, 0.45);
  color: #0891b2;
  font-size: 9px;
  font-weight: 800;
  flex-shrink: 0;
}

[data-theme="dark"] .sidebar-frozen-badge {
  color: #67e8f9;
}

/* 5. Recreate Audio Confirmation Alert Modal */
.recreate-audio-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(9, 9, 11, 0.76);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.recreate-audio-modal-card {
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0f172a;
  color: #f8fafc;
  border: 1.5px solid rgba(16, 185, 129, 0.55);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.72);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

.recreate-audio-modal-hdr {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.recreate-audio-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12.5px;
  line-height: 1.52;
  color: #e2e8f0;
}

.recreate-audio-modal-hdr code,
.recreate-audio-modal-body code {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #a5b4fc;
}

.recreate-audio-settings-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.recreate-audio-setting-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.48);
  color: #6ee7b7;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 800;
}

.recreate-scope-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.65);
  border: 1.5px solid rgba(148, 163, 184, 0.25);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.recreate-scope-option:hover {
  border-color: rgba(16, 185, 129, 0.55);
}

.recreate-scope-option.selected {
  background: rgba(16, 185, 129, 0.12);
  border-color: #10b981;
}

.recreate-audio-modal-ftr {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

#recreate-audio-cancel-btn {
  background: #1e293b;
  border: 1px solid #475569;
  color: #f1f5f9;
}

#recreate-audio-cancel-btn:hover {
  background: #334155;
  color: #ffffff;
}

/* 6. Dedicated Versions & History Page */
.versions-history-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-bottom: 24px;
}

.vh-header-card,
.vh-card {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
  box-sizing: border-box;
}

.vh-tab-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.vh-tab-btn {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.vh-tab-btn:hover {
  border-color: var(--emerald);
  color: var(--text-main);
}

.vh-tab-btn.active {
  background: #10b981;
  border-color: #059669;
  color: #ffffff;
}

.vh-ver-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #4f46e5;
  white-space: nowrap;
}

[data-theme="dark"] .vh-ver-badge {
  color: #a5b4fc;
}

.vh-ver-badge.latest {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.5);
  color: #059669;
}

[data-theme="dark"] .vh-ver-badge.latest {
  color: #6ee7b7;
}

.vh-ver-badge.frozen {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.5);
  color: #0891b2;
}

[data-theme="dark"] .vh-ver-badge.frozen {
  color: #67e8f9;
}

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

.vh-diff-col {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-main);
  word-break: break-word;
  box-sizing: border-box;
}

.vh-diff-col.base-changed {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.4);
}

.vh-diff-col.target-changed {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.45);
}

.vh-slide-thumb-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 8px;
}

.vh-slide-thumb {
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.vh-slide-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #09090b;
}

/* 7. v20.0 Video QA & Rule Proof Mandatory Gate Cards */
.qa-v20-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.qa-v20-proof-card {
  padding: 14px 16px;
  border-radius: 11px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-left: 4px solid #10b981;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

.qa-v20-pass-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.55);
  color: #059669;
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
  flex-shrink: 0;
}

[data-theme="dark"] .qa-v20-pass-badge {
  color: #6ee7b7;
}

.qa-v20-rule-code {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(99, 102, 241, 0.11);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #4f46e5;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 800;
  word-break: break-all;
}

[data-theme="dark"] .qa-v20-rule-code {
  color: #a5b4fc;
}

/* 8. Mobile Responsive Guarantees (<= 820px · 0px Horizontal Overflow) */
@media (max-width: 820px) {
  .vh-diff-grid,
  .qa-v20-proof-grid {
    grid-template-columns: 1fr;
  }

  .vh-slide-thumb-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ve-unified-audio-pill {
    max-width: 100%;
    padding: 0 7px;
    font-size: 10px;
    gap: 4px;
  }

  .ve-unified-audio-pill [data-role="ve-unified-avg-db"] {
    max-width: 115px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .recreate-audio-modal-card {
    padding: 15px;
    max-height: 92vh;
  }

  .vh-header-card,
  .vh-card,
  .qa-v20-proof-card {
    padding: 12px;
  }
}

/* ============================================================================
   SYLLOVO STUDIO v21.0 — BOUNDED 2-PANE YOUTUBE-STUDIO QA CARDS, PROGRESSIVE
   DISCLOSURE MINIMALIST EDITOR, KARAOKE CC + INLINE CHUNK QA POPOVER & MP4
   MASTER SPEC TELEMETRY PILL
   ============================================================================ */

/* 1. Bounded Video QA & Rule Proof 2-Pane Layout (ASK-03, ASK-04) */
#video-qa-rule-proof-root {
  overflow-x: clip !important;
  max-width: 100% !important;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Strict 1920x1080 Slide Image Containment Guard — NEVER overflows screen! */
#video-qa-rule-proof-root img {
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
}

.qa-yt-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong, var(--border));
}

.qa-yt-two-pane-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 100%;
  width: 100%;
}

.qa-internal-left-nav,
#qa-internal-left-nav {
  position: sticky;
  top: 12px;
  width: 220px;
  max-width: 100%;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong, var(--border));
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-sizing: border-box;
}

.qa-sticky-back-video-btn {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  margin-bottom: 4px;
}

[data-theme="dark"] .qa-sticky-back-video-btn {
  color: #6ee7b7;
}

.qa-left-nav-heading {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 4px 2px;
}

.qa-left-nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-main);
  font-size: 11.5px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.qa-left-nav-link:hover {
  background: var(--bg-subtle);
}

.qa-left-nav-link.active {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.4);
  color: #4f46e5;
}

[data-theme="dark"] .qa-left-nav-link.active {
  color: #a5b4fc;
}

.qa-nav-pass-pill {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  font-weight: 800;
  flex-shrink: 0;
}

[data-theme="dark"] .qa-nav-pass-pill {
  color: #6ee7b7;
}

.qa-left-jump-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.qa-jump-chip {
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.qa-jump-chip:hover,
.qa-jump-chip.active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.16);
  color: #059669;
}

[data-theme="dark"] .qa-jump-chip.active {
  color: #6ee7b7;
}

.qa-yt-right-stream {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.qa-stream-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.qa-section-hdr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.qa-top-gates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.qa-top-gate-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong, var(--border));
  border-left: 3.5px solid #10b981;
  box-sizing: border-box;
}

.qa-yt-detail-card {
  border-radius: 14px;
  border: 1px solid var(--border-subtle, var(--border));
  padding: 18px;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  background: var(--bg-surface);
  max-width: 100%;
  box-sizing: border-box;
}

.qa-yt-detail-card.is-return-target,
.qa-card-focus-flash {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.28);
}

.qa-yt-card-media-col {
  width: 100%;
  max-width: 340px;
  min-width: 0;
}

.qa-yt-preview-box {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qa-yt-card-proof-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qa-unmutated-confirm-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #047857;
  font-size: 10.5px;
  font-weight: 800;
}

[data-theme="dark"] .qa-unmutated-confirm-badge {
  color: #6ee7b7;
}

.qa-titleless-confirm-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #b45309;
  font-size: 10.5px;
  font-weight: 800;
}

[data-theme="dark"] .qa-titleless-confirm-badge {
  color: #fde047;
}

.qa-six-perspective-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.qa-persp-cell {
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.qa-persp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-main);
}

.qa-persp-pass {
  font-size: 10px;
  font-weight: 900;
  color: #059669;
  white-space: nowrap;
}

[data-theme="dark"] .qa-persp-pass {
  color: #6ee7b7;
}

.qa-persp-sub {
  font-size: 10.5px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.qa-rule-cite-pill {
  align-self: flex-start;
  margin-top: 2px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

[data-theme="dark"] .qa-rule-cite-pill,
.qa-rule-cite-pill.dark {
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(129, 140, 248, 0.5);
}

.qa-truth-trick-box {
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 11.5px;
  line-height: 1.48;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* 2. Progressive Disclosure Minimalist Editor (ASK-12) */
@media (min-width: 769px) {
  .studio-timeline-editor-wrapper.is-drawer-hidden {
    display: none !important;
  }
}

/* 3. MP4 Master Spec Pill & Bake Telemetry Popover (ASK-13) */
.mp4-master-spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.11);
  color: #047857;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

[data-theme="dark"] .mp4-master-spec-pill {
  color: #6ee7b7;
}

.mp4-master-spec-pill.is-delta {
  border-color: rgba(245, 158, 11, 0.65);
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  padding-right: 4px;
}

[data-theme="dark"] .mp4-master-spec-pill.is-delta {
  color: #fde047;
}

.mp4-bake-cta-chip {
  padding: 2px 8px;
  border-radius: 999px;
  background: #10b981;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 900;
  cursor: pointer;
}

.mp4-spec-popover-backdrop,
.inline-citation-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(3px);
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.mp4-master-spec-popover,
.inline-citation-modal-card {
  width: min(560px, 95vw);
  max-height: 88vh;
  overflow-y: auto;
  padding: 16px 18px;
  border-radius: 14px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.52);
  color: #f8fafc;
}

.mp4-spec-kv-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mp4-spec-kv-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.72);
  font-size: 11.5px;
}

.mp4-spec-kv-row > span:first-child {
  color: #94a3b8;
  font-weight: 700;
}

.mp4-spec-explainer-bullets {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* 4. Live 60fps Word-by-Word Karaoke CC + Inline Chunk QA Proof Popover (ASK-09..11) */
.cc-karaoke-word {
  color: rgba(255, 255, 255, 0.72);
  border-radius: 4px;
  padding: 0 2px;
  transition: color 80ms ease, background 80ms ease;
}

.cc-karaoke-word.is-spoken {
  color: #ffffff !important;
}

.cc-karaoke-word.is-active {
  color: #fde047 !important;
  background: rgba(56, 189, 248, 0.24);
  box-shadow: 0 -2px 0 #38bdf8 inset;
  font-weight: 800;
}

.cc-inline-qa-proof-pill {
  pointer-events: auto !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.7);
  background: rgba(6, 78, 59, 0.88);
  color: #a7f3d0;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.cc-inline-qa-proof-pill:hover {
  background: #059669;
  color: #ffffff;
}

.inline-chunk-qa-popover {
  position: absolute;
  left: 50%;
  bottom: 56px;
  transform: translateX(-50%);
  width: min(690px, calc(100% - 20px));
  max-height: min(84vh, 530px);
  overflow-y: auto;
  padding: 13px 16px 16px;
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(16, 185, 129, 0.55);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
  color: #f8fafc;
  z-index: 95;
  pointer-events: auto !important;
}

.inline-chunk-qa-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.inline-chunk-qa-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.inline-qa-mini-cell {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.inline-qa-mini-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 800;
  color: #f8fafc;
}

.inline-qa-mini-sub {
  font-size: 10px;
  color: #cbd5e1;
  line-height: 1.32;
}

.inline-chunk-truth-box {
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.13);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 11px;
  color: #ecfdf5;
  line-height: 1.42;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

@media (max-width: 960px) {
  .qa-yt-two-pane-layout {
    grid-template-columns: 1fr !important;
  }

  .qa-internal-left-nav,
  #qa-internal-left-nav {
    position: static !important;
    width: 100% !important;
    max-height: none !important;
  }

  .qa-yt-detail-card {
    grid-template-columns: 1fr !important;
    padding: 14px;
    gap: 14px;
  }

  .qa-yt-card-media-col,
  .qa-yt-preview-box {
    max-width: 100% !important;
  }

  .qa-six-perspective-grid,
  .inline-chunk-qa-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================================
   SYLLOVO STUDIO v22.0 — UNIFIED SLIDES DOWNLOAD, URGENT DURATION GATE PILL,
   LIVE 10-GATE AUTO-REMEDIATION QA BADGE & FINALIZE HARD-LOCK / SEND-TO-PS UI
   ============================================================================ */

.top-header {
  height: auto !important;
  min-height: 50px;
  flex-wrap: wrap;
  row-gap: 4px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.top-header .header-left {
  flex-wrap: wrap;
  row-gap: 4px;
  min-width: 0;
}

#header-studio-clip-actions {
  flex-wrap: wrap !important;
  overflow: visible !important;
  row-gap: 4px;
}

@media (max-width: 1580px) {
  body[data-active-tab="studio"] #top-course-pill {
    display: none;
  }
}

.v22-slides-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid #6366f1;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.11);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

[data-theme="dark"] .v22-slides-dl-btn,
body.dark-theme .v22-slides-dl-btn {
  color: #a5b4fc;
  border-color: rgba(129, 140, 248, 0.72);
  background: rgba(99, 102, 241, 0.18);
}

.v22-slides-dl-btn:hover {
  background: rgba(99, 102, 241, 0.22);
  border-color: #818cf8;
}

.editor-duration-gate-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}

.editor-duration-gate-pill.is-pass {
  background: rgba(16, 185, 129, 0.13);
  border: 1.5px solid rgba(16, 185, 129, 0.65);
  color: #059669;
}

[data-theme="dark"] .editor-duration-gate-pill.is-pass,
body.dark-theme .editor-duration-gate-pill.is-pass {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.18);
}

.editor-duration-gate-pill.is-fail {
  background: rgba(244, 63, 94, 0.15);
  border: 1.5px solid rgba(244, 63, 94, 0.8);
  color: #e11d48;
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.12);
}

[data-theme="dark"] .editor-duration-gate-pill.is-fail,
body.dark-theme .editor-duration-gate-pill.is-fail {
  color: #fda4af;
  background: rgba(244, 63, 94, 0.22);
}

.editor-duration-gate-pill.is-shipped {
  background: rgba(59, 130, 246, 0.13);
  border: 1.5px solid rgba(59, 130, 246, 0.55);
  color: #2563eb;
}

[data-theme="dark"] .editor-duration-gate-pill.is-shipped,
body.dark-theme .editor-duration-gate-pill.is-shipped {
  color: #93c5fd;
}

.header-live-qa-revision-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.header-live-qa-revision-pill.is-pass {
  background: rgba(16, 185, 129, 0.14);
  border: 1.5px solid #10b981;
  color: var(--emerald, #059669);
}

.header-live-qa-revision-pill.is-pass.is-active-view {
  background: #10b981;
  color: #ffffff;
}

.header-live-qa-revision-pill.is-fail {
  background: rgba(244, 63, 94, 0.16);
  border: 1.5px solid #f43f5e;
  color: #e11d48;
}

[data-theme="dark"] .header-live-qa-revision-pill.is-fail,
body.dark-theme .header-live-qa-revision-pill.is-fail {
  color: #fda4af;
}

/* Urgent QA Summary Banner & 10-Gate Live Matrix */
.qa-urgent-summary-banner {
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
  background: var(--bg-surface, #ffffff);
  border: 2px solid rgba(16, 185, 129, 0.55);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.qa-urgent-summary-banner.has-failure {
  border-color: rgba(244, 63, 94, 0.8);
}

.qa-urgent-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.qa-urgent-duration-hero {
  border-radius: 11px;
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.qa-urgent-duration-hero.is-pass {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.13), rgba(6, 182, 212, 0.09));
  border: 1.5px solid rgba(16, 185, 129, 0.55);
}

.qa-urgent-duration-hero.is-fail {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(245, 158, 11, 0.1));
  border: 1.5px solid rgba(244, 63, 94, 0.78);
}

.qa-live-10-gates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.qa-live-gate-card {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-elevated, rgba(15, 23, 42, 0.03));
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.28));
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.qa-live-gate-card.is-pass {
  border-left: 3.5px solid #10b981;
}

.qa-live-gate-card.is-fail {
  border-left: 3.5px solid #f43f5e;
  background: rgba(244, 63, 94, 0.07);
}

@media (max-width: 900px) {
  .qa-live-10-gates-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .qa-six-perspective-grid,
  .inline-chunk-qa-grid {
    grid-template-columns: 1fr;
  }

  .mp4-master-spec-pill {
    max-width: 100%;
    white-space: normal;
    height: auto;
    padding: 4px 9px;
  }
}

/* =========================================================================
   SYLLOVO STUDIO v23.0 — TEACHING BEATS, TRACK/BEAT VERSIONING, COLLAPSIBLE
   AI WORKING PILL, 4-STAGE FREEZE GOVERNANCE & AARUNI 16X CLUSTER DASHBOARD
   ========================================================================= */

.header-aaruni-cluster-pill {
  padding: 5px 9px;
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 8px;
  white-space: nowrap;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.42);
  color: #065f46;
  cursor: pointer;
}

[data-theme="dark"] .header-aaruni-cluster-pill {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}

.tl-track-ver-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #1d4ed8;
  white-space: nowrap;
}

[data-theme="dark"] .tl-track-ver-pill {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(96, 165, 250, 0.45);
  color: #93c5fd;
}

.tl-beat-ver-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.35;
  background: rgba(15, 23, 42, 0.55);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.24);
  white-space: nowrap;
  flex-shrink: 0;
}

.tl-beat-ver-pill.is-upgraded {
  background: #fef08a;
  color: #09090b;
  border-color: #ca8a04;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

/* Syllovo AI Chat: Pattern Discovery + Selective Checkboxes + Collapsible Working Pill */
.syl-beat-pattern-card {
  margin-top: 8px;
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--bg-elevated, #ffffff);
  border: 1.5px solid rgba(99, 102, 241, 0.38);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

[data-theme="dark"] .syl-beat-pattern-card {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(129, 140, 248, 0.42);
}

.syl-beat-match-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 230px;
  overflow-y: auto;
  padding-right: 2px;
}

.syl-beat-match-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--bg-soft, rgba(148, 163, 184, 0.08));
  border: 1px solid var(--border, rgba(148, 163, 184, 0.28));
  cursor: pointer;
  font-size: 11.5px;
  line-height: 1.4;
}

.syl-beat-match-row input[type="checkbox"] {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  accent-color: #4f46e5;
  flex-shrink: 0;
  cursor: pointer;
}

.syl-prosody-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: #065f46;
}

[data-theme="dark"] .syl-prosody-lock-badge {
  color: #6ee7b7;
}

.syl-prosody-lock-badge.is-override {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.45);
  color: #92400e;
}

[data-theme="dark"] .syl-prosody-lock-badge.is-override {
  color: #fcd34d;
}

.syl-working-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.42);
  color: #3730a3;
  cursor: pointer;
  user-select: none;
}

[data-theme="dark"] .syl-working-pill {
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
}

.syl-working-details-box {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.45;
  background: var(--bg-soft, rgba(148, 163, 184, 0.1));
  border: 1px dashed rgba(99, 102, 241, 0.4);
  color: var(--text-primary);
}

.syl-track-updated-receipt {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1.5px solid rgba(16, 185, 129, 0.42);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
}

.syl-cross-clip-rec-card {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.08);
  border: 1.5px solid rgba(59, 130, 246, 0.38);
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11.5px;
}

/* 4-Stage Freeze Banners & Watch-Only Button */
.ps-author-fix-reopened-banner {
  margin-bottom: 10px;
  padding: 9px 13px;
  border-radius: 10px;
  background: rgba(244, 63, 94, 0.1);
  border: 1.5px solid rgba(244, 63, 94, 0.45);
  color: #9f1239;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

[data-theme="dark"] .ps-author-fix-reopened-banner {
  color: #fda4af;
}

.published-watch-only-banner {
  margin-bottom: 10px;
  padding: 9px 13px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  color: #065f46;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

[data-theme="dark"] .published-watch-only-banner {
  color: #6ee7b7;
}

.btn-watch-only-published {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #065f46;
  cursor: pointer;
  white-space: nowrap;
}

[data-theme="dark"] .btn-watch-only-published {
  color: #6ee7b7;
}

/* Self-Learned QA Rules Section in Video QA & Rule Proof */
.qa-learned-rules-panel {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 11px;
  background: rgba(99, 102, 241, 0.07);
  border: 1.5px solid rgba(99, 102, 241, 0.35);
}

.qa-learned-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 9px;
  margin-top: 9px;
}

.qa-learned-rule-card {
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--bg-elevated, #ffffff);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-left: 3.5px solid #10b981;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

[data-theme="dark"] .qa-learned-rule-card {
  background: rgba(15, 23, 42, 0.85);
}

/* Aaruni 16x Compute Cluster Power Modal */
.aaruni-node-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.aaruni-node-card {
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--bg-soft, rgba(148, 163, 184, 0.08));
  border: 1px solid var(--border, rgba(148, 163, 184, 0.3));
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.aaruni-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.aaruni-setup-cmd-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #0f172a;
  color: #e2e8f0;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  word-break: break-all;
}

@media (max-width: 820px) {
  .aaruni-node-grid {
    grid-template-columns: 1fr;
  }
  .aaruni-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cluster-pill-word {
    display: none;
  }
  .header-aaruni-cluster-pill {
    padding: 4px 7px;
    font-size: 10.5px;
  }
  .aaruni-kpi-strip {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Syllovo Studio v24.0 — Bottom-Left Two-Card Tenant Footer, Un-Crowded Left
   Sidebar, Below-Stage CC Bar, VT#k vM / AT#k vM Track Badges & Side-by-Side QA
   ========================================================================== */

#sidebar-footer.sidebar-footer {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border, #e4e4e7);
  background: var(--bg-surface, #ffffff);
}

#sidebar-cluster-mini-pill {
  width: 100%;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elevated, #ffffff);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
  text-align: left;
}

#sidebar-cluster-mini-pill:hover {
  border-color: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}

#sidebar-tenant-user-card {
  width: 100%;
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated, #ffffff);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
  text-align: left;
}

#sidebar-tenant-user-card:hover {
  border-color: #6366f1;
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.12);
}

[data-theme="dark"] #sidebar-cluster-mini-pill,
[data-theme="dark"] #sidebar-tenant-user-card {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.85);
}

.sidebar-active-clip-subnav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0 8px 14px;
  padding: 4px;
  border-radius: 9px;
  background: var(--bg-subtle, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
}

.sidebar-subnav-item {
  border-radius: 7px;
  transition: background 0.14s ease, color 0.14s ease;
}

.sidebar-subnav-item:hover {
  background: rgba(16, 185, 129, 0.1);
}

/* Below-Stage Dedicated CC Bar (0% overlap with 16:9 slide/video canvas) */
#stage-subtitle-overlay.stage-below-cc-bar,
#mobile-cc-live-bar.mobile-yt-cc-bar {
  position: relative !important;
  inset: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100%;
  background: #0f172a !important;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  box-sizing: border-box;
  z-index: 4;
}

#stage-subtitle-overlay.stage-below-cc-bar.cc-hidden {
  display: none !important;
}

/* Prominent VT#k vM & AT#k vM Timeline Badges */
.tl-vt-ver-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 5px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  font-weight: 900;
  background: #1e3a8a;
  color: #bfdbfe;
  border: 1px solid #3b82f6;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.tl-at-ver-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 5px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  font-weight: 900;
  background: #064e3b;
  color: #a7f3d0;
  border: 1px solid #10b981;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

