/* Automation canvas extras. New styles only; core ac-* styles live in app.css. */
.ac2-filter{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 14px}
.ac2-proj{margin-bottom:18px}
.ac2-projtitle{margin:0 0 8px;font-size:13px;color:var(--ink)}
.ac2-hint{font-size:11px;color:var(--muted);margin-top:4px;line-height:1.5}
.ac2-help{font-size:12px;color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin:10px 0;line-height:1.55;background:var(--bg,transparent)}
.ac2-help select{margin:0 4px;max-width:220px}
.ac2-stepline{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:4px}
.ac2-failed{border-left:3px solid #bd4050;padding-left:10px}
.ac2-err{margin-top:8px;font-size:12px;color:var(--ink);border:1px solid #e3b7bd;background:#fdf1f2;border-radius:9px;padding:8px 10px;line-height:1.5}
@media (prefers-color-scheme:dark){
  .ac2-err{background:#3a2226;border-color:#7a3b42}
}


/* Automation workspace navigation + project-first experience — 2026-10-06 */
.ac-app{display:flex;flex-direction:column;gap:16px;min-width:0}
.ac-app-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:4px 2px 0}
.ac-app-head h2,.ac-page-title h2,.ac-folder-hero h2{margin:3px 0 5px;color:var(--ink);letter-spacing:-.025em}
.ac-app-head h2{font-size:25px}.ac-app-head p,.ac-page-title p,.ac-folder-hero p{margin:0;color:var(--muted);font-size:11px;line-height:1.55}
.ac-eyebrow{display:block;color:var(--blue);font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.095em}
.ac-create-project-top{white-space:nowrap}
.ac-tabs{display:flex;align-items:center;gap:6px;padding:5px;background:#f3f6fa;border:1px solid var(--line);border-radius:13px;width:max-content;max-width:100%;overflow:auto}
.ac-nav-tab{border:0;background:transparent;color:#53657d;border-radius:9px;padding:9px 14px;font:inherit;font-size:10px;font-weight:850;cursor:pointer;white-space:nowrap}
.ac-nav-tab:hover{background:#fff;color:var(--blue)}.ac-nav-tab.active{background:#fff;color:var(--blue);box-shadow:0 3px 10px rgba(24,57,96,.08)}
.ac-loading{display:grid;place-items:center;min-height:300px;color:var(--muted);font-size:11px}
.ac-page-title{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-bottom:18px}
.ac-page-title h2{font-size:28px}.ac-title-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.ac-stat-chip{min-width:76px;padding:9px 11px;border:1px solid var(--line);border-radius:11px;background:var(--card);text-align:center}.ac-stat-chip b,.ac-stat-chip span{display:block}.ac-stat-chip b{font-size:16px;color:var(--ink)}.ac-stat-chip span{font-size:8px;color:var(--muted);text-transform:uppercase;font-weight:850;letter-spacing:.06em}
.ac-projects-page,.ac-project-detail,.ac-library-page,.ac-editor-page{min-width:0}
.ac-project-empty{min-height:430px;border:1px solid var(--line);border-radius:18px;background:var(--card);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:36px;box-shadow:0 10px 30px rgba(28,54,92,.05)}
.ac-project-empty img{width:180px;max-width:42vw;margin-bottom:18px;opacity:.9}.ac-project-empty h3{font-size:18px;letter-spacing:.04em;margin:0 0 6px;color:var(--ink)}.ac-project-empty p{font-size:11px;color:var(--muted);max-width:470px;margin:0}
.ac-empty-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:18px}
.ac-project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.ac-project-folder{position:relative;text-align:left;border:1px solid var(--line);border-radius:17px;background:var(--card);padding:16px;color:var(--ink);cursor:pointer;box-shadow:0 8px 24px rgba(28,54,92,.055);transition:.16s ease;overflow:hidden}
.ac-project-folder:before{content:"";position:absolute;left:0;top:0;right:0;height:4px;background:linear-gradient(90deg,#3478e5,#6fa5f4)}
.ac-project-folder:hover{transform:translateY(-2px);border-color:#afc7e8;box-shadow:0 14px 34px rgba(28,54,92,.10)}
.ac-project-folder-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.ac-project-count{font-size:9px;color:var(--muted);font-weight:800;background:#f3f6fa;border-radius:999px;padding:5px 8px}
.ac-folder-large{display:block;position:relative;width:48px;height:35px;border-radius:7px;background:#d7e8ff;box-shadow:inset 0 -2px 0 rgba(52,120,229,.08)}
.ac-folder-large:before{content:"";position:absolute;left:4px;top:-7px;width:22px;height:10px;border-radius:5px 5px 0 0;background:#c6ddfb}.ac-folder-large i{display:block;position:absolute;inset:7px 7px 6px;border-radius:3px;background:rgba(255,255,255,.55)}
.ac-project-folder h3{font-size:16px;margin:14px 0 5px}.ac-project-folder>p{margin:0;color:var(--muted);font-size:10.5px;min-height:33px}
.ac-project-preview{display:flex;flex-direction:column;gap:5px;margin:13px 0;padding:9px;background:#f8fafc;border:1px solid #edf1f6;border-radius:10px;min-height:75px}
.ac-project-preview span{display:flex;align-items:center;gap:7px;min-width:0;font-size:9px;color:#52657e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ac-project-preview span i{width:6px;height:6px;border-radius:2px;background:#8fb3e8;flex:none}.ac-project-preview span.empty{color:var(--muted)}
.ac-project-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:9px;color:var(--muted)}.ac-project-footer strong{color:var(--blue);font-size:9px}
.ac-project-create-note{margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:11px;background:#f8fbff}.ac-project-create-note b,.ac-project-create-note span{display:block}.ac-project-create-note b{font-size:11px;color:var(--ink)}.ac-project-create-note span{font-size:9px;color:var(--muted);line-height:1.45;margin-top:3px}
.ac-project-breadcrumb{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:9px;margin:0 0 12px}.ac-project-breadcrumb strong{color:var(--ink)}.ac-breadcrumb-link{border:0;background:none;padding:0;color:var(--blue);font:inherit;font-weight:800;cursor:pointer}
.ac-folder-hero{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;border:1px solid var(--line);border-radius:18px;padding:18px;background:linear-gradient(135deg,#fbfdff,#f3f8ff);box-shadow:0 8px 24px rgba(28,54,92,.05);margin-bottom:18px}.ac-folder-hero-icon .ac-folder-large{width:62px;height:45px}.ac-folder-hero-icon .ac-folder-large:before{width:29px}.ac-folder-hero h2{font-size:24px}.ac-folder-hero-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.ac-section-title{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:18px 0 10px}.ac-section-title h3{margin:2px 0 0;font-size:16px;color:var(--ink)}.ac-section-title>span{font-size:9px;color:var(--muted)}
.ac-workflow-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:12px}
.ac-workflow-card{border:1px solid var(--line);border-radius:15px;background:var(--card);box-shadow:0 7px 22px rgba(28,54,92,.05);padding:15px}.ac-workflow-card:hover{border-color:#b9cce8}.ac-workflow-card h3{font-size:14px;margin:10px 0 5px}.ac-workflow-card p{font-size:10px;color:var(--muted);line-height:1.45;min-height:43px}.ac-workflow-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ac-workflow-empty{min-height:330px;border:1px dashed #c8d5e5;border-radius:17px;background:#fbfcfe;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px}.ac-workflow-empty h3{font-size:17px;margin:14px 0 5px}.ac-workflow-empty p{max-width:500px;margin:0;color:var(--muted);font-size:10.5px}
.ac-empty-workflow-preview{display:flex;align-items:center;justify-content:center;gap:7px}.ac-empty-workflow-preview>span{width:26px;height:1px;background:#b9c9dc;position:relative}.ac-empty-workflow-preview>span:after{content:"";position:absolute;right:-1px;top:-3px;border-left:5px solid #b9c9dc;border-top:3px solid transparent;border-bottom:3px solid transparent}
.ac-mini-node{display:inline-flex;align-items:center;justify-content:center;min-width:58px;min-height:33px;padding:7px;border:1px solid #d4deeb;border-radius:9px;background:#fff;color:#43556e;font-size:8px;font-weight:850}.ac-mini-node.trigger{background:#ebf8f1;border-color:#c6e7d5;color:#19714d}
.ac-new-workflow-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:11px;background:#f8fbff}.ac-new-workflow-choice b,.ac-new-workflow-choice span{display:block}.ac-new-workflow-choice b{font-size:11px}.ac-new-workflow-choice span{font-size:9px;color:var(--muted);margin-top:3px}
.ac-template-project{min-width:220px}.ac-template-project label{display:block;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:5px}.ac-template-project select{width:100%;border:1px solid var(--line);background:var(--card);color:var(--ink);border-radius:10px;padding:9px 10px;font-size:10px}
.ac-inline-empty{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px solid #f1d39c;background:#fff9ed;border-radius:12px;padding:11px 12px;margin-bottom:14px}.ac-inline-empty b{font-size:10px}.ac-inline-empty span{font-size:9px;color:var(--muted);flex:1}
.ac-template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}.ac-template-card{border:1px solid var(--line);border-radius:15px;background:var(--card);padding:14px;box-shadow:0 7px 22px rgba(28,54,92,.045)}.ac-template-card h3{font-size:13px;margin:10px 0 5px}.ac-template-card p{font-size:9.5px;color:var(--muted);line-height:1.45;min-height:55px}.ac-template-preview{display:flex;align-items:center;gap:5px;padding:9px;border:1px solid #edf1f6;background:#f8fafc;border-radius:10px;margin-bottom:10px;overflow:hidden}.ac-template-preview i{width:14px;height:1px;background:#b8c8db;flex:none}.ac-template-more{font-size:8px;font-weight:900;color:var(--blue)}
.ac-execution-filter{max-width:380px;margin-bottom:14px}.ac-history-panel{border:1px solid var(--line);border-radius:14px;padding:14px;background:var(--card)}
.ac-editor-page{display:flex;flex-direction:column;gap:0}.ac-editor-head{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid var(--line);border-radius:16px;background:var(--card);padding:15px 16px;margin-bottom:10px;box-shadow:0 7px 22px rgba(28,54,92,.045)}.ac-editor-head>div:first-child{flex:1;min-width:0}.ac-editor-head .ac-name{width:100%;max-width:650px;border:0;background:transparent;padding:0;font-size:21px;font-weight:850;color:var(--ink);outline:0;margin:3px 0}.ac-editor-head p{font-size:9px;color:var(--muted);margin:0}.ac-editor-head>.ac-actions{flex:none}
.ac-toolbar{border:1px solid var(--line);border-radius:12px!important;background:#f8fafc!important;margin-bottom:10px}.ac-grid{grid-template-columns:minmax(0,1fr) 280px!important;gap:12px!important}.ac-canvas-card{border-radius:15px!important;overflow:hidden}.ac-inspector{border-radius:15px!important;position:sticky;top:76px;align-self:start}.ac-viewport{min-height:560px}.ac-latest{margin-top:12px!important;border-radius:15px!important}
html[data-theme="dark"] .ac-tabs,html[data-theme="dark"] .ac-project-preview,html[data-theme="dark"] .ac-workflow-empty,html[data-theme="dark"] .ac-template-preview,html[data-theme="dark"] .ac-toolbar,html[data-theme="dark"] .ac-folder-hero,html[data-theme="dark"] .ac-project-create-note,html[data-theme="dark"] .ac-new-workflow-choice{background:#152033}
html[data-theme="dark"] .ac-nav-tab.active,html[data-theme="dark"] .ac-project-empty{background:#141f31}
@media(max-width:1000px){.ac-folder-hero{grid-template-columns:auto 1fr}.ac-folder-hero-actions{grid-column:1/-1;justify-content:flex-start}.ac-grid{grid-template-columns:1fr!important}.ac-inspector{position:static}.ac-page-title{align-items:flex-start;flex-direction:column}.ac-title-actions{justify-content:flex-start}}
@media(max-width:700px){.ac-app-head{align-items:flex-start;flex-direction:column}.ac-create-project-top{width:100%}.ac-tabs{width:100%}.ac-nav-tab{flex:1}.ac-project-grid,.ac-workflow-grid,.ac-template-grid{grid-template-columns:1fr}.ac-folder-hero{grid-template-columns:1fr}.ac-folder-hero-icon{display:none}.ac-folder-hero-actions{grid-column:auto}.ac-editor-head{align-items:flex-start;flex-direction:column}.ac-editor-head>.ac-actions{width:100%;display:flex}.ac-editor-head>.ac-actions .small-btn{flex:1}.ac-project-empty{min-height:360px}.ac-template-project{width:100%}}


/* Full-width, easy-to-use workflow editor — 2026-10-06 */
.automation-page-full{width:100%;min-width:0}
.automation-page-full #acHost{width:100%;min-width:0}
.automation-page-full .ac-app{width:100%;min-width:0}
.automation-page-full .ac-app-head{padding:18px 20px;border:1px solid var(--line);border-radius:17px;background:var(--card);box-shadow:0 7px 24px rgba(24,54,92,.05)}
.automation-page-full .ac-tabs{margin:0}
.automation-page-full #acBody{min-width:0}
.ac-editor-head{padding:18px 20px!important}
.ac-editor-head-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.ac-mode-switch{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:11px;background:#f3f6fa}
.ac-mode-btn{height:31px;border:0;border-radius:8px;padding:0 11px;background:transparent;color:#64748b;font-size:9px;font-weight:850;cursor:pointer;white-space:nowrap}
.ac-mode-btn.active{background:#fff;color:var(--blue);box-shadow:0 2px 8px rgba(22,52,90,.09)}
.ac-easy-grid{display:grid;grid-template-columns:minmax(0,1fr) 365px;gap:14px;align-items:start}
.ac-easy-flow-card{padding:18px!important;border-radius:17px!important;min-height:580px}
.ac-easy-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.ac-easy-head h3{margin:3px 0 4px;font-size:18px;color:var(--ink)}
.ac-easy-head p{margin:0;font-size:10.5px;color:var(--muted);line-height:1.55}
.ac-easy-empty{min-height:420px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:30px}
.ac-easy-empty-icon{width:54px;height:54px;border-radius:17px;background:#eaf3ff;color:var(--blue);display:grid;place-items:center;font-size:20px;font-weight:900;margin-bottom:13px}
.ac-easy-empty h3{font-size:19px;margin:0 0 6px;color:var(--ink)}
.ac-easy-empty p{max-width:470px;margin:0 0 17px;color:var(--muted);font-size:11px;line-height:1.6}
.ac-easy-flow{padding:16px 0 6px;max-width:920px;margin:0 auto}
.ac-easy-step{display:grid;grid-template-columns:42px minmax(0,1fr);gap:9px;position:relative}
.ac-easy-rail{display:flex;align-items:center;flex-direction:column;min-height:100%}
.ac-easy-number{width:32px;height:32px;border-radius:10px;background:#eef4ff;border:1px solid #d4e2f8;color:var(--blue);display:grid;place-items:center;font-size:10px;font-weight:900;z-index:1}
.ac-easy-rail i{width:2px;flex:1;min-height:25px;background:#d7e1ee;margin:4px 0}
.ac-easy-card{border:1px solid var(--line);border-radius:15px;background:#fff;margin-bottom:12px;padding:14px 15px;box-shadow:0 5px 18px rgba(25,55,92,.045);transition:.14s}
.ac-easy-step.selected .ac-easy-card{border-color:#75a5e9;box-shadow:0 0 0 3px rgba(52,120,229,.08),0 8px 22px rgba(25,55,92,.07)}
.ac-easy-step.disconnected .ac-easy-card{border-color:#e9c26f}
.ac-easy-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.ac-easy-title{display:flex;align-items:flex-start;gap:10px;min-width:0}
.ac-easy-title .ac-node-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;flex:none}
.ac-easy-title h4{margin:0 0 3px;font-size:13px;color:var(--ink)}
.ac-easy-title p{margin:0;color:var(--muted);font-size:9.5px;line-height:1.5}
.ac-easy-verb{flex:none;align-self:center;font-size:8px;font-weight:950;letter-spacing:.08em;color:#76869b;background:#f3f6f9;padding:5px 7px;border-radius:999px}
.ac-easy-edit{height:31px!important;font-size:9px!important;padding:0 10px!important}
.ac-easy-branch,.ac-easy-warning,.ac-easy-finish{margin:10px 0 0 48px;border-radius:9px;padding:8px 10px;font-size:9px;line-height:1.45}
.ac-easy-branch{background:#f1f7ff;color:#48627f}.ac-easy-warning{background:#fff7e7;color:#8a6118}.ac-easy-finish{background:#eef8f2;color:#287153}
.ac-easy-addrow{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:11px 0 0 48px;padding-top:10px;border-top:1px solid #edf1f6}
.ac-easy-addrow>span{font-size:9px;color:var(--muted);font-weight:800}
.ac-easy-addrow>div{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.ac-easy-add{border:1px solid #bdd1ec;background:#f7fbff;color:var(--blue);border-radius:9px;padding:7px 9px;font-size:9px;font-weight:850;cursor:pointer}
.ac-easy-add:hover{background:#eaf3ff;border-color:#78a6e5}
.ac-easy-inspector{position:sticky!important;top:92px!important;min-height:320px;padding:17px!important}
.ac-inspector-empty{display:flex;flex-direction:column;align-items:flex-start}.ac-inspector-empty .ac-tool-icon{margin-bottom:10px}
.ac-inspector-empty h3{margin:0 0 5px;font-size:16px;color:var(--ink)}
.ac-inspector-empty p{margin:0 0 13px;font-size:10px;line-height:1.55;color:var(--muted)}
.ac-inspector-title{display:flex;align-items:flex-start;gap:10px;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:12px}
.ac-inspector-title>.ac-tool-icon{width:38px;height:38px;flex:none}
.ac-inspector-title h3{margin:2px 0 3px;font-size:15px;color:var(--ink)}
.ac-inspector-title p{margin:0;font-size:9px;line-height:1.45;color:var(--muted)}
.ac-inspector-actions{display:flex;gap:7px;margin-top:13px}.ac-inspector-actions .small-btn:first-child{flex:1;justify-content:center}
.ac-advanced-note{display:flex;flex-direction:column;gap:2px;background:#fff7e7;border:1px solid #f0ddb4;border-radius:10px;padding:9px 10px;margin-bottom:12px}.ac-advanced-note b{font-size:9px;color:#825d16}.ac-advanced-note span{font-size:8.5px;color:#8b7651;line-height:1.4}
.ac-connection-details,.ac-technical-details{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}.ac-connection-details summary,.ac-technical-details summary{cursor:pointer;font-size:9px;font-weight:850;color:#66758b}.ac-technical-details p{font-size:9px;color:var(--muted);line-height:1.5}
.ac-tool-library{width:min(960px,calc(100vw - 34px))!important;max-width:960px!important;max-height:88vh!important;overflow:auto!important;padding:18px!important}
.ac-tool-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:13px}
.ac-tool-head h3{font-size:21px!important;margin:3px 0 4px!important}.ac-tool-head p{margin:0;color:var(--muted);font-size:10px;line-height:1.5}
.ac-modal-x{width:34px;height:34px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#64748b;font-size:18px;cursor:pointer;flex:none}
.ac-picker-level{display:flex;gap:5px;padding:4px;background:#f3f6fa;border:1px solid var(--line);border-radius:11px;width:max-content;margin-bottom:12px}
.ac-level-btn{height:32px;border:0;border-radius:8px;padding:0 12px;background:transparent;color:#64748b;font-size:9px;font-weight:850;cursor:pointer}.ac-level-btn.active{background:#fff;color:var(--blue);box-shadow:0 2px 8px rgba(25,55,92,.08)}
.ac-tool-search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:#f8fafc;border-radius:11px;padding:0 11px;height:40px;margin-bottom:11px}.ac-tool-search span{font-size:17px;color:#7d8b9c}.ac-tool-search input{border:0;outline:0;background:transparent;width:100%;font-size:11px;color:var(--ink)}
.ac-pills{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 11px!important}
.ac-cat-chip{border:1px solid var(--line);background:#fff;color:#5d6d81;border-radius:999px;padding:7px 10px;font-size:8.5px;font-weight:850;cursor:pointer}.ac-cat-chip.active{background:var(--blue);border-color:var(--blue);color:#fff}
.ac-library-count{font-size:9px;color:var(--muted);margin-bottom:8px}.ac-library-count b{color:var(--ink);font-size:11px}
.ac-trigger-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
@media(max-width:1100px){.ac-trigger-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ac-trigger-choice{min-height:145px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);padding:14px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:9px;cursor:pointer}.ac-trigger-choice:hover{border-color:#83ace5;background:#f8fbff}.ac-trigger-choice .ac-tool-icon{width:40px;height:40px}.ac-trigger-choice b,.ac-trigger-choice small{display:block}.ac-trigger-choice b{font-size:12px;margin-bottom:4px}.ac-trigger-choice small{font-size:9px;line-height:1.45;color:var(--muted)}.ac-trigger-choice strong{font-size:9px;color:var(--blue);margin-top:auto}
.ac-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ac-action-choice{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:10px;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--ink);padding:11px;text-align:left;cursor:pointer}.ac-action-choice:hover{border-color:#8cb2e7;background:#f9fbff}.ac-action-choice .ac-tool-icon{width:36px;height:36px}.ac-action-copy small,.ac-action-copy b,.ac-action-copy p,.ac-action-copy em{display:block}.ac-action-copy small{font-size:7.5px;text-transform:uppercase;letter-spacing:.07em;color:var(--blue);font-weight:900}.ac-action-copy b{font-size:11px;margin:2px 0 3px}.ac-action-copy p{font-size:8.7px;line-height:1.4;color:var(--muted);margin:0}.ac-action-copy em{font-size:7.5px;color:#8794a5;font-style:normal;margin-top:4px}.ac-action-plus{align-self:center;color:var(--blue);font-size:16px}
.ac-tool-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#eef4ff;color:var(--blue);font-weight:900}.ac-tool-icon.trigger{background:#e8f7ef;color:#16815b}.ac-tool-icon.logic{background:#fff4d9;color:#93651b}
.ac-tool-empty{text-align:center;padding:30px;color:var(--muted);font-size:10px}
.ac-workspace-tools{border-top:1px solid var(--line);margin-top:16px;padding-top:15px}.ac-workspace-tools-head h4{margin:3px 0 4px;font-size:14px;color:var(--ink)}.ac-workspace-tools-head p{margin:0 0 10px;font-size:9px;color:var(--muted);line-height:1.5;max-width:720px}
.ac-shortcut-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.ac-shortcut{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;border:1px solid var(--line);background:#f8fafc;color:var(--ink);border-radius:11px;padding:9px 10px;text-align:left;cursor:pointer}.ac-shortcut>span{width:28px;height:28px;border-radius:8px;background:#fff;display:grid;place-items:center;color:var(--blue);font-weight:900}.ac-shortcut b,.ac-shortcut small{display:block}.ac-shortcut b{font-size:9.5px}.ac-shortcut small{font-size:8px;color:var(--muted);margin-top:2px;line-height:1.3}.ac-shortcut strong{font-size:8px;color:var(--blue)}
.ac-app .field label{font-size:9.5px;font-weight:850;color:var(--ink);margin-bottom:5px;display:block}.ac-app .field input,.ac-app .field select,.ac-app .field textarea{width:100%;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-size:10.5px;padding:9px 10px;outline:0}.ac-app .field textarea{min-height:92px;resize:vertical}.ac-app .field input:focus,.ac-app .field select:focus,.ac-app .field textarea:focus{border-color:#7fa9e5;box-shadow:0 0 0 3px rgba(52,120,229,.08)}
html[data-theme="dark"] .ac-mode-switch,html[data-theme="dark"] .ac-picker-level,html[data-theme="dark"] .ac-tool-search,html[data-theme="dark"] .ac-shortcut,html[data-theme="dark"] .ac-workspace-tools{background:#152033}
html[data-theme="dark"] .ac-mode-btn.active,html[data-theme="dark"] .ac-level-btn.active,html[data-theme="dark"] .ac-easy-card,html[data-theme="dark"] .ac-trigger-choice,html[data-theme="dark"] .ac-action-choice,html[data-theme="dark"] .ac-cat-chip,html[data-theme="dark"] .ac-modal-x,html[data-theme="dark"] .ac-app .field input,html[data-theme="dark"] .ac-app .field select,html[data-theme="dark"] .ac-app .field textarea{background:#141f31}
@media(max-width:1100px){.ac-easy-grid{grid-template-columns:1fr}.ac-easy-inspector{position:static!important}.ac-action-grid{grid-template-columns:1fr}.ac-shortcut-grid{grid-template-columns:1fr}}
@media(max-width:760px){.automation-page-full .ac-app-head{padding:14px}.ac-editor-head-right{width:100%;justify-content:flex-start}.ac-mode-switch{width:100%}.ac-mode-btn{flex:1}.ac-easy-head{flex-direction:column}.ac-easy-addrow{align-items:flex-start;flex-direction:column}.ac-easy-addrow>div{justify-content:flex-start}.ac-trigger-grid{grid-template-columns:1fr}.ac-tool-library{width:calc(100vw - 16px)!important;padding:13px!important}.ac-action-grid{grid-template-columns:1fr}}


/* Easy test dialog + wider advanced workspace */
.automation-page-full .ac-grid{grid-template-columns:minmax(720px,1fr) 360px!important;gap:14px!important}
.automation-page-full .ac-viewport{min-height:650px!important;height:calc(100vh - 355px);max-height:760px}
.automation-page-full .ac-canvas-card{min-width:0}
.automation-page-full .ac-inspector{min-width:0;overflow:hidden}
.automation-page-full .ac-inspector .field{min-width:0}
.automation-page-full .ac-inspector .field input,.automation-page-full .ac-inspector .field select,.automation-page-full .ac-inspector .field textarea{max-width:100%;box-sizing:border-box}
.ac-test-modal{width:min(680px,calc(100vw - 28px))!important;max-width:680px!important;padding:18px!important}
.ac-test-warning{display:flex;flex-direction:column;gap:3px;border:1px solid #f0d6a8;background:#fff8e9;border-radius:11px;padding:10px 11px;margin:8px 0 12px}.ac-test-warning b{font-size:10px;color:#805c1e}.ac-test-warning span{font-size:9px;color:#806f51;line-height:1.45}
.ac-test-summary{display:grid;grid-template-columns:2fr .7fr 1.3fr;gap:8px;margin:10px 0}.ac-test-summary>div{border:1px solid var(--line);border-radius:10px;padding:9px;background:#f8fafc}.ac-test-summary span,.ac-test-summary b{display:block}.ac-test-summary span{font-size:7.5px;color:var(--muted);text-transform:uppercase;font-weight:900;letter-spacing:.06em}.ac-test-summary b{font-size:10px;color:var(--ink);margin-top:3px}
.ac-test-data{border:1px solid var(--line);border-radius:11px;padding:10px 11px;margin-top:10px}.ac-test-data summary{cursor:pointer;font-size:9.5px;font-weight:850;color:var(--ink)}.ac-test-data p{font-size:8.5px;color:var(--muted);line-height:1.45}.ac-test-data textarea{width:100%;min-height:150px;border:1px solid var(--line);border-radius:9px;padding:9px;font:10px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;box-sizing:border-box;background:#fff;color:var(--ink)}
html[data-theme="dark"] .ac-test-warning{background:#352d1d;border-color:#695a35}html[data-theme="dark"] .ac-test-summary>div,html[data-theme="dark"] .ac-test-data textarea{background:#141f31}
@media(max-width:1200px){.automation-page-full .ac-grid{grid-template-columns:minmax(0,1fr)!important}.automation-page-full .ac-inspector{position:static!important}.automation-page-full .ac-viewport{height:620px}}
@media(max-width:700px){.ac-test-summary{grid-template-columns:1fr}.automation-page-full .ac-viewport{height:540px;min-height:540px!important}}


/* Form-aware Easy Builder mapping */
.ac-form-data-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #cfe0f5;background:#f6faff;border-radius:12px;padding:10px 11px;margin:0 0 13px}
.ac-form-data-banner>div{min-width:0}.ac-form-data-banner b,.ac-form-data-banner small{display:block}.ac-form-data-banner b{font-size:11px;color:var(--ink);margin-top:2px}.ac-form-data-banner small{font-size:8.5px;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:245px}
.ac-mapped-field{border:1px solid #edf1f6;border-radius:11px;padding:10px;background:#fbfcfe;margin-bottom:10px}
.ac-mapped-field>label{margin-bottom:7px!important;font-size:10px!important}
.ac-map-box{border:1px solid #d7e4f5;background:#fff;border-radius:10px;padding:9px;margin-bottom:8px}
.ac-map-box-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:8.5px;color:var(--muted);margin-bottom:7px}.ac-map-box-head b{color:var(--ink)}.ac-map-badge{white-space:nowrap;background:#eef4ff;color:var(--blue);border-radius:999px;padding:4px 7px;font-size:7.5px;font-weight:900}
.ac-map-select{width:100%;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-size:9.5px;padding:8px 9px}
.ac-map-selected{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:7px;font-size:8.5px;color:var(--muted)}.ac-map-selected strong{color:var(--ink)}.ac-map-selected small{color:var(--muted)}.ac-map-arrow{font-weight:900;color:var(--blue)}
.ac-mapped-field[data-mapped="1"] .ac-map-value{display:none}
.ac-map-value{margin-top:8px}.ac-map-value>input,.ac-map-value>textarea{width:100%}
.ac-insert-source{display:flex;align-items:center;gap:7px;margin-top:8px}.ac-insert-source>span{font-size:8px;color:var(--muted);white-space:nowrap}.ac-insert-source select{flex:1;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-size:8.5px;padding:7px 8px}
html[data-theme="dark"] .ac-form-data-banner,html[data-theme="dark"] .ac-mapped-field{background:#152033}
html[data-theme="dark"] .ac-map-box,html[data-theme="dark"] .ac-map-select,html[data-theme="dark"] .ac-insert-source select{background:#141f31}
@media(max-width:700px){.ac-form-data-banner{align-items:flex-start;flex-direction:column}.ac-form-data-banner .small-btn{width:100%}.ac-insert-source{align-items:stretch;flex-direction:column}.ac-map-box-head{align-items:flex-start;flex-direction:column}}


/* Trigger form field preview */
.ac-trigger-field-preview{border:1px solid #d7e4f5;background:#f8fbff;border-radius:11px;padding:10px 11px;margin:0 0 12px}
.ac-trigger-field-preview>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:7px}
.ac-trigger-field-preview>div>span{display:block;border:1px solid #e5edf7;background:#fff;border-radius:9px;padding:7px 8px;min-width:0}
.ac-trigger-field-preview b,.ac-trigger-field-preview small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-trigger-field-preview b{font-size:9.5px;color:var(--ink)}.ac-trigger-field-preview small{font-size:7.5px;color:var(--muted);margin-top:2px}
.ac-trigger-field-preview p{margin:8px 0 0;font-size:8.5px;color:var(--muted);line-height:1.45}
html[data-theme="dark"] .ac-trigger-field-preview{background:#152033}
html[data-theme="dark"] .ac-trigger-field-preview>div>span{background:#141f31}
@media(max-width:700px){.ac-trigger-field-preview>div{grid-template-columns:1fr}}


/* Grandma-friendly guided template setup */
.ac-template-section{margin-bottom:16px}
.ac-template-card-guided{display:flex;flex-direction:column;min-height:260px}
.ac-template-card-guided .small-btn{margin-top:auto;justify-content:center}
.ac-template-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ac-template-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#eef4ff;color:var(--blue);font-size:16px;font-weight:900}
.ac-template-steps{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:10px 0 14px}.ac-template-steps span{font-size:8px;font-weight:800;color:#52657e;background:#f4f7fb;border:1px solid #e3eaf3;border-radius:999px;padding:5px 7px}.ac-template-steps i{font-style:normal;font-size:9px;color:#9aa8b9}
.ac-advanced-templates{border:1px solid var(--line);border-radius:15px;background:var(--card);padding:0;margin-top:18px}.ac-advanced-templates>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 15px;cursor:pointer;list-style:none}.ac-advanced-templates>summary::-webkit-details-marker{display:none}.ac-advanced-templates>summary b,.ac-advanced-templates>summary small{display:block}.ac-advanced-templates>summary b{font-size:11px;color:var(--ink)}.ac-advanced-templates>summary small{font-size:8.5px;color:var(--muted);margin-top:2px}.ac-advanced-templates>summary strong{font-size:9px;color:var(--blue)}.ac-advanced-templates[open]>.ac-template-grid{padding:0 14px 14px}
.ac-wizard{display:flex;flex-direction:column;gap:12px}
.ac-wizard-progress{display:grid;grid-template-columns:auto 1fr auto 1fr auto;align-items:center;gap:7px;max-width:320px;margin:0 auto 2px}.ac-wizard-progress span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#eef2f7;color:#6f7d90;font-size:9px;font-weight:900}.ac-wizard-progress span.done,.ac-wizard-progress span:first-child{background:var(--blue);color:#fff}.ac-wizard-progress i{height:2px;background:#dce4ef;border-radius:999px}
.ac-wizard-summary{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:#f8fbff;border-radius:13px;padding:11px 12px}.ac-wizard-summary b,.ac-wizard-summary small{display:block}.ac-wizard-summary b{font-size:12px;color:var(--ink)}.ac-wizard-summary small{font-size:9px;line-height:1.4;color:var(--muted);margin-top:2px}
.ac-wizard-section{border:1px solid var(--line);border-radius:13px;background:#fff;padding:12px}
.ac-wizard-section>.ac-eyebrow{margin-bottom:9px}
.ac-wizard-info{display:flex;flex-direction:column;gap:3px;padding:10px 11px;border-radius:10px;background:#f6f9fd;border:1px solid #e3eaf3}.ac-wizard-info b{font-size:10px;color:var(--ink)}.ac-wizard-info span{font-size:8.5px;color:var(--muted);line-height:1.45}
.ac-wizard-wait{display:grid;place-items:center;min-height:76px;text-align:center;border:1px dashed #cbd7e6;border-radius:10px;color:var(--muted);font-size:9px;padding:12px}
.ac-wizard-form-preview{margin-top:8px;border:1px solid #dbe7f6;background:#f7fbff;border-radius:10px;padding:9px 10px}.ac-wizard-form-preview b,.ac-wizard-form-preview span{display:block}.ac-wizard-form-preview b{font-size:9.5px;color:var(--ink)}.ac-wizard-form-preview span{font-size:8px;color:var(--muted);margin-top:3px;line-height:1.45}
.ac-wizard-review{border:1px solid #cde3d6;background:#f3fbf6;border-radius:12px;padding:11px 12px}.ac-wizard-review>b{font-size:10px;color:#246b4b}.ac-wizard-review ol{display:flex;align-items:center;gap:5px;flex-wrap:wrap;list-style:none;padding:0;margin:8px 0 0}.ac-wizard-review li{font-size:8px;font-weight:800;color:#426257;background:#fff;border:1px solid #dcebe2;border-radius:999px;padding:5px 7px}.ac-wizard-review li:not(:last-child):after{content:" →";color:#8aa59a}
.ac-wizard-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.ac-wizard-checks label{display:flex;align-items:flex-start;gap:7px;border:1px solid var(--line);border-radius:9px;padding:8px;background:#fbfcfe;cursor:pointer}.ac-wizard-checks input{margin-top:2px}.ac-wizard-checks b,.ac-wizard-checks small{display:block}.ac-wizard-checks b{font-size:9px;color:var(--ink)}.ac-wizard-checks small{font-size:7.5px;color:var(--muted);margin-top:2px}
html[data-theme="dark"] .ac-wizard-section,html[data-theme="dark"] .ac-wizard-checks label{background:#141f31}
html[data-theme="dark"] .ac-wizard-summary,html[data-theme="dark"] .ac-wizard-info{background:#152033}
@media(max-width:700px){.ac-wizard-checks{grid-template-columns:1fr}.ac-wizard-progress{max-width:100%}.ac-advanced-templates>summary{align-items:flex-start;flex-direction:column}}


/* UX-first Automation inspector — isolated from global login .field styles */
.automation-page-full .ac-easy-grid{
  grid-template-columns:minmax(0,1fr) 430px!important;
  gap:16px!important;
}
.automation-page-full .ac-easy-inspector{
  padding:18px!important;
  overflow:visible!important;
  border-radius:17px!important;
}
.automation-page-full .ac-inspector .field{
  height:auto!important;
  min-height:0!important;
  display:block!important;
  align-items:initial!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.automation-page-full .ac-inspector .field:focus-within{
  border:0!important;
  box-shadow:none!important;
}
.ac-setup-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.ac-setup-question{
  display:block;
  height:auto;
  min-width:0;
  padding:14px;
  border:1px solid #e3e9f1;
  border-radius:14px;
  background:#fff;
}
.ac-setup-question-simple{
  display:block;
}
.ac-question-head{
  display:block;
  margin:0 0 10px;
}
.ac-question-head>div{
  min-width:0;
}
.ac-question-head label{
  display:block!important;
  margin:0!important;
  color:var(--ink)!important;
  font-size:12px!important;
  font-weight:850!important;
  line-height:1.35!important;
}
.ac-question-help{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:9px;
  line-height:1.45;
}
.ac-question-control{
  display:block;
  width:100%;
  min-width:0;
}
.ac-question-control input,
.ac-question-control select,
.ac-question-control textarea,
.ac-more-options-body input{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  border:1px solid #cfd9e6!important;
  border-radius:10px!important;
  background:#fff!important;
  color:var(--ink)!important;
  outline:0!important;
  font-size:11px!important;
  line-height:1.45!important;
  padding:10px 11px!important;
}
.ac-question-control input,
.ac-question-control select,
.ac-more-options-body input{
  min-height:42px!important;
}
.ac-question-control textarea{
  min-height:108px!important;
  resize:vertical!important;
}
.ac-question-control input:focus,
.ac-question-control select:focus,
.ac-question-control textarea:focus,
.ac-more-options-body input:focus{
  border-color:#6e9fe3!important;
  box-shadow:0 0 0 3px rgba(52,120,229,.08)!important;
}
.ac-form-data-compact{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  padding:11px 12px!important;
  margin:0 0 14px!important;
  border:1px solid #cfe0f5!important;
  border-radius:12px!important;
  background:#f6faff!important;
}
.ac-form-data-compact>div{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}
.ac-form-data-compact>div>div{
  min-width:0;
}
.ac-form-data-compact b,
.ac-form-data-compact small{
  display:block;
}
.ac-form-data-compact b{
  color:var(--ink);
  font-size:10px;
  line-height:1.3;
}
.ac-form-data-compact small{
  margin-top:2px;
  color:var(--muted);
  font-size:8.5px;
  line-height:1.35;
  white-space:normal;
}
.ac-form-connected-dot{
  width:10px;
  height:10px;
  flex:none;
  border-radius:50%;
  background:#1eaa72;
  box-shadow:0 0 0 4px rgba(30,170,114,.12);
}
.ac-source-toggle{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5px;
  margin-bottom:10px;
  padding:4px;
  border:1px solid #e2e8f0;
  border-radius:11px;
  background:#f4f7fa;
}
.ac-source-mode{
  min-height:34px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#66758b;
  font-size:9px;
  font-weight:850;
  cursor:pointer;
  padding:7px 8px;
}
.ac-source-mode.active{
  background:#fff;
  color:var(--blue);
  box-shadow:0 2px 8px rgba(28,54,92,.09);
}
.ac-form-source-pane,
.ac-custom-source-pane{
  min-width:0;
}
.ac-setup-question[data-source-mode="earlier"] .ac-custom-source-pane{
  display:none;
}
.ac-setup-question[data-source-mode="custom"] .ac-form-source-pane{
  display:none;
}
.ac-form-source-pane{
  padding:11px;
  border:1px solid #dbe7f6;
  border-radius:11px;
  background:#f8fbff;
}
.ac-form-source-label{
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:8px;
  min-width:0;
}
.ac-form-source-label span{
  color:var(--muted);
  font-size:8px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.ac-form-source-label b{
  min-width:0;
  color:var(--ink);
  font-size:9.5px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ac-map-select{
  width:100%!important;
  min-height:42px!important;
  box-sizing:border-box!important;
  border:1px solid #c9d8ea!important;
  border-radius:10px!important;
  background:#fff!important;
  color:var(--ink)!important;
  padding:9px 10px!important;
  font-size:10px!important;
  outline:0!important;
}
.ac-map-select:focus{
  border-color:#6e9fe3!important;
  box-shadow:0 0 0 3px rgba(52,120,229,.08)!important;
}
.ac-map-result{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:7px;
  margin-top:9px;
  padding:8px 9px;
  border-radius:9px;
  background:#fff;
  border:1px solid #e4ebf4;
  color:var(--muted);
  font-size:8.5px;
}
.ac-map-result-source,
.ac-map-result strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ac-map-result-source{
  color:#435a75;
  font-weight:800;
}
.ac-map-result strong{
  color:var(--ink);
  text-align:right;
}
.ac-map-result-arrow{
  color:var(--blue);
  font-weight:900;
}
.ac-map-result.muted{
  display:block;
  text-align:center;
}
.ac-custom-source-pane{
  padding-top:2px;
}
.ac-insert-source{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:6px!important;
  margin-top:9px!important;
  padding-top:9px;
  border-top:1px solid #edf1f6;
}
.ac-insert-source>span{
  color:var(--muted)!important;
  font-size:8.5px!important;
  line-height:1.4;
  white-space:normal!important;
}
.ac-insert-source select{
  width:100%!important;
  min-height:38px!important;
  box-sizing:border-box!important;
  border:1px solid #d4deea!important;
  border-radius:9px!important;
  background:#fff!important;
  color:var(--ink)!important;
  padding:8px 9px!important;
  font-size:9px!important;
}
.ac-inspector-actions{
  position:sticky;
  bottom:0;
  z-index:3;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px!important;
  margin:15px -4px 0!important;
  padding:12px 4px 4px;
  background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 20%);
}
.ac-inspector-actions .small-btn{
  justify-content:center;
}
.ac-more-options{
  margin-top:10px!important;
}
.ac-more-options>summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:38px;
  cursor:pointer;
  color:#66758b!important;
  font-size:9px!important;
  font-weight:850!important;
}
.ac-more-options>summary:after{
  content:"Show";
  color:var(--blue);
  font-size:8px;
}
.ac-more-options[open]>summary:after{
  content:"Hide";
}
.ac-more-options-body{
  padding:8px 0 2px;
}
.ac-more-options-body .ac-setup-question{
  margin:0;
  background:#f8fafc;
}
.ac-connection-details{
  margin-top:8px!important;
}
html[data-theme="dark"] .ac-setup-question,
html[data-theme="dark"] .ac-source-mode.active,
html[data-theme="dark"] .ac-map-result,
html[data-theme="dark"] .ac-question-control input,
html[data-theme="dark"] .ac-question-control select,
html[data-theme="dark"] .ac-question-control textarea,
html[data-theme="dark"] .ac-more-options-body input,
html[data-theme="dark"] .ac-map-select,
html[data-theme="dark"] .ac-insert-source select{
  background:#141f31!important;
}
html[data-theme="dark"] .ac-source-toggle,
html[data-theme="dark"] .ac-form-source-pane,
html[data-theme="dark"] .ac-form-data-compact{
  background:#152033!important;
}
html[data-theme="dark"] .ac-inspector-actions{
  background:linear-gradient(to bottom,rgba(20,31,49,0),#141f31 20%);
}
@media(max-width:1280px){
  .automation-page-full .ac-easy-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
  .automation-page-full .ac-easy-inspector{
    position:static!important;
  }
}
@media(max-width:700px){
  .ac-source-toggle{
    grid-template-columns:1fr;
  }
  .ac-map-result{
    grid-template-columns:1fr;
    text-align:left;
  }
  .ac-map-result strong{
    text-align:left;
  }
  .ac-map-result-arrow{
    transform:rotate(90deg);
    justify-self:start;
  }
}


/* Automation scroll ownership — desktop workspace, normal mobile page */
.automation-page-full{
  overflow-x:hidden;
}
@media(min-width:1281px){
  .automation-page-full .ac-editor-head{
    position:sticky!important;
    top:78px!important;
    z-index:14!important;
    margin-bottom:12px!important;
    background:var(--card)!important;
    box-shadow:0 8px 24px rgba(24,54,92,.08)!important;
  }

  .automation-page-full .ac-easy-grid{
    align-items:stretch!important;
  }

  .automation-page-full .ac-easy-flow-card,
  .automation-page-full .ac-easy-inspector{
    height:calc(100vh - 198px)!important;
    min-height:540px!important;
    max-height:780px!important;
  }

  .automation-page-full .ac-easy-flow-card{
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:#d8e2ee transparent;
  }

  .automation-page-full .ac-easy-flow-card .ac-easy-head{
    position:sticky;
    top:-18px;
    z-index:6;
    margin:-18px -18px 12px;
    padding:18px 18px 14px;
    background:var(--card);
    box-shadow:0 5px 14px rgba(24,54,92,.045);
  }

  .automation-page-full .ac-easy-inspector{
    position:sticky!important;
    top:176px!important;
    padding:0!important;
    overflow:hidden!important;
    align-self:start!important;
  }

  .automation-page-full .ac-inspector-shell{
    display:grid;
    grid-template-rows:auto minmax(0,1fr) auto;
    width:100%;
    height:100%;
    min-height:0;
  }

  .automation-page-full .ac-inspector-fixed-head{
    position:relative;
    z-index:4;
    padding:18px 18px 0;
    background:var(--card);
  }

  .automation-page-full .ac-inspector-scroll{
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    padding:0 18px 16px;
    scrollbar-width:thin;
    scrollbar-color:#d8e2ee transparent;
  }

  .automation-page-full .ac-inspector-fixed-foot{
    position:relative!important;
    bottom:auto!important;
    z-index:5!important;
    margin:0!important;
    padding:12px 18px 16px!important;
    border-top:1px solid var(--line);
    background:var(--card)!important;
    box-shadow:0 -8px 20px rgba(24,54,92,.055);
  }

  .automation-page-full .ac-easy-flow-card::-webkit-scrollbar,
  .automation-page-full .ac-inspector-scroll::-webkit-scrollbar{
    width:8px;
  }
  .automation-page-full .ac-easy-flow-card::-webkit-scrollbar-track,
  .automation-page-full .ac-inspector-scroll::-webkit-scrollbar-track{
    background:transparent;
  }
  .automation-page-full .ac-easy-flow-card::-webkit-scrollbar-thumb,
  .automation-page-full .ac-inspector-scroll::-webkit-scrollbar-thumb{
    background:#d8e2ee;
    border:2px solid #fff;
    border-radius:999px;
  }
}

/* Below desktop width, avoid nested scroll areas: the document scrolls normally. */
@media(max-width:1280px){
  .automation-page-full .ac-editor-head{
    position:static!important;
  }
  .automation-page-full .ac-easy-flow-card,
  .automation-page-full .ac-easy-inspector{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
  .automation-page-full .ac-easy-flow-card .ac-easy-head{
    position:static!important;
    margin:0!important;
    padding:0 0 14px!important;
    box-shadow:none!important;
  }
  .automation-page-full .ac-inspector-shell{
    display:block;
    height:auto;
  }
  .automation-page-full .ac-inspector-fixed-head,
  .automation-page-full .ac-inspector-scroll,
  .automation-page-full .ac-inspector-fixed-foot{
    position:static!important;
    overflow:visible!important;
  }
  .automation-page-full .ac-inspector-fixed-head{
    padding:0;
  }
  .automation-page-full .ac-inspector-scroll{
    padding:0;
  }
  .automation-page-full .ac-inspector-fixed-foot{
    margin:14px 0 0!important;
    padding:12px 0 0!important;
    border-top:1px solid var(--line);
    box-shadow:none!important;
  }
}

html[data-theme="dark"] .automation-page-full .ac-inspector-fixed-head,
html[data-theme="dark"] .automation-page-full .ac-inspector-fixed-foot,
html[data-theme="dark"] .automation-page-full .ac-easy-flow-card .ac-easy-head{
  background:var(--card)!important;
}


/* Step lineage visibility */
.ac-easy-outputs{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin:10px 0 0 48px;
  padding-top:10px;
  border-top:1px solid #edf1f6;
}
.ac-easy-outputs>span{
  flex:none;
  color:var(--muted);
  font-size:8px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.ac-easy-outputs>div{
  display:flex;
  justify-content:flex-end;
  gap:5px;
  flex-wrap:wrap;
}
.ac-easy-outputs b{
  padding:5px 7px;
  border-radius:999px;
  background:#eef7f2;
  border:1px solid #d5eadc;
  color:#287154;
  font-size:8px;
  font-weight:850;
}
.ac-easy-approval-note{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin:10px 0 0 48px;
  padding:9px 10px;
  border:1px solid #ead9ae;
  border-radius:9px;
  background:#fff8e8;
}
.ac-easy-approval-note span{
  flex:none;
  color:#8c641c;
  font-size:8px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.ac-easy-approval-note b{
  color:#73561f;
  font-size:8.5px;
  line-height:1.4;
}
.ac-map-select optgroup{
  color:#516782;
  font-weight:800;
}
html[data-theme="dark"] .ac-easy-outputs b{
  background:#173126;
  border-color:#28513c;
  color:#9bd2b5;
}
html[data-theme="dark"] .ac-easy-approval-note{
  background:#332b19;
  border-color:#60502f;
}
@media(max-width:700px){
  .ac-easy-outputs{
    flex-direction:column;
  }
  .ac-easy-outputs>div{
    justify-content:flex-start;
  }
}
