:root { --bg: #1e1e1e; --panel: #2d2d2d; --accent: #007acc; --text: #eee; }
body { margin: 0; font-family: sans-serif; display: flex; height: 100vh; background: var(--bg); color: var(--text); overflow: hidden; }
#toolbar { width: 60px; background: #252526; border-right: 1px solid #444; display: flex; flex-direction: column; align-items: center; padding: 10px 0; gap: 10px; z-index: 100; }
.tool-btn { width: 40px; height: 40px; background: #333; border: 1px solid #555; color: white; cursor: pointer; border-radius: 4px; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.tool-btn.active { background: var(--accent); border-color: #fff; }
#code-side { width: 300px; display: flex; flex-direction: column; border-right: 1px solid #444; }
#canvas-side { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; background: #333; overflow: auto; outline: none; }
#canvas-side.drag-over { background: #444; box-shadow: inset 0 0 50px var(--accent); }
#svg-render { background: white; background-image: radial-gradient(#ccc 1px, transparent 1px); background-size: 10px 10px; position: relative; box-shadow: 0 0 30px rgba(0,0,0,0.5); }
#svg-render svg { width: 100%; height: 100%; display: block; overflow: visible; }
.selected { outline: 2px dashed #ff9800 !important; outline-offset: 2px; }
.draggable { cursor: move; }
.handle { width: 10px; height: 10px; background: #ff9800; position: absolute; border: 1px solid white; border-radius: 2px; z-index: 1000; }
#inspector-side { width: 240px; background: var(--panel); border-left: 1px solid #444; padding: 15px; }
textarea { flex: 1; background: #1e1e1e; color: #9cdcfe; border: none; padding: 10px; font-family: monospace; outline: none; resize: none; font-size: 11px; }
button.action-btn { width: 100%; padding: 8px; margin-bottom: 5px; cursor: pointer; background: #444; color: white; border: 1px solid #555; }