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

:root {
  --bg-darkest: #0a0a12;
  --bg-dark: #0f0f1a;
  --bg-panel: #151522;
  --bg-input: #1a1a2e;
  --bg-hover: #252542;
  --border: #2a2a4a;
  --primary: #4361ee;
  --primary-glow: rgba(67, 97, 238, 0.3);
  --accent-red: #ef233c;
  --accent-green: #06d6a0;
  --text-primary: #ffffff;
  --text-secondary: #8888a8;
  --text-dim: #555570;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg-darkest);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Top Bar */
#top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 16px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 24px;
  filter: drop-shadow(0 0 8px var(--primary));
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.top-center {
  display: flex;
  gap: 4px;
  background: var(--bg-input);
  padding: 4px;
  border-radius: 8px;
}

.view-btn {
  padding: 6px 12px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  transition: all 0.2s;
}

.view-btn:hover {
  color: var(--text-primary);
}

.view-btn.active {
  background: var(--primary);
  color: white;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.icon-btn:hover, .icon-btn.active {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--primary);
}

.export-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--accent-red), #d90429);
  border: none;
  border-radius: 8px;
  color: white;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(239, 35, 60, 0.3);
  transition: all 0.2s;
}

.export-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(239, 35, 60, 0.5);
}

/* Main Layout */
#main-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Left Panel */
#left-panel {
  width: 280px;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.panel-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s;
}

.tab-btn:hover {
  background: var(--bg-hover);
}

.tab-btn.active {
  background: var(--bg-input);
  color: var(--text-primary);
  border-bottom: 2px solid var(--primary);
}

.tab-content {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.tab-content.active {
  display: block;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
  margin-bottom: 16px;
}

.upload-zone.dragover {
  border-color: var(--primary);
  background: var(--primary-glow);
}

.upload-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.upload-text {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 13px;
}

.browse-btn {
  padding: 8px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  transition: all 0.2s;
}

.browse-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.format-badge {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.model-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  transition: all 0.2s;
}

.model-card:hover {
  border-color: var(--primary);
}

.model-thumb {
  font-size: 32px;
  margin-bottom: 8px;
}

.model-name {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.model-load {
  padding: 4px 12px;
  background: var(--primary);
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.model-card:hover .model-load {
  opacity: 1;
}

/* Accordion */
.accordion-section {
  margin-bottom: 8px;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.accordion-header:hover {
  background: var(--bg-hover);
}

.accordion-arrow {
  font-size: 10px;
  transition: transform 0.2s;
}

.accordion-section.open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-body {
  display: none;
  padding: 8px 0;
}

.accordion-section.open .accordion-body {
  display: block;
}

/* Preset Cards */
.preset-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 6px;
  transition: all 0.2s;
}

.preset-card:hover {
  border-color: var(--primary);
}

.preset-preview {
  width: 40px;
  height: 40px;
  background: var(--bg-hover);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.preset-info {
  flex: 1;
}

.preset-name {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 2px;
}

.preset-duration {
  font-size: 10px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

.preset-apply {
  padding: 6px 12px;
  background: var(--primary);
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s;
}

.preset-card:hover .preset-apply {
  opacity: 1;
}

/* Effects Tab */
.effects-section {
  margin-bottom: 20px;
}

.effects-section h4 {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.effect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.effect-btn {
  padding: 10px 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.effect-btn:hover {
  background: var(--bg-hover);
  border-color: var(--primary);
}

.effect-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.effect-control label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  min-width: 100px;
}

.effect-control input[type="range"] {
  flex: 1;
  height: 4px;
  background: var(--bg-hover);
  border-radius: 2px;
  -webkit-appearance: none;
}

.effect-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
}

.bg-options {
  display: grid;
  gap: 10px;
}

.bg-options label {
  font-size: 12px;
  color: var(--text-secondary);
}

.bg-options input[type="color"] {
  width: 100%;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-input);
  cursor: pointer;
}

/* Camera Tab */
.camera-views h4,
.camera-controls h4 {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.view-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 20px;
}

.cam-view-btn {
  padding: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.cam-view-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--primary);
}

.control-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.control-row label {
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 60px;
}

.control-row input[type="range"] {
  flex: 1;
  height: 4px;
  background: var(--bg-hover);
  border-radius: 2px;
  -webkit-appearance: none;
}

.control-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
}

.camera-record {
  margin-top: 20px;
}

.record-btn {
  width: 100%;
  padding: 12px;
  background: var(--bg-input);
  border: 1px solid var(--accent-red);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.record-btn:hover {
  background: rgba(239, 35, 60, 0.1);
}

.record-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-red);
  border-radius: 50%;
}

.camera-record label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Viewport */
#viewport {
  flex: 1;
  position: relative;
  background: var(--bg-dark);
  overflow: hidden;
}

#scene-container {
  width: 100%;
  height: 100%;
}

#scene-container canvas {
  display: block;
}

/* Playback Controls */
#playback-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(15, 15, 26, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.playback-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.playback-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.playback-btn.play-btn {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  font-size: 16px;
}

.playback-btn.play-btn:hover {
  background: #5a7bff;
}

.playback-btn.play-btn.playing {
  background: var(--accent-red);
}

.playback-btn.loop-btn.active {
  background: var(--primary);
  color: white;
}

.time-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 0 10px;
}

#speed-select {
  padding: 6px 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

/* Right Panel */
#right-panel {
  width: 300px;
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  overflow-y: auto;
}

.panel-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.panel-header h3 {
  font-size: 14px;
  font-weight: 600;
}

.property-section {
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}

.section-header:hover {
  background: var(--bg-hover);
}

.collapse-icon {
  font-size: 10px;
  transition: transform 0.2s;
}

.property-section.collapsed .collapse-icon {
  transform: rotate(-90deg);
}

.section-body {
  padding: 12px 16px;
}

.property-section.collapsed .section-body {
  display: none;
}

.prop-row {
  margin-bottom: 14px;
}

.prop-row > label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.xyz-inputs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.xyz-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.xyz-input span {
  width: 16px;
  font-size: 11px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

.xyz-input input[type="number"] {
  flex: 1;
  padding: 6px 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

.xyz-input input[type="number"]:focus {
  outline: none;
  border-color: var(--primary);
}

.keyframe-btn {
  width: 24px;
  height: 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.keyframe-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.prop-row input[type="color"] {
  width: 100%;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-input);
  cursor: pointer;
}

.prop-row input[type="range"] {
  width: 100%;
  height: 4px;
  background: var(--bg-hover);
  border-radius: 2px;
  -webkit-appearance: none;
  margin-top: 4px;
}

.prop-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
}

.animation-list {
  min-height: 60px;
}

.empty-state {
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  padding: 20px;
}

.animation-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 6px;
}

.anim-name {
  flex: 1;
  font-size: 12px;
}

.anim-duration {
  font-size: 10px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

.anim-delete {
  width: 20px;
  height: 20px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
}

.anim-delete:hover {
  color: var(--accent-red);
}

.add-animation-btn {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.add-animation-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Timeline Panel */
#timeline-panel {
  height: 180px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
}

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

.timeline-tools {
  display: flex;
  gap: 4px;
}

.timeline-tool-btn {
  width: 28px;
  height: 28px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
}

.timeline-tool-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.timeline-duration {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.timeline-duration input {
  width: 50px;
  padding: 4px 6px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-align: center;
}

.timeline-body {
  display: flex;
  height: calc(100% - 44px);
}

.track-list {
  width: 150px;
  border-right: 1px solid var(--border);
}

.track-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  height: 40px;
}

.track-icon {
  font-size: 14px;
}

.track-name {
  flex: 1;
  font-size: 12px;
}

.track-visibility {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 12px;
}

.timeline-grid {
  flex: 1;
  position: relative;
  overflow-x: auto;
}

.time-ruler {
  height: 24px;
  background: var(--bg-input);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.time-marker {
  position: absolute;
  height: 100%;
  border-left: 1px solid var(--border);
}

.time-marker span {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 10px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

.tracks-container {
  position: relative;
}

.track-row {
  height: 40px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.timeline-clip {
  position: absolute;
  top: 6px;
  height: 28px;
  background: linear-gradient(90deg, var(--primary), #6366f1);
  border-radius: 4px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  cursor: grab;
  min-width: 60px;
}

.timeline-clip span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-clip .clip-delete {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 14px;
  padding: 0 2px;
  margin-left: 4px;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
  flex-shrink: 0;
}

.timeline-clip:hover .clip-delete {
  opacity: 1;
}

.timeline-clip .clip-delete:hover {
  color: #fff;
}

.timeline-clip.effect-clip {
  background: linear-gradient(90deg, #a855f7, #ec4899);
}

.playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-red);
  left: 0;
  z-index: 10;
  pointer-events: none;
}

.playhead::before {
  content: '';
  position: absolute;
  top: 0;
  left: -5px;
  border: 6px solid transparent;
  border-top: 8px solid var(--accent-red);
}

/* Footer */
#footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  background: var(--bg-darkest);
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-dim);
}

#footer a {
  color: var(--primary);
  text-decoration: none;
}

#footer a:hover {
  text-decoration: underline;
}

.separator {
  color: var(--border);
}

.shortcut-hint {
  font-family: 'JetBrains Mono', monospace;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
}

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

.modal-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
}

.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  max-height: 400px;
  overflow-y: auto;
}

.modal-body.hidden {
  display: none;
}

.export-section {
  margin-bottom: 20px;
}

.export-section h4 {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.radio-group {
  display: flex;
  gap: 16px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}

.export-section select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
}

.export-section input[type="range"] {
  width: 100%;
  height: 6px;
  background: var(--bg-hover);
  border-radius: 3px;
  -webkit-appearance: none;
}

.export-section input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
}

.quality-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
}

.export-preview {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-input);
  border-radius: 12px;
}

.preview-thumb {
  width: 120px;
  height: 80px;
  background: var(--bg-hover);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 12px;
}

.export-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.progress-container {
  text-align: center;
}

.progress-bar {
  height: 8px;
  background: var(--bg-hover);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent-green));
  width: 0%;
  transition: width 0.3s;
}

.progress-text {
  font-size: 14px;
  margin-bottom: 8px;
}

.progress-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 12px;
  color: var(--text-secondary);
}

.complete-content {
  text-align: center;
}

.complete-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.complete-content h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.complete-content video {
  width: 100%;
  max-height: 200px;
  border-radius: 8px;
  background: #000;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.cancel-btn {
  padding: 10px 20px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.cancel-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.export-start-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--accent-green), #059669);
  border: none;
  border-radius: 8px;
  color: white;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.export-start-btn:hover {
  opacity: 0.9;
}

.export-start-btn.hidden,
.download-btn.hidden {
  display: none;
}

.download-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  border: none;
  border-radius: 8px;
  color: white;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

/* Help Modal */
.help-content {
  max-width: 500px;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.shortcut {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

kbd {
  padding: 4px 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* Responsive */
@media (max-width: 1200px) {
  #left-panel {
    width: 240px;
  }
  
  #right-panel {
    width: 260px;
  }
}

@media (max-width: 900px) {
  #main-layout {
    flex-direction: column;
  }
  
  #left-panel,
  #right-panel {
    width: 100%;
    height: auto;
    max-height: 200px;
  }
  
  #viewport {
    min-height: 300px;
  }
  
  #timeline-panel {
    height: 120px;
  }
  
  #playback-controls {
    padding: 8px 12px;
    gap: 4px;
  }
  
  .playback-btn {
    width: 32px;
    height: 32px;
  }
  
  .playback-btn.play-btn {
    width: 38px;
    height: 38px;
  }
}