.as-page { max-width: none; color: #1d2939; padding-bottom: 40px; }
.as-conversation-status { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 9px 20px; background: #eef2ff; border-bottom: 1px solid #e4e7ec; color: #344054; font-size: 12px; }
.as-conversation-status.is-error { background: #fef3f2; color: #b42318; }
.as-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.as-heading h1 { font-size: 27px; font-weight: 650; letter-spacing: -.6px; margin: 8px 0; color: #1d2939; }
.as-heading p { color: #667085; margin: 0; font-size: 14px; }
.as-eyebrow { display: inline-flex; align-items: center; gap: 6px; color: #039855; font-size: 12px; font-weight: 600; }
.as-page button, .as-page input, .as-page select, .as-page textarea { font: inherit; }
.as-page button:focus-visible, .as-overlay button:focus-visible, .as-page input:focus-visible, .as-page textarea:focus-visible, .as-page select:focus-visible { outline: 3px solid #9cb9ff; outline-offset: 2px; }
.as-page .btn, .as-overlay .btn { border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.as-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.as-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 34px; padding: 5px; border: 1px solid #e4e7ec; border-radius: 8px; background: #fff; color: #667085; font-size: 19px !important; cursor: pointer; }
.as-icon:hover { background: #f2f4f7; }
.as-danger { color: #d92d20; }
.as-page button:disabled, .as-overlay button:disabled { opacity: .5; cursor: not-allowed; }
.as-feedback { padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #ecfdf3; border: 1px solid #abefc6; color: #067647; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }
.as-feedback.is-error { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.as-tabs { display: flex; gap: 24px; align-items: center; border-bottom: 1px solid #e4e7ec; margin-bottom: 24px; }
.as-tabs > button { display: flex; align-items: center; gap: 8px; border: 0; border-bottom: 2px solid transparent; padding: 12px 0; background: transparent; color: #667085; font-weight: 600; }
.as-tabs > button.active { color: #465fff; border-bottom-color: #465fff; }
.as-tabs span { padding: 1px 7px; border-radius: 12px; background: #eef2ff; font-size: 12px; }
.as-tabs .as-refresh { margin-left: auto; font-size: 20px; }
.as-flow-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 355px), 1fr)); gap: 22px; }
.as-flow-card { border: 1px solid #e4e7ec; border-radius: 14px; padding: 24px; margin: 0; box-shadow: 0 2px 6px #10182803; }
.as-card-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.as-card-icon { width: 46px; height: 46px; display: grid; place-items: center; color: #465fff; background: #eef2ff; border-radius: 12px; font-size: 25px; }
.as-flow-card h2 { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; margin: 0 0 8px; }
.as-flow-card p { font-size: 13px; color: #667085; }
.as-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 18px; border-top: 1px solid #f2f4f7; }
.as-status { display: inline-flex; align-items: center; gap: 5px; background: #f2f4f7; color: #475467; border-radius: 20px; padding: 4px 9px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.as-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.as-status.is-active { color: #067647; background: #ecfdf3; }
.as-status.is-error { color: #b42318; background: #fef3f2; }
.as-empty, .as-loading { display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 64px 24px; text-align: center; border-radius: 14px; border: 1px solid #e4e7ec; }
.as-empty > span { display: grid; place-items: center; width: 72px; height: 72px; background: #eef2ff; color: #465fff; border-radius: 20px; font-size: 36px; margin-bottom: 22px; }
.as-empty h2 { font-size: 22px; font-weight: 600; }
.as-empty h3 { font-size: 18px; }
.as-empty p { color: #667085; max-width: 450px; font-size: 14px; margin: 10px 0 24px; }
.as-editor-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; background: #fff; border: 1px solid #e4e7ec; border-radius: 12px 12px 0 0; padding: 16px; }
.as-flow-name { min-width: 150px; flex: 1; }
.as-flow-name input { width: 100%; max-width: 340px; border: 0; padding: 2px 0; font-size: 16px; font-weight: 600; background: transparent; color: #1d2939; }
.as-flow-name small { display: block; color: #667085; font-size: 11px; }
.as-toolbar-actions { display: flex; align-items: center; gap: 8px; }
.as-workspace { display: grid; grid-template-columns: 280px minmax(200px, 1fr) 270px; height: min(780px, calc(100vh - 285px)); min-height: 520px; border: 1px solid #e4e7ec; border-top: 0; border-radius: 0 0 12px 12px; overflow: hidden; background: #fff; }
.as-palette, .as-properties { padding: 20px 14px; overflow-y: auto; }
.as-palette { border-right: 1px solid #e4e7ec; padding: 22px 18px; }
.as-properties { border-left: 1px solid #e4e7ec; }
.as-properties-host { position: relative; min-width: 0; min-height: 0; }
.as-properties-host > .as-properties { height: 100%; }
.as-palette h3, .as-properties h3 { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.as-palette > p { font-size: 12px; line-height: 1.6; color: #667085; margin-bottom: 18px; }
.as-block-choice { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid #e4e7ec; border-radius: 9px; background: #fff; padding: 14px 12px; margin-bottom: 10px; cursor: grab; }
.as-block-choice:hover { border-color: #9cb9ff; background: #f9fafb; }
.as-block-choice > span { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.as-block-choice strong { display: block; font-size: 13px; font-weight: 600; }
.as-block-choice small { display: block; color: #667085; font-size: 12px; line-height: 1.5; margin-top: 4px; }
.as-palette-note { display: flex; gap: 6px; padding: 12px 2px; color: #667085; font-size: 11px; }
.as-canvas { position: relative; min-width: 0; background: #f9fafb; }
.as-canvas-caption { position: absolute; left: 15px; top: 14px; z-index: 4; color: #667085; background: #ffffffdd; border: 1px solid #e4e7ec; padding: 5px 10px; border-radius: 20px; font-size: 10px; pointer-events: none; }
.as-canvas .react-flow__attribution { font-size: 9px; }
.as-canvas .react-flow__edge-path { stroke: #98a8cf; stroke-width: 2; }
.as-canvas .react-flow__edge.selected .react-flow__edge-path { stroke: #465fff; stroke-width: 3; }
.as-canvas .react-flow__edge:hover .react-flow__edge-path { filter: drop-shadow(0 0 2px #465fff55); }
.as-canvas .react-flow__controls { box-shadow: 0 1px 4px #10182812; border-radius: 8px; overflow: hidden; }
.as-canvas .react-flow__minimap { width: 120px; height: 80px; border: 1px solid #e4e7ec; border-radius: 8px; overflow: hidden; }
.as-node { width: 235px; border: 1px solid #d0d5dd; border-top: 3px solid var(--block-color); border-radius: 10px; background: #fff; box-shadow: 0 3px 10px #10182808; padding: 13px 15px; }
.as-node.is-selected { outline: 2px solid #465fff; outline-offset: 3px; }
.as-node header { display: flex; gap: 9px; align-items: center; margin-bottom: 10px; }
.as-node header strong { font-size: 12px; overflow-wrap: anywhere; }
.as-node-icon { display: inline-flex; font-size: 20px; color: var(--block-color); }
.as-node p { color: #667085; font-size: 11px; line-height: 1.6; margin: 0 0 8px; white-space: pre-wrap; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.as-node-output { position: relative; min-height: 32px; overflow: visible; border-top: 1px solid #f2f4f7; padding: 8px 0 2px; margin-top: 4px; color: #667085; font-size: 10px; }
.as-canvas .react-flow__node, .as-node { overflow: visible; }
.as-node .react-flow__handle { width: 18px; height: 18px; min-width: 18px; min-height: 18px; background: var(--block-color); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--block-color); opacity: 1; visibility: visible; z-index: 5; }
.as-node .react-flow__handle::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; }
.as-node .react-flow__handle.connectionindicator:hover, .as-node .react-flow__handle.connectingfrom, .as-node .react-flow__handle.valid { box-shadow: 0 0 0 3px var(--block-color), 0 0 0 7px #e0e7ff; }
.as-node-output .react-flow__handle { right: -15px; }
.as-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 18px; }
.as-panel-heading h3 { min-width: 0; margin: 0; }
.as-panel-actions { display: flex; flex-shrink: 0; gap: 6px; }
.as-upstream-button { margin: 0 0 16px; text-align: left; }
.as-properties fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.as-properties label, .as-settings label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 600; color: #344054; margin-bottom: 18px; }
.as-properties input, .as-properties textarea, .as-properties select, .as-settings input { width: 100%; min-width: 0; border: 1px solid #d0d5dd; border-radius: 7px; padding: 9px 10px; background: #fff; font-size: 12px; font-weight: 400; color: #344054; }
.as-properties textarea { resize: vertical; min-height: 65px; }
.as-properties small { font-size: 10px; color: #667085; font-weight: 400; line-height: 1.6; }
.as-help { background: #f9fafb; padding: 12px; border-radius: 8px; color: #667085; font-size: 11px; line-height: 1.7; }
.as-hint { text-align: center; padding: 36px 12px; color: #667085; font-size: 12px; }
.as-hint > i { font-size: 30px; color: #98a2b3; display: inline-block; margin-bottom: 14px; }
.as-option-input { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.as-option-input > span { color: #667085; font-size: 11px; }
.as-option-input .as-icon { border: 0; width: 26px; }
.as-link { border: 0; background: transparent; color: #465fff; font-size: 11px !important; font-weight: 600 !important; padding: 4px 0; margin-bottom: 20px; }
.as-settings { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: #f2f7ff; padding: 15px 20px; border-left: 1px solid #e4e7ec; border-right: 1px solid #e4e7ec; }
.as-settings label { margin: 0; }
.as-settings p { font-size: 11px; color: #667085; max-width: 250px; margin: 0; }
.as-settings-dialog .as-settings { display: block; padding: 0; border: 0; background: transparent; }
.as-settings-dialog .as-settings > label { margin-bottom: 8px; }
.as-settings-dialog .as-settings p { max-width: none; line-height: 1.6; margin-bottom: 16px; }
.as-settings-save-hint { color: #667085; font-size: 12px; line-height: 1.6; margin: 20px 0 0; }
.as-protection-settings { flex: 1 1 100%; min-width: 0; margin: 0; padding: 14px 0 0; border: 0; border-top: 1px solid #d8e3f4; }
.as-settings .as-protection-toggle { flex-direction: row; align-items: center; }
.as-settings .as-protection-toggle input { width: 16px; height: 16px; padding: 0; flex-shrink: 0; }
.as-settings .as-protection-settings p { max-width: none; margin-top: 7px; line-height: 1.6; }
.as-protection-fields { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 12px 18px; margin-top: 14px; }
.as-protection-fields label { flex: 1 1 240px; min-width: 0; }
.as-settings select, .as-protection-form input, .as-protection-form select { width: 100%; min-width: 0; border: 1px solid #d0d5dd; border-radius: 7px; padding: 9px 10px; background: #fff; font-size: 12px; color: #344054; }
.as-protection-fields small, .as-protection-form small { font-weight: 400; color: #667085; line-height: 1.5; }
.as-protection-form label { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; font-size: 13px; font-weight: 600; }
.as-protection-form input[readonly], .as-protection-fields input[readonly] { background: #f2f4f7; }
.as-blocked > header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.as-blocked > header > div { flex: 1 1 300px; }
.as-blocked .table td { vertical-align: top; }
.as-blocked-pagination { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px; }
.as-blocked-pagination span { margin-right: auto; color: #667085; font-size: 12px; }
.as-executions { border: 1px solid #e4e7ec; border-radius: 14px; overflow: hidden; box-shadow: none; }
.as-executions > header { padding: 24px; }
.as-executions h2 { font-size: 18px; font-weight: 600; }
.as-executions header p { color: #667085; font-size: 13px; margin: 0; }
.as-executions .table { margin: 0; font-size: 13px; }
.as-executions th { background: #f9fafb; color: #667085; padding: 14px 22px; white-space: nowrap; }
.as-executions td { padding: 18px 22px; vertical-align: middle; }
.as-executions td small { display: block; color: #667085; font-size: 11px; margin-top: 5px; max-width: 260px; white-space: normal; }
.as-executions td .as-error-text { color: #b42318; }
.as-overlay { position: fixed; inset: 0; z-index: 1100; background: #10182880; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(3px); font-family: var(--font-outfit, inherit); }
.as-dialog-layout { display: flex; gap: 12px; align-items: stretch; max-width: 100%; min-width: 0; }
.as-dialog-layout.has-sidebar { width: min(1120px, 100%); }
.as-dialog-layout.has-sidebar > .as-modal { flex: 1; min-width: 0; width: auto; }
.as-modal { width: min(520px, calc(100vw - 40px)); max-height: calc(100dvh - 40px); overflow: auto; background: #fff; color: #344054; border-radius: 14px; box-shadow: 0 24px 60px #10182833; }
.as-modal header { padding: 22px; border-bottom: 1px solid #e4e7ec; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.as-modal h2 { font-size: 19px; font-weight: 600; margin: 0; }
.as-modal header p { margin: 6px 0 0; font-size: 12px; color: #667085; }
.as-modal-content { padding: 22px; font-size: 14px; }
.as-modal footer { padding: 18px 22px; border-top: 1px solid #e4e7ec; display: flex; justify-content: flex-end; gap: 10px; }
.as-properties-dialog { width: min(960px, calc(100vw - 40px)); height: calc(100dvh - 40px); display: flex; flex-direction: column; overflow: hidden; }
.as-dialog-layout.has-sidebar > .as-modal.as-properties-dialog { overflow: hidden; }
.as-properties-dialog > .as-properties { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; max-height: calc(100dvh - 40px); border: 0; padding: 0; overflow: hidden; }
.as-properties-dialog .as-panel-heading { position: static; flex-shrink: 0; margin: 0; padding: 20px 26px; background: #fff; border-bottom: 1px solid #e4e7ec; }
.as-properties-dialog > .as-properties > .as-properties-content { flex: 1 1 0; min-height: 0; padding: 24px 26px; overflow-y: scroll; overscroll-behavior: contain; scrollbar-gutter: stable; }
.as-properties-dialog .as-properties label { font-size: 13px; }
.as-properties-dialog .as-properties input, .as-properties-dialog .as-properties textarea, .as-properties-dialog .as-properties select { padding: 12px; font-size: 14px; }
.as-properties-dialog .as-properties small { font-size: 12px; }
.as-preview-messages { height: 370px; overflow: auto; padding: 20px; background: #f9fafb; display: flex; flex-direction: column; gap: 12px; }
.as-bubble { max-width: 85%; padding: 12px 15px; background: #fff; border: 1px solid #e4e7ec; border-radius: 12px 12px 12px 2px; align-self: flex-start; }
.as-bubble.customer { background: #eef2ff; border-color: #c7d7fe; align-self: flex-end; border-radius: 12px 12px 2px 12px; }
.as-bubble small { font-size: 10px; color: #667085; }
.as-bubble p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0 0; font-size: 13px; }
.as-preview-state { align-self: center; margin: 8px 0; color: #667085; font-size: 11px; }
.as-api-rows { margin: 16px 0; }
.as-api-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 30px; gap: 5px; margin: 7px 0; align-items: center; }
.as-api-row input { width: 100%; min-width: 0; border: 1px solid #d0d5dd; border-radius: 7px; padding: 9px 7px; font-size: 12px; background: #fff; color: #344054; }
.as-api-data code { display: block; overflow-wrap: anywhere; font-size: 11px; margin: 6px 0; }
.as-api-data small { display: block; }
.as-api-results { min-width: 0; color: #475467; font-size: 12px; }
.as-api-results summary { cursor: pointer; }
.as-api-results pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow: auto; background: #fff; border: 1px solid #e4e7ec; border-radius: 8px; padding: 12px; margin-top: 8px; }
.as-api-test-button { width: 100%; justify-content: center; margin-bottom: 12px; }
.as-variable-list { display: flex; flex-direction: column; gap: 7px; margin: 12px 0; }
.as-variable-picker { margin: 18px 0; }
.as-variable-picker-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.as-variable-picker-heading h3 { margin: 0; font-size: 13px; }
.as-variable-picker > p { font-size: 11px; color: #667085; margin: 8px 0; }
.as-variable-picker-heading small { color: #667085; white-space: nowrap; }
.as-variable-drawer { display: flex; flex-direction: column; flex: 0 0 320px; width: 320px; min-height: 0; max-height: calc(100dvh - 40px); background: #fff; border: 1px solid #e4e7ec; border-radius: 12px; box-shadow: 0 16px 40px #10182826; overflow: hidden; color: #344054; }
.as-variable-drawer-heading { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; padding: 18px; gap: 10px; border-bottom: 1px solid #e4e7ec; }
.as-variable-drawer-heading h3 { margin: 0 0 5px; font-size: 14px; }
.as-variable-drawer-heading small { font-size: 11px; color: #667085; }
.as-variable-drawer-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 14px; }
.as-properties-host > .as-variable-drawer { position: absolute; right: calc(100% + 12px); top: 0; bottom: 0; z-index: 30; max-height: 100%; }
@media (max-width: 760px) {
  .as-dialog-layout.has-sidebar { flex-direction: column; max-height: calc(100dvh - 40px); }
  .as-dialog-layout.has-sidebar > .as-modal { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
  .as-dialog-layout.has-sidebar > .as-variable-drawer { flex: 0 0 30dvh; width: 100%; max-height: 30dvh; }
}
.as-variable-chip { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 9px 10px; border: 1px solid #c7d7fe; border-radius: 7px; background: #eef2ff; color: #3538cd; cursor: grab; user-select: none; }
.as-variable-chip:active { cursor: grabbing; }
.as-variable-chip strong { display: block; font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.as-variable-chip small { display: block; font-size: 10px; color: #667085; overflow-wrap: anywhere; }
.as-api-test { width: min(720px, calc(100vw - 32px)); }
.as-api-test-content { overflow-y: auto; max-height: calc(100dvh - 230px); }
.as-api-test-content section { margin-bottom: 20px; }
.as-api-test-content h3 { font-size: 14px; margin: 0 0 8px; }
.as-api-test-content p { font-size: 12px; color: #667085; }
.as-api-test-content label { display: flex; flex-direction: column; gap: 7px; margin: 16px 0; font-size: 12px; font-weight: 600 !important; color: #344054; }
.as-api-test-content input, .as-api-test-content textarea { width: 100%; border: 1px solid #d0d5dd; border-radius: 7px; background: #fff; padding: 10px; color: #344054; font-size: 13px; }
.as-api-test-content small { font-size: 11px; font-weight: 400; color: #667085; }
.as-api-test-success { color: #067647 !important; margin-top: 16px; }
.as-preview footer form { display: flex; gap: 10px; width: 100%; }
.as-preview footer input { flex: 1; min-width: 0; border: 1px solid #d0d5dd; border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.as-preview > .as-feedback { margin: 10px 20px; }
@media (max-width: 1390px) { .as-workspace { grid-template-columns: 250px minmax(180px, 1fr) 235px; } .as-palette, .as-properties { padding: 16px 12px; } }
@media (max-width: 1000px) { .as-workspace { grid-template-columns: 220px minmax(200px, 1fr); height: auto; overflow: visible; } .as-canvas { height: 540px; } .as-properties { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #e4e7ec; max-height: 440px; } .as-toolbar-actions { flex-wrap: wrap; } }
@media (max-width: 600px) { .as-heading { align-items: flex-start; flex-direction: column; gap: 16px; } .as-heading h1 { font-size: 23px; } .as-workspace { grid-template-columns: 1fr; } .as-palette { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px; border-right: 0; } .as-palette h3, .as-palette > p, .as-palette-note { display: none; } .as-block-choice { width: auto; margin: 0; padding: 6px; } .as-block-choice strong { font-size: 10px; } .as-canvas { height: 480px; } .as-editor-toolbar { gap: 8px; } .as-toolbar-actions { width: 100%; justify-content: flex-end; } .as-tabs { gap: 16px; font-size: 12px; } }

/* The campaign shell keeps the main aside in a drawer while editing. */
#main-wrapper.as-editor-shell .body-wrapper {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#main-wrapper.as-editor-shell .body-wrapper > .as-page.is-editing {
  width: 100%;
  max-width: none;
  flex: 1;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.as-page.is-editing > .as-heading { display: none; }
.as-page.is-editing > .as-editor-toolbar { flex-shrink: 0; border-radius: 0; }
.as-page.is-editing > .as-feedback { flex-shrink: 0; margin: 0; border-radius: 0; }
.as-page.is-editing > .as-trial-notice { flex-shrink: 0; margin: 0; border-radius: 0; font-size: 13px; }
.as-page.is-editing > .as-workspace { flex: 1; height: auto; min-height: 0; width: 100%; border-radius: 0; }
@media (min-width: 1001px) {
  .as-page.is-editing .as-canvas, .as-page.is-editing .as-palette, .as-page.is-editing .as-properties { min-height: 0; }
}
@media (max-width: 1000px) {
  .as-page.is-editing > .as-workspace { overflow: auto; }
  .as-page.is-editing .as-canvas { height: max(360px, calc(100dvh - 180px)); }
  .as-properties-host { grid-column: 1 / -1; max-height: 440px; }
  .as-properties-host > .as-variable-drawer { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; height: 35dvh; max-height: 35dvh; }
}

.as-bubble { flex-shrink: 0; min-width: 100px; }
.as-bubble-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.as-bubble-more { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; color: #667085; }
.as-bubble-data { margin-top: 12px; padding-top: 10px; border-top: 1px solid #d0d5dd; }
.as-bubble-data h3 { margin: 0 0 6px; font-size: 12px; }
.as-bubble-data pre { margin: 8px 0 0; max-height: 220px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; }

.as-api-message-notice { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; padding: 14px 16px; border: 1px solid #fedf89; border-radius: 8px; background: #fffaeb; color: #93370d; }
.as-api-message-notice > i { flex-shrink: 0; margin-top: 2px; font-size: 18px; }
.as-api-test-content .as-api-message-notice p { margin: 0; color: inherit; font-size: 13px; line-height: 1.6; }

.as-api-test-content .as-feedback.is-error { display: block; min-width: 0; }
.as-api-test-content .as-feedback > strong { display: block; margin-top: 10px; }
.as-api-error-details { max-height: 220px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0 0; color: inherit; font-size: 12px; }

.as-json-field { margin-bottom: 18px; }
.as-properties .as-json-field > label { margin-bottom: 7px; }
.as-json-field > small { display: block; margin-top: 7px; }
.as-json-editor { min-width: 0; border: 1px solid #d0d5dd; border-radius: 8px; overflow: hidden; background: #fff; }
.as-json-editor:focus-within { border-color: #6172ff; box-shadow: 0 0 0 3px #eef2ff; }
.as-json-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #e4e7ec; background: #f8fafc; font-size: 11px; color: #667085; }
.as-json-toolbar .as-link { margin: 0; padding: 0; font-size: 11px; }
.as-json-code { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); overflow: hidden; }
.as-json-gutter { overflow: hidden; background: #f8fafc; border-right: 1px solid #e4e7ec; color: #98a2b3; user-select: none; pointer-events: none; }
.as-json-gutter pre, .as-json-highlight pre, .as-properties .as-json-editor textarea { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 13px; font-weight: 400; line-height: 22px; letter-spacing: normal; tab-size: 2; }
.as-json-gutter pre { margin: 0; padding: 12px 8px; text-align: right; color: inherit; }
.as-json-highlight { position: absolute; inset: 0 0 0 44px; overflow: hidden; pointer-events: none; }
.as-json-highlight pre { margin: 0; padding: 12px; min-width: 100%; width: max-content; white-space: pre; color: #344054; }
.as-properties .as-json-editor textarea { position: relative; display: block; width: 100%; min-width: 0; min-height: 220px; margin: 0; padding: 12px; border: 0; border-radius: 0; background: transparent; color: transparent; caret-color: #101828; resize: vertical; box-shadow: none; outline: none; overflow: auto; }
.as-properties .as-json-editor textarea::placeholder { color: #98a2b3; }
.as-properties .as-json-editor textarea::selection { background: #b2ccff80; }
.as-json-token-key { color: #175cd3; }
.as-json-token-string { color: #027a48; }
.as-json-token-number { color: #b54708; }
.as-json-token-keyword, .as-json-token-variable { color: #7a5af8; }
.as-json-token-punctuation { color: #667085; }
.as-json-editor .as-json-error { margin: 0; padding: 8px 12px; color: #b42318; background: #fff3f0; font-size: 12px; }

.as-simulation-variable { display: block; align-self: flex-start; max-width: 100%; padding: 4px 7px; border-radius: 5px; background: #eef2ff; color: #3538cd; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; font-weight: 400; overflow-wrap: anywhere; user-select: text; }

.as-dialog-close { position: fixed; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; background: #fff; color: #344054; box-shadow: 0 3px 12px #10182826; }
.as-dialog-close:hover { background: #eef2ff; color: #3538cd; }
.as-dialog-close:focus-visible { outline: 3px solid #a4bcfd; outline-offset: 2px; }

.as-variable-help { margin-bottom: 0; font-size: 13px; line-height: 1.6; }
.as-variable-help > div { min-width: 0; }
.as-variable-help p { margin: 8px 0 0; color: inherit; }

.as-variable-root-code { display: block; margin-top: 5px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; color: #3538cd; overflow-wrap: anywhere; }

.as-variable-picker-heading { flex-wrap: wrap; }
.as-variable-picker-actions { display: flex; align-items: center; gap: 12px; }
.as-clear-test { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font-size: 12px; }

.as-variable-row { position: relative; min-width: 0; }
.as-variable-row > .as-variable-chip { padding-right: 55px; }
.as-variable-chip > span { flex: 1; min-width: 0; }
.as-variable-view { position: absolute; top: 8px; right: 8px; padding: 3px 7px; border: 1px solid #c7d7fe; border-radius: 5px; background: #fff; color: #3538cd; font-size: 11px; line-height: 18px; cursor: pointer; }
.as-variable-view:hover, .as-variable-view:focus-visible { border-color: #6172ff; background: #e0e7ff; }
.as-variable-details { width: min(640px, calc(100vw - 40px)); }
.as-variable-details .as-modal-content > h3 { font-size: 13px; font-weight: 600; margin: 18px 0 8px; }
.as-variable-block-preview { display: flex; justify-content: center; padding: 28px; border: 1px solid #e4e7ec; border-radius: 10px; background-color: #f8fafc; background-image: radial-gradient(#d8deeb 1px, transparent 1px); background-size: 16px 16px; }
.as-variable-block-preview .as-node { position: relative; max-width: 100%; }
.as-variable-block-preview .as-node > header { padding: 0; border: 0; justify-content: flex-start; gap: 9px; margin: 0 0 10px; }
.as-variable-preview-port { position: absolute; top: 50%; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: var(--block-color); box-shadow: 0 0 0 1px var(--block-color); transform: translateY(-50%); }
.as-variable-preview-port.is-target { left: -7px; }
.as-variable-preview-port.is-source { right: -21px; }
.as-variable-explanation { margin: 16px 0 0; line-height: 1.7; }
.as-variable-detail-code { display: block; padding: 12px; border: 1px solid #c7d7fe; border-radius: 7px; background: #eef2ff; color: #3538cd; font-size: 12px; overflow-wrap: anywhere; white-space: pre-wrap; user-select: text; }
.as-variable-detail-example { margin-top: 16px; font-size: 12px; }
.as-variable-detail-example p { margin: 6px 0 0; color: #667085; overflow-wrap: anywhere; }
.as-variable-detail-help { margin-bottom: 0; font-size: 12px; line-height: 1.7; }
.as-variable-detail-help p { margin: 0; color: inherit; }

.as-edge-delete { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-left: 12px; padding: 0; border: 1px solid #fecdca; border-radius: 8px; background: #fff; color: #d92d20; box-shadow: 0 3px 12px #10182826; cursor: pointer; }
.as-edge-delete:hover, .as-edge-delete:focus-visible { background: #fef3f2; border-color: #f97066; outline: 2px solid #fee4e2; outline-offset: 2px; }
.as-edge-delete:disabled { cursor: default; opacity: 0.5; }

.as-preview-floating { position: fixed; left: 20px; bottom: 20px; z-index: 1090; width: min(390px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; border: 1px solid #d0d5dd; border-radius: 14px; background: #fff; box-shadow: 0 12px 40px #10182833; overflow: hidden; font-family: var(--font-outfit, inherit); }
.as-preview-floating > header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #e4e7ec; cursor: grab; touch-action: none; }
.as-preview-floating > header:active { cursor: grabbing; }
.as-preview-floating h2 { font-size: 16px; margin: 0 0 4px; }
.as-preview-floating header p { font-size: 11px; color: #667085; margin: 0; }
.as-preview-actions { display: flex; gap: 5px; }
.as-preview-body { min-height: 0; display: flex; flex-direction: column; }
.as-preview-body[hidden] { display: none; }
.as-preview-floating .as-preview-messages { height: min(330px, 40dvh); min-height: 100px; flex: 1 1 auto; }
.as-preview-floating footer { padding: 12px 16px; border-top: 1px solid #e4e7ec; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.as-preview-floating .btn { border-radius: 8px; font-size: 12px; }
.as-preview-floating .as-feedback { flex-shrink: 0; max-height: 90px; overflow: auto; margin: 8px 12px; }
.as-preview-notice { font-size: 11px; color: #667085; margin: 10px 14px 4px; }
.as-preview-legend { display: flex; gap: 14px; margin: 6px 14px 10px; font-size: 11px; }
.as-preview-legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; background: currentColor; }
.as-preview-legend .executed { color: #039855; }
.as-preview-legend .waiting { color: #465fff; }
.as-preview-legend .error { color: #d92d20; }
.as-preview-floating .as-preview-error-message { display: flex; align-items: flex-start; flex-wrap: wrap; max-height: none; margin: 0; overflow: visible; }
.as-preview-error-message > div { flex: 1; min-width: 120px; }
.as-preview-error-message small { font-weight: 600; }
.as-preview-error-message p { margin: 4px 0 0; overflow-wrap: anywhere; }
.as-preview-error-message .as-link { color: inherit; white-space: nowrap; text-decoration: underline; }
.as-preview-error-details pre { max-height: 45dvh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: 14px; background: #f9fafb; border: 1px solid #e4e7ec; border-radius: 8px; font-size: 12px; }
.as-canvas .as-test-executed .as-node { outline: 3px solid #12b76a; outline-offset: 3px; background: #f6fef9; }
.as-canvas .as-test-running .as-node, .as-canvas .as-test-waiting .as-node { outline: 3px solid #465fff; outline-offset: 4px; background: #eef2ff; box-shadow: 0 0 0 8px #465fff18; }
.as-canvas .as-test-error .as-node { outline: 3px solid #f04438; outline-offset: 3px; background: #fff1f0; }
.as-canvas .as-test-executed::after, .as-canvas .as-test-running::after, .as-canvas .as-test-waiting::after, .as-canvas .as-test-error::after { position: absolute; left: 0; top: -27px; padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.as-canvas .as-test-executed::after { content: 'Executado'; color: #027a48; background: #d1fadf; }
.as-canvas .as-test-running::after { content: 'Executando'; color: #3538cd; background: #e0e7ff; }
.as-canvas .as-test-waiting::after { content: 'Aguardando resposta'; color: #3538cd; background: #e0e7ff; }
.as-canvas .as-test-error::after { content: 'Erro'; color: #b42318; background: #fee4e2; }

.as-canvas .as-test-paused .as-node { outline: 3px dashed #465fff; outline-offset: 4px; background: #eef2ff; }
.as-canvas .as-test-paused::after { content: 'Próximo bloco'; position: absolute; left: 0; top: -27px; padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; white-space: nowrap; pointer-events: none; color: #3538cd; background: #e0e7ff; }
.as-preview-body { overflow: auto; }
