/* Workflow drafts use the same quiet green palette as the builder. */
.wf-page{min-width:0}
.wf-page .builder-progress{grid-template-columns:repeat(3,minmax(0,1fr))}
.wf-page .page-heading{align-items:flex-start}
.wf-page .page-heading>div{min-width:0}
.wf-page .page-heading h1{overflow-wrap:anywhere}
.wf-page .btn:disabled{opacity:1;color:#8a948c;background:#f1f3ee;border-color:#e1e6dc;transform:none}
.wf-page :is(button,input,select,textarea):focus-visible{outline:3px solid #93ba77;outline-offset:3px}
.wf-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0 22px}
.wf-meta .pill{font-size:10px;padding:5px 8px}
.wf-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:15px 18px;margin-bottom:20px;background:#f0f4eb;border:1px solid #e0e8d7;border-radius:9px}
.wf-toolbar>.button-group{justify-content:flex-end;flex-shrink:0}
.wf-status{font-size:11px;line-height:1.65;color:#607052;overflow-wrap:anywhere}
.wf-status[data-tone=error],.wf-status [data-tone=error]{color:#a24638}
.wf-status[data-tone=success],.wf-status [data-tone=success]{color:#3b6845}
.wf-status[data-tone=warning],.wf-status [data-tone=warning]{color:#846329}
.wf-layout{display:grid;grid-template-columns:280px minmax(0,1fr);align-items:start;gap:20px}
.wf-layout>*{min-width:0}
.wf-sidebar.panel-pad{padding:19px 14px}
.wf-sidebar>.subhead{margin:0 10px 14px}
.wf-step{display:flex;align-items:flex-start;gap:11px;width:100%;padding:14px 10px;border:1px solid transparent;border-radius:8px;text-align:left;margin:4px 0;color:#75816e;transition:background .15s,border-color .15s}
.wf-step:hover{background:#f4f7ef}
.wf-step.selected,.wf-step[aria-current=step]{background:#eaf1df;border-color:#d7e3c9;color:#294e36}
.wf-step-number{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;background:white;border:1px solid #dfe6d5;border-radius:7px;font-size:10px;color:#81916e}
.wf-step.selected .wf-step-number,.wf-step[aria-current=step] .wf-step-number{background:#315e45;color:white;border-color:#315e45}
.wf-step>span:last-child{min-width:0}
.wf-step strong{display:block;font-size:12px;line-height:1.55;font-weight:600;overflow-wrap:anywhere}
.wf-step small{display:block;font-size:10px;line-height:1.55;margin-top:4px;color:#7a8972;overflow-wrap:anywhere}
.wf-inspector{min-height:410px}
.wf-inspector h2{font-size:19px}
.wf-inspector h3{font-size:14px}
.wf-field{display:block;margin:20px 0;color:#4e6347;font-size:12px;font-weight:500;line-height:1.6;min-width:0}
.wf-field input,.wf-field select,.wf-field textarea{display:block;width:100%;max-width:100%;min-width:0;margin-top:8px;border:1px solid #d9e2d0;border-radius:7px;background:#fff;padding:11px 12px;color:#344e3c;font:400 13px/1.65 'DM Sans',sans-serif}
.wf-field textarea{min-height:170px;resize:vertical}
.wf-field input:hover,.wf-field select:hover,.wf-field textarea:hover{border-color:#b6c7a4}
.wf-field input[aria-invalid=true],.wf-field select[aria-invalid=true],.wf-field textarea[aria-invalid=true]{border-color:#ba7162;background:#fffaf8}
.wf-field select{padding-right:25px}
.wf-help{display:block;margin-top:7px;color:#7c8875;font-size:11px;font-weight:400;line-height:1.7}
.wf-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:24px 0 14px}
.wf-section-heading h2,.wf-section-heading h3{margin:0}
.wf-section-heading p{font-size:11px;color:#7c8875;margin-top:5px}
.wf-rule{background:#fafbf7;border:1px solid #e1e8d8;border-radius:9px;padding:17px;margin:12px 0}
.wf-rule-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#4c6843;font-weight:600}
.wf-rule-heading h3{font:600 12px 'DM Sans',sans-serif}
.wf-rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 15px}
.wf-rule-grid .wf-field{margin:13px 0 3px}
.wf-remove{display:inline-flex;align-items:center;gap:5px;padding:6px 8px;border-radius:5px;color:#a16b56;font-size:11px;font-weight:400}
.wf-remove:hover{background:#f7ece4;color:#8c4b38}
.wf-empty{border:1px dashed #d8e1cd;background:#fbfcf8;border-radius:8px;padding:21px;color:#7a8970;font-size:12px;line-height:1.8;text-align:center}
.wf-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:24px;padding-top:20px;border-top:1px solid #e5e9e1}
.wf-footer p{font-size:11px;line-height:1.7;color:#7a8772;max-width:440px}
.wf-footer .button-group{justify-content:flex-end}
.wf-tests{display:grid;gap:10px;margin:18px 0}
.wf-test{position:relative;padding:16px 18px 16px 43px;border:1px solid #e2e8da;border-radius:8px;background:#fbfcf8;min-width:0}
.wf-test:before{position:absolute;left:16px;top:18px;content:'•';color:#91a17f;font-size:14px;line-height:1}
.wf-test.passed:before{content:'✓';color:#567b45}
.wf-test.failed{border-color:#e6c8bf;background:#fffaf7}
.wf-test.failed:before{content:'!';color:#a45d47;font-weight:700}
.wf-test h3,.wf-test strong{display:block;font:600 12px/1.6 'DM Sans',sans-serif;color:#3e583e}
.wf-test p,.wf-test small{display:block;font-size:11px;color:#74816b;line-height:1.75;margin-top:6px;overflow-wrap:anywhere}
.wf-test.failed h3,.wf-test.failed strong{color:#8a4d3a}
.wf-diff{border:1px solid #e2e7dc;border-radius:9px;overflow:hidden;margin:15px 0;background:#fff}
.wf-diff>h3,.wf-diff>strong{display:block;padding:13px 16px;background:#f7f9f3;border-bottom:1px solid #e4e9dd;font:600 12px/1.6 'DM Sans',sans-serif;color:#4b6343}
.wf-diff-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.wf-before,.wf-after{min-width:0;padding:16px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.8;color:#78806f}
.wf-before{background:#fcfaf6;border-right:1px solid #e9e8df}
.wf-after{background:#f4f8ed;color:#41633e}
.wf-before small,.wf-after small{display:block;font-size:9px;font-weight:600;letter-spacing:1px;text-transform:uppercase;color:#8a9281;margin-bottom:8px}
.wf-after small{color:#6a875b}
.wf-review-summary{padding:18px 20px;margin:18px 0;background:#edf3e5;border:1px solid #dce7d0;border-radius:9px;color:#4d6b40;font-size:12px;line-height:1.85}
.wf-review-summary strong{font-weight:600}
.wf-confirm{display:flex;align-items:flex-start;gap:10px;margin:22px 0;font-size:12px;line-height:1.8;color:#506449}
.wf-confirm input{width:16px;height:16px;flex:0 0 16px;margin:3px 0 0;accent-color:#315e45}
.wf-readonly{padding:14px 16px;margin:17px 0;background:#f6f7f2;border:1px solid #e5e8de;border-radius:7px;color:#7b8672;font-size:11px;line-height:1.8;overflow-wrap:anywhere}
.wf-readonly strong{color:#556b49;font-weight:600}
.wf-history{margin-top:22px;border-top:1px solid #e7ebdf}
.wf-history>div,.wf-history>article{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid #e7ebdf;font-size:11px;color:#74826b}
.wf-history strong{font-weight:600;color:#486140}
.wf-history small{font-size:10px;line-height:1.7}
.wf-error{padding:13px 16px;margin:14px 0;border:1px solid #e9c9bf;border-radius:7px;background:#fff5f0;color:#994b37;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.wf-error ul{padding-left:18px;margin:5px 0}
.wf-reviewer{display:flex;align-items:center;gap:10px;padding:13px 15px;margin:16px 0;border-radius:7px;background:#f0f4e9;font-size:12px;color:#536e43;line-height:1.7}
.wf-reviewer .icon{width:17px;height:17px;color:#7d9860}
@media(max-width:1100px){.wf-layout{grid-template-columns:230px minmax(0,1fr);gap:15px}.wf-inspector.panel-pad{padding:21px}.wf-toolbar{align-items:flex-start}.wf-toolbar>.button-group{flex-shrink:1}}
@media(max-width:800px){.wf-layout{grid-template-columns:minmax(0,1fr)}.wf-sidebar.panel-pad{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:14px}.wf-sidebar>.subhead,.wf-sidebar>.wf-help,.wf-sidebar>.wf-readonly,.wf-sidebar>.guardrail{grid-column:1/-1}.wf-sidebar>.subhead{margin:2px 8px 8px}.wf-step{margin:0;padding:11px 8px;gap:9px}.wf-step strong{font-size:11px}.wf-step small{font-size:10px}.wf-inspector{min-height:0}.wf-toolbar{gap:12px;flex-wrap:wrap}.wf-toolbar>.button-group{margin-left:auto}.wf-footer{align-items:flex-start;flex-wrap:wrap}.wf-footer .button-group{margin-left:auto}.wf-page .page-heading>.btn{font-size:11px;padding:10px 12px;min-height:38px;margin-top:0}.wf-page .page-heading{flex-wrap:wrap}.wf-page .page-heading p{max-width:none}.wf-page .page-heading>.btn{margin-left:auto}.wf-rule{padding:15px}.wf-field input,.wf-field select,.wf-field textarea{font-size:14px}}
@media(max-width:480px){.wf-toolbar{padding:14px;display:block}.wf-toolbar>.button-group{margin-top:12px;justify-content:flex-start}.wf-toolbar .btn{flex:1;white-space:normal;line-height:1.5}.wf-rule-grid,.wf-diff-values{grid-template-columns:minmax(0,1fr)}.wf-before{border-right:0;border-bottom:1px solid #e9e8df}.wf-inspector.panel-pad{padding:18px}.wf-field textarea{min-height:190px}.wf-section-heading{align-items:flex-start}.wf-section-heading .btn{font-size:10px;padding:9px 10px}.wf-footer{display:block}.wf-footer .button-group{margin-top:14px;justify-content:stretch}.wf-footer .btn{flex:1;white-space:normal}.wf-rule-heading{align-items:flex-start}.wf-history>div,.wf-history>article{flex-wrap:wrap;gap:5px}.wf-review-summary{padding:16px}.wf-meta{gap:6px;margin-bottom:17px}}
