/* Scoped Mission Control automation workspace, with one canvas and one registry. */
.automation-workspace{--au-bg:#181b20;--au-panel:#20242a;--au-line:#45515e;--au-muted:#c2ccd7;color:#f1f4f8;min-width:0;max-width:100%;font-size:14px;line-height:1.5;isolation:isolate}
.automation-workspace *{box-sizing:border-box}
.automation-workspace h2,.automation-workspace h3,.automation-workspace h4{color:#f1f4f8;margin:0 0 12px;line-height:1.25}
.automation-workspace h2{font-size:30px}.automation-workspace h3{font-size:22px}.automation-workspace h4{font-size:16px}
.automation-workspace p{color:inherit;margin:8px 0}.automation-workspace small{color:var(--au-muted)}
.automation-heading,.automation-detail-heading{margin-bottom:18px}.automation-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}
.automation-kicker{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#d7bb80!important}
.automation-actions,.automation-filters,.automation-canvas-tools{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.automation-workspace button{font:inherit;line-height:1.35;border:1px solid #647180;background:#292f37;color:#f1f4f8;padding:10px 13px;border-radius:8px;min-height:42px;cursor:pointer;white-space:normal}
.automation-workspace button:hover{background:#353e49;border-color:#b7c8dc}.automation-workspace button[aria-pressed=true]{border-color:#d8b87b;box-shadow:0 0 0 1px #d8b87b;background:#343027}
.automation-workspace .primary-button{background:#cfac6e;color:#1c1c1e;border-color:#cfac6e}.automation-workspace button:disabled{opacity:.6;cursor:wait}
.automation-workspace :is(button,input,select,textarea):focus-visible{outline:3px solid #7cc7ff;outline-offset:3px}
.automation-workspace :is(input,select,textarea){font:inherit;background:#13171c;color:#f1f4f8;border:1px solid #738193;border-radius:7px;min-height:42px;width:100%;padding:9px 10px;min-width:0}
.automation-workspace label{color:#dce3ec;display:grid;gap:7px;margin:0;font-size:13px}.automation-workspace textarea{min-height:90px;resize:vertical}
.automation-filters{align-items:stretch;padding:16px;background:var(--au-bg);border:1px solid var(--au-line);border-radius:12px;margin:16px 0}.automation-filters .automation-field{flex:1;min-width:170px}.automation-filters .automation-field:first-child{flex:1.5}
.automation-layout{display:grid;grid-template-columns:minmax(230px,290px) minmax(0,1fr);gap:16px;align-items:start}
.automation-inventory{display:grid;gap:8px;max-height:850px;overflow:auto;padding:4px;scrollbar-gutter:stable}.automation-workspace .automation-inventory-item{display:grid;gap:8px;text-align:left;background:var(--au-bg);padding:15px;border-color:var(--au-line);width:100%}.automation-inventory-item strong{font-size:15px}.automation-inventory-item small{font-size:11px;overflow-wrap:anywhere}
.automation-detail{min-width:0;padding:22px;border:1px solid var(--au-line);border-radius:12px;background:var(--au-bg)}
.automation-state{display:inline-block;justify-self:start;background:#35414f;color:#e4edf7;font-size:11px;font-weight:700;padding:5px 8px;border-radius:5px}.automation-state-configured{background:#1b5141;color:#bcf1db}.automation-state-paused,.automation-state-draft,.automation-state-unbound{background:#4d412b;color:#ffe4ac}.automation-state-blocked,.automation-state-expired{background:#59313f;color:#ffd2df}
.automation-subtitle{font-size:12px;color:var(--au-muted)!important}.automation-warning{border-left:3px solid #d5b776;padding:10px 14px;background:#302c23;color:#f8e1b8!important;border-radius:5px;font-size:13px}.automation-feedback:empty{display:none}.automation-feedback{padding:10px;border:1px solid var(--au-line);border-radius:6px}
.automation-workspace details{margin-top:18px;border-top:1px solid var(--au-line);padding-top:14px}.automation-workspace summary{color:#dbe6f3;cursor:pointer;font-weight:600;padding:8px 0}
.automation-canvas{margin:18px 0;border:1px solid var(--au-line);border-radius:10px;overflow:hidden;background:#10151c}.automation-canvas-tools{padding:10px;border-bottom:1px solid var(--au-line);font-size:12px}.automation-canvas-tools select{width:85px}.automation-canvas-tools [role=status]{max-width:300px}
.automation-canvas-viewport{max-width:100%;overflow:auto;height:500px;background-image:radial-gradient(#3d4959 .8px,transparent .8px);background-size:20px 20px;overscroll-behavior:contain}.automation-canvas-world{position:relative;transform-origin:0 0}.automation-connectors{position:absolute;inset:0;overflow:visible;pointer-events:none}.automation-connectors>path{fill:none;stroke:#d4b779;stroke-width:2}.automation-connectors text{fill:#f2ddae;font:11px system-ui;paint-order:stroke;stroke:#10151c;stroke-width:5;stroke-linejoin:round}
.automation-workspace .automation-node{position:absolute;width:200px;min-height:96px;padding:12px;display:grid;align-content:start;gap:7px;text-align:left;border-radius:10px;border-top-width:3px;z-index:1;touch-action:pan-x pan-y;user-select:none;box-shadow:0 6px 18px #0005}.automation-node small{font-size:10px;text-transform:uppercase;letter-spacing:.05em}.automation-node strong{font-size:13px}.automation-node-trigger{border-top-color:#7bd4be!important}.automation-node-condition{border-top-color:#c5a7f7!important}.automation-node-wait{border-top-color:#edc778!important}.automation-node-action{border-top-color:#83bafa!important}.automation-node-approval{border-top-color:#f5a88b!important}.automation-node-end{border-top-color:#a0b0c3!important}
.automation-inspector,.automation-rule,.automation-editor{margin:18px 0;padding:18px;background:var(--au-panel);border:1px solid var(--au-line);border-radius:10px}.automation-rule,.automation-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.automation-rule>:is(h4,p,section),.automation-editor>p{grid-column:1/-1}.automation-inspector .automation-field{margin:10px 0}.automation-inspector button,.automation-detail>button{margin:5px 8px 5px 0}.automation-edge-row{border-bottom:1px solid var(--au-line);padding:12px 0}.automation-edge-row button{margin:8px 8px 0 0}.automation-detail ol{padding-left:22px}.automation-detail li{margin-bottom:15px}.automation-preview{max-height:330px;overflow:auto}.automation-workspace [hidden]{display:none!important}
@media(max-width:1050px){.automation-layout{grid-template-columns:minmax(0,1fr)}.automation-inventory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:330px}.automation-inventory>.automation-kicker{grid-column:1/-1}.automation-heading{align-items:flex-start;flex-direction:column}}
@media(max-width:580px){.automation-detail{padding:12px}.automation-filters{padding:12px}.automation-inventory{grid-template-columns:1fr;max-height:240px}.automation-rule,.automation-editor{grid-template-columns:1fr}.automation-canvas-viewport{height:410px}.automation-filters .automation-field{min-width:100%;flex:1}.automation-workspace h2{font-size:25px}.automation-workspace h3{font-size:20px}.automation-actions{align-items:stretch}.automation-actions>button{flex:1}.automation-rule,.automation-editor,.automation-inspector{padding:12px}.automation-heading .automation-actions{width:100%}}
@media(prefers-reduced-motion:reduce){.automation-workspace *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

body[data-environment=operations]:not(.workspace-open) #businessModule:has(.automation-workspace){padding:28px var(--bc-gutter);box-sizing:border-box;min-width:0}
@media(min-width:1100px){body[data-environment=operations] #businessModule:has(.automation-workspace){margin-left:calc(var(--os-sidebar) + 36px);width:calc(100% - var(--os-sidebar) - 36px)}}

.automation-preview table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px}.automation-preview caption{text-align:left;margin:10px 0;color:var(--au-muted)}.automation-preview :is(th,td){padding:10px 7px;text-align:left;overflow-wrap:anywhere;border-bottom:1px solid var(--au-line)}
