.hr-workflow{--hrwf-red:#c00;--hrwf-ink:#20262c;--hrwf-muted:#5c6671;--hrwf-line:#dce0e4;color:var(--hrwf-ink);font:15px/1.5 system-ui,sans-serif;min-width:0}
.hr-workflow *{box-sizing:border-box}
.hrwf-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 5px}
.hrwf-heading h2{font-size:26px;line-height:1.2;letter-spacing:-.4px;margin:0}
.hrwf-note{font-size:13px;color:var(--hrwf-muted);margin:0 0 10px;max-width:70ch}
.hrwf-note:empty,.hrwf-message:empty{display:none}
.hrwf-message{margin:0 0 8px;font-size:13px;color:#35655e}
.hrwf-error{color:#9d1717}
.hrwf-source{font-size:12px;color:var(--hrwf-muted);margin:0 0 12px}
.hrwf-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}
.hrwf-layout.hrwf-has-detail{grid-template-columns:minmax(260px,.85fr) minmax(320px,1.15fr)}
.hrwf-list,.hrwf-detail{min-width:0}
.hrwf-detail{border:1px solid var(--hrwf-line);border-radius:9px;padding:20px;background:#fff}
.hrwf-detail h3{font-size:18px;line-height:1.3;margin:0 0 10px;overflow-wrap:anywhere}
.hrwf-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 10px}
.hrwf-tools label,.hrwf-field{display:block;font-size:12px;font-weight:700;color:var(--hrwf-ink)}
.hrwf-tools input,.hrwf-tools select,.hrwf-field input,.hrwf-field select,.hrwf-field textarea{display:block;width:100%;min-width:0;margin-top:5px;padding:9px 11px;border:1px solid #b9c1c9;border-radius:7px;background:white;color:var(--hrwf-ink);font:15px/1.4 system-ui,sans-serif}
.hrwf-field textarea{min-height:100px;resize:vertical}
.hrwf-count,.hrwf-stages,.hrwf-meta{font-size:12px;color:var(--hrwf-muted);margin:8px 0}
.hrwf-stages{line-height:1.6;overflow-wrap:anywhere}
.hrwf-stage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:12px 0}.hrwf-stage{display:flex;flex-direction:column;align-items:flex-start;gap:3px;border:1px solid #e1e1e1;border-radius:7px;padding:10px;background:#fafafa;color:var(--hrwf-ink);font:12px/1.3 system-ui;text-align:left;cursor:pointer;min-height:62px}.hrwf-stage strong{font-size:20px;line-height:1.1}.hrwf-stage span{text-transform:capitalize;overflow-wrap:anywhere}.hrwf-stage[aria-pressed=true]{border-color:#c00;background:#fff2f2}
.hrwf-items{border-top:1px solid var(--hrwf-line)}
.hrwf-row{display:flex;flex-direction:column;align-items:start;gap:2px;width:100%;min-height:58px;padding:9px 11px;text-align:left;border:0;border-bottom:1px solid var(--hrwf-line);border-radius:0;background:white;color:var(--hrwf-ink);font:inherit;cursor:pointer}
.hrwf-row strong{font-weight:650;overflow-wrap:anywhere}
.hrwf-row span{font-size:12px;color:var(--hrwf-muted);text-transform:capitalize}
.hrwf-row[aria-pressed=true]{background:#fff4f2;box-shadow:inset 3px 0 var(--hrwf-red)}
.hrwf-empty{padding:18px 0;color:var(--hrwf-muted);font-size:14px}
.hrwf-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.hrwf-field:has(textarea),.hrwf-actions,.hrwf-guide{grid-column:1/-1}
.hrwf-field small{display:block;margin-top:5px;color:var(--hrwf-muted);font-size:11px;font-weight:400;line-height:1.4}
.hrwf-guide{padding:12px 14px;border:1px solid #e6d4d4;background:#fff9f8;border-radius:8px;font-size:13px}
.hrwf-guide strong{display:block}.hrwf-guide p{margin:5px 0 8px;color:var(--hrwf-muted)}
.hrwf-guide select{width:100%;max-width:32rem;min-height:42px;padding:7px 9px;border:1px solid #b9c1c9;border-radius:7px;background:#fff;color:var(--hrwf-ink);font:inherit}
.hrwf-actions{display:flex;align-items:center;gap:10px;margin-top:4px}
.hrwf-primary,.hrwf-secondary{min-height:42px;padding:8px 15px;border-radius:7px;font:600 14px system-ui,sans-serif;cursor:pointer}
.hrwf-primary{border:1px solid var(--hrwf-red);background:var(--hrwf-red);color:#fff}
.hrwf-secondary{border:1px solid #b9c1c9;background:#fff;color:var(--hrwf-ink)}
.hrwf-readonly{display:grid;grid-template-columns:minmax(100px,.4fr) minmax(0,1fr);gap:8px 14px;margin:0}
.hrwf-readonly dt{font-size:12px;font-weight:700;color:var(--hrwf-muted)}
.hrwf-readonly dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.hrwf-history{margin:0 0 16px;border:1px solid var(--hrwf-line);border-radius:7px;padding:9px 12px;color:var(--hrwf-ink);font-size:13px}.hrwf-history summary{font-weight:650;cursor:pointer}.hrwf-history ol{margin:9px 0 0;padding-left:18px;max-height:220px;overflow:auto}.hrwf-history li{padding:3px 0;overflow-wrap:anywhere}
.hr-workflow :is(button,input,select,textarea):focus-visible{outline:3px solid var(--hrwf-red);outline-offset:2px}
.hr-workflow button:disabled{opacity:.6;cursor:wait}
@media(max-width:760px){.hrwf-layout,.hrwf-layout.hrwf-has-detail{grid-template-columns:1fr;gap:16px}.hrwf-has-detail .hrwf-detail{order:-1}.hrwf-detail{padding:16px}.hrwf-heading h2{font-size:24px}}
@media(max-width:665px){.hrwf-heading{align-items:flex-start;flex-direction:column;gap:10px}.hrwf-heading h2{font-size:22px}.hrwf-heading>button{max-width:100%}.hrwf-form{grid-template-columns:1fr}.hrwf-actions{flex-wrap:wrap}.hrwf-field input,.hrwf-field select,.hrwf-field textarea{font-size:16px;min-height:44px}}
@media(max-width:380px){.hrwf-tools,.hrwf-form{grid-template-columns:1fr}.hrwf-actions{flex-wrap:wrap}.hrwf-readonly{grid-template-columns:1fr;gap:2px}.hrwf-readonly dd{margin-bottom:9px}}
@media(max-width:380px){.hrwf-stage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.hrwf-history li summary{min-height:44px;display:flex;align-items:center;gap:6px}.hrwf-history .hrwf-readonly{grid-template-columns:1fr;gap:4px}.hrwf-history .hrwf-readonly dd{margin-bottom:8px}

.hrwf-history li summary::before{content:"▸"}.hrwf-history li details[open]>summary::before{content:"▾"}
