.customer-shared-form,.customer-intake-block{color:var(--ink,#24364d)}
.customer-shared-form h3,.customer-intake-block h3{font-size:14px;margin:0 0 12px;font-weight:600}
.customer-shared-form h3 small{margin-left:8px}.customer-shared-form section{margin-top:22px}.customer-shared-form>section:first-child{margin-top:0}.customer-shared-form>h3{margin-top:22px}
.customer-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}
.customer-shared-form label,.customer-intake-order>label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#627287}
.customer-shared-form input,.customer-shared-form select,.customer-shared-form textarea,.customer-intake-order textarea{box-sizing:border-box;width:100%;min-width:0;min-height:40px;border:1px solid #dce4ed;border-radius:7px;background:#fff;color:#26364b;padding:9px 11px;font:inherit;font-size:13px;line-height:20px}
.customer-shared-form select{appearance:none;height:40px;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m4 5.5 3 3 3-3' fill='none' stroke='%23738499' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");background-position:right 11px center;background-repeat:no-repeat}
.customer-shared-form textarea,.customer-intake-order textarea{min-height:64px;resize:vertical}.customer-shared-form input:disabled{background:#f6f8fa;color:#738297}
.customer-shared-form small,.customer-intake-block small{font-size:11px;color:#7b899a;font-weight:400}.customer-shared-form .helper{margin-top:8px;font-size:11px}
.customer-form-more{border-top:1px solid #e5ebf2;padding:14px 0;margin-top:0}.customer-form-more:first-of-type{margin-top:22px}.customer-form-more:last-child{padding-bottom:0}
.customer-form-more summary{cursor:pointer;font-size:13px;font-weight:500}.customer-form-more summary small{margin-left:10px}.customer-form-more[open]>summary{margin-bottom:16px}.customer-form-more>.customer-form-grid,.customer-form-more>.crm-processes{margin-bottom:14px}
.customer-intake-block{padding:14px 16px;background:#f7f9fc;border:1px solid #e8edf3;border-radius:10px}
.customer-intake-block h3{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.customer-intake-order{padding:4px 0 12px}.customer-intake-order+.customer-intake-order{border-top:1px solid #dce4ed;padding-top:12px}
.customer-intake-order-title{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px;flex-wrap:wrap;font-size:12px}.customer-intake-order-title b{font-weight:500;color:#617186}
.customer-purpose{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 12px;padding:0;border:0;min-width:0}
.customer-purpose label{position:relative;display:flex;flex-direction:row;align-items:center;gap:8px;margin:0;min-height:40px;padding:8px 12px;background:white;border:1px solid #dce4ed;border-radius:7px;color:#4d6077;font-size:13px;cursor:pointer}
.customer-purpose label:has(input:checked){border-color:#d99463;background:#fff6ee;color:#a85925;box-shadow:0 0 0 1px #d9946320}
.customer-purpose label:hover{border-color:#bdcbd9}.customer-purpose label:focus-within{outline:2px solid #8aafd9;outline-offset:2px}
.customer-purpose input[type=radio]{appearance:auto;min-height:0;width:14px;height:14px;padding:0;margin:0;flex:none;accent-color:var(--accent,#de8046);box-shadow:none}
.customer-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.customer-intake-checks{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px}.customer-intake-checks label.customer-intake-check{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0;font-size:12px;color:#5d7085;cursor:pointer}
.customer-intake-check input[type=checkbox]{width:15px;height:15px;min-height:0;flex:none;padding:0;margin:0;accent-color:var(--accent,#de8046)}
.customer-intake-order>[data-intake-evidence]{margin:12px 0 0}.customer-intake-status{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap}
.customer-intake-block>.customer-intake-status{border-top:1px solid #e3e9f1;padding-top:10px;font-size:12px}
.customer-intake-status strong{display:inline-block;font-size:12px;font-weight:500;color:#55759d;background:#eaf0f8;padding:3px 8px;border-radius:5px;margin-left:8px}
.customer-intake-status strong[data-tone=progress]{color:#9d6934;background:#fff0db}.customer-intake-status strong[data-tone=won]{color:#347b5d;background:#e8f3ed}
.customer-intake-status>label{min-width:220px}.customer-intake-status small{max-width:400px}
.customer-shared-form [hidden],.customer-intake-block [hidden],.customer-flow [hidden]{display:none!important}.customer-shared-form .crm-processes input{width:auto;min-height:0}
.customer-match-exact{background:#f0f7f2}.customer-match-note{padding:12px 16px;background:#f6f8fb;border-radius:8px;margin-bottom:16px}.customer-match-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}.customer-match-summary small{display:block;color:#718299;margin-top:6px}
.customer-match-search{display:flex;gap:12px;margin-bottom:16px}.customer-match-search input{flex:1;min-width:0}.customer-intake-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 20px;border-bottom:1px solid #e2e8f0}.customer-intake-summary small{color:#748399}.customer-intake-summary .actions{margin-left:auto}
.customer-order-preview{margin:10px 0 0;font-size:12px}.customer-order-preview summary{cursor:pointer;color:#62768e}.customer-order-preview p{margin:8px 0}
/* One customer panel contains list, creation, and matching. Only its body scrolls. */
#drawer:has(#wb-customer-flow){width:min(820px,calc(100vw - 32px));max-width:100vw;height:100dvh;max-height:100dvh;overflow:hidden}
#wb-customer-flow{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}
#wb-customer-flow>.dialog-head{flex:none;position:static;padding:20px 24px}
#wb-customer-flow .dialog-head h2{font-size:18px;outline:none}#wb-customer-flow .dialog-head p{font-size:12px;margin-top:5px}
#wb-customer-flow .icon-btn{width:36px;height:36px;background:#f5f7fa;border:1px solid #e9edf3}
#wb-customer-flow>.dialog-body,#wb-customer-form>.dialog-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 24px;scrollbar-gutter:stable}
#wb-customer-form{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;margin:0}
#wb-customer-flow .dialog-foot{position:static;flex:none;padding:16px 24px}
#wb-customer-form .customer-form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#wb-customer-form .customer-form-footer{display:block;box-shadow:0 -4px 14px #26364b04}
#wb-customer-form .customer-form-actions{display:flex;align-items:center;gap:10px}.customer-form-actions>span{flex:1}
#wb-customer-flow .btn{min-height:40px;font-size:13px;border-radius:7px;padding:8px 14px}
#wb-customer-form [data-customer-back]{border:0;background:none;padding-left:0;color:#6b7f98;font-size:12px}
#wb-customer-form .error-msg{margin:0 0 12px;font-size:12px}
#wb-customer-form .wb-discard{padding:0;border:0;display:flex;align-items:center;justify-content:space-between;gap:16px}
#wb-customer-form .wb-discard strong{font-size:14px;color:#9b572b}.wb-discard p{margin-top:4px;font-size:12px;color:#748297}.wb-discard-actions{display:flex;gap:10px;flex:none}
#wb-customer-form [data-customer-action=discard]{color:#ac4f36;border-color:#e8cbbf;background:#fff7f2}
#wb-customer-form .dialog-body[inert]{opacity:.48}
/* Customer selection owns its full-width row layout; generic choice rows shrink to content. */
#wb-customer-flow .customer-picker-toolbar{flex:none;padding:18px 24px 0}
#wb-customer-flow .customer-match-search{gap:12px;margin:0 0 12px}
#wb-customer-query{height:42px;font-size:13px;border-radius:7px;padding:10px 12px}
#wb-customer-flow .customer-match-search .btn{flex:none;height:42px}
.customer-picker-count{font-size:12px;color:#8592a4;margin-bottom:14px;min-height:19px}
.customer-picker-columns,#wb-customer-choices>.customer-choice{display:grid;grid-template-columns:34px minmax(0,1fr) 86px 88px 76px;column-gap:12px;align-items:center}
.customer-picker-columns{padding:10px 12px;font-size:11px;color:#8997a8;background:#f7f9fb;border-top:1px solid #e8edf3;border-bottom:1px solid #e8edf3}
.customer-picker-columns>span:first-child{grid-column:2}.customer-picker-columns>span:nth-child(3){text-align:center}.customer-picker-columns>span:last-child{text-align:right}
#wb-customer-flow>.customer-picker-list{padding:0 24px;scrollbar-gutter:auto}
#wb-customer-choices{display:block;width:100%;min-width:0}
#wb-customer-choices>.customer-choice{width:100%;max-width:100%;min-height:80px;margin:0;padding:14px 12px;border:0;border-bottom:1px solid #e8edf3;border-radius:0;background:white;text-align:left;line-height:1.5}
#wb-customer-choices>.customer-choice:hover:not(:disabled){background:#f7f9fc}
#wb-customer-choices>.customer-choice:focus-visible{outline:2px solid #8aafd9;outline-offset:-2px;border-radius:6px}
#wb-customer-choices>.customer-match-exact{background:#f1f8f3}#wb-customer-choices>.customer-match-exact:hover:not(:disabled){background:#eaf5ed}
#wb-customer-choices>.customer-choice:disabled{opacity:.65;background:#fafbfc}
#wb-customer-choices .customer-choice .avatar{width:34px;height:34px;font-size:14px}
#wb-customer-choices .customer-choice-info{display:flex;flex-direction:column;gap:5px;min-width:0;text-align:left}
#wb-customer-choices .customer-choice-name{display:flex;gap:8px;align-items:center;min-width:0;margin-top:0}#wb-customer-choices .customer-choice-name strong{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
#wb-customer-choices .customer-choice-detail{display:block;margin-top:0;font-size:12px;color:#8190a4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#wb-customer-choices .customer-match-tag{flex:none;font-size:10px;border-radius:4px;padding:2px 5px;color:#3e7c5a;background:#e2f0e6}
#wb-customer-choices .customer-choice-owner{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#687c93}
#wb-customer-choices .customer-choice-status{justify-self:center;max-width:100%;font-size:11px;line-height:20px;padding:2px 7px;border-radius:5px;white-space:nowrap;color:#5c789d;background:#edf2f8}
#wb-customer-choices .customer-choice-status[data-tone=won]{background:#eaf5ef;color:#397c5d}#wb-customer-choices .customer-choice-status[data-tone=progress]{background:#fff1df;color:#a5763c}
#wb-customer-choices .customer-choice-action{display:flex;justify-content:flex-end;align-items:center;gap:6px;font-size:12px;white-space:nowrap;color:#617e9d}#wb-customer-choices .customer-choice-action>span{font-size:18px;line-height:1}
#wb-customer-choices .customer-choice-unavailable{font-size:11px;color:#a47c61}
.customer-picker-empty{padding:56px 16px;text-align:center}.customer-picker-empty strong{font-size:14px;font-weight:500;color:#5e728c}.customer-picker-empty p{font-size:12px;color:#8b99ab;margin-top:8px}
@media(max-width:700px){#wb-customer-form .customer-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-intake-status{align-items:flex-start;flex-direction:column}#wb-customer-form .wb-discard{align-items:stretch;flex-direction:column}.wb-discard-actions{justify-content:flex-end}}
@media(max-width:700px){.customer-picker-columns,#wb-customer-choices>.customer-choice{grid-template-columns:30px minmax(0,1fr) 82px 70px;column-gap:10px}#wb-customer-choices .customer-choice-owner,.customer-picker-columns>span:nth-child(2){display:none}#wb-customer-choices .customer-choice .avatar{width:30px;height:30px}}
@media(max-width:520px){#wb-customer-flow .customer-picker-toolbar{padding:16px 16px 0}#wb-customer-flow>.customer-picker-list{padding:0 16px}.customer-picker-columns{display:none}#wb-customer-choices>.customer-choice{grid-template-columns:30px minmax(0,1fr) auto;row-gap:8px;padding:14px 4px}#wb-customer-choices .customer-choice-info{grid-column:2;grid-row:1}#wb-customer-choices .customer-choice-action{grid-column:3;grid-row:1}#wb-customer-choices .customer-choice-status{grid-column:2;grid-row:2;justify-self:start}#wb-customer-choices .customer-choice-detail{white-space:normal;overflow-wrap:anywhere}#wb-customer-choices .customer-choice-name{flex-wrap:wrap}#wb-customer-choices .customer-choice-name strong{white-space:normal;overflow-wrap:anywhere}#wb-customer-choices .customer-choice-owner{display:none}}
@media(max-width:520px){#drawer:has(#wb-customer-flow){width:100vw;border-radius:0}#wb-customer-flow>.dialog-head,#wb-customer-flow .dialog-foot{padding:16px}#wb-customer-flow>.dialog-body,#wb-customer-form>.dialog-body{padding:16px}.customer-form-grid,#wb-customer-form .customer-form-grid{grid-template-columns:1fr}.customer-purpose{gap:6px}.customer-purpose label{padding:8px;gap:5px;font-size:12px}.customer-intake-block h3{align-items:flex-start;flex-direction:column}.customer-form-actions{flex-wrap:wrap}.customer-form-actions>span{display:none}#wb-customer-form [data-customer-back]{margin-right:auto}.customer-shared-form input,.customer-shared-form select,.customer-shared-form textarea{font-size:16px}}
