.wf{--wf-line:#d7e4ec;font-size:14px}.wf h3{margin:0 0 14px;font-size:18px}.wf h4{margin:18px 0 10px;font-size:15px}.wf-panel{background:#fff;border:1px solid var(--wf-line);border-radius:10px;padding:18px;margin:0 0 18px}.wf-toolbar,.wf-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}.wf button{font:inherit;border:1px solid #b9d0dd;border-radius:6px;color:#176687;background:#f5fbfe;padding:7px 12px;cursor:pointer;min-height:36px}.wf button.primary{background:#147fa5;color:#fff;border-color:#147fa5}.wf button:disabled{opacity:.5;cursor:default}.wf label{display:flex;flex-direction:column;gap:5px;min-width:0;font-weight:600}.wf input,.wf select,.wf textarea{width:100%;min-width:0;font:inherit;color:#243b49;border:1px solid #bdcfdb;border-radius:6px;padding:8px;background:#fff;box-sizing:border-box}.wf input[readonly],.wf textarea[readonly]{background:#f4f7fa;color:#526875}.wf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px}.wf-wide{grid-column:1/-1}.wf-note{color:#627987;font-size:12px;margin:8px 0}.wf-status{color:#176687;white-space:pre-wrap}.wf-status.error{color:#b02e2e}.wf-badge{display:inline-block;padding:3px 9px;border-radius:12px;background:#e8f5fb;color:#126681;font-size:12px}.wf-scroll{overflow:auto;max-height:480px;border:1px solid var(--wf-line);border-radius:8px}.wf table{border-collapse:collapse;min-width:850px;width:100%;font-size:13px}.wf th,.wf td{padding:10px 12px;border-bottom:1px solid #e3ecf2;text-align:left;white-space:nowrap}.wf th{position:sticky;top:0;background:#edf6fb;color:#476676}.wf tr.selected td{background:#edfaff}.wf td button{padding:2px 6px;min-height:30px;border:0;text-decoration:underline;background:transparent}.wf-files{list-style:none;padding:0;margin:8px 0}.wf-files li{padding:6px 0}.wf-files a{color:#126d95}.wf-log{padding-left:20px;font-size:12px;color:#536c7a;max-height:220px;overflow:auto}.wf-log li{margin:6px 0}.wf-notifications{list-style:none;padding:0;max-height:260px;overflow:auto}.wf-notifications li{padding:8px;border-bottom:1px solid var(--wf-line)}.wf-notifications li.unread{background:#ecf9ff}.wf summary{cursor:pointer;font-weight:700}.wf-upload{display:flex;gap:8px;flex-wrap:wrap}.wf-upload label{display:inline-flex;flex-direction:row;align-items:center;cursor:pointer;padding:7px 12px;border:1px solid #b9d0dd;border-radius:6px;color:#176687;font-weight:400}.wf-upload input{max-width:220px}.wf-subform{border-top:1px solid #e0eaf0;margin-top:16px;padding-top:14px}.wf-readout{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.wf label .wf-radio{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.wf-radio label{display:inline-flex;flex-direction:row;align-items:center;font-weight:400}.wf-radio input{width:16px;height:16px}.wf-empty{padding:20px;color:#6a7d87}.wf input[type=checkbox]{width:16px;height:16px}.wf button:focus-visible,.wf a:focus-visible{outline:2px solid #087e9d;outline-offset:2px}@media(max-width:680px){.wf-grid{grid-template-columns:1fr}.wf-wide{grid-column:auto}.wf-panel{padding:13px}.wf{font-size:13px}.wf h3{font-size:16px}.wf-upload input{max-width:100%}}

.wf-type{border:0;margin:0;padding:0;min-width:0}.wf-type legend{font-weight:600;margin-bottom:8px}.wf-radio input[type=radio]{appearance:none;-webkit-appearance:none;min-width:16px;margin:0;padding:0;border:1px solid #7e929e;border-radius:2px;background:#fff}.wf-radio input[type=radio]:checked{background:#167ea9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/14px 14px no-repeat}

/* Match the library dispatch form and its compact controls. */
#site-member-workspace .wf{font-size:var(--workspace-body-size,13px)}
#site-member-workspace .wf h3{font-size:15px;margin-bottom:10px}
#site-member-workspace .wf h4{font-size:14px}
#site-member-workspace .wf label{font-size:13px;font-weight:400;gap:4px}
#site-member-workspace .wf button{font-family:inherit;font-size:13px;line-height:inherit;min-height:30px;padding:4px 14px;border-radius:8px}
#site-member-workspace .wf :is(input:not([type=radio],[type=checkbox],[type=file]),select,textarea){font:inherit;font-size:13px;font-weight:400;line-height:1.65;min-height:0;padding:5px 10px;border:1px solid #cbdce8;border-radius:8px}
#site-member-workspace .wf :is(input:not([type=radio],[type=checkbox],[type=file]),select){height:calc(1.65em + 12px)}
#site-member-workspace .wf .wf-radio{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
#site-member-workspace .wf-grid{gap:8px 12px}
#site-member-workspace .wf-panel{padding:14px;margin-bottom:12px}
#site-member-workspace .wf-toolbar{gap:8px 14px}
#site-member-workspace .wf-upload label{padding:4px 10px;min-height:30px}
#site-member-workspace .wf-radio label{font-size:12px}
#site-member-workspace .wf-radio input[type=checkbox]{appearance:none;-webkit-appearance:none;width:16px;height:16px;min-width:16px;margin:0;padding:0;border:1px solid #7e929e;border-radius:2px;background:#fff;opacity:1}
#site-member-workspace .wf-radio input[type=checkbox]:checked{background:#167ea9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/14px 14px no-repeat;border-color:#167ea9}

/* Compact detail layout mirrors library detail label/input rows. */
#site-member-workspace .wf .wf-inline-field,#site-member-workspace .wf .wf-field-group{display:grid;grid-template-columns:144px minmax(0,1fr);align-items:center;column-gap:8px;row-gap:4px;min-width:0}
#site-member-workspace .wf .wf-field-label{text-align:right;font-size:13px;line-height:1.4;word-break:keep-all}
#site-member-workspace .wf .wf-inline-field:has(textarea){align-items:start}
#site-member-workspace .wf .wf-inline-field:has(textarea)>.wf-field-label{padding-top:7px}
#site-member-workspace .wf .wf-detail-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin-bottom:12px}
#site-member-workspace .wf .wf-detail-heading h3{margin:0}
#site-member-workspace .wf .wf-intake{display:inline-flex;align-items:center;margin:0;gap:12px}
#site-member-workspace .wf .wf-intake label{display:inline-flex;align-items:center;flex-direction:row;gap:4px;white-space:nowrap}
#site-member-workspace .wf .wf-field-group .wf-note{grid-column:2}
@media(max-width:680px){#site-member-workspace .wf .wf-inline-field,#site-member-workspace .wf .wf-field-group{grid-template-columns:90px minmax(0,1fr);column-gap:6px}#site-member-workspace .wf .wf-field-label{text-align:left;font-size:12px}#site-member-workspace .wf .wf-grid{gap:6px 10px}}

/* Keep detail controls on the same input axis and bound audit history. */
#site-member-workspace .wf .wf-detail-heading{display:grid;grid-template-columns:144px minmax(0,1fr);column-gap:8px}
#site-member-workspace .wf .wf-intake{justify-content:flex-start}
#site-member-workspace .wf .wf-assignment-note{margin-left:152px}
#site-member-workspace .wf .wf-top-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
#site-member-workspace .wf .wf-top-panels:has([data-wf-defaults][hidden]){grid-template-columns:1fr}
#site-member-workspace .wf .wf-top-panels .wf-grid{grid-template-columns:1fr}
#site-member-workspace .wf [data-wf-history] .wf-log{max-height:220px;overflow-y:auto;overflow-wrap:anywhere}
#site-member-workspace .wf [data-wf-db] [data-wf-deposit]:not(:disabled){cursor:pointer}
@media(max-width:680px){
 #site-member-workspace .wf .wf-detail-heading{grid-template-columns:90px minmax(0,1fr);column-gap:6px}
 #site-member-workspace .wf .wf-assignment-note{margin-left:96px}
 #site-member-workspace .wf .wf-top-panels{grid-template-columns:1fr}
}

/* Application DB rows match the library dispatch history table. */
#site-member-workspace .wf[data-page="applications"] [data-wf-db] table{font-size:12px;line-height:1.65}
#site-member-workspace .wf[data-page="applications"] [data-wf-db] :is(th,td){padding:4px 10px}
#site-member-workspace .wf[data-page="applications"] [data-wf-db] td button{display:block;font:inherit;font-weight:700;line-height:1.4;min-height:0;padding:0;border:0;background:transparent}
