.workflow-layout{display:grid;gap:24px}.wf-designer .workflow-canvas{display:flex;align-items:stretch;gap:0;overflow-x:auto;min-height:230px;padding:24px 12px;background:var(--surface-muted,#f0f4fa);border:1px solid var(--line,#dce4ef);border-radius:14px;scrollbar-width:thin}.wf-editor-form{min-width:0}.wf-palette{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0}.wf-palette .btn{border-style:dashed;background:var(--surface,#fff);font-size:.85rem;cursor:grab}.wf-palette .btn:active{cursor:grabbing}.wf-endpoint{display:flex;flex:0 0 112px;align-items:center;justify-content:center;align-self:center;min-height:68px;min-width:90px;border:2px solid var(--primary,#163e70);border-radius:40px;padding:13px;color:var(--primary,#163e70);background:var(--surface,#fff);font-weight:700;text-align:center;font-size:.88rem}.wf-endpoint.end{border-color:var(--success,#1c8065);color:var(--success,#1c8065)}.wf-steps{display:flex;align-items:stretch;min-width:0}.wf-card{position:relative;flex:0 0 218px;align-self:stretch;background:var(--surface,#fff);border:1px solid var(--line,#dce4ef);border-top:4px solid var(--primary,#163e70);border-radius:12px;min-width:200px;max-width:240px;padding:14px;box-shadow:0 4px 12px #0b24400a}.wf-card.dragging{opacity:.45}.wf-card.invalid{border-color:var(--danger,#b33a3a)}.wf-card h3{font-size:.96rem;overflow-wrap:anywhere;margin:10px 0 6px}.wf-card .wf-detail{display:block;min-height:36px;font-size:.81rem;line-height:1.45;color:var(--muted,#617086);overflow-wrap:anywhere}.wf-card .step-number{display:grid;place-items:center;min-width:27px;min-height:27px;margin:0;border-radius:50%;background:var(--surface-muted,#f0f4fa);color:var(--primary,#163e70);font-size:.8rem}.wf-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.wf-grip{display:inline-flex;align-items:center;gap:5px;min-height:32px;border:0;border-radius:6px;padding:3px 7px;background:transparent;color:var(--muted,#617086);font-size:.78rem;cursor:grab;touch-action:none;user-select:none}.wf-grip:focus-visible{outline:3px solid var(--focus,#3f84cc);outline-offset:2px}.wf-grip:active{cursor:grabbing}.wf-card-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.wf-card-actions .btn{font-size:.75rem;min-height:33px;padding:6px 9px}.wf-dropzone{position:relative;display:flex;flex:0 0 44px;min-width:44px;align-items:center;justify-content:center;padding:0 5px}.wf-dropzone::before{content:'';position:absolute;left:0;right:0;top:50%;height:2px;background:var(--line,#dce4ef)}.wf-dropzone::after{content:'';position:absolute;right:1px;top:calc(50% - 4px);width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:7px solid var(--line,#dce4ef)}.wf-insert{position:relative;z-index:1;display:grid;place-items:center;border:1px solid var(--line,#dce4ef);border-radius:50%;width:27px;height:27px;background:var(--surface,#fff);color:var(--primary,#163e70);font-size:1.1rem;cursor:pointer}.wf-dropzone.is-over{background:color-mix(in srgb,var(--primary,#163e70) 12%,transparent);outline:2px dashed var(--primary,#163e70);outline-offset:-3px;border-radius:8px}.wf-dropzone.is-over .wf-insert{background:var(--primary,#163e70);color:var(--primary-contrast,#fff)}.wf-draft-status{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;padding:10px 0;color:var(--muted,#617086);font-size:.85rem}.wf-selected-summary{padding:12px 14px;margin:15px 0;background:var(--surface-muted,#f0f4fa);border-radius:9px;font-size:.88rem;line-height:1.6}.wf-preview{margin-top:15px}.wf-preview .chain{display:flex;gap:10px;overflow:auto;margin-top:12px;padding-bottom:8px}.wf-preview .chain-item{flex:0 0 190px;border:1px solid var(--line,#dce4ef);background:var(--surface-muted,#f0f4fa);border-radius:9px;padding:12px}.wf-preview .chain-item small{display:block;margin-top:5px}.wf-search-results{display:grid;gap:4px;max-height:220px;overflow:auto}.wf-search-results .btn{text-align:left;justify-content:flex-start;white-space:normal}.wf-search-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;font-size:.8rem}.wf-search-pagination .btn{font-size:.75rem;min-height:31px;padding:5px 9px}.wf-person-chosen{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}.wf-person-chosen .btn{font-size:.75rem;min-height:29px;padding:4px 8px}.wf-person-result-meta{display:block;font-size:.75rem;color:var(--muted,#617086);font-weight:400}.wf-library{margin-top:4px}.wf-library>summary{cursor:pointer;font-weight:650;padding:16px 0;color:var(--ink,#142b49)}.guide-index{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.guide-index a{display:inline-flex;padding:8px 11px;border:1px solid var(--line,#dce4ef);background:var(--surface,#fff);border-radius:8px;font-size:.84rem}.guide-step{scroll-margin-top:90px}.guide-step.is-highlighted{outline:3px solid var(--primary,#163e70);outline-offset:4px}.guide-step .guide-context{font-size:.8rem;color:var(--muted,#617086);padding-top:10px;border-top:1px solid var(--line,#dce4ef)}.guide-step:focus-visible{outline:3px solid var(--focus,#3f84cc);outline-offset:4px}.wf-form-error:empty{display:none}.wf-form-error:not(:empty){padding:12px;border:1px solid var(--danger,#b33a3a);border-radius:8px;background:var(--surface,#fff)}
@media(max-width:850px){.wf-designer .workflow-canvas{flex-direction:column;align-items:center;overflow-x:visible;padding:18px 12px}.wf-steps{width:100%;flex-direction:column;align-items:center}.wf-endpoint{flex:auto;width:150px;min-height:52px}.wf-card{width:100%;max-width:430px;min-width:0;flex:auto}.wf-dropzone{flex:auto;min-height:45px;width:min(100%,430px);padding:7px 0}.wf-dropzone::before{top:0;bottom:0;left:50%;right:auto;width:2px;height:auto}.wf-dropzone::after{right:auto;left:calc(50% - 4px);top:auto;bottom:0;border-top:7px solid var(--line,#dce4ef);border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:0}.wf-card .wf-detail{min-height:0}.wf-card-actions .btn{min-height:38px}.wf-grip{min-height:38px}.wf-palette .btn{min-height:40px}.wf-search-pagination{flex-wrap:wrap}.wf-preview .chain-item{flex-basis:170px}}
@media(prefers-reduced-motion:reduce){.wf-designer *{scroll-behavior:auto!important}}
.wf-editor-fieldset{border:0;margin:0;padding:0;min-width:0}.wf-editor-fieldset:disabled{opacity:.8}.wf-palette .btn{touch-action:none}
.process-fields{display:grid;gap:10px;margin:12px 0}.process-field-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line,#dce4ef);border-radius:9px;background:var(--surface-muted,#f0f4fa)}.process-field-card .wf-card-actions{margin:0}.process-schema-editor{grid-column:1/-1;min-width:0}.process-summary{margin:14px 0}.process-summary p{margin:7px 0}.process-check{display:flex;align-items:center;gap:9px;min-height:42px;font-size:.88rem}.process-check input{width:auto;min-width:18px}.process-field-card strong{overflow-wrap:anywhere}@media(max-width:650px){.process-field-card{align-items:flex-start;flex-direction:column}.process-field-card .wf-card-actions .btn{min-height:38px}}
