.databricks-panel .panel-head{gap:16px}
.databricks-panel .panel-head small{display:block;margin-top:5px;font-size:12px}
.databricks-content{padding:22px 23px 24px;display:grid;gap:20px;min-width:0}
.databricks-guide{background:#f5f8ff;border:1px solid #dfe8fa;border-radius:10px;padding:17px 19px;line-height:1.5;font-size:13px}
.databricks-guide strong{display:block;color:#263d69;font-size:14px}
.databricks-guide p{margin:7px 0 8px;max-width:95ch;color:#50617b}
.databricks-guide a{font-weight:700;color:#315ee4;text-decoration:none}
.databricks-guide a:hover{text-decoration:underline}
.databricks-connections{border:1px solid #e3e9f2;border-radius:10px;overflow:auto;max-height:225px}
.databricks-connections h3{font-size:13px;margin:0;padding:13px 16px;background:#f8faff;border-bottom:1px solid #e3e9f2}
.databricks-connections .list-row{padding:12px 16px;min-width:0}
.databricks-connections .list-row>div:first-child{min-width:0;overflow-wrap:anywhere}
.databricks-connections .actions{margin:0;flex-shrink:0}
.databricks-query{min-width:0;width:100%}
.databricks-query-head{display:flex;align-items:baseline;gap:12px}
.databricks-query h3{font-size:15px;margin:0}
.databricks-query-head span{font-size:12px}
.databricks-query label{margin-top:14px}
.databricks-query textarea{display:block;min-height:120px;max-height:230px;resize:vertical;font:13px/1.5 Consolas,monospace}
.databricks-query-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}
#db-result:not(:empty){margin-top:18px;max-height:280px;max-width:100%;overflow:auto;overscroll-behavior:contain;border:1px solid #e3e9f2;border-radius:9px;padding:0;color:#40516a;isolation:isolate}
#db-result:not(:has(table)){padding:13px}
#db-result table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;font-size:13px}
#db-result th,#db-result td{padding:9px 12px;border-bottom:1px solid #e7ecf3;text-align:left;white-space:normal;overflow-wrap:anywhere}
#db-result th{position:sticky;inset-block-start:0;z-index:10;background:#f8faff;color:#263d69;box-shadow:0 1px 0 #dfe7f1}
@media(max-width:700px){.databricks-content{padding:17px;gap:16px}.databricks-connections .list-row{align-items:flex-start;flex-direction:column}.databricks-query-actions{justify-content:stretch}.databricks-query-actions button{width:100%}}
#task-databricks-config{margin-top:12px;padding:14px;border:1px solid #dfe8fa;border-radius:9px;background:#f7f9ff}
#task-databricks-config strong{font-size:13px;color:#263d69}
#task-databricks-config label{margin-top:10px}
#task-databricks-config .hint{line-height:1.4}
.task-flow-modal form{display:flex;flex-direction:column;max-height:calc(100dvh - 32px);min-height:0}
.task-flow-modal #modal-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.task-flow-modal .modal-head,.task-flow-modal .modal-actions{flex:0 0 auto;background:#fff;position:relative;z-index:1}
.task-flow-modal .modal-actions{box-shadow:0 -8px 18px #1a29430d}
.task-flow-modal:not(.new-task-modal) .task-flow-list{max-height:240px}
dialog.task-flow-modal:not(.new-task-modal){width:95vw;max-width:95vw}
dialog.workflow-template-modal{width:95vw;max-width:95vw;height:95vh;height:95dvh;max-height:95vh;max-height:95dvh}
dialog.workflow-template-modal[open]{display:flex;flex-direction:column;overflow:hidden}
dialog.workflow-template-modal>form{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;overflow:hidden}
dialog.workflow-template-modal .modal-head,dialog.workflow-template-modal .modal-actions{flex:0 0 auto}
dialog.workflow-template-modal #modal-body{flex:1;min-height:0;overflow:auto}
.task-flow-toolbar{display:flex;gap:8px;align-items:center}.task-flow-toolbar select{flex:1;min-width:0}.task-flow-canvas-scroll{overflow:auto;min-height:280px;max-height:55vh;border:1px solid #dfe7f3;border-radius:12px;background-color:#f8faff;background-image:radial-gradient(#dce5f4 1px,transparent 1px);background-size:18px 18px}.new-task-modal .task-flow-canvas-scroll{max-height:none;min-height:360px;flex:1}.task-flow-canvas{position:relative;min-height:230px}.task-flow-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.task-flow-wire-outline{fill:none;stroke:#4c78cb;stroke-width:4.5;stroke-linecap:round;stroke-linejoin:round}.task-flow-wire-outline.error{stroke:#dc6d61}.task-flow-wire-core{fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.task-flow-wire-label{font:600 11px system-ui,sans-serif;fill:#3466b8}.task-flow-wire-label.error{fill:#b95045}.task-flow-node{position:absolute;width:280px;min-height:168px;border:1px solid #d5e1f2;border-radius:12px;background:#fff;box-shadow:0 8px 20px #25446917;z-index:1}.task-flow-node-head{display:flex;align-items:center;gap:9px;padding:10px;border-bottom:1px solid #ebeff6}.task-flow-node-head>div{flex:1;min-width:0}.task-flow-node-head strong,.task-flow-node-head small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-flow-node-head strong{font-size:12px;color:#263b5b}.task-flow-node-head small{font-size:10px;color:#8190a4;margin-top:2px}.task-flow-node-head button{padding:3px 8px}.task-flow-port{display:flex;align-items:end;gap:5px;padding:6px 9px}.task-flow-port label{flex:1;min-width:0;margin:0;font-size:10px;font-weight:700;color:#3466b8}.task-flow-port.error label{color:#b95045}.task-flow-port select{display:block;width:100%;margin-top:3px;padding:4px 5px;font-size:10px}.task-flow-port button{padding:3px 8px}.task-flow-empty{position:absolute;top:45px;left:50px;color:#70819c;font-size:12px}
dialog.new-task-modal{width:95vw;max-width:95vw;height:min(900px,calc(100dvh - 24px))}
.new-task-modal form{height:100%}
.new-task-modal #modal-body{padding:0;overflow:hidden}
.new-task-layout{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.35fr);height:100%;min-height:0}
.task-flow-add{display:flex;gap:8px;margin-top:12px}.task-flow-add select{flex:1;min-width:0}.task-flow-add button{white-space:nowrap}.task-flow-step{padding:12px 14px;border-bottom:1px solid #e7edf5;background:#fff}.task-flow-step:last-child{border-bottom:0}.task-flow-step-top{display:flex;align-items:center;gap:10px}.task-flow-step-top>div:nth-child(2){flex:1;min-width:0}.task-flow-step-top strong,.task-flow-step-top small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-flow-step-top strong{font-size:13px;color:#263b5b}.task-flow-step-top small{font-size:11px;color:#8190a4;margin-top:2px}.task-flow-number{display:grid;place-items:center;width:26px;height:26px;flex:0 0 26px;border-radius:50%;background:#e8efff;color:#315fcb;font-weight:700;font-size:12px}.task-flow-condition{display:flex;align-items:center;gap:8px;margin:8px 0 0 36px;font-size:11px;color:#667b98}.task-flow-condition select{max-width:290px;padding:6px 8px;font-size:11px}.task-flow-first{display:block;margin:6px 0 0 36px;font-size:11px;color:#8493a6}
.new-task-layout>section{min-width:0;min-height:0;overflow-y:auto;padding:18px 28px 26px;overscroll-behavior:contain}
.new-task-details{border-right:1px solid #e5ebf3}
.new-task-details h3{font-size:14px;margin:0 0 18px;color:#263b5b}
.new-task-details textarea{min-height:110px}
.new-task-schedule{border-top:1px solid #e5ebf3;margin-top:24px;padding-top:12px}
.new-task-agents .task-flow-editor{display:flex;flex-direction:column;gap:10px}
.task-flow-port{position:relative}.task-flow-empty{left:50%;transform:translateX(-50%);text-align:center;white-space:nowrap}.task-flow-empty p{margin:0 0 12px}.task-flow-chooser{position:fixed;width:min(220px,calc(100vw - 24px));max-height:min(240px,calc(100vh - 24px));overflow:auto;z-index:10000;padding:12px;border:1px solid #d5e1f2;border-radius:10px;background:#fff;box-shadow:0 12px 28px #25446930;text-align:left;white-space:normal}.task-flow-chooser strong{display:block;margin-bottom:8px;font-size:12px;color:#263b5b}.task-flow-chooser select{width:100%;min-width:0;font-size:12px}.task-flow-chooser-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:10px}
.task-flow-node.single-outcome{min-height:0}
.task-flow-notification-controls{display:flex;align-items:center;gap:6px;padding:5px 9px 1px;color:#8190a4;font-size:9px}.task-flow-notification-controls>span{flex:1;font-weight:700}.task-flow-notify{display:inline-flex;align-items:center;justify-content:center;width:25px;height:24px;padding:3px;border:1px solid #d6e1f0;border-radius:6px;background:#fff;cursor:pointer;opacity:.58;transition:background .15s,border-color .15s,opacity .15s}.task-flow-notify svg{width:15px;height:15px}.task-flow-notify.success{color:#3163d4}.task-flow-notify.error{color:#c74646}.task-flow-notify:hover,.task-flow-notify.is-enabled{opacity:1}.task-flow-notify.success.is-enabled{border-color:#a9c2f8;background:#edf3ff}.task-flow-notify.error.is-enabled{border-color:#f1baba;background:#fff0f0}
.task-flow-email-template{padding:6px 9px 2px}.task-flow-email-template label{display:block;margin:0;color:#536782;font-size:10px;font-weight:700}.task-flow-email-template select{display:block;width:100%;margin-top:4px;padding:5px 6px;font-size:10px}
.task-flow-node.is-disconnected{border-color:#d89b32;box-shadow:0 0 0 2px #f8d99c,0 8px 20px #8c601526;z-index:2}
.task-flow-orphan-picker{position:relative;margin:8px;padding:7px 9px;border:1px solid #d89b32;border-radius:9px;background:#fff5df}
.task-flow-add-before{position:absolute;left:-14px;top:12px;width:26px;height:26px;padding:0!important;border-radius:5px;z-index:2;background:#fff}
.task-flow-add-before:disabled{opacity:.4;cursor:not-allowed}
.task-flow-orphan-picker label{display:block;margin:0;color:#8a5708;font-size:11px;font-weight:700}
.task-flow-orphan-picker select{display:block;width:100%;margin-top:4px;padding:5px;font-size:11px;border-color:#d89b32;background:#fff}
.task-flow-disconnected-warning:not([hidden]){display:block;margin:8px 0;padding:8px 10px;border:1px solid #e0b45f;border-radius:8px;background:#fff5df;color:#805009;font-size:12px;font-weight:600}
.task-flow-view-scroll{overflow:auto;max-height:65vh;border:1px solid #dfe7f3;border-radius:12px;background-color:#f8faff;background-image:radial-gradient(#dce5f4 1px,transparent 1px);background-size:18px 18px}.task-flow-view-node{display:flex;flex-direction:column;height:168px;overflow:hidden}.task-flow-view-node.single-outcome{height:108px}.task-flow-view-state{padding:5px 10px;font-size:10px;font-weight:700;color:#587299;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.task-flow-view-port{display:flex;flex:1;align-items:center;gap:7px;padding:5px 10px;font-size:10px;border-top:1px solid #e8edf5}.task-flow-view-port span{font-weight:700;color:#3466b8}.task-flow-view-port.error span{color:#b95045}.task-flow-view-port strong{margin-left:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#526b91}.task-flow-view-node.done{background:#eefaf2;border-color:#bde4ca}.task-flow-view-node.done .task-flow-number{background:#34a66b;color:#fff}.task-flow-view-node.done .task-flow-view-state{color:#268354}.task-flow-view-node.running{background:#fff7e8;border-color:#ebc67a}.task-flow-view-node.running .task-flow-number{background:#de9f2e;color:#fff}.task-flow-view-node.running .task-flow-view-state{color:#a06a13}.task-flow-view-node.failed{background:#fff0f0;border-color:#efbcbc}.task-flow-view-node.failed .task-flow-number{background:#dc6d61;color:#fff}.task-flow-view-node.failed .task-flow-view-state{color:#b44747}.task-flow-view-node.waiting{background:#fff;border-color:#d5e1f2}.task-flow-view-node.waiting .task-flow-number{background:#4c75ed;color:#fff}.task-flow-view-node.skipped{background:#f3f4f6;border-color:#d8dce3}.task-flow-view-node.skipped .task-flow-number{background:#a7afba;color:#fff}.task-flow-view-node.skipped .task-flow-view-state{color:#7b8492}
.task-flow-view-scroll{width:100%;max-width:100%;overflow-x:auto;overflow-y:auto}
.task-flow-view-open{flex:0 0 auto;border:1px solid #cbd9e9;border-radius:6px;background:#fff;color:#315f9b;padding:3px 6px;font-size:12px;line-height:1;cursor:pointer}.task-flow-view-open:hover{background:#eaf1ff}
.task-flow-view-node{overflow:visible}.task-flow-view-node:focus-within,.task-flow-view-node:has(.task-flow-token-label:hover){z-index:4}.task-flow-view-state{display:flex;align-items:center;gap:3px;overflow:visible}.task-flow-view-state-label{min-width:0;overflow:hidden;text-overflow:ellipsis}.task-flow-token-label{position:relative;flex:0 0 auto;border-bottom:1px dotted currentColor;cursor:help;outline-offset:2px}.task-flow-token-tooltip{position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%);z-index:5;display:grid;gap:5px;width:185px;padding:10px;border:1px solid #cbd9e9;border-radius:8px;background:#fff;box-shadow:0 10px 24px #1a29432b;color:#304765;text-align:left;font-size:11px;font-weight:400;white-space:nowrap;visibility:hidden;opacity:0;pointer-events:none}.task-flow-token-tooltip span{display:flex;justify-content:space-between;gap:10px}.task-flow-token-tooltip b{color:#203a5a}.task-flow-token-label:hover .task-flow-token-tooltip,.task-flow-token-label:focus .task-flow-token-tooltip{visibility:visible;opacity:1}
.task-flow-node>.task-flow-node-head{border-radius:11px 11px 0 0}
.task-flow-view-scroll.compact .task-flow-view-node{width:220px;height:150px}.task-flow-view-scroll.compact .task-flow-view-node.single-outcome{height:100px}.task-flow-view-scroll.compact .task-flow-node-head{padding:8px}.task-flow-view-scroll.compact .task-flow-view-state{padding:4px 8px;font-size:9px}.task-flow-view-scroll.compact .task-flow-view-port{padding:4px 8px;font-size:9px}.task-flow-view-scroll.compact .task-flow-node-head strong{font-size:11px}
.task-flow-view-scroll.workflow-template-diagram .task-flow-canvas{min-height:0}.task-flow-view-scroll.compact.workflow-template-diagram .task-flow-view-node{width:170px;height:125px;min-height:0}.task-flow-view-scroll.compact.workflow-template-diagram .task-flow-view-node.single-outcome{height:84px}.task-flow-view-scroll.compact.workflow-template-diagram .task-flow-node-head{padding:7px}.task-flow-view-scroll.compact.workflow-template-diagram .task-flow-node-head strong{font-size:10px}.task-flow-view-scroll.compact.workflow-template-diagram .task-flow-view-port{min-height:28px;padding:4px 7px;font-size:9px}
.task-flow-chooser.flip{left:auto;right:calc(100% + 8px)}
.new-task-agents .task-flow-heading{align-items:center}
.new-task-agents .task-flow-heading p{margin-bottom:0;line-height:1.4}
.new-task-agents .task-flow-list{max-height:none;overflow:visible}
.new-task-agents .task-flow-row{padding:12px}
@media(max-width:760px){dialog.new-task-modal{width:95vw;height:calc(100dvh - 20px);max-height:calc(100dvh - 20px)}.new-task-modal form{max-height:calc(100dvh - 20px)}.new-task-modal #modal-body{overflow-y:auto}.new-task-layout{display:block;height:auto}.new-task-layout>section{overflow:visible;padding:18px 20px}.new-task-details{border-right:0;border-bottom:1px solid #e5ebf3}}
.task-flow-connection-icon{display:grid;place-items:center;flex:none;width:27px;height:27px;padding:0!important;border:1px solid currentColor;border-radius:7px;background:#fff;cursor:pointer}.task-flow-connection-icon.missing{color:#cc4747;background:#fff1f1}.task-flow-connection-icon.configured{color:#3163d4;background:#edf3ff}.task-flow-connection-icon:hover{filter:brightness(.94)}.task-flow-connection-dialog{width:min(430px,94vw);padding:0;border:1px solid #d9e3f1;border-radius:11px;box-shadow:0 16px 46px #172b4b36}.task-flow-connection-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 17px;border-bottom:1px solid #e7edf5}.task-flow-connection-head strong{font-size:14px}.task-flow-connection-body{padding:15px 17px}.task-flow-connection-body label{display:block;margin:0 0 5px;font-size:12px}.task-flow-connection-body select{width:100%;margin-bottom:13px}.task-flow-connection-body .hint{margin:0 0 8px}.task-flow-connection-actions{display:flex;justify-content:flex-end;gap:8px;padding:12px 17px;border-top:1px solid #e7edf5}
.task-flow-notification-preview{display:flex;align-items:center;gap:4px;min-height:24px;padding:2px 10px 3px}.task-flow-notification-preview .task-flow-notify{width:21px;height:19px;padding:2px;opacity:.42;cursor:default}.task-flow-notification-preview .task-flow-notify.is-enabled{opacity:1}.task-flow-view-node.has-notification-preview{height:192px}.task-flow-view-node.single-outcome.has-notification-preview{height:132px}.task-flow-view-scroll.compact .task-flow-view-node.has-notification-preview{height:174px}.task-flow-view-scroll.compact .task-flow-view-node.single-outcome.has-notification-preview{height:123px}.task-flow-view-scroll.compact.workflow-template-diagram .task-flow-view-node.has-notification-preview{height:149px}.task-flow-view-scroll.compact.workflow-template-diagram .task-flow-view-node.single-outcome.has-notification-preview{height:106px}

.task-flow-view-node:not(.template-node)>.task-flow-node-head{height:50px;flex:0 0 50px;box-sizing:border-box}
.task-flow-view-node:not(.template-node)>.task-flow-view-state{height:22px;flex:0 0 22px;box-sizing:border-box}
.task-flow-view-node:not(.template-node)>.task-flow-notification-preview{height:24px;min-height:24px;flex:0 0 24px;box-sizing:border-box}
.task-flow-view-scroll.compact:not(.workflow-template-diagram) .task-flow-view-node>.task-flow-node-head{height:44px;flex-basis:44px}
.task-flow-view-scroll.compact:not(.workflow-template-diagram) .task-flow-view-node>.task-flow-view-state{height:18px;flex-basis:18px}
.task-flow-view-scroll.compact.workflow-template-diagram .task-flow-view-node>.task-flow-node-head{height:42px;flex-basis:42px}
.task-flow-view-scroll.compact.workflow-template-diagram .task-flow-view-node>.task-flow-notification-preview{height:24px;min-height:24px;flex-basis:24px}
/* The compact overview card consists only of its header, so both ends need the card's radius. */
.overview-workflow .task-flow-view-scroll.compact .task-flow-view-node>.task-flow-node-head{border-bottom:0;border-radius:11px}
.overview-workflow .task-flow-view-scroll.compact .task-flow-view-node.email-notification>.task-flow-node-head{border-radius:7px 11px 11px 7px}
.task-flow-port.success label,.task-flow-view-port.success span,.task-flow-node.email-notification .task-flow-port.success label,.task-flow-node.email-notification .task-flow-view-port.success span{color:#268354}
.task-flow-port.error label,.task-flow-view-port.error span,.task-flow-node.email-notification .task-flow-port.error label,.task-flow-node.email-notification .task-flow-view-port.error span{color:#b95045}
.task-flow-notify.success{color:#268354}
.task-flow-notify.success.is-enabled{border-color:#a8dfbb;background:#eaf8ef}

.task-flow-node.email-notification{position:absolute;border:1px solid #c9b9eb;border-left:5px solid #7046b8;background:#faf8ff}

.task-flow-node.email-notification .task-flow-node-head{background:#f0eaff;border-bottom-color:#dfd3f5;border-radius:7px 11px 0 0}
.task-flow-email-icon{display:inline-grid;place-items:center;width:18px;height:18px;vertical-align:-4px;margin-right:5px;border:1px solid #cbb8ef;border-radius:5px;background:#fff;color:#6843a4}
.task-flow-email-icon svg{display:block;width:12px;height:12px}
.task-flow-node.email-notification .task-flow-email-template{background:#f7f3ff;border-block:1px solid #e4daf6}
.task-flow-node.email-notification .task-flow-port span,.task-flow-node.email-notification .task-flow-port label{color:#6843a4}
.task-flow-view-node.email-notification{background:#faf8ff;border:1px solid #c9b9eb;border-left:5px solid #7046b8}
.task-flow-view-node.email-notification .task-flow-node-head{background:#f0eaff;border-bottom-color:#dfd3f5;border-radius:7px 11px 0 0}
.task-flow-view-node.email-notification .task-flow-number{background:#7046b8;color:#fff}
.task-flow-view-node.email-notification .task-flow-view-state{color:#6843a4}
.task-flow-view-node.email-notification .task-flow-view-port span{color:#6843a4}
.task-flow-node.email-notification.is-disconnected{border-color:#d89b32;box-shadow:0 0 0 2px #f8d99c,0 8px 20px #8c601526}

/* Workflow templates stay neutral until execution; email keeps its purple notification identity. */
.workflow-template-diagram .template-node.waiting:not(.email-notification){background:#fff;border-color:#d5e1f2}

.task-flow-view-node.aborted{background:#fff0f0;border-color:#df9f9f}
.task-flow-view-node.aborted .task-flow-node-head{background:#fff0f0;border-bottom-color:#efc5c5}
.task-flow-view-node.aborted .task-flow-number{background:#c74747;color:#fff}
.task-flow-view-node.aborted .task-flow-view-state{color:#a82f2f}
.workflow-gallery .panel-head{gap:14px}
.workflow-gallery .panel-head .workflow-gallery-heading{display:flex;align-items:baseline;gap:10px;flex:1;min-width:0}
.workflow-gallery .panel-head .workflow-gallery-heading h2{flex:none;white-space:nowrap}
.workflow-gallery .panel-head .workflow-gallery-heading small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}
.workflow-gallery-search{flex:0 1 340px;min-width:180px;max-width:380px;padding:0;border:0}
.workflow-gallery-search input{box-sizing:border-box;width:100%;height:36px;padding:8px 11px}
.workflow-gallery-card{align-items:center;gap:12px;padding:9px 0}
.workflow-gallery-copy{display:flex;align-items:baseline;gap:12px;flex:1;min-width:0}
.workflow-gallery-copy h3{flex:0 1 auto;max-width:42%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:13px}
.workflow-gallery-copy p{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:11px;color:#71819a}
.workflow-gallery-actions{align-items:center;gap:6px}
.workflow-import-dialog{height:90vh;height:90dvh;max-height:calc(100dvh - 36px)}
.workflow-import-card{align-items:center;padding:12px 0}
.workflow-import-card .workflow-import-copy{display:flex;align-items:baseline;gap:12px;flex:1;min-width:0}
.workflow-import-copy h3{flex:0 1 auto;max-width:42%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:13px}
.workflow-import-copy p{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:11px;color:#71819a}
.workflow-import-card .workflow-import-actions{display:flex;align-items:center;gap:6px;flex:none}
@media(max-width:650px){.workflow-import-card{flex-direction:row}.workflow-import-card .workflow-import-copy{flex-direction:column;align-items:flex-start;gap:3px}.workflow-import-copy h3{max-width:100%}.workflow-import-card .workflow-import-actions{flex-wrap:wrap;justify-content:flex-end}}
dialog.workflow-preview-dialog{inset:0;width:100vw;max-width:100vw;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;margin:0;padding:0;border:0;border-radius:0;overflow:hidden}
dialog.workflow-preview-dialog[open]{display:flex;flex-direction:column}
.workflow-preview-dialog::backdrop{background:#14243e9e}
.workflow-preview-dialog-head{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:14px;padding:12px 18px;border-bottom:1px solid #e5ebf3;background:#fff}
.workflow-preview-dialog-head h2{margin:0;font-size:16px;color:#263d66}
.workflow-preview-dialog-head p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:4px 0 0;color:#71819a;font-size:11px}
.workflow-preview-dialog-content{display:flex;flex:1;min-height:0;padding:12px;background:#fff}
.workflow-preview-dialog-content .workflow-template-diagram{width:100%;height:100%;max-height:none;margin:0}
@media(max-width:760px){.workflow-gallery .panel-head{flex-wrap:wrap}.workflow-gallery .panel-head .workflow-gallery-heading{flex:1 1 100%;flex-wrap:wrap}.workflow-gallery-search{order:2;flex:1 1 200px;max-width:none}#new-workflow-template{order:3}}
@media(max-width:650px){.workflow-gallery-copy{flex-direction:column;align-items:flex-start;justify-content:center;gap:3px}.workflow-gallery-copy h3{max-width:100%}.workflow-gallery-actions{flex-wrap:wrap}}

.task-flow-restart-warning{padding:10px 12px;border:1px solid #e3b75f;border-radius:7px;background:#fff5df;color:#85530b;font-size:12px}.task-flow-restart-warning[hidden]{display:none}

/* Aproveita a altura da edição sem rolagem dentro dos campos de texto. */
.new-task-layout>.edit-task-details{display:flex;flex-direction:column}
.edit-task-details>h3,.edit-task-details>label,.edit-task-details>input,.edit-task-details>.hint{flex-shrink:0}
.edit-task-details>textarea{flex:1 0 auto;field-sizing:content;min-height:140px;height:auto;max-height:none;resize:none;overflow:hidden}
@media(max-width:760px){.edit-task-details>textarea{flex-grow:0}}

.task-flow-engine-button{display:inline-grid;place-items:center;flex:none;width:25px;height:24px;padding:3px!important;border:1px solid #d6e1f0;border-radius:6px;background:#fff;color:#426caa;cursor:pointer}
.task-flow-engine-button svg{display:block;width:16px;height:16px}
.task-flow-engine-button:hover,.task-flow-engine-button:focus-visible{border-color:#9cb9ed;background:#f0f5ff}
.task-flow-engine-button.is-custom{border-color:#9cb9ed;background:#edf3ff;color:#214fb4}
.task-flow-engine-button[aria-disabled="true"]{opacity:.55;cursor:not-allowed}
.task-flow-engine-preview{display:inline-grid;place-items:center;flex:none;width:22px;height:22px;padding:2px;border:1px solid #d6e1f0;border-radius:6px;background:#fff;color:#426caa;cursor:help;box-sizing:border-box}
.task-flow-engine-preview svg{display:block;width:14px;height:14px}
.task-flow-engine-preview:hover,.task-flow-engine-preview:focus-visible{border-color:#9cb9ed;background:#f0f5ff;outline-offset:2px}
.task-flow-engine-preview.is-custom{border-color:#9cb9ed;background:#edf3ff;color:#214fb4}
.workflow-template-diagram .task-flow-engine-preview{width:19px;height:19px}
.workflow-template-diagram .task-flow-engine-preview svg{width:12px;height:12px}
.task-flow-engine-tooltip{position:fixed;z-index:10001;display:grid;gap:4px;width:max-content;max-width:min(240px,calc(100vw - 16px));padding:9px 11px;border:1px solid #cbd9e9;border-radius:8px;background:#fff;box-shadow:0 10px 24px #1a29432b;color:#304765;font-size:11px;line-height:1.4;pointer-events:none}
.task-flow-engine-tooltip strong{color:#203a5a;font-size:11px}.task-flow-engine-tooltip b{color:#173f87}.task-flow-engine-tooltip small{color:#7a889d}
.task-flow-engine-panel{position:fixed;z-index:10000;width:min(270px,calc(100vw - 24px));padding:12px;border:1px solid #cbd9e9;border-radius:9px;background:#fff;box-shadow:0 14px 32px #1a294336;color:#263d62;text-align:left}
.task-flow-engine-panel>strong{display:block;margin-bottom:9px;font-size:12px}
.task-flow-engine-panel label{display:block;margin:0 0 9px;font-size:10px;font-weight:700;color:#536782}
.task-flow-engine-panel select{display:block;width:100%;min-width:0;margin-top:4px;padding:5px 7px;font-size:11px;font-weight:400;color:#253d66}
.task-flow-engine-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:10px}
.task-flow-engine-actions button{font-size:11px}
