.app{display:flex;flex-direction:column;height:100vh;background:linear-gradient(135deg,#0f0f23,#1a1a2e,#16213e);color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.app-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 2rem;background:#0f0f23f2;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-bottom:1px solid rgba(255,255,255,.1);box-shadow:0 1px 3px #0000004d}.app-header .header-left h1{margin:0;font-size:1.5rem;font-weight:700;color:var(--theme-text-heading)}.header-left .tagline{font-size:.875rem;color:#ffffffb3;margin-left:.5rem}.back-btn{padding:.5rem 1rem;background:transparent;border:1px solid rgba(255,255,255,.2);border-radius:.375rem;color:#fffc;cursor:pointer;transition:all .2s;margin-right:1rem}.back-btn:hover{background:#ffffff1a;color:#fff;border-color:#ffffff4d}.header-right{display:flex;gap:.5rem;align-items:center}.mode-toggle{padding:.5rem 1rem;border:1px solid rgba(255,255,255,.2);background:transparent;color:#ffffffb3;border-radius:.375rem;cursor:pointer;transition:all .2s}.mode-toggle:hover{background:#ffffff1a;color:#ffffffe6;border-color:#ffffff4d}.mode-toggle.active{background:#667eea;color:#fff;border-color:#667eea}.deploy-btn{padding:.5rem 1.5rem;background:#10b981;color:#fff;border:none;border-radius:.375rem;font-weight:500;cursor:pointer;transition:background .2s}.deploy-btn:hover{background:#059669}.deploy-btn:disabled{background:#9ca3af;cursor:not-allowed}.app-content{display:flex;flex:1;overflow:hidden}.sidebar{width:300px;background:#1f2937cc;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-right:1px solid rgba(255,255,255,.1);display:flex;flex-direction:column}.sidebar-tabs{display:flex;border-bottom:1px solid rgba(255,255,255,.1)}.sidebar-tabs .tab{flex:1;padding:1rem;border:none;background:transparent;color:#ffffffb3;cursor:pointer;transition:all .2s}.sidebar-tabs .tab:hover{background:#ffffff1a;color:#ffffffe6}.sidebar-tabs .tab.active{color:#667eea;border-bottom:2px solid #667eea;background:#667eea1a}.sidebar-content{flex:1;overflow-y:auto;padding:1rem}.blocks-section h3,.templates-section h3{margin:0 0 1rem;font-size:.875rem;font-weight:600;color:#ffffffe6;text-transform:uppercase;letter-spacing:.05em}.blocks-list{display:flex;flex-direction:column;gap:.75rem}.draggable-block{display:flex;align-items:center;gap:.75rem;padding:.75rem;border:1px solid rgba(255,255,255,.2);border-radius:.5rem;background:#ffffff0d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);cursor:grab;transition:all .2s}.draggable-block:hover{border-color:#667eea;transform:translateY(-1px);box-shadow:0 4px 12px #667eea4d;background:#ffffff1a}.block-icon{font-size:1.25rem;width:2rem;height:2rem;display:flex;align-items:center;justify-content:center;background:#ffffff1a;border-radius:.375rem;color:#667eea}.block-content h4{margin:0;font-size:.875rem;font-weight:600;color:#ffffffe6}.block-content p{margin:.25rem 0 0;font-size:.75rem;color:#ffffffb3}.templates-list{display:flex;flex-direction:column;gap:1rem}.template-card{padding:1rem;border:1px solid rgba(255,255,255,.2);border-radius:.5rem;background:#ffffff0d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);cursor:pointer;transition:all .2s}.template-card:hover{border-color:#667eea;transform:translateY(-1px);box-shadow:0 4px 12px #667eea4d;background:#ffffff1a}.template-preview{height:60px;background:#f8fafc;border-radius:.375rem;margin-bottom:.75rem;display:flex;align-items:center;justify-content:center;gap:.25rem}.preview-block{width:12px;height:30px;border-radius:2px}.preview-block.header{background:#fef08a}.preview-block.crmData{background:#cbd5e1}.preview-block.actionButtons{background:#fda4af}.preview-block.responseArea{background:#a5b4fc}.template-card h4{margin:0;font-size:.875rem;font-weight:600;color:#ffffffe6}.template-card p{margin:.25rem 0 0;font-size:.75rem;color:#ffffffb3}.main-content{flex:1;display:flex;flex-direction:column;overflow:hidden}.main-content.preview-mode{background:#1e293b}.canvas-container{flex:1;display:flex;flex-direction:column;overflow:hidden}.canvas-header{padding:1.5rem 2rem 1rem;background:#1f2937cc;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-bottom:1px solid rgba(255,255,255,.1)}.canvas-header h2{margin:0;font-size:1.25rem;font-weight:600;color:#ffffffe6}.canvas-header p{margin:.25rem 0 0;color:#ffffffb3;font-size:.875rem}.canvas{flex:1;overflow-y:auto;padding:2rem}.canvas-empty{height:100%;display:flex;align-items:center;justify-content:center}.empty-state{text-align:center}.empty-icon{font-size:3rem;margin-bottom:1rem}.empty-state h3{margin:0;font-size:1.125rem;font-weight:600;color:#ffffffe6}.empty-state p{margin:.5rem 0 0;color:#ffffffb3}.canvas-blocks{display:flex;flex-direction:column;gap:1rem;max-width:1200px;margin:0 auto}.canvas-layout{max-width:1200px;margin:0 auto;display:flex;flex-direction:column;gap:1rem}.full-width-zone{display:flex;flex-direction:column;gap:1rem}.two-column-zone{display:grid;grid-template-columns:1fr 1fr;gap:1rem;min-height:300px}.drop-zone{position:relative;border-radius:.5rem;transition:all .2s}.drop-zone.empty{border:2px dashed rgba(255,255,255,.3);background:#ffffff05;min-height:200px;display:flex;flex-direction:column;align-items:center;justify-content:center}.drop-zone.drag-over{border-color:#667eea;background:#667eea1a}.drop-zone.left-column,.drop-zone.right-column{padding:1rem;display:flex;flex-direction:column;gap:1rem}.drop-zone.additional-drop-zone{border:2px dashed rgba(255,255,255,.2);background:#ffffff05;padding:2rem;text-align:center;margin-top:1rem}.drop-zone.additional-drop-zone:hover{border-color:#667eea;background:#667eea1a}.zone-label{font-size:.875rem;font-weight:500;color:#ffffffb3;text-align:center;margin-bottom:1rem;padding:.5rem;background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:.375rem;border:1px solid rgba(255,255,255,.2)}.drop-zone.empty .zone-label{font-size:1rem;color:#ffffff80;margin-bottom:0}.canvas-block{position:relative;border:2px dashed transparent;border-radius:.5rem;transition:all .2s}.canvas-block.hovered{border-color:#667eea}.block-controls{position:absolute;top:-12px;right:-12px;z-index:10;display:flex;gap:.25rem;opacity:0;transition:opacity .2s}.canvas-block:hover .block-controls{opacity:1}.drag-handle{padding:.25rem;background:#374151;color:#fff;border-radius:.25rem;cursor:grab;font-size:.75rem}.block-actions{display:flex;gap:.25rem}.edit-button,.delete-button{padding:.25rem;background:#fff;border:1px solid #e2e8f0;border-radius:.25rem;cursor:pointer;font-size:.75rem}.edit-button:hover{background:#f3f4f6}.delete-button:hover{background:#fee2e2;border-color:#fecaca}.block-header{padding:1rem 1.5rem;border-radius:.5rem;display:flex;align-items:center;justify-content:space-between;min-height:80px}.header-content{display:flex;align-items:center;gap:1rem}.ai-avatar{width:40px;height:40px;background:#0000001a;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.25rem}.header-text h3{margin:0;font-size:1rem;font-weight:500;color:#1e293b}.block-crm-data{background:#fff;border:1px solid #e2e8f0;border-radius:.5rem;overflow:hidden}.crm-header{padding:1rem 1.5rem}.crm-fields{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}.field label{display:block;font-size:.75rem;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.25rem}.field-value{font-size:.875rem;color:#1e293b;font-weight:500}.field-value.customer-name,.field-value.opportunity-name{color:#dc2626;font-weight:600}.block-action-buttons{background:#fff;border:1px solid #e2e8f0;border-radius:.5rem;overflow:hidden}.actions-section{padding:1.5rem}.actions-section h4{margin:0 0 1rem;font-size:.875rem;font-weight:600;color:#374151;text-transform:uppercase;letter-spacing:.05em}.action-buttons{display:flex;flex-direction:column;gap:.5rem}.action-button{padding:.75rem 1rem;background:#fff;border:1px solid #dc2626;color:#dc2626;border-radius:.375rem;text-align:left;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s}.action-button:hover{background:#dc2626;color:#fff}.block-response-area{border-radius:.5rem;min-height:300px;color:#fff;overflow:hidden}.response-content{padding:1.5rem}.response-content h3{margin:0 0 1rem;font-size:1.125rem;font-weight:600}.response-placeholder{padding:2rem;text-align:center;background:#ffffff1a;border-radius:.375rem;font-size:.875rem}.block-freeform-chat{border-radius:.5rem;color:#fff;overflow:hidden}.chat-content{padding:1.5rem}.chat-input{display:flex;gap:.5rem;margin-bottom:.5rem}.chat-input input{flex:1;padding:.75rem;border:none;border-radius:.375rem;background:#ffffff1a;color:#fff;placeholder-color:rgba(255,255,255,.7)}.chat-input input::placeholder{color:#ffffffb3}.send-button{padding:.75rem 1rem;background:#fff3;border:none;border-radius:.375rem;color:#fff;cursor:pointer}.ai-disclaimer{font-size:.75rem;color:#ffffffb3;text-align:center}.block-editor-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:50}.block-editor{background:#fff;border-radius:.5rem;width:90%;max-width:500px;max-height:80vh;display:flex;flex-direction:column}.editor-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid #e2e8f0}.editor-header h3{margin:0;font-size:1.125rem;font-weight:600;color:#1e293b}.close-btn{background:none;border:none;font-size:1.5rem;cursor:pointer;color:#6b7280}.editor-content{flex:1;overflow-y:auto;padding:1.5rem}.editor-fields{display:flex;flex-direction:column;gap:1rem}.editor-fields .field label{display:block;margin-bottom:.5rem;font-size:.875rem;font-weight:500;color:#374151}.editor-fields .field input,.editor-fields .field select{width:100%;padding:.75rem;border:1px solid #d1d5db;border-radius:.375rem;font-size:.875rem}.array-field{display:flex;flex-direction:column;gap:.5rem}.array-item{display:flex;gap:.5rem;align-items:center}.array-item input{flex:1}.remove-btn{padding:.5rem;background:#fee2e2;border:1px solid #fecaca;border-radius:.375rem;color:#dc2626;cursor:pointer}.add-btn{padding:.75rem;background:#f3f4f6;border:1px solid #d1d5db;border-radius:.375rem;color:#374151;cursor:pointer}.editor-footer{display:flex;justify-content:flex-end;gap:.75rem;padding:1.5rem;border-top:1px solid #e2e8f0}.cancel-btn{padding:.75rem 1.5rem;background:#fff;border:1px solid #d1d5db;border-radius:.375rem;color:#374151;cursor:pointer}.save-btn{padding:.75rem 1.5rem;background:#3b82f6;border:none;border-radius:.375rem;color:#fff;cursor:pointer}.preview-container{flex:1;display:flex;flex-direction:column;overflow:hidden;background:#1e293b}.preview-header{padding:1.5rem 2rem 1rem;background:#1e293b;color:#fff}.preview-header h2{margin:0;font-size:1.25rem;font-weight:600}.preview-header p{margin:.25rem 0 0;color:#94a3b8;font-size:.875rem}.preview-content{flex:1;overflow-y:auto;padding:2rem}.preview-empty{height:100%;display:flex;align-items:center;justify-content:center}.preview-empty .empty-state{color:#fff}.preview-interface{display:flex;justify-content:center}.preview-wrapper{width:100%;max-width:1400px;background:#fff;border-radius:.5rem;overflow:hidden;box-shadow:0 20px 25px -5px #0000001a}.preview-block{border-bottom:1px solid #e2e8f0}.preview-block:last-child{border-bottom:none}.preview-header .clear-history{background:#0000001a;border:1px solid rgba(0,0,0,.2);color:#1e293b;padding:.5rem 1rem;border-radius:.375rem;font-size:.875rem;cursor:pointer}.preview-action-buttons .actions-layout{display:flex}.preview-action-buttons .sections-dropdown{margin-top:2rem}.preview-action-buttons .sections-dropdown h4{margin:0 0 .5rem;font-size:.875rem;font-weight:600;color:#374151;cursor:pointer}.preview-response-area .tabs{display:flex;gap:.5rem;margin-bottom:1rem}.preview-response-area .tab{padding:.5rem 1rem;background:#ffffff1a;border:none;color:#fff;border-radius:.375rem;cursor:pointer}.preview-response-area .tab.active{background:#fff3}.response-display{display:flex;flex-direction:column;gap:1rem}.ai-message{display:flex;gap:.75rem;align-items:flex-start}.ai-message .ai-avatar{background:#fff3}.message-content{flex:1}.sample-response{display:flex;gap:.75rem;align-items:flex-start}.response-text{flex:1}.response-text h4{margin:0 0 .5rem;font-size:1rem;font-weight:600}.response-text p{margin:0 0 1rem;line-height:1.5}.response-sections{background:#ffffff1a;padding:1rem;border-radius:.375rem}.response-sections h5{margin:0 0 .5rem;font-size:.875rem;font-weight:600}.response-sections ol{margin:0;padding-left:1.5rem}.response-sections li{margin-bottom:.5rem;line-height:1.4}.error-boundary{display:flex;align-items:center;justify-content:center;height:100%;padding:2rem}.error-content{text-align:center;background:#fff;padding:2rem;border-radius:.5rem;border:1px solid #fecaca;background:#fef2f2}.error-content h3{margin:0 0 1rem;color:#dc2626;font-size:1.125rem;font-weight:600}.error-content p{margin:0 0 1.5rem;color:#7f1d1d}.error-retry-btn{padding:.75rem 1.5rem;background:#dc2626;color:#fff;border:none;border-radius:.375rem;cursor:pointer;font-weight:500}.error-retry-btn:hover{background:#b91c1c}.deployment-animation{display:flex;align-items:center;justify-content:center;height:100vh;width:100vw;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.deployment-content{text-align:center;max-width:500px;padding:2rem}.spinner{position:relative;width:120px;height:120px;margin:0 auto 2rem}.spinner-ring{position:absolute;width:100%;height:100%;border:4px solid transparent;border-top:4px solid #ffffff;border-radius:50%;animation:spin 1s linear infinite}.spinner-ring:nth-child(2){width:80%;height:80%;top:10%;left:10%;border-top-color:#fbbf24;animation-duration:1.5s;animation-direction:reverse}.spinner-ring:nth-child(3){width:60%;height:60%;top:20%;left:20%;border-top-color:#10b981;animation-duration:2s}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.deployment-content h2{margin:0 0 1rem;font-size:2rem;font-weight:700}.deployment-message{font-size:1.25rem;margin-bottom:2rem;min-height:2rem;animation:fadeInOut 2s ease-in-out infinite}@keyframes fadeInOut{0%,to{opacity:.7}50%{opacity:1}}.progress-bar{width:100%;height:8px;background:#ffffff4d;border-radius:4px;overflow:hidden}.progress-fill{height:100%;background:linear-gradient(90deg,#3b82f6,#06b6d4);border-radius:4px;animation:progress 8s ease-out forwards}@keyframes progress{0%{width:0%}to{width:100%}}.deployment-success{display:flex;align-items:center;justify-content:center;height:100vh;width:100vw;background:linear-gradient(135deg,#10b981,#059669);color:#fff}.success-content{text-align:center;max-width:600px;padding:3rem;background:#ffffff1a;border-radius:1rem;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2)}.success-icon{font-size:4rem;margin-bottom:1rem;animation:bounce 1s ease-in-out infinite}@keyframes bounce{0%,20%,50%,80%,to{transform:translateY(0)}40%{transform:translateY(-10px)}60%{transform:translateY(-5px)}}.success-content h2{margin:0 0 1rem;font-size:2.5rem;font-weight:700}.success-content p{margin:0 0 2rem;font-size:1.125rem;opacity:.9;line-height:1.6}.success-actions{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}.view-page-btn{padding:1rem 2rem;background:#fff;color:#059669;text-decoration:none;border-radius:.5rem;font-weight:600;font-size:1.125rem;transition:all .3s;box-shadow:0 4px 12px #0000001a}.view-page-btn:hover{background:#f3f4f6;transform:translateY(-2px);box-shadow:0 8px 20px #00000026}.continue-btn{padding:1rem 2rem;background:#fff3;color:#fff;border:2px solid rgba(255,255,255,.3);border-radius:.5rem;font-weight:600;font-size:1.125rem;cursor:pointer;transition:all .3s}.continue-btn:hover{background:#ffffff4d;border-color:#ffffff80;transform:translateY(-2px)}.drag-overlay{padding:.75rem 1rem;background:#3b82f6;color:#fff;border-radius:.375rem;font-size:.875rem;font-weight:500;text-transform:capitalize;box-shadow:0 10px 15px -3px #0000001a}:root{--theme-bg-page: #0f0f0f;--theme-bg-sidebar: #171717;--theme-bg-card: #1a1a1a;--theme-bg-gradient-start: #0f0f23;--theme-bg-gradient-mid: #1a1a2e;--theme-bg-gradient-end: #16213e;--theme-bg-surface-subtle: rgba(255, 255, 255, .02);--theme-bg-surface-hover: rgba(255, 255, 255, .05);--theme-bg-surface-active: rgba(255, 255, 255, .08);--theme-bg-input: rgba(255, 255, 255, .05);--theme-bg-code: rgba(0, 0, 0, .3);--theme-bg-overlay: rgba(0, 0, 0, .7);--theme-bg-speech-overlay: rgba(15, 15, 15, .95);--theme-text-primary: rgba(255, 255, 255, .9);--theme-text-secondary: rgba(255, 255, 255, .7);--theme-text-tertiary: rgba(255, 255, 255, .5);--theme-text-hint: rgba(255, 255, 255, .4);--theme-text-disabled: rgba(255, 255, 255, .3);--theme-text-heading: rgba(255, 255, 255, .95);--theme-border-subtle: rgba(255, 255, 255, .06);--theme-border-default: rgba(255, 255, 255, .1);--theme-border-emphasis: rgba(255, 255, 255, .2);--theme-scrollbar-thumb: rgba(255, 255, 255, .08);--theme-scrollbar-hover: rgba(255, 255, 255, .12);--theme-table-header-bg: rgba(255, 255, 255, .06);--theme-table-row-hover: rgba(255, 255, 255, .03);--theme-brand-primary: #1b75bc;--theme-brand-primary-hover: #2563eb;--theme-accent-blue: #3b82f6;--theme-accent-green: #22c55e;--theme-accent-red: #ef4444;--theme-accent-orange: #fb923c;--theme-accent-purple: #a855f7;--theme-accent-pink: #ec4899;--theme-accent-cyan: #0ea5e9;--theme-toggle-off: rgba(255, 255, 255, .1);--theme-toggle-on: #3b82f6;--theme-toggle-knob: rgba(255, 255, 255, .5);--theme-toggle-knob-on: #ffffff;--theme-btn-primary-bg: #3b82f6;--theme-btn-primary-hover: #2563eb;--theme-btn-primary-text: #ffffff;--theme-btn-secondary-bg: rgba(255, 255, 255, .08);--theme-btn-secondary-hover: rgba(255, 255, 255, .12);--theme-btn-secondary-text: rgba(255, 255, 255, .7);--theme-shadow-dropdown: 0 8px 25px rgba(0, 0, 0, .3);--theme-shadow-modal: 0 20px 40px rgba(0, 0, 0, .4)}[data-theme=light]{--theme-bg-page: #f8f9fa;--theme-bg-sidebar: #ffffff;--theme-bg-card: #ffffff;--theme-bg-gradient-start: #f0f2f5;--theme-bg-gradient-mid: #e8ecf0;--theme-bg-gradient-end: #e4e8ee;--theme-bg-surface-subtle: rgba(0, 0, 0, .02);--theme-bg-surface-hover: rgba(0, 0, 0, .04);--theme-bg-surface-active: rgba(0, 0, 0, .06);--theme-bg-input: rgba(0, 0, 0, .04);--theme-bg-code: rgba(0, 0, 0, .05);--theme-bg-overlay: rgba(0, 0, 0, .4);--theme-bg-speech-overlay: rgba(255, 255, 255, .95);--theme-text-primary: rgba(0, 0, 0, .87);--theme-text-secondary: rgba(0, 0, 0, .6);--theme-text-tertiary: rgba(0, 0, 0, .45);--theme-text-hint: rgba(0, 0, 0, .35);--theme-text-disabled: rgba(0, 0, 0, .25);--theme-text-heading: rgba(0, 0, 0, .9);--theme-border-subtle: rgba(0, 0, 0, .06);--theme-border-default: rgba(0, 0, 0, .1);--theme-border-emphasis: rgba(0, 0, 0, .18);--theme-scrollbar-thumb: rgba(0, 0, 0, .1);--theme-scrollbar-hover: rgba(0, 0, 0, .18);--theme-table-header-bg: rgba(0, 0, 0, .04);--theme-table-row-hover: rgba(0, 0, 0, .02);--theme-brand-primary: #1b75bc;--theme-brand-primary-hover: #1a5fa0;--theme-accent-blue: #2563eb;--theme-accent-green: #16a34a;--theme-accent-red: #dc2626;--theme-accent-orange: #ea580c;--theme-accent-purple: #9333ea;--theme-accent-pink: #db2777;--theme-accent-cyan: #0284c7;--theme-toggle-off: rgba(0, 0, 0, .15);--theme-toggle-on: #2563eb;--theme-toggle-knob: rgba(255, 255, 255, .9);--theme-toggle-knob-on: #ffffff;--theme-btn-primary-bg: #2563eb;--theme-btn-primary-hover: #1d4ed8;--theme-btn-primary-text: #ffffff;--theme-btn-secondary-bg: rgba(0, 0, 0, .06);--theme-btn-secondary-hover: rgba(0, 0, 0, .1);--theme-btn-secondary-text: rgba(0, 0, 0, .65);--theme-shadow-dropdown: 0 8px 25px rgba(0, 0, 0, .1);--theme-shadow-modal: 0 20px 40px rgba(0, 0, 0, .15)}*{box-sizing:border-box}:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;line-height:1.5;font-weight:400;color:var(--theme-text-primary);background-color:var(--theme-bg-page);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;min-height:100vh;overflow:auto}#root{min-height:100vh}#root.builder-mode{height:100vh;overflow:hidden}button,input{font-family:inherit;outline:none}input:focus,button:focus{outline:2px solid #3b82f6;outline-offset:2px}#app{max-width:none!important;margin:0!important;padding:0!important;width:100%!important;min-height:100vh}
