:root {
  --bg-main: #0B0E14;
  --bg-card: #151A23;
  --bg-input: #1F2633;
  --border: #2A3441;
  --text-main: #E2E8F0;
  --text-muted: #94A3B8;
  --accent: #00D2FF;
  --accent-glow: rgba(0, 210, 255, 0.3);
  --success: #00E676;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', -apple-system, sans-serif; }
body { background: var(--bg-main); color: var(--text-main); line-height: 1.5; padding: 20px; }
.container { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 350px 1fr; gap: 20px; }
@media (max-width: 900px) { .container { grid-template-columns: 1fr; } }

.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 15px; box-shadow: 0 8px 30px rgba(0,0,0,0.5); }
.card-header { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 700; border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 5px; }

.form-group { display: flex; flex-direction: column; gap: 5px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
input, select, textarea { width: 100%; padding: 10px 12px; background: var(--bg-input); border: 1px solid var(--border); color: #fff; border-radius: 6px; font-size: 13px; transition: 0.3s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
textarea { resize: vertical; min-height: 80px; }

.btn { padding: 12px 16px; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.2s; text-align: center; }
.btn-primary { background: linear-gradient(135deg, #00D2FF, #005EEA); color: white; box-shadow: 0 4px 15px var(--accent-glow); }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-success { background: linear-gradient(135deg, #00E676, #00B259); color: white; box-shadow: 0 4px 15px rgba(0,230,118,0.3); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
.btn-outline:hover { background: var(--bg-input); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

#motionCanvas { width: 100%; border-radius: 8px; border: 1px solid var(--border); background: #000; box-shadow: 0 0 20px rgba(0,0,0,0.8) inset; }
#recordedPlayer { width: 100%; border-radius: 8px; border: 1px solid var(--border); }
.status-text { font-size: 13px; font-weight: 500; text-align: center; min-height: 20px; }

progress { width: 100%; height: 8px; border-radius: 4px; overflow: hidden; appearance: none; }
progress::-webkit-progress-bar { background-color: var(--bg-input); }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--accent), var(--success)); }
