/* ==========================================================================
   PPHC WorshipHub — Professional Control Room Design System
   Dedicated for PPHC Bulacan Presentation Operations
   ========================================================================== */

:root {
  --pphc-cr-bg-root: #080b11;
  --pphc-cr-bg-topbar: #0c1018;
  --pphc-cr-bg-panel: #101522;
  --pphc-cr-bg-card: #151c2c;
  --pphc-cr-bg-card-hover: #1c253b;
  --pphc-cr-bg-elevated: #222d46;
  --pphc-cr-border: rgba(255, 255, 255, 0.08);
  --pphc-cr-border-focus: rgba(245, 158, 11, 0.45);
  
  --pphc-cr-amber: #f59e0b;
  --pphc-cr-amber-light: #fbbf24;
  --pphc-cr-amber-glow: rgba(245, 158, 11, 0.25);
  
  --pphc-cr-emerald: #10b981;
  --pphc-cr-emerald-glow: rgba(16, 185, 129, 0.35);
  
  --pphc-cr-ruby: #ef4444;
  --pphc-cr-indigo: #6366f1;
  --pphc-cr-cyan: #06b6d4;

  --pphc-cr-text-primary: #f8fafc;
  --pphc-cr-text-secondary: #94a3b8;
  --pphc-cr-text-muted: #64748b;

  --pphc-cr-font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --pphc-cr-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --pphc-cr-radius-sm: 6px;
  --pphc-cr-radius-md: 10px;
  --pphc-cr-radius-lg: 14px;
}

/* Master Root Container */
.pphc-control-room {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  background-color: var(--pphc-cr-bg-root);
  color: var(--pphc-cr-text-primary);
  font-family: var(--pphc-cr-font-sans);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* ==========================================================================
   1. TOP CONTROL ROOM BAR
   ========================================================================== */
.pphc-cr-topbar {
  height: 58px;
  background: var(--pphc-cr-bg-topbar);
  border-bottom: 1px solid var(--pphc-cr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 16px;
  flex-shrink: 0;
  z-index: 30;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.pphc-cr-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pphc-cr-exit-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--pphc-cr-border);
  color: var(--pphc-cr-text-primary);
  border-radius: var(--pphc-cr-radius-sm);
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.pphc-cr-exit-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(-2px);
}

.pphc-cr-church-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pphc-cr-church-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0e14;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
}

.pphc-cr-session-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.pphc-cr-session-sub {
  font-size: 12px;
  color: var(--pphc-cr-text-muted);
}

/* Master Center Actions */
.pphc-cr-topbar-center {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pphc-cr-btn-take-live {
  background: linear-gradient(180deg, #10b981 0%, #059669 60%, #047857 100%);
  color: #ffffff;
  border: 1px solid rgba(167, 243, 208, 0.5);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 22px;
  border-radius: var(--pphc-cr-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 18px var(--pphc-cr-emerald-glow);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pphc-cr-btn-take-live:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.5);
}

.pphc-cr-btn-take-live.is-pulsing {
  animation: pphcLivePulse 1.8s infinite;
}

@keyframes pphcLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.pphc-cr-override-group {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--pphc-cr-border);
  border-radius: var(--pphc-cr-radius-md);
  padding: 3px;
  gap: 3px;
}

.pphc-cr-override-btn {
  background: transparent;
  border: none;
  color: var(--pphc-cr-text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--pphc-cr-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.04em;
  transition: all 0.15s ease;
}

.pphc-cr-override-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.pphc-cr-override-btn.active-blackout {
  background: #000000;
  color: #ef4444;
  border: 1px solid #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.pphc-cr-override-btn.active-clear {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid #f59e0b;
}

.pphc-cr-override-btn.active-logo {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid #3b82f6;
}

.pphc-cr-projector-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--pphc-cr-border);
  color: var(--pphc-cr-text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--pphc-cr-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.pphc-cr-projector-toggle.is-active {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

/* Topbar Right Tools */
.pphc-cr-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pphc-cr-timer-widget {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--pphc-cr-border);
  border-radius: var(--pphc-cr-radius-md);
  overflow: hidden;
}

.pphc-cr-timer-btn {
  background: transparent;
  border: none;
  color: var(--pphc-cr-text-primary);
  font-family: var(--pphc-cr-font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pphc-cr-timer-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.pphc-cr-timer-reset {
  background: transparent;
  border: none;
  border-left: 1px solid var(--pphc-cr-border);
  color: var(--pphc-cr-text-muted);
  font-size: 11px;
  padding: 6px 8px;
  cursor: pointer;
}

.pphc-cr-timer-reset:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.pphc-cr-tool-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--pphc-cr-border);
  color: var(--pphc-cr-text-secondary);
  border-radius: var(--pphc-cr-radius-sm);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.pphc-cr-tool-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   2. THREE-PANEL CONTROL ROOM WORKSPACE
   ========================================================================== */
.pphc-cr-workspace {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--pphc-cr-bg-root);
}

/* ── PANEL A: LEFT LINEUP COLUMN ── */
.pphc-cr-lineup-col {
  width: 320px;
  min-width: 280px;
  max-width: 380px;
  background: var(--pphc-cr-bg-panel);
  border-right: 1px solid var(--pphc-cr-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.pphc-cr-lineup-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--pphc-cr-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.15);
}

.pphc-cr-lineup-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pphc-cr-lineup-heading {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--pphc-cr-text-muted);
  text-transform: uppercase;
}

.pphc-cr-lineup-stats {
  font-size: 11px;
  color: var(--pphc-cr-amber);
  font-weight: 600;
}

.pphc-cr-quick-add-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pphc-cr-add-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--pphc-cr-border);
  color: var(--pphc-cr-text-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: var(--pphc-cr-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.pphc-cr-add-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.pphc-cr-add-btn.highlight-ppt {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--pphc-cr-amber-light);
}

.pphc-cr-add-btn.highlight-ppt:hover {
  background: rgba(245, 158, 11, 0.22);
  box-shadow: 0 0 10px var(--pphc-cr-amber-glow);
}

.pphc-cr-lineup-search {
  padding: 8px 14px;
  border-bottom: 1px solid var(--pphc-cr-border);
  position: relative;
}

.pphc-cr-search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--pphc-cr-border);
  border-radius: var(--pphc-cr-radius-sm);
  color: #ffffff;
  font-size: 12px;
  padding: 6px 10px 6px 28px;
  outline: none;
  transition: border-color 0.15s ease;
}

.pphc-cr-search-input:focus {
  border-color: var(--pphc-cr-amber);
}

.pphc-cr-search-icon {
  position: absolute;
  left: 22px;
  top: 15px;
  font-size: 12px;
  color: var(--pphc-cr-text-muted);
  pointer-events: none;
}

.pphc-cr-lineup-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Lineup Item Card */
.pphc-cr-item-card {
  background: var(--pphc-cr-bg-card);
  border: 1px solid var(--pphc-cr-border);
  border-radius: var(--pphc-cr-radius-md);
  padding: 10px 12px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.pphc-cr-item-card:hover {
  background: var(--pphc-cr-bg-card-hover);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.pphc-cr-item-card.is-selected {
  border-color: var(--pphc-cr-amber);
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 3px 0 0 var(--pphc-cr-amber);
}

.pphc-cr-item-card.is-live-item {
  border-color: var(--pphc-cr-emerald);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 3px 0 0 var(--pphc-cr-emerald);
}

.pphc-cr-item-idx {
  font-family: var(--pphc-cr-font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--pphc-cr-text-muted);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.pphc-cr-item-info {
  flex: 1;
  min-width: 0;
}

.pphc-cr-item-topline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.pphc-cr-type-tag {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.pphc-cr-type-tag.song { background: rgba(99, 102, 241, 0.2); color: #818cf8; }
.pphc-cr-type-tag.presentation { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.pphc-cr-type-tag.scripture { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.pphc-cr-type-tag.announcement { background: rgba(236, 72, 153, 0.2); color: #f472b6; }
.pphc-cr-type-tag.countdown { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }

.pphc-cr-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pphc-cr-item-sub {
  font-size: 11px;
  color: var(--pphc-cr-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pphc-cr-item-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.pphc-cr-slide-count-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--pphc-cr-text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

.pphc-cr-live-dot-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.06em;
}

.pphc-cr-item-reorder-btns {
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.pphc-cr-item-card:hover .pphc-cr-item-reorder-btns {
  opacity: 1;
}

.pphc-cr-btn-mini {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--pphc-cr-text-primary);
  width: 18px;
  height: 18px;
  border-radius: 3px;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pphc-cr-btn-mini:hover {
  background: rgba(255, 255, 255, 0.2);
}

.pphc-cr-lineup-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--pphc-cr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.15);
}

/* ── PANEL B: CENTER SLIDE WORKSPACE ── */
.pphc-cr-slides-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--pphc-cr-bg-root);
  overflow: hidden;
}

.pphc-cr-slides-header {
  height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid var(--pphc-cr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--pphc-cr-bg-topbar);
  flex-shrink: 0;
}

.pphc-cr-current-item-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pphc-cr-banner-icon {
  font-size: 18px;
}

.pphc-cr-banner-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pphc-cr-banner-sub {
  font-size: 11.5px;
  color: var(--pphc-cr-text-muted);
}

.pphc-cr-workspace-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pphc-cr-view-mode-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--pphc-cr-border);
  border-radius: var(--pphc-cr-radius-sm);
  padding: 2px;
}

.pphc-cr-mode-btn {
  background: transparent;
  border: none;
  color: var(--pphc-cr-text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pphc-cr-mode-btn.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.pphc-cr-zoom-slider-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--pphc-cr-text-muted);
}

/* Quick Jump Section Bar */
.pphc-cr-quick-jump-bar {
  padding: 8px 18px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--pphc-cr-border);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

.pphc-cr-qj-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--pphc-cr-amber);
  text-transform: uppercase;
  margin-right: 4px;
  flex-shrink: 0;
}

.pphc-cr-qj-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--pphc-cr-border);
  color: var(--pphc-cr-text-secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pphc-cr-qj-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.pphc-cr-qj-pill.is-active-section {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--pphc-cr-amber);
  color: var(--pphc-cr-amber-light);
}

/* Slide Grid Scroll Area */
.pphc-cr-slides-container {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pphc-cr-section-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pphc-cr-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pphc-cr-section-title-tag {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.pphc-cr-section-line {
  flex: 1;
  height: 1px;
  background: var(--pphc-cr-border);
}

/* Slide Cards Grid */
.pphc-cr-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.pphc-cr-slide-card {
  background: var(--pphc-cr-bg-card);
  border: 1px solid var(--pphc-cr-border);
  border-radius: var(--pphc-cr-radius-md);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pphc-cr-slide-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.pphc-cr-slide-card.is-staged {
  border-color: var(--pphc-cr-amber);
  box-shadow: 0 0 16px var(--pphc-cr-amber-glow), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.pphc-cr-slide-card.is-live {
  border-color: var(--pphc-cr-emerald);
  box-shadow: 0 0 20px var(--pphc-cr-emerald-glow), 0 4px 14px rgba(0, 0, 0, 0.5);
}

.pphc-cr-card-top {
  height: 26px;
  background: rgba(0, 0, 0, 0.4);
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pphc-cr-slide-num {
  font-family: var(--pphc-cr-font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--pphc-cr-text-muted);
}

.pphc-cr-card-status-badge {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: 3px;
}

.pphc-cr-card-status-badge.live {
  background: var(--pphc-cr-emerald);
  color: #062417;
  box-shadow: 0 0 8px var(--pphc-cr-emerald-glow);
}

.pphc-cr-card-status-badge.next {
  background: var(--pphc-cr-amber);
  color: #241403;
}

.pphc-cr-card-thumb-wrap {
  aspect-ratio: 16 / 9;
  background: #000000;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pphc-cr-card-snippet {
  padding: 8px 10px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--pphc-cr-text-secondary);
  background: var(--pphc-cr-bg-card);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 38px;
}

/* Focused Canvas View Mode */
.pphc-cr-focus-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
  gap: 16px;
  min-height: 0;
}

.pphc-cr-focus-canvas-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  border: 1px solid var(--pphc-cr-border);
  border-radius: var(--pphc-cr-radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.pphc-cr-filmstrip {
  height: 90px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px;
  flex-shrink: 0;
}

/* ── PANEL C: RIGHT PROGRAM & PREVIEW MONITOR COLUMN ── */
.pphc-cr-program-col {
  width: 360px;
  min-width: 320px;
  max-width: 440px;
  background: var(--pphc-cr-bg-panel);
  border-left: 1px solid var(--pphc-cr-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}

.pphc-cr-monitors-wrap {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pphc-cr-monitor-box {
  background: var(--pphc-cr-bg-card);
  border: 1px solid var(--pphc-cr-border);
  border-radius: var(--pphc-cr-radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.pphc-cr-monitor-box.program-live {
  border-color: rgba(16, 185, 129, 0.35);
}

.pphc-cr-monitor-box.preview-next {
  border-color: rgba(245, 158, 11, 0.35);
}

.pphc-cr-monitor-header {
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pphc-cr-monitor-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pphc-cr-monitor-title.live-color { color: #34d399; }
.pphc-cr-monitor-title.next-color { color: #fbbf24; }

.pphc-cr-monitor-meta {
  font-family: var(--pphc-cr-font-mono);
  font-size: 11px;
  color: var(--pphc-cr-text-muted);
}

.pphc-cr-screen-frame {
  aspect-ratio: 16 / 9;
  background: #000000;
  position: relative;
  overflow: hidden;
}

.pphc-cr-override-indicator-banner {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #f59e0b;
  color: #fbbf24;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.pphc-cr-override-indicator-banner.blackout {
  border-color: #ef4444;
  color: #ef4444;
}

/* Master Live Navigation Buttons */
.pphc-cr-live-nav-panel {
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pphc-cr-nav-big-row {
  display: flex;
  gap: 8px;
}

.pphc-cr-nav-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--pphc-cr-border);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 12px;
  border-radius: var(--pphc-cr-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.pphc-cr-nav-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.pphc-cr-nav-btn.primary-take {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  border-color: rgba(167, 243, 208, 0.5);
  box-shadow: 0 4px 14px var(--pphc-cr-emerald-glow);
}

.pphc-cr-nav-btn.primary-take:hover {
  background: linear-gradient(180deg, #059669 0%, #047857 100%);
}

.pphc-cr-keyboard-hints {
  font-size: 11px;
  color: var(--pphc-cr-text-muted);
  text-align: center;
  padding: 4px;
}

.pphc-cr-keyboard-hints kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  padding: 1px 4px;
  color: #ffffff;
  font-family: var(--pphc-cr-font-mono);
}

/* Hardware & Broadcast Hub Accordion/Cards */
.pphc-cr-hub-section {
  padding: 14px;
  border-top: 1px solid var(--pphc-cr-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pphc-cr-hub-heading {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--pphc-cr-text-muted);
  text-transform: uppercase;
}

.pphc-cr-hub-card {
  background: var(--pphc-cr-bg-card);
  border: 1px solid var(--pphc-cr-border);
  border-radius: var(--pphc-cr-radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pphc-cr-hub-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pphc-cr-hub-icon {
  font-size: 16px;
}

.pphc-cr-hub-label {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.pphc-cr-hub-sub {
  font-size: 11px;
  color: var(--pphc-cr-text-muted);
}

.pphc-cr-hub-action-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--pphc-cr-border);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--pphc-cr-radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.pphc-cr-hub-action-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ==========================================================================
   3. MODALS (PowerPoint, Scripture, Song Picker, Remote QR)
   ========================================================================== */
.pphc-cr-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pphc-cr-modal {
  background: var(--pphc-cr-bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--pphc-cr-radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  animation: pphcModalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pphcModalIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.pphc-cr-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--pphc-cr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pphc-cr-modal-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.pphc-cr-modal-close {
  background: transparent;
  border: none;
  color: var(--pphc-cr-text-muted);
  font-size: 18px;
  cursor: pointer;
}

.pphc-cr-modal-close:hover {
  color: #ffffff;
}

.pphc-cr-modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pphc-cr-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--pphc-cr-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
}

/* File Drop Area for PowerPoint */
.pphc-cr-ppt-dropzone {
  border: 2px dashed rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.04);
  border-radius: var(--pphc-cr-radius-md);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pphc-cr-ppt-dropzone:hover {
  border-color: var(--pphc-cr-amber);
  background: rgba(245, 158, 11, 0.08);
}

.pphc-cr-ppt-icon {
  font-size: 40px;
}

.pphc-cr-ppt-lead {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.pphc-cr-ppt-sub {
  font-size: 12px;
  color: var(--pphc-cr-text-secondary);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════
   WYSIWYG 16:9 PROPORTIONAL SCALED SLIDE ENGINE
   ═══════════════════════════════════════════════════════ */
.pphc-cr-scaled-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pphc-cr-scaled-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: top left;
  will-change: transform;
  pointer-events: none;
}

.pphc-cr-scaled-inner {
  width: 1920px;
  height: 1080px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pphc-cr-scaled-inner .slide-preview {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 56px 84px !important;
}

.pphc-cr-scaled-inner .slide-preview-text {
  line-height: 1.34 !important;
  max-width: 92% !important;
}

/* Scaled Monitor Overrides (Blackout, Logo, Standby) */
.pphc-cr-scaled-override {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  user-select: none;
}

.pphc-cr-scaled-override.blackout {
  background: #000000;
  color: #ef4444;
}

.pphc-cr-scaled-override.logo {
  background: radial-gradient(circle at center, #111827 0%, #030712 100%);
  color: #ffffff;
}

.pphc-cr-scaled-override.standby {
  background: #080b12;
  color: var(--pphc-cr-text-muted);
}

.pphc-cr-scaled-override .override-icon {
  font-size: clamp(16px, 3.2vw, 32px);
  margin-bottom: 6px;
}

.pphc-cr-scaled-override .override-label {
  font-size: clamp(10px, 1.4vw, 13px);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pphc-cr-scaled-override .override-sub {
  font-size: clamp(8px, 1.1vw, 11px);
  opacity: 0.7;
  margin-top: 3px;
}

.pphc-cr-scaled-override .override-logo-img {
  width: clamp(40px, 6vw, 70px);
  height: clamp(40px, 6vw, 70px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  margin-bottom: 8px;
  object-fit: cover;
}

/* ═══════════════════════════════════════════════════════
   SLIDE APPEARANCE & TYPOGRAPHY MODAL
   ═══════════════════════════════════════════════════════ */
.pphc-cr-app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pphc-cr-layout-3x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.pphc-cr-layout-cell {
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--pphc-cr-border);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--pphc-cr-text-muted);
  transition: all 0.15s ease;
}

.pphc-cr-layout-cell:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.pphc-cr-layout-cell.is-active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--pphc-cr-amber);
  color: var(--pphc-cr-amber-light);
  box-shadow: 0 0 10px var(--pphc-cr-amber-glow);
}

.pphc-cr-align-group {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--pphc-cr-border);
  border-radius: var(--pphc-cr-radius-sm);
  padding: 2px;
  gap: 2px;
}

.pphc-cr-align-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--pphc-cr-text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.pphc-cr-align-btn:hover {
  color: #ffffff;
}

.pphc-cr-align-btn.is-active {
  background: rgba(245, 158, 11, 0.2);
  color: var(--pphc-cr-amber-light);
}

.pphc-cr-size-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.pphc-cr-size-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  accent-color: var(--pphc-cr-amber);
  cursor: pointer;
}

.pphc-cr-size-pill {
  font-family: var(--pphc-cr-font-mono);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--pphc-cr-amber-light);
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  min-width: 48px;
  text-align: center;
}


/* ═══════════════════════════════════════════════════════
   PROPRESENTER MASTER SIDEBAR & LIBRARY/PLAYLIST FLOW
   ═══════════════════════════════════════════════════════ */
.pphc-pro-sidebar {
  width: 320px;
  min-width: 280px;
  max-width: 380px;
  background: #18191f;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-shrink: 0;
  user-select: none;
  font-family: var(--pphc-cr-font-sans);
}

.pphc-pro-tree-section {
  max-height: 250px;
  overflow-y: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #14151a;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pphc-pro-group {
  display: flex;
  flex-direction: column;
}

.pphc-pro-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px 2px 14px;
  font-size: 10.5px;
  font-weight: 800;
  color: #7b8194;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pphc-pro-group-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pphc-pro-action-btn {
  background: transparent;
  border: none;
  color: #8b92a5;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}

.pphc-pro-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.pphc-pro-tree-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 6px;
}

.pphc-pro-tree-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.12s ease;
  position: relative;
}

.pphc-pro-tree-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.pphc-pro-tree-item.is-active {
  background: rgba(0, 120, 212, 0.22);
  color: #60a5fa;
  font-weight: 700;
  border-left: 3px solid #0078d4;
}

.pphc-pro-tree-icon {
  font-size: 13px;
  opacity: 0.9;
  flex-shrink: 0;
}

.pphc-pro-tree-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pphc-pro-tree-count {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 8px;
}

.pphc-pro-tree-item.is-active .pphc-pro-tree-count {
  background: rgba(0, 120, 212, 0.4);
  color: #ffffff;
}

/* ── Middle: Items List Section ── */
.pphc-pro-items-section {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #18191f;
}

.pphc-pro-items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background: #131418;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pphc-pro-items-count-title {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pphc-pro-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pphc-pro-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.12s ease;
  position: relative;
}

.pphc-pro-item-row:hover {
  background: rgba(255, 255, 255, 0.07);
}

.pphc-pro-item-row.is-active {
  background: #0078d4 !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 120, 212, 0.45);
}

.pphc-pro-item-icon {
  font-size: 13px;
  flex-shrink: 0;
}

.pphc-pro-item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pphc-pro-item-title {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.pphc-pro-item-sub {
  font-size: 10px;
  color: #8b949e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pphc-pro-item-row.is-active .pphc-pro-item-sub {
  color: rgba(255, 255, 255, 0.8);
}

.pphc-pro-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.pphc-pro-badge.live {
  background: #ef4444;
  color: #ffffff;
  animation: pphcLivePulse 1.8s infinite;
}

.pphc-pro-badge.in-lineup {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.pphc-pro-item-row.is-active .pphc-pro-badge.in-lineup {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.pphc-pro-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.pphc-pro-item-row:hover .pphc-pro-item-actions {
  opacity: 1;
}

.pphc-pro-row-action {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
}

.pphc-pro-row-action:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ── Filter Bar ── */
.pphc-pro-filter-wrap {
  padding: 6px 8px;
  background: #131418;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  position: relative;
}

.pphc-pro-filter-icon {
  position: absolute;
  left: 16px;
  top: 12px;
  font-size: 11px;
  color: #64748b;
  pointer-events: none;
}

.pphc-pro-filter-input {
  width: 100%;
  background: #0d0e12;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 5px 8px 5px 26px;
  color: #ffffff;
  font-size: 11.5px;
  outline: none;
  transition: border-color 0.15s ease;
}

.pphc-pro-filter-input:focus {
  border-color: #0078d4;
  box-shadow: 0 0 6px rgba(0, 120, 212, 0.4);
}

.pphc-pro-filter-clear {
  position: absolute;
  right: 14px;
  top: 11px;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 11px;
  cursor: pointer;
}

.pphc-pro-filter-clear:hover {
  color: #ffffff;
}

/* ── ProPresenter Purple Section Ribbon & Colored Groups ── */
.pphc-pro-section-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 12px;
  border-radius: 4px 4px 0 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.pphc-pro-section-ribbon.preshow {
  background: #6d28d9; /* Signature ProPresenter purple PreShow bar */
}

.pphc-pro-section-ribbon.verse {
  background: #1d4ed8;
}

.pphc-pro-section-ribbon.chorus {
  background: #b45309;
}

.pphc-pro-section-ribbon.bridge {
  background: #0f766e;
}

.pphc-pro-section-ribbon.scripture {
  background: #92400e;
}

.pphc-pro-section-ribbon.presentation {
  background: #4338ca;
}

.pphc-pro-section-ribbon.default {
  background: #334155;
}

/* ProPresenter Dropdown & Slide Card Enhancements */
.pphc-pro-dropdown-menu { animation: pphcDropdownFadeIn 0.15s ease-out; }
@keyframes pphcDropdownFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.pphc-pro-dropdown-item:hover { background: rgba(255, 255, 255, 0.08) !important; }
.pphc-pro-item-header-row { user-select: none; }
.pphc-pro-slide-card:hover { transform: translateY(-2px); }


/* ═══════════════════════════════════════════════════════
   PROPRESENTER 7 ANNOUNCEMENTS MODULE DESIGN SYSTEM
   Pixel-perfect match to ProPresenter 7 PreShow Loop & Presentation workflow
   ═══════════════════════════════════════════════════════ */

.pphc-pro-ann-root {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  background: #14151a;
  color: #f1f5f9;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow: hidden;
  user-select: none;
}

/* ── ProPresenter Top Control Bar ── */
.pphc-pro-ann-topbar {
  height: 52px;
  background: #181920;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
  flex-shrink: 0;
  z-index: 20;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.pphc-pro-ann-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pphc-pro-ann-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pphc-pro-ann-title-icon {
  font-size: 16px;
  color: #a855f7;
}

.pphc-pro-ann-title-text {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.pphc-pro-ann-title-duration {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #a855f7;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
}

.pphc-pro-ann-loop-select-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1e2029;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11px;
  color: #94a3b8;
}

.pphc-pro-ann-loop-select {
  background: transparent;
  border: none;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.pphc-pro-ann-loop-btn {
  background: #6b21a8;
  border: 1px solid #9333ea;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.pphc-pro-ann-loop-btn:hover {
  background: #7e22ce;
  box-shadow: 0 0 12px rgba(147, 51, 234, 0.5);
}

.pphc-pro-ann-loop-btn.is-looping {
  background: #dc2626;
  border-color: #ef4444;
  animation: pphcLivePulse 1.8s infinite;
}

.pphc-pro-ann-zoom-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1e2029;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 5px;
}

.pphc-pro-ann-zoom-slider {
  width: 75px;
  accent-color: #0078d4;
  cursor: pointer;
}

/* Topbar Action Buttons */
.pphc-pro-ann-topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pphc-pro-btn {
  background: #232634;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.14s ease;
  white-space: nowrap;
}

.pphc-pro-btn:hover {
  background: #2d3142;
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.pphc-pro-btn.primary {
  background: #0078d4;
  border-color: #2b88d8;
  color: #ffffff;
  font-weight: 700;
}

.pphc-pro-btn.primary:hover {
  background: #106ebe;
  box-shadow: 0 2px 10px rgba(0, 120, 212, 0.4);
}

.pphc-pro-btn.success {
  background: #059669;
  border-color: #10b981;
  color: #ffffff;
  font-weight: 700;
}

.pphc-pro-btn.success:hover {
  background: #047857;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.pphc-pro-btn.gold {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #fbbf24;
  font-weight: 700;
}

.pphc-pro-btn.gold:hover {
  background: #f59e0b;
  color: #000000;
}

.pphc-pro-btn.purple {
  background: rgba(147, 51, 234, 0.15);
  border-color: #9333ea;
  color: #c084fc;
  font-weight: 700;
}

.pphc-pro-btn.purple:hover {
  background: #7e22ce;
  color: #ffffff;
}

/* ── 3-Panel Main Workspace ── */
.pphc-pro-ann-workspace {
  display: flex;
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

/* ── Left Sidebar (ProPresenter Navigator) ── */
.pphc-pro-ann-sidebar {
  width: 290px;
  min-width: 260px;
  max-width: 340px;
  background: #18191f;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-shrink: 0;
}

.pphc-pro-sidebar-tree {
  flex: 0 0 auto;
  max-height: 260px;
  overflow-y: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 0;
}

.pphc-pro-sidebar-items {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #15161c;
}

.pphc-pro-items-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #131419;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pphc-pro-items-title {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pphc-pro-sidebar-filter {
  padding: 6px 10px;
  background: #111216;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pphc-pro-filter-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 11.5px;
  color: #ffffff;
  outline: none;
}

.pphc-pro-filter-input::placeholder {
  color: #64748b;
}

.pphc-pro-ann-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pphc-pro-ann-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.12s ease;
  position: relative;
}

.pphc-pro-ann-item-row:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.pphc-pro-ann-item-row.is-active {
  background: #0078d4 !important;
  color: #ffffff !important;
  font-weight: 700;
}

.pphc-pro-ann-item-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pphc-pro-ann-item-dur {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  opacity: 0.85;
}

.pphc-pro-ann-item-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pphc-pro-ann-item-badge.default {
  background: #f59e0b;
  color: #000000;
}

.pphc-pro-media-bin-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  background: #111216;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Center Stage (Slide Grid) ── */
.pphc-pro-ann-center {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #14151b;
  overflow: hidden;
}

.pphc-pro-ann-canvas-header {
  height: 38px;
  background: #181920;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}

.pphc-pro-ann-canvas-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pphc-pro-ann-deck-name {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.pphc-pro-ann-deck-count {
  font-size: 11px;
  color: #94a3b8;
}

.pphc-pro-ann-grid-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--pphc-pro-thumb-w, 280px), 1fr));
  gap: 16px;
  align-content: start;
}

/* ── Slide Card (Pixel-Perfect ProPresenter 7 Match!) ── */
.pphc-pro-slide-card {
  background: #1c1d24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.pphc-pro-slide-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.pphc-pro-slide-card.is-live {
  border-color: #a855f7 !important;
  box-shadow: 0 0 0 2px #a855f7, 0 0 22px rgba(168, 85, 247, 0.55) !important;
}

.pphc-pro-slide-card.is-staged {
  border-color: #0078d4 !important;
  box-shadow: 0 0 0 2px #0078d4 !important;
}

/* Top-Left Cue Icon Badge (ProPresenter Icon) */
.pphc-pro-cue-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 22px;
  height: 22px;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #ffffff;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Top-Right Timer Badge */
.pphc-pro-slide-timer-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  z-index: 5;
}

/* 16:9 Slide Canvas */
.pphc-pro-slide-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0b0e;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pphc-pro-slide-canvas-scaled {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bottom Purple ProPresenter Strip */
.pphc-pro-purple-ribbon {
  background: #6c1d88; /* Exact ProPresenter Purple header bar */
  color: #ffffff;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 24px;
}

.pphc-pro-purple-ribbon.active-loop {
  background: #7e22ce;
  animation: pphcLivePulse 2s infinite;
}

.pphc-pro-purple-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pphc-pro-purple-idx {
  font-weight: 900;
}

/* Hover Quick Actions on Slide */
.pphc-pro-slide-hover-menu {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 18, 0.72);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.pphc-pro-slide-card:hover .pphc-pro-slide-hover-menu {
  opacity: 1;
  pointer-events: auto;
}

.pphc-pro-slide-hover-live-btn {
  background: #0078d4;
  border: none;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.12s ease;
  box-shadow: 0 4px 12px rgba(0, 120, 212, 0.5);
}

.pphc-pro-slide-hover-live-btn:hover {
  background: #106ebe;
  transform: scale(1.04);
}

.pphc-pro-slide-hover-actions-row {
  display: flex;
  gap: 6px;
}

.pphc-pro-slide-hover-mini-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.pphc-pro-slide-hover-mini-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.pphc-pro-slide-hover-mini-btn.delete:hover {
  background: #ef4444;
  border-color: #ef4444;
}

/* ── Right Sidebar (ProPresenter Program Output & Stage Monitor) ── */
.pphc-pro-ann-monitor-dock {
  width: 320px;
  min-width: 290px;
  max-width: 380px;
  background: #18191f;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-shrink: 0;
  position: relative;
}

.pphc-pro-ann-dock-inner {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-right: 38px; /* space for far right vertical clear toolbar */
}

.pphc-pro-monitor-card {
  background: #14151b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.pphc-pro-monitor-header {
  padding: 6px 10px;
  background: #111216;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pphc-pro-monitor-title {
  font-size: 11px;
  font-weight: 800;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pphc-pro-monitor-viewport {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #08090c;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Media Transport Controls (Rewind 15s, Play, Forward 15s) */
.pphc-pro-transport-card {
  background: #14151b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pphc-pro-transport-media-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.pphc-pro-transport-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pphc-pro-transport-btn {
  background: #222530;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.pphc-pro-transport-btn:hover {
  background: #2d3140;
  color: #ffffff;
}

.pphc-pro-transport-btn.play {
  background: #0078d4;
  border-color: #2b88d8;
  color: #ffffff;
  padding: 6px 18px;
  font-size: 12px;
}

.pphc-pro-transport-btn.play:hover {
  background: #106ebe;
}

.pphc-pro-transport-scrubber-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #94a3b8;
}

.pphc-pro-transport-scrubber {
  flex: 1;
  accent-color: #a855f7;
  cursor: pointer;
}

/* ProPresenter Vertical Clear Layer Strip (Far Right) */
.pphc-pro-clear-vertical-strip {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 38px;
  background: #121318;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 8px;
  z-index: 10;
}

.pphc-pro-clear-btn {
  width: 28px;
  height: 28px;
  background: #1c1d25;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #94a3b8;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
}

.pphc-pro-clear-btn:hover {
  background: #282a36;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.pphc-pro-clear-btn.danger {
  color: #f87171;
}

.pphc-pro-clear-btn.danger:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* ── ProPresenter Modals (PPTX, Video, Picture, Editor) ── */
.pphc-pro-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: pphcModalFadeIn 0.18s ease-out;
}

.pphc-pro-modal-window {
  background: #181922;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.pphc-pro-modal-header {
  padding: 12px 18px;
  background: #14151c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pphc-pro-modal-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pphc-pro-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.pphc-pro-modal-close:hover {
  color: #ffffff;
}

.pphc-pro-modal-body {
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pphc-pro-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pphc-pro-dropzone:hover {
  border-color: #0078d4;
  background: rgba(0, 120, 212, 0.06);
}

.pphc-pro-dropzone-icon {
  font-size: 36px;
}

.pphc-pro-dropzone-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
}

.pphc-pro-dropzone-sub {
  font-size: 11.5px;
  color: #94a3b8;
}

.pphc-pro-modal-footer {
  padding: 12px 18px;
  background: #14151c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* ProPresenter Full-Width Screen Expansion */
.app.app-fullscreen-presenter { width: 100vw !important; max-width: 100vw !important; height: 100vh !important; display: flex !important; flex-direction: column !important; overflow: hidden !important; background: #111216 !important; margin: 0 !important; padding: 0 !important; box-sizing: border-box !important; }
.pphc-pro-workspace { width: 100% !important; width: 100vw !important; max-width: 100vw !important; flex: 1 1 100% !important; height: 100vh !important; display: flex !important; flex-direction: column !important; background: #111216 !important; color: #fff !important; overflow: hidden !important; box-sizing: border-box !important; }
.pphc-pro-top-navbar { width: 100% !important; flex-shrink: 0 !important; box-sizing: border-box !important; }
.pphc-pro-body { width: 100% !important; display: flex !important; flex: 1 1 auto !important; min-height: 0 !important; overflow: hidden !important; box-sizing: border-box !important; }
.pphc-pro-sidebar { width: 300px !important; min-width: 260px !important; max-width: 340px !important; flex-shrink: 0 !important; }
.pphc-pro-center-stage { flex: 1 1 0% !important; min-width: 0 !important; width: 100% !important; display: flex !important; flex-direction: column !important; background: #0e0f12 !important; overflow: hidden !important; }
.pphc-pro-right-dock { width: 340px !important; min-width: 300px !important; max-width: 380px !important; flex-shrink: 0 !important; }
