/* Flow workflow: quiet, consistent settings, plans and search. */
.wf-settings {margin-top:24px;scroll-margin-top:24px;min-width:0}
.wf-settings .section-heading{align-items:flex-start;gap:18px;flex-wrap:wrap}
.wf-settings .section-heading p{margin:7px 0 0;color:var(--muted,#63808b);max-width:600px;font-size:13px;line-height:1.6}
.wf-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
.wf-form-grid .field,.wf-rule-row .field{min-width:0}
.wf-form-grid select,.wf-rule-row input,.wf-rule-row select{width:100%;min-width:0}
.wf-note{color:#617e8a;font-size:12px;line-height:1.65;margin:6px 0 18px;overflow-wrap:anywhere}
.wf-head-actions,.wf-row-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.wf-playbook-list{display:grid;gap:12px}
.wf-playbook{border:1px solid #dce8ec;border-radius:14px;padding:20px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#fff 55%,#f3fafb);min-width:0}
.wf-playbook>div:first-child{min-width:0;flex:1}
.wf-title-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.wf-title-row h3{font-size:15px;margin:0;overflow-wrap:anywhere}
.wf-playbook p{font-size:12px;color:#63808b;line-height:1.6;margin:8px 0}
.wf-meta{display:flex;gap:8px;flex-wrap:wrap;color:#396575;font-size:11px}
.wf-meta span{padding:4px 8px;background:#eaf5f7;border-radius:5px}
.wf-disabled{background:#f6f8f9}
.wf-disabled .badge{background:#edf0f2;color:#61737c}
.wf-empty{padding:22px;background:#f4f9fa;border-radius:12px;color:#617e8a;line-height:1.6}
.wf-options{border:1px solid #dfebee;border-radius:12px;padding:15px;margin:8px 0 22px}
.wf-options legend{font-weight:600;padding:0 6px;font-size:13px}
.wf-options .check-row{margin:6px 0}
.wf-subheading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:16px 0 8px}
.wf-subheading h3{font-size:15px;margin:0}
.wf-rule-row{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1.15fr) minmax(80px,.8fr) auto;align-items:end;gap:10px;padding:14px;background:#f5fafb;border:1px solid #e0ebee;border-radius:12px;margin-bottom:10px}
.wf-rule-row .field{margin:0}
.wf-rule-row label{font-size:11px;display:block;line-height:1.5}
.wf-rule-row input,.wf-rule-row select{margin-top:7px}
.wf-remove-rule{min-width:36px;min-height:42px;margin-bottom:0}
.wf-owner-overrides{margin:22px 0;border-top:1px solid #dfebee;border-bottom:1px solid #dfebee;padding:16px 0}
.wf-owner-overrides summary{cursor:pointer;font-weight:600;font-size:13px;color:#204c5e}
.wf-owner-overrides summary span{font-size:11px;color:#63808b;font-weight:400;margin-left:8px}
.wf-owner-overrides[open] summary{margin-bottom:15px}
.wf-request-playbook{padding:16px;border:1px solid #d6e9ed;background:linear-gradient(120deg,#f0f8fb,#f2fbfa);border-radius:12px;margin-bottom:24px}
.wf-request-playbook small{display:block;margin-top:9px;line-height:1.6;font-size:12px;color:#486c7a}
.wf-search-results{display:grid;gap:10px}
.wf-search-result{position:relative;width:100%;text-align:left;background:#fff;border:1px solid #dce8ec;border-radius:12px;padding:16px 43px 16px 16px;display:flex;flex-direction:column;gap:6px;color:#214b5d;cursor:pointer;transition:background .15s,border-color .15s;font:inherit;min-width:0}
.wf-search-result:hover{background:#f3fbfc;border-color:#8ecbd9}
.wf-search-result:focus-visible{outline:3px solid #58bfd5;outline-offset:2px}
.wf-search-result strong{font-size:14px;overflow-wrap:anywhere}
.wf-search-kind{text-transform:uppercase;letter-spacing:.08em;color:#377e91;font-size:10px;font-weight:700}
.wf-search-excerpt{font-size:12px;line-height:1.65;color:#5b7885;overflow-wrap:anywhere}
.wf-search-result small{font-size:11px;color:#77909a;overflow-wrap:anywhere}
.wf-search-arrow{position:absolute;right:17px;top:20px;color:#34839a}
.wf-search-count{color:#6b8490;font-size:12px;margin:0 0 12px}
.wf-search-empty{border:1px dashed #d5e4e8;border-radius:14px;padding:28px;text-align:center;background:#f8fbfc;color:#315b6b}
.wf-search-empty p{font-size:13px;line-height:1.7;color:#6b8490;margin:8px 0 0}
.wf-search-empty strong{overflow-wrap:anywhere}
.wf-search-trigger{gap:8px}
@media(max-width:700px){.wf-playbook{align-items:stretch;flex-direction:column;padding:16px}.wf-row-actions{justify-content:flex-start}.wf-row-actions .btn{min-height:40px}.wf-form-grid{grid-template-columns:1fr;gap:0}.wf-rule-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.wf-rule-row>.field:first-child{grid-column:1/-1}.wf-rule-row .field:nth-child(2){grid-column:1}.wf-rule-row .field:nth-child(3){grid-column:2}.wf-rule-row .wf-remove-rule{grid-column:3}.wf-settings{margin-top:18px}.wf-head-actions{width:100%;justify-content:space-between}.wf-title-row .badge{font-size:10px}.wf-search-empty{padding:22px 16px}}
@media(prefers-reduced-motion:reduce){.wf-search-result{transition:none}}
