/* Automation: list, journey editor, step picker, preview.
   Scoped under .crdts-dash; page-private classes carry the au- prefix. */

.crdts-dash .au-page,.crdts-dash .au-editor{--muted:#7b7b70;--line:#eaeae2}
.crdts-dash .au-page{max-width:1550px}

/* ---------- shared bits ---------- */
.crdts-dash .au-eyebrow{font-size:11px;letter-spacing:.1px;color:var(--muted)}
.crdts-dash .au-eyebrow em{font-style:normal;color:var(--orange)}
.crdts-dash .au-eyebrow.pill{display:inline-flex;align-items:center;gap:6px;background:#fffdf1;border:1px solid #eee4b6;border-radius:30px;padding:5px 10px;color:#82712c}
.crdts-dash .au-eyebrow.pill svg{width:13px;height:13px}
.crdts-dash .au-dot{color:var(--orange)}

.crdts-dash .au-type-icon{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#fff3da;color:#bc870c;flex-shrink:0}
.crdts-dash .au-type-icon svg{width:17px;height:17px}
.crdts-dash .au-type-icon.trigger{background:#fff0df;color:#e16a16}
.crdts-dash .au-type-icon.action{background:#fff8ce;color:#a38210}
.crdts-dash .au-type-icon.condition{background:#f2ecff;color:#8764b7}
.crdts-dash .au-type-icon.delay{background:#eef4f7;color:#668896}
.crdts-dash .au-type-icon.big{width:43px;height:43px}
.crdts-dash .au-type-icon.big svg{width:20px;height:20px}

.crdts-dash .au-state-chip{display:inline-flex;align-items:center;gap:5px;font-size:10px;color:#558269;background:#eff7f1;padding:5px 9px;border-radius:20px;cursor:pointer;border:0}
.crdts-dash .au-state-chip:before{content:'';height:5px;width:5px;background:currentColor;border-radius:50%}
.crdts-dash .au-state-chip.off{color:#8b8b7d;background:#f4f4ef}
.crdts-dash .au-state-chip.bad{color:#b4574d;background:#fbeeec}
.crdts-dash .au-state-chip:disabled{opacity:.6;cursor:wait}

.crdts-dash .au-icon-button{display:inline-grid;place-items:center;border:1px solid var(--line);border-radius:6px;width:30px;height:31px;background:#fff;color:#777;cursor:pointer}
.crdts-dash .au-icon-button svg{width:14px;height:14px}
.crdts-dash .au-icon-button:hover{border-color:#e0c266;color:var(--orange)}
.crdts-dash .au-icon-button.danger:hover{border-color:#e6b8b0;color:#b4574d}
.crdts-dash .au-icon-button svg.lucide-loader-2,.crdts-dash .au-run-wait svg,.crdts-dash .au-loading svg{animation:auSpin 1s linear infinite}
@keyframes auSpin{to{transform:rotate(360deg)}}

.crdts-dash .au-page :is(.primary-button,.secondary-button,.delete-confirm),.crdts-dash .au-editor :is(.primary-button,.secondary-button),.crdts-dash .au-dialog :is(.primary-button,.secondary-button,.delete-confirm){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;font-weight:700;border-radius:9px}
.crdts-dash .au-page .primary-button svg{color:var(--yellow)}
.crdts-dash .au-editor .primary-button svg{color:var(--yellow)}
.crdts-dash .primary-button svg,.crdts-dash .secondary-button svg{width:16px;height:16px}

/* ---------- list page ---------- */
.crdts-dash .au-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}
.crdts-dash .au-title h1{font-size:30px;margin:6px 0}
.crdts-dash .au-title h1 span{color:var(--orange)}
.crdts-dash .au-title p{color:var(--muted);font-size:12px}

.crdts-dash .au-hero{background:#fff8d6;border:1px solid #f1e8be;border-radius:18px;padding:30px 36px;display:grid;grid-template-columns:1.2fr 1fr;gap:25px;align-items:center;overflow:hidden;min-height:226px}
.crdts-dash .au-hero-copy h2{font-size:27px;line-height:1.6;margin:12px 0 8px;letter-spacing:-.6px}
.crdts-dash .au-hero-copy h2 span{color:var(--orange)}
.crdts-dash .au-hero-copy p{font-size:12px;color:#837b60;line-height:1.9;max-width:410px}
.crdts-dash .au-hero-visual{position:relative;height:170px;direction:ltr;max-width:450px;width:100%;justify-self:center}
.crdts-dash .au-visual-connector{position:absolute;inset:0;width:100%;height:100%}
.crdts-dash .au-vnode{position:absolute;padding:12px 16px;background:#fff;border:1px solid #eee7cb;border-radius:12px;box-shadow:0 9px 20px #a8974610;display:flex;gap:10px;align-items:center;direction:rtl;width:158px}
.crdts-dash.ltr .au-vnode{direction:ltr}
.crdts-dash .au-vnode b{font-size:12px;display:block}
.crdts-dash .au-vnode small{display:block;color:var(--muted);font-size:9px;margin-top:4px}
.crdts-dash .au-vnode.one{top:1px;right:5px;transform:rotate(3deg)}
.crdts-dash .au-vnode.two{bottom:2px;left:0;transform:rotate(-4deg)}
.crdts-dash .au-vnode.three{bottom:-2px;right:1px;transform:rotate(3deg);width:153px}
.crdts-dash .au-hub{position:absolute;left:44%;top:43px;width:65px;height:65px;border-radius:19px;background:#171714;display:grid;place-items:center;box-shadow:0 7px 0 #ded3a3;transform:rotate(-9deg)}
.crdts-dash .au-hub svg{color:var(--yellow);width:33px;height:33px}
.crdts-dash .au-visual-spark{position:absolute;color:var(--orange);font-size:27px;left:18%;top:10px}
.crdts-dash .au-visual-dot{width:8px;height:8px;background:var(--orange);border:2px solid #fff8d6;border-radius:50%;position:absolute;top:64px;left:29%}

.crdts-dash .au-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0 30px}
.crdts-dash .au-stat{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 21px;background:#fff;border:1px solid var(--line);border-radius:12px}
.crdts-dash .au-stat strong{display:block;font-size:24px;line-height:1.3}
.crdts-dash .au-stat span{display:block;font-size:11px;color:var(--muted);margin-top:5px}
.crdts-dash .au-stat i{color:#c7ba85;background:#faf8ef;width:40px;height:40px;border-radius:12px;display:grid;place-items:center}
.crdts-dash .au-stat i svg{width:18px;height:18px}

.crdts-dash .au-collection-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}
.crdts-dash .au-collection-head h2{font-size:17px}
.crdts-dash .au-collection-head p{color:var(--muted);font-size:11px;margin-top:5px}
.crdts-dash .au-collection-tools{display:flex;align-items:center;gap:10px}
.crdts-dash .au-search,.crdts-dash .au-picker-search{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);padding:9px 12px;border-radius:8px}
.crdts-dash .au-search input,.crdts-dash .au-picker-search input{background:transparent;outline:none;border:0;width:100%;font-size:12px;min-width:0}
.crdts-dash .au-search svg,.crdts-dash .au-picker-search svg{width:17px;height:17px;color:var(--muted);flex-shrink:0}
.crdts-dash .au-filter{display:flex;gap:3px;background:#eeeee8;border-radius:8px;padding:4px}
.crdts-dash .au-filter button{font-size:11px;color:var(--muted);padding:6px 11px;border-radius:5px;white-space:nowrap;border:0;background:transparent;cursor:pointer}
.crdts-dash .au-filter button.active{background:#fff;color:var(--ink);box-shadow:0 1px 3px #0001}

.crdts-dash .au-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.crdts-dash .au-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px;min-width:0;display:flex;flex-direction:column}
.crdts-dash .au-card-top{display:flex;align-items:center;justify-content:space-between}
.crdts-dash .au-card h3{font-size:17px;margin:16px 0 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crdts-dash .au-card-desc{font-size:11px;color:var(--muted);line-height:1.8;min-height:20px}
.crdts-dash .au-mini-flow{background:#fafaf6;border:1px solid #efefe8;border-radius:9px;display:flex;gap:7px;align-items:center;margin:19px 0 13px;padding:13px 10px;font-size:10px;overflow:hidden}
.crdts-dash .au-mini-flow .au-type-icon{width:28px;height:28px;border-radius:7px}
.crdts-dash .au-mini-flow .au-type-icon svg{width:14px;height:14px}
.crdts-dash .au-mini-flow b{font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.crdts-dash .au-mini-arrow{color:#b9b9ad;display:grid;place-items:center}
.crdts-dash .au-mini-arrow svg{width:16px;height:16px}
.crdts-dash .au-mini-rest{margin-inline-start:auto;color:var(--muted);flex-shrink:0}
.crdts-dash .au-card-info{display:flex;justify-content:space-between;font-size:10px;color:#96968a;margin-top:auto}
.crdts-dash .au-card-footer{display:flex;gap:5px;align-items:center;border-top:1px solid var(--line);margin-top:17px;padding-top:15px}
.crdts-dash .au-card-footer .secondary-button{font-size:11px;min-height:35px;padding:7px 11px;margin-inline-end:auto}
.crdts-dash .au-card-footer .secondary-button svg{width:14px;height:14px}

.crdts-dash .au-new-card{border:1px dashed #d8d5c6;border-radius:14px;display:flex;justify-content:center;align-items:center;flex-direction:column;min-height:286px;background:linear-gradient(145deg,#f9f9f5,#fdfcf5);text-align:center;padding:25px;cursor:pointer}
.crdts-dash .au-new-card:hover{border-color:#d8ad40;background:#fffcef}
.crdts-dash .au-plus-visual{width:53px;height:53px;border:1px solid #e7dfc7;border-radius:16px;background:#fff;box-shadow:4px 4px 0 #f2ecd3;display:grid;place-items:center;color:#b79e41;margin-bottom:18px}
.crdts-dash .au-plus-visual svg{width:22px;height:22px}
.crdts-dash .au-new-card b{font-size:15px}
.crdts-dash .au-new-card p{font-size:11px;color:var(--muted);max-width:210px;line-height:1.9;margin-top:8px}
.crdts-dash .au-empty-result{grid-column:1/-1;padding:35px;text-align:center;color:var(--muted);background:#fff;border:1px solid var(--line);border-radius:12px;font-size:12px}
.crdts-dash .au-skel{min-height:286px;border-radius:14px;background:linear-gradient(90deg,#f4f4ee 25%,#fafaf6 50%,#f4f4ee 75%);background-size:200% 100%;animation:auShimmer 1.4s ease-in-out infinite}
@keyframes auShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}

.crdts-dash .au-how{margin-top:33px;border-top:1px solid #e7e7de;padding-top:22px}
.crdts-dash .au-how-title{display:flex;align-items:center;gap:8px;margin-bottom:18px;font-size:12px}
.crdts-dash .au-how-title svg{width:16px;color:var(--orange)}
.crdts-dash .au-how-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:23px}
.crdts-dash .au-how-item{display:flex;gap:12px;align-items:flex-start}
.crdts-dash .au-how-item>span{font-size:11px;border:1px solid #e2e1d5;background:#fff;border-radius:50%;min-width:25px;height:25px;display:grid;place-items:center;color:#a49663}
.crdts-dash .au-how-item b{font-size:12px}
.crdts-dash .au-how-item p{font-size:10px;color:var(--muted);line-height:1.9;margin-top:6px}
.crdts-dash .au-footer{display:flex;justify-content:space-between;font-size:10px;color:#a5a599;margin-top:34px;padding-top:18px;border-top:1px solid var(--line)}

/* ---------- new automation ---------- */
.crdts-dash .au-type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.crdts-dash .au-type-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:start;padding:24px;background:#fff;border:1px solid var(--line);border-radius:14px;cursor:pointer;min-height:240px}
.crdts-dash .au-type-card:hover{border-color:#dfc373;background:#fffdf6}
.crdts-dash .au-type-card .au-type-icon{margin-bottom:12px}
.crdts-dash .au-type-card b{font-size:16px}
.crdts-dash .au-type-card p{font-size:11px;color:var(--muted);line-height:1.9;max-width:290px}
.crdts-dash .au-type-tag{position:absolute;top:20px;inset-inline-end:20px;display:inline-flex;align-items:center;gap:4px;font-size:10px;padding:4px 9px;border-radius:20px;background:#fff9de;color:#8f792e}
.crdts-dash .au-type-tag svg{width:11px;height:11px}
.crdts-dash .au-type-go{margin-top:auto;display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--orange)}
.crdts-dash .au-type-go svg{width:15px;height:15px}

/* ---------- journey editor ---------- */
.crdts-dash .au-editor{margin:-26px -38px -40px;background:#fff}
.crdts-dash .au-loading{display:grid;place-items:center;height:70vh}
.crdts-dash .au-loading svg{width:32px;height:32px;color:#c9c9bd}

.crdts-dash .au-builder-head{display:flex;align-items:center;justify-content:space-between;padding:18px 26px;background:#fff;border-bottom:1px solid var(--line);gap:16px}
.crdts-dash .au-builder-name{display:flex;align-items:center;gap:12px;min-width:0}
.crdts-dash .au-back{border:1px solid var(--line);border-radius:9px;width:35px;height:35px;display:grid;place-items:center;color:#777;background:#fff;cursor:pointer;flex-shrink:0}
.crdts-dash .au-back svg{width:16px;height:16px}
.crdts-dash .au-builder-name input{font:700 17px Ping,sans-serif;border:0;border-bottom:1px solid transparent;outline:none;padding:2px 0;background:transparent;width:260px;max-width:100%}
.crdts-dash .au-builder-name input:focus{border-bottom-color:var(--orange)}
.crdts-dash .au-builder-name small{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted);margin-top:6px}
.crdts-dash .au-save-dot{width:5px;height:5px;border-radius:50%;background:#87a97c;display:inline-block}
.crdts-dash .au-save-dot.dirty{background:#efb123}
.crdts-dash .au-builder-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.crdts-dash .au-builder-actions button{font-size:11px;white-space:nowrap}
.crdts-dash .au-builder-actions button svg{width:15px;height:15px}

.crdts-dash .au-builder-tabs{padding:0 28px;background:#fff;display:flex;gap:28px;border-bottom:1px solid var(--line)}
.crdts-dash .au-builder-tabs button{padding:13px 3px;font-size:11px;color:var(--muted);border:0;border-bottom:2px solid transparent;background:transparent;cursor:pointer}
.crdts-dash .au-builder-tabs button.active{border-color:var(--orange);color:var(--ink);font-weight:700}

.crdts-dash .au-board-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;height:max(560px,calc(100vh - 88px - 76px - 42px))}
.crdts-dash .au-canvas-pane{min-width:0;position:relative;background:#f8f8f4;display:flex;flex-direction:column;min-height:0}
.crdts-dash .au-canvas-toolbar{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:16px 24px;z-index:2;flex-wrap:wrap}
.crdts-dash .au-step-tools{display:flex;gap:5px;background:#fff;padding:5px;border:1px solid #e6e6dc;border-radius:11px;box-shadow:0 4px 10px #00000003}
.crdts-dash .au-step-tools button{display:flex;align-items:center;gap:6px;font-size:11px;padding:8px 10px;border-radius:6px;border:0;background:transparent;cursor:pointer;color:var(--ink)}
.crdts-dash .au-step-tools button:hover{background:#fff6dc}
.crdts-dash .au-step-tools svg{width:15px;height:15px;color:var(--orange)}
.crdts-dash .au-step-tools button[data-kind=condition] svg{color:#8a70af}
.crdts-dash .au-step-tools button[data-kind=delay] svg{color:#73909a}
.crdts-dash .au-step-tools .au-plus{width:11px;height:11px;color:#b1b1a6}
.crdts-dash .au-canvas-hint{font-size:10px;color:#a0a091;display:flex;align-items:center;gap:5px}
.crdts-dash .au-canvas-hint svg{width:13px;height:13px}
.crdts-dash .au-canvas{position:relative;flex:1;min-height:0}
.crdts-dash .au-canvas .react-flow{background:transparent}
.crdts-dash .au-canvas-bottom{display:flex;align-items:center;justify-content:space-between;padding:12px 24px;border-top:1px solid #ebebe2;background:#f8f8f4;font-size:10px;color:#9a9a8b}
.crdts-dash .au-warn-inline{color:#b4574d}
.crdts-dash .au-canvas .react-flow__controls{box-shadow:none;border:1px solid var(--line);border-radius:7px;overflow:hidden}
.crdts-dash .au-canvas .react-flow__controls-button{width:26px;height:26px}
.crdts-dash .au-canvas .react-flow__edge-text{font-size:9px;fill:#67875b}
.crdts-dash .au-canvas .au-edge-no .react-flow__edge-text{fill:#b4574d}
.crdts-dash .au-canvas .react-flow__edge-textbg{fill:#f8f8f4}
.crdts-dash .au-canvas .react-flow__edge.selected .react-flow__edge-path{stroke:var(--orange)!important}

.crdts-dash .au-empty-canvas{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;pointer-events:none}
.crdts-dash .au-empty-canvas>*{pointer-events:auto}
.crdts-dash .au-empty-canvas .au-type-icon{width:65px;height:65px;border-radius:20px;margin-bottom:20px}
.crdts-dash .au-empty-canvas .au-type-icon svg{width:28px;height:28px}
.crdts-dash .au-empty-canvas h2{font-size:21px;margin-bottom:12px}
.crdts-dash .au-empty-canvas p{font-size:12px;color:var(--muted);line-height:1.9;margin-bottom:22px;max-width:310px}

/* the cards on the canvas */
.crdts-dash .au-node{position:relative;display:block;text-align:start;width:300px;padding:15px 18px;background:#fff;border:1px solid #e4e4da;border-radius:13px;box-shadow:0 5px 12px #26271405;transition:border .15s,box-shadow .15s;cursor:pointer}
.crdts-dash .au-node:hover{border-color:#cabd90}
.crdts-dash .au-node.selected{border:1.5px solid #d5ad46;box-shadow:0 0 0 4px #f3e9c87a}
.crdts-dash .au-node.trigger{border-top:3px solid #f5ae76}
.crdts-dash .au-node.action{border-top:3px solid #e4cf69}
.crdts-dash .au-node.condition{border-top:3px solid #bfa4e3;padding-bottom:26px}
.crdts-dash .au-node.delay{border-top:3px solid #a6c2ca}
.crdts-dash .au-node.has-issue{border-color:#efc4bd}
.crdts-dash .au-node-meta{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px;font-size:9px;color:#96968b}
.crdts-dash .au-node-kind{display:flex;align-items:center;gap:5px;color:#a68042;font-weight:700}
.crdts-dash .au-node-kind svg{width:12px;height:12px}
.crdts-dash .au-node-body{display:flex;align-items:center;gap:11px;direction:inherit}
.crdts-dash .au-node-body h3{font-size:14px;margin:0 0 4px}
.crdts-dash .au-node-body p{font-size:10px;line-height:1.8;color:var(--muted);max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crdts-dash .au-node-details{display:flex;align-items:center;justify-content:space-between;margin-top:13px;padding-top:10px;border-top:1px solid #f1f1eb;font-size:10px;color:#929285}
.crdts-dash .au-node-details strong{background:#fff9de;color:#8f792e;font-size:10px;border-radius:5px;padding:3px 7px}
.crdts-dash .au-node-issue{display:inline-flex;align-items:center;gap:5px;color:#b4574d}
.crdts-dash .au-node-issue svg{width:12px;height:12px}
.crdts-dash .au-handle{width:9px!important;height:9px!important;border:2px solid #fff!important;background:#d7d1bb!important}
.crdts-dash .au-handle.yes{background:#87a97c!important}
.crdts-dash .au-handle.no{background:#d99a8f!important}
.crdts-dash .au-out-label{position:absolute;bottom:-23px;font-size:9px;padding:2px 7px;border-radius:5px;transform:translateX(-50%);white-space:nowrap}
.crdts-dash .au-out-label.yes{left:28%;background:#f0f4ec;color:#67875b;border:1px solid #dfe7d7}
.crdts-dash .au-out-label.no{left:72%;background:#faf0ee;color:#b4574d;border:1px solid #efd9d5}

/* inspector */
.crdts-dash .au-inspector{background:#fff;border-inline-start:1px solid var(--line);padding:23px 21px;overflow-y:auto;min-height:0}
.crdts-dash .au-inspector.ncp{position:static;width:auto;box-shadow:none;z-index:auto;inset:auto}
.crdts-dash .au-inspector-top{display:flex;align-items:center;justify-content:space-between;font-size:12px;border-bottom:1px solid var(--line);padding-bottom:17px;margin-bottom:23px}
.crdts-dash .au-inspector-top span{font-size:10px;color:var(--muted)}
.crdts-dash .au-inspector-top svg{width:15px;height:15px;color:#c7ba85}
.crdts-dash .au-inspector .au-type-icon.big{margin-bottom:12px}
.crdts-dash .au-inspector-title{font-size:17px;margin-bottom:8px}
.crdts-dash .au-inspector-desc{font-size:11px;line-height:1.9;color:var(--muted);margin-bottom:23px}
.crdts-dash .au-inspector .ncp-body{padding:0;gap:18px}
.crdts-dash .au-inspector .ncp-acts{flex-direction:column}
.crdts-dash .au-inspector .ncp-acts>button svg{width:15px;height:15px}
.crdts-dash .au-inspector-empty{text-align:center;padding:55px 0}
.crdts-dash .au-inspector-empty>svg{width:45px;height:45px;color:#d4bb62;margin-bottom:20px}
.crdts-dash .au-inspector-empty h2{font-size:17px;margin-bottom:8px}
.crdts-dash .au-inspector-empty p{font-size:11px;line-height:1.9;color:var(--muted)}

/* history */
.crdts-dash .au-history-panel{padding:25px;background:#fff;border:1px solid var(--line);border-radius:12px;margin:25px}
.crdts-dash .au-history-panel h2{font-size:18px;margin-bottom:9px}
.crdts-dash .au-history-panel>p{font-size:12px;color:var(--muted);margin-bottom:24px}
.crdts-dash .au-history-row{display:flex;align-items:center;gap:12px;padding:15px;border-bottom:1px solid var(--line);font-size:12px}
.crdts-dash .au-history-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crdts-dash .au-history-row time{font-size:10px;color:var(--muted);white-space:nowrap}
.crdts-dash .au-blank-log{display:flex;flex-direction:column;align-items:center;gap:12px;padding:30px;text-align:center;color:var(--muted);font-size:12px;line-height:1.9}
.crdts-dash .au-blank-log svg{width:34px;height:34px;color:#d4bb62}

/* ---------- dialogs ---------- */
.crdts-dash .au-overlay{position:fixed;inset:0;z-index:100;background:#17171465;backdrop-filter:blur(4px);display:grid;grid-template-columns:minmax(0,1fr);place-items:center;padding:16px;overflow:auto}
.crdts-dash .au-dialog{background:#fff;border:1px solid #e3e2d8;border-radius:19px;color:var(--ink);max-width:100%;max-height:90vh;overflow:auto;box-shadow:0 28px 100px #1c1b1530;outline:none}
.crdts-dash .au-dialog.wide{width:min(760px,100%)}
.crdts-dash .au-dialog.narrow{width:min(450px,100%)}
.crdts-dash .au-dialog-head{display:flex;align-items:center;justify-content:space-between;padding:24px 27px 21px;gap:20px}
.crdts-dash .au-dialog-head h2{font-size:23px;margin-top:5px}
.crdts-dash .au-dialog-head .au-eyebrow{font-size:10px}
.crdts-dash .au-close{border:1px solid var(--line);border-radius:9px;color:#888;width:33px;height:33px;display:grid;place-items:center;background:#fff;cursor:pointer;flex-shrink:0}
.crdts-dash .au-close svg{width:16px;height:16px}
.crdts-dash .au-dialog-body{padding:0 27px 25px;font-size:12px;line-height:1.9}
.crdts-dash .au-dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}
.crdts-dash .au-dialog-foot{padding:16px 26px;background:#fafaf7;border-top:1px solid var(--line);display:flex;gap:8px;align-items:center;font-size:10px;color:var(--muted)}
.crdts-dash .au-dialog-foot svg{width:14px;height:14px;flex-shrink:0}

.crdts-dash .au-picker-tabs{display:grid;grid-template-columns:repeat(4,1fr);padding:0 25px;border-bottom:1px solid var(--line);gap:10px}
.crdts-dash .au-picker-tabs button{padding:15px 7px;display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font-size:12px;cursor:pointer}
.crdts-dash .au-picker-tabs button svg{width:16px;height:16px}
.crdts-dash .au-picker-tabs button[aria-selected=true]{color:var(--orange);border-bottom-color:var(--orange);font-weight:700}
.crdts-dash .au-picker-tabs em{font-size:9px;font-style:normal;background:#f4f4ef;border-radius:4px;min-width:19px;padding:2px;text-align:center}
.crdts-dash .au-picker-search{margin:22px 26px 14px;background:#f9f9f6;padding:12px}
.crdts-dash .au-picker-caption{display:flex;justify-content:space-between;margin:0 28px 13px;font-size:10px;color:var(--muted)}
.crdts-dash .au-picker-items{padding:0 26px 23px;display:grid;grid-template-columns:1fr 1fr;gap:10px;max-height:410px;overflow:auto}
.crdts-dash .au-step-option{padding:14px;display:flex;gap:12px;align-items:center;text-align:start;border:1px solid #eaeae1;border-radius:11px;background:#fff;min-height:76px;cursor:pointer}
.crdts-dash .au-step-option:hover{border-color:#dfc373;background:#fffdf6}
.crdts-dash .au-step-option b{font-size:12px;display:block;margin-bottom:5px}
.crdts-dash .au-step-option small{font-size:10px;color:var(--muted);line-height:1.8;display:block}
.crdts-dash .au-step-option .au-plus{margin-inline-start:auto;width:16px;height:16px;color:#b3b1a1;flex-shrink:0}
.crdts-dash .au-picker-empty{grid-column:1/-1;text-align:center;padding:30px;font-size:12px;color:var(--muted)}

.crdts-dash .au-run-lead{color:var(--muted);margin-bottom:12px}
.crdts-dash .au-note{display:flex;gap:8px;background:#fff9df;border-radius:8px;padding:12px;color:#8d7b40;font-size:10px;line-height:1.8;margin:0 0 12px}
.crdts-dash .au-note.warn{background:#fdf0ed;color:#a5584d}
.crdts-dash .au-note svg{width:15px;height:15px;flex-shrink:0;margin-top:2px}
.crdts-dash .au-run-wait{display:grid;place-items:center;padding:24px}
.crdts-dash .au-run-wait svg{width:24px;height:24px;color:#c9c9bd}
.crdts-dash .au-run-error{padding:14px 0;color:#b4574d;font-size:12px}
.crdts-dash .au-run-step{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.crdts-dash .au-run-step>div{flex:1;min-width:0}
.crdts-dash .au-run-step b{font-size:12px;display:block}
.crdts-dash .au-run-step small{font-size:10px;color:var(--muted);display:block;white-space:pre-wrap;word-break:break-word}
.crdts-dash .au-run-step .au-type-icon{width:31px;height:31px}
.crdts-dash .au-run-state{width:16px;height:16px;flex-shrink:0}
.crdts-dash .au-run-state.ok{color:#5b9163}
.crdts-dash .au-run-state.bad{color:#b4574d}
.crdts-dash .au-run-state.wait{color:#c79b2d}
.crdts-dash .au-run-state.skip{color:#a5a599}
.crdts-dash .au-branch-chip{display:inline-block;font-style:normal;font-size:9px;border-radius:5px;padding:2px 7px;margin:3px 0}
.crdts-dash .au-branch-chip.yes{background:#f0f4ec;color:#67875b}
.crdts-dash .au-branch-chip.no{background:#faf0ee;color:#b4574d}

/* ---------- chat builder, in the same hand ---------- */
.crdts-dash .ac-root{height:calc(100vh - 88px);margin:-26px -38px -40px}
.crdts-dash .ac-head{padding:18px 26px}
.crdts-dash .ac-head-ico{border-radius:10px;background:#fff0df;color:#e16a16}
.crdts-dash .ac-ava{background:#fff0df;color:#e16a16}
.crdts-dash .ac-side{background:#f8f8f4}
.crdts-dash .ac-step-num{background:#171714;color:var(--yellow)}

/* ---------- responsive ---------- */
@media(min-width:1600px){
  .crdts-dash .au-hero{min-height:248px}
  .crdts-dash .au-hero-copy h2{font-size:32px}
  .crdts-dash .au-hero-visual{max-width:430px}
  .crdts-dash .au-card,.crdts-dash .au-new-card{min-height:312px}
}
@media(max-width:1200px){
  .crdts-dash .au-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .crdts-dash .au-board-layout{grid-template-columns:minmax(0,1fr) 270px}
  .crdts-dash .au-canvas-hint{display:none}
  .crdts-dash .au-hero{padding:26px;grid-template-columns:1.1fr 1fr}
  .crdts-dash .au-hero-copy h2{font-size:24px}
  .crdts-dash .au-vnode,.crdts-dash .au-vnode.three{width:143px;padding:11px}
  .crdts-dash .au-collection-head{align-items:flex-start}
  .crdts-dash .au-collection-tools{flex-wrap:wrap;justify-content:flex-end}
  .crdts-dash .au-search{max-width:180px}
}
@media(max-width:980px){
  .crdts-dash .au-editor,.crdts-dash .ac-root{margin:-22px -25px -34px}
  .crdts-dash .au-hero{grid-template-columns:1fr}
  .crdts-dash .au-hero-visual{display:none}
  .crdts-dash .au-stats{gap:9px}
  .crdts-dash .au-stat{padding:14px;gap:8px}
  .crdts-dash .au-stat i{display:none}
  .crdts-dash .au-board-layout{grid-template-columns:1fr;height:auto}
  .crdts-dash .au-canvas-pane{height:560px}
  .crdts-dash .au-inspector{border-inline-start:0;border-top:1px solid var(--line);padding:24px}
  .crdts-dash .au-builder-head{flex-wrap:wrap}
  .crdts-dash .au-builder-actions{margin-inline-start:auto}
  .crdts-dash .au-how-grid{gap:14px}
  .crdts-dash .au-collection-head{flex-wrap:wrap}
  .crdts-dash .au-collection-tools{width:100%;justify-content:space-between}
  .crdts-dash .au-search{max-width:none;flex:1}
  .crdts-dash .au-type-grid{grid-template-columns:1fr}
  .crdts-dash .au-type-card{min-height:0}
}
@media(max-width:760px){
  .crdts-dash .au-editor,.crdts-dash .ac-root{margin:-18px -16px -30px}
  .crdts-dash .au-title{align-items:flex-start}
  .crdts-dash .au-title h1{font-size:26px}
  .crdts-dash .au-title p{max-width:210px;line-height:1.8}
  .crdts-dash .au-title .primary-button,.crdts-dash .au-title .secondary-button{font-size:10px;padding:9px;gap:5px}
  .crdts-dash .au-hero{padding:23px;min-height:210px}
  .crdts-dash .au-hero-copy h2{font-size:24px}
  .crdts-dash .au-hero-copy p{font-size:11px}
  .crdts-dash .au-stats{margin:16px 0 26px;gap:7px}
  .crdts-dash .au-stat{padding:13px 10px}
  .crdts-dash .au-stat strong{font-size:22px}
  .crdts-dash .au-stat span{font-size:9px}
  .crdts-dash .au-grid{grid-template-columns:1fr}
  .crdts-dash .au-card{padding:20px}
  .crdts-dash .au-new-card{min-height:200px}
  .crdts-dash .au-how-grid{grid-template-columns:1fr;gap:18px}
  .crdts-dash .au-footer{font-size:8px;gap:10px}
  .crdts-dash .au-builder-head{padding:17px 14px}
  .crdts-dash .au-builder-name input{width:190px;font-size:15px}
  .crdts-dash .au-builder-actions{width:100%}
  .crdts-dash .au-builder-actions button{flex:1;justify-content:center}
  .crdts-dash .au-builder-tabs{padding:0 17px}
  .crdts-dash .au-step-tools{width:100%;justify-content:space-between}
  .crdts-dash .au-step-tools button{font-size:10px;padding:8px 6px}
  .crdts-dash .au-canvas-toolbar{padding:16px 12px}
  .crdts-dash .au-history-panel{margin:14px;padding:18px}
  .crdts-dash .au-dialog-head{padding:21px 18px}
  .crdts-dash .au-dialog-head h2{font-size:20px}
  .crdts-dash .au-dialog-body{padding:0 18px 22px}
  .crdts-dash .au-picker-tabs{padding:0 12px;gap:0}
  .crdts-dash .au-picker-tabs button{font-size:11px;gap:5px}
  .crdts-dash .au-picker-tabs em{display:none}
  .crdts-dash .au-picker-search{margin:18px 16px 12px}
  .crdts-dash .au-picker-caption{margin:0 18px 12px}
  .crdts-dash .au-picker-items{padding:0 16px 20px;grid-template-columns:1fr;max-height:45vh;gap:8px}
  .crdts-dash .au-step-option{min-height:68px;padding:12px}
  .crdts-dash .au-dialog-foot{padding:14px 18px}
  .crdts-dash .au-collection-tools{flex-wrap:wrap}
  .crdts-dash .au-search{min-width:100%}
  .crdts-dash .au-filter{width:100%}
  .crdts-dash .au-filter button{flex:1}
  .crdts-dash .au-node{width:260px}
}

/* The destructive step button is quiet until it is hovered. */
.crdts-dash .au-inspector .ncp-acts .delete-confirm{background:#fff;color:#b4574d;border:1px solid #efd9d5;font-weight:400;font-size:12px}
.crdts-dash .au-inspector .ncp-acts .delete-confirm:hover{background:#fbeeec}
.crdts-dash .au-inspector .ncp-acts .primary-button{font-size:12px}
