:root{--bg-primary: #1a1a1e;--bg-secondary: #24242a;--bg-tertiary: #2e2e36;--bg-hover: #383842;--border: #3a3a44;--text-primary: #e8e8ec;--text-secondary: #a0a0aa;--text-muted: #6a6a74;--accent: #5b8af5;--accent-hover: #7aa2ff;--accent-dim: #3a5a9f;--danger: #e05555;--success: #4caf80;--profile-stroke: #5b8af5;--profile-fill: rgba(91, 138, 245, .08);--dim-stroke: #5b8af544;--hand-fill: #3a3a44;--hand-stroke: #555560;--font-mono: "SF Mono", "Fira Code", "Cascadia Code", monospace;--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--radius: 6px;--radius-lg: 10px}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;overflow:hidden}body{font-family:var(--font-sans);font-size:13px;color:var(--text-primary);background:var(--bg-primary);-webkit-font-smoothing:antialiased}input[type=number],input[type=text],input[type=range]{font-family:var(--font-mono);font-size:13px;color:var(--text-primary);background:var(--bg-primary);border:1px solid var(--border);border-radius:var(--radius);padding:6px 8px;outline:none;transition:border-color .15s}input[type=number]:focus,input[type=text]:focus{border-color:var(--accent)}input[type=number]{width:80px;text-align:right;-moz-appearance:textfield}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;padding:0;width:100%;height:20px;cursor:pointer}input[type=range]::-webkit-slider-track{height:4px;background:var(--bg-tertiary);border-radius:2px}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;border-radius:50%;background:var(--accent);margin-top:-5px;cursor:pointer}input[type=range]::-moz-range-track{height:4px;background:var(--bg-tertiary);border-radius:2px;border:none}input[type=range]::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:var(--accent);border:none;cursor:pointer}button{font-family:var(--font-sans);font-size:12px;font-weight:500;color:var(--text-primary);background:var(--bg-tertiary);border:1px solid var(--border);border-radius:var(--radius);padding:6px 14px;cursor:pointer;transition:background .15s,border-color .15s;white-space:nowrap}button:hover{background:var(--bg-hover);border-color:var(--accent-dim)}button.primary{background:var(--accent);border-color:var(--accent);color:#fff}button.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}label{font-size:11px;font-weight:500;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px}.field{display:flex;flex-direction:column;gap:4px}.field-row{display:flex;align-items:center;gap:8px}.field-row label{min-width:90px}.unit{font-size:11px;color:var(--text-muted)}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}.lang-select{font-family:var(--font-mono);font-size:11px;color:var(--text-primary);background:var(--bg-primary);border:1px solid var(--border);border-radius:var(--radius);padding:4px 6px;cursor:pointer;outline:none}.lang-select:focus{border-color:var(--accent)}.toggle-btn{font-size:11px;padding:4px 10px;background:var(--bg-tertiary);border:1px solid var(--border);border-radius:var(--radius);color:var(--text-secondary);cursor:pointer;transition:background .15s,border-color .15s,color .15s}.toggle-btn:hover{background:var(--bg-hover)}.toggle-btn.active{background:var(--accent-dim);border-color:var(--accent);color:var(--text-primary)}#app{display:flex;flex-direction:column;height:100vh;overflow:hidden}#topbar{display:flex;align-items:center;gap:12px;height:48px;padding:0 16px;background:var(--bg-secondary);border-bottom:1px solid var(--border);flex-shrink:0}#topbar .app-title{font-size:13px;font-weight:600;color:var(--accent);letter-spacing:1px;text-transform:uppercase;flex-shrink:0}#topbar .title-input{flex:1;min-width:0;text-align:center;font-size:14px;font-weight:500;background:transparent;border:1px solid transparent;color:var(--text-primary);padding:4px 12px;border-radius:var(--radius)}#topbar .title-input:hover{border-color:var(--border)}#topbar .title-input:focus{border-color:var(--accent);background:var(--bg-primary)}#topbar .actions{display:flex;gap:6px;flex-shrink:0}#workspace{display:flex;flex:1;min-height:0;overflow:hidden}#hand-panel{width:320px;min-width:280px;display:flex;flex-direction:column;background:var(--bg-secondary);border-right:1px solid var(--border);overflow:hidden}#hand-panel .hand-view{flex:1;display:flex;align-items:center;justify-content:center;padding:16px;min-height:0}#hand-panel .hand-view svg{width:100%;height:100%;max-width:280px}#hand-panel .hand-controls{padding:12px 16px;display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--border);flex-shrink:0}#right-panel{flex:1;display:flex;flex-direction:column;min-width:0;overflow:hidden}#profiles-panel{min-height:100px;max-height:140px;border-bottom:1px solid var(--border);padding:10px 16px;overflow-x:auto;overflow-y:hidden;flex-shrink:0}#profiles-panel .profiles-row{display:flex;gap:10px;align-items:center;height:100%}#profiles-panel .profile-card{flex-shrink:0;width:90px;height:110px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:var(--bg-tertiary);border:1px solid var(--border);border-radius:var(--radius-lg);cursor:pointer;transition:border-color .15s,background .15s;padding:6px;position:relative}#profiles-panel .profile-card:hover{border-color:var(--accent-dim);background:var(--bg-hover)}#profiles-panel .profile-card.active{border-color:var(--accent)}#profiles-panel .profile-card svg{width:50px;height:50px}#profiles-panel .profile-card .card-label{font-size:10px;color:var(--text-secondary);text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}#profiles-panel .profile-card .card-dims{font-size:9px;font-family:var(--font-mono);color:var(--text-muted)}#profiles-panel .profile-card .delete-btn{position:absolute;top:3px;right:3px;width:18px;height:18px;padding:0;font-size:13px;border-radius:50%;background:var(--bg-primary);border:1px solid var(--border);color:var(--text-muted);display:none;align-items:center;justify-content:center}#profiles-panel .profile-card:hover .delete-btn{display:flex}#profiles-panel .profile-card .delete-btn:hover{color:var(--danger);border-color:var(--danger)}#profiles-panel .empty-state{color:var(--text-muted);font-size:12px;display:flex;align-items:center;height:100%;padding-left:4px}#work-area{flex:1;display:flex;min-height:0;overflow:hidden}#work-area .controls{width:240px;min-width:200px;padding:16px;display:flex;flex-direction:column;gap:14px;overflow-y:auto;border-right:1px solid var(--border);flex-shrink:0}#work-area .controls .section-title{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.8px;color:var(--text-muted);padding-bottom:4px;border-bottom:1px solid var(--border);margin-top:4px}#work-area .preview{flex:1;display:flex;align-items:center;justify-content:center;padding:20px;min-width:0}#work-area .preview svg{max-width:100%;max-height:100%}.height-mode-toggle{display:flex;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.height-mode-toggle button{flex:1;border:none;border-radius:0;font-size:11px;padding:4px 8px;background:var(--bg-primary);color:var(--text-muted)}.height-mode-toggle button.active{background:var(--accent-dim);color:var(--text-primary)}.height-mode-toggle button+button{border-left:1px solid var(--border)}
