*{box-sizing:border-box;margin:0;padding:0}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#f5f5f5;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}.app-container{flex-direction:column;height:100vh;display:flex;overflow:hidden}.app-header{background:#fff;border-bottom:1px solid #e5e7eb;padding:24px 32px;box-shadow:0 1px 3px #0000001a}.app-header h1{color:#111827;margin-bottom:8px;font-size:28px;font-weight:600}.app-subtitle{color:#6b7280;font-size:14px}.app-content,.app-content-three-panels{flex:1;display:flex;overflow:hidden}.panel-a{background:#fff;border-right:1px solid #e5e7eb;flex-shrink:0;min-width:250px;overflow:hidden auto}.panel-b{background:#f9fafb;flex-direction:column;flex:1;min-width:0;display:flex}.panel-c{background:#fff;border-left:1px solid #e5e7eb;min-width:300px}.panel-c.panel-c-collapsed{flex-direction:column;flex:none;min-width:0;display:flex;overflow:hidden}.panel-resizer{cursor:col-resize;background:#e5e7eb;flex-shrink:0;width:4px;transition:background .2s;position:relative}.panel-resizer:hover{background:#3b82f6}.panel-resizer:active{background:#2563eb}.panel-resizer:before{content:"";cursor:col-resize;position:absolute;top:0;bottom:0;left:-2px;right:-2px}.sidebar{background:#fff;border-right:1px solid #e5e7eb;width:300px;padding:24px;overflow-y:auto}.main-content{background:#f9fafb;flex-direction:column;flex:1;display:flex}.host-component-container{background:#fff;flex-direction:column;flex:1;display:flex;position:relative;overflow:auto}.component-header{background:#f9fafb;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;padding:16px 24px;display:flex}.component-title{color:#6b7280;font-size:14px;font-weight:500}.status-badge{border-radius:9999px;align-items:center;padding:4px 10px;font-size:12px;font-weight:500;display:inline-flex}.status-badge.loading{color:#92400e;background:#fef3c7}.status-badge.success{color:#065f46;background:#d1fae5}.status-badge.error{color:#991b1b;background:#fee2e2}.error-banner{color:#991b1b;background:#fef2f2;border-bottom:1px solid #fecaca;padding:12px 24px;font-size:14px}.error-banner strong{font-weight:600}.web-component-wrapper{flex-direction:column;flex:1;width:100%;height:100%;padding:24px;display:flex}.web-component-wrapper simetrik-box{flex:1;width:100%;min-height:0;display:block}.web-component-host{flex:1;width:100%;display:block}.empty-state{color:#6b7280;text-align:center;justify-content:center;align-items:center;height:100%;min-height:400px;padding:48px;display:flex}.empty-state p{font-size:16px;line-height:1.5}.control-panel{border-top:1px solid #e5e7eb;margin-top:32px;padding-top:32px}.control-title{color:#111827;margin-bottom:16px;font-size:18px;font-weight:600}.control-group{margin-bottom:16px}.control-label{color:#374151;margin-bottom:6px;font-size:14px;font-weight:500;display:block}.control-input{color:#111827;background:#fff;border:1px solid #d1d5db;border-radius:6px;width:100%;padding:8px 12px;font-size:14px}.control-input:focus{border-color:#3b82f6;outline:none;box-shadow:0 0 0 3px #3b82f61a}.secret-input-wrapper{align-items:center;display:flex;position:relative}.secret-input-wrapper .control-input{padding-right:36px}.secret-toggle-button{cursor:pointer;color:#6b7280;opacity:.6;background:0 0;border:none;align-items:center;padding:2px 4px;line-height:1;transition:opacity .15s;display:flex;position:absolute;right:8px}.secret-toggle-button:hover{opacity:1}select.control-input{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 20 20%27%3e%3cpath stroke=%27%236b7280%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.5%27 d=%27M6 8l4 4 4-4%27/%3e%3c/svg%3e");background-position:right 8px center;background-repeat:no-repeat;background-size:20px;padding-right:36px}.control-select{color:#111827;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 20 20%27%3e%3cpath stroke=%27%236b7280%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.5%27 d=%27M6 8l4 4 4-4%27/%3e%3c/svg%3e") right 8px center/20px no-repeat;border:1px solid #d1d5db;border-radius:6px;width:100%;padding:8px 36px 8px 12px;font-size:14px}.control-select:focus{border-color:#3b82f6;outline:none;box-shadow:0 0 0 3px #3b82f61a}.color-input-wrapper{align-items:center;gap:8px;display:flex}.color-input-wrapper .control-input{flex:1}.color-picker{cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:6px;flex-shrink:0;width:40px;height:38px;padding:2px}.color-picker::-webkit-color-swatch-wrapper{padding:0}.color-picker::-webkit-color-swatch{border:none;border-radius:4px}.color-reset-button{color:#6b7280;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;padding:0;font-size:18px;line-height:1;transition:all .2s;display:flex}.color-reset-button:hover{color:#374151;background:#f3f4f6;border-color:#9ca3af}.font-input-wrapper{align-items:center;gap:8px;display:flex}.font-input-wrapper .control-input{flex:1}.control-section-divider{background:#e5e7eb;border:none;height:1px;margin:24px 0}.control-subtitle{color:#374151;margin-bottom:16px;font-size:14px;font-weight:500}.custom-font-select{width:100%;position:relative}.custom-font-select-button{color:#111827;cursor:pointer;text-align:left;background:#fff;border:1px solid #d1d5db;border-radius:6px;justify-content:space-between;align-items:center;width:100%;padding:8px 36px 8px 12px;font-size:14px;transition:all .2s;display:flex}.custom-font-select-button:hover{border-color:#9ca3af}.custom-font-select-button:focus{border-color:#3b82f6;outline:none;box-shadow:0 0 0 3px #3b82f61a}.custom-font-select-button.open{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.custom-font-select-value{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.custom-font-select-arrow{flex-shrink:0;margin-left:8px;transition:transform .2s}.custom-font-select-button.open .custom-font-select-arrow{transform:rotate(180deg)}.custom-font-select-dropdown{z-index:1000;background:#fff;border:1px solid #d1d5db;border-radius:6px;max-height:300px;margin-top:4px;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.custom-font-select-option{color:#111827;cursor:pointer;border-bottom:1px solid #f3f4f6;padding:10px 12px;font-size:14px;transition:background-color .15s}.custom-font-select-option:last-child{border-bottom:none}.custom-font-select-option:hover,.custom-font-select-option.highlighted{background-color:#f3f4f6}.custom-font-select-option.selected{color:#1e40af;background-color:#eff6ff;font-weight:500}.custom-font-select-option.selected.highlighted{background-color:#dbeafe}.control-expand-toggle:hover{opacity:.8}.control-expand-icon{color:#6b7280;margin-left:8px;font-size:12px;transition:transform .2s}.control-section-header{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.control-reset-button{color:#374151;cursor:pointer;background:#f3f4f6;border:1px solid #d1d5db;border-radius:6px;padding:6px 12px;font-size:12px;font-weight:500;transition:all .2s}.control-reset-button:hover{background:#e5e7eb;border-color:#9ca3af}.checkbox-group{margin-bottom:20px}.checkbox-label{cursor:pointer;color:#374151;align-items:center;gap:10px;font-size:14px;display:flex}.checkbox-label input[type=checkbox]{cursor:pointer;accent-color:#3b82f6;width:18px;height:18px}.control-button{color:#fff;cursor:pointer;background:#3b82f6;border:none;border-radius:6px;width:100%;padding:10px 16px;font-size:14px;font-weight:500;transition:background .2s}.control-button:hover{background:#2563eb}.control-button:active{background:#1d4ed8}.control-button.secondary{color:#374151;background:#fff;border:1px solid #d1d5db;margin-top:8px}.control-button.secondary:hover{background:#f9fafb;border-color:#9ca3af}.control-button.secondary:active{background:#f3f4f6}.control-fieldset{background:#fafafa;border:1px dashed #d1d5db;border-radius:6px;margin-bottom:16px;padding:12px}.control-legend{color:#9ca3af;padding:0 8px;font-size:12px;font-weight:500}.control-fieldset .control-group{margin-bottom:12px}.control-fieldset .control-group:last-child{margin-bottom:0}.theme-fields{border:none;margin:8px 0 0;padding:0}.theme-fields:disabled{opacity:.65;pointer-events:none}.control-panel-container{flex-direction:column;gap:32px;padding:24px;display:flex}.control-section{flex-direction:column;display:flex}.control-description{color:#6b7280;margin-bottom:12px;font-size:12px}.control-textarea{color:#111827;resize:vertical;background:#fff;border:1px solid #d1d5db;border-radius:6px;width:100%;padding:8px 12px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px}.control-textarea:focus{border-color:#3b82f6;outline:none;box-shadow:0 0 0 3px #3b82f61a}.stage-container{flex-direction:column;flex:1;display:flex;overflow:hidden}.stage-toolbar{background:#fff;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;gap:16px;padding:12px 16px;display:flex}.toolbar-left{align-items:center;gap:12px;display:flex}.toolbar-title{color:#111827;font-size:14px;font-weight:600}.toolbar-center{flex:1;justify-content:center;display:flex}.toolbar-select{cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:6px;padding:6px 12px;font-size:12px}.toolbar-right{gap:8px;display:flex}.toolbar-button{color:#374151;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:6px;padding:6px 12px;font-size:12px;font-weight:500;transition:all .2s}.toolbar-button:hover{background:#f9fafb;border-color:#9ca3af}.stage-mount{flex-direction:column;flex:1;min-height:0;display:flex;position:relative;overflow:hidden}.stage-background-light{background:#fff}.stage-background-dark{background:#1f2937}.stage-background-grid{background-color:#fff;background-image:linear-gradient(#e5e7eb 1px,#0000 1px),linear-gradient(90deg,#e5e7eb 1px,#0000 1px);background-position:0 0;background-repeat:repeat;background-size:20px 20px;background-attachment:scroll;background-origin:padding-box;background-clip:border-box}.inspector-container{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.inspector-container.inspector-collapsed{flex:none}.inspector-container.inspector-collapsed .inspector-header{border-bottom:none;flex-direction:column;gap:4px;padding:8px}.inspector-container.inspector-collapsed .inspector-header-title{writing-mode:vertical-rl;text-orientation:mixed;white-space:nowrap;font-size:11px;line-height:1.2;transform:rotate(-180deg)}.inspector-header{color:#374151;cursor:pointer;background:#f9fafb;border:none;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;width:100%;padding:12px 16px;font-size:14px;font-weight:600;transition:background .2s;display:flex}.inspector-header:hover{background:#f3f4f6}.inspector-header-title{text-align:left;flex:1}.inspector-header-chevron{color:#6b7280;font-size:12px}.inspector-body{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.inspector-tabs{background:#f9fafb;border-bottom:1px solid #e5e7eb;display:flex}.inspector-tab{color:#6b7280;cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;flex:1;padding:12px 16px;font-size:14px;font-weight:500;transition:all .2s}.inspector-tab:hover{color:#374151;background:#f3f4f6}.inspector-tab.active{color:#3b82f6;background:#fff;border-bottom-color:#3b82f6}.inspector-content{flex:1;padding:16px;overflow-y:auto}.event-log{flex-direction:column;height:100%;display:flex}.event-log-header{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.event-log-header h3{color:#111827;font-size:16px;font-weight:600}.event-log-clear{color:#374151;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:4px;padding:4px 8px;font-size:12px}.event-log-list{flex-direction:column;flex:1;gap:8px;display:flex;overflow-y:auto}.event-log-empty{text-align:center;color:#9ca3af;padding:24px;font-size:14px}.event-log-item{border-radius:6px;align-items:start;gap:12px;padding:8px 12px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;display:flex}.event-log-module-loaded{color:#065f46;background:#d1fae5}.event-log-module-error{color:#991b1b;background:#fee2e2}.event-log-time{color:#6b7280;min-width:80px}.event-log-type{min-width:120px;font-weight:600}.event-log-message{flex:1}.code-generator{flex-direction:column;height:100%;display:flex}.code-generator-header{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.code-generator-header h3{color:#111827;font-size:16px;font-weight:600}.code-generator-copy{color:#fff;cursor:pointer;background:#3b82f6;border:none;border-radius:6px;padding:6px 12px;font-size:12px;font-weight:500;transition:background .2s}.code-generator-copy:hover{background:#2563eb}.code-generator-content{color:#f9fafb;background:#1f2937;border-radius:6px;flex:1;padding:16px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.6;overflow:auto}.code-generator-content code{color:#f9fafb}.performance{flex-direction:column;display:flex}.performance h3{color:#111827;margin-bottom:16px;font-size:16px;font-weight:600}.performance-metrics{flex-direction:column;gap:12px;display:flex}.performance-metric{background:#f9fafb;border-radius:6px;justify-content:space-between;padding:12px;display:flex}.performance-label{color:#6b7280;font-size:14px}.performance-value{color:#111827;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:14px;font-weight:600}.auth-mode-selector{background:#f3f4f6;border-radius:8px;gap:4px;margin-bottom:16px;padding:4px;display:flex}.auth-mode-tab{color:#6b7280;cursor:pointer;background:0 0;border:none;border-radius:6px;flex:1;padding:8px 16px;font-size:14px;font-weight:500;transition:all .2s}.auth-mode-tab:hover{color:#374151;background:#e5e7eb}.auth-mode-tab.active{color:#3b82f6;background:#fff;box-shadow:0 1px 2px #0000000d}.auth-mode-content{margin-top:8px}.button-group{gap:8px;display:flex}.control-button{cursor:pointer;border:none;border-radius:6px;flex:1;padding:10px 16px;font-size:14px;font-weight:500;transition:all .2s}.control-button:disabled{opacity:.5;cursor:not-allowed}.control-button-primary{color:#fff;background:#3b82f6}.control-button-primary:hover:not(:disabled){background:#2563eb}.control-button-primary:active:not(:disabled){background:#1d4ed8}.control-button-secondary{color:#374151;background:#fff;border:1px solid #d1d5db}.control-button-secondary:hover:not(:disabled){background:#f9fafb;border-color:#9ca3af}.control-button-secondary:active:not(:disabled){background:#f3f4f6}.control-error{color:#991b1b;background:#fee2e2;border:1px solid #fecaca;border-radius:6px;margin-top:8px;margin-bottom:8px;padding:10px 12px;font-size:13px}.control-input-readonly{color:#6b7280;cursor:not-allowed;background:#f9fafb}