/* Advanced node settings stay collapsed until the user opens them with the pencil. */
.flow-card .step-config{display:none!important}
.flow-card .mini-step.step-expanded .step-config{display:grid!important}
.flow-card .step-heading{gap:5px}
.flow-card .step-drag{border:0;background:transparent;color:#71817c;cursor:grab;touch-action:none;padding:4px;font-size:18px;line-height:1}
.flow-card .step-drag:focus-visible{outline:2px solid #16835a;border-radius:4px}
.flow-card .step-drag:active{cursor:grabbing}
.flow-card .mini-step.step-dragging{opacity:.6;outline:2px dashed #16835a;outline-offset:-2px}
.flow-card .step-heading .step-edit{margin-left:auto;color:#63756e}
.flow-card .step-heading [data-remove-step]{margin-left:0}
.flow-card .node-edit{flex:0 0 24px;width:24px;height:24px;border:0;border-radius:7px;background:transparent;color:#71817c;font-size:15px;cursor:pointer}
.flow-card .node-edit:hover,.flow-card .step-heading .step-edit:hover{background:#eaf3ee;color:#126447}
.flow-card .card-menu{padding:4px 3px}
.builder-body .properties{transition:opacity .16s ease,transform .16s ease}
.builder-body .properties:not(.open){visibility:hidden;pointer-events:none;opacity:0;transform:translateX(8px)}
.builder-body .properties.open{visibility:visible;pointer-events:auto;opacity:1;transform:translateX(0)}
.builder.open .builder-body .properties.open{display:block!important}
@media(max-width:1050px){.builder.open .builder-body .properties.open{right:260px;top:58px;bottom:0;width:250px;z-index:5}}
@media(max-width:700px){.builder.open .builder-body .properties.open{right:188px;top:58px;bottom:0;width:min(250px,calc(100vw - 188px));z-index:5}}

/* Cleaner funnel list: editing is the primary action; sharing stays a compact icon. */
.workspace{margin-top:auto}
.flow-list .flow-info h3{display:inline;margin:0;line-height:1.5}
.flow-list .flow-info p{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:7px}
.flow-list .flow-info p .flow-path{background:transparent;padding:0;color:var(--muted);max-width:290px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.flow-list .flow-info p time{color:var(--muted);font-size:10px}
.flow-list .flow-state{display:inline-flex;margin-left:9px;border-radius:12px;padding:3px 8px;font-size:10px;vertical-align:middle}
.flow-list .flow-state.published{background:#e3f3ea;color:#14714d}
.flow-list .flow-state.draft{background:#f1f3f2;color:#697b73}
.flow-tools svg,.flow-cover svg{width:18px;height:18px;flex:none}
.flow-cover svg{width:28px;height:28px;margin-bottom:6px}
.flow-tools button:focus-visible,.flow-info:focus-visible{outline:2px solid #23835d;outline-offset:3px}
.flow-empty{padding:60px 24px;border:1px dashed #cedbd5;border-radius:20px;background:#ffffffa0;color:var(--muted);text-align:center}
.dashboard-note{color:var(--muted);font-size:13px;margin:0 0 20px}
.flow-card .step-summary{margin:3px 0 8px 25px;color:#60746a;font-size:11px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.flow-card .step-expanded .step-summary{display:none}
.properties-close{float:right;border:0;background:#edf3ef;color:#4a6358;border-radius:50%;width:26px;height:26px;font-size:18px;cursor:pointer}
.flow-list article{grid-template-columns:118px 48px minmax(180px,1fr) auto;min-height:106px;padding:10px 12px;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.flow-list article:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(14,53,47,.09);border-color:#cbded5}
.flow-info h3{font-size:15px}
.flow-tools{gap:4px;padding:5px 7px}
.flow-tools button{width:34px;min-width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;font-size:15px}
.flow-tools .edit-flow,.flow-tools .edit-quiz{width:auto;min-width:92px;gap:7px;padding:0 14px;border:1px solid #0c4837;background:#0c4837;color:white;font:700 12px 'DM Sans';box-shadow:0 4px 10px rgba(12,72,55,.16)}
.flow-tools .edit-flow:hover,.flow-tools .edit-quiz:hover{background:#17634a;color:#fff}
.flow-tools .edit-flow span,.flow-tools .edit-quiz span{display:inline}
.flow-tools .share-flow{width:34px;min-width:34px;padding:0;background:#fff;color:#17634a;border:1px solid #dce7e2;font-size:18px}
.flow-tools .share-flow:hover{background:#eaf5ef}
.flow-tools .delete-flow{font-size:17px}
.chart-empty{display:grid;place-items:center;text-align:center}
.chart-empty p,.empty-activity{color:var(--muted);font-size:13px;text-align:center}
.empty-activity{padding:32px 12px}
@media(max-width:1050px){.flow-list article{grid-template-columns:84px 38px minmax(130px,1fr) auto}.flow-tools{grid-column:auto;justify-self:end}}
@media(max-width:700px){.flow-list article{grid-template-columns:68px 1fr;gap:8px}.flow-tools{grid-column:1/-1;justify-self:stretch;justify-content:flex-end}.flow-tools .edit-flow,.flow-tools .edit-quiz{margin-right:auto}.flow-tools button{width:32px;min-width:32px}}
