.toolbar{display:flex;align-items:center;gap:4px;padding:6px 12px;background:var(--bg-toolbar);border-bottom:1px solid var(--border);flex-shrink:0;flex-wrap:wrap;position:relative;z-index:300}.toolbar-group{display:flex;gap:2px}.toolbar-divider{width:1px;height:28px;background:var(--border);margin:0 4px;flex-shrink:0}.tool-btn{display:flex;flex-direction:column;align-items:center;gap:1px;padding:6px 10px;border:1px solid transparent;border-radius:6px;background:none;cursor:pointer;color:var(--text-secondary);font-family:inherit;transition:all .15s ease;min-width:48px;user-select:none;-webkit-user-select:none}.tool-btn:hover{background:var(--bg-hover);color:var(--text-primary)}.tool-btn.active{background:var(--bg-active);border-color:var(--accent);color:var(--accent-dark)}.tool-btn:disabled{opacity:.35;cursor:default}.tool-btn.danger:not(:disabled):hover{background:#ffebee;color:#c62828}[data-theme=dark] .tool-btn.danger:not(:disabled):hover{background:#4a1c1c;color:#ff8a80}.tool-icon{font-size:18px;line-height:1}.tool-label{font-size:10px;line-height:1}.export-menu{position:absolute;top:100%;left:0;margin-top:4px;background:var(--bg-panel);border:1px solid var(--border-panel);border-radius:8px;box-shadow:0 4px 16px var(--shadow);z-index:200;min-width:180px;overflow:hidden}.export-menu-item{display:flex;flex-direction:column;align-items:flex-start;width:100%;padding:8px 14px;border:none;background:none;cursor:pointer;font-family:inherit;text-align:left}.export-menu-item:hover{background:var(--bg-hover)}.export-menu-item+.export-menu-item{border-top:1px solid var(--border)}.export-ext{font-size:13px;font-weight:600;color:var(--text-primary)}.export-desc{font-size:11px;color:var(--text-muted)}@media(max-width:600px){.tool-btn{padding:8px;min-width:44px}.tool-label{display:none}.tool-icon{font-size:22px}}.text-editor-panel{position:absolute;z-index:100;background:var(--bg-panel);border:1px solid var(--border-panel);border-radius:8px;padding:12px;box-shadow:0 4px 16px var(--shadow);min-width:200px;max-width:280px;display:flex;flex-direction:column;gap:8px}.text-editor-title{font-size:12px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px}.text-editor-zone{display:flex;flex-direction:column;gap:2px}.text-editor-label{font-size:11px;color:var(--text-muted);font-weight:500}.text-editor-input{border:1px solid var(--border);border-radius:4px;padding:6px 8px;font-size:13px;resize:vertical;min-height:28px;outline:none;transition:border-color .15s;font-family:Inter,system-ui,sans-serif;background:var(--bg-panel);color:var(--text-primary)}.text-editor-input:focus{border-color:var(--accent);box-shadow:0 0 0 2px #2196f326}[data-theme=dark] .text-editor-input:focus{box-shadow:0 0 0 2px #a8a5ff26}.text-editor-input::placeholder{color:var(--text-muted)}.text-editor-hint{font-size:10px;color:var(--text-muted);text-align:right}@media(max-width:600px){.text-editor-panel{position:fixed!important;inset:auto 8px 8px!important;max-width:none;border-radius:12px;box-shadow:0 -4px 24px var(--shadow)}}.property-panel{position:absolute;right:8px;top:8px;z-index:90;background:var(--bg-panel);border:1px solid var(--border-panel);border-radius:8px;padding:10px;box-shadow:0 4px 16px var(--shadow);width:220px;max-height:calc(100% - 16px);overflow-y:auto;display:flex;flex-direction:column;gap:10px}.prop-section{display:flex;flex-direction:column;gap:4px}.prop-label{font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.4px}.color-grid{display:flex;flex-wrap:wrap;gap:3px}.color-swatch{width:22px;height:22px;border-radius:4px;border:1.5px solid var(--border);cursor:pointer;padding:0;transition:transform .1s}.color-swatch:hover{transform:scale(1.15);border-color:var(--text-muted)}.color-swatch.selected{border-color:var(--accent);box-shadow:0 0 0 2px #0984e34d}[data-theme=dark] .color-swatch.selected{box-shadow:0 0 0 2px #a8a5ff4d}.color-input{width:100%;height:26px;border:1px solid var(--border);border-radius:4px;cursor:pointer;padding:1px 2px;background:var(--bg-panel)}.icon-zone-row{margin-bottom:6px}.icon-zone-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:2px}.icon-zone-label{font-size:10px;color:var(--text-muted)}.icon-align-row{display:flex;gap:2px}.icon-align-btn{width:20px;height:20px;border:1px solid var(--border);border-radius:3px;background:none;cursor:pointer;font-size:9px;line-height:1;padding:0;display:flex;align-items:center;justify-content:center;color:var(--text-muted)}.icon-align-btn:hover{background:var(--bg-hover);border-color:var(--text-muted)}.icon-align-btn.selected{background:var(--bg-active);border-color:var(--accent);color:var(--accent)}.icon-grid{display:flex;flex-wrap:wrap;gap:2px}.icon-btn{width:26px;height:26px;border:1px solid var(--border);border-radius:4px;background:none;cursor:pointer;font-size:14px;line-height:1;padding:0;display:flex;align-items:center;justify-content:center;color:var(--text-primary)}.icon-btn:hover{background:var(--bg-hover);border-color:var(--text-muted)}.icon-btn.selected{background:var(--bg-active);border-color:var(--accent)}@media(max-width:600px){.property-panel{position:fixed;inset:auto 8px 8px;width:auto;max-height:50vh;border-radius:12px;box-shadow:0 -4px 24px var(--shadow)}}.app{display:flex;flex-direction:column;width:100vw;height:100vh;height:100dvh;overflow:hidden;font-family:Inter,system-ui,-apple-system,sans-serif}:root{--bg-canvas: #fafafa;--bg-panel: #ffffff;--bg-toolbar: #ffffff;--bg-hover: #f0f0f0;--bg-active: #e3f2fd;--border: #e0e0e0;--border-panel: #d0d0d0;--text-primary: #333;--text-secondary: #555;--text-muted: #888;--accent: #2196f3;--accent-dark: #1565c0;--grid: #e0e0e0;--shadow: rgba(0, 0, 0, .12)}[data-theme=dark]{--bg-canvas: #121212;--bg-panel: #232329;--bg-toolbar: #232329;--bg-hover: #363636;--bg-active: #403e6a;--border: #46464f;--border-panel: #46464f;--text-primary: #e3e3e8;--text-secondary: #b0b0b8;--text-muted: #8e8d9c;--accent: #a8a5ff;--accent-dark: #beb9ff;--grid: #2e2d39;--shadow: rgba(0, 0, 0, .3)}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body,#root{width:100%;height:100%;overflow:hidden}body{background:var(--bg-canvas);font-family:Inter,system-ui,-apple-system,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--text-primary)}
