.wf-shell { --wf-ink:#243342; --wf-muted:#687782; --wf-line:#dce5e8; --wf-green:#08745d; max-width:1060px; margin:0 auto; padding:8px 0 32px; color:var(--wf-ink); }
.wf-shell svg,.wf-step svg,.wf-add-row svg { width:18px; height:18px; flex:0 0 auto; stroke-width:1.8; }
.wf-toolbar,.wf-brand,.wf-toolbar-actions,.wf-composer-top,.wf-composer-bottom,.wf-message-tools,.wf-meta,.wf-meta>span,.wf-draft-header,.wf-review-bar,.wf-review-primary,.wf-add-row,.wf-add-label,.wf-source summary,.wf-remove,.wf-step-toggle { display:flex; align-items:center; }
.wf-toolbar { gap:20px; justify-content:space-between; margin-bottom:26px; }
.wf-brand { gap:12px; min-width:0; }
.wf-brand img { object-fit:contain; flex:0 0 46px; }
.wf-brand h2 { font-size:23px; line-height:1.3; margin:3px 0 0; font-weight:650; }
.wf-eyebrow { color:var(--wf-muted); font-size:10px; font-weight:700; letter-spacing:0; }
.wf-toolbar-actions { gap:8px; flex-wrap:wrap; }
.wf-shell .btn,.wf-add-row .btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; border-radius:6px; font-size:13px; font-weight:600; box-shadow:none; transition:background .16s,border-color .16s,box-shadow .16s; }
.wf-shell .btn.ghost { background:#fff; border:1px solid var(--wf-line); color:#405564; }
.wf-shell .btn.ghost:hover { background:#f0f6f8; border-color:#aebfc8; }
.wf-shell .btn.primary { background:var(--wf-green); border:1px solid var(--wf-green); color:#fff; }
.wf-shell .btn.primary:hover:not(:disabled) { background:#075e4c; box-shadow:0 3px 9px #08745d25; }
.wf-shell .btn:disabled { opacity:.48; cursor:not-allowed; }
.wf-shell button:focus-visible,.wf-step button:focus-visible { outline:3px solid #88b9d4; outline-offset:3px; }
.wf-progress { display:flex; list-style:none; gap:0; margin:0 0 22px; padding:0; border-bottom:1px solid var(--wf-line); }
.wf-progress li { display:flex; align-items:center; gap:8px; position:relative; padding:0 30px 14px 0; font-size:12px; font-weight:600; color:#657985; }
.wf-progress li>span { display:grid; place-items:center; width:23px; height:23px; border-radius:50%; background:#e9eff1; font-size:11px; }
.wf-progress li[aria-current] { color:var(--wf-green); }
.wf-progress li[aria-current]>span { background:#08745d; color:#fff; }
.wf-progress li[aria-current]::after { content:''; position:absolute; height:2px; background:#08745d; left:0; right:22px; bottom:-1px; }
.wf-progress li.is-complete { color:#40816e; }
.wf-progress li.is-complete>span { background:#dceee7; color:#276c55; }
.wf-composer { border:1px solid #b9cfca; background:#fff; border-radius:8px; overflow:hidden; box-shadow:0 3px 14px #223c3510; transition:border-color .2s,box-shadow .2s; }
.wf-composer:focus-within { border-color:#4c9a86; box-shadow:0 0 0 3px #0e8a7110; }
.wf-composer-top { justify-content:space-between; gap:12px; padding:14px 18px; border-bottom:1px solid #e8efed; background:#f6faf8; }
.wf-composer-top label { display:inline-flex; align-items:center; gap:9px; font-size:13px; font-weight:650; }
.wf-composer-top label svg { color:#3c8c77; }
.wf-policy { display:inline-flex; align-items:center; gap:5px; font-size:11px; color:#567266; white-space:nowrap; }
.wf-policy svg { width:14px; height:14px; }
#wf-message { display:block; width:100%; min-height:185px; max-height:500px; resize:vertical; padding:19px; border:0; border-radius:0; outline:0; font-size:15px; line-height:1.8; color:#243342; background:#fff; box-sizing:border-box; }
#wf-message::placeholder { color:#657a87; }
.wf-composer.has-draft #wf-message { min-height:110px; }
.wf-composer-bottom { justify-content:space-between; gap:12px; border-top:1px solid #edf1f1; padding:11px 14px; }
.wf-message-tools { gap:5px; min-width:0; flex-wrap:wrap; }
.wf-icon-button { display:inline-grid; place-items:center; width:32px; height:32px; padding:0; border:0; border-radius:4px; color:#6d7f8d; background:transparent; }
.wf-icon-button:hover { color:#08745d; background:#e9f3ef; }
#wf-template { max-width:165px; border:0; background:transparent; color:#536a78; padding:5px; font-size:12px; min-height:32px; }
.wf-character-count { min-width:84px; font-size:10px; color:#647783; margin:0 5px; font-variant-numeric:tabular-nums; }
#wf-analyze { min-width:175px; height:40px; padding:0 13px; }
.wf-meta { justify-content:space-between; flex-wrap:wrap; gap:7px; margin:10px 2px 24px; font-size:11px; color:#617681; }
.wf-meta>span { gap:6px; }
.wf-meta svg { width:13px; height:13px; }
.wf-draft-header { justify-content:space-between; gap:14px; margin:24px 0 14px; }
.wf-draft-header h3 { font-size:18px; line-height:1.5; margin:2px 0; font-weight:650; overflow-wrap:anywhere; }
.wf-draft-count { color:#4b7594; background:#eaf2f8; border:1px solid #dce8f0; padding:3px 8px; border-radius:4px; font-size:11px; white-space:nowrap; }
.wf-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:145px; border-top:1px dashed #d4e1e4; gap:12px; color:#607581; font-size:13px; }
.wf-empty svg { width:30px; height:30px; stroke-width:1.3; color:#96adb9; }
.wf-source { background:#eef3f6; border:1px solid #dfe8ec; border-radius:6px; margin-bottom:18px; }
.wf-source summary { gap:8px; cursor:pointer; padding:10px 13px; color:#536d80; font-size:12px; list-style:none; }
.wf-source summary::-webkit-details-marker { display:none; }
.wf-source summary>span { margin-left:auto; }
.wf-source[open] summary>span { transform:rotate(180deg); }
.wf-original { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; font-size:13px; line-height:1.8; max-height:280px; overflow:auto; padding:0 16px 14px; margin:0; color:#53616f; }
.wf-step { min-width:0; margin:14px 0; padding:0; border:1px solid #d8e3e6; border-radius:8px; background:#fff; overflow:hidden; }
.wf-step legend { float:left; width:100%; padding:0; }
.wf-step-toggle { width:100%; gap:12px; padding:14px 16px; text-align:left; border:0; border-radius:0; background:#f8fafb; color:#283b4a; }
.wf-step-toggle:hover { background:#f0f5f7; }
.wf-step-icon { display:grid; place-items:center; width:36px; height:36px; border-radius:6px; background:#e8f1fb; color:#447da9; flex:0 0 auto; }
.wf-step[data-kind=case] .wf-step-icon { color:#1e8677; background:#e1f2ed; }
.wf-step[data-kind=donor] .wf-step-icon,.wf-step[data-kind=donation] .wf-step-icon { color:#a17c30; background:#fbf0d8; }
.wf-step[data-kind=disbursement] .wf-step-icon,.wf-step[data-kind=monthly_payment] .wf-step-icon { color:#b66763; background:#faeae6; }
.wf-step-heading { display:flex; flex-direction:column; gap:3px; min-width:0; margin-right:auto; }
.wf-step-title { font-size:13px; font-weight:650; overflow-wrap:anywhere; }
.wf-step-subtitle { font-size:11px; font-weight:400; color:#617581; overflow-wrap:anywhere; }
.wf-step-badge { font-size:10px; font-weight:500; color:#526f7e; white-space:nowrap; }
.wf-step-chevron { display:inline-flex; color:#8196a0; transition:transform .2s; }
.wf-step.is-collapsed .wf-step-chevron { transform:rotate(-90deg); }
.wf-step-body { clear:both; padding:16px 18px 0; border-top:1px solid #e5ebee; }
.wf-step-body[hidden] { display:none; }
.wf-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px 20px; padding-bottom:18px; }
.wf-fields .field { display:flex; flex-direction:column; min-width:0; gap:7px; margin:0; }
.wf-fields .field>span { font-size:12px; color:#5a6d7a; font-weight:550; }
.wf-fields input,.wf-fields select,.wf-fields textarea,.wf-match select { width:100%; max-width:100%; min-width:0; box-sizing:border-box; padding:10px 11px; border:1px solid #d6e0e5; border-radius:5px; font-size:13px; color:#344b5b; background:#fff; transition:border-color .15s,box-shadow .15s; }
.wf-fields input:focus,.wf-fields select:focus,.wf-fields textarea:focus { outline:0; border-color:#63a18f; box-shadow:0 0 0 3px #63a18f15; }
.wf-fields input[type=search] { background:#f5f8fa; padding:8px 11px; font-size:12px; }
.wf-fields textarea { min-height:85px; resize:vertical; line-height:1.7; }
.wf-fields .wf-checkbox { flex-direction:row-reverse; justify-content:flex-end; align-items:center; align-self:end; min-height:40px; gap:10px; }
.wf-fields input[type=checkbox] { width:17px; height:17px; accent-color:#08745d; margin:0; }
.wf-wide { grid-column:1 / -1; }
.wf-match { padding:12px; background:#fff9e9; border:1px solid #edddb2; border-radius:5px; margin:0 0 18px; }
.wf-match>span { display:inline-flex; align-items:center; gap:7px; font-size:12px; color:#947334; }
.wf-match svg { width:15px; height:15px; }
.wf-step-footer { display:flex; justify-content:flex-end; margin:0 -18px; padding:8px 16px; border-top:1px solid #edf1f3; }
.wf-remove { gap:6px; border:0; background:transparent; color:#94645f; border-radius:4px; padding:5px 7px; font-size:11px; }
.wf-remove svg { width:14px; height:14px; }
.wf-remove:hover { background:#fcefeb; color:#a74840; }
.wf-add-row { gap:10px; flex-wrap:wrap; border:1px dashed #c9d8de; border-radius:6px; padding:11px 13px; margin:18px 0; background:#f7fafb; }
.wf-add-label { gap:7px; color:#728894; font-size:12px; margin-right:auto; }
#wf-add-type { min-height:36px; max-width:100%; border:1px solid #d8e2e7; border-radius:5px; padding:5px 9px; color:#4f6878; background:#fff; font-size:12px; }
.wf-add-row .btn { min-height:36px; font-size:12px; }
.wf-review-bar { justify-content:space-between; gap:12px; padding-top:18px; margin-top:24px; border-top:1px solid #d9e3e7; }
.wf-review-primary { gap:10px; flex-wrap:wrap; }
.wf-shell .notice { border-radius:6px; font-size:13px; overflow-wrap:anywhere; }
.wf-shell ul.notice { padding:13px 16px 13px 32px; }
#wf-status { padding:12px 15px; margin:16px 0; border-left:3px solid #64a38e; border-radius:0 5px 5px 0; background:#edf5f1; color:#507565; font-size:12px; line-height:1.7; white-space:pre-line; overflow-wrap:anywhere; }
#wf-status:empty { display:none; }
#wf-status:has(.notice) { padding:0; border:0; background:transparent; }
.wf-composer.is-busy { border-color:#72aeb8; }
.wf-composer.is-busy #wf-analyze svg { animation:wf-spin 1.6s linear infinite; }
@keyframes wf-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .wf-shell *,.wf-step * { animation:none !important; transition:none !important; } }
@media (max-width:700px) { .wf-toolbar { flex-wrap:wrap; gap:16px; margin-bottom:20px; } .wf-toolbar-actions { margin-left:58px; } .wf-brand h2 { font-size:21px; } .wf-composer-bottom { flex-wrap:wrap; } #wf-analyze { margin-left:auto; } }
@media (max-width:500px) {
  .wf-shell { padding-top:0; }
  .wf-toolbar-actions { margin-left:0; width:100%; }
  .wf-toolbar-actions .btn { flex:1; font-size:11px; gap:6px; padding:8px; }
  .wf-progress li { font-size:10px; gap:5px; padding-right:15px; flex:1; white-space:nowrap; }
  .wf-progress li[aria-current]::after { right:12px; }
  .wf-progress li>span { width:20px; height:20px; }
  .wf-composer-top { padding:12px; flex-wrap:wrap; gap:6px; }
  .wf-composer-top label { font-size:12px; }
  .wf-policy { font-size:10px; }
  #wf-message { padding:14px; font-size:14px; min-height:180px; }
  .wf-composer-bottom { padding:10px; gap:10px; }
  .wf-message-tools { width:100%; gap:2px; }
  #wf-template { max-width:150px; }
  .wf-character-count { margin-left:auto; min-width:auto; }
  #wf-analyze { width:100%; }
  .wf-meta { font-size:10px; }
  .wf-empty { min-height:70px; flex-direction:row; gap:10px; }
  .wf-fields { grid-template-columns:minmax(0,1fr); gap:16px; }
  .wf-fields input,.wf-fields select { min-height:42px; }
  .wf-fields input[type=checkbox] { min-height:17px; }
  .wf-step-toggle { padding:12px; gap:9px; }
  .wf-step-icon { width:30px; height:30px; }
  .wf-step-badge { display:none; }
  .wf-step-body { padding:14px 12px 0; }
  .wf-step-footer { margin:0 -12px; }
  .wf-add-label { width:100%; }
  #wf-add-type { flex:1; min-width:0; }
  .wf-review-bar { flex-direction:column-reverse; align-items:stretch; }
  .wf-review-primary { display:grid; grid-template-columns:1fr; }
  .wf-review-primary .btn { width:100%; }
}
