.workflow-entry-actions { display:flex; align-items:center; gap:10px; }
.workflow-index-add { display:grid; place-items:center; width:32px; height:32px; padding:0; border:0; border-radius:8px; background:transparent; color:var(--muted); cursor:pointer; }
.workflow-index-add svg { width:18px; height:18px; }
.workflow-index-add:hover { color:var(--ink); background:var(--surface-soft); }
.workflow-pipeline-stages { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.workflow-processing-stage { position:relative; border:1px solid var(--line); border-radius:14px; background:var(--white); transition:transform .16s ease,box-shadow .16s ease; }
.workflow-processing-stage:hover { transform:translateY(-2px); box-shadow:0 4px 14px rgba(15,23,42,.04); }
.workflow-processing-open { position:relative; display:flex; flex-direction:column; justify-content:space-between; width:100%; min-height:154px; padding:20px; border:0; border-radius:inherit; color:var(--ink); background:transparent; text-align:left; cursor:pointer; font:inherit; }
.workflow-processing-title { display:flex; align-items:center; gap:10px; padding-right:15px; font-size:13px; font-weight:550; }
.workflow-processing-number { display:grid; place-items:center; width:30px; height:30px; flex-shrink:0; border-radius:8px; background:var(--accent-soft); color:var(--accent); font-size:13px; font-weight:600; font-variant-numeric:tabular-nums; }
.workflow-processing-enter { position:absolute; right:18px; top:27px; color:var(--muted); opacity:.6; }
.workflow-processing-enter svg { width:14px; height:14px; }
.workflow-processing-count { display:flex; align-items:baseline; gap:7px; }
.workflow-processing-count strong { font-size:28px; font-weight:600; letter-spacing:-.8px; font-variant-numeric:tabular-nums; }
.workflow-processing-count small { color:var(--muted); font-size:11px; }
.workflow-processing-totals { display:flex; flex-direction:column; gap:5px; padding-right:28px; }
.workflow-processing-researched { color:var(--muted); font-size:10px; font-variant-numeric:tabular-nums; }
.workflow-order-controls { position:absolute; display:flex; gap:2px; right:12px; bottom:17px; }
.workflow-order-controls button { width:28px; height:28px; padding:0; border:0; border-radius:6px; background:transparent; color:var(--muted); font-size:14px; cursor:pointer; }
.workflow-order-controls button:hover:not(:disabled) { background:var(--surface-soft); color:var(--ink); }
.workflow-order-controls button:disabled { opacity:.2; cursor:default; }
.workflow-processing-open:focus-visible,.workflow-index-add:focus-visible,.workflow-order-controls button:focus-visible,.workflow-history-open:focus-visible,.workflow-history-discard:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
@media (max-width:1000px) { .workflow-pipeline-stages { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:400px) { .workflow-processing-open { padding:15px; min-height:148px; } .workflow-processing-title { gap:7px; font-size:12px; } .workflow-processing-enter { display:none; } .workflow-processing-count { gap:4px; } .workflow-processing-count strong { font-size:24px; } .workflow-order-controls { right:8px; bottom:15px; } .workflow-order-controls button { width:23px; } }
.workflow-entry-actions svg { width:17px; height:17px; margin-right:7px; vertical-align:middle; }
.lead-workflows { color:var(--ink); padding:0 0 24px; }
.workflow-index-head, .workflow-editor-head { display:flex; align-items:center; gap:18px; margin-bottom:25px; }
.workflow-index-head { justify-content:space-between; margin-bottom:16px; }
.workflow-index-head h2, .workflow-editor-head h2 { margin:0; font-size:24px; letter-spacing:-.7px; font-weight:650; }
.workflow-history { margin-top:34px; }
.workflow-history h3 { margin:0 0 18px; font-size:14px; font-weight:600; }
.workflow-history-labels,.workflow-history-open { display:grid; grid-template-columns:minmax(0,1fr) 110px 100px 100px; gap:24px; align-items:center; }
.workflow-history-labels { padding:0 42px 12px 0; border-bottom:1px solid var(--line); color:var(--muted); font-size:10px; }
.workflow-history-row { display:flex; align-items:center; gap:10px; border-bottom:1px solid var(--line); transition:background-color .14s ease; }
.workflow-history-row:hover { background:var(--surface-soft); }
.workflow-history-row:last-child { border-bottom:0; }
.workflow-history-open { flex:1; min-width:0; padding:16px 0; border:0; border-radius:6px; background:transparent; color:var(--ink); font:inherit; text-align:left; cursor:pointer; }
.workflow-history-name { display:flex; flex-direction:column; gap:5px; min-width:0; }
.workflow-history-name strong { font-size:13px; font-weight:550; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.workflow-history-name small { color:var(--muted); font-size:10px; }
.workflow-history-progress,.workflow-history-spend { font-size:12px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.workflow-history-progress > span { color:var(--muted); }
.workflow-history-spend { display:flex; flex-direction:column; gap:3px; }
.workflow-history-spend small { color:var(--muted); font-size:9px; }
.workflow-history-spend .workflow-history-searches { font-size:10px; }
.workflow-history-open .workflow-status { justify-self:start; white-space:nowrap; }
.workflow-history-open .workflow-status[data-status="approved"] { color:var(--positive); background:var(--positive-soft); }
.workflow-history-open .workflow-status:is([data-status="complete"],[data-status="processing"]) { color:var(--accent); background:var(--accent-soft); }
.workflow-history-open .workflow-status[data-status="failed"] { color:var(--danger); background:var(--danger-soft); }
.workflow-history-discard { display:grid; place-items:center; flex-shrink:0; width:32px; height:32px; padding:0; border:0; border-radius:7px; background:transparent; color:var(--muted); opacity:.6; cursor:pointer; }
.workflow-history-discard svg { width:15px; height:15px; }
.workflow-history-discard:hover { color:var(--danger); opacity:1; background:var(--danger-soft); }
.workflow-note, .workflow-empty { color:var(--muted); font-size:12px; line-height:1.6; }
@media (max-width:800px) { .workflow-history-labels,.workflow-history-open { grid-template-columns:minmax(0,1fr) 75px 75px 90px; gap:14px; } }
@media (max-width:600px) { .workflow-history-labels { display:none; } .workflow-history-open { grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; } .workflow-history-name { grid-column:1; } .workflow-history-open .workflow-status { grid-column:2; grid-row:1; justify-self:end; } .workflow-history-progress { grid-column:1; grid-row:2; } .workflow-history-progress::after { content:" leads"; color:var(--muted); } .workflow-history-spend { grid-column:2; grid-row:2; align-items:flex-end; justify-self:end; } }
.workflow-status { padding:5px 9px; border-radius:7px; color:var(--muted); background:var(--surface-soft); font-size:11px; text-transform:capitalize; }
.workflow-editor-head h2 { flex:1; font-size:20px; }
.workflow-detail-heading { margin-bottom:20px; }
.workflow-detail-back { margin-bottom:16px; font-size:12px; }
.workflow-detail-heading .workflow-editor-head { margin:0; justify-content:space-between; }
.workflow-detail-title { display:flex; align-items:center; gap:12px; min-width:0; }
.workflow-detail-number { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; border-radius:10px; background:var(--accent-soft); color:var(--accent); font-size:14px; font-weight:600; font-variant-numeric:tabular-nums; }
.workflow-detail-title h2 { overflow-wrap:anywhere; }
.workflow-setup-notice { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 16px; margin-bottom:20px; border:1px solid var(--line); border-radius:10px; background:var(--surface-soft); }
.workflow-setup-notice strong { color:var(--muted); font-size:12px; font-weight:500; }
.workflow-setup-notice button { font-size:12px; white-space:nowrap; }
.workflow-filter-toggle { padding:10px 14px; border:1px solid var(--line); border-radius:9px; background:transparent; color:var(--muted); font:500 12px/1.4 -apple-system,BlinkMacSystemFont,sans-serif; cursor:pointer; }
.workflow-filter-toggle:hover,.workflow-filter-toggle[aria-expanded="true"] { color:var(--ink); background:var(--surface-soft); }
.workflow-advanced-filters { padding:16px; margin-top:12px; border:1px solid var(--line); border-radius:10px; background:var(--surface-soft); }
.workflow-advanced-filters[hidden] { display:none; }
.workflow-selection-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 0 12px; font-size:12px; }
.workflow-selection-bar p { display:flex; align-items:center; gap:12px; margin:0; }
.workflow-selection-bar strong { font-weight:550; }
.workflow-selection-bar span { color:var(--muted); }
.workflow-selection-bar > div { display:flex; gap:16px; }
.workflow-selection-bar button { font-size:11px; white-space:nowrap; }
.workflow-selection-bar button:disabled { opacity:.4; cursor:default; }
.workflow-lead-row:has(:checked) { background:color-mix(in srgb,var(--accent) 5%,var(--white)); }
.workflow-lead-row:hover { background:var(--surface-soft); }
.workflow-lead-row .workflow-lead-status:empty { display:none; }
.workflow-lead-row .workflow-lead-status { max-width:180px; text-align:right; line-height:1.5; }
.workflow-configuration .workflow-label { margin-bottom:10px; }
.workflow-configuration #workflowInstructions { border:1px solid var(--line); border-radius:12px; }
.workflow-configuration .workflow-preset-status { margin-top:10px; }
.workflow-configuration .workflow-preset-status[hidden] { display:none; }
.workflow-configuration .workflow-preset-status:disabled { color:var(--muted); cursor:default; }
@media (max-width:600px) { .workflow-selection-bar { flex-wrap:wrap; }.workflow-selection-bar > div { width:100%; justify-content:space-between; }.workflow-lead-row .workflow-lead-status { max-width:100px; }.workflow-setup-notice { flex-wrap:wrap; }.workflow-detail-title h2 { font-size:19px; } }
.workflow-steps { display:flex; gap:26px; border-bottom:1px solid var(--line); margin-bottom:25px; }
.workflow-steps button { display:flex; gap:8px; padding:12px 0; border:0; border-bottom:2px solid transparent; background:none; color:var(--muted); font:600 13px/1.3 -apple-system,BlinkMacSystemFont,sans-serif; cursor:pointer; }
.workflow-steps button[aria-current] { border-bottom-color:var(--accent); color:var(--ink); opacity:1; }
.workflow-steps small { display:grid; place-items:center; width:18px; height:18px; border-radius:50%; background:var(--surface-raised); font-size:10px; font-weight:500; }
.workflow-steps button[aria-current] small { color:var(--accent); background:var(--accent-soft); }
.workflow-lead-tools { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.workflow-lead-tools input { max-width:300px; flex:1; }
.workflow-lead-tools #workflowSearch { min-width:180px; flex:1 1 240px; }
.workflow-lead-tools select { width:220px; }
.workflow-lead-filter { position:relative; width:220px; flex-shrink:0; }
.workflow-lead-filter > button { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:40px; padding:10px 13px; border:1px solid var(--line); border-radius:10px; background:var(--white); color:var(--ink); font:400 12px/1.4 -apple-system,BlinkMacSystemFont,sans-serif; cursor:default; }
.workflow-lead-filter > button:focus { outline:none; box-shadow:none; }
.workflow-lead-filter > button:focus-visible { outline:2px solid var(--muted); outline-offset:3px; }
.workflow-lead-filter > button svg { width:12px; height:12px; flex-shrink:0; color:var(--muted); transition:transform .14s ease; }
.workflow-lead-filter > button[aria-expanded="true"] svg { transform:rotate(-90deg); }
.workflow-filter-menu { position:absolute; top:calc(100% + 5px); left:0; width:100%; max-height:300px; overflow-y:auto; z-index:20; padding:4px; border:1px solid var(--line); border-radius:10px; background:var(--white); color:var(--ink); box-shadow:0 8px 24px rgba(15,23,42,.12); animation:workflow-menu-in .14s ease-out both; }
.workflow-filter-menu[hidden] { display:none; }
.workflow-filter-menu label { display:flex; align-items:center; gap:10px; min-height:34px; padding:8px 10px; margin:0; border-radius:6px; color:var(--ink); font:400 12px/1.4 -apple-system,BlinkMacSystemFont,sans-serif; cursor:default; }
.workflow-filter-menu label:hover { background:var(--surface-soft); }
.workflow-filter-menu .workflow-filter-clear { display:block;width:100%;min-height:34px;padding:8px 10px;border:0;border-radius:6px;background:transparent;color:var(--ink);font:400 12px/1.4 -apple-system,BlinkMacSystemFont,sans-serif;text-align:left;cursor:pointer; }
.workflow-filter-menu .workflow-filter-clear:hover { background:var(--surface-soft); }
.workflow-filter-menu .workflow-filter-clear:focus-visible { outline:2px solid var(--muted);outline-offset:-2px; }
.workflow-lead-tools .workflow-filter-menu input { width:14px; height:14px; max-width:none; min-height:0; margin:0; padding:0; flex:none; accent-color:var(--accent); }
.workflow-filter-menu .workflow-filter-extra { border-top:1px solid var(--line); border-radius:0 0 6px 6px; margin-top:4px; padding-top:12px; }
@media (prefers-reduced-motion:reduce) { .workflow-filter-menu { animation:none; } .workflow-lead-filter > button svg { transition:none; } }
.workflow-lead-list { max-height:340px; min-height:180px; overflow:auto; border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--white); border-radius:8px; }
.workflow-lead-row { display:flex; align-items:center; gap:14px; margin:0; padding:17px 18px; border-bottom:1px solid var(--line); cursor:pointer; }
.workflow-lead-row input, .workflow-consent input, .workflow-field-choices input, .workflow-review-after input { width:15px; height:15px; flex-shrink:0; accent-color:var(--accent); margin:0; }
.workflow-lead-row > span:first-of-type { flex:1; min-width:0; display:flex; flex-direction:column; gap:5px; }
.workflow-lead-row strong { font-size:12px; font-weight:600; }
.workflow-lead-row small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:11px; }
.workflow-lead-status { color:var(--muted); font-size:10px; }
.workflow-more { display:block; margin:16px auto; }
.workflow-configuration { max-width:850px; }
.workflow-type-form { max-width:760px; }
html[data-theme] .workflow-type-form .workflow-type-name { display:block; width:min(100%,360px); margin:0 0 28px; padding:10px 0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; color:var(--ink); font:500 20px/1.5 -apple-system,BlinkMacSystemFont,sans-serif; box-shadow:none; }
html[data-theme] .workflow-type-form .workflow-type-name:focus { outline:0; border-bottom-color:var(--accent); background:transparent; box-shadow:none; }
#workflowTypeInstructions { display:block; width:100%; min-height:175px; padding:16px; line-height:1.7; font-size:13px; resize:vertical; }
.workflow-type-form .workflow-footer { justify-content:flex-end; position:static; background:transparent; border-top:0; padding:22px 0 0; }
.workflow-type-choices { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:25px; }
.workflow-type-choices button { display:flex; align-items:center; gap:8px; padding:11px 14px; border:1px solid var(--line); border-radius:10px; background:var(--white); color:var(--muted); font:500 12px/1.4 -apple-system,BlinkMacSystemFont,sans-serif; cursor:pointer; }
.workflow-type-choices svg { width:17px; height:17px; }
.workflow-type-choices .selected { background:var(--accent-soft); color:var(--accent); border-color:color-mix(in srgb,var(--accent) 25%,var(--line)); }
.workflow-label { display:block; margin:0 0 10px; font-size:13px; font-weight:600; }
#workflowInstructions { width:100%; min-height:140px; padding:16px; line-height:1.7; font-size:13px; resize:vertical; }
.workflow-field-head { display:flex; align-items:center; gap:15px; margin-top:25px; }
.workflow-field-head .workflow-label { margin:0; flex:1; }
.workflow-field-choices { display:flex; gap:9px; flex-wrap:wrap; margin-top:14px; }
.workflow-field-choices label { display:flex; align-items:center; gap:8px; padding:10px 12px; margin:0; border:1px solid var(--line); border-radius:9px; background:var(--white); font-size:12px; cursor:pointer; }
.workflow-field-choices label:has(:checked) { color:var(--accent); border-color:color-mix(in srgb,var(--accent) 25%,var(--line)); background:var(--accent-soft); }
.workflow-consent { display:flex; align-items:flex-start; gap:10px; margin-top:26px; color:var(--muted); font-size:12px; line-height:1.7; max-width:680px; cursor:pointer; }
.workflow-consent input { margin-top:3px; }
.workflow-consent[hidden] { display:none; }
.workflow-footer { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:22px 0; position:sticky; bottom:0; background:var(--paper); border-top:1px solid var(--line); margin-top:24px; z-index:3; }
.workflow-footer > :is(span,small) { font-size:12px; color:var(--muted); }
.workflow-footer > div { display:flex; align-items:center; gap:14px; }
.workflow-progress { padding:0 0 14px; }
.workflow-progress > div { display:flex; align-items:center; gap:20px; font-size:12px; margin-bottom:12px; }
.workflow-progress span, .workflow-progress small { color:var(--muted); font-size:12px; }
.workflow-progress progress { display:block; appearance:none; width:100%; height:3px; border:0; border-radius:5px; background:var(--surface-raised); margin-bottom:12px; }
.workflow-progress progress::-webkit-progress-bar { background:var(--surface-raised); border-radius:5px; }
.workflow-progress progress::-webkit-progress-value { background:var(--accent); border-radius:5px; transition:width .2s ease; }
.workflow-progress progress::-moz-progress-bar { background:var(--accent); border-radius:5px; }
.workflow-token-usage { display:flex; flex-wrap:wrap; justify-content:flex-start; align-items:center; gap:8px 18px; margin:18px 0 0; font-size:12px; font-variant-numeric:tabular-nums; }
.workflow-token-usage strong { font-weight:550; color:var(--ink); }
.workflow-token-usage span { color:var(--muted); font-size:11px; }
.workflow-token-usage.compact { margin:3px 0 0; font-size:11px; gap:6px 12px; }
.workflow-error { padding:13px 16px; background:var(--danger-soft); color:var(--danger); font-size:12px; line-height:1.7; border-radius:9px; }
.workflow-reviewing { padding-top:4px; }
.workflow-reviewing .workflow-editor-head { margin-bottom:22px; gap:16px; }
.workflow-reviewing .workflow-editor-head h2 { font-weight:600; letter-spacing:-.5px; }
.workflow-review-summary { font-variant-numeric:tabular-nums; }
.workflow-review-summary strong { font-weight:600; }
.workflow-review-summary strong span { font-weight:400; }
.workflow-review-total { display:flex; gap:8px; align-items:center; margin-left:auto; }
.workflow-review-total .workflow-review-spend { color:var(--ink); font-weight:500; }
.workflow-review-spend { display:inline-flex; flex-direction:column; gap:4px; }
.workflow-cost-breakdown { position:relative; }
.workflow-cost-breakdown summary { cursor:pointer; list-style:none; display:flex; align-items:center; gap:6px; border-radius:3px; }
.workflow-cost-breakdown summary::-webkit-details-marker { display:none; }
.workflow-cost-breakdown summary::after { content:'⌄'; color:var(--muted); font-size:11px; }
.workflow-cost-breakdown[open] summary::after { transform:rotate(180deg); }
.workflow-cost-breakdown summary:focus-visible { outline:2px solid var(--muted); outline-offset:3px; }
.workflow-cost-components { position:absolute; right:0; top:calc(100% + 8px); z-index:12; min-width:235px; padding:14px; border:1px solid var(--line); border-radius:10px; background:var(--white); color:var(--ink); box-shadow:0 8px 26px #0002; white-space:nowrap; font-size:11px; font-weight:400; }
.workflow-cost-components dl { display:grid; gap:9px; margin:0; }
.workflow-cost-components dl>div { display:flex; justify-content:space-between; gap:20px; }
.workflow-cost-components dt { color:var(--muted); }
.workflow-cost-components dd { margin:0; font-variant-numeric:tabular-nums; }
.workflow-cost-components small { display:block; margin-top:12px; padding-top:10px; border-top:1px solid var(--line); color:var(--muted); font-size:10px; }
.workflow-review-cost .workflow-cost-components { position:static; min-width:0; padding:10px 0 0; margin-top:8px; border:0; border-top:1px solid var(--line); border-radius:0; background:transparent; box-shadow:none; white-space:normal; }
.workflow-review-cost .workflow-cost-components dl>div { flex-wrap:wrap; gap:2px 8px; }
.workflow-review-searches { color:var(--muted); font-size:10px; font-weight:400; white-space:nowrap; }
.workflow-search-toggle { align-self:flex-start; padding:0; border:0; border-radius:2px; background:transparent; font-family:inherit; cursor:pointer; text-decoration:underline; text-decoration-style:dotted; text-underline-offset:3px; }
.workflow-search-toggle:hover,.workflow-search-toggle[aria-expanded="true"] { color:var(--accent); }
.workflow-search-toggle:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
.workflow-review-search-detail td { padding:18px 22px; background:var(--surface-soft); }
.workflow-search-history-head { display:flex; align-items:center; justify-content:space-between; gap:16px; font-size:12px; }
.workflow-search-history-head button { padding:0 6px; border:0; background:transparent; color:var(--muted); font-size:22px; cursor:pointer; }
.workflow-search-attempt h4 { color:var(--muted); font-size:11px; font-weight:500; margin:18px 0 8px; }
.workflow-search-attempt ol { padding-left:24px; margin:12px 0 0; }
.workflow-search-attempt li { padding:9px 0 9px 4px; font-size:11px; border-bottom:1px solid var(--line); }
.workflow-search-attempt li:last-child { border-bottom:0; }
.workflow-search-attempt li::marker { color:var(--muted); }
.workflow-search-attempt code { color:var(--ink); font-size:12px; white-space:pre-wrap; overflow-wrap:anywhere; }
.workflow-search-attempt li > span { display:block; color:var(--muted); font-size:10px; margin-top:5px; }
.workflow-search-history-empty { color:var(--muted); font-size:12px; margin:14px 0 0; }
.workflow-review-tools { display:flex; align-items:center; gap:12px; margin:0 0 12px; }
.workflow-review-tools input, .workflow-review-tools select { height:36px; min-height:36px; padding:7px 12px; font:400 12px/1.4 -apple-system,BlinkMacSystemFont,sans-serif; border-radius:9px; background:var(--white); }
.workflow-review-tools input { width:250px; max-width:45%; margin:0; }
.workflow-review-tools select { width:160px; margin:0; padding-right:30px; }
html[data-theme] .lead-workflows select {
  --workflow-select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238b96a8' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  appearance:none; padding-right:36px; color:var(--ink); background:var(--white) var(--workflow-select-chevron) right 13px center / 12px no-repeat;
}
html[data-theme] .lead-workflows select:focus { background:var(--white) var(--workflow-select-chevron) right 13px center / 12px no-repeat; border-color:var(--line); box-shadow:none; outline:none; }
html[data-theme] .lead-workflows select:focus-visible { outline:2px solid var(--muted); outline-offset:3px; }
@supports (appearance:base-select) {
  html[data-theme] .lead-workflows select, .lead-workflows select::picker(select) { appearance:base-select; }
  html[data-theme] .lead-workflows select { display:flex; align-items:center; line-height:1.25; position:relative; background-image:none; }
  html[data-theme] .lead-workflows select:focus { background-image:none; }
  .lead-workflows select::picker-icon { content:""; display:block; position:absolute; right:13px; top:50%; width:12px; height:12px; background:var(--workflow-select-chevron) center / contain no-repeat; transform:translateY(-50%); transition:transform .14s ease; }
  .lead-workflows select:open::picker-icon { transform:translateY(-50%) rotate(-90deg); }
  .lead-workflows select::picker(select) { margin-top:5px; min-width:anchor-size(width); max-width:min(360px,calc(100vw - 32px)); max-height:280px; overflow:auto; padding:4px; border:1px solid var(--line); border-radius:10px; background:var(--white); color:var(--ink); box-shadow:0 8px 24px rgba(15,23,42,.12); }
  .lead-workflows select:open::picker(select) { animation:workflow-menu-in .14s ease-out both; }
  .lead-workflows select option { min-height:32px; padding:8px 10px; border-radius:6px; color:var(--ink); background:transparent; font:400 12px/1.4 -apple-system,BlinkMacSystemFont,sans-serif; cursor:default; white-space:normal; overflow-wrap:anywhere; }
  .lead-workflows select option:is(:hover,:focus-visible,:checked) { background:var(--surface-soft); }
  .lead-workflows select option::checkmark { display:none; }
}
@keyframes workflow-menu-in { from { opacity:0; translate:0 -3px; } to { opacity:1; translate:0 0; } }
@media (prefers-reduced-motion:reduce) { .lead-workflows select::picker(select) { animation:none !important; } .lead-workflows select::picker-icon { transition:none; } }
#workflowReviewCount { margin-left:auto; color:var(--muted); font-size:11px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.workflow-review-scroll { max-height:clamp(260px,calc(100dvh - 330px),660px); overflow:auto; overscroll-behavior:contain; background:var(--white); border:1px solid var(--line); border-radius:10px; }
.workflow-review-table { width:100%; min-width:730px; table-layout:fixed; border-collapse:separate; border-spacing:0; font-size:12px; color:var(--ink); }
.workflow-review-table .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.review-col-company { width:25%; }
.review-col-field { width:10%; }
.review-col-before { width:21%; }
.review-col-after { width:23%; }
.review-col-spend { width:13%; }
.review-col-details { width:8%; }
.workflow-review-actions { display:flex; align-items:center; justify-content:flex-end; gap:2px; }
.workflow-review-actions button { flex-shrink:0; }
.workflow-preset-status { margin:8px 0 0; font-size:11px; color:var(--muted); }
.workflow-preset-status[data-failed="true"] { color:var(--danger); }
.workflow-review-table th { position:sticky; top:0; z-index:1; padding:10px 14px; text-align:left; color:var(--muted); font-size:10px; font-weight:500; background:var(--white); border-bottom:1px solid var(--line); }
.workflow-review-table td { padding:10px 14px; vertical-align:middle; border-bottom:1px solid var(--line); }
.workflow-review-lead:last-of-type > tr:last-child > td { border-bottom:0; }
.workflow-review-company strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; font-weight:550; line-height:1.5; }
.workflow-review-location { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:10px; line-height:1.5; margin-top:2px; }
.workflow-review-state { display:block; width:fit-content; font-size:10px; color:var(--muted); margin-top:3px; }
.workflow-review-state.changed { color:var(--accent); }
.workflow-review-state.failed { color:var(--danger); }
.workflow-review-state.researching { color:var(--accent); }
.workflow-review-field { color:var(--muted); font-size:11px; }
.workflow-review-value { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; line-height:1.7; }
.workflow-review-before { color:var(--muted); }
.workflow-review-after label { display:flex; align-items:center; gap:9px; margin:0; font-size:12px; color:var(--ink); cursor:pointer; }
.workflow-contact-proposal { display:flex; flex-direction:column; gap:3px; min-width:0; }
.workflow-contact-proposal strong { font-weight:500; }
.workflow-contact-proposal small { color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
.workflow-review-after label:has(input:not(:checked)) .workflow-contact-proposal { opacity:.55; }
.workflow-review-after label:has(input:not(:checked)) .workflow-review-value { color:var(--muted); }
.workflow-review-cost { font-size:11px; color:var(--muted); font-variant-numeric:tabular-nums; white-space:nowrap; }
.workflow-review-disclosure { padding:8px !important; text-align:center; }
.workflow-review-disclosure button { display:grid; place-items:center; width:28px; height:28px; margin:auto; padding:0; border:0; border-radius:7px; background:transparent; color:var(--muted); cursor:pointer; }
.workflow-review-disclosure button:hover { background:var(--surface-soft); color:var(--ink); }
.workflow-review-disclosure svg { width:14px; height:14px; transition:transform .14s ease; }
.workflow-review-disclosure [aria-expanded="true"] svg { transform:rotate(90deg); }
.workflow-review-placeholder { color:var(--muted); font-size:11px; }
.workflow-review-detail td { padding:18px 22px; background:color-mix(in srgb,var(--accent) 2%,var(--white)); }
.workflow-review-detail p { margin:0 0 14px; color:var(--muted); font-size:12px; line-height:1.7; max-width:900px; }
.workflow-review-detail section + section { margin-top:18px; }
.workflow-review-detail section > strong { font-size:11px; font-weight:550; }
.workflow-review-detail-values { display:flex; align-items:baseline; flex-wrap:wrap; gap:12px; font-size:12px; margin:7px 0; overflow-wrap:anywhere; }
.workflow-review-detail-values > span:first-child, .workflow-review-detail-values > span:nth-child(2) { color:var(--muted); }
.workflow-review-detail section p { margin:7px 0; }
.workflow-review-footer { padding:14px 0; margin-top:12px; border-top:0; background:transparent; }
.workflow-review-footer .button { padding:10px 16px; font-size:12px; min-height:36px; }
.workflow-review-footer .text-button { font-size:12px; }
.workflow-sources { display:flex; gap:12px; flex-wrap:wrap; margin-top:7px; font-size:11px; }
.workflow-sources a { color:var(--accent); text-decoration:none; }
.workflow-sources a:hover { text-decoration:underline; }
.workflow-skeleton { display:grid; gap:0; padding-top:8px; }
.workflow-skeleton > div { display:grid; gap:12px; padding:22px 0; border-bottom:1px solid var(--line); }
.workflow-skeleton span { height:12px; width:38%; border-radius:5px; background:var(--surface-raised); animation:workflow-loading 1.3s ease-in-out infinite alternate; }
.workflow-skeleton span + span { width:68%; height:9px; }
@keyframes workflow-loading { from { opacity:.45; } to { opacity:.9; } }
@media (max-width:800px) { .workflow-index-head { align-items:flex-start; } .workflow-index-head h2 { font-size:20px; } .workflow-footer { flex-wrap:wrap; } .workflow-entry-actions { flex-wrap:wrap; } .workflow-review-summary { flex-wrap:wrap; gap:8px 16px !important; } .workflow-reviewing .workflow-editor-head { flex-wrap:wrap; gap:10px; } .workflow-review-tools { flex-wrap:wrap; } .workflow-review-tools input { flex:1; max-width:none; min-width:140px; } .workflow-review-tools select { width:140px; } .workflow-review-scroll { max-height:60dvh; } }
@media (prefers-reduced-motion:reduce) { .workflow-processing-stage, .workflow-history-row, .workflow-progress progress::-webkit-progress-value, .workflow-review-disclosure svg { transition:none; } .workflow-processing-stage:hover { transform:none; } .workflow-skeleton span { animation:none; } }
.workflow-estimate { margin:20px 0 10px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line); }
.workflow-estimate-head { display:flex;align-items:center;justify-content:space-between;gap:16px; }
.workflow-estimate-head>div { display:grid;gap:5px; }
.workflow-estimate-head span { font-size:12px;color:var(--muted); }
.workflow-estimate-head strong { font-size:24px;letter-spacing:-.5px;font-variant-numeric:tabular-nums; }
.workflow-estimate-head small { color:var(--muted);font-size:12px; }
.workflow-run-controls { display:flex;flex-wrap:wrap;gap:18px;align-items:end;margin-top:16px; }
.workflow-run-controls label { display:grid;gap:7px;font-size:12px;color:var(--muted); }
.workflow-run-controls input,.workflow-run-controls select { width:140px;min-height:38px;margin:0; }
.workflow-run-controls>span,.workflow-queue-state { color:var(--muted);font-size:12px; }
.workflow-run-controls>span { align-self:center; }
