:root {
  --bg: #14151c; --panel: #1c1e29; --panel2: #232636; --line: #2f3348;
  --text: #e8e9f2; --dim: #8f93a9; --accent: #7c5cff; --accent2: #00e5ff;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 13px/1.4 "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; display: flex; flex-direction: column; overflow: hidden; }

#top { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--panel); border-bottom: 1px solid var(--line); }
#top h1 { font-size: 16px; margin: 0; }
#top small { color: var(--dim); font-weight: 400; margin-left: 6px; }
.spacer { flex: 1; }

#app { flex: 1; display: grid; grid-template-columns: 280px 1fr 320px; min-height: 0; }
#left, #right { background: var(--panel); overflow-y: auto; min-height: 0; }
#left { border-right: 1px solid var(--line); }
#right { border-left: 1px solid var(--line); }
#center { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
#stagewrap { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; background: repeating-conic-gradient(#191a23 0% 25%, #15161d 0% 50%) 0 0 / 24px 24px; overflow: hidden; }
#stage { box-shadow: 0 6px 30px rgba(0, 0, 0, .55); cursor: grab; touch-action: none; }
#timeline { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: var(--panel); border-top: 1px solid var(--line); }
#timeline input[type=range] { flex: 1; }
.tlabel { color: var(--dim); font-variant-numeric: tabular-nums; min-width: 110px; text-align: right; }

.btn { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; cursor: pointer; font: inherit; }
.btn:hover:not(:disabled) { border-color: var(--accent); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); }
.btn.sm { padding: 4px 8px; font-size: 12px; }
.btn.xs { padding: 2px 6px; font-size: 11px; }

input, select, textarea { background: #12131a; color: var(--text); border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; font: inherit; min-width: 0; }
input[type=color] { padding: 0; height: 26px; width: 100%; background: none; }
input[type=checkbox] { width: 16px; height: 16px; }
textarea { resize: vertical; width: 100%; }
@media (max-width: 1000px) { #app { grid-template-columns: 220px 1fr 260px; } }
