
/* --- 1. Variables & Reset --- */
:root {
    color-scheme: dark;
    --bg-dark:      #1a1a1a;
    --bg-panel:     #16191e;
    --bg-panel-alt: rgba(30, 34, 42, 0.7);
    --bg-hover:     #2a2f3a;
    --bg-active:    #323846;
    --bg-input:     #0a0c10;
    --accent:       #818cf8;
    --accent-hover: #6366f1;
    --accent-dim:   rgba(129, 140, 248, 0.1);
    --selected:     #312e81;
    --text-main:    #e2e8f0;
    --text-dim:     #94a3b8;
    --text-bright:  #ffffff;
    --border:       #262b35;
    --border-light: #334155;
    --danger: #f43f5e;
    --success: #10b981;
    --audio-bg: hsl(38, 80%, 50%);
    --media-bg: #ec4899;
    --folder-bg: #3b82f6;
    --timeline-h: 350px;
    --tween-color: #0ea5e9;
    --range-color: rgba(59, 130, 246, 0.5);
    --mask-color: #a855f7;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --glass-blur: blur(12px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent text selection on interactive UI containers only */
.panel, .header, .tools-grid, .group-header,
.anp-dropdown-menu, .timeline-scroll-area,
.btn-toolbar, .tool-btn, .frame,
.layer-item, .anp-dropdown-trigger,
.timeline-header, .timeline-clip {
    user-select: none;
    -webkit-user-select: none;
}
input, textarea, [contenteditable] {
    user-select: auto;
    -webkit-user-select: auto;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-size: 12px;
    touch-action: none;
    font-weight: 600;
}
