/* Gotham font family — used by enterprise training pages */

@font-face {
  font-family: 'Gotham';
  src: url('/assets/fonts/gotham/Gotham-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('/assets/fonts/gotham/Gotham-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('/assets/fonts/gotham/Gotham-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('/assets/fonts/gotham/Gotham-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('/assets/fonts/gotham/Gotham-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham Narrow';
  src: url('/assets/fonts/gotham/Gotham Narrow Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   GraphicSIMS — NewBlue NEVCO Pro Video UI Styles
   Extracted from original index.html
   Color palette from Dark.xml & style.qss
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-window:       #1b1b1b;
    --bg-panel:        #1b1b1b;
    --bg-toolbar:      #212121;
    --bg-titlebar:     #191919;
    --bg-dock-title:   #212121;
    --bg-input:        #1e1e1e;
    --bg-button:       #3a3a3a;
    --bg-preview:      #0a0a0a;
    --bg-table-header: #3a3a3a;
    --bg-table-row:    #282828;

    --border-panel:    #111111;
    --border-control:  #4e4e4e;
    --border-subtle:   #333333;

    --text-primary:    #e0e0e0;
    --text-secondary:  #b0b0b0;
    --text-muted:      #707070;
    --text-dim:        #555555;

    --accent-blue:     #1170dc;
    --accent-blue-lt:  #3a8fd4;
    --accent-green:    #2a9f45;

    --font:            "Segoe UI", system-ui, sans-serif;
    --font-mono:       "Consolas", monospace;
}

html, body {
    width: 100%; height: 100%;
    overflow: hidden;
    background: var(--bg-window);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 12px;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #666; }

/* ==================== APP SHELL ==================== */
#app {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
}
#sim-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* ==================== TITLE BAR ==================== */
#titlebar {
    display: flex;
    align-items: center;
    height: 30px;
    background: var(--bg-titlebar);
    border-bottom: 1px solid #111;
    padding: 0 6px;
    flex-shrink: 0;
}
.title-icon {
    width: 18px; height: 18px;
    background: #3a7bd5;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}
.title-icon svg { width: 12px; height: 12px; }
.title-text {
    font-size: 12px;
    color: var(--text-primary);
}
.win-controls {
    margin-left: auto;
    display: flex;
}
.win-controls button {
    width: 46px; height: 30px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
}
.win-controls button:hover { background: rgba(255,255,255,0.08); }
.win-controls button.close:hover { background: #e81123; color: #fff; }

/* ==================== MENU BAR ==================== */
#menubar {
    display: flex;
    align-items: center;
    height: 24px;
    background: var(--bg-titlebar);
    border-bottom: 1px solid #111;
    padding: 0 4px;
    flex-shrink: 0;
}
.menu-item {
    padding: 3px 10px;
    color: #dcdcdc;
    cursor: pointer;
    font-size: 12px;
}
.menu-item:hover { background: rgba(255,255,255,0.08); }

/* ==================== ICON TOOLBAR ==================== */
#icon-toolbar {
    display: flex;
    align-items: stretch;
    height: 60px;
    background: var(--bg-toolbar);
    border-bottom: 1px solid #111;
    padding: 0;
    flex-shrink: 0;
}
.icon-tb-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 20px;
    cursor: pointer;
    color: var(--text-secondary);
    border: none;
    background: transparent;
    gap: 2px;
    min-width: 56px;
    font-family: var(--font);
}
.icon-tb-btn:hover { background: #343434; }
.icon-tb-btn .tb-icon { width: 16px; height: 16px; position: relative; display: flex; align-items: center; justify-content: center; }
.icon-tb-btn .tb-icon img { width: 16px; height: 16px; object-fit: contain; }
.icon-tb-btn .tb-icon .icon-hover { display: none; }
.icon-tb-btn:hover .tb-icon .icon-default { display: none; }
.icon-tb-btn:hover .tb-icon .icon-hover { display: block; }
.icon-tb-btn .tb-label { font-size: 12px; color: #dcdcdc; white-space: nowrap; }
.tb-separator {
    width: 1px;
    background: #444;
    margin: 8px 4px;
    align-self: stretch;
}
.workspace-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    gap: 4px;
}
.toggle-row {
    display: flex;
    border: 1px solid #555;
    border-radius: 3px;
    overflow: hidden;
}
.toggle-btn {
    padding: 1px 24px;
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-button);
    border: none;
    cursor: pointer;
    font-family: var(--font);
}
.toggle-btn.active {
    background: #555;
    color: var(--text-primary);
}
.toggle-btn:hover { background: #4a4a4a; }
.ws-label { font-size: 9px; color: #f1f1f1; }

.tb-spacer { flex: 1; }

.tb-right-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 10px;
}
.tb-app-sys {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}
.tb-app-label, .tb-sys-label {
    font-size: 8px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    line-height: 1.1;
}
.tb-meters {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.tb-meter-bar {
    width: 28px;
    height: 6px;
    background: #1a1a1a;
    border-radius: 1px;
    border: 1px solid #333;
}
.start-streaming-btn {
    padding: 4px 12px;
    font-size: 11px;
    color: var(--text-primary);
    background: var(--accent-blue);
    border: 1px solid #0d5bb5;
    border-radius: 3px;
    cursor: pointer;
    font-family: var(--font);
    white-space: nowrap;
}
.start-streaming-btn:hover { background: #1580f0; }

/* ==================== WORKSPACE ==================== */
#workspace {
    flex: 1;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    background: var(--bg-window);
    position: relative;
}
.ws-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
}

.ws-row {
    display: flex;
    min-height: 0;
}
.ws-row.top { flex: 1.2; }
.ws-row.bottom { flex: 0.8; }
.ws-divider {
    height: 3px;
    background: transparent;
    flex-shrink: 0;
    cursor: ns-resize;
    position: relative;
}
.ws-divider:hover { background: #333; }
.ws-divider::after {
    content: '';
    position: absolute;
    inset: -3px 0;
}

/* ==================== PANEL ==================== */
.panel {
    display: flex;
    flex-direction: column;
    background: var(--bg-panel);
    border: 1px solid var(--border-panel);
    overflow: hidden;
    min-width: 0;
    min-height: 0;
    position: relative;
}

.panel-header {
    display: flex;
    align-items: center;
    height: 24px;
    min-height: 24px;
    background: linear-gradient(to bottom, #2b2b2b, #1f1f1f);
    padding: 0 8px;
    gap: 4px;
    user-select: none;
}
.panel-title {
    font-size: 11px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.panel-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}
.panel-actions {
    margin-left: auto;
    display: flex;
    gap: 1px;
    flex-shrink: 0;
}
.panel-btn {
    width: 20px; height: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border-radius: 2px;
}
.panel-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }

.panel-body {
    flex: 1;
    overflow: auto;
    position: relative;
}

/* ==================== PREVIEW & PROGRAM MONITOR ==================== */
.preview-area {
    flex: 1;
    background: #232323;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
}
.preview-canvas {
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 100%;
    background: #000;
    border: 1px solid #222;
    position: relative;
    overflow: hidden;
    cursor: grab;
    box-sizing: border-box;
}
.preview-canvas:active { cursor: grabbing; }
.preview-canvas.checkerboard {
    background-color: #828282;
    background-image:
        linear-gradient(45deg, #969696 25%, transparent 25%),
        linear-gradient(-45deg, #969696 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #969696 75%),
        linear-gradient(-45deg, transparent 75%, #969696 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.preview-bottom-bar {
    height: 22px;
    min-height: 22px;
    background: var(--bg-panel);
    border-top: 1px solid #111;
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 8px;
}
.preview-bottom-bar .link-btn {
    font-size: 10px;
    color: var(--text-muted);
    background: #333;
    border: 1px solid #444;
    border-radius: 2px;
    padding: 1px 8px;
    cursor: pointer;
}
.preview-bottom-bar .link-btn:hover { border-color: #666; }
.preview-bottom-bar .prio-spacer { flex: 1; }
.preview-bottom-bar .pvw-action-btn {
    font-size: 10px;
    color: var(--text-muted);
    background: #333;
    border: 1px solid #444;
    border-radius: 2px;
    padding: 1px 10px;
    cursor: pointer;
    font-family: var(--font);
}
.preview-bottom-bar .pvw-action-btn:hover { border-color: #666; color: var(--text-primary); }

/* Program monitor right-side vertical meter */
.monitor-sidebar {
    width: 32px;
    min-width: 32px;
    background: var(--bg-panel);
    border-left: 1px solid #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 0;
}
.monitor-sidebar .m-label {
    font-size: 8px;
    color: var(--text-dim);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.monitor-sidebar .m-scale {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
}
.monitor-sidebar .m-tick {
    font-size: 8px;
    color: var(--text-dim);
    font-family: var(--font-mono);
}
.monitor-sidebar .m-slider {
    width: 4px;
    flex: 1;
    background: #1a1a1a;
    border-radius: 2px;
    margin: 4px 0;
    position: relative;
}
.monitor-sidebar .m-slider::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 40%;
    width: 12px; height: 6px;
    background: #888;
    border-radius: 3px;
}

.program-bottom-bar {
    height: 24px;
    min-height: 24px;
    background: var(--bg-panel);
    border-top: 1px solid #111;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 8px;
    gap: 6px;
}
.monitor-combo {
    font-size: 10px;
    color: var(--text-muted);
    background: #333;
    border: 1px solid #444;
    border-radius: 2px;
    padding: 1px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}
.monitor-combo .dd { font-size: 7px; }
.monitor-combo:hover { border-color: #666; }
.monitor-combo.active { color: var(--accent-blue); border-color: var(--accent-blue); }
.pgm-btn {
    width: 20px; height: 18px;
    background: #333;
    border: 1px solid #444;
    border-radius: 2px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pgm-btn:hover { border-color: #666; }

/* Program canvas active state */
.preview-canvas.program-active { background: #000; }

/* Program zone containers — positioned inside program canvas.
   !important prevents .template-viewport (loaded later) from overriding position. */
.pgm-zone {
    position: absolute !important;
    overflow: hidden;
}
/* Template inside a zone fills the entire zone area */
.pgm-zone .template-viewport {
    width: 100% !important;
    height: 100% !important;
}

/* Monitor dropdown */
.monitor-dropdown {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    min-width: 120px;
}
.monitor-dropdown-item {
    padding: 4px 12px;
    font-size: 11px;
    color: var(--text-secondary);
    cursor: pointer;
}
.monitor-dropdown-item:hover { background: rgba(255,255,255,0.06); }
.monitor-dropdown-item.active { color: var(--accent-blue); }

/* ==================== GRAPHICS LIBRARY ==================== */
.graphics-library { flex: 0 0 220px; }

.lib-nav {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    gap: 6px;
    background: var(--bg-panel);
    border-bottom: 1px solid #1a1a1a;
}
.lib-back-btn {
    width: 22px; height: 22px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.lib-back-btn:hover:not(.disabled) { background: rgba(255,255,255,0.08); }
.lib-back-btn.disabled { opacity: 0.3; cursor: default; }
.lib-nav-title {
    font-size: 12px;
    color: var(--text-primary);
}

.lib-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    padding: 10px 12px;
}
.lib-folder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.folder-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 3px;
}
.folder-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.folder-thumb .icon-hover { display: none; }
.lib-folder:hover .folder-thumb .icon-default { display: none; }
.lib-folder:hover .folder-thumb .icon-hover { display: block; }
.folder-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-align: center;
}
.lib-folder:hover .folder-label { color: #f1f1f1; }

/* Template items (inside folders) */
.lib-template {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    border: 1px solid transparent;
}
.lib-template:hover { background: rgba(255,255,255,0.04); }
.lib-template.selected {
    border-color: var(--accent-blue);
    background: rgba(17,112,220,0.12);
}
.lib-template.dragging { opacity: 0.5; }
.template-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #282828;
    border: 1px solid #333;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.template-icon { font-size: 20px; opacity: 0.5; }

/* SVG template thumbnails */
.template-thumb-svg {
    width: 100%;
    height: 100%;
    position: relative;
}
.template-thumb-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Layer-based template thumbnails */
.template-thumb-layers {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.template-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}
.lib-template:hover .template-label { color: #f1f1f1; }

/* List view mode */
.lib-grid.lib-list {
    grid-template-columns: 1fr;
    gap: 2px;
}
.lib-list .lib-folder,
.lib-list .lib-template {
    flex-direction: row;
    gap: 8px;
    padding: 2px 4px;
}
.lib-list .folder-thumb,
.lib-list .template-thumb {
    width: 32px;
    height: 24px;
    aspect-ratio: auto;
    flex-shrink: 0;
}
.lib-list .folder-thumb img { width: 28px; height: 24px; }
.lib-list .template-icon { font-size: 12px; }
.lib-list .folder-label,
.lib-list .template-label { text-align: left; }

.lib-bottom-bar {
    height: 24px;
    min-height: 24px;
    background: var(--bg-panel);
    border-top: 1px solid #111;
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 4px;
}
.lib-view-btn {
    width: 22px; height: 20px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 2px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.lib-view-btn:hover { background: rgba(255,255,255,0.06); }
.lib-view-btn.active { color: var(--text-primary); }

/* ==================== PROJECT TABLE ==================== */
.project-panel { flex: 1; min-width: 580px; }

.project-tabs {
    display: flex;
    background: var(--bg-panel);
    border-bottom: 1px solid #111;
}
.project-tab {
    padding: 4px 14px;
    font-size: 11px;
    color: var(--text-secondary);
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    background: transparent;
}
.project-tab.active {
    background: #2b2b2b;
    border-color: #555;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    color: var(--text-primary);
}

.project-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    table-layout: fixed;
}
.project-table thead th {
    background: linear-gradient(to bottom, #2b2b2b, #1f1f1f);
    color: var(--text-secondary);
    font-weight: 400;
    text-align: left;
    padding: 5px 10px;
    border-bottom: 1px solid #222;
    border-right: 1px solid #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}
.project-table thead th.col-resizable {
    cursor: default;
}
.project-table .th-resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    cursor: col-resize;
    z-index: 1;
}
.project-table tbody td {
    padding: 5px 10px;
    border-bottom: 1px solid #1a1a1a;
    color: var(--text-muted);
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.project-table .col-preview {
    padding: 2px 6px;
}
.project-table tbody tr { cursor: pointer; }
.project-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.project-table tbody tr.selected { background: rgba(17,112,220,0.18); }
.project-table tbody tr.selected td { color: var(--text-primary); }
.project-table tbody tr.previewing td:first-child { border-left: 2px solid var(--accent-blue); }
/* Project thumbnail preview */
.project-thumb {
    width: 120px;
    height: 34px;
    overflow: hidden;
    position: relative;
    background: #181818;
    border-radius: 2px;
    border: 1px solid #333;
}
.project-thumb .template-viewport {
    width: 100%;
    height: 100%;
}

/* Play button column */
.col-play-header {
    width: 32px;
    min-width: 32px;
}
.col-play {
    width: 32px;
    min-width: 32px;
    text-align: center;
    padding: 0 4px !important;
}
.project-play-btn {
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-play-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.project-play-btn .play-icon-on { display: none; }
.project-play-btn.active .play-icon-off { display: none; }
.project-play-btn.active .play-icon-on { display: block; }
.project-play-btn:hover { background: rgba(255,255,255,0.06); }

.project-table .empty-row td { cursor: default; }
.project-table .empty-row:hover { background: none; }

/* Drop hover for project panel */
.project-panel .panel-body.drop-hover {
    background: rgba(17,112,220,0.08);
    outline: 1px dashed var(--accent-blue);
    outline-offset: -2px;
}

/* Channel tab additions */
.project-tab-add {
    color: var(--text-dim) !important;
    font-size: 11px;
    padding: 4px 10px !important;
    white-space: nowrap;
}
.project-tab-add:hover { color: var(--text-secondary) !important; }
.project-tabs-spacer { flex: 1; }
.project-size-all-btn {
    font-size: 10px;
    color: var(--text-dim);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    font-family: var(--font);
    white-space: nowrap;
}
.project-size-all-btn:hover { color: var(--text-secondary); }
.channel-rename-input {
    background: var(--bg-input);
    border: 1px solid var(--accent-blue);
    color: var(--text-primary);
    font-size: 11px;
    padding: 1px 4px;
    width: 80px;
    outline: none;
    font-family: var(--font);
}

.project-bottom-bar {
    height: 26px;
    min-height: 26px;
    background: var(--bg-panel);
    border-top: 1px solid #111;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    gap: 8px;
}
.add-item-btn {
    padding: 2px 16px;
    font-size: 11px;
    color: var(--text-secondary);
    background: #3a3a3a;
    border: 1px solid #555;
    border-radius: 2px;
    cursor: pointer;
    font-family: var(--font);
}
.add-item-btn:hover { background: #4a4a4a; }
.trash-btn {
    width: 24px; height: 22px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.trash-btn:hover { color: var(--text-secondary); }

/* ==================== SHOT LAUNCHER ==================== */
.shot-launcher { flex: 1; }

.shot-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shot-empty-text {
    font-size: 12px;
    color: var(--text-dim);
}

.shot-bottom-bar {
    height: 26px;
    min-height: 26px;
    background: var(--bg-panel);
    border-top: 1px solid #111;
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 4px;
}
.shot-bar-btn {
    width: 22px; height: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shot-bar-btn:hover { color: var(--text-secondary); }
.shot-zoom {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0 4px;
}
.shot-zoom .dot {
    width: 5px; height: 5px;
    background: #555;
    border-radius: 50%;
}
.shot-zoom .dot.active { background: var(--text-secondary); }
.shot-zoom-line {
    width: 40px; height: 2px;
    background: #444;
    border-radius: 1px;
    position: relative;
}
.shot-zoom-line::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -3px;
    width: 8px; height: 8px;
    background: #888;
    border-radius: 50%;
    transform: translateX(-50%);
}
.shot-edit-btn {
    padding: 1px 10px;
    font-size: 10px;
    color: var(--text-secondary);
    background: #3a3a3a;
    border: 1px solid #555;
    border-radius: 2px;
    cursor: pointer;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font);
}
.shot-edit-btn:hover { background: #4a4a4a; }

/* Shot grid & cards */
.shot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
    align-content: flex-start;
}
.shot-card {
    width: var(--shot-size, 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    padding: 3px;
    border: 1px solid transparent;
    border-radius: 3px;
}
.shot-card:hover { background: rgba(255,255,255,0.04); }
.shot-card.selected {
    border-color: var(--accent-blue);
    background: rgba(17,112,220,0.12);
}
.shot-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #282828;
    border: 1px solid #333;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shot-card-icon {
    font-size: 16px;
    color: var(--text-dim);
}
.shot-card:hover .shot-card-icon { color: var(--accent-green); }
.shot-card-name {
    font-size: 9px;
    color: var(--text-secondary);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* Drop hover for shot launcher */
.shot-launcher .panel-body.drop-hover {
    background: rgba(17,112,220,0.08);
    outline: 1px dashed var(--accent-blue);
    outline-offset: -2px;
}

/* ==================== PROPERTIES PANEL ==================== */
.properties { flex: 1; }

/* ==================== STATUS BAR ==================== */
#statusbar {
    height: 20px;
    background: #222;
    border-top: 1px solid #111;
    display: flex;
    align-items: center;
    padding: 0 8px;
    flex-shrink: 0;
}

/* ==================== MODAL / DIALOG ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal-dialog {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    min-width: 480px;
    max-width: 640px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}
.modal-header {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #333;
    background: linear-gradient(to bottom, #333, #2a2a2a);
    border-radius: 6px 6px 0 0;
}
.modal-title {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
}
.modal-close {
    margin-left: auto;
    width: 24px; height: 24px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.modal-body {
    padding: 12px 14px;
    overflow-y: auto;
    flex: 1;
}

/* Data Link Dialog specific */
.dl-section { margin-bottom: 12px; }
.dl-section-title {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.dl-divider { height: 1px; background: #333; margin: 8px 0; }
.dl-empty { font-size: 11px; color: var(--text-dim); padding: 8px 0; }
.dl-btn {
    padding: 3px 10px;
    font-size: 11px;
    color: var(--text-secondary);
    background: #3a3a3a;
    border: 1px solid #555;
    border-radius: 3px;
    cursor: pointer;
    font-family: var(--font);
    margin-right: 4px;
}
.dl-btn:hover { background: #4a4a4a; }
.dl-source-item {
    background: #222;
    border: 1px solid #333;
    border-radius: 3px;
    padding: 6px 8px;
    margin-bottom: 4px;
}
.dl-source-header {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dl-source-name { font-size: 11px; color: var(--text-primary); font-weight: 600; }
.dl-source-type { font-size: 9px; color: var(--text-dim); text-transform: uppercase; }
.dl-source-remove {
    margin-left: auto;
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 14px;
}
.dl-source-remove:hover { color: #e55; }
.dl-source-info { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.dl-source-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 10px;
    color: var(--text-muted);
}
.dl-source-nav button {
    width: 20px; height: 18px;
    background: #3a3a3a;
    border: 1px solid #555;
    border-radius: 2px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 10px;
}
.dl-source-nav button:hover { background: #4a4a4a; }
.dl-link-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    font-size: 11px;
    color: var(--text-secondary);
    background: #222;
    border-radius: 3px;
    margin-bottom: 2px;
}
.dl-link-arrow { color: var(--accent-blue); }
.dl-link-remove {
    margin-left: auto;
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
}
.dl-link-remove:hover { color: #e55; }
.dl-link-form {
    background: #1e1e1e;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 8px;
    margin-top: 6px;
}
.dl-form-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.dl-form-row label {
    font-size: 11px;
    color: var(--text-secondary);
    min-width: 80px;
}
.dl-select {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid #3a3a3a;
    border-radius: 2px;
    color: var(--text-primary);
    font-size: 11px;
    padding: 2px 4px;
    font-family: var(--font);
}
.dl-form-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    justify-content: flex-end;
}
.dl-source-actions, .dl-link-actions { margin-top: 6px; }

/* ==================== UTILITY ==================== */
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

/* ==================== PANEL DIVIDERS ==================== */
.panel-divider-v {
    width: 3px;
    background: transparent;
    flex-shrink: 0;
    cursor: ew-resize;
    position: relative;
}
.panel-divider-v:hover { background: #333; }
.panel-divider-v::after {
    content: '';
    position: absolute;
    inset: 0 -3px;
}
.panel-divider-h {
    height: 3px;
    background: transparent;
    flex-shrink: 0;
    cursor: ns-resize;
    position: relative;
}
.panel-divider-h:hover { background: #333; }
.panel-divider-h::after {
    content: '';
    position: absolute;
    inset: -3px 0;
}

/* Resize cursors applied to body during drag */
body.resizing-h { cursor: ew-resize !important; }
body.resizing-h * { cursor: ew-resize !important; }
body.resizing-v { cursor: ns-resize !important; }
body.resizing-v * { cursor: ns-resize !important; }
body.resizing-h, body.resizing-v { user-select: none; }

/* Panel docking drag-drop */
.panel[draggable="true"] .panel-header { cursor: grab; }
.panel[draggable="true"] .panel-header:active { cursor: grabbing; }
.panel.panel-dragging { opacity: 0.4; outline: 1px dashed var(--text-dim); }
.panel.panel-drop-target { outline: 2px solid var(--accent-blue); outline-offset: -2px; }
.panel.panel-drop-target::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(17, 112, 220, 0.08);
    pointer-events: none;
    z-index: 10;
}
.panel.panel-drop-locked { outline: 1px solid rgba(255, 60, 60, 0.3); }
body.panel-docking .panel-body,
body.panel-docking .preview-area { pointer-events: none; }
body.panel-docking { user-select: none; }

/* Edge-drop indicators for panel insert-next-to */
.panel.panel-drop-left::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--accent-blue);
    pointer-events: none;
    z-index: 10;
}
.panel.panel-drop-right::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--accent-blue);
    pointer-events: none;
    z-index: 10;
}

/* Full-height dock indicators on workspace edges */
#workspace.ws-drop-left::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--accent-blue);
    pointer-events: none;
    z-index: 20;
}
#workspace.ws-drop-right::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--accent-blue);
    pointer-events: none;
    z-index: 20;
}

/* ==================== VIDEO SWITCHER STUB ==================== */
.switcher-panel { flex: 1; }
.switcher-stub {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.switcher-fader-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.switcher-fader-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.switcher-fader-track {
    width: 6px;
    height: 80px;
    background: #1a1a1a;
    border-radius: 3px;
    position: relative;
    border: 1px solid #333;
}
.switcher-fader-thumb {
    position: absolute;
    left: -5px;
    top: 10%;
    width: 16px;
    height: 8px;
    background: #888;
    border-radius: 3px;
}
.switcher-bottom-bar {
    height: 28px;
    min-height: 28px;
    background: var(--bg-panel);
    border-top: 1px solid #111;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    gap: 4px;
}
.switcher-bar-btn {
    padding: 2px 10px;
    font-size: 10px;
    color: var(--text-secondary);
    background: #3a3a3a;
    border: 1px solid #555;
    border-radius: 2px;
    cursor: pointer;
    font-family: var(--font);
}
.switcher-bar-btn:hover { background: #4a4a4a; }

/* ==================== AUDIO MIXER STUB ==================== */
.audio-panel { flex: 1; }
.audio-stub {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.audio-fader-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.audio-fader-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.audio-fader-track {
    width: 6px;
    height: 80px;
    background: #1a1a1a;
    border-radius: 3px;
    position: relative;
    border: 1px solid #333;
}
.audio-fader-thumb {
    position: absolute;
    left: -5px;
    top: 30%;
    width: 16px;
    height: 8px;
    background: #888;
    border-radius: 3px;
}

/* ==================== DATA PANEL STUB ==================== */
.data-panel { flex: 1; }
.data-stub {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.data-stub-text {
    font-size: 11px;
    color: var(--text-dim);
}

/* ==================== PROPERTIES PANEL ==================== */
/* Reference: assets/screenshots/Properties Tab Bottom Score.JPG */

.props-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-dim);
    font-size: 11px;
}

.props-header {
    padding: 6px 10px;
    border-bottom: 1px solid #222;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.props-item-name {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 700;
}
.props-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.props-show-all {
    font-size: 10px;
    color: var(--text-muted);
    cursor: pointer;
}
.props-show-all:hover { color: var(--text-secondary); }
.props-show-all-dot {
    font-size: 8px;
    color: var(--text-dim);
}
.props-header-btn {
    padding: 2px 8px;
    font-size: 10px;
    color: var(--text-muted);
    background: #333;
    border: 1px solid #444;
    border-radius: 2px;
    cursor: pointer;
    font-family: var(--font);
    white-space: nowrap;
}
.props-header-btn:hover { border-color: #666; color: var(--text-secondary); }
.props-header-btn.active {
    background: var(--accent-blue);
    border-color: #0d5bb5;
    color: #fff;
}

/* Tabs */
.props-tabs {
    display: flex;
    border-bottom: 1px solid #222;
    background: #1a1a1a;
}
.props-tab {
    padding: 4px 10px;
    font-size: 10px;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font);
}
.props-tab:hover { color: var(--text-secondary); }
.props-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-blue);
}

/* Content */
.props-content {
    padding: 4px 0;
    overflow-y: auto;
    flex: 1;
}

/* Field groups */
.props-group {
    margin-bottom: 4px;
}
.props-group-header {
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px 2px;
    background: #1a1a1a;
    border-bottom: 1px solid #222;
}

/* Field rows — matches NEVCO Properties layout */
.props-field-row {
    display: flex;
    align-items: center;
    padding: 5px 8px;
    gap: 6px;
    min-height: 32px;
}
.props-field-row:hover { background: rgba(255,255,255,0.03); }
.props-field-row.readonly { opacity: 0.6; }

/* Data link indicator (small circle on far right of each field) */
.props-data-link {
    font-size: 10px;
    color: #555;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
    cursor: pointer;
}
.props-data-link:hover { color: var(--accent-blue); }

.props-label {
    font-size: 11px;
    color: var(--text-secondary);
    min-width: 110px;
    width: 110px;
    flex-shrink: 0;
    text-align: right;
    padding-right: 8px;
    font-weight: 600;
}
.props-label-color {
    font-style: italic;
}

.props-input {
    flex: 1;
    min-width: 0;
    background: var(--bg-input);
    border: 1px solid #3a3a3a;
    border-radius: 2px;
    color: var(--text-primary);
    font-size: 11px;
    padding: 4px 8px;
    font-family: var(--font);
    outline: none;
    height: 26px;
}
.props-input:focus { border-color: var(--accent-blue); }
.props-input:disabled { opacity: 0.4; }

/* Color inputs — matches NEVCO large swatch + eyedropper style */
.props-color-wrap {
    flex: 1;
    display: flex;
    gap: 6px;
    align-items: center;
}
.props-color {
    width: 50px;
    height: 28px;
    border: 1px solid #555;
    border-radius: 2px;
    padding: 0;
    cursor: pointer;
    background: none;
}
.props-color::-webkit-color-swatch-wrapper { padding: 1px; }
.props-color::-webkit-color-swatch { border: none; border-radius: 1px; }
.props-color-picker {
    font-size: 13px;
    color: var(--text-dim);
    cursor: pointer;
}
.props-color-picker:hover { color: var(--text-primary); }

/* Gradient swatch */
.props-gradient-swatch {
    width: 50px;
    height: 50px;
    border: 1px solid #555;
    border-radius: 2px;
    cursor: pointer;
}

/* Image field — thumbnail + choose button + trash + fit dropdown */
.props-image-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.props-image-thumb {
    width: 60px;
    height: 60px;
    border: 1px solid #444;
    border-radius: 2px;
    background-color: #828282;
    background-image:
        linear-gradient(45deg, #969696 25%, transparent 25%),
        linear-gradient(-45deg, #969696 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #969696 75%),
        linear-gradient(-45deg, transparent 75%, #969696 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0;
    overflow: hidden;
    flex-shrink: 0;
}
.props-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.props-image-btn {
    padding: 3px 8px;
    font-size: 10px;
    color: var(--text-secondary);
    background: #3a3a3a;
    border: 1px solid #555;
    border-radius: 2px;
    cursor: pointer;
    font-family: var(--font);
    white-space: nowrap;
}
.props-image-btn:hover { background: #4a4a4a; }
.props-image-trash {
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.props-image-trash:hover { color: var(--text-secondary); }
.props-image-fit {
    background: var(--bg-input);
    border: 1px solid #3a3a3a;
    border-radius: 2px;
    color: var(--text-primary);
    font-size: 10px;
    padding: 2px 4px;
    font-family: var(--font);
    min-width: 60px;
}

/* Select */
.props-select {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid #3a3a3a;
    border-radius: 2px;
    color: var(--text-primary);
    font-size: 11px;
    padding: 4px 8px;
    font-family: var(--font);
    outline: none;
    height: 26px;
}
.props-select:focus { border-color: var(--accent-blue); }

/* Toggle */
.props-toggle {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 16px;
}
.props-toggle input { opacity: 0; width: 0; height: 0; }
.props-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #3a3a3a;
    border-radius: 8px;
    transition: background 0.2s;
}
.props-toggle-slider::before {
    content: '';
    position: absolute;
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background: #aaa;
    border-radius: 50%;
    transition: transform 0.2s;
}
.props-toggle input:checked + .props-toggle-slider { background: var(--accent-blue); }
.props-toggle input:checked + .props-toggle-slider::before { transform: translateX(12px); background: #fff; }

/* Slider */
.props-slider {
    flex: 1;
    accent-color: var(--accent-blue);
}

/* Values Grid table */
.props-grid-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}
.props-grid-table th {
    text-align: left;
    padding: 3px 8px;
    color: var(--text-dim);
    font-weight: 400;
    border-bottom: 1px solid #222;
    font-size: 10px;
}
.props-grid-table td {
    padding: 2px 8px;
    color: var(--text-secondary);
    border-bottom: 1px solid #1a1a1a;
}
.props-grid-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid transparent;
    border-radius: 2px;
    color: var(--text-primary);
    font-size: 11px;
    padding: 1px 4px;
    font-family: var(--font);
    outline: none;
}
.props-grid-input:focus { border-color: var(--accent-blue); }

/* Preview hint */
.props-preview-hint {
    padding: 8px;
    font-size: 10px;
    color: var(--text-dim);
    font-style: italic;
}
.props-field-list { padding: 0 4px; }
.props-value-preview {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ==================== TRANSFORM TAB ==================== */
/* Reference: assets/screenshots/Zone Layouts.png */

.props-transform {
    padding: 8px 0;
}

.tf-row {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    gap: 6px;
    min-height: 32px;
}

.tf-label {
    font-size: 11px;
    color: var(--text-secondary);
    min-width: 100px;
    width: 100px;
    flex-shrink: 0;
    text-align: right;
    padding-right: 8px;
    font-weight: 600;
}

.tf-input {
    width: 72px;
    background: var(--bg-input);
    border: 1px solid #3a3a3a;
    border-radius: 2px;
    color: var(--text-primary);
    font-size: 11px;
    padding: 4px 8px;
    font-family: var(--font);
    outline: none;
    height: 26px;
}
.tf-input:focus { border-color: var(--accent-blue); }
.tf-input:disabled { opacity: 0.4; }

.tf-select {
    flex: 1;
    max-width: 160px;
    background: var(--bg-input);
    border: 1px solid #3a3a3a;
    border-radius: 2px;
    color: var(--text-primary);
    font-size: 11px;
    padding: 4px 8px;
    font-family: var(--font);
    outline: none;
    height: 26px;
}
.tf-select:focus { border-color: var(--accent-blue); }
.tf-select:disabled { opacity: 0.4; }

.tf-chain {
    font-size: 14px;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0 2px;
}
.tf-chain:hover { color: var(--text-secondary); }
.tf-chain.active { color: var(--accent-blue); }

.tf-reset-btn {
    margin-left: auto;
    padding: 3px 10px;
    font-size: 10px;
    color: var(--text-secondary);
    background: #333;
    border: 1px solid #444;
    border-radius: 2px;
    cursor: pointer;
    font-family: var(--font);
    white-space: nowrap;
}
.tf-reset-btn:hover { background: #444; border-color: #555; }

.tf-zone-btn {
    padding: 4px 12px;
    font-size: 11px;
    color: var(--text-primary);
    background: #333;
    border: 1px solid #444;
    border-radius: 2px;
    cursor: pointer;
    font-family: var(--font);
    min-width: 120px;
    text-align: left;
}
.tf-zone-btn:hover { background: #3a3a3a; border-color: #555; }

/* ==================== ZONE ASSIGNMENT POPUP ==================== */

.za-popup {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    width: 260px;
    display: flex;
    flex-direction: column;
}

.za-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #333;
    background: linear-gradient(to bottom, #333, #2a2a2a);
    border-radius: 6px 6px 0 0;
}

.za-title {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.za-add-btn {
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}
.za-add-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }

.za-diagram {
    padding: 8px 12px;
}
.za-diagram .ps-zone-container {
    width: 100%;
}

.za-zone-list {
    padding: 4px 12px;
    max-height: 200px;
    overflow-y: auto;
}

.za-zone-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    cursor: pointer;
    font-size: 11px;
}
.za-zone-row:hover { background: rgba(255,255,255,0.03); }

.za-checkbox {
    width: 13px;
    height: 13px;
    accent-color: var(--accent-blue);
    flex-shrink: 0;
}

.za-zone-name {
    color: var(--text-secondary);
    flex: 1;
}

.za-zone-id {
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 10px;
}

.za-footer {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #333;
}

.za-cancel {
    padding: 4px 14px;
    font-size: 10px;
    font-family: var(--font);
    border-radius: 2px;
    cursor: pointer;
    border: 1px solid #444;
    background: #333;
    color: var(--text-secondary);
}
.za-cancel:hover { background: #444; }

.za-okay {
    padding: 4px 14px;
    font-size: 10px;
    font-family: var(--font);
    border-radius: 2px;
    cursor: pointer;
    border: 1px solid #0d5bb5;
    background: var(--accent-blue);
    color: #fff;
    font-weight: 600;
}
.za-okay:hover { background: #0d5bb5; }

/* ==================== PROPERTIES / SCOREBIRD PANEL TABS ==================== */

.props-panel-tabs {
    display: flex;
    background: #191919;
    border-bottom: 1px solid #333;
    padding: 0;
    gap: 0;
}
.props-panel-tab {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 11px;
    padding: 6px 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.props-panel-tab:hover { color: var(--text-secondary); }
.props-panel-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-blue);
    background: rgba(255,255,255,0.04);
}

/* ==================== SCOREBIRD PANEL ==================== */

.sb-panel {
    padding: 10px 12px;
    font-size: 11px;
    color: var(--text-secondary);
    overflow-y: auto;
    height: 100%;
}

.sb-header-label {
    color: var(--text-dim);
    font-size: 11px;
    margin-bottom: 2px;
}
.sb-subtitle {
    color: var(--text-dim);
    font-size: 10px;
    margin-bottom: 12px;
}

.sb-section-title {
    color: #8a8a8a;
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 10px;
}

.sb-settings-box {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 12px;
}

.sb-box-title {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 10px;
}

.sb-recent-row {
    margin-bottom: 14px;
}

.sb-form {
    margin-bottom: 10px;
}
.sb-form-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sb-form-label {
    color: var(--text-dim);
    font-size: 11px;
    width: 160px;
    flex-shrink: 0;
}
.sb-form-input {
    flex: 1;
    background: #111;
    border: 1px solid #444;
    border-radius: 3px;
    color: var(--text-primary);
    font-size: 11px;
    padding: 5px 8px;
    outline: none;
}
.sb-form-input:focus { border-color: var(--accent-blue); }
.sb-form-hint {
    color: var(--accent-green);
    font-size: 10px;
    margin-top: 3px;
    padding-left: 170px;
}

.sb-dropdown-label {
    display: none;
}
.sb-select {
    width: 100%;
    background: #111;
    border: 1px solid #444;
    border-radius: 3px;
    color: var(--text-primary);
    font-size: 11px;
    padding: 5px 8px;
    margin-bottom: 12px;
}

.sb-api-key-display {
    color: var(--text-dim);
    font-size: 11px;
    font-style: italic;
    padding: 5px 0;
}

.sb-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.sb-btn {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 3px;
    color: var(--text-secondary);
    font-size: 11px;
    padding: 5px 14px;
    cursor: pointer;
}
.sb-btn:hover { background: #333; color: var(--text-primary); }

.sb-connect-btn {
    background: #1a1a1a;
    border-color: #555;
}
.sb-connect-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

.sb-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

/* ── Live Data View ────────────────────────────────── */

.sb-live-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
}

.sb-status {
    font-size: 11px;
    font-weight: 600;
}
.sb-connected { color: #2a9f45; }
.sb-disconnected { color: #cc3333; }

.sb-data-table-wrap {
    background: #111;
    border: 1px solid #333;
    border-radius: 3px;
    overflow: auto;
    max-height: 400px;
    margin-bottom: 8px;
}

.sb-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}
.sb-data-table th {
    background: #1a1a1a;
    color: var(--text-dim);
    font-weight: 600;
    padding: 4px 8px;
    text-align: left;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1;
}
.sb-data-table td {
    padding: 3px 8px;
    border-bottom: 1px solid #1e1e1e;
    color: var(--text-secondary);
}

.sb-th-lock { width: 36px; text-align: center; }
.sb-th-arrow { width: 24px; text-align: center; }
.sb-lock { text-align: center; }
.sb-lock-cb { accent-color: var(--accent-blue); }
.sb-arrow { text-align: center; color: var(--text-dim); }
.sb-nest-var { color: var(--text-dim); }
.sb-our-var { color: var(--text-dim); }

/* Yellow highlight for rows receiving live updates */
.sb-data-row.sb-highlight {
    background: rgba(218, 195, 0, 0.35) !important;
}
.sb-data-row.sb-highlight td {
    color: #fff;
}

.sb-empty {
    text-align: center;
    color: var(--text-dim);
    padding: 20px !important;
}

.sb-live-footer {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 4px;
}

.sb-tab-content {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* ==================== TEMPLATE RENDERER ==================== */

.template-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.template-inner {
    position: absolute;
    overflow: hidden;
}

.tpl-layer {
    position: absolute;
    pointer-events: none;
    overflow: hidden;
}

.tpl-text {
    white-space: nowrap;
    line-height: 1.2;
    font-family: "Segoe UI", system-ui, sans-serif;
    letter-spacing: 0.5px;
}

.tpl-image img {
    display: block;
}

/* Transition animations */
.tpl-transition-fade-in {
    animation: tplFadeIn var(--transition-duration, 500ms) ease-out forwards;
}
.tpl-transition-fade-out {
    animation: tplFadeOut var(--transition-duration, 500ms) ease-out forwards;
}
.tpl-transition-dissolve-in {
    animation: tplFadeIn var(--transition-duration, 500ms) ease-in-out forwards;
}
.tpl-transition-push-left {
    animation: tplPushLeft var(--transition-duration, 500ms) ease-out forwards;
}
.tpl-transition-push-right {
    animation: tplPushRight var(--transition-duration, 500ms) ease-out forwards;
}

@keyframes tplFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes tplFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
@keyframes tplPushLeft {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
@keyframes tplPushRight {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* ==================== MENU DROPDOWNS ==================== */

.menu-item.active {
    background: rgba(255,255,255,0.12);
}

.menu-dropdown {
    background: #232323;
    border: 1px solid #444;
    border-radius: 3px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    min-width: 200px;
    padding: 4px 0;
}
.menu-dropdown-item {
    padding: 4px 12px 4px 4px;
    font-size: 11px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    height: 22px;
}
.menu-dropdown-item:hover { background: var(--accent-blue); color: #fff; }
.menu-dropdown-item.disabled {
    color: var(--text-dim);
    cursor: default;
}
.menu-dropdown-item.disabled:hover { background: transparent; color: var(--text-dim); }
/* Not-implemented items — muted gray to indicate no coded logic yet.
   Once functionality is wired up, add `implemented: true` in menuSystem.ts
   to restore the item to normal white text. */
.menu-dropdown-item.not-implemented {
    color: #666;
}
.menu-dropdown-item.not-implemented:hover { background: var(--accent-blue); color: #aaa; }
.menu-dropdown-item.not-implemented .menu-check { color: #666; }
.menu-dropdown-item.not-implemented:hover .menu-check { color: #aaa; }
.menu-check {
    width: 16px;
    font-size: 11px;
    text-align: center;
    flex-shrink: 0;
    color: var(--text-secondary);
}
.menu-check-spacer {
    width: 16px;
    flex-shrink: 0;
}
.menu-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}
.menu-dropdown-item:hover .menu-check { color: #fff; }
.menu-label { flex: 1; }
.menu-shortcut {
    color: var(--text-dim);
    font-size: 10px;
    margin-left: 20px;
    flex-shrink: 0;
}
.menu-dropdown-item:hover .menu-shortcut { color: rgba(255,255,255,0.6); }
.menu-submenu-arrow {
    font-size: 7px;
    color: var(--text-dim);
    margin-left: 12px;
    flex-shrink: 0;
}
.menu-dropdown-item:hover .menu-submenu-arrow { color: rgba(255,255,255,0.6); }
.menu-separator {
    height: 1px;
    background: #3a3a3a;
    margin: 3px 8px;
}

/* ==================== CONTEXT MENUS ==================== */

.context-menu {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 3px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    min-width: 160px;
    padding: 4px 0;
}
.ctx-item {
    padding: 4px 16px 4px 8px;
    font-size: 11px;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}
.ctx-item:hover { background: var(--accent-blue); color: #fff; }
.ctx-item.disabled {
    color: var(--text-dim);
    cursor: default;
}
.ctx-item.disabled:hover { background: transparent; color: var(--text-dim); }
.ctx-item.has-submenu { padding-right: 24px; }
.ctx-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}
.ctx-label { flex: 1; }
.ctx-arrow {
    position: absolute;
    right: 8px;
    font-size: 9px;
    color: var(--text-dim);
}
.ctx-item:hover .ctx-arrow { color: #fff; }
.ctx-separator {
    height: 1px;
    background: #3a3a3a;
    margin: 3px 8px;
}

/* ==================== PROJECT SETTINGS DIALOG ==================== */
/* Reference: assets/screenshots/Project-Settings.png */

.ps-dialog {
    min-width: 460px;
    max-width: 480px;
    max-height: 58vh;
    background: #141414;
    border-color: #333;
}
.ps-dialog .modal-header {
    gap: 6px;
    padding: 7px 10px;
    background: linear-gradient(to bottom, #333, #282828);
    border-bottom: 1px solid #222;
}
.ps-dialog .modal-title {
    font-size: 11px;
    color: #f1f1f1;
}

/* Display Preset band — dark strip below title bar */
.ps-display-preset {
    background: #010101;
    margin: 0 -14px;
    padding: 8px 14px;
    margin-bottom: 0;
}
.ps-dialog .modal-close {
    width: 20px;
    height: 20px;
    font-size: 14px;
}
.ps-icon {
    width: 16px;
    height: 16px;
}
.ps-body {
    padding: 11px 14px;
}

/* Row layout — Display Preset / Layout Preset rows */
.ps-row {
    display: flex;
    align-items: center;
    margin-bottom: 7px;
    gap: 6px;
}
.ps-label {
    font-size: 10px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Video Format form — right-aligned labels matching reference screenshot */
.ps-form {
    margin-bottom: 3px;
}
.ps-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    gap: 6px;
}
.ps-form-label {
    font-size: 10px;
    color: var(--text-secondary);
    white-space: nowrap;
    width: 90px;
    text-align: right;
    flex-shrink: 0;
}
.ps-form-label-mid {
    font-size: 10px;
    color: var(--text-secondary);
    white-space: nowrap;
    margin-left: 12px;
}

/* Inputs */
.ps-select {
    flex: 1;
    background: var(--bg-input, #2a2a2a);
    border: 1px solid #3a3a3a;
    border-radius: 2px;
    color: var(--text-primary);
    font-size: 10px;
    padding: 3px 6px;
    font-family: var(--font);
    height: 22px;
}
.ps-select:focus { border-color: var(--accent-blue); outline: none; }

.ps-input {
    width: 56px;
    background: var(--bg-input, #2a2a2a);
    border: 1px solid #3a3a3a;
    border-radius: 2px;
    color: var(--text-primary);
    font-size: 10px;
    padding: 3px 6px;
    font-family: var(--font);
    height: 22px;
}
.ps-input:focus { border-color: var(--accent-blue); outline: none; }

.ps-checkbox {
    width: 13px;
    height: 13px;
    accent-color: var(--accent-blue);
}

.ps-browse-btn {
    width: 22px;
    height: 22px;
    background: #333;
    border: 1px solid #444;
    border-radius: 2px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ps-browse-btn:hover { background: #444; border-color: #555; }

/* Dividers */
.ps-divider {
    border: none;
    border-top: 1px solid #222;
    margin: 10px 0;
}

/* Section titles */
.ps-section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px 0;
}

/* Zone diagram — styled like Preview/Program panels */
.ps-zone-diagram {
    margin-bottom: 10px;
}
.ps-zone-container {
    position: relative;
    width: 75%;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: #1d1d1d;
    border: 1px solid #333;
    border-radius: 2px;
    overflow: hidden;
}
/* Zones fill the entire 16:9 container */
.ps-zone-area {
    position: absolute;
    inset: 0;
}
.ps-zone {
    position: absolute;
    box-sizing: border-box;
    border: 1px solid rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ps-zone-num {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #000000;
    padding: 1px 4px;
    border-radius: 2px;
    line-height: 1.2;
}

/* Footer */
.ps-footer {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    padding: 8px 14px;
    border-top: 1px solid #222;
}
.ps-btn {
    padding: 4px 12px;
    font-size: 10px;
    font-family: var(--font);
    border-radius: 2px;
    cursor: pointer;
    border: 1px solid #444;
}
.ps-cancel {
    background: #333;
    color: var(--text-secondary);
}
.ps-cancel:hover { background: #444; }
.ps-save {
    background: var(--accent-blue);
    border-color: #0d5bb5;
    color: #fff;
    font-weight: 600;
}
.ps-save:hover { background: #0d5bb5; }

/* ==================== SUBMENU SUPPORT ==================== */
.menu-dropdown-item.has-submenu { position: relative; }
.menu-submenu {
    position: fixed;
    background: #232323;
    border: 1px solid #444;
    border-radius: 3px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    min-width: 180px;
    padding: 4px 0;
    z-index: 1501;
}

/* ==================== FILE DIALOG ==================== */
/* Simulated Windows Explorer — dark theme matching the app */

.fd-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fd-dialog {
    width: 740px;
    max-width: 90vw;
    max-height: 75vh;
    background: #1e1e1e;
    border: 1px solid #444;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

/* Title bar */
.fd-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    background: linear-gradient(to bottom, #333, #282828);
    border-bottom: 1px solid #222;
    flex-shrink: 0;
}
.fd-titlebar-text {
    font-size: 12px;
    color: #f1f1f1;
    font-weight: 400;
}
.fd-close {
    width: 22px;
    height: 22px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    line-height: 1;
}
.fd-close:hover { background: #c42b1c; color: #fff; }

/* Decorative toolbar */
.fd-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 12px;
    background: #252525;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}
.fd-toolbar-btn {
    font-size: 10px;
    color: #666;
    background: none;
    border: none;
    cursor: default;
    padding: 2px 6px;
}

/* Breadcrumb nav */
.fd-breadcrumb {
    display: flex;
    align-items: center;
    padding: 5px 12px;
    background: #222;
    border-bottom: 1px solid #333;
    gap: 2px;
    flex-shrink: 0;
    overflow-x: auto;
}
.fd-crumb {
    font-size: 11px;
    color: #aaa;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 2px;
    white-space: nowrap;
}
.fd-crumb:hover { background: #333; color: #fff; }
.fd-crumb-sep {
    font-size: 9px;
    color: #555;
    margin: 0 1px;
    flex-shrink: 0;
}

/* Main content area: sidebar + file grid */
.fd-content {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Sidebar */
.fd-sidebar {
    width: 160px;
    min-width: 160px;
    background: #1a1a1a;
    border-right: 1px solid #333;
    padding: 8px 0;
    overflow-y: auto;
    flex-shrink: 0;
}
.fd-sidebar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 11px;
    color: #bbb;
    cursor: pointer;
    white-space: nowrap;
}
.fd-sidebar-item:hover { background: #2a2a2a; color: #fff; }
.fd-sidebar-item.active { background: #333; color: #fff; }
.fd-sidebar-icon {
    font-size: 13px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* File grid area */
.fd-file-area {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
    align-content: start;
}

/* Individual file/folder card */
.fd-file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    min-height: 90px;
}
.fd-file-item:hover { background: rgba(255,255,255,0.06); }
.fd-file-item.selected {
    background: rgba(17,112,220,0.18);
    border-color: var(--accent-blue, #1170dc);
}
.fd-file-item.fd-restricted {
    opacity: 0.3;
    cursor: default;
}

.fd-file-thumb {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    flex-shrink: 0;
}
.fd-file-thumb img {
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
    border-radius: 2px;
}
.fd-file-thumb .fd-icon {
    font-size: 40px;
    line-height: 1;
}
.fd-file-name {
    font-size: 10px;
    color: #ccc;
    word-break: break-word;
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
}

/* Empty folder message */
.fd-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #555;
    font-size: 11px;
    padding: 40px 0;
}

/* Footer */
.fd-footer {
    border-top: 1px solid #333;
    padding: 10px 14px;
    background: #1e1e1e;
    flex-shrink: 0;
}
.fd-footer-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.fd-footer-row:last-child { margin-bottom: 0; }

.fd-footer-label {
    font-size: 10px;
    color: #999;
    white-space: nowrap;
    width: 70px;
    text-align: right;
    flex-shrink: 0;
}
.fd-filename-input {
    flex: 1;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 2px;
    color: #e0e0e0;
    font-size: 11px;
    padding: 4px 8px;
    font-family: inherit;
    height: 24px;
}
.fd-filename-input:focus { border-color: var(--accent-blue, #1170dc); outline: none; }

.fd-filter-select {
    flex: 1;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 2px;
    color: #e0e0e0;
    font-size: 10px;
    padding: 3px 6px;
    font-family: inherit;
    height: 24px;
}
.fd-filter-select:focus { border-color: var(--accent-blue, #1170dc); outline: none; }

/* Buttons row */
.fd-btn-row {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 4px;
}
.fd-btn {
    padding: 5px 16px;
    font-size: 11px;
    font-family: inherit;
    border-radius: 3px;
    cursor: pointer;
    border: 1px solid #444;
}
.fd-btn-open {
    background: var(--accent-blue, #1170dc);
    border-color: #0d5bb5;
    color: #fff;
    font-weight: 600;
}
.fd-btn-open:hover { background: #0d5bb5; }
.fd-btn-open:disabled { background: #333; border-color: #444; color: #666; cursor: default; }
.fd-btn-cancel {
    background: #333;
    color: #bbb;
}
.fd-btn-cancel:hover { background: #444; }

/* ==================== CONFIRM DIALOGS ==================== */

.confirm-dialog {
    min-width: 340px;
    max-width: 420px;
}
.confirm-body {
    padding: 14px;
}
.confirm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    padding: 8px 14px;
    border-top: 1px solid #222;
}
.confirm-btn {
    padding: 4px 14px;
    font-size: 10px;
    font-family: var(--font);
    border-radius: 2px;
    cursor: pointer;
    border: 1px solid #444;
}
.confirm-cancel {
    background: #333;
    color: var(--text-secondary);
}
.confirm-cancel:hover { background: #444; }
.confirm-ok {
    background: var(--accent-blue);
    border-color: #0d5bb5;
    color: #fff;
    font-weight: 600;
}
.confirm-ok:hover { background: #0d5bb5; }

/* ==================== SETTINGS FORM DIALOGS ==================== */

.settings-dialog {
    min-width: 400px;
    max-width: 500px;
}
.settings-form {
    padding: 14px;
}
.settings-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.settings-label {
    font-size: 10px;
    color: var(--text-secondary);
    white-space: nowrap;
    min-width: 90px;
    text-align: right;
    flex-shrink: 0;
}
.settings-input {
    background: var(--bg-input, #2a2a2a);
    border: 1px solid #3a3a3a;
    border-radius: 2px;
    color: var(--text-primary);
    font-size: 10px;
    padding: 3px 6px;
    font-family: var(--font);
    height: 22px;
}
.settings-input:focus { border-color: var(--accent-blue); outline: none; }
.settings-select {
    flex: 1;
    background: var(--bg-input, #2a2a2a);
    border: 1px solid #3a3a3a;
    border-radius: 2px;
    color: var(--text-primary);
    font-size: 10px;
    padding: 3px 6px;
    font-family: var(--font);
    height: 22px;
}
.settings-select:focus { border-color: var(--accent-blue); outline: none; }
.settings-footer {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    padding: 8px 14px;
    border-top: 1px solid #222;
}

/* ==================== MESSAGE LOG ==================== */

.msglog-body {
    padding: 10px;
}
.msglog-textarea {
    width: 100%;
    min-height: 200px;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 2px;
    color: var(--text-secondary);
    font-size: 10px;
    font-family: 'Consolas', 'Courier New', monospace;
    padding: 8px;
    resize: vertical;
    box-sizing: border-box;
    line-height: 1.5;
}
.msglog-textarea:focus { border-color: var(--accent-blue); outline: none; }
.msglog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    padding: 8px 14px;
    border-top: 1px solid #222;
}

/* ==================== INFO / ABOUT DIALOGS ==================== */

.info-dialog {
    min-width: 360px;
    max-width: 480px;
}
.info-body {
    padding: 14px;
}
.info-field {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 10px;
}
.info-field-label {
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 100px;
    text-align: right;
    flex-shrink: 0;
}
.info-field-value {
    color: var(--text-secondary);
}

/* ==================== PREVIEW BACKGROUND VARIANTS ==================== */

.preview-bg-black { background: #000 !important; }
.preview-bg-grey { background: #404040 !important; }
.preview-bg-white { background: #fff !important; }
.preview-bg-program { background: #1b1b1b !important; }
.preview-bg-shot-layout { background: #232323 !important; }
.preview-bg-image { background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }

/* ==================== DATA CONTROLLER DROPDOWN ==================== */

.dc-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.dc-menu {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    background: #232323;
    border: 1px solid #444;
    border-radius: 3px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    min-width: 160px;
    position: absolute;
}

.dc-item {
    padding: 4px 24px 4px 12px;
    font-size: 11px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    height: 22px;
    position: relative;
}

.dc-item:hover {
    background: var(--accent-blue);
    color: #fff;
}

.dc-item.dc-disabled {
    color: var(--text-dim);
    cursor: default;
}
.dc-item.dc-disabled:hover {
    background: transparent;
    color: var(--text-dim);
}

.dc-arrow {
    font-size: 7px;
    color: var(--text-dim);
    margin-left: 12px;
}
.dc-item:hover .dc-arrow { color: rgba(255,255,255,0.6); }

.dc-submenu {
    position: absolute;
    left: 100%;
    top: 0;
}

/* Data Controller cell in project table */
.dc-cell {
    cursor: pointer;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0 4px;
    font-size: 10px;
}
.dc-cell:hover {
    background: rgba(255,255,255,0.06);
}
.dc-placeholder {
    color: var(--text-dim);
    font-style: italic;
}
.dc-active {
    color: var(--accent-blue);
    font-weight: 600;
}
.dc-pending {
    color: var(--text-secondary);
    font-style: italic;
}

/* ==================== WORKSPACE FOCUS ==================== */
.ws-focused { outline: 1px solid var(--accent-blue); outline-offset: -1px; }

/* ==================== TOOLBAR ACTIVE STATE ==================== */
.icon-tb-btn.tb-active .tb-icon .icon-default { display: none; }
.icon-tb-btn.tb-active .tb-icon .icon-hover { display: block; }

/* Enterprise training page styles — adapted from CoPilot_NOP */

/* === Shared page base === */
.enterprise-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  font-family: Gotham, sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  background: #1a1a1a;
  color: #fff;
}

/* === Logo === */
.landing-logo {
  width: clamp(200px, 20vw, 300px);
  height: auto;
}

/* === Headings === */
.enterprise-page h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  text-align: center;
  margin-bottom: 20px;
}

.enterprise-page h1 span {
  display: block;
}

.enterprise-page h2 {
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  text-align: center;
  margin-bottom: 10px;
}

/* === Buttons === */
.ent-btn {
  margin-top: 30px;
  padding: 12px 24px;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-weight: 700;
  font-family: Gotham, sans-serif;
  background: #ed7001;
  color: #000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.ent-btn:hover {
  background-color: #000;
  color: #ed7001;
}

.ent-btn-link {
  margin-top: 30px;
  padding: 12px 24px;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-weight: 700;
  font-family: Gotham, sans-serif;
  background: #ed7001;
  color: #000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.ent-btn-link:hover {
  background-color: #000;
  color: #ed7001;
}

/* === Training Videos === */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 0 20px;
}

.video-item h4 {
  margin: 0 0 8px 0;
  font-size: clamp(0.9rem, 1.2vw, 1.2rem);
  color: #ed7001;
}

.video-item video {
  border-radius: 4px;
  background: #000;
}

/* === Lesson Grid === */
.lesson-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  width: 100%;
  max-width: 600px;
  padding: 0 20px;
}

.lesson-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 14px 20px;
  cursor: default;
}

.lesson-card .lesson-name {
  font-size: clamp(0.85rem, 1.1vw, 1.1rem);
  font-weight: 500;
  color: #fff;
}

.lesson-card .lesson-status {
  font-size: clamp(0.7rem, 0.9vw, 0.9rem);
  font-weight: 400;
  color: #707070;
}

.lesson-card .lesson-status.completed {
  color: #2a9f45;
}

/* ============================================================
   Student Dashboard & Lesson Runner Styles
   Matches switchersim-v2 lesson selection layout exactly
   ============================================================ */

/* === Student Container — must fill viewport === */
#student-container {
  width: 100%;
  height: 100vh;
}

/* === Landing Page === */
#landing-page {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  background: radial-gradient(ellipse at center, #1e1e2f 0%, #0d0d1a 100%);
  color: #f0f0f0;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
}

/* === Title === */
.landing-title {
  font-size: 3rem;
  font-weight: 700;
  color: #90caf9;
  text-shadow: 0 0 8px #1976d2, 0 0 20px rgba(25, 118, 210, 0.3);
  margin-bottom: 6px;
}

.landing-subtitle {
  font-size: 1.1rem;
  color: #999;
  margin-bottom: 36px;
}

/* === User Indicator (top-right) === */
.user-indicator {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 0.85rem;
  color: #888;
  text-align: right;
}

.user-indicator .user-name {
  color: #ccc;
  font-weight: 600;
}

.user-indicator .user-role {
  color: #90caf9;
  text-transform: capitalize;
  font-size: 0.8rem;
}

.user-indicator .dashboard-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #90caf9;
  text-decoration: none;
  opacity: 0.8;
}

.user-indicator .dashboard-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* === Two-Column Layout === */
.landing-columns {
  display: flex;
  justify-content: center;
  gap: 48px;
  max-width: 1400px;
  width: 100%;
}

.lessons-section {
  flex: 1.5;
  max-width: 780px;
}

.capstones-section {
  flex: 1;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ccc;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === Lessons Grid === */
.lessons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(7, auto);
  grid-auto-flow: column;
  gap: 10px;
}

/* === Lesson Card (button) === */
.lesson-card {
  background: #222;
  color: #666;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.95rem;
  cursor: default;
  opacity: 0.5;
  text-align: left;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
}

.lesson-card.active {
  background: #333;
  color: #fff;
  cursor: pointer;
  opacity: 1;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.lesson-card.active:hover {
  transform: scale(1.03);
  background-color: #444;
}

.lesson-num {
  font-weight: bold;
  color: #555;
  margin-right: 6px;
}

.lesson-card.active .lesson-num {
  color: #90caf9;
}

.lesson-quiz-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  font-size: 0.7rem;
  font-weight: 600;
  background: #8b5cf6;
  color: #fff;
  border-radius: 3px;
  vertical-align: middle;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lesson-quiz-badge:hover {
  background: #a78bfa;
}

/* === Capstone Card === */
.capstone-card {
  background: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 18px 22px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.capstone-card:hover {
  transform: scale(1.03);
  background-color: #444;
}

.capstone-info {
  display: flex;
  flex-direction: column;
}

.capstone-name {
  font-size: 1.1rem;
}

.capstone-desc {
  font-size: 0.8rem;
  font-weight: normal;
  color: #aaa;
  margin-top: 2px;
}

.start-label {
  font-size: 0.9rem;
  color: #90caf9;
  white-space: nowrap;
  margin-left: 16px;
}

/* === Join Multiplayer Button === */
.join-multiplayer {
  margin-top: 32px;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  background: #333;
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
}

.join-multiplayer:hover {
  transform: scale(1.05);
  background-color: #444;
}

/* === Free Explore Button === */
.free-explore-btn {
  margin-top: 16px;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  background: transparent;
  color: #90caf9;
  border: 1px solid #90caf9;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.free-explore-btn:hover {
  transform: scale(1.03);
  background-color: #90caf9;
  color: #0d0d1a;
}

/* ============================================================
   Lesson Runner Overlay — bar above sim when in lesson mode
   ============================================================ */

#lesson-runner-overlay {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  background: #151520;
  border-bottom: 1px solid #2a2a35;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  flex-shrink: 0;
  z-index: 100;
}

.lr-back-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid #3a3a48;
  color: #b0b0b8;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.lr-back-btn:hover {
  border-color: #90caf9;
  color: #fff;
}

.lr-divider {
  width: 1px;
  height: 20px;
  background: #2a2a35;
}

.lr-lesson-name {
  font-size: 13px;
  font-weight: 600;
  color: #e0e0e0;
}

.lr-unit-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  background: #1976d2;
  color: #fff;
  border-radius: 3px;
}

.lr-unit-badge.capstone {
  background: #8b5cf6;
}

.lr-unit-badge.multiplayer {
  background: #2a9f45;
}

.lr-spacer {
  flex: 1;
}

.lr-objectives {
  font-size: 11px;
  color: #6a6a80;
}

.lr-score {
  font-size: 13px;
  color: #e0e0e0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lr-progress-bar {
  width: 80px;
  height: 4px;
  background: #2a2a35;
  border-radius: 2px;
  overflow: hidden;
}

.lr-progress-fill {
  height: 100%;
  background: #90caf9;
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* === Instruction Bar === */
.lr-instruction {
  font-size: 12px;
  color: #90caf9;
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lr-instruction.lr-instruction-active {
  opacity: 1;
}

/* ============================================================
   Lesson Results Overlay
   ============================================================ */

#lesson-results-overlay {
  position: absolute;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.results-card {
  background: #1e1e2f;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 48px 60px;
  text-align: center;
  min-width: 400px;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.results-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e0e0e0;
  margin-bottom: 16px;
}

.results-grade {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.results-score {
  font-size: 1.3rem;
  color: #ccc;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.results-percentage {
  font-size: 1rem;
  color: #888;
  margin-bottom: 24px;
}

/* Event breakdown */
.results-breakdown {
  text-align: left;
  margin-bottom: 24px;
}

.results-breakdown-header {
  font-size: 0.85rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #333;
}

.results-event-row {
  display: flex;
  gap: 12px;
  padding: 4px 0;
  font-size: 0.8rem;
  color: #999;
}

.results-event-row.correct {
  color: #ccc;
}

.results-event-row.missed {
  color: #666;
}

.results-event-type {
  width: 70px;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.7rem;
}

.results-event-expected {
  flex: 1;
}

.results-event-actual {
  flex: 1;
}

.results-event-points {
  width: 60px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.results-event-row.correct .results-event-points {
  color: #2a9f45;
}

.results-event-row.missed .results-event-points {
  color: #c0392b;
}

/* Action buttons */
.results-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.results-btn {
  padding: 10px 28px;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.results-btn:hover {
  transform: scale(1.03);
}

.results-retry {
  background: #1976d2;
  color: #fff;
}

.results-retry:hover {
  background: #1e88e5;
}

.results-dashboard {
  background: #333;
  color: #ccc;
}

.results-dashboard:hover {
  background: #444;
}

/* ============================================================
   Multiplayer Lobby Modal
   ============================================================ */

#multiplayer-lobby-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.lobby-card {
  background: #1e1e2f;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 40px 48px;
  text-align: center;
  min-width: 360px;
}

.lobby-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #e0e0e0;
  margin-bottom: 8px;
}

.lobby-subtitle {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 24px;
}

.lobby-input {
  width: 100%;
  padding: 12px 16px;
  background: #111;
  border: 1px solid #444;
  border-radius: 6px;
  color: #e0e0e0;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 6px;
  text-transform: uppercase;
  font-family: 'Segoe UI', monospace;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.lobby-input::placeholder {
  color: #555;
  letter-spacing: 2px;
  font-size: 1rem;
}

.lobby-input:focus {
  outline: none;
  border-color: #1976d2;
}

.lobby-error {
  font-size: 0.85rem;
  color: #e74c3c;
  margin-bottom: 12px;
  min-height: 1.2em;
}

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

.lobby-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.lobby-btn:hover {
  transform: scale(1.03);
}

.lobby-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.lobby-join-btn {
  background: #2a9f45;
  color: #fff;
}

.lobby-join-btn:hover:not(:disabled) {
  background: #33b252;
}

.lobby-cancel-btn {
  background: #333;
  color: #ccc;
}

.lobby-cancel-btn:hover {
  background: #444;
}

/* Video Board — fullscreen stadium board window */

#videoboard-container {
  position: fixed;
  inset: 0;
  background: #2b2b2b url('/assets/enterprise/Football_Background.jpeg') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Wrapper shrink-wraps to rendered image size */
.vb-wrapper {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.vb-wrapper img.vb-frame {
  display: block;
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
}

/* Screen area — positioned by JS to precisely match the transparent opening.
   Sits on top of the image; frame borders remain visible around it. */
.vb-screen {
  position: absolute;
  overflow: hidden;
  background: #1b1b1b;
}

/* Idle NEVCO logo centered in screen */
.vb-idle-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1b1b1b;
}

.vb-idle-logo img {
  width: 40%;
  opacity: 0.7;
}

/* Program content fills the screen area */
.vb-program-content {
  position: absolute;
  inset: 0;
}

/* Ensure template viewports and zones fill the screen */
.vb-program-content .pgm-zone {
  position: absolute;
  overflow: hidden;
}

.vb-program-content .template-viewport {
  width: 100%;
  height: 100%;
}

/* Floating toolbar */
.vb-toolbar {
  position: fixed;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 100;
  opacity: 1;
}

.vb-toolbar button {
  background: rgba(0, 0, 0, 0.7);
  color: #e0e0e0;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  font-family: 'Segoe UI', sans-serif;
}

.vb-toolbar button:hover {
  background: rgba(60, 60, 60, 0.9);
}

/* Enterprise Lesson Engine Styles */

/* ── Breadcrumb Bar ── */
.ent-breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  background: #191919;
  border-bottom: 1px solid #333;
  z-index: 9500;
  position: relative;
  flex-shrink: 0;
}

.ent-breadcrumb-exit {
  background: #333;
  color: #e0e0e0;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.ent-breadcrumb-exit:hover {
  background: #ed7001;
  color: #000;
  border-color: #ed7001;
}

.ent-breadcrumb-name {
  font-size: 13px;
  font-weight: 600;
  color: #e0e0e0;
  white-space: nowrap;
}


/* ── Instruction Panel ── */
.ent-instruction-panel {
  position: fixed;
  top: 60px;
  right: 24px;
  width: 340px;
  background: #1e1e1e;
  border: 1px solid #444;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 100000;
  padding: 16px;
  font-family: inherit;
  pointer-events: all;
}

.ent-instr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ent-instr-title {
  font-size: 14px;
  font-weight: 600;
  color: #ed7001;
}

.ent-instr-audio {
  background: none;
  border: 1px solid #555;
  border-radius: 4px;
  color: #e0e0e0;
  padding: 4px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.ent-instr-audio:hover:not(:disabled) {
  background: #333;
}
.ent-instr-audio:disabled,
.ent-instr-audio.disabled {
  opacity: 0.3;
  cursor: default;
}
.ent-instr-audio.playing {
  color: #1170dc;
  border-color: #1170dc;
}

.ent-instr-text {
  font-size: 13px;
  line-height: 1.5;
  color: #d0d0d0;
  margin: 0 0 12px 0;
}

.ent-instr-actions {
  display: flex;
  gap: 8px;
}

.ent-instr-next {
  background: #1170dc;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.ent-instr-next:hover:not(:disabled) {
  background: #0d5ab8;
}
.ent-instr-next:disabled,
.ent-instr-next.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #555;
}


/* ── Lockdown ── */
/* Lockdown: sim-container becomes a positioned stacking context */
#sim-container.lesson-lockdown {
  position: relative;
}

/* Disable pointer-events on everything inside the sim */
#sim-container.lesson-lockdown * {
  pointer-events: none;
}

/* Re-enable pointer-events on allowed elements and their children */
#sim-container.lesson-lockdown .lockdown-allowed,
#sim-container.lesson-lockdown .lockdown-allowed * {
  pointer-events: all !important;
}

/* Dimming overlay — covers sim, pointer-events pass through */
.lockdown-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9000;
  pointer-events: none;
}

/* Allowed elements sit above the overlay in the sim stacking context */
#sim-container.lesson-lockdown .lockdown-allowed {
  position: relative;
  z-index: 9001 !important;
}

/* Body-level elements (menus, dropdowns, modals, file dialogs appended to body) */
body > .lockdown-allowed,
body > .lockdown-allowed * {
  pointer-events: all !important;
}
body > .lockdown-allowed {
  z-index: 9100 !important;
}

/* ── Highlight ── */
.ent-highlight-overlay {
  position: fixed;
  border: 2px solid #1170dc;
  border-radius: 2px;
  box-shadow: inset 0 0 12px rgba(17, 112, 220, 0.3), 0 0 12px rgba(17, 112, 220, 0.4);
  pointer-events: none;
  z-index: 99999;
  animation: ent-highlight-pulse 1.5s ease-in-out infinite;
}

@keyframes ent-highlight-pulse {
  0%, 100% {
    box-shadow: inset 0 0 12px rgba(17, 112, 220, 0.3), 0 0 12px rgba(17, 112, 220, 0.4);
  }
  50% {
    box-shadow: inset 0 0 20px rgba(17, 112, 220, 0.5), 0 0 24px rgba(17, 112, 220, 0.7);
  }
}

/* ── Completion Overlay ── */
.ent-completion-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ent-completion-card {
  background: #1e1e1e;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 40px 48px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.ent-completion-check {
  margin-bottom: 16px;
}

.ent-completion-heading {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
}

.ent-completion-name {
  font-size: 16px;
  color: #b0b0b0;
  margin: 0 0 24px 0;
}

.ent-completion-btn {
  margin-top: 0;
}

/* ── Lesson card status updates ── */
.lesson-card.clickable {
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.lesson-card.clickable:hover {
  background: #353535;
  border-color: #666;
}

.lesson-card.coming-soon {
  opacity: 0.4;
  cursor: not-allowed !important;
}

.lesson-card.free-play {
  border-color: #ed7001;
  cursor: pointer;
}
.lesson-card.free-play:hover {
  background: #353535;
}

.lesson-status.in-progress {
  color: #ed7001;
}


/*# sourceMappingURL=app.2e6cd70966a38b776cb8.css.map*/