*{margin:0;padding:0;box-sizing:border-box}html,body,#root{width:100%;height:100%;overflow:hidden}body{font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,Helvetica Neue,sans-serif;background:#1a1a2e;color:#e0e0e0;-webkit-font-smoothing:antialiased;user-select:none;-webkit-user-select:none;touch-action:manipulation}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#fff3;border-radius:3px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 16px;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .15s ease;min-height:44px;min-width:44px;touch-action:manipulation}.btn-primary{background:#22c55e;color:#fff}.btn-primary:hover{background:#16a34a}.btn-secondary{background:#ffffff1a;color:#e0e0e0;border:1px solid rgba(255,255,255,.15)}.btn-secondary:hover{background:#ffffff26}.btn-danger{background:#ef444433;color:#ef4444;border:1px solid rgba(239,68,68,.3)}.btn-danger:hover{background:#ef44444d}.btn-sm{padding:8px 12px;font-size:13px;min-height:44px}.input{background:#ffffff14;border:1px solid rgba(255,255,255,.15);border-radius:8px;padding:8px 12px;color:#e0e0e0;font-size:14px;outline:none;transition:border-color .15s;min-height:44px}.input:focus{border-color:#22c55e}.input::placeholder{color:#ffffff4d}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:#2a2a3e;border-radius:16px;padding:24px;min-width:300px;max-width:90vw;border:1px solid rgba(255,255,255,.1)}.editor-scroll-row{-webkit-overflow-scrolling:touch;scrollbar-width:none}.editor-scroll-row::-webkit-scrollbar{display:none}.editor-canvas-stage{touch-action:none}.editor-top-button{width:auto;min-width:106px;height:44px;padding:0 12px;flex:0 0 auto;white-space:nowrap}.editor-top-button.is-compact{width:44px;min-width:44px;padding:0}.editor-top-button-icon{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;font-size:16px;line-height:1;flex:0 0 auto}.editor-top-button-label{overflow:visible;text-overflow:clip}.library-compact-button{min-height:32px;padding:5px 9px;font-size:12px;border-radius:6px}@media(max-width:900px){.modal-content{width:min(92vw,560px);max-height:88vh;overflow:auto}}
