.workflow-management {border:1px solid #ded6e5;background:var(--surface,#fff);min-width:0}
.workflow-management-head {padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #ded6e5}
.workflow-management h2,.workflow-management h3 {margin:0;letter-spacing:0}
.workflow-management h2 {font-size:21px}.workflow-management h3 {font-size:15px}
.workflow-management-head p {margin:6px 0 0;color:var(--muted,#6a6171);font-size:13px}
.workflow-rule {display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:16px;align-items:start;padding:20px 24px;border-bottom:1px solid #e8e2ed}
.workflow-rule:last-child {border-bottom:0}
.workflow-rule-symbol {display:grid;place-items:center;width:36px;height:36px;border-radius:6px;background:#f1eaf6;color:#643182}
.workflow-rule-symbol svg,.case-workflow-hints h3 svg {width:18px;height:18px}
.workflow-rule-title {display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.workflow-rule-copy,.case-workflow-hint>div {min-width:0;overflow-wrap:anywhere}
.workflow-rule-copy p {margin:7px 0 10px;font-size:14px;color:inherit}
.workflow-rule-meta {display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12px;color:var(--muted,#6a6171)}
.workflow-rule-controls {display:flex;align-items:center;gap:8px}
.workflow-rule-controls .icon-button {width:34px;height:34px}
.workflow-rule-switch {display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer;white-space:nowrap}
.workflow-rule-switch input {width:18px!important;height:18px;accent-color:#643182;margin:0}
.workflow-basis {font-size:13px;line-height:1.6;background:#f6f3f8;padding:12px 14px;border-left:3px solid #643182;margin:0;color:#4d4355}
#workflow-form textarea {min-height:100px}
[data-workflow-error] {color:#a13248;overflow-wrap:anywhere}
.case-workflow-hints:empty {display:none}
.case-workflow-hints {margin:0 0 24px;border-top:3px solid #643182;background:var(--surface,#fff);border-bottom:1px solid #ded6e5}
.case-workflow-hints header {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #e8e2ed}
.case-workflow-hints h3 {display:flex;align-items:center;gap:9px;margin:0;font-size:16px;color:#643182}
.case-workflow-hints header>span {font-size:12px;color:var(--muted,#6a6171)}
.case-workflow-hint {display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border-bottom:1px solid #eee9f2}
.case-workflow-hint:last-child {border-bottom:0}
.case-workflow-hint strong {font-size:14px}.case-workflow-hint p {font-size:14px;line-height:1.6;margin:7px 0}
.case-workflow-hint small {color:var(--muted,#6a6171);font-size:12px}.case-workflow-hint button {flex-shrink:0}
.workflow-hints-error {font-size:13px;color:#a13248}
html[data-workspace-theme="dark"] .workflow-management,html[data-workspace-theme="dark"] .workflow-rule,html[data-workspace-theme="dark"] .workflow-management-head,html[data-workspace-theme="dark"] .case-workflow-hint,html[data-workspace-theme="dark"] .case-workflow-hints header {border-color:var(--line,#483950)}
html[data-workspace-theme="dark"] .case-workflow-hints h3 {color:var(--compact-accent,#d6b1eb)}
html[data-workspace-theme="dark"] .workflow-rule-symbol,html[data-workspace-theme="dark"] .workflow-basis {background:#382941;color:#e8d8f3}
@media(max-width:1000px){.workflow-rule{grid-template-columns:36px minmax(0,1fr)}.workflow-rule-controls{grid-column:2;justify-content:flex-end}}
@media(max-width:600px){.workflow-management-head{padding:16px;align-items:flex-start;flex-wrap:wrap}.workflow-rule{padding:16px;gap:10px}.workflow-rule-controls{justify-content:flex-start}.case-workflow-hint{align-items:flex-start;flex-direction:column;gap:10px}.workflow-rule-title .status{max-width:100%}}
