.workflow-manager,.workflow-dialog{--wf-bg:#fff;--wf-soft:#f5f7fb;--wf-text:#243e59;--wf-muted:#6d8097;--wf-border:#dde6f0;--wf-accent:#4e69cd;color:var(--wf-text);font-family:inherit}[data-theme=dark] .workflow-manager,[data-theme=dark] .workflow-dialog{--wf-bg:#142439;--wf-soft:#1b2e47;--wf-text:#deebfb;--wf-muted:#a5b9d2;--wf-border:#324961;--wf-accent:#a5b7ff}.workflow-manager{max-width:1200px;margin:auto;padding:24px}.wf-heading,.wf-fields-heading,.wf-editor footer{display:flex;align-items:center;justify-content:space-between;gap:16px}.wf-heading{margin-bottom:22px}.wf-heading h1{font-size:26px;margin:7px 0}.wf-heading span{font-size:12px;color:var(--wf-accent)}.wf-heading p{font-size:13px;color:var(--wf-muted);line-height:1.9}.wf-template-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;margin-bottom:22px}.wf-template-list article,.wf-editor{border:1px solid var(--wf-border);border-radius:17px;background:var(--wf-bg);padding:20px}.wf-template-list h2{font-size:15px;margin:0 0 9px}.wf-template-list small{font-size:11px;color:var(--wf-muted)}.wf-template-list article>div:last-child{display:flex;gap:8px;align-items:center;margin-top:15px}.wf-template-list form{margin:0}.wf-editor h2{font-size:19px;margin:0 0 20px}.wf-editor h3{font-size:15px}.wf-editor form,.workflow-dialog form{display:flex;flex-direction:column;gap:17px}.wf-editor label,.workflow-field,.workflow-dialog [data-preview] label{display:flex;flex-direction:column;gap:8px;font-size:13px}.wf-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.workflow-manager :is(input:not([type=checkbox]),select,textarea),.workflow-dialog :is(input:not([type=checkbox]),select,textarea){font:inherit;line-height:1.8;box-sizing:border-box;width:100%;padding:11px 12px;background:var(--wf-soft);border:1px solid var(--wf-border);color:var(--wf-text);border-radius:10px;min-width:0}.workflow-manager :is(input,select,textarea):focus,.workflow-dialog :is(input,select,textarea):focus{outline:2px solid #7e9de544;outline-offset:2px;border-color:#8fa8e4}.wf-question{margin:0 0 12px;padding:17px;border:1px solid var(--wf-border);background:var(--wf-soft);border-radius:13px;display:flex;flex-direction:column;gap:12px}.wf-question .wf-grid{grid-template-columns:2fr 1fr}.wf-question-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.wf-question-actions label,.wf-editor .wf-enabled{display:flex;flex-direction:row;align-items:center;gap:7px;font-size:12px}.wf-question-actions button{font:inherit;font-size:11px;cursor:pointer;padding:7px 10px;border:1px solid var(--wf-border);color:var(--wf-muted);background:var(--wf-bg);border-radius:8px}.wf-error,[data-wf-error]{color:#bd5169;font-size:13px;line-height:1.9}.wf-question [hidden],.workflow-dialog [hidden]{display:none!important}.workflow-dialog{box-sizing:border-box;padding:24px;border:1px solid var(--wf-border);border-radius:22px;background:var(--wf-bg);width:min(570px,calc(100% - 24px));max-height:calc(100dvh - 30px);overflow:auto;box-shadow:0 24px 90px #07172a55}.workflow-dialog::backdrop{background:#0c1b36aa;backdrop-filter:blur(4px)}.workflow-dialog header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:20px}.workflow-dialog h2{margin:6px 0;font-size:21px}.workflow-dialog small{font-size:11px;color:var(--wf-accent)}.workflow-dialog [data-close]{border:1px solid var(--wf-border);border-radius:50%;background:var(--wf-soft);color:var(--wf-text);width:32px;height:32px;font-size:23px;cursor:pointer}.workflow-dialog [data-fields]{display:grid;gap:17px}.workflow-options{display:flex;gap:9px;flex-wrap:wrap}.workflow-options label{display:flex;align-items:center;gap:7px;border:1px solid var(--wf-border);background:var(--wf-soft);padding:9px 12px;border-radius:9px;font-size:12px}.workflow-dialog footer{display:flex;justify-content:flex-end;gap:9px}.workflow-dialog [data-status]{font-size:12px;line-height:1.8;color:var(--wf-muted)}.workflow-dialog .btn{border-radius:10px;padding:10px 15px;font:inherit;font-size:12px;cursor:pointer;min-height:39px}.workflow-dialog .btn.primary{background:#4e69cd;border:1px solid #4e69cd;color:#fff}.workflow-dialog .btn.soft{background:var(--wf-soft);border:1px solid var(--wf-border);color:var(--wf-text)}.workflow-dialog input[type=checkbox],.workflow-manager input[type=checkbox]{accent-color:#4e69cd}.inline-chart-lesson{clear:both;margin:16px 0!important;min-width:0;max-width:100%}.inline-chart-lesson>h4{font-size:13px!important;margin:0 0 8px!important}.inline-chart-lesson>p{font-size:11px!important;line-height:1.9!important}.inline-chart-lesson>.btn[hidden]{display:none!important}
@media(max-width:680px){.workflow-manager{padding:17px 12px}.wf-heading{align-items:flex-start}.wf-heading h1{font-size:21px}.wf-grid,.wf-question .wf-grid{grid-template-columns:1fr}.wf-editor,.wf-question{padding:15px}.workflow-dialog{padding:19px}.workflow-dialog footer>.btn{flex:1}.inline-chart-lesson{padding:9px!important}.inline-chart-lesson .hc-header{flex-wrap:wrap}}
