.react-flow{direction:ltr}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;cursor:-webkit-grab;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__edge-path,.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;-webkit-animation:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:-webkit-grab;cursor:grab}.react-flow__node.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:-webkit-grab;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background:#1a192b;border:1px solid white;border-radius:100%}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:-4px;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{font-size:10px;background:#ffffff80;padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@-webkit-keyframes dashdraw{0%{stroke-dashoffset:10}}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:3px;width:150px;font-size:12px;color:#222;text-align:center;border-width:1px;border-style:solid;border-color:#1a192b;background-color:#fff}.react-flow__node-default.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:0 0 0 .5px #1a192b}.react-flow__node-group{background-color:#f0f0f040}.react-flow__nodesselection-rect,.react-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{border:none;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:5px}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__minimap{background-color:#fff}.react-flow__minimap svg{display:block}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:#3367d9;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:#3367d9;border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}:root{--tg-primary: #2aabee;--tg-primary-dark: #0088cc;--bg-page: #f0f4f8;--bg-sidebar: #17212b;--bg-sidebar-hover: #232e3c;--text-sidebar: #e4e7eb;--bubble-out-bg: #e1f3fb;--bubble-out-border: #bfe0f5;--bubble-in-bg: #ffffff;--bubble-in-border: #e2e8ee;--text-dark: #222831;--text-meta: #8e9aa6;--danger: #e05252;--success: #3ba55d;--warning: #d99a2b;--border: #dde3e9}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:var(--bg-page);color:var(--text-dark)}a{color:var(--tg-primary-dark)}.app-shell{display:flex;min-height:100vh}.sidebar{width:220px;flex-shrink:0;background:var(--bg-sidebar);color:var(--text-sidebar);display:flex;flex-direction:column;padding:16px 0}.sidebar-brand{padding:0 20px 20px;font-weight:700;font-size:1.1rem;color:#fff;border-bottom:1px solid #2b3947;margin-bottom:12px}.sidebar nav{display:flex;flex-direction:column;gap:2px}.sidebar nav a,.sidebar nav button{color:var(--text-sidebar);text-decoration:none;padding:10px 20px;font-size:.92rem;background:none;border:none;text-align:left;cursor:pointer;font-family:inherit}.sidebar nav a:hover,.sidebar nav button:hover,.sidebar nav a.active{background:var(--bg-sidebar-hover)}.sidebar-footer{margin-top:auto;padding:12px 20px 0;border-top:1px solid #2b3947}.sidebar-credito{margin-top:10px;font-size:.7rem;color:#5c6b7a}.sidebar-credito a{color:#8ea3b8}.main-content{flex:1;padding:28px 36px;min-width:0}.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.page-header h1{font-size:1.4rem;margin:0}.btn{background:var(--tg-primary-dark);color:#fff;border:none;padding:9px 16px;border-radius:6px;font-size:.9rem;cursor:pointer}.btn:hover{background:var(--tg-primary)}.btn.secondary{background:#fff;color:var(--text-dark);border:1px solid var(--border)}.btn.secondary:hover{background:#f4f7fa}.btn.danger{background:var(--danger)}.btn:disabled{opacity:.55;cursor:not-allowed}.card{background:#fff;border:1px solid var(--border);border-radius:10px;padding:20px}.card+.card{margin-top:16px}table{width:100%;border-collapse:collapse;background:#fff;border-radius:10px;overflow:hidden}th,td{text-align:left;padding:10px 14px;border-bottom:1px solid var(--border);font-size:.9rem}th{background:#f7f9fb;font-weight:600;color:#5a6472}tr:last-child td{border-bottom:none}tr.clickable{cursor:pointer}tr.clickable:hover{background:#f7fbff}label{display:block;font-size:.85rem;font-weight:600;margin-bottom:5px;color:#4a5461}input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),select,textarea{width:100%;padding:9px 11px;border:1px solid var(--border);border-radius:6px;font-size:.92rem;font-family:inherit;margin-bottom:14px}input:focus,select:focus,textarea:focus{outline:2px solid var(--tg-primary);outline-offset:-1px}.error-box{background:#fdeaea;color:var(--danger);border:1px solid #f3c1c1;padding:10px 14px;border-radius:6px;margin-bottom:14px;font-size:.88rem}.hint{font-size:.82rem;color:var(--text-meta);margin-top:-8px;margin-bottom:14px}.badge{display:inline-block;padding:2px 9px;border-radius:20px;font-size:.76rem;font-weight:600}.badge.ok{background:#e5f6ea;color:var(--success)}.badge.warn{background:#fdf1de;color:var(--warning)}.badge.off{background:#eef1f4;color:#7a8593}.login-page{min-height:100vh;display:flex;flex-direction:column;background:#fff}.login-hero{position:relative;overflow:hidden;padding:56px 24px;color:#fff;background:linear-gradient(120deg,#0f2027,#1b2f5c,#08c,#6a11cb,#0f2027);background-size:400% 400%;animation:showcaseGradiente 16s ease infinite}@keyframes showcaseGradiente{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}.showcase-stars{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.showcase-star{position:absolute;border-radius:50%;background:#fff;opacity:.15;animation-name:showcaseTwinkle;animation-iteration-count:infinite;animation-timing-function:ease-in-out}@keyframes showcaseTwinkle{0%,to{opacity:.1;transform:scale(1)}50%{opacity:.85;transform:scale(1.6)}}.login-hero-inner{position:relative;z-index:1;max-width:1080px;margin:0 auto;display:flex;align-items:center;gap:48px;flex-wrap:wrap}.showcase-content{flex:1 1 320px}.showcase-badge{display:inline-block;font-size:.76rem;font-weight:600;letter-spacing:.02em;background:#ffffff24;border:1px solid rgba(255,255,255,.25);padding:6px 14px;border-radius:999px;margin-bottom:18px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:showcaseFadeUp .7s ease both}.showcase-titulo{font-size:2rem;line-height:1.22;margin:0 0 14px;font-weight:800;animation:showcaseFadeUp .7s ease .08s both}.showcase-sub{font-size:1rem;line-height:1.6;color:#ffffffd9;margin:0;max-width:460px;animation:showcaseFadeUp .7s ease .16s both}.login-box{flex:1 1 320px;max-width:340px;background:#fff;color:var(--text-dark);padding:36px 32px;border-radius:14px;box-shadow:0 20px 50px #00000059;animation:showcaseFadeUp .7s ease .24s both}.login-box h1{font-size:1.3rem;margin-top:0;margin-bottom:20px;text-align:center;color:var(--tg-primary-dark)}@keyframes showcaseFadeUp{0%{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}.login-detalhes{flex:1;max-width:1080px;width:100%;margin:0 auto;padding:56px 24px 24px}.login-detalhes h2{text-align:center;font-size:1.5rem;color:var(--text-dark);margin:0 0 8px}.login-detalhes-sub{text-align:center;color:var(--text-meta);margin:0 0 40px;font-size:.95rem}.showcase-lista{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:28px 32px}.showcase-item{display:flex;align-items:flex-start;gap:14px}.showcase-item div{display:flex;flex-direction:column;gap:4px}.showcase-item strong{font-size:.95rem;color:var(--text-dark)}.showcase-item span{font-size:.83rem;color:var(--text-meta);line-height:1.5}.showcase-icone{flex-shrink:0;width:38px;height:38px;display:flex;align-items:center;justify-content:center;font-size:1.15rem;background:#e8f4fc;border-radius:10px;animation:showcaseFloat 3.2s ease-in-out infinite}@keyframes showcaseFloat{0%,to{transform:translateY(0)}50%{transform:translateY(-4px)}}.login-credito{margin-top:auto;padding:24px 16px 32px;font-size:.78rem;color:var(--text-meta);text-align:center}.login-credito a{color:var(--tg-primary-dark);font-weight:600}@media (prefers-reduced-motion: reduce){.login-hero,.showcase-star,.showcase-badge,.showcase-titulo,.showcase-sub,.login-box,.showcase-icone{animation:none!important}}.wizard-steps{display:flex;gap:8px;margin-bottom:22px}.wizard-step{flex:1;text-align:center;padding:8px 4px;border-radius:6px;font-size:.78rem;font-weight:600;background:#eef1f4;color:#8e9aa6}.wizard-step.active{background:var(--tg-primary-dark);color:#fff}.wizard-step.done{background:#e5f6ea;color:var(--success)}.flow-editor-shell{height:calc(100vh - 130px);border:1px solid var(--border);border-radius:10px;overflow:hidden;background:#fff}.flow-node{border-radius:8px;padding:10px 14px;min-width:170px;font-size:.82rem;border:2px solid #ccc;background:#fff;box-shadow:0 1px 3px #0000001a}.react-flow__handle{width:16px;height:16px;background:#8892a0;border:3px solid #fff;box-shadow:0 0 0 1.5px #8892a0}.react-flow__handle:hover{box-shadow:0 0 0 2.5px var(--tg-primary-dark);cursor:crosshair;transform:scale(1.15)}.react-flow__handle-left{left:-9px}.react-flow__handle-right{right:-9px}.flow-editor-hint{font-size:.82rem;color:var(--text-meta);margin-bottom:10px}.flow-node .flow-node-title{font-weight:700;margin-bottom:4px;text-transform:uppercase;font-size:.68rem;letter-spacing:.03em}.flow-node.trigger{border-color:#3ba55d}.flow-node.trigger .flow-node-title{color:#3ba55d}.flow-node.match{border-color:#d99a2b}.flow-node.match .flow-node-title{color:#d99a2b}.flow-node.resposta{border-color:var(--tg-primary-dark)}.flow-node.resposta .flow-node-title{color:var(--tg-primary-dark)}.flow-node.encaminhar{border-color:var(--danger)}.flow-node.encaminhar .flow-node-title{color:var(--danger)}.flow-node.transferir_setor{border-color:#8e44ad}.flow-node.transferir_setor .flow-node-title{color:#8e44ad}.flow-node.abrir_chamado{border-color:#16a085}.flow-node.abrir_chamado .flow-node-title{color:#16a085}.flow-node.agendar{border-color:#2980b9}.flow-node.agendar .flow-node-title{color:#2980b9}.flow-node.ia_ollama{border-color:#e67e22}.flow-node.ia_ollama .flow-node-title{color:#e67e22}.flow-palette{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap}.flow-palette button{font-size:.8rem;padding:7px 12px;border-radius:6px;border:1px solid var(--border);background:#fff;cursor:pointer}.flow-palette button:hover{background:#f4f7fa}.modo-toggle{display:flex;border:1px solid var(--border);border-radius:6px;overflow:hidden}.modo-toggle button{font-size:.8rem;padding:7px 12px;border:none;background:#fff;cursor:pointer}.modo-toggle button+button{border-left:1px solid var(--border)}.modo-toggle button.ativo{background:var(--tg-primary-dark);color:#fff}.btn.small{padding:4px 10px;font-size:.78rem}.flow-table-wrap{overflow-x:auto}.flow-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--border);border-radius:10px;overflow:hidden;font-size:.84rem}.flow-table th,.flow-table td{padding:10px 12px;border-bottom:1px solid var(--border);vertical-align:top;text-align:left}.flow-table th{background:#f4f7fa;font-size:.72rem;text-transform:uppercase;letter-spacing:.03em;color:var(--text-meta)}.flow-table tr:last-child td{border-bottom:none}.flow-table input,.flow-table textarea,.flow-table select{min-width:220px;margin-bottom:0}.flow-table-destinos{display:flex;flex-direction:column;gap:8px}.flow-table-destinos label{display:flex;flex-direction:column;gap:2px;font-size:.76rem;color:var(--text-meta);margin-bottom:0}.node-inspector{position:absolute;right:20px;top:20px;width:280px;background:#fff;border:1px solid var(--border);border-radius:10px;padding:16px;box-shadow:0 6px 18px #0000001f;z-index:10}.chat-shell{display:flex;height:calc(100vh - 130px);border:1px solid var(--border);border-radius:10px;overflow:hidden;background:#fff}.chat-list{width:300px;border-right:1px solid var(--border);overflow-y:auto;flex-shrink:0}.chat-list-item{padding:12px 16px;border-bottom:1px solid var(--border);cursor:pointer}.chat-list-item:hover,.chat-list-item.active{background:#eef7fd}.chat-list-item .nome{font-weight:600;font-size:.9rem}.chat-list-item .meta{font-size:.76rem;color:var(--text-meta);margin-top:2px}.chat-panel{flex:1;display:flex;flex-direction:column;background:#dceaf5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23c9dcea'/%3E%3C/svg%3E")}.chat-panel-header{padding:12px 18px;background:var(--tg-primary-dark);color:#fff;font-weight:600;font-size:.92rem}.chat-messages{flex:1;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:4px}.chat-date-sep{align-self:center;background:#ffffffd9;color:#6b7684;font-size:.74rem;padding:3px 12px;border-radius:10px;margin:10px 0}.chat-bubble-row{display:flex}.chat-bubble-row.enviada{justify-content:flex-end}.chat-bubble-row.recebida{justify-content:flex-start}.chat-bubble{max-width:62%;padding:8px 12px 6px;border-radius:10px;font-size:.88rem;line-height:1.35;box-shadow:0 1px 1px #00000014}.chat-bubble-row.enviada .chat-bubble{background:var(--bubble-out-bg);border:1px solid var(--bubble-out-border);border-bottom-right-radius:2px}.chat-bubble-row.recebida .chat-bubble{background:var(--bubble-in-bg);border:1px solid var(--bubble-in-border);border-bottom-left-radius:2px}.chat-bubble .hora{display:block;text-align:right;font-size:.68rem;color:var(--text-meta);margin-top:3px}.empty-state{color:var(--text-meta);text-align:center;padding:40px 20px;font-size:.9rem}.form-row{display:flex;gap:14px}.form-row>*{flex:1}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#141c2673;display:flex;align-items:center;justify-content:center;z-index:50}.modal-box{background:#fff;border-radius:10px;padding:24px;width:100%;max-width:420px;max-height:88vh;overflow-y:auto}.modal-box h2{margin-top:0;font-size:1.1rem}.card h2{font-size:1.05rem}.card p,.card li{font-size:.9rem;line-height:1.55}.card ol,.card ul{padding-left:20px;margin:10px 0}.card li+li{margin-top:6px}.card code{background:#eef1f4;padding:1px 6px;border-radius:4px;font-size:.85em}.toolbar{display:flex;gap:10px;align-items:center}@media (max-width: 720px){.app-shell{flex-direction:column;min-height:auto}.sidebar{width:100%;flex-direction:row;flex-wrap:wrap;align-items:center;padding:10px 12px;gap:4px 10px}.sidebar-brand{padding:0 12px 0 0;margin-bottom:0;border-bottom:none;border-right:1px solid #2b3947;font-size:1rem}.sidebar nav{flex-direction:row;flex-wrap:wrap;gap:0}.sidebar nav a,.sidebar nav button{padding:8px 10px;font-size:.85rem}.sidebar-footer{margin-top:0;margin-left:auto;padding:0;border-top:none}.sidebar-credito{display:none}.main-content{padding:16px}.page-header{flex-direction:column;align-items:flex-start;gap:10px}.toolbar{flex-wrap:wrap}table{display:block;overflow-x:auto;white-space:nowrap}.modo-toggle,.flow-palette{overflow-x:auto;flex-wrap:nowrap;max-width:100%}.node-inspector{left:12px;right:12px;width:auto}.flow-editor-shell{height:calc(100vh - 220px)}.login-hero{padding:36px 20px}.login-box{order:-1;max-width:none;padding:28px 22px}.showcase-titulo{font-size:1.4rem}.login-detalhes{padding:36px 20px 16px}.showcase-lista{grid-template-columns:1fr;gap:22px}}
