.customer-directory{padding:24px;max-width:1000px;margin:16px auto}.customer-heading,.customer-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px}.customer-directory label{display:flex;flex-direction:column;gap:6px;margin:12px 0}.customer-directory input,.customer-directory textarea,.customer-directory select{width:100%;box-sizing:border-box;padding:12px;border:1px solid #ccd3dc;border-radius:8px;font:inherit}.customer-directory textarea{min-height:90px}.customer-result{border:1px solid #dbe1e8;border-radius:12px;padding:16px;margin:12px 0;overflow-wrap:anywhere}.customer-result strong{font-size:1.1rem}.customer-result small{display:block;color:#526174;margin:8px 0}.customer-badge{display:inline-block;margin-left:12px;padding:4px 8px;border-radius:20px;background:#eaf0f6;font-size:12px}.customer-result button{margin:6px 8px 0 0}.customer-directory button:focus-visible,.customer-directory input:focus-visible{outline:3px solid #2769ba;outline-offset:2px}@media(max-width:600px){.customer-directory{padding:14px}.customer-heading{align-items:flex-start}.customer-pagination{flex-wrap:wrap}.customer-result button{min-height:44px}}


/* One contact profile, compact source badges and readable activity cards. */
.contact-profile-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;border-bottom:1px solid #dce3ea;padding-bottom:20px}.contact-profile-header h2{margin:0 0 14px;font-size:26px}.contact-profile-info{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 20px;margin:0}.contact-profile-info dt,.contact-meta{color:#607184;font-size:13px}.contact-profile-info dd{margin:0;overflow-wrap:anywhere}.contact-channel-list{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 24px}.contact-channel{display:inline-block;padding:6px 12px;border-radius:20px;background:#edf2f7;color:#172b40;font-size:13px;font-weight:600}.contact-section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.contact-section-heading h3,.contact-section-heading h4{margin:0}.contact-properties{margin-bottom:28px}.contact-property-row{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid #e3e9ef;padding:18px 0}.contact-property-row>div{display:grid;gap:6px;min-width:0}.contact-property-row strong{overflow-wrap:anywhere}.contact-history>h3{margin-bottom:16px}.contact-history-card{border:1px solid #dce3ea;border-radius:12px;padding:22px;margin:16px 0}.contact-history-address{font-weight:600}.contact-history-card p{line-height:1.6;overflow-wrap:anywhere}.contact-saved-estimate{border-left:3px solid #bd1933;padding:12px 18px;margin:16px 0;background:#fafbfc}.contact-transcript{box-sizing:border-box;max-height:440px;overflow:auto;overscroll-behavior:contain;padding:8px 12px;margin-top:16px;background:#f7f9fb;border-radius:10px}.contact-message{width:85%;box-sizing:border-box;padding:14px 18px;margin:12px 0;border-radius:12px}.contact-message p{white-space:pre-wrap;margin:6px 0 0}.contact-message strong{font-size:12px}.contact-message-homeowner{background:#e8f0fa;color:#173b60;border:1px solid #cddff0;margin-right:auto}.contact-message-assistant{background:#fcebf0;color:#67182b;border:1px solid #f0d0d9;margin-left:auto}.contact-history-card summary{cursor:pointer;font-weight:600;padding:8px 0}.customer-directory button{font:inherit;font-size:14px;font-weight:600;min-height:40px;padding:10px 16px;border:1px solid #cbd7e3;border-radius:8px;background:#fff;color:#172b40;cursor:pointer}.customer-directory button:hover{background:#f1f5f9}.customer-directory button.primary{background:#bd1933;border-color:#bd1933;color:#fff}.customer-directory button:disabled{opacity:.55;cursor:default}.contact-profile-header>button,.contact-property-row>button{flex-shrink:0}.contact-section-heading time{white-space:nowrap}@media(max-width:600px){.contact-profile-header,.contact-section-heading{flex-wrap:wrap}.contact-profile-header h2{font-size:23px}.contact-history-card{padding:16px}.contact-message{width:94%;padding:12px}.contact-transcript{max-height:360px;padding:6px}.contact-property-row{gap:12px}.contact-profile-info{gap:8px 12px}}

.estimate-result-link{display:inline-flex;align-items:center;padding:10px 14px;border:1px solid #c7d5e3;border-radius:10px;background:#fff;color:#12314b;font-weight:700;text-decoration:none}.estimate-result-link:hover{background:#f1f5f9}.contact-ai-summary{padding:16px;background:#f4f7fb;border-radius:10px;margin:16px 0}.contact-ai-summary h4{margin-top:0}
