.main.customers-main { min-width: 0; max-width: 100%; }
.customers-main .content { min-width: 0; }
.customers-workspace { --customer-border: #e2e8f0; width: 100%; min-width: 0; max-width: 1600px; margin: 0 auto; }
.customers-workspace h2 { font-size: 25px; margin: 0 0 8px; letter-spacing: -.5px; }
.customers-workspace h3 { font-size: 17px; margin: 0 0 14px; }
.customer-eyebrow { color: #0b8170; font-size: 11px; font-weight: 750; letter-spacing: 1.7px; margin: 0 0 9px; }
.customer-panel, .customer-filters { background: #fff; border: 1px solid var(--customer-border); border-radius: 14px; padding: 22px; margin-bottom: 18px; }
.customer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 0 0 20px; }
.customer-toolbar p { margin: 6px 0 0; }
.customer-toolbar > div > .btn:first-child { margin-bottom: 12px; }
.customer-toolbar > .customer-buttons > .btn:first-child { margin-bottom: 0; }
.customer-buttons, .customer-tabs, .customer-pager > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.customer-tabs { margin: 0 0 18px; }
.customer-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; padding: 16px; }
.customer-filters label { flex: 1 1 145px; min-width: 130px; }
.customer-filters label:first-child { flex-grow: 2; }
.customers-workspace label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 650; color: #475569; }
.customers-workspace input, .customers-workspace select, .customers-workspace textarea { width: 100%; min-height: 38px; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; font-size: 13px; background: #fff; color: #172b42; box-sizing: border-box; }
.customers-workspace textarea { resize: vertical; }
.customers-workspace input:focus, .customers-workspace select:focus, .customers-workspace textarea:focus { outline: 2px solid #65bcae; outline-offset: 1px; }
.customers-workspace .customer-check { flex-direction: row; align-items: center; font-weight: 500; gap: 9px; }
.customer-check input { width: 16px; min-height: 16px; flex: 0 0 16px; }
.customer-table-wrap { overflow-x: auto; border: 1px solid var(--customer-border); border-radius: 14px; background: #fff; }
.customer-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.customer-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; background: #f8fafc; color: #64748b; padding: 14px 16px; white-space: nowrap; }
.customer-table td { border-top: 1px solid #edf1f5; padding: 16px; vertical-align: middle; }
.customer-table td:first-child { min-width: 180px; }
.customer-table small, .customer-definition small { display: block; color: #64748b; margin-top: 5px; }
.customer-table .btn { white-space: nowrap; }
.customer-badge { display: inline-flex; align-items: center; border-radius: 20px; padding: 4px 9px; font-size: 11px; font-weight: 650; background: #edf3f8; color: #476077; margin: 3px; line-height: 1.4; }
.customer-badge.required { background: #fff3d9; color: #986a0b; }
.customer-badge.done { background: #e6f7ef; color: #18815b; }
.customer-overdue, .customer-table .customer-overdue small { color: #b93832; }
.customer-pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px; color: #64748b; font-size: 13px; }
.customer-board { display: flex; gap: 14px; overflow-x: auto; padding: 2px 0 18px; align-items: stretch; }
.customer-column { flex: 0 0 260px; background: #f0f4f7; padding: 12px; border-radius: 12px; min-height: 300px; }
.customer-column > header { display: flex; align-items: center; justify-content: space-between; min-height: 45px; margin-bottom: 10px; font-size: 13px; }
.customer-card { width: 100%; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 8px; background: #fff; border: 1px solid #e0e7ed; box-shadow: 0 2px 4px #14283808; border-radius: 10px; padding: 15px; margin-bottom: 10px; color: #263f51; font: inherit; font-size: 12px; cursor: pointer; }
.customer-card:hover { border-color: #269785; }
.customer-card > strong { font-size: 14px; }
.customer-card > div { border-top: 1px solid #edf1f5; width: 100%; padding-top: 10px; line-height: 1.6; }
.customer-card > small { color: #7b8995; }
.customer-empty { border: 1px dashed #cbd5e1; border-radius: 14px; padding: 50px 24px; text-align: center; color: #64748b; background: #fff; }
.customer-empty strong { color: #304658; font-size: 18px; }
.customer-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.customer-metrics small { display: block; color: #64748b; margin-bottom: 7px; }
.customer-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 0 0 30px; }
.customer-data dt { font-size: 12px; color: #64748b; }
.customer-data dd { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.customer-contact { display: flex; flex-wrap: wrap; gap: 18px; padding: 13px 0; border-top: 1px solid #edf1f5; }
.customer-definition { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #edf1f5; padding: 15px 0; }
.customer-definition > div:first-child { flex: 1; }
.customer-info { background: #f2f7fb; color: #36566c; padding: 16px; border-radius: 9px; margin-top: 16px; font-size: 13px; }
.customer-info ul { margin: 10px 0 0; padding-left: 20px; }
.customer-error { background: #fff0ef; color: #92372f; padding: 15px; border: 1px solid #f2c8c3; border-radius: 9px; margin-bottom: 16px; }
.customer-error .btn { margin-left: 10px; }
.customer-notice { background: #e8f8f0; color: #18654c; padding: 12px 16px; border-radius: 9px; margin-bottom: 16px; }
.customer-timeline { list-style: none; padding: 0 0 0 20px; border-left: 2px solid #dce8e5; }
.customer-timeline li { position: relative; padding: 0 0 22px 10px; }
.customer-timeline li::before { content: ''; position: absolute; left: -26px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: #239180; border: 2px solid #fff; }
.customer-timeline small { color: #64748b; }
.customer-timeline p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 7px 0; }
/* Klantfunnels navigation uses the shared sidebar submenu rules in styles.css. */
.customer-mobile-menu { display: none; }
.customer-modal-backdrop { position: fixed; z-index: 1500; inset: 0; background: #10253466; display: flex; align-items: center; justify-content: center; padding: 20px; }
.customer-modal { width: min(800px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 16px 80px #12253833; }
.customer-modal > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.customer-modal h2 { font-size: 21px; }
.customer-modal fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.customer-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.customer-structured-form { display: grid; gap: 14px; min-width: 0; padding-block: 12px; }
.customer-structured-form h3, .customer-structured-form p { margin: 0; }
.customer-structured-form small { font-weight: 400; line-height: 1.5; }
.customer-structured-form input, .customer-structured-form select, .customer-structured-form textarea { max-width: 100%; }
.customer-simulator form { display: grid; gap: 12px; padding-block: 12px; }
.customer-wide { grid-column: 1 / -1; }
.customer-modal footer { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid #e2e8f0; padding-top: 20px; margin-top: 24px; }
.customer-contact-edit, .customer-action-preview { border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; margin: 12px 0; }
.customer-contact-edit > .btn { margin-top: 10px; }
.customer-action-preview > .customer-form-grid { margin-top: 12px; }
.customer-journey-position { margin: 18px 0; padding: 16px; border-left: 3px solid #249984; background: #f4fbf8; border-radius: 0 10px 10px 0; }
.customer-journey-position ul { padding-left: 20px; line-height: 1.8; font-size: 13px; color: #506576; }
.customer-builder { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 18px; }
.customer-builder.is-editing { grid-template-columns: minmax(0, 1fr) 350px; }
.customer-builder-main { min-width: 0; }
.customer-builder-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin: 12px 0 18px; }
.customer-builder-toolbar h3 { margin-bottom: 5px; }
.customer-builder-toolbar .muted { font-size: 12px; }
.customer-builder-phases { display: grid; gap: 12px; margin: 18px 0; }
.customer-builder-phase { background: #fff; border: 1px solid #dfe7ed; border-radius: 14px; overflow: hidden; scroll-margin-top: 25px; }
.customer-builder-phase.expanded { border-color: #b7d9d0; }
.customer-builder-phase > h3 { margin: 0; }
.customer-builder-toggle { display: flex; align-items: center; gap: 15px; width: 100%; padding: 22px; border: 0; background: #fff; color: #172b42; text-align: left; font: inherit; cursor: pointer; }
.customer-builder-toggle:hover { background: #f4fbf8; }
.customer-builder-toggle:focus-visible { outline: 3px solid #65bcae; outline-offset: -3px; }
.customer-builder-toggle small { display: block; margin-top: 6px; color: #718295; font-weight: 450; font-size: 12px; }
.customer-builder-phase-number { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; background: #eef6f3; color: #188573; font-size: 13px; flex: 0 0 33px; }
.customer-builder-chevron { font-size: 23px; color: #638675; width: 15px; flex: 0 0 15px; }
.customer-builder-phase-body { border-top: 1px solid #e5efeb; }
.customer-builder-phase-tools { padding: 18px 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.customer-builder-phase-tools p { margin: 0; font-size: 13px; }
.customer-builder-phase-actions { padding: 0 22px 18px; }
.customer-builder-phase-actions h4 { font-size: 12px; color: #567168; margin: 0 0 9px; }
.customer-builder-canvas-scroll { overflow: auto; max-height: 950px; border-block: 1px solid #e7efeb; background-color: #f7faf9; background-image: radial-gradient(#d4e1da 1px, transparent 1px); background-size: 18px 18px; }
.customer-builder-canvas { position: relative; min-height: 90px; }
.customer-builder-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.customer-builder-lines > path { fill: none; stroke: #36967d; stroke-width: 2; }
.customer-builder-lines > path.detour { stroke: #c89738; stroke-dasharray: 6 4; }
.customer-builder-lines > path.back { stroke: #8293ad; stroke-dasharray: 4 4; }
.customer-builder-step { position: absolute; width: 385px; border: 1px solid #d6e4dd; border-radius: 13px; background: #fff; box-shadow: 0 3px 12px #133b2410; overflow: hidden; }
.customer-builder-step > header { display: flex; gap: 9px; align-items: center; background: #f0f7f3; border-bottom: 1px solid #e1ebe6; padding: 13px 12px; }
.customer-builder-step > header > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.customer-builder-step > header strong { font-size: 14px; }
.customer-builder-step > header small { display: block; }
.customer-builder-handle, .customer-builder-port { border: 0; background: transparent; color: #488876; border-radius: 6px; font-size: 25px; padding: 3px 5px; touch-action: none; }
.customer-builder-handle { cursor: grab; }
.customer-builder-handle:active { cursor: grabbing; }
.customer-builder-port { cursor: crosshair; font-size: 21px; }
.customer-builder-handle:hover, .customer-builder-port:hover { background: #dcefe5; }
.customer-builder-description { font-size: 12px; line-height: 1.6; padding: 0 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.customer-builder-node-tools { padding: 10px 14px 0; }
.customer-builder-actions { padding: 12px 14px; }
.customer-builder-phase-actions > .customer-builder-actions { padding: 0; }
.customer-builder-action { background: #f8fafc; border: 1px solid #e7edf1; border-radius: 8px; padding: 11px; margin-bottom: 9px; }
.customer-builder-action strong { display: block; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.customer-builder-action small { display: block; color: #627887; font-size: 11px; line-height: 1.5; margin: 4px 0 8px; }
.customer-builder-action .btn { font-size: 11px; padding: 5px 8px; }
.customer-builder-routes { border-top: 1px solid #e8eeea; padding: 12px 14px; }
.customer-builder-route { border-left: 2px solid #63a28a; margin: 0 0 12px; padding-left: 10px; }
.customer-builder-route.detour { border-color: #c89738; }
.customer-builder-route.back { border-color: #8293ad; }
.customer-builder-route-kind { font-size: 10px; color: #6b857a; text-transform: uppercase; letter-spacing: .6px; }
.customer-builder-route strong, .customer-builder-route > div > span:last-child { display: block; font-size: 12px; margin: 4px 0; overflow-wrap: anywhere; }
.customer-builder-route .customer-buttons { margin-top: 6px; }
.customer-builder-route .btn { font-size: 11px; padding: 5px 8px; text-align: left; white-space: normal; }
.customer-builder-add { padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.customer-builder-issue { color: #a15025; background: #fff7e9; padding: 10px 14px; margin: 7px; border-radius: 7px; font-size: 12px; }
.customer-builder-validation { color: #98631e; font-size: 13px; padding: 10px 0; }
.customer-builder .customer-error { white-space: pre-line; }
.customer-builder-editor { background: #fff; border: 1px solid #cbded5; border-radius: 13px; padding: 20px; position: sticky; top: 16px; max-height: calc(100dvh - 50px); overflow: auto; box-shadow: 0 5px 25px #183c2510; }
.customer-builder-editor header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 20px; }
.customer-builder-editor header h3 { margin: 0; }
.customer-builder-editor fieldset { min-width: 0; border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.customer-builder-editor footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 15px; border-top: 1px solid #e4ece7; }
.customer-builder-editor .muted { font-size: 12px; line-height: 1.6; }
.customer-catalog { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.customer-catalog.is-editing { grid-template-columns: minmax(0, 1fr) 370px; }
.customer-catalog-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 0; border-top: 1px solid #e3eaf0; }
.customer-catalog-row > div:first-child { min-width: 0; flex: 1; }
.customer-catalog-row h4 { margin: 0 0 8px; }
.customer-catalog-row p, .customer-catalog-choices p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; margin: 6px 0; }
.customer-catalog-row small, .customer-catalog-choices small { color: #627887; font-size: 12px; }
.customer-catalog-usage { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 12px; }
.customer-catalog-usage .btn { text-align: left; white-space: normal; }
.customer-catalog-choices { display: grid; gap: 12px; margin: 18px 0; }
.customer-catalog-choices article { border: 1px solid #dfe7ed; border-radius: 10px; padding: 14px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.customer-catalog-choices article > div { flex: 1 1 180px; min-width: 0; }
.customer-catalog-highlight { outline: 3px solid #65bcae; outline-offset: 2px; }
.customer-action-number { color: #16776c; background: #e9f5f2; font-variant-numeric: tabular-nums; }
.customer-builder-action .customer-action-number { display: table; margin-bottom: 6px; }
[data-builder-search] { display: grid; gap: 10px; }
@media(max-width: 1100px) { .customer-catalog.is-editing { grid-template-columns: minmax(0, 1fr); } }
@media(max-width: 760px) { .customer-catalog-row { flex-wrap: wrap; } }
@media(max-width: 1100px) { .customer-builder.is-editing { grid-template-columns: minmax(0, 1fr); } .customer-builder-editor { position: fixed; z-index: 1450; right: 16px; top: 80px; bottom: 16px; width: min(380px, calc(100vw - 32px)); box-sizing: border-box; } }
@media(max-width: 1000px) { .customer-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .customer-definition { flex-wrap: wrap; } }
@media(max-width: 980px) { .customer-mobile-menu { display: block; margin-bottom: 18px; } }
@media(max-width: 760px) { .customer-form-grid, .customer-data, .customer-metrics { grid-template-columns: 1fr; } .customer-modal-backdrop { padding: 8px; } .customer-modal { padding: 18px; max-height: calc(100dvh - 16px); } .customer-toolbar { align-items: flex-start; } .customer-panel { padding: 16px; } }
.customer-block-builder { grid-template-columns: 220px minmax(0, 1fr); }
.customer-block-builder.is-editing { grid-template-columns: 200px minmax(0, 1fr) 320px; }
.customer-block-library { position: sticky; top: 90px; max-height: calc(100vh - 115px); overflow: auto; padding: 16px; background: #fff; border: 1px solid #dce6ed; border-radius: 12px; }
.customer-block-library h3 { margin: 0; font-size: 15px; }
.customer-block-library p { font-size: 12px; color: #68798c; }
.customer-block-library form { display: grid; gap: 8px; margin: 14px 0; }
.customer-block-library input { width: 100%; min-width: 0; }
.customer-block-library summary { padding: 12px 0; font-size: 12px; font-weight: 600; cursor: pointer; }
.customer-library-block { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 10px 8px; margin-bottom: 6px; border: 1px solid #e0e9ec; border-radius: 8px; background: #f9fbfc; color: #17263b; font: inherit; font-size: 12px; cursor: grab; }
.customer-library-block > span:last-child { margin-left: auto; }
.customer-library-block small { display: block; color: #718095; margin-top: 3px; font-size: 10px; }
.customer-library-block:hover { border-color: #71a99c; background: #eef8f4; }
.customer-block-builder .customer-builder-toolbar { position: sticky; top: 78px; z-index: 12; background: #f7f9fc; border-bottom: 1px solid #dce6ed; padding: 12px 0; margin-top: 0; }
.customer-block-builder .customer-builder-toolbar .muted { display: block; margin-top: 5px; }
.customer-block-builder .customer-builder-editor { top: 90px; max-height: calc(100vh - 110px); overflow: auto; }
.customer-builder-viewtools { margin: 8px 0; }
.customer-block-caption { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px 14px 0; }
.customer-block-builder .customer-builder-action { display: grid; margin: 12px; gap: 6px; }
.customer-block-builder .customer-builder-action small { display: block; color: #61738a; }
.customer-block-builder .customer-builder-action p { margin: 0; font-size: 12px; }
.customer-block-builder .customer-builder-action ul { margin: 0; padding-left: 18px; font-size: 12px; }
.customer-block-builder .customer-builder-step > header { background: #f0f8f5; }
.customer-block-builder .block-wait > header { background: #f3f5fb; }
.customer-block-builder .block-choice > header { background: #fff8e9; }
.customer-block-builder .block-condition > header { background: #eef8f5; }
.customer-block-builder .block-end > header { background: #f2f3f6; }
.customer-block-menu { position: relative; margin-left: auto; }
.customer-block-menu summary { cursor: pointer; list-style: none; padding: 3px 12px; font-size: 22px; border-radius: 6px; }
.customer-block-menu[open] { z-index: 6; background: #fff; box-shadow: 0 5px 18px #18364222; padding: 5px; border: 1px solid #dce6ed; border-radius: 8px; }
.customer-block-menu[open] > button { display: block; width: 100%; margin-top: 5px; text-align: left; }
.customer-insert-slot { display: block; width: 100%; padding: 11px; border: 1px dashed #a8c7bd; background: #f7fbf9; color: #367665; border-radius: 8px; font: inherit; font-size: 11px; cursor: pointer; margin-top: 10px; }
.is-drop-target, .is-dragging-block .customer-insert-slot:hover { outline: 3px solid #36a88d; outline-offset: 2px; background: #e5f8ed; }
.customer-block-builder button:focus-visible, .customer-block-builder summary:focus-visible { outline: 3px solid #3c9d89; outline-offset: 3px; }
.customer-simulator section { padding: 12px 0; border-bottom: 1px solid #e0e8ee; }
.customer-simulator section .btn { margin: 3px; }
.customer-simulator ol { padding-left: 22px; font-size: 12px; line-height: 1.8; }
.customer-outcome-row { display: grid; gap: 8px; padding: 12px; margin-bottom: 10px; border: 1px solid #e1e9e6; border-radius: 8px; }
.customer-outcome-row > .btn { justify-self: end; }
.customer-funnel-header label { display: grid; gap: 6px; font-size: 12px; color: #506576; }
.customer-funnel-header select { min-width: 180px; }
.customer-funnel-tabs .btn:not(.secondary) { background: #e9f7f1; color: #176b5d; box-shadow: none; border-color: #b6dacc; }
.customer-block-title { background: transparent; border: 0; padding: 3px 0; color: inherit; text-align: left; cursor: pointer; font: inherit; }
@media (max-width: 1250px) {
  .customer-block-builder, .customer-block-builder.is-editing { grid-template-columns: 180px minmax(0, 1fr); }
  .customer-block-builder .customer-builder-editor { grid-column: 2; position: fixed; right: 16px; top: 90px; width: min(350px, calc(100vw - 32px)); z-index: 25; box-shadow: 0 8px 40px #142a3d33; }
}
@media (max-width: 760px) {
  .customer-block-builder, .customer-block-builder.is-editing { display: block; }
  .customer-block-library { position: static; max-height: 250px; margin-bottom: 12px; }
  .customer-block-builder .customer-builder-toolbar { top: 64px; }
  .customer-block-builder .customer-builder-editor { right: 8px; top: 74px; width: calc(100vw - 16px); max-height: calc(100dvh - 88px); }
}

/* Funnelbouwer: scoped workspace, compact canvas cards and a separate inspector. */
.customer-visual-builder.customer-block-builder,
.customer-visual-builder.customer-block-builder.is-editing {
  --builder-ink: #17243b;
  --builder-muted: #62728b;
  --builder-line: #dde5ed;
  --builder-surface: #f5f7fa;
  --builder-teal: #008b76;
  --builder-mint: #e9f8f3;
  display: block;
  min-width: 0;
  max-width: 100%;
  color: var(--builder-ink);
  font-size: 14px;
}
.customer-visual-builder *, .customer-visual-builder *::before, .customer-visual-builder *::after { box-sizing: border-box; }
.customer-visual-builder [hidden] { display: none !important; }
.customer-visual-builder .muted { color: var(--builder-muted); }
.customer-visual-builder small { font-size: 12px; line-height: 1.5; }
.customer-visual-builder .btn { min-height: 36px; padding: 7px 11px; font-size: 13px; line-height: 1.4; border-radius: 8px; box-shadow: none; text-transform: none; letter-spacing: normal; }
.customer-visual-builder .btn::after { display: none; }
.customer-visual-builder .btn:hover { transform: none; box-shadow: none; }
.customer-visual-builder .btn.small { min-height: 32px; padding: 5px 8px; font-size: 12px; }
.customer-visual-builder .btn.secondary { color: #435870; background: #fff; border: 1px solid var(--builder-line); }
.customer-visual-builder .btn.secondary:hover:not(:disabled) { color: var(--builder-ink); background: #f1f5f8; border-color: #bdcdd5; }
.customer-visual-builder .btn[data-builder-event="save"] { color: #fff; background: var(--builder-teal); border: 1px solid var(--builder-teal); }
.customer-visual-builder .btn:disabled { opacity: .45; cursor: default; }
.customer-visual-builder button:focus-visible,
.customer-visual-builder summary:focus-visible { outline: 3px solid #447ada; outline-offset: 3px; }
.customer-visual-builder .customer-badge { font-size: 12px; font-weight: 500; border-radius: 5px; margin: 0; padding: 3px 7px; }
.customer-visual-builder .customer-badge.done,
.customer-visual-builder .customer-action-number { color: #087b69; background: var(--builder-mint); }
.customer-visual-builder .customer-builder-toolbar { position: static; display: flex; gap: 12px; min-height: 70px; margin: 0; padding: 12px 16px; background: #fff; border: 1px solid var(--builder-line); border-radius: 12px 12px 0 0; }
.customer-visual-builder .customer-builder-toolbar > div:first-child { flex: 1 1 180px; min-width: 0; }
.customer-visual-builder .customer-builder-toolbar strong { font-size: 20px; font-weight: 650; letter-spacing: -.35px; overflow-wrap: anywhere; }
.customer-visual-builder .customer-builder-toolbar .muted { margin-top: 6px; line-height: 1.5; }
.customer-visual-builder .customer-builder-toolbar .customer-buttons { gap: 7px; }
.customer-visual-builder .customer-builder-workspace { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; min-width: 0; border: 1px solid var(--builder-line); border-top: 0; border-radius: 0 0 12px 12px; background: var(--builder-surface); }
.customer-visual-builder.is-editing .customer-builder-workspace { grid-template-columns: 230px minmax(0, 1fr) 330px; }
.customer-visual-builder .customer-builder-mobile-tools { display: none; }

.customer-visual-builder .customer-block-library { position: sticky; top: 90px; min-width: 0; max-height: calc(100dvh - 110px); padding: 0 12px 12px; border: 0; border-right: 1px solid var(--builder-line); border-radius: 0 0 0 12px; background: #fff; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-gutter: stable; overscroll-behavior: contain; }
.customer-visual-builder .customer-block-library h3 { font-size: 14px; margin-top: 16px; }
.customer-visual-builder .customer-block-library p { font-size: 12px; line-height: 1.6; color: var(--builder-muted); }
.customer-visual-builder .customer-block-library form { margin: 12px 0 10px; }
.customer-visual-builder .customer-block-library input { background: #fbfcfd; border-color: var(--builder-line); font-size: 14px; }
.customer-visual-builder .customer-block-library summary { padding: 11px 2px; font-size: 13px; line-height: 1.5; color: #40536c; }
.customer-visual-builder .customer-block-library details { margin-bottom: 8px; }
.customer-visual-builder .customer-builder-library-tabs,
.customer-visual-builder .customer-builder-editor-tabs { display: flex; align-items: stretch; gap: 20px; min-height: 50px; border-bottom: 1px solid var(--builder-line); }
.customer-visual-builder .customer-builder-library-tabs { position: sticky; top: 0; z-index: 1; margin: 0 -12px; padding: 0 14px; background: #fff; }
.customer-visual-builder .customer-builder-library-tabs button,
.customer-visual-builder .customer-builder-editor-tabs button { position: relative; min-height: 44px; padding: 9px 1px; border: 0; border-radius: 0; background: transparent; color: var(--builder-muted); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.customer-visual-builder .customer-builder-library-tabs button.is-active,
.customer-visual-builder .customer-builder-editor-tabs button.is-active { color: #087b69; }
.customer-visual-builder .customer-builder-library-tabs button.is-active::after,
.customer-visual-builder .customer-builder-editor-tabs button.is-active::after { content: ''; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--builder-teal); }
.customer-visual-builder .customer-library-block { gap: 8px; min-height: 42px; padding: 7px 6px; margin: 2px 0; border-color: transparent; background: #fff; font-size: 14px; line-height: 1.4; border-radius: 8px; }
.customer-visual-builder .customer-library-block > span:first-child { display: grid; place-items: center; flex: 0 0 28px; height: 30px; background: #f0f5f6; color: #568077; border-radius: 7px; }
.customer-visual-builder .customer-library-block > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.customer-visual-builder .customer-library-block > span:last-child { flex: 0 0 14px; color: #8293a4; }
.customer-visual-builder .customer-library-block small { margin-top: 3px; font-size: 12px; color: var(--builder-muted); }
.customer-visual-builder .customer-library-block:hover { border-color: #e0ece8; background: #f1f8f5; }
.customer-visual-builder .customer-builder-phase-nav { display: grid; gap: 6px; padding-top: 16px; }
.customer-visual-builder .customer-builder-phase-nav > button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 11px 9px; min-height: 44px; border: 1px solid transparent; border-radius: 8px; background: #fff; color: #435870; font: inherit; font-size: 14px; line-height: 1.5; text-align: left; white-space: normal; cursor: pointer; }
.customer-visual-builder .customer-builder-phase-nav > button.is-active { color: #087b69; background: var(--builder-mint); }
.customer-visual-builder .customer-builder-phase-nav > button:hover { background: #f1f7f5; }

.customer-visual-builder .customer-builder-main { min-width: 0; padding: 10px; }
.customer-visual-builder .customer-builder-phases { gap: 10px; margin: 0; }
.customer-visual-builder .customer-builder-phase { min-width: 0; border-color: var(--builder-line); border-radius: 10px; scroll-margin-top: 94px; }
.customer-visual-builder .customer-builder-phase.expanded { border-color: #cadfd7; }
.customer-visual-builder .customer-builder-toggle { gap: 9px; min-height: 56px; padding: 10px 12px; color: var(--builder-ink); font-size: 14px; font-weight: 600; line-height: 1.45; }
.customer-visual-builder .customer-builder-toggle > span:not(.customer-builder-chevron):not(.customer-builder-phase-number) { min-width: 0; overflow-wrap: anywhere; }
.customer-visual-builder .customer-builder-toggle:hover { background: #f7fbfa; }
.customer-visual-builder .customer-builder-toggle small { margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--builder-muted); }
.customer-visual-builder .customer-builder-phase-number { width: 28px; height: 28px; flex-basis: 28px; border-radius: 7px; background: var(--builder-mint); color: #087b69; font-size: 12px; font-variant-numeric: tabular-nums; }
.customer-visual-builder .customer-builder-chevron { font-size: 19px; color: #74899a; }
.customer-visual-builder .customer-builder-phase-body { border-color: var(--builder-line); }
.customer-visual-builder .customer-builder-phase-tools { gap: 8px; padding: 8px 12px; }
.customer-visual-builder .customer-builder-phase-tools p { flex: 1 1 180px; font-size: 12px; line-height: 1.6; }
.customer-visual-builder .customer-builder-phase-tools .customer-buttons { gap: 5px; }
.customer-visual-builder .customer-builder-viewtools { margin: 0; padding: 9px 14px; }
.customer-visual-builder .customer-builder-phase-actions { padding: 0 14px 12px; }
.customer-visual-builder .customer-builder-phase-actions > summary { padding: 8px 0; color: #526980; font-size: 13px; cursor: pointer; }
.customer-visual-builder .customer-builder-phase-actions h4 { font-size: 13px; }
.customer-visual-builder .customer-builder-viewport-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; min-width: 0; padding: 6px 10px; border-top: 1px solid var(--builder-line); background: #fbfcfd; }
.customer-visual-builder .customer-builder-viewport-hint { flex: 1 1 220px; min-width: 0; padding-right: 8px; color: var(--builder-muted); font-size: 12px; line-height: 1.5; }
.customer-visual-builder .customer-builder-viewport-tools [data-viewport-action] { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; min-height: 30px; padding: 4px 7px; border: 1px solid transparent; border-radius: 5px; color: #435870; background: #fff; font: inherit; font-size: 12px; line-height: 1.4; cursor: pointer; }
.customer-visual-builder .customer-builder-viewport-tools [data-viewport-action]:hover:not(:disabled) { color: #087b69; background: var(--builder-mint); }
.customer-visual-builder .customer-builder-viewport-tools [data-viewport-action]:disabled { opacity: .4; cursor: default; }
.customer-visual-builder .customer-builder-viewport-tools output { min-width: 40px; color: #52677d; font-size: 12px; line-height: 1.5; text-align: center; font-variant-numeric: tabular-nums; }
.customer-visual-builder .customer-builder-canvas-scroll { position: relative; min-width: 0; height: clamp(280px, calc(100dvh - 300px), 640px); max-height: none; overflow: auto; border-color: #e6edf0; background-color: #f6f8fa; background-image: radial-gradient(#cfd9e2 .7px, transparent .7px); background-size: 19px 19px; scrollbar-width: thin; scrollbar-gutter: stable; overscroll-behavior: auto; scroll-behavior: auto; }
.customer-visual-builder .customer-builder-canvas-scroll:focus-visible { outline: 3px solid #447ada; outline-offset: -3px; }
.customer-visual-builder .customer-builder-canvas-space { position: relative; min-width: 1px; min-height: 1px; overflow: clip; }
.customer-visual-builder .customer-builder-canvas-space > .customer-builder-canvas { position: absolute; top: 0; left: 0; transform-origin: top left; }
.customer-visual-builder .customer-builder-canvas { min-height: 150px; }
.customer-visual-builder .customer-builder-lines { z-index: 0; }
.customer-visual-builder .customer-builder-lines > path { stroke: #72aa9d; stroke-width: 1.7; }
.customer-visual-builder .customer-builder-lines > path.detour { stroke: #be9a68; stroke-dasharray: 5 4; }
.customer-visual-builder .customer-builder-lines > path.back { stroke: #879caf; stroke-dasharray: 4 4; }
.customer-visual-builder .customer-builder-lines > path.is-muted { opacity: .3; }
.customer-visual-builder .customer-builder-lines > path.is-selected { stroke: var(--builder-teal); stroke-width: 2; }
.customer-visual-builder .customer-builder-edge-label { position: absolute; z-index: 2; max-width: 220px; padding: 4px 7px; border: 0; border-radius: 5px; background: #f6f8fa; color: #456d61; font: inherit; font-size: 12px; line-height: 1.4; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.customer-visual-builder .customer-builder-lines > path.unknown { stroke: #be9a68; stroke-dasharray: 5 4; }
.customer-visual-builder .customer-builder-edge-label.unknown { color: #916833; background: #fbf4e9; }
.customer-visual-builder .customer-builder-edge-label.detour { color: #916833; background: #fbf4e9; }
.customer-visual-builder .customer-builder-edge-label.back { color: #687f93; }
.customer-visual-builder .customer-builder-edge-label:hover { background: #e8f3ef; }
.customer-visual-builder .customer-builder-edge-insert { position: absolute; z-index: 3; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px solid #bdd4cb; border-radius: 50%; background: #fff; color: #438570; font: inherit; font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 1px 3px #1b2c4010; }
.customer-visual-builder .customer-builder-edge-insert:hover { background: var(--builder-mint); border-color: #629f8d; }
.customer-visual-builder .customer-builder-step { z-index: 1; width: 320px; border: 1px solid #d6e0e8; border-radius: 10px; background: #fff; box-shadow: 0 2px 5px #1b2c4010; overflow: visible; transition: border-color .15s, box-shadow .15s; scroll-margin: 20px; }
.customer-visual-builder .customer-builder-step:hover { border-color: #a5bdc4; box-shadow: 0 3px 10px #1b2c4012; }
.customer-visual-builder .customer-builder-step.is-selected { border-color: var(--builder-teal); box-shadow: 0 0 0 2px #008b7620, 0 4px 12px #1b2c4010; }
.customer-visual-builder .customer-builder-step:has(.customer-block-menu[open]) { z-index: 5; }
.customer-visual-builder .customer-builder-step > header { align-items: flex-start; gap: 7px; min-height: 60px; padding: 10px; border: 0; border-radius: 10px 10px 0 0; background: #fff; }
.customer-visual-builder .customer-builder-step > header > div { min-width: 0; }
.customer-visual-builder .customer-builder-step > header strong { display: block; font-size: 14px; line-height: 1.5; font-weight: 600; }
.customer-visual-builder .customer-block-title { display: block; width: 100%; min-height: 28px; padding: 1px 0; border-radius: 3px; font-size: 14px; }
.customer-visual-builder .customer-builder-node-kind { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 400; line-height: 1.5; color: var(--builder-muted); }
.customer-visual-builder .customer-builder-handle,
.customer-visual-builder .customer-builder-port { flex-shrink: 0; min-width: 27px; min-height: 30px; padding: 2px 4px; color: #8596a8; font-size: 20px; line-height: 1.2; }
.customer-visual-builder .customer-builder-port { color: #619386; }
.customer-visual-builder .customer-builder-handle:hover,
.customer-visual-builder .customer-builder-port:hover { background: var(--builder-mint); color: #087b69; }
.customer-visual-builder .customer-builder-node-summary { padding: 0 12px 8px; color: var(--builder-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.customer-visual-builder .customer-builder-node-summary p { margin: 0 0 6px; }
.customer-visual-builder .customer-builder-node-summary p:last-child { margin-bottom: 0; }
.customer-visual-builder .customer-builder-description { padding: 0; margin: 0 0 7px; color: var(--builder-muted); font-size: 12px; line-height: 1.6; }
.customer-visual-builder .customer-builder-node-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 10px; padding: 6px 0; border-top: 1px solid #edf1f5; color: var(--builder-muted); font-size: 12px; line-height: 1.5; }
.customer-visual-builder .customer-builder-node-footer .btn { min-height: 28px; padding: 3px 6px; font-size: 12px; border-color: transparent; background: transparent; }
.customer-visual-builder .customer-builder-node-footer .customer-badge { padding: 2px 5px; }
.customer-visual-builder .customer-builder-node-tools { gap: 5px; padding: 8px 12px; }
.customer-visual-builder .customer-block-caption { gap: 5px; padding: 0; }
.customer-visual-builder .customer-builder-mobile-routes { display: none; }
.customer-visual-builder .customer-builder-add { gap: 7px; padding: 12px 14px; }
.customer-visual-builder .customer-builder-issue { margin: 8px 12px; padding: 9px 11px; font-size: 12px; line-height: 1.5; }
.customer-visual-builder .customer-builder-validation { font-size: 13px; line-height: 1.6; }

.customer-visual-builder .customer-block-menu,
.customer-visual-builder .customer-builder-phase-menu { position: relative; flex-shrink: 0; margin-left: auto; }
.customer-visual-builder .customer-block-menu > summary,
.customer-visual-builder .customer-builder-phase-menu > summary { display: grid; place-items: center; min-width: 32px; min-height: 30px; padding: 3px 8px; border: 1px solid transparent; border-radius: 6px; color: #667e94; background: #fff; font-size: 20px; line-height: 1; list-style: none; cursor: pointer; }
.customer-visual-builder .customer-block-menu > summary::-webkit-details-marker,
.customer-visual-builder .customer-builder-phase-menu > summary::-webkit-details-marker { display: none; }
.customer-visual-builder .customer-block-menu[open],
.customer-visual-builder .customer-builder-phase-menu[open] { z-index: 8; padding: 0; border: 0; border-radius: 6px; background: #fff; box-shadow: none; }
.customer-visual-builder .customer-block-menu[open] > summary,
.customer-visual-builder .customer-builder-phase-menu[open] > summary { color: #087b69; border-color: #bddacf; background: var(--builder-mint); }
.customer-visual-builder .customer-block-menu > div,
.customer-visual-builder .customer-builder-phase-menu > div { position: absolute; z-index: 10; top: calc(100% + 5px); right: 0; display: grid; gap: 4px; width: 210px; max-width: calc(100vw - 48px); padding: 6px; border: 1px solid var(--builder-line); border-radius: 9px; background: #fff; box-shadow: 0 8px 28px #17304c22; }
.customer-visual-builder .customer-block-menu > div .btn,
.customer-visual-builder .customer-builder-phase-menu > div .btn { width: 100%; justify-content: flex-start; text-align: left; border-color: transparent; font-size: 13px; white-space: normal; }
.customer-visual-builder .customer-block-menu[open] > .btn,
.customer-visual-builder .customer-builder-phase-menu[open] > .btn { display: block; width: 100%; min-width: 170px; margin-top: 4px; text-align: left; white-space: normal; }

.customer-visual-builder .customer-builder-editor { position: sticky; grid-column: auto; top: 90px; right: auto; bottom: auto; width: auto; min-width: 0; max-height: calc(100dvh - 110px); display: flex; flex-direction: column; padding: 0; border: 0; border-left: 1px solid var(--builder-line); border-radius: 0 0 12px 0; background: #fff; box-shadow: none; overflow: hidden; }
.customer-visual-builder .customer-builder-editor > header { flex-shrink: 0; min-height: 70px; padding: 16px; margin: 0; }
.customer-visual-builder .customer-builder-editor header h3 { font-size: 17px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.customer-visual-builder .customer-builder-editor > header > .btn { flex-shrink: 0; }
.customer-visual-builder .customer-builder-editor-tabs { flex-shrink: 0; min-height: 44px; padding: 0 16px; }
.customer-visual-builder .customer-builder-editor-scroll { flex: 1 1 auto; min-height: 0; padding: 14px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-gutter: stable; }
.customer-visual-builder .customer-builder-editor-scroll > :first-child { margin-top: 0; }
.customer-visual-builder .customer-builder-editor fieldset { gap: 16px; }
.customer-visual-builder .customer-builder-editor label { font-size: 13px; font-weight: 500; line-height: 1.5; color: #4b617d; }
.customer-visual-builder .customer-builder-editor input,
.customer-visual-builder .customer-builder-editor select,
.customer-visual-builder .customer-builder-editor textarea { max-width: 100%; font-size: 14px; line-height: 1.5; border-color: #d7e1ea; }
.customer-visual-builder .customer-builder-editor textarea { min-height: 80px; }
.customer-visual-builder .customer-builder-editor input[type="checkbox"] { accent-color: var(--builder-teal); }
.customer-visual-builder .customer-builder-editor footer { flex-wrap: wrap; gap: 7px; margin-top: 3px; padding-top: 15px; border-color: var(--builder-line); }
.customer-visual-builder .customer-builder-editor footer button[type="submit"] { color: #fff; border-color: var(--builder-teal); background: var(--builder-teal); }
.customer-visual-builder .customer-builder-editor .customer-form-grid { grid-template-columns: minmax(0, 1fr); }
.customer-visual-builder .customer-builder-editor .customer-structured-form { gap: 14px; }
.customer-visual-builder .customer-builder-editor .customer-info,
.customer-visual-builder .customer-builder-editor .customer-error { font-size: 12px; line-height: 1.6; }
.customer-visual-builder .customer-builder-editor .customer-catalog-choices { gap: 9px; }
.customer-visual-builder .customer-builder-editor .customer-catalog-choices article { gap: 10px; padding: 12px; }
.customer-visual-builder .customer-builder-editor .customer-builder-action { margin: 10px 0; padding: 11px; }
.customer-visual-builder .customer-builder-action strong { font-size: 14px; }
.customer-visual-builder .customer-builder-action small,
.customer-visual-builder .customer-builder-action .btn { font-size: 12px; }
.customer-visual-builder .customer-builder-routes { border-top: 0; padding: 0; }
.customer-visual-builder .customer-builder-route { margin: 0 0 16px; padding: 0 0 14px 11px; border-left-color: #65a795; border-bottom: 1px solid #e9eef2; }
.customer-visual-builder .customer-builder-route.detour { border-left-color: #c49b63; }
.customer-visual-builder .customer-builder-route.back { border-left-color: #879caf; }
.customer-visual-builder .customer-builder-route.is-unknown,
.customer-visual-builder .customer-builder-route.unknown { border-left-color: #c49b63; }
.customer-visual-builder .customer-builder-route.is-unknown .customer-builder-route-kind,
.customer-visual-builder .customer-builder-route.unknown .customer-builder-route-kind { color: #916833; }
.customer-visual-builder .customer-builder-route-kind { font-size: 12px; color: #5d7b71; letter-spacing: normal; text-transform: none; }
.customer-visual-builder .customer-builder-route strong { font-size: 14px; line-height: 1.5; }
.customer-visual-builder .customer-builder-route > div > span:last-child { font-size: 13px; line-height: 1.5; color: var(--builder-muted); }
.customer-visual-builder .customer-builder-route .btn { font-size: 12px; line-height: 1.5; }
.customer-visual-builder .customer-builder-connections { display: grid; gap: 10px; }
.customer-visual-builder .customer-insert-slot { min-height: 34px; padding: 8px; font-size: 12px; line-height: 1.5; background: #f7fbf9; border-color: #bfd6cd; }

@media (min-width: 1101px) and (max-width: 1400px) {
  .customer-visual-builder.is-editing .customer-builder-viewport-hint { flex-basis: 100%; padding-right: 0; }
}
@media (max-width: 1100px) {
  .customer-visual-builder .customer-builder-workspace,
  .customer-visual-builder.is-editing .customer-builder-workspace { grid-template-columns: minmax(0, 1fr); }
  .customer-visual-builder .customer-builder-mobile-tools { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 14px; border-inline: 1px solid var(--builder-line); background: #fff; }
  .customer-visual-builder .customer-block-library { display: none; position: static; max-height: 55dvh; border: 0; border-bottom: 1px solid var(--builder-line); border-radius: 0; }
  .customer-visual-builder.library-open .customer-block-library { display: block; }
  .customer-visual-builder .customer-builder-editor { position: fixed; z-index: 1450; top: 90px; right: 12px; bottom: 12px; width: min(390px, calc(100vw - 24px)); max-height: calc(100dvh - 102px); border: 1px solid var(--builder-line); border-radius: 12px; box-shadow: 0 10px 44px #142a3d33; }
  .customer-visual-builder .customer-builder-editor-scroll { flex: 1; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .customer-visual-builder.library-open .customer-builder-workspace { grid-template-columns: 210px minmax(0, 1fr); }
  .customer-visual-builder.library-open .customer-block-library { position: sticky; top: 90px; max-height: calc(100dvh - 110px); border-right: 1px solid var(--builder-line); border-bottom: 0; }
}
@media (max-width: 760px) {
  .customer-visual-builder .customer-builder-toolbar { gap: 13px; padding: 14px; }
  .customer-visual-builder .customer-builder-toolbar strong { font-size: 18px; }
  .customer-visual-builder .customer-builder-toolbar > .customer-buttons { width: 100%; }
  .customer-visual-builder .customer-builder-toolbar .btn { min-height: 38px; font-size: 12px; }
  .customer-visual-builder .customer-builder-main { padding: 8px; }
  .customer-visual-builder .customer-builder-toggle { padding: 12px 10px; gap: 8px; }
  .customer-visual-builder .customer-builder-phase-tools { padding: 10px; }
  .customer-visual-builder .customer-builder-phase-tools > .customer-buttons { width: 100%; }
  .customer-visual-builder .customer-builder-viewport-tools { display: none; }
  .customer-visual-builder .customer-builder-canvas-scroll { height: auto; max-height: none; overflow: visible; scrollbar-gutter: auto; }
  .customer-visual-builder .customer-builder-canvas-space { width: auto !important; height: auto !important; min-width: 0; min-height: 0; overflow: visible; }
  .customer-visual-builder .customer-builder-canvas-space > .customer-builder-canvas { position: relative; transform: none !important; }
  .customer-visual-builder .customer-builder-canvas { display: flex; flex-direction: column; align-items: stretch; gap: 18px; width: 100% !important; min-width: 0 !important; height: auto !important; min-height: 0; padding: 18px 12px; }
  .customer-visual-builder .customer-builder-step { position: relative; top: auto !important; left: auto !important; width: 100%; max-width: 440px; margin: 0 auto; transform: none !important; }
  .customer-visual-builder .customer-builder-step > header { padding: 13px; min-height: 64px; }
  .customer-visual-builder .customer-builder-lines,
  .customer-visual-builder .customer-builder-edge-label,
  .customer-visual-builder .customer-builder-edge-insert,
  .customer-visual-builder .customer-builder-handle,
  .customer-visual-builder .customer-builder-port { display: none; }
  .customer-visual-builder .customer-builder-mobile-routes { display: block; padding: 0 13px 12px; font-size: 12px; }
  .customer-visual-builder .customer-builder-mobile-routes > summary { min-height: 34px; padding: 8px 0 2px; color: #526d82; font-size: 12px; line-height: 1.5; cursor: pointer; }
  .customer-visual-builder .customer-builder-mobile-routes > div { display: grid; gap: 6px; padding-top: 8px; }
  .customer-visual-builder .customer-builder-mobile-routes .btn { width: 100%; min-height: 38px; text-align: left; white-space: normal; font-size: 12px; }
  .customer-visual-builder .customer-builder-mobile-routes .customer-builder-route { margin: 8px 0 0; padding-bottom: 8px; }
  .customer-visual-builder .customer-builder-add { padding: 10px; }
  .customer-visual-builder .customer-builder-editor { top: 74px; right: 8px; bottom: 8px; width: calc(100vw - 16px); max-height: calc(100dvh - 82px); }
  .customer-visual-builder .customer-builder-editor > header { min-height: 62px; padding: 13px 14px; }
  .customer-visual-builder .customer-builder-editor-tabs { padding: 0 14px; }
  .customer-visual-builder .customer-builder-editor-scroll { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .customer-visual-builder .customer-builder-step { transition: none; }
}

/* App fullscreen keeps the draft guard and ordinary browser controls available. */
body.customer-flow-builder-fullscreen-open { overflow: hidden; overscroll-behavior: none; }
.customer-visual-builder.customer-block-builder.customer-flow-builder--fullscreen { position: fixed; inset: 0; z-index: 1400; display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; height: 100dvh; min-height: 0; max-width: none; margin: 0; padding: 0; overflow: hidden; background: var(--builder-surface); }
.customer-flow-builder--fullscreen > .customer-builder-toolbar { position: relative; top: 0; z-index: 3; flex: 0 0 auto; width: 100%; min-height: 62px; padding: 10px 16px; border: 0; border-bottom: 1px solid var(--builder-line); border-radius: 0; }
.customer-flow-builder--fullscreen > .customer-builder-toolbar strong { font-size: 18px; }
.customer-flow-builder--fullscreen > .customer-builder-toolbar .muted { margin-top: 3px; }
.customer-flow-builder--fullscreen > .customer-builder-mobile-tools { flex: 0 0 auto; padding: 7px 12px; border-inline: 0; border-bottom: 1px solid var(--builder-line); }
.customer-flow-builder--fullscreen > .customer-builder-workspace { position: relative; flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; border: 0; border-radius: 0; overflow: hidden; }
.customer-flow-builder--fullscreen .customer-block-library { position: relative; top: 0; min-height: 0; height: 100%; max-height: none; margin: 0; border-radius: 0; }
.customer-flow-builder--fullscreen .customer-builder-main { min-height: 0; height: 100%; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-gutter: stable; overscroll-behavior: contain; }
.customer-flow-builder--fullscreen .customer-builder-phase { scroll-margin-top: 10px; }
.customer-flow-builder--fullscreen .customer-builder-canvas-scroll { height: clamp(280px, calc(100dvh - 250px), 900px); }
.customer-flow-builder--fullscreen .customer-builder-editor { position: relative; top: 0; right: auto; bottom: auto; min-height: 0; height: 100%; max-height: none; border-radius: 0; }
.customer-flow-builder--fullscreen .btn[data-builder-event="fullscreen"] { flex-shrink: 0; border-color: #bddacf; color: #087b69; background: var(--builder-mint); }
@media (min-width: 761px) {
  .customer-visual-builder .customer-builder-canvas-scroll { cursor: grab; }
  .customer-visual-builder .customer-builder-canvas-scroll .customer-builder-step { cursor: default; }
  .customer-visual-builder .customer-builder-canvas-scroll.is-panning,
  .customer-visual-builder .customer-builder-canvas-scroll.is-panning * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
}
@media (max-width: 1100px) {
  .customer-flow-builder--fullscreen.library-open .customer-block-library { position: relative; top: 0; max-height: none; }
  .customer-flow-builder--fullscreen .customer-builder-editor { position: absolute; z-index: 4; top: 8px; right: 8px; bottom: 8px; width: min(390px, calc(100% - 16px)); height: auto; max-height: calc(100% - 16px); border-radius: 10px; }
}
@media (max-width: 760px) {
  .customer-flow-builder--fullscreen > .customer-builder-toolbar { gap: 7px; min-height: 0; padding: 9px 10px; }
  .customer-flow-builder--fullscreen > .customer-builder-toolbar > div:first-child { flex-basis: 100%; }
  .customer-flow-builder--fullscreen > .customer-builder-toolbar > .customer-buttons { flex-wrap: nowrap; gap: 5px; min-width: 0; padding-bottom: 2px; overflow-x: auto; scrollbar-width: thin; overscroll-behavior-x: contain; }
  .customer-flow-builder--fullscreen > .customer-builder-toolbar .btn { flex-shrink: 0; min-height: 34px; }
  .customer-flow-builder--fullscreen > .customer-builder-toolbar [data-builder-event="fullscreen"] { order: -1; }
  .customer-flow-builder--fullscreen > .customer-builder-workspace { display: flex; flex-direction: column; }
  .customer-flow-builder--fullscreen.library-open .customer-block-library { flex: 0 0 auto; height: auto; max-height: min(320px, 38dvh); }
  .customer-flow-builder--fullscreen .customer-builder-main { flex: 1 1 auto; height: auto; }
  .customer-flow-builder--fullscreen .customer-builder-canvas-scroll { height: auto; }
  .customer-flow-builder--fullscreen .customer-builder-editor { width: calc(100% - 16px); }
}
