:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;min-width:320px;min-height:100vh;overflow:hidden}#root{width:100%;height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.chatbox-container{display:flex;flex-direction:column;width:100%;height:100vh;overflow:hidden;background-color:#0b141a}.chatbox-header{padding:1rem 1.5rem;background-color:#075e54;color:#fff;box-shadow:0 2px 4px #0003;z-index:10;display:flex;justify-content:space-between;align-items:center}.chatbox-header h2{margin:0;font-size:1.25rem;font-weight:500}.header-buttons{display:flex;gap:.5rem}.clear-button,.back-button,.locale-button{padding:.5rem 1rem;border:none;border-radius:6px;background-color:#fff3;color:#fff;font-size:.85rem;font-weight:500;cursor:pointer;transition:background-color .2s;white-space:nowrap}.locale-button{min-width:2.5rem;padding:.5rem .75rem;font-weight:700}.locale-button-content{display:inline-flex;align-items:center;gap:.35rem}.locale-icon{display:block;flex-shrink:0}.locale-label{line-height:1}.clear-button:hover,.back-button:hover,.locale-button:hover{background-color:#ffffff4d}.clear-button:active,.back-button:active{transform:scale(.98)}.chatbox-messages{flex:1;overflow-y:auto;padding:1.5rem;display:flex;flex-direction:column;gap:.5rem;background-color:#0b141a;background-image:repeating-linear-gradient(45deg,transparent,transparent 10px,rgba(255,255,255,.02) 10px,rgba(255,255,255,.02) 20px);scrollbar-width:none;-ms-overflow-style:none}.chatbox-messages::-webkit-scrollbar{display:none}.empty-state{display:flex;align-items:center;justify-content:center;height:100%;color:#8696a0}.empty-state p{margin:0;font-size:.95rem}.message{display:flex;flex-direction:column;max-width:65%}.message.user{align-self:flex-end;animation:slideInRight .3s ease-out}.message.bot{align-self:flex-start;animation:slideInLeft .3s ease-out}@keyframes slideInRight{0%{opacity:0;transform:translate(50px)}to{opacity:1;transform:translate(0)}}@keyframes slideInLeft{0%{opacity:0;transform:translate(-50px)}to{opacity:1;transform:translate(0)}}.message-content{padding:.5rem .75rem;border-radius:8px;word-wrap:break-word;background-color:#005c4b;color:#e9edef;box-shadow:0 1px 2px #0003;position:relative;white-space:pre-line}.animated-text{animation:fadeIn .3s ease-in}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.message.bot .message-content{background-color:#202c33}.message.user .message-content:after{content:"";position:absolute;right:-8px;top:0;width:0;height:0;border-style:solid;border-width:0 0 12px 12px;border-color:transparent transparent transparent #005c4b}.message.bot .message-content:after{content:"";position:absolute;left:-8px;top:0;width:0;height:0;border-style:solid;border-width:0 12px 12px 0;border-color:transparent #202c33 transparent transparent}.message-timestamp{font-size:.7rem;color:#8696a0;margin-top:.2rem;padding:0 .5rem}.message.user .message-timestamp{align-self:flex-end}.message.bot .message-timestamp{align-self:flex-start}.options-container{display:flex;flex-direction:column;gap:.5rem;margin-top:.75rem;width:100%}.option-button{padding:.75rem 1rem;border:1px solid #00a884;border-radius:8px;background-color:#1e2428;color:#e9edef;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .2s;text-align:left;width:100%;box-shadow:0 1px 2px #0003}.option-button:hover{background-color:#00a884;color:#fff;transform:translate(4px);border-color:#00a884}.option-button:active{transform:translate(4px) scale(.98)}.chatbox-input{display:flex;padding:.75rem 1rem;gap:.5rem;background-color:#1e2428;align-items:center;flex-shrink:0}.contact-input{align-items:flex-end}.contact-input-fields{flex:1;min-width:0;display:flex;flex-direction:column;gap:.4rem}.contact-input-row{display:flex;gap:.4rem}.contact-input-row input{flex:1;min-width:0}.chatbox-input input{flex:1;min-width:0;padding:.65rem 1rem;border:none;border-radius:24px;background-color:#2a3942;color:#e9edef;font-size:.95rem;outline:none}.contact-input-fields input{flex:unset;width:100%;box-sizing:border-box}.chatbox-input input::placeholder{color:#8696a0}.chatbox-input button{padding:.65rem 1.25rem;border-radius:24px;border:none;background-color:#00a884;color:#fff;font-size:.9rem;font-weight:500;cursor:pointer;transition:background-color .2s;flex-shrink:0;min-width:fit-content;white-space:nowrap}.chatbox-input button:hover{background-color:#06cf9c}.chatbox-input button:active{transform:scale(.98)}.chatbox-input button:disabled{background-color:#2a3942;color:#8696a0;cursor:not-allowed}@media(prefers-color-scheme:light){.chatbox-container{background-color:#f0f2f5}.chatbox-header{background-color:#008069}.chatbox-messages{background-color:#efeae2;background-image:url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l30 30-30 30L0 30z' fill='%23d9d0c7' fill-opacity='0.15'/%3E%3C/svg%3E")}.message.user .message-content{background-color:#d9fdd3;color:#111b21}.message.bot .message-content{background-color:#fff;color:#111b21}.message.user .message-content:after{border-color:transparent transparent transparent #d9fdd3}.message.bot .message-content:after{border-color:transparent #ffffff transparent transparent}.message-timestamp{color:#667781}.chatbox-input{background-color:#f0f2f5}.chatbox-input input{background-color:#fff;color:#111b21}.chatbox-input input::placeholder{color:#667781}.empty-state{color:#667781}.option-button{border-color:#008069;background-color:#f0f2f5;color:#111b21}.option-button:hover{background-color:#008069;color:#fff;border-color:#008069}}.loading-container{display:flex;align-items:center;align-self:flex-start;max-width:65%;animation:slideInLeft .3s ease-out}.loading-dots{display:flex;gap:.25rem;padding:.5rem .7rem;background-color:#202c33;border-radius:6px;box-shadow:0 1px 2px #00000026;position:relative}.loading-dots:after{content:"";position:absolute;left:-6px;top:0;width:0;height:0;border-style:solid;border-width:0 8px 8px 0;border-color:transparent #202c33 transparent transparent}.dot{width:6px;height:6px;background-color:#8696a0;border-radius:50%;animation:dotPulse 1.4s infinite ease-in-out}.dot:nth-child(1){animation-delay:0s}.dot:nth-child(2){animation-delay:.2s}.dot:nth-child(3){animation-delay:.4s}@keyframes dotPulse{0%,60%,to{transform:translateY(0);opacity:.5}30%{transform:translateY(-6px);opacity:.9}}@media(prefers-color-scheme:light){.loading-dots{background-color:#fff}.loading-dots:after{border-color:transparent #ffffff transparent transparent}.dot{background-color:#667781}}.flow-editor-page{height:100vh;box-sizing:border-box;background:#f5f7fb;color:#1f2937;padding:1rem 1.5rem 2rem;overflow:auto}.flow-editor-header{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem}.flow-editor-header h1{margin:0;font-size:1.3rem}.flow-editor-controls{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem}.flow-editor-controls select{border:1px solid #d1d5db;border-radius:8px;padding:.4rem .55rem;background:#fff}.flow-editor-controls button{border:1px solid #d1d5db;border-radius:8px;background:#fff;padding:.35rem .55rem;cursor:pointer;font-size:.78rem}.flow-editor-controls button:hover{background:#f8fafc}.flow-editor-controls button.flow-editor-logout{color:#b91c1c;border-color:#fecaca;background:#fef2f2}.flow-editor-controls button.flow-editor-logout:hover{background:#fee2e2}.flow-editor-content{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:1rem}.flow-editor-error{color:#dc2626}.flow-editor-status{color:#047857;margin:0 0 .75rem}.flow-editor-hint{color:#6b7280;margin:0 0 .75rem;font-size:.86rem}.flow-editor-api-hint{margin:.35rem 0 0;font-size:.75rem;color:#6b7280}.flow-editor-login-form{display:grid;gap:.55rem}.flow-editor-login-form label{display:grid;gap:.25rem;font-size:.78rem;color:#374151}.flow-editor-login-form input{border:1px solid #d1d5db;border-radius:8px;padding:.35rem .5rem;font-size:.82rem}.flow-editor-login-form .flow-editor-error{margin:0}.flow-editor-modal-backdrop{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:1rem;background:#0f172a73}.flow-editor-modal{width:100%;max-width:24rem;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:1rem;box-shadow:0 12px 32px #0f172a2e}.flow-editor-modal-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.75rem}.flow-editor-modal-header h2{margin:0;font-size:1rem;color:#111827}.flow-editor-modal-close{width:1.75rem;height:1.75rem;border:1px solid #d1d5db;border-radius:8px;background:#fff;color:#6b7280;font-size:1.1rem;line-height:1;padding:0;cursor:pointer}.flow-editor-modal-close:hover{background:#f8fafc}.flow-editor-modal-close:disabled{opacity:.6;cursor:not-allowed}.flow-create-node-form{margin-bottom:1rem;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:1rem}.tree-node-type{font-size:.7rem;color:#6b7280;background:#f3f4f6;border-radius:999px;padding:.1rem .45rem}.tree-edit-form{margin-top:.65rem;display:grid;gap:.55rem}.tree-edit-form label{display:grid;gap:.25rem;font-size:.78rem;color:#374151}.tree-edit-form input,.tree-edit-form textarea,.tree-edit-form select{border:1px solid #d1d5db;border-radius:8px;padding:.35rem .5rem;font-size:.82rem;font-family:inherit}.tree-edit-actions{display:flex;flex-wrap:wrap;gap:.45rem}.tree-edit-form button,.tree-edit-actions button{border:1px solid #d1d5db;border-radius:8px;background:#fff;padding:.35rem .65rem;cursor:pointer;font-size:.78rem;width:fit-content}.tree-edit-form button:hover,.tree-edit-actions button:hover{background:#f8fafc}.tree-edit-form button:disabled,.tree-edit-actions button:disabled{opacity:.6;cursor:not-allowed}.tree-edit-actions button.danger,.tree-edit-form button.danger{color:#b91c1c;border-color:#fecaca;background:#fef2f2}.tree-edit-section-title{font-size:.8rem;font-weight:600;color:#111827}.tree-option-editors{margin-top:.75rem;padding-top:.75rem;border-top:1px dashed #e5e7eb;display:grid;gap:.85rem}.tree-option-editor-block{margin-left:.15rem;background:#f8fafc;border:1px solid #e5e7eb;border-radius:8px;padding:.65rem}.tree-add-option-form{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;padding:.65rem}.next-node-select{display:grid;gap:.5rem}.next-node-select>select{border:1px solid #d1d5db;border-radius:8px;padding:.35rem .5rem;font-size:.82rem;font-family:inherit;background:#fff}.next-node-create-inline{display:grid;gap:.45rem;padding:.55rem;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff}.next-node-create-inline label{display:grid;gap:.2rem;font-size:.76rem;color:#374151}.next-node-create-inline input,.next-node-create-inline textarea,.next-node-create-inline select{border:1px solid #d1d5db;border-radius:8px;padding:.35rem .5rem;font-size:.82rem;font-family:inherit}.tree-branch{position:relative}.tree-node-card{border:1px solid #d1d5db;background:#fff;border-radius:10px;padding:.7rem;box-shadow:0 1px 2px #0000000f}.tree-node-header{display:flex;align-items:center;gap:.5rem}.tree-node-id{font-weight:700;font-size:.9rem;color:#0f766e;margin-bottom:0}.tree-node-message{margin-top:.55rem;font-size:.86rem;white-space:pre-line}.tree-content-toggle{width:1.45rem;height:1.45rem;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#0f172a;font-size:.95rem;line-height:1;padding:0;cursor:pointer;flex-shrink:0}.tree-content-toggle:hover{background:#f8fafc}.tree-options{margin-top:.55rem;display:flex;flex-direction:column;align-items:flex-start;gap:.35rem}.tree-options-list{margin-top:.55rem;display:flex;flex-direction:column;gap:.45rem;width:100%}.tree-option-row{display:flex;flex-direction:column;gap:.35rem;width:100%;border-radius:8px;padding:.15rem}.tree-option-row.drag-over{background:#eff6ff;outline:1px dashed #93c5fd}.tree-option-row.dragging{opacity:.55}.tree-option-row-header{display:flex;align-items:center;flex-wrap:wrap}.tree-option-chip{display:inline-flex;align-items:stretch;max-width:100%;border:1px solid #cbd5e1;border-radius:8px;background:#eef2ff;overflow:hidden}.tree-option-chip.active{background:#dcfce7;border-color:#86efac}.tree-option-chip.editing{box-shadow:0 0 0 1px #93c5fd}.tree-option-chip-drag{display:inline-flex;align-items:center;justify-content:center;min-width:1.35rem;padding:0 .3rem;color:#94a3b8;font-size:.62rem;letter-spacing:-.08em;border-right:1px solid #cbd5e1;background:#ffffff59;border-radius:8px 0 0 8px;cursor:grab;-webkit-user-select:none;user-select:none;line-height:1}.tree-option-chip-drag:active{cursor:grabbing}.tree-option-chip-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:1.35rem;padding:0;border:none;border-right:1px solid #cbd5e1;background:#ffffff59;color:#475569;font-size:.82rem;line-height:1;cursor:pointer;border-radius:0}.tree-option-chip-toggle:hover{background:#ffffffa6}.tree-option-chip-label{border:none;background:transparent;color:#1f2937;font-size:.74rem;padding:.22rem .55rem .22rem .45rem;cursor:pointer;text-align:left;line-height:1.3;border-radius:0 8px 8px 0}.tree-option-chip-label:hover{background:#ffffff40}.tree-add-option-trigger{align-self:flex-start;border:1px dashed #d1d5db;border-radius:8px;background:#fafafa;color:#9ca3af;font-size:.74rem;padding:.25rem .6rem;cursor:pointer}.tree-add-option-trigger:hover{color:#6b7280;border-color:#9ca3af;background:#f8fafc}.tree-option-button{border:1px solid #cbd5e1;border-radius:999px;background:#eef2ff;color:#1f2937;font-size:.74rem;padding:.2rem .45rem;cursor:pointer}.tree-option-button.active{background:#dcfce7;border-color:#86efac}.tree-option-button:hover{background:#e2e8f0}.tree-user-message{display:block;width:fit-content;max-width:100%;margin:.5rem 0 .65rem;margin-right:auto;padding:.45rem .7rem;border-radius:10px 10px 10px 2px;background:#dcf8c6;border:1px solid #bbf7d0;color:#1f2937;font-size:.8rem;line-height:1.35;white-space:pre-line;text-align:left}.tree-children{list-style:none;margin:.75rem 0 .1rem;padding-left:1rem}.tree-children>li{margin-bottom:.85rem;padding-left:.8rem;position:relative}.tree-children>li:before{content:none}.tree-pill{display:inline-block;border-radius:8px;padding:.35rem .55rem;font-size:.78rem;border:1px solid}.tree-pill.cycle{color:#92400e;background:#fffbeb;border-color:#fde68a}.tree-pill.missing{color:#991b1b;background:#fef2f2;border-color:#fecaca}.app{width:100%;height:100vh;margin:0;padding:0}
