@charset "utf-8";
/* CSS Document */

div.mainmenu.advanceworkflow {
	background-image: url(../img/object_advanceworkflow.png);
}

#mainmenutd_advanceworkflow .mainmenu::before {display: none;}

/* Visual workflow builder */
.aw-builder-home {
	--aw-primary: #2563eb;
	--aw-primary-dark: #1d4ed8;
	--aw-primary-soft: #eff6ff;
	--aw-text: #172033;
	--aw-muted: #5d6b82;
	--aw-border: #dbe3ef;
	--aw-surface: #fff;
	display: grid;
	gap: 20px;
	max-width: 1180px;
	margin: 0 auto;
	color: var(--aw-text);
}

.aw-builder-intro {
	padding: 8px 4px 4px;
}

.aw-builder-eyebrow {
	display: block;
	margin-bottom: 6px;
	color: var(--aw-primary-dark);
	font-size: 12px;
	font-weight: 750;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.aw-builder-intro h1 {
	margin: 0;
	font-size: clamp(24px, 3vw, 36px);
	line-height: 1.2;
}

.aw-builder-intro p {
	max-width: 720px;
	margin: 10px 0 0;
	color: var(--aw-muted);
	font-size: 16px;
	line-height: 1.6;
}

.aw-create-workflow-card,
.aw-existing-workflows {
	box-sizing: border-box;
	padding: 22px;
	border: 1px solid var(--aw-border);
	border-radius: 14px;
	background: var(--aw-surface);
	box-shadow: 0 8px 28px rgba(15, 23, 42, .06);
}

.aw-create-workflow-card {
	border-top: 4px solid var(--aw-primary);
}

.aw-section-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.aw-section-heading h2 {
	margin: 0;
	font-size: 20px;
	line-height: 1.3;
}

.aw-section-heading p {
	margin: 5px 0 0;
	color: var(--aw-muted);
	line-height: 1.5;
}

.aw-section-heading > a {
	white-space: nowrap;
	font-weight: 600;
}

.aw-step-chip {
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--aw-primary-soft);
	color: var(--aw-primary-dark);
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.aw-create-fields {
	display: grid;
	grid-template-columns: minmax(180px, 240px) minmax(260px, 1fr);
	align-items: center;
	gap: 18px 24px;
}

.aw-create-fields label > span {
	display: block;
	font-weight: 700;
}

.aw-create-fields label > small {
	display: block;
	margin-top: 4px;
	color: var(--aw-muted);
	font-weight: 400;
	line-height: 1.4;
}

.aw-create-fields input,
.aw-create-fields select {
	box-sizing: border-box;
	width: 100%;
	min-height: 46px;
	font-size: 15px;
}

.aw-create-fields input:focus-visible,
.aw-create-fields select:focus-visible,
.aw-create-submit button:focus-visible,
.aw-open-builder:focus-visible {
	outline: 3px solid rgba(37, 99, 235, .35);
	outline-offset: 2px;
}

.aw-create-submit {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--aw-border);
	color: var(--aw-muted);
}

.aw-create-submit .fa-circle-info {
	color: var(--aw-primary);
}

.aw-create-submit button {
	min-height: 44px;
	margin-left: auto !important;
	cursor: pointer;
}

.aw-create-submit button:disabled {
	cursor: wait;
	opacity: .65;
}

.aw-workflow-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.aw-workflow-tools {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: -4px 0 14px;
}

.aw-workflow-tools label {
	position: relative;
	display: block;
	width: min(420px, 100%);
}

.aw-workflow-tools label > .fa {
	position: absolute;
	top: 50%;
	left: 14px;
	z-index: 1;
	color: var(--aw-muted);
	transform: translateY(-50%);
	pointer-events: none;
}

.aw-workflow-tools input {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding-left: 40px;
	font-size: 15px;
}

.aw-result-count {
	flex: 0 0 auto;
	color: var(--aw-muted);
	font-size: 13px;
	font-weight: 650;
}

.aw-workflow-card {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 14px;
	border: 1px solid var(--aw-border);
	border-radius: 10px;
	background: #fff;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.aw-workflow-card:hover {
	border-color: #a9bde2;
	box-shadow: 0 5px 16px rgba(15, 23, 42, .07);
}

.aw-workflow-icon {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border-radius: 10px;
	background: var(--aw-primary-soft);
	color: var(--aw-primary-dark);
}

.aw-workflow-summary {
	min-width: 0;
}

.aw-workflow-summary h3 {
	margin: 0;
	overflow-wrap: anywhere;
	font-size: 15px;
}

.aw-workflow-summary p {
	margin: 5px 0 0;
	color: var(--aw-muted);
	font-size: 12px;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.aw-workflow-summary .aw-workflow-meta {
	color: #475569;
	font-weight: 600;
}

.aw-open-builder {
	min-height: 40px;
	white-space: nowrap;
}

.aw-workflow-empty {
	display: flex;
	min-height: 150px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 8px;
	padding: 24px;
	border: 2px dashed #c3cedf;
	border-radius: 10px;
	background: #f8fafc;
	color: var(--aw-muted);
	text-align: center;
}

.aw-workflow-empty .fa {
	color: var(--aw-primary);
	font-size: 28px;
}

.aw-workflow-empty strong {
	color: var(--aw-text);
	font-size: 16px;
}

.aw-search-empty {
	min-height: 120px;
}

.aw-builder {
	--aw-primary: #2563eb;
	--aw-primary-soft: #eff6ff;
	--aw-text: #172033;
	--aw-muted: #64748b;
	--aw-border: #dbe3ef;
	--aw-surface: #fff;
	--aw-canvas: #f6f8fc;
	--aw-danger: #b91c1c;
	display: grid;
	grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
	gap: 16px;
	min-height: 680px;
	color: var(--aw-text);
}

.aw-palette,
.aw-workspace {
	border: 1px solid var(--aw-border);
	border-radius: 12px;
	background: var(--aw-surface);
	box-shadow: 0 6px 22px rgba(15, 23, 42, .06);
}

.aw-palette {
	padding: 16px;
	overflow: auto;
	max-height: calc(100vh - 180px);
}

.aw-palette-head {
	position: sticky;
	top: -16px;
	z-index: 2;
	padding: 12px 0;
	background: var(--aw-surface);
}

.aw-palette h2,
.aw-action-drawer h2 {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 650;
}

.aw-palette input[type="search"] {
	box-sizing: border-box;
	width: 100%;
	min-height: 42px;
}

.aw-library-group {
	margin-top: 18px;
}

.aw-library-group h3 {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 8px;
	color: var(--aw-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.aw-library-group h3 span {
	min-width: 24px;
	padding: 2px 6px;
	border-radius: 999px;
	background: #eef2f7;
	text-align: center;
}

.aw-palette-item {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr) 16px;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	width: 100%;
	min-height: 46px;
	margin: 7px 0;
	padding: 8px 10px;
	border: 1px solid var(--aw-border);
	border-radius: 8px;
	background: #fff;
	color: var(--aw-text);
	text-align: left;
	cursor: grab;
	transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.aw-palette-item:hover {
	border-color: #93b4f8;
	background: var(--aw-primary-soft);
	box-shadow: 0 3px 10px rgba(37, 99, 235, .09);
}

.aw-palette-item:active { cursor: grabbing; }
.aw-palette-item small { display: block; color: var(--aw-muted); line-height: 1.3; }
.aw-palette-item .aw-grip { color: #94a3b8; }

.aw-create-action-toggle {
	width: 100%;
	margin-top: 20px !important;
}

.aw-workspace {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
}

.aw-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 72px;
	padding: 10px 16px;
	border-bottom: 1px solid var(--aw-border);
}

.aw-toolbar-main {
	display: flex;
	min-width: 210px;
	align-items: center;
	gap: 10px;
}

.aw-toolbar-icon {
	display: grid;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	place-items: center;
	border-radius: 10px;
	background: var(--aw-primary-soft);
	color: #1d4ed8;
	font-size: 18px;
}

.aw-toolbar-main > div:last-child {
	min-width: 0;
}

.aw-toolbar strong { display: block; font-size: 17px; }
.aw-trigger-summary {
	display: block;
	max-width: 300px;
	margin: 3px 0;
	overflow: hidden;
	color: #475569;
	font-size: 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.aw-trigger-summary .fa { color: #d97706; }
#aw-save-state { color: var(--aw-muted); font-size: 12px; }
#aw-save-state.is-dirty { color: #9a6700; font-weight: 600; }
.aw-toolbar-summary {
	display: flex;
	align-items: stretch;
	gap: 8px;
}
.aw-toolbar-summary > span {
	display: flex;
	width: auto;
	min-width: 0;
	flex: 0 1 auto;
	flex-direction: column;
	justify-content: center;
	padding: 7px 10px;
	border: 1px solid var(--aw-border);
	border-radius: 9px;
	background: #f8fafc;
	color: var(--aw-muted);
	font-size: 11px;
	line-height: 1.25;
	white-space: nowrap;
}
.aw-toolbar-summary strong {
	max-width: 220px;
	overflow: hidden;
	color: var(--aw-text);
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}
#aw-start-label {
	font-size: 12px;
	font-weight: 600;
}
.aw-toolbar-actions { display: flex; align-items: center; gap: 8px; }
.aw-toolbar-actions .button { white-space: nowrap; }
.aw-help {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 9px 16px;
	border-bottom: 1px solid var(--aw-border);
	background: #f8fafc;
	color: var(--aw-muted);
	font-size: 13px;
	line-height: 1.45;
}
.aw-help .fa { margin-top: 2px; color: var(--aw-primary); }

.aw-draft-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 16px;
	border-bottom: 1px solid #f3d38a;
	background: #fffbeb;
	color: #713f12;
}

.aw-draft-banner[hidden] { display: none; }
.aw-draft-banner > div { display: flex; align-items: center; gap: 9px; }
.aw-draft-banner > div:first-child > .fa { font-size: 18px; }
.aw-draft-banner strong,
.aw-draft-banner small { display: block; }
.aw-draft-banner small { margin-top: 2px; color: #854d0e; }
.aw-draft-banner .button { min-height: 40px; margin: 0 !important; }

.aw-canvas {
	position: relative;
	flex: 1;
	min-height: 580px;
	overflow: auto;
	background-color: var(--aw-canvas);
	background-image: radial-gradient(circle, #cbd5e1 1px, transparent 1px);
	background-size: 20px 20px;
	outline: none;
	transition: box-shadow 180ms ease, background-color 180ms ease;
}

.aw-canvas:focus-visible,
.aw-canvas.is-drop-target {
	box-shadow: inset 0 0 0 3px var(--aw-primary);
	background-color: #eef5ff;
}

#aw-connectors {
	position: absolute;
	inset: 0;
	width: 5200px;
	height: 5200px;
	overflow: visible;
	pointer-events: none;
}

#aw-connectors path {
	fill: none;
	stroke-width: 2.5;
	stroke-linecap: round;
	opacity: .8;
}

.aw-empty {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	width: min(360px, 80%);
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 28px;
	transform: translate(-50%, -50%);
	border: 2px dashed #b8c5d8;
	border-radius: 12px;
	background: rgba(255, 255, 255, .86);
	color: var(--aw-muted);
	text-align: center;
}

.aw-empty .fa { color: var(--aw-primary); font-size: 30px; }
.aw-empty strong { color: var(--aw-text); font-size: 17px; }

/* Empty canvas ("Build your first automation"): hide the oversized
   connectors layer so it can't force horizontal/vertical scrollbars. */
.aw-canvas.is-empty { overflow: hidden; }
.aw-canvas.is-empty #aw-connectors { display: none; }

.aw-node {
	position: absolute;
	z-index: 1;
	box-sizing: border-box;
	width: 280px;
	border: 1px solid #cbd5e1;
	border-top: 4px solid var(--aw-primary);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, .10);
	transition: box-shadow 160ms ease, border-color 160ms ease;
}

.aw-node-type-0 { border-top-color: #2563eb; }
.aw-node-type-1 { border-top-color: #7c3aed; }
.aw-node-type-2 { border-top-color: #0f766e; }
.aw-node-type-3 { border-top-color: #c2410c; }
.aw-node-type-7 { border-top-color: #16a34a; }
.aw-node:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 2px; }
.aw-node.is-dragging { z-index: 5; box-shadow: 0 16px 36px rgba(15, 23, 42, .20); }

.aw-node-header {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	padding: 12px;
	border-bottom: 1px solid #e8edf4;
	cursor: move;
	touch-action: none;
}
.aw-node-header.aw-node-editable {
	cursor: pointer;
}

.aw-node-header > .fa { color: var(--aw-primary); font-size: 18px; text-align: center; }
.aw-node-header strong,
.aw-node-header small { display: block; overflow-wrap: anywhere; }
.aw-node-header small { margin-top: 2px; color: var(--aw-muted); }
.aw-start-badge { padding: 3px 7px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: 11px; font-weight: 700; }
.aw-node-controls { padding: 10px 12px 12px; }

.aw-step-name {
	display: block;
	margin: 0 0 9px;
	color: var(--aw-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.aw-step-name input {
	box-sizing: border-box;
	width: 100%;
	min-height: 38px;
	margin-top: 5px;
	color: var(--aw-text);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
}

.aw-link-field {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr) 44px;
	align-items: center;
	gap: 7px;
	margin: 6px 0;
	font-size: 12px;
	font-weight: 600;
}

.aw-link-field > label { margin: 0; }
.aw-link-field select { width: 100%; min-width: 0; min-height: 36px; }
.aw-link-handle {
	display: inline-flex;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid #9db6dc;
	border-radius: 9px;
	background: #eff6ff;
	color: #1d4ed8;
	cursor: crosshair;
	touch-action: none;
	transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.aw-link-handle:hover {
	border-color: #2563eb;
	background: #dbeafe;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.aw-link-handle-true_next {
	border-color: #86c99a;
	background: #ecfdf3;
	color: #166534;
}

.aw-link-handle-false_next {
	border-color: #e8a5a5;
	background: #fff1f2;
	color: #991b1b;
}

.aw-link-handle:disabled {
	cursor: not-allowed;
	opacity: .45;
}

.aw-canvas.is-linking {
	cursor: crosshair;
	user-select: none;
}

.aw-node.is-link-candidate {
	border-style: dashed;
	border-color: #7da5df;
}

.aw-node.is-link-candidate::before {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: -8px;
	width: 14px;
	height: 14px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #2563eb;
	box-shadow: 0 0 0 2px #2563eb;
	content: "";
	transform: translateY(-50%);
}

.aw-node.is-link-target {
	border-style: solid;
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, .20), 0 14px 32px rgba(15, 23, 42, .16);
}

.aw-node.is-link-source {
	opacity: .72;
}

#aw-connectors path.aw-link-preview {
	stroke-width: 3;
	stroke-dasharray: 8 7;
	opacity: 1;
}

.aw-node-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 10px; }
.aw-node-actions button,
.aw-drawer-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--aw-border);
	border-radius: 7px;
	background: #fff;
	color: #475569;
	cursor: pointer;
}

.aw-node-actions button:hover { background: #f1f5f9; color: var(--aw-primary); }
.aw-node-actions .aw-remove-node { margin-left: auto; color: var(--aw-danger); }
.aw-node-actions button:disabled { cursor: not-allowed; opacity: .45; }

.aw-drawer-open {
	overflow: hidden;
}

.aw-drawer-scrim {
	position: fixed;
	z-index: 1000;
	inset: 0;
	background: rgba(15, 23, 42, .52);
}

.aw-action-drawer {
	position: fixed;
	z-index: 1001;
	top: 0;
	right: 0;
	box-sizing: border-box;
	width: min(390px, 100vw);
	height: 100dvh;
	padding: 24px 32px;
	overflow: auto;
	border-left: 1px solid var(--aw-border);
	background: #fff;
	box-shadow: -16px 0 46px rgba(15, 23, 42, .18);
}

.aw-action-drawer [hidden] { display: none !important; }
.aw-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.aw-drawer-head h2 { margin: 2px 0 0; }
.aw-drawer-eyebrow {
	color: var(--aw-primary);
	font-size: 11px;
	font-weight: 750;
	letter-spacing: .07em;
	text-transform: uppercase;
}
.aw-drawer-intro,
.aw-panel-help { color: var(--aw-muted); line-height: 1.5; }
.aw-drawer-intro { margin: 12px 0 18px; }
.aw-panel-help { margin: 0 0 12px; }

.aw-action-type-tabs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 8px;
	margin-bottom: 18px;
}

.aw-action-type-tabs button {
	display: flex;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 8px;
	border: 1px solid var(--aw-border);
	border-radius: 8px;
	background: #fff;
	color: #475569;
	font-weight: 650;
	cursor: pointer;
	transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.aw-action-type-tabs button:hover { border-color: #93b4f8; background: var(--aw-primary-soft); }
.aw-action-type-tabs button[aria-selected="true"] {
	border-color: var(--aw-primary);
	background: var(--aw-primary-soft);
	color: #1d4ed8;
}

.aw-action-label {
	padding: 14px;
	border: 1px solid var(--aw-border);
	border-radius: 9px;
	background: #f8fafc;
}

.aw-action-panel {
	margin-top: 18px;
	padding-top: 18px;
	/*border-top: 1px solid var(--aw-border);*/
}

.aw-action-drawer label { display: block; margin: 16px 0; font-weight: 600; position: relative; }
.aw-action-drawer input,
.aw-action-drawer select,
.aw-action-drawer textarea { box-sizing: border-box; width: 100%; min-height: 44px; margin-top: 6px; }
.aw-action-drawer textarea { resize: vertical; }
.aw-action-drawer small { display: block; margin-top: 6px; color: var(--aw-muted); font-weight: 400; }

.aw-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 14px;
}

.aw-form-grid .aw-full-row { grid-column: 1 / -1; }

/* Compact the From/To Email fields (and the rest of this address grid): the
   inherited 16px label margin + bold weight reads as oversized next to the
   select2 boxes above. */
.aw-form-grid label {
	margin: 8px 0;
	font-size: 12.5px;
	font-weight: 650;
}

.aw-attachments-list { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; }
.aw-attachment-row { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; font-weight: 400; }
.aw-attachment-row input { width: auto; min-height: 0; margin: 0; }
.aw-attachment-row small { margin: 0 0 0 auto; }

.aw-checkbox-field {
	display: flex !important;
	align-items: flex-start;
	gap: 10px;
	padding: 12px;
	border: 1px solid var(--aw-border);
	border-radius: 8px;
	background: #f8fafc;
	cursor: pointer;
}

.aw-checkbox-field input {
	width: 18px;
	height: 18px;
	min-height: 0;
	margin: 2px 0 0;
}

.aw-checkbox-field strong,
.aw-checkbox-field small { display: block; }

.aw-php-library-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 18px;
	padding: 12px;
	border-radius: 8px;
	background: #f0fdfa;
	color: #115e59;
}

.aw-php-library-note > .fa { margin-top: 2px; }
.aw-php-library-note strong,
.aw-php-library-note small { display: block; }
.aw-php-library-note small { margin-top: 4px; color: #476a67; }

/* Raw-PHP action: danger banner + worked example */
.aw-php-danger {
	margin-top: 0;
	margin-bottom: 12px;
	background: #fef2f2;
	color: #991b1b;
}
.aw-php-danger small { color: #b45454; }
.aw-php-example {
	margin: 4px 0 12px;
	padding: 12px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #f8fafc;
}
.aw-php-example strong { display: block; margin-bottom: 6px; color: #0f172a; }
.aw-php-example pre {
	margin: 0 0 6px;
	padding: 10px;
	overflow-x: auto;
	border-radius: 6px;
	background: #0f172a;
	color: #e2e8f0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px;
	line-height: 1.5;
	white-space: pre;
}
.aw-php-example small { display: block; color: var(--aw-muted); line-height: 1.5; }
#aw-php-code {
	width: 100%;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 13px;
	line-height: 1.5;
	tab-size: 4;
}

.aw-action-feedback {
	min-height: 22px;
	margin-top: 14px;
	color: var(--aw-danger);
	font-weight: 600;
	line-height: 1.45;
}

.aw-drawer-footer {
	position: sticky;
	bottom: -24px;
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin: 6px -32px -24px;
	padding: 16px 32px;
	border-top: 1px solid var(--aw-border);
	background: rgba(255, 255, 255, .96);
}

.aw-drawer-footer .button { min-height: 44px; }
.aw-drawer-footer button:disabled { cursor: wait; opacity: .55; }

.aw-palette-item:focus-visible,
.aw-link-handle:focus-visible,
.aw-node-actions button:focus-visible,
.aw-drawer-close:focus-visible,
.aw-action-type-tabs button:focus-visible,
.aw-action-drawer input:focus-visible,
.aw-action-drawer select:focus-visible,
.aw-action-drawer textarea:focus-visible {
	outline: 3px solid rgba(37, 99, 235, .35);
	outline-offset: 2px;
}

@media (max-width: 800px) {
	.aw-create-workflow-card,
	.aw-existing-workflows { padding: 16px; }
	.aw-section-heading { flex-wrap: wrap; }
	.aw-create-fields { grid-template-columns: 1fr; gap: 8px; }
	.aw-create-fields select { margin-bottom: 8px; }
	.aw-create-submit { align-items: flex-start; flex-wrap: wrap; }
	.aw-create-submit button { width: 100%; margin: 10px 0 0 !important; }
	.aw-workflow-grid { grid-template-columns: 1fr; }
	.aw-workflow-tools { align-items: stretch; flex-direction: column; }
	.aw-workflow-tools label { width: 100%; }
	.aw-workflow-card { grid-template-columns: 44px minmax(0, 1fr); }
	.aw-open-builder { grid-column: 1 / -1; justify-content: center; width: 100%; }
	.aw-builder { display: block; }
	.aw-palette { max-height: none; margin-bottom: 14px; }
	.aw-workspace { min-height: 580px; }
	.aw-toolbar { align-items: flex-start; flex-direction: column; padding: 12px; }
	.aw-toolbar-main { width: 100%; }
	.aw-trigger-summary { max-width: calc(100vw - 120px); }
	.aw-toolbar-summary { width: 100%; }
	.aw-toolbar-summary > span { flex: 1; }
	.aw-toolbar-actions { width: 100%; }
	.aw-toolbar-actions .button { flex: 1; min-height: 44px; }
	.aw-draft-banner { align-items: stretch; flex-direction: column; }
	.aw-draft-banner > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
	.aw-canvas { display: flex; min-height: 460px; flex-direction: column; gap: 12px; padding: 16px; }
	.aw-node { position: relative; width: 100%; transform: none !important; }
	.aw-node-header { cursor: default; }
	#aw-connectors { display: none; }
	.aw-canvas.is-linking #aw-connectors { display: block; }
	.aw-empty { position: relative; top: auto; left: auto; margin: auto; transform: none; }
	.aw-action-drawer { padding: 18px; }
	.aw-action-type-tabs { grid-template-columns: 1fr; }
	.aw-form-grid { grid-template-columns: 1fr; }
	.aw-drawer-footer { bottom: -18px; margin: 6px -18px -18px; padding: 14px 18px; }
	.aw-drawer-footer .button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.aw-builder-home *,
	.aw-builder-home *::before,
	.aw-builder-home *::after,
	.aw-builder *,
	.aw-builder *::before,
	.aw-builder *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* 2026 visual refinement: compact enterprise hierarchy that remains theme-safe. */
.aw-builder-home,
.aw-builder-page-head,
.aw-builder {
	--aw-primary: #2563eb;
	--aw-primary-dark: #1d4ed8;
	--aw-primary-hover: #1e40af;
	--aw-primary-soft: #eff6ff;
	--aw-text: #0f172a;
	--aw-muted: #52627a;
	--aw-border: #d8e2f0;
	--aw-border-strong: #bdcbe0;
	--aw-surface: #fff;
	--aw-surface-soft: #f7f9fc;
	--aw-canvas: #f4f7fb;
	--aw-danger: #b91c1c;
	font-family: inherit;
}

.aw-builder-home [hidden],
.aw-builder [hidden] {
	display: none !important;
}

.aw-builder-home {
	gap: 24px;
	max-width: 1240px;
}

.aw-builder-intro {
	padding: 4px 2px 0;
}

.aw-builder-intro h1 {
	max-width: 780px;
	font-size: clamp(26px, 2.5vw, 34px);
	letter-spacing: -.025em;
}

.aw-builder-intro p {
	max-width: 680px;
	margin-top: 8px;
	font-size: 15px;
	line-height: 1.55;
}

.aw-home-grid {
	display: grid;
	grid-template-columns: minmax(360px, .9fr) minmax(0, 1.1fr);
	align-items: start;
	gap: 20px;
}

.aw-home-grid-single {
	grid-template-columns: 1fr;
}

.aw-create-workflow-card,
.aw-existing-workflows {
	padding: 24px;
	border-color: var(--aw-border);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(30, 64, 175, .055);
}

.aw-create-workflow-card {
	border-top: 1px solid var(--aw-border);
}

.aw-create-workflow-card::before {
	display: block;
	width: 44px;
	height: 4px;
	margin: -25px 0 20px;
	border-radius: 0 0 999px 999px;
	background: var(--aw-primary);
	content: "";
}

.aw-section-heading {
	margin-bottom: 22px;
}

.aw-section-heading h2 {
	color: var(--aw-text);
	font-size: 19px;
	letter-spacing: -.015em;
}

.aw-section-heading p {
	font-size: 14px;
}

.aw-section-heading > a {
	display: inline-flex;
	min-height: 36px;
	align-items: center;
	padding: 0 10px;
	border-radius: 8px;
	color: var(--aw-primary-dark);
	text-decoration: none;
}

.aw-section-heading > a:hover {
	background: var(--aw-primary-soft);
}

.aw-create-fields {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

.aw-create-fields label {
	display: flex;
	min-width: 0;
	flex-direction: column;
	color: var(--aw-text);
}

.aw-create-fields label > span {
	font-size: 14px;
}

.aw-create-fields label > span b {
	color: var(--aw-danger);
}

.aw-create-fields label > small {
	order: 3;
	margin-top: 7px;
	font-size: 12px;
}

.aw-create-fields input,
.aw-create-fields select,
.aw-workflow-tools input {
	box-sizing: border-box;
	width: 100%;
	min-height: 46px;
	margin-top: 8px;
	padding: 10px 13px;
	border: 1px solid #c7d3e3 !important;
	border-radius: 10px !important;
	background-color: #fff !important;
	background-image: none !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .035) !important;
	color: var(--aw-text) !important;
	font-size: 14px;
}

.aw-create-fields input:hover,
.aw-create-fields select:hover,
.aw-workflow-tools input:hover {
	border-color: #9fb1c9 !important;
}

.aw-create-fields input:focus,
.aw-create-fields select:focus,
.aw-workflow-tools input:focus {
	border-color: var(--aw-primary) !important;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .13) !important;
	outline: none;
}

.aw-create-submit {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin-top: 22px;
	padding-top: 18px;
}

.aw-submit-note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	line-height: 1.45;
}

.aw-submit-note .fa {
	margin-top: 2px;
	color: var(--aw-primary);
}

.aw-create-submit button {
	width: 100%;
	margin: 0 !important;
}

.aw-workflow-tools {
	align-items: center;
	margin: -2px 0 16px;
}

.aw-workflow-tools label {
	width: min(360px, 100%);
}

.aw-workflow-tools input {
	margin-top: 0;
	padding-left: 42px;
}

.aw-result-count {
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--aw-surface-soft);
	color: #475569;
	font-size: 12px;
}

.aw-workflow-grid {
	grid-template-columns: 1fr;
	gap: 10px;
}

.aw-workflow-card {
	grid-template-columns: 44px minmax(0, 1fr) auto;
	gap: 13px;
	padding: 14px;
	border-color: var(--aw-border);
	border-radius: 12px;
	box-shadow: none;
}

.aw-workflow-card:hover {
	border-color: #9db5dc;
	box-shadow: 0 7px 20px rgba(30, 64, 175, .08);
}

.aw-workflow-summary h3 {
	font-size: 15px;
	line-height: 1.35;
}

.aw-workflow-summary p {
	margin-top: 4px;
}

.aw-workflow-empty {
	min-height: 190px;
	border-color: var(--aw-border-strong);
	border-radius: 12px;
	background: var(--aw-surface-soft);
}

.aw-search-empty {
	margin-top: 12px;
}

.aw-builder-page-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin: 2px 0 16px;
	padding: 2px 2px 0;
	color: var(--aw-text);
}

.aw-builder-page-head h1 {
	margin: 2px 0 0;
	font-size: clamp(24px, 2.3vw, 31px);
	line-height: 1.2;
	letter-spacing: -.025em;
}

.aw-builder-page-head p {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 7px 0 0;
	color: var(--aw-muted);
	font-size: 13px;
}

.aw-builder-page-head p .fa {
	color: #b45309;
}

.aw-builder-home .button,
.aw-builder-page-head .button,
.aw-builder .button {
	display: inline-flex !important;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	gap: 7px;
	box-sizing: border-box;
	padding: 9px 14px !important;
	border: 1px solid #b9c7d9 !important;
	border-radius: 9px !important;
	background: #fff !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #334155 !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1.2;
	text-decoration: none !important;
	text-transform: none !important;
	cursor: pointer;
	transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.aw-builder-home .button:hover,
.aw-builder-page-head .button:hover,
.aw-builder .button:hover {
	border-color: #8fa6c5 !important;
	background: #f8fafc !important;
	color: var(--aw-primary-dark) !important;
}

.aw-builder-home .button.button-save,
.aw-builder .button.button-save,
.aw-builder-home .aw-open-builder {
	border-color: var(--aw-primary) !important;
	background: var(--aw-primary) !important;
	color: #fff !important;
}

.aw-builder-home .button.button-save:hover,
.aw-builder .button.button-save:hover,
.aw-builder-home .aw-open-builder:hover {
	border-color: var(--aw-primary-hover) !important;
	background: var(--aw-primary-hover) !important;
	color: #fff !important;
	box-shadow: 0 6px 16px rgba(37, 99, 235, .19) !important;
}

.aw-builder-home .button:focus-visible,
.aw-builder-page-head .button:focus-visible,
.aw-builder .button:focus-visible {
	outline: 3px solid rgba(37, 99, 235, .28) !important;
	outline-offset: 2px;
}

.aw-builder {
	grid-template-columns: minmax(250px, 280px) minmax(0, 1fr);
	gap: 14px;
	min-height: calc(100dvh - 210px);
}

.aw-palette,
.aw-workspace {
	border-color: var(--aw-border);
	border-radius: 14px;
	box-shadow: 0 9px 26px rgba(15, 23, 42, .055);
}

.aw-palette {
	max-height: calc(100dvh - 210px);
	padding: 0;
}

.aw-palette-head {
	top: 0;
	padding: 18px 16px 14px;
	border-bottom: 1px solid #e7edf5;
	border-radius: 14px 14px 0 0;
}

.aw-palette-title {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
}

.aw-palette-title > .fa {
	display: inline-flex !important;
	width: 36px;
	height: 36px;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	place-items: center;
	padding: 0 !important;
	border-radius: 10px;
	background: var(--aw-primary-soft);
	color: var(--aw-primary-dark);
	line-height: 1 !important;
	text-align: center;
}

.aw-palette-title > .fa::before {
	display: block;
	margin: 0;
	line-height: 1;
}

.aw-palette h2 {
	margin: 0;
	color: var(--aw-text);
	font-size: 17px;
	letter-spacing: -.01em;
}

.aw-palette-title p {
	margin: 3px 0 0;
	color: var(--aw-muted);
	font-size: 12px;
	line-height: 1.35;
}

.aw-create-action-toggle {
	width: 100%;
	margin: 14px 0 12px !important;
}

.aw-palette-search {
	position: relative;
	display: block;
}

.aw-palette-search > .fa {
	position: absolute;
	top: 50%;
	left: 13px;
	z-index: 1;
	color: #64748b;
	transform: translateY(-50%);
	pointer-events: none;
}

.aw-palette input[type="search"] {
	min-height: 42px;
	padding: 9px 12px 9px 38px;
	border: 1px solid #c7d3e3 !important;
	border-radius: 9px !important;
	background: #fff !important;
	box-shadow: none !important;
	font-size: 13px;
}

.aw-palette input[type="search"]:focus {
	border-color: var(--aw-primary) !important;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .12) !important;
	outline: none;
}

.aw-library-group {
	margin: 18px 16px 0;
}

.aw-library-group:last-of-type {
	margin-bottom: 16px;
}

.aw-library-group h3 {
	margin-bottom: 9px;
	color: #53657f;
	font-size: 11px;
	letter-spacing: .065em;
}

.aw-library-group h3 span {
	background: #edf2f8;
	color: #475569;
}

.aw-palette-item {
	min-height: 50px;
	margin: 8px 0;
	padding: 9px 10px;
	border-color: #d4deeb;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
}

.aw-palette-item:hover {
	border-color: #8dadde;
	background: #f5f9ff;
	box-shadow: 0 5px 14px rgba(37, 99, 235, .08);
}

.aw-palette-item > .fa:first-child {
	color: var(--aw-primary-dark);
}

.aw-palette-item small {
	margin-top: 2px;
	font-size: 11px;
}

.aw-palette-empty {
	display: flex;
	min-height: 150px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 7px;
	margin: 16px;
	padding: 18px;
	border: 1px dashed var(--aw-border-strong);
	border-radius: 10px;
	background: var(--aw-surface-soft);
	color: var(--aw-muted);
	text-align: center;
}

.aw-palette-empty .fa {
	color: var(--aw-primary);
	font-size: 20px;
}

.aw-palette-empty strong {
	color: var(--aw-text);
}

.aw-workspace {
	min-width: 0;
	min-height: calc(100dvh - 210px);
}

.aw-toolbar {
	display: grid;
	grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
	align-items: center;
	min-height: 74px;
	gap: 14px;
	padding: 12px 16px;
	overflow: hidden;
}

.aw-toolbar-main {
	min-width: 0;
}

.aw-toolbar-icon {
	width: 42px;
	height: 42px;
	flex-basis: 42px;
	border-radius: 12px;
}

.aw-toolbar strong {
	font-size: 14px;
}

#aw-save-state {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 4px;
	color: #15803d;
	font-size: 12px;
}

#aw-save-state.is-dirty {
	color: #a16207;
}

#aw-save-state.is-saving {
	color: #1d4ed8;
}

.aw-toolbar-summary {
	min-width: 0;
	gap: 7px;
}

.aw-toolbar-summary > span {
	flex: 0 1 auto;
	width: auto;
	min-width: 0;
	padding: 7px 10px;
	border-color: #dce5f0;
	border-radius: 9px;
	background: var(--aw-surface-soft);
}

.aw-toolbar-actions {
	display: flex;
	min-width: 0;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.aw-toolbar-actions .button {
	min-height: 42px;
	margin: 0 !important;
	white-space: nowrap;
}

.aw-help {
	align-items: center;
	padding: 9px 16px;
	background: #f8faff;
	font-size: 12px;
}

.aw-help .fa {
	margin-top: 0;
}

.aw-canvas {
	min-height: 590px;
	background-color: var(--aw-canvas);
	background-image: radial-gradient(circle, #c3d0e2 1px, transparent 1px);
	background-size: 22px 22px;
}

.aw-empty {
	width: min(440px, calc(100% - 48px));
	gap: 11px;
	box-sizing: border-box;
	padding: 34px;
	border: 1px solid #c6d4e7;
	border-radius: 16px;
	background: rgba(255, 255, 255, .95);
	box-shadow: 0 16px 38px rgba(30, 64, 175, .08);
}

.aw-empty-icon {
	display: grid;
	width: 56px;
	height: 56px;
	place-items: center;
	margin-bottom: 2px;
	border-radius: 15px;
	background: var(--aw-primary-soft);
	color: var(--aw-primary);
	font-size: 24px;
}

.aw-empty > .fa {
	display: none;
}

.aw-empty strong {
	font-size: 19px;
	letter-spacing: -.01em;
}

.aw-empty > span:not(.aw-empty-icon) {
	max-width: 350px;
	font-size: 14px;
	line-height: 1.5;
}

.aw-empty-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 9px;
	margin-top: 8px;
}

.aw-empty-actions .button {
	min-height: 44px;
	margin: 0 !important;
}

.aw-empty > small {
	max-width: 330px;
	color: #6b7b92;
	font-size: 11px;
	line-height: 1.45;
}

.aw-node {
	width: 292px;
	border-color: #c7d3e3;
	border-radius: 13px;
	box-shadow: 0 10px 27px rgba(15, 23, 42, .105);
}

.aw-node-header {
	padding: 13px;
	border-bottom-color: #e4eaf2;
}

.aw-action-drawer {
	border-left-color: var(--aw-border);
}

.aw-action-drawer input,
.aw-action-drawer select,
.aw-action-drawer textarea {
	padding: 9px 11px;
	border: 1px solid #c7d3e3 !important;
	border-radius: 9px !important;
	background: #fff !important;
	box-shadow: none !important;
}

.aw-action-drawer input:focus,
.aw-action-drawer select:focus,
.aw-action-drawer textarea:focus {
	border-color: var(--aw-primary) !important;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .12) !important;
	outline: none;
}

@media (max-width: 1100px) {
	.aw-home-grid {
		grid-template-columns: 1fr;
	}

	.aw-builder {
		grid-template-columns: 240px minmax(0, 1fr);
	}

	.aw-toolbar {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.aw-toolbar-summary {
		grid-column: 1 / 2;
		grid-row: 2;
	}

	.aw-toolbar-actions {
		grid-column: 2;
		grid-row: 1 / span 2;
	}
}

@media (max-width: 800px) {
	.aw-builder-home {
		gap: 18px;
	}

	.aw-create-workflow-card,
	.aw-existing-workflows {
		padding: 18px;
	}

	.aw-create-workflow-card::before {
		margin: -19px 0 18px;
	}

	.aw-workflow-tools {
		flex-direction: column;
		align-items: stretch;
	}

	.aw-result-count {
		align-self: flex-start;
	}

	.aw-builder-page-head {
		align-items: flex-start;
	}

	.aw-builder {
		display: flex;
		min-height: 0;
		flex-direction: column;
	}

	.aw-palette {
		max-height: none;
	}

	.aw-workspace {
		min-height: 620px;
	}

	.aw-toolbar {
		display: grid;
		grid-template-columns: 1fr;
	}

	.aw-toolbar-main,
	.aw-toolbar-summary,
	.aw-toolbar-actions {
		grid-column: 1;
		grid-row: auto;
		width: 100%;
	}

	.aw-toolbar-actions .button {
		flex: 1;
	}

	.aw-canvas {
		min-height: 470px;
	}
}

@media (max-width: 520px) {
	.aw-builder-intro h1 {
		font-size: 25px;
	}

	.aw-section-heading {
		flex-direction: column;
	}

	.aw-workflow-card {
		grid-template-columns: 40px minmax(0, 1fr);
	}

	.aw-open-builder {
		grid-column: 1 / -1;
		width: 100%;
	}

	.aw-builder-page-head {
		flex-direction: column;
	}

	.aw-builder-page-head .button {
		width: 100%;
	}

	.aw-empty {
		width: calc(100% - 28px);
		padding: 24px 18px;
	}

	.aw-empty-actions {
		width: 100%;
		flex-direction: column;
	}

	.aw-empty-actions .button {
		width: 100%;
	}

	.aw-drawer-footer {
		display: grid;
		grid-template-columns: 1fr;
	}
}
