/* ══════════════════════════════════════════════════════════
   NEGATIVE NLE — style.css
   Theme-capable via CSS custom properties
   5 themes: NEGATIVE · DaVinci Resolve · Premiere Pro
             Cyberpunk Winamp · The Matrix
══════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'FK Raster';
  src: url('FKRasterRomanCompactTrial-Blended.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

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

/* ══ CSS CUSTOM PROPERTIES — NEGATIVE (DEFAULT) ══ */
:root {
  /* Legacy compatibility */
  --white: #ffffff;
  --gray: #999999;
  --dark: #666666;
  --black: #000000;
  --mono: 'Space Mono', 'Courier New', monospace;
  --timeline-h: 360px;

  /* ── Backgrounds ── */
  --bg-body: #ffffff;
  --color-body: #000000;
  --bg-source-bin: #0a0a0e;
  --bg-timeline: rgba(8, 8, 12, 0.88);
  --bg-timeline-backdrop: saturate(1.2);
  --bg-transport: rgba(255, 255, 255, 0.02);
  --bg-track-header: rgba(255, 255, 255, 0.04);
  --bg-ruler: rgba(255, 255, 255, 0.015);
  --bg-media-panel: rgba(20, 20, 20, 0.88);
  --bg-kbd-legend: rgba(0, 0, 0, 0.6);
  --bg-kbd-toggle: rgba(0, 0, 0, 0.5);
  --bg-transport-btn: rgba(255, 255, 255, 0.07);
  --bg-transport-btn-hover: rgba(255, 255, 255, 0.14);
  --bg-load-reel-btn: rgba(212, 168, 83, 0.2);
  --bg-load-reel-btn-hover: rgba(212, 168, 83, 0.35);
  --bg-folder: rgba(128, 128, 128, 0.18);
  --bg-folder-hover: rgba(128, 128, 128, 0.3);
  --bg-folder-active: rgba(128, 128, 128, 0.38);
  --bg-contact-glass: rgba(255, 255, 255, 0.03);
  --bg-kbd-key: rgba(255, 255, 255, 0.1);
  --bg-timeline-footer: rgba(255, 255, 255, 0.02);

  /* ── Text ── */
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-dim: rgba(255, 255, 255, 0.3);
  --text-ghost: rgba(255, 255, 255, 0.2);

  /* ── Accent (Amber/Gold) ── */
  --accent-primary: #d4a853;
  --accent-glow: rgba(212, 168, 83, 0.3);
  --accent-glow-strong: rgba(212, 168, 83, 0.5);
  --accent-bg: rgba(212, 168, 83, 0.15);
  --accent-bg-hover: rgba(212, 168, 83, 0.25);
  --accent-border: rgba(212, 168, 83, 0.3);
  --accent-border-hover: rgba(212, 168, 83, 0.5);
  --accent-text: rgba(212, 168, 83, 0.8);
  --accent-outline: rgba(212, 168, 83, 0.7);
  --accent-outline-bg: rgba(212, 168, 83, 0.2);

  /* ── Borders ── */
  --border-primary: rgba(255, 255, 255, 0.12);
  --border-secondary: rgba(255, 255, 255, 0.08);
  --border-dim: rgba(255, 255, 255, 0.06);
  --border-kbd: rgba(255, 255, 255, 0.15);
  --border-kbd-key: rgba(255, 255, 255, 0.2);
  --border-transport-btn: rgba(255, 255, 255, 0.1);
  --border-transport-btn-hover: rgba(255, 255, 255, 0.2);
  --border-contact-glass: rgba(255, 255, 255, 0.1);
  --border-clip: rgba(255, 255, 255, 0.15);

  /* ── Track names ── */
  --track-video-bg: rgba(100, 200, 220, 0.12);
  --track-video-color: rgba(100, 200, 220, 0.7);
  --track-video-border: rgba(100, 200, 220, 0.1);
  --track-audio-bg: rgba(212, 168, 83, 0.1);
  --track-audio-color: rgba(212, 168, 83, 0.6);
  --track-audio-border: rgba(212, 168, 83, 0.08);

  /* ── Clip colors ── */
  --clip-v1-bg: rgba(60, 180, 200, 0.2);
  --clip-v1-color: rgba(120, 220, 240, 0.85);
  --clip-v1-border: rgba(60, 180, 200, 0.15);
  --clip-v2-bg: rgba(60, 180, 200, 0.12);
  --clip-v2-color: rgba(120, 220, 240, 0.6);
  --clip-v2-border: rgba(60, 180, 200, 0.08);
  --clip-v3-bg: rgba(180, 180, 200, 0.12);
  --clip-v3-color: rgba(200, 200, 220, 0.6);
  --clip-v3-border: rgba(180, 180, 200, 0.08);
  --clip-v4-bg: rgba(160, 120, 200, 0.15);
  --clip-v4-color: rgba(200, 160, 240, 0.7);
  --clip-v4-border: rgba(160, 120, 200, 0.1);
  --clip-v5-bg: rgba(200, 160, 100, 0.15);
  --clip-v5-color: rgba(240, 200, 140, 0.7);
  --clip-v5-border: rgba(200, 160, 100, 0.1);
  --clip-a1-bg: rgba(212, 168, 83, 0.18);
  --clip-a1-color: rgba(232, 198, 123, 0.85);
  --clip-a1-border: rgba(212, 168, 83, 0.12);
  --clip-a2-bg: rgba(212, 168, 83, 0.12);
  --clip-a2-color: rgba(232, 198, 123, 0.65);
  --clip-a2-border: rgba(212, 168, 83, 0.08);
  --clip-a3-bg: rgba(180, 150, 80, 0.15);
  --clip-a3-color: rgba(220, 190, 120, 0.7);
  --clip-a3-border: transparent;
  --clip-a4-bg: rgba(180, 150, 80, 0.1);
  --clip-a4-color: rgba(220, 190, 120, 0.55);
  --clip-a4-border: transparent;
  --clip-a5-bg: rgba(180, 150, 80, 0.08);
  --clip-a5-color: rgba(220, 190, 120, 0.45);
  --clip-a5-border: transparent;

  /* ── Drop target ── */
  --drop-highlight-bg: rgba(212, 168, 83, 0.06);
  --drop-highlight-border: rgba(212, 168, 83, 0.3);

  /* ── Ghost clip ── */
  --ghost-clip-bg: rgba(60, 180, 200, 0.15);
  --ghost-clip-border: rgba(60, 180, 200, 0.4);
  --ghost-clip-color: rgba(120, 220, 240, 0.5);

  /* ── Marquee ── */
  --marquee-border: rgba(212, 168, 83, 0.6);
  --marquee-bg: rgba(212, 168, 83, 0.08);

  /* ── Ruler ── */
  --ruler-mark-minor: rgba(255, 255, 255, 0.15);
  --ruler-mark-major: rgba(255, 255, 255, 0.3);
  --ruler-label-color: rgba(255, 255, 255, 0.4);

  /* ── Scrollbar ── */
  --scrollbar-thumb: rgba(255, 255, 255, 0.18);

  /* ── Resize handle ── */
  --resize-handle-bar: rgba(255, 255, 255, 0.2);
  --resize-handle-bar-hover: rgba(255, 255, 255, 0.45);

  /* ── Border radius ── */
  --radius: 3px;

  /* ── Contact overlay ── */
  --contact-text-primary: #fff;
  --contact-text-secondary: rgba(255, 255, 255, 0.8);
  --contact-text-muted: rgba(255, 255, 255, 0.3);
  --contact-text-dim: rgba(255, 255, 255, 0.25);
  --contact-text-ghost: rgba(255, 255, 255, 0.15);
  --contact-hover-color: #d4a853;
  --contact-divider: rgba(255, 255, 255, 0.1);

  /* ── Waveform ── */
  --waveform-color: rgba(255,255,255,0.28);

  /* ── Loader ── */
  --loader-bg: #000000;
  --loader-stroke: #ffffff;
  --loader-text: #ffffff;
  --loader-ratio: #666;

  /* ── Footer ── */
  --footer-color: rgba(255, 255, 255, 0.15);
  --footer-link: rgba(255, 255, 255, 0.2);
  --footer-link-hover: rgba(212, 168, 83, 0.8);

  /* ── Media panel ── */
  --media-panel-item-color: #aaa;
  --media-panel-item-hover-color: #ddd;
  --media-panel-item-hover-bg: rgba(255, 255, 255, 0.06);
  --media-panel-header-color: #555;
  --media-panel-duration-color: #555;
  --media-panel-border: rgba(255, 255, 255, 0.06);

  /* ── Nav ── */
  --nav-bg: rgba(128, 128, 128, 0.12);
  --nav-bg-hover: rgba(128, 128, 128, 0.25);

  /* ── Monitor ── */
  --monitor-name-color: #fff;
  --monitor-type-color: #888;
  --monitor-tc-color: #ccc;
  --monitor-screen-radius: 0px;
  --monitor-screen-shadow: none;

  /* ── Export ── */
  --export-progress-track: rgba(255, 255, 255, 0.1);
  --export-progress-fill: #fff;
  --export-status-color: #fff;

  /* ── Special effects ── */
  --grain-opacity: 0.04;
  --speed-text-shadow: 0 0 12px var(--accent-glow);
  --playhead-shadow: 0 0 10px var(--accent-glow), 0 0 20px rgba(212, 168, 83, 0.1);
  --clip-text-shadow: none;
  --clip-border-extra: none;
  --transport-extra-bg: none;
  --timeline-border-extra: none;
  --track-header-extra-bg: none;

  /* ── Theme picker ── */
  --theme-picker-bg: rgba(8, 8, 14, 0.95);
  --theme-picker-border: rgba(255, 255, 255, 0.08);
  --theme-picker-color: rgba(255, 255, 255, 0.6);
  --theme-picker-title: rgba(255, 255, 255, 0.35);
  --theme-picker-item-hover: rgba(255, 255, 255, 0.05);
  --theme-picker-active-color: var(--accent-primary);
  --theme-picker-active-bg: var(--accent-bg);
  --theme-picker-active-border: var(--accent-border);
}

/* ══ BASE STYLES ══ */
html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg-body);
  color: var(--color-body);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
}

/* ── GRAIN OVERLAY ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ── LOADING SCREEN ── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--loader-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.logo-svg { width: 400px; height: auto; }
.logo-svg .frame { stroke: var(--loader-stroke); stroke-width: 1.5; fill: none; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: drawFrame 1.5s ease forwards; }
.logo-svg .vline { stroke: var(--loader-stroke); stroke-width: 1; fill: none; stroke-dasharray: 200; stroke-dashoffset: 200; }
.logo-svg .vl1 { animation: drawLine 0.4s 0.6s ease forwards; }
.logo-svg .vl2 { animation: drawLine 0.4s 0.8s ease forwards; }
.logo-svg .vl3 { animation: drawLine 0.4s 1.0s ease forwards; }
.logo-svg .vl4 { animation: drawLine 0.4s 1.2s ease forwards; }
.logo-svg .logo-text { fill: var(--loader-text); font-family: 'FK Raster', var(--mono); font-size: 18px; letter-spacing: 4px; opacity: 0; animation: fadeIn 0.6s 1.6s ease forwards; }
.logo-svg .ratio-label { fill: var(--loader-ratio); font-family: var(--mono); font-size: 7px; opacity: 0; animation: fadeIn 0.4s 1.4s ease forwards; }

@keyframes drawFrame { to { stroke-dashoffset: 0; } }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ── NAV ── */
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 6px;
}
nav a {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  mix-blend-mode: difference;
  text-decoration: none;
  padding: 10px 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--nav-bg);
  border: none;
  transition: background 0.3s;
}
nav a.nav-logo {
  font-family: 'FK Raster', var(--mono);
  font-size: 11px;
  letter-spacing: 4px;
}
nav a:hover { background: var(--nav-bg-hover); }

/* ── SOURCE BIN ── */
#source-bin {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--timeline-h);
  overflow: visible;
  z-index: 10;
  background: var(--bg-source-bin);
  transition: background 0.4s ease;
}
#source-bin.has-clips { background: transparent; }

.source-thumb {
  position: absolute;
  cursor: grab;
  will-change: transform;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease;
  z-index: 1;
  user-select: none;
  border: none;
  outline: none;
  overflow: visible;
  width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 4px;
  background: transparent;
}
.source-thumb:hover {
  z-index: 5;
  background: rgba(255, 255, 255, 0.06);
}
.source-thumb:active { cursor: grabbing; }
.source-thumb.used {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* File icon */
.file-icon {
  width: 96px;
  height: 54px;
  position: relative;
  flex-shrink: 0;
}
.file-icon-body {
  width: 100%;
  height: 100%;
  background: var(--bg-source-bin, #0a0a0e);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.source-thumb:hover .file-icon-body {
  border-color: rgba(255, 255, 255, 0.35);
}
/* Dog-ear fold */
.file-icon-body::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 10px; height: 10px;
  background: linear-gradient(225deg, var(--bg-body, #000) 50%, rgba(255,255,255,0.12) 50%);
  pointer-events: none;
}
/* Film strip icon inside (hidden when video is playing) */
.file-icon-body::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 20px; height: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 1px;
  z-index: 0;
}
.file-icon-body video,
.file-icon-body canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.file-icon-body video {
  z-index: 2;
}

/* File extension badge */
.file-ext {
  position: absolute;
  bottom: 4px;
  right: 2px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

/* File label text */
.file-label {
  text-align: center;
  line-height: 1.25;
  max-width: 110px;
  word-break: break-word;
}
.file-label .thumb-name {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  display: block;
}
.file-label .thumb-type {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  display: block;
  margin-top: 1px;
}
.source-thumb:hover .file-label .thumb-name {
  color: rgba(255, 255, 255, 1);
}
.source-thumb:hover .file-label .thumb-type {
  color: rgba(255, 255, 255, 0.6);
}

/* Media Pool Folders */
.media-folders {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 50;
  display: flex;
  gap: 6px;
}
.media-folder {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  background: var(--bg-folder);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
  mix-blend-mode: difference;
  border-radius: var(--radius);
}
.media-folder:hover { background: var(--bg-folder-hover); }
.media-folder.active { background: var(--bg-folder-active); }
.media-folder .folder-icon { font-size: 12px; color: #fff; }
.media-folder .folder-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
}
.media-folder .folder-count {
  font-family: var(--mono);
  font-size: 8px;
  color: #ccc;
  margin-left: 2px;
}

.media-panel {
  position: absolute;
  bottom: 48px;
  left: 12px;
  width: 280px;
  max-height: 50vh;
  overflow-y: auto;
  background: var(--bg-media-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  z-index: 25;
  display: none;
  padding: 8px 0;
  border-radius: var(--radius);
}
.media-panel.visible { display: block; }
.media-panel-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  cursor: grab;
  transition: background 0.15s;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--media-panel-item-color);
  letter-spacing: 0.3px;
}
.media-panel-item:hover { background: var(--media-panel-item-hover-bg); color: var(--media-panel-item-hover-color); }
.media-panel-item .item-icon { font-size: 12px; opacity: 0.6; }
.media-panel-item .item-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-panel-item .item-duration { color: var(--media-panel-duration-color); font-size: 8px; }
.media-panel-header {
  padding: 6px 12px 8px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--media-panel-header-color);
  border-bottom: 1px solid var(--media-panel-border);
  margin-bottom: 4px;
}

.source-thumb.playing-highlight:not(.used) {
  background: rgba(255, 255, 255, 0.08);
}
.source-thumb.playing-highlight:not(.used) .file-icon-body {
  border-color: var(--accent-primary, rgba(255,255,255,0.5));
  box-shadow: 0 0 8px var(--accent-glow, rgba(255,255,255,0.2));
}

/* Film grain on individual images */
.grain-overlay { position: relative; }
.grain-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 128 128' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}

/* Aspect ratio frame lines */
.aspect-lines { position: relative; }
.aspect-lines::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid #ddd;
  pointer-events: none;
}

/* Sprocket holes */
.sprocket { position: relative; }
.sprocket::before, .sprocket::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  background-image: repeating-linear-gradient(to bottom, transparent 0px, transparent 6px, #ccc 6px, #ccc 10px, transparent 10px, transparent 20px);
  z-index: 2;
  pointer-events: none;
}
.sprocket::before { left: -18px; }
.sprocket::after { right: -18px; }

/* Drift */
@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(8px,-12px); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-6px,10px); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(12px,6px); } }
.drift1 { animation: drift1 45s ease-in-out infinite; }
.drift2 { animation: drift2 55s ease-in-out infinite; }
.drift3 { animation: drift3 65s ease-in-out infinite; }

/* ── DRAG GHOST ── */
.drag-ghost {
  position: fixed;
  pointer-events: none;
  z-index: 500;
  opacity: 0.7;
  transform: scale(0.5);
  transform-origin: top left;
}
.drag-ghost img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── PREVIEW MONITOR ── */
#preview-monitor {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--timeline-h);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  background: #000;
}
#preview-monitor.visible { opacity: 1; pointer-events: none; }
.monitor-bezel { width: 100%; height: 100%; overflow: hidden; }
.monitor-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: var(--monitor-screen-radius);
  box-shadow: var(--monitor-screen-shadow);
  overflow: hidden;
}
.monitor-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.monitor-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 32px 56px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 3;
  pointer-events: none;
}
.monitor-info { display: flex; flex-direction: column; gap: 2px; }
.monitor-name { font-size: 16px; letter-spacing: 4px; color: var(--monitor-name-color); text-transform: uppercase; font-family: var(--mono); }
.monitor-type { font-size: 8px; letter-spacing: 2px; color: var(--monitor-type-color); text-transform: uppercase; font-family: var(--mono); }
.monitor-tc { font-size: 10px; letter-spacing: 1px; color: var(--monitor-tc-color); font-variant-numeric: tabular-nums; font-family: var(--mono); }

/* ── TIMELINE ── */
.timeline-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--timeline-h);
  z-index: 100;
  background: var(--bg-timeline);
  backdrop-filter: blur(24px) var(--bg-timeline-backdrop);
  -webkit-backdrop-filter: blur(24px) var(--bg-timeline-backdrop);
  border-top: 1px solid var(--border-primary);
  user-select: none;
  display: flex;
  flex-direction: column;
}

/* Resize handle */
.timeline-resize-handle {
  height: 6px;
  cursor: ns-resize;
  background: linear-gradient(to bottom, rgba(255,255,255,0.04), transparent);
  position: relative;
  flex-shrink: 0;
  z-index: 10;
}
.timeline-resize-handle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 1px;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--resize-handle-bar);
  transition: background 0.3s;
}
.timeline-resize-handle:hover::after { background: var(--resize-handle-bar-hover); }

/* Transport bar */
.transport-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  background: var(--bg-transport);
  border-bottom: 1px solid var(--border-secondary);
  flex-shrink: 0;
  gap: 12px;
  overflow: hidden;
}
.transport-controls { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.transport-btn {
  background: var(--bg-transport-btn);
  border: 1px solid var(--border-transport-btn);
  color: var(--text-secondary);
  font-size: 10px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius);
  font-family: var(--mono);
  transition: all 0.2s;
}
.transport-btn:hover { color: var(--text-primary); background: var(--bg-transport-btn-hover); border-color: var(--border-transport-btn-hover); }
.transport-btn.active { color: var(--accent-primary, #fff); border-color: var(--accent-border, rgba(255,255,255,0.3)); }
.transport-btn.active { color: var(--text-primary); background: var(--bg-transport-btn-hover); }
.transport-tc {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--text-primary);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.speed-indicator {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--accent-primary);
  font-family: var(--mono);
  min-width: 80px;
  text-align: center;
  text-shadow: var(--speed-text-shadow);
}
.transport-meta {
  font-size: 7px;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  gap: 20px;
  flex-shrink: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  font-family: var(--mono);
}

/* Ruler */
.timeline-ruler {
  height: 22px;
  background: var(--bg-ruler);
  border-bottom: 1px solid var(--border-secondary);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.ruler-mark { position: absolute; bottom: 0; width: 1px; background: var(--ruler-mark-minor); }
.ruler-mark.major { height: 12px; background: var(--ruler-mark-major); }
.ruler-mark.minor { height: 6px; }
.ruler-label {
  position: absolute;
  top: 3px;
  font-size: 7px;
  color: var(--ruler-label-color);
  font-family: var(--mono);
  transform: translateX(-50%);
}
.ruler-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-primary);
  z-index: 50;
  cursor: col-resize;
  box-shadow: 0 0 8px var(--accent-glow);
  will-change: left;
}
.ruler-playhead::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -5px;
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--accent-primary);
}

/* Tracks */
.timeline-tracks {
  position: relative;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}
.timeline-tracks::-webkit-scrollbar { width: 3px; }
.timeline-tracks::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 2px; }
.timeline-tracks::-webkit-scrollbar-track { background: transparent; }
.track {
  display: flex;
  height: 28px;
  border-bottom: 1px solid var(--border-dim);
  position: relative;
}
.track:last-child { border-bottom: none; }
.track-header {
  width: 120px;
  min-width: 120px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  background: var(--bg-track-header);
  border-right: 1px solid var(--border-secondary);
  font-family: var(--mono);
}
.track-name {
  font-size: 8px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius);
  min-width: 28px;
  text-align: center;
  letter-spacing: 1px;
}
.track-name.video { background: var(--track-video-bg); color: var(--track-video-color); border: 1px solid var(--track-video-border); }
.track-name.audio { background: var(--track-audio-bg); color: var(--track-audio-color); border: 1px solid var(--track-audio-border); }
.track-icons { display: flex; gap: 4px; align-items: center; }
.track-icon { font-size: 7px; color: var(--text-ghost); cursor: pointer; transition: color 0.2s; padding: 1px; }
.track-icon:hover { color: var(--text-secondary); }
.track-meta { font-size: 7px; color: var(--text-ghost); margin-left: auto; font-family: var(--mono); }
.track-content { flex: 1; position: relative; overflow-x: auto; overflow-y: hidden; }
.track-content::-webkit-scrollbar { height: 0; }

/* V1 drop target highlight */
.track-content.drop-highlight {
  background: var(--drop-highlight-bg);
  outline: 1px dashed var(--drop-highlight-border);
  outline-offset: -1px;
}

/* Ghost text */
.ghost-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  letter-spacing: 4px;
  color: var(--text-ghost);
  text-transform: uppercase;
  pointer-events: none;
  font-family: var(--mono);
}

/* Marquee selection */
.marquee {
  position: absolute;
  border: 1px solid var(--marquee-border);
  background: var(--marquee-bg);
  pointer-events: none;
  z-index: 60;
}
.clip.selected {
  outline: 1px solid var(--accent-outline);
  outline-offset: -1px;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Load reel button */
.load-reel-btn {
  display: inline-block;
  margin-left: 16px;
  padding: 6px 16px;
  background: var(--bg-load-reel-btn);
  border: 1px solid var(--accent-border);
  color: var(--accent-text);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s;
  border-radius: var(--radius);
}
.load-reel-btn:hover {
  background: var(--bg-load-reel-btn-hover);
  color: var(--accent-primary);
  border-color: var(--accent-border-hover);
}

/* Clips */
.clip {
  position: absolute;
  top: 3px;
  height: 22px;
  display: flex;
  align-items: center;
  font-size: 7px;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
  will-change: transform;
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid var(--border-clip);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--mono);
}
.clip:hover { border-color: rgba(255, 255, 255, 0.2); transform: scaleY(1.05); }

/* ── Waveform canvas inside clips ── */
.clip canvas.waveform {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
  display: block;
}

/* Ripple delete gap indicator */
.timeline-gap {
  position: absolute;
  top: 0;
  height: 100%;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    rgba(255, 255, 255, 0.04) 3px,
    rgba(255, 255, 255, 0.04) 6px
  );
  border-left: 1px dashed rgba(255, 255, 255, 0.15);
  border-right: 1px dashed rgba(255, 255, 255, 0.15);
  transition: background 0.15s ease;
}
.timeline-gap:hover {
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    rgba(255, 80, 80, 0.12) 3px,
    rgba(255, 80, 80, 0.12) 6px
  );
  border-left-color: rgba(255, 80, 80, 0.4);
  border-right-color: rgba(255, 80, 80, 0.4);
}
.gap-icon {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}
.timeline-gap:hover .gap-icon {
  color: rgba(255, 80, 80, 0.6);
}

.clip .clip-label {
  position: relative;
  z-index: 1;
}

.clip .trim-handle {
  z-index: 2;
}

.clip.v1-clip { background: var(--clip-v1-bg); color: var(--clip-v1-color); border-color: var(--clip-v1-border); text-shadow: var(--clip-text-shadow); }
.clip.v2-clip { background: var(--clip-v2-bg); color: var(--clip-v2-color); border-color: var(--clip-v2-border); text-shadow: var(--clip-text-shadow); }
.clip.v3-clip { background: var(--clip-v3-bg); color: var(--clip-v3-color); border-color: var(--clip-v3-border); text-shadow: var(--clip-text-shadow); }
.clip.v4-clip { background: var(--clip-v4-bg); color: var(--clip-v4-color); border-color: var(--clip-v4-border); text-shadow: var(--clip-text-shadow); }
.clip.v5-clip { background: var(--clip-v5-bg); color: var(--clip-v5-color); border-color: var(--clip-v5-border); text-shadow: var(--clip-text-shadow); }
.clip.a1-clip { background: var(--clip-a1-bg); color: var(--clip-a1-color); border-color: var(--clip-a1-border); text-shadow: var(--clip-text-shadow); }
.clip.a2-clip { background: var(--clip-a2-bg); color: var(--clip-a2-color); border-color: var(--clip-a2-border); text-shadow: var(--clip-text-shadow); }
.clip.a3-clip { background: var(--clip-a3-bg); color: var(--clip-a3-color); border-color: var(--clip-a3-border); text-shadow: var(--clip-text-shadow); }
.clip.a4-clip { background: var(--clip-a4-bg); color: var(--clip-a4-color); border-color: var(--clip-a4-border); text-shadow: var(--clip-text-shadow); }
.clip.a5-clip { background: var(--clip-a5-bg); color: var(--clip-a5-color); border-color: var(--clip-a5-border); text-shadow: var(--clip-text-shadow); }

.clip.v1-clip, .clip.v2-clip, .clip.a1-clip { cursor: grab; }
.clip.v1-clip:active, .clip.v2-clip:active, .clip.a1-clip:active { cursor: grabbing; }
.clip.dragging { opacity: 0.4; }

/* Trim handles */
.trim-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6px;
  cursor: ew-resize;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
}
.trim-handle:hover, .trim-handle.active { opacity: 1; }
.trim-handle-left {
  left: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: rgba(255, 255, 255, 0.35);
  border-right: 1px solid rgba(255, 255, 255, 0.5);
}
.trim-handle-right {
  right: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255, 255, 255, 0.35);
  border-left: 1px solid rgba(255, 255, 255, 0.5);
}
.clip:hover .trim-handle { opacity: 0.6; }
.clip.trimming { z-index: 10; }

.clip.v1-clip.drag-over-left::before {
  content: '';
  position: absolute;
  left: -2px; top: 0; bottom: 0; width: 2px;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-glow);
  z-index: 5;
}
.clip.v1-clip.drag-over-right::after {
  content: '';
  position: absolute;
  right: -2px; top: 0; bottom: 0; width: 2px;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-glow);
  z-index: 5;
}

.clip-icon { margin-right: 3px; font-size: 7px; }

@keyframes clipFlash {
  0% { filter: brightness(1.8); border-color: var(--accent-border-hover); }
  100% { filter: brightness(1); }
}
.clip.flash { animation: clipFlash 0.4s ease; }

/* Ghost clip preview */
.ghost-clip {
  position: absolute;
  top: 3px;
  height: 22px;
  background: var(--ghost-clip-bg);
  border: 1px dashed var(--ghost-clip-border);
  border-radius: var(--radius);
  pointer-events: none;
  display: none;
  align-items: center;
  padding: 0 8px;
  font-size: 7px;
  color: var(--ghost-clip-color);
  letter-spacing: 0.5px;
  font-family: var(--mono);
}

/* Playhead */
.playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-primary);
  z-index: 50;
  cursor: col-resize;
  pointer-events: auto;
  box-shadow: var(--playhead-shadow);
  will-change: left;
}
.playhead::before {
  content: '';
  position: absolute;
  top: -6px; left: -5px;
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--accent-primary);
}

/* Zoom control */
.zoom-control { display: flex; align-items: center; gap: 8px; margin-left: 16px; }
.zoom-label { font-size: 7px; letter-spacing: 2px; color: var(--text-muted); text-transform: uppercase; font-family: var(--mono); }
.zoom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 2px;
  background: var(--scrollbar-thumb);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px; height: 10px;
  background: var(--text-secondary);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}
.zoom-slider::-webkit-slider-thumb:hover { background: var(--text-primary); box-shadow: 0 0 8px var(--accent-glow); }
.zoom-slider::-moz-range-thumb {
  width: 10px; height: 10px;
  background: var(--text-secondary);
  border-radius: 50%;
  border: none;
  cursor: pointer;
}
.zoom-pct { font-size: 7px; letter-spacing: 1.5px; color: var(--text-muted); min-width: 30px; font-variant-numeric: tabular-nums; font-family: var(--mono); }

/* Keyboard legend */
.kbd-legend {
  position: fixed;
  bottom: calc(var(--timeline-h) + 50px);
  right: 16px;
  z-index: 95;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--bg-kbd-legend);
  border: 1px solid var(--border-kbd);
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--text-secondary);
  line-height: 2;
  pointer-events: auto;
  transition: opacity 0.3s;
  border-radius: var(--radius);
}
.kbd-legend-title {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border-kbd);
  padding-bottom: 4px;
}
.kbd-legend kbd {
  display: inline-block;
  background: var(--bg-kbd-key);
  border: 1px solid var(--border-kbd-key);
  border-radius: var(--radius);
  padding: 1px 5px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--text-primary);
  margin-right: 4px;
  min-width: 18px;
  text-align: center;
}
.kbd-legend .kbd-row { display: flex; justify-content: space-between; gap: 12px; }
.kbd-legend .kbd-action { color: var(--text-secondary); opacity: 0.6; }
.util-buttons {
  position: fixed;
  bottom: calc(var(--timeline-h) + 12px);
  right: 12px;
  z-index: 96;
  display: flex;
  gap: 6px;
}
.kbd-legend-toggle {
  background: var(--bg-folder);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  color: #fff;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 3px;
  padding: 8px 14px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s;
  border-radius: var(--radius);
  mix-blend-mode: difference;
  user-select: none;
}
.kbd-legend-toggle:hover { background: var(--bg-folder-hover); }

/* Footer */
.timeline-footer {
  display: flex;
  justify-content: space-between;
  padding: 5px 20px;
  background: var(--bg-timeline-footer);
  border-top: 1px solid var(--border-secondary);
  font-size: 7px;
  letter-spacing: 3px;
  color: var(--footer-color);
  text-transform: uppercase;
  flex-shrink: 0;
  font-family: var(--mono);
}
.timeline-footer a {
  color: var(--footer-link);
  text-decoration: none;
  transition: color 0.3s;
}
.timeline-footer a:hover { color: var(--footer-link-hover); }

/* ── CONTACT OVERLAY ── */
.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.contact-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px) saturate(0.6);
  -webkit-backdrop-filter: blur(20px) saturate(0.6);
}
.contact-glass {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 80px;
  background: var(--bg-contact-glass);
  border: 1px solid var(--border-contact-glass);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  max-width: 500px;
  width: 90%;
  border-radius: var(--radius);
}
.contact-pause-icon {
  font-size: 28px;
  letter-spacing: 6px;
  color: var(--contact-text-ghost);
  margin-bottom: 32px;
  font-family: var(--mono);
}
.contact-logo {
  font-family: 'FK Raster', var(--mono);
  font-size: 18px;
  letter-spacing: 6px;
  color: var(--contact-text-primary);
  margin-bottom: 8px;
}
.contact-tagline {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--contact-text-muted);
  text-transform: uppercase;
  margin-bottom: 0;
}
.contact-divider {
  width: 40px;
  height: 1px;
  background: var(--contact-divider);
  margin: 32px auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  text-align: left;
}
.contact-block { display: flex; flex-direction: column; gap: 4px; }
.contact-label {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--contact-text-dim);
}
.contact-value {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--contact-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
a.contact-value:hover { color: var(--contact-hover-color); }
.contact-resume {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--contact-text-ghost);
  animation: contactPulse 2s ease-in-out infinite;
}
@keyframes contactPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* ── THEME PICKER ── */
.theme-panel {
  position: fixed;
  bottom: calc(var(--timeline-h) + 50px);
  right: 155px;
  z-index: 97;
  background: var(--theme-picker-bg);
  border: 1px solid var(--theme-picker-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 10px 0;
  min-width: 180px;
  border-radius: var(--radius);
}
.theme-panel-title {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--theme-picker-title);
  padding: 0 14px 8px;
  border-bottom: 1px solid var(--theme-picker-border);
  margin-bottom: 6px;
}
.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--theme-picker-color);
  border-left: 2px solid transparent;
}
.theme-option:hover { background: var(--theme-picker-item-hover); color: var(--text-primary); }
.theme-option.active {
  border-left-color: var(--theme-picker-active-color);
  background: var(--theme-picker-active-bg);
  color: var(--theme-picker-active-color);
}
.theme-swatch {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.15);
}
.swatch-negative { background: linear-gradient(135deg, #000 50%, #d4a853 50%); }
.swatch-resolve { background: linear-gradient(135deg, #1a1a1a 50%, #FF6600 50%); }
.swatch-premiere { background: linear-gradient(135deg, #1e1e2e 50%, #00a2ff 50%); }
.swatch-cyberpunk { background: linear-gradient(135deg, #000 33%, #00ff00 33%, #00ff00 66%, #ff00ff 66%); }
.swatch-matrix { background: linear-gradient(135deg, #000 50%, #00ff41 50%); }

/* ── MATRIX RAIN CANVAS ── */
#matrixRain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  display: none;
  opacity: 0.18;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  :root { --timeline-h: 300px; }
  #source-bin { position: relative; bottom: auto; height: auto; min-height: 50vh; overflow: auto; display: flex; flex-wrap: wrap; padding: 16px 12px; gap: 4px 2px; }
  .source-thumb { position: relative !important; left: auto !important; top: auto !important; width: 72px; }
  #preview-monitor { top: 0; left: 0; right: 0; bottom: var(--timeline-h); }
  .sprocket::before, .sprocket::after { display: none; }
  .util-buttons { right: 8px; gap: 4px; }
  #kbdToggle.kbd-legend-toggle { display: none; }
}

/* ══════════════════════════════════════════════════════════
   THEME OVERRIDES
══════════════════════════════════════════════════════════ */

/* ── THEME: DaVinci Resolve ── */
body.theme-resolve {
  --mono: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --bg-body: #2a2a2a;
  --color-body: #cccccc;
  --bg-source-bin: #252525;
  --bg-timeline: rgba(42, 42, 42, 0.97);
  --bg-timeline-backdrop: saturate(1.0);
  --bg-transport: rgba(26, 26, 26, 0.98);
  --bg-track-header: rgba(34, 34, 34, 0.95);
  --bg-ruler: rgba(34, 34, 34, 0.95);
  --bg-media-panel: rgba(37, 37, 37, 0.97);
  --bg-kbd-legend: rgba(30, 30, 30, 0.95);
  --bg-kbd-toggle: rgba(30, 30, 30, 0.9);
  --bg-transport-btn: rgba(55, 55, 55, 0.7);
  --bg-transport-btn-hover: rgba(70, 70, 70, 0.9);
  --bg-load-reel-btn: rgba(255, 102, 0, 0.12);
  --bg-load-reel-btn-hover: rgba(255, 102, 0, 0.22);
  --bg-folder: rgba(55, 55, 55, 0.5);
  --bg-folder-hover: rgba(70, 70, 70, 0.7);
  --bg-folder-active: rgba(80, 80, 80, 0.8);
  --bg-contact-glass: rgba(37, 37, 37, 0.8);
  --bg-kbd-key: rgba(60, 60, 60, 0.8);
  --bg-timeline-footer: rgba(30, 30, 30, 0.5);

  --text-primary: rgba(204, 204, 204, 0.95);
  --text-secondary: rgba(170, 170, 170, 0.7);
  --text-muted: rgba(140, 140, 140, 0.6);
  --text-dim: rgba(110, 110, 110, 0.5);
  --text-ghost: rgba(90, 90, 90, 0.4);

  --accent-primary: #FF6600;
  --accent-glow: rgba(255, 102, 0, 0.35);
  --accent-glow-strong: rgba(255, 102, 0, 0.6);
  --accent-bg: rgba(255, 102, 0, 0.1);
  --accent-bg-hover: rgba(255, 102, 0, 0.18);
  --accent-border: rgba(255, 102, 0, 0.3);
  --accent-border-hover: rgba(255, 102, 0, 0.55);
  --accent-text: rgba(255, 102, 0, 0.9);
  --accent-outline: rgba(255, 102, 0, 0.7);
  --accent-outline-bg: rgba(255, 102, 0, 0.15);

  --border-primary: rgba(60, 60, 60, 0.9);
  --border-secondary: rgba(50, 50, 50, 0.8);
  --border-dim: rgba(40, 40, 40, 0.7);
  --border-kbd: rgba(65, 65, 65, 0.7);
  --border-kbd-key: rgba(85, 85, 85, 0.8);
  --border-transport-btn: rgba(75, 75, 75, 0.6);
  --border-transport-btn-hover: rgba(100, 100, 100, 0.8);
  --border-contact-glass: rgba(65, 65, 65, 0.5);
  --border-clip: rgba(80, 80, 80, 0.4);

  /* Video tracks: teal/seafoam green — classic Resolve look */
  --track-video-bg: rgba(92, 181, 162, 0.1);
  --track-video-color: rgba(92, 181, 162, 0.75);
  --track-video-border: rgba(74, 154, 138, 0.15);
  /* Audio tracks: blue — NOT green */
  --track-audio-bg: rgba(91, 138, 173, 0.1);
  --track-audio-color: rgba(91, 138, 173, 0.75);
  --track-audio-border: rgba(74, 115, 145, 0.15);

  /* V1-V3: teal/seafoam green (main video clips) */
  --clip-v1-bg: rgba(92, 181, 162, 0.85);
  --clip-v1-color: rgba(255, 255, 255, 0.92);
  --clip-v1-border: rgba(74, 154, 138, 0.95);
  --clip-v2-bg: rgba(80, 165, 148, 0.8);
  --clip-v2-color: rgba(255, 255, 255, 0.85);
  --clip-v2-border: rgba(64, 138, 122, 0.9);
  --clip-v3-bg: rgba(70, 148, 132, 0.75);
  --clip-v3-color: rgba(255, 255, 255, 0.8);
  --clip-v3-border: rgba(56, 122, 108, 0.85);
  /* V4: pink/magenta (text/title clips) */
  --clip-v4-bg: rgba(196, 74, 138, 0.85);
  --clip-v4-color: rgba(255, 255, 255, 0.92);
  --clip-v4-border: rgba(165, 55, 115, 0.95);
  /* V5: teal variant */
  --clip-v5-bg: rgba(60, 132, 118, 0.7);
  --clip-v5-color: rgba(255, 255, 255, 0.75);
  --clip-v5-border: rgba(46, 108, 95, 0.8);
  /* A1-A5: blue (audio tracks — NOT green) */
  --clip-a1-bg: rgba(91, 138, 173, 0.85);
  --clip-a1-color: rgba(255, 255, 255, 0.92);
  --clip-a1-border: rgba(74, 115, 145, 0.95);
  --clip-a2-bg: rgba(80, 122, 155, 0.8);
  --clip-a2-color: rgba(255, 255, 255, 0.85);
  --clip-a2-border: rgba(64, 100, 130, 0.9);
  --clip-a3-bg: rgba(70, 108, 138, 0.75);
  --clip-a3-color: rgba(255, 255, 255, 0.8);
  --clip-a3-border: rgba(56, 88, 115, 0.85);
  --clip-a4-bg: rgba(60, 95, 122, 0.65);
  --clip-a4-color: rgba(220, 235, 248, 0.75);
  --clip-a4-border: rgba(48, 78, 102, 0.7);
  --clip-a5-bg: rgba(50, 82, 108, 0.55);
  --clip-a5-color: rgba(200, 218, 235, 0.65);
  --clip-a5-border: transparent;

  --drop-highlight-bg: rgba(92, 181, 162, 0.08);
  --drop-highlight-border: rgba(92, 181, 162, 0.4);
  --ghost-clip-bg: rgba(92, 181, 162, 0.14);
  --ghost-clip-border: rgba(92, 181, 162, 0.5);
  --ghost-clip-color: rgba(92, 181, 162, 0.6);

  --marquee-border: rgba(255, 102, 0, 0.6);
  --marquee-bg: rgba(255, 102, 0, 0.08);

  /* Ruler: dark ticks on the tan/khaki ruler background */
  --ruler-mark-minor: rgba(255, 255, 255, 0.15);
  --ruler-mark-major: rgba(255, 255, 255, 0.3);
  --ruler-label-color: rgba(255, 255, 255, 0.5);
  --scrollbar-thumb: rgba(75, 75, 75, 0.6);
  --resize-handle-bar: rgba(70, 70, 70, 0.4);
  --resize-handle-bar-hover: rgba(110, 110, 110, 0.7);
  --radius: 2px;

  --contact-text-primary: #cccccc;
  --contact-text-secondary: rgba(200, 200, 200, 0.9);
  --contact-text-muted: rgba(160, 160, 160, 0.5);
  --contact-text-dim: rgba(140, 140, 140, 0.5);
  --contact-text-ghost: rgba(110, 110, 110, 0.4);
  --contact-hover-color: #FF6600;
  --contact-divider: rgba(75, 75, 75, 0.5);

  --loader-bg: #2a2a2a;
  --loader-stroke: #FF6600;
  --loader-text: #cccccc;
  --loader-ratio: #777;

  --footer-color: rgba(130, 130, 130, 0.4);
  --footer-link: rgba(140, 140, 140, 0.5);
  --footer-link-hover: rgba(255, 102, 0, 0.9);

  --media-panel-item-color: #999;
  --media-panel-item-hover-color: #ccc;
  --media-panel-item-hover-bg: rgba(70, 70, 70, 0.4);
  --media-panel-header-color: #666;
  --media-panel-duration-color: #555;
  --media-panel-border: rgba(60, 60, 60, 0.6);

  --nav-bg: rgba(42, 42, 42, 0.85);
  --nav-bg-hover: rgba(55, 55, 55, 0.95);
  --monitor-name-color: #cccccc;
  --monitor-type-color: #777;
  --monitor-tc-color: #aaa;
  --export-progress-track: rgba(60, 60, 60, 0.5);
  --export-progress-fill: #FF6600;
  --export-status-color: #cccccc;
  --grain-opacity: 0.015;
  --speed-text-shadow: 0 0 10px var(--accent-glow);
  --playhead-shadow: 0 0 8px rgba(255, 51, 51, 0.6), 0 0 16px rgba(255, 51, 51, 0.2);

  --theme-picker-bg: rgba(30, 30, 30, 0.97);
  --theme-picker-border: rgba(65, 65, 65, 0.7);
  --theme-picker-color: rgba(160, 160, 160, 0.8);
  --theme-picker-title: rgba(120, 120, 120, 0.6);
  --theme-picker-item-hover: rgba(55, 55, 55, 0.6);
  --theme-picker-active-color: #FF6600;
  --theme-picker-active-bg: rgba(255, 102, 0, 0.1);
  --theme-picker-active-border: rgba(255, 102, 0, 0.5);
  --waveform-color: rgba(0,0,0,0.25);
}

/* Resolve nav — disable mix-blend-mode since bg is dark gray not black */
body.theme-resolve nav a { mix-blend-mode: normal; color: #ccc; }
body.theme-resolve nav a:hover { color: #fff; }
/* Resolve playhead — red, thin, matte */
body.theme-resolve .playhead { background: #ff3333; box-shadow: 0 0 8px rgba(255,51,51,0.5), 0 0 16px rgba(255,51,51,0.15); }
body.theme-resolve .playhead::before { border-top-color: #ff3333; }
body.theme-resolve .ruler-playhead { background: #ff3333; box-shadow: 0 0 6px rgba(255,51,51,0.5); }
body.theme-resolve .ruler-playhead::after { border-bottom-color: #ff3333; }

/* ── THEME: Premiere Pro ── */
body.theme-premiere {
  --mono: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --bg-body: #1e1e1e;
  --color-body: #b0b0b0;
  --bg-source-bin: #1e1e1e;
  --bg-timeline: rgba(30, 30, 30, 0.97);
  --bg-timeline-backdrop: saturate(1.05);
  --bg-transport: rgba(22, 22, 22, 0.98);
  --bg-track-header: rgba(42, 42, 42, 0.95);
  --bg-ruler: rgba(22, 22, 22, 0.98);
  --bg-media-panel: rgba(32, 32, 32, 0.97);
  --bg-kbd-legend: rgba(24, 24, 24, 0.95);
  --bg-kbd-toggle: rgba(24, 24, 24, 0.9);
  --bg-transport-btn: rgba(50, 50, 50, 0.6);
  --bg-transport-btn-hover: rgba(65, 65, 65, 0.8);
  --bg-load-reel-btn: rgba(0, 120, 215, 0.1);
  --bg-load-reel-btn-hover: rgba(0, 120, 215, 0.2);
  --bg-folder: rgba(48, 48, 48, 0.5);
  --bg-folder-hover: rgba(62, 62, 62, 0.7);
  --bg-folder-active: rgba(72, 72, 72, 0.8);
  --bg-contact-glass: rgba(32, 32, 32, 0.8);
  --bg-kbd-key: rgba(52, 52, 52, 0.8);
  --bg-timeline-footer: rgba(22, 22, 22, 0.5);

  /* Neutral gray text — no blue tint */
  --text-primary: rgba(176, 176, 176, 0.95);
  --text-secondary: rgba(150, 150, 150, 0.7);
  --text-muted: rgba(120, 120, 120, 0.6);
  --text-dim: rgba(95, 95, 95, 0.5);
  --text-ghost: rgba(75, 75, 75, 0.4);

  /* Proper Premiere blue #0078d7 */
  --accent-primary: #0078d7;
  --accent-glow: rgba(0, 120, 215, 0.3);
  --accent-glow-strong: rgba(0, 120, 215, 0.55);
  --accent-bg: rgba(0, 120, 215, 0.1);
  --accent-bg-hover: rgba(0, 120, 215, 0.18);
  --accent-border: rgba(0, 120, 215, 0.3);
  --accent-border-hover: rgba(0, 120, 215, 0.55);
  --accent-text: rgba(0, 120, 215, 0.9);
  --accent-outline: rgba(0, 120, 215, 0.7);
  --accent-outline-bg: rgba(0, 120, 215, 0.15);

  /* Neutral dark borders */
  --border-primary: rgba(55, 55, 55, 0.85);
  --border-secondary: rgba(46, 46, 46, 0.75);
  --border-dim: rgba(38, 38, 38, 0.65);
  --border-kbd: rgba(58, 58, 58, 0.68);
  --border-kbd-key: rgba(72, 72, 72, 0.75);
  --border-transport-btn: rgba(62, 62, 62, 0.55);
  --border-transport-btn-hover: rgba(78, 78, 78, 0.75);
  --border-contact-glass: rgba(58, 58, 58, 0.45);
  --border-clip: rgba(65, 65, 65, 0.5);

  /* Video track lanes: yellow tint (primary Premiere clip color) */
  --track-video-bg: rgba(212, 180, 74, 0.1);
  --track-video-color: rgba(212, 180, 74, 0.75);
  --track-video-border: rgba(180, 150, 55, 0.15);
  /* Audio track lanes: cyan tint */
  --track-audio-bg: rgba(74, 188, 212, 0.1);
  --track-audio-color: rgba(74, 188, 212, 0.75);
  --track-audio-border: rgba(55, 160, 180, 0.15);

  /* Multi-colored video clips — Premiere's signature look */
  /* V1: Yellow/gold — default video clips */
  --clip-v1-bg: rgba(212, 180, 74, 0.88);
  --clip-v1-color: rgba(255, 255, 255, 0.92);
  --clip-v1-border: rgba(180, 150, 55, 0.95);
  /* V2: Pink/magenta — secondary clips */
  --clip-v2-bg: rgba(212, 74, 138, 0.88);
  --clip-v2-color: rgba(255, 255, 255, 0.92);
  --clip-v2-border: rgba(180, 55, 115, 0.95);
  /* V3: Cyan — nested/linked clips */
  --clip-v3-bg: rgba(74, 188, 212, 0.88);
  --clip-v3-color: rgba(255, 255, 255, 0.92);
  --clip-v3-border: rgba(55, 160, 180, 0.95);
  /* V4: Purple/violet — adjustment layers */
  --clip-v4-bg: rgba(138, 106, 170, 0.88);
  --clip-v4-color: rgba(255, 255, 255, 0.92);
  --clip-v4-border: rgba(115, 85, 145, 0.95);
  /* V5: Green — graphics/titles */
  --clip-v5-bg: rgba(74, 170, 90, 0.88);
  --clip-v5-color: rgba(255, 255, 255, 0.92);
  --clip-v5-border: rgba(55, 145, 70, 0.95);
  /* A1-A5: Cyan/teal — all audio tracks */
  --clip-a1-bg: rgba(74, 188, 212, 0.82);
  --clip-a1-color: rgba(255, 255, 255, 0.92);
  --clip-a1-border: rgba(55, 160, 180, 0.95);
  --clip-a2-bg: rgba(65, 172, 195, 0.75);
  --clip-a2-color: rgba(255, 255, 255, 0.85);
  --clip-a2-border: rgba(48, 145, 165, 0.88);
  --clip-a3-bg: rgba(56, 155, 178, 0.68);
  --clip-a3-color: rgba(255, 255, 255, 0.8);
  --clip-a3-border: rgba(42, 130, 150, 0.8);
  --clip-a4-bg: rgba(48, 138, 160, 0.58);
  --clip-a4-color: rgba(220, 245, 252, 0.75);
  --clip-a4-border: rgba(36, 115, 135, 0.68);
  --clip-a5-bg: rgba(40, 122, 142, 0.48);
  --clip-a5-color: rgba(200, 235, 245, 0.65);
  --clip-a5-border: transparent;

  --drop-highlight-bg: rgba(0, 120, 215, 0.06);
  --drop-highlight-border: rgba(0, 120, 215, 0.3);
  --ghost-clip-bg: rgba(212, 180, 74, 0.12);
  --ghost-clip-border: rgba(212, 180, 74, 0.45);
  --ghost-clip-color: rgba(212, 180, 74, 0.6);

  --marquee-border: rgba(0, 120, 215, 0.6);
  --marquee-bg: rgba(0, 120, 215, 0.08);

  /* Dark ruler, neutral marks */
  --ruler-mark-minor: rgba(75, 75, 75, 0.7);
  --ruler-mark-major: rgba(115, 115, 115, 0.75);
  --ruler-label-color: rgba(140, 140, 140, 0.75);
  --scrollbar-thumb: rgba(65, 65, 65, 0.6);
  --resize-handle-bar: rgba(62, 62, 62, 0.35);
  --resize-handle-bar-hover: rgba(92, 92, 92, 0.6);
  --radius: 3px;

  --contact-text-primary: #b0b0b0;
  --contact-text-secondary: rgba(176, 176, 176, 0.9);
  --contact-text-muted: rgba(140, 140, 140, 0.5);
  --contact-text-dim: rgba(120, 120, 120, 0.5);
  --contact-text-ghost: rgba(95, 95, 95, 0.4);
  --contact-hover-color: #0078d7;
  --contact-divider: rgba(62, 62, 62, 0.5);

  --loader-bg: #1e1e1e;
  --loader-stroke: #0078d7;
  --loader-text: #b0b0b0;
  --loader-ratio: #666;

  --footer-color: rgba(115, 115, 115, 0.4);
  --footer-link: rgba(125, 125, 125, 0.5);
  --footer-link-hover: rgba(0, 120, 215, 0.9);

  --media-panel-item-color: #828282;
  --media-panel-item-hover-color: #b0b0b0;
  --media-panel-item-hover-bg: rgba(58, 58, 58, 0.4);
  --media-panel-header-color: #595959;
  --media-panel-duration-color: #4e4e4e;
  --media-panel-border: rgba(52, 52, 52, 0.6);

  --nav-bg: rgba(32, 32, 32, 0.85);
  --nav-bg-hover: rgba(45, 45, 45, 0.95);
  --monitor-name-color: #b0b0b0;
  --monitor-type-color: #707070;
  /* Green timecode — very distinctive Premiere look */
  --monitor-tc-color: #00e000;
  --export-progress-track: rgba(52, 52, 52, 0.5);
  --export-progress-fill: #0078d7;
  --export-status-color: #b0b0b0;
  --grain-opacity: 0.015;
  --speed-text-shadow: 0 0 10px var(--accent-glow);
  --playhead-shadow: 0 0 8px rgba(212, 180, 74, 0.6), 0 0 16px rgba(212, 180, 74, 0.2);

  --theme-picker-bg: rgba(24, 24, 24, 0.97);
  --theme-picker-border: rgba(58, 58, 58, 0.7);
  --theme-picker-color: rgba(145, 145, 145, 0.8);
  --theme-picker-title: rgba(105, 105, 105, 0.6);
  --theme-picker-item-hover: rgba(46, 46, 46, 0.6);
  --theme-picker-active-color: #0078d7;
  --theme-picker-active-bg: rgba(0, 120, 215, 0.1);
  --theme-picker-active-border: rgba(0, 120, 215, 0.5);
  --waveform-color: rgba(0,0,0,0.2);
}

body.theme-premiere nav a { mix-blend-mode: normal; color: #888888; }
body.theme-premiere nav a:hover { color: #b0b0b0; }
/* Premiere playhead — yellow/gold line */
body.theme-premiere .playhead { background: #d4b44a; box-shadow: 0 0 8px rgba(212,180,74,0.55), 0 0 16px rgba(212,180,74,0.15); }
body.theme-premiere .playhead::before { border-top-color: #d4b44a; }
body.theme-premiere .ruler-playhead { background: #d4b44a; box-shadow: 0 0 6px rgba(212,180,74,0.55); }
body.theme-premiere .ruler-playhead::after { border-bottom-color: #d4b44a; }

/* ── THEME: Cyberpunk Winamp ── */
body.theme-cyberpunk {
  --mono: 'Comic Sans MS', 'Chalkboard SE', 'Bradley Hand', cursive;
  --bg-body: #0a0a0a;
  --color-body: #00ff00;
  --bg-source-bin: #050505;
  --bg-timeline: rgba(10, 10, 10, 0.98);
  --bg-timeline-backdrop: saturate(2.0);
  --bg-transport: rgba(185, 185, 185, 0.12);
  --bg-track-header: rgba(180, 180, 180, 0.08);
  --bg-ruler: rgba(12, 12, 12, 0.98);
  --bg-media-panel: rgba(15, 15, 15, 0.97);
  --bg-kbd-legend: rgba(10, 10, 10, 0.95);
  --bg-kbd-toggle: rgba(10, 10, 10, 0.9);
  --bg-transport-btn: rgba(180, 180, 180, 0.1);
  --bg-transport-btn-hover: rgba(0, 255, 0, 0.1);
  --bg-load-reel-btn: rgba(0, 255, 0, 0.08);
  --bg-load-reel-btn-hover: rgba(0, 255, 0, 0.15);
  --bg-folder: rgba(30, 30, 30, 0.8);
  --bg-folder-hover: rgba(0, 255, 0, 0.08);
  --bg-folder-active: rgba(0, 255, 0, 0.12);
  --bg-contact-glass: rgba(10, 10, 10, 0.9);
  --bg-kbd-key: rgba(40, 40, 40, 0.8);
  --bg-timeline-footer: rgba(10, 10, 10, 0.5);

  --text-primary: #00ff00;
  --text-secondary: rgba(0, 255, 0, 0.7);
  --text-muted: rgba(0, 255, 0, 0.4);
  --text-dim: rgba(0, 255, 0, 0.25);
  --text-ghost: rgba(0, 255, 0, 0.12);

  --accent-primary: #00ff00;
  --accent-glow: rgba(0, 255, 0, 0.4);
  --accent-glow-strong: rgba(0, 255, 0, 0.7);
  --accent-bg: rgba(0, 255, 0, 0.08);
  --accent-bg-hover: rgba(0, 255, 0, 0.15);
  --accent-border: rgba(0, 255, 0, 0.4);
  --accent-border-hover: rgba(0, 255, 0, 0.7);
  --accent-text: #00ff00;
  --accent-outline: rgba(255, 0, 255, 0.7);
  --accent-outline-bg: rgba(255, 0, 255, 0.1);

  --border-primary: rgba(0, 255, 0, 0.2);
  --border-secondary: rgba(0, 255, 0, 0.12);
  --border-dim: rgba(0, 255, 0, 0.07);
  --border-kbd: rgba(0, 255, 0, 0.25);
  --border-kbd-key: rgba(0, 255, 0, 0.35);
  --border-transport-btn: rgba(0, 255, 0, 0.25);
  --border-transport-btn-hover: rgba(0, 255, 0, 0.5);
  --border-contact-glass: rgba(0, 255, 0, 0.25);
  --border-clip: rgba(0, 255, 0, 0.25);

  --track-video-bg: rgba(0, 255, 255, 0.08);
  --track-video-color: #00ffff;
  --track-video-border: rgba(0, 255, 255, 0.3);
  --track-audio-bg: rgba(255, 0, 255, 0.08);
  --track-audio-color: #ff00ff;
  --track-audio-border: rgba(255, 0, 255, 0.3);

  --clip-v1-bg: rgba(0, 255, 0, 0.08);
  --clip-v1-color: #00ff00;
  --clip-v1-border: rgba(0, 255, 0, 0.4);
  --clip-v2-bg: rgba(0, 255, 255, 0.08);
  --clip-v2-color: #00ffff;
  --clip-v2-border: rgba(0, 255, 255, 0.3);
  --clip-v3-bg: rgba(255, 255, 0, 0.07);
  --clip-v3-color: #ffff00;
  --clip-v3-border: rgba(255, 255, 0, 0.3);
  --clip-v4-bg: rgba(255, 0, 255, 0.08);
  --clip-v4-color: #ff00ff;
  --clip-v4-border: rgba(255, 0, 255, 0.35);
  --clip-v5-bg: rgba(255, 128, 0, 0.08);
  --clip-v5-color: #ff8800;
  --clip-v5-border: rgba(255, 128, 0, 0.3);
  --clip-a1-bg: rgba(255, 0, 255, 0.08);
  --clip-a1-color: #ff00ff;
  --clip-a1-border: rgba(255, 0, 255, 0.4);
  --clip-a2-bg: rgba(0, 255, 255, 0.07);
  --clip-a2-color: #00ffff;
  --clip-a2-border: rgba(0, 255, 255, 0.3);
  --clip-a3-bg: rgba(0, 255, 0, 0.06);
  --clip-a3-color: rgba(0, 255, 0, 0.7);
  --clip-a3-border: rgba(0, 255, 0, 0.25);
  --clip-a4-bg: rgba(0, 255, 0, 0.05);
  --clip-a4-color: rgba(0, 255, 0, 0.55);
  --clip-a4-border: transparent;
  --clip-a5-bg: rgba(0, 255, 0, 0.04);
  --clip-a5-color: rgba(0, 255, 0, 0.45);
  --clip-a5-border: transparent;

  --drop-highlight-bg: rgba(0, 255, 0, 0.06);
  --drop-highlight-border: #00ff00;
  --ghost-clip-bg: rgba(0, 255, 0, 0.06);
  --ghost-clip-border: #00ff00;
  --ghost-clip-color: rgba(0, 255, 0, 0.6);

  --marquee-border: #ff00ff;
  --marquee-bg: rgba(255, 0, 255, 0.08);

  --ruler-mark-minor: rgba(0, 255, 0, 0.15);
  --ruler-mark-major: rgba(0, 255, 0, 0.4);
  --ruler-label-color: rgba(0, 255, 0, 0.5);
  --scrollbar-thumb: rgba(0, 255, 0, 0.2);
  --resize-handle-bar: rgba(0, 255, 0, 0.2);
  --resize-handle-bar-hover: rgba(0, 255, 0, 0.5);
  --radius: 0px;

  --contact-text-primary: #00ff00;
  --contact-text-secondary: rgba(0, 255, 0, 0.85);
  --contact-text-muted: rgba(0, 255, 0, 0.4);
  --contact-text-dim: rgba(0, 255, 0, 0.3);
  --contact-text-ghost: rgba(0, 255, 0, 0.15);
  --contact-hover-color: #ff00ff;
  --contact-divider: rgba(0, 255, 0, 0.2);

  --loader-bg: #000;
  --loader-stroke: #00ff00;
  --loader-text: #00ff00;
  --loader-ratio: rgba(0, 255, 0, 0.4);

  --footer-color: rgba(0, 255, 0, 0.3);
  --footer-link: rgba(0, 255, 0, 0.4);
  --footer-link-hover: #ff00ff;

  --media-panel-item-color: rgba(0, 255, 0, 0.7);
  --media-panel-item-hover-color: #00ff00;
  --media-panel-item-hover-bg: rgba(0, 255, 0, 0.06);
  --media-panel-header-color: rgba(0, 255, 0, 0.4);
  --media-panel-duration-color: rgba(255, 0, 255, 0.5);
  --media-panel-border: rgba(0, 255, 0, 0.15);

  --nav-bg: rgba(10, 10, 10, 0.9);
  --nav-bg-hover: rgba(0, 255, 0, 0.08);
  --monitor-name-color: #00ff00;
  --monitor-type-color: rgba(0, 255, 255, 0.7);
  --monitor-tc-color: rgba(0, 255, 0, 0.7);
  --export-progress-track: rgba(0, 255, 0, 0.1);
  --export-progress-fill: #00ff00;
  --export-status-color: #00ff00;
  --grain-opacity: 0;
  --clip-text-shadow: 0 0 6px currentColor;
  --speed-text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
  --playhead-shadow: 0 0 12px rgba(0,255,0,0.8), 0 0 24px rgba(0,255,0,0.4);

  --theme-picker-bg: rgba(8, 8, 8, 0.97);
  --theme-picker-border: rgba(0, 255, 0, 0.25);
  --theme-picker-color: rgba(0, 255, 0, 0.65);
  --theme-picker-title: rgba(0, 255, 0, 0.35);
  --theme-picker-item-hover: rgba(0, 255, 0, 0.05);
  --theme-picker-active-color: #00ff00;
  --theme-picker-active-bg: rgba(0, 255, 0, 0.08);
  --theme-picker-active-border: #00ff00;
  --waveform-color: rgba(255,0,255,0.4);
}

/* Cyberpunk special effects */
body.theme-cyberpunk::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.2) 3px,
    rgba(0, 0, 0, 0.2) 4px
  );
}

/* Cyberpunk nav */
body.theme-cyberpunk nav a {
  mix-blend-mode: normal;
  color: #00ff00;
  text-shadow: 0 0 8px #00ff00;
  border: 1px solid rgba(0, 255, 0, 0.3);
}

/* Cyberpunk XP-style transport bar */
body.theme-cyberpunk .transport-bar {
  background: linear-gradient(180deg, #c8c8c8 0%, #e8e8e8 15%, #d0d0d0 60%, #a0a0a0 100%) !important;
  border-top: 2px solid #eeeeee;
  border-left: 2px solid #eeeeee;
  border-bottom: 2px solid #666666;
  border-right: 2px solid #666666;
}

body.theme-cyberpunk .transport-btn {
  background: linear-gradient(180deg, #e0e0e0 0%, #c8c8c8 100%);
  border-top: 2px solid #f0f0f0;
  border-left: 2px solid #f0f0f0;
  border-bottom: 2px solid #707070;
  border-right: 2px solid #707070;
  color: #006600;
  font-family: 'Comic Sans MS', cursive;
  text-shadow: 0 0 4px rgba(0, 128, 0, 0.4);
  border-radius: 0;
}
body.theme-cyberpunk .transport-btn:hover {
  background: linear-gradient(180deg, #f0f0f0 0%, #d8d8d8 100%);
  color: #00cc00;
  text-shadow: 0 0 6px rgba(0, 200, 0, 0.5);
}
body.theme-cyberpunk .transport-btn:active {
  border-top-color: #707070;
  border-left-color: #707070;
  border-bottom-color: #f0f0f0;
  border-right-color: #f0f0f0;
}

/* Cyberpunk track headers - brushed steel */
body.theme-cyberpunk .track-header {
  background: linear-gradient(90deg, #b8b8b8 0%, #d8d8d8 30%, #c0c0c0 70%, #a8a8a8 100%);
  border-right: 2px solid #888;
  border-bottom: 1px solid #999;
}
body.theme-cyberpunk .track-name.video {
  background: #003300;
  color: #00ff00;
  border: 1px solid #00aa00;
  text-shadow: 0 0 4px #00ff00;
}
body.theme-cyberpunk .track-name.audio {
  background: #220022;
  color: #ff00ff;
  border: 1px solid #aa00aa;
  text-shadow: 0 0 4px #ff00ff;
}
body.theme-cyberpunk .track-icon {
  color: #333;
}
body.theme-cyberpunk .track-icon:hover { color: #006600; }
body.theme-cyberpunk .track-meta { color: #555; }

/* Cyberpunk timeline border */
body.theme-cyberpunk .timeline-container {
  border-top: 3px solid #cccccc;
  border-top-color: #cccccc;
}

/* Cyberpunk load-reel/export buttons */
body.theme-cyberpunk .load-reel-btn {
  background: linear-gradient(180deg, #003300 0%, #002200 100%);
  border-top: 2px solid #00ff00;
  border-left: 2px solid #00ff00;
  border-bottom: 2px solid #005500;
  border-right: 2px solid #005500;
  color: #00ff00;
  text-shadow: 0 0 6px #00ff00;
  border-radius: 0;
}
body.theme-cyberpunk .load-reel-btn:hover {
  background: linear-gradient(180deg, #004400 0%, #003300 100%);
  color: #00ff88;
  text-shadow: 0 0 10px #00ff88;
}

/* Cyberpunk speed indicator */
body.theme-cyberpunk .speed-indicator { text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00; }

/* Cyberpunk transport TC */
body.theme-cyberpunk .transport-tc { text-shadow: 0 0 6px rgba(0, 255, 0, 0.4); }

/* Cyberpunk playhead */
body.theme-cyberpunk .playhead {
  background: #ff00ff;
  box-shadow: 0 0 12px rgba(255, 0, 255, 0.8), 0 0 24px rgba(255, 0, 255, 0.4);
}
body.theme-cyberpunk .playhead::before { border-top-color: #ff00ff; }
body.theme-cyberpunk .ruler-playhead { background: #ff00ff; box-shadow: 0 0 8px rgba(255,0,255,0.6); }
body.theme-cyberpunk .ruler-playhead::after { border-bottom-color: #ff00ff; }

/* Cyberpunk kbd toggle buttons */
body.theme-cyberpunk .kbd-legend-toggle {
  border-width: 2px;
  border-style: solid;
  border-color: rgba(0, 255, 0, 0.4);
  color: #00ff00;
  text-shadow: 0 0 6px rgba(0, 255, 0, 0.5);
  border-radius: 0;
}

/* Winamp-style taskbar footer */
body.theme-cyberpunk .timeline-footer {
  background: linear-gradient(180deg, #b0b0b0 0%, #c8c8c8 30%, #b8b8b8 70%, #909090 100%);
  border-top: 2px solid #eeeeee;
  color: #003300;
}
body.theme-cyberpunk .timeline-footer a { color: #003300; }
body.theme-cyberpunk .timeline-footer a:hover { color: #ff00ff; text-shadow: 0 0 6px #ff00ff; }

/* Cyberpunk clip hover */
body.theme-cyberpunk .clip:hover { transform: scaleY(1.08); filter: brightness(1.3); }

/* ── THEME: The Matrix ── */
body.theme-matrix {
  --mono: 'Courier New', Courier, 'Lucida Console', monospace;
  --bg-body: #000000;
  --color-body: #00ff41;
  --bg-source-bin: rgba(0, 0, 0, 0.65);
  --bg-timeline: rgba(0, 5, 0, 0.95);
  --bg-timeline-backdrop: saturate(2.0);
  --bg-transport: rgba(0, 20, 0, 0.9);
  --bg-track-header: rgba(0, 15, 0, 0.9);
  --bg-ruler: rgba(0, 8, 0, 0.98);
  --bg-media-panel: rgba(0, 10, 0, 0.97);
  --bg-kbd-legend: rgba(0, 8, 0, 0.96);
  --bg-kbd-toggle: rgba(0, 8, 0, 0.92);
  --bg-transport-btn: rgba(0, 40, 0, 0.5);
  --bg-transport-btn-hover: rgba(0, 60, 0, 0.7);
  --bg-load-reel-btn: rgba(0, 255, 65, 0.08);
  --bg-load-reel-btn-hover: rgba(0, 255, 65, 0.15);
  --bg-folder: rgba(0, 30, 0, 0.7);
  --bg-folder-hover: rgba(0, 255, 65, 0.07);
  --bg-folder-active: rgba(0, 255, 65, 0.1);
  --bg-contact-glass: rgba(0, 10, 0, 0.9);
  --bg-kbd-key: rgba(0, 40, 0, 0.8);
  --bg-timeline-footer: rgba(0, 8, 0, 0.5);

  --text-primary: #00ff41;
  --text-secondary: rgba(0, 255, 65, 0.65);
  --text-muted: rgba(0, 255, 65, 0.38);
  --text-dim: rgba(0, 255, 65, 0.22);
  --text-ghost: rgba(0, 255, 65, 0.12);

  --accent-primary: #00ff41;
  --accent-glow: rgba(0, 255, 65, 0.35);
  --accent-glow-strong: rgba(0, 255, 65, 0.6);
  --accent-bg: rgba(0, 255, 65, 0.07);
  --accent-bg-hover: rgba(0, 255, 65, 0.13);
  --accent-border: rgba(0, 255, 65, 0.35);
  --accent-border-hover: rgba(0, 255, 65, 0.6);
  --accent-text: rgba(0, 255, 65, 0.9);
  --accent-outline: rgba(0, 255, 65, 0.6);
  --accent-outline-bg: rgba(0, 255, 65, 0.08);

  --border-primary: rgba(0, 255, 65, 0.15);
  --border-secondary: rgba(0, 255, 65, 0.09);
  --border-dim: rgba(0, 255, 65, 0.05);
  --border-kbd: rgba(0, 255, 65, 0.2);
  --border-kbd-key: rgba(0, 255, 65, 0.3);
  --border-transport-btn: rgba(0, 255, 65, 0.2);
  --border-transport-btn-hover: rgba(0, 255, 65, 0.45);
  --border-contact-glass: rgba(0, 255, 65, 0.2);
  --border-clip: rgba(0, 255, 65, 0.25);

  --track-video-bg: rgba(0, 255, 65, 0.05);
  --track-video-color: rgba(0, 255, 65, 0.75);
  --track-video-border: rgba(0, 255, 65, 0.2);
  --track-audio-bg: rgba(0, 200, 50, 0.05);
  --track-audio-color: rgba(0, 200, 50, 0.65);
  --track-audio-border: rgba(0, 200, 50, 0.18);

  --clip-v1-bg: rgba(0, 255, 65, 0.05);
  --clip-v1-color: #00ff41;
  --clip-v1-border: rgba(0, 255, 65, 0.4);
  --clip-v2-bg: rgba(0, 200, 50, 0.04);
  --clip-v2-color: rgba(0, 220, 55, 0.8);
  --clip-v2-border: rgba(0, 200, 50, 0.3);
  --clip-v3-bg: rgba(0, 180, 45, 0.04);
  --clip-v3-color: rgba(0, 200, 50, 0.7);
  --clip-v3-border: rgba(0, 180, 45, 0.25);
  --clip-v4-bg: rgba(0, 160, 40, 0.04);
  --clip-v4-color: rgba(0, 180, 45, 0.65);
  --clip-v4-border: rgba(0, 160, 40, 0.22);
  --clip-v5-bg: rgba(0, 140, 35, 0.04);
  --clip-v5-color: rgba(0, 160, 40, 0.6);
  --clip-v5-border: rgba(0, 140, 35, 0.2);
  --clip-a1-bg: rgba(0, 255, 65, 0.05);
  --clip-a1-color: #00ff41;
  --clip-a1-border: rgba(0, 255, 65, 0.35);
  --clip-a2-bg: rgba(0, 210, 55, 0.04);
  --clip-a2-color: rgba(0, 230, 60, 0.75);
  --clip-a2-border: rgba(0, 210, 55, 0.28);
  --clip-a3-bg: rgba(0, 180, 45, 0.04);
  --clip-a3-color: rgba(0, 200, 50, 0.65);
  --clip-a3-border: rgba(0, 180, 45, 0.22);
  --clip-a4-bg: rgba(0, 150, 40, 0.04);
  --clip-a4-color: rgba(0, 170, 45, 0.55);
  --clip-a4-border: transparent;
  --clip-a5-bg: rgba(0, 130, 35, 0.03);
  --clip-a5-color: rgba(0, 150, 40, 0.45);
  --clip-a5-border: transparent;

  --drop-highlight-bg: rgba(0, 255, 65, 0.05);
  --drop-highlight-border: rgba(0, 255, 65, 0.5);
  --ghost-clip-bg: rgba(0, 255, 65, 0.04);
  --ghost-clip-border: rgba(0, 255, 65, 0.5);
  --ghost-clip-color: rgba(0, 255, 65, 0.5);

  --marquee-border: rgba(0, 255, 65, 0.6);
  --marquee-bg: rgba(0, 255, 65, 0.06);

  --ruler-mark-minor: rgba(0, 255, 65, 0.12);
  --ruler-mark-major: rgba(0, 255, 65, 0.3);
  --ruler-label-color: rgba(0, 255, 65, 0.4);
  --scrollbar-thumb: rgba(0, 255, 65, 0.15);
  --resize-handle-bar: rgba(0, 255, 65, 0.15);
  --resize-handle-bar-hover: rgba(0, 255, 65, 0.4);
  --radius: 0px;

  --contact-text-primary: #00ff41;
  --contact-text-secondary: rgba(0, 255, 65, 0.85);
  --contact-text-muted: rgba(0, 255, 65, 0.38);
  --contact-text-dim: rgba(0, 255, 65, 0.28);
  --contact-text-ghost: rgba(0, 255, 65, 0.15);
  --contact-hover-color: #00ff41;
  --contact-divider: rgba(0, 255, 65, 0.18);

  --loader-bg: #000000;
  --loader-stroke: #00ff41;
  --loader-text: #00ff41;
  --loader-ratio: rgba(0, 255, 65, 0.4);

  --footer-color: rgba(0, 255, 65, 0.25);
  --footer-link: rgba(0, 255, 65, 0.35);
  --footer-link-hover: #00ff41;

  --media-panel-item-color: rgba(0, 200, 50, 0.7);
  --media-panel-item-hover-color: #00ff41;
  --media-panel-item-hover-bg: rgba(0, 255, 65, 0.05);
  --media-panel-header-color: rgba(0, 180, 45, 0.5);
  --media-panel-duration-color: rgba(0, 160, 40, 0.5);
  --media-panel-border: rgba(0, 255, 65, 0.12);

  --nav-bg: rgba(0, 10, 0, 0.85);
  --nav-bg-hover: rgba(0, 40, 0, 0.9);
  --monitor-name-color: #00ff41;
  --monitor-type-color: rgba(0, 200, 50, 0.6);
  --monitor-tc-color: rgba(0, 255, 65, 0.7);
  --monitor-screen-radius: 12px;
  --monitor-screen-shadow: 0 0 80px rgba(0, 255, 65, 0.18), inset 0 0 80px rgba(0, 0, 0, 0.6), 0 0 200px rgba(0, 255, 65, 0.05);
  --export-progress-track: rgba(0, 255, 65, 0.1);
  --export-progress-fill: #00ff41;
  --export-status-color: #00ff41;
  --grain-opacity: 0;
  --clip-text-shadow: 0 0 5px currentColor;
  --speed-text-shadow: 0 0 8px #00ff41, 0 0 16px #00ff41;
  --playhead-shadow: 0 0 12px rgba(0,255,65,0.8), 0 0 24px rgba(0,255,65,0.4);

  --theme-picker-bg: rgba(0, 6, 0, 0.97);
  --theme-picker-border: rgba(0, 255, 65, 0.18);
  --theme-picker-color: rgba(0, 200, 50, 0.7);
  --theme-picker-title: rgba(0, 180, 45, 0.4);
  --theme-picker-item-hover: rgba(0, 255, 65, 0.04);
  --theme-picker-active-color: #00ff41;
  --theme-picker-active-bg: rgba(0, 255, 65, 0.07);
  --theme-picker-active-border: rgba(0, 255, 65, 0.5);
  --waveform-color: rgba(0,255,65,0.35);
}

/* Matrix scanlines */
body.theme-matrix::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.15) 3px,
    rgba(0, 0, 0, 0.15) 4px
  );
}

/* Matrix nav */
body.theme-matrix nav a {
  mix-blend-mode: normal;
  color: #00ff41;
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
  border: 1px solid rgba(0, 255, 65, 0.2);
}

/* Matrix glow on text */
body.theme-matrix .transport-tc { text-shadow: 0 0 6px rgba(0, 255, 65, 0.5); }
body.theme-matrix .zoom-pct { color: rgba(0, 255, 65, 0.4); text-shadow: 0 0 4px rgba(0, 255, 65, 0.3); }
body.theme-matrix .zoom-label { color: rgba(0, 255, 65, 0.35); }
body.theme-matrix .ghost-text { color: rgba(0, 255, 65, 0.12); text-shadow: 0 0 4px rgba(0, 255, 65, 0.2); }
body.theme-matrix .transport-meta { color: rgba(0, 255, 65, 0.3); text-shadow: 0 0 4px rgba(0, 255, 65, 0.2); }
body.theme-matrix .monitor-name { text-shadow: 0 0 10px rgba(0, 255, 65, 0.6); }
body.theme-matrix .contact-logo { text-shadow: 0 0 12px rgba(0, 255, 65, 0.5); }

/* Matrix source bin semi-transparent so rain shows through */
body.theme-matrix #source-bin {
  background: rgba(0, 0, 0, 0.55);
}
body.theme-matrix #source-bin.has-clips {
  background: transparent;
}

/* Matrix load-reel btn */
body.theme-matrix .load-reel-btn {
  color: #00ff41;
  text-shadow: 0 0 6px rgba(0, 255, 65, 0.5);
}

/* Matrix clip wireframe style */
body.theme-matrix .clip {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.theme-matrix .clip:hover { border-color: rgba(0, 255, 65, 0.7) !important; filter: brightness(1.4); }

/* Matrix timeline footer */
body.theme-matrix .timeline-footer { border-top-color: rgba(0, 255, 65, 0.12); }
body.theme-matrix .timeline-footer a:hover { text-shadow: 0 0 8px rgba(0, 255, 65, 0.6); }

/* Matrix kbd buttons */
body.theme-matrix .kbd-legend-toggle {
  color: rgba(0, 255, 65, 0.7);
  border-color: rgba(0, 255, 65, 0.2);
}
body.theme-matrix .kbd-legend-toggle:hover {
  color: #00ff41;
  text-shadow: 0 0 6px rgba(0, 255, 65, 0.5);
}

/* Matrix media panel */
body.theme-matrix .media-folder { mix-blend-mode: normal; color: #00ff41; border: 1px solid rgba(0,255,65,0.2); }
body.theme-matrix .media-folder .folder-icon,
body.theme-matrix .media-folder .folder-label { color: rgba(0, 255, 65, 0.8); }
body.theme-matrix .media-folder .folder-count { color: rgba(0, 255, 65, 0.5); }

/* Matrix zoom slider */
body.theme-matrix .zoom-slider { background: rgba(0, 255, 65, 0.1); }
body.theme-matrix .zoom-slider::-webkit-slider-thumb { background: rgba(0, 255, 65, 0.5); }
body.theme-matrix .zoom-slider::-webkit-slider-thumb:hover { background: #00ff41; box-shadow: 0 0 8px rgba(0,255,65,0.6); }

/* ══════════════════════════════════════════════════════════
   ENHANCED STRUCTURAL RULES: DaVinci Resolve
   (CSS vars already set above — these add feel/layout)
══════════════════════════════════════════════════════════ */

/* Flat/matte clips — no gloss, no blur */
body.theme-resolve .clip {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-width: 1px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 8px;
  letter-spacing: 0.3px;
}
body.theme-resolve .clip:hover {
  transform: none;
  filter: brightness(1.08);
  box-shadow: none;
}
body.theme-resolve .clip.selected {
  outline: 2px solid #FF6600;
  box-shadow: none;
}

/* Thicker track dividers */
body.theme-resolve .track {
  border-bottom: 2px solid rgba(40, 40, 40, 0.95);
  height: 32px;
}

/* Spacious, clinical track headers */
body.theme-resolve .track-header {
  padding: 0 10px;
  width: 130px;
  min-width: 130px;
  border-right: 2px solid rgba(40, 40, 40, 0.95);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
body.theme-resolve .track-name {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 1px;
}
body.theme-resolve .track-icon {
  font-size: 8px;
  color: rgba(120, 120, 120, 0.6);
}
body.theme-resolve .track-meta {
  font-size: 8px;
  color: rgba(100, 100, 100, 0.5);
  font-family: -apple-system, sans-serif;
}

/* Minimal flat transport bar — Resolve bottom bar feel */
body.theme-resolve .transport-bar {
  background: rgba(22, 22, 22, 1);
  border-bottom: 2px solid rgba(40, 40, 40, 0.95);
  padding: 10px 20px;
}
body.theme-resolve .transport-btn {
  border-radius: 2px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  border-color: rgba(65, 65, 65, 0.7);
  padding: 5px 12px;
}
body.theme-resolve .transport-tc {
  font-family: -apple-system, 'SF Mono', 'Helvetica Neue', monospace;
  font-size: 14px;
  letter-spacing: 1px;
}
body.theme-resolve .zoom-label,
body.theme-resolve .zoom-pct {
  font-family: -apple-system, sans-serif;
}
body.theme-resolve .load-reel-btn {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 9px;
  letter-spacing: 1px;
  border-radius: 2px;
}
body.theme-resolve .transport-meta {
  font-family: -apple-system, sans-serif;
  font-size: 8px;
  letter-spacing: 1px;
}

/* Ruler: tan background (classic Resolve) */
body.theme-resolve .timeline-ruler {
  height: 26px;
}
body.theme-resolve .ruler-label {
  font-family: -apple-system, sans-serif;
  font-size: 8px;
}

/* Resolve nav */
body.theme-resolve nav a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 9px;
  letter-spacing: 2px;
}

/* Resolve footer */
body.theme-resolve .timeline-footer {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 8px;
  letter-spacing: 1.5px;
}

/* Resolve ghost text */
body.theme-resolve .ghost-text {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 2px;
}

/* Resolve: media panel */
body.theme-resolve nav a { mix-blend-mode: normal; }
body.theme-resolve .media-folder {
  mix-blend-mode: normal;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
body.theme-resolve .media-panel-item,
body.theme-resolve .media-panel-header {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ══════════════════════════════════════════════════════════
   ENHANCED STRUCTURAL RULES: Premiere Pro
   (adds warm feel, colorful clips, M/S visible, tab bar)
══════════════════════════════════════════════════════════ */

/* Premiere: vivid saturated clips */
body.theme-premiere .clip {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 8px;
  letter-spacing: 0.2px;
  font-weight: 500;
  border-width: 0;
  border-bottom: 2px solid rgba(0,0,0,0.3);
}
body.theme-premiere .clip:hover {
  filter: brightness(1.12) saturate(1.15);
  transform: scaleY(1.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
body.theme-premiere .clip.selected {
  outline: 2px solid #0078d7;
  box-shadow: 0 0 10px rgba(0, 120, 215, 0.4);
}

/* Premiere track headers: visible M/S indicators */
body.theme-premiere .track-header {
  padding: 0 8px;
  background: rgba(36, 36, 36, 0.98);
  border-right: 1px solid rgba(50, 50, 50, 0.9);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
body.theme-premiere .track-name {
  font-size: 8px;
  font-weight: 600;
  border-radius: 2px;
  min-width: 26px;
  letter-spacing: 0.5px;
}
body.theme-premiere .track-icon {
  font-size: 8px;
  font-weight: 600;
  font-family: -apple-system, sans-serif;
}
/* M and S icons get colored treatment in Premiere */
body.theme-premiere .track-icon:nth-child(3) { color: rgba(74, 188, 212, 0.7); }
body.theme-premiere .track-icon:nth-child(4) { color: rgba(212, 180, 74, 0.7); }

/* Premiere: timeline ruler feels like a tab bar */
body.theme-premiere .timeline-ruler {
  background: rgba(18, 18, 18, 0.99);
  height: 26px;
  border-bottom: 2px solid rgba(0, 120, 215, 0.4);
}

/* Premiere: warm transport bar */
body.theme-premiere .transport-bar {
  background: rgba(18, 18, 18, 0.99);
  border-bottom: 1px solid rgba(50, 50, 50, 0.9);
}
body.theme-premiere .transport-btn {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  border-radius: 3px;
}
body.theme-premiere .transport-tc {
  font-family: 'SF Mono', 'Fira Mono', monospace;
  color: #00e000;
  font-size: 14px;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(0, 224, 0, 0.3);
}
body.theme-premiere .load-reel-btn {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 9px;
  letter-spacing: 1.5px;
  border-radius: 3px;
}
body.theme-premiere .transport-meta {
  font-family: -apple-system, sans-serif;
  font-size: 8px;
}

/* Premiere: swatch additions */
.swatch-reels { background: linear-gradient(135deg, #ff3366 50%, #8b5cf6 50%); }
.swatch-win98 { background: linear-gradient(135deg, #008080 50%, #c0c0c0 50%); }
.swatch-winxp { background: linear-gradient(135deg, #3a6ea5 50%, #5cb85c 50%); }
.swatch-aqua { background: linear-gradient(135deg, #c8c8c8 50%, #4a90d9 50%); }

/* ══════════════════════════════════════════════════════════
   THEME: FAKE WINDOW CHROME (Win98 / WinXP / Aqua)
══════════════════════════════════════════════════════════ */

#themeWindowChrome {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9997;
  height: 28px;
  pointer-events: auto;
}
.window-title-bar {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 4px;
  user-select: none;
}
.window-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window-traffic-lights { display: none; }
.window-controls-right {
  display: flex;
  gap: 2px;
  align-items: center;
}
.win-btn {
  cursor: pointer;
  border: none;
  font-size: 10px;
  line-height: 1;
  padding: 2px 6px;
  min-width: 20px;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════
   THEME: Instagram Reels (iOS-style)
══════════════════════════════════════════════════════════ */

body.theme-reels {
  --mono: -apple-system, 'SF Pro Display', 'SF Pro Text', BlinkMacSystemFont, sans-serif;
  --bg-body: #000000;
  --color-body: #ffffff;
  --bg-source-bin: #000000;
  --bg-timeline: rgba(12, 12, 12, 0.98);
  --bg-timeline-backdrop: saturate(1.0);
  --bg-transport: rgba(0, 0, 0, 0.95);
  --bg-track-header: rgba(15, 15, 15, 0.9);
  --bg-ruler: rgba(10, 10, 10, 0.98);
  --bg-media-panel: rgba(18, 18, 18, 0.97);
  --bg-kbd-legend: rgba(10, 10, 10, 0.95);
  --bg-kbd-toggle: rgba(20, 20, 20, 0.9);
  --bg-transport-btn: rgba(255, 255, 255, 0.08);
  --bg-transport-btn-hover: rgba(255, 255, 255, 0.14);
  --bg-load-reel-btn: rgba(255, 51, 102, 0.15);
  --bg-load-reel-btn-hover: rgba(255, 51, 102, 0.25);
  --bg-folder: rgba(40, 40, 40, 0.7);
  --bg-folder-hover: rgba(255, 51, 102, 0.15);
  --bg-folder-active: rgba(255, 51, 102, 0.2);
  --bg-contact-glass: rgba(15, 15, 15, 0.92);
  --bg-kbd-key: rgba(40, 40, 40, 0.9);
  --bg-timeline-footer: rgba(0, 0, 0, 0.95);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-dim: rgba(255, 255, 255, 0.25);
  --text-ghost: rgba(255, 255, 255, 0.12);

  --accent-primary: #ff3366;
  --accent-glow: rgba(255, 51, 102, 0.4);
  --accent-glow-strong: rgba(255, 51, 102, 0.7);
  --accent-bg: rgba(255, 51, 102, 0.12);
  --accent-bg-hover: rgba(255, 51, 102, 0.22);
  --accent-border: rgba(255, 51, 102, 0.4);
  --accent-border-hover: rgba(255, 51, 102, 0.7);
  --accent-text: #ff3366;
  --accent-outline: rgba(255, 51, 102, 0.7);
  --accent-outline-bg: rgba(255, 51, 102, 0.15);

  --border-primary: rgba(255, 255, 255, 0.08);
  --border-secondary: rgba(255, 255, 255, 0.05);
  --border-dim: rgba(255, 255, 255, 0.03);
  --border-kbd: rgba(255, 255, 255, 0.1);
  --border-kbd-key: rgba(255, 255, 255, 0.18);
  --border-transport-btn: rgba(255, 255, 255, 0.1);
  --border-transport-btn-hover: rgba(255, 255, 255, 0.2);
  --border-contact-glass: rgba(255, 255, 255, 0.08);
  --border-clip: transparent;

  /* Video tracks */
  --track-video-bg: transparent;
  --track-video-color: rgba(255, 255, 255, 0.5);
  --track-video-border: transparent;
  --track-audio-bg: rgba(255, 51, 102, 0.1);
  --track-audio-color: #ff3366;
  --track-audio-border: transparent;

  /* Reels clips — gradient-backed vivid colors */
  --clip-v1-bg: #ff3366;
  --clip-v1-color: #ffffff;
  --clip-v1-border: transparent;
  --clip-v2-bg: #8b5cf6;
  --clip-v2-color: #ffffff;
  --clip-v2-border: transparent;
  --clip-v3-bg: #fbbf24;
  --clip-v3-color: #000000;
  --clip-v3-border: transparent;
  --clip-v4-bg: #06b6d4;
  --clip-v4-color: #000000;
  --clip-v4-border: transparent;
  --clip-v5-bg: #10b981;
  --clip-v5-color: #000000;
  --clip-v5-border: transparent;
  --clip-a1-bg: linear-gradient(90deg, #ff3366, #ff0080);
  --clip-a1-color: #ffffff;
  --clip-a1-border: transparent;
  --clip-a2-bg: rgba(255, 51, 102, 0.6);
  --clip-a2-color: #ffffff;
  --clip-a2-border: transparent;
  --clip-a3-bg: rgba(139, 92, 246, 0.5);
  --clip-a3-color: #ffffff;
  --clip-a3-border: transparent;
  --clip-a4-bg: rgba(6, 182, 212, 0.4);
  --clip-a4-color: #fff;
  --clip-a4-border: transparent;
  --clip-a5-bg: rgba(16, 185, 129, 0.35);
  --clip-a5-color: #fff;
  --clip-a5-border: transparent;

  --drop-highlight-bg: rgba(255, 51, 102, 0.08);
  --drop-highlight-border: rgba(255, 51, 102, 0.5);
  --ghost-clip-bg: rgba(255, 51, 102, 0.15);
  --ghost-clip-border: rgba(255, 51, 102, 0.5);
  --ghost-clip-color: #ff3366;

  --marquee-border: rgba(255, 51, 102, 0.7);
  --marquee-bg: rgba(255, 51, 102, 0.08);

  --ruler-mark-minor: rgba(255, 255, 255, 0.08);
  --ruler-mark-major: rgba(255, 255, 255, 0.2);
  --ruler-label-color: rgba(255, 255, 255, 0.4);
  --scrollbar-thumb: rgba(255, 255, 255, 0.12);
  --resize-handle-bar: rgba(255, 255, 255, 0.15);
  --resize-handle-bar-hover: rgba(255, 255, 255, 0.4);
  --radius: 16px;

  --contact-text-primary: #ffffff;
  --contact-text-secondary: rgba(255, 255, 255, 0.85);
  --contact-text-muted: rgba(255, 255, 255, 0.4);
  --contact-text-dim: rgba(255, 255, 255, 0.3);
  --contact-text-ghost: rgba(255, 255, 255, 0.15);
  --contact-hover-color: #ff3366;
  --contact-divider: rgba(255, 255, 255, 0.1);

  --loader-bg: #000000;
  --loader-stroke: #ff3366;
  --loader-text: #ffffff;
  --loader-ratio: rgba(255, 255, 255, 0.4);

  --footer-color: rgba(255, 255, 255, 0.3);
  --footer-link: rgba(255, 255, 255, 0.4);
  --footer-link-hover: #ff3366;

  --media-panel-item-color: rgba(255, 255, 255, 0.6);
  --media-panel-item-hover-color: #ffffff;
  --media-panel-item-hover-bg: rgba(255, 51, 102, 0.1);
  --media-panel-header-color: rgba(255, 255, 255, 0.3);
  --media-panel-duration-color: rgba(255, 255, 255, 0.3);
  --media-panel-border: rgba(255, 255, 255, 0.06);

  --nav-bg: rgba(30, 30, 30, 0.8);
  --nav-bg-hover: rgba(50, 50, 50, 0.9);
  --monitor-name-color: #ffffff;
  --monitor-type-color: rgba(255, 255, 255, 0.5);
  --monitor-tc-color: rgba(255, 255, 255, 0.8);
  --monitor-screen-radius: 20px;
  --monitor-screen-shadow: 0 0 40px rgba(255, 51, 102, 0.15);
  --export-progress-track: rgba(255, 255, 255, 0.1);
  --export-progress-fill: #ff3366;
  --export-status-color: #ffffff;
  --grain-opacity: 0;
  --speed-text-shadow: 0 0 10px var(--accent-glow);
  --playhead-shadow: 0 0 12px rgba(255, 255, 255, 0.8), 0 0 24px rgba(255, 255, 255, 0.3);

  --theme-picker-bg: rgba(10, 10, 10, 0.98);
  --theme-picker-border: rgba(255, 255, 255, 0.1);
  --theme-picker-color: rgba(255, 255, 255, 0.6);
  --theme-picker-title: rgba(255, 255, 255, 0.3);
  --theme-picker-item-hover: rgba(255, 255, 255, 0.05);
  --theme-picker-active-color: #ff3366;
  --theme-picker-active-bg: rgba(255, 51, 102, 0.1);
  --theme-picker-active-border: rgba(255, 51, 102, 0.5);
  --waveform-color: rgba(255,255,255,0.4);
}

/* Reels: iOS pill buttons */
body.theme-reels .transport-btn {
  border-radius: 50px;
  padding: 5px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  font-family: -apple-system, 'SF Pro Text', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #ffffff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
body.theme-reels .transport-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: none;
}
body.theme-reels .transport-btn.active {
  background: #ff3366;
  color: #ffffff;
}

/* Reels: playhead is thin white line, no glow */
body.theme-reels .playhead {
  background: #ffffff;
  width: 1.5px;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
}
body.theme-reels .playhead::before { border-top-color: #ffffff; }
body.theme-reels .ruler-playhead { background: #ffffff; box-shadow: none; width: 1.5px; }
body.theme-reels .ruler-playhead::after { border-bottom-color: #ffffff; }

/* Reels: clips rounded, no backdrop-filter lag */
body.theme-reels .clip {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 12px;
  height: 20px;
  top: 4px;
  font-family: -apple-system, 'SF Pro Text', sans-serif;
  font-size: 8px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
body.theme-reels .clip:hover { transform: scaleY(1.08); filter: brightness(1.1); }
body.theme-reels .clip.v1-clip { background: linear-gradient(90deg, #ff3366, #ff0044); }
body.theme-reels .clip.a1-clip { background: linear-gradient(90deg, #ff3366, #ff0080); }

/* Reels: track headers minimal */
body.theme-reels .track-header {
  width: 60px;
  min-width: 60px;
  background: transparent;
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 0 6px;
}
body.theme-reels .track-icon { display: none; }
body.theme-reels .track-meta { display: none; }
body.theme-reels .track-name {
  font-family: -apple-system, 'SF Pro Text', sans-serif;
  font-size: 9px;
  font-weight: 500;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.4);
  padding: 0;
}

/* Reels: transport bar — iOS feel */
body.theme-reels .transport-bar {
  background: rgba(0, 0, 0, 0.95);
  border-bottom: none;
  padding: 10px 16px;
  gap: 8px;
}
body.theme-reels .transport-tc {
  font-family: -apple-system, 'SF Mono', monospace;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* Reels: load/action buttons as iOS pills */
body.theme-reels .load-reel-btn {
  border-radius: 50px;
  font-family: -apple-system, 'SF Pro Text', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  padding: 6px 16px;
  background: rgba(255, 51, 102, 0.2);
  color: #ff3366;
}
body.theme-reels .load-reel-btn:hover {
  background: rgba(255, 51, 102, 0.35);
  color: #ff3366;
  border-color: transparent;
}

/* Reels: ruler shows seconds feel */
body.theme-reels .ruler-label {
  font-family: -apple-system, 'SF Mono', sans-serif;
  font-size: 8px;
  font-weight: 400;
}

/* Reels: footer as iOS-style bottom bar */
body.theme-reels .timeline-footer {
  background: rgba(0, 0, 0, 0.98);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  padding: 6px 20px;
}

/* Reels: nav */
body.theme-reels nav a {
  font-family: -apple-system, 'SF Pro Display', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  mix-blend-mode: normal;
  color: #ffffff;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border-radius: 100px;
  padding: 8px 20px;
}
body.theme-reels nav a:hover { background: rgba(255,255,255,0.18); }

/* Reels: media folders pill style */
body.theme-reels .media-folder {
  border-radius: 100px;
  mix-blend-mode: normal;
  background: rgba(255,255,255,0.1);
}
body.theme-reels .media-folder:hover { background: rgba(255, 51, 102, 0.2); }

body.theme-reels .kbd-legend-toggle {
  border-radius: 100px;
  font-family: -apple-system, sans-serif;
  border-color: rgba(255,255,255,0.1);
}

/* ══════════════════════════════════════════════════════════
   THEME: Windows 98
══════════════════════════════════════════════════════════ */

body.theme-win98 {
  --mono: 'MS Sans Serif', 'Pixelated MS Sans Serif', Tahoma, 'Arial', sans-serif;
  --bg-body: #008080;
  --color-body: #000000;
  --bg-source-bin: #008080;
  --bg-timeline: #c0c0c0;
  --bg-timeline-backdrop: saturate(1.0);
  --bg-transport: #d4d0c8;
  --bg-track-header: #c8c4bc;
  --bg-ruler: #ffffff;
  --bg-media-panel: #c8c4bc;
  --bg-kbd-legend: #c0c0c0;
  --bg-kbd-toggle: #c0c0c0;
  --bg-transport-btn: #d4d0c8;
  --bg-transport-btn-hover: #e0dcd4;
  --bg-load-reel-btn: #d4d0c8;
  --bg-load-reel-btn-hover: #e0dcd4;
  --bg-folder: #c8c4bc;
  --bg-folder-hover: #d4d0c8;
  --bg-folder-active: #bfbfbf;
  --bg-contact-glass: #d4d0c8;
  --bg-kbd-key: #c8c4bc;
  --bg-timeline-footer: #c0c0c0;

  --text-primary: #000000;
  --text-secondary: #444444;
  --text-muted: #666666;
  --text-dim: #888888;
  --text-ghost: #aaaaaa;

  --accent-primary: #000080;
  --accent-glow: rgba(0, 0, 128, 0.3);
  --accent-glow-strong: rgba(0, 0, 128, 0.5);
  --accent-bg: rgba(0, 0, 128, 0.08);
  --accent-bg-hover: rgba(0, 0, 128, 0.15);
  --accent-border: rgba(0, 0, 128, 0.5);
  --accent-border-hover: rgba(0, 0, 128, 0.8);
  --accent-text: #000080;
  --accent-outline: #000080;
  --accent-outline-bg: rgba(0, 0, 128, 0.1);

  --border-primary: #808080;
  --border-secondary: #a0a0a0;
  --border-dim: #c0c0c0;
  --border-kbd: #808080;
  --border-kbd-key: #808080;
  --border-transport-btn: #808080;
  --border-transport-btn-hover: #404040;
  --border-contact-glass: #808080;
  --border-clip: #808080;

  --track-video-bg: rgba(0, 0, 128, 0.08);
  --track-video-color: #000080;
  --track-video-border: #808080;
  --track-audio-bg: rgba(128, 0, 0, 0.08);
  --track-audio-color: #800000;
  --track-audio-border: #808080;

  /* Win98 clip colors — classic Windows color palette */
  --clip-v1-bg: #000080;
  --clip-v1-color: #ffffff;
  --clip-v1-border: #0000a0;
  --clip-v2-bg: #800000;
  --clip-v2-color: #ffffff;
  --clip-v2-border: #a00000;
  --clip-v3-bg: #008000;
  --clip-v3-color: #ffffff;
  --clip-v3-border: #00a000;
  --clip-v4-bg: #800080;
  --clip-v4-color: #ffffff;
  --clip-v4-border: #a000a0;
  --clip-v5-bg: #808000;
  --clip-v5-color: #ffffff;
  --clip-v5-border: #a0a000;
  --clip-a1-bg: #008080;
  --clip-a1-color: #ffffff;
  --clip-a1-border: #00a0a0;
  --clip-a2-bg: #000080;
  --clip-a2-color: #dddddd;
  --clip-a2-border: #808080;
  --clip-a3-bg: #808080;
  --clip-a3-color: #ffffff;
  --clip-a3-border: #a0a0a0;
  --clip-a4-bg: #c0c0c0;
  --clip-a4-color: #000000;
  --clip-a4-border: #808080;
  --clip-a5-bg: #d4d0c8;
  --clip-a5-color: #444444;
  --clip-a5-border: #808080;

  --drop-highlight-bg: rgba(0, 0, 255, 0.06);
  --drop-highlight-border: #000080;
  --ghost-clip-bg: rgba(0, 0, 128, 0.1);
  --ghost-clip-border: #000080;
  --ghost-clip-color: #000080;

  --marquee-border: #000080;
  --marquee-bg: rgba(0, 0, 128, 0.06);

  --ruler-mark-minor: rgba(0, 0, 0, 0.2);
  --ruler-mark-major: rgba(0, 0, 0, 0.5);
  --ruler-label-color: #000000;
  --scrollbar-thumb: #808080;
  --resize-handle-bar: #808080;
  --resize-handle-bar-hover: #404040;
  --radius: 0px;

  --contact-text-primary: #000000;
  --contact-text-secondary: #222222;
  --contact-text-muted: #555555;
  --contact-text-dim: #777777;
  --contact-text-ghost: #999999;
  --contact-hover-color: #000080;
  --contact-divider: #808080;

  --loader-bg: #008080;
  --loader-stroke: #000080;
  --loader-text: #ffffff;
  --loader-ratio: #444444;

  --footer-color: #000000;
  --footer-link: #000080;
  --footer-link-hover: #0000ff;

  --media-panel-item-color: #000000;
  --media-panel-item-hover-color: #000080;
  --media-panel-item-hover-bg: rgba(0, 0, 128, 0.08);
  --media-panel-header-color: #444444;
  --media-panel-duration-color: #666666;
  --media-panel-border: #808080;

  --nav-bg: rgba(192, 192, 192, 0.95);
  --nav-bg-hover: rgba(208, 208, 208, 0.98);
  --monitor-name-color: #ffffff;
  --monitor-type-color: #cccccc;
  --monitor-tc-color: #cccccc;
  --monitor-screen-radius: 0px;
  --monitor-screen-shadow: none;
  --export-progress-track: rgba(0, 0, 0, 0.15);
  --export-progress-fill: #000080;
  --export-status-color: #000000;
  --grain-opacity: 0;
  --speed-text-shadow: none;
  --playhead-shadow: none;
  --clip-text-shadow: none;

  --theme-picker-bg: #d4d0c8;
  --theme-picker-border: #808080;
  --theme-picker-color: #000000;
  --theme-picker-title: #444444;
  --theme-picker-item-hover: rgba(0, 0, 128, 0.08);
  --theme-picker-active-color: #000080;
  --theme-picker-active-bg: rgba(0, 0, 128, 0.1);
  --theme-picker-active-border: #000080;
  --waveform-color: rgba(255,255,255,0.4);
}

/* Win98: show window chrome */
body.theme-win98 #themeWindowChrome { display: block; }
body.theme-win98 #source-bin,
body.theme-win98 #preview-monitor { top: 28px; }
body.theme-win98 nav { top: 40px; }

/* Win98 window chrome styling */
body.theme-win98 .window-title-bar {
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  color: #ffffff;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 4px;
}
body.theme-win98 .window-title {
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 11px;
  font-weight: bold;
  text-align: left;
  padding-left: 4px;
  color: #ffffff;
  text-shadow: none;
}
body.theme-win98 .window-traffic-lights { display: none; }
body.theme-win98 .win-btn {
  background: #c0c0c0;
  border-top: 2px solid #dfdfdf;
  border-left: 2px solid #dfdfdf;
  border-bottom: 2px solid #808080;
  border-right: 2px solid #808080;
  color: #000000;
  font-size: 9px;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  padding: 1px 5px;
  min-width: 18px;
  height: 18px;
  line-height: 1;
  cursor: pointer;
}
body.theme-win98 .win-btn:active {
  border-top-color: #808080;
  border-left-color: #808080;
  border-bottom-color: #dfdfdf;
  border-right-color: #dfdfdf;
}

/* Win98: bevel borders on ALL major panels */
body.theme-win98 .timeline-container {
  border: none;
  border-top: 2px solid #dfdfdf;
  border-left: 2px solid #dfdfdf;
}
body.theme-win98 .transport-bar {
  background: #d4d0c8;
  border-bottom: 2px solid #808080;
  border-top: 2px solid #ffffff;
}
body.theme-win98 .transport-btn {
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 11px;
  background: #d4d0c8;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #808080;
  border-right: 2px solid #808080;
  color: #000000;
  border-radius: 0;
  padding: 3px 10px;
  min-width: 28px;
}
body.theme-win98 .transport-btn:hover {
  background: #e0dcd4;
  color: #000000;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-bottom-color: #808080;
  border-right-color: #808080;
}
body.theme-win98 .transport-btn:active {
  border-top-color: #808080;
  border-left-color: #808080;
  border-bottom-color: #ffffff;
  border-right-color: #ffffff;
}
body.theme-win98 .transport-tc {
  font-family: 'MS Sans Serif', Tahoma, monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: #000000;
}
body.theme-win98 .speed-indicator {
  color: #000080;
  text-shadow: none;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 10px;
}

/* Win98 track headers: sunken inset panels */
body.theme-win98 .track-header {
  background: #c8c4bc;
  border-right: none;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-bottom: 1px solid #dfdfdf;
  border-right: 2px solid #a0a0a0;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
}
body.theme-win98 .track-name {
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 9px;
  font-weight: bold;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-bottom: 1px solid #dfdfdf;
  border-right: 1px solid #dfdfdf;
  border-radius: 0;
}
body.theme-win98 .track-name.video {
  background: #c0c0ff;
  color: #000000;
  border-top-color: #808080;
  border-left-color: #808080;
  border-bottom-color: #dfdfdf;
  border-right-color: #dfdfdf;
}
body.theme-win98 .track-name.audio {
  background: #ffc0c0;
  color: #000000;
  border-top-color: #808080;
  border-left-color: #808080;
  border-bottom-color: #dfdfdf;
  border-right-color: #dfdfdf;
}
body.theme-win98 .track-icon { color: #444444; font-size: 8px; }
body.theme-win98 .track-icon:hover { color: #000000; }
body.theme-win98 .track-meta { color: #666666; font-family: 'MS Sans Serif', Tahoma, sans-serif; font-size: 9px; }

/* Win98 clips: flat rectangles with 3D borders */
body.theme-win98 .clip {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  border: 2px solid;
  border-top-color: #dfdfdf;
  border-left-color: #dfdfdf;
  border-bottom-color: #808080;
  border-right-color: #808080;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 9px;
  font-weight: bold;
  height: 20px;
  top: 4px;
  box-shadow: none;
  text-shadow: none;
}
body.theme-win98 .clip:hover {
  filter: brightness(1.1);
  transform: none;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
}
body.theme-win98 .clip.selected {
  outline: 2px dotted #000000;
  box-shadow: none;
}

/* Win98: ruler white like notebook */
body.theme-win98 .timeline-ruler {
  background: #ffffff;
  border-bottom: 2px solid #808080;
  border-top: 2px solid #dfdfdf;
}
body.theme-win98 .ruler-label {
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 9px;
  color: #000000;
}
body.theme-win98 .ruler-playhead { background: #ff0000; box-shadow: none; }
body.theme-win98 .ruler-playhead::after { border-bottom-color: #ff0000; }
body.theme-win98 .playhead { background: #ff0000; box-shadow: none; }
body.theme-win98 .playhead::before { border-top-color: #ff0000; }

/* Win98: load reel buttons */
body.theme-win98 .load-reel-btn {
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 10px;
  letter-spacing: 0.5px;
  background: #d4d0c8;
  color: #000000;
  border: none;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #808080;
  border-right: 2px solid #808080;
  border-radius: 0;
}
body.theme-win98 .load-reel-btn:hover {
  background: #e0dcd4;
  color: #000000;
}
body.theme-win98 .load-reel-btn:active {
  border-top-color: #808080;
  border-left-color: #808080;
  border-bottom-color: #ffffff;
  border-right-color: #ffffff;
}

/* Win98: nav */
body.theme-win98 nav a {
  mix-blend-mode: normal;
  background: #c0c0c0;
  color: #000000;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #808080;
  border-right: 2px solid #808080;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 10px;
  letter-spacing: 1px;
  border-radius: 0;
}
body.theme-win98 nav a:hover {
  background: #d4d0c8;
}

/* Win98: taskbar footer */
body.theme-win98 .timeline-footer {
  background: #c0c0c0;
  border-top: 2px solid #dfdfdf;
  color: #000000;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 10px;
  letter-spacing: 0;
}
body.theme-win98 .timeline-footer::before { display: none; }
body.theme-win98 .timeline-footer a { color: #000080; }
body.theme-win98 .timeline-footer a:hover { color: #0000ff; text-decoration: underline; }

/* Win98: kbd toggles */
body.theme-win98 .kbd-legend-toggle {
  mix-blend-mode: normal;
  background: #d4d0c8;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #808080;
  border-right: 2px solid #808080;
  color: #000000;
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 10px;
  border-radius: 0;
  letter-spacing: 0;
}
body.theme-win98 .kbd-legend-toggle:hover {
  background: #e0dcd4;
  color: #000000;
}

/* Win98: zoom slider */
body.theme-win98 .zoom-slider { background: #808080; }
body.theme-win98 .zoom-slider::-webkit-slider-thumb { background: #d4d0c8; border: 2px solid #808080; box-shadow: 1px 1px 0 #ffffff inset; }
body.theme-win98 .zoom-label,
body.theme-win98 .zoom-pct { font-family: 'MS Sans Serif', Tahoma, sans-serif; font-size: 10px; color: #000000; }
body.theme-win98 .transport-meta { font-family: 'MS Sans Serif', Tahoma, sans-serif; font-size: 9px; color: #444444; }

/* Win98: ghost text */
body.theme-win98 .ghost-text {
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  letter-spacing: 1px;
  color: #808080;
  font-size: 9px;
}

/* Win98: media panel */
body.theme-win98 .media-panel {
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #808080;
  border-right: 2px solid #808080;
}
body.theme-win98 .media-panel-item,
body.theme-win98 .media-panel-header {
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 10px;
}
body.theme-win98 .media-folder {
  mix-blend-mode: normal;
  background: #d4d0c8;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #808080;
  border-right: 2px solid #808080;
  border-radius: 0;
}
body.theme-win98 .media-folder:hover { background: #e0dcd4; }
body.theme-win98 .media-folder .folder-icon,
body.theme-win98 .media-folder .folder-label { color: #000000; font-family: 'MS Sans Serif', Tahoma, sans-serif; font-size: 10px; letter-spacing: 0; }
body.theme-win98 .media-folder .folder-count { color: #555555; }

/* ══════════════════════════════════════════════════════════
   THEME: Windows XP (Luna)
══════════════════════════════════════════════════════════ */

body.theme-winxp {
  --mono: Tahoma, 'Segoe UI', 'Trebuchet MS', Arial, sans-serif;
  --bg-body: #236ebf;
  --color-body: #000000;
  --bg-source-bin: #1c5fa0;
  --bg-timeline: rgba(58, 110, 165, 0.97);
  --bg-timeline-backdrop: saturate(1.1);
  --bg-transport: rgba(10, 36, 106, 0.98);
  --bg-track-header: rgba(212, 228, 247, 0.95);
  --bg-ruler: rgba(255, 255, 255, 0.95);
  --bg-media-panel: rgba(225, 236, 250, 0.97);
  --bg-kbd-legend: rgba(10, 36, 106, 0.95);
  --bg-kbd-toggle: rgba(10, 36, 106, 0.9);
  --bg-transport-btn: rgba(255, 255, 255, 0.15);
  --bg-transport-btn-hover: rgba(255, 255, 255, 0.25);
  --bg-load-reel-btn: rgba(92, 184, 92, 0.2);
  --bg-load-reel-btn-hover: rgba(92, 184, 92, 0.35);
  --bg-folder: rgba(212, 228, 247, 0.8);
  --bg-folder-hover: rgba(189, 217, 247, 0.9);
  --bg-folder-active: rgba(160, 200, 240, 0.95);
  --bg-contact-glass: rgba(30, 70, 140, 0.9);
  --bg-kbd-key: rgba(60, 100, 180, 0.5);
  --bg-timeline-footer: rgba(10, 36, 106, 0.98);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-dim: rgba(255, 255, 255, 0.35);
  --text-ghost: rgba(255, 255, 255, 0.2);

  --accent-primary: #5cb85c;
  --accent-glow: rgba(92, 184, 92, 0.4);
  --accent-glow-strong: rgba(92, 184, 92, 0.7);
  --accent-bg: rgba(92, 184, 92, 0.15);
  --accent-bg-hover: rgba(92, 184, 92, 0.25);
  --accent-border: rgba(92, 184, 92, 0.5);
  --accent-border-hover: rgba(92, 184, 92, 0.8);
  --accent-text: #5cb85c;
  --accent-outline: rgba(92, 184, 92, 0.8);
  --accent-outline-bg: rgba(92, 184, 92, 0.15);

  --border-primary: rgba(10, 36, 106, 0.6);
  --border-secondary: rgba(10, 36, 106, 0.4);
  --border-dim: rgba(10, 36, 106, 0.25);
  --border-kbd: rgba(255, 255, 255, 0.2);
  --border-kbd-key: rgba(255, 255, 255, 0.3);
  --border-transport-btn: rgba(255, 255, 255, 0.2);
  --border-transport-btn-hover: rgba(255, 255, 255, 0.4);
  --border-contact-glass: rgba(255, 255, 255, 0.2);
  --border-clip: rgba(0, 0, 0, 0.2);

  --track-video-bg: rgba(74, 144, 217, 0.1);
  --track-video-color: #2878c8;
  --track-video-border: rgba(74, 144, 217, 0.3);
  --track-audio-bg: rgba(92, 184, 92, 0.1);
  --track-audio-color: #3a9a3a;
  --track-audio-border: rgba(92, 184, 92, 0.3);

  /* XP clips: rounded, soft, friendly colors */
  --clip-v1-bg: #4a90d9;
  --clip-v1-color: #ffffff;
  --clip-v1-border: rgba(0,0,0,0.2);
  --clip-v2-bg: #5cb85c;
  --clip-v2-color: #ffffff;
  --clip-v2-border: rgba(0,0,0,0.2);
  --clip-v3-bg: #f0ad4e;
  --clip-v3-color: #ffffff;
  --clip-v3-border: rgba(0,0,0,0.2);
  --clip-v4-bg: #9b59b6;
  --clip-v4-color: #ffffff;
  --clip-v4-border: rgba(0,0,0,0.2);
  --clip-v5-bg: #e74c3c;
  --clip-v5-color: #ffffff;
  --clip-v5-border: rgba(0,0,0,0.2);
  --clip-a1-bg: #2ecc71;
  --clip-a1-color: #ffffff;
  --clip-a1-border: rgba(0,0,0,0.2);
  --clip-a2-bg: #27ae60;
  --clip-a2-color: #ffffff;
  --clip-a2-border: rgba(0,0,0,0.15);
  --clip-a3-bg: #1abc9c;
  --clip-a3-color: #ffffff;
  --clip-a3-border: rgba(0,0,0,0.15);
  --clip-a4-bg: #16a085;
  --clip-a4-color: rgba(255,255,255,0.9);
  --clip-a4-border: rgba(0,0,0,0.1);
  --clip-a5-bg: #148a72;
  --clip-a5-color: rgba(255,255,255,0.8);
  --clip-a5-border: transparent;

  --drop-highlight-bg: rgba(92, 184, 92, 0.1);
  --drop-highlight-border: rgba(92, 184, 92, 0.6);
  --ghost-clip-bg: rgba(74, 144, 217, 0.15);
  --ghost-clip-border: rgba(74, 144, 217, 0.6);
  --ghost-clip-color: #4a90d9;

  --marquee-border: rgba(92, 184, 92, 0.8);
  --marquee-bg: rgba(92, 184, 92, 0.1);

  --ruler-mark-minor: rgba(0, 0, 0, 0.15);
  --ruler-mark-major: rgba(0, 0, 0, 0.35);
  --ruler-label-color: rgba(0, 0, 0, 0.55);
  --scrollbar-thumb: rgba(255, 255, 255, 0.3);
  --resize-handle-bar: rgba(255, 255, 255, 0.2);
  --resize-handle-bar-hover: rgba(255, 255, 255, 0.5);
  --radius: 6px;

  --contact-text-primary: #ffffff;
  --contact-text-secondary: rgba(255, 255, 255, 0.9);
  --contact-text-muted: rgba(255, 255, 255, 0.5);
  --contact-text-dim: rgba(255, 255, 255, 0.35);
  --contact-text-ghost: rgba(255, 255, 255, 0.2);
  --contact-hover-color: #5cb85c;
  --contact-divider: rgba(255, 255, 255, 0.2);

  --loader-bg: #236ebf;
  --loader-stroke: #5cb85c;
  --loader-text: #ffffff;
  --loader-ratio: rgba(255, 255, 255, 0.4);

  --footer-color: rgba(255, 255, 255, 0.5);
  --footer-link: rgba(255, 255, 255, 0.6);
  --footer-link-hover: #5cb85c;

  --media-panel-item-color: #222222;
  --media-panel-item-hover-color: #000000;
  --media-panel-item-hover-bg: rgba(74, 144, 217, 0.12);
  --media-panel-header-color: #555555;
  --media-panel-duration-color: #666666;
  --media-panel-border: rgba(0, 0, 0, 0.1);

  --nav-bg: rgba(10, 36, 106, 0.85);
  --nav-bg-hover: rgba(25, 65, 150, 0.95);
  --monitor-name-color: #ffffff;
  --monitor-type-color: rgba(255, 255, 255, 0.6);
  --monitor-tc-color: rgba(255, 255, 255, 0.85);
  --monitor-screen-radius: 0px;
  --monitor-screen-shadow: none;
  --export-progress-track: rgba(255, 255, 255, 0.15);
  --export-progress-fill: #5cb85c;
  --export-status-color: #ffffff;
  --grain-opacity: 0;
  --speed-text-shadow: 0 0 8px rgba(92, 184, 92, 0.5);
  --playhead-shadow: 0 0 8px rgba(92, 184, 92, 0.6);

  --theme-picker-bg: rgba(10, 36, 106, 0.97);
  --theme-picker-border: rgba(255, 255, 255, 0.15);
  --theme-picker-color: rgba(255, 255, 255, 0.7);
  --theme-picker-title: rgba(255, 255, 255, 0.4);
  --theme-picker-item-hover: rgba(255, 255, 255, 0.08);
  --theme-picker-active-color: #5cb85c;
  --theme-picker-active-bg: rgba(92, 184, 92, 0.15);
  --theme-picker-active-border: rgba(92, 184, 92, 0.6);
  --waveform-color: rgba(255,255,255,0.35);
}

/* WinXP: show window chrome */
body.theme-winxp #themeWindowChrome { display: block; }
body.theme-winxp #source-bin,
body.theme-winxp #preview-monitor { top: 28px; }
body.theme-winxp nav { top: 48px; }

/* WinXP window chrome: Luna blue title bar */
body.theme-winxp .window-title-bar {
  background: linear-gradient(180deg, #2a88d0 0%, #1058a0 50%, #0a3d82 100%);
  border-top: 2px solid #5ab0f0;
  border-left: 2px solid #4a90d0;
  border-right: 2px solid #0a3d82;
  padding: 3px 6px;
}
body.theme-winxp .window-title {
  font-family: Tahoma, sans-serif;
  font-size: 11px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  text-align: left;
  padding-left: 4px;
}
body.theme-winxp .window-traffic-lights { display: none; }
body.theme-winxp .win-btn {
  border-radius: 4px;
  font-family: Tahoma, sans-serif;
  font-size: 10px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  padding: 0;
  min-width: 18px;
  border: 1px solid rgba(0,0,0,0.4);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.4);
}
body.theme-winxp .win-btn.close { background: linear-gradient(180deg, #e86030 0%, #c83010 100%); color: #fff; }
body.theme-winxp .win-btn.minimize { background: linear-gradient(180deg, #f8c040 0%, #d8a020 100%); color: #5a3000; }
body.theme-winxp .win-btn.maximize { background: linear-gradient(180deg, #60c040 0%, #40a020 100%); color: #003000; }
body.theme-winxp .win-btn:hover { filter: brightness(1.15); }

/* WinXP: glossy transport bar */
body.theme-winxp .transport-bar {
  background: linear-gradient(180deg, #1a5a9a 0%, #0a3d7a 60%, #082d62 100%);
  border-bottom: 2px solid #082050;
}
body.theme-winxp .transport-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.08) 100%);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  color: #ffffff;
  font-family: Tahoma, sans-serif;
  font-size: 11px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}
body.theme-winxp .transport-btn:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.15) 100%);
  color: #ffffff;
  border-color: rgba(255,255,255,0.5);
}
body.theme-winxp .transport-tc {
  font-family: 'Courier New', Tahoma, monospace;
  font-size: 13px;
  color: #ffffff;
  text-shadow: 0 0 6px rgba(92, 184, 92, 0.5);
}
body.theme-winxp .speed-indicator { color: #5cb85c; text-shadow: 0 0 8px rgba(92, 184, 92, 0.5); }
body.theme-winxp .transport-meta { color: rgba(255, 255, 255, 0.5); font-family: Tahoma, sans-serif; font-size: 8px; }
body.theme-winxp .zoom-label,
body.theme-winxp .zoom-pct { font-family: Tahoma, sans-serif; color: rgba(255, 255, 255, 0.6); }

/* WinXP: track headers light blue */
body.theme-winxp .track-header {
  background: #d4e4f7;
  border-right: 1px solid #aac4e4;
  font-family: Tahoma, sans-serif;
}
body.theme-winxp .track-name {
  font-family: Tahoma, sans-serif;
  font-size: 9px;
  font-weight: bold;
  border-radius: 3px;
}
body.theme-winxp .track-icon { color: #4a70a0; }
body.theme-winxp .track-icon:hover { color: #2a50a0; }
body.theme-winxp .track-meta { color: #708090; font-family: Tahoma, sans-serif; }

/* WinXP: clips with rounded, glossy feel */
body.theme-winxp .clip {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 6px;
  font-family: Tahoma, sans-serif;
  font-size: 8px;
  font-weight: bold;
  border-width: 1px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.35);
}
body.theme-winxp .clip:hover {
  filter: brightness(1.1) saturate(1.1);
  transform: scaleY(1.05);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.45);
}
body.theme-winxp .clip.selected {
  outline: 2px solid #5cb85c;
  box-shadow: 0 0 8px rgba(92, 184, 92, 0.5);
}

/* WinXP: timeline ruler white/light blue */
body.theme-winxp .timeline-ruler {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 2px solid #0a3d82;
}
body.theme-winxp .ruler-label {
  font-family: Tahoma, sans-serif;
  font-size: 8px;
  color: rgba(0, 0, 0, 0.6);
}
body.theme-winxp .ruler-playhead { background: #5cb85c; box-shadow: 0 0 6px rgba(92,184,92,0.6); }
body.theme-winxp .ruler-playhead::after { border-bottom-color: #5cb85c; }
body.theme-winxp .playhead { background: #5cb85c; box-shadow: 0 0 10px rgba(92,184,92,0.7); }
body.theme-winxp .playhead::before { border-top-color: #5cb85c; }

/* WinXP: load reel buttons — XP Start button style */
body.theme-winxp .load-reel-btn {
  background: linear-gradient(180deg, #60b040 0%, #40901a 100%);
  color: #ffffff;
  border: 1px solid #208000;
  border-radius: 4px;
  font-family: Tahoma, sans-serif;
  font-size: 9px;
  letter-spacing: 0.5px;
  font-weight: bold;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}
body.theme-winxp .load-reel-btn:hover {
  background: linear-gradient(180deg, #70c050 0%, #50a020 100%);
  color: #ffffff;
  border-color: #308010;
}

/* WinXP: nav */
body.theme-winxp nav a {
  mix-blend-mode: normal;
  background: rgba(10, 36, 106, 0.8);
  color: #ffffff;
  border-radius: 4px;
  font-family: Tahoma, sans-serif;
  font-size: 9px;
  letter-spacing: 1px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
body.theme-winxp nav a:hover { background: rgba(30, 70, 160, 0.9); }

/* WinXP: taskbar footer */
body.theme-winxp .timeline-footer {
  background: linear-gradient(180deg, #2060a0 0%, #1a4a80 100%);
  border-top: 2px solid #4a90d0;
  color: rgba(255, 255, 255, 0.7);
  font-family: Tahoma, sans-serif;
  font-size: 9px;
  letter-spacing: 0.5px;
}
body.theme-winxp .timeline-footer::before { display: none; }
body.theme-winxp .timeline-footer a { color: rgba(255, 255, 255, 0.75); }
body.theme-winxp .timeline-footer a:hover { color: #5cb85c; }

/* WinXP: kbd toggles */
body.theme-winxp .kbd-legend-toggle {
  mix-blend-mode: normal;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255, 255, 255, 0.8);
  font-family: Tahoma, sans-serif;
  font-size: 9px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
body.theme-winxp .kbd-legend-toggle:hover { background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.1) 100%); color: #ffffff; }

/* WinXP: media folders */
body.theme-winxp .media-folder {
  mix-blend-mode: normal;
  background: rgba(212, 228, 247, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
body.theme-winxp .media-folder:hover { background: rgba(189, 217, 247, 0.95); }
body.theme-winxp .media-folder .folder-icon,
body.theme-winxp .media-folder .folder-label { color: #2a4a80; font-family: Tahoma, sans-serif; font-size: 10px; letter-spacing: 0; }
body.theme-winxp .media-folder .folder-count { color: #5a7aaa; }

/* ══════════════════════════════════════════════════════════
   THEME: Mac OS X Aqua (2000-era)
══════════════════════════════════════════════════════════ */

body.theme-aqua {
  --mono: 'Lucida Grande', 'Lucida Sans', 'Helvetica Neue', Arial, sans-serif;
  --bg-body: #537ab5;
  --color-body: #000000;
  --bg-source-bin: #ffffff;
  --bg-timeline: rgba(212, 212, 212, 0.98);
  --bg-timeline-backdrop: saturate(1.0);
  --bg-transport: rgba(190, 190, 195, 0.99);
  --bg-track-header: rgba(220, 220, 225, 0.97);
  --bg-ruler: rgba(235, 235, 240, 0.98);
  --bg-media-panel: rgba(230, 230, 235, 0.98);
  --bg-kbd-legend: rgba(210, 210, 215, 0.97);
  --bg-kbd-toggle: rgba(210, 210, 215, 0.95);
  --bg-transport-btn: rgba(255, 255, 255, 0.3);
  --bg-transport-btn-hover: rgba(255, 255, 255, 0.45);
  --bg-load-reel-btn: rgba(74, 144, 217, 0.18);
  --bg-load-reel-btn-hover: rgba(74, 144, 217, 0.3);
  --bg-folder: rgba(235, 235, 240, 0.85);
  --bg-folder-hover: rgba(200, 220, 245, 0.9);
  --bg-folder-active: rgba(170, 200, 240, 0.95);
  --bg-contact-glass: rgba(215, 215, 220, 0.95);
  --bg-kbd-key: rgba(235, 235, 240, 0.92);
  --bg-timeline-footer: rgba(185, 185, 190, 0.99);

  --text-primary: #111111;
  --text-secondary: #333333;
  --text-muted: #666666;
  --text-dim: #888888;
  --text-ghost: #aaaaaa;

  --accent-primary: #4a90d9;
  --accent-glow: rgba(74, 144, 217, 0.4);
  --accent-glow-strong: rgba(74, 144, 217, 0.7);
  --accent-bg: rgba(74, 144, 217, 0.12);
  --accent-bg-hover: rgba(74, 144, 217, 0.22);
  --accent-border: rgba(74, 144, 217, 0.4);
  --accent-border-hover: rgba(74, 144, 217, 0.7);
  --accent-text: #2a70b9;
  --accent-outline: rgba(74, 144, 217, 0.8);
  --accent-outline-bg: rgba(74, 144, 217, 0.15);

  --border-primary: rgba(0, 0, 0, 0.18);
  --border-secondary: rgba(0, 0, 0, 0.12);
  --border-dim: rgba(0, 0, 0, 0.08);
  --border-kbd: rgba(0, 0, 0, 0.2);
  --border-kbd-key: rgba(0, 0, 0, 0.25);
  --border-transport-btn: rgba(0, 0, 0, 0.2);
  --border-transport-btn-hover: rgba(0, 0, 0, 0.3);
  --border-contact-glass: rgba(0, 0, 0, 0.15);
  --border-clip: rgba(0, 0, 0, 0.2);

  --track-video-bg: rgba(74, 144, 217, 0.1);
  --track-video-color: #2a70b9;
  --track-video-border: rgba(74, 144, 217, 0.25);
  --track-audio-bg: rgba(130, 90, 200, 0.1);
  --track-audio-color: #8a5ab8;
  --track-audio-border: rgba(130, 90, 200, 0.25);

  /* Aqua clips: candy-colored, glossy, lickable */
  --clip-v1-bg: rgba(50, 130, 230, 0.92);
  --clip-v1-color: #ffffff;
  --clip-v1-border: rgba(20, 80, 180, 0.7);
  --clip-v2-bg: rgba(90, 200, 90, 0.92);
  --clip-v2-color: #ffffff;
  --clip-v2-border: rgba(40, 150, 40, 0.7);
  --clip-v3-bg: rgba(180, 100, 240, 0.92);
  --clip-v3-color: #ffffff;
  --clip-v3-border: rgba(130, 50, 200, 0.7);
  --clip-v4-bg: rgba(255, 160, 40, 0.92);
  --clip-v4-color: #ffffff;
  --clip-v4-border: rgba(220, 120, 0, 0.7);
  --clip-v5-bg: rgba(240, 70, 70, 0.92);
  --clip-v5-color: #ffffff;
  --clip-v5-border: rgba(200, 30, 30, 0.7);
  --clip-a1-bg: rgba(160, 70, 230, 0.92);
  --clip-a1-color: #ffffff;
  --clip-a1-border: rgba(120, 30, 200, 0.7);
  --clip-a2-bg: rgba(115, 80, 185, 0.75);
  --clip-a2-color: #ffffff;
  --clip-a2-border: rgba(80, 45, 155, 0.55);
  --clip-a3-bg: rgba(100, 70, 170, 0.68);
  --clip-a3-color: rgba(255,255,255,0.9);
  --clip-a3-border: rgba(70, 40, 140, 0.5);
  --clip-a4-bg: rgba(86, 60, 155, 0.58);
  --clip-a4-color: rgba(255,255,255,0.8);
  --clip-a4-border: rgba(58, 35, 128, 0.45);
  --clip-a5-bg: rgba(74, 52, 140, 0.48);
  --clip-a5-color: rgba(255,255,255,0.7);
  --clip-a5-border: transparent;

  --drop-highlight-bg: rgba(74, 144, 217, 0.08);
  --drop-highlight-border: rgba(74, 144, 217, 0.5);
  --ghost-clip-bg: rgba(74, 144, 217, 0.15);
  --ghost-clip-border: rgba(74, 144, 217, 0.6);
  --ghost-clip-color: #4a90d9;

  --marquee-border: rgba(74, 144, 217, 0.7);
  --marquee-bg: rgba(74, 144, 217, 0.08);

  --ruler-mark-minor: rgba(0, 0, 0, 0.12);
  --ruler-mark-major: rgba(0, 0, 0, 0.28);
  --ruler-label-color: rgba(0, 0, 0, 0.45);
  --scrollbar-thumb: rgba(74, 144, 217, 0.4);
  --resize-handle-bar: rgba(0, 0, 0, 0.2);
  --resize-handle-bar-hover: rgba(0, 0, 0, 0.4);
  --radius: 8px;

  --contact-text-primary: #111111;
  --contact-text-secondary: #333333;
  --contact-text-muted: rgba(0, 0, 0, 0.5);
  --contact-text-dim: rgba(0, 0, 0, 0.4);
  --contact-text-ghost: rgba(0, 0, 0, 0.25);
  --contact-hover-color: #2a70b9;
  --contact-divider: rgba(0, 0, 0, 0.15);

  --loader-bg: #6b88b5;
  --loader-stroke: #ffffff;
  --loader-text: #ffffff;
  --loader-ratio: #dde8f5;

  --footer-color: rgba(0, 0, 0, 0.4);
  --footer-link: rgba(0, 0, 0, 0.5);
  --footer-link-hover: #2a70b9;

  --media-panel-item-color: #333333;
  --media-panel-item-hover-color: #000000;
  --media-panel-item-hover-bg: rgba(74, 144, 217, 0.1);
  --media-panel-header-color: #666666;
  --media-panel-duration-color: #888888;
  --media-panel-border: rgba(0, 0, 0, 0.12);

  --nav-bg: rgba(200, 200, 200, 0.8);
  --nav-bg-hover: rgba(220, 220, 220, 0.9);
  --monitor-name-color: #111111;
  --monitor-type-color: #666666;
  --monitor-tc-color: #333333;
  --monitor-screen-radius: 0px;
  --monitor-screen-shadow: none;
  --export-progress-track: rgba(0, 0, 0, 0.1);
  --export-progress-fill: #4a90d9;
  --export-status-color: #111111;
  --grain-opacity: 0;
  --speed-text-shadow: 0 0 8px rgba(74, 144, 217, 0.4);
  --playhead-shadow: 0 0 10px rgba(74, 144, 217, 0.6);

  --theme-picker-bg: rgba(195, 195, 195, 0.97);
  --theme-picker-border: rgba(0, 0, 0, 0.18);
  --theme-picker-color: #333333;
  --theme-picker-title: #666666;
  --theme-picker-item-hover: rgba(74, 144, 217, 0.08);
  --theme-picker-active-color: #2a70b9;
  --theme-picker-active-bg: rgba(74, 144, 217, 0.12);
  --theme-picker-active-border: rgba(74, 144, 217, 0.5);
  --waveform-color: rgba(255,255,255,0.35);
}

/* Aqua: show window chrome */
body.theme-aqua #themeWindowChrome { display: block; }
body.theme-aqua #source-bin,
body.theme-aqua #preview-monitor { top: 28px; }
body.theme-aqua nav { top: 48px; }

/* Aqua: classic OS X desktop — blue linen with subtle noise */
body.theme-aqua {
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(255, 255, 255, 0.04) 1px,
      rgba(255, 255, 255, 0.04) 2px
    ),
    linear-gradient(180deg, #6b9fd4 0%, #3a6ba5 40%, #2a5080 100%);
  background-attachment: fixed;
}

/* Aqua: brushed aluminum title bar */
body.theme-aqua .window-title-bar {
  background:
    repeating-linear-gradient(
      0deg,
      transparent, transparent 1px,
      rgba(0,0,0,0.04) 1px, rgba(0,0,0,0.04) 2px
    ),
    linear-gradient(180deg,
      #e0e0e0 0%,
      #c8c8c8 35%,
      #b8b8b8 65%,
      #c0c0c0 100%
    );
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #808080;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 1px 4px rgba(0,0,0,0.35);
  padding: 4px 8px;
}
body.theme-aqua .window-title {
  font-family: 'Lucida Grande', sans-serif;
  font-size: 11px;
  font-weight: bold;
  color: #333333;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
  text-align: center;
}
body.theme-aqua .window-controls-right { display: none; }
body.theme-aqua .window-traffic-lights {
  display: flex;
  gap: 6px;
  align-items: center;
}
body.theme-aqua .win-btn {
  width: 14px;
  height: 14px;
  min-width: 14px;
  border-radius: 50%;
  font-size: 0;
  padding: 0;
  border: 1px solid rgba(0,0,0,0.25);
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.6), inset 0 -1px 2px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
}
body.theme-aqua .win-btn::after {
  content: '';
  position: absolute;
  top: 1px; left: 20%; right: 20%;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 100%);
  border-radius: 50%;
  pointer-events: none;
}
body.theme-aqua .win-btn.close { background: radial-gradient(circle at 45% 40%, #ff9070, #e02a1a 70%); border-color: #a01508; }
body.theme-aqua .win-btn.minimize { background: radial-gradient(circle at 45% 40%, #ffe070, #d0a000 70%); border-color: #906800; }
body.theme-aqua .win-btn.maximize { background: radial-gradient(circle at 45% 40%, #70e070, #1a9a1a 70%); border-color: #066806; }
body.theme-aqua .win-btn:hover { filter: brightness(1.15); }

/* Aqua: brushed aluminum transport bar */
body.theme-aqua .transport-bar {
  background:
    repeating-linear-gradient(
      0deg,
      transparent, transparent 1px,
      rgba(0,0,0,0.03) 1px, rgba(0,0,0,0.03) 2px
    ),
    linear-gradient(180deg,
      #d5d5d8 0%,
      #c2c2c5 25%,
      #b0b0b4 50%,
      #a5a5a9 75%,
      #adadb0 100%
    );
  border-bottom: 1px solid #808084;
  border-top: 1px solid #e0e0e2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

/* Aqua: gel buttons — glossy bubble with white dome highlight */
body.theme-aqua .transport-btn {
  background: linear-gradient(180deg,
    rgba(255,255,255,0.98) 0%,
    rgba(190,215,255,0.85) 15%,
    rgba(80,150,225,0.92) 40%,
    rgba(40,100,200,0.97) 65%,
    rgba(55,125,215,0.9) 85%,
    rgba(100,170,240,0.7) 100%
  );
  border: 1px solid rgba(15, 50, 140, 0.75);
  border-top-color: rgba(120, 170, 240, 0.5);
  border-radius: 50px;
  color: #ffffff;
  font-family: 'Lucida Grande', sans-serif;
  font-size: 11px;
  text-shadow: 0 -1px 1px rgba(0,0,0,0.45);
  box-shadow: 
    0 2px 6px rgba(0,0,0,0.35),
    0 4px 12px rgba(30,80,180,0.2),
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 2px rgba(0,0,0,0.2);
  padding: 4px 14px;
  position: relative;
  overflow: hidden;
}
body.theme-aqua .transport-btn::before {
  content: '';
  position: absolute;
  top: 1px; left: 15%; right: 15%;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 100%);
  border-radius: 50px;
  pointer-events: none;
}
body.theme-aqua .transport-btn:hover {
  background: linear-gradient(180deg,
    rgba(255,255,255,1) 0%,
    rgba(210,230,255,0.92) 15%,
    rgba(100,170,240,0.95) 40%,
    rgba(55,120,225,1) 65%,
    rgba(75,145,235,0.95) 85%,
    rgba(120,185,250,0.8) 100%
  );
  color: #ffffff;
  border-color: rgba(15, 45, 150, 0.85);
  border-top-color: rgba(140, 190, 255, 0.6);
  box-shadow: 
    0 3px 8px rgba(0,0,0,0.4),
    0 5px 16px rgba(30,80,180,0.3),
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -1px 3px rgba(0,0,0,0.2);
}
body.theme-aqua .transport-btn:active {
  background: linear-gradient(180deg,
    rgba(40,90,190,0.97) 0%,
    rgba(55,110,210,0.95) 50%,
    rgba(180,210,250,0.7) 100%
  );
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

/* Aqua: timecode */
body.theme-aqua .transport-tc {
  font-family: 'Lucida Grande', monospace;
  font-size: 13px;
  color: #111111;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}
body.theme-aqua .speed-indicator { color: #2a70b9; text-shadow: 0 0 6px rgba(74,144,217,0.4); }
body.theme-aqua .transport-meta {
  font-family: 'Lucida Grande', sans-serif;
  font-size: 9px;
  color: rgba(0, 0, 0, 0.45);
}
body.theme-aqua .zoom-label,
body.theme-aqua .zoom-pct {
  font-family: 'Lucida Grande', sans-serif;
  color: rgba(0, 0, 0, 0.5);
}

/* Aqua: brushed aluminum track headers */
body.theme-aqua .track-header {
  background:
    repeating-linear-gradient(
      0deg, transparent, transparent 1px,
      rgba(0,0,0,0.025) 1px, rgba(0,0,0,0.025) 2px
    ),
    linear-gradient(90deg, #c5c5c8 0%, #d2d2d5 40%, #cacace 100%);
  border-right: 1px solid #a0a0a4;
  font-family: 'Lucida Grande', sans-serif;
}
body.theme-aqua .track-name {
  font-family: 'Lucida Grande', sans-serif;
  font-size: 9px;
  font-weight: bold;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
  border-radius: 4px;
}
body.theme-aqua .track-name.video {
  background: linear-gradient(180deg, rgba(74,144,217,0.85) 0%, rgba(40,100,190,0.9) 100%);
  color: #ffffff;
  border: 1px solid rgba(40,100,190,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
body.theme-aqua .track-name.audio {
  background: linear-gradient(180deg, rgba(130,90,200,0.85) 0%, rgba(90,50,170,0.9) 100%);
  color: #ffffff;
  border: 1px solid rgba(90,50,170,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
body.theme-aqua .track-icon { color: #555555; }
body.theme-aqua .track-icon:hover { color: #2a70b9; }
body.theme-aqua .track-meta { color: #777777; font-family: 'Lucida Grande', sans-serif; }

/* Aqua: clips with glossy candy gel — lickable bubble */
body.theme-aqua .clip {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 8px;
  font-family: 'Lucida Grande', sans-serif;
  font-size: 8px;
  font-weight: bold;
  border-width: 1px;
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 10px 16px rgba(255,255,255,0.35),
    inset 0 -2px 6px rgba(0,0,0,0.2),
    0 2px 6px rgba(0,0,0,0.35);
  text-shadow: 0 -1px 1px rgba(0,0,0,0.4);
  background-image: linear-gradient(180deg, 
    rgba(255,255,255,0.6) 0%, 
    rgba(255,255,255,0.15) 40%, 
    rgba(0,0,0,0.0) 50%, 
    rgba(0,0,0,0.12) 100%
  ) !important;
  background-blend-mode: overlay;
  position: relative;
  overflow: hidden;
}
body.theme-aqua .clip::after {
  content: '';
  position: absolute;
  top: 1px; left: 10%; right: 10%;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 100%);
  border-radius: 0 0 50% 50%;
  pointer-events: none;
}
body.theme-aqua .clip:hover {
  filter: brightness(1.15) saturate(1.15);
  transform: scaleY(1.04);
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 8px 14px rgba(255,255,255,0.35),
    inset 0 -2px 4px rgba(0,0,0,0.2),
    0 3px 8px rgba(0,0,0,0.4);
}
body.theme-aqua .clip.selected {
  outline: 2px solid #4a90d9;
  box-shadow: 0 0 10px rgba(74, 144, 217, 0.5), inset 0 1px 0 rgba(255,255,255,0.4);
}

/* Aqua: ruler with pinstripes */
body.theme-aqua .timeline-ruler {
  background-image: repeating-linear-gradient(
    90deg, transparent, transparent 2px,
    rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 3px
  );
  background-color: rgba(240, 240, 240, 0.97);
  height: 24px;
}
body.theme-aqua .ruler-label {
  font-family: 'Lucida Grande', sans-serif;
  font-size: 8px;
  color: rgba(0,0,0,0.5);
}
body.theme-aqua .ruler-playhead { background: #4a90d9; box-shadow: 0 0 6px rgba(74,144,217,0.6); }
body.theme-aqua .ruler-playhead::after { border-bottom-color: #4a90d9; }
body.theme-aqua .playhead { background: #4a90d9; box-shadow: 0 0 10px rgba(74,144,217,0.7); }
body.theme-aqua .playhead::before { border-top-color: #4a90d9; }

/* Aqua: load reel buttons — glossy gel bubble */
body.theme-aqua .load-reel-btn {
  background: linear-gradient(180deg,
    rgba(255,255,255,0.98) 0%,
    rgba(190,215,255,0.85) 15%,
    rgba(80,150,225,0.92) 40%,
    rgba(40,100,200,0.97) 65%,
    rgba(55,125,215,0.9) 85%,
    rgba(100,170,240,0.7) 100%
  );
  color: #ffffff;
  border: 1px solid rgba(15, 50, 140, 0.75);
  border-top-color: rgba(120, 170, 240, 0.5);
  border-radius: 50px;
  font-family: 'Lucida Grande', sans-serif;
  font-size: 9px;
  letter-spacing: 0.5px;
  text-shadow: 0 -1px 1px rgba(0,0,0,0.45);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35), 0 4px 12px rgba(30,80,180,0.2), inset 0 1px 0 rgba(255,255,255,0.95);
  position: relative;
  overflow: hidden;
}
body.theme-aqua .load-reel-btn::before {
  content: '';
  position: absolute;
  top: 1px; left: 15%; right: 15%;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0) 100%);
  border-radius: 50px;
  pointer-events: none;
}
body.theme-aqua .load-reel-btn:hover {
  background: linear-gradient(180deg,
    rgba(255,255,255,1) 0%,
    rgba(210,230,255,0.92) 15%,
    rgba(100,170,240,0.95) 40%,
    rgba(55,120,225,1) 65%,
    rgba(75,145,235,0.95) 85%,
    rgba(120,185,250,0.8) 100%
  );
  color: #ffffff;
  border-color: rgba(15, 45, 150, 0.85);
  border-top-color: rgba(140, 190, 255, 0.6);
  box-shadow: 0 3px 8px rgba(0,0,0,0.4), 0 5px 16px rgba(30,80,180,0.3), inset 0 1px 0 rgba(255,255,255,1);
}

/* Aqua: nav — grey gel capsules */
body.theme-aqua nav a {
  mix-blend-mode: normal;
  color: #111111;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.85) 0%,
    rgba(215,215,220,0.8) 15%,
    rgba(175,175,182,0.85) 50%,
    rgba(150,150,160,0.9) 80%,
    rgba(170,170,178,0.8) 100%
  );
  border: 1px solid rgba(0,0,0,0.25);
  border-top-color: rgba(255,255,255,0.3);
  border-radius: 50px;
  font-family: 'Lucida Grande', sans-serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
  box-shadow: 0 2px 4px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.8);
  position: relative;
  overflow: hidden;
}
body.theme-aqua nav a::before {
  content: '';
  position: absolute;
  top: 1px; left: 12%; right: 12%;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%);
  border-radius: 50px;
  pointer-events: none;
}
body.theme-aqua nav a:hover {
  background: linear-gradient(180deg,
    rgba(255,255,255,0.95) 0%,
    rgba(225,225,230,0.9) 15%,
    rgba(190,190,198,0.9) 50%,
    rgba(165,165,175,0.95) 80%,
    rgba(182,182,190,0.85) 100%
  );
  color: #000000;
}

/* Aqua: iTunes-style dock transport footer */
body.theme-aqua .timeline-footer {
  background: linear-gradient(180deg,
    rgba(180,180,180,0.95) 0%,
    rgba(155,155,155,0.98) 100%
  );
  border-top: 1px solid rgba(0,0,0,0.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  color: rgba(0,0,0,0.45);
  font-family: 'Lucida Grande', sans-serif;
  font-size: 9px;
  letter-spacing: 0.5px;
}
body.theme-aqua .timeline-footer a { color: rgba(0,0,0,0.5); }
body.theme-aqua .timeline-footer a:hover { color: #2a70b9; }

/* Aqua: kbd toggles — grey gel capsule */
body.theme-aqua .kbd-legend-toggle {
  mix-blend-mode: normal;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.85) 0%,
    rgba(220,220,225,0.8) 15%,
    rgba(180,180,188,0.85) 50%,
    rgba(155,155,165,0.9) 80%,
    rgba(175,175,182,0.8) 100%
  );
  border: 1px solid rgba(0,0,0,0.25);
  border-top-color: rgba(255,255,255,0.3);
  color: #222222;
  font-family: 'Lucida Grande', sans-serif;
  font-size: 9px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.8);
  position: relative;
  overflow: hidden;
}
body.theme-aqua .kbd-legend-toggle::before {
  content: '';
  position: absolute;
  top: 1px; left: 15%; right: 15%;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%);
  border-radius: 50px;
  pointer-events: none;
}
body.theme-aqua .kbd-legend-toggle:hover {
  background: linear-gradient(180deg,
    rgba(255,255,255,0.95) 0%,
    rgba(230,230,235,0.9) 15%,
    rgba(195,195,202,0.9) 50%,
    rgba(170,170,178,0.95) 80%,
    rgba(188,188,195,0.85) 100%
  );
  color: #000000;
}

/* Aqua: media folders — gel capsules */
body.theme-aqua .media-folder {
  mix-blend-mode: normal;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.82) 0%,
    rgba(215,215,220,0.75) 15%,
    rgba(175,175,182,0.82) 50%,
    rgba(152,152,162,0.88) 80%,
    rgba(168,168,176,0.78) 100%
  );
  border: 1px solid rgba(0,0,0,0.22);
  border-top-color: rgba(255,255,255,0.3);
  border-radius: 50px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.75);
  position: relative;
  overflow: hidden;
}
body.theme-aqua .media-folder::before {
  content: '';
  position: absolute;
  top: 1px; left: 12%; right: 12%;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 100%);
  border-radius: 50px;
  pointer-events: none;
}
body.theme-aqua .media-folder:hover {
  background: linear-gradient(180deg,
    rgba(220,235,255,0.9) 0%,
    rgba(180,210,250,0.85) 15%,
    rgba(110,170,240,0.85) 50%,
    rgba(70,140,220,0.9) 80%,
    rgba(95,155,230,0.82) 100%
  );
  border-color: rgba(20,60,150,0.5);
}
body.theme-aqua .media-folder .folder-icon,
body.theme-aqua .media-folder .folder-label { color: #333333; font-family: 'Lucida Grande', sans-serif; font-size: 10px; letter-spacing: 0.3px; }
body.theme-aqua .media-folder .folder-count { color: #666666; }

/* Aqua: zoom slider — aqua blue */
body.theme-aqua .zoom-slider { background: rgba(0,0,0,0.2); border-radius: 2px; }
body.theme-aqua .zoom-slider::-webkit-slider-thumb {
  background: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(74,144,217,0.9) 100%);
  border: 1px solid rgba(40,100,190,0.5);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.5);
}
body.theme-aqua .zoom-slider::-webkit-slider-thumb:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(100,170,240,0.95) 100%);
  box-shadow: 0 0 8px rgba(74,144,217,0.5);
}

/* Aqua: ghost text */
body.theme-aqua .ghost-text {
  font-family: 'Lucida Grande', sans-serif;
  color: rgba(0,0,0,0.25);
  letter-spacing: 2px;
}

/* Aqua: media panel */
body.theme-aqua .media-panel {
  border: 1px solid rgba(0,0,0,0.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
body.theme-aqua .media-panel-item,
body.theme-aqua .media-panel-header { font-family: 'Lucida Grande', sans-serif; }

/* Aqua: scrollbar thumb — aqua translucent */
body.theme-aqua .timeline-tracks::-webkit-scrollbar-thumb {
  background: rgba(74,144,217,0.4);
  border-radius: 4px;
  border: 1px solid rgba(74,144,217,0.2);
}
