:root{--entry-width:600px;--entry-header:84px;--entry-space:24px;--entry-control:40px;--entry-top:100px;--entry-round:12px;--entry-group:#edeef0;--entry-line:#d8dfe3;--entry-blue:hsl(var(--brand-h) 100% 32.7%);--entry-ink:hsl(var(--brand-h) 100% 12.2%);--entry-white:#fff}
.workflow-entry-drawer{position:absolute;z-index:5;top:var(--entry-top);bottom:0;right:0;width:min(var(--entry-width),100%);background:var(--entry-white);box-shadow:-8px 0 24px #183c4d20;display:flex;flex-direction:column;font-size:16px}.workflow-entry-drawer>header{height:var(--entry-header);min-height:var(--entry-header);padding:var(--entry-space);border-bottom:1px solid var(--entry-line);display:flex;align-items:center;justify-content:space-between}.workflow-entry-drawer h2{font-size:20px;line-height:28px;margin:0}.workflow-entry-drawer>header>button{border:0;font-size:24px;padding:0;min-height:24px;color:#607581}.workflow-entry-drawer form{min-height:0;display:flex;flex:1;flex-direction:column}.workflow-entry-body{padding:var(--entry-space);overflow:auto;flex:1}.workflow-entry-body h3{font-size:16px;margin:0 0 20px}.workflow-entry-group{background:var(--entry-group);border-radius:4px;padding:12px;margin-bottom:16px}.workflow-entry-group-title{display:flex;align-items:center;gap:10px;color:var(--entry-blue);padding:8px 16px 20px;font-size:16px}.workflow-entry-group-title svg{width:22px;height:22px;flex-shrink:0}.workflow-entry-group-title .icon{margin-left:auto;border:0;background:none}.workflow-entry-condition>.field>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.workflow-entry-condition input,.workflow-entry-condition select{height:var(--entry-control);min-height:var(--entry-control);border:1px solid #b8c2c8;border-radius:var(--entry-round);background:var(--entry-white);font-size:16px;padding:0 12px;width:100%}.workflow-entry-condition .field{margin:0 0 8px;min-width:0}.workflow-entry-type{display:flex;position:relative;margin-bottom:8px}.workflow-entry-type>select{padding-right:58px}.workflow-entry-type>.icon{position:absolute;right:28px;top:8px;border:0;min-height:24px;height:24px;width:24px;padding:0;background:var(--entry-white);font-size:20px}.workflow-entry-group>.textbutton{padding:8px 16px;display:flex;gap:10px;font-size:16px;font-weight:700}.workflow-entry-group>.textbutton svg,.workflow-entry-body>.textbutton svg{width:20px;height:20px}.workflow-entry-body>.textbutton{display:flex;align-items:center;gap:10px}.workflow-entry-and{font-size:14px;font-weight:700;margin:12px 0}.workflow-entry-or{font-size:14px;line-height:20px;margin:16px 0}.workflow-entry-or p{margin:16px 0}.workflow-entry-field{display:grid;gap:8px}.workflow-entry-field .field>span{font-size:12px}.workflow-entry-drawer footer{border-top:1px solid var(--entry-line);padding:16px var(--entry-space);display:flex;justify-content:flex-end;gap:12px}.workflow-entry-drawer footer button{height:var(--entry-control);min-height:var(--entry-control);border-radius:var(--entry-round)}
.graph-entry>.workflow-entry-summary{display:block;max-height:calc(100vh - 240px);overflow:auto;margin-top:12px;padding-right:4px}.workflow-entry-summary section{padding:12px;background:var(--entry-group);border-radius:3px;margin-bottom:12px}.workflow-entry-summary section>b{background:var(--entry-ink);color:var(--entry-white);font-size:12px;padding:4px 8px;display:inline-block;border-radius:3px;line-height:16px}.workflow-entry-summary section p{margin:10px 0 6px;font-size:14px;line-height:20px}.workflow-entry-summary section strong{font-size:14px;line-height:22px;overflow-wrap:anywhere}.workflow-entry-summary>span{display:block;margin:12px 0}.workflow-entry-summary-and{display:block;margin-top:12px}.workflow-editor:has(.workflow-entry-drawer) .graph-actions-toggle,.workflow-editor:has(.workflow-entry-drawer) .graph-action-palette{display:none}.workflow-graph-scroll{padding-top:40px}.workflow-graph{min-height:calc(100vh - 240px)}
@media(max-width:600px){.workflow-entry-drawer{--entry-space:16px}.workflow-entry-group-title{padding-left:0;font-size:14px}.workflow-entry-condition input,.workflow-entry-condition select{font-size:14px}.workflow-entry-body{padding-bottom:24px}}

:root{--workflow-brand-width:144px;--workflow-link-width:176px;--workflow-header-height:44px;--workflow-toolbar-height:56px;--workflow-connector-gap:8px;--workflow-node-min:160px}
.workflow-editor-top{height:var(--workflow-header-height)}.workflow-editor-top>.growth-brand{width:var(--workflow-brand-width);min-width:var(--workflow-brand-width);font-size:14px;padding:0 12px;gap:6px}.workflow-editor-top .growth-mark{width:24px;height:24px}.workflow-editor-top .growth-mark svg{width:18px;height:18px}.workflow-editor-top>a{width:var(--workflow-link-width);min-width:var(--workflow-link-width);font-size:14px}.workflow-editor-toolbar{height:var(--workflow-toolbar-height);padding:8px 0}.workflow-editor-toolbar>.primary{margin-right:16px}.graph-connector{margin:0 var(--workflow-connector-gap)}.graph-connector:before,.graph-connector:after{width:var(--workflow-connector-gap)}.graph-node{min-width:var(--workflow-node-min)}.graph-entry>.workflow-entry-summary{max-height:calc(100vh - 272px)}

.workflow-settings-drawer .workflow-entry-body>section{padding:0 0 24px;margin:0 0 24px;border-bottom:1px solid var(--entry-line)}.workflow-settings-drawer .workflow-entry-body>section:last-of-type{border-bottom:0}.workflow-policy-choice{display:flex;align-items:flex-start;gap:12px;line-height:24px;cursor:pointer}.workflow-policy-choice input{width:18px;height:18px;min-height:18px;margin:3px 0 0;accent-color:hsl(var(--brand-h) 100% 46.1%);flex-shrink:0}.workflow-settings-drawer section p{margin:8px 0 20px 30px;font-size:14px;line-height:21px}.workflow-settings-drawer section p:last-child{margin-bottom:0}.workflow-settings-drawer h3{margin-bottom:20px}

.workflow-policy-content{min-height:0;flex:1;display:flex;flex-direction:column}.workflow-settings-drawer h3{margin-bottom:16px}

:root{--action-row-height:48px;--action-icon-size:24px;--action-icon-glyph:16px;--action-gap:8px;--action-radius:8px;--action-purple:#9300c5;--action-pink:#ed3fbc;--action-orange:#ffad32;--action-blue:hsl(var(--brand-h) 86% 61.6%);--action-gray:#6a7e88;--action-green:#28ad83}
.workflow-actions-body{flex:1;min-height:0;overflow:auto;padding:var(--entry-space);font-size:14px}.workflow-actions-body>p{font-size:16px;margin:0 0 var(--entry-space);line-height:24px}.workflow-action-category{display:flex;align-items:center;justify-content:space-between;width:100%;height:var(--action-row-height);border:0;border-radius:0;background:transparent;padding:0;font-size:16px;font-weight:700;text-transform:uppercase;color:var(--entry-ink)}.workflow-action-category>span{font-size:20px}.workflow-action-option{width:100%;display:flex;align-items:center;gap:var(--action-gap);height:var(--action-row-height);margin:var(--action-gap) 0;border:1px solid var(--entry-line);border-radius:var(--action-radius);padding:0 16px;text-align:left;font-size:14px;font-weight:400;cursor:grab}.workflow-action-option:active{cursor:grabbing}.workflow-action-icon{display:flex;align-items:center;justify-content:center;width:var(--action-icon-size);height:var(--action-icon-size);flex-shrink:0;border-radius:50%;background:var(--action-blue);color:var(--entry-white)}.workflow-action-icon svg{width:var(--action-icon-glyph);height:var(--action-icon-glyph)}[data-action-category=communication] .workflow-action-icon{background:var(--action-purple)}[data-action-category=wait] .workflow-action-icon{background:var(--action-gray)}[data-action-category=path] .workflow-action-icon{background:var(--action-orange)}[data-action-category=manage] .workflow-action-icon{background:var(--action-pink)}[data-action-category=responsible] .workflow-action-icon{background:var(--action-green)}.workflow-action-grip{margin-left:auto;color:var(--action-gray);font-size:20px}.workflow-actions-body>small{display:block;margin-top:var(--entry-space);color:var(--action-gray)}.workflow-dragging .graph-connector{outline:2px dashed var(--entry-blue);outline-offset:4px}

.graph-node:is([data-type=tag],[data-type=remove_tag],[data-type=mark_opportunity],[data-type=unmark_opportunity],[data-type=lead_stage],[data-type=score]) .graph-node-icon{background:var(--action-pink)}.graph-node[data-type=lead_owner] .graph-node-icon{background:var(--action-green)}

.workflow-enrollment-leads{max-height:320px;overflow:auto;border:1px solid var(--entry-line);border-radius:var(--action-radius);padding:12px}.workflow-enrollment-leads label{padding:8px}.workflow-enrollment-leads small{display:block;color:var(--action-gray);margin-top:4px}.workflow-enrollment-leads [hidden]{display:none}

.workflow-link-targets{max-height:260px;overflow:auto;border:1px solid var(--entry-line);padding:12px;border-radius:var(--action-radius)}.workflow-link-targets label{display:flex;margin-top:12px}.graph-node:is([data-type=add_to_workflow],[data-type=remove_from_workflow]) .graph-node-icon{background:var(--action-orange)}
:root{--execution-detail-min:240px;--execution-detail-max:640px}.workflow-output td:nth-child(3),.workflow-executions td:nth-child(3){white-space:normal;min-width:var(--execution-detail-min);max-width:var(--execution-detail-max);overflow-wrap:anywhere;line-height:1.6}

.workflow-task-changes{display:grid;gap:var(--entry-space);grid-column:1/-1;flex-basis:100%;width:100%}.workflow-task-change{display:grid;gap:var(--action-gap)}.workflow-task-change>.field{width:100%}

:root{--action-selected:hsl(var(--brand-h) 90% 67.3%);--action-label-gap:8px;--action-choice-gap:12px;--action-choice-size:18px}
.workflow-action-drawer .workflow-action-description{margin:0 0 var(--entry-space);line-height:24px}
.workflow-action-drawer .flow-action{border:0;background:none;padding:0;margin:0;box-shadow:none}
.workflow-action-drawer .action-fields{display:flex;flex-direction:column;gap:var(--entry-space);align-items:stretch;min-width:0}
.workflow-action-drawer .field{display:flex;flex:0 0 auto;flex-direction:column;gap:var(--action-label-gap);width:100%;min-width:0;margin:0}
.workflow-action-drawer .field>span{font-size:16px;font-weight:700;line-height:24px}
.workflow-action-drawer :is(input:not([type=checkbox],[type=radio],[type=hidden]),select,textarea){width:100%;min-width:0;min-height:var(--entry-control);border-radius:var(--entry-round);font-size:16px;padding:8px 12px;border:1px solid var(--entry-line)}
.workflow-action-drawer textarea{min-height:120px;resize:vertical}
.workflow-action-drawer .checklabel{line-height:24px;align-items:flex-start;white-space:normal}
.workflow-action-drawer :is(input[type=checkbox],input[type=radio]){width:var(--action-choice-size);height:var(--action-choice-size);min-height:var(--action-choice-size);flex-shrink:0;margin-top:3px;accent-color:var(--action-selected)}
.workflow-deal-assignment{display:flex;flex-direction:column;gap:var(--action-choice-gap)}
.workflow-assignment-choice{display:flex;align-items:flex-start;gap:var(--action-choice-gap);line-height:24px;cursor:pointer}
.workflow-assignment-choice small{display:block;font-size:16px;margin-top:4px}
.workflow-assignment-choice input{flex-shrink:0;width:var(--action-choice-size);height:var(--action-choice-size)}
.workflow-last-owner{border-top:1px solid var(--entry-line);padding-top:var(--entry-space);margin-top:var(--action-choice-gap)}
.workflow-action-extra summary{font-weight:700;color:var(--entry-blue);cursor:pointer}.workflow-action-extra[open] summary{margin-bottom:var(--action-choice-gap)}
[data-deal-group]{margin-top:var(--action-choice-gap);max-height:260px;overflow:auto}[data-deal-group][hidden]{display:none}
.graph-node[data-selected=true]{background:var(--action-selected);border-color:var(--entry-blue);box-shadow:0 4px 8px #183c4d20}
.graph-node[data-selected=true] .graph-node-main{background:transparent;color:var(--entry-ink)}
.workflow-action-drawer .formerror:empty{display:none}
@media(max-width:600px){.workflow-action-drawer .action-fields{gap:16px}.workflow-action-drawer .workflow-link-targets{max-height:none}}

.workflow-action-option{touch-action:none}.workflow-drag-preview{position:fixed;z-index:100;pointer-events:none;transform:translate(12px,12px);padding:12px 16px;background:var(--entry-white);border:1px solid var(--entry-blue);border-radius:var(--action-radius);box-shadow:0 4px 12px #183c4d30;font-size:14px}.workflow-drop-target{background:var(--action-selected);box-shadow:0 0 0 8px hsl(var(--brand-h) 90% 67.3% / 0.31)}

.workflow-directory-footer{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);flex-wrap:wrap;padding:var(--space-4) 0}
.workflow-directory-footer label,.workflow-directory-footer nav{display:flex;align-items:center;gap:var(--space-2)}
.workflow-directory-footer select{width:auto}
.workflow-list .tablewrap{max-width:100%;overflow-x:auto}
.workflow-list td:first-child .textbutton{white-space:normal;overflow-wrap:anywhere;text-align:left}
@media(max-width:700px){.workflow-list .report-heading{flex-direction:column;align-items:stretch;gap:var(--space-4)}.workflow-list .report-heading .actions{flex-wrap:wrap}.workflow-list .report-heading .actions button{flex:1}}
